@arcgis/core 4.26.0-next.20230111 → 4.26.0-next.20230113
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/arcade/ArcadeDate.js +5 -0
- package/arcade/Dictionary.js +1 -1
- package/arcade/Feature.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/arcadeTimeUtils.js +5 -0
- package/arcade/executionError.js +1 -1
- package/arcade/featureset/actions/Adapted.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/featureset/support/FeatureSet.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcade/functions/date.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/arcade/functions/maths.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/arcade/treeAnalysis.js +1 -1
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{c9477250a5d5ebdef00c.js → 01cd5a9cd4cb1f13691c.js} +1 -1
- package/assets/esri/core/workers/chunks/028f9a133104e78e60d2.js +1 -0
- package/assets/esri/core/workers/chunks/033e6ae5da6afebd993c.js +1 -0
- package/assets/esri/core/workers/chunks/05ab092987251d4a1242.js +1 -0
- package/assets/esri/core/workers/chunks/1186a56dacaf269d5271.js +1 -0
- package/assets/esri/core/workers/chunks/264e1c00936bcafb9a36.js +1 -0
- package/assets/esri/core/workers/chunks/2680392cef77d98ad097.js +1 -0
- package/assets/esri/core/workers/chunks/27ba1889fe9f1812389a.js +1165 -0
- package/assets/esri/core/workers/chunks/2dfb17fa5b6a5d239942.js +1 -0
- package/assets/esri/core/workers/chunks/2e3962506c353b562a88.js +1 -0
- package/assets/esri/core/workers/chunks/30ae4c22f6b8aab9f841.js +1 -0
- package/assets/esri/core/workers/chunks/329e512f210cb3e904f1.js +1 -0
- package/assets/esri/core/workers/chunks/3878efe67f43962b46f8.js +1 -0
- package/assets/esri/core/workers/chunks/3b6748f414437cc6cfde.js +1 -0
- package/assets/esri/core/workers/chunks/41d25407888326c91566.js +1 -0
- package/assets/esri/core/workers/chunks/493e2b00133682748e62.js +1 -0
- package/assets/esri/core/workers/chunks/4b2edcb8ef7fae4f7d28.js +1 -0
- package/assets/esri/core/workers/chunks/{c11d857dca43de2229fc.js → 4c085cee22ff64ce6d1f.js} +1 -1
- package/assets/esri/core/workers/chunks/4d8c53e961275b6a4ee1.js +1 -0
- package/assets/esri/core/workers/chunks/5049771eeffe208a9cb8.js +1 -0
- package/assets/esri/core/workers/chunks/{58d219ffd9dcc45bb0d1.js → 5191f80f2413ee92c875.js} +1 -1
- package/assets/esri/core/workers/chunks/5dfed65b615b33588488.js +1 -0
- package/assets/esri/core/workers/chunks/5e9869849d999aac5756.js +1 -0
- package/assets/esri/core/workers/chunks/6216cd8134703fd9d9b4.js +1 -0
- package/assets/esri/core/workers/chunks/62c8e43741f2d6141f00.js +1 -0
- package/assets/esri/core/workers/chunks/64f137358100a1c818f0.js +1 -0
- package/assets/esri/core/workers/chunks/6f5f81855985db7c1936.js +1 -0
- package/assets/esri/core/workers/chunks/6fba07833345b2d8d373.js +1 -0
- package/assets/esri/core/workers/chunks/{80c7726743baf9f54079.js → 7747ee359d357f6e5858.js} +1 -1
- package/assets/esri/core/workers/chunks/78fd609f334a29ef39dc.js +1 -0
- package/assets/esri/core/workers/chunks/798cd875d64182741364.js +1 -0
- package/assets/esri/core/workers/chunks/{9d247a46e0cfdad26273.js → 8176286f8dd055c8ae05.js} +1 -1
- package/assets/esri/core/workers/chunks/8530ac02c840c89cc1df.js +1 -0
- package/assets/esri/core/workers/chunks/8a69a9b5a04e7321740d.js +1 -0
- package/assets/esri/core/workers/chunks/8bd26c71e78698c16778.js +1 -0
- package/assets/esri/core/workers/chunks/8c12b82612f050492fef.js +1 -0
- package/assets/esri/core/workers/chunks/90653ef5e718bafd6960.js +1 -0
- package/assets/esri/core/workers/chunks/{418922fd99e733df023f.js → 9070aa0a94a9204ded1c.js} +1 -1
- package/assets/esri/core/workers/chunks/{2ac0d2164a1b49e6f057.js → 94633a9bb5fa4f4ba4de.js} +1 -1
- package/assets/esri/core/workers/chunks/969bb94d5bdc9da114e2.js +1 -0
- package/assets/esri/core/workers/chunks/9785dba81a6af339e35a.js +1 -0
- package/assets/esri/core/workers/chunks/99e16173584702577b80.js +1 -0
- package/assets/esri/core/workers/chunks/9aee6f171d4fbac941d9.js +1 -0
- package/assets/esri/core/workers/chunks/a194f90ffe13b3d448b0.js +1 -0
- package/assets/esri/core/workers/chunks/a53d194e3eede703a6df.js +1 -0
- package/assets/esri/core/workers/chunks/a605bf8bc29099ae1b1a.js +1 -0
- package/assets/esri/core/workers/chunks/ba7239089a04098e3619.js +1 -0
- package/assets/esri/core/workers/chunks/bd2fe663a2b090b134e9.js +1 -0
- package/assets/esri/core/workers/chunks/c16003307aad2f84ac51.js +1 -0
- package/assets/esri/core/workers/chunks/c6eb6a97ecc6ed9ce713.js +1 -0
- package/assets/esri/core/workers/chunks/c81d898f4aef6ecacdb5.js +1 -0
- package/assets/esri/core/workers/chunks/cb83480d7074f6185e21.js +1 -0
- package/assets/esri/core/workers/chunks/cd0fa942d57a278b0a44.js +1 -0
- package/assets/esri/core/workers/chunks/d55332e4d7b8184fd718.js +1 -0
- package/assets/esri/core/workers/chunks/d6842acbfa7a39f3ca30.js +1 -0
- package/assets/esri/core/workers/chunks/d798bd544433e932f772.js +1 -0
- package/assets/esri/core/workers/chunks/e18851e915cb69f53032.js +1 -0
- package/assets/esri/core/workers/chunks/{54899827baea77776fc7.js → ea1054116ec842a4f813.js} +1 -1
- package/assets/esri/core/workers/chunks/ed1312c2627c0d7e654d.js +1 -0
- package/assets/esri/core/workers/chunks/f2750a7b44e8bc8b1e4c.js +1 -0
- package/assets/esri/themes/base/widgets/_Editor.scss +1 -11
- package/assets/esri/themes/base/widgets/_ItemList.scss +0 -13
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ar.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_bg.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_bs.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ca.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_cs.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_da.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_de.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_el.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_es.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_et.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_fi.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_fr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_he.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_hr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_hu.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_id.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_it.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ja.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ko.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_lt.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_lv.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_nb.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_nl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pt-BR.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pt-PT.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ro.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ru.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sk.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sv.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_th.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_tr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_uk.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_vi.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-CN.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-HK.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-TW.json +1 -1
- package/chunks/ComponentShader.glsl.js +1 -1
- package/chunks/Path.glsl.js +1 -1
- package/chunks/Terrain.glsl.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/geometry/support/MeshTexture.js +1 -1
- package/geometry/support/aaBoundingBox.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/interfaces.d.ts +1400 -1314
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/data/FeatureStore.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/timeSupport.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/graphics/sources/WFSSourceWorker.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/support/layerOriginUtils.js +1 -1
- package/layers/support/rasterFormats/JpgPlus.js +1 -1
- package/layers/support/rasterFormats/TiffDecoder.js +1 -1
- package/layers/support/rasterFunctions/ConvolutionFunction.js +1 -1
- package/layers/support/rasterFunctions/ConvolutionFunctionArguments.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/layers/support/rasterFunctions/NDVIFunctionArguments.js +1 -1
- package/layers/support/rasterFunctions/SlopeFunctionArguments.js +1 -1
- package/layers/support/rasterFunctions/StatisticsHistogramFunction.js +5 -0
- package/layers/support/rasterFunctions/{StatisticsHistogramsFunctionArguments.js → StatisticsHistogramFunctionArguments.js} +1 -1
- package/layers/support/rasterFunctions/rasterFunctionHelper.js +1 -1
- package/package.json +1 -1
- package/rest/imageService.js +1 -1
- package/rest/support/BaseImageMeasureResult.d.ts +4 -0
- package/rest/support/ImageAreaParameters.d.ts +4 -0
- package/rest/support/{ImageMeasureAreaAndPerimeterParameters.js → ImageAreaParameters.js} +1 -1
- package/rest/support/ImageAreaResult.d.ts +4 -0
- package/rest/support/{ImageMeasureAreaAndPerimeterResult.js → ImageAreaResult.js} +1 -1
- package/rest/support/ImageDistanceParameters.d.ts +4 -0
- package/rest/support/{ImageMeasureDistanceAndAngleParameters.js → ImageDistanceParameters.js} +1 -1
- package/rest/support/ImageDistanceResult.d.ts +4 -0
- package/rest/support/ImageDistanceResult.js +5 -0
- package/rest/support/ImageHeightParameters.d.ts +4 -0
- package/rest/support/{ImageMeasureHeightParameters.js → ImageHeightParameters.js} +1 -1
- package/rest/support/ImageHeightResult.d.ts +4 -0
- package/rest/support/{ImageMeasureHeightResult.js → ImageHeightResult.js} +1 -1
- package/rest/support/ImagePointParameters.d.ts +4 -0
- package/rest/support/{ImageMeasurePointParameters.js → ImagePointParameters.js} +1 -1
- package/rest/support/ImagePointResult.d.ts +4 -0
- package/rest/support/{ImageMeasurePointResult.js → ImagePointResult.js} +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/time/timeReferenceUtils.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureStore2D.js +1 -1
- package/views/2d/layers/features/Pipeline.js +1 -1
- package/views/2d/layers/features/support/BinStore.js +1 -1
- package/views/2d/layers/features/support/ClusterStore.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/glTF/internal/Resource.js +1 -1
- package/views/3d/glTF/internal/resourceUtils.js +5 -0
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SQueryFeatureStore.js +1 -1
- package/views/3d/state/ViewState.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/terrain/Overlay.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/AnimationTimeStep.js +5 -0
- package/views/3d/webgl-engine/lib/AnimationTimer.js +1 -1
- package/views/3d/webgl-engine/lib/GLMaterial.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +5 -0
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/Texture.js +1 -1
- package/views/3d/webgl-engine/lib/basicInterfaces.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/draw/support/layerUtils.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/FeatureTemplates/ItemList.js +1 -1
- package/widgets/FeatureTemplates/TemplateItem.js +1 -1
- package/widgets/FeatureTemplates/TemplateItemGroup.js +1 -1
- package/widgets/FeatureTemplates.js +1 -1
- package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
- package/widgets/support/decorators/accessibleHandler.js +1 -1
- package/assets/esri/core/workers/chunks/038dc3f9ef06ef3c960c.js +0 -1
- package/assets/esri/core/workers/chunks/078a0b134210167b629d.js +0 -1
- package/assets/esri/core/workers/chunks/080a4be417be4943f6a0.js +0 -1
- package/assets/esri/core/workers/chunks/0877bab7c03a1de2e713.js +0 -1
- package/assets/esri/core/workers/chunks/0c9200ab19fd2f56f87f.js +0 -1
- package/assets/esri/core/workers/chunks/1cbffa96ea6683e5f3ec.js +0 -1
- package/assets/esri/core/workers/chunks/1f742c3b11c76814fa4d.js +0 -1
- package/assets/esri/core/workers/chunks/2eb2d49c549e53934b8b.js +0 -1
- package/assets/esri/core/workers/chunks/332494b96a47b378f4e0.js +0 -1
- package/assets/esri/core/workers/chunks/3326536d183a858a2a4d.js +0 -1
- package/assets/esri/core/workers/chunks/3f4fc8379fc11bc293cc.js +0 -1
- package/assets/esri/core/workers/chunks/43fecd621cd043f64828.js +0 -1165
- package/assets/esri/core/workers/chunks/47b0b660f5412097fe26.js +0 -1
- package/assets/esri/core/workers/chunks/4c0d7a074083aa9614bb.js +0 -1
- package/assets/esri/core/workers/chunks/594d7e871b648d5c9662.js +0 -1
- package/assets/esri/core/workers/chunks/680b90ac98e8d1ac0e33.js +0 -1
- package/assets/esri/core/workers/chunks/6b589f47cb4731df1639.js +0 -1
- package/assets/esri/core/workers/chunks/72557c4b1582aa18ad4d.js +0 -1
- package/assets/esri/core/workers/chunks/72b490ad371e0c2264f6.js +0 -1
- package/assets/esri/core/workers/chunks/75ce17cf13aab0440572.js +0 -1
- package/assets/esri/core/workers/chunks/75f4e884a1a0aedc0afd.js +0 -1
- package/assets/esri/core/workers/chunks/7b9ab3fb378172831c14.js +0 -1
- package/assets/esri/core/workers/chunks/7bef95b168303bdc4bf1.js +0 -1
- package/assets/esri/core/workers/chunks/803492088780e18de801.js +0 -1
- package/assets/esri/core/workers/chunks/89003e387684af5ebeac.js +0 -1
- package/assets/esri/core/workers/chunks/8f93026764a0cce0901b.js +0 -1
- package/assets/esri/core/workers/chunks/98350b6b95da62ef5f12.js +0 -1
- package/assets/esri/core/workers/chunks/a9cae0d386aa9c00f744.js +0 -1
- package/assets/esri/core/workers/chunks/ad65c24558098f21bbf3.js +0 -1
- package/assets/esri/core/workers/chunks/aef90ee3f0979a7acb38.js +0 -1
- package/assets/esri/core/workers/chunks/b68c7754b0220b194ecf.js +0 -1
- package/assets/esri/core/workers/chunks/c012317f045a74fdd79d.js +0 -1
- package/assets/esri/core/workers/chunks/cb42675e5b1c41634c63.js +0 -1
- package/assets/esri/core/workers/chunks/cb901033dd15b3b72025.js +0 -1
- package/assets/esri/core/workers/chunks/d398b6b8a6b0a95247de.js +0 -1
- package/assets/esri/core/workers/chunks/d447ebc944a9867f5a99.js +0 -1
- package/assets/esri/core/workers/chunks/daaabed988b6ea866350.js +0 -1
- package/assets/esri/core/workers/chunks/e048641971aef9dd4da9.js +0 -1
- package/assets/esri/core/workers/chunks/e3fd383aee378cbb0dae.js +0 -1
- package/assets/esri/core/workers/chunks/e967ffca641947212992.js +0 -1
- package/assets/esri/core/workers/chunks/e9c81eee503c1b112bad.js +0 -1
- package/assets/esri/core/workers/chunks/ea6cf948fe2de0242308.js +0 -1
- package/assets/esri/core/workers/chunks/ed5e71b45dfefcbb2da4.js +0 -1
- package/assets/esri/core/workers/chunks/ee50d5d0afe9bdccc84d.js +0 -1
- package/assets/esri/core/workers/chunks/ee91401507833875facc.js +0 -1
- package/assets/esri/core/workers/chunks/f7d40dd78ef116f5793b.js +0 -1
- package/assets/esri/core/workers/chunks/f8ab6e354834b9c0e857.js +0 -1
- package/assets/esri/core/workers/chunks/faea681c279486b7a5e7.js +0 -1
- package/layers/support/rasterFunctions/StatisticsHistogramsFunction.js +0 -5
- package/rest/support/ImageMeasureDistanceAndAngleResult.js +0 -5
- package/views/3d/support/animationUtils.js +0 -5
- package/views/3d/webgl-engine/lib/RenderStateFeature.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4150,6395,216],{3920:(e,t,r)=>{r.d(t,{p:()=>p,r:()=>d});var i=r(43697),a=r(15923),n=r(61247),o=r(5600),s=r(52011),l=r(72762);const p=e=>{let t=class extends e{destroy(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())}get handles(){return this._get("handles")||new n.Z}get updatingHandles(){return this._get("updatingHandles")||new l.t}};return(0,i._)([(0,o.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,i._)([(0,o.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,i._)([(0,s.j)("esri.core.HandleOwner")],t),t};let d=class extends(p(a.Z)){};d=(0,i._)([(0,s.j)("esri.core.HandleOwner")],d)},42033:(e,t,r)=>{r.d(t,{E:()=>a,_:()=>n});var i=r(70586);async function a(e,t){const{WhereClause:i}=await r.e(1534).then(r.bind(r,41534));return i.create(e,t)}function n(e,t){return(0,i.pC)(e)?(0,i.pC)(t)?`(${e}) AND (${t})`:e:t}},72762:(e,t,r)=>{r.d(t,{t:()=>u});var i=r(43697),a=r(15923),n=r(61247),o=r(70586),s=r(17445),l=r(1654),p=r(5600),d=r(52011);let u=class extends a.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new n.Z,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(e,t,r={}){return this._installWatch(e,t,r,s.YP)}addWhen(e,t,r={}){return this._installWatch(e,t,r,s.gx)}addOnCollectionChange(e,t,{initial:r=!1,final:i=!1}={}){const a=++this._handleId;return this._handles.add([(0,s.on)(e,"after-changes",this._createSyncUpdatingCallback(),s.Z_),(0,s.on)(e,"change",t,{onListenerAdd:r?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:i?e=>t({added:[],removed:e.toArray()}):void 0})],a),{remove:()=>this._handles.remove(a)}}addPromise(e){if((0,o.Wi)(e))return e;const t=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this._handles.has(c)||this._set("updating",!1))}},t),this._pendingPromises.add(e),this._set("updating",!0);const r=()=>this._handles.remove(t);return e.then(r,r),e}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(e,t,r={},i){const a=++this._handleId;r.sync||this._installSyncUpdatingWatch(e,a);const n=i(e,t,r);return this._handles.add(n,a),{remove:()=>this._handles.remove(a)}}_installSyncUpdatingWatch(e,t){const r=this._createSyncUpdatingCallback(),i=(0,s.YP)(e,r,{sync:!0,equals:()=>!1});return this._handles.add(i,t),i}_createSyncUpdatingCallback(){return()=>{this._handles.remove(c),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add((0,l.Os)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove(c))})),c)}}};(0,i._)([(0,p.Cb)({readOnly:!0})],u.prototype,"updating",void 0),u=(0,i._)([(0,d.j)("esri.core.support.WatchUpdatingTracking")],u);const c=-42},51806:(e,t,r)=>{r.d(t,{aX:()=>x});var i=r(68773),a=r(20102),n=r(92604),o=r(70586),s=r(38913),l=r(58901),p=r(82971),d=r(33955);const u={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new l.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:p.Z.WebMercator}),minus180Line:new l.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:p.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new l.Z({paths:[[[180,-180],[180,180]]],spatialReference:p.Z.WGS84}),minus180Line:new l.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:p.Z.WGS84})}};function c(e,t){return Math.ceil((e-t)/(2*t))}function y(e,t){const r=m(e);for(const e of r)for(const r of e)r[0]+=t;return e}function m(e){return(0,d.oU)(e)?e.rings:e.paths}var h=r(8744),f=r(40488),g=(r(66577),r(3172)),S=r(11282),T=r(17452);const C=n.Z.getLogger("esri.geometry.support.normalizeUtils");function b(e){return"polygon"===e[0].type}function w(e){return"polyline"===e[0].type}function A(e,t,r){if(t){const t=function(e,t){if(!(e instanceof l.Z||e instanceof s.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw C.error(e),new a.Z(e)}const r=m(e),i=[];for(const e of r){const r=[];i.push(r),r.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const a=e[i][0],n=e[i][1],o=e[i+1][0],s=e[i+1][1],l=Math.sqrt((o-a)*(o-a)+(s-n)*(s-n)),p=(s-n)/l,d=(o-a)/l,u=l/t;if(u>1){for(let e=1;e<=u-1;e++){const i=e*t,o=d*i+a,s=p*i+n;r.push([o,s])}const e=(l+Math.floor(u-1)*t)/2,i=d*e+a,o=p*e+n;r.push([i,o])}r.push([o,s])}}return function(e){return"polygon"===e.type}(e)?new s.Z({rings:i,spatialReference:e.spatialReference}):new l.Z({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,f.Sx)(t,!0)}return r&&(e=y(e,r)),e}function _(e,t,r){if(Array.isArray(e)){const i=e[0];if(i>t){const r=c(i,t);e[0]=i+r*(-2*t)}else if(i<r){const t=c(i,r);e[0]=i+t*(-2*r)}}else{const i=e.x;if(i>t){const r=c(i,t);e=e.clone().offset(r*(-2*t),0)}else if(i<r){const t=c(i,r);e=e.clone().offset(t*(-2*r),0)}}return e}function v(e,t){let r=-1;for(let i=0;i<t.cutIndexes.length;i++){const a=t.cutIndexes[i],n=t.geometries[i],o=m(n);for(let e=0;e<o.length;e++){const t=o[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const i=t[e][0];r=i>r?i:r}r=Number(r.toFixed(9));const i=-360*c(r,180);for(let r=0;r<t.length;r++){const t=n.getPoint(e,r);n.setPoint(e,r,t.clone().offset(i,0))}return!0}}))}if(a===r){if(b(e))for(const t of m(n))e[a]=e[a].addRing(t);else if(w(e))for(const t of m(n))e[a]=e[a].addPath(t)}else r=a,e[a]=n}return e}async function x(e,t,r){if(!Array.isArray(e))return x([e],t);t&&"string"!=typeof t&&C.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const a="string"==typeof t?t:t?.url??i.Z.geometryServiceUrl;let n,p,m,b,w,M,E,O,R=0;const N=[],Z=[];for(const t of e)if((0,o.Wi)(t))Z.push(t);else if(n||(n=t.spatialReference,p=(0,h.C5)(n),m=n.isWebMercator,M=m?102100:4326,b=u[M].maxX,w=u[M].minX,E=u[M].plus180Line,O=u[M].minus180Line),p)if("mesh"===t.type)Z.push(t);else if("point"===t.type)Z.push(_(t.clone(),b,w));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>_(e,b,w))),Z.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,p);Z.push(e.rings?new s.Z(e):e)}else if(t.extent){const e=t.extent,r=c(e.xmin,w)*(2*b);let i=0===r?t.clone():y(t.clone(),r);e.offset(r,0),e.intersects(E)&&e.xmax!==b?(R=e.xmax>R?e.xmax:R,i=A(i,m),N.push(i),Z.push("cut")):e.intersects(O)&&e.xmin!==w?(R=e.xmax*(2*b)>R?e.xmax*(2*b):R,i=A(i,m,360),N.push(i),Z.push("cut")):Z.push(i)}else Z.push(t.clone());else Z.push(t);let P=c(R,b),G=-90;const k=P,I=new l.Z;for(;P>0;){const e=360*P-180;I.addPath([[e,G],[e,-1*G]]),G*=-1,P--}if(N.length>0&&k>0){const t=v(N,await async function(e,t,r,i){const a=(0,S.en)(e),n=t[0].spatialReference,o={...i,query:{...a.query,f:"json",sr:JSON.stringify(n),target:JSON.stringify({geometryType:(0,d.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},s=await(0,g.default)(a.path+"/cut",o),{cutIndexes:l,geometries:p=[]}=s.data;return{cutIndexes:l,geometries:p.map((e=>{const t=(0,d.im)(e);return t.spatialReference=n,t}))}}(a,N,I,r)),i=[],n=[];for(let r=0;r<Z.length;r++){const a=Z[r];if("cut"!==a)n.push(a);else{const a=t.shift(),s=e[r];(0,o.pC)(s)&&"polygon"===s.type&&s.rings&&s.rings.length>1&&a.rings.length>=s.rings.length?(i.push(a),n.push("simplify")):n.push(m?(0,f.$)(a):a)}}if(!i.length)return n;const s=await async function(e,t,r){const i="string"==typeof e?(0,T.mN)(e):e,a=t[0].spatialReference,n=(0,d.Ji)(t[0]),o={...r,query:{...i.query,f:"json",sr:a.wkid?a.wkid:JSON.stringify(a),geometries:JSON.stringify((l=t,{geometryType:(0,d.Ji)(l[0]),geometries:l.map((e=>e.toJSON()))}))}},{data:s}=await(0,g.default)(i.path+"/simplify",o);var l;return function(e,t,r){const i=(0,d.q9)(t);return e.map((e=>{const t=i.fromJSON(e);return t.spatialReference=r,t}))}(s.geometries,n,a)}(a,i,r),l=[];for(let e=0;e<n.length;e++){const t=n[e];"simplify"!==t?l.push(t):l.push(m?(0,f.$)(s.shift()):s.shift())}return l}const L=[];for(let e=0;e<Z.length;e++){const t=Z[e];if("cut"!==t)L.push(t);else{const e=N.shift();L.push(!0===m?(0,f.$)(e):e)}}return L}},69285:(e,t,r)=>{r.d(t,{k:()=>o});var i=r(70586),a=r(67900),n=r(8744);function o(e,t,r){if((0,i.Wi)(t)||(0,i.Wi)(r)||r.vcsWkid||(0,n.fS)(t,r))return null;const o=(0,a._R)(t)/(0,a._R)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},62128:(e,t,r)=>{r.r(t),r.d(t,{default:()=>$});var i=r(43697),a=(r(66577),r(38171)),n=(r(9790),r(46791)),o=r(20102),s=r(22974),l=r(70586),p=r(16453),d=r(78286),u=r(20941),c=r(5600),y=r(75215),m=r(71715),h=r(52011),f=r(30556),g=r(44547),S=r(24470),T=r(51806),C=r(8744),b=r(19238),w=(r(67676),r(70921)),A=r(3920);r(80442),r(92604);let _=class extends((0,A.p)(n.Z)){constructor(e){super(e),this.handles.add([this.on("before-add",(e=>{(0,l.Wi)(e.item)&&e.preventDefault()})),this.on("after-add",(e=>this._own(e.item))),this.on("after-remove",(e=>this._release(e.item)))])}get owner(){return this._get("owner")}set owner(e){e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(n.Z.ofType(this.itemType.Type))(e):new n.Z(e)}};(0,i._)([(0,c.Cb)()],_.prototype,"owner",null),_=(0,i._)([(0,h.j)("esri.core.support.OwningCollection")],_);var v=r(87085),x=r(71612),M=r(72965),E=r(52421);let O=class extends _{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,i._)([(0,E.c)({Type:a.Z,ensureType:(0,y.se)(a.Z)})],O.prototype,"itemType",void 0),O=(0,i._)([(0,h.j)("esri.support.GraphicsCollection")],O);var R=r(86787);let N=class extends((0,x.h)((0,M.M)(v.Z))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new O,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}on(e,t){return super.on(e,t)}graphicChanged(e){this.emit("graphic-update",e)}};var Z,P;(0,i._)([(0,c.Cb)({type:R.Z})],N.prototype,"elevationInfo",void 0),(0,i._)([(0,c.Cb)((Z=O,P="graphics",{type:Z,cast:w.R,set(e){const t=(0,w.Z)(e,this._get(P),Z);t.owner=this,this._set(P,t)}}))],N.prototype,"graphics",void 0),(0,i._)([(0,c.Cb)({type:["show","hide"]})],N.prototype,"listMode",void 0),(0,i._)([(0,c.Cb)()],N.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],N.prototype,"type",void 0),(0,i._)([(0,c.Cb)({constructOnly:!0})],N.prototype,"internal",void 0),N=(0,i._)([(0,h.j)("esri.layers.GraphicsLayer")],N);const G=N;var k=r(92908),I=r(38009),L=r(16859),j=r(1231),F=r(20256),z=r(4095),U=r(77987),J=r(78724),W=r(82971),D=r(6570);function q(e){return"markup"===e.featureCollectionType||e.layers.some((e=>null!=e.layerDefinition.visibilityField||!Q(e)))}function Q({layerDefinition:e,featureSet:t}){const r=e.geometryType??t.geometryType;return X.find((t=>r===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type))}function B(){return new D.Z({xmin:-180,ymin:-90,xmax:180,ymax:90})}const H=new j.Z({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),K=new j.Z({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0});let V=class extends G{constructor(e){super(e),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer;this.graphics.on("after-add",(e=>{e.item.sourceLayer=this.layer})),this.graphics.on("after-remove",(e=>{e.item.sourceLayer=null}))}get fullExtent(){const e=this.layer?.spatialReference,t=this.fullBounds;return e?(0,l.Wi)(t)?(0,g.dz)(B(),e).geometry:(0,S.HH)(t,e):null}get fullBounds(){const e=this.layer?.spatialReference;if(!e)return null;const t=(0,S.cS)();return this.graphics.forEach((r=>{const i=(0,l.pC)(r.geometry)?(0,g.dz)(r.geometry,e).geometry:null;(0,l.pC)(i)&&(0,S.jn)(t,"point"===i.type?i:i.extent,t)})),(0,S.fS)(t,S.Gv)?null:t}get sublayers(){return this.graphics}};(0,i._)([(0,c.Cb)({readOnly:!0})],V.prototype,"fullExtent",null),(0,i._)([(0,c.Cb)({readOnly:!0})],V.prototype,"fullBounds",null),(0,i._)([(0,c.Cb)({readOnly:!0})],V.prototype,"sublayers",null),(0,i._)([(0,c.Cb)()],V.prototype,"layer",void 0),(0,i._)([(0,c.Cb)()],V.prototype,"layerId",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],V.prototype,"visibilityMode",void 0),V=(0,i._)([(0,h.j)("esri.layers.MapNotesLayer.MapNotesSublayer")],V);const X=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new F.Z).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new z.Z).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new U.Z).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new U.Z).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new J.Z).toJSON()}];let Y=class extends((0,x.h)((0,M.M)((0,I.q)((0,L.I)((0,p.R)(v.Z)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.listMode="hide-children",this.minScale=0,this.maxScale=0,this.spatialReference=W.Z.WGS84,this.sublayers=new n.Z(X.map((e=>new V({id:e.id,layerId:e.layerId,title:e.title,layer:this})))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,r){return{operations:{supportsMapNotesEditing:!q(t)&&"portal-item"!==r?.origin}}}readFeatureCollections(e,t,r){if(!q(t))return null;const i=t.layers.map((e=>{const t=new b.default;return t.read(e,r),t}));return new n.Z({items:i})}readLegacyfeatureCollectionJSON(e,t){return q(t)?(0,s.d9)(t.featureCollection):null}get fullExtent(){const e=this.spatialReference,t=(0,S.cS)();return(0,l.pC)(this.sublayers)?this.sublayers.forEach((({fullBounds:e})=>(0,l.pC)(e)?(0,S.jn)(t,e,t):t),t):this.featureCollectionJSON?.layers.some((e=>e.layerDefinition.extent))&&this.featureCollectionJSON.layers.forEach((r=>{const i=(0,g.dz)(r.layerDefinition.extent,e).geometry;(0,l.pC)(i)&&(0,S.jn)(t,i,t)})),(0,S.fS)(t,S.Gv)?(0,g.dz)(B(),e).geometry:(0,S.HH)(t,e)}readMinScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?W.Z.fromJSON(t.layers[0].layerDefinition.spatialReference):W.Z.WGS84}readSublayers(e,t,r){if(q(t))return null;const i=[];let o=t.layers.reduce(((e,t)=>Math.max(e,t.layerDefinition.id??-1)),-1)+1;for(const e of t.layers){const{layerDefinition:t,featureSet:r}=e,n=t.id??o++,s=Q(e);if((0,l.pC)(s)){const e=new V({id:s.id,title:t.name,layerId:n,layer:this,graphics:r.features.map((({geometry:e,symbol:t,attributes:r,popupInfo:i})=>a.Z.fromJSON({attributes:r,geometry:e,symbol:t,popupTemplate:i})))});i.push(e)}}return new n.Z(i)}writeSublayers(e,t,r,i){const{minScale:a,maxScale:n}=this;if((0,l.Wi)(e))return;const s=e.some((e=>e.graphics.length>0));if(!this.capabilities.operations.supportsMapNotesEditing)return void(s&&i?.messages?.push(new o.Z("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer")));const p=[];let u=this.spatialReference.toJSON();e:for(const t of e)for(const e of t.graphics)if((0,l.pC)(e.geometry)){u=e.geometry.spatialReference.toJSON();break e}for(const t of X){const r=e.find((e=>t.id===e.id));this._writeMapNoteSublayer(p,r,t,a,n,u,i)}(0,d.RB)("featureCollection.layers",p,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,s.d9)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async beforeSave(){if((0,l.Wi)(this.sublayers))return;let e=null;const t=[];for(const r of this.sublayers)for(const i of r.graphics)if((0,l.pC)(i.geometry)){const r=i.geometry;e?(0,C.fS)(r.spatialReference,e)||((0,g.Up)(r.spatialReference,e)||(0,g.kR)()||await(0,g.zD)(),i.geometry=(0,g.iV)(r,e)):e=r.spatialReference,t.push(i)}const r=await(0,T.aX)(t.map((e=>e.geometry)));t.forEach(((e,t)=>e.geometry=r[t]))}_findSublayer(e){return(0,l.Wi)(this.sublayers)?null:this.sublayers?.find((t=>t.id===e))??null}_writeMapNoteSublayer(e,t,r,i,a,n,o){const p=[];if(!(0,l.Wi)(t)){for(const e of t.graphics)this._writeMapNote(p,e,r.geometryType,o);this._normalizeObjectIds(p,H),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,s.d9)(r.identifyingSymbol)}},id:t.layerId,geometryType:r.geometryTypeJSON,minScale:i,maxScale:a,objectIdField:"OBJECTID",fields:[H.toJSON(),K.toJSON()],spatialReference:n},featureSet:{features:p,geometryType:r.geometryTypeJSON}})}}_writeMapNote(e,t,r,i){if((0,l.Wi)(t))return;const{geometry:a,symbol:n,popupTemplate:o}=t;if((0,l.Wi)(a))return;if(a.type!==r)return void i?.messages?.push(new u.Z("map-notes-layer:invalid-geometry-type",`Geometry "${a.type}" cannot be saved in "${r}" layer`,{graphic:t}));if((0,l.Wi)(n))return void i?.messages?.push(new u.Z("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t}));const s={attributes:{...t.attributes},geometry:a.toJSON(),symbol:n.toJSON()};(0,l.pC)(o)&&(s.popupInfo=o.toJSON()),e.push(s)}_normalizeObjectIds(e,t){const r=t.name;let i=(0,k.S)(r,e)+1;const a=new Set;for(const t of e){t.attributes||(t.attributes={});const{attributes:e}=t;(null==e[r]||a.has(e[r]))&&(e[r]=i++),a.add(e[r])}}};(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"capabilities",void 0),(0,i._)([(0,m.r)(["portal-item","web-map"],"capabilities",["layers"])],Y.prototype,"readCapabilities",null),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"featureCollections",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"featureCollections",["layers"])],Y.prototype,"readFeatureCollections",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],Y.prototype,"featureCollectionJSON",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],Y.prototype,"readLegacyfeatureCollectionJSON",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],Y.prototype,"featureCollectionType",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"fullExtent",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],Y.prototype,"legendEnabled",void 0),(0,i._)([(0,c.Cb)({type:["show","hide","hide-children"]})],Y.prototype,"listMode",void 0),(0,i._)([(0,c.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],Y.prototype,"minScale",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"minScale",["layers"])],Y.prototype,"readMinScale",null),(0,i._)([(0,c.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],Y.prototype,"maxScale",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"maxScale",["layers"])],Y.prototype,"readMaxScale",null),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"multipointLayer",null),(0,i._)([(0,c.Cb)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],Y.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"pointLayer",null),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"polygonLayer",null),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"polylineLayer",null),(0,i._)([(0,c.Cb)({type:W.Z})],Y.prototype,"spatialReference",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"spatialReference",["layers"])],Y.prototype,"readSpatialReference",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],Y.prototype,"sublayers",void 0),(0,i._)([(0,m.r)("web-map","sublayers",["layers"])],Y.prototype,"readSublayers",null),(0,i._)([(0,f.c)("web-map","sublayers")],Y.prototype,"writeSublayers",null),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"textLayer",null),(0,i._)([(0,c.Cb)()],Y.prototype,"title",void 0),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],Y.prototype,"type",void 0),Y=(0,i._)([(0,h.j)("esri.layers.MapNotesLayer")],Y);const $=Y},92908:(e,t,r)=>{r.d(t,{S:()=>a,X:()=>i});const i=1;function a(e,t){let r=0;for(const i of t){const t=i.attributes?.[e];"number"==typeof t&&isFinite(t)&&(r=Math.max(r,t))}return r}},54295:(e,t,r)=>{r.d(t,{V:()=>o});var i=r(43697),a=r(5600),n=(r(75215),r(67676),r(52011));const o=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i._)([(0,a.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,i._)([(0,n.j)("esri.layers.mixins.APIKeyMixin")],t),t}},17287:(e,t,r)=>{r.d(t,{Y:()=>p});var i=r(43697),a=r(92604),n=r(70586),o=r(5600),s=(r(75215),r(67676),r(52011)),l=r(66677);const p=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.Qc)(this.url);if((0,n.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Nm)(e,a.Z.getLogger(this.declaredClass)))}};return(0,i._)([(0,o.Cb)()],t.prototype,"title",null),(0,i._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,s.j)("esri.layers.mixins.ArcGISService")],t),t}},70082:(e,t,r)=>{r.d(t,{Z:()=>u});var i=r(43697),a=r(2368),n=r(35454),o=r(96674),s=r(5600),l=(r(75215),r(67676),r(52011));const p=new n.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let d=class extends((0,a.J)(o.wq)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"name",void 0),(0,i._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"description",void 0),(0,i._)([(0,s.Cb)({json:{read:p.read,write:p.write}})],d.prototype,"drawingTool",void 0),(0,i._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"prototype",void 0),(0,i._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"thumbnail",void 0),d=(0,i._)([(0,l.j)("esri.layers.support.FeatureTemplate")],d);const u=d},16451:(e,t,r)=>{r.d(t,{Z:()=>y});var i=r(43697),a=r(2368),n=r(96674),o=r(5600),s=(r(75215),r(67676),r(71715)),l=r(52011),p=r(30556),d=r(72729),u=r(70082);let c=class extends((0,a.J)(n.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,d.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,o.Cb)({json:{write:!0}})],c.prototype,"id",void 0),(0,i._)([(0,o.Cb)({json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,o.Cb)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i._)([(0,s.r)("domains")],c.prototype,"readDomains",null),(0,i._)([(0,p.c)("domains")],c.prototype,"writeDomains",null),(0,i._)([(0,o.Cb)({type:[u.Z],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i._)([(0,l.j)("esri.layers.support.FeatureType")],c);const y=c},56765:(e,t,r)=>{r.d(t,{Z:()=>d});var i,a=r(43697),n=r(46791),o=r(96674),s=r(5600),l=(r(75215),r(67676),r(52011));let p=i=class extends o.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.Z}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,a._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"floorField",void 0),(0,a._)([(0,s.Cb)({json:{read:!1,write:!1}})],p.prototype,"viewAllMode",void 0),(0,a._)([(0,s.Cb)({json:{read:!1,write:!1}})],p.prototype,"viewAllLevelIds",void 0),p=i=(0,a._)([(0,l.j)("esri.layers.support.LayerFloorInfo")],p);const d=p},72064:(e,t,r)=>{r.d(t,{h:()=>u});var i=r(80442),a=r(70586),n=r(66677);const o={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function s(e,t,r){return!!(e&&e.hasOwnProperty(t)?e[t]:r)}function l(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}function p(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function d(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}function u(e,t){return{analytics:c(e),attachment:y(e),data:m(e),metadata:h(e),operations:f(e.capabilities,e,t),query:g(e,t),queryRelated:S(e),queryTopFeatures:T(e),editing:C(e)}}function c(e){return{supportsCacheHint:d(e.advancedQueryCapabilities,"queryAnalytics")}}function y(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:d(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:s(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=o[e.name];t&&(r[t]=!!e.isEnabled)})),r}function m(e){return{isVersioned:s(e,"isDataVersioned",!1),supportsAttachment:s(e,"hasAttachments",!1),supportsM:s(e,"hasM",!1),supportsZ:s(e,"hasZ",!1)}}function h(e){return{supportsAdvancedFieldProperties:s(e,"supportsFieldDescriptionProperty",!1)}}function f(e,t,r){const i=e?e.toLowerCase().split(",").map((e=>e.trim())):[],o=r?(0,n.Qc)(r):null,l=i.includes((0,a.pC)(o)&&"MapServer"===o.serverType?"data":"query"),p=i.includes("editing")&&!t.datesInUnknownTimezone;let d=p&&i.includes("create"),u=p&&i.includes("delete"),c=p&&i.includes("update");const y=i.includes("changetracking"),m=t.advancedQueryCapabilities;return p&&!(d||u||c)&&(d=u=c=!0),{supportsCalculate:s(t,"supportsCalculate",!1),supportsTruncate:s(t,"supportsTruncate",!1),supportsValidateSql:s(t,"supportsValidateSql",!1),supportsAdd:d,supportsDelete:u,supportsEditing:p,supportsChangeTracking:y,supportsQuery:l,supportsQueryAnalytics:s(m,"supportsQueryAnalytic",!1),supportsQueryAttachments:s(m,"supportsQueryAttachments",!1),supportsQueryTopFeatures:s(m,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:s(t,"supportsAttachmentsResizing",!1),supportsSync:i.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:s(t,"supportsExceedsLimitStatistics",!1)}}function g(e,t){const r=e.advancedQueryCapabilities,a=e.ownershipBasedAccessControlForFeatures,o=e.archivingInfo,u=e.currentVersion,c=t?.includes("MapServer"),y=!c||u>=(0,i.Z)("mapserver-pbf-version-support"),m=(0,n.M8)(t),h=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{supportsStatistics:s(r,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:s(r,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:s(r,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:p(r),supportsCentroid:s(r,"supportsReturningGeometryCentroid",!1),supportsDistance:s(r,"supportsQueryWithDistance",!1),supportsDistinct:s(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:s(r,"supportsReturningQueryExtent",!1),supportsGeometryProperties:s(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:s(r,"supportsHavingClause",!1),supportsOrderBy:s(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:s(r,"supportsPagination",!1),supportsQuantization:s(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:s(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:s(e,"supportsReturningQueryGeometry",!1),supportsResultType:s(r,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:s(r,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:s(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:s(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:s(r,"supportsTopFeaturesQuery",!1),supportsQueryByOthers:s(a,"allowOthersToQuery",!0),supportsHistoricMoment:s(o,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:y&&h.has("pbf"),supportsDisjointSpatialRelationship:s(r,"supportsDisjointSpatialRel",!1),supportsCacheHint:s(r,"supportsQueryWithCacheHint",!1)||d(r,"query"),supportsDefaultSpatialReference:s(r,"supportsDefaultSR",!1),supportsCompactGeometry:m,supportsFullTextSearch:s(r,"supportsFullTextSearch",!1),maxRecordCountFactor:l(e,"maxRecordCountFactor",void 0),maxRecordCount:l(e,"maxRecordCount",void 0),standardMaxRecordCount:l(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:l(e,"tileMaxRecordCount",void 0)}}function S(e){const t=e.advancedQueryCapabilities,r=s(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:s(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:d(t,"queryRelated")}}function T(e){return{supportsCacheHint:d(e.advancedQueryCapabilities,"queryTopFilter")}}function C(e){const t=e.ownershipBasedAccessControlForFeatures;return{supportsGeometryUpdate:s(e,"allowGeometryUpdates",!0),supportsGlobalId:s(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:s(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:s(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:s(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:s(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:s(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:s(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:s(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:s(t,"allowOthersToUpdate",!0)}}},51706:(e,t,r)=>{var i,a;function n(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?i.Expression:e.field&&"string"==typeof e.field?i.Field:i.Unknown}function l(e,t){const r=t||s(e),n=e.valueUnit||"unknown";return r===i.Unknown?a.Constant:e.stops?a.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?a.ClampedLinear:"unknown"===n?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?a.Proportional:a.Additive:a.Identity:a.RealWorldSize}r.d(t,{PS:()=>s,QW:()=>l,RY:()=>i,hL:()=>a,iY:()=>n,qh:()=>o}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(i||(i={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(a||(a={}))},28694:(e,t,r)=>{r.d(t,{p:()=>n});var i=r(70586),a=r(69285);function n(e,t,r){if(!r||!r.features||!r.hasZ)return;const n=(0,a.k)(r.geometryType,t,e.outSpatialReference);if(!(0,i.Wi)(n))for(const e of r.features)n(e.geometry)}},56545:(e,t,r)=>{r.d(t,{Z:()=>c});var i,a=r(43697),n=r(96674),o=r(22974),s=r(5600),l=r(75215),p=r(52011),d=r(30556);let u=i=class extends n.wq{constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new i((0,o.d9)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,a._)([(0,s.Cb)({type:[String],json:{write:!0}})],u.prototype,"attachmentTypes",void 0),(0,a._)([(0,s.Cb)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],u.prototype,"attachmentsWhere",void 0),(0,a._)([(0,s.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"cacheHint",void 0),(0,a._)([(0,s.Cb)({type:[String],json:{write:!0}})],u.prototype,"keywords",void 0),(0,a._)([(0,s.Cb)({type:[Number],json:{write:!0}})],u.prototype,"globalIds",void 0),(0,a._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"name",void 0),(0,a._)([(0,s.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],u.prototype,"num",void 0),(0,a._)([(0,s.Cb)({type:[Number],json:{write:!0}})],u.prototype,"objectIds",void 0),(0,a._)([(0,s.Cb)({type:Boolean,json:{default:!1,write:!0}})],u.prototype,"returnMetadata",void 0),(0,a._)([(0,s.Cb)({type:[Number],json:{write:!0}})],u.prototype,"size",void 0),(0,a._)([(0,s.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],u.prototype,"start",void 0),(0,a._)([(0,d.c)("start"),(0,d.c)("num")],u.prototype,"writeStart",null),(0,a._)([(0,s.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],u.prototype,"where",void 0),u=i=(0,a._)([(0,p.j)("esri.rest.support.AttachmentQuery")],u),u.from=(0,l.se)(u);const c=u},74889:(e,t,r)=>{r.d(t,{Z:()=>C});var i,a=r(43697),n=r(66577),o=r(38171),s=r(35454),l=r(96674),p=r(22974),d=r(70586),u=r(5600),c=(r(75215),r(71715)),y=r(52011),m=r(30556),h=r(82971),f=r(33955),g=r(1231);const S=new s.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let T=i=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.Z.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const a=e[t],n=o.Z.fromJSON(a),s=a.geometry&&a.geometry.spatialReference;(0,d.pC)(n.geometry)&&!s&&(n.geometry.spatialReference=r);const l=a.aggregateGeometries,p=n.aggregateGeometries;if(l&&(0,d.pC)(p))for(const e in p){const t=p[e],i=l[e]?.spatialReference;(0,d.pC)(t)&&!i&&(t.spatialReference=r)}i.push(n)}return i}writeGeometryType(e,t,r,i){if(e)return void S.write(e,t,r,i);const{features:a}=this;if(a)for(const e of a)if(e&&(0,d.pC)(e.geometry))return void S.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,f.im)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.Z.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,d.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,p.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e&&e[r];i.geometry=t&&t.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,a]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((a-e)/r)));for(let e=0,t=n.length;e<t;e++)o?.((0,d.Wg)(n[e].geometry))||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,a],scale:[n,o]}=r,s=this._getHydrationFunction(e,(e=>e*n+i),(e=>a-e*o));for(const{geometry:e}of t)(0,d.pC)(e)&&s&&s(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,a;const n=[];for(let o=0,s=e.length;o<s;o++){const s=e[o];if(o>0){const e=t(s[0]),o=r(s[1]);e===i&&o===a||(n.push([e-i,o-a]),i=e,a=o)}else i=t(s[0]),a=r(s[1]),n.push([i,a])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.oU)(e)?e.rings:e.paths,a=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],o=this._quantizePoints(n,t,r);o&&a.push(o)}return a.length>0?((0,f.oU)(e)?e.rings=a:e.paths=a,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const i=(0,f.oU)(e)?e.rings:e.paths;let a,n;for(let e=0,o=i.length;e<o;e++){const o=i[e];for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(a+=i[0],n+=i[1]):(a=i[0],n=i[1]),i[0]=t(a),i[1]=r(n)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const i=e.points;let a,n;for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(a+=o[0],n+=o[1]):(a=o[0],n=o[1]),o[0]=t(a),o[1]=r(n)}}:null}};(0,a._)([(0,u.Cb)({type:String,json:{write:!0}})],T.prototype,"displayFieldName",void 0),(0,a._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],T.prototype,"exceededTransferLimit",void 0),(0,a._)([(0,u.Cb)({type:[o.Z],json:{write:!0}})],T.prototype,"features",void 0),(0,a._)([(0,c.r)("features")],T.prototype,"readFeatures",null),(0,a._)([(0,u.Cb)({type:[g.Z],json:{write:!0}})],T.prototype,"fields",void 0),(0,a._)([(0,u.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:S.read}}})],T.prototype,"geometryType",void 0),(0,a._)([(0,m.c)("geometryType")],T.prototype,"writeGeometryType",null),(0,a._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],T.prototype,"hasM",void 0),(0,a._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],T.prototype,"hasZ",void 0),(0,a._)([(0,u.Cb)({types:n.qM,json:{write:!0}})],T.prototype,"queryGeometry",void 0),(0,a._)([(0,c.r)("queryGeometry")],T.prototype,"readQueryGeometry",null),(0,a._)([(0,u.Cb)({type:h.Z,json:{write:!0}})],T.prototype,"spatialReference",void 0),(0,a._)([(0,m.c)("spatialReference")],T.prototype,"writeSpatialReference",null),(0,a._)([(0,u.Cb)({json:{write:!0}})],T.prototype,"transform",void 0),T=i=(0,a._)([(0,y.j)("esri.rest.support.FeatureSet")],T),T.prototype.toJSON.isDefaultToJSON=!0;const C=T},11282:(e,t,r)=>{r.d(t,{cv:()=>s,en:()=>o,lA:()=>n}),r(68773),r(40330);var i=r(22974),a=r(17452);function n(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function o(e){return"string"==typeof e?(0,a.mN)(e):(0,i.d9)(e)}function s(e,t,r){const i={};for(const a in e){if("declaredClass"===a)continue;const n=e[a];if(null!=n&&"function"!=typeof n)if(Array.isArray(n)){i[a]=[];for(let e=0;e<n.length;e++)i[a][e]=s(n[e])}else if("object"==typeof n)if(n.toJSON){const e=n.toJSON(r&&r[a]);i[a]=t?e:JSON.stringify(e)}else i[a]=t?n:JSON.stringify(n);else i[a]=n}return i}r(71058)},58333:(e,t,r)=>{r.d(t,{ET:()=>n,I4:()=>a,eG:()=>l,lF:()=>o,lj:()=>d,qP:()=>s,wW:()=>p});const i=[252,146,31,255],a={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},s={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},p={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},d={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},80216:(e,t,r)=>{r.d(t,{Z:()=>y});var i=r(43697),a=r(2368),n=r(96674),o=r(70586),s=r(5600),l=(r(75215),r(67676),r(71715)),p=r(52011),d=r(30556),u=r(42799);let c=class extends((0,a.J)(n.wq)){constructor(e){super(e),this.legacy=null,this.timeZone="system"}readLegacy(e,t){const{timeZone:r,respectsDaylightSaving:i}=t;return{timeZone:r,respectsDaylightSaving:i}}readTimeZone(e,t){return"timeZoneIANA"in t?t.timeZoneIANA:(0,u.G)(t)}writeTimeZone(e,t){t.timeZoneIANA=e}equals(e){return!((0,o.Wi)(e)||(0,o.Wi)(this.timeZone)||(0,o.Wi)(e.timeZone))&&this.timeZone===e.timeZone}};(0,i._)([(0,s.Cb)()],c.prototype,"legacy",void 0),(0,i._)([(0,l.r)("legacy",["timeZone"])],c.prototype,"readLegacy",null),(0,i._)([(0,s.Cb)({type:String,nonNullable:!0})],c.prototype,"timeZone",void 0),(0,i._)([(0,l.r)("timeZone",["timeZone","timeZoneIANA","respectsDaylightSaving"])],c.prototype,"readTimeZone",null),(0,i._)([(0,d.c)("timeZone")],c.prototype,"writeTimeZone",null),c=(0,i._)([(0,p.j)("esri.time.TimeReference")],c);const y=c},42799:(e,t,r)=>{r.d(t,{G:()=>n});const i=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Chihuahua"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var a=r(17126);function n(e,t="system"){if(!e||!i.has(e.timeZone))return t;const r=i.get(e.timeZone);return e.timeZone.startsWith("UTC")||e.respectsDaylightSaving?r:function(e){const t=a.ou.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===r?"Etc/UTC":`Etc/GMT${a.Qf.instance(-r).formatOffset(0,"narrow")}`}(r)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4321,5732,661],{92835:(t,e,s)=>{s.d(e,{Z:()=>g});var i,n=s(43697),r=s(96674),a=s(70586),o=s(35463),h=s(5600),l=(s(75215),s(67676),s(71715)),c=s(52011),u=s(30556);let f=i=class extends r.wq{static get allTime(){return m}static get empty(){return _}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?t.getTime():null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?t.getTime():null}clone(){return new i({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=(0,a.pC)(this.start)?this.start.getTime():this.start,s=(0,a.pC)(this.end)?this.end.getTime():this.end,i=(0,a.pC)(t.start)?t.start.getTime():t.start,n=(0,a.pC)(t.end)?t.end.getTime():t.end;return e===i&&s===n}expandTo(t){if(this.isEmpty||this.isAllTime)return this.clone();const e=(0,a.yw)(this.start,(e=>(0,o.JE)(e,t))),s=(0,a.yw)(this.end,(e=>{const s=(0,o.JE)(e,t);return e.getTime()===s.getTime()?s:(0,o.Nm)(s,1,t)}));return new i({start:e,end:s})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return i.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=(0,a.R2)(this.start,-1/0,(t=>t.getTime())),s=(0,a.R2)(this.end,1/0,(t=>t.getTime())),n=(0,a.R2)(t.start,-1/0,(t=>t.getTime())),r=(0,a.R2)(t.end,1/0,(t=>t.getTime()));let o,h;if(n>=e&&n<=s?o=n:e>=n&&e<=r&&(o=e),s>=n&&s<=r?h=s:r>=e&&r<=s&&(h=r),null!=o&&null!=h&&!isNaN(o)&&!isNaN(h)){const t=new i;return t.start=o===-1/0?null:new Date(o),t.end=h===1/0?null:new Date(h),t}return i.empty}offset(t,e){if(this.isEmpty||this.isAllTime)return this.clone();const s=new i,{start:n,end:r}=this;return(0,a.pC)(n)&&(s.start=(0,o.Nm)(n,t,e)),(0,a.pC)(r)&&(s.end=(0,o.Nm)(r,t,e)),s}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return m.clone();const e=(0,a.pC)(this.start)&&(0,a.pC)(t.start)?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,s=(0,a.pC)(this.end)&&(0,a.pC)(t.end)?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new i({start:e,end:s})}};(0,n._)([(0,h.Cb)({type:Date,json:{write:{allowNull:!0}}})],f.prototype,"end",void 0),(0,n._)([(0,l.r)("end")],f.prototype,"readEnd",null),(0,n._)([(0,u.c)("end")],f.prototype,"writeEnd",null),(0,n._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],f.prototype,"isAllTime",null),(0,n._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],f.prototype,"isEmpty",null),(0,n._)([(0,h.Cb)({type:Date,json:{write:{allowNull:!0}}})],f.prototype,"start",void 0),(0,n._)([(0,l.r)("start")],f.prototype,"readStart",null),(0,n._)([(0,u.c)("start")],f.prototype,"writeStart",null),f=i=(0,n._)([(0,c.j)("esri.TimeExtent")],f);const m=new f,_=new f({start:void 0,end:void 0}),g=f},5732:(t,e,s)=>{s.d(e,{c:()=>i,g:()=>n});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},52138:(t,e,s)=>{s.d(e,{A:()=>g,a:()=>h,d:()=>_,e:()=>f,f:()=>m,g:()=>b,h:()=>y,i:()=>a,j:()=>v,k:()=>u,m:()=>l,s:()=>r,t:()=>o,w:()=>c,y:()=>w,z:()=>E});var i=s(65617),n=s(46851);function r(t,e,s,i,n,r,a,o,h,l,c,u,f,m,_,g,d){return t[0]=e,t[1]=s,t[2]=i,t[3]=n,t[4]=r,t[5]=a,t[6]=o,t[7]=h,t[8]=l,t[9]=c,t[10]=u,t[11]=f,t[12]=m,t[13]=_,t[14]=g,t[15]=d,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function o(t,e){if(t===e){const s=e[1],i=e[2],n=e[3],r=e[6],a=e[7],o=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=s,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=r,t[11]=e[14],t[12]=n,t[13]=a,t[14]=o}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function h(t,e){const s=e[0],i=e[1],n=e[2],r=e[3],a=e[4],o=e[5],h=e[6],l=e[7],c=e[8],u=e[9],f=e[10],m=e[11],_=e[12],g=e[13],d=e[14],p=e[15],b=s*o-i*a,M=s*h-n*a,v=s*l-r*a,y=i*h-n*o,E=i*l-r*o,w=n*l-r*h,A=c*g-u*_,D=c*d-f*_,x=c*p-m*_,C=u*d-f*g,S=u*p-m*g,z=f*p-m*d;let R=b*z-M*S+v*C+y*x-E*D+w*A;return R?(R=1/R,t[0]=(o*z-h*S+l*C)*R,t[1]=(n*S-i*z-r*C)*R,t[2]=(g*w-d*E+p*y)*R,t[3]=(f*E-u*w-m*y)*R,t[4]=(h*x-a*z-l*D)*R,t[5]=(s*z-n*x+r*D)*R,t[6]=(d*v-_*w-p*M)*R,t[7]=(c*w-f*v+m*M)*R,t[8]=(a*S-o*x+l*A)*R,t[9]=(i*x-s*S-r*A)*R,t[10]=(_*E-g*v+p*b)*R,t[11]=(u*v-c*E-m*b)*R,t[12]=(o*D-a*C-h*A)*R,t[13]=(s*C-i*D+n*A)*R,t[14]=(g*M-_*y-d*b)*R,t[15]=(c*y-u*M+f*b)*R,t):null}function l(t,e,s){const i=e[0],n=e[1],r=e[2],a=e[3],o=e[4],h=e[5],l=e[6],c=e[7],u=e[8],f=e[9],m=e[10],_=e[11],g=e[12],d=e[13],p=e[14],b=e[15];let M=s[0],v=s[1],y=s[2],E=s[3];return t[0]=M*i+v*o+y*u+E*g,t[1]=M*n+v*h+y*f+E*d,t[2]=M*r+v*l+y*m+E*p,t[3]=M*a+v*c+y*_+E*b,M=s[4],v=s[5],y=s[6],E=s[7],t[4]=M*i+v*o+y*u+E*g,t[5]=M*n+v*h+y*f+E*d,t[6]=M*r+v*l+y*m+E*p,t[7]=M*a+v*c+y*_+E*b,M=s[8],v=s[9],y=s[10],E=s[11],t[8]=M*i+v*o+y*u+E*g,t[9]=M*n+v*h+y*f+E*d,t[10]=M*r+v*l+y*m+E*p,t[11]=M*a+v*c+y*_+E*b,M=s[12],v=s[13],y=s[14],E=s[15],t[12]=M*i+v*o+y*u+E*g,t[13]=M*n+v*h+y*f+E*d,t[14]=M*r+v*l+y*m+E*p,t[15]=M*a+v*c+y*_+E*b,t}function c(t,e,s){const i=s[0],n=s[1],r=s[2];if(e===t)t[12]=e[0]*i+e[4]*n+e[8]*r+e[12],t[13]=e[1]*i+e[5]*n+e[9]*r+e[13],t[14]=e[2]*i+e[6]*n+e[10]*r+e[14],t[15]=e[3]*i+e[7]*n+e[11]*r+e[15];else{const s=e[0],a=e[1],o=e[2],h=e[3],l=e[4],c=e[5],u=e[6],f=e[7],m=e[8],_=e[9],g=e[10],d=e[11];t[0]=s,t[1]=a,t[2]=o,t[3]=h,t[4]=l,t[5]=c,t[6]=u,t[7]=f,t[8]=m,t[9]=_,t[10]=g,t[11]=d,t[12]=s*i+l*n+m*r+e[12],t[13]=a*i+c*n+_*r+e[13],t[14]=o*i+u*n+g*r+e[14],t[15]=h*i+f*n+d*r+e[15]}return t}function u(t,e,s){const i=s[0],n=s[1],r=s[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function f(t,e,s,i){let r,a,o,h,l,c,u,f,m,_,g,d,p,b,M,v,y,E,w,A,D,x,C,S,z=i[0],R=i[1],O=i[2],T=Math.sqrt(z*z+R*R+O*O);return T<(0,n.g)()?null:(T=1/T,z*=T,R*=T,O*=T,r=Math.sin(s),a=Math.cos(s),o=1-a,h=e[0],l=e[1],c=e[2],u=e[3],f=e[4],m=e[5],_=e[6],g=e[7],d=e[8],p=e[9],b=e[10],M=e[11],v=z*z*o+a,y=R*z*o+O*r,E=O*z*o-R*r,w=z*R*o-O*r,A=R*R*o+a,D=O*R*o+z*r,x=z*O*o+R*r,C=R*O*o-z*r,S=O*O*o+a,t[0]=h*v+f*y+d*E,t[1]=l*v+m*y+p*E,t[2]=c*v+_*y+b*E,t[3]=u*v+g*y+M*E,t[4]=h*w+f*A+d*D,t[5]=l*w+m*A+p*D,t[6]=c*w+_*A+b*D,t[7]=u*w+g*A+M*D,t[8]=h*x+f*C+d*S,t[9]=l*x+m*C+p*S,t[10]=c*x+_*C+b*S,t[11]=u*x+g*C+M*S,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function m(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function _(t,e,s){if(0===e)return a(t);let i,r,o,h=s[0],l=s[1],c=s[2],u=Math.sqrt(h*h+l*l+c*c);return u<(0,n.g)()?null:(u=1/u,h*=u,l*=u,c*=u,i=Math.sin(e),r=Math.cos(e),o=1-r,t[0]=h*h*o+r,t[1]=l*h*o+c*i,t[2]=c*h*o-l*i,t[3]=0,t[4]=h*l*o-c*i,t[5]=l*l*o+r,t[6]=c*l*o+h*i,t[7]=0,t[8]=h*c*o+l*i,t[9]=l*c*o-h*i,t[10]=c*c*o+r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function g(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=s,t[7]=0,t[8]=0,t[9]=-s,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function d(t,e,s){const i=e[0],n=e[1],r=e[2],a=e[3],o=i+i,h=n+n,l=r+r,c=i*o,u=i*h,f=i*l,m=n*h,_=n*l,g=r*l,d=a*o,p=a*h,b=a*l;return t[0]=1-(m+g),t[1]=u+b,t[2]=f-p,t[3]=0,t[4]=u-b,t[5]=1-(c+g),t[6]=_+d,t[7]=0,t[8]=f+p,t[9]=_-d,t[10]=1-(c+m),t[11]=0,t[12]=s[0],t[13]=s[1],t[14]=s[2],t[15]=1,t}const p=(0,i.c)();function b(t,e,s,i){const n=e[0],r=e[1],a=e[2],o=e[3],h=n+n,l=r+r,c=a+a,u=n*h,f=n*l,m=n*c,_=r*l,g=r*c,d=a*c,p=o*h,b=o*l,M=o*c,v=i[0],y=i[1],E=i[2];return t[0]=(1-(_+d))*v,t[1]=(f+M)*v,t[2]=(m-b)*v,t[3]=0,t[4]=(f-M)*y,t[5]=(1-(u+d))*y,t[6]=(g+p)*y,t[7]=0,t[8]=(m+b)*E,t[9]=(g-p)*E,t[10]=(1-(u+_))*E,t[11]=0,t[12]=s[0],t[13]=s[1],t[14]=s[2],t[15]=1,t}function M(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t[3]=e[3]-s[3],t[4]=e[4]-s[4],t[5]=e[5]-s[5],t[6]=e[6]-s[6],t[7]=e[7]-s[7],t[8]=e[8]-s[8],t[9]=e[9]-s[9],t[10]=e[10]-s[10],t[11]=e[11]-s[11],t[12]=e[12]-s[12],t[13]=e[13]-s[13],t[14]=e[14]-s[14],t[15]=e[15]-s[15],t}function v(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function y(t,e){if(t===e)return!0;const s=t[0],i=t[1],r=t[2],a=t[3],o=t[4],h=t[5],l=t[6],c=t[7],u=t[8],f=t[9],m=t[10],_=t[11],g=t[12],d=t[13],p=t[14],b=t[15],M=e[0],v=e[1],y=e[2],E=e[3],w=e[4],A=e[5],D=e[6],x=e[7],C=e[8],S=e[9],z=e[10],R=e[11],O=e[12],T=e[13],F=e[14],L=e[15],V=(0,n.g)();return Math.abs(s-M)<=V*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(i-v)<=V*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(r-y)<=V*Math.max(1,Math.abs(r),Math.abs(y))&&Math.abs(a-E)<=V*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(o-w)<=V*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(h-A)<=V*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(l-D)<=V*Math.max(1,Math.abs(l),Math.abs(D))&&Math.abs(c-x)<=V*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(u-C)<=V*Math.max(1,Math.abs(u),Math.abs(C))&&Math.abs(f-S)<=V*Math.max(1,Math.abs(f),Math.abs(S))&&Math.abs(m-z)<=V*Math.max(1,Math.abs(m),Math.abs(z))&&Math.abs(_-R)<=V*Math.max(1,Math.abs(_),Math.abs(R))&&Math.abs(g-O)<=V*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(d-T)<=V*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(p-F)<=V*Math.max(1,Math.abs(p),Math.abs(F))&&Math.abs(b-L)<=V*Math.max(1,Math.abs(b),Math.abs(L))}function E(t){const e=(0,n.g)(),s=t[0],i=t[1],r=t[2],a=t[4],o=t[5],h=t[6],l=t[8],c=t[9],u=t[10];return Math.abs(1-(s*s+a*a+l*l))<=e&&Math.abs(1-(i*i+o*o+c*c))<=e&&Math.abs(1-(r*r+h*h+u*u))<=e}function w(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const A=l,D=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t[3]=e[3]+s[3],t[4]=e[4]+s[4],t[5]=e[5]+s[5],t[6]=e[6]+s[6],t[7]=e[7]+s[7],t[8]=e[8]+s[8],t[9]=e[9]+s[9],t[10]=e[10]+s[10],t[11]=e[11]+s[11],t[12]=e[12]+s[12],t[13]=e[13]+s[13],t[14]=e[14]+s[14],t[15]=e[15]+s[15],t},adjoint:function(t,e){const s=e[0],i=e[1],n=e[2],r=e[3],a=e[4],o=e[5],h=e[6],l=e[7],c=e[8],u=e[9],f=e[10],m=e[11],_=e[12],g=e[13],d=e[14],p=e[15];return t[0]=o*(f*p-m*d)-u*(h*p-l*d)+g*(h*m-l*f),t[1]=-(i*(f*p-m*d)-u*(n*p-r*d)+g*(n*m-r*f)),t[2]=i*(h*p-l*d)-o*(n*p-r*d)+g*(n*l-r*h),t[3]=-(i*(h*m-l*f)-o*(n*m-r*f)+u*(n*l-r*h)),t[4]=-(a*(f*p-m*d)-c*(h*p-l*d)+_*(h*m-l*f)),t[5]=s*(f*p-m*d)-c*(n*p-r*d)+_*(n*m-r*f),t[6]=-(s*(h*p-l*d)-a*(n*p-r*d)+_*(n*l-r*h)),t[7]=s*(h*m-l*f)-a*(n*m-r*f)+c*(n*l-r*h),t[8]=a*(u*p-m*g)-c*(o*p-l*g)+_*(o*m-l*u),t[9]=-(s*(u*p-m*g)-c*(i*p-r*g)+_*(i*m-r*u)),t[10]=s*(o*p-l*g)-a*(i*p-r*g)+_*(i*l-r*o),t[11]=-(s*(o*m-l*u)-a*(i*m-r*u)+c*(i*l-r*o)),t[12]=-(a*(u*d-f*g)-c*(o*d-h*g)+_*(o*f-h*u)),t[13]=s*(u*d-f*g)-c*(i*d-n*g)+_*(i*f-n*u),t[14]=-(s*(o*d-h*g)-a*(i*d-n*g)+_*(i*h-n*o)),t[15]=s*(o*f-h*u)-a*(i*f-n*u)+c*(i*h-n*o),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],s=t[1],i=t[2],n=t[3],r=t[4],a=t[5],o=t[6],h=t[7],l=t[8],c=t[9],u=t[10],f=t[11],m=t[12],_=t[13],g=t[14],d=t[15];return(e*a-s*r)*(u*d-f*g)-(e*o-i*r)*(c*d-f*_)+(e*h-n*r)*(c*g-u*_)+(s*o-i*a)*(l*d-f*m)-(s*h-n*a)*(l*g-u*m)+(i*h-n*o)*(l*_-c*m)},equals:y,exactEquals:v,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const s=e[0],i=e[1],n=e[2],r=e[3],a=s+s,o=i+i,h=n+n,l=s*a,c=i*a,u=i*o,f=n*a,m=n*o,_=n*h,g=r*a,d=r*o,p=r*h;return t[0]=1-u-_,t[1]=c+p,t[2]=f-d,t[3]=0,t[4]=c-p,t[5]=1-l-_,t[6]=m+g,t[7]=0,t[8]=f+d,t[9]=m-g,t[10]=1-l-u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const s=p,i=-e[0],n=-e[1],r=-e[2],a=e[3],o=e[4],h=e[5],l=e[6],c=e[7],u=i*i+n*n+r*r+a*a;return u>0?(s[0]=2*(o*a+c*i+h*r-l*n)/u,s[1]=2*(h*a+c*n+l*i-o*r)/u,s[2]=2*(l*a+c*r+o*n-h*i)/u):(s[0]=2*(o*a+c*i+h*r-l*n),s[1]=2*(h*a+c*n+l*i-o*r),s[2]=2*(l*a+c*r+o*n-h*i)),d(t,e,s),t},fromRotation:_,fromRotationTranslation:d,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(t,e,s,i,n){const r=e[0],a=e[1],o=e[2],h=e[3],l=r+r,c=a+a,u=o+o,f=r*l,m=r*c,_=r*u,g=a*c,d=a*u,p=o*u,b=h*l,M=h*c,v=h*u,y=i[0],E=i[1],w=i[2],A=n[0],D=n[1],x=n[2],C=(1-(g+p))*y,S=(m+v)*y,z=(_-M)*y,R=(m-v)*E,O=(1-(f+p))*E,T=(d+b)*E,F=(_+M)*w,L=(d-b)*w,V=(1-(f+g))*w;return t[0]=C,t[1]=S,t[2]=z,t[3]=0,t[4]=R,t[5]=O,t[6]=T,t[7]=0,t[8]=F,t[9]=L,t[10]=V,t[11]=0,t[12]=s[0]+A-(C*A+R*D+F*x),t[13]=s[1]+D-(S*A+O*D+L*x),t[14]=s[2]+x-(z*A+T*D+V*x),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:m,fromXRotation:g,fromYRotation:function(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=0,t[2]=-s,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=s,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=s,t[2]=0,t[3]=0,t[4]=-s,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,s,i,n,r,a){const o=1/(s-e),h=1/(n-i),l=1/(r-a);return t[0]=2*r*o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*r*h,t[6]=0,t[7]=0,t[8]=(s+e)*o,t[9]=(n+i)*h,t[10]=(a+r)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*r*2*l,t[15]=0,t},getRotation:function(t,e){const s=e[0]+e[5]+e[10];let i=0;return s>0?(i=2*Math.sqrt(s+1),t[3]=.25*i,t[0]=(e[6]-e[9])/i,t[1]=(e[8]-e[2])/i,t[2]=(e[1]-e[4])/i):e[0]>e[5]&&e[0]>e[10]?(i=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/i,t[0]=.25*i,t[1]=(e[1]+e[4])/i,t[2]=(e[8]+e[2])/i):e[5]>e[10]?(i=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/i,t[0]=(e[1]+e[4])/i,t[1]=.25*i,t[2]=(e[6]+e[9])/i):(i=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/i,t[0]=(e[8]+e[2])/i,t[1]=(e[6]+e[9])/i,t[2]=.25*i),t},getScaling:function(t,e){const s=e[0],i=e[1],n=e[2],r=e[4],a=e[5],o=e[6],h=e[8],l=e[9],c=e[10];return t[0]=Math.sqrt(s*s+i*i+n*n),t[1]=Math.sqrt(r*r+a*a+o*o),t[2]=Math.sqrt(h*h+l*l+c*c),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:w,identity:a,invert:h,invertOrIdentity:function(t,e){return h(t,e)||a(t),t},isOrthoNormal:E,lookAt:function(t,e,s,i){let r,o,h,l,c,u,f,m,_,g;const d=e[0],p=e[1],b=e[2],M=i[0],v=i[1],y=i[2],E=s[0],w=s[1],A=s[2],D=(0,n.g)();return Math.abs(d-E)<D&&Math.abs(p-w)<D&&Math.abs(b-A)<D?a(t):(f=d-E,m=p-w,_=b-A,g=1/Math.sqrt(f*f+m*m+_*_),f*=g,m*=g,_*=g,r=v*_-y*m,o=y*f-M*_,h=M*m-v*f,g=Math.sqrt(r*r+o*o+h*h),g?(g=1/g,r*=g,o*=g,h*=g):(r=0,o=0,h=0),l=m*h-_*o,c=_*r-f*h,u=f*o-m*r,g=Math.sqrt(l*l+c*c+u*u),g?(g=1/g,l*=g,c*=g,u*=g):(l=0,c=0,u=0),t[0]=r,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=m,t[7]=0,t[8]=h,t[9]=u,t[10]=_,t[11]=0,t[12]=-(r*d+o*p+h*b),t[13]=-(l*d+c*p+u*b),t[14]=-(f*d+m*p+_*b),t[15]=1,t)},mul:A,multiply:l,multiplyScalar:function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*s,t[5]=e[5]*s,t[6]=e[6]*s,t[7]=e[7]*s,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12]*s,t[13]=e[13]*s,t[14]=e[14]*s,t[15]=e[15]*s,t},multiplyScalarAndAdd:function(t,e,s,i){return t[0]=e[0]+s[0]*i,t[1]=e[1]+s[1]*i,t[2]=e[2]+s[2]*i,t[3]=e[3]+s[3]*i,t[4]=e[4]+s[4]*i,t[5]=e[5]+s[5]*i,t[6]=e[6]+s[6]*i,t[7]=e[7]+s[7]*i,t[8]=e[8]+s[8]*i,t[9]=e[9]+s[9]*i,t[10]=e[10]+s[10]*i,t[11]=e[11]+s[11]*i,t[12]=e[12]+s[12]*i,t[13]=e[13]+s[13]*i,t[14]=e[14]+s[14]*i,t[15]=e[15]+s[15]*i,t},ortho:function(t,e,s,i,n,r,a){const o=1/(e-s),h=1/(i-n),l=1/(r-a);return t[0]=-2*o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*h,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+s)*o,t[13]=(n+i)*h,t[14]=(a+r)*l,t[15]=1,t},perspective:function(t,e,s,i,n){const r=1/Math.tan(e/2);let a;return t[0]=r/s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=n&&n!==1/0?(a=1/(i-n),t[10]=(n+i)*a,t[14]=2*n*i*a):(t[10]=-1,t[14]=-2*i),t},perspectiveFromFieldOfView:function(t,e,s,i){const n=Math.tan(e.upDegrees*Math.PI/180),r=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),o=Math.tan(e.rightDegrees*Math.PI/180),h=2/(a+o),l=2/(n+r);return t[0]=h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(a-o)*h*.5,t[9]=(n-r)*l*.5,t[10]=i/(s-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*s/(s-i),t[15]=0,t},rotate:f,rotateX:function(t,e,s){const i=Math.sin(s),n=Math.cos(s),r=e[4],a=e[5],o=e[6],h=e[7],l=e[8],c=e[9],u=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=r*n+l*i,t[5]=a*n+c*i,t[6]=o*n+u*i,t[7]=h*n+f*i,t[8]=l*n-r*i,t[9]=c*n-a*i,t[10]=u*n-o*i,t[11]=f*n-h*i,t},rotateY:function(t,e,s){const i=Math.sin(s),n=Math.cos(s),r=e[0],a=e[1],o=e[2],h=e[3],l=e[8],c=e[9],u=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=r*n-l*i,t[1]=a*n-c*i,t[2]=o*n-u*i,t[3]=h*n-f*i,t[8]=r*i+l*n,t[9]=a*i+c*n,t[10]=o*i+u*n,t[11]=h*i+f*n,t},rotateZ:function(t,e,s){const i=Math.sin(s),n=Math.cos(s),r=e[0],a=e[1],o=e[2],h=e[3],l=e[4],c=e[5],u=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=r*n+l*i,t[1]=a*n+c*i,t[2]=o*n+u*i,t[3]=h*n+f*i,t[4]=l*n-r*i,t[5]=c*n-a*i,t[6]=u*n-o*i,t[7]=f*n-h*i,t},scale:u,set:r,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:D,subtract:M,targetTo:function(t,e,s,i){const n=e[0],r=e[1],a=e[2],o=i[0],h=i[1],l=i[2];let c=n-s[0],u=r-s[1],f=a-s[2],m=c*c+u*u+f*f;m>0&&(m=1/Math.sqrt(m),c*=m,u*=m,f*=m);let _=h*f-l*u,g=l*c-o*f,d=o*u-h*c;return m=_*_+g*g+d*d,m>0&&(m=1/Math.sqrt(m),_*=m,g*=m,d*=m),t[0]=_,t[1]=g,t[2]=d,t[3]=0,t[4]=u*d-f*g,t[5]=f*_-c*d,t[6]=c*g-u*_,t[7]=0,t[8]=c,t[9]=u,t[10]=f,t[11]=0,t[12]=n,t[13]=r,t[14]=a,t[15]=1,t},translate:c,transpose:o},Symbol.toStringTag,{value:"Module"}))},2368:(t,e,s)=>{s.d(e,{J:()=>c,j:()=>u});var i=s(43697),n=s(15923),r=(s(80442),s(22974)),a=(s(92604),s(70586)),o=s(31263),h=s(1153),l=s(52011);const c=t=>{let e=class extends t{clone(){const t=(0,a.s3)((0,h.vw)(this),"unable to clone instance of non-accessor class"),e=t.metadatas,s=t.store,i={},n=new Map;for(const t in e){const a=e[t],h=s?.originOf(t),l=a.clonable;if(a.readOnly||!1===l||h!==o.s3.USER&&h!==o.s3.DEFAULTS&&h!==o.s3.WEB_MAP&&h!==o.s3.WEB_SCENE)continue;const c=this[t];let u=null;u="function"==typeof l?l(c):"reference"===l?c:(0,r.Vo)(c),null!=c&&null==u||(h===o.s3.DEFAULTS?n.set(t,u):i[t]=u)}const l=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const t=(0,h.vw)(l)?.store;if(t)for(const[e,s]of n)t.set(e,s,o.s3.DEFAULTS)}return l}};return e=(0,i._)([(0,l.j)("esri.core.Clonable")],e),e};let u=class extends(c(n.Z)){};u=(0,i._)([(0,l.j)("esri.core.Clonable")],u)},46791:(t,e,s)=>{s.d(e,{Z:()=>R});var i,n=s(43697),r=s(3894),a=s(32448),o=s(22974),h=s(70586),l=s(71143);!function(t){t[t.ADD=1]="ADD",t[t.REMOVE=2]="REMOVE",t[t.MOVE=4]="MOVE"}(i||(i={}));var c,u=s(1654),f=s(5600),m=s(75215),_=s(52421),g=s(52011),d=s(58971),p=s(10661);const b=new l.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},void 0,(t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1})),M=()=>{};function v(t){return t?t instanceof z?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function y(t){if(t&&t.length)return t[0]}function E(t,e,s,i){const n=Math.min(t.length-s,e.length-i);let r=0;for(;r<n&&t[s+r]===e[i+r];)r++;return r}function w(t,e,s,i){e&&e.forEach(((e,n,r)=>{t.push(e),w(t,s.call(i,e,n,r),s,i)}))}const A=new Set,D=new Set,x=new Set,C=new Map;let S=0,z=c=class extends a.Z.EventedAccessor{static isCollection(t){return null!=t&&t instanceof c}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new p.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:S++})}normalizeCtorArgs(t){return t?Array.isArray(t)||t instanceof c?{items:t}:t:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,d.it)(this._observable),this._items}set items(t){this._emitBeforeChanges(i.ADD)||(this._splice(0,this.length,v(t)),this._emitAfterChanges(i.ADD))}hasEventListener(t){return"change"===t?this._chgListeners.length>0:this._emitter.hasEventListener(t)}on(t,e){if("change"===t){const t=this._chgListeners,s={removed:!1,callback:e};return t.push(s),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=M,s.removed=!0,t.splice(t.indexOf(s),1)}}}return this._emitter.on(t,e)}once(t,e){const s=this.on(t,e);return{remove(){s.remove()}}}add(t,e){if((0,d.it)(this._observable),this._emitBeforeChanges(i.ADD))return this;const s=this.getNextIndex(e??null);return this._splice(s,0,[t]),this._emitAfterChanges(i.ADD),this}addMany(t,e=this._items.length){if((0,d.it)(this._observable),!t||!t.length)return this;if(this._emitBeforeChanges(i.ADD))return this;const s=this.getNextIndex(e);return this._splice(s,0,v(t)),this._emitAfterChanges(i.ADD),this}at(t){if((0,d.it)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return[];const t=this._splice(0,this.length)||[];return this._emitAfterChanges(i.REMOVE),t}clone(){return(0,d.it)(this._observable),this._createNewInstance({items:this._items.map(o.d9)})}concat(...t){(0,d.it)(this._observable);const e=t.map(v);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const s=(0,h.j0)(this._splice(0,this.length)),n=s.length;for(let i=0;i<n;i++)t.call(e,s[i],i,s);this._emitAfterChanges(i.REMOVE)}every(t,e){return(0,d.it)(this._observable),this._items.every(t,e)}filter(t,e){let s;return(0,d.it)(this._observable),s=2===arguments.length?this._items.filter(t,e):this._items.filter(t),this._createNewInstance({items:s})}find(t,e){return(0,d.it)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,d.it)(this._observable),this._items.findIndex(t,e)}flatten(t,e){(0,d.it)(this._observable);const s=[];return w(s,this,t,e),new c(s)}forEach(t,e){return(0,d.it)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,d.it)(this._observable),this._items[t]}getNextIndex(t){(0,d.it)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,d.it)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,d.it)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,d.it)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,d.it)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,d.it)(this._observable);const s=this._items.map(t,e);return new c({items:s})}reorder(t,e=this.length-1){(0,d.it)(this._observable);const s=this.indexOf(t);if(-1!==s){if(e<0?e=0:e>=this.length&&(e=this.length-1),s!==e){if(this._emitBeforeChanges(i.MOVE))return t;this._splice(s,1),this._splice(e,0,[t]),this._emitAfterChanges(i.MOVE)}return t}}pop(){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const t=y(this._splice(this.length-1,1));return this._emitAfterChanges(i.REMOVE),t}push(...t){return(0,d.it)(this._observable),this._emitBeforeChanges(i.ADD)||(this._splice(this.length,0,t),this._emitAfterChanges(i.ADD)),this.length}reduce(t,e){(0,d.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(t,e):s.reduce(t)}reduceRight(t,e){(0,d.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(t,e):s.reduceRight(t)}remove(t){return(0,d.it)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,d.it)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(i.REMOVE))return;const e=y(this._splice(t,1));return this._emitAfterChanges(i.REMOVE),e}removeMany(t){if((0,d.it)(this._observable),!t||!t.length||this._emitBeforeChanges(i.REMOVE))return[];const e=t instanceof c?t.toArray():t,s=this._items,n=[],r=e.length;for(let t=0;t<r;t++){const i=e[t],r=s.indexOf(i);if(r>-1){const i=1+E(e,s,t+1,r+1),a=this._splice(r,i);a&&a.length>0&&n.push.apply(n,a),t+=i-1}}return this._emitAfterChanges(i.REMOVE),n}reverse(){if((0,d.it)(this._observable),this._emitBeforeChanges(i.MOVE))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(i.MOVE),this}shift(){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const t=y(this._splice(0,1));return this._emitAfterChanges(i.REMOVE),t}slice(t=0,e=this.length){return(0,d.it)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,d.it)(this._observable),this._items.some(t,e)}sort(t){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.MOVE))return this;const e=(0,h.j0)(this._splice(0,this.length));return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(i.MOVE),this}splice(t,e,...s){(0,d.it)(this._observable);const n=(e?i.REMOVE:0)|(s.length?i.ADD:0);if(this._emitBeforeChanges(n))return[];const r=this._splice(t,e,s)||[];return this._emitAfterChanges(n),r}toArray(){return(0,d.it)(this._observable),this._items.slice()}toJSON(){return(0,d.it)(this._observable),this.toArray()}toLocaleString(){return(0,d.it)(this._observable),this._items.toLocaleString()}toString(){return(0,d.it)(this._observable),this._items.toString()}unshift(...t){return(0,d.it)(this._observable),!t.length||this._emitBeforeChanges(i.ADD)||(this._splice(0,0,t),this._emitAfterChanges(i.ADD)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,s){const i=this._items,n=this.itemType;let r,a;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,u.Os)((()=>this._dispatchChange()))),e){if(a=i.splice(t,e),this.hasEventListener("before-remove")){const e=b.acquire();e.target=this,e.cancellable=!0;for(let s=0,n=a.length;s<n;s++)r=a[s],e.reset(r),this.emit("before-remove",e),e.defaultPrevented&&(a.splice(s,1),i.splice(t,0,r),t+=1,s-=1,n-=1);b.release(e)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const t=b.acquire();t.target=this,t.cancellable=!1;const e=a.length;for(let s=0;s<e;s++)t.reset(a[s]),this.emit("after-remove",t);b.release(t)}}if(s&&s.length){if(n){const t=[];for(const e of s){const s=n.ensureType(e);null==s&&null!=e||t.push(s)}s=t}const e=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),a=t===this.length;if(e||r){const n=b.acquire();n.target=this,n.cancellable=!0;const o=b.acquire();o.target=this,o.cancellable=!1;for(const h of s)e?(n.reset(h),this.emit("before-add",n),n.defaultPrevented||(a?i.push(h):i.splice(t++,0,h),this._set("length",i.length),r&&(o.reset(h),this.emit("after-add",o)))):(a?i.push(h):i.splice(t++,0,h),this._set("length",i.length),o.reset(h),this.emit("after-add",o));b.release(o),b.release(n)}else{if(a)for(const t of s)i.push(t);else i.splice(t,0,...s);this._set("length",i.length)}}return(s&&s.length||a&&a.length)&&this._notifyChangeEvent(s,a),a}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const s=b.acquire();s.target=this,s.cancellable=!0,s.type=t,this.emit("before-changes",s),e=s.defaultPrevented,b.release(s)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=b.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),b.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;A.clear(),D.clear(),x.clear();for(const{added:e,removed:s}of t){if(e)if(0===x.size&&0===D.size)for(const t of e)A.add(t);else for(const t of e)D.has(t)?(x.add(t),D.delete(t)):x.has(t)||A.add(t);if(s)if(0===x.size&&0===A.size)for(const t of s)D.add(t);else for(const t of s)A.has(t)?A.delete(t):(x.delete(t),D.add(t))}const s=r.Z.acquire();A.forEach((t=>{s.push(t)}));const i=r.Z.acquire();D.forEach((t=>{i.push(t)}));const n=this._items,a=e.items,o=r.Z.acquire();if(x.forEach((t=>{a.indexOf(t)!==n.indexOf(t)&&o.push(t)})),e.listeners&&(s.length||i.length||o.length)){const t={target:this,added:s,removed:i,moved:o},n=e.listeners.length;for(let s=0;s<n;s++){const i=e.listeners[s];i.removed||i.callback.call(this,t)}}r.Z.release(s),r.Z.release(i),r.Z.release(o)}A.clear(),D.clear(),x.clear()}};z.ofType=t=>{if(!t)return c;if(C.has(t))return C.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const s in t.typeMap){const i=t.typeMap[s].prototype.declaredClass;e?e+=` | ${i}`:e=i}let s=class extends c{};return(0,n._)([(0,_.c)({Type:t,ensureType:"function"==typeof t?(0,m.se)(t):(0,m.N7)(t)})],s.prototype,"itemType",void 0),s=(0,n._)([(0,g.j)(`esri.core.Collection<${e}>`)],s),C.set(t,s),s},(0,n._)([(0,f.Cb)()],z.prototype,"length",void 0),(0,n._)([(0,f.Cb)()],z.prototype,"items",null),z=c=(0,n._)([(0,g.j)("esri.core.Collection")],z);const R=z},69801:(t,e,s)=>{s.d(e,{WJ:()=>h,Xq:()=>o});var i,n,r=s(70586),a=s(44553);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(t,e,s){this._namespace=t,this._storage=e,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",s&&(this._storage.registerRemoveFunc(this._namespace,s),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(t,e,s,i=0){this._storage.put(this._namespace+t,e,s,i)}get(t){const e=this._storage.get(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}pop(t){const e=this._storage.pop(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,s){this._storage.updateSize(this._namespace+t,e,s)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class h{constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new a.Z,this._users=new a.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get size(){return this._size}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimit()}put(t,e,s,n){const r=this._db.get(t);if(r&&(this._size-=r.size,this._db.delete(t),r.entry!==e&&this._notifyRemove(t,r.entry,i.ALL)),s>this._maxSize)return void this._notifyRemove(t,e,i.ALL);if(void 0===e)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return void console.warn("Refusing to cache entry with invalid size "+s);const a=1+Math.max(n,-3)- -3;this._db.set(t,{entry:e,size:s,lifetime:a,lives:a}),this._size+=s,this._checkSizeLimit()}updateSize(t,e,s){const n=this._db.get(t);if(n&&n.entry===e){for(this._size-=n.size;s>this._maxSize;){const n=this._notifyRemove(t,e,i.SOME);if(!((0,r.pC)(n)&&n>0))return void this._db.delete(t);s=n}n.size=s,this._size+=s,this._checkSizeLimit()}}pop(t){const e=this._db.get(t);if(e)return this._size-=e.size,this._db.delete(t),++this._hit,e.entry;++this._miss}get(t){const e=this._db.get(t);if(void 0!==e)return this._db.delete(t),e.lives=e.lifetime,this._db.set(t,e),++this._hit,e.entry;++this._miss}getStats(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach(((t,i)=>{const n=t.lifetime;s[n]=(s[n]||0)+t.size,this._users.forAll((s=>{const n=s.namespace;if(i.startsWith(n)){const s=e[n]||0;e[n]=s+t.size}}))}));const i={};this._users.forAll((t=>{const s=t.namespace;if(!isNaN(t.hitRate)&&t.hitRate>0){const n=e[s]||0;e[s]=n,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(e);n.sort(((t,s)=>e[s]-e[t])),n.forEach((s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]));for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this.size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){this._db.forEach(((e,s)=>{s.startsWith(t)&&(this._size-=e.size,this._db.delete(s),this._notifyRemove(s,e.entry,i.ALL))}))}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,i.ALL))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s){let i;return this._removeFuncs.some((n=>{if(t.startsWith(n[0])){const t=n[1](e,s);return"number"==typeof t&&(i=t),!0}return!1})),i}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[t,e]of this._db){if(this._db.delete(t),e.lives<=1){this._size-=e.size;const s=this._notifyRemove(t,e.entry,i.SOME);(0,r.pC)(s)&&s>0&&(this._size+=s,e.lives=e.lifetime,e.size=s,this._db.set(t,e))}else--e.lives,this._db.set(t,e);if(this._size<=.9*this.maxSize)return}}}},52421:(t,e,s)=>{function i(t){return(e,s)=>{e[s]=t}}s.d(e,{c:()=>i})},22862:(t,e,s)=>{s.d(e,{Hg:()=>g,V7:()=>_,uD:()=>m});var i=s(15923),n=s(46791),r=s(70586),a=s(1153);const o=["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"];function h(t){return t instanceof i.Z}function l(t){return t instanceof n.Z?Object.keys(t.items):h(t)?(0,a.vw)(t).keys():t?Object.keys(t):[]}function c(t,e){return t instanceof n.Z?t.items[e]:t[e]}function u(t){return t?t.declaredClass:null}function f(t,e){const s=t.diff;if(s&&"function"==typeof s)return s(t,e);const i=l(t),n=l(e);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(t,e){return!(!Array.isArray(t)||!Array.isArray(e))&&t.length!==e.length}(t,e))return{type:"complete",oldValue:t,newValue:e};const a=n.filter((t=>!i.includes(t))),m=i.filter((t=>!n.includes(t))),_=i.filter((s=>n.includes(s)&&c(t,s)!==c(e,s))).concat(a,m).sort(),g=u(t);if(g&&o.includes(g)&&_.length)return{type:"complete",oldValue:t,newValue:e};let d;const p=h(t)&&h(e);for(const i of _){const n=c(t,i),a=c(e,i);let o;if((p||"function"!=typeof n&&"function"!=typeof a)&&n!==a&&(null!=n||null!=a)){if(s&&s[i]&&"function"==typeof s[i])o=s[i](n,a);else if(n instanceof Date&&a instanceof Date){if(n.getTime()===a.getTime())continue;o={type:"complete",oldValue:n,newValue:a}}else o="object"==typeof n&&"object"==typeof a&&u(n)===u(a)?f(n,a):{type:"complete",oldValue:n,newValue:a};(0,r.pC)(o)&&((0,r.pC)(d)?d.diff[i]=o:d={type:"partial",diff:{[i]:o}})}}return d}function m(t,e){if((0,r.Wi)(t))return!1;const s=e.split(".");let i=t;for(const t of s){if("complete"===i.type)return!0;if("partial"!==i.type)return!1;{const e=i.diff[t];if(!e)return!1;i=e}}return!0}function _(t,e){for(const s of e)if(m(t,s))return!0;return!1}function g(t,e){if(!("function"==typeof t||"function"==typeof e||(0,r.Wi)(t)&&(0,r.Wi)(e)))return(0,r.Wi)(t)||(0,r.Wi)(e)||"object"==typeof t&&"object"==typeof e&&u(t)!==u(e)?{type:"complete",oldValue:t,newValue:e}:f(t,e)}},10661:(t,e,s)=>{s.d(e,{s:()=>n});var i=s(42100);class n extends i.s{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},17445:(t,e,s)=>{s.d(e,{N1:()=>f,YP:()=>h,Z_:()=>g,gx:()=>l,nn:()=>d,on:()=>u,tX:()=>p});var i=s(91460),n=s(50758),r=s(70586),a=s(95330),o=s(26258);function h(t,e,s={}){return c(t,e,s,m)}function l(t,e,s={}){return c(t,e,s,_)}function c(t,e,s={},i){let n=null;const a=s.once?(t,s)=>{i(t)&&((0,r.hw)(n),e(t,s))}:(t,s)=>{i(t)&&e(t,s)};if(n=(0,o.aQ)(t,a,s.sync,s.equals),s.initial){const e=t();a(e,e)}return n}function u(t,e,s,a={}){let o=null,l=null,c=null;function u(){o&&l&&(l.remove(),a.onListenerRemove?.(o),o=null,l=null)}function f(t){a.once&&a.once&&(0,r.hw)(c),s(t)}const m=h(t,((t,s)=>{u(),(0,i.vT)(t)&&(o=t,l=(0,i.on)(t,e,f),a.onListenerAdd?.(t))}),{sync:a.sync,initial:!0});return c=(0,n.kB)((()=>{m.remove(),u()})),c}function f(t,e){return function(t,e,s){if((0,a.Hc)(s))return Promise.reject((0,a.zE)());const i=t();if(e?.(i))return Promise.resolve(i);let o=null;function h(){o=(0,r.hw)(o)}return new Promise(((i,r)=>{o=(0,n.AL)([(0,a.fu)(s,(()=>{h(),r((0,a.zE)())})),c(t,(t=>{h(),i(t)}),{sync:!1,once:!0},e??m)])}))}(t,_,e)}function m(t){return!0}function _(t){return!!t}s(87538);const g={sync:!0},d={initial:!0},p={sync:!0,initial:!0}},35463:(t,e,s)=>{s.d(e,{JE:()=>a,Nm:()=>r,rJ:()=>o}),s(80442);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},n={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function r(t,e,s){const i=new Date(t.getTime());if(e&&s){const t=n[s],{getter:r,setter:a,multiplier:o}=t;if("months"===s){const t=function(t,e){const s=new Date(t,e+1,1);return s.setDate(0),s.getDate()}(i.getFullYear(),i.getMonth()+e);i.getDate()>t&&i.setDate(t)}i[a](i[r]()+e*o)}return i}function a(t,e){switch(e){case"milliseconds":return new Date(t.getTime());case"seconds":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());case"minutes":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes());case"hours":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours());case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate());case"weeks":return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay());case"months":return new Date(t.getFullYear(),t.getMonth(),1);case"years":return new Date(t.getFullYear(),0,1);case"decades":return new Date(t.getFullYear()-t.getFullYear()%10,0,1);case"centuries":return new Date(t.getFullYear()-t.getFullYear()%100,0,1);default:return new Date}}function o(t,e,s){return 0===t?0:t*i[e]/i[s]}},60437:(t,e,s)=>{s.d(e,{Gv:()=>b,HH:()=>o,JR:()=>g,TC:()=>h,Tn:()=>f,Ue:()=>r,al:()=>a,cS:()=>_,dp:()=>c,fS:()=>p,op:()=>u,pp:()=>l,t8:()=>m});var i=s(70586),n=s(6570);function r(t=M){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e,s,i,n,a,o=r()){return o[0]=t,o[1]=e,o[2]=s,o[3]=i,o[4]=n,o[5]=a,o}function o(t,e){const s=isFinite(t[2])||isFinite(t[5]);return new n.Z(s?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function c(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function u(t,e,s=t){return s[0]=e[0],s[1]=e[1],s[2]=e[2],s!==t&&(s[3]=t[3],s[4]=t[4],s[5]=t[5]),s}function f(t,e,s=t){return s[3]=e[0],s[4]=e[1],s[5]=e[2],s!==t&&(s[0]=t[0],s[1]=t[1],s[2]=t[2]),t}function m(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function _(t){return t?m(t,b):r(b)}function g(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function d(t){return 6===t.length}function p(t,e,s){if((0,i.Wi)(t)||(0,i.Wi)(e))return t===e;if(!d(t)||!d(e))return!1;if(s){for(let i=0;i<t.length;i++)if(!s(t[i],e[i]))return!1}else for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}s(24470);const b=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];r()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1722,5732,661],{92835:(t,e,s)=>{s.d(e,{Z:()=>g});var i,n=s(43697),r=s(96674),a=s(70586),o=s(35463),h=s(5600),l=(s(75215),s(67676),s(71715)),c=s(52011),u=s(30556);let f=i=class extends r.wq{static get allTime(){return m}static get empty(){return _}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?t.getTime():null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?t.getTime():null}clone(){return new i({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=(0,a.pC)(this.start)?this.start.getTime():this.start,s=(0,a.pC)(this.end)?this.end.getTime():this.end,i=(0,a.pC)(t.start)?t.start.getTime():t.start,n=(0,a.pC)(t.end)?t.end.getTime():t.end;return e===i&&s===n}expandTo(t){if(this.isEmpty||this.isAllTime)return this.clone();const e=(0,a.yw)(this.start,(e=>(0,o.JE)(e,t))),s=(0,a.yw)(this.end,(e=>{const s=(0,o.JE)(e,t);return e.getTime()===s.getTime()?s:(0,o.Nm)(s,1,t)}));return new i({start:e,end:s})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return i.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=(0,a.R2)(this.start,-1/0,(t=>t.getTime())),s=(0,a.R2)(this.end,1/0,(t=>t.getTime())),n=(0,a.R2)(t.start,-1/0,(t=>t.getTime())),r=(0,a.R2)(t.end,1/0,(t=>t.getTime()));let o,h;if(n>=e&&n<=s?o=n:e>=n&&e<=r&&(o=e),s>=n&&s<=r?h=s:r>=e&&r<=s&&(h=r),null!=o&&null!=h&&!isNaN(o)&&!isNaN(h)){const t=new i;return t.start=o===-1/0?null:new Date(o),t.end=h===1/0?null:new Date(h),t}return i.empty}offset(t,e){if(this.isEmpty||this.isAllTime)return this.clone();const s=new i,{start:n,end:r}=this;return(0,a.pC)(n)&&(s.start=(0,o.Nm)(n,t,e)),(0,a.pC)(r)&&(s.end=(0,o.Nm)(r,t,e)),s}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return m.clone();const e=(0,a.pC)(this.start)&&(0,a.pC)(t.start)?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,s=(0,a.pC)(this.end)&&(0,a.pC)(t.end)?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new i({start:e,end:s})}};(0,n._)([(0,h.Cb)({type:Date,json:{write:{allowNull:!0}}})],f.prototype,"end",void 0),(0,n._)([(0,l.r)("end")],f.prototype,"readEnd",null),(0,n._)([(0,u.c)("end")],f.prototype,"writeEnd",null),(0,n._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],f.prototype,"isAllTime",null),(0,n._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],f.prototype,"isEmpty",null),(0,n._)([(0,h.Cb)({type:Date,json:{write:{allowNull:!0}}})],f.prototype,"start",void 0),(0,n._)([(0,l.r)("start")],f.prototype,"readStart",null),(0,n._)([(0,u.c)("start")],f.prototype,"writeStart",null),f=i=(0,n._)([(0,c.j)("esri.TimeExtent")],f);const m=new f,_=new f({start:void 0,end:void 0}),g=f},5732:(t,e,s)=>{s.d(e,{c:()=>i,g:()=>n});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},52138:(t,e,s)=>{s.d(e,{A:()=>g,a:()=>h,d:()=>_,e:()=>f,f:()=>m,g:()=>b,h:()=>y,i:()=>a,j:()=>v,k:()=>u,m:()=>l,s:()=>r,t:()=>o,w:()=>c,y:()=>w,z:()=>E});var i=s(65617),n=s(46851);function r(t,e,s,i,n,r,a,o,h,l,c,u,f,m,_,g,d){return t[0]=e,t[1]=s,t[2]=i,t[3]=n,t[4]=r,t[5]=a,t[6]=o,t[7]=h,t[8]=l,t[9]=c,t[10]=u,t[11]=f,t[12]=m,t[13]=_,t[14]=g,t[15]=d,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function o(t,e){if(t===e){const s=e[1],i=e[2],n=e[3],r=e[6],a=e[7],o=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=s,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=r,t[11]=e[14],t[12]=n,t[13]=a,t[14]=o}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function h(t,e){const s=e[0],i=e[1],n=e[2],r=e[3],a=e[4],o=e[5],h=e[6],l=e[7],c=e[8],u=e[9],f=e[10],m=e[11],_=e[12],g=e[13],d=e[14],p=e[15],b=s*o-i*a,M=s*h-n*a,v=s*l-r*a,y=i*h-n*o,E=i*l-r*o,w=n*l-r*h,A=c*g-u*_,D=c*d-f*_,C=c*p-m*_,S=u*d-f*g,z=u*p-m*g,x=f*p-m*d;let O=b*x-M*z+v*S+y*C-E*D+w*A;return O?(O=1/O,t[0]=(o*x-h*z+l*S)*O,t[1]=(n*z-i*x-r*S)*O,t[2]=(g*w-d*E+p*y)*O,t[3]=(f*E-u*w-m*y)*O,t[4]=(h*C-a*x-l*D)*O,t[5]=(s*x-n*C+r*D)*O,t[6]=(d*v-_*w-p*M)*O,t[7]=(c*w-f*v+m*M)*O,t[8]=(a*z-o*C+l*A)*O,t[9]=(i*C-s*z-r*A)*O,t[10]=(_*E-g*v+p*b)*O,t[11]=(u*v-c*E-m*b)*O,t[12]=(o*D-a*S-h*A)*O,t[13]=(s*S-i*D+n*A)*O,t[14]=(g*M-_*y-d*b)*O,t[15]=(c*y-u*M+f*b)*O,t):null}function l(t,e,s){const i=e[0],n=e[1],r=e[2],a=e[3],o=e[4],h=e[5],l=e[6],c=e[7],u=e[8],f=e[9],m=e[10],_=e[11],g=e[12],d=e[13],p=e[14],b=e[15];let M=s[0],v=s[1],y=s[2],E=s[3];return t[0]=M*i+v*o+y*u+E*g,t[1]=M*n+v*h+y*f+E*d,t[2]=M*r+v*l+y*m+E*p,t[3]=M*a+v*c+y*_+E*b,M=s[4],v=s[5],y=s[6],E=s[7],t[4]=M*i+v*o+y*u+E*g,t[5]=M*n+v*h+y*f+E*d,t[6]=M*r+v*l+y*m+E*p,t[7]=M*a+v*c+y*_+E*b,M=s[8],v=s[9],y=s[10],E=s[11],t[8]=M*i+v*o+y*u+E*g,t[9]=M*n+v*h+y*f+E*d,t[10]=M*r+v*l+y*m+E*p,t[11]=M*a+v*c+y*_+E*b,M=s[12],v=s[13],y=s[14],E=s[15],t[12]=M*i+v*o+y*u+E*g,t[13]=M*n+v*h+y*f+E*d,t[14]=M*r+v*l+y*m+E*p,t[15]=M*a+v*c+y*_+E*b,t}function c(t,e,s){const i=s[0],n=s[1],r=s[2];if(e===t)t[12]=e[0]*i+e[4]*n+e[8]*r+e[12],t[13]=e[1]*i+e[5]*n+e[9]*r+e[13],t[14]=e[2]*i+e[6]*n+e[10]*r+e[14],t[15]=e[3]*i+e[7]*n+e[11]*r+e[15];else{const s=e[0],a=e[1],o=e[2],h=e[3],l=e[4],c=e[5],u=e[6],f=e[7],m=e[8],_=e[9],g=e[10],d=e[11];t[0]=s,t[1]=a,t[2]=o,t[3]=h,t[4]=l,t[5]=c,t[6]=u,t[7]=f,t[8]=m,t[9]=_,t[10]=g,t[11]=d,t[12]=s*i+l*n+m*r+e[12],t[13]=a*i+c*n+_*r+e[13],t[14]=o*i+u*n+g*r+e[14],t[15]=h*i+f*n+d*r+e[15]}return t}function u(t,e,s){const i=s[0],n=s[1],r=s[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function f(t,e,s,i){let r,a,o,h,l,c,u,f,m,_,g,d,p,b,M,v,y,E,w,A,D,C,S,z,x=i[0],O=i[1],R=i[2],T=Math.sqrt(x*x+O*O+R*R);return T<(0,n.g)()?null:(T=1/T,x*=T,O*=T,R*=T,r=Math.sin(s),a=Math.cos(s),o=1-a,h=e[0],l=e[1],c=e[2],u=e[3],f=e[4],m=e[5],_=e[6],g=e[7],d=e[8],p=e[9],b=e[10],M=e[11],v=x*x*o+a,y=O*x*o+R*r,E=R*x*o-O*r,w=x*O*o-R*r,A=O*O*o+a,D=R*O*o+x*r,C=x*R*o+O*r,S=O*R*o-x*r,z=R*R*o+a,t[0]=h*v+f*y+d*E,t[1]=l*v+m*y+p*E,t[2]=c*v+_*y+b*E,t[3]=u*v+g*y+M*E,t[4]=h*w+f*A+d*D,t[5]=l*w+m*A+p*D,t[6]=c*w+_*A+b*D,t[7]=u*w+g*A+M*D,t[8]=h*C+f*S+d*z,t[9]=l*C+m*S+p*z,t[10]=c*C+_*S+b*z,t[11]=u*C+g*S+M*z,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function m(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function _(t,e,s){if(0===e)return a(t);let i,r,o,h=s[0],l=s[1],c=s[2],u=Math.sqrt(h*h+l*l+c*c);return u<(0,n.g)()?null:(u=1/u,h*=u,l*=u,c*=u,i=Math.sin(e),r=Math.cos(e),o=1-r,t[0]=h*h*o+r,t[1]=l*h*o+c*i,t[2]=c*h*o-l*i,t[3]=0,t[4]=h*l*o-c*i,t[5]=l*l*o+r,t[6]=c*l*o+h*i,t[7]=0,t[8]=h*c*o+l*i,t[9]=l*c*o-h*i,t[10]=c*c*o+r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function g(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=s,t[7]=0,t[8]=0,t[9]=-s,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function d(t,e,s){const i=e[0],n=e[1],r=e[2],a=e[3],o=i+i,h=n+n,l=r+r,c=i*o,u=i*h,f=i*l,m=n*h,_=n*l,g=r*l,d=a*o,p=a*h,b=a*l;return t[0]=1-(m+g),t[1]=u+b,t[2]=f-p,t[3]=0,t[4]=u-b,t[5]=1-(c+g),t[6]=_+d,t[7]=0,t[8]=f+p,t[9]=_-d,t[10]=1-(c+m),t[11]=0,t[12]=s[0],t[13]=s[1],t[14]=s[2],t[15]=1,t}const p=(0,i.c)();function b(t,e,s,i){const n=e[0],r=e[1],a=e[2],o=e[3],h=n+n,l=r+r,c=a+a,u=n*h,f=n*l,m=n*c,_=r*l,g=r*c,d=a*c,p=o*h,b=o*l,M=o*c,v=i[0],y=i[1],E=i[2];return t[0]=(1-(_+d))*v,t[1]=(f+M)*v,t[2]=(m-b)*v,t[3]=0,t[4]=(f-M)*y,t[5]=(1-(u+d))*y,t[6]=(g+p)*y,t[7]=0,t[8]=(m+b)*E,t[9]=(g-p)*E,t[10]=(1-(u+_))*E,t[11]=0,t[12]=s[0],t[13]=s[1],t[14]=s[2],t[15]=1,t}function M(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t[3]=e[3]-s[3],t[4]=e[4]-s[4],t[5]=e[5]-s[5],t[6]=e[6]-s[6],t[7]=e[7]-s[7],t[8]=e[8]-s[8],t[9]=e[9]-s[9],t[10]=e[10]-s[10],t[11]=e[11]-s[11],t[12]=e[12]-s[12],t[13]=e[13]-s[13],t[14]=e[14]-s[14],t[15]=e[15]-s[15],t}function v(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function y(t,e){if(t===e)return!0;const s=t[0],i=t[1],r=t[2],a=t[3],o=t[4],h=t[5],l=t[6],c=t[7],u=t[8],f=t[9],m=t[10],_=t[11],g=t[12],d=t[13],p=t[14],b=t[15],M=e[0],v=e[1],y=e[2],E=e[3],w=e[4],A=e[5],D=e[6],C=e[7],S=e[8],z=e[9],x=e[10],O=e[11],R=e[12],T=e[13],L=e[14],V=e[15],F=(0,n.g)();return Math.abs(s-M)<=F*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(i-v)<=F*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(r-y)<=F*Math.max(1,Math.abs(r),Math.abs(y))&&Math.abs(a-E)<=F*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(o-w)<=F*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(h-A)<=F*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(l-D)<=F*Math.max(1,Math.abs(l),Math.abs(D))&&Math.abs(c-C)<=F*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(u-S)<=F*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(f-z)<=F*Math.max(1,Math.abs(f),Math.abs(z))&&Math.abs(m-x)<=F*Math.max(1,Math.abs(m),Math.abs(x))&&Math.abs(_-O)<=F*Math.max(1,Math.abs(_),Math.abs(O))&&Math.abs(g-R)<=F*Math.max(1,Math.abs(g),Math.abs(R))&&Math.abs(d-T)<=F*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(p-L)<=F*Math.max(1,Math.abs(p),Math.abs(L))&&Math.abs(b-V)<=F*Math.max(1,Math.abs(b),Math.abs(V))}function E(t){const e=(0,n.g)(),s=t[0],i=t[1],r=t[2],a=t[4],o=t[5],h=t[6],l=t[8],c=t[9],u=t[10];return Math.abs(1-(s*s+a*a+l*l))<=e&&Math.abs(1-(i*i+o*o+c*c))<=e&&Math.abs(1-(r*r+h*h+u*u))<=e}function w(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const A=l,D=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t[3]=e[3]+s[3],t[4]=e[4]+s[4],t[5]=e[5]+s[5],t[6]=e[6]+s[6],t[7]=e[7]+s[7],t[8]=e[8]+s[8],t[9]=e[9]+s[9],t[10]=e[10]+s[10],t[11]=e[11]+s[11],t[12]=e[12]+s[12],t[13]=e[13]+s[13],t[14]=e[14]+s[14],t[15]=e[15]+s[15],t},adjoint:function(t,e){const s=e[0],i=e[1],n=e[2],r=e[3],a=e[4],o=e[5],h=e[6],l=e[7],c=e[8],u=e[9],f=e[10],m=e[11],_=e[12],g=e[13],d=e[14],p=e[15];return t[0]=o*(f*p-m*d)-u*(h*p-l*d)+g*(h*m-l*f),t[1]=-(i*(f*p-m*d)-u*(n*p-r*d)+g*(n*m-r*f)),t[2]=i*(h*p-l*d)-o*(n*p-r*d)+g*(n*l-r*h),t[3]=-(i*(h*m-l*f)-o*(n*m-r*f)+u*(n*l-r*h)),t[4]=-(a*(f*p-m*d)-c*(h*p-l*d)+_*(h*m-l*f)),t[5]=s*(f*p-m*d)-c*(n*p-r*d)+_*(n*m-r*f),t[6]=-(s*(h*p-l*d)-a*(n*p-r*d)+_*(n*l-r*h)),t[7]=s*(h*m-l*f)-a*(n*m-r*f)+c*(n*l-r*h),t[8]=a*(u*p-m*g)-c*(o*p-l*g)+_*(o*m-l*u),t[9]=-(s*(u*p-m*g)-c*(i*p-r*g)+_*(i*m-r*u)),t[10]=s*(o*p-l*g)-a*(i*p-r*g)+_*(i*l-r*o),t[11]=-(s*(o*m-l*u)-a*(i*m-r*u)+c*(i*l-r*o)),t[12]=-(a*(u*d-f*g)-c*(o*d-h*g)+_*(o*f-h*u)),t[13]=s*(u*d-f*g)-c*(i*d-n*g)+_*(i*f-n*u),t[14]=-(s*(o*d-h*g)-a*(i*d-n*g)+_*(i*h-n*o)),t[15]=s*(o*f-h*u)-a*(i*f-n*u)+c*(i*h-n*o),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],s=t[1],i=t[2],n=t[3],r=t[4],a=t[5],o=t[6],h=t[7],l=t[8],c=t[9],u=t[10],f=t[11],m=t[12],_=t[13],g=t[14],d=t[15];return(e*a-s*r)*(u*d-f*g)-(e*o-i*r)*(c*d-f*_)+(e*h-n*r)*(c*g-u*_)+(s*o-i*a)*(l*d-f*m)-(s*h-n*a)*(l*g-u*m)+(i*h-n*o)*(l*_-c*m)},equals:y,exactEquals:v,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const s=e[0],i=e[1],n=e[2],r=e[3],a=s+s,o=i+i,h=n+n,l=s*a,c=i*a,u=i*o,f=n*a,m=n*o,_=n*h,g=r*a,d=r*o,p=r*h;return t[0]=1-u-_,t[1]=c+p,t[2]=f-d,t[3]=0,t[4]=c-p,t[5]=1-l-_,t[6]=m+g,t[7]=0,t[8]=f+d,t[9]=m-g,t[10]=1-l-u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const s=p,i=-e[0],n=-e[1],r=-e[2],a=e[3],o=e[4],h=e[5],l=e[6],c=e[7],u=i*i+n*n+r*r+a*a;return u>0?(s[0]=2*(o*a+c*i+h*r-l*n)/u,s[1]=2*(h*a+c*n+l*i-o*r)/u,s[2]=2*(l*a+c*r+o*n-h*i)/u):(s[0]=2*(o*a+c*i+h*r-l*n),s[1]=2*(h*a+c*n+l*i-o*r),s[2]=2*(l*a+c*r+o*n-h*i)),d(t,e,s),t},fromRotation:_,fromRotationTranslation:d,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(t,e,s,i,n){const r=e[0],a=e[1],o=e[2],h=e[3],l=r+r,c=a+a,u=o+o,f=r*l,m=r*c,_=r*u,g=a*c,d=a*u,p=o*u,b=h*l,M=h*c,v=h*u,y=i[0],E=i[1],w=i[2],A=n[0],D=n[1],C=n[2],S=(1-(g+p))*y,z=(m+v)*y,x=(_-M)*y,O=(m-v)*E,R=(1-(f+p))*E,T=(d+b)*E,L=(_+M)*w,V=(d-b)*w,F=(1-(f+g))*w;return t[0]=S,t[1]=z,t[2]=x,t[3]=0,t[4]=O,t[5]=R,t[6]=T,t[7]=0,t[8]=L,t[9]=V,t[10]=F,t[11]=0,t[12]=s[0]+A-(S*A+O*D+L*C),t[13]=s[1]+D-(z*A+R*D+V*C),t[14]=s[2]+C-(x*A+T*D+F*C),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:m,fromXRotation:g,fromYRotation:function(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=0,t[2]=-s,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=s,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=s,t[2]=0,t[3]=0,t[4]=-s,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,s,i,n,r,a){const o=1/(s-e),h=1/(n-i),l=1/(r-a);return t[0]=2*r*o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*r*h,t[6]=0,t[7]=0,t[8]=(s+e)*o,t[9]=(n+i)*h,t[10]=(a+r)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*r*2*l,t[15]=0,t},getRotation:function(t,e){const s=e[0]+e[5]+e[10];let i=0;return s>0?(i=2*Math.sqrt(s+1),t[3]=.25*i,t[0]=(e[6]-e[9])/i,t[1]=(e[8]-e[2])/i,t[2]=(e[1]-e[4])/i):e[0]>e[5]&&e[0]>e[10]?(i=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/i,t[0]=.25*i,t[1]=(e[1]+e[4])/i,t[2]=(e[8]+e[2])/i):e[5]>e[10]?(i=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/i,t[0]=(e[1]+e[4])/i,t[1]=.25*i,t[2]=(e[6]+e[9])/i):(i=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/i,t[0]=(e[8]+e[2])/i,t[1]=(e[6]+e[9])/i,t[2]=.25*i),t},getScaling:function(t,e){const s=e[0],i=e[1],n=e[2],r=e[4],a=e[5],o=e[6],h=e[8],l=e[9],c=e[10];return t[0]=Math.sqrt(s*s+i*i+n*n),t[1]=Math.sqrt(r*r+a*a+o*o),t[2]=Math.sqrt(h*h+l*l+c*c),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:w,identity:a,invert:h,invertOrIdentity:function(t,e){return h(t,e)||a(t),t},isOrthoNormal:E,lookAt:function(t,e,s,i){let r,o,h,l,c,u,f,m,_,g;const d=e[0],p=e[1],b=e[2],M=i[0],v=i[1],y=i[2],E=s[0],w=s[1],A=s[2],D=(0,n.g)();return Math.abs(d-E)<D&&Math.abs(p-w)<D&&Math.abs(b-A)<D?a(t):(f=d-E,m=p-w,_=b-A,g=1/Math.sqrt(f*f+m*m+_*_),f*=g,m*=g,_*=g,r=v*_-y*m,o=y*f-M*_,h=M*m-v*f,g=Math.sqrt(r*r+o*o+h*h),g?(g=1/g,r*=g,o*=g,h*=g):(r=0,o=0,h=0),l=m*h-_*o,c=_*r-f*h,u=f*o-m*r,g=Math.sqrt(l*l+c*c+u*u),g?(g=1/g,l*=g,c*=g,u*=g):(l=0,c=0,u=0),t[0]=r,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=m,t[7]=0,t[8]=h,t[9]=u,t[10]=_,t[11]=0,t[12]=-(r*d+o*p+h*b),t[13]=-(l*d+c*p+u*b),t[14]=-(f*d+m*p+_*b),t[15]=1,t)},mul:A,multiply:l,multiplyScalar:function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*s,t[5]=e[5]*s,t[6]=e[6]*s,t[7]=e[7]*s,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12]*s,t[13]=e[13]*s,t[14]=e[14]*s,t[15]=e[15]*s,t},multiplyScalarAndAdd:function(t,e,s,i){return t[0]=e[0]+s[0]*i,t[1]=e[1]+s[1]*i,t[2]=e[2]+s[2]*i,t[3]=e[3]+s[3]*i,t[4]=e[4]+s[4]*i,t[5]=e[5]+s[5]*i,t[6]=e[6]+s[6]*i,t[7]=e[7]+s[7]*i,t[8]=e[8]+s[8]*i,t[9]=e[9]+s[9]*i,t[10]=e[10]+s[10]*i,t[11]=e[11]+s[11]*i,t[12]=e[12]+s[12]*i,t[13]=e[13]+s[13]*i,t[14]=e[14]+s[14]*i,t[15]=e[15]+s[15]*i,t},ortho:function(t,e,s,i,n,r,a){const o=1/(e-s),h=1/(i-n),l=1/(r-a);return t[0]=-2*o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*h,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+s)*o,t[13]=(n+i)*h,t[14]=(a+r)*l,t[15]=1,t},perspective:function(t,e,s,i,n){const r=1/Math.tan(e/2);let a;return t[0]=r/s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=n&&n!==1/0?(a=1/(i-n),t[10]=(n+i)*a,t[14]=2*n*i*a):(t[10]=-1,t[14]=-2*i),t},perspectiveFromFieldOfView:function(t,e,s,i){const n=Math.tan(e.upDegrees*Math.PI/180),r=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),o=Math.tan(e.rightDegrees*Math.PI/180),h=2/(a+o),l=2/(n+r);return t[0]=h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(a-o)*h*.5,t[9]=(n-r)*l*.5,t[10]=i/(s-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*s/(s-i),t[15]=0,t},rotate:f,rotateX:function(t,e,s){const i=Math.sin(s),n=Math.cos(s),r=e[4],a=e[5],o=e[6],h=e[7],l=e[8],c=e[9],u=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=r*n+l*i,t[5]=a*n+c*i,t[6]=o*n+u*i,t[7]=h*n+f*i,t[8]=l*n-r*i,t[9]=c*n-a*i,t[10]=u*n-o*i,t[11]=f*n-h*i,t},rotateY:function(t,e,s){const i=Math.sin(s),n=Math.cos(s),r=e[0],a=e[1],o=e[2],h=e[3],l=e[8],c=e[9],u=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=r*n-l*i,t[1]=a*n-c*i,t[2]=o*n-u*i,t[3]=h*n-f*i,t[8]=r*i+l*n,t[9]=a*i+c*n,t[10]=o*i+u*n,t[11]=h*i+f*n,t},rotateZ:function(t,e,s){const i=Math.sin(s),n=Math.cos(s),r=e[0],a=e[1],o=e[2],h=e[3],l=e[4],c=e[5],u=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=r*n+l*i,t[1]=a*n+c*i,t[2]=o*n+u*i,t[3]=h*n+f*i,t[4]=l*n-r*i,t[5]=c*n-a*i,t[6]=u*n-o*i,t[7]=f*n-h*i,t},scale:u,set:r,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:D,subtract:M,targetTo:function(t,e,s,i){const n=e[0],r=e[1],a=e[2],o=i[0],h=i[1],l=i[2];let c=n-s[0],u=r-s[1],f=a-s[2],m=c*c+u*u+f*f;m>0&&(m=1/Math.sqrt(m),c*=m,u*=m,f*=m);let _=h*f-l*u,g=l*c-o*f,d=o*u-h*c;return m=_*_+g*g+d*d,m>0&&(m=1/Math.sqrt(m),_*=m,g*=m,d*=m),t[0]=_,t[1]=g,t[2]=d,t[3]=0,t[4]=u*d-f*g,t[5]=f*_-c*d,t[6]=c*g-u*_,t[7]=0,t[8]=c,t[9]=u,t[10]=f,t[11]=0,t[12]=n,t[13]=r,t[14]=a,t[15]=1,t},translate:c,transpose:o},Symbol.toStringTag,{value:"Module"}))},2368:(t,e,s)=>{s.d(e,{J:()=>c,j:()=>u});var i=s(43697),n=s(15923),r=(s(80442),s(22974)),a=(s(92604),s(70586)),o=s(31263),h=s(1153),l=s(52011);const c=t=>{let e=class extends t{clone(){const t=(0,a.s3)((0,h.vw)(this),"unable to clone instance of non-accessor class"),e=t.metadatas,s=t.store,i={},n=new Map;for(const t in e){const a=e[t],h=s?.originOf(t),l=a.clonable;if(a.readOnly||!1===l||h!==o.s3.USER&&h!==o.s3.DEFAULTS&&h!==o.s3.WEB_MAP&&h!==o.s3.WEB_SCENE)continue;const c=this[t];let u=null;u="function"==typeof l?l(c):"reference"===l?c:(0,r.Vo)(c),null!=c&&null==u||(h===o.s3.DEFAULTS?n.set(t,u):i[t]=u)}const l=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const t=(0,h.vw)(l)?.store;if(t)for(const[e,s]of n)t.set(e,s,o.s3.DEFAULTS)}return l}};return e=(0,i._)([(0,l.j)("esri.core.Clonable")],e),e};let u=class extends(c(n.Z)){};u=(0,i._)([(0,l.j)("esri.core.Clonable")],u)},46791:(t,e,s)=>{s.d(e,{Z:()=>O});var i,n=s(43697),r=s(3894),a=s(32448),o=s(22974),h=s(70586),l=s(71143);!function(t){t[t.ADD=1]="ADD",t[t.REMOVE=2]="REMOVE",t[t.MOVE=4]="MOVE"}(i||(i={}));var c,u=s(1654),f=s(5600),m=s(75215),_=s(52421),g=s(52011),d=s(58971),p=s(10661);const b=new l.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},void 0,(t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1})),M=()=>{};function v(t){return t?t instanceof x?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function y(t){if(t&&t.length)return t[0]}function E(t,e,s,i){const n=Math.min(t.length-s,e.length-i);let r=0;for(;r<n&&t[s+r]===e[i+r];)r++;return r}function w(t,e,s,i){e&&e.forEach(((e,n,r)=>{t.push(e),w(t,s.call(i,e,n,r),s,i)}))}const A=new Set,D=new Set,C=new Set,S=new Map;let z=0,x=c=class extends a.Z.EventedAccessor{static isCollection(t){return null!=t&&t instanceof c}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new p.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:z++})}normalizeCtorArgs(t){return t?Array.isArray(t)||t instanceof c?{items:t}:t:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,d.it)(this._observable),this._items}set items(t){this._emitBeforeChanges(i.ADD)||(this._splice(0,this.length,v(t)),this._emitAfterChanges(i.ADD))}hasEventListener(t){return"change"===t?this._chgListeners.length>0:this._emitter.hasEventListener(t)}on(t,e){if("change"===t){const t=this._chgListeners,s={removed:!1,callback:e};return t.push(s),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=M,s.removed=!0,t.splice(t.indexOf(s),1)}}}return this._emitter.on(t,e)}once(t,e){const s=this.on(t,e);return{remove(){s.remove()}}}add(t,e){if((0,d.it)(this._observable),this._emitBeforeChanges(i.ADD))return this;const s=this.getNextIndex(e??null);return this._splice(s,0,[t]),this._emitAfterChanges(i.ADD),this}addMany(t,e=this._items.length){if((0,d.it)(this._observable),!t||!t.length)return this;if(this._emitBeforeChanges(i.ADD))return this;const s=this.getNextIndex(e);return this._splice(s,0,v(t)),this._emitAfterChanges(i.ADD),this}at(t){if((0,d.it)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return[];const t=this._splice(0,this.length)||[];return this._emitAfterChanges(i.REMOVE),t}clone(){return(0,d.it)(this._observable),this._createNewInstance({items:this._items.map(o.d9)})}concat(...t){(0,d.it)(this._observable);const e=t.map(v);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const s=(0,h.j0)(this._splice(0,this.length)),n=s.length;for(let i=0;i<n;i++)t.call(e,s[i],i,s);this._emitAfterChanges(i.REMOVE)}every(t,e){return(0,d.it)(this._observable),this._items.every(t,e)}filter(t,e){let s;return(0,d.it)(this._observable),s=2===arguments.length?this._items.filter(t,e):this._items.filter(t),this._createNewInstance({items:s})}find(t,e){return(0,d.it)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,d.it)(this._observable),this._items.findIndex(t,e)}flatten(t,e){(0,d.it)(this._observable);const s=[];return w(s,this,t,e),new c(s)}forEach(t,e){return(0,d.it)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,d.it)(this._observable),this._items[t]}getNextIndex(t){(0,d.it)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,d.it)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,d.it)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,d.it)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,d.it)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,d.it)(this._observable);const s=this._items.map(t,e);return new c({items:s})}reorder(t,e=this.length-1){(0,d.it)(this._observable);const s=this.indexOf(t);if(-1!==s){if(e<0?e=0:e>=this.length&&(e=this.length-1),s!==e){if(this._emitBeforeChanges(i.MOVE))return t;this._splice(s,1),this._splice(e,0,[t]),this._emitAfterChanges(i.MOVE)}return t}}pop(){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const t=y(this._splice(this.length-1,1));return this._emitAfterChanges(i.REMOVE),t}push(...t){return(0,d.it)(this._observable),this._emitBeforeChanges(i.ADD)||(this._splice(this.length,0,t),this._emitAfterChanges(i.ADD)),this.length}reduce(t,e){(0,d.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(t,e):s.reduce(t)}reduceRight(t,e){(0,d.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(t,e):s.reduceRight(t)}remove(t){return(0,d.it)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,d.it)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(i.REMOVE))return;const e=y(this._splice(t,1));return this._emitAfterChanges(i.REMOVE),e}removeMany(t){if((0,d.it)(this._observable),!t||!t.length||this._emitBeforeChanges(i.REMOVE))return[];const e=t instanceof c?t.toArray():t,s=this._items,n=[],r=e.length;for(let t=0;t<r;t++){const i=e[t],r=s.indexOf(i);if(r>-1){const i=1+E(e,s,t+1,r+1),a=this._splice(r,i);a&&a.length>0&&n.push.apply(n,a),t+=i-1}}return this._emitAfterChanges(i.REMOVE),n}reverse(){if((0,d.it)(this._observable),this._emitBeforeChanges(i.MOVE))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(i.MOVE),this}shift(){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const t=y(this._splice(0,1));return this._emitAfterChanges(i.REMOVE),t}slice(t=0,e=this.length){return(0,d.it)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,d.it)(this._observable),this._items.some(t,e)}sort(t){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.MOVE))return this;const e=(0,h.j0)(this._splice(0,this.length));return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(i.MOVE),this}splice(t,e,...s){(0,d.it)(this._observable);const n=(e?i.REMOVE:0)|(s.length?i.ADD:0);if(this._emitBeforeChanges(n))return[];const r=this._splice(t,e,s)||[];return this._emitAfterChanges(n),r}toArray(){return(0,d.it)(this._observable),this._items.slice()}toJSON(){return(0,d.it)(this._observable),this.toArray()}toLocaleString(){return(0,d.it)(this._observable),this._items.toLocaleString()}toString(){return(0,d.it)(this._observable),this._items.toString()}unshift(...t){return(0,d.it)(this._observable),!t.length||this._emitBeforeChanges(i.ADD)||(this._splice(0,0,t),this._emitAfterChanges(i.ADD)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,s){const i=this._items,n=this.itemType;let r,a;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,u.Os)((()=>this._dispatchChange()))),e){if(a=i.splice(t,e),this.hasEventListener("before-remove")){const e=b.acquire();e.target=this,e.cancellable=!0;for(let s=0,n=a.length;s<n;s++)r=a[s],e.reset(r),this.emit("before-remove",e),e.defaultPrevented&&(a.splice(s,1),i.splice(t,0,r),t+=1,s-=1,n-=1);b.release(e)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const t=b.acquire();t.target=this,t.cancellable=!1;const e=a.length;for(let s=0;s<e;s++)t.reset(a[s]),this.emit("after-remove",t);b.release(t)}}if(s&&s.length){if(n){const t=[];for(const e of s){const s=n.ensureType(e);null==s&&null!=e||t.push(s)}s=t}const e=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),a=t===this.length;if(e||r){const n=b.acquire();n.target=this,n.cancellable=!0;const o=b.acquire();o.target=this,o.cancellable=!1;for(const h of s)e?(n.reset(h),this.emit("before-add",n),n.defaultPrevented||(a?i.push(h):i.splice(t++,0,h),this._set("length",i.length),r&&(o.reset(h),this.emit("after-add",o)))):(a?i.push(h):i.splice(t++,0,h),this._set("length",i.length),o.reset(h),this.emit("after-add",o));b.release(o),b.release(n)}else{if(a)for(const t of s)i.push(t);else i.splice(t,0,...s);this._set("length",i.length)}}return(s&&s.length||a&&a.length)&&this._notifyChangeEvent(s,a),a}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const s=b.acquire();s.target=this,s.cancellable=!0,s.type=t,this.emit("before-changes",s),e=s.defaultPrevented,b.release(s)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=b.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),b.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;A.clear(),D.clear(),C.clear();for(const{added:e,removed:s}of t){if(e)if(0===C.size&&0===D.size)for(const t of e)A.add(t);else for(const t of e)D.has(t)?(C.add(t),D.delete(t)):C.has(t)||A.add(t);if(s)if(0===C.size&&0===A.size)for(const t of s)D.add(t);else for(const t of s)A.has(t)?A.delete(t):(C.delete(t),D.add(t))}const s=r.Z.acquire();A.forEach((t=>{s.push(t)}));const i=r.Z.acquire();D.forEach((t=>{i.push(t)}));const n=this._items,a=e.items,o=r.Z.acquire();if(C.forEach((t=>{a.indexOf(t)!==n.indexOf(t)&&o.push(t)})),e.listeners&&(s.length||i.length||o.length)){const t={target:this,added:s,removed:i,moved:o},n=e.listeners.length;for(let s=0;s<n;s++){const i=e.listeners[s];i.removed||i.callback.call(this,t)}}r.Z.release(s),r.Z.release(i),r.Z.release(o)}A.clear(),D.clear(),C.clear()}};x.ofType=t=>{if(!t)return c;if(S.has(t))return S.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const s in t.typeMap){const i=t.typeMap[s].prototype.declaredClass;e?e+=` | ${i}`:e=i}let s=class extends c{};return(0,n._)([(0,_.c)({Type:t,ensureType:"function"==typeof t?(0,m.se)(t):(0,m.N7)(t)})],s.prototype,"itemType",void 0),s=(0,n._)([(0,g.j)(`esri.core.Collection<${e}>`)],s),S.set(t,s),s},(0,n._)([(0,f.Cb)()],x.prototype,"length",void 0),(0,n._)([(0,f.Cb)()],x.prototype,"items",null),x=c=(0,n._)([(0,g.j)("esri.core.Collection")],x);const O=x},69801:(t,e,s)=>{s.d(e,{WJ:()=>h,Xq:()=>o});var i,n,r=s(70586),a=s(44553);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(t,e,s){this._namespace=t,this._storage=e,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",s&&(this._storage.registerRemoveFunc(this._namespace,s),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(t,e,s,i=0){this._storage.put(this._namespace+t,e,s,i)}get(t){const e=this._storage.get(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}pop(t){const e=this._storage.pop(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,s){this._storage.updateSize(this._namespace+t,e,s)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class h{constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new a.Z,this._users=new a.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get size(){return this._size}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimit()}put(t,e,s,n){const r=this._db.get(t);if(r&&(this._size-=r.size,this._db.delete(t),r.entry!==e&&this._notifyRemove(t,r.entry,i.ALL)),s>this._maxSize)return void this._notifyRemove(t,e,i.ALL);if(void 0===e)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return void console.warn("Refusing to cache entry with invalid size "+s);const a=1+Math.max(n,-3)- -3;this._db.set(t,{entry:e,size:s,lifetime:a,lives:a}),this._size+=s,this._checkSizeLimit()}updateSize(t,e,s){const n=this._db.get(t);if(n&&n.entry===e){for(this._size-=n.size;s>this._maxSize;){const n=this._notifyRemove(t,e,i.SOME);if(!((0,r.pC)(n)&&n>0))return void this._db.delete(t);s=n}n.size=s,this._size+=s,this._checkSizeLimit()}}pop(t){const e=this._db.get(t);if(e)return this._size-=e.size,this._db.delete(t),++this._hit,e.entry;++this._miss}get(t){const e=this._db.get(t);if(void 0!==e)return this._db.delete(t),e.lives=e.lifetime,this._db.set(t,e),++this._hit,e.entry;++this._miss}getStats(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach(((t,i)=>{const n=t.lifetime;s[n]=(s[n]||0)+t.size,this._users.forAll((s=>{const n=s.namespace;if(i.startsWith(n)){const s=e[n]||0;e[n]=s+t.size}}))}));const i={};this._users.forAll((t=>{const s=t.namespace;if(!isNaN(t.hitRate)&&t.hitRate>0){const n=e[s]||0;e[s]=n,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(e);n.sort(((t,s)=>e[s]-e[t])),n.forEach((s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]));for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this.size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){this._db.forEach(((e,s)=>{s.startsWith(t)&&(this._size-=e.size,this._db.delete(s),this._notifyRemove(s,e.entry,i.ALL))}))}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,i.ALL))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s){let i;return this._removeFuncs.some((n=>{if(t.startsWith(n[0])){const t=n[1](e,s);return"number"==typeof t&&(i=t),!0}return!1})),i}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[t,e]of this._db){if(this._db.delete(t),e.lives<=1){this._size-=e.size;const s=this._notifyRemove(t,e.entry,i.SOME);(0,r.pC)(s)&&s>0&&(this._size+=s,e.lives=e.lifetime,e.size=s,this._db.set(t,e))}else--e.lives,this._db.set(t,e);if(this._size<=.9*this.maxSize)return}}}},52421:(t,e,s)=>{function i(t){return(e,s)=>{e[s]=t}}s.d(e,{c:()=>i})},22862:(t,e,s)=>{s.d(e,{Hg:()=>g,V7:()=>_,uD:()=>m});var i=s(15923),n=s(46791),r=s(70586),a=s(1153);const o=["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"];function h(t){return t instanceof i.Z}function l(t){return t instanceof n.Z?Object.keys(t.items):h(t)?(0,a.vw)(t).keys():t?Object.keys(t):[]}function c(t,e){return t instanceof n.Z?t.items[e]:t[e]}function u(t){return t?t.declaredClass:null}function f(t,e){const s=t.diff;if(s&&"function"==typeof s)return s(t,e);const i=l(t),n=l(e);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(t,e){return!(!Array.isArray(t)||!Array.isArray(e))&&t.length!==e.length}(t,e))return{type:"complete",oldValue:t,newValue:e};const a=n.filter((t=>!i.includes(t))),m=i.filter((t=>!n.includes(t))),_=i.filter((s=>n.includes(s)&&c(t,s)!==c(e,s))).concat(a,m).sort(),g=u(t);if(g&&o.includes(g)&&_.length)return{type:"complete",oldValue:t,newValue:e};let d;const p=h(t)&&h(e);for(const i of _){const n=c(t,i),a=c(e,i);let o;if((p||"function"!=typeof n&&"function"!=typeof a)&&n!==a&&(null!=n||null!=a)){if(s&&s[i]&&"function"==typeof s[i])o=s[i](n,a);else if(n instanceof Date&&a instanceof Date){if(n.getTime()===a.getTime())continue;o={type:"complete",oldValue:n,newValue:a}}else o="object"==typeof n&&"object"==typeof a&&u(n)===u(a)?f(n,a):{type:"complete",oldValue:n,newValue:a};(0,r.pC)(o)&&((0,r.pC)(d)?d.diff[i]=o:d={type:"partial",diff:{[i]:o}})}}return d}function m(t,e){if((0,r.Wi)(t))return!1;const s=e.split(".");let i=t;for(const t of s){if("complete"===i.type)return!0;if("partial"!==i.type)return!1;{const e=i.diff[t];if(!e)return!1;i=e}}return!0}function _(t,e){for(const s of e)if(m(t,s))return!0;return!1}function g(t,e){if(!("function"==typeof t||"function"==typeof e||(0,r.Wi)(t)&&(0,r.Wi)(e)))return(0,r.Wi)(t)||(0,r.Wi)(e)||"object"==typeof t&&"object"==typeof e&&u(t)!==u(e)?{type:"complete",oldValue:t,newValue:e}:f(t,e)}},10661:(t,e,s)=>{s.d(e,{s:()=>n});var i=s(42100);class n extends i.s{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},17445:(t,e,s)=>{s.d(e,{N1:()=>f,YP:()=>h,Z_:()=>g,gx:()=>l,nn:()=>d,on:()=>u,tX:()=>p});var i=s(91460),n=s(50758),r=s(70586),a=s(95330),o=s(26258);function h(t,e,s={}){return c(t,e,s,m)}function l(t,e,s={}){return c(t,e,s,_)}function c(t,e,s={},i){let n=null;const a=s.once?(t,s)=>{i(t)&&((0,r.hw)(n),e(t,s))}:(t,s)=>{i(t)&&e(t,s)};if(n=(0,o.aQ)(t,a,s.sync,s.equals),s.initial){const e=t();a(e,e)}return n}function u(t,e,s,a={}){let o=null,l=null,c=null;function u(){o&&l&&(l.remove(),a.onListenerRemove?.(o),o=null,l=null)}function f(t){a.once&&a.once&&(0,r.hw)(c),s(t)}const m=h(t,((t,s)=>{u(),(0,i.vT)(t)&&(o=t,l=(0,i.on)(t,e,f),a.onListenerAdd?.(t))}),{sync:a.sync,initial:!0});return c=(0,n.kB)((()=>{m.remove(),u()})),c}function f(t,e){return function(t,e,s){if((0,a.Hc)(s))return Promise.reject((0,a.zE)());const i=t();if(e?.(i))return Promise.resolve(i);let o=null;function h(){o=(0,r.hw)(o)}return new Promise(((i,r)=>{o=(0,n.AL)([(0,a.fu)(s,(()=>{h(),r((0,a.zE)())})),c(t,(t=>{h(),i(t)}),{sync:!1,once:!0},e??m)])}))}(t,_,e)}function m(t){return!0}function _(t){return!!t}s(87538);const g={sync:!0},d={initial:!0},p={sync:!0,initial:!0}},35463:(t,e,s)=>{s.d(e,{JE:()=>a,Nm:()=>r,rJ:()=>o}),s(80442);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},n={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function r(t,e,s){const i=new Date(t.getTime());if(e&&s){const t=n[s],{getter:r,setter:a,multiplier:o}=t;if("months"===s){const t=function(t,e){const s=new Date(t,e+1,1);return s.setDate(0),s.getDate()}(i.getFullYear(),i.getMonth()+e);i.getDate()>t&&i.setDate(t)}i[a](i[r]()+e*o)}return i}function a(t,e){switch(e){case"milliseconds":return new Date(t.getTime());case"seconds":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());case"minutes":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes());case"hours":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours());case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate());case"weeks":return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay());case"months":return new Date(t.getFullYear(),t.getMonth(),1);case"years":return new Date(t.getFullYear(),0,1);case"decades":return new Date(t.getFullYear()-t.getFullYear()%10,0,1);case"centuries":return new Date(t.getFullYear()-t.getFullYear()%100,0,1);default:return new Date}}function o(t,e,s){return 0===t?0:t*i[e]/i[s]}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6584,9880,216],{85839:(e,t,a)=>{a.d(t,{nu:()=>i}),a(48853);var n=a(99514),r=(a(80216),a(17126),a(42799));class i{constructor(){this.dateTimeReferenceMetaData=null,this._fieldTimeZoneIndex={},this._fieldIndex=null,this._ianaPreferred=null,this._ianaTimeInfo=null,this._ianaEditFields=null,this._ianaLayerDateFields=null}static create(e,t){const a=new i;return a.dateTimeReferenceMetaData=t,a._fieldIndex=e instanceof n.Z?e:new n.Z(e),a}fieldTimeZone(e){const t=this._fieldIndex?.get(e);if(!t)return null;if("date"!==t.type&&"esriFieldTypeDate"!==t.type)return null;const a=this._fieldTimeZoneIndex[t.name];if(void 0!==a)return a;const n=[{field:this.dateTimeReferenceMetaData?.editFieldsInfo?.creationDateField,timeReference:this.dateTimeReferenceMetaData?.editFieldsInfo?.dateFieldsTimeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone},{field:this.dateTimeReferenceMetaData?.editFieldsInfo?.editDateField,timeReference:this.dateTimeReferenceMetaData?.editFieldsInfo?.dateFieldsTimeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone},{field:this.dateTimeReferenceMetaData?.timeInfo?.startTimeField,timeReference:this.dateTimeReferenceMetaData?.timeInfo?.timeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone},{field:this.dateTimeReferenceMetaData?.timeInfo?.endTimeField,timeReference:this.dateTimeReferenceMetaData?.timeInfo?.timeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone}];for(const e of n)if(e.field===t.name){const a=this.convertToIANA(e.timeReference,e.isunknown);return this._fieldTimeZoneIndex[t.name]=a,a}const r=this.convertToIANA(this.dateTimeReferenceMetaData?.dateFieldsTimeReference,this.dateTimeReferenceMetaData?.datesInUnknownTimezone);return this._fieldTimeZoneIndex[t.name]=r,r}convertToIANA(e,t){return t?"unknown":function(e){return e?.timeZoneIANA?e?.timeZoneIANA:e?.timeZone?(0,r.G)(e,""):""}(e)}get layerPreferredTimeZone(){if(null!==this._ianaPreferred)return this._ianaPreferred;this._ianaPreferred="";const e=this.dateTimeReferenceMetaData?.preferredTimeReference;return this._ianaPreferred=this.convertToIANA(e,!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone),this._ianaPreferred}get layerTimeInfoTimeZone(){if(null!==this._ianaTimeInfo)return this._ianaTimeInfo;this._ianaTimeInfo="";const e=this.dateTimeReferenceMetaData?.timeInfo?.timeReference;return this._ianaTimeInfo=this.convertToIANA(e,!1),this._ianaTimeInfo}get layerEditFieldsTimeZone(){if(null!==this._ianaEditFields)return this._ianaEditFields;this._ianaEditFields="";const e=this.dateTimeReferenceMetaData?.editFieldsInfo?.dateFieldsTimeReference;return this._ianaEditFields=this.convertToIANA(e,this.dateTimeReferenceMetaData?.datesInUnknownTimezone),this._ianaEditFields}get layerDateFieldsTimeZone(){if(null!==this._ianaLayerDateFields)return this._ianaLayerDateFields;this._ianaLayerDateFields="";const e=this.dateTimeReferenceMetaData?.dateFieldsTimeReference;return this._ianaLayerDateFields=this.convertToIANA(e,!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone),this._ianaLayerDateFields}}},53073:(e,t,a)=>{a.d(t,{Z:()=>u});var n=a(75148),r=a(59987),i=a(91136),s=a(90961),o=a(90658),l=a(8667);class u extends i.Z{constructor(e){super(e),this._relation="",this._relationGeom=null,this._relationString="",this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._relationString=e.relationString,this._parent=e.parentfeatureset,this._maxProcessing=40,this._relation=e.relation,this._relationGeom=e.relationGeom}async _getSet(e){if(null===this._wset){await this._ensureLoaded();const t=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,null,null,e);return this._checkCancelled(e),this._wset=new s.Z(t._candidates.slice(0),t._known.slice(0),t._ordered,this._clonePageDefinition(t.pagesDefinition)),this._wset}return this._wset}_isInFeatureSet(e){let t=this._parent._isInFeatureSet(e);return t===o.dj.NotInFeatureSet?t:(t=this._idstates[e],void 0===t?o.dj.Unknown:t)}_getFeature(e,t,a){return this._parent._getFeature(e,t,a)}_getFeatures(e,t,a,n){return this._parent._getFeatures(e,t,a,n)}_featureFromCache(e){return this._parent._featureFromCache(e)}async executeSpatialRelationTest(e){if(null===e.geometry)return!1;switch(this._relation){case"esriSpatialRelEnvelopeIntersects":{const t=(0,o.SV)(this._relationGeom),a=(0,o.SV)(e.geometry);return(0,l.kK)(t,a)}case"esriSpatialRelIntersects":return(0,l.kK)(this._relationGeom,e.geometry);case"esriSpatialRelContains":return(0,l.r3)(this._relationGeom,e.geometry);case"esriSpatialRelOverlaps":return(0,l.Nm)(this._relationGeom,e.geometry);case"esriSpatialRelWithin":return(0,l.uh)(this._relationGeom,e.geometry);case"esriSpatialRelTouches":return(0,l.W4)(this._relationGeom,e.geometry);case"esriSpatialRelCrosses":return(0,l.jU)(this._relationGeom,e.geometry);case"esriSpatialRelRelation":return(0,l.LV)(this._relationGeom,e.geometry,this._relationString??"")}}async _fetchAndRefineFeatures(e,t,a){const n=new s.Z([],e,!1,null),r=Math.min(t,e.length);await(this._parent?._getFeatures(n,-1,r,a)),this._checkCancelled(a);const i=[];for(let t=0;t<r;t++){const a=this._parent._featureFromCache(e[t]);i.push(await this.executeSpatialRelationTest(a))}for(let a=0;a<t;a++)!0===i[a]?this._idstates[e[a]]=o.dj.InFeatureSet:this._idstates[e[a]]=o.dj.NotInFeatureSet;return"success"}async _getFilteredSet(e,t,a,n,r){await this._ensureLoaded();const i=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a,n,r);let o;return this._checkCancelled(r),o=null!==t?new s.Z(i._candidates.slice(0).concat(i._known.slice(0)),[],i._ordered,this._clonePageDefinition(i.pagesDefinition)):new s.Z(i._candidates.slice(0),i._known.slice(0),i._ordered,this._clonePageDefinition(i.pagesDefinition)),o}async _stat(e,t,a,n,r,i,s){if(""!==a)return{calculated:!1};const o=await this._parent._stat(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,r,i,s);return!1===o.calculated?null===r&&""===a&&null===n?this._manualStat(e,t,i,s):{calculated:!1}:o}async _canDoAggregates(e,t,a,n,r){return""===a&&null===n&&null!==this._parent&&this._parent._canDoAggregates(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,r)}async _getAggregatePagesDataSourceDefinition(e,t,a,n,i,s,o){if(null===this._parent)throw new r.EN(r.H9.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,i,s,o)}static registerAction(){i.Z._featuresetFunctions.intersects=function(e){return null==e?new n.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelIntersects",relationGeom:e})},i.Z._featuresetFunctions.envelopeIntersects=function(e){return null==e?new n.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelEnvelopeIntersects",relationGeom:e})},i.Z._featuresetFunctions.contains=function(e){return null==e?new n.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelContains",relationGeom:e})},i.Z._featuresetFunctions.overlaps=function(e){return null==e?new n.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelOverlaps",relationGeom:e})},i.Z._featuresetFunctions.within=function(e){return null==e?new n.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelWithin",relationGeom:e})},i.Z._featuresetFunctions.touches=function(e){return null==e?new n.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelTouches",relationGeom:e})},i.Z._featuresetFunctions.crosses=function(e){return null==e?new n.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelCrosses",relationGeom:e})},i.Z._featuresetFunctions.relate=function(e,t){return null==e?new n.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelRelation",relationGeom:e,relationString:t})}}}},75148:(e,t,a)=>{a.d(t,{Z:()=>o});var n=a(59987),r=a(91136),i=a(90961),s=a(90658);class o extends r.Z{constructor(e){super(e),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._wset=new i.Z([],[],!1,null),this._parent=e.parentfeatureset,this._databaseType=s.Bj.Standardised}async _getSet(){return this._wset}optimisePagingFeatureQueries(){}_isInFeatureSet(){return s.dj.NotInFeatureSet}async _getFeature(){throw new n.EN(n.H9.NeverReach)}async queryAttachments(){return[]}async _getFeatures(){return"success"}_featureFromCache(){return null}async _fetchAndRefineFeatures(){throw new n.EN(n.H9.NeverReach)}async _getFilteredSet(){return new i.Z([],[],!1,null)}_stat(e,t,a,n,r,i,s){return this._manualStat(e,t,i,s)}async _canDoAggregates(){return!1}}},91136:(e,t,a)=>{a.d(t,{Z:()=>_});var n=a(85839),r=a(48039),i=a(59987),s=a(70586);class o{constructor(e,t){this._lastId=-1,this._progress=t,this._parent=e}reset(){this._lastId=-1}nextBatch(e){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then((t=>this.nextBatch(e)),(t=>this.nextBatch(e)));const t={returnpromise:null,hasset:!1},a=[];return t.returnpromise=new Promise(((n,r)=>{this._parent._getSet(this._progress).then((i=>{const o=(0,s.s3)(i._known,"known");let l=o.length-1;if("GETPAGES"===o[o.length-1]&&(l-=1),this._lastId+e>l&&o.length>0&&"GETPAGES"===o[o.length-1])return void this._parent._expandPagedSet(i,this._parent._maxQueryRate(),0,0,this._progress).then((a=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(n,r)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)}));const u=(0,s.s3)(i._candidates,"candidates");if(l>=this._lastId+e||0===u.length){for(let t=0;t<e;t++){const e=t+this._lastId+1;if(e>=o.length)break;a[t]=o[e]}return this._lastId+=a.length,0===a.length&&(t.hasset=!0,this._parent._mainSetInUse=null,n([])),void this._parent._getFeatureBatch(a,this._progress).then((e=>{t.hasset=!0,this._parent._mainSetInUse=null,n(e)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)}))}this._parent._refineSetBlock(i,this._parent._maxProcessingRate(),this._progress).then((()=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(n,r)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)}))}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)}))})),!1===t.hasset&&(this._parent._mainSetInUse=t.returnpromise,t.hasset=!0),t.returnpromise}next(){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then((e=>this.next()),(e=>this.next()));const e={returnpromise:null,hasset:!1};return e.returnpromise=new Promise(((t,a)=>{this._parent._getSet(this._progress).then((n=>{const r=(0,s.s3)(n._known,"known");this._lastId<r.length-1?"GETPAGES"===r[this._lastId+1]?this._parent._expandPagedSet(n,this._parent._maxQueryRate(),0,0,this._progress).then((t=>(e.hasset=!0,this._parent._mainSetInUse=null,this.next()))).then(t,a):(this._lastId+=1,this._parent._getFeature(n,r[this._lastId],this._progress).then((a=>{e.hasset=!0,this._parent._mainSetInUse=null,t(a)}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,a(t)}))):(0,s.s3)(n._candidates,"candidates").length>0?this._parent._refineSetBlock(n,this._parent._maxProcessingRate(),this._progress).then((()=>{e.hasset=!0,this._parent._mainSetInUse=null,this.next().then(t,a)}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,a(t)})):(e.hasset=!0,this._parent._mainSetInUse=null,t(null))}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,a(t)}))})),!1===e.hasset&&(this._parent._mainSetInUse=e.returnpromise,e.hasset=!0),e.returnpromise}async count(){if(-1!==this._parent._totalCount)return this._parent._totalCount;const e=await this._parent._getSet(this._progress),t=await this._refineAllSets(e);return this._parent._totalCount=t._known.length,this._parent._totalCount}async _refineAllSets(e){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,1,this._progress),this._refineAllSets(e);if(e._candidates.length>0){if("GETPAGES"===e._known[e._candidates.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,2,this._progress),this._refineAllSets(e);const t=await this._parent._refineSetBlock(e,this._parent._maxProcessingRate(),this._progress);return t._candidates.length>0?this._refineAllSets(t):t}return e}}var l=a(90961),u=a(90658),c=a(95002),d=a(95330),h=a(41534),f=a(8667),m=a(82971),p=a(99514);class _{constructor(e){this.recentlyUsedQueries=null,this.featureSetQueryInterceptor=null,this._idstates=[],this._parent=null,this._wset=null,this._mainSetInUse=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=u.Bj.NotEvaluated,this._databaseTypeProbed=null,this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._featureCache=[],this.typeIdField=null,this.types=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1,this._transparent=!1,this.loaded=!1,this._loadPromise=null,this._fieldsIndex=null,this._dateFieldIndex=null,e&&e.lrucache&&(this.recentlyUsedQueries=e.lrucache),e&&e.interceptor&&(this.featureSetQueryInterceptor=e.interceptor)}optimisePagingFeatureQueries(e){this._parent&&this._parent.optimisePagingFeatureQueries(e)}_hasMemorySource(){return!0}prop(e,t){return void 0===t?this[e]:(void 0!==this[e]&&(this[e]=t),this)}end(){return null!==this._parent&&!0===this._parent._transparent?this._parent.end():this._parent}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return!0===this._parent?.loaded?(this._initialiseFeatureSet(),this):(await(this._parent?.load()),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(0),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types):(this.fields=[],this.typeIdField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new m.Z({wkid:4326}),this.geometryType=u.Qk.point)}getField(e,t){let a;return(t=t||this.fields)&&(e=e.toLowerCase(),t.some((t=>(t&&t.name.toLowerCase()===e&&(a=t),!!a)))),a}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=new p.Z(this.fields)),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}_checkCancelled(e){if(null!=e&&e.aborted)throw new i.EN(i.H9.Cancelled)}nativeCapabilities(){return this._parent.nativeCapabilities()}async _canDoAggregates(e,t,a,n,r){return null!==this._parent&&this._parent._canDoAggregates(e,t,a,n,r)}async _getAggregatePagesDataSourceDefinition(e,t,a,n,r,s,o){if(null===this._parent)throw new i.EN(i.H9.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,t,a,n,r,s,o)}async _getAgregagtePhysicalPage(e,t,a){if(null===this._parent)throw new i.EN(i.H9.NeverReach);return this._parent._getAgregagtePhysicalPage(e,t,a)}async databaseType(){if(this._databaseType===u.Bj.NotEvaluated){if(null!==r.Z.applicationCache){const e=r.Z.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==r.Z.applicationCache&&r.Z.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==r.Z.applicationCache&&r.Z.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{thetype:u.Bj.SqlServer,testwhere:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{thetype:u.Bj.Oracle,testwhere:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{thetype:u.Bj.StandardisedNoInterval,testwhere:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e)if(!0===await this._runDatabaseProbe(t.testwhere))return t.thetype;return u.Bj.StandardisedNoInterval}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new i.EN(i.H9.NotImplemented)}isTable(){return this._parent?.isTable()??!1}_featureFromCache(e){if(void 0!==this._featureCache[e])return this._featureCache[e]}_isInFeatureSet(e){return u.dj.Unknown}_getSet(e){throw new i.EN(i.H9.NotImplemented)}async _getFeature(e,t,a){if(this._checkCancelled(a),void 0!==this._featureFromCache(t))return this._featureFromCache(t);if(await this._getFeatures(e,t,this._maxProcessingRate(),a),this._checkCancelled(a),void 0!==this._featureFromCache(t))return this._featureFromCache(t);throw new i.EN(i.H9.MissingFeatures)}async _getFeatureBatch(e,t){this._checkCancelled(t);const a=new l.Z([],e,!1,null),n=[];await this._getFeatures(a,-1,e.length,t),this._checkCancelled(t);for(const t of e)void 0!==this._featureFromCache(t)&&n.push(this._featureFromCache(t));return n}async _getFeatures(e,t,a,n){return"success"}_getFilteredSet(e,t,a,n,r){throw new i.EN(i.H9.NotImplemented)}async _refineSetBlock(e,t,a){if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQueryRate()))return await this._expandPagedSet(e,this._maxQueryRate(),0,0,a),this._refineSetBlock(e,t,a);this._checkCancelled(a);const n=e._candidates.length;this._refineKnowns(e,t);let r=n-e._candidates.length;if(0===e._candidates.length)return e;if(r>=t)return e;if(await this._refineIfParentKnown(e,t-r,a),this._checkCancelled(a),this._refineKnowns(e,t-r),r=n-e._candidates.length,r<t&&e._candidates.length>0){const n=t-r,i=this._prepareFetchAndRefineSet(e._candidates);return await this._fetchAndRefineFeatures(i,i.length>n?n:e._candidates.length,a),this._checkCancelled(a),this._refineKnowns(e,t-r),e}return e}_fetchAndRefineFeatures(e,t,a){return null}_prepareFetchAndRefineSet(e){const t=[];for(let a=0;a<e.length;a++)this._isPhysicalFeature(e[a])&&t.push(e[a]);return t}_isPhysicalFeature(e){return null===this._parent||this._parent._isPhysicalFeature(e)}_refineKnowns(e,t){let a=0,n=null;const r=[];t=this._maxQueryRate();for(let i=0;i<e._candidates.length&&"GETPAGES"!==e._candidates[i];i++){let s=!1;const o=this._candidateIdTransform(e._candidates[i]);o!==e._candidates[i]&&(s=!0);const l=this._isInFeatureSet(o);if(l===u.dj.InFeatureSet)!0===s?e._known.includes(o)||(e._known.push(o),a+=1):(e._known.push(e._candidates[i]),a+=1),null===n?n={start:i,end:i}:n.end===i-1?n.end=i:(r.push(n),n={start:i,end:i});else if(l===u.dj.NotInFeatureSet)null===n?n={start:i,end:i}:n.end===i-1?n.end=i:(r.push(n),n={start:i,end:i}),a+=1;else if(l===u.dj.Unknown&&(a+=1,!0===e._ordered))break;if(a>=t)break}null!==n&&r.push(n);for(let t=r.length-1;t>=0;t--)e._candidates.splice(r[t].start,r[t].end-r[t].start+1)}_refineIfParentKnown(e,t,a){const n=new l.Z([],[],e._ordered,null);return n._candidates=e._candidates.slice(0),this._parent._refineSetBlock(n,t,a)}_candidateIdTransform(e){return this._parent._candidateIdTransform(e)}_checkIfNeedToExpandKnownPage(e,t){if(null===e.pagesDefinition)return!1;let a=0;for(let n=e._lastFetchedIndex;n<e._known.length;n++){if("GETPAGES"===e._known[n])return!0;if(void 0===this._featureCache[e._known[n]]&&(a+=1,a>=t))break}return!1}_checkIfNeedToExpandCandidatePage(e,t){if(null===e.pagesDefinition)return!1;let a=0;for(let n=0;n<e._candidates.length;n++){if("GETPAGES"===e._candidates[n])return!0;if(a+=1,a>=t)break}return!1}async _expandPagedSet(e,t,a,n,r){if(null===this._parent)throw new i.EN(i.H9.NotImplemented);return this._parent._expandPagedSet(e,t,a,n,r)}async _expandPagedSetFeatureSet(e,t,a,n,r){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1]&&(n=1),0===n&&e._candidates.length>0&&"GETPAGES"===e._candidates[e._candidates.length-1]&&(n=2),0===n)return"finished";const i=await this._getPage(e,n,r);return a+i<t?this._expandPagedSet(e,t,a+i,0,r):"success"}async _getPage(e,t,a){const n=1===t?e._known:e._candidates;if(e.pagesDefinition.internal.set.length>e.pagesDefinition.resultOffset||!0===e.pagesDefinition.internal.fullyResolved){n.length=n.length-1;let t=0;for(let a=0;a<e.pagesDefinition.resultRecordCount&&!(e.pagesDefinition.resultOffset+a>=e.pagesDefinition.internal.set.length);a++)n[n.length]=e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset+a],t++;e.pagesDefinition.resultOffset+=t;let a=!1;return!0===e.pagesDefinition.internal.fullyResolved&&e.pagesDefinition.internal.set.length<=e.pagesDefinition.resultOffset&&(a=!0),!1===a&&n.push("GETPAGES"),t}return await this._getPhysicalPage(e,t,a),this._getPage(e,t,a)}_getPhysicalPage(e,t,a){return null}_clonePageDefinition(e){return null===this._parent?null:this._parent._clonePageDefinition(e)}_first(e){return this.iterator(e).next()}first(e){return this._first(e)}async calculateStatistic(e,t,a,n){await this._ensureLoaded();let r=await this._stat(e,t,"",null,null,a,n);return!1===r.calculated&&(r=await this._manualStat(e,t,a,n)),r.result}async _manualStat(e,t,a,n){let r=null;switch(e.toLowerCase()){case"count":return r=await(0,c.QX)(this,n),{calculated:!0,result:r};case"distinct":return r=await(0,c.EB)(this,t,a,n),{calculated:!0,result:r};case"avg":case"mean":return r=await(0,c.J6)(this,t,n),{calculated:!0,result:r};case"stdev":return r=await(0,c.m)(this,t,n),{calculated:!0,result:r};case"variance":return r=await(0,c.CA)(this,t,n),{calculated:!0,result:r};case"sum":return r=await(0,c.Sm)(this,t,n),{calculated:!0,result:r};case"min":return r=await(0,c.VV)(this,t,n),{calculated:!0,result:r};case"max":return r=await(0,c.Fp)(this,t,n),{calculated:!0,result:r};default:return{calculated:!0,result:0}}}async _stat(e,t,a,n,r,i,s){const o=await this._parent._stat(e,t,a,n,r,i,s);return!1===o.calculated?null===r&&""===a&&null===n?this._manualStat(e,t,i,s):{calculated:!1}:o}_unionAllGeomSelf(e){const t=this.iterator(this._defaultTracker(e)),a=[];return new Promise(((e,n)=>{this._unionShapeInBatches(a,t,e,n)}))}_unionAllGeom(e){return new Promise(((t,a)=>{const n=this.iterator(this._defaultTracker(e));this._unionShapeInBatches([],n,t,a)}))}_unionShapeInBatches(e,t,a,n){t.next().then((r=>{try{null!==r&&null!==r.geometry&&e.push(r.geometry),e.length>30||null===r&&e.length>1?(0,f.G0)(e).then((i=>{try{null===r?a(i):(e=[i],this._unionShapeInBatches(e,t,a,n))}catch(e){n(e)}}),n):null===r?1===e.length?a(e[0]):a(null):this._unionShapeInBatches(e,t,a,n)}catch(e){n(e)}}),n)}iterator(e){return new o(this,e)}intersection(e,t=!1){return _._featuresetFunctions.intersection.bind(this)(e,t)}difference(e,t=!1,a=!0){return _._featuresetFunctions.difference.bind(this)(e,t,a)}symmetricDifference(e,t=!1,a=!0){return _._featuresetFunctions.symmetricDifference.bind(this)(e,t,a)}morphShape(e,t,a="unknown",n=null){return _._featuresetFunctions.morphShape.bind(this)(e,t,a,n)}morphShapeAndAttributes(e,t,a="unknown"){return _._featuresetFunctions.morphShapeAndAttributes.bind(this)(e,t,a)}union(e,t=!1){return _._featuresetFunctions.union.bind(this)(e,t)}intersects(e){return _._featuresetFunctions.intersects.bind(this)(e)}envelopeIntersects(e){return _._featuresetFunctions.envelopeIntersects.bind(this)(e)}contains(e){return _._featuresetFunctions.contains.bind(this)(e)}overlaps(e){return _._featuresetFunctions.overlaps.bind(this)(e)}relate(e,t){return _._featuresetFunctions.relate.bind(this)(e,t)}within(e){return _._featuresetFunctions.within.bind(this)(e)}touches(e){return _._featuresetFunctions.touches.bind(this)(e)}top(e){return _._featuresetFunctions.top.bind(this)(e)}crosses(e){return _._featuresetFunctions.crosses.bind(this)(e)}buffer(e,t,a,n=!0){return _._featuresetFunctions.buffer.bind(this)(e,t,a,n)}filter(e,t=null){return _._featuresetFunctions.filter.bind(this)(e,t)}orderBy(e){return _._featuresetFunctions.orderBy.bind(this)(e)}dissolve(e,t){return _._featuresetFunctions.dissolve.bind(this)(e,t)}groupby(e,t){return _._featuresetFunctions.groupby.bind(this)(e,t)}reduce(e,t=null,a){return new Promise(((n,r)=>{this._reduceImpl(this.iterator(this._defaultTracker(a)),e,t,0,n,r,0)}))}_reduceImpl(e,t,a,n,r,i,s){try{if(++s>1e3)return void setTimeout((()=>{s=0,this._reduceImpl(e,t,a,n,r,i,s)}));e.next().then((o=>{try{if(null===o)r(a);else{const l=t(a,o,n,this);(0,d.y8)(l)?l.then((a=>{this._reduceImpl(e,t,a,n+1,r,i,s)}),i):this._reduceImpl(e,t,l,n+1,r,i,s)}}catch(e){i(e)}}),i)}catch(e){i(e)}}removeField(e){return _._featuresetFunctions.removeField.bind(this)(e)}addField(e,t,a=null){return _._featuresetFunctions.addField.bind(this)(e,t,a)}sumArea(e,t=!1,a){const n=(0,u.EI)(e);return this.reduce(((e,a)=>null===a.geometry?0:t?(0,f.Y4)(a.geometry,n).then((t=>e+t)):(0,f.CJ)(a.geometry,n).then((t=>e+t))),0,a)}sumLength(e,t=!1,a){const n=(0,u.Lz)(e);return this.reduce(((e,a)=>null===a.geometry?0:t?(0,f.kQ)(a.geometry,n).then((t=>e+t)):(0,f.sz)(a.geometry,n).then((t=>e+t))),0,a)}_substituteVars(e,t){if(null!==t){const a={};for(const e in t)a[e.toLowerCase()]=t[e];e.parameters=a}}async distinct(e,t=1e3,a=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(r,a),this.calculateStatistic("distinct",r,t,this._defaultTracker(n))}async min(e,t=null,a){await this.load();const n=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(n,t),this.calculateStatistic("min",n,-1,this._defaultTracker(a))}async max(e,t=null,a){await this.load();const n=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(n,t),this.calculateStatistic("max",n,-1,this._defaultTracker(a))}async avg(e,t=null,a){await this.load();const n=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(n,t),this.calculateStatistic("avg",n,-1,this._defaultTracker(a))}async sum(e,t=null,a){await this.load();const n=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(n,t),this.calculateStatistic("sum",n,-1,this._defaultTracker(a))}async stdev(e,t=null,a){await this.load();const n=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(n,t),this.calculateStatistic("stdev",n,-1,this._defaultTracker(a))}async variance(e,t=null,a){await this.load();const n=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(n,t),this.calculateStatistic("variance",n,-1,this._defaultTracker(a))}async count(e){return await this.load(),this.calculateStatistic("count",h.WhereClause.create("1",this.getFieldsIndex()),-1,this._defaultTracker(e))}_defaultTracker(e){return e||{aborted:!1}}forEach(e,t){return new Promise(((a,n)=>{this._forEachImpl(this.iterator(this._defaultTracker(t)),e,this,a,n,0)}))}_forEachImpl(e,t,a,n,r,i){try{if(++i>1e3)return void setTimeout((()=>{i=0,this._forEachImpl(e,t,a,n,r,i)}),0);e.next().then((s=>{try{if(null===s)n(a);else{const o=t(s);null==o?this._forEachImpl(e,t,a,n,r,i):(0,d.y8)(o)?o.then((()=>{try{this._forEachImpl(e,t,a,n,r,i)}catch(e){r(e)}}),r):this._forEachImpl(e,t,a,n,r,i)}}catch(e){r(e)}}),r)}catch(e){r(e)}}convertToJSON(e){const t={layerDefinition:{geometryType:this.geometryType,fields:[]},featureSet:{features:[],geometryType:this.geometryType}};for(let e=0;e<this.fields.length;e++)t.layerDefinition.fields.push((0,u.Sh)(this.fields[e]));return this.reduce(((e,a)=>{const n={geometry:a.geometry&&a.geometry.toJSON(),attributes:{}};for(const e in a.attributes)n.attributes[e]=a.attributes[e];return t.featureSet.features.push(n),1}),0,e).then((()=>t))}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,a,n,r){return this._parent.queryAttachments(e,t,a,n,r)}serviceUrl(){return this._parent.serviceUrl()}subtypes(){return this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map((e=>({name:e.name,code:e.id}))):[]}:null}relationshipMetaData(){return this._parent.relationshipMetaData()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push((0,u.Sh)(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===u.q2[this.geometryType]?"":u.q2[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];await this.reduce(((t,a)=>{const n={geometry:a.geometry?a.geometry.toJSON():null,attributes:a.attributes};return null!==n.geometry&&n.geometry.spatialReference&&delete n.geometry.spatialReference,e.push(n),1}),0,t);const a=this.schema();return a.features=e,a.spatialReference=this.spatialReference.toJSON(),JSON.stringify(a)}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return null!==this._parent?this._parent.getRootFeatureSet():this}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const a=[];await this.reduce(((e,n)=>{const r={geometry:n.geometry?!0===t?.keepGeometryType?n.geometry:n.geometry.toJSON():null,attributes:n.attributes};return null!==r.geometry&&r.geometry.spatialReference&&!0!==t?.keepGeometryType&&delete r.geometry.spatialReference,a.push(r),1}),0,e);const n=this.schema();return n.features=a,n.spatialReference=!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON(),n}get dateTimeReferenceFieldIndex(){return null===this._dateFieldIndex&&(this._dateFieldIndex=n.nu.create(this.getFieldsIndex(),this)),this._dateFieldIndex}fieldTimeZone(e){return this.dateTimeReferenceFieldIndex.fieldTimeZone(e)}get preferredTimeReference(){return this._parent?.preferredTimeReference??null}get dateFieldsTimeReference(){return this._parent?.dateFieldsTimeReference??null}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}}_._featuresetFunctions={}},90961:(e,t,a)=>{a.d(t,{Z:()=>n});class n{constructor(e,t,a,n){this._lastFetchedIndex=0,this._ordered=!1,this.pagesDefinition=null,this._candidates=e,this._known=t,this._ordered=a,this.pagesDefinition=n}}},48039:(e,t,a)=>{a.d(t,{Z:()=>n});class n{constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}n.applicationCache=null},59987:(e,t,a)=>{a.d(t,{EN:()=>c,H9:()=>l,eS:()=>o,f:()=>n});var n,r,i=a(27535);(r=n||(n={})).InvalidFunctionParameters="InvalidFunctionParameters",r.UnsupportedSqlFunction="UnsupportedSqlFunction",r.UnsupportedOperator="UnsupportedOperator",r.UnsupportedSyntax="UnsupportedSyntax",r.UnsupportedIsRhs="UnsupportedIsRhs",r.UnsupportedIsLhs="UnsupportedIsLhs",r.MissingStatisticParameters="MissingStatisticParameters";const s={[n.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[n.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[n.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[n.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[n.UnsupportedOperator]:"Unsupported operator - {operator}",[n.UnsupportedSyntax]:"Unsupported syntax - {node}",[n.UnsupportedSqlFunction]:"Sql function not found = {function}"};class o extends Error{constructor(e,t){super((0,i.Hy)(s[e],t)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,o)}}var l;!function(e){e.NeverReach="NeverReach",e.NotImplemented="NotImplemented",e.Cancelled="Cancelled",e.InvalidStatResponse="InvalidStatResponse",e.InvalidRequest="InvalidRequest",e.RequestFailed="RequestFailed",e.MissingFeatures="MissingFeatures",e.AggregationFieldNotFound="AggregationFieldNotFound",e.DataElementsNotFound="DataElementsNotFound"}(l||(l={}));const u={[l.Cancelled]:"Cancelled",[l.InvalidStatResponse]:"Invalid statistics response from service",[l.InvalidRequest]:"Invalid request",[l.RequestFailed]:"Request failed - {reason}",[l.MissingFeatures]:"Missing features",[l.AggregationFieldNotFound]:"Aggregation field not found",[l.DataElementsNotFound]:"Data elements not found on service",[l.NeverReach]:"Encountered unreachable logic",[l.NotImplemented]:"Not implemented"};class c extends Error{constructor(e,t){super((0,i.Hy)(u[e],t)),this.declaredRootClass="esri.arcade.featureset.support.featureseterror",Error.captureStackTrace&&Error.captureStackTrace(this,c)}}},36515:(e,t,a)=>{a.d(t,{$e:()=>d,DT:()=>g,TE:()=>E,XF:()=>u,bB:()=>c,fz:()=>f,hq:()=>w,mA:()=>m,oX:()=>p,vR:()=>_,y5:()=>I,zR:()=>l});var n=a(48853),r=a(90658),i=a(41534),s=a(59987),o=(a(85839),a(17126));function l(e,t){return h(e?.parseTree,t,e?.parameters)}function u(e,t,a){return h(e,t,a)}function c(e,t,a,n){return i.WhereClause.create(h(e.parseTree,r.Bj.Standardised,e.parameters,t,a),n)}function d(e,t,a="AND"){return i.WhereClause.create("(("+l(e,r.Bj.Standardised)+")"+a+"("+l(t,r.Bj.Standardised)+"))",e.fieldsIndex)}function h(e,t,a,r=null,i=null,o=null){let l,u,c,d;switch(e.type){case"interval":return E(h(e.value,t,a,r,i,o),e.qualifier,e.op);case"case-expression":{let n=" CASE ";"simple"===e.format&&(n+=h(e.operand,t,a,r,i,o));for(let s=0;s<e.clauses.length;s++)n+=" WHEN "+h(e.clauses[s].operand,t,a,r,i,o)+" THEN "+h(e.clauses[s].value,t,a,r,i,o);return null!==e.else&&(n+=" ELSE "+h(e.else,t,a,r,i,o)),n+=" END ",n}case"parameter":{const r=a[e.value.toLowerCase()];if("string"==typeof r)return"'"+a[e.value.toLowerCase()].toString().replace(/'/g,"''")+"'";if(r instanceof Date)return p(r,t,o);if(r instanceof n.iG)return m(r,t,o);if(r instanceof Array){const e=[];for(let a=0;a<r.length;a++)"string"==typeof r[a]?e.push("'"+r[a].toString().replace(/'/g,"''")+"'"):r[a]instanceof Date?e.push(p(r[a],t,o)):r[a]instanceof n.iG?e.push(m(r[a],t,o)):e.push(r[a].toString());return e}return r.toString()}case"expression-list":u=[];for(const n of e.value)u.push(h(n,t,a,r,i,o));return u;case"unary-expression":return" ( NOT "+h(e.expr,t,a,r,i,o)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+h(e.left,t,a,r,i,o)+" AND "+h(e.right,t,a,r,i,o)+") ";case"OR":return" ("+h(e.left,t,a,r,i,o)+" OR "+h(e.right,t,a,r,i,o)+") ";case"IS":if("null"!==e.right.type)throw new s.eS(s.f.UnsupportedIsRhs);return" ("+h(e.left,t,a,r,i,o)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new s.eS(s.f.UnsupportedIsRhs);return" ("+h(e.left,t,a,r,i,o)+" IS NOT NULL )";case"IN":return l=[],"expression-list"===e.right.type?(l=h(e.right,t,a,r,i)," ("+h(e.left,t,a,r,i,o)+" IN ("+l.join(",")+")) "):(d=h(e.right,t,a,r,i,o),d instanceof Array?" ("+h(e.left,t,a,r,i,o)+" IN ("+d.join(",")+")) ":" ("+h(e.left,t,a,r,i,o)+" IN ("+d+")) ");case"NOT IN":return l=[],"expression-list"===e.right.type?(l=h(e.right,t,a,r,i)," ("+h(e.left,t,a,r,i,o)+" NOT IN ("+l.join(",")+")) "):(d=h(e.right,t,a,r,i,o),d instanceof Array?" ("+h(e.left,t,a,r,i,o)+" NOT IN ("+d.join(",")+")) ":" ("+h(e.left,t,a,r,i,o)+" NOT IN ("+d+")) ");case"BETWEEN":return c=h(e.right,t,a,r,i,o)," ("+h(e.left,t,a,r,i,o)+" BETWEEN "+c[0]+" AND "+c[1]+" ) ";case"NOTBETWEEN":return c=h(e.right,t,a,r,i,o)," ("+h(e.left,t,a,r,i,o)+" NOT BETWEEN "+c[0]+" AND "+c[1]+" ) ";case"LIKE":return""!==e.escape?" ("+h(e.left,t,a,r,i,o)+" LIKE "+h(e.right,t,a,r,i,o)+" ESCAPE '"+e.escape+"') ":" ("+h(e.left,t,a,r,i,o)+" LIKE "+h(e.right,t,a,r,i,o)+") ";case"NOT LIKE":return""!==e.escape?" ("+h(e.left,t,a,r,i,o)+" NOT LIKE "+h(e.right,t,a,r,i,o)+" ESCAPE '"+e.escape+"') ":" ("+h(e.left,t,a,r,i,o)+" NOT LIKE "+h(e.right,t,a,r,i,o)+") ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+h(e.left,t,a,r,i,o)+" "+e.operator+" "+h(e.right,t,a,r,i,o)+") "}throw new s.eS(s.f.UnsupportedOperator,{operator:e.operator});case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replace(/'/g,"''")+"'";case"timestamp":case"date":return p(e.value,t,o);case"number":return e.value.toString();case"current-time":return _("date"===e.mode,t);case"column-reference":return r&&r.toLowerCase()===e.column.toLowerCase()?"("+i+")":e.column;case"function":{const n=h(e.args,t,a,r,i,o);return f(e.name,n,t)}}throw new s.eS(s.f.UnsupportedSyntax,{node:e.type})}function f(e,t,a){switch(e.toLowerCase().trim()){case"abs":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"abs"});return"abs("+t[0]+")";case"ceiling":case"ceil":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"ceiling"});switch(a){case r.Bj.Standardised:case r.Bj.StandardisedNoInterval:}return"CEILING("+t[0]+")";case"floor":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"floor"});return"FLOOR("+t[0]+")";case"log":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"log"});return"LOG("+t[0]+")";case"log10":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"log10"});return"LOG10("+t[0]+")";case"power":if(2!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"power"});return"POWER("+t[0]+","+t[1]+")";case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new s.eS(s.f.InvalidFunctionParameters,{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new s.eS(s.f.InvalidFunctionParameters,{function:"truncate"});return a===r.Bj.SqlServer?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"char_length"});switch(a){case r.Bj.SqlServer:return"LEN("+t[0]+")";case r.Bj.Oracle:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"concat":if(t.length<1)throw new s.eS(s.f.InvalidFunctionParameters,{function:"concat"});{let e="CONCAT(";for(let a=0;a<t.length;a++)0!==a&&(e+=","),e+=t[a];return e+=")",e}case"lower":case"lcase":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(a){case r.Bj.Oracle:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case r.Bj.SqlServer:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replace(/\'/g,"")+" FROM "+t[1]+")"}throw new s.eS(s.f.InvalidFunctionParameters,{function:e})}function m(e,t,a,i){a?.outputTimeReference&&(e=n.iG.arcadeDateAndZoneToArcadeDate(e,a?.outputTimeReference));const s=e.toDateTime(),o=0===s.hour&&0===s.minute&&0===s.second&&0===s.millisecond;switch(t){case r.Bj.FILEGDB:case r.Bj.Standardised:case r.Bj.StandardisedNoInterval:return o?`date '${s.toFormat("yyyy-LL-dd")}'`:`date '${s.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case r.Bj.Oracle:return o?`TO_DATE('${s.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${s.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case r.Bj.SqlServer:return`'${s.toFormat(o?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case r.Bj.PGDB:return`#${s.toFormat(o?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case r.Bj.Postgres:return`TIMESTAMP '${s.toFormat(o?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`date '${s.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function p(e,t,a,n){let i=e instanceof Date?o.ou.fromJSDate(e):o.ou.fromSQL(e);const s=0===i.hour&&0===i.minute&&0===i.second&&0===i.millisecond;switch(a?.inputTimeReference&&(i=o.ou.fromObject({day:i.day,year:i.year,month:i.month,hour:i.hour,minute:i.minute,second:i.second,millisecond:i.millisecond},{zone:a.inputTimeReference})),a?.outputTimeReference&&(i=i.setZone(a.outputTimeReference)),t){case r.Bj.FILEGDB:case r.Bj.Standardised:case r.Bj.StandardisedNoInterval:return s?`date '${i.toFormat("yyyy-LL-dd")}'`:`date '${i.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case r.Bj.Oracle:return s?`TO_DATE('${i.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${i.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case r.Bj.SqlServer:return`'${i.toFormat(s?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case r.Bj.PGDB:return`#${i.toFormat(s?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case r.Bj.Postgres:return`TIMESTAMP '${i.toFormat(s?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`date '${i.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function _(e,t){switch(t){case r.Bj.FILEGDB:case r.Bj.Standardised:case r.Bj.StandardisedNoInterval:case r.Bj.Oracle:return e?"CURRENT_DATE":"CURRENT_TIMESTAMP";case r.Bj.SqlServer:return e?"CAST(GETDATE() AS DATE)":"GETDATE()";case r.Bj.PGDB:case r.Bj.Postgres:default:return e?"CURRENT_DATE":"CURRENT_TIMESTAMP"}}function g(e,t,a={}){const n={},r={},i={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",oid:"integer",long:"integer","small-integer":"integer",integer:"integer",single:"double",double:"double",date:"date",string:"string"};for(const e of t){const t=e.type?i[e.type]:void 0;n[e.name.toLowerCase()]=void 0===t?"":t}for(const e in a){const t=i[a[e]];r[e.toLowerCase()]=void 0===t?"":t}switch(T(n,e.parseTree,e.parameters,r)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"string":return"string"}return""}function T(e,t,a,r){let i;switch(t.type){case"interval":return"integer";case"case-expression":{const n=[];if("simple"===t.format){for(let i=0;i<t.clauses.length;i++)n.push(T(e,t.clauses[i].value,a,r));null!==t.else&&n.push(T(e,t.else,a,r))}else{for(let i=0;i<t.clauses.length;i++)n.push(T(e,t.else,a,r));null!==t.else&&n.push(T(e,t.else,a,r))}return y(n)}case"parameter":{const e=r[t.value.toLowerCase()];if(void 0===e&&a){const e=a[t.value.toLowerCase()];if(void 0===e)return"";if(null===e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if(e instanceof Date)return"date";if(e instanceof n.iG)return"date";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":{const n=[];for(const i of t.value)n.push(T(e,i,a,r));return n}case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new s.eS(s.f.UnsupportedIsRhs);return"boolean";case"*":case"-":case"+":case"/":return y([T(e,t.left,a,r),T(e,t.right,a,r)]);default:throw new s.eS(s.f.UnsupportedOperator,{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":case"timestamp":case"current-time":return"date";case"column-reference":{const a=e[t.column.toLowerCase()];return void 0===a?"":a}case"function":switch(t.name.toLowerCase()){case"position":case"extract":case"char_length":return"integer";case"round":return i=T(e,t.args,a,r),i instanceof Array?i.length>0?i[0]:"":i;case"sign":return i=T(e,t.args,a,r),i instanceof Array&&(i=y(i)),"integer"===i||"double"===i?i:"double";case"ceiling":case"floor":case"abs":{const n=T(e,t.args,a,r);return n instanceof Array?y(n):n}case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"power":case"truncate":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string"}return""}throw new s.eS(s.f.UnsupportedSyntax,{node:t.type})}const S={boolean:1,string:2,integer:3,double:4,date:5};function y(e){if(e){let t="";for(const a of e)""!==a&&(t=""===t||S[t]<S[a]?a:t);return t}return""}function w(e,t){return A(e.parseTree,t)}function I(e){return"column-reference"===e?.parseTree.type}function A(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return A(e.operand,t)||A(e.value,t);case"case-expression":for(const a of e.clauses)if(A(a,t))return!0;return!("simple"!==e.format||!A(e.operand,t))||!(null===e.else||!A(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"string":case"number":return!1;case"expression-list":for(const a of e.value)if(A(a,t))return!0;return!1;case"unary-expression":return A(e.expr,t);case"binary-expression":return A(e.left,t)||A(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return A(e.args,t)}return!1}function F(e){let t="";return t+=e.period.toUpperCase(),t}function E(e,t,a){let n="";return n="interval-period"===t.type?F(t):F(t.start)+" TO "+F(t.end),"INTERVAL "+a+" "+e+" "+n}},95002:(e,t,a)=>{a.d(t,{CA:()=>p,EB:()=>y,Fp:()=>f,J6:()=>m,QX:()=>T,Sm:()=>g,VV:()=>h,g3:()=>c,m:()=>_,tj:()=>d});var n=a(59987),r=a(90658),i=a(36515);function s(e){let t=0;for(let a=0;a<e.length;a++)t+=e[a];return t/e.length}function o(e){const t=s(e);let a=0;for(let n=0;n<e.length;n++)a+=(t-e[n])**2;return a/e.length}function l(e){const t=s(e);let a=0;for(let n=0;n<e.length;n++)a+=(t-e[n])**2;return a/(e.length-1)}function u(e){let t=0;for(let a=0;a<e.length;a++)t+=e[a];return t}function c(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return""}function d(e,t,a=1e3){switch(e.toLowerCase()){case"distinct":return function(e,t){const a=[],n={},i=[];for(let s=0;s<e.length;s++){if(void 0!==e[s]&&null!==e[s]){const t=e[s];if((0,r.hj)(t)||(0,r.HD)(t))void 0===n[t]&&(a.push(t),n[t]=1);else{let e=!1;for(let a=0;a<i.length;a++)!0===(0,r.tt)(i[a],t)&&(e=!0);!1===e&&(i.push(t),a.push(t))}}if(a.length>=t&&-1!==t)return a}return a}(t,a);case"avg":case"mean":return s(t);case"min":return Math.min.apply(Math,t);case"sum":return u(t);case"max":return Math.max.apply(Math,t);case"stdev":case"stddev":return Math.sqrt(o(t));case"var":case"variance":return o(t);case"count":return t.length}return 0}async function h(e,t,a){const n=await S(e,t,a,!0);return 0===n.length?null:Math.min.apply(Math,n)}async function f(e,t,a){const n=await S(e,t,a,!0);return 0===n.length?null:Math.max.apply(Math,n)}async function m(e,t,a){let n="";t&&!(0,i.y5)(t)&&(n=(0,i.DT)(t,e.fields));const r=await S(e,t,a,!0);if(0===r.length)return null;const o=s(r);return null===o?o:"integer"===n?function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}(o):o}async function p(e,t,a){const n=await S(e,t,a,!0);return 0===n.length?null:l(n)}async function _(e,t,a){const n=await S(e,t,a,!0);return 0===n.length?null:Math.sqrt(l(n))}async function g(e,t,a){const n=await S(e,t,a,!0);return 0===n.length?null:u(n)}async function T(e,t){return e.iterator(t).count()}async function S(e,t,a,r=!1){const i=e.iterator(a),s=[],o={ticker:0};let l=await i.next();for(;null!==l;){if(o.ticker++,a.aborted)throw new n.EN(n.H9.Cancelled);o.ticker%100==0&&(o.ticker=0,await new Promise((e=>{setTimeout(e,0)})));const e=t?.calculateValue(l);null===e?!1===r&&(s[s.length]=e):s[s.length]=e,l=await i.next()}return s}async function y(e,t,a=1e3,r=null){const i=e.iterator(r),s=[],o={},l={ticker:0};let u=await i.next();for(;null!==u;){if(l.ticker++,r&&r.aborted)throw new n.EN(n.H9.Cancelled);l.ticker%100==0&&(l.ticker=0,await new Promise((e=>{setTimeout(e,0)})));const e=t?.calculateValue(u);if(null!=e&&void 0===o[e]&&(s.push(e),o[e]=1),s.length>=a&&-1!==a)return s;u=await i.next()}return s}},99880:(e,t,a)=>{a.d(t,{V:()=>l});var n=a(68773),r=(a(3172),a(20102)),i=a(92604),s=a(17452);const o=i.Z.getLogger("esri.assets");function l(e){if(!n.Z.assetsPath)throw o.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new r.Z("assets:path-not-set","config.assetsPath is not set");return(0,s.v_)(n.Z.assetsPath,e)}},8667:(e,t,a)=>{a.d(t,{CJ:()=>L,Cz:()=>M,D$:()=>N,ED:()=>S,G0:()=>R,Gg:()=>I,JI:()=>F,LV:()=>w,Nm:()=>y,Sp:()=>b,TE:()=>m,U1:()=>P,W4:()=>g,Y4:()=>G,cv:()=>C,e5:()=>E,f3:()=>D,fS:()=>p,j2:()=>x,jU:()=>f,kK:()=>_,kQ:()=>B,og:()=>A,oq:()=>c,r3:()=>h,rd:()=>k,sz:()=>U,uh:()=>T,wf:()=>v,z7:()=>d}),a(66577);var n=a(78346),r=(a(94139),a(33955));function i(e){return Array.isArray(e)?e[0]?.spatialReference:e?.spatialReference}function s(e){return e?Array.isArray(e)?e.map(s):e.toJSON?e.toJSON():e:e}function o(e){return Array.isArray(e)?e.map((e=>(0,r.im)(e))):(0,r.im)(e)}let l;async function u(e,t){return(await async function(){return l||(l=(0,n.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:e,parameters:s(t)})}async function c(e,t){return o(await u("clip",[i(e),e,t]))}async function d(e,t){return o(await u("cut",[i(e),e,t]))}function h(e,t){return u("contains",[i(e),e,t])}function f(e,t){return u("crosses",[i(e),e,t])}function m(e,t,a){return u("distance",[i(e),e,t,a])}function p(e,t){return u("equals",[i(e),e,t])}function _(e,t){return u("intersects",[i(e),e,t])}function g(e,t){return u("touches",[i(e),e,t])}function T(e,t){return u("within",[i(e),e,t])}function S(e,t){return u("disjoint",[i(e),e,t])}function y(e,t){return u("overlaps",[i(e),e,t])}function w(e,t,a){return u("relate",[i(e),e,t,a])}function I(e){return u("isSimple",[i(e),e])}async function A(e){return o(await u("simplify",[i(e),e]))}async function F(e,t=!1){return o(await u("convexHull",[i(e),e,t]))}async function E(e,t){return o(await u("difference",[i(e),e,t]))}async function b(e,t){return o(await u("symmetricDifference",[i(e),e,t]))}async function v(e,t){return o(await u("intersect",[i(e),e,t]))}async function R(e,t=null){const a=function(e,t){let a;return Array.isArray(e)?a=e:(a=[],a.push(e),null!=t&&a.push(t)),a}(e,t);return o(await u("union",[i(a),a]))}async function C(e,t,a,n,r,s){return o(await u("offset",[i(e),e,t,a,n,r,s]))}async function D(e,t,a,n=!1){const r=[i(e),e,t,a,n];return o(await u("buffer",r))}async function k(e,t,a,n,r,s){const l=[i(e),e,t,a,n,r,s];return o(await u("geodesicBuffer",l))}async function P(e,t,a){if(null==e)throw new Z;const n=e.spatialReference;if(null==(a=a??function(e){return"xmin"in e?e.center:"x"in e?e:e.extent?.center}(e)))throw new Z;const r=e.constructor.fromJSON(await u("rotate",[n,e,t,a]));return r.spatialReference=n,r}async function N(e,t,a,n){return o(await u("generalize",[i(e),e,t,a,n]))}async function M(e,t,a){return o(await u("densify",[i(e),e,t,a]))}async function x(e,t,a,n=0){return o(await u("geodesicDensify",[i(e),e,t,a,n]))}function L(e,t){return u("planarArea",[i(e),e,t])}function U(e,t){return u("planarLength",[i(e),e,t])}function G(e,t,a){return u("geodesicArea",[i(e),e,t,a])}function B(e,t,a){return u("geodesicLength",[i(e),e,t,a])}class Z extends Error{constructor(){super("Illegal Argument Exception")}}},94443:(e,t,a)=>{a.d(t,{ME:()=>f,Su:()=>m,tz:()=>h});var n=a(20102),r=a(95330),i=a(70171);const s=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,o={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){return o[e]??!1}const u=[],c=new Map;function d(e){for(const t of c.keys())p(e.pattern,t)&&c.delete(t)}function h(e){return u.includes(e)||(d(e),u.unshift(e)),{remove(){const t=u.indexOf(e);t>-1&&(u.splice(t,1),d(e))}}}async function f(e){const t=(0,i.Kd)();c.has(e)||c.set(e,async function(e,t){const a=[];for(const n of u)if(p(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(e){a.push(e)}if(a.length)throw new n.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:a});throw new n.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const a=c.get(e);return a&&await _.add(a),a}function m(e){if(!s.test(e))return null;const t=s.exec(e);if(null===t)return null;const[,a,n]=t,r=a+(n?"-"+n.toUpperCase():"");return l(r)?r:l(a)?a:null}function p(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,i.Ze)((()=>{c.clear()}));const _=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,r.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},80216:(e,t,a)=>{a.d(t,{Z:()=>f});var n=a(43697),r=a(2368),i=a(96674),s=a(70586),o=a(5600),l=(a(75215),a(67676),a(71715)),u=a(52011),c=a(30556),d=a(42799);let h=class extends((0,r.J)(i.wq)){constructor(e){super(e),this.legacy=null,this.timeZone="system"}readLegacy(e,t){const{timeZone:a,respectsDaylightSaving:n}=t;return{timeZone:a,respectsDaylightSaving:n}}readTimeZone(e,t){return"timeZoneIANA"in t?t.timeZoneIANA:(0,d.G)(t)}writeTimeZone(e,t){t.timeZoneIANA=e}equals(e){return!((0,s.Wi)(e)||(0,s.Wi)(this.timeZone)||(0,s.Wi)(e.timeZone))&&this.timeZone===e.timeZone}};(0,n._)([(0,o.Cb)()],h.prototype,"legacy",void 0),(0,n._)([(0,l.r)("legacy",["timeZone"])],h.prototype,"readLegacy",null),(0,n._)([(0,o.Cb)({type:String,nonNullable:!0})],h.prototype,"timeZone",void 0),(0,n._)([(0,l.r)("timeZone",["timeZone","timeZoneIANA","respectsDaylightSaving"])],h.prototype,"readTimeZone",null),(0,n._)([(0,c.c)("timeZone")],h.prototype,"writeTimeZone",null),h=(0,n._)([(0,u.j)("esri.time.TimeReference")],h);const f=h},42799:(e,t,a)=>{a.d(t,{G:()=>i});const n=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Chihuahua"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var r=a(17126);function i(e,t="system"){if(!e||!n.has(e.timeZone))return t;const a=n.get(e.timeZone);return e.timeZone.startsWith("UTC")||e.respectsDaylightSaving?a:function(e){const t=r.ou.local().setZone(e),a=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===a?"Etc/UTC":`Etc/GMT${r.Qf.instance(-a).formatOffset(0,"narrow")}`}(a)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[216],{80216:(a,i,e)=>{e.d(i,{Z:()=>A});var r=e(43697),t=e(2368),n=e(96674),d=e(70586),m=e(5600),T=(e(75215),e(67676),e(71715)),o=e(52011),s=e(30556),c=e(42799);let S=class extends((0,t.J)(n.wq)){constructor(a){super(a),this.legacy=null,this.timeZone="system"}readLegacy(a,i){const{timeZone:e,respectsDaylightSaving:r}=i;return{timeZone:e,respectsDaylightSaving:r}}readTimeZone(a,i){return"timeZoneIANA"in i?i.timeZoneIANA:(0,c.G)(i)}writeTimeZone(a,i){i.timeZoneIANA=a}equals(a){return!((0,d.Wi)(a)||(0,d.Wi)(this.timeZone)||(0,d.Wi)(a.timeZone))&&this.timeZone===a.timeZone}};(0,r._)([(0,m.Cb)()],S.prototype,"legacy",void 0),(0,r._)([(0,T.r)("legacy",["timeZone"])],S.prototype,"readLegacy",null),(0,r._)([(0,m.Cb)({type:String,nonNullable:!0})],S.prototype,"timeZone",void 0),(0,r._)([(0,T.r)("timeZone",["timeZone","timeZoneIANA","respectsDaylightSaving"])],S.prototype,"readTimeZone",null),(0,r._)([(0,s.c)("timeZone")],S.prototype,"writeTimeZone",null),S=(0,r._)([(0,o.j)("esri.time.TimeReference")],S);const A=S},42799:(a,i,e)=>{e.d(i,{G:()=>n});const r=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Chihuahua"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var t=e(17126);function n(a,i="system"){if(!a||!r.has(a.timeZone))return i;const e=r.get(a.timeZone);return a.timeZone.startsWith("UTC")||a.respectsDaylightSaving?e:function(a){const i=t.ou.local().setZone(a),e=Math.min(i.set({month:1,day:1}).offset,i.set({month:5}).offset);return 0===e?"Etc/UTC":`Etc/GMT${t.Qf.instance(-e).formatOffset(0,"narrow")}`}(e)}}}]);
|