@arcgis/core 4.27.0-next.20230521 → 4.27.0-next.20230523
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/Graphic.js +1 -1
- package/WebMap.js +1 -1
- package/arcade/featureset/actions/SpatialFilter.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/030b43764f945cb1f8b0.js +1 -0
- package/assets/esri/core/workers/chunks/0d02856e55d20b99fc8b.js +1 -0
- package/assets/esri/core/workers/chunks/{69242c66492717c7388c.js → 0fcb8d408696075338e2.js} +1 -1
- package/assets/esri/core/workers/chunks/{b91c155de9a89e4e6971.js → 187c3b971ed0fc4363ef.js} +1 -1
- package/assets/esri/core/workers/chunks/{85c6ce93aa41e6b65997.js → 18db07d739a713cc0465.js} +1 -1
- package/assets/esri/core/workers/chunks/1b6177e23327be645c8c.js +1 -0
- package/assets/esri/core/workers/chunks/28286014a575042619ee.js +1 -0
- package/assets/esri/core/workers/chunks/{692dfeb2e255fdc0ade2.js → 39288fa69561d21f04f8.js} +1 -1
- package/assets/esri/core/workers/chunks/{2b9d3e60977934a6d471.js → 3bc6b5f0643364749ef8.js} +1 -1
- package/assets/esri/core/workers/chunks/45e5ad704d18dd0857ce.js +1 -0
- package/assets/esri/core/workers/chunks/4d24efa01d1accc5a5f0.js +1 -0
- package/assets/esri/core/workers/chunks/{6312783626bacf52df7a.js → 55486c644e8b01326a0d.js} +1 -1
- package/assets/esri/core/workers/chunks/5576858f56314afcb4d5.js +1 -0
- package/assets/esri/core/workers/chunks/{62d9d15f0d00a75da42c.js → 571dac507622948ac03e.js} +1 -1
- package/assets/esri/core/workers/chunks/59063d6abf70f6598425.js +1 -0
- package/assets/esri/core/workers/chunks/5a4c04bf4f57e74457c5.js +1 -0
- package/assets/esri/core/workers/chunks/5bf04c32e0ac89dcbf9f.js +1 -0
- package/assets/esri/core/workers/chunks/6a3d611e8842afbb50ab.js +2 -0
- package/assets/esri/core/workers/chunks/{55ca6ba8b40921025181.js.LICENSE.txt → 6a3d611e8842afbb50ab.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/70d6e5edf05ef7079fa8.js +1 -0
- package/assets/esri/core/workers/chunks/71bdf8f10aee0077f681.js +1 -0
- package/assets/esri/core/workers/chunks/72b2c3c8e76da699690c.js +1 -0
- package/assets/esri/core/workers/chunks/78ce0b1af62435d8ebf4.js +1 -0
- package/assets/esri/core/workers/chunks/791f529e90135398b3d5.js +1 -0
- package/assets/esri/core/workers/chunks/8d3abfe6fdc5ac8d6cb7.js +1 -0
- package/assets/esri/core/workers/chunks/{1edc5c06874cb12c5478.js → 924e4a18d8403d1caea3.js} +1 -1
- package/assets/esri/core/workers/chunks/96d339abcd917f1f0ae1.js +1 -0
- package/assets/esri/core/workers/chunks/97cdbec7532cfcdf9ad2.js +1 -0
- package/assets/esri/core/workers/chunks/{f3f6035a17f7dcd19675.js → 9ab400a89dd701778d2c.js} +1 -1
- package/assets/esri/core/workers/chunks/{1488b3d48232844b8bb4.js → 9fe349f43d5ff5a4ac2d.js} +1 -1
- package/assets/esri/core/workers/chunks/{22396dd3717d17a5d235.js → a1c31bb8c12831539328.js} +1 -1
- package/assets/esri/core/workers/chunks/b0571b9e602218cdc7aa.js +1 -0
- package/assets/esri/core/workers/chunks/b1d88f8e528bf7092f35.js +1 -0
- package/assets/esri/core/workers/chunks/b4e2dc6b3d06b426e596.js +1 -0
- package/assets/esri/core/workers/chunks/{48abcb2d88f22e6e9fde.js → c2cb9fa18c77f0c5104e.js} +1 -1
- package/assets/esri/core/workers/chunks/cad7a2092ea7f51dbd8b.js +1 -0
- package/assets/esri/core/workers/chunks/d08800a30b1227591986.js +1 -0
- package/assets/esri/core/workers/chunks/d725dbbdeb05322e6d88.js +1 -0
- package/assets/esri/core/workers/chunks/df3e497d12ed77bae168.js +1 -0
- package/assets/esri/core/workers/chunks/fb080339bfaf32731ca6.js +1 -0
- package/assets/esri/core/workers/chunks/{56fc7924b4fb30239c19.js → fdf58386a67e54c09bfb.js} +1 -1
- 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/_core.scss +2 -0
- package/assets/esri/themes/base/widgets/_BasemapGallery.scss +86 -96
- package/assets/esri/themes/base/widgets/_FloorFilter.scss +6 -0
- package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +40 -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/views/interactive/tooltip/t9n/Tooltip.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_en.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nb.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ar.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_bg.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_bs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ca.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_cs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_da.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_de.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_el.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_en.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_es.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_et.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_fi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_fr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_he.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_hr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_hu.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_id.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_it.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ja.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ko.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_lt.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_lv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_nb.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_nl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pt-BR.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pt-PT.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ro.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ru.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_th.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_tr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_uk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_vi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-CN.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-HK.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-TW.json +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/chunks/mat4.js +1 -1
- package/core/accessorSupport/write.js +1 -1
- package/core/fontUtils.js +1 -1
- package/core/libs/gl-matrix-2/math/mat4.js +1 -1
- package/geometry/Mesh.js +1 -1
- package/geometry/support/MeshGeoreferencedRelativeVertexSpace.d.ts +4 -0
- package/geometry/support/MeshGeoreferencedRelativeVertexSpace.js +5 -0
- package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +4 -0
- package/geometry/support/MeshGeoreferencedVertexSpace.js +5 -0
- package/geometry/support/MeshLocalVertexSpace.d.ts +4 -0
- package/geometry/support/MeshLocalVertexSpace.js +5 -0
- package/geometry/support/MeshTransform.d.ts +4 -0
- package/geometry/support/MeshTransform.js +1 -1
- package/geometry/support/meshUtils/ElevationSamplerWorker.js +1 -1
- package/geometry/support/meshUtils/centerAt.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/geometry.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/geographicUtils.js +1 -1
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/meshUtils/offset.js +1 -1
- package/geometry/support/meshUtils/primitives.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/interfaces.d.ts +227 -25
- package/layers/LinkChartLayer.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/data/attributeSupport.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
- package/layers/knowledgeGraph/SessionMemoryStorage.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/rasterFunctions/BandArithmeticFunction.js +1 -1
- package/layers/support/rasterFunctions/BaseRasterFunction.js +1 -1
- package/layers/support/rasterFunctions/CompositeBandFunction.js +1 -1
- package/layers/support/rasterFunctions/ExtractBandFunction.js +1 -1
- package/layers/support/rasterFunctions/ExtractBandFunctionArguments.js +1 -1
- package/layers/support/rasterFunctions/NDVIFunction.js +1 -1
- package/networks/support/TopologyValidationJobInfo.js +1 -1
- package/package.json +2 -2
- package/popup/FieldInfo.js +1 -1
- package/portal/Portal.js +1 -1
- package/rest/support/FeatureSet.js +1 -1
- package/rest/support/meshFeatureSet.js +1 -1
- package/smartMapping/symbology/color.js +1 -1
- package/smartMapping/symbology/support/colors.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/support/utils.js +1 -1
- package/views/2d/layers/StreamLayerView2D.js +1 -1
- package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/meshFastUpdateUtils.js +1 -1
- package/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/undoRecords.js +1 -1
- package/views/3d/layers/StreamLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/symbolComplexity.js +1 -1
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/DisplayQualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/support/helpMessageUtils.js +1 -1
- package/views/interactive/dragEventPipeline.js +1 -1
- package/views/layers/StreamLayerView.js +1 -1
- package/widgets/BasemapGallery/css.js +1 -1
- package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/CoordinateConversion.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/Edits.js +1 -1
- package/widgets/Editor/Upload.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/Locate.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +5 -0
- package/widgets/UtilityNetworkValidateTopology.js +5 -0
- package/widgets/support/widgetUtils.js +1 -1
- package/assets/esri/core/workers/chunks/163bf2e13abbdd298374.js +0 -1
- package/assets/esri/core/workers/chunks/23f73f81aea461c0c6e6.js +0 -1
- package/assets/esri/core/workers/chunks/2640204c4655aa535ccb.js +0 -1
- package/assets/esri/core/workers/chunks/2bf42d060f877566b989.js +0 -1
- package/assets/esri/core/workers/chunks/34ec9623a1bece86a82b.js +0 -1
- package/assets/esri/core/workers/chunks/3bf52139340827794c3b.js +0 -1
- package/assets/esri/core/workers/chunks/3cebdd77a8401495097f.js +0 -1
- package/assets/esri/core/workers/chunks/48cb634255e39711a720.js +0 -1
- package/assets/esri/core/workers/chunks/4d5f71d84c85f45c97ea.js +0 -1
- package/assets/esri/core/workers/chunks/52d02021e858820bc4fa.js +0 -1
- package/assets/esri/core/workers/chunks/55ca6ba8b40921025181.js +0 -2
- package/assets/esri/core/workers/chunks/64b8f65e2ef6cbf08380.js +0 -1
- package/assets/esri/core/workers/chunks/662e479c370c11bcb8a7.js +0 -1
- package/assets/esri/core/workers/chunks/78aede1e114deefacb54.js +0 -1
- package/assets/esri/core/workers/chunks/7ef100158ca28631fcaf.js +0 -1
- package/assets/esri/core/workers/chunks/93ad67930aa7d4a4b0ac.js +0 -1
- package/assets/esri/core/workers/chunks/964795dfb57f0d0635d0.js +0 -1
- package/assets/esri/core/workers/chunks/99ce0a202dcd3d7dc290.js +0 -1
- package/assets/esri/core/workers/chunks/abe6c99a1a719543dbe8.js +0 -1
- package/assets/esri/core/workers/chunks/c3bf44146fddfe8990f7.js +0 -1
- package/assets/esri/core/workers/chunks/cbe817e966b57599bafd.js +0 -1
- package/assets/esri/core/workers/chunks/e15b5d7e46a834eacc57.js +0 -1
- package/assets/esri/core/workers/chunks/e1e0b3580e2c3098c9f4.js +0 -1
- package/assets/esri/core/workers/chunks/e305d20e4424451cab5b.js +0 -1
- package/assets/esri/core/workers/chunks/e6836c84470fb6bd25bf.js +0 -1
- package/assets/esri/core/workers/chunks/f924732902703233655e.js +0 -1
- package/assets/esri/core/workers/chunks/ff1c005eede0cf964332.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3874],{22303:(e,t,r)=>{r.d(t,{Z:()=>h});var o,s,i=r(35270),l=r(22021),n=r(75215);function a(e){return(0,l.uZ)((0,n.vU)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}class p{static blendColors(e,t,r,o=new p){return o.r=Math.round(e.r+(t.r-e.r)*r),o.g=Math.round(e.g+(t.g-e.g)*r),o.b=Math.round(e.b+(t.b-e.b)*r),o.a=e.a+(t.a-e.a)*r,o._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),o=r[1];if("rgb"===o&&3===e.length||"rgba"===o&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),p.fromArray(r,t)}return p.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===o&&3===e.length||"hsla"===o&&4===e.length)return p.fromArray((0,i.B7)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new p){if(4!==e.length&&7!==e.length||"#"!==e[0])return null;const r=4===e.length?4:8,o=(1<<r)-1;let s=Number("0x"+e.substr(1));return isNaN(s)?null:(["b","g","r"].forEach((e=>{const i=s&o;s>>=r,t[e]=4===r?17*i:i})),t.a=1,t)}static fromArray(e,t=new p){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,i.St)(e)?(0,i.h$)(e):null;return r&&p.fromArray(r,t)||p.fromRgb(e,t)||p.fromHex(e,t)}static fromJSON(e){return e&&new p([e[0],e[1],e[2],e[3]/255])}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?p.fromString(e,this):Array.isArray(e)?p.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof p||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return`#${e.length<2?"0"+e:e}${t.length<2?"0"+t:t}${r.length<2?"0"+r:r}`}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=p.AlphaMode.ALWAYS){const t=a(this.r),r=a(this.g),o=a(this.b);return e===p.AlphaMode.ALWAYS||1!==this.a?[t,r,o,a(255*this.a)]:[t,r,o]}clone(){return new p(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,o){this.r=e,this.g=t,this.b=r,this.a=o}}p.prototype.declaredClass="esri.Color",(s=(o=p||(p={})).AlphaMode||(o.AlphaMode={}))[s.ALWAYS=0]="ALWAYS",s[s.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const h=p},6352:(e,t,r)=>{r.d(t,{a:()=>d});var o,s=r(43697),i=r(22303),l=r(96674),n=r(22974),a=r(5600),u=(r(75215),r(52011)),p=r(37308);let h=o=class extends l.wq{constructor(){super(...arguments),this.color=new i.Z("white")}clone(){return new o({color:(0,n.d9)(this.color)})}};(0,s._)([(0,a.Cb)(p.a)],h.prototype,"color",void 0),h=o=(0,s._)([(0,u.j)("esri.symbols.callouts.LineCallout3DBorder")],h);const d=h;Object.freeze(Object.defineProperty({__proto__:null,default:d},Symbol.toStringTag,{value:"Module"}))},35270:(e,t,r)=>{r.d(t,{B7:()=>a,St:()=>s,VL:()=>l,h$:()=>i,rW:()=>u});const o={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 s(e){return!!o[e]||!!o[e.toLowerCase()]}function i(e){return o[e]??o[e.toLowerCase()]}function l(e){return[...i(e)]}function n(e,t,r){r<0&&++r,r>1&&--r;const o=6*r;return o<1?e+(t-e)*o:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function a(e,t,r,o=1){const s=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,l=2*r-i;return[Math.round(255*n(l,i,s+1/3)),Math.round(255*n(l,i,s)),Math.round(255*n(l,i,s-1/3)),o]}function u(e){const t=e.length>5,r=t?8:4,o=(1<<r)-1,s=t?1:17,i=t?9===e.length:5===e.length;let l=Number("0x"+e.substr(1));if(isNaN(l))return null;const n=[0,0,0,1];let a;return i&&(a=l&o,l>>=r,n[3]=s*a/255),a=l&o,l>>=r,n[2]=s*a,a=l&o,l>>=r,n[1]=s*a,a=l&o,l>>=r,n[0]=s*a,n}},83379:(e,t,r)=>{r.d(t,{Z:()=>m});var o=r(43697),s=r(20102),i=r(70586),l=r(609),n=r(95330),a=r(20941),u=r(5600),p=r(52011);const h="loaded",d=e=>{let t=class extends e{constructor(...e){super(...e),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise((e=>{const t=this.load.bind(this);this.load=r=>{const o=new Promise(((e,t)=>{const o=(0,n.$F)(r,t);this.destroyed&&t(new s.Z("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(e,t).finally((()=>{o&&o.remove()}))}));if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const e=this._loadController=new AbortController;t({signal:e.signal}),(0,n.fu)(e.signal,(()=>{this._promiseProps.abort()}))}return e(),o}}))),this.when((()=>{this._set("loadStatus",h),this._loadController=null}),(e=>{this._set("loadStatus","failed"),this._set("loadError",e),this._loadController=null}))}destroy(){this._loadController=(0,i.IM)(this._loadController),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===h}get loadWarnings(){return this._get("loadWarnings")}load(){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new s.Z("load:cancelled","Cancelled")),this._loadController?.abort()),this}};return(0,o._)([(0,u.Cb)({readOnly:!0})],t.prototype,"loaded",null),(0,o._)([(0,u.Cb)({readOnly:!0})],t.prototype,"loadError",void 0),(0,o._)([(0,u.Cb)({clonable:!1})],t.prototype,"loadStatus",void 0),(0,o._)([(0,u.Cb)({type:[a.Z],readOnly:!0})],t.prototype,"loadWarnings",null),t=(0,o._)([(0,p.j)("esri.core.Loadable")],t),t};let y=class extends(d(l.D)){};var c;y=(0,o._)([(0,p.j)("esri.core.Loadable")],y),(c=y||(y={})).LoadableMixin=d,c.isLoadable=function(e){return!(!e||!e.load)};const m=y},609:(e,t,r)=>{r.d(t,{D:()=>d,v:()=>h});var o,s,i=r(43697),l=r(92036),n=r(70586),a=r(95330),u=r(52011);(s=o||(o={}))[s.PENDING=0]="PENDING",s[s.RESOLVED=1]="RESOLVED",s[s.REJECTED=2]="REJECTED";class p{constructor(){this._resolver=(0,a.hh)(),this._status=o.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=o.RESOLVED,this._cleanUp()}),(()=>{this._status=o.REJECTED,this._cleanUp()})),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return this._status===o.RESOLVED}isRejected(){return this._status===o.REJECTED}isFulfilled(){return this._status!==o.PENDING}abort(){this._resolver.reject((0,a.zE)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const e=(0,a.hh)(),t=[...this._resolvingPromises,(0,n.j0)(e.promise)],r=this._allPromise=Promise.all(t);r.then((()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()}),(e=>{this.isFulfilled()||this._allPromise!==r||(0,a.D_)(e)||this._resolver.reject(e)})),e.resolve()}}const h=e=>{let t=class extends e{constructor(...e){super(...e),this._promiseProps=new p,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps?.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then((()=>this)).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}};return t=(0,i._)([(0,u.j)("esri.core.Promise")],t),t};let d=class extends(h(l.Z)){};d=(0,i._)([(0,u.j)("esri.core.Promise")],d)},70921:(e,t,r)=>{r.d(t,{R:()=>i,Z:()=>s});var o=r(46791);function s(e,t,r=o.Z){return t||(t=new r),t===e||(t.removeAll(),(s=e)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?t.addMany(e):e&&t.add(e)),t;var s}function i(e){return e}},62357:(e,t,r)=>{r.d(t,{F2:()=>l,Wz:()=>n,t_:()=>a,vW:()=>u});const o=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,s="screenUtils.toPt: input not recognized!",i=96;function l(e){return e?e/72*i:0}function n(e){return e?72*e/i:0}function a(e){if("string"==typeof e){const t=e.match(o);if(t){const r=Number(t[1]),o=t[3]&&t[3].toLowerCase(),s="-"===e.charAt(0),i="px"===o?n(r):r;return s?-i:i}return console.warn(s),null}return e}function u(e=0,t=0){return{x:e,y:t}}},70171:(e,t,r)=>{let o;r.d(t,{Kd:()=>l,Ze:()=>p,qe:()=>a});const s=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function i(){return s??globalThis.navigator?.language??"en"}function l(){return void 0===o&&(o=i()),o}const n=[];function a(e){return n.push(e),{remove(){n.splice(n.indexOf(e),1)}}}const u=[];function p(e){return u.push(e),{remove(){n.splice(u.indexOf(e),1)}}}globalThis.addEventListener?.("languagechange",(function(){const e=i();o!==e&&(o=e,[...u].forEach((t=>{t.call(null,e)})),[...n].forEach((t=>{t.call(null,e)})))}))},84230:(e,t,r)=>{r.d(t,{A2:()=>l,S1:()=>p,fb:()=>i,ln:()=>h,oP:()=>u,rQ:()=>n,y2:()=>a});var o=r(40330),s=r(3172);const i={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function l(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function n(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function a(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}async function u(e,t){const r=o.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;const l=`${e.substring(0,i)}/rest/info`,n=null!=t?t.signal:null,{data:a}=await(0,s.default)(l,{query:{f:"json"},responseType:"json",signal:n});return a?.owningSystemUrl||null}function p(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function h(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}},48522:(e,t,r)=>{r.d(t,{Z:()=>P});var o=r(43697),s=r(68773),i=r(40330),l=r(3172),n=r(20102),a=r(96674),u=r(83379),p=r(70586),h=r(95330),d=r(5600),y=r(75215),c=(r(67676),r(80442),r(71715)),m=r(52011),b=r(6570),f=r(70171);let g;var v=r(41253),_=r(92036);let w=class extends _.Z{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,o._)([(0,d.Cb)()],w.prototype,"nextQueryParams",void 0),(0,o._)([(0,d.Cb)()],w.prototype,"queryParams",void 0),(0,o._)([(0,d.Cb)()],w.prototype,"results",void 0),(0,o._)([(0,d.Cb)()],w.prototype,"total",void 0),w=(0,o._)([(0,m.j)("esri.portal.PortalQueryResult")],w);const C=w;var S,Z=r(86082),j=r(71058);let x;const O={PortalGroup:()=>Promise.resolve().then(r.bind(r,68916)),PortalItem:()=>Promise.all([r.e(5235),r.e(9880)]).then(r.bind(r,15235)),PortalUser:()=>Promise.resolve().then(r.bind(r,86082))};let L=S=class extends((0,a.eC)(u.Z)){constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=s.default.portalUrl,this.urlKey=null,this.user=null,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}destroy(){D.unregister(this),this.defaultBasemap=(0,p.SC)(this.defaultBasemap),this.defaultDevBasemap=(0,p.SC)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.SC)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.hw)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const t of e)s.default.request.trustedServers.includes(t)||s.default.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=!(this.user&&this.user.orgId)||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.substring(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e?e.toLowerCase():e}readUser(e){let t=null;return e&&(t=Z.default.fromJSON(e),t.portal=this),t}load(e){const t=Promise.all([r.e(5235),r.e(3668)]).then(r.bind(r,93668)).then((({default:t})=>{(0,h.k_)(e),x=t})).then((()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e))).then((e=>{if(i.id){const e=i.id;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==S.AUTH_MODE_AUTO||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",function(e){const t=i.id;return()=>{const r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch((()=>{}))}}(new WeakRef(this))),D.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await Promise.all([r.e(4547),r.e(5235),r.e(9016),r.e(5665),r.e(3602)]).then(r.bind(r,65665))).default;return e?e.map((e=>new t({id:e.id,url:e.url}))):[]}async fetchBasemaps(e,t){const r=await this._fetchBasemaps(e,t);if(t?.fetchBasemaps3D){const o=await this._fetchBasemaps3D(e,t);r.unshift(...o)}return r}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then((e=>e.categorySchema)):(0,h.Hc)(e)?Promise.reject((0,h.zE)()):Promise.resolve([])}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new v.Z;if(r.num=100,r.sortField="title",t&&t.length){const o=[];for(const e of t)o.push(`(title:"${e.title}" AND owner:${e.owner})`);return r.query=o.join(" OR "),this.queryGroups(r,e).then((e=>e.results))}return(0,h.Hc)(e)?Promise.reject((0,h.zE)()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||(0,f.Kd)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||(0,f.Kd)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return g&&!g.destroyed||(g=new S),g}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){const o=this.restUrl+"/portals/self",s={authMode:e,query:{culture:(0,f.Kd)().toLowerCase()},...r};return"auto"===s.authMode&&(s.authMode="no-prompt"),t&&(s.query.default=!0),this.request(o,s)}queryPortal(e,t,r,o){const s=(0,y.se)(v.Z,t),i=t=>this.request(this.restUrl+e,{...s.toRequestOptions(this),...o}).then((e=>{const r=s.clone();return r.start=e.nextStart,new C({nextQueryParams:r,queryParams:s,total:e.total,results:S._resultsToTypedArray(t,{portal:this},e,o)})})).then((e=>Promise.all(e.results.map((t=>"function"==typeof t.when?t.when():e))).then((()=>e),(t=>((0,h.r9)(t),e)))));return r&&O[r]?O[r]().then((({default:e})=>((0,h.k_)(o),i(e)))):i()}signIn(){if(this.authMode===S.AUTH_MODE_ANONYMOUS)return Promise.reject(new n.Z("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const e=e=>Promise.resolve().then((()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then((()=>null))):"loading"===this.loadStatus?this.load().then((()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate")))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate")))).then((e=>{e&&(this.sourceJSON=e,this.read(e))}));return i.id?i.id.getCredential(this.restUrl).then((t=>e(t))):e(this.credential)}normalizeUrl(e){const t=this.credential&&this.credential.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then((e=>{const t=S._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map((t=>"function"==typeof t.when?t.when():e))).then((()=>t),(()=>t))}))}request(e,t={}){const r={f:"json",...t.query},{authMode:o=(this.authMode===S.AUTH_MODE_ANONYMOUS?"anonymous":"auto"),body:s=null,cacheBust:i=!1,method:n="auto",responseType:a="json",signal:u}=t,p={authMode:o,body:s,cacheBust:i,method:n,query:r,responseType:a,timeout:0,signal:u};return(0,l.default)(this._normalizeSSL(e),p).then((e=>e.data))}toJSON(){throw new n.Z("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new S({sourceJSON:e})}_getHelperService(e){const t=this.helperServices&&this.helperServices[e];if(!t)throw new n.Z("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new v.Z;r.query=e||(s.default.apiKey&&(0,j.r)(this.url)?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const o=await this.queryGroups(r,t);if(!o.total)return[];const i=o.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=i.sortField||"name",r.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(r,t);return l.total?l.results.filter((e=>"Web Map"===e.type)).map((e=>new x({portalItem:e}))):[]}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];const o=new v.Z({query:r,disableExtraQuery:!0}),s=await this.queryGroups(o,t);if(!s.total)return[];const i=s.results[0];o.num=100,o.query='type:"Web Scene"',o.sortField=i.sortField||"name",o.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(o,t);return l.total?l.results.filter((e=>"Web Scene"===e.type)).map((e=>new x({portalItem:e}))):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=x.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,o){let s=[];if(r){const i=null!=o?o.signal:null;s=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(s=s.map((r=>{const o=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof o.load&&o.load(i),o})))}else s=[];return s}};L.AUTH_MODE_ANONYMOUS="anonymous",L.AUTH_MODE_AUTO="auto",L.AUTH_MODE_IMMEDIATE="immediate",(0,o._)([(0,d.Cb)()],L.prototype,"access",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"allSSL",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"authMode",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"authorizedCrossOriginDomains",void 0),(0,o._)([(0,c.r)("authorizedCrossOriginDomains")],L.prototype,"readAuthorizedCrossOriginDomains",null),(0,o._)([(0,d.Cb)()],L.prototype,"basemapGalleryGroupQuery",void 0),(0,o._)([(0,d.Cb)({json:{name:"3DBasemapGalleryGroupQuery"}})],L.prototype,"basemapGalleryGroupQuery3D",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"bingKey",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canListApps",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canListData",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canListPreProvisionedItems",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canProvisionDirectPurchase",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canSearchPublic",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canShareBingPublic",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canSharePublic",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canSignInArcGIS",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canSignInIDP",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"colorSetsGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"commentsEnabled",void 0),(0,o._)([(0,d.Cb)({type:Date})],L.prototype,"created",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"credential",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"culture",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"currentVersion",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"customBaseUrl",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"defaultBasemap",void 0),(0,o._)([(0,c.r)("defaultBasemap")],L.prototype,"readDefaultBasemap",null),(0,o._)([(0,d.Cb)()],L.prototype,"defaultDevBasemap",void 0),(0,o._)([(0,c.r)("defaultDevBasemap")],L.prototype,"readDefaultDevBasemap",null),(0,o._)([(0,d.Cb)({type:b.Z})],L.prototype,"defaultExtent",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"defaultVectorBasemap",void 0),(0,o._)([(0,c.r)("defaultVectorBasemap")],L.prototype,"readDefaultVectorBasemap",null),(0,o._)([(0,d.Cb)()],L.prototype,"description",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"devBasemapGalleryGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"eueiEnabled",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],L.prototype,"extraQuery",null),(0,o._)([(0,d.Cb)()],L.prototype,"featuredGroups",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"featuredItemsGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"galleryTemplatesGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"livingAtlasGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"hasCategorySchema",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"helpBase",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"helperServices",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"helpMap",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"homePageFeaturedContent",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"homePageFeaturedContentCount",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"httpPort",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"httpsPort",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"id",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"ipCntryCode",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],L.prototype,"isOrganization",null),(0,o._)([(0,d.Cb)()],L.prototype,"isPortal",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"isReadOnly",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],L.prototype,"itemPageUrl",null),(0,o._)([(0,d.Cb)()],L.prototype,"layerTemplatesGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"maxTokenExpirationMinutes",void 0),(0,o._)([(0,d.Cb)({type:Date})],L.prototype,"modified",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"name",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"portalHostname",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"portalMode",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"portalProperties",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"region",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],L.prototype,"restUrl",null),(0,o._)([(0,d.Cb)()],L.prototype,"rotatorPanels",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"showHomePageDescription",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"sourceJSON",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"staticImagesUrl",void 0),(0,o._)([(0,d.Cb)({json:{name:"2DStylesGroupQuery"}})],L.prototype,"stylesGroupQuery2d",void 0),(0,o._)([(0,d.Cb)({json:{name:"stylesGroupQuery"}})],L.prototype,"stylesGroupQuery3d",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"supportsHostedServices",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"symbolSetsGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"templatesGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"thumbnail",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],L.prototype,"thumbnailUrl",null),(0,o._)([(0,d.Cb)()],L.prototype,"units",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"url",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"urlKey",void 0),(0,o._)([(0,c.r)("urlKey")],L.prototype,"readUrlKey",null),(0,o._)([(0,d.Cb)()],L.prototype,"user",void 0),(0,o._)([(0,c.r)("user")],L.prototype,"readUser",null),(0,o._)([(0,d.Cb)()],L.prototype,"useStandardizedQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"useVectorBasemaps",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"vectorBasemapGalleryGroupQuery",void 0),L=S=(0,o._)([(0,m.j)("esri.portal.Portal")],L);const P=L,D=new FinalizationRegistry((e=>{e.remove()}))},68916:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var o=r(43697),s=r(20102),i=r(96674),l=r(70586),n=r(5600),a=r(75215),u=(r(67676),r(80442),r(52011)),p=r(41253);let h=class extends i.wq{constructor(e){super(e),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.tags=null,this.title=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t&&this.portal?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){const e=this.get("portal.restUrl");return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return(0,l.s3)(this.portal).request(this.url+"/categorySchema",e).then((t=>{const r=t.categorySchema||[];return r.some((e=>"contentCategorySetsGroupQuery.LivingAtlas"===e.source))?this._fetchCategorySchemaSet("LivingAtlas",e):r}))}fetchMembers(e){return(0,l.s3)(this.portal).request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new s.Z("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}queryItems(e,t){let r=(0,a.se)(p.Z,e);const o=(0,l.s3)(this.portal);return parseFloat(o.currentVersion)>5?(r=r||new p.Z,o.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new p.Z,r.query="group:"+this.id+(r.query?" "+r.query:""),o.queryItems(r,t))}_fetchCategorySchemaSet(e,t){const r=(0,l.s3)(this.portal);return r.fetchSelf(r.authMode,!0,t).then((e=>{const o=e.contentCategorySetsGroupQuery;if(o){const e=new p.Z;return e.disableExtraQuery=!0,e.num=1,e.query=o,r.queryGroups(e,t)}throw new s.Z("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")})).then((r=>{if(r.total){const o=r.results[0],s=new p.Z;return s.num=1,s.query=`typekeywords:"${e}"`,o.queryItems(s,t)}throw new s.Z("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")})).then((e=>e.total?e.results[0].fetchData("json",t).then((e=>{const t=e&&e.categorySchema;return t&&t.length?t:[]})):[]))}};(0,o._)([(0,n.Cb)()],h.prototype,"access",void 0),(0,o._)([(0,n.Cb)({type:Date})],h.prototype,"created",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"description",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"id",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"isInvitationOnly",void 0),(0,o._)([(0,n.Cb)({type:Date})],h.prototype,"modified",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"owner",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"portal",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"snippet",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"sortField",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"sortOrder",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"tags",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"thumbnail",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],h.prototype,"thumbnailUrl",null),(0,o._)([(0,n.Cb)()],h.prototype,"title",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],h.prototype,"url",null),h=(0,o._)([(0,u.j)("esri.portal.PortalGroup")],h);const d=h},41253:(e,t,r)=>{r.d(t,{Z:()=>m});var o,s=r(43697),i=r(92036),l=r(35454),n=r(22974),a=r(5600),u=(r(75215),r(52011)),p=r(6570),h=r(82971),d=r(40488);const y=new l.X({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=o=class extends i.Z{constructor(e){super(e),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(e){"asc"!==e&&"desc"!==e||this._set("sortOrder",e)}clone(){return new o({categories:this.categories?(0,n.d9)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(e,t){let r=[];this.categories&&(r=this.categories.map((e=>Array.isArray(e)?JSON.stringify(e):e)));let o="";if(this.extent){const e=(0,d.iV)(this.extent,h.Z.WGS84);null!=e&&(o=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`)}let s=this.query;!this.disableExtraQuery&&e.extraQuery&&(s="("+s+")"+e.extraQuery);const i={categories:r,bbox:o,q:s,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map((e=>y.toJSON(e.trim()))).join(","),i.sortOrder=this.sortOrder),{query:{...t,...i}}}};(0,s._)([(0,a.Cb)()],c.prototype,"categories",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"disableExtraQuery",void 0),(0,s._)([(0,a.Cb)({type:p.Z})],c.prototype,"extent",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"filter",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"num",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"query",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"sortField",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"sortOrder",null),(0,s._)([(0,a.Cb)()],c.prototype,"start",void 0),c=o=(0,s._)([(0,u.j)("esri.portal.PortalQueryParams")],c);const m=c},86082:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var o=r(43697),s=r(20102),i=r(96674),l=r(5600),n=(r(75215),r(67676),r(80442),r(52011));let a=class extends i.wq{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const e=this.get("portal.restUrl");return e?`${e}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new s.Z("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,o._)([(0,l.Cb)({type:Date})],a.prototype,"created",void 0),(0,o._)([(0,l.Cb)()],a.prototype,"id",void 0),(0,o._)([(0,l.Cb)()],a.prototype,"portal",void 0),(0,o._)([(0,l.Cb)()],a.prototype,"title",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],a.prototype,"url",null),(0,o._)([(0,l.Cb)()],a.prototype,"username",void 0),a=(0,o._)([(0,n.j)("esri.portal.PortalFolder")],a);const u=a;var p,h=r(68916);let d=p=class extends i.wq{constructor(...e){super(...e),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userType=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t?this.portal.normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){const e=this.get("portal.restUrl");return e?`${e}/content/users/${this.username}`:null}get url(){const e=this.get("portal.restUrl");return e?`${e}/community/users/${this.username}`:null}addItem(e){const t=e&&e.item,r=e&&e.data,o=e&&e.folder,s={method:"post"};t&&(s.query=t.createPostQuery(),null!=r&&("string"==typeof r?s.query.text=r:"object"==typeof r&&(s.query.text=JSON.stringify(r))));let i=this.userContentUrl;return o&&(i+="/"+("string"==typeof o?o:o.id)),this.portal.request(i+"/addItem",s).then((e=>(t.id=e.id,t.portal=this.portal,t.loaded?t.reload():t.load())))}deleteItem(e){let t=this.userContentUrl;return e.ownerFolder&&(t+="/"+e.ownerFolder),this.portal.request(t+`/items/${e.id}/delete`,{method:"post"}).then((()=>{e.id=null,e.portal=null}))}deleteItems(e){const t=this.userContentUrl+"/deleteItems",r=e.map((e=>e.id));if(r.length){const o={method:"post",query:{items:r.join(",")}};return this.portal.request(t,o).then((()=>{e.forEach((e=>{e.id=null,e.portal=null}))}))}return Promise.resolve(void 0)}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then((e=>{let t;return t=e&&e.folders?e.folders.map((e=>{const t=u.fromJSON(e);return t.portal=this.portal,t})):[],t}))}fetchGroups(){return this.portal.request(this.url??"").then((e=>{let t;return t=e&&e.groups?e.groups.map((e=>{const t=h.default.fromJSON(e);return t.portal=this.portal,t})):[],t}))}fetchItems(e){const t=e??{};let o,s=this.userContentUrl??"";return t.folder&&(s+="/"+t.folder.id),Promise.all([r.e(5235),r.e(9880)]).then(r.bind(r,15235)).then((({default:e})=>{o=e;const r={folders:!1,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"};return this.portal.request(s,{query:r})})).then((e=>{let t;return e&&e.items?(t=e.items.map((e=>{const t=o.fromJSON(e);return t.portal=this.portal,t})),Promise.all(t.map((e=>e.load()))).catch((e=>e)).then((()=>({items:t,nextStart:e.nextStart,total:e.total})))):{items:[],nextStart:-1,total:0}}))}fetchTags(){return this.portal.request(this.url+"/tags").then((e=>e.tags))}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||(this._favGroup=new h.default({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(e)):Promise.reject(new s.Z("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}toJSON(){throw new s.Z("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new p;return t.sourceJSON=e,t.read(e),t}};(0,o._)([(0,l.Cb)()],d.prototype,"access",void 0),(0,o._)([(0,l.Cb)({type:Date})],d.prototype,"created",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"culture",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"description",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"email",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"favGroupId",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"fullName",void 0),(0,o._)([(0,l.Cb)({type:Date})],d.prototype,"modified",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"orgId",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"portal",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"preferredView",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"privileges",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"region",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"role",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"roleId",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"sourceJSON",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"thumbnail",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,o._)([(0,l.Cb)()],d.prototype,"units",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],d.prototype,"userContentUrl",null),(0,o._)([(0,l.Cb)({readOnly:!0})],d.prototype,"url",null),(0,o._)([(0,l.Cb)()],d.prototype,"username",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"userType",void 0),d=p=(0,o._)([(0,n.j)("esri.portal.PortalUser")],d);const y=d},72245:(e,t,r)=>{r.d(t,{K3:()=>s,Rx:()=>i});var o=r(80442);const s=()=>!!(0,o.Z)("enable-feature:force-wosr"),i=()=>!!(0,o.Z)("enable-feature:SceneLayer-editing");((e="i3s-patching")=>{switch(o.Z.add("enable-i3s-patching",!1,!0,!0),o.Z.add("enable-feature:direct-3d-object-feature-layer-display",!1,!0,!0),o.Z.add("enable-feature:SceneLayer-editing",!0,!0,!0),e){case"feature-layer-view":o.Z.add("enable-feature:direct-3d-object-feature-layer-display",!0,!0,!0);break;case"i3s-patching":o.Z.add("enable-i3s-patching",!0,!0,!0)}})("i3s-patching")},9790:(e,t,r)=>{r.d(t,{se:()=>A,cT:()=>P,dU:()=>D,S9:()=>k,LB:()=>z,AH:()=>N,yK:()=>q,S6:()=>$,QT:()=>M,f_:()=>U});var o,s=r(75215),i=r(63213),l=r(17386),n=(r(38445),r(21218)),a=(r(95191),r(31134),r(50575),r(20825)),u=r(98587),p=(r(38128),r(40908),r(3456)),h=(r(17143),r(96742),r(43697)),d=r(22974),y=r(62357),c=r(5600),m=r(36030),b=r(52011),f=r(94075);let g=o=class extends n.Z{constructor(...e){super(...e),this.type="picture-fill",this.url=null,this.xscale=1,this.yscale=1,this.width=12,this.height=12,this.xoffset=0,this.yoffset=0,this.source=null}normalizeCtorArgs(e,t,r,o){if(e&&"string"!=typeof e&&null==e.imageData)return e;const s={};return e&&(s.url=e),t&&(s.outline=t),null!=r&&(s.width=(0,y.t_)(r)),null!=o&&(s.height=(0,y.t_)(o)),s}clone(){const e=new o({color:(0,d.d9)(this.color),height:this.height,outline:this.outline&&this.outline.clone(),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});return e._set("source",(0,d.d9)(this.source)),e}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};(0,h._)([(0,m.J)({esriPFS:"picture-fill"},{readOnly:!0})],g.prototype,"type",void 0),(0,h._)([(0,c.Cb)(f.KA)],g.prototype,"url",void 0),(0,h._)([(0,c.Cb)({type:Number,json:{write:!0}})],g.prototype,"xscale",void 0),(0,h._)([(0,c.Cb)({type:Number,json:{write:!0}})],g.prototype,"yscale",void 0),(0,h._)([(0,c.Cb)({type:Number,cast:y.t_,json:{write:!0}})],g.prototype,"width",void 0),(0,h._)([(0,c.Cb)({type:Number,cast:y.t_,json:{write:!0}})],g.prototype,"height",void 0),(0,h._)([(0,c.Cb)({type:Number,cast:y.t_,json:{write:!0}})],g.prototype,"xoffset",void 0),(0,h._)([(0,c.Cb)({type:Number,cast:y.t_,json:{write:!0}})],g.prototype,"yoffset",void 0),(0,h._)([(0,c.Cb)(f.Ds)],g.prototype,"source",void 0),g=o=(0,h._)([(0,b.j)("esri.symbols.PictureFillSymbol")],g);const v=g;var _=r(37898),w=r(42143),C=r(86114),S=r(20256),Z=r(4095),j=r(77987),x=r(89164),O=(r(87223),r(95868),r(78724)),L=(r(2283),r(44398),r(59390));function P(e){if(!e)return!1;switch(e.type){case"picture-fill":case"picture-marker":case"simple-fill":case"simple-line":case"simple-marker":case"text":case"cim":return!0;default:return!1}}function D(e){if(!e)return!1;switch(e.type){case"label-3d":case"line-3d":case"mesh-3d":case"point-3d":case"polygon-3d":return!0;default:return!1}}r(69496),r(6352);const z={base:x.Z,key:"type",typeMap:{"simple-fill":S.Z,"picture-fill":v,"picture-marker":_.Z,"simple-line":Z.Z,"simple-marker":j.Z,text:O.Z,"label-3d":a.Z,"line-3d":u.Z,"mesh-3d":p.Z,"point-3d":w.Z,"polygon-3d":C.Z,"web-style":L.Z,cim:l.Z},errorContext:"symbol"},N={base:x.Z,key:"type",typeMap:{"picture-marker":_.Z,"simple-marker":j.Z,text:O.Z,"web-style":L.Z,cim:l.Z},errorContext:"symbol"},k=(0,i.d)({types:z}),M={base:x.Z,key:"type",typeMap:{"simple-fill":S.Z,"picture-fill":v,"picture-marker":_.Z,"simple-line":Z.Z,"simple-marker":j.Z,text:O.Z,"line-3d":u.Z,"mesh-3d":p.Z,"point-3d":w.Z,"polygon-3d":C.Z,"web-style":L.Z,cim:l.Z},errorContext:"symbol"},q={base:x.Z,key:"type",typeMap:{text:O.Z,"label-3d":a.Z},errorContext:"symbol"},U=(x.Z,a.Z,u.Z,p.Z,w.Z,C.Z,L.Z,{base:x.Z,key:"type",typeMap:{"line-3d":u.Z,"mesh-3d":p.Z,"point-3d":w.Z,"polygon-3d":C.Z,"web-style":L.Z,cim:l.Z},errorContext:"symbol"}),$={base:x.Z,key:"type",typeMap:{"label-3d":a.Z},errorContext:"symbol"},A=(0,s.N7)(z)},17386:(e,t,r)=>{r.d(t,{Z:()=>m});var o,s=r(43697),i=r(22974),l=r(19153),n=r(5600),a=(r(75215),r(36030)),u=r(71715),p=r(52011),h=r(30556),d=r(35671),y=r(89164);let c=o=class extends y.Z{constructor(e){super(e),this.data=null,this.type="cim"}readData(e,t){return t}writeData(e,t){Object.assign(t,e)}async collectRequiredFields(e,t){if("CIMSymbolReference"===this.data?.type){const r=this.data.primitiveOverrides;if(r){const o=r.map((r=>{const o=r.valueExpressionInfo;return(0,d.io)(e,t,o.expression)}));await Promise.all(o)}}}clone(){return new o({data:(0,i.d9)(this.data)})}hash(){return(0,l.hP)(JSON.stringify(this.data)).toString()}};(0,s._)([(0,n.Cb)({json:{write:!1}})],c.prototype,"color",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],c.prototype,"data",void 0),(0,s._)([(0,u.r)("data",["symbol"])],c.prototype,"readData",null),(0,s._)([(0,h.c)("data",{})],c.prototype,"writeData",null),(0,s._)([(0,a.J)({CIMSymbolReference:"cim"},{readOnly:!0})],c.prototype,"type",void 0),c=o=(0,s._)([(0,p.j)("esri.symbols.CIMSymbol")],c);const m=c},38445:(e,t,r)=>{r.d(t,{Z:()=>d});var o,s=r(43697),i=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),n=r(52011),a=r(95868),u=r(56332),p=r(52879);let h=o=class extends a.Z{constructor(e){super(e),this.type="extrude",this.size=1,this.material=null,this.castShadows=!0,this.edges=null}clone(){return new o({edges:this.edges&&this.edges.clone(),enabled:this.enabled,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,size:this.size})}};(0,s._)([(0,l.J)({Extrude:"extrude"},{readOnly:!0})],h.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],h.prototype,"size",void 0),(0,s._)([(0,i.Cb)({type:p.b,json:{write:!0}})],h.prototype,"material",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],h.prototype,"castShadows",void 0),(0,s._)([(0,i.Cb)(u.Z)],h.prototype,"edges",void 0),h=o=(0,s._)([(0,n.j)("esri.symbols.ExtrudeSymbol3DLayer")],h);const d=h},21218:(e,t,r)=>{r.d(t,{Z:()=>u});var o=r(43697),s=r(5600),i=(r(75215),r(67676),r(80442),r(52011)),l=r(4095),n=r(89164);let a=class extends n.Z{constructor(e){super(e),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline&&this.outline.hash()}`}};(0,o._)([(0,s.Cb)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":l.Z}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,o._)([(0,s.Cb)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,o._)([(0,i.j)("esri.symbols.FillSymbol")],a);const u=a},95191:(e,t,r)=>{r.d(t,{Z:()=>j});var o,s=r(43697),i=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),n=r(52011),a=r(95868),u=r(56332),p=r(4618),h=r(74721),d=r(17495),y=r(50178),c=(r(92604),r(20102),r(52879));let m=o=class extends c.b{constructor(e){super(e),this.colorMixMode=null}clone(){const e={color:null!=this.color?this.color.clone():null,colorMixMode:this.colorMixMode};return new o(e)}};(0,s._)([(0,l.J)({multiply:"multiply",replace:"replace",tint:"tint"})],m.prototype,"colorMixMode",void 0),m=o=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DFillMaterial")],m);var b,f=r(22303),g=r(96674),v=r(62357),_=r(37308),w=r(45119);let C=b=class extends g.wq{constructor(e){super(e),this.color=new f.Z([0,0,0,1]),this.size=(0,v.Wz)(1),this.pattern=null,this.patternCap="butt"}clone(){const e={color:null!=this.color?this.color.clone():null,size:this.size,pattern:null!=this.pattern?this.pattern.clone():null,patternCap:this.patternCap};return new b(e)}};var S;(0,s._)([(0,i.Cb)(_.a)],C.prototype,"color",void 0),(0,s._)([(0,i.Cb)(_.y)],C.prototype,"size",void 0),(0,s._)([(0,i.Cb)(d.D)],C.prototype,"pattern",void 0),(0,s._)([(0,i.Cb)({type:w.Hc,json:{default:"butt",write:{overridePolicy(){return{enabled:null!=this.pattern}}}}})],C.prototype,"patternCap",void 0),C=b=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DOutline")],C);let Z=S=class extends a.Z{constructor(e){super(e),this.type="fill",this.material=null,this.pattern=null,this.castShadows=!0,this.outline=null,this.edges=null}clone(){const e={edges:null!=this.edges?this.edges.clone():null,enabled:this.enabled,material:null!=this.material?this.material.clone():null,pattern:null!=this.pattern?this.pattern.clone():null,castShadows:this.castShadows,outline:null!=this.outline?this.outline.clone():null};return new S(e)}static fromSimpleFillSymbol(e){const t=e.outline&&e.outline.style&&"inside-frame"!==e.outline.style&&"solid"!==e.outline.style?new p.Z({style:e.outline.style}):null,r={size:e.outline?.width??0,color:(e.outline?.color??y.ix).clone(),pattern:t};return t&&e.outline?.cap&&(r.patternCap=e.outline.cap),new S({material:new m({color:(e.color??y.l9).clone()}),pattern:e.style&&"solid"!==e.style?new h.Z({style:e.style}):null,outline:r})}};(0,s._)([(0,l.J)({Fill:"fill"},{readOnly:!0})],Z.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:m,json:{write:!0}})],Z.prototype,"material",void 0),(0,s._)([(0,i.Cb)(d.q)],Z.prototype,"pattern",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],Z.prototype,"castShadows",void 0),(0,s._)([(0,i.Cb)({type:C,json:{write:!0}})],Z.prototype,"outline",void 0),(0,s._)([(0,i.Cb)(u.Z)],Z.prototype,"edges",void 0),Z=S=(0,s._)([(0,n.j)("esri.symbols.FillSymbol3DLayer")],Z);const j=Z},31134:(e,t,r)=>{r.d(t,{Z:()=>d});var o,s=r(43697),i=r(96674),l=r(62357),n=r(5600),a=r(90578),u=(r(67676),r(80442),r(52011)),p=r(61565);let h=o=class extends i.wq{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(e){return(0,l.t_)(e)}clone(){return new o({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,s._)([(0,n.Cb)({type:p.JT,json:{default:"none",write:!0}})],h.prototype,"decoration",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"family",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{write:{overridePolicy:(e,t,r)=>({enabled:!r||!r.textSymbol3D})}}})],h.prototype,"size",void 0),(0,s._)([(0,a.p)("size")],h.prototype,"castSize",null),(0,s._)([(0,n.Cb)({type:p.g6,json:{default:"normal",write:!0}})],h.prototype,"style",void 0),(0,s._)([(0,n.Cb)({type:p.vC,json:{default:"normal",write:!0}})],h.prototype,"weight",void 0),h=o=(0,s._)([(0,u.j)("esri.symbols.Font")],h);const d=h},50575:(e,t,r)=>{r.d(t,{Z:()=>q});var o,s=r(43697),i=r(92604),l=r(81271),n=r(5600),a=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),p=r(95868),h=r(50178),d=r(35454),y=r(96674),c=r(71715),m=r(30556),b=r(25929);const f=(0,d.w)()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let g=o=class extends y.wq{constructor(e){super(e)}readHref(e,t,r){return e?(0,b.f)(e,r):t.dataURI}writeHref(e,t,r,o){e&&((0,l.HK)(e)?t.dataURI=e:(t.href=(0,b.t)(e,o),(0,l.YP)(t.href)&&(t.href=(0,l.Fv)(t.href))))}clone(){return new o({href:this.href,primitive:this.primitive})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],g.prototype,"href",void 0),(0,s._)([(0,c.r)("href")],g.prototype,"readHref",null),(0,s._)([(0,m.c)("href",{href:{type:String},dataURI:{type:String}})],g.prototype,"writeHref",null),(0,s._)([(0,a.J)(f)],g.prototype,"primitive",void 0),g=o=(0,s._)([(0,u.j)("esri.symbols.support.IconSymbol3DLayerResource")],g);var v,_=r(37308),w=r(92036);let C=v=class extends w.Z{constructor(){super(...arguments),this.x=0,this.y=0}clone(){return new v({x:this.x,y:this.y})}};(0,s._)([(0,n.Cb)({type:Number})],C.prototype,"x",void 0),(0,s._)([(0,n.Cb)({type:Number})],C.prototype,"y",void 0),C=v=(0,s._)([(0,u.j)("esri.symbols.support.Symbol3DAnchorPosition2D")],C);var S,Z=r(22303),j=r(62357);let x=S=class extends y.wq{constructor(e){super(e),this.color=new Z.Z([0,0,0,1]),this.size=(0,j.Wz)(1)}clone(){const e={color:null!=this.color?this.color.clone():null,size:this.size};return new S(e)}};(0,s._)([(0,n.Cb)(_.a)],x.prototype,"color",void 0),(0,s._)([(0,n.Cb)(_.y)],x.prototype,"size",void 0),x=S=(0,s._)([(0,u.j)("esri.symbols.support.Symbol3DIconOutline")],x);var O,L=r(52879);const P="esri.symbols.IconSymbol3DLayer";let D=O=class extends p.Z{constructor(e){super(e),this.material=null,this.resource=null,this.type="icon",this.size=12,this.anchor="center",this.anchorPosition=null,this.outline=null}clone(){return new O({anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),enabled:this.enabled,material:null!=this.material?this.material.clone():null,outline:null!=this.outline?this.outline.clone():null,resource:this.resource&&this.resource.clone(),size:this.size})}static fromSimpleMarkerSymbol(e){const t=e.color||h.ix,r=z(e),o=e.outline&&e.outline.width>0?{size:e.outline.width,color:(e.outline.color||h.ix).clone()}:null;return new O({size:e.size,resource:{primitive:M(e.style)},material:{color:t},outline:o,anchor:r?"relative":void 0,anchorPosition:r})}static fromPictureMarkerSymbol(e){const t=!e.color||(0,h.rx)(e.color)?h.ix:e.color,r=z(e);return new O({size:e.width<=e.height?e.height:e.width,resource:{href:e.url},material:{color:t.clone()},anchor:r?"relative":void 0,anchorPosition:r})}static fromCIMSymbol(e){return new O({resource:{href:(0,l._l)({mediaType:"application/json",data:JSON.stringify(e.data)})}})}};function z(e){const t="width"in e?e.width:e.size,r="height"in e?e.height:e.size,o=N(e.xoffset),s=N(e.yoffset);return(o||s)&&t&&r?{x:-o/t,y:s/r}:null}function N(e){return isFinite(e)?e:0}(0,s._)([(0,n.Cb)({type:L.b,json:{write:!0}})],D.prototype,"material",void 0),(0,s._)([(0,n.Cb)({type:g,json:{write:!0}})],D.prototype,"resource",void 0),(0,s._)([(0,a.J)({Icon:"icon"},{readOnly:!0})],D.prototype,"type",void 0),(0,s._)([(0,n.Cb)(_.y)],D.prototype,"size",void 0),(0,s._)([(0,a.J)({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"}),(0,n.Cb)({json:{default:"center"}})],D.prototype,"anchor",void 0),(0,s._)([(0,n.Cb)({type:C,json:{type:[Number],read:{reader:e=>new C({x:e[0],y:e[1]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],D.prototype,"anchorPosition",void 0),(0,s._)([(0,n.Cb)({type:x,json:{write:!0}})],D.prototype,"outline",void 0),D=O=(0,s._)([(0,u.j)(P)],D);const k={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function M(e){return k[e]||(i.Z.getLogger(P).warn(`${e} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}const q=D},20825:(e,t,r)=>{r.d(t,{Z:()=>b});var o,s=r(43697),i=r(46791),l=r(22974),n=r(5600),a=(r(75215),r(36030)),u=r(52011),p=r(87223),h=r(2283),d=r(84275),y=r(7413);const c=i.Z.ofType({base:null,key:"type",typeMap:{text:h.Z}});let m=o=class extends p.Z{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.styleOrigin=null,this.symbolLayers=new c,this.type="label-3d"}supportsCallout(){return!0}hasVisibleCallout(){return(0,d.gv)(this)}hasVisibleVerticalOffset(){return(0,d.Uy)(this)}clone(){return new o({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail),callout:(0,l.d9)(this.callout),verticalOffset:(0,l.d9)(this.verticalOffset)})}static fromTextSymbol(e){return new o({symbolLayers:[h.Z.fromTextSymbol(e)]})}};(0,s._)([(0,n.Cb)({type:y.Z,json:{write:!0}})],m.prototype,"verticalOffset",void 0),(0,s._)([(0,n.Cb)(d.Y2)],m.prototype,"callout",void 0),(0,s._)([(0,n.Cb)({json:{read:!1,write:!1}})],m.prototype,"styleOrigin",void 0),(0,s._)([(0,n.Cb)({type:c})],m.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({LabelSymbol3D:"label-3d"},{readOnly:!0})],m.prototype,"type",void 0),m=o=(0,s._)([(0,u.j)("esri.symbols.LabelSymbol3D")],m);const b=m},98587:(e,t,r)=>{r.d(t,{Z:()=>b});var o,s=r(43697),i=r(46791),l=r(22974),n=r(5600),a=(r(75215),r(36030)),u=r(52011),p=r(38128),h=r(96742),d=r(87223);const y=i.Z.ofType({base:null,key:"type",typeMap:{line:p.Z,path:h.Z}}),c=i.Z.ofType({base:null,key:"type",typeMap:{line:p.Z,path:h.Z}});let m=o=class extends d.Z{constructor(e){super(e),this.symbolLayers=new y,this.type="line-3d"}clone(){return new o({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleLineSymbol(e){return new o({symbolLayers:[p.Z.fromSimpleLineSymbol(e)]})}};(0,s._)([(0,n.Cb)({type:y,json:{type:c}})],m.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({LineSymbol3D:"line-3d"},{readOnly:!0})],m.prototype,"type",void 0),m=o=(0,s._)([(0,u.j)("esri.symbols.LineSymbol3D")],m);const b=m},38128:(e,t,r)=>{r.d(t,{Z:()=>Z});var o=r(43697),s=r(62357),i=r(5600),l=r(75215),n=(r(67676),r(80442),r(36030)),a=r(52011),u=r(22303),p=r(2368),h=r(96674),d=r(57742);let y=class extends((0,p.J)(h.wq)){constructor(e){super(e),this.type="style",this.placement="begin-end",this.style="arrow",this.color=null}equals(e){return null!=e&&e.placement===this.placement&&e.style===this.style&&(null==this.color&&null==e.color||null!=this.color&&null!=e.color&&this.color.toJSON()===e.color.toJSON())}};(0,o._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],y.prototype,"type",void 0),(0,o._)([(0,i.Cb)({type:d.J,json:{default:"begin-end",write:!0}})],y.prototype,"placement",void 0),(0,o._)([(0,i.Cb)({type:d.k,json:{default:"arrow",write:!0}})],y.prototype,"style",void 0),(0,o._)([(0,i.Cb)({type:u.Z,json:{type:[l.z8],default:null,write:!0}})],y.prototype,"color",void 0),y=(0,o._)([(0,a.j)("esri.symbols.LineStyleMarker3D")],y);const c=y;var m,b=r(95868),f=r(4618),g=r(17495),v=r(50178),_=r(37308),w=r(52879),C=r(45119);let S=m=class extends b.Z{constructor(e){super(e),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.size=(0,s.Wz)(1),this.pattern=null,this.marker=null}clone(){const e={enabled:this.enabled,material:null!=this.material?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:null!=this.pattern?this.pattern.clone():null,marker:null!=this.marker?this.marker.clone():null};return new m(e)}static fromSimpleLineSymbol(e){const t={enabled:!0,size:e.width??(0,s.Wz)(1),cap:e.cap||"butt",join:e.join||"miter",pattern:e.style&&"inside-frame"!==e.style?new f.Z({style:e.style}):null,material:new w.b({color:(e.color||v.ix).clone()}),marker:e.marker?new c({placement:e.marker.placement,style:e.marker.style,color:e.marker.color?.clone()??null}):null};return new m(t)}};(0,o._)([(0,i.Cb)({type:w.b,json:{write:!0}})],S.prototype,"material",void 0),(0,o._)([(0,n.J)({Line:"line"},{readOnly:!0})],S.prototype,"type",void 0),(0,o._)([(0,i.Cb)({type:C.w2,json:{write:!0,default:"miter"}})],S.prototype,"join",void 0),(0,o._)([(0,i.Cb)({type:C.Hc,json:{write:!0,default:"butt"}})],S.prototype,"cap",void 0),(0,o._)([(0,i.Cb)(_.y)],S.prototype,"size",void 0),(0,o._)([(0,i.Cb)(g.D)],S.prototype,"pattern",void 0),(0,o._)([(0,i.Cb)({types:{key:"type",base:c,typeMap:{style:c}},json:{write:!0}})],S.prototype,"marker",void 0),S=m=(0,o._)([(0,a.j)("esri.symbols.LineSymbol3DLayer")],S);const Z=S},40908:(e,t,r)=>{r.d(t,{Z:()=>u});var o=r(43697),s=r(62357),i=r(5600),l=(r(75215),r(67676),r(80442),r(52011)),n=r(89164);let a=class extends n.Z{constructor(e){super(e),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,o._)([(0,i.Cb)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],a.prototype,"angle",void 0),(0,o._)([(0,i.Cb)({type:["simple-marker","picture-marker"],readOnly:!0})],a.prototype,"type",void 0),(0,o._)([(0,i.Cb)({type:Number,cast:s.t_,json:{write:!0}})],a.prototype,"xoffset",void 0),(0,o._)([(0,i.Cb)({type:Number,cast:s.t_,json:{write:!0}})],a.prototype,"yoffset",void 0),(0,o._)([(0,i.Cb)({type:Number,cast:e=>"auto"===e?e:(0,s.t_)(e),json:{write:!0}})],a.prototype,"size",void 0),a=(0,o._)([(0,l.j)("esri.symbols.MarkerSymbol")],a);const u=a},3456:(e,t,r)=>{r.d(t,{Z:()=>c});var o,s=r(43697),i=r(46791),l=r(22974),n=r(5600),a=(r(75215),r(36030)),u=r(52011),p=r(95191),h=r(87223);const d=i.Z.ofType({base:null,key:"type",typeMap:{fill:p.Z}});let y=o=class extends h.Z{constructor(e){super(e),this.symbolLayers=new d,this.type="mesh-3d"}clone(){return new o({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleFillSymbol(e){return new o({symbolLayers:[p.Z.fromSimpleFillSymbol(e)]})}};(0,s._)([(0,n.Cb)({type:d})],y.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({MeshSymbol3D:"mesh-3d"},{readOnly:!0})],y.prototype,"type",void 0),y=o=(0,s._)([(0,u.j)("esri.symbols.MeshSymbol3D")],y);const c=y},17143:(e,t,r)=>{r.d(t,{Z:()=>_});var o,s=r(43697),i=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),n=r(52011),a=r(95868),u=r(35454),p=r(96674),h=r(25929);const d=(0,u.w)()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});let y=o=class extends p.wq{clone(){return new o({href:this.href,primitive:this.primitive})}};(0,s._)([(0,i.Cb)({type:String,json:{read:h.r,write:h.w}})],y.prototype,"href",void 0),(0,s._)([(0,l.J)(d)],y.prototype,"primitive",void 0),y=o=(0,s._)([(0,n.j)("esri.symbols.support.ObjectSymbol3DLayerResource")],y);var c,m=r(92036);let b=c=class extends m.Z{constructor(){super(...arguments),this.x=0,this.y=0,this.z=0}clone(){return new c({x:this.x,y:this.y,z:this.z})}};(0,s._)([(0,i.Cb)({type:Number})],b.prototype,"x",void 0),(0,s._)([(0,i.Cb)({type:Number})],b.prototype,"y",void 0),(0,s._)([(0,i.Cb)({type:Number})],b.prototype,"z",void 0),b=c=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DAnchorPosition3D")],b);var f,g=r(52879);let v=f=class extends a.Z{constructor(e){super(e),this.material=null,this.castShadows=!0,this.resource=null,this.type="object",this.width=void 0,this.height=void 0,this.depth=void 0,this.anchor=void 0,this.anchorPosition=void 0,this.heading=void 0,this.tilt=void 0,this.roll=void 0}clone(){return new f({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,resource:this.resource&&this.resource.clone(),width:this.width})}get isPrimitive(){return!this.resource||"string"!=typeof this.resource.href}};(0,s._)([(0,i.Cb)({type:g.b,json:{write:!0}})],v.prototype,"material",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],v.prototype,"castShadows",void 0),(0,s._)([(0,i.Cb)({type:y,json:{write:!0}})],v.prototype,"resource",void 0),(0,s._)([(0,l.J)({Object:"object"},{readOnly:!0})],v.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],v.prototype,"width",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],v.prototype,"height",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],v.prototype,"depth",void 0),(0,s._)([(0,l.J)({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"}),(0,i.Cb)({json:{default:"origin"}})],v.prototype,"anchor",void 0),(0,s._)([(0,i.Cb)({type:b,json:{type:[Number],read:{reader:e=>new b({x:e[0],y:e[1],z:e[2]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y,e.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],v.prototype,"anchorPosition",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],v.prototype,"heading",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],v.prototype,"tilt",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],v.prototype,"isPrimitive",null),v=f=(0,s._)([(0,n.j)("esri.symbols.ObjectSymbol3DLayer")],v);const _=v},96742:(e,t,r)=>{r.d(t,{Z:()=>y});var o,s=r(43697),i=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),n=r(71715),a=r(52011),u=r(95868),p=r(52879),h=r(45119);let d=o=class extends u.Z{constructor(e){super(e),this.material=null,this.castShadows=!0,this.type="path",this.profile="circle",this.join="miter",this.cap="butt",this.width=void 0,this.height=void 0,this.anchor="center",this.profileRotation="all"}readWidth(e,t){return null!=e?e:null==t.height&&null!=t.size?t.size:void 0}readHeight(e,t){return null!=e?e:null==t.width&&null!=t.size?t.size:void 0}clone(){return new o({enabled:this.enabled,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})}};(0,s._)([(0,i.Cb)({type:p.b,json:{write:!0}})],d.prototype,"material",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],d.prototype,"castShadows",void 0),(0,s._)([(0,l.J)({Path:"path"},{readOnly:!0})],d.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:["circle","quad"],json:{write:!0,default:"circle"}})],d.prototype,"profile",void 0),(0,s._)([(0,i.Cb)({type:h.w2,json:{write:!0,default:"miter"}})],d.prototype,"join",void 0),(0,s._)([(0,i.Cb)({type:h.KW,json:{write:!0,default:"butt"}})],d.prototype,"cap",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],d.prototype,"width",void 0),(0,s._)([(0,n.r)("width",["width","size","height"])],d.prototype,"readWidth",null),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],d.prototype,"height",void 0),(0,s._)([(0,n.r)("height",["height","size","width"])],d.prototype,"readHeight",null),(0,s._)([(0,i.Cb)({type:["center","bottom","top"],json:{write:!0,default:"center"}})],d.prototype,"anchor",void 0),(0,s._)([(0,i.Cb)({type:["heading","all"],json:{write:!0,default:"all"}})],d.prototype,"profileRotation",void 0),d=o=(0,s._)([(0,a.j)("esri.symbols.PathSymbol3DLayer")],d);const y=d},37898:(e,t,r)=>{r.d(t,{Z:()=>c});var o,s=r(43697),i=r(22974),l=r(62357),n=r(5600),a=(r(75215),r(36030)),u=r(71715),p=r(52011),h=r(40908),d=r(94075);let y=o=class extends h.Z{constructor(...e){super(...e),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e&&null==e.imageData)return e;const o={};return e&&(o.url=e),null!=t&&(o.width=(0,l.t_)(t)),null!=r&&(o.height=(0,l.t_)(r)),o}readHeight(e,t){return t.size||e}readWidth(e,t){return t.size||e}clone(){const e=new o({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",(0,i.d9)(this.source)),e}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s._)([(0,n.Cb)({json:{write:!1}})],y.prototype,"color",void 0),(0,s._)([(0,a.J)({esriPMS:"picture-marker"},{readOnly:!0})],y.prototype,"type",void 0),(0,s._)([(0,n.Cb)(d.KA)],y.prototype,"url",void 0),(0,s._)([(0,n.Cb)(d.Ds)],y.prototype,"source",void 0),(0,s._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],y.prototype,"height",void 0),(0,s._)([(0,u.r)("height",["height","size"])],y.prototype,"readHeight",null),(0,s._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],y.prototype,"width",void 0),(0,s._)([(0,n.Cb)({json:{write:!1}})],y.prototype,"size",void 0),y=o=(0,s._)([(0,p.j)("esri.symbols.PictureMarkerSymbol")],y);const c=y},42143:(e,t,r)=>{r.d(t,{Z:()=>g});var o,s=r(43697),i=r(46791),l=r(22974),n=r(5600),a=(r(75215),r(36030)),u=r(52011),p=r(50575),h=r(17143),d=r(87223),y=r(2283),c=r(84275),m=r(7413);const b=i.Z.ofType({base:null,key:"type",typeMap:{icon:p.Z,object:h.Z,text:y.Z}});let f=o=class extends d.Z{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.symbolLayers=new b,this.type="point-3d"}supportsCallout(){if((this.symbolLayers?this.symbolLayers.length:0)<1)return!1;for(const e of this.symbolLayers.items)switch(e.type){case"icon":case"text":case"object":continue;default:return!1}return!0}hasVisibleCallout(){return(0,c.gv)(this)}hasVisibleVerticalOffset(){return(0,c.Uy)(this)}clone(){return new o({verticalOffset:(0,l.d9)(this.verticalOffset),callout:(0,l.d9)(this.callout),styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleMarkerSymbol(e){return new o({symbolLayers:[p.Z.fromSimpleMarkerSymbol(e)]})}static fromPictureMarkerSymbol(e){return new o({symbolLayers:[p.Z.fromPictureMarkerSymbol(e)]})}static fromCIMSymbol(e){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return null;const r=e.data.symbol;return new o(r?.callout?{symbolLayers:[p.Z.fromCIMSymbol(e)],callout:{type:"line",size:.5,color:[0,0,0]},verticalOffset:{screenLength:40}}:{symbolLayers:[p.Z.fromCIMSymbol(e)]})}static fromTextSymbol(e){return new o({symbolLayers:[y.Z.fromTextSymbol(e)]})}};(0,s._)([(0,n.Cb)({type:m.Z,json:{write:!0}})],f.prototype,"verticalOffset",void 0),(0,s._)([(0,n.Cb)(c.Y2)],f.prototype,"callout",void 0),(0,s._)([(0,n.Cb)({type:b,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({PointSymbol3D:"point-3d"},{readOnly:!0})],f.prototype,"type",void 0),f=o=(0,s._)([(0,u.j)("esri.symbols.PointSymbol3D")],f);const g=f},86114:(e,t,r)=>{r.d(t,{Z:()=>_});var o,s=r(43697),i=r(46791),l=r(22974),n=r(5600),a=(r(75215),r(36030)),u=r(52011),p=r(38445),h=r(95191),d=r(50575),y=r(38128),c=r(17143),m=r(87223),b=r(2283),f=r(44398);const g=i.Z.ofType({base:null,key:"type",typeMap:{extrude:p.Z,fill:h.Z,icon:d.Z,line:y.Z,object:c.Z,text:b.Z,water:f.Z}});let v=o=class extends m.Z{constructor(e){super(e),this.symbolLayers=new g,this.type="polygon-3d"}clone(){return new o({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromJSON(e){const t=new o;if(t.read(e),2===t.symbolLayers.length&&"fill"===t.symbolLayers.at(0).type&&"line"===t.symbolLayers.at(1).type){const r=t.symbolLayers.at(0),o=t.symbolLayers.at(1);!o.enabled||e.symbolLayers&&e.symbolLayers[1]&&!1===e.symbolLayers[1].enable||(r.outline={size:o.size,color:null!=o.material?o.material.color:null}),t.symbolLayers.removeAt(1)}return t}static fromSimpleFillSymbol(e){return new o({symbolLayers:[h.Z.fromSimpleFillSymbol(e)]})}};(0,s._)([(0,n.Cb)({type:g,json:{write:!0}})],v.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],v.prototype,"type",void 0),v=o=(0,s._)([(0,u.j)("esri.symbols.PolygonSymbol3D")],v);const _=v},20256:(e,t,r)=>{r.d(t,{Z:()=>m});var o,s=r(43697),i=r(22303),l=r(35454),n=r(22974),a=r(5600),u=(r(75215),r(36030)),p=r(52011),h=r(21218),d=r(4095);const y=new l.X({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let c=o=class extends h.Z{constructor(...e){super(...e),this.color=new i.Z([0,0,0,.25]),this.outline=new d.Z,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const o={};return e&&(o.style=e),t&&(o.outline=t),r&&(o.color=r),o}clone(){return new o({color:(0,n.d9)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,s._)([(0,a.Cb)()],c.prototype,"color",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"outline",void 0),(0,s._)([(0,u.J)({esriSFS:"simple-fill"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,a.Cb)({type:y.apiValues,json:{read:y.read,write:y.write}})],c.prototype,"style",void 0),c=o=(0,s._)([(0,p.j)("esri.symbols.SimpleFillSymbol")],c);const m=c},4095:(e,t,r)=>{r.d(t,{Z:()=>Z});var o=r(43697),s=r(35454),i=r(22974),l=r(62357),n=r(5600),a=(r(75215),r(36030)),u=r(52011),p=(r(67676),r(80442),r(89164));let h=class extends p.Z{constructor(e){super(e),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,o._)([(0,a.J)({esriSLS:"simple-line"},{readOnly:!0})],h.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],h.prototype,"width",void 0),h=(0,o._)([(0,u.j)("esri.symbols.LineSymbol")],h);const d=h;var y,c=r(22303),m=r(96674),b=r(71715),f=r(30556),g=r(57742);let v=y=class extends m.wq{constructor(e){super(e),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(e,t,r,o){t[r]="web-map"===o?.origin?"arrow":e}set color(e){this._set("color",e)}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}writeColor(e,t,r,o){"web-map"===o?.origin||(t[r]=e)}clone(){return new y({color:(0,i.d9)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,o._)([(0,n.Cb)({type:["begin","end","begin-end"],json:{write:!0}})],v.prototype,"placement",void 0),(0,o._)([(0,a.J)({"line-marker":"line-marker"},{readOnly:!0}),(0,n.Cb)({json:{origins:{"web-map":{write:!1}}}})],v.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:g.k})],v.prototype,"style",void 0),(0,o._)([(0,f.c)("style")],v.prototype,"writeStyle",null),(0,o._)([(0,n.Cb)({type:c.Z,value:null,json:{write:{allowNull:!0}}})],v.prototype,"color",null),(0,o._)([(0,b.r)("color")],v.prototype,"readColor",null),(0,o._)([(0,f.c)("color")],v.prototype,"writeColor",null),v=y=(0,o._)([(0,u.j)("esri.symbols.LineSymbolMarker")],v);const _=v;var w;const C=new s.X({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSInsideFrame:"inside-frame",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let S=w=class extends d{constructor(...e){super(...e),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(e,t,r,o,s,i){if(e&&"string"!=typeof e)return e;const n={};return null!=e&&(n.style=e),null!=t&&(n.color=t),null!=r&&(n.width=(0,l.t_)(r)),null!=o&&(n.cap=o),null!=s&&(n.join=s),null!=i&&(n.miterLimit=(0,l.t_)(i)),n}clone(){return new w({color:(0,i.d9)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,o._)([(0,a.J)({esriSLS:"simple-line"},{readOnly:!0})],S.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:C.apiValues,json:{read:C.read,write:C.write}})],S.prototype,"style",void 0),(0,o._)([(0,n.Cb)({type:["butt","round","square"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&(null==r||null==r.origin)})}}})],S.prototype,"cap",void 0),(0,o._)([(0,n.Cb)({type:["miter","round","bevel"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&(null==r||null==r.origin)})}}})],S.prototype,"join",void 0),(0,o._)([(0,n.Cb)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":_}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],S.prototype,"marker",void 0),(0,o._)([(0,n.Cb)({type:Number,json:{read:!1,write:!1}})],S.prototype,"miterLimit",void 0),S=w=(0,o._)([(0,u.j)("esri.symbols.SimpleLineSymbol")],S);const Z=S},77987:(e,t,r)=>{r.d(t,{Z:()=>f});var o,s=r(43697),i=r(22303),l=r(35454),n=r(22974),a=r(62357),u=r(5600),p=(r(75215),r(36030)),h=r(52011),d=r(30556),y=r(40908),c=r(4095);const m=new l.X({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let b=o=class extends y.Z{constructor(...e){super(...e),this.color=new i.Z([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new c.Z}normalizeCtorArgs(e,t,r,o){if(e&&"string"!=typeof e)return e;const s={};return e&&(s.style=e),null!=t&&(s.size=(0,a.t_)(t)),r&&(s.outline=r),o&&(s.color=o),s}writeColor(e,t){e&&"x"!==this.style&&"cross"!==this.style&&(t.color=e.toJSON()),null===e&&(t.color=null)}set path(e){this.style="path",this._set("path",e)}clone(){return new o({angle:this.angle,color:(0,n.d9)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,s._)([(0,u.Cb)()],b.prototype,"color",void 0),(0,s._)([(0,d.c)("color")],b.prototype,"writeColor",null),(0,s._)([(0,p.J)({esriSMS:"simple-marker"},{readOnly:!0})],b.prototype,"type",void 0),(0,s._)([(0,u.Cb)()],b.prototype,"size",void 0),(0,s._)([(0,u.Cb)({type:m.apiValues,json:{read:m.read,write:m.write}})],b.prototype,"style",void 0),(0,s._)([(0,u.Cb)({type:String,json:{write:!0}})],b.prototype,"path",null),(0,s._)([(0,u.Cb)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":c.Z}},json:{default:null,write:!0}})],b.prototype,"outline",void 0),b=o=(0,s._)([(0,h.j)("esri.symbols.SimpleMarkerSymbol")],b);const f=b},89164:(e,t,r)=>{r.d(t,{Z:()=>y});var o=r(43697),s=r(22303),i=r(35454),l=r(96674),n=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),u=r(52011);const p=new i.X({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let h=0,d=class extends l.wq{constructor(e){super(e),this.id="sym"+h++,this.type=null,this.color=new s.Z([0,0,0,1])}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,o._)([(0,n.Cb)({type:p.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:p.write}}})],d.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:s.Z,json:{write:{allowNull:!0}}})],d.prototype,"color",void 0),(0,o._)([(0,a.r)("color")],d.prototype,"readColor",null),d=(0,o._)([(0,u.j)("esri.symbols.Symbol")],d);const y=d},87223:(e,t,r)=>{r.d(t,{Z:()=>z});var o=r(43697),s=r(46791),i=r(70921),l=r(92604),n=r(81271),a=r(20941),u=r(5600),p=r(90578),h=(r(67676),r(80442),r(71715)),d=r(52011),y=r(30556),c=r(48522),m=r(25929),b=r(38445),f=r(95191),g=r(50575),v=r(38128),_=r(17143),w=r(96742),C=r(89164),S=r(95868),Z=r(2283),j=r(44398),x=r(71144),O=r(23203);const L={icon:g.Z,object:_.Z,line:v.Z,path:w.Z,fill:f.Z,extrude:b.Z,text:Z.Z,water:j.Z},P=s.Z.ofType({base:S.Z,key:"type",typeMap:L,errorContext:"symbol-layer"});let D=class extends C.Z{constructor(e){super(e),this.styleOrigin=null,this.thumbnail=null,this.type=null;const t=this.__accessor__&&this.__accessor__.metadatas&&this.__accessor__.metadatas.symbolLayers,r=t&&t.type||s.Z;this._set("symbolLayers",new r)}get color(){return null}set color(e){this.constructed&&l.Z.getLogger(this).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}set symbolLayers(e){(0,i.Z)(e,this._get("symbolLayers"))}readStyleOrigin(e,t,r){if(e.styleUrl&&e.name){const t=(0,m.f)(e.styleUrl,r);return new x.Z({styleUrl:t,name:e.name})}if(e.styleName&&e.name)return new x.Z({portal:r&&r.portal||c.Z.getDefault(),styleName:e.styleName,name:e.name});r&&r.messages&&r.messages.push(new a.Z("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:r,definition:e}))}writeStyleOrigin(e,t,r,o){if(e.styleUrl&&e.name){let r=(0,m.t)(e.styleUrl,o);(0,n.YP)(r)&&(r=(0,n.Fv)(r)),t.styleOrigin={styleUrl:r,name:e.name}}else e.styleName&&e.name&&(e.portal&&o&&o.portal&&!(0,n.tm)(e.portal.restUrl,o.portal.restUrl)?o&&o.messages&&o.messages.push(new a.Z("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):t.styleOrigin={styleName:e.styleName,name:e.name})}normalizeCtorArgs(e){return e instanceof S.Z||e&&L[e.type]?{symbolLayers:[e]}:Array.isArray(e)?{symbolLayers:e}:e}};(0,o._)([(0,u.Cb)({json:{read:!1,write:!1}})],D.prototype,"color",null),(0,o._)([(0,u.Cb)({type:P,nonNullable:!0,json:{write:!0}}),(0,p.p)(i.R)],D.prototype,"symbolLayers",null),(0,o._)([(0,u.Cb)({type:x.Z})],D.prototype,"styleOrigin",void 0),(0,o._)([(0,h.r)("styleOrigin")],D.prototype,"readStyleOrigin",null),(0,o._)([(0,y.c)("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],D.prototype,"writeStyleOrigin",null),(0,o._)([(0,u.Cb)({type:O.p,json:{read:!1}})],D.prototype,"thumbnail",void 0),(0,o._)([(0,u.Cb)({type:["point-3d","line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],D.prototype,"type",void 0),D=(0,o._)([(0,d.j)("esri.symbols.Symbol3D")],D);const z=D},95868:(e,t,r)=>{r.d(t,{Z:()=>u});var o=r(43697),s=r(96674),i=r(5600),l=(r(75215),r(67676),r(80442),r(52011)),n=r(30556);let a=class extends s.wq{constructor(e){super(e),this.enabled=!0,this.type=null,this.ignoreDrivers=!1}writeEnabled(e,t,r){e||(t[r]=e)}};(0,o._)([(0,i.Cb)({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],a.prototype,"enabled",void 0),(0,o._)([(0,n.c)("enabled")],a.prototype,"writeEnabled",null),(0,o._)([(0,i.Cb)({type:["icon","object","line","path","fill","water","extrude","text"],readOnly:!0})],a.prototype,"type",void 0),a=(0,o._)([(0,l.j)("esri.symbols.Symbol3DLayer")],a);const u=a},78724:(e,t,r)=>{r.d(t,{Z:()=>f});var o,s=r(43697),i=r(22303),l=r(22974),n=r(62357),a=r(5600),u=r(90578),p=r(36030),h=r(52011),d=r(30556),y=r(31134),c=r(89164),m=r(61565);let b=o=class extends c.Z{constructor(...e){super(...e),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new y.Z,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.haloSize=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.xoffset=0,this.yoffset=0,this.angle=0,this.width=null,this.lineWidth=192,this.lineHeight=1}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const o={};return e&&(o.text=e),t&&(o.font=t),r&&(o.color=r),o}writeLineWidth(e,t,r,o){o&&"string"!=typeof o?o.origin:t[r]=e}castLineWidth(e){return(0,n.t_)(e)}writeLineHeight(e,t,r,o){o&&"string"!=typeof o?o.origin:t[r]=e}clone(){return new o({angle:this.angle,backgroundColor:(0,l.d9)(this.backgroundColor),borderLineColor:(0,l.d9)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,l.d9)(this.color),font:this.font&&this.font.clone(),haloColor:(0,l.d9)(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&&this.backgroundColor.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor&&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,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],b.prototype,"backgroundColor",void 0),(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],b.prototype,"borderLineColor",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0},cast:n.t_})],b.prototype,"borderLineSize",void 0),(0,s._)([(0,a.Cb)({type:y.Z,json:{write:!0}})],b.prototype,"font",void 0),(0,s._)([(0,a.Cb)({...m.x0,json:{write:!0}})],b.prototype,"horizontalAlignment",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"kerning",void 0),(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],b.prototype,"haloColor",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],b.prototype,"haloSize",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"rightToLeft",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"rotated",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"text",void 0),(0,s._)([(0,p.J)({esriTS:"text"},{readOnly:!0})],b.prototype,"type",void 0),(0,s._)([(0,a.Cb)({...m.Nj,json:{write:!0}})],b.prototype,"verticalAlignment",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],b.prototype,"xoffset",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],b.prototype,"yoffset",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],b.prototype,"angle",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],b.prototype,"width",void 0),(0,s._)([(0,a.Cb)({type:Number})],b.prototype,"lineWidth",void 0),(0,s._)([(0,d.c)("lineWidth")],b.prototype,"writeLineWidth",null),(0,s._)([(0,u.p)("lineWidth")],b.prototype,"castLineWidth",null),(0,s._)([(0,a.Cb)(m.Ck)],b.prototype,"lineHeight",void 0),(0,s._)([(0,d.c)("lineHeight")],b.prototype,"writeLineHeight",null),b=o=(0,s._)([(0,h.j)("esri.symbols.TextSymbol")],b);const f=b},2283:(e,t,r)=>{r.d(t,{Z:()=>S});var o,s=r(43697),i=r(22974),l=r(5600),n=(r(75215),r(36030)),a=r(52011),u=r(30556),p=r(31134),h=r(95868),d=r(37308),y=r(22303),c=r(96674);let m=o=class extends c.wq{constructor(){super(...arguments),this.color=new y.Z([0,0,0,1]),this.size=0}clone(){const e={color:(0,i.d9)(this.color),size:this.size};return new o(e)}};(0,s._)([(0,l.Cb)(d.a)],m.prototype,"color",void 0),(0,s._)([(0,l.Cb)(d.y)],m.prototype,"size",void 0),m=o=(0,s._)([(0,a.j)("esri.symbols.support.Symbol3DHalo")],m);var b=r(52879),f=r(2368);r(67676),r(80442);let g=class extends((0,f.J)(c.wq)){constructor(e){super(e),this.color=null}};(0,s._)([(0,l.Cb)(d.a)],g.prototype,"color",void 0),g=(0,s._)([(0,a.j)("esri.symbols.support.Symbol3DTextBackground")],g);var v,_=r(61565);let w=v=class extends h.Z{constructor(e){super(e),this._userSize=void 0,this.halo=null,this.horizontalAlignment="center",this.lineHeight=1,this.material=null,this.background=null,this.text=null,this.type="text",this.verticalAlignment="baseline"}get font(){return this._get("font")||null}set font(e){null!=e&&null!=this._userSize&&(e.size=this._userSize),this._set("font",e)}writeFont(e,t,r,o){const s={...o,textSymbol3D:!0};t.font=e.write({},s),delete t.font.size}get size(){return null!=this._userSize?this._userSize:null!=this.font&&null!=this.font.size?this.font.size:9}set size(e){this._userSize=e,null!=this.font&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){const e=new v({enabled:this.enabled,font:this.font&&(0,i.d9)(this.font),halo:this.halo&&(0,i.d9)(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:null!=this.material?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:(0,i.d9)(this.background)});return e._userSize=this._userSize,e}static fromTextSymbol(e){return new v({font:null!=e.font?e.font.clone():new p.Z,halo:C(e.haloColor,e.haloSize),horizontalAlignment:e.horizontalAlignment,lineHeight:e.lineHeight,material:e.color?new b.b({color:e.color.clone()}):null,text:e.text,verticalAlignment:e.verticalAlignment,background:e.backgroundColor?new g({color:e.backgroundColor.clone()}):null})}};function C(e,t){return e&&null!=t&&t>0?new m({color:(0,i.d9)(e),size:t}):null}(0,s._)([(0,l.Cb)({type:p.Z,json:{write:!0}})],w.prototype,"font",null),(0,s._)([(0,u.c)("font")],w.prototype,"writeFont",null),(0,s._)([(0,l.Cb)({type:m,json:{write:!0}})],w.prototype,"halo",void 0),(0,s._)([(0,l.Cb)({..._.x0,json:{default:"center",write:!0}})],w.prototype,"horizontalAlignment",void 0),(0,s._)([(0,l.Cb)({..._.Ck,json:{default:1,write:!0}})],w.prototype,"lineHeight",void 0),(0,s._)([(0,l.Cb)({type:b.b,json:{write:!0}})],w.prototype,"material",void 0),(0,s._)([(0,l.Cb)({type:g,json:{write:!0}})],w.prototype,"background",void 0),(0,s._)([(0,l.Cb)(d.y)],w.prototype,"size",null),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],w.prototype,"text",void 0),(0,s._)([(0,n.J)({Text:"text"},{readOnly:!0})],w.prototype,"type",void 0),(0,s._)([(0,l.Cb)({..._.Nj,json:{default:"baseline",write:!0}})],w.prototype,"verticalAlignment",void 0),w=v=(0,s._)([(0,a.j)("esri.symbols.TextSymbol3DLayer")],w);const S=w},44398:(e,t,r)=>{r.d(t,{Z:()=>c});var o,s=r(43697),i=r(22303),l=r(22974),n=r(5600),a=r(75215),u=r(36030),p=r(52011),h=r(95868);let d=o=class extends h.Z{constructor(e){super(e),this.color=y.clone(),this.type="water",this.waterbodySize="medium",this.waveDirection=null,this.waveStrength="moderate"}clone(){return new o({color:(0,l.d9)(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})}};(0,s._)([(0,n.Cb)({type:i.Z,nonNullable:!0,json:{type:[a.z8],write:(e,t,r)=>t[r]=e.toArray(i.Z.AlphaMode.UNLESS_OPAQUE),default:()=>y.clone(),defaultEquals:e=>e.toCss(!0)===y.toCss(!0)}})],d.prototype,"color",void 0),(0,s._)([(0,u.J)({Water:"water"},{readOnly:!0})],d.prototype,"type",void 0),(0,s._)([(0,n.Cb)({type:["small","medium","large"],json:{write:!0,default:"medium"}})],d.prototype,"waterbodySize",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{write:!0,default:null}})],d.prototype,"waveDirection",void 0),(0,s._)([(0,n.Cb)({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],d.prototype,"waveStrength",void 0),d=o=(0,s._)([(0,p.j)("esri.symbols.WaterSymbol3DLayer")],d);const y=new i.Z([0,119,190]),c=d},59390:(e,t,r)=>{r.d(t,{Z:()=>m});var o,s=r(43697),i=r(92604),l=r(95330),n=r(5600),a=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),p=r(48522),h=r(25929),d=r(89164),y=r(23203);let c=o=class extends d.Z{constructor(e){super(e),this.styleName=null,this.portal=null,this.styleUrl=null,this.thumbnail=null,this.name=null,this.type="web-style"}get _fetchCacheKey(){const e=null!=this.portal?this.portal:p.Z.getDefault(),t=e.user?e.user.username:null;return`${this.styleName}:${this.styleUrl}:${this.name}:${t}:${e.url}`}read(e,t){this.portal=t?.portal,super.read(e,t)}clone(){return new o({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}fetchSymbol(e){return this._fetchSymbol("webRef",e)}fetchCIMSymbol(e){return this._fetchSymbol("cimRef",e)}async _fetchSymbol(e,t){const o=null!=t?t.cache:null,s=o?this._fetchCacheKey:null;if(null!=o){const e=s&&o.get(s);if(e)return e.clone()}const{resolveWebStyleSymbol:n}=await r.e(4499).then(r.bind(r,74499));(0,l.k_)(t);const a=n(this,{portal:this.portal},e,t);a.catch((e=>{i.Z.getLogger(this).error("#fetchSymbol()","Failed to create symbol from style",e)}));const u=await a;return"webRef"===e&&"point-3d"===u.type||"cimRef"===e&&"cim"===u.type?(null!=o&&o.set(s,u.clone()),u):null}};(0,s._)([(0,n.Cb)({json:{write:!1}})],c.prototype,"color",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"styleName",void 0),(0,s._)([(0,n.Cb)({type:p.Z,json:{write:!1}})],c.prototype,"portal",void 0),(0,s._)([(0,n.Cb)({type:String,json:{read:h.r,write:h.w}})],c.prototype,"styleUrl",void 0),(0,s._)([(0,n.Cb)({type:y.p,json:{read:!1}})],c.prototype,"thumbnail",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,a.J)({styleSymbolReference:"web-style"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,n.Cb)()],c.prototype,"_fetchCacheKey",null),c=o=(0,s._)([(0,u.j)("esri.symbols.WebStyleSymbol")],c);const m=c},27539:(e,t,r)=>{r.d(t,{Z:()=>a});var o=r(43697),s=r(96674),i=r(5600),l=(r(75215),r(67676),r(80442),r(52011));let n=class extends s.wq{constructor(e){super(e),this.visible=!0}clone(){}};(0,o._)([(0,i.Cb)({type:["line"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),(0,o._)([(0,i.Cb)({readOnly:!0})],n.prototype,"visible",void 0),n=(0,o._)([(0,l.j)("esri.symbols.callouts.Callout3D")],n);const a=n},69496:(e,t,r)=>{r.d(t,{Z:()=>m});var o,s=r(43697),i=r(22303),l=r(22974),n=r(62357),a=r(5600),u=(r(75215),r(36030)),p=r(52011),h=r(27539),d=r(6352),y=r(37308);let c=o=class extends h.Z{constructor(e){super(e),this.type="line",this.color=new i.Z([0,0,0,1]),this.size=(0,n.Wz)(1),this.border=null}get visible(){return this.size>0&&null!=this.color&&this.color.a>0}clone(){return new o({color:(0,l.d9)(this.color),size:this.size,border:(0,l.d9)(this.border)})}};(0,s._)([(0,u.J)({line:"line"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,a.Cb)(y.a)],c.prototype,"color",void 0),(0,s._)([(0,a.Cb)(y.y)],c.prototype,"size",void 0),(0,s._)([(0,a.Cb)({type:d.a,json:{write:!0}})],c.prototype,"border",void 0),(0,s._)([(0,a.Cb)({readOnly:!0})],c.prototype,"visible",null),c=o=(0,s._)([(0,p.j)("esri.symbols.callouts.LineCallout3D")],c);const m=c},84275:(e,t,r)=>{r.d(t,{Uy:()=>i,Y2:()=>n,gv:()=>l});var o=r(27539),s=r(69496);function i(e){if(!e)return!1;const t=e.verticalOffset;return!!t&&!(t.screenLength<=0||null!=t.maxWorldLength&&t.maxWorldLength<=0)}function l(e){if(!e)return!1;if(!e.supportsCallout||!e.supportsCallout())return!1;const t=e.callout;return!!t&&!!t.visible&&!!i(e)}const n={types:{key:"type",base:o.Z,typeMap:{line:s.Z}},json:{write:!0}}},56332:(e,t,r)=>{r.d(t,{Z:()=>v});var o=r(43697),s=r(22303),i=r(96674),l=r(22974),n=r(62357),a=r(5600),u=(r(75215),r(52011)),p=r(37308);let h=class extends i.wq{constructor(e){super(e),this.color=new s.Z([0,0,0,1]),this.extensionLength=0,this.size=(0,n.Wz)(1)}clone(){}cloneProperties(){return{color:(0,l.d9)(this.color),size:this.size,extensionLength:this.extensionLength}}};(0,o._)([(0,a.Cb)({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],h.prototype,"type",void 0),(0,o._)([(0,a.Cb)(p.a)],h.prototype,"color",void 0),(0,o._)([(0,a.Cb)({...p.y,json:{write:{overridePolicy:e=>({enabled:!!e})}}})],h.prototype,"extensionLength",void 0),(0,o._)([(0,a.Cb)(p.y)],h.prototype,"size",void 0),h=(0,o._)([(0,u.j)("esri.symbols.edges.Edges3D")],h);const d=h;r(92604),r(67676),r(80442),r(20102);var y,c=r(36030);let m=y=class extends d{constructor(e){super(e),this.type="sketch"}clone(){return new y(this.cloneProperties())}};(0,o._)([(0,c.J)({sketch:"sketch"},{readOnly:!0})],m.prototype,"type",void 0),m=y=(0,o._)([(0,u.j)("esri.symbols.edges.SketchEdges3D")],m);const b=m;var f;let g=f=class extends d{constructor(e){super(e),this.type="solid"}clone(){return new f(this.cloneProperties())}};(0,o._)([(0,c.J)({solid:"solid"},{readOnly:!0})],g.prototype,"type",void 0),g=f=(0,o._)([(0,u.j)("esri.symbols.support.SolidEdges3D")],g);const v={types:{key:"type",base:d,typeMap:{solid:g,sketch:b}},json:{write:!0}}},32626:(e,t,r)=>{r.d(t,{Z:()=>a});var o=r(43697),s=r(96674),i=r(5600),l=(r(75215),r(67676),r(80442),r(52011));let n=class extends s.wq{constructor(e){super(e)}clone(){}};(0,o._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,o._)([(0,l.j)("esri.symbols.patterns.LinePattern3D")],n);const a=n},4618:(e,t,r)=>{r.d(t,{Z:()=>d});var o,s=r(43697),i=r(35454),l=r(5600),n=(r(75215),r(67676),r(80442),r(36030)),a=r(52011),u=r(32626);const p=(0,i.w)()({dash:"dash","dash-dot":"dash-dot","dash-dot-dot":"long-dash-dot-dot",dot:"dot","long-dash":"long-dash","long-dash-dot":"long-dash-dot",null:"none","short-dash":"short-dash","short-dash-dot":"short-dash-dot","short-dash-dot-dot":"short-dash-dot-dot","short-dot":"short-dot",solid:"solid"});let h=o=class extends u.Z{constructor(e){super(e),this.type="style",this.style="solid"}clone(){const e={style:this.style};return new o(e)}};(0,s._)([(0,l.Cb)({type:["style"]})],h.prototype,"type",void 0),(0,s._)([(0,n.J)(p),(0,l.Cb)({type:["dash","dash-dot","dot","long-dash","long-dash-dot","long-dash-dot-dot","none","short-dash","short-dash-dot","short-dash-dot-dot","short-dot","solid"]})],h.prototype,"style",void 0),h=o=(0,s._)([(0,a.j)("esri.symbols.patterns.LineStylePattern3D")],h);const d=h},41776:(e,t,r)=>{r.d(t,{Z:()=>a});var o=r(43697),s=r(96674),i=r(5600),l=(r(75215),r(67676),r(80442),r(52011));let n=class extends s.wq{constructor(e){super(e)}clone(){}};(0,o._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,o._)([(0,l.j)("esri.symbols.patterns.Pattern3D")],n);const a=n},74721:(e,t,r)=>{r.d(t,{Z:()=>u});var o,s=r(43697),i=r(5600),l=(r(75215),r(67676),r(80442),r(52011)),n=r(41776);let a=o=class extends n.Z{constructor(e){super(e),this.type="style",this.style="solid"}clone(){const e={style:this.style};return new o(e)}};(0,s._)([(0,i.Cb)({type:["style"]})],a.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:["backward-diagonal","cross","diagonal-cross","forward-diagonal","horizontal","none","solid","vertical"],json:{read:!0,write:!0}})],a.prototype,"style",void 0),a=o=(0,s._)([(0,l.j)("esri.symbols.patterns.StylePattern3D")],a);const u=a},17495:(e,t,r)=>{r.d(t,{D:()=>a,q:()=>n});var o=r(32626),s=r(4618),i=r(41776),l=r(74721);const n={types:{key:"type",base:i.Z,typeMap:{style:l.Z}},json:{write:!0}},a={types:{key:"type",base:o.Z,typeMap:{style:s.Z}},json:{write:!0}}},71144:(e,t,r)=>{r.d(t,{Z:()=>p});var o,s=r(43697),i=r(92036),l=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),a=r(48522);let u=o=class extends i.Z{constructor(e){super(e),this.name=null,this.styleUrl=null,this.styleName=null,this.portal=null}clone(){return new o({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}};(0,s._)([(0,l.Cb)({type:String})],u.prototype,"name",void 0),(0,s._)([(0,l.Cb)({type:String})],u.prototype,"styleUrl",void 0),(0,s._)([(0,l.Cb)({type:String})],u.prototype,"styleName",void 0),(0,s._)([(0,l.Cb)({type:a.Z})],u.prototype,"portal",void 0),u=o=(0,s._)([(0,n.j)("esri.symbols.support.StyleOrigin")],u);const p=u},52879:(e,t,r)=>{r.d(t,{b:()=>u});var o,s=r(43697),i=r(96674),l=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),a=r(37308);let u=o=class extends i.wq{constructor(e){super(e),this.color=null}clone(){const e={color:null!=this.color?this.color.clone():null};return new o(e)}};(0,s._)([(0,l.Cb)(a.a)],u.prototype,"color",void 0),u=o=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DMaterial")],u)},7413:(e,t,r)=>{r.d(t,{Z:()=>p});var o,s=r(43697),i=r(96674),l=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),a=r(37308);let u=o=class extends i.wq{constructor(e){super(e),this.screenLength=0,this.minWorldLength=0,this.maxWorldLength=null}clone(){return new o({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})}};(0,s._)([(0,l.Cb)(a.y)],u.prototype,"screenLength",void 0),(0,s._)([(0,l.Cb)({type:Number,nonNullable:!0,json:{write:!0,default:0}})],u.prototype,"minWorldLength",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],u.prototype,"maxWorldLength",void 0),u=o=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DVerticalOffset")],u);const p=u},23203:(e,t,r)=>{r.d(t,{p:()=>a});var o,s=r(43697),i=r(92036),l=r(5600),n=(r(75215),r(67676),r(80442),r(52011));let a=o=class extends i.Z{constructor(){super(...arguments),this.url=""}clone(){return new o({url:this.url})}};(0,s._)([(0,l.Cb)({type:String})],a.prototype,"url",void 0),a=o=(0,s._)([(0,n.j)("esri.symbols.support.Thumbnail")],a)},50178:(e,t,r)=>{r.d(t,{ix:()=>s,l9:()=>i,rx:()=>l});var o=r(22303);const s=new o.Z("white"),i=(new o.Z("black"),new o.Z([255,255,255,0]));function l(e){return 0===e.r&&0===e.g&&0===e.b}},21878:(e,t,r)=>{r.d(t,{im:()=>Z,cW:()=>_,vX:()=>w});var o=r(9790),s=r(20102),i=r(84230),l=r(87223),n=r(59390),a=r(42143),u=r(4095),p=r(98587),h=r(77987),d=r(37898),y=r(20256),c=r(3456),m=r(86114),b=r(78724),f=r(20825);const g={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function v(e,t=g){if(!e)return{symbol:null};const{retainId:r=g.retainId,ignoreDrivers:i=g.ignoreDrivers,hasLabelingContext:l=g.hasLabelingContext,retainCIM:v=g.retainCIM}=t;let _=null;if((0,o.dU)(e)||e instanceof n.Z)_=e.clone();else if("cim"===e.type){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return{error:new s.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${t||"unknown"}' is unsupported in 3D`,{symbol:e})};_=v?e.clone():a.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)_=p.Z.fromSimpleLineSymbol(e);else if(e instanceof h.Z)_=a.Z.fromSimpleMarkerSymbol(e);else if(e instanceof d.Z)_=a.Z.fromPictureMarkerSymbol(e);else if(e instanceof y.Z)_=t.geometryType&&"mesh"===t.geometryType?c.Z.fromSimpleFillSymbol(e):m.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof b.Z))return{error:new s.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};_=l?f.Z.fromTextSymbol(e):a.Z.fromTextSymbol(e)}return r&&_&&"cim"!==_.type&&(_.id=e.id),i&&(0,o.dU)(_)&&_.symbolLayers.forEach((e=>e.ignoreDrivers=!0)),{symbol:_}}function _(e,t,r,o){const s=S(e,{},{context:o,isLabelSymbol:!1});null!=s&&(t[r]=s)}function w(e,t,r,o){const s=S(e,{},{context:o,isLabelSymbol:!0});null!=s&&(t[r]=s)}function C(e){return e instanceof l.Z||e instanceof n.Z}function S(e,t,r){if(null==e)return null;const{context:o,isLabelSymbol:l}=r,n=o?.origin,a=o?.messages;if("web-scene"===n&&!C(e)){const r=v(e,{retainCIM:!0,hasLabelingContext:l});return null!=r.symbol?r.symbol.write(t,o):(a?.push(new s.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:o,error:r.error})),null)}return("web-map"===n||"portal-item"===n&&!(0,i.A2)(o?.layer))&&C(e)?(a?.push(new s.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:o})),null):e.write(t,o)}function Z(e,t){return(0,o.S9)(e,null,t)}},57742:(e,t,r)=>{r.d(t,{J:()=>o,k:()=>s});const o=["begin","end","begin-end"],s=["arrow","circle","square","diamond","cross","x"]},37308:(e,t,r)=>{r.d(t,{a:()=>n,y:()=>a});var o=r(22303),s=r(62357),i=r(75215),l=r(65242);const n={type:o.Z,json:{type:[i.z8],default:null,read:{source:["color","transparency"],reader:function(e,t){const r=null!=t.transparency?(0,l.b)(t.transparency):1,s=t.color;return s&&Array.isArray(s)?new o.Z([s[0]||0,s[1]||0,s[2]||0,r]):null}},write:{target:{color:{type:[i.z8]},transparency:{type:i.z8}},writer:function(e,t){t.color=e.toJSON().slice(0,3);const r=(0,l.a)(e.a);0!==r&&(t.transparency=r)}}}},a={type:Number,cast:s.t_,json:{write:!0}}},27883:(e,t,r)=>{r.d(t,{EJ:()=>c,KV:()=>d,n2:()=>h,v9:()=>y,wm:()=>f});var o=r(3172),s=r(20102),i=r(95330),l=r(81271),n=r(48522),a=r(41253),u=r(72245);let p={};function h(e,t,r){return e&&null!=e.styleUrl?async function(e,t){try{return{data:(await c(e,t)).data,baseUrl:(0,l.Yd)(e),styleUrl:e}}catch(e){return(0,i.r9)(e),null}}(e.styleUrl,r):e&&null!=e.styleName?function(e,t,r){const o=null!=t.portal?t.portal:n.Z.getDefault();let i;const l=`${o.url} - ${o.user&&o.user.username} - ${e}`;return p[l]||(p[l]=function(e,t,r){return t.load(r).then((()=>{const o=new a.Z({disableExtraQuery:!0,query:`owner:${m} AND type:${b} AND typekeywords:"${e}"`});return t.queryItems(o,r)})).then((({results:t})=>{let o=null;const i=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some((e=>e.toLowerCase()===i));if(t&&e.type===b&&e.owner===m){o=e;break}}if(!o)throw new s.Z("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return o.load(r)}))}(e,o,r).then((e=>(i=e,e.fetchData()))).then((t=>({data:t,baseUrl:i.itemUrl??"",styleName:e})))),p[l]}(e.styleName,t,r):Promise.reject(new s.Z("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function y(e,t,r=["gltf"]){if("cimRef"===t)return e.cimRef;if(e.formatInfos&&!(0,u.K3)())for(const t of r){const r=e.formatInfos.find((e=>e.type===t));if(r)return r.href}return e.webRef}function c(e,t){const r={responseType:"json",query:{f:"json"},...t};return(0,o.default)((0,l.Fv)(e),r)}const m="esri_en",b="Style",f="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"},45119:(e,t,r)=>{r.d(t,{Hc:()=>a,KW:()=>u,Uz:()=>n,w2:()=>p}),r(80442),r(65617);var o=r(60437);const s=(0,o.al)(-.5,-.5,-.5,.5,.5,.5),i=(0,o.al)(-.5,-.5,0,.5,.5,1),l=(0,o.al)(-.5,-.5,0,.5,.5,.5);function n(e){switch(e){case"sphere":case"cube":case"diamond":return s;case"cylinder":case"cone":case"inverted-cone":return i;case"tetrahedron":return l;default:return}}const a=["butt","square","round"],u=[...a,"none"],p=["miter","bevel","round"]},61565:(e,t,r)=>{r.d(t,{Ck:()=>a,JT:()=>i,M8:()=>h,Nj:()=>p,g6:()=>l,vC:()=>n,x0:()=>u});var o=r(22021),s=r(75215);const i=["none","underline","line-through"],l=["normal","italic","oblique"],n=["normal","lighter","bold","bolder"],a={type:Number,cast:e=>{const t=(0,s.q9)(e);return 0===t?1:(0,o.uZ)(t,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},p={type:["baseline","top","middle","bottom"],nonNullable:!0},h=8},94075:(e,t,r)=>{r.d(t,{Ds:()=>n,KA:()=>l});var o=r(81271),s=r(25929);function i(e,t){return function(e){return!(null==e||"service"!==e.origin&&"portal-item"!==e.origin||"feature"!==e.layer?.type&&"stream"!==e.layer?.type)}(t)&&!(0,o.YP)(e)&&t?.layer?.parsedUrl?(0,o.v_)(t.layer.parsedUrl.path,"images",e):(0,s.f)(e,t)}const l={json:{read:{source:["imageData","url"],reader:function(e,t,r){return t.imageData?(0,o._l)({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):i(t.url,r)}},write:{writer(e,t,r,i){!function(e,t,r,i){if((0,o.HK)(e)){const l=(0,o.sJ)(e);if(!l)return;t.contentType=l.mediaType,t.imageData=l.data,r&&r.imageData===t.imageData&&r.url&&(0,s.w)(r.url,t,"url",i)}else(0,s.w)(e,t,"url",i)}(e,t,this.source,i)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,t,r){const o={};return t.imageData&&(o.imageData=t.imageData),t.contentType&&(o.contentType=t.contentType),t.url&&(o.url=i(t.url,r)),o}}}}},65242:(e,t,r)=>{r.d(t,{a:()=>s,b:()=>i});var o=r(75215);function s(e){const t=(0,o.vU)(100*(1-e));return Math.max(0,Math.min(t,100))}function i(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3005,3172,9880],{22303:(e,t,r)=>{r.d(t,{Z:()=>d});var o,s,n=r(35270),i=r(22021),a=r(75215);function l(e){return(0,i.uZ)((0,a.vU)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}class c{static blendColors(e,t,r,o=new c){return o.r=Math.round(e.r+(t.r-e.r)*r),o.g=Math.round(e.g+(t.g-e.g)*r),o.b=Math.round(e.b+(t.b-e.b)*r),o.a=e.a+(t.a-e.a)*r,o._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),o=r[1];if("rgb"===o&&3===e.length||"rgba"===o&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),c.fromArray(r,t)}return c.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===o&&3===e.length||"hsla"===o&&4===e.length)return c.fromArray((0,n.B7)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new c){if(4!==e.length&&7!==e.length||"#"!==e[0])return null;const r=4===e.length?4:8,o=(1<<r)-1;let s=Number("0x"+e.substr(1));return isNaN(s)?null:(["b","g","r"].forEach((e=>{const n=s&o;s>>=r,t[e]=4===r?17*n:n})),t.a=1,t)}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.St)(e)?(0,n.h$)(e):null;return r&&c.fromArray(r,t)||c.fromRgb(e,t)||c.fromHex(e,t)}static fromJSON(e){return e&&new c([e[0],e[1],e[2],e[3]/255])}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?c.fromString(e,this):Array.isArray(e)?c.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return`#${e.length<2?"0"+e:e}${t.length<2?"0"+t:t}${r.length<2?"0"+r:r}`}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=c.AlphaMode.ALWAYS){const t=l(this.r),r=l(this.g),o=l(this.b);return e===c.AlphaMode.ALWAYS||1!==this.a?[t,r,o,l(255*this.a)]:[t,r,o]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,o){this.r=e,this.g=t,this.b=r,this.a=o}}c.prototype.declaredClass="esri.Color",o=c||(c={}),(s=o.AlphaMode||(o.AlphaMode={}))[s.ALWAYS=0]="ALWAYS",s[s.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const d=c},99880:(e,t,r)=>{r.d(t,{V:()=>l});var o=r(68773),s=(r(3172),r(20102)),n=r(92604),i=r(81271);const a=n.Z.getLogger("esri.assets");function l(e){if(!o.default.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new s.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(o.default.assetsPath,e)}},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>s,VL:()=>i,h$:()=>n,rW:()=>u});const o={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 s(e){return!!o[e]||!!o[e.toLowerCase()]}function n(e){return o[e]??o[e.toLowerCase()]}function i(e){return[...n(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const o=6*r;return o<1?e+(t-e)*o:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,o=1){const s=(e%360+360)%360/360,n=r<=.5?r*(t+1):r+t-r*t,i=2*r-n;return[Math.round(255*a(i,n,s+1/3)),Math.round(255*a(i,n,s)),Math.round(255*a(i,n,s-1/3)),o]}function u(e){const t=e.length>5,r=t?8:4,o=(1<<r)-1,s=t?1:17,n=t?9===e.length:5===e.length;let i=Number("0x"+e.substr(1));if(isNaN(i))return null;const a=[0,0,0,1];let l;return n&&(l=i&o,i>>=r,a[3]=s*l/255),l=i&o,i>>=r,a[2]=s*l,l=i&o,i>>=r,a[1]=s*l,l=i&o,i>>=r,a[0]=s*l,a}},36030:(e,t,r)=>{r.d(t,{J:()=>n});var o=r(35454),s=r(5600);function n(e,t={}){const r=e instanceof o.X?e:new o.X(e,t),n={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(n.readOnly=!!t.readOnly),void 0!==t?.default&&(n.json.default=t.default),void 0!==t?.name&&(n.json.name=t.name),void 0!==t?.nonNullable&&(n.nonNullable=t.nonNullable),(0,s.Cb)(n)}},10661:(e,t,r)=>{r.d(t,{s:()=>s});var o=r(42100);class s extends o.s{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var o=r(75215),s=r(6570),n=r(9361),i=r(65091),a=r(94139),l=r(38913),u=r(58901);r(82971),r(86973),r(33955);const c={base:n.Z,key:"type",typeMap:{extent:s.Z,multipoint:i.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,o.N7)(c)},33955:(e,t,r)=>{r.d(t,{Ji:()=>f,YX:()=>u,aW:()=>c,im:()=>p,l9:()=>h,oU:()=>m,q9:()=>y,wp:()=>d});var o=r(6570),s=r(9361),n=r(65091),i=r(94139),a=r(38913),l=r(58901);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths}function m(e){return void 0!==e.rings}function p(e){return null==e?null:e instanceof s.Z?e:d(e)?i.Z.fromJSON(e):h(e)?l.Z.fromJSON(e):m(e)?a.Z.fromJSON(e):c(e)?n.Z.fromJSON(e):u(e)?o.Z.fromJSON(e):null}function f(e){return e?d(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":m(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:i.Z,esriGeometryPolyline:l.Z,esriGeometryPolygon:a.Z,esriGeometryEnvelope:o.Z,esriGeometryMultipoint:n.Z};function y(e){return e&&g[e]||null}},86973:(e,t,r)=>{r.d(t,{M:()=>s,P:()=>n});var o=r(35454);const s=(0,o.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),n=(0,o.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},61576:(e,t,r)=>{r.r(t),r.d(t,{default:()=>g}),r(66577);var o=r(18571),s=r(5847),n=r(75993),i=r(55914),a=r(40932),l=r(73506),u=r(15612),c=r(80676),d=r(87521),h=r(72758),m=r(23808),p=r(6570),f=r(94139);class g{convertVectorFieldData(e){const t=s.Z.fromJSON(e.pixelBlock),r=(0,c.KC)(t,e.type);return Promise.resolve(null!=r?r.toJSON():null)}computeStatisticsHistograms(e){const t=s.Z.fromJSON(e.pixelBlock),r=(0,u.js)(t);return Promise.resolve(r)}async decode(e){const t=await(0,n.J)(e.data,e.options);return t&&t.toJSON()}symbolize(e){e.pixelBlock=s.Z.fromJSON(e.pixelBlock),e.extent=e.extent?p.Z.fromJSON(e.extent):null;const t=this.symbolizer.symbolize(e);return Promise.resolve(null!=t?t.toJSON():null)}async updateSymbolizer(e){this.symbolizer=h.Z.fromJSON(e.symbolizerJSON),e.histograms&&"rasterStretch"===this.symbolizer?.rendererJSON.type&&(this.symbolizer.rendererJSON.histograms=e.histograms)}async updateRasterFunction(e){this.rasterFunction=(0,a.Ue)(e.rasterFunctionJSON)}async process(e){const t=this.rasterFunction.process({extent:p.Z.fromJSON(e.extent),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>null!=e?s.Z.fromJSON(e):null)),primaryPixelSizes:e.primaryPixelSizes?.map((e=>null!=e?f.Z.fromJSON(e):null)),primaryRasterIds:e.primaryRasterIds});return null!=t?t.toJSON():null}stretch(e){const t=this.symbolizer.simpleStretch(s.Z.fromJSON(e.srcPixelBlock),e.stretchParams);return Promise.resolve(null!=t&&t.toJSON())}estimateStatisticsHistograms(e){const t=(0,u.Hv)(s.Z.fromJSON(e.srcPixelBlock));return Promise.resolve(t)}split(e){const t=(0,i.Vl)(s.Z.fromJSON(e.srcPixelBlock),e.tileSize,e.maximumPyramidLevel);return t&&t.forEach(((e,r)=>{t.set(r,e?.toJSON())})),Promise.resolve(t)}async mosaicAndTransform(e){const t=e.srcPixelBlocks.map((e=>e?new s.Z(e):null)),r=(0,i.us)(t,e.srcMosaicSize,{blockWidths:e.blockWidths,alignmentInfo:e.alignmentInfo,clipOffset:e.clipOffset,clipSize:e.clipSize});let o,n=r;return e.coefs&&(n=(0,i.Uk)(r,e.destDimension,e.coefs,e.sampleSpacing,e.interpolation)),e.projectDirections&&e.gcsGrid&&(o=(0,i.Qh)(e.destDimension,e.gcsGrid),n=(0,c.xQ)(n,e.isUV?"vector-uv":"vector-magdir",o)),{pixelBlock:n?.toJSON(),localNorthDirections:o}}async createFlowMesh(e,t){const r={data:new Float32Array(e.flowData.buffer),mask:new Uint8Array(e.flowData.maskBuffer),width:e.flowData.width,height:e.flowData.height},{vertexData:o,indexData:s}=await(0,m.GE)(e.meshType,e.simulationSettings,r,t.signal);return{result:{vertexBuffer:o.buffer,indexBuffer:s.buffer},transferList:[o.buffer,s.buffer]}}async getProjectionOffsetGrid(e){const t=p.Z.fromJSON(e.projectedExtent),r=p.Z.fromJSON(e.srcBufferExtent);let s=null;e.datumTransformationSteps&&(s=new o.Z({steps:e.datumTransformationSteps})),(e.includeGCSGrid||(0,l.Mk)(t.spatialReference,r.spatialReference,s))&&await(0,l.zD)();const n=e.rasterTransform?(0,d.c)(e.rasterTransform):null;return(0,l.Qp)({...e,projectedExtent:t,srcBufferExtent:r,datumTransformation:s,rasterTransform:n})}}},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var o=r(68773),s=r(40330),n=r(20102),i=r(80442),a=r(22974),l=r(95330),u=r(81271),c=r(19745),d=r(71058),h=r(85958);async function m(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,u.u0)(t.query.toString().replaceAll("+"," ")));const a=(0,u.HK)(e),c=(0,u.jc)(e);c||a||(e=(0,u.Fv)(e));const y={url:e,requestOptions:{...t}};let b=(0,u.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,o;try{o=await e.before(t)}catch(e){r=O("request:interceptor",e,t)}if((o instanceof Error||o instanceof n.Z)&&(r=O("request:interceptor",o,t)),r)throw e.error&&e.error(r),r;return o}}(b,y);if(null!=e)return{data:e,getHeader:v,httpStatus:200,requestOptions:y.requestOptions,url:y.url};b.after||b.error||(b=null)}if(e=y.url,"image"===(t=y.requestOptions).responseType&&((0,i.Z)("host-webworker")||(0,i.Z)("host-node")))throw O("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),y);if("head"===t.method){if(t.body)throw O("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),y);if(a||c)throw O("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),y)}if(await async function(){(0,i.Z)("host-webworker")?p||(p=await r.e(9884).then(r.bind(r,29884))):m._abortableFetch||(m._abortableFetch=globalThis.fetch.bind(globalThis))}(),p)return p.execute(e,t);const w=new AbortController;(0,l.fu)(t,(()=>w.abort()));const S={controller:w,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:b,params:y,redoRequest:!1,useIdentity:f.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},k=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,n=e.controller.signal,i=r.body;let a=null,u=null;if(g&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(u=i),e.fetchOptions={cache:r.cacheBust&&!("polyfill"in m._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:f.priority,redirect:"follow",signal:n},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken&&o.default.apiKey&&(0,d.r)(t)&&(r.query||(r.query={}),r.query.token=o.default.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!x(t)&&!(0,l.Hc)(n)){let o;"immediate"===r.authMode?(await C(),o=await s.id.getCredential(t,{signal:n}),e.credential=o):"no-prompt"===r.authMode?(await C(),o=await s.id.getCredential(t,{prompt:!1,signal:n}).catch((()=>{})),e.credential=o):s.id&&(o=s.id.findCredential(t)),o&&(e.credentialToken=o.token,e.useSSL=!!o.ssl)}}(e);try{do{[t,r]=await q(e)}while(!await P(e,t,r))}catch(r){const o=O("request:server",r,e.params,t);throw o.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(o),o}const n=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,u.kl)(n)){const e=(0,u.P$)(n,!0);e&&f.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(r.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&s.id){const e=s.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=s.id.findCredential(t,i.userId);e&&-1===s.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getHeader:t?e=>t?.headers.get(e):v,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(S);return b?.after?.(k),k}let p;const f=o.default.request,g="FormData"in globalThis,y=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],w=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],v=()=>null,S=Symbol();function k(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||m._corsServers.includes(t)||(0,u.kl)(t)}function O(e,t,r,o){let s="Error";const i={url:r.url,requestOptions:r.requestOptions,getHeader:v,ssl:!1};if(t instanceof n.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=i,t;if(t){const e=o&&(e=>o.headers.get(e)),r=o?.status,n=t.message;n&&(s=n),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=S in t?t[S]:t}return(0,l.D_)(t)?(0,l.zE)():new n.Z(e,s,i)}async function C(){s.id||await Promise.all([r.e(7126),r.e(6261),r.e(9255),r.e(1400),r.e(450)]).then(r.bind(r,73660))}function x(e){return w.some((t=>t.test(e)))}async function q(e){let t=e.params.url;const r=e.params.requestOptions,o=e.fetchOptions??{},n=(0,u.jc)(t)||(0,u.HK)(t),a=r.responseType||"json",d=n?0:null!=r.timeout?r.timeout:f.timeout;let p=!1;if(!n){e.useSSL&&(t=(0,u.hO)(t)),r.cacheBust&&"default"===o.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let n={...r.query};e.credentialToken&&(n.token=e.credentialToken);let a=(0,u.B7)(n);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const l=t.length+1+a.length;let d;p="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>f.maxUrlLength;const m=r.useProxy||!!(0,u.ed)(t);if(m){const e=(0,u.b7)(t);d=e.path,!p&&d.length+1+l>f.maxUrlLength&&(p=!0),e.query&&(n={...e.query,...n})}if("HEAD"===o.method&&(p||m)){if(p){if(l>f.maxUrlLength)throw O("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw O("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(m)throw O("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(o.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,u.fl)(t,n):(o.body=(0,u.B7)(n),o.headers||(o.headers={}),o.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,n),m&&(e.useProxy=!0,t=`${d}?${t}`),n.token&&g&&o.body instanceof FormData&&!(0,c.P)(t)&&o.body.set("token",n.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(s.id){const r=s.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(o.credentials="include",(0,h.jH)(t)&&await(0,h.jz)(p?(0,u.fl)(t,n):t))}let y,b,w=0,v=!1;d>0&&(w=setTimeout((()=>{v=!0,e.controller.abort()}),d));try{if("native-request-init"===r.responseType)b=o,b.url=t;else if("image"!==r.responseType||"default"!==o.cache||"GET"!==o.method||p||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!n&&!e.useProxy&&f.proxyUrl&&!k(t)){if(y=await m._abortableFetch(t,o),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!m._corsServers.includes(t)&&m._corsServers.push(t)}(t),"native"===r.responseType)b=y;else if("HEAD"!==o.method)if(y.ok){switch(a){case"array-buffer":b=await y.arrayBuffer();break;case"blob":case"image":b=await y.blob();break;default:b=await y.text()}if(w&&(clearTimeout(w),w=0),"json"===a||"xml"===a||"document"===a)if(b)switch(a){case"json":b=JSON.parse(b);break;case"xml":b=N(b,"application/xml");break;case"document":b=N(b,"text/html")}else b=null;if(b){if("array-buffer"===a||"blob"===a){const e=y.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&b["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(b).json();e.error&&(b=e)}catch{}}"image"===a&&b instanceof Blob&&(b=await Z(URL.createObjectURL(b),e,!0))}}else{b=await y.text();try{b=JSON.parse(b)}catch{}}}else b=await Z(t,e)}catch(o){if("AbortError"===o.name){if(v)throw new Error("Timeout exceeded");throw(0,l.zE)("Request canceled")}if(!(!y&&o instanceof TypeError&&f.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||k(t))throw o;e.redoRequest=!0,(0,u.tD)({proxyUrl:f.proxyUrl,urlPrefix:(0,u.P$)(t)??""})}finally{w&&clearTimeout(w)}return[y,b]}function N(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function P(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const o=e.params.requestOptions;if(!t||"native"===o.responseType||"native-request-init"===o.responseType)return!0;let n,i;if(r&&(r.error?n=r.error:"error"===r.status&&Array.isArray(r.messages)&&(n={...r},n[S]=r,n.details=r.messages)),!n&&!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[S]=r,n;let a,l=null;n&&(i=Number(n.code),l=n.hasOwnProperty("subcode")?Number(n.subcode):null,a=n.messageCode,a=a?.toUpperCase());const u=o.authMode;if(403===i&&(4===l||n.message?.toLowerCase().includes("ssl")&&!n.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===i)&&void 0!==i&&y.includes(i)&&!x(e.params.url)&&(403!==i||a&&!b.includes(a)&&(null==l||2===l&&e.credentialToken))){await C();try{const t=await s.id.getCredential(e.params.url,{error:O("request:server",n,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;n=t}}if(n)throw n;return!0}function Z(e,t,r=!1){const o=t.controller.signal,s=new Image;return t.withCredentials?s.crossOrigin="use-credentials":s.crossOrigin="anonymous",s.alt="",s.fetchPriority=f.priority,s.src=e,(0,h.fY)(s,e,r,o)}m._abortableFetch=null,m._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},98046:(e,t,r)=>{r.d(t,{Z:()=>m});var o,s=r(43697),n=r(22303),i=r(22974),a=r(5600),l=r(75215),u=r(36030),c=r(52011),d=r(899);let h=o=class extends d.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new o({fromColor:(0,i.d9)(this.fromColor),toColor:(0,i.d9)(this.toColor),algorithm:this.algorithm})}};(0,s._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],h.prototype,"algorithm",void 0),(0,s._)([(0,a.Cb)({type:n.Z,json:{type:[l.z8],write:!0}})],h.prototype,"fromColor",void 0),(0,s._)([(0,a.Cb)({type:n.Z,json:{type:[l.z8],write:!0}})],h.prototype,"toColor",void 0),(0,s._)([(0,a.Cb)({type:["algorithmic"]})],h.prototype,"type",void 0),h=o=(0,s._)([(0,c.j)("esri.rest.support.AlgorithmicColorRamp")],h);const m=h},899:(e,t,r)=>{r.d(t,{Z:()=>l});var o=r(43697),s=r(96674),n=r(5600),i=(r(75215),r(67676),r(80442),r(52011));let a=class extends s.wq{constructor(e){super(e),this.type=null}};(0,o._)([(0,n.Cb)({readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,o._)([(0,i.j)("esri.rest.support.ColorRamp")],a);const l=a},1515:(e,t,r)=>{r.d(t,{Z:()=>d});var o,s=r(43697),n=r(22974),i=r(5600),a=(r(75215),r(52011)),l=r(98046),u=r(899);let c=o=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new o({colorRamps:(0,n.d9)(this.colorRamps)})}};(0,s._)([(0,i.Cb)({type:[l.Z],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,s._)([(0,i.Cb)({type:["multipart"]})],c.prototype,"type",void 0),c=o=(0,s._)([(0,a.j)("esri.rest.support.MultipartColorRamp")],c);const d=c},94593:(e,t,r)=>{r.d(t,{V:()=>i,i:()=>a});var o=r(98046),s=r(899),n=r(1515);const i={key:"type",base:s.Z,typeMap:{algorithmic:o.Z,multipart:n.Z}};function a(e){return e&&e.type?"algorithmic"===e.type?o.Z.fromJSON(e):"multipart"===e.type?n.Z.fromJSON(e):null:null}},71058:(e,t,r)=>{r.d(t,{r:()=>n});var o=r(81271);const s=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function n(e){const t=(0,o.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!s.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{Hu:()=>u,fY:()=>a,jH:()=>c,jz:()=>d});var o=r(68773),s=r(80442),n=r(95330),i=r(81271);function a(e,t,r=!1,o){return new Promise(((i,a)=>{if((0,n.Hc)(o))return void a(l());let u=()=>{h(),a(new Error(`Unable to load ${t}`))},c=()=>{const t=e;h(),i(t)},d=()=>{if(!e)return;const t=e;h(),t.src="",a(l())};const h=()=>{(0,s.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",c)),u=null,c=null,e=null,null!=o&&o.removeEventListener("abort",d),d=null,r&&URL.revokeObjectURL(t)};null!=o&&o.addEventListener("abort",d),(0,s.Z)("esri-image-decode")?e.decode().then(c,u):(e.addEventListener("error",u),e.addEventListener("load",c))}))}function l(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function u(e){o.default.request.crossOriginNoCorsDomains||(o.default.request.crossOriginNoCorsDomains={});const t=o.default.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,i.P$)(r)??""]=0:(t[(0,i.P$)("http://"+r)??""]=0,t[(0,i.P$)("https://"+r)??""]=0)}function c(e){const t=o.default.request.crossOriginNoCorsDomains;if(t){let r=(0,i.P$)(e);if(r)return r=r.toLowerCase(),!(0,i.D6)(r,(0,i.TI)())&&t[r]<Date.now()-36e5}return!1}async function d(e){const t=o.default.request.crossOriginNoCorsDomains,r=(0,i.P$)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const s=(0,i.mN)(e);e=s.path,"json"===s.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3847],{36030:(e,n,t)=>{t.d(n,{J:()=>r});var i=t(35454),l=t(5600);function r(e,n={}){const t=e instanceof i.X?e:new i.X(e,n),r={type:n?.ignoreUnknown??1?t.apiValues:String,json:{type:t.jsonValues,read:!n?.readOnly&&{reader:t.read},write:{writer:t.write}}};return void 0!==n?.readOnly&&(r.readOnly=!!n.readOnly),void 0!==n?.default&&(r.json.default=n.default),void 0!==n?.name&&(r.json.name=n.name),void 0!==n?.nonNullable&&(r.nonNullable=n.nonNullable),(0,l.Cb)(r)}},66577:(e,n,t)=>{t.d(n,{qM:()=>c});var i=t(75215),l=t(6570),r=t(9361),a=t(65091),o=t(94139),s=t(38913),u=t(58901);t(82971),t(86973),t(33955);const c={base:r.Z,key:"type",typeMap:{extent:l.Z,multipoint:a.Z,point:o.Z,polyline:u.Z,polygon:s.Z}};(0,i.N7)(c)},33955:(e,n,t)=>{t.d(n,{Ji:()=>y,YX:()=>u,aW:()=>c,im:()=>p,l9:()=>d,oU:()=>m,q9:()=>h,wp:()=>f});var i=t(6570),l=t(9361),r=t(65091),a=t(94139),o=t(38913),s=t(58901);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function f(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths}function m(e){return void 0!==e.rings}function p(e){return null==e?null:e instanceof l.Z?e:f(e)?a.Z.fromJSON(e):d(e)?s.Z.fromJSON(e):m(e)?o.Z.fromJSON(e):c(e)?r.Z.fromJSON(e):u(e)?i.Z.fromJSON(e):null}function y(e){return e?f(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":m(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:s.Z,esriGeometryPolygon:o.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:r.Z};function h(e){return e&&g[e]||null}},82397:(e,n,t)=>{t.d(n,{G6:()=>y,Ie:()=>p,J9:()=>d,RF:()=>f,U1:()=>m,vY:()=>a}),t(33955);const i=(e,n,t)=>[n,t],l=(e,n,t)=>[n,t,e[2]],r=(e,n,t)=>[n,t,e[2],e[3]];function a(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance]:[1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function o({scale:e,translate:n},t){return t*e[0]+n[0]}function s({scale:e,translate:n},t){return n[1]-t*e[1]}function u(e,n,t){const i=new Array(t.length);if(!t.length)return i;const[l,r]=e.scale;let a=o(e,t[0][0]),u=s(e,t[0][1]);i[0]=n(t[0],a,u);for(let e=1;e<t.length;e++){const o=t[e];a+=o[0]*l,u-=o[1]*r,i[e]=n(o,a,u)}return i}function c(e,n,t){const i=new Array(t.length);for(let l=0;l<t.length;l++)i[l]=u(e,n,t[l]);return i}function f(e,n,t,i,l){return n.x=function({scale:e,translate:n},t){return Math.round((t-n[0])/e[0])}(e,t.x),n.y=function({scale:e,translate:n},t){return Math.round((n[1]-t)/e[1])}(e,t.y),n!==t&&(i&&(n.z=t.z),l&&(n.m=t.m)),n}function d(e,n,t,a,o){return null!=t&&(n.points=function(e,n,t,a){return u(e,t?a?r:l:a?l:i,n)}(e,t.points,a,o)),n}function m(e,n,t,i,l){return null==t||(n.x=o(e,t.x),n.y=s(e,t.y),n!==t&&(i&&(n.z=t.z),l&&(n.m=t.m))),n}function p(e,n,t,a,o){return null!=t&&(n.rings=function(e,n,t,a){return c(e,t?a?r:l:a?l:i,n)}(e,t.rings,a,o)),n}function y(e,n,t,a,o){return null!=t&&(n.paths=function(e,n,t,a){return c(e,t?a?r:l:a?l:i,n)}(e,t.paths,a,o)),n}},86973:(e,n,t)=>{t.d(n,{M:()=>l,P:()=>r});var i=t(35454);const l=(0,i.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),r=(0,i.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},35671:(e,n,t)=>{t.d(n,{io:()=>x,AB:()=>V,gd:()=>F,Q0:()=>v,YN:()=>y,UF:()=>h,O5:()=>I,CH:()=>w,os:()=>E,Hp:()=>$,Fv:()=>z,H7:()=>R,Ec:()=>ie,qN:()=>j,q6:()=>d,Pz:()=>X,Lk:()=>T,Qc:()=>Y,vP:()=>te}),t(20102);var i,l,r=t(78286);(l=i||(i={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",l.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var a=t(59266);const o=/^([0-9])/,s=/[^a-z0-9_\u0080-\uffff]/gi,u=/_{2,}/g,c=/^_/,f=/_$/;function d(e){return null==e?null:e.trim().replaceAll(s,"_").replaceAll(u,"_").replace(c,"").replace(f,"").replace(o,"F$1")||null}const m=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],p=["field","normalizationField"];function y(e,n){if(null!=e&&null!=n)for(const t of Array.isArray(e)?e:[e])if(g(m,t,n),"visualVariables"in t&&t.visualVariables)for(const e of t.visualVariables)g(p,e,n)}function g(e,n,t){if(e)for(const i of e){const e=(0,r.hS)(i,n),l=e&&"function"!=typeof e&&t.get(e);l&&(0,r.RB)(i,l.name,n)}}function h(e,n){if(null!=e&&n?.fields?.length)if("startField"in e){const t=n.get(e.startField),i=n.get(e.endField);e.startField=t?.name??null,e.endField=i?.name??null}else{const t=n.get(e.startTimeField),i=n.get(e.endTimeField);e.startTimeField=t?.name??null,e.endTimeField=i?.name??null}}const b=new Set;function v(e,n){return e&&n?(b.clear(),F(b,e,n),Array.from(b).sort()):[]}function F(e,n,t){if(t)if(n?.fields?.length)if(t.includes("*"))for(const{name:t}of n.fields)e.add(t);else for(const i of t)V(e,n,i);else{if(t.includes("*"))return e.clear(),void e.add("*");for(const n of t)null!=n&&e.add(n)}}function V(e,n,t){if("string"==typeof t)if(n){const i=n.get(t);i&&e.add(i.name)}else e.add(t)}function T(e,n){return null==n||null==e?[]:n.includes("*")?(e.fields??[]).map((e=>e.name)):n}async function x(e,n,t){if(!t)return;const{arcadeUtils:i}=await(0,a.LC)(),l=i.extractFieldNames(t,n?.fields?.map((e=>e.name)));for(const t of l)V(e,n,t)}function I({displayField:e,fields:n}){return e||(n&&n.length?_(n,"name-or-title")||_(n,"unique-identifier")||_(n,"type-or-category")||function(e){for(const n of e){if(!n||!n.name)continue;const e=n.name.toLowerCase();if(e.includes("name")||e.includes("title"))return n.name}return null}(n):null)}function _(e,n){for(const t of e)if(t&&t.valueType&&t.valueType===n)return t.name;return null}function w(e){return e?v(e.fieldsIndex,M(e)):[]}const N=["oid","global-id","guid"],S=["oid","global-id"],D=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/shape/i,/perimeter/i,/objectid/i,/_i$/i];function M(e){if(!e)return[];const n="editFieldsInfo"in e&&e.editFieldsInfo;if(!n)return[];const{creationDateField:t,creatorField:i,editDateField:l,editorField:r}=n;return[t,i,l,r].filter(Boolean)}function C(e){return M(e).map((e=>e.toLowerCase()))}function $(e,n){return e.editable&&!N.includes(e.type)&&!C(n).includes(e.name?.toLowerCase()??"")}function z(e,n){const t=e.name?.toLowerCase()??"";return!(null!=n?.objectIdField&&t===n.objectIdField.toLowerCase()||null!=n?.globalIdField&&t===n.globalIdField.toLowerCase()||function(e){const n=new Set;C(e).forEach((e=>n.add(e))),function(e){if(!e)return[];const n=e.geometryFieldsInfo;return n?v(e.fieldsIndex,[n.shapeAreaField,n.shapeLengthField]):[]}(e).forEach((e=>n.add(e.toLowerCase())));const t=e&&"infoFor3D"in e?e.infoFor3D:void 0;return t&&(Object.values(t.assetMapFieldRoles).forEach((e=>n.add(e.toLowerCase()))),Object.values(t.transformFieldRoles).forEach((e=>n.add(e.toLowerCase())))),Array.from(n)}(n).includes(t)||S.includes(e.type)||D.some((e=>e.test(t))))}function E(e){const n=e.defaultValue;return void 0!==n&&q(e,n)?n:e.nullable?null:void 0}function k(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function A(e){return null===e||k(e)}const G="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function L(e){return null===e||G(e)}function O(e){return null!=e&&"string"==typeof e}function P(e){return null===e||O(e)}function U(){return!0}function q(e,n){let t;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":t=e.nullable?L:G;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":t=e.nullable?A:k;break;case"string":case"esriFieldTypeString":t=e.nullable?P:O;break;default:t=U}return 1===arguments.length?t:t(n)}const Z=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function R(e){return null!=e&&Z.has(e.type)}function j(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var B,J;function X(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function Y(e,n){return null==e||e.nullable&&null===n?null:R(e)&&!function(e,n){const t="string"==typeof e?Q(e):e;if(!t)return!1;const i=t.min,l=t.max;return t.isInteger?G(n)&&n>=i&&n<=l:n>=i&&n<=l}(e.type,Number(n))?B.OUT_OF_RANGE:q(e,n)?e.domain?function(e,n){switch(e.type){case"range":{const t="range"in e?e.range[0]:e.minValue,l="range"in e?e.range[1]:e.maxValue;if(null!=t&&+n<t||null!=l&&+n>l)return i.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==n)))return i.INVALID_CODED_VALUE}return null}(e.domain,n):null:J.INVALID_TYPE}function Q(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return H;case"esriFieldTypeInteger":case"integer":return W;case"esriFieldTypeBigInteger":case"big-integer":return K;case"esriFieldTypeSingle":case"single":return ee;case"esriFieldTypeDouble":case"double":return ne}}new Set(["date","date-only","time-only","timestamp-offset","esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]),function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(B||(B={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(J||(J={}));const H={min:-32768,max:32767,isInteger:!0},W={min:-2147483648,max:2147483647,isInteger:!0},K={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0},ee={min:-34e37,max:12e37,isInteger:!1},ne={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function te(e,n,t){switch(e){case i.INVALID_CODED_VALUE:return`Value ${t} is not in the coded domain - field: ${n.name}, domain: ${JSON.stringify(n.domain)}`;case i.VALUE_OUT_OF_RANGE:return`Value ${t} is out of the range of valid values - field: ${n.name}, domain: ${JSON.stringify(n.domain)}`;case J.INVALID_TYPE:return`Value ${t} is not a valid value for the field type - field: ${n.name}, type: ${n.type}, nullable: ${n.nullable}`;case B.OUT_OF_RANGE:{const{min:e,max:i}=Q(n.type);return`Value ${t} is out of range for the number type - field: ${n.name}, type: ${n.type}, value range is ${e} to ${i}`}}}function ie(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some((n=>e.toLowerCase().startsWith(n)))}},10278:(e,n,t)=>{t.d(n,{Z:()=>d});var i=t(43697),l=t(35454),r=t(96674),a=t(5600),o=(t(75215),t(67676),t(80442),t(36030)),s=t(52011);const u=new l.X({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),c=new l.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let f=class extends r.wq{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,i._)([(0,o.J)({classBreaksDef:"class-breaks-definition"})],f.prototype,"type",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],f.prototype,"breakCount",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],f.prototype,"classificationField",void 0),(0,i._)([(0,a.Cb)({type:String,json:{read:u.read,write:u.write}})],f.prototype,"classificationMethod",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],f.prototype,"normalizationField",void 0),(0,i._)([(0,a.Cb)({json:{read:c.read,write:c.write}})],f.prototype,"normalizationType",void 0),(0,i._)([(0,a.Cb)({value:null,json:{write:!0}})],f.prototype,"standardDeviationInterval",null),(0,i._)([(0,a.Cb)({value:null,json:{write:!0}})],f.prototype,"definedInterval",null),f=(0,i._)([(0,s.j)("esri.rest.support.ClassBreaksDefinition")],f);const d=f},622:(e,n,t)=>{t.d(n,{k:()=>r});const i=t(92604).Z.getLogger("esri.rest.support.generateRendererUtils");function l(e,n){return Number(e.toFixed(n))}function r(e){const{normalizationTotal:n}=e;return{classBreaks:a(e),normalizationTotal:n}}function a(e){const n=e.definition,{classificationMethod:t,normalizationType:i,definedInterval:r}=n,a=n.breakCount??1,u=[];let c=e.values;if(0===c.length)return[];c=c.sort(((e,n)=>e-n));const f=c[0],d=c[c.length-1];if("equal-interval"===t)if(c.length>=a){const e=(d-f)/a;let n=f;for(let t=1;t<a;t++){const r=l(f+t*e,6);u.push({minValue:n,maxValue:r,label:o(n,r,i)}),n=r}u.push({minValue:n,maxValue:d,label:o(n,d,i)})}else c.forEach((e=>{u.push({minValue:e,maxValue:e,label:o(e,e,i)})}));else if("natural-breaks"===t){const n=function(e){const n=[],t=[];let i=Number.MIN_VALUE,l=1,r=-1;for(let a=0;a<e.length;a++){const o=e[a];o===i?(l++,t[r]=l):null!==o&&(n.push(o),i=o,l=1,t.push(l),r++)}return{uniqueValues:n,valueFrequency:t}}(c),t=e.valueFrequency||n.valueFrequency,r=s(n.uniqueValues,t,a);let m=f;for(let e=1;e<a;e++)if(n.uniqueValues.length>e){const t=l(n.uniqueValues[r[e]],6);u.push({minValue:m,maxValue:t,label:o(m,t,i)}),m=t}u.push({minValue:m,maxValue:d,label:o(m,d,i)})}else if("quantile"===t)if(c.length>=a&&f!==d){let e=f,n=Math.ceil(c.length/a),t=0;for(let l=1;l<a;l++){let r=n+t-1;r>c.length&&(r=c.length-1),r<0&&(r=0),u.push({minValue:e,maxValue:c[r],label:o(e,c[r],i)}),e=c[r],t+=n,n=Math.ceil((c.length-t)/(a-l))}u.push({minValue:e,maxValue:d,label:o(e,d,i)})}else{let e=-1;for(let n=0;n<c.length;n++){const t=c[n];t!==e&&(e=t,u.push({minValue:e,maxValue:t,label:o(e,t,i)}),e=t)}}else if("standard-deviation"===t){const e=function(e){let n=0;for(let t=0;t<e.length;t++)n+=e[t];return n/=e.length,n}(c),n=function(e,n){let t=0;for(let i=0;i<e.length;i++){const l=e[i];t+=(l-n)*(l-n)}return t/=e.length,Math.sqrt(t)}(c,e);if(0===n)u.push({minValue:c[0],maxValue:c[0],label:o(c[0],c[0],i)});else{const t=function(e,n,t,i,l){let r=Math.max(i-e,n-i)/l/t;return r=r>=1?1:r>=.5?.5:.25,r}(f,d,a,e,n)*n;let r=0,s=f;for(let n=a;n>=1;n--){const a=l(e-(n-.5)*t,6);u.push({minValue:s,maxValue:a,label:o(s,a,i)}),s=a,r++}let c=l(e+.5*t,6);u.push({minValue:s,maxValue:c,label:o(s,c,i)}),s=c,r++;for(let n=1;n<=a;n++)c=r===2*a?d:l(e+(n+.5)*t,6),u.push({minValue:s,maxValue:c,label:o(s,c,i)}),s=c,r++}}else if("defined-interval"===t){if(!r)return u;const e=c[0],n=c[c.length-1],t=Math.ceil((n-e)/r);let a=e;for(let n=1;n<t;n++){const t=l(e+n*r,6);u.push({minValue:a,maxValue:t,label:o(a,t,i)}),a=t}u.push({minValue:a,maxValue:n,label:o(a,n,i)})}return u}function o(e,n,t){let i=null;return i=e===n?t&&"percent-of-total"===t?e+"%":e.toString():t&&"percent-of-total"===t?e+"% - "+n+"%":e+" - "+n,i}function s(e,n,t){const i=e.length,l=[];t>i&&(t=i);for(let e=0;e<t;e++)l.push(Math.round(e*i/t-1));l.push(i-1);let r=u(l,e,n,t);return function(e,n,t,i,l,r){let a=0,o=0,s=0,u=0,f=!0;for(let d=0;d<2&&f;d++){0===d&&(f=!1);for(let d=0;d<r-1;d++)for(;t[d+1]+1!==t[d+2];){t[d+1]=t[d+1]+1;const r=c(d,t,i,l);s=r.sbMean,a=r.sbSdcm;const m=c(d+1,t,i,l);if(u=m.sbMean,o=m.sbSdcm,!(a+o<n[d]+n[d+1])){t[d+1]=t[d+1]-1;break}n[d]=a,n[d+1]=o,e[d]=s,e[d+1]=u,f=!0}for(let d=r-1;d>0;d--)for(;t[d]!==t[d-1]+1;){t[d]=t[d]-1;const r=c(d-1,t,i,l);s=r.sbMean,a=r.sbSdcm;const m=c(d,t,i,l);if(u=m.sbMean,o=m.sbSdcm,!(a+o<n[d-1]+n[d])){t[d]=t[d]+1;break}n[d-1]=a,n[d]=o,e[d-1]=s,e[d]=u,f=!0}}return f}(r.mean,r.sdcm,l,e,n,t)&&(r=u(l,e,n,t)),l}function u(e,n,t,i){let l=[],r=[],a=[],o=0;const s=[],u=[];for(let l=0;l<i;l++){const i=c(l,e,n,t);s.push(i.sbMean),u.push(i.sbSdcm),o+=u[l]}let f,d=o,m=!0;for(;m||o<d;){m=!1,l=[];for(let n=0;n<i;n++)l.push(e[n]);for(let t=0;t<i;t++)for(let l=e[t]+1;l<=e[t+1];l++)if(f=n[l],t>0&&l!==e[t+1]&&Math.abs(f-s[t])>Math.abs(f-s[t-1]))e[t]=l;else if(t<i-1&&e[t]!==l-1&&Math.abs(f-s[t])>Math.abs(f-s[t+1])){e[t+1]=l-1;break}d=o,o=0,r=[],a=[];for(let l=0;l<i;l++){r.push(s[l]),a.push(u[l]);const i=c(l,e,n,t);s[l]=i.sbMean,u[l]=i.sbSdcm,o+=u[l]}}if(o>d){for(let n=0;n<i;n++)e[n]=l[n],s[n]=r[n],u[n]=a[n];o=d}return{mean:s,sdcm:u}}function c(e,n,t,l){let r=0,a=0;for(let i=n[e]+1;i<=n[e+1];i++){const e=l[i];r+=t[i]*e,a+=e}a<=0&&i.warn("Exception in Natural Breaks calculation");const o=r/a;let s=0;for(let i=n[e]+1;i<=n[e+1];i++)s+=l[i]*(t[i]-o)**2;return{sbMean:o,sbSdcm:s}}},24452:(e,n,t)=>{t.d(n,{DL:()=>D,F_:()=>T,G2:()=>N,H0:()=>y,Lq:()=>b,Qm:()=>_,S5:()=>p,XL:()=>h,eT:()=>x,fk:()=>w,i5:()=>g,oF:()=>M,wk:()=>m});var i=t(10278),l=t(622);const r="<Null>",a="equal-interval",o=1,s=5,u=10,c=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,f=new Set(["esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]),d=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function m(e){return null==e||"string"==typeof e&&!e?r:e}function p(e){const n=null!=e.normalizationField||null!=e.normalizationType,t=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!n&&!t&&!i}function y(e){const n=e.returnDistinct?[...new Set(e.values)]:e.values,t=n.filter((e=>null!=e)).length,i={count:t};return e.supportsNullCount&&(i.nullcount=n.length-t),e.percentileParams&&(i.median=h(n,e.percentileParams)),i}function g(e){const{values:n,useSampleStdDev:t,supportsNullCount:i}=e;let l=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,a=null,o=null,s=null,u=null,c=0;const f=null==e.minValue?-1/0:e.minValue,d=null==e.maxValue?1/0:e.maxValue;for(const e of n)Number.isFinite(e)?e>=f&&e<=d&&(a=null===a?e:a+e,l=Math.min(l,e),r=Math.max(r,e),c++):"string"==typeof e&&c++;if(c&&null!=a){o=a/c;let e=0;for(const t of n)Number.isFinite(t)&&t>=f&&t<=d&&(e+=(t-o)**2);u=t?c>1?e/(c-1):0:c>0?e/c:0,s=Math.sqrt(u)}else l=null,r=null;const m={avg:o,count:c,max:r,min:l,stddev:s,sum:a,variance:u};return i&&(m.nullcount=n.length-c),e.percentileParams&&(m.median=h(n,e.percentileParams)),m}function h(e,n){const{fieldType:t,value:i,orderBy:l,isDiscrete:r}=n,a=b(t,"desc"===l);if(0===(e=[...e].filter((e=>null!=e)).sort(((e,n)=>a(e,n)))).length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];const o=(e.length-1)*i,s=Math.floor(o),u=s+1,c=o%1,f=e[s],d=e[u];return u>=e.length||r||"string"==typeof f||"string"==typeof d?f:f*(1-c)+d*c}function b(e,n){const t=n?1:-1,i=function(e){return e?(e,n)=>{const t=v(e,n,!0);return null!=t?t:n-e}:(e,n)=>{const t=v(e,n,!1);return null!=t?t:e-n}}(n),l=F(n);if(!e||!["esriFieldTypeDate","esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...f].includes(e))return(e,n)=>"number"==typeof e&&"number"==typeof n?i(e,n):"string"==typeof e&&"string"==typeof n?l(e,n):t;if("esriFieldTypeDate"===e)return(e,n)=>{const l=new Date(e).getTime(),r=new Date(n).getTime();return isNaN(l)||isNaN(r)?t:i(l,r)};if(f.has(e))return(e,n)=>i(e,n);if("esriFieldTypeString"===e)return(e,n)=>l(e,n);if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e){const e=F(n);return(n,t)=>e(V(n),V(t))}return n?(e,n)=>1:(e,n)=>-1}function v(e,n,t){if(t){if(null==e)return null==n?0:1;if(null==n)return-1}else{if(null==e)return null==n?0:-1;if(null==n)return 1}return null}function F(e){return e?(e,n)=>{const t=v(e,n,!0);return null!=t?t:(e=e.toUpperCase())>(n=n.toUpperCase())?-1:e<n?1:0}:(e,n)=>{const t=v(e,n,!1);return null!=t?t:(e=e.toUpperCase())<(n=n.toUpperCase())?-1:e>n?1:0}}function V(e){return e.substr(24,12)+e.substr(19,4)+e.substr(16,2)+e.substr(14,2)+e.substr(11,2)+e.substr(9,2)+e.substr(6,2)+e.substr(4,2)+e.substr(2,2)+e.substr(0,2)}function T(e,n){let t;for(t in e)d.includes(t)&&(Number.isFinite(e[t])||(e[t]=null));return n?(["avg","stddev","variance"].forEach((n=>{null!=e[n]&&(e[n]=Math.ceil(e[n]??0))})),e):e}function x(e){const n={};for(let t of e)(null==t||"string"==typeof t&&""===t.trim())&&(t=null),null==n[t]?n[t]={count:1,data:t}:n[t].count++;return{count:n}}function I(e){return"coded-value"!==e?.type?[]:e.codedValues.map((e=>e.code))}function _(e,n,t,i){const l=e.count,r=[];if(t&&n){const e=[],t=I(n[0]);for(const l of t)if(n[1]){const t=I(n[1]);for(const r of t)if(n[2]){const t=I(n[2]);for(const n of t)e.push(`${m(l)}${i}${m(r)}${i}${m(n)}`)}else e.push(`${m(l)}${i}${m(r)}`)}else e.push(l);for(const n of e)l.hasOwnProperty(n)||(l[n]={data:n,count:0})}for(const e in l){const n=l[e];r.push({value:n.data,count:n.count,label:n.label})}return{uniqueValueInfos:r}}function w(e,n,t,i){let l=null;switch(n){case"log":0!==e&&(l=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(l=e/i*100);break;case"field":Number.isFinite(t)&&0!==t&&(l=e/t);break;case"natural-log":e>0&&(l=Math.log(e));break;case"square-root":e>0&&(l=e**.5)}return l}function N(e,n){const t=S({field:n.field,normalizationType:n.normalizationType,normalizationField:n.normalizationField,classificationMethod:n.classificationMethod,standardDeviationInterval:n.standardDeviationInterval,breakCount:n.numClasses||s});return e=function(e,n,t){const i=n??-1/0,l=t??1/0;return e.filter((e=>Number.isFinite(e)&&e>=i&&e<=l))}(e,n.minValue,n.maxValue),(0,l.k)({definition:t,values:e,normalizationTotal:n.normalizationTotal})}function S(e){const{breakCount:n,field:t,normalizationField:l,normalizationType:r}=e,s=e.classificationMethod||a,u="standard-deviation"===s?e.standardDeviationInterval||o:void 0;return new i.Z({breakCount:n,classificationField:t,classificationMethod:s,normalizationField:"field"===r?l:void 0,normalizationType:r,standardDeviationInterval:u})}function D(e,n){let t=e.classBreaks;const i=t.length,l=t[0]?.minValue,r=t[i-1]?.maxValue,a="standard-deviation"===n,o=c;return t=t.map((e=>{const n=e.label,t={minValue:e.minValue,maxValue:e.maxValue,label:n};if(a&&n){const e=n.match(o),i=e?.map((e=>+e.trim()))??[];2===i.length?(t.minStdDev=i[0],t.maxStdDev=i[1],i[0]<0&&i[1]>0&&(t.hasAvg=!0)):1===i.length&&(n.includes("<")?(t.minStdDev=null,t.maxStdDev=i[0]):n.includes(">")&&(t.minStdDev=i[0],t.maxStdDev=null))}return t})),{minValue:l,maxValue:r,classBreakInfos:t,normalizationTotal:e.normalizationTotal}}function M(e,n){const t=C(e,n);if(null==t.min&&null==t.max)return{bins:[],minValue:t.min,maxValue:t.max,normalizationTotal:n.normalizationTotal};const i=t.intervals,l=t.min??0,r=t.max??0,a=i.map(((e,n)=>({minValue:i[n][0],maxValue:i[n][1],count:0})));for(const n of e)if(null!=n&&n>=l&&n<=r){const e=$(i,n);e>-1&&a[e].count++}return{bins:a,minValue:l,maxValue:r,normalizationTotal:n.normalizationTotal}}function C(e,n){const{field:t,classificationMethod:i,standardDeviationInterval:l,normalizationType:r,normalizationField:a,normalizationTotal:o,minValue:s,maxValue:c}=n,f=n.numBins||u;let d=null,m=null,y=null;if(i&&"equal-interval"!==i||r){const{classBreaks:n}=N(e,{field:t,normalizationType:r,normalizationField:a,normalizationTotal:o,classificationMethod:i,standardDeviationInterval:l,minValue:s,maxValue:c,numClasses:f});d=n[0].minValue,m=n[n.length-1].maxValue,y=n.map((e=>[e.minValue,e.maxValue]))}else{if(null!=s&&null!=c)d=s,m=c;else{const n=g({values:e,minValue:s,maxValue:c,useSampleStdDev:!r,supportsNullCount:p({normalizationType:r,normalizationField:a,minValue:s,maxValue:c})});d=n.min??null,m=n.max??null}y=function(e,n,t){const i=(n-e)/t,l=[];let r,a=e;for(let e=1;e<=t;e++)r=a+i,r=Number(r.toFixed(16)),l.push([a,e===t?n:r]),a=r;return l}(d??0,m??0,f)}return{min:d,max:m,intervals:y}}function $(e,n){let t=-1;for(let i=e.length-1;i>=0;i--)if(n>=e[i][0]){t=i;break}return t}},59266:(e,n,t)=>{t.d(n,{LC:()=>s,WW:()=>u,Yi:()=>c,mz:()=>d,pp:()=>f}),t(66577);var i=t(20102),l=t(92604),r=t(82971);const a=l.Z.getLogger("esri.support.arcadeOnDemand");let o;function s(){return o||(o=(async()=>{const e=await Promise.all([t.e(7126),t.e(2437),t.e(9469),t.e(1423),t.e(7047),t.e(5049),t.e(8732),t.e(3729),t.e(3874),t.e(8275),t.e(3698),t.e(942)]).then(t.bind(t,20837));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),o}const u=(e,n,t)=>d.create(e,n,t,null,["$feature"],[]),c=(e,n,t)=>d.create(e,n,t,null,["$feature","$view"],[]),f=(e,n,t,i)=>d.create(e,n,t,i,["$feature","$view"],[]);class d{constructor(e,n,t,i,l,r,a){this.services=null,this.script=e,this.evaluate=i;const o=Array.isArray(r)?r:r.fields;this.fields=o,this._syntaxTree=t,this._arcade=n,this._arcadeFeature=l,this._spatialReference=a,this._referencesGeometry=n.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,n,t,l,o,u){const{arcade:c,Feature:f,Dictionary:m}=await s(),p=r.Z.fromJSON(n);let y;try{y=c.parseScript(e,u)}catch(n){return a.error(new i.Z("arcade-bad-expression","Failed to parse arcade script",{script:e,error:n})),null}const g=o.reduce(((e,n)=>({...e,[n]:null})),{});let h=null;null!=l&&(h=new m(l),h.immutable=!0,g.$config=null);const b=c.scriptUsesGeometryEngine(y),v=b&&c.enableGeometrySupport(),F=c.scriptUsesFeatureSet(y)&&c.enableFeatureSetSupport(),V=c.scriptIsAsync(y),T=V&&c.enableAsyncSupport(),x={vars:g,spatialReference:p,useAsync:!!T};await Promise.all([v,F,T]);const I=new Set;await c.loadDependentModules(I,y,null,V,b);const _=new m;_.immutable=!1,_.setField("scale",0);const w=c.compileScript(y,x);return new d(e,c,y,((e,n)=>("$view"in e&&e.$view&&(_.setField("scale","object"==typeof e.$view&&"scale"in e.$view?e.$view.scale:void 0),e.$view=_),h&&(e.$config=h),w({vars:e,spatialReference:p,services:n}))),new f,t,p)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}}}}]);
|