@arcgis/core 5.0.0-next.53 → 5.0.0-next.54
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/Basemap.d.ts +1 -1
- package/Color.js +1 -1
- package/PopupTemplate.d.ts +2 -2
- package/WebLinkChart.d.ts +1 -1
- package/applications/Components/QuantityFormatter.d.ts +7 -7
- package/applications/Components/analysisUtils.d.ts +28 -53
- package/applications/Components/baUtils.d.ts +8 -0
- package/applications/Components/featureUtils.d.ts +1 -1
- package/applications/Components/imageryUtils.d.ts +2 -2
- package/applications/Components/layerOriginUtils.d.ts +3 -3
- package/applications/Components/reactiveUtils.d.ts +24 -5
- package/applications/Excalibur/videoViewUtils.d.ts +2 -2
- package/applications/ExperienceBuilder/sketchUtils.d.ts +6 -6
- package/applications/KnowledgeStudio/generalSdkInternalAccess.d.ts +7 -13
- package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +7 -7
- package/applications/KnowledgeStudio/reshape.d.ts +6 -15
- package/applications/MapViewer/mediaUtils.d.ts +4 -4
- package/applications/MapViewer/templateUtils.d.ts +3 -3
- package/applications/PortalApp/layerUtils.d.ts +10 -0
- package/applications/PortalApp/layerUtils.js +5 -0
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade.d.ts +33 -17
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{5aa354854219361f722b.js → 0099f4729c94c779ba35.js} +1 -1
- package/assets/esri/core/workers/chunks/00e407d262c49890afa8.js +1 -0
- package/assets/esri/core/workers/chunks/{15a0750c10b510564a42.js → 01d38a9ca9e88c38aab9.js} +1 -1
- package/assets/esri/core/workers/chunks/087cf25ca211836a084a.js +1 -0
- package/assets/esri/core/workers/chunks/{a3f23f08337e101e4e64.js → 097001462d93b78b64f4.js} +1 -1
- package/assets/esri/core/workers/chunks/0a39c6dc57bd60d5587e.js +1 -0
- package/assets/esri/core/workers/chunks/0d1e8d5d9abee38e275e.js +316 -0
- package/assets/esri/core/workers/chunks/{cef873da468668eb95cb.js → 18cc131fd63d8c15df54.js} +3 -4
- package/assets/esri/core/workers/chunks/{da922e861d5845ae0979.js → 1ab98591d2f2bc604505.js} +1 -1
- package/assets/esri/core/workers/chunks/1b2e17c04c34cfa671a1.js +1 -0
- package/assets/esri/core/workers/chunks/211837df0edada4414c5.js +1 -0
- package/assets/esri/core/workers/chunks/22b07c54a5fcc27771b0.js +1 -0
- package/assets/esri/core/workers/chunks/{cd8fec3500e6503ae020.js → 23a9dd9454d5249bbd59.js} +1 -1
- package/assets/esri/core/workers/chunks/311c4914a4f69f3c1525.js +1 -0
- package/assets/esri/core/workers/chunks/316f3e93aa0db48ef129.js +1 -0
- package/assets/esri/core/workers/chunks/{108675a17e432a02cf66.js → 35cbc61a006351620ead.js} +1 -1
- package/assets/esri/core/workers/chunks/{1bf4b5e5402790ccb450.js → 369f37060608342a4262.js} +1 -1
- package/assets/esri/core/workers/chunks/3b5e71b156244789f624.js +1 -0
- package/assets/esri/core/workers/chunks/3f0959b1abafe516146e.js +1 -0
- package/assets/esri/core/workers/chunks/{553ca1e55e9f1359839c.js → 44c228388a95fa958827.js} +1 -1
- package/assets/esri/core/workers/chunks/454c15367cccbf63af7a.js +1 -0
- package/assets/esri/core/workers/chunks/{f3d8d5fe15501220792d.js → 495b11fdecc3ba90d454.js} +1 -1
- package/assets/esri/core/workers/chunks/4f33a2ecb154a2c2449c.js +1 -0
- package/assets/esri/core/workers/chunks/{b1d3d2c93c189e215f67.js → 5047acfd66539eefe353.js} +1 -1
- package/assets/esri/core/workers/chunks/{cddce67919e13e2f365e.js → 51fd6662245b920af652.js} +1 -1
- package/assets/esri/core/workers/chunks/52726458f590e726d52c.js +1 -0
- package/assets/esri/core/workers/chunks/{d677b378449257103ec4.js → 58cf5b9a6aa685fc3367.js} +1 -1
- package/assets/esri/core/workers/chunks/{395a0773ccafd1f24c4d.js → 5d31fbabaa875f8627c0.js} +1 -1
- package/assets/esri/core/workers/chunks/67a45faa80316f43c51b.js +1 -0
- package/assets/esri/core/workers/chunks/6d09965ab2bff9da88b6.js +1 -0
- package/assets/esri/core/workers/chunks/{521aac8a665e98e4ca78.js → 700122f775b98a7ed353.js} +1 -1
- package/assets/esri/core/workers/chunks/{a92c1171314a68504c1b.js → 7353d78feba7e6302b6e.js} +1 -1
- package/assets/esri/core/workers/chunks/{13ce8e8d45779b11ee12.js → 7f4fa2f2e85863d3cfb9.js} +1 -1
- package/assets/esri/core/workers/chunks/{a4f89568205d78d91cfe.js → 80c36f1786ae0be00962.js} +1 -1
- package/assets/esri/core/workers/chunks/{549f4ab9e285deaf04fb.js → 81d89107ff82604a3ea0.js} +1 -1
- package/assets/esri/core/workers/chunks/8208c073e606973ea1ad.js +1 -0
- package/assets/esri/core/workers/chunks/{62ed6b45482e39d67785.js → 893a5ab0c2df9262efd8.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f0c7ab33e466a37c7f9.js → 8c1f1eb36198ce40ef13.js} +1 -1
- package/assets/esri/core/workers/chunks/92928c56b312e1514600.js +1 -0
- package/assets/esri/core/workers/chunks/94929cf2b9fc66a93882.js +1 -0
- package/assets/esri/core/workers/chunks/94f02082a006003ef5a9.js +1 -0
- package/assets/esri/core/workers/chunks/951e3c911a3486b1e609.js +1 -0
- package/assets/esri/core/workers/chunks/{54666586754949bfa584.js → 983356eb4fd0a0dcf3fd.js} +1 -1
- package/assets/esri/core/workers/chunks/a16e75ff5cd9b22be197.js +1 -0
- package/assets/esri/core/workers/chunks/{36d9208895abd1ba4ff1.js → a623676c74745e040a2a.js} +1 -1
- package/assets/esri/core/workers/chunks/{1065fd655bb7cee243fd.js → a624dd283d264dce35a8.js} +1 -1
- package/assets/esri/core/workers/chunks/{2dfaead2ec6434513d45.js → a6742abe3ebe371e85f1.js} +1 -1
- package/assets/esri/core/workers/chunks/acc7ff44bfcb5c195114.js +1 -0
- package/assets/esri/core/workers/chunks/ad92427bf597a6e0a299.js +1 -0
- package/assets/esri/core/workers/chunks/{640085b5ade5c7f16228.js → b285de471ca90f38ec25.js} +1 -1
- package/assets/esri/core/workers/chunks/b8f83a272fc41765031d.js +1 -0
- package/assets/esri/core/workers/chunks/{19270a2de33f2662005b.js → b93f2bd6429879f92143.js} +1 -1
- package/assets/esri/core/workers/chunks/be6cc8a1485961f22372.js +1 -0
- package/assets/esri/core/workers/chunks/{bf5a120bc0c4851dbb69.js → bef2a70d382515b3c84e.js} +1 -1
- package/assets/esri/core/workers/chunks/{e2973e5626e5039209f9.js → c448540065690cac0744.js} +1 -1
- package/assets/esri/core/workers/chunks/cc67f066c3c0c2a1a37c.js +33 -0
- package/assets/esri/core/workers/chunks/{95057105f1b3bf805140.js → cd2ea924cb91cdb6dde9.js} +1 -1
- package/assets/esri/core/workers/chunks/d199deff988eaefe18b4.js +1 -0
- package/assets/esri/core/workers/chunks/{2ef4c0092c59a98a5532.js → d54988c21ea5667d00b7.js} +1 -1
- package/assets/esri/core/workers/chunks/d94a2ad5a91de7086fbe.js +1 -0
- package/assets/esri/core/workers/chunks/{23396a6318edf9264c1f.js → dcf6f7001f470f76bd3e.js} +1 -1
- package/assets/esri/core/workers/chunks/{cd39a53ef74f47604977.js → e03c706e327f4989280a.js} +1 -1
- package/assets/esri/core/workers/chunks/e47535f795b15608a6cb.js +1 -0
- package/assets/esri/core/workers/chunks/e572ffc1d000e4e6325f.js +1 -0
- package/assets/esri/core/workers/chunks/ed38c1043e6a83f49f93.js +1 -0
- package/assets/esri/core/workers/chunks/{11ab10668632648b2ba7.js → f2e8abb556a380cc2941.js} +1 -1
- package/assets/esri/core/workers/chunks/f44f358db5c56d5bbc0c.js +1 -0
- package/assets/esri/core/workers/chunks/fa95c9248fbfab338f2e.js +1 -0
- package/chunks/ComponentShader.glsl.js +29 -29
- package/chunks/Haze.glsl.js +15 -21
- package/config.d.ts +1 -1
- package/config.js +1 -1
- package/core/Collection.d.ts +1 -1
- package/core/Error.d.ts +1 -1
- package/core/Evented.d.ts +1 -1
- package/core/accessorSupport/decorators.d.ts +1 -1
- package/core/colorUtils.js +1 -1
- package/editing/sharedTemplates/SharedTemplate.d.ts +1 -1
- package/editing/sharedTemplates/SharedTemplateMetadata.d.ts +1 -1
- package/geometry/Mesh.d.ts +1 -2
- package/geometry/coordinateFormatter.d.ts +1 -1
- package/geometry/projectionUtils.js +1 -1
- package/geometry/support/MeshMaterial.d.ts +1 -1
- package/geometry/support/MeshMaterialMetallicRoughness.d.ts +1 -1
- package/geometry/support/MeshTexture.d.ts +1 -1
- package/geometry/support/meshUtils/{interfaces.d.ts → types.d.ts} +10 -1
- package/geometry/support/meshUtils.d.ts +1 -1
- package/geometry/support/normalizeUtils.d.ts +1 -1
- package/geometry/support/typeUtils.d.ts +3 -1
- package/geometry/support/typeUtils.js +1 -1
- package/geometry/types.d.ts +5 -0
- package/interfaces.d.ts +758 -786
- package/intl/date.d.ts +1 -1
- package/kernel.js +1 -1
- package/layers/CSVLayer.d.ts +3 -3
- package/layers/CatalogLayer.d.ts +1 -1
- package/layers/FeatureLayer.d.ts +1 -1
- package/layers/GaussianSplatLayer.d.ts +22 -0
- package/layers/GeoJSONLayer.d.ts +3 -3
- package/layers/ImageryTileLayer.d.ts +9 -9
- package/layers/MapImageLayer.d.ts +2 -2
- package/layers/OrientedImageryLayer.d.ts +2 -2
- package/layers/ParquetLayer.d.ts +1 -1
- package/layers/RouteLayer.d.ts +3 -3
- package/layers/SceneLayer.d.ts +3 -3
- package/layers/SubtypeGroupLayer.d.ts +1 -1
- package/layers/VectorTileLayer.d.ts +3 -3
- package/layers/VideoLayer.d.ts +2 -2
- package/layers/WCSLayer.d.ts +1 -1
- package/layers/WFSLayer.d.ts +3 -3
- package/layers/catalog/CatalogFootprintLayer.d.ts +3 -3
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -2
- package/layers/knowledgeGraph/layerUtils.js +1 -1
- package/layers/mixins/ArcGISImageService.d.ts +7 -7
- package/layers/mixins/BlendLayer.d.ts +2 -2
- package/layers/mixins/EditBusLayer.d.ts +6 -0
- package/layers/mixins/FeatureLayerBase.d.ts +2 -2
- package/layers/mixins/ImageryTileMixin.d.ts +4 -4
- package/layers/mixins/properties/ILayerWithGetFeatureTitle.d.ts +1 -1
- package/layers/ogc/wcsUtils.d.ts +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.d.ts +2 -2
- package/layers/orientedImagery/transformations/{interfaces.d.ts → types.d.ts} +1 -1
- package/layers/orientedImagery/transformations/worldToImage.d.ts +2 -2
- package/layers/raster/datasets/wcsCapabilitiesParser.d.ts +1 -1
- package/layers/raster/datasets/wcsCoverageParser.d.ts +1 -1
- package/layers/raster/functions/creators/createAppearenceFunctions.d.ts +2 -2
- package/layers/raster/functions/creators/createBandIndexFunctions.d.ts +1 -1
- package/layers/raster/functions/creators/createChangeFunctions.d.ts +1 -1
- package/layers/raster/functions/creators/createConversionFunctions.d.ts +1 -1
- package/layers/raster/functions/creators/createDataManagementFunctions.d.ts +2 -2
- package/layers/raster/functions/creators/createLocalFunctions.d.ts +1 -1
- package/layers/raster/functions/creators/createMultiRasterAnalysisFunctions.d.ts +1 -1
- package/layers/raster/functions/creators/createStatisticsFunctions.d.ts +1 -1
- package/layers/raster/functions/creators/createSurfaceFunctions.d.ts +1 -1
- package/layers/support/ControlPoint.d.ts +3 -3
- package/layers/support/ControlPointsGeoreference.d.ts +6 -6
- package/layers/support/EditingCapabilities.d.ts +2 -2
- package/layers/support/FeatureEffect.d.ts +3 -3
- package/layers/support/LabelClass.d.ts +1 -1
- package/layers/support/RasterInfo.d.ts +1 -1
- package/layers/support/SpriteSource.d.ts +1 -1
- package/layers/support/StreamConnection.d.ts +1 -1
- package/layers/support/Sublayer.d.ts +1 -1
- package/layers/support/SubtypeSublayer.d.ts +2 -2
- package/layers/support/TimeInfo.d.ts +1 -1
- package/layers/support/capabilities.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/rasterFunctionUtils.d.ts +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/layers/support/{interfaces.d.ts → types.d.ts} +6 -6
- package/layers/{interfaces.d.ts → types.d.ts} +18 -1
- package/linkChart/ChronologicalLayoutSettings.d.ts +1 -1
- package/linkChart/OrganicLayoutSettings.d.ts +1 -1
- package/networks/Network.d.ts +4 -4
- package/networks/UtilityNetwork.d.ts +8 -8
- package/networks/support/TopologyValidationJobInfo.d.ts +1 -1
- package/networks/support/TraceJobInfo.d.ts +1 -1
- package/package.json +1 -1
- package/popup/content/CustomContent.d.ts +1 -1
- package/portal/PortalItem.d.ts +1 -1
- package/portal/PortalItemResource.d.ts +1 -1
- package/portal/PortalUser.d.ts +2 -2
- package/renderers/FlowRenderer.d.ts +1 -1
- package/renderers/RasterStretchRenderer.d.ts +2 -2
- package/renderers/Renderer.d.ts +1 -1
- package/renderers/VectorFieldRenderer.d.ts +1 -1
- package/renderers/mixins/VisualVariablesMixin.d.ts +3 -3
- package/renderers/support/AuthoringInfo.d.ts +1 -1
- package/renderers/support/rasterRendererHelper.d.ts +1 -1
- package/renderers/support/renderingInfoUtils.js +1 -1
- package/renderers/{interfaces.d.ts → types.d.ts} +3 -1
- package/renderers/visualVariables/SizeVariable.d.ts +1 -1
- package/renderers/visualVariables/VisualVariable.d.ts +1 -1
- package/request/{interfaces.d.ts → types.d.ts} +10 -10
- package/request.d.ts +4 -4
- package/rest/closestFacility.d.ts +1 -1
- package/rest/featureService/FeatureService.d.ts +1 -1
- package/rest/featureService/FeatureService.js +1 -1
- package/rest/featureService/{interfaces.d.ts → types.d.ts} +16 -3
- package/rest/featureService/utils.d.ts +1 -1
- package/rest/find.d.ts +1 -1
- package/rest/geometryService.d.ts +1 -1
- package/rest/geoprocessor.d.ts +1 -1
- package/rest/identify.d.ts +1 -1
- package/rest/imageService.d.ts +5 -5
- package/rest/knowledgeGraphService.d.ts +19 -19
- package/rest/lastMileDelivery.d.ts +1 -1
- package/rest/locator.d.ts +1 -1
- package/rest/networkService.d.ts +1 -1
- package/rest/networks/queryAssociations.d.ts +1 -1
- package/rest/networks/synthesizeAssociationGeometries.d.ts +1 -1
- package/rest/networks/trace.d.ts +1 -1
- package/rest/places.d.ts +1 -1
- package/rest/print.d.ts +2 -2
- package/rest/query.d.ts +2 -2
- package/rest/route.d.ts +1 -1
- package/rest/serviceArea.d.ts +1 -1
- package/rest/support/AddressToLocationsParameters.d.ts +1 -1
- package/rest/support/AddressesToLocationsParameters.d.ts +1 -1
- package/rest/support/AttributeBinsQuery.d.ts +3 -3
- package/rest/support/JobInfo.d.ts +2 -2
- package/rest/support/LastMileDeliveryParameters.d.ts +1 -1
- package/rest/support/LocationToAddressParameters.d.ts +1 -1
- package/rest/support/ParameterValue.d.ts +1 -1
- package/rest/support/ProjectParameters.d.ts +1 -1
- package/rest/symbolService.d.ts +3 -3
- package/smartMapping/heuristics/binLevel.d.ts +1 -1
- package/smartMapping/heuristics/scaleRange.d.ts +1 -1
- package/smartMapping/heuristics/sizeRange.d.ts +1 -1
- package/smartMapping/heuristics/{interfaces.d.ts → types.d.ts} +1 -1
- package/smartMapping/popup/clusters.d.ts +1 -1
- package/smartMapping/popup/templates.d.ts +1 -1
- package/smartMapping/raster/renderers/classBreaks.d.ts +2 -2
- package/smartMapping/raster/renderers/colormap.d.ts +1 -1
- package/smartMapping/raster/renderers/flow.d.ts +4 -4
- package/smartMapping/raster/renderers/rgb.d.ts +2 -2
- package/smartMapping/raster/renderers/shadedRelief.d.ts +1 -1
- package/smartMapping/raster/renderers/stretch.d.ts +2 -2
- package/smartMapping/raster/renderers/{interfaces.d.ts → types.d.ts} +1 -1
- package/smartMapping/raster/renderers/uniqueValue.d.ts +1 -1
- package/smartMapping/raster/renderers/vectorField.d.ts +1 -1
- package/smartMapping/raster/support/utils.d.ts +1 -1
- package/smartMapping/renderers/color.d.ts +4 -4
- package/smartMapping/renderers/dotDensity.d.ts +3 -3
- package/smartMapping/renderers/heatmap.d.ts +3 -3
- package/smartMapping/renderers/location.d.ts +2 -2
- package/smartMapping/renderers/opacity.d.ts +3 -3
- package/smartMapping/renderers/pieChart.d.ts +3 -3
- package/smartMapping/renderers/predominance.d.ts +2 -2
- package/smartMapping/renderers/relationship.d.ts +4 -4
- package/smartMapping/renderers/size.d.ts +4 -4
- package/smartMapping/renderers/support/rendererUtils.d.ts +1 -1
- package/smartMapping/renderers/type.d.ts +3 -3
- package/smartMapping/renderers/univariateColorSize.d.ts +4 -4
- package/smartMapping/statistics/classBreaks.d.ts +2 -2
- package/smartMapping/statistics/heatmapStatistics.d.ts +2 -2
- package/smartMapping/statistics/histogram.d.ts +1 -2
- package/smartMapping/statistics/predominantCategories.d.ts +2 -2
- package/smartMapping/statistics/summaryStatistics.d.ts +2 -2
- package/smartMapping/statistics/summaryStatisticsForAge.d.ts +1 -1
- package/smartMapping/statistics/support/ageUtils.d.ts +1 -1
- package/smartMapping/statistics/types.d.ts +571 -0
- package/smartMapping/statistics/uniqueValues.d.ts +2 -2
- package/smartMapping/symbology/color.d.ts +1 -1
- package/smartMapping/symbology/dotDensity.d.ts +1 -1
- package/smartMapping/symbology/flow.d.ts +1 -1
- package/smartMapping/symbology/heatmap.d.ts +1 -1
- package/smartMapping/symbology/location.d.ts +1 -1
- package/smartMapping/symbology/pieChart.d.ts +1 -1
- package/smartMapping/symbology/predominance.d.ts +1 -1
- package/smartMapping/symbology/relationship.d.ts +1 -1
- package/smartMapping/symbology/size.d.ts +1 -1
- package/smartMapping/symbology/support/colorRamps.d.ts +1 -1
- package/smartMapping/symbology/type.d.ts +1 -1
- package/smartMapping/types.d.ts +18 -0
- package/support/revision.js +1 -1
- package/support/tests/setupServiceMocksMesh.js +1 -1
- package/support/timeUtils.d.ts +1 -1
- package/symbols/LineStyleMarker3D.d.ts +1 -1
- package/symbols/LineSymbol3DLayer.d.ts +1 -1
- package/symbols/LineSymbolMarker.d.ts +1 -1
- package/symbols/PathSymbol3DLayer.d.ts +1 -1
- package/symbols/SimpleLineSymbol.d.ts +1 -1
- package/symbols/patterns/LineStylePattern3D.d.ts +1 -1
- package/symbols/patterns/StylePattern3D.d.ts +1 -1
- package/symbols/support/ElevationInfo.d.ts +1 -1
- package/symbols/support/Symbol3DOutline.d.ts +1 -1
- package/symbols/support/symbolUtils.d.ts +2 -2
- package/time/TimeExtent.d.ts +1 -1
- package/unionTypes.d.ts +3 -3
- package/versionManagement/VersionManagementService.d.ts +1 -1
- package/versionManagement/VersionManager.d.ts +3 -3
- package/versionManagement/VersioningState.d.ts +1 -1
- package/versionManagement/utils.d.ts +1 -1
- package/versionManagement/versionAdapters/utils.d.ts +7 -7
- package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
- package/views/2d/analysis/ElevationProfile/ElevationProfileVisualization2D.js +1 -1
- package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +1 -2
- package/views/2d/engine/vectorTiles/style/StyleProperty.js +1 -1
- package/views/2d/layers/BaseLayerView2D.d.ts +2 -2
- package/views/2d/layers/BaseLayerViewGL2D.d.ts +9 -9
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/2d/{layers/support/interfaces.d.ts → types.d.ts} +68 -1
- package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
- package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization3D.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileVisualization3D.js +1 -1
- package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +1 -2
- package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightVisualization.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.d.ts +2 -2
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/Slice/ResizeManipulator.js +1 -1
- package/views/3d/analysis/Slice/RotateManipulator.js +1 -1
- package/views/3d/analysis/Slice/ShiftManipulator.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedArrowManipulator.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedConfiguration.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
- package/views/3d/analysis/Viewshed/viewshedToolManipulatorUtils.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
- package/views/3d/environment/ChapmanRaymarching.glsl.js +6 -7
- package/views/3d/environment/PrecipitationTechnique.js +1 -1
- package/views/3d/environment/SimpleAtmosphereTechnique.js +1 -1
- package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/settings.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/{I3SMeshWorkerHandle.js → SceneLayerWorkerHandle.js} +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/pipeline/symbolization/IconSymbolLayerRenderer.js +1 -1
- package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
- package/views/3d/layers/support/edgeUtils.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/terrain/BlendLayersTechnique.js +1 -1
- package/views/3d/terrain/RasterColorizerTechnique.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
- package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js +1 -2
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +18 -27
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaOutlineItem.js +1 -1
- package/views/3d/webgl-engine/effects/haze/HazeTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightApplyTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightToSingleTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserlinePathData.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillColor.js +1 -1
- package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultLayouts.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.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/shaders/CheckerBoardTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CutFillMaskTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CutFillTargetDepthTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.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/PointRendererTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
- package/views/LinkChartView.d.ts +5 -5
- package/views/Magnifier.d.ts +1 -1
- package/views/MapView.d.ts +11 -12
- package/views/PopupView.d.ts +1 -1
- package/views/SceneView.d.ts +6 -7
- package/views/SceneViewHitTestResult.d.ts +1 -1
- package/views/View2D.d.ts +8 -8
- package/views/analysis/ElevationProfile/ElevationProfileHoveredPointVisualization.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileResult.d.ts +1 -1
- package/views/analysis/ElevationProfile/types.d.ts +68 -0
- package/views/analysis/types.d.ts +2 -2
- package/views/draw/Draw.d.ts +1 -1
- package/views/draw/DrawAction.d.ts +1 -1
- package/views/input/IViewEvents.d.ts +1 -1
- package/views/interactive/Tooltip.d.ts +1 -1
- package/views/interactive/sketch/SketchValueOptions.d.ts +1 -1
- package/views/interactive/tooltip/types.d.ts +4 -0
- package/views/layers/BuildingComponentSublayerView.d.ts +1 -1
- package/views/layers/BuildingSceneLayerView.d.ts +1 -1
- package/views/layers/ImageryLayerViewMixin.d.ts +1 -1
- package/views/layers/PointCloudLayerView.d.ts +1 -1
- package/views/navigation/NavigationActionMap.d.ts +1 -1
- package/views/support/colorUtils.d.ts +1 -1
- package/views/{interfaces.d.ts → types.d.ts} +91 -5
- package/views/ui/DefaultUI.d.ts +1 -1
- package/views/ui/UI.d.ts +1 -1
- package/webdoc/widgets/FloorFilter.d.ts +2 -2
- package/webdoc/widgets/TimeSlider.d.ts +5 -5
- package/webmap/InitialViewProperties.d.ts +2 -2
- package/webscene/Environment.d.ts +3 -3
- package/webscene/InitialViewProperties.d.ts +0 -1
- package/webscene/Slide.d.ts +36 -4
- package/webscene/Slide.js +1 -1
- package/webscene/support/SlidePopupInfo.d.ts +2 -2
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +1 -1
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.d.ts +7 -1
- package/widgets/AreaMeasurement3D.d.ts +1 -0
- package/widgets/Attachments/AttachmentsViewModel.d.ts +1 -1
- package/widgets/Attachments.d.ts +1 -1
- package/widgets/Attribution/AttributionViewModel.d.ts +2 -2
- package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +1 -1
- package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +1 -1
- package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +2 -2
- package/widgets/BasemapLayerList.d.ts +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +4 -4
- package/widgets/BatchAttributeForm/inputs/BatchFormInputs.d.ts +1 -1
- package/widgets/BatchAttributeForm/inputs/EditableInput.d.ts +1 -1
- package/widgets/BatchAttributeForm/inputs/GroupInput.d.ts +1 -1
- package/widgets/BatchAttributeForm/inputs/InputBase.d.ts +1 -1
- package/widgets/BatchAttributeForm/inputs/SingleFeatureInput.d.ts +1 -1
- package/widgets/BatchAttributeForm.d.ts +1 -1
- package/widgets/Bookmarks/BookmarksViewModel.d.ts +5 -5
- package/widgets/Bookmarks/{interfaces.d.ts → types.d.ts} +1 -1
- package/widgets/Bookmarks.d.ts +5 -5
- package/widgets/BuildingExplorer/BuildingExplorerViewModel.d.ts +1 -0
- package/widgets/BuildingExplorer/BuildingLevel.d.ts +1 -0
- package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.d.ts +1 -0
- package/widgets/BuildingExplorer/BuildingPhase.d.ts +1 -0
- package/widgets/BuildingExplorer.d.ts +3 -0
- package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +2 -2
- package/widgets/CatalogLayerList.d.ts +1 -1
- package/widgets/Compass/CompassViewModel.d.ts +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +4 -4
- package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -1
- package/widgets/CoordinateConversion/support/Format.d.ts +2 -2
- package/widgets/CoordinateConversion.d.ts +1 -1
- package/widgets/Daylight/DaylightViewModel.d.ts +3 -1
- package/widgets/Daylight/VisibleElements.d.ts +3 -0
- package/widgets/Daylight/types.d.ts +6 -0
- package/widgets/Daylight.d.ts +4 -2
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.d.ts +7 -1
- package/widgets/DirectLineMeasurement3D.d.ts +1 -0
- package/widgets/Directions/DirectionsViewModel.d.ts +3 -3
- package/widgets/Directions.d.ts +3 -3
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.d.ts +1 -1
- package/widgets/Editor/CreateFeaturesWorkflowData.d.ts +2 -2
- package/widgets/Editor/EditorViewModel.d.ts +5 -5
- package/widgets/Editor/MergeFeaturesWorkflow.d.ts +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.d.ts +1 -1
- package/widgets/Editor/SplitFeatureWorkflowData.d.ts +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.d.ts +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflowData.d.ts +1 -1
- package/widgets/Editor/UpdateWorkflow.d.ts +1 -1
- package/widgets/Editor/Workflow.d.ts +1 -1
- package/widgets/Editor/support/EditorEditingCapabilities.d.ts +9 -9
- package/widgets/Editor/support/EditorItem.d.ts +4 -4
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/{interfaces.d.ts → types.d.ts} +1 -1
- package/widgets/Editor.d.ts +9 -9
- package/widgets/ElevationProfile/ElevationProfileLine.d.ts +2 -1
- package/widgets/ElevationProfile/ElevationProfileLineGround.d.ts +1 -0
- package/widgets/ElevationProfile/ElevationProfileLineInput.d.ts +1 -0
- package/widgets/ElevationProfile/ElevationProfileLineQuery.d.ts +2 -1
- package/widgets/ElevationProfile/ElevationProfileLineView.d.ts +2 -0
- package/widgets/ElevationProfile/ElevationProfileViewModel.d.ts +3 -5
- package/widgets/ElevationProfile/ElevationProfileVisibleElements.d.ts +3 -0
- package/widgets/ElevationProfile/support/ProfileLines3D.js +1 -1
- package/widgets/ElevationProfile/types.d.ts +149 -0
- package/widgets/ElevationProfile.d.ts +6 -5
- package/widgets/Expand/ExpandViewModel.d.ts +1 -1
- package/widgets/Expand.d.ts +2 -2
- package/widgets/Feature/FeatureViewModel.d.ts +5 -5
- package/widgets/Feature.d.ts +2 -2
- package/widgets/FeatureForm/EditableInput.d.ts +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.d.ts +3 -3
- package/widgets/FeatureForm/GroupInput.d.ts +1 -1
- package/widgets/FeatureForm.d.ts +2 -2
- package/widgets/FeatureTable/AttachmentsColumn.d.ts +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +3 -4
- package/widgets/FeatureTable/Grid/Column.d.ts +2 -3
- package/widgets/FeatureTable/Grid/{support/interfaces.d.ts → types.d.ts} +57 -0
- package/widgets/FeatureTable/RelationshipColumn.d.ts +1 -1
- package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +2 -3
- package/widgets/FeatureTable/support/interfaces.d.ts +2 -3
- package/widgets/FeatureTable.d.ts +3 -4
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.d.ts +4 -4
- package/widgets/FeatureTemplates/TemplateItem.d.ts +1 -1
- package/widgets/FeatureTemplates/{interfaces.d.ts → types.d.ts} +1 -1
- package/widgets/FeatureTemplates.d.ts +3 -3
- package/widgets/Features/FeaturesViewModel.d.ts +11 -11
- package/widgets/Features.d.ts +10 -10
- package/widgets/Histogram/HistogramViewModel.d.ts +3 -3
- package/widgets/Histogram.d.ts +3 -3
- package/widgets/HistogramRangeSlider/HistogramRangeSliderViewModel.d.ts +3 -3
- package/widgets/HistogramRangeSlider.d.ts +11 -11
- package/widgets/LayerList/LayerListViewModel.d.ts +1 -1
- package/widgets/LayerList/ListItem.d.ts +1 -1
- package/widgets/LayerList.d.ts +1 -1
- package/widgets/Legend/LegendViewModel.d.ts +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.d.ts +1 -1
- package/widgets/Legend.d.ts +1 -1
- package/widgets/LineOfSight/LineOfSightTarget.d.ts +1 -0
- package/widgets/LineOfSight/LineOfSightViewModel.d.ts +1 -0
- package/widgets/LineOfSight.d.ts +1 -0
- package/widgets/Locate/LocateViewModel.d.ts +1 -1
- package/widgets/Locate.d.ts +1 -1
- package/widgets/Measurement/MeasurementViewModel.d.ts +2 -2
- package/widgets/Measurement.d.ts +1 -1
- package/widgets/Popup.d.ts +7 -7
- package/widgets/Print/CustomTemplate.d.ts +1 -1
- package/widgets/Print/PrintViewModel.d.ts +2 -2
- package/widgets/Print.d.ts +1 -1
- package/widgets/ScaleRangeSlider.d.ts +2 -2
- package/widgets/Search/LocatorSearchSource.d.ts +2 -2
- package/widgets/Search/SearchSource.d.ts +3 -3
- package/widgets/Search/types.d.ts +64 -0
- package/widgets/Search.d.ts +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.d.ts +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.d.ts +5 -5
- package/widgets/Sketch/{support/interfaces.d.ts → types.d.ts} +17 -17
- package/widgets/Sketch.d.ts +1 -1
- package/widgets/Slice/SliceViewModel.d.ts +1 -0
- package/widgets/Slice.d.ts +1 -0
- package/widgets/Slider/SliderViewModel.d.ts +3 -3
- package/widgets/Slider/{interfaces.d.ts → types.d.ts} +2 -2
- package/widgets/Slider.d.ts +4 -4
- package/widgets/Swipe/SwipeViewModel.d.ts +1 -1
- package/widgets/Swipe.d.ts +1 -1
- package/widgets/TableList/ListItem.d.ts +1 -1
- package/widgets/TableList/TableListViewModel.d.ts +2 -2
- package/widgets/TableList.d.ts +1 -1
- package/widgets/TimeSlider/TimeSliderViewModel.d.ts +5 -5
- package/widgets/TimeSlider.d.ts +14 -15
- package/widgets/TimeZoneLabel.d.ts +1 -2
- package/widgets/Track/TrackViewModel.d.ts +1 -1
- package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.d.ts +2 -2
- package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +1 -1
- package/widgets/ValuePicker/ValuePickerSlider.d.ts +1 -1
- package/widgets/ValuePicker.d.ts +2 -2
- package/widgets/VersionManagement/VersionManagementViewModel.d.ts +3 -3
- package/widgets/Weather/VisibleElements.d.ts +3 -0
- package/widgets/Weather/WeatherViewModel.d.ts +2 -1
- package/widgets/Weather/types.d.ts +9 -0
- package/widgets/Weather.d.ts +1 -0
- package/widgets/Widget.d.ts +2 -1
- package/widgets/smartMapping/BinaryColorSizeSlider.d.ts +0 -3
- package/widgets/smartMapping/ClassedColorSlider/ClassedColorSliderViewModel.d.ts +1 -3
- package/widgets/smartMapping/ClassedColorSlider.d.ts +2 -2
- package/widgets/smartMapping/ClassedSizeSlider/ClassedSizeSliderViewModel.d.ts +1 -2
- package/widgets/smartMapping/ClassedSizeSlider.d.ts +2 -2
- package/widgets/smartMapping/ColorSizeSlider/ColorSizeSliderViewModel.d.ts +5 -5
- package/widgets/smartMapping/ColorSizeSlider.d.ts +3 -2
- package/widgets/smartMapping/ColorSlider/ColorSliderViewModel.d.ts +1 -1
- package/widgets/smartMapping/ColorSlider.d.ts +1 -1
- package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.d.ts +2 -4
- package/widgets/smartMapping/HeatmapSlider.d.ts +2 -4
- package/widgets/smartMapping/OpacitySlider/OpacitySliderViewModel.d.ts +1 -1
- package/widgets/smartMapping/OpacitySlider.d.ts +1 -1
- package/widgets/smartMapping/SizeSlider.d.ts +2 -2
- package/widgets/smartMapping/SmartMappingPrimaryHandleSliderViewModel.d.ts +2 -2
- package/widgets/smartMapping/SmartMappingSliderBase.d.ts +11 -14
- package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +5 -6
- package/widgets/smartMapping/{support/interfaces.d.ts → types.d.ts} +52 -5
- package/widgets/support/GeolocationPositioning.d.ts +1 -1
- package/widgets/support/GridControls/GridControlsViewModel.d.ts +1 -1
- package/widgets/support/goToUtils.d.ts +1 -1
- package/widgets/{interfaces.d.ts → types.d.ts} +71 -15
- package/arcade/featureset/support/shared.d.ts +0 -16
- package/assets/esri/core/workers/chunks/0359ac6d938e0df936d0.js +0 -1
- package/assets/esri/core/workers/chunks/1db058f91a8e17b24db6.js +0 -1
- package/assets/esri/core/workers/chunks/1e286fb7bb833f00dd88.js +0 -1
- package/assets/esri/core/workers/chunks/262232437d37a7460b11.js +0 -1
- package/assets/esri/core/workers/chunks/2d6fa00273a73d44297d.js +0 -1
- package/assets/esri/core/workers/chunks/2fae37f34b28a46841e3.js +0 -1
- package/assets/esri/core/workers/chunks/3b1471f908fdecec2815.js +0 -1
- package/assets/esri/core/workers/chunks/48b3906ac3ec57253d90.js +0 -1
- package/assets/esri/core/workers/chunks/49b581782f63abb6dd9f.js +0 -1
- package/assets/esri/core/workers/chunks/4abe2c56aecc9e9b8e86.js +0 -1
- package/assets/esri/core/workers/chunks/51b78eca012eac92dd07.js +0 -1
- package/assets/esri/core/workers/chunks/5ce524e0060053f35592.js +0 -316
- package/assets/esri/core/workers/chunks/5d244fcf5c075afccdc6.js +0 -1
- package/assets/esri/core/workers/chunks/6b8c15f3970289e73a47.js +0 -1
- package/assets/esri/core/workers/chunks/6cfcfebe9a4c491e453a.js +0 -1
- package/assets/esri/core/workers/chunks/710b29729f252f11115d.js +0 -1
- package/assets/esri/core/workers/chunks/72a520802b8accfd4512.js +0 -1
- package/assets/esri/core/workers/chunks/73892ac79b24b05e6863.js +0 -33
- package/assets/esri/core/workers/chunks/75d8244b725a2aee2003.js +0 -1
- package/assets/esri/core/workers/chunks/93b139be6488a1b4ba19.js +0 -1
- package/assets/esri/core/workers/chunks/a5e7c9517939f762c518.js +0 -1
- package/assets/esri/core/workers/chunks/a63ff3e9a9f3853d12f3.js +0 -1
- package/assets/esri/core/workers/chunks/a81a7cba815adb575c36.js +0 -1
- package/assets/esri/core/workers/chunks/a8fd635d1165db8616ab.js +0 -1
- package/assets/esri/core/workers/chunks/b638ce18b93d3cfb9967.js +0 -1
- package/assets/esri/core/workers/chunks/ba7e97b1e324118b8156.js +0 -1
- package/assets/esri/core/workers/chunks/c0d6336c10b4081c4e32.js +0 -1
- package/assets/esri/core/workers/chunks/cc4ae105e727d9211d82.js +0 -1
- package/assets/esri/core/workers/chunks/d7a62504e00989202c45.js +0 -1
- package/assets/esri/core/workers/chunks/e25be3b6b67ce6b03011.js +0 -1
- package/assets/esri/core/workers/chunks/e5ac9b048b16fef9840c.js +0 -1
- package/assets/esri/core/workers/chunks/efa95c50d1ed8e74219f.js +0 -1
- package/assets/esri/core/workers/chunks/f379fd459a103f42d447.js +0 -1
- package/assets/esri/core/workers/chunks/ffcdc7ae03b0570e0db8.js +0 -1
- package/geometry/interfaces.d.ts +0 -2
- package/geometry/support/interfaces.d.ts +0 -3
- package/geometry/support/meshUtils/exporters/gltf/interfaces.d.ts +0 -11
- package/renderers/support/interfaces.d.ts +0 -2
- package/smartMapping/statistics/interfaces.d.ts +0 -571
- package/smartMapping/support/adapters/interfaces.d.ts +0 -18
- package/views/2d/interfaces.d.ts +0 -67
- package/views/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +0 -5
- package/views/analysis/ElevationProfile/interfaces.d.ts +0 -73
- package/views/interactive/sketch/interfaces.d.ts +0 -2
- package/views/interactive/tooltip/interfaces.d.ts +0 -2
- package/views/support/interfaces.d.ts +0 -87
- package/widgets/Daylight/support/daylightUtils.d.ts +0 -4
- package/widgets/ElevationProfile/ElevationProfileInteraction.d.ts +0 -13
- package/widgets/ElevationProfile/elevationProfileLineTypes.d.ts +0 -6
- package/widgets/ElevationProfile/interfaces.d.ts +0 -103
- package/widgets/ElevationProfile/support/constants.d.ts +0 -14
- package/widgets/FeatureTable/Grid/interfaces.d.ts +0 -57
- package/widgets/Search/support/interfaces.d.ts +0 -67
- package/widgets/Weather/enums.d.ts +0 -9
- package/widgets/smartMapping/ClassedColorSlider/interfaces.d.ts +0 -19
- package/widgets/smartMapping/ClassedSizeSlider/interfaces.d.ts +0 -18
- package/widgets/smartMapping/interfaces.d.ts +0 -13
- package/widgets/support/interfaces.d.ts +0 -56
- /package/analysis/{interfaces.d.ts → types.d.ts} +0 -0
- /package/core/accessorSupport/{interfaces.d.ts → types.d.ts} +0 -0
- /package/core/{interfaces.d.ts → types.d.ts} +0 -0
- /package/editing/sharedTemplates/{interfaces.d.ts → types.d.ts} +0 -0
- /package/editing/{interfaces.d.ts → types.d.ts} +0 -0
- /package/layers/effects/{interfaces.d.ts → types.d.ts} +0 -0
- /package/layers/orientedImagery/{interfaces.d.ts → types.d.ts} +0 -0
- /package/layers/raster/datasets/{interfaces.d.ts → types.d.ts} +0 -0
- /package/layers/raster/functions/{interfaces.d.ts → types.d.ts} +0 -0
- /package/linkChart/{interfaces.d.ts → types.d.ts} +0 -0
- /package/popup/{interfaces.d.ts → types.d.ts} +0 -0
- /package/rest/lastMileDelivery/{interfaces.d.ts → types.d.ts} +0 -0
- /package/rest/{interfaces.d.ts → types.d.ts} +0 -0
- /package/smartMapping/popup/{interfaces.d.ts → types.d.ts} +0 -0
- /package/smartMapping/raster/support/adapters/{interfaces.d.ts → types.d.ts} +0 -0
- /package/smartMapping/symbology/{interfaces.d.ts → types.d.ts} +0 -0
- /package/statistics/{interfaces.d.ts → types.d.ts} +0 -0
- /package/symbols/support/{interfaces.d.ts → types.d.ts} +0 -0
- /package/symbols/{interfaces.d.ts → types.d.ts} +0 -0
- /package/time/{interfaces.d.ts → types.d.ts} +0 -0
- /package/versionManagement/versionAdapters/{interfaces.d.ts → types.d.ts} +0 -0
- /package/views/2d/analysis/{interfaces.d.ts → types.d.ts} +0 -0
- /package/views/3d/analysis/{interfaces.d.ts → types.d.ts} +0 -0
- /package/views/3d/{interfaces.d.ts → types.d.ts} +0 -0
- /package/views/draw/{interfaces.d.ts → types.d.ts} +0 -0
- /package/views/input/{interfaces.d.ts → types.d.ts} +0 -0
- /package/views/navigation/{interfaces.d.ts → types.d.ts} +0 -0
- /package/views/ui/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/Attachments/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/BasemapGallery/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/BasemapLayerList/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/BatchAttributeForm/inputs/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/BatchAttributeForm/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/CatalogLayerList/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/Feature/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/FeatureForm/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/Histogram/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/HistogramRangeSlider/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/LayerList/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/Measurement/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/OrientedImageryViewer/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/Popup/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/Print/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/ScaleRangeSlider/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/Swipe/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/TableList/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/TimeSlider/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/Track/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/ValuePicker/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/support/GridControls/{interfaces.d.ts → types.d.ts} +0 -0
- /package/widgets/support/forms/{interfaces.d.ts → types.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2712,2848],{159:(e,t,n)=>{n.d(t,{A:()=>a});var l,r=n(31635),o=n(69622),i=n(91429),s=n(99157);let a=l=class extends o.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new l;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,i.MZ)({type:[s.A],nonNullable:!0})],a.prototype,"steps",void 0),a=l=(0,r.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformation")],a)},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>r});var l=n(37539);function r(e,t,n,r,o,i,s=Math.floor(e.length/3)){const a=(0,l.jd)(t,o);if(null==a)return!1;if(a===l.pO){if(e===r&&n===i)return!0;const t=n+3*s;for(let l=n,o=i;l<t;l++,o++)r[o]=e[l]??0;return!0}const u=n+3*s;for(let t=n,l=i;t<u;t+=3,l+=3)a(e,t,r,l);return!0}},37539:(e,t,n)=>{n.d(t,{pO:()=>g,jd:()=>f,Tp:()=>h,w5:()=>p});var l=n(34727),r=n(86211),o=n(73941),i=n(79258);Math.PI;const s=i.$O.radius,a=i.$O.eccentricitySquared,u={a1:s*a,a2:s*a*s*a,a3:s*a*a/2,a4:s*a*s*a*2.5,a5:s*a+s*a*a/2,a6:1-a};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius;var c=n(21325);const p={2:{5:g,7:null,9:null,10:g,1:x,6:null,8:null,0:null,3:v,11:y,2:g,4:Z},5:{5:g,7:null,9:null,10:g,1:x,6:null,8:null,0:null,3:v,11:y,2:g,4:Z},7:{5:null,7:g,9:null,10:g,1:null,6:R,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:g,10:g,1:null,6:null,8:A,0:null,3:null,11:null,2:null,4:null},3:{5:w,7:null,9:null,10:w,1:function(e,t,n,l){const r=e[t]/L,o=T-2*Math.atan(Math.exp(-e[t+1]/L)),i=L+(e[t+2]??0),s=Math.cos(o)*i;n[l]=Math.cos(r)*s,n[l+1]=Math.sin(r)*s,n[l+2]=Math.sin(o)*i},6:null,8:null,0:null,3:g,11:function(e,t,n,l){w(e,t,n,l),y(n,l,n,l)},2:w,4:function(e,t,n,l){w(e,t,n,l),Z(n,l,n,l)}},4:{5:b,7:null,9:null,10:b,1:function(e,t,n,l){b(e,t,n,l),x(n,l,n,l)},6:null,8:null,0:null,3:function(e,t,n,l){b(e,t,n,l),v(n,l,n,l)},11:function(e,t,n,l){b(e,t,n,l),y(n,l,n,l)},2:b,4:g},1:{5:z,7:null,9:null,10:z,1:g,6:null,8:null,0:null,3:function(e,t,n,l){z(e,t,n,l),v(n,l,n,l)},11:function(e,t,n,l){z(e,t,n,l),y(n,l,n,l)},2:z,4:function(e,t,n,l){z(e,t,n,l),Z(n,l,n,l)}},6:{5:null,7:I,9:null,10:I,1:null,6:g,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:C,10:C,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:g,3:null,11:null,2:null,4:null},10:{5:g,7:g,9:g,10:g,1:x,6:R,8:A,0:null,3:v,11:y,2:g,4:Z},11:{5:m,7:null,9:null,10:m,1:function(e,t,n,l){m(e,t,n,l),x(n,l,n,l)},6:null,8:null,0:null,3:function(e,t,n,l){m(e,t,n,l),v(n,l,n,l)},11:g,2:m,4:function(e,t,n,l){m(e,t,n,l),Z(n,l,n,l)}}};function f(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(O.source.spatialReference===e&&O.dest.spatialReference===t)return O;const n=d(e,O.source),l=d(t,O.dest);return 0===n&&0===l?(0,c.aI)(e,t)?O.projector=g:O.projector=null:O.projector=p[n][l],O}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function g(e,t,n,l){e!==n&&(n[l++]=e[t++],n[l++]=e[t++],n[l]=e[t]??0)}function w(e,t,n,l){n[l]=P*(e[t]/L),n[l+1]=P*(T-2*Math.atan(Math.exp(-e[t+1]/L))),n[l+2]=e[t+2]??0}function v(e,t,n,r){!function(e,t,n,r,o){const i=.4999999*Math.PI,s=(0,l.qE)(S*e[t+1],-i,i),a=Math.sin(s);n[r++]=S*e[t]*o.radius,n[r++]=o.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]??0}(e,t,n,r,i.$O)}function y(e,t,n,l){n[l]=e[t]*k,n[l+1]=e[t+1]*k,n[l+2]=e[t+2]??0}function m(e,t,n,l){n[l]=e[t]*_,n[l+1]=e[t+1]*_,n[l+2]=e[t+2]??0}function M(e,t,n,l,r){const o=r+(e[t+2]??0),i=S*e[t],s=S*e[t+1],a=Math.cos(s)*o;n[l]=Math.cos(i)*a,n[l+1]=Math.sin(i)*a,n[l+2]=Math.sin(s)*o}function A(e,t,n,l){M(e,t,n,l,i.Sw.radius)}function R(e,t,n,l){M(e,t,n,l,i.sH.radius)}function x(e,t,n,l){M(e,t,n,l,i.$O.radius)}function j(e,t,n,r,o){const i=e[t],s=e[t+1],a=e[t+2]??0,u=Math.sqrt(i*i+s*s+a*a),c=(0,l.YN)(a/(0===u?1:u)),p=Math.atan2(s,i);n[r++]=P*p,n[r++]=P*c,n[r]=u-o}function C(e,t,n,l){j(e,t,n,l,i.Sw.radius)}function I(e,t,n,l){j(e,t,n,l,i.sH.radius)}function z(e,t,n,l){j(e,t,n,l,i.$O.radius)}function Z(e,t,n,l){!function(e,t,n,l,r){const o=S*e[t],i=S*e[t+1],s=e[t+2]??0,a=Math.sin(i),u=Math.cos(i),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[l++]=(c+s)*u*Math.cos(o),n[l++]=(c+s)*u*Math.sin(o),n[l++]=(c*(1-r.eccentricitySquared)+s)*a}(e,t,n,l,i.$O)}function b(e,t,n,l){const r=u,o=e[t],s=e[t+1],a=e[t+2]??0;let c,p,f,h,d,g,w,v,y,m,M,A,R,x,j,C,I,z,Z,b,O;c=Math.abs(a),p=o*o+s*s,f=Math.sqrt(p),h=p+a*a,d=Math.sqrt(h),b=Math.atan2(s,o),g=a*a/h,w=p/h,x=r.a2/d,j=r.a3-r.a4/d,w>.3?(v=c/d*(1+w*(r.a1+x+g*j)/d),Z=Math.asin(v),m=v*v,y=Math.sqrt(1-m)):(y=f/d*(1-g*(r.a5-x-w*j)/d),Z=Math.acos(y),m=1-y*y,v=Math.sqrt(m)),M=1-i.$O.eccentricitySquared*m,A=i.$O.radius/Math.sqrt(M),R=r.a6*A,x=f-A*y,j=c-R*v,I=y*x+v*j,C=y*j-v*x,z=C/(R/M+I),Z+=z,O=I+C*z/2,a<0&&(Z=-Z),n[l++]=P*b,n[l++]=P*Z,n[l]=O}const O={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:g},S=(0,l.kU)(1),P=(0,l.KJ)(1),T=.5*Math.PI,L=i.$O.radius,k=L*Math.PI/180,_=180/(L*Math.PI)},40349:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var l=n(31635),r=n(91429),o=n(5443),i=n(86738),s=n(16930),a=n(47314),u=n(91806),c=n(87045),p=n(80812);let f=class extends a.default{constructor(...e){super(...e),this.portalItem=null,this.isReference=null,this.tileInfo=new c.A({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new i.A({x:-20037508.342787,y:20037508.342787,spatialReference:s.A.WebMercator}),spatialReference:s.A.WebMercator,lods:[new u.A({level:0,scale:591657527.591555,resolution:156543.033928}),new u.A({level:1,scale:295828763.795777,resolution:78271.5169639999}),new u.A({level:2,scale:147914381.897889,resolution:39135.7584820001}),new u.A({level:3,scale:73957190.948944,resolution:19567.8792409999}),new u.A({level:4,scale:36978595.474472,resolution:9783.93962049996}),new u.A({level:5,scale:18489297.737236,resolution:4891.96981024998}),new u.A({level:6,scale:9244648.868618,resolution:2445.98490512499}),new u.A({level:7,scale:4622324.434309,resolution:1222.99245256249}),new u.A({level:8,scale:2311162.217155,resolution:611.49622628138}),new u.A({level:9,scale:1155581.108577,resolution:305.748113140558}),new u.A({level:10,scale:577790.554289,resolution:152.874056570411}),new u.A({level:11,scale:288895.277144,resolution:76.4370282850732}),new u.A({level:12,scale:144447.638572,resolution:38.2185141425366}),new u.A({level:13,scale:72223.819286,resolution:19.1092570712683}),new u.A({level:14,scale:36111.909643,resolution:9.55462853563415}),new u.A({level:15,scale:18055.954822,resolution:4.77731426794937}),new u.A({level:16,scale:9027.977411,resolution:2.38865713397468}),new u.A({level:17,scale:4513.988705,resolution:1.19432856685505}),new u.A({level:18,scale:2256.994353,resolution:.597164283559817}),new u.A({level:19,scale:1128.497176,resolution:.298582141647617})]}),this.subDomains=["a","b","c"],this.urlTemplate="https://{subDomain}.tile.openstreetmap.org/{level}/{col}/{row}.png",this.operationalLayerType="OpenStreetMap",this.type="open-street-map",this.fullExtent=new o.A(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,s.A.WebMercator),this.copyright="Map data © OpenStreetMap contributors, CC-BY-SA"}get refreshInterval(){return 0}};(0,l.Cg)([(0,r.MZ)({type:p.default,json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],f.prototype,"portalItem",void 0),(0,l.Cg)([(0,r.MZ)({type:Boolean,json:{read:!1,write:!1}})],f.prototype,"isReference",void 0),(0,l.Cg)([(0,r.MZ)({type:Number,readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],f.prototype,"refreshInterval",null),(0,l.Cg)([(0,r.MZ)({type:c.A,json:{write:!1}})],f.prototype,"tileInfo",void 0),(0,l.Cg)([(0,r.MZ)({type:["show","hide"]})],f.prototype,"listMode",void 0),(0,l.Cg)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!1}})],f.prototype,"subDomains",void 0),(0,l.Cg)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!1}})],f.prototype,"urlTemplate",void 0),(0,l.Cg)([(0,r.MZ)({type:["OpenStreetMap"]})],f.prototype,"operationalLayerType",void 0),(0,l.Cg)([(0,r.MZ)({json:{read:!1}})],f.prototype,"type",void 0),(0,l.Cg)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!1},nonNullable:!0})],f.prototype,"fullExtent",void 0),(0,l.Cg)([(0,r.MZ)({json:{read:!1,write:!1}})],f.prototype,"copyright",void 0),(0,l.Cg)([(0,r.MZ)({json:{read:!1,write:!1}})],f.prototype,"wmtsInfo",void 0),f=(0,l.Cg)([(0,r.$K)("esri.layers.OpenStreetMapLayer")],f);const h=f},72802:(e,t,n)=>{n.d(t,{U:()=>r});var l=n(19419);class r{constructor(e,t,n,r=(0,l.vt)()){this._level=e,this._row=t,this._col=n,this.extent=r}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new r(e.level,e.row,e.col,e.extent)}}},87045:(e,t,n)=>{n.d(t,{A:()=>m});var l,r=n(31635),o=n(66552),i=n(25482),s=n(86211),a=n(91429),u=n(56507),c=n(86738),p=n(16930),f=n(21325),h=n(28735),d=n(91806),g=n(72802),w=n(36005),v=n(43937);const y=new o.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let m=class extends i.o{static{l=this}static create(e={}){const{resolutionFactor:t=1,scales:n,size:r=256,spatialReference:o=p.A.WebMercator,numLODs:i=24}=e;if(!(0,f.fn)(o)){const e=[];if(n)for(let t=0;t<n.length;t++){const l=n[t];e.push(new d.A({level:t,scale:l,resolution:l}))}else{let t=5e-4;for(let n=i-1;n>=0;n--)e.unshift(new d.A({level:n,scale:t,resolution:t})),t*=2}return new l({dpi:96,lods:e,origin:new c.A(0,0,o),size:[r,r],spatialReference:o})}const a=(0,f.Vp)(o),u=e.origin?new c.A({x:e.origin.x,y:e.origin.y,spatialReference:o}):new c.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:o}:{x:0,y:0,spatialReference:o}),h=1/(39.37*(0,s.GA)(o)*96),g=[];if(n)for(let e=0;e<n.length;e++){const t=n[e],l=t*h;g.push(new d.A({level:e,scale:t,resolution:l}))}else{let e=(0,f.EA)(o)?512/r*591657527.5917094:256/r*591657527.591555;const n=Math.ceil(i/t);g.push(new d.A({level:0,scale:e,resolution:e*h}));for(let l=1;l<n;l++){const n=e/2**t,r=n*h;g.push(new d.A({level:l,scale:n,resolution:r})),e=n}}return new l({dpi:96,lods:g,origin:u,size:[r,r],spatialReference:o})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const n=(0,f.Vp)(e);return e.isWrappable&&!!n&&Math.abs(n.origin[0]-t.x)<=n.dx}return!1}readOrigin(e,t){return c.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,n=0;const l=[],r=this._levelToLOD={};e&&(t=-1/0,n=1/0,e.forEach(e=>{l.push(e.scale),t=e.scale>t?e.scale:t,n=e.scale<n?e.scale:n,r[e.level]=e})),this._set("scales",l),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const n=Math.floor(e),l=n+1;return t[n]/(t[n]/t[l])**(e-n)}scaleToZoom(e){const t=this.scales,n=t.length-1;let l=0;for(;l<n;l++){const n=t[l],r=t[l+1];if(n<=e)return l;if(r===e)return l+1;if(n>e&&r<e)return l+Math.log(n/e)/Math.log(n/r)}return l}tileAt(e,t,n,l){const r=this.lodAt(e);if(!r)return null;let o,i;if("number"==typeof t)o=t,i=n;else if((0,f.aI)(t.spatialReference,this.spatialReference))o=t.x,i=t.y,l=n;else{const e=(0,h.Cv)(t,this.spatialReference);if(null==e)return null;o=e.x,i=e.y,l=n}const s=r.resolution*this.size[0],a=r.resolution*this.size[1];return l??=new g.U(0,0,0),l.level=e,l.row=Math.floor((this.origin.y-i)/a+.001),l.col=Math.floor((o-this.origin.x)/s+.001),this.updateTileInfo(l),l}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let n=this.lodAt(e.level);if(!n&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(n=t)}if(!n)return!1;const l=e.level-n.level,r=n.resolution*this.size[0]/2**l,o=n.resolution*this.size[1]/2**l;return e.extent[0]=this.origin.x+e.col*r,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+r,e.extent[3]=e.extent[1]+o,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const n=this.lodAt(t.level);if(null==n)return null;const{resolution:l}=n,r=l*this.size[0],o=l*this.size[1];return e[0]=this.origin.x+t.col*r,e[1]=this.origin.y-(t.row+1)*o,e[2]=e[0]+r,e[3]=e[1]+o,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return l.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const n=[],r=this.lods.length-t;for(let e=0;e<r;e++){const l=e+t,{scale:r,resolution:o}=l>=0?this.lods[l]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};n.push(new d.A({level:e,scale:r,resolution:o}))}return new l({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:n})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let n=0;n<e.length;n++){const l=e[n];this._upsampleLevels[l.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/l.resolution:0},t=l}}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"compressionQuality",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"dpi",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{read:y.read,write:y.write,origins:{"web-scene":{read:!1,write:!1}}}})],m.prototype,"format",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"isWrappable",null),(0,r.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],m.prototype,"origin",void 0),(0,r.Cg)([(0,w.w)("origin")],m.prototype,"readOrigin",null),(0,r.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],m.prototype,"lods",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"scales",void 0),(0,r.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],m.prototype,"size",void 0),(0,r.Cg)([(0,w.w)("size",["rows","cols"])],m.prototype,"readSize",null),(0,r.Cg)([(0,v.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],m.prototype,"writeSize",null),(0,r.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],m.prototype,"spatialReference",void 0),m=l=(0,r.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],m)},91218:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>W,initializeProjection:()=>B,isEqualBaseGCS:()=>K,isLoaded:()=>b,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>S,load:()=>T,project:()=>L,projectAsync:()=>D,projectExtent:()=>te,projectMany:()=>k,projectMultipoint:()=>V,projectOrLoad:()=>G,projectOrLoadMany:()=>$,projectPoint:()=>J,projectPolygon:()=>X,projectPolyline:()=>Q,projectWithoutEngine:()=>F,requiresLoad:()=>P,test:()=>q,tryProject:()=>_,unload:()=>E});var l=n(49186),r=n(74887),o=n(62788),i=n(95488),s=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(91075),f=n(48526),h=n(86738),d=n(39829),g=n(82799),w=n(16930),v=n(159),y=n(9762),m=n(37539);function M(e,t,n,l,r,o){return A[0]=e,A[1]=t,A[2]=n,(0,y.projectBuffer)(A,l,0,r,o,0)}const A=(0,s.vt)();var R=n(21325);let x=null,j=null,C=null,I=null,z={};const Z=new i.I;function b(){return!!(j?.isLoaded()&&C?.isLoaded()&&I?.isLoaded())}function O(){return!!b()||((0,o.gc)(Z),T(),!1)}function S(e,t){return!e||!t||W(e,t)||O()}function P(e,t){return!W(e,t)&&!b()}async function T(e){null==x&&(x=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(j=e,j.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(C=e,C.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(I=e,I.load()))])),await x,(0,r.Te)(e),Z.notify()}function L(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),k(e,e[0].spatialReference,t,n)):((0,a.f)(e),k([e],e.spatialReference,t,n)[0])}function k(e,t,n,l){if(null==t||null==n)return e;if(W(t,n,l))return e.map(e=>F(e,t,n));if(null==l?.geographicTransformation&&(0,u.jA)(t))return k(e.map(e=>F(e,t,w.A.WGS84)),w.A.WGS84,n,{zConversionDisabled:l?.zConversionDisabled});if(null==l?.geographicTransformation&&(0,u.jA)(n))return k(e,t,w.A.WGS84).map(e=>F(e,w.A.WGS84,n));if(!b())throw new N;if(!l?.geographicTransformation)if(l?.extendedParams)l={...l,geographicTransformation:I.getTransformation(t,n,l.areaOfInterestExtent)||new v.A};else if(!l?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=z[e];r||(r=I.getTransformation(t,n)||new v.A,z[e]=r),l={geographicTransformation:r,zConversionDisabled:l?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?j.executeMany(e,n,l):C.executeMany(e,n,l)}function _(e,t,n){try{return L(e,t,n)}catch(e){if(e instanceof N)return null;throw e}}function G(e,t){const n=$([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function $(e,t,n){if(!b())for(const n of e)if(null!=n&&!(0,R.aI)(n.spatialReference,t)&&(0,R.fn)(n.spatialReference)&&(0,R.fn)(t)&&!W(n.spatialReference,t))return(0,o.gc)(Z),{pending:T(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,R.aI)(e.spatialReference,t)?e:(0,R.fn)(e.spatialReference)&&(0,R.fn)(t)?L(e,t,n):null)}}class N extends l.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function E(){x=null,j=null,C=null,I=null,z={}}const q={get loadPromise(){return x}};async function D(e,t,n){if((0,r.Te)(n),!e)return e;const l=$(Array.isArray(e)?e:[e],t,n);if(l.pending)return await l.pending,(0,r.Te)(n),D(e,t,n);const o=l.geometries??[];return Array.isArray(e)?o:o[0]}function W(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,R.aI)(e,t)||(0,R.fn)(e)&&(0,R.fn)(t)&&!!(0,m.jd)(e,t))}function K(e,t){if((0,R.aI)(e,t))return!0;if(!(0,R.fn)(e)||!(0,R.fn)(t))return!1;const n=(0,R.oT)(e)||(0,R.K8)(e)||(0,R.x1)(e),l=(0,R.oT)(t)||(0,R.K8)(t)||(0,R.x1)(t);return n&&l}async function B(e,t,n,l){if(b())return(0,r.NO)(l);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!W(t,n,r))return T(l)}else if(e&&t&&!W(e,t,n))return T(l);return(0,r.NO)(l)}function F(e,t,n){return e?"x"in e?U(e,t,new h.A,n,0):"xmin"in e?ne(e,t,new c.A,n,0):"rings"in e?ee(e,t,new d.A,n,0):"paths"in e?Y(e,t,new g.A,n,0):"points"in e?H(e,t,new f.A,n,0):null:null}function J(e,t,n=t.spatialReference,l=0){return null!=n&&null!=e.spatialReference&&null!=U(e,e.spatialReference,t,n,l)}function U(e,t,n,l,r){re[0]=e.x,re[1]=e.y;const o=e.z;return re[2]=void 0!==o?o:r,(0,y.projectBuffer)(re,t,0,re,l,0)?(n.x=re[0],n.y=re[1],n.spatialReference=l,void 0!==o||(0,u.xP)(l)?(n.z=re[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function V(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=H(e,e.spatialReference,t,n,l)}function H(e,t,n,l,r){const{points:o,hasZ:i,hasM:s}=e,a=[],c=o.length,p=[];for(const e of o)p.push(e[0],e[1],i?e[2]:r);if(!(0,y.projectBuffer)(p,t,0,p,l,0,c))return null;const f=i||(0,u.xP)(l);for(let e=0;e<c;++e){const t=3*e,n=p[t],l=p[t+1];f&&s?a.push([n,l,p[t+2],o[e][3]]):f?a.push([n,l,p[t+2]]):s?a.push([n,l,o[e][2]]):a.push([n,l])}return n.points=a,n.spatialReference=l,n.hasZ=i,n.hasM=s,n}function Q(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=Y(e,e.spatialReference,t,n,l)}function Y(e,t,n,l,r){const{paths:o,hasZ:i,hasM:s}=e,a=[];if(!le(o,i??!1,s??!1,t,a,l,r))return null;const c=i||(0,u.xP)(l);return n.paths=a,n.spatialReference=l,n.hasZ=c,n.hasM=s,n}function X(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ee(e,e.spatialReference,t,n,l)}function ee(e,t,n,l,r){const{rings:o,hasZ:i,hasM:s}=e,a=[];if(!le(o,i??!1,s??!1,t,a,l,r))return null;const c=i||(0,u.xP)(l);return n.rings=a,n.spatialReference=l,n.hasZ=c,n.hasM=s,n}function te(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ne(e,e.spatialReference,t,n,l)}function ne(e,t,n,l,r){const{xmin:o,ymin:i,xmax:s,ymax:a,hasZ:c,hasM:p}=e;if(!M(o,i,c?e.zmin:r,t,re,l))return null;const f=c||(0,u.xP)(l);return n.xmin=re[0],n.ymin=re[1],f&&(n.zmin=re[2]),M(s,a,c?e.zmax:r,t,re,l)?(n.xmax=re[0],n.ymax=re[1],f&&(n.zmax=re[2]),p&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=l,n):null}function le(e,t,n,l,r,o,i=0){const s=new Array;for(const n of e)for(const e of n)s.push(e[0],e[1],t?e[2]:i);if(!(0,y.projectBuffer)(s,l,0,s,o,0))return!1;let a=0;r.length=0;const c=t||(0,u.xP)(o);for(const t of e){const e=new Array;for(const l of t)c&&n?e.push([s[a++],s[a++],s[a++],l[3]]):c?e.push([s[a++],s[a++],s[a++]]):n?(e.push([s[a++],s[a++],l[2]]),a++):(e.push([s[a++],s[a++]]),a++);r.push(e)}return!0}const re=(0,s.vt)()},91806:(e,t,n)=>{n.d(t,{A:()=>a});var l,r=n(31635),o=n(25482),i=n(91429),s=n(56507);let a=class extends o.o{static{l=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new l({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r.Cg)([(0,i.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,r.Cg)([(0,i.MZ)({type:s.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,r.Cg)([(0,i.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,r.Cg)([(0,i.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,r.Cg)([(0,i.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=l=(0,r.Cg)([(0,i.$K)("esri.layers.support.LOD")],a)},99157:(e,t,n)=>{n.d(t,{A:()=>s});var l,r=n(31635),o=n(69622),i=n(91429);let s=l=class extends o.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new l({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,i.MZ)()],s.prototype,"isInverse",void 0),(0,r.Cg)([(0,i.MZ)()],s.prototype,"wkt",void 0),(0,r.Cg)([(0,i.MZ)()],s.prototype,"wkid",void 0),s=l=(0,r.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformationStep")],s)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2712,2848],{159:(e,t,n)=>{n.d(t,{A:()=>a});var l,r=n(31635),o=n(69622),i=n(91429),s=n(99157);let a=l=class extends o.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new l;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,i.MZ)({type:[s.A],nonNullable:!0})],a.prototype,"steps",void 0),a=l=(0,r.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformation")],a)},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>r});var l=n(37539);function r(e,t,n,r,o,i,s=Math.floor(e.length/3)){const a=(0,l.jd)(t,o);if(null==a)return!1;if(a===l.pO){if(e===r&&n===i)return!0;const t=n+3*s;for(let l=n,o=i;l<t;l++,o++)r[o]=e[l]??0;return!0}const u=n+3*s;for(let t=n,l=i;t<u;t+=3,l+=3)a(e,t,r,l);return!0}},37539:(e,t,n)=>{n.d(t,{pO:()=>g,jd:()=>f,Tp:()=>h,w5:()=>p});var l=n(34727),r=n(86211),o=n(73941),i=n(79258);Math.PI;const s=i.$O.radius,a=i.$O.eccentricitySquared,u={a1:s*a,a2:s*a*s*a,a3:s*a*a/2,a4:s*a*s*a*2.5,a5:s*a+s*a*a/2,a6:1-a};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius;var c=n(21325);const p={2:{5:g,7:null,9:null,10:g,1:x,6:null,8:null,0:null,3:v,11:y,2:g,4:Z},5:{5:g,7:null,9:null,10:g,1:x,6:null,8:null,0:null,3:v,11:y,2:g,4:Z},7:{5:null,7:g,9:null,10:g,1:null,6:R,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:g,10:g,1:null,6:null,8:A,0:null,3:null,11:null,2:null,4:null},3:{5:w,7:null,9:null,10:w,1:function(e,t,n,l){const r=e[t]/L,o=T-2*Math.atan(Math.exp(-e[t+1]/L)),i=L+(e[t+2]??0),s=Math.cos(o)*i;n[l]=Math.cos(r)*s,n[l+1]=Math.sin(r)*s,n[l+2]=Math.sin(o)*i},6:null,8:null,0:null,3:g,11:function(e,t,n,l){w(e,t,n,l),y(n,l,n,l)},2:w,4:function(e,t,n,l){w(e,t,n,l),Z(n,l,n,l)}},4:{5:b,7:null,9:null,10:b,1:function(e,t,n,l){b(e,t,n,l),x(n,l,n,l)},6:null,8:null,0:null,3:function(e,t,n,l){b(e,t,n,l),v(n,l,n,l)},11:function(e,t,n,l){b(e,t,n,l),y(n,l,n,l)},2:b,4:g},1:{5:z,7:null,9:null,10:z,1:g,6:null,8:null,0:null,3:function(e,t,n,l){z(e,t,n,l),v(n,l,n,l)},11:function(e,t,n,l){z(e,t,n,l),y(n,l,n,l)},2:z,4:function(e,t,n,l){z(e,t,n,l),Z(n,l,n,l)}},6:{5:null,7:I,9:null,10:I,1:null,6:g,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:C,10:C,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:g,3:null,11:null,2:null,4:null},10:{5:g,7:g,9:g,10:g,1:x,6:R,8:A,0:null,3:v,11:y,2:g,4:Z},11:{5:m,7:null,9:null,10:m,1:function(e,t,n,l){m(e,t,n,l),x(n,l,n,l)},6:null,8:null,0:null,3:function(e,t,n,l){m(e,t,n,l),v(n,l,n,l)},11:g,2:m,4:function(e,t,n,l){m(e,t,n,l),Z(n,l,n,l)}}};function f(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(O.source.spatialReference===e&&O.dest.spatialReference===t)return O;const n=d(e,O.source),l=d(t,O.dest);return 0===n&&0===l?(0,c.aI)(e,t)?O.projector=g:O.projector=null:O.projector=p[n][l],O}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function g(e,t,n,l){e!==n&&(n[l++]=e[t++],n[l++]=e[t++],n[l]=e[t]??0)}function w(e,t,n,l){n[l]=P*(e[t]/L),n[l+1]=P*(T-2*Math.atan(Math.exp(-e[t+1]/L))),n[l+2]=e[t+2]??0}function v(e,t,n,r){!function(e,t,n,r,o){const i=.4999999*Math.PI,s=(0,l.qE)(S*e[t+1],-i,i),a=Math.sin(s);n[r++]=S*e[t]*o.radius,n[r++]=o.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]??0}(e,t,n,r,i.$O)}function y(e,t,n,l){n[l]=e[t]*k,n[l+1]=e[t+1]*k,n[l+2]=e[t+2]??0}function m(e,t,n,l){n[l]=e[t]*_,n[l+1]=e[t+1]*_,n[l+2]=e[t+2]??0}function M(e,t,n,l,r){const o=r+(e[t+2]??0),i=S*e[t],s=S*e[t+1],a=Math.cos(s)*o;n[l]=Math.cos(i)*a,n[l+1]=Math.sin(i)*a,n[l+2]=Math.sin(s)*o}function A(e,t,n,l){M(e,t,n,l,i.Sw.radius)}function R(e,t,n,l){M(e,t,n,l,i.sH.radius)}function x(e,t,n,l){M(e,t,n,l,i.$O.radius)}function j(e,t,n,r,o){const i=e[t],s=e[t+1],a=e[t+2]??0,u=Math.sqrt(i*i+s*s+a*a),c=(0,l.YN)(a/(0===u?1:u)),p=Math.atan2(s,i);n[r++]=P*p,n[r++]=P*c,n[r]=u-o}function C(e,t,n,l){j(e,t,n,l,i.Sw.radius)}function I(e,t,n,l){j(e,t,n,l,i.sH.radius)}function z(e,t,n,l){j(e,t,n,l,i.$O.radius)}function Z(e,t,n,l){!function(e,t,n,l,r){const o=S*e[t],i=S*e[t+1],s=e[t+2]??0,a=Math.sin(i),u=Math.cos(i),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[l++]=(c+s)*u*Math.cos(o),n[l++]=(c+s)*u*Math.sin(o),n[l++]=(c*(1-r.eccentricitySquared)+s)*a}(e,t,n,l,i.$O)}function b(e,t,n,l){const r=u,o=e[t],s=e[t+1],a=e[t+2]??0;let c,p,f,h,d,g,w,v,y,m,M,A,R,x,j,C,I,z,Z,b,O;c=Math.abs(a),p=o*o+s*s,f=Math.sqrt(p),h=p+a*a,d=Math.sqrt(h),b=Math.atan2(s,o),g=a*a/h,w=p/h,x=r.a2/d,j=r.a3-r.a4/d,w>.3?(v=c/d*(1+w*(r.a1+x+g*j)/d),Z=Math.asin(v),m=v*v,y=Math.sqrt(1-m)):(y=f/d*(1-g*(r.a5-x-w*j)/d),Z=Math.acos(y),m=1-y*y,v=Math.sqrt(m)),M=1-i.$O.eccentricitySquared*m,A=i.$O.radius/Math.sqrt(M),R=r.a6*A,x=f-A*y,j=c-R*v,I=y*x+v*j,C=y*j-v*x,z=C/(R/M+I),Z+=z,O=I+C*z/2,a<0&&(Z=-Z),n[l++]=P*b,n[l++]=P*Z,n[l]=O}const O={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:g},S=(0,l.kU)(1),P=(0,l.KJ)(1),T=.5*Math.PI,L=i.$O.radius,k=L*Math.PI/180,_=180/(L*Math.PI)},40349:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var l=n(31635),r=n(91429),o=n(5443),i=n(86738),s=n(16930),a=n(47314),u=n(91806),c=n(87045),p=n(80812);let f=class extends a.default{constructor(...e){super(...e),this.portalItem=null,this.isReference=null,this.tileInfo=new c.A({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new i.A({x:-20037508.342787,y:20037508.342787,spatialReference:s.A.WebMercator}),spatialReference:s.A.WebMercator,lods:[new u.A({level:0,scale:591657527.591555,resolution:156543.033928}),new u.A({level:1,scale:295828763.795777,resolution:78271.5169639999}),new u.A({level:2,scale:147914381.897889,resolution:39135.7584820001}),new u.A({level:3,scale:73957190.948944,resolution:19567.8792409999}),new u.A({level:4,scale:36978595.474472,resolution:9783.93962049996}),new u.A({level:5,scale:18489297.737236,resolution:4891.96981024998}),new u.A({level:6,scale:9244648.868618,resolution:2445.98490512499}),new u.A({level:7,scale:4622324.434309,resolution:1222.99245256249}),new u.A({level:8,scale:2311162.217155,resolution:611.49622628138}),new u.A({level:9,scale:1155581.108577,resolution:305.748113140558}),new u.A({level:10,scale:577790.554289,resolution:152.874056570411}),new u.A({level:11,scale:288895.277144,resolution:76.4370282850732}),new u.A({level:12,scale:144447.638572,resolution:38.2185141425366}),new u.A({level:13,scale:72223.819286,resolution:19.1092570712683}),new u.A({level:14,scale:36111.909643,resolution:9.55462853563415}),new u.A({level:15,scale:18055.954822,resolution:4.77731426794937}),new u.A({level:16,scale:9027.977411,resolution:2.38865713397468}),new u.A({level:17,scale:4513.988705,resolution:1.19432856685505}),new u.A({level:18,scale:2256.994353,resolution:.597164283559817}),new u.A({level:19,scale:1128.497176,resolution:.298582141647617})]}),this.subDomains=["a","b","c"],this.urlTemplate="https://{subDomain}.tile.openstreetmap.org/{level}/{col}/{row}.png",this.operationalLayerType="OpenStreetMap",this.type="open-street-map",this.fullExtent=new o.A(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,s.A.WebMercator),this.copyright="Map data © OpenStreetMap contributors, CC-BY-SA"}get refreshInterval(){return 0}};(0,l.Cg)([(0,r.MZ)({type:p.default,json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],f.prototype,"portalItem",void 0),(0,l.Cg)([(0,r.MZ)({type:Boolean,json:{read:!1,write:!1}})],f.prototype,"isReference",void 0),(0,l.Cg)([(0,r.MZ)({type:Number,readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],f.prototype,"refreshInterval",null),(0,l.Cg)([(0,r.MZ)({type:c.A,json:{write:!1}})],f.prototype,"tileInfo",void 0),(0,l.Cg)([(0,r.MZ)({type:["show","hide"]})],f.prototype,"listMode",void 0),(0,l.Cg)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!1}})],f.prototype,"subDomains",void 0),(0,l.Cg)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!1}})],f.prototype,"urlTemplate",void 0),(0,l.Cg)([(0,r.MZ)({type:["OpenStreetMap"]})],f.prototype,"operationalLayerType",void 0),(0,l.Cg)([(0,r.MZ)({json:{read:!1}})],f.prototype,"type",void 0),(0,l.Cg)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!1},nonNullable:!0})],f.prototype,"fullExtent",void 0),(0,l.Cg)([(0,r.MZ)({json:{read:!1,write:!1}})],f.prototype,"copyright",void 0),(0,l.Cg)([(0,r.MZ)({json:{read:!1,write:!1}})],f.prototype,"wmtsInfo",void 0),f=(0,l.Cg)([(0,r.$K)("esri.layers.OpenStreetMapLayer")],f);const h=f},72802:(e,t,n)=>{n.d(t,{U:()=>r});var l=n(19419);class r{constructor(e,t,n,r=(0,l.vt)()){this._level=e,this._row=t,this._col=n,this.extent=r}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new r(e.level,e.row,e.col,e.extent)}}},87045:(e,t,n)=>{n.d(t,{A:()=>m});var l,r=n(31635),o=n(66552),i=n(25482),s=n(86211),a=n(91429),u=n(56507),c=n(86738),p=n(16930),f=n(21325),h=n(28735),d=n(91806),g=n(72802),w=n(36005),v=n(43937);const y=new o.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let m=class extends i.o{static{l=this}static create(e={}){const{resolutionFactor:t=1,scales:n,size:r=256,spatialReference:o=p.A.WebMercator,numLODs:i=24}=e;if(!(0,f.fn)(o)){const e=[];if(n)for(let t=0;t<n.length;t++){const l=n[t];e.push(new d.A({level:t,scale:l,resolution:l}))}else{let t=5e-4;for(let n=i-1;n>=0;n--)e.unshift(new d.A({level:n,scale:t,resolution:t})),t*=2}return new l({dpi:96,lods:e,origin:new c.A(0,0,o),size:[r,r],spatialReference:o})}const a=(0,f.Vp)(o),u=e.origin?new c.A({x:e.origin.x,y:e.origin.y,spatialReference:o}):new c.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:o}:{x:0,y:0,spatialReference:o}),h=1/(39.37*(0,s.GA)(o)*96),g=[];if(n)for(let e=0;e<n.length;e++){const t=n[e],l=t*h;g.push(new d.A({level:e,scale:t,resolution:l}))}else{let e=(0,f.EA)(o)?512/r*591657527.5917094:256/r*591657527.591555;const n=Math.ceil(i/t);g.push(new d.A({level:0,scale:e,resolution:e*h}));for(let l=1;l<n;l++){const n=e/2**t,r=n*h;g.push(new d.A({level:l,scale:n,resolution:r})),e=n}}return new l({dpi:96,lods:g,origin:u,size:[r,r],spatialReference:o})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const n=(0,f.Vp)(e);return e.isWrappable&&!!n&&Math.abs(n.origin[0]-t.x)<=n.dx}return!1}readOrigin(e,t){return c.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,n=0;const l=[],r=this._levelToLOD={};e&&(t=-1/0,n=1/0,e.forEach(e=>{l.push(e.scale),t=e.scale>t?e.scale:t,n=e.scale<n?e.scale:n,r[e.level]=e})),this._set("scales",l),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const n=Math.floor(e),l=n+1;return t[n]/(t[n]/t[l])**(e-n)}scaleToZoom(e){const t=this.scales,n=t.length-1;let l=0;for(;l<n;l++){const n=t[l],r=t[l+1];if(n<=e)return l;if(r===e)return l+1;if(n>e&&r<e)return l+Math.log(n/e)/Math.log(n/r)}return l}tileAt(e,t,n,l){const r=this.lodAt(e);if(!r)return null;let o,i;if("number"==typeof t)o=t,i=n;else if((0,f.aI)(t.spatialReference,this.spatialReference))o=t.x,i=t.y,l=n;else{const e=(0,h.Cv)(t,this.spatialReference);if(null==e)return null;o=e.x,i=e.y,l=n}const s=r.resolution*this.size[0],a=r.resolution*this.size[1];return l??=new g.U(0,0,0),l.level=e,l.row=Math.floor((this.origin.y-i)/a+.001),l.col=Math.floor((o-this.origin.x)/s+.001),this.updateTileInfo(l),l}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let n=this.lodAt(e.level);if(!n&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(n=t)}if(!n)return!1;const l=e.level-n.level,r=n.resolution*this.size[0]/2**l,o=n.resolution*this.size[1]/2**l;return e.extent[0]=this.origin.x+e.col*r,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+r,e.extent[3]=e.extent[1]+o,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const n=this.lodAt(t.level);if(null==n)return null;const{resolution:l}=n,r=l*this.size[0],o=l*this.size[1];return e[0]=this.origin.x+t.col*r,e[1]=this.origin.y-(t.row+1)*o,e[2]=e[0]+r,e[3]=e[1]+o,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return l.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const n=[],r=this.lods.length-t;for(let e=0;e<r;e++){const l=e+t,{scale:r,resolution:o}=l>=0?this.lods[l]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};n.push(new d.A({level:e,scale:r,resolution:o}))}return new l({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:n})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let n=0;n<e.length;n++){const l=e[n];this._upsampleLevels[l.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/l.resolution:0},t=l}}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"compressionQuality",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"dpi",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{read:y.read,write:y.write,origins:{"web-scene":{read:!1,write:!1}}}})],m.prototype,"format",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"isWrappable",null),(0,r.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],m.prototype,"origin",void 0),(0,r.Cg)([(0,w.w)("origin")],m.prototype,"readOrigin",null),(0,r.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],m.prototype,"lods",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"scales",void 0),(0,r.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],m.prototype,"size",void 0),(0,r.Cg)([(0,w.w)("size",["rows","cols"])],m.prototype,"readSize",null),(0,r.Cg)([(0,v.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],m.prototype,"writeSize",null),(0,r.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],m.prototype,"spatialReference",void 0),m=l=(0,r.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],m)},91218:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>W,initializeProjection:()=>B,isEqualBaseGCS:()=>K,isLoaded:()=>b,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>S,load:()=>T,project:()=>L,projectAsync:()=>D,projectExtent:()=>te,projectMany:()=>k,projectMultipoint:()=>V,projectOrLoad:()=>G,projectOrLoadMany:()=>$,projectPoint:()=>J,projectPolygon:()=>X,projectPolyline:()=>Q,projectWithoutEngine:()=>F,requiresLoad:()=>P,test:()=>q,tryProject:()=>_,unload:()=>E});var l=n(49186),r=n(74887),o=n(62788),i=n(95488),s=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(91075),f=n(48526),h=n(86738),d=n(39829),g=n(82799),w=n(16930),v=n(159),y=n(9762),m=n(37539);function M(e,t,n,l,r,o){return A[0]=e,A[1]=t,A[2]=n,(0,y.projectBuffer)(A,l,0,r,o,0)}const A=(0,s.vt)();var R=n(21325);let x=null,j=null,C=null,I=null,z={};const Z=new i.I;function b(){return!!(j?.isLoaded()&&C?.isLoaded()&&I?.isLoaded())}function O(){return!!b()||((0,o.gc)(Z),T(),!1)}function S(e,t){return!e||!t||W(e,t)||O()}function P(e,t){return!W(e,t)&&!b()}async function T(e){null==x&&(x=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(j=e,j.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(C=e,C.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(I=e,I.load()))])),await x,(0,r.Te)(e),Z.notify()}function L(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),k(e,e[0].spatialReference,t,n)):((0,a.f)(e),k([e],e.spatialReference,t,n)[0])}function k(e,t,n,l){if(null==t||null==n)return e;if(W(t,n,l))return e.map(e=>F(e,t,n));if(null==l?.geographicTransformation&&(0,u.jA)(t))return k(e.map(e=>F(e,t,w.A.WGS84)),w.A.WGS84,n,{zConversionDisabled:l?.zConversionDisabled});if(null==l?.geographicTransformation&&(0,u.jA)(n))return k(e,t,w.A.WGS84).map(e=>F(e,w.A.WGS84,n));if(!b())throw new N;if(!l?.geographicTransformation)if(l?.extendedParams)l={...l,geographicTransformation:I.getTransformation(t,n,l.areaOfInterestExtent)||new v.A};else if(!l?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=z[e];r||(r=I.getTransformation(t,n)||new v.A,z[e]=r),l={geographicTransformation:r,zConversionDisabled:l?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?j.executeMany(e,n,l):C.executeMany(e,n,l)}function _(e,t,n){try{return L(e,t,n)}catch(e){return null}}function G(e,t){const n=$([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function $(e,t,n){if(!b())for(const n of e)if(null!=n&&!(0,R.aI)(n.spatialReference,t)&&(0,R.fn)(n.spatialReference)&&(0,R.fn)(t)&&!W(n.spatialReference,t))return(0,o.gc)(Z),{pending:T(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,R.aI)(e.spatialReference,t)?e:(0,R.fn)(e.spatialReference)&&(0,R.fn)(t)?L(e,t,n):null)}}class N extends l.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function E(){x=null,j=null,C=null,I=null,z={}}const q={get loadPromise(){return x}};async function D(e,t,n){if((0,r.Te)(n),!e)return e;const l=$(Array.isArray(e)?e:[e],t,n);if(l.pending)return await l.pending,(0,r.Te)(n),D(e,t,n);const o=l.geometries??[];return Array.isArray(e)?o:o[0]}function W(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,R.aI)(e,t)||(0,R.fn)(e)&&(0,R.fn)(t)&&!!(0,m.jd)(e,t))}function K(e,t){if((0,R.aI)(e,t))return!0;if(!(0,R.fn)(e)||!(0,R.fn)(t))return!1;const n=(0,R.oT)(e)||(0,R.K8)(e)||(0,R.x1)(e),l=(0,R.oT)(t)||(0,R.K8)(t)||(0,R.x1)(t);return n&&l}async function B(e,t,n,l){if(b())return(0,r.NO)(l);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!W(t,n,r))return T(l)}else if(e&&t&&!W(e,t,n))return T(l);return(0,r.NO)(l)}function F(e,t,n){return e?"x"in e?U(e,t,new h.A,n,0):"xmin"in e?ne(e,t,new c.A,n,0):"rings"in e?ee(e,t,new d.A,n,0):"paths"in e?Y(e,t,new g.A,n,0):"points"in e?H(e,t,new f.A,n,0):null:null}function J(e,t,n=t.spatialReference,l=0){return null!=n&&null!=e.spatialReference&&null!=U(e,e.spatialReference,t,n,l)}function U(e,t,n,l,r){re[0]=e.x,re[1]=e.y;const o=e.z;return re[2]=void 0!==o?o:r,(0,y.projectBuffer)(re,t,0,re,l,0)?(n.x=re[0],n.y=re[1],n.spatialReference=l,void 0!==o||(0,u.xP)(l)?(n.z=re[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function V(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=H(e,e.spatialReference,t,n,l)}function H(e,t,n,l,r){const{points:o,hasZ:i,hasM:s}=e,a=[],c=o.length,p=[];for(const e of o)p.push(e[0],e[1],i?e[2]:r);if(!(0,y.projectBuffer)(p,t,0,p,l,0,c))return null;const f=i||(0,u.xP)(l);for(let e=0;e<c;++e){const t=3*e,n=p[t],l=p[t+1];f&&s?a.push([n,l,p[t+2],o[e][3]]):f?a.push([n,l,p[t+2]]):s?a.push([n,l,o[e][2]]):a.push([n,l])}return n.points=a,n.spatialReference=l,n.hasZ=i,n.hasM=s,n}function Q(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=Y(e,e.spatialReference,t,n,l)}function Y(e,t,n,l,r){const{paths:o,hasZ:i,hasM:s}=e,a=[];if(!le(o,i??!1,s??!1,t,a,l,r))return null;const c=i||(0,u.xP)(l);return n.paths=a,n.spatialReference=l,n.hasZ=c,n.hasM=s,n}function X(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ee(e,e.spatialReference,t,n,l)}function ee(e,t,n,l,r){const{rings:o,hasZ:i,hasM:s}=e,a=[];if(!le(o,i??!1,s??!1,t,a,l,r))return null;const c=i||(0,u.xP)(l);return n.rings=a,n.spatialReference=l,n.hasZ=c,n.hasM=s,n}function te(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ne(e,e.spatialReference,t,n,l)}function ne(e,t,n,l,r){const{xmin:o,ymin:i,xmax:s,ymax:a,hasZ:c,hasM:p}=e;if(!M(o,i,c?e.zmin:r,t,re,l))return null;const f=c||(0,u.xP)(l);return n.xmin=re[0],n.ymin=re[1],f&&(n.zmin=re[2]),M(s,a,c?e.zmax:r,t,re,l)?(n.xmax=re[0],n.ymax=re[1],f&&(n.zmax=re[2]),p&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=l,n):null}function le(e,t,n,l,r,o,i=0){const s=new Array;for(const n of e)for(const e of n)s.push(e[0],e[1],t?e[2]:i);if(!(0,y.projectBuffer)(s,l,0,s,o,0))return!1;let a=0;r.length=0;const c=t||(0,u.xP)(o);for(const t of e){const e=new Array;for(const l of t)c&&n?e.push([s[a++],s[a++],s[a++],l[3]]):c?e.push([s[a++],s[a++],s[a++]]):n?(e.push([s[a++],s[a++],l[2]]),a++):(e.push([s[a++],s[a++]]),a++);r.push(e)}return!0}const re=(0,s.vt)()},91806:(e,t,n)=>{n.d(t,{A:()=>a});var l,r=n(31635),o=n(25482),i=n(91429),s=n(56507);let a=class extends o.o{static{l=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new l({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r.Cg)([(0,i.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,r.Cg)([(0,i.MZ)({type:s.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,r.Cg)([(0,i.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,r.Cg)([(0,i.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,r.Cg)([(0,i.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=l=(0,r.Cg)([(0,i.$K)("esri.layers.support.LOD")],a)},99157:(e,t,n)=>{n.d(t,{A:()=>s});var l,r=n(31635),o=n(69622),i=n(91429);let s=l=class extends o.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new l({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,i.MZ)()],s.prototype,"isInverse",void 0),(0,r.Cg)([(0,i.MZ)()],s.prototype,"wkt",void 0),(0,r.Cg)([(0,i.MZ)()],s.prototype,"wkid",void 0),s=l=(0,r.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformationStep")],s)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1863],{159:(e,t,r)=>{r.d(t,{A:()=>a});var n,i=r(31635),s=r(69622),o=r(91429),l=r(99157);let a=n=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,o.MZ)({type:[l.A],nonNullable:!0})],a.prototype,"steps",void 0),a=n=(0,i.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformation")],a)},162:(e,t,r)=>{r.r(t),r.d(t,{default:()=>V});var n=r(31635),i=r(7762),s=r(38961),o=r(25728),l=r(74887),a=r(36708),u=r(84952),c=r(91429),p=r(5443),d=r(16930),f=r(4146),h=r(63074),y=r(16131),m=r(8303),g=r(54310),b=r(25036),v=r(10873),w=r(65529),M=r(25482),_=r(92474),S=r(799),I=r(56507),T=r(89808),A=r(99959);const x=Symbol("isKMLGraphicOrigin");var F;class C extends A.A{get[(F=x,T.Q)](){return this.layer}constructor(e,t){super(),this[F]=!0,this.type="kml",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var R=r(92602),P=r(70333),O=(r(37838),r(11254)),E=r(4718),Z=r(70328),j=r(537);r(65494),r(22671);const L={esriGeometryPoint:"points",esriGeometryPolyline:"polylines",esriGeometryPolygon:"polygons"};function G(e){const t=e.folders||[],r=t.slice(),n=new Map,i=new Map,s=new Map,o=new Map,l=new Map,a={esriGeometryPoint:i,esriGeometryPolyline:s,esriGeometryPolygon:o};(e.featureCollection?.layers||[]).forEach(e=>{const t=(0,E.o8)(e);t.featureSet.features=[];const r=e.featureSet.geometryType;n.set(r,t);const l=e.layerDefinition.objectIdField;"esriGeometryPoint"===r?q(i,l,e.featureSet.features):"esriGeometryPolyline"===r?q(s,l,e.featureSet.features):"esriGeometryPolygon"===r&&q(o,l,e.featureSet.features)}),e.groundOverlays&&e.groundOverlays.forEach(e=>{l.set(e.id,e)}),t.forEach(t=>{t.networkLinkIds.forEach(n=>{const i=function(e,t,r){const n=function(e,t){let r;return t.some(t=>t.id===e&&(r=t,!0)),r}(e,r);return n&&(n.parentFolderId=t,n.networkLink=n),n}(n,t.id,e.networkLinks);i&&r.push(i)})}),r.forEach(e=>{if(e.featureInfos){e.points=(0,E.o8)(n.get("esriGeometryPoint")),e.polylines=(0,E.o8)(n.get("esriGeometryPolyline")),e.polygons=(0,E.o8)(n.get("esriGeometryPolygon")),e.mapImages=[];for(const t of e.featureInfos)switch(t.type){case"esriGeometryPoint":case"esriGeometryPolyline":case"esriGeometryPolygon":{const r=a[t.type].get(t.id);r&&e[L[t.type]]?.featureSet.features.push(r);break}case"GroundOverlay":{const r=l.get(t.id);r&&e.mapImages.push(r);break}}e.fullExtent=D([e])}});const u=D(r);return{folders:t,sublayers:r,extent:u}}function N(e,t,r,n){const i=P.id?.findCredential(e);e=(0,u.a6)(e,{token:i?.token});const s=R.A.kmlServiceUrl;return(0,O.A)(s,{query:{url:e,model:"simple",folders:"",refresh:0!==r||void 0,outSR:JSON.stringify(t)},responseType:"json",signal:n})}function k(e,t,r=null,n=[]){const i=[],s={},o=t.sublayers,l=new Set(t.folders.map(e=>e.id));return o.forEach(t=>{const o=new e;if(r?o.read(t,r):o.read(t),n.length&&l.has(o.id)&&(o.visible=n.includes(o.id)),s[t.id]=o,null!=t.parentFolderId&&-1!==t.parentFolderId){const e=s[t.parentFolderId];e.sublayers||(e.sublayers=[]),e.sublayers?.unshift(o)}else i.unshift(o)}),i}function q(e,t,r){r.forEach(r=>{e.set(r.attributes[t],r)})}function D(e){const t=(0,Z.vt)(Z.qv),r=(0,Z.vt)(Z.qv);for(const n of e){if(n.polygons?.featureSet?.features)for(const e of n.polygons.featureSet.features)(0,j.LJ)(t,e.geometry),(0,Z.RF)(r,t);if(n.polylines?.featureSet?.features)for(const e of n.polylines.featureSet.features)(0,j.LJ)(t,e.geometry),(0,Z.RF)(r,t);if(n.points?.featureSet?.features)for(const e of n.points.featureSet.features)(0,j.LJ)(t,e.geometry),(0,Z.RF)(r,t);if(n.mapImages)for(const e of n.mapImages)(0,j.LJ)(t,e.extent),(0,Z.RF)(r,t)}return(0,Z.aI)(r,Z.qv)?void 0:{xmin:r[0],ymin:r[1],zmin:r[2],xmax:r[3],ymax:r[4],zmax:r[5],spatialReference:d.A.WGS84}}var $,z=r(36005);let J=$=class extends((0,w.Zt)((0,M.T)(_.x_))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.id=null,this.networkLink=null,this.parent=null,this.sublayers=null,this.title=null,this.sourceJSON=null,this.layer=null,this.addHandles([(0,a.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},a.OH),(0,a.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},a.OH),(0,a.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer},a.OH),(0,a.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},a.OH)])}initialize(){(0,a.C_)(()=>this.networkLink).then(()=>(0,a.C_)(()=>!0===this.visible)).then(()=>this.load())}load(e){if(!this.networkLink)return;if(this.networkLink.viewFormat)return;const t=null!=e?e.signal:null,r=this._fetchService(this._get("networkLink")?.href??"",t).then(e=>{const t=D(e.sublayers);this.fullExtent=p.A.fromJSON(t),this.sourceJSON=e;const r=(0,I.dp)(i.A.ofType($),k($,e));this.sublayers?this.sublayers.addMany(r):this.sublayers=r,this.layer?.emit("sublayer-update"),this.layer&&this.layer.notifyChange("visibleSublayers")});return this.addResolvingPromise(r),Promise.resolve(this)}get visible(){return this._get("visible")}set visible(e){this._get("visible")!==e&&(this._set("visible",e),this.layer&&this.layer.notifyChange("visibleSublayers"))}readVisible(e,t){return!!t.visibility}get origin(){return this.layer?new C(this.layer,this):null}_fetchService(e,t){return N(e,this.layer.outSpatialReference,this.layer.refreshInterval,t).then(e=>G(e.data))}};(0,n.Cg)([(0,c.MZ)()],J.prototype,"description",void 0),(0,n.Cg)([(0,c.MZ)({type:p.A})],J.prototype,"fullExtent",void 0),(0,n.Cg)([(0,c.MZ)()],J.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,value:null})],J.prototype,"networkLink",void 0),(0,n.Cg)([(0,c.MZ)({json:{write:{allowNull:!0}}})],J.prototype,"parent",void 0),(0,n.Cg)([(0,c.MZ)({type:i.A.ofType(J),json:{write:{allowNull:!0}}})],J.prototype,"sublayers",void 0),(0,n.Cg)([(0,c.MZ)({value:null,json:{read:{source:"name",reader:e=>(0,S._e)(e)}}})],J.prototype,"title",void 0),(0,n.Cg)([(0,c.MZ)({value:!0})],J.prototype,"visible",null),(0,n.Cg)([(0,z.w)("visible",["visibility"])],J.prototype,"readVisible",null),(0,n.Cg)([(0,c.MZ)()],J.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,c.MZ)()],J.prototype,"layer",void 0),(0,n.Cg)([(0,c.MZ)()],J.prototype,"origin",null),J=$=(0,n.Cg)([(0,c.$K)("esri.layers.support.KMLSublayer")],J);var U=r(43937);const H=["kml","xml"];let B=class extends((0,h.dM)((0,g.J)((0,b.j)((0,y.q)((0,m.A)((0,o.P)(f.A))))))){constructor(...e){super(...e),this._visibleFolders=[],this.allSublayers=new s.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.outSpatialReference=d.A.WGS84,this.path=null,this.legendEnabled=!1,this.operationalLayerType="KML",this.sublayers=null,this.type="kml",this.url=null}initialize(){this.addHandles([(0,a.wB)(()=>this.sublayers,(e,t)=>{t&&t.forEach(e=>{e.parent=null,e.layer=null}),e&&e.forEach(e=>{e.parent=this,e.layer=this})},a.OH),this.on("sublayer-update",()=>this.notifyChange("fullExtent"))])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get sublayerById(){const e=new Map;for(const t of this.allSublayers)e.set(t.id,t);return e}readSublayersFromItemOrWebMap(e,t){this._visibleFolders=t.visibleFolders}readSublayers(e,t,r){return k(J,t,r,this._visibleFolders)}writeSublayers(e,t){const r=[],n=e.toArray();for(;n.length;){const e=n[0];e.networkLink||(e.visible&&r.push(e.id),e.sublayers&&n.push(...e.sublayers.toArray())),n.shift()}t.visibleFolders=r}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,u.e7)(this.url,H)||"KML":e}set title(e){this._set("title",e)}get visibleSublayers(){const e=this.sublayers,t=[],r=e=>{e.visible&&(t.push(e),e.sublayers&&e.sublayers.forEach(r))};return e?.forEach(r),t}get fullExtent(){return this._recomputeFullExtent()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["KML"],supportsData:!1},e).catch(l.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){super.destroy(),this.allSublayers.destroy()}async _fetchService(e){const t=G((await Promise.resolve().then(()=>this.resourceInfo?{ssl:!1,data:this.resourceInfo}:N(this.url??"",this.outSpatialReference,this.refreshInterval,e))).data);t&&this.read(t,{origin:"service"})}_recomputeFullExtent(){let e=null;null!=this.extent&&(e=this.extent.clone());const t=r=>{if(r.sublayers)for(const n of r.sublayers.items)t(n),n.visible&&n.fullExtent&&(null!=e?e.union(n.fullExtent):e=n.fullExtent.clone())};return t(this),e}};(0,n.Cg)([(0,c.MZ)({readOnly:!0})],B.prototype,"allSublayers",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],B.prototype,"sublayerById",null),(0,n.Cg)([(0,c.MZ)({type:d.A})],B.prototype,"outSpatialReference",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],B.prototype,"path",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1}})],B.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:["show","hide","hide-children"]})],B.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({type:["KML"]})],B.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,c.MZ)({})],B.prototype,"resourceInfo",void 0),(0,n.Cg)([(0,c.MZ)({type:i.A.ofType(J),json:{write:{ignoreOrigin:!0}}})],B.prototype,"sublayers",void 0),(0,n.Cg)([(0,z.w)(["web-map","portal-item"],"sublayers",["visibleFolders"])],B.prototype,"readSublayersFromItemOrWebMap",null),(0,n.Cg)([(0,z.w)("service","sublayers",["sublayers"])],B.prototype,"readSublayers",null),(0,n.Cg)([(0,U.K)("sublayers")],B.prototype,"writeSublayers",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],B.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)({json:{origins:{"web-map":{read:{source:"title"}}},write:{ignoreOrigin:!0}}})],B.prototype,"title",null),(0,n.Cg)([(0,c.MZ)(v.OZ)],B.prototype,"url",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],B.prototype,"visibleSublayers",null),(0,n.Cg)([(0,c.MZ)({type:p.A})],B.prototype,"extent",void 0),(0,n.Cg)([(0,c.MZ)()],B.prototype,"fullExtent",null),B=(0,n.Cg)([(0,c.$K)("esri.layers.KMLLayer")],B);const V=B},4197:(e,t,r)=>{r.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var n=r(34275),i=r(9093);function s(e){return e<=n.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=n.y9?Array.from(e):new Float64Array(e)}function l(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e){return[...e]}function u(e){const t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},6797:(e,t,r)=>{r.d(t,{Ui:()=>d});var n=r(69622),i=r(7762),s=r(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof n.A}function a(e){return e instanceof i.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof i.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const n=a(e),i=a(t);if(0===n.length&&0===i.length)return;if(!n.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=i.filter(e=>!n.includes(e)),d=n.filter(e=>!i.includes(e)),f=n.filter(r=>i.includes(r)&&u(e,r)!==u(t,r)).concat(s,d).sort(),h=c(e);if(h&&o.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let y;const m=l(e)&&l(t);for(const n of f){const i=u(e,n),s=u(t,n);let o;if((m||"function"!=typeof i&&"function"!=typeof s)&&i!==s&&(null!=i||null!=s)){if(r&&r[n]&&"function"==typeof r[n])o=r[n]?.(i,s);else if(i instanceof Date&&s instanceof Date){if(i.getTime()===s.getTime())continue;o={type:"complete",oldValue:i,newValue:s}}else o="object"==typeof i&&"object"==typeof s&&c(i)===c(s)?p(i,s):{type:"complete",oldValue:i,newValue:s};null!=o&&(null!=y?y.diff[n]=o:y={type:"partial",diff:{[n]:o}})}}return y}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},8303:(e,t,r)=>{r.d(t,{A:()=>M});var n=r(31635),i=r(92602),s=r(70333),o=r(11254),l=r(60999),a=r(49186),u=r(53966),c=r(97768),p=r(74887),d=r(84952),f=r(91429),h=r(77548),y=r(20655),m=r(80812),g=r(41318),b=r(10407),v=r(36005),w=r(43937);const M=e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let o,l;if(i)o=r.portal.url;else try{o=await(0,h.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new m.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=y.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(n))return i.user;const a=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?g.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||y.A.getDefault());return r&&n&&!(0,d.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,f.MZ)({type:m.default})],M.prototype,"portalItem",null),(0,n.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,n.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,n.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],M),M},_={credential:null,user:null}},9093:(e,t,r)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>i,vt:()=>n,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:n,fromValues:function(e,t,r,n,i,s,o,l,a,u,c,p,d,f,h,y){return[e,t,r,n,i,s,o,l,a,u,c,p,d,f,h,y]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,r)=>{r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(37539);function i(e,t,r,i,s,o,l=Math.floor(e.length/3)){const a=(0,n.jd)(t,s);if(null==a)return!1;if(a===n.pO){if(e===i&&r===o)return!0;const t=r+3*l;for(let n=r,s=o;n<t;n++,s++)i[s]=e[n]??0;return!0}const u=r+3*l;for(let t=r,n=o;t<u;t+=3,n+=3)a(e,t,i,n);return!0}},10407:(e,t,r)=>{r.d(t,{It:()=>f,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,mm:()=>d,sQ:()=>p});var n=r(91218),i=r(16930),s=r(28735);function o(e,t){if(!l(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function f(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit");const l="update"===n||"admin"===n;return l?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:l}}}},22671:(e,t,r)=>{r.d(t,{A:()=>b});var n,i=r(31635),s=r(52106),o=r(66552),l=r(25482),a=r(4718),u=r(91429),c=r(16930),p=r(60408),d=r(65864),f=r(50498),h=r(20437),y=r(36005),m=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=n=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,d.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=c.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e?.[r];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,i],scale:[s,o]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*s+n,e=>i-e*o,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const n=c.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],o=r.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=n);const a=s.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],r=a[e],i=r?.spatialReference;null==t||i||(t.spatialReference=n)}i.push(o)}return i}_quantizePoints(e,t,r){let n,i;const s=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=r(l[1]);e===n&&o===i||(s.push([e-n,o-i]),n=e,i=o)}else n=t(l[0]),i=r(l[1]),s.push([n,i])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,p.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,s=n.length;e<s;e++){const s=n[e],o=this._quantizePoints(s,t,r);o&&i.push(o)}return i.length>0?((0,p.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,p.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,n=s.length;e<n;e++){const n=s[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(o+=i[0],l+=i[1]):(o=i[0],l=i[1]),i[0]=t(o),i[1]=r(l)}}if(n&&i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,l;for(let e=0,n=s.length;e<n;e++){const n=s[e];e>0?(o+=n[0],l+=n[1]):(o=n[0],l=n[1]),n[0]=t(o),n[1]=r(l)}if(n&&i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],b.prototype,"features",void 0),(0,i.Cg)([(0,y.w)("features")],b.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[h.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],b.prototype,"geometryType",void 0),(0,i.Cg)([(0,m.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:f.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,y.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,m.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=n=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},37539:(e,t,r)=>{r.d(t,{pO:()=>y,jd:()=>d,Tp:()=>f,w5:()=>p});var n=r(34727),i=r(86211),s=r(73941),o=r(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=r(21325);const p={2:{5:y,7:null,9:null,10:y,1:S,6:null,8:null,0:null,3:g,11:b,2:y,4:F},5:{5:y,7:null,9:null,10:y,1:S,6:null,8:null,0:null,3:g,11:b,2:y,4:F},7:{5:null,7:y,9:null,10:y,1:null,6:_,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,t,r,n){const i=e[t]/Z,s=E-2*Math.atan(Math.exp(-e[t+1]/Z)),o=Z+(e[t+2]??0),l=Math.cos(s)*o;r[n]=Math.cos(i)*l,r[n+1]=Math.sin(i)*l,r[n+2]=Math.sin(s)*o},6:null,8:null,0:null,3:y,11:function(e,t,r,n){m(e,t,r,n),b(r,n,r,n)},2:m,4:function(e,t,r,n){m(e,t,r,n),F(r,n,r,n)}},4:{5:C,7:null,9:null,10:C,1:function(e,t,r,n){C(e,t,r,n),S(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){C(e,t,r,n),g(r,n,r,n)},11:function(e,t,r,n){C(e,t,r,n),b(r,n,r,n)},2:C,4:y},1:{5:x,7:null,9:null,10:x,1:y,6:null,8:null,0:null,3:function(e,t,r,n){x(e,t,r,n),g(r,n,r,n)},11:function(e,t,r,n){x(e,t,r,n),b(r,n,r,n)},2:x,4:function(e,t,r,n){x(e,t,r,n),F(r,n,r,n)}},6:{5:null,7:A,9:null,10:A,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:y,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:S,6:_,8:M,0:null,3:g,11:b,2:y,4:F},11:{5:v,7:null,9:null,10:v,1:function(e,t,r,n){v(e,t,r,n),S(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){v(e,t,r,n),g(r,n,r,n)},11:y,2:v,4:function(e,t,r,n){v(e,t,r,n),F(r,n,r,n)}}};function d(e,t){return f(e,t)?.projector}function f(e,t){if(null==e||null==t)return null;if(R.source.spatialReference===e&&R.dest.spatialReference===t)return R;const r=h(e,R.source),n=h(t,R.dest);return 0===r&&0===n?(0,c.aI)(e,t)?R.projector=y:R.projector=null:R.projector=p[r][n],R}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function y(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function m(e,t,r,n){r[n]=O*(e[t]/Z),r[n+1]=O*(E-2*Math.atan(Math.exp(-e[t+1]/Z))),r[n+2]=e[t+2]??0}function g(e,t,r,i){!function(e,t,r,i,s){const o=.4999999*Math.PI,l=(0,n.qE)(P*e[t+1],-o,o),a=Math.sin(l);r[i++]=P*e[t]*s.radius,r[i++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),r[i]=e[t+2]??0}(e,t,r,i,o.$O)}function b(e,t,r,n){r[n]=e[t]*j,r[n+1]=e[t+1]*j,r[n+2]=e[t+2]??0}function v(e,t,r,n){r[n]=e[t]*L,r[n+1]=e[t+1]*L,r[n+2]=e[t+2]??0}function w(e,t,r,n,i){const s=i+(e[t+2]??0),o=P*e[t],l=P*e[t+1],a=Math.cos(l)*s;r[n]=Math.cos(o)*a,r[n+1]=Math.sin(o)*a,r[n+2]=Math.sin(l)*s}function M(e,t,r,n){w(e,t,r,n,o.Sw.radius)}function _(e,t,r,n){w(e,t,r,n,o.sH.radius)}function S(e,t,r,n){w(e,t,r,n,o.$O.radius)}function I(e,t,r,i,s){const o=e[t],l=e[t+1],a=e[t+2]??0,u=Math.sqrt(o*o+l*l+a*a),c=(0,n.YN)(a/(0===u?1:u)),p=Math.atan2(l,o);r[i++]=O*p,r[i++]=O*c,r[i]=u-s}function T(e,t,r,n){I(e,t,r,n,o.Sw.radius)}function A(e,t,r,n){I(e,t,r,n,o.sH.radius)}function x(e,t,r,n){I(e,t,r,n,o.$O.radius)}function F(e,t,r,n){!function(e,t,r,n,i){const s=P*e[t],o=P*e[t+1],l=e[t+2]??0,a=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);r[n++]=(c+l)*u*Math.cos(s),r[n++]=(c+l)*u*Math.sin(s),r[n++]=(c*(1-i.eccentricitySquared)+l)*a}(e,t,r,n,o.$O)}function C(e,t,r,n){const i=u,s=e[t],l=e[t+1],a=e[t+2]??0;let c,p,d,f,h,y,m,g,b,v,w,M,_,S,I,T,A,x,F,C,R;c=Math.abs(a),p=s*s+l*l,d=Math.sqrt(p),f=p+a*a,h=Math.sqrt(f),C=Math.atan2(l,s),y=a*a/f,m=p/f,S=i.a2/h,I=i.a3-i.a4/h,m>.3?(g=c/h*(1+m*(i.a1+S+y*I)/h),F=Math.asin(g),v=g*g,b=Math.sqrt(1-v)):(b=d/h*(1-y*(i.a5-S-m*I)/h),F=Math.acos(b),v=1-b*b,g=Math.sqrt(v)),w=1-o.$O.eccentricitySquared*v,M=o.$O.radius/Math.sqrt(w),_=i.a6*M,S=d-M*b,I=c-_*g,A=b*S+g*I,T=b*I-g*S,x=T/(_/w+A),F+=x,R=A+T*x/2,a<0&&(F=-F),r[n++]=O*C,r[n++]=O*F,r[n]=R}const R={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},P=(0,n.kU)(1),O=(0,n.KJ)(1),E=.5*Math.PI,Z=o.$O.radius,j=Z*Math.PI/180,L=180/(Z*Math.PI)},38961:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(31635),i=r(7762),s=r(36708),o=r(10107),l=r(64108),a=r(80559);let u=class extends i.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),s.OH))}destroy(){this.getCollections=null}_refresh(){const e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new i.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const n of t)if(n){if(r(n)){const t=this.indexOf(n,e);t>=0?t!==e&&this.reorder(n,e):this.add(n,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(n);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,n.Cg)([(0,o.MZ)()],u.prototype,"getCollections",void 0),(0,n.Cg)([(0,o.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,n.Cg)([(0,o.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,n.Cg)([(0,l.$)("esri.core.CollectionFlattener")],u);const c=u},46140:(e,t,r)=>{r.d(t,{R:()=>i});var n=r(49186);let i=class e{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,r=""){const[i,s]=t.split("."),o=/^\s*\d+\s*$/;if(!i?.match||!o.test(i))throw new n.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!s?.match||!o.test(s))throw new n.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const l=parseInt(i,10),a=parseInt(s,10);return new e(l,a,r)}}},50498:(e,t,r)=>{r.d(t,{Ye:()=>p,gy:()=>c,yR:()=>d});var n=r(66552),i=r(5443),s=r(91075),o=r(48526),l=r(86738),a=r(39829),u=r(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:i.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,r)=>{r.d(t,{A:()=>M});var n,i=r(31635),s=r(37838),o=r(69540),l=r(51447),a=r(25482),u=r(53966),c=r(36708),p=r(24326),d=r(91429),f=r(12195),h=r(65864),y=r(50498),m=r(55156),g=r(60950),b=r(54339),v=r(33910);function w(e){if(null==e)return null;const t={};for(const r in e){const n=e[r];n&&(t[r]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let M=class extends((0,o.OU)(a.o)){static{n=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,g.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,m.I)(this.origin);if(e)return(0,b.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){const e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:w(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,f.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=n),"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,i.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const n=(0,h.rS)(e[r]);n&&(t[r]=n)}return 0!==Object.keys(t).length?t:null}}})],M.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,d.MZ)({value:null})],M.prototype,"attributes",null),(0,i.Cg)([(0,d.MZ)({value:null,types:y.yR,json:{read:h.rS}})],M.prototype,"geometry",null),(0,i.Cg)([(0,d.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,i.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,i.Cg)([(0,d.MZ)({type:s.A,value:null})],M.prototype,"popupTemplate",null),(0,i.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,d.MZ)({value:null,types:v.Es})],M.prototype,"symbol",null),(0,i.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=n=(0,i.Cg)([(0,d.$K)("esri.Graphic")],M)},54339:(e,t,r)=>{function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const r=[];for(const n of t.fieldNames)r.push(e.attributes[n]??null);return JSON.stringify(r)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>n,r:()=>i})},55156:(e,t,r)=>{r.d(t,{I:()=>i,e:()=>n});const n=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&n in t?e[n]:void 0;var t}},55674:(e,t,r)=>{r.d(t,{Ad:()=>f,Gj:()=>m,QY:()=>d,lL:()=>g,xR:()=>h});var n=r(66131),i=r(49186),s=(r(44208),r(44729)),o=r(15032),l=r(65864),a=r(95466),u=r(43668),c=r(98623);const p=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of p)t.hasArcadeDependency(r)&&e.add(r);return e}function f(e,t){return y.create(e,t,null,["$feature","$view"])}function h(e,t,r){return y.create(e,t,r,["$feature","$view","$config"])}class y{static async create(e,t,r,n){const{arcade:s,Dictionary:o}=await(0,u.l)();let l;try{l=s.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const a=s.scriptUsesGeometryEngine(l);a&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,l,null,!1,a);const c={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=s.compileScript(l,c);let d=null;null!=r&&(d=new o(r),d.immutable=!0);const f=new o;return f.immutable=!1,f.setField("scale",0),new y(e,s,l,p,t,f,d,o)}constructor(e,t,r,n,i,s,o,l){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=s,this._configDict=o,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=r?n.lY.epochToArcadeDate(i,r):n.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=s?null!=r?n.lY.epochToArcadeDate(s,r):n.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const n=t??new a.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},65494:(e,t,r)=>{r.d(t,{L:()=>a,r:()=>o});var n=r(67076),i=r(90360),s=r(41214);function o(e,t){return a(e,null,t)}const l=(0,i.C)({types:s.Hg});function a(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?(r?.messages&&r.messages.push(new n.A("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+e.type+"'",{definition:e,context:r})),null):l(e,t,r):null}},70328:(e,t,r)=>{r.d(t,{BI:()=>v,DC:()=>p,Ej:()=>f,Ie:()=>g,Jt:()=>b,Ne:()=>h,RF:()=>c,aI:()=>M,fA:()=>o,gE:()=>a,hZ:()=>m,iT:()=>d,is:()=>w,qv:()=>_,vI:()=>y,vY:()=>l,v_:()=>S,vt:()=>s,w1:()=>u});var n=r(5443),i=(r(19419),r(4197));function s(e=S){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,i,o,l=s()){return l[0]=e,l[1]=t,l[2]=r,l[3]=n,l[4]=i,l[5]=o,l}function l(e,t=s()){return function(e,t,r,n=s()){return m(n,_),function(e,t,r=0,n=t.length/3){let i=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),l=Math.max(l,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function a(e,t=(0,i.jh)(24)){const[r,n,s,o,l,a]=e;return t[0]=r,t[1]=n,t[2]=s,t[3]=r,t[4]=n,t[5]=a,t[6]=r,t[7]=l,t[8]=s,t[9]=r,t[10]=l,t[11]=a,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?m(e,_):s(_)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function v(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function M(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const _=[1/0,1/0,1/0,-1/0,-1/0,-1/0],S=[0,0,0,0,0,0];s()},73681:(e,t,r)=>{r.d(t,{n:()=>a});var n=r(49186),i=r(53966),s=r(46140),o=r(95466),l=r(55674);class a{static async from(e,t,r){const o=e.dictionary_version?s.R.parse(e.dictionary_version):null,c=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const f=await(0,l.xR)(e.expression,null,p);if(!f)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const y=new u(r,h);return new a(h,c,f,y)}constructor(e,t,r,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,r,n){try{return this._reader.bind(e,r,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},89808:(e,t,r)=>{r.d(t,{Q:()=>n});const n=Symbol("getSliceableSymbol")},91218:(e,t,r)=>{r.r(t),r.d(t,{canProjectWithoutEngine:()=>z,initializeProjection:()=>U,isEqualBaseGCS:()=>J,isLoaded:()=>C,isLoadedOrLoad:()=>R,isLoadedOrLoadFor:()=>P,load:()=>E,project:()=>Z,projectAsync:()=>$,projectExtent:()=>te,projectMany:()=>j,projectMultipoint:()=>K,projectOrLoad:()=>G,projectOrLoadMany:()=>N,projectPoint:()=>B,projectPolygon:()=>X,projectPolyline:()=>W,projectWithoutEngine:()=>H,requiresLoad:()=>O,test:()=>D,tryProject:()=>L,unload:()=>q});var n=r(49186),i=r(74887),s=r(62788),o=r(95488),l=r(51850),a=r(21276),u=r(73941),c=r(5443),p=r(91075),d=r(48526),f=r(86738),h=r(39829),y=r(82799),m=r(16930),g=r(159),b=r(9762),v=r(37539);function w(e,t,r,n,i,s){return M[0]=e,M[1]=t,M[2]=r,(0,b.projectBuffer)(M,n,0,i,s,0)}const M=(0,l.vt)();var _=r(21325);let S=null,I=null,T=null,A=null,x={};const F=new o.I;function C(){return!!(I?.isLoaded()&&T?.isLoaded()&&A?.isLoaded())}function R(){return!!C()||((0,s.gc)(F),E(),!1)}function P(e,t){return!e||!t||z(e,t)||R()}function O(e,t){return!z(e,t)&&!C()}async function E(e){null==S&&(S=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(I=e,I.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(T=e,T.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(A=e,A.load()))])),await S,(0,i.Te)(e),F.notify()}function Z(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),j(e,e[0].spatialReference,t,r)):((0,a.f)(e),j([e],e.spatialReference,t,r)[0])}function j(e,t,r,n){if(null==t||null==r)return e;if(z(t,r,n))return e.map(e=>H(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return j(e.map(e=>H(e,t,m.A.WGS84)),m.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return j(e,t,m.A.WGS84).map(e=>H(e,m.A.WGS84,r));if(!C())throw new k;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:A.getTransformation(t,r,n.areaOfInterestExtent)||new g.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let i=x[e];i||(i=A.getTransformation(t,r)||new g.A,x[e]=i),n={geographicTransformation:i,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?I.executeMany(e,r,n):T.executeMany(e,r,n)}function L(e,t,r){try{return Z(e,t,r)}catch(e){if(e instanceof k)return null;throw e}}function G(e,t){const r=N([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function N(e,t,r){if(!C())for(const r of e)if(null!=r&&!(0,_.aI)(r.spatialReference,t)&&(0,_.fn)(r.spatialReference)&&(0,_.fn)(t)&&!z(r.spatialReference,t))return(0,s.gc)(F),{pending:E(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,_.aI)(e.spatialReference,t)?e:(0,_.fn)(e.spatialReference)&&(0,_.fn)(t)?Z(e,t,r):null)}}class k extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function q(){S=null,I=null,T=null,A=null,x={}}const D={get loadPromise(){return S}};async function $(e,t,r){if((0,i.Te)(r),!e)return e;const n=N(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,i.Te)(r),$(e,t,r);const s=n.geometries??[];return Array.isArray(e)?s:s[0]}function z(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,_.aI)(e,t)||(0,_.fn)(e)&&(0,_.fn)(t)&&!!(0,v.jd)(e,t))}function J(e,t){if((0,_.aI)(e,t))return!0;if(!(0,_.fn)(e)||!(0,_.fn)(t))return!1;const r=(0,_.oT)(e)||(0,_.K8)(e)||(0,_.x1)(e),n=(0,_.oT)(t)||(0,_.K8)(t)||(0,_.x1)(t);return r&&n}async function U(e,t,r,n){if(C())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!z(t,r,i))return E(n)}else if(e&&t&&!z(e,t,r))return E(n);return(0,i.NO)(n)}function H(e,t,r){return e?"x"in e?V(e,t,new f.A,r,0):"xmin"in e?re(e,t,new c.A,r,0):"rings"in e?ee(e,t,new h.A,r,0):"paths"in e?Q(e,t,new y.A,r,0):"points"in e?Y(e,t,new d.A,r,0):null:null}function B(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=V(e,e.spatialReference,t,r,n)}function V(e,t,r,n,i){ie[0]=e.x,ie[1]=e.y;const s=e.z;return ie[2]=void 0!==s?s:i,(0,b.projectBuffer)(ie,t,0,ie,n,0)?(r.x=ie[0],r.y=ie[1],r.spatialReference=n,void 0!==s||(0,u.xP)(n)?(r.z=ie[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function K(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=Y(e,e.spatialReference,t,r,n)}function Y(e,t,r,n,i){const{points:s,hasZ:o,hasM:l}=e,a=[],c=s.length,p=[];for(const e of s)p.push(e[0],e[1],o?e[2]:i);if(!(0,b.projectBuffer)(p,t,0,p,n,0,c))return null;const d=o||(0,u.xP)(n);for(let e=0;e<c;++e){const t=3*e,r=p[t],n=p[t+1];d&&l?a.push([r,n,p[t+2],s[e][3]]):d?a.push([r,n,p[t+2]]):l?a.push([r,n,s[e][2]]):a.push([r,n])}return r.points=a,r.spatialReference=n,r.hasZ=o,r.hasM=l,r}function W(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=Q(e,e.spatialReference,t,r,n)}function Q(e,t,r,n,i){const{paths:s,hasZ:o,hasM:l}=e,a=[];if(!ne(s,o??!1,l??!1,t,a,n,i))return null;const c=o||(0,u.xP)(n);return r.paths=a,r.spatialReference=n,r.hasZ=c,r.hasM=l,r}function X(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ee(e,e.spatialReference,t,r,n)}function ee(e,t,r,n,i){const{rings:s,hasZ:o,hasM:l}=e,a=[];if(!ne(s,o??!1,l??!1,t,a,n,i))return null;const c=o||(0,u.xP)(n);return r.rings=a,r.spatialReference=n,r.hasZ=c,r.hasM=l,r}function te(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=re(e,e.spatialReference,t,r,n)}function re(e,t,r,n,i){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:p}=e;if(!w(s,o,c?e.zmin:i,t,ie,n))return null;const d=c||(0,u.xP)(n);return r.xmin=ie[0],r.ymin=ie[1],d&&(r.zmin=ie[2]),w(l,a,c?e.zmax:i,t,ie,n)?(r.xmax=ie[0],r.ymax=ie[1],d&&(r.zmax=ie[2]),p&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function ne(e,t,r,n,i,s,o=0){const l=new Array;for(const r of e)for(const e of r)l.push(e[0],e[1],t?e[2]:o);if(!(0,b.projectBuffer)(l,n,0,l,s,0))return!1;let a=0;i.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const n of t)c&&r?e.push([l[a++],l[a++],l[a++],n[3]]):c?e.push([l[a++],l[a++],l[a++]]):r?(e.push([l[a++],l[a++],n[2]]),a++):(e.push([l[a++],l[a++]]),a++);i.push(e)}return!0}const ie=(0,l.vt)()},95466:(e,t,r)=>{r.d(t,{A:()=>f});var n=r(49186),i=r(53966),s=r(91869),o=r(3330),l=r(12195),a=r(30524),u=r(98623),c=r(56400),p=r(28097);const d=new Map;class f{static fromJSON(e){return new f(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new f(e.fields??[],g(e))}static fromLayerJSON(e){return new f(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,n=y(t);if(t&&n){const i=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(n,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):m.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function y(e){return(0,a.rS)(e)?.toLowerCase()??""}const m=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:i}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",o=(n?"endField"in n?n.endField:n.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.dateFieldsTimeReference?(0,c.ZS)(i.dateFieldsTimeReference):l??u.n$:null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.timeReference?(0,c.ZS)(n.timeReference):l:null,d=new Map([[h(i?.creationDateField??""),a],[h(i?.editDateField??""),a],[h(s),p],[h(o),p]]);for(const{name:n,type:i}of e.fields)if(m.has(i))t.set(n,u.L5);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(n,null);else if(r)t.set(n,u.L5);else{const e=d.get(h(n??""))??l;t.set(n,e)}return t}},96576:(e,t,r)=>{r.d(t,{A:()=>p});var n,i=r(31635),s=r(4718),o=r(91429),l=r(92438),a=r(63988),u=r(49849),c=r(93223);let p=n=class extends((0,a.h)(l.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){return this.symbols.reduce((e,t)=>e+JSON.stringify(t),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new n({description:this.description,label:this.label,symbol:(0,s.o8)(this.symbol),visualVariables:(0,s.o8)(this.visualVariables),authoringInfo:(0,s.o8)(this.authoringInfo)})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,i.Cg)([(0,o.MZ)(u.Wp)],p.prototype,"symbol",void 0),(0,i.Cg)([(0,c.e)({simple:"simple"})],p.prototype,"type",void 0),p=n=(0,i.Cg)([(0,o.$K)("esri.renderers.SimpleRenderer")],p)},99157:(e,t,r)=>{r.d(t,{A:()=>l});var n,i=r(31635),s=r(69622),o=r(91429);let l=n=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,o.MZ)()],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,o.MZ)()],l.prototype,"wkt",void 0),(0,i.Cg)([(0,o.MZ)()],l.prototype,"wkid",void 0),l=n=(0,i.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},99959:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(31635),i=r(91429);let s=class{};s=(0,n.Cg)([(0,i.$K)("esri.graphic.GraphicOrigin")],s)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1863],{159:(e,t,r)=>{r.d(t,{A:()=>a});var n,i=r(31635),s=r(69622),o=r(91429),l=r(99157);let a=n=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,o.MZ)({type:[l.A],nonNullable:!0})],a.prototype,"steps",void 0),a=n=(0,i.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformation")],a)},162:(e,t,r)=>{r.r(t),r.d(t,{default:()=>V});var n=r(31635),i=r(7762),s=r(38961),o=r(25728),l=r(74887),a=r(36708),u=r(84952),c=r(91429),p=r(5443),d=r(16930),f=r(4146),h=r(63074),y=r(16131),m=r(8303),g=r(54310),b=r(25036),v=r(10873),w=r(65529),_=r(25482),M=r(92474),S=r(799),I=r(56507),T=r(89808),x=r(99959);const A=Symbol("isKMLGraphicOrigin");var F;class C extends x.A{get[(F=A,T.Q)](){return this.layer}constructor(e,t){super(),this[F]=!0,this.type="kml",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var R=r(92602),P=r(70333),O=(r(37838),r(11254)),E=r(4718),Z=r(70328),j=r(537);r(65494),r(22671);const L={esriGeometryPoint:"points",esriGeometryPolyline:"polylines",esriGeometryPolygon:"polygons"};function G(e){const t=e.folders||[],r=t.slice(),n=new Map,i=new Map,s=new Map,o=new Map,l=new Map,a={esriGeometryPoint:i,esriGeometryPolyline:s,esriGeometryPolygon:o};(e.featureCollection?.layers||[]).forEach(e=>{const t=(0,E.o8)(e);t.featureSet.features=[];const r=e.featureSet.geometryType;n.set(r,t);const l=e.layerDefinition.objectIdField;"esriGeometryPoint"===r?q(i,l,e.featureSet.features):"esriGeometryPolyline"===r?q(s,l,e.featureSet.features):"esriGeometryPolygon"===r&&q(o,l,e.featureSet.features)}),e.groundOverlays&&e.groundOverlays.forEach(e=>{l.set(e.id,e)}),t.forEach(t=>{t.networkLinkIds.forEach(n=>{const i=function(e,t,r){const n=function(e,t){let r;return t.some(t=>t.id===e&&(r=t,!0)),r}(e,r);return n&&(n.parentFolderId=t,n.networkLink=n),n}(n,t.id,e.networkLinks);i&&r.push(i)})}),r.forEach(e=>{if(e.featureInfos){e.points=(0,E.o8)(n.get("esriGeometryPoint")),e.polylines=(0,E.o8)(n.get("esriGeometryPolyline")),e.polygons=(0,E.o8)(n.get("esriGeometryPolygon")),e.mapImages=[];for(const t of e.featureInfos)switch(t.type){case"esriGeometryPoint":case"esriGeometryPolyline":case"esriGeometryPolygon":{const r=a[t.type].get(t.id);r&&e[L[t.type]]?.featureSet.features.push(r);break}case"GroundOverlay":{const r=l.get(t.id);r&&e.mapImages.push(r);break}}e.fullExtent=D([e])}});const u=D(r);return{folders:t,sublayers:r,extent:u}}function N(e,t,r,n){const i=P.id?.findCredential(e);e=(0,u.a6)(e,{token:i?.token});const s=R.A.kmlServiceUrl;return(0,O.A)(s,{query:{url:e,model:"simple",folders:"",refresh:0!==r||void 0,outSR:JSON.stringify(t)},responseType:"json",signal:n})}function k(e,t,r=null,n=[]){const i=[],s={},o=t.sublayers,l=new Set(t.folders.map(e=>e.id));return o.forEach(t=>{const o=new e;if(r?o.read(t,r):o.read(t),n.length&&l.has(o.id)&&(o.visible=n.includes(o.id)),s[t.id]=o,null!=t.parentFolderId&&-1!==t.parentFolderId){const e=s[t.parentFolderId];e.sublayers||(e.sublayers=[]),e.sublayers?.unshift(o)}else i.unshift(o)}),i}function q(e,t,r){r.forEach(r=>{e.set(r.attributes[t],r)})}function D(e){const t=(0,Z.vt)(Z.qv),r=(0,Z.vt)(Z.qv);for(const n of e){if(n.polygons?.featureSet?.features)for(const e of n.polygons.featureSet.features)(0,j.LJ)(t,e.geometry),(0,Z.RF)(r,t);if(n.polylines?.featureSet?.features)for(const e of n.polylines.featureSet.features)(0,j.LJ)(t,e.geometry),(0,Z.RF)(r,t);if(n.points?.featureSet?.features)for(const e of n.points.featureSet.features)(0,j.LJ)(t,e.geometry),(0,Z.RF)(r,t);if(n.mapImages)for(const e of n.mapImages)(0,j.LJ)(t,e.extent),(0,Z.RF)(r,t)}return(0,Z.aI)(r,Z.qv)?void 0:{xmin:r[0],ymin:r[1],zmin:r[2],xmax:r[3],ymax:r[4],zmax:r[5],spatialReference:d.A.WGS84}}var $,z=r(36005);let J=$=class extends((0,w.Zt)((0,_.T)(M.x_))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.id=null,this.networkLink=null,this.parent=null,this.sublayers=null,this.title=null,this.sourceJSON=null,this.layer=null,this.addHandles([(0,a.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},a.OH),(0,a.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},a.OH),(0,a.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer},a.OH),(0,a.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},a.OH)])}initialize(){(0,a.C_)(()=>this.networkLink).then(()=>(0,a.C_)(()=>!0===this.visible)).then(()=>this.load())}load(e){if(!this.networkLink)return;if(this.networkLink.viewFormat)return;const t=null!=e?e.signal:null,r=this._fetchService(this._get("networkLink")?.href??"",t).then(e=>{const t=D(e.sublayers);this.fullExtent=p.A.fromJSON(t),this.sourceJSON=e;const r=(0,I.dp)(i.A.ofType($),k($,e));this.sublayers?this.sublayers.addMany(r):this.sublayers=r,this.layer?.emit("sublayer-update"),this.layer&&this.layer.notifyChange("visibleSublayers")});return this.addResolvingPromise(r),Promise.resolve(this)}get visible(){return this._get("visible")}set visible(e){this._get("visible")!==e&&(this._set("visible",e),this.layer&&this.layer.notifyChange("visibleSublayers"))}readVisible(e,t){return!!t.visibility}get origin(){return this.layer?new C(this.layer,this):null}_fetchService(e,t){return N(e,this.layer.outSpatialReference,this.layer.refreshInterval,t).then(e=>G(e.data))}};(0,n.Cg)([(0,c.MZ)()],J.prototype,"description",void 0),(0,n.Cg)([(0,c.MZ)({type:p.A})],J.prototype,"fullExtent",void 0),(0,n.Cg)([(0,c.MZ)()],J.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,value:null})],J.prototype,"networkLink",void 0),(0,n.Cg)([(0,c.MZ)({json:{write:{allowNull:!0}}})],J.prototype,"parent",void 0),(0,n.Cg)([(0,c.MZ)({type:i.A.ofType(J),json:{write:{allowNull:!0}}})],J.prototype,"sublayers",void 0),(0,n.Cg)([(0,c.MZ)({value:null,json:{read:{source:"name",reader:e=>(0,S._e)(e)}}})],J.prototype,"title",void 0),(0,n.Cg)([(0,c.MZ)({value:!0})],J.prototype,"visible",null),(0,n.Cg)([(0,z.w)("visible",["visibility"])],J.prototype,"readVisible",null),(0,n.Cg)([(0,c.MZ)()],J.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,c.MZ)()],J.prototype,"layer",void 0),(0,n.Cg)([(0,c.MZ)()],J.prototype,"origin",null),J=$=(0,n.Cg)([(0,c.$K)("esri.layers.support.KMLSublayer")],J);var U=r(43937);const H=["kml","xml"];let B=class extends((0,h.dM)((0,g.J)((0,b.j)((0,y.q)((0,m.A)((0,o.P)(f.A))))))){constructor(...e){super(...e),this._visibleFolders=[],this.allSublayers=new s.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.outSpatialReference=d.A.WGS84,this.path=null,this.legendEnabled=!1,this.operationalLayerType="KML",this.sublayers=null,this.type="kml",this.url=null}initialize(){this.addHandles([(0,a.wB)(()=>this.sublayers,(e,t)=>{t&&t.forEach(e=>{e.parent=null,e.layer=null}),e&&e.forEach(e=>{e.parent=this,e.layer=this})},a.OH),this.on("sublayer-update",()=>this.notifyChange("fullExtent"))])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get sublayerById(){const e=new Map;for(const t of this.allSublayers)e.set(t.id,t);return e}readSublayersFromItemOrWebMap(e,t){this._visibleFolders=t.visibleFolders}readSublayers(e,t,r){return k(J,t,r,this._visibleFolders)}writeSublayers(e,t){const r=[],n=e.toArray();for(;n.length;){const e=n[0];e.networkLink||(e.visible&&r.push(e.id),e.sublayers&&n.push(...e.sublayers.toArray())),n.shift()}t.visibleFolders=r}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,u.e7)(this.url,H)||"KML":e}set title(e){this._set("title",e)}get visibleSublayers(){const e=this.sublayers,t=[],r=e=>{e.visible&&(t.push(e),e.sublayers&&e.sublayers.forEach(r))};return e?.forEach(r),t}get fullExtent(){return this._recomputeFullExtent()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["KML"],supportsData:!1},e).catch(l.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){super.destroy(),this.allSublayers.destroy()}async _fetchService(e){const t=G((await Promise.resolve().then(()=>this.resourceInfo?{ssl:!1,data:this.resourceInfo}:N(this.url??"",this.outSpatialReference,this.refreshInterval,e))).data);t&&this.read(t,{origin:"service"})}_recomputeFullExtent(){let e=null;null!=this.extent&&(e=this.extent.clone());const t=r=>{if(r.sublayers)for(const n of r.sublayers.items)t(n),n.visible&&n.fullExtent&&(null!=e?e.union(n.fullExtent):e=n.fullExtent.clone())};return t(this),e}};(0,n.Cg)([(0,c.MZ)({readOnly:!0})],B.prototype,"allSublayers",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],B.prototype,"sublayerById",null),(0,n.Cg)([(0,c.MZ)({type:d.A})],B.prototype,"outSpatialReference",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],B.prototype,"path",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1}})],B.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:["show","hide","hide-children"]})],B.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({type:["KML"]})],B.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,c.MZ)({})],B.prototype,"resourceInfo",void 0),(0,n.Cg)([(0,c.MZ)({type:i.A.ofType(J),json:{write:{ignoreOrigin:!0}}})],B.prototype,"sublayers",void 0),(0,n.Cg)([(0,z.w)(["web-map","portal-item"],"sublayers",["visibleFolders"])],B.prototype,"readSublayersFromItemOrWebMap",null),(0,n.Cg)([(0,z.w)("service","sublayers",["sublayers"])],B.prototype,"readSublayers",null),(0,n.Cg)([(0,U.K)("sublayers")],B.prototype,"writeSublayers",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],B.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)({json:{origins:{"web-map":{read:{source:"title"}}},write:{ignoreOrigin:!0}}})],B.prototype,"title",null),(0,n.Cg)([(0,c.MZ)(v.OZ)],B.prototype,"url",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],B.prototype,"visibleSublayers",null),(0,n.Cg)([(0,c.MZ)({type:p.A})],B.prototype,"extent",void 0),(0,n.Cg)([(0,c.MZ)()],B.prototype,"fullExtent",null),B=(0,n.Cg)([(0,c.$K)("esri.layers.KMLLayer")],B);const V=B},4197:(e,t,r)=>{r.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var n=r(34275),i=r(9093);function s(e){return e<=n.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=n.y9?Array.from(e):new Float64Array(e)}function l(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e){return[...e]}function u(e){const t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},6797:(e,t,r)=>{r.d(t,{Ui:()=>d});var n=r(69622),i=r(7762),s=r(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof n.A}function a(e){return e instanceof i.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof i.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const n=a(e),i=a(t);if(0===n.length&&0===i.length)return;if(!n.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=i.filter(e=>!n.includes(e)),d=n.filter(e=>!i.includes(e)),f=n.filter(r=>i.includes(r)&&u(e,r)!==u(t,r)).concat(s,d).sort(),h=c(e);if(h&&o.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let y;const m=l(e)&&l(t);for(const n of f){const i=u(e,n),s=u(t,n);let o;if((m||"function"!=typeof i&&"function"!=typeof s)&&i!==s&&(null!=i||null!=s)){if(r&&r[n]&&"function"==typeof r[n])o=r[n]?.(i,s);else if(i instanceof Date&&s instanceof Date){if(i.getTime()===s.getTime())continue;o={type:"complete",oldValue:i,newValue:s}}else o="object"==typeof i&&"object"==typeof s&&c(i)===c(s)?p(i,s):{type:"complete",oldValue:i,newValue:s};null!=o&&(null!=y?y.diff[n]=o:y={type:"partial",diff:{[n]:o}})}}return y}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},8303:(e,t,r)=>{r.d(t,{A:()=>_});var n=r(31635),i=r(92602),s=r(70333),o=r(11254),l=r(60999),a=r(49186),u=r(53966),c=r(97768),p=r(74887),d=r(84952),f=r(91429),h=r(77548),y=r(20655),m=r(80812),g=r(41318),b=r(10407),v=r(36005),w=r(43937);const _=e=>{const t=e;let _=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let o,l;if(i)o=r.portal.url;else try{o=await(0,h.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new m.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=y.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(n))return i.user;const a=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?g.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||y.A.getDefault());return r&&n&&!(0,d.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,f.MZ)({type:m.default})],_.prototype,"portalItem",null),(0,n.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],_.prototype,"readPortalItem",null),(0,n.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],_.prototype,"writePortalItem",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],_.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasUpdateItemPrivileges",void 0),_=(0,n.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],_),_},M={credential:null,user:null}},9093:(e,t,r)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>i,vt:()=>n,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:n,fromValues:function(e,t,r,n,i,s,o,l,a,u,c,p,d,f,h,y){return[e,t,r,n,i,s,o,l,a,u,c,p,d,f,h,y]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,r)=>{r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(37539);function i(e,t,r,i,s,o,l=Math.floor(e.length/3)){const a=(0,n.jd)(t,s);if(null==a)return!1;if(a===n.pO){if(e===i&&r===o)return!0;const t=r+3*l;for(let n=r,s=o;n<t;n++,s++)i[s]=e[n]??0;return!0}const u=r+3*l;for(let t=r,n=o;t<u;t+=3,n+=3)a(e,t,i,n);return!0}},10407:(e,t,r)=>{r.d(t,{It:()=>f,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,mm:()=>d,sQ:()=>p});var n=r(91218),i=r(16930),s=r(28735);function o(e,t){if(!l(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function f(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit");const l="update"===n||"admin"===n;return l?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:l}}}},22671:(e,t,r)=>{r.d(t,{A:()=>b});var n,i=r(31635),s=r(52106),o=r(66552),l=r(25482),a=r(4718),u=r(91429),c=r(16930),p=r(60408),d=r(65864),f=r(50498),h=r(20437),y=r(36005),m=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=n=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,d.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=c.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e?.[r];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,i],scale:[s,o]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*s+n,e=>i-e*o,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const n=c.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],o=r.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=n);const a=s.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],r=a[e],i=r?.spatialReference;null==t||i||(t.spatialReference=n)}i.push(o)}return i}_quantizePoints(e,t,r){let n,i;const s=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=r(l[1]);e===n&&o===i||(s.push([e-n,o-i]),n=e,i=o)}else n=t(l[0]),i=r(l[1]),s.push([n,i])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,p.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,s=n.length;e<s;e++){const s=n[e],o=this._quantizePoints(s,t,r);o&&i.push(o)}return i.length>0?((0,p.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,p.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,n=s.length;e<n;e++){const n=s[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(o+=i[0],l+=i[1]):(o=i[0],l=i[1]),i[0]=t(o),i[1]=r(l)}}if(n&&i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,l;for(let e=0,n=s.length;e<n;e++){const n=s[e];e>0?(o+=n[0],l+=n[1]):(o=n[0],l=n[1]),n[0]=t(o),n[1]=r(l)}if(n&&i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],b.prototype,"features",void 0),(0,i.Cg)([(0,y.w)("features")],b.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[h.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],b.prototype,"geometryType",void 0),(0,i.Cg)([(0,m.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:f.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,y.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,m.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=n=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},37539:(e,t,r)=>{r.d(t,{pO:()=>y,jd:()=>d,Tp:()=>f,w5:()=>p});var n=r(34727),i=r(86211),s=r(73941),o=r(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=r(21325);const p={2:{5:y,7:null,9:null,10:y,1:S,6:null,8:null,0:null,3:g,11:b,2:y,4:F},5:{5:y,7:null,9:null,10:y,1:S,6:null,8:null,0:null,3:g,11:b,2:y,4:F},7:{5:null,7:y,9:null,10:y,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:_,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,t,r,n){const i=e[t]/Z,s=E-2*Math.atan(Math.exp(-e[t+1]/Z)),o=Z+(e[t+2]??0),l=Math.cos(s)*o;r[n]=Math.cos(i)*l,r[n+1]=Math.sin(i)*l,r[n+2]=Math.sin(s)*o},6:null,8:null,0:null,3:y,11:function(e,t,r,n){m(e,t,r,n),b(r,n,r,n)},2:m,4:function(e,t,r,n){m(e,t,r,n),F(r,n,r,n)}},4:{5:C,7:null,9:null,10:C,1:function(e,t,r,n){C(e,t,r,n),S(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){C(e,t,r,n),g(r,n,r,n)},11:function(e,t,r,n){C(e,t,r,n),b(r,n,r,n)},2:C,4:y},1:{5:A,7:null,9:null,10:A,1:y,6:null,8:null,0:null,3:function(e,t,r,n){A(e,t,r,n),g(r,n,r,n)},11:function(e,t,r,n){A(e,t,r,n),b(r,n,r,n)},2:A,4:function(e,t,r,n){A(e,t,r,n),F(r,n,r,n)}},6:{5:null,7:x,9:null,10:x,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:y,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:S,6:M,8:_,0:null,3:g,11:b,2:y,4:F},11:{5:v,7:null,9:null,10:v,1:function(e,t,r,n){v(e,t,r,n),S(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){v(e,t,r,n),g(r,n,r,n)},11:y,2:v,4:function(e,t,r,n){v(e,t,r,n),F(r,n,r,n)}}};function d(e,t){return f(e,t)?.projector}function f(e,t){if(null==e||null==t)return null;if(R.source.spatialReference===e&&R.dest.spatialReference===t)return R;const r=h(e,R.source),n=h(t,R.dest);return 0===r&&0===n?(0,c.aI)(e,t)?R.projector=y:R.projector=null:R.projector=p[r][n],R}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function y(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function m(e,t,r,n){r[n]=O*(e[t]/Z),r[n+1]=O*(E-2*Math.atan(Math.exp(-e[t+1]/Z))),r[n+2]=e[t+2]??0}function g(e,t,r,i){!function(e,t,r,i,s){const o=.4999999*Math.PI,l=(0,n.qE)(P*e[t+1],-o,o),a=Math.sin(l);r[i++]=P*e[t]*s.radius,r[i++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),r[i]=e[t+2]??0}(e,t,r,i,o.$O)}function b(e,t,r,n){r[n]=e[t]*j,r[n+1]=e[t+1]*j,r[n+2]=e[t+2]??0}function v(e,t,r,n){r[n]=e[t]*L,r[n+1]=e[t+1]*L,r[n+2]=e[t+2]??0}function w(e,t,r,n,i){const s=i+(e[t+2]??0),o=P*e[t],l=P*e[t+1],a=Math.cos(l)*s;r[n]=Math.cos(o)*a,r[n+1]=Math.sin(o)*a,r[n+2]=Math.sin(l)*s}function _(e,t,r,n){w(e,t,r,n,o.Sw.radius)}function M(e,t,r,n){w(e,t,r,n,o.sH.radius)}function S(e,t,r,n){w(e,t,r,n,o.$O.radius)}function I(e,t,r,i,s){const o=e[t],l=e[t+1],a=e[t+2]??0,u=Math.sqrt(o*o+l*l+a*a),c=(0,n.YN)(a/(0===u?1:u)),p=Math.atan2(l,o);r[i++]=O*p,r[i++]=O*c,r[i]=u-s}function T(e,t,r,n){I(e,t,r,n,o.Sw.radius)}function x(e,t,r,n){I(e,t,r,n,o.sH.radius)}function A(e,t,r,n){I(e,t,r,n,o.$O.radius)}function F(e,t,r,n){!function(e,t,r,n,i){const s=P*e[t],o=P*e[t+1],l=e[t+2]??0,a=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);r[n++]=(c+l)*u*Math.cos(s),r[n++]=(c+l)*u*Math.sin(s),r[n++]=(c*(1-i.eccentricitySquared)+l)*a}(e,t,r,n,o.$O)}function C(e,t,r,n){const i=u,s=e[t],l=e[t+1],a=e[t+2]??0;let c,p,d,f,h,y,m,g,b,v,w,_,M,S,I,T,x,A,F,C,R;c=Math.abs(a),p=s*s+l*l,d=Math.sqrt(p),f=p+a*a,h=Math.sqrt(f),C=Math.atan2(l,s),y=a*a/f,m=p/f,S=i.a2/h,I=i.a3-i.a4/h,m>.3?(g=c/h*(1+m*(i.a1+S+y*I)/h),F=Math.asin(g),v=g*g,b=Math.sqrt(1-v)):(b=d/h*(1-y*(i.a5-S-m*I)/h),F=Math.acos(b),v=1-b*b,g=Math.sqrt(v)),w=1-o.$O.eccentricitySquared*v,_=o.$O.radius/Math.sqrt(w),M=i.a6*_,S=d-_*b,I=c-M*g,x=b*S+g*I,T=b*I-g*S,A=T/(M/w+x),F+=A,R=x+T*A/2,a<0&&(F=-F),r[n++]=O*C,r[n++]=O*F,r[n]=R}const R={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},P=(0,n.kU)(1),O=(0,n.KJ)(1),E=.5*Math.PI,Z=o.$O.radius,j=Z*Math.PI/180,L=180/(Z*Math.PI)},38961:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(31635),i=r(7762),s=r(36708),o=r(10107),l=r(64108),a=r(80559);let u=class extends i.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),s.OH))}destroy(){this.getCollections=null}_refresh(){const e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new i.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const n of t)if(n){if(r(n)){const t=this.indexOf(n,e);t>=0?t!==e&&this.reorder(n,e):this.add(n,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(n);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,n.Cg)([(0,o.MZ)()],u.prototype,"getCollections",void 0),(0,n.Cg)([(0,o.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,n.Cg)([(0,o.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,n.Cg)([(0,l.$)("esri.core.CollectionFlattener")],u);const c=u},46140:(e,t,r)=>{r.d(t,{R:()=>i});var n=r(49186);let i=class e{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,r=""){const[i,s]=t.split("."),o=/^\s*\d+\s*$/;if(!i?.match||!o.test(i))throw new n.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!s?.match||!o.test(s))throw new n.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const l=parseInt(i,10),a=parseInt(s,10);return new e(l,a,r)}}},52106:(e,t,r)=>{r.d(t,{A:()=>_});var n,i=r(31635),s=r(37838),o=r(69540),l=r(51447),a=r(25482),u=r(53966),c=r(36708),p=r(24326),d=r(91429),f=r(12195),h=r(65864),y=r(50498),m=r(55156),g=r(60950),b=r(54339),v=r(33910);function w(e){if(null==e)return null;const t={};for(const r in e){const n=e[r];n&&(t[r]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let _=class extends((0,o.OU)(a.o)){static{n=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,g.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,m.I)(this.origin);if(e)return(0,b.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){const e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:w(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,f.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=n),"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,i.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const n=(0,h.rS)(e[r]);n&&(t[r]=n)}return 0!==Object.keys(t).length?t:null}}})],_.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,d.MZ)({value:null})],_.prototype,"attributes",null),(0,i.Cg)([(0,d.MZ)({value:null,types:y.yR,json:{read:h.rS}})],_.prototype,"geometry",null),(0,i.Cg)([(0,d.MZ)({type:Boolean})],_.prototype,"isAggregate",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],_.prototype,"layer",void 0),(0,i.Cg)([(0,d.MZ)({clonable:"reference"})],_.prototype,"origin",void 0),(0,i.Cg)([(0,d.MZ)({type:s.A,value:null})],_.prototype,"popupTemplate",null),(0,i.Cg)([(0,d.MZ)({clonable:"reference"})],_.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,d.MZ)({value:null,types:v.Es})],_.prototype,"symbol",null),(0,i.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],_.prototype,"_version",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,value:!0})],_.prototype,"visible",null),_=n=(0,i.Cg)([(0,d.$K)("esri.Graphic")],_)},54339:(e,t,r)=>{function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const r=[];for(const n of t.fieldNames)r.push(e.attributes[n]??null);return JSON.stringify(r)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>n,r:()=>i})},55156:(e,t,r)=>{r.d(t,{I:()=>i,e:()=>n});const n=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&n in t?e[n]:void 0;var t}},55674:(e,t,r)=>{r.d(t,{Ad:()=>f,Gj:()=>m,QY:()=>d,lL:()=>g,xR:()=>h});var n=r(66131),i=r(49186),s=(r(44208),r(44729)),o=r(15032),l=r(65864),a=r(95466),u=r(43668),c=r(98623);const p=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of p)t.hasArcadeDependency(r)&&e.add(r);return e}function f(e,t){return y.create(e,t,null,["$feature","$view"])}function h(e,t,r){return y.create(e,t,r,["$feature","$view","$config"])}class y{static async create(e,t,r,n){const{arcade:s,Dictionary:o}=await(0,u.l)();let l;try{l=s.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const a=s.scriptUsesGeometryEngine(l);a&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,l,null,!1,a);const c={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=s.compileScript(l,c);let d=null;null!=r&&(d=new o(r),d.immutable=!0);const f=new o;return f.immutable=!1,f.setField("scale",0),new y(e,s,l,p,t,f,d,o)}constructor(e,t,r,n,i,s,o,l){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=s,this._configDict=o,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=r?n.lY.epochToArcadeDate(i,r):n.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=s?null!=r?n.lY.epochToArcadeDate(s,r):n.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const n=t??new a.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},65494:(e,t,r)=>{r.d(t,{L:()=>a,r:()=>o});var n=r(67076),i=r(90360),s=r(41214);function o(e,t){return a(e,null,t)}const l=(0,i.C)({types:s.Hg});function a(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?(r?.messages&&r.messages.push(new n.A("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+e.type+"'",{definition:e,context:r})),null):l(e,t,r):null}},70328:(e,t,r)=>{r.d(t,{BI:()=>v,DC:()=>p,Ej:()=>f,Ie:()=>g,Jt:()=>b,Ne:()=>h,RF:()=>c,aI:()=>_,fA:()=>o,gE:()=>a,hZ:()=>m,iT:()=>d,is:()=>w,qv:()=>M,vI:()=>y,vY:()=>l,v_:()=>S,vt:()=>s,w1:()=>u});var n=r(5443),i=(r(19419),r(4197));function s(e=S){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,i,o,l=s()){return l[0]=e,l[1]=t,l[2]=r,l[3]=n,l[4]=i,l[5]=o,l}function l(e,t=s()){return function(e,t,r,n=s()){return m(n,M),function(e,t,r=0,n=t.length/3){let i=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),l=Math.max(l,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function a(e,t=(0,i.jh)(24)){const[r,n,s,o,l,a]=e;return t[0]=r,t[1]=n,t[2]=s,t[3]=r,t[4]=n,t[5]=a,t[6]=r,t[7]=l,t[8]=s,t[9]=r,t[10]=l,t[11]=a,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?m(e,M):s(M)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function v(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function _(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],S=[0,0,0,0,0,0];s()},73681:(e,t,r)=>{r.d(t,{n:()=>a});var n=r(49186),i=r(53966),s=r(46140),o=r(95466),l=r(55674);class a{static async from(e,t,r){const o=e.dictionary_version?s.R.parse(e.dictionary_version):null,c=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const f=await(0,l.xR)(e.expression,null,p);if(!f)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const y=new u(r,h);return new a(h,c,f,y)}constructor(e,t,r,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,r,n){try{return this._reader.bind(e,r,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},89808:(e,t,r)=>{r.d(t,{Q:()=>n});const n=Symbol("getSliceableSymbol")},91218:(e,t,r)=>{r.r(t),r.d(t,{canProjectWithoutEngine:()=>z,initializeProjection:()=>U,isEqualBaseGCS:()=>J,isLoaded:()=>C,isLoadedOrLoad:()=>R,isLoadedOrLoadFor:()=>P,load:()=>E,project:()=>Z,projectAsync:()=>$,projectExtent:()=>te,projectMany:()=>j,projectMultipoint:()=>K,projectOrLoad:()=>G,projectOrLoadMany:()=>N,projectPoint:()=>B,projectPolygon:()=>X,projectPolyline:()=>W,projectWithoutEngine:()=>H,requiresLoad:()=>O,test:()=>D,tryProject:()=>L,unload:()=>q});var n=r(49186),i=r(74887),s=r(62788),o=r(95488),l=r(51850),a=r(21276),u=r(73941),c=r(5443),p=r(91075),d=r(48526),f=r(86738),h=r(39829),y=r(82799),m=r(16930),g=r(159),b=r(9762),v=r(37539);function w(e,t,r,n,i,s){return _[0]=e,_[1]=t,_[2]=r,(0,b.projectBuffer)(_,n,0,i,s,0)}const _=(0,l.vt)();var M=r(21325);let S=null,I=null,T=null,x=null,A={};const F=new o.I;function C(){return!!(I?.isLoaded()&&T?.isLoaded()&&x?.isLoaded())}function R(){return!!C()||((0,s.gc)(F),E(),!1)}function P(e,t){return!e||!t||z(e,t)||R()}function O(e,t){return!z(e,t)&&!C()}async function E(e){null==S&&(S=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(I=e,I.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(T=e,T.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(x=e,x.load()))])),await S,(0,i.Te)(e),F.notify()}function Z(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),j(e,e[0].spatialReference,t,r)):((0,a.f)(e),j([e],e.spatialReference,t,r)[0])}function j(e,t,r,n){if(null==t||null==r)return e;if(z(t,r,n))return e.map(e=>H(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return j(e.map(e=>H(e,t,m.A.WGS84)),m.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return j(e,t,m.A.WGS84).map(e=>H(e,m.A.WGS84,r));if(!C())throw new k;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:x.getTransformation(t,r,n.areaOfInterestExtent)||new g.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let i=A[e];i||(i=x.getTransformation(t,r)||new g.A,A[e]=i),n={geographicTransformation:i,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?I.executeMany(e,r,n):T.executeMany(e,r,n)}function L(e,t,r){try{return Z(e,t,r)}catch(e){return null}}function G(e,t){const r=N([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function N(e,t,r){if(!C())for(const r of e)if(null!=r&&!(0,M.aI)(r.spatialReference,t)&&(0,M.fn)(r.spatialReference)&&(0,M.fn)(t)&&!z(r.spatialReference,t))return(0,s.gc)(F),{pending:E(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,M.aI)(e.spatialReference,t)?e:(0,M.fn)(e.spatialReference)&&(0,M.fn)(t)?Z(e,t,r):null)}}class k extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function q(){S=null,I=null,T=null,x=null,A={}}const D={get loadPromise(){return S}};async function $(e,t,r){if((0,i.Te)(r),!e)return e;const n=N(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,i.Te)(r),$(e,t,r);const s=n.geometries??[];return Array.isArray(e)?s:s[0]}function z(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,M.aI)(e,t)||(0,M.fn)(e)&&(0,M.fn)(t)&&!!(0,v.jd)(e,t))}function J(e,t){if((0,M.aI)(e,t))return!0;if(!(0,M.fn)(e)||!(0,M.fn)(t))return!1;const r=(0,M.oT)(e)||(0,M.K8)(e)||(0,M.x1)(e),n=(0,M.oT)(t)||(0,M.K8)(t)||(0,M.x1)(t);return r&&n}async function U(e,t,r,n){if(C())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!z(t,r,i))return E(n)}else if(e&&t&&!z(e,t,r))return E(n);return(0,i.NO)(n)}function H(e,t,r){return e?"x"in e?V(e,t,new f.A,r,0):"xmin"in e?re(e,t,new c.A,r,0):"rings"in e?ee(e,t,new h.A,r,0):"paths"in e?Q(e,t,new y.A,r,0):"points"in e?Y(e,t,new d.A,r,0):null:null}function B(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=V(e,e.spatialReference,t,r,n)}function V(e,t,r,n,i){ie[0]=e.x,ie[1]=e.y;const s=e.z;return ie[2]=void 0!==s?s:i,(0,b.projectBuffer)(ie,t,0,ie,n,0)?(r.x=ie[0],r.y=ie[1],r.spatialReference=n,void 0!==s||(0,u.xP)(n)?(r.z=ie[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function K(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=Y(e,e.spatialReference,t,r,n)}function Y(e,t,r,n,i){const{points:s,hasZ:o,hasM:l}=e,a=[],c=s.length,p=[];for(const e of s)p.push(e[0],e[1],o?e[2]:i);if(!(0,b.projectBuffer)(p,t,0,p,n,0,c))return null;const d=o||(0,u.xP)(n);for(let e=0;e<c;++e){const t=3*e,r=p[t],n=p[t+1];d&&l?a.push([r,n,p[t+2],s[e][3]]):d?a.push([r,n,p[t+2]]):l?a.push([r,n,s[e][2]]):a.push([r,n])}return r.points=a,r.spatialReference=n,r.hasZ=o,r.hasM=l,r}function W(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=Q(e,e.spatialReference,t,r,n)}function Q(e,t,r,n,i){const{paths:s,hasZ:o,hasM:l}=e,a=[];if(!ne(s,o??!1,l??!1,t,a,n,i))return null;const c=o||(0,u.xP)(n);return r.paths=a,r.spatialReference=n,r.hasZ=c,r.hasM=l,r}function X(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ee(e,e.spatialReference,t,r,n)}function ee(e,t,r,n,i){const{rings:s,hasZ:o,hasM:l}=e,a=[];if(!ne(s,o??!1,l??!1,t,a,n,i))return null;const c=o||(0,u.xP)(n);return r.rings=a,r.spatialReference=n,r.hasZ=c,r.hasM=l,r}function te(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=re(e,e.spatialReference,t,r,n)}function re(e,t,r,n,i){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:p}=e;if(!w(s,o,c?e.zmin:i,t,ie,n))return null;const d=c||(0,u.xP)(n);return r.xmin=ie[0],r.ymin=ie[1],d&&(r.zmin=ie[2]),w(l,a,c?e.zmax:i,t,ie,n)?(r.xmax=ie[0],r.ymax=ie[1],d&&(r.zmax=ie[2]),p&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function ne(e,t,r,n,i,s,o=0){const l=new Array;for(const r of e)for(const e of r)l.push(e[0],e[1],t?e[2]:o);if(!(0,b.projectBuffer)(l,n,0,l,s,0))return!1;let a=0;i.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const n of t)c&&r?e.push([l[a++],l[a++],l[a++],n[3]]):c?e.push([l[a++],l[a++],l[a++]]):r?(e.push([l[a++],l[a++],n[2]]),a++):(e.push([l[a++],l[a++]]),a++);i.push(e)}return!0}const ie=(0,l.vt)()},95466:(e,t,r)=>{r.d(t,{A:()=>f});var n=r(49186),i=r(53966),s=r(91869),o=r(3330),l=r(12195),a=r(30524),u=r(98623),c=r(56400),p=r(28097);const d=new Map;class f{static fromJSON(e){return new f(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new f(e.fields??[],g(e))}static fromLayerJSON(e){return new f(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,n=y(t);if(t&&n){const i=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(n,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):m.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function y(e){return(0,a.rS)(e)?.toLowerCase()??""}const m=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:i}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",o=(n?"endField"in n?n.endField:n.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.dateFieldsTimeReference?(0,c.ZS)(i.dateFieldsTimeReference):l??u.n$:null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.timeReference?(0,c.ZS)(n.timeReference):l:null,d=new Map([[h(i?.creationDateField??""),a],[h(i?.editDateField??""),a],[h(s),p],[h(o),p]]);for(const{name:n,type:i}of e.fields)if(m.has(i))t.set(n,u.L5);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(n,null);else if(r)t.set(n,u.L5);else{const e=d.get(h(n??""))??l;t.set(n,e)}return t}},96576:(e,t,r)=>{r.d(t,{A:()=>p});var n,i=r(31635),s=r(4718),o=r(91429),l=r(92438),a=r(63988),u=r(49849),c=r(93223);let p=n=class extends((0,a.h)(l.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){return this.symbols.reduce((e,t)=>e+JSON.stringify(t),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new n({description:this.description,label:this.label,symbol:(0,s.o8)(this.symbol),visualVariables:(0,s.o8)(this.visualVariables),authoringInfo:(0,s.o8)(this.authoringInfo)})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,i.Cg)([(0,o.MZ)(u.Wp)],p.prototype,"symbol",void 0),(0,i.Cg)([(0,c.e)({simple:"simple"})],p.prototype,"type",void 0),p=n=(0,i.Cg)([(0,o.$K)("esri.renderers.SimpleRenderer")],p)},99157:(e,t,r)=>{r.d(t,{A:()=>l});var n,i=r(31635),s=r(69622),o=r(91429);let l=n=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,o.MZ)()],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,o.MZ)()],l.prototype,"wkt",void 0),(0,i.Cg)([(0,o.MZ)()],l.prototype,"wkid",void 0),l=n=(0,i.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},99959:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(31635),i=r(91429);let s=class{};s=(0,n.Cg)([(0,i.$K)("esri.graphic.GraphicOrigin")],s)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2848],{159:(e,t,n)=>{n.d(t,{A:()=>a});var l,r=n(31635),i=n(69622),s=n(91429),o=n(99157);let a=l=class extends i.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new l;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,s.MZ)({type:[o.A],nonNullable:!0})],a.prototype,"steps",void 0),a=l=(0,r.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformation")],a)},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>r});var l=n(37539);function r(e,t,n,r,i,s,o=Math.floor(e.length/3)){const a=(0,l.jd)(t,i);if(null==a)return!1;if(a===l.pO){if(e===r&&n===s)return!0;const t=n+3*o;for(let l=n,i=s;l<t;l++,i++)r[i]=e[l]??0;return!0}const u=n+3*o;for(let t=n,l=s;t<u;t+=3,l+=3)a(e,t,r,l);return!0}},37539:(e,t,n)=>{n.d(t,{pO:()=>g,jd:()=>f,Tp:()=>h,w5:()=>p});var l=n(34727),r=n(86211),i=n(73941),s=n(79258);Math.PI;const o=s.$O.radius,a=s.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};s.$O.radius,s.$O.flattening,s.Sw.radius,s.Sw.flattening,s.sH.radius,s.sH.flattening,s.sH.radius;var c=n(21325);const p={2:{5:g,7:null,9:null,10:g,1:A,6:null,8:null,0:null,3:v,11:y,2:g,4:S},5:{5:g,7:null,9:null,10:g,1:A,6:null,8:null,0:null,3:v,11:y,2:g,4:S},7:{5:null,7:g,9:null,10:g,1:null,6:x,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:g,10:g,1:null,6:null,8:R,0:null,3:null,11:null,2:null,4:null},3:{5:w,7:null,9:null,10:w,1:function(e,t,n,l){const r=e[t]/L,i=T-2*Math.atan(Math.exp(-e[t+1]/L)),s=L+(e[t+2]??0),o=Math.cos(i)*s;n[l]=Math.cos(r)*o,n[l+1]=Math.sin(r)*o,n[l+2]=Math.sin(i)*s},6:null,8:null,0:null,3:g,11:function(e,t,n,l){w(e,t,n,l),y(n,l,n,l)},2:w,4:function(e,t,n,l){w(e,t,n,l),S(n,l,n,l)}},4:{5:O,7:null,9:null,10:O,1:function(e,t,n,l){O(e,t,n,l),A(n,l,n,l)},6:null,8:null,0:null,3:function(e,t,n,l){O(e,t,n,l),v(n,l,n,l)},11:function(e,t,n,l){O(e,t,n,l),y(n,l,n,l)},2:O,4:g},1:{5:C,7:null,9:null,10:C,1:g,6:null,8:null,0:null,3:function(e,t,n,l){C(e,t,n,l),v(n,l,n,l)},11:function(e,t,n,l){C(e,t,n,l),y(n,l,n,l)},2:C,4:function(e,t,n,l){C(e,t,n,l),S(n,l,n,l)}},6:{5:null,7:z,9:null,10:z,1:null,6:g,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:g,3:null,11:null,2:null,4:null},10:{5:g,7:g,9:g,10:g,1:A,6:x,8:R,0:null,3:v,11:y,2:g,4:S},11:{5:m,7:null,9:null,10:m,1:function(e,t,n,l){m(e,t,n,l),A(n,l,n,l)},6:null,8:null,0:null,3:function(e,t,n,l){m(e,t,n,l),v(n,l,n,l)},11:g,2:m,4:function(e,t,n,l){m(e,t,n,l),S(n,l,n,l)}}};function f(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(P.source.spatialReference===e&&P.dest.spatialReference===t)return P;const n=d(e,P.source),l=d(t,P.dest);return 0===n&&0===l?(0,c.aI)(e,t)?P.projector=g:P.projector=null:P.projector=p[n][l],P}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===i.FY.wkt?t.spatialReferenceId=6:e.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function g(e,t,n,l){e!==n&&(n[l++]=e[t++],n[l++]=e[t++],n[l]=e[t]??0)}function w(e,t,n,l){n[l]=b*(e[t]/L),n[l+1]=b*(T-2*Math.atan(Math.exp(-e[t+1]/L))),n[l+2]=e[t+2]??0}function v(e,t,n,r){!function(e,t,n,r,i){const s=.4999999*Math.PI,o=(0,l.qE)(Z*e[t+1],-s,s),a=Math.sin(o);n[r++]=Z*e[t]*i.radius,n[r++]=i.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]??0}(e,t,n,r,s.$O)}function y(e,t,n,l){n[l]=e[t]*k,n[l+1]=e[t+1]*k,n[l+2]=e[t+2]??0}function m(e,t,n,l){n[l]=e[t]*_,n[l+1]=e[t+1]*_,n[l+2]=e[t+2]??0}function M(e,t,n,l,r){const i=r+(e[t+2]??0),s=Z*e[t],o=Z*e[t+1],a=Math.cos(o)*i;n[l]=Math.cos(s)*a,n[l+1]=Math.sin(s)*a,n[l+2]=Math.sin(o)*i}function R(e,t,n,l){M(e,t,n,l,s.Sw.radius)}function x(e,t,n,l){M(e,t,n,l,s.sH.radius)}function A(e,t,n,l){M(e,t,n,l,s.$O.radius)}function j(e,t,n,r,i){const s=e[t],o=e[t+1],a=e[t+2]??0,u=Math.sqrt(s*s+o*o+a*a),c=(0,l.YN)(a/(0===u?1:u)),p=Math.atan2(o,s);n[r++]=b*p,n[r++]=b*c,n[r]=u-i}function I(e,t,n,l){j(e,t,n,l,s.Sw.radius)}function z(e,t,n,l){j(e,t,n,l,s.sH.radius)}function C(e,t,n,l){j(e,t,n,l,s.$O.radius)}function S(e,t,n,l){!function(e,t,n,l,r){const i=Z*e[t],s=Z*e[t+1],o=e[t+2]??0,a=Math.sin(s),u=Math.cos(s),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[l++]=(c+o)*u*Math.cos(i),n[l++]=(c+o)*u*Math.sin(i),n[l++]=(c*(1-r.eccentricitySquared)+o)*a}(e,t,n,l,s.$O)}function O(e,t,n,l){const r=u,i=e[t],o=e[t+1],a=e[t+2]??0;let c,p,f,h,d,g,w,v,y,m,M,R,x,A,j,I,z,C,S,O,P;c=Math.abs(a),p=i*i+o*o,f=Math.sqrt(p),h=p+a*a,d=Math.sqrt(h),O=Math.atan2(o,i),g=a*a/h,w=p/h,A=r.a2/d,j=r.a3-r.a4/d,w>.3?(v=c/d*(1+w*(r.a1+A+g*j)/d),S=Math.asin(v),m=v*v,y=Math.sqrt(1-m)):(y=f/d*(1-g*(r.a5-A-w*j)/d),S=Math.acos(y),m=1-y*y,v=Math.sqrt(m)),M=1-s.$O.eccentricitySquared*m,R=s.$O.radius/Math.sqrt(M),x=r.a6*R,A=f-R*y,j=c-x*v,z=y*A+v*j,I=y*j-v*A,C=I/(x/M+z),S+=C,P=z+I*C/2,a<0&&(S=-S),n[l++]=b*O,n[l++]=b*S,n[l]=P}const P={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:g},Z=(0,l.kU)(1),b=(0,l.KJ)(1),T=.5*Math.PI,L=s.$O.radius,k=L*Math.PI/180,_=180/(L*Math.PI)},72802:(e,t,n)=>{n.d(t,{U:()=>r});var l=n(19419);class r{constructor(e,t,n,r=(0,l.vt)()){this._level=e,this._row=t,this._col=n,this.extent=r}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new r(e.level,e.row,e.col,e.extent)}}},87045:(e,t,n)=>{n.d(t,{A:()=>m});var l,r=n(31635),i=n(66552),s=n(25482),o=n(86211),a=n(91429),u=n(56507),c=n(86738),p=n(16930),f=n(21325),h=n(28735),d=n(91806),g=n(72802),w=n(36005),v=n(43937);const y=new i.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let m=class extends s.o{static{l=this}static create(e={}){const{resolutionFactor:t=1,scales:n,size:r=256,spatialReference:i=p.A.WebMercator,numLODs:s=24}=e;if(!(0,f.fn)(i)){const e=[];if(n)for(let t=0;t<n.length;t++){const l=n[t];e.push(new d.A({level:t,scale:l,resolution:l}))}else{let t=5e-4;for(let n=s-1;n>=0;n--)e.unshift(new d.A({level:n,scale:t,resolution:t})),t*=2}return new l({dpi:96,lods:e,origin:new c.A(0,0,i),size:[r,r],spatialReference:i})}const a=(0,f.Vp)(i),u=e.origin?new c.A({x:e.origin.x,y:e.origin.y,spatialReference:i}):new c.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:i}:{x:0,y:0,spatialReference:i}),h=1/(39.37*(0,o.GA)(i)*96),g=[];if(n)for(let e=0;e<n.length;e++){const t=n[e],l=t*h;g.push(new d.A({level:e,scale:t,resolution:l}))}else{let e=(0,f.EA)(i)?512/r*591657527.5917094:256/r*591657527.591555;const n=Math.ceil(s/t);g.push(new d.A({level:0,scale:e,resolution:e*h}));for(let l=1;l<n;l++){const n=e/2**t,r=n*h;g.push(new d.A({level:l,scale:n,resolution:r})),e=n}}return new l({dpi:96,lods:g,origin:u,size:[r,r],spatialReference:i})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const n=(0,f.Vp)(e);return e.isWrappable&&!!n&&Math.abs(n.origin[0]-t.x)<=n.dx}return!1}readOrigin(e,t){return c.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,n=0;const l=[],r=this._levelToLOD={};e&&(t=-1/0,n=1/0,e.forEach(e=>{l.push(e.scale),t=e.scale>t?e.scale:t,n=e.scale<n?e.scale:n,r[e.level]=e})),this._set("scales",l),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const n=Math.floor(e),l=n+1;return t[n]/(t[n]/t[l])**(e-n)}scaleToZoom(e){const t=this.scales,n=t.length-1;let l=0;for(;l<n;l++){const n=t[l],r=t[l+1];if(n<=e)return l;if(r===e)return l+1;if(n>e&&r<e)return l+Math.log(n/e)/Math.log(n/r)}return l}tileAt(e,t,n,l){const r=this.lodAt(e);if(!r)return null;let i,s;if("number"==typeof t)i=t,s=n;else if((0,f.aI)(t.spatialReference,this.spatialReference))i=t.x,s=t.y,l=n;else{const e=(0,h.Cv)(t,this.spatialReference);if(null==e)return null;i=e.x,s=e.y,l=n}const o=r.resolution*this.size[0],a=r.resolution*this.size[1];return l??=new g.U(0,0,0),l.level=e,l.row=Math.floor((this.origin.y-s)/a+.001),l.col=Math.floor((i-this.origin.x)/o+.001),this.updateTileInfo(l),l}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let n=this.lodAt(e.level);if(!n&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(n=t)}if(!n)return!1;const l=e.level-n.level,r=n.resolution*this.size[0]/2**l,i=n.resolution*this.size[1]/2**l;return e.extent[0]=this.origin.x+e.col*r,e.extent[1]=this.origin.y-(e.row+1)*i,e.extent[2]=e.extent[0]+r,e.extent[3]=e.extent[1]+i,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const n=this.lodAt(t.level);if(null==n)return null;const{resolution:l}=n,r=l*this.size[0],i=l*this.size[1];return e[0]=this.origin.x+t.col*r,e[1]=this.origin.y-(t.row+1)*i,e[2]=e[0]+r,e[3]=e[1]+i,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return l.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const n=[],r=this.lods.length-t;for(let e=0;e<r;e++){const l=e+t,{scale:r,resolution:i}=l>=0?this.lods[l]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};n.push(new d.A({level:e,scale:r,resolution:i}))}return new l({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:n})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let n=0;n<e.length;n++){const l=e[n];this._upsampleLevels[l.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/l.resolution:0},t=l}}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"compressionQuality",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"dpi",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{read:y.read,write:y.write,origins:{"web-scene":{read:!1,write:!1}}}})],m.prototype,"format",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"isWrappable",null),(0,r.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],m.prototype,"origin",void 0),(0,r.Cg)([(0,w.w)("origin")],m.prototype,"readOrigin",null),(0,r.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],m.prototype,"lods",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"scales",void 0),(0,r.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],m.prototype,"size",void 0),(0,r.Cg)([(0,w.w)("size",["rows","cols"])],m.prototype,"readSize",null),(0,r.Cg)([(0,v.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],m.prototype,"writeSize",null),(0,r.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],m.prototype,"spatialReference",void 0),m=l=(0,r.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],m)},91218:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>W,initializeProjection:()=>F,isEqualBaseGCS:()=>K,isLoaded:()=>O,isLoadedOrLoad:()=>P,isLoadedOrLoadFor:()=>Z,load:()=>T,project:()=>L,projectAsync:()=>D,projectExtent:()=>te,projectMany:()=>k,projectMultipoint:()=>B,projectOrLoad:()=>G,projectOrLoadMany:()=>$,projectPoint:()=>U,projectPolygon:()=>X,projectPolyline:()=>Q,projectWithoutEngine:()=>J,requiresLoad:()=>b,test:()=>E,tryProject:()=>_,unload:()=>q});var l=n(49186),r=n(74887),i=n(62788),s=n(95488),o=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(91075),f=n(48526),h=n(86738),d=n(39829),g=n(82799),w=n(16930),v=n(159),y=n(9762),m=n(37539);function M(e,t,n,l,r,i){return R[0]=e,R[1]=t,R[2]=n,(0,y.projectBuffer)(R,l,0,r,i,0)}const R=(0,o.vt)();var x=n(21325);let A=null,j=null,I=null,z=null,C={};const S=new s.I;function O(){return!!(j?.isLoaded()&&I?.isLoaded()&&z?.isLoaded())}function P(){return!!O()||((0,i.gc)(S),T(),!1)}function Z(e,t){return!e||!t||W(e,t)||P()}function b(e,t){return!W(e,t)&&!O()}async function T(e){null==A&&(A=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(j=e,j.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(I=e,I.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(z=e,z.load()))])),await A,(0,r.Te)(e),S.notify()}function L(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),k(e,e[0].spatialReference,t,n)):((0,a.f)(e),k([e],e.spatialReference,t,n)[0])}function k(e,t,n,l){if(null==t||null==n)return e;if(W(t,n,l))return e.map(e=>J(e,t,n));if(null==l?.geographicTransformation&&(0,u.jA)(t))return k(e.map(e=>J(e,t,w.A.WGS84)),w.A.WGS84,n,{zConversionDisabled:l?.zConversionDisabled});if(null==l?.geographicTransformation&&(0,u.jA)(n))return k(e,t,w.A.WGS84).map(e=>J(e,w.A.WGS84,n));if(!O())throw new N;if(!l?.geographicTransformation)if(l?.extendedParams)l={...l,geographicTransformation:z.getTransformation(t,n,l.areaOfInterestExtent)||new v.A};else if(!l?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=C[e];r||(r=z.getTransformation(t,n)||new v.A,C[e]=r),l={geographicTransformation:r,zConversionDisabled:l?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?j.executeMany(e,n,l):I.executeMany(e,n,l)}function _(e,t,n){try{return L(e,t,n)}catch(e){if(e instanceof N)return null;throw e}}function G(e,t){const n=$([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function $(e,t,n){if(!O())for(const n of e)if(null!=n&&!(0,x.aI)(n.spatialReference,t)&&(0,x.fn)(n.spatialReference)&&(0,x.fn)(t)&&!W(n.spatialReference,t))return(0,i.gc)(S),{pending:T(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,x.aI)(e.spatialReference,t)?e:(0,x.fn)(e.spatialReference)&&(0,x.fn)(t)?L(e,t,n):null)}}class N extends l.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function q(){A=null,j=null,I=null,z=null,C={}}const E={get loadPromise(){return A}};async function D(e,t,n){if((0,r.Te)(n),!e)return e;const l=$(Array.isArray(e)?e:[e],t,n);if(l.pending)return await l.pending,(0,r.Te)(n),D(e,t,n);const i=l.geometries??[];return Array.isArray(e)?i:i[0]}function W(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,x.aI)(e,t)||(0,x.fn)(e)&&(0,x.fn)(t)&&!!(0,m.jd)(e,t))}function K(e,t){if((0,x.aI)(e,t))return!0;if(!(0,x.fn)(e)||!(0,x.fn)(t))return!1;const n=(0,x.oT)(e)||(0,x.K8)(e)||(0,x.x1)(e),l=(0,x.oT)(t)||(0,x.K8)(t)||(0,x.x1)(t);return n&&l}async function F(e,t,n,l){if(O())return(0,r.NO)(l);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!W(t,n,r))return T(l)}else if(e&&t&&!W(e,t,n))return T(l);return(0,r.NO)(l)}function J(e,t,n){return e?"x"in e?V(e,t,new h.A,n,0):"xmin"in e?ne(e,t,new c.A,n,0):"rings"in e?ee(e,t,new d.A,n,0):"paths"in e?Y(e,t,new g.A,n,0):"points"in e?H(e,t,new f.A,n,0):null:null}function U(e,t,n=t.spatialReference,l=0){return null!=n&&null!=e.spatialReference&&null!=V(e,e.spatialReference,t,n,l)}function V(e,t,n,l,r){re[0]=e.x,re[1]=e.y;const i=e.z;return re[2]=void 0!==i?i:r,(0,y.projectBuffer)(re,t,0,re,l,0)?(n.x=re[0],n.y=re[1],n.spatialReference=l,void 0!==i||(0,u.xP)(l)?(n.z=re[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function B(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=H(e,e.spatialReference,t,n,l)}function H(e,t,n,l,r){const{points:i,hasZ:s,hasM:o}=e,a=[],c=i.length,p=[];for(const e of i)p.push(e[0],e[1],s?e[2]:r);if(!(0,y.projectBuffer)(p,t,0,p,l,0,c))return null;const f=s||(0,u.xP)(l);for(let e=0;e<c;++e){const t=3*e,n=p[t],l=p[t+1];f&&o?a.push([n,l,p[t+2],i[e][3]]):f?a.push([n,l,p[t+2]]):o?a.push([n,l,i[e][2]]):a.push([n,l])}return n.points=a,n.spatialReference=l,n.hasZ=s,n.hasM=o,n}function Q(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=Y(e,e.spatialReference,t,n,l)}function Y(e,t,n,l,r){const{paths:i,hasZ:s,hasM:o}=e,a=[];if(!le(i,s??!1,o??!1,t,a,l,r))return null;const c=s||(0,u.xP)(l);return n.paths=a,n.spatialReference=l,n.hasZ=c,n.hasM=o,n}function X(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ee(e,e.spatialReference,t,n,l)}function ee(e,t,n,l,r){const{rings:i,hasZ:s,hasM:o}=e,a=[];if(!le(i,s??!1,o??!1,t,a,l,r))return null;const c=s||(0,u.xP)(l);return n.rings=a,n.spatialReference=l,n.hasZ=c,n.hasM=o,n}function te(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ne(e,e.spatialReference,t,n,l)}function ne(e,t,n,l,r){const{xmin:i,ymin:s,xmax:o,ymax:a,hasZ:c,hasM:p}=e;if(!M(i,s,c?e.zmin:r,t,re,l))return null;const f=c||(0,u.xP)(l);return n.xmin=re[0],n.ymin=re[1],f&&(n.zmin=re[2]),M(o,a,c?e.zmax:r,t,re,l)?(n.xmax=re[0],n.ymax=re[1],f&&(n.zmax=re[2]),p&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=l,n):null}function le(e,t,n,l,r,i,s=0){const o=new Array;for(const n of e)for(const e of n)o.push(e[0],e[1],t?e[2]:s);if(!(0,y.projectBuffer)(o,l,0,o,i,0))return!1;let a=0;r.length=0;const c=t||(0,u.xP)(i);for(const t of e){const e=new Array;for(const l of t)c&&n?e.push([o[a++],o[a++],o[a++],l[3]]):c?e.push([o[a++],o[a++],o[a++]]):n?(e.push([o[a++],o[a++],l[2]]),a++):(e.push([o[a++],o[a++]]),a++);r.push(e)}return!0}const re=(0,o.vt)()},91806:(e,t,n)=>{n.d(t,{A:()=>a});var l,r=n(31635),i=n(25482),s=n(91429),o=n(56507);let a=class extends i.o{static{l=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new l({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,r.Cg)([(0,s.MZ)({type:o.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=l=(0,r.Cg)([(0,s.$K)("esri.layers.support.LOD")],a)},99157:(e,t,n)=>{n.d(t,{A:()=>o});var l,r=n(31635),i=n(69622),s=n(91429);let o=l=class extends i.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new l({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,s.MZ)()],o.prototype,"isInverse",void 0),(0,r.Cg)([(0,s.MZ)()],o.prototype,"wkt",void 0),(0,r.Cg)([(0,s.MZ)()],o.prototype,"wkid",void 0),o=l=(0,r.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformationStep")],o)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2848],{159:(e,t,n)=>{n.d(t,{A:()=>a});var l,r=n(31635),i=n(69622),s=n(91429),o=n(99157);let a=l=class extends i.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new l;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,s.MZ)({type:[o.A],nonNullable:!0})],a.prototype,"steps",void 0),a=l=(0,r.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformation")],a)},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>r});var l=n(37539);function r(e,t,n,r,i,s,o=Math.floor(e.length/3)){const a=(0,l.jd)(t,i);if(null==a)return!1;if(a===l.pO){if(e===r&&n===s)return!0;const t=n+3*o;for(let l=n,i=s;l<t;l++,i++)r[i]=e[l]??0;return!0}const u=n+3*o;for(let t=n,l=s;t<u;t+=3,l+=3)a(e,t,r,l);return!0}},37539:(e,t,n)=>{n.d(t,{pO:()=>g,jd:()=>f,Tp:()=>h,w5:()=>p});var l=n(34727),r=n(86211),i=n(73941),s=n(79258);Math.PI;const o=s.$O.radius,a=s.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};s.$O.radius,s.$O.flattening,s.Sw.radius,s.Sw.flattening,s.sH.radius,s.sH.flattening,s.sH.radius;var c=n(21325);const p={2:{5:g,7:null,9:null,10:g,1:A,6:null,8:null,0:null,3:v,11:y,2:g,4:S},5:{5:g,7:null,9:null,10:g,1:A,6:null,8:null,0:null,3:v,11:y,2:g,4:S},7:{5:null,7:g,9:null,10:g,1:null,6:x,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:g,10:g,1:null,6:null,8:R,0:null,3:null,11:null,2:null,4:null},3:{5:w,7:null,9:null,10:w,1:function(e,t,n,l){const r=e[t]/L,i=T-2*Math.atan(Math.exp(-e[t+1]/L)),s=L+(e[t+2]??0),o=Math.cos(i)*s;n[l]=Math.cos(r)*o,n[l+1]=Math.sin(r)*o,n[l+2]=Math.sin(i)*s},6:null,8:null,0:null,3:g,11:function(e,t,n,l){w(e,t,n,l),y(n,l,n,l)},2:w,4:function(e,t,n,l){w(e,t,n,l),S(n,l,n,l)}},4:{5:O,7:null,9:null,10:O,1:function(e,t,n,l){O(e,t,n,l),A(n,l,n,l)},6:null,8:null,0:null,3:function(e,t,n,l){O(e,t,n,l),v(n,l,n,l)},11:function(e,t,n,l){O(e,t,n,l),y(n,l,n,l)},2:O,4:g},1:{5:C,7:null,9:null,10:C,1:g,6:null,8:null,0:null,3:function(e,t,n,l){C(e,t,n,l),v(n,l,n,l)},11:function(e,t,n,l){C(e,t,n,l),y(n,l,n,l)},2:C,4:function(e,t,n,l){C(e,t,n,l),S(n,l,n,l)}},6:{5:null,7:z,9:null,10:z,1:null,6:g,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:g,3:null,11:null,2:null,4:null},10:{5:g,7:g,9:g,10:g,1:A,6:x,8:R,0:null,3:v,11:y,2:g,4:S},11:{5:m,7:null,9:null,10:m,1:function(e,t,n,l){m(e,t,n,l),A(n,l,n,l)},6:null,8:null,0:null,3:function(e,t,n,l){m(e,t,n,l),v(n,l,n,l)},11:g,2:m,4:function(e,t,n,l){m(e,t,n,l),S(n,l,n,l)}}};function f(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(P.source.spatialReference===e&&P.dest.spatialReference===t)return P;const n=d(e,P.source),l=d(t,P.dest);return 0===n&&0===l?(0,c.aI)(e,t)?P.projector=g:P.projector=null:P.projector=p[n][l],P}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===i.FY.wkt?t.spatialReferenceId=6:e.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function g(e,t,n,l){e!==n&&(n[l++]=e[t++],n[l++]=e[t++],n[l]=e[t]??0)}function w(e,t,n,l){n[l]=b*(e[t]/L),n[l+1]=b*(T-2*Math.atan(Math.exp(-e[t+1]/L))),n[l+2]=e[t+2]??0}function v(e,t,n,r){!function(e,t,n,r,i){const s=.4999999*Math.PI,o=(0,l.qE)(Z*e[t+1],-s,s),a=Math.sin(o);n[r++]=Z*e[t]*i.radius,n[r++]=i.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]??0}(e,t,n,r,s.$O)}function y(e,t,n,l){n[l]=e[t]*k,n[l+1]=e[t+1]*k,n[l+2]=e[t+2]??0}function m(e,t,n,l){n[l]=e[t]*_,n[l+1]=e[t+1]*_,n[l+2]=e[t+2]??0}function M(e,t,n,l,r){const i=r+(e[t+2]??0),s=Z*e[t],o=Z*e[t+1],a=Math.cos(o)*i;n[l]=Math.cos(s)*a,n[l+1]=Math.sin(s)*a,n[l+2]=Math.sin(o)*i}function R(e,t,n,l){M(e,t,n,l,s.Sw.radius)}function x(e,t,n,l){M(e,t,n,l,s.sH.radius)}function A(e,t,n,l){M(e,t,n,l,s.$O.radius)}function j(e,t,n,r,i){const s=e[t],o=e[t+1],a=e[t+2]??0,u=Math.sqrt(s*s+o*o+a*a),c=(0,l.YN)(a/(0===u?1:u)),p=Math.atan2(o,s);n[r++]=b*p,n[r++]=b*c,n[r]=u-i}function I(e,t,n,l){j(e,t,n,l,s.Sw.radius)}function z(e,t,n,l){j(e,t,n,l,s.sH.radius)}function C(e,t,n,l){j(e,t,n,l,s.$O.radius)}function S(e,t,n,l){!function(e,t,n,l,r){const i=Z*e[t],s=Z*e[t+1],o=e[t+2]??0,a=Math.sin(s),u=Math.cos(s),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[l++]=(c+o)*u*Math.cos(i),n[l++]=(c+o)*u*Math.sin(i),n[l++]=(c*(1-r.eccentricitySquared)+o)*a}(e,t,n,l,s.$O)}function O(e,t,n,l){const r=u,i=e[t],o=e[t+1],a=e[t+2]??0;let c,p,f,h,d,g,w,v,y,m,M,R,x,A,j,I,z,C,S,O,P;c=Math.abs(a),p=i*i+o*o,f=Math.sqrt(p),h=p+a*a,d=Math.sqrt(h),O=Math.atan2(o,i),g=a*a/h,w=p/h,A=r.a2/d,j=r.a3-r.a4/d,w>.3?(v=c/d*(1+w*(r.a1+A+g*j)/d),S=Math.asin(v),m=v*v,y=Math.sqrt(1-m)):(y=f/d*(1-g*(r.a5-A-w*j)/d),S=Math.acos(y),m=1-y*y,v=Math.sqrt(m)),M=1-s.$O.eccentricitySquared*m,R=s.$O.radius/Math.sqrt(M),x=r.a6*R,A=f-R*y,j=c-x*v,z=y*A+v*j,I=y*j-v*A,C=I/(x/M+z),S+=C,P=z+I*C/2,a<0&&(S=-S),n[l++]=b*O,n[l++]=b*S,n[l]=P}const P={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:g},Z=(0,l.kU)(1),b=(0,l.KJ)(1),T=.5*Math.PI,L=s.$O.radius,k=L*Math.PI/180,_=180/(L*Math.PI)},72802:(e,t,n)=>{n.d(t,{U:()=>r});var l=n(19419);class r{constructor(e,t,n,r=(0,l.vt)()){this._level=e,this._row=t,this._col=n,this.extent=r}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new r(e.level,e.row,e.col,e.extent)}}},87045:(e,t,n)=>{n.d(t,{A:()=>m});var l,r=n(31635),i=n(66552),s=n(25482),o=n(86211),a=n(91429),u=n(56507),c=n(86738),p=n(16930),f=n(21325),h=n(28735),d=n(91806),g=n(72802),w=n(36005),v=n(43937);const y=new i.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let m=class extends s.o{static{l=this}static create(e={}){const{resolutionFactor:t=1,scales:n,size:r=256,spatialReference:i=p.A.WebMercator,numLODs:s=24}=e;if(!(0,f.fn)(i)){const e=[];if(n)for(let t=0;t<n.length;t++){const l=n[t];e.push(new d.A({level:t,scale:l,resolution:l}))}else{let t=5e-4;for(let n=s-1;n>=0;n--)e.unshift(new d.A({level:n,scale:t,resolution:t})),t*=2}return new l({dpi:96,lods:e,origin:new c.A(0,0,i),size:[r,r],spatialReference:i})}const a=(0,f.Vp)(i),u=e.origin?new c.A({x:e.origin.x,y:e.origin.y,spatialReference:i}):new c.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:i}:{x:0,y:0,spatialReference:i}),h=1/(39.37*(0,o.GA)(i)*96),g=[];if(n)for(let e=0;e<n.length;e++){const t=n[e],l=t*h;g.push(new d.A({level:e,scale:t,resolution:l}))}else{let e=(0,f.EA)(i)?512/r*591657527.5917094:256/r*591657527.591555;const n=Math.ceil(s/t);g.push(new d.A({level:0,scale:e,resolution:e*h}));for(let l=1;l<n;l++){const n=e/2**t,r=n*h;g.push(new d.A({level:l,scale:n,resolution:r})),e=n}}return new l({dpi:96,lods:g,origin:u,size:[r,r],spatialReference:i})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const n=(0,f.Vp)(e);return e.isWrappable&&!!n&&Math.abs(n.origin[0]-t.x)<=n.dx}return!1}readOrigin(e,t){return c.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,n=0;const l=[],r=this._levelToLOD={};e&&(t=-1/0,n=1/0,e.forEach(e=>{l.push(e.scale),t=e.scale>t?e.scale:t,n=e.scale<n?e.scale:n,r[e.level]=e})),this._set("scales",l),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const n=Math.floor(e),l=n+1;return t[n]/(t[n]/t[l])**(e-n)}scaleToZoom(e){const t=this.scales,n=t.length-1;let l=0;for(;l<n;l++){const n=t[l],r=t[l+1];if(n<=e)return l;if(r===e)return l+1;if(n>e&&r<e)return l+Math.log(n/e)/Math.log(n/r)}return l}tileAt(e,t,n,l){const r=this.lodAt(e);if(!r)return null;let i,s;if("number"==typeof t)i=t,s=n;else if((0,f.aI)(t.spatialReference,this.spatialReference))i=t.x,s=t.y,l=n;else{const e=(0,h.Cv)(t,this.spatialReference);if(null==e)return null;i=e.x,s=e.y,l=n}const o=r.resolution*this.size[0],a=r.resolution*this.size[1];return l??=new g.U(0,0,0),l.level=e,l.row=Math.floor((this.origin.y-s)/a+.001),l.col=Math.floor((i-this.origin.x)/o+.001),this.updateTileInfo(l),l}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let n=this.lodAt(e.level);if(!n&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(n=t)}if(!n)return!1;const l=e.level-n.level,r=n.resolution*this.size[0]/2**l,i=n.resolution*this.size[1]/2**l;return e.extent[0]=this.origin.x+e.col*r,e.extent[1]=this.origin.y-(e.row+1)*i,e.extent[2]=e.extent[0]+r,e.extent[3]=e.extent[1]+i,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const n=this.lodAt(t.level);if(null==n)return null;const{resolution:l}=n,r=l*this.size[0],i=l*this.size[1];return e[0]=this.origin.x+t.col*r,e[1]=this.origin.y-(t.row+1)*i,e[2]=e[0]+r,e[3]=e[1]+i,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return l.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const n=[],r=this.lods.length-t;for(let e=0;e<r;e++){const l=e+t,{scale:r,resolution:i}=l>=0?this.lods[l]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};n.push(new d.A({level:e,scale:r,resolution:i}))}return new l({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:n})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let n=0;n<e.length;n++){const l=e[n];this._upsampleLevels[l.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/l.resolution:0},t=l}}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"compressionQuality",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"dpi",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{read:y.read,write:y.write,origins:{"web-scene":{read:!1,write:!1}}}})],m.prototype,"format",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"isWrappable",null),(0,r.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],m.prototype,"origin",void 0),(0,r.Cg)([(0,w.w)("origin")],m.prototype,"readOrigin",null),(0,r.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],m.prototype,"lods",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"scales",void 0),(0,r.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],m.prototype,"size",void 0),(0,r.Cg)([(0,w.w)("size",["rows","cols"])],m.prototype,"readSize",null),(0,r.Cg)([(0,v.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],m.prototype,"writeSize",null),(0,r.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],m.prototype,"spatialReference",void 0),m=l=(0,r.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],m)},91218:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>W,initializeProjection:()=>F,isEqualBaseGCS:()=>K,isLoaded:()=>O,isLoadedOrLoad:()=>P,isLoadedOrLoadFor:()=>Z,load:()=>T,project:()=>L,projectAsync:()=>D,projectExtent:()=>te,projectMany:()=>k,projectMultipoint:()=>B,projectOrLoad:()=>G,projectOrLoadMany:()=>$,projectPoint:()=>U,projectPolygon:()=>X,projectPolyline:()=>Q,projectWithoutEngine:()=>J,requiresLoad:()=>b,test:()=>E,tryProject:()=>_,unload:()=>q});var l=n(49186),r=n(74887),i=n(62788),s=n(95488),o=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(91075),f=n(48526),h=n(86738),d=n(39829),g=n(82799),w=n(16930),v=n(159),y=n(9762),m=n(37539);function M(e,t,n,l,r,i){return R[0]=e,R[1]=t,R[2]=n,(0,y.projectBuffer)(R,l,0,r,i,0)}const R=(0,o.vt)();var x=n(21325);let A=null,j=null,I=null,z=null,C={};const S=new s.I;function O(){return!!(j?.isLoaded()&&I?.isLoaded()&&z?.isLoaded())}function P(){return!!O()||((0,i.gc)(S),T(),!1)}function Z(e,t){return!e||!t||W(e,t)||P()}function b(e,t){return!W(e,t)&&!O()}async function T(e){null==A&&(A=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(j=e,j.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(I=e,I.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(z=e,z.load()))])),await A,(0,r.Te)(e),S.notify()}function L(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),k(e,e[0].spatialReference,t,n)):((0,a.f)(e),k([e],e.spatialReference,t,n)[0])}function k(e,t,n,l){if(null==t||null==n)return e;if(W(t,n,l))return e.map(e=>J(e,t,n));if(null==l?.geographicTransformation&&(0,u.jA)(t))return k(e.map(e=>J(e,t,w.A.WGS84)),w.A.WGS84,n,{zConversionDisabled:l?.zConversionDisabled});if(null==l?.geographicTransformation&&(0,u.jA)(n))return k(e,t,w.A.WGS84).map(e=>J(e,w.A.WGS84,n));if(!O())throw new N;if(!l?.geographicTransformation)if(l?.extendedParams)l={...l,geographicTransformation:z.getTransformation(t,n,l.areaOfInterestExtent)||new v.A};else if(!l?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=C[e];r||(r=z.getTransformation(t,n)||new v.A,C[e]=r),l={geographicTransformation:r,zConversionDisabled:l?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?j.executeMany(e,n,l):I.executeMany(e,n,l)}function _(e,t,n){try{return L(e,t,n)}catch(e){return null}}function G(e,t){const n=$([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function $(e,t,n){if(!O())for(const n of e)if(null!=n&&!(0,x.aI)(n.spatialReference,t)&&(0,x.fn)(n.spatialReference)&&(0,x.fn)(t)&&!W(n.spatialReference,t))return(0,i.gc)(S),{pending:T(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,x.aI)(e.spatialReference,t)?e:(0,x.fn)(e.spatialReference)&&(0,x.fn)(t)?L(e,t,n):null)}}class N extends l.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function q(){A=null,j=null,I=null,z=null,C={}}const E={get loadPromise(){return A}};async function D(e,t,n){if((0,r.Te)(n),!e)return e;const l=$(Array.isArray(e)?e:[e],t,n);if(l.pending)return await l.pending,(0,r.Te)(n),D(e,t,n);const i=l.geometries??[];return Array.isArray(e)?i:i[0]}function W(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,x.aI)(e,t)||(0,x.fn)(e)&&(0,x.fn)(t)&&!!(0,m.jd)(e,t))}function K(e,t){if((0,x.aI)(e,t))return!0;if(!(0,x.fn)(e)||!(0,x.fn)(t))return!1;const n=(0,x.oT)(e)||(0,x.K8)(e)||(0,x.x1)(e),l=(0,x.oT)(t)||(0,x.K8)(t)||(0,x.x1)(t);return n&&l}async function F(e,t,n,l){if(O())return(0,r.NO)(l);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!W(t,n,r))return T(l)}else if(e&&t&&!W(e,t,n))return T(l);return(0,r.NO)(l)}function J(e,t,n){return e?"x"in e?V(e,t,new h.A,n,0):"xmin"in e?ne(e,t,new c.A,n,0):"rings"in e?ee(e,t,new d.A,n,0):"paths"in e?Y(e,t,new g.A,n,0):"points"in e?H(e,t,new f.A,n,0):null:null}function U(e,t,n=t.spatialReference,l=0){return null!=n&&null!=e.spatialReference&&null!=V(e,e.spatialReference,t,n,l)}function V(e,t,n,l,r){re[0]=e.x,re[1]=e.y;const i=e.z;return re[2]=void 0!==i?i:r,(0,y.projectBuffer)(re,t,0,re,l,0)?(n.x=re[0],n.y=re[1],n.spatialReference=l,void 0!==i||(0,u.xP)(l)?(n.z=re[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function B(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=H(e,e.spatialReference,t,n,l)}function H(e,t,n,l,r){const{points:i,hasZ:s,hasM:o}=e,a=[],c=i.length,p=[];for(const e of i)p.push(e[0],e[1],s?e[2]:r);if(!(0,y.projectBuffer)(p,t,0,p,l,0,c))return null;const f=s||(0,u.xP)(l);for(let e=0;e<c;++e){const t=3*e,n=p[t],l=p[t+1];f&&o?a.push([n,l,p[t+2],i[e][3]]):f?a.push([n,l,p[t+2]]):o?a.push([n,l,i[e][2]]):a.push([n,l])}return n.points=a,n.spatialReference=l,n.hasZ=s,n.hasM=o,n}function Q(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=Y(e,e.spatialReference,t,n,l)}function Y(e,t,n,l,r){const{paths:i,hasZ:s,hasM:o}=e,a=[];if(!le(i,s??!1,o??!1,t,a,l,r))return null;const c=s||(0,u.xP)(l);return n.paths=a,n.spatialReference=l,n.hasZ=c,n.hasM=o,n}function X(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ee(e,e.spatialReference,t,n,l)}function ee(e,t,n,l,r){const{rings:i,hasZ:s,hasM:o}=e,a=[];if(!le(i,s??!1,o??!1,t,a,l,r))return null;const c=s||(0,u.xP)(l);return n.rings=a,n.spatialReference=l,n.hasZ=c,n.hasM=o,n}function te(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ne(e,e.spatialReference,t,n,l)}function ne(e,t,n,l,r){const{xmin:i,ymin:s,xmax:o,ymax:a,hasZ:c,hasM:p}=e;if(!M(i,s,c?e.zmin:r,t,re,l))return null;const f=c||(0,u.xP)(l);return n.xmin=re[0],n.ymin=re[1],f&&(n.zmin=re[2]),M(o,a,c?e.zmax:r,t,re,l)?(n.xmax=re[0],n.ymax=re[1],f&&(n.zmax=re[2]),p&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=l,n):null}function le(e,t,n,l,r,i,s=0){const o=new Array;for(const n of e)for(const e of n)o.push(e[0],e[1],t?e[2]:s);if(!(0,y.projectBuffer)(o,l,0,o,i,0))return!1;let a=0;r.length=0;const c=t||(0,u.xP)(i);for(const t of e){const e=new Array;for(const l of t)c&&n?e.push([o[a++],o[a++],o[a++],l[3]]):c?e.push([o[a++],o[a++],o[a++]]):n?(e.push([o[a++],o[a++],l[2]]),a++):(e.push([o[a++],o[a++]]),a++);r.push(e)}return!0}const re=(0,o.vt)()},91806:(e,t,n)=>{n.d(t,{A:()=>a});var l,r=n(31635),i=n(25482),s=n(91429),o=n(56507);let a=class extends i.o{static{l=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new l({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,r.Cg)([(0,s.MZ)({type:o.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=l=(0,r.Cg)([(0,s.$K)("esri.layers.support.LOD")],a)},99157:(e,t,n)=>{n.d(t,{A:()=>o});var l,r=n(31635),i=n(69622),s=n(91429);let o=l=class extends i.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new l({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,s.MZ)()],o.prototype,"isInverse",void 0),(0,r.Cg)([(0,s.MZ)()],o.prototype,"wkt",void 0),(0,r.Cg)([(0,s.MZ)()],o.prototype,"wkid",void 0),o=l=(0,r.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformationStep")],o)}}]);
|