@arcgis/core 5.1.0-next.80 → 5.1.0-next.82
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/analysis/ShadowCast/DiscreteOptions.d.ts +12 -0
- package/analysis/ShadowCast/TotalDurationOptions.d.ts +12 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/040884cec4b84dd1bb17.js +1 -0
- package/assets/esri/core/workers/chunks/05c5f68e117fc58ae801.js +1 -0
- package/assets/esri/core/workers/chunks/074f5e6aaeafca13bf72.js +1 -0
- package/assets/esri/core/workers/chunks/{7bd1d624f4f4a11a31e8.js → 086d7cdfa92a649c9f7b.js} +1 -1
- package/assets/esri/core/workers/chunks/{0eed2b1b06355ab89013.js → 0c074c46d106ca4d3bad.js} +1 -1
- package/assets/esri/core/workers/chunks/{d7324a00ed576e7a37b1.js → 1768f1a7e3caa6074d91.js} +1 -1
- package/assets/esri/core/workers/chunks/{85d3475667c503ec4fc6.js → 186bfde8c552e3b42302.js} +1 -1
- package/assets/esri/core/workers/chunks/1a35121a0c2595a41fdb.js +1 -0
- package/assets/esri/core/workers/chunks/1ab66600579fa4232d7b.js +1 -0
- package/assets/esri/core/workers/chunks/{d5fd99ee40bba9b48a54.js → 1e2c0c6d724f7639d4c1.js} +27 -27
- package/assets/esri/core/workers/chunks/1e3fe89970c57a883fe5.js +1 -0
- package/assets/esri/core/workers/chunks/{824051af00e7a1f05ed0.js → 230e0e43f8e771950397.js} +1 -1
- package/assets/esri/core/workers/chunks/26f804c92077c11c626d.js +1 -0
- package/assets/esri/core/workers/chunks/28a45bd26eb5c9b3ec7c.js +1 -0
- package/assets/esri/core/workers/chunks/38f1a86b8dd9ee684ee5.js +596 -0
- package/assets/esri/core/workers/chunks/{c1d4110aa494a1dba3c4.js → 455d08294e0f5c5509ff.js} +1 -1
- package/assets/esri/core/workers/chunks/{71fe127734f33d020a44.js → 475394218caaa4cd3e86.js} +1 -1
- package/assets/esri/core/workers/chunks/475409026288f0981ce2.js +1 -0
- package/assets/esri/core/workers/chunks/4e206957b28253ddc1a3.js +1 -0
- package/assets/esri/core/workers/chunks/{87d2021e91d025a2a142.js → 5c7ba4b8a9ec2e2e02b5.js} +1 -1
- package/assets/esri/core/workers/chunks/5cc38ac051d3d0557920.js +1 -0
- package/assets/esri/core/workers/chunks/{992cd87ba0ab6346f692.js → 64e268ebac0b62076f81.js} +1 -1
- package/assets/esri/core/workers/chunks/{003fd7745966fe03510c.js → 65ac73de5bb133c6bf89.js} +1 -1
- package/assets/esri/core/workers/chunks/6675d56f49d07a97dc40.js +1 -0
- package/assets/esri/core/workers/chunks/{1f82a0f134ea912fc686.js → 66fe1634c6e8f72fc653.js} +1 -1
- package/assets/esri/core/workers/chunks/{96b13b6042cdf5833d39.js → 67abbe81c16de26f61d8.js} +1 -1
- package/assets/esri/core/workers/chunks/{484d6c1b0fe1633515b7.js → 72f8f4cfa0842d325fb0.js} +1 -1
- package/assets/esri/core/workers/chunks/{283d39dfb1625b5a74db.js → 747e258f57f0543c836e.js} +1 -1
- package/assets/esri/core/workers/chunks/{dd4f431511edd975a53b.js → 7acf82763aeba44049d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{5d8e944b192aad4cf986.js → 7b505112c7e6d9b7a239.js} +1 -1
- package/assets/esri/core/workers/chunks/7b8466f892a38a53c600.js +1 -0
- package/assets/esri/core/workers/chunks/{6a0352d20596ca3f4b64.js → 88eb1e4320c4ada01711.js} +1 -1
- package/assets/esri/core/workers/chunks/{77dd719516138afb1a2a.js → 8af9a78cf316581ea482.js} +1 -1
- package/assets/esri/core/workers/chunks/97719271a3e4c9f2b2c9.js +1 -0
- package/assets/esri/core/workers/chunks/988e91cc6cf88c34c2de.js +1 -0
- package/assets/esri/core/workers/chunks/9c402657f63a4d5668d0.js +1 -0
- package/assets/esri/core/workers/chunks/9cac70164d8528c283af.js +1 -0
- package/assets/esri/core/workers/chunks/9ea23cd4b2664c08b670.js +1 -0
- package/assets/esri/core/workers/chunks/9f51a69b8f1937a8794a.js +1 -0
- package/assets/esri/core/workers/chunks/a28124bba6b43efd74cc.js +1 -0
- package/assets/esri/core/workers/chunks/ac5999c88c27b49cd760.js +1 -0
- package/assets/esri/core/workers/chunks/af762422a65c551dcd54.js +1 -0
- package/assets/esri/core/workers/chunks/{056fd7847caaff2c9514.js → af8bc56cf1404afc3028.js} +1 -1
- package/assets/esri/core/workers/chunks/b811d62284be95f4beb6.js +1 -0
- package/assets/esri/core/workers/chunks/b9e163f4a898e50cc854.js +1 -0
- package/assets/esri/core/workers/chunks/{444f0f51b3ee0b9845a5.js → bb2f6b0fcdfb8b158e26.js} +1 -1
- package/assets/esri/core/workers/chunks/{3b9100c59a8050f4834e.js → bbc27d9285162696d089.js} +1 -1
- package/assets/esri/core/workers/chunks/{5da2051f548c2942e01a.js → bc8a74da48b08309875f.js} +1 -1
- package/assets/esri/core/workers/chunks/bd8cb64b6e08839398f3.js +1 -0
- package/assets/esri/core/workers/chunks/{026d3fa331caec1ea3d2.js → bf4dd8e50704e4040966.js} +1 -1
- package/assets/esri/core/workers/chunks/c19e3f6027b6526de359.js +1 -0
- package/assets/esri/core/workers/chunks/c8ef80a7c46d7d2c5172.js +1 -0
- package/assets/esri/core/workers/chunks/cbf1a03f54bd8d2a2b47.js +1 -0
- package/assets/esri/core/workers/chunks/ce4dfc3a470230ddc9e4.js +1 -0
- package/assets/esri/core/workers/chunks/{8ea4584e07ccc85caabd.js → d11de13537b623739e14.js} +1 -1
- package/assets/esri/core/workers/chunks/d897412b99b9fba44bb4.js +1 -0
- package/assets/esri/core/workers/chunks/d9c3f14eee4db7a7137b.js +1 -0
- package/assets/esri/core/workers/chunks/{035dbb0217f83108fa89.js → db86a1119e4e58ecfbda.js} +1 -1
- package/assets/esri/core/workers/chunks/dcb7a3ff59677b1cf0f1.js +1 -0
- package/assets/esri/core/workers/chunks/{5fe97253f80c797fad7f.js → df8a3d3cac454d42e14d.js} +1 -1
- package/assets/esri/core/workers/chunks/dfe1139124fda0d6c059.js +1 -0
- package/assets/esri/core/workers/chunks/{8b8f391f27774aec6db9.js → e0b27bceb397482bd0e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{fb9e3e7cd532ac4353f1.js → e89dc473f46a5584d2ef.js} +32 -32
- package/assets/esri/core/workers/chunks/{01ee18782a50279f907e.js → f4220b6eab0865318033.js} +1 -1
- package/assets/esri/core/workers/chunks/{42336e0d1ef88737b078.js → f468c6ea2818a1f97e19.js} +1 -1
- package/assets/esri/core/workers/chunks/{3f242f8d092f601c3abf.js → f77d23ee60c876b01e4b.js} +1 -1
- package/assets/esri/core/workers/chunks/fce2306a1b31c6680f90.js +1 -0
- package/assets/esri/core/workers/chunks/fcf51697c361e0075cc2.js +1 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +15 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_en.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
- package/chunks/ShadowCastVisualize.glsl.js +33 -15
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/config.js +1 -1
- package/core/workers/registry.js +1 -1
- package/form/elements/inputs/MultipleChoiceInput.d.ts +6 -6
- package/form/elements/inputs/MultipleChoiceInput.js +1 -1
- package/form/elements/inputs.js +1 -1
- package/geometry/SpatialReference.js +1 -1
- package/geometry/support/coordsUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/BaseDynamicLayer.js +1 -1
- package/layers/BaseTileLayer.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/FeatureLayer.d.ts +2 -2
- package/layers/FeatureLayer.js +1 -1
- package/layers/MapImageLayer.js +1 -1
- package/layers/TileLayer.js +1 -1
- package/layers/WMSLayer.js +1 -1
- package/layers/WMTSLayer.js +1 -1
- package/layers/WebTileLayer.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/sources/MemorySource.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/FeatureLayerBase.js +1 -1
- package/layers/mixins/TiledImagery.js +1 -1
- package/layers/support/imageBitmapUtils.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/package.json +1 -1
- package/request/process.js +1 -1
- package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +37 -0
- package/rest/knowledgeGraph/CreateReplicaResponse.js +2 -0
- package/rest/knowledgeGraph/ReplicaDefinition.d.ts +91 -0
- package/rest/knowledgeGraph/ReplicaDefinition.js +2 -0
- package/rest/knowledgeGraph/ReplicasInformationResponse.d.ts +24 -0
- package/rest/knowledgeGraph/ReplicasInformationResponse.js +2 -0
- package/rest/knowledgeGraph/UnregisterReplicaResponse.d.ts +44 -0
- package/rest/knowledgeGraph/UnregisterReplicaResponse.js +2 -0
- package/rest/knowledgeGraph/wasmInterface/replicaToWasmEncodedFactories.js +2 -0
- package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +2 -0
- package/rest/knowledgeGraphService.d.ts +50 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/vectorTiles/RenderBucket.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.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/hittestUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.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/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/input/MapViewInputManager.js +1 -1
- package/views/2d/layers/BaseDynamicLayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/WMSLayerView2D.js +1 -1
- package/views/2d/layers/WMTSLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/layers/ElevationLayerView3D.js +1 -1
- package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerWorker.js +2 -0
- package/views/3d/layers/IntegratedMesh3DTilesLayerWorkerHandle.js +2 -0
- package/views/3d/layers/TileLayerView3D.js +1 -1
- package/views/3d/layers/WMTSLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/tessellationUtils.js +1 -1
- package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +2 -0
- package/views/3d/layers/support/makeScheduleFunction.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/TerrainData.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialInitParameters.js +2 -0
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBuffer.js +1 -1
- package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
- package/views/3d/webgl-engine/effects/precipitation/Precipitation.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/StencilUtils.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/materials/VisualVariablePassParameters.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/colorRampParameters.js +2 -0
- package/views/VideoView.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileGenerationUtils.js +1 -1
- package/views/draw/support/createUtils.js +1 -1
- package/views/input/BrowserEventSource.js +1 -1
- package/views/input/InputManager.js +1 -1
- package/views/input/handlers/LatestPen.js +2 -0
- package/views/input/handlers/LatestPointer.js +1 -1
- package/views/input/types.d.ts +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/editGeometry/EditGeometry.js +1 -1
- package/views/support/TextureCompressionWorker.js +1 -1
- package/views/support/TextureCompressionWorkerHandle.js +1 -1
- package/views/support/unnormalizationUtils.js +2 -0
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/renderState.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
- package/widgets/ElevationProfile/support/profileUtils.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/css.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/05c3146d87d917606193.js +0 -1
- package/assets/esri/core/workers/chunks/0b77c124b743067e4155.js +0 -1
- package/assets/esri/core/workers/chunks/11241781baaed346af52.js +0 -1
- package/assets/esri/core/workers/chunks/1d9560eb8b21b9e76616.js +0 -1
- package/assets/esri/core/workers/chunks/2c87c3112a43db8624f6.js +0 -1
- package/assets/esri/core/workers/chunks/2da62687ff678b690839.js +0 -1
- package/assets/esri/core/workers/chunks/3a58708217a9c11836ab.js +0 -1
- package/assets/esri/core/workers/chunks/3bbf684ee2484eb44c9f.js +0 -1
- package/assets/esri/core/workers/chunks/49fb9c47070641bce9a9.js +0 -1
- package/assets/esri/core/workers/chunks/4eed175277eb0df3c821.js +0 -1
- package/assets/esri/core/workers/chunks/4f9d027055f3a616173c.js +0 -1
- package/assets/esri/core/workers/chunks/5417308eba30e668b1ee.js +0 -1
- package/assets/esri/core/workers/chunks/62b3e933f548ce354b99.js +0 -1
- package/assets/esri/core/workers/chunks/63381d81adce0a0d2089.js +0 -1
- package/assets/esri/core/workers/chunks/6dbddf5ab1867ac2ac80.js +0 -1
- package/assets/esri/core/workers/chunks/6e70e922331704b92a08.js +0 -1
- package/assets/esri/core/workers/chunks/7c7c11c0fde8b63e330b.js +0 -1
- package/assets/esri/core/workers/chunks/7f55eef696e9ed717bfc.js +0 -1
- package/assets/esri/core/workers/chunks/89dbea6f436d45a3b185.js +0 -1
- package/assets/esri/core/workers/chunks/8f6f5dad52747d252aac.js +0 -596
- package/assets/esri/core/workers/chunks/99c189e1de2b1f14799b.js +0 -1
- package/assets/esri/core/workers/chunks/9aa6b32cb65fbaa93218.js +0 -1
- package/assets/esri/core/workers/chunks/9d216e30d04ea21fc8a2.js +0 -1
- package/assets/esri/core/workers/chunks/9d434360dfce1e49b7b9.js +0 -1
- package/assets/esri/core/workers/chunks/a5d8d6f3c0c8de474efd.js +0 -1
- package/assets/esri/core/workers/chunks/a809b811121099a87a98.js +0 -1
- package/assets/esri/core/workers/chunks/c02ba921c0a32d2021e3.js +0 -1
- package/assets/esri/core/workers/chunks/c3c19b62d948d53118a8.js +0 -1
- package/assets/esri/core/workers/chunks/c46a4adea39636a96d03.js +0 -1
- package/assets/esri/core/workers/chunks/c5507480344176fad241.js +0 -1
- package/assets/esri/core/workers/chunks/c6030271bd6d39b6e1db.js +0 -1
- package/assets/esri/core/workers/chunks/d1a7d13e1d48abcd7bf1.js +0 -1
- package/assets/esri/core/workers/chunks/dcbc4072c18278c2b67d.js +0 -1
- package/assets/esri/core/workers/chunks/e610d24539a675fb054b.js +0 -1
- package/assets/esri/core/workers/chunks/ecb7ede6a8e6c05e4c6c.js +0 -1
- package/assets/esri/core/workers/chunks/f227b34cce6843df0fb6.js +0 -1
- package/assets/esri/core/workers/chunks/fb5a2205f05afc396119.js +0 -1
- package/request/ImageWithType.js +0 -2
- package/views/3d/layers/support/fetchTile.js +0 -2
- package/views/interactive/editGeometry/unnormalizationHelper.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4259],{5482(t,e,r){function n(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function i(t,e,r){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}r.d(e,{Cg:()=>n,hk:()=>o,mS:()=>i}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function o(t){function e(e){t.error=t.hasError?new s(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var r,n=0;return function i(){for(;r=t.stack.pop();)try{if(!r.async&&1===n)return n=0,t.stack.push(r),Promise.resolve().then(i);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(s).then(i,function(t){return e(t),i()})}else n|=1}catch(t){e(t)}if(1===n)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},73354(t,e,r){r.d(e,{a:()=>h,b:()=>a,c:()=>u,d:()=>s,e:()=>d,f:()=>f,l:()=>l,n:()=>p,t:()=>o});var n=r(40876),i=(r(44208),r(72727));function s(t,e,r){o(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function o(t,e,r,n=3,s=n){const o=(0,i.k)(t.length,n,3),u=(0,i.k)(e.length,s,3),a=Math.min(o,u),c=r[0],l=r[1],f=r[2],h=r[4],d=r[5],p=r[6],y=r[8],m=r[9],g=r[10],M=r[12],B=r[13],b=r[14];let x=0,T=0;for(let r=0;r<a;r++){const r=e[x],i=e[x+1],o=e[x+2];t[T]=c*r+h*i+y*o+M,t[T+1]=l*r+d*i+m*o+B,t[T+2]=f*r+p*i+g*o+b,x+=s,T+=n}return t}function u(t,e,r){a(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function a(t,e,r,n=3,s=n){const o=(0,i.k)(t.length,n,3),u=(0,i.k)(e.length,s,3),a=Math.min(o,u),c=r[0],l=r[1],f=r[2],h=r[3],d=r[4],p=r[5],y=r[6],m=r[7],g=r[8];let M=0,B=0;for(let r=0;r<a;r++){const r=e[M],i=e[M+1],o=e[M+2];t[B]=c*r+h*i+y*o,t[B+1]=l*r+d*i+m*o,t[B+2]=f*r+p*i+g*o,M+=s,B+=n}}function c(t,e,r,n=3,i=n){const s=Math.min(t.length/n,e.length/i);let o=0,u=0;for(let a=0;a<s;a++)t[u]=r*e[o],t[u+1]=r*e[o+1],t[u+2]=r*e[o+2],o+=i,u+=n;return t}function l(t,e,r,n){f(t.typedBuffer,e.typedBuffer,r,n,t.typedBufferStride,e.typedBufferStride)}function f(t,e,r,i,s=3,o=s){const u=Math.min(t.length/s,e.length/o);let a=0,c=0;const l=1/n.Tf;for(let n=0;n<u;n++)t[c]=i*(r*e[a])**l,t[c+1]=i*(r*e[a+1])**l,t[c+2]=i*(r*e[a+2])**l,a+=o,c+=s}function h(t,e,r,n=3,s=n){const o=(0,i.k)(t.length,n,3),u=(0,i.k)(e.length,s,3),a=Math.min(o,u);let c=0,l=0;for(let i=0;i<a;i++)t[l]=e[c]+r[0],t[l+1]=e[c+1]+r[1],t[l+2]=e[c+2]+r[2],c+=s,l+=n;return t}function d(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,r=3,n=r){const i=Math.min(t.length/r,e.length/n);let s=0,o=0;for(let u=0;u<i;u++){const i=e[s],u=e[s+1],a=e[s+2],c=i*i+u*u+a*a;if(c>0){const e=1/Math.sqrt(c);t[o]=e*i,t[o+1]=e*u,t[o+2]=e*a}s+=n,o+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:f,linearToSRGBView:l,normalize:p,normalizeView:d,scale:c,scaleView:function(t,e,r){c(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,r){const n=Math.min(t.count,e.count),i=t.typedBuffer,s=t.typedBufferStride,o=e.typedBuffer,u=e.typedBufferStride;let a=0,c=0;for(let t=0;t<n;t++)i[c]=o[a]>>r,i[c+1]=o[a+1]>>r,i[c+2]=o[a+2]>>r,a+=u,c+=s},transformMat3:a,transformMat3View:u,transformMat4:o,transformMat4View:s,translate:h},Symbol.toStringTag,{value:"Module"}))},50867(t,e,r){r.d(e,{a:()=>s,b:()=>l,l:()=>c,n:()=>u,t:()=>o});var n=r(40876),i=(r(44208),r(72727));function s(t,e,r){o(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function o(t,e,r,n=4,s=n){const o=(0,i.k)(t.length,n,4),u=(0,i.k)(e.length,s,4),a=Math.min(o,u),c=r[0],l=r[1],f=r[2],h=r[3],d=r[4],p=r[5],y=r[6],m=r[7],g=r[8];let M=0,B=0;for(let r=0;r<a;r++){const r=e[M],i=e[M+1],o=e[M+2],u=e[M+3];t[B]=c*r+h*i+y*o,t[B+1]=l*r+d*i+m*o,t[B+2]=f*r+p*i+g*o,t[B+3]=u,M+=s,B+=n}}function u(t,e){const r=Math.min(t.count,e.count),n=t.typedBuffer,i=t.typedBufferStride,s=e.typedBuffer,o=e.typedBufferStride;for(let t=0;t<r;t++){const e=t*i,r=t*o,u=s[r],a=s[r+1],c=s[r+2],l=u*u+a*a+c*c;if(l>0){const t=1/Math.sqrt(l);n[e]=t*u,n[e+1]=t*a,n[e+2]=t*c}}}function a(t,e,r,n=4){const i=Math.min(t.length/n,e.count),s=e.typedBuffer,o=e.typedBufferStride;let u=0,a=0;for(let e=0;e<i;e++)t[a]=r*s[u],t[a+1]=r*s[u+1],t[a+2]=r*s[u+2],t[a+3]=r*s[u+3],u+=o,a+=n}function c(t,e,r,n){l(t.typedBuffer,e,r,n,t.typedBufferStride)}function l(t,e,r,i,s=4){const o=Math.min(t.length/s,e.count),u=e.typedBuffer,a=e.typedBufferStride;let c=0,l=0;const f=1/n.Tf;for(let e=0;e<o;e++)t[l]=i*(r*u[c])**f,t[l+1]=i*(r*u[c+1])**f,t[l+2]=i*(r*u[c+2])**f,t[l+3]=i*r*u[c+3],c+=a,l+=s}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:l,linearToSRGBView:c,normalize:u,scale:a,scaleView:function(t,e,r){a(t.typedBuffer,e,r,t.typedBufferStride)},transformMat3:o,transformMat3View:s,transformMat4:function(t,e,r,n=4,s=n){const o=(0,i.k)(t.length,n,4),u=(0,i.k)(e.length,s,4),a=Math.min(o,u),c=r[0],l=r[1],f=r[2],h=r[3],d=r[4],p=r[5],y=r[6],m=r[7],g=r[8],M=r[9],B=r[10],b=r[11],x=r[12],T=r[13],E=r[14],S=r[15];let _=0,v=0;for(let r=0;r<a;r++){const r=e[_],i=e[_+1],o=e[_+2],u=e[_+3];t[v]=c*r+d*i+g*o+x*u,t[v+1]=l*r+p*i+M*o+T*u,t[v+2]=f*r+y*i+B*o+E*u,t[v+3]=h*r+m*i+b*o+S*u,_+=s,v+=n}},transformMat4View:function(t,e,r){const n=t.typedBuffer,s=t.typedBufferStride,o=e.typedBuffer,u=e.typedBufferStride,a=(0,i.k)(n.length,s,4),c=(0,i.k)(o.length,u,4),l=Math.min(a,c),f=r[0],h=r[1],d=r[2],p=r[3],y=r[4],m=r[5],g=r[6],M=r[7],B=r[8],b=r[9],x=r[10],T=r[11],E=r[12],S=r[13],_=r[14],v=r[15];for(let t=0;t<l;t++){const e=t*s,r=t*u,i=o[r],a=o[r+1],c=o[r+2],l=o[r+3];n[e]=f*i+y*a+B*c+E*l,n[e+1]=h*i+m*a+b*c+S*l,n[e+2]=d*i+g*a+x*c+_*l,n[e+3]=p*i+M*a+T*c+v*l}}},Symbol.toStringTag,{value:"Module"}))},40876(t,e,r){r.d(e,{Eq:()=>d,G1:()=>y,TS:()=>s,Tf:()=>M,V6:()=>i,Vm:()=>p,ay:()=>a,c1:()=>m,c4:()=>o,j5:()=>c,lT:()=>f,oW:()=>l,xV:()=>b});const n={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 i(t){return!!n[t]||!!n[t.toLowerCase()]}function s(t){return n[t]??n[t.toLowerCase()]}function o(t){return[...s(t)]}function u(t,e,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?t+(e-t)*n:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function a(t,e,r,n=1){const i=(t%360+360)%360/360,s=r<=.5?r*(e+1):r+e-r*e,o=2*r-s;return[Math.round(255*u(o,s,i+1/3)),Math.round(255*u(o,s,i)),Math.round(255*u(o,s,i-1/3)),n]}function c(t){const e=t.length>5,r=e?8:4,n=(1<<r)-1,i=e?1:17,s=e?9===t.length:5===t.length;let o=Number("0x"+t.slice(1));if(isNaN(o))return null;const u=[0,0,0,1];let a;return s&&(a=o&n,o>>=r,u[3]=i*a/255),a=o&n,o>>=r,u[2]=i*a,a=o&n,o>>=r,u[1]=i*a,a=o&n,o>>=r,u[0]=i*a,u}function l(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),r=parseInt(t.slice(2,3),16),n=parseInt(t.slice(3,4),16),i=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,r+16*r,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function f(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),r=e[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),h(e)}return h(t.map(t=>parseFloat(t)))}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return a(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function h(t){return t[0]=m(t[0]),t[1]=m(t[1]),t[2]=m(t[2]),t[3]=4===t.length?y(t[3]):1,t}function d(t){let e=i(t)?s(t):null;return e??=f(t),e??=l(t),e}function p(t){const e=d(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function y(t){return g(t,0,1)}function m(t){return Math.round(g(t,0,255))}function g(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}const M=2.2,B=1/M;function b(t){return t**B}},69540(t,e,r){r.d(e,{OU:()=>l,Pw:()=>f});var n=r(5482),i=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),u=r(88620),a=r(64108);const c=Symbol("ClonableMixin"),l=t=>{var e;const r=t;let i=class extends r{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){const e=(0,u.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const r=e.metadata,n=e.store,i={},a=new Map;for(const e in r){const o=r[e],u=n?.originOf(e),c=o.clonable;if(o.readOnly||!1===c||7!==u&&0!==u&&5!==u&&4!==u)continue;const l=this[e];let f=null;if("function"==typeof c)f=c(l,t);else if("reference"===c)f=l;else if(f=(0,s.TU)(l,t),null!=l&&null==f)continue;0===u?a.set(e,f):i[e]=f}const c=new(0,Object.getPrototypeOf(this).constructor)(i);if(a.size){const t=(0,u.oY)(c)?.store;if(t)for(const[e,r]of a)t.set(e,r,0)}return c}};return i=(0,n.Cg)([(0,a.$)("esri.core.Clonable")],i),i},f=l(i.A)},95488(t,e,r){r.d(e,{I:()=>i});var n=r(11406);class i extends n.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(e,{o8:()=>i,vt:()=>n,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:n,fromValues:function(t,e,r,n,i,s,o,u,a,c,l,f,h,d,p,y){return[t,e,r,n,i,s,o,u,a,c,l,f,h,d,p,y]}},Symbol.toStringTag,{value:"Module"}))},48163(t,e,r){function n(){return[0,0]}function i(t){return[t[0],t[1]]}function s(t,e){return[t,e]}function o(){return s(1,1)}function u(){return s(1,0)}function a(){return s(0,1)}r.d(e,{Un:()=>c,fA:()=>s,o8:()=>i,vt:()=>n});const c=o(),l=u(),f=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:l,UNIT_Y:f,ZEROS:[0,0],clone:i,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:s,ones:o,unitX:u,unitY:a,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,r){function n(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function s(t,e,r){return[t,e,r]}function o(t,e,r){return[t,e,r]}function u(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[0,0,0]}function c(){return s(1,1,1)}function l(){return s(1,0,0)}function f(){return s(0,1,0)}function h(){return s(0,0,1)}r.d(e,{CN:()=>o,Cb:()=>g,Cw:()=>y,JP:()=>m,S:()=>c,Ul:()=>a,Un:()=>p,ci:()=>u,fA:()=>s,o8:()=>i,uY:()=>d,vt:()=>n});const d=[0,0,0],p=c(),y=l(),m=f(),g=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:y,UNIT_Y:m,UNIT_Z:g,ZEROS:d,clone:i,create:n,freeze:o,fromArray:u,fromValues:s,ones:c,unitX:l,unitY:f,unitZ:h,zeros:a},Symbol.toStringTag,{value:"Module"}))},91829(t,e,r){function n(){return[0,0,0,0]}function i(t,e,r,n){return[t,e,r,n]}function s(t,e,r,n){return[t,e,r,n]}function o(){return i(1,1,1,1)}function u(){return i(1,0,0,0)}function a(){return i(0,1,0,0)}function c(){return i(0,0,1,0)}function l(){return i(0,0,0,1)}r.d(e,{CN:()=>s,Un:()=>h,fA:()=>i,uY:()=>f,vt:()=>n});const f=[0,0,0,0],h=o(),d=u(),p=a(),y=c(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:d,UNIT_Y:p,UNIT_Z:y,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,freeze:s,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:i,ones:o,unitW:l,unitX:u,unitY:a,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304(t,e,r){r.d(e,{DF:()=>a,FD:()=>i,Ov:()=>s,ct:()=>c});let n=1e-6;function i(){return n}const s=Math.random,o=Math.PI/180,u=180/Math.PI;function a(t){return t*o}function c(t){return t*u}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:s,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:i,setEpsilon:function(t){n=t},toDegree:c,toRadian:a},Symbol.toStringTag,{value:"Module"}))},58083(t,e,r){r.d(e,{$0:()=>m,$h:()=>v,B8:()=>c,C:()=>s,D_:()=>u,N9:()=>M,O7:()=>_,Tl:()=>f,X_:()=>T,aI:()=>N,e$:()=>d,eL:()=>p,hM:()=>g,hZ:()=>o,hs:()=>h,kN:()=>y,l:()=>E,lw:()=>l,mg:()=>a,o1:()=>S,sC:()=>x,t2:()=>R,t5:()=>A,tZ:()=>O,ut:()=>Y,v3:()=>w});var n=r(51850),i=r(34304);function s(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[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function o(t,e,r,n,i,s,o,u,a,c,l,f,h,d,p,y,m){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=s,t[5]=o,t[6]=u,t[7]=a,t[8]=c,t[9]=l,t[10]=f,t[11]=h,t[12]=d,t[13]=p,t[14]=y,t[15]=m,t}function u(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function a(t,e){if(t===e){const r=e[1],n=e[2],i=e[3],s=e[6],o=e[7],u=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=s,t[11]=e[14],t[12]=i,t[13]=o,t[14]=u}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){const r=e[0],n=e[1],i=e[2],s=e[3],o=e[4],u=e[5],a=e[6],c=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],y=e[13],m=e[14],g=e[15],M=r*u-n*o,B=r*a-i*o,b=r*c-s*o,x=n*a-i*u,T=n*c-s*u,E=i*c-s*a,S=l*y-f*p,_=l*m-h*p,v=l*g-d*p,w=f*m-h*y,A=f*g-d*y,C=h*g-d*m;let R=M*C-B*A+b*w+x*v-T*_+E*S;return R?(R=1/R,t[0]=(u*C-a*A+c*w)*R,t[1]=(i*A-n*C-s*w)*R,t[2]=(y*E-m*T+g*x)*R,t[3]=(h*T-f*E-d*x)*R,t[4]=(a*v-o*C-c*_)*R,t[5]=(r*C-i*v+s*_)*R,t[6]=(m*b-p*E-g*B)*R,t[7]=(l*E-h*b+d*B)*R,t[8]=(o*A-u*v+c*S)*R,t[9]=(n*v-r*A-s*S)*R,t[10]=(p*T-y*b+g*M)*R,t[11]=(f*b-l*T-d*M)*R,t[12]=(u*_-o*w-a*S)*R,t[13]=(r*w-n*_+i*S)*R,t[14]=(y*B-p*x-m*M)*R,t[15]=(l*x-f*B+h*M)*R,t):null}function l(t,e,r){const n=e[0],i=e[1],s=e[2],o=e[3],u=e[4],a=e[5],c=e[6],l=e[7],f=e[8],h=e[9],d=e[10],p=e[11],y=e[12],m=e[13],g=e[14],M=e[15];let B=r[0],b=r[1],x=r[2],T=r[3];return t[0]=B*n+b*u+x*f+T*y,t[1]=B*i+b*a+x*h+T*m,t[2]=B*s+b*c+x*d+T*g,t[3]=B*o+b*l+x*p+T*M,B=r[4],b=r[5],x=r[6],T=r[7],t[4]=B*n+b*u+x*f+T*y,t[5]=B*i+b*a+x*h+T*m,t[6]=B*s+b*c+x*d+T*g,t[7]=B*o+b*l+x*p+T*M,B=r[8],b=r[9],x=r[10],T=r[11],t[8]=B*n+b*u+x*f+T*y,t[9]=B*i+b*a+x*h+T*m,t[10]=B*s+b*c+x*d+T*g,t[11]=B*o+b*l+x*p+T*M,B=r[12],b=r[13],x=r[14],T=r[15],t[12]=B*n+b*u+x*f+T*y,t[13]=B*i+b*a+x*h+T*m,t[14]=B*s+b*c+x*d+T*g,t[15]=B*o+b*l+x*p+T*M,t}function f(t,e,r){const n=r[0],i=r[1],s=r[2];if(e===t)t[12]=e[0]*n+e[4]*i+e[8]*s+e[12],t[13]=e[1]*n+e[5]*i+e[9]*s+e[13],t[14]=e[2]*n+e[6]*i+e[10]*s+e[14],t[15]=e[3]*n+e[7]*i+e[11]*s+e[15];else{const r=e[0],o=e[1],u=e[2],a=e[3],c=e[4],l=e[5],f=e[6],h=e[7],d=e[8],p=e[9],y=e[10],m=e[11];t[0]=r,t[1]=o,t[2]=u,t[3]=a,t[4]=c,t[5]=l,t[6]=f,t[7]=h,t[8]=d,t[9]=p,t[10]=y,t[11]=m,t[12]=r*n+c*i+d*s+e[12],t[13]=o*n+l*i+p*s+e[13],t[14]=u*n+f*i+y*s+e[14],t[15]=a*n+h*i+m*s+e[15]}return t}function h(t,e,r){const n=r[0],i=r[1],s=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,r,n){let o=n[0],u=n[1],a=n[2],c=Math.sqrt(o*o+u*u+a*a);if(c<=(0,i.FD)())return void s(t,e);c=1/c,o*=c,u*=c,a*=c;const l=Math.sin(r),f=Math.cos(r),h=1-f,d=e[0],p=e[1],y=e[2],m=e[3],g=e[4],M=e[5],B=e[6],b=e[7],x=e[8],T=e[9],E=e[10],S=e[11],_=o*o*h+f,v=u*o*h+a*l,w=a*o*h-u*l,A=o*u*h-a*l,C=u*u*h+f,R=a*u*h+o*l,N=o*a*h+u*l,Y=u*a*h-o*l,O=a*a*h+f;t[0]=d*_+g*v+x*w,t[1]=p*_+M*v+T*w,t[2]=y*_+B*v+E*w,t[3]=m*_+b*v+S*w,t[4]=d*A+g*C+x*R,t[5]=p*A+M*C+T*R,t[6]=y*A+B*C+E*R,t[7]=m*A+b*C+S*R,t[8]=d*N+g*Y+x*O,t[9]=p*N+M*Y+T*O,t[10]=y*N+B*Y+E*O,t[11]=m*N+b*Y+S*O,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function p(t,e,r){const n=Math.sin(r),i=Math.cos(r),s=e[4],o=e[5],u=e[6],a=e[7],c=e[8],l=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*i+c*n,t[5]=o*i+l*n,t[6]=u*i+f*n,t[7]=a*i+h*n,t[8]=c*i-s*n,t[9]=l*i-o*n,t[10]=f*i-u*n,t[11]=h*i-a*n,t}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function m(t,e,r){if(0===e)return u(t);let n=r[0],s=r[1],o=r[2],a=Math.sqrt(n*n+s*s+o*o);if(a<=(0,i.FD)())return null;a=1/a,n*=a,s*=a,o*=a;const c=Math.sin(e),l=Math.cos(e),f=1-l;return t[0]=n*n*f+l,t[1]=s*n*f+o*c,t[2]=o*n*f-s*c,t[3]=0,t[4]=n*s*f-o*c,t[5]=s*s*f+l,t[6]=o*s*f+n*c,t[7]=0,t[8]=n*o*f+s*c,t[9]=s*o*f-n*c,t[10]=o*o*f+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function B(t,e,r){const n=e[0],i=e[1],s=e[2],o=e[3],u=n+n,a=i+i,c=s+s,l=n*u,f=n*a,h=n*c,d=i*a,p=i*c,y=s*c,m=o*u,g=o*a,M=o*c;return t[0]=1-(d+y),t[1]=f+M,t[2]=h-g,t[3]=0,t[4]=f-M,t[5]=1-(l+y),t[6]=p+m,t[7]=0,t[8]=h+g,t[9]=p-m,t[10]=1-(l+d),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const b=(0,n.vt)();function x(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function T(t,e){const r=e[0],n=e[1],i=e[2],s=e[4],o=e[5],u=e[6],a=e[8],c=e[9],l=e[10];return t[0]=Math.sqrt(r*r+n*n+i*i),t[1]=Math.sqrt(s*s+o*o+u*u),t[2]=Math.sqrt(a*a+c*c+l*l),t}function E(t,e){const r=e[0]+e[5]+e[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),t[3]=.25*n,t[0]=(e[6]-e[9])/n,t[1]=(e[8]-e[2])/n,t[2]=(e[1]-e[4])/n):e[0]>e[5]&&e[0]>e[10]?(n=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/n,t[0]=.25*n,t[1]=(e[1]+e[4])/n,t[2]=(e[8]+e[2])/n):e[5]>e[10]?(n=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/n,t[0]=(e[1]+e[4])/n,t[1]=.25*n,t[2]=(e[6]+e[9])/n):(n=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/n,t[0]=(e[8]+e[2])/n,t[1]=(e[6]+e[9])/n,t[2]=.25*n),t}function S(t,e,r,n){const i=e[0],s=e[1],o=e[2],u=e[3],a=i+i,c=s+s,l=o+o,f=i*a,h=i*c,d=i*l,p=s*c,y=s*l,m=o*l,g=u*a,M=u*c,B=u*l,b=n[0],x=n[1],T=n[2];return t[0]=(1-(p+m))*b,t[1]=(h+B)*b,t[2]=(d-M)*b,t[3]=0,t[4]=(h-B)*x,t[5]=(1-(f+m))*x,t[6]=(y+g)*x,t[7]=0,t[8]=(d+M)*T,t[9]=(y-g)*T,t[10]=(1-(f+p))*T,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function _(t,e,r,n,i){const s=e[0],o=e[1],u=e[2],a=e[3],c=s+s,l=o+o,f=u+u,h=s*c,d=s*l,p=s*f,y=o*l,m=o*f,g=u*f,M=a*c,B=a*l,b=a*f,x=n[0],T=n[1],E=n[2],S=i[0],_=i[1],v=i[2],w=(1-(y+g))*x,A=(d+b)*x,C=(p-B)*x,R=(d-b)*T,N=(1-(h+g))*T,Y=(m+M)*T,O=(p+B)*E,X=(m-M)*E,P=(1-(h+y))*E;return t[0]=w,t[1]=A,t[2]=C,t[3]=0,t[4]=R,t[5]=N,t[6]=Y,t[7]=0,t[8]=O,t[9]=X,t[10]=P,t[11]=0,t[12]=r[0]+S-(w*S+R*_+O*v),t[13]=r[1]+_-(A*S+N*_+X*v),t[14]=r[2]+v-(C*S+Y*_+P*v),t[15]=1,t}function v(t,e,r,n,i,s,o){const u=1/(r-e),a=1/(i-n),c=1/(s-o);return t[0]=2*s*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*a,t[6]=0,t[7]=0,t[8]=(r+e)*u,t[9]=(i+n)*a,t[10]=(o+s)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*c,t[15]=0,t}function w(t,e,r,n,i,s,o){const u=1/(e-r),a=1/(n-i),c=1/(s-o);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*u,t[13]=(i+n)*a,t[14]=(o+s)*c,t[15]=1,t}function A(t,e,r,n){const s=e[0],o=e[1],a=e[2];let c=s-r[0],l=o-r[1],f=a-r[2];const h=(0,i.FD)();if(Math.abs(c)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void u(t);let d=1/Math.sqrt(c*c+l*l+f*f);c*=d,l*=d,f*=d;const p=n[0],y=n[1],m=n[2];let g=y*f-m*l,M=m*c-p*f,B=p*l-y*c;d=Math.sqrt(g*g+M*M+B*B),d?(d=1/d,g*=d,M*=d,B*=d):(g=0,M=0,B=0);let b=l*B-f*M,x=f*g-c*B,T=c*M-l*g;d=Math.sqrt(b*b+x*x+T*T),d?(d=1/d,b*=d,x*=d,T*=d):(b=0,x=0,T=0),t[0]=g,t[1]=b,t[2]=c,t[3]=0,t[4]=M,t[5]=x,t[6]=l,t[7]=0,t[8]=B,t[9]=T,t[10]=f,t[11]=0,t[12]=-(g*s+M*o+B*a),t[13]=-(b*s+x*o+T*a),t[14]=-(c*s+l*o+f*a),t[15]=1}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[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[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function R(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[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function N(t,e){if(t===e)return!0;const r=t[0],n=t[1],s=t[2],o=t[3],u=t[4],a=t[5],c=t[6],l=t[7],f=t[8],h=t[9],d=t[10],p=t[11],y=t[12],m=t[13],g=t[14],M=t[15],B=e[0],b=e[1],x=e[2],T=e[3],E=e[4],S=e[5],_=e[6],v=e[7],w=e[8],A=e[9],C=e[10],R=e[11],N=e[12],Y=e[13],O=e[14],X=e[15],P=(0,i.FD)();return Math.abs(r-B)<=P*Math.max(1,Math.abs(r),Math.abs(B))&&Math.abs(n-b)<=P*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(s-x)<=P*Math.max(1,Math.abs(s),Math.abs(x))&&Math.abs(o-T)<=P*Math.max(1,Math.abs(o),Math.abs(T))&&Math.abs(u-E)<=P*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(a-S)<=P*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(c-_)<=P*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(l-v)<=P*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(f-w)<=P*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(h-A)<=P*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(d-C)<=P*Math.max(1,Math.abs(d),Math.abs(C))&&Math.abs(p-R)<=P*Math.max(1,Math.abs(p),Math.abs(R))&&Math.abs(y-N)<=P*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(m-Y)<=P*Math.max(1,Math.abs(m),Math.abs(Y))&&Math.abs(g-O)<=P*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(M-X)<=P*Math.max(1,Math.abs(M),Math.abs(X))}function Y(t){const e=(0,i.FD)(),r=t[0],n=t[1],s=t[2],o=t[4],u=t[5],a=t[6],c=t[8],l=t[9],f=t[10];return Math.abs(1-(r*r+o*o+c*c))<=e&&Math.abs(1-(n*n+u*u+l*l))<=e&&Math.abs(1-(s*s+a*a+f*f))<=e}function O(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const X=l,P=C;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[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t},adjoint:function(t,e){const r=e[0],n=e[1],i=e[2],s=e[3],o=e[4],u=e[5],a=e[6],c=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],y=e[13],m=e[14],g=e[15];return t[0]=u*(h*g-d*m)-f*(a*g-c*m)+y*(a*d-c*h),t[1]=-(n*(h*g-d*m)-f*(i*g-s*m)+y*(i*d-s*h)),t[2]=n*(a*g-c*m)-u*(i*g-s*m)+y*(i*c-s*a),t[3]=-(n*(a*d-c*h)-u*(i*d-s*h)+f*(i*c-s*a)),t[4]=-(o*(h*g-d*m)-l*(a*g-c*m)+p*(a*d-c*h)),t[5]=r*(h*g-d*m)-l*(i*g-s*m)+p*(i*d-s*h),t[6]=-(r*(a*g-c*m)-o*(i*g-s*m)+p*(i*c-s*a)),t[7]=r*(a*d-c*h)-o*(i*d-s*h)+l*(i*c-s*a),t[8]=o*(f*g-d*y)-l*(u*g-c*y)+p*(u*d-c*f),t[9]=-(r*(f*g-d*y)-l*(n*g-s*y)+p*(n*d-s*f)),t[10]=r*(u*g-c*y)-o*(n*g-s*y)+p*(n*c-s*u),t[11]=-(r*(u*d-c*f)-o*(n*d-s*f)+l*(n*c-s*u)),t[12]=-(o*(f*m-h*y)-l*(u*m-a*y)+p*(u*h-a*f)),t[13]=r*(f*m-h*y)-l*(n*m-i*y)+p*(n*h-i*f),t[14]=-(r*(u*m-a*y)-o*(n*m-i*y)+p*(n*a-i*u)),t[15]=r*(u*h-a*f)-o*(n*h-i*f)+l*(n*a-i*u),t},copy:s,determinant:function(t){const e=t[0],r=t[1],n=t[2],i=t[3],s=t[4],o=t[5],u=t[6],a=t[7],c=t[8],l=t[9],f=t[10],h=t[11],d=t[12],p=t[13],y=t[14],m=t[15];return(e*o-r*s)*(f*m-h*y)-(e*u-n*s)*(l*m-h*p)+(e*a-i*s)*(l*y-f*p)+(r*u-n*o)*(c*m-h*d)-(r*a-i*o)*(c*y-f*d)+(n*a-i*u)*(c*p-l*d)},equals:N,exactEquals:R,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+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const r=e[0],n=e[1],i=e[2],s=e[3],o=r+r,u=n+n,a=i+i,c=r*o,l=n*o,f=n*u,h=i*o,d=i*u,p=i*a,y=s*o,m=s*u,g=s*a;return t[0]=1-f-p,t[1]=l+g,t[2]=h-m,t[3]=0,t[4]=l-g,t[5]=1-c-p,t[6]=d+y,t[7]=0,t[8]=h+m,t[9]=d-y,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const r=b,n=-e[0],i=-e[1],s=-e[2],o=e[3],u=e[4],a=e[5],c=e[6],l=e[7],f=n*n+i*i+s*s+o*o;return f>0?(r[0]=2*(u*o+l*n+a*s-c*i)/f,r[1]=2*(a*o+l*i+c*n-u*s)/f,r[2]=2*(c*o+l*s+u*i-a*n)/f):(r[0]=2*(u*o+l*n+a*s-c*i),r[1]=2*(a*o+l*i+c*n-u*s),r[2]=2*(c*o+l*s+u*i-a*n)),B(t,e,r),t},fromRotation:m,fromRotationTranslation:B,fromRotationTranslationScale:S,fromRotationTranslationScaleOrigin:_,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:g,fromYRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:M,frustum:v,getRotation:E,getScale:T,getTranslation:x,hasIdentityRotation:O,identity:u,invert:c,invertOrIdentity:function(t,e){return c(t,e)||u(t),t},isOrthoNormal:Y,lookAt:A,mul:X,multiply:l,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[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*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[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t},ortho:w,perspective:function(t,e,r,n,i){const s=1/Math.tan(e/2);let o;return t[0]=s/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(n-i),t[10]=(i+n)*o,t[14]=2*i*n*o):(t[10]=-1,t[14]=-2*n),t},perspectiveFromFieldOfView:function(t,e,r,n){const i=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),u=Math.tan(e.rightDegrees*Math.PI/180),a=2/(o+u),c=2/(i+s);return t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-u)*a*.5,t[9]=(i-s)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t},rotate:d,rotateX:p,rotateY:function(t,e,r){const n=Math.sin(r),i=Math.cos(r),s=e[0],o=e[1],u=e[2],a=e[3],c=e[8],l=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*i-c*n,t[1]=o*i-l*n,t[2]=u*i-f*n,t[3]=a*i-h*n,t[8]=s*n+c*i,t[9]=o*n+l*i,t[10]=u*n+f*i,t[11]=a*n+h*i,t},rotateZ:function(t,e,r){const n=Math.sin(r),i=Math.cos(r),s=e[0],o=e[1],u=e[2],a=e[3],c=e[4],l=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*i+c*n,t[1]=o*i+l*n,t[2]=u*i+f*n,t[3]=a*i+h*n,t[4]=c*i-s*n,t[5]=l*i-o*n,t[6]=f*i-u*n,t[7]=h*i-a*n,t},scale:h,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:P,subtract:C,targetTo:function(t,e,r,n){const i=e[0],s=e[1],o=e[2],u=n[0],a=n[1],c=n[2];let l=i-r[0],f=s-r[1],h=o-r[2],d=l*l+f*f+h*h;d>0&&(d=1/Math.sqrt(d),l*=d,f*=d,h*=d);let p=a*h-c*f,y=c*l-u*h,m=u*f-a*l;return d=p*p+y*y+m*m,d>0&&(d=1/Math.sqrt(d),p*=d,y*=d,m*=d),t[0]=p,t[1]=y,t[2]=m,t[3]=0,t[4]=f*m-h*y,t[5]=h*p-l*m,t[6]=l*y-f*p,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=i,t[13]=s,t[14]=o,t[15]=1,t},translate:f,transpose:a},Symbol.toStringTag,{value:"Module"}))},35522(t,e,r){r.d(e,{$A:()=>_,Bw:()=>s,C:()=>o,Cc:()=>v,DI:()=>T,Il:()=>L,Io:()=>M,Ln:()=>g,Om:()=>S,Qr:()=>f,Re:()=>c,S8:()=>E,T9:()=>y,WQ:()=>a,Z0:()=>w,_S:()=>d,aI:()=>P,ei:()=>A,fw:()=>R,g7:()=>N,gL:()=>C,hG:()=>B,hZ:()=>u,hs:()=>m,jb:()=>j,jk:()=>p,lo:()=>F,lw:()=>l,m3:()=>b,oW:()=>k,t2:()=>X,tn:()=>h,uE:()=>Z,xg:()=>I,ze:()=>x});var n=r(51850),i=r(34304);function s(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(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 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 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 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 g(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],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}function B(t,e){const r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}function b(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function T(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function E(t,e){const r=e[0],n=e[1],i=e[2];let s=r*r+n*n+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function _(t,e,r){const n=e[0],i=e[1],s=e[2],o=r[0],u=r[1],a=r[2];return t[0]=i*a-s*u,t[1]=s*o-n*a,t[2]=n*u-i*o,t}function v(t,e,r,n){const i=e[0],s=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=s+n*(r[1]-s),t[2]=o+n*(r[2]-o),t}function w(t,e,r){const n=e[0],i=e[1],s=e[2];return t[0]=r[0]*n+r[4]*i+r[8]*s+r[12],t[1]=r[1]*n+r[5]*i+r[9]*s+r[13],t[2]=r[2]*n+r[6]*i+r[10]*s+r[14],t}function A(t,e,r){const n=e[0],i=e[1],s=e[2];return t[0]=n*r[0]+i*r[3]+s*r[6],t[1]=n*r[1]+i*r[4]+s*r[7],t[2]=n*r[2]+i*r[5]+s*r[8],t}function C(t,e,r){return R(t,e,r[0],r[1],r[2],r[3])}function R(t,e,r,n,i,s){const o=e[0],u=e[1],a=e[2],c=n*a-i*u,l=i*o-r*a,f=r*u-n*o,h=n*f-i*l,d=i*c-r*f,p=r*l-n*c,y=2*s;return t[0]=o+c*y+2*h,t[1]=u+l*y+2*d,t[2]=a+f*y+2*p,t}function N(t,e){E(Y,t),E(O,e);const r=S(Y,O);return r>1?0:r<-1?Math.PI:Math.acos(r)}const Y=(0,n.vt)(),O=(0,n.vt)();function X(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function P(t,e){if(t===e)return!0;const r=t[0],n=t[1],s=t[2],o=e[0],u=e[1],a=e[2],c=(0,i.FD)();return Math.abs(r-o)<=c*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-u)<=c*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(s-a)<=c*Math.max(1,Math.abs(s),Math.abs(a))}function k(t,e,r){const n=r[0]-e[0],i=r[1]-e[1],s=r[2]-e[2];let o=n*n+i*i+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=n*o,t[1]=i*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const j=c,q=l,z=f,I=M,F=B,L=s,Z=b;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:a,angle:N,bezier:function(t,e,r,n,i,s){const o=1-s,u=o*o,a=s*s,c=u*o,l=3*s*u,f=3*a*o,h=a*s;return t[0]=e[0]*c+r[0]*l+n[0]*f+i[0]*h,t[1]=e[1]*c+r[1]*l+n[1]*f+i[1]*h,t[2]=e[2]*c+r[2]*l+n[2]*f+i[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:o,cross:_,crossAndNormalize:function(t,e,r){const n=e[0],i=e[1],s=e[2],o=r[0],u=r[1],a=r[2],c=i*a-s*u,l=s*o-n*a,f=n*u-i*o,h=Math.sqrt(c*c+l*l+f*f);return t[0]=c/h,t[1]=l/h,t[2]=f/h,t},direction:k,dist:I,distance:M,div:z,divide:f,dot:S,equals:P,exactEquals:X,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,i,s){const o=s*s,u=o*(2*s-3)+1,a=o*(s-2)+s,c=o*(s-1),l=o*(3-2*s);return t[0]=e[0]*u+r[0]*a+n[0]*c+i[0]*l,t[1]=e[1]*u+r[1]*a+n[1]*c+i[1]*l,t[2]=e[2]*u+r[2]*a+n[2]*c+i[2]*l,t},inverse:T,len:L,length:s,lerp:v,max:y,min:p,mul:q,multiply:l,negate:x,normalize:E,random:function(t,e=1){const r=i.Ov,n=2*r()*Math.PI,s=2*r()-1,o=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=s*e,t},rotateX:function(t,e,r,n){const i=[],s=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateY:function(t,e,r,n){const i=[],s=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateZ:function(t,e,r,n){const i=[],s=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[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:g,set:u,sign:d,sqrDist:F,sqrLen:Z,squaredDistance:B,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:j,subtract:c,transformMat3:A,transformMat4:w,transformQuat:C,transformQuatValues:R},Symbol.toStringTag,{value:"Module"}))},78955(t,e,r){r.d(e,{Bw:()=>m,C:()=>i,Cc:()=>b,LI:()=>h,Om:()=>B,S8:()=>M,T9:()=>f,WQ:()=>o,Z0:()=>x,aI:()=>E,hG:()=>y,hZ:()=>s,hs:()=>d,jk:()=>l,m3:()=>g,t2:()=>T});var n=r(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function s(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,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 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 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 l(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 f(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],i=e[2]-t[2],s=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+s*s)}function y(t,e){const r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],s=e[3]-t[3];return r*r+n*n+i*i+s*s}function m(t){const e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}function g(t){const e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}function M(t,e){const r=e[0],n=e[1],i=e[2],s=e[3];let o=r*r+n*n+i*i+s*s;return o>0&&(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=s*o),t}function B(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function b(t,e,r,n){const i=e[0],s=e[1],o=e[2],u=e[3];return t[0]=i+n*(r[0]-i),t[1]=s+n*(r[1]-s),t[2]=o+n*(r[2]-o),t[3]=u+n*(r[3]-u),t}function x(t,e,r){const n=e[0],i=e[1],s=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*s+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*s+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*s+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*s+r[15]*o,t}function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function E(t,e){const r=t[0],i=t[1],s=t[2],o=t[3],u=e[0],a=e[1],c=e[2],l=e[3],f=(0,n.FD)();return Math.abs(r-u)<=f*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-a)<=f*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(s-c)<=f*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(o-l)<=f*Math.max(1,Math.abs(o),Math.abs(l))}const S=u,_=a,v=c,w=p,A=y,C=m,R=g;Object.freeze(Object.defineProperty({__proto__:null,add:o,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:i,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:w,distance:p,div:v,divide:c,dot:B,equals:E,exactEquals:T,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:C,length:m,lerp:b,max:f,min:l,mul:_,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 i,s,o,u,a,c;do{i=2*r()-1,s=2*r()-1,a=i*i+s*s}while(a>=1);do{o=2*r()-1,u=2*r()-1,c=o*o+u*u}while(c>=1);const l=Math.sqrt((1-a)/c);return t[0]=e*i,t[1]=e*s,t[2]=e*o*l,t[3]=e*u*l,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:s,sqrDist:A,sqrLen:R,squaredDistance:y,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:S,subtract:u,transformMat4:x,transformQuat:function(t,e,r){const n=e[0],i=e[1],s=e[2],o=r[0],u=r[1],a=r[2],c=r[3],l=c*n+u*s-a*i,f=c*i+a*n-o*s,h=c*s+o*i-u*n,d=-o*n-u*i-a*s;return t[0]=l*c+d*-o+f*-a-h*-u,t[1]=f*c+d*-u+h*-o-l*-a,t[2]=h*c+d*-a+l*-u-f*-o,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},75503(t,e,r){r.d(e,{wq:()=>u});var n=r(4576),i=r(21818),s=(r(44208),r(15142)),o=r(11006);class u{constructor(t=9,e){this._compareMinX=h,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),T.prune(),E.prune(),S.prune()}all(t){a(this._data,t)}search(t,e){let r=this._data;const n=this._toBBox;if(B(t,r))for(x.clear();r;){for(let i=0,s=r.children.length;i<s;i++){const s=r.children[i],o=r.leaf?n(s):s;B(t,o)&&(r.leaf?e(s):M(t,o)?a(s,e):x.push(s))}r=x.pop()}}collides(t){let e=this._data;const r=this._toBBox;if(!B(t,e))return!1;for(x.clear();e;){for(let n=0,i=e.children.length;n<i;n++){const i=e.children[n],s=e.leaf?r(i):i;if(B(t,s)){if(e.leaf||M(t,s))return!0;x.push(i)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,r=t.length;e<r;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new w([]),this}remove(t){if(!t)return this;let e,r=this._data,s=null,o=0,u=!1;const a=this._toBBox(t);for(E.clear(),S.clear();r||E.length>0;){if(r||(r=E.pop(),s=E.data[E.length-1],o=S.pop()??0,u=!0),r.leaf&&(e=(0,n.qh)(r.children,(0,i.z)(t),r.children.length,r.indexHint),-1!==e))return r.children.splice(e,1),E.push(r),this._condense(E),this;u||r.leaf||!M(r,a)?s?(o++,r=s.children[o],u=!1):r=null:(E.push(r),S.push(o),o=0,s=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,r,n){const i=r-e+1;let s=this._maxEntries;if(i<=s){const n=new w(t.slice(e,r+1));return c(n,this._toBBox),n}n||(n=Math.ceil(Math.log(i)/Math.log(s)),s=Math.ceil(i/s**(n-1)));const o=new A([]);o.height=n;const u=Math.ceil(i/s),a=u*Math.ceil(Math.sqrt(s));b(t,e,r,a,this._compareMinX);for(let i=e;i<=r;i+=a){const e=Math.min(i+a-1,r);b(t,i,e,u,this._compareMinY);for(let r=i;r<=e;r+=u){const i=Math.min(r+u-1,e);o.children.push(this._build(t,r,i,n-1))}}return c(o,this._toBBox),o}_insert(t,e,r){const n=this._toBBox,i=r?t:n(t);E.clear();const s=function(t,e,r,n){for(;n.push(e),!0!==e.leaf&&n.length-1!==r;){let r,n=1/0,i=1/0;for(let s=0,o=e.children.length;s<o;s++){const o=e.children[s],u=p(o),a=m(t,o)-u;a<i?(i=a,n=u<n?u:n,r=o):a===i&&u<n&&(n=u,r=o)}e=r||e.children[0]}return e}(i,this._data,e,E);for(s.children.push(t),f(s,i);e>=0&&E.data[e].children.length>this._maxEntries;)this._split(E,e),e--;!function(t,e,r){for(let n=r;n>=0;n--)f(e.data[n],t)}(i,E,e)}_split(t,e){const r=t.data[e],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);const s=this._chooseSplitIndex(r,i,n);if(!s)return;const o=r.children.splice(s,r.children.length-s),u=r.leaf?new w(o):new A(o);u.height=r.height,c(r,this._toBBox),c(u,this._toBBox),e?t.data[e-1].children.push(u):this._splitRoot(r,u)}_splitRoot(t,e){this._data=new A([t,e]),this._data.height=t.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(t,e,r){let n,i,s;n=i=1/0;for(let o=e;o<=r-e;o++){const e=l(t,0,o,this._toBBox),u=l(t,o,r,this._toBBox),a=g(e,u),c=p(e)+p(u);a<n?(n=a,s=o,i=c<i?c:i):a===n&&c<i&&(i=c,s=o)}return s}_chooseSplitAxis(t,e,r){const n=t.leaf?this._compareMinX:h,i=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,i)&&t.children.sort(n)}_allDistMargin(t,e,r,n){t.children.sort(n);const i=this._toBBox,s=l(t,0,e,i),o=l(t,r-e,r,i);let u=y(s)+y(o);for(let n=e;n<r-e;n++){const e=t.children[n];f(s,t.leaf?i(e):e),u+=y(s)}for(let n=r-e-1;n>=e;n--){const e=t.children[n];f(o,t.leaf?i(e):e),u+=y(o)}return u}_condense(t){for(let e=t.length-1;e>=0;e--){const r=t.data[e];if(0===r.children.length)if(e>0){const i=t.data[e-1],s=i.children;s.splice((0,n.qh)(s,r,s.length,i.indexHint),1)}else this.clear();else c(r,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){let r=t;for(T.clear();r;){if(!0===r.leaf)for(const t of r.children)e((0,i.z)(t));else T.pushArray(r.children);r=T.pop()??null}}function c(t,e){l(t,0,t.children.length,e,t)}function l(t,e,r,n,i){i||(i=new w([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let s,o=e;o<r;o++)s=t.children[o],f(i,t.leaf?n(s):s);return i}function f(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function h(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function p(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function y(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function g(t,e){const r=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),s=Math.min(t.maxY,e.maxY);return Math.max(0,i-r)*Math.max(0,s-n)}function M(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function B(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function b(t,e,r,n,i){const s=[e,r];for(;s.length;){const e=s.pop(),r=s.pop();if(e-r<=n)continue;const u=r+Math.ceil((e-r)/n/2)*n;(0,o.q)(t,u,r,e,i),s.push(r,u,u,e)}}const x=new s.A,T=new s.A,E=new s.A,S=new s.A({deallocator:void 0});class _{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class v extends _{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class w extends v{constructor(t){super(),this.children=t,this.leaf=!0}}class A extends v{constructor(t){super(),this.children=t,this.leaf=!1}}},91075(t,e,r){r.d(e,{A:()=>a});var n=r(5482),i=r(25482),s=r(91429),o=r(16930),u=r(36005);let a=class extends i.o{constructor(...t){super(...t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=o.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof o.A)return t;if(null!=t){const r=new o.A;return r.read(t,e),r}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,n.Cg)([(0,s.MZ)()],a.prototype,"type",void 0),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],a.prototype,"cache",null),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],a.prototype,"extent",null),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],a.prototype,"hasM",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],a.prototype,"hasZ",void 0),(0,n.Cg)([(0,s.MZ)({type:o.A,json:{write:!0},value:o.A.WGS84})],a.prototype,"spatialReference",void 0),(0,n.Cg)([(0,u.w)("spatialReference")],a.prototype,"readSpatialReference",null),a=(0,n.Cg)([(0,s.$K)("esri.geometry.Geometry")],a)},86738(t,e,r){r.d(e,{A:()=>B});var n=r(5482),i=r(69622),s=r(53966),o=r(91429),u=r(56507),a=r(91075),c=r(16930),l=r(21325),f=r(28735);function h({x:t,y:e,spatialReference:r},n=[0,0]){if(r){if((0,l.K8)(r))return(0,f.tD)(t,e,n);if((0,l.EA)(r))return n[0]=t,n[1]=e,n}return null}const d=[0,0];var p,y=r(43937),m=r(36005);const g=[0,0];function M(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}let B=p=class extends a.A{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));const r=t._get("spatialReference");e._set("spatialReference",i.A.isFrozen(r)?r:r.clone())}constructor(...t){super(...t),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(t,e,r,n,i){let o;if(Array.isArray(t))o=t,i=e,t=o[0],e=o[1],r=o[2],n=o[3];else if(t&&"object"==typeof t){if(o=t,t=null!=o.x?o.x:o.longitude,e=null!=o.y?o.y:o.latitude,r=o.z,n=o.m,(i=o.spatialReference)&&"esri.geometry.SpatialReference"!==i.declaredClass&&(i=new c.A(i)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)s.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)s.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&i?.isWebMercator){const r=(0,f.je)(o.longitude,o.latitude,g);t=r[0],e=r[1]}}else M(r)?(i=r,r=null):M(n)&&(i=n,n=null);const u={x:t,y:e};return null==u.x&&null!=u.y?s.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==u.y&&null!=u.x&&s.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=i&&(u.spatialReference=i),null!=r&&(u.z=r),null!=n&&(u.m=n),u}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){return h(this,d)?.[1]??null}set latitude(t){const{spatialReference:e,x:r}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,f.je)(r,t,g)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){return h(this,d)?.[0]??null}set longitude(t){const{y:e,spatialReference:r}=this;null!=t&&r&&(r.isWebMercator?this._set("x",(0,f.je)(t,e,g)[0]):r.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,r){e[r]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){const t=new p;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return p.copy(t,this),this}equals(t){if(null==t)return!1;const{x:e,y:r,z:n,m:i,spatialReference:s}=this,{z:o,m:u}=t;let{x:a,y:c,spatialReference:l}=t;if(!s.equals(l))if(s.isWebMercator&&l.isWGS84)[a,c]=(0,f.je)(a,c),l=s;else{if(!s.isWGS84||!l.isWebMercator)return!1;[a,c]=(0,f.tD)(a,c),l=s}return e===a&&r===c&&n===o&&i===u&&s.wkid===l.wkid}offset(t,e,r){return this.x+=t,this.y+=e,null!=r&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;const t=(0,l.Vp)(this.spatialReference);if(!t)return this;let e=this.x;const[r,n]=t.valid,i=2*n;let s;return e>n?(s=Math.ceil(Math.abs(e-n)/i),e-=s*i):e<r&&(s=Math.ceil(Math.abs(e-r)/i),e+=s*i),this._set("x",e),this}distance(t){return function(t,e){const r=t.x-e.x,n=t.y-e.y,i=null!=t.z&&null!=e.z?t.z-e.z:0;return Math.sqrt(r*r+n*n+i*i)}(this,t)}toArray(){const t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],B.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],B.prototype,"hasM",null),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],B.prototype,"hasZ",null),(0,n.Cg)([(0,o.MZ)({type:Number})],B.prototype,"latitude",null),(0,n.Cg)([(0,o.MZ)({type:Number})],B.prototype,"longitude",null),(0,n.Cg)([(0,o.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,o.wg)(t=>isNaN(t)?t:(0,u.GB)(t))],B.prototype,"x",void 0),(0,n.Cg)([(0,y.K)("x")],B.prototype,"writeX",null),(0,n.Cg)([(0,m.w)("x")],B.prototype,"readX",null),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],B.prototype,"y",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],B.prototype,"z",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],B.prototype,"m",void 0),B=p=(0,n.Cg)([(0,o.$K)("esri.geometry.Point")],B),B.prototype.toJSON.isDefaultToJSON=!0},21276(t,e,r){r.d(e,{H:()=>s,f:()=>i});var n=r(49186);function i(t){if(t&&"object"==typeof t&&"type"in t&&"mesh"===t.type)throw new n.A("internal:mesh","Mesh geometries are not supported for this operation")}function s(t){t.forEach(i)}},48353(t,e,r){r.d(e,{l:()=>c});var n=r(34727),i=r(58083),s=r(51850);function o(t,e,r){const n=Math.sin(t),i=Math.cos(t),s=Math.sin(e),o=Math.cos(e),u=r;return u[0]=-n,u[4]=-s*i,u[8]=o*i,u[12]=0,u[1]=i,u[5]=-s*n,u[9]=o*n,u[13]=0,u[2]=0,u[6]=o,u[10]=s,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=r(49208),a=r(21325);function c(t,e,r,n){const s=(0,u.Tp)(t,n);if(null==s)return!1;const c=s.source.spatialReferenceId,p=s.dest.spatialReferenceId;if(c===p&&!l(p)&&(0!==c||(0,a.aI)(t,n)))return(0,i.kN)(r,e),!0;if(l(p)){const t=u.w5[c][10],n=u.w5[10][p];return null!=t&&null!=n&&(t(e,0,h,0),n(h,0,d,0),o(f*h[0],f*h[1],r),r[12]=d[0],r[13]=d[1],r[14]=d[2],!0)}const y=l(c);if((3===p||11===p||2===p||5===p)&&(2===c||y||3===c||5===c)){const t=u.w5[c][10],n=u.w5[10][p];return null!=t&&null!=n&&(t(e,0,h,0),n(h,0,d,0),y?function(t,e,r){o(t,e,r),(0,i.mg)(r,r)}(f*h[0],f*h[1],r):(0,i.D_)(r),r[12]=d[0],r[13]=d[1],r[14]=d[2],!0)}return!1}function l(t){return 1===t||6===t||8===t||4===t}const f=(0,n.kU)(1),h=(0,s.vt)(),d=(0,s.vt)()},65806(t,e,r){r.d(e,{g:()=>o});var n=r(51850),i=r(91218),s=r(9762);function o(t,e,r,n){if((0,i.canProjectWithoutEngine)(t.spatialReference,r))return u[0]=t.x,u[1]=t.y,u[2]=t.z??0,(0,s.projectBuffer)(u,t.spatialReference,0,e,r,0);const o=(0,i.tryProject)(t,r,n);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const u=(0,n.vt)()},95696(t,e,r){r.d(e,{A:()=>c});var n,i=r(5482),s=r(69540),o=r(25482),u=r(91429),a=r(93223);let c=class extends((0,s.OU)(o.o)){static{n=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new n}};(0,i.Cg)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=n=(0,i.Cg)([(0,u.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,e,r){r.r(e),r.d(e,{default:()=>c});var n=r(5482),i=r(69540),s=r(25482),o=r(91429),u=r(51850),a=r(93223);let c=class extends((0,i.OU)(s.o)){constructor(t){super(t),this.type="local",this.origin=(0,u.vt)()}};(0,n.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},13030(t,e,r){r.d(e,{Y$:()=>g,XW:()=>m,qB:()=>A,Qt:()=>W,My:()=>Q,bf:()=>V,jZ:()=>S,j0:()=>_,Sx:()=>v,E$:()=>w,h:()=>k,P:()=>I,SL:()=>Y,dy:()=>rt,gH:()=>B,ZD:()=>M,si:()=>C,mJ:()=>$,UL:()=>H,D6:()=>U,Yi:()=>j,An:()=>F,LC:()=>O,xs:()=>x,EC:()=>b,Xm:()=>R,Vp:()=>K,zD:()=>tt,m8:()=>D,nS:()=>q,H$:()=>L,eI:()=>X,td:()=>nt,Eq:()=>E,jz:()=>T,Aj:()=>N,E7:()=>J,Y4:()=>et,TX:()=>G,Uz:()=>z,ml:()=>Z,XP:()=>P});var n=r(34727),i=r(78955),s=r(91829),o=r(20498);class u{static{this.ElementCount=9}constructor(t,e,r=0,n,i){this.TypedArrayConstructor=t,this.elementCount=9;const s=this.TypedArrayConstructor;void 0===n&&(n=9*s.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==i?new s(e,o):new s(e,o,(i-r)/s.BYTES_PER_ELEMENT),this.typedBufferStride=n/s.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,i=e.typedBuffer;let s=t*this.typedBufferStride,o=r*e.typedBufferStride;for(let t=0;t<9;++t)n[s++]=i[o++]}get buffer(){return this.typedBuffer.buffer}}class a{static{this.ElementCount=16}constructor(t,e,r=0,n,i){this.TypedArrayConstructor=t,this.elementCount=16;const s=this.TypedArrayConstructor;void 0===n&&(n=16*s.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==i?new s(e,o):new s(e,o,(i-r)/s.BYTES_PER_ELEMENT),this.typedBufferStride=n/s.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 i=t*this.typedBufferStride;for(let t=0;t<16;++t)n[i++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=1}constructor(t,e,r=0,n,i){this.TypedArrayConstructor=t,this.elementCount=1;const s=this.TypedArrayConstructor;void 0===n&&(n=s.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==i?new s(e,o):new s(e,o,(i-r)/s.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/s.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}}var l=r(37585);class f{static{this.ElementCount=2}constructor(t,e,r=0,n,i){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const s=this.TypedArrayConstructor;void 0===n&&(n=2*s.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==i?new s(e,o):new s(e,o,(i-r)/s.BYTES_PER_ELEMENT),this.typedBufferStride=n/s.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,l.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,i=e.typedBuffer;let s=t*this.typedBufferStride,o=r*e.typedBufferStride;n[s++]=i[o++],n[s]=i[o]}get buffer(){return this.typedBuffer.buffer}}var h=r(35522);class d{static{this.ElementCount=3}constructor(t,e,r=0,n,i){this.TypedArrayConstructor=t,this.elementCount=3;const s=this.TypedArrayConstructor;void 0===n&&(n=3*s.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==i?new s(e,o):new s(e,o,(i-r)/s.BYTES_PER_ELEMENT),this.typedBufferStride=n/s.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,h.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,i=e.typedBuffer;let s=t*this.typedBufferStride,o=r*e.typedBufferStride;n[s++]=i[o++],n[s++]=i[o++],n[s]=i[o]}get buffer(){return this.typedBuffer.buffer}}class p{static{this.ElementCount=4}constructor(t,e,r=0,n,i){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const s=this.TypedArrayConstructor;void 0===n&&(n=4*s.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==i?new s(e,o):new s(e,o,(i-r)/s.BYTES_PER_ELEMENT),this.typedBufferStride=n/s.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,i.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,i){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=i}copyFrom(t,e,r){const n=this.typedBuffer,i=e.typedBuffer;let s=t*this.typedBufferStride,o=r*e.typedBufferStride;n[s++]=i[o++],n[s++]=i[o++],n[s++]=i[o++],n[s]=i[o]}get buffer(){return this.typedBuffer.buffer}}var y=r(620);class m extends c{constructor(t,e=0,r,n){(0,y.vA)(o.SX),super((0,o.pX)(),t,e,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class g extends c{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class M extends f{constructor(t,e=0,r,n){(0,y.vA)(o.SX),super((0,o.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(M,t,e)}static{this.ElementType="f16"}}class B extends f{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{this.ElementType="f32"}}class b extends d{constructor(t,e=0,r,n){(0,y.vA)(o.SX),super((0,o.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f16"}}class x extends d{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 fromTypedArray(t,e){return new x(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class T extends p{constructor(t,e=0,r,n){(0,y.vA)(o.SX),super((0,o.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(T,t,e)}static{this.ElementType="f16"}}class E extends p{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f32"}}class S extends u{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f32"}}class _ extends u{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f64"}}class v extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f32"}}class w extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="f64"}}class A extends c{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f64"}}class C extends f{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 R extends d{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 fromTypedArray(t,e){return new R(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class N extends p{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 Y extends c{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u8"}}class O extends f{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="u8"}}class X extends d{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(X,t,e)}static fromTypedArray(t,e){return new X(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class P extends p{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="u8"}}class k extends c{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="u16"}}class j extends f{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="u16"}}class q extends d{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="u16"}}class z extends p{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="u16"}}class I extends c{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(I,t,e)}static{this.ElementType="u32"}}class F extends f{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="u32"}}class L extends d{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(L,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 V extends c{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="i8"}}class U extends f{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(U,t,e)}static{this.ElementType="i8"}}class D extends d{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="i8"}}class G extends p{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="i8"}}class W extends c{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 $ extends f{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 K extends d{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i16"}}class J extends p{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 Q extends c{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i32"}}class H extends f{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i32"}}class tt extends d{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(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(rt,t,e)}}class nt extends P{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,i.hs)(e,super.getVec(t,e),1/255)}setVec(t,e){(0,i.jk)(it,(0,i.T9)(it,e,s.uY),s.Un),(0,i.hs)(it,it,255),(0,i.LI)(it,it),super.setVec(t,it)}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,i.hZ)(it,e,r,n,s),this.setVec(t,it)}slice(t,e){return this.sliceBuffer(nt,t,e)}}const it=(0,s.vt)()},72727(t,e,r){function n(t,e,r){if(e<=0)return 0;const n=t-r;return n<0?0:Math.floor(n/e)+1}r.d(e,{k:()=>n}),r(53966)},20498(t,e,r){r.d(e,{Bg:()=>i,SX:()=>o,pX:()=>s});let n=globalThis.Float16Array;function i(...t){return new(n??Float32Array)(...t)}function s(){return n}let o=!!n},60408(t,e,r){function n(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function u(t){return void 0!==t.rings||void 0!==t.curveRings}function a(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?s(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":u(t)?"esriGeometryPolygon":n(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function l(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)}r.d(e,{$B:()=>c,Bi:()=>u,Pv:()=>l,Rg:()=>o,U9:()=>i,W0:()=>f,ZC:()=>n,fT:()=>s,uW:()=>a})},38419(t,e,r){r.r(e),r.d(e,{default:()=>u});var n=r(44208),i=r(75503),s=r(95696),o=r(72258);class u{async createIndex(t,e){const r=new Array;if(!t.vertexAttributes?.position)return new i.wq;const n=function(t){const{vertexAttributes:{position:e},vertexSpace:r,spatialReference:n,transform:i}=t,u=(0,o.UR)({vertexAttributes:{position:e},vertexSpace:r,spatialReference:n,transform:i},s.A.absolute,{allowBufferReuse:!0})?.position;return u?!t.components||t.components.some(t=>!t.faces)?{position:u.buffer}:{position:u.buffer,components:t.components.map(t=>t.faces)}:null}(t),u=null!=e?await e.invoke("createIndexThread",n,{transferList:r}):this.createIndexThread(n).result;return a().fromJSON(u)}createIndexThread(t){const e=a();if(!t)return{result:e.toJSON()};const r=new Float64Array(t.position);return t.components?function(t,e,r){let n=0;for(const t of r)n+=t.length/3;const i=new Array(n);let s=0;for(const t of r)for(let r=0;r<t.length;r+=3)i[s++]=c(e,3*t[r],3*t[r+1],3*t[r+2]);return t.load(i),{result:t.toJSON()}}(e,r,t.components.map(t=>new Uint32Array(t))):function(t,e){const r=new Array(e.length/9);let n=0;for(let t=0;t<e.length;t+=9)r[n++]=c(e,t,t+3,t+6);return t.load(r),{result:t.toJSON()}}(e,r)}}function a(){return new i.wq(9,(0,n.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function c(t,e,r,n){return{minX:Math.min(t[e],t[r],t[n]),maxX:Math.max(t[e],t[r],t[n]),minY:Math.min(t[e+1],t[r+1],t[n+1]),maxY:Math.max(t[e+1],t[r+1],t[n+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[r],t[r+1],t[r+2]],p2:[t[n],t[n+1],t[n+2]]}}},22141(t,e,r){r.d(e,{$5:()=>E,CN:()=>B,JP:()=>M,KM:()=>_,Mv:()=>w,X4:()=>b,gr:()=>T,qs:()=>S,si:()=>x,xA:()=>v});var n=r(34727),i=r(77690),s=r(29242),o=r(58083),u=r(9093),a=r(35522),c=r(51850),l=r(73941),f=r(48353),h=r(9762),d=(r(79258),r(21325)),p=r(28735),y=r(13030),m=r(73354),g=r(50867);const M="Projection may be possible after calling projection.load().";function B(t,e,r,n){t.error(`Failed to project from (wkid:${e.wkid}) to (wkid:${r.wkid}).${n?" ":""}${n}`)}function b(t,e,r,n,i,s){return C(0,y.xs.fromTypedArray(t),0,y.Xm.fromTypedArray(e),r,y.Xm.fromTypedArray(n),i,y.xs.fromTypedArray(s))?s:null}function x(t,e,r,n,i,s){return C(1,y.xs.fromTypedArray(t),0,y.Xm.fromTypedArray(e),r,y.Xm.fromTypedArray(n),i,y.xs.fromTypedArray(s))?s:null}function T(t,e,r,n){return(0,h.projectBuffer)(t,e,0,r,n,0)?r:null}function E(t,e,r,n){return(0,h.projectBuffer)(t,e,0,r,n,0)?r:null}function S(t,e,r){return(0,i.Ge)(O,r),(0,m.b)(e,t,O),(0,n.or)(O)&&(0,m.n)(e,e),e}function _(t,e,r){return(0,i.z0)(O,r),(0,g.t)(e,t,O),(0,n.or)(O)&&(0,m.n)(e,e,4),e}function v(t,e,r,n,i,s){if(!C(0,y.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,y.Xm.fromTypedArray(e),r,y.Xm.fromTypedArray(n),i,y.xs.fromTypedArray(s,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let e=3;e<t.length;e+=4)s[e]=t[e];return s}function w(t,e,r,n,i,s){if(!C(1,y.xs.fromTypedArray(t,16),1,y.Xm.fromTypedArray(e),r,y.Xm.fromTypedArray(n),i,y.xs.fromTypedArray(s,16)))return null;for(let e=3;e<t.length;e+=4)s[e]=t[e];return s}function A(t,e,r,n,s){switch((0,f.l)(n,r,Y,n),1===t&&(0,o.B8)(Y,Y),e){case 0:return(0,i.Ge)(s,Y);case 1:return(0,i.z0)(s,Y)}}function C(t,e,r,n,i,s,o,u){if(!e)return;const c=n.count;if(function(t){return t.isWGS84||(0,d.x1)(t)||(0,l.q8)(t)||(0,l.KQ)(t)}(i))for(let n=0;n<c;n++)s.getVec(n,R),e.getVec(n,N),(0,a.ei)(N,N,A(t,r,R,o,O)),u.setVec(n,N);else for(let i=0;i<c;i++){s.getVec(i,R),e.getVec(i,N);const c=(0,p.jg)(n.get(i,1));let l=Math.cos(c);1===r!=(0===t)&&(l=1/l),A(t,r,R,o,O),0===t?(O[0]*=l,O[1]*=l,O[2]*=l,O[3]*=l,O[4]*=l,O[5]*=l):(O[0]*=l,O[3]*=l,O[6]*=l,O[1]*=l,O[4]*=l,O[7]*=l),(0,a.ei)(N,N,O),(0,a.S8)(N,N),u.setVec(i,N)}return u}const R=(0,c.vt)(),N=(0,c.vt)(),Y=(0,u.vt)(),O=(0,s.vt)()},72258(t,e,r){r.d(e,{UR:()=>x,p5:()=>b,xK:()=>w});var n=r(53966),i=r(34727),s=r(86211),o=r(77690),u=r(29242),a=r(58083),c=r(9093),l=r(35522),f=r(51850),h=r(73941),d=r(98764),p=r(48353),y=r(65806),m=r(27615),g=r(73354),M=r(22141);const B=()=>n.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function b(t,e,{vertexSpace:r,spatialReference:n}){if("georeferenced"===r.type){const i=t;if(!(0,y.g)(e,i,n))return!1;const{origin:s}=r;return(0,l.Re)(t,i,s),!0}const i=(0,d.lO)(n),s=t;if(!(0,y.g)(e,s,i))return!1;const{origin:o}=r,u=Y;if(!(0,p.l)(n,o,u,i))return!1;const c=(0,a.B8)(Y,u);return null!=c&&((0,l.Z0)(t,s,c),!0)}function x(t,e,r){const{vertexSpace:n,transform:i,vertexAttributes:s}=t,u=(0,m.Hq)(n)?i:null,f=_(t.spatialReference,r,3);if((0,m.yJ)(n,e)&&(!u||(0,a.t2)(u.localMatrix,c.zK))&&v(f)){const{position:t,normal:e,tangent:n}=s,i=r?.allowBufferReuse;return{position:i?t:t.slice(),normal:i?e:e?.slice(),tangent:i?n:n?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:r},{origin:n},i,s){const o=T(e,s);if(!(0,p.l)(e,n,A,o))return(0,M.CN)(B(),e,o),null;if(r&&(0,a.lw)(A,A,r.localMatrix),!(0,p.l)(e,i,C,o))return(0,M.CN)(B(),o,e),null;(0,a.B8)(C,C);const u=(0,a.lw)(A,C,A);return S(u,e,s,3),E(t,u)}(t,t.vertexSpace,e.origin,r):function({spatialReference:t,vertexAttributes:e,transform:r},{origin:n},i,s){const o=T(t,s);if(!(0,p.l)(t,n,A,o))return(0,M.CN)(B(),t,o),null;r&&(0,a.lw)(A,A,r.localMatrix),S(A,t,s,1);const u=new Float64Array(e.position.length),c=function(t,e,r,n,i){(0,g.t)(n,t,e);const s=new Float64Array(t.length);return(0,M.$5)(n,i,s,r)?s:((0,M.CN)(B(),i,r),null)}(e.position,A,t,u,o);if(!c)return null;const f=function(t,e,r,n,i,s){if(null==i)return null;const o=new Float32Array(i.length);return(0,M.qs)(i,o,s),(0,M.si)(o,t,e,r,n,o)?o:((0,M.CN)(B(),n,e),null)}(c,t,u,o,e.normal,A);if(e.normal&&!f)return null;const h=function(t,e,r,n,i,s){if(null==i)return null;const o=new Float32Array(i.length);return(0,M.KM)(i,o,s),(0,M.Mv)(o,t,e,r,n,o)?o:((0,M.CN)(B(),n,e),null)}(c,t,u,o,e.tangent,A);if(e.tangent&&!h)return null;if(i){const t=(0,l.ze)(N,i);(0,g.a)(c,c,t)}return{position:c,normal:f,tangent:h}}(t,t.vertexSpace,e.origin,r);case"georeferenced":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:r},{origin:n},i,s){const u=T(e,s);if(!(0,p.l)(e,i,A,u))return(0,M.CN)(B(),e,u),null;const c=1/_(e,s,2);(0,a.hs)(A,A,[c,c,c]);const l=(0,a.B8)(C,A),{position:f,normal:h,tangent:d}=function(t,e,r){if(!e)return t;if(!r){const{position:r,normal:n,tangent:i}=t;return{position:(0,g.a)(new Float64Array(r.length),r,e),tangent:i,normal:n}}const n=E(t,r.localMatrix);return(0,g.a)(n.position,n.position,e),n}(t,n,r),y=new Float64Array(f.length),m=function(t,e,r,n,i){const s=(0,M.gr)(t,e,n,i);if(!s)return(0,M.CN)(B(),e,i),null;const o=new Float64Array(s.length);return(0,g.t)(o,s,r),o}(f,e,l,y,u);if(!m)return null;const b=(0,o.Ge)(R,l),x=function(t,e,r,n,i,s,o){if(null==t)return null;const u=o??new Float32Array(t.length);return(0,M.X4)(t,e,r,n,i,u)?((0,g.b)(u,u,s),u):((0,M.CN)(B(),r,i),null)}(h,f,e,y,u,b,h!==t.normal?h:void 0);if(!x&&h)return null;const S=function(t,e,r,n,i,s,o){if(null==t)return null;const u=o??new Float32Array(t.length);return(0,M.xA)(t,e,r,n,i,u)?((0,g.b)(u,u,s,4),u):((0,M.CN)(B(),r,i),null)}(d,f,e,y,u,b,d!==t.tangent?d:void 0);return!S&&d?null:{position:m,normal:x,tangent:S}}(t,t.vertexSpace,e.origin,r):function({vertexAttributes:t,transform:e,spatialReference:r},{origin:n},i,s){const o=_(r,s,3),u=n||!v(o)?(0,a.C)(A,e?.localMatrix??c.zK):null;u&&S(u,r,s,3);const{position:f,normal:h,tangent:d}=u?E(t,u):t,p=s?.allowBufferReuse,y=p?f:new Float64Array(f.length);let m=f;if(n&&(m=(0,g.a)(y,m,n)),i){const t=(0,l.ze)(N,i);m=(0,g.a)(y,m,t)}return{position:m!==t.position||p?m:m.slice(),normal:h!==t.normal||p?h:h?.slice(),tangent:d!==t.tangent||p?d:d?.slice()}}(t,t.vertexSpace,e.origin,r)}}function T(t,e){return e?.useEllipsoid&&(0,h.B3)(t)?d.Y0:(0,d.lO)(t)}function E(t,e){const r=new Float64Array(t.position.length);(0,g.t)(r,t.position,e);const n=t.normal?new Float32Array(t.normal.length):null,i=t.tangent?new Float32Array(t.tangent.length):null;return n&&t.normal&&(0,M.qs)(t.normal,n,e),i&&t.tangent&&(0,M.KM)(t.tangent,i,e),{position:r,normal:n,tangent:i}}function S(t,e,r,n){const i=_(e,r,n);v(i)||(0,a.hs)(t,t,[i,i,i])}function _(t,e,r){const n=!!(1&r),i=!!(2&r),s=e?.sourceUnit,o=e?.targetUnit;if(!s&&!o)return 1;let u=w(s,t);n||!s||v(u)||(B().warn("source unit conversion not supported"),u=1);let a=1/w(o,t);return i||!o||v(a)||(B().warn("target unit conversion not supported"),a=1),u*a}function v(t){return(0,i.Io)(t,1)}function w(t,e){if(null==t)return 1;const r=(0,s.KX)(e);return 1/(0,s.oU)(r,"meters",t)}const A=(0,c.vt)(),C=(0,c.vt)(),R=(0,u.vt)(),N=(0,f.vt)(),Y=(0,c.vt)()},27615(t,e,r){r.d(e,{CK:()=>a,Hq:()=>u,MW:()=>c,TE:()=>l,yJ:()=>f});var n=r(35522),i=r(86738),s=r(95696),o=r(18251);function u(t){return null!=t.origin}function a(t){return u(t.vertexSpace)}function c(t,e){if(!u(t))return null;const[r,n,s]=t.origin;return new i.A({x:r,y:n,z:s,spatialReference:e})}function l(t,e){const{x:r,y:n,z:i,spatialReference:u}=t,a=[r,n,i??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(u))?new o.default({origin:a}):new s.A({origin:a})}function f(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,n.t2)(t.origin,e.origin))}},28735(t,e,r){r.d(e,{Cv:()=>y,Gh:()=>M,ci:()=>B,je:()=>m,jg:()=>l,tD:()=>g,y7:()=>p});var n=r(4718),i=r(21276),s=r(16930),o=r(79258),u=r(21325);function a(t){return 57.29577951308232*t}function c(t){return.017453292519943*t}function l(t){return Math.PI/2-2*Math.atan(Math.exp(-t/o.$O.radius))}function f(t){return null!=t.wkid||null!=t.wkt}const h=[0,0];function d(t,e,r,n,i){const s=t,o=i;if(o.spatialReference=r,"x"in s&&"x"in o)[o.x,o.y]=e(s.x,s.y,h,n);else if("xmin"in s&&"xmin"in o)[o.xmin,o.ymin]=e(s.xmin,s.ymin,h,n),[o.xmax,o.ymax]=e(s.xmax,s.ymax,h,n);else if("paths"in s&&"paths"in o||"rings"in s&&"rings"in o){const t="paths"in s?s.paths:s.rings,r=[];let i;for(let s=0;s<t.length;s++){const o=t[s];i=[],r.push(i);for(let t=0;t<o.length;t++)i.push(e(o[t][0],o[t][1],[0,0],n)),o[t].length>2&&i[t].push(o[t][2]),o[t].length>3&&i[t].push(o[t][3])}"paths"in o?o.paths=r:o.rings=r}else if("points"in s&&"points"in o){const t=s.points,r=[];for(let i=0;i<t.length;i++)r[i]=e(t[i][0],t[i][1],[0,0],n),t[i].length>2&&r[i].push(t[i][2]),t[i].length>3&&r[i].push(t[i][3]);o.points=r}return i}function p(t,e){const r=t&&(f(t)?t:t.spatialReference),n=e&&(f(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!r||!n)&&(!!(0,u.aI)(n,r)||(0,u.K8)(n)&&(0,u.oT)(r)||(0,u.K8)(r)&&(0,u.oT)(n))}function y(t,e){if(null==t)return null;const r=t.spatialReference,i=e&&(f(e)?e:e.spatialReference);return p(r,i)?(0,u.aI)(r,i)?(0,n.o8)(t):(0,u.K8)(i)?d(t,m,s.A.WebMercator,!1,(0,n.o8)(t)):(0,u.oT)(i)?d(t,g,s.A.WGS84,!1,(0,n.o8)(t)):null:null}function m(t,e,r=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);const n=c(e);return r[0]=c(t)*o.$O.radius,r[1]=o.$O.halfSemiMajorAxis*Math.log((1+Math.sin(n))/(1-Math.sin(n))),r}function g(t,e,r=[0,0],n=!1){if(t===u.Mc[0])r[0]=-180;else if(t===u.Mc[1])r[0]=180;else{const e=a(t/o.$O.radius);r[0]=n?e:e-360*Math.floor((e+180)/360)}return r[1]=a(Math.PI/2-2*Math.atan(Math.exp(-e/o.$O.radius))),r}function M(t,e=!1,r=(0,n.o8)(t)){return(0,i.f)(t),(0,i.f)(r),d(t,m,s.A.WebMercator,e,r)}function B(t,e=!1,r=(0,n.o8)(t)){return(0,i.f)(t),(0,i.f)(r),d(t,g,s.A.WGS84,e,r)}},620(t,e,r){r.d(e,{L:()=>a,MX:()=>o,O_:()=>u,kL:()=>c,vA:()=>s,zH:()=>l});var n=r(48163);r(78955),(0,r(91829).vt)();class i{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 i(`${e} at ${t}`)}}function o(t,e){t||(e=e||"",console.warn("Verify failed: "+e+"\n"+new Error("verify").stack))}function u(t,e,r,n){let i,s=(r[0]-t[0])/e[0],o=(n[0]-t[0])/e[0];s>o&&(i=s,s=o,o=i);let u=(r[1]-t[1])/e[1],a=(n[1]-t[1])/e[1];if(u>a&&(i=u,u=a,a=i),s>a||u>o)return!1;u>s&&(s=u),a<o&&(o=a);let c=(r[2]-t[2])/e[2],l=(n[2]-t[2])/e[2];return c>l&&(i=c,c=l,l=i),!(s>l||c>o||(l<o&&(o=l),o<0))}function a(t,e,r,i,s,o=(0,n.vt)()){const u=(i[s]-r[s])*(e[0]-t[0])-(i[0]-r[0])*(e[s]-t[s]),a=(i[0]-r[0])*(t[s]-r[s])-(i[s]-r[s])*(t[0]-r[0]);if(0===u)return!1;const c=a/u;return o[0]=t[0]+c*(e[0]-t[0]),o[1]=t[s]+c*(e[s]-t[s]),!0}function c(t,e){return Math.log(t)/Math.log(e)}function l(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]&&0===t[8]&&0===t[9]&&1===t[10]&&0===t[11]&&1===t[15]}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8189],{52106(e,t,r){r.d(t,{A:()=>S});var n,i,o=r(5482),s=r(37838),a=r(69540),l=r(51447),u=r(25482),p=r(53966),c=r(36708),d=r(24326),f=r(91429),y=r(12195),h=r(65864),m=r(50498),g=r(55156),w=r(60950),v=r(54339),b=r(94128),C=r(33910);function x(e){if(null==e)return null;const t={};for(const r in e){const n=e[r];n&&(t[r]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let S=class extends((0,a.OU)(u.o)){static{n=b.Z}static{i=this}constructor(e){super(e),this[n]=!0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,w.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,v.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:x(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,y.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=n),"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,o.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const n=(0,h.rS)(e[r]);n&&(t[r]=n)}return 0!==Object.keys(t).length?t:null}}})],S.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,f.MZ)({value:null})],S.prototype,"attributes",null),(0,o.Cg)([(0,f.MZ)({value:null,types:m.yR,json:{read:h.rS}})],S.prototype,"geometry",null),(0,o.Cg)([(0,f.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,o.Cg)([(0,f.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,o.Cg)([(0,f.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,o.Cg)([(0,f.MZ)({type:s.A,value:null})],S.prototype,"popupTemplate",null),(0,o.Cg)([(0,f.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,f.MZ)({value:null,types:C.Es})],S.prototype,"symbol",null),(0,o.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,o.Cg)([(0,f.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=i=(0,o.Cg)([(0,f.$K)("esri.Graphic")],S)},46140(e,t,r){r.d(t,{A:()=>i});var n=r(49186);class i{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new n.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new n.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(o,10);return new i(a,l,t)}}},6797(e,t,r){r.d(t,{Ui:()=>d});var n=r(69622),i=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof n.A}function l(e){return e instanceof i.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof i.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const n=l(e),i=l(t);if(0===n.length&&0===i.length)return;if(!n.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=i.filter(e=>!n.includes(e)),d=n.filter(e=>!i.includes(e)),f=n.filter(r=>i.includes(r)&&u(e,r)!==u(t,r)).concat(o,d).sort(),y=p(e);if(y&&s.has(y)&&f.length)return{type:"complete",oldValue:e,newValue:t};let h;const m=a(e)&&a(t);for(const n of f){const i=u(e,n),o=u(t,n);let s;if((m||"function"!=typeof i&&"function"!=typeof o)&&i!==o&&(null!=i||null!=o)){if(r&&r[n]&&"function"==typeof r[n])s=r[n]?.(i,o);else if(i instanceof Date&&o instanceof Date){if(i.getTime()===o.getTime())continue;s={type:"complete",oldValue:i,newValue:o}}else s="object"==typeof i&&"object"==typeof o&&p(i)===p(o)?c(i,o):{type:"complete",oldValue:i,newValue:o};null!=s&&(null!=h?h.diff[n]=s:h={type:"partial",diff:{[n]:s}})}}return h}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},67482(e,t,r){function n(e){return null!=a(e)||null!=s(e)}function i(e){return l.test(e)}function o(e){return a(e)??s(e)}function s(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let r=!0;if(p&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,n=0;for(;!t&&n<=e.length;)t=!u.test(e[n]),n++;r=!t}}return r}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const r=t.groups,n=+r.year,i=+r.month-1,o=+r.day,s=+(r.hours??"0"),a=+(r.minutes??"0"),u=+(r.seconds??"0");if(s>23)return null;if(a>59)return null;if(u>59)return null;const p=r.ms??"0",c=p?+p.padEnd(3,"0").slice(0,3):0;let d;if(r.isUTC||!r.offsetSign)d=Date.UTC(n,i,o,s,a,u,c);else{const e=+r.offsetHours,t=+r.offsetMinutes;d=6e4*("+"===r.offsetSign?-1:1)*(60*e+t)+Date.UTC(n,i,o,s,a,u,c)}return Number.isNaN(d)?null:d}r.d(t,{Br:()=>i,Cq:()=>n,_U:()=>o});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,p=!Number.isNaN(new Date("technology 10").getTime())},13069(e,t,r){r.d(t,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const n="randomUUID"in crypto;function i(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},83027(e,t,r){r.d(t,{h:()=>n});const n=r(29953).ho},159(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),o=r(69540),s=r(25482),a=r(91429),l=r(99157);let u=n=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=n=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),o=r(69540),s=r(25482),a=r(91429);let l=n=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=n=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(49208);function i(e,t,r,i,o,s,a=Math.floor(e.length/3)){const l=(0,n.jd)(t,o);if(null==l)return!1;if(l===n.pO){if(e===i&&r===s)return!0;const t=r+3*a;for(let n=r,o=s;n<t;n++,o++)i[o]=e[n]??0;return!0}const u=r+3*a;for(let t=r,n=s;t<u;t+=3,n+=3)l(e,t,i,n);return!0}},49208(e,t,r){r.d(t,{Tp:()=>c,jd:()=>p,pO:()=>f,w5:()=>u});var n=r(34727),i=r(86211),o=r(73941),s=r(79258),a=r(34403),l=r(21325);const u={2:{5:f,7:null,9:null,10:f,1:C,6:null,8:null,0:null,3:h,11:m,2:f,4:M},5:{5:f,7:null,9:null,10:f,1:C,6:null,8:null,0:null,3:h,11:m,2:f,4:M},7:{5:null,7:f,9:null,10:f,1:null,6:b,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(e,t,r,n){const i=e[t]/O,o=_-2*Math.atan(Math.exp(-e[t+1]/O)),s=O+(e[t+2]??0),a=Math.cos(o)*s;r[n]=Math.cos(i)*a,r[n+1]=Math.sin(i)*a,r[n+2]=Math.sin(o)*s},6:null,8:null,0:null,3:f,11:function(e,t,r,n){y(e,t,r,n),m(r,n,r,n)},2:y,4:function(e,t,r,n){y(e,t,r,n),M(r,n,r,n)}},4:{5:F,7:null,9:null,10:F,1:function(e,t,r,n){F(e,t,r,n),C(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){F(e,t,r,n),h(r,n,r,n)},11:function(e,t,r,n){F(e,t,r,n),m(r,n,r,n)},2:F,4:f},1:{5:A,7:null,9:null,10:A,1:f,6:null,8:null,0:null,3:function(e,t,r,n){A(e,t,r,n),h(r,n,r,n)},11:function(e,t,r,n){A(e,t,r,n),m(r,n,r,n)},2:A,4:function(e,t,r,n){A(e,t,r,n),M(r,n,r,n)}},6:{5:null,7:T,9:null,10:T,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:f,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:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:C,6:b,8:v,0:null,3:h,11:m,2:f,4:M},11:{5:g,7:null,9:null,10:g,1:function(e,t,r,n){g(e,t,r,n),C(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){g(e,t,r,n),h(r,n,r,n)},11:f,2:g,4:function(e,t,r,n){g(e,t,r,n),M(r,n,r,n)}}};function p(e,t){return c(e,t)?.projector}function c(e,t){if(null==e||null==t)return null;if(I.source.spatialReference===e&&I.dest.spatialReference===t)return I;const r=d(e,I.source),n=d(t,I.dest);return 0===r&&0===n?(0,l.aI)(e,t)?I.projector=f:I.projector=null:I.projector=u[r][n],I}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,o.q8)(e)?t.spatialReferenceId=7:(0,o.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function y(e,t,r,n){r[n]=P*(e[t]/O),r[n+1]=P*(_-2*Math.atan(Math.exp(-e[t+1]/O))),r[n+2]=e[t+2]??0}function h(e,t,r,i){!function(e,t,r,i,o){const s=.4999999*Math.PI,a=(0,n.qE)(R*e[t+1],-s,s),l=Math.sin(a);r[i++]=R*e[t]*o.radius,r[i++]=o.halfSemiMajorAxis*Math.log((1+l)/(1-l)),r[i]=e[t+2]??0}(e,t,r,i,s.$O)}function m(e,t,r,n){r[n]=e[t]*j,r[n+1]=e[t+1]*j,r[n+2]=e[t+2]??0}function g(e,t,r,n){r[n]=e[t]*E,r[n+1]=e[t+1]*E,r[n+2]=e[t+2]??0}function w(e,t,r,n,i){const o=i+(e[t+2]??0),s=R*e[t],a=R*e[t+1],l=Math.cos(a)*o;r[n]=Math.cos(s)*l,r[n+1]=Math.sin(s)*l,r[n+2]=Math.sin(a)*o}function v(e,t,r,n){w(e,t,r,n,s.Sw.radius)}function b(e,t,r,n){w(e,t,r,n,s.sH.radius)}function C(e,t,r,n){w(e,t,r,n,s.$O.radius)}function x(e,t,r,i,o){const s=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(s*s+a*a+l*l),p=(0,n.YN)(l/(0===u?1:u)),c=Math.atan2(a,s);r[i++]=P*c,r[i++]=P*p,r[i]=u-o}function S(e,t,r,n){x(e,t,r,n,s.Sw.radius)}function T(e,t,r,n){x(e,t,r,n,s.sH.radius)}function A(e,t,r,n){x(e,t,r,n,s.$O.radius)}function M(e,t,r,n){!function(e,t,r,n,i){const o=R*e[t],s=R*e[t+1],a=e[t+2]??0,l=Math.sin(s),u=Math.cos(s),p=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);r[n++]=(p+a)*u*Math.cos(o),r[n++]=(p+a)*u*Math.sin(o),r[n++]=(p*(1-i.eccentricitySquared)+a)*l}(e,t,r,n,s.$O)}function F(e,t,r,n){const i=a.TP,o=e[t],l=e[t+1],u=e[t+2]??0;let p,c,d,f,y,h,m,g,w,v,b,C,x,S,T,A,M,F,I,R,_;p=Math.abs(u),c=o*o+l*l,d=Math.sqrt(c),f=c+u*u,y=Math.sqrt(f),R=Math.atan2(l,o),h=u*u/f,m=c/f,S=i.a2/y,T=i.a3-i.a4/y,m>.3?(g=p/y*(1+m*(i.a1+S+h*T)/y),I=Math.asin(g),v=g*g,w=Math.sqrt(1-v)):(w=d/y*(1-h*(i.a5-S-m*T)/y),I=Math.acos(w),v=1-w*w,g=Math.sqrt(v)),b=1-s.$O.eccentricitySquared*v,C=s.$O.radius/Math.sqrt(b),x=i.a6*C,S=d-C*w,T=p-x*g,M=w*S+g*T,A=w*T-g*S,F=A/(x/b+M),I+=F,_=M+A*F/2,u<0&&(I=-I),r[n++]=P*R,r[n++]=P*I,r[n]=_}const I={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},R=(0,n.kU)(1),P=(0,n.KJ)(1),_=.5*Math.PI,O=s.$O.radius,j=O*Math.PI/180,E=180/(O*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>J,initializeProjection:()=>W,isEqualBaseGCS:()=>V,isLoaded:()=>O,isLoadedOrLoad:()=>j,isLoadedOrLoadFor:()=>E,load:()=>N,project:()=>k,projectAsync:()=>B,projectExtent:()=>ie,projectMany:()=>$,projectMultipoint:()=>Q,projectOrLoad:()=>G,projectOrLoadMany:()=>D,projectPoint:()=>Y,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>H,requiresLoad:()=>Z,test:()=>q,tryProject:()=>L,unload:()=>U});var n=r(49186),i=r(17676),o=r(62788),s=r(95488),a=r(51850),l=r(21276),u=r(73941),p=r(5443),c=r(91075),d=r(48526),f=r(86738),y=r(39829),h=r(82799),m=r(16930),g=r(98764),w=r(159),v=r(9762),b=r(49208);function C(e,t,r,n,i,o){return x[0]=e,x[1]=t,x[2]=r,(0,v.projectBuffer)(x,n,0,i,o,0)}const x=(0,a.vt)();var S=r(60408),T=r(21325),A=r(52006);let M=null,F=null,I=null,R=null,P={};const _=new s.I;function O(){return!!(F?.isLoaded()&&I?.isLoaded()&&R?.isLoaded())}function j(){return!!O()||((0,o.gc)(_),N(),!1)}function E(e,t){return!e||!t||J(e,t)||j()}function Z(e,t){return!J(e,t)&&!O()}async function N(e){null==M&&(M=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(F=e,F.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(I=e,I.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(R=e,R.load()))])),await M,(0,i.Te)(e),_.notify()}function k(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),$(e,e[0].spatialReference,t,r)):((0,l.f)(e),$([e],e.spatialReference,t,r)[0])}function $(e,t,r,n){if(null==t||null==r)return e;if(J(t,r,n))return e.map(e=>H(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return $(e.map(e=>H(e,t,m.A.WGS84)),m.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return $(e,t,m.A.WGS84).map(e=>H(e,m.A.WGS84,r));if(!O())throw new z;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:R.getTransformation(t,r,n.areaOfInterestExtent)||new w.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let i=P[e];i||(i=R.getTransformation(t,r)||new w.A,P[e]=i),n={geographicTransformation:i,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof c.A?F.executeMany(e,r,n):I.executeMany(e,r,n)}function L(e,t,r){try{return k(e,t,r)}catch(e){return null}}function G(e,t){const r=D([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function D(e,t,r){if(!O())for(const r of e)if(null!=r&&!(0,T.aI)(r.spatialReference,t)&&(0,T.fn)(r.spatialReference)&&(0,T.fn)(t)&&!J(r.spatialReference,t))return(0,o.gc)(_),{pending:N(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,T.aI)(e.spatialReference,t)?e:(0,T.fn)(e.spatialReference)&&(0,T.fn)(t)?k(e,t,r):null)}}class z extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){M=null,F=null,I=null,R=null,P={}}const q={get loadPromise(){return M}};async function B(e,t,r){if((0,i.Te)(r),!e)return e;const n=D(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,i.Te)(r),B(e,t,r);const o=n.geometries??[];return Array.isArray(e)?o:o[0]}function J(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,T.aI)(e,t)||(0,T.fn)(e)&&(0,T.fn)(t)&&!!(0,b.jd)(e,t))}function V(e,t){if((0,T.aI)(e,t))return!0;if(!(0,T.fn)(e)||!(0,T.fn)(t))return!1;const r=(0,T.oT)(e)||(0,T.K8)(e)||(0,T.x1)(e),n=(0,T.oT)(t)||(0,T.K8)(t)||(0,T.x1)(t);return r&&n}async function W(e,t,r,n){if(O())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!J(t,r,i))return N(n)}else if(e&&t&&!J(e,t,r))return N(n);return(0,i.NO)(n)}function H(e,t,r){return e?(0,S.fT)(e)?K(e,t,new f.A,r,0):(0,S.ZC)(e)?oe(e,t,new p.A,r,0):(0,S.Bi)(e)?ne(e,t,new y.A,r,0):(0,S.Rg)(e)?te(e,t,new h.A,r,0):(0,S.U9)(e)?X(e,t,new d.A,r,0):null:null}function Y(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=K(e,e.spatialReference,t,r,n)}function K(e,t,r,n,i){ue[0]=e.x,ue[1]=e.y;const o=e.z;return ue[2]=void 0!==o?o:i,(0,v.projectBuffer)(ue,t,0,ue,n,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=n,void 0!==o||(0,u.xP)(n)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function Q(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=X(e,e.spatialReference,t,r,n)}function X(e,t,r,n,i){const{points:o,hasZ:s,hasM:a}=e,l=[],u=o.length,p=[];for(const e of o)p.push(e[0],e[1],s?e[2]:i);if(!(0,v.projectBuffer)(p,t,0,p,n,0,u))return null;const c=le(s,n);for(let e=0;e<u;++e){const t=3*e,r=p[t],n=p[t+1];c&&a?l.push([r,n,p[t+2],o[e][3]]):c?l.push([r,n,p[t+2]]):a?l.push([r,n,o[e][2]]):l.push([r,n])}return r.points=l,r.spatialReference=n,r.hasZ=s,r.hasM=a,r}function ee(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,n)}function te(e,t,r,n,i){const{curvePaths:o,paths:s,hasZ:a,hasM:l}=e;if(!(o?ae(o,a??!1,l??!1,t,r.curvePaths=[],n,i):se(s,a??!1,l??!1,t,r.paths,n,i)))return null;const u=le(a,n);return r.spatialReference=n,r.hasZ=u,r.hasM=l,r}function re(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ne(e,e.spatialReference,t,r,n)}function ne(e,t,r,n,i){const{curveRings:o,rings:s,hasZ:a,hasM:l}=e;return(o?ae(o,a??!1,l??!1,t,r.curveRings=[],n,i):se(s,a??!1,l??!1,t,r.rings,n,i))?(r.spatialReference=n,r.hasZ=le(a,n),r.hasM=l,r):null}function ie(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=oe(e,e.spatialReference,t,r,n)}function oe(e,t,r,n,i){const{xmin:o,ymin:s,xmax:a,ymax:l,hasZ:u,hasM:p}=e;if(!C(o,s,u?e.zmin:i,t,ue,n))return null;const c=le(u,n);return r.xmin=ue[0],r.ymin=ue[1],c&&(r.zmin=ue[2]),C(a,l,u?e.zmax:i,t,ue,n)?(r.xmax=ue[0],r.ymax=ue[1],c&&(r.zmax=ue[2]),p&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function se(e,t,r,n,i,o,s=0){const a=new Array;for(const r of e)for(const e of r)a.push(e[0],e[1],t?e[2]:s);if(!(0,v.projectBuffer)(a,n,0,a,o,0))return!1;let l=0;i.length=0;const u=t?3:2,p=le(t,o);for(const t of e){const e=new Array;for(const n of t){const t=a.slice(l,l+=3);p||t.pop(),r&&t.push(n[u]),e.push(t)}i.push(e)}return!0}function ae(e,t,r,n,i,o,s=0){const a=new Array;for(const r of e)for(const e of r){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[r,n]=e.c;a.push(r[0],r[1],t?r[2]:s,n[0],n[1],s);continue}if((0,A.n1)(e)){const[r,n,i]=e.b;a.push(r[0],r[1],t?r[2]:s,n[0],n[1],s,i[0],i[1],s);continue}const r=e;a.push(r[0],r[1],t?r[2]:s)}if(!(0,v.projectBuffer)(a,n,0,a,o,0))return!1;let l=0;i.length=0;const u=t?3:2,p=le(t,o);for(const t of e){const e=new Array;for(const n of t){const t=a.slice(l,l+=3);if(p||t.pop(),r&&t.push((0,A.yP)(n)[u]),(0,A.FG)(n))return!1;if((0,A.aO)(n)){const r=a[l++],n=a[l++];++l,e.push({c:[t,[r,n]]});continue}if((0,A.n1)(n)){const r=a[l++],n=a[l++];++l;const i=a[l++],o=a[l++];++l,e.push({b:[t,[r,n],[i,o]]});continue}e.push(t)}i.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,T.aI)(t,g.Y0)}const ue=(0,a.vt)()},98764(e,t,r){r.d(t,{GD:()=>s,Y0:()=>u,lO:()=>p});var n=r(73941),i=r(16930),o=r(21325);const s=new i.A(n.fv),a=new i.A(n.FY),l=new i.A(n.LJ),u=new i.A(n.Ro);function p(e){const t=c.get(e);if(t)return t;let r=s;if(e)if(e===a)r=a;else if(e===l)r=l;else{const t=e.wkid,n=e.latestWkid;if(null!=t||null!=n)(0,o.tl)(t)||(0,o.tl)(n)?r=a:((0,o.ZL)(t)||(0,o.ZL)(n))&&(r=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?r=a:e===f&&(r=l)}}}return c.set(e,r),r}const c=new Map,d=a.wkt.toUpperCase(),f=l.wkt.toUpperCase()},34403(e,t,r){r.d(t,{TP:()=>s});var n=r(79258);Math.PI;const i=n.$O.radius,o=n.$O.eccentricitySquared,s={a1:i*o,a2:i*o*i*o,a3:i*o*o/2,a4:i*o*i*o*2.5,a5:i*o+i*o*o/2,a6:1-o};n.$O.radius,n.$O.flattening,n.Sw.radius,n.Sw.flattening,n.sH.radius,n.sH.flattening,n.sH.radius},83960(e,t,r){r.d(t,{X_:()=>o,oW:()=>a,zx:()=>s});var n=r(34727),i=r(86211);function o(e,t){const r=t||e.extent,n=e.width,o=(0,i.GA)(r?.spatialReference);return r&&n?r.width/n*o*i.dy*96:0}function s(e,t,r){return function(e,t){return 0===t||(0,n.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,n.Sp)(e,t)||e>t}(e,r)}function a(e,t){return(0,n.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},50498(e,t,r){r.d(t,{Ye:()=>c,gy:()=>p,iI:()=>f,yR:()=>d});var n=r(66552),i=r(5443),o=r(91075),s=r(48526),a=r(86738),l=r(39829),u=r(82799);const p=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:o.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:a.A,polyline:u.A,polygon:l.A}},f=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(e,t,r){r.d(t,{I:()=>i,e:()=>n});const n=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&n in t?e[n]:void 0;var t}},21901(e,t,r){r.r(t),r.d(t,{default:()=>oe});var n=r(5482),i=r(37838),o=r(25728),s=r(93637),a=r(84952),l=r(91429),u=r(56507),p=r(5443),c=r(16930),d=r(50498),f=r(55156),y=r(60950),h=r(89808),m=r(99959);const g=Symbol("isWFSGraphicOrigin");var w;class v extends m.A{get[(w=g,y.ym)](){return this.layer}get[f.e](){return this.layer}get[h.Q](){return this.layer}constructor(e){super(),this[w]=!0,this.type="wfs",this.layer=e}get id(){return this.layer.id}}var b=r(4146),C=r(49186),x=r(44208),S=r(92474),T=r(53966),A=r(17676),M=r(83027),F=r(64714),I=r(34322),R=r(37745),P=r(22671),_=r(98623);let O=class extends S.x_{constructor(){super(...arguments),this._connection=null,this._workerHandler=null,this.capabilities=(0,F.f)(!1,!1),this.type="wfs",this.refresh=(0,A.sg)(async()=>{await this.load();const e={customParameters:this.layer.customParameters,maxRecordCount:this.layer.maxRecordCount,maxTotalRecordCount:this.layer.maxTotalRecordCount,maxPageCount:this.layer.maxPageCount},{extent:t}=await this._workerHandler.refresh(e);return t&&(this.sourceJSON.extent=t),{dataChanged:!0,updates:{extent:this.sourceJSON.extent}}})}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker({signal:t})),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null,this._workerHandler=null}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){const r=await this.queryFeaturesJSON(e,t);return P.A.fromJSON(r)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._workerHandler.queryFeatures(e?e.toJSON():void 0,t)}async queryFeatureCount(e,t={}){return await this.load(t),this._workerHandler.queryFeatureCount(e?e.toJSON():void 0,t)}async queryObjectIds(e,t={}){return await this.load(t),this._workerHandler.queryObjectIds(e?e.toJSON():void 0,t)}async queryExtent(e,t={}){await this.load(t);const r=await this._workerHandler.queryExtent(e?e.toJSON():void 0,t);return{count:r.count,extent:p.A.fromJSON(r.extent)}}async querySnapping(e,t={}){return await this.load(t),this._workerHandler.querySnapping(e,t)}async queryAttributeBins(e,t={}){await this.load(t);const r=await this._workerHandler.queryAttributeBins(e?.toJSON(),t);return R.A.fromJSON(r)}async _createLoadOptions(e){const{url:t,customParameters:r,name:n,namespaceUri:i,fields:o,geometryType:s,maxRecordCount:a,maxPageCount:l,maxTotalRecordCount:u,swapXY:p}=this.layer,c="defaults"===this.layer.originOf("spatialReference")?void 0:this.layer.spatialReference;if(!t)throw new C.A("wfs-layer:missing-url","WFSLayer must be created with a url");this.wfsCapabilities||(this.wfsCapabilities=await(0,I.Fu)(t,{customParameters:r,...e}));const f=["fields","geometryType","name","namespaceUri","swapXY"].some(e=>null==this.layer[e]),y=f?await(0,I.O8)(this.wfsCapabilities,n,i,{spatialReference:c,customParameters:r,signal:e?.signal}):{...(0,I.YW)(o??[]),geometryType:s,name:n,namespaceUri:i,spatialReference:c,swapXY:p},h=(0,I.mG)(this.wfsCapabilities.readFeatureTypes(),y.name,y.namespaceUri),m=d.gy.toJSON(y.geometryType),{operations:g}=this.wfsCapabilities,w=g.GetFeature.url,v=g.GetFeature.outputFormat;return{customParameters:r,featureType:h,fields:y.fields?.map(e=>e.toJSON())??[],geometryField:y.geometryField,geometryType:m,getFeatureUrl:w,getFeatureOutputFormat:v,maxRecordCount:a,maxPageCount:l,maxTotalRecordCount:u,objectIdField:y.objectIdField,spatialReference:y.spatialReference?.toJSON(),swapXY:!!y.swapXY}}async _startWorker(e){const[t,r]=await(0,A.Lx)([this._createLoadOptions(e),(0,M.h)("WFSSourceWorker",{...e,strategy:(0,x.A)("feature-layers-workers")?"dedicated":"local",registryTarget:this})]),n=t.error||r.error||null,i=r.value||null;if(n)throw i&&i.close(),n;const o=t.value;this._connection=r.value,this._workerHandler=this._connection.createInvokeProxy();const s=await this._workerHandler.load(o,e);for(const e of s.warnings)T.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});this.sourceJSON={dateFieldsTimeReference:{timeZoneIANA:_.n$},extent:s.extent,fields:o.fields,geometryType:o.geometryType,objectIdField:o.objectIdField,geometryField:o.geometryField,drawingInfo:(0,F.F0)(o.geometryType),name:o.featureType.title,wfsInfo:{name:o.featureType.name,featureUrl:o.getFeatureUrl,maxFeatures:o.maxRecordCount,swapXY:o.swapXY,supportedSpatialReferences:o.featureType.supportedSpatialReferences,version:"2.0.0",wfsNamespace:o.featureType.namespaceUri}}}};(0,n.Cg)([(0,l.MZ)()],O.prototype,"capabilities",void 0),(0,n.Cg)([(0,l.MZ)({constructOnly:!0})],O.prototype,"layer",void 0),(0,n.Cg)([(0,l.MZ)()],O.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,l.MZ)()],O.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)()],O.prototype,"wfsCapabilities",void 0),O=(0,n.Cg)([(0,l.$K)("esri.layers.graphics.sources.WFSSource")],O);var j,E=r(63074),Z=r(69208),N=r(6455),k=r(87718),$=r(56658),L=r(34287),G=r(32756),D=r(8303),z=r(54310),U=r(25036),q=r(82935),B=r(10873),J=r(15426),V=r(20437),W=r(17036),H=r(30524),Y=r(46499),K=r(39383),Q=r(41214),X=r(61956),ee=r(30291),te=r(56400),re=r(43937);const ne=(0,W.p)();let ie=j=class extends((0,G.fY)((0,N.FJ)((0,Z.d)((0,$.J)((0,k.F)((0,E.dM)((0,z.J)((0,U.j)((0,L.q)((0,D.A)((0,o.M)(b.A)))))))))))){static fromWFSLayerInfo(e){const{customParameters:t,fields:r,geometryField:n,geometryType:i,name:o,namespaceUri:s,objectIdField:a,spatialReference:l,swapXY:u,url:p,wfsCapabilities:c}=e;return new j({customParameters:t,fields:r,geometryField:n,geometryType:i,name:o,namespaceUri:s,objectIdField:a,spatialReference:l,swapXY:u,url:p,wfsCapabilities:c})}constructor(e){super(e),this.copyright=null,this.customParameters=null,this.dateFieldsTimeZone=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.featureUrl=void 0,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new v(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="WFS",this.maxRecordCount=3e3,this.maxPageCount=10,this.maxTotalRecordCount=2e5,this.mode=0,this.name=null,this.namespaceUri=null,this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new O({layer:this}),this.spatialReference=c.A.WGS84,this.spatialReferences=[4326],this.swapXY=void 0,this.title="WFS",this.type="wfs",this.url=null,this.useViewTime=!0,this.version=void 0}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WFS"]},e).then(()=>this.source.load(e)).then(()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),["objectIdField","fields","spatialReference","name","namespaceUri"].forEach(e=>this.revertToOrigin(e,"service")),(0,H.yp)(this.renderer,this.fieldsIndex)})),Promise.resolve(this)}get capabilities(){return this.source?.capabilities}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,r){const n=e.filter(e=>e.name!==I.i5);this.geometryField&&n.unshift(new V.A({name:this.geometryField,alias:this.geometryField,type:"geometry"})),(0,s.sM)(r,n.map(e=>e.toJSON()),t)}get parsedUrl(){return(0,a.An)(this.url)}set renderer(e){(0,H.yp)(e,this.fieldsIndex),this._set("renderer",e)}get wfsCapabilities(){return this.source?.wfsCapabilities}set wfsCapabilities(e){this.source&&(this.source.wfsCapabilities=e)}createPopupTemplate(e){return(0,ee.tn)(this,e)}createQuery(){return new X.A({returnGeometry:!0,outFields:["*"],where:this.definitionExpression||"1=1"})}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex?.get(e)}queryFeatures(e,t){return this.load().then(()=>this.source.queryFeatures(X.A.from(e)||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryObjectIds(e,t){return this.load().then(()=>this.source.queryObjectIds(X.A.from(e)||this.createQuery(),t))}queryFeatureCount(e,t){return this.load().then(()=>this.source.queryFeatureCount(X.A.from(e)||this.createQuery(),t))}queryExtent(e,t){return this.load().then(()=>this.source.queryExtent(X.A.from(e)||this.createQuery(),t))}async queryAttributeBins(e,t){const{source:n,capabilities:i}=await this.load();(0,J.ZJ)(e,i,"WFSLayer");const o=await r.e(4575).then(r.bind(r,14575)),s=await n.queryAttributeBins(o.default.from(e),t);if(s.features)for(const e of s.features)e.layer=e.sourceLayer=this;return s}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh();return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,n.Cg)([(0,l.MZ)({readOnly:!0})],ie.prototype,"capabilities",null),(0,n.Cg)([(0,l.MZ)({type:String})],ie.prototype,"copyright",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],ie.prototype,"createQueryVersion",null),(0,n.Cg)([(0,l.MZ)({json:{name:"wfsInfo.customParameters",write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0),ignoreOrigin:!0})}}})],ie.prototype,"customParameters",void 0),(0,n.Cg)([(0,l.MZ)((0,te.P6)("dateFieldsTimeReference"))],ie.prototype,"dateFieldsTimeZone",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],ie.prototype,"defaultPopupTemplate",null),(0,n.Cg)([(0,l.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ie.prototype,"definitionExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:String})],ie.prototype,"displayField",void 0),(0,n.Cg)([(0,l.MZ)(B.Yj)],ie.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{name:"wfsInfo.featureUrl",write:{ignoreOrigin:!0,isRequired:!0}}})],ie.prototype,"featureUrl",void 0),(0,n.Cg)([(0,l.MZ)({type:[V.A],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],ie.prototype,"fields",void 0),(0,n.Cg)([(0,re.K)("fields")],ie.prototype,"writeFields",null),(0,n.Cg)([(0,l.MZ)(ne.fieldsIndex)],ie.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,l.MZ)({type:p.A,json:{name:"extent"}})],ie.prototype,"fullExtent",void 0),(0,n.Cg)([(0,l.MZ)()],ie.prototype,"geometryField",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:{source:"layerDefinition.geometryType",reader:d.gy.read},write:{target:"layerDefinition.geometryType",writer:d.gy.write,ignoreOrigin:!0},origins:{service:{read:d.gy.read}}}})],ie.prototype,"geometryType",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],ie.prototype,"graphicOrigin",void 0),(0,n.Cg)([(0,l.MZ)({type:String})],ie.prototype,"id",void 0),(0,n.Cg)([(0,l.MZ)(B.kF)],ie.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,l.MZ)({type:[Y.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:K.w},write:!0}})],ie.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,l.MZ)(B.fV)],ie.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,l.MZ)({type:["show","hide"]})],ie.prototype,"listMode",void 0),(0,n.Cg)([(0,l.MZ)({type:String})],ie.prototype,"objectIdField",void 0),(0,n.Cg)([(0,l.MZ)({type:["WFS"]})],ie.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,l.MZ)({type:u.jz,json:{name:"wfsInfo.maxFeatures",write:{ignoreOrigin:!0,isRequired:!0}}})],ie.prototype,"maxRecordCount",void 0),(0,n.Cg)([(0,l.MZ)({type:u.jz})],ie.prototype,"maxPageCount",void 0),(0,n.Cg)([(0,l.MZ)({type:u.jz})],ie.prototype,"maxTotalRecordCount",void 0),(0,n.Cg)([(0,l.MZ)({type:[0],readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],ie.prototype,"mode",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{name:"wfsInfo.name",write:{ignoreOrigin:!0,isRequired:!0}}})],ie.prototype,"name",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{name:"wfsInfo.wfsNamespace",write:{ignoreOrigin:!0,isRequired:!0}}})],ie.prototype,"namespaceUri",void 0),(0,n.Cg)([(0,l.MZ)(B.Ih)],ie.prototype,"opacity",void 0),(0,n.Cg)([(0,l.MZ)(ne.outFields)],ie.prototype,"outFields",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],ie.prototype,"parsedUrl",null),(0,n.Cg)([(0,l.MZ)(B.M6)],ie.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,l.MZ)({type:i.A,json:{name:"popupInfo",write:!0}})],ie.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,l.MZ)({types:Q.Hg,json:{origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:Q.XJ,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:{ignoreOrigin:!0}}})],ie.prototype,"renderer",null),(0,n.Cg)([(0,l.MZ)(B.PY)],ie.prototype,"screenSizePerspectiveEnabled",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],ie.prototype,"source",void 0),(0,n.Cg)([(0,l.MZ)({type:c.A,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"extent.spatialReference"}}}})],ie.prototype,"spatialReference",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0,type:[u.jz],json:{name:"wfsInfo.supportedSpatialReferences",write:{ignoreOrigin:!0,isRequired:!0}}})],ie.prototype,"spatialReferences",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,value:!1,json:{name:"wfsInfo.swapXY",write:{ignoreOrigin:!0,isRequired:!0}}})],ie.prototype,"swapXY",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"name"}}}})],ie.prototype,"title",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!1},readOnly:!0})],ie.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)(B.OZ)],ie.prototype,"url",void 0),(0,n.Cg)([(0,l.MZ)(q.B)],ie.prototype,"useViewTime",void 0),(0,n.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{name:"wfsInfo.version",write:{ignoreOrigin:!0,isRequired:!0}}})],ie.prototype,"version",void 0),(0,n.Cg)([(0,l.MZ)()],ie.prototype,"wfsCapabilities",null),ie=j=(0,n.Cg)([(0,l.$K)("esri.layers.WFSLayer")],ie);const oe=ie},99352(e,t,r){r.d(t,{F:()=>n,P:()=>i});const n={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},i={supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}},85113(e,t,r){r.d(t,{BM:()=>A,bd:()=>M,sO:()=>T,xD:()=>c});var n=r(67482),i=r(49186),o=r(21325),s=r(90708),a=r(43334),l=r(92722),u=r(30524);const p={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return p[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*f(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function y(e){for(const t of e)if(t.length>2)return!0;return!1}function h(e){let t=0;for(let r=0;r<e.length;r++){const n=e[r],i=e[(r+1)%e.length];t+=n[0]*i[1]-i[0]*n[1]}return t<=0}function m(e){const t=e[0],r=e[e.length-1];t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]||e.push(t)}function g(e,t){const{coordinates:r,type:n}=e,i=t.hasZ??!1,o=!0;switch(n){case"Point":return new l.A([],[...r],i,!1);case"LineString":return(0,s.Ap)({paths:[r],hasZ:o},i,!1);case"MultiLineString":return(0,s.Ap)({paths:r,hasZ:o},i,!1);case"MultiPoint":return(0,s.PR)({points:r,hasZ:o},i,!1);case"Polygon":case"MultiPolygon":{const e=new l.A([],[],i,!1);for(const t of"Polygon"===n?[r]:r){w(e,t[0],i);for(let r=1;r<t.length;r++)v(e,t[r],i)}return e}}}function w(e,t,r){m(t),function(e){return!h(e)}(t)?C(e,t,r):b(e,t,r)}function v(e,t,r){m(t),function(e){return h(e)}(t)?C(e,t,r):b(e,t,r)}function b(e,t,r){for(const n of t)x(e,n,r);e.lengths.push(t.length)}function C(e,t,r){for(let n=t.length-1;n>=0;n--)x(e,t[n],r);e.lengths.push(t.length)}function x(e,[t,r,n],i){e.coords.push(t,r),i&&e.coords.push(n||0)}function S(e){switch(typeof e){case"string":return(0,n.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function T(e,t=4326){if(!e)throw new i.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new i.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:r}=e;if(!r)return;const n="string"==typeof r?r:"name"===r.type?r.properties.name:"EPSG"===r.type?r.properties.code:null,s=(0,o.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!n||!s.test(n))throw new i.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:r})}function A(e,t={}){const r=[],n=new Set,i=new Set;let o,s=!1,a=null,l=!1,{geometryType:p=null}=t;for(const t of d(e)){const{geometry:e,properties:d,id:h}=t;if((!e||(p||(p=c(e.type)),c(e.type)===p))&&(s||(s=y(f(e))),l||(l=null!=h,l&&(o=typeof h,d&&(a=Object.keys(d).filter(e=>d[e]===h)))),d&&a&&l&&null!=h&&(a.length>1?a=a.filter(e=>d[e]===h):1===a.length&&(a=d[a[0]]===h?a:[])),d))for(const e in d){if(n.has(e))continue;const t=S(d[e]);if("unknown"===t){i.add(e);continue}i.delete(e),n.add(e);const o=(0,u.rS)(e);o&&r.push({name:o,alias:e,type:t})}}const h=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(h)for(const e of r)if(e.name===h&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:p,hasZ:s,objectIdFieldName:h,objectIdFieldType:o,unknownFields:Array.from(i)}}function M(e,t){return Array.from(function*(e,t={}){const{geometryType:r,objectIdField:n}=t;for(const i of e){const{geometry:e,properties:o,id:s}=i;if(e&&c(e.type)!==r)continue;const l=o||{};let u;n&&(u=l[n],null==s||u||(l[n]=u=s)),yield new a.Om(e&&g(e,t),l,null,u)}}(d(e),t))}},64714(e,t,r){r.d(t,{F0:()=>a,Vx:()=>p,e2:()=>d,f:()=>f});var n=r(44208),i=r(4718),o=r(99352),s=r(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.Cb:"esriGeometryPolyline"===e?s.yM:s.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function p(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${c(t)} = null;`);for(const t in e)r+=`this${c(t)} = ${JSON.stringify(e[t])};`;const n=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new n}catch(r){return()=>t?{[t]:null,...e}:{...e}}}function c(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}function f(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:o.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:o.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},69208(e,t,r){r.d(t,{d:()=>o});var n=r(5482),i=r(91429);const o=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}},6455(e,t,r){r.d(t,{FJ:()=>g,Dp:()=>w,KV:()=>v});var n=r(5482),i=r(93637),o=r(91429),s=r(89317),a=r(69540),l=r(7762),u=r(25482),p=r(83960),c=r(13069);const d={write:{overridePolicy:(e,t,r)=>({enabled:!r||"scale"===r.filterMode})}};let f=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.id=(0,c.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:d})],f.prototype,"maxScale",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:d})],f.prototype,"minScale",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=(0,n.Cg)([(0,o.$K)("esri.layers.support.DisplayFilter")],f);var y=r(41560),h=r(43937);let m=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(l.A.ofType(f)),this.mode="manual"}writeFilters(e,t,r,n){const i=e.toArray();"scale"===this.mode&&i.sort((e,t)=>{const r=(0,p.oW)(t.minScale,e.minScale),n=e.maxScale-t.maxScale;return 0===r?n:r}),t[r]=i.map(e=>e.toJSON(n))}write(e,t){return super.write(e,(0,y.mW)(this,t))}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{overridePolicy:(e,t,r)=>({enabled:"manual"===r.filterMode,isRequired:!0})}}})],m.prototype,"activeFilterId",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A.ofType(f),nonNullable:!0,json:{write:!0}})],m.prototype,"filters",void 0),(0,n.Cg)([(0,h.K)("filters")],m.prototype,"writeFilters",null),(0,n.Cg)([(0,o.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],m.prototype,"mode",void 0),m=(0,n.Cg)([(0,o.$K)("esri.layers.support.DisplayFilterInfo")],m);const g=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,n.Cg)([(0,o.MZ)(w)],r.prototype,"displayFilterEnabled",void 0),(0,n.Cg)([(0,o.MZ)(v)],r.prototype,"displayFilterInfo",void 0),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.DisplayFilteredLayer")],r),r},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:s.K,writer(e,t,r){(0,i.sM)(r,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},v={type:m,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:s.K},origins:{"web-scene":{write:!1,read:!1}}}}},32756(e,t,r){r.d(t,{Rr:()=>a,fY:()=>u,ne:()=>l});var n=r(5482),i=r(93637),o=r(91429),s=r(91880);function a(e,t,r){if(!e)return null;const n=e.find(e=>!!e.field);if(!n)return null;const i=new s.A;return i.read(n,r),[i]}const l={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,n){const o=e.find(e=>!!e.field);o&&(0,i.sM)(r,[o.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,n.Cg)([(0,o.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r}},8303(e,t,r){r.d(t,{A:()=>C});var n=r(5482),i=r(92602),o=r(70333),s=r(11254),a=r(60999),l=r(49186),u=r(53966),p=r(97768),c=r(17676),d=r(84952),f=r(91429),y=r(77548),h=r(20655),m=r(80812),g=r(41318),w=r(10407),v=r(36005),b=r(43937);const C=e=>{const t=e;let C=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,c.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!o.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let s,a;if(i)s=r.portal.url;else try{s=await(0,y.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!s||!(0,d.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(i?await r.reload():(r=new m.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,c.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=h.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(n))return i.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,p=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?g.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||h.A.getDefault());return r&&n&&!(0,d.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,f.MZ)({type:m.default})],C.prototype,"portalItem",null),(0,n.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,n.Cg)([(0,b.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,n.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],C),C},x={credential:null,user:null}},82935(e,t,r){r.d(t,{B:()=>d,e:()=>f});var n=r(5482),i=r(91429),o=r(89317),s=r(30524),a=r(96184),l=r(73133),u=r(79677),p=r(10184),c=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}},f=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=l.j.fromJSON(r.timeOffsetUnits);return n&&i?new p.A({value:n,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,n.Cg)([(0,i.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,n.Cg)([(0,c.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,n.Cg)([(0,i.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,n.Cg)([(0,i.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],r),r}},34322(e,t,r){r.d(t,{E:()=>Z,Fu:()=>x,O8:()=>I,UH:()=>L,YW:()=>R,i5:()=>v,mG:()=>F,x$:()=>j});var n=r(11254),i=r(49186),o=r(5479),s=r(84952),a=r(5443),l=r(91218),u=r(16930),p=r(21325),c=r(50498),d=r(85113),f=r(13043),y=r(60694),h=r(20437),m=r(30524);const g="xlink:href",w="2.0.0",v="__esri_wfs_id__",b="wfs-layer:feature-type-not-found",C="wfs-layer:unknown-geometry-type";async function x(e,t){const r=function(e){const t=N(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==w)throw new i.A("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${t}. Supported version: ${w}`)})(t),$(t);const r=t.firstElementChild,n=(0,o.PP)(function(e){return(0,f.i)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},r=new Set;return(0,f.p)(e,{Name:e=>{const{name:r,prefix:n}=k(e.textContent);t.typeName=`${n}:${r}`,t.name=r,t.namespacePrefix=n,t.namespaceUri=e.lookupNamespaceURI(n)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=a.A.fromJSON(function(e){let t,r,n,i;for(const o of e.children)switch(o.localName){case"LowerCorner":[t,r]=o.textContent.split(" ").map(e=>Number.parseFloat(e));break;case"UpperCorner":[n,i]=o.textContent.split(" ").map(e=>Number.parseFloat(e))}return{xmin:t,ymin:r,xmax:n,ymax:i,spatialReference:p.KK}}(e))},DefaultCRS:e=>{const n=M(e);n&&(t.defaultSpatialReference=n,r.add(n))},OtherCRS:e=>{const t=M(e);t&&r.add(t)}}),t.title||(t.title=t.name),r.add(4326),t.supportedSpatialReferences.push(...r),t}}})}(r));return{operations:A(r),get featureTypes(){return Array.from(n())},readFeatureTypes:n}}((await(0,n.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:w,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,s.m3)(e)&&((0,s.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,s.lM)(t.operations.DescribeFeatureType.url)),(0,s.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,s.lM)(t.operations.GetFeature.url)))}(e,r),r}const S=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function T(e){for(const t of S){const r=e.findIndex(e=>e.toLowerCase()===t);if(r>=0)return e[r]}return null}function A(e){let t=!0;const r={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},n=[],o=[];if((0,f.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&n.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{r.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{r.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{r.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&o.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{r.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),r.GetFeature.outputFormat=T(o)??T(n),!t)throw new i.A("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if(null==r.GetFeature.outputFormat)throw new i.A("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return r}function M(e){const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function F(e,t,r){return(0,o.I6)(e,e=>r?e.name===t&&e.namespaceUri===r:e.typeName===t||e.name===t)}async function I(e,t,r,n={}){const{featureType:o,extent:s}=await async function(e,t,r,n={}){const o=e.readFeatureTypes(),s=t?F(o,t,r):o.next().value,{spatialReference:a=new u.A({wkid:s?.defaultSpatialReference})}=n;if(null==s)throw t?new i.A(b,`The type '${t}' could not be found in the service`):new i.A("wfs-layer:empty-service","The service is empty");let c=s.extent;if(c&&!(0,p.aI)(c.spatialReference,a))try{await(0,l.initializeProjection)(c.spatialReference,a,void 0,n),c=(0,l.project)(c,a)}catch{throw new i.A("wfs-layer:unsupported-spatial-reference","Projection not supported")}return{extent:c,spatialReference:a,featureType:s}}(e,t,r,n),{spatialReference:a}=L(e.operations.GetFeature.url,o,n.spatialReference),{fields:c,geometryType:d,swapXY:f,objectIdField:y,geometryField:h}=await async function(e,t,r,n={}){const{typeName:o}=t,[s,a]=await Promise.allSettled([_(e.operations.DescribeFeatureType.url,o,n),P(e,o,r,n)]),l=e=>new i.A("wfs-layer:getWFSLayerTypeInfo-error",`An error occurred while getting info about the feature type '${o}'`,{error:e});if("rejected"===s.status)throw l(s.reason);if("rejected"===a.status)throw l(a.reason);const{fields:u,errors:p}=s.value??{},c=s.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==c)throw new i.A(C,`The geometry type could not be determined for type '${o}`,{typeName:o,geometryType:c,fields:u,errors:p});return{...R(u??[]),geometryType:c,swapXY:d}}(e,o,a,n);return{url:e.operations.GetCapabilities.url,name:o.name,namespaceUri:o.namespaceUri,fields:c,geometryField:h,geometryType:d,objectIdField:y,spatialReference:n.spatialReference??new u.A({wkid:o.defaultSpatialReference}),extent:s,swapXY:f,wfsCapabilities:e,customParameters:n.customParameters}}function R(e){const t=e.find(e=>"geometry"===e.type);let r=e.find(e=>"oid"===e.type);return e=e.filter(e=>"geometry"!==e.type),r||(r=new h.A({name:v,type:"oid",alias:v}),e.unshift(r)),{geometryField:t?.name??null,objectIdField:r.name,fields:e}}async function P(e,t,r,i={}){let o,s=!1;const[a,l]=await Promise.all([j(e.operations.GetFeature.url,t,r,e.operations.GetFeature.outputFormat,{...i,count:1}),(0,n.A)(e.operations.GetFeature.url,{responseType:"text",query:E(t,r,void 0,{...i,count:1}),signal:i?.signal})]),u="FeatureCollection"===a.type&&a.features[0]?.geometry;if(u){let e;switch(o=c.gy.fromJSON((0,d.xD)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){const r=e[0].toFixed(3),n=e[1].toFixed(3),i=parseFloat(t[1]).toFixed(3);r===parseFloat(t[2]).toFixed(3)&&n===i&&(s=!0)}}return{geometryType:o,swapXY:s}}async function _(e,t,r){return function(e,t){const{name:r}=k(e),n=N(t);$(n);const s=(0,o.I6)((0,f.i)(n.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===r);if(null!=s){const e=s.getAttribute("type"),t=e?(0,o.I6)((0,f.i)(n.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===k(e).name):(0,o.I6)((0,f.i)(s,{complexType:e=>e}),()=>!0);if(t)return function(e){const t=[],r=[];let n;const o=(0,f.i)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const s of o){const o=s.getAttribute("name");if(!o)continue;let a,l;if(s.hasAttribute("type")?a=k(s.getAttribute("type")).name:(0,f.p)(s,{simpleType:{restriction:e=>(a=k(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!a)continue;const u="true"===s.getAttribute("nillable");let p=!1;switch(a.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":r.push(new h.A({name:o,alias:o,type:"integer",nullable:u,length:(0,m._b)("integer")}));break;case"float":case"double":case"decimal":r.push(new h.A({name:o,alias:o,type:"double",nullable:u,length:(0,m._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":r.push(new h.A({name:o,alias:o,type:"string",nullable:u,length:l??(0,m._b)("string")}));break;case"datetime":case"date":r.push(new h.A({name:o,alias:o,type:"date",nullable:u,length:l??(0,m._b)("date")}));break;case"pointpropertytype":n="point",p=!0;break;case"multipointpropertytype":n="multipoint",p=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":n="polyline",p=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":n="polygon",p=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":p=!0,t.push(new i.A(C,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new i.A("wfs-layer:unknown-field-type",`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}p&&r.push(new h.A({name:o,alias:o,type:"geometry",nullable:u}))}for(const e of r)if("integer"===e.type&&!e.nullable&&O.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:n,fields:r,errors:t}}(t)}throw new i.A(b,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(n)})}(t,(await(0,n.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:w,TYPENAME:t,TYPENAMES:t,...r?.customParameters},signal:r?.signal})).data)}const O=new Set(["objectid","fid"]);async function j(e,t,r,o,s){let{data:a}=await(0,n.A)(e,{responseType:"text",query:E(t,r,o,s),signal:s?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new i.A("wfs-layer:malformed-json","Error while parsing the response",{response:a,error:e})}}function E(e,t,r,n){const i="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:e,OUTPUTFORMAT:r,SRSNAME:"EPSG:"+i,STARTINDEX:n?.startIndex,COUNT:n?.count,...n?.customParameters}}async function Z(e,t,r){const i=await(0,n.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:t,RESULTTYPE:"hits",...r?.customParameters},signal:r?.signal}),o=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(i.data);if(o?.groups)return+o.groups.numberMatched}function N(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function k(e){const[t,r]=e.split(":");return{prefix:r?t:"",name:r??t}}function $(e){let t="",r="";if((0,f.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{r=e.textContent}})}),t)throw new i.A(`wfs-layer:${t}`,r)}function L(e,t,r){const n={wkid:t.defaultSpatialReference},i=null!=r?.wkid?{wkid:r.wkid}:n;return{spatialReference:i,getFeatureSpatialReference:(0,y.Fi)(e)||i.wkid&&t.supportedSpatialReferences.includes(i.wkid)?{wkid:i.wkid}:{wkid:t.defaultSpatialReference}}}},13043(e,t,r){function n(e,t){if(e&&t)for(const r of e.children)if(r.localName in t){const e=t[r.localName];if("function"==typeof e){const t=e(r);t&&n(r,t)}else n(r,e)}}function*i(e,t){for(const r of e.children)if(r.localName in t){const e=t[r.localName];"function"==typeof e?yield e(r):yield*i(r,e)}}r.d(t,{i:()=>i,p:()=>n})},91880(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{n=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],u.prototype,"order",void 0),u=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},96184(e,t,r){r.d(t,{A:()=>f});var n=r(5482),i=r(69540),o=r(25482),s=r(91429),a=r(79677),l=r(10184),u=r(56400),p=r(36005),c=r(43937);function d(e,t){return l.A.fromJSON({value:e,unit:t})}let f=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],f.prototype,"cumulative",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"endField",void 0),(0,n.Cg)([(0,s.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,p.w)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,c.K)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,n.Cg)([(0,p.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,n.Cg)([(0,c.K)("interval")],f.prototype,"writeInterval",null),(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"startField",void 0),(0,n.Cg)([(0,s.MZ)((0,u.P6)("timeReference",!0))],f.prototype,"timeZone",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],f.prototype,"useTime",void 0),(0,n.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],f.prototype,"stops",void 0),f=(0,n.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],f)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>o});var n=r(34727),i=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const o=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:n}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],c(n));return t}(e);if(o&&((0,n.gg)(t,o[0])||(0,n.ZH)(r,o[1])))return"";const s=Array.from(a(e,t,r)),l=function(e,t,r){if(0===e.length)return!0;const i=p(e.at(0)?.minScale),o=c(e.at(-1)?.maxScale);if((0,n.ZH)(i,t)||(0,n.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],i=e[t+1];if((0,n.ZH)(p(i.minScale),c(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,r){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const n of e.filters)l(n.minScale,n.maxScale,t,r)&&(yield n)}}function l(e,t,r,i){return e=p(e),r=p(r),t=c(t),!(!(0,n.Sp)(r,e)&&(i??r)>e||(0,n.Hx)(t,r)||void 0!==i&&(0,n.Sp)(i,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||Number.POSITIVE_INFINITY}function c(e){return e||0}},17036(e,t,r){r.d(t,{p:()=>l});var n=r(44208),i=r(53966),o=r(20437),s=r(95466),a=r(30524);function l(){return{fields:{type:[o.A],value:null,set:function(e){if(e&&(0,n.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");i.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||i.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},32730(e,t,r){r.d(t,{BI:()=>f,D3:()=>c,XJ:()=>d,lc:()=>p,mX:()=>h,rU:()=>y,tH:()=>b,vK:()=>C,zA:()=>x});var n=r(799);const i="__begin__",o="__end__",s=new RegExp(i,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+i,"i"),u=new RegExp(o+"$","i");function p(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function c(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function d(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=p(e.labelExpression),t.type="conventional"),t}function f(e){const t=d(e);if(!t)return null;switch(t.type){case"conventional":return h(t.expression);case"arcade":return t.expression}return null}function y(e){const t=d(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(m);return t?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function h(e){let t;return e?(t=(0,n.HC)(e,e=>i+'$feature["'+e+'"]'+o),t=l.test(t)?t.replace(l,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(s,'" + ').replaceAll(a,' + "')):t='""',t}const m=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=g.exec(e)||w.exec(e);return t?t[1]||t[3]:(t=v.exec(e),t?t[2]:null)}const C=Symbol("LabelClassInstance");function x(e){return null!=e&&"object"==typeof e&&C in e}},5757(e,t,r){r.d(t,{B:()=>i,P:()=>n});const n=Symbol("PopupTemplateInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}},10407(e,t,r){r.d(t,{It:()=>f,LG:()=>s,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>c});var n=r(91218),i=r(16930),o=r(28735);function s(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?s(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function f(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let o=!i||i.includes("features:user:edit"),s=!!r&&!!i?.includes("features:user:fullEdit");const a="update"===n||"admin"===n;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}},73681(e,t,r){r.d(t,{n:()=>l});var n=r(49186),i=r(53966),o=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),c={};if(t)for(const e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const f=await(0,a.xR)(e.expression,null,c);if(!f)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const y=!s||!s.greaterEqual(4,0);y&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const h=new u(r,y);return new l(y,p,f,h)}constructor(e,t,r,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,r,n){try{return this._reader.bind(e,r,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>s,gf:()=>o,of:()=>i,uY:()=>n});const n=Symbol("SizeVariableInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const r=t||s(e),n=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===n?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},37745(e,t,r){r.d(t,{A:()=>d});var n,i=r(5482),o=r(52106),s=r(4718),a=r(91429);let l=class extends o.A{static{n=this}constructor(e){super(e),this.stackedAttributes=null}cloneShallow(){return new n(Object.assign({stackedAttributes:this.stackedAttributes},super.cloneShallow()))}toJSON(){return{...super.toJSON(),stackedAttributes:(0,s.o8)(this.stackedAttributes)}}};(0,i.Cg)([(0,a.MZ)()],l.prototype,"stackedAttributes",void 0),l=n=(0,i.Cg)([(0,a.$K)("esri.AttributeBinsGraphic")],l);var u=r(69540),p=r(22671),c=r(36005);let d=class extends((0,u.OU)(p.A)){constructor(e){super(e),this.features=[]}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l)}};(0,i.Cg)([(0,a.MZ)({type:[l],json:{write:!0}})],d.prototype,"features",void 0),(0,i.Cg)([(0,c.w)("features")],d.prototype,"readFeatures",null),d=(0,i.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsFeatureSet")],d)},22671(e,t,r){r.d(t,{A:()=>w});var n,i=r(5482),o=r(52106),s=r(66552),a=r(25482),l=r(4718),u=r(91429),p=r(16930),c=r(60408),d=r(65864),f=r(50498),y=r(20437),h=r(36005),m=r(43937);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,d.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=p.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e?.[r];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,i],scale:[o,s]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*o+n,e=>i-e*s,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const n=p.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const o=e[t],s=r.fromJSON(o),a=o.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=n);const l=o.aggregateGeometries,u=s.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],i=r?.spatialReference;null==t||i||(t.spatialReference=n)}i.push(s)}return i}_quantizePoints(e,t,r){let n,i;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=r(a[1]);e===n&&s===i||(o.push([e-n,s-i]),n=e,i=s)}else n=t(a[0]),i=r(a[1]),o.push([n,i])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,c.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],s=this._quantizePoints(o,t,r);s&&i.push(s)}return i.length>0?((0,c.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,c.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=r(a)}}if(n&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=r(a)}if(n&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],w.prototype,"features",void 0),(0,i.Cg)([(0,h.w)("features")],w.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,i.Cg)([(0,m.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:f.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,h.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i.Cg)([(0,m.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){r.d(t,{K:()=>c,Q:()=>l});var n=r(5482),i=r(66552),o=r(53966),s=r(91429),a=r(93223);const l=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field",c=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&p||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==p&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,n.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r}},55674(e,t,r){r.d(t,{Ad:()=>f,Gj:()=>m,QY:()=>d,lL:()=>g,xR:()=>y});var n=r(66131),i=r(49186),o=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),u=r(43668),p=r(98623);const c=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of c)t.hasArcadeDependency(r)&&e.add(r);return e}function f(e,t){return h.create(e,t,null,["$feature","$view"])}function y(e,t,r){return h.create(e,t,r,["$feature","$view","$config"])}class h{static async create(e,t,r,n){const{arcade:o,Dictionary:s}=await(0,u.l)();let a;try{a=o.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const p={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},c=o.compileScript(a,p);let d=null;null!=r&&(d=new s(r),d.immutable=!0);const f=new s;return f.immutable=!1,f.setField("scale",0),new h(e,o,a,c,t,f,d,s)}constructor(e,t,r,n,i,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=r?n.lY.epochToArcadeDate(i,r):n.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=o?null!=r?n.lY.epochToArcadeDate(o,r):n.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const n=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===p.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??p.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},11831(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),o=r(25482),s=r(90629),a=r(91429),l=r(5760);let u=n=class extends o.o{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(e){this._set("size",e)}castSize(e){return(0,s.cr)(e)}clone(){return new n({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,i.Cg)([(0,a.MZ)({type:l.h9,json:{default:"none",write:!0}})],u.prototype,"decoration",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"family",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:(e,t,r)=>({enabled:!r||!r.textSymbol3D})}}})],u.prototype,"size",null),(0,i.Cg)([(0,a.wg)("size")],u.prototype,"castSize",null),(0,i.Cg)([(0,a.MZ)({type:l._R,json:{default:"normal",write:!0}})],u.prototype,"style",void 0),(0,i.Cg)([(0,a.MZ)({type:l.NM,json:{default:"normal",write:!0}})],u.prototype,"weight",void 0),u=n=(0,i.Cg)([(0,a.$K)("esri.symbols.Font")],u)},68249(e,t,r){r.d(t,{A:()=>y});var n,i=r(5482),o=r(68197),s=r(4718),a=r(90629),l=r(91429),u=r(11831),p=r(20378),c=r(5760),d=r(93223),f=r(43937);let y=n=class extends p.A{constructor(...e){super(...e),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const n={};return e&&(n.text=e),t&&(n.font=t),r&&(n.color=r),n}get haloSize(){return this._get("haloSize")??null}set haloSize(e){this._set("haloSize",e)}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(e){this._set("lineWidth",e)}writeLineWidth(e,t,r,n){n&&"string"!=typeof n?n.origin:t[r]=e}castLineWidth(e){return(0,a.cr)(e)}writeLineHeight(e,t,r,n){n&&"string"!=typeof n?n.origin:t[r]=e}clone(){return new n({angle:this.angle,backgroundColor:(0,s.o8)(this.backgroundColor),borderLineColor:(0,s.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,s.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,s.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,i.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],y.prototype,"backgroundColor",void 0),(0,i.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],y.prototype,"borderLineColor",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0},cast:a.cr})],y.prototype,"borderLineSize",void 0),(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],y.prototype,"font",void 0),(0,i.Cg)([(0,l.MZ)({...c.rM,json:{write:!0}})],y.prototype,"horizontalAlignment",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"kerning",void 0),(0,i.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],y.prototype,"haloColor",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],y.prototype,"haloSize",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"rightToLeft",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"rotated",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"text",void 0),(0,i.Cg)([(0,d.e)({esriTS:"text"},{readOnly:!0})],y.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({...c.x0,json:{write:!0}})],y.prototype,"verticalAlignment",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],y.prototype,"xoffset",null),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],y.prototype,"yoffset",null),(0,i.Cg)([(0,l.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],y.prototype,"angle",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],y.prototype,"width",void 0),(0,i.Cg)([(0,l.MZ)({type:Number})],y.prototype,"lineWidth",null),(0,i.Cg)([(0,f.K)("lineWidth")],y.prototype,"writeLineWidth",null),(0,i.Cg)([(0,l.wg)("lineWidth")],y.prototype,"castLineWidth",null),(0,i.Cg)([(0,l.MZ)(c.Tb)],y.prototype,"lineHeight",void 0),(0,i.Cg)([(0,f.K)("lineHeight")],y.prototype,"writeLineHeight",null),y=n=(0,i.Cg)([(0,l.$K)("esri.symbols.TextSymbol")],y)},5760(e,t,r){r.d(t,{NM:()=>a,Tb:()=>l,_R:()=>s,h9:()=>o,rM:()=>u,x0:()=>p,y7:()=>c});var n=r(34727),i=r(56507);const o=["none","underline","line-through"],s=["normal","italic","oblique"],a=["normal","lighter","bold","bolder"],l={type:Number,cast:e=>{const t=(0,i.GB)(e);return 0===t?1:(0,n.qE)(t,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},p={type:["baseline","top","middle","bottom"],nonNullable:!0},c=8}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6684],{40876(e,t,r){r.d(t,{Eq:()=>h,G1:()=>y,TS:()=>l,Tf:()=>f,V6:()=>n,Vm:()=>d,ay:()=>a,c1:()=>w,c4:()=>o,j5:()=>u,lT:()=>p,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 n(e){return!!i[e]||!!i[e.toLowerCase()]}function l(e){return i[e]??i[e.toLowerCase()]}function o(e){return[...l(e)]}function s(e,t,r){r<0&&++r,r>1&&--r;const i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function a(e,t,r,i=1){const n=(e%360+360)%360/360,l=r<=.5?r*(t+1):r+t-r*t,o=2*r-l;return[Math.round(255*s(o,l,n+1/3)),Math.round(255*s(o,l,n)),Math.round(255*s(o,l,n-1/3)),i]}function u(e){const t=e.length>5,r=t?8:4,i=(1<<r)-1,n=t?1:17,l=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const s=[0,0,0,1];let a;return l&&(a=o&i,o>>=r,s[3]=n*a/255),a=o&i,o>>=r,s[2]=n*a,a=o&i,o>>=r,s[1]=n*a,a=o&i,o>>=r,s[0]=n*a,s}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),r=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),n=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,i+16*i,(n+16*n)/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 p(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&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])),g(t)}return g(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function g(e){return e[0]=w(e[0]),e[1]=w(e[1]),e[2]=w(e[2]),e[3]=4===e.length?y(e[3]):1,e}function h(e){let t=n(e)?l(e):null;return t??=p(e),t??=c(e),t}function d(e){const t=h(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function y(e){return m(e,0,1)}function w(e){return Math.round(m(e,0,255))}function m(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const f=2.2,v=1/f;function b(e){return e**v}},90629(e,t,r){r.d(t,{Lz:()=>n,PN:()=>l,cr:()=>o,gs:()=>a,r_:()=>u,tc:()=>s});const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function n(e){return e?e/72*96:0}function l(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(i);if(t){const r=Number(t[1]),i=t[3]&&t[3].toLowerCase(),n=e.startsWith("-"),o="px"===i?l(r):r;return n?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function s(e=0,t=0){return{x:e,y:t}}function a(e=0,t=0){return[e,t]}function u(e=0,t=0,r=0){return[e,t,r]}},17029(e,t,r){r.r(t),r.d(t,{default:()=>j});var i,n=r(5482),l=r(11254),o=r(51447),s=r(49186),a=r(66552),u=r(53966),c=r(25728),p=r(91429),g=r(86738),h=r(16930),d=r(5443),y=r(19419),w=r(4146),m=r(63074),f=r(54310),v=r(25036),b=r(33446),M=r(87045);const A=new(r(72802).U)(0,0,0);let C=i=class extends((0,m.dM)((0,v.j)((0,f.J)(w.A)))){constructor(e){super(e),this.tileInfo=M.A.create({spatialReference:h.A.WebMercator,size:256}),this.type="base-tile",this.fullExtent=new d.A(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,h.A.WebMercator),this.spatialReference=h.A.WebMercator}addResolvingPromise(e){super.addResolvingPromise(e)}getTileBounds(e,t,r,i){const n=i||(0,y.vt)();return A.level=e,A.row=t,A.col=r,A.extent=n,this.tileInfo.updateTileInfo(A),n}fetchTile(e,t,r,i={}){const{signal:n}=i,o=this.getTileUrl(e,t,r),s={responseType:"image",signal:n,query:{...this.refreshParameters}};return(0,l.A)(o??"",s).then(e=>e.data)}async fetchImageBitmapTile(e,t,r,n={}){const{signal:o}=n;if(this.fetchTile!==i.prototype.fetchTile){const i=await this.fetchTile(e,t,r,n);return(0,b.Cp)(i,e,t,r,n)}const s=this.getTileUrl(e,t,r)??"",a={responseType:"blob",signal:o,query:{...this.refreshParameters}},{data:u}=await(0,l.A)(s,a);return(0,b.Cp)(u,e,t,r,n)}getTileUrl(){throw new s.A("basetilelayer:gettileurl-not-implemented","getTileUrl() is not implemented")}};(0,n.Cg)([(0,p.MZ)({type:M.A})],C.prototype,"tileInfo",void 0),(0,n.Cg)([(0,p.MZ)({type:["show","hide"]})],C.prototype,"listMode",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0,value:"base-tile"})],C.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)({nonNullable:!0})],C.prototype,"fullExtent",void 0),(0,n.Cg)([(0,p.MZ)({type:h.A})],C.prototype,"spatialReference",void 0),C=i=(0,n.Cg)([(0,p.$K)("esri.layers.BaseTileLayer")],C);var k=r(34287),x=r(91806);const z=new a.J({BingMapsAerial:"aerial",BingMapsRoad:"road",BingMapsHybrid:"hybrid"});(0,o.uW)(u.A.getLogger("esri.layers.BingMapsLayer"),"esri.layers.BingMapsLayer",{version:"4.33",warnOnce:!0});let T=class extends((0,k.q)((0,c.M)(C))){constructor(e){super(e),this.type="bing-maps",this.tileInfo=new M.A({size:[256,256],dpi:96,origin:new g.A({x:-20037508.342787,y:20037508.342787,spatialReference:h.A.WebMercator}),spatialReference:h.A.WebMercator,lods:[new x.A({level:1,resolution:78271.5169639999,scale:295828763.795777}),new x.A({level:2,resolution:39135.7584820001,scale:147914381.897889}),new x.A({level:3,resolution:19567.8792409999,scale:73957190.948944}),new x.A({level:4,resolution:9783.93962049996,scale:36978595.474472}),new x.A({level:5,resolution:4891.96981024998,scale:18489297.737236}),new x.A({level:6,resolution:2445.98490512499,scale:9244648.868618}),new x.A({level:7,resolution:1222.99245256249,scale:4622324.434309}),new x.A({level:8,resolution:611.49622628138,scale:2311162.217155}),new x.A({level:9,resolution:305.748113140558,scale:1155581.108577}),new x.A({level:10,resolution:152.874056570411,scale:577790.554289}),new x.A({level:11,resolution:76.4370282850732,scale:288895.277144}),new x.A({level:12,resolution:38.2185141425366,scale:144447.638572}),new x.A({level:13,resolution:19.1092570712683,scale:72223.819286}),new x.A({level:14,resolution:9.55462853563415,scale:36111.909643}),new x.A({level:15,resolution:4.77731426794937,scale:18055.954822}),new x.A({level:16,resolution:2.38865713397468,scale:9027.977411}),new x.A({level:17,resolution:1.19432856685505,scale:4513.988705}),new x.A({level:18,resolution:.597164283559817,scale:2256.994353}),new x.A({level:19,resolution:.298582141647617,scale:1128.497176}),new x.A({level:20,resolution:.1492910708238085,scale:564.248588})]}),this.key=null,this.style="road",this.culture="en-US",this.region=null,this.portalUrl=null,this.hasAttributionData=!0}get bingMetadata(){return this._get("bingMetadata")}set bingMetadata(e){this._set("bingMetadata",e)}get copyright(){return null!=this.bingMetadata?this.bingMetadata.copyright:null}get operationalLayerType(){return z.toJSON(this.style)}get bingLogo(){return null!=this.bingMetadata?this.bingMetadata.brandLogoUri:null}load(e){return this.key?this.addResolvingPromise(this._getMetadata()):this.portalUrl?this.addResolvingPromise(this._getPortalBingKey().then(()=>this._getMetadata())):this.addResolvingPromise(Promise.reject(new s.A("bingmapslayer:load","Bing layer must have bing key."))),Promise.resolve(this)}getTileUrl(e,t,r){if(!this.loaded||null==this.bingMetadata)return null;const i=this.bingMetadata.resourceSets[0].resources[0],n=i.imageUrlSubdomains[t%i.imageUrlSubdomains.length],l=this._getQuadKey(e,t,r);return i.imageUrl.replace("{subdomain}",n).replace("{quadkey}",l)}async fetchAttributionData(){return this.load().then(()=>null==this.bingMetadata?null:{contributors:this.bingMetadata.resourceSets[0].resources[0].imageryProviders.map(e=>({attribution:e.attribution,coverageAreas:e.coverageAreas.map(e=>({zoomMin:e.zoomMin-(e.zoomMin?1:0),zoomMax:e.zoomMax-(e.zoomMin?1:0),score:1,bbox:[e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]]}))}))})}_getMetadata(){const e={road:"roadOnDemand",aerial:"aerial",hybrid:"aerialWithLabelsOnDemand"}[this.style];return(0,l.A)(`https://dev.virtualearth.net/REST/v1/Imagery/Metadata/${e}`,{responseType:"json",query:{include:"ImageryProviders",uriScheme:"https",key:this.key,suppressStatus:!0,output:"json",culture:this.culture,userRegion:this.region}}).then(e=>{const t=e.data;if(200!==t.statusCode)throw new s.A("bingmapslayer:getmetadata",t.statusDescription);if(this.bingMetadata=t,0===this.bingMetadata.resourceSets.length)throw new s.A("bingmapslayer:getmetadata","no bing resourcesets");if(0===this.bingMetadata.resourceSets[0].resources.length)throw new s.A("bingmapslayer:getmetadata","no bing resources")}).catch(e=>{throw new s.A("bingmapslayer:getmetadata",e.message)})}_getPortalBingKey(){return(0,l.A)(this.portalUrl??"",{responseType:"json",authMode:"no-prompt",query:{f:"json"}}).then(e=>{if(!e.data.bingKey)throw new s.A("bingmapslayer:getportalbingkey","The referenced Portal does not contain a valid bing key");this.key=e.data.bingKey}).catch(e=>{throw new s.A("bingmapslayer:getportalbingkey",e.message)})}_getQuadKey(e,t,r){let i="";for(let n=e;n>0;n--){let e=0;const l=1<<n-1;0!==(r&l)&&(e+=1),0!==(t&l)&&(e+=2),i+=e.toString()}return i}};(0,n.Cg)([(0,p.MZ)({json:{read:!1,write:!1},value:null})],T.prototype,"bingMetadata",null),(0,n.Cg)([(0,p.MZ)({json:{read:!1,write:!1},value:"bing-maps",readOnly:!0})],T.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)({type:M.A})],T.prototype,"tileInfo",void 0),(0,n.Cg)([(0,p.MZ)({type:String,readOnly:!0,json:{read:!1,write:!1}})],T.prototype,"copyright",null),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!1,read:!1}})],T.prototype,"key",void 0),(0,n.Cg)([(0,p.MZ)({type:z.apiValues,nonNullable:!0,json:{read:{source:"layerType",reader:z.read}}})],T.prototype,"style",void 0),(0,n.Cg)([(0,p.MZ)({type:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"]})],T.prototype,"operationalLayerType",null),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!1,read:!1}})],T.prototype,"culture",void 0),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!1,read:!1}})],T.prototype,"region",void 0),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!0,read:!0}})],T.prototype,"portalUrl",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,json:{write:!1,read:!1}})],T.prototype,"hasAttributionData",void 0),(0,n.Cg)([(0,p.MZ)({type:String,readOnly:!0})],T.prototype,"bingLogo",null),T=(0,n.Cg)([(0,p.$K)("esri.layers.BingMapsLayer")],T);const j=T},91806(e,t,r){r.d(t,{A:()=>a});var i,n=r(5482),l=r(25482),o=r(91429),s=r(56507);let a=class extends l.o{static{i=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new i({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,n.Cg)([(0,o.MZ)({type:s.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.LOD")],a)},87045(e,t,r){r.d(t,{A:()=>v});var i,n=r(5482),l=r(66552),o=r(25482),s=r(86211),a=r(91429),u=r(56507),c=r(86738),p=r(16930),g=r(21325),h=r(28735),d=r(91806),y=r(72802),w=r(36005),m=r(43937);const f=new l.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let v=class extends o.o{static{i=this}static create(e={}){const{resolutionFactor:t=1,scales:r,size:n=256,spatialReference:l=p.A.WebMercator,numLODs:o=24}=e;if(!(0,g.fn)(l)){const e=[];if(r)for(let t=0;t<r.length;t++){const i=r[t];e.push(new d.A({level:t,scale:i,resolution:i}))}else{let t=5e-4;for(let r=o-1;r>=0;r--)e.unshift(new d.A({level:r,scale:t,resolution:t})),t*=2}return new i({dpi:96,lods:e,origin:new c.A(0,0,l),size:[n,n],spatialReference:l})}const a=(0,g.Vp)(l),u=e.origin?new c.A({x:e.origin.x,y:e.origin.y,spatialReference:l}):new c.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:l}:{x:0,y:0,spatialReference:l}),h=1/(39.37*(0,s.GA)(l)*96),y=[];if(r)for(let e=0;e<r.length;e++){const t=r[e],i=t*h;y.push(new d.A({level:e,scale:t,resolution:i}))}else{let e=(0,g.EA)(l)?512/n*591657527.5917094:256/n*591657527.591555;const r=Math.ceil(o/t);y.push(new d.A({level:0,scale:e,resolution:e*h}));for(let i=1;i<r;i++){const r=e/2**t,n=r*h;y.push(new d.A({level:i,scale:r,resolution:n})),e=r}}return new i({dpi:96,lods:y,origin:u,size:[n,n],spatialReference:l})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const r=(0,g.Vp)(e);return e.isWrappable&&!!r&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return c.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0;const i=[],n=this._levelToLOD={};e&&(t=-1/0,r=1/0,e.forEach(e=>{i.push(e.scale),t=e.scale>t?e.scale:t,r=e.scale<r?e.scale:r,n[e.level]=e})),this._set("scales",i),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const r=Math.floor(e),i=r+1;return t[r]/(t[r]/t[i])**(e-r)}scaleToZoom(e){const t=this.scales,r=t.length-1;let i=0;for(;i<r;i++){const r=t[i],n=t[i+1];if(r<=e)return i;if(n===e)return i+1;if(r>e&&n<e)return i+Math.log(r/e)/Math.log(r/n)}return i}tileAt(e,t,r,i){const n=this.lodAt(e);if(!n)return null;let l,o;if("number"==typeof t)l=t,o=r;else if((0,g.aI)(t.spatialReference,this.spatialReference))l=t.x,o=t.y,i=r;else{const e=(0,h.Cv)(t,this.spatialReference);if(null==e)return null;l=e.x,o=e.y,i=r}const s=n.resolution*this.size[0],a=n.resolution*this.size[1];return i??=new y.U(0,0,0),i.level=e,i.row=Math.floor((this.origin.y-o)/a+.001),i.col=Math.floor((l-this.origin.x)/s+.001),this.updateTileInfo(i),i}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let r=this.lodAt(e.level);if(!r&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(r=t)}if(!r)return!1;const i=e.level-r.level,n=r.resolution*this.size[0]/2**i,l=r.resolution*this.size[1]/2**i;return e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*l,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+l,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const r=this.lodAt(t.level);if(null==r)return null;const{resolution:i}=r,n=i*this.size[0],l=i*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*l,e[2]=e[0]+n,e[3]=e[1]+l,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return i.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const r=[],n=this.lods.length-t;for(let e=0;e<n;e++){const i=e+t,{scale:n,resolution:l}=i>=0?this.lods[i]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};r.push(new d.A({level:e,scale:n,resolution:l}))}return new i({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){const i=e[r];this._upsampleLevels[i.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/i.resolution:0},t=i}}};(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{read:f.read,write:f.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,n.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,n.Cg)([(0,w.w)("origin")],v.prototype,"readOrigin",null),(0,n.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,n.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],v.prototype,"size",void 0),(0,n.Cg)([(0,w.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,n.Cg)([(0,m.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],v.prototype,"writeSize",null),(0,n.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],v)},72802(e,t,r){r.d(t,{U:()=>n});var i=r(19419);class n{constructor(e,t,r,n=(0,i.vt)()){this._level=e,this._row=t,this._col=r,this.extent=n}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new n(e.level,e.row,e.col,e.extent)}}},33446(e,t,r){r.d(t,{Cp:()=>o,mn:()=>l});var i=r(49186),n=r(17676);async function l(e,t,r){let l;try{l=await s(e,r)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,n.Te)(r),l}async function o(e,t,r,l,o){let a;try{a=await s(e,o)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${l}`,{error:e,level:t,row:r,col:l})}return(0,n.Te)(o),a}async function s(e,t){const r=await createImageBitmap(e,{imageOrientation:t?.imageOrientation??"none"}),i=t?.type??(e instanceof Blob?e.type.startsWith("image/")?e.type:t?.allowDeriveTypeFromData?await async function(e){return e.byteLength<2?"unknown":137===e[0]&&80===e[1]?"image/png":71===e[0]&&73===e[1]?"image/gif":66===e[0]&&77===e[1]?"image/bmp":255===e[0]&&216===e[1]?"image/jpeg":"unknown"}(await e.bytes()):void 0:void 0);return new a(r,i)}class a{constructor(e,t){this.bitmap=e,this.type=t}get isOpaque(){return"image/jpeg"===this.type}}},78553(e,t,r){r.d(t,{D:()=>l,p:()=>n});var i=r(56507);function n(e){const t=(0,i.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function l(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|