@arcgis/core 4.22.0-next.20211021 → 4.22.0-next.20211025
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/00ac1ce56f9885a8be83.js +1 -0
- package/assets/esri/core/workers/chunks/01c9afe41ab4ccc597c9.js +1 -0
- package/assets/esri/core/workers/chunks/02a3d14adc504a51fa24.js +1 -0
- package/assets/esri/core/workers/chunks/035a9ab0202d5386b782.js +1 -0
- package/assets/esri/core/workers/chunks/062bace5505f13689c7d.js +1 -0
- package/assets/esri/core/workers/chunks/06c7745d813bcb540ce8.js +1 -0
- package/assets/esri/core/workers/chunks/0950b488a60b2abc21fc.js +1 -0
- package/assets/esri/core/workers/chunks/0af396f2e0de681113ef.js +1 -0
- package/assets/esri/core/workers/chunks/131838059f0f81d8eaee.js +1 -0
- package/assets/esri/core/workers/chunks/146cba0d172ec2f4eba2.js +1 -0
- package/assets/esri/core/workers/chunks/17e49c0dfa5a5a6213e2.js +1 -0
- package/assets/esri/core/workers/chunks/1a0b08190274725dc956.js +1 -0
- package/assets/esri/core/workers/chunks/1add7f0779accdf8d204.js +1 -0
- package/assets/esri/core/workers/chunks/20b81d11e6286d347bfc.js +1 -0
- package/assets/esri/core/workers/chunks/{e596bd3de960d1dc1c57.js → 2207580a78ee292ed9b8.js} +1 -1
- package/assets/esri/core/workers/chunks/2d3646a83465c75986f9.js +1 -0
- package/assets/esri/core/workers/chunks/2d38ee3ef3ebe32a1194.js +1 -0
- package/assets/esri/core/workers/chunks/3737dcc3c0dea3ca05d5.js +1 -0
- package/assets/esri/core/workers/chunks/3e2042e70647c1afa6aa.js +1 -0
- package/assets/esri/core/workers/chunks/3ebfaab2855a2236a95d.js +1 -0
- package/assets/esri/core/workers/chunks/{d6fe616192a8efbfbc3e.js → 440f8101402a4c0d7019.js} +1 -1
- package/assets/esri/core/workers/chunks/4587d770767966985e22.js +1 -0
- package/assets/esri/core/workers/chunks/487b8892fae85810a8c0.js +1 -0
- package/assets/esri/core/workers/chunks/4901a78f32c3ea6b823b.js +1 -0
- package/assets/esri/core/workers/chunks/496fe47fc4d28e1a716d.js +1 -0
- package/assets/esri/core/workers/chunks/{9f22f47d4b2e72d7bdcf.js → 4c010119c24510ea31bb.js} +2 -2
- package/assets/esri/core/workers/chunks/{9f22f47d4b2e72d7bdcf.js.LICENSE.txt → 4c010119c24510ea31bb.js.LICENSE.txt} +0 -0
- package/assets/esri/core/workers/chunks/4f5076e1f2b18ce8156d.js +1 -0
- package/assets/esri/core/workers/chunks/{f291ebc4b089bd1f0a3f.js → 50e86a6bb13042b1dbac.js} +1 -1
- package/assets/esri/core/workers/chunks/{64d9a062c1f1ac08a3ac.js → 565020b1c02a8cb33c2b.js} +1 -1
- package/assets/esri/core/workers/chunks/{d78c60a22f76df7c48c7.js → 59640d78295e2e363f18.js} +1 -1
- package/assets/esri/core/workers/chunks/{a0356f320a1b2fbd03f0.js → 5ac2b2598245aa17cdbd.js} +1 -1
- package/assets/esri/core/workers/chunks/5b4a8cce5601cc92c8a3.js +1 -0
- package/assets/esri/core/workers/chunks/5b92d5d4049622531109.js +1 -0
- package/assets/esri/core/workers/chunks/{751c1a2838b54a74a9a6.js → 5f3caa0ddb215342c728.js} +2 -2
- package/assets/esri/core/workers/chunks/615e995d5ce8fa044b09.js +1 -0
- package/assets/esri/core/workers/chunks/62a2453699e0dd2393b9.js +1 -0
- package/assets/esri/core/workers/chunks/67013547be1a7ae1670a.js +1 -0
- package/assets/esri/core/workers/chunks/67eddf4808f8888faeb4.js +1 -0
- package/assets/esri/core/workers/chunks/695dbedff2340aa019ba.js +1 -0
- package/assets/esri/core/workers/chunks/6a7e388c94206d2f61ff.js +1 -0
- package/assets/esri/core/workers/chunks/6e22b69d55e791ab3d9a.js +1 -0
- package/assets/esri/core/workers/chunks/71e6c0c5ef0aa7eb1703.js +1 -0
- package/assets/esri/core/workers/chunks/7a74e230439c5111f852.js +1 -0
- package/assets/esri/core/workers/chunks/7e76a8e6fa67e607d09e.js +1 -0
- package/assets/esri/core/workers/chunks/7fe4985ca0cb3e6d35c6.js +1 -0
- package/assets/esri/core/workers/chunks/8027330714ff5ffb020e.js +1 -0
- package/assets/esri/core/workers/chunks/844b564d1a422a17f6ac.js +1 -0
- package/assets/esri/core/workers/chunks/856f9281a08cb032238e.js +1 -0
- package/assets/esri/core/workers/chunks/89b4983de872780e9aa1.js +1 -0
- package/assets/esri/core/workers/chunks/8f3bc0cd2c2b01ab80cd.js +1 -0
- package/assets/esri/core/workers/chunks/8fd912e325ccd48b98a9.js +1 -0
- package/assets/esri/core/workers/chunks/901907a5c01f0fd1478f.js +1 -0
- package/assets/esri/core/workers/chunks/92a0b88a14c92239df8a.js +1 -0
- package/assets/esri/core/workers/chunks/972e9aeb3c29c9bf441a.js +1 -0
- package/assets/esri/core/workers/chunks/9758c34ce61c3714515a.js +1 -0
- package/assets/esri/core/workers/chunks/{457ea4feaa006d60c6b1.js → 9a04d087a29f0f3937a3.js} +1 -1
- package/assets/esri/core/workers/chunks/9b0bb171224b35ce2031.js +1 -0
- package/assets/esri/core/workers/chunks/9cbe7afdaef8720dfc8d.js +1 -0
- package/assets/esri/core/workers/chunks/9ccde5b6562f0007fe45.js +1 -0
- package/assets/esri/core/workers/chunks/9d320bbeedeea15522ab.js +1 -0
- package/assets/esri/core/workers/chunks/a001b3b4527817548094.js +1 -0
- package/assets/esri/core/workers/chunks/{197b72bca45065e0eb4a.js → a0c580d4a1915ddd3fe4.js} +1 -1
- package/assets/esri/core/workers/chunks/a4a9c15929b43d83701f.js +1 -0
- package/assets/esri/core/workers/chunks/a54d11f44721f808b82f.js +1 -0
- package/assets/esri/core/workers/chunks/a646a11673d513c00e7a.js +1 -0
- package/assets/esri/core/workers/chunks/a792e2bc7cafdc29f05e.js +1 -0
- package/assets/esri/core/workers/chunks/acae1771697034f265b1.js +1 -0
- package/assets/esri/core/workers/chunks/af2ee804a9c63eea610c.js +1 -0
- package/assets/esri/core/workers/chunks/b28b487047da3aeef3fd.js +1 -0
- package/assets/esri/core/workers/chunks/b3e57824a5855cb37a96.js +1 -0
- package/assets/esri/core/workers/chunks/b89449ead32e4cd21edd.js +1 -0
- package/assets/esri/core/workers/chunks/b99891ed5a02cab02173.js +1 -0
- package/assets/esri/core/workers/chunks/bac84bc621be73a7a4bc.js +1 -0
- package/assets/esri/core/workers/chunks/{25037dcf8a0c72b7b647.js → bbe068388167e9dd0c11.js} +1 -1
- package/assets/esri/core/workers/chunks/c271a1857bcc4e9a36dd.js +1 -0
- package/assets/esri/core/workers/chunks/{eb3035e49a45ecc82575.js → c5030664720fcdc6d85e.js} +1 -1
- package/assets/esri/core/workers/chunks/c534ed122f8a1202d3a3.js +1 -0
- package/assets/esri/core/workers/chunks/c5ef2e28b0c539ddb6a7.js +1 -0
- package/assets/esri/core/workers/chunks/c65e5ccfae03d148d82b.js +1 -0
- package/assets/esri/core/workers/chunks/c91660f3982be4e03705.js +1 -0
- package/assets/esri/core/workers/chunks/ce93113b99bdbeddd07b.js +1 -0
- package/assets/esri/core/workers/chunks/cf2d408e669cfa2c65be.js +1 -0
- package/assets/esri/core/workers/chunks/d08f63ffeecefa02ad91.js +1 -0
- package/assets/esri/core/workers/chunks/{8d33644192c01e5416b4.js → d1a71b58ef62e71979c5.js} +1 -1
- package/assets/esri/core/workers/chunks/d30eade5afecd334f6cb.js +1 -0
- package/assets/esri/core/workers/chunks/d8782d0856b9d815cb6c.js +1 -0
- package/assets/esri/core/workers/chunks/db16c21b650001502e6c.js +1 -0
- package/assets/esri/core/workers/chunks/db18110c57253a31ac96.js +1 -0
- package/assets/esri/core/workers/chunks/dbaa5fb466d6c0214f24.js +1 -0
- package/assets/esri/core/workers/chunks/deae370788a7aacf4dd5.js +1 -0
- package/assets/esri/core/workers/chunks/e6ca132e1eeea3aa174e.js +1 -0
- package/assets/esri/core/workers/chunks/e878ccc431729ef3360f.js +1 -0
- package/assets/esri/core/workers/chunks/eb124f15ad4b9193f00a.js +1 -0
- package/assets/esri/core/workers/chunks/ebc71c06c1c22aaef54e.js +1 -0
- package/assets/esri/core/workers/chunks/f183da283af0836421ab.js +1 -0
- package/assets/esri/core/workers/chunks/f42bdc2a134833d33b4e.js +1 -0
- package/assets/esri/core/workers/chunks/{736d628cda4e02d40337.js → f8612c2fc5739e98be58.js} +1 -1
- package/assets/esri/core/workers/chunks/f965e3e5f6f4f9ba54ac.js +1 -0
- package/assets/esri/core/workers/chunks/fa4089640f480b69962e.js +1 -0
- package/assets/esri/core/workers/chunks/fb219563e5169ea67d68.js +1 -0
- package/assets/esri/libs/i3s/i3s.wasm +0 -0
- package/chunks/ChapmanAtmosphere.glsl.js +56 -77
- package/chunks/Clouds.glsl.js +1 -1
- package/chunks/Pattern.glsl.js +9 -11
- package/chunks/RibbonLine.glsl.js +60 -68
- package/chunks/i3s.js +1 -1
- package/chunks/mat4.js +1 -1
- package/chunks/vec3.js +1 -1
- package/core/Collection.js +1 -1
- package/core/Loadable.js +1 -1
- package/core/accessorSupport/ensureType.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/support/OwningCollection.js +1 -1
- package/core/workers/RemoteClient.js +1 -1
- package/core/workers/WorkerOwner.js +1 -1
- package/core/workers/workers.js +2 -2
- package/geometry/projection.js +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +205 -497
- package/layers/ElevationLayer.js +1 -1
- package/layers/GeoJSONLayer.js +1 -1
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/VectorTileLayer.js +1 -1
- package/layers/VoxelWasmPerScene.js +1 -1
- package/layers/WCSLayer.js +1 -1
- package/layers/analyses/AreaMeasurement3D.js +1 -1
- package/layers/analyses/DirectLineMeasurement3D.js +1 -1
- package/layers/analyses/Slice.js +1 -1
- package/layers/effects/EffectList.js +1 -1
- package/layers/effects/effects.js +1 -1
- package/layers/effects/jsonUtils.js +1 -1
- package/layers/effects/parser.js +1 -1
- package/layers/effects/utils.js +5 -0
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/support/RasterWorker.js +1 -1
- package/layers/support/TilemapCache.js +1 -1
- package/layers/support/rasterDatasets/BaseRaster.js +1 -1
- package/layers/support/rasterDatasets/ImageServerRaster.js +1 -1
- package/layers/support/rasterDatasets/WCSRaster.js +1 -1
- package/layers/support/rasterFunctions/pixelUtils.js +1 -1
- package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
- package/package.json +2 -2
- package/portal/support/portalLayers.js +1 -1
- package/request.js +1 -1
- package/smartMapping/renderers/support/utils.js +1 -1
- package/smartMapping/statistics/support/WorkerClient.js +1 -1
- package/smartMapping/statistics/support/statsWorker.js +1 -1
- package/smartMapping/statistics/support/utils.js +1 -1
- package/smartMapping/support/adapters/CSVLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/support/utils.js +1 -1
- package/statistics/utils.js +1 -1
- package/support/GraphicsCollection.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/FillSymbol3DLayer.js +1 -1
- package/symbols/IconSymbol3DLayer.js +1 -1
- package/symbols/LineSymbol3DLayer.js +1 -1
- package/symbols/patterns/LinePattern3D.js +5 -0
- package/symbols/patterns/LineStylePattern3D.d.ts +4 -0
- package/symbols/patterns/LineStylePattern3D.js +5 -0
- package/symbols/patterns/StylePattern3D.js +1 -1
- package/symbols/patterns/lineStyles.js +5 -0
- package/symbols/patterns/utils.js +1 -1
- package/symbols/support/Symbol3DFillMaterial.js +1 -1
- package/symbols/support/Symbol3DIconOutline.js +5 -0
- package/symbols/support/Symbol3DMaterial.js +1 -1
- package/symbols/support/Symbol3DOutline.js +1 -1
- package/symbols/support/defaults3D.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/symbols/support/symbolLayerUtils3D.js +1 -1
- package/views/2d/engine/vectorTiles/TileParser.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/style/StyleRepository.js +1 -1
- package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/features/controllers/EditsQueue.js +1 -1
- package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/layers/support/FeatureLayerProxy.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/PanoramicAtmosphere.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.js +1 -1
- package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
- package/views/3d/externalRenderers.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
- package/views/3d/interactive/analysisTools/slice/images/Factory.js +5 -0
- package/views/3d/interactive/analysisTools/slice/sliceToolConfig.js +1 -1
- package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
- package/views/3d/interactive/editingTools/settings.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
- package/views/3d/interactive/graphics/Slice/SliceController.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LaserlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/SlicePlaneVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/analyses/AreaMeasurement3D/AreaMeasurementView3D.js +1 -1
- package/views/3d/layers/analyses/AreaMeasurement3D/support/AreaMeasurementPathHelper.js +1 -1
- package/views/3d/layers/analyses/AreaMeasurement3D/support/AreaMeasurementVisualization.js +1 -1
- package/views/3d/layers/analyses/DirectLineMeasurement3D/DirectLineMeasurementView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/ElevationAligners.js +1 -1
- package/views/3d/layers/graphics/ElevationQuery.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/graphics/Loadable.js +1 -1
- package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
- package/views/3d/layers/graphics/elevationAlignmentUtils.js +1 -1
- package/views/3d/layers/graphics/graphicUtils.js +1 -1
- package/views/3d/layers/graphics/labelPlacement.js +1 -1
- package/views/3d/layers/graphics/pointUtils.js +1 -1
- package/views/3d/layers/i3s/I3SAttributeOverrides.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SStreamDataController.js +1 -1
- package/views/3d/layers/i3s/PointRenderer.js +1 -1
- package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/state/GoToOperation.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/LaserLineRenderer.js +1 -1
- package/views/3d/support/SharedSymbolResources.js +1 -1
- package/views/3d/support/StreamDataLoader.js +1 -1
- package/views/3d/support/StreamTextureCollection.js +5 -0
- package/views/3d/support/TextureCollection.js +1 -1
- package/views/3d/support/debugFlags.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderTarget.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl-engine/Stage.js +1 -1
- package/views/3d/webgl-engine/core/material/RenderTexture.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +13 -12
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Reprojection.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +10 -3
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/lib/GLMaterialTexture.js +1 -1
- package/views/3d/webgl-engine/lib/GLMaterials.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/ModelDirtySet.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
- package/views/3d/webgl-engine/lib/TextTexture.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/Texture.js +1 -1
- package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodComponentData.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodLevel.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterGLMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/lineStippleUtils.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/parts/Model.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/LayerViewManager.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/ToolViewManager.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/support/AllocationTracer.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/support/QueueProcessor.js +1 -1
- package/views/webgl/capabilities/load.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
- package/widgets/BuildingExplorer/support/layerUtils.js +1 -1
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Home/HomeViewModel.js +1 -1
- package/widgets/Locate/LocateViewModel.js +1 -1
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Slice/SliceViewModel.js +1 -1
- package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/0283801d442984997abe.js +0 -1
- package/assets/esri/core/workers/chunks/0419e14a520b8fcf3e7a.js +0 -1
- package/assets/esri/core/workers/chunks/05318446b6a40caea361.js +0 -1
- package/assets/esri/core/workers/chunks/09e714d4381649348ac9.js +0 -1
- package/assets/esri/core/workers/chunks/0cecd668b9d5d3f83293.js +0 -1
- package/assets/esri/core/workers/chunks/13a73a88efd4f464173e.js +0 -1
- package/assets/esri/core/workers/chunks/1576727e8174d672555b.js +0 -1
- package/assets/esri/core/workers/chunks/1a3cbeb0a53d03a51dad.js +0 -1
- package/assets/esri/core/workers/chunks/1b8524b617bfc6fe422c.js +0 -1
- package/assets/esri/core/workers/chunks/1dc1d750046912ff6cef.js +0 -1
- package/assets/esri/core/workers/chunks/21fa174c114640be5e40.js +0 -1
- package/assets/esri/core/workers/chunks/2a3f6e56079620421a02.js +0 -1
- package/assets/esri/core/workers/chunks/2a5bcc73e55986ad93fe.js +0 -1
- package/assets/esri/core/workers/chunks/2a6f2e3d639aae491171.js +0 -1
- package/assets/esri/core/workers/chunks/2c17d1bad17bcee53f7d.js +0 -1
- package/assets/esri/core/workers/chunks/2cea27a0d07aa9a88ad4.js +0 -1
- package/assets/esri/core/workers/chunks/2e193d97d199b29b00c2.js +0 -1
- package/assets/esri/core/workers/chunks/2eb41fdf0d0a3b0c3232.js +0 -1
- package/assets/esri/core/workers/chunks/2f09ea639ca5d1d6ca7e.js +0 -1
- package/assets/esri/core/workers/chunks/2fb847ab1440bd1bdf15.js +0 -1
- package/assets/esri/core/workers/chunks/402d22ebbae608760b4f.js +0 -1
- package/assets/esri/core/workers/chunks/44daef7f0cbc6f6af09f.js +0 -1
- package/assets/esri/core/workers/chunks/46899156159e398c693f.js +0 -1
- package/assets/esri/core/workers/chunks/46bf8921db25845c63c0.js +0 -1
- package/assets/esri/core/workers/chunks/4eb23554e375350f73b5.js +0 -1
- package/assets/esri/core/workers/chunks/551917be63a513dfa4de.js +0 -1
- package/assets/esri/core/workers/chunks/564f6f5484bcb13ebb2b.js +0 -1
- package/assets/esri/core/workers/chunks/61df67ae47b7fb5875d9.js +0 -1
- package/assets/esri/core/workers/chunks/62642a8fc7bafe339984.js +0 -1
- package/assets/esri/core/workers/chunks/6304f4e53027df04eb8f.js +0 -1
- package/assets/esri/core/workers/chunks/6331987617ad166ea098.js +0 -1
- package/assets/esri/core/workers/chunks/6b13fcbc71c0088d317e.js +0 -1
- package/assets/esri/core/workers/chunks/6f7a6841e7269d2764ad.js +0 -1
- package/assets/esri/core/workers/chunks/70110efd2de23d9a5263.js +0 -1
- package/assets/esri/core/workers/chunks/7eae3f0588cde44fce39.js +0 -1
- package/assets/esri/core/workers/chunks/80d3c7a429c6412f1a8d.js +0 -1
- package/assets/esri/core/workers/chunks/80deebdf54bea04a0889.js +0 -1
- package/assets/esri/core/workers/chunks/81aa5fe7dcb4fdeb0974.js +0 -1
- package/assets/esri/core/workers/chunks/840d08b41913cad4df89.js +0 -1
- package/assets/esri/core/workers/chunks/85d154aeb511c5d70bb1.js +0 -1
- package/assets/esri/core/workers/chunks/8681e99e2bc9ece61c43.js +0 -1
- package/assets/esri/core/workers/chunks/8e5ef967f6518f4c93b1.js +0 -1
- package/assets/esri/core/workers/chunks/8edd7f70c8b95c34125c.js +0 -1
- package/assets/esri/core/workers/chunks/9044a7b90a53312b6392.js +0 -1
- package/assets/esri/core/workers/chunks/905b4dfc1ce57a225fa4.js +0 -1
- package/assets/esri/core/workers/chunks/945f90b31ebfae623ea0.js +0 -1
- package/assets/esri/core/workers/chunks/9943fd69b67cd1871d68.js +0 -1
- package/assets/esri/core/workers/chunks/9ad91c23480ffb656030.js +0 -1
- package/assets/esri/core/workers/chunks/9d103681372ab01a4147.js +0 -1
- package/assets/esri/core/workers/chunks/9d3230f59b4c4d1b2713.js +0 -1
- package/assets/esri/core/workers/chunks/9db75bc0980d16b730a1.js +0 -1
- package/assets/esri/core/workers/chunks/a0659b8bdc067da7badd.js +0 -1
- package/assets/esri/core/workers/chunks/a480ee9a994410177961.js +0 -1
- package/assets/esri/core/workers/chunks/a9b279975d7df0f295d7.js +0 -1
- package/assets/esri/core/workers/chunks/aa3abaa5ad4a5a3bcb84.js +0 -1
- package/assets/esri/core/workers/chunks/aa8e607f908297786675.js +0 -1
- package/assets/esri/core/workers/chunks/ab5a302b5f62d38293f9.js +0 -1
- package/assets/esri/core/workers/chunks/abd6a84396e0eb3f01ad.js +0 -1
- package/assets/esri/core/workers/chunks/abe9f8516b03a3fb0477.js +0 -1
- package/assets/esri/core/workers/chunks/aff6aa5c7f75f8e052d9.js +0 -1
- package/assets/esri/core/workers/chunks/b601cc5304b132536239.js +0 -1
- package/assets/esri/core/workers/chunks/b85f614ddbddd3c3007e.js +0 -1
- package/assets/esri/core/workers/chunks/b944f4ab25a691b3e611.js +0 -1
- package/assets/esri/core/workers/chunks/bbdacddb61e651ca0098.js +0 -1
- package/assets/esri/core/workers/chunks/c2fa728e805637a1783e.js +0 -1
- package/assets/esri/core/workers/chunks/c901f5f85d962254fc2c.js +0 -1
- package/assets/esri/core/workers/chunks/ca173b908d89a4e334f6.js +0 -1
- package/assets/esri/core/workers/chunks/cc2ef3bfa1f614d7452c.js +0 -1
- package/assets/esri/core/workers/chunks/cdb32a9ac9f5804c4212.js +0 -1
- package/assets/esri/core/workers/chunks/ce9a4997973da80141a5.js +0 -1
- package/assets/esri/core/workers/chunks/d0674b50a358d3bb9db2.js +0 -1
- package/assets/esri/core/workers/chunks/d18b7b4b3b9bea7204b0.js +0 -1
- package/assets/esri/core/workers/chunks/d2ce983f7babdf18a0ed.js +0 -1
- package/assets/esri/core/workers/chunks/d38a0d867dc6cecdc551.js +0 -1
- package/assets/esri/core/workers/chunks/e39ca33e9e463c1d6060.js +0 -1
- package/assets/esri/core/workers/chunks/e471d103205018a5cf7f.js +0 -1
- package/assets/esri/core/workers/chunks/e542fb044fc96f7e8af2.js +0 -1
- package/assets/esri/core/workers/chunks/e94e00a28591337b2def.js +0 -1
- package/assets/esri/core/workers/chunks/eb2709ccbc001f42ac1b.js +0 -1
- package/assets/esri/core/workers/chunks/f905511ca5f9b59fc17f.js +0 -1
- package/assets/esri/core/workers/chunks/f910e80dd87727af5184.js +0 -1
- package/assets/esri/core/workers/chunks/f9300a24305b0af1d227.js +0 -1
- package/assets/esri/core/workers/chunks/fa1e1ac5b3ef7bdf8a78.js +0 -1
- package/assets/esri/core/workers/chunks/fce76a84c7d25d8d47e8.js +0 -1
- package/assets/esri/core/workers/chunks/fef4f97fbe861a1b60e8.js +0 -1
- package/layers/AreaMeasurementLayer.d.ts +0 -4
- package/layers/DirectLineMeasurementLayer.d.ts +0 -4
- package/symbols/support/symbolPreview.d.ts +0 -4
- package/symbols/support/symbolPreview.js +0 -5
- package/views/3d/layers/AreaMeasurementLayerView3D.d.ts +0 -4
- package/views/3d/layers/DirectLineMeasurementLayerView3D.d.ts +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7562],{46851:(e,t,n)=>{n.d(t,{E:()=>a,R:()=>i});const a=1e-6,i=Math.random,s=Math.PI/180,o=180/Math.PI;Object.freeze({__proto__:null,EPSILON:a,RANDOM:i,toRadian:function(e){return e*s},toDegree:function(e){return e*o},equals:function(e,t){return Math.abs(e-t)<=a*Math.max(1,Math.abs(e),Math.abs(t))}})},52138:(e,t,n)=>{n.d(t,{a:()=>r,b:()=>c,d:()=>p,e:()=>s,f:()=>f,g:()=>T,h:()=>M,i:()=>l,m:()=>u,o:()=>m,q:()=>v,s:()=>o,t:()=>h});var a=n(65617),i=n(46851);function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function o(e,t,n,a,i,s,o,l,r,c,u,h,f,p,m,d,y){return e[0]=t,e[1]=n,e[2]=a,e[3]=i,e[4]=s,e[5]=o,e[6]=l,e[7]=r,e[8]=c,e[9]=u,e[10]=h,e[11]=f,e[12]=p,e[13]=m,e[14]=d,e[15]=y,e}function l(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function r(e,t){if(e===t){const n=t[1],a=t[2],i=t[3],s=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=a,e[9]=s,e[11]=t[14],e[12]=i,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function c(e,t){const n=t[0],a=t[1],i=t[2],s=t[3],o=t[4],l=t[5],r=t[6],c=t[7],u=t[8],h=t[9],f=t[10],p=t[11],m=t[12],d=t[13],y=t[14],x=t[15],M=n*l-a*o,T=n*r-i*o,v=n*c-s*o,g=a*r-i*l,w=a*c-s*l,R=i*c-s*r,b=u*d-h*m,_=u*y-f*m,E=u*x-p*m,q=h*y-f*d,I=h*x-p*d,A=f*x-p*y;let D=M*A-T*I+v*q+g*E-w*_+R*b;return D?(D=1/D,e[0]=(l*A-r*I+c*q)*D,e[1]=(i*I-a*A-s*q)*D,e[2]=(d*R-y*w+x*g)*D,e[3]=(f*w-h*R-p*g)*D,e[4]=(r*E-o*A-c*_)*D,e[5]=(n*A-i*E+s*_)*D,e[6]=(y*v-m*R-x*T)*D,e[7]=(u*R-f*v+p*T)*D,e[8]=(o*I-l*E+c*b)*D,e[9]=(a*E-n*I-s*b)*D,e[10]=(m*w-d*v+x*M)*D,e[11]=(h*v-u*w-p*M)*D,e[12]=(l*_-o*q-r*b)*D,e[13]=(n*q-a*_+i*b)*D,e[14]=(d*T-m*g-y*M)*D,e[15]=(u*g-h*T+f*M)*D,e):null}function u(e,t,n){const a=t[0],i=t[1],s=t[2],o=t[3],l=t[4],r=t[5],c=t[6],u=t[7],h=t[8],f=t[9],p=t[10],m=t[11],d=t[12],y=t[13],x=t[14],M=t[15];let T=n[0],v=n[1],g=n[2],w=n[3];return e[0]=T*a+v*l+g*h+w*d,e[1]=T*i+v*r+g*f+w*y,e[2]=T*s+v*c+g*p+w*x,e[3]=T*o+v*u+g*m+w*M,T=n[4],v=n[5],g=n[6],w=n[7],e[4]=T*a+v*l+g*h+w*d,e[5]=T*i+v*r+g*f+w*y,e[6]=T*s+v*c+g*p+w*x,e[7]=T*o+v*u+g*m+w*M,T=n[8],v=n[9],g=n[10],w=n[11],e[8]=T*a+v*l+g*h+w*d,e[9]=T*i+v*r+g*f+w*y,e[10]=T*s+v*c+g*p+w*x,e[11]=T*o+v*u+g*m+w*M,T=n[12],v=n[13],g=n[14],w=n[15],e[12]=T*a+v*l+g*h+w*d,e[13]=T*i+v*r+g*f+w*y,e[14]=T*s+v*c+g*p+w*x,e[15]=T*o+v*u+g*m+w*M,e}function h(e,t,n){const a=n[0],i=n[1],s=n[2];let o,l,r,c,u,h,f,p,m,d,y,x;return t===e?(e[12]=t[0]*a+t[4]*i+t[8]*s+t[12],e[13]=t[1]*a+t[5]*i+t[9]*s+t[13],e[14]=t[2]*a+t[6]*i+t[10]*s+t[14],e[15]=t[3]*a+t[7]*i+t[11]*s+t[15]):(o=t[0],l=t[1],r=t[2],c=t[3],u=t[4],h=t[5],f=t[6],p=t[7],m=t[8],d=t[9],y=t[10],x=t[11],e[0]=o,e[1]=l,e[2]=r,e[3]=c,e[4]=u,e[5]=h,e[6]=f,e[7]=p,e[8]=m,e[9]=d,e[10]=y,e[11]=x,e[12]=o*a+u*i+m*s+t[12],e[13]=l*a+h*i+d*s+t[13],e[14]=r*a+f*i+y*s+t[14],e[15]=c*a+p*i+x*s+t[15]),e}function f(e,t,n){const a=n[0],i=n[1],s=n[2];return e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e[3]=t[3]*a,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function p(e,t,n,a){let s,o,l,r,c,u,h,f,p,m,d,y,x,M,T,v,g,w,R,b,_,E,q,I,A=a[0],D=a[1],C=a[2],Z=Math.sqrt(A*A+D*D+C*C);return Z<i.E?null:(Z=1/Z,A*=Z,D*=Z,C*=Z,s=Math.sin(n),o=Math.cos(n),l=1-o,r=t[0],c=t[1],u=t[2],h=t[3],f=t[4],p=t[5],m=t[6],d=t[7],y=t[8],x=t[9],M=t[10],T=t[11],v=A*A*l+o,g=D*A*l+C*s,w=C*A*l-D*s,R=A*D*l-C*s,b=D*D*l+o,_=C*D*l+A*s,E=A*C*l+D*s,q=D*C*l-A*s,I=C*C*l+o,e[0]=r*v+f*g+y*w,e[1]=c*v+p*g+x*w,e[2]=u*v+m*g+M*w,e[3]=h*v+d*g+T*w,e[4]=r*R+f*b+y*_,e[5]=c*R+p*b+x*_,e[6]=u*R+m*b+M*_,e[7]=h*R+d*b+T*_,e[8]=r*E+f*q+y*I,e[9]=c*E+p*q+x*I,e[10]=u*E+m*q+M*I,e[11]=h*E+d*q+T*I,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function m(e,t){const n=Math.sin(t),a=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function d(e,t,n){const a=t[0],i=t[1],s=t[2],o=t[3],l=a+a,r=i+i,c=s+s,u=a*l,h=a*r,f=a*c,p=i*r,m=i*c,d=s*c,y=o*l,x=o*r,M=o*c;return e[0]=1-(p+d),e[1]=h+M,e[2]=f-x,e[3]=0,e[4]=h-M,e[5]=1-(u+d),e[6]=m+y,e[7]=0,e[8]=f+x,e[9]=m-y,e[10]=1-(u+p),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}const y=(0,a.c)();function x(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}function M(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function T(e,t){if(e===t)return!0;const n=e[0],a=e[1],s=e[2],o=e[3],l=e[4],r=e[5],c=e[6],u=e[7],h=e[8],f=e[9],p=e[10],m=e[11],d=e[12],y=e[13],x=e[14],M=e[15],T=t[0],v=t[1],g=t[2],w=t[3],R=t[4],b=t[5],_=t[6],E=t[7],q=t[8],I=t[9],A=t[10],D=t[11],C=t[12],Z=t[13],S=t[14],z=t[15];return Math.abs(n-T)<=i.E*Math.max(1,Math.abs(n),Math.abs(T))&&Math.abs(a-v)<=i.E*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(s-g)<=i.E*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(o-w)<=i.E*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(l-R)<=i.E*Math.max(1,Math.abs(l),Math.abs(R))&&Math.abs(r-b)<=i.E*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(c-_)<=i.E*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(u-E)<=i.E*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(h-q)<=i.E*Math.max(1,Math.abs(h),Math.abs(q))&&Math.abs(f-I)<=i.E*Math.max(1,Math.abs(f),Math.abs(I))&&Math.abs(p-A)<=i.E*Math.max(1,Math.abs(p),Math.abs(A))&&Math.abs(m-D)<=i.E*Math.max(1,Math.abs(m),Math.abs(D))&&Math.abs(d-C)<=i.E*Math.max(1,Math.abs(d),Math.abs(C))&&Math.abs(y-Z)<=i.E*Math.max(1,Math.abs(y),Math.abs(Z))&&Math.abs(x-S)<=i.E*Math.max(1,Math.abs(x),Math.abs(S))&&Math.abs(M-z)<=i.E*Math.max(1,Math.abs(M),Math.abs(z))}function v(e){const t=i.E,n=e[0],a=e[1],s=e[2],o=e[4],l=e[5],r=e[6],c=e[8],u=e[9],h=e[10];return Math.abs(1-(n*n+o*o+c*c))<=t&&Math.abs(1-(a*a+l*l+u*u))<=t&&Math.abs(1-(s*s+r*r+h*h))<=t}const g=u,w=x;Object.freeze({__proto__:null,copy:s,set:o,identity:l,transpose:r,invert:c,adjoint:function(e,t){const n=t[0],a=t[1],i=t[2],s=t[3],o=t[4],l=t[5],r=t[6],c=t[7],u=t[8],h=t[9],f=t[10],p=t[11],m=t[12],d=t[13],y=t[14],x=t[15];return e[0]=l*(f*x-p*y)-h*(r*x-c*y)+d*(r*p-c*f),e[1]=-(a*(f*x-p*y)-h*(i*x-s*y)+d*(i*p-s*f)),e[2]=a*(r*x-c*y)-l*(i*x-s*y)+d*(i*c-s*r),e[3]=-(a*(r*p-c*f)-l*(i*p-s*f)+h*(i*c-s*r)),e[4]=-(o*(f*x-p*y)-u*(r*x-c*y)+m*(r*p-c*f)),e[5]=n*(f*x-p*y)-u*(i*x-s*y)+m*(i*p-s*f),e[6]=-(n*(r*x-c*y)-o*(i*x-s*y)+m*(i*c-s*r)),e[7]=n*(r*p-c*f)-o*(i*p-s*f)+u*(i*c-s*r),e[8]=o*(h*x-p*d)-u*(l*x-c*d)+m*(l*p-c*h),e[9]=-(n*(h*x-p*d)-u*(a*x-s*d)+m*(a*p-s*h)),e[10]=n*(l*x-c*d)-o*(a*x-s*d)+m*(a*c-s*l),e[11]=-(n*(l*p-c*h)-o*(a*p-s*h)+u*(a*c-s*l)),e[12]=-(o*(h*y-f*d)-u*(l*y-r*d)+m*(l*f-r*h)),e[13]=n*(h*y-f*d)-u*(a*y-i*d)+m*(a*f-i*h),e[14]=-(n*(l*y-r*d)-o*(a*y-i*d)+m*(a*r-i*l)),e[15]=n*(l*f-r*h)-o*(a*f-i*h)+u*(a*r-i*l),e},determinant:function(e){const t=e[0],n=e[1],a=e[2],i=e[3],s=e[4],o=e[5],l=e[6],r=e[7],c=e[8],u=e[9],h=e[10],f=e[11],p=e[12],m=e[13],d=e[14],y=e[15];return(t*o-n*s)*(h*y-f*d)-(t*l-a*s)*(u*y-f*m)+(t*r-i*s)*(u*d-h*m)+(n*l-a*o)*(c*y-f*p)-(n*r-i*o)*(c*d-h*p)+(a*r-i*l)*(c*m-u*p)},multiply:u,translate:h,scale:f,rotate:p,rotateX:function(e,t,n){const a=Math.sin(n),i=Math.cos(n),s=t[4],o=t[5],l=t[6],r=t[7],c=t[8],u=t[9],h=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*i+c*a,e[5]=o*i+u*a,e[6]=l*i+h*a,e[7]=r*i+f*a,e[8]=c*i-s*a,e[9]=u*i-o*a,e[10]=h*i-l*a,e[11]=f*i-r*a,e},rotateY:function(e,t,n){const a=Math.sin(n),i=Math.cos(n),s=t[0],o=t[1],l=t[2],r=t[3],c=t[8],u=t[9],h=t[10],f=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*i-c*a,e[1]=o*i-u*a,e[2]=l*i-h*a,e[3]=r*i-f*a,e[8]=s*a+c*i,e[9]=o*a+u*i,e[10]=l*a+h*i,e[11]=r*a+f*i,e},rotateZ:function(e,t,n){const a=Math.sin(n),i=Math.cos(n),s=t[0],o=t[1],l=t[2],r=t[3],c=t[4],u=t[5],h=t[6],f=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*i+c*a,e[1]=o*i+u*a,e[2]=l*i+h*a,e[3]=r*i+f*a,e[4]=c*i-s*a,e[5]=u*i-o*a,e[6]=h*i-l*a,e[7]=f*i-r*a,e},fromTranslation:function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e},fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotation:function(e,t,n){let a,s,o,l=n[0],r=n[1],c=n[2],u=Math.sqrt(l*l+r*r+c*c);return u<i.E?null:(u=1/u,l*=u,r*=u,c*=u,a=Math.sin(t),s=Math.cos(t),o=1-s,e[0]=l*l*o+s,e[1]=r*l*o+c*a,e[2]=c*l*o-r*a,e[3]=0,e[4]=l*r*o-c*a,e[5]=r*r*o+s,e[6]=c*r*o+l*a,e[7]=0,e[8]=l*c*o+r*a,e[9]=r*c*o-l*a,e[10]=c*c*o+s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)},fromXRotation:m,fromYRotation:function(e,t){const n=Math.sin(t),a=Math.cos(t);return e[0]=a,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const n=Math.sin(t),a=Math.cos(t);return e[0]=a,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotationTranslation:d,fromQuat2:function(e,t){const n=y,a=-t[0],i=-t[1],s=-t[2],o=t[3],l=t[4],r=t[5],c=t[6],u=t[7],h=a*a+i*i+s*s+o*o;return h>0?(n[0]=2*(l*o+u*a+r*s-c*i)/h,n[1]=2*(r*o+u*i+c*a-l*s)/h,n[2]=2*(c*o+u*s+l*i-r*a)/h):(n[0]=2*(l*o+u*a+r*s-c*i),n[1]=2*(r*o+u*i+c*a-l*s),n[2]=2*(c*o+u*s+l*i-r*a)),d(e,t,n),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},getScaling:function(e,t){const n=t[0],a=t[1],i=t[2],s=t[4],o=t[5],l=t[6],r=t[8],c=t[9],u=t[10];return e[0]=Math.sqrt(n*n+a*a+i*i),e[1]=Math.sqrt(s*s+o*o+l*l),e[2]=Math.sqrt(r*r+c*c+u*u),e},getRotation:function(e,t){const n=t[0]+t[5]+t[10];let a=0;return n>0?(a=2*Math.sqrt(n+1),e[3]=.25*a,e[0]=(t[6]-t[9])/a,e[1]=(t[8]-t[2])/a,e[2]=(t[1]-t[4])/a):t[0]>t[5]&&t[0]>t[10]?(a=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/a,e[0]=.25*a,e[1]=(t[1]+t[4])/a,e[2]=(t[8]+t[2])/a):t[5]>t[10]?(a=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/a,e[0]=(t[1]+t[4])/a,e[1]=.25*a,e[2]=(t[6]+t[9])/a):(a=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/a,e[0]=(t[8]+t[2])/a,e[1]=(t[6]+t[9])/a,e[2]=.25*a),e},fromRotationTranslationScale:function(e,t,n,a){const i=t[0],s=t[1],o=t[2],l=t[3],r=i+i,c=s+s,u=o+o,h=i*r,f=i*c,p=i*u,m=s*c,d=s*u,y=o*u,x=l*r,M=l*c,T=l*u,v=a[0],g=a[1],w=a[2];return e[0]=(1-(m+y))*v,e[1]=(f+T)*v,e[2]=(p-M)*v,e[3]=0,e[4]=(f-T)*g,e[5]=(1-(h+y))*g,e[6]=(d+x)*g,e[7]=0,e[8]=(p+M)*w,e[9]=(d-x)*w,e[10]=(1-(h+m))*w,e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e},fromRotationTranslationScaleOrigin:function(e,t,n,a,i){const s=t[0],o=t[1],l=t[2],r=t[3],c=s+s,u=o+o,h=l+l,f=s*c,p=s*u,m=s*h,d=o*u,y=o*h,x=l*h,M=r*c,T=r*u,v=r*h,g=a[0],w=a[1],R=a[2],b=i[0],_=i[1],E=i[2],q=(1-(d+x))*g,I=(p+v)*g,A=(m-T)*g,D=(p-v)*w,C=(1-(f+x))*w,Z=(y+M)*w,S=(m+T)*R,z=(y-M)*R,F=(1-(f+d))*R;return e[0]=q,e[1]=I,e[2]=A,e[3]=0,e[4]=D,e[5]=C,e[6]=Z,e[7]=0,e[8]=S,e[9]=z,e[10]=F,e[11]=0,e[12]=n[0]+b-(q*b+D*_+S*E),e[13]=n[1]+_-(I*b+C*_+z*E),e[14]=n[2]+E-(A*b+Z*_+F*E),e[15]=1,e},fromQuat:function(e,t){const n=t[0],a=t[1],i=t[2],s=t[3],o=n+n,l=a+a,r=i+i,c=n*o,u=a*o,h=a*l,f=i*o,p=i*l,m=i*r,d=s*o,y=s*l,x=s*r;return e[0]=1-h-m,e[1]=u+x,e[2]=f-y,e[3]=0,e[4]=u-x,e[5]=1-c-m,e[6]=p+d,e[7]=0,e[8]=f+y,e[9]=p-d,e[10]=1-c-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,n,a,i,s,o){const l=1/(n-t),r=1/(i-a),c=1/(s-o);return e[0]=2*s*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*r,e[6]=0,e[7]=0,e[8]=(n+t)*l,e[9]=(i+a)*r,e[10]=(o+s)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*s*2*c,e[15]=0,e},perspective:function(e,t,n,a,i){const s=1/Math.tan(t/2);let o;return e[0]=s/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(o=1/(a-i),e[10]=(i+a)*o,e[14]=2*i*a*o):(e[10]=-1,e[14]=-2*a),e},perspectiveFromFieldOfView:function(e,t,n,a){const i=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),r=2/(o+l),c=2/(i+s);return e[0]=r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(o-l)*r*.5,e[9]=(i-s)*c*.5,e[10]=a/(n-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*n/(n-a),e[15]=0,e},ortho:function(e,t,n,a,i,s,o){const l=1/(t-n),r=1/(a-i),c=1/(s-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*l,e[13]=(i+a)*r,e[14]=(o+s)*c,e[15]=1,e},lookAt:function(e,t,n,a){let s,o,r,c,u,h,f,p,m,d;const y=t[0],x=t[1],M=t[2],T=a[0],v=a[1],g=a[2],w=n[0],R=n[1],b=n[2];return Math.abs(y-w)<i.E&&Math.abs(x-R)<i.E&&Math.abs(M-b)<i.E?l(e):(f=y-w,p=x-R,m=M-b,d=1/Math.sqrt(f*f+p*p+m*m),f*=d,p*=d,m*=d,s=v*m-g*p,o=g*f-T*m,r=T*p-v*f,d=Math.sqrt(s*s+o*o+r*r),d?(d=1/d,s*=d,o*=d,r*=d):(s=0,o=0,r=0),c=p*r-m*o,u=m*s-f*r,h=f*o-p*s,d=Math.sqrt(c*c+u*u+h*h),d?(d=1/d,c*=d,u*=d,h*=d):(c=0,u=0,h=0),e[0]=s,e[1]=c,e[2]=f,e[3]=0,e[4]=o,e[5]=u,e[6]=p,e[7]=0,e[8]=r,e[9]=h,e[10]=m,e[11]=0,e[12]=-(s*y+o*x+r*M),e[13]=-(c*y+u*x+h*M),e[14]=-(f*y+p*x+m*M),e[15]=1,e)},targetTo:function(e,t,n,a){const i=t[0],s=t[1],o=t[2],l=a[0],r=a[1],c=a[2];let u=i-n[0],h=s-n[1],f=o-n[2],p=u*u+h*h+f*f;p>0&&(p=1/Math.sqrt(p),u*=p,h*=p,f*=p);let m=r*f-c*h,d=c*u-l*f,y=l*h-r*u;return p=m*m+d*d+y*y,p>0&&(p=1/Math.sqrt(p),m*=p,d*=p,y*=p),e[0]=m,e[1]=d,e[2]=y,e[3]=0,e[4]=h*y-f*d,e[5]=f*m-u*y,e[6]=u*d-h*m,e[7]=0,e[8]=u,e[9]=h,e[10]=f,e[11]=0,e[12]=i,e[13]=s,e[14]=o,e[15]=1,e},str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e},subtract:x,multiplyScalar:function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n,e},multiplyScalarAndAdd:function(e,t,n,a){return e[0]=t[0]+n[0]*a,e[1]=t[1]+n[1]*a,e[2]=t[2]+n[2]*a,e[3]=t[3]+n[3]*a,e[4]=t[4]+n[4]*a,e[5]=t[5]+n[5]*a,e[6]=t[6]+n[6]*a,e[7]=t[7]+n[7]*a,e[8]=t[8]+n[8]*a,e[9]=t[9]+n[9]*a,e[10]=t[10]+n[10]*a,e[11]=t[11]+n[11]*a,e[12]=t[12]+n[12]*a,e[13]=t[13]+n[13]*a,e[14]=t[14]+n[14]*a,e[15]=t[15]+n[15]*a,e},exactEquals:M,equals:T,isOrthoNormal:v,mul:g,sub:w})},65617:(e,t,n)=>{function a(){return[0,0,0]}function i(e){return[e[0],e[1],e[2]]}function s(e,t,n){return[e,t,n]}function o(e){const t=[0,0,0],n=Math.min(3,e.length);for(let a=0;a<n;++a)t[a]=e[a];return t}function l(e,t){return new Float64Array(e,t,3)}function r(){return s(1,1,1)}function c(){return s(1,0,0)}function u(){return s(0,1,0)}function h(){return s(0,0,1)}n.d(t,{O:()=>p,Z:()=>f,a:()=>i,b:()=>l,c:()=>a,d:()=>o,f:()=>s});const f=[0,0,0],p=r(),m=c(),d=u(),y=h();Object.freeze({__proto__:null,create:a,clone:i,fromValues:s,fromArray:o,createView:l,zeros:function(){return[0,0,0]},ones:r,unitX:c,unitY:u,unitZ:h,ZEROS:f,ONES:p,UNIT_X:m,UNIT_Y:d,UNIT_Z:y})},33127:(e,t,n)=>{n.r(t),n.d(t,{ElevationQuery:()=>_,GeometryDescriptor:()=>E,default:()=>_,getFinestLodIndex:()=>D});var a=n(66643),i=n(20102),s=n(70586),o=n(95330),l=n(67900),r=n(65091),c=n(13473),u=n(58901),h=n(42894),f=n(24470),p=(n(66577),n(80442),n(92604)),m=n(54102),d=n(40488);const y=p.Z.getLogger("esri.layers.support.ElevationSampler");class x{queryElevation(e){return function(e,t){const n=v(e,t.spatialReference);if(!n)return null;switch(e.type){case"point":!function(e,t,n){e.z=(0,s.Pt)(n.elevationAt(t),0)}(e,n,t);break;case"polyline":!function(e,t,n){g.spatialReference=t.spatialReference;const a=e.hasM&&!e.hasZ;for(let i=0;i<e.paths.length;i++){const o=e.paths[i],l=t.paths[i];for(let e=0;e<o.length;e++){const t=o[e],i=l[e];g.x=i[0],g.y=i[1],a&&(t[3]=t[2]),t[2]=(0,s.Pt)(n.elevationAt(g),0)}}e.hasZ=!0}(e,n,t);break;case"multipoint":!function(e,t,n){g.spatialReference=t.spatialReference;const a=e.hasM&&!e.hasZ;for(let i=0;i<e.points.length;i++){const o=e.points[i],l=t.points[i];g.x=l[0],g.y=l[1],a&&(o[3]=o[2]),o[2]=(0,s.Pt)(n.elevationAt(g),0)}e.hasZ=!0}(e,n,t)}return e}(e.clone(),this)}on(){return w}projectIfRequired(e,t){return v(e,t)}}class M extends x{constructor(e,t,n){super(),this.tile=e,this.noDataValue=n,this.extent=(0,f.HH)(e.tile.extent,t.spatialReference);const a=(0,l.c9)(t.spatialReference),i=t.lodAt(e.tile.level).resolution*a;this.demResolution={min:i,max:i}}get spatialReference(){return this.extent.spatialReference}contains(e){const t=this.projectIfRequired(e,this.spatialReference);return(0,m.aV)(this.extent,t)}elevationAt(e){const t=this.projectIfRequired(e,this.spatialReference);if((0,s.Wi)(t))return null;if(!this.contains(e)){const t=this.extent,n=`${t.xmin}, ${t.ymin}, ${t.xmax}, ${t.ymax}`;return y.warn("#elevationAt()",`Point used to sample elevation (${e.x}, ${e.y}) is outside of the sampler extent (${n})`),this.noDataValue}return this.tile.sample(t.x,t.y)}}class T extends x{constructor(e,t,n){let a;super(),"number"==typeof t?(this.noDataValue=t,a=null):(a=t,this.noDataValue=n),this.samplers=a?e.map((e=>new M(e,a,this.noDataValue))):e;const i=this.samplers[0];if(i){this.extent=i.extent.clone();const{min:e,max:t}=i.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<this.samplers.length;e++){const t=this.samplers[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else this.extent=(0,f.HH)((0,f.Ue)(),a.spatialReference),this.demResolution={min:0,max:0}}get spatialReference(){return this.extent.spatialReference}elevationAt(e){const t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;for(const e of this.samplers)if(e.contains(t))return e.elevationAt(t);return y.warn("#elevationAt()",`Point used to sample elevation (${e.x}, ${e.y}) is outside of the sampler`),this.noDataValue}}function v(e,t){if((0,s.Wi)(e))return null;const n=e.spatialReference;if(n.equals(t))return e;const a=(0,d.iV)(e,t);return a||y.error(`Cannot project geometry spatial reference (wkid:${n.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),a}const g=new c.Z,w={remove(){}};class R{constructor(e,t=null){if(this.tile=e,(0,s.pC)(t)){const n=e.extent;this.samplerData={pixelData:t.values,width:t.width,height:t.height,safeWidth:.99999999*(t.width-1),noDataValue:t.noDataValue,dx:(t.width-1)/(n[2]-n[0]),dy:(t.width-1)/(n[3]-n[1]),x0:n[0],y1:n[3]}}}sample(e,t){if((0,s.Wi)(this.samplerData))return;const{safeWidth:n,width:a,pixelData:i,noDataValue:o,dx:l,dy:r,y1:c,x0:u}=this.samplerData,h=b(r*(c-t),0,n),f=b(l*(e-u),0,n),p=Math.floor(h),m=Math.floor(f),d=p*a+m,y=d+a,x=i[d],M=i[y],T=i[d+1],v=i[y+1];if(x!==o&&M!==o&&T!==o&&v!==o){const e=f-m,t=x+(T-x)*e;return t+(M+(v-M)*e-t)*(h-p)}}}function b(e,t,n){return e<t?t:e>n?n:e}class _{async queryAll(e,t,n){if(!(e=n&&n.ignoreInvisibleLayers?e.filter((e=>e.visible)):e.slice()).length)throw new i.Z("elevation-query:invalid-layer","Elevation queries require at least one elevation layer to fetch tiles from");const a=E.fromGeometry(t);let s=!1;n&&n.returnSampleInfo||(s=!0);const o={...C,...n,returnSampleInfo:!0},l=await this.query(e[e.length-1],a,o),r=await this._queryAllContinue(e,l,o);return r.geometry=r.geometry.export(),s&&delete r.sampleInfo,r}async query(e,t,n){if(!e)throw new i.Z("elevation-query:invalid-layer","Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof E)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new i.Z("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const a={...C,...n},s=new I(e,t.spatialReference,a),o=a.signal;return await e.load({signal:o}),await this._createGeometryDescriptor(s,t,o),await this._selectTiles(s,o),await this._populateElevationTiles(s,o),this._sampleGeometryWithElevation(s),this._createQueryResult(s,o)}async createSampler(e,t,n){if(!e)throw new i.Z("elevation-query:invalid-layer","Elevation queries require an elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new i.Z("elevation-query:invalid-extent","Invalid or undefined extent");const a={...C,...n};return this._createSampler(e,t,a)}async createSamplerAll(e,t,n){if(!(e=n&&n.ignoreInvisibleLayers?e.filter((e=>e.visible)):e.slice()).length)throw new i.Z("elevation-query:invalid-layer","Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new i.Z("elevation-query:invalid-extent","Invalid or undefined extent");const a={...C,...n,returnSampleInfo:!0},s=await this._createSampler(e[e.length-1],t,a);return this._createSamplerAllContinue(e,t,s,a)}async _createSampler(e,t,n,a){const i=n.signal;await e.load({signal:i});const s=t.spatialReference,o=e.tileInfo.spatialReference;s.equals(o)||(await(0,h.iQ)([{source:s,dest:o}],{signal:i}),t=(0,h.iV)(t,o));const l=new A(e,t,n,a);return await this._selectTiles(l,i),await this._populateElevationTiles(l,i),new T(l.elevationTiles,l.layer.tileInfo,l.options.noDataValue)}async _createSamplerAllContinue(e,t,n,a){if(e.pop(),!e.length)return n;const i=n.samplers.map((e=>(0,f.oJ)(e.extent))),s=await this._createSampler(e[e.length-1],t,a,i);if(0===s.samplers.length)return n;const o=n.samplers.concat(s.samplers),l=new T(o,a.noDataValue);return this._createSamplerAllContinue(e,t,l,a)}async _queryAllContinue(e,t,n){const a=e.pop(),i=t.geometry.coordinates,s=[],o=[];for(let n=0;n<i.length;n++){const l=t.sampleInfo[n];l.demResolution>=0?l.source||(l.source=a):e.length&&(s.push(i[n]),o.push(n))}if(!e.length||0===s.length)return t;const l=t.geometry.clone(s),r=await this.query(e[e.length-1],l,n);return o.forEach(((e,n)=>{i[e].z=r.geometry.coordinates[n].z,t.sampleInfo[e].demResolution=r.sampleInfo[n].demResolution})),this._queryAllContinue(e,t,n)}async _createQueryResult(e,t){const n={geometry:(await e.geometry.project(e.outSpatialReference,t)).export(),noDataValue:e.options.noDataValue};return e.options.returnSampleInfo&&(n.sampleInfo=this._extractSampleInfo(e)),e.geometry.coordinates.forEach((e=>{e.tile=null,e.elevationTile=null})),n}async _createGeometryDescriptor(e,t,n){let a;const s=e.layer.tileInfo.spatialReference;if(t instanceof E?a=await t.project(s,n):(await(0,h.iQ)([{source:t.spatialReference,dest:s}],{signal:n}),a=(0,h.iV)(t,s)),!a)throw new i.Z("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${s.wkid}'`);e.geometry=E.fromGeometry(a)}async _selectTiles(e,t){const n=e.options.demResolution;if("geometry"===e.type&&this._preselectOutsideLayerExtent(e),"number"==typeof n)this._selectTilesClosestResolution(e);else if("finest-contiguous"===n)await this._selectTilesFinestContiguous(e,t);else{if("auto"!==n)throw new i.Z("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${n}', expected a number, "finest-contiguous" or "auto"`);await this._selectTilesAuto(e,t)}}_preselectOutsideLayerExtent(e){if((0,s.Wi)(e.layer.fullExtent))return;const t=new R(null);t.sample=()=>e.options.noDataValue,e.outsideExtentTile=t;const n=e.layer.fullExtent;e.geometry.coordinates.forEach((e=>{const a=e.x,i=e.y;(a<n.xmin||a>n.xmax||i<n.ymin||i>n.ymax)&&(e.elevationTile=t)}))}_selectTilesClosestResolution(e){const t=e.layer.tileInfo,n=this._findNearestDemResolutionLODIndex(t,e.options.demResolution);e.selectTilesAtLOD(n)}_findNearestDemResolutionLODIndex(e,t){const n=t/(0,l.c9)(e.spatialReference);let a=e.lods[0],i=0;for(let t=1;t<e.lods.length;t++){const s=e.lods[t];Math.abs(s.resolution-n)<Math.abs(a.resolution-n)&&(a=s,i=t)}return i}async _selectTilesFinestContiguous(e,t){const n=D(e.layer.tileInfo,e.options.minDemResolution);await this._selectTilesFinestContiguousAt(e,n,t)}async _selectTilesFinestContiguousAt(e,t,n){const a=e.layer;if(e.selectTilesAtLOD(t),t<0)return;const s=a.tilemapCache,l=e.getTilesToFetch();try{if(s)await(0,o.Hl)(Promise.all(l.map((e=>s.fetchAvailability(e.level,e.row,e.col,{signal:n})))),n);else if(await this._populateElevationTiles(e,n),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new i.Z("elevation-query:has-unavailable-tiles")}catch(a){(0,o.r9)(a),await this._selectTilesFinestContiguousAt(e,t-1,n)}}async _populateElevationTiles(e,t){const n=e.getTilesToFetch(),a={},i=e.options.cache,l=e.options.noDataValue,r=n.map((async n=>{const o=`${e.layer.uid}:${n.id}:${l}`,r=(0,s.pC)(i)?i.get(o):null,c=(0,s.pC)(r)?r:await e.layer.fetchTile(n.level,n.row,n.col,{noDataValue:l,signal:t});(0,s.pC)(i)&&i.put(o,c),a[n.id]=new R(n,c)}));await(0,o.Hl)((0,o.as)(r),t),e.populateElevationTiles(a)}async _selectTilesAuto(e,t){this._selectTilesAutoFinest(e),this._reduceTilesForMaximumRequests(e);const n=e.layer.tilemapCache;if(!n)return this._selectTilesAutoPrefetchUpsample(e,t);const i=e.getTilesToFetch(),s={},l=i.map((async e=>{const i={id:null,level:0,row:0,col:0,extent:(0,f.Ue)()},l=await(0,a.q6)(n.fetchAvailabilityUpsample(e.level,e.row,e.col,i,{signal:t}));!1===l.ok?(0,o.r9)(l.error):s[e.id]=i}));await(0,o.Hl)(Promise.all(l),t),e.remapTiles(s)}_reduceTilesForMaximumRequests(e){const t=e.layer.tileInfo;let n=0;const a={},i=e=>{e.id in a?a[e.id]++:(a[e.id]=1,n++)},s=e=>{const t=a[e.id];1===t?(delete a[e.id],n--):a[e.id]=t-1};e.forEachTileToFetch(i,s);let o=!0;for(;o&&(o=!1,e.forEachTileToFetch((a=>{n<=e.options.maximumAutoTileRequests||(s(a),t.upsampleTile(a)&&(o=!0),i(a))}),s),o););}_selectTilesAutoFinest(e){const t=D(e.layer.tileInfo,e.options.minDemResolution);e.selectTilesAtLOD(t,e.options.maximumAutoTileRequests)}async _selectTilesAutoPrefetchUpsample(e,t){const n=e.layer.tileInfo;await this._populateElevationTiles(e,t);let a=!1;e.forEachTileToFetch(((e,t)=>{n.upsampleTile(e)?a=!0:t()})),a&&await this._selectTilesAutoPrefetchUpsample(e,t)}_sampleGeometryWithElevation(e){e.geometry.coordinates.forEach((t=>{const n=t.elevationTile;let a=e.options.noDataValue;if(n){const e=n.sample(t.x,t.y);(0,s.pC)(e)?a=e:t.elevationTile=null}t.z=a}))}_extractSampleInfo(e){const t=e.layer.tileInfo,n=(0,l.c9)(t.spatialReference);return e.geometry.coordinates.map((a=>{let i=-1;return a.elevationTile&&a.elevationTile!==e.outsideExtentTile&&(i=t.lodAt(a.elevationTile.tile.level).resolution*n),{demResolution:i}}))}}class E{export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new E;return t.geometry=this.geometry,t.spatialReference=this.spatialReference,t.coordinates=e||this.coordinates.map((e=>this._cloneCoordinate(e))),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,h.iQ)([{source:this.spatialReference,dest:e}],{signal:t});const n=new r.Z({spatialReference:this.spatialReference,points:this.coordinates.map((e=>[e.x,e.y]))}),a=(0,h.iV)(n,e);if(!a)return null;const i=this.coordinates.map(((e,t)=>{const n=this._cloneCoordinate(e),i=a.points[t];return n.x=i[0],n.y=i[1],n})),s=this.clone(i);return s.spatialReference=e,s}_cloneCoordinate(e){return{x:e.x,y:e.y,z:e.z,m:e.m,tile:null,elevationTile:null}}static fromGeometry(e){const t=new E;if(t.geometry=e,t.spatialReference=e.spatialReference,e instanceof E)t.coordinates=e.coordinates.map((e=>t._cloneCoordinate(e))),t._exporter=(t,n)=>{const a=e.clone(t);return a.spatialReference=n,a};else switch(e.type){case"point":{const n=e,{hasZ:a,hasM:i}=n;t.coordinates=a&&i?[{x:n.x,y:n.y,z:n.z,m:n.m}]:a?[{x:n.x,y:n.y,z:n.z}]:i?[{x:n.x,y:n.y,m:n.m}]:[{x:n.x,y:n.y}],t._exporter=(t,n)=>e.hasM?new c.Z(t[0].x,t[0].y,t[0].z,t[0].m,n):new c.Z(t[0].x,t[0].y,t[0].z,n);break}case"multipoint":{const n=e,{hasZ:a,hasM:i}=n;t.coordinates=a&&i?n.points.map((e=>({x:e[0],y:e[1],z:e[2],m:e[3]}))):a?n.points.map((e=>({x:e[0],y:e[1],z:e[2]}))):i?n.points.map((e=>({x:e[0],y:e[1],m:e[2]}))):n.points.map((e=>({x:e[0],y:e[1]}))),t._exporter=(t,n)=>e.hasM?new r.Z({points:t.map((e=>[e.x,e.y,e.z,e.m])),hasZ:!0,hasM:!0,spatiaReference:n}):new r.Z(t.map((e=>[e.x,e.y,e.z])),n);break}case"polyline":{const n=e,a=[],i=[],{hasZ:s,hasM:o}=e;let l=0;for(const e of n.paths)if(i.push([l,l+e.length]),l+=e.length,s&&o)for(const t of e)a.push({x:t[0],y:t[1],z:t[2],m:t[3]});else if(s)for(const t of e)a.push({x:t[0],y:t[1],z:t[2]});else if(o)for(const t of e)a.push({x:t[0],y:t[1],m:t[2]});else for(const t of e)a.push({x:t[0],y:t[1]});t.coordinates=a,t._exporter=(t,n)=>{const a=e.hasM?t.map((e=>[e.x,e.y,e.z,e.m])):t.map((e=>[e.x,e.y,e.z])),s=i.map((e=>a.slice(e[0],e[1])));return new u.Z({paths:s,hasM:e.hasM,hasZ:!0,spatialReference:n})};break}}return t}}class q{constructor(e,t){this.layer=e,this.options=t}}class I extends q{constructor(e,t,n){super(e,n),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach((e=>e.tile=null));else{const t=this.layer.tileInfo,n=t.lods[e].level;this.geometry.coordinates.forEach((e=>{e.tile=t.tileAt(n,e.x,e.y)}))}}allElevationTilesFetched(){return!this.geometry.coordinates.some((e=>!e.elevationTile))}clearElevationTiles(){for(const e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(const t of this.geometry.coordinates)!t.elevationTile&&t.tile&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(const t of this.geometry.coordinates)t.tile=e[t.tile.id]}getTilesToFetch(){const e={},t=[];for(const n of this.geometry.coordinates){const a=n.tile;n.elevationTile||!n.tile||e[a.id]||(e[a.id]=a,t.push(a))}return t}forEachTileToFetch(e){for(const t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,(()=>t.tile=null))}}class A extends q{constructor(e,t,n,a){super(e,n),this.type="extent",this.elevationTiles=[],this.candidateTiles=[],this.fetchedCandidates=new Set,this.extent=t.intersection(e.fullExtent),this.maskExtents=a}selectTilesAtLOD(e,t){const n=this._maximumLodForRequests(t),a=Math.min(n,e);a<0?this.candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(a)}_maximumLodForRequests(e){const t=this.layer.tileInfo;if(!e)return t.lods.length-1;const n=this.extent;if((0,s.Wi)(n))return-1;for(let a=t.lods.length-1;a>=0;a--){const i=t.lods[a],s=i.resolution*t.size[0],o=i.resolution*t.size[1];if(Math.ceil(n.width/s)*Math.ceil(n.height/o)<=e)return a}return-1}allElevationTilesFetched(){return this.candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this.fetchedCandidates.clear()}populateElevationTiles(e){for(const t of this.candidateTiles){const n=e[t.id];n&&(this.fetchedCandidates.add(t),this.elevationTiles.push(n))}}remapTiles(e){this.candidateTiles=this._uniqueNonOverlappingTiles(this.candidateTiles.map((t=>e[t.id])))}getTilesToFetch(){return this.candidateTiles}forEachTileToFetch(e,t){const n=this.candidateTiles;this.candidateTiles=[],n.forEach((n=>{if(this.fetchedCandidates.has(n))return void(t&&t(n));let a=!1;e(n,(()=>a=!0)),a?t&&t(n):this.candidateTiles.push(n)})),this.candidateTiles=this._uniqueNonOverlappingTiles(this.candidateTiles,t)}_uniqueNonOverlappingTiles(e,t){const n={},a=[];for(const i of e)n[i.id]?t&&t(i):(n[i.id]=i,a.push(i));const i=a.sort(((e,t)=>e.level-t.level));return i.filter(((e,n)=>{for(let a=0;a<n;a++)if((0,f.r3)(i[a].extent,e.extent))return t&&t(e),!1;return!0}))}_selectCandidateTilesCoveringExtentAt(e){this.candidateTiles.length=0;const t=this.extent;if((0,s.Wi)(t))return;const n=this.layer.tileInfo,a=n.lods[e],i=n.tileAt(a.level,t.xmin,t.ymin),o=a.resolution*n.size[0],l=a.resolution*n.size[1],r=Math.ceil((t.xmax-i.extent[0])/o),c=Math.ceil((t.ymax-i.extent[1])/l);for(let e=0;e<c;e++)for(let t=0;t<r;t++){const a={id:null,level:i.level,row:i.row-e,col:i.col+t};n.updateTileInfo(a),this._tileIsMasked(a)||this.candidateTiles.push(a)}}_tileIsMasked(e){return!!this.maskExtents&&this.maskExtents.some((t=>(0,f.r3)(t,e.extent)))}}function D(e,t){let n=e.lods.length-1;if(t>0){const a=e.lods.findIndex((e=>e.resolution<t));0===a?n=0:a>0&&(n=a-1)}return n}const C={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7323],{92835:(e,t,r)=>{r.d(t,{Z:()=>f});var i,n=r(43697),s=r(10736),o=r(70586),a=r(35463),l=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),d=r(52011),p=r(30556);let c=i=class extends s.wq{constructor(e){super(e),this.end=null,this.start=null}static get allTime(){return h}static get empty(){return y}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=(0,o.pC)(this.start)?this.start.getTime():this.start,r=(0,o.pC)(this.end)?this.end.getTime():this.end,i=(0,o.pC)(e.start)?e.start.getTime():e.start,n=(0,o.pC)(e.end)?e.end.getTime():e.end;return t===i&&r===n}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,o.Po)(this.start,(t=>(0,a.JE)(t,e))),r=(0,o.Po)(this.end,(t=>(0,a.Nm)((0,a.JE)(t,e),1,e)));return new i({start:t,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=(0,o.R2)(this.start,-1/0,(e=>e.getTime())),r=(0,o.R2)(this.end,1/0,(e=>e.getTime())),n=(0,o.R2)(e.start,-1/0,(e=>e.getTime())),s=(0,o.R2)(e.end,1/0,(e=>e.getTime()));let a,l;if(n>=t&&n<=r?a=n:t>=n&&t<=s&&(a=t),r>=n&&r<=s?l=r:s>=t&&s<=r&&(l=s),!isNaN(a)&&!isNaN(l)){const e=new i;return e.start=a===-1/0?null:new Date(a),e.end=l===1/0?null:new Date(l),e}return i.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const r=new i,{start:n,end:s}=this;return(0,o.pC)(n)&&(r.start=(0,a.Nm)(n,e,t)),(0,o.pC)(s)&&(r.end=(0,a.Nm)(s,e,t)),r}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=(0,o.pC)(this.start)&&(0,o.pC)(e.start)?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=(0,o.pC)(this.end)&&(0,o.pC)(e.end)?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n._)([(0,u.r)("end")],c.prototype,"readEnd",null),(0,n._)([(0,p.c)("end")],c.prototype,"writeEnd",null),(0,n._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n._)([(0,u.r)("start")],c.prototype,"readStart",null),(0,n._)([(0,p.c)("start")],c.prototype,"writeStart",null),c=i=(0,n._)([(0,d.j)("esri.TimeExtent")],c);const h=new c,y=new c({start:void 0,end:void 0}),f=c},17896:(e,t,r)=>{r.d(t,{E:()=>p,a:()=>c,b:()=>l,c:()=>v,d:()=>m,e:()=>b,f:()=>u,g:()=>o,h:()=>y,i:()=>h,k:()=>I,l:()=>s,m:()=>w,n:()=>g,p:()=>f,q:()=>M,r:()=>x,s:()=>a,t:()=>_,u:()=>E,w:()=>T});var i=r(65617),n=r(46851);function s(e){const t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,i){return e[0]=t,e[1]=r,e[2]=i,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function d(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function p(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function c(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function h(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function y(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return r*r+i*i+n*n}function f(e){const t=e[0],r=e[1],i=e[2];return t*t+r*r+i*i}function g(e,t){const r=t[0],i=t[1],n=t[2];let s=r*r+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function m(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function v(e,t,r){const i=t[0],n=t[1],s=t[2],o=r[0],a=r[1],l=r[2];return e[0]=n*l-s*a,e[1]=s*o-i*l,e[2]=i*a-n*o,e}function b(e,t,r,i){const n=t[0],s=t[1],o=t[2];return e[0]=n+i*(r[0]-n),e[1]=s+i*(r[1]-s),e[2]=o+i*(r[2]-o),e}function w(e,t,r){const i=t[0],n=t[1],s=t[2];return e[0]=r[0]*i+r[4]*n+r[8]*s+r[12],e[1]=r[1]*i+r[5]*n+r[9]*s+r[13],e[2]=r[2]*i+r[6]*n+r[10]*s+r[14],e}function _(e,t,r){const i=t[0],n=t[1],s=t[2];return e[0]=i*r[0]+n*r[3]+s*r[6],e[1]=i*r[1]+n*r[4]+s*r[7],e[2]=i*r[2]+n*r[5]+s*r[8],e}function M(e,t,r){const i=r[0],n=r[1],s=r[2],o=r[3],a=t[0],l=t[1],u=t[2];let d=n*u-s*l,p=s*a-i*u,c=i*l-n*a,h=n*c-s*p,y=s*d-i*c,f=i*p-n*d;const g=2*o;return d*=g,p*=g,c*=g,h*=2,y*=2,f*=2,e[0]=a+d+h,e[1]=l+p+y,e[2]=u+c+f,e}const S=(0,i.c)(),C=(0,i.c)();function I(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function x(e,t,r){const i=r[0]-t[0],n=r[1]-t[1],s=r[2]-t[2];let o=i*i+n*n+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=i*o,e[1]=n*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const T=u,F=d,L=p,j=h,O=y,E=s,R=f;Object.freeze({__proto__:null,length:s,copy:o,set:a,add:l,subtract:u,multiply:d,divide:p,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},min:function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e},max:function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:c,scaleAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e},distance:h,squaredDistance:y,squaredLength:f,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},normalize:g,dot:m,cross:v,lerp:b,hermite:function(e,t,r,i,n,s){const o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),d=o*(3-2*s);return e[0]=t[0]*a+r[0]*l+i[0]*u+n[0]*d,e[1]=t[1]*a+r[1]*l+i[1]*u+n[1]*d,e[2]=t[2]*a+r[2]*l+i[2]*u+n[2]*d,e},bezier:function(e,t,r,i,n,s){const o=1-s,a=o*o,l=s*s,u=a*o,d=3*s*a,p=3*l*o,c=l*s;return e[0]=t[0]*u+r[0]*d+i[0]*p+n[0]*c,e[1]=t[1]*u+r[1]*d+i[1]*p+n[1]*c,e[2]=t[2]*u+r[2]*d+i[2]*p+n[2]*c,e},random:function(e,t){t=t||1;const r=2*(0,n.R)()*Math.PI,i=2*(0,n.R)()-1,s=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=i*t,e},transformMat4:w,transformMat3:_,transformQuat:M,rotateX:function(e,t,r,i){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0],s[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),s[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,i){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),s[1]=n[1],s[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,i){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),s[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),s[2]=n[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},angle:function(e,t){o(S,e),o(C,t),g(S,S),g(C,C);const r=m(S,C);return r>1?0:r<-1?Math.PI:Math.acos(r)},str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},exactEquals:I,equals:function(e,t){if(e===t)return!0;const r=e[0],i=e[1],s=e[2],o=t[0],a=t[1],l=t[2];return Math.abs(r-o)<=n.E*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-a)<=n.E*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(s-l)<=n.E*Math.max(1,Math.abs(s),Math.abs(l))},direction:x,sub:T,mul:F,div:L,dist:j,sqrDist:O,len:E,sqrLen:R})},98766:(e,t,r)=>{r.d(t,{a:()=>o,b:()=>d,c:()=>n,d:()=>g,e:()=>h,f:()=>y,g:()=>b,h:()=>w,l:()=>m,n:()=>f,s:()=>s,t:()=>v});var i=r(46851);function n(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function s(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function o(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function l(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function d(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function p(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],s=t[3]-e[3];return Math.sqrt(r*r+i*i+n*n+s*s)}function c(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],s=t[3]-e[3];return r*r+i*i+n*n+s*s}function h(e){const t=e[0],r=e[1],i=e[2],n=e[3];return Math.sqrt(t*t+r*r+i*i+n*n)}function y(e){const t=e[0],r=e[1],i=e[2],n=e[3];return t*t+r*r+i*i+n*n}function f(e,t){const r=t[0],i=t[1],n=t[2],s=t[3];let o=r*r+i*i+n*n+s*s;return o>0&&(o=1/Math.sqrt(o),e[0]=r*o,e[1]=i*o,e[2]=n*o,e[3]=s*o),e}function g(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function m(e,t,r,i){const n=t[0],s=t[1],o=t[2],a=t[3];return e[0]=n+i*(r[0]-n),e[1]=s+i*(r[1]-s),e[2]=o+i*(r[2]-o),e[3]=a+i*(r[3]-a),e}function v(e,t,r){const i=t[0],n=t[1],s=t[2],o=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*s+r[12]*o,e[1]=r[1]*i+r[5]*n+r[9]*s+r[13]*o,e[2]=r[2]*i+r[6]*n+r[10]*s+r[14]*o,e[3]=r[3]*i+r[7]*n+r[11]*s+r[15]*o,e}function b(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function w(e,t){const r=e[0],n=e[1],s=e[2],o=e[3],a=t[0],l=t[1],u=t[2],d=t[3];return Math.abs(r-a)<=i.E*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-l)<=i.E*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(s-u)<=i.E*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(o-d)<=i.E*Math.max(1,Math.abs(o),Math.abs(d))}const _=a,M=l,S=u,C=p,I=c,x=h,T=y;Object.freeze({__proto__:null,copy:n,set:s,add:o,subtract:a,multiply:l,divide:u,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},min:function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e},max:function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e},scale:d,scaleAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e},distance:p,squaredDistance:c,length:h,squaredLength:y,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},normalize:f,dot:g,lerp:m,random:function(e,t){let r,n,s,o,a,l;t=t||1;do{r=2*(0,i.R)()-1,n=2*(0,i.R)()-1,a=r*r+n*n}while(a>=1);do{s=2*(0,i.R)()-1,o=2*(0,i.R)()-1,l=s*s+o*o}while(l>=1);const u=Math.sqrt((1-a)/l);return e[0]=t*r,e[1]=t*n,e[2]=t*s*u,e[3]=t*o*u,e},transformMat4:v,transformQuat:function(e,t,r){const i=t[0],n=t[1],s=t[2],o=r[0],a=r[1],l=r[2],u=r[3],d=u*i+a*s-l*n,p=u*n+l*i-o*s,c=u*s+o*n-a*i,h=-o*i-a*n-l*s;return e[0]=d*u+h*-o+p*-l-c*-a,e[1]=p*u+h*-a+c*-o-d*-l,e[2]=c*u+h*-l+d*-a-p*-o,e[3]=t[3],e},str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},exactEquals:b,equals:w,sub:_,mul:M,div:S,dist:C,sqrDist:I,len:x,sqrLen:T})},32448:(e,t,r)=>{r.d(t,{Z:()=>l});var i=r(43697),n=r(15923),s=r(50758),o=r(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this.target=e,this._listenersMap=null}clear(){this._listenersMap&&this._listenersMap.clear(),this._listenersMap=null}emit(e,t){const r=this._listenersMap&&this._listenersMap.get(e);if(!r)return!1;const i=this.target||this;return[...r].forEach((e=>{e.call(i,t)})),r.length>0}on(e,t){if(Array.isArray(e)){const r=e.map((e=>this.on(e,t)));return(0,s.AL)(r)}if(e.indexOf(",")>-1)throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),{remove:()=>{const r=this._listenersMap&&this._listenersMap.get(e)||[],i=r.indexOf(t);i>=0&&r.splice(i,1)}}}once(e,t){const r=this.on(e,(e=>{r.remove(),t.call(null,e)}));return r}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let r=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=(0,i._)([(0,o.j)("esri.core.Evented")],r),r};let r=class extends n.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};r=(0,i._)([(0,o.j)("esri.core.Evented")],r),e.EventedAccessor=r}(a||(a={}));const l=a},16453:(e,t,r)=>{r.d(t,{R:()=>v,w:()=>b});var i=r(43697),n=r(15923),s=r(70586),o=r(22974),a=r(31263);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map}clone(e){const t=new l,r=this._originStores[0];r&&r.forEach(((e,r)=>{t.set(r,(0,o.d9)(e),0)}));for(let r=2;r<a.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,n)=>{e&&e.has(n)||t.set(n,(0,o.d9)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=6){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||(0,s.j0)(this._propertyOriginMap.get(e))<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=6){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r&&r.get(e),n=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),n!==i}originOf(e){return this._propertyOriginMap.get(e)||0}forEach(e){this._values.forEach(e)}}var u=r(50549),d=r(1153),p=r(52011);const c=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,s.j0)((0,d.vw)(this)),r=t.metadatas,i=t.store,n=new l;t.store=n,i.keys().forEach((e=>{n.set(e,i.get(e),0)})),Object.keys(r).forEach((e=>{t.internalGet(e)&&n.set(e,t.internalGet(e),0)}))}read(e,t){(0,u.ij)(this,e,t)}getAtOrigin(e,t){const r=h(this),i=(0,a.M9)(t);if("string"==typeof e)return r.get(e,i);const n={};return e.forEach((e=>{n[e]=r.get(e,i)})),n}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const r=h(this),i=(0,a.M9)(t),n=(0,d.vw)(this);let s;s="string"==typeof e?"*"===e?r.keys(i):[e]:e,s.forEach((e=>{n.invalidate(e),r.revert(e,i),n.commit(e)}))}};return t=(0,i._)([(0,p.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,d.vw)(e).store}let y=class extends(c(n.Z)){};y=(0,i._)([(0,p.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var f=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return m(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,f.cW)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,d.vw)(this).setAtOrigin(e,t,(0,a.M9)(r))}removeOrigin(e){const t=m(this),r=(0,a.M9)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),6)}updateOrigin(e,t){const r=m(this),i=(0,a.M9)(t),n=this.get(e);for(let t=i+1;t<a.kk;++t)r.delete(e,t);r.set(e,n,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,p.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function m(e){return(0,d.vw)(e).store}const v=e=>{let t=class extends(g(c(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,p.j)("esri.core.MultiOriginJSONSupport")],t),t};let b=class extends(v(n.Z)){};b=(0,i._)([(0,p.j)("esri.core.MultiOriginJSONSupport")],b)},22021:(e,t,r)=>{r.d(t,{ZF:()=>p,Kt:()=>c,jE:()=>f,uZ:()=>o,oK:()=>h,Vl:()=>u,wt:()=>a,t7:()=>l,Sf:()=>s,BV:()=>d});var i=r(17896);r(98766);const n=new Float32Array(1);function s(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function o(e,t,r){return Math.min(Math.max(e,t),r)}function a(e){return 0==(e&e-1)}function l(e,t,r){return e+(t-e)*r}function u(e){return e*Math.PI/180}function d(e){return 180*e/Math.PI}function p(e){return Math.acos(o(e,-1,1))}function c(e){return Math.asin(o(e,-1,1))}function h(e){return y(Math.max(-g,Math.min(e,g)))}function y(e){return n[0]=e,n[0]}function f(e,t){const r=(0,i.l)(e),n=c(e[2]/r),s=Math.atan2(e[1]/r,e[0]/r);return(0,i.s)(t,r,n,s),t}const g=y(34028234663852886e22)},35463:(e,t,r)=>{r.d(t,{rJ:()=>a,Nm:()=>s,JE:()=>o}),r(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 s(e,t,r){const i=new Date(e.getTime());if(t&&r){const e=n[r],{getter:s,setter:o,multiplier:a}=e;i[o](i[s]()+t*a)}return i}function o(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function a(e,t,r){return 0===e?0:e*i[t]/i[r]}},79235:(e,t,r)=>{r.d(t,{Z:()=>b});var i,n=r(43697),s=r(67676),o=r(35454),a=r(10736),l=r(67900),u=r(20941),d=r(5600),p=(r(80442),r(75215),r(71715)),c=r(52011),h=r(30556);const y=(0,o.wY)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=y.jsonValues.slice();(0,s.e$)(f,"orthometric");const g=(0,o.wY)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=i=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new u.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r&&r.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||g.read(e)||(r&&r.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new i({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,d.Cb)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal"}}}})],m.prototype,"heightModel",void 0),(0,n._)([(0,h.c)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,n._)([(0,p.r)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,n._)([(0,d.Cb)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:g.write}}}})],m.prototype,"heightUnit",void 0),(0,n._)([(0,p.r)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,n._)([(0,p.r)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,n._)([(0,d.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,n._)([(0,p.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=i=(0,n._)([(0,c.j)("esri.geometry.HeightModelInfo")],m);const b=m},29600:(e,t,r)=>{r.d(t,{Z:()=>w});var i=r(43697),n=r(68773),s=(r(66577),r(3172)),o=r(20102),a=r(32448),l=r(10699),u=r(83379),d=r(92604),p=r(95330),c=r(17452),h=r(5600),y=(r(67676),r(80442),r(75215),r(52011)),f=r(6570),g=r(82971);let m=0;const v=d.Z.getLogger("esri.layers.Layer");let b=class extends(a.Z.EventedMixin((0,l.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,g.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+m++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,i=await r.e(3529).then(r.bind(r,63529));try{return await i.fromUrl(t)}catch(e){throw v.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},i=await r.e(8008).then(r.bind(r,28008));try{return await i.fromItem(t)}catch(e){const r=t&&t.portalItem,i=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||n.Z.portalUrl;throw v.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,p.D_)(e)||d.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,c.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,h.Cb)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i._)([(0,h.Cb)({type:f.Z})],b.prototype,"fullExtent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i._)([(0,h.Cb)({type:String})],b.prototype,"id",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i._)([(0,h.Cb)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i._)([(0,h.Cb)()],b.prototype,"parent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i._)([(0,h.Cb)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i._)([(0,h.Cb)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i._)([(0,h.Cb)({type:g.Z})],b.prototype,"spatialReference",void 0),(0,i._)([(0,h.Cb)({type:String})],b.prototype,"title",void 0),(0,i._)([(0,h.Cb)({type:String,readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i._)([(0,h.Cb)()],b.prototype,"url",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i._)([(0,y.j)("esri.layers.Layer")],b);const w=b},10608:(e,t,r)=>{r.r(t),r.d(t,{default:()=>te});var i=r(43697),n=r(51773),s=r(3172),o=r(20102),a=r(22974),l=r(92604),u=r(70586),d=r(16453),p=r(78286),c=r(95330),h=r(17452),y=r(5600),f=r(75215),g=r(71715),m=r(52011),v=r(30556),b=r(29600),w=r(54295),_=r(17287),M=r(38009),S=r(16859),C=r(72965),I=r(13496),x=r(36030),T=r(10736);r(67676),r(80442);let F=class extends T.wq{constructor(e){super(e),this.field=null,this.type=null}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}};(0,i._)([(0,y.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],F.prototype,"field",void 0),(0,i._)([(0,y.Cb)({readOnly:!0,nonNullable:!0,json:{read:!1}})],F.prototype,"type",void 0),F=(0,i._)([(0,m.j)("esri.layers.pointCloudFilters.PointCloudFilter")],F);const L=F;var j;let O=j=class extends L{constructor(e){super(e),this.requiredClearBits=null,this.requiredSetBits=null,this.type="bitfield"}clone(){return new j({field:this.field,requiredClearBits:(0,a.d9)(this.requiredClearBits),requiredSetBits:(0,a.d9)(this.requiredSetBits)})}};(0,i._)([(0,y.Cb)({type:[f.z8],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredSetBits}}}}})],O.prototype,"requiredClearBits",void 0),(0,i._)([(0,y.Cb)({type:[f.z8],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredClearBits}}}}})],O.prototype,"requiredSetBits",void 0),(0,i._)([(0,x.J)({pointCloudBitfieldFilter:"bitfield"})],O.prototype,"type",void 0),O=j=(0,i._)([(0,m.j)("esri.layers.pointCloudFilters.PointCloudBitfieldFilter")],O);const E=O;var R;let D=R=class extends L{constructor(e){super(e),this.includedReturns=[],this.type="return"}clone(){return new R({field:this.field,includedReturns:(0,a.d9)(this.includedReturns)})}};(0,i._)([(0,y.Cb)({type:[["firstOfMany","last","lastOfMany","single"]],json:{write:{enabled:!0,isRequired:!0}}})],D.prototype,"includedReturns",void 0),(0,i._)([(0,x.J)({pointCloudReturnFilter:"return"})],D.prototype,"type",void 0),D=R=(0,i._)([(0,m.j)("esri.layers.pointCloudFilters.PointCloudReturnFilter")],D);const N=D;var q;let V=q=class extends L{constructor(e){super(e),this.mode="exclude",this.type="value",this.values=[]}clone(){return new q({field:this.field,mode:this.mode,values:(0,a.d9)(this.values)})}};(0,i._)([(0,y.Cb)({type:["exclude","include"],json:{write:{enabled:!0,isRequired:!0}}})],V.prototype,"mode",void 0),(0,i._)([(0,x.J)({pointCloudValueFilter:"value"})],V.prototype,"type",void 0),(0,i._)([(0,y.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],V.prototype,"values",void 0),V=q=(0,i._)([(0,m.j)("esri.layers.pointCloudFilters.PointCloudValueFilter")],V);const Z={key:"type",base:L,typeMap:{value:V,bitfield:E,return:N}};var A,G=r(21506),k=r(1231),P=r(53518),B=r(11223),$=r(23030),J=r(25848);let U=A=class extends J.Z{constructor(e){super(e),this.type="point-cloud-rgb",this.field=null}clone(){return new A({...this.cloneProperties(),field:(0,a.d9)(this.field)})}};(0,i._)([(0,x.J)({pointCloudRGBRenderer:"point-cloud-rgb"})],U.prototype,"type",void 0),(0,i._)([(0,y.Cb)({type:String,json:{write:!0}})],U.prototype,"field",void 0),U=A=(0,i._)([(0,m.j)("esri.renderers.PointCloudRGBRenderer")],U);const Y=U;var H=r(14008),z=r(46329);const W={key:"type",base:J.Z,typeMap:{"point-cloud-class-breaks":$.Z,"point-cloud-rgb":Y,"point-cloud-stretch":H.Z,"point-cloud-unique-value":z.Z},errorContext:"renderer"};var K=r(32163);const X=l.Z.getLogger("esri.layers.PointCloudLayer"),Q=(0,P.v)();let ee=class extends((0,I.V)((0,_.Y)((0,M.q)((0,S.I)((0,C.M)((0,d.R)((0,w.V)(b.Z)))))))){constructor(...e){super(...e),this.operationalLayerType="PointCloudLayer",this.popupEnabled=!0,this.popupTemplate=null,this.opacity=1,this.filters=[],this.fields=null,this.fieldsIndex=null,this.outFields=null,this.path=null,this.legendEnabled=!0,this.renderer=null,this.type="point-cloud"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get defaultPopupTemplate(){return this.attributeStorageInfo?this.createPopupTemplate():null}getFieldDomain(e){const t=this.fieldsIndex.get(e);return t&&t.domain?t.domain:null}readServiceFields(e,t,r){return Array.isArray(e)?e.map((e=>{const t=new k.Z;return"FieldTypeInteger"===e.type&&((e=(0,a.d9)(e)).type="esriFieldTypeInteger"),t.read(e,r),t})):Array.isArray(t.attributeStorageInfo)?t.attributeStorageInfo.map((e=>new k.Z({name:e.name,type:"ELEVATION"===e.name?"double":"integer"}))):null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}writeRenderer(e,t,r,i){(0,p.RB)("layerDefinition.drawingInfo.renderer",e.write({},i),t)}load(e){const t=(0,u.pC)(e)?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(c.r9).then((()=>this._fetchService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){const t=(0,K.eZ)(this,e);return this.formatPopupTemplateReturnsField(t),this.formatPopupTemplateRGBField(t),t}formatPopupTemplateReturnsField(e){const t=this.fieldsIndex.get("RETURNS");if(!t)return;const r=e.fieldInfos.find((e=>e.fieldName===t.name));if(!r)return;const i=new B.Z({name:"pcl-returns-decoded",title:t.alias||t.name,expression:`\n var returnValue = $feature.${t.name};\n return (returnValue % 16) + " / " + Floor(returnValue / 16);\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-returns-decoded"}formatPopupTemplateRGBField(e){const t=this.fieldsIndex.get("RGB");if(!t)return;const r=e.fieldInfos.find((e=>e.fieldName===t.name));if(!r)return;const i=new B.Z({name:"pcl-rgb-decoded",title:t.alias||t.name,expression:`\n var rgb = $feature.${t.name};\n var red = Floor(rgb / 65536, 0);\n var green = Floor((rgb - (red * 65536)) / 256,0);\n var blue = rgb - (red * 65536) - (green * 256);\n\n return "rgb(" + red + "," + green + "," + blue + ")";\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-rgb-decoded"}async queryCachedStatistics(e,t){if(await this.load(t),!this.attributeStorageInfo)throw new o.Z("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new o.Z("pointcloudlayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.attributeStorageInfo)if(e.name===r.name){const r=(0,h.v_)(this.parsedUrl.path,`./statistics/${e.key}`);return(0,s.default)(r,{query:{f:"json",token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new o.Z("pointcloudlayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"PointCloud"!==e.layerType)throw new o.Z("pointcloudlayer:layer-type-not-supported","PointCloudLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"});if(this.version.major>2)throw new o.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"})}hasCachedStatistics(e){return null!=this.attributeStorageInfo&&this.attributeStorageInfo.some((t=>t.name===e))}_getTypeKeywords(){return["PointCloud"]}_validateElevationInfo(){const e=this.elevationInfo;e&&("absolute-height"!==e.mode&&X.warn(".elevationInfo=","Point cloud layers only support absolute-height elevation mode"),e.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression&&X.warn(".elevationInfo=","Point cloud layers do not support featureExpressionInfo"))}};(0,i._)([(0,y.Cb)({type:["PointCloudLayer"]})],ee.prototype,"operationalLayerType",void 0),(0,i._)([(0,y.Cb)(G.C_)],ee.prototype,"popupEnabled",void 0),(0,i._)([(0,y.Cb)({type:n.Z,json:{name:"popupInfo",write:!0}})],ee.prototype,"popupTemplate",void 0),(0,i._)([(0,y.Cb)({readOnly:!0,json:{read:!1}})],ee.prototype,"defaultPopupTemplate",null),(0,i._)([(0,y.Cb)({readOnly:!0,json:{write:!1,read:!1,origins:{"web-document":{write:!1,read:!1}}}})],ee.prototype,"opacity",void 0),(0,i._)([(0,y.Cb)({type:["show","hide"]})],ee.prototype,"listMode",void 0),(0,i._)([(0,y.Cb)({types:[Z],json:{origins:{service:{read:{source:"filters"}}},name:"layerDefinition.filters",write:!0}})],ee.prototype,"filters",void 0),(0,i._)([(0,y.Cb)({type:[k.Z]})],ee.prototype,"fields",void 0),(0,i._)([(0,y.Cb)(Q.fieldsIndex)],ee.prototype,"fieldsIndex",void 0),(0,i._)([(0,g.r)("service","fields",["fields","attributeStorageInfo"])],ee.prototype,"readServiceFields",null),(0,i._)([(0,y.Cb)(Q.outFields)],ee.prototype,"outFields",void 0),(0,i._)([(0,y.Cb)({readOnly:!0})],ee.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,y.Cb)(G.PV)],ee.prototype,"elevationInfo",null),(0,i._)([(0,y.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],ee.prototype,"path",void 0),(0,i._)([(0,y.Cb)(G.rn)],ee.prototype,"legendEnabled",void 0),(0,i._)([(0,y.Cb)({types:W,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:{target:{"layerDefinition.drawingInfo.renderer":{types:W},"layerDefinition.drawingInfo.transparency":{type:Number}}}}})],ee.prototype,"renderer",void 0),(0,i._)([(0,v.c)("renderer")],ee.prototype,"writeRenderer",null),(0,i._)([(0,y.Cb)({json:{read:!1},readOnly:!0})],ee.prototype,"type",void 0),ee=(0,i._)([(0,m.j)("esri.layers.PointCloudLayer")],ee);const te=ee},38009:(e,t,r)=>{r.d(t,{q:()=>h});var i=r(43697),n=r(20102),s=r(17452),o=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(30556),u=r(50549),d=r(76169);const p={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};var c=r(21506);const h=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,d.df)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r,i){!e||i&&"tables"===i.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e||"Layer"}read(e,t){t&&(t.layer=this),(0,u.$Z)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(null!=t&&t.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,i=p[e];let s=i&&i[this.operationalLayerType];var r;if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(s=!1),!s)return null==(r=t.messages)||r.push(new n.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const i=super.write(e,{...t,layer:this}),o=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof n.Z&&"web-document-write:property-required"===e.name)).length;var a;return(0,s.jc)(null==i?void 0:i.url)?(null==t||null==(a=t.messages)||a.push(new n.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&o?null:i}beforeSave(){}};return(0,i._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,i._)([(0,o.Cb)({json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}})],t.prototype,"listMode",void 0),(0,i._)([(0,l.c)("listMode")],t.prototype,"writeListMode",null),(0,i._)([(0,o.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,i._)([(0,l.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i._)([(0,o.Cb)(c.Oh)],t.prototype,"opacity",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,i._)([(0,l.c)("title")],t.prototype,"writeTitle",null),(0,i._)([(0,o.Cb)({type:Boolean,json:{name:"visibility",origins:{"web-document":{name:"visibility",default:!0},"portal-item":{name:"visibility",read:{source:["visible","visibility"]}}}}})],t.prototype,"visible",void 0),t=(0,i._)([(0,a.j)("esri.layers.mixins.OperationalLayer")],t),t}},72965:(e,t,r)=>{r.d(t,{M:()=>o});var i=r(43697),n=r(5600),s=(r(67676),r(80442),r(75215),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get scaleRangeId(){return`${this.minScale},${this.maxScale}`}};return(0,i._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"scaleRangeId",null),t=(0,i._)([(0,s.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},1231:(e,t,r)=>{r.d(t,{Z:()=>g});var i,n=r(43697),s=r(35454),o=r(10736),a=r(5600),l=(r(67676),r(80442),r(75215)),u=r(36030),d=r(71715),p=r(52011),c=r(72729),h=r(86719);const y=new s.Xn({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=i=class extends o.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let r;try{r=JSON.parse(t)}catch(e){}return r?r.value:null}readValueType(e,{description:t}){let r;try{r=JSON.parse(t)}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,n._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,n._)([(0,a.Cb)()],f.prototype,"description",void 0),(0,n._)([(0,d.r)("description")],f.prototype,"readDescription",null),(0,n._)([(0,a.Cb)({types:c.V5,json:{read:{reader:c.im},write:!0}})],f.prototype,"domain",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,n._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],f.prototype,"length",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,n._)([(0,u.J)(h.v)],f.prototype,"type",void 0),(0,n._)([(0,a.Cb)()],f.prototype,"valueType",void 0),(0,n._)([(0,d.r)("valueType",["description"])],f.prototype,"readValueType",null),f=i=(0,n._)([(0,p.j)("esri.layers.support.Field")],f);const g=f},99514:(e,t,r)=>{r.d(t,{Z:()=>o});var i=r(35671);function n(e){return"oid"===e.type||"esriFieldTypeOID"===e.type}function s(e){return"global-id"===e.type||"esriFieldTypeGlobalID"===e.type}class o{constructor(e){if(this.fields=e,this._fieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this.dateFields=[],this.numericFields=[],this._requiredFields=null,!e)return;const t=[];for(const o of e){const e=o&&o.name;if(e){const l=a(e);this._fieldsMap.set(e,o),this._fieldsMap.set(l,o),t.push(l),"date"===(r=o).type||"esriFieldTypeDate"===r.type?(this.dateFields.push(o),this._dateFieldsSet.add(o)):(0,i.H7)(o)&&(this._numericFieldsSet.add(o),this.numericFields.push(o)),n(o)||s(o)||(o.editable=null==o.editable||!!o.editable,o.nullable=null==o.nullable||!!o.nullable)}}var r;t.sort(),this.uid=t.join(",")}destroy(){this._fieldsMap.clear()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)n(e)||s(e)||e.nullable||void 0!==(0,i.os)(e)||this._requiredFields.push(e)}return this._requiredFields}has(e){return null!=this.get(e)}get(e){return null!=e?this._fieldsMap.get(e)||this._fieldsMap.get(a(e)):void 0}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){const t=this.get(e);if(t)return t.name}}function a(e){return e.toLowerCase().trim()}},21506:(e,t,r)=>{r.d(t,{qG:()=>w,PV:()=>g,id:()=>M,iR:()=>h,rn:()=>f,u1:()=>C,rO:()=>S,Oh:()=>v,bT:()=>b,C_:()=>c,Lx:()=>m,vg:()=>_,YI:()=>p,HQ:()=>y});var i=r(92835),n=r(6570),s=r(82971),o=r(25929),a=r(70586),l=(r(95330),r(35463)),u=r(20682),d=r(65242);const p={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},c={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},h={type:Boolean,value:!0,json:{name:"showLabels",write:!0}},y={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:o.w}}},f={type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},g={value:null,type:u.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function m(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const v={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},b={...v,json:{...v.json,origins:{"web-document":{...v.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition&&t.layerDefinition.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,d.b)(t.layerDefinition.drawingInfo.transparency):void 0:(0,d.b)(t.drawingInfo.transparency)}}},w={type:i.Z,readOnly:!0,get(){var e,t;if(null==(e=this.layer)||!e.timeInfo)return null;const{datesInUnknownTimezone:r,timeOffset:n,useViewTime:s}=this.layer,o=null==(t=this.view)?void 0:t.timeExtent;let u=this.layer.timeExtent;r&&(u=function(e){if(!e)return e;const{start:t,end:r}=e;return new i.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,r.getTimezoneOffset(),"minutes"):r})}(u));let d=s?o&&u?o.intersection(u):o||u:u;if(!d||d.isEmpty||d.isAllTime)return d;n&&(d=d.offset(-n.value,n.unit)),r&&(d=function(e){if(!e)return e;const{start:t,end:r}=e;return new i.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,-t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,-r.getTimezoneOffset(),"minutes"):r})}(d));const p=this._get("timeExtent");return d.equals(p)?p:d}},_={type:n.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=n.Z.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=s.Z.fromJSON(t.spatialReference)),r}}}},read:!1}},M={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},S={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},C={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}}},72729:(e,t,r)=>{r.d(t,{im:()=>I,V5:()=>C}),r(80442);var i,n=r(43697),s=r(22974),o=r(5600),a=(r(75215),r(36030)),l=r(52011),u=r(10736);r(67676);let d=i=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,o.Cb)({type:[String,Number],json:{write:!0}})],d.prototype,"code",void 0),d=i=(0,n._)([(0,l.j)("esri.layers.support.CodedValue")],d);const p=d,c=new(r(35454).Xn)({inherited:"inherited",codedValue:"coded-value",range:"range"});let h=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,n._)([(0,a.J)(c)],h.prototype,"type",void 0),h=(0,n._)([(0,l.j)("esri.layers.support.Domain")],h);const y=h;var f;let g=f=class extends y{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new f({codedValues:(0,s.d9)(this.codedValues),name:this.name})}};(0,n._)([(0,o.Cb)({type:[p],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,n._)([(0,a.J)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=f=(0,n._)([(0,l.j)("esri.layers.support.CodedValueDomain")],g);const m=g;var v;r(92604),r(37697);let b=v=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new v}};(0,n._)([(0,a.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=v=(0,n._)([(0,l.j)("esri.layers.support.InheritedDomain")],b);const w=b;var _;let M=_=class extends y{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new _({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],M.prototype,"maxValue",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],M.prototype,"minValue",void 0),(0,n._)([(0,a.J)({range:"range"})],M.prototype,"type",void 0),M=_=(0,n._)([(0,l.j)("esri.layers.support.RangeDomain")],M);const S=M,C={key:"type",base:y,typeMap:{range:M,"coded-value":m,inherited:w}};function I(e){if(!e||!e.type)return null;switch(e.type){case"range":return S.fromJSON(e);case"codedValue":return m.fromJSON(e);case"inherited":return w.fromJSON(e)}return null}},53518:(e,t,r)=>{r.d(t,{v:()=>l});var i=r(92604),n=r(1231),s=r(99514),o=r(35671);const a=i.Z.getLogger("esri.layers.support.fieldProperties");function l(){return{fields:{type:[n.Z],value:null},fieldsIndex:{readOnly:!0,get(){return new s.Z(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e||!e.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e)this.fieldsIndex.has(t)||a.error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,o.Q0)(this.fieldsIndex,e)}}}}},86719:(e,t,r)=>{r.d(t,{v:()=>i});const i=new(r(35454).Xn)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},32163:(e,t,r)=>{r.d(t,{eZ:()=>p});var i=r(51773),n=r(35671),s=r(84649),o=(r(63801),r(48074),r(9190)),a=(r(10214),r(44951),r(422)),l=r(63061);const u=["oid","global-id"],d=["oid","global-id","guid"];function p({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},d){if(!r)return null;const p=function({editFieldsInfo:e,fields:t,objectIdField:r},i){return function(e,t){const r=e;return t&&(e=e.filter((e=>-1===t.indexOf(e.type)))),e===r&&(e=e.slice()),e.sort(y),e}(t,(null==i?void 0:i.ignoreFieldTypes)||b).map((t=>new a.Z({fieldName:t.name,isEditable:g(t,e),label:t.alias,format:m(t),visible:h(t,{editFieldsInfo:e,objectIdField:r,visibleFieldNames:null==i?void 0:i.visibleFieldNames})})))}({editFieldsInfo:t,fields:r,objectIdField:l},d);if(!p.length)return null;const c=function(e){const t=(0,n.O5)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r}({titleBase:u,fields:r,displayField:e}),f=[new o.Z,new s.Z];return new i.Z({title:c,content:f,fieldInfos:p})}const c=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/shape/i,/perimeter/i,/objectid/i,/_i$/i],h=(e,{editFieldsInfo:t,objectIdField:r,visibleFieldNames:i})=>i?i.has(e.name):!(f(e.name,t)||r&&e.name===r||u.indexOf(e.type)>-1||c.some((t=>t.test(e.name))));function y(e,t){return"oid"===e.type?-1:"oid"===t.type?1:v(e)?-1:v(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function f(e,t){if(!e||!t)return!1;const{creationDateField:r,creatorField:i,editDateField:n,editorField:s}=t;return-1!==[r&&r.toLowerCase(),i&&i.toLowerCase(),n&&n.toLowerCase(),s&&s.toLowerCase()].indexOf(e.toLowerCase())}function g(e,t){return e.editable&&-1===d.indexOf(e.type)&&!f(e.name,t)}function m(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.Z({digitSeparator:!0,places:0});case"double":return new l.Z({digitSeparator:!0,places:2});case"date":return new l.Z({dateFormat:"long-month-day-year"});default:return null}}function v(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())||void 0}const b=["geometry","blob","raster","guid","xml"]},20682:(e,t,r)=>{r.d(t,{Z:()=>_});var i,n=r(43697),s=r(35454),o=r(10736),a=r(70586),l=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),d=r(52011),p=r(30556),c=r(35671);let h=i=class extends o.wq{async collectRequiredFields(e,t){return(0,c.io)(e,t,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}};(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],h.prototype,"expression",void 0),(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],h.prototype,"title",void 0),h=i=(0,n._)([(0,d.j)("esri.layers.support.FeatureExpressionInfo")],h);const y=h;var f=r(99282);const g=function(){const e=Object.keys(f.a);return e.sort(),e}();var m;const v=(0,s.wY)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),b=new s.Xn({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let w=m=class extends o.wq{constructor(){super(...arguments),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,i){t[r]=e.write({},i),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):(0,a.pC)(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new m({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}};(0,n._)([(0,l.Cb)({type:y,json:{write:!0}})],w.prototype,"featureExpressionInfo",void 0),(0,n._)([(0,u.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],w.prototype,"readFeatureExpressionInfo",null),(0,n._)([(0,p.c)("featureExpressionInfo",{featureExpressionInfo:{type:y},"featureExpression.value":{type:[0]}})],w.prototype,"writeFeatureExpressionInfo",null),(0,n._)([(0,l.Cb)({type:v.apiValues,nonNullable:!0,json:{type:v.jsonValues,read:v.read,write:{writer:v.write,isRequired:!0}}})],w.prototype,"mode",null),(0,n._)([(0,l.Cb)({type:Number,json:{write:!0}})],w.prototype,"offset",void 0),(0,n._)([(0,l.Cb)({type:g,json:{type:String,read:b.read,write:b.write}})],w.prototype,"unit",null),w=m=(0,n._)([(0,d.j)("esri.layers.support.ElevationInfo")],w);const _=w}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8062],{87344:(e,a,t)=>{t.d(a,{T:()=>n});const n={BingMapsLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(3485),t.e(6458)]).then(t.bind(t,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(3596),t.e(7284),t.e(1812),t.e(3353),t.e(223)]).then(t.bind(t,30223))).default,CSVLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(3596),t.e(7284),t.e(5775)]).then(t.bind(t,45425))).default,ElevationLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(3485),t.e(1938),t.e(9932),t.e(3394)]).then(t.bind(t,49932))).default,FeatureLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(3596),t.e(7284),t.e(4868)]).then(t.bind(t,67284))).default,GroupLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(1755),t.e(7049)]).then(t.bind(t,63144))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(2012)]).then(t.bind(t,3723))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(9196)]).then(t.bind(t,23477))).default,ImageryLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(3596),t.e(3782),t.e(3942),t.e(7303),t.e(9875),t.e(8658)]).then(t.bind(t,23232))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(2894),t.e(3485),t.e(3782),t.e(1938),t.e(7303),t.e(9875),t.e(8614)]).then(t.bind(t,91384))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(2894),t.e(1812),t.e(9930)]).then(t.bind(t,4717))).default,KMLLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(3118)]).then(t.bind(t,42756))).default,MapImageLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(4369),t.e(1368),t.e(8256)]).then(t.bind(t,75823))).default,MapNotesLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(2894),t.e(7900),t.e(3596),t.e(7284),t.e(837)]).then(t.bind(t,62128))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(6312),t.e(8876)]).then(t.bind(t,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(3485),t.e(1661),t.e(6237)]).then(t.bind(t,66237))).default,PointCloudLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(1812),t.e(4823),t.e(7323)]).then(t.bind(t,10608))).default,RouteLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(3596),t.e(7284),t.e(9407)]).then(t.bind(t,28240))).default,SceneLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(3596),t.e(7284),t.e(1812),t.e(3353),t.e(9254)]).then(t.bind(t,49254))).default,StreamLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(8387)]).then(t.bind(t,88387))).default,TileLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(3485),t.e(1938),t.e(4369),t.e(5001)]).then(t.bind(t,98636))).default,UnknownLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(4166)]).then(t.bind(t,44166))).default,UnsupportedLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(9296)]).then(t.bind(t,39296))).default,VectorTileLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(3485),t.e(1938),t.e(2508),t.e(8634)]).then(t.bind(t,23357))).default,VoxelLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(1812),t.e(2921)]).then(t.bind(t,53489))).default,WebTileLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(3485),t.e(1661)]).then(t.bind(t,16199))).default,WFSLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(2894),t.e(7900),t.e(6919),t.e(5627)]).then(t.bind(t,12653))).default,WMSLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(1368),t.e(2415)]).then(t.bind(t,25906))).default,WMTSLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(3485),t.e(1661),t.e(2594)]).then(t.bind(t,72594))).default}},33516:(e,a,t)=>{t.d(a,{m:()=>l});var n=t(17452),r=t(65587);function l(e){return{origin:"portal-item",url:(0,n.mN)(e.itemUrl),portal:e.portal||r.Z.getDefault(),portalItem:e,readResourcePaths:[]}}},18062:(e,a,t)=>{t.r(a),t.d(a,{getFirstLayerOrTableId:()=>p,getNumLayersAndTables:()=>f,load:()=>u,preprocessFSItemData:()=>m});var n=t(20102),r=t(87344),l=t(65587),i=t(33516),s=t(40555),o=t(96187);async function u(e,a){const t=e.instance.portalItem;return t&&t.id?(await t.load(a),function(e){const a=e.instance.portalItem;if(-1===e.supportedTypes.indexOf(a.type))throw new n.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const t=e.instance,l=t.portalItem,{url:u,title:y}=l,p=(0,i.m)(l);if("group"===t.type)return t.read({title:y},p),function(e,a){let t;const l=e.portalItem.type;switch(l){case"Feature Service":case"Feature Collection":t=r.T.FeatureLayer;break;case"Stream Service":t=r.T.StreamLayer;break;case"Scene Service":t=r.T.SceneLayer;break;default:throw new n.Z("portal:unsupported-item-type-as-group",`The item type '${l}' is not supported as a 'IGroupLayer'`)}let i;return t().then((e=>(i=e,c(a)))).then((async a=>"Feature Service"===l?(a=await m(a,e.portalItem.url),d(e,i,a)):f(a)>0?d(e,i,a):function(e,a){return e.portalItem.url?(0,o.b)(e.portalItem.url).then((t=>{var n,r;function l(e){return{id:e.id,name:e.name}}t&&d(e,a,{layers:null==(n=t.layers)?void 0:n.map(l),tables:null==(r=t.tables)?void 0:r.map(l)})})):Promise.resolve()}(e,i)))}(t,e);u&&t.read({url:u},p);const h=await c(e,a);return h&&t.read(h,p),t.resourceReferences={portalItem:l,paths:p.readResourcePaths},t.read({title:y},p),(0,s.y)(t,p)}(e,a)):Promise.resolve()}function d(e,a,t){let n=t.layers||[];const r=t.tables||[];"Feature Collection"===e.portalItem.type&&(n.forEach((e=>{var a;"Table"===(null==e||null==(a=e.layerDefinition)?void 0:a.type)&&r.push(e)})),n=n.filter((e=>{var a;return"Table"!==(null==e||null==(a=e.layerDefinition)?void 0:a.type)}))),n.reverse().forEach((n=>{const r=y(e,a,t,n);e.add(r)})),r.reverse().forEach((n=>{const r=y(e,a,t,n);e.tables.add(r)}))}function y(e,a,t,n){const r=new a({portalItem:e.portalItem.clone(),layerId:n.id,sublayerTitleMode:"service-name"});if("Feature Collection"===e.portalItem.type){const a={origin:"portal-item",portal:e.portalItem.portal||l.Z.getDefault()};r.read(n,a);const i=t.showLegend;null!=i&&r.read({showLegend:i},a)}return r}function c(e,a){if(!1===e.supportsData)return Promise.resolve(void 0);const t=e.instance;return t.portalItem.fetchData("json",a).catch((()=>null)).then((async e=>{if(function(e){return"stream"!==e.type&&"layerId"in e}(t)){let a,n=!0;return e&&f(e)>0&&(null==t.layerId&&(t.layerId=p(e)),a=function(e,a){const t=e.layers;if(t)for(let e=0;e<t.length;e++)if(t[e].id===a)return t[e];const n=e.tables;if(n)for(let e=0;e<n.length;e++)if(n[e].id===a)return n[e];return null}(e,t.layerId),a&&(1===f(e)&&(n=!1),null!=e.showLegend&&(a.showLegend=e.showLegend))),n&&"service-name"!==t.sublayerTitleMode&&(t.sublayerTitleMode="item-title-and-service-name"),a}return e}))}async function m(e,a){var t,n;if(null==(null==(t=e)?void 0:t.layers)||null==(null==(n=e)?void 0:n.tables)){const t=await(0,o.b)(a);(e=e||{}).layers=e.layers||(null==t?void 0:t.layers),e.tables=e.tables||(null==t?void 0:t.tables)}return e}function p(e){const a=e.layers;if(a&&a.length)return a[0].id;const t=e.tables;return t&&t.length?t[0].id:null}function f(e){var a,t,n,r;return(null!=(a=null==e||null==(t=e.layers)?void 0:t.length)?a:0)+(null!=(n=null==e||null==(r=e.tables)?void 0:r.length)?n:0)}},40555:(e,a,t)=>{t.d(a,{y:()=>i});var n=t(66643),r=t(95330),l=t(20941);async function i(e,a,t){const i=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(i&&"unique-value"===i.type&&i.styleOrigin){const s=await(0,n.q6)(i.populateFromStyle());if((0,r.k_)(t),!1===s.ok){const t=s.error;a&&a.messages&&a.messages.push(new l.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${t.message}`,{error:t,context:a})),e.clear("renderer",a.origin)}}}},96187:(e,a,t)=>{t.d(a,{b:()=>r});var n=t(3172);async function r(e){const{data:a}=await(0,n.default)(e,{responseType:"json",query:{f:"json"}});return a}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7049,3172],{25929:(e,t,r)=>{r.d(t,{f:()=>s,i:()=>h,p:()=>f,r:()=>a,t:()=>i,w:()=>l});var n=r(70586),o=r(17452);function s(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,o.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,o.PF)(e,t.portalItem.itemUrl);c.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return p(e,t&&t.portal)}function i(e,t,r=0){if(!e)return e;!(0,o.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=(0,o.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const s=p(r,t.portal);n=(0,o.PF)(p(n,t.portal),s,s),n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=function(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,o.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}(n,t&&t.portal),(0,o.YP)(n)&&(n=(0,o.Fv)(n)),null!=t&&t.resources&&null!=t&&t.portalItem&&!(0,o.YP)(n)&&!(0,o.HK)(n)&&0===r&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n)}),n}function a(e,t,r){return s(e,r)}function l(e,t,r,n){const o=i(e,n);void 0!==o&&(t[r]=o)}const u=/\/items\/([^\/]+)\/resources\//,c=/^\.\/resources\//;function h(e){const t=(0,n.pC)(e)?e.match(u):null;return(0,n.pC)(t)?t[1]:null}function p(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`;return(0,o.D6)(o.Gd,`${o.Gd.scheme}://${r}`)?(0,o.Ie)(e,t.portalHostname,r):(0,o.Ie)(e,r,t.portalHostname)}const f=Object.freeze({__proto__:null,fromJSON:s,toJSON:i,read:a,write:l,itemIdFromResourceUrl:h})},32448:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(43697),o=r(15923),s=r(50758),i=r(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this.target=e,this._listenersMap=null}clear(){this._listenersMap&&this._listenersMap.clear(),this._listenersMap=null}emit(e,t){const r=this._listenersMap&&this._listenersMap.get(e);if(!r)return!1;const n=this.target||this;return[...r].forEach((e=>{e.call(n,t)})),r.length>0}on(e,t){if(Array.isArray(e)){const r=e.map((e=>this.on(e,t)));return(0,s.AL)(r)}if(e.indexOf(",")>-1)throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),{remove:()=>{const r=this._listenersMap&&this._listenersMap.get(e)||[],n=r.indexOf(t);n>=0&&r.splice(n,1)}}}once(e,t){const r=this.on(e,(e=>{r.remove(),t.call(null,e)}));return r}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let r=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=(0,n._)([(0,i.j)("esri.core.Evented")],r),r};let r=class extends o.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};r=(0,n._)([(0,i.j)("esri.core.Evented")],r),e.EventedAccessor=r}(a||(a={}));const l=a},16453:(e,t,r)=>{r.d(t,{R:()=>v,w:()=>w});var n=r(43697),o=r(15923),s=r(70586),i=r(22974),a=r(31263);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map}clone(e){const t=new l,r=this._originStores[0];r&&r.forEach(((e,r)=>{t.set(r,(0,i.d9)(e),0)}));for(let r=2;r<a.kk;r++){const n=this._originStores[r];n&&n.forEach(((n,o)=>{e&&e.has(o)||t.set(o,(0,i.d9)(n),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=6){let n=this._originStores[r];if(n||(n=new Map,this._originStores[r]=n),n.set(e,t),!this._values.has(e)||(0,s.j0)(this._propertyOriginMap.get(e))<=r){const n=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),n!==t}return!1}delete(e,t=6){const r=this._originStores[t];if(!r)return;const n=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return n}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],n=r&&r.get(e),o=this._values.get(e);return this._values.set(e,n),this._propertyOriginMap.set(e,t),o!==n}originOf(e){return this._propertyOriginMap.get(e)||0}forEach(e){this._values.forEach(e)}}var u=r(50549),c=r(1153),h=r(52011);const p=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,s.j0)((0,c.vw)(this)),r=t.metadatas,n=t.store,o=new l;t.store=o,n.keys().forEach((e=>{o.set(e,n.get(e),0)})),Object.keys(r).forEach((e=>{t.internalGet(e)&&o.set(e,t.internalGet(e),0)}))}read(e,t){(0,u.ij)(this,e,t)}getAtOrigin(e,t){const r=f(this),n=(0,a.M9)(t);if("string"==typeof e)return r.get(e,n);const o={};return e.forEach((e=>{o[e]=r.get(e,n)})),o}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return f(this).originOf(e)}revert(e,t){const r=f(this),n=(0,a.M9)(t),o=(0,c.vw)(this);let s;s="string"==typeof e?"*"===e?r.keys(n):[e]:e,s.forEach((e=>{o.invalidate(e),r.revert(e,n),o.commit(e)}))}};return t=(0,n._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function f(e){return(0,c.vw)(e).store}let d=class extends(p(o.Z)){};d=(0,n._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],d);var m=r(76169);const y=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return g(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,m.cW)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,c.vw)(this).setAtOrigin(e,t,(0,a.M9)(r))}removeOrigin(e){const t=g(this),r=(0,a.M9)(e),n=t.keys(r);for(const e of n)t.originOf(e)===r&&t.set(e,t.get(e,r),6)}updateOrigin(e,t){const r=g(this),n=(0,a.M9)(t),o=this.get(e);for(let t=n+1;t<a.kk;++t)r.delete(e,t);r.set(e,o,n)}toJSON(e){return this.write({},e)}};return t=(0,n._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function g(e){return(0,c.vw)(e).store}const v=e=>{let t=class extends(y(p(e))){constructor(...e){super(...e)}};return t=(0,n._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],t),t};let w=class extends(v(o.Z)){};w=(0,n._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],w)},91460:(e,t,r)=>{function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{vT:()=>n,on:()=>o,IH:()=>s})},95330:(e,t,r)=>{r.d(t,{e4:()=>C,$6:()=>l,Ue:()=>u,zE:()=>c,dD:()=>O,hh:()=>L,vr:()=>T,Ds:()=>$,as:()=>_,WW:()=>x,R8:()=>b,D_:()=>w,Hc:()=>f,tI:()=>P,y8:()=>q,fu:()=>y,$F:()=>g,d1:()=>E,DB:()=>S,r9:()=>d,k_:()=>h,H9:()=>m,gx:()=>k,Hl:()=>v});const n=(o=r(16358).Z,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(70586));function l(e){return Promise.all(e)}function u(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function c(e="Aborted"){return new s.Z("AbortError",e)}function h(e,t="Aborted"){if(f(e))throw c(t)}function p(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function f(e){const t=p(e);return(0,a.pC)(t)&&t.aborted}function d(e){if(w(e))throw e}function m(e){if(!w(e))throw e}function y(e,t){const r=p(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function g(e,t){const r=p(e);if(!(0,a.Wi)(r))return h(r),(0,i.IH)(r,"abort",(()=>t(c())))}function v(e,t){const r=p(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let o=y(t,(()=>n(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function w(e){return e&&"AbortError"===e.name}function b(e){return e.catch((e=>{if(!w(e))throw e}))}function O(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function _(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return _(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return u((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};r.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function x(e){return _(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function E(e){return Promise.reject(e)}function S(e){return Promise.resolve(e)}function C(e,t,r){const n=new AbortController;return y(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);y(n,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function q(e){return e&&"function"==typeof e.then}function k(e){return P(e)?e:Promise.resolve(e)}function P(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function $(e,t=-1){let r,n,o,s,i=null;const l=(...u)=>{if(r){n=u,s&&s.reject(c()),s=O();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||O(),s=null,t>0){const n=new AbortController;r=k(e(...u,n.signal));const o=r;C(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=k(e(...u));const h=()=>{const e=n;n=o=r=i=null,null!=e&&l(...e)},p=r,f=o;return p.then(h,h),p.then(f.resolve,f.reject),(0,a.j0)(f.promise)};return l}function L(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}function T(e){let t=new AbortController;const r=e(t.signal);let n={promise:r,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const o=()=>{n&&(n.finished=!0,n=null),t=null};return r.then(o,o),n}},17452:(e,t,r)=>{r.d(t,{R9:()=>v,qg:()=>q,tD:()=>L,ZN:()=>ue,fl:()=>ce,AX:()=>O,Gd:()=>w,Ie:()=>ie,sJ:()=>z,AH:()=>W,vt:()=>oe,oh:()=>M,P$:()=>F,Ml:()=>he,ed:()=>T,b7:()=>C,D6:()=>j,tm:()=>U,YP:()=>H,jc:()=>J,HK:()=>B,$U:()=>V,oC:()=>X,kl:()=>I,v_:()=>G,hF:()=>A,_l:()=>Y,PF:()=>D,Fv:()=>N,B7:()=>S,u0:()=>x,Yd:()=>ne,Hu:()=>le,Qj:()=>se,hO:()=>ee,mN:()=>_});var n=r(68773),o=r(20102),s=(r(16358),r(92604)),i=r(70586);const a=s.Z.getLogger("esri.core.urlUtils"),l=n.Z.request,u="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,h=/^\s*http:/i,p=/^\s*https:/i,f=/^\s*file:/i,d=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(y));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(g)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const w=new v(n.Z.applicationUrl),b={},O=(()=>{const e=(0,i.j0)(w.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${w.scheme}://${w.host}${null!=w.port?`:${w.port}`:""}${t}`})();function _(e){const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=x(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function x(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function E(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function S(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>E(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):E(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function C(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=V(e);const n=T(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(u),new o.Z("urlutils:proxy-not-set",u);return t&&te()&&(r=ee(r)),_(r)}function q(e){const t=T(e);let r,n;if(t){const e=P(t.proxyUrl);r=e.path,n=e.query?x(e.query):null}if(r){const t=_(e);e=r+"?"+t.path;const o=S({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const k={path:"",query:""};function P(e){const t=e.indexOf("?");return-1!==t?(k.path=e.slice(0,t),k.query=e.slice(t+1)):(k.path=e,k.query=null),k}function $(e){return(e=re(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=P(e).path),!0)).toLowerCase()}function L(e){const t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=l.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function T(e){const t=l.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function U(e,t){return e=Z(e),t=Z(t),re(e)===re(t)}function Z(e){const t=(e=N(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function M(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=l.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function j(e,t,r=!1){const n=ae(e),o=ae(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function I(e){if("string"==typeof e){if(!H(e))return!0;e=ae(e)}if(j(e,w))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const n=R(t[r]);for(let t=0;t<n.length;t++)if(j(e,n[t]))return!0}return!1}function R(e){return b[e]||(Q(e)||X(e)?b[e]=[new v(A(e))]:b[e]=[new v(`http://${e}`),new v(`https://${e}`)]),b[e]}function A(e,t=O,r){return X(e)?r&&r.preserveProtocolRelative?e:"http"===w.scheme&&w.authority===F(e).slice(2)?`http:${e}`:`https:${e}`:Q(e)?e:(0,i.j0)(G("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function D(e,t=O,r){if(!H(e))return e;const n=N(e),o=n.toLowerCase(),s=N(t).toLowerCase().replace(/\/+$/,""),i=r?N(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let l=a(o,"/",o.indexOf("//")+2),u=-1;for(;o.slice(0,l+1)===s.slice(0,l)+"/"&&(u=l+1,l!==o.length);)l=a(o,"/",l+1);if(-1===u)return e;if(i&&u<i.length)return e;e=n.slice(u);const c=s.slice(u-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function N(e){return function(e){const t=l.httpsDomains;if(!function(e){return h.test(e)||"http"===w.scheme&&X(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),d.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===w.scheme&&n===w.authority&&!m.test(e)||(te()&&n===w.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||te()&&!T(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=P(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=A(e=e.trim()))))}function G(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const r=[];if(H(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return f.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function F(e,t=!1){if(J(e)||B(e))return null;let r=e.indexOf("://");if(-1===r&&X(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=re(e,!0)),e}function H(e){return X(e)||Q(e)}function J(e){return null!=e&&"blob:"===e.slice(0,5)}function B(e){return"data:"===e.slice(0,5)}function W(e){const t=z(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const K=/^data:(.*?)(;base64)?,(.*)$/;function z(e){const t=e.match(K);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function Y(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function X(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Q(e){return c.test(e)}function V(e){return p.test(e)||"https"===w.scheme&&X(e)}function ee(e){return X(e)?`https:${e}`:e.replace(h,"https:")}function te(){return"https"===w.scheme}function re(e,t=!1){return X(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ne(e){let t=0;if(H(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function oe(e,t){if(!e)return"";const r=_(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function se(e){return e.replace(/\/+$/,"")}function ie(e,t,r){if(!(t&&r&&e&&H(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function ae(e){return"string"==typeof e?new v(A(e)):(e.scheme||(e.scheme=w.scheme),e)}function le(e,t){const r=_(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ue(e,t,r){const n=_(e),o=n.query||{};return o[t]=String(r),`${n.path}?${S(o)}`}function ce(e,t){const r=_(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=S(n);return o?`${r.path}?${o}`:r.path}function he(e){if((0,i.Wi)(e))return null;const t=e.match(pe);return t?t[1]:null}const pe=/.*?\.([^\/]*)$/},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),o=r(6570),s=r(9361),i=r(65091),a=r(13473),l=r(17332),u=r(58901);r(82971),r(86973),r(33955);const c={base:s.Z,key:"type",typeMap:{extent:o.Z,multipoint:i.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,n.N7)(c)},33955:(e,t,r)=>{r.d(t,{im:()=>m,q9:()=>v,Ji:()=>y,YX:()=>c,aW:()=>h,wp:()=>p,oU:()=>d,l9:()=>f});var n=r(70586),o=r(6570),s=r(9361),i=r(65091),a=r(13473),l=r(17332),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function h(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function f(e){return void 0!==e.paths}function d(e){return void 0!==e.rings}function m(e){return(0,n.Wi)(e)?null:e instanceof s.Z?e:p(e)?a.Z.fromJSON(e):f(e)?u.Z.fromJSON(e):d(e)?l.Z.fromJSON(e):h(e)?i.Z.fromJSON(e):c(e)?o.Z.fromJSON(e):null}function y(e){return e?p(e)?"esriGeometryPoint":f(e)?"esriGeometryPolyline":d(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":h(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:o.Z,esriGeometryMultipoint:i.Z};function v(e){return e&&g[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>o,P$:()=>s});var n=r(35454);const o=(0,n.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,n.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},40330:(e,t,r)=>{r.d(t,{Dp:()=>u,id:()=>a,qh:()=>l,i8:()=>s,Nv:()=>i});var n=r(80442),o=r(17452);const s="4.22",i={async request(e,t){var n;const{default:s}=await r.e(3172).then(r.bind(r,3172)),i=e.options,a=i.responseType;i.signal=null==t?void 0:t.signal,i.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,o.oh)(e.url))&&n.after?a:"array-buffer";const l=await s(e.url,i),u={data:l.data,ssl:l.ssl};switch(l.requestOptions.responseType){case"native-request-init":return delete u.data.signal,u;case"blob":u.data=await u.data.arrayBuffer();break;case"json":u.data=(new TextEncoder).encode(JSON.stringify(u.data)).buffer;break;case"text":u.data=(new TextEncoder).encode(u.data).buffer}return{result:u,transferList:[u.data]}}};let a;function l(e){a=e}function u(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},29600:(e,t,r)=>{r.d(t,{Z:()=>b});var n=r(43697),o=r(68773),s=(r(66577),r(3172)),i=r(20102),a=r(32448),l=r(10699),u=r(83379),c=r(92604),h=r(95330),p=r(17452),f=r(5600),d=(r(67676),r(80442),r(75215),r(52011)),m=r(6570),y=r(82971);let g=0;const v=c.Z.getLogger("esri.layers.Layer");let w=class extends(a.Z.EventedMixin((0,l.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.Z(-180,-90,180,90,y.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,n=await r.e(3529).then(r.bind(r,63529));try{return await n.fromUrl(t)}catch(e){throw v.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},n=await r.e(8008).then(r.bind(r,28008));try{return await n.fromItem(t)}catch(e){const r=t&&t.portalItem,n=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||o.Z.portalUrl;throw v.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+n+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,h.D_)(e)||c.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,p.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new i.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,n._)([(0,f.Cb)({type:String})],w.prototype,"attributionDataUrl",void 0),(0,n._)([(0,f.Cb)({type:m.Z})],w.prototype,"fullExtent",void 0),(0,n._)([(0,f.Cb)({readOnly:!0})],w.prototype,"hasAttributionData",null),(0,n._)([(0,f.Cb)({type:String})],w.prototype,"id",void 0),(0,n._)([(0,f.Cb)({type:Boolean,nonNullable:!0})],w.prototype,"legendEnabled",void 0),(0,n._)([(0,f.Cb)({type:["show","hide","hide-children"]})],w.prototype,"listMode",void 0),(0,n._)([(0,f.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],w.prototype,"opacity",void 0),(0,n._)([(0,f.Cb)()],w.prototype,"parent",void 0),(0,n._)([(0,f.Cb)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,n._)([(0,f.Cb)({type:Boolean})],w.prototype,"popupEnabled",void 0),(0,n._)([(0,f.Cb)({type:Boolean})],w.prototype,"attributionVisible",void 0),(0,n._)([(0,f.Cb)({type:y.Z})],w.prototype,"spatialReference",void 0),(0,n._)([(0,f.Cb)({type:String})],w.prototype,"title",void 0),(0,n._)([(0,f.Cb)({type:String,readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,n._)([(0,f.Cb)()],w.prototype,"url",void 0),(0,n._)([(0,f.Cb)({type:Boolean,nonNullable:!0})],w.prototype,"visible",void 0),w=(0,n._)([(0,d.j)("esri.layers.Layer")],w);const b=w},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var n=r(68773),o=r(40330),s=r(20102),i=r(16358),a=r(80442),l=r(22974),u=r(70586),c=r(95330),h=r(17452),p=r(71058),f=r(85958);async function d(e,t){var l;const f=(0,h.HK)(e),v=(0,h.jc)(e);v||f||(e=(0,h.Fv)(e));const w={url:e,requestOptions:{...(0,u.Wg)(t)}};let b=(0,h.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=E("request:interceptor",e,t)}if((n instanceof Error||n instanceof s.Z)&&(r=E("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(b,w);if(null!=e)return{data:e,getHeader:O,requestOptions:w.requestOptions,url:w.url};b.after||b.error||(b=null)}if(e=w.url,"image"===(t=w.requestOptions).responseType){if((0,a.Z)("host-webworker")||(0,a.Z)("host-node"))throw E("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),w)}else if(f)throw E("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),w);if("head"===t.method){if(t.body)throw E("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),w);if(f||v)throw E("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),w)}if(await async function(){(0,a.Z)("host-webworker")?m||(m=await Promise.all([r.e(102),r.e(9884)]).then(r.bind(r,29884))):d._abortableFetch||(d._abortableFetch=i.Z.fetch.bind(i.Z))}(),m)return m.execute(e,t);const _=new AbortController;(0,c.fu)(t,(()=>_.abort()));const x={controller:_,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:b,params:w,redoRequest:!1,useIdentity:y.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},k=await async function(e){var t,r;let s,a;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,a=r.body;let l=null,u=null,h=null;if(g&&"HTMLFormElement"in i.Z&&(a instanceof FormData?l=a:a instanceof HTMLFormElement&&(u=a,l=new FormData(u))),"string"==typeof a&&(h=a),e.fetchOptions={cache:r.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:s},(l||h)&&(e.fetchOptions.body=l||h),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query&&r.query.token||l&&l.get&&l.get("token")||u&&u.elements.token),!e.hasToken&&n.Z.apiKey&&(0,p.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!C(t)&&!(0,c.Hc)(s)){let n;"immediate"===r.authMode?(await S(),n=await o.id.getCredential(t,{signal:s}),e.credential=n):"no-prompt"===r.authMode?(await S(),n=await o.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=n):o.id&&(n=o.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[s,a]=await q(e)}while(!await P(e,s,a))}catch(t){const r=E("request:server",t,e.params,s);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const l=e.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(l)&&!e.hasToken&&!e.credentialToken&&null!=(t=a)&&null!=(r=t.user)&&r.username&&!(0,h.kl)(l)){const e=(0,h.P$)(l,!0);e&&y.trustedServers.push(e)}const u=e.credential;if(u&&o.id){const e=o.id.findServerInfo(u.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,u.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:a,getHeader:s?e=>s.headers.get(e):O,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(x);return null==(l=b)||null==l.after||l.after(k),k}let m;const y=n.Z.request,g="FormData"in i.Z,v=[499,498,403,401],w=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],O=()=>null,_=Symbol();function x(e){const t=(0,h.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,h.kl)(t)}function E(e,t,r,n){let o="Error";const i={url:r.url,requestOptions:r.requestOptions,getHeader:O,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,l.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=i,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n&&n.status,s=t.message;s&&(o=s),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=_ in t?t[_]:t}return(0,c.D_)(t)?(0,c.zE)():new s.Z(e,o,i)}async function S(){o.id||await Promise.all([r.e(7824),r.e(8778),r.e(102),r.e(9625)]).then(r.bind(r,79339))}function C(e){return b.some((t=>t.test(e)))}async function q(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions,s=(0,h.jc)(t)||(0,h.HK)(t),i=r.responseType||"json",l=s?0:null!=r.timeout?r.timeout:y.timeout;let u=!1;if(!s){e.useSSL&&(t=(0,h.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,h.ZN)(t,"request.preventCache",Date.now()));let s={...r.query};e.credentialToken&&(s.token=e.credentialToken);let i=(0,h.B7)(s);(0,a.Z)("esri-url-encodes-apostrophe")&&(i=i.replace(/'/g,"%27"));const l=t.length+1+i.length;let c;u="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>y.maxUrlLength;const p=r.useProxy||!!(0,h.ed)(t);if(p){const e=(0,h.b7)(t);c=e.path,!u&&c.length+1+l>y.maxUrlLength&&(u=!0),e.query&&(s={...e.query,...s})}if("HEAD"===n.method&&(u||p)){if(u){if(l>y.maxUrlLength)throw E("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw E("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(p)throw E("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(u?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,h.fl)(t,s):(n.body=(0,h.B7)(s),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,h.fl)(t,s),p&&(e.useProxy=!0,t=`${c}?${t}`),s.token&&g&&n.body instanceof FormData){const e=n.body;e.set?e.set("token",s.token):e.append("token",s.token)}if(r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,h.D6)(t,h.Gd))if((0,h.kl)(t))e.withCredentials=!0;else if(o.id){const r=o.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include")}let p,f,m=0,v=!1;l>0&&(m=setTimeout((()=>{v=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)f=n,f.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||u||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!s&&!e.useProxy&&y.proxyUrl&&!x(t)){if(p=await d._abortableFetch(t,n),e.useProxy||function(e){const t=(0,h.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)f=p;else if("HEAD"!==n.method)if(p.ok){switch(i){case"array-buffer":f=await p.arrayBuffer();break;case"blob":case"image":f=await p.blob();break;default:f=await p.text()}if(m&&(clearTimeout(m),m=0),"json"===i||"xml"===i||"document"===i)if(f)switch(i){case"json":f=JSON.parse(f);break;case"xml":f=k(f,"application/xml");break;case"document":f=k(f,"text/html")}else f=null;if(f){if("array-buffer"===i||"blob"===i){const e=p.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&f["blob"===i?"size":"byteLength"]<=750)try{const e=await new Response(f).json();e.error&&(f=e)}catch{}}"image"===i&&f instanceof Blob&&(f=await $(URL.createObjectURL(f),e,!0))}}else f=await p.text()}else f=await $(t,e)}catch(n){if("AbortError"===n.name){if(v)throw new Error("Timeout exceeded");throw(0,c.zE)("Request canceled")}if(!(!p&&n instanceof TypeError&&y.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||x(t))throw n;e.redoRequest=!0,(0,h.tD)({proxyUrl:y.proxyUrl,urlPrefix:(0,h.P$)(t)})}finally{m&&clearTimeout(m)}return[p,f]}function k(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function P(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let s,i,a,l;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[_]=r,s;null!=r&&r.error&&(s=r.error),s&&(i=Number(s.code),a=s.hasOwnProperty("subcode")?Number(s.subcode):null,l=s.messageCode,l=l&&l.toUpperCase());const u=n.authMode;if(403===i&&(4===a||s.message&&s.message.toLowerCase().indexOf("ssl")>-1&&-1===s.message.toLowerCase().indexOf("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===i)&&-1!==v.indexOf(i)&&!C(e.params.url)&&(403!==i||-1===w.indexOf(l)&&(null==a||2===a&&e.credentialToken))){await S();try{const t=await o.id.getCredential(e.params.url,{error:E("request:server",s,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=null,e.credentialToken=null,!1;s=t}}if(s)throw s;return!0}function $(e,t,r=!1){const n=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.src=e,(0,f.f)(o,e,r,n)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>s});var n=r(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,n.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{f:()=>i});var n=r(80442),o=r(70586),s=r(95330);function i(e,t,r=!1,i){return new Promise(((l,u)=>{if((0,s.Hc)(i))return void u(a());let c=()=>{f(),u(new Error(`Unable to load ${t}`))},h=()=>{const t=e;f(),l(t)},p=()=>{if(!e)return;const t=e;f(),t.src="",u(a())};const f=()=>{(0,n.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",h)),c=null,h=null,e=null,(0,o.pC)(i)&&i.removeEventListener("abort",p),p=null,r&&URL.revokeObjectURL(t)};(0,o.pC)(i)&&i.addEventListener("abort",p),(0,n.Z)("esri-image-decode")?e.decode().then(h,c):(e.addEventListener("error",c),e.addEventListener("load",h))}))}function a(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4324],{88764:(e,t,i)=>{i.d(t,{q:()=>o});var s,n,r,a={exports:{}};s=a,n=function(){function e(i,s,n,r,a){for(;r>n;){if(r-n>600){var o=r-n+1,l=s-n+1,u=Math.log(o),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(o-c)/o)*(l-o/2<0?-1:1);e(i,s,Math.max(n,Math.floor(s-l*c/o+h)),Math.min(r,Math.floor(s+(o-l)*c/o+h)),a)}var d=i[s],f=n,p=r;for(t(i,n,s),a(i[r],d)>0&&t(i,n,r);f<p;){for(t(i,f,p),f++,p--;a(i[f],d)<0;)f++;for(;a(i[p],d)>0;)p--}0===a(i[n],d)?t(i,n,p):t(i,++p,r),p<=s&&(n=p+1),s<=p&&(r=p-1)}}function t(e,t,i){var s=e[t];e[t]=e[i],e[i]=s}function i(e,t){return e<t?-1:e>t?1:0}return function(t,s,n,r,a){e(t,s,n||0,r||t.length-1,a||i)}},void 0!==(r=n())&&(s.exports=r);const o=a.exports},74669:(e,t,i)=>{i.d(t,{Z:()=>n});var s=i(69801);class n{constructor(e,t){this._storage=new s.WJ,this._storage.maxSize=e,t&&this._storage.registerRemoveFunc("",t)}put(e,t){this._storage.put(e,t,1,1)}pop(e){return this._storage.pop(e)}get(e){return this._storage.get(e)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}}},37455:(e,t,i)=>{i.d(t,{N:()=>s});const s={convertToGEGeometry:function(e,t){return null==t?null:e.convertJSONToGeometry(t)},exportPoint:function(e,t,i){const s=new n(e.getPointX(t),e.getPointY(t),i),r=e.hasZ(t),a=e.hasM(t);return r&&(s.z=e.getPointZ(t)),a&&(s.m=e.getPointM(t)),s},exportPolygon:function(e,t,i){return new r(e.exportPaths(t),i,e.hasZ(t),e.hasM(t))},exportPolyline:function(e,t,i){return new a(e.exportPaths(t),i,e.hasZ(t),e.hasM(t))},exportMultipoint:function(e,t,i){return new o(e.exportPoints(t),i,e.hasZ(t),e.hasM(t))},exportExtent:function(e,t,i){const s=e.hasZ(t),n=e.hasM(t),r=new l(e.getXMin(t),e.getYMin(t),e.getXMax(t),e.getYMax(t),i);if(s){const i=e.getZExtent(t);r.zmin=i.vmin,r.zmax=i.vmax}if(n){const i=e.getMExtent(t);r.mmin=i.vmin,r.mmax=i.vmax}return r}};class n{constructor(e,t,i){this.x=e,this.y=t,this.spatialReference=i,this.z=void 0,this.m=void 0}}class r{constructor(e,t,i,s){this.rings=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),s&&(this.hasM=s)}}class a{constructor(e,t,i,s){this.paths=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),s&&(this.hasM=s)}}class o{constructor(e,t,i,s){this.points=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),s&&(this.hasM=s)}}class l{constructor(e,t,i,s,n){this.xmin=e,this.ymin=t,this.xmax=i,this.ymax=s,this.spatialReference=n,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},29730:(e,t,i)=>{i.d(t,{Y:()=>r});var s=i(70586);function n(e,t){return e?t?4:3:t?3:2}function r(e,t,i,r,l){if((0,s.Wi)(t)||!t.lengths.length)return null;const u="upperLeft"===(null==l?void 0:l.originPosition)?-1:1;e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0);const c=e.coords,h=[],d=i?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:f,coords:p}=t,m=n(i,r);let y=0;for(const e of f){const t=a(d,p,y,e,i,r,u);t&&h.push(t),y+=e*m}if(h.sort(((e,t)=>{let s=u*e[2]-u*t[2];return 0===s&&i&&(s=e[4]-t[4]),s})),h.length){let e=6*h[0][2];c[0]=h[0][0]/e,c[1]=h[0][1]/e,i&&(e=6*h[0][4],c[2]=0!==e?h[0][3]/e:0),(c[0]<d[0]||c[0]>d[1]||c[1]<d[2]||c[1]>d[3]||i&&(c[2]<d[4]||c[2]>d[5]))&&(c.length=0)}if(!c.length){const e=t.lengths[0]?o(p,0,f[0],i,r):null;if(!e)return null;c[0]=e[0],c[1]=e[1],i&&e.length>2&&(c[2]=e[2])}return e}function a(e,t,i,s,r,a,o=1){const l=n(r,a);let u=i,c=i+l,h=0,d=0,f=0,p=0,m=0;for(let i=0,n=s-1;i<n;i++,u+=l,c+=l){const i=t[u],s=t[u+1],n=t[u+2],a=t[c],o=t[c+1],l=t[c+2];let y=i*o-a*s;p+=y,h+=(i+a)*y,d+=(s+o)*y,r&&(y=i*l-a*n,f+=(n+l)*y,m+=y),i<e[0]&&(e[0]=i),i>e[1]&&(e[1]=i),s<e[2]&&(e[2]=s),s>e[3]&&(e[3]=s),r&&(n<e[4]&&(e[4]=n),n>e[5]&&(e[5]=n))}if(p*o>0&&(p*=-1),m*o>0&&(m*=-1),!p)return null;const y=[h,d,.5*p];return r&&(y[3]=f,y[4]=.5*m),y}function o(e,t,i,s,r){const a=n(s,r);let o=t,d=t+a,f=0,p=0,m=0,y=0;for(let t=0,n=i-1;t<n;t++,o+=a,d+=a){const t=e[o],i=e[o+1],n=e[o+2],r=e[d],a=e[d+1],g=e[d+2],x=s?u(t,i,n,r,a,g):l(t,i,r,a);if(x)if(f+=x,s){const e=h(t,i,n,r,a,g);p+=x*e[0],m+=x*e[1],y+=x*e[2]}else{const e=c(t,i,r,a);p+=x*e[0],m+=x*e[1]}}return f>0?s?[p/f,m/f,y/f]:[p/f,m/f]:i>0?s?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function l(e,t,i,s){const n=i-e,r=s-t;return Math.sqrt(n*n+r*r)}function u(e,t,i,s,n,r){const a=s-e,o=n-t,l=r-i;return Math.sqrt(a*a+o*o+l*l)}function c(e,t,i,s){return[e+.5*(i-e),t+.5*(s-t)]}function h(e,t,i,s,n,r){return[e+.5*(s-e),t+.5*(n-t),i+.5*(r-i)]}},87958:(e,t,i)=>{i.d(t,{Z:()=>$});var s=i(20102),n=i(22974),r=i(70586),a=i(69801),o=i(67900),l=i(60437),u=i(24470),c=i(20322),h=i(33955),d=i(38581),f=i(8744),p=i(74669),m=i(41534);const y=new class{constructor(e,t){this._cache=new p.Z(e),this._invalidCache=new p.Z(t)}get(e,t){const i=`${t.uid}:${e}`,s=this._cache.get(i);if(s)return s;if(void 0!==this._invalidCache.get(i))return null;try{const s=m.WhereClause.create(e,t);return this._cache.put(i,s),s}catch{return this._invalidCache.put(i,null),null}}}(50,500),g="feature-store:unsupported-query",x=" as ",_=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeDate"]);function I(e,t){if(!t)return!0;const i=y.get(t,e);if(!i)throw new s.Z(g,"invalid SQL expression",{where:t});if(!i.isStandardized)throw new s.Z(g,"where clause is not standard",{where:t});return w(e,i.fieldNames,"where clause contains missing fields"),!0}function S(e,t,i){if(!t)return!0;const n=y.get(t,e);if(!n)throw new s.Z(g,"invalid SQL expression",{having:t});if(!n.isAggregate)throw new s.Z(g,"having does not contain a valid aggregate function",{having:t});const r=n.fieldNames;if(w(e,r,"having contains missing fields"),!n.getExpressions().every((t=>{const{aggregateType:s,field:n}=t,r=e.has(n)&&e.get(n).name;return i.some((t=>{const{onStatisticField:i,statisticType:n}=t;return(e.has(i)&&e.get(i).name)===r&&n.toLowerCase().trim()===s}))})))throw new s.Z(g,"expressions in having should also exist in outStatistics",{having:t});return!0}function b(e,t){return e?y.get(e,t):null}function w(e,t,i,n=!0){const r=[];for(const i of t)if("*"!==i&&!e.has(i))if(n){const t=v(i);try{const i=b(t,e);if(!i)throw new s.Z(g,"invalid SQL expression",{where:t});if(!i.isStandardized)throw new s.Z(g,"expression is not standard",{clause:i});w(e,i.fieldNames,"expression contains missing fields")}catch(e){const t=e&&e.details;if(t&&(t.clause||t.where))throw e;t&&t.missingFields?r.push(...t.missingFields):r.push(i)}}else r.push(i);if(r.length)throw new s.Z(g,i,{missingFields:r})}function v(e){return e.split(x)[0]}function F(e){return e.split(x)[1]}function R(e,t){const i=t.get(e);return!!i&&!_.has(i.type)}var T=i(37427),V=i(61159),M=i(82397),N=i(98732),C=i(8418);class z{constructor(e,t,i){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues,this.fieldsIndex=i,this.featureAdapter=t;const s=e.outFields;if(s&&-1===s.indexOf("*")){this.outFields=s;let e=0;for(const t of s){const s=v(t),n=this.fieldsIndex.get(s),r=n?null:b(s,i),a=n?n.name:F(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:r})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach((e=>this.getAttributes(e))),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,i){const s=i?i.name:t;let n=null;return this._fieldDataCache.has(s)?n=this._fieldDataCache.get(s).clause:i||(n=b(t,this.fieldsIndex),this._fieldDataCache.set(s,{alias:s,clause:n})),i?this.featureAdapter.getAttribute(e,s):n.calculateValue(e,this.featureAdapter)}getNormalizedValue(e,t){const i=t.normalizationType,s=t.normalizationTotal;let n=this.getFieldValue(e,t.field,t.fieldInfo);if(i&&Number.isFinite(n)){const r=this.getFieldValue(e,t.normalizationField,t.normalizationFieldInfo);n=(0,C.fk)(n,i,r,s)}return n}getExpressionValue(e,t,i){const s={attributes:this.featureAdapter.getAttributes(e)},n=i.createExecContext(s,t.viewInfo);return i.executeFunction(t.compiledFunc,n)}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:b(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testFeature(e,this.featureAdapter)}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:b(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testSet(e,this.featureAdapter)}_processAttributesForOutFields(e){const t=this.outFields;if(!t||!t.length)return this.featureAdapter.getAttributes(e);const i={};for(const s of t){const{alias:t,clause:n}=this._fieldDataCache.get(s);i[t]=n?n.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return i}_processAttributesForDistinctValues(e){if((0,r.Wi)(e)||!this.returnDistinctValues)return e;const t=this.outFields,i=[];if(t)for(const s of t){const{alias:t}=this._fieldDataCache.get(s);i.push(e[t])}else for(const t in e)i.push(e[t]);const s=`${(t||["*"]).join(",")}=${i.join(",")}`;let n=this._returnDistinctMap.get(s)||0;return this._returnDistinctMap.set(s,++n),n>1?null:e}}var Q=i(17590),A=i(11490),E=i(35671),P=i(59266);function D(e){return e.substr(24,12)+e.substr(19,4)+e.substr(16,2)+e.substr(14,2)+e.substr(11,2)+e.substr(9,2)+e.substr(6,2)+e.substr(4,2)+e.substr(2,2)+e.substr(0,2)}function G(e,t,i){return(i?e>t:e<t)?-1:(i?e<t:e>t)?1:0}function Z(e,t,i){return i?t-e:e-t}function k(e,t,i,s){if(i&&"esriFieldTypeDate"===i.type){const i=new Date(e).getTime(),n=new Date(t).getTime();if(!isNaN(i)&&!isNaN(n))return Z(i,n,s)}if("number"==typeof e&&"number"==typeof t)return Z(e,t,s);if("string"==typeof e&&"string"==typeof t){const n=e.toUpperCase(),r=t.toUpperCase();return!i||"esriFieldTypeGUID"!==i.type&&"esriFieldTypeGlobalID"!==i.type?G(n,r,s):G(D(n),D(r),s)}return s?1:-1}class q{constructor(e,t,i){this.items=e,this.queryGeometry=t,this.definitionExpression=i.definitionExpression,this.geometryType=i.geometryType,this.hasM=i.hasM,this.hasZ=i.hasZ,this.objectIdField=i.objectIdField,this.spatialReference=i.spatialReference,this.fieldsIndex=i.fieldsIndex,this.timeInfo=i.timeInfo,this.featureAdapter=i.featureAdapter,this.aggregateAdapter=i.aggregateAdapter}get size(){return this.items.length}createQueryResponseForCount(e){const t=new z(e,this.featureAdapter,this.fieldsIndex);if(!e.outStatistics)return t.countDistinctValues(this.items);const{groupByFieldsForStatistics:i,having:s}=e;if(!(null==i?void 0:i.length))return 1;const n=new Map,r=new Map,a=new Set,o=e.outStatistics;for(const e of o){const{statisticType:o}=e,l="exceedslimit"!==o?e.onStatisticField:void 0;if(!r.has(l)){const e=[];for(const s of i){const i=this._getAttributeValues(t,s,n);e.push(i)}r.set(l,this._calculateUniqueValues(e,t.returnDistinctValues))}const u=r.get(l);for(const e in u){const{data:i,items:n}=u[e],r=i.join(",");s&&!t.validateItems(n,s)||a.add(r)}}return a.size}createQueryResponse(e){let t;return t=e.outStatistics?e.outStatistics.some((e=>"exceedslimit"===e.statisticType))?this._createExceedsLimitQueryResponse(e):this._createStatisticsQueryResponse(e):this._createFeatureQueryResponse(e),e.returnQueryGeometry&&((0,f.JY)(e.outSR)&&!(0,f.fS)(this.queryGeometry.spatialReference,e.outSR)?t.queryGeometry=(0,A.S2)({spatialReference:e.outSR,...(0,T.iV)(this.queryGeometry,this.queryGeometry.spatialReference,e.outSR)}):t.queryGeometry=(0,A.S2)({spatialReference:e.outSR,...this.queryGeometry})),t}createSnappingResponse(e,t){const i=this.featureAdapter,s=function(e,t){return e?t?4:3:t?3:2}(this.hasZ,this.hasM),{x:n,y:a}=e.point,o="number"==typeof e.distance?e.distance:e.distance.x,l="number"==typeof e.distance?e.distance:e.distance.y,u={candidates:[]},c="esriGeometryPolygon"===this.geometryType,h=this.getPointCreator(e.point,this.spatialReference,t);for(const t of this.items){const d=i.getGeometry(t);if((0,r.Wi)(d))continue;const{coords:f,lengths:p}=d;if(1&e.types){let e=0;for(let r=0;r<p.length;r++){const c=p[r];for(let r=0;r<c;r++,e+=s){const d=f[e],p=f[e+1];if(r!==c-1){const r=f[e+s],c=f[e+s+1],{x:m,y}=j(n,a,d,p,r,c),g=(n-m)/o,x=(a-y)/l,_=g*g+x*x;_<=1&&u.candidates.push({type:"edge",objectId:i.getObjectId(t),distance:Math.sqrt(_),target:h(m,y),start:h(d,p),end:h(r,c)})}}}}if(2&e.types){const e=c?f.length-s:f.length;for(let r=0;r<e;r+=s){const e=f[r],s=f[r+1],c=(n-e)/o,d=(a-s)/l,p=c*c+d*d;p<=1&&u.candidates.push({type:"vertex",objectId:i.getObjectId(t),distance:Math.sqrt(p),target:h(e,s)})}}}return u.candidates.sort(((e,t)=>e.distance-t.distance)),u}getPointCreator(e,t,i){const s=(0,r.pC)(i)&&!(0,f.fS)(t,i)?e=>(0,T.iV)(e,t,i):e=>e;return null!=e.z&&null!=e.m?(t,i)=>s({x:t,y:i,z:e.z,m:e.m}):null!=e.z?(t,i)=>s({x:t,y:i,z:e.z}):null!=e.m?(t,i)=>s({x:t,y:i,m:e.m}):(e,t)=>s({x:e,y:t})}executeAttributesQuery(e){const t=b(e.where,this.fieldsIndex);if(!t)return Promise.resolve(this);if(t.isStandardized){let i=0;const s=[];for(const e of this.items)t.testFeature(e,this.featureAdapter)&&(s[i++]=e);const n=new q(s,this.queryGeometry,this);return n.definitionExpression=e.where,Promise.resolve(n)}return Promise.reject(new TypeError("Where clause is not standardized"))}executeAggregateIdsQuery(e){if(!e.aggregateIds||!e.aggregateIds.length||(0,r.Wi)(this.aggregateAdapter))return Promise.resolve(this);const t=new Set;for(const i of e.aggregateIds)this.aggregateAdapter.getFeatureObjectIds(i).forEach((e=>t.add(e)));const i=this.featureAdapter.getObjectId;return Promise.resolve(new q(this.items.filter((e=>t.has(i(e)))),this.queryGeometry,this))}executeObjectIdsQuery(e){if(!e.objectIds||!e.objectIds.length)return Promise.resolve(this);const t=new Set(e.objectIds),i=this.featureAdapter.getObjectId;return Promise.resolve(new q(this.items.filter((e=>t.has(i(e)))),this.queryGeometry,this))}executeTimeQuery(e){const t=(0,Q.y)(this.timeInfo,e.timeExtent,this.featureAdapter);if(!(0,r.pC)(t))return Promise.resolve(this);const i=this.items.filter(t);return Promise.resolve(new q(i,this.queryGeometry,this))}filterLatest(){const{trackIdField:e,startTimeField:t,endTimeField:i}=this.timeInfo,s=i||t,n=new Map,r=this.featureAdapter.getAttribute;for(const t of this.items){const i=r(t,e),a=r(t,s),o=n.get(i);(!o||a>r(o,s))&&n.set(i,t)}const a=Array.from(n.values());return Promise.resolve(new q(a,this.queryGeometry,this))}async project(e){if(!e||(0,f.fS)(this.spatialReference,e))return this;const t=this.featureAdapter,i=(await(0,T.oj)(this.items.map((e=>(0,A.Op)(this.geometryType,this.hasZ,this.hasM,t.getGeometry(e)))),this.spatialReference,e)).map(((e,i)=>t.cloneWithGeometry(this.items[i],(0,N.GH)(e,this.hasZ,this.hasM))));return new q(i,this.queryGeometry,{definitionExpression:this.definitionExpression,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,objectIdField:this.objectIdField,spatialReference:e,fieldsIndex:this.fieldsIndex,timeInfo:this.timeInfo,featureAdapter:this.featureAdapter})}async createSummaryStatisticsResponse(e,t){const{field:i,valueExpression:s,normalizationField:n,normalizationType:r,normalizationTotal:a,minValue:o,maxValue:l,scale:u}=t,c=this.fieldsIndex.isDateField(i),h=await this._getDataValues(e,{field:i,valueExpression:s,normalizationField:n,normalizationType:r,normalizationTotal:a,scale:u}),d=(0,C.S5)({normalizationType:r,normalizationField:n,minValue:o,maxValue:l}),f=(0,E.qN)(this.fieldsIndex.get(i))?(0,C.H0)({values:h,supportsNullCount:d}):(0,C.i5)({values:h,minValue:o,maxValue:l,useSampleStdDev:!r,supportsNullCount:d});return(0,C.rt)(f,c)}async createUniqueValuesResponse(e,t){const{field:i,valueExpression:s,domain:n,returnAllCodedValues:r,scale:a}=t,o=await this._getDataValues(e,{field:i,valueExpression:s,scale:a}),l=(0,C.eT)(o);return(0,C.Qm)(l,n,r)}async createClassBreaksResponse(e,t){const{field:i,valueExpression:s,normalizationField:n,normalizationType:r,normalizationTotal:a,classificationMethod:o,standardDeviationInterval:l,minValue:u,maxValue:c,numClasses:h,scale:d}=t,f=await this._getDataValues(e,{field:i,valueExpression:s,normalizationField:n,normalizationType:r,normalizationTotal:a,scale:d}),p=(0,C.G2)(f,{field:i,normalizationField:n,normalizationType:r,normalizationTotal:a,classificationMethod:o,standardDeviationInterval:l,minValue:u,maxValue:c,numClasses:h});return(0,C.DL)(p,o)}_sortFeatures(e,t,i){if(e.length>1&&t&&t.length)for(const s of t.reverse()){const t=s.split(" "),n=t[0],r=this.fieldsIndex.get(n),a=t[1]&&"desc"===t[1].toLowerCase();e.sort(((e,t)=>k(i(e,n,r),i(t,n,r),r,a)))}}_createFeatureQueryResponse(e){const t=this.items,{geometryType:i,hasM:s,hasZ:n,objectIdField:r,spatialReference:a}=this,{outFields:o,outSR:l,quantizationParameters:u,resultRecordCount:c,resultOffset:h,returnZ:d,returnM:f}=e,p=null!=c&&t.length>(h||0)+c,m=o&&(o.indexOf("*")>-1?[...this.fieldsIndex.fields]:o.map((e=>this.fieldsIndex.get(e))));return{exceededTransferLimit:p,features:this._createFeatures(e,t),fields:m,geometryType:i,hasM:s&&f,hasZ:n&&d,objectIdFieldName:r,spatialReference:(0,A.S2)(l||a),transform:u&&(0,M.vY)(u)||null}}_createFeatures(e,t){const i=new z(e,this.featureAdapter,this.fieldsIndex),{hasM:s,hasZ:n}=this,{orderByFields:r,quantizationParameters:a,returnGeometry:o,returnCentroid:l,maxAllowableOffset:u,resultOffset:c,resultRecordCount:h,returnZ:d=!1,returnM:f=!1}=e,p=n&&d,m=s&&f;let y=[],g=0;const x=[...t];if(this._sortFeatures(x,r,((e,t,s)=>i.getFieldValue(e,t,s))),o||l){const e=(0,M.vY)(a);if(o&&!l)for(const t of x)y[g++]={attributes:i.getAttributes(t),geometry:(0,A.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),u,e,p,m)};else if(!o&&l)for(const t of x)y[g++]={attributes:i.getAttributes(t),centroid:(0,A.EG)(this,this.featureAdapter.getCentroid(t,this),e)};else for(const t of x)y[g++]={attributes:i.getAttributes(t),centroid:(0,A.EG)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,A.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),u,e,p,m)}}else for(const e of x){const t=i.getAttributes(e);t&&(y[g++]={attributes:t})}const _=c||0;if(null!=h){const e=_+h;y=y.slice(_,Math.min(y.length,e))}return y}_createExceedsLimitQueryResponse(e){let t=!1,i=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;for(const t of e.outStatistics)if("exceedslimit"===t.statisticType){i=null!=t.maxPointCount?t.maxPointCount:Number.POSITIVE_INFINITY,s=null!=t.maxRecordCount?t.maxRecordCount:Number.POSITIVE_INFINITY,n=null!=t.maxVertexCount?t.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)t=this.items.length>i;else if(this.items.length>s)t=!0;else{const e=this.hasZ?this.hasM?4:3:this.hasM?3:2,i=this.featureAdapter;t=this.items.reduce(((e,t)=>{const s=i.getGeometry(t);return e+((0,r.pC)(s)&&s.coords.length||0)}),0)/e>n}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}}_createStatisticsQueryResponse(e){const t={attributes:{}},i=[],s=new Map,n=new Map,r=new Map,a=new Map,o=new z(e,this.featureAdapter,this.fieldsIndex),l=e.outStatistics,{groupByFieldsForStatistics:u,having:c,orderByFields:h}=e,d=u&&u.length,f=!!d,p=f&&u[0],m=f&&!this.fieldsIndex.get(p);for(const e of l){const{outStatisticFieldName:l,statisticType:h}=e,y=e,g="exceedslimit"!==h?e.onStatisticField:void 0,x="percentile_disc"===h||"percentile_cont"===h,_=f&&1===d&&(g===p||m)&&"count"===h;if(f){if(!r.has(g)){const e=[];for(const t of u){const i=this._getAttributeValues(o,t,s);e.push(i)}r.set(g,this._calculateUniqueValues(e,o.returnDistinctValues))}const e=r.get(g);for(const t in e){const{count:i,data:n,items:r,itemPositions:h}=e[t],d=n.join(",");if(!c||o.validateItems(r,c)){const e=a.get(d)||{attributes:{}};let t=null;if(_)t=i;else{const e=this._getAttributeValues(o,g,s),i=h.map((t=>e[t]));t=x&&"statisticParameters"in y?this._getPercentileValue(y,i):this._getStatisticValue(y,i,null,o.returnDistinctValues)}e.attributes[l]=t,u.forEach(((t,i)=>e.attributes[this.fieldsIndex.get(t)?t:`EXPR_${i+1}`]=n[i])),a.set(d,e)}}}else{const e=this._getAttributeValues(o,g,s);t.attributes[l]=x&&"statisticParameters"in y?this._getPercentileValue(y,e):this._getStatisticValue(y,e,n,o.returnDistinctValues)}i.push({name:l,alias:l,type:"esriFieldTypeDouble"})}const y=f?Array.from(a.values()):[t];return this._sortFeatures(y,h,((e,t)=>e.attributes[t])),{fields:i,features:y}}_getStatisticValue(e,t,i,s){const{onStatisticField:n,statisticType:r}=e;let a=null;return a=null!=i&&i.has(n)?i.get(n):(0,E.qN)(this.fieldsIndex.get(n))?(0,C.H0)({values:t,returnDistinct:s}):(0,C.i5)({values:t,minValue:null,maxValue:null,useSampleStdDev:!0}),i&&i.set(n,a),a["var"===r?"variance":r]}_getPercentileValue(e,t){const{onStatisticField:i,statisticParameters:s,statisticType:n}=e,{value:r,orderBy:a}=s,o="desc"===a,l=this.fieldsIndex.get(i),u=[...t].filter((e=>null!=e)).sort(((e,t)=>k(e,t,l,o)));return this._calculatePercentile(u,r,"percentile_disc"===n)}_getAttributeValues(e,t,i){if(i.has(t))return i.get(t);const s=this.fieldsIndex.get(t),n=this.items.map((i=>e.getFieldValue(i,t,s)));return i.set(t,n),n}_getAttributeNormalizedValues(e,t){return this.items.map((i=>e.getNormalizedValue(i,{field:t.field,fieldInfo:this.fieldsIndex.get(t.field),normalizationField:t.normalizationField,normalizationFieldInfo:this.fieldsIndex.get(t.normalizationField),normalizationType:t.normalizationType,normalizationTotal:t.normalizationTotal})))}async _getAttributeExpressionValues(e,t,i){const{arcadeUtils:s}=await(0,P.LC)(),n=s.createFunction(t),r=i&&s.getViewInfo(i);return this.items.map((t=>e.getExpressionValue(t,{compiledFunc:n,viewInfo:r},s)))}_calculateUniqueValues(e,t){const i={},s=this.items,n=s.length;for(let r=0;r<n;r++){const n=s[r],a=[];for(const t of e)a.push(t[r]);const o=a.join(",");t?null==i[o]&&(i[o]={count:1,data:a,items:[n],itemPositions:[r]}):null==i[o]?i[o]={count:1,data:a,items:[n],itemPositions:[r]}:(i[o].count++,i[o].items.push(n),i[o].itemPositions.push(r))}return i}_calculatePercentile(e,t,i){if(0===e.length)return null;if(t<=0)return e[0];if(t>=1)return e[e.length-1];const s=(e.length-1)*t,n=Math.floor(s),r=n+1,a=s%1,o=e[n],l=e[r];return r>=e.length||i||"string"==typeof o||"string"==typeof l?o:o*(1-a)+l*a}async _getDataValues(e,t){const i=new z(e,this.featureAdapter,this.fieldsIndex),{valueExpression:s,field:n,normalizationField:r,normalizationType:a,normalizationTotal:o,scale:l}=t,u=s?{viewingMode:"map",scale:l,spatialReference:e.outSR||this.spatialReference}:null;return s?this._getAttributeExpressionValues(i,s,u):this._getAttributeNormalizedValues(i,{field:n,normalizationField:r,normalizationType:a,normalizationTotal:o})}}function j(e,t,i,s,n,r){const a=n-i,o=r-s,l=a*a+o*o,u=(e-i)*a+(t-s)*o,c=Math.min(1,Math.max(0,u/l));return{x:i+a*c,y:s+o*c}}var O=i(10402),B=i(99514),U=i(95330);class Y{constructor(){this._tasks=new Array}get length(){return this._tasks.length}push(e,t,i){return new Promise(((s,n)=>this._tasks.push(new W(s,n,e,t,i))))}unshift(e,t,i){return new Promise(((s,n)=>this._tasks.unshift(new W(s,n,e,t,i))))}process(){if(0===this._tasks.length)return!1;const e=this._tasks.shift();try{const t=(0,U.Hc)(e.signal);if(t&&!e.abortCallback)e.reject((0,U.zE)());else{const i=t?e.abortCallback((0,U.zE)()):e.callback();(0,U.tI)(i)?i.then(e.resolve,e.reject):e.resolve(i)}}catch(t){e.reject(t)}return!0}cancelAll(){const e=(0,U.zE)();for(const t of this._tasks)if(t.abortCallback){const i=t.abortCallback(e);t.resolve(i)}else t.reject(e);this._tasks.length=0}}class W{constructor(e,t,i,s,n){this.resolve=e,this.reject=t,this.callback=i,this.signal=s,this.abortCallback=n}}const L="feature-store:unsupported-query",J=new Set,X=new a.WJ(2e6);let H=0;class ${constructor(e){this.capabilities={query:V.g},this.geometryType=e.geometryType,this.hasM=e.hasM,this.hasZ=e.hasZ,this.objectIdField=e.objectIdField,this.spatialReference=e.spatialReference,this.definitionExpression=e.definitionExpression,this.featureStore=e.featureStore,this.aggregateAdapter=e.aggregateAdapter,this._changeHandle=this.featureStore.events.on("changed",(()=>this.clearCache())),this.timeInfo=e.timeInfo,e.cacheSpatialQueries&&(this._geometryQueryCache=new a.Xq(H+++"$$",X)),this.fieldsIndex=new B.Z(e.fields),e.scheduler&&e.priority&&(this._frameQueue=new Y,this._frameTask=e.scheduler.registerTask(e.priority,this))}destroy(){this._frameTask&&(this._frameTask.remove(),this._frameTask=null,this._frameQueue.cancelAll(),this._frameQueue=null),this.clearCache(),this._geometryQueryCache&&this._geometryQueryCache.destroy(),this._changeHandle&&(this._changeHandle.remove(),this._changeHandle=null),this.fieldsIndex.destroy()}get featureAdapter(){return this.featureStore.featureAdapter}get fullExtent(){const e=this.featureStore.fullBounds;return e?{xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:(0,A.S2)(this.spatialReference)}:null}get timeExtent(){return this.timeInfo?(this._timeExtent||(this._timeExtent=(0,Q.R)(this.timeInfo,this.featureStore)),this._timeExtent):null}clearCache(){this._geometryQueryCache&&this._geometryQueryCache.clear(),this._allItems=null,this._timeExtent=null}async executeQuery(e={},t){let i,s=(0,n.d9)(e);try{s=await this._schedule((()=>(0,A.Up)(s,this.definitionExpression,this.spatialReference)),t),s=await this._reschedule((()=>this._checkQuerySupport(s)),t),i=await this._reschedule((()=>this._executeGeometryQuery(s,t)),t),i=await this._reschedule((()=>i.executeAggregateIdsQuery(s)),t),i=await this._reschedule((()=>i.executeObjectIdsQuery(s)),t),i=await this._reschedule((()=>i.executeTimeQuery(s)),t),i=await this._reschedule((()=>i.executeAttributesQuery(s)),t)}catch(e){if(e!==A.vF)throw e;i=new q([],null,this)}return i.createQueryResponse(s)}async executeQueryForCount(e={},t){let i,s=(0,n.d9)(e);s.returnGeometry=!1,s.returnCentroid=!1,s.outSR=null;try{s=await this._schedule((()=>(0,A.Up)(s,this.definitionExpression,this.spatialReference)),t),s=await this._reschedule((()=>this._checkQuerySupport(s)),t),i=await this._reschedule((()=>this._executeGeometryQuery(s,t)),t),i=await this._reschedule((()=>i.executeAggregateIdsQuery(s)),t),i=await this._reschedule((()=>i.executeObjectIdsQuery(s)),t),i=await this._reschedule((()=>i.executeTimeQuery(s)),t),i=await this._reschedule((()=>i.executeAttributesQuery(s)),t)}catch(e){if(e!==A.vF)throw e;return 0}return i.createQueryResponseForCount(s)}async executeQueryForExtent(e={},t){let i,s=(0,n.d9)(e);const r=s.outSR;try{s=await this._schedule((()=>(0,A.Up)(s,this.definitionExpression,this.spatialReference)),t),s=await this._reschedule((()=>this._checkQuerySupport(s)),t),s.returnGeometry=!0,s.returnCentroid=!1,s.outSR=null,i=await this._reschedule((()=>this._executeGeometryQuery(s,t)),t),i=await this._reschedule((()=>i.executeAggregateIdsQuery(s)),t),i=await this._reschedule((()=>i.executeObjectIdsQuery(s)),t),i=await this._reschedule((()=>i.executeTimeQuery(s)),t),i=await this._reschedule((()=>i.executeAttributesQuery(s)),t);const e=i.size;if(!e)return{count:e,extent:null};(0,l.t8)(ee,l.Gv),this.featureStore.forEachBounds(i.items,(e=>(0,l.TC)(ee,e)),K);const n={xmin:ee[0],ymin:ee[1],xmax:ee[3],ymax:ee[4],spatialReference:(0,A.S2)(this.spatialReference)};this.hasZ&&isFinite(ee[2])&&isFinite(ee[5])&&(n.zmin=ee[2],n.zmax=ee[5]);const a=(0,T.iV)(n,i.spatialReference,r);if(a.spatialReference=(0,A.S2)(r||this.spatialReference),a.xmax-a.xmin==0){const e=(0,o.c9)(a.spatialReference);a.xmin-=e,a.xmax+=e}if(a.ymax-a.ymin==0){const e=(0,o.c9)(a.spatialReference);a.ymin-=e,a.ymax+=e}if(this.hasZ&&null!=a.zmin&&null!=a.zmax&&a.zmax-a.zmin==0){const e=(0,o.c9)(a.spatialReference);a.zmin-=e,a.zmax+=e}return{count:e,extent:a}}catch(e){if(e===A.vF)return{count:0,extent:null};throw e}}async executeQueryForIds(e={},t){return this.executeQueryForIdSet(e,t).then((e=>Array.from(e)))}async executeQueryForIdSet(e={},t){let i,s=(0,n.d9)(e);s.returnGeometry=!1,s.returnCentroid=!1,s.outSR=null;try{s=await this._schedule((()=>(0,A.Up)(s,this.definitionExpression,this.spatialReference)),t),s=await this._reschedule((()=>this._checkQuerySupport(s)),t),i=await this._reschedule((()=>this._executeGeometryQuery(s,t)),t),i=await this._reschedule((()=>i.executeAggregateIdsQuery(s)),t),i=await this._reschedule((()=>i.executeObjectIdsQuery(s)),t),i=await this._reschedule((()=>i.executeTimeQuery(s)),t),i=await this._reschedule((()=>i.executeAttributesQuery(s)),t);const e=i.items,n=new Set;return await this._reschedule((()=>{for(const t of e)n.add(i.featureAdapter.getObjectId(t))}),t),n}catch(e){if(e===A.vF)return new Set;throw e}}async executeQueryForSnapping(e,t){const{point:i,distance:s,types:n}=e;if(0===n)return{candidates:[]};const a=await this._reschedule((()=>this._checkQuerySupport(e.query)),t),o=!(0,f.fS)(i.spatialReference,this.spatialReference);o&&await(0,T._W)(i.spatialReference,this.spatialReference);const l="number"==typeof s?s:s.x,u="number"==typeof s?s:s.y,c={xmin:i.x-l,xmax:i.x+l,ymin:i.y-u,ymax:i.y+u,spatialReference:i.spatialReference},p=o?(0,T.iV)(c,this.spatialReference):c;if(!p)return{candidates:[]};const m=(await(0,d.aX)((0,h.im)(i),null,{signal:t}))[0],y=(await(0,d.aX)((0,h.im)(p),null,{signal:t}))[0];if((0,r.Wi)(m)||(0,r.Wi)(y))return{candidates:[]};let g=new q(this._searchFeatures(this._getQueryBBoxes(y.toJSON())),null,this);g=await this._reschedule((()=>g.executeObjectIdsQuery(a)),t),g=await this._reschedule((()=>g.executeTimeQuery(a)),t),g=await this._reschedule((()=>g.executeAttributesQuery(a)),t);const x=m.toJSON(),_=o?(0,T.iV)(x,this.spatialReference):x,I=o?Math.max(p.xmax-p.xmin,p.ymax-p.ymin)/2:s;return g.createSnappingResponse({...e,point:_,distance:I},i.spatialReference)}async executeQueryForLatestObservations(e={},t){if(!this.timeInfo||!this.timeInfo.trackIdField)throw new s.Z(L,"Missing timeInfo or timeInfo.trackIdField",{query:e,timeInfo:this.timeInfo});let i,r=(0,n.d9)(e);try{r=await this._schedule((()=>(0,A.Up)(r,this.definitionExpression,this.spatialReference)),t),r=await this._reschedule((()=>this._checkQuerySupport(r)),t),i=await this._reschedule((()=>this._executeGeometryQuery(r,t)),t),i=await this._reschedule((()=>i.executeAggregateIdsQuery(r)),t),i=await this._reschedule((()=>i.executeObjectIdsQuery(r)),t),i=await this._reschedule((()=>i.executeTimeQuery(r)),t),i=await this._reschedule((()=>i.executeAttributesQuery(r)),t),i=await this._reschedule((()=>i.filterLatest()),t)}catch(e){if(e!==A.vF)throw e;i=new q([],null,this)}return i.createQueryResponse(r)}async executeQueryForSummaryStatistics(e={},t,i){const{field:s,normalizationField:n,valueExpression:r}=t;return(await this._getQueryEngineResultForStats(e,{field:s,normalizationField:n,valueExpression:r},i)).createSummaryStatisticsResponse(e,t)}async executeQueryForUniqueValues(e={},t,i){const{field:s,valueExpression:n}=t;return(await this._getQueryEngineResultForStats(e,{field:s,valueExpression:n},i)).createUniqueValuesResponse(e,t)}async executeQueryForClassBreaks(e={},t,i){const{field:s,normalizationField:n,valueExpression:r}=t;return(await this._getQueryEngineResultForStats(e,{field:s,normalizationField:n,valueExpression:r},i)).createClassBreaksResponse(e,t)}async _schedule(e,t){return this._frameQueue?this._frameQueue.push(e,t):e()}async _reschedule(e,t){return this._frameQueue?this._frameQueue.unshift(e,t):e()}get running(){return this._frameQueue.length>0}runTask(e){for(this._budget=e;!e.done&&this._frameQueue&&this._frameQueue.process();)e.madeProgress();this._budget=null}_getAll(){if(!this._allItems){const e=[];this.featureStore.forEach((t=>e.push(t))),this._allItems=new q(e,null,this)}return this._allItems}async _executeGeometryQuery(e,t){const{geometry:i,outSR:s,spatialRel:n,returnGeometry:a,returnCentroid:o}=e,l=a||o,u=(0,f.JY)(s)&&!(0,f.fS)(this.spatialReference,s),c=this._geometryQueryCache?u&&l?JSON.stringify({geometry:i,spatialRelationship:n,outSpatialReference:s}):JSON.stringify({geometry:i,spatialRelationship:n}):null;if(c){const e=this._geometryQueryCache.get(c);if(!(0,r.o8)(e))return e}const h=async e=>{if(u&&l){const t=await e.project(s);return c&&this._geometryQueryCache.put(c,t,t.size||1),t}return c&&this._geometryQueryCache.put(c,e,e.size||1),e};if(!i)return h(this._getAll());const d=this.featureAdapter;if("esriSpatialRelDisjoint"===n){const e=this._searchFeatures(this._getQueryBBoxes(i));if(!e.length)return h(this._getAll());let s,r;const a=new Set;for(const t of e)a.add(d.getObjectId(t));await this._reschedule((()=>{let e=0;s=new Array(a.size),this.featureStore.forEach((t=>s[e++]=t)),r=a}),t);const o=await this._reschedule((async()=>{const e=await(0,O.cW)(n,i,this.geometryType,this.hasZ,this.hasM);return new q(await this._runSpatialFilter(s,(t=>!r.has(d.getObjectId(t))||e(d.getGeometry(t))),t),i,this)}),t);return h(o)}const p=this._searchFeatures(this._getQueryBBoxes(i));if(!p.length){const e=new q([],i,this);return c&&this._geometryQueryCache.put(c,e,e.size||1),e}if(this._canExecuteSoloPass(i,e))return h(new q(p,i,this));const m=await(0,O.cW)(n,i,this.geometryType,this.hasZ,this.hasM),y=await this._runSpatialFilter(p,(e=>m(d.getGeometry(e))),t);return h(new q(y,i,this))}async _runSpatialFilter(e,t,i){if(!t)return e;if(!this._budget)return e.filter((e=>t(e)));let s=0;const n=new Array,r=async()=>{for(;s<e.length;){const a=e[s];t(a)&&n.push(a),this._budget.done&&await this._reschedule((()=>r()),i),++s}};return this._reschedule((()=>r()),i).then((()=>n))}_canExecuteSoloPass(e,t){const{geometryType:i}=this,{spatialRel:s}=t;return(0,O.hN)(e)&&("esriSpatialRelEnvelopeIntersects"===s||"esriGeometryPoint"===i&&("esriSpatialRelIntersects"===s||"esriSpatialRelContains"===s||"esriSpatialRelWithin"===s))}_getQueryBBoxes(e){if((0,O.hN)(e)){if((0,h.YX)(e))return[(0,u.al)(e.xmin,e.ymin,e.xmax,e.ymax)];if((0,h.oU)(e))return e.rings.map((e=>(0,u.al)(Math.min(e[0][0],e[2][0]),Math.min(e[0][1],e[2][1]),Math.max(e[0][0],e[2][0]),Math.max(e[0][1],e[2][1]))))}return[(0,c.$P)((0,u.Ue)(),e)]}_searchFeatures(e){for(const t of e)this.featureStore.forEachInBounds(t,(e=>{J.add(e)}));const t=new Array(J.size);let i=0;return J.forEach((e=>t[i++]=e)),J.clear(),t}async _checkStatisticsSupport(e,t){if(e.distance<0||null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text||e.outStatistics||e.groupByFieldsForStatistics||e.having||e.orderByFields)throw new s.Z(L,"Unsupported query options",{query:e});return Promise.all([this._checkAttributesQuerySupport(e),this._checkStatisticsParamsSupport(t),(0,O.P0)(e,this.geometryType,this.spatialReference),(0,T._W)(this.spatialReference,e.outSR)]).then((()=>e))}async _checkStatisticsParamsSupport(e){let t=[];if(e.valueExpression){const{arcadeUtils:i}=await(0,P.LC)();t=i.extractFieldNames(e.valueExpression)}if(e.field&&t.push(e.field),e.normalizationField&&t.push(e.normalizationField),!t.length)throw new s.Z(L,"params should have at least a field or valueExpression",{params:e});w(this.fieldsIndex,t,"params contains missing fields")}async _checkQuerySupport(e){if(e.distance<0||null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text)throw new s.Z(L,"Unsupported query options",{query:e});return Promise.all([this._checkAttributesQuerySupport(e),this._checkStatisticsQuerySupport(e),(0,O.P0)(e,this.geometryType,this.spatialReference),(0,T._W)(this.spatialReference,e.outSR)]).then((()=>e))}_checkAttributesQuerySupport(e){const{outFields:t,orderByFields:i,returnDistinctValues:n,outStatistics:r}=e,a=r?r.map((e=>e.outStatisticFieldName&&e.outStatisticFieldName.toLowerCase())):[];if(i&&i.length>0){const e=" asc",t=" desc",s=i.map((i=>{const s=i.toLowerCase();return s.indexOf(e)>-1?s.split(e)[0]:s.indexOf(t)>-1?s.split(t)[0]:i})).filter((e=>-1===a.indexOf(e)));w(this.fieldsIndex,s,"orderByFields contains missing fields")}if(t&&t.length>0)w(this.fieldsIndex,t,"outFields contains missing fields");else if(n)throw new s.Z(L,"outFields should be specified for returnDistinctValues",{query:e});I(this.fieldsIndex,e.where)}async _checkStatisticsQuerySupport(e){const{outStatistics:t,groupByFieldsForStatistics:i,having:n}=e,r=i&&i.length,a=t&&t.length;if(n){if(!r||!a)throw new s.Z(L,"outStatistics and groupByFieldsForStatistics should be specified with having",{query:e});S(this.fieldsIndex,n,t)}if(a){if(!t.every((e=>"exceedslimit"!==e.statisticType)))return;const n=t.map((e=>e.onStatisticField));w(this.fieldsIndex,n,"onStatisticFields contains missing fields"),r&&w(this.fieldsIndex,i,"groupByFieldsForStatistics contains missing fields");for(const i of t){const{onStatisticField:t,statisticType:n}=i;if("percentile_disc"!==n&&"percentile_cont"!==n||!("statisticParameters"in i)){if("count"!==n&&t&&R(t,this.fieldsIndex))throw new s.Z(L,"outStatistics contains non-numeric fields",{definition:i,query:e})}else{const{statisticParameters:t}=i;if(!t)throw new s.Z(L,"statisticParamters should be set for percentile type",{definition:i,query:e})}}}}async _getQueryEngineResultForStats(e={},t,i){let s;e=(0,n.d9)(e);try{e=await this._schedule((()=>(0,A.Up)(e,this.definitionExpression,this.spatialReference)),i),e=await this._reschedule((()=>this._checkStatisticsSupport(e,t)),i),s=await this._reschedule((()=>this._executeGeometryQuery(e,i)),i),s=await this._reschedule((()=>s.executeAggregateIdsQuery(e)),i),s=await this._reschedule((()=>s.executeObjectIdsQuery(e)),i),s=await this._reschedule((()=>s.executeTimeQuery(e)),i),s=await this._reschedule((()=>s.executeAttributesQuery(e)),i)}catch(e){if(e!==A.vF)throw e;s=new q([],null,this)}return s}}const K=(0,l.Ue)(),ee=(0,l.Ue)()},61159:(e,t,i)=>{i.d(t,{g:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},37427:(e,t,i)=>{i.d(t,{_W:()=>d,iV:()=>m,oj:()=>g});var s=i(70586),n=i(42894),r=i(37455),a=i(8744),o=i(40488);const l=[0,0];function u(e,t){if(!t)return null;if("x"in t){const i={x:0,y:0};return[i.x,i.y]=e(t.x,t.y,l),null!=t.z&&(i.z=t.z),null!=t.m&&(i.m=t.m),i}if("xmin"in t){const i={xmin:0,ymin:0,xmax:0,ymax:0};return[i.xmin,i.ymin]=e(t.xmin,t.ymin,l),[i.xmax,i.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(i.zmin=t.zmin,i.zmax=t.zmax,i.hasZ=!0),t.hasM&&(i.mmin=t.mmin,i.mmax=t.mmax,i.hasM=!0),i}return"rings"in t?{rings:c(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:c(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:h(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:void 0}function c(e,t){const i=[];for(const s of e)i.push(h(s,t));return i}function h(e,t){const i=[];for(const s of e){const e=t(s[0],s[1],[0,0]);i.push(e),s.length>2&&e.push(s[2]),s.length>3&&e.push(s[3])}return i}async function d(e,t){if(!t)return;const i=Array.isArray(e)?e.map((e=>(0,s.pC)(e.geometry)&&e.geometry.spatialReference)):[e];await(0,n.iQ)(i.map((e=>({source:e,dest:t}))))}const f=u.bind(null,o.hG),p=u.bind(null,o.R6);function m(e,t,i){return e?(i||(i=t,t=e.spatialReference),(0,a.JY)(t)&&(0,a.JY)(i)&&!(0,a.fS)(t,i)?(0,o.Q8)(t,i)?(0,a.sS)(i)?f(e):p(e):(0,n.oj)(r.N,[e],t,i,null)[0]:e):e}const y=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,i){if(!e||!e.length||!t||!i||(0,a.fS)(t,i))return e;const s={geometries:e,inSpatialReference:t,outSpatialReference:i,resolve:null};return this._jobs.push(s),new Promise((e=>{s.resolve=e,null===this._timer&&(this._timer=setTimeout(this._process,10))}))}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:i,outSpatialReference:s,resolve:l}=e;(0,o.Q8)(i,s)?(0,a.sS)(s)?l(t.map(f)):l(t.map(p)):l((0,n.oj)(r.N,t,i,s,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function g(e,t,i){return y.push(e,t,i)}},10402:(e,t,i)=>{i.d(t,{hN:()=>w,P0:()=>b,cW:()=>S});var s=i(20102),n=i(54102),r=i(87416),a=i(33955),o=i(8744);function l(e,t){return e?t?4:3:t?3:2}function u(e,t,i,s,n,r){const a=l(n,r),{coords:o,lengths:u}=s;if(!u)return!1;for(let s=0,n=0;s<u.length;s++,n+=a)if(!c(e,t,i,o[n],o[n+1]))return!1;return!0}function c(e,t,i,s,n){if(!e)return!1;const r=l(t,i),{coords:a,lengths:o}=e;let u=!1,c=0;for(const e of o)u=h(u,a,r,c,e,s,n),c+=e*r;return u}function h(e,t,i,s,n,r,a){let o=e,l=s;for(let e=s,u=s+n*i;e<u;e+=i){l=e+i,l===u&&(l=s);const n=t[e],c=t[e+1],h=t[l],d=t[l+1];(c<a&&d>=a||d<a&&c>=a)&&n+(a-c)/(d-c)*(h-n)<r&&(o=!o)}return o}var d=i(98732),f=i(5428),p=i(37427),m=i(11490);const y="feature-store:unsupported-query",g={esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"intersects",esriSpatialRelIndexIntersects:null,esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:null},x={esriSpatialRelIntersects:!0,esriSpatialRelContains:!0,esriSpatialRelWithin:!0,esriSpatialRelCrosses:!0,esriSpatialRelDisjoint:!0,esriSpatialRelTouches:!0,esriSpatialRelOverlaps:!0,esriSpatialRelEnvelopeIntersects:!0,esriSpatialRelIndexIntersects:!1,esriSpatialRelRelation:!1},_={esriGeometryPoint:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!0},I={esriGeometryPoint:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!1};function S(e,t,s,o,l){if((0,a.oU)(t)&&"esriGeometryPoint"===s&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e)){const e=(0,d.Uy)(new f.Z,t,!1,!1);return Promise.resolve((t=>function(e,t,i,s){return c(e,!1,!1,s.coords[0],s.coords[1])}(e,0,0,t)))}if((0,a.oU)(t)&&"esriGeometryMultipoint"===s){const i=(0,d.Uy)(new f.Z,t,!1,!1);if("esriSpatialRelContains"===e)return Promise.resolve((e=>u(i,!1,!1,e,o,l)))}if((0,a.YX)(t)&&"esriGeometryPoint"===s&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e))return Promise.resolve((e=>(0,n.aV)(t,(0,m.Op)(s,o,l,e))));if((0,a.YX)(t)&&"esriGeometryMultipoint"===s&&"esriSpatialRelContains"===e)return Promise.resolve((e=>(0,n.lQ)(t,(0,m.Op)(s,o,l,e))));if((0,a.YX)(t)&&"esriSpatialRelIntersects"===e){const e=function(e){return"mesh"===e?r.h_:(0,r.IY)(e)}(s);return Promise.resolve((i=>e(t,(0,m.Op)(s,o,l,i))))}return Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247)).then((i=>{const n=i[g[e]].bind(null,t.spatialReference,t);return e=>n((0,m.Op)(s,o,l,e))}))}async function b(e,t,i){const{spatialRel:n,geometry:r}=e;if(r){if(!function(e){return!0===x[e]}(n))throw new s.Z(y,"Unsupported query spatial relationship",{query:e});if((0,o.JY)(r.spatialReference)&&(0,o.JY)(i)){if(!function(e){return!0===_[(0,a.Ji)(e)]}(r))throw new s.Z(y,"Unsupported query geometry type",{query:e});if(!function(e){return!0===I[e]}(t))throw new s.Z(y,"Unsupported layer geometry type",{query:e});if(e.outSR)return(0,p._W)(e.geometry&&e.geometry.spatialReference,e.outSR)}}}function w(e){if((0,a.YX)(e))return!0;if((0,a.oU)(e)){for(const t of e.rings){if(5!==t.length)return!1;if(t[0][0]!==t[1][0]||t[0][0]!==t[4][0]||t[2][0]!==t[3][0]||t[0][1]!==t[3][1]||t[0][1]!==t[4][1]||t[1][1]!==t[2][1])return!1}return!0}return!1}},17590:(e,t,i)=>{function s(e,t){if(!e)return null;const i=t.featureAdapter,{startTimeField:s,endTimeField:n}=e;let r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;if(s&&n)t.forEach((e=>{const t=i.getAttribute(e,s),o=i.getAttribute(e,n);null==t||isNaN(t)||(r=Math.min(r,t)),null==o||isNaN(o)||(a=Math.max(a,o))}));else{const e=s||n;t.forEach((t=>{const s=i.getAttribute(t,e);null==s||isNaN(s)||(r=Math.min(r,s),a=Math.max(a,s))}))}return{start:r,end:a}}function n(e,t,i){if(!t||!e)return null;const{startTimeField:s,endTimeField:n}=e;if(!s&&!n)return null;const{start:r,end:a}=t;return null===r&&null===a?null:void 0===r&&void 0===a?()=>!1:s&&n?function(e,t,i,s,n){return null!=s&&null!=n?r=>{const a=e.getAttribute(r,t),o=e.getAttribute(r,i);return(null==a||a<=n)&&(null==o||o>=s)}:null!=s?t=>{const n=e.getAttribute(t,i);return null==n||n>=s}:null!=n?i=>{const s=e.getAttribute(i,t);return null==s||s<=n}:void 0}(i,s,n,r,a):function(e,t,i,s){return null!=i&&null!=s&&i===s?s=>e.getAttribute(s,t)===i:null!=i&&null!=s?n=>{const r=e.getAttribute(n,t);return r>=i&&r<=s}:null!=i?s=>e.getAttribute(s,t)>=i:null!=s?i=>e.getAttribute(i,t)<=s:void 0}(i,s||n,r,a)}i.d(t,{R:()=>s,y:()=>n})},11490:(e,t,i)=>{i.d(t,{vF:()=>p,S2:()=>w,Op:()=>I,Up:()=>S,j6:()=>b,EG:()=>_});var s=i(35454),n=i(70586),r=i(67900),a=i(49600),o=i(33955),l=i(38581),u=i(8744),c=i(98732),h=i(5428),d=i(37427);const f=new s.Xn({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),p=Object.freeze({}),m=new h.Z,y=new h.Z,g=new h.Z,x={esriGeometryPoint:c.fQ,esriGeometryPolyline:c.J6,esriGeometryPolygon:c.eG,esriGeometryMultipoint:c.Iv};function _(e,t,i,s=e.hasZ,r=e.hasM){if((0,n.Wi)(t))return null;const a=e.hasZ&&s,o=e.hasM&&r;if(i){const n=(0,c.Nh)(g,t,e.hasZ,e.hasM,"esriGeometryPoint",i,s,r);return(0,c.fQ)(n,a,o)}return(0,c.fQ)(t,a,o)}function I(e,t,i,s,r,a,o=t,l=i){const u=t&&o,h=i&&l,d=(0,n.pC)(s)?"coords"in s?s:s.geometry:null;if((0,n.Wi)(d))return null;if(r){let s=(0,c.zj)(y,d,t,i,e,r,o,l);return a&&(s=(0,c.Nh)(g,s,u,h,e,a)),x[e](s,u,h)}if(a){const s=(0,c.Nh)(g,d,t,i,e,a,o,l);return x[e](s,u,h)}return(0,c.hY)(m,d,t,i,o,l),x[e](m,u,h)}async function S(e,t,i){const{outFields:s,orderByFields:n,groupByFieldsForStatistics:r,outStatistics:a}=e;if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),b(e,t,i)}async function b(e,t,s){if(!e)return null;let{where:c}=e;if(e.where=c=c&&c.trim(),(!c||/^1 *= *1$/.test(c)||t&&t===c)&&(e.where=null),!e.geometry)return e;let h=await async function(e){const{geometry:t,distance:s,units:n}=e;if(null==s||"vertexAttributes"in t)return t;const a=t.spatialReference,o=n?f.fromJSON(n):(0,r.qE)(a),l=a&&((0,u.sT)(a)||(0,u.sS)(a))?t:await(0,d._W)(a,u.Zn).then((()=>(0,d.iV)(t,u.Zn)));return(await async function(){return(await Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247))).geodesicBuffer}())(l.spatialReference,l,s,o)}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;h=(0,a.aO)(h),h.spatialReference=t}e.geometry=h,await(0,d._W)(h.spatialReference,s);const m=(await(0,l.aX)((0,o.im)(h)))[0];if((0,n.Wi)(m))throw p;const y=m.toJSON(),g=await(0,d.iV)(y,y.spatialReference,s);if(!g)throw p;return g.spatialReference=s,e.geometry=g,e}function w(e){return e&&v in e?JSON.parse(JSON.stringify(e,F)):e}const v="_geVersion",F=(e,t)=>e!==v?t:void 0},57316:(e,t,i)=>{i.d(t,{Z:()=>y});var s=i(43697),n=i(35454),r=i(5600),a=(i(67676),i(80442),i(75215),i(52011)),o=i(10736),l=i(94593),u=i(89164);const c=new n.Xn({classBreaksDef:"class-breaks-definition",uniqueValueDef:"unique-value-definition"});let h=class extends o.wq{constructor(){super(...arguments),this.baseSymbol=null,this.colorRamp=null,this.type=null}};(0,s._)([(0,r.Cb)({type:u.Z,json:{write:!0}})],h.prototype,"baseSymbol",void 0),(0,s._)([(0,r.Cb)({types:l.V,json:{read:{reader:l.i},write:!0}})],h.prototype,"colorRamp",void 0),(0,s._)([(0,r.Cb)({json:{read:c.read,write:c.write}})],h.prototype,"type",void 0),h=(0,s._)([(0,a.j)("esri.rest.support.ClassificationDefinition")],h);const d=h,f=new n.Xn({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),p=new n.Xn({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let m=class extends d{constructor(){super(...arguments),this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null,this.type="class-breaks-definition"}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,s._)([(0,r.Cb)({json:{write:!0}})],m.prototype,"breakCount",void 0),(0,s._)([(0,r.Cb)({json:{write:!0}})],m.prototype,"classificationField",void 0),(0,s._)([(0,r.Cb)({type:String,json:{read:f.read,write:f.write}})],m.prototype,"classificationMethod",void 0),(0,s._)([(0,r.Cb)({json:{write:!0}})],m.prototype,"normalizationField",void 0),(0,s._)([(0,r.Cb)({json:{read:p.read,write:p.write}})],m.prototype,"normalizationType",void 0),(0,s._)([(0,r.Cb)({value:null,json:{write:!0}})],m.prototype,"standardDeviationInterval",null),(0,s._)([(0,r.Cb)({value:null,json:{write:!0}})],m.prototype,"definedInterval",null),(0,s._)([(0,r.Cb)()],m.prototype,"type",void 0),m=(0,s._)([(0,a.j)("esri.rest.support.ClassBreaksDefinition")],m);const y=m},8418:(e,t,i)=>{i.d(t,{G2:()=>_,i5:()=>p,H0:()=>f,eT:()=>y,Qm:()=>g,fk:()=>x,S5:()=>d,rt:()=>m,DL:()=>I});var s=i(57316);function n(e,t){return Number(e.toFixed(t))}function r(e){const{normalizationTotal:t}=e;return{classBreaks:a(e),normalizationTotal:t}}function a(e){const t=e.definition,{classificationMethod:i,breakCount:s,normalizationType:r,definedInterval:a}=t,u=[];let c=e.values;if(0===c.length)return[];c=c.sort(((e,t)=>e-t));const h=c[0],d=c[c.length-1];if("equal-interval"===i)if(c.length>=s){const e=(d-h)/s;let t=h;for(let i=1;i<s;i++){const s=n(h+i*e,6);u.push({minValue:t,maxValue:s,label:o(t,s,r)}),t=s}u.push({minValue:t,maxValue:d,label:o(t,d,r)})}else c.forEach((e=>{u.push({minValue:e,maxValue:e,label:o(e,e,r)})}));else if("natural-breaks"===i){const t=function(e){const t=[],i=[];let s=Number.MIN_VALUE,n=1,r=-1;for(let a=0;a<e.length;a++){const o=e[a];o===s?(n++,i[r]=n):null!==o&&(t.push(o),s=o,n=1,i.push(n),r++)}return{uniqueValues:t,valueFrequency:i}}(c),i=e.valueFrequency||t.valueFrequency,a=l(t.uniqueValues,i,s);let f=h;for(let e=1;e<s;e++)if(t.uniqueValues.length>e){const i=n(t.uniqueValues[a[e]],6);u.push({minValue:f,maxValue:i,label:o(f,i,r)}),f=i}u.push({minValue:f,maxValue:d,label:o(f,d,r)})}else if("quantile"===i)if(c.length>=s&&h!==d){let e=h,t=Math.ceil(c.length/s),i=0;for(let n=1;n<s;n++){let a=t+i-1;a>c.length&&(a=c.length-1),a<0&&(a=0),u.push({minValue:e,maxValue:c[a],label:o(e,c[a],r)}),e=c[a],i+=t,t=Math.ceil((c.length-i)/(s-n))}u.push({minValue:e,maxValue:d,label:o(e,d,r)})}else{let e=-1;for(let t=0;t<c.length;t++){const i=c[t];i!==e&&(e=i,u.push({minValue:e,maxValue:i,label:o(e,i,r)}),e=i)}}else if("standard-deviation"===i){const e=function(e){let t=0;for(let i=0;i<e.length;i++)t+=e[i];return t/=e.length,t}(c),t=function(e,t){let i=0;for(let s=0;s<e.length;s++){const n=e[s];i+=(n-t)*(n-t)}return i/=e.length,Math.sqrt(i)}(c,e);if(0===t)u.push({minValue:c[0],maxValue:c[0],label:o(c[0],c[0],r)});else{const i=function(e,t,i,s,n){let r=Math.max(s-e,t-s)/n/i;return r=r>=1?1:r>=.5?.5:.25,r}(h,d,s,e,t)*t;let a=0,l=h;for(let t=s;t>=1;t--){const s=n(e-(t-.5)*i,6);u.push({minValue:l,maxValue:s,label:o(l,s,r)}),l=s,a++}let c=n(e+.5*i,6);u.push({minValue:l,maxValue:c,label:o(l,c,r)}),l=c,a++;for(let t=1;t<=s;t++)c=a===2*s?d:n(e+(t+.5)*i,6),u.push({minValue:l,maxValue:c,label:o(l,c,r)}),l=c,a++}}else if("defined-interval"===i){if(!a)return u;const e=c[0],t=c[c.length-1],i=Math.ceil((t-e)/a);let s=e;for(let t=1;t<i;t++){const i=n(e+t*a,6);u.push({minValue:s,maxValue:i,label:o(s,i,r)}),s=i}u.push({minValue:s,maxValue:t,label:o(s,t,r)})}return u}function o(e,t,i){let s=null;return s=e===t?i&&"percent-of-total"===i?e+"%":e.toString():i&&"percent-of-total"===i?e+"% - "+t+"%":e+" - "+t,s}function l(e,t,i){const s=e.length,n=[];i>s&&(i=s);for(let e=0;e<i;e++)n.push(Math.round(e*s/i-1));n.push(s-1);let r=u(n,e,t,i);return function(e,t,i,s,n,r){let a=0,o=0,l=0,u=0,h=!0;for(let d=0;d<2&&h;d++){0===d&&(h=!1);for(let d=0;d<r-1;d++)for(;i[d+1]+1!==i[d+2];){i[d+1]=i[d+1]+1;const r=c(d,i,s,n);l=r.sbMean,a=r.sbSdcm;const f=c(d+1,i,s,n);if(u=f.sbMean,o=f.sbSdcm,!(a+o<t[d]+t[d+1])){i[d+1]=i[d+1]-1;break}t[d]=a,t[d+1]=o,e[d]=l,e[d+1]=u,h=!0}for(let d=r-1;d>0;d--)for(;i[d]!==i[d-1]+1;){i[d]=i[d]-1;const r=c(d-1,i,s,n);l=r.sbMean,a=r.sbSdcm;const f=c(d,i,s,n);if(u=f.sbMean,o=f.sbSdcm,!(a+o<t[d-1]+t[d])){i[d]=i[d]+1;break}t[d-1]=a,t[d]=o,e[d-1]=l,e[d]=u,h=!0}}return h}(r.mean,r.sdcm,n,e,t,i)&&(r=u(n,e,t,i)),n}function u(e,t,i,s){let n=[],r=[],a=[],o=0;const l=[],u=[];for(let n=0;n<s;n++){const s=c(n,e,t,i);l.push(s.sbMean),u.push(s.sbSdcm),o+=u[n]}let h,d=o,f=!0;for(;f||o<d;){f=!1,n=[];for(let t=0;t<s;t++)n.push(e[t]);for(let i=0;i<s;i++)for(let n=e[i]+1;n<=e[i+1];n++)if(h=t[n],i>0&&n!==e[i+1]&&Math.abs(h-l[i])>Math.abs(h-l[i-1]))e[i]=n;else if(i<s-1&&e[i]!==n-1&&Math.abs(h-l[i])>Math.abs(h-l[i+1])){e[i+1]=n-1;break}d=o,o=0,r=[],a=[];for(let n=0;n<s;n++){r.push(l[n]),a.push(u[n]);const s=c(n,e,t,i);l[n]=s.sbMean,u[n]=s.sbSdcm,o+=u[n]}}if(o>d){for(let t=0;t<s;t++)e[t]=n[t],l[t]=r[t],u[t]=a[t];o=d}return{mean:l,sdcm:u}}function c(e,t,i,s){let n=0,r=0;for(let a=t[e]+1;a<=t[e+1];a++){const e=s[a];n+=i[a]*e,r+=e}r<=0&&console.log("Exception in Natural Breaks calculation");const a=n/r;let o=0;for(let n=t[e]+1;n<=t[e+1];n++)o+=s[n]*(i[n]-a)**2;return{sbMean:a,sbSdcm:o}}const h=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi;function d(e){const t=null!=e.normalizationField||null!=e.normalizationType,i=null!=e.minValue||null!=e.maxValue,s=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!i&&!s}function f(e){const t=e.returnDistinct?[...new Set(e.values)]:e.values,i=t.filter((e=>null!=e)).length,s={count:i};return e.supportsNullCount&&(s.nullcount=t.length-i),s}function p(e){const{values:t,useSampleStdDev:i,supportsNullCount:s}=e;let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,a=null,o=null,l=null,u=null,c=0;const h=null==e.minValue?-1/0:e.minValue,d=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=h&&e<=d&&(a+=e,n=Math.min(n,e),r=Math.max(r,e),c++):"string"==typeof e&&c++;if(c&&null!=a){o=a/c;let e=0;for(const i of t)Number.isFinite(i)&&i>=h&&i<=d&&(e+=(i-o)**2);u=i?c>1?e/(c-1):0:c>0?e/c:0,l=Math.sqrt(u)}else n=null,r=null;const f={avg:o,count:c,max:r,min:n,stddev:l,sum:a,variance:u};return s&&(f.nullcount=t.length-c),f}function m(e,t){return t?(["avg","stddev","variance"].forEach((t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]))})),e):e}function y(e){const t={};for(let i of e)(null==i||"string"==typeof i&&""===i.trim())&&(i=null),null==t[i]?t[i]={count:1,data:i}:t[i].count++;return{count:t}}function g(e,t,i){const s=e.count,n=[];i&&t&&"coded-value"===t.type&&t.codedValues.forEach((e=>{const t=e.code;s.hasOwnProperty(t)||(s[t]={data:t,count:0})}));for(const e in s){const t=s[e];n.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:n}}function x(e,t,i,s){let n=null;switch(t){case"log":0!==e&&(n=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(s)&&0!==s&&(n=e/s*100);break;case"field":Number.isFinite(i)&&0!==i&&(n=e/i);break;case"natural-log":e>0&&(n=Math.log(e));break;case"square-root":e>0&&(n=e**.5)}return n}function _(e,t){const i=function(e){const t=e.field,i=e.classificationMethod||"equal-interval",n=e.normalizationType,r=e.normalizationField,a=new s.Z;return a.classificationField=t,a.breakCount=e.breakCount,a.classificationMethod=i,a.standardDeviationInterval="standard-deviation"===i?e.standardDeviationInterval||1:void 0,a.normalizationType=n,a.normalizationField="field"===n?r:void 0,a}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,breakCount:t.numClasses||5});return e=function(e,t,i){return t=null==t?-1/0:t,i=null==i?1/0:i,e.filter((e=>Number.isFinite(e)&&e>=t&&e<=i))}(e,t.minValue,t.maxValue),r({definition:i,values:e,normalizationTotal:t.normalizationTotal})}function I(e,t){let i=e.classBreaks;const s=i.length,n=i[0].minValue,r=i[s-1].maxValue,a="standard-deviation"===t,o=h;return i=i.map((e=>{const t=e.label,i={minValue:e.minValue,maxValue:e.maxValue,label:t};if(a&&t){const e=t.match(o).map((e=>+e.trim()));2===e.length?(i.minStdDev=e[0],i.maxStdDev=e[1],e[0]<0&&e[1]>0&&(i.hasAvg=!0)):1===e.length&&(t.includes("<")?(i.minStdDev=null,i.maxStdDev=e[0]):t.includes(">")&&(i.minStdDev=e[0],i.maxStdDev=null))}return i})),{minValue:n,maxValue:r,classBreakInfos:i,normalizationTotal:e.normalizationTotal}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6710],{26710:(n,r,t)=>{t.r(r),t.d(r,{i:()=>c});var e,o,i,a={exports:{}};e=a,o="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,i=function(n){var r,t,e=void 0!==(n=n||{})?n:{};e.ready=new Promise((function(n,e){r=n,t=e}));var i,a,u,c={};for(i in e)e.hasOwnProperty(i)&&(c[i]=e[i]);a="object"==typeof window,u="function"==typeof importScripts,"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var f,s="";(a||u)&&(u?s=self.location.href:"undefined"!=typeof document&&document.currentScript&&(s=document.currentScript.src),o&&(s=o),s=0!==s.indexOf("blob:")?s.substr(0,s.lastIndexOf("/")+1):"",u&&(f=function(n){var r=new XMLHttpRequest;return r.open("GET",n,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var l,p,d=e.print||console.log.bind(console),v=e.printErr||console.warn.bind(console);for(i in c)c.hasOwnProperty(i)&&(e[i]=c[i]);c=null,e.arguments,e.thisProgram,e.quit,e.wasmBinary&&(l=e.wasmBinary),e.noExitRuntime,"object"!=typeof WebAssembly&&G("no native wasm support detected");var h=!1,m="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function y(n,r,t){for(var e=r+t,o=r;n[o]&&!(o>=e);)++o;if(o-r>16&&n.subarray&&m)return m.decode(n.subarray(r,o));for(var i="";r<o;){var a=n[r++];if(128&a){var u=63&n[r++];if(192!=(224&a)){var c=63&n[r++];if((a=224==(240&a)?(15&a)<<12|u<<6|c:(7&a)<<18|u<<12|c<<6|63&n[r++])<65536)i+=String.fromCharCode(a);else{var f=a-65536;i+=String.fromCharCode(55296|f>>10,56320|1023&f)}}else i+=String.fromCharCode((31&a)<<6|u)}else i+=String.fromCharCode(a)}return i}function _(n,r){return n?y(b,n,r):""}var g,w,b,A,T,C,k,P,E,R,W="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function S(n,r){for(var t=n,e=t>>1,o=e+r/2;!(e>=o)&&T[e];)++e;if((t=e<<1)-n>32&&W)return W.decode(b.subarray(n,t));for(var i="",a=0;!(a>=r/2);++a){var u=A[n+2*a>>1];if(0==u)break;i+=String.fromCharCode(u)}return i}function F(n,r,t){if(void 0===t&&(t=2147483647),t<2)return 0;for(var e=r,o=(t-=2)<2*n.length?t/2:n.length,i=0;i<o;++i){var a=n.charCodeAt(i);A[r>>1]=a,r+=2}return A[r>>1]=0,r-e}function j(n){return 2*n.length}function x(n,r){for(var t=0,e="";!(t>=r/4);){var o=C[n+4*t>>2];if(0==o)break;if(++t,o>=65536){var i=o-65536;e+=String.fromCharCode(55296|i>>10,56320|1023&i)}else e+=String.fromCharCode(o)}return e}function I(n,r,t){if(void 0===t&&(t=2147483647),t<4)return 0;for(var e=r,o=e+t-4,i=0;i<n.length;++i){var a=n.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&n.charCodeAt(++i)),C[r>>2]=a,(r+=4)+4>o)break}return C[r>>2]=0,r-e}function U(n){for(var r=0,t=0;t<n.length;++t){var e=n.charCodeAt(t);e>=55296&&e<=57343&&++t,r+=4}return r}function O(n,r){return n%r>0&&(n+=r-n%r),n}function D(n){g=n,e.HEAP8=w=new Int8Array(n),e.HEAP16=A=new Int16Array(n),e.HEAP32=C=new Int32Array(n),e.HEAPU8=b=new Uint8Array(n),e.HEAPU16=T=new Uint16Array(n),e.HEAPU32=k=new Uint32Array(n),e.HEAPF32=P=new Float32Array(n),e.HEAPF64=E=new Float64Array(n)}e.INITIAL_MEMORY;var z=[],M=[],V=[];function H(n){z.unshift(n)}function B(n){V.unshift(n)}var N,q=0,L=null;function G(n){e.onAbort&&e.onAbort(n),v(n+=""),h=!0,n="abort("+n+"). Build with -s ASSERTIONS=1 for more info.";var r=new WebAssembly.RuntimeError(n);throw t(r),r}function J(n){return n.startsWith("data:application/octet-stream;base64,")}function X(n){try{if(n==N&&l)return new Uint8Array(l);if(f)return f(n);throw"both async and sync fetching of the wasm failed"}catch(n){G(n)}}function Y(n){for(;n.length>0;){var r=n.shift();if("function"!=typeof r){var t=r.func;"number"==typeof t?void 0===r.arg?R.get(t)():R.get(t)(r.arg):t(void 0===r.arg?null:r.arg)}else r(e)}}e.preloadedImages={},e.preloadedAudios={},J(N="i3s.wasm")||(N=function(n){return e.locateFile?e.locateFile(n,s):s+n}(N));function Z(n){this.excPtr=n,this.ptr=n-16,this.set_type=function(n){C[this.ptr+8>>2]=n},this.get_type=function(){return C[this.ptr+8>>2]},this.set_destructor=function(n){C[this.ptr+0>>2]=n},this.get_destructor=function(){return C[this.ptr+0>>2]},this.set_refcount=function(n){C[this.ptr+4>>2]=n},this.set_caught=function(n){n=n?1:0,w[this.ptr+12>>0]=n},this.get_caught=function(){return 0!=w[this.ptr+12>>0]},this.set_rethrown=function(n){n=n?1:0,w[this.ptr+13>>0]=n},this.get_rethrown=function(){return 0!=w[this.ptr+13>>0]},this.init=function(n,r){this.set_type(n),this.set_destructor(r),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var n=C[this.ptr+4>>2];C[this.ptr+4>>2]=n+1},this.release_ref=function(){var n=C[this.ptr+4>>2];return C[this.ptr+4>>2]=n-1,1===n}}var $={};function K(n){for(;n.length;){var r=n.pop();n.pop()(r)}}function Q(n){return this.fromWireType(k[n>>2])}var nn={},rn={},tn={};function en(n,r){var t=function(n,r){return n=function(n){if(void 0===n)return"_unknown";var r=(n=n.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=48&&r<=57?"_"+n:n}(n),function(){return r.apply(this,arguments)}}(r,(function(n){this.name=r,this.message=n;var t=new Error(n).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},t}var on=void 0;function an(n){throw new on(n)}function un(n,r,t){function e(r){var e=t(r);e.length!==n.length&&an("Mismatched type converter count");for(var o=0;o<n.length;++o)dn(n[o],e[o])}n.forEach((function(n){tn[n]=r}));var o=new Array(r.length),i=[],a=0;r.forEach((function(n,r){rn.hasOwnProperty(n)?o[r]=rn[n]:(i.push(n),nn.hasOwnProperty(n)||(nn[n]=[]),nn[n].push((function(){o[r]=rn[n],++a===i.length&&e(o)})))})),0===i.length&&e(o)}function cn(n){switch(n){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+n)}}var fn=void 0;function sn(n){for(var r="",t=n;b[t];)r+=fn[b[t++]];return r}var ln=void 0;function pn(n){throw new ln(n)}function dn(n,r,t){if(t=t||{},!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");var e=r.name;if(n||pn('type "'+e+'" must have a positive integer typeid pointer'),rn.hasOwnProperty(n)){if(t.ignoreDuplicateRegistrations)return;pn("Cannot register type '"+e+"' twice")}if(rn[n]=r,delete tn[n],nn.hasOwnProperty(n)){var o=nn[n];delete nn[n],o.forEach((function(n){n()}))}}var vn=[],hn=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function mn(n){n>4&&0==--hn[n].refcount&&(hn[n]=void 0,vn.push(n))}function yn(n){switch(n){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var r=vn.length?vn.pop():hn.length;return hn[r]={refcount:1,value:n},r}}function _n(n){if(null===n)return"null";var r=typeof n;return"object"===r||"array"===r||"function"===r?n.toString():""+n}function gn(n,r){switch(r){case 2:return function(n){return this.fromWireType(P[n>>2])};case 3:return function(n){return this.fromWireType(E[n>>3])};default:throw new TypeError("Unknown float type: "+n)}}function wn(n,r,t){e.hasOwnProperty(n)?((void 0===t||void 0!==e[n].overloadTable&&void 0!==e[n].overloadTable[t])&&pn("Cannot register public name '"+n+"' twice"),function(n,r,t){if(void 0===n[r].overloadTable){var e=n[r];n[r]=function(){return n[r].overloadTable.hasOwnProperty(arguments.length)||pn("Function '"+t+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+n[r].overloadTable+")!"),n[r].overloadTable[arguments.length].apply(this,arguments)},n[r].overloadTable=[],n[r].overloadTable[e.argCount]=e}}(e,n,n),e.hasOwnProperty(t)&&pn("Cannot register multiple overloads of a function with the same number of arguments ("+t+")!"),e[n].overloadTable[t]=r):(e[n]=r,void 0!==t&&(e[n].numArguments=t))}function bn(n,r,t){e.hasOwnProperty(n)||an("Replacing nonexistant public symbol"),void 0!==e[n].overloadTable&&void 0!==t?e[n].overloadTable[t]=r:(e[n]=r,e[n].argCount=t)}function An(n,r,t){return n.includes("j")?function(n,r,t){var o=e["dynCall_"+n];return t&&t.length?o.apply(null,[r].concat(t)):o.call(null,r)}(n,r,t):R.get(r).apply(null,t)}function Tn(n,r){var t=(n=sn(n)).includes("j")?function(n,r){var t=[];return function(){t.length=arguments.length;for(var e=0;e<arguments.length;e++)t[e]=arguments[e];return An(n,r,t)}}(n,r):R.get(r);return"function"!=typeof t&&pn("unknown function pointer with signature "+n+": "+r),t}var Cn=void 0;function kn(n){var r=xn(n),t=sn(r);return jn(r),t}function Pn(n,r,t){switch(r){case 0:return t?function(n){return w[n]}:function(n){return b[n]};case 1:return t?function(n){return A[n>>1]}:function(n){return T[n>>1]};case 2:return t?function(n){return C[n>>2]}:function(n){return k[n>>2]};default:throw new TypeError("Unknown integer type: "+n)}}var En={};function Rn(n){try{return p.grow(n-g.byteLength+65535>>>16),D(p.buffer),1}catch(n){}}var Wn={mappings:{},buffers:[null,[],[]],printChar:function(n,r){var t=Wn.buffers[n];0===r||10===r?((1===n?d:v)(y(t,0)),t.length=0):t.push(r)},varargs:void 0,get:function(){return Wn.varargs+=4,C[Wn.varargs-4>>2]},getStr:function(n){return _(n)},get64:function(n,r){return n}};on=e.InternalError=en(Error,"InternalError"),function(){for(var n=new Array(256),r=0;r<256;++r)n[r]=String.fromCharCode(r);fn=n}(),ln=e.BindingError=en(Error,"BindingError"),e.count_emval_handles=function(){for(var n=0,r=5;r<hn.length;++r)void 0!==hn[r]&&++n;return n},e.get_first_emval=function(){for(var n=5;n<hn.length;++n)if(void 0!==hn[n])return hn[n];return null},Cn=e.UnboundTypeError=en(Error,"UnboundTypeError");var Sn={__cxa_allocate_exception:function(n){return Fn(n+16)+16},__cxa_atexit:function(n,r){},__cxa_throw:function(n,r,t){throw new Z(n).init(r,t),n},_embind_finalize_value_object:function(n){var r=$[n];delete $[n];var t=r.rawConstructor,e=r.rawDestructor,o=r.fields;un([n],o.map((function(n){return n.getterReturnType})).concat(o.map((function(n){return n.setterArgumentType}))),(function(n){var i={};return o.forEach((function(r,t){var e=r.fieldName,a=n[t],u=r.getter,c=r.getterContext,f=n[t+o.length],s=r.setter,l=r.setterContext;i[e]={read:function(n){return a.fromWireType(u(c,n))},write:function(n,r){var t=[];s(l,n,f.toWireType(t,r)),K(t)}}})),[{name:r.name,fromWireType:function(n){var r={};for(var t in i)r[t]=i[t].read(n);return e(n),r},toWireType:function(n,r){for(var o in i)if(!(o in r))throw new TypeError('Missing field: "'+o+'"');var a=t();for(o in i)i[o].write(a,r[o]);return null!==n&&n.push(e,a),a},argPackAdvance:8,readValueFromPointer:Q,destructorFunction:e}]}))},_embind_register_bigint:function(n,r,t,e,o){},_embind_register_bool:function(n,r,t,e,o){var i=cn(t);dn(n,{name:r=sn(r),fromWireType:function(n){return!!n},toWireType:function(n,r){return r?e:o},argPackAdvance:8,readValueFromPointer:function(n){var e;if(1===t)e=w;else if(2===t)e=A;else{if(4!==t)throw new TypeError("Unknown boolean type size: "+r);e=C}return this.fromWireType(e[n>>i])},destructorFunction:null})},_embind_register_emval:function(n,r){dn(n,{name:r=sn(r),fromWireType:function(n){var r=hn[n].value;return mn(n),r},toWireType:function(n,r){return yn(r)},argPackAdvance:8,readValueFromPointer:Q,destructorFunction:null})},_embind_register_float:function(n,r,t){var e=cn(t);dn(n,{name:r=sn(r),fromWireType:function(n){return n},toWireType:function(n,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+_n(r)+'" to '+this.name);return r},argPackAdvance:8,readValueFromPointer:gn(r,e),destructorFunction:null})},_embind_register_function:function(n,r,t,e,o,i){var a=function(n,r){for(var t=[],e=0;e<n;e++)t.push(C[(r>>2)+e]);return t}(r,t);n=sn(n),o=Tn(e,o),wn(n,(function(){!function(n,r){var t=[],e={};throw r.forEach((function n(r){e[r]||rn[r]||(tn[r]?tn[r].forEach(n):(t.push(r),e[r]=!0))})),new Cn(n+": "+t.map(kn).join([", "]))}("Cannot call "+n+" due to unbound types",a)}),r-1),un([],a,(function(t){var e=[t[0],null].concat(t.slice(1));return bn(n,function(n,r,t,e,o){var i=r.length;i<2&&pn("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==r[1]&&!1,u=!1,c=1;c<r.length;++c)if(null!==r[c]&&void 0===r[c].destructorFunction){u=!0;break}var f="void"!==r[0].name,s=i-2,l=new Array(s),p=[],d=[];return function(){var t;arguments.length!==s&&pn("function "+n+" called with "+arguments.length+" arguments, expected "+s+" args!"),d.length=0,p.length=a?2:1,p[0]=o,a&&(t=r[1].toWireType(d,this),p[1]=t);for(var i=0;i<s;++i)l[i]=r[i+2].toWireType(d,arguments[i]),p.push(l[i]);var c=e.apply(null,p);if(u)K(d);else for(i=a?1:2;i<r.length;i++){var v=1===i?t:l[i-2];null!==r[i].destructorFunction&&r[i].destructorFunction(v)}if(f)return r[0].fromWireType(c)}}(n,e,0,o,i),r-1),[]}))},_embind_register_integer:function(n,r,t,e,o){r=sn(r),-1===o&&(o=4294967295);var i=cn(t),a=function(n){return n};if(0===e){var u=32-8*t;a=function(n){return n<<u>>>u}}var c=r.includes("unsigned");dn(n,{name:r,fromWireType:a,toWireType:function(n,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+_n(t)+'" to '+this.name);if(t<e||t>o)throw new TypeError('Passing a number "'+_n(t)+'" from JS side to C/C++ side to an argument of type "'+r+'", which is outside the valid range ['+e+", "+o+"]!");return c?t>>>0:0|t},argPackAdvance:8,readValueFromPointer:Pn(r,i,0!==e),destructorFunction:null})},_embind_register_memory_view:function(n,r,t){var e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(n){var r=k,t=r[n>>=2],o=r[n+1];return new e(g,o,t)}dn(n,{name:t=sn(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},_embind_register_std_string:function(n,r){var t="std::string"===(r=sn(r));dn(n,{name:r,fromWireType:function(n){var r,e=k[n>>2];if(t)for(var o=n+4,i=0;i<=e;++i){var a=n+4+i;if(i==e||0==b[a]){var u=_(o,a-o);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),o=a+1}}else{var c=new Array(e);for(i=0;i<e;++i)c[i]=String.fromCharCode(b[n+4+i]);r=c.join("")}return jn(n),r},toWireType:function(n,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var e="string"==typeof r;e||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||pn("Cannot pass non-string to std::string");var o=(t&&e?function(){return function(n){for(var r=0,t=0;t<n.length;++t){var e=n.charCodeAt(t);e>=55296&&e<=57343&&(e=65536+((1023&e)<<10)|1023&n.charCodeAt(++t)),e<=127?++r:r+=e<=2047?2:e<=65535?3:4}return r}(r)}:function(){return r.length})(),i=Fn(4+o+1);if(k[i>>2]=o,t&&e)!function(n,r,t){!function(n,r,t,e){if(!(e>0))return 0;for(var o=t+e-1,i=0;i<n.length;++i){var a=n.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&n.charCodeAt(++i)),a<=127){if(t>=o)break;r[t++]=a}else if(a<=2047){if(t+1>=o)break;r[t++]=192|a>>6,r[t++]=128|63&a}else if(a<=65535){if(t+2>=o)break;r[t++]=224|a>>12,r[t++]=128|a>>6&63,r[t++]=128|63&a}else{if(t+3>=o)break;r[t++]=240|a>>18,r[t++]=128|a>>12&63,r[t++]=128|a>>6&63,r[t++]=128|63&a}}r[t]=0}(n,b,r,t)}(r,i+4,o+1);else if(e)for(var a=0;a<o;++a){var u=r.charCodeAt(a);u>255&&(jn(i),pn("String has UTF-16 code units that do not fit in 8 bits")),b[i+4+a]=u}else for(a=0;a<o;++a)b[i+4+a]=r[a];return null!==n&&n.push(jn,i),i},argPackAdvance:8,readValueFromPointer:Q,destructorFunction:function(n){jn(n)}})},_embind_register_std_wstring:function(n,r,t){var e,o,i,a,u;t=sn(t),2===r?(e=S,o=F,a=j,i=function(){return T},u=1):4===r&&(e=x,o=I,a=U,i=function(){return k},u=2),dn(n,{name:t,fromWireType:function(n){for(var t,o=k[n>>2],a=i(),c=n+4,f=0;f<=o;++f){var s=n+4+f*r;if(f==o||0==a[s>>u]){var l=e(c,s-c);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),c=s+r}}return jn(n),t},toWireType:function(n,e){"string"!=typeof e&&pn("Cannot pass non-string to C++ string type "+t);var i=a(e),c=Fn(4+i+r);return k[c>>2]=i>>u,o(e,c+4,i+r),null!==n&&n.push(jn,c),c},argPackAdvance:8,readValueFromPointer:Q,destructorFunction:function(n){jn(n)}})},_embind_register_value_object:function(n,r,t,e,o,i){$[n]={name:sn(r),rawConstructor:Tn(t,e),rawDestructor:Tn(o,i),fields:[]}},_embind_register_value_object_field:function(n,r,t,e,o,i,a,u,c,f){$[n].fields.push({fieldName:sn(r),getterReturnType:t,getter:Tn(e,o),getterContext:i,setterArgumentType:a,setter:Tn(u,c),setterContext:f})},_embind_register_void:function(n,r){dn(n,{isVoid:!0,name:r=sn(r),argPackAdvance:0,fromWireType:function(){},toWireType:function(n,r){}})},_emval_decref:mn,_emval_incref:function(n){n>4&&(hn[n].refcount+=1)},_emval_new_cstring:function(n){return yn(function(n){var r=En[n];return void 0===r?sn(n):r}(n))},_emval_take_value:function(n,r){return yn((n=function(n,r){var t=rn[n];return void 0===t&&pn("_emval_take_value has unknown type "+kn(n)),t}(n)).readValueFromPointer(r))},abort:function(){G()},emscripten_memcpy_big:function(n,r,t){b.copyWithin(n,r,r+t)},emscripten_resize_heap:function(n){var r=b.length,t=2147483648;if((n>>>=0)>t)return!1;for(var e=1;e<=4;e*=2){var o=r*(1+.2/e);if(o=Math.min(o,n+100663296),Rn(Math.min(t,O(Math.max(n,o),65536))))return!0}return!1},fd_close:function(n){return 0},fd_seek:function(n,r,t,e,o){},fd_write:function(n,r,t,e){for(var o=0,i=0;i<t;i++){for(var a=C[r+8*i>>2],u=C[r+(8*i+4)>>2],c=0;c<u;c++)Wn.printChar(n,b[a+c]);o+=u}return C[e>>2]=o,0},raise:function(n){return C[Un()>>2]=52,-1},setTempRet0:function(n){}};(function(){var n={env:Sn,wasi_snapshot_preview1:Sn};function r(n,r){var t=n.exports;e.asm=t,D((p=e.asm.memory).buffer),R=e.asm.__indirect_function_table,function(n){M.unshift(n)}(e.asm.__wasm_call_ctors),function(n){if(q--,e.monitorRunDependencies&&e.monitorRunDependencies(q),0==q&&L){var r=L;L=null,r()}}()}function o(n){r(n.instance)}function i(r){return(l||!a&&!u||"function"!=typeof fetch?Promise.resolve().then((function(){return X(N)})):fetch(N,{credentials:"same-origin"}).then((function(n){if(!n.ok)throw"failed to load wasm binary file at '"+N+"'";return n.arrayBuffer()})).catch((function(){return X(N)}))).then((function(r){return WebAssembly.instantiate(r,n)})).then(r,(function(n){v("failed to asynchronously prepare wasm: "+n),G(n)}))}if(q++,e.monitorRunDependencies&&e.monitorRunDependencies(q),e.instantiateWasm)try{return e.instantiateWasm(n,r)}catch(n){return v("Module.instantiateWasm callback failed with error: "+n),!1}(l||"function"!=typeof WebAssembly.instantiateStreaming||J(N)||"function"!=typeof fetch?i(o):fetch(N,{credentials:"same-origin"}).then((function(r){return WebAssembly.instantiateStreaming(r,n).then(o,(function(n){return v("wasm streaming compile failed: "+n),v("falling back to ArrayBuffer instantiation"),i(o)}))}))).catch(t)})(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.__wasm_call_ctors).apply(null,arguments)};var Fn=e._malloc=function(){return(Fn=e._malloc=e.asm.malloc).apply(null,arguments)},jn=e._free=function(){return(jn=e._free=e.asm.free).apply(null,arguments)},xn=e.___getTypeName=function(){return(xn=e.___getTypeName=e.asm.__getTypeName).apply(null,arguments)};e.___embind_register_native_and_builtin_types=function(){return(e.___embind_register_native_and_builtin_types=e.asm.__embind_register_native_and_builtin_types).apply(null,arguments)};var In,Un=e.___errno_location=function(){return(Un=e.___errno_location=e.asm.__errno_location).apply(null,arguments)};function On(n){function t(){In||(In=!0,e.calledRun=!0,h||(Y(M),r(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)B(e.postRun.shift());Y(V)}()))}q>0||(function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)H(e.preRun.shift());Y(z)}(),q>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),t()}),1)):t()))}if(e.stackSave=function(){return(e.stackSave=e.asm.stackSave).apply(null,arguments)},e.stackRestore=function(){return(e.stackRestore=e.asm.stackRestore).apply(null,arguments)},e.stackAlloc=function(){return(e.stackAlloc=e.asm.stackAlloc).apply(null,arguments)},e.dynCall_vij=function(){return(e.dynCall_vij=e.asm.dynCall_vij).apply(null,arguments)},e.dynCall_jiji=function(){return(e.dynCall_jiji=e.asm.dynCall_jiji).apply(null,arguments)},L=function n(){In||On(),In||(L=n)},e.run=On,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return On(),n.ready},e.exports=i;const u=a.exports,c=Object.freeze(function(n,r){for(var t=0;t<r.length;t++){const e=r[t];for(const r in e)if("default"!==r&&!(r in n)){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return Object.freeze(n)}({__proto__:null,default:u},[a.exports]))}}]);
|