@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7106],{84552:(e,t,r)=>{r.d(t,{Z:()=>p});var i,n=r(43697),s=r(10736),o=r(35463),a=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),u=r(78981);let c=i=class extends s.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,o.rJ)(this.value,this.unit,"milliseconds")}clone(){return new i({value:this.value,unit:this.unit})}};(0,n._)([(0,a.Cb)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),(0,n._)([(0,a.Cb)({type:u.v.apiValues,json:{type:u.v.jsonValues,read:u.v.read,write:u.v.write},nonNullable:!0})],c.prototype,"unit",void 0),c=i=(0,n._)([(0,l.j)("esri.TimeInterval")],c);const p=c},99880:(e,t,r)=>{r.d(t,{V:()=>l});var i=r(68773),n=(r(3172),r(20102)),s=r(92604),o=r(17452);const a=s.Z.getLogger("esri.assets");function l(e){if(!i.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.Z("assets:path-not-set","config.assetsPath is not set");return(0,o.v_)(i.Z.assetsPath,e)}},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var i=r(75215),n=r(6570),s=r(9361),o=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:n.Z,multipoint:o.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,i.N7)(c)},33955:(e,t,r)=>{r.d(t,{im:()=>y,q9:()=>v,Ji:()=>f,YX:()=>c,aW:()=>p,wp:()=>d,oU:()=>h,l9:()=>m});var i=r(70586),n=r(6570),s=r(9361),o=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 p(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function m(e){return void 0!==e.paths}function h(e){return void 0!==e.rings}function y(e){return(0,i.Wi)(e)?null:e instanceof s.Z?e:d(e)?a.Z.fromJSON(e):m(e)?u.Z.fromJSON(e):h(e)?l.Z.fromJSON(e):p(e)?o.Z.fromJSON(e):c(e)?n.Z.fromJSON(e):null}function f(e){return e?d(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":h(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":p(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:n.Z,esriGeometryMultipoint:o.Z};function v(e){return e&&g[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>n,P$:()=>s});var i=r(35454);const n=(0,i.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,i.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:()=>o});var i=r(80442),n=r(17452);const s="4.22",o={async request(e,t){var i;const{default:s}=await r.e(3172).then(r.bind(r,3172)),o=e.options,a=o.responseType;o.signal=null==t?void 0:t.signal,o.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(i=(0,n.oh)(e.url))&&i.after?a:"array-buffer";const l=await s(e.url,o),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,n.ZN)(e,"token",t.token):e}(0,i.Z)("host-webworker")||((0,i.Z)("edge")||(0,i.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},23232:(e,t,r)=>{r.r(t),r.d(t,{default:()=>lt});var i,n=r(43697),s=r(51773),o=r(70586),a=r(16453),l=r(95330),u=r(5600),c=(r(67676),r(80442),r(75215)),p=r(52011),d=r(30556),m=r(29600),h=r(66577),y=r(38171),f=r(30030),g=r(3172),v=r(20102),b=r(35454),w=r(22974),_=r(92604),R=r(17452),I=r(44422),x=r(71715),S=r(21506),C=r(35956),T=r(10736),N=r(36030);const F=new Set(["raster","raster2","dem","fillraster"]),O=new Set(["rasters"]),P=e=>e&&e.rasterFunction?J.fromJSON(e):e,j=e=>e&&e instanceof J?e.toJSON():e,M=e=>(null==e?void 0:e.functionName)&&!e.declaredClass,D=e=>M(e)?new J(e):e;var Z,A;(A=Z||(Z={}))[A.MOSAIC=0]="MOSAIC",A[A.GROUP=1]="GROUP",A[A.ITEM=2]="ITEM";let J=i=class extends T.wq{constructor(e){super(e),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.description=null,this.functionDefinition=null,this.thumbnail=null}set functionArguments(e){if(e){const t=Object.keys(e);if(t.some((t=>F.has(t.toLowerCase())&&M(e[t])))||t.some((t=>O.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some((e=>M(e)))))){e=(0,w.d9)(e);for(const r of t)F.has(r.toLowerCase())?e[r]=D(e[r]):O.has(r.toLowerCase())&&Array.isArray(e[r])&&(e[r]=e[r].map((e=>D(e))))}}this._set("functionArguments",e)}readFunctionArguments(e,t){return(e=>{if(null==e)return null;e=(0,w.d9)(e);const t={};for(const r of Object.keys(e))F.has(r.toLowerCase())?t[r]=P(e[r]):O.has(r.toLowerCase())&&Array.isArray(e[r])?t[r]=e[r].map(P):t[r]=e[r];return t})(t.arguments||t.rasterFunctionArguments)}writeFunctionArguments(e,t,r){const i={};for(const t of Object.keys(e))F.has(t.toLowerCase())?i[t]=j(e[t]):O.has(t.toLowerCase())&&Array.isArray(e[t])?i[t]=e[t].map(j):i[t]=j(e[t]);this.functionDefinition?t.arguments=i:t[r]=i}readFunctionName(e,t){const r=t.rasterFunctionInfos;return t.name||(r&&r.length&&"None"!==r[0].name?r[0].name:t.rasterFunction)}writeFunctionName(e,t,r){this.functionDefinition?t.name=e:t[r]=e}readFunctionType(e){return Z[e]}writeFunctionType(e,t,r){t[r]=Z[e]}clone(){return new i({functionName:this.functionName,functionArguments:(0,w.d9)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,description:this.description,functionType:this.functionType,functionDefinition:this.functionDefinition,thumbnail:this.thumbnail})}};(0,n._)([(0,u.Cb)({json:{type:Object,write:{target:"rasterFunctionArguments"}}})],J.prototype,"functionArguments",null),(0,n._)([(0,x.r)("functionArguments",["rasterFunctionArguments","arguments"])],J.prototype,"readFunctionArguments",null),(0,n._)([(0,d.c)("functionArguments")],J.prototype,"writeFunctionArguments",null),(0,n._)([(0,u.Cb)({json:{type:String,write:{target:"rasterFunction"}}})],J.prototype,"functionName",void 0),(0,n._)([(0,x.r)("functionName",["rasterFunction","rasterFunctionInfos","name"])],J.prototype,"readFunctionName",null),(0,n._)([(0,d.c)("functionName")],J.prototype,"writeFunctionName",null),(0,n._)([(0,N.J)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1}),(0,u.Cb)({json:{default:"unknown"}})],J.prototype,"outputPixelType",void 0),(0,n._)([(0,u.Cb)({type:String,json:{read:!0,write:!0}})],J.prototype,"variableName",void 0),(0,n._)([(0,u.Cb)({type:String,json:{read:!0,write:!0,origins:{"web-document":{read:!1,write:!1}}}})],J.prototype,"description",void 0),(0,n._)([(0,u.Cb)({json:{origins:{"web-document":{read:!1,write:!1}}}})],J.prototype,"functionType",void 0),(0,n._)([(0,x.r)("functionType")],J.prototype,"readFunctionType",null),(0,n._)([(0,d.c)("functionType")],J.prototype,"writeFunctionType",null),(0,n._)([(0,u.Cb)({type:Object,json:{read:{source:"function"},write:{target:"function"},origins:{"web-document":{read:!1,write:!1}}}})],J.prototype,"functionDefinition",void 0),(0,n._)([(0,u.Cb)({type:String,json:{read:!0,write:!0,origins:{"web-document":{read:!1,write:!1}}}})],J.prototype,"thumbnail",void 0),J=i=(0,n._)([(0,p.j)("esri.layers.support.RasterFunction")],J);const V=J;var E=r(93010),q=r(75509),z=r(23847);const L={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767]},G={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},U=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function k(e){return U.has(e.type)}function Q(e,t){if(!e||!t)return(0,w.d9)(e||t);const r=(0,w.d9)(e);return"none"!==t.functionName.toLowerCase()&&(B(r.functionArguments).Raster=t),r}function B(e){const t=e.Raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?B(t.functionArguments):e}const H={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function W(e,t){const r=L[String(t).toLowerCase()];return r&&e.push([Math.floor(r[0]-1),0,0,0],[Math.ceil(r[1]+1),0,0,0]),e}function Y(e){if(!e)return;const{fields:t}=e,r=t&&t.find((e=>e&&e.name&&"value"===e.name.toLowerCase()));return r&&r.name}function $(e){const t=[];return e.forEach((e=>{const r=e;if(Array.isArray(r))t.push(r);else{if(null==r.min||null==r.max)return;const e=[r.min,r.max,r.avg||0,r.stddev||0];t.push(e)}})),t}var X,K=r(90578),ee=r(13473);const te=(0,b.wY)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),re=(0,b.wY)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let ie=X=class extends T.wq{constructor(e){super(e),this.ascending=!0,this.itemRenderingRule=null,this.lockRasterIds=null,this.method=null,this.multidimensionalDefinition=null,this.objectIds=null,this.operation=null,this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending}readMethod(e,t){return function(e){let t;switch(e?e.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":t="esriMosaicAttribute";break;case"lockraster":t="esriMosaicLockRaster";break;case"center":t="esriMosaicCenter";break;case"northwest":t="esriMosaicNorthwest";break;case"nadir":t="esriMosaicNadir";break;case"viewpoint":t="esriMosaicViewpoint";break;case"seamline":t="esriMosaicSeamline";break;default:t="esriMosaicNone"}return re.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}readOperation(e,t){const r=t.mosaicOperation,i=t.mosaicOperator&&t.mosaicOperator.toLowerCase(),n=r||(i?te.toJSON(i):null);return te.fromJSON(n)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new X({ascending:this.ascending,itemRenderingRule:(0,w.d9)(this.itemRenderingRule),lockRasterIds:(0,w.d9)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,w.d9)(this.multidimensionalDefinition),objectIds:(0,w.d9)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,w.d9)(this.viewpoint),where:this.where})}};(0,n._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],ie.prototype,"ascending",void 0),(0,n._)([(0,x.r)("ascending",["ascending","sortAscending"])],ie.prototype,"readAscending",null),(0,n._)([(0,u.Cb)({type:V,json:{write:!0}})],ie.prototype,"itemRenderingRule",void 0),(0,n._)([(0,u.Cb)({type:[c.z8],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],ie.prototype,"lockRasterIds",void 0),(0,n._)([(0,u.Cb)({type:String,json:{type:re.jsonValues,write:{target:"mosaicMethod",writer:re.write}}})],ie.prototype,"method",void 0),(0,n._)([(0,x.r)("method",["mosaicMethod","defaultMosaicMethod"])],ie.prototype,"readMethod",null),(0,n._)([(0,u.Cb)({type:[C.Z],json:{write:!0}})],ie.prototype,"multidimensionalDefinition",void 0),(0,n._)([(0,u.Cb)({type:[c.z8],json:{name:"fids",write:!0}})],ie.prototype,"objectIds",void 0),(0,n._)([(0,u.Cb)({json:{type:te.jsonValues,read:{reader:te.read},write:{target:"mosaicOperation",writer:te.write}}})],ie.prototype,"operation",void 0),(0,n._)([(0,x.r)("operation",["mosaicOperation","mosaicOperator"])],ie.prototype,"readOperation",null),(0,n._)([(0,u.Cb)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],ie.prototype,"sortField",void 0),(0,n._)([(0,u.Cb)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],ie.prototype,"sortValue",void 0),(0,n._)([(0,K.p)("sortValue")],ie.prototype,"castSortValue",null),(0,n._)([(0,u.Cb)({type:ee.Z,json:{write:!0}})],ie.prototype,"viewpoint",void 0),(0,n._)([(0,u.Cb)({type:String,json:{write:!0}})],ie.prototype,"where",void 0),ie=X=(0,n._)([(0,p.j)("esri.layers.support.MosaicRule")],ie);const ne=ie;var se=r(69608);let oe=class extends T.wq{constructor(){super(...arguments),this.layer=null,this.adjustAspectRatio=void 0,this.bandIds=void 0,this.compression=void 0,this.compressionQuality=void 0,this.compressionTolerance=.01,this.format=null,this.interpolation=null,this.noData=null,this.noDataInterpretation=void 0,this.pixelType=void 0,this.lercVersion=2}writeAdjustAspectRatio(e,t,r){this.layer.version<10.3||(t[r]=e)}writeCompressionQuality(e,t,r){this.format&&this.format.toLowerCase().indexOf("jpg")>-1&&null!=e&&(t[r]=e)}writeCompressionTolerance(e,t,r){"lerc"===this.format&&null!=e&&(t[r]=e)}writeLercVersion(e,t,r){"lerc"===this.format&&this.layer.version>=10.5&&(t[r]=e)}get version(){const e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("renderingRule"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("renderer"),e.commitProperty("definitionExpression"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){const e=this.layer;let t=e.mosaicRule;const r=e.definitionExpression;return t?r&&r!==t.where&&(t=t.clone(),t.where=r):r&&(t=new ne({where:r})),t}get renderingRule(){const e=this.layer;let t=e.renderingRule;const r=e.pixelFilter,i=!e.format||e.format.indexOf("jpg")>-1||e.format.indexOf("png")>-1;return t=this._addResampleRasterFunction(t),i&&!r&&(t=this.combineRendererWithRenderingRule()),t}combineRendererWithRenderingRule(){var e;const t=this.layer,{rasterInfo:r,renderingRule:i,renderer:n}=t;return n&&k(n)?Q(function(e,t){switch(t=t||{},e.type){case"raster-stretch":return function(e,t){const r=new V;r.functionName="Stretch";const i=H[q.v.toJSON(e.stretchType)],n="u8",s={StretchType:i,Statistics:$(e.statistics),DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(s.Min=e.outputMin),null!=e.outputMax&&(s.Max=e.outputMax),i===H.standardDeviation?(s.NumberOfStandardDeviations=e.numberOfStandardDeviations,r.outputPixelType=n):i===H.percentClip?(s.MinPercent=e.minPercent,s.MaxPercent=e.maxPercent,r.outputPixelType=n):i===H.minMax?r.outputPixelType=n:i===H.sigmoid&&(s.SigmoidStrengthLevel=e.sigmoidStrengthLevel),r.functionArguments=s,r.variableName="Raster",e.colorRamp){const i=e.colorRamp,n=new V,s=(0,E.Uh)(i);return s?n.functionArguments={colorRamp:s}:!t.convertColorRampToColormap||"algorithmic"!==i.type&&"multipart"!==i.type?n.functionArguments={colorRamp:e.colorRamp.toJSON()}:n.functionArguments={Colormap:(0,E.Jw)(i,256)},n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=r,n}return r}(e,t);case"class-breaks":return function(e,t){const r=[],i=[],n=[],s=[],o=1e-6,{pixelType:a,rasterAttributeTable:l}=t,u=l&&l.features,c=Y(l);if(u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach(((t,r)=>{const i=t.symbol.color;let n;i.a&&u.forEach((o=>{n=o.attributes[e.field],(n>=t.minValue&&n<t.maxValue||r===e.classBreakInfos.length-1&&n>=t.minValue)&&s.push([o.attributes[c],i.r,i.g,i.b])}))}));const t=a?W(s,a):s,r=new V;return r.functionName="Colormap",r.functionArguments={},r.functionArguments.Colormap=t,r.variableName="Raster",r}e.classBreakInfos.forEach(((e,t)=>{const a=e.symbol&&e.symbol.color;a.a?(0===t?r.push(e.minValue,e.maxValue+o):r.push(e.minValue+o,e.maxValue+o),i.push(t),s.push([t,a.r,a.g,a.b])):n.push(e.minValue,e.maxValue)}));const p=a?W(s,a):s,d=new V;d.functionName="Remap",d.functionArguments={InputRanges:r,OutputValues:i,NoDataRanges:n},d.variableName="Raster";const m=new V;return m.functionName="Colormap",m.functionArguments={Colormap:p,Raster:d},m}(e,t);case"unique-value":return function(e,t){var r;const i=[],{pixelType:n,rasterAttributeTable:s}=t,o=s&&s.features,a=Y(s),l=null==(r=e.defaultSymbol)?void 0:r.color;let u=!1;if(e.uniqueValueInfos&&(o?o.forEach((t=>{var r;const n=null==(r=e.uniqueValueInfos.find((r=>String(t.attributes[e.field])===String(r.value))))?void 0:r.symbol.color;n?i.push([t.attributes[a],n.r,n.g,n.b]):l&&i.push([t.attributes[a],l.r,l.g,l.b])})):e.uniqueValueInfos.forEach((e=>{var t;if(null==(t=e.symbol.color)||!t.a)return;const r=e.symbol.color;isNaN(+e.value)?u=!0:i.push([+e.value,r.r,r.g,r.b])}))),u)return null;const c=n&&i.length>0?W(i,n):i,p=new V;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=c,p.variableName="Raster",p}(e,t);case"raster-colormap":return function(e,t){const r=e.extractColormap();if(!r||0===r.length)return;const{pixelType:i}=t,n=i?W(r,i):r,s=new V;return s.functionName="Colormap",s.functionArguments={},s.functionArguments.Colormap=n,s}(e,t);case"vector-field":return function(e,t){const r=new V;r.functionName="VectorFieldRenderer";const{dataType:i,bandProperties:n}=t,s="vector-uv"===i;let o,a;n&&2===n.length&&(o=n.map((e=>e.BandName.toLowerCase())).indexOf("magnitude"),a=n.map((e=>e.BandName.toLowerCase())).indexOf("direction")),-1!==o&&null!==o||(o=0,a=1);const l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,c=e.visualVariables?e.visualVariables.filter((e=>"Magnitude"===e.field))[0]:new z.Z,p={magnitudeBandID:o,directionBandID:a,isUVComponents:s,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:G[e.style.toLowerCase().replace("-","_")],minimumMagnitude:c.minDataValue,maximumMagnitude:c.maxDataValue,minimumSymbolSize:c.minSize,maximumSymbolSize:c.maxSize};return r.functionArguments=p,r}(e,t);case"raster-shaded-relief":return function(e,t){if("elevation"!==t.dataType)return new V;const r=new V;r.functionName="Hillshade";const i="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,s={HillshadeType:i,SlopeType:n,ZFactor:e.zFactor};return 0===i&&(s.Azimuth=e.azimuth,s.Altitude=e.altitude),3===n&&(s.PSPower=e.pixelSizePower,s.PSZFactor=e.pixelSizeFactor),r.functionArguments=s,r.variableName="Raster",e.colorRamp&&(r.functionName="ShadedRelief",s.Colormap=(0,E.Jw)(e.colorRamp,256)),r}(e,t)}}(n,{rasterAttributeTable:r.attributeTable,pixelType:r.pixelType,dataType:r.dataType,bandProperties:null==(e=r.keyProperties)?void 0:e.BandProperties,convertColorRampToColormap:t.version<10.6}),i):i}_addResampleRasterFunction(e){var t;if("vector-field"!==(null==(t=this.layer.renderer)?void 0:t.type)||"Resample"===(null==e?void 0:e.functionName))return e;const r="esriImageServiceDataTypeVector-UV"===this.layer.serviceDataType?7:10;return Q(new V({functionName:"Resample",functionArguments:{ResamplingType:r,InputCellSize:{x:this.layer.pixelSizeX,y:this.layer.pixelSizeY}}}),e)}};(0,n._)([(0,u.Cb)()],oe.prototype,"layer",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],oe.prototype,"adjustAspectRatio",void 0),(0,n._)([(0,d.c)("adjustAspectRatio")],oe.prototype,"writeAdjustAspectRatio",null),(0,n._)([(0,u.Cb)({json:{write:!0}}),(0,I.B)("layer.bandIds")],oe.prototype,"bandIds",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],oe.prototype,"compression",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}}),(0,I.B)("layer.compressionQuality")],oe.prototype,"compressionQuality",void 0),(0,n._)([(0,d.c)("compressionQuality")],oe.prototype,"writeCompressionQuality",null),(0,n._)([(0,u.Cb)({json:{write:!0}}),(0,I.B)("layer.compressionTolerance")],oe.prototype,"compressionTolerance",void 0),(0,n._)([(0,d.c)("compressionTolerance")],oe.prototype,"writeCompressionTolerance",null),(0,n._)([(0,u.Cb)({json:{write:!0}}),(0,I.B)("layer.format")],oe.prototype,"format",void 0),(0,n._)([(0,u.Cb)({type:String,json:{read:{reader:se.c.read},write:{writer:se.c.write}}}),(0,I.B)("layer.interpolation")],oe.prototype,"interpolation",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}}),(0,I.B)("layer.noData")],oe.prototype,"noData",void 0),(0,n._)([(0,u.Cb)({type:String,json:{read:{reader:se.k.read},write:{writer:se.k.write}}}),(0,I.B)("layer.noDataInterpretation")],oe.prototype,"noDataInterpretation",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],oe.prototype,"pixelType",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],oe.prototype,"lercVersion",void 0),(0,n._)([(0,d.c)("lercVersion")],oe.prototype,"writeLercVersion",null),(0,n._)([(0,u.Cb)({type:Number})],oe.prototype,"version",null),(0,n._)([(0,u.Cb)({json:{write:!0}})],oe.prototype,"mosaicRule",null),(0,n._)([(0,u.Cb)({json:{write:!0}})],oe.prototype,"renderingRule",null),oe=(0,n._)([(0,p.j)("esri.layers.mixins.ExportImageServiceParameters")],oe);var ae=r(1231),le=r(99514),ue=r(54163),ce=r(48526),pe=r(88281),de=r(75993),me=r(80676),he=r(77982),ye=r(91219),fe=r(38581),ge=r(11282),ve=r(74889);let be=class extends T.wq{constructor(){super(...arguments),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};(0,n._)([(0,u.Cb)({json:{write:!0}})],be.prototype,"catalogItemVisibilities",void 0),(0,n._)([(0,u.Cb)({type:ve.default,json:{write:!0}})],be.prototype,"catalogItems",void 0),(0,n._)([(0,u.Cb)({type:ee.Z,json:{write:!0}})],be.prototype,"location",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],be.prototype,"name",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],be.prototype,"objectId",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],be.prototype,"processedValues",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],be.prototype,"properties",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],be.prototype,"value",void 0),be=(0,n._)([(0,p.j)("esri.rest.support.ImageIdentifyResult")],be);const we=be;let _e=class extends T.wq{constructor(){super(...arguments),this.attributes=null,this.location=null,this.locationId=null,this.rasterId=null,this.resolution=null,this.pixelValue=null}};(0,n._)([(0,u.Cb)({json:{write:!0}})],_e.prototype,"attributes",void 0),(0,n._)([(0,u.Cb)({type:ee.Z,json:{write:!0}})],_e.prototype,"location",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],_e.prototype,"locationId",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],_e.prototype,"rasterId",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],_e.prototype,"resolution",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],_e.prototype,"pixelValue",void 0),_e=(0,n._)([(0,p.j)("esri.rest.support.ImageSample")],_e);const Re=_e;let Ie=class extends T.wq{constructor(){super(...arguments),this.samples=null}};(0,n._)([(0,u.Cb)({type:[Re],json:{write:!0}})],Ie.prototype,"samples",void 0),Ie=(0,n._)([(0,p.j)("esri.rest.support.ImageSampleResult")],Ie);const xe=Ie;function Se(e){const t=null==e?void 0:e.time;if(t&&(null!=t.start||null!=t.end)){const r=[];null!=t.start&&r.push(t.start),null!=t.end&&-1===r.indexOf(t.end)&&r.push(t.end),e.time=r.join(",")}}async function Ce(e,t,r){const i=(0,ge.en)(e),n=t.geometry?[t.geometry]:[],s=await(0,fe.aX)(n),a=t.toJSON();Se(a);const l=s&&s[0];(0,o.pC)(l)&&(a.geometry=l.toJSON());const u=(0,ge.cv)({...i.query,f:"json",...a});return(0,ge.lA)(u,r)}async function Te(e,t,r){const i=(0,ge.en)(e),n=t.geometry?[t.geometry]:[];return(0,fe.aX)(n).then((e=>{const n=t.toJSON(),s=e&&e[0];(0,o.pC)(s)&&(n.geometry=JSON.stringify(s.toJSON()));const a=(0,ge.cv)({...i.query,f:"json",...n}),l=(0,ge.lA)(a,r);return(0,g.default)(i.path+"/identify",l)})).then((e=>we.fromJSON(e.data)))}r(40330),r(98326),r(56545);var Ne,Fe=r(41818),Oe=r(6570),Pe=(r(9361),r(65091)),je=r(17332),Me=(r(58901),r(45091),r(67900),r(8744),r(57444)),De=r(5396),Ze=r(4967),Ae=(r(98732),r(75935),r(28141),r(92835)),Je=r(33955);let Ve=Ne=class extends T.wq{constructor(){super(...arguments),this.geometry=null,this.mosaicRule=null,this.renderingRule=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Je.Ji)(e),t[r]=e.toJSON())}clone(){return new Ne((0,w.d9)({geometry:this.geometry,mosaicRule:this.mosaicRule,renderingRule:this.renderingRule,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,n._)([(0,u.Cb)({types:h.qM,json:{read:Je.im}})],Ve.prototype,"geometry",void 0),(0,n._)([(0,d.c)("geometry")],Ve.prototype,"writeGeometry",null),(0,n._)([(0,u.Cb)({type:ne,json:{write:!0}})],Ve.prototype,"mosaicRule",void 0),(0,n._)([(0,u.Cb)({type:V,json:{write:!0}})],Ve.prototype,"renderingRule",void 0),(0,n._)([(0,u.Cb)({type:ee.Z,json:{write:!0}})],Ve.prototype,"pixelSize",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],Ve.prototype,"raster",void 0),(0,n._)([(0,u.Cb)({type:Ae.Z,json:{read:{source:"time"},write:{target:"time"}}})],Ve.prototype,"timeExtent",void 0),Ve=Ne=(0,n._)([(0,p.j)("esri.rest.support.ImageHistogramParameters")],Ve);const Ee=Ve;var qe;let ze=qe=class extends T.wq{constructor(){super(...arguments),this.geometry=null,this.renderingRules=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Je.Ji)(e),t[r]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t&&t.mosaicMethod&&(t=ne.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON()))}set renderingRule(e){let t=e;t&&t.rasterFunction&&(t=V.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("renderingRule",t)}writeRenderingRule(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON()))}writeRenderingRules(e,t,r){null!=e&&(t[r]=JSON.stringify(e.map((e=>e.toJSON()))))}writePixelSize(e,t,r){null!=e&&(t[r]=JSON.stringify(e))}writeTimeExtent(e,t,r){if(null!=e){const i=(0,o.pC)(e.start)?e.start.getTime():null,n=(0,o.pC)(e.end)?e.end.getTime():null;t[r]=null!=i?null!=n?`${i},${n}`:`${i}`:null}}clone(){return new qe((0,w.d9)({geometry:this.geometry,mosaicRule:this.mosaicRule,renderingRule:this.renderingRule,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,n._)([(0,u.Cb)({json:{write:!0}})],ze.prototype,"geometry",void 0),(0,n._)([(0,d.c)("geometry")],ze.prototype,"writeGeometry",null),(0,n._)([(0,u.Cb)({type:ne,json:{write:!0}})],ze.prototype,"mosaicRule",null),(0,n._)([(0,d.c)("mosaicRule")],ze.prototype,"writeMosaicRule",null),(0,n._)([(0,u.Cb)({type:V,json:{write:!0}})],ze.prototype,"renderingRule",null),(0,n._)([(0,d.c)("renderingRule")],ze.prototype,"writeRenderingRule",null),(0,n._)([(0,u.Cb)({type:[V],json:{write:!0}})],ze.prototype,"renderingRules",void 0),(0,n._)([(0,d.c)("renderingRules")],ze.prototype,"writeRenderingRules",null),(0,n._)([(0,u.Cb)({type:ee.Z,json:{write:!0}})],ze.prototype,"pixelSize",void 0),(0,n._)([(0,d.c)("pixelSize")],ze.prototype,"writePixelSize",null),(0,n._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],ze.prototype,"returnGeometry",void 0),(0,n._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],ze.prototype,"returnCatalogItems",void 0),(0,n._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],ze.prototype,"returnPixelValues",void 0),(0,n._)([(0,u.Cb)({type:Number,json:{write:!0}})],ze.prototype,"maxItemCount",void 0),(0,n._)([(0,u.Cb)({type:Ae.Z,json:{write:{target:"time"}}})],ze.prototype,"timeExtent",void 0),(0,n._)([(0,d.c)("timeExtent")],ze.prototype,"writeTimeExtent",null),(0,n._)([(0,u.Cb)({json:{write:!0}})],ze.prototype,"raster",void 0),(0,n._)([(0,u.Cb)({json:{write:!0}})],ze.prototype,"viewId",void 0),ze=qe=(0,n._)([(0,p.j)("esri.rest.support.ImageIdentifyParameters")],ze);const Le=ze;var Ge;let Ue=Ge=class extends T.wq{constructor(){super(...arguments),this.geometry=null,this.interpolation="nearest",this.mosaicRule=null,this.outFields=null,this.pixelSize=null,this.returnFirstValueOnly=!0,this.sampleDistance=null,this.sampleCount=null,this.sliceId=null,this.timeExtent=null}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Je.Ji)(e),t[r]=e.toJSON())}set locations(e){if(null!=e&&e.length){const t=new Pe.Z({spatialReference:e[0].spatialReference});t.points=e.map((e=>[e.x,e.y])),this._set("locations",e),this.geometry=t}}clone(){return new Ge((0,w.d9)({geometry:this.geometry,locations:this.locations,interpolation:this.interpolation,mosaicRule:this.mosaicRule,outFields:this.outFields,raster:this.raster,returnFirstValueOnly:this.returnFirstValueOnly,sampleDistance:this.sampleDistance,sampleCount:this.sampleCount,sliceId:this.sliceId,pixelSize:this.pixelSize,timeExtent:this.timeExtent}))}};(0,n._)([(0,u.Cb)({types:h.qM,json:{read:Je.im}})],Ue.prototype,"geometry",void 0),(0,n._)([(0,d.c)("geometry")],Ue.prototype,"writeGeometry",null),(0,n._)([(0,u.Cb)({type:String,json:{type:se.c.jsonValues,read:se.c.read,write:se.c.write}})],Ue.prototype,"interpolation",void 0),(0,n._)([(0,u.Cb)({type:ne,json:{write:!0}})],Ue.prototype,"mosaicRule",void 0),(0,n._)([(0,u.Cb)({type:[String],json:{write:!0}})],Ue.prototype,"outFields",void 0),(0,n._)([(0,u.Cb)({type:ee.Z,json:{write:!0}})],Ue.prototype,"pixelSize",void 0),(0,n._)([(0,u.Cb)({type:String,json:{write:!0}})],Ue.prototype,"raster",void 0),(0,n._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],Ue.prototype,"returnFirstValueOnly",void 0),(0,n._)([(0,u.Cb)({type:Number,json:{write:!0}})],Ue.prototype,"sampleDistance",void 0),(0,n._)([(0,u.Cb)({type:Number,json:{write:!0}})],Ue.prototype,"sampleCount",void 0),(0,n._)([(0,u.Cb)({type:Number,json:{write:!0}})],Ue.prototype,"sliceId",void 0),(0,n._)([(0,u.Cb)({type:Ae.Z,json:{read:{source:"time"},write:{target:"time"}}})],Ue.prototype,"timeExtent",void 0),Ue=Ge=(0,n._)([(0,p.j)("esri.rest.support.ImageSampleParameters")],Ue);const ke=Ue;var Qe=r(82971);const Be=_.Z.getLogger("esri.layers.mixins.ArcGISImageService"),He=(0,b.wY)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"}),We=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),Ye=(0,u.Eg)(c.q9,{min:0,max:255}),$e=e=>{let t=class extends e{constructor(){super(...arguments),this._functionRasterInfos={},this._rasterJobHandler={instance:null,refCount:0,connectionPromise:null},this._symbolizer=null,this._defaultServiceMosaicRule=null,this._serviceSourceType=null,this._serviceSupportsMosaicRule=null,this.rasterAttributeTableFieldPrefix="Raster.",this.adjustAspectRatio=null,this.bandCount=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalInfo=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelSizeX=null,this.pixelSizeY=null,this.pixelFilter=null,this.raster=void 0,this.viewId=void 0,this.renderer=null,this.rasterAttributeTable=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=null}initialize(){this._set("exportImageServiceParameters",new oe({layer:this}))}readDefaultServiceMosaicRule(e,t){return this._serviceSupportsMosaicRule?ne.fromJSON(t):null}readServiceSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get rasterFunctionNamesIndex(){const e=new Map;return!this.rasterFunctionInfos||(0,o.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.length<1||(0,o.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.forEach((t=>{e.set(t.name.toLowerCase().replace(/ /gi,"_"),t.name)})),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every((e=>"number"==typeof e)))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,r){null!=e&&"lerc"!==this.format&&(t[r]=e)}writeCompressionTolerance(e,t,r){"lerc"===this.format&&null!=e&&(t[r]=e)}get fieldsIndex(){return this.fields?new le.Z(this.fields):null}set format(e){e&&We.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter?"lerc":"jpgpng"}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t&&t.mosaicMethod&&(t=ne.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){const r=e||t.mosaicRule;return r?ne.fromJSON(r):this._isMosaicRuleSupported(t)?ne.fromJSON(t):null}writeMosaicRule(e,t,r){let i=this.mosaicRule;const n=this.definitionExpression;i?n&&n!==i.where&&(i=i.clone(),i.where=n):n&&(i=new ne({where:n})),this._isValidCustomizedMosaicRule(i)&&(t[r]=i.toJSON())}writeNoData(e,t,r){null!=e&&"number"==typeof e&&(t[r]=Ye(e))}readObjectIdField(e,t){if(!e){const r=t.fields.filter((e=>"esriFieldTypeOID"===e.type||"oid"===e.type));e=r&&r[0]&&r[0].name}return e}get parsedUrl(){return this.url?(0,R.mN)(this.url):null}readRenderer(e,t,r){var i,n;const s=null==t||null==(i=t.layerDefinition)||null==(n=i.drawingInfo)?void 0:n.renderer,o=(0,f.ij)(s,r);return null==o?null:("vector-field"===o.type&&t.symbolTileSize&&!s.symbolTileSize&&(o.symbolTileSize=t.symbolTileSize),k(o)||Be.warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),o)}writeRenderer(e,t,r){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON(),"vector-field"===e.type&&(t.symbolTileSize=e.symbolTileSize)}get rasterFields(){const e=this.rasterAttributeTableFieldPrefix||"Raster.",t=new ae.Z({name:"Raster.ItemPixelValue",alias:"Item Pixel Value",domain:null,editable:!1,length:50,type:"string"}),r=new ae.Z({name:"Raster.ServicePixelValue",alias:"Service Pixel Value",domain:null,editable:!1,length:50,type:"string"}),i=new ae.Z({name:"Raster.ServicePixelValue.Raw",alias:"Raw Service Pixel Value",domain:null,editable:!1,length:50,type:"string"});let n=this.fields?(0,w.d9)(this.fields):[];n.push(r),this.capabilities.operations.supportsQuery&&this.fields&&this.fields.length>0&&n.push(t),this.version>=10.4&&(0,o.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.some((e=>"none"===e.name.toLowerCase()))&&n.push(i),(0,o.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.filter((e=>"none"!==e.name.toLowerCase())).forEach((e=>{n.push(new ae.Z({name:"Raster.ServicePixelValue."+e.name,alias:e.name,domain:null,editable:!1,length:50,type:"string"}))})),null==this.pixelFilter||"esriImageServiceDataTypeVector-UV"!==this.serviceDataType&&"esriImageServiceDataTypeVector-MagDir"!==this.serviceDataType||(n.push(new ae.Z({name:"Raster.Magnitude",alias:"Magnitude",domain:null,editable:!1,type:"double"})),n.push(new ae.Z({name:"Raster.Direction",alias:"Direction",domain:null,editable:!1,type:"double"})));const s=this.rasterInfo.attributeTable&&this.rasterInfo.attributeTable.fields||null;if(s&&s.length>0){const t=s.filter((e=>"esriFieldTypeOID"!==e.type&&"value"!==e.name.toLowerCase())).map((t=>{const r=(0,w.d9)(t);return r.name=e+t.name,r}));n=n.concat(t)}return n}set renderingRule(e){let t=e;t&&t.rasterFunction&&(t=V.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("renderingRule",t)}readRenderingRule(e,t){const r=t.rasterFunctionInfos;return t.renderingRule||r&&r.length&&"None"!==r[0].name?V.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}writeRenderingRule(e,t,r){this._isRFTJson(e)||(t[r]=e.toJSON())}readSpatialReference(e,t){const r=e||t.extent.spatialReference;return r?Qe.Z.fromJSON(r):null}readPixelType(e){return He.fromJSON(e)||e}writePixelType(e,t,r){((0,o.Wi)(this.serviceRasterInfo)||this.pixelType!==this.serviceRasterInfo.pixelType)&&(t[r]=He.toJSON(e))}readVersion(e,t){let r=t.currentVersion;return r||(r=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),r}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let r=e;if(!this._isPicture()&&this.renderer&&this._symbolizer&&!this.pixelFilter){const i=JSON.stringify(this._cachedRendererJson)!==JSON.stringify(this.renderer.toJSON()),n=this._rasterJobHandler.instance,{bandIds:s}=this;if(n){i&&(this._symbolizer.bind(),await n.updateSymbolizer(this._symbolizer,t),this._cachedRendererJson=this.renderer.toJSON());const o=await n.symbolize({bandIds:s,...e},t);r={extent:e.extent,pixelBlock:o}}else r={extent:e.extent,pixelBlock:this._symbolizer.symbolize({bandIds:s,...e})}}return r}destroy(){this._shutdownJobHandler()}increaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()}async computeHistograms(e,t){if(await this._fetchCapabilities(null==t?void 0:t.signal),!this.capabilities.operations.supportsComputeHistograms)throw new v.Z("imagery-layer:compute-histograms","this operation is not supported on the input image service");e=(0,c.TJ)(Ee,e).clone();const{raster:r,mosaicRule:i,renderingRule:n}=this;return n&&null==e.renderingRule&&(e.renderingRule=n),i&&null==e.mosaicRule&&(e.mosaicRule=i),r&&null==e.raster&&(e.raster=r),async function(e,t,r){const i=await Ce(e,t,r),n=(0,ge.en)(e),{data:s}=await(0,g.default)(`${n.path}/computeHistograms`,i);return{histograms:s.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(await this._fetchCapabilities(null==t?void 0:t.signal),!this.capabilities.operations.supportsComputeStatisticsHistograms)throw new v.Z("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");e=(0,c.TJ)(Ee,e).clone();const{raster:r,mosaicRule:i,renderingRule:n}=this;return n&&null==e.renderingRule&&(e.renderingRule=n),i&&null==e.mosaicRule&&(e.mosaicRule=i),r&&null==e.raster&&(e.raster=r),async function(e,t,r){const i=await Ce(e,t,r),n=(0,ge.en)(e),{data:s}=await(0,g.default)(`${n.path}/computeStatisticsHistograms`,i),{statistics:o}=s;return null!=o&&o.length&&o.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation})),{statistics:o,histograms:s.histograms}}(this.url,e,this._getRequestOptions(t))}getField(e){const{fieldsIndex:t}=this;return(0,o.pC)(t)?t.get(e):void 0}getFieldDomain(e,t){const r=this.getField(e);return r?r.domain:null}fetchImage(e,t,r,i={}){if(null==e||null==t||null==r)return Promise.reject(new v.Z("imagery-layer:fetch-image","Insufficient parameters for requesting an image. A valid extent, width and height values are required."));const n=this.renderer||this._symbolizer?this.generateRasterInfo(this.renderingRule,{signal:i.signal}):null;return(0,l.gx)(n).then((n=>{n&&(this.rasterInfo=n);const s={imageServiceParameters:this.getExportImageServiceParameters(e,t,r,i.timeExtent),imageProps:{extent:e,width:t,height:r,format:this.format},requestAsImageElement:i.requestAsImageElement&&!this.pixelFilter||!1,signal:i.signal};return this._requestArrayBuffer(s)}))}fetchKeyProperties(e){const t=e&&e.renderingRule&&e.renderingRule.toJSON();return(0,g.default)(this.parsedUrl.path+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3&&t?JSON.stringify(t):null})}).then((e=>e.data))}fetchRasterAttributeTable(e){const t=e&&e.renderingRule&&e.renderingRule.toJSON();return this.version<10.1?Promise.reject(new v.Z("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,g.default)(this.parsedUrl.path+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3&&t?JSON.stringify(t):null})}).then((e=>ve.default.fromJSON(e.data)))}async getCatalogItemRasterInfo(e,t){const r=(0,g.default)(this.parsedUrl.path+"/"+e+"/info",{query:this._getQueryParams(),...t}).then((e=>e.data)),i=(0,g.default)(this.parsedUrl.path+"/"+e+"/info/keyProperties",{query:this._getQueryParams(),...t}).then((e=>e.data)).catch((()=>{})),n=await Promise.all([r,i]);if(!n[0])return;const s=Oe.Z.fromJSON(n[0].extent),o=n[0].statistics?n[0].statistics.map((e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]}))):null;return new ce.Z({bandCount:n[0].bandCount,extent:s,spatialReference:s.sr,pixelSize:new ee.Z({x:n[0].pixelSizeX,y:n[0].pixelSizeY,spatialReference:s.sr}),pixelType:n[0].pixelType.toLowerCase(),statistics:o,histograms:n[0].histograms,keyProperties:n[1]||{}})}async getCatalogItemICSInfo(e,t){const{data:r}=await(0,g.default)(this.parsedUrl.path+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),i=r&&r.ics;if(!i)return;let n=null;try{n=(await(0,g.default)(this.parsedUrl.path+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!n||!n.spatialReference)return{ics:i,icsToPixelTransform:null,icsExtent:null,northDirection:null};const s=this.version>=10.7?(0,g.default)(this.parsedUrl.path+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then((e=>e.data)).catch((()=>({}))):{},o=n.spatialReference,a={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),inSR:o.wkid||JSON.stringify(o),outSR:"0:"+e},l=(0,g.default)(this.parsedUrl.path+"/project",{query:this._getQueryParams(a),...t}).then((e=>e.data)).catch((()=>({}))),u=(n.xmin+n.xmax)/2,c=(n.ymax-n.ymin)/6,p=n.ymin+c,d=[];for(let e=0;e<5;e++)d.push({x:u,y:p+c*e});const m={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:o.wkid||JSON.stringify(o),outSR:"0:"+e},h=(0,g.default)(this.parsedUrl.path+"/project",{query:this._getQueryParams(m),...t}).then((e=>e.data)).catch((()=>({}))),y=await Promise.all([s,l,h]);let f=y[0].ipxf;if(null==f){var v,b,w;const e=null==(v=i.geodataXform)?void 0:v.xf_0;"topup"===(null==e||null==(b=e.name)?void 0:b.toLowerCase())&&6===(null==e||null==(w=e.coefficients)?void 0:w.length)&&(f={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}const _=Oe.Z.fromJSON(y[1]&&y[1].geometries&&y[1].geometries[0]);_&&(_.spatialReference=new Qe.Z({wkid:0,imageCoordinateSystem:i}));const R=y[2].geometries?y[2].geometries.filter((e=>null!=e&&null!=e.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y)):[],I=R.length;if(I<3)return{ics:i,icsToPixelTransform:f,icsExtent:_,northDirection:null};let x=0,S=0,C=0,T=0;for(let e=0;e<I;e++)x+=R[e].x,S+=R[e].y,C+=R[e].x*R[e].x,T+=R[e].x*R[e].y;const N=(I*T-x*S)/(I*C-x*x);let F=0;const O=R[4].x>R[0].x,P=R[4].y>R[0].y;return N===1/0?F=P?90:270:0===N?F=O?0:180:N>0?F=O?180*Math.atan(N)/Math.PI:180*Math.atan(N)/Math.PI+180:N<0&&(F=P?180+180*Math.atan(N)/Math.PI:360+180*Math.atan(N)/Math.PI),{ics:i,icsToPixelTransform:f,icsExtent:_,northDirection:F}}async generateRasterInfo(e,t){if((!e||"none"===e.functionName.toLowerCase()||this._isVectorFieldResampleFunction(e))&&(0,o.pC)(this.serviceRasterInfo))return this.serviceRasterInfo;const r=function(e){if(!e)return null;const t=JSON.stringify(e).match(/"rasterFunction":"(.*?")/gi),r=null==t?void 0:t.map((e=>e.replace('"rasterFunction":"',"").replace('"',"")));return r?r.join("/"):null}(e);if(this._functionRasterInfos[r])return this._functionRasterInfos[r];const i=this._generateRasterInfo(e,t);this._functionRasterInfos[r]=i;try{return await i}catch{return this._functionRasterInfos[r]=null,null}}getExportImageServiceParameters(e,t,r,i){const n=(e=e.clone().shiftCentralMeridian()).spatialReference;let s;if(n.imageCoordinateSystem){const{id:e,referenceServiceName:t}=n.imageCoordinateSystem;s=null!=e?t?this.parsedUrl.path.toLowerCase().indexOf("/"+t.toLowerCase()+"/")>-1?"0:"+e:JSON.stringify({icsid:e,icsns:t}):"0:"+e:JSON.stringify({ics:n.imageCoordinateSystem})}else s=n.wkid||JSON.stringify(n.toJSON());(0,o.pC)(this.serviceRasterInfo)&&this.pixelType!==this.serviceRasterInfo.pixelType&&(this.exportImageServiceParameters.pixelType=this.pixelType);const a=this.exportImageServiceParameters.toJSON(),{bandIds:l,noData:u}=a;let{renderingRule:c}=a;const p=this.renderingRule&&"none"!==this.renderingRule.functionName.toLowerCase(),d=!this.renderer||"raster-stretch"===this.renderer.type;if(null!=l&&l.length&&p&&d){const e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:l}};if("Stretch"===c.rasterFunction)e.rasterFunctionArguments.Raster=c.rasterFunctionArguments.Raster,c.rasterFunctionArguments.Raster=e;else if("Colormap"===c.rasterFunction){const t=c.rasterFunctionArguments.Raster;"Stretch"===(null==t?void 0:t.rasterFunction)?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,c.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=c,c=e;a.bandIds=void 0}else a.bandIds=null==l?void 0:l.join(",");u instanceof Array&&u.length>0&&(a.noData=u.join(","));const m=this._serviceSupportsMosaicRule?this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,i):null;a.mosaicRule=m&&JSON.stringify(m),a.renderingRule=c&&JSON.stringify(c);const h={};if(i){const{start:e,end:t}=i.toJSON();e&&t&&e===t?h.time=""+e:null==e&&null==t||(h.time=`${null==e?"null":e},${null==t?"null":t}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:s,imageSR:s,size:t+","+r,...a,...h}}async getSamples(e,t){if(await this._fetchCapabilities(null==t?void 0:t.signal),!this.capabilities.operations.supportsGetSamples)throw new v.Z("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,c.TJ)(ke,e).clone();const{raster:r}=this;return r&&null==e.raster&&(e.raster=r),async function(e,t,r){var i,n;const s=t.toJSON();Se(s),null!=(i=s.outFields)&&i.length&&(s.outFields=s.outFields.join(","));const a=await(0,fe.aX)(t.geometry),l=null==a?void 0:a[0];(0,o.pC)(l)&&(s.geometry=l.toJSON());const u=(0,ge.en)(e),c=(0,ge.cv)({...u.query,f:"json",...s}),p=(0,ge.lA)(c,r),{data:d}=await(0,g.default)(`${u.path}/getSamples`,p),m=null==d||null==(n=d.samples)?void 0:n.map((e=>{const t="NaN"===e.value||""===e.value?null:e.value.split(" ").map((e=>Number(e)));return{...e,pixelValue:t}}));return xe.fromJSON({samples:m})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(await this._fetchCapabilities(null==t?void 0:t.signal),!this.capabilities.operations.supportsIdentify)throw new v.Z("imagery-layer:query-rasters","query operation is not supported on the input image service");e=(0,c.TJ)(Le,e).clone();const{raster:r,mosaicRule:i,renderingRule:n}=this;if(n&&null==e.renderingRule&&(e.renderingRule=n),i&&null==e.mosaicRule){const t=this._combineMosaicRuleWithTimeExtent(i,e.timeExtent);e.mosaicRule=(0,o.Wg)(t)}return r&&null==e.raster&&(e.raster=r),Te(this.url,e,this._getRequestOptions(t))}createQuery(){const e=new Me.Z;return e.outFields=["*"],e.returnGeometry=!0,e.where=this.definitionExpression||"1=1",e}async queryRasters(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Ze.e)(this.url,e,t)}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,De.G)(this.url,e,t)}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Fe.P)(this.url,e,t)}queryVisibleRasters(e,t){if(!e)return Promise.reject(new v.Z("imagery-layer: query-visible-rasters","missing query parameter"));const{pixelSize:r,returnDomainValues:i,returnTopmostRaster:n,showNoDataRecords:s}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1};let a=!1,l=null,u=null;const c="raster.servicepixelvalue",p=this.rasterFunctionNamesIndex;if((0,o.pC)(e.outFields)&&(a=e.outFields.some((e=>-1===e.toLowerCase().indexOf(c))),this.version>=10.4)){const t=e.outFields.filter((e=>e.toLowerCase().indexOf(c)>-1&&e.length>c.length)).map((e=>{const t=e.slice(c.length+1);return[this._updateRenderingRulesFunctionName(t,p),t]}));l=t.map((e=>new V({functionName:e[0]}))),u=t.map((e=>e[1])),0===l.length?this.renderingRule?(l.push(this.renderingRule),u.push(this.renderingRule.functionName)):l=null:this.renderingRule&&!l.some((e=>e.functionName===this.renderingRule.functionName))&&(l.push(this.renderingRule),u.push(this.renderingRule.functionName))}const d=(0,o.Wi)(e.outSpatialReference)||e.outSpatialReference.equals(this.spatialReference),m=e.timeExtent||this.timeExtent,h=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,m),y=this._getQueryParams({geometry:e.geometry,timeExtent:m,mosaicRule:h,renderingRule:this.version<10.4?this.renderingRule:null,renderingRules:l,pixelSize:r,returnCatalogItems:a,returnGeometry:d,raster:this.raster,maxItemCount:n?1:null});delete y.f;const f=new Le(y),g=this.generateRasterInfo(this.renderingRule);return new Promise((r=>{g.then((()=>{Te(this.url,f,{signal:null==t?void 0:t.signal,query:{...this.customParameters}}).then((t=>{const n=e.outFields;if(a&&!d&&t.catalogItems&&t.catalogItems.features&&t.catalogItems.features.length>0){const o=this.objectIdField||"ObjectId",a=t.catalogItems.features,l=a.map((e=>e.attributes&&e.attributes[o])),c=new Me.Z({objectIds:l,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[o]});return this.queryRasters(c).then((l=>{l&&l.features&&l.features.length>0&&l.features.forEach((t=>{a.forEach((r=>{r.attributes[o]===t.attributes[o]&&(r.geometry=new je.Z(t.geometry),r.geometry.spatialReference=e.outSpatialReference)}))})),r(this._processVisibleRastersResponse(t,{returnDomainValues:i,templateRRFunctionNames:u,showNoDataRecords:s,templateFields:n}))})).catch((()=>{throw new v.Z("imagery-layer:query-visible-rasters","encountered error when querying visible rasters geometry")}))}r(this._processVisibleRastersResponse(t,{returnDomainValues:i,templateRRFunctionNames:u,showNoDataRecords:s,templateFields:n}))})).catch((()=>{throw new v.Z("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}))}))}))}async fetchVariableStatisticsHistograms(e,t){const r=(0,g.default)(this.parsedUrl.path+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then((e=>{var t;return null==(t=e.data)?void 0:t.statistics})),i=(0,g.default)(this.parsedUrl.path+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then((e=>{var t;return null==(t=e.data)?void 0:t.histograms})),n=await Promise.all([r,i]);return n[0]&&n[0].forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation})),{statistics:n[0]||null,histograms:n[1]||null}}async _fetchService(e){await this._fetchServiceInfo(e),(0,o.pC)(this.serviceRasterInfo)&&!this.rasterInfo&&(this.rasterInfo=this.serviceRasterInfo);const t=this.sourceJSON,r=(0,o.pC)(this.serviceRasterInfo)?Promise.resolve(this.serviceRasterInfo):this._fetchAuxiliaryRasterInfo({serviceInfo:t,signal:e}).then((e=>(this._set("serviceRasterInfo",e),e))),i=this.renderingRule&&"none"!==this.renderingRule.functionName.toLowerCase()?this.generateRasterInfo(this.renderingRule,{signal:e}):null,n=this._getRasterFunctionInfos();return Promise.all([r,i,n]).then((e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&this._set("rasterFunctionInfos",e[2]),this.renderer&&!this._isSupportedRenderer(this.renderer)&&(this.renderer=null,Be.warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._configDefaultRenderer(),this.watch("renderer",(()=>this._configDefaultRenderer())),this.watch("renderingRule",(e=>{(this.renderer||this._symbolizer||this.popupEnabled&&this.popupTemplate)&&this.generateRasterInfo(e).then((e=>{e&&(this.rasterInfo=e)}))}));const t=(0,o.pC)(this.serviceRasterInfo)&&this.serviceRasterInfo.multidimensionalInfo;t&&this._updateMultidimensionalDefinition(t)}))}_combineMosaicRuleWithTimeExtent(e,t){const r=this.timeInfo;if((0,o.Wi)(e)||(0,o.Wi)(this.multidimensionalInfo)||(0,o.Wi)(t)||(0,o.Wi)(null==r?void 0:r.startField))return e;const{startField:i}=r;var n;if(e=e.clone(),"mosaic-dataset"===this._serviceSourceType)return e.multidimensionalDefinition=null==(n=e.multidimensionalDefinition)?void 0:n.filter((e=>e.dimensionName!==i)),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];const s=e.multidimensionalDefinition.filter((e=>e.dimensionName===i)),a=(0,o.pC)(t.start)?t.start.getTime():null,l=(0,o.pC)(t.end)?t.end.getTime():null,u=null==a||null==l||a===l,c=u?[a||l]:[[a,l]],p=this.version>=10.8;if(s.length)s.forEach((e=>{e.dimensionName===i&&(p?(e.dimensionName=null,e.isSlice=null,e.values=null):(e.isSlice=u,e.values=c))}));else if(!p){const t=e.multidimensionalDefinition.filter((e=>null!=e.variableName&&null==e.dimensionName));t.length?t.forEach((e=>{e.dimensionName=i,e.isSlice=u,e.values=c})):e.multidimensionalDefinition.push(new C.Z({variableName:"",dimensionName:i,isSlice:u,values:c}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return(0,o.Wi)(e)?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter((e=>!(!e.variableName&&!e.dimensionName))),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this._serviceSourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){var r;if(await this._fetchCapabilities(null==(r=t)?void 0:r.signal),!this.capabilities.operations.supportsQuery)throw new v.Z("imagery-layer:query-rasters","query operation is not supported on the input image service");return e=(0,o.pC)(e)?(0,c.TJ)(Me.Z,e):this.createQuery(),t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:e,requestOptions:t}}async _initJobHandler(){if(null!=this._rasterJobHandler.connectionPromise)return this._rasterJobHandler.connectionPromise;const e=new pe.Z;this._rasterJobHandler.connectionPromise=e.initialize().then((()=>{this._rasterJobHandler.instance=e}),(()=>null)),await this._rasterJobHandler.connectionPromise}_shutdownJobHandler(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0}_isSupportedRenderer(e){const{rasterInfo:t,renderingRule:r}=this;return"unique-value"===e.type&&r&&"none"!==r.functionName.toLowerCase()&&1===t.bandCount&&["u8","s8"].includes(t.pixelType)||(0,he.U0)(this.rasterInfo).includes(this.renderer.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){var t;let r=this.sourceJSON;if(!r){const{data:t,ssl:i}=await(0,g.default)(this.parsedUrl.path,{query:this._getQueryParams(),signal:e});r=t,this.sourceJSON=r,i&&(this.url=this.url.replace(/^http:/i,"https:"))}if((null==(t=r.capabilities)?void 0:t.toLowerCase().split(",").map((e=>e.trim())).indexOf("tilesonly"))>-1)throw new v.Z("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(r,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){var t;return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:(null==(t=e.fields)?void 0:t.length)>0}_isMosaicRuleSupported(e){var t;if(!e)return!1;const r=this._isMosaicDataset(e),i=e.currentVersion>=10.71&&e.hasMultidimensions&&e.timeInfo&&!(e.objectIdField&&(null==(t=e.fields)?void 0:t.length)>1);return r||i}_isVectorFieldResampleFunction(e){if(!(0,o.pC)(e))return!1;const{functionName:t,functionArguments:r}=e,i="resample"===t.toLowerCase(),n=(null==r?void 0:r.ResampleType)||(null==r?void 0:r.resampleType);return i&&(7===n||10===n)}_isPicture(){return!this.format||this.format.indexOf("jpg")>-1||this.format.indexOf("png")>-1}_configDefaultRenderer(){if(!this._isPicture()&&!this.pixelFilter){if(!this.bandIds&&this.rasterInfo.bandCount>=3){const e=(0,he.YD)(this.rasterInfo);!e||3===this.rasterInfo.bandCount&&0===e[0]&&1===e[1]&&2===e[2]||(this.bandIds=e)}var e,t;this.renderer||(this.renderer=(0,he.Ob)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.renderingRule?null:null==(e=this.mosaicRule)||null==(t=e.multidimensionalDefinition)?void 0:t[0].variableName})),this._symbolizer?(this._symbolizer.rendererJSON=(0,he.ol)(this.renderer.toJSON()),this._symbolizer.rasterInfo=this.rasterInfo):this._symbolizer=new ye.Z({rendererJSON:this.renderer.toJSON(),rasterInfo:this.rasterInfo}),this._symbolizer.bind()||(this._symbolizer=null)}}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:(0,o.pC)(e.pixelBlock)&&e.pixelBlock.clone()}}_getQueryParams(e){const{raster:t,viewId:r}=this;return{raster:t,viewId:r,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...null==e?void 0:e.query,...this.customParameters}}}_decodePixelBlock(e,t,r){return this._rasterJobHandler.instance?this._rasterJobHandler.instance.decode({data:e,options:t}):(0,de.Jx)(e,t,r)}async _fetchMultidimensionalInfo(e){var t;const r=await(0,g.default)(this.parsedUrl.path+"/multidimensionalInfo",{query:this._getQueryParams(),signal:e}).then((e=>{var t;return null==(t=e.data)?void 0:t.multidimensionalInfo}));return null!=(t=r.variables)&&t.length&&r.variables.forEach((e=>{var t;null!=(t=e.statistics)&&t.length&&e.statistics.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation}))})),r}async _getRasterFunctionInfos(e){const t=this.sourceJSON.rasterFunctionInfos;return this.serviceRasterInfo?t:t&&this.version>=10.3?1===t.length&&"none"===t[0].name.toLowerCase()?t:(0,g.default)(this.parsedUrl.path+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e}).then((e=>{var t;return null==(t=e.data)?void 0:t.rasterFunctionInfos})):null}_fetchAuxiliaryRasterInfo(e){const t=e&&e.serviceInfo;if(!t)return Promise.reject(new v.Z("imagery-layer:fetch-metadata","valid serviceInfo is required"));const r=e.renderingRule?JSON.stringify(e.renderingRule.toJSON()):null,i=e.signal,n=!!(t.hasRasterAttributeTable&&this.version>=10.1)&&(0,g.default)(this.parsedUrl.path+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.1?r:null}),signal:i}).then((e=>ve.default.fromJSON(e.data))).catch((()=>null)),s=!!(t.hasColormap&&this.version>=10.1)&&(0,g.default)(this.parsedUrl.path+"/colormap",{query:this._getQueryParams({renderingRule:this.version>=10.6?r:null}),signal:i}).then((e=>{var t;return null==(t=e.data)?void 0:t.colormap})),o=!!(t.hasHistograms&&this.version>=10.1)&&(0,g.default)(this.parsedUrl.path+"/histograms",{query:this._getQueryParams({renderingRule:this.version>=10.1?r:null}),signal:i}).then((e=>{var t;return null==(t=e.data)?void 0:t.histograms})),a=this.version>=10.3&&(0,g.default)(this.parsedUrl.path+"/keyProperties",{query:this._getQueryParams({renderingRule:r}),signal:i}).then((e=>e.data)).catch((()=>{})),l=!!(t.hasMultidimensions&&this.version>=10.3)&&this._fetchMultidimensionalInfo();return Promise.all([n,s,o,a,l]).then((e=>{let r=null;if(t.minValues&&t.minValues.length===t.bandCount){r=[];for(let e=0;e<t.minValues.length;e++)r.push({min:t.minValues[e],max:t.maxValues[e],avg:t.meanValues[e],stddev:t.stdvValues[e]})}const i=Math.ceil((t.extent.xmax-t.extent.xmin)/t.pixelSizeX-.1),n=Math.ceil((t.extent.ymax-t.extent.ymin)/t.pixelSizeY-.1),s=Qe.Z.fromJSON(t.spatialReference||t.extent.spatialReference);return new ce.Z({width:i,height:n,bandCount:t.bandCount,extent:Oe.Z.fromJSON(t.extent),spatialReference:s,pixelSize:new ee.Z({x:t.pixelSizeX,y:t.pixelSizeY,spatialReference:s}),pixelType:t.pixelType.toLowerCase(),statistics:r,attributeTable:e[0]||null,colormap:e[1]||null,histograms:e[2]||null,keyProperties:e[3]||{},multidimensionalInfo:e[4]||null})}))}_requestArrayBuffer(e){const{imageProps:t,requestAsImageElement:r,signal:i}=e;if(r&&!this.pixelFilter&&t.format&&t.format.indexOf("png")>-1)return(0,g.default)(this.parsedUrl.path+"/exportImage",{responseType:"image",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:i}).then((e=>({imageElement:e.data,params:t})));const n=this._initJobHandler(),s=(0,g.default)(this.parsedUrl.path+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:i});return Promise.all([s,n]).then((e=>{const r=e[0].data,n=t.format||"jpgpng";let s=n;if("bsq"!==s&&"bip"!==s&&(s=(0,de.y6)(r)),!s)throw new v.Z("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(r)));const o="gif"===n||"bmp"===n||n.indexOf("png")>-1&&("png"===s||"jpg"===s),a={signal:i};return o?(0,de.Jx)(r,{useCanvas:!0,...t},a).then((e=>({pixelData:{pixelBlock:e,extent:t.extent},params:t}))):this._decodePixelBlock(r,{width:t.width,height:t.height,planes:null,pixelType:null,noDataValue:null,format:n},a).then((e=>({pixelData:{pixelBlock:e,extent:t.extent},params:t})))}))}async _generateRasterInfo(e,t){const{data:r}=await(0,g.default)(this.parsedUrl.path,{query:this._getQueryParams({renderingRule:e}),...t});return await this._fetchAuxiliaryRasterInfo({serviceInfo:r,renderingRule:e,...t})}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this._defaultServiceMosaicRule&&this._defaultServiceMosaicRule.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;const t=e.variables[0].dimensions,r=[];for(const e in t)if(t.hasOwnProperty(e)){const i=t[e],n=i.extent;let s=!0,o=[n[0]];i.hasRanges&&!0===i.hasRanges?(s=!1,o=[i.values[0]]):"stdz"===i.name.toLowerCase()&&Math.abs(n[1])<=Math.abs(n[0])&&(o=[n[1]]),r.push(new C.Z({variableName:"",dimensionName:t[e].name,isSlice:s,values:o}))}if(r.length>0){this.mosaicRule=this.mosaicRule||new ne;const e=this.mosaicRule.multidimensionalDefinition;(!e||e&&e.length<=0)&&(this.mosaicRule.multidimensionalDefinition=r)}}_formatAttributeValue(e,t){if("string"==typeof e){const r=this.popupTemplate&&this.popupTemplate.fieldInfos,i=this._getFieldInfo(r,t),n=i&&i.format;if(n){let t,r;return e.trim().indexOf(",")>-1?(t=",",r=t+" ",this._formatDelimitedString(e,t,r,n)):e.trim().indexOf(" ")>-1?(t=r=" ",this._formatDelimitedString(e,t,r,n)):this._formatNumberFromString(e,n)}}return e}_getFieldInfo(e,t){if(!e||!e.length||!t)return;const r=t.toLowerCase();let i;return e.some((e=>!(!e.fieldName||e.fieldName.toLowerCase()!==r&&e.fieldName.toLowerCase()!==r.replace(/ /g,"_")||(i=e,0)))),i}_formatDelimitedString(e,t,r,i){return e&&t&&r&&i?e.trim().split(t).map((e=>this._formatNumberFromString(e,i))).join(r):e}_formatNumberFromString(e,t){if(!e||!t)return e;const r=Number(e);return isNaN(r)?e:t.format(r)}_processVisibleRastersResponse(e,t){t=t||{};const r=e.value,{templateRRFunctionNames:i,showNoDataRecords:n,returnDomainValues:s,templateFields:a}=t,l=e.processedValues;let u=e.catalogItems&&e.catalogItems.features,c=e.properties&&e.properties.Values&&e.properties.Values.map((e=>e.replace(/ /gi,", ")))||[];const p=this.objectIdField||"ObjectId",d="string"==typeof r&&r.toLowerCase().indexOf("nodata")>-1,m=[];if(r&&!u&&!d){const e={};e[p]=0,c=[r],u=[new y.Z(this.fullExtent,null,e)]}if(!u)return[];let h,f,g;this._updateResponseFieldNames(u,a),d&&!n&&(u=[]);for(let e=0;e<u.length;e++){if(h=u[e],null!=r&&!d){if(f=c[e],g=this.renderingRule&&l&&l.length>0&&i&&i.length>0&&i.indexOf(this.renderingRule.functionName)>-1?l[i.indexOf(this.renderingRule.functionName)]:r,"nodata"===f.toLowerCase()&&!n)continue;const t="Raster.ItemPixelValue",s="Raster.ServicePixelValue";h.attributes[t]=this._formatAttributeValue(f,t),h.attributes[s]=this._formatAttributeValue(g,s),this._updateFeatureWithMagDirValues(h,f);const a=this.fields&&this.fields.length>0;let u=this.renderingRule&&(0,o.pC)(this.serviceRasterInfo)&&this.serviceRasterInfo.attributeTable?a?f:r:g;this.renderingRule||(u=a?f:r),this._updateFeatureWithRasterAttributeTableValues(h,u)}if(h.sourceLayer=this,s&&this._updateFeatureWithDomainValues(h),i&&l&&i.length===l.length)for(let e=0;e<i.length;e++){const t="Raster.ServicePixelValue."+i[e];h.attributes[t]=this._formatAttributeValue(l[e],t)}m.push(u[e])}return m}_updateFeatureWithRasterAttributeTableValues(e,t){const r=this.rasterInfo&&this.rasterInfo.attributeTable||(0,o.pC)(this.serviceRasterInfo)&&this.serviceRasterInfo.attributeTable,i=r&&r.features;if(!i)return;const n=r.fields,s=n.map((e=>e.name)).filter((e=>"value"===e.toLowerCase())),a=s&&s[0];if(!a)return;const l=i.filter((e=>e.attributes[a]===(null!=t?parseInt(t,10):null)));l&&l[0]&&n.forEach((t=>{const r=this.rasterAttributeTableFieldPrefix+t.name;e.attributes[r]=this._formatAttributeValue(l[0].attributes[t.name],r)}))}_updateFeatureWithMagDirValues(e,t){if("esriImageServiceDataTypeVector-UV"!==this.serviceDataType&&"esriImageServiceDataTypeVector-MagDir"!==this.serviceDataType)return;const r=t.split(/,\s*/).map((e=>parseFloat(e))),i=r.map((e=>[e])),n=r.map((e=>({minValue:e,maxValue:e,noDataValue:null}))),s=new ue.Z({height:1,width:1,pixelType:"f32",pixels:i,statistics:n});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:s,extent:new Oe.Z(0,0,0,0,this.spatialReference)});const o="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[s.pixels[0][0],s.pixels[1][0]]:(0,me.Tg)([s.pixels[0][0],s.pixels[1][0]]);e.attributes["Raster.Magnitude"]=o[0],e.attributes["Raster.Direction"]=o[1]}_updateFeatureWithDomainValues(e){const t=this.fields&&this.fields.filter((e=>e.domain&&"coded-value"===e.domain.type));null!=t&&t.forEach((t=>{const r=e.attributes[t.name];if(null!=r){const i=t.domain.codedValues.filter((e=>e.code===r))[0];i&&(e.attributes[t.name]=i.name)}}))}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;const r=this.fieldsIndex;(0,o.pC)(r)&&e.forEach((e=>{if(e&&e.attributes)for(const i of t)if(r.has(i)){const t=r.get(i).name;t!==i&&(e.attributes[i]=e.attributes[t],delete e.attributes[t])}}))}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");const r=e.toLowerCase().replace(/ /gi,"_");return t.has(r)?t.get(r):e}_isRFTJson(e){return e.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_readCapabilities(e){const t=e.capabilities?e.capabilities.toLowerCase().split(",").map((e=>e.trim())):["image","catalog"],{currentVersion:r,advancedQueryCapabilities:i,maxRecordCount:n}=e,s=t.indexOf("image")>-1,o="esriImageServiceDataTypeElevation"===e.serviceDataType,a=!!(e.spatialReference||e.extent&&e.extent.spatialReference),l=t.includes("edit");return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:s,supportsExportImage:s,supportsIdentify:s,supportsMeasure:t.indexOf("mensuration")>-1&&a,supportsDownload:t.indexOf("download")>-1,supportsQuery:t.indexOf("catalog")>-1&&e.fields&&e.fields.length>0,supportsGetSamples:r>=10.2&&s,supportsProject:r>=10.3&&s,supportsComputeStatisticsHistograms:r>=10.4&&s,supportsQueryBoundary:r>=10.6&&s,supportsCalculateVolume:r>=10.7&&o,supportsComputePixelLocation:r>=10.7&&t.indexOf("catalog")>-1,supportsAdd:l,supportsDelete:l,supportsEditing:l,supportsUpdate:l,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1},query:{maxRecordCount:n,maxRecordCountFactor:void 0,supportsStatistics:!(null==i||!i.supportsStatistics),supportsOrderBy:!(null==i||!i.supportsOrderBy),supportsDistinct:!(null==i||!i.supportsDistinct),supportsPagination:!(null==i||!i.supportsPagination),supportsStandardizedQueriesOnly:!(null==i||!i.useStandardizedQueries),supportsPercentileStatistics:!(null==i||!i.supportsPercentileStatistics),supportsCentroid:!(null==i||!i.supportsReturningGeometryCentroid),supportsDistance:!(null==i||!i.supportsQueryWithDistance),supportsExtent:!(null==i||!i.supportsReturningQueryExtent),supportsGeometryProperties:!(null==i||!i.supportsReturningGeometryProperties),supportsHavingClause:!(null==i||!i.supportsHavingClause),supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:!1,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}}}};return(0,n._)([(0,u.Cb)()],t.prototype,"_functionRasterInfos",void 0),(0,n._)([(0,u.Cb)()],t.prototype,"_rasterJobHandler",void 0),(0,n._)([(0,u.Cb)()],t.prototype,"_symbolizer",void 0),(0,n._)([(0,u.Cb)({dependsOn:["_serviceSupportsMosaicRule"]})],t.prototype,"_defaultServiceMosaicRule",void 0),(0,n._)([(0,x.r)("_defaultServiceMosaicRule",["defaultMosaicMethod"])],t.prototype,"readDefaultServiceMosaicRule",null),(0,n._)([(0,u.Cb)()],t.prototype,"_cachedRendererJson",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],t.prototype,"_serviceSourceType",void 0),(0,n._)([(0,x.r)("_serviceSourceType",["serviceSourceType","fields"])],t.prototype,"readServiceSourceType",null),(0,n._)([(0,u.Cb)({readOnly:!0})],t.prototype,"_serviceSupportsMosaicRule",void 0),(0,n._)([(0,x.r)("_serviceSupportsMosaicRule",["currentVersion","fields"])],t.prototype,"readServiceSupportsMosaicRule",null),(0,n._)([(0,u.Cb)()],t.prototype,"rasterAttributeTableFieldPrefix",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],t.prototype,"rasterFunctionNamesIndex",null),(0,n._)([(0,u.Cb)()],t.prototype,"adjustAspectRatio",void 0),(0,n._)([(0,u.Cb)({readOnly:!0}),(0,I.B)("serviceRasterInfo.bandCount")],t.prototype,"bandCount",void 0),(0,n._)([(0,u.Cb)({type:[c.z8],json:{write:!0}})],t.prototype,"bandIds",void 0),(0,n._)([(0,x.r)("bandIds")],t.prototype,"readBandIds",null),(0,n._)([(0,u.Cb)({readOnly:!0,json:{read:!1}})],t.prototype,"capabilities",void 0),(0,n._)([(0,x.r)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],t.prototype,"readCapabilities",null),(0,n._)([(0,u.Cb)({type:Number})],t.prototype,"compressionQuality",void 0),(0,n._)([(0,d.c)("compressionQuality")],t.prototype,"writeCompressionQuality",null),(0,n._)([(0,u.Cb)({type:Number})],t.prototype,"compressionTolerance",void 0),(0,n._)([(0,d.c)("compressionTolerance")],t.prototype,"writeCompressionTolerance",null),(0,n._)([(0,u.Cb)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,n._)([(0,u.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,n._)([(0,u.Cb)({readOnly:!0,constructOnly:!0})],t.prototype,"exportImageServiceParameters",void 0),(0,n._)([(0,u.Cb)()],t.prototype,"rasterInfo",void 0),(0,n._)([(0,u.Cb)({readOnly:!0,type:[ae.Z]})],t.prototype,"fields",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],t.prototype,"fieldsIndex",null),(0,n._)([(0,u.Cb)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"],json:{write:!0}})],t.prototype,"format",null),(0,n._)([(0,x.r)("service","format",["serviceDataType"])],t.prototype,"readFormat",null),(0,n._)([(0,u.Cb)({type:Oe.Z})],t.prototype,"fullExtent",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],t.prototype,"hasMultidimensions",void 0),(0,n._)([(0,u.Cb)({json:{read:{source:"maxImageHeight"}}})],t.prototype,"imageMaxHeight",void 0),(0,n._)([(0,u.Cb)({json:{read:{source:"maxImageWidth"}}})],t.prototype,"imageMaxWidth",void 0),(0,n._)([(0,u.Cb)({type:String,json:{type:se.c.jsonValues,read:se.c.read,write:se.c.write}})],t.prototype,"interpolation",void 0),(0,n._)([(0,u.Cb)()],t.prototype,"minScale",void 0),(0,n._)([(0,x.r)("service","minScale")],t.prototype,"readMinScale",null),(0,n._)([(0,u.Cb)()],t.prototype,"maxScale",void 0),(0,n._)([(0,x.r)("service","maxScale")],t.prototype,"readMaxScale",null),(0,n._)([(0,u.Cb)({type:ne})],t.prototype,"mosaicRule",null),(0,n._)([(0,x.r)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],t.prototype,"readMosaicRule",null),(0,n._)([(0,d.c)("mosaicRule")],t.prototype,"writeMosaicRule",null),(0,n._)([(0,u.Cb)({readOnly:!0}),(0,I.B)("serviceRasterInfo.multidimensionalInfo")],t.prototype,"multidimensionalInfo",void 0),(0,n._)([(0,u.Cb)({json:{type:c.z8}})],t.prototype,"noData",void 0),(0,n._)([(0,d.c)("noData")],t.prototype,"writeNoData",null),(0,n._)([(0,u.Cb)({type:String,json:{type:se.k.jsonValues,read:se.k.read,write:se.k.write}})],t.prototype,"noDataInterpretation",void 0),(0,n._)([(0,u.Cb)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],t.prototype,"objectIdField",void 0),(0,n._)([(0,x.r)("objectIdField")],t.prototype,"readObjectIdField",null),(0,n._)([(0,u.Cb)({})],t.prototype,"geometryType",void 0),(0,n._)([(0,u.Cb)({})],t.prototype,"typeIdField",void 0),(0,n._)([(0,u.Cb)({})],t.prototype,"types",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],t.prototype,"parsedUrl",null),(0,n._)([(0,u.Cb)({readOnly:!0}),(0,I.B)("serviceRasterInfo.pixelSize.x")],t.prototype,"pixelSizeX",void 0),(0,n._)([(0,u.Cb)({readOnly:!0}),(0,I.B)("serviceRasterInfo.pixelSize.y")],t.prototype,"pixelSizeY",void 0),(0,n._)([(0,u.Cb)({type:Function})],t.prototype,"pixelFilter",void 0),(0,n._)([(0,u.Cb)()],t.prototype,"raster",void 0),(0,n._)([(0,u.Cb)()],t.prototype,"viewId",void 0),(0,n._)([(0,u.Cb)({types:f.dr,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:f.FK,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],t.prototype,"renderer",void 0),(0,n._)([(0,x.r)("renderer")],t.prototype,"readRenderer",null),(0,n._)([(0,d.c)("renderer")],t.prototype,"writeRenderer",null),(0,n._)([(0,u.Cb)(S.Oh)],t.prototype,"opacity",void 0),(0,n._)([(0,u.Cb)({readOnly:!0}),(0,I.B)("serviceRasterInfo.attributeTable")],t.prototype,"rasterAttributeTable",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],t.prototype,"rasterFields",null),(0,n._)([(0,u.Cb)({constructOnly:!0})],t.prototype,"rasterFunctionInfos",void 0),(0,n._)([(0,u.Cb)({type:V})],t.prototype,"renderingRule",null),(0,n._)([(0,x.r)("renderingRule",["renderingRule","rasterFunctionInfos"])],t.prototype,"readRenderingRule",null),(0,n._)([(0,d.c)("renderingRule")],t.prototype,"writeRenderingRule",null),(0,n._)([(0,u.Cb)()],t.prototype,"serviceDataType",void 0),(0,n._)([(0,u.Cb)({readOnly:!0,type:Qe.Z})],t.prototype,"spatialReference",void 0),(0,n._)([(0,x.r)("spatialReference",["spatialReference","extent"])],t.prototype,"readSpatialReference",null),(0,n._)([(0,u.Cb)({json:{type:He.jsonValues}})],t.prototype,"pixelType",void 0),(0,n._)([(0,x.r)("pixelType")],t.prototype,"readPixelType",null),(0,n._)([(0,d.c)("pixelType")],t.prototype,"writePixelType",null),(0,n._)([(0,u.Cb)({constructOnly:!0,type:ce.Z})],t.prototype,"serviceRasterInfo",void 0),(0,n._)([(0,u.Cb)()],t.prototype,"sourceJSON",void 0),(0,n._)([(0,u.Cb)(S.HQ)],t.prototype,"url",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],t.prototype,"version",void 0),(0,n._)([(0,x.r)("version",["currentVersion","fields","timeInfo"])],t.prototype,"readVersion",null),t=(0,n._)([(0,p.j)("esri.layers.mixins.ArcGISImageService")],t),t};var Xe=r(17287),Ke=r(78096),et=r(17017),tt=r(38009),rt=r(16859),it=r(34760),nt=r(72965),st=r(28294),ot=r(32163);let at=class extends((0,Ke.h)((0,st.n)((0,it.Q)((0,nt.M)((0,tt.q)((0,rt.I)($e((0,et.N)((0,Xe.Y)((0,a.R)(m.Z))))))))))){constructor(...e){super(...e),this.legendEnabled=!0,this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.type="imagery"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,o.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(l.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}writeOperationalLayerType(e,t,r){var i;const n="vector-field"===(null==(i=this.renderer)?void 0:i.type);t[r]=n?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.rasterFields,r=this.title,i=new Set;let n=!1,s=!1;this.capabilities&&(n=this.capabilities.operations.supportsQuery&&this.fields&&this.fields.length>0,s=n&&("esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType));const o=new Set;n&&(o.add("raster.itempixelvalue"),s&&o.add("raster.magnitude").add("raster.direction"));for(const e of t){const t=e.name.toLowerCase();o.has(t)||t.indexOf("raster.servicepixelvalue.")>-1||i.add(e.name)}return(0,ot.eZ)({fields:t,title:r},{...e,visibleFieldNames:i})}queryFeatures(e,t){return this.queryRasters(e,t).then((e=>{if(null!=e&&e.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}};(0,n._)([(0,u.Cb)(S.rn)],at.prototype,"legendEnabled",void 0),(0,n._)([(0,u.Cb)({type:["show","hide"]})],at.prototype,"listMode",void 0),(0,n._)([(0,u.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],at.prototype,"isReference",void 0),(0,n._)([(0,u.Cb)({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],at.prototype,"operationalLayerType",void 0),(0,n._)([(0,d.c)("web-map","operationalLayerType")],at.prototype,"writeOperationalLayerType",null),(0,n._)([(0,u.Cb)(S.C_)],at.prototype,"popupEnabled",void 0),(0,n._)([(0,u.Cb)({type:s.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],at.prototype,"popupTemplate",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],at.prototype,"defaultPopupTemplate",null),(0,n._)([(0,u.Cb)({readOnly:!0,json:{read:!1}})],at.prototype,"type",void 0),at=(0,n._)([(0,p.j)("esri.layers.ImageryLayer")],at);const lt=at},70272:(e,t,r)=>{r.d(t,{nd:()=>o,ZP:()=>n,S6:()=>s});var i=r(70586);class n{constructor(e=null,t={},r,i){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=i,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}}function s(e){return!((0,i.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class o extends n{}},44876:(e,t,r)=>{r.d(t,{Z:()=>i});class i{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new i;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},5428:(e,t,r)=>{r.d(t,{Z:()=>i});class i{constructor(e=[],t=[],r=!1){this.lengths=null!=e?e:[],this.coords=null!=t?t:[],this.hasIndeterminateRingOrder=r}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const i=this.lengths[r];for(let r=0;r<i;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=i}}clone(e){return e?(e.set(this.coords),new i(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new i(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},98732:(e,t,r)=>{r.d(t,{XA:()=>q,h_:()=>B,Yn:()=>z,GH:()=>G,Uy:()=>J,EI:()=>L,cn:()=>Q,di:()=>U,Iv:()=>j,fQ:()=>R,eG:()=>A,J6:()=>D,oB:()=>se,zj:()=>$,$:()=>ee,lz:()=>ne,RZ:()=>W,Nh:()=>Y,Jd:()=>v,IN:()=>b,hY:()=>re,lM:()=>H,$g:()=>te});var i=r(20102),n=r(92604),s=r(70586),o=r(33955),a=r(70272),l=r(44876),u=r(5428);function c(e,t){return e?t?4:3:t?3:2}const p=n.Z.getLogger("esri.tasks.support.optimizedFeatureSet"),d={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},m=(e,t,r,i,n,s)=>{e[r]=n,e[r+1]=s},h=(e,t,r,i,n,s)=>{e[r]=n,e[r+1]=s,e[r+2]=t[i+2]},y=(e,t,r,i,n,s)=>{e[r]=n,e[r+1]=s,e[r+2]=t[i+3]},f=(e,t,r,i,n,s)=>{e[r]=n,e[r+1]=s,e[r+2]=t[i+2],e[r+3]=t[i+3]};function g(e,t,r,i){if(e){if(r)return t&&i?f:h;if(t&&i)return y}else if(t&&i)return h;return m}function v({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function b({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function w({scale:e,translate:t},r){return r*e[0]+t[0]}function _({scale:e,translate:t},r){return t[1]-r*e[1]}function R(e,t,r){return e?t?r?F(e):S(e):r?T(e):I(e):null}function I(e){const t=e.coords;return{x:t[0],y:t[1]}}function x(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function S(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function C(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function T(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function N(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function F(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function O(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function P(e,t){return e&&t?O:e?C:t?N:x}function j(e,t,r){if((0,s.Wi)(e))return null;const i=c(t,r),n=[];for(let t=0;t<e.coords.length;t+=i){const r=[];for(let n=0;n<i;n++)r.push(e.coords[t+n]);n.push(r)}return t?r?{points:n,hasZ:t,hasM:r}:{points:n,hasZ:t}:r?{points:n,hasM:r}:{points:n}}function M(e,t,r=c(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const i=e.coords;let n=0;for(const e of t.points)for(let t=0;t<r;t++)i[n++]=e[t];return e}function D(e,t,r){if(!e)return null;const i=c(t,r),{coords:n,lengths:s}=e,o=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<i;t++)e.push(n[a++]);t.push(e)}o.push(t)}return t?r?{paths:o,hasZ:t,hasM:r}:{paths:o,hasZ:t}:r?{paths:o,hasM:r}:{paths:o}}function Z(e,t,r=c(t.hasZ,t.hasM)){const{lengths:i,coords:n}=e;let s=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)n[s++]=t[e];i.push(e.length)}return e}function A(e,t,r){if(!e)return null;const i=c(t,r),{coords:n,lengths:s}=e,o=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<i;t++)e.push(n[a++]);t.push(e)}o.push(t)}return t?r?{rings:o,hasZ:t,hasM:r}:{rings:o,hasZ:t}:r?{rings:o,hasM:r}:{rings:o}}function J(e,t,r=t.hasZ,i=t.hasM){return function(e,t,r,i){const n=c(r,i),{lengths:s,coords:o}=e;let a=0;s.length=o.length=0;for(const e of t){for(const t of e)for(let e=0;e<n;e++)o[a++]=t[e];s.push(e.length)}}(e,t.rings,r,i),e}const V=[],E=[];function q(e,t,r,i,n){V[0]=e;const[s]=z(E,V,t,r,i,n);return V.length=E.length=0,s}function z(e,t,r,n,o,l){if(e.length=0,!r){for(const r of t){const t=r.attributes[l];e.push(new a.ZP(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,i,n){const s=P(r,i);for(const r of t){const{geometry:t,attributes:i}=r;let o;t&&(o=s(new u.Z,t)),e.push(new a.ZP(o,i,null,i[n]))}return e}(e,t,n,o,l);case"esriGeometryMultipoint":return function(e,t,r,i,n){const s=c(r,i);for(const r of t){const t=r.geometry,i=r.attributes;let o;t&&(o=M(new u.Z,t,s)),e.push(new a.ZP(o,i,null,i[n]))}return e}(e,t,n,o,l);case"esriGeometryPolyline":return function(e,t,r,i,n){const s=c(r,i);for(const r of t){const t=r.geometry,i=r.attributes;let o;t&&(o=Z(new u.Z,t,s)),e.push(new a.ZP(o,i,null,i[n]))}return e}(e,t,n,o,l);case"esriGeometryPolygon":return function(e,t,r,i,n){for(const o of t){const t=o.geometry,l=o.centroid,c=o.attributes;let p;t&&(p=J(new u.Z,t,r,i)),(0,s.pC)(l)?e.push(new a.ZP(p,c,x(new u.Z,l),c[n])):e.push(new a.ZP(p,c,null,c[n]))}return e}(e,t,n,o,l);default:p.error("convertToFeatureSet:unknown-geometry",new i.Z(`Unable to parse unknown geometry type '${r}'`)),e.length=0}return e}function L(e,t,r,i){E[0]=e,k(V,E,t,r,i);const n=V[0];return V.length=E.length=0,n}function G(e,t,r){if((0,s.Wi)(e))return null;const n=new u.Z;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,o.wp)(e)?P(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(n,e):(0,o.oU)(e)?J(n,e,t,r):(0,o.l9)(e)?Z(n,e,c(t,r)):(0,o.aW)(e)?M(n,e,c(t,r)):void p.error("convertFromGeometry:unknown-geometry",new i.Z(`Unable to parse unknown geometry type '${e}'`))}function U(e,t,r,n){const o=e&&("coords"in e?e:e.geometry);if((0,s.Wi)(o))return null;switch(t){case"esriGeometryPoint":{let e=I;return r&&n?e=F:r?e=S:n&&(e=T),e(o)}case"esriGeometryMultipoint":return j(o,r,n);case"esriGeometryPolyline":return D(o,r,n);case"esriGeometryPolygon":return A(o,r,n);default:return void p.error("convertToGeometry:unknown-geometry",new i.Z(`Unable to parse unknown geometry type '${t}'`))}}function k(e,t,r,n,o){if(e.length=0,(0,s.Wi)(r))return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,i){let n=I;r&&i?n=F:r?n=S:i&&(n=T);for(const r of t){const{geometry:t,attributes:i}=r,o=(0,s.pC)(t)?n(t):null;e.push({attributes:i,geometry:o})}return e}(e,t,n,o);case"esriGeometryMultipoint":return function(e,t,r,i){for(const n of t){const{geometry:t,attributes:s}=n;let o;t&&(o=j(t,r,i)),e.push({attributes:s,geometry:o})}return e}(e,t,n,o);case"esriGeometryPolyline":return function(e,t,r,i){for(const n of t){const{geometry:t,attributes:o}=n;let a;(0,s.pC)(t)&&(a=D(t,r,i)),e.push({attributes:o,geometry:a})}return e}(e,t,n,o);case"esriGeometryPolygon":return function(e,t,r,i){for(const n of t){const{geometry:t,attributes:o,centroid:a}=n;let l;if((0,s.pC)(t)&&(l=A(t,r,i)),a){const t=I(a);e.push({attributes:o,centroid:t,geometry:l})}else e.push({attributes:o,geometry:l})}return e}(e,t,n,o);default:p.error("convertToFeatureSet:unknown-geometry",new i.Z(`Unable to parse unknown geometry type '${r}'`))}return e}function Q(e){const{objectIdFieldName:t,spatialReference:r,transform:i,fields:n,hasM:s,hasZ:o,features:a,geometryType:l,exceededTransferLimit:u,uniqueIdField:c,queryGeometry:p,queryGeometryType:d}=e,m={features:k([],a,l,o,s),fields:n,geometryType:l,objectIdFieldName:t,spatialReference:r,uniqueIdField:c,queryGeometry:U(p,d,!1,!1)};return i&&(m.transform=i),u&&(m.exceededTransferLimit=u),s&&(m.hasM=s),o&&(m.hasZ=o),m}function B(e,t){const r=new l.Z,{hasM:n,hasZ:s,features:o,objectIdFieldName:a,spatialReference:u,geometryType:c,exceededTransferLimit:d,transform:m,fields:h}=e;return h&&(r.fields=h),r.geometryType=c,r.objectIdFieldName=a||t,r.spatialReference=u,r.objectIdFieldName?(o&&z(r.features,o,c,s,n,r.objectIdFieldName),d&&(r.exceededTransferLimit=d),n&&(r.hasM=n),s&&(r.hasZ=s),m&&(r.transform=m),r):(p.error(new i.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function H(e){const{transform:t,features:r,hasM:i,hasZ:n}=e;if(!t)return e;for(const e of r)(0,s.pC)(e.geometry)&&te(e.geometry,e.geometry,i,n,t),e.centroid&&te(e.centroid,e.centroid,i,n,t);return e.transform=null,e}function W(e,t){const{geometryType:r,features:i,hasM:n,hasZ:s}=t;if(!e)return t;for(let t=0;t<i.length;t++){const o=i[t],a=o.weakClone();a.geometry=new u.Z,Y(a.geometry,o.geometry,n,s,r,e),o.centroid&&(a.centroid=new u.Z,Y(a.centroid,o.centroid,n,s,"esriGeometryPoint",e)),i[t]=a}return t.transform=e,t}function Y(e,t,r,i,n,o,a=r,l=i){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),(0,s.Wi)(t)||!t.coords.length)return null;const u=d[n],{coords:p,lengths:m}=t,h=c(r,i),y=c(r&&a,i&&l),f=g(r,i,a,l);if(!m.length)return f(e.coords,p,0,0,v(o,p[0]),b(o,p[1])),e.lengths.length&&(e.lengths.length=0),e.coords.length=h,e;let w,_,R,I,x=0,S=0,C=S;for(const t of m){if(t<u)continue;let r=0;S=C,R=w=v(o,p[x]),I=_=b(o,p[x+1]),f(e.coords,p,S,x,R,I),r++,x+=h,S+=y;for(let i=1;i<t;i++,x+=h)R=v(o,p[x]),I=b(o,p[x+1]),R===w&&I===_||(f(e.coords,p,S,x,R-w,I-_),S+=y,r++,w=R,_=I);r>=u&&(e.lengths.push(r),C=S)}return e.coords.length=C,e.coords.length?e:null}function $(e,t,r,i,n,s,o=r,a=i){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),!t||!t.coords.length)return null;const l=d[n],{coords:u,lengths:p}=t,m=c(r,i),h=c(r&&o,i&&a),y=g(r,i,o,a);if(!p.length)return y(e.coords,u,0,0,u[0],u[1]),e.lengths.length&&(e.lengths.length=0),e.coords.length=m,e;let f=0;const v=s*s;for(const t of p){if(t<l){f+=t*m;continue}const r=e.coords.length/h,i=f,n=f+(t-1)*m;y(e.coords,u,e.coords.length,i,u[i],u[i+1]),K(e.coords,u,m,v,y,i,n),y(e.coords,u,e.coords.length,n,u[n],u[n+1]);const s=e.coords.length/h-r;s>=l?e.lengths.push(s):e.coords.length=r*h,f+=t*m}return e.coords.length?e:null}function X(e,t,r,i){const n=e[t],s=e[t+1],o=e[r],a=e[r+1],l=e[i],u=e[i+1];let c=o,p=a,d=l-c,m=u-p;if(0!==d||0!==m){const e=((n-c)*d+(s-p)*m)/(d*d+m*m);e>1?(c=l,p=u):e>0&&(c+=d*e,p+=m*e)}return d=n-c,m=s-p,d*d+m*m}function K(e,t,r,i,n,s,o){let a,l=i,u=0;for(let e=s+r;e<o;e+=r)a=X(t,e,s,o),a>l&&(u=e,l=a);l>i&&(u-s>r&&K(e,t,r,i,n,s,u),n(e,t,e.length,u,t[u],t[u+1]),o-u>r&&K(e,t,r,i,n,u,o))}function ee(e,t,r,i){if((0,s.Wi)(t)||!t.coords||!t.coords.length)return null;const n=c(r,i);let o=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=n){const r=e[t],i=e[t+1];o=Math.min(o,r),l=Math.max(l,r),a=Math.min(a,i),u=Math.max(u,i)}}return e[0]=o,e[1]=a,e[2]=l,e[3]=u,e}function te(e,t,r,i,n){const{coords:s,lengths:o}=t,a=r?i?f:h:i?h:m,l=c(r,i);if(!s.length)return e!==t&&(e.lengths.length=0,e.coords.length=0),e;if(!o.length)return a(e.coords,s,0,0,w(n,s[0]),_(n,s[1])),e!==t&&(e.lengths.length=0,e.coords.length=l),e;const[u,p]=n.scale;let d=0;for(let t=0;t<o.length;t++){const r=o[t];e.lengths[t]=r;let i=w(n,s[d]),c=_(n,s[d+1]);a(e.coords,s,d,d,i,c),d+=l;for(let t=1;t<r;t++,d+=l)i+=s[d]*u,c-=s[d+1]*p,a(e.coords,s,d,d,i,c)}return e!==t&&(e.lengths.length=o.length,e.coords.length=s.length),e}function re(e,t,r,i,n,s){const o=c(r,i),a=g(r,i,n,s),l=t.coords;e.coords.length=0,e.lengths.length=0,e.lengths.push(...t.lengths);for(let t=0;t<l.length;t+=o)a(e.coords,l,e.coords.length,t,l[t],l[t+1]);return e}function ie(e,t,r,i){let n=0,s=e[i*t],o=e[i*(t+1)];for(let a=1;a<r;a++){const r=s+e[i*(t+a)],l=o+e[i*(t+a)+1],u=(r-s)*(l+o);s=r,o=l,n+=u}return.5*n}function ne(e,t){const{coords:r,lengths:i}=e;let n=0,s=0;for(let e=0;e<i.length;e++)s+=ie(r,n,i[e],t),n+=e;return Math.abs(s)}function se(e,t){if((0,s.Wi)(e))return null;const r=e.clone(),i=e.coords,n=e.lengths;let o=0;for(let e=0;e<n.length;e++){const s=n[e];let a=i[t*o],l=i[t*o+1];for(let e=1;e<s;e++){const n=a+i[t*(o+e)],s=l+i[t*(o+e)+1];r.coords[t*(o+e)]=n,r.coords[t*(o+e)+1]=s,a=n,l=s}o+=s}return r}},17287:(e,t,r)=>{r.d(t,{Y:()=>u});var i=r(43697),n=r(92604),s=r(70586),o=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(66677);const u=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.Qc)(this.url);if((0,s.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Nm)(e,n.Z.getLogger(this.declaredClass)))}};return(0,i._)([(0,o.Cb)()],t.prototype,"title",null),(0,i._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,a.j)("esri.layers.mixins.ArcGISService")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>w});var i=r(43697),n=r(40330),s=r(3172),o=r(66643),a=r(20102),l=r(92604),u=r(70586),c=r(95330),p=r(17452),d=r(5600),m=(r(67676),r(80442),r(75215),r(71715)),h=r(52011),y=r(30556),f=r(65587),g=r(15235),v=r(86082);const b=l.Z.getLogger("esri.layers.mixins.PortalLayer"),w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const i=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await i.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,c.D_)(e)||b.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this.fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async fetchUserHasEditingPrivileges(e){const t=this.url?null==n.id?void 0:n.id.findCredential(this.url):null;if(!t)return!0;const r=_.credential===t?_.user:await this.fetchEditingUser(e);return _.credential=t,_.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async fetchEditingUser(e){var t,r;const i=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(i)return i;const a=n.id.findServerInfo(this.url);if(null==a||!a.owningSystemUrl)return null;const l=`${a.owningSystemUrl}/sharing/rest`,c=f.Z.getDefault();if(c&&c.loaded&&(0,p.Fv)(c.restUrl)===(0,p.Fv)(l))return c.user;const d=`${l}/community/self`,m=(0,u.pC)(e)?e.signal:null,h=await(0,o.q6)((0,s.default)(d,{authMode:"no-prompt",query:{f:"json"},signal:m}));return h.ok?v.default.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||f.Z.getDefault());return r&&i&&!(0,p.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,d.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,i._)([(0,m.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,y.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,d.Cb)()],t.prototype,"resourceReferences",void 0),(0,i._)([(0,d.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,i._)([(0,h.j)("esri.layers.mixins.PortalLayer")],t),t},_={credential:null,user:null}},28294:(e,t,r)=>{r.d(t,{n:()=>d});var i=r(43697),n=r(92835),s=r(84552),o=r(5600),a=(r(67676),r(80442),r(75215),r(71715)),l=r(52011),u=r(30547),c=r(35671),p=r(78981);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=p.v.fromJSON(r.timeOffsetUnits);return i&&n?new s.Z({value:i,unit:n}):null}set timeInfo(e){(0,c.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,o.Cb)({type:n.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,o.Cb)({type:s.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,a.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,o.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,o.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},30547:(e,t,r)=>{r.d(t,{Z:()=>b});var i,n=r(43697),s=r(92835),o=r(84552),a=r(10736),l=r(22974),u=r(70586),c=r(5600),p=(r(75215),r(71715)),d=r(52011),m=r(30556);r(67676),r(80442);let h=i=class extends a.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new i({respectsDaylightSaving:e,timezone:t})}};(0,n._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"respectsDaylightSaving",void 0),(0,n._)([(0,p.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],h.prototype,"readRespectsDaylightSaving",null),(0,n._)([(0,c.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],h.prototype,"timezone",void 0),h=i=(0,n._)([(0,d.j)("esri.layers.support.TimeReference")],h);const y=h;var f,g=r(78981);let v=f=class extends a.wq{constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new s.Z({start:r,end:i})}writeFullTimeExtent(e,t){e&&(0,u.pC)(e.start)&&(0,u.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new o.Z({value:t.timeInterval,unit:g.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new o.Z({value:t.defaultTimeInterval,unit:g.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const r=e.toJSON();t.timeInterval=r.value,t.timeIntervalUnits=r.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:r,interval:i,startField:n,timeReference:s,fullTimeExtent:o,trackIdField:a,useTime:u}=this;return new f({cumulative:e,endField:t,hasLiveData:r,interval:i,startField:n,timeReference:(0,l.d9)(s),fullTimeExtent:(0,l.d9)(o),trackIdField:a,useTime:u})}};(0,n._)([(0,c.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],v.prototype,"cumulative",void 0),(0,n._)([(0,c.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],v.prototype,"endField",void 0),(0,n._)([(0,c.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],v.prototype,"fullTimeExtent",void 0),(0,n._)([(0,p.r)("fullTimeExtent",["timeExtent"])],v.prototype,"readFullTimeExtent",null),(0,n._)([(0,m.c)("fullTimeExtent")],v.prototype,"writeFullTimeExtent",null),(0,n._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],v.prototype,"hasLiveData",void 0),(0,n._)([(0,c.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],v.prototype,"interval",void 0),(0,n._)([(0,p.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],v.prototype,"readInterval",null),(0,n._)([(0,m.c)("interval")],v.prototype,"writeInterval",null),(0,n._)([(0,c.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],v.prototype,"startField",void 0),(0,n._)([(0,c.Cb)({type:y,json:{write:{enabled:!0,allowNull:!0}}})],v.prototype,"timeReference",void 0),(0,n._)([(0,c.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],v.prototype,"trackIdField",void 0),(0,n._)([(0,c.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],v.prototype,"useTime",void 0),v=f=(0,n._)([(0,d.j)("esri.layers.support.TimeInfo")],v);const b=v},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).wY)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},28694:(e,t,r)=>{r.d(t,{p:()=>n});var i=r(50459);function n(e,t,r){if(!r||!r.features||!r.hasZ)return;const n=(0,i.k)(r.geometryType,t,e.outSpatialReference);if(n)for(const e of r.features)n(e.geometry)}},50459:(e,t,r)=>{r.d(t,{k:()=>o,P:()=>l});var i=r(70586),n=r(67900),s=r(8744);function o(e,t,r){if((0,i.Wi)(t)||(0,i.Wi)(r)||r.vcsWkid||(0,s.fS)(t,r))return null;const o=(0,n._R)(t)/(0,n._R)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);default:return null}}function a(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function l(e,t,r){if(!e&&!t||!r)return;const i=(0,n._R)(r);u(e,r,i),u(t,r,i)}function u(e,t,r){if(e)for(const i of e)c(i.geometry,t,r)}function c(e,t,r){if((0,i.Wi)(e)||!e.spatialReference||(0,s.fS)(e.spatialReference,t))return;const o=(0,n._R)(e.spatialReference)/r;if(1!==o)if("x"in e)null!=e.z&&(e.z*=o);else if("rings"in e)a(e,e.rings,o);else if("paths"in e)a(e,e.paths,o);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=o)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3568,3172],{46851:(t,e,r)=>{r.d(e,{E:()=>n,R:()=>a});const n=1e-6,a=Math.random,i=Math.PI/180,o=180/Math.PI;Object.freeze({__proto__:null,EPSILON:n,RANDOM:a,toRadian:function(t){return t*i},toDegree:function(t){return t*o},equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))}})},17896:(t,e,r)=>{r.d(e,{E:()=>h,a:()=>p,b:()=>l,c:()=>b,d:()=>g,e:()=>v,f:()=>u,g:()=>o,h:()=>y,i:()=>f,k:()=>P,l:()=>i,m:()=>w,n:()=>m,p:()=>d,q:()=>x,r:()=>L,s:()=>s,t:()=>_,u:()=>O,w:()=>I});var n=r(65617),a=r(46851);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function l(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function u(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function h(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function p(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function f(t,e){const r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return Math.sqrt(r*r+n*n+a*a)}function y(t,e){const r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return r*r+n*n+a*a}function d(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function m(t,e){const r=e[0],n=e[1],a=e[2];let i=r*r+n*n+a*a;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function g(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function b(t,e,r){const n=e[0],a=e[1],i=e[2],o=r[0],s=r[1],l=r[2];return t[0]=a*l-i*s,t[1]=i*o-n*l,t[2]=n*s-a*o,t}function v(t,e,r,n){const a=e[0],i=e[1],o=e[2];return t[0]=a+n*(r[0]-a),t[1]=i+n*(r[1]-i),t[2]=o+n*(r[2]-o),t}function w(t,e,r){const n=e[0],a=e[1],i=e[2];return t[0]=r[0]*n+r[4]*a+r[8]*i+r[12],t[1]=r[1]*n+r[5]*a+r[9]*i+r[13],t[2]=r[2]*n+r[6]*a+r[10]*i+r[14],t}function _(t,e,r){const n=e[0],a=e[1],i=e[2];return t[0]=n*r[0]+a*r[3]+i*r[6],t[1]=n*r[1]+a*r[4]+i*r[7],t[2]=n*r[2]+a*r[5]+i*r[8],t}function x(t,e,r){const n=r[0],a=r[1],i=r[2],o=r[3],s=e[0],l=e[1],u=e[2];let c=a*u-i*l,h=i*s-n*u,p=n*l-a*s,f=a*p-i*h,y=i*c-n*p,d=n*h-a*c;const m=2*o;return c*=m,h*=m,p*=m,f*=2,y*=2,d*=2,t[0]=s+c+f,t[1]=l+h+y,t[2]=u+p+d,t}const T=(0,n.c)(),E=(0,n.c)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e,r){const n=r[0]-e[0],a=r[1]-e[1],i=r[2]-e[2];let o=n*n+a*a+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=n*o,t[1]=a*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const I=u,M=c,D=h,k=f,A=y,O=i,S=d;Object.freeze({__proto__:null,length:i,copy:o,set:s,add:l,subtract:u,multiply:c,divide:h,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t},max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:p,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t},distance:f,squaredDistance:y,squaredLength:d,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},normalize:m,dot:g,cross:b,lerp:v,hermite:function(t,e,r,n,a,i){const o=i*i,s=o*(2*i-3)+1,l=o*(i-2)+i,u=o*(i-1),c=o*(3-2*i);return t[0]=e[0]*s+r[0]*l+n[0]*u+a[0]*c,t[1]=e[1]*s+r[1]*l+n[1]*u+a[1]*c,t[2]=e[2]*s+r[2]*l+n[2]*u+a[2]*c,t},bezier:function(t,e,r,n,a,i){const o=1-i,s=o*o,l=i*i,u=s*o,c=3*i*s,h=3*l*o,p=l*i;return t[0]=e[0]*u+r[0]*c+n[0]*h+a[0]*p,t[1]=e[1]*u+r[1]*c+n[1]*h+a[1]*p,t[2]=e[2]*u+r[2]*c+n[2]*h+a[2]*p,t},random:function(t,e){e=e||1;const r=2*(0,a.R)()*Math.PI,n=2*(0,a.R)()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t},transformMat4:w,transformMat3:_,transformQuat:x,rotateX:function(t,e,r,n){const a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[0],i[1]=a[1]*Math.cos(n)-a[2]*Math.sin(n),i[2]=a[1]*Math.sin(n)+a[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[2]*Math.sin(n)+a[0]*Math.cos(n),i[1]=a[1],i[2]=a[2]*Math.cos(n)-a[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[0]*Math.cos(n)-a[1]*Math.sin(n),i[1]=a[0]*Math.sin(n)+a[1]*Math.cos(n),i[2]=a[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},angle:function(t,e){o(T,t),o(E,e),m(T,T),m(E,E);const r=g(T,E);return r>1?0:r<-1?Math.PI:Math.acos(r)},str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},exactEquals:P,equals:function(t,e){const r=t[0],n=t[1],i=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)<=a.E*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-s)<=a.E*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-l)<=a.E*Math.max(1,Math.abs(i),Math.abs(l))},direction:L,sub:I,mul:M,div:D,dist:k,sqrDist:A,len:O,sqrLen:S})},65617:(t,e,r)=>{function n(){return[0,0,0]}function a(t){return[t[0],t[1],t[2]]}function i(t,e,r){return[t,e,r]}function o(t){const e=[0,0,0],r=Math.min(3,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e}function s(t,e){return new Float64Array(t,e,3)}function l(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function h(){return i(0,0,1)}r.d(e,{O:()=>f,Z:()=>p,a:()=>a,b:()=>s,c:()=>n,d:()=>o,f:()=>i});const p=[0,0,0],f=l(),y=u(),d=c(),m=h();Object.freeze({__proto__:null,create:n,clone:a,fromValues:i,fromArray:o,createView:s,zeros:function(){return[0,0,0]},ones:l,unitX:u,unitY:c,unitZ:h,ZEROS:p,ONES:f,UNIT_X:y,UNIT_Y:d,UNIT_Z:m})},98766:(t,e,r)=>{r.d(e,{a:()=>o,b:()=>c,c:()=>a,d:()=>m,e:()=>f,f:()=>y,g:()=>v,h:()=>w,l:()=>g,n:()=>d,s:()=>i,t:()=>b});var n=r(46851);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function o(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function s(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function l(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}function u(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}function c(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function h(t,e){const r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(r*r+n*n+a*a+i*i)}function p(t,e){const r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2],i=e[3]-t[3];return r*r+n*n+a*a+i*i}function f(t){const e=t[0],r=t[1],n=t[2],a=t[3];return Math.sqrt(e*e+r*r+n*n+a*a)}function y(t){const e=t[0],r=t[1],n=t[2],a=t[3];return e*e+r*r+n*n+a*a}function d(t,e){const r=e[0],n=e[1],a=e[2],i=e[3];let o=r*r+n*n+a*a+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=a*o,t[3]=i*o),t}function m(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function g(t,e,r,n){const a=e[0],i=e[1],o=e[2],s=e[3];return t[0]=a+n*(r[0]-a),t[1]=i+n*(r[1]-i),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}function b(t,e,r){const n=e[0],a=e[1],i=e[2],o=e[3];return t[0]=r[0]*n+r[4]*a+r[8]*i+r[12]*o,t[1]=r[1]*n+r[5]*a+r[9]*i+r[13]*o,t[2]=r[2]*n+r[6]*a+r[10]*i+r[14]*o,t[3]=r[3]*n+r[7]*a+r[11]*i+r[15]*o,t}function v(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function w(t,e){const r=t[0],a=t[1],i=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(r-s)<=n.E*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-l)<=n.E*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(i-u)<=n.E*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-c)<=n.E*Math.max(1,Math.abs(o),Math.abs(c))}const _=s,x=l,T=u,E=h,P=p,L=f,I=y;Object.freeze({__proto__:null,copy:a,set:i,add:o,subtract:s,multiply:l,divide:u,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t},max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},scale:c,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},distance:h,squaredDistance:p,length:f,squaredLength:y,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},normalize:d,dot:m,lerp:g,random:function(t,e){let r,a,i,o,s,l;e=e||1;do{r=2*(0,n.R)()-1,a=2*(0,n.R)()-1,s=r*r+a*a}while(s>=1);do{i=2*(0,n.R)()-1,o=2*(0,n.R)()-1,l=i*i+o*o}while(l>=1);const u=Math.sqrt((1-s)/l);return t[0]=e*r,t[1]=e*a,t[2]=e*i*u,t[3]=e*o*u,t},transformMat4:b,transformQuat:function(t,e,r){const n=e[0],a=e[1],i=e[2],o=r[0],s=r[1],l=r[2],u=r[3],c=u*n+s*i-l*a,h=u*a+l*n-o*i,p=u*i+o*a-s*n,f=-o*n-s*a-l*i;return t[0]=c*u+f*-o+h*-l-p*-s,t[1]=h*u+f*-s+p*-o-c*-l,t[2]=p*u+f*-l+c*-s-h*-o,t[3]=e[3],t},str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},exactEquals:v,equals:w,sub:_,mul:x,div:T,dist:E,sqrDist:P,len:L,sqrLen:I})},3892:(t,e,r)=>{function n(t){return"h"in t&&"s"in t&&"v"in t}function a(t){return"l"in t&&"a"in t&&"b"in t}function i(t){return"l"in t&&"c"in t&&"h"in t}r.d(e,{_Y:()=>y,Y3:()=>d,sJ:()=>m,xr:()=>f});const o=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],s=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function l(t,e){const r=[];let n,a;if(t[0].length!==e.length)throw"dimensions do not match";const i=t.length,o=t[0].length;let s=0;for(n=0;n<i;n++){for(s=0,a=0;a<o;a++)s+=t[n][a]*e[a];r.push(s)}return r}function u(t){const e=[t.r/255,t.g/255,t.b/255].map((t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4)),r=l(o,e);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function c(t){const e=l(s,[t.x/100,t.y/100,t.z/100]).map((t=>{const e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))}));return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function h(t){const e=[t.x/95.047,t.y/100,t.z/108.883].map((t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29));return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function p(t){const e=t.l,r=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map((t=>t>6/29?t**3:3*(6/29)**2*(t-4/29)));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function f(t){return"r"in(e=t)&&"g"in e&&"b"in e?t:i(t)?function(t){return c(p(function(t){const e=t.l,r=t.c,n=t.h;return{l:e,a:r*Math.cos(n),b:r*Math.sin(n)}}(t)))}(t):a(t)?function(t){return c(p(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?c(t):n(t)?function(t){const e=(t.h+360)%360/60,r=t.s/100,n=t.v/100*255,a=n*r,i=a*(1-Math.abs(e%2-1));let o;switch(Math.floor(e)){case 0:o={r:a,g:i,b:0};break;case 1:o={r:i,g:a,b:0};break;case 2:o={r:0,g:a,b:i};break;case 3:o={r:0,g:i,b:a};break;case 4:o={r:i,g:0,b:a};break;case 5:case 6:o={r:a,g:0,b:i};break;default:o={r:0,g:0,b:0}}return o.r=Math.round(o.r+n-a),o.g=Math.round(o.g+n-a),o.b=Math.round(o.b+n-a),o}(t):t;var e}function y(t){return n(t)?t:function(t){const e=t.r,r=t.g,n=t.b,a=Math.max(e,r,n),i=a-Math.min(e,r,n);let o=a,s=0===i?0:a===e?(r-n)/i%6:a===r?(n-e)/i+2:(e-r)/i+4,l=0===i?0:i/o;return s<0&&(s+=6),s*=60,l*=100,o*=100/255,{h:s,s:l,v:o}}(f(t))}function d(t){return a(t)?t:function(t){return h(u(t))}(f(t))}function m(t){return i(t)?t:function(t){return function(t){const e=t.l,r=t.a,n=t.b,a=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i=i>0?i:i+2*Math.PI,{l:e,c:a,h:i}}(h(u(t)))}(f(t))}},22021:(t,e,r)=>{r.d(e,{ZF:()=>h,Kt:()=>p,jE:()=>d,uZ:()=>o,oK:()=>f,Vl:()=>u,wt:()=>s,t7:()=>l,Sf:()=>i,BV:()=>c});var n=r(17896);r(98766);const a=new Float32Array(1);function i(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function o(t,e,r){return Math.min(Math.max(t,e),r)}function s(t){return 0==(t&t-1)}function l(t,e,r){return t+(e-t)*r}function u(t){return t*Math.PI/180}function c(t){return 180*t/Math.PI}function h(t){return Math.acos(o(t,-1,1))}function p(t){return Math.asin(o(t,-1,1))}function f(t){return y(Math.max(-m,Math.min(t,m)))}function y(t){return a[0]=t,a[0]}function d(t,e){const r=(0,n.l)(t),a=p(t[2]/r),i=Math.atan2(t[1]/r,t[0]/r);return(0,n.s)(e,r,a,i),e}const m=y(34028234663852886e22)},3172:(t,e,r)=>{r.r(e),r.d(e,{default:()=>y});var n=r(68773),a=r(40330),i=r(20102),o=r(16358),s=r(80442),l=r(22974),u=r(70586),c=r(95330),h=r(17452),p=r(71058),f=r(85958);async function y(t,e){var l;const f=(0,h.HK)(t),b=(0,h.jc)(t);b||f||(t=(0,h.Fv)(t));const v={url:t,requestOptions:{...(0,u.Wg)(e)}};let w=(0,h.oh)(t);if(w){const t=await async function(t,e){if(null!=t.responseData)return t.responseData;if(t.headers&&(e.requestOptions.headers={...e.requestOptions.headers,...t.headers}),t.query&&(e.requestOptions.query={...e.requestOptions.query,...t.query}),t.before){let r,n;try{n=await t.before(e)}catch(t){r=E("request:interceptor",t,e)}if((n instanceof Error||n instanceof i.Z)&&(r=E("request:interceptor",n,e)),r)throw t.error&&t.error(r),r;return n}}(w,v);if(null!=t)return{data:t,getHeader:_,requestOptions:v.requestOptions,url:v.url};w.after||w.error||(w=null)}if(t=v.url,"image"===(e=v.requestOptions).responseType){if((0,s.Z)("host-webworker")||(0,s.Z)("host-node"))throw E("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),v)}else if(f)throw E("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+e.responseType),v);if("head"===e.method){if(e.body)throw E("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),v);if(f||b)throw E("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),v)}if(await async function(){(0,s.Z)("host-webworker")?d||(d=await r.e(9884).then(r.bind(r,29884))):y._abortableFetch||(y._abortableFetch=o.Z.fetch.bind(o.Z))}(),d)return d.execute(t,e);const x=(0,c.yi)();(0,c.fu)(e,(()=>x.abort()));const T={controller:x,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:w,params:v,redoRequest:!1,useIdentity:m.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},M=await async function(t){var e,r;let i,s;await async function(t){const e=t.params.url,r=t.params.requestOptions,i=t.controller.signal,s=r.body;let l=null,u=null,h=null;if(g&&"HTMLFormElement"in o.Z&&(s instanceof FormData?l=s:s instanceof HTMLFormElement&&(u=s,l=new FormData(u))),"string"==typeof s&&(h=s),t.fetchOptions={cache:r.cacheBust&&!y._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:i},(l||h)&&(t.fetchOptions.body=l||h),"anonymous"===r.authMode&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(e)||r.query&&r.query.token||l&&l.get&&l.get("token")||u&&u.elements.token),!t.hasToken&&n.Z.apiKey&&(0,p.r)(e)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!L(e)&&!(0,c.Hc)(i)){let n;"immediate"===r.authMode?(await P(),n=await a.id.getCredential(e,{signal:i}),t.credential=n):"no-prompt"===r.authMode?(await P(),n=await a.id.getCredential(e,{prompt:!1,signal:i}).catch((()=>{})),t.credential=n):a.id&&(n=a.id.findCredential(e)),n&&(t.credentialToken=n.token,t.useSSL=!!n.ssl)}}(t);try{do{[i,s]=await I(t)}while(!await D(t,i,s))}catch(e){const r=E("request:server",e,t.params,i);throw r.details.ssl=t.useSSL,t.interceptor&&t.interceptor.error&&t.interceptor.error(r),r}const l=t.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(l)&&!t.hasToken&&!t.credentialToken&&null!=(e=s)&&null!=(r=e.user)&&r.username&&!(0,h.kl)(l)){const t=(0,h.P$)(l,!0);t&&m.trustedServers.push(t)}const u=t.credential;if(u&&a.id){const t=a.id.findServerInfo(u.server);let e=t&&t.owningSystemUrl;if(e){e=e.replace(/\/?$/,"/sharing");const t=a.id.findCredential(e,u.userId);t&&-1===a.id._getIdenticalSvcIdx(e,t)&&t.resources.unshift(e)}}return{data:s,getHeader:i?t=>i.headers.get(t):_,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}(T);return null==(l=w)||null==l.after||l.after(M),M}let d;const m=n.Z.request,g="FormData"in o.Z,b=[499,498,403,401],v=["COM_0056","COM_0057","SB_0008"],w=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],_=()=>null,x=Symbol();function T(t){const e=(0,h.P$)(t);return!e||e.endsWith(".arcgis.com")||y._corsServers.includes(e)||(0,h.kl)(e)}function E(t,e,r,n){let a="Error";const o={url:r.url,requestOptions:r.requestOptions,getHeader:_,ssl:!1};if(e instanceof i.Z)return e.details?(e.details=(0,l.d9)(e.details),e.details.url=r.url,e.details.requestOptions=r.requestOptions):e.details=o,e;if(e){const t=n&&(t=>n.headers.get(t)),r=n&&n.status,i=e.message;i&&(a=i),t&&(o.getHeader=t),o.httpStatus=(null!=e.httpCode?e.httpCode:e.code)||r||0,o.subCode=e.subcode,o.messageCode=e.messageCode,"string"==typeof e.details?o.messages=[e.details]:o.messages=e.details,o.raw=x in e?e[x]:e}return(0,c.D_)(e)?(0,c.zE)():new i.Z(t,a,o)}async function P(){a.id||await Promise.all([r.e(7824),r.e(8778),r.e(9625)]).then(r.bind(r,79339))}function L(t){return w.some((e=>e.test(t)))}async function I(t){let e=t.params.url;const r=t.params.requestOptions,n=t.fetchOptions,i=(0,h.jc)(e)||(0,h.HK)(e),o=r.responseType||"json",l=i?0:null!=r.timeout?r.timeout:m.timeout;let u=!1;if(!i){t.useSSL&&(e=(0,h.hO)(e)),r.cacheBust&&"default"===n.cache&&(e=(0,h.ZN)(e,"request.preventCache",Date.now()));let i={...r.query};t.credentialToken&&(i.token=t.credentialToken);let o=(0,h.B7)(i);(0,s.Z)("esri-url-encodes-apostrophe")&&(o=o.replace(/'/g,"%27"));const l=e.length+1+o.length;let c;u="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>m.maxUrlLength;const p=r.useProxy||!!(0,h.ed)(e);if(p){const t=(0,h.b7)(e);c=t.path,!u&&c.length+1+l>m.maxUrlLength&&(u=!0),t.query&&(i={...t.query,...i})}if("HEAD"===n.method&&(u||p)){if(u){if(l>m.maxUrlLength)throw E("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params);throw E("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params)}if(p)throw E("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),t.params)}if(u?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?e=(0,h.fl)(e,i):(n.body=(0,h.B7)(i),n.headers["Content-Type"]="application/x-www-form-urlencoded")):e=(0,h.fl)(e,i),p&&(t.useProxy=!0,e=`${c}?${e}`),i.token&&g&&n.body instanceof FormData){const t=n.body;t.set?t.set("token",i.token):t.append("token",i.token)}if(r.hasOwnProperty("withCredentials"))t.withCredentials=r.withCredentials;else if(!(0,h.D6)(e,h.Gd))if((0,h.kl)(e))t.withCredentials=!0;else if(a.id){const r=a.id.findServerInfo(e);r&&r.webTierAuth&&(t.withCredentials=!0)}t.withCredentials&&(n.credentials="include")}let p,f,d=0,b=!1;l>0&&(d=setTimeout((()=>{b=!0,t.controller.abort()}),l));try{if("native-request-init"===r.responseType)f=n,f.url=e;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||u||function(t){if(t)for(const e of Object.getOwnPropertyNames(t))if(t[e])return!0;return!1}(r.headers)||!i&&!t.useProxy&&m.proxyUrl&&!T(e)){if(p=await y._abortableFetch(e,n),t.useProxy||function(t){const e=(0,h.P$)(t);e&&!y._corsServers.includes(e)&&y._corsServers.push(e)}(e),"native"===r.responseType)f=p;else if("HEAD"!==n.method)if(p.ok){switch(o){case"array-buffer":f=await p.arrayBuffer();break;case"blob":case"image":f=await p.blob();break;default:f=await p.text()}if(d&&(clearTimeout(d),d=0),"json"===o||"xml"===o||"document"===o)if(f)switch(o){case"json":f=JSON.parse(f);break;case"xml":f=M(f,"application/xml");break;case"document":f=M(f,"text/html")}else f=null;if(f){if("array-buffer"===o||"blob"===o){const t=p.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(t)&&f["blob"===o?"size":"byteLength"]<=750)try{const t=await new Response(f).json();t.error&&(f=t)}catch{}}"image"===o&&f instanceof Blob&&(f=await k(URL.createObjectURL(f),t,!0))}}else f=await p.text()}else f=await k(e,t)}catch(n){if("AbortError"===n.name){if(b)throw new Error("Timeout exceeded");throw(0,c.zE)("Request canceled")}if(!(!p&&n instanceof TypeError&&m.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||t.useProxy||T(e))throw n;t.redoRequest=!0,(0,h.tD)({proxyUrl:m.proxyUrl,urlPrefix:(0,h.P$)(e)})}finally{d&&clearTimeout(d)}return[p,f]}function M(t,e){let r;try{r=(new DOMParser).parseFromString(t,e)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function D(t,e,r){if(t.redoRequest)return t.redoRequest=!1,!1;const n=t.params.requestOptions;if(!e||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let i,o,s,l;if(!e.ok)throw i=new Error(`Unable to load ${e.url} status: ${e.status}`),i[x]=r,i;null!=r&&r.error&&(i=r.error),i&&(o=Number(i.code),s=i.hasOwnProperty("subcode")?Number(i.subcode):null,l=i.messageCode,l=l&&l.toUpperCase());const u=n.authMode;if(403===o&&(4===s||i.message&&i.message.toLowerCase().indexOf("ssl")>-1&&-1===i.message.toLowerCase().indexOf("permission"))){if(!t.useSSL)return t.useSSL=!0,!1}else if(!t.hasToken&&t.useIdentity&&("no-prompt"!==u||498===o)&&-1!==b.indexOf(o)&&!L(t.params.url)&&(403!==o||-1===v.indexOf(l)&&(null==s||2===s&&t.credentialToken))){await P();try{const e=await a.id.getCredential(t.params.url,{error:E("request:server",i,t.params),prompt:"no-prompt"!==u,signal:t.controller.signal,token:t.credentialToken});return t.credential=e,t.credentialToken=e.token,t.useSSL=t.useSSL||e.ssl,!1}catch(e){if("no-prompt"===u)return t.credential=null,t.credentialToken=null,!1;i=e}}if(i)throw i;return!0}function k(t,e,r=!1){const n=e.controller.signal,a=new Image;return e.withCredentials?a.crossOrigin="use-credentials":a.crossOrigin="anonymous",a.alt="",a.src=t,(0,f.f)(a,t,r,n)}y._abortableFetch=null,y._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(t,e,r)=>{r.d(e,{r:()=>i});var n=r(17452);const a=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function i(t){const e=(0,n.P$)(t,!0);return e&&e.endsWith(".arcgis.com")&&!a.includes(e)&&!t.endsWith("/sharing/rest/generateToken")}},85958:(t,e,r)=>{r.d(e,{f:()=>o});var n=r(80442),a=r(70586),i=r(95330);function o(t,e,r=!1,o){return new Promise(((l,u)=>{if((0,i.Hc)(o))return void u(s());let c=()=>{f(),u(new Error(`Unable to load ${e}`))},h=()=>{const e=t;f(),l(e)},p=()=>{if(!t)return;const e=t;f(),e.src="",u(s())};const f=()=>{(0,n.Z)("esri-image-decode")||(t.removeEventListener("error",c),t.removeEventListener("load",h)),c=null,h=null,t=null,(0,a.pC)(o)&&o.removeEventListener("abort",p),p=null,r&&URL.revokeObjectURL(e)};(0,a.pC)(o)&&o.addEventListener("abort",p),(0,n.Z)("esri-image-decode")?t.decode().then(h,c):(t.addEventListener("error",c),t.addEventListener("load",h))}))}function s(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error;return t.name="AbortError",t}}},31363:(t,e,r)=>{r.d(e,{_U:()=>i,DT:()=>s,B1:()=>n,JJ:()=>a,sX:()=>p,k3:()=>h,DQ:()=>u,Or:()=>c});const n=Number.POSITIVE_INFINITY,a=Math.PI,i=2*a,o=128/a,s=a/180,l=1/Math.LN2;function u(t,e){return(t%=e)>=0?t:t+e}function c(t){return u(t*o,256)}function h(t){return Math.log(t)*l}function p(t,e,r){return t*(1-r)+e*r}},26084:(t,e,r)=>{r.d(e,{Z:()=>n});class n{constructor(t){this._array=[],t<=0&&console.error("strideInBytes must be positive!"),this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}static i1616to32(t,e){return 65535&t|e<<16}static i8888to32(t,e,r,n){return 255&t|(255&e)<<8|(255&r)<<16|n<<24}static i8816to32(t,e,r){return 255&t|(255&e)<<8|r<<16}}},66090:(t,e,r)=>{r.d(e,{Et:()=>Et,sj:()=>Mt,Le:()=>Pt,_L:()=>Dt,gf:()=>Lt,jG:()=>It,nj:()=>kt});var n=r(70586),a=r(26084);class i{constructor(t){this._locations=new Map,this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._layoutInfo||this._buildAttributesInfo(),this._stride}getAttributeLocations(){return 0===this._locations.size&&this._buildAttributesInfo(),this._locations}getLayoutInfo(){return this._layoutInfo||this._buildAttributesInfo(),this._layoutInfo}getEncodingInfos(){return this._propertyEncodingInfo||this._buildAttributesInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildAttributesInfo(),this._uniforms}getShaderHeader(){return this._shaderHeader||this._buildAttributesInfo(),this._shaderHeader}getShaderMain(){return this._shaderMain||this._buildAttributesInfo(),this._shaderMain}setDataUniforms(t,e,r,n,a){const i=this.getUniforms();for(const o of i){const{name:i,type:s,getValue:l}=o,u=l(r,e,n,a);if(null!==u)switch(s){case"float":t.setUniform1f(i,u);break;case"vec2":t.setUniform2fv(i,u);break;case"vec4":t.setUniform4fv(i,u)}}}encodeAttributes(t,e,r,n){const a=this.attributesInfo(),i=this.getEncodingInfos(),o=[];let s=0,l=0;for(const c of Object.keys(i)){var u;const h=i[c],{type:p,precisionFactor:f,isLayout:y}=a[c],d=y?r.getLayoutProperty(c):r.getPaintProperty(c),m=null==(u=d.interpolator)?void 0:u.getInterpolationRange(e);let g=0;for(const r of h){const{offset:a,bufferElementsToAdd:i}=r;if(i>0){for(let t=0;t<i;t++)o.push(0);s+=l,l=r.bufferElementsToAdd}const u=null!=n?n:d.getValue(m?m[g]:e,t);switch(p){case 0:case 1:o[s]|=this._encodeByte(u*(f||1),8*a);break;case 2:case 3:o[s]|=this._encodeShort(u*(f||1),8*a);break;case 4:case 5:o[s]|=this._encodeByte(u*(f||1),8*a),o[s]|=this._encodeByte(u*(f||1),8*a+8);break;case 6:case 7:o[s]|=this._encodeShort(u*(f||1),8*a),o[s]|=this._encodeShort(u*(f||1),8*a+16);break;case 8:case 9:o[s]|=this._encodeByte(u*(f||1),8*a),o[s]|=this._encodeByte(u*(f||1),8*a+8),o[s]|=this._encodeByte(u*(f||1),8*a+16),o[s]|=this._encodeByte(u*(f||1),8*a+24);break;case 10:o[s]=this._encodeColor(u);break;case 11:case 12:this._encodePattern(s,o,u);break;default:throw new Error("Unsupported encoding type")}g++}}return o}getAtributeState(t){let e=0;const r=3+2*t;return e|=this._bit(r),e|=this._bit(r+1)<<1,e}_buildAttributesInfo(){const t=[],e={},r={};let n=-1;const a=this.attributesInfo(),o=this.attributes();let s=-1;for(const l of o){s++;const o=this.getAtributeState(s);if(0===o||3===o)continue;const u=a[l],c=[];e[l]=c;const h=u.type;for(let e=0;e<o;e++){const{dataType:e,bytesPerElement:a,count:o,normalized:s}=i._encodingInfo[h],l=a*o;let u=r[e],p=0;if(!u||u.count+o>4)n++,u={dataIndex:n,count:0,offset:0},4!==o&&(r[e]=u),t.push({location:-1,name:"a_data_"+n,count:o,type:e,normalized:s}),p=Math.ceil(Math.max(l/4,1));else{const e=t[u.dataIndex];e.count+=o,p=Math.ceil(Math.max(e.count*a/4,1))-Math.ceil(Math.max(u.offset/4,1))}c.push({dataIndex:u.dataIndex,offset:u.offset,bufferElementsToAdd:p}),u.offset+=l,u.count+=o}}for(const e of t)switch(e.type){case 5120:case 5121:e.count=4;case 5122:case 5123:e.count+=e.count%2}this._buildVertexBufferLayout(t);let l=0;const u=this._layoutInfo.geometry;for(const t of u)this._locations.set(t.name,l++);const c=this._layoutInfo.opacity;if(c)for(const t of c)this._locations.set(t.name,l++);this._buildShaderInfo(t,e),this._propertyEncodingInfo=e}_buildVertexBufferLayout(t){const e={},r=this.geometryInfo();let n=r[0].stride;if(0===t.length)e.geometry=r;else{const a=[];let i=n;for(const e of t)n+=o(e.type)*e.count;for(const t of r){const e={...t};e.stride=n,a.push(e)}for(const e of t)a.push({name:e.name,count:e.count,type:e.type,offset:i,stride:n,normalized:e.normalized||!1,divisor:0}),i+=o(e.type)*e.count;e.geometry=a}this.opacityInfo()&&(e.opacity=this.opacityInfo()),this._layoutInfo=e,this._stride=n}_buildShaderInfo(t,e){let r="\n",a="\n";const o=[];for(const e of t)r+=`attribute ${this._getType(e.count)} ${e.name};\n`;const l=this.attributes(),u=this.attributesInfo();let c=-1;for(const t of l){c++;const{name:l,type:h,precisionFactor:p,isLayout:f}=u[t],y=p&&1!==p?" * "+1/p:"",{bytesPerElement:d,count:m}=i._encodingInfo[h],g=t=>`a_data_${t.dataIndex}${s(m,t.offset,d)}`;switch(this.getAtributeState(c)){case 0:{const e=this._getType(m),i=`u_${l}`;o.push({name:i,type:e,getValue:(e,r,a,i)=>{const o=f?e.getLayoutValue(t,r):e.getPaintValue(t,r);if(11===h){const t=e.getDashKey(o,e.getLayoutValue("line-cap",r)),a=i.getMosaicItemPosition(t,!1);if((0,n.Wi)(a))return null;const{tl:s,br:l}=a;return[s[0],l[1],l[0],s[1]]}if(12===h){const e=i.getMosaicItemPosition(o,-1===t.indexOf("line-"));if((0,n.Wi)(e))return null;const{tl:r,br:a}=e;return[r[0],a[1],a[0],r[1]]}if(10===h){const t=o[3];return[t*o[0],t*o[1],t*o[2],t]}return o}}),r+=`uniform ${e} ${i};\n`,a+=`${e} ${l} = ${i};\n`}break;case 1:{const r=g(e[t][0]);a+=`${this._getType(m)} ${l} = ${r}${y};\n`}break;case 2:{const n=`u_t_${l}`;o.push({name:n,type:"float",getValue:(e,r,n,a)=>(f?e.getLayoutProperty(t):e.getPaintProperty(t)).interpolator.interpolationUniformValue(n,r)}),r+=`uniform float ${n};\n`;const i=g(e[t][0]),s=g(e[t][1]);a+=`${this._getType(m)} ${l} = mix(${i}${y}, ${s}${y}, ${n});\n`}}}this._shaderHeader=r,this._shaderMain=a,this._uniforms=o}_bit(t){return(this._key&1<<t)>>t}_getType(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4"}throw new Error("Invalid count")}_encodeColor(t){const e=255*t[3];return a.Z.i8888to32(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,r){if(!r||!r.rect)return;const n=r.rect,a=r.width,i=r.height;e[t]=this._encodeShort(n.x+2,0),e[t]|=this._encodeShort(n.y+2+i,16),e[t+1]=this._encodeShort(n.x+2+a,0),e[t+1]|=this._encodeShort(n.y+2,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}i._encodingInfo={0:{dataType:5120,bytesPerElement:1,count:1,normalized:!1},1:{dataType:5121,bytesPerElement:1,count:1,normalized:!1},2:{dataType:5122,bytesPerElement:2,count:1,normalized:!1},3:{dataType:5123,bytesPerElement:2,count:1,normalized:!1},4:{dataType:5120,bytesPerElement:1,count:2,normalized:!1},5:{dataType:5121,bytesPerElement:1,count:2,normalized:!1},6:{dataType:5122,bytesPerElement:2,count:2,normalized:!1},7:{dataType:5123,bytesPerElement:2,count:2,normalized:!1},8:{dataType:5120,bytesPerElement:1,count:4,normalized:!1},9:{dataType:5121,bytesPerElement:1,count:4,normalized:!1},10:{dataType:5121,bytesPerElement:1,count:4,normalized:!0},11:{dataType:5123,bytesPerElement:2,count:4,normalized:!1},12:{dataType:5123,bytesPerElement:2,count:4,normalized:!1}};const o=t=>{switch(t){case 5126:case 5124:case 5125:return 4;case 5122:case 5123:return 2;case 5120:case 5121:return 1}},s=(t,e,r)=>{const n=e/r;if(1===t)switch(n){case 0:return".x";case 1:return".y";case 2:return".z";case 3:return".w"}else if(2===t)switch(n){case 0:return".xy";case 1:return".yz";case 2:return".zw"}else if(3===t)switch(n){case 0:return".xyz";case 1:return".yzw"}return""};class l extends i{constructor(t){super(t)}geometryInfo(){return l.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return l.ATTRIBUTES}attributesInfo(){return l.ATTRIBUTES_INFO}}l.ATTRIBUTES=[],l.GEOMETRY_LAYOUT=[{name:"a_pos",count:2,type:5120,offset:0,stride:2,normalized:!1,divisor:0}],l.ATTRIBUTES_INFO={};class u extends i{constructor(t){super(t)}geometryInfo(){return u.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return u.ATTRIBUTES}attributesInfo(){return u.ATTRIBUTES_INFO}}u.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"],u.GEOMETRY_LAYOUT=[{name:"a_pos",count:2,type:5122,offset:0,stride:4,normalized:!1,divisor:0}],u.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:1},"circle-color":{name:"color",type:10},"circle-opacity":{name:"opacity",type:1,precisionFactor:100},"circle-stroke-width":{name:"stroke_width",type:1,precisionFactor:4},"circle-stroke-color":{name:"stroke_color",type:10},"circle-stroke-opacity":{name:"stroke_opacity",type:1,precisionFactor:100},"circle-blur":{name:"blur",type:1,precisionFactor:32}};class c extends i{constructor(t){super(t)}geometryInfo(){return c.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return c.ATTRIBUTES}attributesInfo(){return c.ATTRIBUTES_INFO}}c.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"],c.GEOMETRY_LAYOUT=[{name:"a_pos",count:2,type:5122,offset:0,stride:4,normalized:!1,divisor:0}],c.ATTRIBUTES_INFO={"fill-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100},"fill-pattern":{name:"tlbr",type:12,isOptional:!0}};class h extends i{constructor(t,e){super(t),this.usefillColor=e}geometryInfo(){return h.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return this.usefillColor?h.ATTRIBUTES_FILL:h.ATTRIBUTES_OUTLINE}attributesInfo(){return this.usefillColor?h.ATTRIBUTES_INFO_FILL:h.ATTRIBUTES_INFO_OUTLINE}}h.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"],h.ATTRIBUTES_FILL=["fill-color","fill-opacity"],h.GEOMETRY_LAYOUT=[{name:"a_pos",count:2,type:5122,offset:0,stride:8,normalized:!1,divisor:0},{name:"a_offset",count:2,type:5120,offset:4,stride:8,normalized:!1,divisor:0},{name:"a_xnormal",count:2,type:5120,offset:6,stride:8,normalized:!1,divisor:0}],h.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100}},h.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100}};class p extends i{constructor(t){super(t)}geometryInfo(){return p.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return p.ATTRIBUTES}attributesInfo(){return p.ATTRIBUTES_INFO}}p.ATTRIBUTES=["line-blur","line-color","line-gap-width","line-offset","line-opacity","line-width","line-pattern","line-dasharray"],p.GEOMETRY_LAYOUT=[{name:"a_pos",count:2,type:5122,offset:0,stride:16,normalized:!1,divisor:0},{name:"a_extrude_offset",count:4,type:5120,offset:4,stride:16,normalized:!1,divisor:0},{name:"a_dir_normal",count:4,type:5120,offset:8,stride:16,normalized:!1,divisor:0},{name:"a_accumulatedDistance",count:2,type:5123,offset:12,stride:16,normalized:!1,divisor:0}],p.ATTRIBUTES_INFO={"line-width":{name:"width",type:1,precisionFactor:2},"line-gap-width":{name:"gap_width",type:1,precisionFactor:2},"line-offset":{name:"offset",type:0,precisionFactor:2},"line-color":{name:"color",type:10},"line-opacity":{name:"opacity",type:1,precisionFactor:100},"line-blur":{name:"blur",type:1,precisionFactor:4},"line-pattern":{name:"tlbr",type:12,isOptional:!0},"line-dasharray":{name:"tlbr",type:11,isOptional:!0}};const f=[{name:"a_pos",count:2,type:5122,offset:0,stride:16,normalized:!1,divisor:0},{name:"a_vertexOffset",count:2,type:5122,offset:4,stride:16,normalized:!1,divisor:0},{name:"a_texAngleRange",count:4,type:5121,offset:8,stride:16,normalized:!1,divisor:0},{name:"a_levelInfo",count:4,type:5121,offset:12,stride:16,normalized:!1,divisor:0}],y=[{name:"a_opacityInfo",count:1,type:5121,offset:0,stride:1,normalized:!1,divisor:0}];class d extends i{constructor(t){super(t)}geometryInfo(){return f}opacityInfo(){return y}attributes(){return d.ATTRIBUTES}attributesInfo(){return d.ATTRIBUTES_INFO}}d.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"],d.ATTRIBUTES_INFO={"icon-color":{name:"color",type:10},"icon-opacity":{name:"opacity",type:1,precisionFactor:100},"icon-halo-color":{name:"halo_color",type:10},"icon-halo-width":{name:"halo_width",type:1,precisionFactor:4},"icon-halo-blur":{name:"halo_blur",type:1,precisionFactor:4},"icon-size":{name:"size",type:1,precisionFactor:32,isLayout:!0}};class m extends i{constructor(t){super(t)}geometryInfo(){return f}opacityInfo(){return y}attributes(){return m.ATTRIBUTES}attributesInfo(){return m.ATTRIBUTES_INFO}}m.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"],m.ATTRIBUTES_INFO={"text-color":{name:"color",type:10},"text-opacity":{name:"opacity",type:1,precisionFactor:100},"text-halo-color":{name:"halo_color",type:10},"text-halo-width":{name:"halo_width",type:1,precisionFactor:4},"text-halo-blur":{name:"halo_blur",type:1,precisionFactor:4},"text-size":{name:"size",type:1,isLayout:!0}};var g=r(22303),b=r(3892);function v(t,e,r,n){const a=3*t,i=3*(r-t)-a,o=1-a-i,s=3*e,l=3*(n-e)-s,u=1-s-l;function c(t){return((o*t+i)*t+a)*t}function h(t){return(3*o*t+2*i)*t+a}return function(t,e=1e-6){return function(t){return((u*t+l)*t+s)*t}(function(t,e){let r,n,a,i,o,s;for(a=t,s=0;s<8;s++){if(i=c(a)-t,Math.abs(i)<e)return a;if(o=h(a),Math.abs(o)<1e-6)break;a-=i/o}if(r=0,n=1,a=t,a<r)return r;if(a>n)return n;for(;r<n;){if(i=c(a),Math.abs(i-t)<e)return a;t>i?r=a:n=a,a=.5*(n-r)+r}return a}(t,e))}}const w={};w.ease=v(.25,.1,.25,1),w.linear=v(0,0,1,1),w.easeIn=w["ease-in"]=v(.42,0,1,1),w.easeOut=w["ease-out"]=v(0,0,.58,1),w.easeInOut=w["ease-in-out"]=v(.42,0,.58,1);var _=r(31363);const x={kind:"null"},T={kind:"number"},E={kind:"string"},P={kind:"boolean"},L={kind:"color"},I={kind:"object"},M={kind:"value"};function D(t,e){return{kind:"array",itemType:t,n:e}}const k=[x,T,E,P,L,I,D(M)];function A(t){if("array"===t.kind){const e=A(t.itemType);return"number"==typeof t.n?`array<${e}, ${t.n}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}function O(t){if(null===t)return x;if("string"==typeof t)return E;if("boolean"==typeof t)return P;if("number"==typeof t)return T;if(t instanceof g.Z)return L;if(Array.isArray(t)){let e;for(const r of t){const t=O(r);if(e){if(e!==t){e=M;break}}else e=t}return D(e||M,t.length)}return"object"==typeof t?I:M}function S(t,e){if("array"===e.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||S(t.itemType,e.itemType))&&("number"!=typeof e.n||e.n===t.n);if("value"===e.kind)for(const e of k)if(S(t,e))return!0;return e.kind===t.kind}function U(t){if(null===t)return"";const e=typeof t;return"string"===e?t:"number"===e||"boolean"===e?String(t):t instanceof g.Z?t.toString():JSON.stringify(t)}class z{constructor(t){this.parent=t,this.vars={}}add(t,e){this.vars[t]=e}get(t){return this.vars[t]?this.vars[t]:this.parent?this.parent.get(t):null}}class R{constructor(){this.type=M}static parse(t){if(t.length>1)throw new Error('"id" does not expect arguments');return new R}evaluate(t,e){return null==t?void 0:t.id}}class B{constructor(){this.type=E}static parse(t){if(t.length>1)throw new Error('"geometry-type" does not expect arguments');return new B}evaluate(t,e){if(!t)return null;switch(t.type){case 1:return"Point";case 2:return"LineString";case 3:return"Polygon";default:return null}}}class q{constructor(){this.type=I}static parse(t){if(t.length>1)throw new Error('"properties" does not expect arguments');return new q}evaluate(t,e){return null==t?void 0:t.values}}class F{constructor(){this.type=T}static parse(t){if(t.length>1)throw new Error('"zoom" does not expect arguments');return new F}evaluate(t,e){return e}}class N{constructor(t,e,r){this.lhs=t,this.rhs=e,this.compare=r,this.type=P}static parse(t,e,r){if(3!==t.length&&4!==t.length)throw new Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw new Error(`"${t[0]}" collator not supported`);return new N(gt(t[1],e),gt(t[2],e),r)}evaluate(t,e){return this.compare(this.lhs.evaluate(t,e),this.rhs.evaluate(t,e))}}class C{constructor(t){this.arg=t,this.type=P}static parse(t,e){if(2!==t.length)throw new Error('"!" expects 1 argument');return new C(gt(t[1],e))}evaluate(t,e){return!this.arg.evaluate(t,e)}}class ${constructor(t){this.args=t,this.type=P}static parse(t,e){const r=[];for(let n=1;n<t.length;n++)r.push(gt(t[n],e));return new $(r)}evaluate(t,e){for(const r of this.args)if(!r.evaluate(t,e))return!1;return!0}}class V{constructor(t){this.args=t,this.type=P}static parse(t,e){const r=[];for(let n=1;n<t.length;n++)r.push(gt(t[n],e));return new V(r)}evaluate(t,e){for(const r of this.args)if(r.evaluate(t,e))return!0;return!1}}class Z{constructor(t){this.args=t,this.type=P}static parse(t,e){const r=[];for(let n=1;n<t.length;n++)r.push(gt(t[n],e));return new Z(r)}evaluate(t,e){for(const r of this.args)if(r.evaluate(t,e))return!1;return!0}}class j{constructor(t,e,r){this.type=t,this.args=e,this.fallback=r}static parse(t,e,r){if(t.length<4)throw new Error('"case" expects at least 3 arguments');if(t.length%2==1)throw new Error('"case" expects an odd number of arguments');let n;const a=[];for(let i=1;i<t.length-1;i+=2){const o=gt(t[i],e),s=gt(t[i+1],e,r);n||(n=s.type),a.push({condition:o,output:s})}const i=gt(t[t.length-1],e,r);return n||(n=i.type),new j(n,a,i)}evaluate(t,e){for(const r of this.args)if(r.condition.evaluate(t,e))return r.output.evaluate(t,e);return this.fallback.evaluate(t,e)}}class Y{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)throw new Error('"coalesce" expects at least 1 argument');let r;const n=[];for(let a=1;a<t.length;a++){const i=gt(t[a],e);r||(r=i.type),n.push(i)}return new Y(r,n)}evaluate(t,e){for(const r of this.args){const n=r.evaluate(t,e);if(null!==n)return n}return null}}class H{constructor(t,e,r,n,a){this.type=t,this.input=e,this.labels=r,this.outputs=n,this.fallback=a}static parse(t,e){if(t.length<3)throw new Error('"match" expects at least 3 arguments');if(t.length%2==0)throw new Error('"case" expects an even number of arguments');let r;const n=gt(t[1],e),a=[],i={};let o;for(let n=2;n<t.length-1;n+=2){let s=t[n];Array.isArray(s)||(s=[s]);for(const t of s){const e=typeof t;if("string"!==e&&"number"!==e)throw new Error('"match" requires string or number literal as labels');if(o){if(e!==o)throw new Error('"match" requires labels to have the same type')}else o=e;i[t]=a.length}const l=gt(t[n+1],e);r||(r=l.type),a.push(l)}return new H(r,n,i,a,gt(t[t.length-1],e))}evaluate(t,e){const r=this.input.evaluate(t,e);return(this.outputs[this.labels[r]]||this.fallback).evaluate(t,e)}}class X{constructor(t,e,r,n,a){this.operator=t,this.type=e,this.interpolation=r,this.input=n,this.stops=a}static parse(t,e,r){const n=t[0];if(t.length<5)throw new Error(`"${n}" expects at least 4 arguments`);const a=t[1];if(!Array.isArray(a)||0===a.length)throw new Error(`"${a}" is not a valid interpolation`);switch(a[0]){case"linear":if(1!==a.length)throw new Error("Linear interpolation cannot have parameters");break;case"exponential":if(2!==a.length||"number"!=typeof a[1])throw new Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(5!==a.length)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(let t=1;t<5;t++){const e=a[t];if("number"!=typeof e||e<0||e>1)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw new Error(`"${t[0]}" unknown interpolation type "${a[0]}"`)}if(t.length%2!=1)throw new Error(`"${n}" expects an even number of arguments`);const i=gt(t[2],e,T);let o;"interpolate-hcl"===n||"interpolate-lab"===n?o=L:r&&"value"!==r.kind&&(o=r);const s=[];for(let r=3;r<t.length;r+=2){const a=t[r];if("number"!=typeof a)throw new Error(`"${n}" requires stop inputs as literal numbers`);if(s.length&&s[s.length-1][0]>=a)throw new Error(`"${n}" requires strictly ascending stop inputs`);const i=gt(t[r+1],e,o);o||(o=i.type),s.push([a,i])}if(o&&o!==L&&o!==T&&("array"!==o.kind||o.itemType!==T))throw new Error(`"${n}" cannot interpolate type ${A(o)}`);return new X(n,o,a,i,s)}evaluate(t,e){const r=this.stops;if(1===r.length)return r[0][1].evaluate(t,e);const n=this.input.evaluate(t,e);if(n<=r[0][0])return r[0][1].evaluate(t,e);if(n>=r[r.length-1][0])return r[r.length-1][1].evaluate(t,e);let a=0;for(;++a<r.length&&!(n<r[a][0]););const i=r[a-1][0],o=r[a][0],s=X.interpolationRatio(this.interpolation,n,i,o),l=r[a-1][1].evaluate(t,e),u=r[a][1].evaluate(t,e);if("interpolate"===this.operator){if("array"===this.type.kind&&Array.isArray(l)&&Array.isArray(u))return l.map(((t,e)=>(0,_.sX)(t,u[e],s)));if("color"===this.type.kind&&l instanceof g.Z&&u instanceof g.Z){const t=new g.Z(l),e=new g.Z(u);return new g.Z([(0,_.sX)(t.r,e.r,s),(0,_.sX)(t.g,e.g,s),(0,_.sX)(t.b,e.b,s),(0,_.sX)(t.a,e.a,s)])}if("number"===this.type.kind&&"number"==typeof l&&"number"==typeof u)return(0,_.sX)(l,u,s);throw new Error(`"${this.operator}" cannot interpolate type ${A(this.type)}`)}if("interpolate-hcl"===this.operator){const t=(0,b.sJ)(l),e=(0,b.sJ)(u),r=e.h-t.h,n=(0,b.xr)({h:t.h+s*(r>180||r<-180?r-360*Math.round(r/360):r),c:(0,_.sX)(t.c,e.c,s),l:(0,_.sX)(t.l,e.l,s)});return new g.Z({a:(0,_.sX)(l.a,u.a,s),...n})}if("interpolate-lab"===this.operator){const t=(0,b.Y3)(l),e=(0,b.Y3)(u),r=(0,b.xr)({l:(0,_.sX)(t.l,e.l,s),a:(0,_.sX)(t.a,e.a,s),b:(0,_.sX)(t.b,e.b,s)});return new g.Z({a:(0,_.sX)(l.a,u.a,s),...r})}throw new Error(`Unexpected operator "${this.operator}"`)}interpolationUniformValue(t,e){const r=this.stops;if(1===r.length)return 0;if(t>=r[r.length-1][0])return 0;let n=0;for(;++n<r.length&&!(t<r[n][0]););const a=r[n-1][0],i=r[n][0];return X.interpolationRatio(this.interpolation,e,a,i)}getInterpolationRange(t){const e=this.stops;if(1===e.length){const t=e[0][0];return[t,t]}const r=e[e.length-1][0];if(t>=r)return[r,r];let n=0;for(;++n<e.length&&!(t<e[n][0]););return[e[n-1][0],e[n][0]]}static interpolationRatio(t,e,r,n){let a=0;return"linear"===t[0]?a=X.exponentialInterpolationRatio(e,1,r,n):"exponential"===t[0]?a=X.exponentialInterpolationRatio(e,t[1],r,n):"cubic-bezier"===t[0]&&(a=v(t[1],t[2],t[3],t[4])(X.exponentialInterpolationRatio(e,1,r,n),1e-5)),a<0?a=0:a>1&&(a=1),a}static exponentialInterpolationRatio(t,e,r,n){const a=n-r;if(0===a)return 0;const i=t-r;return 1===e?i/a:(e**i-1)/(e**a-1)}}class G{constructor(t,e,r){this.type=t,this.input=e,this.stops=r}static parse(t,e){if(t.length<5)throw new Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw new Error('"step" expects an even number of arguments');const r=gt(t[1],e,T);let n;const a=[];a.push([-1/0,gt(t[2],e)]);for(let r=3;r<t.length;r+=2){const i=t[r];if("number"!=typeof i)throw new Error('"step" requires stop inputs as literal numbers');if(a.length&&a[a.length-1][0]>=i)throw new Error('"step" requires strictly ascending stop inputs');const o=gt(t[r+1],e);n||(n=o.type),a.push([i,o])}return new G(n,r,a)}evaluate(t,e){const r=this.stops;if(1===r.length)return r[0][1].evaluate(t,e);const n=this.input.evaluate(t,e);let a=0;for(;++a<r.length&&!(n<r[a][0]););return this.stops[a-1][1].evaluate(t,e)}}class K{constructor(t,e){this.type=t,this.output=e}static parse(t,e,r){if(t.length<4)throw new Error('"let" expects at least 3 arguments');if(t.length%2==1)throw new Error('"let" expects an odd number of arguments');const n=new z(e);for(let r=1;r<t.length-1;r+=2){const a=t[r];if("string"!=typeof a)throw new Error(`"let" requires a string to define variable names - found ${a}`);n.add(a,gt(t[r+1],e))}const a=gt(t[t.length-1],n,r);return new K(a.type,a)}evaluate(t,e){return this.output.evaluate(t,e)}}class W{constructor(t,e){this.type=t,this.output=e}static parse(t,e,r){if(2!==t.length||"string"!=typeof t[1])throw new Error('"var" requires just one literal string argument');const n=e.get(t[1]);if(!n)throw new Error(`${t[1]} must be defined before being used in a "var" expression`);return new W(r||M,n)}evaluate(t,e){return this.output.evaluate(t,e)}}class J{constructor(t,e,r){this.type=t,this.index=e,this.array=r}static parse(t,e){if(3!==t.length)throw new Error('"at" expects 2 arguments');const r=gt(t[1],e,T),n=gt(t[2],e);return new J(n.type.itemType,r,n)}evaluate(t,e){const r=this.index.evaluate(t,e),n=this.array.evaluate(t,e);if(r<0||r>=n.length)throw new Error('"at" index out of bounds');if(r!==Math.floor(r))throw new Error('"at" index must be an integer');return n[r]}}class Q{constructor(t,e){this.key=t,this.obj=e,this.type=M}static parse(t,e){let r,n;switch(t.length){case 2:return r=gt(t[1],e),new Q(r);case 3:return r=gt(t[1],e),n=gt(t[2],e),new Q(r,n);default:throw new Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){const r=this.key.evaluate(t,e);return this.obj?this.obj.evaluate(t,e)[r]:null==t?void 0:t.values[r]}}class tt{constructor(t,e){this.key=t,this.obj=e,this.type=P}static parse(t,e){let r,n;switch(t.length){case 2:return r=gt(t[1],e),new tt(r);case 3:return r=gt(t[1],e),n=gt(t[2],e),new tt(r,n);default:throw new Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){const r=this.key.evaluate(t,e);return this.obj?r in this.obj.evaluate(t,e):!(null==t||!t.values[r])}}class et{constructor(t,e){this.key=t,this.vals=e,this.type=P}static parse(t,e){if(3!==t.length)throw new Error('"in" expects 2 arguments');return new et(gt(t[1],e),gt(t[2],e))}evaluate(t,e){const r=this.key.evaluate(t,e);return-1!==this.vals.evaluate(t,e).indexOf(r)}}class rt{constructor(t,e,r){this.item=t,this.array=e,this.from=r,this.type=T}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"index-of" expects 3 or 4 arguments');const r=gt(t[1],e),n=gt(t[2],e);if(4===t.length){const a=gt(t[3],e,T);return new rt(r,n,a)}return new rt(r,n)}evaluate(t,e){const r=this.item.evaluate(t,e),n=this.array.evaluate(t,e);if(this.from){const a=this.from.evaluate(t,e);if(a!==Math.floor(a))throw new Error('"index-of" index must be an integer');return n.indexOf(r,a)}return n.indexOf(r)}}class nt{constructor(t){this.arg=t,this.type=T}static parse(t,e){if(2!==t.length)throw new Error('"length" expects 2 arguments');const r=gt(t[1],e);return new nt(r)}evaluate(t,e){const r=this.arg.evaluate(t,e);if("string"==typeof r)return r.length;if(Array.isArray(r))return r.length;throw new Error('"length" expects string or array')}}class at{constructor(t,e,r,n){this.type=t,this.array=e,this.from=r,this.to=n}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"slice" expects 2 or 3 arguments');const r=gt(t[1],e),n=gt(t[2],e,T);if(n.type!==T)throw new Error('"slice" index must return a number');if(4===t.length){const a=gt(t[3],e,T);if(a.type!==T)throw new Error('"slice" index must return a number');return new at(r.type,r,n,a)}return new at(r.type,r,n)}evaluate(t,e){const r=this.array.evaluate(t,e);if(!Array.isArray(r)&&"string"!=typeof r)throw new Error('"slice" input must be an array or a string');const n=this.from.evaluate(t,e);if(n<0||n>=r.length)throw new Error('"slice" index out of bounds');if(n!==Math.floor(n))throw new Error('"slice" index must be an integer');if(this.to){const a=this.to.evaluate(t,e);if(a<0||a>=r.length)throw new Error('"slice" index out of bounds');if(a!==Math.floor(a))throw new Error('"slice" index must be an integer');return r.slice(n,a)}return r.slice(n)}}class it{constructor(){this.type=P}static parse(t){if(1!==t.length)throw new Error('"has-id" expects no arguments');return new it}evaluate(t,e){return t&&void 0!==t.id}}class ot{constructor(t,e){this.args=t,this.calculate=e,this.type=T}static parse(t,e,r){const n=t.slice(1).map((t=>gt(t,e)));return new ot(n,r)}evaluate(t,e){let r;return this.args&&(r=this.args.map((r=>r.evaluate(t,e)))),this.calculate(r)}}class st{constructor(t,e){this.args=t,this.calculate=e,this.type=T}static parse(t,e){const r=t.slice(1).map((t=>gt(t,e)));return new st(r,st.ops[t[0]])}evaluate(t,e){let r;return this.args&&(r=this.args.map((r=>r.evaluate(t,e)))),this.calculate(r)}}st.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])};class lt{constructor(t){this.args=t,this.type=E}static parse(t,e){return new lt(t.slice(1).map((t=>gt(t,e))))}evaluate(t,e){return this.args.map((r=>r.evaluate(t,e))).join("")}}class ut{constructor(t,e){this.arg=t,this.calculate=e,this.type=E}static parse(t,e){if(2!==t.length)throw new Error(`${t[0]} expects 1 argument`);const r=gt(t[1],e);return new ut(r,ut.ops[t[0]])}evaluate(t,e){return this.calculate(this.arg.evaluate(t,e))}}ut.ops={downcase:t=>t.toLowerCase(),upcase:t=>t.toUpperCase()};class ct{constructor(t){this.args=t,this.type=L}static parse(t,e){if(4!==t.length)throw new Error('"rgb" expects 3 arguments');const r=t.slice(1).map((t=>gt(t,e)));return new ct(r)}evaluate(t,e){const r=this._validate(this.args[0].evaluate(t,e)),n=this._validate(this.args[1].evaluate(t,e)),a=this._validate(this.args[2].evaluate(t,e));return new g.Z({r,g:n,b:a})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}}class ht{constructor(t){this.args=t,this.type=L}static parse(t,e){if(5!==t.length)throw new Error('"rgba" expects 4 arguments');const r=t.slice(1).map((t=>gt(t,e)));return new ht(r)}evaluate(t,e){const r=this._validate(this.args[0].evaluate(t,e)),n=this._validate(this.args[1].evaluate(t,e)),a=this._validate(this.args[2].evaluate(t,e)),i=this._validateAlpha(this.args[3].evaluate(t,e));return new g.Z({r,g:n,b:a,a:i})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if("number"!=typeof t||t<0||t>1)throw new Error(`${t}: invalid alpha color component`);return t}}class pt{constructor(t){this.color=t,this.type=D(T,4)}static parse(t,e){if(2!==t.length)throw new Error('"to-rgba" expects 1 argument');const r=gt(t[1],e);return new pt(r)}evaluate(t,e){return new g.Z(this.color.evaluate(t,e)).toRgba()}}class ft{constructor(t,e){this.type=t,this.args=e}static parse(t,e){const r=t[0];if(t.length<2)throw new Error(`${r} expects at least one argument`);let n,a=1;if("array"===r){if(t.length>2){switch(t[1]){case"string":n=E;break;case"number":n=T;break;case"boolean":n=P;break;default:throw new Error('"array" type argument must be string, number or boolean')}a++}else n=M;let e;if(t.length>3){if(e=t[2],null!==e&&("number"!=typeof e||e<0||e!==Math.floor(e)))throw new Error('"array" length argument must be a positive integer literal');a++}n=D(n,e)}else switch(r){case"string":n=E;break;case"number":n=T;break;case"boolean":n=P;break;case"object":n=I}const i=[];for(;a<t.length;a++){const r=gt(t[a],e);i.push(r)}return new ft(n,i)}evaluate(t,e){let r;for(const n of this.args){const a=n.evaluate(t,e);if(r=O(a),S(r,this.type))return a}throw new Error(`Expected ${A(this.type)} but got ${A(r)}`)}}class yt{constructor(t,e){this.type=t,this.args=e}static parse(t,e){const r=t[0],n=yt.types[r];if(n===P||n===E){if(2!==t.length)throw new Error(`${r} expects one argument`)}else if(t.length<2)throw new Error(`${r} expects at least one argument`);const a=[];for(let r=1;r<t.length;r++){const n=gt(t[r],e);a.push(n)}return new yt(n,a)}evaluate(t,e){if(this.type===P)return Boolean(this.args[0].evaluate(t,e));if(this.type===E)return U(this.args[0].evaluate(t,e));if(this.type===T){for(const r of this.args){const n=Number(r.evaluate(t,e));if(!isNaN(n))return n}return null}if(this.type===L){for(const r of this.args)try{const n=yt.toColor(r.evaluate(t,e));if(n instanceof g.Z)return n}catch{}return null}}static toBoolean(t){return Boolean(t)}static toString(t){return U(t)}static toNumber(t){const e=Number(t);if(isNaN(e))throw new Error(`"${t}" is not a number`);return e}static toColor(t){if(t instanceof g.Z)return t;if("string"==typeof t){const e=g.Z.fromString(t);if(e)return e;throw new Error(`"${t}" is not a color`)}if(Array.isArray(t))return g.Z.fromArray(t);throw new Error(`"${t}" is not a color`)}}yt.types={"to-boolean":P,"to-color":L,"to-number":T,"to-string":E};class dt{constructor(t){this.val=t,this.type=O(t)}static parse(t){if(2!==t.length)throw new Error('"literal" expects 1 argument');return new dt(t[1])}evaluate(t,e){return this.val}}class mt{constructor(t){this.arg=t,this.type=E}static parse(t,e){if(2!==t.length)throw new Error('"typeof" expects 1 argument');return new mt(gt(t[1],e))}evaluate(t,e){return A(O(this.arg.evaluate(t,e)))}}function gt(t,e,r){const n=typeof t;if("string"===n||"boolean"===n||"number"===n||null===t){if(r)switch(r.kind){case"string":"string"!==n&&(t=yt.toString(t));break;case"number":"number"!==n&&(t=yt.toNumber(t));break;case"color":t=yt.toColor(t)}t=["literal",t]}if(!Array.isArray(t)||0===t.length)throw new Error("Expression must be a non empty array");const a=t[0];if("string"!=typeof a)throw new Error("First element of expression must be a string");const i=bt[a];if(void 0===i)throw new Error(`Invalid expression operator "${a}"`);if(!i)throw new Error(`Unimplemented expression operator "${a}"`);return i.parse(t,e,r)}const bt={array:ft,boolean:ft,collator:null,format:null,image:null,literal:dt,number:ft,"number-format":null,object:ft,string:ft,"to-boolean":yt,"to-color":yt,"to-number":yt,"to-string":yt,typeof:mt,accumulated:null,"feature-state":null,"geometry-type":B,id:R,"line-progress":null,properties:q,at:J,get:Q,has:tt,in:et,"index-of":rt,length:nt,slice:at,"!":C,"!=":class extends N{static parse(t,e){return N.parse(t,e,((t,e)=>t!==e))}},"<":class extends N{static parse(t,e){return N.parse(t,e,((t,e)=>t<e))}},"<=":class extends N{static parse(t,e){return N.parse(t,e,((t,e)=>t<=e))}},"==":class extends N{static parse(t,e){return N.parse(t,e,((t,e)=>t===e))}},">":class extends N{static parse(t,e){return N.parse(t,e,((t,e)=>t>e))}},">=":class extends N{static parse(t,e){return N.parse(t,e,((t,e)=>t>=e))}},all:$,any:V,case:j,coalesce:Y,match:H,within:null,interpolate:X,"interpolate-hcl":X,"interpolate-lab":X,step:G,let:K,var:W,concat:lt,downcase:ut,"is-supported-script":null,"resolved-locale":null,upcase:ut,rgb:ct,rgba:ht,"to-rgba":pt,"-":class extends ot{static parse(t,e){switch(t.length){case 2:return ot.parse(t,e,(t=>-t[0]));case 3:return ot.parse(t,e,(t=>t[0]-t[1]));default:throw new Error('"-" expects 1 or 2 arguments')}}},"*":class extends ot{static parse(t,e){return ot.parse(t,e,(t=>{let e=1;for(const r of t)e*=r;return e}))}},"/":class extends ot{static parse(t,e){if(3===t.length)return ot.parse(t,e,(t=>t[0]/t[1]));throw new Error('"/" expects 2 arguments')}},"%":class extends ot{static parse(t,e){if(3===t.length)return ot.parse(t,e,(t=>t[0]%t[1]));throw new Error('"%" expects 2 arguments')}},"^":class extends ot{static parse(t,e){if(3===t.length)return ot.parse(t,e,(t=>t[0]**t[1]));throw new Error('"^" expects 1 or 2 arguments')}},"+":class extends ot{static parse(t,e){return ot.parse(t,e,(t=>{let e=0;for(const r of t)e+=r;return e}))}},abs:st,acos:st,asin:st,atan:st,ceil:st,cos:st,e:st,floor:st,ln:st,ln2:st,log10:st,log2:st,max:st,min:st,pi:st,round:st,sin:st,sqrt:st,tan:st,zoom:F,"heatmap-density":null,"has-id":it,none:Z};class vt{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(t){return console.log(t.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{const e=gt(t,null,P);return new vt(e)}catch(t){return console.log(t.message),null}}static isLegacyFilter(t){if(!Array.isArray(t))return!0;if(0===t.length)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return 3===t.length&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"in":return t.length>=3&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e<t.length;e++)if(!this.isLegacyFilter(t[1]))return!1;return!0;case"has":return 2===t.length&&("$id"===t[1]||"$type"===t[1]);default:return!1}}static convertLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;const e=t[0];if(1===t.length)return"any"!==e;switch(e){case"==":return vt.convertComparison("==",t[1],t[2]);case"!=":return vt.negate(vt.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return vt.convertComparison(e,t[1],t[2]);case"in":return vt.convertIn(t[1],t.slice(2));case"!in":return vt.negate(vt.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return vt.convertCombining(e,t.slice(1));case"has":return vt.convertHas(t[1]);case"!has":return vt.negate(vt.convertHas(t[1]));default:throw new Error("Unexpected legacy filter.")}}static convertComparison(t,e,r){switch(e){case"$type":return[t,["geometry-type"],r];case"$id":return[t,["id"],r];default:return[t,["get",e],r]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}class wt{}wt.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}},wt.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}},wt.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"line-cap":{type:"enum",values:["butt","round","square"],default:0},"line-join":{type:"enum",values:["bevel","round","miter"],default:2},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}},wt.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:0},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:2},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:0},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[0]}},wt.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}},wt.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}},wt.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:0}},wt.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"line-width":{type:"number",minimum:0,default:1}},wt.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:0}},wt.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}},wt.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:0}};class _t{constructor(t,e){let r;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":r=!0;break;case"array":r="number"===t.value;break;default:r=!1}if(null==e&&(e=t.default),Array.isArray(e)&&e.length>0&&bt[e[0]]){const r={number:T,color:L,string:E,boolean:P,enum:E};try{const n=gt(e,null,"array"===t.type?D(r[t.value]||M,t.length):r[t.type]);this.getValue=this._buildExpression(n,t),this.isDataDriven=!0,n instanceof X&&n.input instanceof F&&(this.interpolator=n)}catch(e){console.log(e.message),this.getValue=this._buildSimple(t.default)}return}r&&"interval"===e.type&&(r=!1);const n=e&&e.stops&&e.stops.length>0;if(n)for(const r of e.stops)r[1]=this._validate(r[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(void 0!==e.default&&(e.default=this._validate(e.default,t)),n)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=r?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else n?this.getValue=r?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(t<e.minimum)return e.minimum;if(t>e.maximum)return e.maximum}else"color"===e.type?t=_t._parseColor(t):"enum"===e.type?"string"==typeof t&&(t=e.values.indexOf(t)):"array"===e.type&&"enum"===e.value?t=t.map((t=>"string"==typeof t?e.values.indexOf(t):t)):"string"===e.type&&(t=U(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(r,n)=>{try{const a=t.evaluate(n,r);return void 0===a?e.default:this._validate(a,e)}catch(t){return console.log(t.message),e.default}}}_buildIdentity(t,e){return(r,n)=>{let a;return n&&(a=n.values[t.property]),void 0!==a&&(a=this._validate(a,e)),null!=a?a:void 0!==t.default?t.default:e.default}}_buildCategorical(t,e){return(r,n)=>{let a;return n&&(a=n.values[t.property]),a=this._categorical(a,t.stops),void 0!==a?a:void 0!==t.default?t.default:e.default}}_buildInterval(t,e){return(r,n)=>{let a;return n&&(a=n.values[t.property]),"number"==typeof a?this._interval(a,t.stops):void 0!==t.default?t.default:e.default}}_buildInterpolate(t,e){return(r,n)=>{let a;return n&&(a=n.values[t.property]),"number"==typeof a?this._interpolate(a,t.stops,t.base||1):void 0!==t.default?t.default:e.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){const r=e.length;for(let n=0;n<r;n++)if(e[n][0]===t)return e[n][1]}_interval(t,e){const r=e.length;let n=0;for(let a=0;a<r&&e[a][0]<=t;a++)n=a;return e[n][1]}_interpolate(t,e,r){let n,a;const i=e.length;for(let r=0;r<i;r++){const i=e[r];if(!(i[0]<=t)){a=i;break}n=i}if(n&&a){const e=a[0]-n[0],i=t-n[0],o=1===r?i/e:(r**i-1)/(r**e-1);if(Array.isArray(n[1])){const t=n[1],e=a[1],r=[];for(let n=0;n<t.length;n++)r.push((0,_.sX)(t[n],e[n],o));return r}return(0,_.sX)(n[1],a[1],o)}return n?n[1]:a?a[1]:void 0}static _isEmpty(t){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:("string"==typeof t&&(t=new g.Z(t)),t instanceof g.Z&&!this._isEmpty(t)?g.Z.toUnitRGBA(t):void 0)}}var xt=r(16534);class Tt{constructor(t,e,r,n){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"],this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=r,this.uid=n,t){case 0:this._layoutDefinition=wt.backgroundLayoutDefinition,this._paintDefinition=wt.backgroundPaintDefinition;break;case 1:this._layoutDefinition=wt.fillLayoutDefinition,this._paintDefinition=wt.fillPaintDefinition;break;case 2:this._layoutDefinition=wt.lineLayoutDefinition,this._paintDefinition=wt.linePaintDefinition;break;case 3:this._layoutDefinition=wt.symbolLayoutDefinition,this._paintDefinition=wt.symbolPaintDefinition;break;case 4:this._layoutDefinition=wt.circleLayoutDefinition,this._paintDefinition=wt.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return void 0!==this._featureFilter?this._featureFilter:this._featureFilter=vt.createFilter(this.filter)}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,r){let n;const a=this._layoutProperties[t];return a&&(n=a.getValue(e,r)),void 0===n&&(n=this._layoutDefinition[t].default),n}getPaintValue(t,e,r){let n;const a=this._paintProperties[t];return a&&(n=a.getValue(e,r)),void 0===n&&(n=this._paintDefinition[t].default),n}isPainterDataDriven(){const t=this._paintProperties;if(t)for(const e in t)if(t[e].isDataDriven)return!0;return!1}_parseLayout(t){const e={};for(const r in t){const n=this._layoutDefinition[r];n&&(e[r]=new _t(n,t[r]))}return e}_parsePaint(t){const e={};for(const r in t){const n=this._paintDefinition[r];n&&(e[r]=new _t(n,t[r]))}return e}computeAttributesKey(t,e,r,n){let a=0,i=0;for(const t of e){let e=3;if(!t||t!==n){const n=r[t],{isLayout:a,isOptional:i}=n,o=a?this.getLayoutProperty(t):this.getPaintProperty(t);e=null!=o&&o.interpolator?2:null!=o&&o.isDataDriven?1:i&&!o?3:0}i|=e<<a,a+=2}return i<<3|t}}class Et extends Tt{constructor(t,e,r,n){super(t,e,r,n),this.backgroundMaterial=new l(this.computeAttributesKey(0,l.ATTRIBUTES,l.ATTRIBUTES_INFO))}}class Pt extends Tt{constructor(t,e,r,n){super(t,e,r,n);const a=this.getPaintProperty("fill-color"),i=this.getPaintProperty("fill-opacity"),o=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=null==a?void 0:a.isDataDriven,this.hasDataDrivenOpacity=null==i?void 0:i.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||(null==o?void 0:o.isDataDriven);const s=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!s,this.hasDataDrivenOutlineColor=null==s?void 0:s.isDataDriven,this.hasDataDrivenOutline=s?s.isDataDriven:!!a&&a.isDataDriven,this.hasDataDrivenOutline=(s?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new c(this.computeAttributesKey(1,c.ATTRIBUTES,c.ATTRIBUTES_INFO)),this.outlineMaterial=new h(this.computeAttributesKey(2,this.outlineUsesFillColor?h.ATTRIBUTES_FILL:h.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?h.ATTRIBUTES_INFO_FILL:h.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}}class Lt extends Tt{constructor(t,e,r,n){var a,i,o,s,l,u,c,h,f;super(t,e,r,n);const y=this.getPaintProperty("line-pattern");if(this.lineMaterial=new p(this.computeAttributesKey(3,p.ATTRIBUTES,p.ATTRIBUTES_INFO,y?"line-dasharray":"")),this.hasDataDrivenLine=(null==(a=this.getPaintProperty("line-blur"))?void 0:a.isDataDriven)||(null==(i=this.getPaintProperty("line-color"))?void 0:i.isDataDriven)||(null==(o=this.getPaintProperty("line-gap-width"))?void 0:o.isDataDriven)||(null==(s=this.getPaintProperty("line-offset"))?void 0:s.isDataDriven)||(null==(l=this.getPaintProperty("line-opacity"))?void 0:l.isDataDriven)||(null==(u=this.getPaintProperty("line-pattern"))?void 0:u.isDataDriven)||(null==(c=this.getPaintProperty("line-dasharray"))?void 0:c.isDataDriven)||(null==(h=this.getLayoutProperty("line-cap"))?void 0:h.isDataDriven)||(null==(f=this.getPaintProperty("line-width"))?void 0:f.isDataDriven),this.canUseThinTessellation=!1,!this.hasDataDrivenLine){const t=this.getPaintProperty("line-width");if(!t||"number"==typeof t&&.5*t<xt.tQ){const t=this.getPaintProperty("line-offset");(!t||"number"==typeof t&&0===t)&&(this.canUseThinTessellation=!0)}}}getDashKey(t,e){let r;switch(e){default:r="Butt";break;case 1:r="Round";break;case 2:r="Square"}return`dasharray-[${t.toString()}]-${r}`}}class It extends Tt{constructor(t,e,r,n){var a,i,o,s,l,u,c,h,p,f,y,g;super(t,e,r,n),this.iconMaterial=new d(this.computeAttributesKey(4,d.ATTRIBUTES,d.ATTRIBUTES_INFO)),this.textMaterial=new m(this.computeAttributesKey(6,m.ATTRIBUTES,m.ATTRIBUTES_INFO)),this.hasDataDrivenIcon=(null==(a=this.getPaintProperty("icon-color"))?void 0:a.isDataDriven)||(null==(i=this.getPaintProperty("icon-halo-blur"))?void 0:i.isDataDriven)||(null==(o=this.getPaintProperty("icon-halo-color"))?void 0:o.isDataDriven)||(null==(s=this.getPaintProperty("icon-halo-width"))?void 0:s.isDataDriven)||(null==(l=this.getPaintProperty("icon-opacity"))?void 0:l.isDataDriven)||(null==(u=this.getLayoutProperty("icon-size"))?void 0:u.isDataDriven),this.hasDataDrivenText=(null==(c=this.getPaintProperty("text-color"))?void 0:c.isDataDriven)||(null==(h=this.getPaintProperty("text-halo-blur"))?void 0:h.isDataDriven)||(null==(p=this.getPaintProperty("text-halo-color"))?void 0:p.isDataDriven)||(null==(f=this.getPaintProperty("text-halo-width"))?void 0:f.isDataDriven)||(null==(y=this.getPaintProperty("text-opacity"))?void 0:y.isDataDriven)||(null==(g=this.getLayoutProperty("text-size"))?void 0:g.isDataDriven)}}class Mt extends Tt{constructor(t,e,r,n){super(t,e,r,n),this.circleMaterial=new u(this.computeAttributesKey(5,u.ATTRIBUTES,u.ATTRIBUTES_INFO))}}class Dt{constructor(t,e,r){var n,a,i,o,s;let l;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=r?0:1),l=t.getLayoutProperty("icon-anchor"),null!=(n=l)&&n.isDataDriven?this._anchorProp=l:this.anchor=t.getLayoutValue("icon-anchor",e),l=t.getLayoutProperty("icon-offset"),null!=(a=l)&&a.isDataDriven?this._offsetProp=l:this.offset=t.getLayoutValue("icon-offset",e),l=t.getLayoutProperty("icon-padding"),null!=(i=l)&&i.isDataDriven?this._paddingProp=l:this.padding=t.getLayoutValue("icon-padding",e),l=t.getLayoutProperty("icon-rotate"),null!=(o=l)&&o.isDataDriven?this._rotateProp=l:this.rotate=t.getLayoutValue("icon-rotate",e),l=t.getLayoutProperty("icon-size"),null!=(s=l)&&s.isDataDriven?this._sizeProp=l:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class kt{constructor(t,e,r){var n,a,i,o,s,l,u,c,h,p,f;let y;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=r?0:1),y=t.getLayoutProperty("text-anchor"),null!=(n=y)&&n.isDataDriven?this._anchorProp=y:this.anchor=t.getLayoutValue("text-anchor",e),y=t.getLayoutProperty("text-justify"),null!=(a=y)&&a.isDataDriven?this._justifyProp=y:this.justify=t.getLayoutValue("text-justify",e),y=t.getLayoutProperty("text-letter-spacing"),null!=(i=y)&&i.isDataDriven?this._letterSpacingProp=y:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),y=t.getLayoutProperty("text-line-height"),null!=(o=y)&&o.isDataDriven?this._lineHeightProp=y:this.lineHeight=t.getLayoutValue("text-line-height",e),y=t.getLayoutProperty("text-max-angle"),null!=(s=y)&&s.isDataDriven?this._maxAngleProp=y:this.maxAngle=t.getLayoutValue("text-max-angle",e),y=t.getLayoutProperty("text-max-width"),null!=(l=y)&&l.isDataDriven?this._maxWidthProp=y:this.maxWidth=t.getLayoutValue("text-max-width",e),y=t.getLayoutProperty("text-offset"),null!=(u=y)&&u.isDataDriven?this._offsetProp=y:this.offset=t.getLayoutValue("text-offset",e),y=t.getLayoutProperty("text-padding"),null!=(c=y)&&c.isDataDriven?this._paddingProp=y:this.padding=t.getLayoutValue("text-padding",e),y=t.getLayoutProperty("text-rotate"),null!=(h=y)&&h.isDataDriven?this._rotateProp=y:this.rotate=t.getLayoutValue("text-rotate",e),y=t.getLayoutProperty("text-size"),null!=(p=y)&&p.isDataDriven?this._sizeProp=y:this.size=t.getLayoutValue("text-size",e),y=t.getLayoutProperty("text-writing-mode"),null!=(f=y)&&f.isDataDriven?this._writingModeProp=y:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}},51785:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(66090);class a{constructor(t,e){if(this._style=t,this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,t.layers||(t.layers=[]),this.version=parseFloat(t.version),this.sprite=e?e.spriteUrl:t.sprite,this.glyphs=e?e.glyphsUrl:t.glyphs,this.layers=t.layers.map(((t,e,r)=>this._create(t,e,r))),this.layers){let t;for(let e=0;e<this.layers.length;e++)t=this.layers[e],this._layerByName[t.id.toLowerCase()]=t,this._uidToLayer.set(t.uid,t),0===t.type&&this.backgroundBucketIds.push(t.id)}this._identifyRefLayers()}isPainterDataDriven(t){const e=this._layerByName[t.toLowerCase()];return!!e&&e.isPainterDataDriven()}getStyleLayerId(t){return t>=this.layers.length?null:this.layers[t].id}getStyleLayerByUID(t){const e=this._uidToLayer.get(t);return null!=e?e:null}getStyleLayerIndex(t){const e=this._layerByName[t.toLowerCase()];return e?this.layers.indexOf(e):-1}setStyleLayer(t,e){if(!t||!t.id)return;const r=this._style;null!=e&&e>=this.layers.length&&(e=this.layers.length-1);let n,i=!0;const o=this._layerByName[t.id.toLowerCase()];if(o){const s=this.layers.indexOf(o);e||(e=s),e===s?(i=!1,n=a._recreateLayer(t,o),this.layers[e]=n,r.layers[e]=t):(this.layers.splice(s,1),r.layers.splice(s,1),n=this._create(t,e,this.layers),this.layers.splice(e,0,n),r.layers.splice(e,0,t))}else n=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(n),r.layers.push(t)):(this.layers.splice(e,0,n),r.layers.splice(e,0,t));this._layerByName[t.id.toLowerCase()]=n,this._uidToLayer.set(n.uid,n),i&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){const e=this._layerByName[t.toLowerCase()];return e?{type:e.typeName,id:e.id,source:e.source,"source-layer":e.sourceLayer,minzoom:e.minzoom,maxzoom:e.maxzoom,filter:e.filter,layout:e.layout,paint:e.paint}:null}deleteStyleLayer(t){const e=this._layerByName[t.toLowerCase()];if(e){delete this._layerByName[t.toLowerCase()],this._uidToLayer.delete(e.uid);const r=this.layers.indexOf(e);this.layers.splice(r,1),this._style.layers.splice(r,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(t){return this._layerByName[t.toLowerCase()]}getLayoutProperties(t){const e=this._layerByName[t.toLowerCase()];return e?e.layout:null}getPaintProperties(t){const e=this._layerByName[t.toLowerCase()];return e?e.paint:null}setPaintProperties(t,e){const r=this._layerByName[t.toLowerCase()];if(!r)return;const n={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:r.layout,paint:e},i=a._recreateLayer(n,r),o=this.layers.indexOf(r);this.layers[o]=i,this._style.layers[o].paint=e,this._layerByName[r.id.toLowerCase()]=i,this._uidToLayer.set(r.uid,i)}setLayoutProperties(t,e){const r=this._layerByName[t.toLowerCase()];if(!r)return;const n={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:e,paint:r.paint},i=a._recreateLayer(n,r),o=this.layers.indexOf(r);this.layers[o]=i,this._style.layers[o].layout=e,this._layerByName[r.id.toLowerCase()]=i,this._uidToLayer.set(r.uid,i)}setStyleLayerVisibility(t,e){const r=this._layerByName[t.toLowerCase()];if(!r)return;const n=r.layout||{};n.visibility=e;const i={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:n,paint:r.paint},o=a._recreateLayer(i,r),s=this.layers.indexOf(r);this.layers[s]=o,this._style.layers[s].layout=n,this._layerByName[r.id.toLowerCase()]=o,this._uidToLayer.set(r.uid,o)}getStyleLayerVisibility(t){var e;const r=this._layerByName[t.toLowerCase()];if(!r)return"none";const n=r.layout;return null!=(e=null==n?void 0:n.visibility)?e:"visible"}_recomputeZValues(){const t=this.layers,e=1/(t.length+1);for(let r=0;r<t.length;r++)t[r].z=1-(1+r)*e}_identifyRefLayers(){const t=[],e=[];let r=0;for(const i of this.layers){const o=i.layout;if(1===i.type){var n;const e=i;let a=i.source+"|"+i.sourceLayer;a+=null!=(n="|"+(null==o?void 0:o.visibility))?n:"",a+="|"+i.minzoom,a+="|"+i.maxzoom,a+="|"+JSON.stringify(i.filter),(e.hasDataDrivenFill||e.hasDataDrivenOutline)&&(a+="|"+r),t.push({key:a,layer:i})}else if(2===i.type){var a;const t=i;let n=i.source+"|"+i.sourceLayer;n+=null!=(a="|"+(null==o?void 0:o.visibility))?a:"",n+="|"+i.minzoom,n+="|"+i.maxzoom,n+="|"+JSON.stringify(i.filter),n+="|"+(void 0!==o?o["line-cap"]:""),n+="|"+(void 0!==o?o["line-join"]:""),t.hasDataDrivenLine&&(n+="|"+r),e.push({key:n,layer:i})}++r}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){let e,r;t.sort(((t,e)=>t.key<e.key?-1:t.key>e.key?1:0));const n=t.length;for(let a=0;a<n;a++){const i=t[a];if(i.key===e)i.layer.refLayerId=r;else if(e=i.key,r=i.layer.id,1===i.layer.type){if(!i.layer.getPaintProperty("fill-outline-color"))for(let o=a+1;o<n;o++){const n=t[o];if(n.key!==e)break;if(n.layer.getPaintProperty("fill-outline-color")){t[a]=n,t[o]=i,r=n.layer.id;break}}}else if(2===i.layer.type){let o=i.layer;for(let s=a+1;s<n;s++){const n=t[s];if(n.key!==e)break;const l=n.layer;(o.canUseThinTessellation&&!l.canUseThinTessellation||!o.canUseThinTessellation&&(l.getPaintProperty("line-pattern")||l.getPaintProperty("line-dasharray")))&&(o=l,t[a]=n,t[s]=i,r=n.layer.id)}}}}_create(t,e,r){const a=1-(1+e)*(1/(r.length+1)),i=this._runningId++;switch(t.type){case"background":return new n.Et(0,t,a,i);case"fill":return new n.Le(1,t,a,i);case"line":return new n.gf(2,t,a,i);case"symbol":return new n.jG(3,t,a,i);case"raster":throw new Error("Unsupported vector tile raster layer");case"circle":return new n.sj(4,t,a,i)}throw new Error("Unknown vector tile layer")}static _recreateLayer(t,e){switch(t.type){case"background":return new n.Et(0,t,e.z,e.uid);case"fill":return new n.Le(1,t,e.z,e.uid);case"line":return new n.gf(2,t,e.z,e.uid);case"symbol":return new n.jG(3,t,e.z,e.uid);case"raster":throw new Error("Unsupported vector tile raster layer");case"circle":return new n.sj(4,t,e.z,e.uid)}}}},16534:(t,e,r)=>{r.d(e,{xl:()=>u,aK:()=>c,eF:()=>l,XJ:()=>d,uG:()=>p,xm:()=>o,m4:()=>h,MI:()=>g,AI:()=>n,Ip:()=>m,ru:()=>a,fL:()=>y,Iw:()=>s,tQ:()=>f,I_:()=>i});const n=1e-30,a=4294967295,i=512,o=29,s=8,l={metrics:{width:15,height:17,left:0,top:-7,advance:14}},u=1,c=2,h=2,p=1,f=1.05,y=2,d=8,m=500,g=10}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8677,3172],{99514:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(35671);function i(e){return"oid"===e.type||"esriFieldTypeOID"===e.type}function s(e){return"global-id"===e.type||"esriFieldTypeGlobalID"===e.type}class a{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 a of e){const e=a&&a.name;if(e){const l=o(e);this._fieldsMap.set(e,a),this._fieldsMap.set(l,a),t.push(l),"date"===(r=a).type||"esriFieldTypeDate"===r.type?(this.dateFields.push(a),this._dateFieldsSet.add(a)):(0,n.H7)(a)&&(this._numericFieldsSet.add(a),this.numericFields.push(a)),i(a)||s(a)||(a.editable=null==a.editable||!!a.editable,a.nullable=null==a.nullable||!!a.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)i(e)||s(e)||e.nullable||void 0!==(0,n.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(o(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 o(e){return e.toLowerCase().trim()}},35671:(e,t,r)=>{r.d(t,{io:()=>y,AB:()=>h,gd:()=>p,Q0:()=>m,YN:()=>u,UF:()=>c,O5:()=>g,os:()=>w,H7:()=>L,qN:()=>x,Pz:()=>D,Qc:()=>N,vP:()=>R}),r(20102);var n,i,s=r(78286);(i=n||(n={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",i.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var a=r(59266);const o=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],l=["field","normalizationField"];function u(e,t){if(null!=e&&null!=t)for(const r of Array.isArray(e)?e:[e])if(d(o,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)d(l,e,t)}function d(e,t,r){if(e)for(const n of e){const e=(0,s.hS)(n,t),i=e&&"function"!=typeof e&&r.get(e);i&&(0,s.RB)(n,i.name,t)}}function c(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const r=t.get(e.startField),n=t.get(e.endField);e.startField=r&&r.name||null,e.endField=n&&n.name||null}else{const r=t.get(e.startTimeField),n=t.get(e.endTimeField);e.startTimeField=r&&r.name||null,e.endTimeField=n&&n.name||null}}const f=new Set;function m(e,t){return e&&t?(f.clear(),p(f,e,t),Array.from(f).sort()):[]}function p(e,t,r){var n;if(r)if(null!=t&&null!=(n=t.fields)&&n.length)if(r.includes("*"))for(const{name:r}of t.fields)e.add(r);else for(const n of r)h(e,t,n);else{if(r.includes("*"))return e.clear(),void e.add("*");for(const t of r)e.add(t)}}function h(e,t,r){if("string"==typeof r)if(t){const n=t.get(r);n&&e.add(n.name)}else e.add(r)}async function y(e,t,r){var n;if(!r)return;const{arcadeUtils:i}=await(0,a.LC)(),s=i.extractFieldNames(r,null==t||null==(n=t.fields)?void 0:n.map((e=>e.name)));for(const r of s)h(e,t,r)}function g({displayField:e,fields:t}){return e||(t&&t.length?b(t,"name-or-title")||b(t,"unique-identifier")||b(t,"type-or-category")||function(e){for(const t of e){if(!t||!t.name)continue;const e=t.name.toLowerCase();if(e.indexOf("name")>-1||e.indexOf("title")>-1)return t.name}return null}(t):null)}function b(e,t){for(const r of e)if(r&&r.valueType&&r.valueType===t)return r.name;return null}function w(e){const t=e.defaultValue;return void 0!==t&&_(e,t)?t:e.nullable?null:void 0}function v(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function T(e){return null===e||v(e)}const F="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function O(e){return null===e||F(e)}function q(e){return null!=e&&"string"==typeof e}function E(e){return null===e||q(e)}function S(){return!0}function _(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":r=e.nullable?O:F;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?T:v;break;case"string":case"esriFieldTypeString":r=e.nullable?E:q;break;default:r=S}return 1===arguments.length?r:r(t)}const k=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function L(e){return null!=e&&k.has(e.type)}function x(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var I,C;function D(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function N(e,t){return e.nullable&&null===t?null:L(e)&&!function(e,t){const r="string"==typeof e?U(e):e;return!!r&&(r.isInteger?F(t)&&t>=r.min&&t<=r.max:t>=r.min&&t<=r.max)}(e.type,Number(t))?I.OUT_OF_RANGE:_(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const r="range"in e?e.range[0]:e.minValue,i="range"in e?e.range[1]:e.maxValue;if(+t<r||+t>i)return n.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return n.INVALID_CODED_VALUE}return null}(e.domain,t):null:C.INVALID_TYPE}function U(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return A;case"esriFieldTypeInteger":case"integer":return P;case"esriFieldTypeSingle":case"single":return V;case"esriFieldTypeDouble":case"double":return $}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(I||(I={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(C||(C={}));const A={min:-32768,max:32767,isInteger:!0},P={min:-2147483648,max:2147483647,isInteger:!0},V={min:-34e37,max:12e37,isInteger:!1},$={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function R(e,t,r){switch(e){case n.INVALID_CODED_VALUE:return`Value ${r} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case n.VALUE_OUT_OF_RANGE:return`Value ${r} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case C.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case I.OUT_OF_RANGE:{const{min:e,max:n}=U(t.type);return`Value ${r} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${n}`}}}},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var n=r(68773),i=r(40330),s=r(20102),a=r(16358),o=r(80442),l=r(22974),u=r(70586),d=r(95330),c=r(17452),f=r(71058),m=r(85958);async function p(e,t){var l;const m=(0,c.HK)(e),b=(0,c.jc)(e);b||m||(e=(0,c.Fv)(e));const w={url:e,requestOptions:{...(0,u.Wg)(t)}};let v=(0,c.oh)(e);if(v){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=q("request:interceptor",e,t)}if((n instanceof Error||n instanceof s.Z)&&(r=q("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(v,w);if(null!=e)return{data:e,getHeader:T,requestOptions:w.requestOptions,url:w.url};v.after||v.error||(v=null)}if(e=w.url,"image"===(t=w.requestOptions).responseType){if((0,o.Z)("host-webworker")||(0,o.Z)("host-node"))throw q("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),w)}else if(m)throw q("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),w);if("head"===t.method){if(t.body)throw q("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),w);if(m||b)throw q("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),w)}if(await async function(){(0,o.Z)("host-webworker")?h||(h=await r.e(9884).then(r.bind(r,29884))):p._abortableFetch||(p._abortableFetch=a.Z.fetch.bind(a.Z))}(),h)return h.execute(e,t);const F=(0,d.yi)();(0,d.fu)(t,(()=>F.abort()));const O={controller:F,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:v,params:w,redoRequest:!1,useIdentity:y.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},k=await async function(e){var t,r;let s,o;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,o=r.body;let l=null,u=null,c=null;if(g&&"HTMLFormElement"in a.Z&&(o instanceof FormData?l=o:o instanceof HTMLFormElement&&(u=o,l=new FormData(u))),"string"==typeof o&&(c=o),e.fetchOptions={cache:r.cacheBust&&!p._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:s},(l||c)&&(e.fetchOptions.body=l||c),"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,f.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!S(t)&&!(0,d.Hc)(s)){let n;"immediate"===r.authMode?(await E(),n=await i.id.getCredential(t,{signal:s}),e.credential=n):"no-prompt"===r.authMode?(await E(),n=await i.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=n):i.id&&(n=i.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[s,o]=await _(e)}while(!await L(e,s,o))}catch(t){const r=q("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=o)&&null!=(r=t.user)&&r.username&&!(0,c.kl)(l)){const e=(0,c.P$)(l,!0);e&&y.trustedServers.push(e)}const u=e.credential;if(u&&i.id){const e=i.id.findServerInfo(u.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=i.id.findCredential(t,u.userId);e&&-1===i.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:o,getHeader:s?e=>s.headers.get(e):T,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(O);return null==(l=v)||null==l.after||l.after(k),k}let h;const y=n.Z.request,g="FormData"in a.Z,b=[499,498,403,401],w=["COM_0056","COM_0057","SB_0008"],v=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],T=()=>null,F=Symbol();function O(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||p._corsServers.includes(t)||(0,c.kl)(t)}function q(e,t,r,n){let i="Error";const a={url:r.url,requestOptions:r.requestOptions,getHeader:T,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=a,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n&&n.status,s=t.message;s&&(i=s),e&&(a.getHeader=e),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?a.messages=[t.details]:a.messages=t.details,a.raw=F in t?t[F]:t}return(0,d.D_)(t)?(0,d.zE)():new s.Z(e,i,a)}async function E(){i.id||await Promise.all([r.e(7824),r.e(8778),r.e(9625)]).then(r.bind(r,79339))}function S(e){return v.some((t=>t.test(e)))}async function _(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions,s=(0,c.jc)(t)||(0,c.HK)(t),a=r.responseType||"json",l=s?0:null!=r.timeout?r.timeout:y.timeout;let u=!1;if(!s){e.useSSL&&(t=(0,c.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let s={...r.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,c.B7)(s);(0,o.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let d;u="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>y.maxUrlLength;const f=r.useProxy||!!(0,c.ed)(t);if(f){const e=(0,c.b7)(t);d=e.path,!u&&d.length+1+l>y.maxUrlLength&&(u=!0),e.query&&(s={...e.query,...s})}if("HEAD"===n.method&&(u||f)){if(u){if(l>y.maxUrlLength)throw q("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw q("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(f)throw q("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,c.fl)(t,s):(n.body=(0,c.B7)(s),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,s),f&&(e.useProxy=!0,t=`${d}?${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,c.D6)(t,c.Gd))if((0,c.kl)(t))e.withCredentials=!0;else if(i.id){const r=i.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include")}let f,m,h=0,b=!1;l>0&&(h=setTimeout((()=>{b=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)m=n,m.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&&!O(t)){if(f=await p._abortableFetch(t,n),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!p._corsServers.includes(t)&&p._corsServers.push(t)}(t),"native"===r.responseType)m=f;else if("HEAD"!==n.method)if(f.ok){switch(a){case"array-buffer":m=await f.arrayBuffer();break;case"blob":case"image":m=await f.blob();break;default:m=await f.text()}if(h&&(clearTimeout(h),h=0),"json"===a||"xml"===a||"document"===a)if(m)switch(a){case"json":m=JSON.parse(m);break;case"xml":m=k(m,"application/xml");break;case"document":m=k(m,"text/html")}else m=null;if(m){if("array-buffer"===a||"blob"===a){const e=f.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&m["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(m).json();e.error&&(m=e)}catch{}}"image"===a&&m instanceof Blob&&(m=await x(URL.createObjectURL(m),e,!0))}}else m=await f.text()}else m=await x(t,e)}catch(n){if("AbortError"===n.name){if(b)throw new Error("Timeout exceeded");throw(0,d.zE)("Request canceled")}if(!(!f&&n instanceof TypeError&&y.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||O(t))throw n;e.redoRequest=!0,(0,c.tD)({proxyUrl:y.proxyUrl,urlPrefix:(0,c.P$)(t)})}finally{h&&clearTimeout(h)}return[f,m]}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 L(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,a,o,l;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[F]=r,s;null!=r&&r.error&&(s=r.error),s&&(a=Number(s.code),o=s.hasOwnProperty("subcode")?Number(s.subcode):null,l=s.messageCode,l=l&&l.toUpperCase());const u=n.authMode;if(403===a&&(4===o||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===a)&&-1!==b.indexOf(a)&&!S(e.params.url)&&(403!==a||-1===w.indexOf(l)&&(null==o||2===o&&e.credentialToken))){await E();try{const t=await i.id.getCredential(e.params.url,{error:q("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 x(e,t,r=!1){const n=t.controller.signal,i=new Image;return t.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.src=e,(0,m.f)(i,e,r,n)}p._abortableFetch=null,p._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>s});var n=r(17452);const i=["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")&&!i.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{f:()=>a});var n=r(80442),i=r(70586),s=r(95330);function a(e,t,r=!1,a){return new Promise(((l,u)=>{if((0,s.Hc)(a))return void u(o());let d=()=>{m(),u(new Error(`Unable to load ${t}`))},c=()=>{const t=e;m(),l(t)},f=()=>{if(!e)return;const t=e;m(),t.src="",u(o())};const m=()=>{(0,n.Z)("esri-image-decode")||(e.removeEventListener("error",d),e.removeEventListener("load",c)),d=null,c=null,e=null,(0,i.pC)(a)&&a.removeEventListener("abort",f),f=null,r&&URL.revokeObjectURL(t)};(0,i.pC)(a)&&a.addEventListener("abort",f),(0,n.Z)("esri-image-decode")?e.decode().then(c,d):(e.addEventListener("error",d),e.addEventListener("load",c))}))}function o(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}}}]);
|