@arcgis/core 4.24.0-next.20220329 → 4.24.0-next.20220401
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/PopupTemplate.js +1 -1
- package/WebMap.js +1 -1
- package/WebScene.js +1 -1
- package/analysis/LineOfSightAnalysisObserver.js +1 -1
- package/analysis/LineOfSightAnalysisTarget.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/arcade/featureset/support/RecentlyUsedCache.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/functions/convertdirection.js +1 -1
- package/arcade/lib/character.js +1 -1
- package/arcade/lib/scanner.js +1 -1
- package/arcade/lib/tokenizer.js +1 -1
- package/arcade/request.js +1 -1
- package/arcade/treeAnalysis.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0bfedb1dbdff8205e468.js +1 -0
- package/assets/esri/core/workers/chunks/{5e472c89a38d6a42b84d.js → 0e29250c24a3a7b1ce13.js} +1 -1
- package/assets/esri/core/workers/chunks/0eb9c9477d36cd212f8b.js +1 -0
- package/assets/esri/core/workers/chunks/10779a256841c37f2429.js +1 -0
- package/assets/esri/core/workers/chunks/10a119889d1ab13402a3.js +1 -0
- package/assets/esri/core/workers/chunks/125b14c2ccd96d7c20c2.js +1 -0
- package/assets/esri/core/workers/chunks/23ec33a30db201e8b2c3.js +1 -0
- package/assets/esri/core/workers/chunks/2530e8ccf6e12787ce76.js +1 -0
- package/assets/esri/core/workers/chunks/2d9e97ba5b50aec4dd01.js +1 -0
- package/assets/esri/core/workers/chunks/365dc146398420f13f82.js +1 -0
- package/assets/esri/core/workers/chunks/3ae2827e8d55d6713d20.js +1 -0
- package/assets/esri/core/workers/chunks/3e3eebaa0844742db2f2.js +1 -0
- package/assets/esri/core/workers/chunks/3fd5b2d6eccd9098d492.js +1 -0
- package/assets/esri/core/workers/chunks/404f1d7bce014c7e6965.js +1 -0
- package/assets/esri/core/workers/chunks/411b7777bb5e943c156f.js +1 -0
- package/assets/esri/core/workers/chunks/{12ca192a5233bb2875d0.js → 4312902ab6e42fbe119b.js} +1 -1
- package/assets/esri/core/workers/chunks/{4ef07f50da39f8607c1c.js → 44e95e87bd9e820aeb53.js} +1 -1
- package/assets/esri/core/workers/chunks/{4d4c5e535d8b9ceb865a.js → 4810edf605838d07e5c5.js} +1 -1
- package/assets/esri/core/workers/chunks/4bce446391176a9d4588.js +1 -0
- package/assets/esri/core/workers/chunks/52a0e387073ea264e194.js +1 -0
- package/assets/esri/core/workers/chunks/560234694f3e53802aff.js +1 -0
- package/assets/esri/core/workers/chunks/5633710daeb3bbb79bcf.js +1 -0
- package/assets/esri/core/workers/chunks/5682039666f874836451.js +1 -0
- package/assets/esri/core/workers/chunks/6f01905936396fe87865.js +1 -0
- package/assets/esri/core/workers/chunks/6f7917da7166e8c6854b.js +1 -0
- package/assets/esri/core/workers/chunks/7388824eac8da01ea03d.js +1 -0
- package/assets/esri/core/workers/chunks/7745efef7d5119d0b087.js +1 -0
- package/assets/esri/core/workers/chunks/794b47764ebb0257ed41.js +1 -0
- package/assets/esri/core/workers/chunks/{da64dedf9270b64f42b2.js → 79bdb26244ec7b4472fe.js} +1 -1
- package/assets/esri/core/workers/chunks/79ec28b3e3c57fe026aa.js +1 -0
- package/assets/esri/core/workers/chunks/81e9d860a044acec74ce.js +1 -0
- package/assets/esri/core/workers/chunks/831dc0187f71e658550c.js +1 -0
- package/assets/esri/core/workers/chunks/86ad6b020c01850d9095.js +1 -0
- package/assets/esri/core/workers/chunks/{fb7397da8d4ec2ae4587.js → 87458fbf395338511662.js} +1 -1
- package/assets/esri/core/workers/chunks/{1a859be598ad96bb4719.js → 8771296b537f366596c4.js} +18 -18
- package/assets/esri/core/workers/chunks/8958cd555f4887526e8b.js +1 -0
- package/assets/esri/core/workers/chunks/{e57b71ba70f088a3a052.js → 90dcd86cdef90099abfa.js} +1 -1
- package/assets/esri/core/workers/chunks/93067e27eea5844edc6c.js +1 -0
- package/assets/esri/core/workers/chunks/{9fbee2d9bf50c4c148c6.js → 9a146c9e9b4bf7fba88f.js} +1 -1
- package/assets/esri/core/workers/chunks/9b9821772b6cbe189fe0.js +1 -0
- package/assets/esri/core/workers/chunks/{6c4ce530b493c6f7c430.js → 9df2f9f7c28b31866be8.js} +1 -1
- package/assets/esri/core/workers/chunks/{d0620ce99b620621d8bc.js → a0552044e123a3c51ddf.js} +1 -1
- package/assets/esri/core/workers/chunks/acc1a4acd57f5657e782.js +1 -0
- package/assets/esri/core/workers/chunks/b055ae7c54796751b64c.js +1 -0
- package/assets/esri/core/workers/chunks/{acc2cfb116fee7f82ae9.js → b26bd8fde2fc65bb67fb.js} +1 -1
- package/assets/esri/core/workers/chunks/{9b45b94c4dbdc8d2c5fd.js → b34ba22c7a5adce8a7a2.js} +1 -1
- package/assets/esri/core/workers/chunks/b75665d0bf417c6ef24a.js +1 -0
- package/assets/esri/core/workers/chunks/bd50ec30688463b821d1.js +1 -0
- package/assets/esri/core/workers/chunks/c28f7ae4756ad1ba94bd.js +1 -0
- package/assets/esri/core/workers/chunks/c4f713959d4115b87c6c.js +1 -0
- package/assets/esri/core/workers/chunks/c58aa209492bd94b7aad.js +1 -0
- package/assets/esri/core/workers/chunks/{9b117097b7be0efd21d4.js → c59b0b58e24e6a60cf3e.js} +1 -1
- package/assets/esri/core/workers/chunks/c7bd5a4d318299388645.js +1 -0
- package/assets/esri/core/workers/chunks/c7cee13a962396b23a5e.js +1 -0
- package/assets/esri/core/workers/chunks/{3bbff5ea1ea0e955c592.js → cd3679fa86129ebabfdf.js} +1 -1
- package/assets/esri/core/workers/chunks/{1a36dc0daffd536ea44d.js → cee7ce362860717713bf.js} +1 -1
- package/assets/esri/core/workers/chunks/cf463d6309f14df2f2fa.js +1 -0
- package/assets/esri/core/workers/chunks/{224c0e64160bdc170051.js → d076627bb7dadea89e89.js} +1 -1
- package/assets/esri/core/workers/chunks/{fff4200bc61b82dd6193.js → d1d1c45243af614f2e74.js} +1 -1
- package/assets/esri/core/workers/chunks/{1e0498dc9836658d9aba.js → d5fd12ea541c1a6b7fce.js} +1 -1
- package/assets/esri/core/workers/chunks/{10322d990cda5aedf2f0.js → d6e32ca237ad9309c76a.js} +1 -1
- package/assets/esri/core/workers/chunks/e06ad3a3d71154fed654.js +1 -0
- package/assets/esri/core/workers/chunks/{7a77d4cd27c30f1a5cae.js → ee3387a43dfbb3df23e1.js} +1 -1
- package/assets/esri/core/workers/chunks/{5d5fa2b1fc48a17eb9ab.js → f4fc165420d449e442b8.js} +1 -1
- package/assets/esri/core/workers/chunks/{3d6d9906a534ddd8fa37.js → f5ee03f3fca7a75192de.js} +1 -1
- package/assets/esri/themes/base/widgets/_Daylight.scss +1 -1
- package/assets/esri/themes/base/widgets/_ElevationProfile.scss +1 -1
- package/assets/esri/themes/base/widgets/_Weather.scss +1 -1
- package/assets/esri/themes/base/widgets/_Widget.scss +12 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/dark-blue/main.css +1 -1
- package/assets/esri/themes/dark-green/main.css +1 -1
- package/assets/esri/themes/dark-purple/main.css +1 -1
- package/assets/esri/themes/dark-red/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/themes/light-blue/main.css +1 -1
- package/assets/esri/themes/light-green/main.css +1 -1
- package/assets/esri/themes/light-purple/main.css +1 -1
- package/assets/esri/themes/light-red/main.css +1 -1
- package/chunks/ComponentShader.glsl.js +25 -25
- package/chunks/HighlightApply.glsl.js +36 -0
- package/chunks/HighlightBlur.glsl.js +26 -0
- package/chunks/HighlightDownsample.glsl.js +12 -0
- package/chunks/ImageMaterial.glsl.js +8 -8
- package/chunks/LineCallout.glsl.js +1 -1
- package/chunks/Pattern.glsl.js +2 -2
- package/chunks/SimpleAtmosphere.glsl.js +7 -7
- package/chunks/Stars.glsl.js +1 -1
- package/chunks/arcade.js +1 -1
- package/chunks/color.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/chunks/mat3.js +1 -1
- package/copyright.txt +2 -2
- package/core/AsyncUpdate.js +1 -1
- package/core/Evented.js +1 -1
- package/core/PooledArray.js +1 -1
- package/core/accessorSupport/diffUtils.js +1 -1
- package/core/accessorSupport/get.js +1 -1
- package/core/accessorSupport/read.js +1 -1
- package/core/accessorSupport/set.js +1 -1
- package/core/accessorSupport/tracking.js +1 -1
- package/core/accessorSupport/utils.js +1 -1
- package/core/arrayUtils.js +1 -1
- package/core/libs/gl-matrix-2/mat3.js +1 -1
- package/core/libs/gl-matrix-2/math/mat3.js +1 -1
- package/core/number.js +1 -1
- package/core/object.js +1 -1
- package/core/string.js +1 -1
- package/core/unitUtils.js +1 -1
- package/core/watchUtils.js +1 -1
- package/core/workers/RemoteClient.js +1 -1
- package/exports/csv.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/geometry.js +1 -1
- package/geometry/support/normalizeUtils.js +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +155 -20
- package/layers/ImageryLayer.js +1 -1
- package/layers/MapImageLayer.js +1 -1
- package/layers/RouteLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/TileLayer.js +1 -1
- package/layers/VectorTileLayer.js +1 -1
- package/layers/WMSLayer.js +1 -1
- package/layers/WMTSLayer.js +1 -1
- package/layers/WebTileLayer.js +1 -1
- package/layers/graphics/data/AttributesBuilder.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/editingSupport.js +1 -1
- package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/graphics/sources/support/inferenceUtils.js +1 -1
- package/layers/mixins/ArcGISCachedService.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/ogc/ogcFeatureUtils.js +1 -1
- package/layers/support/ExportImageServiceParameters.js +1 -1
- package/layers/support/PixelBlock.js +1 -1
- package/layers/support/RasterJobHandler.js +1 -1
- package/layers/support/SpriteSource.js +1 -1
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/TilemapCache.js +1 -1
- package/layers/support/WMTSSublayer.js +1 -1
- package/layers/support/arcgisLayerUrl.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/kmlUtils.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/rasterDatasets/ImageAuxRaster.js +1 -1
- package/layers/support/rasterDatasets/ImageServerRaster.js +1 -1
- package/layers/support/rasterDatasets/RasterFactory.js +1 -1
- package/layers/support/rasterDatasets/WCSRaster.js +1 -1
- package/layers/support/rasterDatasets/multipartParser.js +1 -1
- package/layers/support/rasterDatasets/wcsCoverageParser.js +1 -1
- package/layers/support/rasterDatasets/xmlUtilities.js +1 -1
- package/layers/support/rasterFormats/RasterCodec.js +1 -1
- package/layers/support/rasterFormats/TiffDecoder.js +1 -1
- package/layers/support/rasterFunctions/pixelUtils.js +1 -1
- package/layers/support/vectorTileLayerLoader.js +1 -1
- package/layers/support/wmsUtils.js +1 -1
- package/layers/support/wmtsUtils.js +1 -1
- package/libs/i3s/I3SModule.js +1 -1
- package/libs/vxl/VxlModule.js +1 -1
- package/package.json +1 -1
- package/portal/Portal.js +1 -1
- package/portal/PortalItem.js +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/portal/support/layersLoader.js +1 -1
- package/portal/support/portalItemUtils.js +1 -1
- package/portal/support/portalLayers.js +1 -1
- package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
- package/renderers/support/DictionaryLoader.js +1 -1
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/renderers/support/numberUtils.js +1 -1
- package/renderers/support/rasterRendererHelper.js +1 -1
- package/renderers/support/utils.js +1 -1
- package/request.js +1 -1
- package/rest/imageService.js +1 -1
- package/rest/operations/find.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/rest/query/operations/queryRelatedRecords.js +1 -1
- package/rest/query/operations/queryTopFeatures.js +1 -1
- package/rest/support/DirectionLine.js +1 -1
- package/rest/support/DirectionPoint.js +1 -1
- package/rest/support/PointBarrier.js +1 -1
- package/rest/support/PolygonBarrier.js +1 -1
- package/rest/support/PolylineBarrier.js +1 -1
- package/rest/support/RouteInfo.js +1 -1
- package/rest/support/Stop.js +1 -1
- package/smartMapping/labels/clusters.js +1 -1
- package/smartMapping/popup/dotDensity.js +1 -1
- package/smartMapping/popup/support/clusterUtils.js +1 -1
- package/smartMapping/popup/support/utils.js +1 -1
- package/smartMapping/raster/support/utils.js +1 -1
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/location.js +1 -1
- package/smartMapping/renderers/predominance.js +1 -1
- package/smartMapping/renderers/relationship.js +1 -1
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/utils.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/renderers/univariateColorSize.js +1 -1
- package/smartMapping/statistics/summaryStatisticsForAge.js +1 -1
- package/smartMapping/statistics/support/ageUtils.js +1 -1
- package/smartMapping/statistics/support/utils.js +1 -1
- package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/support/utils.js +1 -1
- package/smartMapping/support/utils.js +1 -1
- package/smartMapping/symbology/support/Theme.js +1 -1
- package/smartMapping/symbology/support/colorRamps.js +1 -1
- package/smartMapping/symbology/support/symbologyUtils.js +1 -1
- package/smartMapping/symbology/support/utils.js +1 -1
- package/statistics/utils.js +1 -1
- package/support/basemapDefinitions.js +1 -1
- package/support/basemapUtils.js +1 -1
- package/support/elevationInfoUtils.js +1 -1
- package/support/popupUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/utils.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/symbols/support/renderUtils.js +1 -1
- package/symbols/support/symbolLayerUtils.js +1 -1
- package/views/2d/engine/Bitmap.js +1 -1
- package/views/2d/engine/flow/FlowDisplayObject.js +1 -1
- package/views/2d/engine/imagery/RasterBitmap.js +1 -1
- package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
- package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
- package/views/2d/engine/vectorTiles/TileParser.js +1 -1
- package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
- package/views/2d/engine/vectorTiles/expression/expression.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
- package/views/2d/engine/webgl/Profiler.js +1 -1
- package/views/2d/engine/webgl/Utils.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLGeometryBrush.js +1 -1
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
- package/views/2d/engine/webgl/effects/HittestEffectVTL.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLTemplateStore.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/util/Lock.js +1 -1
- package/views/2d/layers/RouteLayerView2D.js +1 -1
- package/views/2d/layers/features/schemaUtils.js +1 -1
- package/views/2d/layers/features/sources/SnapshotFeatureSource.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/2d/layers/features/tileRenderers/SymbolTileRenderer.js +1 -1
- package/views/2d/layers/support/webStyleUtils.js +1 -1
- package/views/2d/support/Timeline.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
- package/views/3d/analysis/Slice/SliceController.js +1 -1
- package/views/3d/environment/PanoramicAtmosphere.js +1 -1
- package/views/3d/environment/SceneViewAtmosphere.js +1 -1
- package/views/3d/environment/StarsTechnique.js +1 -1
- package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
- package/views/3d/glTF/loader.js +1 -1
- package/views/3d/interactive/analysisTools/lineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/ImageryLayerView3D.js +1 -1
- package/views/3d/layers/LayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/RouteLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
- package/views/3d/layers/i3s/I3SNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SUtil.js +1 -1
- package/views/3d/layers/i3s/IDBMockCache.js +5 -0
- package/views/3d/layers/i3s/PointCloudWorkerUtil.js +1 -1
- package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
- package/views/3d/state/controllers/global/ZoomController.js +1 -1
- package/views/3d/state/controllers/global/ZoomStepController.js +1 -1
- package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
- package/views/3d/state/controllers/local/ZoomController.js +1 -1
- package/views/3d/support/HighlightOptions.js +1 -1
- package/views/3d/support/buffer/InterleavedLayout.js +1 -1
- package/views/3d/support/debugFlags.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/Stage.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +5 -5
- package/views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/HighlightHelper.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderParameters.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/3d/webgl-engine/shaders/HighlightApply.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/HighlightApplyTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/HighlightBlur.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/HighlightBlurTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/HighlightDownsample.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/HighlightDownsampleTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/HighlightOptions.js +4 -0
- package/views/3d/webgl-engine/shaders/HighlightPassParameters.js +5 -0
- package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/AdjustProjectedPosition.glsl.js +5 -7
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +14 -14
- package/views/SceneView.js +1 -1
- package/views/draw/support/GraphicMover.js +1 -1
- package/views/input/InputHandler.js +1 -1
- package/views/input/InputManager.js +1 -1
- package/views/layers/ImageryTileLayerView.js +1 -1
- package/views/layers/MapImageLayerView.js +1 -1
- package/views/layers/TileLayerView.js +1 -1
- package/views/layers/support/popupUtils.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/ui/DefaultUI.js +1 -1
- package/views/webgl/ShaderTranspiler.js +1 -1
- package/webscene/Slide.js +1 -1
- package/webscene/spec-certification/spec.js +1 -1
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
- package/widgets/Attachments/support/attachmentUtils.js +1 -1
- package/widgets/Attachments.js +1 -1
- package/widgets/Attribution.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/Bookmarks/BookmarksViewModel.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/BuildingExplorer/support/filterUtils.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/CoordinateConversion/support/coordinateConversionUtils.js +1 -1
- package/widgets/CoordinateConversion/support/formatUtils.js +1 -1
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
- package/widgets/Directions/DirectionsViewModel.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/InputField.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTemplates.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/LayerList/ListItemPanel.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/styles/Card.js +1 -1
- package/widgets/Legend/styles/Classic.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/colorRampUtils.js +1 -1
- package/widgets/Legend/support/relationshipRampUtils.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/Popup/actionUtils.js +1 -1
- package/widgets/Print/PrintViewModel.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/ScaleBar/ScaleBarViewModel.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search/support/layerSearchUtils.js +1 -1
- package/widgets/Slider.js +1 -1
- package/widgets/Swipe.js +1 -1
- package/widgets/TableList.js +1 -1
- package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/support/DatePicker.js +1 -1
- package/widgets/support/Popover.js +1 -1
- package/widgets/support/SnappingControls.js +1 -1
- package/widgets/support/TimePicker.js +1 -1
- package/widgets/support/timeWidgetUtils.js +1 -1
- package/assets/esri/core/workers/chunks/083a5d10f8e243641cb9.js +0 -1
- package/assets/esri/core/workers/chunks/0872812ce4d0ec8faf8f.js +0 -1
- package/assets/esri/core/workers/chunks/0bc26899780c33637746.js +0 -1
- package/assets/esri/core/workers/chunks/113362697da1b69deaed.js +0 -1
- package/assets/esri/core/workers/chunks/11a2f9708938eac98815.js +0 -1
- package/assets/esri/core/workers/chunks/11a45709b703be84caaf.js +0 -1
- package/assets/esri/core/workers/chunks/1c1294ff1ebbd8f774f7.js +0 -1
- package/assets/esri/core/workers/chunks/1c915cc9a9d5729b6f17.js +0 -1
- package/assets/esri/core/workers/chunks/31786756b3d44540f8c0.js +0 -1
- package/assets/esri/core/workers/chunks/36a6f34fe40785beff5d.js +0 -1
- package/assets/esri/core/workers/chunks/373c16f8b8093d001064.js +0 -1
- package/assets/esri/core/workers/chunks/382a331a592abb61267f.js +0 -1
- package/assets/esri/core/workers/chunks/3bf106fe34e3992032c4.js +0 -1
- package/assets/esri/core/workers/chunks/3dcec610f1c1497d87bc.js +0 -1
- package/assets/esri/core/workers/chunks/46495e726d8739260d44.js +0 -1
- package/assets/esri/core/workers/chunks/4a82a6a473b3d540d0be.js +0 -1
- package/assets/esri/core/workers/chunks/4b6719377a95ac10fa43.js +0 -1
- package/assets/esri/core/workers/chunks/4d2ef57ff3a5cfc1313f.js +0 -1
- package/assets/esri/core/workers/chunks/4fd2b8153d62592210a2.js +0 -1
- package/assets/esri/core/workers/chunks/56e6a1079269e2964b02.js +0 -1
- package/assets/esri/core/workers/chunks/5b4d9786c010d265346c.js +0 -1
- package/assets/esri/core/workers/chunks/604637e1c3937b376a0d.js +0 -1
- package/assets/esri/core/workers/chunks/60f83257e361f87fa6fd.js +0 -1
- package/assets/esri/core/workers/chunks/6d3f80be6fceb2c18b5d.js +0 -1
- package/assets/esri/core/workers/chunks/6f827a32646bab0a8777.js +0 -1
- package/assets/esri/core/workers/chunks/70bd2ab42e3801ef5974.js +0 -1
- package/assets/esri/core/workers/chunks/746222184b361b50d6ba.js +0 -1
- package/assets/esri/core/workers/chunks/7fb72b2d11e8d840f982.js +0 -1
- package/assets/esri/core/workers/chunks/85bb6a1a7704fcdcbec2.js +0 -1
- package/assets/esri/core/workers/chunks/8b4c76cebb100e6c06f8.js +0 -1
- package/assets/esri/core/workers/chunks/9586a6b320edb1922926.js +0 -1
- package/assets/esri/core/workers/chunks/99638697ffda9022ce92.js +0 -1
- package/assets/esri/core/workers/chunks/a9da1cb118ca62a9581d.js +0 -1
- package/assets/esri/core/workers/chunks/aaa41a5013eef713c032.js +0 -1
- package/assets/esri/core/workers/chunks/ac321f939dd488ff6ce4.js +0 -1
- package/assets/esri/core/workers/chunks/add6027a96398ecf69de.js +0 -1
- package/assets/esri/core/workers/chunks/b75206b46ba81606087c.js +0 -1
- package/assets/esri/core/workers/chunks/bf8456828e38a768eba3.js +0 -1
- package/assets/esri/core/workers/chunks/c0720d0d8adcba6738d4.js +0 -1
- package/assets/esri/core/workers/chunks/c5bb712d5cf8c05a4e13.js +0 -1
- package/assets/esri/core/workers/chunks/d343f05a3366f95e0494.js +0 -1
- package/assets/esri/core/workers/chunks/d8b1f00075983d769985.js +0 -1
- package/chunks/Highlight.glsl.js +0 -88
- package/views/3d/webgl-engine/shaders/Highlight.glsl.js +0 -5
- package/views/3d/webgl-engine/shaders/HighlightTechnique.js +0 -5
- package/views/3d/webgl-engine/shaders/HighlightTechniqueConfiguration.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9989],{16453:(e,t,i)=>{i.d(t,{R:()=>g,w:()=>w});var s=i(43697),r=i(15923),l=i(70586),o=i(41103),n=i(22974),a=i(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,i=this._originStores[a.s3.DEFAULTS];i&&i.forEach(((e,i)=>{t.set(i,(0,n.d9)(e),a.s3.DEFAULTS)}));for(let i=a.s3.SERVICE;i<a.kk;i++){const s=this._originStores[i];s&&s.forEach(((s,r)=>{e&&e.has(r)||t.set(r,(0,n.d9)(s),i)}))}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=a.s3.USER){let s=this._originStores[i];if(s||(s=new Map,this._originStores[i]=s),s.set(e,t),!this._values.has(e)||(0,l.j0)(this._propertyOriginMap.get(e))<=i){const s=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),s!==t}return!1}delete(e,t=a.s3.USER){const i=this._originStores[t];if(!i)return;const s=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return s}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],s=i&&i.get(e),r=this._values.get(e);return this._values.set(e,s),this._propertyOriginMap.set(e,t),r!==s}originOf(e){return this._propertyOriginMap.get(e)||a.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var p=i(50549),d=i(1153),h=i(52011);const c=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,l.j0)((0,d.vw)(this)),i=t.store,s=new u;t.store=s,(0,o.M)(t,i,s)}read(e,t){(0,p.i)(this,e,t)}getAtOrigin(e,t){const i=y(this),s=(0,a.M9)(t);if("string"==typeof e)return i.get(e,s);const r={};return e.forEach((e=>{r[e]=i.get(e,s)})),r}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return y(this).originOf(e)}revert(e,t){const i=y(this),s=(0,a.M9)(t),r=(0,d.vw)(this);let l;l="string"==typeof e?"*"===e?i.keys(s):[e]:e,l.forEach((e=>{r.invalidate(e),i.revert(e,s),r.commit(e)}))}};return t=(0,s._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function y(e){return(0,d.vw)(e).store}let b=class extends(c(r.Z)){};b=(0,s._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],b);var m=i(76169);const f=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return v(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,m.c)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,d.vw)(this).setAtOrigin(e,t,(0,a.M9)(i))}removeOrigin(e){const t=v(this),i=(0,a.M9)(e),s=t.keys(i);for(const e of s)t.originOf(e)===i&&t.set(e,t.get(e,i),a.s3.USER)}updateOrigin(e,t){const i=v(this),s=(0,a.M9)(t),r=this.get(e);for(let t=s+1;t<a.kk;++t)i.delete(e,t);i.set(e,r,s)}toJSON(e){return this.write({},e)}};return t=(0,s._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,d.vw)(e).store}const g=e=>{let t=class extends(f(c(e))){constructor(...e){super(...e)}};return t=(0,s._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],t),t};let w=class extends(g(r.Z)){};w=(0,s._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],w)},44422:(e,t,i)=>{i.d(t,{B:()=>r});var s=i(5600);function r(e,t){const i=t?{...t,source:e}:e;return(0,s.Cb)({aliasOf:i})}},29600:(e,t,i)=>{i.d(t,{Z:()=>w});var s=i(43697),r=i(68773),l=(i(66577),i(3172)),o=i(20102),n=i(32448),a=i(10699),u=i(83379),p=i(92604),d=i(95330),h=i(17452),c=i(5600),y=(i(67676),i(80442),i(75215),i(52011)),b=i(6570),m=i(82971);let f=0;const v=p.Z.getLogger("esri.layers.Layer");let g=class extends(n.Z.EventedMixin((0,a.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new b.Z(-180,-90,180,90,m.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,s=await i.e(3529).then(i.bind(i,63529));try{return await s.fromUrl(t)}catch(e){throw v.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},s=await i.e(4579).then(i.bind(i,44579));try{return await s.fromItem(t)}catch(e){const i=t&&t.portalItem,s=i&&i.id||"unset",l=i&&i.portal&&i.portal.url||r.Z.portalUrl;throw v.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+l+"', id: '"+s+"')",e),e}}initialize(){this.when().catch((e=>{var t,i;(0,d.D_)(e)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(i=this.id)?i:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,h.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,l.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,s._)([(0,c.Cb)({type:String})],g.prototype,"attributionDataUrl",void 0),(0,s._)([(0,c.Cb)({type:b.Z})],g.prototype,"fullExtent",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],g.prototype,"hasAttributionData",null),(0,s._)([(0,c.Cb)({type:String,clonable:!1})],g.prototype,"id",void 0),(0,s._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],g.prototype,"legendEnabled",void 0),(0,s._)([(0,c.Cb)({type:["show","hide","hide-children"]})],g.prototype,"listMode",void 0),(0,s._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],g.prototype,"opacity",void 0),(0,s._)([(0,c.Cb)({clonable:!1})],g.prototype,"parent",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],g.prototype,"parsedUrl",null),(0,s._)([(0,c.Cb)({type:Boolean})],g.prototype,"popupEnabled",void 0),(0,s._)([(0,c.Cb)({type:Boolean})],g.prototype,"attributionVisible",void 0),(0,s._)([(0,c.Cb)({type:m.Z})],g.prototype,"spatialReference",void 0),(0,s._)([(0,c.Cb)({type:String})],g.prototype,"title",void 0),(0,s._)([(0,c.Cb)({type:String,readOnly:!0,json:{read:!1}})],g.prototype,"type",void 0),(0,s._)([(0,c.Cb)()],g.prototype,"url",void 0),(0,s._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],g.prototype,"visible",void 0),g=(0,s._)([(0,y.j)("esri.layers.Layer")],g);const w=g},16050:(e,t,i)=>{i.d(t,{Z:()=>O});var s,r=i(43697),l=i(78223),o=i(35454),n=i(22974),a=i(92604),u=i(70586),p=i(5600),d=i(90578),h=i(36030),c=i(71715),y=i(52011),b=i(30556),m=i(75215),f=i(35671),v=i(5499),g=i(12571),w=i(32984),_=i(9833),V=i(66338),S=i(59266);const x=a.Z.getLogger("esri.renderers.ClassBreaksRenderer"),C="percent-of-total",I="field",j=new o.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:C,esriNormalizeByField:I}),z=(0,m.se)(w.Z);let E=s=class extends((0,g.W)(v.Z)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map((e=>{const t=new w.Z;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t}))}writeClassBreakInfos(e,t,i,s){const r=e.map((e=>e.write({},s)));this._areClassBreaksConsecutive()&&r.forEach((e=>delete e.classMinValue)),t[i]=r}castField(e){return null==e?e:"function"==typeof e?(x.error(".field: field must be a string value"),null):(0,m.Zs)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=(t?I:i&&C)||null,t&&i&&x.warn("warning: both normalizationField and normalizationTotal are set!")):e!==I&&e!==C||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new w.Z({minValue:e,maxValue:t,symbol:(0,l.se)(i)}):z((0,n.d9)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&x.warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&(i={...i,arcade:await(0,S.LC)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade)))return void x.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))){const e=await(0,S.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,n.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,f.io)(e,t,this.valueExpression)];(0,f.AB)(e,t,this.field),(0,f.AB)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l}=(0,u.Pt)(t,{});let o=this._compiledValueExpression.valueExpression===this.valueExpression?this._compiledValueExpression.compiledFunction:null;const n=(0,u.Wg)(l).arcadeUtils;if(!o){const e=n.createSyntaxTree(this.valueExpression);o=n.createFunction(e),this._compiledValueExpression.compiledFunction=o}this._compiledValueExpression.valueExpression=this.valueExpression;const a=n.executeFunction(o,n.createExecContext(e,n.getViewInfo({viewingMode:i,scale:s,spatialReference:r})));return this._getBreakIndexfromInfos(a)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let r=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(i[this.normalizationField]);if("log"===s)r=Math.log(r)*Math.LOG10E;else if(s!==C||isNaN(e)){if(s===I&&!isNaN(t)){if(isNaN(r)||isNaN(t))return-1;r/=t}}else r=r/e*100}return this._getBreakIndexfromInfos(r)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,r._)([(0,p.Cb)(_.K)],E.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,p.Cb)({type:[w.Z]})],E.prototype,"classBreakInfos",void 0),(0,r._)([(0,c.r)("classBreakInfos")],E.prototype,"readClassBreakInfos",null),(0,r._)([(0,b.c)("classBreakInfos")],E.prototype,"writeClassBreakInfos",null),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"defaultLabel",void 0),(0,r._)([(0,p.Cb)(_.G)],E.prototype,"defaultSymbol",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"field",void 0),(0,r._)([(0,d.p)("field")],E.prototype,"castField",null),(0,r._)([(0,p.Cb)({type:Boolean})],E.prototype,"isMaxInclusive",void 0),(0,r._)([(0,p.Cb)({type:V.I,json:{write:!0}})],E.prototype,"legendOptions",void 0),(0,r._)([(0,p.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],E.prototype,"minValue",null),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"normalizationField",void 0),(0,r._)([(0,p.Cb)({type:Number,cast:e=>(0,m.q9)(e),json:{write:!0}})],E.prototype,"normalizationTotal",void 0),(0,r._)([(0,p.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write}})],E.prototype,"normalizationType",null),(0,r._)([(0,h.J)({classBreaks:"class-breaks"})],E.prototype,"type",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"valueExpression",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"valueExpressionTitle",void 0),E=s=(0,r._)([(0,y.j)("esri.renderers.ClassBreaksRenderer")],E);const O=E},5499:(e,t,i)=>{i.d(t,{Z:()=>d});var s=i(43697),r=i(35454),l=i(96674),o=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),a=i(69237);const u=new r.X({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary"},{ignoreUnknown:!0});let p=class extends l.wq{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,o.Cb)({type:a.Z,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,o.Cb)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0}}})],p.prototype,"type",void 0),p=(0,s._)([(0,n.j)("esri.renderers.Renderer")],p);const d=p},30687:(e,t,i)=>{i.d(t,{Z:()=>T});var s,r=i(43697),l=i(78223),o=i(20102),n=i(22974),a=i(92604),u=i(70586),p=i(78286),d=i(5600),h=i(90578),c=i(36030),y=i(71715),b=i(52011),m=i(30556),f=i(22862),v=i(75215),g=i(35671),w=i(65587),_=i(5499),V=i(12571),S=i(9833),x=i(66338),C=i(44262),I=i(59266),j=i(25929),z=i(27391),E=i(59390);const O=a.Z.getLogger("esri.renderers.UniqueValueRenderer"),F=(0,v.se)(C.Z);let k=s=class extends((0,V.W)(_.Z)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this.type="unique-value",this.backgroundFillSymbol=null,this.field=null,this.field2=null,this.field3=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.fieldDelimiter=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let r=0;r<t.length;r++){const l=e.find((e=>e.value===t[r].value));l?(0,f.Hg)(l,t[r])?(s.changed.push({type:"complete",oldValue:l,newValue:t[r]}),i=!0):s.unchanged.push({oldValue:l,newValue:t[r]}):(s.added.push(t[r]),i=!0)}for(let r=0;r<e.length;r++)t.find((t=>t.value===e[r].value))||(s.removed.push(e[r]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[])}get _cache(){return{compiledFunc:null}}castField(e){return null==e||"function"==typeof e?e:(0,v.Zs)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s&&s.messages?s.messages.push(new o.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):O.error(".field: cannot write field to JSON since it's not a string value")}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}readPortal(e,t,i){return i.portal||w.Z.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,j.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,j.t)(e.styleUrl,s))}set uniqueValueInfos(e){this.styleOrigin?O.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void O.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?F(e):new C.Z({value:e,symbol:(0,l.se)(t)}),this.uniqueValueInfos.push(i),this._valueInfoMap[i.value]=i}removeUniqueValueInfo(e){if(this.styleOrigin)O.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");else for(let t=0;t<this.uniqueValueInfos.length;t++)if(this.uniqueValueInfos[t].value===e+""){delete this._valueInfoMap[e],this.uniqueValueInfos.splice(t,1);break}}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&(i={...i,arcade:await(0,I.LC)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade)))return void O.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i&&i.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&((0,u.Wi)(i)||(0,u.Wi)(i.arcade))){const e=await(0,I.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s&&s.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos)t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return`${JSON.stringify(this.backgroundFillSymbol)}.${JSON.stringify(this.defaultSymbol)}.${this.uniqueValueInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new s({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.d9)(this.defaultSymbol),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,n.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.d9)(this.uniqueValueInfos);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.d9)(this.styleOrigin))),Object.freeze(t)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,g.io)(e,t,this.valueExpression)];(0,g.AB)(e,t,this.field),(0,g.AB)(e,t,this.field2),(0,g.AB)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,z.n2)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new E.Z({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const r=new C.Z({value:i.name,symbol:s});t.push(r),this._valueInfoMap[i.name]=r})),this._set("uniqueValueInfos",Object.freeze(t)),!this.defaultSymbol&&this.uniqueValueInfos.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateValueInfoMap(){this._valueInfoMap={},this.uniqueValueInfos.forEach((e=>this._valueInfoMap[e.value+""]=e))}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l}=(0,u.Pt)(t,{});let o=this._cache.compiledFunc;const n=(0,u.Wg)(l).arcadeUtils;if(!o){const e=n.createSyntaxTree(this.valueExpression);o=n.createFunction(e),this._cache.compiledFunc=o}const a=n.executeFunction(o,n.createExecContext(e,n.getViewInfo({viewingMode:i,scale:s,spatialReference:r})));return this._valueInfoMap[a+""]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if("function"!=typeof t&&this.field2){const e=this.field2,r=this.field3,l=[];t&&l.push(i[t]),e&&l.push(i[e]),r&&l.push(i[r]),s=l.join(this.fieldDelimiter||"")}else"function"==typeof t?s=t(e):t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new s(t&&t.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t&&t.portal||w.Z.getDefault());const r=i.populateFromStyle();return r.catch((t=>{O.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),r}static fromStyleUrl(e,t){const i=new s(t&&t.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const r=i.populateFromStyle();return r.catch((t=>{O.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),r}};(0,r._)([(0,d.Cb)({readOnly:!0})],k.prototype,"_cache",null),(0,r._)([(0,c.J)({uniqueValue:"unique-value"})],k.prototype,"type",void 0),(0,r._)([(0,d.Cb)(S.K)],k.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,d.Cb)({json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],k.prototype,"field",void 0),(0,r._)([(0,h.p)("field")],k.prototype,"castField",null),(0,r._)([(0,m.c)("field")],k.prototype,"writeField",null),(0,r._)([(0,d.Cb)({type:String,json:{write:!0}})],k.prototype,"field2",void 0),(0,r._)([(0,d.Cb)({type:String,json:{write:!0}})],k.prototype,"field3",void 0),(0,r._)([(0,d.Cb)({type:String,json:{write:!0}})],k.prototype,"valueExpression",void 0),(0,r._)([(0,d.Cb)({type:String,json:{write:!0}})],k.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,d.Cb)({type:x.I,json:{write:!0}})],k.prototype,"legendOptions",void 0),(0,r._)([(0,d.Cb)({type:String,json:{write:!0}})],k.prototype,"defaultLabel",void 0),(0,r._)([(0,d.Cb)((0,p.RH)({...S.G},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],k.prototype,"defaultSymbol",null),(0,r._)([(0,d.Cb)({type:String,json:{write:!0}})],k.prototype,"fieldDelimiter",void 0),(0,r._)([(0,d.Cb)({type:w.Z,readOnly:!0})],k.prototype,"portal",void 0),(0,r._)([(0,y.r)("portal",["styleName"])],k.prototype,"readPortal",null),(0,r._)([(0,d.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],k.prototype,"styleOrigin",void 0),(0,r._)([(0,y.r)("styleOrigin",["styleName","styleUrl"])],k.prototype,"readStyleOrigin",null),(0,r._)([(0,m.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],k.prototype,"writeStyleOrigin",null),(0,r._)([(0,d.Cb)({type:[C.Z],json:{write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],k.prototype,"uniqueValueInfos",null),k=s=(0,r._)([(0,b.j)("esri.renderers.UniqueValueRenderer")],k);const T=k},12571:(e,t,i)=>{i.d(t,{W:()=>Z});var s,r=i(43697),l=i(5600),o=(i(67676),i(80442),i(75215)),n=i(71715),a=i(52011),u=i(30556),p=i(35671),d=i(77997),h=i(21849);let c=s=class extends d.Z{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,l.Cb)({readOnly:!0})],c.prototype,"cache",null),(0,r._)([(0,l.Cb)({type:["color"],json:{type:["colorInfo"]}})],c.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"normalizationField",void 0),(0,r._)([(0,l.Cb)({type:[h.Z],json:{write:!0}})],c.prototype,"stops",null),c=s=(0,r._)([(0,a.j)("esri.renderers.visualVariables.ColorVariable")],c);const y=c;var b,m=i(96674),f=i(65242);let v=b=class extends m.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,f.b)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,f.a)(e)}clone(){return new b({label:this.label,opacity:this.opacity,value:this.value})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],v.prototype,"label",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{type:o.z8,write:{target:"transparency"}}})],v.prototype,"opacity",void 0),(0,r._)([(0,n.r)("opacity",["transparency"])],v.prototype,"readOpacity",null),(0,r._)([(0,u.c)("opacity")],v.prototype,"writeOpacity",null),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],v.prototype,"value",void 0),v=b=(0,r._)([(0,a.j)("esri.renderers.visualVariables.support.OpacityStop")],v);const g=v;var w;let _=w=class extends d.Z{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new w({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,l.Cb)({readOnly:!0})],_.prototype,"cache",null),(0,r._)([(0,l.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],_.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],_.prototype,"normalizationField",void 0),(0,r._)([(0,l.Cb)({type:[g],json:{write:!0}})],_.prototype,"stops",null),_=w=(0,r._)([(0,a.j)("esri.renderers.visualVariables.OpacityVariable")],_);const V=_;var S=i(89513),x=i(27922),C=i(15923),I=i(35454),j=i(92604),z=i(20941);const E=j.Z.getLogger("esri.renderers.visualVariables.VisualVariableFactory"),O={color:y,size:x.Z,opacity:V,rotation:S.Z},F=new I.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),k=/^\[([^\]]+)\]$/i;let T=class extends C.Z{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),(e=e&&e.filter((e=>!!e)))&&e.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:r}=t,l=s&&s.match(k),o=l&&l[1];if(o&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:o})),e)return e.map((e=>{const t=F.read(e.type),s=O[t];s||(E.warn(`Unknown variable type: ${t}`),i&&i.messages&&i.messages.push(new z.Z("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const r=new s;return r.read(e,i),r}))}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,r._)([(0,l.Cb)()],T.prototype,"visualVariables",null),T=(0,r._)([(0,a.j)("esri.renderers.visualVariables.VisualVariableFactory")],T);const M=T,q={base:d.Z,key:"type",typeMap:{opacity:V,color:y,rotation:S.Z,size:x.Z}},Z=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new M}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const i=this.visualVariables;return i?i.filter((i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))):[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,p.AB)(e,t,s.field),s.normalizationField&&(0,p.AB)(e,t,s.normalizationField),s.valueExpression&&await(0,p.io)(e,t,s.valueExpression))}};return(0,r._)([(0,l.Cb)({types:[q],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,r._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,r._)([(0,u.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,r._)([(0,a.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t}},69237:(e,t,i)=>{i.d(t,{Z:()=>k});var s,r=i(43697),l=i(35454),o=i(96674),n=i(22974),a=i(5600),u=i(75215),p=i(71715),d=i(52011);i(67676),i(80442);let h=s=class extends o.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var c;(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"minValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"maxValue",void 0),h=s=(0,r._)([(0,d.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],h);let y=c=class extends o.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new c({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,n.d9)(this.classBreakInfos)})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,r._)([(0,a.Cb)({type:[h],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=c=(0,r._)([(0,d.j)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var b,m=i(90578);const f=new l.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),v=new l.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),g={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},w=["high-to-low","above-and-below","centered-on","extremes"],_=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],V=["seconds","minutes","hours","days","months","years"];let S=b=class extends o.wq{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new b({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"endTime",void 0),(0,r._)([(0,m.p)("endTime")],S.prototype,"castEndTime",null),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],S.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"minSliderValue",void 0),(0,r._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"startTime",void 0),(0,r._)([(0,m.p)("startTime")],S.prototype,"castStartTime",null),(0,r._)([(0,a.Cb)({type:f.apiValues,value:null,json:{type:f.jsonValues,read:f.read,write:f.write}})],S.prototype,"style",null),(0,r._)([(0,a.Cb)({type:_,value:null,json:{type:_,origins:{"web-scene":{type:w,write:{writer:(e,t)=>{w.indexOf(e)>-1&&(t.theme=e)}}}},write:!0}})],S.prototype,"theme",null),(0,r._)([(0,a.Cb)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],S.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:V,json:{type:V,write:!0}})],S.prototype,"units",void 0),S=b=(0,r._)([(0,d.j)("esri.renderers.support.AuthoringInfoVisualVariable")],S);const x=S;var C,I=i(94593);const j=new l.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),z=new l.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),E=new l.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),O=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let F=C=class extends o.wq{constructor(e){super(e),this.colorRamp=null,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){if(e)return(0,I.i)(e)}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new C({classificationMethod:this.classificationMethod,colorRamp:(0,n.d9)(this.colorRamp),fields:this.fields&&this.fields.slice(0),field1:(0,n.d9)(this.field1),field2:(0,n.d9)(this.field2),focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,r._)([(0,a.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-document":{default:"manual",type:j.jsonValues,read:j.read,write:j.write}}}})],F.prototype,"classificationMethod",null),(0,r._)([(0,a.Cb)({types:I.V,json:{write:!0}})],F.prototype,"colorRamp",void 0),(0,r._)([(0,p.r)("colorRamp")],F.prototype,"readColorRamp",null),(0,r._)([(0,a.Cb)({type:[String],value:null,json:{write:!0}})],F.prototype,"fields",null),(0,r._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],F.prototype,"field1",null),(0,r._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],F.prototype,"field2",null),(0,r._)([(0,a.Cb)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],F.prototype,"flowTheme",null),(0,r._)([(0,a.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],F.prototype,"focus",null),(0,r._)([(0,a.Cb)({type:Number,value:null,json:{type:u.z8,write:!0}})],F.prototype,"numClasses",null),(0,r._)([(0,a.Cb)({type:O,json:{type:O,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],F.prototype,"lengthUnit",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"minSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"statistics",null),(0,r._)([(0,a.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],F.prototype,"standardDeviationInterval",null),(0,r._)([(0,a.Cb)({type:z.apiValues,value:null,json:{type:z.jsonValues,read:z.read,write:z.write,origins:{"web-scene":{type:E.jsonValues,write:{writer:E.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],F.prototype,"type",null),(0,r._)([(0,a.Cb)({type:[x],json:{write:!0}})],F.prototype,"visualVariables",void 0),(0,r._)([(0,a.Cb)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],F.prototype,"univariateSymbolStyle",null),(0,r._)([(0,a.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],F.prototype,"univariateTheme",null),F=C=(0,r._)([(0,d.j)("esri.renderers.support.AuthoringInfo")],F);const k=F},32984:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),o=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),a=i(9833);let u=s=class extends l.wq{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r._)([(0,o.Cb)(a.G)],u.prototype,"symbol",void 0),u=s=(0,r._)([(0,n.j)("esri.renderers.support.ClassBreakInfo")],u);const p=u},66338:(e,t,i)=>{i.d(t,{I:()=>a});var s,r=i(43697),l=i(96674),o=i(5600),n=(i(67676),i(80442),i(75215),i(52011));let a=s=class extends l.wq{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=s=(0,r._)([(0,n.j)("esri.renderers.support.LegendOptions")],a)},44262:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),l=i(96674),o=i(5600),n=(i(67676),i(80442),i(90578)),a=i(52011),u=i(9833);let p=s=class extends l.wq{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}castValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,r._)([(0,o.Cb)(u.G)],p.prototype,"symbol",void 0),(0,r._)([(0,o.Cb)({json:{type:String,write:{writer:(e,t)=>{t.value=null==e?void 0:e.toString()}}}})],p.prototype,"value",void 0),(0,r._)([(0,n.p)("value")],p.prototype,"castValue",null),p=s=(0,r._)([(0,a.j)("esri.renderers.support.UniqueValueInfo")],p);const d=p},9833:(e,t,i)=>{i.d(t,{G:()=>a,K:()=>u});var s=i(78223),r=i(63213),l=i(21878),o=i(89164),n=i(86114);const a={types:s.QT,json:{write:{writer:l.cW},origins:{"web-scene":{types:s.f_,write:{writer:l.cW},read:{reader:(0,r.d)({types:s.f_})}}}}},u={types:{base:o.Z,key:"type",typeMap:{"simple-fill":s.LB.typeMap["simple-fill"],"picture-fill":s.LB.typeMap["picture-fill"],"polygon-3d":s.LB.typeMap["polygon-3d"]}},json:{write:{writer:l.cW},origins:{"web-scene":{type:n.Z,write:{writer:l.cW}}}}}},89513:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),l=i(20102),o=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),a=i(30556),u=i(77997);let p=s=class extends u.Z{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,i,s){if(s&&s.messages){const e=`visualVariables[${this.index}]`;s.messages.push(new l.Z("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:s}))}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};(0,r._)([(0,o.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,o.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,r._)([(0,o.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,r._)([(0,o.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,a.c)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=s=(0,r._)([(0,n.j)("esri.renderers.visualVariables.RotationVariable")],p);const d=p},27922:(e,t,i)=>{i.d(t,{Z:()=>F});var s,r=i(43697),l=i(20102),o=i(35454),n=i(92604),a=i(62357),u=i(5600),p=(i(67676),i(80442),i(90578)),d=i(71715),h=i(52011),c=i(30556),y=i(77997),b=i(96674);i(75215);let m=s=class extends b.wq{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new s({label:this.label,size:this.size,value:this.value})}};(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:a.t_,json:{write:!0}})],m.prototype,"size",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{write:!0}})],m.prototype,"value",void 0),m=s=(0,r._)([(0,h.j)("esri.renderers.visualVariables.support.SizeStop")],m);const f=m;var v,g=i(58439);let w=v=class extends g.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new v({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};(0,r._)([(0,u.Cb)({type:[Number],json:{write:!0}})],w.prototype,"customValues",void 0),w=v=(0,r._)([(0,h.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],w);const _=w;var V,S=i(51706),x=i(28101);const C=n.Z.getLogger("esri.renderers.visualVariables.SizeVariable"),I=new o.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),j=new o.X({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function z(e){if(null!=e)return"string"==typeof e||"number"==typeof e?(0,a.t_)(e):"size"===e.type?(0,S.iY)(e)?e:(delete(e={...e}).type,new O(e)):void 0}function E(e,t,i){if("object"!=typeof e)return e;const s=new O;return s.read(e,i),s}let O=V=class extends y.Z{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:x.B3.test(this.valueExpression)}}set expression(e){C.warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){(0,S.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,S.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,S.PS)(this)}set maxDataValue(e){e&&this.stops&&(C.warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(C.warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return z(e)}readMaxSize(e,t,i){return E(e,0,i)}set minDataValue(e){e&&this.stops&&(C.warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(C.warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return z(e)}readMinSize(e,t,i){return E(e,0,i)}get arcadeRequired(){return!!this.valueExpression||this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(C.warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,S.QW)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s&&s.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new l.Z("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?j.read(e):null}clone(){return new V({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,S.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,S.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if(this.transformationType===S.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===S.hL.Stops){const e=this.stops,t=e.map((e=>e.size)).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,u.Cb)({readOnly:!0})],O.prototype,"cache",null),(0,r._)([(0,u.Cb)({type:I.apiValues,json:{type:I.jsonValues,origins:{"web-map":{read:!1}},read:I.read,write:I.write}})],O.prototype,"axis",void 0),(0,r._)([(0,u.Cb)({type:String,value:null,json:{read:!1}})],O.prototype,"expression",null),(0,r._)([(0,u.Cb)()],O.prototype,"index",null),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],O.prototype,"inputValueType",null),(0,r._)([(0,u.Cb)({type:_,json:{write:!0}})],O.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],O.prototype,"maxDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],O.prototype,"maxSize",null),(0,r._)([(0,p.p)("maxSize")],O.prototype,"castMaxSize",null),(0,r._)([(0,d.r)("maxSize")],O.prototype,"readMaxSize",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],O.prototype,"minDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],O.prototype,"minSize",null),(0,r._)([(0,p.p)("minSize")],O.prototype,"castMinSize",null),(0,r._)([(0,d.r)("minSize")],O.prototype,"readMinSize",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],O.prototype,"normalizationField",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],O.prototype,"arcadeRequired",null),(0,r._)([(0,u.Cb)({type:String})],O.prototype,"scaleBy",void 0),(0,r._)([(0,u.Cb)({type:[f],value:null,json:{write:!0}})],O.prototype,"stops",null),(0,r._)([(0,u.Cb)({type:["outline"],json:{write:!0}})],O.prototype,"target",void 0),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],O.prototype,"transformationType",null),(0,r._)([(0,u.Cb)({type:["size"],json:{type:["sizeInfo"]}})],O.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],O.prototype,"useSymbolValue",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],O.prototype,"valueExpression",void 0),(0,r._)([(0,d.r)("valueExpression",["valueExpression","expression"])],O.prototype,"readValueExpression",null),(0,r._)([(0,c.c)("web-scene","valueExpression")],O.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,u.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],O.prototype,"valueRepresentation",void 0),(0,r._)([(0,u.Cb)({type:j.apiValues,json:{write:j.write,origins:{"web-map":{read:!1},"web-scene":{write:!0}}}})],O.prototype,"valueUnit",void 0),(0,r._)([(0,d.r)("valueUnit")],O.prototype,"readValueUnit",null),O=V=(0,r._)([(0,h.j)("esri.renderers.visualVariables.SizeVariable")],O);const F=O},77997:(e,t,i)=>{i.d(t,{Z:()=>b});var s=i(43697),r=i(35454),l=i(96674),o=i(92604),n=i(5600),a=(i(67676),i(80442),i(90578)),u=i(52011),p=i(75215),d=i(58439);const h=o.Z.getLogger("esri.renderers.visualVariables.VisualVariable"),c=new r.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let y=class extends l.wq{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(h.error(".field: field must be a string value"),null):(0,p.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,n.Cb)()],y.prototype,"index",void 0),(0,s._)([(0,n.Cb)({type:c.apiValues,readOnly:!0,json:{read:c.read,write:c.write}})],y.prototype,"type",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,s._)([(0,a.p)("field")],y.prototype,"castField",null),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"valueExpression",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,n.Cb)({readOnly:!0})],y.prototype,"arcadeRequired",null),(0,s._)([(0,n.Cb)({type:d.Z,json:{write:!0}})],y.prototype,"legendOptions",void 0),y=(0,s._)([(0,u.j)("esri.renderers.visualVariables.VisualVariable")],y);const b=y},21849:(e,t,i)=>{i.d(t,{Z:()=>h});var s,r=i(43697),l=i(22303),o=i(96674),n=i(5600),a=(i(67676),i(80442),i(75215)),u=i(52011),p=i(30556);let d=s=class extends o.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=null==e?0:e}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r._)([(0,n.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],d.prototype,"color",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],d.prototype,"value",void 0),(0,r._)([(0,p.c)("value")],d.prototype,"writeValue",null),d=s=(0,r._)([(0,u.j)("esri.renderers.visualVariables.support.ColorStop")],d);const h=d},58439:(e,t,i)=>{i.d(t,{Z:()=>u});var s,r=i(43697),l=i(5600),o=(i(67676),i(80442),i(75215),i(52011)),n=i(66338);let a=s=class extends n.I{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},21878:(e,t,i)=>{i.d(t,{im:()=>_,cW:()=>v,vX:()=>g});var s=i(78223),r=i(20102),l=i(70586),o=i(87223),n=i(59390),a=i(42143),u=i(4095),p=i(98587),d=i(77987),h=i(37898),c=i(20256),y=i(86114),b=i(78724),m=i(20825);const f={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function v(e,t,i,s){const r=w(e,{},{context:s,isLabelSymbol:!1});(0,l.pC)(r)&&(t[i]=r)}function g(e,t,i,s){const r=w(e,{},{context:s,isLabelSymbol:!0});(0,l.pC)(r)&&(t[i]=r)}function w(e,t,i){if((0,l.Wi)(e))return null;const{context:v,isLabelSymbol:g}=i;if(v&&"web-scene"===v.origin&&!(e instanceof o.Z)&&!(e instanceof n.Z)){const i=function(e,t=f){if(!e)return{symbol:null};const{retainId:i=f.retainId,ignoreDrivers:l=f.ignoreDrivers,hasLabelingContext:o=f.hasLabelingContext,retainCIM:v=f.retainCIM}=t;let g;if((0,s.dU)(e)||e instanceof n.Z)g=e.clone();else if("cim"===e.type){var w,_;const t=null==(w=e.data)||null==(_=w.symbol)?void 0:_.type;if("CIMPointSymbol"!==t)return{error:new r.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${t||"unknown"}' is unsupported in 3D`,{symbol:e})};g=v?e.clone():a.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)g=p.Z.fromSimpleLineSymbol(e);else if(e instanceof d.Z)g=a.Z.fromSimpleMarkerSymbol(e);else if(e instanceof h.Z)g=a.Z.fromPictureMarkerSymbol(e);else if(e instanceof c.Z)g=y.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof b.Z))return{error:new r.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};g=o?m.Z.fromTextSymbol(e):a.Z.fromTextSymbol(e)}if(i&&"cim"!==g.type&&(g.id=e.id),l&&(0,s.dU)(g))for(let e=0;e<g.symbolLayers.length;++e)g.symbolLayers.getItemAt(e)._ignoreDrivers=!0;return{symbol:g}}(e,{retainCIM:!0,hasLabelingContext:g});return(0,l.pC)(i.symbol)?i.symbol.write(t,v):(v.messages&&v.messages.push(new r.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:v,error:i.error})),null)}return v&&"web-map"===v.origin&&"web-style"===e.type?(v.messages&&v.messages.push(new r.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in webmaps. Use CIMSymbol instead when working with WebMap in MapView.`,{symbol:e,context:v})),null):e.write(t,v)}function _(e,t){return(0,s.S9)(e,null,t)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9989],{16453:(e,t,i)=>{i.d(t,{R:()=>g,w:()=>w});var s=i(43697),r=i(15923),l=i(70586),o=i(41103),n=i(22974),a=i(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,i=this._originStores[a.s3.DEFAULTS];i&&i.forEach(((e,i)=>{t.set(i,(0,n.d9)(e),a.s3.DEFAULTS)}));for(let i=a.s3.SERVICE;i<a.kk;i++){const s=this._originStores[i];s&&s.forEach(((s,r)=>{e&&e.has(r)||t.set(r,(0,n.d9)(s),i)}))}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=a.s3.USER){let s=this._originStores[i];if(s||(s=new Map,this._originStores[i]=s),s.set(e,t),!this._values.has(e)||(0,l.j0)(this._propertyOriginMap.get(e))<=i){const s=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),s!==t}return!1}delete(e,t=a.s3.USER){const i=this._originStores[t];if(!i)return;const s=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return s}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],s=i&&i.get(e),r=this._values.get(e);return this._values.set(e,s),this._propertyOriginMap.set(e,t),r!==s}originOf(e){return this._propertyOriginMap.get(e)||a.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var p=i(50549),d=i(1153),h=i(52011);const c=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,l.j0)((0,d.vw)(this)),i=t.store,s=new u;t.store=s,(0,o.M)(t,i,s)}read(e,t){(0,p.i)(this,e,t)}getAtOrigin(e,t){const i=y(this),s=(0,a.M9)(t);if("string"==typeof e)return i.get(e,s);const r={};return e.forEach((e=>{r[e]=i.get(e,s)})),r}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return y(this).originOf(e)}revert(e,t){const i=y(this),s=(0,a.M9)(t),r=(0,d.vw)(this);let l;l="string"==typeof e?"*"===e?i.keys(s):[e]:e,l.forEach((e=>{r.invalidate(e),i.revert(e,s),r.commit(e)}))}};return t=(0,s._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function y(e){return(0,d.vw)(e).store}let b=class extends(c(r.Z)){};b=(0,s._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],b);var m=i(76169);const f=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return v(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,m.c)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,d.vw)(this).setAtOrigin(e,t,(0,a.M9)(i))}removeOrigin(e){const t=v(this),i=(0,a.M9)(e),s=t.keys(i);for(const e of s)t.originOf(e)===i&&t.set(e,t.get(e,i),a.s3.USER)}updateOrigin(e,t){const i=v(this),s=(0,a.M9)(t),r=this.get(e);for(let t=s+1;t<a.kk;++t)i.delete(e,t);i.set(e,r,s)}toJSON(e){return this.write({},e)}};return t=(0,s._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,d.vw)(e).store}const g=e=>{let t=class extends(f(c(e))){constructor(...e){super(...e)}};return t=(0,s._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],t),t};let w=class extends(g(r.Z)){};w=(0,s._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],w)},44422:(e,t,i)=>{i.d(t,{B:()=>r});var s=i(5600);function r(e,t){const i=t?{...t,source:e}:e;return(0,s.Cb)({aliasOf:i})}},29600:(e,t,i)=>{i.d(t,{Z:()=>w});var s=i(43697),r=i(68773),l=(i(66577),i(3172)),o=i(20102),n=i(32448),a=i(10699),u=i(83379),p=i(92604),d=i(95330),h=i(17452),c=i(5600),y=(i(67676),i(80442),i(75215),i(52011)),b=i(6570),m=i(82971);let f=0;const v=p.Z.getLogger("esri.layers.Layer");let g=class extends(n.Z.EventedMixin((0,a.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new b.Z(-180,-90,180,90,m.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,s=await i.e(3529).then(i.bind(i,63529));try{return await s.fromUrl(t)}catch(e){throw v.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},s=await i.e(4579).then(i.bind(i,44579));try{return await s.fromItem(t)}catch(e){const i=t&&t.portalItem,s=i&&i.id||"unset",l=i&&i.portal&&i.portal.url||r.Z.portalUrl;throw v.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+l+"', id: '"+s+"')",e),e}}initialize(){this.when().catch((e=>{var t,i;(0,d.D_)(e)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(i=this.id)?i:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,h.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,l.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,s._)([(0,c.Cb)({type:String})],g.prototype,"attributionDataUrl",void 0),(0,s._)([(0,c.Cb)({type:b.Z})],g.prototype,"fullExtent",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],g.prototype,"hasAttributionData",null),(0,s._)([(0,c.Cb)({type:String,clonable:!1})],g.prototype,"id",void 0),(0,s._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],g.prototype,"legendEnabled",void 0),(0,s._)([(0,c.Cb)({type:["show","hide","hide-children"]})],g.prototype,"listMode",void 0),(0,s._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],g.prototype,"opacity",void 0),(0,s._)([(0,c.Cb)({clonable:!1})],g.prototype,"parent",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],g.prototype,"parsedUrl",null),(0,s._)([(0,c.Cb)({type:Boolean})],g.prototype,"popupEnabled",void 0),(0,s._)([(0,c.Cb)({type:Boolean})],g.prototype,"attributionVisible",void 0),(0,s._)([(0,c.Cb)({type:m.Z})],g.prototype,"spatialReference",void 0),(0,s._)([(0,c.Cb)({type:String})],g.prototype,"title",void 0),(0,s._)([(0,c.Cb)({type:String,readOnly:!0,json:{read:!1}})],g.prototype,"type",void 0),(0,s._)([(0,c.Cb)()],g.prototype,"url",void 0),(0,s._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],g.prototype,"visible",void 0),g=(0,s._)([(0,y.j)("esri.layers.Layer")],g);const w=g},16050:(e,t,i)=>{i.d(t,{Z:()=>O});var s,r=i(43697),l=i(78223),o=i(35454),n=i(22974),a=i(92604),u=i(70586),p=i(5600),d=i(90578),h=i(36030),c=i(71715),y=i(52011),b=i(30556),m=i(75215),f=i(35671),v=i(5499),g=i(12571),w=i(32984),_=i(9833),V=i(66338),S=i(59266);const x=a.Z.getLogger("esri.renderers.ClassBreaksRenderer"),C="percent-of-total",I="field",j=new o.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:C,esriNormalizeByField:I}),z=(0,m.se)(w.Z);let E=s=class extends((0,g.W)(v.Z)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map((e=>{const t=new w.Z;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t}))}writeClassBreakInfos(e,t,i,s){const r=e.map((e=>e.write({},s)));this._areClassBreaksConsecutive()&&r.forEach((e=>delete e.classMinValue)),t[i]=r}castField(e){return null==e?e:"function"==typeof e?(x.error(".field: field must be a string value"),null):(0,m.Zs)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=(t?I:i&&C)||null,t&&i&&x.warn("warning: both normalizationField and normalizationTotal are set!")):e!==I&&e!==C||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new w.Z({minValue:e,maxValue:t,symbol:(0,l.se)(i)}):z((0,n.d9)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&x.warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&(i={...i,arcade:await(0,S.LC)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade)))return void x.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))){const e=await(0,S.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,n.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,f.io)(e,t,this.valueExpression)];(0,f.AB)(e,t,this.field),(0,f.AB)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l}=(0,u.Pt)(t,{});let o=this._compiledValueExpression.valueExpression===this.valueExpression?this._compiledValueExpression.compiledFunction:null;const n=(0,u.Wg)(l).arcadeUtils;if(!o){const e=n.createSyntaxTree(this.valueExpression);o=n.createFunction(e),this._compiledValueExpression.compiledFunction=o}this._compiledValueExpression.valueExpression=this.valueExpression;const a=n.executeFunction(o,n.createExecContext(e,n.getViewInfo({viewingMode:i,scale:s,spatialReference:r})));return this._getBreakIndexfromInfos(a)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let r=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(i[this.normalizationField]);if("log"===s)r=Math.log(r)*Math.LOG10E;else if(s!==C||isNaN(e)){if(s===I&&!isNaN(t)){if(isNaN(r)||isNaN(t))return-1;r/=t}}else r=r/e*100}return this._getBreakIndexfromInfos(r)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,r._)([(0,p.Cb)(_.K)],E.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,p.Cb)({type:[w.Z]})],E.prototype,"classBreakInfos",void 0),(0,r._)([(0,c.r)("classBreakInfos")],E.prototype,"readClassBreakInfos",null),(0,r._)([(0,b.c)("classBreakInfos")],E.prototype,"writeClassBreakInfos",null),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"defaultLabel",void 0),(0,r._)([(0,p.Cb)(_.G)],E.prototype,"defaultSymbol",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"field",void 0),(0,r._)([(0,d.p)("field")],E.prototype,"castField",null),(0,r._)([(0,p.Cb)({type:Boolean})],E.prototype,"isMaxInclusive",void 0),(0,r._)([(0,p.Cb)({type:V.I,json:{write:!0}})],E.prototype,"legendOptions",void 0),(0,r._)([(0,p.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],E.prototype,"minValue",null),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"normalizationField",void 0),(0,r._)([(0,p.Cb)({type:Number,cast:e=>(0,m.q9)(e),json:{write:!0}})],E.prototype,"normalizationTotal",void 0),(0,r._)([(0,p.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write}})],E.prototype,"normalizationType",null),(0,r._)([(0,h.J)({classBreaks:"class-breaks"})],E.prototype,"type",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"valueExpression",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"valueExpressionTitle",void 0),E=s=(0,r._)([(0,y.j)("esri.renderers.ClassBreaksRenderer")],E);const O=E},5499:(e,t,i)=>{i.d(t,{Z:()=>d});var s=i(43697),r=i(35454),l=i(96674),o=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),a=i(69237);const u=new r.X({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary"},{ignoreUnknown:!0});let p=class extends l.wq{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,o.Cb)({type:a.Z,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,o.Cb)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0}}})],p.prototype,"type",void 0),p=(0,s._)([(0,n.j)("esri.renderers.Renderer")],p);const d=p},30687:(e,t,i)=>{i.d(t,{Z:()=>T});var s,r=i(43697),l=i(78223),o=i(20102),n=i(22974),a=i(92604),u=i(70586),p=i(78286),d=i(5600),h=i(90578),c=i(36030),y=i(71715),b=i(52011),m=i(30556),f=i(22862),v=i(75215),g=i(35671),w=i(65587),_=i(5499),V=i(12571),S=i(9833),x=i(66338),C=i(44262),I=i(59266),j=i(25929),z=i(27391),E=i(59390);const O=a.Z.getLogger("esri.renderers.UniqueValueRenderer"),F=(0,v.se)(C.Z);let k=s=class extends((0,V.W)(_.Z)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this.type="unique-value",this.backgroundFillSymbol=null,this.field=null,this.field2=null,this.field3=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.fieldDelimiter=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let r=0;r<t.length;r++){const l=e.find((e=>e.value===t[r].value));l?(0,f.Hg)(l,t[r])?(s.changed.push({type:"complete",oldValue:l,newValue:t[r]}),i=!0):s.unchanged.push({oldValue:l,newValue:t[r]}):(s.added.push(t[r]),i=!0)}for(let r=0;r<e.length;r++)t.find((t=>t.value===e[r].value))||(s.removed.push(e[r]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[])}get _cache(){return{compiledFunc:null}}castField(e){return null==e||"function"==typeof e?e:(0,v.Zs)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s&&s.messages?s.messages.push(new o.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):O.error(".field: cannot write field to JSON since it's not a string value")}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}readPortal(e,t,i){return i.portal||w.Z.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,j.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,j.t)(e.styleUrl,s))}set uniqueValueInfos(e){this.styleOrigin?O.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void O.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?F(e):new C.Z({value:e,symbol:(0,l.se)(t)}),this.uniqueValueInfos.push(i),this._valueInfoMap[i.value]=i}removeUniqueValueInfo(e){if(this.styleOrigin)O.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");else for(let t=0;t<this.uniqueValueInfos.length;t++)if(this.uniqueValueInfos[t].value===e+""){delete this._valueInfoMap[e],this.uniqueValueInfos.splice(t,1);break}}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&(i={...i,arcade:await(0,I.LC)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade)))return void O.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i&&i.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&((0,u.Wi)(i)||(0,u.Wi)(i.arcade))){const e=await(0,I.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s&&s.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos)t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return`${JSON.stringify(this.backgroundFillSymbol)}.${JSON.stringify(this.defaultSymbol)}.${this.uniqueValueInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new s({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.d9)(this.defaultSymbol),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,n.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.d9)(this.uniqueValueInfos);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.d9)(this.styleOrigin))),Object.freeze(t)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,g.io)(e,t,this.valueExpression)];(0,g.AB)(e,t,this.field),(0,g.AB)(e,t,this.field2),(0,g.AB)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,z.n2)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new E.Z({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const r=new C.Z({value:i.name,symbol:s});t.push(r),this._valueInfoMap[i.name]=r})),this._set("uniqueValueInfos",Object.freeze(t)),!this.defaultSymbol&&this.uniqueValueInfos.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateValueInfoMap(){this._valueInfoMap={},this.uniqueValueInfos.forEach((e=>this._valueInfoMap[e.value+""]=e))}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l}=(0,u.Pt)(t,{});let o=this._cache.compiledFunc;const n=(0,u.Wg)(l).arcadeUtils;if(!o){const e=n.createSyntaxTree(this.valueExpression);o=n.createFunction(e),this._cache.compiledFunc=o}const a=n.executeFunction(o,n.createExecContext(e,n.getViewInfo({viewingMode:i,scale:s,spatialReference:r})));return this._valueInfoMap[a+""]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if("function"!=typeof t&&this.field2){const e=this.field2,r=this.field3,l=[];t&&l.push(i[t]),e&&l.push(i[e]),r&&l.push(i[r]),s=l.join(this.fieldDelimiter||"")}else"function"==typeof t?s=t(e):t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new s(t&&t.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t&&t.portal||w.Z.getDefault());const r=i.populateFromStyle();return r.catch((t=>{O.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),r}static fromStyleUrl(e,t){const i=new s(t&&t.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const r=i.populateFromStyle();return r.catch((t=>{O.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),r}};(0,r._)([(0,d.Cb)({readOnly:!0})],k.prototype,"_cache",null),(0,r._)([(0,c.J)({uniqueValue:"unique-value"})],k.prototype,"type",void 0),(0,r._)([(0,d.Cb)(S.K)],k.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,d.Cb)({json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],k.prototype,"field",void 0),(0,r._)([(0,h.p)("field")],k.prototype,"castField",null),(0,r._)([(0,m.c)("field")],k.prototype,"writeField",null),(0,r._)([(0,d.Cb)({type:String,json:{write:!0}})],k.prototype,"field2",void 0),(0,r._)([(0,d.Cb)({type:String,json:{write:!0}})],k.prototype,"field3",void 0),(0,r._)([(0,d.Cb)({type:String,json:{write:!0}})],k.prototype,"valueExpression",void 0),(0,r._)([(0,d.Cb)({type:String,json:{write:!0}})],k.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,d.Cb)({type:x.I,json:{write:!0}})],k.prototype,"legendOptions",void 0),(0,r._)([(0,d.Cb)({type:String,json:{write:!0}})],k.prototype,"defaultLabel",void 0),(0,r._)([(0,d.Cb)((0,p.RH)({...S.G},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],k.prototype,"defaultSymbol",null),(0,r._)([(0,d.Cb)({type:String,json:{write:!0}})],k.prototype,"fieldDelimiter",void 0),(0,r._)([(0,d.Cb)({type:w.Z,readOnly:!0})],k.prototype,"portal",void 0),(0,r._)([(0,y.r)("portal",["styleName"])],k.prototype,"readPortal",null),(0,r._)([(0,d.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],k.prototype,"styleOrigin",void 0),(0,r._)([(0,y.r)("styleOrigin",["styleName","styleUrl"])],k.prototype,"readStyleOrigin",null),(0,r._)([(0,m.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],k.prototype,"writeStyleOrigin",null),(0,r._)([(0,d.Cb)({type:[C.Z],json:{write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],k.prototype,"uniqueValueInfos",null),k=s=(0,r._)([(0,b.j)("esri.renderers.UniqueValueRenderer")],k);const T=k},12571:(e,t,i)=>{i.d(t,{W:()=>Z});var s,r=i(43697),l=i(5600),o=(i(67676),i(80442),i(75215)),n=i(71715),a=i(52011),u=i(30556),p=i(35671),d=i(77997),h=i(21849);let c=s=class extends d.Z{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,l.Cb)({readOnly:!0})],c.prototype,"cache",null),(0,r._)([(0,l.Cb)({type:["color"],json:{type:["colorInfo"]}})],c.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"normalizationField",void 0),(0,r._)([(0,l.Cb)({type:[h.Z],json:{write:!0}})],c.prototype,"stops",null),c=s=(0,r._)([(0,a.j)("esri.renderers.visualVariables.ColorVariable")],c);const y=c;var b,m=i(96674),f=i(65242);let v=b=class extends m.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,f.b)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,f.a)(e)}clone(){return new b({label:this.label,opacity:this.opacity,value:this.value})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],v.prototype,"label",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{type:o.z8,write:{target:"transparency"}}})],v.prototype,"opacity",void 0),(0,r._)([(0,n.r)("opacity",["transparency"])],v.prototype,"readOpacity",null),(0,r._)([(0,u.c)("opacity")],v.prototype,"writeOpacity",null),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],v.prototype,"value",void 0),v=b=(0,r._)([(0,a.j)("esri.renderers.visualVariables.support.OpacityStop")],v);const g=v;var w;let _=w=class extends d.Z{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new w({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,l.Cb)({readOnly:!0})],_.prototype,"cache",null),(0,r._)([(0,l.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],_.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],_.prototype,"normalizationField",void 0),(0,r._)([(0,l.Cb)({type:[g],json:{write:!0}})],_.prototype,"stops",null),_=w=(0,r._)([(0,a.j)("esri.renderers.visualVariables.OpacityVariable")],_);const V=_;var S=i(89513),x=i(27922),C=i(15923),I=i(35454),j=i(92604),z=i(20941);const E=j.Z.getLogger("esri.renderers.visualVariables.VisualVariableFactory"),O={color:y,size:x.Z,opacity:V,rotation:S.Z},F=new I.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),k=/^\[([^\]]+)\]$/i;let T=class extends C.Z{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),(e=e&&e.filter((e=>!!e)))&&e.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:r}=t,l=s&&s.match(k),o=l&&l[1];if(o&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:o})),e)return e.map((e=>{const t=F.read(e.type),s=O[t];s||(E.warn(`Unknown variable type: ${t}`),i&&i.messages&&i.messages.push(new z.Z("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const r=new s;return r.read(e,i),r}))}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,r._)([(0,l.Cb)()],T.prototype,"visualVariables",null),T=(0,r._)([(0,a.j)("esri.renderers.visualVariables.VisualVariableFactory")],T);const M=T,q={base:d.Z,key:"type",typeMap:{opacity:V,color:y,rotation:S.Z,size:x.Z}},Z=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new M}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const i=this.visualVariables;return i?i.filter((i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))):[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,p.AB)(e,t,s.field),s.normalizationField&&(0,p.AB)(e,t,s.normalizationField),s.valueExpression&&await(0,p.io)(e,t,s.valueExpression))}};return(0,r._)([(0,l.Cb)({types:[q],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,r._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,r._)([(0,u.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,r._)([(0,a.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t}},69237:(e,t,i)=>{i.d(t,{Z:()=>k});var s,r=i(43697),l=i(35454),o=i(96674),n=i(22974),a=i(5600),u=i(75215),p=i(71715),d=i(52011);i(67676),i(80442);let h=s=class extends o.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var c;(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"minValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"maxValue",void 0),h=s=(0,r._)([(0,d.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],h);let y=c=class extends o.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new c({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,n.d9)(this.classBreakInfos)})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,r._)([(0,a.Cb)({type:[h],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=c=(0,r._)([(0,d.j)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var b,m=i(90578);const f=new l.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),v=new l.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),g={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},w=["high-to-low","above-and-below","centered-on","extremes"],_=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],V=["seconds","minutes","hours","days","months","years"];let S=b=class extends o.wq{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new b({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"endTime",void 0),(0,r._)([(0,m.p)("endTime")],S.prototype,"castEndTime",null),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],S.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"minSliderValue",void 0),(0,r._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"startTime",void 0),(0,r._)([(0,m.p)("startTime")],S.prototype,"castStartTime",null),(0,r._)([(0,a.Cb)({type:f.apiValues,value:null,json:{type:f.jsonValues,read:f.read,write:f.write}})],S.prototype,"style",null),(0,r._)([(0,a.Cb)({type:_,value:null,json:{type:_,origins:{"web-scene":{type:w,write:{writer:(e,t)=>{w.includes(e)&&(t.theme=e)}}}},write:!0}})],S.prototype,"theme",null),(0,r._)([(0,a.Cb)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],S.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:V,json:{type:V,write:!0}})],S.prototype,"units",void 0),S=b=(0,r._)([(0,d.j)("esri.renderers.support.AuthoringInfoVisualVariable")],S);const x=S;var C,I=i(94593);const j=new l.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),z=new l.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),E=new l.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),O=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let F=C=class extends o.wq{constructor(e){super(e),this.colorRamp=null,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){if(e)return(0,I.i)(e)}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new C({classificationMethod:this.classificationMethod,colorRamp:(0,n.d9)(this.colorRamp),fields:this.fields&&this.fields.slice(0),field1:(0,n.d9)(this.field1),field2:(0,n.d9)(this.field2),focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,r._)([(0,a.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-document":{default:"manual",type:j.jsonValues,read:j.read,write:j.write}}}})],F.prototype,"classificationMethod",null),(0,r._)([(0,a.Cb)({types:I.V,json:{write:!0}})],F.prototype,"colorRamp",void 0),(0,r._)([(0,p.r)("colorRamp")],F.prototype,"readColorRamp",null),(0,r._)([(0,a.Cb)({type:[String],value:null,json:{write:!0}})],F.prototype,"fields",null),(0,r._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],F.prototype,"field1",null),(0,r._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],F.prototype,"field2",null),(0,r._)([(0,a.Cb)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],F.prototype,"flowTheme",null),(0,r._)([(0,a.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],F.prototype,"focus",null),(0,r._)([(0,a.Cb)({type:Number,value:null,json:{type:u.z8,write:!0}})],F.prototype,"numClasses",null),(0,r._)([(0,a.Cb)({type:O,json:{type:O,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],F.prototype,"lengthUnit",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"minSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"statistics",null),(0,r._)([(0,a.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],F.prototype,"standardDeviationInterval",null),(0,r._)([(0,a.Cb)({type:z.apiValues,value:null,json:{type:z.jsonValues,read:z.read,write:z.write,origins:{"web-scene":{type:E.jsonValues,write:{writer:E.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],F.prototype,"type",null),(0,r._)([(0,a.Cb)({type:[x],json:{write:!0}})],F.prototype,"visualVariables",void 0),(0,r._)([(0,a.Cb)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],F.prototype,"univariateSymbolStyle",null),(0,r._)([(0,a.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],F.prototype,"univariateTheme",null),F=C=(0,r._)([(0,d.j)("esri.renderers.support.AuthoringInfo")],F);const k=F},32984:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),o=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),a=i(9833);let u=s=class extends l.wq{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r._)([(0,o.Cb)(a.G)],u.prototype,"symbol",void 0),u=s=(0,r._)([(0,n.j)("esri.renderers.support.ClassBreakInfo")],u);const p=u},66338:(e,t,i)=>{i.d(t,{I:()=>a});var s,r=i(43697),l=i(96674),o=i(5600),n=(i(67676),i(80442),i(75215),i(52011));let a=s=class extends l.wq{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=s=(0,r._)([(0,n.j)("esri.renderers.support.LegendOptions")],a)},44262:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),l=i(96674),o=i(5600),n=(i(67676),i(80442),i(90578)),a=i(52011),u=i(9833);let p=s=class extends l.wq{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}castValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,r._)([(0,o.Cb)(u.G)],p.prototype,"symbol",void 0),(0,r._)([(0,o.Cb)({json:{type:String,write:{writer:(e,t)=>{t.value=null==e?void 0:e.toString()}}}})],p.prototype,"value",void 0),(0,r._)([(0,n.p)("value")],p.prototype,"castValue",null),p=s=(0,r._)([(0,a.j)("esri.renderers.support.UniqueValueInfo")],p);const d=p},9833:(e,t,i)=>{i.d(t,{G:()=>a,K:()=>u});var s=i(78223),r=i(63213),l=i(21878),o=i(89164),n=i(86114);const a={types:s.QT,json:{write:{writer:l.cW},origins:{"web-scene":{types:s.f_,write:{writer:l.cW},read:{reader:(0,r.d)({types:s.f_})}}}}},u={types:{base:o.Z,key:"type",typeMap:{"simple-fill":s.LB.typeMap["simple-fill"],"picture-fill":s.LB.typeMap["picture-fill"],"polygon-3d":s.LB.typeMap["polygon-3d"]}},json:{write:{writer:l.cW},origins:{"web-scene":{type:n.Z,write:{writer:l.cW}}}}}},89513:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),l=i(20102),o=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),a=i(30556),u=i(77997);let p=s=class extends u.Z{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,i,s){if(s&&s.messages){const e=`visualVariables[${this.index}]`;s.messages.push(new l.Z("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:s}))}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};(0,r._)([(0,o.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,o.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,r._)([(0,o.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,r._)([(0,o.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,a.c)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=s=(0,r._)([(0,n.j)("esri.renderers.visualVariables.RotationVariable")],p);const d=p},27922:(e,t,i)=>{i.d(t,{Z:()=>F});var s,r=i(43697),l=i(20102),o=i(35454),n=i(92604),a=i(62357),u=i(5600),p=(i(67676),i(80442),i(90578)),d=i(71715),h=i(52011),c=i(30556),y=i(77997),b=i(96674);i(75215);let m=s=class extends b.wq{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new s({label:this.label,size:this.size,value:this.value})}};(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:a.t_,json:{write:!0}})],m.prototype,"size",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{write:!0}})],m.prototype,"value",void 0),m=s=(0,r._)([(0,h.j)("esri.renderers.visualVariables.support.SizeStop")],m);const f=m;var v,g=i(58439);let w=v=class extends g.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new v({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};(0,r._)([(0,u.Cb)({type:[Number],json:{write:!0}})],w.prototype,"customValues",void 0),w=v=(0,r._)([(0,h.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],w);const _=w;var V,S=i(51706),x=i(28101);const C=n.Z.getLogger("esri.renderers.visualVariables.SizeVariable"),I=new o.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),j=new o.X({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function z(e){if(null!=e)return"string"==typeof e||"number"==typeof e?(0,a.t_)(e):"size"===e.type?(0,S.iY)(e)?e:(delete(e={...e}).type,new O(e)):void 0}function E(e,t,i){if("object"!=typeof e)return e;const s=new O;return s.read(e,i),s}let O=V=class extends y.Z{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:x.B3.test(this.valueExpression)}}set expression(e){C.warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){(0,S.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,S.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,S.PS)(this)}set maxDataValue(e){e&&this.stops&&(C.warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(C.warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return z(e)}readMaxSize(e,t,i){return E(e,0,i)}set minDataValue(e){e&&this.stops&&(C.warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(C.warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return z(e)}readMinSize(e,t,i){return E(e,0,i)}get arcadeRequired(){return!!this.valueExpression||this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(C.warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,S.QW)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s&&s.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new l.Z("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?j.read(e):null}clone(){return new V({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,S.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,S.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if(this.transformationType===S.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===S.hL.Stops){const e=this.stops,t=e.map((e=>e.size)).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,u.Cb)({readOnly:!0})],O.prototype,"cache",null),(0,r._)([(0,u.Cb)({type:I.apiValues,json:{type:I.jsonValues,origins:{"web-map":{read:!1}},read:I.read,write:I.write}})],O.prototype,"axis",void 0),(0,r._)([(0,u.Cb)({type:String,value:null,json:{read:!1}})],O.prototype,"expression",null),(0,r._)([(0,u.Cb)()],O.prototype,"index",null),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],O.prototype,"inputValueType",null),(0,r._)([(0,u.Cb)({type:_,json:{write:!0}})],O.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],O.prototype,"maxDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],O.prototype,"maxSize",null),(0,r._)([(0,p.p)("maxSize")],O.prototype,"castMaxSize",null),(0,r._)([(0,d.r)("maxSize")],O.prototype,"readMaxSize",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],O.prototype,"minDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],O.prototype,"minSize",null),(0,r._)([(0,p.p)("minSize")],O.prototype,"castMinSize",null),(0,r._)([(0,d.r)("minSize")],O.prototype,"readMinSize",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],O.prototype,"normalizationField",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],O.prototype,"arcadeRequired",null),(0,r._)([(0,u.Cb)({type:String})],O.prototype,"scaleBy",void 0),(0,r._)([(0,u.Cb)({type:[f],value:null,json:{write:!0}})],O.prototype,"stops",null),(0,r._)([(0,u.Cb)({type:["outline"],json:{write:!0}})],O.prototype,"target",void 0),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],O.prototype,"transformationType",null),(0,r._)([(0,u.Cb)({type:["size"],json:{type:["sizeInfo"]}})],O.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],O.prototype,"useSymbolValue",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],O.prototype,"valueExpression",void 0),(0,r._)([(0,d.r)("valueExpression",["valueExpression","expression"])],O.prototype,"readValueExpression",null),(0,r._)([(0,c.c)("web-scene","valueExpression")],O.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,u.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],O.prototype,"valueRepresentation",void 0),(0,r._)([(0,u.Cb)({type:j.apiValues,json:{write:j.write,origins:{"web-map":{read:!1},"web-scene":{write:!0}}}})],O.prototype,"valueUnit",void 0),(0,r._)([(0,d.r)("valueUnit")],O.prototype,"readValueUnit",null),O=V=(0,r._)([(0,h.j)("esri.renderers.visualVariables.SizeVariable")],O);const F=O},77997:(e,t,i)=>{i.d(t,{Z:()=>b});var s=i(43697),r=i(35454),l=i(96674),o=i(92604),n=i(5600),a=(i(67676),i(80442),i(90578)),u=i(52011),p=i(75215),d=i(58439);const h=o.Z.getLogger("esri.renderers.visualVariables.VisualVariable"),c=new r.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let y=class extends l.wq{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(h.error(".field: field must be a string value"),null):(0,p.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,n.Cb)()],y.prototype,"index",void 0),(0,s._)([(0,n.Cb)({type:c.apiValues,readOnly:!0,json:{read:c.read,write:c.write}})],y.prototype,"type",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,s._)([(0,a.p)("field")],y.prototype,"castField",null),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"valueExpression",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,n.Cb)({readOnly:!0})],y.prototype,"arcadeRequired",null),(0,s._)([(0,n.Cb)({type:d.Z,json:{write:!0}})],y.prototype,"legendOptions",void 0),y=(0,s._)([(0,u.j)("esri.renderers.visualVariables.VisualVariable")],y);const b=y},21849:(e,t,i)=>{i.d(t,{Z:()=>h});var s,r=i(43697),l=i(22303),o=i(96674),n=i(5600),a=(i(67676),i(80442),i(75215)),u=i(52011),p=i(30556);let d=s=class extends o.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=null==e?0:e}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r._)([(0,n.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],d.prototype,"color",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],d.prototype,"value",void 0),(0,r._)([(0,p.c)("value")],d.prototype,"writeValue",null),d=s=(0,r._)([(0,u.j)("esri.renderers.visualVariables.support.ColorStop")],d);const h=d},58439:(e,t,i)=>{i.d(t,{Z:()=>u});var s,r=i(43697),l=i(5600),o=(i(67676),i(80442),i(75215),i(52011)),n=i(66338);let a=s=class extends n.I{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},21878:(e,t,i)=>{i.d(t,{im:()=>_,cW:()=>v,vX:()=>g});var s=i(78223),r=i(20102),l=i(70586),o=i(87223),n=i(59390),a=i(42143),u=i(4095),p=i(98587),d=i(77987),h=i(37898),c=i(20256),y=i(86114),b=i(78724),m=i(20825);const f={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function v(e,t,i,s){const r=w(e,{},{context:s,isLabelSymbol:!1});(0,l.pC)(r)&&(t[i]=r)}function g(e,t,i,s){const r=w(e,{},{context:s,isLabelSymbol:!0});(0,l.pC)(r)&&(t[i]=r)}function w(e,t,i){if((0,l.Wi)(e))return null;const{context:v,isLabelSymbol:g}=i;if(v&&"web-scene"===v.origin&&!(e instanceof o.Z)&&!(e instanceof n.Z)){const i=function(e,t=f){if(!e)return{symbol:null};const{retainId:i=f.retainId,ignoreDrivers:l=f.ignoreDrivers,hasLabelingContext:o=f.hasLabelingContext,retainCIM:v=f.retainCIM}=t;let g;if((0,s.dU)(e)||e instanceof n.Z)g=e.clone();else if("cim"===e.type){var w,_;const t=null==(w=e.data)||null==(_=w.symbol)?void 0:_.type;if("CIMPointSymbol"!==t)return{error:new r.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${t||"unknown"}' is unsupported in 3D`,{symbol:e})};g=v?e.clone():a.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)g=p.Z.fromSimpleLineSymbol(e);else if(e instanceof d.Z)g=a.Z.fromSimpleMarkerSymbol(e);else if(e instanceof h.Z)g=a.Z.fromPictureMarkerSymbol(e);else if(e instanceof c.Z)g=y.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof b.Z))return{error:new r.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};g=o?m.Z.fromTextSymbol(e):a.Z.fromTextSymbol(e)}if(i&&"cim"!==g.type&&(g.id=e.id),l&&(0,s.dU)(g))for(let e=0;e<g.symbolLayers.length;++e)g.symbolLayers.getItemAt(e)._ignoreDrivers=!0;return{symbol:g}}(e,{retainCIM:!0,hasLabelingContext:g});return(0,l.pC)(i.symbol)?i.symbol.write(t,v):(v.messages&&v.messages.push(new r.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:v,error:i.error})),null)}return v&&"web-map"===v.origin&&"web-style"===e.type?(v.messages&&v.messages.push(new r.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in webmaps. Use CIMSymbol instead when working with WebMap in MapView.`,{symbol:e,context:v})),null):e.write(t,v)}function _(e,t){return(0,s.S9)(e,null,t)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8121,5235,2515,999,4475],{38171:(e,t,i)=>{i.d(t,{Z:()=>g});var r=i(43697),a=i(66577),o=i(51773),s=i(78223),n=i(2368),l=i(96674),p=i(70586),u=i(99001),c=i(5600),d=(i(67676),i(80442),i(75215),i(52011)),h=i(33955);function m(e){if(!(0,p.pC)(e))return null;const t={};for(const i in e){const r=e[i];r&&(t[i]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let y=class extends((0,n.J)(l.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,u.D)(),configurable:!0})}normalizeCtorArgs(e,t,i,r){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:i,popupTemplate:r}}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),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&(0,p.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&this.attributes[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:m(this.aggregateGeometries),geometry:(0,p.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,p.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){(0,p.pC)(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,i,r){if(!this.layer||!("graphicChanged"in this.layer))return;const a={graphic:this,property:e,oldValue:t,newValue:i};"attributes"===e&&(a.attributeName=r),this.layer.graphicChanged(a)}};(0,r._)([(0,c.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const r=(0,h.im)(e[i]);r&&(t[i]=r)}return 0!==Object.keys(t).length?t:null}}})],y.prototype,"aggregateGeometries",null),(0,r._)([(0,c.Cb)({value:null})],y.prototype,"attributes",null),(0,r._)([(0,c.Cb)({value:null,types:a.qM,json:{read:h.im}})],y.prototype,"geometry",null),(0,r._)([(0,c.Cb)({type:Boolean})],y.prototype,"isAggregate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],y.prototype,"layer",void 0),(0,r._)([(0,c.Cb)({type:o.Z})],y.prototype,"popupTemplate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],y.prototype,"sourceLayer",void 0),(0,r._)([(0,c.Cb)({value:null,types:s.LB})],y.prototype,"symbol",null),(0,r._)([(0,c.Cb)({type:Boolean,value:!0})],y.prototype,"visible",null),y=(0,r._)([(0,d.j)("esri.Graphic")],y),(y||(y={})).generateUID=u.D;const g=y},66643:(e,t,i)=>{i.d(t,{Ed:()=>o,UI:()=>s,mt:()=>l,q6:()=>n});var r=i(70586),a=i(95330);function o(e,t,i){return(0,a.as)(e.map(((e,r)=>t.apply(i,[e,r]))))}function s(e,t,i){return(0,a.as)(e.map(((e,r)=>t.apply(i,[e,r])))).then((e=>e.map((e=>e.value))))}function n(e){return(0,r.Wi)(e)?(0,a.DB)():e.then((e=>({ok:!0,value:e}))).catch((e=>({ok:!1,error:e})))}function l(e){return e.then((e=>({ok:!0,value:e}))).catch((e=>((0,a.r9)(e),{ok:!1,error:e})))}},74085:(e,t,i)=>{function r(e){}i.d(t,{Bg:()=>r}),i(80442)},70171:(e,t,i)=>{var r,a,o;let s;i.d(t,{Kd:()=>p,Ze:()=>h,qe:()=>c});const n=null!=(r=null==(a=globalThis.esriConfig)?void 0:a.locale)?r:null==(o=globalThis.dojoConfig)?void 0:o.locale;function l(){var e,t;return null!=(e=null!=n?n:null==(t=globalThis.navigator)?void 0:t.language)?e:"en"}function p(){return void 0===s&&(s=l()),s}const u=[];function c(e){return u.push(e),{remove(){u.splice(u.indexOf(e),1)}}}const d=[];function h(e){return d.push(e),{remove(){u.splice(d.indexOf(e),1)}}}null==globalThis.addEventListener||globalThis.addEventListener("languagechange",(function(){const e=null!=undefined?undefined:l();s!==e&&(s=e,[...d].forEach((t=>{t.call(null,e)})),[...u].forEach((t=>{t.call(null,e)})))}))},54295:(e,t,i)=>{i.d(t,{V:()=>s});var r=i(43697),a=i(5600),o=(i(67676),i(80442),i(75215),i(52011));const s=e=>{let t=class extends e{get apiKey(){var e;return this._isOverridden("apiKey")?this._get("apiKey"):function(e){return"portalItem"in e}(this)?null==(e=this.portalItem)?void 0:e.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,r._)([(0,a.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,r._)([(0,o.j)("esri.layers.mixins.APIKeyMixin")],t),t}},17287:(e,t,i)=>{i.d(t,{Y:()=>p});var r=i(43697),a=i(92604),o=i(70586),s=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),l=i(66677);const p=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.Qc)(this.url);if((0,o.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Nm)(e,a.Z.getLogger(this.declaredClass)))}};return(0,r._)([(0,s.Cb)()],t.prototype,"title",null),(0,r._)([(0,s.Cb)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,n.j)("esri.layers.mixins.ArcGISService")],t),t}},16859:(e,t,i)=>{i.d(t,{I:()=>w});var r=i(43697),a=i(40330),o=i(3172),s=i(66643),n=i(20102),l=i(92604),p=i(70586),u=i(95330),c=i(17452),d=i(5600),h=(i(67676),i(80442),i(75215),i(71715)),m=i(52011),y=i(30556),g=i(65587),f=i(15235),b=i(86082);const v=l.Z.getLogger("esri.layers.mixins.PortalLayer"),w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new f.default({id:t.itemId,portal:i&&i.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const r=await i.e(8062).then(i.bind(i,18062));return(0,u.k_)(t),await r.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,u.D_)(e)||v.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,u.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==a.id?void 0:a.id.findCredential(this.url):null;if(!t)return!0;const i=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.user=i,(0,p.Wi)(i)||null==i.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,i;const r=null==(t=this.portalItem)||null==(i=t.portal)?void 0:i.user;if(r)return r;const n=a.id.findServerInfo(this.url);if(null==n||!n.owningSystemUrl)return null;const l=`${n.owningSystemUrl}/sharing/rest`,u=g.Z.getDefault();if(u&&u.loaded&&(0,c.Fv)(u.restUrl)===(0,c.Fv)(l))return u.user;const d=`${l}/community/self`,h=(0,p.pC)(e)?e.signal:null,m=await(0,s.q6)((0,o.default)(d,{authMode:"no-prompt",query:{f:"json"},signal:h}));return m.ok?b.default.fromJSON(m.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t&&t.portal,r=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||g.Z.getDefault());return i&&r&&!(0,c.tm)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new n.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,d.Cb)({type:f.default})],t.prototype,"portalItem",null),(0,r._)([(0,h.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,y.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,d.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,r._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},C={credential:null,user:null}},70082:(e,t,i)=>{i.d(t,{Z:()=>c});var r=i(43697),a=i(2368),o=i(35454),s=i(96674),n=i(5600),l=(i(67676),i(80442),i(75215),i(52011));const p=new o.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,a.J)(s.wq)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,r._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"name",void 0),(0,r._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.Cb)({json:{read:p.read,write:p.write}})],u.prototype,"drawingTool",void 0),(0,r._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,r._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,r._)([(0,l.j)("esri.layers.support.FeatureTemplate")],u);const c=u},16451:(e,t,i)=>{i.d(t,{Z:()=>h});var r=i(43697),a=i(2368),o=i(96674),s=i(5600),n=(i(67676),i(80442),i(75215),i(71715)),l=i(52011),p=i(30556),u=i(72729),c=i(70082);let d=class extends((0,a.J)(o.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const i of Object.keys(e))t[i]=(0,u.im)(e[i]);return t}writeDomains(e,t){const i={};for(const t of Object.keys(e)){var r;e[t]&&(i[t]=null==(r=e[t])?void 0:r.toJSON())}t.domains=i}};(0,r._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"id",void 0),(0,r._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"name",void 0),(0,r._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"domains",void 0),(0,r._)([(0,n.r)("domains")],d.prototype,"readDomains",null),(0,r._)([(0,p.c)("domains")],d.prototype,"writeDomains",null),(0,r._)([(0,s.Cb)({type:[c.Z],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,r._)([(0,l.j)("esri.layers.support.FeatureType")],d);const h=d},56765:(e,t,i)=>{i.d(t,{Z:()=>u});var r,a=i(43697),o=i(80539),s=i(96674),n=i(5600),l=(i(67676),i(80442),i(75215),i(52011));let p=r=class extends s.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.Z}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,a._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"floorField",void 0),(0,a._)([(0,n.Cb)({json:{read:!1,write:!1}})],p.prototype,"viewAllMode",void 0),(0,a._)([(0,n.Cb)({json:{read:!1,write:!1}})],p.prototype,"viewAllLevelIds",void 0),p=r=(0,a._)([(0,l.j)("esri.layers.support.LayerFloorInfo")],p);const u=p},15235:(e,t,i)=>{i.r(t),i.d(t,{default:()=>T});var r=i(43697),a=i(99880),o=i(20102),s=i(96674),n=i(22974),l=i(83379),p=i(70586),u=i(17452),c=i(5600),d=i(75215),h=i(71715),m=i(52011),y=i(6570),g=i(65587),f=i(15923),b=i(92604),v=(i(67676),i(80442),i(90578));const w=b.Z.getLogger("esri.portal.PortalItemResource");let C=class extends f.Z{constructor(e){super(e),this.portalItem=null}normalizeCtorArgs(e){return e&&e.portalItem&&e.path?{...e,path:this._normalizePath(e.path,e.portalItem)}:e}set path(e){(0,p.pC)(e)&&(0,u.YP)(e)?w.error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",e)}_castPath(e){return this._normalizePath(e,this.portalItem)}get url(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}get itemRelativeUrl(){return this.portalItem&&this.path?`./resources/${this.path}`:null}fetch(e="json",t){const i=this.url;if((0,p.Wi)(i))throw new o.Z("portal-item-resource:fetch","Portal item resource does not refer to a valid item or path");return this.portalItem.portal._request(i,{responseType:e,query:{token:this.portalItem.apiKey},signal:(0,p.U2)(t,"signal")})}async update(e,t){return(await i.e(7873).then(i.bind(i,97873))).addOrUpdateResource(this,"update",e,t)}hasPath(){return(0,p.pC)(this.path)}_normalizePath(e,t){return(0,p.Wi)(e)?e:(e=e.replace(/^\/+/,""),(0,p.pC)(t)&&(0,u.YP)(e)&&(e=(0,u.PF)(e,t.itemUrl)),e.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,""))}};(0,r._)([(0,c.Cb)()],C.prototype,"portalItem",void 0),(0,r._)([(0,c.Cb)({type:String,value:null})],C.prototype,"path",null),(0,r._)([(0,v.p)("path")],C.prototype,"_castPath",null),(0,r._)([(0,c.Cb)({type:String,readOnly:!0})],C.prototype,"url",null),(0,r._)([(0,c.Cb)({type:String,readOnly:!0})],C.prototype,"itemRelativeUrl",null),C=(0,r._)([(0,m.j)("esri.portal.PortalItemResource")],C);const _=C;let k=class extends f.Z{constructor(e){super(e),this.created=null,this.rating=null}};(0,r._)([(0,c.Cb)()],k.prototype,"created",void 0),(0,r._)([(0,c.Cb)()],k.prototype,"rating",void 0),k=(0,r._)([(0,m.j)("esri.portal.PortalRating")],k);const x=k;var S;let I=S=class extends((0,s.eC)(l.Z)){constructor(e){super(e),this.access=null,this.accessInformation=null,this.apiKey=null,this.applicationProxies=null,this.avgRating=null,this.categories=null,this.created=null,this.culture=null,this.description=null,this.extent=null,this.groupCategories=null,this.id=null,this.itemControl=null,this.licenseInfo=null,this.modified=null,this.name=null,this.numComments=null,this.numRatings=null,this.numViews=null,this.owner=null,this.ownerFolder=null,this.portal=null,this.screenshots=null,this.size=null,this.snippet=null,this.sourceJSON=null,this.tags=null,this.title=null,this.type=null,this.typeKeywords=null,this.url=null}static from(e){return(0,d.TJ)(S,e)}destroy(){this.portal=null}get displayName(){const e=this.type,t=this.typeKeywords||[];let i=e;return"Feature Service"===e||"Feature Collection"===e?i=t.includes("Table")?"Table":t.includes("Route Layer")?"Route Layer":t.includes("Markup")?"Markup":"Feature Layer":"Image Service"===e?i=t.includes("Elevation 3D Layer")?"Elevation Layer":t.includes("Tiled Imagery")?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===e?i="Scene Layer":"Media Service"===e?i="Media Layer":"Scene Package"===e?i="Scene Layer Package":"Stream Service"===e?i="Feature Layer":"Geoprocessing Service"===e&&this.portal&&this.portal.isPortal?i=t.includes("Web Tool")?"Tool":"Geoprocessing Service":"Geocoding Service"===e?i="Locator":"Geoenrichment Service"===e?i="GeoEnrichment Service":"Microsoft Powerpoint"===e?i="Microsoft PowerPoint":"GeoJson"===e?i="GeoJSON":"Globe Service"===e?i="Globe Layer":"Vector Tile Service"===e?i="Tile Layer":"netCDF"===e?i="NetCDF":"Map Service"===e?i=t.includes("Spatiotemporal")||!t.includes("Hosted Service")&&!t.includes("Tiled")||t.includes("Relational")?"Map Image Layer":"Tile Layer":e&&e.toLowerCase().includes("add in")?i=e.replace(/(add in)/gi,"Add-In"):"datastore catalog service"===e?i="Big Data File Share":"Compact Tile Package"===e?i="Tile Package (tpkx)":"OGCFeatureServer"===e?i="OGC Feature Layer":"web mapping application"===e&&t.includes("configurableApp")&&(i="Instant App"),i}readExtent(e){return e&&e.length?new y.Z(e[0][0],e[0][1],e[1][0],e[1][1]):null}get iconUrl(){const e=this.type&&this.type.toLowerCase()||"",t=this.typeKeywords||[];let i,r=!1,o=!1,s=!1,n=!1,l=!1,p=!1;return e.indexOf("service")>0||"feature collection"===e||"kml"===e||"wms"===e||"wmts"===e||"wfs"===e?(r=t.includes("Hosted Service"),"feature service"===e||"feature collection"===e||"kml"===e||"wfs"===e?(o=t.includes("Table"),s=t.includes("Route Layer"),n=t.includes("Markup"),l=t.includes("Spatiotemporal"),p=t.includes("UtilityNetwork"),i=l&&o?"spatiotemporaltable":o?"table":s?"routelayer":n?"markup":l?"spatiotemporal":r?"featureshosted":p?"utilitynetwork":"features"):i="map service"===e||"wms"===e||"wmts"===e?r||t.includes("Tiled")||"wmts"===e?"maptiles":"mapimages":"scene service"===e?t.includes("Line")?"sceneweblayerline":t.includes("3DObject")?"sceneweblayermultipatch":t.includes("Point")?"sceneweblayerpoint":t.includes("IntegratedMesh")?"sceneweblayermesh":t.includes("PointCloud")?"sceneweblayerpointcloud":t.includes("Polygon")?"sceneweblayerpolygon":t.includes("Building")?"sceneweblayerbuilding":t.includes("Voxel")?"sceneweblayervoxel":"sceneweblayer":"image service"===e?t.includes("Elevation 3D Layer")?"elevationlayer":t.includes("Tiled Imagery")?"tiledimagerylayer":"imagery":"stream service"===e?"streamlayer":"media service"===e?"mediaservice":"vector tile service"===e?"vectortile":"datastore catalog service"===e?"datastorecollection":"geocoding service"===e?"geocodeservice":"geoprocessing service"===e&&t.includes("Web Tool")&&this.portal&&this.portal.isPortal?"tool":"layers"):i="web map"===e||"cityengine web scene"===e?"maps":"web scene"===e?t.includes("ViewingMode-Local")?"webscenelocal":"websceneglobal":"web mapping application"===e&&t.includes("configurableApp")?"instantapps":"web mapping application"===e||"mobile application"===e||"application"===e||"operation view"===e||"desktop application"===e?"apps":"map document"===e||"map package"===e||"published map"===e||"scene document"===e||"globe document"===e||"basemap package"===e||"mobile basemap package"===e||"mobile map package"===e||"project package"===e||"project template"===e||"pro map"===e||"layout"===e||"layer"===e&&t.includes("ArcGIS Pro")||"explorer map"===e&&t.indexOf("Explorer Document")?"mapsgray":"service definition"===e||"csv"===e||"shapefile"===e||"cad drawing"===e||"geojson"===e||"360 vr experience"===e||"netcdf"===e||"administrative report"===e?"datafiles":"explorer add in"===e||"desktop add in"===e||"windows viewer add in"===e||"windows viewer configuration"===e?"appsgray":"arcgis pro add in"===e||"arcgis pro configuration"===e?"addindesktop":"rule package"===e||"file geodatabase"===e||"sqlite geodatabase"===e||"csv collection"===e||"kml collection"===e||"windows mobile package"===e||"map template"===e||"desktop application template"===e||"gml"===e||"arcpad package"===e||"code sample"===e||"form"===e||"document link"===e||"earth configuration"===e||"operations dashboard add in"===e||"rules package"===e||"image"===e||"workflow manager package"===e||"explorer map"===e&&t.includes("Explorer Mapping Application")||t.includes("Document")?"datafilesgray":"network analysis service"===e||"geoprocessing service"===e||"geodata service"===e||"geometry service"===e||"geoprocessing package"===e||"locator package"===e||"geoprocessing sample"===e||"workflow manager service"===e?"toolsgray":"layer"===e||"layer package"===e||"explorer layer"===e?"layersgray":"scene package"===e?"scenepackage":"mobile scene package"===e?"mobilescenepackage":"tile package"===e||"compact tile package"===e?"tilepackage":"task file"===e?"taskfile":"report template"===e?"report-template":"statistical data collection"===e?"statisticaldatacollection":"insights workbook"===e?"workbook":"insights model"===e?"insightsmodel":"insights page"===e?"insightspage":"insights theme"===e?"insightstheme":"hub initiative"===e?"hubinitiative":"hubpage"===e?"hubpage":"hub event"===e?"hubevent":"hub site application"===e?"hubsite":"hub project"===e?"hubproject":"relational database connection"===e?"relationaldatabaseconnection":"big data file share"===e?"datastorecollection":"image collection"===e?"imagecollection":"style"===e?"style":"desktop style"===e?"desktopstyle":"dashboard"===e?"dashboard":"raster function template"===e?"rasterprocessingtemplate":"vector tile package"===e?"vectortilepackage":"ortho mapping project"===e?"orthomappingproject":"ortho mapping template"===e?"orthomappingtemplate":"solution"===e?"solutions":"geopackage"===e?"geopackage":"deep learning package"===e?"deeplearningpackage":"real time analytic"===e?"realtimeanalytics":"big data analytic"===e?"bigdataanalytics":"feed"===e?"feed":"excalibur imagery project"===e?"excaliburimageryproject":"notebook"===e?"notebook":"storymap"===e?"storymap":"survey123 add in"===e?"survey123addin":"mission"===e?"mission":"mission report"===e?"missionreport":"quickcapture project"===e?"quickcaptureproject":"pro report"===e?"proreport":"urban model"===e?"urbanmodel":"web experience"===e?"experiencebuilder":"web experience template"===e?"webexperiencetemplate":"experience builder widget"===e?"experiencebuilderwidget":"experience builder widget package"===e?"experiencebuilderwidgetpackage":"workflow"===e?"workflow":"insights script"===e?"insightsscript":"kernel gateway connection"===e?"kernelgatewayconnection":"hub initiative template"===e?"hubinitiativetemplate":"storymap theme"===e?"storymaptheme":"knowledge graph"===e?"knowledgegraph":"native application"===e?"nativeapp":"native application installer"===e?"nativeappinstaller":"link chart"===e?"linkchart":"investigation"===e?"investigation":"ogcfeatureserver"===e?"features":"pro project"===e?"proproject":"insights workbook package"===e?"insightsworkbookpackage":"apache parquet"===e?"apacheparquet":"maps",i?(0,a.V)("esri/images/portal/"+i+"16.png"):null}get isLayer(){return["Map Service","Feature Service","Feature Collection","Scene Service","Image Service","Stream Service","Vector Tile Service","WMTS","WMS"].includes(this.type)}get itemUrl(){const e=this.get("portal.restUrl");return e?e+"/content/items/"+this.id:null}get thumbnailUrl(){const e=this.itemUrl,t=this.thumbnail;return e&&t?this.portal._normalizeUrl(`${e}/info/${t}?f=json`):null}get userItemUrl(){const e=this.get("portal.restUrl");if(!e)return null;const t=this.owner||this.get("portal.user.username");return t?`${e}/content/users/${this.ownerFolder?`${t}/${this.ownerFolder}`:t}/items/${this.id}`:null}load(e){this.portal||(this.portal=g.Z.getDefault());const t=this.portal.load(e).then((()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?this.portal._request(this.itemUrl,{signal:(0,p.pC)(e)?e.signal:null,query:{token:this.apiKey}}):{})).then((e=>{this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(t),Promise.resolve(this)}addRating(e){const t={method:"post",query:{}};return e instanceof x&&(e=e.rating),isNaN(e)||"number"!=typeof e||(t.query.rating=e),this.portal._request(this.itemUrl+"/addRating",t).then((()=>new x({rating:e,created:new Date})))}clone(){const e={access:this.access,accessInformation:this.accessInformation,applicationProxies:(0,n.d9)(this.applicationProxies),avgRating:this.avgRating,categories:(0,n.d9)(this.categories),created:(0,n.d9)(this.created),culture:this.culture,description:this.description,extent:(0,n.d9)(this.extent),groupCategories:(0,n.d9)(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:(0,n.d9)(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:(0,n.d9)(this.screenshots),size:this.size,snippet:this.snippet,tags:(0,n.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,n.d9)(this.typeKeywords),url:this.url};return this.loaded&&(e.loadStatus="loaded"),new S({sourceJSON:this.sourceJSON}).set(e)}createPostQuery(){const e=this.toJSON();for(const t in e)"tags"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"typeKeywords"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"extent"===t&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}deleteRating(){return this.portal._request(this.itemUrl+"/deleteRating",{method:"post"}).then((()=>{}))}fetchData(e="json",t){return this.portal._request(this.itemUrl+"/data",{responseType:e,...t,query:{token:this.apiKey}})}fetchRating(e){return this.portal._request(this.itemUrl+"/rating",{query:{token:this.apiKey},...e}).then((e=>null!=e.rating?(e.created=new Date(e.created),new x(e)):null))}fetchRelatedItems(e,t){return this.portal._requestToTypedArray(this.itemUrl+"/relatedItems",{query:{...e,token:this.apiKey},...t},S)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}reload(){return this.portal._request(this.itemUrl,{cacheBust:!0,query:{token:this.apiKey}}).then((e=>(this.sourceJSON=e,this.read(e),this)))}update(e){return this.id?this.load().then((()=>this.portal._signIn())).then((()=>{const t=e&&e.data,i={method:"post"};i.query=this.createPostQuery();for(const e in i.query)null===i.query[e]&&(i.query[e]="");return i.query.clearEmptyFields=!0,null!=t&&("string"==typeof t?i.query.text=t:"object"==typeof t&&(i.query.text=JSON.stringify(t))),this.portal._request(`${this.userItemUrl}/update`,i).then((()=>this.reload()))})):Promise.reject(new o.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}updateThumbnail(e){return this.id?this.load().then((()=>this.portal._signIn())).then((()=>{const t=e.thumbnail,i=e.filename,r={method:"post"};if("string"==typeof t)(0,u.HK)(t)?r.query={data:t}:r.query={url:(0,u.hF)(t)},(0,p.pC)(i)&&(r.query.filename=i);else{const e=new FormData;(0,p.pC)(i)?e.append("file",t,i):e.append("file",t),r.body=e}return this.portal._request(`${this.userItemUrl}/updateThumbnail`,r).then((()=>this.reload()))})):Promise.reject(new o.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async fetchResources(e={},t){return(await i.e(7873).then(i.bind(i,97873))).fetchResources(this,e,t)}async addResource(e,t,r){const a=await i.e(7873).then(i.bind(i,97873));return e.portalItem=this,a.addOrUpdateResource(e,"add",t,r)}async removeResource(e,t){const r=await i.e(7873).then(i.bind(i,97873));if(e.portalItem&&e.portalItem.itemUrl!==this.itemUrl)throw new o.Z("removeresource:portal-item-mismatch","The portal item associated with the provided resource does not match the item");return r.removeResource(this,e,t)}async removeAllResources(e){return(await i.e(7873).then(i.bind(i,97873))).removeAllResources(this,e)}resourceFromPath(e){return new _({portalItem:this,path:e})}toJSON(){const e=this.extent,t={created:this.created&&this.created.getTime(),description:this.description,extent:e&&[[e.xmin,e.ymin],[e.xmax,e.ymax]],id:this.id,modified:this.modified&&this.modified.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,snippet:this.snippet,tags:this.tags,thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:this.typeKeywords,url:this.url};return(0,n.yd)(t)}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new S({sourceJSON:e})}_getPostQuery(){const e=this.toJSON();for(const t in e)"tags"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"typeKeywords"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"extent"===t&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}};(0,r._)([(0,c.Cb)({type:["private","shared","org","public"]})],I.prototype,"access",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"accessInformation",void 0),(0,r._)([(0,c.Cb)({type:String})],I.prototype,"apiKey",void 0),(0,r._)([(0,c.Cb)({json:{read:{source:"appProxies"}}})],I.prototype,"applicationProxies",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"avgRating",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"categories",void 0),(0,r._)([(0,c.Cb)({type:Date})],I.prototype,"created",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"culture",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"description",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],I.prototype,"displayName",null),(0,r._)([(0,c.Cb)({type:y.Z})],I.prototype,"extent",void 0),(0,r._)([(0,h.r)("extent")],I.prototype,"readExtent",null),(0,r._)([(0,c.Cb)()],I.prototype,"groupCategories",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],I.prototype,"iconUrl",null),(0,r._)([(0,c.Cb)()],I.prototype,"id",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],I.prototype,"isLayer",null),(0,r._)([(0,c.Cb)()],I.prototype,"itemControl",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],I.prototype,"itemUrl",null),(0,r._)([(0,c.Cb)()],I.prototype,"licenseInfo",void 0),(0,r._)([(0,c.Cb)({type:Date})],I.prototype,"modified",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"name",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"numComments",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"numRatings",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"numViews",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"owner",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"ownerFolder",void 0),(0,r._)([(0,c.Cb)({type:g.Z})],I.prototype,"portal",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"screenshots",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"size",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"snippet",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"sourceJSON",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"tags",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"thumbnail",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],I.prototype,"thumbnailUrl",null),(0,r._)([(0,c.Cb)()],I.prototype,"title",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"type",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"typeKeywords",void 0),(0,r._)([(0,c.Cb)()],I.prototype,"url",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],I.prototype,"userItemUrl",null),I=S=(0,r._)([(0,m.j)("esri.portal.PortalItem")],I);const T=I},99282:(e,t,i)=>{i.d(t,{a:()=>o});var r=i(67900),a=i(68441);const o={inches:(0,r.En)(1,"meters","inches"),feet:(0,r.En)(1,"meters","feet"),"us-feet":(0,r.En)(1,"meters","us-feet"),yards:(0,r.En)(1,"meters","yards"),miles:(0,r.En)(1,"meters","miles"),"nautical-miles":(0,r.En)(1,"meters","nautical-miles"),millimeters:(0,r.En)(1,"meters","millimeters"),centimeters:(0,r.En)(1,"meters","centimeters"),decimeters:(0,r.En)(1,"meters","decimeters"),meters:(0,r.En)(1,"meters","meters"),kilometers:(0,r.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,r.ty)(1,"meters",a.sv.radius)}},51706:(e,t,i)=>{var r,a;function o(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function n(e){return e.valueExpression?r.Expression:e.field&&"string"==typeof e.field?r.Field:r.Unknown}function l(e,t){const i=t||n(e),o=e.valueUnit||"unknown";return i===r.Unknown?a.Constant:e.stops?a.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?a.ClampedLinear:"unknown"===o?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?a.Proportional:a.Additive:a.Identity:a.RealWorldSize}i.d(t,{PS:()=>n,QW:()=>l,RY:()=>r,hL:()=>a,iY:()=>o,qh:()=>s}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(r||(r={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(a||(a={}))},28101:(e,t,i)=>{i.d(t,{B3:()=>h,Km:()=>y,Lq:()=>m,PR:()=>_,V3:()=>w,ap:()=>f,cM:()=>g});var r=i(22303),a=i(38171),o=i(74085),s=i(92604),n=i(70586),l=i(99282),p=i(51706);const u=s.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),c=new a.Z,d=Math.PI,h=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function m(e,t,i){const a="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"color"===e.type)):e;if(!a)return;if("esri.renderers.visualVariables.ColorVariable"!==a.declaredClass)return void u.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const o="number"==typeof t,s=o?null:t,l=s&&s.attributes;let p=o?t:null;const c=a.field,{ipData:d,hasExpression:h}=a.cache;let m=a.cache.compiledFunc;if(!c&&!h){const e=a.stops;return e&&e[0]&&e[0].color}if("number"!=typeof p)if(h){if((0,n.Wi)(i)||(0,n.Wi)(i.arcade))return void u.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,r=t.getViewInfo(e),o=t.createExecContext(s,r);if(!m){const e=t.createSyntaxTree(a.valueExpression);m=t.createFunction(e),a.cache.compiledFunc=m}p=t.executeFunction(m,o)}else l&&(p=l[c]);const y=a.normalizationField,g=l?parseFloat(l[y]):void 0;if(null!=p&&(!y||o||!isNaN(g)&&0!==g)){isNaN(g)||o||(p/=g);const e=C(p,d);if(e){const t=e[0],o=e[1],s=t===o?a.stops[t].color:r.Z.blendColors(a.stops[t].color,a.stops[o].color,e[2],(0,n.pC)(i)?i.color:void 0);return new r.Z(s)}}}function y(e,t,i){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"opacity"===e.type)):e;if(!r)return;if("esri.renderers.visualVariables.OpacityVariable"!==r.declaredClass)return void u.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const a="number"==typeof t,o=a?null:t,s=o&&o.attributes;let l=a?t:null;const p=r.field,{ipData:c,hasExpression:d}=r.cache;let h=r.cache.compiledFunc;if(!p&&!d){const e=r.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof l)if(d){if((0,n.Wi)(i)||(0,n.Wi)(i.arcade))return void u.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,a=t.getViewInfo(e),s=t.createExecContext(o,a);if(!h){const e=t.createSyntaxTree(r.valueExpression);h=t.createFunction(e),r.cache.compiledFunc=h}l=t.executeFunction(h,s)}else s&&(l=s[p]);const m=r.normalizationField,y=s?parseFloat(s[m]):void 0;if(null!=l&&(!m||a||!isNaN(y)&&0!==y)){isNaN(y)||a||(l/=y);const e=C(l,c);if(e){const t=e[0],i=e[1];if(t===i)return r.stops[t].opacity;{const a=r.stops[t].opacity;return a+(r.stops[i].opacity-a)*e[2]}}}}function g(e,t,i){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"rotation"===e.type)):e;if(!r)return;if("esri.renderers.visualVariables.RotationVariable"!==r.declaredClass)return void u.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const a=r.axis||"heading",o="heading"===a&&"arithmetic"===r.rotationType?90:0,s="heading"===a&&"arithmetic"===r.rotationType?-1:1,l="number"==typeof t?null:t,p=l&&l.attributes,c=r.field,{hasExpression:d}=r.cache;let h=r.cache.compiledFunc,m=0;if(!c&&!d)return m;if(d){if((0,n.Wi)(i)||(0,n.Wi)(i.arcade))return void u.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,a=t.getViewInfo(e),o=t.createExecContext(l,a);if(!h){const e=t.createSyntaxTree(r.valueExpression);h=t.createFunction(e),r.cache.compiledFunc=h}m=t.executeFunction(h,o)}else p&&(m=p[c]||0);return m="number"!=typeof m||isNaN(m)?null:o+s*m,m}function f(e,t,i){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"size"===e.type)):e;if(!r)return;if("esri.renderers.visualVariables.SizeVariable"!==r.declaredClass)return void u.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const a=function(e,t,i,r,a){switch(t.transformationType){case p.hL.Additive:return function(e,t,i,r){return e+(b(t.minSize,i,r)||t.minDataValue)}(e,t,i,r);case p.hL.Constant:return function(e,t,i){const r=e.stops;let a=r&&r.length&&r[0].size;return null==a&&(a=e.minSize),b(a,t,i)}(t,i,r);case p.hL.ClampedLinear:return function(e,t,i,r){const a=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),o=b(t.minSize,i,r),s=b(t.maxSize,i,r),l=(0,n.pC)(r)?r.shape:void 0;if(e<=t.minDataValue)return o;if(e>=t.maxDataValue)return s;if("area"===t.scaleBy&&l){const e="circle"===l,t=e?d*(o/2)**2:o*o,i=t+a*((e?d*(s/2)**2:s*s)-t);return e?2*Math.sqrt(i/d):Math.sqrt(i)}return o+a*(s-o)}(e,t,i,r);case p.hL.Proportional:return function(e,t,i,r){const a=(0,n.pC)(r)?r.shape:void 0,o=e/t.minDataValue,s=b(t.minSize,i,r),l=b(t.maxSize,i,r);let p=null;return p="circle"===a?2*Math.sqrt(o*(s/2)**2):"square"===a||"diamond"===a||"image"===a?Math.sqrt(o*s**2):o*s,v(p,s,l)}(e,t,i,r);case p.hL.Stops:return function(e,t,i,r,a){const[o,s,n]=C(e,a);if(o===s)return b(t.stops[o].size,i,r);{const e=b(t.stops[o].size,i,r);return e+(b(t.stops[s].size,i,r)-e)*n}}(e,t,i,r,a);case p.hL.RealWorldSize:return function(e,t,i,r){const a=((0,n.pC)(r)&&r.resolution?r.resolution:1)*l.a[t.valueUnit],o=b(t.minSize,i,r),s=b(t.maxSize,i,r),{valueRepresentation:p}=t;let u=null;return u="area"===p?2*Math.sqrt(e/d)/a:"radius"===p||"distance"===p?2*e/a:e/a,v(u,o,s)}(e,t,i,r);case p.hL.Identity:return e;case p.hL.Unknown:return null}}(function(e,t,i){const r="number"==typeof t,a=r?null:t,o=a&&a.attributes;let s=r?t:null;const{isScaleDriven:l}=e.cache;let c=e.cache.compiledFunc;if(l){const t=(0,n.pC)(i)?i.scale:void 0,r=(0,n.pC)(i)?i.view:void 0;s=null==t||"3d"===r?function(e){let t=null,i=null;const r=e.stops;return r?(t=r[0].value,i=r[r.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!r)switch(e.inputValueType){case p.RY.Expression:{if((0,n.Wi)(i)||(0,n.Wi)(i.arcade))return void u.error("Use of arcade expressions requires an arcade context");const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},r=i.arcade.arcadeUtils,o=r.getViewInfo(t),l=r.createExecContext(a,o);if(!c){const t=r.createSyntaxTree(e.valueExpression);c=r.createFunction(t),e.cache.compiledFunc=c}s=r.executeFunction(c,l);break}case p.RY.Field:o&&(s=o[e.field]);break;case p.RY.Unknown:s=null}if(!(0,p.qh)(s))return null;if(r||!e.normalizationField)return s;const d=o?parseFloat(o[e.normalizationField]):null;return(0,p.qh)(d)&&0!==d?s/d:null}(r,t,i),r,t,i,r.cache.ipData);return null==a||isNaN(a)?0:a}function b(e,t,i){return null==e?null:(0,p.iY)(e)?f(e,t,i):(0,p.qh)(e)?e:null}function v(e,t,i){return(0,p.qh)(i)&&e>i?i:(0,p.qh)(t)&&e<t?t:e}function w(e,t,i){const{isScaleDriven:r}=e.cache;if(!(r&&"3d"===i||t))return null;const a={scale:t,view:i};let o=b(e.minSize,c,a),s=b(e.maxSize,c,a);if(null!=o||null!=s){if(o>s){const e=s;s=o,o=e}return{minSize:o,maxSize:s}}}function C(e,t){if(!t)return;let i=0,r=t.length-1;return t.some(((t,a)=>e<t?(r=a,!0):(i=a,!1))),[i,r,(e-t[i])/(t[r]-t[i])]}function _(e,t,i){const r=["proportional","proportional","proportional"];for(const a of e){const e=a.useSymbolValue?"symbol-value":f(a,t,i);switch(a.axis){case"width":r[0]=e;break;case"depth":r[1]=e;break;case"height":r[2]=e;break;case"width-and-depth":r[0]=e,r[1]=e;break;case"all":case void 0:case null:r[0]=e,r[1]=e,r[2]=e;break;default:(0,o.Bg)(a.axis)}}return r}}}]);
|