@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([[6247],{69052(t,e,a){a.d(e,{hr:()=>r});var n=a(34727);class r{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,a=!1){return s(this.range,this.min,this.max,t,e,a)}clamp(t,e=0){return(0,n.qE)(t-e,this.min,this.max)+e}monotonic(t,e,a){return t<e?e:e+i(this.range,t-e,a)}minimalMonotonic(t,e,a){return s(this.range,t,t+this.range,e,a)}center(t,e,a){return e=this.monotonic(t,e,a),this.normalize((t+e)/2,a)}diff(t,e,a){return this.monotonic(t,e,a)-t}shortestSignedDiff(t,e){t=this.normalize(t);const a=(e=this.normalize(e))-t,n=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(a)<Math.abs(n)?a:n}contains(t,e,a){return e=this.minimalMonotonic(t,e),(a=this.minimalMonotonic(t,a))>t&&a<e}}function s(t,e,a,n,r=0,s=!1){return(n-=r)<e?n+=i(t,e-n):n>a&&(n-=i(t,n-a)),s&&n===a&&(n=e),n+r}function i(t,e,a=0){return Math.ceil((e-a)/t)*t+a}const o=new r(0,2*Math.PI),l=(new r(-Math.PI,Math.PI),new r(0,360));a.d(e,["ie",0,l,"uC",0,o])},93146(t,e,a){a.d(e,{z:()=>r});class n{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 r(t){return new n(async()=>{const e=await t();return!1===e.isLoaded?.()&&await e.load(),e})}},31411(t,e,a){a.d(e,{GS:()=>F,gh:()=>k});var n=a(49186),r=a(56512),s=a(65864),i=a(4305),o=a(50954),l=a(52006),u=a(49663),d=a(46068),c=a(15507);const h=1e-6,p=[0,0];function f(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:a,maxSegmentsPerCurve:n,minSegmentsPerCurve:r}){const s=a*a,i=e*e,o=1/n,l=this.interpolate(0),u=this.interpolate(1);(0,c.kb)(this.curveStart,l)>h&&t.push(l),this.initialize(l,u);const d=1/r;for(let t=r-1;t>0;t--){const e=t*d;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<o||(0===s||!isFinite(s)||(0,c.kb)(this.arcStart,this.arcEnd)<s)&&(0===i||!isFinite(i)||this.getDeviation2()<i)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,c.kb)(this.curveEnd,u)>h&&t.push([...this.curveEnd]),t}}class y extends m{constructor(t,e){const[a,n,r]=e.b;super(t,a),this._controlPointsStack=[],this._curveControlPoints=[n,r],this._arcControlPoints=[n,r],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:a,tStart:n,tEnd:r}=this,[s,i]=this._arcControlPoints,o=(t-n)/(r-n),l=(0,c.RS)([],e,s,o),u=(0,c.RS)(p,s,i,o),d=(0,c.RS)([],i,a,o),h=(0,c.RS)([],l,u,o),f=(0,c.RS)([],u,d,o),m=(0,c.RS)([],h,f,o);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([f,d]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=l,this._arcControlPoints[1]=h,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:a}=this,[n,r]=this._curveControlPoints;return(0,i.B4)(e,n,r,a,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[a,n]=this._arcControlPoints;return Math.max((0,c.yE)(a,t,e),(0,c.yE)(n,t,e))}}class g extends m{constructor(t,e){const[a]=e.a;super(t,a),this._derivedEllipse=(0,d.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,d.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,c.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function b(t,e,a,{cx:n,cy:r,radius:s,thetaStart:i,thetaEnd:o,isInvalid:l},{maxDeviation:u,maxSegmentLength:d,maxSegmentsPerCurve:p,minSegmentsPerCurve:f}){if(l)return t.push([...a]),t;const m=2*s,y=[n+s*Math.cos(i),r+s*Math.sin(i)],g=[n+s*Math.cos(o),r+s*Math.sin(o)];(0,c.kb)(e,y)>h&&t.push(y);const b=Math.abs(o-i),w=d>0&&d<m?2*Math.asin(d/m):b,S=u>0&&u<=s?2*Math.acos(1-u/s):b,A=Math.min(w,S),v=Math.min(p,Math.max(f,Math.ceil(Math.abs(b/A)))),E=1/v;for(let e=1;e<v;e++){const a=e*E,l=i*(1-a)+o*a;t.push([n+s*Math.cos(l),r+s*Math.sin(l)])}return t.push(g),(0,c.kb)(a,g)>h&&t.push([...a]),t}function w(t,e,a,n){return new y(e,a).densify(t,n)}function S(t,e,a,n){const r=(0,o.pM)(e,a),[s]=a.c;return b(t,e,s,r,n)}function A(t,e,a,n){const r=(0,u.io)(e,a),[s]=a.a;return b(t,e,s,r,n)}function v(t,e,a,n){const[r,s,i,o,l,u,d]=a.a;return 0===u||0===d?(t.push([...r]),t):new g(e,a).densify(t,n)}function E(t,e,a,n){return(0,l.Xq)(a)?(t.push([...a]),t):(0,l.n1)(a)?w(t,e,a,n):(0,l.aO)(a)?S(t,e,a,n):(0,l.DA)(a)?A(t,e,a,n):v(t,e,a,n)}function F(t,e={}){if(!(0,l.Ed)(t))return t;const a=f(e),n=(0,l.FD)(t),r=[];for(const t of n){const e=[];for(let n=0;n<t.length-1;n++){const r=n+1,s=[...(0,l.yP)(t[n])];0===n&&e.push(s),E(e,s,t[r],a)}r.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:r,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:r,spatialReference:t.spatialReference}}const M=(0,r.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function k(t,e,r){const i=new Set(e);return await async function(t,e,r){let s=null;for(const i of t)if(i&&(0,l.Ed)(i)&&null==i.spatialReference.xyTolerance&&(0,l.V8)(i,e)){const t=i.spatialReference;if(!t)throw new n.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=R(t);if(r.has(e))i.spatialReference=r.get(e);else{s||(s=await Promise.all([a.e(9187),a.e(8885),a.e(5756),a.e(3299),a.e(1550)]).then(a.bind(a,78125)));const o=s.fromSpatialReference(t),l=o?.getTolerance();if(null==l)throw new n.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const u=i.spatialReference.clone();u.read({xyTolerance:l}),i.spatialReference=u,r.set(e,u)}}}(t,i,r),t.map(t=>{if(!t||!(0,l.Ed)(t))return t;const a=t.spatialReference.xyTolerance;if(null==a)return t;const n=M(a);return(0,s.rS)(function(t,e,a){if(!(0,l.Ed)(t))return t;const n=new Set(e),r=f(a),s=(0,l.FD)(t),i=[];let o=!1;for(const t of s){const e=[];for(let a=0;a<t.length-1;a++){const s=a+1,i=[...(0,l.yP)(t[a])];0===a&&e.push(i);const u=t[s];(0,l.Xq)(u)?e.push([...u]):(0,l.n1)(u)&&!n.has("cubic-bezier")?w(e,i,u,r):(0,l.aO)(u)&&!n.has("circular-arc")?S(e,i,u,r):(0,l.DA)(u)&&!n.has("elliptic-arc")?A(e,i,u,r):(0,l.wY)(u)&&!n.has("elliptic-arc")?v(e,i,u,r):(e.push((0,l.tk)(u)),o=!0)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...o?{curvePaths:i}:{paths:i}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...o?{curveRings:i}:{rings:i}}}(t,e,n))})}function R(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},52039(t,e,a){a.d(e,{O7:()=>c,el:()=>l});var n=a(69052),r=(a(49186),a(17676)),s=(a(5443),a(39829),a(82799),a(16930)),i=a(93146),o=(a(80754),a(21325));async function l(t,e,a){Array.isArray(t)||(t=[t]),null!=e&&"object"==typeof e&&"authMode"in e&&(a=e);let n=null;for(const e of t)n??=e?.spatialReference;if(!n)return t;const s=(0,o.Vp)(n);if(!s)return t;const[i,l]=s.valid;let c=!1;for(const e of t){if(!e)continue;if("point"===e.type){c||=e.x>=l,c||=e.x<=i;continue}const{extent:t}=e;if(null==t){c=!0;break}c||=t.xmin>=l,c||=t.xmin<=i,c||=t.xmax>=l,c||=t.xmax<=i}if(!c)return t;const[{foldInto360Range:h},p]=await(0,r.qr)(Promise.all([u.getImportPromise(),d.getImportPromise()]),a),f=p.fromSpatialReference(n);return t.map(t=>{if(null==t||"mesh"===t.type)return t;const e=p.fromGeometry(t),a=p.toGeometry(h(e,f),n);return"extent"===t.type&&1===a?.rings.length?a.extent:a})}const u=(0,i.z)(()=>a.e(4144).then(a.bind(a,4144))),d=(0,i.z)(()=>Promise.all([a.e(9187),a.e(8885),a.e(5756),a.e(3299),a.e(1550)]).then(a.bind(a,78125)));function c(t,e,a){const n=(0,o.Vp)(a);if(null==n)return t;const[r,s]=n.valid,i=2*s;let l=0,u=0;e>s?l=Math.ceil(Math.abs(e-s)/i):e<r&&(l=-Math.ceil(Math.abs(e-r)/i)),t>s?u=Math.ceil(Math.abs(t-s)/i):t<r&&(u=-Math.ceil(Math.abs(t-r)/i));let d=t+(l-u)*i;const c=d-e;return c>s?d-=i:c<r&&(d+=i),d}function h(t){const e=(0,o.Vp)(t);if(null==e)return null;const[a,r]=e.valid;return new n.hr(a,r)}const p=h(s.A.WGS84);h(s.A.WebMercator),a.d(e,["Y_",0,p])},80754(t,e,a){a.d(e,{kS:()=>u,kd:()=>l});var n=a(82799),r=a(16930),s=a(60408),i=a(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function u(t,e){if((0,i.Ed)(t))for(const a of function(t){return(0,s.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of a){if((0,i.aO)(t)){const[a,n]=t.c;a[0]+=e,n[0]+=e;continue}if((0,i.FG)(t)){const[a,n]=t.a;a[0]+=e,n[0]+=e;continue}if((0,i.n1)(t)){const[a,n,r]=t.b;a[0]+=e,n[0]+=e,r[0]+=e;continue}t[0]+=e}for(const a of function(t){return(0,s.Bi)(t)?t.rings:t.paths}(t))for(const t of a)t[0]+=e;return t}a.d(e,["j7",0,o])},78628(t,e,a){a.d(e,{applyEdits:()=>S,uploadAssets:()=>R});var n=a(52106),r=a(7762),s=a(49186),i=a(4718),o=a(53966),l=a(91869),u=a(84952),d=a(13069),c=a(52039),h=a(21325),p=a(31411),f=a(47685),m=a(30524),y=a(20557),g=a(77548);function b(t){return null!=t?.applyEdits}const w=new WeakMap;async function S(t,e,a,n={}){let u;const c="gdbVersion"in t?t.gdbVersion:null,h=n.gdbVersion??c;if((0,f.Mk)(t)&&t.url)u=(0,f.Zk)(t.url,t.layerId,h,"original-and-current-features"===n.returnServiceEditsOption);else{u=Promise.withResolvers(),u.promise.then(e=>{(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length)&&t.emit("edits",e)},()=>{});const e={result:u.promise};t.emit("apply-edits",e)}try{const{results:c,edits:h}=await async function(t,e,a,n){if(await t.load(),!b(e))throw new s.A(`${t.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:t});if(!(0,g.tk)(t))throw new s.A(`${t.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:t});const{edits:i,options:u}=await async function(t,e,a){const n=(0,g.BR)(t),i=e&&(e.addFeatures||e.updateFeatures||e.deleteFeatures),u=e&&(e.addAttachments||e.updateAttachments||e.deleteAttachments),c=null!=t.infoFor3D;if(function(t,e,a,n,r,i){if(!(t&&(n||r)||a?.usingTelecomOperations))throw new s.A(`${i}:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");const o=e.editing.supportsGlobalId||a?.usingFeatureServiceEndpoint;if(!o&&a?.globalIdUsed)throw new s.A(`${i}:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!o&&r)throw new s.A(`${i}:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!a?.globalIdUsed&&r)throw new s.A(`${i}:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true")}(e,n,a,!!i,!!u,`${t.type}-layer`),!n.data.isVersioned&&a?.gdbVersion)throw new s.A(`${t.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!n.editing.supportsRollbackOnFailure&&a?.rollbackOnFailureEnabled)throw new s.A(`${t.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");const h={...a};if(null!=h.rollbackOnFailureEnabled||n.editing.supportsRollbackOnFailure||(h.rollbackOnFailureEnabled=!0),h.rollbackOnFailureEnabled||"original-and-current-features"!==h.returnServiceEditsOption||(!1===h.rollbackOnFailureEnabled&&o.A.getLogger("esri.layers.graphics.editingSupport").warn(`${t.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwritten and set to true."),h.rollbackOnFailureEnabled=!0),!n.editing.supportsReturnServiceEditsInSourceSpatialReference&&h.returnServiceEditsInSourceSR)throw new s.A(`${t.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(h.returnServiceEditsInSourceSR&&"original-and-current-features"!==h.returnServiceEditsOption)throw new s.A(`${t.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const p=function(t,e,a){const n=function(t){return{addFeatures:Array.from(t?.addFeatures??[]),updateFeatures:Array.from(t?.updateFeatures??[]),deleteFeatures:t&&r.A.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():t.deleteFeatures||[],addAttachments:t.addAttachments||[],updateAttachments:t.updateAttachments||[],deleteAttachments:t.deleteAttachments||[]}}(t);if(n.addFeatures?.length&&!e.operations.supportsAdd)throw new s.A(`${a}:unsupported-operation`,"Layer does not support adding features.");if(n.updateFeatures?.length&&!e.operations.supportsUpdate)throw new s.A(`${a}:unsupported-operation`,"Layer does not support updating features.");if(n.deleteFeatures?.length&&!e.operations.supportsDelete)throw new s.A(`${a}:unsupported-operation`,"Layer does not support deleting features.");return n.addFeatures=n.addFeatures.map(M),n.updateFeatures=n.updateFeatures.map(M),n.addAssetFeatures=[],n}(e,n,`${t.type}-layer`),f=a?.globalIdUsed||c,m=t.fields.filter(t=>"big-integer"===t.type||"oid"===t.type&&(t.length||0)>=8);if(f){const{globalIdField:e}=t;if(null==e)throw new s.A(`${t.type}-layer:invalid-parameter`,"Layer does not specify a global id field.");p.addFeatures.forEach(t=>function(t,e){const{attributes:a}=t;null==a[e]&&(a[e]=(0,d.yS)())}(t,e))}p.addFeatures.forEach(e=>function(t,e,a,n){A(t,e,a,n),v(t,e)}(e,t,f,m)),p.updateFeatures.forEach(e=>function(t,e,a,n){A(t,e,a,n),v(t,e);const r=(0,g.BR)(e);if("geometry"in t&&null!=t.geometry&&!r?.editing.supportsGeometryUpdate)throw new s.A(`${e.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(e,t,f,m)),p.deleteFeatures.forEach(e=>function(t,e,a,n){A(t,e,a,n)}(e,t,f,m)),p.addAttachments.forEach(e=>E(e,t)),p.updateAttachments.forEach(e=>E(e,t)),c&&await async function(t,e){const{infoFor3D:a}=e;if(null==a)return;if(!(0,y.JQ)(a))throw new s.A(`${e.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");t.addAssetFeatures??=[];const{addAssetFeatures:n}=t;for(const e of t.addFeatures??[])k(e)&&n.push(e);for(const e of t.updateFeatures??[])k(e)&&n.push(e)}(p,t);const b=(0,l.tE)(w,t,()=>new Map);return{edits:await F(p,n.data.supportedCurveTypes??[],b),options:h}}(t,a,n);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await e.applyEdits(i,u)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(t,e,a,n),p=t=>t.filter(t=>!t.error).map(i.o8),f={edits:h,addedFeatures:p(c.addFeatureResults),updatedFeatures:p(c.updateFeatureResults),deletedFeatures:p(c.deleteFeatureResults),addedAttachments:p(c.addAttachmentResults),updatedAttachments:p(c.updateAttachmentResults),deletedAttachments:p(c.deleteAttachmentResults),exceededTransferLimit:!1,historicMoment:c.editMoment?new Date(c.editMoment):null,globalIdToObjectId:n.globalIdToObjectId};return c.editedFeatureResults?.length&&(f.editedFeatures=c.editedFeatureResults),u.resolve(f),c}catch(t){throw u.reject(t),t}}function A(t,e,a,n){if(a){if("attributes"in t&&!t.attributes[e.globalIdField])throw new s.A(`${e.type}-layer:invalid-parameter`,`Feature should have '${e.globalIdField}' when 'globalIdUsed' is true`);if(!("attributes"in t)&&!t.globalId)throw new s.A(`${e.type}-layer:invalid-parameter`,"`'globalId' of the feature should be passed when 'globalIdUsed' is true")}if(n.length&&"attributes"in t)for(const a of n){const n=t.attributes[a.name];if(void 0!==n&&!(0,m.OG)(a,n))throw new s.A(`${e.type}-layer:invalid-parameter`,`Big-integer field '${a.name}' of the feature must be less than ${Number.MAX_SAFE_INTEGER}`,{feature:t})}if("geometry"in t&&null!=t.geometry){if(t.geometry.hasZ&&!1===e.capabilities?.data.supportsZ)throw new s.A(`${e.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(t.geometry.hasM&&!1===e.capabilities?.data.supportsM)throw new s.A(`${e.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function v(t,e){if("geometry"in t&&"mesh"===t.geometry?.type&&null!=e.infoFor3D&&null!=e.spatialReference){const{geometry:a}=t,{spatialReference:n,vertexSpace:r}=a,i=e.spatialReference,o="local"===r.type,l=(0,h.EA)(i),u=(0,h.aI)(i,n),d=u||(0,h.oT)(i)&&((0,h.oT)(n)||(0,h.K8)(n));if(!(o&&l&&d||!o&&!l&&u))throw new s.A(`${e.type}-layer:mesh-unsupported`,`Uploading a mesh with a ${r.type} vertex space and a spatial reference wkid:${n.wkid} to a layer with a spatial reference wkid:${i.wkid} is not supported.`)}}function E(t,e){const{feature:a,attachment:n}=t;if(!a||"attributes"in a&&!a.attributes[e.globalIdField])throw new s.A(`${e.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in a)&&!a.globalId)throw new s.A(`${e.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!n.globalId)throw new s.A(`${e.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!n.data&&!n.uploadId)throw new s.A(`${e.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(n.data instanceof File&&n.data.name||n.name))throw new s.A(`${e.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!e.capabilities?.editing.supportsUploadWithItemId&&n.uploadId)throw new s.A(`${e.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof n.data){const t=(0,u.r$)(n.data);if(t&&!t.isBase64)throw new s.A(`${e.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function F(t,e,a){const n=t.addFeatures??[],r=t.updateFeatures??[],s=n.concat(r).map(t=>t.geometry),i=await(0,p.gh)(s,e,a),o=await(0,c.el)(i),l=n.length,u=r.length;return o.slice(0,l).forEach((t,e)=>n[e].geometry=t),o.slice(l,l+u).forEach((t,e)=>r[e].geometry=t),t}function M(t){const e=new n.A;return t.attributes||(t.attributes={}),e.geometry=t.geometry,e.attributes=t.attributes,e}function k(t){return"mesh"===t?.geometry?.type}function R(t,e,a,n){if(!b(e))throw new s.A(`${t.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:t});if(!e.uploadAssets)throw new s.A(`${t.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:t});return e.uploadAssets(a,n)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1670],{60999(t,e,n){n.d(e,{DZ:()=>d,Ke:()=>h,Tj:()=>c,UT:()=>m,aD:()=>y,jJ:()=>s});var r=n(5482),o=n(69622),a=n(97768),u=n(17676),i=n(10107),l=n(64108);function s(t,e,n){return(0,u.Lx)(t.map((t,r)=>e.apply(n,[t,r])))}async function c(t,e,n){return(await(0,u.Lx)(t.map((t,r)=>e.apply(n,[t,r])))).map(t=>t.value)}function f(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function h(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return f(await t)}catch(t){return p(t)}}async function d(t){try{return f(await t)}catch(t){return(0,u.QP)(t),p(t)}}function m(t,e){return new g(t,e)}let g=class extends o.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,a.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=t(n),this.promise.then(t=>{this._result=f(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,u.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,a.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,i.MZ)()],g.prototype,"value",null),(0,r.Cg)([(0,i.MZ)()],g.prototype,"error",null),(0,r.Cg)([(0,i.MZ)()],g.prototype,"finished",null),(0,r.Cg)([(0,i.MZ)()],g.prototype,"promise",void 0),(0,r.Cg)([(0,i.MZ)()],g.prototype,"_result",void 0),g=(0,r.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,r.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,r.hk)(e)}}}},35522(t,e,n){n.d(e,{$A:()=>C,Bw:()=>a,C:()=>u,Cc:()=>S,DI:()=>b,Io:()=>M,Ln:()=>y,Om:()=>R,Qr:()=>f,Re:()=>s,S8:()=>A,T9:()=>m,WQ:()=>l,Z0:()=>j,_S:()=>h,aI:()=>Z,ei:()=>$,fw:()=>k,gL:()=>P,hG:()=>v,hZ:()=>i,hs:()=>g,jk:()=>d,lw:()=>c,m3:()=>w,oW:()=>E,t2:()=>q,tn:()=>p,ze:()=>x});var r=n(51850),o=n(34304);function a(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function h(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function v(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function w(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function A(t,e){const n=e[0],r=e[1],o=e[2];let a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function R(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){const r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2];return t[0]=o*l-a*i,t[1]=a*u-r*l,t[2]=r*i-o*u,t}function S(t,e,n,r){const o=e[0],a=e[1],u=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t}function j(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function $(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function P(t,e,n){return k(t,e,n[0],n[1],n[2],n[3])}function k(t,e,n,r,o,a){const u=e[0],i=e[1],l=e[2],s=r*l-o*i,c=o*u-n*l,f=n*i-r*u,p=r*f-o*c,h=o*s-n*f,d=n*c-r*s,m=2*a;return t[0]=u+s*m+2*p,t[1]=i+c*m+2*h,t[2]=l+f*m+2*d,t}const I=(0,r.vt)(),O=(0,r.vt)();function q(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function Z(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],u=e[0],i=e[1],l=e[2],s=(0,o.FD)();return Math.abs(n-u)<=s*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-i)<=s*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-l)<=s*Math.max(1,Math.abs(a),Math.abs(l))}function E(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2];let u=r*r+o*o+a*a;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=o*u,t[2]=a*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=s,F=c,_=f,L=M,z=v,G=a,N=w;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(t,e){A(I,t),A(O,e);const n=R(I,O);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,a){const u=1-a,i=u*u,l=a*a,s=i*u,c=3*a*i,f=3*l*u,p=l*a;return t[0]=e[0]*s+n[0]*c+r[0]*f+o[0]*p,t[1]=e[1]*s+n[1]*c+r[1]*f+o[1]*p,t[2]=e[2]*s+n[2]*c+r[2]*f+o[2]*p,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:u,cross:C,crossAndNormalize:function(t,e,n){const r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],s=o*l-a*i,c=a*u-r*l,f=r*i-o*u,p=Math.sqrt(s*s+c*c+f*f);return t[0]=s/p,t[1]=c/p,t[2]=f/p,t},direction:E,dist:L,distance:M,div:_,divide:f,dot:R,equals:Z,exactEquals:q,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,a){const u=a*a,i=u*(2*a-3)+1,l=u*(a-2)+a,s=u*(a-1),c=u*(3-2*a);return t[0]=e[0]*i+n[0]*l+r[0]*s+o[0]*c,t[1]=e[1]*i+n[1]*l+r[1]*s+o[1]*c,t[2]=e[2]*i+n[2]*l+r[2]*s+o[2]*c,t},inverse:b,len:G,length:a,lerp:S,max:m,min:d,mul:F,multiply:c,negate:x,normalize:A,random:function(t,e=1){const n=o.Ov,r=2*n()*Math.PI,a=2*n()-1,u=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*e,t},rotateX:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:y,set:i,sign:h,sqrDist:z,sqrLen:N,squaredDistance:v,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:s,transformMat3:$,transformMat4:j,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:P,transformQuatValues:k},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,G,"jb",0,T,"lo",0,z,"uE",0,N,"xg",0,L])},159(t,e,n){n.d(e,{A:()=>s});var r,o=n(5482),a=n(69540),u=n(25482),i=n(91429),l=n(99157);let s=r=class extends((0,a.OU)(u.o)){constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,o.Cg)([(0,i.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],s.prototype,"steps",void 0),s=r=(0,o.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformation")],s)},99157(t,e,n){n.d(e,{A:()=>l});var r,o=n(5482),a=n(69540),u=n(25482),i=n(91429);let l=r=class extends((0,a.OU)(u.o)){constructor(t){super(t),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,o.Cg)([(0,i.MZ)({json:{name:"transformForward",read:t=>!t,write:(t,e,n)=>{e[n]=!t}}})],l.prototype,"isInverse",void 0),(0,o.Cg)([(0,i.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,o.Cg)([(0,i.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,o.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>o});var r=n(49208);function o(t,e,n,o,a,u,i=Math.floor(t.length/3)){const l=(0,r.jd)(e,a);if(null==l)return!1;if(l===r.pO){if(t===o&&n===u)return!0;const e=n+3*i;for(let r=n,a=u;r<e;r++,a++)o[a]=t[r]??0;return!0}const s=n+3*i;for(let e=n,r=u;e<s;e+=3,r+=3)l(t,e,o,r);return!0}},49208(t,e,n){n.d(e,{Tp:()=>f,jd:()=>c,pO:()=>h});var r=n(34727),o=n(86211),a=n(73941),u=n(79258),i=n(34403),l=n(21325);const s={2:{5:h,7:null,9:null,10:h,1:x,6:null,8:null,0:null,3:m,11:g,2:h,4:S},5:{5:h,7:null,9:null,10:h,1:x,6:null,8:null,0:null,3:m,11:g,2:h,4:S},7:{5:null,7:h,9:null,10:h,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:h,10:h,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(t,e,n,r){const o=t[e]/O,a=I-2*Math.atan(Math.exp(-t[e+1]/O)),u=O+(t[e+2]??0),i=Math.cos(a)*u;n[r]=Math.cos(o)*i,n[r+1]=Math.sin(o)*i,n[r+2]=Math.sin(a)*u},6:null,8:null,0:null,3:h,11:function(t,e,n,r){d(t,e,n,r),g(n,r,n,r)},2:d,4:function(t,e,n,r){d(t,e,n,r),S(n,r,n,r)}},4:{5:j,7:null,9:null,10:j,1:function(t,e,n,r){j(t,e,n,r),x(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){j(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){j(t,e,n,r),g(n,r,n,r)},2:j,4:h},1:{5:C,7:null,9:null,10:C,1:h,6:null,8:null,0:null,3:function(t,e,n,r){C(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){C(t,e,n,r),g(n,r,n,r)},2:C,4:function(t,e,n,r){C(t,e,n,r),S(n,r,n,r)}},6:{5:null,7:R,9:null,10:R,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:h,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:h,3:null,11:null,2:null,4:null},10:{5:h,7:h,9:h,10:h,1:x,6:w,8:v,0:null,3:m,11:g,2:h,4:S},11:{5:y,7:null,9:null,10:y,1:function(t,e,n,r){y(t,e,n,r),x(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){y(t,e,n,r),m(n,r,n,r)},11:h,2:y,4:function(t,e,n,r){y(t,e,n,r),S(n,r,n,r)}}};function c(t,e){return f(t,e)?.projector}function f(t,e){if(null==t||null==e)return null;if($.source.spatialReference===t&&$.dest.spatialReference===e)return $;const n=p(t,$.source),r=p(e,$.dest);return 0===n&&0===r?(0,l.aI)(t,e)?$.projector=h:$.projector=null:$.projector=s[n][r],$}function p(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,o.GA)(t,1)),(0,a.jA)(t)?e.spatialReferenceId=1:(0,l.oT)(t)?e.spatialReferenceId=2:(0,l.K8)(t)?e.spatialReferenceId=3:(0,l.r1)(t)?e.spatialReferenceId=11:t.wkt===a.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===a.FY.wkt?e.spatialReferenceId=6:t.wkt===a.LJ.wkt?e.spatialReferenceId=8:(0,a.q8)(t)?e.spatialReferenceId=7:(0,a.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function h(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function d(t,e,n,r){n[r]=k*(t[e]/O),n[r+1]=k*(I-2*Math.atan(Math.exp(-t[e+1]/O))),n[r+2]=t[e+2]??0}function m(t,e,n,o){!function(t,e,n,o,a){const u=.4999999*Math.PI,i=(0,r.qE)(P*t[e+1],-u,u),l=Math.sin(i);n[o++]=P*t[e]*a.radius,n[o++]=a.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=t[e+2]??0}(t,e,n,o,u.$O)}function g(t,e,n,r){n[r]=t[e]*q,n[r+1]=t[e+1]*q,n[r+2]=t[e+2]??0}function y(t,e,n,r){n[r]=t[e]*Z,n[r+1]=t[e+1]*Z,n[r+2]=t[e+2]??0}function M(t,e,n,r,o){const a=o+(t[e+2]??0),u=P*t[e],i=P*t[e+1],l=Math.cos(i)*a;n[r]=Math.cos(u)*l,n[r+1]=Math.sin(u)*l,n[r+2]=Math.sin(i)*a}function v(t,e,n,r){M(t,e,n,r,u.Sw.radius)}function w(t,e,n,r){M(t,e,n,r,u.sH.radius)}function x(t,e,n,r){M(t,e,n,r,u.$O.radius)}function b(t,e,n,o,a){const u=t[e],i=t[e+1],l=t[e+2]??0,s=Math.sqrt(u*u+i*i+l*l),c=(0,r.YN)(l/(0===s?1:s)),f=Math.atan2(i,u);n[o++]=k*f,n[o++]=k*c,n[o]=s-a}function A(t,e,n,r){b(t,e,n,r,u.Sw.radius)}function R(t,e,n,r){b(t,e,n,r,u.sH.radius)}function C(t,e,n,r){b(t,e,n,r,u.$O.radius)}function S(t,e,n,r){!function(t,e,n,r,o){const a=P*t[e],u=P*t[e+1],i=t[e+2]??0,l=Math.sin(u),s=Math.cos(u),c=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(c+i)*s*Math.cos(a),n[r++]=(c+i)*s*Math.sin(a),n[r++]=(c*(1-o.eccentricitySquared)+i)*l}(t,e,n,r,u.$O)}function j(t,e,n,r){const o=i.TP,a=t[e],l=t[e+1],s=t[e+2]??0;let c,f,p,h,d,m,g,y,M,v,w,x,b,A,R,C,S,j,$,P,I;c=Math.abs(s),f=a*a+l*l,p=Math.sqrt(f),h=f+s*s,d=Math.sqrt(h),P=Math.atan2(l,a),m=s*s/h,g=f/h,A=o.a2/d,R=o.a3-o.a4/d,g>.3?(y=c/d*(1+g*(o.a1+A+m*R)/d),$=Math.asin(y),v=y*y,M=Math.sqrt(1-v)):(M=p/d*(1-m*(o.a5-A-g*R)/d),$=Math.acos(M),v=1-M*M,y=Math.sqrt(v)),w=1-u.$O.eccentricitySquared*v,x=u.$O.radius/Math.sqrt(w),b=o.a6*x,A=p-x*M,R=c-b*y,S=M*A+y*R,C=M*R-y*A,j=C/(b/w+S),$+=j,I=S+C*j/2,s<0&&($=-$),n[r++]=k*P,n[r++]=k*$,n[r]=I}const $={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},P=(0,r.kU)(1),k=(0,r.KJ)(1),I=.5*Math.PI,O=u.$O.radius,q=O*Math.PI/180,Z=180/(O*Math.PI);n.d(e,["w5",0,s])},91218(t,e,n){n.r(e),n.d(e,{canProjectWithoutEngine:()=>B,initializeProjection:()=>H,isEqualBaseGCS:()=>W,isLoaded:()=>O,isLoadedOrLoad:()=>q,isLoadedOrLoadFor:()=>Z,load:()=>T,project:()=>F,projectAsync:()=>K,projectExtent:()=>ot,projectMany:()=>_,projectMultipoint:()=>V,projectOrLoad:()=>z,projectOrLoadMany:()=>G,projectPoint:()=>Q,projectPolygon:()=>nt,projectPolyline:()=>tt,projectWithoutEngine:()=>J,requiresLoad:()=>E,test:()=>D,tryProject:()=>L,unload:()=>U});var r=n(49186),o=n(17676),a=n(62788),u=n(95488),i=n(51850),l=n(21276),s=n(73941),c=n(5443),f=n(91075),p=n(48526),h=n(86738),d=n(39829),m=n(82799),g=n(16930),y=n(98764),M=n(159),v=n(9762),w=n(49208);function x(t,e,n,r,o,a){return b[0]=t,b[1]=e,b[2]=n,(0,v.projectBuffer)(b,r,0,o,a,0)}const b=(0,i.vt)();var A=n(60408),R=n(21325),C=n(52006);let S=null,j=null,$=null,P=null,k={};const I=new u.I;function O(){return!!(j?.isLoaded()&&$?.isLoaded()&&P?.isLoaded())}function q(){return!!O()||((0,a.gc)(I),T(),!1)}function Z(t,e){return!t||!e||B(t,e)||q()}function E(t,e){return!B(t,e)&&!O()}async function T(t){null==S&&(S=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(j=t,j.load())),n.e(8377).then(n.bind(n,8377)).then(t=>($=t,$.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(P=t,P.load()))])),await S,(0,o.Te)(t),I.notify()}function F(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,l.H)(t),_(t,t[0].spatialReference,e,n)):((0,l.f)(t),_([t],t.spatialReference,e,n)[0])}function _(t,e,n,r){if(null==e||null==n)return t;if(B(e,n,r))return t.map(t=>J(t,e,n));if(null==r?.geographicTransformation&&(0,s.jA)(e))return _(t.map(t=>J(t,e,g.A.WGS84)),g.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,s.jA)(n))return _(t,e,g.A.WGS84).map(t=>J(t,g.A.WGS84,n));if(!O())throw new N;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:P.getTransformation(e,n,r.areaOfInterestExtent)||new M.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let o=k[t];o||(o=P.getTransformation(e,n)||new M.A,k[t]=o),r={geographicTransformation:o,zConversionDisabled:r?.zConversionDisabled}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof f.A?j.executeMany(t,n,r):$.executeMany(t,n,r)}function L(t,e,n){try{return F(t,e,n)}catch(t){return null}}function z(t,e){const n=G([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function G(t,e,n){if(!O())for(const n of t)if(null!=n&&!(0,R.aI)(n.spatialReference,e)&&(0,R.fn)(n.spatialReference)&&(0,R.fn)(e)&&!B(n.spatialReference,e))return(0,a.gc)(I),{pending:T(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,R.aI)(t.spatialReference,e)?t:(0,R.fn)(t.spatialReference)&&(0,R.fn)(e)?F(t,e,n):null)}}class N extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){S=null,j=null,$=null,P=null,k={}}const D={get loadPromise(){return S}};async function K(t,e,n){if((0,o.Te)(n),!t)return t;const r=G(Array.isArray(t)?t:[t],e,n);if(r.pending)return await r.pending,(0,o.Te)(n),K(t,e,n);const a=r.geometries??[];return Array.isArray(t)?a:a[0]}function B(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,R.aI)(t,e)||(0,R.fn)(t)&&(0,R.fn)(e)&&!!(0,w.jd)(t,e))}function W(t,e){if((0,R.aI)(t,e))return!0;if(!(0,R.fn)(t)||!(0,R.fn)(e))return!1;const n=(0,R.oT)(t)||(0,R.K8)(t)||(0,R.x1)(t),r=(0,R.oT)(e)||(0,R.K8)(e)||(0,R.x1)(e);return n&&r}async function H(t,e,n,r){if(O())return(0,o.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:o}of t)if(e&&n&&!B(e,n,o))return T(r)}else if(t&&e&&!B(t,e,n))return T(r);return(0,o.NO)(r)}function J(t,e,n){return t?(0,A.fT)(t)?Y(t,e,new h.A,n,0):(0,A.ZC)(t)?at(t,e,new c.A,n,0):(0,A.Bi)(t)?rt(t,e,new d.A,n,0):(0,A.Rg)(t)?et(t,e,new m.A,n,0):(0,A.U9)(t)?X(t,e,new p.A,n,0):null:null}function Q(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=Y(t,t.spatialReference,e,n,r)}function Y(t,e,n,r,o){st[0]=t.x,st[1]=t.y;const a=t.z;return st[2]=void 0!==a?a:o,(0,v.projectBuffer)(st,e,0,st,r,0)?(n.x=st[0],n.y=st[1],n.spatialReference=r,void 0!==a||(0,s.xP)(r)?(n.z=st[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function V(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=X(t,t.spatialReference,e,n,r)}function X(t,e,n,r,o){const{points:a,hasZ:u,hasM:i}=t,l=[],s=a.length,c=[];for(const t of a)c.push(t[0],t[1],u?t[2]:o);if(!(0,v.projectBuffer)(c,e,0,c,r,0,s))return null;const f=lt(u,r);for(let t=0;t<s;++t){const e=3*t,n=c[e],r=c[e+1];f&&i?l.push([n,r,c[e+2],a[t][3]]):f?l.push([n,r,c[e+2]]):i?l.push([n,r,a[t][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=u,n.hasM=i,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,o){const{curvePaths:a,paths:u,hasZ:i,hasM:l}=t;if(!(a?it(a,i??!1,l??!1,e,n.curvePaths=[],r,o):ut(u,i??!1,l??!1,e,n.paths,r,o)))return null;const s=lt(i,r);return n.spatialReference=r,n.hasZ=s,n.hasM=l,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,o){const{curveRings:a,rings:u,hasZ:i,hasM:l}=t;return(a?it(a,i??!1,l??!1,e,n.curveRings=[],r,o):ut(u,i??!1,l??!1,e,n.rings,r,o))?(n.spatialReference=r,n.hasZ=lt(i,r),n.hasM=l,n):null}function ot(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=at(t,t.spatialReference,e,n,r)}function at(t,e,n,r,o){const{xmin:a,ymin:u,xmax:i,ymax:l,hasZ:s,hasM:c}=t;if(!x(a,u,s?t.zmin:o,e,st,r))return null;const f=lt(s,r);return n.xmin=st[0],n.ymin=st[1],f&&(n.zmin=st[2]),x(i,l,s?t.zmax:o,e,st,r)?(n.xmax=st[0],n.ymax=st[1],f&&(n.zmax=st[2]),c&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function ut(t,e,n,r,o,a,u=0){const i=new Array;for(const n of t)for(const t of n)i.push(t[0],t[1],e?t[2]:u);if(!(0,v.projectBuffer)(i,r,0,i,a,0))return!1;let l=0;o.length=0;const s=e?3:2,c=lt(e,a);for(const e of t){const t=new Array;for(const r of e){const e=i.slice(l,l+=3);c||e.pop(),n&&e.push(r[s]),t.push(e)}o.push(t)}return!0}function it(t,e,n,r,o,a,u=0){const i=new Array;for(const n of t)for(const t of n){if((0,C.FG)(t))return!1;if((0,C.aO)(t)){const[n,r]=t.c;i.push(n[0],n[1],e?n[2]:u,r[0],r[1],u);continue}if((0,C.n1)(t)){const[n,r,o]=t.b;i.push(n[0],n[1],e?n[2]:u,r[0],r[1],u,o[0],o[1],u);continue}const n=t;i.push(n[0],n[1],e?n[2]:u)}if(!(0,v.projectBuffer)(i,r,0,i,a,0))return!1;let l=0;o.length=0;const s=e?3:2,c=lt(e,a);for(const e of t){const t=new Array;for(const r of e){const e=i.slice(l,l+=3);if(c||e.pop(),n&&e.push((0,C.yP)(r)[s]),(0,C.FG)(r))return!1;if((0,C.aO)(r)){const n=i[l++],r=i[l++];++l,t.push({c:[e,[n,r]]});continue}if((0,C.n1)(r)){const n=i[l++],r=i[l++];++l;const o=i[l++],a=i[l++];++l,t.push({b:[e,[n,r],[o,a]]});continue}t.push(e)}o.push(t)}return!0}function lt(t,e){return t||(0,s.xP)(e)||(0,R.aI)(e,y.Y0)}const st=(0,i.vt)()},98764(t,e,n){n.d(e,{lO:()=>c});var r=n(73941),o=n(16930),a=n(21325);const u=new o.A(r.fv),i=new o.A(r.FY),l=new o.A(r.LJ),s=new o.A(r.Ro);function c(t){const e=f.get(t);if(e)return e;let n=u;if(t)if(t===i)n=i;else if(t===l)n=l;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,a.tl)(e)||(0,a.tl)(r)?n=i:((0,a.ZL)(e)||(0,a.ZL)(r))&&(n=l);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===p?n=i:t===h&&(n=l)}}}return f.set(t,n),n}const f=new Map,p=i.wkt.toUpperCase(),h=l.wkt.toUpperCase();n.d(e,["GD",0,u,"Y0",0,s])},34403(t,e,n){var r=n(79258);Math.PI;const o=r.$O.radius,a=r.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,n.d(e,["TP",0,u])},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function o(t){return void 0!==t.points}function a(t){return void 0!==t.x&&void 0!==t.y}function u(t){return void 0!==t.paths||void 0!==t.curvePaths}function i(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function s(t){return t?a(t)?"esriGeometryPoint":u(t)?"esriGeometryPolyline":i(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":o(t)?"esriGeometryMultipoint":null:null}function c(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>s,Bi:()=>i,Pv:()=>c,Rg:()=>u,U9:()=>o,W0:()=>f,ZC:()=>r,fT:()=>a,uW:()=>l})},76369(t,e,n){n.d(e,{LF:()=>b,M9:()=>A});var r=n(49186),o=n(93637),a=n(40876),u=n(59247),i=n(27865);class l extends SyntaxError{constructor(t,e,n,r){super(t),this.expected=e,this.found=n,this.location=r,this.name="SyntaxError"}format(t){let e="Error: "+this.message;if(this.location){let n=null;const r=t.find(t=>t.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));const o=this.location.start,a=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,u=this.location.source+":"+a.line+":"+a.column;if(n){const t=this.location.end,r="".padEnd(a.line.toString().length," "),i=n[o.line-1],l=(o.line===t.line?t.column:i.length+1)-o.column||1;e+="\n --\x3e "+u+"\n"+r+" |\n"+a.line+" | "+i+"\n"+r+" | "+"".padEnd(o.column-1," ")+"".padEnd(l,"^")}else e+="\n at "+u}return e}static buildMessage(t,e){function n(t){return t.codePointAt(0).toString(16).toUpperCase()}const r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function o(t){return r?t.replace(r,t=>"\\u{"+n(t)+"}"):t}function a(t){return o(t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,t=>"\\x0"+n(t)).replace(/[\x10-\x1F\x7F-\x9F]/g,t=>"\\x"+n(t)))}function u(t){return o(t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,t=>"\\x0"+n(t)).replace(/[\x10-\x1F\x7F-\x9F]/g,t=>"\\x"+n(t)))}const i={literal:t=>'"'+a(t.text)+'"',class(t){const e=t.parts.map(t=>Array.isArray(t)?u(t[0])+"-"+u(t[1]):u(t));return"["+(t.inverted?"^":"")+e.join("")+"]"+(t.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:t=>t.description};function l(t){return i[t.type](t)}return"Expected "+function(t){const e=t.map(l);if(e.sort(),e.length>0){let t=1;for(let n=1;n<e.length;n++)e[n-1]!==e[n]&&(e[t]=e[n],t++);e.length=t}switch(e.length){case 1:return e[0];case 2:return e[0]+" or "+e[1];default:return e.slice(0,-1).join(", ")+", or "+e[e.length-1]}}(t)+" but "+function(t){return t?'"'+a(t)+'"':"end of input"}(e)+" found."}}function s(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=c(t);return e&&0!==e.length?e:null}const e=t.map(t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:c(t.value)}});e.sort((t,e)=>e.effects.length-t.effects.length);for(let t=0;t<e.length-1;t++){if(!(0,i.mj)(e[t].effects,e[t+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,i.O9)(e[t].effects,e[t+1].effects)}return e.sort((t,e)=>e.scale-t.scale),e}function c(t){let e;if(!t)return[];try{e=function(t,e){const n={},r=(e=void 0!==e?e:{}).grammarSource,o={start:xt};let a=xt;const u="none",i=")",s=",",c="(",f="%",p="px",h="cm",d="mm",m="in",g="pt",y="pc",M="deg",v="rad",w="grad",x="turn",b="#",A=".",R="e",C=/^[ \t\n\r]/,S=/^[a-z\-]/,j=/^[0-9a-fA-F]/,$=/^[+\-]/,P=/^[0-9]/,k=yt("none"),I=mt("none",!1),O=mt(")",!1),q=mt(",",!1),Z=gt([" ","\t","\n","\r"],!1,!1,!1),E=yt("function"),T=mt("(",!1),F=yt("identifier"),_=gt([["a","z"],"-"],!1,!1,!1),L=yt("percentage"),z=mt("%",!1),G=yt("length"),N=mt("px",!1),U=mt("cm",!1),D=mt("mm",!1),K=mt("in",!1),B=mt("pt",!1),W=mt("pc",!1),H=yt("angle"),J=mt("deg",!1),Q=mt("rad",!1),Y=mt("grad",!1),V=mt("turn",!1),X=yt("number"),tt=yt("color"),et=mt("#",!1),nt=gt([["0","9"],["a","f"],["A","F"]],!1,!1,!1),rt=gt(["+","-"],!1,!1,!1),ot=gt([["0","9"]],!1,!1,!1),at=mt(".",!1),ut=mt("e",!1);let it=0|e.peg$currPos,lt=it;const st=[{line:1,column:1}];let ct,ft=it,pt=e.peg$maxFailExpected||[],ht=0|e.peg$silentFails;if(e.startRule){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function dt(){return t.substring(lt,it)}function mt(t,e){return{type:"literal",text:t,ignoreCase:e}}function gt(t,e,n,r){return{type:"class",parts:t,inverted:e,ignoreCase:n,unicode:r}}function yt(t){return{type:"other",description:t}}function Mt(e){let n,r=st[e];if(r)return r;if(e>=st.length)n=st.length-1;else for(n=e;!st[--n];);for(r=st[n],r={line:r.line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return st[e]=r,r}function vt(t,e,n){const o=Mt(t),a=Mt(e);return{source:r,start:{offset:t,line:o.line,column:o.column},end:{offset:e,line:a.line,column:a.column}}}function wt(t){it<ft||(it>ft&&(ft=it,pt=[]),pt.push(t))}function xt(){let t;return t=bt(),t===n&&(t=function(){let t,e;if(t=[],e=At(),e!==n)for(;e!==n;)t.push(e),e=At();else t=n;return t}()),t}function bt(){let e,r;return ht++,e=it,Ct(),t.substr(it,4)===u?(r=u,it+=4):(r=n,0===ht&&wt(I)),r!==n?(Ct(),lt=e,e=[]):(it=e,e=n),ht--,e===n&&0===ht&&wt(k),e}function At(){let e,r,o,a;return e=it,Ct(),r=function(){let e,r,o;return ht++,e=it,r=St(),r!==n?(40===t.charCodeAt(it)?(o=c,it++):(o=n,0===ht&&wt(T)),o!==n?(lt=e,e=r):(it=e,e=n)):(it=e,e=n),ht--,e===n&&(r=n,0===ht&&wt(E)),e}(),r!==n?(Ct(),o=function(){let e,r,o,a,u,i,l,c;if(e=it,r=Rt(),r!==n){for(o=[],a=it,u=Ct(),44===t.charCodeAt(it)?(i=s,it++):(i=n,0===ht&&wt(q)),i===n&&(i=null),l=Ct(),c=Rt(),c!==n?(u=[u,i,l,c],a=u):(it=a,a=n);a!==n;)o.push(a),a=it,u=Ct(),44===t.charCodeAt(it)?(i=s,it++):(i=n,0===ht&&wt(q)),i===n&&(i=null),l=Ct(),c=Rt(),c!==n?(u=[u,i,l,c],a=u):(it=a,a=n);lt=e,e=function(t,e){return e.length>0?function(t,e){return[t].concat(function(t){return t.map(function(t){return t[3]})}(e))}(t,e):[t]}(r,o)}else it=e,e=n;return e}(),o===n&&(o=null),Ct(),41===t.charCodeAt(it)?(a=i,it++):(a=n,0===ht&&wt(O)),a!==n?(Ct(),lt=e,e=function(t,e){return{type:"function",name:t,parameters:e||[]}}(r,o)):(it=e,e=n)):(it=e,e=n),e}function Rt(){let t,e;return t=it,e=jt(),e===n&&(e=$t(),e===n&&(e=Pt(),e===n&&(e=function(){let t,e;return ht++,t=it,Ct(),e=It(),e!==n?(lt=t,t=function(t){return{value:t,unit:null}}(e)):(it=t,t=n),ht--,t===n&&0===ht&&wt(X),t}()))),e!==n&&(lt=t,e=function(t){return{type:"quantity",value:t.value,unit:t.unit}}(e)),t=e,t===n&&(t=it,e=kt(),e!==n&&(lt=t,e=function(t){return{type:"color",colorType:t.type,value:t.value}}(e)),t=e),t}function Ct(){let e,r;for(ht++,e=[],r=t.charAt(it),C.test(r)?it++:(r=n,0===ht&&wt(Z));r!==n;)e.push(r),r=t.charAt(it),C.test(r)?it++:(r=n,0===ht&&wt(Z));return ht--,e}function St(){let e,r,o;if(ht++,e=it,r=[],o=t.charAt(it),S.test(o)?it++:(o=n,0===ht&&wt(_)),o!==n)for(;o!==n;)r.push(o),o=t.charAt(it),S.test(o)?it++:(o=n,0===ht&&wt(_));else r=n;return r!==n&&(lt=e,r=dt()),e=r,ht--,e===n&&(r=n,0===ht&&wt(F)),e}function jt(){let e,r,o;return ht++,e=it,Ct(),r=It(),r!==n?(37===t.charCodeAt(it)?(o=f,it++):(o=n,0===ht&&wt(z)),o!==n?(lt=e,e=function(t){return{value:t,unit:"%"}}(r)):(it=e,e=n)):(it=e,e=n),ht--,e===n&&0===ht&&wt(L),e}function $t(){let e,r,o;return ht++,e=it,Ct(),r=It(),r!==n?(t.substr(it,2)===p?(o=p,it+=2):(o=n,0===ht&&wt(N)),o!==n?(lt=e,e=function(t){return{value:t,unit:"px"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,Ct(),r=It(),r!==n?(t.substr(it,2)===h?(o=h,it+=2):(o=n,0===ht&&wt(U)),o!==n?(lt=e,e=function(t){return{value:t,unit:"cm"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,Ct(),r=It(),r!==n?(t.substr(it,2)===d?(o=d,it+=2):(o=n,0===ht&&wt(D)),o!==n?(lt=e,e=function(t){return{value:t,unit:"mm"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,Ct(),r=It(),r!==n?(t.substr(it,2)===m?(o=m,it+=2):(o=n,0===ht&&wt(K)),o!==n?(lt=e,e=function(t){return{value:t,unit:"in"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,Ct(),r=It(),r!==n?(t.substr(it,2)===g?(o=g,it+=2):(o=n,0===ht&&wt(B)),o!==n?(lt=e,e=function(t){return{value:t,unit:"pt"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,Ct(),r=It(),r!==n?(t.substr(it,2)===y?(o=y,it+=2):(o=n,0===ht&&wt(W)),o!==n?(lt=e,e=function(t){return{value:t,unit:"pc"}}(r)):(it=e,e=n)):(it=e,e=n)))))),ht--,e===n&&0===ht&&wt(G),e}function Pt(){let e,r,o;return ht++,e=it,r=It(),r!==n?(t.substr(it,3)===M?(o=M,it+=3):(o=n,0===ht&&wt(J)),o!==n?(lt=e,e=function(t){return{value:t,unit:"deg"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,r=It(),r!==n?(t.substr(it,3)===v?(o=v,it+=3):(o=n,0===ht&&wt(Q)),o!==n?(lt=e,e=function(t){return{value:t,unit:"rad"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,r=It(),r!==n?(t.substr(it,4)===w?(o=w,it+=4):(o=n,0===ht&&wt(Y)),o!==n?(lt=e,e=function(t){return{value:t,unit:"grad"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,r=It(),r!==n?(t.substr(it,4)===x?(o=x,it+=4):(o=n,0===ht&&wt(V)),o!==n?(lt=e,e=function(t){return{value:t,unit:"turn"}}(r)):(it=e,e=n)):(it=e,e=n)))),ht--,e===n&&(r=n,0===ht&&wt(H)),e}function kt(){let e,r,o,a;if(ht++,e=it,35===t.charCodeAt(it)?(r=b,it++):(r=n,0===ht&&wt(et)),r!==n){if(o=[],a=t.charAt(it),j.test(a)?it++:(a=n,0===ht&&wt(nt)),a!==n)for(;a!==n;)o.push(a),a=t.charAt(it),j.test(a)?it++:(a=n,0===ht&&wt(nt));else o=n;o!==n?(lt=e,e={type:"hex",value:dt()}):(it=e,e=n)}else it=e,e=n;return e===n&&(e=it,r=At(),r!==n&&(lt=e,r=function(t){return{type:"function",value:t}}(r)),e=r,e===n&&(e=it,r=St(),r!==n&&(lt=e,r={type:"named",value:dt()}),e=r)),ht--,e===n&&(r=n,0===ht&&wt(tt)),e}function It(){let e,r,o,a,u,i,l,s;for(e=it,r=t.charAt(it),$.test(r)?it++:(r=n,0===ht&&wt(rt)),r===n&&(r=null),o=it,a=[],u=t.charAt(it),P.test(u)?it++:(u=n,0===ht&&wt(ot));u!==n;)a.push(u),u=t.charAt(it),P.test(u)?it++:(u=n,0===ht&&wt(ot));if(46===t.charCodeAt(it)?(u=A,it++):(u=n,0===ht&&wt(at)),u!==n){if(i=[],l=t.charAt(it),P.test(l)?it++:(l=n,0===ht&&wt(ot)),l!==n)for(;l!==n;)i.push(l),l=t.charAt(it),P.test(l)?it++:(l=n,0===ht&&wt(ot));else i=n;i!==n?(a=[a,u,i],o=a):(it=o,o=n)}else it=o,o=n;if(o===n)if(o=[],a=t.charAt(it),P.test(a)?it++:(a=n,0===ht&&wt(ot)),a!==n)for(;a!==n;)o.push(a),a=t.charAt(it),P.test(a)?it++:(a=n,0===ht&&wt(ot));else o=n;if(o!==n){if(a=it,101===t.charCodeAt(it)?(u=R,it++):(u=n,0===ht&&wt(ut)),u!==n){if(i=t.charAt(it),$.test(i)?it++:(i=n,0===ht&&wt(rt)),i===n&&(i=null),l=[],s=t.charAt(it),P.test(s)?it++:(s=n,0===ht&&wt(ot)),s!==n)for(;s!==n;)l.push(s),s=t.charAt(it),P.test(s)?it++:(s=n,0===ht&&wt(ot));else l=n;l!==n?(u=[u,i,l],a=u):(it=a,a=n)}else it=a,a=n;a===n&&(a=null),lt=e,e=parseFloat(dt())}else it=e,e=n;return e}ct=a();const Ot=ct!==n&&it===t.length;function qt(){throw ct!==n&&it<t.length&&wt({type:"end"}),function(t,e,n){return new l(l.buildMessage(t,e),t,e,n)}(pt,ft<t.length?function(e=it){const n=t.codePointAt(e);return void 0===n?"":String.fromCodePoint(n)}(ft):null,ft<t.length?vt(ft,ft+1):vt(ft,ft))}return e.peg$library?{peg$result:ct,peg$currPos:it,peg$FAILED:n,peg$maxFailExpected:pt,peg$maxFailPos:ft,peg$success:Ot,peg$throw:Ot?void 0:qt}:Ot?ct:void qt()}(t)}catch(e){throw new r.A("effect:invalid-syntax","Invalid effect syntax",{value:t,error:e})}return e.map(t=>function(t){try{switch(t.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(t){let e=1;return f(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new u.yG(t.name,e)}(t);case"opacity":return function(t){let e=1;return f(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new u.jm(e)}(t);case"hue-rotate":return function(t){let e=0;return f(t.parameters,1),1===t.parameters.length&&(e=function(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=d[t.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${p(t)}`,{term:t})}(t),t.value*d[t.unit]||0}(t.parameters[0])),new u.Nd(e)}(t);case"blur":return function(t){let e=0;return f(t.parameters,1),1===t.parameters.length&&(e=y(t.parameters[0]),h(e,t.parameters[0])),new u.Fk(e)}(t);case"drop-shadow":return function(t){const e=[];let n=null;for(const o of t.parameters)if("color"===o.type){if(e.length&&Object.freeze(e),n)throw new r.A("effect:type-error","Accepts only one color",{});n=M(o)}else{const t=y(o);if(Object.isFrozen(e))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&h(t,o)}if(e.length<2||e.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new u.$b(e[0],e[1],e[2]||0,n||v("black"))}(t);case"bloom":return function(t){let e=1,n=0,r=0;return f(t.parameters,3),t.parameters[0]&&(e=g(t.parameters[0])),t.parameters[1]&&(n=y(t.parameters[1]),h(n,t.parameters[1])),t.parameters[2]&&(r=g(t.parameters[2])),new u.bv(e,n,r)}(t)}}catch(e){throw e.details.filter=t,e}throw new r.A("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t))}function f(t,e){if(t.length>e)throw new r.A("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function p(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in m)return"<length>";if(t.unit in d)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function h(t,e){if(t<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}const d={deg:1,grad:.9,rad:180/Math.PI,turn:360},m={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${p(t)}`,{term:t})}(t);const e=t.value;return h(e,t),"%"===t.unit?.01*e:e}function y(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=m[t.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${p(t)}`,{term:t})}(t),t.value*m[t.unit]||0}function M(t){switch(t.colorType){case"hex":return(0,a.j5)(t.value);case"named":return v(t.value);case"function":return function(t){if(f(t.parameters,4),w.test(t.name))return[g(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1];if(x.test(t.name))return(0,a.ay)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${p(t)}`,{term:t})}(t),h(t.value,t),t.value}(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function v(t){if(!(0,a.V6)(t))throw new r.A("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,a.c4)(t)}const w=/^rgba?/i,x=/^hsla?/i;function b(t,e,n){try{return function(t){if(!t||0===t.length)return null;if(function(t){const e=t[0];return!!e&&"scale"in e}(t)){const e=[];for(const n of t)e.push({scale:n.scale,value:R(n.value)});return e}return R(t)}(t)}catch(t){n?.messages?.push(t)}return null}function A(t,e,n,r){try{const r=function(t){const e=s(t);return e?(0,i.dw)(e)?e.map(t=>t.toJSON()):e.map(({scale:t,effects:e})=>({scale:t,value:e.map(t=>t.toJSON())})):null}(t);(0,o.sM)(n,r,e)}catch(t){r.messages&&r.messages.push(t)}}function R(t){if(!t?.length)return"";const e=[];for(const n of t){let t=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":t=[C(n,"amount")];break;case"blur":t=[C(n,"radius","pt")];break;case"hue-rotate":t=[C(n,"angle","deg")];break;case"drop-shadow":t=[C(n,"xoffset","pt"),C(n,"yoffset","pt"),C(n,"blurRadius","pt"),S(n,"color")];break;case"bloom":t=[C(n,"strength"),C(n,"radius","pt"),C(n,"threshold")]}const r=`${n.type}(${t.filter(Boolean).join(" ")})`;s(r),e.push(r)}return e.join(" ")}function C(t,e,n){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return n?t[e]+n:""+t[e]}function S(t,e){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});const n=t[e];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},63074(t,e,n){var r=n(5482),o=n(91429),a=n(89317),u=n(76369);const i={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:a.K}},"portal-item":{read:!0,write:{layerContainerTypes:a.K}}}}},l={read:{reader:u.LF},write:{allowNull:!0,writer:u.M9,layerContainerTypes:a.K}},s={json:{read:!1,write:!1,origins:{"web-map":l,"portal-item":l}}};n.d(e,["LF",0,s,"dM",0,t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r.Cg)([(0,o.MZ)(i)],n.prototype,"blendMode",void 0),(0,r.Cg)([(0,o.MZ)(s)],n.prototype,"effect",void 0),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.BlendLayer")],n),n},"sU",0,i])},25036(t,e,n){var r=n(5482),o=n(91429);n.d(e,["j",0,t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;void 0!==e?.effectiveScaleRange&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===t.minScale&&n.maxScale===t.maxScale?n:t}};return(0,r.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"minScale",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"maxScale",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],n.prototype,"effectiveScaleRange",null),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.ScaleRangeLayer")],n),n}])},56560(t,e,n){n.d(e,{A:()=>i});var r=n(5482),o=n(69540),a=n(91429),u=n(86738);let i=class extends o.Pw{constructor(t){super(t),this.sourcePoint=null,this.mapPoint=null}};(0,r.Cg)([(0,a.MZ)()],i.prototype,"sourcePoint",void 0),(0,r.Cg)([(0,a.MZ)({type:u.A})],i.prototype,"mapPoint",void 0),i=(0,r.Cg)([(0,a.$K)("esri.layers.support.ControlPoint")],i)},78553(t,e,n){n.d(e,{D:()=>a,p:()=>o});var r=n(56507);function o(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function a(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2186],{2272(e,t,n){n.d(t,{Dl:()=>f,gf:()=>l,jV:()=>a,lF:()=>c});var i=n(92602),r=n(70333),s=n(4718),o=n(84952),u=n(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function f(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,n){const i={};for(const r in e){if("declaredClass"===r)continue;const s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[r]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[r]);i[r]=t?e:JSON.stringify(e)}else i[r]=t?s:JSON.stringify(s);else i[r]=s}return i}async function l(e,t,s){const o=function(e,t){return e?t&&(0,u.Qc)(e)?t:(0,u.getApiKey)(e)??r.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!r.id&&i.A.request.useIdentity&&await Promise.all([n.e(7632),n.e(4943),n.e(148)]).then(n.bind(n,50148));const a=await r.id.getCredential(e,s);return a?.token}},32186(e,t,n){n.r(t),n.d(t,{deleteForwardEdits:()=>o});var i=n(11254),r=n(49186),s=n(2272);async function o(e,t,n,o){if(!t)throw new r.A("post:missing-guid","guid for version is missing");const u=(0,s.Dl)(e),a=n.toJSON(),f=(0,s.jV)(u.query,{query:(0,s.lF)({...a,f:"json"}),...o,method:"post"});t.startsWith("{")&&(t=t.slice(1,-1));const c=`${u.path}/versions/${t}/deleteForwardEdits`,{data:l}=await(0,i.A)(c,f);return l}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5220],{40876(e,t,n){n.d(t,{Eq:()=>m,G1:()=>g,TS:()=>s,V6:()=>r,Vm:()=>f,ay:()=>l,c1:()=>p,c4:()=>a,j5:()=>u,lT:()=>h,oW:()=>c,xV:()=>b});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function r(e){return!!i[e]||!!i[e.toLowerCase()]}function s(e){return i[e]??i[e.toLowerCase()]}function a(e){return[...s(e)]}function o(e,t,n){n<0&&++n,n>1&&--n;const i=6*n;return i<1?e+(t-e)*i:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n,i=1){const r=(e%360+360)%360/360,s=n<=.5?n*(t+1):n+t-n*t,a=2*n-s;return[Math.round(255*o(a,s,r+1/3)),Math.round(255*o(a,s,r)),Math.round(255*o(a,s,r-1/3)),i]}function u(e){const t=e.length>5,n=t?8:4,i=(1<<n)-1,r=t?1:17,s=t?9===e.length:5===e.length;let a=Number("0x"+e.slice(1));if(isNaN(a))return null;const o=[0,0,0,1];let l;return s&&(l=a&i,a>>=n,o[3]=r*l/255),l=a&i,a>>=n,o[2]=r*l,l=a&i,a>>=n,o[1]=r*l,l=a&i,a>>=n,o[0]=r*l,o}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),r=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,i+16*i,(r+16*r)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?g(e[3]):1,e}function m(e){let t=r(e)?s(e):null;return t??=h(e),t??=c(e),t}function f(e){const t=m(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function g(e){return y(e,0,1)}function p(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const v=1/2.2;function b(e){return e**v}n.d(t,["iw",0,v])},7762(e,t,n){var i,r=n(5482),s=n(98291),a=n(4576),o=n(65529),l=n(36563),u=n(4718),c=n(53966),h=n(93687),d=n(76030),m=n(56507),f=n(62788),g=n(10107),p=n(7695),y=n(64108),v=n(95488),b=n(12195);class _{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class M{constructor(e,t,n,i,r){this.target=e,this.added=t,this.removed=n,this.start=i,this.deleteCount=r}}const w=new h.A(()=>new _,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function T(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function x(e){return e?e instanceof k?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function F(e){if(e?.length)return e[0]}function C(e,t,n,i){const r=Math.min(e.length-n,t.length-i);let s=0;for(;s<r&&e[n+s]===t[i+s];)s++;return s}function S(e,t,n,i){t&&t.forEach((t,r,s)=>{e.push(t),S(e,n.call(i,t,r,s),n,i)})}const I=new Set,z=new Set,V=new Set,D=new Map;let N=0,k=i=class extends o.nJ{static ofType(e){if(!e)return i;if(D.has(e))return D.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const n in e.typeMap){const i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let n=class extends i{};return(0,r.Cg)([(0,p.u)({Type:e,ensureType:"function"==typeof e?(0,m.dp)(e):(0,m.aq)(e)})],n.prototype,"itemType",void 0),n=(0,r.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],n),D.set(e,n),n}static isCollection(e){return null!=e&&e instanceof i}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:N++})}normalizeCtorArgs(e){return e?(0,a.yc)(e)||e instanceof i?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?c.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,f.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,x(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,n={removed:!1,callback:t};return e.push(n),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{n.removed=!0,e.splice(e.indexOf(n),1)})}return super.on(e,t)}once(e,t){const n="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{n()?.call(null,e),i.remove()});return i}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;const n=this.getNextIndex(t??null);return this._splice(n,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,f.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const n=this.getNextIndex(t);return this._splice(n,0,x(e)),this._emitAfterChanges(1),this}at(e){if((0,f.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.map(u.o8)})}concat(...e){(0,f.gc)(this._observable);const t=e.map(x);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const n=this._splice(0,this.length),i=n.length;for(let r=0;r<i;r++)e.call(t,n[r],r,n);this._emitAfterChanges(2)}destroyAll(){this.drain(T)}destroyMany(e){const t=this.removeMany(e);return t.forEach(T),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);const n=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:n})}find(e,t){return(0,f.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,f.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,f.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,f.gc)(this._observable);const n=[];return S(n,this,e,t),new i(n)}forEach(e,t){return(0,f.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.gc)(this._observable),this._items[e]}getNextIndex(e){(0,f.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.gc)(this._observable);const n=this._items.map(e,t);return new i({items:n})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);const n=this.indexOf(e);if(-1!==n){if(t<0?t=0:t>=this.length&&(t=this.length-1),n!==t){if(this._emitBeforeChanges(4))return e;this._splice(n,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=F(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,f.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,f.gc)(this._observable);const n=this._items;return 2===arguments.length?n.reduce(e,t):n.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);const n=this._items;return 2===arguments.length?n.reduceRight(e,t):n.reduceRight(e)}remove(e){return(0,f.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=F(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof i?e.toArray():e,n=this._items,r=[],s=t.length;for(let e=0;e<s;e++){const i=t[e],s=n.indexOf(i);if(s>-1){const i=1+C(t,n,e+1,s+1),a=this._splice(s,i);a&&a.length>0&&r.push.apply(r,a),e+=i-1}}return this._emitAfterChanges(2),r}reverse(){if((0,f.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=F(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let n=0;n<t;n++)if(e(this.items[n],this.items[n+1])>0)return!0;return!1}splice(e,t,...n){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const i=(t?2:0)|(n.length?1:0);if(this._emitBeforeChanges(i))return[];const r=this._splice(e,t,n)||[];return this._emitAfterChanges(i),r}toArray(){return(0,f.gc)(this._observable),this._items.slice()}toJSON(e){return(0,f.gc)(this._observable),this.toArray().map(t=>(0,b.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,f.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,f.gc)(this._observable),this._items.toString()}unshift(...e){return(0,f.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,n){const i=this._items,r=this.itemType;let s,a;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(a=i.splice(e,t),this.hasEventListener("before-remove")){const t=w.acquire();t.target=this,t.cancellable=!0;for(let n=0,r=a.length;n<r;n++)s=a[n],t.reset(s),this.emit("before-remove",t),t.defaultPrevented&&(a.splice(n,1),i.splice(e,0,s),e+=1,n-=1,r-=1);w.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=w.acquire();e.target=this,e.cancellable=!1;const t=a.length;for(let n=0;n<t;n++)e.reset(a[n]),this.emit("after-remove",e);w.release(e)}}if(n?.length){if(r){const e=[];for(const t of n){const n=r.ensureType(t);null==n&&null!=t||e.push(n)}n=e}const t=this.hasEventListener("before-add"),s=this.hasEventListener("after-add"),a=e===this.length;if(t||s){const r=w.acquire();r.target=this,r.cancellable=!0;const o=w.acquire();o.target=this,o.cancellable=!1;for(const l of n)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(a?i.push(l):i.splice(e++,0,l),this._length=i.length,s&&(o.reset(l),this.emit("after-add",o)))):(a?i.push(l):i.splice(e++,0,l),this._length=i.length,o.reset(l),this.emit("after-add",o));w.release(o),w.release(r)}else{if(a)for(const e of n)i.push(e);else i.splice(e,0,...n);this._length=i.length}}if((n?.length||a?.length)&&this._notifyChangeEvent(n,a),this.hasEventListener("after-splice")){const i=new M(this,n,a,e,t);this.emit("after-splice",i)}return a}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const n=w.acquire();n.target=this,n.cancellable=!0,n.type=e,this.emit("before-changes",n),t=n.defaultPrevented,w.release(n)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=w.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),w.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;I.clear(),z.clear(),V.clear();for(const{added:t,removed:n}of e){if(t)if(0===V.size&&0===z.size)for(const e of t)I.add(e);else for(const e of t)z.has(e)?(V.add(e),z.delete(e)):V.has(e)||I.add(e);if(n)if(0===V.size&&0===I.size)for(const e of n)z.add(e);else for(const e of n)I.has(e)?I.delete(e):(V.delete(e),z.add(e))}const n=s.A.acquire();I.forEach(e=>{n.push(e)});const i=s.A.acquire();z.forEach(e=>{i.push(e)});const r=this._items,a=t.items,o=s.A.acquire();if(V.forEach(e=>{a.indexOf(e)!==r.indexOf(e)&&o.push(e)}),t.listeners&&(n.length||i.length||o.length)){const e={target:this,added:n,removed:i,moved:o},r=t.listeners.length;for(let n=0;n<r;n++){const i=t.listeners[n];i.removed||i.callback.call(this,e)}}s.A.release(n),s.A.release(i),s.A.release(o)}I.clear(),z.clear(),V.clear()}};(0,r.Cg)([(0,g.MZ)()],k.prototype,"_updating",void 0),(0,r.Cg)([(0,g.MZ)()],k.prototype,"_length",void 0),(0,r.Cg)([(0,g.MZ)()],k.prototype,"length",null),(0,r.Cg)([(0,g.MZ)()],k.prototype,"items",null),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],k.prototype,"updating",null),k=i=(0,r.Cg)([(0,y.$)("esri.core.Collection")],k);const L=k;n.d(t,["A",0,L])},7695(e,t,n){function i(e){return(t,n)=>{t[n]=e}}n.d(t,{u:()=>i})},91829(e,t,n){function i(){return[0,0,0,0]}function r(e,t,n,i){return[e,t,n,i]}function s(){return r(1,1,1,1)}function a(){return r(1,0,0,0)}function o(){return r(0,1,0,0)}function l(){return r(0,0,1,0)}function u(){return r(0,0,0,1)}n.d(t,{_Y:()=>u,fA:()=>r,vt:()=>i});const c=[0,0,0,0],h=s(),d=a(),m=o(),f=l(),g=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:g,UNIT_X:d,UNIT_Y:m,UNIT_Z:f,ZEROS:c,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:i,freeze:function(e,t,n,i){return[e,t,n,i]},fromArray:function(e,t=[0,0,0,0]){const n=Math.min(4,e.length);for(let i=0;i<n;++i)t[i]=e[i];return t},fromValues:r,ones:s,unitW:u,unitX:a,unitY:o,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["Un",0,h,"uY",0,c])},78955(e,t,n){n.d(t,{Bw:()=>p,C:()=>r,Cc:()=>_,LI:()=>d,Om:()=>b,S8:()=>v,T9:()=>h,WQ:()=>a,Z0:()=>M,aI:()=>T,hG:()=>g,hZ:()=>s,hs:()=>m,jk:()=>c,m3:()=>y,t2:()=>w});var i=n(34304);function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function s(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function o(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function l(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function u(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function c(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e}function h(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e}function d(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function m(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function f(e,t){const n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2],s=t[3]-e[3];return Math.sqrt(n*n+i*i+r*r+s*s)}function g(e,t){const n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2],s=t[3]-e[3];return n*n+i*i+r*r+s*s}function p(e){const t=e[0],n=e[1],i=e[2],r=e[3];return Math.sqrt(t*t+n*n+i*i+r*r)}function y(e){const t=e[0],n=e[1],i=e[2],r=e[3];return t*t+n*n+i*i+r*r}function v(e,t){const n=t[0],i=t[1],r=t[2],s=t[3];let a=n*n+i*i+r*r+s*s;return a>0&&(a=1/Math.sqrt(a),e[0]=n*a,e[1]=i*a,e[2]=r*a,e[3]=s*a),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function _(e,t,n,i){const r=t[0],s=t[1],a=t[2],o=t[3];return e[0]=r+i*(n[0]-r),e[1]=s+i*(n[1]-s),e[2]=a+i*(n[2]-a),e[3]=o+i*(n[3]-o),e}function M(e,t,n){const i=t[0],r=t[1],s=t[2],a=t[3];return e[0]=n[0]*i+n[4]*r+n[8]*s+n[12]*a,e[1]=n[1]*i+n[5]*r+n[9]*s+n[13]*a,e[2]=n[2]*i+n[6]*r+n[10]*s+n[14]*a,e[3]=n[3]*i+n[7]*r+n[11]*s+n[15]*a,e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function T(e,t){const n=e[0],r=e[1],s=e[2],a=e[3],o=t[0],l=t[1],u=t[2],c=t[3],h=(0,i.FD)();return Math.abs(n-o)<=h*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-l)<=h*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(s-u)<=h*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(a-c)<=h*Math.max(1,Math.abs(a),Math.abs(c))}const x=o,F=l,C=u,S=f,I=g,z=p,V=y;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:r,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:S,distance:f,div:C,divide:u,dot:b,equals:T,exactEquals:w,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:z,length:p,lerp:_,max:h,min:c,mul:F,multiply:l,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:v,random:function(e,t=1){const n=i.Ov;let r,s,a,o,l,u;do{r=2*n()-1,s=2*n()-1,l=r*r+s*s}while(l>=1);do{a=2*n()-1,o=2*n()-1,u=a*a+o*o}while(u>=1);const c=Math.sqrt((1-l)/u);return e[0]=t*r,e[1]=t*s,e[2]=t*a*c,e[3]=t*o*c,e},round:d,scale:m,scaleAndAdd:function(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e[3]=t[3]+n[3]*i,e},set:s,sqrDist:I,sqrLen:V,squaredDistance:g,squaredLength:y,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:x,subtract:o,transformMat4:M,transformQuat:function(e,t,n){const i=t[0],r=t[1],s=t[2],a=n[0],o=n[1],l=n[2],u=n[3],c=u*i+o*s-l*r,h=u*r+l*i-a*s,d=u*s+a*r-o*i,m=-a*i-o*r-l*s;return e[0]=c*u+m*-a+h*-l-d*-o,e[1]=h*u+m*-o+d*-a-c*-l,e[2]=d*u+m*-l+c*-o-h*-a,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},90629(e,t,n){n.d(t,{Lz:()=>r,PN:()=>s,cr:()=>a,gs:()=>l,r_:()=>u,tc:()=>o}),n(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function a(e){if("string"==typeof e){const t=e.match(i);if(t){const n=Number(t[1]),i=t[3]&&t[3].toLowerCase(),r=e.startsWith("-"),a="px"===i?s(n):n;return r?-a:a}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function o(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function u(e=0,t=0,n=0){return[e,t,n]}},88930(e,t,n){n.d(t,{S1:()=>o,lL:()=>u,mi:()=>l,rb:()=>c,t:()=>h});var i=n(97770),r=(n(98623),n(92647));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,n,s="system"){if("unknown"===n)return e;const a=new r.oh((0,i.wj)(s)),o=r.c9.fromJSDate(e,{zone:a}),l="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),o.plus({[l]:t}).toJSDate()}function l(e,t,n="milliseconds"){const i=e.getTime(),r=h(t,n,"milliseconds");return new Date(i+r)}function u(e,t,n="system"){const{unit:s}=t,a=Math.max(1,Math.trunc(t.value)),o=new r.oh((0,i.wj)(n)),l=r.c9.fromJSDate(e,{zone:o}),u=e=>e-e%a;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*a,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function c(e){const t=s.exec(e);if(!t)return null;const{hh:n,mm:i,ss:r,ms:o}=t.groups;return Number(n)*a.hours+Number(i)*a.minutes+Number(r||0)*a.seconds+Number(o||0)}function h(e,t,n){return 0===e?0:e*a[t]/a[n]}},62577(e,t,n){function i(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function r(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:n,translate:i}=e,r=n[0]??1,s=n[1]??1;return{originPosition:"lowerLeft",scale:[r,"lowerLeft"===t?s:-s,n[2]??1,n[3]??1],translate:[i[0]??0,i[1]??0,i[2]??0,i[3]??0]}}function s({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function a({scale:e,translate:t},n){return Math.round((n-t[1])/e[1])}function o({scale:e,translate:t},n){return n*e[0]+t[0]}function l({scale:e,translate:t},n){return n*e[1]+t[1]}function u({scale:e,translate:t},n){return(n??0)*e[2]+t[2]}function c({scale:e,translate:t},n){return n?n*e[3]+t[3]:0}function h(e,t){return e&&t?g:e&&!t?m:!e&&t?f:d}n.d(t,{$X:()=>_,B2:()=>a,Gy:()=>y,IE:()=>s,P5:()=>M,Q1:()=>r,SW:()=>v,Tr:()=>b,VV:()=>i});const d=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const i=t[0];let r=o(e,i[0]),s=l(e,i[1]);n[0]=[r,s];const{scale:a,originPosition:u}=e,c=a[0],h="lowerLeft"===u?a[1]:-a[1];for(let e=1;e<t.length;e++){const[i,a]=t[e];r+=c*i,s+=h*a,n[e]=[r,s]}return n},m=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const i=t[0];let r=o(e,i[0]),s=l(e,i[1]);n[0]=[r,s,u(e,i[2])];const{scale:a,originPosition:c}=e,h=a[0],d="lowerLeft"===c?a[1]:-a[1];for(let i=1;i<t.length;i++){const[a,o,l]=t[i];r+=h*a,s+=d*o,n[i]=[r,s,u(e,l)]}return n},f=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const i=t[0];let r=o(e,i[0]),s=l(e,i[1]);n[0]=[r,s,c(e,i[2])];const{scale:a,originPosition:u}=e,h=a[0],d="lowerLeft"===u?a[1]:-a[1];for(let i=1;i<t.length;i++){const[a,o,l]=t[i];r+=h*a,s+=d*o,n[i]=[r,s,c(e,l)]}return n},g=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const i=t[0];let r=o(e,i[0]),s=l(e,i[1]);n[0]=[r,s,u(e,i[2]),c(e,i[3])];const{scale:a,originPosition:h}=e,d=a[0],m="lowerLeft"===h?a[1]:-a[1];for(let i=1;i<t.length;i++){const[a,o,l,h]=t[i];r+=d*a,s+=m*o,n[i]=[r,s,u(e,l),c(e,h)]}return n};function p(e,t,n){const i=new Array(n.length);for(let r=0;r<n.length;r++)i[r]=t(e,n[r]);return i}function y(e,t,n){const i=r(e);return t.x=s(i,n.x),t.y=a(i,n.y),null!=n.z&&(t.z=function({scale:e,translate:t},n){return Math.round(((n??0)-t[2])/e[2])}(i,n.z)),null!=n.m&&(t.m=function({scale:e,translate:t},n){return n?Math.round((n-t[3])/e[3]):0}(i,n.m)),t}function v(e,t,n,i=n?.hasZ??!1,s=n?.hasM??!1){if(null!=n){const a=r(e);t.points=h(i,s)(a,n.points),t.hasZ=i,t.hasM=s}return t}function b(e,t,n,i=null!=n?.z,s=null!=n?.m){if(null==n)return t;const a=r(e);return t.x=o(a,n.x),t.y=l(a,n.y),i&&(t.z=u(a,n.z)),s&&(t.m=c(a,n.m)),t}function _(e,t,n,i=n?.hasZ??!1,s=n?.hasM??!1){if(null!=n){const a=r(e);t.rings=p(a,h(i,s),n.rings),t.hasZ=i,t.hasM=s}return t}function M(e,t,n,i=n?.hasZ??!1,s=n?.hasM??!1){if(null!=n){const a=r(e);t.paths=p(a,h(i,s),n.paths),t.hasZ=i,t.hasM=s}return t}},97770(e,t,n){n.d(t,{Ey:()=>N,F8:()=>D,J2:()=>S,Yq:()=>z,_m:()=>I,iS:()=>V,wj:()=>k});var i=n(66552),r=n(73444),s=n(98623),a=n(92647);const o={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},g={...f,second:"numeric"},p={hourCycle:"h23"},y={...f,...p},v={...g,...p},b={"short-date":c,"short-date-short-time":{...c,...f},"short-date-short-time-24":{...c,...y},"short-date-long-time":{...c,...g},"short-date-long-time-24":{...c,...v},"short-date-le":c,"short-date-le-short-time":{...c,...f},"short-date-le-short-time-24":{...c,...y},"short-date-le-long-time":{...c,...g},"short-date-le-long-time-24":{...c,...v},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...f},"long-month-day-year-short-time-24":{...h,...y},"long-month-day-year-long-time":{...h,...g},"long-month-day-year-long-time-24":{...h,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...f},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...g},"day-short-month-year-long-time-24":{...d,...v},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...y},"long-date-long-time":{...m,...g},"long-date-long-time-24":{...m,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":g},_=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),M={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},w=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),T=w.find(({type:e})=>"month"===e)?.value.toLowerCase();function x(){const e=(0,r.lR)();return(e&&M[e])??(0,r.QC)()}"mart"!==T&&(M.bs="sr-Latn-CS");let F=new WeakMap;const C=b["short-date-short-time"];function S(e){return b[e]}function I(e){const{dateStyle:t,timeStyle:n,hour12:i,year:r,month:s}=e,a={};return t?a.dateStyle=t:r&&(a.year=r,a.month=s||void 0),n&&!a.year&&(a.timeStyle=n,a.hour12="auto"===i?void 0:"always"===i),a}function z(e,t=C){return function(e){let t=F.get(e);if(!t){const n=x(),i=k(e.timeZone??"system"),r={...e,timeZone:i};t=new Intl.DateTimeFormat(n,r),F.set(e,t)}return t}(t).format(e)}function V(e,t=C){return z(new Date(e),{...t,...u,...l})}function D(e,t=C){return z(new Date(`1970-01-01T${e}Z`),{...t,...u,...o})}function N(e,t=C){const n=a.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return z(n.toJSDate(),t);const i=0===n.offset?"UTC":t.timeZone,r={...t,timeZone:i};return n.toLocaleString(r,{locale:x()})}function k(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,r.Ml)(()=>{F=new WeakMap}),n.d(t,["_v",0,_])},73444(e,t,n){n.d(t,{JK:()=>l,Ml:()=>p,QC:()=>h,lR:()=>c,oQ:()=>f});var i=n(36563);let r;n(44208);const s=globalThis.esriConfig?.locale,a=globalThis.document?.documentElement;function o(){const e=a?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===r&&(r=o()),r}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(e=l()){return d(e)?.language}function h(e=l()){const t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return u.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,i.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const g=[];function p(e){return g.push(e),(0,i.hA)(()=>g.splice(g.indexOf(e),1))}function y(){const e=o();r!==e&&([...g].forEach(t=>t(e)),r=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),a&&new MutationObserver(()=>{y()}).observe(a,{attributeFilter:["lang"]})},95466(e,t,n){n.d(t,{A:()=>u});var i=n(49186),r=n(53966),s=n(12195),a=n(30524),o=n(98623),l=n(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],h(e))}static fromLayerJSON(e){return new u(e.fields??[],h(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,i=(0,a.GZ)(t);if(t&&i){const r=(0,a.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,a.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):c.has(t.type)?o.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const c=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function h(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",h=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,d=r?function(e){return"timeZone"in e}(r)?r.timeZone??h:r.dateFieldsTimeReference?(0,l.ZS)(r.dateFieldsTimeReference):h??"UTC":null,m=i?function(e){return"timeZone"in e}(i)?i.timeZone??h:i.timeReference?(0,l.ZS)(i.timeReference):h:null,f=new Map([[(0,a.NF)(r?.creationDateField??""),d],[(0,a.NF)(r?.editDateField??""),d],[(0,a.NF)(s),m],[(0,a.NF)(u),m]]);for(const{name:i,type:r}of e.fields)if(c.has(r))t.set(i,o.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,o.L);else{const e=f.get((0,a.NF)(i??""))??h;t.set(i,e)}return t}},61760(e,t,n){n.d(t,{PU:()=>s,YW:()=>o,hv:()=>a,zp:()=>r}),n(34727);var i=n(90629);function r(e){return(0,i.PN)(2.4*e)}function s(e){return(0,i.Lz)(e)/2.4}function a(e,t,n){const i=Math.sqrt(e**2+t**2)/n;return i>1?0:3/(Math.PI*n**2)*(1-i**2)**2}function o(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}n(78955),n(91829)},9760(e,t,n){n.d(t,{A:()=>c});var i=n(5482),r=n(66552),s=n(25482),a=n(91429),o=n(93223);const l=new r.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new r.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let c=class extends s.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,i.Cg)([(0,o.e)({classBreaksDef:"class-breaks-definition"})],c.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"breakCount",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"classificationField",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:l.read,write:l.write}})],c.prototype,"classificationMethod",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"normalizationField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"normalizationType",void 0),(0,i.Cg)([(0,a.MZ)({value:null,json:{write:!0}})],c.prototype,"standardDeviationInterval",null),(0,i.Cg)([(0,a.MZ)({value:null,json:{write:!0}})],c.prototype,"definedInterval",null),c=(0,i.Cg)([(0,a.$K)("esri.rest.support.ClassBreaksDefinition")],c)},84892(e,t,n){n.d(t,{t:()=>s});var i=n(53966);function r(e,t){return Number(e.toFixed(t))}function s(e,t){const{normalizationTotal:n}=e;return{classBreaks:a(e,t),normalizationTotal:n}}function a(e,t){const n=e.definition,{classificationMethod:i,normalizationType:s,definedInterval:a}=n,u=n.breakCount??1,c=[];let h=e.values;if(0===h.length)return[];h=h.sort((e,t)=>e-t);const[d,m]=t??[h.at(0),h.at(-1)];if("equal-interval"===i)if(h.length>=u){const e=(m-d)/u;let t=d;for(let n=1;n<u;n++){const i=r(d+n*e,6);c.push({minValue:t,maxValue:i,label:o(t,i,s)}),t=i}c.push({minValue:t,maxValue:m,label:o(t,m,s)})}else h.forEach(e=>{c.push({minValue:e,maxValue:e,label:o(e,e,s)})});else if("natural-breaks"===i){const t=function(e){const t=[],n=[];let i=Number.MIN_VALUE,r=1,s=-1;for(let a=0;a<e.length;a++){const o=e[a];o===i?(r++,n[s]=r):null!==o&&(t.push(o),i=o,r=1,n.push(r),s++)}return{uniqueValues:t,valueFrequency:n}}(h),n=e.valueFrequency||t.valueFrequency,i=l(t.uniqueValues,n,u);let a=d;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){const n=r(t.uniqueValues[i[e]],6);c.push({minValue:a,maxValue:n,label:o(a,n,s)}),a=n}c.push({minValue:a,maxValue:m,label:o(a,m,s)})}else if("quantile"===i)if(h.length>=u&&d!==m){let e=d,t=Math.ceil(h.length/u),n=0;for(let i=1;i<u;i++){let r=t+n-1;r>h.length&&(r=h.length-1),r<0&&(r=0),c.push({minValue:e,maxValue:h[r],label:o(e,h[r],s)}),e=h[r],n+=t,t=Math.ceil((h.length-n)/(u-i))}c.push({minValue:e,maxValue:m,label:o(e,m,s)})}else{let e=-1;for(let t=0;t<h.length;t++){const n=h[t];n!==e&&(e=n,c.push({minValue:e,maxValue:n,label:o(e,n,s)}),e=n)}}else if("standard-deviation"===i){const e=function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/=e.length,t}(h),t=function(e,t){let n=0;for(let i=0;i<e.length;i++){const r=e[i];n+=(r-t)*(r-t)}return n/=e.length,Math.sqrt(n)}(h,e);if(0===t)c.push({minValue:h[0],maxValue:h[0],label:o(h[0],h[0],s)});else{const n=function(e,t,n,i,r){let s=Math.max(i-e,t-i)/r/n;return s=s>=1?1:s>=.5?.5:.25,s}(d,m,u,e,t)*t;let i=0,a=d;for(let t=u;t>=1;t--){const l=r(e-(t-.5)*n,6);c.push({minValue:a,maxValue:l,label:o(a,l,s)}),a=l,i++}let l=r(e+.5*n,6);c.push({minValue:a,maxValue:l,label:o(a,l,s)}),a=l,i++;for(let t=1;t<=u;t++)l=i===2*u?m:r(e+(t+.5)*n,6),c.push({minValue:a,maxValue:l,label:o(a,l,s)}),a=l,i++}}else if("defined-interval"===i){if(!a)return c;const[e,n]=t??[h.at(0),h.at(-1)],i=Math.ceil((n-e)/a);let l=e;for(let t=1;t<i;t++){const n=r(e+t*a,6);c.push({minValue:l,maxValue:n,label:o(l,n,s)}),l=n}c.push({minValue:l,maxValue:n,label:o(l,n,s)})}return c}function o(e,t,n){let i=null;return i=e===t?n&&"percent-of-total"===n?e+"%":e.toString():n&&"percent-of-total"===n?e+"% - "+t+"%":e+" - "+t,i}function l(e,t,n){const i=e.length,r=[];n>i&&(n=i);for(let e=0;e<n;e++)r.push(Math.round(e*i/n-1));r.push(i-1);let s=u(r,e,t,n);return function(e,t,n,i,r,s){let a=0,o=0,l=0,u=0,h=!0;for(let d=0;d<2&&h;d++){0===d&&(h=!1);for(let d=0;d<s-1;d++)for(;n[d+1]+1!==n[d+2];){n[d+1]=n[d+1]+1;const s=c(d,n,i,r);l=s.sbMean,a=s.sbSdcm;const m=c(d+1,n,i,r);if(u=m.sbMean,o=m.sbSdcm,!(a+o<t[d]+t[d+1])){n[d+1]=n[d+1]-1;break}t[d]=a,t[d+1]=o,e[d]=l,e[d+1]=u,h=!0}for(let d=s-1;d>0;d--)for(;n[d]!==n[d-1]+1;){n[d]=n[d]-1;const s=c(d-1,n,i,r);l=s.sbMean,a=s.sbSdcm;const m=c(d,n,i,r);if(u=m.sbMean,o=m.sbSdcm,!(a+o<t[d-1]+t[d])){n[d]=n[d]+1;break}t[d-1]=a,t[d]=o,e[d-1]=l,e[d]=u,h=!0}}return h}(s.mean,s.sdcm,r,e,t,n)&&(s=u(r,e,t,n)),r}function u(e,t,n,i){let r=[],s=[],a=[],o=0;const l=[],u=[];for(let r=0;r<i;r++){const i=c(r,e,t,n);l.push(i.sbMean),u.push(i.sbSdcm),o+=u[r]}let h,d=o,m=!0;for(;m||o<d;){m=!1,r=[];for(let t=0;t<i;t++)r.push(e[t]);for(let n=0;n<i;n++)for(let r=e[n]+1;r<=e[n+1];r++)if(h=t[r],n>0&&r!==e[n+1]&&Math.abs(h-l[n])>Math.abs(h-l[n-1]))e[n]=r;else if(n<i-1&&e[n]!==r-1&&Math.abs(h-l[n])>Math.abs(h-l[n+1])){e[n+1]=r-1;break}d=o,o=0,s=[],a=[];for(let r=0;r<i;r++){s.push(l[r]),a.push(u[r]);const i=c(r,e,t,n);l[r]=i.sbMean,u[r]=i.sbSdcm,o+=u[r]}}if(o>d){for(let t=0;t<i;t++)e[t]=r[t],l[t]=s[t],u[t]=a[t];o=d}return{mean:l,sdcm:u}}function c(e,t,n,r){let s=0,a=0;for(let i=t[e]+1;i<=t[e+1];i++){const e=r[i];s+=n[i]*e,a+=e}a<=0&&i.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");const o=s/a;let l=0;for(let i=t[e]+1;i<=t[e+1];i++)l+=r[i]*(n[i]-o)**2;return{sbMean:o,sbSdcm:l}}},26412(e,t,n){n.r(t),n.d(t,{classBreaks:()=>b,heatmapStatistics:()=>M,histogram:()=>_,summaryStatistics:()=>y,uniqueValues:()=>v}),n(49186);var i=n(90629),r=n(88930),s=n(86738),a=n(16930),o=n(62577),l=n(21325),u=n(95466),c=n(30524),h=n(61760),d=n(4560),m=n(1873),f=n(43668);let g;async function p(e,t,n=!0){if(!t)return[];const{field:i,field2:s,field3:o,fieldDelimiter:l,sqlExpression:h,fieldInfos:p,timeZone:y}=e,v=i&&p?.find(e=>e.name.toLowerCase()===i.toLowerCase()),b=!!v&&(0,c.OH)(v),_=!!v&&(0,d.fs)(v),M=e.valueExpression,w=e.normalizationType,T=e.normalizationField,x=e.normalizationTotal,F=[],C=e.viewInfoParams;let S,I=null;if(M){if(!g){const{arcadeUtils:e}=await(0,f.l)();g=e}g.hasGeometryOperations(M)&&await g.enableGeometryOperations(),I=g.createFunction(M),S=C?g.getViewInfo({viewingMode:C.viewingMode,scale:C.scale,spatialReference:new a.A(C.spatialReference)}):null}const z=e.fieldInfos,V=t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass||!z?null:{fields:z};for await(const e of t){const t=e.attributes;let a;if(h){const t=await(0,d.j4)(h,new u.A(z));t&&(a=t.calculateValue(e.attributes))}else if(M){const t=V?Object.assign({},e,{layer:V}):e,n=g.createExecContext(t,S,y);a=g.executeFunction(I,n)}else t&&(a=t[i],s?(a=`${(0,m.gJ)(a)}${l}${(0,m.gJ)(t[s])}`,o&&(a=`${a}${l}${(0,m.gJ)(t[o])}`)):"string"==typeof a&&n&&(_?a=a?new Date(a).getTime():null:b&&(a=a?(0,r.rb)(a):null)));if(w&&"number"==typeof a&&isFinite(a)){const e=t&&parseFloat(t[T]);a=(0,m.zS)(a,w,e,x)}F.push(a)}return F}async function y(e){const{attribute:t,features:n}=e,{normalizationType:i,normalizationField:r,minValue:s,maxValue:a,fieldType:o,outStatisticTypes:l}=t,u=await p({field:t.field,valueExpression:t.valueExpression,normalizationType:i,normalizationField:r,normalizationTotal:t.normalizationTotal,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n),c=(0,m.Vb)({normalizationType:i,normalizationField:r,minValue:s,maxValue:a}),h={value:.5,fieldType:o},d="esriFieldTypeString"===o?(0,m.z9)({values:u,supportsNullCount:c,percentileParams:h,outStatisticTypes:l}):(0,m.G_)({values:u,minValue:s,maxValue:a,useSampleStdDev:!i,supportsNullCount:c,percentileParams:h,outStatisticTypes:l});return(0,m.oZ)(d,l,"esriFieldTypeDate"===o)}async function v(e){const{attribute:t,features:n}=e,i=await p({field:t.field,field2:t.field2,field3:t.field3,fieldDelimiter:t.fieldDelimiter,valueExpression:t.valueExpression,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n,!1),r=(0,m.b3)(i);return(0,m.lv)(r,t.domains,t.returnAllCodedValues,t.fieldDelimiter)}async function b(e){const{attribute:t,features:n}=e,{field:i,normalizationType:r,normalizationField:s,normalizationTotal:a,classificationMethod:o}=t,l=await p({field:i,valueExpression:t.valueExpression,normalizationType:r,normalizationField:s,normalizationTotal:a,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n),u=(0,m.Rw)(l,{field:i,normalizationType:r,normalizationField:s,normalizationTotal:a,classificationMethod:o,standardDeviationInterval:t.standardDeviationInterval,numClasses:t.numClasses,minValue:t.minValue,maxValue:t.maxValue});return(0,m.jM)(u,o)}async function _(e){const{attribute:t,features:n}=e,{field:i,normalizationType:r,normalizationField:s,normalizationTotal:a,classificationMethod:o}=t,l=await p({field:i,valueExpression:t.valueExpression,sqlExpression:t.sqlExpression,normalizationType:r,normalizationField:s,normalizationTotal:a,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n);return(0,m.$y)(l,{field:i,normalizationType:r,normalizationField:s,normalizationTotal:a,classificationMethod:o,standardDeviationInterval:t.standardDeviationInterval,numBins:t.numBins,minValue:t.minValue,maxValue:t.maxValue})}async function M(e){const{attribute:t,features:n}=e,{field:r,radius:a,transform:u,spatialReference:c}=t,d=t.size??[0,0],m=function(e,t,n,i){const r=(0,l.d9)(n)?(0,l.Vp)(n):null,a=r?Math.round((r.valid[1]-r.valid[0])/t.scale[0]):null;return e.map(e=>{const n=new s.A(e.geometry);return(0,o.Gy)(t,n,n),e.geometry=r?function(e,t,n){return e.x<0?e.x+=t:e.x>n&&(e.x-=t),e}(n,a??0,i[0]):n,e})}(n??[],u,c,d);return function(e,t=18,n,r,s){const a=new Float64Array(r*s);t=Math.round((0,i.Lz)(t));let o=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY;const u=(0,h.YW)(n);for(const{geometry:n,attributes:i}of e){const{x:e,y:c}=n,d=Math.max(0,e-t),m=Math.max(0,c-t),f=Math.min(s,c+t),g=Math.min(r,e+t),p=+u(i);for(let n=m;n<f;n++)for(let i=d;i<g;i++){const s=n*r+i,u=(0,h.hv)(i-e,n-c,t)*p,d=a[s]+=u;o=Math.min(o,d),l=Math.max(l,d)}}return{min:o,max:l}}(m,a??void 0,r,d[0],d[1])}},1873(e,t,n){n.d(t,{$y:()=>L,Ak:()=>q,FM:()=>f,G_:()=>d,Rw:()=>N,Vb:()=>c,b3:()=>I,gJ:()=>u,jM:()=>k,lv:()=>V,oZ:()=>S,qg:()=>m,sU:()=>A,z9:()=>h,zS:()=>D});var i=n(9760),r=n(84892);const s=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,a=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),o=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),l=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function c(e){const t=null!=e.normalizationField||null!=e.normalizationType,n=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!n&&!i}function h(e){const{outStatisticTypes:t}=e,n=e.returnDistinct?[...new Set(e.values)]:e.values,i=n.filter(e=>null!=e).sort(),r=i.length,s={count:r,min:i[0],max:i[r-1]};return e.supportsNullCount&&(s.nullcount=n.length-r),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(s.median=m(n,e.percentileParams)),s}function d(e){const{values:t,useSampleStdDev:n,supportsNullCount:i,outStatisticTypes:r}=e;let s=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,o=null,l=null,u=null,c=null,h=0;const d=null==e.minValue?-1/0:e.minValue,f=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=d&&e<=f&&(o=null===o?e:o+e,s=Math.min(s,e),a=Math.max(a,e),h++):"string"==typeof e&&h++;if(h&&null!=o){l=o/h;let e=0;for(const n of t)Number.isFinite(n)&&n>=d&&n<=f&&(e+=(n-l)**2);c=n?h>1?e/(h-1):0:h>0?e/h:0,u=Math.sqrt(c)}else s=null,a=null;const g={avg:l,count:h,max:a,min:s,stddev:u,sum:o,variance:c};return i&&(g.nullcount=t.length-h),!e.percentileParams||r?.include?.length&&!r.include.includes("median")||r?.exclude?.length&&r.exclude.includes("median")||(g.median=m(t,e.percentileParams)),g}function m(e,t){const{fieldType:n,value:i,orderBy:r,isDiscrete:s}=t,a=f(n,"desc"===r,"case-insensitive");if(0===(e=[...e].filter(e=>null!=e).sort((e,t)=>a(e,t))).length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];const o=(e.length-1)*i,l=Math.floor(o),u=l+1,c=o%1,h=e[l],d=e[u];return u>=e.length||s||"string"==typeof h||"string"==typeof d?h:h*(1-c)+d*c}function f(e,t,n="case-sensitive"){if(e){if(a.has(e))return F(t);if(o.has(e))return w(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?b:v}(t);const i=w(t,"case-sensitive"===n);if("esriFieldTypeString"===e)return i;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>i(C(e),C(t))}const i=t?1:-1,r=F(t),s=w(t,"case-sensitive"===n),l=y(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?r(e,t):"string"==typeof e&&"string"==typeof t?s(e,t):l(e,t)??i}const g=(e,t)=>null==e?null==t?0:1:null==t?-1:null,p=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function y(e){return e?g:p}const v=(e,t)=>p(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),b=(e,t)=>g(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),_=(e,t)=>p(e,t)??(e===t?0:e<t?-1:1),M=(e,t)=>g(e,t)??(e===t?0:e<t?1:-1);function w(e,t){if(t)return e?M:_;const n=y(e);return e?(e,t)=>{const i=n(e,t);return null!=i?i:(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0}:(e,t)=>{const i=n(e,t);return null!=i?i:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}}const T=(e,t)=>g(e,t)??t-e,x=(e,t)=>p(e,t)??e-t;function F(e){return e?T:x}function C(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function S(e,t,n){let i;for(i in e)t?.include?.length&&!t.include.includes(i)||t?.exclude?.length&&t.exclude.includes(i)?delete e[i]:l.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return n?(["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e):e}function I(e){const t={};for(let n of e)(null==n||"string"==typeof n&&""===n.trim())&&(n=null),null==t[n]?t[n]={count:1,data:n}:t[n].count++;return{count:t}}function z(e){return"coded-value"!==e?.type?[]:e.codedValues.map(e=>e.code)}function V(e,t,n,i){const r=e.count,s=[];if(n&&t){const e=[],n=z(t[0]);for(const r of n)if(t[1]){const n=z(t[1]);for(const s of n)if(t[2]){const n=z(t[2]);for(const t of n)e.push(`${u(r)}${i}${u(s)}${i}${u(t)}`)}else e.push(`${u(r)}${i}${u(s)}`)}else e.push(r);for(const t of e)r.hasOwnProperty(t)||(r[t]={data:t,count:0})}for(const e in r){const t=r[e];s.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:s}}function D(e,t,n,i){let r=null;switch(t){case"log":0!==e&&(r=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(r=e/i*100);break;case"field":Number.isFinite(n)&&0!==n&&(r=e/n);break;case"natural-log":e>0&&(r=Math.log(e));break;case"square-root":e>0&&(r=e**.5)}return r}function N(e,t,n){const s=function(e){const{breakCount:t,field:n,normalizationField:r,normalizationType:s}=e,a=e.classificationMethod||"equal-interval",o="standard-deviation"===a?e.standardDeviationInterval||1:void 0,l="defined-interval"===a?e.definedInterval:void 0;return new i.A({breakCount:t,classificationField:n,classificationMethod:a,normalizationField:"field"===s?r:void 0,normalizationType:s,standardDeviationInterval:o,definedInterval:l})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,n){const i=t??-1/0,r=n??1/0;return e.filter(e=>Number.isFinite(e)&&e>=i&&e<=r)}(e,t.minValue,t.maxValue),(0,r.t)({definition:s,values:e,normalizationTotal:t.normalizationTotal},n)}function k(e,t){let n=e.classBreaks;const i=n.length,r=n[0]?.minValue,a=n[i-1]?.maxValue,o="standard-deviation"===t,l=s;return n=n.map(e=>{const t=e.label,n={minValue:e.minValue,maxValue:e.maxValue,label:t};if(o&&t){const e=t.match(l),i=e?.map(e=>+e.trim())??[];2===i.length?(n.minStdDev=i[0],n.maxStdDev=i[1],i[0]<0&&i[1]>0&&(n.hasAvg=!0)):1===i.length&&(t.includes("<")?(n.minStdDev=null,n.maxStdDev=i[0]):t.includes(">")&&(n.minStdDev=i[0],n.maxStdDev=null))}return n}),{minValue:r,maxValue:a,classBreakInfos:n,normalizationTotal:e.normalizationTotal}}function L(e,t){const n=A(e,t);if(null==n.min&&null==n.max)return{bins:[],minValue:n.min,maxValue:n.max,normalizationTotal:t.normalizationTotal};const i=n.intervals,r=n.min??0,s=n.max??0,a=i.map((e,t)=>({minValue:i[t][0],maxValue:i[t][1],count:0}));for(const t of e)if(null!=t&&t>=r&&t<=s){const e=q(i,t);e>-1&&a[e].count++}return{bins:a,minValue:r,maxValue:s,normalizationTotal:t.normalizationTotal}}function A(e,t,n=!1){const{field:i,classificationMethod:r,standardDeviationInterval:s,definedInterval:a,normalizationType:o,normalizationField:l,normalizationTotal:u,minValue:h,maxValue:m}=t,f=t.numBins||10;let g=null,p=null,y=null;if(r&&"equal-interval"!==r||o){const{classBreaks:t}=N(e,{field:i,normalizationType:o,normalizationField:l,normalizationTotal:u,classificationMethod:r,standardDeviationInterval:s,definedInterval:a,minValue:h,maxValue:m,numClasses:f},null!=h&&null!=m?[h,m]:void 0);g=t[0]?.minValue,p=t[t.length-1]?.maxValue,y=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=h&&null!=m)g=h,p=m;else{const t=d({values:e,minValue:h,maxValue:m,useSampleStdDev:!o,supportsNullCount:c({normalizationType:o,normalizationField:l,minValue:h,maxValue:m})});g=t.min??null,p=t.max??null}y=function(e,t,n){const i=(t-e)/n,r=[];let s,a=e;for(let e=1;e<=n;e++)s=a+i,s=Number(s.toFixed(16)),r.push([a,e===n?t:s]),a=s;return r}(g??0,p??0,f)}if(n&&y.length){const e=y.at(-1)[1];y.push([e,e])}return{min:g,max:p,intervals:y}}function q(e,t){let n=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){n=i;break}return n}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[893],{69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>i,lM:()=>r});var s=n(34275);function r(e){if(!e)return 0;let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=l;for(let s=0;s<t;s++)n+=o(e[s]);return n}(e);let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?i(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+f:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return l+e.length*t}const c=32,l=16,f=145},51624(e,t,n){n.d(t,{A:()=>c});var s=n(44208),r=n(69397),i=n(93687);const o=4294967296,a=new TextDecoder("utf-8"),u=(0,s.A)("safari")||(0,s.A)("ios")?6:(0,s.A)("ff")?12:32;class c{constructor(e,t,n=0,s=e?.byteLength??0){this._tag=0,this._dataType=99,this._init(e,t,n,s)}[Symbol.dispose](){this.release()}_init(e,t,n,s){this._data=e,this._dataView=t,this._pos=n,this._end=s}get usedMemory(){return 64+(0,r.Qf)(this._data)}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}clonePooled(){return c.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(e,t,n=0,s=e?.byteLength??0){const r=c.pool.acquire();return r._init(e,t,n,s),r}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getPackedEnd(){const e=this.getUInt32();return this._pos+e}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),n}getSFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),n}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,n=this._toString(this._data,t,t+e);return this._skip(e),n}getBytes(){const e=this._getLength(),t=this._pos,n=this._toBytes(this._data,t,t+e);return this._skip(e),n}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,n,s){const r=this.getMessage(),i=e(r,t,n,s);return r.release(),i}processMessage(e){const t=this.getMessage(),n=e(t);return t.release(),n}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,n=0,s=0;if(this._end-t>=10)do{if(s=e[t++],n|=127&s,!(128&s))break;if(s=e[t++],n|=(127&s)<<7,!(128&s))break;if(s=e[t++],n|=(127&s)<<14,!(128&s))break;if(s=e[t++],n|=(127&s)<<21,!(128&s))break;if(s=e[t++],n+=268435456*(127&s),!(128&s))break;if(s=e[t++],n+=34359738368*(127&s),!(128&s))break;if(s=e[t++],n+=4398046511104*(127&s),!(128&s))break;if(s=e[t++],n+=562949953421312*(127&s),!(128&s))break;if(s=e[t++],n+=72057594037927940*(127&s),!(128&s))break;if(s=e[t++],n+=0x8000000000000000*(127&s),!(128&s))break;throw new Error("Varint too long!")}while(0);else{let r=1;for(;t!==this._end&&(s=e[t],128&s);)++t,n+=(127&s)*r,r*=128;if(t===this._end)throw new Error("Varint overrun!");++t,n+=s*r}return this._pos=t,n}_decodeSVarint(){const e=this._data;let t,n=0,s=0;const r=1&e[this._pos];if(s=e[this._pos++],n|=127&s,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n|=(127&s)<<7,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n|=(127&s)<<14,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n|=(127&s)<<21,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n+=268435456*(127&s),!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n+=34359738368*(127&s),!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n+=4398046511104*(127&s),!(128&s))return r?-(n+1)/2:n/2;if(t=BigInt(n),s=e[this._pos++],t+=0x2000000000000n*BigInt(127&s),!(128&s))return Number(r?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x100000000000000n*BigInt(127&s),!(128&s))return Number(r?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x8000000000000000n*BigInt(127&s),!(128&s))return Number(r?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,n){if((n=Math.min(this._end,n))-t>u){const s=e.subarray(t,n);return a.decode(s)}let s="",r="";for(let i=t;i<n;++i){const t=e[i];128&t?r+="%"+t.toString(16):(s+=decodeURIComponent(r)+String.fromCharCode(t),r="")}return r.length&&(s+=decodeURIComponent(r)),s}_toBytes(e,t,n){return n=Math.min(this._end,n),new Uint8Array(e.buffer,t,n-t)}static{this.pool=new i.A(()=>new c(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},62815(e,t,n){n.d(t,{N:()=>a,d:()=>u});var s=n(86211),r=n(73941),i=n(21325),o=n(52006);function a(e,t,n){const s=u(t,n);if(1!==s)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,s);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,s);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,s);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,s);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,s);default:return}}function u(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,s.G9)(e)/(0,s.G9)(t)}},10536(e,t,n){function s(e){const t={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){t[n]=[];for(let e=0;e<r.length;e++)t[n][e]=s(r[e])}else"object"==typeof r?r.toJSON&&(t[n]=JSON.stringify(r)):t[n]=r}return t}n.d(t,{z:()=>s})},53655(e,t,n){n.d(t,{SH:()=>v,ae:()=>E,cn:()=>d});var s=n(5482),r=n(49186),i=n(51624),o=n(50498);const a=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],u=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],c=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],l=["upperLeft","lowerLeft"];function f(e,t){const n=e.getEnum();return n<t.length?t[n]:void 0}function g(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?o.gy.fromJSON(t):t}function p(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?o.gy.toJSON(t):t}function h(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function d(e){const t=e.asUnsafe(),n={type:u[0]};for(;t.next();)switch(t.tag()){case 1:n.name=t.getString();break;case 2:n.type=f(t,u);break;case 3:n.alias=t.getString();break;case 4:n.sqlType=f(t,c);break;case 5:default:t.skip();break;case 6:n.defaultValue=t.getString()}return n}function y(e){const t={},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.name=n.getString();break;case 2:t.isSystemMaintained=n.getBool();break;default:n.skip()}return t}let m=[];function _(e,t,n){let s=p(t),r=0;const i=e.asUnsafe();for(;i.next();)switch(i.tag()){case 1:1===n?s=p(t,f(i,a)):i.skip();continue;case 2:for(const e=i.getPackedEnd();i.pos()<e;)m[r++]=i.getUInt32();continue;case 3:r>0?(m.length=r,null!=t.geometry(n,s,m)&&(m=[])):t.geometry(n,s,[]);for(const e=i.getPackedEnd();i.pos()<e;)t.coord(i.getSInt64());continue;default:i.skip()}}function S(e,t){const n=[],s=e.asUnsafe();for(;s.next();)if(3!==s.tag())s.skip();else for(const e=s.getPackedEnd();s.pos()<e;)n.push(s.getSInt64());t.centroid(n)}let b=[],k=[],w=[];function T(e,t){const n={stack:[],error:void 0,hasError:!1};try{let r=0;const i=m;let o=0;const a=e.asUnsafe(),u=(0,s.mS)(n,a.clonePooled().asUnsafe(),!1);for(;a.next();)switch(a.tag()){case 2:for(const c=a.getPackedEnd();a.pos()<c;)i[r++]=a.getUInt32();continue;case 3:if(!("curvedGeometry"in t))throw new Error(`Tried to parse curved geometry in a ${t.constructor.name}, which doesn't support them.`);a.processMessageWithArgs(I,o++);continue;case 4:{const l=a.getUInt32(),f=a.pos()+l;if(0===o||0===r||0===l){a.move(f);continue}i.length=r,w.length=k.length=o,t.curvedGeometry(p(t),i,k,w);const{hasZ:g,hasM:h}=t.featureSet,d=[],y=[0,0];function _(){for(let e=0;e<y.length;++e)d[e]=y[e],y[e]=a.getSInt64()}g&&y.push(0),h&&y.push(0);const S=[0,0],T=[0,0],x=S,q=S;let F=0;for(let E=0;E<r;++E){_(),d.fill(0),t.startCurvedPart(y);for(const O=F+i[E];F<O;++F){const U=k[F],P=w[F];switch(U){case 0:for(let V=0;V<P;++V)_(),y[0]+=d[0],y[1]+=d[1],t.lineSegment(d,y);continue;case 1:for(let v=0;v<P;++v)_(),x[0]=a.getSInt64(),x[1]=a.getSInt64(),t.circularArcSegment(d,y,x);continue;case 2:for(let D=0;D<P;++D)_(),S[0]=a.getSInt64(),S[1]=a.getSInt64(),T[0]=a.getSInt64(),T[1]=a.getSInt64(),t.bezierSegment(d,y,S,T);continue;case 3:if(u.move(b[F]),u.getUInt32()<7*P)throw new Error("Not implemented: compressed full circle encoding");for(let A=0;A<P;++A){_(),q[0]=u.getDouble(),q[1]=u.getDouble();const M=u.getDouble(),N=u.getDouble(),G=u.getDouble(),R=u.getDouble(),B=u.getDouble();t.ellipticArcSegment(d,y,q,M,N,G,R,B)}continue}}t.finishCurvedPart(y)}continue}default:a.skip()}}catch(j){n.error=j,n.hasError=!0}finally{(0,s.hk)(n)}}function I(e,t){const n=e.asUnsafe();let s=0,r=0,i=0;for(;n.next();)switch(n.tag()){case 1:s=n.getEnum();continue;case 2:r=n.getUInt32();continue;case 3:i=n.pos(),n.skip();continue;default:n.skip()}if(3===s&&0===i)throw new Error("An elliptic arc segment set did not include a parameters array");k[t]=s,w[t]=r,b[t]=i}function x(e,t){t.feature();const n=t.featureSet.features.at(-1);let s=0;const{fields:r}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==r)throw new Error("A Feature had attributes but the FeatureResult didn't include any fields");n.attributes[r[s++].name]=e.processMessage(h);continue;case 2:e.processMessageWithArgs(_,t,0);continue;case 4:e.processMessageWithArgs(S,t);continue;case 7:e.processMessageWithArgs(T,t);continue;case 11:n.distance=e.getDouble();continue;default:e.skip();continue}t.finishFeature?.()}function q(e){const t=[1,1,1,1],n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t[0]=n.getDouble();break;case 2:t[1]=n.getDouble();break;case 4:t[2]=n.getDouble();break;case 3:t[3]=n.getDouble();break;default:n.skip()}return t}function F(e){const t=[0,0,0,0],n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t[0]=n.getDouble();break;case 2:t[1]=n.getDouble();break;case 4:t[2]=n.getDouble();break;case 3:t[3]=n.getDouble();break;default:n.skip()}return t}function E(e){const t={originPosition:l[0]},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.originPosition=f(n,l);break;case 2:t.scale=n.processMessage(q);break;case 3:t.translate=n.processMessage(F);break;default:n.skip()}return t}function O(e){const t={},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.shapeAreaFieldName=n.getString();break;case 2:t.shapeLengthFieldName=n.getString();break;case 3:t.units=n.getString();break;default:n.skip()}return t}function U(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function P(e,t){const n=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){const e=t.parseOnly.indices.values();let s=0,r=e.next().value;for(;n.next();)15===n.tag()&&s++===r?(r=e.next().value,n.processMessageWithArgs(x,t)):n.skip();return}let s=!1;for("metadata"===t.parseOnly?.type&&(s=!0,t.parseOnly.featureCount=0),g(t,"esriGeometryPoint");n.next();)switch(n.tag()){case 1:t.idField(n.getString());continue;case 3:t.featureSet.globalIdFieldName=n.getString();continue;case 4:t.featureSet.geohashFieldName=n.getString();continue;case 5:t.featureSet.geometryProperties=n.processMessage(O);continue;case 7:g(t,f(n,a));continue;case 8:t.featureSet.spatialReference=n.processMessageWithArgs(U);continue;case 10:t.featureSet.hasZ=n.getBool();continue;case 11:t.featureSet.hasM=n.getBool();continue;case 12:t.featureSet.transform=n.processMessage(E);continue;case 9:t.featureSet.exceededTransferLimit=n.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(n.processMessage(d));continue;case 15:if(s){++t.parseOnly.featureCount,n.skip();continue}n.processMessageWithArgs(x,t);continue;case 2:t.idField(n.processMessage(y));continue;default:n.skip()}}function V(e,t,n){let s=-1;for(;e.next();)switch(e.tag()){case 4:s=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(P,t);continue;default:e.skip()}if(-1!==s){if(!t.queryGeometry()){const n=e.pos();e.move(s),e.processMessageWithArgs(_,t,1),e.move(n)}n.queryGeometryType=t.queryGeometryType(),n.queryGeometry=t.queryGeometry()}t.finish(),n.featureResult=t.featureSet}function v(e,t){const n={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(n,{[Symbol.dispose](){m=[],b=[],k=[],w=[]}},!1);try{const n={stack:[],error:void 0,hasError:!1};try{const r=(0,s.mS)(n,i.A.constructPooled(new Uint8Array(e),new DataView(e)),!1);let o;for(;r.next();)2===r.tag()?(o={},r.processMessageWithArgs(V,t,o)):r.skip();return o}catch(e){n.error=e,n.hasError=!0}finally{(0,s.hk)(n)}}catch(e){throw new r.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}catch(e){n.error=e,n.hasError=!0}finally{(0,s.hk)(n)}}},66208(e,t,n){n.d(t,{m:()=>r});var s=n(53655);function r(e,t){const{featureResult:n}=(0,s.SH)(e,t);return n}},80893(e,t,n){n.d(t,{IJ:()=>p,Jf:()=>m,LT:()=>b,Pk:()=>d,eW:()=>g,gW:()=>y,kS:()=>h});var s=n(11254),r=n(84952),i=n(17136),o=n(10536),a=n(66208),u=n(5076),c=n(58501);const l="Layer does not support extent calculation.";function f(e,t,n){return(0,u.i)(e,t,n)}async function g(e,t,n,s,r){const i=t.timeExtent?.isEmpty?{features:[]}:await S(e,t,"json",s,void 0,r);return i.features??=[],(0,c.q)(t,n,i),i}async function p(e,t,n,s,r){if(t.timeExtent?.isEmpty)return n.featureSet;const i=await h(e,t,s,r);return(0,a.m)(i,n)}function h(e,t,n,s){return S(e,t,"pbf",n,void 0,s)}function d(e,t,n,s){return t.timeExtent?.isEmpty?Promise.resolve({objectIds:[]}):S(e,t,"json",n,{returnIdsOnly:!0},s)}async function y(e,t,n,s){return t.timeExtent?.isEmpty?0:(await S(e,t,"json",n,{returnCountOnly:!0},s)).count}async function m(e,t,n){if(t.timeExtent?.isEmpty)return{count:0,extent:null};const s=await S(e,t,"json",n,{returnExtentOnly:!0,returnCountOnly:!0});if(s.hasOwnProperty("extent"))return s;const r="string"==typeof e?e:e.path;if(/\/imageserver\/?$/i.test(r)&&s.hasOwnProperty("count")){const r=await S(e,t,"json",n,{returnExtentOnly:!0});return{count:s.count,extent:r.extent}}if(s.features)throw new Error(l);if(s.hasOwnProperty("count"))throw new Error(l);return s}function _(e,t){if(!e.returnIdsOnly||!t.uniqueIdFields)return e;const n={...e,returnUniqueIdsOnly:!0};return delete n.returnIdsOnly,n}async function S(e,t,n,r={},i={},o={}){const a=await b(e,t,n,r,i,o),u="json"===n?"json":"array-buffer";return(0,s.A)(a.url,{responseType:u,...a.options}).then(({data:e})=>e)}async function b(e,t,n,s,a={},u={}){const c="string"==typeof e?(0,r.An)(e):e,l=t.geometry?[t.geometry]:[],g=await(0,i.el)(l,null,{signal:s.signal}),p=g?.[0];if(null!=p){const e=t.clone();e.geometry=p.clone(),t=e}const h=(0,o.z)({...c.query,f:n,..._(a,u),...f(t,a,u)});return s={...s,query:{...h,...s.query}},new k((0,r.fj)(c.path,function(e,t){return null!=e.formatOf3DObjects&&!(t.returnCountOnly||t.returnExtentOnly||t.returnIdsOnly)}(t,a)?"query3d":"query"),s)}class k{constructor(e,t){this.url=e,this.options=t}}},5076(e,t,n){n.d(t,{i:()=>i});var s=n(60408),r=n(21325);function i(e,t,n){const{geometry:i}=e,o=e.compactGeometryEnabled??!1,a=e.toJSON();delete a.compactGeometryEnabled,delete a.defaultSpatialReferenceEnabled;const u=a;let c,l,f;if(i&&(l=i.spatialReference,f=(0,r.YX)(l),u.geometryType=(0,s.$B)(i),u.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const n=e.toJSON();return delete n.spatialReference,JSON.stringify(n)}(i,o),u.inSR=f),a.groupByFieldsForStatistics&&(u.groupByFieldsForStatistics=a.groupByFieldsForStatistics.join(",")),a.objectIds)switch(n?.uniqueIdFields?.length){case void 0:u.objectIds=a.objectIds.join(",");break;case 1:u.uniqueIds=JSON.stringify(a.objectIds),delete u.objectIds;break;default:u.uniqueIds=JSON.stringify(a.objectIds.map(e=>JSON.parse(e))),delete u.objectIds}if(a.orderByFields&&(u.orderByFields=a.orderByFields.join(",")),!a.outFields||!a.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete u.outFields:a.outFields.includes("*")?u.outFields="*":u.outFields=a.outFields.join(","),a.outSR?(u.outSR=(0,r.YX)(a.outSR),c=e.outSpatialReference):i&&(a.returnGeometry||a.returnCentroid)&&(u.outSR=u.inSR,c=l),a.returnGeometry&&delete a.returnGeometry,a.outStatistics&&(u.outStatistics=JSON.stringify(a.outStatistics)),a.outDistance&&(u.outDistance=JSON.stringify(a.outDistance)),a.fullText&&(u.fullText=JSON.stringify(a.fullText)),a.pixelSize&&(u.pixelSize=JSON.stringify(a.pixelSize)),a.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=l&&null!=e.quantizationParameters?.extent&&l.equals(e.quantizationParameters.extent.spatialReference)&&delete a.quantizationParameters.extent.spatialReference,u.quantizationParameters=JSON.stringify(a.quantizationParameters)),a.parameterValues&&(u.parameterValues=JSON.stringify(a.parameterValues)),a.rangeValues&&(u.rangeValues=JSON.stringify(a.rangeValues)),a.dynamicDataSource&&(u.layer=JSON.stringify({source:a.dynamicDataSource}),delete a.dynamicDataSource),a.timeExtent){const e=a.timeExtent,{start:t,end:n}=e;null==t&&null==n||(u.time=t===n?t:`${t??"null"},${n??"null"}`),delete a.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=l&&null!=c&&l.equals(c)&&(u.defaultSR=u.inSR,delete u.inSR,delete u.outSR),u}},58501(e,t,n){n.d(t,{q:()=>r});var s=n(62815);function r(e,t,n){if(!n?.features||!n.hasZ)return;const r=(0,s.N)(n.geometryType,t,e.outSpatialReference);if(r)for(const e of n.features)r(e.geometry)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[893],{69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>i,lM:()=>r});var s=n(34275);function r(e){if(!e)return 0;let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=l;for(let s=0;s<t;s++)n+=o(e[s]);return n}(e);let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?i(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+f:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return l+e.length*t}const c=32,l=16,f=145},51624(e,t,n){n.d(t,{A:()=>c});var s=n(44208),r=n(69397),i=n(93687);const o=4294967296,a=new TextDecoder("utf-8"),u=(0,s.A)("safari")||(0,s.A)("ios")?6:(0,s.A)("ff")?12:32;class c{constructor(e,t,n=0,s=e?.byteLength??0){this._tag=0,this._dataType=99,this._init(e,t,n,s)}[Symbol.dispose](){this.release()}_init(e,t,n,s){this._data=e,this._dataView=t,this._pos=n,this._end=s}get usedMemory(){return 64+(0,r.Qf)(this._data)}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}clonePooled(){return c.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(e,t,n=0,s=e?.byteLength??0){const r=c.pool.acquire();return r._init(e,t,n,s),r}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getPackedEnd(){const e=this.getUInt32();return this._pos+e}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),n}getSFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),n}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,n=this._toString(this._data,t,t+e);return this._skip(e),n}getBytes(){const e=this._getLength(),t=this._pos,n=this._toBytes(this._data,t,t+e);return this._skip(e),n}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,n,s){const r=this.getMessage(),i=e(r,t,n,s);return r.release(),i}processMessage(e){const t=this.getMessage(),n=e(t);return t.release(),n}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,n=0,s=0;if(this._end-t>=10)do{if(s=e[t++],n|=127&s,!(128&s))break;if(s=e[t++],n|=(127&s)<<7,!(128&s))break;if(s=e[t++],n|=(127&s)<<14,!(128&s))break;if(s=e[t++],n|=(127&s)<<21,!(128&s))break;if(s=e[t++],n+=268435456*(127&s),!(128&s))break;if(s=e[t++],n+=34359738368*(127&s),!(128&s))break;if(s=e[t++],n+=4398046511104*(127&s),!(128&s))break;if(s=e[t++],n+=562949953421312*(127&s),!(128&s))break;if(s=e[t++],n+=72057594037927940*(127&s),!(128&s))break;if(s=e[t++],n+=0x8000000000000000*(127&s),!(128&s))break;throw new Error("Varint too long!")}while(0);else{let r=1;for(;t!==this._end&&(s=e[t],128&s);)++t,n+=(127&s)*r,r*=128;if(t===this._end)throw new Error("Varint overrun!");++t,n+=s*r}return this._pos=t,n}_decodeSVarint(){const e=this._data;let t,n=0,s=0;const r=1&e[this._pos];if(s=e[this._pos++],n|=127&s,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n|=(127&s)<<7,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n|=(127&s)<<14,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n|=(127&s)<<21,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n+=268435456*(127&s),!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n+=34359738368*(127&s),!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n+=4398046511104*(127&s),!(128&s))return r?-(n+1)/2:n/2;if(t=BigInt(n),s=e[this._pos++],t+=0x2000000000000n*BigInt(127&s),!(128&s))return Number(r?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x100000000000000n*BigInt(127&s),!(128&s))return Number(r?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x8000000000000000n*BigInt(127&s),!(128&s))return Number(r?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,n){if((n=Math.min(this._end,n))-t>u){const s=e.subarray(t,n);return a.decode(s)}let s="",r="";for(let i=t;i<n;++i){const t=e[i];128&t?r+="%"+t.toString(16):(s+=decodeURIComponent(r)+String.fromCharCode(t),r="")}return r.length&&(s+=decodeURIComponent(r)),s}_toBytes(e,t,n){return n=Math.min(this._end,n),new Uint8Array(e.buffer,t,n-t)}static{this.pool=new i.A(()=>new c(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},62815(e,t,n){n.d(t,{N:()=>a,d:()=>u});var s=n(86211),r=n(73941),i=n(21325),o=n(52006);function a(e,t,n){const s=u(t,n);if(1!==s)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,s);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,s);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,s);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,s);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,s);default:return}}function u(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,s.G9)(e)/(0,s.G9)(t)}},10536(e,t,n){function s(e){const t={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){t[n]=[];for(let e=0;e<r.length;e++)t[n][e]=s(r[e])}else"object"==typeof r?r.toJSON&&(t[n]=JSON.stringify(r)):t[n]=r}return t}n.d(t,{z:()=>s})},53655(e,t,n){n.d(t,{SH:()=>v,ae:()=>E,cn:()=>d});var s=n(5482),r=n(49186),i=n(51624),o=n(50498);const a=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],u=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],c=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],l=["upperLeft","lowerLeft"];function f(e,t){const n=e.getEnum();return n<t.length?t[n]:void 0}function p(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?o.gy.fromJSON(t):t}function g(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?o.gy.toJSON(t):t}function h(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function d(e){const t=e.asUnsafe(),n={type:u[0]};for(;t.next();)switch(t.tag()){case 1:n.name=t.getString();break;case 2:n.type=f(t,u);break;case 3:n.alias=t.getString();break;case 4:n.sqlType=f(t,c);break;case 5:default:t.skip();break;case 6:n.defaultValue=t.getString()}return n}function y(e){const t={},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.name=n.getString();break;case 2:t.isSystemMaintained=n.getBool();break;default:n.skip()}return t}let m=[];function _(e,t,n){let s=g(t),r=0;const i=e.asUnsafe();for(;i.next();)switch(i.tag()){case 1:1===n?s=g(t,f(i,a)):i.skip();continue;case 2:for(const e=i.getPackedEnd();i.pos()<e;)m[r++]=i.getUInt32();continue;case 3:r>0?(m.length=r,null!=t.geometry(n,s,m)&&(m=[])):t.geometry(n,s,[]);for(const e=i.getPackedEnd();i.pos()<e;)t.coord(i.getSInt64());continue;default:i.skip()}}function S(e,t){const n=[],s=e.asUnsafe();for(;s.next();)if(3!==s.tag())s.skip();else for(const e=s.getPackedEnd();s.pos()<e;)n.push(s.getSInt64());t.centroid(n)}let b=[],k=[],w=[];function T(e,t){const n={stack:[],error:void 0,hasError:!1};try{let r=0;const i=m;let o=0;const a=e.asUnsafe(),u=(0,s.mS)(n,a.clonePooled().asUnsafe(),!1);for(;a.next();)switch(a.tag()){case 2:for(const c=a.getPackedEnd();a.pos()<c;)i[r++]=a.getUInt32();continue;case 3:if(!("curvedGeometry"in t))throw new Error(`Tried to parse curved geometry in a ${t.constructor.name}, which doesn't support them.`);a.processMessageWithArgs(I,o++);continue;case 4:{const l=a.getUInt32(),f=a.pos()+l;if(0===o||0===r||0===l){a.move(f);continue}i.length=r,w.length=k.length=o,t.curvedGeometry(g(t),i,k,w);const{hasZ:p,hasM:h}=t.featureSet,d=[],y=[0,0];function _(){for(let e=0;e<y.length;++e)d[e]=y[e],y[e]=a.getSInt64()}p&&y.push(0),h&&y.push(0);const S=[0,0],T=[0,0],x=S,q=S;let F=0;for(let E=0;E<r;++E){_(),d.fill(0),t.startCurvedPart(y);for(const O=F+i[E];F<O;++F){const U=k[F],P=w[F];switch(U){case 0:for(let V=0;V<P;++V)_(),y[0]+=d[0],y[1]+=d[1],t.lineSegment(d,y);continue;case 1:for(let v=0;v<P;++v)_(),x[0]=a.getSInt64(),x[1]=a.getSInt64(),t.circularArcSegment(d,y,x);continue;case 2:for(let D=0;D<P;++D)_(),S[0]=a.getSInt64(),S[1]=a.getSInt64(),T[0]=a.getSInt64(),T[1]=a.getSInt64(),t.bezierSegment(d,y,S,T);continue;case 3:if(u.move(b[F]),u.getUInt32()<7*P)throw new Error("Not implemented: compressed full circle encoding");for(let A=0;A<P;++A){_(),q[0]=u.getDouble(),q[1]=u.getDouble();const M=u.getDouble(),N=u.getDouble(),G=u.getDouble(),R=u.getDouble(),B=u.getDouble();t.ellipticArcSegment(d,y,q,M,N,G,R,B)}continue}}t.finishCurvedPart(y)}continue}default:a.skip()}}catch(j){n.error=j,n.hasError=!0}finally{(0,s.hk)(n)}}function I(e,t){const n=e.asUnsafe();let s=0,r=0,i=0;for(;n.next();)switch(n.tag()){case 1:s=n.getEnum();continue;case 2:r=n.getUInt32();continue;case 3:i=n.pos(),n.skip();continue;default:n.skip()}if(3===s&&0===i)throw new Error("An elliptic arc segment set did not include a parameters array");k[t]=s,w[t]=r,b[t]=i}function x(e,t){t.feature();const n=t.featureSet.features.at(-1);let s=0;const{fields:r}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==r)throw new Error("A Feature had attributes but the FeatureResult didn't include any fields");n.attributes[r[s++].name]=e.processMessage(h);continue;case 2:e.processMessageWithArgs(_,t,0);continue;case 4:e.processMessageWithArgs(S,t);continue;case 7:e.processMessageWithArgs(T,t);continue;case 11:n.distance=e.getDouble();continue;default:e.skip();continue}t.finishFeature?.()}function q(e){const t=[1,1,1,1],n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t[0]=n.getDouble();break;case 2:t[1]=n.getDouble();break;case 4:t[2]=n.getDouble();break;case 3:t[3]=n.getDouble();break;default:n.skip()}return t}function F(e){const t=[0,0,0,0],n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t[0]=n.getDouble();break;case 2:t[1]=n.getDouble();break;case 4:t[2]=n.getDouble();break;case 3:t[3]=n.getDouble();break;default:n.skip()}return t}function E(e){const t={originPosition:l[0]},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.originPosition=f(n,l);break;case 2:t.scale=n.processMessage(q);break;case 3:t.translate=n.processMessage(F);break;default:n.skip()}return t}function O(e){const t={},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.shapeAreaFieldName=n.getString();break;case 2:t.shapeLengthFieldName=n.getString();break;case 3:t.units=n.getString();break;default:n.skip()}return t}function U(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function P(e,t){const n=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){const e=t.parseOnly.indices.values();let s=0,r=e.next().value;for(;n.next();)15===n.tag()&&s++===r?(r=e.next().value,n.processMessageWithArgs(x,t)):n.skip();return}let s=!1;for("metadata"===t.parseOnly?.type&&(s=!0,t.parseOnly.featureCount=0),p(t,"esriGeometryPoint");n.next();)switch(n.tag()){case 1:t.idField(n.getString());continue;case 3:t.featureSet.globalIdFieldName=n.getString();continue;case 4:t.featureSet.geohashFieldName=n.getString();continue;case 5:t.featureSet.geometryProperties=n.processMessage(O);continue;case 7:p(t,f(n,a));continue;case 8:t.featureSet.spatialReference=n.processMessageWithArgs(U);continue;case 10:t.featureSet.hasZ=n.getBool();continue;case 11:t.featureSet.hasM=n.getBool();continue;case 12:t.featureSet.transform=n.processMessage(E);continue;case 9:t.featureSet.exceededTransferLimit=n.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(n.processMessage(d));continue;case 15:if(s){++t.parseOnly.featureCount,n.skip();continue}n.processMessageWithArgs(x,t);continue;case 2:t.idField(n.processMessage(y));continue;default:n.skip()}}function V(e,t,n){let s=-1;for(;e.next();)switch(e.tag()){case 4:s=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(P,t);continue;default:e.skip()}if(-1!==s){if(!t.queryGeometry()){const n=e.pos();e.move(s),e.processMessageWithArgs(_,t,1),e.move(n)}n.queryGeometryType=t.queryGeometryType(),n.queryGeometry=t.queryGeometry()}t.finish(),n.featureResult=t.featureSet}function v(e,t){const n={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(n,{[Symbol.dispose](){m=[],b=[],k=[],w=[]}},!1);try{const n={stack:[],error:void 0,hasError:!1};try{const r=(0,s.mS)(n,i.A.constructPooled(new Uint8Array(e),new DataView(e)),!1);let o;for(;r.next();)2===r.tag()?(o={},r.processMessageWithArgs(V,t,o)):r.skip();return o}catch(e){n.error=e,n.hasError=!0}finally{(0,s.hk)(n)}}catch(e){throw new r.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}catch(e){n.error=e,n.hasError=!0}finally{(0,s.hk)(n)}}},66208(e,t,n){n.d(t,{m:()=>r});var s=n(53655);function r(e,t){const{featureResult:n}=(0,s.SH)(e,t);return n}},80893(e,t,n){n.d(t,{IJ:()=>g,Jf:()=>m,LT:()=>b,Pk:()=>d,eW:()=>p,gW:()=>y,kS:()=>h});var s=n(11254),r=n(84952),i=n(52039),o=n(10536),a=n(66208),u=n(5076),c=n(58501);const l="Layer does not support extent calculation.";function f(e,t,n){return(0,u.i)(e,t,n)}async function p(e,t,n,s,r){const i=t.timeExtent?.isEmpty?{features:[]}:await S(e,t,"json",s,void 0,r);return i.features??=[],(0,c.q)(t,n,i),i}async function g(e,t,n,s,r){if(t.timeExtent?.isEmpty)return n.featureSet;const i=await h(e,t,s,r);return(0,a.m)(i,n)}function h(e,t,n,s){return S(e,t,"pbf",n,void 0,s)}function d(e,t,n,s){return t.timeExtent?.isEmpty?Promise.resolve({objectIds:[]}):S(e,t,"json",n,{returnIdsOnly:!0},s)}async function y(e,t,n,s){return t.timeExtent?.isEmpty?0:(await S(e,t,"json",n,{returnCountOnly:!0},s)).count}async function m(e,t,n){if(t.timeExtent?.isEmpty)return{count:0,extent:null};const s=await S(e,t,"json",n,{returnExtentOnly:!0,returnCountOnly:!0});if(s.hasOwnProperty("extent"))return s;const r="string"==typeof e?e:e.path;if(/\/imageserver\/?$/i.test(r)&&s.hasOwnProperty("count")){const r=await S(e,t,"json",n,{returnExtentOnly:!0});return{count:s.count,extent:r.extent}}if(s.features)throw new Error(l);if(s.hasOwnProperty("count"))throw new Error(l);return s}function _(e,t){if(!e.returnIdsOnly||!t.uniqueIdFields)return e;const n={...e,returnUniqueIdsOnly:!0};return delete n.returnIdsOnly,n}async function S(e,t,n,r={},i={},o={}){const a=await b(e,t,n,r,i,o),u="json"===n?"json":"array-buffer";return(0,s.A)(a.url,{responseType:u,...a.options}).then(({data:e})=>e)}async function b(e,t,n,s,a={},u={}){const c="string"==typeof e?(0,r.An)(e):e,[l]=await(0,i.el)([t.geometry],s);if(null!=l){const e=t.clone();e.geometry=l.clone(),t=e}const p=(0,o.z)({...c.query,f:n,..._(a,u),...f(t,a,u)});return s={...s,query:{...p,...s.query}},new k((0,r.fj)(c.path,function(e,t){return null!=e.formatOf3DObjects&&!(t.returnCountOnly||t.returnExtentOnly||t.returnIdsOnly)}(t,a)?"query3d":"query"),s)}class k{constructor(e,t){this.url=e,this.options=t}}},5076(e,t,n){n.d(t,{i:()=>i});var s=n(60408),r=n(21325);function i(e,t,n){const{geometry:i}=e,o=e.compactGeometryEnabled??!1,a=e.toJSON();delete a.compactGeometryEnabled,delete a.defaultSpatialReferenceEnabled;const u=a;let c,l,f;if(i&&(l=i.spatialReference,f=(0,r.YX)(l),u.geometryType=(0,s.$B)(i),u.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const n=e.toJSON();return delete n.spatialReference,JSON.stringify(n)}(i,o),u.inSR=f),a.groupByFieldsForStatistics&&(u.groupByFieldsForStatistics=a.groupByFieldsForStatistics.join(",")),a.objectIds)switch(n?.uniqueIdFields?.length){case void 0:u.objectIds=a.objectIds.join(",");break;case 1:u.uniqueIds=JSON.stringify(a.objectIds),delete u.objectIds;break;default:u.uniqueIds=JSON.stringify(a.objectIds.map(e=>JSON.parse(e))),delete u.objectIds}if(a.orderByFields&&(u.orderByFields=a.orderByFields.join(",")),!a.outFields||!a.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete u.outFields:a.outFields.includes("*")?u.outFields="*":u.outFields=a.outFields.join(","),a.outSR?(u.outSR=(0,r.YX)(a.outSR),c=e.outSpatialReference):i&&(a.returnGeometry||a.returnCentroid)&&(u.outSR=u.inSR,c=l),a.returnGeometry&&delete a.returnGeometry,a.outStatistics&&(u.outStatistics=JSON.stringify(a.outStatistics)),a.outDistance&&(u.outDistance=JSON.stringify(a.outDistance)),a.fullText&&(u.fullText=JSON.stringify(a.fullText)),a.pixelSize&&(u.pixelSize=JSON.stringify(a.pixelSize)),a.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=l&&null!=e.quantizationParameters?.extent&&l.equals(e.quantizationParameters.extent.spatialReference)&&delete a.quantizationParameters.extent.spatialReference,u.quantizationParameters=JSON.stringify(a.quantizationParameters)),a.parameterValues&&(u.parameterValues=JSON.stringify(a.parameterValues)),a.rangeValues&&(u.rangeValues=JSON.stringify(a.rangeValues)),a.dynamicDataSource&&(u.layer=JSON.stringify({source:a.dynamicDataSource}),delete a.dynamicDataSource),a.timeExtent){const e=a.timeExtent,{start:t,end:n}=e;null==t&&null==n||(u.time=t===n?t:`${t??"null"},${n??"null"}`),delete a.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=l&&null!=c&&l.equals(c)&&(u.defaultSR=u.inSR,delete u.inSR,delete u.outSR),u}},58501(e,t,n){n.d(t,{q:()=>r});var s=n(62815);function r(e,t,n){if(!n?.features||!n.hasZ)return;const r=(0,s.N)(n.geometryType,t,e.outSpatialReference);if(r)for(const e of n.features)r(e.geometry)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7214],{29242(t,e,r){function n(){return[1,0,0,0,1,0,0,0,1]}function s(t,e,r,n,s,i,u,o,a){return[t,e,r,n,s,i,u,o,a]}r.d(e,{fA:()=>s,vt:()=>n});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:n,fromValues:s},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},82534(t,e,r){function n(){return[0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{o8:()=>s,vt:()=>n});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},48163(t,e,r){function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function o(){return i(-1,-1)}function a(){return i(1,0)}function c(){return i(0,1)}r.d(e,{fA:()=>i,o8:()=>s,vt:()=>n});const f=u(),l=o(),h=a(),d=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:l,ONES:f,UNIT_X:h,UNIT_Y:d,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,negativeOnes:o,ones:u,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["IA",0,l,"Un",0,f])},51850(t,e,r){function n(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,r){return[t,e,r]}function u(t,e,r){return[t,e,r]}function o(t,e=[0,0,0]){const r=Math.min(3,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e}function a(){return i(1,1,1)}function c(){return i(1,0,0)}function f(){return i(0,1,0)}function l(){return i(0,0,1)}r.d(e,{CN:()=>u,ci:()=>o,fA:()=>i,o8:()=>s,vt:()=>n});const h=[0,0,0],d=a(),p=c(),y=f(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:y,UNIT_Z:m,ZEROS:h,clone:s,create:n,freeze:u,fromArray:o,fromValues:i,ones:a,unitX:c,unitY:f,unitZ:l,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Cb",0,m,"Cw",0,p,"JP",0,y,"Un",0,d,"uY",0,h])},91829(t,e,r){function n(){return[0,0,0,0]}function s(t,e,r,n){return[t,e,r,n]}function i(){return s(1,1,1,1)}function u(){return s(1,0,0,0)}function o(){return s(0,1,0,0)}function a(){return s(0,0,1,0)}function c(){return s(0,0,0,1)}r.d(e,{_Y:()=>c,fA:()=>s,vt:()=>n});const f=[0,0,0,0],l=i(),h=u(),d=o(),p=a(),y=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_W:y,UNIT_X:h,UNIT_Y:d,UNIT_Z:p,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,freeze:function(t,e,r,n){return[t,e,r,n]},fromArray:function(t,e=[0,0,0,0]){const r=Math.min(4,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:s,ones:i,unitW:c,unitX:u,unitY:o,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,l,"uY",0,f])},34304(t,e,r){r.d(e,{DF:()=>a,FD:()=>s,ct:()=>c});let n=1e-6;function s(){return n}const i=Math.random,u=Math.PI/180,o=180/Math.PI;function a(t){return t*u}function c(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:s,setEpsilon:function(t){n=t},toDegree:c,toRadian:a},Symbol.toStringTag,{value:"Module"})),r.d(e,["Ov",0,i])},77690(t,e,r){r.d(e,{B8:()=>o,Ge:()=>d,I0:()=>h,KC:()=>a,a4:()=>c,hZ:()=>i,hs:()=>l,lw:()=>f,mg:()=>u,z0:()=>s});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,r,n,s,i,u,o,a,c){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t[4]=i,t[5]=u,t[6]=o,t[7]=a,t[8]=c,t}function u(t,e){if(t===e){const r=e[1],n=e[2],s=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=s}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function o(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=e[4],o=e[5],a=e[6],c=e[7],f=e[8],l=f*u-o*c,h=-f*i+o*a,d=c*i-u*a;let p=r*l+n*h+s*d;return p?(p=1/p,t[0]=l*p,t[1]=(-f*n+s*c)*p,t[2]=(o*n-s*u)*p,t[3]=h*p,t[4]=(f*r-s*a)*p,t[5]=(-o*r+s*i)*p,t[6]=d*p,t[7]=(-c*r+n*a)*p,t[8]=(u*r-n*i)*p,t):null}function a(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=e[4],o=e[5],a=e[6],c=e[7],f=e[8];return t[0]=u*f-o*c,t[1]=s*c-n*f,t[2]=n*o-s*u,t[3]=o*a-i*f,t[4]=r*f-s*a,t[5]=s*i-r*o,t[6]=i*c-u*a,t[7]=n*a-r*c,t[8]=r*u-n*i,t}function c(t){const e=t[0],r=t[1],n=t[2],s=t[3],i=t[4],u=t[5],o=t[6],a=t[7],c=t[8];return e*(c*i-u*a)+r*(-c*s+u*o)+n*(a*s-i*o)}function f(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3],o=e[4],a=e[5],c=e[6],f=e[7],l=e[8],h=r[0],d=r[1],p=r[2],y=r[3],m=r[4],E=r[5],M=r[6],B=r[7],T=r[8];return t[0]=h*n+d*u+p*c,t[1]=h*s+d*o+p*f,t[2]=h*i+d*a+p*l,t[3]=y*n+m*u+E*c,t[4]=y*s+m*o+E*f,t[5]=y*i+m*a+E*l,t[6]=M*n+B*u+T*c,t[7]=M*s+B*o+T*f,t[8]=M*i+B*a+T*l,t}function l(t,e,r){const n=r[0],s=r[1],i=r[2];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t}function h(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=r+r,o=n+n,a=s+s,c=r*u,f=n*u,l=n*o,h=s*u,d=s*o,p=s*a,y=i*u,m=i*o,E=i*a;return t[0]=1-l-p,t[3]=f-E,t[6]=h+m,t[1]=f+E,t[4]=1-c-p,t[7]=d-y,t[2]=h-m,t[5]=d+y,t[8]=1-c-l,t}function d(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=e[4],o=e[5],a=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],p=e[12],y=e[13],m=e[14],E=e[15],M=r*o-n*u,B=r*a-s*u,T=r*c-i*u,_=n*a-s*o,b=n*c-i*o,S=s*c-i*a,A=f*y-l*p,g=f*m-h*p,v=f*E-d*p,x=l*m-h*y,N=l*E-d*y,R=h*E-d*m;let I=M*R-B*N+T*x+_*v-b*g+S*A;return I?(I=1/I,t[0]=(o*R-a*N+c*x)*I,t[1]=(a*v-u*R-c*g)*I,t[2]=(u*N-o*v+c*A)*I,t[3]=(s*N-n*R-i*x)*I,t[4]=(r*R-s*v+i*g)*I,t[5]=(n*v-r*N-i*A)*I,t[6]=(y*S-m*b+E*_)*I,t[7]=(m*T-p*S-E*B)*I,t[8]=(p*b-y*T+E*M)*I,t):null}function p(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}const y=f,m=p;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t},adjoint:a,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:c,equals:function(t,e){const r=t[0],s=t[1],i=t[2],u=t[3],o=t[4],a=t[5],c=t[6],f=t[7],l=t[8],h=e[0],d=e[1],p=e[2],y=e[3],m=e[4],E=e[5],M=e[6],B=e[7],T=e[8],_=(0,n.FD)();return Math.abs(r-h)<=_*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(s-d)<=_*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(i-p)<=_*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(u-y)<=_*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(o-m)<=_*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(a-E)<=_*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(c-M)<=_*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(f-B)<=_*Math.max(1,Math.abs(f),Math.abs(B))&&Math.abs(l-T)<=_*Math.max(1,Math.abs(l),Math.abs(T))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:s,fromQuat:h,fromRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:o,isOrthoNormal:function(t){const e=(0,n.FD)(),r=t[0],s=t[1],i=t[2],u=t[3],o=t[4],a=t[5],c=t[6],f=t[7],l=t[8];return Math.abs(1-(r*r+u*u+c*c))<=e&&Math.abs(1-(s*s+o*o+f*f))<=e&&Math.abs(1-(i*i+a*a+l*l))<=e},mul:y,multiply:f,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t},normalFromMat4:d,normalFromMat4Legacy:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[4],u=e[5],o=e[6],a=e[8],c=e[9],f=e[10],l=f*u-o*c,h=-f*i+o*a,d=c*i-u*a,p=r*l+n*h+s*d;if(!p)return null;const y=1/p;return t[0]=l*y,t[1]=(-f*n+s*c)*y,t[2]=(o*n-s*u)*y,t[3]=h*y,t[4]=(f*r-s*a)*y,t[5]=(-o*r+s*i)*y,t[6]=d*y,t[7]=(-c*r+n*a)*y,t[8]=(u*r-n*i)*y,t},projection:function(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3],o=e[4],a=e[5],c=e[6],f=e[7],l=e[8],h=Math.sin(r),d=Math.cos(r);return t[0]=d*n+h*u,t[1]=d*s+h*o,t[2]=d*i+h*a,t[3]=d*u-h*n,t[4]=d*o-h*s,t[5]=d*a-h*i,t[6]=c,t[7]=f,t[8]=l,t},scale:l,scaleByVec2:function(t,e,r){const n=r[0],s=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:p,translate:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3],o=e[4],a=e[5],c=e[6],f=e[7],l=e[8],h=r[0],d=r[1];return t[0]=n,t[1]=s,t[2]=i,t[3]=u,t[4]=o,t[5]=a,t[6]=h*n+d*u+c,t[7]=h*s+d*o+f,t[8]=h*i+d*a+l,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},37585(t,e,r){r.d(e,{C:()=>i,Cc:()=>b,Io:()=>m,LI:()=>d,Ln:()=>y,Om:()=>_,Re:()=>a,S8:()=>T,T9:()=>l,WQ:()=>o,aI:()=>v,e$:()=>A,hG:()=>E,hZ:()=>u,hs:()=>p,l0:()=>S,qE:()=>h,t2:()=>g});var n=r(34727),s=r(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t}function u(t,e,r){return t[0]=e,t[1]=r,t}function o(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function a(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function l(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}function h(t,e,r,s){return t[0]=(0,n.qE)(e[0],r[0],s[0]),t[1]=(0,n.qE)(e[1],r[1],s[1]),t}function d(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function p(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function y(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function m(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function E(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function M(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function B(t){const e=t[0],r=t[1];return e*e+r*r}function T(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]}function b(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function S(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function A(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],u=Math.sin(n),o=Math.cos(n);return t[0]=s*o-i*u+r[0],t[1]=s*u+i*o+r[1],t}function g(t,e){return t[0]===e[0]&&t[1]===e[1]}function v(t,e){const r=t[0],n=t[1],i=e[0],u=e[1],o=(0,s.FD)();return Math.abs(r-i)<=o*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-u)<=o*Math.max(1,Math.abs(n),Math.abs(u))}const x=M,N=a,R=c,I=f,O=m,C=E,w=B;Object.freeze(Object.defineProperty({__proto__:null,add:o,angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let u=r*r+n*n;u>0&&(u=1/Math.sqrt(u));let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));const a=(r*s+n*i)*u*o;return a>1?0:a<-1?Math.PI:Math.acos(a)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},clamp:h,copy:i,cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:O,distance:m,div:I,divide:f,dot:_,equals:v,exactEquals:g,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:x,length:M,lerp:b,max:l,min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:R,multiply:c,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:T,projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],u=e[1]-r[1];const o=(n[0]*i+n[1]*u)*(s-1);return i=n[0]*o,u=n[1]*o,t[0]=e[0]+i,t[1]=e[1]+u,t},random:function(t,e=1){const r=2*(0,s.Ov)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:A,round:d,scale:p,scaleAndAdd:y,set:u,sqrDist:C,sqrLen:w,squaredDistance:E,squaredLength:B,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:N,subtract:a,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:S,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,x,"jb",0,N,"xg",0,O])},35522(t,e,r){r.d(e,{$A:()=>g,Bw:()=>i,C:()=>u,Cc:()=>v,DI:()=>b,Io:()=>M,Ln:()=>E,Om:()=>A,Qr:()=>l,Re:()=>c,S8:()=>S,T9:()=>y,WQ:()=>a,Z0:()=>x,_S:()=>d,aI:()=>F,ei:()=>N,fw:()=>I,gL:()=>R,hG:()=>B,hZ:()=>o,hs:()=>m,jk:()=>p,lw:()=>f,m3:()=>T,oW:()=>U,t2:()=>w,tn:()=>h,ze:()=>_});var n=r(51850),s=r(34304);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function a(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function c(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function f(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function l(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function y(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function E(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function M(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function B(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function T(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function _(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){const r=e[0],n=e[1],s=e[2];let i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function g(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],a=r[2];return t[0]=s*a-i*o,t[1]=i*u-n*a,t[2]=n*o-s*u,t}function v(t,e,r,n){const s=e[0],i=e[1],u=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t}function x(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function N(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function R(t,e,r){return I(t,e,r[0],r[1],r[2],r[3])}function I(t,e,r,n,s,i){const u=e[0],o=e[1],a=e[2],c=n*a-s*o,f=s*u-r*a,l=r*o-n*u,h=n*l-s*f,d=s*c-r*l,p=r*f-n*c,y=2*i;return t[0]=u+c*y+2*h,t[1]=o+f*y+2*d,t[2]=a+l*y+2*p,t}const O=(0,n.vt)(),C=(0,n.vt)();function w(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function F(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],u=e[0],o=e[1],a=e[2],c=(0,s.FD)();return Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=c*Math.max(1,Math.abs(i),Math.abs(a))}function U(t,e,r){const n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2];let u=n*n+s*s+i*i;return u>0?(u=1/Math.sqrt(u),t[0]=n*u,t[1]=s*u,t[2]=i*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const L=c,D=f,G=l,P=M,V=B,q=i,Y=T;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:a,angle:function(t,e){S(O,t),S(C,e);const r=A(O,C);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,s,i){const u=1-i,o=u*u,a=i*i,c=o*u,f=3*i*o,l=3*a*u,h=a*i;return t[0]=e[0]*c+r[0]*f+n[0]*l+s[0]*h,t[1]=e[1]*c+r[1]*f+n[1]*l+s[1]*h,t[2]=e[2]*c+r[2]*f+n[2]*l+s[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:u,cross:g,crossAndNormalize:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],a=r[2],c=s*a-i*o,f=i*u-n*a,l=n*o-s*u,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:U,dist:P,distance:M,div:G,divide:l,dot:A,equals:F,exactEquals:w,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,s,i){const u=i*i,o=u*(2*i-3)+1,a=u*(i-2)+i,c=u*(i-1),f=u*(3-2*i);return t[0]=e[0]*o+r[0]*a+n[0]*c+s[0]*f,t[1]=e[1]*o+r[1]*a+n[1]*c+s[1]*f,t[2]=e[2]*o+r[2]*a+n[2]*c+s[2]*f,t},inverse:b,len:q,length:i,lerp:v,max:y,min:p,mul:D,multiply:f,negate:_,normalize:S,random:function(t,e=1){const r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*u,t[1]=Math.sin(n)*u,t[2]=i*e,t},rotateX:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:E,set:o,sign:d,sqrDist:V,sqrLen:Y,squaredDistance:B,squaredLength:T,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:L,subtract:c,transformMat3:N,transformMat4:x,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:R,transformQuatValues:I},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,q,"jb",0,L,"lo",0,V,"uE",0,Y,"xg",0,P])},78955(t,e,r){r.d(e,{Bw:()=>m,C:()=>s,Cc:()=>T,LI:()=>h,Om:()=>B,S8:()=>M,T9:()=>l,WQ:()=>u,Z0:()=>_,aI:()=>S,hG:()=>y,hZ:()=>i,hs:()=>d,jk:()=>f,m3:()=>E,t2:()=>b});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function a(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}function f(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}function l(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}function h(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function d(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function p(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(r*r+n*n+s*s+i*i)}function y(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return r*r+n*n+s*s+i*i}function m(t){const e=t[0],r=t[1],n=t[2],s=t[3];return Math.sqrt(e*e+r*r+n*n+s*s)}function E(t){const e=t[0],r=t[1],n=t[2],s=t[3];return e*e+r*r+n*n+s*s}function M(t,e){const r=e[0],n=e[1],s=e[2],i=e[3];let u=r*r+n*n+s*s+i*i;return u>0&&(u=1/Math.sqrt(u),t[0]=r*u,t[1]=n*u,t[2]=s*u,t[3]=i*u),t}function B(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function T(t,e,r,n){const s=e[0],i=e[1],u=e[2],o=e[3];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t[3]=o+n*(r[3]-o),t}function _(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12]*u,t[1]=r[1]*n+r[5]*s+r[9]*i+r[13]*u,t[2]=r[2]*n+r[6]*s+r[10]*i+r[14]*u,t[3]=r[3]*n+r[7]*s+r[11]*i+r[15]*u,t}function b(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function S(t,e){const r=t[0],s=t[1],i=t[2],u=t[3],o=e[0],a=e[1],c=e[2],f=e[3],l=(0,n.FD)();return Math.abs(r-o)<=l*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-a)<=l*Math.max(1,Math.abs(s),Math.abs(a))&&Math.abs(i-c)<=l*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(u-f)<=l*Math.max(1,Math.abs(u),Math.abs(f))}const A=o,g=a,v=c,x=p,N=y,R=m,I=E;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:s,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:x,distance:p,div:v,divide:c,dot:B,equals:S,exactEquals:b,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:R,length:m,lerp:T,max:l,min:f,mul:g,multiply:a,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:M,random:function(t,e=1){const r=n.Ov;let s,i,u,o,a,c;do{s=2*r()-1,i=2*r()-1,a=s*s+i*i}while(a>=1);do{u=2*r()-1,o=2*r()-1,c=u*u+o*o}while(c>=1);const f=Math.sqrt((1-a)/c);return t[0]=e*s,t[1]=e*i,t[2]=e*u*f,t[3]=e*o*f,t},round:h,scale:d,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},set:i,sqrDist:N,sqrLen:I,squaredDistance:y,squaredLength:E,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:A,subtract:o,transformMat4:_,transformQuat:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],a=r[2],c=r[3],f=c*n+o*i-a*s,l=c*s+a*n-u*i,h=c*i+u*s-o*n,d=-u*n-o*s-a*i;return t[0]=f*c+d*-u+l*-a-h*-o,t[1]=l*c+d*-o+h*-u-f*-a,t[2]=h*c+d*-a+f*-o-l*-u,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,e,r){r.d(e,{$8:()=>A,Cc:()=>o,Hx:()=>m,Io:()=>b,KJ:()=>f,OS:()=>x,Sp:()=>d,XM:()=>l,YN:()=>h,ZH:()=>y,b6:()=>S,cU:()=>s,gg:()=>p,hs:()=>a,kU:()=>c,mP:()=>u,or:()=>v,pF:()=>R,qE:()=>i});const n=new Float32Array(1);function s(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function i(t,e,r){return Math.min(Math.max(t,e),r)}function u(t,e){return 0===e?0:Math.ceil(t/e)*e}function o(t,e,r){return t+(e-t)*r}function a(t,e,r,n,s){return o(n,s,(t-e)/(r-e))}function c(t){return t*Math.PI/180}function f(t){return 180*t/Math.PI}function l(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function d(t,e,r=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=r}function p(t,e,r=1e-6){return!d(t,e,r)&&t>e}function y(t,e,r=1e-6){return!d(t,e,r)&&t<e}function m(t,e,r=1e-6){return d(t,e,r)||t>e}const E=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function M(t){return E.setFloat64(0,t),E.getBigInt64(0)}const B=1000000n,T=_(1);function _(t){const e=M(t=Math.abs(t)),r=function(t){return E.setBigInt64(0,t),E.getFloat64(0)}(e<=B?B:e-B);return Math.abs(t-r)}function b(t,e,r=T){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=r&&_(Math.min(Math.abs(t),Math.abs(e)))<r)return Math.abs(t-e)<=r;const n=M(t),s=M(e);return n<0==s<0&&!((n<s?s-n:n-s)>B)}function S(t,e,r=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;const n=Math.abs(t-e),s=Math.abs(t),i=Math.abs(e);if(0===t||0===e||s<1e-12&&i<1e-12){if(n>.01*r)return!1}else if(n/(s+i)>r)return!1;return!0}function A(t){return g(Math.max(-N,Math.min(t,N)))}function g(t){return n[0]=t,n[0]}function v(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],n=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(d(e,1)&&d(r,1)&&d(n,1))}function x(t,e){return(t%e+e)%e}const N=g(34028234663852886e22);function R(t,e,r){if(void 0===r||0===+r)return Math[t](e);if(e=+e,r=+r,isNaN(e)||"number"!=typeof r||r%1!=0)return NaN;let n=e.toString().split("e");return n=(e=Math[t](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}r.d(e,["pq",0,N])},13030(t,e,r){r.d(e,{Y$:()=>M,XW:()=>E,qB:()=>R,Qt:()=>$,My:()=>K,bf:()=>H,jZ:()=>g,j0:()=>v,Sx:()=>x,E$:()=>N,Qy:()=>it,h:()=>D,P:()=>q,SL:()=>w,dy:()=>nt,ES:()=>ut,gH:()=>T,ZD:()=>B,si:()=>I,mJ:()=>Q,UL:()=>tt,D6:()=>X,Yi:()=>G,An:()=>Y,LC:()=>F,xs:()=>b,EC:()=>_,Xm:()=>O,Vp:()=>W,zD:()=>et,m8:()=>Z,nS:()=>P,H$:()=>z,eI:()=>U,td:()=>st,Eq:()=>A,jz:()=>S,Aj:()=>C,E7:()=>J,Y4:()=>rt,TX:()=>k,Uz:()=>V,ml:()=>j,XP:()=>L});var n=r(34727),s=r(37585),i=r(48163),u=r(78955),o=r(91829),a=r(20498);class c{static{this.ElementCount=9}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[u++]}get buffer(){return this.typedBuffer.buffer}}class f{static{this.ElementCount=16}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){this.copyFromTypedBuffer(t,e.typedBuffer,r*e.typedBufferStride)}copyFromTypedBuffer(t,e,r){const n=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)n[s++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=1}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=2}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,s.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var d=r(35522);class p{static{this.ElementCount=3}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,d.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}class y{static{this.ElementCount=4}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,u.hZ)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var m=r(620);class E extends l{constructor(t,e=0,r,n){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class M extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class B extends h{constructor(t,e=0,r,n){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(B,t,e)}static{this.ElementType="f16"}}class T extends h{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(T,t,e)}static{this.ElementType="f32"}}class _ extends p{constructor(t,e=0,r,n){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f16"}}class b extends p{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(b,t,e)}static fromTypedArray(t,e){return new b(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class S extends y{constructor(t,e=0,r,n){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f16"}}class A extends y{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f32"}}class g extends c{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(g,t,e)}static{this.ElementType="f32"}}class v extends c{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f64"}}class x extends f{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="f32"}}class N extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="f64"}}class R extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="f64"}}class I extends h{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(I,t,e)}static{this.ElementType="f64"}}class O extends p{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(O,t,e)}static fromTypedArray(t,e){return new O(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class C extends y{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="f64"}}class w extends l{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="u8"}}class F extends h{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="u8"}}class U extends p{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(U,t,e)}static fromTypedArray(t,e){return new U(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class L extends y{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u8"}}class D extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="u16"}}class G extends h{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="u16"}}class P extends p{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="u16"}}class V extends y{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="u16"}}class q extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="u32"}}class Y extends h{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u32"}}class z extends p{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="u32"}}class j extends y{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="u32"}}class H extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i8"}}class X extends h{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="i8"}}class Z extends p{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i8"}}class k extends y{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="i8"}}class $ extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i16"}}class Q extends h{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i16"}}class W extends p{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i16"}}class J extends y{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i16"}}class K extends l{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i32"}}class tt extends h{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(tt,t,e)}static{this.ElementType="i32"}}class et extends p{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(et,t,e)}static{this.ElementType="i32"}}class rt extends y{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(rt,t,e)}static{this.ElementType="i32"}}class nt extends w{constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return this.typedBuffer[t*this.typedBufferStride]/255}set(t,e){this.typedBuffer[t*this.typedBufferStride]=Math.round(255*(0,n.qE)(e,0,1))}slice(t,e){return this.sliceBuffer(nt,t,e)}}class st extends L{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,u.hs)(e,super.getVec(t,e),1/255)}setVec(t,e){(0,u.jk)(at,(0,u.T9)(at,e,o.uY),o.Un),(0,u.hs)(at,at,255),(0,u.LI)(at,at),super.setVec(t,at)}get(t,e){return super.get(t,e)/255}set(t,e,r){super.set(t,e,Math.round(255*(0,n.qE)(r,0,1)))}setValues(t,e,r,n,s){(0,u.hZ)(at,e,r,n,s),this.setVec(t,at)}slice(t,e){return this.sliceBuffer(st,t,e)}}class it extends ${constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return Math.max(super.get(t)/32767,-1)}set(t,e){super.set(t,Math.round(32767*(0,n.qE)(e,-1,1)))}slice(t,e){return this.sliceBuffer(it,t,e)}}class ut extends Q{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,s.hZ)(ot,-1,-1),(0,s.T9)(e,(0,s.hs)(e,super.getVec(t,e),1/32767),ot)}setVec(t,e){(0,s.qE)(ot,e,i.IA,i.Un),(0,s.hs)(ot,ot,32767),(0,s.LI)(ot,ot),super.setVec(t,ot)}get(t,e){return Math.max(super.get(t,e)/32767,-1)}set(t,e,r){super.set(t,e,Math.round(32767*(0,n.qE)(r,-1,1)))}setValues(t,e,r){(0,s.hZ)(ot,e,r),this.setVec(t,ot)}slice(t,e){return this.sliceBuffer(ut,t,e)}}const ot=(0,i.vt)(),at=(0,o.vt)()},90239(t,e,r){function n(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>n})},20498(t,e,r){r.d(e,{SX:()=>i,pX:()=>s});let n=globalThis.Float16Array;function s(){return n}let i=!!n},77214(t,e,r){r.r(e),r.d(e,{destroyContext:()=>b,initialize:()=>B,processVertices:()=>_});var n=r(82534),s=r(51850),i=r(13030),u=r(77690),o=r(29242),a=r(35522),c=r(89606);class f{constructor(t=1/0,e=-1/0){this.minElevation=t,this.maxElevation=e}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(t){return this.minElevation<=t.minElevation&&this.maxElevation>=t.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(t){const e=Math.min(this.minElevation,t.minElevation),r=Math.max(this.maxElevation,t.maxElevation),n=e!==this.minElevation||r!==this.maxElevation;return this.minElevation=e,this.maxElevation=r,n}expandElevationRangeValues(t,e){const r=Math.min(this.minElevation,t),n=Math.max(this.maxElevation,e),s=r!==this.minElevation||n!==this.maxElevation;return this.minElevation=r,this.maxElevation=n,s}setElevationRange(t){this.minElevation=t.minElevation,this.maxElevation=t.maxElevation}setElevationRangeValues(t,e){this.minElevation=t,this.maxElevation=e}equals(t){return this.minElevation===t.minElevation&&this.maxElevation===t.maxElevation}}var l=r(1843),h=r(65786);h.Y;class d extends h.Y{constructor(t,e,r){super(),this.hasVertexColors=t,this.hasNormals=e,this.textureCoordinateType=r}}function p(t){const e=(0,l.BP)().vec3f("position");return t.hasNormals&&e.vec2i16("normalCompressed",{glNormalized:!0}),1===t.textureCoordinateType?e.vec2f("uv0"):2===t.textureCoordinateType&&(e.vec2f("uv0"),e.vec4u16("uvRegion",{glNormalized:!0})),t.hasVertexColors&&e.vec4u8("color",{glNormalized:!0}),e.freeze()}function y(t,e,r,n,i,u,o){const a=new Array,l=(0,s.fA)(0,0,0),h=new f,y={origin:e,ellipsoidRadius:r,isGlobal:n,ecefRotation:i};for(const e of t){const{componentIndex:t,positionView:r,indicesView:n,texCoord0Data:s,colorView:i,normalsData:f}=e,E=r.count,M=s?1:0,B=new d(null!=i,null!=f||o,M),T=o&&null==f?(0,c.GN)(n.typedBuffer,r.typedBuffer,r.typedBufferStride):null,_=T?.outputVertexCount??E,b=p(B),S=b.createBuffer(_),A=T?b.fields.get("normalCompressed"):null;if(null!=T&&null==A)throw new Error("computeNormals requires a reserved NORMALCOMPRESSED attribute in layout");let g;if(m(y,{texCoord0Data:s,colorView:i,packedNormalsSource:T?T.packedNormals:f??null},S,{positionView:r,tileObb:u,obbHalfSizeAccumulator:l,elevationRange:h}),null!=T){const t=b.stride/4,e=A.offset/4,r=E,n=new Uint32Array(S.buffer);(0,c.yf)(n,t,e,n,t,r,_,T.appendedVertexToOriginal,T.packedNormals),g=T.indices}else g=n.typedBuffer;a.push({componentIndex:t,positionView:r,indicesView:n,layout:b,textureCoordinateType:M,interleavedVertexData:S.buffer,indices:g})}return{vertexProcessingOutputs:a,obbHalfSizeAccumulator:l,elevationRange:h}}function m(t,e,r,n){const{origin:s,ellipsoidRadius:c,isGlobal:f,ecefRotation:l}=t,{texCoord0Data:h,colorView:d,packedNormalsSource:p}=e,{positionView:y,tileObb:m,obbHalfSizeAccumulator:B,elevationRange:T}=n,_=r.getField("position",i.xs),b=_.typedBuffer,S=_.typedBufferStride,A=null!=h?r.getField("uv0",i.gH):null,g=A?.typedBuffer,v=A?.typedBufferStride??0,x=d?.typedBuffer,N=d?.elementCount??0,R=null!=d?r.getField("color",i.XP):null,I=R?.typedBuffer,O=R?.typedBufferStride??0,C=null!=p?r.getField("normalCompressed",i.mJ):null,w=null!=C?new Uint32Array(C.typedBuffer.buffer,C.typedBuffer.byteOffset,C.typedBuffer.length/2):null,F=null!=C?C.typedBufferStride/2:0,U=(0,u.I0)(M,m.quaternionConjugate),L=(0,a.ei)(E,m.center,U),D=U[0],G=U[1],P=U[2],V=U[3],q=U[4],Y=U[5],z=U[6],j=U[7],H=U[8],X=L[0],Z=L[1],k=L[2],$=l[0],Q=l[1],W=l[2],J=l[3],K=l[4],tt=l[5],et=l[6],rt=l[7],nt=l[8],st=l!==o.zK,it=s[0],ut=s[1],ot=s[2],at=y.count,ct=y.typedBufferStride,ft=y.typedBuffer,lt=null!=g&&null!=h,ht=null!=I&&null!=x&&(3===N||4===N),dt=4===N,pt=null!=w&&null!=p;let yt=B[0],mt=B[1],Et=B[2];for(let t=0;t<at;++t){const e=t*ct,r=ft[e],n=ft[e+1],s=ft[e+2],i=r+it,u=n+ut,o=s+ot,a=f?Math.sqrt(i*i+u*u+o*o)-c:o;T.expandElevationRangeValues(a,a);const l=Math.abs(i*D+u*V+o*z-X),d=Math.abs(i*G+u*q+o*j-Z),y=Math.abs(i*P+u*Y+o*H-k);yt=Math.max(yt,l),mt=Math.max(mt,d),Et=Math.max(Et,y),st&&(ft[e]=r*$+n*J+s*et,ft[e+1]=r*Q+n*K+s*rt,ft[e+2]=r*W+n*tt+s*nt);const m=t*S;if(b[m]=r,b[m+1]=n,b[m+2]=s,lt){const e=2*t,r=t*v;g[r]=h[e],g[r+1]=h[e+1]}if(ht){const e=t*O;if(dt){const r=4*t;I[e]=x[r],I[e+1]=x[r+1],I[e+2]=x[r+2],I[e+3]=x[r+3]}else{const r=3*t;I[e]=x[r],I[e+1]=x[r+1],I[e+2]=x[r+2],I[e+3]=255}}pt&&(w[t*F]=p[t])}B[0]=yt,B[1]=mt,B[2]=Et}const E=(0,s.vt)(),M=(0,o.vt)();function B(){}function T(t){const{colorData:e,colorElementCount:r}=t;if(null==e||0===r)return;const n=e.byteOffset,s=n+e.byteLength;return 3===r?e instanceof Float32Array?new i.xs(e.buffer,n,void 0,s):e instanceof Uint8Array?new i.eI(e.buffer,n,void 0,s):new i.nS(e.buffer,n,void 0,s):e instanceof Float32Array?new i.Eq(e.buffer,n,void 0,s):e instanceof Uint8Array?new i.XP(e.buffer,n,void 0,s):new i.Uz(e.buffer,n,void 0,s)}async function _(t){const e={center:(0,s.o8)(t.tileObbCenter),quaternionConjugate:(0,n.o8)(t.tileObbQuaternionConjugate)},{vertexProcessingOutputs:r,obbHalfSizeAccumulator:u,elevationRange:o}=y(t.inputs.map((t,e)=>{const{indicesData:r}=t,n=t.positionData.byteOffset,s=n+t.positionData.byteLength,u=t.positionStride*Float32Array.BYTES_PER_ELEMENT,o=r.byteOffset,a=o+r.byteLength;return{componentIndex:e,positionView:new i.xs(t.positionData.buffer,n,u,s),indicesView:r instanceof Uint16Array?new i.h(r.buffer,o,void 0,a):new i.P(r.buffer,o,void 0,a),texCoord0Data:t.texCoord0Data??void 0,colorView:T(t),normalsData:t.normalsData??void 0}}),t.origin,t.ellipsoidRadius,t.isGlobal,t.ecefRotation,e,t.imVertexNormals),a=(f=r,l=t.isGlobal,f.map(t=>({positionData:l?t.positionView.typedBuffer:null,interleavedVertexData:t.interleavedVertexData,renderIndices:t.indices===t.indicesView.typedBuffer?null:t.indices}))),c=function(t){const e=[];for(const r of t)null!=r.positionData&&e.push(r.positionData.buffer),e.push(r.interleavedVertexData),null!=r.renderIndices&&e.push(r.renderIndices.buffer);return e}(a);var f,l;return{result:{outputs:a,obbHalfSizeAccumulator:(0,s.o8)(u),minElevation:o.minElevation,maxElevation:o.maxElevation},transferList:c}}function b(t){}},89606(t,e,r){r.d(e,{GN:()=>l,MU:()=>f,yf:()=>d});var n=r(35522),s=r(51850),i=r(10614),u=r(63907),o=r(74038);class a{constructor(t,e){this.data=t,this.indices=e}}class c{constructor(t,e,r,n,s){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=r,this.outputVertexCount=n,this.appendedVertexCount=s}}function f(t,e,r,c,f){return!c||r.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,r,u){const o=new a(t.slice().buffer,e);if(!u)return o;const c=r[0].stride,f=o.data.byteLength/c;for(const t of r)if("normalCompressed"===t.name){const{offset:e}=t,r=new Int16Array(o.data),a=(0,s.vt)();for(let t=0;t<f;++t)(0,i.Tz)(a,r,t,c/2,e/2),(0,n.ei)(a,a,u),(0,i.aT)(r,t,a[0],a[1],a[2],c/2,e/2)}else if("normal"===t.name){const{offset:e}=t,r=new Float32Array(o.data),i=(0,s.vt)();for(let t=0;t<f;++t){const s=(t*c+e)/4;i[0]=r[s],i[1]=r[s+1],i[2]=r[s+2],(0,n.ei)(i,i,u),r[s]=i[0],r[s+1]=i[1],r[s+2]=i[2]}}return o}(t,e,r,f):function(t,e,r,n){const s=r[0].stride,i=s/4,a=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),c=t.byteLength/s,f=s+4;r.forEach(t=>t.stride=f),r.push(new o._("normalCompressed",2,u.pe.SHORT,s,f,!0));const d=l(e,a,i,n);return h(a,c,s,f,d)}(t,e,r,f)}function l(t,e,r,n){const s=t.length/3,i=e.length/r,{faceNormals:u,faceAreas:o,faceEdges:a,edgeFaces:c,vertexFaces:f,vertexFaceCountAndOffset:l}=function(t,e,r,n,s,i){const u=new Float32Array(3*s),o=new Float32Array(s),a=new Uint32Array(3*s),c=new Int32Array(3*s*2),f=3*s,l=new Uint32Array(f),h=new Uint32Array(2*r);for(let t=0;t<s;++t){const e=3*t;for(let t=0;t<3;++t)++h[2*n[e+t]]}{let t=0;for(let e=0;e<r;++e){const r=2*e;h[r+1]=t,t+=h[r]}for(let t=0;t<s;++t){const e=3*t;for(let r=0;r<3;++r)l[h[2*n[e+r]+1]++]=t}for(let t=0;t<r;++t)h[2*t+1]-=h[2*t]}let d=0;const p=new Uint32Array(2*f*2),y=new Uint32Array(2*r);for(let t=0;t<r;++t){const e=2*t,r=4*h[e+1];y[e]=r,y[e+1]=r}function m(t,e,r){const n=Math.min(t,e),s=Math.max(t,e),i=t<e?0:1,u=2*n,o=y[u],a=y[u+1];let f=-1;for(let t=o;t<a;t+=2)if(p[t]===s){f=p[t+1];break}return-1===f&&(f=d++,p[a]=s,p[a+1]=f,y[u+1]=a+2,c[2*f+(1-i)]=-1),c[2*f+i]=r,f}for(let r=0;r<n.length;r+=3){const s=n[r],c=s*e,f=t[c],l=t[c+1],h=t[c+2],d=n[r+1],p=d*e,y=t[p],E=t[p+1],M=t[p+2],B=n[r+2],T=B*e,_=f-y,b=l-E,S=h-M,A=f-t[T],g=l-t[T+1],v=h-t[T+2],x=b*v-S*g,N=S*A-_*v,R=_*g-b*A,I=Math.sqrt(x*x+N*N+R*R)||1,O=r/3;o[O]=.5*I;const C=1/I;if(i){const t=i[0]*x+i[3]*N+i[6]*R,e=i[1]*x+i[4]*N+i[7]*R,r=i[2]*x+i[5]*N+i[8]*R;u[3*O]=t*C,u[3*O+1]=e*C,u[3*O+2]=r*C}else u[3*O]=x*C,u[3*O+1]=N*C,u[3*O+2]=R*C;const w=m(s,d,O),F=m(d,B,O),U=m(B,s,O);a[3*O]=w,a[3*O+1]=F,a[3*O+2]=U}return{faceNormals:u,faceAreas:o,faceEdges:a,vertexFaces:l,vertexFaceCountAndOffset:h,edgeFaces:c}}(e,r,i,t,s,n);return function(t,e,r,n,s,i){const u=new Uint8Array(e),o=new Uint32Array(e),a=new Uint32Array(3*e);let c=0;const f=new Uint32Array(e);let l=0;for(let e=0;e<t.length;e+=3){const t=e/3;if(1===u[t])continue;u[t]=1;const h=r[3*t],d=r[3*t+1],p=r[3*t+2];for(l=0,f[l++]=t,a[0]=s[3*t],a[1]=s[3*t+1],a[2]=s[3*t+2],c=3,o[t]=t+1;c>0;){const e=a[--c];for(let n=0;n<2;++n){const m=i[2*e+n];if(-1===m||o[m]===t+1)continue;o[m]=t+1;const E=r[3*m],M=r[3*m+1],B=r[3*m+2];if(Math.abs(1-(h*E+d*M+p*B))<y){f[l++]=m,u[m]=1;for(let t=0;t<3;++t){const r=s[3*m+t];r!==e&&(a[c++]=r)}}}}if(l>1){let t=0,e=0,s=0,i=0;for(let u=0;u<l;++u){const o=f[u],a=n[o];t+=a,e+=r[3*o]*a,s+=r[3*o+1]*a,i+=r[3*o+2]*a}const u=Math.sqrt(e*e+s*s+i*i)||1;e/=u,s/=u,i/=u;for(let u=0;u<l;++u){const o=f[u];r[3*o]=e,r[3*o+1]=s,r[3*o+2]=i,n[o]=t}}}}(t,s,u,o,a,c),p(s,i,t,u,o,f,l)}function h(t,e,r,n,s){const i=r/4,u=n/4,o=s.outputVertexCount,c=new Float32Array(o*u),f=new Uint32Array(c.buffer),l=i,h=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,r,n,s,i,u){for(let o=0;o<i;++o){const i=o*s,a=o*e;for(let e=0;e<s;++e)t[a+e]=n[i+e];t[a+r]=u[o]}}(f,u,l,h,i,e,s.packedNormals),d(f,u,l,h,i,e,o,s.appendedVertexToOriginal,s.packedNormals),new a(c.buffer,s.indices)}function d(t,e,r,n,s,i,u,o,a){for(let c=i;c<u;++c){const u=o[c-i]*s,f=c*e;for(let e=0;e<s;++e)t[f+e]=n[u+e];t[f+r]=a[c]}}function p(t,e,r,n,s,i,u){const o=3*t,a=new(o<256?Uint8Array:o<65536?Uint16Array:Uint32Array)(r);let f=e;const l=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(o-e),h=new ArrayBuffer(4*o),d=new Int16Array(h),p=new Uint32Array(h);let y=0,E=0;const M=new Uint32Array(t);let B=0;const T=1-m;for(let t=0;t<e;++t){y=u[2*t+1],E=y+u[2*t];let r=t;for(;y<E;){{const t=i[--E],e=3*t,u=n[e],o=n[e+1],a=n[e+2];B=0,M[B++]=t;let c=y;for(;c<E;){const t=i[c],e=3*t;if(u*n[e]+o*n[e+1]+a*n[e+2]>T){M[B++]=t;const e=--E;if(c<e){i[c]=i[e];continue}}++c}let f=0,l=0,h=0;if(1===B)f=u,l=o,h=a;else{for(let t=0;t<B;++t){const e=M[t],r=s[e],i=3*e;f+=n[i]*r,l+=n[i+1]*r,h+=n[i+2]*r}const t=Math.sqrt(f*f+l*l+h*h)||1;f/=t,l/=t,h/=t}{const t=1/(Math.abs(f)+Math.abs(l)+Math.abs(h)),e=f*t,n=l*t;let s=e,i=n;h<=0&&(s=(e>=0?1:-1)*(1-Math.abs(n)),i=(n>=0?1:-1)*(1-Math.abs(e)));const u=2*r,o=Math.round(32767*s),a=Math.round(32767*i);d[u]=o<-32767?-32767:o>32767?32767:o,d[u+1]=a<-32767?-32767:a>32767?32767:a}}if(r!==t)for(let e=0;e<B;++e){const n=3*M[e];a[n]===t&&(a[n]=r),a[n+1]===t&&(a[n+1]=r),a[n+2]===t&&(a[n+2]=r)}if(y>=E)break;r=f++,l[r-e]=t}}return new c(a,p,l,f,f-e)}const y=.04,m=.8},1843(t,e,r){r.d(e,{BP:()=>l,l5:()=>h});var n=r(20498),s=r(13030),i=r(90239),u=r(4431),o=r(620),a=r(85079);class c{constructor(t,e,r=0){this.layout=t,this.byteOffset=r,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const n=t.fields.get(e);this[e]=new n.constructor(this.buffer,r+n.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new c(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const s=this.stride;if(s%4==0){const i=new Uint32Array(t.buffer,e*s,n*s/4);new Uint32Array(this.buffer,r*s,n*s/4).set(i)}else{const i=new Uint8Array(t.buffer,e*s,n*s);new Uint8Array(this.buffer,r*s,n*s).set(i)}return this}get usedMemory(){return this.byteLength}dispose(){}}class f{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:y(t[1].constructor)})))}freeze(){return this}get locations(){return(0,a.Xk)((0,u.U)(this))}vec2f16(t,e){return this._appendField(t,n.SX?s.ZD:s.gH,e),this}vec2f(t,e){return this._appendField(t,s.gH,e),this}vec2f64(t,e){return this._appendField(t,s.si,e),this}vec3f16(t,e){return this._appendField(t,n.SX?s.EC:s.xs,e),this}vec3f(t,e){return this._appendField(t,s.xs,e),this}vec3f64(t,e){return this._appendField(t,s.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.SX?s.jz:s.Eq,e),this}vec4f(t,e){return this._appendField(t,s.Eq,e),this}vec4f64(t,e){return this._appendField(t,s.Aj,e),this}mat3f(t,e){return this._appendField(t,s.jZ,e),this}mat3f64(t,e){return this._appendField(t,s.j0,e),this}mat4f(t,e){return this._appendField(t,s.Sx,e),this}mat4f64(t,e){return this._appendField(t,s.E$,e),this}vec4u8(t,e){return this._appendField(t,s.XP,e),this}f16(t,e){return this._appendField(t,n.SX?s.XW:s.Y$,e),this}f32(t,e){return this._appendField(t,s.Y$,e),this}f64(t,e){return this._appendField(t,s.qB,e),this}u8(t,e){return this._appendField(t,s.SL,e),this}u16(t,e){return this._appendField(t,s.h,e),this}i8(t,e){return this._appendField(t,s.bf,e),this}vec2i8(t,e){return this._appendField(t,s.D6,e),this}vec2i16(t,e){return this._appendField(t,s.mJ,e),this}vec2u8(t,e){return this._appendField(t,s.LC,e),this}vec2u16(t,e){return this._appendField(t,s.Yi,e),this}vec4u16(t,e){return this._appendField(t,s.Uz,e),this}vec4i16(t,e){return this._appendField(t,s.E7,e),this}u32(t,e){return this._appendField(t,s.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,o.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,i.GJ)(e.ElementType),s=this._stride;this._fields.set(t,{constructor:e,size:n,offset:s,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,i.GJ)(r.constructor.ElementType);t=Math.floor((t+n-1)/n)*n,r.offset=t,t+=r.size,e=Math.max(e,n)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new c(this,t)}createView(t,e){return new c(this,t,e)}clone(){const t=new f;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function l(){return new f}class h{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:p(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const d=[s.Y$,s.gH,s.xs,s.Eq,s.jZ,s.Sx,s.qB,s.si,s.Xm,s.Aj,s.j0,s.E$,s.SL,s.LC,s.eI,s.XP,s.h,s.Yi,s.nS,s.Uz,s.P,s.An,s.H$,s.ml,s.bf,s.D6,s.m8,s.TX,s.Qt,s.mJ,s.Vp,s.E7,s.My,s.UL,s.zD,s.Y4];function p(t){return`${t.ElementType}_${t.ElementCount}`}function y(t){return m.get(t)}const m=new Map;d.forEach(t=>m.set(p(t),t))},4431(t,e,r){r.d(e,{U:()=>i});var n=r(63907),s=r(74038);function i(t,e=0){const r=t.stride;return t.fields.entries().map(([t,i])=>{const u=i.constructor.ElementCount,o=function(t){switch(t){case"u8":return n.pe.UNSIGNED_BYTE;case"u16":return n.pe.UNSIGNED_SHORT;case"u32":return n.pe.UNSIGNED_INT;case"i8":return n.pe.BYTE;case"i16":return n.pe.SHORT;case"i32":return n.pe.INT;case"f16":return n.pe.HALF_FLOAT;case"f32":return n.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(i.constructor.ElementType),a=i.offset,c=i.optional?.glNormalized??!1,f=i.optional?.integer??!1;return new s._(t,u,o,a,r,c,e,f)}).toArray()}},10614(t,e,r){r.d(e,{Tz:()=>u,aT:()=>i});var n=r(34727),s=r(35522);function i(t,e,r,n,s,i=2,u=0){const a=1/(Math.abs(r)+Math.abs(n)+Math.abs(s)),c=r*a,f=n*a,l=s<=0?(c>=0?1:-1)*(1-Math.abs(f)):c,h=s<=0?(f>=0?1:-1)*(1-Math.abs(c)):f,d=e*i+u;t[d]=o(l),t[d+1]=o(h)}function u(t,e,r,n=2,i=0){const u=r*n+i,o=a(e[u]),c=a(e[u+1]),f=1-Math.abs(o)-Math.abs(c);return t[2]=f,f<0?(t[0]=(o>=0?1:-1)*(1-Math.abs(c)),t[1]=(c>=0?1:-1)*(1-Math.abs(o))):(t[0]=o,t[1]=c),(0,s.S8)(t,t)}function o(t){return(0,n.qE)(Math.round(32767*t),-32767,32767)}function a(t){return(0,n.qE)(t/32767,-1,1)}r(51850)},620(t,e,r){r.d(e,{O_:()=>i,vA:()=>s}),r(48163),r(78955),(0,r(91829).vt)();class n{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function s(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new n(`${e} at ${t}`)}}function i(t,e,r,n){let s,i=(r[0]-t[0])/e[0],u=(n[0]-t[0])/e[0];i>u&&(s=i,i=u,u=s);let o=(r[1]-t[1])/e[1],a=(n[1]-t[1])/e[1];if(o>a&&(s=o,o=a,a=s),i>a||o>u)return!1;o>i&&(i=o),a<u&&(u=a);let c=(r[2]-t[2])/e[2],f=(n[2]-t[2])/e[2];return c>f&&(s=c,c=f,f=s),!(i>f||c>u||(f<u&&(u=f),u<0))}},65786(t,e,r){const n=class{};new n,r.d(e,["Y",0,n])},85079(t,e,r){r.d(e,{Sk:()=>u,Xk:()=>s,_u:()=>i});var n=r(21818);function s(t){let e=0;return(0,n.z)(new Map(t.map(({name:t,count:r})=>{const n=[t,e];return 16===r?e+=4:9===r?e+=3:++e,n})))}function i(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:n})=>{e.set(t,r),16===n?r+=4:9===n?r+=3:++r})),e}function u(t){return i(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>n});class n{constructor(t,e,r,n,s,i=!1,u=0,o=!1){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=s,this.normalized=i,this.divisor=u,this.integer=o}}},63907(t,e,r){const n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},i=Object.values(s),u={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};r.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,s,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,i,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,u,"pe",0,n,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
|