@arcgis/core 4.24.0-next.20220508 → 4.24.0-next.20220511
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/AggregateGraphic.js +1 -1
- package/analysis/Analysis.js +1 -1
- package/analysis/DimensioningAnalysis.js +1 -1
- package/analysis/LengthDimension.d.ts +4 -0
- package/analysis/LengthDimension.js +5 -0
- package/analysis/dimensionUtils.js +5 -0
- package/arcade/Dictionary.js +1 -1
- package/arcade/Feature.js +1 -1
- package/arcade/arcade.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/credentials.js +1 -1
- package/arcade/featureSetCollection.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/actions/AttributeFilter.js +1 -1
- package/arcade/featureset/actions/GroupBy.js +1 -1
- package/arcade/featureset/actions/OrderBy.js +1 -1
- package/arcade/featureset/actions/SpatialFilter.js +1 -1
- package/arcade/featureset/actions/Top.js +1 -1
- package/arcade/featureset/sources/Empty.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/arcade/featureset/support/FeatureSetIterator.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/stats.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetgeom.js +1 -1
- package/arcade/functions/featuresetstats.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/arcade/request.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0564f1cfa3d17ff1aad3.js +1 -0
- package/assets/esri/core/workers/chunks/0806d5d706a864542bfb.js +1 -0
- package/assets/esri/core/workers/chunks/0a6977144ea1abf96fbf.js +1 -0
- package/assets/esri/core/workers/chunks/13387f56acbc3291561a.js +1 -0
- package/assets/esri/core/workers/chunks/16c4e0a32d50d4db984d.js +1 -0
- package/assets/esri/core/workers/chunks/{076d1b1101b59af0d389.js → 1c010202b4c7e1d15f23.js} +1 -1
- package/assets/esri/core/workers/chunks/26827ec144676e6385f8.js +1 -0
- package/assets/esri/core/workers/chunks/287c484fd40eee643f3a.js +1 -0
- package/assets/esri/core/workers/chunks/5210f0b42dba27945226.js +1 -0
- package/assets/esri/core/workers/chunks/{db6c5b3b4efe8d804f9c.js → 52478ee2d2a1354b6900.js} +1 -1
- package/assets/esri/core/workers/chunks/5759af97f96f24c40105.js +1 -0
- package/assets/esri/core/workers/chunks/{b85218d44c6094b7e5e6.js → 6d7e2a23a0a5dd9ded1d.js} +1 -1
- package/assets/esri/core/workers/chunks/70b6356357e7640c4e8b.js +1 -0
- package/assets/esri/core/workers/chunks/7574316b3af61c389e8f.js +1 -0
- package/assets/esri/core/workers/chunks/7bc828fbdd54c0b28aac.js +1 -0
- package/assets/esri/core/workers/chunks/7e5c22b5a32ac74b1b6e.js +1 -0
- package/assets/esri/core/workers/chunks/8102bb78fe96e6197e4e.js +1 -0
- package/assets/esri/core/workers/chunks/88384e7cafbfd2348598.js +1 -0
- package/assets/esri/core/workers/chunks/9d7533aaeac3b8d145c4.js +1 -0
- package/assets/esri/core/workers/chunks/{1eecae5227318f491263.js → 9f4d892abf55e8625bc9.js} +3 -3
- package/assets/esri/core/workers/chunks/{98607a0da63626cc4614.js → a054a52712a118c6d505.js} +1 -1
- package/assets/esri/core/workers/chunks/{69a20e4d9e28c3e599fc.js → a3bb600bfcb0282622f1.js} +1 -1
- package/assets/esri/core/workers/chunks/aa49841b14c6e6df2a07.js +1 -0
- package/assets/esri/core/workers/chunks/b089058b64db3912478f.js +1 -0
- package/assets/esri/core/workers/chunks/b28539c5a6bedb71b038.js +1 -0
- package/assets/esri/core/workers/chunks/b4f171db73355c6f766e.js +1 -0
- package/assets/esri/core/workers/chunks/b7572b0921b23aef8b9d.js +1 -0
- package/assets/esri/core/workers/chunks/b758f3c419edc2306784.js +1 -0
- package/assets/esri/core/workers/chunks/c3e7290fb128d4fefd44.js +1 -0
- package/assets/esri/core/workers/chunks/c51c9b5da855f84b9a48.js +1 -0
- package/assets/esri/core/workers/chunks/c66ac36da6392b6bf331.js +1 -0
- package/assets/esri/core/workers/chunks/d16b328d32a6ddc2fdb9.js +1 -0
- package/assets/esri/core/workers/chunks/d94c5f36d52cf71f0bb9.js +1 -0
- package/assets/esri/core/workers/chunks/db937849b2c1af87b481.js +1 -0
- package/assets/esri/core/workers/chunks/{66cd99e91dad60c5274c.js → dc3ed59f450283d97a19.js} +1 -1
- package/assets/esri/core/workers/chunks/dcd0653191cd4a1ccaae.js +2 -0
- package/assets/esri/core/workers/chunks/{31df729c17470245288c.js.LICENSE.txt → dcd0653191cd4a1ccaae.js.LICENSE.txt} +2 -2
- package/assets/esri/core/workers/chunks/e4fdd1eaf987977d0a51.js +1 -0
- package/assets/esri/core/workers/chunks/e51f0e71f2a55af604d3.js +1 -0
- package/assets/esri/core/workers/chunks/eb3855d3753d6b8334bd.js +1 -0
- package/assets/esri/core/workers/chunks/{7c290763920f52a1f504.js → eeed138930a4a805691d.js} +1 -1
- package/assets/esri/core/workers/chunks/f435dc615fdc8917f6ca.js +1 -0
- package/assets/esri/core/workers/chunks/{d5c5b9f7f5401f36a3a5.js → f7f3dde4c8f9c687cc1e.js} +1 -1
- package/assets/esri/core/workers/chunks/fc6beaf9466ea3898549.js +1 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Tooltip.scss +1 -0
- package/assets/esri/themes/base/widgets/_Weather.scss +1 -2
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/BlendLayers.glsl.js +6 -6
- package/chunks/arcade.js +1 -1
- package/chunks/array.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/config.js +1 -1
- package/core/sql/StandardizedFunctions.js +1 -1
- package/geohash/GeohashTree.js +1 -1
- package/geometry/support/contains.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/geometry/support/intersects.js +1 -1
- package/geometry/support/intersectsBase.js +1 -1
- package/geometry/support/normalizeUtilsCommon.js +1 -1
- package/geometry/support/spatialReferenceUtils.js +1 -1
- package/interfaces.d.ts +685 -37
- package/layers/MediaLayer.d.ts +4 -0
- package/layers/MediaLayer.js +5 -0
- package/layers/VoxelLayer.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +5 -0
- package/layers/graphics/OptimizedGeometry.js +1 -1
- package/layers/graphics/data/BoundsStore.js +1 -1
- package/layers/support/CornersGeoreference.d.ts +4 -0
- package/layers/support/CornersGeoreference.js +5 -0
- package/layers/support/ExtentAndRotationGeoreference.d.ts +4 -0
- package/layers/support/ExtentAndRotationGeoreference.js +5 -0
- package/layers/support/FeatureReduction.js +1 -1
- package/layers/support/FeatureReductionBinning.js +5 -0
- package/layers/support/GeoreferenceBase.js +5 -0
- package/layers/support/ImageElement.d.ts +4 -0
- package/layers/support/ImageElement.js +5 -0
- package/layers/support/LocalMediaElementSource.d.ts +4 -0
- package/layers/support/LocalMediaElementSource.js +5 -0
- package/layers/support/MediaElementBase.d.ts +4 -0
- package/layers/support/MediaElementBase.js +5 -0
- package/layers/support/RouteStopSymbols.d.ts +4 -0
- package/layers/support/RouteSymbols.d.ts +4 -0
- package/layers/support/VoxelFormat.d.ts +4 -0
- package/layers/support/VoxelStyle.d.ts +4 -0
- package/layers/support/VoxelVariable.d.ts +4 -0
- package/layers/support/VoxelVolume.d.ts +4 -0
- package/layers/support/VoxelVolumeStyle.d.ts +4 -0
- package/layers/support/arcgisLayerUrl.js +1 -1
- package/layers/support/featureReductionUtils.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/rasterFormats/Lerc.js +1 -1
- package/package.json +3 -3
- package/request.js +1 -1
- package/support/requestUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/Font.js +1 -1
- package/symbols/support/textUtils.js +1 -1
- package/views/2d/engine/brushes.js +1 -1
- package/views/2d/engine/webgl/FeatureTile.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +5 -0
- package/views/2d/engine/webgl/OverlayContainer.js +5 -0
- package/views/2d/engine/webgl/brushes/BrushOverlay.js +5 -0
- package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
- package/views/2d/engine/webgl/shaders/OverlayPrograms.js +5 -0
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +5 -0
- package/views/2d/layers/StreamLayerView2D.js +1 -1
- package/views/2d/layers/WMTSLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureStore2D.js +1 -1
- package/views/2d/layers/features/Pipeline.js +1 -1
- package/views/2d/layers/features/Store2D.js +1 -1
- package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
- package/views/2d/layers/features/processors/SymbolProcessor.js +1 -1
- package/views/2d/layers/features/schemaUtils.js +1 -1
- package/views/2d/layers/features/sources/GeoEventSource.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/BinStore.js +5 -0
- package/views/2d/layers/features/support/ClusterStore.js +1 -1
- package/views/2d/layers/features/tileRenderers/support/WGLFeatureView.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/layers/support/clusterUtils.js +1 -1
- package/views/2d/magnifier/MagnifierView2D.js +1 -1
- package/views/2d/navigation/actions/Pinch.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/analysis/AnalysisView3D.js +1 -1
- package/views/3d/analysis/Dimensioning/DimensioningTool.js +5 -0
- package/views/3d/analysis/Dimensioning/DimensioningVisualization.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionSubTool.js +5 -0
- package/views/3d/analysis/Dimensioning/{LinearDimensionVisualization.js → LengthDimensionVisualization.js} +1 -1
- package/views/3d/analysis/Dimensioning/settings.js +5 -0
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/interactive/SegmentLabels3D.js +5 -0
- package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/GraphicReshapeTool.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateObjectSymbol3DAdapter.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/interactive/visualElements/LabelVisualElement.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +5 -0
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/i3s/IDBCache.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
- package/views/3d/state/controllers/local/ZoomController.js +1 -1
- package/views/3d/state/controllers/local/ZoomStepController.js +1 -1
- package/views/3d/support/ResourceController.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.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/WaterTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/GroundView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/ToolViewManager.js +1 -1
- package/views/View.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/interactive/GraphicManipulator.js +1 -1
- package/views/interactive/InteractiveToolBase.js +1 -1
- package/views/interactive/SegmentLabels.js +5 -0
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/LineSnapper.js +1 -1
- package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
- package/views/interactive/snapping/RightAngleSnapper.js +1 -1
- package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
- package/views/interactive/snapping/SnappingAlgorithm.js +1 -1
- package/views/interactive/snapping/SnappingManager.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/snappingUtils.js +1 -1
- package/views/interactive/support/viewUtils.js +5 -0
- package/views/interactive/tooltip/DrawPointTooltipInfo.js +5 -0
- package/views/interactive/tooltip/DrawPolygonTooltipInfo.js +5 -0
- package/views/interactive/tooltip/DrawPolylineTooltipInfo.js +5 -0
- package/views/interactive/tooltip/Tooltip.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
- package/views/interactive/tooltip/support/measurements.js +5 -0
- package/views/layers/FeatureLayerView.js +1 -1
- package/views/layers/GroupLayerView.js +1 -1
- package/views/overlay/TextOverlayItem.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/views/support/screenUtils.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/Attribution/AttributionViewModel.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/support/chartUtils.js +1 -1
- package/widgets/ElevationProfile.js +1 -1
- package/widgets/Feature/FeatureAttachments.js +1 -1
- package/widgets/Feature/FeatureContent/FeatureContentViewModel.js +1 -1
- package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
- package/widgets/Feature/FeatureExpression.js +1 -1
- package/widgets/Feature/FeatureFields.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature.js +1 -1
- package/widgets/FeatureForm/InputFieldGroup.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +11 -11
- package/widgets/FeatureTable/Grid/support/ButtonMenu.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/FeatureTemplates/TemplateItem.js +1 -1
- package/widgets/FeatureTemplates.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/FloorFilter.js +1 -1
- package/widgets/HistogramRangeSlider.js +1 -1
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/LayerList/ListItem.js +1 -1
- package/widgets/LayerList/ListItemPanel.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/styles/Card.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend.js +1 -1
- package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
- package/widgets/Measurement.js +1 -1
- package/widgets/NavigationToggle/NavigationToggleViewModel.js +1 -1
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/Popup.js +1 -1
- package/widgets/Print/FileLink.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/ScaleBar.js +1 -1
- package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
- package/widgets/ScaleRangeSlider.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/TableList/ListItem.js +1 -1
- package/widgets/Weather/LabeledSlider.js +1 -1
- package/widgets/Weather/VisibleElements.js +5 -0
- package/widgets/Weather/css.js +1 -1
- package/widgets/Weather.js +1 -1
- package/widgets/support/AnalysisViewModel.js +1 -1
- package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
- package/analysis/LinearDimension.d.ts +0 -4
- package/analysis/LinearDimension.js +0 -5
- package/assets/esri/core/workers/chunks/0018053ac16a09feba70.js +0 -1
- package/assets/esri/core/workers/chunks/042938ca73f0b9e5a7e2.js +0 -1
- package/assets/esri/core/workers/chunks/048645611caa28dca7cd.js +0 -1
- package/assets/esri/core/workers/chunks/0b72d123386dc4ec7538.js +0 -1
- package/assets/esri/core/workers/chunks/13b04d5bf348ab5054c2.js +0 -1
- package/assets/esri/core/workers/chunks/215007e7c44811d90777.js +0 -1
- package/assets/esri/core/workers/chunks/31df729c17470245288c.js +0 -2
- package/assets/esri/core/workers/chunks/36272141b3c33cb19026.js +0 -1
- package/assets/esri/core/workers/chunks/36c8e8de9c3f67d32572.js +0 -1
- package/assets/esri/core/workers/chunks/37c428489c59df4b597b.js +0 -1
- package/assets/esri/core/workers/chunks/493169fd978fd543ef3b.js +0 -1
- package/assets/esri/core/workers/chunks/4f378ad6f4299183df85.js +0 -1
- package/assets/esri/core/workers/chunks/58e4c6ce1580427e7b55.js +0 -1
- package/assets/esri/core/workers/chunks/6c5441da675a8af35be2.js +0 -1
- package/assets/esri/core/workers/chunks/6ea16f6a0df946de480b.js +0 -1
- package/assets/esri/core/workers/chunks/7dfd70f4fa1096e56641.js +0 -1
- package/assets/esri/core/workers/chunks/88193e61072d7bf957f5.js +0 -1
- package/assets/esri/core/workers/chunks/8ccbde593c86c872e525.js +0 -1
- package/assets/esri/core/workers/chunks/9c6be39f1f21ab8b1c2d.js +0 -1
- package/assets/esri/core/workers/chunks/a73795cce722ba15b3da.js +0 -1
- package/assets/esri/core/workers/chunks/a8ed1a938dc164b401d9.js +0 -1
- package/assets/esri/core/workers/chunks/a9a73bc4875a5aeaf1b9.js +0 -1
- package/assets/esri/core/workers/chunks/adcc5bce6c0971c1b592.js +0 -1
- package/assets/esri/core/workers/chunks/afddfe620e6539991e6b.js +0 -1
- package/assets/esri/core/workers/chunks/b340c9bdabdb37995c8f.js +0 -1
- package/assets/esri/core/workers/chunks/b4c23630d6c85f7b59c0.js +0 -1
- package/assets/esri/core/workers/chunks/c180c40838246985479d.js +0 -1
- package/assets/esri/core/workers/chunks/caed2365bd296fcc8a75.js +0 -1
- package/assets/esri/core/workers/chunks/d85b5b73a151c6fbb658.js +0 -1
- package/assets/esri/core/workers/chunks/da6261673c3e1537b6a6.js +0 -1
- package/assets/esri/core/workers/chunks/dafe120243db6648a4ab.js +0 -1
- package/assets/esri/core/workers/chunks/ec6d138e8183e193f977.js +0 -1
- package/assets/esri/core/workers/chunks/ed4519ac9533a4d340f1.js +0 -1
- package/assets/esri/core/workers/chunks/f206300eef4560611728.js +0 -1
- package/assets/esri/core/workers/chunks/f55cbaf5a1d6ee6ac171.js +0 -1
- package/layers/GeoreferencedImageLayer.d.ts +0 -4
- package/layers/GeoreferencedImageLayer.js +0 -5
- package/layers/VoxelWasmManager.js +0 -5
- package/layers/VoxelWasmPerScene.js +0 -5
- package/views/3d/interactive/measurementTools/support/viewUtils.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8062],{87344:(e,a,t)=>{t.d(a,{T:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(6968),t.e(2723)]).then(t.bind(t,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(8326),t.e(3121),t.e(4133),t.e(2485)]).then(t.bind(t,30223))).default,CSVLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(8326),t.e(3121),t.e(4910)]).then(t.bind(t,45425))).default,ElevationLayer:async()=>(await Promise.all([t.e(1938),t.e(9932)]).then(t.bind(t,49932))).default,FeatureLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(8326),t.e(3121),t.e(4477)]).then(t.bind(t,3121))).default,GroupLayer:async()=>(await Promise.all([t.e(6968),t.e(9348)]).then(t.bind(t,89348))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(3723)]).then(t.bind(t,3723))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(7202)]).then(t.bind(t,23477))).default,ImageryLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(8326),t.e(176),t.e(2173),t.e(510)]).then(t.bind(t,510))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(4547),t.e(3471),t.e(1938),t.e(176),t.e(2173),t.e(2398),t.e(3301)]).then(t.bind(t,69971))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(4547),t.e(4133),t.e(8297)]).then(t.bind(t,4717))).default,KMLLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(739)]).then(t.bind(t,42756))).default,MapImageLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(7832),t.e(3128),t.e(7374)]).then(t.bind(t,27374))).default,MapNotesLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(4547),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(8326),t.e(3121),t.e(3750)]).then(t.bind(t,62128))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(2855)]).then(t.bind(t,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(6968),t.e(6199),t.e(6237)]).then(t.bind(t,66237))).default,PointCloudLayer:async()=>(await Promise.all([t.e(1773),t.e(4133),t.e(1197)]).then(t.bind(t,10608))).default,RouteLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(4547),t.e(3471),t.e(1423),t.e(8157)]).then(t.bind(t,50445))).default,SceneLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(8326),t.e(3121),t.e(4133),t.e(6135)]).then(t.bind(t,49254))).default,StreamLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(1408)]).then(t.bind(t,88387))).default,TileLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(7832),t.e(1938),t.e(3128),t.e(8636)]).then(t.bind(t,98636))).default,UnknownLayer:async()=>(await t.e(4166).then(t.bind(t,44166))).default,UnsupportedLayer:async()=>(await t.e(9296).then(t.bind(t,39296))).default,VectorTileLayer:async()=>(await Promise.all([t.e(6968),t.e(1938),t.e(4325),t.e(1785),t.e(4756)]).then(t.bind(t,94756))).default,VoxelLayer:async()=>(await Promise.all([t.e(4133),t.e(5410)]).then(t.bind(t,58092))).default,WebTileLayer:async()=>(await Promise.all([t.e(6968),t.e(6199)]).then(t.bind(t,16199))).default,WFSLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(4547),t.e(3471),t.e(1423),t.e(635),t.e(3974)]).then(t.bind(t,12653))).default,WMSLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(5906)]).then(t.bind(t,25906))).default,WMTSLayer:async()=>(await Promise.all([t.e(6968),t.e(6199),t.e(5853)]).then(t.bind(t,55853))).default}},33516:(e,a,t)=>{t.d(a,{Y:()=>i,h:()=>l});var r=t(17452),n=t(65587);function l(e){return{origin:"portal-item",url:(0,r.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function i(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,r.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},18062:(e,a,t)=>{t.r(a),t.d(a,{getFirstLayerOrTableId:()=>f,getNumLayersAndTables:()=>m,load:()=>u,preprocessFSItemData:()=>p});var r=t(20102),n=t(87344),l=t(65587),i=t(33516),s=t(40555),o=t(96187);async function u(e,a){const t=e.instance.portalItem;if(t&&t.id)return await t.load(a),function(e){const a=e.instance.portalItem;if(!e.supportedTypes.includes(a.type))throw new r.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const t=e.instance,l=t.portalItem,{url:u,title:d}=l,f=(0,i.h)(l);if("group"===t.type)return t.read({title:d},f),function(e,a){let t;const l=e.portalItem.type;switch(l){case"Feature Service":case"Feature Collection":t=n.T.FeatureLayer;break;case"Stream Service":t=n.T.StreamLayer;break;case"Scene Service":t=n.T.SceneLayer;break;default:throw new r.Z("portal:unsupported-item-type-as-group",`The item type '${l}' is not supported as a 'IGroupLayer'`)}let i;return t().then((e=>(i=e,y(a)))).then((async a=>"Feature Service"===l?(a=await p(a,e.portalItem.url),c(e,i,a)):m(a)>0?c(e,i,a):function(e,a){return e.portalItem.url?(0,o.b)(e.portalItem.url).then((t=>{function r(e){return{id:e.id,name:e.name}}t&&c(e,a,{layers:t.layers?.map(r),tables:t.tables?.map(r)})})):Promise.resolve()}(e,i)))}(t,e);u&&t.read({url:u},f);const h=await y(e,a);return h&&t.read(h,f),t.resourceReferences={portalItem:l,paths:f.readResourcePaths},t.read({title:d},f),(0,s.y)(t,f)}(e,a)}function c(e,a,t){let r=t.layers||[];const n=t.tables||[];"Feature Collection"===e.portalItem.type&&(r.forEach((e=>{"Table"===e?.layerDefinition?.type&&n.push(e)})),r=r.filter((e=>"Table"!==e?.layerDefinition?.type))),r.reverse().forEach((r=>{const n=d(e,a,t,r);e.add(n)})),n.reverse().forEach((r=>{const n=d(e,a,t,r);e.tables.add(n)}))}function d(e,a,t,r){const n=new a({portalItem:e.portalItem.clone(),layerId:r.id,sublayerTitleMode:"service-name"});if("Feature Collection"===e.portalItem.type){const a={origin:"portal-item",portal:e.portalItem.portal||l.Z.getDefault()};n.read(r,a);const i=t.showLegend;null!=i&&n.read({showLegend:i},a)}return n}function y(e,a){if(!1===e.supportsData)return Promise.resolve(void 0);const t=e.instance;return t.portalItem.fetchData("json",a).catch((()=>null)).then((async e=>{if(function(e){return"stream"!==e.type&&"layerId"in e}(t)){let a,r=!0;return e&&m(e)>0&&(null==t.layerId&&(t.layerId=f(e)),a=function(e,a){const t=e.layers;if(t)for(let e=0;e<t.length;e++)if(t[e].id===a)return t[e];const r=e.tables;if(r)for(let e=0;e<r.length;e++)if(r[e].id===a)return r[e];return null}(e,t.layerId),a&&(1===m(e)&&(r=!1),null!=e.showLegend&&(a.showLegend=e.showLegend))),r&&"service-name"!==t.sublayerTitleMode&&(t.sublayerTitleMode="item-title-and-service-name"),a}return e}))}async function p(e,a){if(null==e?.layers||null==e?.tables){const t=await(0,o.b)(a);(e=e||{}).layers=e.layers||t?.layers,e.tables=e.tables||t?.tables}return e}function f(e){const a=e.layers;if(a&&a.length)return a[0].id;const t=e.tables;return t&&t.length?t[0].id:null}function m(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}},40555:(e,a,t)=>{t.d(a,{y:()=>i});var r=t(66643),n=t(95330),l=t(20941);async function i(e,a,t){const i=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(i&&"unique-value"===i.type&&i.styleOrigin){const s=await(0,r.q6)(i.populateFromStyle());if((0,n.k_)(t),!1===s.ok){const t=s.error;a&&a.messages&&a.messages.push(new l.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${t.message}`,{error:t,context:a})),e.clear("renderer",a.origin)}}}},96187:(e,a,t)=>{t.d(a,{b:()=>n});var r=t(3172);async function n(e){const{data:a}=await(0,r.default)(e,{responseType:"json",query:{f:"json"}});return a}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6208],{84552:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),n=i(96674),o=i(35463),a=i(5600),l=(i(67676),i(80442),i(75215),i(52011)),h=i(78981);let u=s=class extends n.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,o.rJ)(this.value,this.unit,"milliseconds")}clone(){return new s({value:this.value,unit:this.unit})}};(0,r._)([(0,a.Cb)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),(0,r._)([(0,a.Cb)({type:h.v.apiValues,json:{type:h.v.jsonValues,read:h.v.read,write:h.v.write},nonNullable:!0})],u.prototype,"unit",void 0),u=s=(0,r._)([(0,l.j)("esri.TimeInterval")],u);const d=u},66643:(e,t,i)=>{i.d(t,{Ed:()=>n,UI:()=>o,mt:()=>l,q6:()=>a});var s=i(70586),r=i(95330);function n(e,t,i){return(0,r.as)(e.map(((e,s)=>t.apply(i,[e,s]))))}async function o(e,t,i){return(await(0,r.as)(e.map(((e,s)=>t.apply(i,[e,s]))))).map((e=>e.value))}async function a(e){if((0,s.Wi)(e))return{ok:!1,error:new Error("no promise provided")};try{return{ok:!0,value:await e}}catch(e){return{ok:!1,error:e}}}async function l(e){try{return{ok:!0,value:await e}}catch(e){return(0,r.r9)(e),{ok:!1,error:e}}}},43090:(e,t,i)=>{function s(e){return 32+e.length}function r(e){if(!e)return 0;let t=32;for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];switch(typeof r){case"string":t+=s(r);break;case"number":t+=16;break;case"boolean":t+=4}}return t}function n(e,t){return 32+e.length*t}var o;i.d(t,{Y8:()=>o,do:()=>n,f2:()=>r}),function(e){e[e.KILOBYTES=1024]="KILOBYTES",e[e.MEGABYTES=1048576]="MEGABYTES",e[e.GIGABYTES=1073741824]="GIGABYTES"}(o||(o={}))},24133:(e,t,i)=>{i.d(t,{Q:()=>a});var s=i(67676),r=i(70586),n=i(44553),o=i(88764);class a{constructor(e=9,t){this.compareMinX=d,this.compareMinY=c,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),b.prune(),C.prune(),T.prune(),w.prune()}all(e){this._all(this.data,e)}search(e,t){let i=this.data;const s=this._toBBox;if(_(e,i))for(b.clear();i;){for(let r=0,n=i.children.length;r<n;r++){const n=i.children[r],o=i.leaf?s(n):n;_(e,o)&&(i.leaf?t(n):y(e,o)?this._all(n,t):b.push(n))}i=b.pop()}}collides(e){let t=this.data;const i=this._toBBox;if(!_(e,t))return!1;for(b.clear();t;){for(let s=0,r=t.children.length;s<r;s++){const r=t.children[s],n=t.leaf?i(r):r;if(_(e,n)){if(t.leaf||y(e,n))return!0;b.push(r)}}t=b.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(0,e.length),0,e.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){const e=this.data;this.data=t,t=e}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this}insert(e){return e&&this._insert(e,this.data.height-1),this}clear(){return this.data=new E([]),this}remove(e){if(!e)return this;let t,i=this.data,n=null,o=0,a=!1;const l=this._toBBox(e);for(T.clear(),w.clear();i||T.length>0;){if(i||(i=(0,r.j0)(T.pop()),n=T.data[T.length-1],o=w.pop()??0,a=!0),i.leaf&&(t=(0,s.cq)(i.children,e,i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),T.push(i),this._condense(T),this;a||i.leaf||!y(i,l)?n?(o++,i=n.children[o],a=!1):i=null:(T.push(i),w.push(o),o=0,n=i,i=i.children[0])}return this}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,t){let i=e;for(C.clear();i;){if(!0===i.leaf)for(const e of i.children)t(e);else C.pushArray(i.children);i=C.pop()??null}}_build(e,t,i,s){const r=i-t+1;let n=this._maxEntries;if(r<=n){const s=new E(e.slice(t,i+1));return l(s,this._toBBox),s}s||(s=Math.ceil(Math.log(r)/Math.log(n)),n=Math.ceil(r/n**(s-1)));const o=new F([]);o.height=s;const a=Math.ceil(r/n),h=a*Math.ceil(Math.sqrt(n));v(e,t,i,h,this.compareMinX);for(let r=t;r<=i;r+=h){const t=Math.min(r+h-1,i);v(e,r,t,a,this.compareMinY);for(let i=r;i<=t;i+=a){const r=Math.min(i+a-1,t);o.children.push(this._build(e,i,r,s-1))}}return l(o,this._toBBox),o}_chooseSubtree(e,t,i,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==i;){let i,s=1/0,r=1/0;for(let n=0,o=t.children.length;n<o;n++){const o=t.children[n],a=p(o),l=m(e,o)-a;l<r?(r=l,s=a<s?a:s,i=o):l===r&&a<s&&(s=a,i=o)}t=i||t.children[0]}return t}_insert(e,t,i){const s=this._toBBox,r=i?e:s(e);T.clear();const n=this._chooseSubtree(r,this.data,t,T);for(n.children.push(e),u(n,r);t>=0&&T.data[t].children.length>this._maxEntries;)this._split(T,t),t--;this._adjustParentBBoxes(r,T,t)}_split(e,t){const i=e.data[t],s=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,s);const n=this._chooseSplitIndex(i,r,s);if(!n)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=i.children.splice(n,i.children.length-n),a=i.leaf?new E(o):new F(o);a.height=i.height,l(i,this._toBBox),l(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this.data=new F([e,t]),this.data.height=e.height+1,l(this.data,this._toBBox)}_chooseSplitIndex(e,t,i){let s,r,n;s=r=1/0;for(let o=t;o<=i-t;o++){const t=h(e,0,o,this._toBBox),a=h(e,o,i,this._toBBox),l=g(t,a),u=p(t)+p(a);l<s?(s=l,n=o,r=u<r?u:r):l===s&&u<r&&(r=u,n=o)}return n}_chooseSplitAxis(e,t,i){const s=e.leaf?this.compareMinX:d,r=e.leaf?this.compareMinY:c;this._allDistMargin(e,t,i,s)<this._allDistMargin(e,t,i,r)&&e.children.sort(s)}_allDistMargin(e,t,i,s){e.children.sort(s);const r=this._toBBox,n=h(e,0,t,r),o=h(e,i-t,i,r);let a=f(n)+f(o);for(let s=t;s<i-t;s++){const t=e.children[s];u(n,e.leaf?r(t):t),a+=f(n)}for(let s=i-t-1;s>=t;s--){const t=e.children[s];u(o,e.leaf?r(t):t),a+=f(o)}return a}_adjustParentBBoxes(e,t,i){for(let s=i;s>=0;s--)u(t.data[s],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const r=e.data[t-1],n=r.children;n.splice((0,s.cq)(n,i,n.length,r.indexHint),1)}else this.clear();else l(i,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){h(e,0,e.children.length,t,e)}function h(e,t,i,s,r){r||(r=new E([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let n,o=t;o<i;o++)n=e.children[o],u(r,e.leaf?s(n):n);return r}function u(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function p(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function m(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const i=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),n=Math.min(e.maxY,t.maxY);return Math.max(0,r-i)*Math.max(0,n-s)}function y(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function _(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function v(e,t,i,s,n){const a=[t,i];for(;a.length;){const t=(0,r.j0)(a.pop()),i=(0,r.j0)(a.pop());if(t-i<=s)continue;const l=i+Math.ceil((t-i)/s/2)*s;(0,o.q)(e,l,i,t,n),a.push(i,l,l,t)}}const b=new n.Z,C=new n.Z,T=new n.Z,w=new n.Z({deallocator:void 0});class x extends class{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}{constructor(){super(...arguments),this.height=1,this.indexHint=new s.SO}}class E extends x{constructor(e){super(),this.children=e,this.leaf=!0}}class F extends x{constructor(e){super(),this.children=e,this.leaf=!1}}},37549:(e,t,i)=>{i.d(t,{H:()=>o});var s=i(80442),r=i(24133);const n={minX:0,minY:0,maxX:0,maxY:0};class o{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.Q(9,(0,s.Z)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((i,s)=>{e[t++]=s})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))),this._boundsToLoad.length=0)}}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){n.minX=t[0],n.minY=t[1],n.maxX=t[2],n.maxY=t[3],e.search(n,i)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(e,t,i)=>{i.d(t,{Z:()=>m});var s=i(20102),r=i(32448),n=i(92604),o=i(70586),a=i(60437),l=i(24470),h=i(98732),u=i(37549),d=i(29730),c=i(70272),p=i(5428);const f={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new c.u_(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>((0,o.Wi)(e.centroid)&&(e.centroid=(0,d.Y)(new p.Z,e.geometry,t.hasZ,t.hasM)),e.centroid)};class m{constructor(e){this.geometryInfo=e,this._boundsStore=new u.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new r.Z,this.featureAdapter=f}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){if(!this.numFeatures)return null;const e=(0,l.Ue)(l.Gv);return this._featuresById.forEach((t=>{const i=this._boundsStore.get(t.objectId);i&&(e[0]=Math.min(i[0],e[0]),e[1]=Math.min(i[1],e[1]),e[2]=Math.max(i[2],e[2]),e[3]=Math.max(i[3],e[3]))})),e}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{(0,o.pC)(t.geometry)&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t,i){for(const s of e){const e=this._boundsStore.get(s.objectId);e&&t((0,a.JR)(i,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,i)=>{this._markedIds.has(i)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void n.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.Z("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let r;if(this._markedIds.add(t),i?(e.displayId=i.displayId,r=this._boundsStore.get(t),this._boundsStore.delete(t)):(0,o.pC)(this.onFeatureAdd)&&this.onFeatureAdd(e),(0,o.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);r=(0,h.$)((0,o.pC)(r)?r:(0,l.Ue)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,o.pC)(r)&&this._boundsStore.set(t,r),this._featuresById.set(t,e)}_remove(e){return(0,o.pC)(this.onFeatureRemove)&&this.onFeatureRemove(e),this._markedIds.delete(e.objectId),this._boundsStore.delete(e.objectId),this._featuresById.delete(e.objectId),e}}},1231:(e,t,i)=>{i.d(t,{Z:()=>g});var s,r=i(43697),n=i(35454),o=i(96674),a=i(5600),l=(i(67676),i(80442),i(75215)),h=i(36030),u=i(71715),d=i(52011),c=i(72729),p=i(86719);const f=new n.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=s=class extends o.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let i;try{i=JSON.parse(t)}catch(e){}return i?i.value:null}readValueType(e,{description:t}){let i;try{i=JSON.parse(t)}catch(e){}return i?f.fromJSON(i.fieldValueType):null}clone(){return new s({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r._)([(0,a.Cb)()],m.prototype,"description",void 0),(0,r._)([(0,u.r)("description")],m.prototype,"readDescription",null),(0,r._)([(0,a.Cb)({types:c.V5,json:{read:{reader:c.im},write:!0}})],m.prototype,"domain",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r._)([(0,h.J)(p.v)],m.prototype,"type",void 0),(0,r._)([(0,a.Cb)()],m.prototype,"valueType",void 0),(0,r._)([(0,u.r)("valueType",["description"])],m.prototype,"readValueType",null),m=s=(0,r._)([(0,d.j)("esri.layers.support.Field")],m);const g=m},39450:(e,t,i)=>{i.d(t,{Z:()=>u});var s,r=i(43697),n=i(96674),o=i(5600),a=(i(67676),i(80442),i(75215)),l=i(52011);let h=s=class extends n.wq{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new s({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],h.prototype,"cols",void 0),(0,r._)([(0,o.Cb)({type:a.z8,json:{write:!0}})],h.prototype,"level",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"levelValue",void 0),(0,r._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],h.prototype,"origin",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],h.prototype,"resolution",void 0),(0,r._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],h.prototype,"rows",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],h.prototype,"scale",void 0),h=s=(0,r._)([(0,l.j)("esri.layers.support.LOD")],h);const u=h},11145:(e,t,i)=>{i.d(t,{Z:()=>x});var s,r=i(43697),n=i(35454),o=i(96674),a=i(70586),l=i(67900),h=i(5600),u=(i(67676),i(80442),i(75215)),d=i(71715),c=i(52011),p=i(30556),f=i(13473),m=i(82971),g=i(24470),y=i(8744),_=i(40488),v=i(39450);const b=new n.X({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let C=s=class extends o.wq{constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.minScale=0,this.maxScale=0,this.size=null,this.spatialReference=null}static create(e={}){const{resolutionFactor:t=1,scales:i,size:r=256,spatialReference:n=m.Z.WebMercator,numLODs:o=24}=e;if(!(0,y.JY)(n)){const e=[];if(i)for(let t=0;t<i.length;t++){const s=i[t];e.push({level:t,scale:s,resolution:s})}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift({level:i,scale:t,resolution:t}),t*=2}return new s({dpi:96,lods:e,origin:new f.Z(0,0,n),size:[r,r],spatialReference:n})}const a=(0,y.C5)(n),h=e.origin?new f.Z({x:e.origin.x,y:e.origin.y,spatialReference:n}):new f.Z(a?{x:a.origin[0],y:a.origin[1],spatialReference:n}:{x:0,y:0,spatialReference:n}),u=1/(39.37*(0,l.c9)(n)*96),d=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],s=t*u;d.push({level:e,scale:t,resolution:s})}else{let e=(0,y.sT)(n)?512/r*591657527.5917094:256/r*591657527.591555;const i=Math.ceil(o/t);d.push({level:0,scale:e,resolution:e*u});for(let s=1;s<i;s++){const i=e/2**t,r=i*u;d.push({level:s,scale:i,resolution:r}),e=i}}return new s({dpi:96,lods:d,origin:h,size:[r,r],spatialReference:n})}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,y.C5)(e);return e.isWrappable&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return f.Z.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const s=[];this._levelToLOD={},e&&(t=-1/0,i=1/0,e.forEach((e=>{s.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,this._levelToLOD[e.level]=e}))),this._set("scales",s),this._set("minScale",t),this._set("maxScale",i),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];{const i=Math.floor(e),s=i+1;return t[i]/(t[i]/t[s])**(e-i)}}scaleToZoom(e){const t=this.scales,i=t.length-1;let s=0;for(;s<i;s++){const i=t[s],r=t[s+1];if(i<=e)return s;if(r===e)return s+1;if(i>e&&r<e)return s+Math.log(i/e)/Math.log(i/r)}return s}snapScale(e,t=.95){const i=this.scaleToZoom(e);return i%Math.floor(i)>=t?this.zoomToScale(Math.ceil(i)):this.zoomToScale(Math.floor(i))}tileAt(e,t,i,s){const r=this.lodAt(e);if(!r)return null;let n,o;if("number"==typeof t)n=t,o=i;else if((0,y.fS)(t.spatialReference,this.spatialReference))n=t.x,o=t.y,s=i;else{const e=(0,_.iV)(t,this.spatialReference);if((0,a.Wi)(e))return null;n=e.x,o=e.y,s=i}const l=r.resolution*this.size[0],h=r.resolution*this.size[1];return s||(s={id:null,level:0,row:0,col:0,extent:(0,g.Ue)()}),s.level=e,s.row=Math.floor((this.origin.y-o)/h+.001),s.col=Math.floor((n-this.origin.x)/l+.001),this.updateTileInfo(s),s}updateTileInfo(e,t=s.ExtrapolateOptions.NONE){let i=this.lodAt(e.level);if(!i&&t===s.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return;const r=e.level-i.level,n=i.resolution*this.size[0]/2**r,o=i.resolution*this.size[1]/2**r;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,g.Ue)()),e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const{resolution:i}=this.lodAt(t.level),s=i*this.size[0],r=i*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*r,e[2]=e[0]+s,e[3]=e[1]+r,e}lodAt(e){return this._levelToLOD&&this._levelToLOD[e]||null}clone(){return s.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(256===this.size[0]&&256===this.size[1])return 256===e?this:null;const i=[],r=this.lods.length;for(let e=0;e<r;e++){const s=this.lods[e],r=s.resolution*t;i.push(new v.Z({level:s.level,scale:s.scale,resolution:r}))}return new s({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const s=e[i];this._upsampleLevels[s.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/s.resolution:0},t=s}}};var T,w;(0,r._)([(0,h.Cb)({type:Number,json:{write:!0}})],C.prototype,"compressionQuality",void 0),(0,r._)([(0,h.Cb)({type:Number,json:{write:!0}})],C.prototype,"dpi",void 0),(0,r._)([(0,h.Cb)({type:String,json:{read:b.read,write:b.write,origins:{"web-scene":{read:!1,write:!1}}}})],C.prototype,"format",void 0),(0,r._)([(0,h.Cb)({readOnly:!0})],C.prototype,"isWrappable",null),(0,r._)([(0,h.Cb)({type:f.Z,json:{write:!0}})],C.prototype,"origin",void 0),(0,r._)([(0,d.r)("origin")],C.prototype,"readOrigin",null),(0,r._)([(0,h.Cb)({type:[v.Z],value:null,json:{write:!0}})],C.prototype,"lods",null),(0,r._)([(0,h.Cb)({readOnly:!0})],C.prototype,"minScale",void 0),(0,r._)([(0,h.Cb)({readOnly:!0})],C.prototype,"maxScale",void 0),(0,r._)([(0,h.Cb)({readOnly:!0})],C.prototype,"scales",void 0),(0,r._)([(0,h.Cb)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],C.prototype,"size",void 0),(0,r._)([(0,d.r)("size",["rows","cols"])],C.prototype,"readSize",null),(0,r._)([(0,p.c)("size",{cols:{type:u.z8},rows:{type:u.z8}})],C.prototype,"writeSize",null),(0,r._)([(0,h.Cb)({type:m.Z,json:{write:!0}})],C.prototype,"spatialReference",void 0),C=s=(0,r._)([(0,c.j)("esri.layers.support.TileInfo")],C),(w=(T=C||(C={})).ExtrapolateOptions||(T.ExtrapolateOptions={}))[w.NONE=0]="NONE",w[w.POWER_OF_TWO=1]="POWER_OF_TWO";const x=C},30547:(e,t,i)=>{i.d(t,{Z:()=>v});var s,r=i(43697),n=i(92835),o=i(84552),a=i(96674),l=i(22974),h=i(70586),u=i(5600),d=(i(75215),i(71715)),c=i(52011),p=i(30556);i(67676),i(80442);let f=s=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 s({respectsDaylightSaving:e,timezone:t})}};(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"respectsDaylightSaving",void 0),(0,r._)([(0,d.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],f.prototype,"readRespectsDaylightSaving",null),(0,r._)([(0,u.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],f.prototype,"timezone",void 0),f=s=(0,r._)([(0,c.j)("esri.layers.support.TimeReference")],f);const m=f;var g,y=i(78981);let _=g=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 i=new Date(t.timeExtent[0]),s=new Date(t.timeExtent[1]);return new n.Z({start:i,end:s})}writeFullTimeExtent(e,t){e&&(0,h.pC)(e.start)&&(0,h.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:y.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new o.Z({value:t.defaultTimeInterval,unit:y.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const i=e.toJSON();t.timeInterval=i.value,t.timeIntervalUnits=i.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:i,interval:s,startField:r,timeReference:n,fullTimeExtent:o,trackIdField:a,useTime:h}=this;return new g({cumulative:e,endField:t,hasLiveData:i,interval:s,startField:r,timeReference:(0,l.d9)(n),fullTimeExtent:(0,l.d9)(o),trackIdField:a,useTime:h})}};(0,r._)([(0,u.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],_.prototype,"cumulative",void 0),(0,r._)([(0,u.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],_.prototype,"endField",void 0),(0,r._)([(0,u.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],_.prototype,"fullTimeExtent",void 0),(0,r._)([(0,d.r)("fullTimeExtent",["timeExtent"])],_.prototype,"readFullTimeExtent",null),(0,r._)([(0,p.c)("fullTimeExtent")],_.prototype,"writeFullTimeExtent",null),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],_.prototype,"hasLiveData",void 0),(0,r._)([(0,u.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],_.prototype,"interval",void 0),(0,r._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],_.prototype,"readInterval",null),(0,r._)([(0,p.c)("interval")],_.prototype,"writeInterval",null),(0,r._)([(0,u.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],_.prototype,"startField",void 0),(0,r._)([(0,u.Cb)({type:m,json:{write:{enabled:!0,allowNull:!0}}})],_.prototype,"timeReference",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],_.prototype,"trackIdField",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],_.prototype,"useTime",void 0),_=g=(0,r._)([(0,c.j)("esri.layers.support.TimeInfo")],_);const v=_},72729:(e,t,i)=>{i.d(t,{im:()=>x,V5:()=>w}),i(80442);var s,r=i(43697),n=i(22974),o=i(5600),a=(i(75215),i(36030)),l=i(52011),h=i(96674);i(67676);let u=s=class extends h.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new s({name:this.name,code:this.code})}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,r._)([(0,o.Cb)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=s=(0,r._)([(0,l.j)("esri.layers.support.CodedValue")],u);const d=new(i(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends h.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,a.J)(d)],c.prototype,"type",void 0),c=(0,r._)([(0,l.j)("esri.layers.support.Domain")],c);const p=c;var f;let m=f=class extends p{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some((e=>(String(e.code)===i&&(t=e.name),!!t)))}return t}clone(){return new f({codedValues:(0,n.d9)(this.codedValues),name:this.name})}};(0,r._)([(0,o.Cb)({type:[u],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,r._)([(0,a.J)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=f=(0,r._)([(0,l.j)("esri.layers.support.CodedValueDomain")],m);const g=m;var y;i(92604),i(37697);let _=y=class extends p{constructor(e){super(e),this.type="inherited"}clone(){return new y}};(0,r._)([(0,a.J)({inherited:"inherited"})],_.prototype,"type",void 0),_=y=(0,r._)([(0,l.j)("esri.layers.support.InheritedDomain")],_);const v=_;var b;let C=b=class extends p{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new b({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]}}}})],C.prototype,"maxValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]}}}})],C.prototype,"minValue",void 0),(0,r._)([(0,a.J)({range:"range"})],C.prototype,"type",void 0),C=b=(0,r._)([(0,l.j)("esri.layers.support.RangeDomain")],C);const T=C,w={key:"type",base:p,typeMap:{range:C,"coded-value":g,inherited:v}};function x(e){if(!e||!e.type)return null;switch(e.type){case"range":return T.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return v.fromJSON(e)}return null}},86719:(e,t,i)=>{i.d(t,{v:()=>s});const s=new(i(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},78981:(e,t,i)=>{i.d(t,{v:()=>s});const s=(0,i(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},2255:(e,t,i)=>{i.r(t),i.d(t,{FeatureServiceSnappingSourceWorker:()=>Q,default:()=>$});var s=i(43697),r=i(32448),n=i(61247),o=i(70586),a=i(95330),l=i(17445),h=i(5600),u=i(67676),d=(i(80442),i(75215),i(52011)),c=i(72762),p=i(82971),f=i(57191),m=i(41006),g=i(11145),y=i(30547),_=i(57444),v=i(15923);let b=class extends v.Z{constructor(){super(...arguments),this.updating=!1,this.pending=[]}push(e,t){this.pending.push({promise:e,callback:t}),1===this.pending.length&&this._process()}_process(){if(!this.pending.length)return void(this.updating=!1);this.updating=!0;const e=this.pending[0];e.promise.then((t=>e.callback(t))).catch((()=>{})).then((()=>{this.pending.shift(),this._process()}))}};(0,s._)([(0,h.Cb)()],b.prototype,"updating",void 0),b=(0,s._)([(0,d.j)("esri.core.AsyncSequence")],b);var C,T=i(3920),w=i(50758),x=i(92604),E=i(6570),F=i(24470),I=i(98732),S=i(78760),O=i(34599),B=i(66643);class M{constructor(e,t){this.data=e,this.resolution=t,this.state={type:C.CREATED},this.alive=!0}process(e){switch(this.state.type){case C.CREATED:return this.state=this._gotoFetchCount(this.state,e),this.state.task.promise.then(e.resume,e.resume);case C.FETCH_COUNT:break;case C.FETCHED_COUNT:return this.state=this._gotoFetchFeatures(this.state,e),this.state.task.promise.then(e.resume,e.resume);case C.FETCH_FEATURES:break;case C.FETCHED_FEATURES:this.state=this._goToDone(this.state,e);case C.DONE:}return null}get debugInfo(){return{data:this.data,featureCount:this.featureCount,state:this.stateToString}}get featureCount(){switch(this.state.type){case C.CREATED:case C.FETCH_COUNT:return 0;case C.FETCHED_COUNT:return this.state.featureCount;case C.FETCH_FEATURES:return this.state.previous.featureCount;case C.FETCHED_FEATURES:return this.state.features.length;case C.DONE:return this.state.previous.features.length}}get stateToString(){switch(this.state.type){case C.CREATED:return"created";case C.FETCH_COUNT:return"fetch-count";case C.FETCHED_COUNT:return"fetched-count";case C.FETCH_FEATURES:return"fetch-features";case C.FETCHED_FEATURES:return"fetched-features";case C.DONE:return"done"}}_gotoFetchCount(e,t){return{type:C.FETCH_COUNT,previous:e,task:(0,a.vr)((async e=>{const i=await(0,B.mt)(t.fetchCount(this,e));this.state.type===C.FETCH_COUNT&&(this.state=this._gotoFetchedCount(this.state,i.ok?i.value:1/0))}))}}_gotoFetchedCount(e,t){return{type:C.FETCHED_COUNT,featureCount:t,previous:e}}_gotoFetchFeatures(e,t){return{type:C.FETCH_FEATURES,previous:e,task:(0,a.vr)((async i=>{const s=await(0,B.mt)(t.fetchFeatures(this,e.featureCount,i));this.state.type===C.FETCH_FEATURES&&(this.state=this._gotoFetchedFeatures(this.state,s.ok?s.value:[]))}))}}_gotoFetchedFeatures(e,t){return{type:C.FETCHED_FEATURES,previous:e,features:t}}_goToDone(e,t){return t.finish(this,e.features),{type:C.DONE,previous:e}}reset(){const e=this.state;switch(this.state={type:C.CREATED},e.type){case C.CREATED:case C.FETCHED_COUNT:case C.FETCHED_FEATURES:case C.DONE:break;case C.FETCH_COUNT:case C.FETCH_FEATURES:e.task.abort()}}intersects(e){return!(!(0,o.Wi)(e)&&this.data.extent)||((0,F.oJ)(e,R),(0,F.kK)(this.data.extent,R))}}!function(e){e[e.CREATED=0]="CREATED",e[e.FETCH_COUNT=1]="FETCH_COUNT",e[e.FETCHED_COUNT=2]="FETCHED_COUNT",e[e.FETCH_FEATURES=3]="FETCH_FEATURES",e[e.FETCHED_FEATURES=4]="FETCHED_FEATURES",e[e.DONE=5]="DONE"}(C||(C={}));const R=(0,F.Ue)(),D=x.Z.getLogger("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiledFetcher");let A=class extends T.r{constructor(e){super(e),this.tilesOfInterest=[],this.availability=0,this.pendingTiles=new Map,this.pendingEdits=new b,this.pendingEditsAbortController=new AbortController}get minimumVerticesPerFeature(){switch(this.store?.featureStore.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":return 1;case"esriGeometryPolygon":return 4;case"esriGeometryPolyline":return 2}}set filter(e){const t=this._get("filter"),i=this._filterProperties(e);JSON.stringify(t)!==JSON.stringify(i)&&this._set("filter",i)}set customParameters(e){const t=this._get("customParameters");JSON.stringify(t)!==JSON.stringify(e)&&this._set("customParameters",e)}get configuration(){return{filter:this.filter,customParameters:this.customParameters,tileInfo:this.tileInfo,tileSize:this.tileSize}}set tileInfo(e){const t=this._get("tileInfo");t!==e&&((0,o.pC)(e)&&(0,o.pC)(t)&&JSON.stringify(e)===JSON.stringify(t)||(this._set("tileInfo",e),this.store.tileInfo=e))}set tileSize(e){this._get("tileSize")!==e&&this._set("tileSize",e)}get updating(){return this.updatingHandles.updating||this.pendingEdits.updating}initialize(){this._initializeFetchExtent(),this.updatingHandles.add((()=>this.configuration),(()=>this.refresh())),this.updatingHandles.add((()=>this.tilesOfInterest),((e,t)=>{(0,u.fS)(e,t,(({id:e},{id:t})=>e===t))||this._process()}),l.Z_)}destroy(){this.pendingTiles.forEach((e=>this._deletePendingTile(e))),this.pendingTiles.clear(),this.store.destroy(),this.tilesOfInterest.length=0,this.pendingEditsAbortController.abort(),this.pendingEditsAbortController=null}refresh(){this.store.refresh(),this.pendingTiles.forEach((e=>this._deletePendingTile(e))),this._process()}applyEdits(e){this.pendingEdits.push(e,(async e=>{if(0===e.addedFeatures.length&&0===e.updatedFeatures.length&&0===e.deletedFeatures.length)return;for(const[,e]of this.pendingTiles)e.reset();const t={...e,deletedFeatures:e.deletedFeatures.map((({objectId:e,globalId:t})=>e&&-1!==e?e:this._lookupObjectIdByGlobalId(t)))};await this.updatingHandles.addPromise(this.store.processEdits(t,((e,t)=>this._queryFeaturesById(e,t)),this.pendingEditsAbortController.signal)),this._processPendingTiles()}))}_initializeFetchExtent(){if(!this.capabilities.query.supportsExtent)return;const e=(0,a.vr)((async e=>{try{const t=await(0,O.executeQueryForExtent)(this.url,new _.Z({where:"1=1",outSpatialReference:this.spatialReference,cacheHint:!!this.capabilities.query.supportsCacheHint||void 0}),{query:this.configuration.customParameters,signal:e});this.store.extent=E.Z.fromJSON(t.data?.extent)}catch(e){(0,a.r9)(e),D.warn("Failed to fetch data extent",e)}}));this.updatingHandles.addPromise(e.promise.then((()=>this._process()))),this.handles.add((0,w.kB)((()=>e.abort())))}get debugInfo(){return{numberOfFeatures:this.store.featureStore.numFeatures,tilesOfInterest:this.tilesOfInterest,pendingTiles:Array.from(this.pendingTiles.values()).map((e=>e.debugInfo)),storedTiles:this.store.debugInfo}}_process(){this._markTilesNotAlive(),this._createPendingTiles(),this._deletePendingTiles(),this._processPendingTiles()}_markTilesNotAlive(){for(const[,e]of this.pendingTiles)e.alive=!1}_createPendingTiles(){const e=this._collectMissingTilesInfo();if(this._setAvailability((0,o.Wi)(e)?1:e.coveredArea/e.fullArea),!(0,o.Wi)(e))for(const{data:t,resolution:i}of e.missingTiles){const e=this.pendingTiles.get(t.id);e?(e.resolution=i,e.alive=!0):this._createPendingTile(t,i)}}_collectMissingTilesInfo(){let e=null;for(let t=this.tilesOfInterest.length-1;t>=0;t--){const i=this.tilesOfInterest[t],s=this.store.process(i,((e,t)=>this._verifyTileComplexity(e,t)));(0,o.Wi)(e)?e=s:e.prepend(s)}return e}_deletePendingTiles(){for(const[,e]of this.pendingTiles)e.alive||this._deletePendingTile(e)}_processPendingTiles(){const e={fetchCount:(e,t)=>this._fetchCount(e,t),fetchFeatures:(e,t,i)=>this._fetchFeatures(e,t,i),finish:(e,t)=>this._finishPendingTile(e,t),resume:()=>this._processPendingTiles()};if(this._ensureFetchAllCounts(e))for(const[,t]of this.pendingTiles)this._verifyTileComplexity(this.store.getFeatureCount(t.data),t.resolution)&&this.updatingHandles.addPromise(t.process(e))}_verifyTileComplexity(e,t){return this._verifyVertexComplexity(e)&&this._verifyFeatureDensity(e,t)}_verifyVertexComplexity(e){return e*this.minimumVerticesPerFeature<P}_verifyFeatureDensity(e,t){if((0,o.Wi)(this.tileInfo))return!1;const i=this.tileSize*t;return e*(U/(i*i))<z}_ensureFetchAllCounts(e){let t=!0;for(const[,i]of this.pendingTiles)i.state.type<C.FETCHED_COUNT&&this.updatingHandles.addPromise(i.process(e)),i.state.type<=C.FETCH_COUNT&&(t=!1);return t}_finishPendingTile(e,t){this.store.add(e.data,t),this._deletePendingTile(e),this._updateAvailability()}_updateAvailability(){const e=this._collectMissingTilesInfo();this._setAvailability((0,o.Wi)(e)?1:e.coveredArea/e.fullArea)}_setAvailability(e){this._set("availability",e)}_createPendingTile(e,t){const i=new M(e,t);return this.pendingTiles.set(e.id,i),i}_deletePendingTile(e){e.reset(),this.pendingTiles.delete(e.data.id)}async _fetchCount(e,t){return this.store.fetchCount(e.data,this.url,this._createCountQuery(e),{query:this.customParameters,timeout:N,signal:t})}async _fetchFeatures(e,t,i){let s,r=0,n=0,a=t;for(;;){const l=this._createFeaturesQuery(e),h=this._setPagingParameters(l,r,a),{features:u,exceededTransferLimit:d}=await this._queryFeatures(l,i);if(h&&(r+=(0,o.Wg)(l.num)),n+=u.length,s=s?s.concat(u):u,a=t-n,!h||!d||a<=0)return s}}_filterProperties(e){return(0,o.Wi)(e)?{where:"1=1",gdbVersion:void 0,timeExtent:void 0}:{where:e.where||"1=1",timeExtent:e.timeExtent,gdbVersion:e.gdbVersion}}_lookupObjectIdByGlobalId(e){const t=this.globalIdField,i=this.objectIdField;if((0,o.Wi)(t))throw new Error("Expected globalIdField to be defined");let s=null;if(this.store.featureStore.forEach((r=>{e===r.attributes[t]&&(s=r.objectId??r.attributes[i])})),(0,o.Wi)(s))throw new Error(`Expected to find a feature with globalId ${e}`);return s}_queryFeaturesById(e,t){const i=this._createFeaturesQuery(null);return i.objectIds=e,this._queryFeatures(i,t)}_queryFeatures(e,t){return this.capabilities.query.supportsFormatPBF?this._queryFeaturesPBF(e,t):this._queryFeaturesJSON(e,t)}async _queryFeaturesPBF(e,t){const{sourceSpatialReference:i}=this,{data:s}=await(0,O.executeQueryPBF)(this.url,e,new S.J({sourceSpatialReference:i}),{query:this.configuration.customParameters,timeout:N,signal:t});return(0,I.lM)(s)}async _queryFeaturesJSON(e,t){const{sourceSpatialReference:i}=this,{data:s}=await(0,O.executeQuery)(this.url,e,i,{query:this.configuration.customParameters,timeout:N,signal:t});return(0,I.h_)(s,this.objectIdField)}_createCountQuery(e){const t=this._createBaseQuery(e);return this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0),t}_createFeaturesQuery(e){const t=this._createBaseQuery(e);return t.outFields=this.globalIdField?[this.globalIdField,this.objectIdField]:[this.objectIdField],t.returnGeometry=!0,(0,o.pC)(e)&&(this.capabilities.query.supportsResultType?t.resultType="tile":this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0)),t}_createBaseQuery(e){const t=new _.Z({returnZ:!1,returnM:!1,geometry:(0,o.pC)(this.tileInfo)&&(0,o.pC)(e)?(0,F.HH)(e.data.extent,this.tileInfo.spatialReference):void 0}),i=this.configuration.filter;return(0,o.pC)(i)&&(t.where=i.where,t.gdbVersion=i.gdbVersion,t.timeExtent=i.timeExtent),t.outSpatialReference=this.spatialReference,t}_setPagingParameters(e,t,i){if(!this.capabilities.query.supportsPagination)return!1;const{supportsMaxRecordCountFactor:s,supportsCacheHint:r,tileMaxRecordCount:n,maxRecordCount:o,supportsResultType:a}=this.capabilities.query,l=s?_.Z.MAX_MAX_RECORD_COUNT_FACTOR:1,h=l*((a||r)&&n?n:o||j);return e.start=t,s?(e.maxRecordCountFactor=Math.min(l,Math.ceil(i/h)),e.num=Math.min(i,e.maxRecordCountFactor*h)):e.num=Math.min(i,h),!0}};(0,s._)([(0,h.Cb)({constructOnly:!0})],A.prototype,"url",void 0),(0,s._)([(0,h.Cb)({constructOnly:!0})],A.prototype,"objectIdField",void 0),(0,s._)([(0,h.Cb)({constructOnly:!0})],A.prototype,"globalIdField",void 0),(0,s._)([(0,h.Cb)({constructOnly:!0})],A.prototype,"capabilities",void 0),(0,s._)([(0,h.Cb)({constructOnly:!0})],A.prototype,"sourceSpatialReference",void 0),(0,s._)([(0,h.Cb)({constructOnly:!0})],A.prototype,"spatialReference",void 0),(0,s._)([(0,h.Cb)({constructOnly:!0})],A.prototype,"store",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],A.prototype,"minimumVerticesPerFeature",null),(0,s._)([(0,h.Cb)()],A.prototype,"filter",null),(0,s._)([(0,h.Cb)()],A.prototype,"customParameters",null),(0,s._)([(0,h.Cb)({readOnly:!0})],A.prototype,"configuration",null),(0,s._)([(0,h.Cb)()],A.prototype,"tileInfo",null),(0,s._)([(0,h.Cb)()],A.prototype,"tileSize",null),(0,s._)([(0,h.Cb)()],A.prototype,"tilesOfInterest",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],A.prototype,"updating",null),(0,s._)([(0,h.Cb)({readOnly:!0})],A.prototype,"availability",void 0),A=(0,s._)([(0,d.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiledFetcher")],A);const j=2e3,N=6e5,P=1e6,U=25,z=1;var H=i(43090),Z=i(37549);class k{constructor(){this._store=new Map,this._byteSize=0}set(e,t){this.delete(e),this._store.set(e,t),this._byteSize+=t.byteSize}delete(e){const t=this._store.get(e);return!!this._store.delete(e)&&(this._byteSize-=t.byteSize,!0)}get(e){return this._used(e),this._store.get(e)}has(e){return this._used(e),this._store.has(e)}clear(){this._store.clear()}applyByteSizeLimit(e,t){for(const[i,s]of this._store){if(this._byteSize<=e)break;this.delete(i),t(s)}}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}_used(e){const t=this._store.get(e);t&&(this._store.delete(e),this._store.set(e,t))}}let Y=class extends v.Z{constructor(e){super(e),this.tileInfo=null,this.extent=null,this.maximumByteSize=10*H.Y8.MEGABYTES,this.tileBounds=new Z.H,this.tiles=new k,this.refCounts=new Map,this.tileFeatureCounts=new Map,this.tmpBoundingRect=(0,F.Ue)()}add(e,t){const i=[];for(const e of t)this._referenceFeature(e.objectId)===J.ADDED&&i.push(e);this._addTileStorage(e,new Set(t.map((({objectId:e})=>e))),function(e){return e.reduce(((e,t)=>e+function(e){return 32+function(e){if((0,o.Wi)(e))return 0;const t=(0,H.do)(e.lengths,4);return 32+(0,H.do)(e.coords,8)+t}(e.geometry)+(0,H.f2)(e.attributes)}(t)),0)}(t)),this.featureStore.addMany(i),this.tiles.applyByteSizeLimit(this.maximumByteSize,(e=>this._removeTileStorage(e)))}destroy(){this.clear(),this.tileFeatureCounts.clear()}clear(){this.featureStore.clear(),this.tileBounds.clear(),this.tiles.clear(),this.refCounts.clear()}refresh(){this.clear(),this.tileFeatureCounts.clear()}processEdits(e,t,i){return this._processEditsDelete(e.deletedFeatures.concat(e.updatedFeatures)),this._processEditsRefetch(e.addedFeatures.concat(e.updatedFeatures),t,i)}_addTileStorage(e,t,i){this.tiles.set(e.id,new V(e,t,i)),this.tileBounds.set(e.id,e.extent),this.tileFeatureCounts.set(e.id,t.size)}_remove({id:e}){const t=this.tiles.get(e);t&&this._removeTileStorage(t)}_removeTileStorage(e){const t=[];for(const i of e.objectIds)this._unreferenceFeature(i)===J.REMOVED&&t.push(i);this.featureStore.removeManyById(t);const i=e.data.id;this.tiles.delete(i),this.tileBounds.delete(i)}_processEditsDelete(e){this.featureStore.removeManyById(e);for(const[,t]of this.tiles){for(const i of e)t.objectIds.delete(i);this.tileFeatureCounts.set(t.data.id,t.objectIds.size)}for(const t of e)this.refCounts.delete(t)}async _processEditsRefetch(e,t,i){const s=(await t(e,i)).features,{hasZ:r,hasM:n}=this.featureStore;for(const e of s){const t=(0,I.$)(this.tmpBoundingRect,e.geometry,r,n);(0,o.Wi)(t)||this.tileBounds.forEachInBounds(t,(t=>{const i=this.tiles.get(t);this.featureStore.add(e),i.objectIds.has(e.objectId)||(i.objectIds.add(e.objectId),this._referenceFeature(e.objectId),this.tileFeatureCounts.set(i.data.id,i.objectIds.size))}))}}process(e,t=(()=>!0)){if((0,o.Wi)(this.tileInfo)||!e.extent||(0,o.pC)(this.extent)&&!(0,F.kK)((0,F.oJ)(this.extent,this.tmpBoundingRect),e.extent))return new L(e);if(this.tiles.has(e.id))return new L(e);const i=this._createTileTree(e,this.tileInfo);return this._simplify(i,t,null,0,1),this._collectMissingTiles(e,i,this.tileInfo)}get debugInfo(){return Array.from(this.tiles.values()).map((({data:e})=>({data:e,featureCount:this.tileFeatureCounts.get(e.id)||0})))}getFeatureCount(e){return this.tileFeatureCounts.get(e.id)??0}async fetchCount(e,t,i,s){const r=this.tileFeatureCounts.get(e.id);if(null!=r)return r;const n=await(0,O.executeQueryForCount)(t,i,s);return this.tileFeatureCounts.set(e.id,n.data.count),n.data.count}_createTileTree(e,t){const i=new X(e.level,e.row,e.col);return t.updateTileInfo(i,g.Z.ExtrapolateOptions.POWER_OF_TWO),this.tileBounds.forEachInBounds(e.extent,(s=>{const r=this.tiles.get(s).data;this._tilesAreRelated(e,r)&&this._populateChildren(i,r,t,this.tileFeatureCounts.get(r.id)||0)})),i}_tilesAreRelated(e,t){if(!e||!t)return!1;if(e.level===t.level)return e.row===t.row&&e.col===t.col;const i=e.level<t.level,s=i?e:t,r=i?t:e,n=1<<r.level-s.level;return Math.floor(r.row/n)===s.row&&Math.floor(r.col/n)===s.col}_populateChildren(e,t,i,s){const r=t.level-e.level-1;if(r<0)return void(e.isLeaf=!0);const n=t.row>>r,a=t.col>>r,l=e.row<<1,h=a-(e.col<<1)+(n-l<<1),u=e.children[h];if((0,o.pC)(u))this._populateChildren(u,t,i,s);else{const r=new X(e.level+1,n,a);i.updateTileInfo(r,g.Z.ExtrapolateOptions.POWER_OF_TWO),e.children[h]=r,this._populateChildren(r,t,i,s)}}_simplify(e,t,i,s,r){const n=r*r;if(e.isLeaf)return t(this.getFeatureCount(e),r)?0:(this._remove(e),(0,o.pC)(i)&&(i.children[s]=null),n);const a=r/2,l=a*a;let h=0;for(let i=0;i<e.children.length;i++){const s=e.children[i];h+=(0,o.pC)(s)?this._simplify(s,t,e,i,a):l}return 0===h?this._mergeChildren(e):1-h/n<W&&(this._purge(e),(0,o.pC)(i)&&(i.children[s]=null),h=n),h}_mergeChildren(e){const t=new Set;let i=0;this._forEachLeaf(e,(e=>{const s=this.tiles.get(e.id);if(s){i+=s.byteSize;for(const e of s.objectIds)t.has(e)||(t.add(e),this._referenceFeature(e));this._remove(e)}})),this._addTileStorage(e,t,i),e.isLeaf=!0,e.children[0]=e.children[1]=e.children[2]=e.children[3]=null,this.tileFeatureCounts.set(e.id,t.size)}_forEachLeaf(e,t){for(const i of e.children)(0,o.Wi)(i)||(i.isLeaf?t(i):this._forEachLeaf(i,t))}_purge(e){if(!(0,o.Wi)(e))if(e.isLeaf)this._remove(e);else for(let t=0;t<e.children.length;t++){const i=e.children[t];this._purge(i),e.children[t]=null}}_collectMissingTiles(e,t,i){const s=new q(i,e,this.extent);return this._collectMissingTilesRecurse(t,s,1),s.info}_collectMissingTilesRecurse(e,t,i){if(e.isLeaf)return;if(!e.hasChildren)return void t.addMissing(e.level,e.row,e.col,i);const s=i/2;for(let i=0;i<e.children.length;i++){const r=e.children[i];(0,o.Wi)(r)?t.addMissing(e.level+1,(e.row<<1)+((2&i)>>1),(e.col<<1)+(1&i),s):this._collectMissingTilesRecurse(r,t,s)}}_referenceFeature(e){const t=(this.refCounts.get(e)||0)+1;return this.refCounts.set(e,t),1===t?J.ADDED:J.UNCHANGED}_unreferenceFeature(e){const t=(this.refCounts.get(e)||0)-1;return 0===t?(this.refCounts.delete(e),J.REMOVED):(t>0&&this.refCounts.set(e,t),J.UNCHANGED)}get test(){return{tiles:Array.from(this.tiles.values()).map((e=>`${e.data.id}:[${Array.from(e.objectIds)}]`)),featureReferences:Array.from(this.refCounts.keys()).map((e=>`${e}:${this.refCounts.get(e)}`))}}};(0,s._)([(0,h.Cb)({constructOnly:!0})],Y.prototype,"featureStore",void 0),(0,s._)([(0,h.Cb)()],Y.prototype,"tileInfo",void 0),(0,s._)([(0,h.Cb)()],Y.prototype,"extent",void 0),(0,s._)([(0,h.Cb)()],Y.prototype,"maximumByteSize",void 0),Y=(0,s._)([(0,d.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTileStore")],Y);class V{constructor(e,t,i){this.data=e,this.objectIds=t,this.byteSize=i}}class X{constructor(e,t,i){this.level=e,this.row=t,this.col=i,this.isLeaf=!1,this.extent=null,this.children=[null,null,null,null]}get hasChildren(){return!this.isLeaf&&((0,o.pC)(this.children[0])||(0,o.pC)(this.children[1])||(0,o.pC)(this.children[2])||(0,o.pC)(this.children[3]))}}class L{constructor(e,t=[]){this.missingTiles=t,this.fullArea=0,this.coveredArea=0,this.fullArea=(0,F.SO)(e.extent),this.coveredArea=this.fullArea}prepend(e){this.missingTiles=e.missingTiles.concat(this.missingTiles),this.coveredArea+=e.coveredArea,this.fullArea+=e.fullArea}}class q{constructor(e,t,i){this.tileInfo=e,this.extent=null,this.info=new L(t),(0,o.pC)(i)&&(this.extent=(0,F.oJ)(i))}addMissing(e,t,i,s){const r={id:null,level:e,row:t,col:i};this.tileInfo.updateTileInfo(r,g.Z.ExtrapolateOptions.POWER_OF_TWO),(0,o.Wi)(r.extent)||(0,o.pC)(this.extent)&&!(0,F.kK)(this.extent,r.extent)||(this.info.missingTiles.push({data:r,resolution:s}),this.info.coveredArea-=(0,F.SO)(r.extent))}}const W=.18751;var J,G;(G=J||(J={}))[G.ADDED=0]="ADDED",G[G.REMOVED=1]="REMOVED",G[G.UNCHANGED=2]="UNCHANGED";let Q=class extends r.Z.EventedAccessor{constructor(){super(...arguments),this.isInitializing=!0,this.whenSetup=(0,a.dD)(),this.handles=new n.Z,this.updatingHandles=new c.t,this.pendingApplyEdits=new Map}get updating(){return this.featureFetcher.updating||this.isInitializing||this.updatingHandles.updating}destroy(){this.featureFetcher.destroy(),this.queryEngine.destroy(),this.featureStore.clear(),this.handles.destroy()}async setup(e){const{geometryType:t,objectIdField:i,timeInfo:s,fields:r}=e.serviceInfo;return this.featureStore=new f.Z({...e.serviceInfo,hasZ:!1,hasM:!1}),this.queryEngine=new m.q({spatialReference:e.spatialReference,featureStore:this.featureStore,geometryType:t,fields:r,hasZ:!1,hasM:!1,objectIdField:i,timeInfo:s?y.Z.fromJSON(s):null}),this.featureFetcher=new A({store:new Y({featureStore:this.featureStore}),url:e.serviceInfo.url,objectIdField:e.serviceInfo.objectIdField,globalIdField:e.serviceInfo.globalIdField,capabilities:e.serviceInfo.capabilities,spatialReference:p.Z.fromJSON(e.spatialReference),sourceSpatialReference:p.Z.fromJSON(e.serviceInfo.spatialReference)}),this.handles.add([this.featureFetcher.watch("availability",(e=>this.emit("notify-availability",{availability:e})),!0),this.watch("updating",(()=>this._notifyUpdating()))]),this.whenSetup.resolve(),this.isInitializing=!1,this.configure(e.configuration)}async configure(e){return await this.updatingHandles.addPromise(this.whenSetup.promise),this._updateFeatureFetcherConfiguration(e),{result:{}}}async fetchCandidates(e,t){return await this.whenSetup.promise,(0,a.k_)(t),{result:await this.queryEngine.executeQueryForSnapping({point:e.point,distance:e.distance,types:e.types,query:(0,o.pC)(e.filter)?e.filter:{where:"1=1"}},(0,o.pC)(t)?t.signal:null)}}async updateTiles(e,t){return await this.updatingHandles.addPromise(this.whenSetup.promise),(0,a.k_)(t),this.featureFetcher.tileSize=e.tileSize,this.featureFetcher.tilesOfInterest=e.tiles,this.featureFetcher.tileInfo=(0,o.pC)(e.tileInfo)?g.Z.fromJSON(e.tileInfo):null,{result:{}}}async refresh(e,t){return await this.updatingHandles.addPromise(this.whenSetup.promise),(0,a.k_)(t),this.featureFetcher.refresh(),{result:{}}}async whenNotUpdating(e,t){return await this.updatingHandles.addPromise(this.whenSetup.promise),(0,a.k_)(t),await(0,l.N1)((()=>!this.updating),t),(0,a.k_)(t),{result:{}}}async getDebugInfo(e,t){return(0,a.k_)(t),{result:this.featureFetcher.debugInfo}}async beginApplyEdits(e,t){this.updatingHandles.addPromise(this.whenSetup.promise),(0,a.k_)(t);const i=(0,a.dD)();return this.pendingApplyEdits.set(e.id,i),this.featureFetcher.applyEdits(i.promise),this.updatingHandles.addPromise(i.promise),{result:{}}}async endApplyEdits(e,t){const i=this.pendingApplyEdits.get(e.id);return i&&i.resolve(e.edits),(0,a.k_)(t),{result:{}}}_updateFeatureFetcherConfiguration(e){this.featureFetcher.filter=(0,o.pC)(e.filter)?_.Z.fromJSON(e.filter):null,this.featureFetcher.customParameters=e.customParameters}_notifyUpdating(){this.emit("notify-updating",{updating:this.updating})}};function $(){return new Q}(0,s._)([(0,h.Cb)({readOnly:!0})],Q.prototype,"updating",null),(0,s._)([(0,h.Cb)()],Q.prototype,"isInitializing",void 0),Q=(0,s._)([(0,d.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceSnappingSourceWorker")],Q)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3121],{79235:(e,t,r)=>{r.d(t,{Z:()=>w});var i,s=r(43697),o=r(67676),n=r(35454),a=r(96674),l=r(67900),p=r(20941),u=r(5600),d=(r(80442),r(75215),r(71715)),c=r(52011),y=r(30556);const h=(0,n.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,o.e$)(m,"orthometric");const f=(0,n.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let b=i=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new p.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r&&r.messages&&r.messages.push(g(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||f.read(e)||(r&&r.messages&&r.messages.push(g(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new i({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function g(e,t){return new p.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,u.Cb)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],b.prototype,"heightModel",void 0),(0,s._)([(0,y.c)("web-scene","heightModel")],b.prototype,"writeHeightModel",null),(0,s._)([(0,d.r)(["web-scene","service"],"heightModel")],b.prototype,"readHeightModel",null),(0,s._)([(0,u.Cb)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],b.prototype,"heightUnit",void 0),(0,s._)([(0,d.r)("web-scene","heightUnit")],b.prototype,"readHeightUnit",null),(0,s._)([(0,d.r)("service","heightUnit")],b.prototype,"readHeightUnitService",null),(0,s._)([(0,u.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],b.prototype,"vertCRS",void 0),(0,s._)([(0,d.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],b.prototype,"readVertCRS",null),b=i=(0,s._)([(0,c.j)("esri.geometry.HeightModelInfo")],b);const w=b},3121:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Yt});var i,s=r(43697),o=r(51773),n=(r(16050),r(12501),r(95088),r(92271),r(5499),r(84382)),a=r(30687),l=r(91423),p=r(32400),u=r(3172),d=r(78223),c=r(2368),y=r(80539),h=r(20102),m=r(61247),f=r(80442),b=r(35454),g=r(22974),w=r(92604),v=r(70586),_=r(16453),C=r(78286),S=r(95330),I=r(42033),x=r(17452),F=r(5600),E=r(90578),j=r(71715),T=r(52011),O=r(30556),M=r(63213),R=r(96674),D=(r(67676),r(75215));let q=i=class extends R.wq{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],q.prototype,"expression",void 0),(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],q.prototype,"name",void 0),(0,s._)([(0,F.Cb)({type:["boolean","date","number","string"],json:{write:!0}})],q.prototype,"returnType",void 0),(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],q.prototype,"title",void 0),q=i=(0,s._)([(0,T.j)("esri.form.ExpressionInfo")],q);const A=q;let L=class extends R.wq{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],L.prototype,"description",void 0),(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],L.prototype,"label",void 0),(0,s._)([(0,F.Cb)()],L.prototype,"type",void 0),(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],L.prototype,"visibilityExpression",void 0),L=(0,s._)([(0,T.j)("esri.form.elements.Element")],L);const Z=L;var P;let G=P=class extends R.wq{constructor(e){super(e),this.type=null}clone(){return new P({type:this.type})}};(0,s._)([(0,F.Cb)({type:["attachment","audio","document","image","signature","video"],json:{write:!0}})],G.prototype,"type",void 0),G=P=(0,s._)([(0,T.j)("esri.form.elements.inputs.AttachmentInput")],G);const N=G;var V;let k=V=class extends Z{constructor(e){super(e),this.attachmentKeyword=null,this.editable=!0,this.input=null,this.type="attachment"}clone(){return new V({attachmentKeyword:this.attachmentKeyword,description:this.description,editable:this.editable,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],k.prototype,"attachmentKeyword",void 0),(0,s._)([(0,F.Cb)({type:Boolean,json:{write:!0}})],k.prototype,"editable",void 0),(0,s._)([(0,F.Cb)({type:N,json:{read:{source:"inputType"},write:{target:"inputType"}}})],k.prototype,"input",void 0),(0,s._)([(0,F.Cb)({type:["attachment"],json:{read:!1,write:!0}})],k.prototype,"type",void 0),k=V=(0,s._)([(0,T.j)("esri.form.elements.AttachmentElement")],k);const Q=k;let B=class extends R.wq{constructor(e){super(e),this.type=null}};(0,s._)([(0,F.Cb)()],B.prototype,"type",void 0),B=(0,s._)([(0,T.j)("esri.form.elements.inputs.Input")],B);const U=B;let J=class extends U{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,s._)([(0,F.Cb)({type:Number,json:{write:!0}})],J.prototype,"maxLength",void 0),(0,s._)([(0,F.Cb)({type:Number,json:{write:!0}})],J.prototype,"minLength",void 0),J=(0,s._)([(0,T.j)("esri.form.elements.inputs.TextInput")],J);const W=J;var z;let H=z=class extends W{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new z({maxLength:this.maxLength,minLength:this.minLength})}};(0,s._)([(0,F.Cb)({type:["barcode-scanner"],json:{read:!1,write:!0}})],H.prototype,"type",void 0),H=z=(0,s._)([(0,T.j)("esri.form.elements.inputs.BarcodeScannerInput")],H);const $=H;var K;let X=K=class extends U{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!1,this.type="combo-box"}clone(){return new K({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],X.prototype,"noValueOptionLabel",void 0),(0,s._)([(0,F.Cb)({type:Boolean,json:{write:!0}})],X.prototype,"showNoValueOption",void 0),(0,s._)([(0,F.Cb)({type:["combo-box"],json:{read:!1,write:!0}})],X.prototype,"type",void 0),X=K=(0,s._)([(0,T.j)("esri.form.elements.inputs.ComboBoxInput")],X);const Y=X;var ee;function te(e){return null!=e?new Date(e):null}function re(e){return e?e.getTime():null}let ie=ee=class extends U{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return te(t.max)}writeMax(e,t){t.max=re(e)}readMin(e,t){return te(t.min)}writeMin(e,t){t.min=re(e)}clone(){return new ee({includeTime:this.includeTime,max:this.max,min:this.min,type:this.type})}};(0,s._)([(0,F.Cb)({type:Boolean,json:{write:!0}})],ie.prototype,"includeTime",void 0),(0,s._)([(0,F.Cb)({type:Date,json:{type:Number,write:!0}})],ie.prototype,"max",void 0),(0,s._)([(0,j.r)("max")],ie.prototype,"readMax",null),(0,s._)([(0,O.c)("max")],ie.prototype,"writeMax",null),(0,s._)([(0,F.Cb)({type:Date,json:{type:Number,write:!0}})],ie.prototype,"min",void 0),(0,s._)([(0,j.r)("min")],ie.prototype,"readMin",null),(0,s._)([(0,O.c)("min")],ie.prototype,"writeMin",null),(0,s._)([(0,F.Cb)({type:["datetime-picker"],json:{read:!1,write:!0}})],ie.prototype,"type",void 0),ie=ee=(0,s._)([(0,T.j)("esri.form.elements.inputs.DateTimePickerInput")],ie);const se=ie;var oe;let ne=oe=class extends U{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!1,this.type="radio-buttons"}clone(){return new oe({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],ne.prototype,"noValueOptionLabel",void 0),(0,s._)([(0,F.Cb)({type:Boolean,json:{write:!0}})],ne.prototype,"showNoValueOption",void 0),(0,s._)([(0,F.Cb)({type:["radio-buttons"],json:{read:!1,write:!0}})],ne.prototype,"type",void 0),ne=oe=(0,s._)([(0,T.j)("esri.form.elements.inputs.RadioButtonsInput")],ne);const ae=ne;var le;let pe=le=class extends U{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new le({offValue:this.offValue,onValue:this.onValue})}};(0,s._)([(0,F.Cb)({type:[String,Number],json:{write:!0}})],pe.prototype,"offValue",void 0),(0,s._)([(0,F.Cb)({type:[String,Number],json:{write:!0}})],pe.prototype,"onValue",void 0),(0,s._)([(0,F.Cb)({type:["switch"],json:{read:!1,write:!0}})],pe.prototype,"type",void 0),pe=le=(0,s._)([(0,T.j)("esri.form.elements.inputs.SwitchInput")],pe);const ue=pe;var de;let ce=de=class extends W{constructor(e){super(e),this.type="text-area"}clone(){return new de({maxLength:this.maxLength,minLength:this.minLength})}};(0,s._)([(0,F.Cb)({type:["text-area"],json:{read:!1,write:!0}})],ce.prototype,"type",void 0),ce=de=(0,s._)([(0,T.j)("esri.form.elements.inputs.TextAreaInput")],ce);const ye=ce;var he;let me=he=class extends W{constructor(e){super(e),this.type="text-box"}clone(){return new he({maxLength:this.maxLength,minLength:this.minLength})}};(0,s._)([(0,F.Cb)({type:["text-box"],json:{read:!1,write:!0}})],me.prototype,"type",void 0),me=he=(0,s._)([(0,T.j)("esri.form.elements.inputs.TextBoxInput")],me);const fe={base:U,key:"type",typeMap:{"barcode-scanner":$,"combo-box":Y,"datetime-picker":se,"radio-buttons":ae,switch:ue,"text-area":ye,"text-box":me}};var be,ge=r(72729);let we=be=class extends Z{constructor(e){super(e),this.domain=null,this.editable=!0,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new be({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,F.Cb)({types:ge.V5,json:{read:{reader:ge.im},write:!0}})],we.prototype,"domain",void 0),(0,s._)([(0,F.Cb)({type:Boolean,json:{write:!0}})],we.prototype,"editable",void 0),(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],we.prototype,"editableExpression",void 0),(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],we.prototype,"fieldName",void 0),(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],we.prototype,"hint",void 0),(0,s._)([(0,F.Cb)({types:fe,json:{read:{source:"inputType"},write:{target:"inputType"}}})],we.prototype,"input",void 0),(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],we.prototype,"requiredExpression",void 0),(0,s._)([(0,F.Cb)({type:String,json:{read:!1,write:!0}})],we.prototype,"type",void 0),(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],we.prototype,"valueExpression",void 0),we=be=(0,s._)([(0,T.j)("esri.form.elements.FieldElement")],we);const ve=we;var _e,Ce=r(44729);let Se=_e=class extends Z{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editable=!0,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new _e({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editable:this.editable,label:this.label,orderByFields:(0,g.d9)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,F.Cb)({type:Number,json:{write:!0}})],Se.prototype,"displayCount",void 0),(0,s._)([(0,F.Cb)({type:["list"],json:{write:!0}})],Se.prototype,"displayType",void 0),(0,s._)([(0,F.Cb)({type:Boolean,json:{write:!0}})],Se.prototype,"editable",void 0),(0,s._)([(0,F.Cb)({type:[Ce.Z],json:{write:!0}})],Se.prototype,"orderByFields",void 0),(0,s._)([(0,F.Cb)({type:Number,json:{write:!0}})],Se.prototype,"relationshipId",void 0),(0,s._)([(0,F.Cb)({type:["relationship"],json:{read:!1,write:!0}})],Se.prototype,"type",void 0),Se=_e=(0,s._)([(0,T.j)("esri.form.elements.RelationshipElement")],Se);const Ie=Se;function xe(e){return{typesWithGroup:{base:Z,key:"type",typeMap:{attachment:Q,field:ve,group:e,relationship:Ie}},typesWithoutGroup:{base:Z,key:"type",typeMap:{attachment:Q,field:ve,relationship:Ie}}}}function Fe(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>i[e.type])).map((e=>i[e.type].fromJSON(e)))}function Ee(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>i[e.type])).map((e=>e.toJSON()))}function je(e,t,r=!0){return e?e.map((e=>(0,D.N7)(r?t.typesWithGroup:t.typesWithoutGroup,e))):null}var Te;let Oe=Te=class extends Z{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return je(e,Me,!1)}readElements(e,t){return Fe(t.formElements,Me,!1)}writeElements(e,t){t.formElements=Ee(e,Me,!1)}clone(){return new Te({description:this.description,elements:(0,g.d9)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,F.Cb)({json:{write:!0}})],Oe.prototype,"elements",void 0),(0,s._)([(0,E.p)("elements")],Oe.prototype,"castElements",null),(0,s._)([(0,j.r)("elements",["formElements"])],Oe.prototype,"readElements",null),(0,s._)([(0,O.c)("elements")],Oe.prototype,"writeElements",null),(0,s._)([(0,F.Cb)({type:["collapsed","expanded"],json:{write:!0}})],Oe.prototype,"initialState",void 0),(0,s._)([(0,F.Cb)({type:String,json:{read:!1,write:!0}})],Oe.prototype,"type",void 0),Oe=Te=(0,s._)([(0,T.j)("esri.form.elements.GroupElement")],Oe);const Me=xe(Oe);var Re;const De=xe(Oe);let qe=Re=class extends R.wq{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.title=null}castElements(e){return je(e,De)}readElements(e,t){return Fe(t.formElements,De)}writeElements(e,t){t.formElements=Ee(e,De)}clone(){return new Re({description:this.description,expressionInfos:(0,g.d9)(this.expressionInfos),elements:(0,g.d9)(this.elements),title:this.title})}};(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],qe.prototype,"description",void 0),(0,s._)([(0,F.Cb)({json:{write:!0}})],qe.prototype,"elements",void 0),(0,s._)([(0,E.p)("elements")],qe.prototype,"castElements",null),(0,s._)([(0,j.r)("elements",["formElements"])],qe.prototype,"readElements",null),(0,s._)([(0,O.c)("elements")],qe.prototype,"writeElements",null),(0,s._)([(0,F.Cb)({type:[A],json:{write:!0}})],qe.prototype,"expressionInfos",void 0),(0,s._)([(0,F.Cb)({type:String,json:{write:!0}})],qe.prototype,"title",void 0),qe=Re=(0,s._)([(0,T.j)("esri.form.FormTemplate")],qe);const Ae=qe;var Le=r(6570),Ze=r(79235),Pe=r(82971),Ge=r(87085),Ne=(r(66577),r(38171)),Ve=r(3920),ke=r(83379),Qe=r(609),Be=r(78346),Ue=r(52421),Je=r(59431),We=r(28694),ze=r(74889),He=r(38913),$e=r(86973);let Ke=0;const Xe=w.Z.getLogger("esri.layers.graphics.sources.MemorySource");let Ye=class extends(ke.Z.LoadableMixin((0,Qe.v)((0,Ve.p)(y.Z)))){constructor(e){super(e),this._idToClientGraphic=null,this.type="memory"}load(e){const t=(0,v.pC)(e)?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get workerGeometryType(){const e=this.layer?.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then((()=>this._applyEdits(e)))}openPorts(){return this.load().then((()=>this._connection.openPorts()))}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);(0,We.p)(e,this.layer.spatialReference,r);const i=ze.default.fromJSON(r);if(!this._requiresClientGraphicMapping())return i;const s=this.layer.objectIdField;for(const e of i.features){const t=e.attributes[s],r=this._idToClientGraphic.get(t);r&&(e.geometry=r.geometry)}return i.geometryType=this.layer.geometryType,i}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new h.Z("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return(0,We.p)(e,this.layer.spatialReference,r),r}queryFeatureCount(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)))}queryObjectIds(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)))}queryExtent(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t))).then((e=>({count:e.count,extent:Le.Z.fromJSON(e.extent)})))}querySnapping(e,t={}){return this.load(t).then((()=>this._connection.invoke("querySnapping",e,t)))}async _applyEdits(e){if(!this._connection)throw new h.Z("feature-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField;let r=null;const i=[],s=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);const o=e=>"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(r=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(const t of e.deleteFeatures){const e=o(t);null!=e&&i.push(e)}const n=e.updateFeatures&&this._idToClientGraphic?new Map:null;if(e.updateFeatures)for(const t of e.updateFeatures)if(s.push(this._serializeFeature(t)),n){const e=o(t);null!=e&&n.set(e,t)}(0,Je.P)(r?r.features:null,s,this.layer.spatialReference);const{fullExtent:a,featureEditResults:l}=await this._connection.invoke("applyEdits",{adds:r?r.features:[],updates:s,deletes:i});return this.fullExtent=a,r&&r.finish(l.uidToObjectId),this._updateClientGraphicIds(n,l),this._createEditsResult(l)}async _prepareClientMapping(e,t){if("mesh"!==this.layerOrSourceGeometryType||(0,v.Wi)(e))return;const r=[];for(const{geometry:i}of e)!(0,v.pC)(i)||"mesh"!==i.type||i.hasExtent||i.loaded||r.push(i.load({signal:t}));r.length&&await Promise.all(r)}_updateClientGraphicIds(e,t){if(this._idToClientGraphic){if(e)for(const r of t.updateResults){if(!r.success)continue;const t=e.get(r.objectId);null!=t&&this._addIdToClientGraphic(t)}for(const e of t.deleteResults)e.success&&this._idToClientGraphic.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new h.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){const t=new Map,r=new Array(e.length);let i=null;for(let s=0;s<e.length;s++){const o=e[s],n=this._serializeFeature(o);!i&&(0,v.pC)(o.geometry)&&(i=o.geometry.type),r[s]=n,t.set(`${n.uid}`,o)}const s=this;return{features:r,inferredGeometryType:i,finish(e){const r=s.sourceJSON.objectIdField;for(const i in e){const o=e[i],n=t.get(i);n&&(n.attributes||(n.attributes={}),-1===o?delete n.attributes[r]:n.attributes[r]=o,s._addIdToClientGraphic(n))}}}}_addIdToClientGraphic(e){if(!this._idToClientGraphic)return;const t=this.sourceJSON.objectIdField,r=e.attributes&&e.attributes[t];null!=r&&this._idToClientGraphic.set(r,e)}get layerOrSourceGeometryType(){return this.layer?.geometryType??this.sourceJSON?.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this.layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){const{attributes:t}=e,r=this._geometryForSerialization(e),i=(Ke++).toString();return r?{uid:i,geometry:r.toJSON(),attributes:t}:{uid:i,attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return(0,v.Wi)(t)?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?He.Z.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,Be.bA)("MemorySourceWorker",{strategy:(0,f.Z)("feature-layers-workers")?"dedicated":"local",signal:e});const{fields:t,spatialReference:r,objectIdField:i,hasM:s,hasZ:o,timeInfo:n}=this.layer,a="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);const l=this._prepareAddFeatures(this.items);this.handles.add(this.on("before-changes",(e=>{Xe.error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()})));const p={features:l.features,fields:t&&t.map((e=>e.toJSON())),geometryType:$e.P$.toJSON(this.workerGeometryType),hasM:"mesh"!==this.layerOrSourceGeometryType&&s,hasZ:"mesh"===this.layerOrSourceGeometryType||o,objectIdField:i,spatialReference:a?null:r&&r.toJSON(),timeInfo:n?n.toJSON():null},u=await this._connection.invoke("load",p,{signal:e});for(const e of u.warnings)Xe.warn(e.message,{layer:this.layer,warning:e});u.featureErrors.length&&Xe.warn(`Encountered ${u.featureErrors.length} validation errors while loading features`,u.featureErrors);const d=u.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(l.inferredGeometryType)&&(d.geometryType=$e.P$.toJSON(l.inferredGeometryType)),this.sourceJSON=d,this._requiresClientGraphicMapping()&&(this._idToClientGraphic=new Map),l.finish(u.assignedObjectIds)}};(0,s._)([(0,Ue.c)({Type:Ne.Z,ensureType:(0,D.se)(Ne.Z)})],Ye.prototype,"itemType",void 0),(0,s._)([(0,F.Cb)()],Ye.prototype,"type",void 0),(0,s._)([(0,F.Cb)({constructOnly:!0})],Ye.prototype,"layer",void 0),(0,s._)([(0,F.Cb)({readOnly:!0})],Ye.prototype,"workerGeometryType",null),(0,s._)([(0,F.Cb)()],Ye.prototype,"sourceJSON",void 0),Ye=(0,s._)([(0,T.j)("esri.layers.graphics.sources.MemorySource")],Ye);var et,tt=r(54295),rt=r(17287),it=r(71612),st=r(17017),ot=r(69637),nt=r(38009),at=r(68825),lt=r(16859),pt=r(34760),ut=r(72965),dt=r(28294),ct=r(66677),yt=r(21506);let ht=et=class extends R.wq{constructor(e){super(e)}clone(){const{name:e,fields:t,isAscending:r,isUnique:i,description:s}=this;return new et({name:e,fields:t,isAscending:r,isUnique:i,description:s})}};(0,s._)([(0,F.Cb)({constructOnly:!0})],ht.prototype,"name",void 0),(0,s._)([(0,F.Cb)({constructOnly:!0})],ht.prototype,"fields",void 0),(0,s._)([(0,F.Cb)({constructOnly:!0})],ht.prototype,"isAscending",void 0),(0,s._)([(0,F.Cb)({constructOnly:!0})],ht.prototype,"isUnique",void 0),(0,s._)([(0,F.Cb)({constructOnly:!0})],ht.prototype,"description",void 0),ht=et=(0,s._)([(0,T.j)("esri.layers.support.FeatureIndex")],ht);var mt=r(55785),ft=r(70082),bt=r(16451),gt=r(53518),wt=r(35671),vt=r(67900);let _t=class extends((0,c.J)(R.wq)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,s._)([(0,F.Cb)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],_t.prototype,"shapeAreaField",void 0),(0,s._)([(0,F.Cb)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],_t.prototype,"shapeLengthField",void 0),(0,s._)([(0,F.Cb)({type:String,json:{read:e=>vt.gV.read(e)||vt.Jo.read(e)}})],_t.prototype,"units",void 0),_t=(0,s._)([(0,T.j)("esri.layers.support.GeometryFieldsInfo")],_t);const Ct=_t;var St=r(2319),It=r(30707),xt=r(56765);const Ft=new b.X({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),Et=new b.X({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let jt=class extends((0,c.J)(R.wq)){constructor(e){super(e),this.cardinality=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,s._)([(0,F.Cb)({json:{read:Ft.read,write:Ft.write}})],jt.prototype,"cardinality",void 0),(0,s._)([(0,F.Cb)({json:{read:!0,write:!0}})],jt.prototype,"composite",void 0),(0,s._)([(0,F.Cb)({json:{read:!0,write:!0}})],jt.prototype,"id",void 0),(0,s._)([(0,F.Cb)({json:{read:!0,write:!0}})],jt.prototype,"keyField",void 0),(0,s._)([(0,F.Cb)({json:{read:!0,write:!0}})],jt.prototype,"keyFieldInRelationshipTable",void 0),(0,s._)([(0,F.Cb)({json:{read:!0,write:!0}})],jt.prototype,"name",void 0),(0,s._)([(0,F.Cb)({json:{read:!0,write:!0}})],jt.prototype,"relatedTableId",void 0),(0,s._)([(0,F.Cb)({json:{read:!0,write:!0}})],jt.prototype,"relationshipTableId",void 0),(0,s._)([(0,F.Cb)({json:{read:Et.read,write:Et.write}})],jt.prototype,"role",void 0),jt=(0,s._)([(0,T.j)("esri.layers.support.Relationship")],jt);const Tt=jt;var Ot=r(30547),Mt=r(60199),Rt=r(10158),Dt=r(40555),qt=r(56545),At=r(57444),Lt=r(75935),Zt=r(28141),Pt=r(32163),Gt=r(65242);const Nt=new b.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"}),Vt={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"},kt="FeatureLayer",Qt=w.Z.getLogger("esri.layers.FeatureLayer");function Bt(e,t){return new h.Z("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function Ut(e){return e&&e instanceof y.Z}function Jt(e,t,r){return!!(e&&e.hasOwnProperty(t)?e[t]:r)}function Wt(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}function zt(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}const Ht=(0,gt.v)();function $t(e,t,r){const i=!!r?.writeLayerSchema;return{enabled:i,ignoreOrigin:i}}let Kt=class extends((0,ot.b)((0,it.h)((0,at.c)((0,dt.n)((0,ut.M)((0,pt.Q)((0,rt.Y)((0,nt.q)((0,lt.I)((0,_.R)((0,st.N)((0,tt.V)((0,c.J)(Ge.Z)))))))))))))){constructor(...e){super(...e),this._handles=new m.Z,this.capabilities=null,this.charts=null,this.copyright=null,this.datesInUnknownTimezone=!1,this.displayField=null,this.definitionExpression=null,this.dynamicDataSource=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.featureReduction=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.formTemplate=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.layerId=void 0,this.legendEnabled=!0,this.minScale=0,this.maxScale=0,this.globalIdField=null,this.objectIdField=null,this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.relationships=null,this.sourceJSON=null,this.returnM=void 0,this.returnZ=void 0,this.screenSizePerspectiveEnabled=!0,this.serviceDefinitionExpression=null,this.spatialReference=Pe.Z.WGS84,this.subtypeCode=null,this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.trackIdField=null,this.type="feature",this.typeIdField=null,this.types=null,this.indexes=new(y.Z.ofType(ht)),this.userIsAdmin=!1,this.version=void 0,this.visible=!0}destroy(){this.source?.destroy(),this._handles=(0,v.SC)(this._handles)}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,v.pC)(e)?e.signal:null;if(this.portalItem&&this.portalItem.loaded&&this.source)return void this.addResolvingPromise(this.createGraphicsSource(t).then((e=>this._initLayerProperties(e))));const r=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection"]},e).catch(S.r9).then((async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new h.Z("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this._initLayerProperties(await this.createGraphicsSource(t))})).then((()=>this.finishLoadEditablePortalLayer(e)));return this.addResolvingPromise(r),Promise.resolve(this)}readCapabilities(e,t){return t=t.layerDefinition||t,{attachment:this._readAttachmentCapabilities(t.attachmentProperties),data:this._readDataCapabilities(t),metadata:this._readMetadataCapabilities(t),operations:this._readOperationsCapabilities(t.capabilities||e,t),query:this._readQueryCapabilities(t),queryRelated:this._readQueryRelatedCapabilities(t),editing:this._readEditingCapabilities(t)}}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")||0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){null!=e?this._override("editingEnabled",e):this._clearOverride("editingEnabled")}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,r){return this._readEditingEnabled(t,!0,r)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,r,i){this._writeEditingEnabled(e,t,!0,i)}readEditingInfo(e,t){const{editingInfo:r}=t;return r?{lastEditDate:null!=r.lastEditDate?new Date(r.lastEditDate):null}:null}readIsTable(e,t){return"Table"===(t=t&&t.layerDefinition||t).type||!t.geometryType}writeIsTable(e,t,r,i){i?.writeLayerSchema&&(0,C.RB)(r,e?"Table":"Feature Layer",t)}readMinScale(e,t){return t.effectiveMinScale||e||0}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readGlobalIdFieldFromService(e,t){if((t=t.layerDefinition||t).globalIdField)return t.globalIdField;if(t.fields)for(const e of t.fields)if("esriFieldTypeGlobalID"===e.type)return e.name}readObjectIdFieldFromService(e,t){if((t=t.layerDefinition||t).objectIdField)return t.objectIdField;if(t.fields)for(const e of t.fields)if("esriFieldTypeOID"===e.type)return e.name}get parsedUrl(){const e=this.url?(0,x.mN)(this.url):null;return null!=e&&(null!=this.dynamicDataSource?e.path=(0,x.v_)(e.path,"dynamicLayer"):null!=this.layerId&&(e.path=(0,x.v_)(e.path,this.layerId.toString()))),e}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,wt.YN)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){const i=(t=t.layerDefinition||t).drawingInfo&&t.drawingInfo.renderer||void 0;if(i){const e=(0,l.a)(i,t,r)||void 0;return e||Qt.error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}if(t.defaultSymbol)return t.types&&t.types.length?new a.Z({defaultSymbol:Xt(t.defaultSymbol,t,r),field:t.typeIdField,uniqueValueInfos:t.types.map((e=>({id:e.id,symbol:Xt(e.symbol,e,r)})))}):new n.Z({symbol:Xt(t.defaultSymbol,t,r)})}set source(e){const t=this._get("source");t!==e&&(Ut(t)&&this._resetMemorySource(t),Ut(e)&&this._initMemorySource(e),this._set("source",e))}castSource(e){return e?Array.isArray(e)||e instanceof y.Z?new Ye({layer:this,items:e}):e:null}readSource(e,t){const r=ze.default.fromJSON(t.featureSet);return new Ye({layer:this,items:r&&r.features||[]})}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}readTemplates(e,t){const r=t.editFieldsInfo,i=r&&r.creatorField,s=r&&r.editorField;return e=e&&e.map((e=>ft.Z.fromJSON(e))),this._fixTemplates(e,i),this._fixTemplates(e,s),e}readTitle(e,t){const r=t.layerDefinition&&t.layerDefinition.name||t.name,i=t.title||t.layerDefinition&&t.layerDefinition.title;if(r){const e=this.portalItem&&this.portalItem.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,ct.a7)(this.url,r):r;let t=r;if(!t&&this.url){const e=(0,ct.Qc)(this.url);(0,v.pC)(e)&&(t=e.title)}if(!t)return;return"item-title-and-service-name"===this.sublayerTitleMode&&e&&e!==t&&(t=e+" - "+t),(0,ct.ld)(t)}if("item-title"===this.sublayerTitleMode&&i)return i}readTitleFromWebMap(e,t){return t.title||t.layerDefinition&&t.layerDefinition.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const e=t.fields.find((e=>e.name.toLowerCase()===r));e&&(r=e.name)}return r}readTypes(e,t){e=(t=t.layerDefinition||t).types;const r=t.editFieldsInfo,i=r&&r.creatorField,s=r&&r.editorField;return e&&e.map((e=>(e=bt.Z.fromJSON(e),this._fixTemplates(e.templates,i),this._fixTemplates(e.templates,s),e)))}set url(e){const t=(0,ct.XG)({layer:this,url:e,nonStandardUrlAllowed:!0,logger:Qt});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,r,i){(0,ct.wH)(this,e,null,t,i)}readVersion(e,t){return t.currentVersion?t.currentVersion:t.hasOwnProperty("capabilities")||t.hasOwnProperty("drawingInfo")||t.hasOwnProperty("hasAttachments")||t.hasOwnProperty("htmlPopupType")||t.hasOwnProperty("relationships")||t.hasOwnProperty("timeInfo")||t.hasOwnProperty("typeIdField")||t.hasOwnProperty("types")?10:9.3}readVisible(e,t){return t.layerDefinition&&null!=t.layerDefinition.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}addAttachment(e,t){return this.load().then((()=>this._checkAttachmentSupport(e))).then((()=>{if(!("addAttachment"in this.source))throw new h.Z(kt,"Layer source does not support addAttachment capability");return this.source.addAttachment(e,t)}))}updateAttachment(e,t,r){return this.load().then((()=>this._checkAttachmentSupport(e))).then((()=>{if(!("updateAttachment"in this.source))throw new h.Z(kt,"Layer source does not support updateAttachment capability");return this.source.updateAttachment(e,t,r)}))}async applyEdits(e,t){const i=await r.e(4720).then(r.bind(r,14720));return await this.load(),i.applyEdits(this,this.source,e,t)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,Pt.eZ)(this,e)}async createGraphicsSource(e){if(this._hasMemorySource())return this.source.load({signal:e});const{default:t}=await(0,S.Hl)(r.e(8899).then(r.bind(r,38899)),e);return new t({layer:this}).load({signal:e})}createQuery(){const e=new At.Z,t=this.get("capabilities.data"),r=this.get("capabilities.query");e.dynamicDataSource=this.dynamicDataSource,e.historicMoment=this.historicMoment,e.gdbVersion=this.gdbVersion,e.returnGeometry=!0,r&&(e.compactGeometryEnabled=r.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=r.supportsDefaultSpatialReference),t&&(t.supportsZ&&null!=this.returnZ&&(e.returnZ=this.returnZ),t.supportsM&&null!=this.returnM&&(e.returnM=this.returnM)),e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:i,timeExtent:s}=this;return e.timeExtent=null!=i&&null!=s?s.offset(-i.value,i.unit):s||null,e.multipatchOption="multipatch"===this.geometryType?"xyFootprint":null,e}deleteAttachments(e,t){return this.load().then((()=>this._checkAttachmentSupport(e))).then((()=>{if(!("deleteAttachments"in this.source))throw new h.Z(kt,"Layer source does not support deleteAttachments capability");return this.source.deleteAttachments(e,t)}))}fetchRecomputedExtents(e){return this.load({signal:e?.signal}).then((()=>{if(this.source.fetchRecomputedExtents)return this.source.fetchRecomputedExtents(e);throw new h.Z(kt,"Layer source does not support fetchUpdates capability")}))}getFeatureType(e){const{typeIdField:t,types:r}=this;if(!t||!e)return null;const i=e.attributes?e.attributes[t]:void 0;if(null==i)return null;let s=null;return r.some((e=>{const{id:t}=e;return null!=t&&(t.toString()===i.toString()&&(s=e),!!s)})),s}getFieldDomain(e,t){const r=t&&t.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this._getLayerDomain(e)}getField(e){return this.fieldsIndex.get(e)}queryAttachments(e,t){return e=qt.Z.from(e),this.load().then((()=>{if(!this.get("capabilities.data.supportsAttachment"))throw new h.Z(kt,"this layer doesn't support attachments");const{attachmentTypes:t,objectIds:r,globalIds:i,num:s,size:o,start:n,where:a}=e;if(!this.get("capabilities.operations.supportsQueryAttachments")){const l=r&&r.length>1,p=t&&t.length,u=i&&i.length,d=o&&o.length;if(l||p||u||d||s||n||a)throw new h.Z(kt,"when 'supportsQueryAttachments' is false, only objectIds of length 1 are supported",e)}if(!(r&&r.length||a))throw new h.Z(kt,"'objectIds' or 'where' are required to perform attachment query",e);if(!("queryAttachments"in this.source))throw new h.Z(kt,"Layer source does not support queryAttachments capability",e);return this.source.queryAttachments(e)}))}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(At.Z.from(e)||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this.load().then((()=>{if(this.source.queryObjectIds)return this.source.queryObjectIds(At.Z.from(e)||this.createQuery(),t);throw new h.Z(kt,"Layer source does not support queryObjectIds capability")}))}queryFeatureCount(e,t){return this.load().then((()=>{if(this.source.queryFeatureCount)return this.source.queryFeatureCount(At.Z.from(e)||this.createQuery(),t);throw new h.Z(kt,"Layer source does not support queryFeatureCount capability")}))}queryExtent(e,t){return this.load().then((()=>{if(this.source.queryExtent)return this.source.queryExtent(At.Z.from(e)||this.createQuery(),t);throw new h.Z(kt,"Layer source does not support queryExtent capability")}))}queryRelatedFeatures(e,t){return this.load().then((()=>{if("queryRelatedFeatures"in this.source)return this.source.queryRelatedFeatures(Lt.Z.from(e),t);throw new h.Z(kt,"Layer source does not support queryRelatedFeatures capability")}))}queryRelatedFeaturesCount(e,t){return this.load().then((()=>{if("queryRelatedFeaturesCount"in this.source)return this.source.queryRelatedFeaturesCount(Lt.Z.from(e),t);throw new h.Z(kt,"Layer source does not support queryRelatedFeaturesCount capability")}))}queryTopFeatures(e,t){return this.load().then((()=>{if("queryTopFeatures"in this.source&&this.get("capabilities.query.supportsTopFeaturesQuery"))return this.source.queryTopFeatures(Zt.Z.from(e),t).then((e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}));throw new h.Z(kt,"Layer source does not support queryTopFeatures capability")}))}queryTopObjectIds(e,t){return this.load().then((()=>{if("queryTopObjectIds"in this.source&&this.get("capabilities.query.supportsTopFeaturesQuery"))return this.source.queryTopObjectIds(Zt.Z.from(e),t);throw new h.Z(kt,"Layer source does not support queryTopObjectIds capability")}))}queryTopFeaturesExtent(e,t){return this.load().then((()=>{if("queryTopExtents"in this.source&&this.get("capabilities.query.supportsTopFeaturesQuery"))return this.source.queryTopExtents(Zt.Z.from(e),t);throw new h.Z(kt,"Layer source does not support queryTopExtents capability")}))}queryTopFeatureCount(e,t){return this.load().then((()=>{if("queryTopCount"in this.source&&this.get("capabilities.query.supportsTopFeaturesQuery"))return this.source.queryTopCount(Zt.Z.from(e),t);throw new h.Z(kt,"Layer source does not support queryFeatureCount capability")}))}read(e,t){const r=e.featureCollection;if(r){const e=r.layers;e&&1===e.length&&(super.read(e[0],t),null!=r.showLegend&&super.read({showLegend:r.showLegend},t))}super.read(e,t),t&&"service"===t.origin&&this.revert(["objectIdField","fields","timeInfo","spatialReference"],"service")}write(e,t){t={...t,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};const{origin:r,layerContainerType:i,messages:s}=t;if(this.dynamicDataSource)return s?.push(Bt(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if("web-scene"===r||"web-map"===r&&"tables"!==i)return s?.push(Bt(this,"using a table source cannot be written to web scenes and web maps")),null;if(this._hasMemorySource())return s?.push(Bt(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&"web-map"===r&&"tables"===i)return s?.push(Bt(this,"using a non-table source cannot be written to tables in web maps")),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new h.Z(kt,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source.type||(0,Mt.D)(this,e))}async save(e){return(await Promise.all([r.e(4547),r.e(2664)]).then(r.bind(r,32664))).save(this,e)}async saveAs(e,t){return(await Promise.all([r.e(4547),r.e(2664)]).then(r.bind(r,32664))).saveAs(this,e,t)}_readEditingEnabled(e,t,r){let i=e.layerDefinition?.capabilities;return i?this._hasEditingCapability(i):(i=e.capabilities,t&&"web-map"===r?.origin&&!this._hasMemorySource()&&i?this._hasEditingCapability(i):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map((e=>e.trim())).includes("editing")}_writeEditingEnabled(e,t,r,i){if(!e){const e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,C.RB)("layerDefinition.capabilities",e,t),r&&!i?.writeLayerSchema&&(t.capabilities=e)}}_checkAttachmentSupport(e){const{attributes:t}=e,{objectIdField:r}=this;return this.get("capabilities.data.supportsAttachment")?e?t?t[r]?void 0:Promise.reject(new h.Z(kt,`feature is missing the identifying attribute ${r}`)):Promise.reject(new h.Z(kt,"'attributes' are required on a feature to query attachments")):Promise.reject(new h.Z(kt,"A feature is required to add/delete/update attachments")):Promise.reject(new h.Z(kt,"this layer doesn't support attachments"))}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_fetchFirstLayerId(e){return(0,u.default)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then((e=>{const t=e.data;if(t)return Array.isArray(t.layers)&&t.layers.length>0?t.layers[0].id:Array.isArray(t.tables)&&t.tables.length>0?t.tables[0].id:void 0}))}async _initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",url:this.parsedUrl})),this._verifySource(),this._verifyFields(),(0,wt.YN)(this.renderer,this.fieldsIndex),(0,wt.UF)(this.timeInfo,this.fieldsIndex),(0,Dt.y)(this,{origin:"service"})}async hasDataChanged(){if(this.source?.refresh)try{const{dataChanged:e,updates:t}=await(this.source?.refresh());if((0,v.pC)(t)&&(this.sourceJSON={...this.sourceJSON,...t},this.read(t,{origin:"service",url:this.parsedUrl})),e)return!0}catch{}if(this.definitionExpression)try{return(await(0,I.E)(this.definitionExpression,this.fieldsIndex)).hasDateFunctions}catch{}return!1}_verifyFields(){const e=this.parsedUrl&&this.parsedUrl.path||"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some((e=>"geometry"===e.type))||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach((e=>{const r=e.prototype&&e.prototype.attributes;r&&t&&delete r[t]}))}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new h.Z("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new h.Z("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach((e=>{e.layer=this,e.sourceLayer=this})),this._handles.add([e.on("after-add",(e=>{e.item.layer=this,e.item.sourceLayer=this})),e.on("after-remove",(e=>{e.item.layer=null,e.item.sourceLayer=null}))],"fl-source")}_resetMemorySource(e){e.forEach((e=>{e.layer=null,e.sourceLayer=null})),this._handles.remove("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}_readAttachmentCapabilities(e){const t={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1};return e&&Array.isArray(e)&&e.forEach((e=>{const r=Vt[e.name];r&&(t[r]=!!e.isEnabled)})),t}_readDataCapabilities(e){return{isVersioned:Jt(e,"isDataVersioned",!1),supportsAttachment:Jt(e,"hasAttachments",!1),supportsM:Jt(e,"hasM",!1),supportsZ:Jt(e,"hasZ",!1)}}_readMetadataCapabilities(e){return{supportsAdvancedFieldProperties:Jt(e,"supportsFieldDescriptionProperty",!1)}}_readOperationsCapabilities(e,t){const r=e?e.toLowerCase().split(",").map((e=>e.trim())):[],i=this.url?(0,ct.Qc)(this.url):null,s=r.includes((0,v.pC)(i)&&"MapServer"===i.serverType?"data":"query"),o=r.includes("editing")&&!t.datesInUnknownTimezone;let n=o&&r.includes("create"),a=o&&r.includes("delete"),l=o&&r.includes("update");const p=r.includes("changetracking");return o&&!(n||a||l)&&(n=a=l=!0),{supportsCalculate:Jt(t,"supportsCalculate",!1),supportsTruncate:Jt(t,"supportsTruncate",!1),supportsValidateSql:Jt(t,"supportsValidateSql",!1),supportsAdd:n,supportsDelete:a,supportsEditing:o,supportsChangeTracking:p,supportsQuery:s,supportsQueryAttachments:Jt(t.advancedQueryCapabilities,"supportsQueryAttachments",!1),supportsResizeAttachments:Jt(t,"supportsAttachmentsResizing",!1),supportsSync:r.includes("sync"),supportsUpdate:l,supportsExceedsLimitStatistics:Jt(t,"supportsExceedsLimitStatistics",!1)}}_readQueryCapabilities(e){const t=e.advancedQueryCapabilities,r=e.ownershipBasedAccessControlForFeatures,i=e.archivingInfo,s=this.url?.includes("MapServer"),o=!(0,f.Z)("mapserver-pbf-enabled")&&s&&this.version<10.81,n=(0,ct.M8)(this.url),a=(e.supportedQueryFormats||"").split(",").reduce(((e,t)=>{const r=t.toLowerCase().trim();return r&&e.add(r),e}),new Set);return{supportsStatistics:Jt(t,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:Jt(t,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:Jt(t,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:zt(t),supportsCentroid:Jt(t,"supportsReturningGeometryCentroid",!1),supportsDistance:Jt(t,"supportsQueryWithDistance",!1),supportsDistinct:Jt(t,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:Jt(t,"supportsReturningQueryExtent",!1),supportsGeometryProperties:Jt(t,"supportsReturningGeometryProperties",!1),supportsHavingClause:Jt(t,"supportsHavingClause",!1),supportsOrderBy:Jt(t,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:Jt(t,"supportsPagination",!1),supportsQuantization:Jt(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:Jt(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:Jt(e,"supportsReturningQueryGeometry",!1),supportsResultType:Jt(t,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:Jt(t,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:Jt(t,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:Jt(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:Jt(t,"supportsTopFeaturesQuery",!1),supportsQueryByOthers:Jt(r,"allowOthersToQuery",!0),supportsHistoricMoment:Jt(i,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:!o&&a.has("pbf"),supportsDisjointSpatialRelationship:Jt(t,"supportsDisjointSpatialRel",!1),supportsCacheHint:Jt(t,"supportsQueryWithCacheHint",!1),supportsDefaultSpatialReference:Jt(t,"supportsDefaultSR",!1),supportsCompactGeometry:n,maxRecordCountFactor:Wt(e,"maxRecordCountFactor",void 0),maxRecordCount:Wt(e,"maxRecordCount",void 0),standardMaxRecordCount:Wt(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:Wt(e,"tileMaxRecordCount",void 0)}}_readQueryRelatedCapabilities(e){const t=e.advancedQueryCapabilities,r=Jt(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:Jt(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r}}_readEditingCapabilities(e){const t=e.ownershipBasedAccessControlForFeatures;return{supportsGeometryUpdate:Jt(e,"allowGeometryUpdates",!0),supportsGlobalId:Jt(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:Jt(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:Jt(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:Jt(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:Jt(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:Jt(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:Jt(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:Jt(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:Jt(t,"allowOthersToUpdate",!0)}}};(0,s._)([(0,F.Cb)({readOnly:!0,json:{read:!1}})],Kt.prototype,"capabilities",void 0),(0,s._)([(0,j.r)("service","capabilities",["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"])],Kt.prototype,"readCapabilities",null),(0,s._)([(0,F.Cb)({json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Kt.prototype,"charts",void 0),(0,s._)([(0,F.Cb)({readOnly:!0})],Kt.prototype,"createQueryVersion",null),(0,s._)([(0,F.Cb)({type:String,json:{read:{source:"layerDefinition.copyrightText"},origins:{service:{read:{source:"copyrightText"}}}}})],Kt.prototype,"copyright",void 0),(0,s._)([(0,F.Cb)({type:Boolean})],Kt.prototype,"datesInUnknownTimezone",void 0),(0,s._)([(0,F.Cb)({type:String,json:{read:{source:"layerDefinition.displayField"},origins:{service:{read:{source:"displayField"}}}}})],Kt.prototype,"displayField",void 0),(0,s._)([(0,F.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Kt.prototype,"definitionExpression",void 0),(0,s._)([(0,F.Cb)({types:d.LB,readOnly:!0})],Kt.prototype,"defaultSymbol",void 0),(0,s._)([(0,F.Cb)({type:Rt.n})],Kt.prototype,"dynamicDataSource",void 0),(0,s._)([(0,F.Cb)({readOnly:!0})],Kt.prototype,"editFieldsInfo",void 0),(0,s._)([(0,F.Cb)({type:Boolean})],Kt.prototype,"editingEnabled",null),(0,s._)([(0,j.r)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],Kt.prototype,"readEditingEnabled",null),(0,s._)([(0,j.r)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],Kt.prototype,"readEditingEnabledFromWebMap",null),(0,s._)([(0,O.c)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],Kt.prototype,"writeEditingEnabled",null),(0,s._)([(0,O.c)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],Kt.prototype,"writeEditingEnabledToWebMap",null),(0,s._)([(0,F.Cb)({readOnly:!0})],Kt.prototype,"editingInfo",void 0),(0,s._)([(0,j.r)("editingInfo")],Kt.prototype,"readEditingInfo",null),(0,s._)([(0,F.Cb)((()=>{const e=(0,g.d9)(yt.PV),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],Kt.prototype,"elevationInfo",void 0),(0,s._)([(0,F.Cb)(mt.d)],Kt.prototype,"featureReduction",void 0),(0,s._)([(0,F.Cb)({...Ht.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:$t}}}}})],Kt.prototype,"fields",void 0),(0,s._)([(0,F.Cb)(Ht.fieldsIndex)],Kt.prototype,"fieldsIndex",void 0),(0,s._)([(0,F.Cb)({type:xt.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Kt.prototype,"floorInfo",void 0),(0,s._)([(0,F.Cb)({type:Ae,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],Kt.prototype,"formTemplate",void 0),(0,s._)([(0,F.Cb)({type:Le.Z,json:{origins:{service:{read:{source:"extent"}}},read:{source:"layerDefinition.extent"}}})],Kt.prototype,"fullExtent",void 0),(0,s._)([(0,F.Cb)()],Kt.prototype,"gdbVersion",void 0),(0,s._)([(0,F.Cb)({readOnly:!0,type:Ct,json:{read:{source:"geometryProperties"}}})],Kt.prototype,"geometryFieldsInfo",void 0),(0,s._)([(0,F.Cb)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:Nt.read},"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:$t,writer(e,t,r){const i=e?Nt.toJSON(e):null;i&&(0,C.RB)(r,i,t)}}}},read:{source:"layerDefinition.geometryType",reader:Nt.read}}})],Kt.prototype,"geometryType",void 0),(0,s._)([(0,F.Cb)({type:Boolean,json:{origins:{service:{read:!0}},read:{source:"layerDefinition.hasM"}}})],Kt.prototype,"hasM",void 0),(0,s._)([(0,F.Cb)({type:Boolean,json:{origins:{service:{read:!0}},read:{source:"layerDefinition.hasZ"}}})],Kt.prototype,"hasZ",void 0),(0,s._)([(0,F.Cb)({readOnly:!0,type:Ze.Z})],Kt.prototype,"heightModelInfo",void 0),(0,s._)([(0,F.Cb)({type:Date})],Kt.prototype,"historicMoment",void 0),(0,s._)([(0,F.Cb)(yt.id)],Kt.prototype,"id",void 0),(0,s._)([(0,F.Cb)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Kt.prototype,"infoFor3D",void 0),(0,s._)([(0,F.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],Kt.prototype,"isTable",void 0),(0,s._)([(0,j.r)("service","isTable",["type","geometryType"]),(0,j.r)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],Kt.prototype,"readIsTable",null),(0,s._)([(0,O.c)("web-map","isTable")],Kt.prototype,"writeIsTable",null),(0,s._)([(0,F.Cb)(yt.iR)],Kt.prototype,"labelsVisible",void 0),(0,s._)([(0,F.Cb)({type:[St.Z],json:{origins:{service:{read:{source:"drawingInfo.labelingInfo",reader:It.r},write:{target:"drawingInfo.labelingInfo",enabled:!1}}},read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:It.r},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],Kt.prototype,"labelingInfo",void 0),(0,s._)([(0,F.Cb)((()=>{const e=(0,g.d9)(yt.bT);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,r){(0,C.RB)(r,(0,Gt.a)(e),t)}}},e})())],Kt.prototype,"opacity",void 0),(0,s._)([(0,F.Cb)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],Kt.prototype,"layerId",void 0),(0,s._)([(0,F.Cb)(yt.rn)],Kt.prototype,"legendEnabled",void 0),(0,s._)([(0,F.Cb)({type:["show","hide"],json:(()=>{const e=(0,g.d9)(yt.rT.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],Kt.prototype,"listMode",void 0),(0,s._)([(0,F.Cb)(yt.rO)],Kt.prototype,"minScale",void 0),(0,s._)([(0,j.r)("service","minScale",["minScale","effectiveMinScale"])],Kt.prototype,"readMinScale",null),(0,s._)([(0,F.Cb)(yt.u1)],Kt.prototype,"maxScale",void 0),(0,s._)([(0,j.r)("service","maxScale",["maxScale","effectiveMaxScale"])],Kt.prototype,"readMaxScale",null),(0,s._)([(0,F.Cb)({type:String})],Kt.prototype,"globalIdField",void 0),(0,s._)([(0,j.r)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"]),(0,j.r)("service","globalIdField",["globalIdField","fields"])],Kt.prototype,"readGlobalIdFieldFromService",null),(0,s._)([(0,F.Cb)({type:String,json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:$t}}}}})],Kt.prototype,"objectIdField",void 0),(0,s._)([(0,j.r)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"]),(0,j.r)("service","objectIdField",["objectIdField","fields"])],Kt.prototype,"readObjectIdFieldFromService",null),(0,s._)([(0,F.Cb)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],Kt.prototype,"operationalLayerType",void 0),(0,s._)([(0,F.Cb)(Ht.outFields)],Kt.prototype,"outFields",void 0),(0,s._)([(0,F.Cb)({readOnly:!0})],Kt.prototype,"parsedUrl",null),(0,s._)([(0,F.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Kt.prototype,"path",void 0),(0,s._)([(0,F.Cb)(yt.C_)],Kt.prototype,"popupEnabled",void 0),(0,s._)([(0,F.Cb)({type:o.Z,json:{name:"popupInfo",write:!0}})],Kt.prototype,"popupTemplate",void 0),(0,s._)([(0,F.Cb)({readOnly:!0})],Kt.prototype,"defaultPopupTemplate",null),(0,s._)([(0,F.Cb)({type:[Tt],readOnly:!0})],Kt.prototype,"relationships",void 0),(0,s._)([(0,F.Cb)({types:p.A,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:p.o,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}})],Kt.prototype,"renderer",null),(0,s._)([(0,j.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,j.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Kt.prototype,"readRenderer",null),(0,s._)([(0,F.Cb)()],Kt.prototype,"sourceJSON",void 0),(0,s._)([(0,F.Cb)({type:Boolean})],Kt.prototype,"returnM",void 0),(0,s._)([(0,F.Cb)({type:Boolean})],Kt.prototype,"returnZ",void 0),(0,s._)([(0,F.Cb)((()=>{const e=(0,g.d9)(yt.YI);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],Kt.prototype,"screenSizePerspectiveEnabled",void 0),(0,s._)([(0,F.Cb)({clonable:!1})],Kt.prototype,"source",null),(0,s._)([(0,E.p)("source")],Kt.prototype,"castSource",null),(0,s._)([(0,j.r)("portal-item","source",["featureSet"]),(0,j.r)("web-map","source",["featureSet"])],Kt.prototype,"readSource",null),(0,s._)([(0,F.Cb)({readOnly:!0})],Kt.prototype,"serviceDefinitionExpression",void 0),(0,s._)([(0,j.r)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],Kt.prototype,"readServiceDefinitionExpression",null),(0,s._)([(0,F.Cb)({type:Pe.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},read:{source:"layerDefinition.extent.spatialReference"}}})],Kt.prototype,"spatialReference",void 0),(0,s._)([(0,F.Cb)({type:Number})],Kt.prototype,"subtypeCode",void 0),(0,s._)([(0,F.Cb)({type:[ft.Z]})],Kt.prototype,"templates",void 0),(0,s._)([(0,j.r)("templates",["editFieldsInfo","creatorField","editorField","templates"])],Kt.prototype,"readTemplates",null),(0,s._)([(0,F.Cb)({type:Ot.Z})],Kt.prototype,"timeInfo",void 0),(0,s._)([(0,F.Cb)()],Kt.prototype,"title",void 0),(0,s._)([(0,j.r)("service","title",["name"]),(0,j.r)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],Kt.prototype,"readTitle",null),(0,s._)([(0,j.r)("web-map","title",["layerDefinition.name","title"])],Kt.prototype,"readTitleFromWebMap",null),(0,s._)([(0,F.Cb)({type:String})],Kt.prototype,"sublayerTitleMode",void 0),(0,s._)([(0,F.Cb)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],Kt.prototype,"trackIdField",void 0),(0,s._)([(0,F.Cb)({json:{read:!1}})],Kt.prototype,"type",void 0),(0,s._)([(0,F.Cb)({type:String})],Kt.prototype,"typeIdField",void 0),(0,s._)([(0,j.r)("service","typeIdField"),(0,j.r)("typeIdField",["layerDefinition.typeIdField"])],Kt.prototype,"readTypeIdField",null),(0,s._)([(0,F.Cb)({type:[bt.Z]})],Kt.prototype,"types",void 0),(0,s._)([(0,j.r)("service","types",["types"]),(0,j.r)("types",["layerDefinition.types"])],Kt.prototype,"readTypes",null),(0,s._)([(0,F.Cb)({readOnly:!0,json:{write:!1}})],Kt.prototype,"serverGens",void 0),(0,s._)([(0,F.Cb)({type:y.Z.ofType(ht),readOnly:!0})],Kt.prototype,"indexes",void 0),(0,s._)([(0,F.Cb)(yt.HQ)],Kt.prototype,"url",null),(0,s._)([(0,O.c)("url")],Kt.prototype,"writeUrl",null),(0,s._)([(0,F.Cb)({readOnly:!0})],Kt.prototype,"userIsAdmin",void 0),(0,s._)([(0,F.Cb)({json:{origins:{service:{read:!0}},read:!1}})],Kt.prototype,"version",void 0),(0,s._)([(0,j.r)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],Kt.prototype,"readVersion",null),(0,s._)([(0,F.Cb)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],Kt.prototype,"visible",void 0),(0,s._)([(0,j.r)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],Kt.prototype,"readVisible",null),Kt=(0,s._)([(0,T.j)("esri.layers.FeatureLayer")],Kt);const Xt=(0,M.d)({types:d.QT}),Yt=Kt},68825:(e,t,r)=>{r.d(t,{c:()=>m});var i,s=r(43697),o=r(78286),n=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(35454),p=r(96674);const u=new l.X({asc:"ascending",desc:"descending"});let d=i=class extends p.wq{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,s._)([(0,n.Cb)({type:u.apiValues,json:{read:u.read,write:u.write}})],d.prototype,"order",void 0),d=i=(0,s._)([(0,a.j)("esri.layers.support.OrderByInfo")],d);const c=d;function y(e,t,r){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const s=new c;return s.read(i,r),[s]}function h(e,t,r,i){const s=e.find((e=>!!e.field));s&&(0,o.RB)(r,[s.toJSON()],t)}const m=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,s._)([(0,n.Cb)({type:[c],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:y},write:{target:"layerDefinition.orderBy",writer:h}}})],t.prototype,"orderBy",void 0),t=(0,s._)([(0,a.j)("esri.layers.mixins.OrderedLayer")],t),t}},40555:(e,t,r)=>{r.d(t,{y:()=>n});var i=r(66643),s=r(95330),o=r(20941);async function n(e,t,r){const n=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(n&&"unique-value"===n.type&&n.styleOrigin){const a=await(0,i.q6)(n.populateFromStyle());if((0,s.k_)(r),!1===a.ok){const r=a.error;t&&t.messages&&t.messages.push(new o.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t.origin)}}}},59431:(e,t,r)=>{r.d(t,{P:()=>a});var i=r(70586),s=r(67900),o=r(8744);function n(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 a(e,t,r){if(!e&&!t||!r)return;const i=(0,s._R)(r);l(e,r,i),l(t,r,i)}function l(e,t,r){if(e)for(const i of e)p(i.geometry,t,r)}function p(e,t,r){if((0,i.Wi)(e)||!e.spatialReference||(0,o.fS)(e.spatialReference,t))return;const a=(0,s._R)(e.spatialReference)/r;if(1!==a)if("x"in e)null!=e.z&&(e.z*=a);else if("rings"in e)n(e,e.rings,a);else if("paths"in e)n(e,e.paths,a);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=a)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6748,3172],{66748:(e,t,n)=>{n.r(t),n.d(t,{registerFunctions:()=>k});var r=n(40330),o=n(77286),s=n(61363),i=n(71201),a=n(95330),l=n(6570),u=n(9361),c=n(8667),f=n(65091),h=n(13473),d=n(38913),m=n(58901),g=n(33955),p=n(67900);function w(e){return 0===r.i8.indexOf("4.")?d.Z.fromExtent(e):new d.Z({spatialReference:e.spatialReference,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}function y(e){if((0,s.p)(e,2,2),e[0]instanceof u.Z&&e[1]instanceof u.Z);else if(e[0]instanceof u.Z&&null===e[1]);else if(e[1]instanceof u.Z&&null===e[0]);else if(null!==e[0]||null!==e[1])throw new Error("Illegal Argument")}function b(e,t){if("polygon"!==e.type&&"polyline"!==e.type&&"extent"!==e.type)return(0,a.DB)(0);let n=1;(e.spatialReference.vcsWkid||e.spatialReference.latestVcsWkid)&&(n=(0,i._R)(e.spatialReference)/(0,p.c9)(e.spatialReference));let r=0;if("polyline"===e.type)for(const t of e.paths)for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);else if("polygon"===e.type)for(const t of e.rings){for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,i.AW)(t[0],t[t.length-1],n))}else"extent"===e.type&&(r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmax,e.ymin,0],n),r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmin,e.ymax,0],n),r*=2,r+=4*Math.abs((0,s.C)(e.zmax,0)*n-(0,s.C)(e.zmin,0)*n));const o=new m.Z({hasZ:!1,hasM:!1,spatialReference:e.spatialReference,paths:[[0,0],[0,r]]});return(0,c.sz)(o,t)}function k(e){"async"===e.mode&&(e.functions.disjoint=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.H)(n)),null===n[0]||null===n[1]||(0,c.ED)(n[0],n[1])}))},e.functions.intersects=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.kK)(n[0],n[1])}))},e.functions.touches=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.W4)(n[0],n[1])}))},e.functions.crosses=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.jU)(n[0],n[1])}))},e.functions.within=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.uh)(n[0],n[1])}))},e.functions.contains=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.r3)(n[0],n[1])}))},e.functions.overlaps=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.Nm)(n[0],n[1])}))},e.functions.equals=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return(0,s.p)(n,2,2),n[0]===n[1]||(n[0]instanceof u.Z&&n[1]instanceof u.Z?(0,c.fS)(n[0],n[1]):!(!(0,s.o)(n[0])||!(0,s.o)(n[1]))&&n[0].getTime()===n[1].getTime())}))},e.functions.relate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,3,3),n[0]instanceof u.Z&&n[1]instanceof u.Z)return(0,c.LV)(n[0],n[1],(0,s.d)(n[2]));if(n[0]instanceof u.Z&&null===n[1])return!1;if(n[1]instanceof u.Z&&null===n[0])return!1;if(null===n[0]&&null===n[1])return!1;throw new Error("Illegal Argument")}))},e.functions.intersection=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.H)(n)),null===n[0]||null===n[1]?null:(0,c.wf)(n[0],n[1])}))},e.functions.union=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){const i=[];if(0===(r=(0,s.H)(r)).length)throw new Error("Function called with wrong number of Parameters");if(1===r.length)if((0,s.a)(r[0])){const e=(0,s.H)(r[0]);for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof u.Z))throw new Error("Illegal Argument");i.push(e[t])}}else{if(!(0,s.b)(r[0])){if(r[0]instanceof u.Z)return(0,s.s)((0,o.r1)(r[0]),t.spatialReference);if(null===r[0])return null;throw new Error("Illegal Argument")}{const e=(0,s.H)(r[0].toArray());for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof u.Z))throw new Error("Illegal Argument");i.push(e[t])}}}else for(let e=0;e<r.length;e++)if(null!==r[e]){if(!(r[e]instanceof u.Z))throw new Error("Illegal Argument");i.push(r[e])}return 0===i.length?null:(0,c.G0)(i)}))},e.functions.difference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.H)(n)),null!==n[0]&&null===n[1]?(0,o.r1)(n[0]):null===n[0]?null:(0,c.e5)(n[0],n[1])}))},e.functions.symmetricdifference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.H)(n)),null===n[0]&&null===n[1]?null:null===n[0]?(0,o.r1)(n[1]):null===n[1]?(0,o.r1)(n[0]):(0,c.Sp)(n[0],n[1])}))},e.functions.clip=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,2),!(n[1]instanceof l.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return null;if(!(n[0]instanceof u.Z))throw new Error("Illegal Argument");return null===n[1]?null:(0,c.oq)(n[0],n[1])}))},e.functions.cut=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,2),!(n[1]instanceof m.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return[];if(!(n[0]instanceof u.Z))throw new Error("Illegal Argument");return null===n[1]?[(0,o.r1)(n[0])]:(0,c.z7)(n[0],n[1])}))},e.functions.area=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.q)(r[0]))return r[0].sumArea((0,o.EI)((0,s.C)(r[1],-1)),!1,t.abortSignal).then((e=>{if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}));if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.K)(r[0],t.spatialReference);return null===e?0:(0,c.CJ)(e,(0,o.EI)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof u.Z))throw new Error("Illegal Argument");return(0,c.CJ)(r[0],(0,o.EI)((0,s.C)(r[1],-1)))}))},e.functions.areageodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.q)(r[0]))return r[0].sumArea((0,o.EI)((0,s.C)(r[1],-1)),!0,t.abortSignal).then((e=>{if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}));if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.K)(r[0],t.spatialReference);return null===e?0:(0,c.Y4)(e,(0,o.EI)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof u.Z))throw new Error("Illegal Argument");return(0,c.Y4)(r[0],(0,o.EI)((0,s.C)(r[1],-1)))}))},e.functions.length=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.q)(r[0]))return r[0].sumLength((0,o.Lz)((0,s.C)(r[1],-1)),!1,t.abortSignal).then((e=>{if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}));if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:(0,c.sz)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof u.Z))throw new Error("Illegal Argument");return(0,c.sz)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.length3d=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:!0===e.hasZ?b(e,(0,o.Lz)((0,s.C)(r[1],-1))):(0,c.sz)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof u.Z))throw new Error("Illegal Argument");return!0===r[0].hasZ?b(r[0],(0,o.Lz)((0,s.C)(r[1],-1))):(0,c.sz)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.lengthgeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.q)(r[0]))return r[0].sumLength((0,o.Lz)((0,s.C)(r[1],-1)),!0,t.abortSignal).then((e=>{if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}));if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:(0,c.kQ)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof u.Z))throw new Error("Illegal Argument");return(0,c.kQ)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.distance=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){r=(0,s.H)(r),(0,s.p)(r,2,3);let i=r[0];((0,s.a)(r[0])||(0,s.b)(r[0]))&&(i=(0,s.L)(r[0],t.spatialReference));let a=r[1];if(((0,s.a)(r[1])||(0,s.b)(r[1]))&&(a=(0,s.L)(r[1],t.spatialReference)),!(i instanceof u.Z))throw new Error("Illegal Argument");if(!(a instanceof u.Z))throw new Error("Illegal Argument");return(0,c.TE)(i,a,(0,o.Lz)((0,s.C)(r[2],-1)))}))},e.functions.distancegeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.H)(n),(0,s.p)(n,2,3);const r=n[0],i=n[1];if(!(r instanceof h.Z))throw new Error("Illegal Argument");if(!(i instanceof h.Z))throw new Error("Illegal Argument");const a=new m.Z({paths:[],spatialReference:r.spatialReference});return a.addPath([r,i]),(0,c.kQ)(a,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.densify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof u.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof d.Z||n[0]instanceof m.Z?(0,c.Cz)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]instanceof l.Z?(0,c.Cz)(w(n[0]),r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]}))},e.functions.densifygeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof u.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof d.Z||n[0]instanceof m.Z?(0,c.j2)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]instanceof l.Z?(0,c.j2)(w(n[0]),r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]}))},e.functions.generalize=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,4),null===n[0])return null;if(!(n[0]instanceof u.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return(0,c.D$)(n[0],r,(0,s.z)((0,s.C)(n[2],!0)),(0,o.Lz)((0,s.C)(n[3],-1)))}))},e.functions.buffer=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof u.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,c.f3)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.buffergeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof u.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,c.rd)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.offset=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,6),null===n[0])return null;if(!(n[0]instanceof d.Z||n[0]instanceof m.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");const i=(0,s.t)((0,s.C)(n[4],10));if(isNaN(i))throw new Error("Illegal Argument");const a=(0,s.t)((0,s.C)(n[5],0));if(isNaN(a))throw new Error("Illegal Argument");return(0,c.cv)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)),(0,s.d)((0,s.C)(n[3],"round")).toLowerCase(),i,a)}))},e.functions.rotate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.H)(n),(0,s.p)(n,2,3);let r=n[0];if(null===r)return null;if(!(r instanceof u.Z))throw new Error("Illegal Argument");r instanceof l.Z&&(r=d.Z.fromExtent(r));const o=(0,s.t)(n[1]);if(isNaN(o))throw new Error("Illegal Argument");const i=(0,s.C)(n[2],null);if(null===i)return(0,c.U1)(r,o);if(i instanceof h.Z)return(0,c.U1)(r,o,i);throw new Error("Illegal Argument")}))},e.functions.centroid=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if(r=(0,s.H)(r),(0,s.p)(r,1,1),null===r[0])return null;let a=r[0];if(((0,s.a)(r[0])||(0,s.b)(r[0]))&&(a=(0,s.L)(r[0],t.spatialReference)),null===a)return null;if(!(a instanceof u.Z))throw new Error("Illegal Argument");return a instanceof h.Z?(0,s.s)((0,o.r1)(r[0]),t.spatialReference):a instanceof d.Z?a.centroid:a instanceof m.Z?(0,i.s9)(a):a instanceof f.Z?(0,i.Ay)(a):a instanceof l.Z?a.center:null}))},e.functions.multiparttosinglepart=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){r=(0,s.H)(r),(0,s.p)(r,1,1);const i=[];if(null===r[0])return null;if(!(r[0]instanceof u.Z))throw new Error("Illegal Argument");return r[0]instanceof h.Z||r[0]instanceof l.Z?[(0,s.s)((0,o.r1)(r[0]),t.spatialReference)]:(0,c.og)(r[0]).then((e=>{if(e instanceof d.Z){const t=[],n=[];for(let r=0;r<e.rings.length;r++)if(e.isClockwise(e.rings[r])){const n=(0,g.im)({rings:[e.rings[r]],hasZ:!0===e.hasZ,hazM:!0===e.hasM,spatialReference:e.spatialReference.toJSON()});t.push(n)}else n.push({ring:e.rings[r],pt:e.getPoint(r,0)});for(let e=0;e<n.length;e++)for(let r=0;r<t.length;r++)if(t[r].contains(n[e].pt)){t[r].addRing(n[e].ring);break}return t}if(e instanceof m.Z){const t=[];for(let n=0;n<e.paths.length;n++){const r=(0,g.im)({paths:[e.paths[n]],hasZ:!0===e.hasZ,hazM:!0===e.hasM,spatialReference:e.spatialReference.toJSON()});t.push(r)}return t}if(r[0]instanceof f.Z){const e=(0,s.s)((0,o.r1)(r[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)i.push(e.getPoint(t));return i}return null}))}))},e.functions.issimple=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,1,1),null===n[0])return!0;if(!(n[0]instanceof u.Z))throw new Error("Illegal Argument");return(0,c.Gg)(n[0])}))},e.functions.simplify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,1,1),null===n[0])return null;if(!(n[0]instanceof u.Z))throw new Error("Illegal Argument");return(0,c.og)(n[0])}))})}},99880:(e,t,n)=>{n.d(t,{V:()=>l});var r=n(68773),o=(n(3172),n(20102)),s=n(92604),i=n(17452);const a=s.Z.getLogger("esri.assets");function l(e){if(!r.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(r.Z.assetsPath,e)}},64830:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(70586);class o{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._items=new Set}get length(){return this._items.size}clear(){this._items.clear()}last(){if(0===this._items.size)return;let e;for(e of this._items);return e}peek(){if(0!==this._items.size)return this._peeker(this._items)}push(e){this.contains(e)||this._items.add(e)}contains(e){return this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete((0,r.j0)(e)),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete((0,r.j0)(e)),e}remove(e){this._items.delete(e)}filter(e){return this._items.forEach((t=>{e(t)||this._items.delete(t)})),this}}},80903:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(50758),o=n(92604),s=n(95330),i=n(64830),a=n(25045);const l=o.Z.getLogger("esri.core.workers.Connection");class u{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new i.Z}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((n,r)=>{let o=!0;const i=e=>{(0,s.k_)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let o=0;o<e.length;++o){const l=e[o];(0,s.y8)(l)?this._clientPromises[o]=l.then((e=>(this._clients[o]=new a.default(e,t,(()=>this._ongoingJobsQueue.pop())),i(n),this._clients[o])),(()=>(i(r),null))):(this._clients[o]=new a.default(l,t,(()=>this._ongoingJobsQueue.pop())),this._clientPromises[o]=Promise.resolve(this._clients[o]),i(n))}}))}broadcast(e,t,n){const r=new Array(this._clientPromises.length);for(let o=0;o<this._clientPromises.length;++o){const s=this._clientPromises[o];r[o]=s.then((r=>r.invoke(e,t,n)))}return r}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.deferred.reject((0,s.zE)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e.close()));this._clients.length=0,this._clientPromises.length=0}invoke(e,t,n){let r=null;Array.isArray(n)?(l.warn("invoke()","The transferList parameter is deprecated, use the options object instead"),r={transferList:n}):r=n;const o=(0,s.dD)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,deferred:o});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e.jobAdded()))}return o.promise}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,r.AL)(this._clients.map((n=>n.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let n=t.length;for(let r=0;r<this._clientPromises.length;++r)this._clientPromises[r].then((o=>{t[r]=o.openPort(),0==--n&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},78346:(e,t,n)=>{n.d(t,{bA:()=>F});var r=n(20102),o=n(80442),s=n(95330),i=n(80903),a=n(25045),l=n(40330),u=n(92604),c=n(70586),f=n(94362),h=n(99880),d=n(68773),m=(n(2587),n(17452));const g={};function p(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=g.baseUrl),g.packages?.forEach((e=>{!function(e,t){for(const n of e)if(n.name===t.name)return;e.push(t)}(t.packages,e)})),t}var w=n(41213);class y{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...n)=>e[t](...n)}))}}class b{constructor(){this._dispatcher=new y,this._workerPostMessage({type:f.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,w.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,n){this._dispatcher.addEventListener(e,t,n)}removeEventListener(e,t,n){this._dispatcher.removeEventListener(e,t,n)}_workerPostMessage(e){(0,w.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,f.QM)(e);if(t&&t.type===f.Cs.OPEN){const{modulePath:e,jobId:n}=t;let r=await a.default.loadWorker(e);r||(r=await import(e));const o=a.default.connect(r);this._workerPostMessage({type:f.Cs.OPENED,jobId:n,data:o})}}}var k=n(70171),E=n(17202);const v=u.Z.getLogger("esri.core.workers"),{HANDSHAKE:A}=f.Cs;let _,Z;const L="Failed to create Worker. Fallback to execute module in main thread";async function C(e){return new Promise((t=>{function n(o){const s=(0,f.QM)(o);s&&s.type===A&&(e.removeEventListener("message",n),e.removeEventListener("error",r),t(e))}function r(t){t.preventDefault(),e.removeEventListener("message",n),e.removeEventListener("error",r),v.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new b).addEventListener("message",n),e.addEventListener("error",r)}e.addEventListener("message",n),e.addEventListener("error",r)}))}let S=0;const I=u.Z.getLogger("esri.core.workers"),{ABORT:P,INVOKE:O,OPEN:T,OPENED:R,RESPONSE:x}=f.Cs;class H{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),I.error(e)}))}static async create(e){const t=await async function(){if(!(0,o.Z)("esri-workers")||((0,o.Z)("mozilla"),0))return C(new b);if(!_&&!Z)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=d.Z.default){const t={...d.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(d.Z));e.assetsPath=(0,m.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,k.Kd)(),e.has={"esri-csp-restrictions":(0,o.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,o.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,o.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,o.Z)("esri-atomics"),"esri-shared-array-buffer":(0,o.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.Z)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,o.Z)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,m.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,m.hF)(e.workers.workerPath):e.workers.workerPath=(0,m.hF)((0,h.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=d.Z.workers.loaderConfig,n=p({baseUrl:t?.baseUrl,locale:(0,k.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),r={version:l.i8,buildDate:E.r,revision:E.$};return JSON.stringify({esriConfig:e,loaderConfig:n,kernelInfo:r})}()}'`);_=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){Z=e||{}}let e;if(_)try{e=new Worker(_,{name:"esri-worker-"+S++})}catch(t){v.warn(L,Z),e=new b}else v.warn(L,Z),e=new b;return C(e)}();return new H(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:n}=t,r=(0,f.jt)();return new Promise(((t,o)=>{const i={resolve:t,reject:o,abortHandle:(0,s.$F)(n,(()=>{this._outJobs.delete(r),this._post({type:P,jobId:r})}))};this._outJobs.set(r,i),this._post({type:T,jobId:r,modulePath:e})}))}_onMessage(e){const t=(0,f.QM)(e);if(t)switch(t.type){case R:this._onOpenedMessage(t);break;case x:this._onResponseMessage(t);break;case P:this._onAbortMessage(t);break;case O:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);r&&(r.controller&&r.controller.abort(),t.delete(n))}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,i=o?new AbortController:null,a=this._inJobs,u=l.Nv[t];let c;try{if("function"!=typeof u)throw new TypeError(`${t} is not a function`);c=u.call(null,r,{signal:i?i.signal:null})}catch(e){return void this._post({type:x,jobId:n,error:(0,f.AB)(e)})}(0,s.y8)(c)?(a.set(n,{controller:i,promise:c}),c.then((e=>{a.has(n)&&(a.delete(n),this._post({type:x,jobId:n},e))}),(e=>{a.has(n)&&(a.delete(n),e||(e={message:"Error encountered at method"+t}),(0,s.D_)(e)||this._post({type:x,jobId:n,error:(0,f.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:x,jobId:n},c)}_onOpenedMessage(e){const{jobId:t,data:n}=e,r=this._outJobs.get(t);r&&(this._outJobs.delete(t),(0,c.hw)(r.abortHandle),r.resolve(n))}_onResponseMessage(e){const{jobId:t,error:n,data:o}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,c.hw)(s.abortHandle),n?s.reject(r.Z.fromJSON(JSON.parse(n))):s.resolve(o))}_post(e,t,n){return(0,f.oi)(this.worker,e,t,n)}}let N=(0,o.Z)("esri-workers-debug")?1:(0,o.Z)("host-browser")?navigator.hardwareConcurrency-1:0;N||(N=(0,o.Z)("safari")&&(0,o.Z)("mac")||(0,o.Z)("trident")?7:2);let D=0;const M=[];async function q(e,t){const n=new i.Z;return await n.open(e,t),n}async function F(e,t={}){if("string"!=typeof e)throw new r.Z("workers:undefined-module","modulePath is missing");let n=t.strategy||"distributed";if((0,o.Z)("host-webworker")&&!(0,o.Z)("esri-workers")&&(n="local"),"local"===n){let n=await a.default.loadWorker(e);n||(n=await import(e)),(0,s.k_)(t.signal);const r=t.client||n;return q([a.default.connect(n)],{...t,client:r})}if(await async function(){if(j)return j;z=new AbortController;const e=[];for(let t=0;t<N;t++){const n=H.create(t).then((e=>(M[t]=e,e)));e.push(n)}return j=Promise.all(e),j}(),(0,s.k_)(t.signal),"dedicated"===n){const n=D++%N;return q([await M[n].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const n=Math.min(t.maxNumWorkers,N);if(n<N){const r=new Array(n);for(let o=0;o<n;++o){const n=D++%N;r[o]=M[n].open(e,t)}return q(r,t)}}return q(M.map((n=>n.open(e,t))),t)}let z,j=null},8667:(e,t,n)=>{n.d(t,{CJ:()=>H,Cz:()=>R,D$:()=>T,ED:()=>b,G0:()=>C,Gg:()=>v,LV:()=>E,Nm:()=>k,Sp:()=>Z,TE:()=>m,U1:()=>O,W4:()=>w,Y4:()=>D,cv:()=>S,e5:()=>_,f3:()=>I,fS:()=>g,j2:()=>x,jU:()=>d,kK:()=>p,kQ:()=>M,og:()=>A,oq:()=>c,r3:()=>h,rd:()=>P,sz:()=>N,uh:()=>y,wf:()=>L,z7:()=>f}),n(66577);var r=n(78346),o=(n(13473),n(33955));function s(e){return Array.isArray(e)?e[0]?.spatialReference:e?.spatialReference}function i(e){return e?Array.isArray(e)?e.map(i):e.toJSON?e.toJSON():e:e}function a(e){return Array.isArray(e)?e.map((e=>(0,o.im)(e))):(0,o.im)(e)}let l;async function u(e,t){return(await async function(){return l||(l=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:e,parameters:i(t)})}async function c(e,t){return a(await u("clip",[s(e),e,t]))}async function f(e,t){return a(await u("cut",[s(e),e,t]))}function h(e,t){return u("contains",[s(e),e,t])}function d(e,t){return u("crosses",[s(e),e,t])}function m(e,t,n){return u("distance",[s(e),e,t,n])}function g(e,t){return u("equals",[s(e),e,t])}function p(e,t){return u("intersects",[s(e),e,t])}function w(e,t){return u("touches",[s(e),e,t])}function y(e,t){return u("within",[s(e),e,t])}function b(e,t){return u("disjoint",[s(e),e,t])}function k(e,t){return u("overlaps",[s(e),e,t])}function E(e,t,n){return u("relate",[s(e),e,t,n])}function v(e){return u("isSimple",[s(e),e])}async function A(e){return a(await u("simplify",[s(e),e]))}async function _(e,t){return a(await u("difference",[s(e),e,t]))}async function Z(e,t){return a(await u("symmetricDifference",[s(e),e,t]))}async function L(e,t){return a(await u("intersect",[s(e),e,t]))}async function C(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return a(await u("union",[s(n),n]))}async function S(e,t,n,r,o,i){return a(await u("offset",[s(e),e,t,n,r,o,i]))}async function I(e,t,n,r=!1){const o=[s(e),e,t,n,r];return a(await u("buffer",o))}async function P(e,t,n,r,o,i){const l=[s(e),e,t,n,r,o,i];return a(await u("geodesicBuffer",l))}async function O(e,t,n){if(null==e)throw new Error("Illegal Argument Exception");const r=e.spatialReference;n=n??function(e){return"xmin"in e?e.center:"x"in e?e:e.extent.center}(e);const o=e.constructor.fromJSON(await u("rotate",[r,e,t,n]));return o.spatialReference=r,o}async function T(e,t,n,r){return a(await u("generalize",[s(e),e,t,n,r]))}async function R(e,t,n){return a(await u("densify",[s(e),e,t,n]))}async function x(e,t,n,r=0){return a(await u("geodesicDensify",[s(e),e,t,n,r]))}function H(e,t){return u("planarArea",[s(e),e,t])}function N(e,t){return u("planarLength",[s(e),e,t])}function D(e,t,n){return u("geodesicArea",[s(e),e,t,n])}function M(e,t,n){return u("geodesicLength",[s(e),e,t,n])}},2587:(e,t,n)=>{n(90344),n(18848),n(940),n(70171);var r=n(94443),o=n(3172),s=n(20102),i=n(70586);async function a(e){if((0,i.pC)(l.fetchBundleAsset))return l.fetchBundleAsset(e);const t=await(0,o.default)(e,{responseType:"text"});return JSON.parse(t.data)}const l={};var u,c=n(99880);(0,r.tz)((u={pattern:"esri/",location:c.V},new class{constructor({base:e="",pattern:t,location:n=new URL(window.location.href)}){let r;r="string"==typeof n?e=>new URL(e,new URL(n,window.location.href)).href:n instanceof URL?e=>new URL(e,n).href:n,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,n,o){const i=t.exec(n);if(!i)throw new s.Z("esri-intl:invalid-bundle",`Bundle id "${n}" is not compatible with the pattern "${t}"`);const l=i[1]?`${i[1]}/`:"",u=i[2],c=(0,r.Su)(o),f=`${l}${u}.json`,h=c?`${l}${u}_${c}.json`:f;let d;try{d=await a(e(h))}catch(t){if(h===f)throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:t});try{d=await a(e(f))}catch(e){throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:e})}}return d}(this.getAssetUrl,this.matcher,e,t)}}(u)))},90344:(e,t,n)=>{n.d(t,{Ze:()=>p,p6:()=>w});var r=n(35454),o=n(70171);const s={year:"numeric",month:"numeric",day:"numeric"},i={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},u={hour:"numeric",minute:"numeric"},c={...u,second:"numeric"},f={"short-date":s,"short-date-short-time":{...s,...u},"short-date-short-time-24":{...s,...u,hour12:!1},"short-date-long-time":{...s,...c},"short-date-long-time-24":{...s,...c,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...u},"short-date-le-short-time-24":{...s,...u,hour12:!1},"short-date-le-long-time":{...s,...c},"short-date-le-long-time-24":{...s,...c,hour12:!1},"long-month-day-year":i,"long-month-day-year-short-time":{...i,...u},"long-month-day-year-short-time-24":{...i,...u,hour12:!1},"long-month-day-year-long-time":{...i,...c},"long-month-day-year-long-time-24":{...i,...c,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...u},"day-short-month-year-short-time-24":{...a,...u,hour12:!1},"day-short-month-year-long-time":{...a,...c},"day-short-month-year-long-time-24":{...a,...c,hour12:!1},"long-date":l,"long-date-short-time":{...l,...u},"long-date-short-time-24":{...l,...u,hour12:!1},"long-date-long-time":{...l,...c},"long-date-long-time-24":{...l,...c,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":u,"long-time":c},h=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),d=(h.apiValues,h.toJSON.bind(h),h.fromJSON.bind(h),{ar:"ar-u-nu-latn-ca-gregory"});let m=new WeakMap,g=f["short-date-short-time"];function p(e){return f[e]||null}function w(e,t){return function(e){const t=e||g;if(!m.has(t)){const e=(0,o.Kd)(),n=d[(0,o.Kd)()]||e;m.set(t,new Intl.DateTimeFormat(n,t))}return m.get(t)}(t).format(e)}(0,o.Ze)((()=>{m=new WeakMap,g=f["short-date-short-time"]}))},94443:(e,t,n)=>{n.d(t,{ME:()=>d,Su:()=>m,tz:()=>h});var r=n(20102),o=n(95330),s=n(70171);const i=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){return a[e]??!1}const u=[],c=new Map;function f(e){for(const t of c.keys())g(e.pattern,t)&&c.delete(t)}function h(e){return u.includes(e)||(f(e),u.unshift(e)),{remove(){const t=u.indexOf(e);t>-1&&(u.splice(t,1),f(e))}}}async function d(e){const t=(0,s.Kd)();c.has(e)||c.set(e,async function(e,t){const n=[];for(const r of u)if(g(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=c.get(e);return await p.add(n),n}function m(e){if(!i.test(e))return null;const[,t,n]=i.exec(e),r=t+(n?"-"+n.toUpperCase():"");return l(r)?r:l(t)?t:null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,s.Ze)((()=>{c.clear()}));const p=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,o.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,n)=>{n.d(t,{sh:()=>l,uf:()=>u});var r=n(70586),o=n(70171);const s={ar:"ar-u-nu-latn"};let i=new WeakMap,a={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function u(e,t){return function(e){const t=e||a;if(!i.has(t)){const n=(0,o.Kd)(),r=s[(0,o.Kd)()]||n;i.set(t,new Intl.NumberFormat(r,e))}return(0,r.j0)(i.get(t))}(t).format(e)}(0,o.Ze)((()=>{i=new WeakMap,a={}}))},940:(e,t,n)=>{n.d(t,{n:()=>u});var r=n(92604),o=n(78286),s=n(19153),i=n(90344),a=n(18848);const l=r.Z.getLogger("esri.intl");function u(e,t,n={}){const{format:r={}}=n;return(0,s.gx)(e,(e=>function(e,t,n){let r,s;const i=e.indexOf(":");if(-1===i?r=e.trim():(r=e.slice(0,i).trim(),s=e.slice(i+1).trim()),!r)return"";const a=(0,o.hS)(r,t);if(null==a)return"";const l=n[s]||n[r];return l?c(a,l):s?f(a,s):h(a)}(e,t,r)))}function c(e,t){switch(t.type){case"date":return(0,i.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),h(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,i.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,i.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):h(e)}}function h(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,i.p6)(e):""}}},3172:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var r=n(68773),o=n(40330),s=n(20102),i=n(80442),a=n(22974),l=n(70586),u=n(95330),c=n(17452),f=n(71058),h=n(85958);async function d(e,t){const a=(0,c.HK)(e),h=(0,c.jc)(e);h||a||(e=(0,c.Fv)(e));const w={url:e,requestOptions:{...(0,l.Wg)(t)}};let y=(0,c.oh)(e);if(y){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 n,r;try{r=await e.before(t)}catch(e){n=A("request:interceptor",e,t)}if((r instanceof Error||r instanceof s.Z)&&(n=A("request:interceptor",r,t)),n)throw e.error&&e.error(n),n;return r}}(y,w);if(null!=e)return{data:e,getHeader:k,requestOptions:w.requestOptions,url:w.url};y.after||y.error||(y=null)}if(e=w.url,"image"===(t=w.requestOptions).responseType){if((0,i.Z)("host-webworker")||(0,i.Z)("host-node"))throw A("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),w)}else if(a)throw A("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),w);if("head"===t.method){if(t.body)throw A("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),w);if(a||h)throw A("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),w)}if(await async function(){(0,i.Z)("host-webworker")?m||(m=await n.e(9884).then(n.bind(n,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const b=new AbortController;(0,u.fu)(t,(()=>b.abort()));const E={controller:b,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:y,params:w,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},v=await async function(e){let t,n;await async function(e){const t=e.params.url,n=e.params.requestOptions,s=e.controller.signal,i=n.body;let a=null,l=null,c=null;if(p&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(l=i,a=new FormData(l))),"string"==typeof i&&(c=i),e.fetchOptions={cache:n.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",priority:g.priority,redirect:"follow",signal:s},(a||c)&&(e.fetchOptions.body=a||c),"anonymous"===n.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||n.query&&n.query.token||a&&a.get&&a.get("token")||l&&l.elements.token),!e.hasToken&&r.Z.apiKey&&(0,f.r)(t)&&(n.query||(n.query={}),n.query.token=r.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!Z(t)&&!(0,u.Hc)(s)){let r;"immediate"===n.authMode?(await _(),r=await o.id.getCredential(t,{signal:s}),e.credential=r):"no-prompt"===n.authMode?(await _(),r=await o.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=r):o.id&&(r=o.id.findCredential(t)),r&&(e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[t,n]=await L(e)}while(!await S(e,t,n))}catch(n){const r=A("request:server",n,e.params,t);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const s=e.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)&&!e.hasToken&&!e.credentialToken&&n?.user?.username&&!(0,c.kl)(s)){const e=(0,c.P$)(s,!0);e&&g.trustedServers.push(e)}const i=e.credential;if(i&&o.id){const e=o.id.findServerInfo(i.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,i.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:n,getHeader:t?e=>t.headers.get(e):k,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(E);return y?.after?.(v),v}let m;const g=r.Z.request,p="FormData"in globalThis,w=[499,498,403,401],y=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],k=()=>null,E=Symbol();function v(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,c.kl)(t)}function A(e,t,n,r){let o="Error";const i={url:n.url,requestOptions:n.requestOptions,getHeader:k,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=n.url,t.details.requestOptions=n.requestOptions):t.details=i,t;if(t){const e=r&&(e=>r.headers.get(e)),n=r&&r.status,s=t.message;s&&(o=s),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||n||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=E in t?t[E]:t}return(0,u.D_)(t)?(0,u.zE)():new s.Z(e,o,i)}async function _(){o.id||await Promise.all([n.e(280),n.e(1400),n.e(3879)]).then(n.bind(n,28153))}function Z(e){return b.some((t=>t.test(e)))}async function L(e){let t=e.params.url;const n=e.params.requestOptions,r=e.fetchOptions,s=(0,c.jc)(t)||(0,c.HK)(t),a=n.responseType||"json",l=s?0:null!=n.timeout?n.timeout:g.timeout;let f=!1;if(!s){e.useSSL&&(t=(0,c.hO)(t)),n.cacheBust&&"default"===r.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let s={...n.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,c.B7)(s);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let u;f="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||l>g.maxUrlLength;const h=n.useProxy||!!(0,c.ed)(t);if(h){const e=(0,c.b7)(t);u=e.path,!f&&u.length+1+l>g.maxUrlLength&&(f=!0),e.query&&(s={...e.query,...s})}if("HEAD"===r.method&&(f||h)){if(f){if(l>g.maxUrlLength)throw A("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw A("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(h)throw A("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(f?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?t=(0,c.fl)(t,s):(r.body=(0,c.B7)(s),r.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,s),h&&(e.useProxy=!0,t=`${u}?${t}`),s.token&&p&&r.body instanceof FormData){const e=r.body;e.set?e.set("token",s.token):e.append("token",s.token)}if(n.hasOwnProperty("withCredentials"))e.withCredentials=n.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(t);n&&n.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(r.credentials="include")}let h,m,w=0,y=!1;l>0&&(w=setTimeout((()=>{y=!0,e.controller.abort()}),l));try{if("native-request-init"===n.responseType)m=r,m.url=t;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||f||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(n.headers)||!s&&!e.useProxy&&g.proxyUrl&&!v(t)){if(h=await d._abortableFetch(t,r),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===n.responseType)m=h;else if("HEAD"!==r.method)if(h.ok){switch(a){case"array-buffer":m=await h.arrayBuffer();break;case"blob":case"image":m=await h.blob();break;default:m=await h.text()}if(w&&(clearTimeout(w),w=0),"json"===a||"xml"===a||"document"===a)if(m)switch(a){case"json":m=JSON.parse(m);break;case"xml":m=C(m,"application/xml");break;case"document":m=C(m,"text/html")}else m=null;if(m){if("array-buffer"===a||"blob"===a){const e=h.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 I(URL.createObjectURL(m),e,!0))}}else m=await h.text()}else m=await I(t,e)}catch(r){if("AbortError"===r.name){if(y)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!h&&r instanceof TypeError&&g.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||e.useProxy||v(t))throw r;e.redoRequest=!0,(0,c.tD)({proxyUrl:g.proxyUrl,urlPrefix:(0,c.P$)(t)})}finally{w&&clearTimeout(w)}return[h,m]}function C(e,t){let n;try{n=(new DOMParser).parseFromString(e,t)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function S(e,t,n){if(e.redoRequest)return e.redoRequest=!1,!1;const r=e.params.requestOptions;if(!t||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let s,i,a,l;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[E]=n,s;n?.error&&(s=n.error),s&&(i=Number(s.code),a=s.hasOwnProperty("subcode")?Number(s.subcode):null,l=s.messageCode,l=l&&l.toUpperCase());const u=r.authMode;if(403===i&&(4===a||s.message&&s.message.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===i)&&w.includes(i)&&!Z(e.params.url)&&(403!==i||!y.includes(l)&&(null==a||2===a&&e.credentialToken))){await _();try{const t=await o.id.getCredential(e.params.url,{error:A("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 I(e,t,n=!1){const r=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchpriority=g.priority,o.src=e,(0,h.f)(o,e,n,r)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,r.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,n)=>{n.d(t,{f:()=>i});var r=n(80442),o=n(70586),s=n(95330);function i(e,t,n=!1,i){return new Promise(((l,u)=>{if((0,s.Hc)(i))return void u(a());let c=()=>{d(),u(new Error(`Unable to load ${t}`))},f=()=>{const t=e;d(),l(t)},h=()=>{if(!e)return;const t=e;d(),t.src="",u(a())};const d=()=>{(0,r.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",f)),c=null,f=null,e=null,(0,o.pC)(i)&&i.removeEventListener("abort",h),h=null,n&&URL.revokeObjectURL(t)};(0,o.pC)(i)&&i.addEventListener("abort",h),(0,r.Z)("esri-image-decode")?e.decode().then(f,c):(e.addEventListener("error",c),e.addEventListener("load",f))}))}function a(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}}}]);
|