@arcgis/core 5.2.0-next.74 → 5.2.0-next.76
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/arcgisGlobal.d.ts +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/013c9cc198736a72f7f2.js +1 -0
- package/assets/esri/core/workers/chunks/0194244a3f437ad74045.js +1 -0
- package/assets/esri/core/workers/chunks/0502641d9a214b37ff29.js +1 -0
- package/assets/esri/core/workers/chunks/{4dcd4a052b40047a9230.js → 08cac27df6c216ae1995.js} +1 -1
- package/assets/esri/core/workers/chunks/08ec5461af74356e7570.js +1 -0
- package/assets/esri/core/workers/chunks/0909816f13d25cacf250.js +1 -0
- package/assets/esri/core/workers/chunks/0933203eee15ea50e123.js +1 -0
- package/assets/esri/core/workers/chunks/0d9fe49812554e7d7ba7.js +1 -0
- package/assets/esri/core/workers/chunks/{0e81c6d4f1c81f9b0a1b.js → 1142f8e9c80207d6bdae.js} +1 -1
- package/assets/esri/core/workers/chunks/16929524565a677db4dc.js +1 -0
- package/assets/esri/core/workers/chunks/16a04fc184728d66e6e1.js +1 -0
- package/assets/esri/core/workers/chunks/177c3b23c1cbd4737049.js +1 -0
- package/assets/esri/core/workers/chunks/18e0e993c0c39c962e61.js +1 -0
- package/assets/esri/core/workers/chunks/1a467da4c0b33f655199.js +1 -0
- package/assets/esri/core/workers/chunks/1ef28d4457c8c943ad19.js +1 -0
- package/assets/esri/core/workers/chunks/20b54e7872d967f3be32.js +1 -0
- package/assets/esri/core/workers/chunks/{5f31b375971ab067121e.js → 21f763694a41968ac21a.js} +1 -1
- package/assets/esri/core/workers/chunks/230925079cee040a8d77.js +1 -0
- package/assets/esri/core/workers/chunks/2501d9459f6d14c797e5.js +1 -0
- package/assets/esri/core/workers/chunks/257f1e8316877f611e11.js +1 -0
- package/assets/esri/core/workers/chunks/270ed3070d118edb3f37.js +1 -0
- package/assets/esri/core/workers/chunks/2740f755c3a322cbd477.js +1 -0
- package/assets/esri/core/workers/chunks/2e7c830b5b1fe406169f.js +1 -0
- package/assets/esri/core/workers/chunks/2f4ed8a63d57636a4ebe.js +1 -0
- package/assets/esri/core/workers/chunks/{31d19bb72a9e79b30070.js → 30818b5ff0ce51b25d6f.js} +1 -1
- package/assets/esri/core/workers/chunks/315031323e11a18154e3.js +1 -0
- package/assets/esri/core/workers/chunks/393f79843d5a78c1cc37.js +1 -0
- package/assets/esri/core/workers/chunks/3b5c5356353f1a2303a0.js +1 -0
- package/assets/esri/core/workers/chunks/3c28e2040cb4fb716eaa.js +1 -0
- package/assets/esri/core/workers/chunks/{99e3aa4832ed87474ab4.js → 44857a76be2c0ac65bb9.js} +1 -1
- package/assets/esri/core/workers/chunks/44a786aba84918f2b247.js +1 -0
- package/assets/esri/core/workers/chunks/{3e2b4e734aa20a308f3e.js → 46e56fac44e0fd26ba1d.js} +1 -1
- package/assets/esri/core/workers/chunks/{4491dc227c28e2ab4f8e.js → 484b251fbcbffcb58323.js} +1 -1
- package/assets/esri/core/workers/chunks/48e2d0bfb62e1f4f2ad9.js +1 -0
- package/assets/esri/core/workers/chunks/4945d6b0ca1812864185.js +1 -0
- package/assets/esri/core/workers/chunks/{7f2f2a92dce3f68e579b.js → 4b54444c04fbd6f42c18.js} +1 -1
- package/assets/esri/core/workers/chunks/4c82f5f23004f905a18f.js +1 -0
- package/assets/esri/core/workers/chunks/4d7a3b3aaf876da0891b.js +1 -0
- package/assets/esri/core/workers/chunks/4f8ce5887102971bfa34.js +2 -0
- package/assets/esri/core/workers/chunks/50b08415e072a49bc572.js +1 -0
- package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js → 532e3a59888e4cc13bd3.js} +2 -2
- package/assets/esri/core/workers/chunks/53eed0941a39b56cc034.js +1 -0
- package/assets/esri/core/workers/chunks/{1a3afee3ecd806b4aa81.js → 552d6aecc7d88d16227b.js} +1 -1
- package/assets/esri/core/workers/chunks/56e6d8c4a9ed893ce951.js +1 -0
- package/assets/esri/core/workers/chunks/57159bcac86d660dcceb.js +1 -0
- package/assets/esri/core/workers/chunks/58026fc30d8a0ded4102.js +1 -0
- package/assets/esri/core/workers/chunks/59598023c0aea62a6297.js +1 -0
- package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +1 -0
- package/assets/esri/core/workers/chunks/5fd2aa0be03dfb494efa.js +1 -0
- package/assets/esri/core/workers/chunks/619aa1381296172ff47b.js +1 -0
- package/assets/esri/core/workers/chunks/62f37d1075390a177ae9.js +1 -0
- package/assets/esri/core/workers/chunks/{2baa16ec8559e77c226f.js → 64a1ffc221e5b63b43fb.js} +1 -1
- package/assets/esri/core/workers/chunks/65d1e338612e59063eba.js +1 -0
- package/assets/esri/core/workers/chunks/680dd7b7638465eb33de.js +1 -0
- package/assets/esri/core/workers/chunks/69b0dcd7bcd8ec42e2c3.js +1 -0
- package/assets/esri/core/workers/chunks/6c740c411b085d2d08c4.js +1 -0
- package/assets/esri/core/workers/chunks/6c982779d6d47ec99899.js +1 -0
- package/assets/esri/core/workers/chunks/6dddd3df31961b9fda12.js +1 -0
- package/assets/esri/core/workers/chunks/{1ca04ecf010e68863014.js → 6e45ecf359bce3417f5d.js} +1 -1
- package/assets/esri/core/workers/chunks/702b2381acf4d1f90094.js +1 -0
- package/assets/esri/core/workers/chunks/{a52c88e2d837b525ff6c.js → 71ee7c51d2c60a180f1e.js} +1 -1
- package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js → 755b2d883fba90c4e688.js} +2 -2
- package/assets/esri/core/workers/chunks/75fc0b1db8e2e3fd2458.js +1 -0
- package/assets/esri/core/workers/chunks/{9e25f715cda59c686a4c.js → 792303e4090c0c70c4ff.js} +1 -1
- package/assets/esri/core/workers/chunks/79429c8be5da85713200.js +1 -0
- package/assets/esri/core/workers/chunks/7b470d6ad182548b9e95.js +1 -0
- package/assets/esri/core/workers/chunks/7d8eb4dbea1916320f74.js +1 -0
- package/assets/esri/core/workers/chunks/83e54166ba634ec2bd89.js +1717 -0
- package/assets/esri/core/workers/chunks/841c81c280114412c95b.js +1 -0
- package/assets/esri/core/workers/chunks/87eaed6fdabd482d142e.js +1 -0
- package/assets/esri/core/workers/chunks/88d5541679e77117bf03.js +1 -0
- package/assets/esri/core/workers/chunks/894ebc64b698e5d7604b.js +1 -0
- package/assets/esri/core/workers/chunks/8a36b999cbd65dd2f16c.js +1 -0
- package/assets/esri/core/workers/chunks/8ae3a6ddc87bf8315583.js +1 -0
- package/assets/esri/core/workers/chunks/{67f54586156d1ab80257.js → 8b980c6b92cc4ea68ede.js} +1 -1
- package/assets/esri/core/workers/chunks/8d9a7fa14489897780d3.js +1 -0
- package/assets/esri/core/workers/chunks/8e225dd0319672103561.js +1 -0
- package/assets/esri/core/workers/chunks/9199300ffd225a1bbef1.js +1 -0
- package/assets/esri/core/workers/chunks/94b9a61b4dbb83425a78.js +1 -0
- package/assets/esri/core/workers/chunks/98613fded899c59f34a4.js +1 -0
- package/assets/esri/core/workers/chunks/{9ca59077712e45ef4d56.js → 9c3e6325dc60bcaf44d7.js} +1 -1
- package/assets/esri/core/workers/chunks/9e1392a0c608a13ab036.js +1 -0
- package/assets/esri/core/workers/chunks/9e2e4d197a7a57c2a691.js +1 -0
- package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js → a014c17fc210620da738.js} +2 -2
- package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js → a19be304219808268039.js} +2 -2
- package/assets/esri/core/workers/chunks/{bd311c85437743cf7d2f.js → a4e4fa4dd1a122bbf7cd.js} +1 -1
- package/assets/esri/core/workers/chunks/a5240c8a47842138f31f.js +1 -0
- package/assets/esri/core/workers/chunks/a69c10bfd632a5546b34.js +1 -0
- package/assets/esri/core/workers/chunks/{b6d26d9738c0787acc38.js → a6a2a4a2bae0d327d7ed.js} +1 -1
- package/assets/esri/core/workers/chunks/a7727a2377470d586ff9.js +1 -0
- package/assets/esri/core/workers/chunks/a91c1d782346a9c7e1ef.js +1 -0
- package/assets/esri/core/workers/chunks/{6cd6d0cfd313f0475d98.js → ac59218847e5ef4c4160.js} +1 -1
- package/assets/esri/core/workers/chunks/ac87be2210f868524996.js +1 -0
- package/assets/esri/core/workers/chunks/aed16c3e26652960ad3f.js +1 -0
- package/assets/esri/core/workers/chunks/b084829a3fd709dc47a8.js +1 -0
- package/assets/esri/core/workers/chunks/{05f6887805d92da03122.js → b24fc7eeda580ef020d2.js} +1 -1
- package/assets/esri/core/workers/chunks/b37a20c5c4a4686257d4.js +1 -0
- package/assets/esri/core/workers/chunks/{a0a1f0bd3648738354a6.js → b4abf82b8ac974a55ae1.js} +1 -1
- package/assets/esri/core/workers/chunks/b950ddafba8125c84a5b.js +1 -0
- package/assets/esri/core/workers/chunks/b9d1bb106737a05290e1.js +1 -0
- package/assets/esri/core/workers/chunks/bab5f4b2424b487b87ac.js +1 -0
- package/assets/esri/core/workers/chunks/bad2c7219e95750906e1.js +1 -0
- package/assets/esri/core/workers/chunks/bbc6b270d2032189107c.js +1 -0
- package/assets/esri/core/workers/chunks/{faa55265020591fd2224.js → bc0395777c5c1adb1ddb.js} +1 -1
- package/assets/esri/core/workers/chunks/bc6e488f5fbd50f9f3d0.js +1 -0
- package/assets/esri/core/workers/chunks/bd7d87d175ba933ab2ce.js +1 -0
- package/assets/esri/core/workers/chunks/{859dd86c921053bf03a1.js → c17dda6fadb8bfad0d51.js} +1 -1
- package/assets/esri/core/workers/chunks/c1e5ffe9a251be5a0744.js +1 -0
- package/assets/esri/core/workers/chunks/{94368a097e6190ce3c7a.js → c37b28f200b704ae6002.js} +1 -1
- package/assets/esri/core/workers/chunks/ca6652c6304ad0e37e8f.js +1 -0
- package/assets/esri/core/workers/chunks/{762be5d3e6aeaea33f74.js → cef02ed3942c010da2e8.js} +1 -1
- package/assets/esri/core/workers/chunks/cff6390b863361eaeeed.js +1 -0
- package/assets/esri/core/workers/chunks/d2172583ee6e481a66aa.js +1 -0
- package/assets/esri/core/workers/chunks/d520d407043bc52e5410.js +1 -0
- package/assets/esri/core/workers/chunks/da0ef984509057ec8507.js +1 -0
- package/assets/esri/core/workers/chunks/dbdd96e558936955acdb.js +1 -0
- package/assets/esri/core/workers/chunks/ddd8f6154e265dbb6f9f.js +1 -0
- package/assets/esri/core/workers/chunks/de601f0d5a2a282d2efd.js +1 -0
- package/assets/esri/core/workers/chunks/de927b1460bc384f5b87.js +1 -0
- package/assets/esri/core/workers/chunks/de9a1cce70581920f248.js +1 -0
- package/assets/esri/core/workers/chunks/dff932682d6386a861ce.js +1 -0
- package/assets/esri/core/workers/chunks/{2c31648a4b95275516ee.js → e227eb44cd139fe2bc1b.js} +1 -1
- package/assets/esri/core/workers/chunks/e4e5a171a4874c5af4a4.js +1 -0
- package/assets/esri/core/workers/chunks/{fdca9873914b9dbd9244.js → e59101f1d060d0a30a65.js} +1 -1
- package/assets/esri/core/workers/chunks/{ddb92c815d17c67a45e6.js → e5d114f2b57d2b8e2f1c.js} +1 -1
- package/assets/esri/core/workers/chunks/e89e6eea380ca2c13b64.js +1 -0
- package/assets/esri/core/workers/chunks/e9d352d030dcad1619a6.js +1 -0
- package/assets/esri/core/workers/chunks/{3de6e54b6ed0feae1940.js → eae51e827f629ab37207.js} +1 -1
- package/assets/esri/core/workers/chunks/eee1fd629619021ea279.js +1 -0
- package/assets/esri/core/workers/chunks/ef47a5da641cb0d33fdf.js +1 -0
- package/assets/esri/core/workers/chunks/f35e749bb5be39880cbe.js +1 -0
- package/assets/esri/core/workers/chunks/{3dff36f6de181d9dcdc5.js → f40e4433e7608d0962a6.js} +1 -1
- package/assets/esri/core/workers/chunks/f4aa6e90200f61e623e5.js +1 -0
- package/assets/esri/core/workers/chunks/ff578f0ca68d652fece5.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
- package/chunks/GaussianSplat.glsl.js +8 -8
- package/chunks/GaussianSplatShadow.glsl.js +4 -5
- package/chunks/HeatmapDensity.glsl.js +5 -5
- package/chunks/OccludedGeometryDepth.glsl.js +5 -0
- package/chunks/ShadowCastVisualize.glsl.js +2 -2
- package/chunks/bundle2.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/config.js +1 -1
- package/core/importUtils.js +2 -0
- package/geometry/geometryEngine.js +1 -1
- package/geometry/operators/importUtils.js +2 -0
- package/geometry/support/centroid.js +1 -1
- package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
- package/geometry/support/extentUtils.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/geometry/support/normalizeUtils.d.ts +17 -15
- package/geometry/support/normalizeUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/FeatureLayer.d.ts +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/projectionSupport.js +1 -1
- package/layers/graphics/data/queryUtils.js +1 -1
- package/layers/graphics/hydratedFeatures.js +1 -1
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/package.json +2 -2
- package/portal/schemas/definitions.js +1 -1
- package/rest/geoprocessor/utils.js +1 -1
- package/rest/identify.js +1 -1
- package/rest/imageService.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/rest/query/operations/queryAttributeBins.js +1 -1
- package/rest/query/operations/queryPivot.js +1 -1
- package/rest/query/operations/queryTopFeatures.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMEffects.js +1 -1
- package/symbols/cim/animationUtils.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/effects/EffectCircularSector.js +1 -1
- package/symbols/cim/utils.js +1 -1
- package/views/2d/engine/BitmapTile.js +1 -1
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/styles/Particles.js +1 -1
- package/views/2d/engine/flow/styles/Streamlines.js +1 -1
- package/views/2d/engine/imagery/RasterTile.js +1 -1
- package/views/2d/engine/imagery/RasterVFTile.js +1 -1
- package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
- package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/RenderingDevice.js +1 -1
- package/views/2d/engine/webgl/TileContainer.js +1 -1
- package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
- package/views/2d/engine/webgl/animations/infos.js +1 -1
- package/views/2d/engine/webgl/animations/instructions.js +1 -1
- package/views/2d/engine/webgl/normalizedTileUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/bitmap/BitmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/flow/FlowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/Tile.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ViewInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterColorizerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/MagDirShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/ScalarShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderCircle.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderIcon.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderLine.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderOutline.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderText.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/utility/DebugOverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.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/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/types.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/uniformBufferUtils.js +2 -0
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/support/DisplayGL.js +1 -1
- package/views/2d/layers/support/RouteLayerInteraction.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/environment/EnvironmentManager.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/manipulatorUtils.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/support/GaussianSplatSortWorker.js +1 -1
- package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/hitTest.js +1 -1
- package/views/3d/support/renderInfoUtils/line.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/DrapedZ.js +2 -0
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatCovariance.glsl.js +8 -3
- package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatEvaluation.glsl.js +8 -2
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulate.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulateTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulateTechniqueConfiguration.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastClear.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastClearTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastMaskTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastRenderer.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualize.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualizeTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualizeTechniqueConfiguration.js +2 -0
- package/views/3d/webgl-engine/lib/CutFillVisualization.js +1 -1
- package/views/3d/webgl-engine/lib/PositionReader.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFields.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +28 -21
- package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/OccludedGeometryDepth.glsl.js +2 -0
- package/views/3d/webgl-engine/shaders/OccludedGeometryDepthTechnique.js +2 -0
- package/views/VideoView.js +1 -1
- package/views/selection/SelectionOperation.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/UniformBufferLayout.js +1 -1
- package/views/webgl/UniformBufferObject.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +20 -6
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.d.ts +100 -0
- package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.js +2 -0
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
- package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.js +1 -1
- package/widgets/support/SelectionList/GroupLayerItem.d.ts +8 -1
- package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
- package/widgets/support/SelectionList/LayerItem.d.ts +8 -1
- package/widgets/support/SelectionList/LayerItem.js +1 -1
- package/widgets/support/SelectionList/SelectionListViewModel.d.ts +29 -1
- package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/assets/esri/core/workers/chunks/01c92e68fb17cf2d0e08.js +0 -1
- package/assets/esri/core/workers/chunks/02dd79beb13eff6be85e.js +0 -1
- package/assets/esri/core/workers/chunks/0823961e5d0bdedbf8cf.js +0 -2
- package/assets/esri/core/workers/chunks/0aedeb837399d3f92e4a.js +0 -1
- package/assets/esri/core/workers/chunks/0bf644f93c180a2bc2f8.js +0 -705
- package/assets/esri/core/workers/chunks/0dbf31a663b5220a3136.js +0 -1
- package/assets/esri/core/workers/chunks/0df660dfd941cff3ea1d.js +0 -1
- package/assets/esri/core/workers/chunks/1119a33245138e7b3914.js +0 -1
- package/assets/esri/core/workers/chunks/1418c03c4ab87f7ab5f4.js +0 -1
- package/assets/esri/core/workers/chunks/160b204cbf5bda2a29e9.js +0 -1
- package/assets/esri/core/workers/chunks/193aed69de2dec4f36b6.js +0 -1
- package/assets/esri/core/workers/chunks/1cc063aa2ddf44bbd515.js +0 -1
- package/assets/esri/core/workers/chunks/264fd750691d517ab1f3.js +0 -1
- package/assets/esri/core/workers/chunks/2791f3fe16ca5ee2f39a.js +0 -1
- package/assets/esri/core/workers/chunks/2a2ed7bd44010f24c2dd.js +0 -1
- package/assets/esri/core/workers/chunks/2bdb9b5365869081c936.js +0 -1
- package/assets/esri/core/workers/chunks/2d45daacec0d5ed38782.js +0 -1
- package/assets/esri/core/workers/chunks/2e44978ee677aa23163d.js +0 -256
- package/assets/esri/core/workers/chunks/2ea3ca68cfa4d34e8f3b.js +0 -1
- package/assets/esri/core/workers/chunks/2f81047790c4890ae625.js +0 -1
- package/assets/esri/core/workers/chunks/32f5112c848efec6c33b.js +0 -1
- package/assets/esri/core/workers/chunks/35fd2f765d2cb3f59a22.js +0 -1462
- package/assets/esri/core/workers/chunks/3bc2943035391b44d4cf.js +0 -29
- package/assets/esri/core/workers/chunks/3d6b2d5ae647e140abaf.js +0 -1
- package/assets/esri/core/workers/chunks/44e8cd4b3dad777ab0c9.js +0 -1
- package/assets/esri/core/workers/chunks/45ccca01db0027b9dc16.js +0 -1
- package/assets/esri/core/workers/chunks/4710f21b138a2c9a0345.js +0 -1
- package/assets/esri/core/workers/chunks/4abd54518e35050feb90.js +0 -1
- package/assets/esri/core/workers/chunks/4b5bd0c9a55ea2998601.js +0 -1
- package/assets/esri/core/workers/chunks/4c2794687aea172775a0.js +0 -1
- package/assets/esri/core/workers/chunks/4cf2b0558a4acc141429.js +0 -1
- package/assets/esri/core/workers/chunks/4d9bde9f66817a92ceca.js +0 -1
- package/assets/esri/core/workers/chunks/4e129b9f5772a06e580c.js +0 -1
- package/assets/esri/core/workers/chunks/509aecafbc629bee1c15.js +0 -1
- package/assets/esri/core/workers/chunks/5441f96cdd0660229efe.js +0 -1
- package/assets/esri/core/workers/chunks/553be2bd69bd311477ea.js +0 -1
- package/assets/esri/core/workers/chunks/5600fc334d20c4f0c83d.js +0 -1
- package/assets/esri/core/workers/chunks/56bbde1dff96b423fbb9.js +0 -1
- package/assets/esri/core/workers/chunks/5bf4ab72b9634b06cc5d.js +0 -1
- package/assets/esri/core/workers/chunks/5e3d5347223f0111f40f.js +0 -1
- package/assets/esri/core/workers/chunks/613e799377bdb767c955.js +0 -1
- package/assets/esri/core/workers/chunks/623d5518bca227f643bd.js +0 -1
- package/assets/esri/core/workers/chunks/62811bca7ad2100c023c.js +0 -1
- package/assets/esri/core/workers/chunks/64176f7ae719289a2f79.js +0 -1
- package/assets/esri/core/workers/chunks/6f58cb9dffe8016397a2.js +0 -1
- package/assets/esri/core/workers/chunks/73f77f5a6907cb8d9a35.js +0 -1
- package/assets/esri/core/workers/chunks/76b573143d1a65fdbcb6.js +0 -1
- package/assets/esri/core/workers/chunks/7aaa051b51a8e34bbfb0.js +0 -1
- package/assets/esri/core/workers/chunks/7b5b66ae79e0287e3ade.js +0 -1
- package/assets/esri/core/workers/chunks/7e373d9c98ce910db9d2.js +0 -1
- package/assets/esri/core/workers/chunks/7f91e45156bbe88f9a62.js +0 -1
- package/assets/esri/core/workers/chunks/86a4057572755b403548.js +0 -1
- package/assets/esri/core/workers/chunks/877594b6db08da98acd7.js +0 -1
- package/assets/esri/core/workers/chunks/8a48a6760c33ed50b650.js +0 -1
- package/assets/esri/core/workers/chunks/8d21e2dabc5165f1c8ca.js +0 -1
- package/assets/esri/core/workers/chunks/903e1cd8b76eff19ebdf.js +0 -1
- package/assets/esri/core/workers/chunks/917c11cb40a7742d7f98.js +0 -1
- package/assets/esri/core/workers/chunks/91d133c04ca764d74934.js +0 -1
- package/assets/esri/core/workers/chunks/92c4464b67fce6cea134.js +0 -1
- package/assets/esri/core/workers/chunks/947f1ea4dbc3e3419ecc.js +0 -1
- package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +0 -1
- package/assets/esri/core/workers/chunks/96cec8a02ca96175d602.js +0 -1
- package/assets/esri/core/workers/chunks/98e6c1d035755a074d24.js +0 -1
- package/assets/esri/core/workers/chunks/9902fcd2070c8eb6d043.js +0 -1
- package/assets/esri/core/workers/chunks/9b76c8974424a1908e86.js +0 -1
- package/assets/esri/core/workers/chunks/9be6827e5756031a56c1.js +0 -1
- package/assets/esri/core/workers/chunks/a101152066dd56259619.js +0 -1
- package/assets/esri/core/workers/chunks/a27cdf4c29dd50a6dab1.js +0 -1
- package/assets/esri/core/workers/chunks/a294dd12b5c708ce04af.js +0 -1
- package/assets/esri/core/workers/chunks/a2a2c7e274fb32fecffa.js +0 -1
- package/assets/esri/core/workers/chunks/a3bf8aa81ee398da5b52.js +0 -1
- package/assets/esri/core/workers/chunks/a9053ad0f4e8c4705665.js +0 -1
- package/assets/esri/core/workers/chunks/afeeb11b39e140303b5a.js +0 -1
- package/assets/esri/core/workers/chunks/b1a175b3b2d1a7ddde8e.js +0 -1
- package/assets/esri/core/workers/chunks/b33d870cbfa238762c5e.js +0 -1
- package/assets/esri/core/workers/chunks/b3b53cf0a3a30164d337.js +0 -1
- package/assets/esri/core/workers/chunks/b599b7dadce8b8bc88f6.js +0 -1
- package/assets/esri/core/workers/chunks/b858adff7043683fe41c.js +0 -1
- package/assets/esri/core/workers/chunks/b984b808d383974ca3d8.js +0 -1
- package/assets/esri/core/workers/chunks/be1d2c3a61e6447fbbc7.js +0 -1
- package/assets/esri/core/workers/chunks/bff75cc7413bf0d319db.js +0 -1
- package/assets/esri/core/workers/chunks/c02ae1d40c1fe95ae6c5.js +0 -1
- package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +0 -1
- package/assets/esri/core/workers/chunks/c1a4d499a30f3d80567b.js +0 -1
- package/assets/esri/core/workers/chunks/c25dc9073e73d6b44d88.js +0 -1
- package/assets/esri/core/workers/chunks/c45a5bcf26659daf02a1.js +0 -1
- package/assets/esri/core/workers/chunks/c46f79d5b7712adbbd1c.js +0 -1
- package/assets/esri/core/workers/chunks/c53b2be005721591e29b.js +0 -1
- package/assets/esri/core/workers/chunks/c82ab4f0908290e70ee9.js +0 -1
- package/assets/esri/core/workers/chunks/c866b66ba72d96453899.js +0 -1
- package/assets/esri/core/workers/chunks/c873383e7dae35dc1a61.js +0 -1
- package/assets/esri/core/workers/chunks/cc5ec6e99aa09342c704.js +0 -1
- package/assets/esri/core/workers/chunks/cd892c9603710d6130a9.js +0 -1
- package/assets/esri/core/workers/chunks/cf360767310fb45660a8.js +0 -1
- package/assets/esri/core/workers/chunks/d021775cf747556660a5.js +0 -1
- package/assets/esri/core/workers/chunks/d08f81d545930a79fb2e.js +0 -1
- package/assets/esri/core/workers/chunks/d607cf154218d20e4114.js +0 -1
- package/assets/esri/core/workers/chunks/d79ce047afbc034f6008.js +0 -1
- package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +0 -1
- package/assets/esri/core/workers/chunks/dbc9249dae41096d750d.js +0 -1
- package/assets/esri/core/workers/chunks/e4a2eefffe16cd5bb20f.js +0 -1
- package/assets/esri/core/workers/chunks/e602b91d8fdc36a92530.js +0 -1
- package/assets/esri/core/workers/chunks/ebfb3cdc0df15eb05d75.js +0 -1
- package/assets/esri/core/workers/chunks/ec1841e6e498d54012eb.js +0 -1
- package/assets/esri/core/workers/chunks/ed1de8b7406269e217b9.js +0 -29
- package/assets/esri/core/workers/chunks/f1727b4a32cb6f36a5e6.js +0 -1
- package/assets/esri/core/workers/chunks/f2ab8e49c7f17f488aa8.js +0 -1
- package/assets/esri/core/workers/chunks/f721756a6c1593f96409.js +0 -1
- package/assets/esri/core/workers/chunks/fb51f823b25c827c6b29.js +0 -1
- package/chunks/geometryEngineBase.js +0 -2
- package/geometry/geometryAdapters/json.js +0 -2
- package/geometry/geometryEngineJSON.js +0 -2
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +0 -2
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastClear.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechniqueConfiguration.js +0 -2
- /package/assets/esri/core/workers/chunks/{0823961e5d0bdedbf8cf.js.LICENSE.txt → 4f8ce5887102971bfa34.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js.LICENSE.txt → 532e3a59888e4cc13bd3.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js.LICENSE.txt → 755b2d883fba90c4e688.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js.LICENSE.txt → a014c17fc210620da738.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js.LICENSE.txt → a19be304219808268039.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7013],{69052(t,e,r){r.d(e,{hr:()=>n});var s=r(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,r=!1){return i(this.range,this.min,this.max,t,e,r)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,r){return t<e?e:e+a(this.range,t-e,r)}minimalMonotonic(t,e,r){return i(this.range,t,t+this.range,e,r)}center(t,e,r){return e=this.monotonic(t,e,r),this.normalize((t+e)/2,r)}diff(t,e,r){return this.monotonic(t,e,r)-t}shortestSignedDiff(t,e){t=this.normalize(t);const r=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(r)<Math.abs(s)?r:s}contains(t,e,r){return e=this.minimalMonotonic(t,e),(r=this.minimalMonotonic(t,r))>t&&r<e}}function i(t,e,r,s,n=0,i=!1){return(s-=n)<e?s+=a(t,e-s):s>r&&(s-=a(t,s-r)),i&&s===r&&(s=e),s+n}function a(t,e,r=0){return Math.ceil((e-r)/t)*t+r}const o=new n(0,2*Math.PI),u=(new n(-Math.PI,Math.PI),new n(0,360));r.d(e,["ie",0,u,"uC",0,o])},82534(t,e,r){function s(){return[0,0,0,1]}function n(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{o8:()=>n,vt:()=>s});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:n,create:s,fromValues:function(t,e,r,s){return[t,e,r,s]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},67026(t,e,r){r.d(e,{A6:()=>f,Xd:()=>c,Xr:()=>h,lw:()=>p,x8:()=>l});var s=r(29242),n=r(82534),i=r(51850),a=r(34304),o=r(35522),u=r(78955);function l(t,e,r){r*=.5;const s=Math.sin(r);return t[0]=s*e[0],t[1]=s*e[1],t[2]=s*e[2],t[3]=Math.cos(r),t}function c(t,e){const r=2*Math.acos(e[3]),s=Math.sin(r/2);return s>(0,a.FD)()?(t[0]=e[0]/s,t[1]=e[1]/s,t[2]=e[2]/s):(t[0]=1,t[1]=0,t[2]=0),r}function p(t,e,r){const s=e[0],n=e[1],i=e[2],a=e[3],o=r[0],u=r[1],l=r[2],c=r[3];return t[0]=s*c+a*o+n*l-i*u,t[1]=n*c+a*u+i*o-s*l,t[2]=i*c+a*l+s*u-n*o,t[3]=a*c-s*o-n*u-i*l,t}function d(t,e,r,s){const n=e[0],i=e[1],o=e[2],u=e[3];let l,c,p,d,h,y=r[0],f=r[1],m=r[2],g=r[3];return c=n*y+i*f+o*m+u*g,c<0&&(c=-c,y=-y,f=-f,m=-m,g=-g),1-c>(0,a.FD)()?(l=Math.acos(c),p=Math.sin(l),d=Math.sin((1-s)*l)/p,h=Math.sin(s*l)/p):(d=1-s,h=s),t[0]=d*n+h*y,t[1]=d*i+h*f,t[2]=d*o+h*m,t[3]=d*u+h*g,t}function h(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function y(t,e){const r=e[0]+e[4]+e[8];let s;if(r>0)s=Math.sqrt(r+1),t[3]=.5*s,s=.5/s,t[0]=(e[5]-e[7])*s,t[1]=(e[6]-e[2])*s,t[2]=(e[1]-e[3])*s;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);const n=(r+1)%3,i=(r+2)%3;s=Math.sqrt(e[3*r+r]-e[3*n+n]-e[3*i+i]+1),t[r]=.5*s,s=.5/s,t[3]=(e[3*n+i]-e[3*i+n])*s,t[n]=(e[3*n+r]+e[3*r+n])*s,t[i]=(e[3*i+r]+e[3*r+i])*s}return t}function f(t,e,r,s){const n=.5*Math.PI/180;e*=n,r*=n,s*=n;const i=Math.sin(e),a=Math.cos(e),o=Math.sin(r),u=Math.cos(r),l=Math.sin(s),c=Math.cos(s);return t[0]=i*u*c-a*o*l,t[1]=a*o*c+i*u*l,t[2]=a*u*l-i*o*c,t[3]=a*u*c+i*o*l,t}const m=u.C,g=u.hZ,b=u.WQ,S=p,A=u.hs,v=u.Om,_=u.Cc,x=u.Bw,w=x,M=u.m3,q=M,I=u.S8,F=u.t2,R=u.aI,O=(0,i.vt)(),C=(0,i.fA)(1,0,0),T=(0,i.fA)(0,1,0),P=(0,n.vt)(),E=(0,n.vt)(),N=(0,s.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,e){const r=e[0],s=e[1],n=e[2];return t[0]=r,t[1]=s,t[2]=n,t[3]=Math.sqrt(Math.abs(1-r*r-s*s-n*n)),t},conjugate:h,copy:m,dot:v,equals:R,exactEquals:F,fromEuler:f,fromMat3:y,getAxisAngle:c,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const r=e[0],s=e[1],n=e[2],i=e[3],a=r*r+s*s+n*n+i*i,o=a?1/a:0;return t[0]=-r*o,t[1]=-s*o,t[2]=-n*o,t[3]=i*o,t},len:w,length:x,lerp:_,mul:S,multiply:p,normalize:I,random:function(t){const e=a.Ov,r=e(),s=e(),n=e(),i=Math.sqrt(1-r),o=Math.sqrt(r);return t[0]=i*Math.sin(2*Math.PI*s),t[1]=i*Math.cos(2*Math.PI*s),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t},rotateX:function(t,e,r){r*=.5;const s=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u+a*o,t[1]=n*u+i*o,t[2]=i*u-n*o,t[3]=a*u-s*o,t},rotateY:function(t,e,r){r*=.5;const s=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u-i*o,t[1]=n*u+a*o,t[2]=i*u+s*o,t[3]=a*u-n*o,t},rotateZ:function(t,e,r){r*=.5;const s=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u+n*o,t[1]=n*u-s*o,t[2]=i*u+a*o,t[3]=a*u-i*o,t},rotationTo:function(t,e,r){const s=(0,o.Om)(e,r);return s<-.999999?((0,o.$A)(O,C,e),(0,o.Il)(O)<1e-6&&(0,o.$A)(O,T,e),(0,o.S8)(O,O),l(t,O,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.$A)(O,e,r),t[0]=O[0],t[1]=O[1],t[2]=O[2],t[3]=1+s,I(t,t))},scale:A,set:g,setAxes:function(t,e,r,s){const n=N;return n[0]=r[0],n[3]=r[1],n[6]=r[2],n[1]=s[0],n[4]=s[1],n[7]=s[2],n[2]=-e[0],n[5]=-e[1],n[8]=-e[2],I(t,y(t,n))},setAxisAngle:l,slerp:d,sqlerp:function(t,e,r,s,n,i){return d(P,e,n,i),d(E,r,s,i),d(t,P,E,2*i*(1-i)),t},sqrLen:q,squaredLength:M,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),r.d(e,["hZ",0,g,"t2",0,F])},93146(t,e,r){r.d(e,{z:()=>n});class s{constructor(t){this._import=t,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async t=>(this.module=t,t))),this._promise}}function n(t){return new s(async()=>{const e=await t();return!1===e.isLoaded?.()&&await e.load(),e})}},95696(t,e,r){r.d(e,{A:()=>l});var s,n=r(5482),i=r(69540),a=r(25482),o=r(91429),u=r(93223);let l=class extends((0,i.OU)(a.o)){static{s=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new s}};(0,n.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=s=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},18251(t,e,r){r.d(e,{A:()=>l});var s=r(5482),n=r(69540),i=r(25482),a=r(91429),o=r(51850),u=r(93223);let l=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,o.vt)()}};(0,s.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,s.Cg)([(0,a.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},73836(t,e,r){r.d(e,{A:()=>h});var s=r(5482),n=r(69540),i=r(25482),a=r(91429),o=r(58083),u=r(9093),l=r(67026),c=r(82534),p=r(51850),d=r(24770);let h=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(d.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,d.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.o8)((0,d.yo)(t)),this.rotationAngle=(0,d.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,l.x8)(y,(0,d.yo)(this.rotation),(0,d.$I)(this.rotation)),(0,o.o1)(t,y,this.translation,this.scale),t}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,o.t2)(this.localMatrix,t.localMatrix)}};(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"translation",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAxis",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAngle",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"scale",void 0),(0,s.Cg)([(0,a.MZ)()],h.prototype,"rotation",null),(0,s.Cg)([(0,a.MZ)()],h.prototype,"localMatrix",null),(0,s.Cg)([(0,a.MZ)()],h.prototype,"localMatrixInverse",null),h=(0,s.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],h);const y=(0,c.vt)()},24770(t,e,r){r.d(e,{$I:()=>m,AU:()=>h,g7:()=>f,i4:()=>c,ui:()=>p,vt:()=>l,yo:()=>y});var s=r(34727),n=r(58083),i=r(67026),a=r(82534),o=r(35522),u=r(51850);function l(t=b){return[t[0],t[1],t[2],t[3]]}function c(t,e,r=l()){return(0,o.C)(r,t),r[3]=e,r}function p(t,e=l()){const r=(0,n.l)(S,t);return g(e,(0,s.KJ)((0,i.Xd)(e,r))),e}function d(t,e,r=l()){return(0,i.x8)(S,t,m(t)),(0,i.x8)(A,e,m(e)),(0,i.lw)(S,A,S),g(r,(0,s.KJ)((0,i.Xd)(r,S)))}function h(t,e,r,s=l()){return c(u.Cw,t,v),c(u.JP,e,_),c(u.Cb,r,x),d(v,_,v),d(v,x,s),s}function y(t){return t}function f(t){return t[3]}function m(t){return(0,s.kU)(t[3])}function g(t,e){return t[3]=e,t}const b=[0,0,1,0],S=(0,a.vt)(),A=(0,a.vt)(),v=(l(),l()),_=l(),x=l();r.d(e,["up",0,b])},63579(t,e,r){r.d(e,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>h,fH:()=>f,in:()=>y,yr:()=>l});var s=r(11254),n=r(4576),i=r(17676),a=r(20557);class o{constructor(t,e,r){this.assetName=t,this.assetMimeType=e,this.parts=r}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&(0,n.aI)(this.parts,t.parts,(t,e)=>t.equals(e))}isOnService(t){return this.parts.every(e=>e.isOnService(t))}makeHash(){let t="";for(const e of this.parts)t+=e.partHash;return t}async toBlob(t){const{parts:e}=this;if(1===e.length)return e[0].toBlob(t);const r=await Promise.all(e.map(e=>e.toBlob(t)));return(0,i.Te)(t),new Blob(r)}}class u{constructor(t,e){this.partUrl=t,this.partHash=e}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(t){const{data:e}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(t),e}}function l(t){return function(t){switch(t?.type){case"client":return Array.isArray(t.files)?t.files.some(d):d(t.files);case"service":return t.assets.some(d);case"loadable":return!0;default:return!1}}(t?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function d(t){if(t instanceof File){const{type:e,name:r}=t;return c.test(e)||p.test(r)}return c.test(t.assetMimeType)||p.test(t.assetName)}function h(t,e){if(!t)return!1;const{source:r}=t;return function(t,e){return"service"===t.type&&t.assets.every(t=>t.isOnService(e))}(r,e)}function y(t,e){if(t===e)return!0;const{source:r}=t,{source:s}=e;if(r===s)return!0;if("service"===r.type&&"service"===s.type){if(r.assets.length!==s.assets.length)return!1;const t=(t,e)=>t.assetName<e.assetName?-1:t.assetName>e.assetName?1:0,e=[...r.assets].sort(t),n=[...s.assets].sort(t);for(let t=0;t<e.length;++t)if(!e[t].equals(n[t]))return!1;return!0}return!1}function f(t,e){return t instanceof File?(0,a.rq)(t,e):(0,a.z$)(t.assetMimeType,t.assetName,e)}function m(t){switch(t.type){case"client":return Array.isArray(t.files)?t.files:[t.files];case"service":return t.assets;case"loadable":return}}function g(t){return!!t.original}},27615(t,e,r){r.d(e,{CK:()=>u,Hq:()=>o,MW:()=>l,TE:()=>c,yJ:()=>p});var s=r(35522),n=r(86738),i=r(95696),a=r(18251);function o(t){return null!=t.origin}function u(t){return o(t.vertexSpace)}function l(t,e){if(!o(t))return null;const[r,s,i]=t.origin;return new n.A({x:r,y:s,z:i,spatialReference:e})}function c(t,e){const{x:r,y:s,z:n,spatialReference:o}=t,u=[r,s,n??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(o))?new a.A({origin:u}):new i.A({origin:u})}function p(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,s.t2)(t.origin,e.origin))}},52039(t,e,r){r.d(e,{O7:()=>p,el:()=>u});var s=r(69052),n=(r(49186),r(17676)),i=(r(5443),r(39829),r(82799),r(16930)),a=r(93146),o=(r(80754),r(21325));async function u(t,e,r){Array.isArray(t)||(t=[t]),null!=e&&"object"==typeof e&&"authMode"in e&&(r=e);let s=null;for(const e of t)s??=e?.spatialReference;if(!s)return t;const i=(0,o.Vp)(s);if(!i)return t;const[a,u]=i.valid;let p=!1;for(const e of t){if(!e)continue;if("point"===e.type){p||=e.x>=u,p||=e.x<=a;continue}const{extent:t}=e;if(null==t){p=!0;break}p||=t.xmin>=u,p||=t.xmin<=a,p||=t.xmax>=u,p||=t.xmax<=a}if(!p)return t;const[{foldInto360Range:d},h]=await(0,n.qr)(Promise.all([l.getImportPromise(),c.getImportPromise()]),r),y=h.fromSpatialReference(s);return t.map(t=>{if(null==t||"mesh"===t.type)return t;const e=h.fromGeometry(t),r=h.toGeometry(d(e,y),s);return"extent"===t.type&&1===r?.rings.length?r.extent:r})}const l=(0,a.z)(()=>r.e(4144).then(r.bind(r,4144))),c=(0,a.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(5756),r.e(3299),r.e(1550)]).then(r.bind(r,78125)));function p(t,e,r){const s=(0,o.Vp)(r);if(null==s)return t;const[n,i]=s.valid,a=2*i;let u=0,l=0;e>i?u=Math.ceil(Math.abs(e-i)/a):e<n&&(u=-Math.ceil(Math.abs(e-n)/a)),t>i?l=Math.ceil(Math.abs(t-i)/a):t<n&&(l=-Math.ceil(Math.abs(t-n)/a));let c=t+(u-l)*a;const p=c-e;return p>i?c-=a:p<n&&(c+=a),c}function d(t){const e=(0,o.Vp)(t);if(null==e)return null;const[r,n]=e.valid;return new s.hr(r,n)}const h=d(i.A.WGS84);d(i.A.WebMercator),r.d(e,["Y_",0,h])},80754(t,e,r){r.d(e,{kS:()=>l,kd:()=>u});var s=r(82799),n=r(16930),i=r(60408),a=r(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function u(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,a.Ed)(t))for(const r of function(t){return(0,i.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of r){if((0,a.aO)(t)){const[r,s]=t.c;r[0]+=e,s[0]+=e;continue}if((0,a.FG)(t)){const[r,s]=t.a;r[0]+=e,s[0]+=e;continue}if((0,a.n1)(t)){const[r,s,n]=t.b;r[0]+=e,s[0]+=e,n[0]+=e;continue}t[0]+=e}for(const r of function(t){return(0,i.Bi)(t)?t.rings:t.paths}(t))for(const t of r)t[0]+=e;return t}r.d(e,["j7",0,o])},99352(t,e,r){r.d(e,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},65515(t,e,r){r.r(e),r.d(e,{default:()=>Y});var s=r(5482),n=r(92602),i=r(11254),a=r(4576),o=r(49186),u=r(44208),l=r(66552),c=r(92474),p=r(53966),d=r(93637),h=r(17676),y=r(36708),f=r(84952),m=r(13069),g=r(91429),b=r(5443),S=r(16930),A=r(95696),v=r(27615),_=r(63579),x=r(52106),w=r(86211);function M(t){return"object"==typeof t&&null!=t&&"objectId"in t&&!!t.objectId}function q(t){return"object"==typeof t&&null!=t&&"globalId"in t&&!!t.globalId}function I(t){return t.every(q)}var F=r(91218),R=r(65864),O=r(73836),C=r(21325);async function T(t,e,r){const{geometry:s}=e,n={...e.attributes};if(null!=r&&"mesh"===s?.type){const{transformFieldRoles:e}=r,{origin:i,spatialReference:a,vertexSpace:o}=s,u=s.transform??new O.A,l="local"===o.type,c=t.spatialReference,p=c.isGeographic,d=(0,C.aI)(c,a),h=(0,F.isEqualBaseGCS)(a,c)&&(0,F.canProjectWithoutEngine)(a,c);if(!(l&&p&&h||!l&&!p&&d))return null;const y=(0,F.projectWithoutEngine)(i,a,c);if(null==y)return null;if(n[e.originX]=y.x,n[e.originY]=y.y,n[e.originZ]=y.z??0,null!=u){const{translation:t,scale:r,rotation:s}=u,i=l?1:(0,w.KX)(a)/(0,w.KX)(c);n[e.translationX]=t[0]*i,n[e.translationY]=t[2]*i,n[e.translationZ]=-t[1]*i,n[e.scaleX]=r[0],n[e.scaleY]=r[2],n[e.scaleZ]=r[1],n[e.rotationX]=s[0],n[e.rotationY]=s[2],n[e.rotationZ]=-s[1],n[e.rotationDeg]=s[3]}return{attributes:n}}return null==s?{attributes:n}:"mesh"===s.type||"extent"===s.type?null:{geometry:s.toJSON(),attributes:n}}async function P(t,e){const r=await Promise.all((e.addAttachments??[]).map(e=>E(t,e))),s=await Promise.all((e.updateAttachments??[]).map(e=>E(t,e))),n=e.deleteAttachments??[];return r.length||s.length||n.length?{adds:r,updates:s,deletes:[...n]}:null}async function E(t,e){const{feature:r,attachment:s}=e,{globalId:n,name:i,contentType:a,data:o,keywords:u,uploadId:l}=s,c={globalId:n};if(r&&("attributes"in r?c.parentGlobalId=r.attributes?.[t.globalIdField]:r.globalId&&(c.parentGlobalId=r.globalId)),l)c.uploadId=l;else if(o){const t=await(0,f._0)(o);t&&(c.contentType=t.mediaType,c.data=t.data),o instanceof File&&(c.name=o.name)}return i&&(c.name=i),a&&(c.contentType=a),u&&(c.keywords=u),c}function N(t,e,r){if(!e||0===e.length)return[];if(r&&I(e))return e.map(t=>t.globalId);if(function(t){return t.every(M)}(e))return e.map(t=>t.objectId);const s=r?t.globalIdField:t.objectIdField;return s?e.map(t=>t.getAttribute(s)):[]}function D(t){const e=!0===t.success?null:t.error||{code:void 0,description:"Feature edit failed"};return{objectId:t.objectId,globalId:t.globalId,error:e?new o.A("feature-layer-source:edit-failure",e.description,{code:e.code}):null}}function Q(t,e){return new x.A({attributes:t.attributes,geometry:(0,R.rS)({...t.geometry,spatialReference:e})})}function V(t,e){return{adds:t?.adds?.map(t=>Q(t,e))||[],updates:t?.updates?.map(t=>({original:Q(t[0],e),current:Q(t[1],e)}))||[],deletes:t?.deletes?.map(t=>Q(t,e))||[],spatialReference:e}}var Z=r(64714),j=r(64314),J=r(60694),U=r(15426),G=r(20557),k=r(99199),B=r(96520),z=r(97552),X=r(79677),L=r(20816);const $=new l.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),W=new l.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let Y=class extends c.x_{constructor(t){super(t),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer","Annotation Layer","Dimension Layer"]),this.refresh=(0,h.sg)(async()=>{await this.load();const t=this.sourceJSON.editingInfo?.lastEditDate;if(null==t)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const e=t!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:e,updates:e?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(t){const e=this.layer.sourceJSON,r=this._fetchService(e,{...t}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,t)).then(()=>this._ensureLatestMetadata(t));return this.addResolvingPromise(r),Promise.resolve(this)}initialize(){this.addHandles([(0,y.wB)(()=>{const t=this.layer;return t&&"lastEditsEventDate"in t?t.lastEditsEventDate:null},t=>this._handleLastEditsEventChange(t))])}destroy(){this._removeEditInterceptor()}get queryTask(){const{capabilities:t,parsedUrl:e,gdbVersion:r,spatialReference:s,fieldsIndex:n,uniqueIdFields:i}=this.layer,a="infoFor3D"in this.layer?this.layer.infoFor3D:null,o="dynamicDataSource"in this.layer?this.layer.dynamicDataSource:null,l=(0,u.A)("featurelayer-pbf")&&t?.query.supportsFormatPBF&&null==a,c=l&&t?.query.supportsFormatPBFWithCurves,p=t?.operations?.supportsQueryAttachments??!1,d=t?.query?.relativeTimeBinWindow??0,h=e.path;return new j.A({dynamicDataSource:o,fieldsIndex:n,gdbVersion:r,infoFor3D:a,pbfSupported:l,pbfSupportedWithCurves:c,queryAttachmentsSupported:p,relativeTimeBinWindow:d,sourceSpatialReference:s,uniqueIdFields:i,url:h})}async addAttachment(t,e,r){await this.load();const{layer:s}=this;await(0,U.VA)(s,"editing");const n=t.attributes[s.objectIdField],a=s.parsedUrl.path+"/"+n+"/addAttachment",o=this._getLayerRequestOptions({query:r}),u=this._getFormDataForAttachment(e,o.query);try{return D((await(0,i.A)(a,{body:u})).data.addAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(n,t)}}async updateAttachment(t,e,r,s){await this.load();const{layer:n}=this;await(0,U.VA)(n,"editing");const a=t.attributes[n.objectIdField],o=n.parsedUrl.path+"/"+a+"/updateAttachment",u=this._getLayerRequestOptions({query:{attachmentId:e,...s}}),l=this._getFormDataForAttachment(r,u.query);try{return D((await(0,i.A)(o,{body:l})).data.updateAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(a,t)}}async applyEdits(t,e){await this.load();const{layer:r}=this;await(0,U.VA)(r,"editing");const s="infoFor3D"in r?r.infoFor3D:null,n=null!=s,u=n||(e?.globalIdUsed??!1),l=n?await this._uploadMeshesAndGetAssetMapEditsJSON(t):null,c=t.addFeatures?.map(t=>T(this.layer,t,s))??[],p=(await Promise.all(c)).filter(a.Ru),d=t.updateFeatures?.map(t=>T(this.layer,t,s))??[],h=(await Promise.all(d)).filter(a.Ru),y=N(this.layer,t.deleteFeatures,u);(0,B.u)(p,h,r.spatialReference);const f=await P(this.layer,t),m=r.capabilities.editing.supportsAsyncApplyEdits&&n,g=e?.gdbVersion||r.gdbVersion,b={gdbVersion:g,rollbackOnFailure:e?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:e?.returnEditMoment,trueCurveClient:e?.editsRespectTrueCurves,usePreviousEditMoment:e?.usePreviousEditMoment,async:m};await(0,L.ZJ)(this.layer.url,g,!0);const S=(0,L.w5)(this.layer.url,g||null);if(await(0,L.We)(r.url,g,r.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");e?.returnServiceEditsOption?(b.edits=JSON.stringify([{id:r.layerId,adds:p.length?p:null,updates:h.length?h:null,deletes:y.length?y:null,attachments:f,assetMaps:l}]),b.returnServiceEditsOption=$.toJSON(e?.returnServiceEditsOption),b.returnServiceEditsInSourceSR=e?.returnServiceEditsInSourceSR):(b.adds=p.length?JSON.stringify(p):null,b.updates=h.length?JSON.stringify(h):null,b.deletes=y.length?u?JSON.stringify(y):y.join(","):null,b.attachments=f&&JSON.stringify(f),b.assetMaps=null!=l?JSON.stringify(l):void 0);const A=this._getLayerRequestOptions({method:"post",query:b});S&&(A.authMode="immediate",A.query.returnEditMoment=!0,A.query.sessionId=L.TA);const v=e?.returnServiceEditsOption?r.url:r.parsedUrl.path;let _;try{_=m?await this._asyncApplyEdits(v+"/applyEdits",A):await(0,i.A)(v+"/applyEdits",A)}catch(t){if(!function(t){const e=t.details.raw,r=+e.code,s=+e.extendedCode;return 500===r&&(-2147217144===s||-2147467261===s)}(t))throw t;A.authMode="immediate",_=m?await this._asyncApplyEdits(v+"/applyEdits",A):await(0,i.A)(v+"/applyEdits",A)}return this._createEditsResult(_)}async deleteAttachments(t,e,r){await this.load();const{layer:s}=this;await(0,U.VA)(s,"editing");const n=t.attributes[s.objectIdField],a=s.parsedUrl.path+"/"+n+"/deleteAttachments";try{return(await(0,i.A)(a,this._getLayerRequestOptions({query:{attachmentIds:e.join(","),...r},method:"post"}))).data.deleteAttachmentResults.map(D)}catch(t){throw this._createAttachmentErrorResult(n,t)}}fetchRecomputedExtents(t={}){const e=t.signal;return this.load({signal:e}).then(async()=>{const e=this._getLayerRequestOptions({...t,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:n}=await(0,i.A)(`${s}/${r}`,e),{id:a,extent:o,fullExtent:u,timeExtent:l}=n,c=o||u;return{id:a,fullExtent:c&&b.A.fromJSON(c),timeExtent:l&&X.A.fromJSON({start:l[0],end:l[1]})}})}async queryAttachments(t,e={}){await this.load();const r=this._getLayerRequestOptions(e);return this.queryTask.executeAttachmentQuery(t,r)}async queryFeatures(t,e){await this.load();const r=await this.queryTask.execute(t,{...e,query:this._createRequestQueryOptions(e)});if(t.outStatistics?.length&&r.features.length){const e=new Map;if(r.features.forEach(r=>{const s=r.attributes;t.outStatistics?.forEach(({outStatisticFieldName:t})=>{if(t){const r=t.toLowerCase();r&&r in s&&t!==r&&(s[t]=s[r],delete s[r],e.set(r,t))}})}),null!=r.fields)for(const t of r.fields){const r=e.get(t.name.toLowerCase());null!=r&&(t.name=r)}}return r}async queryFeaturesJSON(t,e){return await this.load(),this.queryTask.executeJSON(t,{...e,query:this._createRequestQueryOptions(e)})}async queryObjectIds(t,e){return await this.load(),this.queryTask.executeForIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeatureCount(t,e){return await this.load(),this.queryTask.executeForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryExtent(t,e){return await this.load(),this.queryTask.executeForExtent(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeatures(t,e){return await this.load(),this.queryTask.executeRelationshipQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeaturesCount(t,e){return await this.load(),this.queryTask.executeRelationshipQueryForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryPivot(t,e){return await this.load(),this.queryTask.executePivotQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopFeatures(t,e){return await this.load(),this.queryTask.executeTopFeaturesQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryAttributeBins(t,e){return await this.load(),this.queryTask.executeAttributeBinsQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopObjectIds(t,e){return await this.load(),this.queryTask.executeForTopIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopExtents(t,e){return await this.load(),this.queryTask.executeForTopExtents(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopCount(t,e){return await this.load(),this.queryTask.executeForTopCount(t,{...e,query:this._createRequestQueryOptions(e)})}async fetchPublishingStatus(){if(!(0,J.Wo)(this.layer.url))return"unavailable";const t=(0,f.fj)(this.layer.url,"status"),e=await(0,i.A)(t,{query:{f:"json"}});return W.fromJSON(e.data.status)}async uploadAssets(t,e){const{uploadAssets:s}=await r.e(1384).then(r.bind(r,31384));return s(t,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},e)}_handleLastEditsEventChange(t){const e=this.layer;if(null==t||!("capabilities"in e)||!("effectiveCapabilities"in e))return;if(e.capabilities?.operations?.supportsEditing||!e.effectiveCapabilities?.operations?.supportsEditing)return;let r=e.url;null!=r&&("layerId"in e&&(r=(0,f.fj)(r,e.layerId.toString())),this._getOrCreateEditInterceptor(r).before=e=>{const r=e.requestOptions.method??"auto";if("auto"===r||"head"===r){const r=e.requestOptions.query??{};r._ts=t.getTime(),e.requestOptions.query=r}})}_getOrCreateEditInterceptor(t){return null==this._editInterceptor&&(this._editInterceptor={urls:t},n.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,a.TF)(n.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(t,e){const r=(await(0,i.A)(t,e)).data.statusUrl;for(;;){const t=(await(0,i.A)(r,{query:{f:"json"},responseType:"json"})).data;switch(t.status){case"Completed":return(0,i.A)(t.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,h.Pl)(H)}}_createRequestQueryOptions(t){const e={...this.layer.customParameters,token:this.layer.apiKey,...t?.query};return this.layer.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),e}async _fetchService(t,e){if(!t){const r={};(0,u.A)("featurelayer-advanced-symbols")&&(r.returnAdvancedSymbols=!0),e?.cacheBust&&(r._ts=Date.now());const{data:s}=await(0,i.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:r,signal:e?.signal}));t=s}this.layer.applyPreferredHost(t),this.sourceJSON=await this._patchServiceJSON(t,e?.signal);const r=t.type;if(!this.supportedSourceTypes.has(r))throw new o.A("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}async _patchServiceJSON(t,e){if("Table"!==t.type&&t.geometryType&&!t?.drawingInfo?.renderer&&!t.defaultSymbol){const e=(0,Z.F0)(t.geometryType).renderer;(0,d.sM)("drawingInfo.renderer",e,t)}if("esriGeometryMultiPatch"===t.geometryType&&t.infoFor3D&&(t.geometryType="mesh"),null==t.extent)try{const{data:r}=await(0,i.A)(this.layer.url,this._getLayerRequestOptions({signal:e}));r.spatialReference&&(t.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:r.spatialReference})}catch(t){(0,h.QP)(t)}return t}async _ensureLatestMetadata(t){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...t,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(t){const{addAssetFeatures:e}=t;if(!e?.length)return null;if(await this._areAllAssetsAlreadyMapped(e))return null;const s=t.addFeatures.filter(t=>t.geometry);if(e.length!==s.length+t.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");const n=new Array,i=new Map;for(const t of e){const{geometry:e}=t,{vertexSpace:s}=e;if((0,v.Hq)(s))n.push(e);else{const s=e.origin,{convertMeshVertexSpace:a}=await Promise.all([r.e(6860),r.e(4508)]).then(r.bind(r,28846)),o=await a(e,new A.A({origin:[s.x,s.y,s.z??0]}));i.set(o,e),t.geometry=o,n.push(o)}}await this.uploadAssets(n);for(const[t,e]of i)e.addExternalSources(t.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(e),updates:[],deletes:[]}}_getAssetMapEditsJSON(t){const e=new Array,r=this.layer.globalIdField,s=this.layer.parsedUrl;for(const n of t){const t=n.geometry,{metadata:i}=t,a=i.getExternalSourcesOnService(s),o=n.getAttribute(r);if(0===a.length){p.A.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=a.find(_.dK)??a[0];for(const t of u.assets)1===t.parts.length?e.push({globalId:(0,m.yS)(),parentGlobalId:o,assetName:t.assetName,assetHash:t.parts[0].partHash,flags:[]}):p.A.getLogger(this).error(`Skipping asset ${t.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return e}_createEditsResult(t){const e=t.data,{layerId:r}=this.layer,s=[];let n=null;if(Array.isArray(e))for(const t of e)s.push({id:t.id,editedFeatures:t.editedFeatures}),t.id===r&&(n={addResults:t.addResults??[],updateResults:t.updateResults??[],deleteResults:t.deleteResults??[],attachments:t.attachments,editMoment:t.editMoment});else n=e;const i=function(t){const e=t?.assetMaps;if(e){for(const t of e.addResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`);for(const t of e.updateResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`)}const r=t?.attachments,s={addFeatureResults:t?.addResults?.map(D)??[],updateFeatureResults:t?.updateResults?.map(D)??[],deleteFeatureResults:t?.deleteResults?.map(D)??[],addAttachmentResults:r?.addResults?r.addResults.map(D):[],updateAttachmentResults:r?.updateResults?r.updateResults.map(D):[],deleteAttachmentResults:r?.deleteResults?r.deleteResults.map(D):[]};return t?.editMoment&&(s.editMoment=t.editMoment),s}(n);if(s.length>0){i.editedFeatureResults=[];for(const t of s){const{editedFeatures:e}=t,r=e?.spatialReference?new S.A(e.spatialReference):null;i.editedFeatureResults.push({layerId:t.id,editedFeatures:V(e,r)})}}return i}_createAttachmentErrorResult(t,e){const r=e.details.messages?.[0]||e.message,s=e.details.httpStatus||e.details.messageCode;return{objectId:t,globalId:null,error:new o.A("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(t,e){const r=t instanceof FormData?t:t&&t.elements?new FormData(t):null;if(r)for(const t in e){const s=e[t];null!=s&&(r.set?r.set(t,s):r.append(t,s))}return r}_getLayerRequestOptions(t={}){const{layer:e,layer:{parsedUrl:r,gdbVersion:s}}=this;return{...t,query:{gdbVersion:s,layer:"dynamicDataSource"in e&&e.dynamicDataSource?JSON.stringify({source:e.dynamicDataSource}):void 0,...r.query,f:"json",...this._createRequestQueryOptions(t)},responseType:"json"}}async _areAllAssetsAlreadyMapped(t){const{layer:e}=this,{globalIdField:r,parsedUrl:s}=e,n="infoFor3D"in e?e.infoFor3D:null;if(null==n||null==r)return!1;const i=(0,G.JZ)(n);if(null==i)return!1;const o=(0,f.fj)(s.path,`../${i.id}`),u=new Array;for(const e of t){if(!(e.geometry.metadata.getExternalSourcesOnService(s).length>0))return!1;u.push(e)}const l=u.map(t=>t.getAttribute(r)).filter(a.Ru);if(0===l.length)return!1;const{assetMapFieldRoles:{parentGlobalId:c,assetHash:p}}=n,d=new z.A({where:`${c} IN (${l.map(t=>`'${t}'`)})`,outFields:[p,c],returnGeometry:!1}),h=await(0,k.s)(o,d),{features:y}=h;return 0!==y.length&&!u.some(t=>{const e=t.getAttribute(r);if(!e)return!0;const{metadata:n}=t.geometry,i=y.filter(t=>t.getAttribute(c)===e);if(0===i.length)return!0;const a=i.map(t=>t.getAttribute(p));return n.getExternalSourcesOnService(s).flatMap(({source:t})=>t.assets.flatMap(t=>t.parts.map(t=>t.partHash))).some(t=>a.every(e=>t!==e))})}};(0,s.Cg)([(0,g.MZ)()],Y.prototype,"type",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"layer",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"supportedSourceTypes",void 0),(0,s.Cg)([(0,g.MZ)({readOnly:!0})],Y.prototype,"queryTask",null),Y=(0,s.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],Y);const H=1e3},64314(t,e,r){r.d(e,{A:()=>M});var s=r(5482),n=r(69622),i=r(49186),a=r(44208),o=r(17676),u=r(84952),l=r(91429),c=r(21325),p=r(20557),d=r(2272),h=r(65615),y=r(20615),f=r(74910),m=r(78286),g=r(99199),b=r(62815),S=r(63746);class A{constructor(t){this._options=t,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=A._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(t){"string"==typeof t&&(this.featureSet.objectIdFieldName=t)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);const{spatialReference:t,features:e}=this.featureSet;if(t)for(const{geometry:r}of e)r&&(r.spatialReference=t)}feature(){this._attributesClass??=(0,S._)(this.featureSet.fields?.map(t=>t.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([t,e]){this.featureSet.features.at(-1).centroid={x:t,y:e}}geometry(t,e,r){this._previousX=this._previousY=0,this._lengths=r;let s,{hasZ:n,hasM:i}=this.featureSet;switch(n??=!1,i??=!1,this._i=0,this._vertex=[0,0],n&&this._vertex.push(0),i&&this._vertex.push(0),this._finishVertex=A._finishVertexNonPoint,e){case"esriGeometryPoint":this._point={x:0,y:0},s=this._point,this._finishVertex=n?i?A._finishVertexPointXYZM:A._finishVertexPointXYZ:i?A._finishVertexPointXYM:A._finishVertexPointXY;break;case"esriGeometryMultipoint":s={points:[],hasZ:n,hasM:i},this._part=s.points,this._parts=[];break;case"esriGeometryPolyline":s={paths:[],hasZ:n,hasM:i},this._parts=s.paths,this._part=[];break;case"esriGeometryPolygon":s={rings:[],hasZ:n,hasM:i},this._parts=s.rings,this._part=[]}1===t?(this.featureSet.queryGeometry=s,this.featureSet.queryGeometryType=e,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=s}coord(t){const e=this._vertex;e[this._i++]=t,this._i<e.length||(this._i=0,this._transformInPlace&&(e[0]+=this._previousX,e[1]+=this._previousY,[this._previousX,this._previousY]=e,this._transformInPlace(e)),this._finishVertex(this))}curvedGeometry(t,e,r,s){let n,{hasZ:i,hasM:a}=this.featureSet;switch(i??=!1,a??=!1,t){case"esriGeometryPoint":case"esriGeometryMultipoint":throw new Error(`Curved ${t} does not make sense`);case"esriGeometryPolyline":n={paths:[],curvePaths:[],hasZ:i,hasM:a},this._parts=n.curvePaths,this._part=[];break;case"esriGeometryPolygon":n={rings:[],curveRings:[],hasZ:i,hasM:a},this._parts=n.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=n}startCurvedPart(t){this._part.push(this._transform(t))}finishCurvedPart(t){this._parts.push(this._part),this._part=[]}lineSegment(t,e){this._part.push(this._transform(e))}bezierSegment(t,e,r,s){this._part.push({b:[this._transform(e),this._transformXY(r),this._transformXY(s)]})}circularArcSegment(t,e,r){this._part.push({c:[this._transform(e),this._transformXY(r)]})}ellipticArcSegment(t,e,r,s,n,i,a,o){this._part.push({a:[this._transform(e),this._transformXY(r),s,n,i,a,o]})}static _finishVertexPointXY({_point:t,_vertex:e}){[t.x,t.y]=e}static _finishVertexPointXYZ({_point:t,_vertex:e}){[t.x,t.y,t.z]=e}static _finishVertexPointXYM({_point:t,_vertex:e}){[t.x,t.y,t.m]=e}static _finishVertexPointXYZM({_point:t,_vertex:e}){[t.x,t.y,t.z,t.m]=e}static _finishVertexNonPoint(t){const{_part:e,_parts:r,_lengths:s,_vertex:n}=t;e.push([...n]),e.length<s[r.length]||(t._previousX=t._previousY=0,t._part=[],r.push(e))}_setVertexTransformer(){const{sourceSpatialReference:t}=this._options,{spatialReference:e,hasZ:r,transform:s}=this.featureSet,n=r?(0,b.d)(t,e):1;this._transformInPlace??=(0,S.M)(this.featureSet,n),this._transformInPlaceXY??=(0,S.M)({transform:s})}_transform(t){const e=[...t];return this._transformInPlace?.(e),e}_transformXY(t){const e=[t[0],t[1]];return this._transformInPlaceXY?.(e),e}}var v=r(80893),_=r(22671),x=r(97552);async function w(t,e,r,s){const n=(0,d.Dl)(t),i={...r},a=x.A.from(e),o=!a.quantizationParameters;return await(0,v.IJ)(n,a,new A({sourceSpatialReference:a.sourceSpatialReference,applyTransform:o}),i,s)}let M=class extends n.A{constructor(t){super(t),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}async execute(t,e){const r=await this.executeJSON(t,e);return this.featureSetFromJSON(t,r,e)}async executeJSON(t,e){const r=this._normalizeQuery(t),s=null!=t.outStatistics?.[0],n=(0,a.A)("featurelayer-pbf-statistics");let i;if(this.pbfSupported&&(!s||n)&&(!t.returnTrueCurves||this.pbfSupportedWithCurves))try{i=await w(this.url,r,e,{uniqueIdFields:this.uniqueIdFields})}catch(t){if("query:parsing-pbf"!==t.name)throw t;this.pbfSupported=!1}return i??=await(0,g.e)(this.url,r,e,{uniqueIdFields:this.uniqueIdFields}),this._normalizeFields(i.fields),i}async featureSetFromJSON(t,e,s){if(!this._queryGet3DObjectFormat(t)||null==this.infoFor3D||!e.features)return _.A.fromJSON(e);const{meshFeatureSetFromJSON:n}=await(0,o.qr)(Promise.all([r.e(6860),r.e(118),r.e(8366)]).then(r.bind(r,40050)),s);return n(t,this.infoFor3D,e)}executeForCount(t,e){return(0,y.I)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(t,e){return(0,f.L)(this.url,this._normalizeQuery(t),e)}executeForIds(t,e){return(0,m.V)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(t,e){const[{default:s},{executeRelationshipQuery:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(r.bind(r,26591)),r.e(1763).then(r.bind(r,71763))]),e);let i=s.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeRelationshipQueryForCount(t,e){const[{default:s},{executeRelationshipQueryForCount:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(r.bind(r,26591)),r.e(1763).then(r.bind(r,71763))]),e);let i=s.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeAttachmentQuery(t,e){const{executeAttachmentQuery:s,fetchAttachments:n,processAttachmentQueryResult:i}=await(0,o.qr)(r.e(9239).then(r.bind(r,9239)),e),a=(0,d.Dl)(this.url);return i(a,await(this.queryAttachmentsSupported?s(a,t,e):n(a,t,e)))}async executeAttributeBinsQuery(t,e){const{executeAttributeBinsQuery:s}=await(0,o.qr)(r.e(3103).then(r.bind(r,33103)),e);return s(this.parsedUrl,t,e)}async executePivotQuery(t,e){const{executePivotQuery:s}=await(0,o.qr)(r.e(566).then(r.bind(r,80566)),e);return s(this.parsedUrl,t,e)}async executeTopFeaturesQuery(t,e){const{executeTopFeaturesQuery:s}=await(0,o.qr)(r.e(1273).then(r.bind(r,11273)),e);return s(this.parsedUrl,t,this.sourceSpatialReference,e)}async executeForTopIds(t,e){const{executeForTopIds:s}=await(0,o.qr)(r.e(1277).then(r.bind(r,21277)),e);return s(this.parsedUrl,t,e)}async executeForTopExtents(t,e){const{executeForTopExtents:s}=await(0,o.qr)(r.e(8018).then(r.bind(r,8018)),e);return s(this.parsedUrl,t,e)}async executeForTopCount(t,e){const{executeForTopCount:s}=await(0,o.qr)(r.e(980).then(r.bind(r,10980)),e);return s(this.parsedUrl,t,e)}_normalizeQuery(t){let e=x.A.from(t);e.sourceSpatialReference=e.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(e=e===t?e.clone():e,e.gdbVersion=t.gdbVersion||this.gdbVersion,e.dynamicDataSource=t.dynamicDataSource?h.A.from(t.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this,s=this._queryGet3DObjectFormat(t);if(null!=r&&s){if(e=e===t?e.clone():e,e.formatOf3DObjects=s,e.outSpatialReference&&!(0,c.aI)(e.outSpatialReference,this.sourceSpatialReference))throw new i.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==e.outFields||!e.outFields.includes("*")){e=e===t?e.clone():e,null==e.outFields&&(e.outFields=[]);const{originX:s,originY:n,originZ:i,translationX:a,translationY:o,translationZ:u,scaleX:l,scaleY:c,scaleZ:p,rotationX:d,rotationY:h,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;e.outFields.push(s,n,i,a,o,u,l,c,p,d,h,y,f)}}return e}_normalizeFields(t){if(null!=this.fieldsIndex&&null!=t)for(const e of t){const t=this.fieldsIndex.get(e.name);t&&Object.assign(e,t.toJSON())}}_queryGet3DObjectFormat({returnGeometry:t,multipatchOption:e,outStatistics:r}){return!0!==t||"xyFootprint"===e||r?null:(0,p.Hz)(this.infoFor3D)}};(0,s.Cg)([(0,l.MZ)({type:h.A})],M.prototype,"dynamicDataSource",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"gdbVersion",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"infoFor3D",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],M.prototype,"parsedUrl",null),(0,s.Cg)([(0,l.MZ)()],M.prototype,"pbfSupported",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"pbfSupportedWithCurves",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"queryAttachmentsSupported",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"relativeTimeBinWindow",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"sourceSpatialReference",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"uniqueIdFields",void 0),(0,s.Cg)([(0,l.MZ)({type:String})],M.prototype,"url",void 0),M=(0,s.Cg)([(0,l.$K)("esri.layers.graphics.sources.support.QueryTask")],M)},64714(t,e,r){r.d(e,{F0:()=>o,Vx:()=>c,e2:()=>d,f:()=>h});var s=r(44208),n=r(4718),i=r(99352),a=r(93470);function o(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?a.Cb:"esriGeometryPolyline"===t?a.yM:a.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function c(t,e){if((0,s.A)("esri-csp-restrictions"))return()=>e?{[e]:null,...t}:{...t};try{let r="";e&&(r+=`this${p(e)} = null;`);for(const e in t)r+=`this${p(e)} = ${JSON.stringify(t[e])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>e?{[e]:null,...t}:{...t}}}function p(t){return u.test(t)?`.${t}`:`[${JSON.stringify(t)}]`}function d(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(t)}}]}function h(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i.P,editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:e,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},20615(t,e,r){r.d(e,{I:()=>a});var s=r(2272),n=r(80893),i=r(97552);function a(t,e,r,a){return(0,n.gW)((0,s.Dl)(t),i.A.from(e),r,a)}},74910(t,e,r){r.d(e,{L:()=>o});var s=r(5443),n=r(2272),i=r(80893),a=r(97552);async function o(t,e,r){const o=(0,n.Dl)(t),u=await(0,i.Jf)(o,a.A.from(e),{...r}),l=u.extent;return!l||isNaN(l.xmin)||isNaN(l.ymin)||isNaN(l.xmax)||isNaN(l.ymax)?{count:u.count,extent:null}:{count:u.count,extent:s.A.fromJSON(l)}}},78286(t,e,r){r.d(e,{V:()=>a});var s=r(2272),n=r(80893),i=r(97552);async function a(t,e,r,a){const o=(0,s.Dl)(t),u=await(0,n.Pk)(o,i.A.from(e),r,a);return u.objectIds??function(t){if(t)return function(t){return!Array.isArray(t[0])}(t)?t:t.map(t=>JSON.stringify(t))}(u.uniqueIds)??[]}},99199(t,e,r){r.d(e,{e:()=>u,s:()=>o});var s=r(2272),n=r(80893),i=r(22671),a=r(97552);async function o(t,e,r,s){const n=await u(t,e,r,s);return i.A.fromJSON(n)}function u(t,e,r,i){const o=(0,s.Dl)(t),u={...r},l=a.A.from(e);return(0,n.eW)(o,l,l.sourceSpatialReference,u,i)}},63746(t,e,r){function s(t){return class{constructor(){for(const e of t)this[e]=null}}}function n(t,e=1){const{transform:r,hasZ:s,hasM:n}=t;if(null==r)return s&&1!==e?t=>{t[2]*=e}:null;const[i,a]=function(t,e,r,s){let{scale:n,translate:i,originPosition:a}=t;return"upperLeft"===a&&(n=n.map((t,e)=>1===e?-t:t)),e&&(n=n.map((t,e)=>2===e?t*s:t),i=i.map((t,e)=>2===e?t*s:t)),!e&&r&&(n=n.filter((t,e)=>2!==e),i=i.filter((t,e)=>2!==e)),[n,i]}(r,s,n,e),o=t.hasZ?3:2;return t=>{for(let e=0;e<t.length&&(e!==o||0!==t[e]);++e)t[e]=t[e]*i[e]+a[e]}}r.d(e,{M:()=>n,_:()=>s})},2272(t,e,r){r.d(e,{Dl:()=>l,gf:()=>p,jV:()=>u,lF:()=>c});var s=r(92602),n=r(70333),i=r(4718),a=r(84952),o=r(926);function u(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function l(t){return"string"==typeof t?(0,a.An)(t):(0,i.o8)(t)}function c(t,e,r){const s={};for(const n in t){if("declaredClass"===n)continue;const i=t[n];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))s[n]=i.map(t=>c(t));else if("object"==typeof i)if(i.toJSON){const t=i.toJSON(r?.[n]);s[n]=e?t:JSON.stringify(t)}else s[n]=e?i:JSON.stringify(i);else s[n]=i}return s}async function p(t,e,i){const a=function(t,e){return t?e&&(0,o.Qc)(t)?e:(0,o.getApiKey)(t)??n.id?.findCredential(t)?.token:null}(t,e);if(a)return a;!n.id&&s.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(4943),r.e(148)]).then(r.bind(r,50148));const u=await n.id.getCredential(t,i);return u?.token}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6977],{69622(t,e,r){r.d(e,{A:()=>I});var n=r(51447),s=r(71511),i=r(53966),o=r(97768),a=r(56454),c=r(16649),l=r(85537),u=r(96156),h=(r(44208),r(4718)),f=r(93687),d=r(11406),p=r(62788),y=r(47328),g=r(67867);class _ extends d.T{constructor(t,e){super(),this.propertyName=t,this.metadata=e,this.trackingTarget=new g.R(this),this.flags=0,this.flags=y.i.Dirty|(e.nonNullable?y.i.NonNullable:0)|(e.hasOwnProperty("value")?y.i.HasDefaultValue:0)|(void 0===e.get?y.i.DepTrackingInitialized:0)|(void 0===e.dependsOn?y.i.AutoTracked:0)}destroy(){this.flags&y.i.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t,e){t.mutable&&(0,p.gc)(this);const r=t.store,n=this.propertyName,s=this.flags,i=r.get(n);if(s&y.i.Computing)return i;if(!(s&y.i.Dirty)&&r.has(n))return i;let o;this.flags|=y.i.Computing;const{host:a}=t;s&y.i.AutoTracked?o=(0,p.a)(this.trackingTarget,e,a):((0,p.Xr)(a,this),o=e.call(a)),this.flags|=y.i.DepTrackingInitialized,r.set(n,o,1);const c=r.get(n);return c===i?this.flags&=~y.i.Dirty:(0,p.F_)(this.commit,this),this.flags&=~y.i.Computing,c}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~y.i.Dirty,this.onCommitted()}onInvalidated(){~this.flags&y.i.Overridden&&(this.flags|=y.i.Dirty);const t=this._observers;if(t&&t.length>0)for(const e of t)e.onInvalidated()}onCommitted(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onCommitted()}}}var v=r(35666);class m{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){const e=new m;return this._values.forEach((r,n)=>{t&&t.has(n)||e.set(n,(0,h.o8)(r))}),e}get(t){return this._values.get(t)}originOf(){return 7}keys(){return[...this._values.keys()]}set(t,e){this._values.set(t,e)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}isAtOrigin(t,e){return this.has(t)}isBelowOrigin(t,e){return!this.has(t)}forEach(t){this._values.forEach(t)}}function w(t,e,r){return void 0!==t}function b(t,e,r,n){return!(void 0===t||null==r&&t.flags&y.i.NonNullable&&(n.lifecycle,l.v.INITIALIZING,1))}class A{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=l.v.INITIALIZING,this.store=new m,this.mutable=!0,this._origin=7;const e=this.host.constructor.__accessorMetadata__;for(const t in e){const r=new _(t,e[t]);this.propertiesByName.set(t,r)}this.metadata=e}initialize(){this.lifecycle=l.v.CONSTRUCTING}constructed(){this.lifecycle=l.v.CONSTRUCTED}destroy(){this.lifecycle=l.v.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==l.v.INITIALIZING}get(t){const e=this.propertiesByName.get(t);if(!w(e))return;const r=e.metadata.get;if(r)return e.getComputed(this,r);this.mutable&&(0,p.gc)(e);const n=this.store;return n.has(t)?n.get(t):e.metadata.value}originOf(t){const e=this.store.originOf(t);if(void 0===e){const e=this.propertiesByName.get(t);if(void 0!==e&&e.flags&y.i.HasDefaultValue)return"defaults"}return(0,v.OL)(e)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){const e=this.propertiesByName.get(t);if(w(e))return this.store.has(t)?this.store.get(t):e.metadata.value}internalSet(t,e){const r=this.propertiesByName.get(t);w(r)&&this._internalSet(r,e)}getDependsInfo(t,e,r){const n=this.propertiesByName.get(e);if(!w(n))return"";const s=new g.R,i=(0,p.a)(s,()=>n.metadata.get?.call(t));let o=`${r}${t.declaredClass.split(".").pop()}.${e}: ${i}\n`;const a=s.accessed??new Set;if(0===a.size)return o;r+=" ";for(const t of a)t instanceof _&&(o+=`${r}${t.propertyName}: undefined\n`);return o}setAtOrigin(t,e,r){const n=this.propertiesByName.get(t);if(w(n))return this._setAtOrigin(n,e,r)}isOverridden(t){const e=this.propertiesByName.get(t);return void 0!==e&&!!(e.flags&y.i.Overridden)}clearOrigin(t,e){const r=this.store,n=this.propertiesByName.get(t);if(!w(n))return;const s=r.isAtOrigin(t,e)&&!(n.flags&y.i.Overridden);r.delete(t,e),s&&n.notifyChange()}clearOverride(t){const e=this.propertiesByName.get(t);e&&e.flags&y.i.Overridden&&(e.flags&=~y.i.Overridden,e.notifyChange())}override(t,e){const r=this.propertiesByName.get(t);if(!b(r,0,e,this))return;const n=r.metadata.cast;if(n){const t=this._cast(n,e),{valid:r,value:s}=t;if(N.release(t),!r)return;e=s}r.flags|=y.i.Overridden,this._internalSet(r,e)}set(t,e){const r=this.propertiesByName.get(t);if(!b(r,0,e,this))return;const n=r.metadata.cast;if(n){const t=this._cast(n,e),{valid:r,value:s}=t;if(N.release(t),!r)return;e=s}const s=r.metadata.set;s?s.call(this.host,e):this._internalSet(r,e)}setDefaultOrigin(t){this._origin=(0,v.aB)(t)}getDefaultOrigin(){return(0,v.OL)(this._origin)}notifyChange(t){this.propertiesByName.get(t)?.notifyChange()}invalidate(t){this.propertiesByName.get(t)?.invalidate()}commit(t){this.propertiesByName.get(t)?.commit()}_internalSet(t,e){const r=this.lifecycle!==l.v.INITIALIZING?this._origin:0;this._setAtOrigin(t,e,r)}_setAtOrigin(t,e,r){const n=this.store,s=t.propertyName,i=n.isAtOrigin(s,r);if(i&&~t.flags&y.i.Overridden&&(0,h.aI)(e,n.get(s)))return;const o=n.isBelowOrigin(s,r)||i;o&&t.invalidate(),n.set(s,e,r),o&&t.commit(),(0,p.fE)(this.host,t)}_cast(t,e){const r=N.acquire();return r.valid=!0,r.value=e,t&&(r.value=t.call(this.host,e,r)),r}}class O{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}}const N=new f.A(()=>new O);var k=r(47821);var S,j,T=r(14012),C=r(10107),D=r(64108);function E(t){if(null==t)return{value:t};if(Array.isArray(t))return{type:[t[0]],value:null};switch(typeof t){case"object":return t.constructor?.__accessorMetadata__||t instanceof Date?{type:t.constructor,value:t}:t;case"boolean":return{type:Boolean,value:t};case"string":return{type:String,value:t};case"number":return{type:Number,value:t};case"function":return{type:t,value:null};default:return}}const $=Symbol("Accessor-Handles"),M=Symbol("Accessor-Initialized");class I{static{S=$,j=M}static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:e,declaredClass:r,constructor:n}=t;delete t.declaredClass,delete t.properties,delete t.constructor;const s=this;class i extends s{constructor(...t){super(...t),this.inherited=null,n&&n.apply(this,t)}}(0,u.tD)(i.prototype);for(const e in t){const r=t[e];i.prototype[e]="function"==typeof r?function(...t){const n=this.inherited;let i;this.inherited=function(...t){if(s.prototype[e])return s.prototype[e].apply(this,t)};try{i=r.apply(this,t)}catch(t){throw this.inherited=n,t}return this.inherited=n,i}:t[e]}for(const t in e){const r=E(e[t]);(0,C.MZ)(r)(i.prototype,t)}return(0,D.$)(r)(i)}static freeze(t){return t instanceof I?t.__accessor__.mutable=!1:Object.freeze(t),t}static isFrozen(t){return t instanceof I?!t.__accessor__.mutable:Object.isFrozen(t)}constructor(...t){if(this[S]=null,this[j]=!1,this.constructor===I)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");const e=new A(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:e}),t.length>0&&(e.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0])}postscript(){const t=this.__accessor__,e=t.ctorArgs;t.initialize(),e&&(this.set(e),t.ctorArgs=null),t.constructed(),this.initialize(),this[M]=!0}initialize(){}[a.G](){this[$]=(0,o.pR)(this[$])}destroy(){this.destroyed||((0,T.iS)(this),this.__accessor__.destroy())}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[M]}get destroyed(){return this.__accessor__?.lifecycle===l.v.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===l.v.DESTROYING||!1}commitProperty(t){(0,c.Jt)(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,e){return(0,k.h)(this,t,e),this}watch(t,e,r){return(0,n.eO)(i.A.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://arcg.is/1vaqf42#watch",warnOnce:!0}),(0,T.wB)(this,t,e,r)}addHandles(t,e){if(this.destroyed){const e=Array.isArray(t)?t:[t];for(const t of e)t.remove();return}(this[$]??=new s.A).add(t,e)}removeHandles(t){this[$]?.remove(t)}removeAllHandles(){this[$]?.removeAll()}removeHandlesReference(t){this[$]?.removeReference(t)}hasHandles(t){return!0===this[$]?.has(t)}_override(t,e){void 0===e?this.__accessor__.clearOverride(t):this.__accessor__.override(t,e)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,e){null==e?this.__accessor__.clearOverride(t):this.__accessor__.override(t,e)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,e){return this.__accessor__.internalSet(t,e),this}}},98291(t,e,r){r.d(e,{A:()=>i});var n=r(93687);function s(t){t.length=0}class i{constructor(t=50,e=50){this._pool=new n.A(()=>[],void 0,s,e,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return o.acquire()}static release(t){return o.release(t)}static prune(){o.prune()}}const o=new i(100)},71511(t,e,r){r.d(e,{A:()=>s});var n=r(5479);class s{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let t=0;return this._groups.forEach(e=>{t+=e.length}),t}add(t,e){if((0,n.xZ)(t)){const r=this._getOrCreateGroup(e);for(const e of t)a(e)&&r.push(e)}else a(t)&&this._getOrCreateGroup(e).push(t);return this}forEach(t,e){if("function"==typeof t)this._groups.forEach(e=>e.forEach(t));else{const r=this._getGroup(t);r&&e&&r.forEach(e)}}has(t){return this._groups.has(i(t))}remove(t){if("string"!=typeof t&&(0,n.xZ)(t)){for(const e of t)this.remove(e);return this}return this.has(t)?(o(this._getGroup(t)),this._groups.delete(i(t)),this):this}removeAll(){return this._groups.forEach(o),this._groups.clear(),this}removeReference(t){return this._groups.delete(t),this}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);const e=[];return this._groups.set(i(t),e),e}_getGroup(t){return this._groups.get(i(t))}}function i(t){return t||"_default_"}function o(t){for(const e of t)e instanceof s?e.removeAll():e.remove()}function a(t){return null!=t&&(!!t.remove||t instanceof s)}},25482(t,e,r){r.d(e,{o:()=>y,T:()=>d});var n=r(5482),s=r(69622),i=r(4718);class o{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){const e=new o;return this._values.forEach((r,n)=>{t&&t.has(n)||e.set(n,(0,i.o8)(r.value),r.origin)}),e}get(t,e){e=this._normalizeOrigin(e);const r=this._values.get(t);return null==e||r?.origin===e?r?.value:void 0}originOf(t){return this._values.get(t)?.origin??7}keys(t){t=this._normalizeOrigin(t);const e=[...this._values.keys()];return null==t?e:e.filter(e=>this._values.get(e)?.origin===t)}set(t,e,r){if(0===(r=this._normalizeOrigin(r))){const e=this._values.get(t);if(null!=e?.origin&&e.origin>r)return}this._values.set(t,new a(e,r))}delete(t,e){null!=(e=this._normalizeOrigin(e))&&this._values.get(t)?.origin!==e||this._values.delete(t)}has(t,e){return null!=(e=this._normalizeOrigin(e))?this._values.get(t)?.origin===e:this._values.has(t)}isAtOrigin(t,e){return e=this._normalizeOrigin(e),this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return e=this._normalizeOrigin(e),!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(({value:e},r)=>t(e,r))}_normalizeOrigin(t){if(null!=t)return 0===t?t:7}}class a{constructor(t,e){this.value=t,this.origin=e}}var c=r(76953),l=r(45917),u=r(88620),h=r(49422),f=r(64108);const d=t=>{const e=t;let r=class extends e{constructor(...t){super(...t);const e=(0,u.oY)(this),r=e.store,n=new o;e.store=n,(0,c.k)(e,r,n)}read(t,e){(0,l.L)(this,t,e)}write(t,e){return(0,h.M)(this,t??{},e)}toJSON(t){return this.write({},t)}static fromJSON(t,e){return p.call(this,t,e)}};return r=(0,n.Cg)([(0,f.$)("esri.core.JSONSupport")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function p(t,e){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const r=new this;return r.read(t,e),r}const y=d(s.A)},93687(t,e,r){r.d(e,{A:()=>n});class n{constructor(t,e,r,n=1,s=0){this._creator=t,this._acquireFunction=e,this._releaseFunction=r,this.allocationSize=n,this._pool=new Array(s),this._initialSize=s;for(let t=0;t<s;t++)this._pool[t]=this._creator();this.allocationSize=Math.max(n,1)}destroy(){this.prune(0)}acquire(...t){if(0===this._pool.length){const t=this.allocationSize;for(let e=0;e<t;e++)this._pool[e]=this._creator()}const e=this._pool.pop();return this._acquireFunction?this._acquireFunction(e,...t):function(t){return t?.acquire&&"function"==typeof t.acquire}(e)&&e.acquire(...t),e}release(t){var e;t&&(this._releaseFunction?this._releaseFunction(t):(e=t,e?.release&&"function"==typeof e.release&&t.release()),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let e=t;e<this._pool.length;++e){const t=this._pool[e];this._dispose(t)}this._pool.length=t}}_dispose(t){t.dispose&&"function"==typeof t.dispose&&t.dispose()}}},15142(t,e,r){r.d(e,{A:()=>l});var n=r(4576),s=r(21818);const i=(t,e,r,n)=>{let s=e,i=e;const o=r>>>1,a=t[s-1];for(;i<=o;){i=s<<1,i<r&&n(t[i-1],t[i])<0&&++i;const e=t[i-1];if(n(e,a)<=0)break;t[s-1]=e,s=i}t[s-1]=a},o=(t,e)=>t<e?-1:t>e?1:0;function a(t,e,r,n){void 0===e&&(e=0),void 0===r&&(r=t.length),void 0===n&&(n=o);for(let s=r>>>1;s>e;s--)i(t,s,r,n);const s=e+1;for(let o=r-1;o>e;o--){const r=t[e];t[e]=t[o],t[o]=r,i(t,s,o,n)}}function*c(t,e,r,n){void 0===e&&(e=0),void 0===r&&(r=t.length),void 0===n&&(n=o);for(let s=r>>>1;s>e;s--)i(t,s,r,n),yield;const s=e+1;for(let o=r-1;o>e;o--){const r=t[e];t[e]=t[o],t[o]=r,i(t,s,o,n),yield}}class l{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new n.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>u(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const e=new Array;for(let r=0;r<this._length;r++){const n=this.data[r];t(n)&&e.push(n)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){const r=this.data.indexOf(t,e);return-1!==r&&r<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let r=0;r<e;r++)this.data[this._length++]=t[r]}pushAll(t){for(const e of t)this.data[this._length++]=e}fill(t,e){for(let r=0;r<e;r++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,u(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const e=(0,n.qh)(this.data,(0,s.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,n.qh)(this.data,(0,s.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,r){this.length=(0,n.mW)(this.data,t,this.length,e,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;const r=this.data[t];this.data[t]=this.data[e],this.data[e]=r}sort(t){a(this.data,0,this.length,t)}iterableSort(t){return c(this.data,0,this.length,t)}some(t,e){for(let r=0;r<this.length;++r)if(t.call(e,this.data[r],r,this.data))return!0;return!1}find(t,e){const{data:r,length:n}=this;for(let s=0;s<n;++s)if(t.call(e,r[s]))return r[s]}filterInPlace(t,e){let r=0;for(let n=0;n<this._length;++n){const s=this.data[n];t.call(e,s,n,this.data)&&(this.data[n]=this.data[r],this.data[r]=s,r++)}if(this._deallocator)for(let t=r;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=r,this._shrink(),this}forAll(t,e){const{data:r,length:n}=this;for(let s=0;s<n;++s)t.call(e,r[s],s,r)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){const r=new Array(this.length);for(let n=0;n<this.length;++n)r[n]=t.call(e,this.data[n],n,this.data);return r}reduce(t,e){let r=e;for(let e=0;e<this.length;++e)r=t(r,this.data[e],e,this.data);return r}has(t){const e=this.length,r=this.data;for(let n=0;n<e;++n)if(r[n]===t)return!0;return!1}*[Symbol.iterator](){const{data:t,length:e}=this;for(let r=0;r<e;++r)yield t[r]}}function u(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},67076(t,e,r){r.d(e,{A:()=>s});var n=r(799);class s{constructor(t,e,r){this.name=t,this.details=r,this.type="warning",this.message=e?(0,n.V2)(e,r):""}toString(){const{name:t,message:e}=this;return`[${t}]: ${e}`}}},85537(t,e,r){r.d(e,["v",0,{INITIALIZING:0,CONSTRUCTING:1,CONSTRUCTED:2,DESTROYING:3,DESTROYED:4}])},11406(t,e,r){r.d(e,{T:()=>i});var n=r(36563);class s{constructor(t,e){this._observers=t,this._observer=e}remove(){const{_observers:t,_observer:e}=this;if(t[t.length-1]===e)return void t.pop();const r=t.indexOf(this._observer);-1!==r&&t.splice(r,1)}}class i{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return o;null==this._observers&&(this._observers=[]);const e=this._observers;let r=!1,n=!1;for(const s of e)if(s.destroyed)n=!0;else if(s===t){r=!0;break}return r||(e.push(t),n&&this._removeDestroyedObservers()),new s(e,t)}_removeDestroyedObservers(){const t=this._observers;if(!t)return;const e=t.length;if(0===e)return;let r=0;for(let n=0;n<e;++n){for(;n+r<e&&t[n+r].destroyed;)++r;if(r>0){if(!(n+r<e))break;t[n]=t[n+r]}}t.length=e-r}destroy(){if(this.destroyed)return;this.destroyed=!0;const t=this._observers;if(null!=t){for(const e of t)e.onCommitted();this._observers=null}}}const o=(0,n.hA)()},35666(t,e,r){function n(t){switch(t){case"defaults":return 0;case"service":return 2;case"portal-item":return 3;case"web-scene":return 4;case"web-map":return 5;case"link-chart":return 6;case"user":return 7;default:return null}}function s(t){switch(t){case 0:return"defaults";case 2:return"service";case 3:return"portal-item";case 4:return"web-scene";case 5:return"web-map";case 6:return"link-chart";case 7:return"user"}}function i(t){return s(t)}r.d(e,{OL:()=>s,aB:()=>n,in:()=>i})},56454(t,e,r){const n=Symbol("Accessor-beforeDestroy");r.d(e,["G",0,n])},91429(t,e,r){r.d(e,{wg:()=>c,MZ:()=>o,$K:()=>a});var n=r(10107),s=r(79901),i=r(64108);r(93223),r(36005),r(43937);const o=n.MZ,a=i.$;function c(...t){return(0,s.w)(...t)}},79901(t,e,r){r.d(e,{w:()=>c});var n=r(56507),s=r(96156);const i=Object.prototype.toString;function o(t){const e="__accessorMetadata__"in t?(0,n.dp)(t):t;return function(...t){if(t.push(e),"number"==typeof t[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,t)}}function a(t,e,r,n){(0,s.z4)(t,e).cast=n}function c(...t){if(3!==t.length||"string"!=typeof t[1])return 1===t.length&&"[object Function]"===i.call(t[0])?o(t[0]):1===t.length&&"string"==typeof t[0]?function(t){return(e,r)=>{(0,s.z4)(e,t).cast=e[r]}}(t[0]):void 0}},93223(t,e,r){r.d(e,{e:()=>i});var n=r(66552),s=r(10107);function i(t,e={}){const r=t instanceof n.J?t:new n.J(t,e),{alwaysWriteDefaults:i,default:o,ignoreUnknown:a=!0,name:c,nonNullable:l,readOnly:u=!1}=e;return(0,s.MZ)({type:a?r.apiValues:String,json:{type:r.jsonValues,default:o,name:c,read:!u&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:i}},nonNullable:l,readOnly:u})}},10107(t,e,r){r.d(e,{MZ:()=>c,rM:()=>l});var n=r(53966),s=r(56507),i=r(16649),o=r(96156),a=r(47821);function c(t={}){return(e,r)=>{if(e===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${e.name}.${r}. Accessor does not support static properties.`);const c=Object.getOwnPropertyDescriptor(e,r),l=(0,o.z4)(e,r);c&&(c.get||c.set?(l.get=c.get||l.get,l.set=c.set||l.set):"value"in c&&("value"in t&&n.A.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${e.constructor.name}" already defined in the metadata`,t),l.value=t.value=c.value)),null!=t.readOnly&&(l.readOnly=t.readOnly);const u=t.aliasOf;if(u){const t="string"==typeof u?u:u.source,e="string"==typeof u?null:!0===u.overridable;let n;l.dependsOn=[t],l.get=function(){let e=(0,i.Jt)(this,t);if("function"==typeof e){n||(n=t.split(".").slice(0,-1).join("."));const r=(0,i.Jt)(this,n);r&&(e=e.bind(r))}return e},l.readOnly||(l.set=e?function(t){this._override(r,t)}:function(e){(0,a.h)(this,t,e)})}const h=t.type,f=t.types;if(!l.cast){let e;h&&!1!==t.useTypeForAutocast?e=function(t){let e=0,r=t;if((0,s.Zu)(t))return(0,s.Nd)(t);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],e++;const n=r;if((0,s.EK)(n))return 0===e?(0,s.MB)(n):(0,s._e)((0,s.MB)(n),e);if(1===e)return(0,s.eC)(n);if(e>1)return(0,s.e6)(n,e);const i=t;return i.from?i.from:(0,s.dp)(i)}(h):f&&(e=Array.isArray(f)?(0,s.wB)((0,s.aq)(f[0])):(0,s.aq)(f)),t.cast=function(t,e){if(t||e)return t?e?(r,n)=>e(t(r,n),n):t:e}(t.cast,e)}(0,o.CX)(l,t),t.range&&(l.cast=(0,s.Qp)(l.cast,t.range))}}function l(t,e,r){const n=(0,o.z4)(t,r);n.json||(n.json={});let s=n.json;return void 0!==e&&(s.origins||(s.origins={}),s.origins[e]||(s.origins[e]={}),s=s.origins[e]),s}},36005(t,e,r){r.d(e,{w:()=>s});var n=r(10107);function s(t,e,r){let s,i;return void 0===e||Array.isArray(e)?(i=t,r=e,s=[void 0]):(i=e,s=Array.isArray(t)?t:[t]),(t,e)=>{const o=t.constructor.prototype;s.forEach(s=>{const a=(0,n.rM)(t,s,i);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=o[e],r&&(a.read.source=(a.read.source||[]).concat(r))})}}},64108(t,e,r){r.d(e,{$:()=>b}),r(44208);var n=r(53966),s=r(56454),i=r(85537),o=r(96156),a=r(62788),c=r(56507),l=r(90360);function u(t){if(t.json||(t.json={}),f(t.json),d(t.json),h(t.json),t.json.origins)for(const e in t.json.origins)f(t.json.origins[e]),d(t.json.origins[e]),h(t.json.origins[e]);return!0}function h(t){t.name&&(t.read&&"object"==typeof t.read?void 0===t.read.source&&(t.read.source=t.name):t.read={source:t.name},t.write&&"object"==typeof t.write?void 0===t.write.target&&(t.write.target=t.name):t.write={target:t.name})}function f(t){"boolean"==typeof t.read?t.read={enabled:t.read}:"function"==typeof t.read?t.read={enabled:!0,reader:t.read}:t.read&&"object"==typeof t.read&&void 0===t.read.enabled&&(t.read.enabled=!0)}function d(t){"boolean"==typeof t.write?t.write={enabled:t.write}:"function"==typeof t.write?t.write={enabled:!0,writer:t.write}:t.write&&"object"==typeof t.write&&void 0===t.write.enabled&&(t.write.enabled=!0)}var p=r(67124);function y(t){return t.type?g(t):_(t)}function g(t){if(!t.type)return;let e=0,r=t.type;for(;Array.isArray(r)&&!(0,c.EK)(r);)r=r[0],e++;return{type:r,ndimArray:e}}function _(t){if(!t.types)return;let e=0,r=t.types;for(;Array.isArray(r);)r=r[0],e++;return{types:r,ndimArray:e}}function v(t){u(t)&&(function(t){if(t.json&&t.json.origins){const e=t.json.origins,r={"web-document":["web-scene","web-map"]};for(const t in r)if(e[t]){const n=e[t];r[t].forEach(t=>{e[t]=n}),delete e[t]}}}(t),function(t){const e=function(t){return t.json.types?_(t.json):t.type?g(t):_(t)}(t);if(t.json.origins)for(const r in t.json.origins){const n=t.json.origins[r],s=n.types?y(n):e;(0,l.v)(s,n,!1),n.types&&!n.write&&t.json.write?.enabled&&(n.write={...t.json.write}),(0,p.v)(s,n)}(0,l.v)(e,t.json,!0),(0,p.v)(e,t.json)}(t))}const m=new Set,w=new Set;function b(t){return e=>{t??="esri.core.Accessor",e.prototype.declaredClass=t,k(e);const r=[],n=[];let a=e.prototype;for(;a;)a.hasOwnProperty("initialize")&&!m.has(a.initialize)&&(m.add(a.initialize),r.push(a.initialize)),a.hasOwnProperty("destroy")&&!w.has(a.destroy)&&(w.add(a.destroy),n.push(a.destroy)),a=Object.getPrototypeOf(a);m.clear(),w.clear();const c=class extends e{constructor(...t){if(super(...t),this.constructor===c&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let t=r.length-1;t>=0;t--)r[t].call(this)}}),n.length){let t=!1;const e=this[s.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!t){this.__accessor__.lifecycle=i.v.DESTROYING,t=!0,e.call(this);for(let t=0;t<n.length;t++)n[t].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};c.__accessorMetadata__=(0,o.tD)(e.prototype),c.prototype.declaredClass=t;const l=(t||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(c.prototype,Symbol.toStringTag,{value:l,configurable:!0,writable:!0,enumerable:!1}),c}}function A(t,{get:e,value:r}){return null==e?function(){const e=this.__accessor__,n=e.propertiesByName.get(t);if(void 0===n)return;e.mutable&&(0,a.gc)(n);const s=e.store;return s.has(t)?s.get(t):r}:function(){const r=this.__accessor__;return r.propertiesByName.get(t)?.getComputed(r,e)}}function O(t,e,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r})}function N(t,e){return e.readOnly&&e.constructOnly?function(r){const n=this.__accessor__;if(n){if(n.mutable)return n.initialized&&e.readOnly?S("read-only",t):n.lifecycle===i.v.CONSTRUCTED&&e.constructOnly?S("construct-only",t):void n.set(t,r)}else O(this,t,r)}:e.readOnly?function(r){const n=this.__accessor__;if(n){if(n.mutable)return n.initialized&&e.readOnly?S("read-only",t):void n.set(t,r)}else O(this,t,r)}:e.constructOnly?function(r){const n=this.__accessor__;if(n){if(n.mutable)return n.lifecycle===i.v.CONSTRUCTED&&e.constructOnly?S("construct-only",t):void n.set(t,r)}else O(this,t,r)}:function(e){const r=this.__accessor__;r?r.mutable&&r.set(t,e):O(this,t,e)}}function k(t){const e=t.prototype,r=(0,o.tD)(e),n={};for(const t of Object.getOwnPropertyNames(r)){const e=r[t];v(e),n[t]={enumerable:!0,configurable:!0,get:A(t,e),set:N(t,e)}}Object.defineProperties(t.prototype,n)}const S=(t,e)=>{n.A.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${e}'`)}},43937(t,e,r){r.d(e,{K:()=>s});var n=r(10107);function s(t,e,r){let s,i;return void 0===e?(i=t,s=[void 0]):"string"!=typeof e?(i=t,s=[void 0],r=e):(i=e,s=Array.isArray(t)?t:[t]),(t,e)=>{const o=t.constructor.prototype;for(const a of s){const s=(0,n.rM)(t,a,i);s.write&&"object"==typeof s.write||(s.write={}),r&&(s.write.target=r),s.write.writer=o[e]}}}},76953(t,e,r){function n(t,e,r){e.keys().forEach(t=>{r.set(t,e.get(t),0)});const n=t.metadata;Object.keys(n).forEach(e=>{t.internalGet(e)&&r.set(e,t.internalGet(e),0)})}r.d(e,{k:()=>n})},56507(t,e,r){r.d(e,{EK:()=>C,GB:()=>l,GX:()=>c,MB:()=>D,Nd:()=>z,PZ:()=>v,Qp:()=>f,Uv:()=>M,Vr:()=>u,Zu:()=>I,_e:()=>j,aq:()=>E,dp:()=>A,e6:()=>T,eC:()=>k,jz:()=>$,qf:()=>O,wB:()=>N});var n=r(53966),s=r(91869);const i=()=>n.A.getLogger("esri.core.accessorSupport.ensureTypes");function o(t){if(null==t)return t;const e=new Date(t);return isNaN(e.getTime())?(i().error("Accessor#set",`Invalid date value: '${t}', falling back to current date`),new Date):e}function a(t){return null==t?t:!!t}function c(t){return null==t?t:t.toString()}function l(t,e=0){return null==t?t:(t=parseFloat(t),isNaN(t)?e:t)}function u(t){return null==t?t:Math.round(parseFloat(t))}function h(t){return null}function f(t,e){return r=>{let n=t(r);return null!=e.step&&(n=Math.round(n/e.step)*e.step),null!=e.min&&(n=Math.max(e.min,n)),null!=e.max&&(n=Math.min(e.max,n)),n}}function d(t){return t?.constructor&&void 0!==t.constructor.__accessorMetadata__}function p(t,e){return null!=e&&t&&!(e instanceof t)}function y(t){return t&&"isCollection"in t}function g(t){return t?.Type?"function"==typeof t.Type?t.Type:t.Type.base:null}function _(t,e){return!!d(e)&&(i().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+m(t)+"'"),!0)}function v(t,e){return null==e?e:y(t)?function(t,e){if(!e?.constructor||!y(e.constructor))return _(t,e)?e:new t(e);const r=g(t.prototype.itemType),n=g(e.constructor.prototype.itemType);return r?n?r===n?e:r.prototype.isPrototypeOf(n.prototype)?new t(e):(_(t,e),e):new t(e):e}(t,e):p(t,e)?_(t,e)?e:new t(e):e}function m(t){return t?.prototype?.declaredClass||"unknown"}const w=new WeakMap;function b(t){switch(t){case Number:return t=>l(t);case $:return u;case Boolean:return a;case String:return c;case Date:return o;case M:return h;default:return(0,s.tE)(w,t,()=>v.bind(null,t))}}function A(t,e){const r=b(t);return 1===arguments.length?r:r(e)}function O(t){const e=b(t);return t=>e(t)}function N(t,e,r){return 1===arguments.length?N.bind(null,t):e?Array.isArray(e)?e.map(e=>t(e,r)):[t(e,r)]:e}function k(t,e){return 1===arguments.length?N(e=>A(t,e)):N(e=>A(t,e),e)}function S(t,e,r){return 0!==e&&Array.isArray(r)?r.map(r=>S(t,e-1,r)):t(r)}function j(t,e,r){if(2===arguments.length)return r=>j(t,e,r);if(!r)return r;r=S(t,e,r);let n=e,s=r;for(;n>0&&Array.isArray(s);)n--,s=s[0];if(void 0!==s)for(let t=0;t<n;t++)r=[r];return r}function T(t,e,r){return 2===arguments.length?j(e=>A(t,e),e):j(e=>A(t,e),e,r)}function C(t){return!!Array.isArray(t)&&!t.some(e=>{const r=typeof e;return!("string"===r||"number"===r||"function"===r&&t.length>1)})}function D(t,e){if(2===arguments.length)return D(t).call(null,e);const r=new Set,n=t.filter(t=>"function"!=typeof t),s=t.filter(t=>"function"==typeof t);for(const e of t)"string"!=typeof e&&"number"!=typeof e||r.add(e);let o=null,a=null;return(t,e)=>{if(null==t)return t;const c=typeof t,l="string"===c||"number"===c;return l&&(r.has(t)||s.some(t=>"string"===c&&t===String||"number"===c&&t===Number))||"object"===c&&s.some(e=>!p(e,t))?t:(l&&n.length?(o||(o=n.map(t=>"string"==typeof t?`'${t}'`:`${t}`).join(", ")),i().error("Accessor#set",`'${t}' is not a valid value for this property, only the following values are valid: ${o}`)):"object"==typeof t&&s.length?(a||(a=s.map(t=>m(t)).join(", ")),i().error("Accessor#set",`'${t}' is not a valid value for this property, value must be one of ${a}`)):i().error("Accessor#set",`'${t}' is not a valid value for this property`),e&&(e.valid=!1),null)}}function E(t,e){if(2===arguments.length)return E(t).call(null,e);const r={},n=[],s=[];for(const e in t.typeMap){const i=t.typeMap[e];r[e]=A(i),n.push(m(i)),s.push(e)}const o=()=>`'${n.join("', '")}'`,a=()=>`'${s.join("', '")}'`,c="string"==typeof t.key?e=>e[t.key]:t.key;return e=>{if(t.base&&!p(t.base,e))return e;if(null==e)return e;const n=c(e)||t.defaultKeyValue,s=r[n];if(!s)return i().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!p(t.typeMap[n],e))return e;if("string"==typeof t.key&&!d(e)){const r={};for(const n in e)n!==t.key&&(r[n]=e[n]);return s(r)}return s(e)}}class ${}class M{}function I(t){if(!t||"object"!=typeof t&&"function"!=typeof t||!("type"in t))return!1;switch(t.type){case"native":case"array":case"one-of":return!0}return!1}function z(t){switch(t.type){case"native":return A(t.value);case"array":return N(z(t.value));case"one-of":return function(t){let e=null;return(r,n)=>q(r,t)?r:(null==e&&(e=P(t)),i().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),n&&(n.valid=!1),null)}(t);default:return null}}function P(t){switch(t.type){case"native":switch(t.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case $:return"integer";case Date:return"date";case M:return"null";default:return m(t.value)}case"array":return`array of ${P(t.value)}`;case"one-of":{const e=t.values.map(t=>P(t));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function q(t,e){if(null==t)return!0;switch(e.type){case"native":switch(e.value){case Number:case $:return"number"==typeof t;case Boolean:return"boolean"==typeof t;case String:return"string"==typeof t;case M:return null===t}return t instanceof e.value;case"array":return!!Array.isArray(t)&&!t.some(t=>!q(t,e.value));case"one-of":return e.values.some(e=>q(t,e))}}r.d(e,["gK",0,{native:t=>({type:"native",value:t}),array:t=>({type:"array",value:t}),oneOf:t=>({type:"one-of",values:t})}])},90360(t,e,r){r.d(e,{C:()=>h,v:()=>u});var n=r(53966),s=r(93637),i=r(96156),o=r(15903),a=r(7142),c=r(59923);const l=()=>n.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function u(t,e,r){t&&(!r&&!e.read||e.read?.reader||!1===e.read?.enabled||function(t){return"types"in t?_(t.types):g(t.type)}(t)&&(0,s.sM)("read.reader",h(t),e))}function h(t){const e=t.ndimArray??0;if(e>1)return function(t){const e=f(t),r=d.bind(null,e),n=t.ndimArray??0;return(t,e,s)=>{if(null==t)return t;t=r(t,s,n);let i=n,o=t;for(;i>0&&Array.isArray(o);)i--,o=o[0];if(void 0!==o)for(let e=0;e<i;e++)t=[t];return t}}(t);if(1===e)return p(t);if("type"in t&&y(t.type)){const e=t.type.prototype?.itemType?.Type,r=p("function"==typeof e?{type:e}:{types:e});return(e,n,s)=>{const i=r(e,n,s);return i?new t.type(i):i}}return f(t)}function f(t){return"type"in t?function(t){return t.prototype.read?(e,r,n)=>{if(null==e)return e;const s=typeof e;if("object"!==s)return void l().error(`Expected JSON value of type 'object' to deserialize type '${t.prototype.declaredClass}', but got '${s}'`);const i=new t;return i.read(e,n),i}:t.fromJSON}(t.type):function(t){let e=null;const r=t.errorContext??"type",n=t.validate;return(s,o,u)=>{if(null==s)return s;const h=typeof s;if("object"!==h)return void l().error(`Expected JSON value of type 'object' to deserialize, but got '${h}'`);e||(e=function(t){const e={};for(const r in t.typeMap){const n=t.typeMap[r],s=(0,i.tD)(n.prototype);if("function"==typeof t.key)continue;const o=s[t.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&1===o.json.type.length&&"string"==typeof o.json.type[0]){e[o.json.type[0]]=n;continue}const a=o.json?.write;if(!a?.writer){e[r]=n;continue}const c=a.target,l="string"==typeof c?c:t.key,u={};a.writer(r,u,l),u[l]&&(e[u[l]]=n)}return e}(t));const f=t.key;if("string"!=typeof f)return;const d=s[function(t,e,r){const n=Object.values(e)[0],s=(0,i.tD)(n.prototype)[t],o=(0,a.N5)(s,r),c=o?.read?.source;return c&&"string"==typeof c?c:t}(f,e,u)],p=d?e[d]:t.defaultKeyValue?t.typeMap[t.defaultKeyValue]:void 0;if(!p){const t=`Type '${d||"unknown"}' is not supported`;return u?.messages&&s&&(0,c.Yc)(u,"warning",r,t,{definition:s,context:u}),void l().error(t)}const y=new p;return y.read(s,u),n?n(y):y}}(t.types)}function d(t,e,r,n){return 0!==n&&Array.isArray(e)?e.map(e=>d(t,e,r,n-1)):t(e,void 0,r)}function p(t){const e=f(t);return(t,r,n)=>{if(null==t)return t;if(Array.isArray(t)){const r=[];for(const s of t){const t=e(s,void 0,n);void 0!==t&&r.push(t)}return r}const s=e(t,void 0,n);return void 0!==s?[s]:void 0}}function y(t){if(!(0,o.P)(t))return!1;const e=t.prototype.itemType;return!(!e||!e.Type)&&("function"==typeof e.Type?g(e.Type):_(e.Type))}function g(t){return!Array.isArray(t)&&!!t&&("object"==typeof t||"function"==typeof t)&&t.prototype&&("read"in t.prototype||"fromJSON"in t||y(t))}function _(t){for(const e in t.typeMap)if(!g(t.typeMap[e]))return!1;return!0}},15903(t,e,r){function n(t){return!!t&&t.prototype?.declaredClass&&0===t.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(e,{P:()=>n})},7142(t,e,r){function n(t,e){return o(t,"any",e?.origin)}function s(t,e){return o(t,"read",e?.origin)}function i(t,e){return o(t,"write",e?.origin)}function o(t,e,r){let n=t?.json;if(n?.origins&&r){let t;t="link-chart"===r?n.origins[r]&&("any"===e||e in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],t&&("any"===e||e in t)&&(n=t)}return n}r.d(e,{N5:()=>s,k4:()=>i,xF:()=>n})},67124(t,e,r){r.d(e,{B:()=>h,v:()=>a});var n=r(53966),s=r(93637),i=r(15903),o=r(59923);function a(t,e){if(!e.write||e.write.writer||!1===e.write.enabled&&!e.write.overridePolicy)return;const r=t?.ndimArray??0;t&&(1===r||"type"in t&&(0,i.P)(t.type))?e.write.writer=f:r>1?e.write.writer=function(t){return(e,r,n,i)=>{let o;if(null===e)o=null;else{o=d(e,i,t);let r=t,n=o;for(;r>0&&Array.isArray(n);)r--,n=n[0];if(void 0!==n)for(let t=0;t<r;t++)o=[o]}(0,s.sM)(n,o,r)}}(r):e.types?Array.isArray(e.types)?e.write.writer=function(t){return(e,r,n,s)=>e&&Array.isArray(e)?l(e.filter(e=>c(e,t,s)),r,n,s):l(e,r,n,s)}(e.types[0]):e.write.writer=function(t){return(e,r,n,s)=>e?c(e,t,s)?l(e,r,n,s):void 0:l(e,r,n,s)}(e.types):e.write.writer=l}function c(t,e,r){for(const r in e.typeMap)if(t instanceof e.typeMap[r])return!0;if(r?.messages){const s=e.errorContext??"type",i=`Values of type '${("function"!=typeof e.key?t[e.key]:t.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&t&&(0,o.Yc)(r,"error",s,i,{definition:t,context:r}),n.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function l(t,e,r,n){(0,s.sM)(r,u(t,n),e)}function u(t,e){return t&&"function"==typeof t.write?t.write({},e):t&&"function"==typeof t.toJSON?t.toJSON():"number"==typeof t?h(t):t}function h(t){return t===-1/0?-Number.MAX_VALUE:t===1/0?Number.MAX_VALUE:isNaN(t)?null:t}function f(t,e,r,n){let i;null===t?i=null:t&&"function"==typeof t.map?(i=t.map(t=>u(t,n)),"function"==typeof i.toArray&&(i=i.toArray())):i=[u(t,n)],(0,s.sM)(r,i,e)}function d(t,e,r){return 0!==r&&Array.isArray(t)?t.map(t=>d(t,e,r-1)):u(t,e)}},16649(t,e,r){r.d(e,{Jt:()=>a,RP:()=>o,t2:()=>c});var n=r(88620);function s(t,e){const r=t.endsWith("?")?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){const t=parseInt(r,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}const s=(0,n.oY)(e);return(0,n.yh)(s,r)?s.get(r):e[r]}function i(t,e,r){if(null==t)return t;const n=s(e[r],t);return!n&&r<e.length-1?void 0:r===e.length-1?n:i(n,e,r+1)}function o(t,e,r=0){return"string"!=typeof e||e.includes(".")?i(t,(0,n.AH)(e),r):s(e,t)}function a(t,e){return o(t,e)}function c(t,e){return void 0!==o(e,t)}},96156(t,e,r){r.d(e,{CX:()=>a,tD:()=>i,z4:()=>o});var n=r(4718),s=r(88620);function i(t){let e=t.constructor.__accessorMetadata__;const r=Object.prototype.hasOwnProperty.call(t.constructor,"__accessorMetadata__");if(e){if(!r){e=Object.create(e);for(const t in e)e[t]=(0,n.o8)(e[t]);Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0})}}else e={},Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0});return t.constructor.__accessorMetadata__}function o(t,e){const r=i(t);let n=r[e];return n||(n=r[e]={}),n}function a(t,e){return(0,s.h1)(t,e,l)}const c=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function l(t){return c.test(t)?"replace":"merge"}},45917(t,e,r){r.d(e,{L:()=>u,t:()=>h});var n=r(16649),s=r(88620),i=r(7142);function o(t,e,r){if(!t?.read||!1===t.read.enabled||!t.read.source)return!1;const s=t.read.source;if("string"==typeof s){if(s===e)return!0;if(s.includes(".")&&s.startsWith(e)&&(0,n.t2)(s,r))return!0}else for(const t of s){if(t===e)return!0;if(t.includes(".")&&t.startsWith(e)&&(0,n.t2)(t,r))return!0}return!1}function a(t,e,r,n,s){let a=(0,i.N5)(e[r],s);(function(t){return t&&(!t.read||!1!==t.read.enabled&&!t.read.source)})(a)&&(t[r]=!0);for(const c of Object.getOwnPropertyNames(e))a=(0,i.N5)(e[c],s),o(a,r,n)&&(t[c]=!0)}function c(t,e,r,n){const s=r.metadata,o=(0,i.xF)(s[e],n),a=o?.default;if(void 0===a)return;const c="function"==typeof a?a.call(t,e,n):a;void 0!==c&&r.set(e,c)}const l={origin:"service"};function u(t,e,r=l){if(!e||"object"!=typeof e)return;const o=(0,s.oY)(t),u=o.metadata,h={};for(const t of Object.getOwnPropertyNames(e))a(h,u,t,e,r);o.setDefaultOrigin(r.origin);for(const s of Object.getOwnPropertyNames(h)){const a=(0,i.N5)(u[s],r).read,c=a?.source;let l;l=c&&"string"==typeof c?(0,n.RP)(e,c):e[s],a?.reader&&(l=a.reader.call(t,l,e,r)),void 0!==l&&o.set(s,l)}if(!r||!r.ignoreDefaults){o.setDefaultOrigin("defaults");for(const e of Object.getOwnPropertyNames(u))h[e]||c(t,e,o,r)}o.setDefaultOrigin("user")}function h(t,e,r,n=l){const s={...n,messages:[]};r(s),s.messages?.forEach(e=>{"warning"!==e.type||t.loaded?n?.messages&&n.messages.push(e):t.loadWarnings.push(e)})}},47821(t,e,r){r.d(e,{h:()=>o});var n=r(49186),s=r(44208),i=(r(53966),r(16649));function o(t,e,r){if(t&&e)if("object"==typeof e)for(const r of Object.getOwnPropertyNames(e))o(t,r,e[r]);else{if(e.includes(".")){const n=e.split("."),s=n.splice(-1,1)[0];return void o((0,i.Jt)(t,n),s,r)}const a=t.__accessor__;null!=a&&function(t,e){if((0,s.A)("esri-unknown-property-errors")&&!function(t,e){return null!=e.metadata[t]}(t,e))throw new n.A("set:unknown-property",function(t,e){return"setting unknown property '"+t+"' on instance of "+e.host.declaredClass}(t,e))}(e,a),t[e]=r}}},62788(t,e,r){r.d(e,{F_:()=>d,Xr:()=>v,a:()=>f,fE:()=>g,gc:()=>l}),r(44208);var n=r(53966),s=r(88620),i=r(47328);const o=new(r(67867).R),a=[];let c=o;function l(t){c.onAccessed(t)}let u=!1,h=!1;function f(t,e,r){if(u)return p(t,e,r);let s;if(h){c=t,a.push(t);try{s=e.call(r)}catch(t){throw n.A.getLogger("esri.core.accessorSupport.tracking").error(t),t}finally{y()}}else{c=t,a.push(t);try{s=e.call(r)}finally{y()}}return s}function d(t,e){return f(o,t,e)}function p(t,e,r){const s=u;let i;u=!0,c=t,a.push(t);try{i=e.call(r)}catch(t){h&&n.A.getLogger("esri.core.accessorSupport.tracking").error(t)}return y(),u=s,i}function y(){const t=a.length;if(t>1){const e=a.pop();c=a[t-2],e.onTrackingEnd()}else if(1===t){const t=a.pop();c=o,t.onTrackingEnd()}else c=o}function g(t,e){if(e.flags&i.i.DepTrackingInitialized)return;e.flags|=i.i.DepTrackingInitialized;const r=h;h=!1,e.flags&i.i.AutoTracked?p(e.trackingTarget,e.metadata.get,t):v(t,e),h=r}const _=[];function v(t,e){e.flags&i.i.ExplicitlyTracking||(e.flags|=i.i.ExplicitlyTracking,p(e.trackingTarget,()=>{const r=e.metadata.dependsOn||_;for(const e of r)if("string"!=typeof e||e.includes(".")){const r=(0,s.AH)(e);for(let e=0,n=t;e<r.length&&null!=n&&"object"==typeof n;++e)n=m(n,r[e],e!==r.length-1)}else m(t,e,!1)}),e.flags&=~i.i.ExplicitlyTracking)}function m(t,e,r){const n=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(n,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const i=(0,s.oY)(t);if(i){const e=i.propertiesByName.get(n);e&&(l(e),g(t,e))}return r?t[n]:void 0}},47328(t,e,r){r.d(e,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},71429(t,e,r){r.d(e,{r:()=>s});var n=r(67867);class s extends n.R{constructor(t){super(new i(t)),this._observer&&o.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&o.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}}class i{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;const t=this._invalidCount;if(1===t)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=a}}const o=new FinalizationRegistry(t=>{t.deref()?.destroy()});function a(){}},67867(t,e,r){r.d(e,{R:()=>n});class n{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(t){null!=this._observer&&t!==this._observer&&(null==this.accessed&&(this.accessed=new Set),this.accessed.add(t))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(null==this._handles&&(this._handles=[]),this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},80559(t,e,r){r.d(e,{Df:()=>l,fm:()=>u,mJ:()=>c});var n=r(36563),s=r(62788),i=r(71429);let o=!1;const a=[];function c(t,e){let r=new i.r(function n(){if(!r||c)return;if(o)return void h(n);const i=a;r.clear(),o=!0,c=!0,a=(0,s.a)(r,t),c=!1,o=!1,e(a,i),f()}),a=null,c=!1;return c=!0,a=(0,s.a)(r,t),c=!1,(0,n.hA)(function(){r&&(r.destroy(),r=null,a=null)})}function l(t,e){let r=new i.r(function(){e(o,a)}),o=null;function a(){return r?(r.clear(),o=(0,s.a)(r,t),o):null}return a(),(0,n.hA)(function(){r&&(r.destroy(),r=null),o=null})}function u(t,e){let r=!1,a=!1;const c=!!e?.sync;let l=new i.r(()=>{r||a||(a=!0,c?u():queueMicrotask(u))});function u(){a=!1,l&&!r&&(o?h(u):(l.clear(),o=!0,r=!0,(0,s.a)(l,t),r=!1,o=!1,f()))}return r=!0,(0,s.a)(l,t),r=!1,(0,n.hA)(function(){l&&(l.destroy(),l=null)})}function h(t){a.includes(t)||a.unshift(t)}function f(){for(;a.length;)a.pop()()}},88620(t,e,r){r.d(e,{AH:()=>l,h1:()=>a,oY:()=>i,qg:()=>h,yh:()=>o});var n=r(36563),s=r(4718);function i(t){return t.__accessor__??null}function o(t,e){return null!=t?.metadata?.[e]}function a(t,e,r){return c(t,e,r?{policy:r,path:""}:null)}function c(t,e,r){return e?Object.keys(e).reduce((t,n)=>{const i=n;if("__proto__"===i)return t;let o=null,a="merge";if(r&&(o=r.path?`${r.path}.${n}`:n,a=r.policy(o)),"replace"===a)return t[i]=e[i],t;if("replace-arrays"===a&&Array.isArray(t[i]))return t[i]=e[i],t;if(void 0===t[i])return t[i]=(0,s.o8)(e[i]),t;let l=t[i],u=e[i];if(l===u)return t;if(Array.isArray(u)||Array.isArray(t))l=l?Array.isArray(l)?t[i]=l.slice():t[i]=[l]:t[i]=[],u&&(Array.isArray(u)||(u=[u]),u.forEach(t=>{l.includes(t)||l.push(t)}));else if(u&&"object"==typeof u)if(r){const e=r.path;r.path=o,t[i]=c(l,u,r),r.path=e}else t[i]=c(l,u,null);else t.hasOwnProperty(n)&&!e.hasOwnProperty(n)||(t[i]=u);return t},t||{}):t}function l(t){return Array.isArray(t)?t:t.split(".")}function u(t){return t.includes(",")?t.split(",").map(t=>t.trim()):[t.trim()]}function h(t,e,r,s){const i=function(t){if(Array.isArray(t)){const e=[];for(const r of t)e.push(...u(r));return e}return u(t)}(e);if(1!==i.length){const e=i.map(e=>s(t,e,r));return(0,n.vE)(e)}return s(t,i[0],r)}},14012(t,e,r){r.d(e,{iS:()=>w,wB:()=>N,Cn:()=>k});var n=r(98291),s=r(36563),i=r(4718),o=r(93687);class a extends o.A{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){const e=super.acquire(...t);return this._set.delete(e),e}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}var c=r(76030),l=r(24326),u=r(16649),h=r(85537),f=r(80559),d=r(88620);class p{constructor(){this.uid=(0,l.c)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static{this.pool=new a(()=>new p)}static acquireUntracked(t,e,r,n,s){return this.pool.acquire(0,t,e,r,n,s,i.aI)}static acquireTracked(t,e,r,n){return this.pool.acquire(1,t,e,r,null,null,n)}notify(t,e){0===this.type?this.callback.call(this.target,t,e,this.path,this.target):this.callback.call(null,t,e,void 0,void 0)}acquire(t,e,r,n,s,i,o){this.uid=(0,l.c)(),this.removed=!1,this.type=t,this.oldValue=e,this.callback=r,this.getValue=n,this.target=s,this.path=i,this.equals=o}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,l.c)(),this.removed=!0}}const y=new n.A,g=new Set;let _;function v(t){g.delete(t),g.add(t),_||(_=(0,c._)(b))}function m(t){if(t.removed)return;const e=t.oldValue,r=t.getValue();t.equals(e,r)||(t.oldValue=r,t.notify(r,e))}function w(t){for(const e of g.values())e.target===t&&(e.removed=!0)}function b(){let t=10;for(;_&&t--;){_=null;const t=A(),e=y.acquire();for(const r of t){const t=r.uid;m(r),t===r.uid&&r.removed&&e.push(r)}for(const t of g)t.removed&&(e.push(t),g.delete(t));for(const t of e)p.pool.release(t);y.release(e),y.release(t),O.forEach(t=>t())}}function A(){const t=y.acquire();t.length=g.size;let e=0;for(const r of g)t[e]=r,++e;return g.clear(),t}const O=new Set;function N(t,e,r,n=!1){return t.__accessor__&&t.__accessor__.lifecycle!==h.v.DESTROYED?n?function(t,e,r){const n=(0,d.qg)(t,e,r,(t,e,r)=>{let s=!1;return(0,f.mJ)(()=>(0,u.RP)(t,e),(o,a)=>{t.__accessor__.lifecycle!==h.v.DESTROYED?s||(s=!0,(0,i.aI)(a,o)||r.call(t,o,a,e,t),s=!1):n.remove()})});return n}(t,e,r):function(t,e,r){let n=(0,d.qg)(t,e,r,(t,e,r)=>{let i,o,a=(0,f.Df)(()=>(0,u.RP)(t,e),(s,a)=>{t.__accessor__?.lifecycle===h.v.DESTROYED||i&&i.uid!==o?n.remove():(i||(i=p.acquireUntracked(s,r,a,t,e),o=i.uid),v(i))});return(0,s.hA)(()=>{a.remove(),i&&(i.uid!==o||i.removed||(i.removed=!0,v(i)),i=null),n=a=null})});return n}(t,e,r):(0,s.hA)()}function k(t,e,r=!1,n=i.gh){return r?function(t,e,r){let n=!1;return(0,f.mJ)(t,(t,s)=>{n||(n=!0,r(s,t)||e(t,s),n=!1)})}(t,e,n):function(t,e,r){let n,i,o=(0,f.Df)(t,(t,s)=>{n&&n.uid!==i?o.remove():(n||(n=p.acquireTracked(t,e,s,r),i=n.uid),v(n))});return(0,s.hA)(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,v(n)),n=null),o=null})}(t,e,n)}},49422(t,e,r){r.d(e,{M:()=>d,R:()=>f});var n=r(4576),s=r(49186),i=r(53966),o=r(16649),a=r(35666),c=r(88620),l=r(7142);function u(t,e,r,n,s){const i={};return e.write?.writer?.call(t,n,i,r,s),i}function h(t,e,r,c,l,u){if(!c?.write)return!1;const h=(0,o.Jt)(t,r);if(!l&&c.write.overridePolicy){const e=c.write.overridePolicy.call(t,h,r,u??void 0);void 0!==e&&(l=e)}if(l||(l=c.write),!l||!1===l.enabled)return!1;if(l.layerContainerTypes&&u?.layerContainerType&&!l.layerContainerTypes.includes(u.layerContainerType))return!1;if((null===h&&!l.allowNull&&!l.writerEnsuresNonNull||void 0===h)&&l.isRequired){const e=new s.A("web-document-write:property-required",`Missing value for required property '${r}' on '${t.declaredClass}'`,{propertyName:r,target:t});return e&&u?.messages?u.messages.push(e):e&&!u&&i.A.getLogger("esri.core.accessorSupport.write").error(e.name,e.message),!1}return!(void 0===h||null===h&&!l.allowNull&&!l.writerEnsuresNonNull||!(l.alwaysWriteDefaults||e.store.multipleOriginsSupported&&0!==e.store.originOf(r))&&function(t,e,r,s,i){const o=s.default;if(void 0===o)return!1;if(null!=s.defaultEquals)return s.defaultEquals(i);if("function"==typeof o){if(Array.isArray(i)){const s=o.call(t,e,r??void 0);return(0,n.aI)(s,i)}return!1}return o===i}(t,r,u,c,h)||!l.ignoreOrigin&&u?.origin&&e.store.multipleOriginsSupported&&e.store.originOf(r)<(0,a.aB)(u.origin))}function f(t,e,r,n){const s=(0,c.oY)(t),i=s.metadata,o=(0,l.k4)(i[e],n);return!!o&&h(t,s,e,o,r,n)}function d(t,e,r){if(t&&"function"==typeof t.toJSON&&(!t.toJSON.isDefaultToJSON||!t.write))return(0,c.h1)(e,t.toJSON(r));const n=(0,c.oY)(t),s=n.metadata;for(const i in s){const f=(0,l.k4)(s[i],r);if(!h(t,n,i,f,void 0,r))continue;const d=(0,o.Jt)(t,i),p=u(t,f,f.write&&"string"==typeof f.write.target?f.write.target:i,d,r);Object.keys(p).length>0&&(e=(0,c.h1)(e,p),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>(0,c.h1)(e,p,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:t,propName:i,oldOrigin:(0,a.in)(n.store.originOf(i)),newOrigin:r.origin}))}return e}},5479(t,e,r){function n(t){const e=[];return function*(){yield*e;let r,n=e.length;for(;!(r=t.next()).done;)for(e.push(r.value),yield r.value;++n<e.length;)yield e[n]}}r.d(e,{I6:()=>o,N5:()=>i,PP:()=>n,xZ:()=>c,zN:()=>a});const s=Object.freeze({done:!0,value:void 0});function i(t){const e=[];let r=null,n=null,i=!1;async function o(){if(i)return s;if(null!=n)return n;n=t.next();try{const t=await n;return n=null,t.done?(i=!0,s):(e.push(t.value),t)}catch(t){throw i=!0,n=null,r=t,t}}return async function*(){yield*e;let t,n=e.length;for(;!(t=await o()).done;)for(yield t.value;++n<e.length;)yield e[n];if(null!=r)throw r}}function o(t,e){for(const r of t)if(null!=r&&e(r))return r}function a(t,e){for(const r of t)if(e(r))return!0;return!1}function c(t){return null!=t&&"function"==typeof t[Symbol.iterator]}},66552(t,e,r){r.d(e,{J:()=>s,O:()=>o});var n=r(93637);class s{constructor(t,e={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=e,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(t){const e={};for(const r in t)e[t[r]]=r;return e}(t),this.apiValues=i(this._apiToJSON),this.jsonValues=i(this._jsonToAPI),this.read=t=>this.fromJSON(t),this.write=(t,e,r)=>{const s=this.toJSON(t);void 0!==s&&(0,n.sM)(r,s,e)},this.write.isJSONMapWriter=!0}toJSON(t){if(null==t)return null;if(this._apiToJSON.hasOwnProperty(t)){const e=this._apiToJSON[t];return this._options.useNumericKeys?+e:e}return this._options.ignoreUnknown?null:t}fromJSON(t){return null!=t&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}}function i(t){const e=[];for(const r in t)e.push(r);return e.sort(),e}function o(){return function(t,e){return new s(t,{ignoreUnknown:!0,...e})}}},26390(t,e,r){r.d(e,{d:()=>s});const n=[];function s(t){n.push(t),1===n.length&&queueMicrotask(()=>{const t=n.slice();n.length=0;for(const e of t)e()})}},76030(t,e,r){r.d(e,{_:()=>g,$m:()=>O,md:()=>A});var n=r(26390);function s(t,e,r,n,s){console.timeStamp(t,e,r,s,n)}class i{constructor(t,e=30){this.name=t,this._counter=0,this._samples=new Array(e)}push(t){null!=t&&(this._samples[++this._counter%this._samples.length]=t)}set(t){null!=t&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,e)=>t-e)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,e)=>t+e,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var o=r(15142),a=r(17676),c=r(78659);class l{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}}let u=0;const h={time:(0,c.l5)(0),deltaTime:(0,c.l5)(0),elapsedFrameTime:(0,c.l5)(0),frameDuration:(0,c.l5)(0)},f=["prepare","preRender","render","postRender","update","finish"],d=[],p=new o.A,y={frameTasks:p,willDispatch:!1,clearFrameTasks:function(t=!1){p.forAll(t=>{t.removed=!0}),t&&w()},dispatch:b,executeFrameTasks:function(t){const e=(0,c.l5)(t-u);u=t;const r=1e3/60,n=Math.max(0,e-r);h.time=t,h.frameDuration=(0,c.l5)(r-n);for(let r=0;r<f.length;r++){const n=performance.now(),i=f[r];p.forAll(n=>{n.paused||n.removed||(0===r&&n.ticks++,n.phases[i]&&(h.elapsedFrameTime=(0,c.l5)(performance.now()-t),h.deltaTime=0===n.ticks?(0,c.l5)(0):e,n.phases[i]?.call(n,h)))});const o=performance.now();N[r].push(o-n),s(i,n,o,"Maps SDK","Scheduling")}w();const i=performance.now();k.push(i-t),s("Animation Frame",t,i,"Maps SDK","Scheduling")},reschedule:function(){null!=_&&(cancelAnimationFrame(_),_=requestAnimationFrame(v))}};function g(t){const e=new l(t);return d.push(e),y.willDispatch||(y.willDispatch=!0,(0,n.d)(b)),e}let _=null;function v(){const t=performance.now();_=null;const e=p.some(t=>!t.paused&&!t.removed);_=e?requestAnimationFrame(v):null,y.executeFrameTasks(t)}const m=new o.A;function w(){p.forAll(t=>{t.removed&&m.push(t)}),p.removeUnorderedMany(m.data,m.length),m.clear()}function b(){for(;d.length;){const t=d.shift();t.isActive&&t.callback()}y.willDispatch=!1}function A(t=1,e){const r=Promise.withResolvers(),s=()=>{(0,a.G4)(e)?r.reject((0,a.NK)()):0===t?r.resolve():(--t,(0,n.d)(()=>s()))};return s(),r.promise}async function O(t){await function(t){return A(1,t)}(t),await new Promise(e=>requestAnimationFrame(()=>{t?.aborted||e()}))}const N=f.map(t=>new i(t)),k=new i("total")},78659(t,e,r){function n(t){return t}function s(t){return 1e3*t}function i(t){return t}function o(t){return.001*t}r.d(e,{Kp:()=>i,gr:()=>s,l5:()=>n,y:()=>o})},24326(t,e,r){r.d(e,{c:()=>s});let n=0;function s(){return++n}},59923(t,e,r){r.d(e,{GL:()=>h,U4:()=>a,Yc:()=>u,bA:()=>l,qt:()=>c});var n=r(49186),s=r(67076);const i=["layer","property","renderer","symbol","symbol-layer","url","visual-variable","type","elevation-profile-line","field-configuration-field-format"].map(t=>`${t}:unsupported`),o=new Set(i);function a(t,e,r){if(!t)return;const n=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t?.messages?.push(h("layer",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' is not supported in the context of '${n}'${r?`: ${r}`:""}`,{layer:e}))}function c(t,e,r){if(!t)return;const n=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t?.messages?.push(h("property",`Property '${e}' is not supported in the context of '${n}'${r?`: ${r}`:""}`))}function l(t,e,r,n){if(!t)return;const s=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t?.messages?.push(h("symbol",`Symbol '${e.declaredClass}' is not supported in the context of '${s}'${r?`: ${r}`:""}`,n))}function u(t,e,r,i,o){t&&t?.messages?.push(f("warning"===e?s.A:n.A,r,i,o))}function h(t,e,r){return f(n.A,t,e,r)}function f(t,e,r,n){return new t(`${e}:unsupported`,r,n)}r.d(e,["MG",0,o])}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6977],{69622(t,e,r){r.d(e,{A:()=>I});var n=r(51447),s=r(71511),i=r(53966),o=r(97768),a=r(56454),c=r(16649),l=r(85537),u=r(96156),h=(r(44208),r(4718)),f=r(93687),d=r(11406),p=r(62788),y=r(47328),g=r(67867);class _ extends d.T{constructor(t,e){super(),this.propertyName=t,this.metadata=e,this.trackingTarget=new g.R(this),this.flags=0,this.flags=y.i.Dirty|(e.nonNullable?y.i.NonNullable:0)|(e.hasOwnProperty("value")?y.i.HasDefaultValue:0)|(void 0===e.get?y.i.DepTrackingInitialized:0)|(void 0===e.dependsOn?y.i.AutoTracked:0)}destroy(){this.flags&y.i.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t,e){t.mutable&&(0,p.gc)(this);const r=t.store,n=this.propertyName,s=this.flags,i=r.get(n);if(s&y.i.Computing)return i;if(!(s&y.i.Dirty)&&r.has(n))return i;let o;this.flags|=y.i.Computing;const{host:a}=t;s&y.i.AutoTracked?o=(0,p.a)(this.trackingTarget,e,a):((0,p.Xr)(a,this),o=e.call(a)),this.flags|=y.i.DepTrackingInitialized,r.set(n,o,1);const c=r.get(n);return c===i?this.flags&=~y.i.Dirty:(0,p.F_)(this.commit,this),this.flags&=~y.i.Computing,c}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~y.i.Dirty,this.onCommitted()}onInvalidated(){~this.flags&y.i.Overridden&&(this.flags|=y.i.Dirty);const t=this._observers;if(t&&t.length>0)for(const e of t)e.onInvalidated()}onCommitted(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onCommitted()}}}var v=r(35666);class m{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){const e=new m;return this._values.forEach((r,n)=>{t&&t.has(n)||e.set(n,(0,h.o8)(r))}),e}get(t){return this._values.get(t)}originOf(){return 7}keys(){return[...this._values.keys()]}set(t,e){this._values.set(t,e)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}isAtOrigin(t,e){return this.has(t)}isBelowOrigin(t,e){return!this.has(t)}forEach(t){this._values.forEach(t)}}function w(t,e,r){return void 0!==t}function b(t,e,r,n){return!(void 0===t||null==r&&t.flags&y.i.NonNullable&&(n.lifecycle,l.v.INITIALIZING,1))}class A{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=l.v.INITIALIZING,this.store=new m,this.mutable=!0,this._origin=7;const e=this.host.constructor.__accessorMetadata__;for(const t in e){const r=new _(t,e[t]);this.propertiesByName.set(t,r)}this.metadata=e}initialize(){this.lifecycle=l.v.CONSTRUCTING}constructed(){this.lifecycle=l.v.CONSTRUCTED}destroy(){this.lifecycle=l.v.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==l.v.INITIALIZING}get(t){const e=this.propertiesByName.get(t);if(!w(e))return;const r=e.metadata.get;if(r)return e.getComputed(this,r);this.mutable&&(0,p.gc)(e);const n=this.store;return n.has(t)?n.get(t):e.metadata.value}originOf(t){const e=this.store.originOf(t);if(void 0===e){const e=this.propertiesByName.get(t);if(void 0!==e&&e.flags&y.i.HasDefaultValue)return"defaults"}return(0,v.OL)(e)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){const e=this.propertiesByName.get(t);if(w(e))return this.store.has(t)?this.store.get(t):e.metadata.value}internalSet(t,e){const r=this.propertiesByName.get(t);w(r)&&this._internalSet(r,e)}getDependsInfo(t,e,r){const n=this.propertiesByName.get(e);if(!w(n))return"";const s=new g.R,i=(0,p.a)(s,()=>n.metadata.get?.call(t));let o=`${r}${t.declaredClass.split(".").pop()}.${e}: ${i}\n`;const a=s.accessed??new Set;if(0===a.size)return o;r+=" ";for(const t of a)t instanceof _&&(o+=`${r}${t.propertyName}: undefined\n`);return o}setAtOrigin(t,e,r){const n=this.propertiesByName.get(t);if(w(n))return this._setAtOrigin(n,e,r)}isOverridden(t){const e=this.propertiesByName.get(t);return void 0!==e&&!!(e.flags&y.i.Overridden)}clearOrigin(t,e){const r=this.store,n=this.propertiesByName.get(t);if(!w(n))return;const s=r.isAtOrigin(t,e)&&!(n.flags&y.i.Overridden);r.delete(t,e),s&&n.notifyChange()}clearOverride(t){const e=this.propertiesByName.get(t);e&&e.flags&y.i.Overridden&&(e.flags&=~y.i.Overridden,e.notifyChange())}override(t,e){const r=this.propertiesByName.get(t);if(!b(r,0,e,this))return;const n=r.metadata.cast;if(n){const t=this._cast(n,e),{valid:r,value:s}=t;if(N.release(t),!r)return;e=s}r.flags|=y.i.Overridden,this._internalSet(r,e)}set(t,e){const r=this.propertiesByName.get(t);if(!b(r,0,e,this))return;const n=r.metadata.cast;if(n){const t=this._cast(n,e),{valid:r,value:s}=t;if(N.release(t),!r)return;e=s}const s=r.metadata.set;s?s.call(this.host,e):this._internalSet(r,e)}setDefaultOrigin(t){this._origin=(0,v.aB)(t)}getDefaultOrigin(){return(0,v.OL)(this._origin)}notifyChange(t){this.propertiesByName.get(t)?.notifyChange()}invalidate(t){this.propertiesByName.get(t)?.invalidate()}commit(t){this.propertiesByName.get(t)?.commit()}_internalSet(t,e){const r=this.lifecycle!==l.v.INITIALIZING?this._origin:0;this._setAtOrigin(t,e,r)}_setAtOrigin(t,e,r){const n=this.store,s=t.propertyName,i=n.isAtOrigin(s,r);if(i&&~t.flags&y.i.Overridden&&(0,h.aI)(e,n.get(s)))return;const o=n.isBelowOrigin(s,r)||i;o&&t.invalidate(),n.set(s,e,r),o&&t.commit(),(0,p.fE)(this.host,t)}_cast(t,e){const r=N.acquire();return r.valid=!0,r.value=e,t&&(r.value=t.call(this.host,e,r)),r}}class O{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}}const N=new f.A(()=>new O);var k=r(47821);var S,j,T=r(14012),C=r(10107),D=r(64108);function E(t){if(null==t)return{value:t};if(Array.isArray(t))return{type:[t[0]],value:null};switch(typeof t){case"object":return t.constructor?.__accessorMetadata__||t instanceof Date?{type:t.constructor,value:t}:t;case"boolean":return{type:Boolean,value:t};case"string":return{type:String,value:t};case"number":return{type:Number,value:t};case"function":return{type:t,value:null};default:return}}const $=Symbol("Accessor-Handles"),M=Symbol("Accessor-Initialized");class I{static{S=$,j=M}static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:e,declaredClass:r,constructor:n}=t;delete t.declaredClass,delete t.properties,delete t.constructor;const s=this;class i extends s{constructor(...t){super(...t),this.inherited=null,n&&n.apply(this,t)}}(0,u.tD)(i.prototype);for(const e in t){const r=t[e];i.prototype[e]="function"==typeof r?function(...t){const n=this.inherited;let i;this.inherited=function(...t){if(s.prototype[e])return s.prototype[e].apply(this,t)};try{i=r.apply(this,t)}catch(t){throw this.inherited=n,t}return this.inherited=n,i}:t[e]}for(const t in e){const r=E(e[t]);(0,C.MZ)(r)(i.prototype,t)}return(0,D.$)(r)(i)}static freeze(t){return t instanceof I?t.__accessor__.mutable=!1:Object.freeze(t),t}static isFrozen(t){return t instanceof I?!t.__accessor__.mutable:Object.isFrozen(t)}constructor(...t){if(this[S]=null,this[j]=!1,this.constructor===I)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");const e=new A(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:e}),t.length>0&&(e.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0])}postscript(){const t=this.__accessor__,e=t.ctorArgs;t.initialize(),e&&(this.set(e),t.ctorArgs=null),t.constructed(),this.initialize(),this[M]=!0}initialize(){}[a.G](){this[$]=(0,o.pR)(this[$])}destroy(){this.destroyed||((0,T.iS)(this),this.__accessor__.destroy())}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[M]}get destroyed(){return this.__accessor__?.lifecycle===l.v.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===l.v.DESTROYING||!1}commitProperty(t){(0,c.Jt)(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,e){return(0,k.h)(this,t,e),this}watch(t,e,r){return(0,n.eO)(i.A.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://arcg.is/1vaqf42#watch",warnOnce:!0}),(0,T.wB)(this,t,e,r)}addHandles(t,e){if(this.destroyed){const e=Array.isArray(t)?t:[t];for(const t of e)t.remove();return}(this[$]??=new s.A).add(t,e)}removeHandles(t){this[$]?.remove(t)}removeAllHandles(){this[$]?.removeAll()}removeHandlesReference(t){this[$]?.removeReference(t)}hasHandles(t){return!0===this[$]?.has(t)}_override(t,e){void 0===e?this.__accessor__.clearOverride(t):this.__accessor__.override(t,e)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,e){null==e?this.__accessor__.clearOverride(t):this.__accessor__.override(t,e)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,e){return this.__accessor__.internalSet(t,e),this}}},98291(t,e,r){r.d(e,{A:()=>i});var n=r(93687);function s(t){t.length=0}class i{constructor(t=50,e=50){this._pool=new n.A(()=>[],void 0,s,e,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return o.acquire()}static release(t){return o.release(t)}static prune(){o.prune()}}const o=new i(100)},71511(t,e,r){r.d(e,{A:()=>s});var n=r(5479);class s{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let t=0;return this._groups.forEach(e=>{t+=e.length}),t}add(t,e){if((0,n.xZ)(t)){const r=this._getOrCreateGroup(e);for(const e of t)a(e)&&r.push(e)}else a(t)&&this._getOrCreateGroup(e).push(t);return this}forEach(t,e){if("function"==typeof t)this._groups.forEach(e=>e.forEach(t));else{const r=this._getGroup(t);r&&e&&r.forEach(e)}}has(t){return this._groups.has(i(t))}remove(t){if("string"!=typeof t&&(0,n.xZ)(t)){for(const e of t)this.remove(e);return this}return this.has(t)?(o(this._getGroup(t)),this._groups.delete(i(t)),this):this}removeAll(){return this._groups.forEach(o),this._groups.clear(),this}removeReference(t){return this._groups.delete(t),this}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);const e=[];return this._groups.set(i(t),e),e}_getGroup(t){return this._groups.get(i(t))}}function i(t){return t||"_default_"}function o(t){for(const e of t)e instanceof s?e.removeAll():e.remove()}function a(t){return null!=t&&(!!t.remove||t instanceof s)}},25482(t,e,r){r.d(e,{o:()=>y,T:()=>d});var n=r(5482),s=r(69622),i=r(4718);class o{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){const e=new o;return this._values.forEach((r,n)=>{t&&t.has(n)||e.set(n,(0,i.o8)(r.value),r.origin)}),e}get(t,e){e=this._normalizeOrigin(e);const r=this._values.get(t);return null==e||r?.origin===e?r?.value:void 0}originOf(t){return this._values.get(t)?.origin??7}keys(t){t=this._normalizeOrigin(t);const e=[...this._values.keys()];return null==t?e:e.filter(e=>this._values.get(e)?.origin===t)}set(t,e,r){if(0===(r=this._normalizeOrigin(r))){const e=this._values.get(t);if(null!=e?.origin&&e.origin>r)return}this._values.set(t,new a(e,r))}delete(t,e){null!=(e=this._normalizeOrigin(e))&&this._values.get(t)?.origin!==e||this._values.delete(t)}has(t,e){return null!=(e=this._normalizeOrigin(e))?this._values.get(t)?.origin===e:this._values.has(t)}isAtOrigin(t,e){return e=this._normalizeOrigin(e),this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return e=this._normalizeOrigin(e),!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(({value:e},r)=>t(e,r))}_normalizeOrigin(t){if(null!=t)return 0===t?t:7}}class a{constructor(t,e){this.value=t,this.origin=e}}var c=r(76953),l=r(45917),u=r(88620),h=r(49422),f=r(64108);const d=t=>{const e=t;let r=class extends e{constructor(...t){super(...t);const e=(0,u.oY)(this),r=e.store,n=new o;e.store=n,(0,c.k)(e,r,n)}read(t,e){(0,l.L)(this,t,e)}write(t,e){return(0,h.M)(this,t??{},e)}toJSON(t){return this.write({},t)}static fromJSON(t,e){return p.call(this,t,e)}};return r=(0,n.Cg)([(0,f.$)("esri.core.JSONSupport")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function p(t,e){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const r=new this;return r.read(t,e),r}const y=d(s.A)},93687(t,e,r){r.d(e,{A:()=>n});class n{constructor(t,e,r,n=1,s=0){this._creator=t,this._acquireFunction=e,this._releaseFunction=r,this.allocationSize=n,this._pool=new Array(s),this._initialSize=s;for(let t=0;t<s;t++)this._pool[t]=this._creator();this.allocationSize=Math.max(n,1)}destroy(){this.prune(0)}acquire(...t){if(0===this._pool.length){const t=this.allocationSize;for(let e=0;e<t;e++)this._pool[e]=this._creator()}const e=this._pool.pop();return this._acquireFunction?this._acquireFunction(e,...t):function(t){return t?.acquire&&"function"==typeof t.acquire}(e)&&e.acquire(...t),e}release(t){var e;t&&(this._releaseFunction?this._releaseFunction(t):(e=t,e?.release&&"function"==typeof e.release&&t.release()),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let e=t;e<this._pool.length;++e){const t=this._pool[e];this._dispose(t)}this._pool.length=t}}_dispose(t){t.dispose&&"function"==typeof t.dispose&&t.dispose()}}},15142(t,e,r){r.d(e,{A:()=>l});var n=r(4576),s=r(21818);const i=(t,e,r,n)=>{let s=e,i=e;const o=r>>>1,a=t[s-1];for(;i<=o;){i=s<<1,i<r&&n(t[i-1],t[i])<0&&++i;const e=t[i-1];if(n(e,a)<=0)break;t[s-1]=e,s=i}t[s-1]=a},o=(t,e)=>t<e?-1:t>e?1:0;function a(t,e,r,n){void 0===e&&(e=0),void 0===r&&(r=t.length),void 0===n&&(n=o);for(let s=r>>>1;s>e;s--)i(t,s,r,n);const s=e+1;for(let o=r-1;o>e;o--){const r=t[e];t[e]=t[o],t[o]=r,i(t,s,o,n)}}function*c(t,e,r,n){void 0===e&&(e=0),void 0===r&&(r=t.length),void 0===n&&(n=o);for(let s=r>>>1;s>e;s--)i(t,s,r,n),yield;const s=e+1;for(let o=r-1;o>e;o--){const r=t[e];t[e]=t[o],t[o]=r,i(t,s,o,n),yield}}class l{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new n.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>u(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const e=new Array;for(let r=0;r<this._length;r++){const n=this.data[r];t(n)&&e.push(n)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){const r=this.data.indexOf(t,e);return-1!==r&&r<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let r=0;r<e;r++)this.data[this._length++]=t[r]}pushAll(t){for(const e of t)this.data[this._length++]=e}fill(t,e){for(let r=0;r<e;r++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,u(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const e=(0,n.qh)(this.data,(0,s.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,n.qh)(this.data,(0,s.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,r){this.length=(0,n.mW)(this.data,t,this.length,e,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;const r=this.data[t];this.data[t]=this.data[e],this.data[e]=r}sort(t){a(this.data,0,this.length,t)}iterableSort(t){return c(this.data,0,this.length,t)}some(t,e){for(let r=0;r<this.length;++r)if(t.call(e,this.data[r],r,this.data))return!0;return!1}find(t,e){const{data:r,length:n}=this;for(let s=0;s<n;++s)if(t.call(e,r[s]))return r[s]}filterInPlace(t,e){let r=0;for(let n=0;n<this._length;++n){const s=this.data[n];t.call(e,s,n,this.data)&&(this.data[n]=this.data[r],this.data[r]=s,r++)}if(this._deallocator)for(let t=r;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=r,this._shrink(),this}forAll(t,e){const{data:r,length:n}=this;for(let s=0;s<n;++s)t.call(e,r[s],s,r)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){const r=new Array(this.length);for(let n=0;n<this.length;++n)r[n]=t.call(e,this.data[n],n,this.data);return r}reduce(t,e){let r=e;for(let e=0;e<this.length;++e)r=t(r,this.data[e],e,this.data);return r}has(t){const e=this.length,r=this.data;for(let n=0;n<e;++n)if(r[n]===t)return!0;return!1}*[Symbol.iterator](){const{data:t,length:e}=this;for(let r=0;r<e;++r)yield t[r]}}function u(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},67076(t,e,r){r.d(e,{A:()=>s});var n=r(799);class s{constructor(t,e,r){this.name=t,this.details=r,this.type="warning",this.message=e?(0,n.V2)(e,r):""}toString(){const{name:t,message:e}=this;return`[${t}]: ${e}`}}},85537(t,e,r){r.d(e,["v",0,{INITIALIZING:0,CONSTRUCTING:1,CONSTRUCTED:2,DESTROYING:3,DESTROYED:4}])},11406(t,e,r){r.d(e,{T:()=>i});var n=r(36563);class s{constructor(t,e){this._observers=t,this._observer=e}remove(){const{_observers:t,_observer:e}=this;if(t[t.length-1]===e)return void t.pop();const r=t.indexOf(this._observer);-1!==r&&t.splice(r,1)}}class i{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return o;null==this._observers&&(this._observers=[]);const e=this._observers;let r=!1,n=!1;for(const s of e)if(s.destroyed)n=!0;else if(s===t){r=!0;break}return r||(e.push(t),n&&this._removeDestroyedObservers()),new s(e,t)}_removeDestroyedObservers(){const t=this._observers;if(!t)return;const e=t.length;if(0===e)return;let r=0;for(let n=0;n<e;++n){for(;n+r<e&&t[n+r].destroyed;)++r;if(r>0){if(!(n+r<e))break;t[n]=t[n+r]}}t.length=e-r}destroy(){if(this.destroyed)return;this.destroyed=!0;const t=this._observers;if(null!=t){for(const e of t)e.onCommitted();this._observers=null}}}const o=(0,n.hA)()},35666(t,e,r){function n(t){switch(t){case"defaults":return 0;case"service":return 2;case"portal-item":return 3;case"web-scene":return 4;case"web-map":return 5;case"link-chart":return 6;case"user":return 7;default:return null}}function s(t){switch(t){case 0:return"defaults";case 2:return"service";case 3:return"portal-item";case 4:return"web-scene";case 5:return"web-map";case 6:return"link-chart";case 7:return"user"}}function i(t){return s(t)}r.d(e,{OL:()=>s,aB:()=>n,in:()=>i})},56454(t,e,r){const n=Symbol("Accessor-beforeDestroy");r.d(e,["G",0,n])},91429(t,e,r){r.d(e,{wg:()=>c,MZ:()=>o,$K:()=>a});var n=r(10107),s=r(79901),i=r(64108);r(93223),r(36005),r(43937);const o=n.MZ,a=i.$;function c(...t){return(0,s.w)(...t)}},79901(t,e,r){r.d(e,{w:()=>c});var n=r(56507),s=r(96156);const i=Object.prototype.toString;function o(t){const e="__accessorMetadata__"in t?(0,n.dp)(t):t;return function(...t){if(t.push(e),"number"==typeof t[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,t)}}function a(t,e,r,n){(0,s.z4)(t,e).cast=n}function c(...t){if(3!==t.length||"string"!=typeof t[1])return 1===t.length&&"[object Function]"===i.call(t[0])?o(t[0]):1===t.length&&"string"==typeof t[0]?function(t){return(e,r)=>{(0,s.z4)(e,t).cast=e[r]}}(t[0]):void 0}},93223(t,e,r){r.d(e,{e:()=>i});var n=r(66552),s=r(10107);function i(t,e={}){const r=t instanceof n.J?t:new n.J(t,e),{alwaysWriteDefaults:i,default:o,ignoreUnknown:a=!0,name:c,nonNullable:l,readOnly:u=!1}=e;return(0,s.MZ)({type:a?r.apiValues:String,json:{type:r.jsonValues,default:o,name:c,read:!u&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:i}},nonNullable:l,readOnly:u})}},10107(t,e,r){r.d(e,{MZ:()=>c,rM:()=>l});var n=r(53966),s=r(56507),i=r(16649),o=r(96156),a=r(47821);function c(t={}){return(e,r)=>{if(e===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${e.name}.${r}. Accessor does not support static properties.`);const c=Object.getOwnPropertyDescriptor(e,r),l=(0,o.z4)(e,r);c&&(c.get||c.set?(l.get=c.get||l.get,l.set=c.set||l.set):"value"in c&&("value"in t&&n.A.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${e.constructor.name}" already defined in the metadata`,t),l.value=t.value=c.value)),null!=t.readOnly&&(l.readOnly=t.readOnly);const u=t.aliasOf;if(u){const t="string"==typeof u?u:u.source,e="string"==typeof u?null:!0===u.overridable;let n;l.dependsOn=[t],l.get=function(){let e=(0,i.Jt)(this,t);if("function"==typeof e){n||(n=t.split(".").slice(0,-1).join("."));const r=(0,i.Jt)(this,n);r&&(e=e.bind(r))}return e},l.readOnly||(l.set=e?function(t){this._override(r,t)}:function(e){(0,a.h)(this,t,e)})}const h=t.type,f=t.types;if(!l.cast){let e;h&&!1!==t.useTypeForAutocast?e=function(t){let e=0,r=t;if((0,s.Zu)(t))return(0,s.Nd)(t);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],e++;const n=r;if((0,s.EK)(n))return 0===e?(0,s.MB)(n):(0,s._e)((0,s.MB)(n),e);if(1===e)return(0,s.eC)(n);if(e>1)return(0,s.e6)(n,e);const i=t;return i.from?i.from:(0,s.dp)(i)}(h):f&&(e=Array.isArray(f)?(0,s.wB)((0,s.aq)(f[0])):(0,s.aq)(f)),t.cast=function(t,e){if(t||e)return t?e?(r,n)=>e(t(r,n),n):t:e}(t.cast,e)}(0,o.CX)(l,t),t.range&&(l.cast=(0,s.Qp)(l.cast,t.range))}}function l(t,e,r){const n=(0,o.z4)(t,r);n.json||(n.json={});let s=n.json;return void 0!==e&&(s.origins||(s.origins={}),s.origins[e]||(s.origins[e]={}),s=s.origins[e]),s}},36005(t,e,r){r.d(e,{w:()=>s});var n=r(10107);function s(t,e,r){let s,i;return void 0===e||Array.isArray(e)?(i=t,r=e,s=[void 0]):(i=e,s=Array.isArray(t)?t:[t]),(t,e)=>{const o=t.constructor.prototype;s.forEach(s=>{const a=(0,n.rM)(t,s,i);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=o[e],r&&(a.read.source=(a.read.source||[]).concat(r))})}}},64108(t,e,r){r.d(e,{$:()=>b}),r(44208);var n=r(53966),s=r(56454),i=r(85537),o=r(96156),a=r(62788),c=r(56507),l=r(90360);function u(t){if(t.json||(t.json={}),f(t.json),d(t.json),h(t.json),t.json.origins)for(const e in t.json.origins)f(t.json.origins[e]),d(t.json.origins[e]),h(t.json.origins[e]);return!0}function h(t){t.name&&(t.read&&"object"==typeof t.read?void 0===t.read.source&&(t.read.source=t.name):t.read={source:t.name},t.write&&"object"==typeof t.write?void 0===t.write.target&&(t.write.target=t.name):t.write={target:t.name})}function f(t){"boolean"==typeof t.read?t.read={enabled:t.read}:"function"==typeof t.read?t.read={enabled:!0,reader:t.read}:t.read&&"object"==typeof t.read&&void 0===t.read.enabled&&(t.read.enabled=!0)}function d(t){"boolean"==typeof t.write?t.write={enabled:t.write}:"function"==typeof t.write?t.write={enabled:!0,writer:t.write}:t.write&&"object"==typeof t.write&&void 0===t.write.enabled&&(t.write.enabled=!0)}var p=r(67124);function y(t){return t.type?g(t):_(t)}function g(t){if(!t.type)return;let e=0,r=t.type;for(;Array.isArray(r)&&!(0,c.EK)(r);)r=r[0],e++;return{type:r,ndimArray:e}}function _(t){if(!t.types)return;let e=0,r=t.types;for(;Array.isArray(r);)r=r[0],e++;return{types:r,ndimArray:e}}function v(t){u(t)&&(function(t){if(t.json&&t.json.origins){const e=t.json.origins,r={"web-document":["web-scene","web-map"]};for(const t in r)if(e[t]){const n=e[t];r[t].forEach(t=>{e[t]=n}),delete e[t]}}}(t),function(t){const e=function(t){return t.json.types?_(t.json):t.type?g(t):_(t)}(t);if(t.json.origins)for(const r in t.json.origins){const n=t.json.origins[r],s=n.types?y(n):e;(0,l.v)(s,n,!1),n.types&&!n.write&&t.json.write?.enabled&&(n.write={...t.json.write}),(0,p.v)(s,n)}(0,l.v)(e,t.json,!0),(0,p.v)(e,t.json)}(t))}const m=new Set,w=new Set;function b(t){return e=>{t??="esri.core.Accessor",e.prototype.declaredClass=t,k(e);const r=[],n=[];let a=e.prototype;for(;a;)a.hasOwnProperty("initialize")&&!m.has(a.initialize)&&(m.add(a.initialize),r.push(a.initialize)),a.hasOwnProperty("destroy")&&!w.has(a.destroy)&&(w.add(a.destroy),n.push(a.destroy)),a=Object.getPrototypeOf(a);m.clear(),w.clear();const c=class extends e{constructor(...t){if(super(...t),this.constructor===c&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let t=r.length-1;t>=0;t--)r[t].call(this)}}),n.length){let t=!1;const e=this[s.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!t){this.__accessor__.lifecycle=i.v.DESTROYING,t=!0,e.call(this);for(let t=0;t<n.length;t++)n[t].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};c.__accessorMetadata__=(0,o.tD)(e.prototype),c.prototype.declaredClass=t;const l=(t||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(c.prototype,Symbol.toStringTag,{value:l,configurable:!0,writable:!0,enumerable:!1}),c}}function A(t,{get:e,value:r}){return null==e?function(){const e=this.__accessor__,n=e.propertiesByName.get(t);if(void 0===n)return;e.mutable&&(0,a.gc)(n);const s=e.store;return s.has(t)?s.get(t):r}:function(){const r=this.__accessor__;return r.propertiesByName.get(t)?.getComputed(r,e)}}function O(t,e,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r})}function N(t,e){return e.readOnly&&e.constructOnly?function(r){const n=this.__accessor__;if(n){if(n.mutable)return n.initialized&&e.readOnly?S("read-only",t):n.lifecycle===i.v.CONSTRUCTED&&e.constructOnly?S("construct-only",t):void n.set(t,r)}else O(this,t,r)}:e.readOnly?function(r){const n=this.__accessor__;if(n){if(n.mutable)return n.initialized&&e.readOnly?S("read-only",t):void n.set(t,r)}else O(this,t,r)}:e.constructOnly?function(r){const n=this.__accessor__;if(n){if(n.mutable)return n.lifecycle===i.v.CONSTRUCTED&&e.constructOnly?S("construct-only",t):void n.set(t,r)}else O(this,t,r)}:function(e){const r=this.__accessor__;r?r.mutable&&r.set(t,e):O(this,t,e)}}function k(t){const e=t.prototype,r=(0,o.tD)(e),n={};for(const t of Object.getOwnPropertyNames(r)){const e=r[t];v(e),n[t]={enumerable:!0,configurable:!0,get:A(t,e),set:N(t,e)}}Object.defineProperties(t.prototype,n)}const S=(t,e)=>{n.A.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${e}'`)}},43937(t,e,r){r.d(e,{K:()=>s});var n=r(10107);function s(t,e,r){let s,i;return void 0===e?(i=t,s=[void 0]):"string"!=typeof e?(i=t,s=[void 0],r=e):(i=e,s=Array.isArray(t)?t:[t]),(t,e)=>{const o=t.constructor.prototype;for(const a of s){const s=(0,n.rM)(t,a,i);s.write&&"object"==typeof s.write||(s.write={}),r&&(s.write.target=r),s.write.writer=o[e]}}}},76953(t,e,r){function n(t,e,r){e.keys().forEach(t=>{r.set(t,e.get(t),0)});const n=t.metadata;Object.keys(n).forEach(e=>{t.internalGet(e)&&r.set(e,t.internalGet(e),0)})}r.d(e,{k:()=>n})},56507(t,e,r){r.d(e,{EK:()=>C,GB:()=>l,GX:()=>c,MB:()=>D,Nd:()=>z,PZ:()=>v,Qp:()=>f,Uv:()=>M,Vr:()=>u,Zu:()=>I,_e:()=>j,aq:()=>E,dp:()=>A,e6:()=>T,eC:()=>k,jz:()=>$,qf:()=>O,wB:()=>N});var n=r(53966),s=r(91869);const i=()=>n.A.getLogger("esri.core.accessorSupport.ensureTypes");function o(t){if(null==t)return t;const e=new Date(t);return isNaN(e.getTime())?(i().error("Accessor#set",`Invalid date value: '${t}', falling back to current date`),new Date):e}function a(t){return null==t?t:!!t}function c(t){return null==t?t:t.toString()}function l(t,e=0){return null==t?t:(t=parseFloat(t),isNaN(t)?e:t)}function u(t){return null==t?t:Math.round(parseFloat(t))}function h(t){return null}function f(t,e){return r=>{let n=t(r);return null!=e.step&&(n=Math.round(n/e.step)*e.step),null!=e.min&&(n=Math.max(e.min,n)),null!=e.max&&(n=Math.min(e.max,n)),n}}function d(t){return t?.constructor&&void 0!==t.constructor.__accessorMetadata__}function p(t,e){return null!=e&&t&&!(e instanceof t)}function y(t){return t&&"isCollection"in t}function g(t){return t?.Type?"function"==typeof t.Type?t.Type:t.Type.base:null}function _(t,e){return!!d(e)&&(i().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+m(t)+"'"),!0)}function v(t,e){return null==e?e:y(t)?function(t,e){if(!e?.constructor||!y(e.constructor))return _(t,e)?e:new t(e);const r=g(t.prototype.itemType),n=g(e.constructor.prototype.itemType);return r?n?r===n?e:r.prototype.isPrototypeOf(n.prototype)?new t(e):(_(t,e),e):new t(e):e}(t,e):p(t,e)?_(t,e)?e:new t(e):e}function m(t){return t?.prototype?.declaredClass||"unknown"}const w=new WeakMap;function b(t){switch(t){case Number:return t=>l(t);case $:return u;case Boolean:return a;case String:return c;case Date:return o;case M:return h;default:return(0,s.tE)(w,t,()=>v.bind(null,t))}}function A(t,e){const r=b(t);return 1===arguments.length?r:r(e)}function O(t){const e=b(t);return t=>e(t)}function N(t,e,r){return 1===arguments.length?N.bind(null,t):e?Array.isArray(e)?e.map(e=>t(e,r)):[t(e,r)]:e}function k(t,e){return 1===arguments.length?N(e=>A(t,e)):N(e=>A(t,e),e)}function S(t,e,r){return 0!==e&&Array.isArray(r)?r.map(r=>S(t,e-1,r)):t(r)}function j(t,e,r){if(2===arguments.length)return r=>j(t,e,r);if(!r)return r;r=S(t,e,r);let n=e,s=r;for(;n>0&&Array.isArray(s);)n--,s=s[0];if(void 0!==s)for(let t=0;t<n;t++)r=[r];return r}function T(t,e,r){return 2===arguments.length?j(e=>A(t,e),e):j(e=>A(t,e),e,r)}function C(t){return!!Array.isArray(t)&&!t.some(e=>{const r=typeof e;return!("string"===r||"number"===r||"function"===r&&t.length>1)})}function D(t,e){if(2===arguments.length)return D(t).call(null,e);const r=new Set,n=t.filter(t=>"function"!=typeof t),s=t.filter(t=>"function"==typeof t);for(const e of t)"string"!=typeof e&&"number"!=typeof e||r.add(e);let o=null,a=null;return(t,e)=>{if(null==t)return t;const c=typeof t,l="string"===c||"number"===c;return l&&(r.has(t)||s.some(t=>"string"===c&&t===String||"number"===c&&t===Number))||"object"===c&&s.some(e=>!p(e,t))?t:(l&&n.length?(o||(o=n.map(t=>"string"==typeof t?`'${t}'`:`${t}`).join(", ")),i().error("Accessor#set",`'${t}' is not a valid value for this property, only the following values are valid: ${o}`)):"object"==typeof t&&s.length?(a||(a=s.map(t=>m(t)).join(", ")),i().error("Accessor#set",`'${t}' is not a valid value for this property, value must be one of ${a}`)):i().error("Accessor#set",`'${t}' is not a valid value for this property`),e&&(e.valid=!1),null)}}function E(t,e){if(2===arguments.length)return E(t).call(null,e);const r={},n=[],s=[];for(const e in t.typeMap){const i=t.typeMap[e];r[e]=A(i),n.push(m(i)),s.push(e)}const o=()=>`'${n.join("', '")}'`,a=()=>`'${s.join("', '")}'`,c="string"==typeof t.key?e=>e[t.key]:t.key;return e=>{if(t.base&&!p(t.base,e))return e;if(null==e)return e;const n=c(e)||t.defaultKeyValue,s=r[n];if(!s)return i().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!p(t.typeMap[n],e))return e;if("string"==typeof t.key&&!d(e)){const r={};for(const n in e)n!==t.key&&(r[n]=e[n]);return s(r)}return s(e)}}class ${}class M{}function I(t){if(!t||"object"!=typeof t&&"function"!=typeof t||!("type"in t))return!1;switch(t.type){case"native":case"array":case"one-of":return!0}return!1}function z(t){switch(t.type){case"native":return A(t.value);case"array":return N(z(t.value));case"one-of":return function(t){let e=null;return(r,n)=>q(r,t)?r:(null==e&&(e=P(t)),i().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),n&&(n.valid=!1),null)}(t);default:return null}}function P(t){switch(t.type){case"native":switch(t.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case $:return"integer";case Date:return"date";case M:return"null";default:return m(t.value)}case"array":return`array of ${P(t.value)}`;case"one-of":{const e=t.values.map(t=>P(t));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function q(t,e){if(null==t)return!0;switch(e.type){case"native":switch(e.value){case Number:case $:return"number"==typeof t;case Boolean:return"boolean"==typeof t;case String:return"string"==typeof t;case M:return null===t}return t instanceof e.value;case"array":return!!Array.isArray(t)&&!t.some(t=>!q(t,e.value));case"one-of":return e.values.some(e=>q(t,e))}}r.d(e,["gK",0,{native:t=>({type:"native",value:t}),array:t=>({type:"array",value:t}),oneOf:t=>({type:"one-of",values:t})}])},90360(t,e,r){r.d(e,{C:()=>h,v:()=>u});var n=r(53966),s=r(93637),i=r(96156),o=r(15903),a=r(7142),c=r(59923);const l=()=>n.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function u(t,e,r){t&&(!r&&!e.read||e.read?.reader||!1===e.read?.enabled||function(t){return"types"in t?_(t.types):g(t.type)}(t)&&(0,s.sM)("read.reader",h(t),e))}function h(t){const e=t.ndimArray??0;if(e>1)return function(t){const e=f(t),r=d.bind(null,e),n=t.ndimArray??0;return(t,e,s)=>{if(null==t)return t;t=r(t,s,n);let i=n,o=t;for(;i>0&&Array.isArray(o);)i--,o=o[0];if(void 0!==o)for(let e=0;e<i;e++)t=[t];return t}}(t);if(1===e)return p(t);if("type"in t&&y(t.type)){const e=t.type.prototype?.itemType?.Type,r=p("function"==typeof e?{type:e}:{types:e});return(e,n,s)=>{const i=r(e,n,s);return i?new t.type(i):i}}return f(t)}function f(t){return"type"in t?function(t){return t.prototype.read?(e,r,n)=>{if(null==e)return e;const s=typeof e;if("object"!==s)return void l().error(`Expected JSON value of type 'object' to deserialize type '${t.prototype.declaredClass}', but got '${s}'`);const i=new t;return i.read(e,n),i}:t.fromJSON}(t.type):function(t){let e=null;const r=t.errorContext??"type",n=t.validate;return(s,o,u)=>{if(null==s)return s;const h=typeof s;if("object"!==h)return void l().error(`Expected JSON value of type 'object' to deserialize, but got '${h}'`);e||(e=function(t){const e={};for(const r in t.typeMap){const n=t.typeMap[r],s=(0,i.tD)(n.prototype);if("function"==typeof t.key)continue;const o=s[t.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&1===o.json.type.length&&"string"==typeof o.json.type[0]){e[o.json.type[0]]=n;continue}const a=o.json?.write;if(!a?.writer){e[r]=n;continue}const c=a.target,l="string"==typeof c?c:t.key,u={};a.writer(r,u,l),u[l]&&(e[u[l]]=n)}return e}(t));const f=t.key;if("string"!=typeof f)return;const d=s[function(t,e,r){const n=Object.values(e)[0],s=(0,i.tD)(n.prototype)[t],o=(0,a.N5)(s,r),c=o?.read?.source;return c&&"string"==typeof c?c:t}(f,e,u)],p=d?e[d]:t.defaultKeyValue?t.typeMap[t.defaultKeyValue]:void 0;if(!p){const t=`Type '${d||"unknown"}' is not supported`;return u?.messages&&s&&(0,c.Yc)(u,"warning",r,t,{definition:s,context:u}),void l().error(t)}const y=new p;return y.read(s,u),n?n(y):y}}(t.types)}function d(t,e,r,n){return 0!==n&&Array.isArray(e)?e.map(e=>d(t,e,r,n-1)):t(e,void 0,r)}function p(t){const e=f(t);return(t,r,n)=>{if(null==t)return t;if(Array.isArray(t)){const r=[];for(const s of t){const t=e(s,void 0,n);void 0!==t&&r.push(t)}return r}const s=e(t,void 0,n);return void 0!==s?[s]:void 0}}function y(t){if(!(0,o.P)(t))return!1;const e=t.prototype.itemType;return!(!e||!e.Type)&&("function"==typeof e.Type?g(e.Type):_(e.Type))}function g(t){return!Array.isArray(t)&&!!t&&("object"==typeof t||"function"==typeof t)&&t.prototype&&("read"in t.prototype||"fromJSON"in t||y(t))}function _(t){for(const e in t.typeMap)if(!g(t.typeMap[e]))return!1;return!0}},15903(t,e,r){function n(t){return!!t&&t.prototype?.declaredClass&&0===t.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(e,{P:()=>n})},7142(t,e,r){function n(t,e){return o(t,"any",e?.origin)}function s(t,e){return o(t,"read",e?.origin)}function i(t,e){return o(t,"write",e?.origin)}function o(t,e,r){let n=t?.json;if(n?.origins&&r){let t;t="link-chart"===r?n.origins[r]&&("any"===e||e in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],t&&("any"===e||e in t)&&(n=t)}return n}r.d(e,{N5:()=>s,k4:()=>i,xF:()=>n})},67124(t,e,r){r.d(e,{B:()=>h,v:()=>a});var n=r(53966),s=r(93637),i=r(15903),o=r(59923);function a(t,e){if(!e.write||e.write.writer||!1===e.write.enabled&&!e.write.overridePolicy)return;const r=t?.ndimArray??0;t&&(1===r||"type"in t&&(0,i.P)(t.type))?e.write.writer=f:r>1?e.write.writer=function(t){return(e,r,n,i)=>{let o;if(null===e)o=null;else{o=d(e,i,t);let r=t,n=o;for(;r>0&&Array.isArray(n);)r--,n=n[0];if(void 0!==n)for(let t=0;t<r;t++)o=[o]}(0,s.sM)(n,o,r)}}(r):e.types?Array.isArray(e.types)?e.write.writer=function(t){return(e,r,n,s)=>e&&Array.isArray(e)?l(e.filter(e=>c(e,t,s)),r,n,s):l(e,r,n,s)}(e.types[0]):e.write.writer=function(t){return(e,r,n,s)=>e?c(e,t,s)?l(e,r,n,s):void 0:l(e,r,n,s)}(e.types):e.write.writer=l}function c(t,e,r){for(const r in e.typeMap)if(t instanceof e.typeMap[r])return!0;if(r?.messages){const s=e.errorContext??"type",i=`Values of type '${("function"!=typeof e.key?t[e.key]:t.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&t&&(0,o.Yc)(r,"error",s,i,{definition:t,context:r}),n.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function l(t,e,r,n){(0,s.sM)(r,u(t,n),e)}function u(t,e){return t&&"function"==typeof t.write?t.write({},e):t&&"function"==typeof t.toJSON?t.toJSON():"number"==typeof t?h(t):t}function h(t){return t===-1/0?-Number.MAX_VALUE:t===1/0?Number.MAX_VALUE:isNaN(t)?null:t}function f(t,e,r,n){let i;null===t?i=null:t&&"function"==typeof t.map?(i=t.map(t=>u(t,n)),"function"==typeof i.toArray&&(i=i.toArray())):i=[u(t,n)],(0,s.sM)(r,i,e)}function d(t,e,r){return 0!==r&&Array.isArray(t)?t.map(t=>d(t,e,r-1)):u(t,e)}},16649(t,e,r){r.d(e,{Jt:()=>a,RP:()=>o,t2:()=>c});var n=r(88620);function s(t,e){const r=t.endsWith("?")?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){const t=parseInt(r,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}const s=(0,n.oY)(e);return(0,n.yh)(s,r)?s.get(r):e[r]}function i(t,e,r){if(null==t)return t;const n=s(e[r],t);return!n&&r<e.length-1?void 0:r===e.length-1?n:i(n,e,r+1)}function o(t,e,r=0){return"string"!=typeof e||e.includes(".")?i(t,(0,n.AH)(e),r):s(e,t)}function a(t,e){return o(t,e)}function c(t,e){return void 0!==o(e,t)}},96156(t,e,r){r.d(e,{CX:()=>a,tD:()=>i,z4:()=>o});var n=r(4718),s=r(88620);function i(t){let e=t.constructor.__accessorMetadata__;const r=Object.prototype.hasOwnProperty.call(t.constructor,"__accessorMetadata__");if(e){if(!r){e=Object.create(e);for(const t in e)e[t]=(0,n.o8)(e[t]);Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0})}}else e={},Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0});return t.constructor.__accessorMetadata__}function o(t,e){const r=i(t);let n=r[e];return n||(n=r[e]={}),n}function a(t,e){return(0,s.h1)(t,e,l)}const c=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function l(t){return c.test(t)?"replace":"merge"}},45917(t,e,r){r.d(e,{L:()=>u,t:()=>h});var n=r(16649),s=r(88620),i=r(7142);function o(t,e,r){if(!t?.read||!1===t.read.enabled||!t.read.source)return!1;const s=t.read.source;if("string"==typeof s){if(s===e)return!0;if(s.includes(".")&&s.startsWith(e)&&(0,n.t2)(s,r))return!0}else for(const t of s){if(t===e)return!0;if(t.includes(".")&&t.startsWith(e)&&(0,n.t2)(t,r))return!0}return!1}function a(t,e,r,n,s){let a=(0,i.N5)(e[r],s);(function(t){return t&&(!t.read||!1!==t.read.enabled&&!t.read.source)})(a)&&(t[r]=!0);for(const c of Object.getOwnPropertyNames(e))a=(0,i.N5)(e[c],s),o(a,r,n)&&(t[c]=!0)}function c(t,e,r,n){const s=r.metadata,o=(0,i.xF)(s[e],n),a=o?.default;if(void 0===a)return;const c="function"==typeof a?a.call(t,e,n):a;void 0!==c&&r.set(e,c)}const l={origin:"service"};function u(t,e,r=l){if(!e||"object"!=typeof e)return;const o=(0,s.oY)(t),u=o.metadata,h={};for(const t of Object.getOwnPropertyNames(e))a(h,u,t,e,r);o.setDefaultOrigin(r.origin);for(const s of Object.getOwnPropertyNames(h)){const a=(0,i.N5)(u[s],r).read,c=a?.source;let l;l=c&&"string"==typeof c?(0,n.RP)(e,c):e[s],a?.reader&&(l=a.reader.call(t,l,e,r)),void 0!==l&&o.set(s,l)}if(!r||!r.ignoreDefaults){o.setDefaultOrigin("defaults");for(const e of Object.getOwnPropertyNames(u))h[e]||c(t,e,o,r)}o.setDefaultOrigin("user")}function h(t,e,r,n=l){const s={...n,messages:[]};r(s),s.messages?.forEach(e=>{"warning"!==e.type||t.loaded?n?.messages&&n.messages.push(e):t.loadWarnings.push(e)})}},47821(t,e,r){r.d(e,{h:()=>o});var n=r(49186),s=r(44208),i=(r(53966),r(16649));function o(t,e,r){if(t&&e)if("object"==typeof e)for(const r of Object.getOwnPropertyNames(e))o(t,r,e[r]);else{if(e.includes(".")){const n=e.split("."),s=n.splice(-1,1)[0];return void o((0,i.Jt)(t,n),s,r)}const a=t.__accessor__;null!=a&&function(t,e){if((0,s.A)("esri-unknown-property-errors")&&!function(t,e){return null!=e.metadata[t]}(t,e))throw new n.A("set:unknown-property",function(t,e){return"setting unknown property '"+t+"' on instance of "+e.host.declaredClass}(t,e))}(e,a),t[e]=r}}},62788(t,e,r){r.d(e,{F_:()=>d,Xr:()=>v,a:()=>f,fE:()=>g,gc:()=>l}),r(44208);var n=r(53966),s=r(88620),i=r(47328);const o=new(r(67867).R),a=[];let c=o;function l(t){c.onAccessed(t)}let u=!1,h=!1;function f(t,e,r){if(u)return p(t,e,r);let s;if(h){c=t,a.push(t);try{s=e.call(r)}catch(t){throw n.A.getLogger("esri.core.accessorSupport.tracking").error(t),t}finally{y()}}else{c=t,a.push(t);try{s=e.call(r)}finally{y()}}return s}function d(t,e){return f(o,t,e)}function p(t,e,r){const s=u;let i;u=!0,c=t,a.push(t);try{i=e.call(r)}catch(t){h&&n.A.getLogger("esri.core.accessorSupport.tracking").error(t)}return y(),u=s,i}function y(){const t=a.length;if(t>1){const e=a.pop();c=a[t-2],e.onTrackingEnd()}else if(1===t){const t=a.pop();c=o,t.onTrackingEnd()}else c=o}function g(t,e){if(e.flags&i.i.DepTrackingInitialized)return;e.flags|=i.i.DepTrackingInitialized;const r=h;h=!1,e.flags&i.i.AutoTracked?p(e.trackingTarget,e.metadata.get,t):v(t,e),h=r}const _=[];function v(t,e){e.flags&i.i.ExplicitlyTracking||(e.flags|=i.i.ExplicitlyTracking,p(e.trackingTarget,()=>{const r=e.metadata.dependsOn||_;for(const e of r)if("string"!=typeof e||e.includes(".")){const r=(0,s.AH)(e);for(let e=0,n=t;e<r.length&&null!=n&&"object"==typeof n;++e)n=m(n,r[e],e!==r.length-1)}else m(t,e,!1)}),e.flags&=~i.i.ExplicitlyTracking)}function m(t,e,r){const n=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(n,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const i=(0,s.oY)(t);if(i){const e=i.propertiesByName.get(n);e&&(l(e),g(t,e))}return r?t[n]:void 0}},47328(t,e,r){r.d(e,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},71429(t,e,r){r.d(e,{r:()=>s});var n=r(67867);class s extends n.R{constructor(t){super(new i(t)),this._observer&&o.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&o.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}}class i{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;const t=this._invalidCount;if(1===t)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=a}}const o=new FinalizationRegistry(t=>{t.deref()?.destroy()});function a(){}},67867(t,e,r){r.d(e,{R:()=>n});class n{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(t){null!=this._observer&&t!==this._observer&&(null==this.accessed&&(this.accessed=new Set),this.accessed.add(t))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(null==this._handles&&(this._handles=[]),this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},80559(t,e,r){r.d(e,{Df:()=>l,fm:()=>u,mJ:()=>c});var n=r(36563),s=r(62788),i=r(71429);let o=!1;const a=[];function c(t,e){let r=new i.r(function n(){if(!r||c)return;if(o)return void h(n);const i=a;r.clear(),o=!0,c=!0,a=(0,s.a)(r,t),c=!1,o=!1,e(a,i),f()}),a=null,c=!1;return c=!0,a=(0,s.a)(r,t),c=!1,(0,n.hA)(function(){r&&(r.destroy(),r=null,a=null)})}function l(t,e){let r=new i.r(function(){e(o,a)}),o=null;function a(){return r?(r.clear(),o=(0,s.a)(r,t),o):null}return a(),(0,n.hA)(function(){r&&(r.destroy(),r=null),o=null})}function u(t,e){let r=!1,a=!1;const c=!!e?.sync;let l=new i.r(()=>{r||a||(a=!0,c?u():queueMicrotask(u))});function u(){a=!1,l&&!r&&(o?h(u):(l.clear(),o=!0,r=!0,(0,s.a)(l,t),r=!1,o=!1,f()))}return r=!0,(0,s.a)(l,t),r=!1,(0,n.hA)(function(){l&&(l.destroy(),l=null)})}function h(t){a.includes(t)||a.unshift(t)}function f(){for(;a.length;)a.pop()()}},88620(t,e,r){r.d(e,{AH:()=>l,h1:()=>a,oY:()=>i,qg:()=>h,yh:()=>o});var n=r(36563),s=r(4718);function i(t){return t.__accessor__??null}function o(t,e){return null!=t?.metadata?.[e]}function a(t,e,r){return c(t,e,r?{policy:r,path:""}:null)}function c(t,e,r){return e?Object.keys(e).reduce((t,n)=>{const i=n;if("__proto__"===i)return t;let o=null,a="merge";if(r&&(o=r.path?`${r.path}.${n}`:n,a=r.policy(o)),"replace"===a)return t[i]=e[i],t;if("replace-arrays"===a&&Array.isArray(t[i]))return t[i]=e[i],t;if(void 0===t[i])return t[i]=(0,s.o8)(e[i]),t;let l=t[i],u=e[i];if(l===u)return t;if(Array.isArray(u)||Array.isArray(t))l=l?Array.isArray(l)?t[i]=l.slice():t[i]=[l]:t[i]=[],u&&(Array.isArray(u)||(u=[u]),u.forEach(t=>{l.includes(t)||l.push(t)}));else if(u&&"object"==typeof u)if(r){const e=r.path;r.path=o,t[i]=c(l,u,r),r.path=e}else t[i]=c(l,u,null);else t.hasOwnProperty(n)&&!e.hasOwnProperty(n)||(t[i]=u);return t},t||{}):t}function l(t){return Array.isArray(t)?t:t.split(".")}function u(t){return t.includes(",")?t.split(",").map(t=>t.trim()):[t.trim()]}function h(t,e,r,s){const i=function(t){if(Array.isArray(t)){const e=[];for(const r of t)e.push(...u(r));return e}return u(t)}(e);if(1!==i.length){const e=i.map(e=>s(t,e,r));return(0,n.vE)(e)}return s(t,i[0],r)}},14012(t,e,r){r.d(e,{iS:()=>w,wB:()=>N,Cn:()=>k});var n=r(98291),s=r(36563),i=r(4718),o=r(93687);class a extends o.A{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){const e=super.acquire(...t);return this._set.delete(e),e}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}var c=r(76030),l=r(24326),u=r(16649),h=r(85537),f=r(80559),d=r(88620);class p{constructor(){this.uid=(0,l.c)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static{this.pool=new a(()=>new p)}static acquireUntracked(t,e,r,n,s){return this.pool.acquire(0,t,e,r,n,s,i.aI)}static acquireTracked(t,e,r,n){return this.pool.acquire(1,t,e,r,null,null,n)}notify(t,e){0===this.type?this.callback.call(this.target,t,e,this.path,this.target):this.callback.call(null,t,e,void 0,void 0)}acquire(t,e,r,n,s,i,o){this.uid=(0,l.c)(),this.removed=!1,this.type=t,this.oldValue=e,this.callback=r,this.getValue=n,this.target=s,this.path=i,this.equals=o}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,l.c)(),this.removed=!0}}const y=new n.A,g=new Set;let _;function v(t){g.delete(t),g.add(t),_||(_=(0,c._)(b))}function m(t){if(t.removed)return;const e=t.oldValue,r=t.getValue();t.equals(e,r)||(t.oldValue=r,t.notify(r,e))}function w(t){for(const e of g.values())e.target===t&&(e.removed=!0)}function b(){let t=10;for(;_&&t--;){_=null;const t=A(),e=y.acquire();for(const r of t){const t=r.uid;m(r),t===r.uid&&r.removed&&e.push(r)}for(const t of g)t.removed&&(e.push(t),g.delete(t));for(const t of e)p.pool.release(t);y.release(e),y.release(t),O.forEach(t=>t())}}function A(){const t=y.acquire();t.length=g.size;let e=0;for(const r of g)t[e]=r,++e;return g.clear(),t}const O=new Set;function N(t,e,r,n=!1){return t.__accessor__&&t.__accessor__.lifecycle!==h.v.DESTROYED?n?function(t,e,r){const n=(0,d.qg)(t,e,r,(t,e,r)=>{let s=!1;return(0,f.mJ)(()=>(0,u.RP)(t,e),(o,a)=>{t.__accessor__.lifecycle!==h.v.DESTROYED?s||(s=!0,(0,i.aI)(a,o)||r.call(t,o,a,e,t),s=!1):n.remove()})});return n}(t,e,r):function(t,e,r){let n=(0,d.qg)(t,e,r,(t,e,r)=>{let i,o,a=(0,f.Df)(()=>(0,u.RP)(t,e),(s,a)=>{t.__accessor__?.lifecycle===h.v.DESTROYED||i&&i.uid!==o?n.remove():(i||(i=p.acquireUntracked(s,r,a,t,e),o=i.uid),v(i))});return(0,s.hA)(()=>{a.remove(),i&&(i.uid!==o||i.removed||(i.removed=!0,v(i)),i=null),n=a=null})});return n}(t,e,r):(0,s.hA)()}function k(t,e,r=!1,n=i.gh){return r?function(t,e,r){let n=!1;return(0,f.mJ)(t,(t,s)=>{n||(n=!0,r(s,t)||e(t,s),n=!1)})}(t,e,n):function(t,e,r){let n,i,o=(0,f.Df)(t,(t,s)=>{n&&n.uid!==i?o.remove():(n||(n=p.acquireTracked(t,e,s,r),i=n.uid),v(n))});return(0,s.hA)(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,v(n)),n=null),o=null})}(t,e,n)}},49422(t,e,r){r.d(e,{M:()=>d,R:()=>f});var n=r(4576),s=r(49186),i=r(53966),o=r(16649),a=r(35666),c=r(88620),l=r(7142);function u(t,e,r,n,s){const i={};return e.write?.writer?.call(t,n,i,r,s),i}function h(t,e,r,c,l,u){if(!c?.write)return!1;const h=(0,o.Jt)(t,r);if(!l&&c.write.overridePolicy){const e=c.write.overridePolicy.call(t,h,r,u??void 0);void 0!==e&&(l=e)}if(l||(l=c.write),!l||!1===l.enabled)return!1;if(l.layerContainerTypes&&u?.layerContainerType&&!l.layerContainerTypes.includes(u.layerContainerType))return!1;if((null===h&&!l.allowNull&&!l.writerEnsuresNonNull||void 0===h)&&l.isRequired){const e=new s.A("web-document-write:property-required",`Missing value for required property '${r}' on '${t.declaredClass}'`,{propertyName:r,target:t});return e&&u?.messages?u.messages.push(e):e&&!u&&i.A.getLogger("esri.core.accessorSupport.write").error(e.name,e.message),!1}return!(void 0===h||null===h&&!l.allowNull&&!l.writerEnsuresNonNull||!(l.alwaysWriteDefaults||e.store.multipleOriginsSupported&&0!==e.store.originOf(r))&&function(t,e,r,s,i){const o=s.default;if(void 0===o)return!1;if(null!=s.defaultEquals)return s.defaultEquals(i);if("function"==typeof o){if(Array.isArray(i)){const s=o.call(t,e,r??void 0);return(0,n.aI)(s,i)}return!1}return o===i}(t,r,u,c,h)||!l.ignoreOrigin&&u?.origin&&e.store.multipleOriginsSupported&&e.store.originOf(r)<(0,a.aB)(u.origin))}function f(t,e,r,n){const s=(0,c.oY)(t),i=s.metadata,o=(0,l.k4)(i[e],n);return!!o&&h(t,s,e,o,r,n)}function d(t,e,r){if(t&&"function"==typeof t.toJSON&&(!t.toJSON.isDefaultToJSON||!t.write))return(0,c.h1)(e,t.toJSON(r));const n=(0,c.oY)(t),s=n.metadata;for(const i in s){const f=(0,l.k4)(s[i],r);if(!h(t,n,i,f,void 0,r))continue;const d=(0,o.Jt)(t,i),p=u(t,f,f.write&&"string"==typeof f.write.target?f.write.target:i,d,r);Object.keys(p).length>0&&(e=(0,c.h1)(e,p),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>(0,c.h1)(e,p,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:t,propName:i,oldOrigin:(0,a.in)(n.store.originOf(i)),newOrigin:r.origin}))}return e}},5479(t,e,r){function n(t){const e=[];return function*(){yield*e;let r,n=e.length;for(;!(r=t.next()).done;)for(e.push(r.value),yield r.value;++n<e.length;)yield e[n]}}r.d(e,{I6:()=>o,N5:()=>i,PP:()=>n,xZ:()=>c,zN:()=>a});const s=Object.freeze({done:!0,value:void 0});function i(t){const e=[];let r=null,n=null,i=!1;async function o(){if(i)return s;if(null!=n)return n;n=t.next();try{const t=await n;return n=null,t.done?(i=!0,s):(e.push(t.value),t)}catch(t){throw i=!0,n=null,r=t,t}}return async function*(){yield*e;let t,n=e.length;for(;!(t=await o()).done;)for(yield t.value;++n<e.length;)yield e[n];if(null!=r)throw r}}function o(t,e){for(const r of t)if(null!=r&&e(r))return r}function a(t,e){for(const r of t)if(e(r))return!0;return!1}function c(t){return null!=t&&"function"==typeof t[Symbol.iterator]}},66552(t,e,r){r.d(e,{J:()=>s,O:()=>o});var n=r(93637);class s{constructor(t,e={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=e,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(t){const e={};for(const r in t)e[t[r]]=r;return e}(t),this.apiValues=i(this._apiToJSON),this.jsonValues=i(this._jsonToAPI),this.read=t=>this.fromJSON(t),this.write=(t,e,r)=>{const s=this.toJSON(t);void 0!==s&&(0,n.sM)(r,s,e)},this.write.isJSONMapWriter=!0}toJSON(t){if(null==t)return null;if(this._apiToJSON.hasOwnProperty(t)){const e=this._apiToJSON[t];return this._options.useNumericKeys?+e:e}return this._options.ignoreUnknown?null:t}fromJSON(t){return null!=t&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}}function i(t){const e=[];for(const r in t)e.push(r);return e.sort(),e}function o(){return function(t,e){return new s(t,{ignoreUnknown:!0,...e})}}},26390(t,e,r){r.d(e,{d:()=>s});const n=[];function s(t){n.push(t),1===n.length&&queueMicrotask(()=>{const t=n.slice();n.length=0;for(const e of t)e()})}},76030(t,e,r){r.d(e,{_:()=>g,$m:()=>O,md:()=>A});var n=r(26390);function s(t,e,r,n,s){console.timeStamp(t,e,r,s,n)}class i{constructor(t,e=30){this.name=t,this._counter=0,this._samples=new Array(e)}push(t){null!=t&&(this._samples[++this._counter%this._samples.length]=t)}set(t){null!=t&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,e)=>t-e)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,e)=>t+e,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var o=r(15142),a=r(17676),c=r(78659);class l{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}}let u=0;const h={time:(0,c.l5)(0),deltaTime:(0,c.l5)(0),elapsedFrameTime:(0,c.l5)(0),frameDuration:(0,c.l5)(0)},f=["prepare","preRender","render","postRender","update","finish"],d=[],p=new o.A,y={frameTasks:p,willDispatch:!1,clearFrameTasks:function(t=!1){p.forAll(t=>{t.removed=!0}),t&&w()},dispatch:b,executeFrameTasks:function(t){const e=(0,c.l5)(t-u);u=t;const r=1e3/60,n=Math.max(0,e-r);h.time=t,h.frameDuration=(0,c.l5)(r-n);for(let r=0;r<f.length;r++){const n=performance.now(),i=f[r];p.forAll(n=>{n.paused||n.removed||(0===r&&n.ticks++,n.phases[i]&&(h.elapsedFrameTime=(0,c.l5)(performance.now()-t),h.deltaTime=0===n.ticks?(0,c.l5)(0):e,n.phases[i]?.call(n,h)))});const o=performance.now();N[r].push(o-n),s(i,n,o,"Maps SDK","Scheduling")}w();const i=performance.now();k.push(i-t),s("Animation Frame",t,i,"Maps SDK","Scheduling")},reschedule:function(){null!=_&&(cancelAnimationFrame(_),_=requestAnimationFrame(v))}};function g(t){const e=new l(t);return d.push(e),y.willDispatch||(y.willDispatch=!0,(0,n.d)(b)),e}let _=null;function v(){const t=performance.now();_=null;const e=p.some(t=>!t.paused&&!t.removed);_=e?requestAnimationFrame(v):null,y.executeFrameTasks(t)}const m=new o.A;function w(){p.forAll(t=>{t.removed&&m.push(t)}),p.removeUnorderedMany(m.data,m.length),m.clear()}function b(){for(;d.length;){const t=d.shift();t.isActive&&t.callback()}y.willDispatch=!1}function A(t=1,e){const r=Promise.withResolvers(),s=()=>{(0,a.G4)(e)?r.reject((0,a.NK)()):0===t?r.resolve():(--t,(0,n.d)(()=>s()))};return s(),r.promise}async function O(t){await function(t){return A(1,t)}(t),await new Promise(e=>requestAnimationFrame(()=>{t?.aborted||e()}))}const N=f.map(t=>new i(t)),k=new i("total")},78659(t,e,r){function n(t){return t}function s(t){return 1e3*t}function i(t){return t}r.d(e,{Kp:()=>i,gr:()=>s,l5:()=>n})},24326(t,e,r){r.d(e,{c:()=>s});let n=0;function s(){return++n}},59923(t,e,r){r.d(e,{GL:()=>h,U4:()=>a,Yc:()=>u,bA:()=>l,qt:()=>c});var n=r(49186),s=r(67076);const i=["layer","property","renderer","symbol","symbol-layer","url","visual-variable","type","elevation-profile-line","field-configuration-field-format"].map(t=>`${t}:unsupported`),o=new Set(i);function a(t,e,r){if(!t)return;const n=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t?.messages?.push(h("layer",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' is not supported in the context of '${n}'${r?`: ${r}`:""}`,{layer:e}))}function c(t,e,r){if(!t)return;const n=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t?.messages?.push(h("property",`Property '${e}' is not supported in the context of '${n}'${r?`: ${r}`:""}`))}function l(t,e,r,n){if(!t)return;const s=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t?.messages?.push(h("symbol",`Symbol '${e.declaredClass}' is not supported in the context of '${s}'${r?`: ${r}`:""}`,n))}function u(t,e,r,i,o){t&&t?.messages?.push(f("warning"===e?s.A:n.A,r,i,o))}function h(t,e,r){return f(n.A,t,e,r)}function f(t,e,r,n){return new t(`${e}:unsupported`,r,n)}r.d(e,["MG",0,o])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4508,8846],{73354(t,n,e){e.d(n,{a:()=>f,b:()=>l,c:()=>o,d:()=>u,e:()=>g,f:()=>s,l:()=>c,n:()=>p,t:()=>i}),e(44208);var r=e(72727);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l),c=e[0],s=e[1],f=e[2],g=e[4],p=e[5],y=e[6],d=e[8],m=e[9],h=e[10],v=e[12],A=e[13],w=e[14];let M=0,x=0;for(let e=0;e<a;e++){const e=n[M],r=n[M+1],u=n[M+2];t[x]=c*e+g*r+d*u+v,t[x+1]=s*e+p*r+m*u+A,t[x+2]=f*e+y*r+h*u+w,M+=i,x+=o}return t}function u(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l),c=e[0],s=e[1],f=e[2],g=e[3],p=e[4],y=e[5],d=e[6],m=e[7],h=e[8];let v=0,A=0;for(let e=0;e<a;e++){const e=n[v],r=n[v+1],u=n[v+2];t[A]=c*e+g*r+d*u,t[A+1]=s*e+p*r+m*u,t[A+2]=f*e+y*r+h*u,v+=i,A+=o}}function a(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let u=0,l=0;for(let a=0;a<i;a++)t[l]=e*n[u],t[l+1]=e*n[u+1],t[l+2]=e*n[u+2],u+=o,l+=r;return t}function c(t,n,e,r){s(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,r,o=3,i=o){const u=Math.min(t.length/o,n.length/i);let l=0,a=0;const c=1/2.2;for(let s=0;s<u;s++)t[a]=r*(e*n[l])**c,t[a+1]=r*(e*n[l+1])**c,t[a+2]=r*(e*n[l+2])**c,l+=i,a+=o}function f(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l);let c=0,s=0;for(let r=0;r<a;r++)t[s]=n[c]+e[0],t[s+1]=n[c+1]+e[1],t[s+2]=n[c+2]+e[2],c+=i,s+=o;return t}function g(t,n){p(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function p(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,u=0;for(let l=0;l<o;l++){const o=n[i],l=n[i+1],a=n[i+2],c=o*o+l*l+a*a;if(c>0){const n=1/Math.sqrt(c);t[u]=n*o,t[u+1]=n*l,t[u+2]=n*a}i+=r,u+=e}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:s,linearToSRGBView:c,normalize:p,normalizeView:g,scale:a,scaleView:function(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,u=n.typedBuffer,l=n.typedBufferStride;let a=0,c=0;for(let t=0;t<r;t++)o[c]=u[a]>>e,o[c+1]=u[a+1]>>e,o[c+2]=u[a+2]>>e,a+=l,c+=i},transformMat3:l,transformMat3View:u,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function u(){return i(1,1)}function l(){return i(-1,-1)}function a(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>o,vt:()=>r});const s=u(),f=l(),g=a(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,UNIT_X:g,UNIT_Y:p,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,negativeOnes:l,ones:u,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,f,"Un",0,s])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function l(){return o(0,1,0,0)}function a(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const s=[0,0,0,0],f=i(),g=u(),p=l(),y=a(),d=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:d,UNIT_X:g,UNIT_Y:p,UNIT_Z:y,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitW:c,unitX:u,unitY:l,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,f,"uY",0,s])},48353(t,n,e){e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function u(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),u=Math.cos(n),l=e;return l[0]=-r,l[4]=-i*o,l[8]=u*o,l[12]=0,l[1]=o,l[5]=-i*r,l[9]=u*r,l[13]=0,l[2]=0,l[6]=u,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=e(49208),a=e(21325);function c(t,n,e,r){const i=(0,l.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,y=i.dest.spatialReferenceId;if(c===y&&!s(y)&&(0!==c||(0,a.aI)(t,r)))return(0,o.kN)(e,n),!0;if(s(y)){const t=l.w5[c][10],r=l.w5[10][y];return null!=t&&null!=r&&(t(n,0,g,0),r(g,0,p,0),u(f*g[0],f*g[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}const d=s(c);if((3===y||11===y||2===y||5===y)&&(2===c||d||3===c||5===c)){const t=l.w5[c][10],r=l.w5[10][y];return null!=t&&null!=r&&(t(n,0,g,0),r(g,0,p,0),d?function(t,n,e){u(t,n,e),(0,o.mg)(e,e)}(f*g[0],f*g[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function s(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),g=(0,i.vt)(),p=(0,i.vt)()},65806(t,n,e){e.d(n,{g:()=>u});var r=e(51850),o=e(91218),i=e(9762);function u(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e))return l[0]=t.x,l[1]=t.y,l[2]=t.z??0,(0,i.projectBuffer)(l,t.spatialReference,0,n,e,0);const u=(0,o.tryProject)(t,e,r);return!!u&&(n[0]=u.x,n[1]=u.y,n[2]=u.z??0,!0)}const l=(0,r.vt)()},1193(t,n,e){e.r(n),e.d(n,{default:()=>f});var r,o=e(5482),i=e(69540),u=e(25482),l=e(4718),a=e(53966),c=e(91429),s=e(31199);let f=r=class extends((0,i.OU)(u.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,s.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,s.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clonePositional(){const t={position:(0,l.o8)(this.position),normal:(0,l.o8)(this.normal),tangent:(0,l.o8)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"color",void 0),(0,o.Cg)([(0,c.wg)("color")],f.prototype,"castColor",null),(0,o.Cg)([(0,c.MZ)({nonNullable:!0,json:{write:s.B}})],f.prototype,"position",void 0),(0,o.Cg)([(0,c.wg)("position")],f.prototype,"castPosition",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"uv",void 0),(0,o.Cg)([(0,c.wg)("uv")],f.prototype,"castUv",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"normal",void 0),(0,o.Cg)([(0,c.wg)("normal")],f.prototype,"castNormal",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"tangent",void 0),(0,o.Cg)([(0,c.wg)("tangent")],f.prototype,"castTangent",null),f=r=(0,o.Cg)([(0,c.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(t,n,e){function r(t,n,e){if(n<=0)return 0;const r=t-e;return r<0?0:Math.floor(r/n)+1}e.d(n,{k:()=>r}),e(53966)},31199(t,n,e){function r(t,n,e,r){const{loggerTag:o,stride:i}=n;return t.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new e([])):t}function o(t,n,e,o,i){if(!t)return t;if(t instanceof n)return r(t,o,n,i);for(const u of e)if(t instanceof u)return r(new n(t),o,n,i);if(Array.isArray(t))return r(new n(t),o,n,i);{const r=e.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new n([])}}function i(t,n,e){n[e]=function(t){const n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e];return n}(t)}e.d(n,{B:()=>i,b:()=>o})},28846(t,n,e){e.d(n,{convertMeshVertexSpace:()=>c});var r=e(49186),o=e(4718),i=e(17676),u=e(1193),l=e(66895),a=e(72258);async function c(t,n,e){await Promise.resolve(),(0,i.Te)(e);const c=(0,a.UR)(t,n,{useEllipsoid:e?.useEllipsoid});if(!c)throw new r.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,l.Lz)(void 0,{vertexAttributes:new u.default({...c,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),vertexSpace:n,transform:null}))}},66895(t,n,e){e.d(n,{$N:()=>s,Lz:()=>i,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>o});const r=Symbol("meshContext");function o(t){return t&&"object"==typeof t&&r in t?t[r]:void 0}function i(t,n){const e=o(t);return{...t,[r]:{...e,...n}}}const u=Symbol("meshMaterialContext");function l(t){return t&&"object"==typeof t&&u in t?t[u]:void 0}function a(t){const n=l(t);if(n?.materialMap)return t;const e={materialMap:new Map};return{...t,[u]:e}}const c=Symbol("meshTextureContext");function s(t){return t&&"object"==typeof t&&c in t?t[c]:void 0}function f(t){const n=s(t);if(n?.textureMap)return t;const e={textureMap:new Map};return{...t,[c]:e}}},22141(t,n,e){e.d(n,{$5:()=>x,CN:()=>v,KM:()=>B,Mv:()=>T,X4:()=>A,gr:()=>M,qs:()=>b,si:()=>w,xA:()=>S});var r=e(34727),o=e(77690),i=e(29242),u=e(58083),l=e(9093),a=e(35522),c=e(51850),s=e(73941),f=e(48353),g=e(9762),p=(e(79258),e(21325)),y=e(28735),d=e(13030),m=e(73354),h=e(50867);function v(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function A(t,n,e,r,o,i){return F(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function w(t,n,e,r,o,i){return F(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function M(t,n,e,r){return(0,g.projectBuffer)(t,n,0,e,r,0)?e:null}function x(t,n,e,r){return(0,g.projectBuffer)(t,n,0,e,r,0)?e:null}function b(t,n,e){return(0,o.Ge)(R,e),(0,m.b)(n,t,R),(0,r.or)(R)&&(0,m.n)(n,n),n}function B(t,n,e){return(0,o.z0)(R,e),(0,h.t)(n,t,R),(0,r.or)(R)&&(0,m.n)(n,n,4),n}function S(t,n,e,r,o,i){if(!F(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function T(t,n,e,r,o,i){if(!F(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function C(t,n,e,r,i){switch((0,f.l)(r,e,j,r),1===t&&(0,u.B8)(j,j),n){case 0:return(0,o.Ge)(i,j);case 1:return(0,o.z0)(i,j)}}function F(t,n,e,r,o,i,u,l){if(!n)return;const c=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,s.q8)(t)||(0,s.KQ)(t)}(o))for(let r=0;r<c;r++)i.getVec(r,N),n.getVec(r,_),(0,a.ei)(_,_,C(t,e,N,u,R)),l.setVec(r,_);else for(let o=0;o<c;o++){i.getVec(o,N),n.getVec(o,_);const c=(0,y.jg)(r.get(o,1));let s=Math.cos(c);1===e!=(0===t)&&(s=1/s),C(t,e,N,u,R),0===t?(R[0]*=s,R[1]*=s,R[2]*=s,R[3]*=s,R[4]*=s,R[5]*=s):(R[0]*=s,R[3]*=s,R[6]*=s,R[1]*=s,R[4]*=s,R[7]*=s),(0,a.ei)(_,_,R),(0,a.S8)(_,_),l.setVec(o,_)}return l}const N=(0,c.vt)(),_=(0,c.vt)(),j=(0,l.vt)(),R=(0,i.vt)();e.d(n,["JP",0,"Projection may be possible after calling projection.load()."])},72258(t,n,e){e.d(n,{UR:()=>M,p5:()=>w,xK:()=>C});var r=e(53966),o=e(34727),i=e(86211),u=e(77690),l=e(29242),a=e(58083),c=e(9093),s=e(35522),f=e(51850),g=e(73941),p=e(98764),y=e(48353),d=e(65806),m=e(27615),h=e(73354),v=e(22141);const A=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function w(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,s.Re)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:u}=e,l=R;if(!(0,y.l)(r,u,l,o))return!1;const c=(0,a.B8)(R,l);return null!=c&&((0,s.Z0)(t,i,c),!0)}function M(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,l=(0,m.Hq)(r)?o:null,f=S(t.spatialReference,e,3);if((0,m.yJ)(r,n)&&(!l||(0,a.t2)(l.localMatrix,c.zK))&&T(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const u=x(n,i);if(!(0,y.l)(n,r,F,u))return(0,v.CN)(A(),n,u),null;if(e&&(0,a.lw)(F,F,e.localMatrix),!(0,y.l)(n,o,N,u))return(0,v.CN)(A(),u,n),null;(0,a.B8)(N,N);const l=(0,a.lw)(F,N,F);return B(l,n,i,3),b(t,l)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const u=x(t,i);if(!(0,y.l)(t,r,F,u))return(0,v.CN)(A(),t,u),null;e&&(0,a.lw)(F,F,e.localMatrix),B(F,t,i,1);const l=new Float64Array(n.position.length),c=function(t,n,e,r,o){(0,h.t)(r,t,n);const i=new Float64Array(t.length);return(0,v.$5)(r,o,i,e)?i:((0,v.CN)(A(),o,e),null)}(n.position,F,t,l,u);if(!c)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,v.qs)(o,u,i),(0,v.si)(u,t,n,e,r,u)?u:((0,v.CN)(A(),r,n),null)}(c,t,l,u,n.normal,F);if(n.normal&&!f)return null;const g=function(t,n,e,r,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,v.KM)(o,u,i),(0,v.Mv)(u,t,n,e,r,u)?u:((0,v.CN)(A(),r,n),null)}(c,t,l,u,n.tangent,F);if(n.tangent&&!g)return null;if(o){const t=(0,s.ze)(j,o);(0,h.a)(c,c,t)}return{position:c,normal:f,tangent:g}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=x(n,i);if(!(0,y.l)(n,o,F,l))return(0,v.CN)(A(),n,l),null;const c=1/S(n,i,2);(0,a.hs)(F,F,[c,c,c]);const s=(0,a.B8)(N,F),{position:f,normal:g,tangent:p}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,h.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=b(t,e.localMatrix);return(0,h.a)(r.position,r.position,n),r}(t,r,e),d=new Float64Array(f.length),m=function(t,n,e,r,o){const i=(0,v.gr)(t,n,r,o);if(!i)return(0,v.CN)(A(),n,o),null;const u=new Float64Array(i.length);return(0,h.t)(u,i,e),u}(f,n,s,d,l);if(!m)return null;const w=(0,u.Ge)(_,s),M=function(t,n,e,r,o,i,u){if(null==t)return null;const l=u??new Float32Array(t.length);return(0,v.X4)(t,n,e,r,o,l)?((0,h.b)(l,l,i),l):((0,v.CN)(A(),e,o),null)}(g,f,n,d,l,w,g!==t.normal?g:void 0);if(!M&&g)return null;const B=function(t,n,e,r,o,i,u){if(null==t)return null;const l=u??new Float32Array(t.length);return(0,v.xA)(t,n,e,r,o,l)?((0,h.b)(l,l,i,4),l):((0,v.CN)(A(),e,o),null)}(p,f,n,d,l,w,p!==t.tangent?p:void 0);return!B&&p?null:{position:m,normal:M,tangent:B}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const u=S(e,i,3),l=r||!T(u)?(0,a.C)(F,n?.localMatrix??c.zK):null;l&&B(l,e,i,3);const{position:f,normal:g,tangent:p}=l?b(t,l):t,y=i?.allowBufferReuse,d=y?f:new Float64Array(f.length);let m=f;if(r&&(m=(0,h.a)(d,m,r)),o){const t=(0,s.ze)(j,o);m=(0,h.a)(d,m,t)}return{position:m!==t.position||y?m:m.slice(),normal:g!==t.normal||y?g:g?.slice(),tangent:p!==t.tangent||y?p:p?.slice()}}(t,t.vertexSpace,n.origin,e)}}function x(t,n){return n?.useEllipsoid&&(0,g.B3)(t)?p.Y0:(0,p.lO)(t)}function b(t,n){const e=new Float64Array(t.position.length);(0,h.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,v.qs)(t.normal,r,n),o&&t.tangent&&(0,v.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function B(t,n,e,r){const o=S(n,e,r);T(o)||(0,a.hs)(t,t,[o,o,o])}function S(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,u=n?.targetUnit;if(!i&&!u)return 1;let l=C(i,t);r||!i||T(l)||(A().warn("source unit conversion not supported"),l=1);let a=1/C(u,t);return o||!u||T(a)||(A().warn("target unit conversion not supported"),a=1),l*a}function T(t){return(0,o.Io)(t,1)}function C(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const F=(0,c.vt)(),N=(0,c.vt)(),_=(0,l.vt)(),j=(0,f.vt)(),R=(0,c.vt)()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,8325],{80200(t,e,n){n.d(e,{d:()=>h});const s={Base64:0,Hex:1,String:2,Raw:3};function i(t,e){const n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function r(t,e,n,s,r,o){return i(function(t,e){return t<<e|t>>>32-e}(i(i(e,t),i(s,o)),r),n)}function o(t,e,n,s,i,o,c){return r(e&n|~e&s,t,e,i,o,c)}function c(t,e,n,s,i,o,c){return r(e&s|n&~s,t,e,i,o,c)}function a(t,e,n,s,i,o,c){return r(e^n^s,t,e,i,o,c)}function l(t,e,n,s,i,o,c){return r(n^(e|~s),t,e,i,o,c)}function u(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let n=1732584193,s=-271733879,r=-1732584194,u=271733878;for(let e=0;e<t.length;e+=16){const h=n,p=s,f=r,m=u;n=o(n,s,r,u,t[e],7,-680876936),u=o(u,n,s,r,t[e+1],12,-389564586),r=o(r,u,n,s,t[e+2],17,606105819),s=o(s,r,u,n,t[e+3],22,-1044525330),n=o(n,s,r,u,t[e+4],7,-176418897),u=o(u,n,s,r,t[e+5],12,1200080426),r=o(r,u,n,s,t[e+6],17,-1473231341),s=o(s,r,u,n,t[e+7],22,-45705983),n=o(n,s,r,u,t[e+8],7,1770035416),u=o(u,n,s,r,t[e+9],12,-1958414417),r=o(r,u,n,s,t[e+10],17,-42063),s=o(s,r,u,n,t[e+11],22,-1990404162),n=o(n,s,r,u,t[e+12],7,1804603682),u=o(u,n,s,r,t[e+13],12,-40341101),r=o(r,u,n,s,t[e+14],17,-1502002290),s=o(s,r,u,n,t[e+15],22,1236535329),n=c(n,s,r,u,t[e+1],5,-165796510),u=c(u,n,s,r,t[e+6],9,-1069501632),r=c(r,u,n,s,t[e+11],14,643717713),s=c(s,r,u,n,t[e],20,-373897302),n=c(n,s,r,u,t[e+5],5,-701558691),u=c(u,n,s,r,t[e+10],9,38016083),r=c(r,u,n,s,t[e+15],14,-660478335),s=c(s,r,u,n,t[e+4],20,-405537848),n=c(n,s,r,u,t[e+9],5,568446438),u=c(u,n,s,r,t[e+14],9,-1019803690),r=c(r,u,n,s,t[e+3],14,-187363961),s=c(s,r,u,n,t[e+8],20,1163531501),n=c(n,s,r,u,t[e+13],5,-1444681467),u=c(u,n,s,r,t[e+2],9,-51403784),r=c(r,u,n,s,t[e+7],14,1735328473),s=c(s,r,u,n,t[e+12],20,-1926607734),n=a(n,s,r,u,t[e+5],4,-378558),u=a(u,n,s,r,t[e+8],11,-2022574463),r=a(r,u,n,s,t[e+11],16,1839030562),s=a(s,r,u,n,t[e+14],23,-35309556),n=a(n,s,r,u,t[e+1],4,-1530992060),u=a(u,n,s,r,t[e+4],11,1272893353),r=a(r,u,n,s,t[e+7],16,-155497632),s=a(s,r,u,n,t[e+10],23,-1094730640),n=a(n,s,r,u,t[e+13],4,681279174),u=a(u,n,s,r,t[e],11,-358537222),r=a(r,u,n,s,t[e+3],16,-722521979),s=a(s,r,u,n,t[e+6],23,76029189),n=a(n,s,r,u,t[e+9],4,-640364487),u=a(u,n,s,r,t[e+12],11,-421815835),r=a(r,u,n,s,t[e+15],16,530742520),s=a(s,r,u,n,t[e+2],23,-995338651),n=l(n,s,r,u,t[e],6,-198630844),u=l(u,n,s,r,t[e+7],10,1126891415),r=l(r,u,n,s,t[e+14],15,-1416354905),s=l(s,r,u,n,t[e+5],21,-57434055),n=l(n,s,r,u,t[e+12],6,1700485571),u=l(u,n,s,r,t[e+3],10,-1894986606),r=l(r,u,n,s,t[e+10],15,-1051523),s=l(s,r,u,n,t[e+1],21,-2054922799),n=l(n,s,r,u,t[e+8],6,1873313359),u=l(u,n,s,r,t[e+15],10,-30611744),r=l(r,u,n,s,t[e+6],15,-1560198380),s=l(s,r,u,n,t[e+13],21,1309151649),n=l(n,s,r,u,t[e+4],6,-145523070),u=l(u,n,s,r,t[e+11],10,-1120210379),r=l(r,u,n,s,t[e+2],15,718787259),s=l(s,r,u,n,t[e+9],21,-343485551),n=i(n,h),s=i(s,p),r=i(r,f),u=i(u,m)}return[n,s,r,u]}function h(t,e=s.Hex){const n=e||s.Base64,i=u(function(t){const e=[];for(let n=0,s=8*t.length;n<s;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<n%32;return e}(t),8*t.length);switch(n){case s.Raw:return i;case s.Hex:return function(t){const e="0123456789abcdef",n=[];for(let s=0,i=4*t.length;s<i;s++)n.push(e.charAt(t[s>>2]>>s%4*8+4&15)+e.charAt(t[s>>2]>>s%4*8&15));return n.join("")}(i);case s.String:return function(t){const e=[];for(let n=0,s=32*t.length;n<s;n+=8)e.push(String.fromCharCode(t[n>>5]>>>n%32&255));return e.join("")}(i);case s.Base64:return function(t){const e=[];for(let n=0,s=4*t.length;n<s;n+=3){const s=(t[n>>2]>>n%4*8&255)<<16|(t[n+1>>2]>>(n+1)%4*8&255)<<8|t[n+2>>2]>>(n+2)%4*8&255;for(let i=0;i<4;i++)8*n+6*i>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(s>>6*(3-i)&63))}return e.join("")}(i)}}n.d(e,["T",0,s])},87024(t,e,n){n.d(e,{P:()=>f});var s=n(49186),i=n(80200),r=n(76553),o=n(84952),c=n(13069),a=n(96156),l=n(35666),u=n(10107),h=n(85648),p=n(97159);function f(t){const e=t?.origins??[void 0];return(n,s)=>{const i=function(t,e,n){if("resource"===t?.type)return function(t,e,n){const s=(0,a.z4)(e,n);return{type:String,read:(t,e,n)=>{const i=(0,p.r)(t,e,n);return s.type===String?i:"function"==typeof s.type?new s.type({url:i}):void 0},write:{isRequired:s.json?.write?.isRequired,writer(e,i,c,a){if(!a?.resources)return"string"==typeof e?void(i[c]=(0,p.t)(e,a)):void(i[c]=e.write({},a));const u=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),f=(0,p.t)(u,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=s.type!==String&&(!(0,r.H)(this)||a?.origin&&this.originIdOf(n)>(0,l.aB)(a.origin)),_={object:this,propertyName:n,value:e,targetUrl:f,dest:i,targetPropertyName:c,context:a,params:t};a?.portalItem&&f&&!(0,o.oP)(f)?y&&t?.contentAddressed?m(_):y?function(t){const{context:e,targetUrl:n,params:s,value:i,dest:r,targetPropertyName:c}=t;if(!e.portalItem)return;const a=e.portalItem.resourceFromPath(n),l=g(i,n,e),u=(0,h.n)(l),p=(0,o.Zo)(a.path),f=s?.compress??!1;u===p?(e.resources&&d({...t,resource:a,content:l,compress:f,updates:e.resources.toUpdate}),r[c]=n):m(t)}(_):function({context:t,targetUrl:e,dest:n,targetPropertyName:s}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),n[s]=e)}(_):a?.portalItem&&(null==f||null!=(0,p.i)(f)||(0,o.w8)(f)||y)?m(_):i[c]=f}}}}(t,e,n);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:e}=p.b;return{read:t,write:e}}}}(t,n,s);for(const t of e){const e=(0,u.rM)(n,t,s);for(const t in i)e[t]=i[t]}}}function m(t){const{targetUrl:e,params:n,value:r,context:a,dest:l,targetPropertyName:u}=t;if(!a.portalItem)return;const f=(0,p.p)(e),m=g(r,e,a);if(n?.contentAddressed&&"json"!==m.type)return void a.messages?.push(new s.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${m.type} with content addressing. Content addressing is only supported for json resources.`,{content:m}));const y=n?.contentAddressed&&"json"===m.type?(0,i.d)(m.jsonString):f?.filename??(0,c.lk)(),_=(0,o.fj)(n?.prefix??f?.prefix,y),x=`${_}.${(0,h.n)(m)}`;if(n?.contentAddressed&&a.resources&&"json"===m.type){const t=a.resources.toKeep.find(({resource:t})=>t.path===x)??a.resources.toAdd.find(({resource:t})=>t.path===x);if(t)return void(l[u]=t.resource.itemRelativeUrl)}const v=a.portalItem.resourceFromPath(x);(0,o.w8)(e)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(e).then(t=>{v.path=`${_}.${(0,h.n)({type:"blob",blob:t})}`,l[u]=v.itemRelativeUrl}).catch(()=>{}));const w=n?.compress??!1;a.resources&&d({...t,resource:v,content:m,compress:w,updates:a.resources.toAdd}),l[u]=v.itemRelativeUrl}function d({object:t,propertyName:e,updates:n,resource:s,content:i,compress:r}){n.push({resource:s,content:i,compress:r,finish:n=>{!function(t,e,n){"string"==typeof t[e]?t[e]=n.url:t[e].url=n.url}(t,e,n)}})}function g(t,e,n){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(n))}}},83027(t,e,n){const s=n(29953).ho;n.d(e,["h",0,s])},35982(t,e,n){n.d(e,{B:()=>u});var s=n(4576),i=n(71511),r=n(36563),o=n(53966),c=n(97768),a=n(17676),l=n(83027);class u{constructor(t,e,n,s,i={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,l.h)(t,{...i,schedule:s}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{i.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(const e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){const n=new h(t,e);return this._listeners.push(n),this._connectListener(n),(0,r.hA)(()=>{(0,s.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,c.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,s){if(this._thread){const i=this._transferLists[t],r=i?i(e):[];return this._thread.invoke(t,e,{transferList:r,signal:n,jobPriority:s})}return this._promise?this._promise.then(()=>((0,a.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,a.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(p):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class h{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new i.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function p(){}},65806(t,e,n){n.d(e,{g:()=>o});var s=n(51850),i=n(91218),r=n(9762);function o(t,e,n,s){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return c[0]=t.x,c[1]=t.y,c[2]=t.z??0,(0,r.projectBuffer)(c,t.spatialReference,0,e,n,0);const o=(0,i.tryProject)(t,n,s);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const c=(0,s.vt)()},27993(t,e,n){n.d(e,{F:()=>c});var s=n(91218),i=n(16930),r=n(9762),o=n(65806);function c(t,e,n,i){return!(null==e||null==i||t.length<2)&&((0,s.canProjectWithoutEngine)(e,i)?(0,r.projectBuffer)(t,e,0,n,i,0,1):(a.x=t[0],a.y=t[1],a.z=t[2],a.spatialReference=e,(0,o.g)(a,n,i)))}const a={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:i.A.WGS84,type:"point"}},80754(t,e,n){n.d(e,{kS:()=>l,kd:()=>a});var s=n(82799),i=n(16930),r=n(60408),o=n(52006);const c={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,o.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,o.n1)(t)){const[n,s,i]=t.b;n[0]+=e,s[0]+=e,i[0]+=e;continue}t[0]+=e}for(const n of function(t){return(0,r.Bi)(t)?t.rings:t.paths}(t))for(const t of n)t[0]+=e;return t}n.d(e,["j7",0,c])},89056(t,e,n){n.d(e,{b3:()=>h,jZ:()=>u});var s=n(12195),i=n(19419),r=n(537),o=n(95108),c=n(60408),a=n(80754),l=n(21325);function u(t){return p(t,!0)}function h(t){return p(t,!1)}function p(t,e){if(null==t)return null;const n=t.spatialReference,i=(0,l.Vp)(n),o=(0,s.W)(t)?t.toJSON():t;if(!i)return o;const u=(0,l.K8)(n)?102100:4326,h=a.j7[u].maxX,p=a.j7[u].minX;if((0,c.fT)(o))return m(o,h,p);if((0,c.U9)(o))return o.points=o.points.map(t=>m(t,h,p)),o;if((0,c.ZC)(o))return f(o,i);if((0,c.Bi)(o)||(0,c.Rg)(o)){const t=(0,r.Rg)(v,o),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},s=(0,a.kd)(n.xmin,p)*(2*h),i=0===s?o:(0,a.kS)(o,s);return n.xmin+=s,n.xmax+=s,n.xmax>h?_(i,h,e):n.xmin<p?_(i,p,e):i}return o}function f(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:s,ymax:i,xmin:r,xmax:o}=t,c=t.xmax-t.xmin,[a,l]=e.valid,{x:u,frameId:h}=d(t.xmin,e),{x:p,frameId:f}=d(t.xmax,e),m=u===p&&c>0;if(c>2*l){const t={xmin:r<o?u:p,ymin:s,xmax:l,ymax:i},e={xmin:a,ymin:s,xmax:r<o?p:u,ymax:i},c={xmin:0,ymin:s,xmax:l,ymax:i},m={xmin:a,ymin:s,xmax:0,ymax:i},d=[],y=[];g(t,c)&&d.push(h),g(t,m)&&y.push(h),g(e,c)&&d.push(f),g(e,m)&&y.push(f);for(let t=h+1;t<f;t++)d.push(t),y.push(t);n.push(new x(t,[h]),new x(e,[f]),new x(c,d),new x(m,y))}else u>p||m?n.push(new x({xmin:u,ymin:s,xmax:l,ymax:i},[h]),new x({xmin:a,ymin:s,xmax:p,ymax:i},[f])):n.push(new x({xmin:u,ymin:s,xmax:p,ymax:i},[h]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function m(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,a.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,a.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,a.kd)(s,e);t.x+=n*(-2*e)}else if(s<n){const e=(0,a.kd)(s,n);t.x+=e*(-2*n)}}return t}function d(t,e){const[n,s]=e.valid,i=2*s;let r,o=0;return t>s?(r=Math.ceil(Math.abs(t-s)/i),t-=r*i,o=r):t<n&&(r=Math.ceil(Math.abs(t-n)/i),t+=r*i,o=-r),{x:t,frameId:o}}function g(t,e){const{xmin:n,ymin:s,xmax:i,ymax:r}=e;return y(t,n,s)&&y(t,n,r)&&y(t,i,r)&&y(t,i,s)}function y(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function _(t,e,n=!0){const s=!(0,c.Rg)(t);if(s&&(0,o.m3)(t),n)return(new w).cut(t,e);const i=s?t.rings:t.paths,r=s?4:2,a=i.length,l=-2*e;for(let t=0;t<a;t++){const e=i[t];if(e&&e.length>=r){const t=[];for(const[n,...s]of e)t.push([n+l,...s]);i.push(t)}}return s?t.rings=i:t.paths=i,t}class x{constructor(t,e){this.extent=t,this.frameIds=e}}const v=(0,i.vt)();class w{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const s=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=s;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide===-1){const n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(C(t,e<=0?t[0]:this._xCut)),this._lineOut.push(C(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]),s=[this._xCut,t[1]+n*(e[1]-t[1])],i=Math.min(t.length,e.length);for(let r=2;r<i;r++)s.push(t[r]+n*(e[r]-t[r]));return s}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function C(t,e){const n=t.slice();return n[0]=e,n}function S(t,e,n){const s=t.length;s>1&&t[s-1][0]===n&&t[s-2][0]===n?t[s-1]=C(e,n):t.push(C(e,n))}},58325(t,e,n){n.d(e,{A:()=>S});var s,i=n(5482),r=n(11254),o=n(7762),c=n(25482),a=n(84952),l=n(91429),u=n(4718),h=n(67076),p=n(87024),f=n(39829),m=n(91218),d=n(16930),g=n(21325),y=n(88546),_=n(72772),x=n(98697),v=n(43937);let w=s=class extends c.o{constructor(t){super(t),this.geometry=null,this.type="clip"}writeGeometry(t,e,n,s){if(this._needWGS84Conversion(s))this._doWGS84Conversion(e,n,s);else if(s.layer?.spatialReference&&!s.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,m.canProjectWithoutEngine)(t.spatialReference,s.layer.spatialReference))return void(s?.messages&&s.messages.push(new h.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:s.layer.spatialReference,context:s})));const i=new f.A;(0,m.projectPolygon)(t,i,s.layer.spatialReference),e[n]=i.toJSON(s)}else e[n]=t.toJSON(s)}_needWGS84Conversion(t){if("integrated-mesh-3dtiles"===t.layer?.type){const e=t.layer;return!e.esriCrsSpatialReference||!(0,g.aI)(e.esriCrsSpatialReference,this.geometry.spatialReference)}return!1}_doWGS84Conversion(t,e,n){let s=!0;if((0,_.isInitialized)()){const i=(0,x.Ir)(null,[this],d.A.WGS84);if(i.length>1){const r=(0,_.switchMeshModificationPolygonVCSSync)({modifications:i,inVCS:5773});if(r.success&&r.modifications){const i=[this.clone()];(0,x.H1)(r.modifications,i),1===i.length&&i[0].geometry&&(i[0].geometry.spatialReference=y.Zx,t[e]=i[0].geometry.toJSON(n),s=!1)}}}s&&n?.messages&&n.messages.push(new h.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:this.geometry.spatialReference,context:n}))}clone(){return new s({geometry:(0,u.o8)(this.geometry),type:this.type})}};var C;(0,i.Cg)([(0,l.MZ)({type:f.A}),(0,p.P)()],w.prototype,"geometry",void 0),(0,i.Cg)([(0,v.K)(["web-scene","portal-item"],"geometry")],w.prototype,"writeGeometry",null),(0,i.Cg)([(0,l.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,p.P)()],w.prototype,"type",void 0),w=s=(0,i.Cg)([(0,l.$K)("esri.layers.support.SceneModification")],w);let S=C=class extends((0,c.T)(o.A.ofType(w))){constructor(t){super(t),this.url=null}clone(){return new C({url:this.url,items:this.items.map(t=>t.clone())})}toJSON(t){return this.toArray().map(e=>e.toJSON(t)).filter(t=>!!t.geometry)}static fromJSON(t,e){const n=new C;for(const s of t)n.add(w.fromJSON(s,e));return n}static async fromUrl(t,e,n,s=!1){const i={url:(0,a.An)(t),origin:"service"},o=await(0,r.A)(t,{responseType:"json",signal:n?.signal}),c=e.toJSON(),l=[];for(const t of o.data){let e=c;s&&t.geometry.spatialReference&&(e=t.geometry.spatialReference),l.push(w.fromJSON({...t,geometry:{spatialReference:e,...t.geometry}},i))}return new C({url:t,items:l})}};(0,i.Cg)([(0,l.MZ)({type:String})],S.prototype,"url",void 0),S=C=(0,i.Cg)([(0,l.$K)("esri.layers.support.SceneModifications")],S)},85648(t,e,n){n.d(e,{n:()=>i});var s=n(84952);function i(t){return r[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,s.Zo)(t);return a[e]||o}(t.url)}(t)]||c}const r={},o="text/plain",c=r[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in a)r[a[t]]=t},72772(t,e,n){n.r(e),n.d(e,{addSpatialReferenceInfo:()=>a,destroyWasm:()=>u,initialize:()=>h,isInitialized:()=>p,process:()=>c,switchMeshModificationPolygonVCSSync:()=>l});var s=n(2741);function i(t){return(0,s.s)(`esri/libs/lyr3d/${t}`)}let r,o=null;async function c(t){await h();const e={status:1,error:"",jobDescJson:"",data:new Uint8Array(0),missingInputUrls:[]};if(t.inputs.length<1)return{result:e,transferList:[]};const n={ptrs:[],sizes:[]};for(const e of t.inputs){const t=o._malloc(e.byteLength);new Uint8Array(o.HEAPU8.buffer,t,e.byteLength).set(new Uint8Array(e)),n.ptrs.push(t),n.sizes.push(e.byteLength)}const s=o.process(t.jobDescJson,t.id,n,t.isMissingResourceCase);e.status=s.status,e.missingInputUrls=s.missingInputUrls.slice();const i=0===s.status&&s.data,r=2===e.status&&e.missingInputUrls.length>0;e.jobDescJson=s.jobDescJson.slice(),e.error=s.error.slice(),i?e.data=s.data.slice():r&&(e.originalInputs=t.inputs.slice());for(let t=0;t<n.ptrs.length;++t)o._free(n.ptrs[t]);const c=[];if(i)c.push(e.data.buffer);else if(r)for(const e of t.inputs)c.push(e);return{result:e,transferList:c}}async function a(t){await h(),o.add_spatial_reference_info(t.sr,t.isGCS,t.toMetersXY,t.toMetersZ)}function l(t){if(!o)return{success:!1,modifications:null};const e=o._malloc(8*t.modifications.length),n=new Float64Array(o.HEAPF64.buffer,e,t.modifications.length);n.set(t.modifications);const s=o.switch_mesh_modification_polygon_vcs(e,t.modifications.length,t.inVCS);let i=null;return s&&(i=n.slice()),o._free(e),{success:s,modifications:i}}function u(){o&&(o.uninitialize_lyr3d_worker_wasm(),o=null)}function h(){return p()?Promise.resolve():(r||(r=new Promise(t=>n.e(2343).then(n.bind(n,2343)).then(({default:e})=>{const n=e({locateFile:i,onRuntimeInitialized:()=>t(n)})})).catch(t=>{throw t}).then(t=>{o=t,o.initialize_lyr3d_worker_wasm(),r=null})),r)}function p(){return null!==o}},98697(t,e,n){n.d(e,{H1:()=>_,Ir:()=>d,_b:()=>h,sQ:()=>p});var s=n(53966),i=n(15142),r=n(51850),o=n(35982),c=n(39829),a=n(91218),l=n(27993),u=n(89056);class h{constructor(t,e,n,s,i,r){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=s,this.hasModifications=i,this.positionData=r}}class p{constructor(t,e,n,s,i,r,o,c,a){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=s,this.transformedGeometry=i,this.globalTrafo=r,this.obb=o,this.geometryMinElevation=c,this.geometryMaxElevation=a}}o.B;const f=new i.A({deallocator:null}),m=(0,r.vt)();function d(t,e,n,i=!1){f.clear();let r=1/0,o=1/0,l=-1/0,h=-1/0,p=!1;for(const t of e){const e="clip"===t.type?2:"mask"===t.type?1:0,m=t.geometry,d=m.spatialReference??n;if(d!==n&&!(0,a.canProjectWithoutEngine)(d,n)){s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}let _=m.rings;if(d!==n){const t=g(m.rings,d,n);if(null==t){s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}_=t}const x=_;if(i){const t=(0,u.jZ)(new c.A({rings:_,spatialReference:n}));null!=t&&(_=t.rings)}const v=1===x.length&&_.length>1?[..._.map(t=>[t]),x]:[_];if(v.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!y(t)))))s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:m});else{p||=1===e;for(const t of v){f.push(e),f.push(t.length);for(const e of t){f.push(e.length);for(const t of e){const e=t[2]??0;f.push(t[0]),f.push(t[1]),f.push(e),r=Math.min(r,t[0]),o=Math.min(o,t[1]),l=Math.max(l,t[0]),h=Math.max(h,t[1])}}}}}if(null!=t)if(p){const e=1e-4;f.push(2),f.push(2),f.push(4),f.push(r-e),f.push(o-e),f.push(0),f.push(l+e),f.push(o-e),f.push(0),f.push(l+e),f.push(h+e),f.push(0),f.push(r-e),f.push(h+e),f.push(0),f.push(4),f.push(t[0]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[3]),f.push(0),f.push(t[0]),f.push(t[3]),f.push(0)}else f.push(1),f.push(1),f.push(4),f.push(t[0]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[3]),f.push(0),f.push(t[0]),f.push(t[3]),f.push(0);f.push(3);const m=new Float64Array(f.length);for(let t=0;t<f.length;++t)m[t]=f.at(t);return m}function g(t,e,n){const s=[];for(const i of t){const t=[];for(const s of i){if(!(0,l.F)(s,e,m,n)||!y(m))return null;t.push([m[0],m[1],m[2]])}s.push(t)}return s}function y(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function _(t,e){let n=0;for(const s of e){const e=s.geometry,i=e.rings.length,r=e.rings.some(t=>t.length<3);if(0!==i&&!r){n+=1,n+=1;for(let s=0;s<e.rings.length;++s){const i=e.rings[s];n+=1;for(let r=0;r<i.length;++r){const i=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(s,r,i)}}}}}}}]);
|