@arcgis/core 5.0.0-next.4 → 5.0.0-next.6
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/Map.js +1 -1
- package/analysis/ElevationProfileAnalysis.js +1 -1
- package/analysis/VolumeMeasurement/volumeMeasurementConfiguration.js +1 -1
- package/applications/KnowledgeStudio/generalSdkInternalAccess.d.ts +4 -0
- package/applications/KnowledgeStudio/generalSdkInternalAccess.js +5 -0
- package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +1 -0
- package/applications/KnowledgeStudio/generalSharedKgUtils.js +1 -1
- package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +2 -0
- package/applications/KnowledgeStudio/layerInternalAccessUtils.js +1 -1
- package/applications/KnowledgeStudio/resourceSerializationUtils.js +1 -1
- package/assets/components/assets/sort-handle/t9n/messages.uk.json +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/020c8913d8e35d63080b.js +1 -0
- package/assets/esri/core/workers/chunks/02e69f0c63d97661da60.js +1 -0
- package/assets/esri/core/workers/chunks/06ba43843e9c4988049b.js +1 -0
- package/assets/esri/core/workers/chunks/087973e7c4fea5fcfa5e.js +1 -0
- package/assets/esri/core/workers/chunks/{388482cea4b9fdeaf06e.js → 0f30a9514571c7be9978.js} +1 -1
- package/assets/esri/core/workers/chunks/{929ece362604dc301229.js → 17acde0245ecd956306c.js} +1 -1
- package/assets/esri/core/workers/chunks/{14ace5dc4b8984212a57.js → 17d5f8dba6ebb1184506.js} +1 -1
- package/assets/esri/core/workers/chunks/{651b9144abb1895cc510.js → 1e848d9da1c61a27cf18.js} +1 -1
- package/assets/esri/core/workers/chunks/{8cea114168d849c38b1b.js → 20278683bddc8c2d8136.js} +1 -1
- package/assets/esri/core/workers/chunks/{00aa85ae6419aad183ea.js → 22d6b8102e75bdef204c.js} +1 -1
- package/assets/esri/core/workers/chunks/279366e6b743f9680603.js +1 -0
- package/assets/esri/core/workers/chunks/285762ff92d5388b6024.js +1 -0
- package/assets/esri/core/workers/chunks/{4f01be74dd26e639330f.js → 2f24017e72d41c259faa.js} +1 -1
- package/assets/esri/core/workers/chunks/36b1f47d70b57d79df7b.js +1 -0
- package/assets/esri/core/workers/chunks/{3d65b8a2fbe1df050a25.js → 377a66034e7c1bad5599.js} +1 -1
- package/assets/esri/core/workers/chunks/37f2ef14399546e697e6.js +1 -0
- package/assets/esri/core/workers/chunks/{0f9bb3187306f89e3d63.js → 398f356b11fd33bd3831.js} +1 -1
- package/assets/esri/core/workers/chunks/3a457e718a901a45902e.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{f7c99e9c8d19352af38d.js → 3ac7562ea90f91a9f30c.js} +1 -1
- package/assets/esri/core/workers/chunks/3f3d492f1093b7832aab.js +1 -0
- package/assets/esri/core/workers/chunks/4442817beb7a76c95770.js +1 -0
- package/assets/esri/core/workers/chunks/464d42bebb365287808d.js +1 -0
- package/assets/esri/core/workers/chunks/4c5a7249a311070d8f43.js +1 -0
- package/assets/esri/core/workers/chunks/{d570c75a425aa29672c8.js → 4d599008e1ea42321b37.js} +1 -1
- package/assets/esri/core/workers/chunks/{c0feec6e2f0e45900ae0.js → 53bd8996e8812f1ad7b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{9a723d739ac44b45432c.js → 557960763695abee4a83.js} +1 -1
- package/assets/esri/core/workers/chunks/5bd36dbf46c25bd961c8.js +1 -0
- package/assets/esri/core/workers/chunks/{b7a17927e14f502006b4.js → 5ea0c62016d56990787b.js} +1 -1
- package/assets/esri/core/workers/chunks/{2ea6985da4eb0107bb9d.js → 5fc7b61f467f1d60a284.js} +1 -1
- package/assets/esri/core/workers/chunks/{a87521ebe632bf783ef4.js → 62a49cfd9a2508950e9f.js} +1 -1
- package/assets/esri/core/workers/chunks/67d9cfe02613cb73ee37.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{ec13053af1999701464a.js → 6826fe54562dcdc054d7.js} +1 -1
- package/assets/esri/core/workers/chunks/6c3b99209d542efa64d4.js +1 -0
- package/assets/esri/core/workers/chunks/{8215015f11221a354273.js → 6d049182bec34a22abcd.js} +1 -1
- package/assets/esri/core/workers/chunks/{309c5f69ea06f3081d83.js → 73487b9d85e726e9c012.js} +1 -1
- package/assets/esri/core/workers/chunks/7413e582bc2b16af6a0f.js +1 -0
- package/assets/esri/core/workers/chunks/{3d22fe2f2c40abbc246e.js → 7461124454bfb4fb6474.js} +1 -1
- package/assets/esri/core/workers/chunks/{147ad5fdd02f46b6da24.js → 7544316a75dbd981aea6.js} +1 -1
- package/assets/esri/core/workers/chunks/75bf27271a31e26e1b21.js +1 -0
- package/assets/esri/core/workers/chunks/{630efe10c871425b6a95.js → 76ae1702fecc7ad7017c.js} +1 -1
- package/assets/esri/core/workers/chunks/{de1f75c907152df7e788.js → 794748fd1edc29a621cd.js} +1 -1
- package/assets/esri/core/workers/chunks/79dbfa2b9b332ca0002f.js +1 -0
- package/assets/esri/core/workers/chunks/7a23ab84e1144f081c92.js +1 -0
- package/assets/esri/core/workers/chunks/7aaaebbabee27690283c.js +1 -0
- package/assets/esri/core/workers/chunks/7c4a63aeead2505d6f02.js +1 -0
- package/assets/esri/core/workers/chunks/{2a5f331c0f18d8574b4e.js → 811d4c46c75cf6a63e78.js} +1 -1
- package/assets/esri/core/workers/chunks/8372f142c4d7a65c7954.js +1 -0
- package/assets/esri/core/workers/chunks/{d84373a6ec94dcfec8c2.js → 88074189fa10c335370b.js} +1 -1
- package/assets/esri/core/workers/chunks/{dc31865edea480f0ebba.js → 8833c3d168951be4bf20.js} +1 -1
- package/assets/esri/core/workers/chunks/883ffaa69b3e6eb158bf.js +1 -0
- package/assets/esri/core/workers/chunks/{85622fe99f4d08afe875.js → 8a314b3790313e6dc5db.js} +1 -1
- package/assets/esri/core/workers/chunks/{b0b2670596d6d8c32b5e.js → 8c056eac35d05d9524b7.js} +1 -1
- package/assets/esri/core/workers/chunks/{0086a09441627842d34a.js → 8f3503b2fb6cd38757b9.js} +1 -1
- package/assets/esri/core/workers/chunks/{1a713dcc9971e1935401.js → 8f56f298e7c1a283f407.js} +1 -1
- package/assets/esri/core/workers/chunks/{dabc5a38a472c9719df9.js → 8ffd4710d168c2fcfd96.js} +1 -1
- package/assets/esri/core/workers/chunks/{b2add7338258ca7c24dd.js → 90250e9239c173aace88.js} +1 -1
- package/assets/esri/core/workers/chunks/90b2b43b8b54c9a1ec35.js +1 -0
- package/assets/esri/core/workers/chunks/90f8b4bda28af43ea019.js +1 -0
- package/assets/esri/core/workers/chunks/{89027f6800e17fab8973.js → 9486032af3e934d85582.js} +1 -1
- package/assets/esri/core/workers/chunks/95c594a87b732f5c4979.js +1 -0
- package/assets/esri/core/workers/chunks/9786f91455350eaae493.js +1 -0
- package/assets/esri/core/workers/chunks/99859dce1925b406ccd0.js +1 -0
- package/assets/esri/core/workers/chunks/9c5cbf8810f37b1a4718.js +1 -0
- package/assets/esri/core/workers/chunks/9e8dceef4c961f56940d.js +1 -0
- package/assets/esri/core/workers/chunks/9fac5a12e878cd745354.js +1 -0
- package/assets/esri/core/workers/chunks/a06bac9b8f9e18874de8.js +316 -0
- package/assets/esri/core/workers/chunks/a091623bbfb3d771c8d8.js +1 -0
- package/assets/esri/core/workers/chunks/{01642fe19e81bfa33eb5.js → a395373e3173e6458a56.js} +1 -1
- package/assets/esri/core/workers/chunks/a3991ae8caa713d4ddcd.js +1 -0
- package/assets/esri/core/workers/chunks/{135e270b4f03c4270870.js → a4db5c9a90107e097df8.js} +1 -1
- package/assets/esri/core/workers/chunks/a712cdff78fc826acd8c.js +1 -0
- package/assets/esri/core/workers/chunks/a8f998b8ec8c56150479.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/aa54b6f2aba6952af149.js +1 -0
- package/assets/esri/core/workers/chunks/aa78b69219d9a0ef1c54.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/ac26e3e77df4302f47a2.js +1 -0
- package/assets/esri/core/workers/chunks/af5fc5d6c1d072a27df1.js +1 -0
- package/assets/esri/core/workers/chunks/{46ef545d2b3b3f4e6d32.js → b017bac40dc8328013e3.js} +2 -2
- package/assets/esri/core/workers/chunks/{46ef545d2b3b3f4e6d32.js.LICENSE.txt → b017bac40dc8328013e3.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{bc3bcf88b252760e2574.js → b3028b1ff75eafd0c358.js} +1 -1
- package/assets/esri/core/workers/chunks/b59f9c3f7a149214256f.js +1 -0
- package/assets/esri/core/workers/chunks/b96eb0ea506379182d62.js +2 -0
- package/assets/esri/core/workers/chunks/{24921d31efa8d222ad2d.js.LICENSE.txt → b96eb0ea506379182d62.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{b5863afafd3a7d2d5c05.js → bb5484b5eeacc9ad2ceb.js} +3 -3
- package/assets/esri/core/workers/chunks/bb56717c4e36f28d4c08.js +1 -0
- package/assets/esri/core/workers/chunks/bb7976e2f883b544add6.js +1 -0
- package/assets/esri/core/workers/chunks/{5875a51b97ee9bd438a0.js → bc241c7735e4efba734a.js} +1 -1
- package/assets/esri/core/workers/chunks/{56916e56c20465428dd4.js → be3b874f86f627f4fa98.js} +1 -1
- package/assets/esri/core/workers/chunks/{0eaa4dccba0d844b9da3.js → c3ddcf9148dd2640c402.js} +1 -1
- package/assets/esri/core/workers/chunks/c476643002387f60ea42.js +1 -0
- package/assets/esri/core/workers/chunks/c4e4da69969499a89a2c.js +1 -0
- package/assets/esri/core/workers/chunks/c8733cd621105afab2ac.js +1 -0
- package/assets/esri/core/workers/chunks/ccc0da0e01f023c8aa1f.js +1 -0
- package/assets/esri/core/workers/chunks/cd1930f08e1fc8b30b14.js +1 -0
- package/assets/esri/core/workers/chunks/ce16489cf7eb0d78c741.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/d048e4926e78458afa3e.js +1 -0
- package/assets/esri/core/workers/chunks/d1fe816b6990918c13c7.js +1 -0
- package/assets/esri/core/workers/chunks/d305a21666b1ed5bf33d.js +1 -0
- package/assets/esri/core/workers/chunks/d39a10155317e6f7a21c.js +1 -0
- package/assets/esri/core/workers/chunks/d40f57f9fc47f9a9f97c.js +1 -0
- package/assets/esri/core/workers/chunks/d6e0528eacee7ea4c1ce.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/d97fadbc69e055d183a0.js +1 -0
- package/assets/esri/core/workers/chunks/dedc4583b5f32a278124.js +1 -0
- package/assets/esri/core/workers/chunks/e31192ae920e3e19b6aa.js +1 -0
- package/assets/esri/core/workers/chunks/{e5bcc44f3dc6fc90835a.js → e5a06ce0ef6a9a90e100.js} +1 -1
- package/assets/esri/core/workers/chunks/e82f5437bd66779c6740.js +1 -0
- package/assets/esri/core/workers/chunks/f0e0a63962784acb4ba1.js +1 -0
- package/assets/esri/core/workers/chunks/{039ec0fbe3b4b398b8c6.js → f26dc1d83beed63b6045.js} +1 -1
- package/assets/esri/core/workers/chunks/{fa5c87889c2f0bef896b.js → f35aaa04cca676c2d3f8.js} +1 -1
- package/assets/esri/core/workers/chunks/f4d0ae6be1b3984228d0.js +1 -0
- package/assets/esri/core/workers/chunks/{7c5c272612198db83851.js → f5e47eea8720ba84665b.js} +1 -1
- package/assets/esri/core/workers/chunks/f651c05604eab83aef5f.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{fa4411e0a5ac3fcba365.js → f65c0102af17390a50ac.js} +1 -1
- package/assets/esri/core/workers/chunks/f6c11c8ac687de3ef1ab.js +1 -0
- package/assets/esri/core/workers/chunks/f6c8beb60f6d29945a2e.js +1 -0
- package/assets/esri/core/workers/chunks/f746e3f7ebff2bbdf333.js +1 -0
- package/assets/esri/core/workers/chunks/f9324e88c359c03f35aa.js +1 -0
- package/assets/esri/core/workers/chunks/{cfa3164e7fa1884dc2b9.js → facb3886714222772ab2.js} +1 -1
- package/assets/esri/core/workers/chunks/fd2efd1d1cf9d95a87e6.js +1 -0
- package/assets/esri/core/workers/chunks/{fe3f95fda29e4844b153.js → fe77ae6cf232a7a3298e.js} +1 -1
- package/assets/esri/core/workers/chunks/{2ce4a0fe4fae63c43a81.js → ff35a077ac6776469805.js} +1 -1
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Directions.scss +17 -18
- package/assets/esri/themes/base/widgets/_UtilityNetworkTrace.scss +14 -4
- 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/ComponentShader.glsl.js +72 -39
- package/chunks/OITBlend.glsl.js +3 -3
- package/chunks/bundle.js +1 -1
- package/config.js +1 -1
- package/core/Identifiable.js +1 -1
- package/core/MultiOriginJSONSupport.js +1 -1
- package/core/NumericIdentifiable.js +5 -0
- package/core/QueueProcessor.js +1 -1
- package/core/WriteableMultiOriginJSONMixin.js +5 -0
- package/core/has.js +1 -1
- package/core/performance.js +5 -0
- package/core/sanitizerUtils.js +1 -1
- package/core/scheduling.js +1 -1
- package/core/workers/Connection.js +1 -1
- package/core/workers/WorkerHandle.js +1 -1
- package/core/workers/utils.js +1 -1
- package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
- package/geohash/GeohashCell.js +1 -1
- package/geohash/geohashUtils.js +1 -1
- package/geometry/GeometryCursor.js +1 -1
- package/geometry/geometryCursorCollectUtils.js +1 -1
- package/geometry/libtess.js +1 -1
- package/geometry/support/jsonUtils.js +1 -1
- package/geometry/support/normalizeUtilsSync.js +1 -1
- package/geometry/support/triangulationUtils.js +1 -1
- package/interfaces.d.ts +444 -349
- package/intl/date.js +1 -1
- package/intl.d.ts +2 -0
- package/intl.js +1 -1
- package/kernel.js +1 -1
- package/layers/FeatureLayer.js +1 -1
- package/layers/graphics/OptimizedFeature.js +1 -1
- package/layers/graphics/OptimizedGeometry.js +1 -1
- package/layers/graphics/centroid.js +1 -1
- package/layers/graphics/contains.js +1 -1
- package/layers/graphics/data/AttributesBuilder.js +1 -1
- package/layers/graphics/data/FeatureStore.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/geometryUtils.js +1 -1
- package/layers/graphics/data/spatialQuerySupport.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/geojson/geojson.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
- package/layers/knowledgeGraph/layerUtils.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/support/MediaElementBase.js +1 -1
- package/layers/support/PixelBlock.js +1 -1
- package/layers/support/RasterInfo.js +1 -1
- package/layers/support/RasterJobHandler.js +1 -1
- package/layers/support/RasterSensorInfo.js +1 -1
- package/layers/support/RasterStorageInfo.js +1 -1
- package/layers/support/RasterWorker.js +1 -1
- package/layers/support/TitleCreator.js +1 -1
- package/layers/support/arcgisLayerUrl.js +1 -1
- package/layers/support/capabilities.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/rasterDatasets/BaseRaster.js +1 -1
- package/layers/support/rasterDatasets/pixelReader.js +1 -1
- package/layers/support/rasterFieldUtils.js +1 -1
- package/layers/support/rasterFunctions/pixelUtils.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/package.json +5 -5
- package/request.js +1 -1
- package/rest/print.js +1 -1
- package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
- package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/rest/query/operations/queryZScale.js +1 -1
- package/rest/versionManagement/getVersionInfos.js +1 -1
- package/smartMapping/statistics/histogram.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/utils.js +1 -1
- package/support/basemapDefinitions.js +1 -1
- package/support/elevationInfoUtils.js +1 -1
- package/support/requestImageUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/effects/EffectTaperedPolygon.js +1 -1
- package/undoredo/support/Services.js +1 -1
- package/views/2d/GoToManager.js +1 -1
- package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
- package/views/2d/constraints/GeometryConstraint.js +1 -1
- package/views/2d/constraints/RotationConstraint.js +1 -1
- package/views/2d/constraints/ZoomConstraint.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/Mesh2D.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLBrushVTLSymbol.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/templateUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/AFillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/aggregation/GridCell.js +1 -1
- package/views/2d/layers/features/processor/AAggregateStrategy.js +1 -1
- package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
- package/views/2d/layers/features/schema/SourceSchema.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/FeatureFilterEvaluator.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
- package/views/2d/layers/features/support/GraphicsReader.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/3d/FocusAreasView.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
- package/views/3d/glTF/DefaultLoadingContext.js +1 -1
- package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/pipeline/featureSet/PBFPointFeatureSetView.js +1 -1
- package/views/3d/layers/graphics/pipeline/featureSet/TiledFeatureStore.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/layers/i3s/I3SQueryFeatureAdapter.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3DContext.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
- package/views/3d/layers/support/featureTileQuery3D.js +1 -1
- package/views/3d/layers/support/lyr3dTypeConversions.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
- package/views/3d/state/controllers/ZoomControllerLocal.js +1 -1
- package/views/3d/state/controllers/ZoomStepControllerGlobal.js +1 -1
- package/views/3d/state/controllers/ZoomStepControllerLocal.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/DisplayQualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/StreamDataLoader.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/flow/FlowSubViewExtent3D.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/flow/FlowWorker.js +1 -1
- package/views/3d/support/flow/StreamlineResources3D.js +1 -1
- package/views/3d/support/flow/StreamlineResources3DOverlay.js +1 -1
- package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
- package/views/3d/support/flow/constants.js +1 -1
- package/views/3d/support/hitTest.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/TileOverlayData.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.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/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +7 -7
- package/views/3d/webgl-engine/core/shaderModules/BooleanDrawUniform.js +5 -0
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueConstructionContext.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillDepth.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +4 -4
- package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileLineInputComputation.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
- package/views/analysis/ElevationProfile/constants.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileGenerationUtils.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/reshapeUtils.js +1 -1
- package/views/interactive/dragEventPipeline.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/views/webgl/ShaderBuilder.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/widgets/Attachments/AttachmentsViewModel.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Directions/css.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/Editor/AddAssociationWorkflow.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/Edits.js +1 -1
- package/widgets/Editor/MergeFeaturesWorkflow.d.ts +4 -0
- package/widgets/Editor/MergeFeaturesWorkflow.js +5 -0
- package/widgets/Editor/MergeFeaturesWorkflowData.d.ts +4 -0
- package/widgets/Editor/MergeFeaturesWorkflowData.js +5 -0
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/Editor/components/UploadDetails.js +1 -1
- package/widgets/Editor/support/EditorItem.js +1 -1
- package/widgets/Editor/support/mergeFeaturesUtils.js +5 -0
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/Feature/FeatureExpression.js +1 -1
- package/widgets/Feature/FeatureFields/FeatureFieldsViewModel.js +1 -1
- package/widgets/Feature/FeatureFields.js +1 -1
- package/widgets/Feature/FeatureMedia/FeatureMediaViewModel.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/Feature.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/SequentialNavigationUI.js +1 -1
- package/widgets/OrientedImageryViewer/components/SketchTools.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/Search/LayerSearchSource.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/widgets/support/ColorPicker.js +1 -1
- package/widgets/support/SelectionList/LayerItem.js +1 -1
- package/widgets/support/jsxWidgetSupport.js +1 -1
- package/assets/esri/core/workers/chunks/0429c1a3690f20647c9f.js +0 -1
- package/assets/esri/core/workers/chunks/065f2bbcaeef1f13fd48.js +0 -1
- package/assets/esri/core/workers/chunks/0731e588afd1f561ec3b.js +0 -1
- package/assets/esri/core/workers/chunks/188272af9a6470ccfe31.js +0 -1
- package/assets/esri/core/workers/chunks/18da83afbc324fef9fd8.js +0 -316
- package/assets/esri/core/workers/chunks/1a9f544f20f643161a36.js +0 -1
- package/assets/esri/core/workers/chunks/1cfcadaa98ac528fea37.js +0 -1
- package/assets/esri/core/workers/chunks/1db0bf570a04687b3130.js +0 -1
- package/assets/esri/core/workers/chunks/24921d31efa8d222ad2d.js +0 -2
- package/assets/esri/core/workers/chunks/2a900a632a1231deb713.js +0 -1
- package/assets/esri/core/workers/chunks/31c6e951b99315e8e68a.js +0 -1
- package/assets/esri/core/workers/chunks/35491fbdd287470d40a4.js +0 -1
- package/assets/esri/core/workers/chunks/36247c6f6fc2891df2cf.js +0 -1
- package/assets/esri/core/workers/chunks/3d53307efbc3f07d7bf2.js +0 -1
- package/assets/esri/core/workers/chunks/40b81d1c2d53cf598b8e.js +0 -1
- package/assets/esri/core/workers/chunks/42a72e1d963e4636323b.js +0 -1
- package/assets/esri/core/workers/chunks/456161a323be7d640c61.js +0 -1
- package/assets/esri/core/workers/chunks/500d09d2191127371081.js +0 -1
- package/assets/esri/core/workers/chunks/50864c1924030e62497d.js +0 -1
- package/assets/esri/core/workers/chunks/5707713c2f27588b9194.js +0 -1
- package/assets/esri/core/workers/chunks/5713f96bade5ebb54c81.js +0 -1
- package/assets/esri/core/workers/chunks/5718cf135e105e1e026b.js +0 -1
- package/assets/esri/core/workers/chunks/5c585b338a9e9aa0e205.js +0 -1
- package/assets/esri/core/workers/chunks/5d1d909354c90cb8eb60.js +0 -1
- package/assets/esri/core/workers/chunks/5ea03f53d4d64d9e7cae.js +0 -1
- package/assets/esri/core/workers/chunks/63019a7eb5222dc5e420.js +0 -1
- package/assets/esri/core/workers/chunks/64629ddcf008349eaf41.js +0 -1
- package/assets/esri/core/workers/chunks/64ee8d2acae2d6fce608.js +0 -1
- package/assets/esri/core/workers/chunks/6fcacfcb3d83515c37c9.js +0 -1
- package/assets/esri/core/workers/chunks/72ecf49d03bb24bf0998.js +0 -1
- package/assets/esri/core/workers/chunks/7421f9575487cdc9e28e.js +0 -1
- package/assets/esri/core/workers/chunks/77a11d7d53325d108ed8.js +0 -1
- package/assets/esri/core/workers/chunks/7a05b1f6163112bc9db2.js +0 -1
- package/assets/esri/core/workers/chunks/7d9882ddfa6495f72baa.js +0 -1
- package/assets/esri/core/workers/chunks/7fffad8ff6878fa1fd56.js +0 -1
- package/assets/esri/core/workers/chunks/81bbe5251ed13c0d91cc.js +0 -1
- package/assets/esri/core/workers/chunks/8b16aa50d879b92a5375.js +0 -1
- package/assets/esri/core/workers/chunks/8bc64fc7c4b9eb8fca4d.js +0 -1
- package/assets/esri/core/workers/chunks/8bfa19c24be0e3f3fd74.js +0 -1
- package/assets/esri/core/workers/chunks/8eefa133c36a004c054c.js +0 -1
- package/assets/esri/core/workers/chunks/9834bc11586a2d8d6f35.js +0 -1
- package/assets/esri/core/workers/chunks/9c6fc4fe2c46f40d63d9.js +0 -1
- package/assets/esri/core/workers/chunks/a5f25104938ab33e7a85.js +0 -1
- package/assets/esri/core/workers/chunks/a7bd294996e6c8b8354a.js +0 -1
- package/assets/esri/core/workers/chunks/abf4f018c692c18c3320.js +0 -1
- package/assets/esri/core/workers/chunks/b1f667006cba60ef4aa7.js +0 -1
- package/assets/esri/core/workers/chunks/b2d9f4e057af26a538fb.js +0 -1
- package/assets/esri/core/workers/chunks/b62807c6fcfb70a87cd4.js +0 -1
- package/assets/esri/core/workers/chunks/b8339c1d60847a9eed3e.js +0 -1
- package/assets/esri/core/workers/chunks/bc6619307f312f9241bf.js +0 -1
- package/assets/esri/core/workers/chunks/bfc1e8aec7aace3ff30e.js +0 -1
- package/assets/esri/core/workers/chunks/c362fbbafec91c44eeb2.js +0 -1
- package/assets/esri/core/workers/chunks/c368a8e8d2f1535af446.js +0 -1
- package/assets/esri/core/workers/chunks/c941d15190fc08523d0d.js +0 -1
- package/assets/esri/core/workers/chunks/cc70a4a915b0b2ccb2a0.js +0 -1
- package/assets/esri/core/workers/chunks/d121045cddbe55c2ecb2.js +0 -1
- package/assets/esri/core/workers/chunks/d2120a623b1bd91b9ed9.js +0 -1
- package/assets/esri/core/workers/chunks/d78c2833cdc4730a88a3.js +0 -1
- package/assets/esri/core/workers/chunks/df438b62702007267798.js +0 -1
- package/assets/esri/core/workers/chunks/f4eb090bcc3eca64306a.js +0 -1
- package/assets/esri/core/workers/chunks/f7846523adacbfe5047e.js +0 -1
- package/assets/esri/core/workers/chunks/f839b86bee15deaf84e4.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[73],{159:(e,t,n)=>{n.d(t,{A:()=>u});var i,r=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108)),a=n(99157);let u=i=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],u.prototype,"steps",void 0),u=i=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},4197:(e,t,n)=>{n.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var i=n(34275),r=n(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function l(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function u(e){const t=(0,r.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},6455:(e,t,n)=>{n.d(t,{FJ:()=>v,Dp:()=>w,KV:()=>b});var i=n(31635),r=n(93637),s=n(10107),o=(n(44208),n(53966),n(87811),n(64108)),l=n(89317),a=n(69540),u=n(7762),c=n(25482),p=n(43937),d=n(83960),f=n(13069);const h={write:{overridePolicy:(e,t,n)=>({enabled:!n||"scale"===n.filterMode})}};let m=class extends((0,a.OU)(c.o)){constructor(e){super(e),this.id=(0,f.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:h})],m.prototype,"maxScale",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:h})],m.prototype,"minScale",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,i.Cg)([(0,o.$)("esri.layers.support.DisplayFilter")],m);var y=n(41560);let g=class extends((0,a.OU)(c.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(u.A.ofType(m)),this.mode="manual"}writeFilters(e,t,n,i){const r=e.toArray();"scale"===this.mode&&r.sort((e,t)=>{const n=(0,d.oW)(t.minScale,e.minScale),i=e.maxScale-t.maxScale;return 0===n?i:n}),t[n]=r.map(e=>e.toJSON(i))}write(e,t){return super.write(e,(0,y.mW)(this,t))}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,n)=>({enabled:"manual"===n.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,s.MZ)({type:u.A.ofType(m),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,i.Cg)([(0,p.K)("filters")],g.prototype,"writeFilters",null),(0,i.Cg)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,i.Cg)([(0,o.$)("esri.layers.support.DisplayFilterInfo")],g);const v=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,i.Cg)([(0,s.MZ)(w)],n.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,s.MZ)(b)],n.prototype,"displayFilterInfo",void 0),n=(0,i.Cg)([(0,o.$)("esri.layers.mixins.DisplayFilteredLayer")],n),n},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:l.K,writer(e,t,n){(0,r.sM)(n,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},b={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:l.K},origins:{"web-scene":{write:!1,read:!1}}}}},6797:(e,t,n)=>{n.d(t,{Ui:()=>d});var i=n(69622),r=n(7762),s=n(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof r.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const i=a(e),r=a(t);if(0===i.length&&0===r.length)return;if(!i.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!i.includes(e)),d=i.filter(e=>!r.includes(e)),f=i.filter(n=>r.includes(n)&&u(e,n)!==u(t,n)).concat(s,d).sort(),h=c(e);if(h&&o.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=l(e)&&l(t);for(const i of f){const r=u(e,i),s=u(t,i);let o;if((y||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(n&&n[i]&&"function"==typeof n[i])o=n[i]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?p(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=m?m.diff[i]=o:m={type:"partial",diff:{[i]:o}})}}return m}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},8303:(e,t,n)=>{n.d(t,{A:()=>M});var i=n(31635),r=n(92602),s=n(70333),o=n(78888),l=n(60999),a=n(49186),u=n(53966),c=n(97768),p=n(74887),d=n(84952),f=n(10107),h=(n(44208),n(87811),n(36005)),m=n(64108),y=n(43937),g=n(77548),v=n(20655),w=n(80812),b=n(41318),I=n(10407);const M=e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new w.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await n.e(1204).then(n.bind(n,41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:i},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),r=e===n.id;if(r&&n.portal.user)return this._getUserPrivileges(n,i);let o,l;if(r)o=n.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(r?await n.reload():(n=new w.default({id:e,portal:{url:o}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,i)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const n=(0,I.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const n=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=s.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const i=`${n.owningSystemUrl}/sharing/rest`,r=v.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(i))return r.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?b.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return n&&i&&!(0,d.ut)(i.restUrl,n.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,f.MZ)({type:w.default})],M.prototype,"portalItem",null),(0,i.Cg)([(0,h.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,i.Cg)([(0,y.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,i.Cg)([(0,f.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,i.Cg)([(0,m.$)("esri.layers.mixins.PortalLayer")],M),M},T={credential:null,user:null}},8947:(e,t,n)=>{n.d(t,{L:()=>o});var i=n(60999),r=n(74887),s=n(67076);async function o(e,t,n){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const l=await(0,i.Ke)(o.populateFromStyle());if((0,r.Te)(n),!1===l.ok){const n=l.error;t?.messages&&t.messages.push(new s.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${n.message}`,{error:n,context:t})),e.clear("renderer",t?.origin)}}}},9093:(e,t,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>r,vt:()=>i,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:i,fromValues:function(e,t,n,i,r,s,o,l,a,u,c,p,d,f,h,m){return[e,t,n,i,r,s,o,l,a,u,c,p,d,f,h,m]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>r});var i=n(37539);function r(e,t,n,r,s,o,l=Math.floor(e.length/3)){const a=(0,i.jd)(t,s);if(null==a)return!1;if(a===i.pO){if(e===r&&n===o)return!0;const t=n+3*l;for(let i=n,s=o;i<t;i++,s++)r[s]=e[i];return!0}const u=n+3*l;for(let t=n,i=o;t<u;t+=3,i+=3)a(e,t,r,i);return!0}},10184:(e,t,n)=>{n.d(t,{A:()=>p});var i=n(31635),r=n(69540),s=n(25482),o=n(88930),l=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),u=n(64108),c=n(73133);let p=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,a.e)(c.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i.Cg)([(0,u.$)("esri.time.TimeInterval")],p)},10407:(e,t,n)=>{n.d(t,{It:()=>f,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,mm:()=>d,sQ:()=>p});var i=n(91218),r=n(16930),s=n(28735);function o(e,t){if(!l(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,d.HOSTED_SERVICE)}function u(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function c(e,t,n){n?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const n=r.A.WGS84;return await(0,i.initializeProjection)(t,n),(0,i.project)(e,n)}(n)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function f(e){const{portal:t,isOrgItem:n,itemControl:i}=e,r=t.user?.privileges;let s=!r||r.includes("features:user:edit"),o=!!n&&!!r?.includes("features:user:fullEdit");const l="update"===i||"admin"===i;return l?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:l}}}},13069:(e,t,n)=>{n.d(t,{AG:()=>l,lk:()=>r,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function r(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17036:(e,t,n)=>{n.d(t,{p:()=>a});var i=n(44208),r=n(53966),s=n(20437),o=n(95466),l=n(30524);function a(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");r.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const n=this.fieldsIndex?.has(t);n||r.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},18768:(e,t,n)=>{n.d(t,{b:()=>a});var i=n(31635),r=n(53966),s=n(10107),o=(n(44208),n(87811),n(64108)),l=n(60694);const a=e=>{const t=e;let n=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Jf)(e,r.A.getLogger(this)))}};return(0,i.Cg)([(0,s.MZ)()],n.prototype,"title",null),(0,i.Cg)([(0,s.MZ)({type:String})],n.prototype,"url",null),n=(0,i.Cg)([(0,o.$)("esri.layers.mixins.ArcGISService")],n),n}},32730:(e,t,n)=>{n.d(t,{BI:()=>y,D3:()=>h,XJ:()=>m,lc:()=>f,mX:()=>v,rU:()=>g,tH:()=>T});var i=n(799);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+r,"i"),u=new RegExp(s+"$","i"),c='"',p=c+" + ",d=" + "+c;function f(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=f(e.labelExpression),t.type="conventional"),t}function y(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(w);return t?.[1].trim()||null}(t.expression);case"arcade":return T(t.expression)}return null}function v(e){let t;return e?(t=(0,i.HC)(e,e=>r+'$feature["'+e+'"]'+s),t=a.test(t)?t.replace(a,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(o,p).replaceAll(l,d)):t='""',t}const w=/^\s*\{([^}]+)\}\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,I=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function T(e){if(!e)return null;let t=b.exec(e)||I.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}},37539:(e,t,n)=>{n.d(t,{pO:()=>m,jd:()=>d,Tp:()=>f,w5:()=>p});var i=n(34727),r=n(83047),s=n(73941),o=n(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=n(21325);const p={2:{5:m,7:null,9:null,10:m,1:T,6:null,8:null,0:null,3:g,11:v,2:m,4:F},5:{5:m,7:null,9:null,10:m,1:T,6:null,8:null,0:null,3:g,11:v,2:m,4:F},7:{5:null,7:m,9:null,10:m,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:I,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(e,t,n,i){const r=e[t]/R,s=E-2*Math.atan(Math.exp(-e[t+1]/R)),o=R+e[t+2],l=Math.cos(s)*o;n[i]=Math.cos(r)*l,n[i+1]=Math.sin(r)*l,n[i+2]=Math.sin(s)*o},6:null,8:null,0:null,3:m,11:function(e,t,n,i){y(e,t,n,i),v(n,i,n,i)},2:y,4:function(e,t,n,i){y(e,t,n,i),F(n,i,n,i)}},4:{5:C,7:null,9:null,10:C,1:function(e,t,n,i){C(e,t,n,i),T(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){C(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){C(e,t,n,i),v(n,i,n,i)},2:C,4:m},1:{5:A,7:null,9:null,10:A,1:m,6:null,8:null,0:null,3:function(e,t,n,i){A(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){A(e,t,n,i),v(n,i,n,i)},2:A,4:function(e,t,n,i){A(e,t,n,i),F(n,i,n,i)}},6:{5:null,7:S,9:null,10:S,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:_,10:_,1:null,6:null,8:m,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:T,6:M,8:I,0:null,3:g,11:v,2:m,4:F},11:{5:w,7:null,9:null,10:w,1:function(e,t,n,i){w(e,t,n,i),T(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){w(e,t,n,i),g(n,i,n,i)},11:m,2:w,4:function(e,t,n,i){w(e,t,n,i),F(n,i,n,i)}}};function d(e,t){return f(e,t)?.projector}function f(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const n=h(e,j.source),i=h(t,j.dest);return 0===n&&0===i?(0,c.aI)(e,t)?j.projector=m:j.projector=null:j.projector=p[n][i],j}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t])}function y(e,t,n,i){n[i]=Z*(e[t]/R),n[i+1]=Z*(E-2*Math.atan(Math.exp(-e[t+1]/R))),n[i+2]=e[t+2]}function g(e,t,n,r){!function(e,t,n,r,s){const o=.4999999*Math.PI,l=(0,i.qE)(O*e[t+1],-o,o),a=Math.sin(l);n[r++]=O*e[t]*s.radius,n[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]}(e,t,n,r,o.$O)}function v(e,t,n,i){n[i]=e[t]*P,n[i+1]=e[t+1]*P,n[i+2]=e[t+2]}function w(e,t,n,i){n[i]=e[t]*N,n[i+1]=e[t+1]*N,n[i+2]=e[t+2]}function b(e,t,n,i,r){const s=r+e[t+2],o=O*e[t+1],l=O*e[t],a=Math.cos(o)*s;n[i]=Math.cos(l)*a,n[i+1]=Math.sin(l)*a,n[i+2]=Math.sin(o)*s}function I(e,t,n,i){b(e,t,n,i,o.Sw.radius)}function M(e,t,n,i){b(e,t,n,i,o.sH.radius)}function T(e,t,n,i){b(e,t,n,i,o.$O.radius)}function x(e,t,n,r,s){const o=e[t],l=e[t+1],a=e[t+2],u=Math.sqrt(o*o+l*l+a*a),c=(0,i.YN)(a/(0===u?1:u)),p=Math.atan2(l,o);n[r++]=Z*p,n[r++]=Z*c,n[r]=u-s}function _(e,t,n,i){x(e,t,n,i,o.Sw.radius)}function S(e,t,n,i){x(e,t,n,i,o.sH.radius)}function A(e,t,n,i){x(e,t,n,i,o.$O.radius)}function F(e,t,n,i){!function(e,t,n,i,r){const s=O*e[t],o=O*e[t+1],l=e[t+2],a=Math.sin(o),u=Math.cos(o),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[i++]=(c+l)*u*Math.cos(s),n[i++]=(c+l)*u*Math.sin(s),n[i++]=(c*(1-r.eccentricitySquared)+l)*a}(e,t,n,i,o.$O)}function C(e,t,n,i){const r=u,s=e[t],l=e[t+1],a=e[t+2];let c,p,d,f,h,m,y,g,v,w,b,I,M,T,x,_,S,A,F,C,j;c=Math.abs(a),p=s*s+l*l,d=Math.sqrt(p),f=p+a*a,h=Math.sqrt(f),C=Math.atan2(l,s),m=a*a/f,y=p/f,T=r.a2/h,x=r.a3-r.a4/h,y>.3?(g=c/h*(1+y*(r.a1+T+m*x)/h),F=Math.asin(g),w=g*g,v=Math.sqrt(1-w)):(v=d/h*(1-m*(r.a5-T-y*x)/h),F=Math.acos(v),w=1-v*v,g=Math.sqrt(w)),b=1-o.$O.eccentricitySquared*w,I=o.$O.radius/Math.sqrt(b),M=r.a6*I,T=d-I*v,x=c-M*g,S=v*T+g*x,_=v*x-g*T,A=_/(M/b+S),F+=A,j=S+_*A/2,a<0&&(F=-F),n[i++]=Z*C,n[i++]=Z*F,n[i]=j}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},O=(0,i.kU)(1),Z=(0,i.KJ)(1),E=.5*Math.PI,R=o.$O.radius,P=R*Math.PI/180,N=180/(R*Math.PI)},41366:(e,t,n)=>{n.d(t,{K:()=>d,Q:()=>u});var i=n(31635),r=n(66552),s=n(53966),o=n(10107),l=(n(44208),n(87811),n(93223)),a=n(64108);const u=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),c="percent-of-total",p="field",d=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&p||n&&c||null,t&&n&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==p&&e!==c||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(u,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,i.Cg)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],n),n}},41560:(e,t,n)=>{n.d(t,{Ch:()=>o,mW:()=>s});var i=n(34727),r=n(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,n){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:i}of e.filters)t[0]=Math.max(t[0],c(n)),t[1]=Math.min(t[1],p(i));return t}(e);if(s&&((0,i.gg)(t,s[0])||(0,i.ZH)(n,s[1])))return"";const o=Array.from(l(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const r=c(e.at(0)?.minScale),s=p(e.at(-1)?.maxScale);if((0,i.ZH)(r,t)||(0,i.gg)(s,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];if((0,i.ZH)(c(r.minScale),p(n.maxScale)))return!0}return!1}(o,t,n)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,r.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,n){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)a(i.minScale,i.maxScale,t,n)&&(yield i)}}function a(e,t,n,r){return e=c(e),n=c(n),t=p(t),!(!(0,i.Sp)(n,e)&&(r??n)>e||(0,i.Hx)(t,n)||void 0!==r&&(0,i.Sp)(r,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},46140:(e,t,n)=>{n.d(t,{R:()=>r});var i=n(49186);let r=class e{constructor(e,t,n=""){this.major=e,this.minor=t,this._context=n}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",n=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${n}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,n=""){const[r,s]=t.split("."),o=/^\s*\d+\s*$/;if(!r?.match||!o.test(r))throw new i.A((n&&n+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!s?.match||!o.test(s))throw new i.A((n&&n+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const l=parseInt(r,10),a=parseInt(s,10);return new e(l,a,n)}}},50498:(e,t,n)=>{n.d(t,{Ye:()=>p,gy:()=>c,yR:()=>d});var i=n(66552),r=n(5443),s=n(91075),o=n(48526),l=n(86738),a=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,n)=>{n.d(t,{A:()=>M});var i,r=n(31635),s=n(37838),o=n(69540),l=n(51447),a=n(25482),u=n(53966),c=n(36708),p=n(24326),d=n(10107),f=(n(44208),n(87811),n(64108)),h=n(12195),m=n(65864),y=n(50498),g=n(55156),v=n(60950),w=n(54339),b=n(33910);function I(e){if(null==e)return null;const t={};for(const n in e){const i=e[n];i&&(t[n]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let M=class extends((0,o.OU)(a.o)){static{i=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:I(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(r.action=i),"attributes"===e&&(r.attributeName=i),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,r.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const i=(0,m.rS)(e[n]);i&&(t[n]=i)}return 0!==Object.keys(t).length?t:null}}})],M.prototype,"aggregateGeometries",null),(0,r.Cg)([(0,d.MZ)({value:null})],M.prototype,"attributes",null),(0,r.Cg)([(0,d.MZ)({value:null,types:y.yR,json:{read:m.rS}})],M.prototype,"geometry",null),(0,r.Cg)([(0,d.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,r.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,r.Cg)([(0,d.MZ)({type:s.A,value:null})],M.prototype,"popupTemplate",null),(0,r.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,r.Cg)([(0,d.MZ)({value:null,types:b.Es})],M.prototype,"symbol",null),(0,r.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=i=(0,r.Cg)([(0,f.$)("esri.Graphic")],M)},54339:(e,t,n)=>{function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const i of t.fieldNames)n.push(e.attributes[i]??null);return JSON.stringify(n)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>i,r:()=>r})},55156:(e,t,n)=>{n.d(t,{I:()=>r,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&i in t?e[i]:void 0;var t}},55674:(e,t,n)=>{n.d(t,{Ad:()=>f,Gj:()=>y,QY:()=>d,lL:()=>g,xR:()=>h});var i=n(66131),r=n(49186),s=(n(44208),n(44729)),o=n(15032),l=n(65864),a=n(95466),u=n(43668),c=n(98623);const p=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const n of p)t.hasArcadeDependency(n)&&e.add(n);return e}function f(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,n){return m.create(e,t,n,["$feature","$view","$config"])}class m{static async create(e,t,n,i){const{arcade:s,Dictionary:o}=await(0,u.l)();let l;try{l=s.parseScript(e)}catch(t){throw new r.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const a=s.scriptUsesGeometryEngine(l);a&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,l,null,!1,a);const c={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=s.compileScript(l,c);let d=null;null!=n&&(d=new o(n),d.immutable=!0);const f=new o;return f.immutable=!1,f.setField("scale",0),new m(e,s,l,p,t,f,d,o)}constructor(e,t,n,i,r,s,o,l){this.script=e,this._arcade=t,this._syntaxTree=n,this._compiled=i,this._spatialReference=r,this._viewDict=s,this._configDict=o,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const n=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:r,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=r?null!=n?i.lY.epochToArcadeDate(r,n):i.lY.unknownEpochToArcadeDate(r):void 0,currentEnd:null!=s?null!=n?i.lY.epochToArcadeDate(s,n):i.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:n})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,n){const i=t??new a.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=n}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const n=this._getField(e);if(n){const t=this._boundTarget.attributes[n.name];if(null==t)return null;switch(n.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const n in e)t.push({name:n,alias:n,type:"string"==typeof e[n]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},62815:(e,t,n)=>{n.d(t,{N:()=>o});var i=n(83047),r=n(73941),s=n(21325);function o(e,t,n){if(null==t||null==n||n.vcsWkid||(0,s.aI)(t,n)||(0,r.xP)(t)||(0,r.xP)(n))return null;const o=(0,i.G9)(t)/(0,i.G9)(n);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},63396:(e,t,n)=>{n.d(t,{d:()=>T});var i=n(31635),r=n(10107),s=(n(44208),n(53966),n(87811),n(64108)),o=n(60950),l=n(99959);class a extends l.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}}var u=n(37838),c=n(69540),p=n(25482),d=n(93637),f=n(43937),h=n(50820),m=n(10873),y=n(46499),g=n(41214);let v=class extends((0,c.OU)(p.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,r.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,r.MZ)(m.kF)],v.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,r.MZ)({types:g.Hg,json:{write:!0}})],v.prototype,"renderer",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{write:!0}})],v.prototype,"visible",void 0),v=(0,i.Cg)([(0,s.$)("esri.layers.support.TrackPartInfo")],v);var w=n(96576),b=n(59868),I=n(10184);let M=class extends((0,c.OU)(p.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new v({renderer:new w.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new v({renderer:new w.A({symbol:b.UK.clone()})}),this.trackLines=new v({renderer:new w.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,n){const i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,d.sM)(n,i,t)}};(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"enabled",void 0),(0,i.Cg)([(0,r.MZ)({type:[h.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,f.K)("fields")],M.prototype,"writeFields",null),(0,i.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"latestObservations",void 0),(0,i.Cg)([(0,r.MZ)({type:I.A,json:{write:!0}})],M.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,r.MZ)({type:Number,json:{write:!0}})],M.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,r.MZ)(m.M6)],M.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,r.MZ)({type:u.A,json:{name:"popupInfo",write:!0}})],M.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"previousObservations",void 0),(0,i.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"trackLines",void 0),(0,i.Cg)([(0,r.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],M.prototype,"timeField",void 0),M=(0,i.Cg)([(0,s.$)("esri.layers.support.TrackInfo")],M);const T=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,i.Cg)([(0,r.MZ)({readOnly:!0,clonable:!1})],n.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,r.MZ)({type:M})],n.prototype,"trackInfo",void 0),n=(0,i.Cg)([(0,s.$)("esri.layers.mixins.TrackableLayer")],n),n}},69208:(e,t,n)=>{n.d(t,{d:()=>o});var i=n(31635),r=n(10107),s=(n(44208),n(53966),n(87811),n(64108));const o=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],n.prototype,"customParameters",void 0),n=(0,i.Cg)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],n),n}},70328:(e,t,n)=>{n.d(t,{BI:()=>w,DC:()=>p,Ej:()=>f,Ie:()=>g,Jt:()=>v,Ne:()=>h,RF:()=>c,aI:()=>I,fA:()=>o,gE:()=>a,hZ:()=>y,iT:()=>d,is:()=>b,qv:()=>M,vI:()=>m,vY:()=>l,v_:()=>T,vt:()=>s,w1:()=>u});var i=n(5443),r=(n(19419),n(4197));function s(e=T){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,i,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l}function l(e,t=s()){return function(e,t,n,i=s()){return y(i,M),function(e,t,n=0,i=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)r=Math.min(r,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),l=Math.max(l,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(i,e,t,n),i}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[n,i,s,o,l,a]=e;return t[0]=n,t[1]=i,t[2]=s,t[3]=n,t[4]=i,t[5]=a,t[6]=n,t[7]=l,t[8]=s,t[9]=n,t[10]=l,t[11]=a,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new i.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function m(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?y(e,M):s(M)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function w(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function b(e){return 6===e.length}function I(e,t,n){if(null==e||null==t)return e===t;if(!b(e)||!b(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],T=[0,0,0,0,0,0];s()},72691:(e,t,n)=>{n.d(t,{Aw:()=>o,DN:()=>i,EA:()=>s,Gm:()=>r,xq:()=>l});const i="__esri_stream_id__",r="__esri_timestamp__",s="__esri_track_part__",o="__esri_time_received__",l="__esri_track_line__"},73133:(e,t,n)=>{n.d(t,{j:()=>i});const i=(0,n(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73681:(e,t,n)=>{n.d(t,{n:()=>a});var i=n(49186),r=n(53966),s=n(46140),o=n(95466),l=n(55674);class a{static async from(e,t,n){const o=e.dictionary_version?s.R.parse(e.dictionary_version):null,c=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(n))d.delete(e);d.size&&r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const f=await(0,l.xR)(e.expression,null,p);if(!f)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const m=new u(n,h);return new a(h,c,f,m)}constructor(e,t,n,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=n,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,n,i){try{return this._reader.bind(e,n,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},79457:(e,t,n)=>{n.r(t),n.d(t,{default:()=>oe});var i=n(31635),r=n(37838),s=n(78888),o=n(69540),l=n(49186),a=n(36563),u=n(4718),c=n(53966),p=n(92071),d=n(74887),f=n(10107),h=n(56507),m=n(36005),y=n(64108),g=n(5443),v=n(16930),w=n(50498),b=n(55156),I=n(60950),M=n(89808),T=n(99959);const x=Symbol("isStreamGraphicOrigin");var _;class S extends T.A{get[(_=x,I.ym)](){return this.layer}get[b.e](){return this.layer}get[M.Q](){return this.layer}constructor(e){super(),this[_]=!0,this.type="stream",this.layer=e}get id(){return this.layer.id}}var A,F=n(4146),C=n(18768),j=n(63074),O=n(69208),Z=n(6455),E=n(87718),R=n(56658),P=n(16131),N=n(8303),D=n(54310),L=n(25036),k=n(82935),U=n(63396),$=n(10873),G=n(15426),z=n(20437),q=n(17036),V=n(30524),J=n(46499),B=n(39383),Y=n(25482);n(44208),n(87811);let H=class extends Y.o{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}static{A=this}clone(){return new A({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"age",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"ageReceived",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"displayCount",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"maxObservations",void 0),H=A=(0,i.Cg)([(0,y.$)("esri.layers.support.PurgeOptions")],H);var K=n(72691),W=n(65494),Q=n(8947),X=n(41214),ee=n(61956),te=n(30291),ne=n(88625);const ie=(0,q.p)();function re(e,t){return new l.A("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}let se=class extends((0,Z.FJ)((0,R.J)((0,E.F)((0,j.dM)((0,k.e)((0,U.d)((0,L.j)((0,D.J)((0,C.b)((0,P.q)((0,N.A)((0,p.P)((0,O.d)((0,o.OU)(F.A))))))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.graphicOrigin=new S(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.outFields=["*"],this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new H,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=v.A.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,i)=>{const{save:r,saveAs:s}=await n.e(7301).then(n.bind(n,87301));switch(e){case 0:return r(this,t);case 1:return s(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new l.A("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,V.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,n){t=t.layerDefinition||t;const i=t.drawingInfo?.renderer;if(i){const e=(0,W.L)(i,t,n)||void 0;return e||c.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:n}),e}return(0,G.PD)(t,n)}async connect(e){const[{createConnection:t}]=await Promise.all([n.e(624).then(n.bind(n,30624)),this.load()]),i=this.geometryType?w.gy.toJSON(this.geometryType):null,{customParameters:r=null,definitionExpression:s=null,geometryDefinition:o=null,maxReconnectionAttempts:l=0,maxReconnectionInterval:u=20,spatialReference:c=this.spatialReference}=e||this.createConnectionParameters(),p=t(this.parsedUrl,this.spatialReference,c,i,s,o,l,u,r??void 0),d=(0,a.vE)([this.on("send-message-to-socket",e=>p.sendMessageToSocket(e)),this.on("send-message-to-client",e=>p.sendMessageToClient(e))]);return p.once("destroy",d.remove),p}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,te.tn)(this,e)}createQuery(){const e=new ee.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let n=null;return this.fields.some(t=>(t.name===e&&(n=t.domain),!!n)),n}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){const n=t?.messages;return this.webSocketUrl?(n?.push(re(this,"using a custom websocket connection cannot be written to web scenes and web maps")),null):this.parsedUrl?super.write(e,t):(n?.push(re(this,"using a client-side only connection without a url cannot be written to web scenes and web maps")),null)}async _fetchService(e){if(!this.webSocketUrl&&this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,s.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new l.A("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField){const e=this.fields.find(e=>"oid"===e.type)?.name;if(!e)throw new l.A("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");this.objectIdField=e}if(!this.fields)throw new l.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields.some(e=>e.name===this.objectIdField)||this.fields.push(new z.A({name:this.objectIdField,alias:this.objectIdField,type:"oid"})),!this.geometryType)throw new l.A("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.webSocketUrl&&(this.url=this.webSocketUrl)}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,V.yp)(this.renderer,this.fieldsIndex),(0,V.sv)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField=K.DN),(0,Q.L)(this,{origin:"service"})}};(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"copyright",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],se.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],se.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"displayField",void 0),(0,i.Cg)([(0,f.MZ)({type:ne.A})],se.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,f.MZ)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],se.prototype,"featureReduction",null),(0,i.Cg)([(0,f.MZ)(ie.fields)],se.prototype,"fields",void 0),(0,i.Cg)([(0,f.MZ)(ie.fieldsIndex)],se.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,f.MZ)({type:g.A,json:{name:"layerDefinition.definitionGeometry",write:!0}})],se.prototype,"geometryDefinition",void 0),(0,i.Cg)([(0,f.MZ)({type:w.gy.apiValues,json:{read:{reader:w.gy.read}}})],se.prototype,"geometryType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],se.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,f.MZ)($.kF)],se.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,f.MZ)({type:[J.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:B.w},write:!0}})],se.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,f.MZ)($.fV)],se.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],se.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)({type:h.jz})],se.prototype,"maxReconnectionAttempts",void 0),(0,i.Cg)([(0,f.MZ)({type:h.jz})],se.prototype,"maxReconnectionInterval",void 0),(0,i.Cg)([(0,f.MZ)($.hG)],se.prototype,"maxScale",void 0),(0,i.Cg)([(0,f.MZ)($.hn)],se.prototype,"minScale",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"objectIdField",void 0),(0,i.Cg)([(0,f.MZ)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],se.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],se.prototype,"outFields",void 0),(0,i.Cg)([(0,f.MZ)($.M6)],se.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:r.A,json:{name:"popupInfo",write:!0}})],se.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({type:H})],se.prototype,"purgeOptions",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1,write:!1}})],se.prototype,"refreshInterval",void 0),(0,i.Cg)([(0,f.MZ)({types:X.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:X.XJ,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],se.prototype,"renderer",null),(0,i.Cg)([(0,m.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,m.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],se.prototype,"readRenderer",null),(0,i.Cg)([(0,f.MZ)((()=>{const e=(0,u.o8)($.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],se.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,f.MZ)()],se.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,f.MZ)({type:v.A,json:{origins:{service:{read:{source:"spatialReference"}}}}})],se.prototype,"spatialReference",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],se.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)($.OZ)],se.prototype,"url",void 0),(0,i.Cg)([(0,f.MZ)({type:Number})],se.prototype,"updateInterval",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1,write:!1}})],se.prototype,"useViewTime",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"webSocketUrl",void 0),se=(0,i.Cg)([(0,y.$)("esri.layers.StreamLayer")],se);const oe=se},82935:(e,t,n)=>{n.d(t,{B:()=>f,e:()=>h});var i=n(31635),r=n(10107),s=(n(44208),n(53966),n(87811),n(36005)),o=n(64108),l=n(89317),a=n(30524),u=n(96184),c=n(73133),p=n(79677),d=n(10184);const f={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:l.K}}},h=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const i=n.timeOffset,r=c.j.fromJSON(n.timeOffsetUnits);return i&&r?new d.A({value:i,unit:r}):null}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,r.MZ)({type:p.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,i.Cg)([(0,r.MZ)({type:d.A})],n.prototype,"timeOffset",void 0),(0,i.Cg)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,i.Cg)([(0,r.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,i.Cg)([(0,r.MZ)(f)],n.prototype,"useViewTime",void 0),n=(0,i.Cg)([(0,o.$)("esri.layers.mixins.TemporalLayer")],n),n}},83960:(e,t,n)=>{n.d(t,{X_:()=>o,oW:()=>a,zx:()=>l});var i=n(34727),r=n(83047);const s=96;function o(e,t){const n=t||e.extent,i=e.width,o=(0,r.GA)(n?.spatialReference);return n&&i?n.width/i*o*r.dy*s:0}function l(e,t,n){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,n)}function a(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},91218:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>q,initializeProjection:()=>J,isEqualBaseGCS:()=>V,isLoaded:()=>j,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>Z,load:()=>R,project:()=>P,projectExtent:()=>ne,projectMany:()=>N,projectMultipoint:()=>K,projectOrLoad:()=>D,projectOrLoadMany:()=>L,projectPoint:()=>Y,projectPolygon:()=>ee,projectPolyline:()=>Q,projectWithZConversion:()=>z,projectWithoutEngine:()=>B,requiresLoad:()=>E,test:()=>$,tryProjectWithZConversion:()=>G,unload:()=>U});var i=n(49186),r=n(74887),s=n(62788),o=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(91075),d=n(48526),f=n(86738),h=n(39829),m=n(82799),y=n(16930),g=n(159),v=n(9762),w=n(37539);function b(e,t,n,i,r,s){return I[0]=e,I[1]=t,I[2]=n,(0,v.projectBuffer)(I,i,0,r,s,0)}const I=(0,l.vt)();var M=n(21325),T=n(62815);let x=null,_=null,S=null,A=null,F={};const C=new o.I;function j(){return!!(_?.isLoaded()&&S?.isLoaded()&&A?.isLoaded())}function O(){return!!j()||((0,s.gc)(C),R(),!1)}function Z(e,t){return!e||!t||q(e,t)||O()}function E(e,t){return!q(e,t)&&!j()}async function R(e){null==x&&(x=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(_=e,_.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(S=e,S.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(A=e,A.load()))])),await x,(0,r.Te)(e),C.notify()}function P(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),N(e,e[0].spatialReference,t,n)):((0,a.f)(e),N([e],e.spatialReference,t,n)[0])}function N(e,t,n,i){if(null==t||null==n)return e;if(q(t,n,i))return e.map(e=>B(e,t,n));if(null==i?.geographicTransformation&&(0,u.jA)(t))return e.map(e=>B(e,t,y.A.WGS84)).map(e=>G(e,n));if(null==i?.geographicTransformation&&(0,u.jA)(n))return e.map(e=>G(e,y.A.WGS84)).map(e=>B(e,y.A.WGS84,n));if(!j())throw new k;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:A.getTransformation(t,n,i.areaOfInterestExtent)||new g.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=F[e];r||(r=A.getTransformation(t,n)||new g.A,F[e]=r),i={geographicTransformation:r}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?_.executeMany(e,n,i):S.executeMany(e,n,i)}function D(e,t){const n=L([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function L(e,t){if(!j())for(const n of e)if(null!=n&&!(0,M.aI)(n.spatialReference,t)&&(0,M.fn)(n.spatialReference)&&(0,M.fn)(t)&&!q(n.spatialReference,t))return(0,s.gc)(C),{pending:R(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,M.aI)(e.spatialReference,t)?e:(0,M.fn)(e.spatialReference)&&(0,M.fn)(t)?G(e,t):null)}}class k extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){x=null,_=null,S=null,A=null,F={}}const $={get loadPromise(){return x}};function G(e,t){try{const n=P(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const i=(0,T.N)(n.type,e.spatialReference,t);return null!=i&&i(n),n}catch(e){if(!(e instanceof k))throw e;return null}}async function z(e,t,n){const i=e.spatialReference;return null!=i&&null!=t&&await J(i,t,null,n),G(e,t)}function q(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,M.aI)(e,t)||(0,M.fn)(e)&&(0,M.fn)(t)&&!!(0,w.jd)(e,t))}function V(e,t){if((0,M.aI)(e,t))return!0;if(!(0,M.fn)(e)||!(0,M.fn)(t))return!1;const n=(0,M.oT)(e)||(0,M.K8)(e)||(0,M.x1)(e),i=(0,M.oT)(t)||(0,M.K8)(t)||(0,M.x1)(t);return n&&i}async function J(e,t,n,i){if(j())return(0,r.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!q(t,n,r))return R(i)}else if(e&&t&&!q(e,t,n))return R(i);return(0,r.NO)(i)}function B(e,t,n){return e?"x"in e?H(e,t,new f.A,n,0):"xmin"in e?ie(e,t,new c.A,n,0):"rings"in e?te(e,t,new h.A,n,0):"paths"in e?X(e,t,new m.A,n,0):"points"in e?W(e,t,new d.A,n,0):null:null}function Y(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,n,i)}function H(e,t,n,i,r){se[0]=e.x,se[1]=e.y;const s=e.z;return se[2]=void 0!==s?s:r,(0,v.projectBuffer)(se,t,0,se,i,0)?(n.x=se[0],n.y=se[1],n.spatialReference=i,void 0!==s||(0,u.xP)(i)?(n.z=se[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function K(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=W(e,e.spatialReference,t,n,i)}function W(e,t,n,i,r){const{points:s,hasZ:o,hasM:l}=e,a=[],c=s.length,p=[];for(const e of s)p.push(e[0],e[1],o?e[2]:r);if(!(0,v.projectBuffer)(p,t,0,p,i,0,c))return null;const d=o||(0,u.xP)(i);for(let e=0;e<c;++e){const t=3*e,n=p[t],i=p[t+1];d&&l?a.push([n,i,p[t+2],s[e][3]]):d?a.push([n,i,p[t+2]]):l?a.push([n,i,s[e][2]]):a.push([n,i])}return n.points=a,n.spatialReference=i,n.hasZ=o,n.hasM=l,n}function Q(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=X(e,e.spatialReference,t,n,i)}function X(e,t,n,i,r){const{paths:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.paths=a,n.spatialReference=i,n.hasZ=c,n.hasM=l,n}function ee(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,i)}function te(e,t,n,i,r){const{rings:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.rings=a,n.spatialReference=i,n.hasZ=c,n.hasM=l,n}function ne(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,i)}function ie(e,t,n,i,r){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:p}=e;if(!b(s,o,c?e.zmin:r,t,se,i))return null;const d=c||(0,u.xP)(i);return n.xmin=se[0],n.ymin=se[1],d&&(n.zmin=se[2]),b(l,a,c?e.zmax:r,t,se,i)?(n.xmax=se[0],n.ymax=se[1],d&&(n.zmax=se[2]),p&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function re(e,t,n,i,r,s,o=0){const l=new Array;for(const n of e)for(const e of n)l.push(e[0],e[1],t?e[2]:o);if(!(0,v.projectBuffer)(l,i,0,l,s,0))return!1;let a=0;r.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const i of t)c&&n?e.push([l[a++],l[a++],l[a++],i[3]]):c?e.push([l[a++],l[a++],l[a++]]):n?(e.push([l[a++],l[a++],i[2]]),a++):(e.push([l[a++],l[a++]]),a++);r.push(e)}return!0}const se=(0,l.vt)()},95466:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(49186),r=n(53966),s=n(91869),o=n(3330),l=n(12195),a=n(30524),u=n(98623),c=n(56400),p=n(28097);const d=new Map;class f{static fromJSON(e){return new f(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new f(e.fields??[],g(e))}static fromLayerJSON(e){return new f(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,i=m(t);if(t&&i){const r=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):y.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function m(e){return(0,a.rS)(e)?.toLowerCase()??""}const y=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.dateFieldsTimeReference?(0,c.ZS)(r.dateFieldsTimeReference):l??u.n$:null,p=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,c.ZS)(i.timeReference):l:null,d=new Map([[h(r?.creationDateField??""),a],[h(r?.editDateField??""),a],[h(s),p],[h(o),p]]);for(const{name:i,type:r}of e.fields)if(y.has(r))t.set(i,u.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,u.L5);else{const e=d.get(h(i??""))??l;t.set(i,e)}return t}},96184:(e,t,n)=>{n.d(t,{A:()=>h});var i=n(31635),r=n(69540),s=n(25482),o=n(10107),l=(n(44208),n(53966),n(87811),n(36005)),a=n(64108),u=n(43937),c=n(79677),p=n(10184),d=n(56400);function f(e,t){return p.A.fromJSON({value:e,unit:t})}let h=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?c.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?f(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?f(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,l.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,u.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,u.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,d.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,a.$)("esri.layers.support.TimeInfo")],h)},99157:(e,t,n)=>{n.d(t,{A:()=>a});var i,r=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108));let a=i=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=i=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],a)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[73],{159:(e,t,n)=>{n.d(t,{A:()=>u});var i,r=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108)),a=n(99157);let u=i=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],u.prototype,"steps",void 0),u=i=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},4197:(e,t,n)=>{n.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var i=n(34275),r=n(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function l(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function u(e){const t=(0,r.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},6455:(e,t,n)=>{n.d(t,{FJ:()=>v,Dp:()=>w,KV:()=>b});var i=n(31635),r=n(93637),s=n(10107),o=(n(44208),n(53966),n(87811),n(64108)),l=n(89317),a=n(69540),u=n(7762),c=n(25482),p=n(43937),d=n(83960),f=n(13069);const h={write:{overridePolicy:(e,t,n)=>({enabled:!n||"scale"===n.filterMode})}};let m=class extends((0,a.OU)(c.o)){constructor(e){super(e),this.id=(0,f.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:h})],m.prototype,"maxScale",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:h})],m.prototype,"minScale",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,i.Cg)([(0,o.$)("esri.layers.support.DisplayFilter")],m);var y=n(41560);let g=class extends((0,a.OU)(c.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(u.A.ofType(m)),this.mode="manual"}writeFilters(e,t,n,i){const r=e.toArray();"scale"===this.mode&&r.sort((e,t)=>{const n=(0,d.oW)(t.minScale,e.minScale),i=e.maxScale-t.maxScale;return 0===n?i:n}),t[n]=r.map(e=>e.toJSON(i))}write(e,t){return super.write(e,(0,y.mW)(this,t))}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,n)=>({enabled:"manual"===n.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,s.MZ)({type:u.A.ofType(m),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,i.Cg)([(0,p.K)("filters")],g.prototype,"writeFilters",null),(0,i.Cg)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,i.Cg)([(0,o.$)("esri.layers.support.DisplayFilterInfo")],g);const v=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,i.Cg)([(0,s.MZ)(w)],n.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,s.MZ)(b)],n.prototype,"displayFilterInfo",void 0),n=(0,i.Cg)([(0,o.$)("esri.layers.mixins.DisplayFilteredLayer")],n),n},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:l.K,writer(e,t,n){(0,r.sM)(n,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},b={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:l.K},origins:{"web-scene":{write:!1,read:!1}}}}},6797:(e,t,n)=>{n.d(t,{Ui:()=>d});var i=n(69622),r=n(7762),s=n(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof r.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const i=a(e),r=a(t);if(0===i.length&&0===r.length)return;if(!i.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!i.includes(e)),d=i.filter(e=>!r.includes(e)),f=i.filter(n=>r.includes(n)&&u(e,n)!==u(t,n)).concat(s,d).sort(),h=c(e);if(h&&o.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=l(e)&&l(t);for(const i of f){const r=u(e,i),s=u(t,i);let o;if((y||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(n&&n[i]&&"function"==typeof n[i])o=n[i]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?p(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=m?m.diff[i]=o:m={type:"partial",diff:{[i]:o}})}}return m}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},8303:(e,t,n)=>{n.d(t,{A:()=>M});var i=n(31635),r=n(92602),s=n(70333),o=n(78888),l=n(60999),a=n(49186),u=n(53966),c=n(97768),p=n(74887),d=n(84952),f=n(10107),h=(n(44208),n(87811),n(36005)),m=n(64108),y=n(43937),g=n(77548),v=n(20655),w=n(80812),b=n(41318),I=n(10407);const M=e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new w.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await n.e(1204).then(n.bind(n,41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:i},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),r=e===n.id;if(r&&n.portal.user)return this._getUserPrivileges(n,i);let o,l;if(r)o=n.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(r?await n.reload():(n=new w.default({id:e,portal:{url:o}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,i)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const n=(0,I.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const n=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=s.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const i=`${n.owningSystemUrl}/sharing/rest`,r=v.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(i))return r.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?b.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return n&&i&&!(0,d.ut)(i.restUrl,n.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,f.MZ)({type:w.default})],M.prototype,"portalItem",null),(0,i.Cg)([(0,h.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,i.Cg)([(0,y.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,i.Cg)([(0,f.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,i.Cg)([(0,m.$)("esri.layers.mixins.PortalLayer")],M),M},T={credential:null,user:null}},8947:(e,t,n)=>{n.d(t,{L:()=>o});var i=n(60999),r=n(74887),s=n(67076);async function o(e,t,n){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const l=await(0,i.Ke)(o.populateFromStyle());if((0,r.Te)(n),!1===l.ok){const n=l.error;t?.messages&&t.messages.push(new s.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${n.message}`,{error:n,context:t})),e.clear("renderer",t?.origin)}}}},9093:(e,t,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>r,vt:()=>i,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:i,fromValues:function(e,t,n,i,r,s,o,l,a,u,c,p,d,f,h,m){return[e,t,n,i,r,s,o,l,a,u,c,p,d,f,h,m]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>r});var i=n(37539);function r(e,t,n,r,s,o,l=Math.floor(e.length/3)){const a=(0,i.jd)(t,s);if(null==a)return!1;if(a===i.pO){if(e===r&&n===o)return!0;const t=n+3*l;for(let i=n,s=o;i<t;i++,s++)r[s]=e[i];return!0}const u=n+3*l;for(let t=n,i=o;t<u;t+=3,i+=3)a(e,t,r,i);return!0}},10184:(e,t,n)=>{n.d(t,{A:()=>p});var i=n(31635),r=n(69540),s=n(25482),o=n(88930),l=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),u=n(64108),c=n(73133);let p=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,a.e)(c.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i.Cg)([(0,u.$)("esri.time.TimeInterval")],p)},10407:(e,t,n)=>{n.d(t,{It:()=>f,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,mm:()=>d,sQ:()=>p});var i=n(91218),r=n(16930),s=n(28735);function o(e,t){if(!l(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,d.HOSTED_SERVICE)}function u(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function c(e,t,n){n?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const n=r.A.WGS84;return await(0,i.initializeProjection)(t,n),(0,i.project)(e,n)}(n)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function f(e){const{portal:t,isOrgItem:n,itemControl:i}=e,r=t.user?.privileges;let s=!r||r.includes("features:user:edit"),o=!!n&&!!r?.includes("features:user:fullEdit");const l="update"===i||"admin"===i;return l?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:l}}}},13069:(e,t,n)=>{n.d(t,{AG:()=>l,lk:()=>r,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function r(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17036:(e,t,n)=>{n.d(t,{p:()=>a});var i=n(44208),r=n(53966),s=n(20437),o=n(95466),l=n(30524);function a(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");r.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const n=this.fieldsIndex?.has(t);n||r.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},18768:(e,t,n)=>{n.d(t,{b:()=>a});var i=n(31635),r=n(53966),s=n(10107),o=(n(44208),n(87811),n(64108)),l=n(60694);const a=e=>{const t=e;let n=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Jf)(e,r.A.getLogger(this)))}};return(0,i.Cg)([(0,s.MZ)()],n.prototype,"title",null),(0,i.Cg)([(0,s.MZ)({type:String})],n.prototype,"url",null),n=(0,i.Cg)([(0,o.$)("esri.layers.mixins.ArcGISService")],n),n}},32730:(e,t,n)=>{n.d(t,{BI:()=>y,D3:()=>h,XJ:()=>m,lc:()=>f,mX:()=>v,rU:()=>g,tH:()=>T});var i=n(799);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+r,"i"),u=new RegExp(s+"$","i"),c='"',p=c+" + ",d=" + "+c;function f(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=f(e.labelExpression),t.type="conventional"),t}function y(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(w);return t?.[1].trim()||null}(t.expression);case"arcade":return T(t.expression)}return null}function v(e){let t;return e?(t=(0,i.HC)(e,e=>r+'$feature["'+e+'"]'+s),t=a.test(t)?t.replace(a,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(o,p).replaceAll(l,d)):t='""',t}const w=/^\s*\{([^}]+)\}\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,I=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function T(e){if(!e)return null;let t=b.exec(e)||I.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}},37539:(e,t,n)=>{n.d(t,{pO:()=>m,jd:()=>d,Tp:()=>f,w5:()=>p});var i=n(34727),r=n(83047),s=n(73941),o=n(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=n(21325);const p={2:{5:m,7:null,9:null,10:m,1:T,6:null,8:null,0:null,3:g,11:v,2:m,4:F},5:{5:m,7:null,9:null,10:m,1:T,6:null,8:null,0:null,3:g,11:v,2:m,4:F},7:{5:null,7:m,9:null,10:m,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:I,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(e,t,n,i){const r=e[t]/R,s=E-2*Math.atan(Math.exp(-e[t+1]/R)),o=R+e[t+2],l=Math.cos(s)*o;n[i]=Math.cos(r)*l,n[i+1]=Math.sin(r)*l,n[i+2]=Math.sin(s)*o},6:null,8:null,0:null,3:m,11:function(e,t,n,i){y(e,t,n,i),v(n,i,n,i)},2:y,4:function(e,t,n,i){y(e,t,n,i),F(n,i,n,i)}},4:{5:C,7:null,9:null,10:C,1:function(e,t,n,i){C(e,t,n,i),T(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){C(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){C(e,t,n,i),v(n,i,n,i)},2:C,4:m},1:{5:A,7:null,9:null,10:A,1:m,6:null,8:null,0:null,3:function(e,t,n,i){A(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){A(e,t,n,i),v(n,i,n,i)},2:A,4:function(e,t,n,i){A(e,t,n,i),F(n,i,n,i)}},6:{5:null,7:S,9:null,10:S,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:_,10:_,1:null,6:null,8:m,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:T,6:M,8:I,0:null,3:g,11:v,2:m,4:F},11:{5:w,7:null,9:null,10:w,1:function(e,t,n,i){w(e,t,n,i),T(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){w(e,t,n,i),g(n,i,n,i)},11:m,2:w,4:function(e,t,n,i){w(e,t,n,i),F(n,i,n,i)}}};function d(e,t){return f(e,t)?.projector}function f(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const n=h(e,j.source),i=h(t,j.dest);return 0===n&&0===i?(0,c.aI)(e,t)?j.projector=m:j.projector=null:j.projector=p[n][i],j}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t])}function y(e,t,n,i){n[i]=Z*(e[t]/R),n[i+1]=Z*(E-2*Math.atan(Math.exp(-e[t+1]/R))),n[i+2]=e[t+2]}function g(e,t,n,r){!function(e,t,n,r,s){const o=.4999999*Math.PI,l=(0,i.qE)(O*e[t+1],-o,o),a=Math.sin(l);n[r++]=O*e[t]*s.radius,n[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]}(e,t,n,r,o.$O)}function v(e,t,n,i){n[i]=e[t]*P,n[i+1]=e[t+1]*P,n[i+2]=e[t+2]}function w(e,t,n,i){n[i]=e[t]*N,n[i+1]=e[t+1]*N,n[i+2]=e[t+2]}function b(e,t,n,i,r){const s=r+e[t+2],o=O*e[t+1],l=O*e[t],a=Math.cos(o)*s;n[i]=Math.cos(l)*a,n[i+1]=Math.sin(l)*a,n[i+2]=Math.sin(o)*s}function I(e,t,n,i){b(e,t,n,i,o.Sw.radius)}function M(e,t,n,i){b(e,t,n,i,o.sH.radius)}function T(e,t,n,i){b(e,t,n,i,o.$O.radius)}function x(e,t,n,r,s){const o=e[t],l=e[t+1],a=e[t+2],u=Math.sqrt(o*o+l*l+a*a),c=(0,i.YN)(a/(0===u?1:u)),p=Math.atan2(l,o);n[r++]=Z*p,n[r++]=Z*c,n[r]=u-s}function _(e,t,n,i){x(e,t,n,i,o.Sw.radius)}function S(e,t,n,i){x(e,t,n,i,o.sH.radius)}function A(e,t,n,i){x(e,t,n,i,o.$O.radius)}function F(e,t,n,i){!function(e,t,n,i,r){const s=O*e[t],o=O*e[t+1],l=e[t+2],a=Math.sin(o),u=Math.cos(o),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[i++]=(c+l)*u*Math.cos(s),n[i++]=(c+l)*u*Math.sin(s),n[i++]=(c*(1-r.eccentricitySquared)+l)*a}(e,t,n,i,o.$O)}function C(e,t,n,i){const r=u,s=e[t],l=e[t+1],a=e[t+2];let c,p,d,f,h,m,y,g,v,w,b,I,M,T,x,_,S,A,F,C,j;c=Math.abs(a),p=s*s+l*l,d=Math.sqrt(p),f=p+a*a,h=Math.sqrt(f),C=Math.atan2(l,s),m=a*a/f,y=p/f,T=r.a2/h,x=r.a3-r.a4/h,y>.3?(g=c/h*(1+y*(r.a1+T+m*x)/h),F=Math.asin(g),w=g*g,v=Math.sqrt(1-w)):(v=d/h*(1-m*(r.a5-T-y*x)/h),F=Math.acos(v),w=1-v*v,g=Math.sqrt(w)),b=1-o.$O.eccentricitySquared*w,I=o.$O.radius/Math.sqrt(b),M=r.a6*I,T=d-I*v,x=c-M*g,S=v*T+g*x,_=v*x-g*T,A=_/(M/b+S),F+=A,j=S+_*A/2,a<0&&(F=-F),n[i++]=Z*C,n[i++]=Z*F,n[i]=j}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},O=(0,i.kU)(1),Z=(0,i.KJ)(1),E=.5*Math.PI,R=o.$O.radius,P=R*Math.PI/180,N=180/(R*Math.PI)},41366:(e,t,n)=>{n.d(t,{K:()=>d,Q:()=>u});var i=n(31635),r=n(66552),s=n(53966),o=n(10107),l=(n(44208),n(87811),n(93223)),a=n(64108);const u=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),c="percent-of-total",p="field",d=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&p||n&&c||null,t&&n&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==p&&e!==c||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(u,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,i.Cg)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],n),n}},41560:(e,t,n)=>{n.d(t,{Ch:()=>o,mW:()=>s});var i=n(34727),r=n(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,n){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:i}of e.filters)t[0]=Math.max(t[0],c(n)),t[1]=Math.min(t[1],p(i));return t}(e);if(s&&((0,i.gg)(t,s[0])||(0,i.ZH)(n,s[1])))return"";const o=Array.from(l(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const r=c(e.at(0)?.minScale),s=p(e.at(-1)?.maxScale);if((0,i.ZH)(r,t)||(0,i.gg)(s,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];if((0,i.ZH)(c(r.minScale),p(n.maxScale)))return!0}return!1}(o,t,n)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,r.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,n){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)a(i.minScale,i.maxScale,t,n)&&(yield i)}}function a(e,t,n,r){return e=c(e),n=c(n),t=p(t),!(!(0,i.Sp)(n,e)&&(r??n)>e||(0,i.Hx)(t,n)||void 0!==r&&(0,i.Sp)(r,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},46140:(e,t,n)=>{n.d(t,{R:()=>r});var i=n(49186);let r=class e{constructor(e,t,n=""){this.major=e,this.minor=t,this._context=n}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",n=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${n}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,n=""){const[r,s]=t.split("."),o=/^\s*\d+\s*$/;if(!r?.match||!o.test(r))throw new i.A((n&&n+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!s?.match||!o.test(s))throw new i.A((n&&n+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const l=parseInt(r,10),a=parseInt(s,10);return new e(l,a,n)}}},50498:(e,t,n)=>{n.d(t,{Ye:()=>p,gy:()=>c,yR:()=>d});var i=n(66552),r=n(5443),s=n(91075),o=n(48526),l=n(86738),a=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,n)=>{n.d(t,{A:()=>M});var i,r=n(31635),s=n(37838),o=n(69540),l=n(51447),a=n(25482),u=n(53966),c=n(36708),p=n(24326),d=n(10107),f=(n(44208),n(87811),n(64108)),h=n(12195),m=n(65864),y=n(50498),g=n(55156),v=n(60950),w=n(54339),b=n(33910);function I(e){if(null==e)return null;const t={};for(const n in e){const i=e[n];i&&(t[n]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let M=class extends((0,o.OU)(a.o)){static{i=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:I(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(r.action=i),"attributes"===e&&(r.attributeName=i),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,r.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const i=(0,m.rS)(e[n]);i&&(t[n]=i)}return 0!==Object.keys(t).length?t:null}}})],M.prototype,"aggregateGeometries",null),(0,r.Cg)([(0,d.MZ)({value:null})],M.prototype,"attributes",null),(0,r.Cg)([(0,d.MZ)({value:null,types:y.yR,json:{read:m.rS}})],M.prototype,"geometry",null),(0,r.Cg)([(0,d.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,r.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,r.Cg)([(0,d.MZ)({type:s.A,value:null})],M.prototype,"popupTemplate",null),(0,r.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,r.Cg)([(0,d.MZ)({value:null,types:b.Es})],M.prototype,"symbol",null),(0,r.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=i=(0,r.Cg)([(0,f.$)("esri.Graphic")],M)},54339:(e,t,n)=>{function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const i of t.fieldNames)n.push(e.attributes[i]??null);return JSON.stringify(n)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>i,r:()=>r})},55156:(e,t,n)=>{n.d(t,{I:()=>r,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&i in t?e[i]:void 0;var t}},55674:(e,t,n)=>{n.d(t,{Ad:()=>f,Gj:()=>y,QY:()=>d,lL:()=>g,xR:()=>h});var i=n(66131),r=n(49186),s=(n(44208),n(44729)),o=n(15032),l=n(65864),a=n(95466),u=n(43668),c=n(98623);const p=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const n of p)t.hasArcadeDependency(n)&&e.add(n);return e}function f(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,n){return m.create(e,t,n,["$feature","$view","$config"])}class m{static async create(e,t,n,i){const{arcade:s,Dictionary:o}=await(0,u.l)();let l;try{l=s.parseScript(e)}catch(t){throw new r.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const a=s.scriptUsesGeometryEngine(l);a&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,l,null,!1,a);const c={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=s.compileScript(l,c);let d=null;null!=n&&(d=new o(n),d.immutable=!0);const f=new o;return f.immutable=!1,f.setField("scale",0),new m(e,s,l,p,t,f,d,o)}constructor(e,t,n,i,r,s,o,l){this.script=e,this._arcade=t,this._syntaxTree=n,this._compiled=i,this._spatialReference=r,this._viewDict=s,this._configDict=o,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const n=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:r,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=r?null!=n?i.lY.epochToArcadeDate(r,n):i.lY.unknownEpochToArcadeDate(r):void 0,currentEnd:null!=s?null!=n?i.lY.epochToArcadeDate(s,n):i.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:n})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,n){const i=t??new a.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=n}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const n=this._getField(e);if(n){const t=this._boundTarget.attributes[n.name];if(null==t)return null;switch(n.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const n in e)t.push({name:n,alias:n,type:"string"==typeof e[n]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},62815:(e,t,n)=>{n.d(t,{N:()=>o});var i=n(83047),r=n(73941),s=n(21325);function o(e,t,n){if(null==t||null==n||n.vcsWkid||(0,s.aI)(t,n)||(0,r.xP)(t)||(0,r.xP)(n))return null;const o=(0,i.G9)(t)/(0,i.G9)(n);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},63396:(e,t,n)=>{n.d(t,{d:()=>T});var i=n(31635),r=n(10107),s=(n(44208),n(53966),n(87811),n(64108)),o=n(60950),l=n(99959);class a extends l.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}}var u=n(37838),c=n(69540),p=n(25482),d=n(93637),f=n(43937),h=n(50820),m=n(10873),y=n(46499),g=n(41214);let v=class extends((0,c.OU)(p.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,r.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,r.MZ)(m.kF)],v.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,r.MZ)({types:g.Hg,json:{write:!0}})],v.prototype,"renderer",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{write:!0}})],v.prototype,"visible",void 0),v=(0,i.Cg)([(0,s.$)("esri.layers.support.TrackPartInfo")],v);var w=n(96576),b=n(59868),I=n(10184);let M=class extends((0,c.OU)(p.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new v({renderer:new w.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new v({renderer:new w.A({symbol:b.UK.clone()})}),this.trackLines=new v({renderer:new w.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,n){const i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,d.sM)(n,i,t)}};(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"enabled",void 0),(0,i.Cg)([(0,r.MZ)({type:[h.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,f.K)("fields")],M.prototype,"writeFields",null),(0,i.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"latestObservations",void 0),(0,i.Cg)([(0,r.MZ)({type:I.A,json:{write:!0}})],M.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,r.MZ)({type:Number,json:{write:!0}})],M.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,r.MZ)(m.M6)],M.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,r.MZ)({type:u.A,json:{name:"popupInfo",write:!0}})],M.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"previousObservations",void 0),(0,i.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"trackLines",void 0),(0,i.Cg)([(0,r.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],M.prototype,"timeField",void 0),M=(0,i.Cg)([(0,s.$)("esri.layers.support.TrackInfo")],M);const T=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,i.Cg)([(0,r.MZ)({readOnly:!0,clonable:!1})],n.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,r.MZ)({type:M})],n.prototype,"trackInfo",void 0),n=(0,i.Cg)([(0,s.$)("esri.layers.mixins.TrackableLayer")],n),n}},69208:(e,t,n)=>{n.d(t,{d:()=>o});var i=n(31635),r=n(10107),s=(n(44208),n(53966),n(87811),n(64108));const o=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],n.prototype,"customParameters",void 0),n=(0,i.Cg)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],n),n}},70328:(e,t,n)=>{n.d(t,{BI:()=>w,DC:()=>p,Ej:()=>f,Ie:()=>g,Jt:()=>v,Ne:()=>h,RF:()=>c,aI:()=>I,fA:()=>o,gE:()=>a,hZ:()=>y,iT:()=>d,is:()=>b,qv:()=>M,vI:()=>m,vY:()=>l,v_:()=>T,vt:()=>s,w1:()=>u});var i=n(5443),r=(n(19419),n(4197));function s(e=T){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,i,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l}function l(e,t=s()){return function(e,t,n,i=s()){return y(i,M),function(e,t,n=0,i=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)r=Math.min(r,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),l=Math.max(l,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(i,e,t,n),i}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[n,i,s,o,l,a]=e;return t[0]=n,t[1]=i,t[2]=s,t[3]=n,t[4]=i,t[5]=a,t[6]=n,t[7]=l,t[8]=s,t[9]=n,t[10]=l,t[11]=a,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new i.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function m(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?y(e,M):s(M)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function w(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function b(e){return 6===e.length}function I(e,t,n){if(null==e||null==t)return e===t;if(!b(e)||!b(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],T=[0,0,0,0,0,0];s()},72691:(e,t,n)=>{n.d(t,{Aw:()=>o,DN:()=>i,EA:()=>s,Gm:()=>r,xq:()=>l});const i="__esri_stream_id__",r="__esri_timestamp__",s="__esri_track_part__",o="__esri_time_received__",l="__esri_track_line__"},73133:(e,t,n)=>{n.d(t,{j:()=>i});const i=(0,n(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73681:(e,t,n)=>{n.d(t,{n:()=>a});var i=n(49186),r=n(53966),s=n(46140),o=n(95466),l=n(55674);class a{static async from(e,t,n){const o=e.dictionary_version?s.R.parse(e.dictionary_version):null,c=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(n))d.delete(e);d.size&&r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const f=await(0,l.xR)(e.expression,null,p);if(!f)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const m=new u(n,h);return new a(h,c,f,m)}constructor(e,t,n,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=n,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,n,i){try{return this._reader.bind(e,n,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},79457:(e,t,n)=>{n.r(t),n.d(t,{default:()=>oe});var i=n(31635),r=n(37838),s=n(78888),o=n(69540),l=n(49186),a=n(36563),u=n(4718),c=n(53966),p=n(25728),d=n(74887),f=n(10107),h=n(56507),m=n(36005),y=n(64108),g=n(5443),v=n(16930),w=n(50498),b=n(55156),I=n(60950),M=n(89808),T=n(99959);const x=Symbol("isStreamGraphicOrigin");var _;class S extends T.A{get[(_=x,I.ym)](){return this.layer}get[b.e](){return this.layer}get[M.Q](){return this.layer}constructor(e){super(),this[_]=!0,this.type="stream",this.layer=e}get id(){return this.layer.id}}var A,F=n(4146),C=n(18768),j=n(63074),O=n(69208),Z=n(6455),E=n(87718),R=n(56658),P=n(16131),N=n(8303),D=n(54310),L=n(25036),k=n(82935),U=n(63396),$=n(10873),G=n(15426),z=n(20437),q=n(17036),V=n(30524),J=n(46499),B=n(39383),Y=n(25482);n(44208),n(87811);let H=class extends Y.o{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}static{A=this}clone(){return new A({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"age",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"ageReceived",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"displayCount",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"maxObservations",void 0),H=A=(0,i.Cg)([(0,y.$)("esri.layers.support.PurgeOptions")],H);var K=n(72691),W=n(65494),Q=n(8947),X=n(41214),ee=n(61956),te=n(30291),ne=n(88625);const ie=(0,q.p)();function re(e,t){return new l.A("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}let se=class extends((0,Z.FJ)((0,R.J)((0,E.F)((0,j.dM)((0,k.e)((0,U.d)((0,L.j)((0,D.J)((0,C.b)((0,P.q)((0,N.A)((0,p.P)((0,O.d)((0,o.OU)(F.A))))))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.graphicOrigin=new S(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.outFields=["*"],this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new H,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=v.A.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,i)=>{const{save:r,saveAs:s}=await n.e(7301).then(n.bind(n,87301));switch(e){case 0:return r(this,t);case 1:return s(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new l.A("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,V.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,n){t=t.layerDefinition||t;const i=t.drawingInfo?.renderer;if(i){const e=(0,W.L)(i,t,n)||void 0;return e||c.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:n}),e}return(0,G.PD)(t,n)}async connect(e){const[{createConnection:t}]=await Promise.all([n.e(624).then(n.bind(n,30624)),this.load()]),i=this.geometryType?w.gy.toJSON(this.geometryType):null,{customParameters:r=null,definitionExpression:s=null,geometryDefinition:o=null,maxReconnectionAttempts:l=0,maxReconnectionInterval:u=20,spatialReference:c=this.spatialReference}=e||this.createConnectionParameters(),p=t(this.parsedUrl,this.spatialReference,c,i,s,o,l,u,r??void 0),d=(0,a.vE)([this.on("send-message-to-socket",e=>p.sendMessageToSocket(e)),this.on("send-message-to-client",e=>p.sendMessageToClient(e))]);return p.once("destroy",d.remove),p}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,te.tn)(this,e)}createQuery(){const e=new ee.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let n=null;return this.fields.some(t=>(t.name===e&&(n=t.domain),!!n)),n}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){const n=t?.messages;return this.webSocketUrl?(n?.push(re(this,"using a custom websocket connection cannot be written to web scenes and web maps")),null):this.parsedUrl?super.write(e,t):(n?.push(re(this,"using a client-side only connection without a url cannot be written to web scenes and web maps")),null)}async _fetchService(e){if(!this.webSocketUrl&&this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,s.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new l.A("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField){const e=this.fields.find(e=>"oid"===e.type)?.name;if(!e)throw new l.A("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");this.objectIdField=e}if(!this.fields)throw new l.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields.some(e=>e.name===this.objectIdField)||this.fields.push(new z.A({name:this.objectIdField,alias:this.objectIdField,type:"oid"})),!this.geometryType)throw new l.A("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.webSocketUrl&&(this.url=this.webSocketUrl)}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,V.yp)(this.renderer,this.fieldsIndex),(0,V.sv)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField=K.DN),(0,Q.L)(this,{origin:"service"})}};(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"copyright",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],se.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],se.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"displayField",void 0),(0,i.Cg)([(0,f.MZ)({type:ne.A})],se.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,f.MZ)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],se.prototype,"featureReduction",null),(0,i.Cg)([(0,f.MZ)(ie.fields)],se.prototype,"fields",void 0),(0,i.Cg)([(0,f.MZ)(ie.fieldsIndex)],se.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,f.MZ)({type:g.A,json:{name:"layerDefinition.definitionGeometry",write:!0}})],se.prototype,"geometryDefinition",void 0),(0,i.Cg)([(0,f.MZ)({type:w.gy.apiValues,json:{read:{reader:w.gy.read}}})],se.prototype,"geometryType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],se.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,f.MZ)($.kF)],se.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,f.MZ)({type:[J.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:B.w},write:!0}})],se.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,f.MZ)($.fV)],se.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],se.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)({type:h.jz})],se.prototype,"maxReconnectionAttempts",void 0),(0,i.Cg)([(0,f.MZ)({type:h.jz})],se.prototype,"maxReconnectionInterval",void 0),(0,i.Cg)([(0,f.MZ)($.hG)],se.prototype,"maxScale",void 0),(0,i.Cg)([(0,f.MZ)($.hn)],se.prototype,"minScale",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"objectIdField",void 0),(0,i.Cg)([(0,f.MZ)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],se.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],se.prototype,"outFields",void 0),(0,i.Cg)([(0,f.MZ)($.M6)],se.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:r.A,json:{name:"popupInfo",write:!0}})],se.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({type:H})],se.prototype,"purgeOptions",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1,write:!1}})],se.prototype,"refreshInterval",void 0),(0,i.Cg)([(0,f.MZ)({types:X.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:X.XJ,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],se.prototype,"renderer",null),(0,i.Cg)([(0,m.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,m.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],se.prototype,"readRenderer",null),(0,i.Cg)([(0,f.MZ)((()=>{const e=(0,u.o8)($.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],se.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,f.MZ)()],se.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,f.MZ)({type:v.A,json:{origins:{service:{read:{source:"spatialReference"}}}}})],se.prototype,"spatialReference",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],se.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)($.OZ)],se.prototype,"url",void 0),(0,i.Cg)([(0,f.MZ)({type:Number})],se.prototype,"updateInterval",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1,write:!1}})],se.prototype,"useViewTime",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"webSocketUrl",void 0),se=(0,i.Cg)([(0,y.$)("esri.layers.StreamLayer")],se);const oe=se},82935:(e,t,n)=>{n.d(t,{B:()=>f,e:()=>h});var i=n(31635),r=n(10107),s=(n(44208),n(53966),n(87811),n(36005)),o=n(64108),l=n(89317),a=n(30524),u=n(96184),c=n(73133),p=n(79677),d=n(10184);const f={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:l.K}}},h=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const i=n.timeOffset,r=c.j.fromJSON(n.timeOffsetUnits);return i&&r?new d.A({value:i,unit:r}):null}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,r.MZ)({type:p.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,i.Cg)([(0,r.MZ)({type:d.A})],n.prototype,"timeOffset",void 0),(0,i.Cg)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,i.Cg)([(0,r.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,i.Cg)([(0,r.MZ)(f)],n.prototype,"useViewTime",void 0),n=(0,i.Cg)([(0,o.$)("esri.layers.mixins.TemporalLayer")],n),n}},83960:(e,t,n)=>{n.d(t,{X_:()=>o,oW:()=>a,zx:()=>l});var i=n(34727),r=n(83047);const s=96;function o(e,t){const n=t||e.extent,i=e.width,o=(0,r.GA)(n?.spatialReference);return n&&i?n.width/i*o*r.dy*s:0}function l(e,t,n){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,n)}function a(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},91218:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>q,initializeProjection:()=>J,isEqualBaseGCS:()=>V,isLoaded:()=>j,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>Z,load:()=>R,project:()=>P,projectExtent:()=>ne,projectMany:()=>N,projectMultipoint:()=>K,projectOrLoad:()=>D,projectOrLoadMany:()=>L,projectPoint:()=>Y,projectPolygon:()=>ee,projectPolyline:()=>Q,projectWithZConversion:()=>z,projectWithoutEngine:()=>B,requiresLoad:()=>E,test:()=>$,tryProjectWithZConversion:()=>G,unload:()=>U});var i=n(49186),r=n(74887),s=n(62788),o=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(91075),d=n(48526),f=n(86738),h=n(39829),m=n(82799),y=n(16930),g=n(159),v=n(9762),w=n(37539);function b(e,t,n,i,r,s){return I[0]=e,I[1]=t,I[2]=n,(0,v.projectBuffer)(I,i,0,r,s,0)}const I=(0,l.vt)();var M=n(21325),T=n(62815);let x=null,_=null,S=null,A=null,F={};const C=new o.I;function j(){return!!(_?.isLoaded()&&S?.isLoaded()&&A?.isLoaded())}function O(){return!!j()||((0,s.gc)(C),R(),!1)}function Z(e,t){return!e||!t||q(e,t)||O()}function E(e,t){return!q(e,t)&&!j()}async function R(e){null==x&&(x=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(_=e,_.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(S=e,S.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(A=e,A.load()))])),await x,(0,r.Te)(e),C.notify()}function P(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),N(e,e[0].spatialReference,t,n)):((0,a.f)(e),N([e],e.spatialReference,t,n)[0])}function N(e,t,n,i){if(null==t||null==n)return e;if(q(t,n,i))return e.map(e=>B(e,t,n));if(null==i?.geographicTransformation&&(0,u.jA)(t))return e.map(e=>B(e,t,y.A.WGS84)).map(e=>G(e,n));if(null==i?.geographicTransformation&&(0,u.jA)(n))return e.map(e=>G(e,y.A.WGS84)).map(e=>B(e,y.A.WGS84,n));if(!j())throw new k;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:A.getTransformation(t,n,i.areaOfInterestExtent)||new g.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=F[e];r||(r=A.getTransformation(t,n)||new g.A,F[e]=r),i={geographicTransformation:r}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?_.executeMany(e,n,i):S.executeMany(e,n,i)}function D(e,t){const n=L([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function L(e,t){if(!j())for(const n of e)if(null!=n&&!(0,M.aI)(n.spatialReference,t)&&(0,M.fn)(n.spatialReference)&&(0,M.fn)(t)&&!q(n.spatialReference,t))return(0,s.gc)(C),{pending:R(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,M.aI)(e.spatialReference,t)?e:(0,M.fn)(e.spatialReference)&&(0,M.fn)(t)?G(e,t):null)}}class k extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){x=null,_=null,S=null,A=null,F={}}const $={get loadPromise(){return x}};function G(e,t){try{const n=P(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const i=(0,T.N)(n.type,e.spatialReference,t);return null!=i&&i(n),n}catch(e){if(!(e instanceof k))throw e;return null}}async function z(e,t,n){const i=e.spatialReference;return null!=i&&null!=t&&await J(i,t,null,n),G(e,t)}function q(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,M.aI)(e,t)||(0,M.fn)(e)&&(0,M.fn)(t)&&!!(0,w.jd)(e,t))}function V(e,t){if((0,M.aI)(e,t))return!0;if(!(0,M.fn)(e)||!(0,M.fn)(t))return!1;const n=(0,M.oT)(e)||(0,M.K8)(e)||(0,M.x1)(e),i=(0,M.oT)(t)||(0,M.K8)(t)||(0,M.x1)(t);return n&&i}async function J(e,t,n,i){if(j())return(0,r.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!q(t,n,r))return R(i)}else if(e&&t&&!q(e,t,n))return R(i);return(0,r.NO)(i)}function B(e,t,n){return e?"x"in e?H(e,t,new f.A,n,0):"xmin"in e?ie(e,t,new c.A,n,0):"rings"in e?te(e,t,new h.A,n,0):"paths"in e?X(e,t,new m.A,n,0):"points"in e?W(e,t,new d.A,n,0):null:null}function Y(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,n,i)}function H(e,t,n,i,r){se[0]=e.x,se[1]=e.y;const s=e.z;return se[2]=void 0!==s?s:r,(0,v.projectBuffer)(se,t,0,se,i,0)?(n.x=se[0],n.y=se[1],n.spatialReference=i,void 0!==s||(0,u.xP)(i)?(n.z=se[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function K(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=W(e,e.spatialReference,t,n,i)}function W(e,t,n,i,r){const{points:s,hasZ:o,hasM:l}=e,a=[],c=s.length,p=[];for(const e of s)p.push(e[0],e[1],o?e[2]:r);if(!(0,v.projectBuffer)(p,t,0,p,i,0,c))return null;const d=o||(0,u.xP)(i);for(let e=0;e<c;++e){const t=3*e,n=p[t],i=p[t+1];d&&l?a.push([n,i,p[t+2],s[e][3]]):d?a.push([n,i,p[t+2]]):l?a.push([n,i,s[e][2]]):a.push([n,i])}return n.points=a,n.spatialReference=i,n.hasZ=o,n.hasM=l,n}function Q(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=X(e,e.spatialReference,t,n,i)}function X(e,t,n,i,r){const{paths:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.paths=a,n.spatialReference=i,n.hasZ=c,n.hasM=l,n}function ee(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,i)}function te(e,t,n,i,r){const{rings:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.rings=a,n.spatialReference=i,n.hasZ=c,n.hasM=l,n}function ne(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,i)}function ie(e,t,n,i,r){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:p}=e;if(!b(s,o,c?e.zmin:r,t,se,i))return null;const d=c||(0,u.xP)(i);return n.xmin=se[0],n.ymin=se[1],d&&(n.zmin=se[2]),b(l,a,c?e.zmax:r,t,se,i)?(n.xmax=se[0],n.ymax=se[1],d&&(n.zmax=se[2]),p&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function re(e,t,n,i,r,s,o=0){const l=new Array;for(const n of e)for(const e of n)l.push(e[0],e[1],t?e[2]:o);if(!(0,v.projectBuffer)(l,i,0,l,s,0))return!1;let a=0;r.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const i of t)c&&n?e.push([l[a++],l[a++],l[a++],i[3]]):c?e.push([l[a++],l[a++],l[a++]]):n?(e.push([l[a++],l[a++],i[2]]),a++):(e.push([l[a++],l[a++]]),a++);r.push(e)}return!0}const se=(0,l.vt)()},95466:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(49186),r=n(53966),s=n(91869),o=n(3330),l=n(12195),a=n(30524),u=n(98623),c=n(56400),p=n(28097);const d=new Map;class f{static fromJSON(e){return new f(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new f(e.fields??[],g(e))}static fromLayerJSON(e){return new f(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,i=m(t);if(t&&i){const r=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):y.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function m(e){return(0,a.rS)(e)?.toLowerCase()??""}const y=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.dateFieldsTimeReference?(0,c.ZS)(r.dateFieldsTimeReference):l??u.n$:null,p=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,c.ZS)(i.timeReference):l:null,d=new Map([[h(r?.creationDateField??""),a],[h(r?.editDateField??""),a],[h(s),p],[h(o),p]]);for(const{name:i,type:r}of e.fields)if(y.has(r))t.set(i,u.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,u.L5);else{const e=d.get(h(i??""))??l;t.set(i,e)}return t}},96184:(e,t,n)=>{n.d(t,{A:()=>h});var i=n(31635),r=n(69540),s=n(25482),o=n(10107),l=(n(44208),n(53966),n(87811),n(36005)),a=n(64108),u=n(43937),c=n(79677),p=n(10184),d=n(56400);function f(e,t){return p.A.fromJSON({value:e,unit:t})}let h=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?c.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?f(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?f(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,l.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,u.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,u.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,d.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,a.$)("esri.layers.support.TimeInfo")],h)},99157:(e,t,n)=>{n.d(t,{A:()=>a});var i,r=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108));let a=i=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=i=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],a)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9695],{13069:(t,e,r)=>{r.d(e,{AG:()=>a,lk:()=>s,vD:()=>i,yS:()=>o});const n="randomUUID"in crypto;function s(){if(n)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function o(){return`{${s().toUpperCase()}}`}function i(){return`{${s()}}`}function a(t){const e=t.toUpperCase();return t.startsWith("{")?e:`{${e}}`}},49695:(t,e,r)=>{r.r(e),r.d(e,{default:()=>P});var n=r(31635),s=r(79608),o=r(29133),i=r(69622),a=r(69540),l=r(25482),p=r(97768),u=r(10107),c=(r(44208),r(53966),r(87811),r(64108)),g=r(87024),y=r(86738),d=r(88625);let f=class extends((0,l.T)((0,a.OU)(i.A))){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,p.CM)(this.position,t.position)&&(0,p.CM)(this.elevationInfo,t.elevationInfo)&&(0,o.xH)(this.feature,t.feature)}};(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:{isRequired:!0}}})],f.prototype,"position",void 0),(0,n.Cg)([(0,u.MZ)({type:d.A}),(0,g.P)()],f.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,u.MZ)(o.N1)],f.prototype,"feature",void 0),f=(0,n.Cg)([(0,c.$)("esri.analysis.LineOfSightAnalysisObserver")],f);const h=f;let v=class extends((0,l.T)(a.Pw)){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,p.CM)(this.position,t.position)&&(0,p.CM)(this.elevationInfo,t.elevationInfo)&&(0,o.xH)(this.feature,t.feature)}};(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,g.P)()],v.prototype,"position",void 0),(0,n.Cg)([(0,u.MZ)({type:d.A}),(0,g.P)()],v.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,u.MZ)(o.N1)],v.prototype,"feature",void 0),v=(0,n.Cg)([(0,c.$)("esri.analysis.LineOfSightAnalysisTarget")],v);var m=r(4576),w=r(7762),b=r(62885),C=r(36708),x=r(91218),A=r(70328),j=r(56776);const M=w.A.ofType(v);let R=class extends s.A{constructor(t){super(t),this.type="line-of-sight",this.observer=null,this.extent=null}initialize(){this.addHandles((0,C.wB)(()=>this._computeExtent(),t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)},C.pc))}get targets(){return this._get("targets")||new M}set targets(t){this._set("targets",(0,b.V)(t,this.targets,M))}get spatialReference(){return null!=this.observer?.position?this.observer.position.spatialReference:null}get valid(){return null!=this.observer?.position}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==this.observer?.position||null==t)return null;const e=t=>"absolute-height"===(0,j.w7)(t.position,t.elevationInfo),r=this.observer.position,n=(0,A.fA)(r.x,r.y,r.z,r.x,r.y,r.z);for(const e of this.targets)if(null!=e.position){const r=(0,x.projectOrLoad)(e.position,t);if(null!=r.pending)return{pending:r.pending,extent:null};if(null!=r.geometry){const{x:t,y:e,z:s}=r.geometry;(0,A.iT)(n,[t,e,s])}}const s=(0,A.w1)(n,t);return e(this.observer)&&this.targets.every(e)||(s.zmin=void 0,s.zmax=void 0),{pending:null,extent:s}}clear(){this.observer=null,this.targets.removeAll()}equals(t){return this===t||super.equals(t)&&(0,p.CM)(this.observer,t.observer)&&(0,m.aI)(this.targets.toArray(),t.targets.toArray(),(t,e)=>t.equals(e))}};(0,n.Cg)([(0,u.MZ)({type:["line-of-sight"]})],R.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:h,json:{read:!0,write:!0}})],R.prototype,"observer",void 0),(0,n.Cg)([(0,u.MZ)({cast:b.H,type:M,nonNullable:!0,json:{read:!0,write:!0}})],R.prototype,"targets",null),(0,n.Cg)([(0,u.MZ)({value:null,readOnly:!0})],R.prototype,"extent",void 0),(0,n.Cg)([(0,u.MZ)()],R.prototype,"spatialReference",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],R.prototype,"valid",null),R=(0,n.Cg)([(0,c.$)("esri.analysis.LineOfSightAnalysis")],R);var I=r(92071),O=r(4146),Z=r(16131);const U=w.A.ofType(v);let S=class extends((0,Z.q)((0,I.P)(O.A))){constructor(t){super(t),this.type="line-of-sight",this.operationalLayerType="LineOfSightLayer",this.analysis=new R,this.opacity=1}initialize(){this.addHandles((0,C.wB)(()=>this.analysis,(t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)},C.pc))}async load(){return null!=this.analysis&&this.addResolvingPromise(this.analysis.waitComputeExtent()),this}get observer(){return this.analysis?.observer}set observer(t){const{analysis:e}=this;e&&(e.observer=t)}get targets(){return null!=this.analysis?this.analysis.targets:new w.A}set targets(t){(0,b.V)(t,this.analysis?.targets)}get fullExtent(){return null!=this.analysis?this.analysis.extent:null}get spatialReference(){return null!=this.analysis?this.analysis.spatialReference:null}releaseAnalysis(t){this.analysis===t&&(this.analysis=new R)}};(0,n.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0})],S.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:["LineOfSightLayer"]})],S.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)({type:h,json:{read:!0,write:{isRequired:!0,ignoreOrigin:!0}}})],S.prototype,"observer",null),(0,n.Cg)([(0,u.MZ)({type:U,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],S.prototype,"targets",null),(0,n.Cg)([(0,u.MZ)({type:R,nonNullable:!0,json:{read:!1,write:!1}})],S.prototype,"analysis",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"fullExtent",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"spatialReference",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],S.prototype,"opacity",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],S.prototype,"listMode",void 0),S=(0,n.Cg)([(0,c.$)("esri.layers.LineOfSightLayer")],S);const P=S},76553:(t,e,r)=>{function n(t){return t&&"getAtOrigin"in t&&"originOf"in t}r.d(e,{H:()=>n})},80200:(t,e,r)=>{r.d(e,{T:()=>n,d:()=>f});const n={Base64:0,Hex:1,String:2,Raw:3},s=8,o=(1<<s)-1;function i(t,e){const r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function a(t){const e=[];for(let r=0,n=t.length*s;r<n;r+=s)e[r>>5]|=(t.charCodeAt(r/s)&o)<<r%32;return e}function l(t){const e=[];for(let r=0,n=32*t.length;r<n;r+=s)e.push(String.fromCharCode(t[r>>5]>>>r%32&o));return e.join("")}function p(t,e,r,n,s,o){return i(function(t,e){return t<<e|t>>>32-e}(i(i(e,t),i(n,o)),s),r)}function u(t,e,r,n,s,o,i){return p(e&r|~e&n,t,e,s,o,i)}function c(t,e,r,n,s,o,i){return p(e&n|r&~n,t,e,s,o,i)}function g(t,e,r,n,s,o,i){return p(e^r^n,t,e,s,o,i)}function y(t,e,r,n,s,o,i){return p(r^(e|~n),t,e,s,o,i)}function d(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let r=1732584193,n=-271733879,s=-1732584194,o=271733878;for(let e=0;e<t.length;e+=16){const a=r,l=n,p=s,d=o;r=u(r,n,s,o,t[e],7,-680876936),o=u(o,r,n,s,t[e+1],12,-389564586),s=u(s,o,r,n,t[e+2],17,606105819),n=u(n,s,o,r,t[e+3],22,-1044525330),r=u(r,n,s,o,t[e+4],7,-176418897),o=u(o,r,n,s,t[e+5],12,1200080426),s=u(s,o,r,n,t[e+6],17,-1473231341),n=u(n,s,o,r,t[e+7],22,-45705983),r=u(r,n,s,o,t[e+8],7,1770035416),o=u(o,r,n,s,t[e+9],12,-1958414417),s=u(s,o,r,n,t[e+10],17,-42063),n=u(n,s,o,r,t[e+11],22,-1990404162),r=u(r,n,s,o,t[e+12],7,1804603682),o=u(o,r,n,s,t[e+13],12,-40341101),s=u(s,o,r,n,t[e+14],17,-1502002290),n=u(n,s,o,r,t[e+15],22,1236535329),r=c(r,n,s,o,t[e+1],5,-165796510),o=c(o,r,n,s,t[e+6],9,-1069501632),s=c(s,o,r,n,t[e+11],14,643717713),n=c(n,s,o,r,t[e],20,-373897302),r=c(r,n,s,o,t[e+5],5,-701558691),o=c(o,r,n,s,t[e+10],9,38016083),s=c(s,o,r,n,t[e+15],14,-660478335),n=c(n,s,o,r,t[e+4],20,-405537848),r=c(r,n,s,o,t[e+9],5,568446438),o=c(o,r,n,s,t[e+14],9,-1019803690),s=c(s,o,r,n,t[e+3],14,-187363961),n=c(n,s,o,r,t[e+8],20,1163531501),r=c(r,n,s,o,t[e+13],5,-1444681467),o=c(o,r,n,s,t[e+2],9,-51403784),s=c(s,o,r,n,t[e+7],14,1735328473),n=c(n,s,o,r,t[e+12],20,-1926607734),r=g(r,n,s,o,t[e+5],4,-378558),o=g(o,r,n,s,t[e+8],11,-2022574463),s=g(s,o,r,n,t[e+11],16,1839030562),n=g(n,s,o,r,t[e+14],23,-35309556),r=g(r,n,s,o,t[e+1],4,-1530992060),o=g(o,r,n,s,t[e+4],11,1272893353),s=g(s,o,r,n,t[e+7],16,-155497632),n=g(n,s,o,r,t[e+10],23,-1094730640),r=g(r,n,s,o,t[e+13],4,681279174),o=g(o,r,n,s,t[e],11,-358537222),s=g(s,o,r,n,t[e+3],16,-722521979),n=g(n,s,o,r,t[e+6],23,76029189),r=g(r,n,s,o,t[e+9],4,-640364487),o=g(o,r,n,s,t[e+12],11,-421815835),s=g(s,o,r,n,t[e+15],16,530742520),n=g(n,s,o,r,t[e+2],23,-995338651),r=y(r,n,s,o,t[e],6,-198630844),o=y(o,r,n,s,t[e+7],10,1126891415),s=y(s,o,r,n,t[e+14],15,-1416354905),n=y(n,s,o,r,t[e+5],21,-57434055),r=y(r,n,s,o,t[e+12],6,1700485571),o=y(o,r,n,s,t[e+3],10,-1894986606),s=y(s,o,r,n,t[e+10],15,-1051523),n=y(n,s,o,r,t[e+1],21,-2054922799),r=y(r,n,s,o,t[e+8],6,1873313359),o=y(o,r,n,s,t[e+15],10,-30611744),s=y(s,o,r,n,t[e+6],15,-1560198380),n=y(n,s,o,r,t[e+13],21,1309151649),r=y(r,n,s,o,t[e+4],6,-145523070),o=y(o,r,n,s,t[e+11],10,-1120210379),s=y(s,o,r,n,t[e+2],15,718787259),n=y(n,s,o,r,t[e+9],21,-343485551),r=i(r,a),n=i(n,l),s=i(s,p),o=i(o,d)}return[r,n,s,o]}function f(t,e=n.Hex){const r=e||n.Base64,o=d(a(t),t.length*s);switch(r){case n.Raw:return o;case n.Hex:return function(t){const e="0123456789abcdef",r=[];for(let n=0,s=4*t.length;n<s;n++)r.push(e.charAt(t[n>>2]>>n%4*8+4&15)+e.charAt(t[n>>2]>>n%4*8&15));return r.join("")}(o);case n.String:return l(o);case n.Base64:return function(t){const e=[];for(let r=0,n=4*t.length;r<n;r+=3){const n=(t[r>>2]>>r%4*8&255)<<16|(t[r+1>>2]>>(r+1)%4*8&255)<<8|t[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-s)&63))}return e.join("")}(o)}}},85648:(t,e,r)=>{r.d(e,{n:()=>s});var n=r(84952);function s(t){return o[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,n.Zo)(t);return l[e]||i}(t.url)}(t)]||a}const o={},i="text/plain",a=o[i],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)o[l[t]]=t},87024:(t,e,r)=>{r.d(e,{P:()=>y});var n=r(49186),s=r(80200),o=r(76553),i=r(84952),a=r(13069),l=r(96156),p=r(35666),u=r(10107),c=r(85648),g=r(97159);function y(t){const e=t?.origins??[void 0];return(r,n)=>{const s=function(t,e,r){if("resource"===t?.type)return function(t,e,r){const n=(0,l.z4)(e,r);return{type:String,read:(t,e,r)=>{const s=(0,g.r)(t,e,r);return n.type===String?s:"function"==typeof n.type?new n.type({url:s}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(e,s,a,l){if(!l?.resources)return"string"==typeof e?void(s[a]=(0,g.t)(e,l)):void(s[a]=e.write({},l));const u=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),y=(0,g.t)(u,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),v=n.type!==String&&(!(0,o.H)(this)||l?.origin&&this.originIdOf(r)>(0,p.aB)(l.origin)),m={object:this,propertyName:r,value:e,targetUrl:y,dest:s,targetPropertyName:a,context:l,params:t};l?.portalItem&&y&&!(0,i.oP)(y)?v&&t?.contentAddressed?d(m):v?function(t){const{context:e,targetUrl:r,params:n,value:s,dest:o,targetPropertyName:a}=t;if(!e.portalItem)return;const l=e.portalItem.resourceFromPath(r),p=h(s,r,e),u=(0,c.n)(p),g=(0,i.Zo)(l.path),y=n?.compress??!1;u===g?(e.resources&&f({...t,resource:l,content:p,compress:y,updates:e.resources.toUpdate}),o[a]=r):d(t)}(m):function({context:t,targetUrl:e,dest:r,targetPropertyName:n}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),r[n]=e)}(m):l?.portalItem&&(null==y||null!=(0,g.i)(y)||(0,i.w8)(y)||v)?d(m):s[a]=y}}}}(t,e,r);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:e}=g.b;return{read:t,write:e}}}}(t,r,n);for(const t of e){const e=(0,u.rM)(r,t,n);for(const t in s)e[t]=s[t]}}}function d(t){const{targetUrl:e,params:r,value:o,context:l,dest:p,targetPropertyName:u}=t;if(!l.portalItem)return;const y=(0,g.p)(e),d=h(o,e,l);if(r?.contentAddressed&&"json"!==d.type)return void l.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${d.type} with content addressing. Content addressing is only supported for json resources.`,{content:d}));const v=r?.contentAddressed&&"json"===d.type?(0,s.d)(d.jsonString):y?.filename??(0,a.lk)(),m=(0,i.fj)(r?.prefix??y?.prefix,v),w=`${m}.${(0,c.n)(d)}`;if(r?.contentAddressed&&l.resources&&"json"===d.type){const t=l.resources.toKeep.find(({resource:t})=>t.path===w)??l.resources.toAdd.find(({resource:t})=>t.path===w);if(t)return void(p[u]=t.resource.itemRelativeUrl)}const b=l.portalItem.resourceFromPath(w);(0,i.w8)(e)&&l.resources&&l.resources.pendingOperations.push((0,i.tk)(e).then(t=>{b.path=`${m}.${(0,c.n)({type:"blob",blob:t})}`,p[u]=b.itemRelativeUrl}).catch(()=>{}));const C=r?.compress??!1;l.resources&&f({...t,resource:b,content:d,compress:C,updates:l.resources.toAdd}),p[u]=b.itemRelativeUrl}function f({object:t,propertyName:e,updates:r,resource:n,content:s,compress:o}){r.push({resource:n,content:s,compress:o,finish:r=>{!function(t,e,r){"string"==typeof t[e]?t[e]=r.url:t[e].url=r.url}(t,e,r)}})}function h(t,e,r){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(r))}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9695],{13069:(t,e,r)=>{r.d(e,{AG:()=>a,lk:()=>s,vD:()=>i,yS:()=>o});const n="randomUUID"in crypto;function s(){if(n)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function o(){return`{${s().toUpperCase()}}`}function i(){return`{${s()}}`}function a(t){const e=t.toUpperCase();return t.startsWith("{")?e:`{${e}}`}},49695:(t,e,r)=>{r.r(e),r.d(e,{default:()=>P});var n=r(31635),s=r(79608),o=r(29133),i=r(69622),a=r(69540),l=r(25482),p=r(97768),u=r(10107),c=(r(44208),r(53966),r(87811),r(64108)),g=r(87024),y=r(86738),d=r(88625);let f=class extends((0,l.T)((0,a.OU)(i.A))){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,p.CM)(this.position,t.position)&&(0,p.CM)(this.elevationInfo,t.elevationInfo)&&(0,o.xH)(this.feature,t.feature)}};(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:{isRequired:!0}}})],f.prototype,"position",void 0),(0,n.Cg)([(0,u.MZ)({type:d.A}),(0,g.P)()],f.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,u.MZ)(o.N1)],f.prototype,"feature",void 0),f=(0,n.Cg)([(0,c.$)("esri.analysis.LineOfSightAnalysisObserver")],f);const h=f;let v=class extends((0,l.T)(a.Pw)){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,p.CM)(this.position,t.position)&&(0,p.CM)(this.elevationInfo,t.elevationInfo)&&(0,o.xH)(this.feature,t.feature)}};(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,g.P)()],v.prototype,"position",void 0),(0,n.Cg)([(0,u.MZ)({type:d.A}),(0,g.P)()],v.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,u.MZ)(o.N1)],v.prototype,"feature",void 0),v=(0,n.Cg)([(0,c.$)("esri.analysis.LineOfSightAnalysisTarget")],v);var m=r(4576),w=r(7762),b=r(62885),C=r(36708),x=r(91218),A=r(70328),j=r(56776);const M=w.A.ofType(v);let R=class extends s.A{constructor(t){super(t),this.type="line-of-sight",this.observer=null,this.extent=null}initialize(){this.addHandles((0,C.wB)(()=>this._computeExtent(),t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)},C.pc))}get targets(){return this._get("targets")||new M}set targets(t){this._set("targets",(0,b.V)(t,this.targets,M))}get spatialReference(){return null!=this.observer?.position?this.observer.position.spatialReference:null}get valid(){return null!=this.observer?.position}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==this.observer?.position||null==t)return null;const e=t=>"absolute-height"===(0,j.w7)(t.position,t.elevationInfo),r=this.observer.position,n=(0,A.fA)(r.x,r.y,r.z,r.x,r.y,r.z);for(const e of this.targets)if(null!=e.position){const r=(0,x.projectOrLoad)(e.position,t);if(null!=r.pending)return{pending:r.pending,extent:null};if(null!=r.geometry){const{x:t,y:e,z:s}=r.geometry;(0,A.iT)(n,[t,e,s])}}const s=(0,A.w1)(n,t);return e(this.observer)&&this.targets.every(e)||(s.zmin=void 0,s.zmax=void 0),{pending:null,extent:s}}clear(){this.observer=null,this.targets.removeAll()}equals(t){return this===t||super.equals(t)&&(0,p.CM)(this.observer,t.observer)&&(0,m.aI)(this.targets.toArray(),t.targets.toArray(),(t,e)=>t.equals(e))}};(0,n.Cg)([(0,u.MZ)({type:["line-of-sight"]})],R.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:h,json:{read:!0,write:!0}})],R.prototype,"observer",void 0),(0,n.Cg)([(0,u.MZ)({cast:b.H,type:M,nonNullable:!0,json:{read:!0,write:!0}})],R.prototype,"targets",null),(0,n.Cg)([(0,u.MZ)({value:null,readOnly:!0})],R.prototype,"extent",void 0),(0,n.Cg)([(0,u.MZ)()],R.prototype,"spatialReference",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],R.prototype,"valid",null),R=(0,n.Cg)([(0,c.$)("esri.analysis.LineOfSightAnalysis")],R);var I=r(25728),O=r(4146),Z=r(16131);const U=w.A.ofType(v);let S=class extends((0,Z.q)((0,I.P)(O.A))){constructor(t){super(t),this.type="line-of-sight",this.operationalLayerType="LineOfSightLayer",this.analysis=new R,this.opacity=1}initialize(){this.addHandles((0,C.wB)(()=>this.analysis,(t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)},C.pc))}async load(){return null!=this.analysis&&this.addResolvingPromise(this.analysis.waitComputeExtent()),this}get observer(){return this.analysis?.observer}set observer(t){const{analysis:e}=this;e&&(e.observer=t)}get targets(){return null!=this.analysis?this.analysis.targets:new w.A}set targets(t){(0,b.V)(t,this.analysis?.targets)}get fullExtent(){return null!=this.analysis?this.analysis.extent:null}get spatialReference(){return null!=this.analysis?this.analysis.spatialReference:null}releaseAnalysis(t){this.analysis===t&&(this.analysis=new R)}};(0,n.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0})],S.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:["LineOfSightLayer"]})],S.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)({type:h,json:{read:!0,write:{isRequired:!0,ignoreOrigin:!0}}})],S.prototype,"observer",null),(0,n.Cg)([(0,u.MZ)({type:U,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],S.prototype,"targets",null),(0,n.Cg)([(0,u.MZ)({type:R,nonNullable:!0,json:{read:!1,write:!1}})],S.prototype,"analysis",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"fullExtent",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"spatialReference",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],S.prototype,"opacity",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],S.prototype,"listMode",void 0),S=(0,n.Cg)([(0,c.$)("esri.layers.LineOfSightLayer")],S);const P=S},76553:(t,e,r)=>{function n(t){return t&&"getAtOrigin"in t&&"originOf"in t}r.d(e,{H:()=>n})},80200:(t,e,r)=>{r.d(e,{T:()=>n,d:()=>f});const n={Base64:0,Hex:1,String:2,Raw:3},s=8,o=(1<<s)-1;function i(t,e){const r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function a(t){const e=[];for(let r=0,n=t.length*s;r<n;r+=s)e[r>>5]|=(t.charCodeAt(r/s)&o)<<r%32;return e}function l(t){const e=[];for(let r=0,n=32*t.length;r<n;r+=s)e.push(String.fromCharCode(t[r>>5]>>>r%32&o));return e.join("")}function p(t,e,r,n,s,o){return i(function(t,e){return t<<e|t>>>32-e}(i(i(e,t),i(n,o)),s),r)}function u(t,e,r,n,s,o,i){return p(e&r|~e&n,t,e,s,o,i)}function c(t,e,r,n,s,o,i){return p(e&n|r&~n,t,e,s,o,i)}function g(t,e,r,n,s,o,i){return p(e^r^n,t,e,s,o,i)}function y(t,e,r,n,s,o,i){return p(r^(e|~n),t,e,s,o,i)}function d(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let r=1732584193,n=-271733879,s=-1732584194,o=271733878;for(let e=0;e<t.length;e+=16){const a=r,l=n,p=s,d=o;r=u(r,n,s,o,t[e],7,-680876936),o=u(o,r,n,s,t[e+1],12,-389564586),s=u(s,o,r,n,t[e+2],17,606105819),n=u(n,s,o,r,t[e+3],22,-1044525330),r=u(r,n,s,o,t[e+4],7,-176418897),o=u(o,r,n,s,t[e+5],12,1200080426),s=u(s,o,r,n,t[e+6],17,-1473231341),n=u(n,s,o,r,t[e+7],22,-45705983),r=u(r,n,s,o,t[e+8],7,1770035416),o=u(o,r,n,s,t[e+9],12,-1958414417),s=u(s,o,r,n,t[e+10],17,-42063),n=u(n,s,o,r,t[e+11],22,-1990404162),r=u(r,n,s,o,t[e+12],7,1804603682),o=u(o,r,n,s,t[e+13],12,-40341101),s=u(s,o,r,n,t[e+14],17,-1502002290),n=u(n,s,o,r,t[e+15],22,1236535329),r=c(r,n,s,o,t[e+1],5,-165796510),o=c(o,r,n,s,t[e+6],9,-1069501632),s=c(s,o,r,n,t[e+11],14,643717713),n=c(n,s,o,r,t[e],20,-373897302),r=c(r,n,s,o,t[e+5],5,-701558691),o=c(o,r,n,s,t[e+10],9,38016083),s=c(s,o,r,n,t[e+15],14,-660478335),n=c(n,s,o,r,t[e+4],20,-405537848),r=c(r,n,s,o,t[e+9],5,568446438),o=c(o,r,n,s,t[e+14],9,-1019803690),s=c(s,o,r,n,t[e+3],14,-187363961),n=c(n,s,o,r,t[e+8],20,1163531501),r=c(r,n,s,o,t[e+13],5,-1444681467),o=c(o,r,n,s,t[e+2],9,-51403784),s=c(s,o,r,n,t[e+7],14,1735328473),n=c(n,s,o,r,t[e+12],20,-1926607734),r=g(r,n,s,o,t[e+5],4,-378558),o=g(o,r,n,s,t[e+8],11,-2022574463),s=g(s,o,r,n,t[e+11],16,1839030562),n=g(n,s,o,r,t[e+14],23,-35309556),r=g(r,n,s,o,t[e+1],4,-1530992060),o=g(o,r,n,s,t[e+4],11,1272893353),s=g(s,o,r,n,t[e+7],16,-155497632),n=g(n,s,o,r,t[e+10],23,-1094730640),r=g(r,n,s,o,t[e+13],4,681279174),o=g(o,r,n,s,t[e],11,-358537222),s=g(s,o,r,n,t[e+3],16,-722521979),n=g(n,s,o,r,t[e+6],23,76029189),r=g(r,n,s,o,t[e+9],4,-640364487),o=g(o,r,n,s,t[e+12],11,-421815835),s=g(s,o,r,n,t[e+15],16,530742520),n=g(n,s,o,r,t[e+2],23,-995338651),r=y(r,n,s,o,t[e],6,-198630844),o=y(o,r,n,s,t[e+7],10,1126891415),s=y(s,o,r,n,t[e+14],15,-1416354905),n=y(n,s,o,r,t[e+5],21,-57434055),r=y(r,n,s,o,t[e+12],6,1700485571),o=y(o,r,n,s,t[e+3],10,-1894986606),s=y(s,o,r,n,t[e+10],15,-1051523),n=y(n,s,o,r,t[e+1],21,-2054922799),r=y(r,n,s,o,t[e+8],6,1873313359),o=y(o,r,n,s,t[e+15],10,-30611744),s=y(s,o,r,n,t[e+6],15,-1560198380),n=y(n,s,o,r,t[e+13],21,1309151649),r=y(r,n,s,o,t[e+4],6,-145523070),o=y(o,r,n,s,t[e+11],10,-1120210379),s=y(s,o,r,n,t[e+2],15,718787259),n=y(n,s,o,r,t[e+9],21,-343485551),r=i(r,a),n=i(n,l),s=i(s,p),o=i(o,d)}return[r,n,s,o]}function f(t,e=n.Hex){const r=e||n.Base64,o=d(a(t),t.length*s);switch(r){case n.Raw:return o;case n.Hex:return function(t){const e="0123456789abcdef",r=[];for(let n=0,s=4*t.length;n<s;n++)r.push(e.charAt(t[n>>2]>>n%4*8+4&15)+e.charAt(t[n>>2]>>n%4*8&15));return r.join("")}(o);case n.String:return l(o);case n.Base64:return function(t){const e=[];for(let r=0,n=4*t.length;r<n;r+=3){const n=(t[r>>2]>>r%4*8&255)<<16|(t[r+1>>2]>>(r+1)%4*8&255)<<8|t[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-s)&63))}return e.join("")}(o)}}},85648:(t,e,r)=>{r.d(e,{n:()=>s});var n=r(84952);function s(t){return o[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,n.Zo)(t);return l[e]||i}(t.url)}(t)]||a}const o={},i="text/plain",a=o[i],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)o[l[t]]=t},87024:(t,e,r)=>{r.d(e,{P:()=>y});var n=r(49186),s=r(80200),o=r(76553),i=r(84952),a=r(13069),l=r(96156),p=r(35666),u=r(10107),c=r(85648),g=r(97159);function y(t){const e=t?.origins??[void 0];return(r,n)=>{const s=function(t,e,r){if("resource"===t?.type)return function(t,e,r){const n=(0,l.z4)(e,r);return{type:String,read:(t,e,r)=>{const s=(0,g.r)(t,e,r);return n.type===String?s:"function"==typeof n.type?new n.type({url:s}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(e,s,a,l){if(!l?.resources)return"string"==typeof e?void(s[a]=(0,g.t)(e,l)):void(s[a]=e.write({},l));const u=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),y=(0,g.t)(u,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),v=n.type!==String&&(!(0,o.H)(this)||l?.origin&&this.originIdOf(r)>(0,p.aB)(l.origin)),m={object:this,propertyName:r,value:e,targetUrl:y,dest:s,targetPropertyName:a,context:l,params:t};l?.portalItem&&y&&!(0,i.oP)(y)?v&&t?.contentAddressed?d(m):v?function(t){const{context:e,targetUrl:r,params:n,value:s,dest:o,targetPropertyName:a}=t;if(!e.portalItem)return;const l=e.portalItem.resourceFromPath(r),p=h(s,r,e),u=(0,c.n)(p),g=(0,i.Zo)(l.path),y=n?.compress??!1;u===g?(e.resources&&f({...t,resource:l,content:p,compress:y,updates:e.resources.toUpdate}),o[a]=r):d(t)}(m):function({context:t,targetUrl:e,dest:r,targetPropertyName:n}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),r[n]=e)}(m):l?.portalItem&&(null==y||null!=(0,g.i)(y)||(0,i.w8)(y)||v)?d(m):s[a]=y}}}}(t,e,r);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:e}=g.b;return{read:t,write:e}}}}(t,r,n);for(const t of e){const e=(0,u.rM)(r,t,n);for(const t in s)e[t]=s[t]}}}function d(t){const{targetUrl:e,params:r,value:o,context:l,dest:p,targetPropertyName:u}=t;if(!l.portalItem)return;const y=(0,g.p)(e),d=h(o,e,l);if(r?.contentAddressed&&"json"!==d.type)return void l.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${d.type} with content addressing. Content addressing is only supported for json resources.`,{content:d}));const v=r?.contentAddressed&&"json"===d.type?(0,s.d)(d.jsonString):y?.filename??(0,a.lk)(),m=(0,i.fj)(r?.prefix??y?.prefix,v),w=`${m}.${(0,c.n)(d)}`;if(r?.contentAddressed&&l.resources&&"json"===d.type){const t=l.resources.toKeep.find(({resource:t})=>t.path===w)??l.resources.toAdd.find(({resource:t})=>t.path===w);if(t)return void(p[u]=t.resource.itemRelativeUrl)}const b=l.portalItem.resourceFromPath(w);(0,i.w8)(e)&&l.resources&&l.resources.pendingOperations.push((0,i.tk)(e).then(t=>{b.path=`${m}.${(0,c.n)({type:"blob",blob:t})}`,p[u]=b.itemRelativeUrl}).catch(()=>{}));const C=r?.compress??!1;l.resources&&f({...t,resource:b,content:d,compress:C,updates:l.resources.toAdd}),p[u]=b.itemRelativeUrl}function f({object:t,propertyName:e,updates:r,resource:n,content:s,compress:o}){r.push({resource:n,content:s,compress:o,finish:r=>{!function(t,e,r){"string"==typeof t[e]?t[e]=r.url:t[e].url=r.url}(t,e,r)}})}function h(t,e,r){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(r))}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2741],{926:(e,t,r)=>{r.d(t,{CG:()=>a,Dd:()=>i,Jn:()=>l,Qc:()=>c});var s=r(92602),n=r(84952);const o=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]);function a(e){if(!c(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),r=s.A.apiKeys;if(Array.isArray(r.scopes))for(const e of r.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return r.basemapStyles&&/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i.test(e)?r.basemapStyles:s.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?s.A.apiKey:null}function i(){return null!=s.A.apiKey||null!=s.A.apiKeys.basemapStyles}function l(e,t){return t?c(e):null!=a(e)}function c(e){const t=(0,n.$z)(e,!0);return!!t&&!o.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},2741:(e,t,r)=>{r.d(t,{s:()=>i});var s=r(92602),n=(r(78888),r(49186)),o=r(53966),a=r(84952);function i(e){if(!s.A.assetsPath)throw o.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,a.fj)(s.A.assetsPath,e)}},56058:(e,t,r)=>{r.d(t,{$x:()=>w,Sx:()=>l,c8:()=>p,gS:()=>g,m3:()=>m,ql:()=>d,tz:()=>f,xW:()=>h});var s=r(92602),n=r(74887),o=r(84952),a=r(60694),i=r(39131);function l(e,t,r=!1,s){return new Promise((o,a)=>{if((0,n.G4)(s))return void a(c());let i=()=>{d(),a(new Error(`Unable to load ${t}`))},l=async()=>{const t=e;try{await t.decode()}catch{}d(),o(t)},u=()=>{if(!e)return;const t=e;d(),t.src="",a(c())};const d=()=>{e&&(e.removeEventListener("error",i),e.removeEventListener("load",l),i=null,l=null,e=null,s?.removeEventListener("abort",u),u=null,r&&URL.revokeObjectURL(t))};s?.addEventListener("abort",u),e.addEventListener("error",i),e.addEventListener("load",l)})}function c(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const u="Timeout exceeded";function d(){return new Error(u)}function p(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===u}function f(e){s.A.request.crossOriginNoCorsDomains||(s.A.request.crossOriginNoCorsDomains={});const t=s.A.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,o.$z)(r)??""]=0:(t[(0,o.$z)("http://"+r)??""]=0,t[(0,o.$z)("https://"+r)??""]=0)}function h(e){const t=s.A.request.crossOriginNoCorsDomains;if(t){let r=(0,o.$z)(e);if(r)return r=r.toLowerCase(),!(0,o.FX)(r,(0,o.Xq)())&&t[r]<Date.now()-36e5}return!1}async function m(e){const t=(0,o.An)(e);e=t.path,"json"===t.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}const r=s.A.request.crossOriginNoCorsDomains,n=(0,o.$z)(e);r&&n&&(r[n.toLowerCase()]=Date.now())}const y=new Map;function g(e,t){const r=t?.preferredHost;if(!r||(0,o.FX)(e,`https://${r}`,!0))return;const s=(0,a.qg)(e);if(!s||"FeatureServer"!==s.serverType||(0,i.$E)(e))return;const n=s.url.path.toLowerCase();y.has(n)||y.set(n,r)}function w(e){const t=(0,a.qg)(e)?.url.path.toLowerCase();if(!t)return e;const r=y.get(t);return r?(0,o.hf)(e,r):e}},60694:(e,t,r)=>{r.d(t,{Fi:()=>u,HZ:()=>w,Jf:()=>g,LS:()=>v,Wo:()=>y,bd:()=>b,cr:()=>f,iz:()=>p,qg:()=>d,yG:()=>h});var s=r(84952),n=r(97159);const o={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},a=Object.values(o),i=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),l=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^/\\n]+)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function u(e){return i.test(e)}function d(e){if(null==e)return null;const t=(0,s.An)(e),r=t?.path.match(i)||t?.path.match(l);if(!r)return null;const[,n,a,c,u]=r,d=a.indexOf("/");return{title:f(-1!==d?a.slice(d+1):a),serverType:o[c.toLowerCase()],sublayer:null!=u&&""!==u?parseInt(u,10):null,url:{path:n}}}function p(e){const t=(0,s.An)(e).path.match(c);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function f(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function h(e,t){const r=[];if(e){const t=d(e);null!=t&&t.title&&r.push(t.title)}if(t){const e=f(t);r.push(e)}if(2===r.length){if(r[0].toLowerCase().includes(r[1].toLowerCase()))return r[0];if(r[1].toLowerCase().includes(r[0].toLowerCase()))return r[1]}return r.join(" - ")}const m=["services","features","tiles","elevation3d"];function y(e){let t=(0,s.$z)(e,!0);return!!t&&(t=t.toLowerCase(),!!t.endsWith(".arcgis.com")&&(!!m.some(e=>t.startsWith(e))||/^[a-z\d-]+\.svcs[a-z\d-]*\./.test(t)))}function g(e,t){return e?(0,s.UC)((0,s.zi)(e,t)):e}function w(e){let{url:t}=e;if(!t)return{url:t};t=(0,s.zi)(t,e.logger);const r=(0,s.An)(t),n=d(r.path);let o;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(o=n.sublayer),t=n.url.path;else if(e.nonStandardUrlAllowed){const e=p(r.path);null!=e&&(t=e.serviceUrl,o=e.sublayerId)}return{url:(0,s.UC)(t),layerId:o}}function v(e,t,r,o,a){(0,n.w)(t,o,"url",a),o.url&&null!=e.layerId&&(o.url=(0,s.fj)(o.url,r,e.layerId.toString()))}function b(e){if(!e)return!1;const t=e.toLowerCase(),r=t.includes("/services/"),s=t.includes("/mapserver/wmsserver"),n=t.includes("/imageserver/wmsserver"),o=t.includes("/wmsserver");return r&&(s||n||o)}},78888:(e,t,r)=>{r.d(t,{A:()=>m});var s=r(92602),n=r(70333),o=r(49186),a=r(44208),i=r(4718),l=r(91869),c=r(74887),u=r(84952),d=r(60694),p=r(39131),f=r(926),h=r(56058);async function m(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,u.zf)(t.query.toString().replaceAll("+"," ")));const s=(0,u.DB)(e),n=(0,u.w8)(e);n||s||(e=(0,u.S8)(e));const o={url:e,requestOptions:{...t}},i=e=>({data:e,getAllHeaders:C,getHeader:C,httpStatus:200,requestOptions:o.requestOptions,url:o.url}),p=(0,u.sC)(e,w.internalInterceptors);if(p){const e=await E(p,o);if(null!=e)return i(e)}let f=(0,u.sC)(e);if(f){const e=await E(f,o);if(null!=e)return i(e);f.after||f.error||(f=null)}if(e=o.url,"image"===(t=o.requestOptions).responseType&&((0,a.A)("host-webworker")||(0,a.A)("host-node")))throw O("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),o);if("head"===t.method){if(t.body)throw O("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),o);if(s||n)throw O("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),o)}if(await async function(){(0,a.A)("host-webworker")&&(!y&&globalThis.invokeStaticMessage?y=await r.e(369).then(r.bind(r,40369)):g=!0)}(),y)return y.execute(e,t);const h=new AbortController,m=(0,c.u7)(t,()=>h.abort()),v={controller:h,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:f,params:o,redoRequest:!1,useIdentity:w.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},b=t.useRequestQueue?async function(e){const t=function(e){let t,r;return"string"==typeof e?(t=(0,u.$z)(e,!0),r=(0,d.Wo)(e)):(t=e.origin,r=(0,d.Wo)(e.toString())),null==t?null:{origin:t,isHosted:r}}(e.params.url);if(!t)return $(e);const{QueueProcessor:s}=await r.e(563).then(r.bind(r,563)),n=(0,l.tE)(P,t.origin,()=>{const e=t.isHosted?(0,a.A)("request-queue-concurrency-hosted"):(0,a.A)("request-queue-concurrency-non-hosted");return new s({concurrency:e,process:e=>{if((0,c.G4)(e.params.requestOptions))throw O("",(0,c.NK)("Request canceled"),e.params);return $(e)}})});return n.push(e)}(v):$(v),q=await b.finally(()=>m?.remove());return f?.after?.(q),q}let y,g=!1;const w=s.A.request,v="FormData"in globalThis,b=new Set([499,498,403,401]),q=new Set(["COM_0056","COM_0057","SB_0008"]),S=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],C=()=>null,A=Symbol();function x(e){const t=(0,u.$z)(e);return!t||t.endsWith(".arcgis.com")||m._corsServers.includes(t)||(0,u.FL)(t)}function O(e,t,r,s){let n;const a={url:r.url,requestOptions:r.requestOptions,getAllHeaders:C,getHeader:C,ssl:!1};if(t instanceof o.A)return t.details?(t.details=(0,i.o8)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=a,t;if(t){const e=s&&(()=>Array.from(s.headers)),r=s&&(e=>s.headers.get(e)),o=s?.status,i=t.message;i&&(n=i),e&&r&&(a.getAllHeaders=e,a.getHeader=r),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||o||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?(a.messages=[t.details],n??=t.details):(a.messages=t.details,n??=a.messages?.[0]),a.raw=A in t?t[A]:t}return n??="Error",(0,c.zf)(t)?(0,c.NK)():new o.A(e,n,a)}async function T(){n.id||await Promise.all([r.e(7330),r.e(7603),r.e(168),r.e(4684),r.e(5482),r.e(3747),r.e(2507)]).then(r.bind(r,73747))}function k(e){return S.some(t=>t.test(e))}async function L(e){let t=e.params.url,r=(0,h.$x)(t);const s=e.params.requestOptions,o=e.fetchOptions??{},i=(0,u.w8)(t)||(0,u.DB)(t),l=s.responseType||"json",d=i?0:null!=s.timeout?s.timeout:w.timeout;let f=!1;if(!i){e.useSSL&&(t=(0,u.lM)(t));let i={...s.query};e.credentialToken&&(i.token=e.credentialToken);let l=(0,u.x0)(i);(0,a.A)("esri-url-encodes-apostrophe")&&(l=l.replaceAll("'","%27"));const c=r.length+1+l.length;let d;f="delete"===s.method||"post"===s.method||"put"===s.method||!!s.body||c>w.maxUrlLength;const m=s.useProxy||!!(0,u.zs)(t);if(m){const e=(0,u.s_)(t);d=e.path,!f&&d.length+1+c>w.maxUrlLength&&(f=!0),e.query&&(i={...e.query,...i})}if("HEAD"===o.method&&(f||m)){if(f){if(c>w.maxUrlLength)throw O("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw O("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(m)throw O("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(f?(o.method="delete"===s.method?"DELETE":"put"===s.method?"PUT":"POST",s.body?t=(0,u.a6)(t,i):(o.body=(0,u.x0)(i),o.headers||(o.headers={}),o.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.a6)(t,i),m&&(e.useProxy=!0,t=`${d}?${t}`),i.token&&v&&o.body instanceof FormData&&!(0,p.$E)(t)&&o.body.set("token",i.token),s.hasOwnProperty("withCredentials"))e.withCredentials=s.withCredentials;else if(!(0,u.FX)(t,(0,u.Xq)()))if((0,u.FL)(t))e.withCredentials=!0;else if(n.id){const r=n.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(o.credentials="include",(0,h.xW)(t)&&await(0,h.m3)(f?(0,u.a6)(t,i):t)),r=(0,h.$x)(t)}let y,g,b=0,q=!1;d>0&&(b=setTimeout(()=>{q=!0,e.controller.abort()},d));try{if("native-request-init"===s.responseType)g=o,g.url=r,s.signal?g.signal=s.signal:delete g.signal;else if("image"!==s.responseType||"default"!==o.cache||o.keepalive||"GET"!==o.method||f||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(s.headers)||!i&&!e.useProxy&&w.proxyUrl&&!x(t)){if(await(m._beforeFetch?.(t,o)),y=await fetch(r,o),await(m._afterFetch?.(y)),e.useProxy||function(e){const t=(0,u.$z)(e);t&&!m._corsServers.includes(t)&&m._corsServers.push(t)}(t),"native"===s.responseType)g=y;else if("HEAD"!==o.method)if(y.ok){switch(l){case"array-buffer":g=await y.arrayBuffer();break;case"blob":case"image":g=await y.blob();break;default:g=await y.text()}if(b&&(clearTimeout(b),b=0),"json"===l||"xml"===l||"document"===l)if(g)switch(l){case"json":g=JSON.parse(g);break;case"xml":g=U(g,"application/xml");break;case"document":g=U(g,"text/html")}else g=null;if(g){if("array-buffer"===l||"blob"===l){const e=y.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&g["blob"===l?"size":"byteLength"]<=750)try{const e=await new Response(g).json();e.error&&(g=e)}catch{}}"image"===l&&g instanceof Blob&&(g=await R(URL.createObjectURL(g),e,!0))}}else{g=await y.text();try{g=JSON.parse(g)}catch{}}}else g=await R(r,e)}catch(r){if("AbortError"===r.name){if(q)throw(0,h.ql)();throw(0,c.NK)("Request canceled")}if(!(!y&&r instanceof TypeError&&w.proxyUrl)||s.body||"delete"===s.method||"head"===s.method||"post"===s.method||"put"===s.method||e.useProxy||x(t))throw r;e.redoRequest=!0,(0,u.oy)({proxyUrl:w.proxyUrl,urlPrefix:(0,u.$z)(t)??""})}finally{b&&clearTimeout(b)}return[y,g]}async function E(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,s;try{s=await e.before(t)}catch(e){r=O("request:interceptor",e,t)}if((s instanceof Error||s instanceof o.A)&&(r=O("request:interceptor",s,t)),r)throw e.error&&e.error(r),r;return s}}function U(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}m._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],m._beforeFetch=void 0,m._afterFetch=void 0;const P=new Map;async function $(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,o=r.body;let a=null,i=null;if(v&&"HTMLFormElement"in globalThis&&(o instanceof FormData?a=o:o instanceof HTMLFormElement&&(a=new FormData(o))),"string"==typeof o&&(i=o),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},keepalive:r.keepAlive??!1,method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:w.priority,redirect:"follow",signal:s},(a||i)&&(e.fetchOptions.body=a||i),(g||"anonymous"===r.authMode)&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken){const s=(0,f.CG)(t);s&&(r.query??={},r.query.token=s,e.hasToken=!0)}if(e.useIdentity&&!e.hasToken&&!e.credential&&!e.credentialToken&&!k(t)&&!(0,c.G4)(s)){let o;"immediate"===r.authMode?(await T(),o=await n.id.getCredential(t,{signal:s})):"no-prompt"===r.authMode?(await T(),o=await n.id.getCredential(t,{prompt:!1,signal:s}).catch(()=>{})):n.id&&(o=n.id.findCredential(t)),o&&(e.credential=o,e.credentialToken=o.token,e.useSSL=!!o.ssl)}}(e);try{do{[t,r]=await L(e)}while(!await I(e,t,r))}catch(r){const s=O("request:server",r,e.params,t);throw s.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(s),s}const s=e.params.url;if(r)if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,u.FL)(s)){const e=(0,u.$z)(s,!0);e&&w.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,h.tz)(r.authorizedCrossOriginNoCorsDomains)}else"json"===(e.params.requestOptions.responseType||"json")&&(0,h.gS)(s,r);const o=e.credential;if(o&&n.id){const e=n.id.findServerInfo(o.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=n.id.findCredential(t,o.userId);e&&-1===n.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):C,getHeader:t?e=>t.headers.get(e):C,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}async function I(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const s=e.params.requestOptions;if(!t||"native"===s.responseType||"native-request-init"===s.responseType)return!0;let o,a;if(r&&(r.error&&"object"==typeof r.error?o=r.error:"error"===r.status&&Array.isArray(r.messages)&&(o={...r},o[A]=r,o.details=r.messages)),!o&&!t.ok)throw o=new Error(`Unable to load ${t.url} status: ${t.status}`),o[A]=r,o;let i,l=null;o&&(a=Number(o.code),l=o.hasOwnProperty("subcode")?Number(o.subcode):null,i=o.messageCode,i=i?.toUpperCase());const c=s.authMode;if(403===a&&(4===l||o.message?.toLowerCase().includes("ssl")&&!o.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==c||498===a)&&void 0!==a&&b.has(a)&&!k(e.params.url)&&(403!==a||(!i||!q.has(i))&&(null==l||2===l&&e.credentialToken))){await T();try{const t=await n.id.getCredential(e.params.url,{error:O("request:server",o,e.params),credential:e.credential,prompt:"no-prompt"!==c,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"===c)return e.credential=void 0,e.credentialToken=void 0,!1;o=t}}if(o)throw o;return!0}function R(e,t,r=!1){const s=t.controller.signal,n=new Image;return t.withCredentials?n.crossOrigin="use-credentials":n.crossOrigin="anonymous",n.alt="",n.fetchPriority=w.priority,n.src=e,(0,h.Sx)(n,e,r,s)}},91869:(e,t,r)=>{function s(e,t){for(const r of e.values())if(t(r))return!0;return!1}function n(e,t,r){const s=e.get(t);if(void 0!==s)return s;const n=r();return e.set(t,n),n}function o(e){const t=new Map;return r=>(t.has(r)||t.set(r,e(r)),t.get(r))}r.d(t,{Bj:()=>o,Bs:()=>s,tE:()=>n})},97159:(e,t,r)=>{r.d(t,{a:()=>y,b:()=>w,e:()=>h,f:()=>a,i:()=>p,p:()=>f,r:()=>l,t:()=>i,w:()=>c});var s=r(70333),n=r(84952),o=r(39131);function a(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,n.s2)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,n.V1)(e,t.portalItem.itemUrl);null!=r&&r.startsWith(d)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return(e=m(e,t?.portal))&&u.test(e)?y(e):e}function i(e,t,r=0){if(null==(e=e&&u.test(e)?g(e):e))return e;!(0,n.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let s=(0,n.s2)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const o=m(r,t.portal),a=m(s,t.portal);s=(0,n.V1)(a,o,o),null!=s&&s!==a&&s!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=h(s,t?.portal),(0,n.oP)(s)&&(s=(0,n.S8)(s)),t?.resources&&t?.portalItem&&!(0,n.oP)(s)&&!(0,n.DB)(s)&&0===r&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(s),compress:!1}),s}function l(e,t,r){return a(e,r)}function c(e,t,r,s){const n=i(e,s);void 0!==n&&(t[r]=n)}const u=/\/items\/([^/]+)\/resources\/(.*)/,d="./resources/";function p(e){const t=e?.match(u)??null;return t?.[1]??null}function f(e){const t=e?.match(u)??null;if(null==t)return null;const r=t[2],s=r.lastIndexOf("/");if(-1===s){const{path:e,extension:t}=(0,n.xw)(r);return{prefix:null,filename:e,extension:t}}const{path:o,extension:a}=(0,n.xw)(r.slice(s+1));return{prefix:r.slice(0,s),filename:o,extension:a}}function h(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,n.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function m(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,s=(0,n.Xq)();return(0,n.FX)(s,`${s.scheme}://${r}`)?(0,n.T1)(e,t.portalHostname,r):(0,n.T1)(e,r,t.portalHostname)}function y(e){if(!e)return e||null;let t=e;return t&&s.id&&!s.id.findCredential(t)&&(t=(0,o.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function g(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&s.id&&!s.id.findCredential(t)&&(t=(0,o.qG)(t)),t}const w=Object.freeze(Object.defineProperty({__proto__:null,ensureMainOnlineDomain:h,fromCDNUrl:g,fromJSON:a,itemIdFromResourceUrl:p,prefixAndFilenameFromResourceUrl:f,read:l,toCDNUrl:y,toJSON:i,write:c},Symbol.toStringTag,{value:"Module"}))}}]);
|