@arcgis/core 5.2.0-next.124 → 5.2.0-next.126
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/analysis/ElevationProfile/ElevationProfileDisplayUnits.d.ts +3 -2
- package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +1 -0
- package/arcade/functions/string.js +1 -1
- package/arcgisGlobal.d.ts +2 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/05afa8c2b5929ce0545a.js +1 -0
- package/assets/esri/core/workers/chunks/0a20f84b5f004a77a9f9.js +1 -0
- package/assets/esri/core/workers/chunks/{97cd4145c016cf379120.js → 0a2b7c691a577cb3d189.js} +1 -1
- package/assets/esri/core/workers/chunks/0ccd4200c5a2a5de6e16.js +1 -0
- package/assets/esri/core/workers/chunks/{064445e6f9512817ac87.js → 12b5a645c0987a0efe54.js} +2 -2
- package/assets/esri/core/workers/chunks/{bdf012e591a8476db467.js → 1406a884241809b62bff.js} +1 -1
- package/assets/esri/core/workers/chunks/168b45c5d8233f23793e.js +2 -0
- package/assets/esri/core/workers/chunks/17218d714cb07b607c2f.js +1 -0
- package/assets/esri/core/workers/chunks/1d040aa8951fff3141d9.js +1 -0
- package/assets/esri/core/workers/chunks/{ce08e3369641da0d7a27.js → 1dbb3e25e005a8220779.js} +2 -2
- package/assets/esri/core/workers/chunks/{c39ebd8d469f1e8bb61e.js → 25e212fe9a2ea37c9e81.js} +1 -1
- package/assets/esri/core/workers/chunks/{216d8cb86548e92a8196.js → 2e3fd81653dc0d86456c.js} +1 -1
- package/assets/esri/core/workers/chunks/30604a29df320d7a4c6b.js +1 -0
- package/assets/esri/core/workers/chunks/3a40146568e6dd0b1828.js +1 -0
- package/assets/esri/core/workers/chunks/3ef367c9b7bf1588307d.js +1 -0
- package/assets/esri/core/workers/chunks/4327d2c39a660bd89da7.js +1 -0
- package/assets/esri/core/workers/chunks/4678a8170d8a3ccd1a7b.js +1 -0
- package/assets/esri/core/workers/chunks/{45d87af48a21644590c2.js → 4716693eca44e8f89f5c.js} +1 -1
- package/assets/esri/core/workers/chunks/474d9541d387b31ad275.js +1 -0
- package/assets/esri/core/workers/chunks/{20e4277a4a6c57957202.js → 4d18451e0ea6ca54101a.js} +1 -1
- package/assets/esri/core/workers/chunks/{26bc509a031788bfa678.js → 4f464047c6f6c9486efd.js} +1 -1
- package/assets/esri/core/workers/chunks/{58528ccb7f72ae76d52b.js → 540f60e31b19d85e9371.js} +1 -1
- package/assets/esri/core/workers/chunks/{44857a76be2c0ac65bb9.js → 55a560fd872f7463b33d.js} +1 -1
- package/assets/esri/core/workers/chunks/56acda1eed3a013430e2.js +1 -0
- package/assets/esri/core/workers/chunks/56e97b98dcb8a3f2bcb7.js +1 -0
- package/assets/esri/core/workers/chunks/{eb7f45736c852725b0bb.js → 57ab87e70ef85b9405f9.js} +122 -122
- package/assets/esri/core/workers/chunks/{59cd139712d919e6a738.js → 5adf2792416b22cd602f.js} +1 -1
- package/assets/esri/core/workers/chunks/5fe5ef5ccf480634d159.js +1 -0
- package/assets/esri/core/workers/chunks/67678054342178b601cf.js +1 -0
- package/assets/esri/core/workers/chunks/67dcf9b873cb037b2647.js +1 -0
- package/assets/esri/core/workers/chunks/6c3535aa7250c08b9e5b.js +1 -0
- package/assets/esri/core/workers/chunks/6e8187a77846239ed112.js +2 -0
- package/assets/esri/core/workers/chunks/76548469fe1b9c3b2051.js +1 -0
- package/assets/esri/core/workers/chunks/{52744dfd430cd0c0edfb.js → 78abd6c42f39e6f6ffbb.js} +1 -1
- package/assets/esri/core/workers/chunks/{5993db944b9e7825e0bc.js → 7926faab76a721a2e1c4.js} +1 -1
- package/assets/esri/core/workers/chunks/7d6da4e89aa951e6523f.js +1 -0
- package/assets/esri/core/workers/chunks/7dd94567833386dc74de.js +1 -0
- package/assets/esri/core/workers/chunks/{dc0816f064be576a2fa6.js → 7fcee3a1b900ddc9a5e3.js} +1 -1
- package/assets/esri/core/workers/chunks/806f96ad09e882be41af.js +1 -0
- package/assets/esri/core/workers/chunks/8190fcb1dd10ad20feed.js +1 -0
- package/assets/esri/core/workers/chunks/84db05e872dbf35c80a2.js +1 -0
- package/assets/esri/core/workers/chunks/85739ed6af0f0a3cb302.js +1 -0
- package/assets/esri/core/workers/chunks/{b22de8bf4a4a739bc36d.js → 97602019a1ccad22a03a.js} +1 -1
- package/assets/esri/core/workers/chunks/9ca98fffd43e63d5ade3.js +1 -0
- package/assets/esri/core/workers/chunks/9d6a96e4c7ccedcb0c13.js +1 -0
- package/assets/esri/core/workers/chunks/9ec04faad97be55309b8.js +1 -0
- package/assets/esri/core/workers/chunks/a08385ebf1715414c1a6.js +1 -0
- package/assets/esri/core/workers/chunks/{e22a013ec38989caf9de.js → a790fc6b22acf651574b.js} +1 -1
- package/assets/esri/core/workers/chunks/{2f52ad525744b8793d49.js → a8258636096416c837a2.js} +1 -1
- package/assets/esri/core/workers/chunks/{770ca70d363184e39d60.js → ab8a1140bf31f46f8ebf.js} +1 -1
- package/assets/esri/core/workers/chunks/{813dd84933b407c8fe86.js → b34305474a861aaf6ccb.js} +1 -1
- package/assets/esri/core/workers/chunks/{dc923e50958b68a50014.js → b96358d475dc98034aa4.js} +1 -1
- package/assets/esri/core/workers/chunks/ba435cc73956d9c64a11.js +1 -0
- package/assets/esri/core/workers/chunks/c5b733c3a5b2680042a2.js +1 -0
- package/assets/esri/core/workers/chunks/{f0709c48daca93e759c8.js → c692e583e87af58f6d91.js} +1 -1
- package/assets/esri/core/workers/chunks/{39985c51465b79ff0910.js → c77496c350004ee66eb2.js} +1 -1
- package/assets/esri/core/workers/chunks/{9e5b30b907102bc0c201.js → cb7cb7d57c4e7f76600f.js} +1 -1
- package/assets/esri/core/workers/chunks/{58a17fb3c0dd07c63d57.js → cfaba0470619786e1ef8.js} +2 -2
- package/assets/esri/core/workers/chunks/d371d9279b30548efa02.js +1 -0
- package/assets/esri/core/workers/chunks/d5f0fed415b5b155d57c.js +1 -0
- package/assets/esri/core/workers/chunks/{d3d48401462ef3bf0ad9.js → d5f72670634e73c0b53a.js} +1 -1
- package/assets/esri/core/workers/chunks/d6e914f6ed45ea59034e.js +1 -0
- package/assets/esri/core/workers/chunks/{5afc12671a9a1bb6c56c.js → dc52e036547612949d32.js} +1 -1
- package/assets/esri/core/workers/chunks/e0894a308c84d5c158b0.js +1 -0
- package/assets/esri/core/workers/chunks/e1ae83ff3e0225708d4d.js +1 -0
- package/assets/esri/core/workers/chunks/e35eb93c0fb1f6de8db0.js +1 -0
- package/assets/esri/core/workers/chunks/{df79c00b5ddbef7148a0.js → eaa7cb3ffa8c11706a09.js} +1 -1
- package/assets/esri/core/workers/chunks/eebbc86a15ae3adb5f38.js +1 -0
- package/assets/esri/core/workers/chunks/{eb780f2dafa14f776166.js → f71ec8a260405ed07958.js} +1 -1
- package/assets/esri/core/workers/chunks/fdbda3d2afea25142b86.js +1 -0
- package/assets/esri/libs/pdfjs/pdf.worker.mjs +4 -63051
- package/assets/esri/themes/base/_FocusRegionOverlayItem.scss +18 -0
- package/assets/esri/themes/base/_View.scss +4 -0
- package/assets/esri/themes/base/_core.scss +1 -0
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +13 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.en.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.zh-TW.json +1 -1
- package/chunks/GaussianSplatColorComposition.glsl.js +2 -0
- package/chunks/GaussianSplatEmissionComposition.glsl.js +11 -0
- package/chunks/GlobalIllumination.glsl.js +9 -9
- package/chunks/GlobalIlluminationBlur.glsl.js +8 -8
- package/chunks/HeatmapDensity.glsl.js +5 -5
- package/chunks/Pattern.glsl.js +30 -30
- package/chunks/RibbonLine.glsl.js +19 -19
- package/chunks/earcut.js +1 -1
- package/chunks/portal.js +1 -1
- package/config.js +1 -1
- package/core/accessorSupport/types.d.ts +5 -1
- package/graphic/MapImageGraphicOrigin.js +1 -1
- package/graphic/TileGraphicOrigin.js +1 -1
- package/interfaces.d.ts +8 -0
- package/kernel.js +1 -1
- package/layers/OrientedImageryLayer.js +1 -1
- package/layers/ParquetLayer.d.ts +3 -2
- package/layers/ParquetLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +2 -2
- package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
- package/layers/geospatialPDF/LGIDictMapFrame.js +1 -1
- package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
- package/layers/geospatialPDF/geospatialPDFParserUtils.js +2 -0
- package/layers/geospatialPDF/projectionToWKTUtils.js +2 -0
- package/layers/geospatialPDF/renderExtentUtils.js +1 -1
- package/layers/geospatialPDF/sharedUtils.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/TemporalLayer.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
- package/layers/raster/types.d.ts +6 -0
- package/layers/support/TimeInfo.js +1 -1
- package/layers/support/TimeSeriesCalculation.d.ts +32 -0
- package/layers/support/TimeSeriesCalculation.js +2 -0
- package/layers/support/TimeSeriesInfo.d.ts +19 -0
- package/layers/support/TimeSeriesInfo.js +1 -1
- package/layers/support/commonProperties.js +1 -1
- package/layers/support/layersMapping.js +1 -1
- package/layers/support/timeSeriesUtils.d.ts +25 -1
- package/layers/support/timeSeriesUtils.js +1 -1
- package/layers/types.d.ts +1 -0
- package/package.json +2 -2
- package/popup/FeatureContentCollection.d.ts +12 -2
- package/popup/FeatureContentCollection.js +1 -1
- package/popup/types.d.ts +14 -3
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/sceneLayerItem.js +1 -1
- package/renderers/support/AuthoringInfo.d.ts +8 -1
- package/renderers/support/AuthoringInfo.js +1 -1
- package/renderers/support/AuthoringInfoVisualVariable.d.ts +8 -1
- package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
- package/rest/imageService/fetchRasterInfo.js +1 -1
- package/rest/knowledgeGraph/DataModel.js +1 -1
- package/smartMapping/renderers/color.d.ts +12 -0
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/opacity.d.ts +6 -0
- package/smartMapping/renderers/opacity.js +1 -1
- package/smartMapping/renderers/size.d.ts +12 -0
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/regenerateUtils.js +1 -1
- package/smartMapping/renderers/support/rendererUtils.js +1 -1
- package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
- package/smartMapping/renderers/type.d.ts +6 -0
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/renderers/univariateColorSize.d.ts +6 -0
- package/smartMapping/renderers/univariateColorSize.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/gfxUtils.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/time/timeZoneUtils.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +8 -0
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
- package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +8 -0
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
- package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +3 -2
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/Dimension/DimensionController.js +1 -1
- package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +3 -2
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +1 -0
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
- package/views/3d/input/handlers/DragRotate.js +1 -1
- package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
- package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
- package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
- package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +2 -0
- package/views/3d/navigation/Navigation3D.d.ts +7 -0
- package/views/3d/navigation/Navigation3D.js +1 -1
- package/views/3d/navigation/modes/navigationModeUtils.d.ts +32 -0
- package/views/3d/navigation/modes/navigationModeUtils.js +2 -0
- package/views/3d/state/Constraints.js +1 -1
- package/views/3d/state/controllers/GroundNavigationController.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/planarDistanceToGroundRatio.js +2 -0
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +13 -13
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +2 -2
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatColorComposition.glsl.js +2 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatColorCompositionTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatDepthPolicy.js +1 -1
- package/views/3d/webgl-engine/shaders/{GaussianSplatComposition.glsl.js → GaussianSplatEmissionComposition.glsl.js} +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatEmissionCompositionTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatTechnique.js +1 -1
- package/views/DOMContainer.d.ts +27 -0
- package/views/DOMContainer.js +1 -1
- package/views/PopupView.d.ts +1 -1
- package/views/View.d.ts +10 -1
- package/views/View.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
- package/views/analysis/LengthDimensionResult.d.ts +4 -1
- package/views/draw/support/managers/TooltipManager.js +1 -1
- package/views/input/types.d.ts +46 -0
- package/views/interactive/options/SnappingOptions.d.ts +4 -2
- package/views/interactive/options/SnappingOptions.js +1 -1
- package/views/interactive/options/ViewOptions.d.ts +18 -0
- package/views/interactive/options/bindViewToolOptions.js +2 -0
- package/views/interactive/snapping/SnappingManagerPool.js +1 -1
- package/views/interactive/snapping/allLayerSnapping.js +1 -1
- package/views/overlay/FocusRegionOverlayItem.js +2 -0
- package/views/selection/SelectionOperation.d.ts +27 -1
- package/views/selection/types.d.ts +8 -20
- package/views/webgl/renderState.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +1 -0
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
- package/widgets/AreaMeasurement2D.js +1 -1
- package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +1 -0
- package/widgets/BasemapLayerList.d.ts +1 -0
- package/widgets/BatchAttributeForm/expressions/types.d.ts +1 -0
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +2 -0
- package/widgets/BatchAttributeForm/types.d.ts +5 -1
- package/widgets/BatchAttributeForm.d.ts +1 -0
- package/widgets/Bookmarks/BookmarksViewModel.d.ts +1 -0
- package/widgets/Bookmarks.d.ts +1 -0
- package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +1 -0
- package/widgets/CatalogLayerList.d.ts +1 -0
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +1 -0
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
- package/widgets/DistanceMeasurement2D.js +1 -1
- package/widgets/Editor.d.ts +1 -0
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureForm.d.ts +1 -0
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +37 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.d.ts +26 -2
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.d.ts +12 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/FeatureTemplates.d.ts +1 -0
- package/widgets/Features/FeaturesViewModel.d.ts +1 -0
- package/widgets/Features.d.ts +2 -1
- package/widgets/HistogramRangeSlider.d.ts +1 -0
- package/widgets/Home/HomeViewModel.d.ts +1 -0
- package/widgets/Home.d.ts +1 -0
- package/widgets/LayerList/LayerListViewModel.d.ts +1 -0
- package/widgets/LayerList.d.ts +1 -0
- package/widgets/Locate/LocateViewModel.d.ts +1 -0
- package/widgets/Locate.d.ts +1 -0
- package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/components/Alert.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/NavigationManagerPanoramic.js +1 -1
- package/widgets/OrientedImageryViewer/types.d.ts +4 -1
- package/widgets/OrientedImageryViewer.d.ts +4 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Popup/types.d.ts +7 -0
- package/widgets/Popup.d.ts +1 -0
- package/widgets/Print/PrintViewModel.d.ts +1 -0
- package/widgets/Print.d.ts +1 -0
- package/widgets/Search.d.ts +1 -0
- package/widgets/Sketch.d.ts +1 -0
- package/widgets/Slider.d.ts +4 -0
- package/widgets/TimeSlider.d.ts +1 -0
- package/widgets/Track/TrackViewModel.d.ts +1 -0
- package/widgets/Track.d.ts +1 -0
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.d.ts +1 -0
- package/widgets/UtilityNetworkTrace.d.ts +1 -0
- package/widgets/ValuePicker/types.d.ts +1 -0
- package/widgets/ValuePicker.d.ts +1 -0
- package/widgets/smartMapping/SmartMappingSliderBase.d.ts +1 -0
- package/widgets/support/SelectionList/types.d.ts +2 -0
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.d.ts +2 -1
- package/assets/esri/core/workers/chunks/0148cb611bf7c8c5fe8a.js +0 -1
- package/assets/esri/core/workers/chunks/033debcbf6b3683dc4fe.js +0 -2
- package/assets/esri/core/workers/chunks/0acc754907395e83bbc6.js +0 -1
- package/assets/esri/core/workers/chunks/1c38ce72160d5a4e4b3d.js +0 -1
- package/assets/esri/core/workers/chunks/1e46703cb566c25458ad.js +0 -1
- package/assets/esri/core/workers/chunks/23279303cd7698314c56.js +0 -1
- package/assets/esri/core/workers/chunks/25c90092def215949db9.js +0 -1
- package/assets/esri/core/workers/chunks/29ae19206bbeb480be0f.js +0 -1
- package/assets/esri/core/workers/chunks/2f829321bfbd3bacd64f.js +0 -1
- package/assets/esri/core/workers/chunks/38890ac5917942374ab8.js +0 -1
- package/assets/esri/core/workers/chunks/463d69f596d1d34ef275.js +0 -2
- package/assets/esri/core/workers/chunks/475906b079f4f1ddacf2.js +0 -1
- package/assets/esri/core/workers/chunks/49affbed22e201f7c32b.js +0 -1
- package/assets/esri/core/workers/chunks/4c4ba466e23159991322.js +0 -1
- package/assets/esri/core/workers/chunks/4f58e0322707f63f5bf2.js +0 -1
- package/assets/esri/core/workers/chunks/606ac9358f508bda94f2.js +0 -1
- package/assets/esri/core/workers/chunks/724ea2e2843e6dac0a90.js +0 -1
- package/assets/esri/core/workers/chunks/7285a37cd5359aa4bac5.js +0 -1
- package/assets/esri/core/workers/chunks/753d1ff177ecee8e2377.js +0 -1
- package/assets/esri/core/workers/chunks/781fa83e8063b8f685dc.js +0 -1
- package/assets/esri/core/workers/chunks/78c1b75b1a8937eaa3cd.js +0 -1
- package/assets/esri/core/workers/chunks/7ff536284942c5284a16.js +0 -1
- package/assets/esri/core/workers/chunks/83c7c4218bc6ba2f16ee.js +0 -1
- package/assets/esri/core/workers/chunks/8984d02c0ce828fd223a.js +0 -1
- package/assets/esri/core/workers/chunks/8e102a2e134ce6ce0724.js +0 -1
- package/assets/esri/core/workers/chunks/92c852700ad1006f1e76.js +0 -1
- package/assets/esri/core/workers/chunks/9af36ee6a0df224859bc.js +0 -1
- package/assets/esri/core/workers/chunks/a3ab53b534e2872131be.js +0 -1
- package/assets/esri/core/workers/chunks/ac7af417ebf7721d7400.js +0 -1
- package/assets/esri/core/workers/chunks/aed479c14d93955f4798.js +0 -1
- package/assets/esri/core/workers/chunks/bb5ed2a796a45c41b0b4.js +0 -1
- package/assets/esri/core/workers/chunks/be52c319a0a81ce1ba36.js +0 -1
- package/assets/esri/core/workers/chunks/c0ec87800faf99cbd8bd.js +0 -1
- package/assets/esri/core/workers/chunks/c3008b20cb5fd38bd900.js +0 -1
- package/assets/esri/core/workers/chunks/ca5a4f62b09cc8579dc0.js +0 -1
- package/assets/esri/core/workers/chunks/d090baaa974e1e83fa44.js +0 -1
- package/assets/esri/core/workers/chunks/d25210574168ead2f813.js +0 -1
- package/assets/esri/core/workers/chunks/e4e1db4e9e5f13167401.js +0 -1
- package/assets/esri/core/workers/chunks/e9f8325a4cf89ae816cc.js +0 -1
- package/assets/esri/core/workers/chunks/ed7d4e8725aaa0ca4589.js +0 -1
- package/chunks/GaussianSplatComposition.glsl.js +0 -22
- package/layers/geospatialPDF/GeospatialPDFParserUtils.js +0 -2
- package/layers/geospatialPDF/Projection.js +0 -2
- package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechniqueConfiguration.js +0 -2
- /package/assets/esri/core/workers/chunks/{064445e6f9512817ac87.js.LICENSE.txt → 12b5a645c0987a0efe54.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{033debcbf6b3683dc4fe.js.LICENSE.txt → 168b45c5d8233f23793e.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{463d69f596d1d34ef275.js.LICENSE.txt → 1dbb3e25e005a8220779.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ce08e3369641da0d7a27.js.LICENSE.txt → 6e8187a77846239ed112.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{58a17fb3c0dd07c63d57.js.LICENSE.txt → cfaba0470619786e1ef8.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[118],{83349(t,e,n){n.d(e,{e:()=>i});const r=new Set;let o=!1;function i(t,e,n=2){const o=e&&e.length,i=o?e[0]*n:t.length;r.size&&r.clear();let a=s(t,0,i,n,!0);const u=[];if(!a||a.next===a.prev)return u;let c=0,f=0,p=0;if(o&&(a=g(t,e,a,n)),t.length>80*n){c=t[0],f=t[1];let e=c,r=f;for(let o=n;o<i;o+=n){const n=t[o],i=t[o+1];n<c&&(c=n),i<f&&(f=i),n>e&&(e=n),i>r&&(r=i)}p=Math.max(e-c,r-f),p=0!==p?32767/p:0}return l(a,u,c,f,p),u}function s(t,e,n,r,o){let i=null;if(o===k(t,e,n,r)>0)for(let o=e;o<n;o+=r)i=$(o/r|0,t[o],t[o+1],i);else for(let o=n-r;o>=e;o-=r)i=$(o/r|0,t[o],t[o+1],i);return i&&O(i,i.next)&&(D(i),i=i.next),i}function a(t,e=t){const n=e===t;let i,s=t;do{i=!1,s===s.next||0!==r.size&&r.has(s)||!O(s,s.next)&&0!==F(s.prev,s,s.next)?(n||s!==e)&&(s=s.next,i=!n):((n||s===e)&&(e=s.prev),o=!0,D(s),s=s.prev,i=!0)}while(i||s!==e);return e}function l(t,e,n,r,i){i&&function(t,e,n,r){let o=t,i=0;do{o.z=_(o.x,o.y,e,n,r),T[i++]=o,o=o.next}while(o!==t);!function(t){if(t<=32)for(let e=1;e<t;e++){const t=T[e],n=t.z;let r=e-1;for(;r>=0&&T[r].z>n;)T[r+1]=T[r],r--;T[r+1]=t}else{S.length<t&&(S=new Uint32Array(t),E=new Uint32Array(t),R=new Array(t));for(let e=0;e<t;e++)S[e]=T[e].z;U(t,T,S,R,E,0),U(t,R,E,T,S,8),U(t,T,S,R,E,16),U(t,R,E,T,S,24)}}(i);let s=null;for(let t=0;t<i;t++){const e=T[t];e.prevZ=s,s&&(s.nextZ=e),s=e}s.nextZ=null,T.fill(null,0,i),R.fill(null,0,i)}(t,n,r,i);let s=t,l=!1;for(;t.prev!==t.next;){const h=t.prev,g=t.next;if(F(h,t,g)<0&&(i?c(t,n,r,i):u(t)))e.push(h.i,t.i,g.i),D(t),t=g,s=g;else if((t=g)===s){if(o=!1,t=a(t),o){s=t;continue}if(!l){s=t=f(t,e),l=!0;continue}p(t,e,n,r,i);break}}}function u(t){const e=t.prev,n=t,r=t.next,o=e.x,i=n.x,s=r.x,a=e.y,l=n.y,u=r.y,c=Math.min(o,i,s),f=Math.min(a,l,u),p=Math.max(o,i,s),h=Math.max(a,l,u);let g=r.next;for(;g!==e;){if(g.x>=c&&g.x<=p&&g.y>=f&&g.y<=h&&(o!==g.x||a!==g.y)&&N(o,a,i,l,s,u,g.x,g.y)&&F(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function c(t,e,n,r){const o=t.prev,i=t,s=t.next,a=o.x,l=i.x,u=s.x,c=o.y,f=i.y,p=s.y,h=Math.min(a,l,u),g=Math.min(c,f,p),d=Math.max(a,l,u),y=Math.max(c,f,p),m=_(h,g,e,n,r),x=_(d,y,e,n,r);let v=t.prevZ;for(;v&&v.z>=m;){if(v.x>=h&&v.x<=d&&v.y>=g&&v.y<=y&&v!==s&&(a!==v.x||c!==v.y)&&N(a,c,l,f,u,p,v.x,v.y)&&F(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let w=t.nextZ;for(;w&&w.z<=x;){if(w.x>=h&&w.x<=d&&w.y>=g&&w.y<=y&&w!==s&&(a!==w.x||c!==w.y)&&N(a,c,l,f,u,p,w.x,w.y)&&F(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function f(t,e){let n=t,r=!1;do{const o=n.prev,i=n.next.next;j(o,n,n.next,i,!1)&&P(o,i)&&P(i,o)&&(e.push(o.i,n.i,i.i),D(n),D(n.next),n=t=i,r=!0),n=n.next}while(n!==t);return r?a(n):n}function p(t,e,n,r,o){let i=t;do{let t=i.next.next;for(;t!==i.prev;){if(i.i!==t.i&&Z(i,t)){let s=z(i,t);return i=a(i,i.next),s=a(s,s.next),l(i,e,n,r,o),void l(s,e,n,r,o)}t=t.next}i=i.next}while(i!==t)}let h=!1;function g(t,e,n,o){const i=[];for(let n=0,a=e.length;n<a;n++){const l=s(t,e[n]*o,n<a-1?e[n+1]*o:t.length,o,!1);l===l.next&&r.add(l),i.push(I(l))}i.sort(d),function(t,e){const n=Math.ceil((t+2*e)/16)+e+2;m.length<4*n&&(m=new Float64Array(4*n)),x=0}(t.length/o,e.length),A(n,n),h=!0;for(let t=0;t<i.length;t++)n=y(i[t],n);return h=!1,a(n)}function d(t,e){return t.x-e.x||t.y-e.y||(t.next.y-t.y)/(t.next.x-t.x)-(e.next.y-e.y)/(e.next.x-e.x)}function y(t,e){const n=function(t,e){let n=e;const r=t.x,o=t.y;let i,s=-1/0;if(O(t,n))return n;for(let e=0,a=0;e<x;e++,a+=4){if(o<m[a+1]||o>m[a+3]||m[a]>r||m[a+2]<=s)continue;const l=b(e);n=M(e);do{if(n.prev.next===n){if(O(t,n.next))return n.next;if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){const t=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=r&&t>s&&(s=t,i=n.x<n.next.x?n:n.next,t===r))return i}}n=n.next}while(n!==l)}if(!i)return null;const a=i.x,l=i.y,u=Math.min(o,l),c=Math.max(o,l);let f=1/0;for(let e=0,p=0;e<x;e++,p+=4){if(m[p+2]<a||m[p]>r||m[p+3]<u||m[p+1]>c)continue;const h=b(e);n=M(e);do{if(n.prev.next===n&&r>=n.x&&n.x>=a&&r!==n.x&&N(o<l?r:s,o,a,l,o<l?s:r,o,n.x,n.y)){const e=Math.abs(o-n.y)/(r-n.x);(P(n,t)||n.y===o&&n.next.y===o&&n.next.x>r)&&(e<f||e===f&&(n.x>i.x||n.x===i.x&&C(i,n)))&&(i=n,f=e)}n=n.next}while(n!==h)}return i}(t,e);if(!n)return e;const r=z(n,t);return A(n,r.next.next),a(r,r.next),a(n,n.next)}let m=new Float64Array(0),x=0;const v=[],w=[];function A(t,e){let n=t;do{const t=x++;v[t]=n;let r=1/0,o=1/0,i=-1/0,s=-1/0,a=0;do{const e=n.next;n.z=t,n.x<r&&(r=n.x),n.x>i&&(i=n.x),n.y<o&&(o=n.y),n.y>s&&(s=n.y),e.x<r&&(r=e.x),e.x>i&&(i=e.x),e.y<o&&(o=e.y),e.y>s&&(s=e.y),n=e}while(++a<16&&n!==e);w[t]=n;const l=4*t;m[l]=r,m[l+1]=o,m[l+2]=i,m[l+3]=s}while(n!==e)}function b(t){let e=w[t];for(;e.prev.next!==e;)e=e.next;return w[t]=e,e}function M(t){let e=v[t];for(;e.prev.next!==e;)e=e.next;return v[t]=e,e}function C(t,e){return F(t.prev,t,e.prev)<0&&F(e.next,t,t.next)<0}const T=[];let R=[],S=new Uint32Array(0),E=new Uint32Array(0);const L=new Uint32Array(256);function U(t,e,n,r,o,i){L.fill(0);for(let e=0;e<t;e++)L[n[e]>>>i&255]++;let s=0;for(let t=0;t<256;t++){const e=L[t];L[t]=s,s+=e}for(let s=0;s<t;s++){const t=n[s],a=L[t>>>i&255]++;r[a]=e[s],o[a]=t}}function _(t,e,n,r,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function I(t){let e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function N(t,e,n,r,o,i,s,a){return(o-s)*(e-a)>=(t-s)*(i-a)&&(t-s)*(r-a)>=(n-s)*(e-a)&&(n-s)*(i-a)>=(o-s)*(r-a)}function Z(t,e){const n=O(t,e)&&F(t.prev,t,t.next)>0&&F(e.prev,e,e.next)>0;return t.next.i!==e.i&&(n||P(t,e)&&P(e,t)&&(0!==F(t.prev,t,e.prev)||0!==F(t,e.prev,e)))&&!function(t,e){const n=Math.min(t.x,e.x),r=Math.max(t.x,e.x),o=Math.min(t.y,e.y),i=Math.max(t.y,e.y);let s=t;do{const a=s.next;if(s.x>r&&a.x>r||s.x<n&&a.x<n||s.y>i&&a.y>i||s.y<o&&a.y<o)s=a;else{if(s.i!==t.i&&a.i!==t.i&&s.i!==e.i&&a.i!==e.i&&j(s,a,t,e))return!0;s=a}}while(s!==t);return!1}(t,e)&&(n||function(t,e){let n=t,r=!1;const o=(t.x+e.x)/2,i=(t.y+e.y)/2;do{const t=n.next;n.y>i!=t.y>i&&o<(t.x-n.x)*(i-n.y)/(t.y-n.y)+n.x&&(r=!r),n=t}while(n!==t);return r}(t,e))}function F(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function O(t,e){return t.x===e.x&&t.y===e.y}function j(t,e,n,r,o=!0){const i=F(t,e,n),s=F(t,e,r),a=F(n,r,t),l=F(n,r,e);return(i>0&&s<0||i<0&&s>0)&&(a>0&&l<0||a<0&&l>0)||!!o&&(!(0!==i||!B(t,n,e))||!(0!==s||!B(t,r,e))||!(0!==a||!B(n,t,r))||!(0!==l||!B(n,e,r)))}function B(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function P(t,e){return F(t.prev,t,t.next)<0?F(t,e,t.next)>=0&&F(t,t.prev,e)>=0:F(t,e,t.prev)<0||F(t,t.next,e)<0}function z(t,e){const n=H(t.i,t.x,t.y),r=H(e.i,e.x,e.y),o=t.next,i=e.prev;return t.next=e,e.prev=t,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function $(t,e,n,r){const o=H(t,e,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function D(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),h&&function(t,e){const n=4*t.z;e.x<m[n]&&(m[n]=e.x),e.y<m[n+1]&&(m[n+1]=e.y),e.x>m[n+2]&&(m[n+2]=e.x),e.y>m[n+3]&&(m[n+3]=e.y)}(t.prev,t.next)}function H(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function k(t,e,n,r){let o=0;for(let i=e,s=n-r;i<n;i+=r)o+=(t[s]-t[i])*(t[i+1]+t[s+1]),s=i;return o}let G,K,V,Y,q,W=0,X=0;function J(t,e,n,r,o,i){return(n-t)*(i-e)-(r-e)*(o-t)}function Q(t,e,n,r,o,i,s,a){const l=t-s,u=e-a,c=n-s,f=r-a,p=o-s,h=i-a,g=l*l+u*u,d=c*c+f*f,y=p*p+h*h,m=g+d+y;return l*(f*y-d*h)-u*(c*y-d*p)+g*(c*h-f*p)<=1e-13*m*m}function tt(t){return t-t%3+(t+1)%3}i.deviation=function(t,e,n,r){const o=e&&e.length,i=o?e[0]*n:t.length;let s=Math.abs(k(t,0,i,n));if(o)for(let r=0,o=e.length;r<o;r++){const i=e[r]*n,a=r<o-1?e[r+1]*n:t.length;s-=Math.abs(k(t,i,a,n))}let a=0;for(let e=0;e<r.length;e+=3){const o=r[e]*n,i=r[e+1]*n,s=r[e+2]*n;a+=Math.abs((t[o]-t[s])*(t[i+1]-t[o+1])-(t[o]-t[i])*(t[s+1]-t[o+1]))}return 0===s&&0===a?0:Math.abs((a-s)/s)},i.flatten=function(t){const e=[],n=[],r=t[0][0].length;let o=0,i=0;for(const s of t){for(const t of s)for(let n=0;n<r;n++)e.push(t[n]);i&&(o+=i,n.push(o)),i=s.length}return{vertices:e,holes:n,dimensions:r}},i.refine=function(t,e,n=2){const r=t,o=r.length;if(o<6)return;(function(t){(!G||G.length<t)&&(G=new Int32Array(t)),(!K||K.length<t)&&(K=new Int32Array(t)),(!q||q.length<t)&&(q=new Uint8Array(t));let e=1;for(;e<4*t;)e<<=1;(!V||V.length<e)&&(V=new Int32Array(e),Y=new Uint32Array(e)),W=e-1})(o),X++,K.fill(-1,0,o);let i=0;for(let t=0;t<o;t++){const e=r[t],n=r[tt(t)],o=e<n?e:n,s=e<n?n:e;let a=(Math.imul(o,2654435761)^Math.imul(s,2246822507))&W;for(;Y[a]===X;){const e=V[a];if(-1!==e){const n=r[e],l=r[tt(e)];if(n===o&&l===s||n===s&&l===o){K[t]=e,K[e]=t,V[a]=-1,q[e]=1,G[i++]=e;break}}a=a+1&W}Y[a]!==X&&(V[a]=t,Y[a]=X)}for(;i>0;){const t=G[--i];q[t]=0;const o=K[t];if(-1===o)continue;const s=t-t%3,a=o-o%3,l=s+(t+2)%3,u=s+(t+1)%3,c=a+(o+2)%3,f=a+(o+1)%3,p=r[l],h=r[t],g=r[u],d=r[c],y=e[p*n],m=e[p*n+1],x=e[h*n],v=e[h*n+1],w=e[g*n],A=e[g*n+1],b=e[d*n],M=e[d*n+1];if(!Q(y,m,x,v,w,A,b,M)&&J(y,m,x,v,b,M)>0&&J(y,m,b,M,w,A)>0){r[t]=d,r[o]=p;const e=K[c],n=K[l];K[t]=e,-1!==e&&(K[e]=t),K[o]=n,-1!==n&&(K[n]=o),K[l]=c,K[c]=l,-1!==e&&0===q[t]&&(q[t]=1,G[i++]=t),-1!==n&&0===q[o]&&(q[o]=1,G[i++]=o),-1!==K[u]&&0===q[u]&&(q[u]=1,G[i++]=u),-1!==K[f]&&0===q[f]&&(q[f]=1,G[i++]=f)}}}},21287(t,e,n){n.d(e,{M5:()=>f,eV:()=>c});var r=n(56507),o=n(49186),i=n(17676),s=n(84952),a=n(26306);let l=null,u=!0;function c(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(t,e,n)}catch(t){u=!1}const o=function(t,e,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(t,e)}(e,n,r);return o.data.set(t,0),o}async function f(t,e){const{arrayBuffer:l,mediaType:u}=await async function(t,e){const n=(0,s.r$)(t);if(n?.isBase64)return{arrayBuffer:(0,a.M)(n.data),mediaType:n.mediaType};const o=await(0,r.A)(t,{responseType:"array-buffer",...e});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(t,e),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:t,parseGif:r}=await n.e(820).then(()=>n(10820));if(t(l))return r(l,e)}if(c){const{isAnimatedPNG:t,parseApng:r}=await n.e(2390).then(()=>n(22390));if(t(l))return r(l,e)}return async function(t,e){const n=window.URL.createObjectURL(t);try{const{data:t}=await(0,r.A)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,i.zf)(t))throw new o.A("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),e)}},83300(t,e,n){n.r(e),n.d(e,{default:()=>Lt});var r=n(32198),o=n(69540),i=n(92474),s=n(53966),a=n(61893),l=n(17676),u=n(36708),c=n(91429),f=n(51850),p=n(91075),h=n(86738),g=n(39829),d=n(70328),y=n(24770),m=n(16939),x=n(49186);const v="Expected location to be a Point instance";class w extends x.A{constructor(){super("invalid-input:location",v)}}var A=n(95696),b=n(18251),M=n(73836),C=n(1193),T=n(27615),R=n(35522),S=n(65806);function E(t,e){switch(t.type){case"georeferenced":return e.isGeographic;case"local":return e.isGeographic||e.isWebMercator}}var L=n(22141),U=n(72258);const _=()=>s.A.getLogger("esri.geometry.support.meshUtils.centerAt");const I=(0,f.vt)(),N=(0,f.vt)(),Z=(0,f.vt)();var F=n(9093),O=n(5443),j=n(99917),B=n(98764),P=n(48353),z=n(9762),$=n(4197),D=n(73354);const H=(0,F.vt)(),k=(0,$.jh)(24);var G=n(84952);function K(t){const e=(0,G.nM)(t.url);return n=>{const r=(0,G.V1)(n,e,e),o=r?r.replace(/^ *\.\//,""):null;return(o?t.files.get(o):null)??n}}async function V(t,e){switch(t.type){case"client":return Array.isArray(t.files)?function(t){if(!t.length)throw new x.A("mesh-load-external:missing-assets","There must be at least one file to load");return tt(t.map(t=>({name:t.name,mimeType:t.type,source:Y(t)})))}(t.files):Y(t.files);case"service":return async function(t,e){if(!t.length)throw new x.A("mesh-load-external:missing-assets","There must be at least one file to load");const n=await(0,l.nA)(t.map(async t=>{const n=await async function(t,e){const{parts:n,assetMimeType:r,assetName:o}=t;if(1===n.length)return new et(n[0].partUrl);const i=await t.toBlob(e);return(0,l.Te)(e),et.fromBlob(i,nt(o,r))}(t);return(0,l.Te)(e),{name:t.assetName,mimeType:t.assetMimeType,source:n}}));if((0,l.G4)(e))throw n.forEach(t=>t.source.dispose()),(0,l.NK)();return tt(n)}(t.assets,e);default:throw new x.A("mesh-load-external:invalid-source","Invalid source type")}}function Y(t){return et.fromBlob(t,nt(t.name,t.type))}const q=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,X=/\.gltf$/i,J=/\.glb$/i;function Q({mimeType:t,source:e,name:n}){return q.test(t)||X.test(n)?{url:e.url,type:"gltf"}:W.test(t)||J.test(n)?{url:e.url,type:"glb"}:null}function tt(t){const e=new Map;let n=null,r=null;for(const o of t){const{source:t,name:i}=o;n??=Q(o),"ESRI3DO_NORM.glb"===i&&(r=Q(o)),e.set(i,t.url),t.files.forEach((t,n)=>e.set(n,t))}const o=r??n;if(null==o)throw new x.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new et(o.url,()=>t.forEach(({source:t})=>t.dispose()),e,o.type)}class et{constructor(t,e=()=>{},n=new Map,r){this.url=t,this.dispose=e,this.files=n,this.type=r}static fromBlob(t,e){const n=URL.createObjectURL(t);return new et(n,()=>URL.revokeObjectURL(n),void 0,e)}}function nt(t,e){return q.test(e)||X.test(t)?"gltf":W.test(e)||X.test(t)?"glb":void 0}var rt=n(66895),ot=n(29461),it=n(15070),st=n(77690),at=n(29242),lt=n(58083),ut=n(67026),ct=n(82534);const ft=()=>s.A.getLogger("esri.geometry.support.meshUtils.rotate");function pt(t,e,n,r=f.uY){if(null!=t){(0,lt.$0)(yt,(0,y.$I)(e),(0,y.yo)(e));for(let e=0;e<t.length;e+=n){for(let n=0;n<3;n++)ht[n]=t[e+n]-r[n];(0,R.Z0)(ht,ht,yt);for(let n=0;n<3;n++)t[e+n]=ht[n]+r[n]}}}const ht=(0,f.vt)(),gt=(0,F.vt)(),dt=(0,y.vt)(),yt=(0,F.vt)(),mt=(0,at.vt)(),xt=(0,f.vt)(),vt=(0,ct.vt)(),wt=()=>s.A.getLogger("esri.geometry.support.meshUtils.scale");function At(t,e,n=f.uY){if(t)for(let r=0;r<t.length;r+=3){for(let e=0;e<3;e++)bt[e]=t[r+e]-n[e];(0,R.hs)(bt,bt,e);for(let e=0;e<3;e++)t[r+e]=bt[e]+n[e]}}const bt=(0,f.vt)(),Mt=(0,f.vt)(),Ct=(0,F.vt)(),Tt=(0,f.vt)();var Rt,St=n(41618);const Et={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:A.A,local:b.A}};let Lt=Rt=class extends((0,o.OU)((0,i.WV)((0,a.g)(p.A)))){constructor(t){super(t),this.components=null,this.vertexSpace=new A.A,this.transform=null,this.metadata=new ot.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new C.default,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,u.wB)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(t=>t.clone())}),()=>this._clearSources(),{once:!0,sync:!0}))}).catch(()=>{})}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){const{spatialReference:t,vertexSpace:e}=this,n=this;return function(t){const{spatialReference:e,vertexSpace:n,untransformedBounds:r}=t,o=(0,d.gE)(r,k);if((0,T.Hq)(n)&&t.transform&&(0,D.t)(o,o,t.transform.localMatrix),"georeferenced"===n.type){const t=n.origin;return t&&(0,D.a)(o,o,t),(0,d.w1)((0,d.vY)(o),e)}const i=(0,B.lO)(e),s=n.origin;if(!(0,j.canProjectWithoutEngine)(i,e)){const[t,n,r]=s;return new O.A({xmin:t,ymin:n,zmin:r,xmax:t,ymax:n,zmax:r,spatialReference:e})}return(0,P.l)(e,s,H,i),(0,D.t)(o,o,H),(0,z.projectBuffer)(o,i,0,o,e,0),(0,d.w1)((0,d.vY)(o),e)}({get transform(){return n.transform},vertexSpace:e,spatialReference:t,untransformedBounds:this._untransformedBounds})}get _untransformedBounds(){const{vertexAttributes:{position:t},components:e}=this;return 0===t.length||0===e?.length?(0,d.vt)(d.v_):(0,d.vY)(t)}get origin(){const t=(0,T.MW)(this.vertexSpace,this.spatialReference);if(null!=t)return t;const{center:e,zmin:n}=this._transformedExtent;return new h.A({x:e.x,y:e.y,z:n,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(t){this._checkIfLoaded("addComponent()")&&(this.components||(this.components=[]),this.components.push(m.default.from(t)),this.notifyChange("components"))}removeComponent(t){if(this._checkIfLoaded("removeComponent()")){if(this.components){const e=this.components.indexOf(t);if(-1!==e)return this.components.splice(e,1),void this.notifyChange("components")}s.A.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}}rotate(t,e,n,r){return(0,y.AU)(t,e,n,Ut),function(t,e,n){if(!t.vertexAttributes?.position||0===e[3])return;const{spatialReference:r,vertexSpace:o}=t,i=n?.origin??t.origin;(0,T.CK)(t)?function(t,e,n){t.transform??=new M.A;const{vertexSpace:r,transform:o,spatialReference:i}=t,[s,a,l]=r.origin,u=new h.A({x:s,y:a,z:l,spatialReference:i}),c=ht;if(u.equals(n))(0,R.hZ)(c,0,0,0);else if(!(0,U.p5)(c,n,t))return void(0,L.CN)(ft(),n.spatialReference,i,L.JP);(0,ut.x8)(vt,(0,y.yo)(e),(0,y.$I)(e));const p=(0,lt.O7)(gt,vt,f.uY,f.Un,c),{localMatrix:g}=o,d=(0,lt.lw)(gt,p,g);o.scale=(0,lt.X_)((0,f.vt)(),d),(0,lt.hs)(d,d,(0,R.DI)(ht,o.scale));const m=o.rotationAxis;o.rotation=(0,y.ui)(d),0===o.rotationAngle&&(o.rotationAxis=m),o.translation=(0,lt.sC)((0,f.vt)(),d)}(t,e,i):E(o,r)?function(t,e,n){const r=t.spatialReference,o=(0,B.lO)(r),i=xt;if(!(0,S.g)(n,i,o)&&((0,L.CN)(ft(),n.spatialReference,o,"Falling back to mesh origin"),!(0,S.g)(t.origin,i,o)))return void(0,L.CN)(ft(),t.origin.spatialReference,o);const s=t.vertexAttributes.position,a=t.vertexAttributes.normal,l=t.vertexAttributes.tangent,u=new Float64Array(s.length),c=null!=a?new Float32Array(a.length):null,f=null!=l?new Float32Array(l.length):null;(0,P.l)(o,i,yt,o),(0,st.z0)(mt,yt);const p=dt;(0,R.ei)((0,y.yo)(dt),(0,y.yo)(e),mt),p[3]=e[3],!(0,L.gr)(s,r,u,o)||null!=a&&null!=c&&!(0,L.X4)(a,s,r,u,o,c)||null!=l&&null!=f&&!(0,L.xA)(l,s,r,u,o,f)?(0,L.CN)(ft(),r,o):(pt(u,p,3,i),!(0,L.$5)(u,o,s,r)||null!=a&&null!=c&&(pt(c,p,3),!(0,L.si)(c,s,r,u,o,a))||null!=l&&null!=f&&(pt(f,p,4),!(0,L.Mv)(f,s,r,u,o,l))?(0,L.CN)(ft(),o,r):t.vertexAttributesChanged())}(t,e,i):function(t,e,n){const r=xt;if(!(0,S.g)(n,r,t.spatialReference)){const e=t.origin;return r[0]=e.x,r[1]=e.y,r[2]=e.z,void(0,L.CN)(ft(),n.spatialReference,t.spatialReference,L.JP)}pt(t.vertexAttributes.position,e,3,r),pt(t.vertexAttributes.normal,e,3),pt(t.vertexAttributes.tangent,e,4),t.vertexAttributesChanged()}(t,e,i)}(this,Ut,r),this}offset(t,e,n){if(!this._checkIfLoaded("offset()"))return this;const{vertexSpace:r,vertexAttributes:o}=this,i=o?.position;if(!i)return this;if((0,T.Hq)(r)){const[o,i,s]=r.origin;r.origin=(0,f.fA)(o+t,i+e,s+n)}else{for(let r=0;r<i.length;r+=3)i[r]+=t,i[r+1]+=e,i[r+2]+=n;this.vertexAttributesChanged()}return this}scale(t,e){return this._checkIfLoaded("scale()")?(function(t,e,n){if(!t.vertexAttributes?.position)return;const{vertexSpace:r,spatialReference:o}=t,i=n?.origin??t.origin;(0,T.CK)(t)?function(t,e,n){t.transform??=new M.A;const{vertexSpace:r,transform:o,spatialReference:i}=t,[s,a,l]=r.origin,u=new h.A({x:s,y:a,z:l,spatialReference:i}),c=bt;if(u.equals(n))(0,R.hZ)(c,0,0,0);else if(!(0,U.p5)(c,n,t))return void(0,L.CN)(wt(),n.spatialReference,i,L.JP);const p=(0,R.hZ)(Mt,e,e,e),g=(0,lt.O7)(Ct,ct.zK,f.uY,p,c),{localMatrix:d}=o,m=(0,lt.lw)(Ct,g,d);o.scale=(0,lt.X_)((0,f.vt)(),m),(0,lt.hs)(m,m,(0,R.DI)(bt,o.scale));const x=o.rotationAxis;o.rotation=(0,y.ui)(m),0===o.rotationAngle&&(o.rotationAxis=x),o.translation=(0,lt.sC)((0,f.vt)(),m)}(t,e,i):E(r,o)?function(t,e,n){const r=t.spatialReference,o=(0,B.lO)(r),i=Tt;if(!(0,S.g)(n,i,o)&&((0,L.CN)(wt(),n.spatialReference,o,"Falling back to mesh origin"),!(0,S.g)(t.origin,i,o)))return void(0,L.CN)(wt(),t.origin.spatialReference,o);const s=t.vertexAttributes.position,a=t.vertexAttributes.normal,l=t.vertexAttributes.tangent,u=new Float64Array(s.length),c=null!=a?new Float32Array(a.length):null,f=null!=l?new Float32Array(l.length):null;!(0,L.gr)(s,r,u,o)||null!=a&&null!=c&&!(0,L.X4)(a,s,r,u,o,c)||null!=l&&null!=f&&!(0,L.xA)(l,s,r,u,o,f)?(0,L.CN)(wt(),r,o):(At(u,e,i),!(0,L.$5)(u,o,s,r)||null!=a&&null!=c&&!(0,L.si)(c,s,r,u,o,a)||null!=l&&null!=f&&!(0,L.Mv)(f,s,r,u,o,l)?(0,L.CN)(wt(),o,r):t.vertexAttributesChanged())}(t,e,i):function(t,e,n){const r=Tt;if(!(0,S.g)(n,r,t.spatialReference)){const e=t.origin;return r[0]=e.x,r[1]=e.y,r[2]=e.z,void(0,L.CN)(wt(),n.spatialReference,t.spatialReference,L.JP)}At(t.vertexAttributes.position,e,r),t.vertexAttributesChanged()}(t,e,i)}(this,t,e),this):this}centerAt(t,e){return this._checkIfLoaded("centerAt()")?(function(t,e,n){if(!t.vertexAttributes?.position)return;const{vertexSpace:r}=t,o=n?.origin??t.origin;(0,T.Hq)(r)?function(t,e,n){const{vertexSpace:r}=t;if(!(0,T.Hq)(r))return;const o=N,i=I;if(!(0,S.g)(e,i,t.spatialReference))return void(0,L.CN)(_(),e.spatialReference,t.spatialReference,L.JP);if(!(0,S.g)(n,o,t.spatialReference))return void(0,L.CN)(_(),n.spatialReference,t.spatialReference,L.JP);const s=(0,R.Re)(Z,i,o);r.origin=(0,R.WQ)((0,f.vt)(),r.origin,s)}(t,e,o):E(r,o.spatialReference)?function(t,e,n){const r=(0,f.fA)(n.x,n.y,n.z??0),o=(0,U.UR)(t,new b.A({origin:r}));if(!o)return;const i=(0,f.fA)(e.x,e.y,e.z??0),s=(0,U.UR)({vertexAttributes:o,spatialReference:t.spatialReference,vertexSpace:new b.A({origin:i})},A.A.absolute);if(!s)return;const{position:a,normal:l,tangent:u}=s;t.vertexAttributes.position=a,t.vertexAttributes.normal=l,t.vertexAttributes.tangent=u,t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=N,o=I;if((0,S.g)(e,o,t.spatialReference)){if(!(0,S.g)(n,r,t.spatialReference)){const e=t.origin;return r[0]=e.x,r[1]=e.y,r[2]=e.z,void(0,L.CN)(_(),n.spatialReference,t.spatialReference,L.JP)}(function(t,e,n){if(t)for(let r=0;r<t.length;r+=3)for(let o=0;o<3;o++)t[r+o]+=e[o]-n[o]})(t.vertexAttributes.position,o,r),t.vertexAttributesChanged()}else(0,L.CN)(_(),e.spatialReference,t.spatialReference,L.JP)}(t,e,o)}(this,t,e),this):this}load(t){const{metadata:{displaySource:e}}=this;return e&&this.addResolvingPromise(async function(t,e,r){switch(e.source.type){case"client":case"service":return async function(t,e,r){const{source:o}=e,{loadGLTFMesh:i}=await(0,l.qr)(n.e(5841).then(()=>n(35841)),r),s=await V(o,r);(0,l.Te)(r);const a=i(new h.A({x:0,y:0,z:0,spatialReference:t.spatialReference}),s.url,{resolveFile:K(s),signal:r?.signal,expectedType:s.type,unitConversionDisabled:e.unitConversionDisabled}),{mesh:{vertexAttributes:u,components:c},meta:{isDracoDecompressed:f}}=await a.finally(()=>s.dispose());if(f)throw new x.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");t.vertexAttributes=u,t.components=c}(t,e,r);case"loadable":return e.source.load(t,r);default:e.source}}(this,e,t)),Promise.resolve(this)}addExternalSources(t){this.metadata.externalSources.addMany(t)}updateDisplaySource(t){this.metadata.displaySource=t}clone(t){return super.clone((0,rt.WO)((0,rt.QN)(t)))}cloneShallow(){return new Rt({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(t){const[{toBinaryGLTF:e}]=await Promise.all([n.e(4038).then(()=>n(84038)),this.load(t)]);return(0,l.Te)(t),await e(this,t)}get usedMemory(){return this.components?this.components.reduce((t,e)=>t+e.memoryUsage,this.vertexAttributes.usedMemory):this.vertexAttributes.usedMemory}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(t){return!!this.loaded||(s.A.getLogger(this).error(t,"Mesh must be loaded before applying operations"),!1)}static createBox(t,e){if(!(t instanceof h.A))return s.A.getLogger(this.prototype).error(".createBox()",v),null;const n=new Rt((0,it.UG)((0,it.H8)(),t,e));return e?.imageFace&&"all"!==e.imageFace?(0,it.bQ)(n,e.imageFace):n}static createSphere(t,e){return t instanceof h.A?new Rt((0,it.UG)((0,it.Dk)(e?.densificationFactor||0),t,e)):(s.A.getLogger(this.prototype).error(".createSphere()",v),null)}static createCylinder(t,e){return t instanceof h.A?new Rt((0,it.UG)((0,it.ai)(e?.densificationFactor||0),t,e)):(s.A.getLogger(this.prototype).error(".createCylinder()",v),null)}static createPlane(t,e){if(!(t instanceof h.A))return s.A.getLogger(this.prototype).error(".createPlane()",v),null;const n=e?.facing??"up",r=(0,it.uF)(n,e?.size);return new Rt((0,it.UG)((0,it.Uh)(n),t,{...e,size:r}))}static createFromPolygon(t,e){if(!(t instanceof g.A))return s.A.getLogger(this.prototype).error(".createFromPolygon()","Expected polygon to be a Polygon instance"),null;const n=(0,St.uM)(t,{method:"earcut"}),r=(0,l.$X)(n)?null:n,o=r?.positions??[],i=r?.polygonIndices??[];return new Rt({vertexAttributes:new C.default({position:o}),components:[new m.default({faces:i,shading:"flat",material:e?.material??null})],spatialReference:t.spatialReference,vertexSpace:new A.A})}static async createFromGLTF(t,e,r){if(!(t instanceof h.A)){const t=new w;throw s.A.getLogger(this.prototype).error(".createfromGLTF()",t.message),t}const{loadGLTFMesh:o}=await(0,l.qr)(n.e(5841).then(()=>n(35841)),r);return new Rt((await o(t,e,r)).mesh)}};(0,r.Cg)([(0,c.MZ)({type:[m.default],json:{write:!0}})],Lt.prototype,"components",void 0),(0,r.Cg)([(0,c.MZ)({nonNullable:!0,types:Et,constructOnly:!0,json:{write:!0},clonable:(t,e)=>(0,rt.o2)(e)?.vertexSpace??t.clone(e)})],Lt.prototype,"vertexSpace",void 0),(0,r.Cg)([(0,c.MZ)({type:M.A,clonable:(t,e)=>{const n=(0,rt.o2)(e);return n&&"transform"in n?n.transform:t?.clone()??t},json:{write:!0}})],Lt.prototype,"transform",void 0),(0,r.Cg)([(0,c.MZ)({constructOnly:!0,type:ot.O,clonable:(t,e)=>(0,rt.o2)(e)?.metadata??t.clone()})],Lt.prototype,"metadata",void 0),(0,r.Cg)([(0,c.MZ)()],Lt.prototype,"hasExtent",null),(0,r.Cg)([(0,c.MZ)()],Lt.prototype,"_transformedExtent",null),(0,r.Cg)([(0,c.MZ)()],Lt.prototype,"_untransformedBounds",null),(0,r.Cg)([(0,c.MZ)()],Lt.prototype,"origin",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],Lt.prototype,"extent",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Lt.prototype,"hasZ",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Lt.prototype,"hasM",void 0),(0,r.Cg)([(0,c.MZ)({type:C.default,nonNullable:!0,json:{write:!0},clonable:(t,e)=>(0,rt.o2)(e)?.vertexAttributes??t.clone(e)})],Lt.prototype,"vertexAttributes",void 0),Lt=Rt=(0,r.Cg)([(0,c.$K)("esri.geometry.Mesh")],Lt);const Ut=(0,y.vt)()},15585(t,e,n){n.d(e,{If:()=>h,O5:()=>m,O9:()=>d,QT:()=>y,l3:()=>g});var r=n(32198),o=n(2741),i=n(49186),s=n(44208),a=n(34727);let l=null,u=null,c=null,f=null;const p=(new Float32Array(0),new Uint32Array(0),new Uint32Array(0),new Uint32Array(0),{vertices:new Float64Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0});async function h(){return l??=async function(){const t=await n.e(2997).then(()=>n(42997)),e=await t.default({locateFile:t=>(0,o.s)(`esri/core/libs/libtess/${t}`)});c=e}(),l}async function g(){return u??=async function(){const t=await n.e(9134).then(()=>n(99134)),e=await t.default({locateFile:t=>(0,o.s)(`esri/core/libs/libtess/${t}`)});f=e}(),u}function d(){return null!==f}function y(t,e,n=2){const o={stack:[],error:void 0,hasError:!1};try{const a=c;if(!a)throw new i.A("libtess:not-loaded","libtessF32 not loaded");const l=(0,r.mS)(o,A.from(a,t),!1),u=(0,r.mS)(o,M.from(a,e),!1),f=t.length/n*4,p=(0,r.mS)(o,new A(a,f*n),!1),h=a.triangulate(l.ptr,u.ptr,u.size,n,p.ptr,f);if((0,s.A)("esri-tessellation-debug")){const t=a.getError();0!==t&&console.warn("libtess:triangulation",C(t))}return{buffer:p.slice(0,h*n),vertexCount:h}}catch(t){o.error=t,o.hasError=!0}finally{(0,r.hk)(o)}}function m(t,e,n=2,o=!0){const l={stack:[],error:void 0,hasError:!1};try{const u=f;if(!u)throw new i.A("libtess:not-loaded","libtessF64 not loaded");const c=(0,r.mS)(l,b.from(u,t),!1),h=(0,r.mS)(l,M.from(u,e),!1),g=(0,r.mS)(l,new M(u,1),!1),d=(0,r.mS)(l,new M(u,1),!1),y=(0,r.mS)(l,new M(u,1),!1),m=(0,r.mS)(l,new M(u,1),!1),{maxVertexCount:x,maxIndexCount:v,maxOutlineIndexCount:A,maxOutlineRingCount:T}=function(t,e){const n=t.reduce((t,e)=>t+e,0),r=t.length,o=Math.max(0,t.length-1),i=Math.max(0,n+2*o-2),s=Math.max(0,Math.ceil(2*n)),l=Math.max(0,Math.ceil(3*i*2)),u=(0,a.mP)(l,3),c=n>0?Math.max(2,Math.ceil(.25*n)):0,f=n>0?Math.max(1,Math.ceil(c/3)):0;return{maxVertexCount:s,maxIndexCount:u,maxOutlineIndexCount:e?Math.max(0,n+r+c):0,maxOutlineRingCount:e?Math.max(0,r+f):0}}(e,o);let R=0,S=0,E=0,L=0,U=0;{const t={stack:[],error:void 0,hasError:!1};try{const e=(0,r.mS)(t,new b(u,x*n),!1),i=(0,r.mS)(t,new M(u,v),!1),s=(0,r.mS)(t,o?new M(u,A):null,!1),a=(0,r.mS)(t,o?new M(u,T):null,!1);if(u.triangulateIndexed(c.ptr,h.ptr,h.size,n,e.ptr,x,n,i.ptr,v,g.ptr,d.ptr,s?.ptr??0,A,a?.ptr??0,T,y.ptr,m.ptr),U=u.getError(),R=w(u)[g.ptr/Int32Array.BYTES_PER_ELEMENT],S=w(u)[d.ptr/Int32Array.BYTES_PER_ELEMENT],E=w(u)[y.ptr/Int32Array.BYTES_PER_ELEMENT],L=w(u)[m.ptr/Int32Array.BYTES_PER_ELEMENT],0===U){const t=e.slice(0,R*n);return{vertices:t,indices:i.slice(0,S),outlineIndices:o&&s?s.slice(0,E):p.outlineIndices,outlineRingLengths:o&&a?a.slice(0,L):p.outlineRingLengths,vertexCount:R,indexCount:S,outlineIndexCount:o?E:0,outlineRingCount:o?L:0}}}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}if(100903!==U)return(0,s.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",C(U)),p;const _=(0,r.mS)(l,new b(u,R*n),!1),I=(0,r.mS)(l,new M(u,S),!1),N=(0,r.mS)(l,o?new M(u,E):null,!1),Z=(0,r.mS)(l,o?new M(u,L):null,!1);if(u.triangulateIndexed(c.ptr,h.ptr,h.size,n,_.ptr,R,n,I.ptr,S,g.ptr,d.ptr,N?.ptr??0,o?E:0,Z?.ptr??0,o?L:0,y.ptr,m.ptr),U=u.getError(),0!==U)return(0,s.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",C(U)),p;const F=w(u)[g.ptr/Int32Array.BYTES_PER_ELEMENT],O=w(u)[d.ptr/Int32Array.BYTES_PER_ELEMENT],j=w(u)[y.ptr/Int32Array.BYTES_PER_ELEMENT],B=w(u)[m.ptr/Int32Array.BYTES_PER_ELEMENT],P=_.slice(0,F*n);return{vertices:P,indices:I.slice(0,O),outlineIndices:o&&N?N.slice(0,j):p.outlineIndices,outlineRingLengths:o&&Z?Z.slice(0,B):p.outlineRingLengths,vertexCount:F,indexCount:O,outlineIndexCount:o?j:0,outlineRingCount:o?B:0}}catch(t){l.error=t,l.hasError=!0}finally{(0,r.hk)(l)}}function x(t){return t.HEAPF64}function v(t){return t.HEAPF32}function w(t){return t.HEAP32}class A{static from(t,e){const n=new A(t,e.length);return n.set(e),n}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(t){v(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const n=this.ptr/this.bytesPerCoordinate;return v(this._libtess).slice(n+t,n+e)}}class b{static from(t,e){const n=new b(t,e.length);return n.set(e),n}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(t){x(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const n=this.ptr/this.bytesPerCoordinate;return x(this._libtess).slice(n+t,n+e)}}class M{static from(t,e){const n=new M(t,e.length);return n.set(e),n}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateLengthsArray(e)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(t){w(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const n=this.ptr/this.bytesPerCoordinate;return function(t){const e=w(t);return new Uint32Array(e.buffer,e.byteOffset,e.length)}(this._libtess).slice(n+t,n+e)}}function C(t){switch(t){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${t}`}}},97146(t,e,n){n.d(e,{Dg:()=>i,lC:()=>a,my:()=>s,tM:()=>f,uW:()=>o});var r=n(34275);function o(t){return i(t,!0)}function i(t,e){if(Array.isArray(t)){if(t.length<1024)return t}else if(t.length<1024)return Array.from(t);let n=!0,o=!0;return t.some((t,e)=>(n=n&&0===t,o=o&&t===e,!n&&!o)),n?function(t){if(1===t)return u;if(t<1024)return new Array(t).fill(0);if(t>h.length){const e=Math.max(2*h.length,t);h=new Uint8Array(e)}return new Uint8Array(h.buffer,0,t)}(t.length):o?f(t.length):(0,r.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const n of t){if(n>=65536)return(0,r.iu)(t)?t:new Uint32Array(t);n>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function s(t,e=t){return t<=1024?new Array(t):e<=65536?new Uint16Array(t):new Uint32Array(t)}function a(t,e,n){if(0===e.length)return t.slice();if(0===t.length)return e.slice();const r=s(t.length+e.length,n);for(let e=0;e<t.length;++e)r[e]=t[e];for(let n=0;n<e.length;++n)r[t.length+n]=e[n];return r}let l=p(131072);const u=[0],c=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function f(t){return 1===t?u:t<1024?Array.from(new Uint16Array(c.buffer,0,t)):t<c.length?new Uint16Array(c.buffer,0,t):(t>l.length&&(l=p(Math.max(2*l.length,t))),new Uint32Array(l.buffer,0,t))}function p(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let h=new Uint8Array(65536)},16939(t,e,n){n.r(e),n.d(e,{default:()=>h});var r,o=n(32198),i=n(69540),s=n(25482),a=n(53966),l=n(91429),u=n(78888),c=n(19211),f=n(80882),p=n(31199);let h=r=class extends((0,i.OU)(s.o)){static from(t){return(0,u.PZ)(r,t)}constructor(t){super(t),this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}get faces(){return this._get("faces")??null}set faces(t){this._set("faces",(0,p.b)(t,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},a.A.getLogger(this)))}castMaterial(t){return(0,u.PZ)(t&&"object"==typeof t&&("metallic"in t||"roughness"in t||"metallicRoughnessTexture"in t)?f.A:c.default,t)}get memoryUsage(){let t=0;return null!=this.faces&&(t+=this.faces.byteLength),null!=this.material&&(t+=this.material.memoryUsage),t}};(0,o.Cg)([(0,l.MZ)({json:{write:p.B}})],h.prototype,"faces",null),(0,o.Cg)([(0,l.MZ)({type:c.default,json:{write:!0}})],h.prototype,"material",void 0),(0,o.Cg)([(0,l.wg)("material")],h.prototype,"castMaterial",null),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],h.prototype,"shading",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean})],h.prototype,"trustSourceNormals",void 0),h=r=(0,o.Cg)([(0,l.$K)("esri.geometry.support.MeshComponent")],h)},95696(t,e,n){n.d(e,{A:()=>u});var r,o=n(32198),i=n(69540),s=n(25482),a=n(91429),l=n(93223);let u=class extends((0,i.OU)(s.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=r=(0,o.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(t,e,n){n.d(e,{A:()=>u});var r=n(32198),o=n(69540),i=n(25482),s=n(91429),a=n(51850),l=n(93223);let u=class extends((0,o.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(t,e,n){n.r(e),n.d(e,{default:()=>f});var r=n(32198),o=n(68197),i=n(69540),s=n(25482),a=n(91429),l=n(35063),u=n(51147),c=n(66895);let f=class extends((0,i.OU)(s.o)){constructor(t){super(t),this.color=null,this.colorTextureTransform=null,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}get colorTexture(){return this._get("colorTexture")}set colorTexture(t){this._set("colorTexture",null==t?null:l.default.from(t))}get normalTexture(){return this._get("normalTexture")}set normalTexture(t){this._set("normalTexture",null==t?null:l.default.from(t))}clone(t){const e=(0,c.hz)(t),n=e?.materialMap?.get(this);if(n)return n;const r=super.clone((0,c.QN)(t));return e?.materialMap?.set(this,r),r}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let t=0;return t+=null!=this.color?16:0,null!=this.colorTexture&&(t+=this.colorTexture.memoryUsage),t+=null!=this.colorTextureTransform?20:0,null!=this.normalTexture&&(t+=this.normalTexture.memoryUsage),t+=null!=this.normalTextureTransform?20:0,t}};(0,r.Cg)([(0,a.MZ)({type:o.A,json:{write:!0}})],f.prototype,"color",void 0),(0,r.Cg)([(0,a.MZ)({type:l.default,json:{write:!0},value:null})],f.prototype,"colorTexture",null),(0,r.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,r.Cg)([(0,a.MZ)({type:l.default,json:{write:!0},value:null})],f.prototype,"normalTexture",null),(0,r.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,r.Cg)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,r.Cg)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,r.Cg)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshMaterial")],f)},80882(t,e,n){n.d(e,{A:()=>u});var r=n(32198),o=n(68197),i=n(91429),s=n(19211),a=n(35063),l=n(51147);let u=class extends s.default{constructor(t){super(t),this.emissiveColor=null,this.emissiveStrength=null,this.emissiveTextureTransform=void 0,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTextureTransform=void 0,this.unlit=!1}get emissiveTexture(){return this._get("emissiveTexture")}set emissiveTexture(t){this._set("emissiveTexture",null==t?null:a.default.from(t))}get occlusionTexture(){return this._get("occlusionTexture")}set occlusionTexture(t){this._set("occlusionTexture",null==t?null:a.default.from(t))}get metallicRoughnessTexture(){return this._get("metallicRoughnessTexture")}set metallicRoughnessTexture(t){this._set("metallicRoughnessTexture",null==t?null:a.default.from(t))}getMemoryUsage(){let t=super.getMemoryUsage();return t+=null!=this.emissiveColor?16:0,null!=this.emissiveTexture&&(t+=this.emissiveTexture.memoryUsage),t+=null!=this.emissiveTextureTransform?20:0,null!=this.occlusionTexture&&(t+=this.occlusionTexture.memoryUsage),t+=null!=this.occlusionTextureTransform?20:0,null!=this.metallicRoughnessTexture&&(t+=this.metallicRoughnessTexture.memoryUsage),t+=null!=this.metallicRoughnessTextureTransform?20:0,t}};(0,r.Cg)([(0,i.MZ)({type:o.A,json:{write:!0}})],u.prototype,"emissiveColor",void 0),(0,r.Cg)([(0,i.MZ)({json:{write:!0}})],u.prototype,"emissiveStrength",void 0),(0,r.Cg)([(0,i.MZ)({type:a.default,json:{write:!0},value:null})],u.prototype,"emissiveTexture",null),(0,r.Cg)([(0,i.MZ)({type:l.A,json:{write:!0}})],u.prototype,"emissiveTextureTransform",void 0),(0,r.Cg)([(0,i.MZ)({type:a.default,json:{write:!0},value:null})],u.prototype,"occlusionTexture",null),(0,r.Cg)([(0,i.MZ)({type:l.A,json:{write:!0}})],u.prototype,"occlusionTextureTransform",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"metallic",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"roughness",void 0),(0,r.Cg)([(0,i.MZ)({type:a.default,json:{write:!0},value:null})],u.prototype,"metallicRoughnessTexture",null),(0,r.Cg)([(0,i.MZ)({type:l.A,json:{write:!0}})],u.prototype,"metallicRoughnessTextureTransform",void 0),(0,r.Cg)([(0,i.MZ)({type:Boolean,nonNullable:!0,json:{write:!0}})],u.prototype,"unlit",void 0),u=(0,r.Cg)([(0,i.$K)("esri.geometry.support.MeshMaterialMetallicRoughness")],u)},35063(t,e,n){n.r(e),n.d(e,{default:()=>y});var r,o=n(32198),i=n(69540),s=n(21287),a=n(25482),l=n(91429),u=n(78888),c=n(66895),f=n(97159),p=n(43937),h=n(36005);const g=new WeakMap;let d=0,y=class extends((0,i.OU)(a.o)){static{r=this}constructor(t){super(t),this.wrap="repeat"}get url(){return this._get("url")||null}set url(t){this._set("url",t),t&&this._set("data",null)}get data(){return this._get("data")||null}set data(t){this._set("data",t),t&&this._set("url",null)}writeData(t,e,n,r){if(t instanceof HTMLImageElement){const o={type:"image-element",src:(0,f.t)(t.src,r),crossOrigin:t.crossOrigin};e[n]=o}else if(t instanceof HTMLCanvasElement){const r={type:"canvas-element",imageData:m(t.getContext("2d").getImageData(0,0,t.width,t.height))};e[n]=r}else if(t instanceof HTMLVideoElement){const o={type:"video-element",src:(0,f.t)(t.src,r),autoplay:t.autoplay,loop:t.loop,muted:t.muted,crossOrigin:t.crossOrigin,preload:t.preload};e[n]=o}else if(t instanceof ImageData){const r={type:"image-data",imageData:m(t)};e[n]=r}}readData(t){switch(t.type){case"image-element":{const e=new Image;return e.src=t.src,e.crossOrigin=t.crossOrigin,e}case"canvas-element":{const e=x(t.imageData),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").putImageData(e,0,0),n}case"image-data":return x(t.imageData);case"video-element":{const e=document.createElement("video");return e.src=t.src,e.crossOrigin=t.crossOrigin,e.autoplay=t.autoplay,e.loop=t.loop,e.muted=t.muted,e.preload=t.preload,e}default:return}}get transparent(){const{data:t,url:e}=this,n=t=>t?.toLowerCase().endsWith(".png")||t?.toLocaleLowerCase().startsWith("data:image/png;");return t instanceof HTMLCanvasElement?v(t.getContext("2d").getImageData(0,0,t.width,t.height)):t instanceof ImageData?v(t):!(!e||!n(e))||!!(t instanceof HTMLImageElement&&n(t.src))}set transparent(t){this._overrideIfSome("transparent",t)}get contentHash(){const t="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",e=(e="")=>`d:${e},t:${this.transparent},w:${t}`;return null!=this.url?e(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?e(this.data.src):(g.has(this.data)||g.set(this.data,++d),e(g.get(this.data))):e()}get memoryUsage(){let t=0;if(t+=null!=this.url?this.url.length:0,null!=this.data){const e=this.data;"data"in e?t+=e.data.byteLength:e instanceof HTMLImageElement?t+=e.naturalWidth*e.naturalHeight*3:e instanceof HTMLCanvasElement&&(t+=e.width*e.height*3)}return t}clone(t){const e=(0,c.$N)(t),n=e?.textureMap?.get(this);if(n)return n;const r=super.clone(t);return e?.textureMap?.set(this,r),r}static from(t){return"string"==typeof t?new r({url:t}):t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof ImageData||t instanceof HTMLVideoElement?new r({data:t}):(0,u.PZ)(r,t)}};function m(t){let e="";for(let n=0;n<t.data.length;n++)e+=String.fromCharCode(t.data[n]);return{data:btoa(e),width:t.width,height:t.height}}function x(t){const e=atob(t.data),n=new Uint8ClampedArray(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return(0,s.eV)(n,t.width,t.height)}function v(t){for(let e=3;e<t.data.length;e+=4)if(255!==t.data[e])return!0;return!1}(0,o.Cg)([(0,l.MZ)({type:String,json:{write:f.w}})],y.prototype,"url",null),(0,o.Cg)([(0,l.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],y.prototype,"data",null),(0,o.Cg)([(0,p.K)("data")],y.prototype,"writeData",null),(0,o.Cg)([(0,h.w)("data")],y.prototype,"readData",null),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],y.prototype,"transparent",null),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],y.prototype,"wrap",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],y.prototype,"contentHash",null),y=r=(0,o.Cg)([(0,l.$K)("esri.geometry.support.MeshTexture")],y)},51147(t,e,n){n.d(e,{A:()=>a});var r=n(32198),o=n(69540),i=n(25482),s=n(91429);let a=class extends((0,o.OU)(i.o)){constructor(t){super(t),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],a.prototype,"offset",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],a.prototype,"rotation",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],a.prototype,"scale",void 0),a=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshTextureTransform")],a)},1193(t,e,n){n.r(e),n.d(e,{default:()=>f});var r,o=n(32198),i=n(69540),s=n(25482),a=n(4718),l=n(53966),u=n(91429),c=n(31199);let f=r=class extends((0,i.OU)(s.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,c.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},l.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&l.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,c.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},l.A.getLogger(this))}castUv(t){return(0,c.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},l.A.getLogger(this))}castNormal(t){return(0,c.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},l.A.getLogger(this))}castTangent(t){return(0,c.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},l.A.getLogger(this))}clonePositional(){const t={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"color",void 0),(0,o.Cg)([(0,u.wg)("color")],f.prototype,"castColor",null),(0,o.Cg)([(0,u.MZ)({nonNullable:!0,json:{write:c.B}})],f.prototype,"position",void 0),(0,o.Cg)([(0,u.wg)("position")],f.prototype,"castPosition",null),(0,o.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"uv",void 0),(0,o.Cg)([(0,u.wg)("uv")],f.prototype,"castUv",null),(0,o.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"normal",void 0),(0,o.Cg)([(0,u.wg)("normal")],f.prototype,"castNormal",null),(0,o.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"tangent",void 0),(0,o.Cg)([(0,u.wg)("tangent")],f.prototype,"castTangent",null),f=r=(0,o.Cg)([(0,u.$K)("esri.geometry.support.MeshVertexAttributes")],f)},31199(t,e,n){function r(t,e,n,r){const{loggerTag:o,stride:i}=e;return t.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):t}function o(t,e,n,o,i){if(!t)return t;if(t instanceof e)return r(t,o,e,i);for(const s of n)if(t instanceof s)return r(new e(t),o,e,i);if(Array.isArray(t))return r(new e(t),o,e,i);{const r=n.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new e([])}}function i(t,e,n){e[n]=function(t){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=t[n];return e}(t)}n.d(e,{B:()=>i,b:()=>o})},40118(t,e,n){n.d(e,{H5:()=>f,wh:()=>u,createWithExternalSource:()=>c});var r=n(49186),o=(n(17676),n(83300)),i=(n(16939),n(95696),n(73836)),s=(n(1193),n(27615));n(53966),n(35522),n(51850),n(66895),n(72258);var a=n(29461),l=n(15070);function u(t,e){return new o.default((0,l.UG)((0,l.Dk)(e?.densificationFactor||0),t,e))}function c(t,e,n){const r=n?.extent??null,{spatialReference:l}=t,u=n?.transform?.clone()??new i.A,c=(0,s.TE)(t,n),f=n?.unitConversionDisabled,p={source:e,extent:r,unitConversionDisabled:f},h=new a.O;return h.externalSources.push(p),new o.default({metadata:h,transform:u,vertexSpace:c,spatialReference:l})}function f(t,e){const{spatialReference:n}=t,a=e?.transform?.clone()??new i.A,l=(0,s.TE)(t,e),u=new o.default({transform:a,vertexSpace:l,spatialReference:n});return u.addResolvingPromise(Promise.reject(new r.A("mesh-incomplete","Mesh resources are not complete"))),u}n(41618)},63579(t,e,n){n.d(e,{Bq:()=>l,Qp:()=>a,WN:()=>y,dK:()=>m,eN:()=>h,fH:()=>d,in:()=>g,yr:()=>u});var r=n(56507),o=n(4576),i=n(17676),s=n(20557);class a{constructor(t,e,n){this.assetName=t,this.assetMimeType=e,this.parts=n}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&(0,o.aI)(this.parts,t.parts,(t,e)=>t.equals(e))}isOnService(t){return this.parts.every(e=>e.isOnService(t))}makeHash(){let t="";for(const e of this.parts)t+=e.partHash;return t}async toBlob(t){const{parts:e}=this;if(1===e.length)return e[0].toBlob(t);const n=await Promise.all(e.map(e=>e.toBlob(t)));return(0,i.Te)(t),new Blob(n)}}class l{constructor(t,e){this.partUrl=t,this.partHash=e}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(t){const{data:e}=await(0,r.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(t),e}}function u(t){return function(t){switch(t?.type){case"client":return Array.isArray(t.files)?t.files.some(p):p(t.files);case"service":return t.assets.some(p);case"loadable":return!0;default:return!1}}(t?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(t){if(t instanceof File){const{type:e,name:n}=t;return c.test(e)||f.test(n)}return c.test(t.assetMimeType)||f.test(t.assetName)}function h(t,e){if(!t)return!1;const{source:n}=t;return function(t,e){return"service"===t.type&&t.assets.every(t=>t.isOnService(e))}(n,e)}function g(t,e){if(t===e)return!0;const{source:n}=t,{source:r}=e;if(n===r)return!0;if("service"===n.type&&"service"===r.type){if(n.assets.length!==r.assets.length)return!1;const t=(t,e)=>t.assetName<e.assetName?-1:t.assetName>e.assetName?1:0,e=[...n.assets].sort(t),o=[...r.assets].sort(t);for(let t=0;t<e.length;++t)if(!e[t].equals(o[t]))return!1;return!0}return!1}function d(t,e){return t instanceof File?(0,s.rq)(t,e):(0,s.z$)(t.assetMimeType,t.assetName,e)}function y(t){switch(t.type){case"client":return Array.isArray(t.files)?t.files:[t.files];case"service":return t.assets;case"loadable":return}}function m(t){return!!t.original}},29461(t,e,n){n.d(e,{O:()=>u});var r=n(32198),o=n(69540),i=n(7762),s=n(36708),a=n(91429),l=n(63579);let u=class extends o.Pw{constructor(t){super(t),this.externalSources=new i.A,this._explicitDisplaySource=null,this.addHandles((0,s.on)(()=>this.externalSources,"after-remove",({item:t})=>{t===this._explicitDisplaySource&&(this._explicitDisplaySource=null)},{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(t){if(null!=t&&!(0,l.yr)(t))throw new Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=t,t&&this.externalSources.every(e=>!(0,l.in)(e,t))&&this.externalSources.add(t)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(t){return this.externalSources.items.filter(e=>(0,l.eN)(e,t))}get _implicitDisplaySource(){return this.externalSources.find(l.yr)}};(0,r.Cg)([(0,a.MZ)()],u.prototype,"externalSources",void 0),(0,r.Cg)([(0,a.MZ)()],u.prototype,"displaySource",null),(0,r.Cg)([(0,a.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,r.Cg)([(0,a.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,r.Cg)([(0,a.$K)("esri.geometry.support.meshUtils.Metadata")],u)},66895(t,e,n){n.d(e,{$N:()=>c,Lz:()=>i,QN:()=>f,WO:()=>l,hz:()=>a,o2:()=>o});const r=Symbol("meshContext");function o(t){return t&&"object"==typeof t&&r in t?t[r]:void 0}function i(t,e){const n=o(t);return{...t,[r]:{...n,...e}}}const s=Symbol("meshMaterialContext");function a(t){return t&&"object"==typeof t&&s in t?t[s]:void 0}function l(t){const e=a(t);if(e?.materialMap)return t;const n={materialMap:new Map};return{...t,[s]:n}}const u=Symbol("meshTextureContext");function c(t){return t&&"object"==typeof t&&u in t?t[u]:void 0}function f(t){const e=c(t);if(e?.textureMap)return t;const n={textureMap:new Map};return{...t,[u]:n}}},15070(t,e,n){n.d(e,{Dk:()=>p,H8:()=>c,UG:()=>m,Uh:()=>d,ai:()=>h,bQ:()=>f,uF:()=>g});var r=n(29242),o=n(35522),i=n(51850),s=n(16939),a=n(1193),l=n(27615),u=n(72258);function c(){const{faceDescriptions:t,faceVertexOffsets:e,uvScales:n}=x,r=4*t.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*t.length*3);let l=0,u=0,c=0,f=0;for(let r=0;r<t.length;r++){const p=t[r],h=l/3;for(const t of e)a[f++]=h+t;const g=p.corners;for(let t=0;t<4;t++){const e=g[t];let r=0;s[c++]=.25*n[t][0]+p.uvOrigin[0],s[c++]=p.uvOrigin[1]-.25*n[t][1];for(let t=0;t<3;t++)0!==p.axis[t]?(o[l++]=.5*p.axis[t],i[u++]=p.axis[t]):(o[l++]=.5*e[r++],i[u++]=0)}}return{position:o,normal:i,uv:s,faces:a}}function f(t,e){const n=t.components[0],r=n.faces,o=v[e],i=6*o,a=new Array(6),l=new Array(r.length-6);let u=0,c=0;for(let t=0;t<r.length;t++)t>=i&&t<i+6?a[u++]=r[t]:l[c++]=r[t];if(null!=t.vertexAttributes.uv){const e=new Float32Array(t.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let t=0;t<r.length;t++)e[n+t]=r[t];t.vertexAttributes.uv=e}return t.components=[new s.default({faces:a,material:n.material}),new s.default({faces:l})],t}function p(t=0){const e=Math.round(8*2**t),n=2*e,r=(e-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((e-1)*n*2*3);let l=0,u=0,c=0,f=0;for(let t=0;t<=e;t++){const r=t/e*Math.PI+.5*Math.PI,p=Math.cos(r),h=Math.sin(r);w[2]=h;const g=0===t||t===e,d=g?n-1:n;for(let r=0;r<=d;r++){const h=r/d*2*Math.PI;w[0]=-Math.sin(h)*p,w[1]=Math.cos(h)*p;for(let t=0;t<3;t++)o[l]=.5*w[t],i[l]=w[t],++l;s[u++]=(r+(g?.5:0))/n,s[u++]=t/e,0!==t&&r!==n&&(t!==e&&(a[c++]=f,a[c++]=f+1,a[c++]=f-n),1!==t&&(a[c++]=f,a[c++]=f-n,a[c++]=f-n-1)),f++}}return{position:o,normal:i,uv:s,faces:a}}function h(t=0){const e=Math.round(16*2**t),n=4*(e+1)+2*e,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*e*3);let a=0,l=0,u=0,c=0,f=0;for(let t=0;t<=5;t++){const n=0===t||5===t,p=t<=1||t>=4,h=2===t||4===t,g=n?e-1:e;for(let d=0;d<=g;d++){const y=d/g*2*Math.PI,m=n?0:.5;w[0]=m*Math.sin(y),w[1]=m*-Math.cos(y),w[2]=t<=2?.5:-.5;for(let e=0;e<3;e++)r[a++]=w[e],o[l++]=p?2===e?t<=1?1:-1:0:2===e?0:w[e]/m;i[u++]=(d+(n?.5:0))/e,i[u++]=t<=1?1*t/3:t<=3?1*(t-2)/3+1/3:1*(t-4)/3+2/3,h||0===t||d===e||(5!==t&&(s[c++]=f,s[c++]=f+1,s[c++]=f-e),1!==t&&(s[c++]=f,s[c++]=f-e,s[c++]=f-e-1)),f++}}return{position:r,normal:o,uv:i,faces:s}}function g(t,e){const n="number"==typeof e?e:null!=e?e.width:1,r="number"==typeof e?e:null!=e?e.height:1;switch(t){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}function d(t){const e=y.facingAxisOrderSwap[t],n=y.position,r=y.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let t=0;t<4;t++){const t=s;for(let a=0;a<3;a++){const l=e[a],u=Math.abs(l)-1,c=l>=0?1:-1;o[s]=n[t+u]*c,i[s]=r[t+u]*c,s++}}return{position:o,normal:i,uv:new Float32Array(y.uv),faces:new Uint32Array(y.faces),isPlane:!0}}const y={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function m(t,e,n){t.isPlane||function(t){for(let e=0;e<t.position.length;e+=3)t.position[e+2]+=.5}(t),function(t,e){if(null!=e){A[0]=e[0],A[4]=e[1],A[8]=e[2];for(let e=0;e<t.position.length;e+=3){for(let n=0;n<3;n++)w[n]=t.position[e+n];(0,o.ei)(w,w,A);for(let n=0;n<3;n++)t.position[e+n]=w[n]}if(e[0]!==e[1]||e[1]!==e[2]){A[0]=1/e[0],A[4]=1/e[1],A[8]=1/e[2];for(let e=0;e<t.normal.length;e+=3){for(let n=0;n<3;n++)w[n]=t.normal[e+n];(0,o.ei)(w,w,A),(0,o.S8)(w,w);for(let n=0;n<3;n++)t.normal[e+n]=w[n]}}}}(t,function(t,e,n){const r=(0,u.xK)(e,n);if(null==t&&1===r)return null;if(null==t)return[r,r,r];if("number"==typeof t){const e=t*r;return[e,e,e]}return[null!=t.width?t.width*r:r,null!=t.depth?t.depth*r:r,null!=t.height?t.height*r:r]}(n?.size,n?.unit,e.spatialReference));const r=(0,l.TE)(e,n),i=e.spatialReference.isGeographic?(0,l.TE)(e):r,c=(0,u.UR)({vertexAttributes:t,vertexSpace:i,spatialReference:e.spatialReference},r,{allowBufferReuse:!0});return{vertexAttributes:new a.default({...c,uv:t.uv}),vertexSpace:r,components:[new s.default({faces:t.faces,material:n?.material||null})],spatialReference:e.spatialReference}}const x={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},v={south:0,east:1,north:2,west:3,up:4,down:5},w=(0,i.vt)(),A=(0,r.vt)()},22141(t,e,n){n.d(e,{$5:()=>b,CN:()=>x,KM:()=>C,Mv:()=>R,X4:()=>v,gr:()=>A,qs:()=>M,si:()=>w,xA:()=>T});var r=n(34727),o=n(77690),i=n(29242),s=n(58083),a=n(9093),l=n(35522),u=n(51850),c=n(73941),f=n(48353),p=n(9762),h=(n(79258),n(21325)),g=n(28735),d=n(13030),y=n(73354),m=n(50867);function x(t,e,n,r){t.error(`Failed to project from (wkid:${e.wkid}) to (wkid:${n.wkid}).${r?" ":""}${r}`)}function v(t,e,n,r,o,i){return E(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(e),n,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function w(t,e,n,r,o,i){return E(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(e),n,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function A(t,e,n,r){return(0,p.projectBuffer)(t,e,0,n,r,0)?n:null}function b(t,e,n,r){return(0,p.projectBuffer)(t,e,0,n,r,0)?n:null}function M(t,e,n){return(0,o.Ge)(I,n),(0,y.b)(e,t,I),(0,r.or)(I)&&(0,y.n)(e,e),e}function C(t,e,n){return(0,o.z0)(I,n),(0,m.t)(e,t,I),(0,r.or)(I)&&(0,y.n)(e,e,4),e}function T(t,e,n,r,o,i){if(!E(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(e),n,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function R(t,e,n,r,o,i){if(!E(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(e),n,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function S(t,e,n,r,i){switch((0,f.l)(r,n,_,r),1===t&&(0,s.B8)(_,_),e){case 0:return(0,o.Ge)(i,_);case 1:return(0,o.z0)(i,_)}}function E(t,e,n,r,o,i,s,a){if(!e)return;const u=r.count;if(function(t){return t.isWGS84||(0,h.x1)(t)||(0,c.q8)(t)||(0,c.KQ)(t)}(o))for(let r=0;r<u;r++)i.getVec(r,L),e.getVec(r,U),(0,l.ei)(U,U,S(t,n,L,s,I)),a.setVec(r,U);else for(let o=0;o<u;o++){i.getVec(o,L),e.getVec(o,U);const u=(0,g.jg)(r.get(o,1));let c=Math.cos(u);1===n!=(0===t)&&(c=1/c),S(t,n,L,s,I),0===t?(I[0]*=c,I[1]*=c,I[2]*=c,I[3]*=c,I[4]*=c,I[5]*=c):(I[0]*=c,I[3]*=c,I[6]*=c,I[1]*=c,I[4]*=c,I[7]*=c),(0,l.ei)(U,U,I),(0,l.S8)(U,U),a.setVec(o,U)}return a}const L=(0,u.vt)(),U=(0,u.vt)(),_=(0,a.vt)(),I=(0,i.vt)();n.d(e,["JP",0,"Projection may be possible after calling projection.load()."])},72258(t,e,n){n.d(e,{UR:()=>A,p5:()=>w,xK:()=>S});var r=n(53966),o=n(34727),i=n(86211),s=n(77690),a=n(29242),l=n(58083),u=n(9093),c=n(35522),f=n(51850),p=n(73941),h=n(98764),g=n(48353),d=n(65806),y=n(27615),m=n(73354),x=n(22141);const v=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function w(t,e,{vertexSpace:n,spatialReference:r}){if("georeferenced"===n.type){const o=t;if(!(0,d.g)(e,o,r))return!1;const{origin:i}=n;return(0,c.Re)(t,o,i),!0}const o=(0,h.lO)(r),i=t;if(!(0,d.g)(e,i,o))return!1;const{origin:s}=n,a=I;if(!(0,g.l)(r,s,a,o))return!1;const u=(0,l.B8)(I,a);return null!=u&&((0,c.Z0)(t,i,u),!0)}function A(t,e,n){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,a=(0,y.Hq)(r)?o:null,f=T(t.spatialReference,n,3);if((0,y.yJ)(r,e)&&(!a||(0,l.t2)(a.localMatrix,u.zK))&&R(f)){const{position:t,normal:e,tangent:r}=i,o=n?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?e:e?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:n},{origin:r},o,i){const s=b(e,i);if(!(0,g.l)(e,r,E,s))return(0,x.CN)(v(),e,s),null;if(n&&(0,l.lw)(E,E,n.localMatrix),!(0,g.l)(e,o,L,s))return(0,x.CN)(v(),s,e),null;(0,l.B8)(L,L);const a=(0,l.lw)(E,L,E);return C(a,e,i,3),M(t,a)}(t,t.vertexSpace,e.origin,n):function({spatialReference:t,vertexAttributes:e,transform:n},{origin:r},o,i){const s=b(t,i);if(!(0,g.l)(t,r,E,s))return(0,x.CN)(v(),t,s),null;n&&(0,l.lw)(E,E,n.localMatrix),C(E,t,i,1);const a=new Float64Array(e.position.length),u=function(t,e,n,r,o){(0,m.t)(r,t,e);const i=new Float64Array(t.length);return(0,x.$5)(r,o,i,n)?i:((0,x.CN)(v(),o,n),null)}(e.position,E,t,a,s);if(!u)return null;const f=function(t,e,n,r,o,i){if(null==o)return null;const s=new Float32Array(o.length);return(0,x.qs)(o,s,i),(0,x.si)(s,t,e,n,r,s)?s:((0,x.CN)(v(),r,e),null)}(u,t,a,s,e.normal,E);if(e.normal&&!f)return null;const p=function(t,e,n,r,o,i){if(null==o)return null;const s=new Float32Array(o.length);return(0,x.KM)(o,s,i),(0,x.Mv)(s,t,e,n,r,s)?s:((0,x.CN)(v(),r,e),null)}(u,t,a,s,e.tangent,E);if(e.tangent&&!p)return null;if(o){const t=(0,c.ze)(_,o);(0,m.a)(u,u,t)}return{position:u,normal:f,tangent:p}}(t,t.vertexSpace,e.origin,n);case"georeferenced":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:n},{origin:r},o,i){const a=b(e,i);if(!(0,g.l)(e,o,E,a))return(0,x.CN)(v(),e,a),null;const u=1/T(e,i,2);(0,l.hs)(E,E,[u,u,u]);const c=(0,l.B8)(L,E),{position:f,normal:p,tangent:h}=function(t,e,n){if(!e)return t;if(!n){const{position:n,normal:r,tangent:o}=t;return{position:(0,m.a)(new Float64Array(n.length),n,e),tangent:o,normal:r}}const r=M(t,n.localMatrix);return(0,m.a)(r.position,r.position,e),r}(t,r,n),d=new Float64Array(f.length),y=function(t,e,n,r,o){const i=(0,x.gr)(t,e,r,o);if(!i)return(0,x.CN)(v(),e,o),null;const s=new Float64Array(i.length);return(0,m.t)(s,i,n),s}(f,e,c,d,a);if(!y)return null;const w=(0,s.Ge)(U,c),A=function(t,e,n,r,o,i,s){if(null==t)return null;const a=s??new Float32Array(t.length);return(0,x.X4)(t,e,n,r,o,a)?((0,m.b)(a,a,i),a):((0,x.CN)(v(),n,o),null)}(p,f,e,d,a,w,p!==t.normal?p:void 0);if(!A&&p)return null;const C=function(t,e,n,r,o,i,s){if(null==t)return null;const a=s??new Float32Array(t.length);return(0,x.xA)(t,e,n,r,o,a)?((0,m.b)(a,a,i,4),a):((0,x.CN)(v(),n,o),null)}(h,f,e,d,a,w,h!==t.tangent?h:void 0);return!C&&h?null:{position:y,normal:A,tangent:C}}(t,t.vertexSpace,e.origin,n):function({vertexAttributes:t,transform:e,spatialReference:n},{origin:r},o,i){const s=T(n,i,3),a=r||!R(s)?(0,l.C)(E,e?.localMatrix??u.zK):null;a&&C(a,n,i,3);const{position:f,normal:p,tangent:h}=a?M(t,a):t,g=i?.allowBufferReuse,d=g?f:new Float64Array(f.length);let y=f;if(r&&(y=(0,m.a)(d,y,r)),o){const t=(0,c.ze)(_,o);y=(0,m.a)(d,y,t)}return{position:y!==t.position||g?y:y.slice(),normal:p!==t.normal||g?p:p?.slice(),tangent:h!==t.tangent||g?h:h?.slice()}}(t,t.vertexSpace,e.origin,n)}}function b(t,e){return e?.useEllipsoid&&(0,p.B3)(t)?h.Y0:(0,h.lO)(t)}function M(t,e){const n=new Float64Array(t.position.length);(0,m.t)(n,t.position,e);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,x.qs)(t.normal,r,e),o&&t.tangent&&(0,x.KM)(t.tangent,o,e),{position:n,normal:r,tangent:o}}function C(t,e,n,r){const o=T(e,n,r);R(o)||(0,l.hs)(t,t,[o,o,o])}function T(t,e,n){const r=!!(1&n),o=!!(2&n),i=e?.sourceUnit,s=e?.targetUnit;if(!i&&!s)return 1;let a=S(i,t);r||!i||R(a)||(v().warn("source unit conversion not supported"),a=1);let l=1/S(s,t);return o||!s||R(l)||(v().warn("target unit conversion not supported"),l=1),a*l}function R(t){return(0,o.Io)(t,1)}function S(t,e){if(null==t)return 1;const n=(0,i.KX)(e);return 1/(0,i.oU)(n,"meters",t)}const E=(0,u.vt)(),L=(0,u.vt)(),U=(0,a.vt)(),_=(0,f.vt)(),I=(0,u.vt)()},27615(t,e,n){n.d(e,{CK:()=>l,Hq:()=>a,MW:()=>u,TE:()=>c,yJ:()=>f});var r=n(35522),o=n(86738),i=n(95696),s=n(18251);function a(t){return null!=t.origin}function l(t){return a(t.vertexSpace)}function u(t,e){if(!a(t))return null;const[n,r,i]=t.origin;return new o.A({x:n,y:r,z:i,spatialReference:e})}function c(t,e){const{x:n,y:r,z:o,spatialReference:a}=t,l=[n,r,o??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(a))?new s.A({origin:l}):new i.A({origin:l})}function f(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,r.t2)(t.origin,e.origin))}},41618(t,e,n){n.d(e,{uM:()=>I});var r=n(17676),o=(n(9762),n(4197)),i=(n(58083),n(9093)),s=n(51850);n(48353),(0,i.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},(0,s.vt)(),n(44208),n(53966);var a=n(62788),l=n(95488),u=n(83349),c=n(15585),f=n(95108),p=n(97146),h=n(34727),g=n(86211),d=n(35522),y=n(27921);function m(t,e,n){const r=function(t,e,n,r){const o=(t=>!Array.isArray(t[0]))(e)?(t,n)=>e[3*t+n]:(t,n)=>e[t][n],i=(0,g.GA)(r)/(0,g.G9)(r);return(0,y.lU)(t,(t,e)=>(0,d.hZ)(t,o(e,0)*i,o(e,1)*i,o(e,2)),n)}(x,t,e,n)?(0,y.Qj)(x):[0,0,1];return Math.abs(r[2])>Math.cos((0,h.kU)(80))?2:Math.abs(r[1])>Math.abs(r[0])?1:0}const x=(0,y.vt)();function v(t,e,n){if(!e)return 2;let r=null;for(const o of t){const t=E(o,e),i=t<3?2:m(o,t,n);if(r??=i,i!==r)return 2}return r??2}function w(t,e,n){if(!e)return!(0,f.$3)(t);if(t.length<3)return!1;switch(n){case 0:return!(0,f.$3)(t,1,2);case 1:return!(0,f.$3)(t,0,2);case 2:return!(0,f.$3)(t,0,1)}}const A=new l.I;let b=new WeakSet;function M(t,e){if(!(0,c.O9)())return L("libtess-not-loaded");const n=null!=e.outlines,{positions:r,mergedPathLengths:i}=function(t){const e=function(t){const e=t.reduce((t,e)=>t+e.pathLengths.length,0),n=new Array(e);let r=0;for(let e=0;e<t.length;e++){const o=t[e].pathLengths;for(let t=0;t<o.length;t++)n[r++]=o[t]}return n}(t.polygons),n=3*t.polygonVertexCount;return n===t.positions.length?{positions:t.positions,mergedPathLengths:e}:{positions:(0,o.l5)(t.positions,0,n),mergedPathLengths:e}}(t),s=performance.now(),{vertices:a,indices:l,outlineIndices:u,outlineRingLengths:f}=(0,c.O5)(r,i,3,n),h=performance.now()-s;if(null!=e.owner&&h>250&&b.add(e.owner),a.length%3!=0)return L("positions-not-multiple-of-3");const{positions:g,outlineIndexBuffer:d,mergedOutlineRingLengths:y}=n?function(t,e,n,r,i){const s=t.polygonVertexCount,a=n.length/3,l=(e??[]).values().filter(t=>t.index>=s).map(t=>({index:a+t.index-s,count:t.count})).toArray();if(0===l.length)return{positions:n,outlineIndexBuffer:r,mergedOutlineRingLengths:i};const u=3*s,c=(0,o.l5)(t.positions,u,t.positions.length-u),f=(0,o.yH)(n,c),{outlineIndexBuffer:h,outlineRingLengths:g}=T(l,f);return{positions:f,outlineIndexBuffer:(0,p.lC)(r,h,f.length/3),mergedOutlineRingLengths:(0,p.lC)(i,g,i.length+g.length)}}(t,e.outlines,a,u,f):{positions:a,outlineIndexBuffer:void 0,mergedOutlineRingLengths:void 0};return{succeeded:!0,positions:g,indices:l,outlineIndexBuffer:d,outlineRingLengths:y,vertexCount:g.length/3,method:"libtess"}}function C(t,e,n){for(let r=0;r<t.length;r+=3){const o=t[r+e];t[r+e]=t[r+n],t[r+n]=o}}function T(t,e){const n=(0,p.my)(t.length);let r=0;for(let o=0;o<t.length;o++){const i=t[o],s=i.count;if(s<=0){n[o]=0;continue}const a=3*i.index,l=3*(i.index+s-1),u=s>1&&e[a]===e[l]&&e[a+1]===e[l+1]&&e[a+2]===e[l+2]?s-1:s,c=u>0?u+1:0;n[o]=c,r+=c}const o=(0,p.my)(r,e.length/3);let i=0;for(let e=0;e<t.length;e++){const r=n[e];if(0===r)continue;const s=t[e].index,a=r-1;for(let t=0;t<a;t++)o[i++]=s+t;o[i++]=s}return{outlineIndexBuffer:o,outlineRingLengths:n}}function R(t,{index:e,count:n}){return(0,o.l5)(t,3*e,3*n)}function S(t,e,n,r,o,i){let s=i?t.length-1:0;const a=i?-1:1;n*=3;for(let i=0;i<r;++i){const r=t[s];e[n++]=r[0],e[n++]=r[1],e[n++]=o&&null!=r[2]?r[2]:0,s+=a}return n/3}function E(t,e){return function(t,e){const n=t.length;if(n<2)return!1;const r=t[0],o=t[n-1];return r[0]===o[0]&&r[1]===o[1]&&(!e||r[2]===o[2])}(t,e)?t.length-1:t.length}function L(t){return{succeeded:!1,message:t}}class U{constructor(t,e,n,r){this.positions=t,this.polygonIndices=e,this.outline=n,this.projectionSuccess=r,this.count=t.length/3}get vertexCount(){return this.positions.length/3}get polygonIndexCount(){return this.polygonIndices.length}get outlineIndexCount(){const{outline:t}=this;if("tessellated-indices"!==t.output)return 0;let e=0;for(let n=0;n<t.outlineIndices.length;n++)e+=Z(t.outlineIndices[n]);return e}get outlineSegmentCount(){const{outline:t}=this;if("tessellated-indices"!==t.output)return 0;let e=0;for(let n=0;n<t.outlineIndices.length;n++)e+=Z(t.outlineIndices[n]);return e}}class _ extends U{}function I(t,e){const{projectIfNearlyVertical:n=!1,outlineOutput:i="none",method:s,owner:l}=e??{},f="tessellated-indices"===i,h=v(t.rings,!!t.hasZ,t.spatialReference),g=function(t,e){const{hasZ:n,ccwRingsAsHoles:r,spatialReference:i}=e,s=e.axis??v(t,n,i),a=t.length,l=[],u=[],c=[],f=[],p=t.reduce((t,e)=>t+e.length,0);let h=0;const g=(0,o.jh)(3*p);let d=0;const y=r&&t[0]&&w(t[0],n,s);for(let e=a-1;e>=0;e--){const o=t[e],i=E(o,n);if(i<3){i>1&&f.push(o);continue}const a=!!r&&w(o,n,s);if(y?!a:a)l[h++]=o;else{let t=o.length;for(let e=0;e<h;++e)t+=l[e].length;const e={index:d,pathLengths:new Array(h+1),count:t,holeIndices:new Array(h)};e.pathLengths[0]=o.length,o.length>0&&c.push({index:d,count:o.length}),d=S(o,g,d,o.length,n,y);for(let t=0;t<h;++t){const r=l[t];e.holeIndices[t]=d,e.pathLengths[t+1]=r.length,r.length>0&&c.push({index:d,count:r.length}),d=S(r,g,d,r.length,n,y)}h=0,e.count>0&&u.push(e)}}const m=d;for(const t of f)c.push({index:d,count:t.length}),d=S(t,g,d,t.length,n,y);return{positions:3*d===g.length?g:(0,o.l5)(g,0,3*d),polygonVertexCount:m,polygons:u,outlines:c}}(t.rings,{hasZ:!!t.hasZ,ccwRingsAsHoles:!0,spatialReference:t.spatialReference,axis:h}),d=function(t,e){const n=function(t,e){const n={method:e?.method??"auto",projectionAxis:e?.projectionAxis??void 0,outlines:e?.outlines??void 0,owner:e?.owner??void 0},{projectionAxis:r}=n,o=null!=r&&2!==r;o&&C(t.positions,r,2);const i=function(t,e){if("libtess"===e.method)return M(t,e);const n=function(t,e){const n=null!=e.owner&&b.has(e.owner);return"auto"===e.method&&!(n&&t.polygonVertexCount>=1e4)}(t,e),r=Array();let o=0;for(const i of t.polygons){const s=R(t.positions,i),a=(i.holeIndices??[]).map(t=>t-i.index),l=a.length>0?a:null,c=(0,u.e)(s,l,3),f=u.e.deviation(s,a,3,c);if(n&&f>1e-5)return M(t,e);for(let t=0;t<c.length;t++)r.push(c[t]+i.index);o=Math.max(o,f)}const{outlineIndexBuffer:i,outlineRingLengths:s}=null!=e.outlines?T(e.outlines,t.positions):{outlineIndexBuffer:void 0,outlineRingLengths:void 0};return{succeeded:!0,positions:t.positions,indices:(0,p.uW)(r),outlineIndexBuffer:i,outlineRingLengths:s,vertexCount:t.positions.length/3,method:"earcut",deviation:o}}(t,n);if(o){const e=i.succeeded?i.positions:null;null!=e&&e!==t.positions&&C(e,2,r),C(t.positions,2,r)}return i}(t,e);return n.succeeded?n:"libtess-not-loaded"===n.message?((0,a.gc)(A),async function(){try{await(0,c.l3)(),A.notify()}catch(t){throw t}}()):n}(g,{projectionAxis:n?h:void 0,outlines:f?g.outlines:void 0,method:s,owner:l});if((0,r.$X)(d))return d;if(!d.succeeded)return null;let y={output:"none"};if("vertex-data"===i){const t=d.positions!==g.positions?g.positions:g.positions.slice();y={output:"vertex-data",outlines:N(g.outlines,t)}}else"tessellated-indices"===i&&(y=function(t){const{outlineIndexBuffer:e,outlineRingLengths:n}=t;if(null==e||null==n)return{output:"none"};const r=new Array(n.length);let o=0;for(let t=0;t<n.length;t++){const i=n[t],s=e.slice(o,o+i);r[t]=s,o+=i}return{output:"tessellated-indices",outlineIndices:r}}(d));return new _(d.positions,d.indices,y,!0)}function N(t,e,n=null){return t.values().filter(({count:t})=>t>1).map(({index:t,count:r})=>{const i=3*t,s=3*r;return null!=n?new O(t,r,(0,o.l5)(e,i,s),(0,o.l5)(n,i,s)):new F(t,r,(0,o.l5)(e,i,s))}).toArray()}function Z(t,e=0,n=t.length){return n>1&&t[e]===t[e+n-1]?n-1:n}class F{constructor(t,e,n){this.index=t,this.count=e,this.position=n}}class O extends F{constructor(t,e,n,r){super(t,e,n),this.mapPositions=r}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9794],{89794(a,e,t){t.r(e),t.d(e,{GlobalIlluminationPassParameters:()=>l.G,build:()=>l.c,defaultColorBleedWeight:()=>.15,defaultEmissionBoostFactor:()=>2.5,defaultRayMarchMaxReach:()=>.5,defaultRayMarchMaxReachEmissionWeight:()=>1,defaultRayMarchMaxSteps:()=>16,defaultRayMarchMinReach:()=>.15,defaultRayMarchMinReachEmissionWeight:()=>1,defaultRayMarchWorldReach:()=>25}),t(82048),t(92573),t(65261),t(98619),t(70893),t(34845),t(45324),t(33094),t(20304),t(31821),t(58029),t(12791),t(63761),t(94046),t(72458),t(18519),t(63907),t(65786),t(14113);var l=t(587)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,8593,8768],{52106(e,t,r){r.d(t,{A:()=>M});var i,n,o=r(32198),s=r(37838),l=r(69540),a=r(51447),p=r(25482),u=r(53966),c=r(36708),d=r(24326),y=r(91429),g=r(12195),h=r(65864),m=r(50498),f=r(55156),b=r(60950),v=r(54339),w=r(94128),S=r(33910);const C=Symbol("meshGeometryHandles");function I(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let M=class extends((0,l.OU)(p.o)){static{i=w.Z}static{n=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),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,statisticsAggregatedIds:this.statisticsAggregatedIds,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,b.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,f.I)(this.origin);if(e)return(0,v.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){const e=(0,f.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(){const e={aggregateGeometries:I(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}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,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.removeHandles(C);const e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.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)(()=>({vertexAttributes:e.vertexAttributes}),()=>{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",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,o.Cg)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,h.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],M.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,y.MZ)({value:null})],M.prototype,"attributes",null),(0,o.Cg)([(0,y.MZ)({value:null,types:m.yR,json:{read:h.rS}})],M.prototype,"geometry",null),(0,o.Cg)([(0,y.MZ)()],M.prototype,"distance",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,o.Cg)([(0,y.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,o.Cg)([(0,y.MZ)({type:s.A,value:null})],M.prototype,"popupTemplate",null),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,y.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,y.MZ)({value:null,types:S.Es})],M.prototype,"symbol",null),(0,o.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=n=(0,o.Cg)([(0,y.$K)("esri.Graphic")],M)},19334(e,t,r){r.d(t,{e:()=>s});var i=r(54639),n=r(14112);class o{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function s(e){if(null==e)return null;switch(e.type){case"point":if((0,n.e6)(e))return null;break;case"polygon":if((0,n.Wq)(e))return null;break;case"polyline":if((0,n.IY)(e))return null;break;case"multipoint":if((0,n.DG)(e))return null;break;case"extent":if((0,n.As)(e))return null;break;default:return null}const t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new o(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>p,p:()=>u});var i=r(54639),n=r(14112),o=r(16930),s=r(60408),l=r(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){const t=(0,l.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function p(e,t){if(null==e||"object"!=typeof e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof o.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new o.A,r.read(e.spatialReference))),null==r)throw new Error("Spatial reference required");return(0,s.fT)(e)?u("point",e,r):(0,s.Rg)(e)?u("polyline",e,r):(0,s.Bi)(e)?u("polygon",e,r):(0,s.U9)(e)?u("multipoint",e,r):(0,s.ZC)(e)?u("extent",e,r):null}function u(e,t,r){if(null==t)return null;let o=!1,s=!1;switch(e){case"point":if((0,n.e6)(t))return null;o=void 0!==t.z,s=void 0!==t.m;break;case"polygon":if((0,n.Wq)(t))return null;o=!0===t.hasZ,s=!0===t.hasM;break;case"polyline":if((0,n.IY)(t))return null;o=!0===t.hasZ,s=!0===t.hasM;break;case"multipoint":if((0,n.DG)(t))return null;o=!0===t.hasZ,s=!0===t.hasM;break;case"extent":if((0,n.As)(t))return null;o=null!=t.zmin&&null!=t.zmax,s=null!=t.mmin&&null!=t.mmax;break;default:throw new Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,o,s,new a(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function n(e){if(0===(e.curveRings??e.rings).length)return!0;for(const t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function o(e){if(0===(e.curvePaths??e.paths).length)return!0;for(const t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function s(e){return 0===e.points.length}function l(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>l,DG:()=>s,IY:()=>o,Wq:()=>n,e6:()=>i})},6797(e,t,r){r.d(t,{Ui:()=>d});var i=r(69622),n=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof n.A?Object.keys(e.items):l(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function p(e,t){return e instanceof n.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function c(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=a(e),n=a(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.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 o=n.filter(e=>!i.includes(e)),d=i.filter(e=>!n.includes(e)),y=i.filter(r=>n.includes(r)&&p(e,r)!==p(t,r)).concat(o,d).sort(),g=u(e);if(g&&s.has(g)&&y.length)return{type:"complete",oldValue:e,newValue:t};let h;const m=l(e)&&l(t);for(const i of y){const n=p(e,i),o=p(t,i);let s;if((m||"function"!=typeof n&&"function"!=typeof o)&&n!==o&&(null!=n||null!=o)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(n,o);else if(n instanceof Date&&o instanceof Date){if(n.getTime()===o.getTime())continue;s={type:"complete",oldValue:n,newValue:o}}else s="object"==typeof n&&"object"==typeof o&&u(n)===u(o)?c(n,o):{type:"complete",oldValue:n,newValue:o};null!=s&&(null!=h?h.diff[i]=s:h={type:"partial",diff:{[i]:s}})}}return h}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&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},55156(e,t,r){r.d(t,{I:()=>n});const i=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},79457(e,t,r){r.r(t),r.d(t,{default:()=>ae});var i=r(32198),n=r(37838),o=r(56507),s=r(69540),l=r(49186),a=r(36563),p=r(4718),u=r(53966),c=r(25728),d=r(17676),y=r(84952),g=r(91429),h=r(78888),m=r(5443),f=r(16930),b=r(50498),v=r(55156),w=r(60950),S=r(89808),C=r(99959);const I=Symbol("isStreamGraphicOrigin");var M;class x extends C.A{get[(M=I,w.ym)](){return this.layer}get[v.e](){return this.layer}get[S.Q](){return this.layer}constructor(e){super(),this[M]=!0,this.type="stream",this.layer=e}get id(){return this.layer.id}}var A,P=r(4146),_=r(18768),E=r(63074),L=r(69208),T=r(6455),Z=r(87718),O=r(56658),j=r(34287),F=r(8303),R=r(54310),N=r(25036),k=r(82935),D=r(63396),U=r(10873),G=r(25747),z=r(15426),$=r(20437),K=r(17036),V=r(30524),J=r(9916),B=r(46499),H=r(39383),q=r(25482);let Y=class extends q.o{static{A=this}constructor(e){super(e),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}clone(){return new A({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],Y.prototype,"age",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],Y.prototype,"ageReceived",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],Y.prototype,"displayCount",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],Y.prototype,"maxObservations",void 0),Y=A=(0,i.Cg)([(0,g.$K)("esri.layers.support.PurgeOptions")],Y);var W=r(72691),Q=r(65494),X=r(8947),ee=r(41214),te=r(97552),re=r(30291),ie=r(88625),ne=r(59923),oe=r(36005);const se=(0,K.p)();let le=class extends((0,T.FJ)((0,O.J)((0,Z.F)((0,E.dM)((0,k.e)((0,D.d)((0,N.j)((0,R.J)((0,_.b)((0,j.q)((0,F.A)((0,c.M)((0,L.d)((0,s.OU)(P.A))))))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.graphicOrigin=new x(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.outFields=["*"],this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new Y,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.source=null,this.sourceJSON=null,this.spatialReference=f.A.WGS84,this.timeInfo=null,this.type="stream",this.url=null,this.updateInterval=300,this.webSocketUrl=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,i)=>{const{save:n,saveAs:o}=await r.e(7301).then(()=>r(87301));switch(e){case 0:return n(this,t);case 1:return o(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new l.A("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,V.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){t=t.layerDefinition||t;const i=t.drawingInfo?.renderer;if(i){const e=(0,Q.L)(i,t,r)||void 0;return e||u.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}return(0,z.PD)(t,r)}async connect(e){const[{createConnection:t}]=await Promise.all([Promise.all([r.e(893),r.e(4708)]).then(()=>r(60986)),this.load()]),i=e?.spatialReference??this.spatialReference,n=t(this.getStreamConnectionSource(e),i),o=(0,a.vE)([this.on("send-message-to-socket",e=>n.sendMessageToSocket(e)),this.on("send-message-to-client",e=>n.sendMessageToClient(e))]);return n.once("destroy",o.remove),n}getStreamConnectionSource(e){const{customParameters:t=null,definitionExpression:r=null,geometryDefinition:i=null,maxReconnectionAttempts:n=0,maxReconnectionInterval:o=20}=e||this.createConnectionParameters(),s=this.geometryType?b.gy.toJSON(this.geometryType):null,a=this.spatialReference.toJSON();if(this.source){if(!this.timeInfo?.trackIdField)throw new l.A("stream-layer:missing-metadata","TrackIdField required for Kusto data source.");return{type:"kusto",database:this.database,table:this.source.table,trackIdField:this.timeInfo.trackIdField,geometryEncoding:this.source.geometryEncoding.toJSON(),sourceSpatialReference:a,refreshInterval:this.source.refreshInterval}}return this.webSocketUrl?{type:"custom",url:(0,y.An)(this.webSocketUrl),customParameters:t,definitionExpression:r,geometryDefinition:i,geometryType:s,maxReconnectionAttempts:n,maxReconnectionInterval:o,sourceSpatialReference:a}:this.parsedUrl?{type:"geoevent",url:this.parsedUrl,customParameters:t,definitionExpression:r,geometryDefinition:i,geometryType:s,maxReconnectionAttempts:n,maxReconnectionInterval:o,sourceSpatialReference:a}:{type:"client",geometryType:s,sourceSpatialReference:this.spatialReference.toJSON()}}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,re.tn)(this,e)}createQuery(){const e=new te.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let r=null;return this.fields.some(t=>(t.name===e&&(r=t.domain),!!r)),r}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){return this.webSocketUrl?((0,ne.U4)(t,this,"a custom websocket connection cannot be written to web scenes and web maps"),null):this.source?((0,ne.U4)(t,this,"a custom source cannot be written to web scenes and web maps"),null):this.parsedUrl?super.write(e,t):((0,ne.U4)(t,this,"a client-side only connection without a url cannot be written to web scenes and web maps"),null)}async _fetchService(e){if(this.source){const e=await(0,J.ZF)(this.source.workspace,this.source.database,this.source.table,{fields:this.fields,source:this.source,database:this.database});if(this.database=e.database,!e.fields)throw new l.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields=e.fields,!e.source)throw new l.A("stream-layer:missing-metadata","Unable to infer Kusto source.",{layerInfo:e});if(!e.source.geometryEncoding)throw new l.A("stream-layer:missing-metadata","Unable to infer Kusto geometry encoding.",{layerInfo:e});this.source=e.source}if(this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,o.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new l.A("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.fields)throw new l.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(!this.objectIdField){const e=this.fields.find(e=>"oid"===e.type)?.name;e&&(this.objectIdField=e)}if(this.fields.some(e=>e.name===this.objectIdField)||this.fields.push(new $.A({name:this.objectIdField??W.DN,alias:this.objectIdField??W.DN,type:"oid"})),!this.geometryType)throw new l.A("stream-layer:missing-metadata","The stream layer geometryType must be specified.")}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,V.yp)(this.renderer,this.fieldsIndex),(0,V.sv)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField=W.DN),(0,X.L)(this,{origin:"service"})}};(0,i.Cg)([(0,g.MZ)({type:String})],le.prototype,"copyright",void 0),(0,i.Cg)([(0,g.MZ)()],le.prototype,"database",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],le.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],le.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],le.prototype,"displayField",void 0),(0,i.Cg)([(0,g.MZ)({type:ie.A})],le.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,g.MZ)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],le.prototype,"featureReduction",null),(0,i.Cg)([(0,g.MZ)(se.fields)],le.prototype,"fields",void 0),(0,i.Cg)([(0,g.MZ)(se.fieldsIndex)],le.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,g.MZ)({type:m.A,json:{name:"layerDefinition.definitionGeometry",write:!0}})],le.prototype,"geometryDefinition",void 0),(0,i.Cg)([(0,g.MZ)({type:b.gy.apiValues,json:{read:{reader:b.gy.read}}})],le.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,clonable:!1})],le.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,g.MZ)(U.kF)],le.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,g.MZ)({type:[B.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:H.w},write:!0}})],le.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,g.MZ)(U.fV)],le.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],le.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:h.jz})],le.prototype,"maxReconnectionAttempts",void 0),(0,i.Cg)([(0,g.MZ)({type:h.jz})],le.prototype,"maxReconnectionInterval",void 0),(0,i.Cg)([(0,g.MZ)(U.hG)],le.prototype,"maxScale",void 0),(0,i.Cg)([(0,g.MZ)(U.hn)],le.prototype,"minScale",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],le.prototype,"objectIdField",void 0),(0,i.Cg)([(0,g.MZ)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],le.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],le.prototype,"outFields",void 0),(0,i.Cg)([(0,g.MZ)(U.M6)],le.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],le.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({type:Y})],le.prototype,"purgeOptions",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1,write:!1}})],le.prototype,"refreshInterval",void 0),(0,i.Cg)([(0,g.MZ)({types:ee.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:ee.XJ,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],le.prototype,"renderer",null),(0,i.Cg)([(0,oe.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,oe.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],le.prototype,"readRenderer",null),(0,i.Cg)([(0,g.MZ)((()=>{const e=(0,p.o8)(U.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],le.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:G.A,json:{write:!1}})],le.prototype,"source",void 0),(0,i.Cg)([(0,g.MZ)()],le.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,g.MZ)({type:f.A,json:{origins:{service:{read:{source:"spatialReference"}}}}})],le.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.MZ)((0,U.U$)())],le.prototype,"timeInfo",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1}})],le.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)(U.OZ)],le.prototype,"url",void 0),(0,i.Cg)([(0,g.MZ)({type:Number})],le.prototype,"updateInterval",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],le.prototype,"webSocketUrl",void 0),le=(0,i.Cg)([(0,g.$K)("esri.layers.StreamLayer")],le);const ae=le},18768(e,t,r){var i=r(32198),n=r(53966),o=r(91429),s=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,s.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,s.Jf)(e,n.A.getLogger(this)))}};return(0,i.Cg)([(0,o.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var i=r(32198),n=r(91429);r.d(t,["d",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},6455(e,t,r){r.d(t,{FJ:()=>f,Dp:()=>b,KV:()=>v});var i=r(32198),n=r(93637),o=r(91429),s=r(89317),l=r(69540),a=r(7762),p=r(25482),u=r(83960),c=r(13069);const d={write:{overridePolicy:(e,t,r)=>({enabled:!r||"scale"===r.filterMode})}};let y=class extends((0,l.OU)(p.o)){constructor(e){super(e),this.id=(0,c.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:d})],y.prototype,"maxScale",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:d})],y.prototype,"minScale",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"where",void 0),y=(0,i.Cg)([(0,o.$K)("esri.layers.support.DisplayFilter")],y);var g=r(41560),h=r(43937);let m=class extends((0,l.OU)(p.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(a.A.ofType(y)),this.mode="manual"}writeFilters(e,t,r,i){const n=e.toArray();"scale"===this.mode&&n.sort((e,t)=>{const r=(0,u.oW)(t.minScale,e.minScale),i=e.maxScale-t.maxScale;return 0===r?i:r}),t[r]=n.map(e=>e.toJSON(i))}write(e,t){return super.write(e,(0,g.mW)(this,t))}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{overridePolicy:(e,t,r)=>({enabled:"manual"===r.filterMode,isRequired:!0})}}})],m.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,o.MZ)({type:a.A.ofType(y),nonNullable:!0,json:{write:!0}})],m.prototype,"filters",void 0),(0,i.Cg)([(0,h.K)("filters")],m.prototype,"writeFilters",null),(0,i.Cg)([(0,o.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],m.prototype,"mode",void 0),m=(0,i.Cg)([(0,o.$K)("esri.layers.support.DisplayFilterInfo")],m);const f=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,i.Cg)([(0,o.MZ)(b)],r.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,o.MZ)(v)],r.prototype,"displayFilterInfo",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.DisplayFilteredLayer")],r),r},b={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:s.K,writer(e,t,r){(0,n.sM)(r,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},v={type:m,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:s.K},origins:{"web-scene":{write:!1,read:!1}}}}},8303(e,t,r){var i=r(32198),n=r(92602),o=r(70333),s=r(56507),l=r(60999),a=r(49186),p=r(36563),u=r(53966),c=r(97768),d=r(17676),y=r(84952),g=r(91429),h=r(77548),m=r(20655),f=r(80812),b=r(41318),v=r(10407),w=r(36005),S=r(43937);const C={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let I=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.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 f.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:i}=await r.e(1204).then(()=>r(41204));return(0,d.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;const i=t?.signal?null:new AbortController;try{const{reload:n}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,p.rE)(i),"reloadFromPortal"),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!o.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let s,l;if(n)s=r.portal.url;else try{s=await(0,h.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!s||!(0,y.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const a=!0,p=!1,u=!1;if(!l)return{features:{edit:a,fullEdit:p},content:{updateItem:u}};try{if(n?await r.reload():(r=new f.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,d.QP)(e)}return{features:{edit:a,fullEdit:p},content:{updateItem:u}}}_getUserPrivileges(e,t){const r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.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=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=m.A.getDefault();if(n&&n.loaded&&(0,y.S8)(n.restUrl)===(0,y.S8)(i))return n.user;const a=`${i}/community/self`,p=null!=e?e.signal:null,u=await(0,l.Ke)((0,s.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:p}));return u.ok?b.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return r&&i&&!(0,y.ut)(i.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,i.Cg)([(0,g.MZ)({type:f.default})],I.prototype,"portalItem",null),(0,i.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,i.Cg)([(0,S.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,i.Cg)([(0,g.$K)("esri.layers.mixins.PortalLayer")],I),I}])},82935(e,t,r){var i=r(32198),n=r(91429),o=r(30524),s=r(96184),l=r(73133),a=r(79677),p=r(10184),u=r(36005);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,c,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=l.j.fromJSON(r.timeOffsetUnits);return i&&n?new p.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:a.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,u.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:s.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(c)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},63396(e,t,r){r.d(t,{d:()=>C});var i=r(32198),n=r(91429),o=r(60950),s=r(99959);class l extends s.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}}var a=r(37838),p=r(69540),u=r(25482),c=r(93637),d=r(50820),y=r(10873),g=r(46499),h=r(41214);let m=class extends((0,p.OU)(u.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,n.MZ)({type:[g.A],json:{write:!0}})],m.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,n.MZ)(y.kF)],m.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,n.MZ)({types:h.Hg,json:{write:!0}})],m.prototype,"renderer",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"visible",void 0),m=(0,i.Cg)([(0,n.$K)("esri.layers.support.TrackPartInfo")],m);var f=r(96576),b=r(59868),v=r(10184),w=r(43937);let S=class extends((0,p.OU)(u.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new m({renderer:new f.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new m({renderer:new f.A({symbol:b.UK.clone()})}),this.trackLines=new m({renderer:new f.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,r){const i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,c.sM)(r,i,t)}};(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"enabled",void 0),(0,i.Cg)([(0,n.MZ)({type:[d.A],json:{write:!0}})],S.prototype,"fields",void 0),(0,i.Cg)([(0,w.K)("fields")],S.prototype,"writeFields",null),(0,i.Cg)([(0,n.MZ)({type:m,json:{write:!0}})],S.prototype,"latestObservations",void 0),(0,i.Cg)([(0,n.MZ)({type:v.A,json:{write:!0}})],S.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],S.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,n.MZ)(y.M6)],S.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,n.MZ)({type:a.A,json:{name:"popupInfo",write:!0}})],S.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,n.MZ)({type:m,json:{write:!0}})],S.prototype,"previousObservations",void 0),(0,i.Cg)([(0,n.MZ)({type:m,json:{write:!0}})],S.prototype,"trackLines",void 0),(0,i.Cg)([(0,n.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],S.prototype,"timeField",void 0),S=(0,i.Cg)([(0,n.$K)("esri.layers.support.TrackInfo")],S);const C=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new l(this),this.trackInfo=null}};return(0,i.Cg)([(0,n.MZ)({readOnly:!0,clonable:!1})],r.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,n.MZ)({type:S})],r.prototype,"trackInfo",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TrackableLayer")],r),r}},25747(e,t,r){r.d(t,{A:()=>p});var i=r(32198),n=r(69540),o=r(25482),s=r(91429),l=r(64108),a=r(9075);let p=class extends((0,o.T)(n.Pw)){constructor(e){super(e),this.type="fabric",this.refreshInterval=5e3/6e4}};(0,i.Cg)([(0,s.MZ)({type:["fabric"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"workspace",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"database",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"table",void 0),(0,i.Cg)([(0,s.MZ)({type:a.A,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"geometryEncoding",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"refreshInterval",void 0),p=(0,i.Cg)([(0,l.$)("esri.layers.support.FabricKustoSource")],p)},9075(e,t,r){r.d(t,{A:()=>l});var i=r(32198),n=r(69540),o=r(25482),s=r(91429);let l=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.type="location",this.xField=null,this.yField=null}};(0,i.Cg)([(0,s.MZ)({type:["location"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],l.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"xField",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"yField",void 0),l=(0,i.Cg)([(0,s.$K)("esri.layers.support.GeometryEncodingLocation")],l)},46499(e,t,r){r.d(t,{A:()=>M});var i,n,o=r(32198),s=(r(44208),r(66552)),l=r(25482),a=r(4718),p=r(90629),u=r(91429),c=r(90360),d=r(73913),y=r(32730),g=r(77548),h=r(59868),m=r(73838),f=r(33910),b=r(36005),v=r(43937);const w=new s.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function S(e,t,r){return{enabled:!(0,g.TU)(r?.layer)}}function C(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function I(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let M=class extends l.o{static{i=y.vK}static{n=this}static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){const e=r(t[i[0]],i[1],i[2]),n=i[3],o=r(t[i[4]],i[5],i[6]);switch(n){case"AND":return e&&o;case"OR":return e||o}}return!1}catch(e){}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=h.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,y.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&C(i))e=new d.A({expression:this.getLabelExpressionArcade()});else if(!e)return;const n=e.toJSON(i);n.expression&&(t[r]=n)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,y.XJ)(this)}getLabelExpressionArcade(){return(0,y.BI)(this)}getLabelExpressionSingleField(){return(0,y.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new n({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:S}}}}})],M.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:S}}}}})],M.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&I(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],M.prototype,"labelExpression",void 0),(0,o.Cg)([(0,b.w)("labelExpression")],M.prototype,"readLabelExpression",null),(0,o.Cg)([(0,v.K)("labelExpression")],M.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,u.MZ)({type:d.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return C(e)||I(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],M.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,v.K)("labelExpressionInfo")],M.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,u.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],M.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],M.prototype,"offsetDistance",void 0),(0,o.Cg)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],M.prototype,"labelPosition",void 0),(0,o.Cg)([(0,u.MZ)({type:Number})],M.prototype,"maxScale",void 0),(0,o.Cg)([(0,v.K)("maxScale")],M.prototype,"writeMaxScale",null),(0,o.Cg)([(0,u.MZ)({type:Number})],M.prototype,"minScale",void 0),(0,o.Cg)([(0,v.K)("minScale")],M.prototype,"writeMinScale",null),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],M.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],M.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,u.MZ)({types:f.em,json:{types:f.em,origins:{"portal-item":{types:f.em,read:{reader:(0,c.C)({types:f.em})},default:null},"web-scene":{types:f.Rv,read:{reader:(0,c.C)({types:f.Rv})},write:m.oO,default:null}},write:m.oO,default:null}})],M.prototype,"symbol",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=n=(0,o.Cg)([(0,u.$K)("esri.layers.support.LabelClass")],M)},73913(e,t,r){r.d(t,{A:()=>u});var i,n=r(32198),o=r(25482),s=r(91429),l=r(32730),a=r(36005),p=r(43937);let u=class extends o.o{static{i=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,l.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,l.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,n.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,n.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.LabelExpressionInfo")],u)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>o});var i=r(34727),n=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const o=function(e){if("manual"===p(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],c(i));return t}(e);if(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";const s=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;const n=u(e.at(0)?.minScale),o=c(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],n=e[t+1];if((0,i.ZH)(u(n.minScale),c(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===p(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,n){return e=u(e),r=u(r),t=c(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function c(e){return e||0}},17036(e,t,r){r.d(t,{p:()=>a});var i=r(44208),n=r(53966),o=r(20437),s=r(95466),l=r(30524);function a(){return{fields:{type:[o.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");n.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||n.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},9916(e,t,r){r.d(t,{ZF:()=>p,iD:()=>d,xw:()=>c});var i=r(56507),n=r(49186),o=r(25747),s=r(20437),l=r(9075),a=r(54625);async function p(e,t,r,s,p={}){if(s.database||(s.database=await async function(e,t){const{data:r}=await(0,i.A)(`https://api.fabric.microsoft.com/v1/workspaces/${e}/kqlDatabases/${t}`,{responseType:"json"});if(null==r)throw new n.A("kusto:connection",`KQL database '${t}' was not found in workspace '${e}'`);return r}(e,t)),s.fields?.length||(s.fields=await async function(e,t,r={}){const o=await async function(e,t,r={}){const o=e.properties.queryServiceUri;return function(e){const t=e.Tables[0];if(null==t||0===t.Rows.length)throw new n.A("kusto:invalid-schema-response","Kusto schema response did not include any rows");const[r,i]=t.Rows[0];if("string"!=typeof i)throw new n.A("kusto:invalid-schema-response","Kusto schema response did not include a schema string");return JSON.parse(i)}((await(0,i.A)(`${o}/v1/rest/mgmt`,{responseType:"json",method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({db:e.displayName,csl:`.show table ${c(t)} schema as json`}),signal:r.signal})).data)}(e,t,r),s=[];for(const e of o.OrderedColumns){const t=u(e);t&&s.push(t)}return s}(s.database,r,p)),s.source||(s.source=new o.A({workspace:e,database:t,table:r})),!s.source.geometryEncoding){const e=(0,a.i_)(s.fields.map(e=>e.name));e.latitudeFieldName&&e.longitudeFieldName&&(s.source.geometryEncoding=new l.A({xField:e.longitudeFieldName,yField:e.latitudeFieldName}))}return s}function u(e){const t=function(e){switch(e){case"bool":return"small-integer";case"guid":case"string":return"string";case"int":return"integer";case"long":return"big-integer";case"real":return"double";case"dynamic":case"datetime":case"decimal":case"timespan":return null}}(e.CslType);return t?new s.A({name:e.Name,type:t}):null}function c(e){return`['${e.replaceAll("'","''")}']`}function d(e){return e.replaceAll("'","''")}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>c});var i=r(49186),n=r(53966),o=r(46499);const s=()=>n.A.getLogger("esri.layers.support.labelingInfo"),l=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{const i=new o.A;if(i.read(e,r),i.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,(t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function c(e,t){const r=[];for(const n of e){const e=n.labelPlacement,o=u[t];if(!n.symbol)return s().warn("No ILabelClass symbol specified."),[];if(!o)return s().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(n);else{const i=o[0];e&&s().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);const l=n.clone();l.labelPlacement=i,r.push(l)}}return r}},54625(e,t,r){r.d(t,{i_:()=>n});var i=r(30524);function n(e,t,r){t=(0,i.rS)(t)?.toLowerCase(),r=(0,i.rS)(r)?.toLowerCase();const n=e.map(e=>e.toLowerCase()),l=t?e[n.indexOf(t)]:null,a=r?e[n.indexOf(r)]:null;return{longitudeFieldName:l||e[n.indexOf(s.find(e=>n.includes(e)))],latitudeFieldName:a||e[n.indexOf(o.find(e=>n.includes(e)))]}}const o=["lat","lat83","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],s=["lon","lng","lng83","long","long83","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"];r.d(t,["A0",0,s,"bD",0,o])},72691(e,t,r){r.d(t,["Aw",0,"__esri_time_received__","DN",0,"__esri_stream_id__","EA",0,"__esri_track_part__","Gm",0,"__esri_timestamp__","xq",0,"__esri_track_line__"])},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>s,OM:()=>p,Sm:()=>u,Y:()=>l,bK:()=>a,sQ:()=>c});var i=r(99917),n=r(16930),o=r(28735);function s(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 p(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function u(e,t,r){r?s(e,t):p(e,t)}async function c(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,o.ci)(e);const r=n.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",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",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function y(e){const{portal:t,isOrgItem:r,itemControl:i}=e,n=t.user?.privileges;let o=!n||n.includes("features:user:edit"),s=!!r&&!!n?.includes("features:user:fullEdit");const l="update"===i||"admin"===i;return l?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:l}}}r.d(t,["mm",0,d])},8947(e,t,r){r.d(t,{L:()=>s});var i=r(60999),n=r(17676),o=r(67076);async function s(e,t,r){const s=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(s&&"unique-value"===s.type&&s.styleOrigin){const l=await(0,i.Ke)(s.populateFromStyle());if((0,n.Te)(r),!1===l.ok){const r=l.error;t?.messages&&t.messages.push(new o.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},98205(e,t,r){r.d(t,{KZ:()=>l,eh:()=>s,gf:()=>o,of:()=>n});const i=Symbol("SizeVariableInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const r=t||s(e),i=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}r.d(t,["uY",0,i])},41366(e,t,r){var i=r(32198),n=r(66552),o=r(53966),s=r(91429),l=r(93223);const a=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",u="field";r.d(t,["K",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&u||r&&p||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==u&&e!==p||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},93470(e,t,r){const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,n,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5804,7515,8768],{46130(e,t,r){r.d(t,{v:()=>n});var i=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,i.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},60999(e,t,r){r.d(t,{DZ:()=>h,Ke:()=>y,QA:()=>g,Tj:()=>d,UT:()=>f,aD:()=>v,jJ:()=>u});var i=r(32198),n=r(69622),a=r(97768),s=r(17676),o=r(10107),l=r(64108);function u(e,t,r){return(0,s.Lx)(e.map((e,i)=>t.apply(r,[e,i])))}async function d(e,t,r){return(await(0,s.Lx)(e.map((e,i)=>t.apply(r,[e,i])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function c(e){return{ok:!1,error:e}}async function y(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return c(e)}}async function h(e){try{return p(await e)}catch(e){return(0,s.QP)(e),c(e)}}function g(e){if(!0===e.ok)return e.value;throw e.error}function f(e,t){return new m(e,t)}let m=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,a.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=c(e),this._cleanup()}),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,a.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,o.MZ)()],m.prototype,"value",null),(0,i.Cg)([(0,o.MZ)()],m.prototype,"error",null),(0,i.Cg)([(0,o.MZ)()],m.prototype,"finished",null),(0,i.Cg)([(0,o.MZ)()],m.prototype,"promise",void 0),(0,i.Cg)([(0,o.MZ)()],m.prototype,"_result",void 0),m=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],m);class v{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},56512(e,t,r){function i(e){let t,r,i=[],n=!1;return function(...a){return n&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}(a,i)||(r=e.apply(this,a),t=this,i=a,n=!0),r}}r.d(t,{B:()=>i})},76553(e,t,r){function i(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>i})},13069(e,t,r){r.d(t,{AG:()=>o,lk:()=>n,vD:()=>s,yS:()=>a});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function a(){return`{${n().toUpperCase()}}`}function s(){return`{${n()}}`}function o(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},54239(e,t,r){r.d(t,{A:()=>m});var i,n=r(32198),a=r(4576),s=r(66552),o=r(25482),l=r(86211),u=r(67076),d=r(91429),p=r(97348),c=r(43937),y=r(36005);const h=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=h.jsonValues.slice();(0,a.Xy)(g,"orthometric");const f=(0,s.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=i=class extends o.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:r}=e;if(!r)return null;const n=(null!=t?p.B.get(t):null)??p.B.get(r);return n?new i({heightModel:0===n.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(n.unit.name),vertCRS:n.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n.Cg)([(0,d.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,n.Cg)([(0,c.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,n.Cg)([(0,y.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,n.Cg)([(0,d.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,n.Cg)([(0,y.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,n.Cg)([(0,y.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,n.Cg)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,n.Cg)([(0,y.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=i=(0,n.Cg)([(0,d.$K)("esri.geometry.HeightModelInfo")],m)},48526(e,t,r){r.d(t,{A:()=>f});var i,n=r(32198),a=r(4576),s=r(4718),o=r(91429),l=r(5443),u=r(91075),d=r(86738),p=r(16930),c=r(90634),y=r(47610),h=r(56993),g=r(43937);let f=i=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:i,spatialReference:n}=e;switch(t??=[],t?.at(0)?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return n??=p.A.WGS84,{...e,hasM:r,hasZ:i,points:t,spatialReference:n}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,c.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,s.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:r,hasZ:n}=this;return new i({points:(0,s.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:n})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,r=e.spatialReference;return null!=t==(null!=r)&&!(null!=t&&null!=r&&!t.equals(r))&&(0,a.aI)(this.points,e.points,y.v6)}addPoint(e){return(0,h.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(r.z=t[2],i=3),this.hasM&&(r.m=t[i]),new d.A(r)}removePoint(e){if(!this._validateInputs(e))return null;const t=new d.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,h.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],f.prototype,"points",void 0),(0,n.Cg)([(0,g.K)("points")],f.prototype,"writePoints",null),f=i=(0,n.Cg)([(0,o.$K)("esri.geometry.Multipoint")],f),f.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>h});var i,n=r(32198),a=r(4718),s=r(91429),o=r(5443),l=r(91075),u=r(86738),d=r(16930),p=r(90634),c=r(56993),y=r(43937);let h=i=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:i,spatialReference:n}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return n??=d.A.WGS84,{...e,hasM:r,hasZ:i,paths:t,spatialReference:n}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,a.o8)(e)}get extent(){const e=(0,p.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,a.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const i=[];for(let t=0,r=e.length;t<r;t++)i[t]=e[t].toArray();t[r]=i}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new i;return e.spatialReference=this.spatialReference,e.paths=(0,a.o8)(this.paths),e.curvePaths=(0,a.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const r=this.paths[e][t],i=this.hasZ,n=this.hasM;return i&&!n?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):n&&!i?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):i&&n?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?((0,c.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],r=this.spatialReference,i=t.map(e=>new u.A(e,r));return this.notifyChange("paths"),i}removePoint(e,t){if(!this._validateInputs(e,t))return null;const r=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?((0,c.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths"),this):this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const i=this.paths[e];if(r&&(t<0||t>i.length))return!1;if(!r&&(t<0||t>=i.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,n.Cg)([(0,s.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,n.Cg)([(0,s.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],h.prototype,"curvePaths",void 0),(0,n.Cg)([(0,y.K)("curvePaths")],h.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,n.Cg)([(0,s.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],h.prototype,"paths",void 0),(0,n.Cg)([(0,y.K)("paths")],h.prototype,"writePaths",null),h=i=(0,n.Cg)([(0,s.$K)("esri.geometry.Polyline")],h),h.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,r){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function a(e){return void 0!==e.x&&void 0!==e.y}function s(e){return void 0!==e.paths||void 0!==e.curvePaths}function o(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?a(e)?"esriGeometryPoint":s(e)?"esriGeometryPolyline":o(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function d(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function p(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>o,Pv:()=>d,Rg:()=>s,U9:()=>n,W0:()=>p,ZC:()=>i,fT:()=>a,uW:()=>l})},99959(e,t,r){r.d(t,{A:()=>a});var i=r(32198),n=r(91429);let a=class{};a=(0,i.Cg)([(0,n.$K)("esri.graphic.GraphicOrigin")],a)},89808(e,t,r){const i=Symbol("getSliceableSymbol");r.d(t,["Q",0,i])},77885(e,t,r){r.r(t),r.d(t,{default:()=>oe});var i=r(32198),n=r(37838),a=r(56507),s=r(69540),o=r(49186),l=r(4718),u=r(53966),d=r(25728),p=r(93637),c=r(17676),y=r(84952),h=r(91429),g=r(60950),f=r(89808),m=r(99959);const v=Symbol("isPointCloudGraphicOrigin");var w;class S extends m.A{get[(w=v,g.ym)](){return this.layer}get[f.Q](){return this.layer}constructor(e){super(),this[w]=!0,this.type="point-cloud",this.layer=e}get id(){return this.layer.id}}var L=r(4146),I=r(52136),b=r(18768),C=r(69208),A=r(34287),M=r(8303),T=r(25036),P=r(58947),R=r(78888),x=r(25482);let F=class extends x.o{constructor(e){super(e),this.field=null,this.type=null}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}};(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],F.prototype,"field",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,nonNullable:!0,json:{read:!1,write:{isRequired:!0}}})],F.prototype,"type",void 0),F=(0,i.Cg)([(0,h.$K)("esri.layers.pointCloudFilters.PointCloudFilter")],F);const _=F;var O,E=r(93223);let Z=O=class extends _{constructor(e){super(e),this.requiredClearBits=null,this.requiredSetBits=null,this.type="bitfield"}clone(){return new O({field:this.field,requiredClearBits:(0,l.o8)(this.requiredClearBits),requiredSetBits:(0,l.o8)(this.requiredSetBits)})}};(0,i.Cg)([(0,h.MZ)({type:[R.jz],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredSetBits}}}}})],Z.prototype,"requiredClearBits",void 0),(0,i.Cg)([(0,h.MZ)({type:[R.jz],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredClearBits}}}}})],Z.prototype,"requiredSetBits",void 0),(0,i.Cg)([(0,E.e)({pointCloudBitfieldFilter:"bitfield"})],Z.prototype,"type",void 0),Z=O=(0,i.Cg)([(0,h.$K)("esri.layers.pointCloudFilters.PointCloudBitfieldFilter")],Z);const U=Z;var G;let N=G=class extends _{constructor(e){super(e),this.includedReturns=[],this.type="return"}clone(){return new G({field:this.field,includedReturns:(0,l.o8)(this.includedReturns)})}};(0,i.Cg)([(0,h.MZ)({type:[["firstOfMany","last","lastOfMany","single"]],json:{write:{enabled:!0,isRequired:!0}}})],N.prototype,"includedReturns",void 0),(0,i.Cg)([(0,E.e)({pointCloudReturnFilter:"return"})],N.prototype,"type",void 0),N=G=(0,i.Cg)([(0,h.$K)("esri.layers.pointCloudFilters.PointCloudReturnFilter")],N);const j=N;var K;let $=K=class extends _{constructor(e){super(e),this.mode="exclude",this.type="value",this.values=[]}clone(){return new K({field:this.field,mode:this.mode,values:(0,l.o8)(this.values)})}};(0,i.Cg)([(0,h.MZ)({type:["exclude","include"],json:{write:{enabled:!0,isRequired:!0}}})],$.prototype,"mode",void 0),(0,i.Cg)([(0,E.e)({pointCloudValueFilter:"value"})],$.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],$.prototype,"values",void 0),$=K=(0,i.Cg)([(0,h.$K)("esri.layers.pointCloudFilters.PointCloudValueFilter")],$);const q={key:"type",base:_,typeMap:{value:$,bitfield:U,return:j}};var k,B=r(10873),D=r(20437),V=r(17036),H=r(93705),W=r(63531),z=r(51857);let J=k=class extends z.A{constructor(e){super(e),this.type="point-cloud-rgb",this.field=null}clone(){return new k({...this.cloneProperties(),field:(0,l.o8)(this.field)})}};(0,i.Cg)([(0,E.e)({pointCloudRGBRenderer:"point-cloud-rgb"})],J.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{isRequired:!0}}})],J.prototype,"field",void 0),J=k=(0,i.Cg)([(0,h.$K)("esri.renderers.PointCloudRGBRenderer")],J);const Y=J;var Q=r(69846),X=r(48425);const ee={key:"type",base:z.A,typeMap:{"point-cloud-class-breaks":W.A,"point-cloud-rgb":Y,"point-cloud-stretch":Q.A,"point-cloud-unique-value":X.A},errorContext:"renderer"};var te=r(24212),re=r(30291),ie=r(36005),ne=r(43937);const ae=(0,V.p)();let se=class extends((0,P.w6)((0,b.b)((0,A.q)((0,M.A)((0,T.j)((0,d.M)((0,C.d)((0,I.p)((0,s.OU)(L.A)))))))))){constructor(...e){super(...e),this.operationalLayerType="PointCloudLayer",this.popupEnabled=!0,this.popupTemplate=null,this.opacity=1,this.filters=[],this.fields=null,this.fieldsIndex=null,this.outFields=null,this.path=null,this.legendEnabled=!0,this.renderer=null,this.type="point-cloud",this.graphicOrigin=new S(this),this.rootPagePromise=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get defaultPopupTemplate(){return this.attributeStorageInfo?this.createPopupTemplate():null}getFieldDomain(e){const t=this.fieldsIndex.get(e);return t?.domain?t.domain:null}readServiceFields(e,t,r){return Array.isArray(e)?e.map(e=>{const t=new D.A;return"FieldTypeInteger"===e.type&&((e=(0,l.o8)(e)).type="esriFieldTypeInteger"),t.read(e,r),t}):Array.isArray(t.attributeStorageInfo)?t.attributeStorageInfo.map(e=>new D.A({name:e.name,type:"ELEVATION"===e.name?"double":"integer"})):null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}writeRenderer(e,t,r,i){(0,p.sM)("layerDefinition.drawingInfo.renderer",e.write({},i),t)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(c.QP),await this._fetchService(e?.signal),await this._fetchRootPageAndUpdateExtent(e?.signal)}async _fetchRootPageAndUpdateExtent(e){this.rootPagePromise=this._fetchRootPage(e),this.rootPagePromise.catch(()=>{});const{fullExtent:t}=this;if(null!=t&&!t.hasZ){const e=await this.rootPagePromise;(0,P.qM)(t,e?.nodes?.[0]?.obb)}}async _fetchRootPage(e){const t=`${this.parsedUrl?.path??""}/nodepages/0`;try{return(await(0,a.A)(t,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data}catch(e){throw new o.A("pointcloudlayer:root-page-missing","Root page missing.",{error:e,url:t})}}createPopupTemplate(e){const t=(0,re.tn)(this,e);return t&&(this._formatPopupTemplateReturnsField(t),this._formatPopupTemplateRGBField(t)),t}_formatPopupTemplateReturnsField(e){const t=this.fieldsIndex.get("RETURNS");if(!t)return;const r=e.fieldInfos?.find(e=>e.fieldName===t.name);if(!r)return;const i=new H.A({name:"pcl-returns-decoded",title:t.alias||t.name,expression:`\n var returnValue = $feature.${t.name};\n return (returnValue % 16) + " / " + Floor(returnValue / 16);\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-returns-decoded"}_formatPopupTemplateRGBField(e){const t=this.fieldsIndex.get("RGB");if(!t)return;const r=e.fieldInfos?.find(e=>e.fieldName===t.name);if(!r)return;const i=new H.A({name:"pcl-rgb-decoded",title:t.alias||t.name,expression:`\n var rgb = $feature.${t.name};\n var red = Floor(rgb / 65536, 0);\n var green = Floor((rgb - (red * 65536)) / 256,0);\n var blue = rgb - (red * 65536) - (green * 256);\n\n return "rgb(" + red + "," + green + "," + blue + ")";\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-rgb-decoded"}async queryCachedStatistics(e,t){if(await this.load(t),!this.attributeStorageInfo)throw new o.A("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new o.A("pointcloudlayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.attributeStorageInfo)if(e.name===r.name){const r=(0,y.fj)(this.parsedUrl?.path??"",`./statistics/${e.key}`);return(0,a.A)(r,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then(e=>e.data)}throw new o.A("pointcloudlayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"PointCloud"!==e.layerType)throw new o.A("pointcloudlayer:layer-type-not-supported","PointCloudLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"});if(this.version.major>2)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"})}hasCachedStatistics(e){return null!=this.attributeStorageInfo&&this.attributeStorageInfo.some(t=>t.name===e)}_getTypeKeywords(){return["PointCloud"]}_validateElevationInfo(e){(0,te.XF)(u.A.getLogger(this),(0,te.B)("Point cloud layers","absolute-height",e)),(0,te.XF)(u.A.getLogger(this),(0,te.tW)("Point cloud layers",e))}};(0,i.Cg)([(0,h.MZ)({type:["PointCloudLayer"]})],se.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.MZ)(B.M6)],se.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],se.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],se.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{write:!1,read:!1,origins:{"web-document":{write:!1,read:!1}}}})],se.prototype,"opacity",void 0),(0,i.Cg)([(0,h.MZ)({type:["show","hide"]})],se.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)({types:[q],json:{origins:{service:{read:{source:"filters"}}},name:"layerDefinition.filters",write:!0}})],se.prototype,"filters",void 0),(0,i.Cg)([(0,h.MZ)({type:[D.A]})],se.prototype,"fields",void 0),(0,i.Cg)([(0,h.MZ)(ae.fieldsIndex)],se.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,ie.w)("service","fields",["fields","attributeStorageInfo"])],se.prototype,"readServiceFields",null),(0,i.Cg)([(0,h.MZ)(ae.outFields)],se.prototype,"outFields",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],se.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,h.MZ)(B.Yj)],se.prototype,"elevationInfo",null),(0,i.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],se.prototype,"path",void 0),(0,i.Cg)([(0,h.MZ)(B.fV)],se.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,h.MZ)({types:ee,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:{target:{"layerDefinition.drawingInfo.renderer":{types:ee},"layerDefinition.drawingInfo.transparency":{type:Number}}}}})],se.prototype,"renderer",void 0),(0,i.Cg)([(0,ne.K)("renderer")],se.prototype,"writeRenderer",null),(0,i.Cg)([(0,h.MZ)({json:{read:!1},readOnly:!0})],se.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],se.prototype,"graphicOrigin",void 0),se=(0,i.Cg)([(0,h.$K)("esri.layers.PointCloudLayer")],se);const oe=se},52136(e,t,r){var i=r(32198),n=r(91429);r.d(t,["p",0,e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},18768(e,t,r){var i=r(32198),n=r(53966),a=r(91429),s=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,s.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,s.Jf)(e,n.A.getLogger(this)))}};return(0,i.Cg)([(0,a.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,a.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var i=r(32198),n=r(91429);r.d(t,["d",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},34287(e,t,r){var i=r(32198),n=r(49186),a=r(84952),s=r(91429),o=r(78888),l=r(89317),u=r(45917),d=r(49422),p=r(10873),c=r(6345),y=r(79677),h=r(59923),g=r(36005),f=r(43937);r.d(t,["q",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.persistenceEnabled=!0,this.title=null}readId(e,t,r){return"Group Layer"===r?.portalItem?.type?void 0:e}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,d.R)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r){e&&(t[r]=e)}writeTitle(e,t){t.title=e??"Layer"}readVisibilityTimeExtent(e){return e?y.A.fromArray(e):null}writeVisibilityTimeExtent(e,t,r,i){e&&"tables"!==i.layerContainerType&&(e.isEmpty?i?.messages&&i.messages.push(new n.A("layer:invalid-visibilityTimeExtent","visibilityTimeExtent cannot be empty")):t[r]=e.toArray())}read(e,t){t&&(t.layer=this),(0,u.t)(this,e,t=>super.read(e,t),t)}write(e,t){if(!this.persistenceEnabled&&!t?.ignorePersistenceEnabled)return null;if(t?.origin&&!(0,c.Bu)(t,this.operationalLayerType,this.type))return(0,h.U4)(t,this),null;const r=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter(e=>e instanceof n.A&&"web-document-write:property-required"===e.name).length;return(0,a.w8)(r?.url)?(t?.messages?.push(new n.A("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:r}beforeSave(){}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],r.prototype,"id",void 0),(0,i.Cg)([(0,g.w)("id",["id"])],r.prototype,"readId",null),(0,i.Cg)([(0,s.MZ)(p.C1)],r.prototype,"listMode",void 0),(0,i.Cg)([(0,f.K)("listMode")],r.prototype,"writeListMode",null),(0,i.Cg)([(0,s.MZ)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1},"web-scene":{name:"layerType",read:!1,write:{enabled:!0,ignoreOrigin:!0,layerContainerTypes:l.K,isRequired:!0}}}}})],r.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.K)("operationalLayerType")],r.prototype,"writeOperationalLayerType",null),(0,i.Cg)([(0,s.MZ)(p.ke)],r.prototype,"opacity",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,readOnly:!1})],r.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],r.prototype,"title",void 0),(0,i.Cg)([(0,f.K)("title"),(0,f.K)(["web-scene"],"title")],r.prototype,"writeTitle",null),(0,i.Cg)([(0,s.MZ)({type:y.A,json:{origins:{"web-scene":{write:{layerContainerTypes:l.K}}}}})],r.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,g.w)("visibilityTimeExtent")],r.prototype,"readVisibilityTimeExtent",null),(0,i.Cg)([(0,f.K)(["portal-item","web-map","web-scene"],"visibilityTimeExtent",{visibilityTimeExtent:{type:[[o.jz,o.Uv]]}})],r.prototype,"writeVisibilityTimeExtent",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"visibility",write:{layerContainerTypes:l.K}}})],r.prototype,"visible",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.OperationalLayer")],r),r}])},8303(e,t,r){var i=r(32198),n=r(92602),a=r(70333),s=r(56507),o=r(60999),l=r(49186),u=r(36563),d=r(53966),p=r(97768),c=r(17676),y=r(84952),h=r(91429),g=r(77548),f=r(20655),m=r(80812),v=r(41318),w=r(10407),S=r(36005),L=r(43937);const I={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let b=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,p.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:i}=await r.e(1204).then(()=>r(41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;const i=t?.signal?null:new AbortController;try{const{reload:n}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,u.rE)(i),"reloadFromPortal"),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,c.zf)(e)||d.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!a.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let s,o;if(n)s=r.portal.url;else try{s=await(0,g.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!s||!(0,y.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(a.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const l=!0,u=!1,d=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:d}};try{if(n?await r.reload():(r=new m.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,c.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:d}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?a.id?.findCredential(this.url):null;if(!t)return!0;const r=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.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=a.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=f.A.getDefault();if(n&&n.loaded&&(0,y.S8)(n.restUrl)===(0,y.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,d=await(0,o.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return d.ok?v.A.fromJSON(d.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return r&&i&&!(0,y.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,h.MZ)({type:m.default})],b.prototype,"portalItem",null),(0,i.Cg)([(0,S.w)("web-document","portalItem",["itemId"])],b.prototype,"readPortalItem",null),(0,i.Cg)([(0,L.K)("web-document","portalItem",{itemId:{type:String}})],b.prototype,"writePortalItem",null),(0,i.Cg)([(0,h.MZ)({clonable:!1})],b.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasUpdateItemPrivileges",void 0),b=(0,i.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],b),b}])},25036(e,t,r){var i=r(32198),n=r(91429);r.d(t,["j",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,n.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},58947(e,t,r){r.d(t,{w6:()=>b,qM:()=>M});var i=r(32198),n=r(56507),a=r(49186),s=r(53966),o=r(17676),l=r(91429),u=r(46130),d=r(5443),p=r(54239),c=r(16930),y=r(60694),h=r(10873),g=r(83898),f=r(73179);var m=r(20655),v=r(80812),w=r(88788),S=r(91682),L=r(26121),I=r(36005);const b=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.spatialReference=null,this.fullExtent=null,this.heightModelInfo=null,this.minScale=0,this.maxScale=0,this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.url=null,this.indexInfo=null,this._debouncedSaveOperations=(0,o.sg)(async(e,t,r)=>{switch(e){case 0:return this._save(t);case 1:return this._saveAs(r,t)}})}readSpatialReference(e,t){return A(t)}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const i=null==e.spatialReference?{...e,spatialReference:A(t)}:e;return d.A.fromJSON(i,r)}const i=t.store,n=A(t);return null==n||null==i?.extent||!Array.isArray(i.extent)||i.extent.some(e=>e<C)?null:new d.A({xmin:i.extent[0],ymin:i.extent[1],xmax:i.extent[2],ymax:i.extent[3],spatialReference:n})}parseVersionString(e){const t={major:Number.NaN,minor:Number.NaN,versionString:e},r=e.split(".");return r.length>=2&&(t.major=parseInt(r[0],10),t.minor=parseInt(r[1],10)),t}readVersion(e,t){const r=t.store,i=null!=r.version?r.version.toString():"";return this.parseVersionString(i)}readTitlePortalItem(e){return"item-title"!==this.sublayerTitleMode?void 0:e}readTitleService(e,t){if("item-title"===this.sublayerTitleMode)return this.url?(0,y.yG)(this.url,t.name):t.name;let r=t.name;if(!r&&this.url){const e=(0,y.qg)(this.url);null!=e&&(r=e.title)}const i=this.portalItem?.title;return"item-title-and-service-name"===this.sublayerTitleMode&&i&&(r=i+" - "+r),(0,y.cr)(r)}get parsedUrl(){return(0,f.h)(this,{separator:"layers"})}async _fetchIndexAndUpdateExtent(e,t){this.indexInfo=(0,g.F)(this.parsedUrl?.path??"",this.rootNode,e,this.customParameters,this.apiKey,s.A.getLogger(this),t),this.indexInfo.catch(()=>{});const{fullExtent:r}=this;null==r||r.hasZ||this._updateExtent(r,await this.indexInfo)}_updateExtent(e,t){if("page"===t?.type){const r=t.rootIndex%t.pageSize,i=t.rootPage?.nodes?.[r];M(e,i?.obb)}else if("node"===t?.type){const r=t.rootNode?.mbs;if(!Array.isArray(r)||4!==r.length||r[0]<C)return;const i=r[2],n=r[3];e.zmin=i-n,e.zmax=i+n}}async _fetchService(e){if(null==this.url)throw new a.A("sceneservice:url-not-set","Scene service can not be loaded without valid portal item or url");if(null==this.layerId&&/SceneServer\/*$/i.test(this.url)){const t=await this._fetchFirstLayerId(e);null!=t&&(this.layerId=t)}return this._fetchServiceLayer(e)}async _fetchFirstLayerId(e){const t=await(0,n.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(t.data&&Array.isArray(t.data.layers)&&t.data.layers.length>0)return t.data.layers[0].id}async _fetchServiceLayer(e){const t=await(0,n.A)(this.parsedUrl?.path??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});t.ssl&&this.url&&(this.url=this.url.replace(/^http:/i,"https:"));let r=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(r=!0),r)return this._fetchVoxelServiceLayer();const i=t.data;this.read(i,this._getServiceContext()),this.validateLayer(i)}async _fetchVoxelServiceLayer(e){const t=(await(0,n.A)(this.parsedUrl?.path+"/layer",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,this._getServiceContext()),this.validateLayer(t)}_getServiceContext(){return{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}}async _ensureLoadBeforeSave(){await this.load(),"beforeSave"in this&&"function"==typeof this.beforeSave&&await this.beforeSave()}validateLayer(e){}async _saveAs(e,t){const r={...R,...t};let i=v.default.from(e);if(!i)throw new a.A("sceneservice:portal-item-required","_saveAs() requires a portal item to save to");i.id&&(i=i.clone(),i.id=null);const n=i.portal||m.A.getDefault();await this._ensureLoadBeforeSave(),i.type=P,i.portal=n;const s=(0,w.m)(i,"portal-item",{withResources:!0}),o={layers:[this.write({},s)]};return await Promise.all(s.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(o,s,r),this.url&&(i.url=this.url),i.title||(i.title=this.title),T(i,r,1),await n.signIn(),await n.user.addItem({item:i,folder:r?.folder,data:o}),await(0,S.r)(this.resourceReferences,s),this.portalItem=i,(0,u.v)(s),s.portalItem=i,i}async _save(e){const t={...R,...e};if(!this.portalItem)throw new a.A("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService");if(this.portalItem.type!==P)throw new a.A("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${P}"`);await this._ensureLoadBeforeSave();const r=(0,w.m)(this.portalItem,"portal-item",{withResources:!0}),i=this.write({},r),s=await async function(e,t){const r=await e.fetchData("json")??{};return Array.isArray(r.layers)||(r.layers=await async function(e,t){const r=await async function(e){const t=F(e.url);if(!t)return null;const r=(await(0,n.A)(t,{query:{f:"json"},responseType:"json"})).data.layers;if(!Array.isArray(r))return null;const i=r.filter(({id:e})=>null!=e).map(({id:e})=>({id:e}));return i.length?i:null}(e).catch(()=>null);return r?.some(({id:e})=>e===t.id)?r:[t]}(e,t)),function(e,t){const r=e.findIndex(({id:e})=>e===t.id);-1===r?e.push(t):e[r]=t}(r.layers,t),r}(this.portalItem,i);await Promise.all(r.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(s,r,t);const o=function(e,t){return t&&function(e,t){const r=F(e);return!!r&&r===_(t).url}(e.url,t)?e.url:t}(this.portalItem,this.url);return o&&(this.portalItem.url=o),this.portalItem.title||(this.portalItem.title=this.title),T(this.portalItem,t,0),await(0,S.S)(this.portalItem,s,this.resourceReferences,r),(0,u.v)(r),this.portalItem}async _validateAgainstJSONSchema(e,t,r){const i=r?.validationOptions;(0,L.ci)(t,{errorName:"sceneservice:save"},{ignoreUnsupported:i?.ignoreUnsupported,supplementalUnsupportedErrors:["scenemodification:unsupported"]});const n=i?.enabled,o=null;if(n&&o){const t=(await o()).validate(e,r.portalItemLayerType);if(!t.length)return;const n=`Layer item did not validate:\n${t.join("\n")}`;if(s.A.getLogger(this).error(`_validateAgainstJSONSchema(): ${n}`),"throw"===i.failPolicy){const e=t.map(e=>new a.A("sceneservice:schema-validation",e));throw new a.A("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{validationErrors:e})}}}};return(0,i.Cg)([(0,l.MZ)(h.id)],r.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({type:c.A})],r.prototype,"spatialReference",void 0),(0,i.Cg)([(0,I.w)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readSpatialReference",null),(0,i.Cg)([(0,l.MZ)({type:d.A})],r.prototype,"fullExtent",void 0),(0,i.Cg)([(0,I.w)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readFullExtent",null),(0,i.Cg)([(0,l.MZ)({readOnly:!0,type:p.A})],r.prototype,"heightModelInfo",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,i.Cg)([(0,I.w)("version",["store.version"])],r.prototype,"readVersion",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:!1}})],r.prototype,"sublayerTitleMode",void 0),(0,i.Cg)([(0,l.MZ)({type:String})],r.prototype,"title",void 0),(0,i.Cg)([(0,I.w)("portal-item","title")],r.prototype,"readTitlePortalItem",null),(0,i.Cg)([(0,I.w)("service","title",["name"])],r.prototype,"readTitleService",null),(0,i.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],r.prototype,"layerId",void 0),(0,i.Cg)([(0,l.MZ)((0,f.b)({separator:"layers"}))],r.prototype,"url",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"store",void 0),(0,i.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],r.prototype,"rootNode",void 0),r=(0,i.Cg)([(0,l.$K)("esri.layers.mixins.SceneService")],r),r},C=-1e38;function A(e){if(null!=e.spatialReference)return c.A.fromJSON(e.spatialReference);const t=e.store,r=t.indexCRS||t.geographicCRS,i=r&&parseInt(r.slice(r.lastIndexOf("/")+1),10);return null!=i?new c.A(i):null}function M(e,t){if(null==t?.center||null==t.halfSize)throw new a.A("sceneservice:invalid-node-page","Invalid node page.");if(t.center[0]<C)return;const r=t.halfSize,i=t.center[2],n=Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);e.zmin=i-n,e.zmax=i+n}function T(e,t,r){e.typeKeywords||(e.typeKeywords=[]);const i=t.getTypeKeywords();for(const t of i)e.typeKeywords.push(t);e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t),1===r&&(e.typeKeywords=e.typeKeywords.filter(e=>"Hosted Service"!==e)))}const P="Scene Service",R={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}},x={layerId:null};function F(e){if(!e)return null;const t=_(e);if(null!=t.layerId)return null;const r=(0,y.qg)(t.url);return null==r||"SceneServer"===r.serverType?t.url:null}function _(e){return(0,y.HZ)({layer:x,url:e,nonStandardUrlAllowed:!0})}},95466(e,t,r){r.d(t,{A:()=>u});var i=r(49186),n=r(53966),a=r(12195),s=r(30524),o=r(98623),l=r(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],p(e))}static fromLayerJSON(e){return new u(e.fields??[],p(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,i=(0,s.GZ)(t);if(t&&i){const n=(0,s.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,s.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,s.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,s.te)(e)||(0,s.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,s.te)(e)||(0,s.Xz)(e)||e.nullable||void 0!==(0,s.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){return(0,s.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}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?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):d.has(t.type)?o.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,s.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,a.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const d=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function p(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,a=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",p=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,c=n?function(e){return"timeZone"in e}(n)?n.timeZone??p:n.dateFieldsTimeReference?(0,l.ZS)(n.dateFieldsTimeReference):p??"UTC":null,y=i?function(e){return"timeZone"in e}(i)?i.timeZone??p:i.timeReference?(0,l.ZS)(i.timeReference):p:null,h=new Map([[(0,s.NF)(n?.creationDateField??""),c],[(0,s.NF)(n?.editDateField??""),c],[(0,s.NF)(a),y],[(0,s.NF)(u),y]]);for(const{name:i,type:n}of e.fields)if(d.has(n))t.set(i,o.L);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,o.L);else{const e=h.get((0,s.NF)(i??""))??p;t.set(i,e)}return t}},83898(e,t,r){r.d(t,{F:()=>a});var i=r(56507),n=r(49186);async function a(e,t,r,a,s,o,l){let u=null;if(null!=r){const t=`${e}/nodepages/`,n=t+Math.floor(r.rootIndex/r.nodesPerPage);try{return{type:"page",rootPage:(await(0,i.A)(n,{query:{f:"json",...a,token:s},responseType:"json",signal:l})).data,rootIndex:r.rootIndex,pageSize:r.nodesPerPage,lodMetric:r.lodSelectionMetricType,urlPrefix:t}}catch(e){null!=o&&o.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",n,e),u=e}}if(!t)return null;const d=t?.split("/").pop(),p=`${e}/nodes/`,c=p+d;try{return{type:"node",rootNode:(await(0,i.A)(c,{query:{f:"json",...a,token:s},responseType:"json",signal:l})).data,urlPrefix:p}}catch(e){throw new n.A("sceneservice:root-node-missing","Root node missing.",{pageError:u,nodeError:e,url:c})}}},17036(e,t,r){r.d(t,{p:()=>l});var i=r(44208),n=r(53966),a=r(20437),s=r(95466),o=r(30524);function l(){return{fields:{type:[a.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");n.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||n.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,o.DB)(this.fieldsIndex,e)}}}}},6345(e,t,r){r.d(t,{Bu:()=>w,VH:()=>v});var i=r(44208);const n={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},a={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",get ParquetLayer(){return(0,i.A)("parquetlayer-persistence-enabled")?"ParquetLayer":"UnsupportedLayer"},SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},s={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},o={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},l={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},u={ArcGISTiledElevationServiceLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CSV:"CSVLayer",CatalogLayer:"CatalogLayer",GaussianSplatLayer:"GaussianSplatLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",Object3DTilesLayer:"UnsupportedLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},p={ArcGISFeatureLayer:"FeatureLayer"},c={...a,LinkChartLayer:"LinkChartLayer"},y=n,h=s,g={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",BuildingSceneLayer:"BuildingSceneLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",MediaLayer:"MediaLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",SubtypeGroupLayer:"SubtypeGroupLayer",WCS:"WCSLayer"},f=s;function m(e){switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap-base-layers":return o;case"basemap-ground-layers":return l;case"ground":return u;case"tables":return p;default:return d}case"link-chart":switch(e.layerContainerType){case"basemap-base-layers":return y;case"tables":return h;default:return c}default:switch(e.layerContainerType){case"basemap-base-layers":return n;case"tables":return s;case"ground":case"basemap-ground-layers":return;default:return a}}}function v(e,t){if(!t)return"UnknownLayer";if("DefaultTileLayer"===t){let t="UnknownLayer";if("web-scene"===e.origin)switch(e.layerContainerType){case"operational-layers":case"basemap-base-layers":t="TileLayer";break;case"ground":t="ElevationLayer"}else switch(e.layerContainerType){case"basemap-base-layers":case"operational-layers":t="TileLayer"}return t}return m(e)?.[t]??"UnknownLayer"}function w(e,t,r){if(!e?.origin)return!1;switch(e.origin){case"web-map":case"link-chart":if("operational-layers"===e.layerContainerType&&"ArcGISDimensionLayer"===t&&"dimension-feature"!==r)return!1;break;case"web-scene":if("operational-layers"===e.layerContainerType)switch(t){case"ArcGISDimensionLayer":if("dimension"!==r)return!1;break;case"ArcGISTiledElevationServiceLayer":return!1}break;case"portal-item":if("ArcGISDimensionLayer"===t&&"dimension-feature"!==r)return!1}const i=function(e){if("portal-item"===e.origin)switch(e.layerContainerType){case"basemap-base-layers":case"ground":case"basemap-ground-layers":return;case"tables":return f;default:return g}return m(e)}(e)?.[t];return null!=i&&"UnknownLayer"!==i&&"UnsupportedLayer"!==i}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),n=r(53966),a=r(84952),s=r(60694),o=r(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},a=(0,i.o8)(o.OZ),l=a.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,n){(0,s.LS)(this,e,r,t,n)}),{...a,set:function(e){if(null==e)return void this._set("url",e);const r=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:n.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){const{separator:r}=t??{},i=(0,a.An)(e.url);return null!=i&&(null!=e.dynamicDataSource?i.path=(0,a.fj)(i.path,"dynamicLayer"):null!=e.layerId&&(i.path=(0,a.fj)(i.path,r??"",e.layerId.toString()))),i}},88788(e,t,r){r.d(t,{m:()=>s,v:()=>a});var i=r(84952),n=r(20655);function a(e,t){return{...o(e,t),readResourcePaths:[]}}function s(e,t,r){const n=(0,i.An)(r?.forceNewItemContext?null:e.itemUrl);return{...o(e,t,r),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function o(e,t,r){return{origin:t,url:(0,i.An)(r?.forceNewItemContext?null:e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>s,OM:()=>u,Sm:()=>d,Y:()=>o,bK:()=>l,sQ:()=>p});var i=r(99917),n=r(16930),a=r(28735);function s(e,t){if(!o(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return o(e,c.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function d(e,t,r){r?s(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,a.ci)(e);const r=n.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const c={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",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",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function y(e){const{portal:t,isOrgItem:r,itemControl:i}=e,n=t.user?.privileges;let a=!n||n.includes("features:user:edit"),s=!!r&&!!n?.includes("features:user:fullEdit");const o="update"===i||"admin"===i;return o?s=a=!0:s&&(a=!0),{features:{edit:a,fullEdit:s},content:{updateItem:o}}}r.d(t,["mm",0,c])},15804(e,t,r){r.d(t,{addOrUpdateResources:()=>o,bg:()=>c,cL:()=>p,fetchResources:()=>s,removeAllResources:()=>u,removeResource:()=>l});var i=r(56507),n=r(49186),a=r(84952);async function s(e,t={},r){await e.load(r);const i=(0,a.fj)(e.itemUrl,"resources"),{start:n=1,num:s=10,sortOrder:o="asc",sortField:l="resource"}=t,u={query:{start:n,num:s,sortOrder:o,sortField:l,token:e.apiKey},signal:r?.signal},d=await e.portal.request(i,u);return{total:d.total,nextStart:d.nextStart,resources:d.resources.map(({created:t,size:r,resource:i})=>({created:new Date(t),size:r,resource:e.resourceFromPath(i)}))}}async function o(e,t,r,i){const s=new Map;for(const{resource:e,content:i,compress:a,access:o}of t){if(!e.hasPath())throw new n.A(`portal-item-resource-${r}:invalid-path`,"Resource does not have a valid path");const[t,l]=d(e.path),u=`${t}/${a??""}/${o??""}`;s.has(u)||s.set(u,{prefix:t,compress:a,access:o,files:[]}),s.get(u).files.push({fileName:l,content:i})}await e.load(i);const o=(0,a.fj)(e.userItemUrl,"add"===r?"addResources":"updateResources");for(const{prefix:t,compress:r,access:a,files:l}of s.values()){const s=25;for(let u=0;u<l.length;u+=s){const d=l.slice(u,u+s),p=new FormData;t&&"."!==t&&p.append("resourcesPrefix",t),r&&p.append("compress","true"),a&&p.append("access",a);let c=0;for(const{fileName:e,content:t}of d)p.append("file"+ ++c,t,e);p.append("f","json");try{await e.portal.request(o,{method:"post",body:p,signal:i?.signal})}catch(e){if(i?.ignoreResourceCopyErrors&&e instanceof n.A&&"CONT_00942"===e.details?.messageCode)continue;throw e}}}}async function l(e,t,r){if(!t.hasPath())throw new n.A("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);const i=(0,a.fj)(e.userItemUrl,"removeResources");await e.portal.request(i,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function u(e,t){await e.load(t);const r=(0,a.fj)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function d(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function p(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,i.A)(e.url,{responseType:"blob"})).data}function c(e,t){if(!e.hasPath())return null;const[r,,i]=function(e){const[t,r]=function(e){const t=(0,a.Zo)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[i,n]=d(t);return[i,n,r]}(e.path);return e.portalItem.resourceFromPath((0,a.fj)(r,t+i))}},24212(e,t,r){r.d(t,{$7:()=>l,B:()=>o,M7:()=>p,XF:()=>d,tW:()=>u,w7:()=>s});var i=r(56512),n=r(86211),a=r(16271);function s(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?c:y}(e).mode}(null==e||(e.hasZ??!1),t)}function o(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function l(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function d(e,t){t&&e.warn(".elevationInfo=",t)}function p(e){return(e?.offset??0)*(0,a.Ao)(e?.unit)}(0,i.B)((e,t,r)=>{if(!e)return 0;if("decimal-degrees"===t)return 0;const i="unknown"!==t&&t?t:"meters",a=(0,n.mq)(r);return a?(0,n.oU)(e,i,a):0});const c={mode:"absolute-height",offset:0},y={mode:"on-the-ground",offset:null}},30291(e,t,r){r.d(t,{tn:()=>u});var i=r(37838),n=r(30524),a=r(41227),s=r(89893),o=r(66159),l=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},y){if(!r)return null;const g=function(e,t){const r=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:r}){const i=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===i&&(e=e.slice()),!0!==r&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||h,sortDisabled:t?.sortDisabled}).map(t=>new a.A({fieldName:t.name,isEditable:(0,n.R$)(t,e),label:t.alias,format:c(t),visible:d(t,{...e,visibleFieldNames:r})}))}({editFieldsInfo:t,fields:r,objectIdField:l},y);if(!g.length)return null;const f=function(e){const t=(0,n.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),m=[new o.A,new s.A];return new i.A({title:f,content:m,fieldInfos:g})}const d=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:y(e)?-1:y(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function c(e){switch(e.type){case"small-integer":case"integer":return new l.A({digitSeparator:!0,places:0});case"single":case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,n.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function y(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const h=["geometry","blob","raster","guid","xml"]},91682(e,t,r){r.d(t,{S:()=>l,r:()=>o});var i=r(49186),n=r(17676),a=r(13069),s=r(15804);async function o(e,t,r){const i=await u(e,t,r);await d(i,t,r)}async function l(e,t,r,i,n){const a=await u(r,i,n);await e.update({data:t}),await d(a,i,n)}async function u(e,t,o){if(!t?.resources)return;const l=function(e,t){const{portalItem:r,portalItemResourcePath:i}=e,{portalItem:n,portalItemResourcePath:a}=t;return r===n&&(!(i||a)||i===a)}(e,t)?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem,e.portalItemResourcePath=t.portalItemResourcePath;const u=new Set(t.resources.toKeep.map(e=>e.resource.path)),d=new Set,p=[];u.forEach(t=>{l.delete(t),e.paths.push(t)});const c=[],y=[],h=[];for(const r of t.resources.toUpdate)if(l.delete(r.resource.path),u.has(r.resource.path)||d.has(r.resource.path)){const{resource:t,content:i,finish:n}=r,o=(0,s.bg)(t,(0,a.lk)());e.paths.push(o.path),c.push({resource:o,content:await(0,s.cL)(i),compress:r.compress}),n&&h.push(()=>n(o))}else{e.paths.push(r.resource.path),y.push({resource:r.resource,content:await(0,s.cL)(r.content),compress:r.compress});const t=r.finish;t&&h.push(()=>t(r.resource)),d.add(r.resource.path)}for(const r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{c.push({resource:r.resource,content:await(0,s.cL)(r.content),compress:r.compress});const e=r.finish;e&&h.push(()=>e(r.resource))}if(c.length||y.length){const{addOrUpdateResources:e}=await Promise.resolve().then(()=>r(15804));await e(t.portalItem,c,"add",o),await e(t.portalItem,y,"update",o)}if(h.forEach(e=>e()),0===p.length)return l;const g=await(0,n.Ol)(p);if((0,n.Te)(o),g.length>0)throw new i.A("save:resources","Failed to save one or more resources",{errors:g});return l}async function d(e,t,r){if(!e||!t.portalItem)return;const i=[];for(const n of e){const e=t.portalItem.resourceFromPath(n);i.push(e.portalItem.removeResource(e,r))}await(0,n.Lx)(i)}},26121(e,t,r){r.d(t,{I6:()=>l,ci:()=>o,dL:()=>s});var i=r(49186),n=r(77548),a=r(59923);async function s(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function o(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new i.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>(0,a.GL)("url",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:i}=r;e&&(n=n.filter(({name:e})=>!(a.MG.has(e)||t.includes(e)))),i&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new i.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}function l(e){return(0,n.qd)(e).some(e=>!!e.charts?.length)}}}]);
|