@arcgis/core 5.2.0-next.147 → 5.2.0-next.149
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/03afeefb9d16b6f1d844.js +1 -0
- package/assets/esri/core/workers/chunks/09b9a886363bc1197785.js +1 -0
- package/assets/esri/core/workers/chunks/0ad0484ffcbe4ad21bd3.js +1 -0
- package/assets/esri/core/workers/chunks/{72019baeba520edb6bb0.js → 112befb3b5b406f29298.js} +1 -1
- package/assets/esri/core/workers/chunks/12a7997a40c77f5c9160.js +1 -0
- package/assets/esri/core/workers/chunks/18787aa685524b958561.js +1 -0
- package/assets/esri/core/workers/chunks/{776ae25a34352d3468bc.js → 19743dedaa40446259ec.js} +1 -1
- package/assets/esri/core/workers/chunks/{6dd0b79fa3a629ab4f27.js → 1bca39e0e651426bdbb5.js} +1 -1
- package/assets/esri/core/workers/chunks/{8b1c17cc52d989924313.js → 21f45a47708e6e43147f.js} +1 -1
- package/assets/esri/core/workers/chunks/2c626f525f3483c03477.js +1 -0
- package/assets/esri/core/workers/chunks/2d9a1f23ec6ce90723ac.js +1 -0
- package/assets/esri/core/workers/chunks/{7a05b18f655c1167ce0a.js → 2ef5237e4c876d6a4ee0.js} +1 -1
- package/assets/esri/core/workers/chunks/{79c83f4e066682543ca1.js → 320e5942a098dd104366.js} +1 -1
- package/assets/esri/core/workers/chunks/407f1e8176f3b0af73b4.js +1 -0
- package/assets/esri/core/workers/chunks/{1ba0dfbe0958cdbd7c9f.js → 42fd2a7b22b03dacc6a7.js} +1 -1
- package/assets/esri/core/workers/chunks/444e5f214abce3d607cd.js +1 -0
- package/assets/esri/core/workers/chunks/45367aa8e5c5d574de94.js +1 -0
- package/assets/esri/core/workers/chunks/47d074136a7f8e551a9a.js +1 -0
- package/assets/esri/core/workers/chunks/4a6b92ecbb1f1c55cc43.js +1 -0
- package/assets/esri/core/workers/chunks/4fc337240e7cddd0e988.js +1 -0
- package/assets/esri/core/workers/chunks/{24cc7b6b5e307a89cdd5.js → 50036a323c2e7f155311.js} +1 -1
- package/assets/esri/core/workers/chunks/5116b569a8dbda4910c8.js +1 -0
- package/assets/esri/core/workers/chunks/54b18559280a7d2a8d93.js +1 -0
- package/assets/esri/core/workers/chunks/{b2737120c5999b2f3909.js → 55dcbf296d8d0092e473.js} +1 -1
- package/assets/esri/core/workers/chunks/{5c855af73ee3c3e764fb.js → 5732fdf6d8b87739aeea.js} +1 -1
- package/assets/esri/core/workers/chunks/5924ec3167a2941ebb1f.js +1 -0
- package/assets/esri/core/workers/chunks/5fa1ec357c3ad1f91bc7.js +1 -0
- package/assets/esri/core/workers/chunks/606ea251075fe81a1206.js +1 -0
- package/assets/esri/core/workers/chunks/{ceb680688fe7e570a774.js → 608be1172a908e92b9f1.js} +1 -1
- package/assets/esri/core/workers/chunks/{6f358116f79021ff9687.js → 612104dff305ff062dfa.js} +2 -2
- package/assets/esri/core/workers/chunks/6299be5e7e26bf3c6859.js +1 -0
- package/assets/esri/core/workers/chunks/68be3fb88ca61f82fb90.js +1 -0
- package/assets/esri/core/workers/chunks/6b04285726b803b82564.js +1 -0
- package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +1 -0
- package/assets/esri/core/workers/chunks/6c9acd9e4e201dc380e9.js +1 -0
- package/assets/esri/core/workers/chunks/6eb5cc8ddf772c0062e6.js +1 -0
- package/assets/esri/core/workers/chunks/709e019885822b1f6f3e.js +1 -0
- package/assets/esri/core/workers/chunks/731018c0deffc41ffc97.js +1 -0
- package/assets/esri/core/workers/chunks/7320a4913b6cad7cc5d7.js +1 -0
- package/assets/esri/core/workers/chunks/7449568eb2305bf2d650.js +1 -0
- package/assets/esri/core/workers/chunks/7572c2bc5062e66f6330.js +1 -0
- package/assets/esri/core/workers/chunks/7d212c415f2709037408.js +1 -0
- package/assets/esri/core/workers/chunks/7f0f9dddc44b1f1600f0.js +1 -0
- package/assets/esri/core/workers/chunks/8293600f94553afc8c38.js +1 -0
- package/assets/esri/core/workers/chunks/{c18189710d6198516175.js → 830ab9b8d000169da675.js} +1 -1
- package/assets/esri/core/workers/chunks/8414ffd937c1099e0bbc.js +1 -0
- package/assets/esri/core/workers/chunks/{700b1d5bc67b7e1b3ff3.js → 8aa80b892fde552577e8.js} +1 -1
- package/assets/esri/core/workers/chunks/900181f68449d8f82eeb.js +1 -0
- package/assets/esri/core/workers/chunks/925271bb763607a326ae.js +1 -0
- package/assets/esri/core/workers/chunks/937824bc7948f7bc7845.js +1 -0
- package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +1 -0
- package/assets/esri/core/workers/chunks/97d6ef9e34a43ad2e556.js +1 -0
- package/assets/esri/core/workers/chunks/{c76c42c74eedd43263d3.js → 9dd1fc56eb1ea6eb705e.js} +1 -1
- package/assets/esri/core/workers/chunks/a07cb6a2f5b66d4e9f15.js +1 -0
- package/assets/esri/core/workers/chunks/a40b6d8b5c73e06e14d4.js +1 -0
- package/assets/esri/core/workers/chunks/a7f3576208f295b670d6.js +1 -0
- package/assets/esri/core/workers/chunks/a80e49acc827dbf3b524.js +1 -0
- package/assets/esri/core/workers/chunks/aeaaff7a4b1a99540f52.js +1 -0
- package/assets/esri/core/workers/chunks/af349c7bc8ef41a0e1bd.js +1 -0
- package/assets/esri/core/workers/chunks/afc3b2af20e9d1dfd260.js +1 -0
- package/assets/esri/core/workers/chunks/b19b6102ed2d6f67b43b.js +1 -0
- package/assets/esri/core/workers/chunks/b1b4066e8d1c0c9656e5.js +1 -0
- package/assets/esri/core/workers/chunks/b4334713bacdfe40ce3d.js +1 -0
- package/assets/esri/core/workers/chunks/{6883a5c6883eccaddf64.js → b6ba66a05030d3815dfd.js} +1 -1
- package/assets/esri/core/workers/chunks/bbec9d2e3b75a5c59681.js +1 -0
- package/assets/esri/core/workers/chunks/{9ab25ee06041f907b9a2.js → c2c1f51a4668055c2838.js} +1 -1
- package/assets/esri/core/workers/chunks/c337fc0e6dc69c233e6d.js +1 -0
- package/assets/esri/core/workers/chunks/c598b22f78ccc57f9d6d.js +1 -0
- package/assets/esri/core/workers/chunks/c5d85be6e16bc895e7fb.js +1 -0
- package/assets/esri/core/workers/chunks/c62738f84c914671b143.js +1 -0
- package/assets/esri/core/workers/chunks/c8d178a0c82fffd7fed5.js +1 -0
- package/assets/esri/core/workers/chunks/c8d6bb5cca49926a0214.js +1 -0
- package/assets/esri/core/workers/chunks/cde4b044e013b9e41591.js +1 -0
- package/assets/esri/core/workers/chunks/{a7985d20fa6e8d4878e7.js → d0f5bee9db1ad51ae687.js} +1 -1
- package/assets/esri/core/workers/chunks/d2347d6aa1c57fd57029.js +1 -0
- package/assets/esri/core/workers/chunks/dca35dbe427605ef6fcc.js +1 -0
- package/assets/esri/core/workers/chunks/e0351753f6b4d1adf11e.js +1 -0
- package/assets/esri/core/workers/chunks/{534186fc921a0ccf58dc.js → e1f5d00878f27e1d413e.js} +1 -1
- package/assets/esri/core/workers/chunks/f1df76f098a3cc924832.js +1 -0
- package/assets/esri/core/workers/chunks/f4f9d08b2df856e3b694.js +1 -0
- package/assets/esri/core/workers/chunks/{711cfb84659cb4437679.js → f528ac5c648ca6a98582.js} +1 -1
- package/assets/esri/core/workers/chunks/f8a83d447b7aef051876.js +1 -0
- package/assets/esri/core/workers/chunks/fc44227c1756f65b95df.js +1 -0
- package/assets/esri/core/workers/chunks/fdbf6208df5c58746d9d.js +1 -0
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
- package/config.js +1 -1
- package/core/Loadable.js +1 -1
- package/geometry/HeightModelInfo.js +1 -1
- package/geometry/support/TileClipper.js +1 -1
- package/geometry/support/meshUtils.d.ts +1 -1
- package/geometry/support/scaleUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/BaseDynamicLayer.d.ts +1 -0
- package/layers/BaseElevationLayer.d.ts +2 -0
- package/layers/BaseTileLayer.d.ts +12 -9
- package/layers/CSVLayer.d.ts +1 -16
- package/layers/CatalogLayer.d.ts +1 -1
- package/layers/FeatureLayer.d.ts +3 -16
- package/layers/GeoJSONLayer.d.ts +1 -53
- package/layers/GeoRSSLayer.d.ts +0 -44
- package/layers/OrientedImageryLayer.js +1 -1
- package/layers/ParquetLayer.d.ts +84 -5
- package/layers/ParquetLayer.js +1 -1
- package/layers/SceneLayer.d.ts +4 -5
- package/layers/SceneLayer.js +1 -1
- package/layers/SketchLayer.d.ts +0 -1
- package/layers/SubtypeGroupLayer.d.ts +1 -1
- package/layers/VectorTileLayer.d.ts +2 -12
- package/layers/WFSLayer.d.ts +1 -1
- package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +1 -1
- package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +1 -1
- package/layers/mixins/ArcGISImageService.d.ts +1 -1
- package/layers/mixins/PortalLayer.js +1 -1
- package/layers/mixins/RefreshableLayer.d.ts +1 -3
- package/layers/mixins/ScaleRangeLayer.js +1 -1
- package/layers/mixins/SublayersOwner.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/core/utils.js +1 -1
- package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
- package/layers/support/FeatureFilter.d.ts +1 -1
- package/layers/support/ParquetPortalItemData.js +1 -1
- package/layers/support/PortalItemData.js +1 -1
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/SubtypeSublayer.d.ts +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/layersLoader.js +1 -1
- package/package.json +2 -2
- package/popup/FeaturesModel.d.ts +27 -6
- package/popup/FeaturesModel.js +1 -1
- package/portal/support/layersLoader.js +1 -1
- package/portal/support/portalLayers.js +1 -1
- package/renderers/VectorFieldRenderer.d.ts +4 -4
- package/rest/print.js +1 -1
- package/rest/support/printTaskUtils.js +1 -1
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/dotDensity.js +1 -1
- package/smartMapping/renderers/heatmap.js +1 -1
- package/smartMapping/renderers/pieChart.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/statistics/heatmapStatistics.js +1 -1
- package/smartMapping/statistics/histogram.js +1 -1
- package/smartMapping/statistics/summaryStatistics.js +1 -1
- package/smartMapping/statistics/summaryStatisticsForAttributes.js +1 -1
- package/smartMapping/statistics/uniqueValues.js +1 -1
- package/smartMapping/support/adapters/support/layerUtils.js +1 -1
- package/smartMapping/types.d.ts +3 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
- package/views/3d/analysis/Viewshed/types.d.ts +3 -1
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/RouteLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/support/popupHitTest.js +1 -1
- package/views/3d/terrain/TerrainData.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/DOMContainer.d.ts +27 -9
- package/views/DOMContainer.js +1 -1
- package/views/PopupView.d.ts +6 -0
- package/views/VideoView.d.ts +27 -9
- package/views/View.d.ts +16 -7
- package/views/View.js +1 -1
- package/views/View2D.d.ts +1 -1
- package/views/draw/support/InteractiveHandle.js +1 -1
- package/views/interactive/snapping/FeatureSnappingSourceInfo.js +1 -1
- package/views/interactive/snapping/SnappingManagerPool.js +1 -1
- package/views/interactive/snapping/SnappingOptions.d.ts +1 -1
- package/views/interactive/tooltip/components/ElevationModeSelect.js +1 -1
- package/views/layers/FeatureLikeLayerView.d.ts +2 -3
- package/views/layers/LayerView.js +1 -1
- package/views/layers/LineOfSightLayerView.d.ts +3 -4
- package/views/layers/ParquetLayerView.d.ts +15 -0
- package/views/layers/PointCloudLayerView.d.ts +1 -1
- package/views/layers/SceneLayerView.d.ts +1 -1
- package/views/layers/ViewshedLayerView.d.ts +5 -6
- package/views/support/layerViewUtils.js +1 -1
- package/webdoc/support/saveUtils.js +1 -1
- package/webdoc/support/unsupportedErrors.js +1 -1
- package/widgets/Editor.d.ts +10 -0
- package/widgets/Legend.d.ts +1 -0
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/draw/HeightMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
- package/widgets/support/SnappingControls.d.ts +1 -1
- package/assets/esri/core/workers/chunks/00a600c71ceebe7bfeee.js +0 -1
- package/assets/esri/core/workers/chunks/0193df3f9fb23633da87.js +0 -1
- package/assets/esri/core/workers/chunks/050c4b212f2b5691db34.js +0 -1
- package/assets/esri/core/workers/chunks/05963f57cbe5a5249496.js +0 -1
- package/assets/esri/core/workers/chunks/06e7400f5ebe0719b81c.js +0 -1
- package/assets/esri/core/workers/chunks/07aa6d36f1006b6ab7ff.js +0 -1
- package/assets/esri/core/workers/chunks/0bb11751efa2023ec937.js +0 -1
- package/assets/esri/core/workers/chunks/14a3808427deaaa85bf2.js +0 -1
- package/assets/esri/core/workers/chunks/1a6027f08893aba9e677.js +0 -1
- package/assets/esri/core/workers/chunks/2062d46f638eabfc9499.js +0 -1
- package/assets/esri/core/workers/chunks/2164fcaced72b0fda31f.js +0 -1
- package/assets/esri/core/workers/chunks/222af8522773c7dc80b1.js +0 -1
- package/assets/esri/core/workers/chunks/25b0885d3bc190b28c04.js +0 -1
- package/assets/esri/core/workers/chunks/303fde8f3459dde16555.js +0 -1
- package/assets/esri/core/workers/chunks/305a718719ef15fda90c.js +0 -1
- package/assets/esri/core/workers/chunks/347bf269c2b1583d2dca.js +0 -1
- package/assets/esri/core/workers/chunks/350540770781b281c39a.js +0 -1
- package/assets/esri/core/workers/chunks/392bcef780df52fb4cca.js +0 -1
- package/assets/esri/core/workers/chunks/3b017b718ea2d4ed498f.js +0 -1
- package/assets/esri/core/workers/chunks/3e81dfc9d621ece038fe.js +0 -1
- package/assets/esri/core/workers/chunks/4479a166b5ac8db1e12e.js +0 -1
- package/assets/esri/core/workers/chunks/46b2d4addfc73f9183a4.js +0 -1
- package/assets/esri/core/workers/chunks/4d82db661365daa513a6.js +0 -1
- package/assets/esri/core/workers/chunks/4ed8655770a3e018e366.js +0 -1
- package/assets/esri/core/workers/chunks/4f48d45baa8ada16f579.js +0 -1
- package/assets/esri/core/workers/chunks/50ca55ad2f5421acc492.js +0 -1
- package/assets/esri/core/workers/chunks/5450f339f97b2b042ee2.js +0 -1
- package/assets/esri/core/workers/chunks/55cc8581978c71b17998.js +0 -1
- package/assets/esri/core/workers/chunks/5ea8809b6519c05ad9f6.js +0 -1
- package/assets/esri/core/workers/chunks/62795a1573cbaa4b8e7a.js +0 -1
- package/assets/esri/core/workers/chunks/633a9051580c5302d2f7.js +0 -1
- package/assets/esri/core/workers/chunks/641d196a554bd07f729e.js +0 -1
- package/assets/esri/core/workers/chunks/655c3afda1eef01611dd.js +0 -1
- package/assets/esri/core/workers/chunks/6569797d3c22442e5e97.js +0 -1
- package/assets/esri/core/workers/chunks/70793967db45fb142962.js +0 -1
- package/assets/esri/core/workers/chunks/794e5a67a88cb10c1a19.js +0 -1
- package/assets/esri/core/workers/chunks/798a63653f82c0e842c5.js +0 -1
- package/assets/esri/core/workers/chunks/820f41d66b2056a3ebc8.js +0 -1
- package/assets/esri/core/workers/chunks/841f67baf6a1634ada48.js +0 -1
- package/assets/esri/core/workers/chunks/84fcbf7a1d04f01685d1.js +0 -1
- package/assets/esri/core/workers/chunks/8e511079918e2fd9261f.js +0 -1
- package/assets/esri/core/workers/chunks/8fcfd515ee1b18c902e5.js +0 -1
- package/assets/esri/core/workers/chunks/9001e9a1e81bce175ddd.js +0 -1
- package/assets/esri/core/workers/chunks/94c5f3bc07fe516dafbe.js +0 -1
- package/assets/esri/core/workers/chunks/956a40f40bde416efe93.js +0 -1
- package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +0 -1
- package/assets/esri/core/workers/chunks/97dbbedea9fe03bd1306.js +0 -1
- package/assets/esri/core/workers/chunks/9c0fd8baa00ee9733ba4.js +0 -1
- package/assets/esri/core/workers/chunks/9c1e69ac82e2bf746191.js +0 -1
- package/assets/esri/core/workers/chunks/a010d2e4e34eb7bc1fec.js +0 -1
- package/assets/esri/core/workers/chunks/a05790444115e4cf1bcc.js +0 -1
- package/assets/esri/core/workers/chunks/a52bf03bffb6ffac3b54.js +0 -1
- package/assets/esri/core/workers/chunks/a7edf7541569fef77cb3.js +0 -1
- package/assets/esri/core/workers/chunks/b2c29bc48c7b3b0c9357.js +0 -1
- package/assets/esri/core/workers/chunks/b7d77dd2abb255fd2e5a.js +0 -1
- package/assets/esri/core/workers/chunks/b8054adc45bca069b948.js +0 -1
- package/assets/esri/core/workers/chunks/ba46869e700ba1d2787f.js +0 -1
- package/assets/esri/core/workers/chunks/ba48045a81acc4cda927.js +0 -1
- package/assets/esri/core/workers/chunks/ca7fb75e2c62e7d37122.js +0 -1
- package/assets/esri/core/workers/chunks/d01381b548c204835509.js +0 -1
- package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +0 -1
- package/assets/esri/core/workers/chunks/d270cc9807161033686e.js +0 -1
- package/assets/esri/core/workers/chunks/d4f038e04c42aed588c1.js +0 -1
- package/assets/esri/core/workers/chunks/e32b96c08cb272a59851.js +0 -1
- package/assets/esri/core/workers/chunks/e7c60bd85abbd36cdc64.js +0 -1
- package/assets/esri/core/workers/chunks/f05de08e194a3f9b96f2.js +0 -1
- package/assets/esri/core/workers/chunks/f0a68d2900d24f56afa0.js +0 -1
- package/assets/esri/core/workers/chunks/f511a304e9dea9eb3e01.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,5977],{67482(e,t,r){function i(e){return null!==o(e)}function o(e){return function(e){let t=n.exec(e);if(!t?.groups)return null;let r=t.groups,i=+r.year,o=r.month-1,s=+r.day,l=+(r.hours??"0"),a=+(r.minutes??"0"),u=+(r.seconds??"0");if(l>23||a>59||u>59)return null;let p,d=r.ms??"0",c=d?+d.padEnd(3,"0").slice(0,3):0;if(r.isUTC||!r.offsetSign)p=Date.UTC(i,o,s,l,a,u,c);else{let e=+r.offsetHours,t=+r.offsetMinutes;p=6e4*("+"===r.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,o,s,l,a,u,c)}return Number.isNaN(p)?null:p}(e)??function(e){let t=new Date(e),r=t.getTime();return Number.isNaN(r)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?r:null}(e)??function(e){if(!s.test(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}r.d(t,{C:()=>i,_:()=>o});const n=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,s=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},18370(e,t,r){r.d(t,{z:()=>o});class i{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function o(e){return new i(e)}},69397(e,t,r){r.d(t,{Qf:()=>l,Qh:()=>n,lM:()=>o});var i=r(34275);function o(e){if(!e)return 0;let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=s(e[r],!1));return t}function n(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return a(e,8);let r=p;for(let i=0;i<t;i++)r+=s(e[i]);return r}(e);let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=s(e[r]));return t}function s(e,t=!0){switch(typeof e){case"object":return t?n(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+d:Array.isArray(t)?a(t,16):0:0),0)}function a(e,t){return p+e.length*t}const u=32,p=16,d=145},13069(e,t,r){r.d(t,{AG:()=>l,lk:()=>o,vD:()=>s,yS:()=>n});const i="randomUUID"in crypto;function o(){if(i)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let 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 n(){return`{${o().toUpperCase()}}`}function s(){return`{${o()}}`}function l(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},65977(e,t,r){r.r(t),r.d(t,{default:()=>V});var i=r(32198),o=r(37838),n=r(49186),s=r(25728),l=r(91429),a=r(5443),u=r(16930),p=r(50498),d=r(41910),c=r(55156),y=r(60950),f=r(89808),h=r(99959);const g=Symbol("isOGCFeatureGraphicOrigin");var m;class w extends h.A{get[(m=g,y.ym)](){return this.layer}get[c.e](){return this.layer}get[f.Q](){return this.layer}get[d.e7](){return this.layer}constructor(e){super(),this[m]=!0,this.type="ogc-feature",this.layer=e}get id(){return this.layer.id}}var v=r(4146),C=r(92474),M=r(799),b=r(75321),I=r(4071),A=r(22671);let T=class extends C.x_{constructor(){super(...arguments),this.featureDefinition=null,this.type="ogc-feature"}load(e){return this.addResolvingPromise(this._loadOGCServices(this.layer,e)),this.when()}getSource(){let{featureDefinition:{collection:e,layerDefinition:t,spatialReference:r,supportedCrs:i},layer:{apiKey:o,customParameters:n,effectiveMaxRecordCount:s}}=this;return{type:"ogc-source",collection:e,layerDefinition:t,maxRecordCount:s,queryParameters:{apiKey:o,customParameters:n},spatialReference:r,supportedCrs:i}}queryExtent(e,t={}){return null}queryFeatureCount(e,t={}){return null}queryFeatures(e,t={}){return this.queryFeaturesJSON(e,t).then(e=>A.A.fromJSON(e))}queryFeaturesJSON(e,t={}){let r=this.getSource();return this.load(t).then(()=>(0,b.bW)(r,e,t))}queryObjectIds(e,t={}){return null}serviceSupportsSpatialReference(e){let{isWebMercator:t,isWGS84:r,latestWkid:i,wkid:o}=e,{supportedCrs:n}=this.featureDefinition;return r||t||!!o&&!!n[o]||!!i&&!!n[i]}_conformsToType(e,t){let r=RegExp(`^${(0,M.Cj)(t)}$`,"i");return e.conformsTo.some(e=>r.test(e))??!1}_getCapabilities(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:t,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:void 0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,supportsStatisticsAggregatedIds:!1,supportsCacheHint:!1,supportsCentroid:!1,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsOutDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPaginationOnAggregatedQueries:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,supportsTrueCurve:!1,tileMaxRecordCount:void 0},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:I.$,editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}_getMaxRecordCount(e){let t=e?.components?.parameters;return t?.limit?.schema?.maximum??t?.limitFeatures?.schema?.maximum}_getStorageSpatialReference(e){let t=e.storageCrs??b.QE,r=(0,b.J0)(t);return null==r?u.A.WGS84:new u.A({wkid:r})}_getSupportedSpatialReferences(e,t){let r="#/crs",i=e.crs??[b.QE],o=i.includes(r)?i.filter(e=>e!==r).concat(t.crs??[]):i,n=/^http:\/\/www\.opengis.net\/def\/crs\/epsg\/.*\/3785$/i;return o.filter(e=>!n.test(e))}async _loadOGCServices(e,t){let r=null==t?null:t.signal,{apiKey:i,collectionId:o,customParameters:s,fields:l,geometryType:a,hasZ:u,objectIdField:d,timeInfo:c,url:y}=e,f={fields:l?.map(e=>e.toJSON()),geometryType:p.Ye.toJSON(a),hasZ:u,objectIdField:d,timeInfo:c?.toJSON()},h={apiKey:i,customParameters:s,signal:r},g=await(0,b.Ki)(y,h),[m,w]=await Promise.all([(0,b.Px)(g,h),(0,b.CJ)(g,h)]);if(!this._conformsToType(m,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson"))throw new n.A("ogc-feature-layer:no-geojson-support","Server does not support geojson");let v=w.collections.find(({id:e})=>e===o);if(!v)throw new n.A("ogc-feature-layer:collection-not-found","Server does not contain the named collection");let C=this._conformsToType(m,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30")?await(0,b.GA)(g,h):null,I=await(0,b.GL)(v,f,h),A=this._getMaxRecordCount(C),T=this._getCapabilities(I.hasZ,A),S=this._getStorageSpatialReference(v).toJSON(),F=this._getSupportedSpatialReferences(v,w),P=RegExp(`^${(0,M.Cj)(b.vJ)}`,"i"),x={};for(let e of F){let t=(0,b.J0)(e);null!=t&&(x[t]||(x[t]=e.replace(P,"")))}this.featureDefinition={capabilities:T,collection:v,layerDefinition:I,spatialReference:S,supportedCrs:x}}};(0,i.Cg)([(0,l.MZ)()],T.prototype,"featureDefinition",void 0),(0,i.Cg)([(0,l.MZ)({constructOnly:!0})],T.prototype,"layer",void 0),(0,i.Cg)([(0,l.MZ)()],T.prototype,"type",void 0),T=(0,i.Cg)([(0,l.$K)("esri.layers.graphics.sources.OGCFeatureSource")],T);var S=r(52136),F=r(63074),P=r(69208),x=r(6455),O=r(87718),Z=r(56658),R=r(34287),j=r(32756),E=r(8303),G=r(54310),D=r(25036),N=r(82935),L=r(63396),k=r(10873),_=r(33143),U=r(20437),B=r(17036),$=r(30524),q=r(46499),K=r(39383),Q=r(41214),W=r(97552),z=r(30291);const J=(0,B.p)();let H=class extends((0,x.FJ)((0,S.p)((0,P.d)((0,Z.J)((0,O.F)((0,F.dM)((0,j.fY)((0,N.e)((0,L.d)((0,D.j)((0,R.q)((0,E.A)((0,G.J)((0,s.M)(v.A))))))))))))))){constructor(e){super(e),this.capabilities=null,this.collectionId=null,this.copyright=null,this.description=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new w(this),this.hasZ=void 0,this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.maxRecordCount=null,this.objectIdField=null,this.operationalLayerType="OGCFeatureLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new T({layer:this}),this.spatialReference=null,this.timeInfo=null,this.title=null,this.type="ogc-feature",this.typeIdField=null,this.types=null,this.url=null}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["OGCFeatureServer"]},e).then(()=>this._fetchService(e))),this.when()}get defaultPopupTemplate(){return this.createPopupTemplate()}get effectiveMaxRecordCount(){return this.maxRecordCount??this.capabilities?.query.maxRecordCount??5e3}get isTable(){return this.loaded&&null==this.geometryType}set renderer(e){(0,$.yp)(e,this.fieldsIndex),this._set("renderer",e)}createPopupTemplate(e){return(0,z.tn)(this,e)}createQuery(){return new W.A}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){let r,i=!1,o=t?.feature?.attributes,n=this.typeIdField&&o?.[this.typeIdField];return null!=n&&this.types&&(i=this.types.some(t=>t.id==n&&(r=t.domains?.[e],"inherited"===r?.type&&(r=this._getLayerDomain(e)),!0))),!i&&!r&&(r=this._getLayerDomain(e)),r}queryFeatures(e,t){return this.load().then(()=>this.source.queryFeatures(W.A.from(e)||this.createQuery(),t)).then(e=>(e?.features?.forEach(e=>{e.layer=e.sourceLayer=this,e.origin=this.graphicOrigin}),e))}async queryAttributeBins(e,t){throw new n.A("OGCFeatureLayer","Layer source does not support queryAttributeBins capability")}serviceSupportsSpatialReference(e){return this.source?.serviceSupportsSpatialReference(e)??!1}async _fetchService(e){await this.source.load(e),this.read(this.source.featureDefinition,{origin:"service"}),(0,$.yp)(this.renderer,this.fieldsIndex),(0,$.sv)(this.timeInfo,this.fieldsIndex)}_getLayerDomain(e){if(!this.fields)return null;for(let t of this.fields)if(t.name===e&&t.domain)return t.domain;return null}};(0,i.Cg)([(0,l.MZ)({readOnly:!0,json:{origins:{service:{read:!0}}}})],H.prototype,"capabilities",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],H.prototype,"collectionId",void 0),(0,i.Cg)([(0,l.MZ)({type:String})],H.prototype,"copyright",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],H.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,l.MZ)({readOnly:!0,type:String,json:{origins:{service:{name:"collection.description"}}}})],H.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({type:String})],H.prototype,"displayField",void 0),(0,i.Cg)([(0,l.MZ)({type:Number})],H.prototype,"effectiveMaxRecordCount",null),(0,i.Cg)([(0,l.MZ)(k.Yj)],H.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,l.MZ)({type:[U.A],json:{origins:{service:{name:"layerDefinition.fields"}}}})],H.prototype,"fields",void 0),(0,i.Cg)([(0,l.MZ)(J.fieldsIndex)],H.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0,type:a.A,json:{origins:{service:{name:"layerDefinition.extent"}}}})],H.prototype,"fullExtent",void 0),(0,i.Cg)([(0,l.MZ)({type:p.gy.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:p.gy.read}}}}})],H.prototype,"geometryType",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],H.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{origins:{service:{name:"layerDefinition.hasZ"}}}})],H.prototype,"hasZ",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,readOnly:!0})],H.prototype,"isTable",null),(0,i.Cg)([(0,l.MZ)({type:[q.A],json:{origins:{"web-document":{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:K.w},write:!0}}}})],H.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,l.MZ)(k.kF)],H.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,l.MZ)(k.fV)],H.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,l.MZ)({type:Number})],H.prototype,"maxRecordCount",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{name:"layerDefinition.objectIdField"}}}})],H.prototype,"objectIdField",void 0),(0,i.Cg)([(0,l.MZ)({type:["OGCFeatureLayer"]})],H.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,l.MZ)(k.M6)],H.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,l.MZ)({type:o.A,json:{name:"popupInfo",write:!0}})],H.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,l.MZ)({types:Q.Hg,json:{origins:{service:{name:"layerDefinition.drawingInfo.renderer",write:!1},"web-scene":{types:Q.XJ,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:!0}})],H.prototype,"renderer",null),(0,i.Cg)([(0,l.MZ)(k.PY)],H.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],H.prototype,"source",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0,type:u.A,json:{origins:{service:{read:!0}}}})],H.prototype,"spatialReference",void 0),(0,i.Cg)([(0,l.MZ)((0,k.U$)({name:"layerDefinition.timeInfo"}))],H.prototype,"timeInfo",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:{enabled:!0,ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"collection.title"}}}})],H.prototype,"title",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],H.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:String,readOnly:!0})],H.prototype,"typeIdField",void 0),(0,i.Cg)([(0,l.MZ)({type:[_.A]})],H.prototype,"types",void 0),(0,i.Cg)([(0,l.MZ)(k.OZ)],H.prototype,"url",void 0),H=(0,i.Cg)([(0,l.$K)("esri.layers.OGCFeatureLayer")],H);const V=H},43334(e,t,r){r.d(t,{N3:()=>l,Om:()=>s});var i=r(69397),o=r(27647),n=r(92722);class s{constructor(e,t,r,i,o=0,n=null,s=null){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=i,this.displayId=o,this.distance=n,this.vertexCount=s}static fromJSON(e){let t=e.geometry?n.A.fromJSON(e.geometry):null,r=e.centroid?n.A.fromJSON(e.centroid):null,i=e.objectId;return new s(t,e.attributes,r,i,void 0,e.distance,e.vertexCount)}weakClone(){return new s(this.geometry,this.attributes,this.centroid,this.objectId,this.displayId,this.distance,this.vertexCount)}clone(){return new s(this.geometry?.clone(),{...this.attributes},this.centroid?.clone(),this.objectId,this.displayId,this.distance,this.vertexCount)}ensureCentroid(e){return this.centroid??=(0,o.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,i.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function l(e){return!!e.geometry?.coords?.length}},58512(e,t,r){r.d(t,{A:()=>i});class i{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){let e=new i;return e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},92722(e,t,r){r.d(t,{A:()=>o});var i=r(69397);class o{constructor(e=[],t=[],r=!1,i=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=i}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:i}){return new o(e,t,r||!1,i||!1)}static fromRect([e,t,r,i]){let n=r-e,s=i-t;return new o([5],[e,t,n,0,0,s,-n,0,0,-s])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,i.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let e=0,t=0;for(let r of this.lengths){if(r<3)continue;let{stride:i}=this,o=this.coords[i*t],n=this.coords[i*t+1];for(let s=1;s<r;s+=1){let r=i*(t+s),l=this.coords[r],a=this.coords[r+1];e+=-.5*(l-o)*(a+n),o=l,n=a}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:r}=this;for(let i of this.lengths){for(let o=0;o<i;o++){let i=r*(t+o);e(this.coords[i],this.coords[i+1])}t+=i}}deltaDecode(){let e=this.clone(),{coords:t,lengths:r}=e,i=0,{stride:o}=this;for(let e of r){for(let r=1;r<e;r++){let e=o*(i+r);t[e]+=t[e-o],t[e+1]+=t[e+1-o]}i+=e}return e}clone(e){if(this.isPoint)return new o([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:r,size:i}=this,n=this.coords.slice(0,i*r);return e?(e.set(n),new o(t,e,this.hasZ,this.hasM)):new o(t,Array.from(n),this.hasZ,this.hasM)}justXY(){let{stride:e,size:t}=this;if(2===e)return this;let r=Array(t*e);for(let t=0,i=0;t<r.length;t+=e)r[i++]=this.coords[t],r[i++]=this.coords[t+1];return new o(this.lengths,r,!1,!1)}}},27647(e,t,r){r.d(t,{Q:()=>n});var i=r(92722);function o(e,t){return e?t?4:3:t?3:2}function n(e){if(null==e||!e?.lengths.length)return null;let{lengths:t,coords:r,stride:o,hasZ:n,hasM:a}=e,u=new i.A([],[],n,!1),p=u.coords,d=[],c=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0],y=0;for(let e of t){let t=s(c,r,y,e,n,a);t&&d.push(t),y+=e*o}if(d.sort((e,t)=>{let r=e[2]-t[2];return 0===r&&n&&(r=e[4]-t[4]),r}),d.length){let e=6*d[0][2];p[0]=d[0][0]/e,p[1]=d[0][1]/e,n&&(e=6*d[0][4],p[2]=0===e?0:d[0][3]/e),(p[0]<c[0]||p[0]>c[1]||p[1]<c[2]||p[1]>c[3]||n&&(p[2]<c[4]||p[2]>c[5]))&&(p.length=0)}if(!p.length){let i=e.lengths[0]?l(r,0,t[0],n,a):null;if(!i)return null;p[0]=i[0],p[1]=i[1],n&&(p[2]=i[2]??0)}return u}function s(e,t,r,i,n,s){let l=o(n,s),a=r,u=r+l,p=0,d=0,c=0,y=0,f=0;for(let r=0,o=i-1;r<o;r++,a+=l,u+=l){let r=t[a],i=t[a+1],o=t[a+2],s=t[u],l=t[u+1],h=t[u+2],g=r*l-s*i;y+=g,p+=(r+s)*g,d+=(i+l)*g,n&&(g=r*h-s*o,c+=(o+h)*g,f+=g),r<e[0]&&(e[0]=r),r>e[1]&&(e[1]=r),i<e[2]&&(e[2]=i),i>e[3]&&(e[3]=i),n&&(o<e[4]&&(e[4]=o),o>e[5]&&(e[5]=o))}if(y>0&&(y*=-1),f>0&&(f*=-1),!y)return null;let h=[p,d,.5*y];return n&&(h[3]=c,h[4]=.5*f),h}function l(e,t,r,i,n){let s=o(i,n),l=t,c=t+s,y=0,f=0,h=0,g=0;for(let t=0,o=r-1;t<o;t++,l+=s,c+=s){let t=e[l],r=e[l+1],o=e[l+2],n=e[c],s=e[c+1],m=e[c+2],w=i?u(t,r,o,n,s,m):a(t,r,n,s);if(w)if(y+=w,i){let e=d(t,r,o,n,s,m);f+=w*e[0],h+=w*e[1],g+=w*e[2]}else{let e=p(t,r,n,s);f+=w*e[0],h+=w*e[1]}}return y>0?i?[f/y,h/y,g/y]:[f/y,h/y]:r>0?i?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function a(e,t,r,i){let o=r-e,n=i-t;return Math.sqrt(o*o+n*n)}function u(e,t,r,i,o,n){let s=i-e,l=o-t,a=n-r;return Math.sqrt(s*s+l*l+a*a)}function p(e,t,r,i){return[e+.5*(r-e),t+.5*(i-t)]}function d(e,t,r,i,o,n){return[e+.5*(i-e),t+.5*(o-t),r+.5*(n-r)]}},99352(e,t,r){r.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},90708(e,t,r){r.d(t,{Ap:()=>F,B2:()=>g,DF:()=>b,Di:()=>j,E2:()=>R,IE:()=>h,Nl:()=>U,PR:()=>T,Rk:()=>z,Ux:()=>G,Ye:()=>x,ZF:()=>L,aQ:()=>Q,jH:()=>_,jQ:()=>K,kz:()=>B,oN:()=>E,q3:()=>k,qN:()=>I,zv:()=>D});var i=r(49186),o=r(53966),n=r(97768),s=r(70328),l=r(19419),a=r(60408),u=r(43334),p=r(58512),d=r(92722),c=r(54339);const y=()=>o.A.getLogger("esri.layers.graphics.featureConversionUtils"),f={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryMultiPatch:3,esriGeometryEnvelope:0};function h({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function g({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function m({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function w({scale:e,translate:t},r){return Math.round((r-t[1])/e[1])}function v({scale:e,translate:t},r,i){return r*e[i]+t[i]}function C(e,t,r){return t&&(e.hasZ=!0),r&&(e.hasM=!0),e}function M(e,t,r,i){if(t&&i&&e!==r)return(t,r,i,o)=>{i[o++]=t[r++],i[o++]=t[r++],e?r++:i[o++]=0,i[o++]=t[r++]??0};let o=+!!r+2+ +!!i,n=o-((!e&&r?1:0)+(!t&&i?1:0));return(e,t,r,i)=>{for(let s=0;s<o;++s)r[i++]=s<n?e[t++]??0:0}}function b(e,t,r){if(!e)return null;let{coords:i,hasZ:o,hasM:n}=e,[s,l]=i,a=o?i[2]:0,u=n?i[+!!o+2]:0;return{x:s,y:l,z:t?a:void 0,m:r?u:void 0}}function I(e,t=(0,a.Pv)(e),r=(0,a.W0)(e)){let{x:i,y:o,z:n,m:s}=e,l=[i,o];return t&&l.push(n??0),r&&l.push(s??0),new d.A([],l,t,r)}function A(e,t,r){if(null==e)return null;let{coords:i,stride:o,hasZ:n,hasM:s}=e,l=M(n,s,t,r),a=[];for(let e=0;e<i.length;e+=o){let t=[];l(i,e,t,0),a.push(t)}return C({points:a},t,r)}function T(e,t=(0,a.Pv)(e),r=(0,a.W0)(e)){let{points:i,hasZ:o,hasM:n}=e,s=new d.A([i.length],[],t,r),{coords:l,stride:u}=s,p=0,c=M(o??!1,n??!1,t,r);for(let e of i)c(e,0,l,p),p+=u;return s}function S(e,t,r){if(!e)return null;let{coords:i,lengths:o,stride:n,hasZ:s,hasM:l}=e,a=0,u=M(s,l,t,r),p=[];for(let e of o){let t=[];for(let r=0;r<e;r++){let e=[];u(i,a,e,0),a+=n,t.push(e)}p.push(t)}return C({paths:p},t,r)}function F(e,t=(0,a.Pv)(e),r=(0,a.W0)(e)){let{paths:i,hasZ:o,hasM:n}=e,s=M(o??!1,n??!1,t,r),l=new d.A([],[],t,r),{lengths:u,coords:p,stride:c}=l,y=0;for(let e of i){for(let t of e)s(t,0,p,y),y+=c;u.push(e.length)}return l}function P(e,t,r){if(!e)return null;let{coords:i,lengths:o,stride:n,hasZ:s,hasM:l}=e,a=0,u=M(s,l,t,r),p=[];for(let e of o){let t=[];for(let r=0;r<e;r++){let e=[];u(i,a,e,0),a+=n,t.push(e)}p.push(t)}return C({rings:p},t,r)}function x(e,t=(0,a.Pv)(e),r=(0,a.W0)(e)){let{rings:i,hasZ:o,hasM:n}=e,s=new d.A([],[],t,r),{lengths:l,coords:u,stride:p}=s,c=0,y=M(o??!1,n??!1,t,r);for(let e of i){for(let t of e)y(t,0,u,c),c+=p;l.push(e.length)}return s}const O=[],Z=[];function R(e,t,r,i,o){O[0]=e;let[n]=j(Z,O,t,r,i,o);return J(O),J(Z),n}function j(e,t,r,o,n,s){if(J(e),!r){for(let r of t){let t=(0,c.W)(r,s);e.push(new u.Om(null,r.attributes,null,t,void 0,r.distance,r.vertexCount))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,i,o){for(let n of t){let{geometry:t,attributes:s,centroid:l}=n,p=(0,a.Pv)(t),d=(0,a.W0)(t);e.push(new u.Om(t?I(t,r&&p,i&&d):null,s,l?I(l,!1,!1):null,(0,c.W)(n,o),n.displayId,n.distance,n.vertexCount))}return e}(e,t,o,n,s);case"esriGeometryMultipoint":return function(e,t,r,i,o){for(let n of t){let{geometry:t,attributes:s}=n,l=(0,a.Pv)(t),p=(0,a.W0)(t);e.push(new u.Om(t?T(t,r&&l,i&&p):null,s,null,(0,c.W)(n,o),n.displayId,n.distance,n.vertexCount))}return e}(e,t,o,n,s);case"esriGeometryPolyline":return function(e,t,r,i,o){for(let n of t){let{geometry:t,attributes:s,centroid:l}=n,p=(0,a.Pv)(t),d=(0,a.W0)(t);e.push(new u.Om(t?F(t,r&&p,i&&d):null,s,l?I(l,!1,!1):null,(0,c.W)(n,o),n.displayId,n.distance,n.vertexCount))}return e}(e,t,o,n,s);case"esriGeometryPolygon":case"esriGeometryMultiPatch":return function(e,t,r,i,o){for(let n of t){let{geometry:t,attributes:s,centroid:l}=n,p=(0,a.Pv)(t),d=(0,a.W0)(t);e.push(new u.Om(t?x(t,r&&p,i&&d):null,s,l?I(l,!1,!1):null,(0,c.W)(n,o),n.displayId,n.distance,n.vertexCount))}return e}(e,t,o,n,s);default:y().error("convertToFeatureSet:unknown-geometry",new i.A("internal:geometry",`Unable to parse unknown geometry type '${r}'`)),J(e)}return e}function E(e,t,r,i){Z[0]=e,N(O,Z,t,r,i);let o=O[0];return J(O),J(Z),o}function G(e,t=(0,a.Pv)(e),r=(0,a.W0)(e)){return null==e?null:(0,a.fT)(e)?I(e,t,r):(0,a.Bi)(e)?x(e,t,r):(0,a.Rg)(e)?F(e,t,r):(0,a.U9)(e)?T(e,t,r):void y().error("convertFromGeometry:unknown-geometry",new i.A("internal:geometry",`Unable to parse unknown geometry type '${e}'`))}function D(e,t,r,o){if(null==e)return null;let n="coords"in e?e:e.geometry;if(null==n)return null;switch(t){case"esriGeometryPoint":return b(n,r,o);case"esriGeometryMultipoint":return A(n,r,o);case"esriGeometryPolyline":return S(n,r,o);case"esriGeometryPolygon":return P(n,r,o);default:return y().error("convertToGeometry:unknown-geometry",new i.A("internal:geometry",`Unable to parse unknown geometry type '${t}'`)),null}}function N(e,t,r,o,n){if(J(e),null==r)return function(e,t){for(let r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,i){for(let{geometry:o,attributes:n}of t)e.push({attributes:n,geometry:b(o,r,i)});return e}(e,t,o,n);case"esriGeometryMultipoint":return function(e,t,r,i){for(let{geometry:o,attributes:n}of t)e.push({geometry:o&&A(o,r,i),attributes:n});return e}(e,t,o,n);case"esriGeometryPolyline":return function(e,t,r,i){for(let{geometry:o,attributes:n}of t)e.push({geometry:o&&S(o,r,i),attributes:n});return e}(e,t,o,n);case"esriGeometryPolygon":return function(e,t,r,i){for(let{geometry:o,attributes:n,centroid:s}of t){let t=P(o,r,i),l=b(s,!1,!1);e.push(s?{geometry:t,attributes:n,centroid:l}:{geometry:t,attributes:n})}return e}(e,t,o,n);default:y().error("convertToFeatureSet:unknown-geometry",new i.A("internal:geometry",`Unable to parse unknown geometry type '${r}'`))}return e}function L(e){let{spatialReference:t,transform:r,fields:i,hasM:o,hasZ:n,features:s,geometryType:l,exceededTransferLimit:a,queryGeometry:u,queryGeometryType:p}=e,d={features:N([],s,l,n,o),fields:i,geometryType:l,spatialReference:t,queryGeometry:D(u,p,n,o)};return r&&(d.transform=r),a&&(d.exceededTransferLimit=a),o&&(d.hasM=o),n&&(d.hasZ=n),d}function k(e,t){let r=new p.A,{hasM:i,hasZ:o,features:n,spatialReference:s,geometryType:l,exceededTransferLimit:a,transform:u,fields:d,globalIdFieldName:c}=e;return d&&(r.fields=d),r.geometryType=l??null,r.spatialReference=s??null,n&&j(r.features,n,l,o,i,t),a&&(r.exceededTransferLimit=a),i&&(r.hasM=i),o&&(r.hasZ=o),u&&(r.transform=u),c&&(r.globalIdFieldName=c),r}function _(e,t){let{geometryType:r,features:i}=t;if(!e)return t;for(let t=0;t<i.length;t++){let o=i[t],n=o.weakClone();n.geometry=U(o.geometry,r,e),n.centroid=U(o.centroid,"esriGeometryPoint",e),i[t]=n}return t.transform=e,t}function U(e,t,r,i,o,n=!1){if(null==e||!e?.coords.length)return null;let s=f[t],{coords:l,lengths:a,stride:u,hasZ:p,hasM:c}=e;i??=p,o??=c;let y=new d.A([],[],i,o),v=y.stride,C=M(p,c,i,o),b=0,I=[0,0,0,0].slice(v),A=n?m:h,T=n?w:g;function S(){C(l,b,I,0),b+=u,I[0]=A(r,I[0]),I[1]=T(r,I[1])}if(e.isPoint)return S(),y.coords.push(...I),y;let F=0;for(let e of a){if(e<s)continue;let t=1;S(),y.coords.push(...I);let[r,i]=I;for(let o=1;o<e;o++){S();let[e,o]=I;(r!==e||i!==o)&&(n||(I[0]-=r,I[1]-=i),y.coords.push(...I),r=e,i=o,t++)}t>=s?(y.lengths.push(t),F=y.coords.length):J(y.coords,F)}return J(y.coords,F),y.coords.length?y:null}function B(e,t,r,i=e.hasZ,o=e.hasM){if(!e.coords.length)return null;let n=f[t],{coords:s,lengths:l,stride:a,hasZ:u,hasM:p}=e,c=new d.A([],[],i,o),y=c.stride,h=M(u,p,i,o);if(e.isPoint)return h(s,0,c.coords,0),c;let g=0,m=r*r;for(let e of l){if(e<n){g+=e*a;continue}let t=c.coords.length/y,r=g,i=g+(e-1)*a;h(s,r,c.coords,c.coords.length),q(c.coords,s,a,m,h,r,i),h(s,i,c.coords,c.coords.length);let o=c.coords.length/y-t;o>=n?c.lengths.push(o):J(c.coords,t*y),g+=e*a}return c.coords.length?c:null}function $(e,t,r,i){let o=e[t],n=e[t+1],s=e[r],l=e[r+1],a=e[i],u=e[i+1],p=s,d=l,c=a-p,y=u-d;if(0!==c||0!==y){let e=((o-p)*c+(n-d)*y)/(c*c+y*y);e>1?(p=a,d=u):e>0&&(p+=c*e,d+=y*e)}return c=o-p,y=n-d,c*c+y*y}function q(e,t,r,i,o,n,s){let l,a=i,u=0;for(let e=n+r;e<s;e+=r)l=$(t,e,n,s),l>a&&(u=e,a=l);a>i&&(u-n>r&&q(e,t,r,i,o,n,u),o(t,u,e,e.length),s-u>r&&q(e,t,r,i,o,u,s))}function K(e,t){if(!t?.coords?.length)return null;let r=1/0,i=1/0,o=-1/0,n=-1/0,{coords:a,stride:u}=t;for(let e=0;e<a.length;e+=u){let t=a[e],s=a[e+1];r=Math.min(r,t),o=Math.max(o,t),i=Math.min(i,s),n=Math.max(n,s)}return(0,s.is)(e)?(0,s.BI)(e,r,i,o,n):(0,l.fA)(r,i,o,n,e),e}function Q(e,t){let{coords:r,lengths:i,stride:o,hasZ:s,hasM:l}=e;if(!r.length)return void(i.length=0);(0,n.Lw)(t);let{originPosition:a,scale:u,translate:p}=t,d=H;d.originPosition=a;let c=d.scale;c[0]=u[0]??1,c[1]=-(u[1]??1),c[2]=u[2]??1,c[3]=u[3]??1;let y=d.translate;if(y[0]=p[0]??0,y[1]=p[1]??0,y[2]=p[2]??0,y[3]=p[3]??0,l&&!s&&(c[2]=c[3],y[2]=y[3]),!i.length){for(let e=0;e<o;++e)r[e]=v(d,r[e],e);return void(i.length=0)}let f=0;for(let e=0;e<i.length;e++){let t=i[e];i[e]=t;for(let e=0;e<o;++e)r[f+e]=v(d,r[f+e],e);let n=r[f],s=r[f+1];f+=o;for(let e=1;e<t;e++,f+=o){n+=r[f]*c[0],s+=r[f+1]*c[1],r[f]=n,r[f+1]=s;for(let e=2;e<o;++e)r[f+e]=v(d,r[f+e],e)}}}function W(e,t,r,i){let o=0,n=e[i*t],s=e[i*(t+1)];for(let l=1;l<r;l++){let r=n+e[i*(t+l)],a=s+e[i*(t+l)+1],u=(r-n)*(a+s);n=r,s=a,o+=u}return.5*o}function z(e,t){let{coords:r,lengths:i}=e,o=0,n=0;for(let e=0;e<i.length;e++){let s=i[e];n+=W(r,o,s,t),o+=s}return Math.abs(n)}function J(e,t=0){e.length!==t&&(e.length=t)}const H={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},85113(e,t,r){r.d(t,{BM:()=>T,bd:()=>S,sO:()=>A,xD:()=>d});var i=r(67482),o=r(49186),n=r(21325),s=r(90708),l=r(43334),a=r(92722),u=r(30524);const p={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function d(e){return p[e]}function*c(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(let t of e.features)t&&(yield t)}}function*y(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(let t of e.coordinates)yield*t;break;case"MultiPolygon":for(let t of e.coordinates)for(let e of t)yield*e}}function f(e){for(let t of e)if(t.length>2)return!0;return!1}function h(e){let t=0;for(let r=0;r<e.length;r++){let i=e[r],o=e[(r+1)%e.length];t+=i[0]*o[1]-o[0]*i[1]}return t<=0}function g(e){let t=e[0],r=e[e.length-1];(t[0]!==r[0]||t[1]!==r[1]||t[2]!==r[2])&&e.push(t)}function m(e,t){let{coordinates:r,type:i}=e,o=t.hasZ??!1;switch(i){case"Point":return new a.A([],[...r],o,!1);case"LineString":return(0,s.Ap)({paths:[r],hasZ:!0},o,!1);case"MultiLineString":return(0,s.Ap)({paths:r,hasZ:!0},o,!1);case"MultiPoint":return(0,s.PR)({points:r,hasZ:!0},o,!1);case"Polygon":case"MultiPolygon":{let e=new a.A([],[],o,!1);for(let t of"Polygon"===i?[r]:r){w(e,t[0],o);for(let r=1;r<t.length;r++)v(e,t[r],o)}return e}}}function w(e,t,r){g(t),function(e){return!h(e)}(t)?M(e,t,r):C(e,t,r)}function v(e,t,r){g(t),function(e){return h(e)}(t)?M(e,t,r):C(e,t,r)}function C(e,t,r){for(let i of t)b(e,i,r);e.lengths.push(t.length)}function M(e,t,r){for(let i=t.length-1;i>=0;i--)b(e,t[i],r);e.lengths.push(t.length)}function b(e,[t,r,i],o){e.coords.push(t,r),o&&e.coords.push(i||0)}function I(e){switch(typeof e){case"string":return(0,i.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function A(e,t=4326){if(!e)throw new o.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new o.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});let{crs:r}=e;if(!r)return;let i="string"==typeof r?r:"name"===r.type?r.properties.name:"EPSG"===r.type?r.properties.code:null,s=(0,n.oT)({wkid:t})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${t})$`,"i");if(!i||!s.test(i))throw new o.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:r})}function T(e,t={}){let r,i=[],o=new Set,n=new Set,s=!1,l=null,a=!1,{geometryType:p=null}=t;for(let t of c(e)){let{geometry:e,properties:c,id:h}=t;if((!e||(p||=d(e.type),d(e.type)===p))&&(s||=f(y(e)),a||(a=null!=h,a&&(r=typeof h,c&&(l=Object.keys(c).filter(e=>c[e]===h)))),c&&l&&a&&null!=h&&(l.length>1?l=l.filter(e=>c[e]===h):1===l.length&&(l=c[l[0]]===h?l:[])),c))for(let e in c){if(o.has(e))continue;let t=I(c[e]);if("unknown"===t){n.add(e);continue}n.delete(e),o.add(e);let r=(0,u.rS)(e);r&&i.push({name:r,alias:e,type:t})}}let h=(0,u.rS)(1===l?.length&&l[0]||null)??void 0;if(h)for(let e of i)if(e.name===h&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:i,geometryType:p,hasZ:s,objectIdFieldName:h,objectIdFieldType:r,unknownFields:Array.from(n)}}function S(e,t){return Array.from(function*(e,t={}){let{geometryType:r,objectIdField:i}=t;for(let o of e){let{geometry:e,properties:n,id:s}=o;if(e&&d(e.type)!==r)continue;let a,u=n||{};i&&(a=u[i],null!=s&&!a&&(u[i]=a=s)),yield new l.Om(e&&m(e,t),u,null,a)}}(c(e),t))}},64714(e,t,r){r.d(t,{F0:()=>l,Vx:()=>p,e2:()=>c,f:()=>y});var i=r(44208),o=r(4718),n=r(99352),s=r(93470);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.Cb:"esriGeometryPolyline"===e?s.yM:s.WR}}}const a=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function p(e,t){if((0,i.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${d(t)} = null;`);for(let t in e)r+=`this${d(t)} = ${JSON.stringify(e[t])};`;let i=Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new i}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return a.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,o.o8)(e)}}]}function y(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:n.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:n.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832(e,t,r){r.d(t,{$1:()=>w,CR:()=>m,MB:()=>f,Yx:()=>p,bP:()=>c});var i=r(67482),o=r(18370),n=r(60408),s=r(21325),l=r(30524);class a{constructor(e){this.description=e,this.code=null}}class u{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new a(e)}}function p(e){return new u(e)}class d{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new d(e)}const y=new Set;function f(e,t,r,i=!1){y.clear();for(let o in r){let n=e.get(o);if(!n)continue;let s=h(n,r[o]);if(y.add(n.name),n&&(i||n.editable)){let e=(0,l.CJ)(n,s);if(e)return p((0,l.uo)(e,n,s));t[n.name]=s}}for(let t of e.requiredFields??[])if(!y.has(t.name))return p(`missing required field "${t.name}"`);return null}function h(e,t){let r=t;return(0,l.WA)(e)&&"string"==typeof t?r=(0,l.XT)(t):(0,l.yM)(e)&&null!=t&&"string"!=typeof t?r=String(t):(0,l.vE)(e)&&"string"==typeof t&&(r=(0,i._)(t)),(0,l.WX)(r)}const g=(0,o.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(3456)]).then(()=>r(3637)));function m(e,t){if(!(0,n.Bi)(e)&&!(0,n.Rg)(e)||!(0,s.fn)(t))return e;let r=g.module;if(null==r)throw TypeError("simplify operator not loaded");return r.simplifyExecute({...e,spatialReference:t})??e}async function w(e,t){(0,s.fn)(e)&&("esriGeometryPolygon"===t||"esriGeometryPolyline"===t)&&await g.getImportPromise()}r.d(t,["PC",0,{supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}])},52136(e,t,r){var i=r(32198),o=r(91429);r.d(t,["p",0,e=>{let t=e,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._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},69208(e,t,r){var i=r(32198),o=r(91429);r.d(t,["d",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,o.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},6455(e,t,r){r.d(t,{FJ:()=>m,Dp:()=>w,KV:()=>v});var i=r(32198),o=r(93637),n=r(91429),s=r(89317),l=r(69540),a=r(7762),u=r(25482),p=r(83960),d=r(13069);const c={write:{overridePolicy:(e,t,r)=>({enabled:!r||"scale"===r.filterMode})}};let y=class extends((0,l.OU)(u.o)){constructor(e){super(e),this.id=(0,d.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],y.prototype,"id",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:c})],y.prototype,"maxScale",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:c})],y.prototype,"minScale",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],y.prototype,"where",void 0),y=(0,i.Cg)([(0,n.$K)("esri.layers.support.DisplayFilter")],y);var f=r(41560),h=r(43937);let g=class extends((0,l.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(a.A.ofType(y)),this.mode="manual"}writeFilters(e,t,r,i){let o=e.toArray();"scale"===this.mode&&o.sort((e,t)=>{let r=(0,p.oW)(t.minScale,e.minScale),i=e.maxScale-t.maxScale;return 0===r?i:r}),t[r]=o.map(e=>e.toJSON(i))}write(e,t){return super.write(e,(0,f.mW)(this,t))}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:{overridePolicy:(e,t,r)=>({enabled:"manual"===r.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,n.MZ)({type:a.A.ofType(y),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,i.Cg)([(0,h.K)("filters")],g.prototype,"writeFilters",null),(0,i.Cg)([(0,n.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,i.Cg)([(0,n.$K)("esri.layers.support.DisplayFilterInfo")],g);const m=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,i.Cg)([(0,n.MZ)(w)],r.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,n.MZ)(v)],r.prototype,"displayFilterInfo",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.DisplayFilteredLayer")],r),r},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:s.K,writer(e,t,r){(0,o.sM)(r,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},v={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:s.K},origins:{"web-scene":{write:!1,read:!1}}}}},32756(e,t,r){r.d(t,{Rr:()=>l});var i=r(32198),o=r(93637),n=r(91429),s=r(91880);function l(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new s.A;return o.read(i,r),[o]}const a={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){let n=e.find(e=>!!e.field);n&&(0,o.sM)(r,[n.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,n.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},8303(e,t,r){var i=r(32198),o=r(92602),n=r(70333),s=r(56507),l=r(60999),a=r(49186),u=r(36563),p=r(53966),d=r(97768),c=r(17676),y=r(84952),f=r(91429),h=r(77548),g=r(20655),m=r(80812),w=r(41318),v=r(10407),C=r(36005),M=r(43937);const b={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,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,d.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{let{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)||p.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;let i=t?.signal?null:new AbortController;try{let{reload:o}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,u.rE)(i),"reloadFromPortal"),await o({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)||p.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(!o.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:i},content:{updateItem:o}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",o)}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);let i,o,s=!n.id?.findCredential(this.url),l=e===r.id;if(l&&r.portal.user)return this._getUserPrivileges(r,s);if(l)i=r.portal.url;else try{i=await(0,h.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!i||!(0,y.b8)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;o=await(n.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(l?await r.reload():(r=new m.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,s)}catch(e){(0,c.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let 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,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;let r=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let r=n.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let i=`${r.owningSystemUrl}/sharing/rest`,o=g.A.getDefault();if(o&&o.loaded&&(0,y.S8)(o.restUrl)===(0,y.S8)(i))return o.user;let a=`${i}/community/self`,u=null==e?null:e.signal,p=await(0,l.Ke)((0,s.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){let r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||g.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,f.MZ)({type:m.default})],I.prototype,"portalItem",null),(0,i.Cg)([(0,C.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,i.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,i.Cg)([(0,f.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,i.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],I),I}])},82935(e,t,r){var i=r(32198),o=r(91429),n=r(30524),s=r(96184),l=r(73133),a=r(79677),u=r(10184),p=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,d,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,o=l.j.fromJSON(r.timeOffsetUnits);return i&&o?new u.A({value:i,unit:o}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,n.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,o.MZ)({type:a.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,o.MZ)({type:u.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,o.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,o.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},63396(e,t,r){r.d(t,{d:()=>I});var i=r(32198),o=r(91429),n=r(41910),s=r(60950),l=r(99959);class a extends l.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[s.ym](){return this.trackInfoProvider.trackInfo}get[n.e7](){return this.trackInfoProvider}}var u=r(37838),p=r(69540),d=r(25482),c=r(93637),y=r(50820),f=r(10873),h=r(46499),g=r(41214);let m=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,o.MZ)({type:[h.A],json:{write:!0}})],m.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,o.MZ)(f.kF)],m.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,o.MZ)({types:g.Hg,json:{write:!0}})],m.prototype,"renderer",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"visible",void 0),m=(0,i.Cg)([(0,o.$K)("esri.layers.support.TrackPartInfo")],m);var w=r(96576),v=r(59868),C=r(10184),M=r(43937);let b=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new m({renderer:new w.A({symbol:v.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new m({renderer:new w.A({symbol:v.UK.clone()})}),this.trackLines=new m({renderer:new w.A({symbol:v.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,r){let i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,c.sM)(r,i,t)}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],b.prototype,"enabled",void 0),(0,i.Cg)([(0,o.MZ)({type:[y.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,i.Cg)([(0,M.K)("fields")],b.prototype,"writeFields",null),(0,i.Cg)([(0,o.MZ)({type:m,json:{write:!0}})],b.prototype,"latestObservations",void 0),(0,i.Cg)([(0,o.MZ)({type:C.A,json:{write:!0}})],b.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],b.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,o.MZ)(f.M6)],b.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,o.MZ)({type:u.A,json:{name:"popupInfo",write:!0}})],b.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,o.MZ)({type:m,json:{write:!0}})],b.prototype,"previousObservations",void 0),(0,i.Cg)([(0,o.MZ)({type:m,json:{write:!0}})],b.prototype,"trackLines",void 0),(0,i.Cg)([(0,o.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],b.prototype,"timeField",void 0),b=(0,i.Cg)([(0,o.$K)("esri.layers.support.TrackInfo")],b);const I=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,i.Cg)([(0,o.MZ)({readOnly:!0,clonable:!1})],r.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,o.MZ)({type:b})],r.prototype,"trackInfo",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.TrackableLayer")],r),r}},75321(e,t,r){r.d(t,{CJ:()=>I,GA:()=>S,GL:()=>b,I:()=>x,J0:()=>F,Ki:()=>T,Px:()=>A,bW:()=>P});var i=r(56507),o=r(49186),n=r(53966),s=r(84952),l=r(16930),a=r(21325),u=r(28735),p=r(90708),d=r(58512),c=r(85113),y=r(64714),f=r(82832),h=r(95466),g=r(98453);r(98623);const m=()=>n.A.getLogger("esri.layers.ogc.ogcFeatureUtils"),w="startindex",v=new Set([w,"offset"]),C="http://www.opengis.net/def/crs/",M=`${C}OGC/1.3/CRS84`;async function b(e,t,r={},n=5){let{links:l}=e,a=E(l);if(!a)throw new o.A("ogc-feature-layer:missing-items-page","Missing items url");let{apiKey:u,customParameters:p,signal:d}=r,f=(0,s.s2)(a.href,e.landingPage.url),v={limit:n,...p,token:u},C=(0,s.a6)(f,v),{data:M}=await(0,i.A)(C,{signal:d,headers:{accept:"application/geo+json"}}),b=N(C,n,M.links)??w;(0,c.sO)(M);let I=M.numberMatched,A=(0,c.BM)(M,{geometryType:t.geometryType}),T=t.fields||A.fields||[],S=null==t.hasZ?A.hasZ:t.hasZ,F=A.geometryType,P=t.objectIdField||A.objectIdFieldName||"OBJECTID",x=t.timeInfo,O=T.find(({name:e})=>e===P);if(O)O.editable=!1,O.nullable=!1;else{if(!A.objectIdFieldType)throw new o.A("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");T.unshift({name:P,alias:P,type:"number"===A.objectIdFieldType?"esriFieldTypeOID":"esriFieldTypeString",editable:!1,nullable:!1})}if(P!==A.objectIdFieldName){let e=T.find(({name:e})=>e===A.objectIdFieldName);e&&(e.type="esriFieldTypeInteger")}T===A.fields&&A.unknownFields.length>0&&m().warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:A.unknownFields}});for(let e of T){if(e.name??=e.alias,e.alias??=e.name,"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable??=!0,e.nullable??=!0),!e.name)throw new o.A("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(!g.m.jsonValues.includes(e.type))throw new o.A("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(x){let e=new h.A(T);if(x.startTimeField){let t=e.get(x.startTimeField);t?(x.startTimeField=t.name,t.type="esriFieldTypeDate"):x.startTimeField=null}if(x.endTimeField){let t=e.get(x.endTimeField);t?(x.endTimeField=t.name,t.type="esriFieldTypeDate"):x.endTimeField=null}if(x.trackIdField){let t=e.get(x.trackIdField);t?x.trackIdField=t.name:(x.trackIdField=null,m().warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:x}}))}x.timeReference||={timeZoneIANA:"UTC"},!x.startTimeField&&!x.endTimeField&&(m().warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:x}}),x=void 0)}return{drawingInfo:F?(0,y.F0)(F):null,extent:j(e),geometryType:F,fields:T,hasZ:!!S,objectIdField:P,paginationParameter:b,timeInfo:x,featureCount:I}}async function I(e,t={}){let{links:r,url:n}=e,l=G(a=r,"data","application/json")??G(a,"http://www.opengis.net/def/rel/ogc/1.0/data","application/json");var a;if(!l)throw new o.A("ogc-feature-layer:missing-collections-page","Missing collections url");let{apiKey:u,customParameters:p,signal:d}=t,c=(0,s.s2)(l.href,n),{data:y}=await(0,i.A)(c,{signal:d,headers:{accept:"application/json"},query:{...p,token:u}});for(let t of y.collections)t.landingPage=e;return y}async function A(e,t={}){let{links:r,url:n}=e,l=G(a=r,"conformance","application/json")??G(a,"http://www.opengis.net/def/rel/ogc/1.0/conformance","application/json");var a;if(!l)throw new o.A("ogc-feature-layer:missing-conformance-page","Missing conformance url");let{apiKey:u,customParameters:p,signal:d}=t,c=(0,s.s2)(l.href,n),{data:y}=await(0,i.A)(c,{signal:d,headers:{accept:"application/json"},query:{...p,token:u}});return y}async function T(e,t={}){let{apiKey:r,customParameters:o,signal:n}=t,{data:s}=await(0,i.A)(e,{signal:n,headers:{accept:"application/json"},query:{...o,token:r}});return s.url=e,s}async function S(e,t={}){let{links:r,url:o}=e,n=G(r,"service-desc","application/vnd.oai.openapi+json;version=3.0");if(!n)return m().warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;let{apiKey:l,customParameters:a,signal:u}=t,p=(0,s.s2)(n.href,o),{data:d}=await(0,i.A)(p,{signal:u,headers:{accept:"application/vnd.oai.openapi+json;version=3.0"},query:{...a,token:l}});return d}function F(e){let t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e)?.groups;if(!t)return null;let{authority:r,code:i}=t;switch(r.toLowerCase()){case"ogc":switch(i.toLowerCase()){case"crs27":return l.A.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return l.A.WGS84.wkid;default:return null}case"esri":case"epsg":{let e=Number.parseInt(i,10);return Number.isNaN(e)?null:e}default:return null}}async function P(e,t,r){let i=await x(e,t,r);return(0,p.ZF)(i)}async function x(e,t,r){let{collection:{links:n,landingPage:{url:y}},layerDefinition:g,maxRecordCount:m,queryParameters:{apiKey:w,customParameters:v},spatialReference:C,supportedCrs:M}=e,b=E(n);if(!b)throw new o.A("ogc-feature-layer:missing-items-page","Missing items url");let{geometry:I,num:A,start:T,timeExtent:S,where:F}=t;if(t.objectIds)throw new o.A("ogc-feature-layer:query-by-objectids-not-supported","Queries with object ids are not supported");let P=l.A.fromJSON(C),x=t.outSpatialReference??P,Z=x.isWGS84?null:O(x,M),j=R(I,M),G=function(e){if(!e)return null;let{start:t,end:r}=e;return`${null==t?"..":t.toISOString()}/${null==r?"..":r.toISOString()}`}(S),N=(H=F)&&"1=1"!==H?H:null,L=A??(null==T?m:10),k=0===T?void 0:T,{fields:_,geometryType:U,hasZ:B,objectIdField:$,paginationParameter:q}=g,K=(0,s.s2)(b.href,y),{data:Q}=await(0,i.A)(K,{...r,query:{...v,...j,crs:Z,datetime:G,query:N,limit:L,[q]:k,token:w},headers:{accept:"application/geo+json"}}),W=(0,c.bd)(Q,{geometryType:U,hasZ:B,objectIdField:$}),z=W.length===L&&!!D(Q.links??[]),J=new h.A(_);var H;for(let e of W){let t={};(0,f.MB)(J,t,e.attributes,!0);for(let e of J.fields)e.nullable&&!(e.name in t)&&(t[e.name]=null);t[$]=e.attributes[$],e.attributes=t}if(!Z&&x.isWebMercator)for(let e of W)if(null!=e.geometry&&null!=U){let t=(0,p.zv)(e.geometry,U,B,!1);t.spatialReference=l.A.WGS84,e.geometry=(0,p.Ux)((0,u.Cv)(t,x))}for(let e of W)e.objectId=e.attributes[$];let V=Z||!Z&&x.isWebMercator?x.toJSON():a.KK,Y=new d.A;return Y.exceededTransferLimit=z,Y.features=W,Y.fields=_,Y.geometryType=U,Y.hasZ=B,Y.spatialReference=V,Y}function O(e,t){let{isWebMercator:r,wkid:i,latestWkid:o}=e;if(!i&&!o)return null;let n=r?t[3857]??t[102100]??t[102113]??t[900913]:i&&t[i]||o&&t[o];return n?`${C}${n}`:null}function Z(e){if(!e)return"";let{xmin:t,ymin:r,xmax:i,ymax:o}=e;return`${t},${r},${i},${o}`}function R(e,t){if(!function(e){return null!=e&&"extent"===e.type}(e))return null;let{spatialReference:r}=e;if(!r||r.isWGS84)return{bbox:Z(e)};let i=O(r,t);return null==i?r.isWebMercator?{bbox:Z((0,u.Cv)(e,l.A.WGS84))}:null:{bbox:Z(e),"bbox-crs":i}}function j(e){let t=e.extent?.spatial;if(!t)return null;let r=t.bbox[0],i=4===r.length,[o,n]=r,s=i?void 0:r[2];return{xmin:o,ymin:n,xmax:i?r[2]:r[3],ymax:i?r[3]:r[4],zmin:s,zmax:i?void 0:r[5],spatialReference:l.A.WGS84.toJSON()}}function E(e){return G(e,"items","application/geo+json","http://www.opengis.net/def/profile/ogc/0/rfc7946")??G(e,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json","http://www.opengis.net/def/profile/ogc/0/rfc7946")}function G(e,t,r,i){return i?e.find(({rel:e,type:o,profile:n})=>e===t&&o===r&&n?.includes(i))??e.find(({rel:e,type:i,profile:o})=>e===t&&i===r&&!o):e.find(({rel:e,type:i})=>e===t&&i===r)??e.find(({rel:e,type:r})=>e===t&&!r)}function D(e){return G(e,"next","application/geo+json")}function N(e,t,r){if(!r)return;let i=D(r),o=(0,s.An)(i?.href)?.query;if(!o)return;let n=(0,s.An)(e).query,l=Object.keys(n??{});return Object.entries(o).filter(([e])=>!l.includes(e)).find(([e,r])=>v.has(e.toLowerCase())&&Number.parseInt(r,10)===t)?.[0]}r.d(t,["QE",0,M,"vJ",0,C])},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(69540),n=r(66552),s=r(25482),l=r(91429);const a=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(32198),o=r(69540),n=r(25482),s=r(91429),l=r(8631),a=r(29005),u=r(36005),p=r(43937);let d=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,l.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],d)},91880(e,t,r){r.d(t,{A:()=>u});var i,o=r(32198),n=r(66552),s=r(25482),l=r(91429);const a=new n.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,o.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>n});var i=r(34727),o=r(39516);function n(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){let n=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(n&&((0,i.gg)(t,n[0])||(0,i.ZH)(r,n[1])))return"";let s=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let o=p(e.at(0)?.minScale),n=d(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(n,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],o=e[t+1];if((0,i.ZH)(p(o.minScale),d(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=p(e),r=p(r),t=d(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||1/0}function d(e){return e||0}},17036(e,t,r){r.d(t,{p:()=>a});var i=r(44208),o=r(53966),n=r(20437),s=r(95466),l=r(30524);function a(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){let t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){let e=t.map(e=>`'${e.name}'`).join(", ");o.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 ${2**53-1} (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(){let e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(let t of e)this.fieldsIndex?.has(t)||o.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)}}}}},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>s,OM:()=>u,Sm:()=>p,Y:()=>l,bK:()=>a,sQ:()=>d});var i=r(99917),o=r(16930),n=r(28735);function s(e,t){if(!l(e,t)){let 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,c.HOSTED_SERVICE)}function u(e,t){let r=e.typeKeywords;if(r){let e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?s(e,t):u(e,t)}async function d(e){let t,r=e.clone().normalize();if(r.length>1)for(let e of r)t?e.width>t.width&&(t=e):t=e;else t=r[0];return async function(e){let t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);let r=o.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(t)}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){let{portal:t,isOrgItem:r,itemControl:i}=e,o=t.user?.privileges,n=!o||o.includes("features:user:edit"),s=!!r&&!!o?.includes("features:user:fullEdit"),l="update"===i||"admin"===i;return l?s=n=!0:s&&(n=!0),{features:{edit:n,fullEdit:s},content:{updateItem:l}}}r.d(t,["mm",0,c])},22671(e,t,r){r.d(t,{A:()=>w});var i,o=r(32198),n=r(52106),s=r(66552),l=r(25482),a=r(4718),u=r(91429),p=r(16930),d=r(60408),c=r(65864),y=r(50498),f=r(20437),h=r(36005),g=r(43937);const m=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,c.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[n,s]}=r,l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*n+i,e=>o-e*s,l,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=p.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let n=e[t],s=r.fromJSON(n),l=n.geometry?.spatialReference;null!=s.geometry&&!l&&(s.geometry.spatialReference=i);let a=n.aggregateGeometries,u=s.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(s)}return o}_quantizePoints(e,t,r){let i,o,n=[];for(let s=0,l=e.length;s<l;s++){let l=e[s];if(s>0){let e=t(l[0]),s=r(l[1]);(e!==i||s!==o)&&(n.push([e-i,s-o]),i=e,o=s)}else i=t(l[0]),o=r(l[1]),n.push([i,o])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,n=i.length;e<n;e++){let n=i[e],s=this._quantizePoints(n,t,r);s&&o.push(s)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let n,s,l=(0,d.Bi)(e)?e.rings:e.paths;for(let e=0,i=l.length;e<i;e++){let i=l[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(n+=o[0],s+=o[1]):(n=o[0],s=o[1]),o[0]=t(n),o[1]=r(s)}}if(i&&o)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let n,s,l=e.points;for(let e=0,i=l.length;e<i;e++){let i=l[e];e>0?(n+=i[0],s+=i[1]):(n=i[0],s=i[1]),i[0]=t(n),i[1]=r(s)}if(i&&o)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2])}else if(o)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,u.MZ)({type:[n.A],json:{write:!0}})],w.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],w.prototype,"readFeatures",null),(0,o.Cg)([(0,u.MZ)({type:[f.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,o.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],w.prototype,"geometryType",void 0),(0,o.Cg)([(0,g.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,o.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,o.Cg)([(0,g.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,o.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1402,1560,3312,4500,5651,6217],{52106(e,t,r){r.d(t,{A:()=>S});var i,o,n=r(32198),l=r(37838),s=r(69540),a=r(51447),p=r(25482),u=r(53966),d=r(36708),y=r(24326),c=r(91429),g=r(12195),f=r(65864),h=r(50498),m=r(55156),v=r(60950),b=r(54339),w=r(94128),C=r(33910);const M=Symbol("meshGeometryHandles");function x(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let S=class extends((0,s.OU)(p.o)){static{i=w.Z}static{o=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,y.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){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({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;let t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let 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){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:x(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={}){let{geometry:t}=this;if("mesh"===t?.type){let 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;let o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(M);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.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,d.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})],M)}};(0,n.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,f.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],S.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,c.MZ)({value:null})],S.prototype,"attributes",null),(0,n.Cg)([(0,c.MZ)({value:null,types:h.yR,json:{read:f.rS}})],S.prototype,"geometry",null),(0,n.Cg)([(0,c.MZ)()],S.prototype,"distance",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,n.Cg)([(0,c.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,n.Cg)([(0,c.MZ)({type:l.A,value:null})],S.prototype,"popupTemplate",null),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,c.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],S.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,c.MZ)({value:null,types:C.Es})],S.prototype,"symbol",null),(0,n.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=o=(0,n.Cg)([(0,c.$K)("esri.Graphic")],S)},19334(e,t,r){r.d(t,{e:()=>l});var i=r(54639),o=r(14112);class n{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function l(e){if(null==e)return null;switch(e.type){case"point":if((0,o.e6)(e))return null;break;case"polygon":if((0,o.Wq)(e))return null;break;case"polyline":if((0,o.IY)(e))return null;break;case"multipoint":if((0,o.DG)(e))return null;break;case"extent":if((0,o.As)(e))return null;break;default:return null}let t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new n(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>p,p:()=>u});var i=r(54639),o=r(14112),n=r(16930),l=r(60408),s=r(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){let t=(0,s.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function p(e,t){if("object"!=typeof e||!e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof n.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new n.A,r.read(e.spatialReference))),null==r)throw Error("Spatial reference required");return(0,l.fT)(e)?u("point",e,r):(0,l.Rg)(e)?u("polyline",e,r):(0,l.Bi)(e)?u("polygon",e,r):(0,l.U9)(e)?u("multipoint",e,r):(0,l.ZC)(e)?u("extent",e,r):null}function u(e,t,r){if(null==t)return null;let n=!1,l=!1;switch(e){case"point":if((0,o.e6)(t))return null;n=void 0!==t.z,l=void 0!==t.m;break;case"polygon":if((0,o.Wq)(t))return null;n=!0===t.hasZ,l=!0===t.hasM;break;case"polyline":if((0,o.IY)(t))return null;n=!0===t.hasZ,l=!0===t.hasM;break;case"multipoint":if((0,o.DG)(t))return null;n=!0===t.hasZ,l=!0===t.hasM;break;case"extent":if((0,o.As)(t))return null;n=null!=t.zmin&&null!=t.zmax,l=null!=t.mmin&&null!=t.mmax;break;default:throw Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,n,l,new a(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function o(e){if(0===(e.curveRings??e.rings).length)return!0;for(let t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function n(e){if(0===(e.curvePaths??e.paths).length)return!0;for(let t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function l(e){return 0===e.points.length}function s(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>s,DG:()=>l,IY:()=>n,Wq:()=>o,e6:()=>i})},6797(e,t,r){r.d(t,{Ui:()=>y});var i=r(69622),o=r(7762),n=r(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(e){return e instanceof i.A}function a(e){return e instanceof o.A?Object.keys(e.items):s(e)?(0,n.oY)(e).keys():e?Object.keys(e):[]}function p(e,t){return e instanceof o.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function d(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),o=a(t);if(0===i.length&&0===o.length)return;if(!i.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let n=o.filter(e=>!i.includes(e)),y=i.filter(e=>!o.includes(e)),c=i.filter(r=>o.includes(r)&&p(e,r)!==p(t,r)).concat(n,y).sort(),g=u(e);if(g&&l.has(g)&&c.length)return{type:"complete",oldValue:e,newValue:t};let f,h=s(e)&&s(t);for(let i of c){let o,n=p(e,i),l=p(t,i);if((h||"function"!=typeof n&&"function"!=typeof l)&&n!==l&&(null!=n||null!=l)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(n,l);else if(n instanceof Date&&l instanceof Date){if(n.getTime()===l.getTime())continue;o={type:"complete",oldValue:n,newValue:l}}else o="object"==typeof n&&"object"==typeof l&&u(n)===u(l)?d(n,l):{type:"complete",oldValue:n,newValue:l};null!=o&&(null==f?f={type:"partial",diff:{[i]:o}}:f.diff[i]=o)}}return f}function y(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}:d(e,t)}},13069(e,t,r){r.d(t,{AG:()=>s,lk:()=>o,vD:()=>l,yS:()=>n});const i="randomUUID"in crypto;function o(){if(i)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let 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 n(){return`{${o().toUpperCase()}}`}function l(){return`{${o()}}`}function s(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},16852(e,t,r){r.r(t),r.d(t,{default:()=>j});var i=r(32198),o=r(49186),n=r(93637),l=r(91429),s=r(16930),a=r(41910),p=r(55156),u=r(60950),d=r(89808),y=r(99959);const c=Symbol("isOrientedImageryGraphicOrigin");var g;class f extends y.A{get[(g=c,u.ym)](){return this.layer}get[p.e](){return this.layer}get[d.Q](){return this.layer}get[a.e7](){return this.layer}constructor(e){super(),this[g]=!0,this.type="oriented-imagery",this.layer=e}get id(){return this.layer.id}}var h=r(18589),m=r(23281),v=r(20437),b=r(43440),w=r(79677);const C=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","imageGeometryField","imageReferenceField","referenceIDField","sequenceOrderField","sequenceOrderFields","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),M=new Set(["elevationSource"]),x=(e,t)=>!C.has(t)&&e;function S(e,t,r,i){let{name:o,write:n,read:l}=((e,t,r)=>{let i=`orientedImageryProperties.${e}`,o={allowNull:M.has(e),ignoreOrigin:!0};return{name:i,write:t?{...o,target:i,writer:t}:o,read:r?{ignoreOrigin:!0,source:i,reader:r}:{ignoreOrigin:!0}}})(e,t,r),s={name:o,write:n,read:l,origins:{service:{name:`orientedImageryInfo.${o}`,write:t,read:r},"web-scene":{name:o,write:x(n,e),read:x(l,e)},"web-map":{name:o,write:n,read:l}}};return i&&s.origins?(s.type=i,s.origins["web-map"].type=i,s.origins["web-scene"].type=i,s):s}let Z=class extends h.default{constructor(e){super(e),this.attributeTableTemplate=null,this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.graphicOrigin=new f(this),this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imageGeometryField="ImageGeometry",this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageReferenceField="OIObjectID",this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.referenceIDField="OBJECTID",this.sequenceOrderField="SequenceOrder",this.sequenceOrderFields=[],this.subtypeField=null,this.subtypes=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.verticalSearchRange=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.virtualCacheDirectory=null,this.dataStoreID=null,this.imageAccessPaths=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){let{elevationSource:e,demPathPrefix:t,demPathSuffix:r}=this;return(0,m.eR)(e,t,r)}get effectiveSequenceOrderField(){let{sequenceOrderField:e,fields:t,sequenceOrderFields:r}=this;return(0,m.o)(e,t,r)}get fieldConfigurations(){return super.fieldConfigurations}set fieldConfigurations(e){super.fieldConfigurations=e}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}findFirstValidLayerId(e){return e.layers?.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new o.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};(0,i.Cg)([(0,l.MZ)({type:b.A,json:{write:!1,read:!1}})],Z.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("cameraHeading")})],Z.prototype,"cameraHeading",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("cameraHeight")})],Z.prototype,"cameraHeight",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("cameraPitch")})],Z.prototype,"cameraPitch",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("cameraRoll")})],Z.prototype,"cameraRoll",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("coveragePercent")})],Z.prototype,"coveragePercent",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("demPathPrefix")})],Z.prototype,"demPathPrefix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("demPathSuffix")})],Z.prototype,"demPathSuffix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("depthImagePathPrefix")})],Z.prototype,"depthImagePathPrefix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("depthImagePathSuffix")})],Z.prototype,"depthImagePathSuffix",void 0),(0,i.Cg)([(0,l.MZ)({type:Object,json:S("elevationSource")})],Z.prototype,"elevationSource",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],Z.prototype,"effectiveElevationSource",null),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],Z.prototype,"effectiveSequenceOrderField",null),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("farDistance")})],Z.prototype,"farDistance",void 0),(0,i.Cg)([(0,l.MZ)({type:[v.A]})],Z.prototype,"fields",void 0),(0,i.Cg)([(0,l.MZ)()],Z.prototype,"geometryType",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],Z.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("horizontalFieldOfView")})],Z.prototype,"horizontalFieldOfView",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("horizontalMeasurementUnit")})],Z.prototype,"horizontalMeasurementUnit",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{...S("imageGeometryField"),default:"ImageGeometry"}})],Z.prototype,"imageGeometryField",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("imagePathPrefix")})],Z.prototype,"imagePathPrefix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("imagePathSuffix")})],Z.prototype,"imagePathSuffix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{...S("imageReferenceField"),default:"OIObjectID"}})],Z.prototype,"imageReferenceField",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("imageRotation")})],Z.prototype,"imageRotation",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("maximumDistance")})],Z.prototype,"maximumDistance",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("nearDistance")})],Z.prototype,"nearDistance",void 0),(0,i.Cg)([(0,l.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],Z.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,l.MZ)({json:{...S("orientationAccuracy",(e,t,r)=>{(0,n.sM)(r,e.join(";"),t)},e=>{let t=e?.split(";")?.map(Number);return(0,m.Qv)(t)?(0,m.Yp)(t):[0,0,0,0,0,0,0,0]},String)}})],Z.prototype,"orientationAccuracy",void 0),(0,i.Cg)([(0,l.MZ)({json:{...S("orientedImageryType",m.fs.write,m.fs.read,m.fs.jsonValues.slice(1))}})],Z.prototype,"orientedImageryType",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{...S("referenceIDField"),default:"OBJECTID"}})],Z.prototype,"referenceIDField",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{...S("sequenceOrderField"),default:"SequenceOrder"}})],Z.prototype,"sequenceOrderField",void 0),(0,i.Cg)([(0,l.MZ)({json:{...S("sequenceOrderFields",function(e,t,r){e?.length&&(0,n.sM)(r,e,t)}),default:[]}})],Z.prototype,"sequenceOrderFields",void 0),(0,i.Cg)([(0,l.MZ)({type:s.A})],Z.prototype,"spatialReference",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],Z.prototype,"subtypeField",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],Z.prototype,"subtypes",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],Z.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:m.RR.apiValues,json:{...S("timeIntervalUnit",m.RR.write,m.RR.read,m.RR.jsonValues)}})],Z.prototype,"timeIntervalUnit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("verticalFieldOfView")})],Z.prototype,"verticalFieldOfView",void 0),(0,i.Cg)([(0,l.MZ)({type:m.l6.apiValues,json:{...S("verticalMeasurementUnit",m.l6.write,m.l6.read,m.l6.jsonValues)}})],Z.prototype,"verticalMeasurementUnit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("verticalSearchRange")})],Z.prototype,"verticalSearchRange",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("videoPathPrefix")})],Z.prototype,"videoPathPrefix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("videoPathSuffix")})],Z.prototype,"videoPathSuffix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.orientedImageryProperties.virtualCacheDirectory",read:!0}}}})],Z.prototype,"virtualCacheDirectory",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.dsid",read:!0}}}})],Z.prototype,"dataStoreID",void 0),(0,i.Cg)([(0,l.MZ)({type:Object,readOnly:!0,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.imageAccessPaths",read:!0}}}})],Z.prototype,"imageAccessPaths",void 0),(0,i.Cg)([(0,l.MZ)({type:w.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],Z.prototype,"visibilityTimeExtent",void 0),Z=(0,i.Cg)([(0,l.$K)("esri.layers.OrientedImageryLayer")],Z);const j=Z},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>o})},52136(e,t,r){var i=r(32198),o=r(91429);r.d(t,["p",0,e=>{let t=e,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._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>s});var i=r(32198),o=r(93637),n=r(91429),l=r(91880);function s(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new l.A;return o.read(i,r),[o]}const a={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,i){let n=e.find(e=>!!e.field);n&&(0,o.sM)(r,[n.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,n.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},63490(e,t,r){r.d(t,{Mr:()=>a,TH:()=>s});var i=r(32198),o=r(69540),n=r(25482),l=r(91429);let s=class extends((0,o.OU)(n.o)){constructor(){super(...arguments),this.url=null}};(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],s.prototype,"lod",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],s.prototype,"rasterFunction",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],s.prototype,"url",void 0),s=(0,i.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],s);let a=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.constantElevation=null}};(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],a.prototype,"constantElevation",void 0),a=(0,i.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],a),r.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,r){r.d(t,{eR:()=>M,Qv:()=>A,fs:()=>Z,Yp:()=>O,o:()=>T,RR:()=>x,l6:()=>S});var i=r(66552),o=(r(86211),r(28735),r(32198)),n=r(69540),l=r(25482),s=r(91429),a=r(69622),p=r(21325);let u=class extends a.A{set horizontalWKID(e){e?(0,p.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,p.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1&&!Number.isNaN(t)&&r?.length>1&&i?.length>1&&o?.length>1}};(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"focalLength",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"horizontalWKID",null),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"verticalWKID",null),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"x",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"y",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"z",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"type",void 0),u=(0,o.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientation")],u);const d=u;let y=class extends((0,n.OU)((0,l.T)(d))){constructor(){super(...arguments),this.type=1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:l,pitch:s,roll:a,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:y,tangentialDistortionCoefficients:c}=this,g=[e,t,r,i,o,n,l,s,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),d?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e))),g.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],y.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],y.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"focalLength",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],y.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],y.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],y.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"heading",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"pitch",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"roll",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"x",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"y",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"z",void 0),y=(0,o.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],y);const c=y;let g=class extends((0,n.OU)((0,l.T)(d))){constructor(){super(...arguments),this.type=4}toString(){let{type:e,latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:n}=this,l=`${n}`.split("|");return l.splice(1,1),`${e}|${t}|${r}|${i}|${o}|${l.join("|")}`}};(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0},type:Number})],g.prototype,"latitude",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0},type:Number})],g.prototype,"longitude",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0},type:Number})],g.prototype,"ellipsoidRadius",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0},type:Number})],g.prototype,"squaredEccentricity",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],g.prototype,"properties",void 0),g=(0,o.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],g);const f=g;let h=class extends((0,n.OU)((0,l.T)(d))){constructor(){super(...arguments),this.type=2}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:l,phi:s,kappa:a,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:y,tangentialDistortionCoefficients:c}=this,g=[e,t,r,i,o,n,l,s,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),d?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e))),g.map(e=>isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],h.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],h.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"focalLength",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],h.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],h.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],h.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"omega",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"phi",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"kappa",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"x",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"y",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"z",void 0),h=(0,o.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],h);const m=h;let v=class extends((0,n.OU)((0,l.T)(d))){constructor(){super(...arguments),this.type=3}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1||!Number.isNaN(t)||r?.length>1||i?.length>1||o?.length>1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:l,pitch:s,roll:a,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:y,tangentialDistortionCoefficients:c}=this,g=[e,t,r,i,o,n,l,s,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),d?.forEach(e=>g.push(e)),d?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e))),g.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,o.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const b=v,w=new Map;w.set("2",{desc:"Using Omega Phi Kappa",constructor:m}),w.set("1",{desc:"Using Heading, Pitch and Roll",constructor:c}),w.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:b}),w.set("4",{desc:"Using Local Tangent Plane",constructor:f});var C=r(63490);function M(e,t,r){return e&&((0,C.E1)(e)?new C.Mr(e):function(e,t,r){let{url:i}=e;return i?(i=function(e,t,r){return t&&(e=`${t}${e}`),r&&(e+=`${r}`),e}(i,t,r),new C.TH({...e,url:i})):null}(e,t,r))}const x=new i.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),S=new i.J({Feet:"feet",Meter:"meter"}),Z=new i.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),j=new Map;j.set("1",function(e){let[t,r,i,o,n,l,s,a,p,u,d,y,c,g,f,h,m,v,b,w,C,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:l,pitch:s,roll:a,...I([p,u,d,y,c,g],[h,m],[v,b,w],[C,M],f)}}),j.set("3",function(e){let[t,r,i,o,n,l,s,a,p,u,d,y,c,g,f,h,m,v,b,w,C,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:l,pitch:s,roll:a,...I([p,u,d,y,c,g],[h,m],[v,b,w],[C,M],f)}}),j.set("2",function(e){let[t,r,i,o,n,l,s,a,p,u,d,y,c,g,f,h,m,v,b,w,C,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:l,phi:s,kappa:a,...I([p,u,d,y,c,g],[h,m],[v,b,w],[C,M],f)}}),j.set("4",function(e){let[t,r,i,o,n,...l]=e.slice(1),s=j.get(n),a=w.get(n)?.constructor;return s&&a?{latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:new a(s([n,"",...l]))}:null});const P=e=>{let t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function I(e,t,r,i,o){let n=P(e),l=P(t),s=P(r),a=P(i);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(o):void 0,principalOffsetPoint:2===l?.length?l:[0,0],radialDistortionCoefficients:3===s?.length?s:[0,0,0],tangentialDistortionCoefficients:2===a?.length?a:[0,0]}}function A(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function O(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}function T(e,t,r){let i=function(e,t){return e?.length?e.map(({field:e,order:r})=>{let i=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return i?{fieldName:i.name,sortOrder:"desc"===r?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(r,t);if(i?.length)return i;if(!e){let e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}let o=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return o?[{fieldName:o.name,sortOrder:"asc"}]:null}},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),o=r(69540),n=r(25482),l=r(91429),s=r(56400);let a=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,l.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>p});var i=r(32198),o=r(69540),n=r(66552),l=r(25482),s=r(91429);const a=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(32198),o=r(69540),n=r(25482),l=r(91429),s=r(8631),a=r(29005),p=r(36005),u=r(43937);let d=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,s.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,l.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],d)},46499(e,t,r){r.d(t,{A:()=>S});var i,o,n=r(32198),l=(r(44208),r(66552)),s=r(25482),a=r(4718),p=r(90629),u=r(91429),d=r(90360),y=r(73913),c=r(32730),g=r(77548),f=r(59868),h=r(73838),m=r(33910),v=r(36005),b=r(43937);const w=new l.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 C(e,t,r){return{enabled:!(0,g.TU)(r?.layer)}}function M(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let S=class extends s.o{static{i=c.vK}static{o=this}static evaluateWhere(e,t){let 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;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),o=i[3],n=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&n;case"OR":return e||n}}return!1}catch{}}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=f.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let 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,c.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,c.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&M(i))e=new y.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let o=e.toJSON(i);o.expression&&(t[r]=o)}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,c.XJ)(this)}getLabelExpressionArcade(){return(0,c.BI)(this)}getLabelExpressionSingleField(){return(0,c.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({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,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"name",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:C}}}}})],S.prototype,"allowOverrun",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:C}}}}})],S.prototype,"deconflictionStrategy",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],S.prototype,"labelExpression",void 0),(0,n.Cg)([(0,v.w)("labelExpression")],S.prototype,"readLabelExpression",null),(0,n.Cg)([(0,b.K)("labelExpression")],S.prototype,"writeLabelExpression",null),(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return M(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],S.prototype,"labelExpressionInfo",void 0),(0,n.Cg)([(0,b.K)("labelExpressionInfo")],S.prototype,"writeLabelExpressionInfo",null),(0,n.Cg)([(0,u.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],S.prototype,"labelPlacement",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],S.prototype,"offsetDistance",void 0),(0,n.Cg)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],S.prototype,"labelPosition",void 0),(0,n.Cg)([(0,u.MZ)({type:Number})],S.prototype,"maxScale",void 0),(0,n.Cg)([(0,b.K)("maxScale")],S.prototype,"writeMaxScale",null),(0,n.Cg)([(0,u.MZ)({type:Number})],S.prototype,"minScale",void 0),(0,n.Cg)([(0,b.K)("minScale")],S.prototype,"writeMinScale",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],S.prototype,"repeatLabel",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],S.prototype,"repeatLabelDistance",null),(0,n.Cg)([(0,u.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,d.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,d.C)({types:m.Rv})},write:h.oO,default:null}},write:h.oO,default:null}})],S.prototype,"symbol",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"useCodedValues",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=o=(0,n.Cg)([(0,u.$K)("esri.layers.support.LabelClass")],S)},73913(e,t,r){r.d(t,{A:()=>u});var i,o=r(32198),n=r(25482),l=r(91429),s=r(32730),a=r(36005),p=r(43937);let u=class extends n.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,o.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LabelExpressionInfo")],u)},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),n=r(7762),l=r(25482),s=r(91429);let a=i=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),n=r(66552),l=r(25482),s=r(91429);const a=new n.J({asc:"ascending",desc:"descending"});let p=class extends l.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,s.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.OrderByInfo")],p)},45067(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(69540),n=r(66552),l=r(25482),s=r(91429);const a=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.Relationship")],u)},41560(e,t,r){r.d(t,{Ch:()=>l,mW:()=>n});var i=r(34727),o=r(39516);function n(e,t){return{...t,filterMode:e.mode}}function l(e,t,r){let n=function(e){if("manual"===p(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(n&&((0,i.gg)(t,n[0])||(0,i.ZH)(r,n[1])))return"";let l=Array.from(s(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let o=u(e.at(0)?.minScale),n=d(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(n,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],o=e[t+1];if((0,i.ZH)(u(o.minScale),d(r.maxScale)))return!0}return!1}(l,t,r)?"1=1":l.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*s(e,t,r){if("manual"===p(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=u(e),r=u(r),t=d(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||1/0}function d(e){return e||0}},32730(e,t,r){r.d(t,{BI:()=>d,D3:()=>p,XJ:()=>u,lc:()=>a,mX:()=>c,rU:()=>y,tH:()=>v,zA:()=>w});var i=r(799);const o=RegExp("__begin__","ig"),n=RegExp("__end__","ig"),l=RegExp("^__begin__","i"),s=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function p(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function u(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function d(e){let t=u(e);if(!t)return null;switch(t.type){case"conventional":return c(t.expression);case"arcade":return t.expression}return null}function y(e){let t=u(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(g))?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function c(e){let t;return e?(t=(0,i.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=l.test(t)?t.replace(l,""):'"'+t,t=s.test(t)?t.replace(s,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(n,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,f=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,h=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,m=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=f.exec(e)||h.exec(e);return t?t[1]||t[3]:(t=m.exec(e),t?t[2]:null)}const b=Symbol("LabelClassInstance");function w(e){return"object"==typeof e&&!!e&&b in e}r.d(t,["vK",0,b])},39383(e,t,r){r.d(t,{w:()=>a,z:()=>d});var i=r(49186),o=r(53966),n=r(46499);const l=()=>o.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new n.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let 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 d(e,t){let r=[];for(let o of e){let e=o.labelPlacement,n=u[t];if(!o.symbol)return l().warn("No ILabelClass symbol specified."),[];if(!n)return l().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(n.includes(e))r.push(o);else{let i=n[0];e&&l().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let s=o.clone();s.labelPlacement=i,r.push(s)}}return r}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(32198),n=r(52106),l=r(66552),s=r(25482),a=r(4718),p=r(91429),u=r(16930),d=r(60408),y=r(65864),c=r(50498),g=r(20437),f=r(36005),h=r(43937);const m=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,n=this.features,l=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=n.length;e<t;e++)l?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[n,l]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let p=this._getHydrationFunction(e,e=>e*n+i,e=>o-e*l,s,a);for(let{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let n=e[t],l=r.fromJSON(n),s=n.geometry?.spatialReference;null!=l.geometry&&!s&&(l.geometry.spatialReference=i);let a=n.aggregateGeometries,p=l.aggregateGeometries;if(a&&null!=p)for(let e in p){let t=p[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(l)}return o}_quantizePoints(e,t,r){let i,o,n=[];for(let l=0,s=e.length;l<s;l++){let s=e[l];if(l>0){let e=t(s[0]),l=r(s[1]);(e!==i||l!==o)&&(n.push([e-i,l-o]),i=e,o=l)}else i=t(s[0]),o=r(s[1]),n.push([i,o])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,n=i.length;e<n;e++){let n=i[e],l=this._quantizePoints(n,t,r);l&&o.push(l)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let n,l,s=(0,d.Bi)(e)?e.rings:e.paths;for(let e=0,i=s.length;e<i;e++){let i=s[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(n+=o[0],l+=o[1]):(n=o[0],l=o[1]),o[0]=t(n),o[1]=r(l)}}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let n,l,s=e.points;for(let e=0,i=s.length;e<i;e++){let i=s[e];e>0?(n+=i[0],l+=i[1]):(n=i[0],l=i[1]),i[0]=t(n),i[1]=r(l)}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,f.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,h.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,f.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,h.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),o=r(66552),n=r(53966),l=r(91429),s=r(93223);const a=(0,o.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=>{let t=e,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"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&u||r&&p||null,t&&r&&n.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,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,s.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},93470(e,t,r){const i=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,o,"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,n])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2047],{60999(e,t,r){r.d(t,{DZ:()=>h,Ke:()=>p,QA:()=>g,Tj:()=>c,UT:()=>m,aD:()=>L,jJ:()=>u});var a=r(32198),i=r(69622),n=r(97768),s=r(17676),l=r(10107),o=r(64108);function u(e,t,r){return(0,s.Lx)(e.map((e,a)=>t.apply(r,[e,a])))}async function c(e,t,r){return(await(0,s.Lx)(e.map((e,a)=>t.apply(r,[e,a])))).map(e=>e.value)}function y(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return y(await e)}catch(e){return d(e)}}async function h(e){try{return y(await e)}catch(e){return(0,s.QP)(e),d(e)}}function g(e){if(!0===e.ok)return e.value;throw e.error}function m(e,t){return new f(e,t)}let f=class extends i.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,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=y(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,a.Cg)([(0,l.MZ)()],f.prototype,"value",null),(0,a.Cg)([(0,l.MZ)()],f.prototype,"error",null),(0,a.Cg)([(0,l.MZ)()],f.prototype,"finished",null),(0,a.Cg)([(0,l.MZ)()],f.prototype,"promise",void 0),(0,a.Cg)([(0,l.MZ)()],f.prototype,"_result",void 0),f=(0,a.Cg)([(0,o.$)("esri.core.asyncUtils.ReactiveTask")],f);class L{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,a.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,a.hk)(t)}}}},35522(e,t,r){r.d(t,{$A:()=>A,Bw:()=>n,C:()=>s,Cc:()=>C,DI:()=>b,Io:()=>L,Ln:()=>f,Om:()=>w,Qr:()=>y,Re:()=>u,S8:()=>I,T9:()=>g,WQ:()=>o,Z0:()=>T,_S:()=>p,aI:()=>P,ei:()=>E,fw:()=>_,gL:()=>x,hG:()=>S,hZ:()=>l,hs:()=>m,jk:()=>h,lw:()=>c,m3:()=>M,oW:()=>O,t2:()=>U,tn:()=>d,ze:()=>v});var a=r(51850),i=r(34304);function n(e){let t=e[0],r=e[1],a=e[2];return Math.sqrt(t*t+r*r+a*a)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,r,a){return e[0]=t,e[1]=r,e[2]=a,e}function o(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function y(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function p(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function h(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function g(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function f(e,t,r,a){return e[0]=t[0]+r[0]*a,e[1]=t[1]+r[1]*a,e[2]=t[2]+r[2]*a,e}function L(e,t){let r=t[0]-e[0],a=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+a*a+i*i)}function S(e,t){let r=t[0]-e[0],a=t[1]-e[1],i=t[2]-e[2];return r*r+a*a+i*i}function M(e){let t=e[0],r=e[1],a=e[2];return t*t+r*r+a*a}function v(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function b(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function I(e,t=e){let r=t[0],a=t[1],i=t[2],n=r*r+a*a+i*i;return n>0&&(n=1/Math.sqrt(n),e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n),e}function w(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){let a=t[0],i=t[1],n=t[2],s=r[0],l=r[1],o=r[2];return e[0]=i*o-n*l,e[1]=n*s-a*o,e[2]=a*l-i*s,e}function C(e,t,r,a){let i=t[0],n=t[1],s=t[2];return e[0]=i+a*(r[0]-i),e[1]=n+a*(r[1]-n),e[2]=s+a*(r[2]-s),e}function T(e,t,r){let a=t[0],i=t[1],n=t[2];return e[0]=r[0]*a+r[4]*i+r[8]*n+r[12],e[1]=r[1]*a+r[5]*i+r[9]*n+r[13],e[2]=r[2]*a+r[6]*i+r[10]*n+r[14],e}function E(e,t,r){let a=t[0],i=t[1],n=t[2];return e[0]=a*r[0]+i*r[3]+n*r[6],e[1]=a*r[1]+i*r[4]+n*r[7],e[2]=a*r[2]+i*r[5]+n*r[8],e}function x(e,t,r){return _(e,t,r[0],r[1],r[2],r[3])}function _(e,t,r,a,i,n){let s=t[0],l=t[1],o=t[2],u=a*o-i*l,c=i*s-r*o,y=r*l-a*s,d=a*y-i*c,p=i*u-r*y,h=r*c-a*u,g=2*n;return e[0]=s+u*g+2*d,e[1]=l+c*g+2*p,e[2]=o+y*g+2*h,e}const G=(0,a.vt)(),R=(0,a.vt)();function U(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function P(e,t){if(e===t)return!0;let r=e[0],a=e[1],n=e[2],s=t[0],l=t[1],o=t[2],u=(0,i.FD)();return Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-l)<=u*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))}function O(e,t,r){let a=r[0]-t[0],i=r[1]-t[1],n=r[2]-t[2],s=a*a+i*i+n*n;return s>0?(s=1/Math.sqrt(s),e[0]=a*s,e[1]=i*s,e[2]=n*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const k=u,W=c,V=y,j=L,D=S,H=n,B=M;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:o,angle:function(e,t){I(G,e),I(R,t);let r=w(G,R);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,a,i,n){let s=1-n,l=s*s,o=n*n,u=l*s,c=3*n*l,y=3*o*s,d=o*n;return e[0]=t[0]*u+r[0]*c+a[0]*y+i[0]*d,e[1]=t[1]*u+r[1]*c+a[1]*y+i[1]*d,e[2]=t[2]*u+r[2]*c+a[2]*y+i[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:s,cross:A,crossAndNormalize:function(e,t,r){let a=t[0],i=t[1],n=t[2],s=r[0],l=r[1],o=r[2],u=i*o-n*l,c=n*s-a*o,y=a*l-i*s,d=Math.sqrt(u*u+c*c+y*y);return e[0]=u/d,e[1]=c/d,e[2]=y/d,e},direction:O,dist:j,distance:L,div:V,divide:y,dot:w,equals:P,exactEquals:U,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,a,i,n){let s=n*n,l=s*(2*n-3)+1,o=s*(n-2)+n,u=s*(n-1),c=s*(3-2*n);return e[0]=t[0]*l+r[0]*o+a[0]*u+i[0]*c,e[1]=t[1]*l+r[1]*o+a[1]*u+i[1]*c,e[2]=t[2]*l+r[2]*o+a[2]*u+i[2]*c,e},inverse:b,len:H,length:n,lerp:C,max:g,min:h,mul:W,multiply:c,negate:v,normalize:I,random:function(e,t=1){let r=i.Ov,a=2*r()*Math.PI,n=2*r()-1,s=Math.sqrt(1-n*n)*t;return e[0]=Math.cos(a)*s,e[1]=Math.sin(a)*s,e[2]=n*t,e},rotateX:function(e,t,r,a){let i=[],n=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],n[0]=i[0],n[1]=i[1]*Math.cos(a)-i[2]*Math.sin(a),n[2]=i[1]*Math.sin(a)+i[2]*Math.cos(a),e[0]=n[0]+r[0],e[1]=n[1]+r[1],e[2]=n[2]+r[2],e},rotateY:function(e,t,r,a){let i=[],n=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],n[0]=i[2]*Math.sin(a)+i[0]*Math.cos(a),n[1]=i[1],n[2]=i[2]*Math.cos(a)-i[0]*Math.sin(a),e[0]=n[0]+r[0],e[1]=n[1]+r[1],e[2]=n[2]+r[2],e},rotateZ:function(e,t,r,a){let i=[],n=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],n[0]=i[0]*Math.cos(a)-i[1]*Math.sin(a),n[1]=i[0]*Math.sin(a)+i[1]*Math.cos(a),n[2]=i[2],e[0]=n[0]+r[0],e[1]=n[1]+r[1],e[2]=n[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:m,scaleAndAdd:f,scaleTo:function(e,t){return m(e,e,t/H(e))},set:l,sign:p,sqrDist:D,sqrLen:B,squaredDistance:S,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:k,subtract:u,transformMat3:E,transformMat4:T,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:x,transformQuatValues:_},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,H,"jb",0,k,"lo",0,D,"uE",0,B])},54239(e,t,r){r.d(t,{A:()=>f});var a,i=r(32198),n=r(4576),s=r(66552),l=r(25482),o=r(86211),u=r(67076),c=r(91429),y=r(97348),d=r(43937),p=r(36005);const h=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=h.jsonValues.slice();(0,n.Xy)(g,"orthometric");const m=(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 f=a=class extends l.o{constructor(e){super(e),this.origin=0,this.associatedSpatialReference=null,this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}read(e,t){super.read(e,t),("service"===t?.origin||"web-scene"===t?.origin)&&(this.origin="service"===t.origin?2:1,this.associatedSpatialReference=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 m.read(e)||(r?.messages&&r.messages.push(L(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,o.LA)(e)||m.read(e)||(r?.messages&&r.messages.push(L(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new a({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS,origin:this.origin,associatedSpatialReference:this.associatedSpatialReference})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static fromSpatialReference(e){let{latestVcsWkid:t,vcsWkid:r}=e;if(!r)return null;let i=(null==t?null:y.B.get(t))??y.B.get(r);return i?new a({heightModel:0===i.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,o.LA)(i.unit.name),vertCRS:i.datum,origin:3,associatedSpatialReference:e}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;let t=new a;return t.read(e,{origin:"web-scene"}),t}};function L(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i.Cg)([(0,c.MZ)()],f.prototype,"origin",void 0),(0,i.Cg)([(0,c.MZ)()],f.prototype,"associatedSpatialReference",void 0),(0,i.Cg)([(0,c.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],f.prototype,"heightModel",void 0),(0,i.Cg)([(0,d.K)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,i.Cg)([(0,p.w)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,i.Cg)([(0,c.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:{writer:m.write,isRequired:!0}}}}})],f.prototype,"heightUnit",void 0),(0,i.Cg)([(0,p.w)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,i.Cg)([(0,p.w)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,i.Cg)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=a=(0,i.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],f)},18768(e,t,r){var a=r(32198),i=r(53966),n=r(91429),s=r(60694);r.d(t,["b",0,e=>{let t=e,r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){let 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,i.A.getLogger(this)))}};return(0,a.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,a.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,a.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var a=r(32198),i=r(91429);r.d(t,["d",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,a.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,a.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},34287(e,t,r){var a=r(32198),i=r(49186),n=r(84952),s=r(91429),l=r(78888),o=r(89317),u=r(45917),c=r(49422),y=r(10873),d=r(6345),p=r(79677),h=r(59923),g=r(36005),m=r(43937);r.d(t,["q",0,e=>{let t=e,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,a){(a&&"ground"===a.layerContainerType||e&&(0,c.R)(this,r,{},a))&&(t[r]=e)}writeOperationalLayerType(e,t,r){e&&(t[r]=e)}writeTitle(e,t){t.title=e??"Layer"}readVisibilityTimeExtent(e){return e?p.A.fromArray(e):null}writeVisibilityTimeExtent(e,t,r,a){if(e&&"tables"!==a.layerContainerType){if(e.isEmpty)return void(a?.messages&&a.messages.push(new i.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,d.Bu)(t,this.operationalLayerType,this.type))return(0,h.U4)(t,this),null;let r=super.write(e,{...t,layer:this}),a=!!t&&!!t.messages&&!!t.messages.filter(e=>e instanceof i.A&&"web-document-write:property-required"===e.name).length;return(0,n.w8)(r?.url)?(t?.messages?.push(new i.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&&a?null:r}beforeSave(){}};return(0,a.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,a.Cg)([(0,g.w)("id",["id"])],r.prototype,"readId",null),(0,a.Cg)([(0,s.MZ)(y.C1)],r.prototype,"listMode",void 0),(0,a.Cg)([(0,m.K)("listMode")],r.prototype,"writeListMode",null),(0,a.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:o.K,isRequired:!0}}}}})],r.prototype,"operationalLayerType",void 0),(0,a.Cg)([(0,m.K)("operationalLayerType")],r.prototype,"writeOperationalLayerType",null),(0,a.Cg)([(0,s.MZ)(y.ke)],r.prototype,"opacity",void 0),(0,a.Cg)([(0,s.MZ)({type:Boolean,readOnly:!1})],r.prototype,"persistenceEnabled",void 0),(0,a.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,a.Cg)([(0,m.K)("title"),(0,m.K)(["web-scene"],"title")],r.prototype,"writeTitle",null),(0,a.Cg)([(0,s.MZ)({type:p.A,json:{origins:{"web-scene":{write:{layerContainerTypes:o.K}}}}})],r.prototype,"visibilityTimeExtent",void 0),(0,a.Cg)([(0,g.w)("visibilityTimeExtent")],r.prototype,"readVisibilityTimeExtent",null),(0,a.Cg)([(0,m.K)(["portal-item","web-map","web-scene"],"visibilityTimeExtent",{visibilityTimeExtent:{type:[[l.jz,l.Uv]]}})],r.prototype,"writeVisibilityTimeExtent",null),(0,a.Cg)([(0,s.MZ)({type:Boolean,json:{name:"visibility",write:{layerContainerTypes:o.K}}})],r.prototype,"visible",void 0),r=(0,a.Cg)([(0,s.$K)("esri.layers.mixins.OperationalLayer")],r),r}])},8303(e,t,r){var a=r(32198),i=r(92602),n=r(70333),s=r(56507),l=r(60999),o=r(49186),u=r(36563),c=r(53966),y=r(97768),d=r(17676),p=r(84952),h=r(91429),g=r(77548),m=r(20655),f=r(80812),L=r(41318),S=r(10407),M=r(36005),v=r(43937);const b={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,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,y.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{let{load:a}=await r.e(1204).then(()=>r(41204));return(0,d.Te)(t),await a({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)||c.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;let a=t?.signal?null:new AbortController;try{let{reload:i}=await r.e(1204).then(()=>r(41204));return a&&this.addHandles((0,u.rE)(a),"reloadFromPortal"),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:a.signal})}catch(e){throw(0,d.zf)(e)||c.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{a&&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(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:a},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",i)}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);let a,i,s=!n.id?.findCredential(this.url),l=e===r.id;if(l&&r.portal.user)return this._getUserPrivileges(r,s);if(l)a=r.portal.url;else try{a=await(0,g.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!a||!(0,p.b8)(a,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;i=await(n.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}if(!i)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(l?await r.reload():(r=new f.default({id:e,portal:{url:a}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,s)}catch(e){(0,d.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let r=(0,S.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){let t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;let r=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let r=n.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let a=`${r.owningSystemUrl}/sharing/rest`,i=m.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(a))return i.user;let o=`${a}/community/self`,u=null==e?null:e.signal,c=await(0,l.Ke)((0,s.A)(o,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?L.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){let r=t?.portal,a=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return r&&a&&!(0,p.ut)(a.restUrl,r.restUrl)?(t.messages&&t.messages.push(new o.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,a.Cg)([(0,h.MZ)({type:f.default})],I.prototype,"portalItem",null),(0,a.Cg)([(0,M.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,a.Cg)([(0,v.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,a.Cg)([(0,h.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,a.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,a.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,a.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,a.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],I),I}])},25036(e,t,r){var a=r(32198),i=r(91429);r.d(t,["j",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){let 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);let r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,a.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,a.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,a.Cg)([(0,i.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,a.Cg)([(0,i.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},6345(e,t,r){r.d(t,{Bu:()=>S,VH:()=>L});var a=r(44208);const i={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"},n={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,a.A)("parquetlayer-persistence-enabled")?"ParquetLayer":"UnsupportedLayer"},SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},s={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},l={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},o={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},u={ArcGISTiledElevationServiceLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},c={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"},y={ArcGISFeatureLayer:"FeatureLayer"},d={...n,LinkChartLayer:"LinkChartLayer"},p=i,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"},m=s;function f(e){switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap-base-layers":return l;case"basemap-ground-layers":return o;case"ground":return u;case"tables":return y;default:return c}case"link-chart":switch(e.layerContainerType){case"basemap-base-layers":return p;case"tables":return h;default:return d}default:switch(e.layerContainerType){case"basemap-base-layers":return i;case"tables":return s;case"ground":case"basemap-ground-layers":return;default:return n}}}function L(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 f(e)?.[t]??"UnknownLayer"}function S(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}let a=function(e){if("portal-item"===e.origin)switch(e.layerContainerType){case"basemap-base-layers":case"ground":case"basemap-ground-layers":return;case"tables":return m;default:return g}return f(e)}(e)?.[t];return null!=a&&"UnknownLayer"!==a&&"UnsupportedLayer"!==a}},88546(e,t,r){r.d(t,{_8:()=>m,uB:()=>f});var a=r(34727),i=r(35522),n=r(51850),s=r(73941),l=r(5443),o=r(54239),u=r(16930),c=r(9762);const y=new u.A({wkid:4326,vcsWkid:115700}),d=new l.A(-180,-90,180,90,y);function p(e,t){if(!Array.isArray(e)||e.length<t)return!1;for(let t of e)if("number"!=typeof t)return!1;return!0}const h=7645211,g={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function m(e){return!(!(e.extensions?.ESRI_crs?.wkid||e.extensions?.ESRI_crs?.latestWkid||e.extensions?.ESRI_crs?.wkt)||!e.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!e.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function f(e,t=!1){let r=new u.A({wkid:4326,vcsWkid:115700}),o=e.root?.boundingVolume,y=!1,d=e?.root?.transform;if(t&&(e.extensions?.ESRI_crs?.wkid||e.extensions?.ESRI_crs?.latestWkid||e.extensions?.ESRI_crs?.wkt)&&(e.root?.extensions?.ESRI_crs?.boundingVolume?.box||e.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))r=new u.A(e.extensions?.ESRI_crs),o=e.root?.extensions?.ESRI_crs?.boundingVolume,d=e.root?.transform,y=!0;else if(!o)return new l.A(-180,-90,180,90,r);if(o.box){let e=o?.box;if(e[3]>h&&e[7]>h&&e[11]>h)return new l.A({...g,spatialReference:r})}let m=(0,n.vt)();if(!y&&o.region&&p(o.region,6)){let e=o.region,t=(0,a.KJ)(e[0]),i=(0,a.KJ)(e[1]),n=e[4],s=(0,a.KJ)(e[2]),u=(0,a.KJ)(e[3]),c=e[5];return new l.A({xmin:t,ymin:i,zmin:n,xmax:s,ymax:u,zmax:c,spatialReference:r})}if(o.sphere&&p(o.sphere,4)){let e=o.sphere,t=(0,n.fA)(e[0],e[1],e[2]),a=e[3]/Math.sqrt(3),h=(0,n.vt)();(0,i.Re)(h,t,(0,n.fA)(a,a,a));let g=(0,n.vt)();if((0,i.WQ)(g,t,(0,n.fA)(a,a,a)),d&&p(d,16)){let e=d;(0,i.Z0)(m,h,e),(0,i.C)(h,m),(0,i.Z0)(m,g,e),(0,i.C)(g,m)}y||((0,c.projectBuffer)(h,s.Ro,0,h,u.A.WGS84,0),(0,c.projectBuffer)(g,s.Ro,0,g,u.A.WGS84,0));let f=(0,n.vt)(),L=(0,n.vt)();return(0,i.jk)(f,h,g),(0,i.T9)(L,h,g),new l.A({xmin:f[0],ymin:f[1],zmin:f[2],xmax:L[0],ymax:L[1],zmax:L[2],spatialReference:r})}if(o.box&&p(o.box,12)){let e=o.box,t=(0,n.fA)(e[0],e[1],e[2]),a=(0,n.fA)(e[3],e[4],e[5]),h=(0,n.fA)(e[6],e[7],e[8]),g=(0,n.fA)(e[9],e[10],e[11]),m=[];for(let e=0;e<8;++e)m.push((0,n.vt)());if((0,i.WQ)(m[0],t,a),(0,i.WQ)(m[0],m[0],h),(0,i.WQ)(m[0],m[0],g),(0,i.jb)(m[1],t,a),(0,i.WQ)(m[1],m[1],h),(0,i.WQ)(m[1],m[1],g),(0,i.WQ)(m[2],t,a),(0,i.jb)(m[2],m[2],h),(0,i.WQ)(m[2],m[2],g),(0,i.jb)(m[3],t,a),(0,i.jb)(m[3],m[3],h),(0,i.WQ)(m[3],m[3],g),(0,i.WQ)(m[4],t,a),(0,i.WQ)(m[4],m[4],h),(0,i.jb)(m[4],m[4],g),(0,i.jb)(m[5],t,a),(0,i.WQ)(m[5],m[5],h),(0,i.jb)(m[5],m[5],g),(0,i.WQ)(m[6],t,a),(0,i.jb)(m[6],m[6],h),(0,i.jb)(m[6],m[6],g),(0,i.jb)(m[7],t,a),(0,i.jb)(m[7],m[7],h),(0,i.jb)(m[7],m[7],g),d&&p(d,16)){let e=d;for(let t=0;t<8;++t)(0,i.Z0)(m[t],m[t],e)}let f=(0,n.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),L=(0,n.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let e=0;e<8;++e)y||(0,c.projectBuffer)(m[e],s.Ro,0,m[e],u.A.WGS84,0),(0,i.jk)(L,L,m[e]),(0,i.T9)(f,f,m[e]);return new l.A({xmin:L[0],ymin:L[1],zmin:L[2],xmax:f[0],ymax:f[1],zmax:f[2],spatialReference:r})}return new l.A(-180,-90,180,90,r)}new Map([[5773,new o.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new o.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new o.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new o.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new o.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new o.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height)"})],[5709,new o.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"NAP"})]]),r.d(t,["Zx",0,y,"zq",0,d])},10407(e,t,r){r.d(t,{It:()=>p,LG:()=>s,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>o,sQ:()=>y});var a=r(99917),i=r(16930),n=r(28735);function s(e,t){if(!l(e,t)){let r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function o(e){return l(e,d.HOSTED_SERVICE)}function u(e,t){let r=e.typeKeywords;if(r){let e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?s(e,t):u(e,t)}async function y(e){let t,r=e.clone().normalize();if(r.length>1)for(let e of r)t?e.width>t.width&&(t=e):t=e;else t=r[0];return async function(e){let t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);let r=i.A.WGS84;return await(0,a.initializeProjection)(t,r),(0,a.project)(e,r)}(t)}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 p(e){let{portal:t,isOrgItem:r,itemControl:a}=e,i=t.user?.privileges,n=!i||i.includes("features:user:edit"),s=!!r&&!!i?.includes("features:user:fullEdit"),l="update"===a||"admin"===a;return l?s=n=!0:s&&(n=!0),{features:{edit:n,fullEdit:s},content:{updateItem:l}}}r.d(t,["mm",0,d])},78553(e,t,r){r.d(t,{D:()=>n,p:()=>i});var a=r(78888);function i(e){let t=(0,a.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){let t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5228],{85334(t,i,s){s.d(i,{$:()=>R,IB:()=>_,Iy:()=>M,KV:()=>S,N2:()=>E,RH:()=>g,ZD:()=>T,sn:()=>I});var e=s(68197),n=s(4576),h=s(4718),r=s(34727);function _(t){return"r"in t&&"g"in t&&"b"in t}function l(t){return"h"in t&&"s"in t&&"v"in t}function a(t){return"l"in t&&"a"in t&&"b"in t}function u(t){return"l"in t&&"c"in t&&"h"in t}s(78955),s(91829);const o=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],x=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function y(t,i){let s,e,n=[];if(t[0].length!==i.length)throw Error("dimensions do not match");let h=t.length,r=t[0].length,_=0;for(s=0;s<h;s++){for(_=0,e=0;e<r;e++)_+=t[s][e]*i[e];n.push(_)}return n}function c(t){let i=[t.r/255,t.g/255,t.b/255].map(t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4),s=y(o,i);return{x:100*s[0],y:100*s[1],z:100*s[2]}}function f(t){let i=y(x,[t.x/100,t.y/100,t.z/100]).map(t=>{let i=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(i,0))});return{r:Math.round(255*i[0]),g:Math.round(255*i[1]),b:Math.round(255*i[2])}}function m(t){let i=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*i[1]-16,a:500*(i[0]-i[1]),b:200*(i[1]-i[2])}}function p(t){let i=t.l,s=[(i+16)/116+t.a/500,(i+16)/116,(i+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*s[0],y:100*s[1],z:108.883*s[2]}}function R(t){return _(t)?t:u(t)?function(t){return f(p(function(t){let i=t.l,s=t.c,e=t.h;return{l:i,a:s*Math.cos(e),b:s*Math.sin(e)}}(t)))}(t):a(t)?function(t){return f(p(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?f(t):l(t)?function(t){let i,s=(t.h+360)%360/60,e=t.s/100,n=t.v/100*255,h=n*e,r=h*(1-Math.abs(s%2-1));switch(Math.floor(s)){case 0:i={r:h,g:r,b:0};break;case 1:i={r,g:h,b:0};break;case 2:i={r:0,g:h,b:r};break;case 3:i={r:0,g:r,b:h};break;case 4:i={r,g:0,b:h};break;case 5:case 6:i={r:h,g:0,b:r};break;default:i={r:0,g:0,b:0}}return i.r=Math.round(i.r+n-h),i.g=Math.round(i.g+n-h),i.b=Math.round(i.b+n-h),i}(t):t}function E(t){return l(t)?t:function(t){let{r:i,g:s,b:e}=t,n=Math.max(i,s,e),h=n-Math.min(i,s,e),r=n,_=0===h?0:n===i?(s-e)/h%6:n===s?(e-i)/h+2:(i-s)/h+4,l=0===h?0:h/r;return _<0&&(_+=6),_*=60,l*=100,r*=100/255,{h:_,s:l,v:r}}(R(t))}function T(t){return a(t)?t:function(t){return m(c(t))}(R(t))}function g(t){return u(t)?t:function(t){return function(t){let i=t.l,s=t.a,e=t.b,n=Math.sqrt(s*s+e*e),h=Math.atan2(e,s);return h=h>0?h:h+2*Math.PI,{l:i,c:n,h}}(m(c(t)))}(R(t))}function S(t){return t[0]??=0,t[1]??=0,t[2]??=0,t}function I(t){return t.length=4,S(t),t[3]??=1,(0,r.qE)(t[3],0,1),t}function M(t,i,s={}){if(0===t.length||i<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new e.A(t):t)).length||1===i){let s=[],e=t[0];for(let t=0;t<i;t++)s.push(e.clone());return s}if(s.shuffle&&(t=(0,n.k4)((0,h.o8)(t),s.seed)),t.length>=i){let s=[],e=(t.length-1)/(i-1);for(let n=0;n<i;n++){let i=Math.round(n*e);s.push(t[i].clone())}return s}return function(t,i,s={}){let e=[],h=t.length-1,r=Math.ceil((i-t.length)/h);t:for(let n=0;n<h;n++){let h=t[n],_=t[n+1];for(let n=1;n<=r;n++){let l=n/(r+1);if(e.push(N(h,_,l,s)),e.length+t.length===i)break t}}return[...t.map(t=>t.clone()),...(0,n.k4)(e,s.seed??1)]}(t,i,s)}const d=(t,i)=>{let s=Math.floor(10*i())-5;return Math.min(255,Math.max(0,t+s))};function N(t,i,s,h={}){let r=t.r,_=t.g,l=t.b,a=i.r,u=i.g,o=i.b,x=Math.round(r+(a-r)*s),y=Math.round(_+(u-_)*s),c=Math.round(l+(o-l)*s);if(!h.offset)return new e.A([x,y,c]);let f=(0,n.Mo)(h.seed);return new e.A([d(x,f),d(y,f),d(c,f)])}},6774(t,i,s){s.d(i,{O3:()=>h,Ox:()=>r,bR:()=>e});class e{constructor(t,i){this.x=t,this.y=i}static fromArray(t){return new e(t[0],t[1])}clone(){return new e(this.x,this.y)}equals(t,i){return t===this.x&&i===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,i){return this.x=t,this.y=i,this}normalize(){let t=this.x,i=this.y,s=Math.sqrt(t*t+i*i);return this.x/=s,this.y/=s,this}rightPerpendicular(){let t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){let t=this.x;return this.x=-this.y,this.y=t,this}move(t,i){return this.x+=t,this.y+=i,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,i){return this.x=t.x+i.x,this.y=t.y+i.y,this}assignSub(t,i){return this.x=t.x-i.x,this.y=t.y-i.y,this}rotate(t,i){let s=this.x,e=this.y;return this.x=s*t-e*i,this.y=s*i+e*t,this}rotateReverse(t,i){let s=this.x,e=this.y;return this.x=s*t+e*i,this.y=-s*i+e*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){let t=this.x,i=this.y;return Math.sqrt(t*t+i*i)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,i){let s=i.x-t.x,e=i.y-t.y;return Math.sqrt(s*s+e*e)}static add(t,i){return new e(t.x+i.x,t.y+i.y)}static sub(t,i){return new e(t.x-i.x,t.y-i.y)}}class n{constructor(t,i,s){this.ratio=t,this.x=i,this.y=s}}class h{constructor(t,i,s,e=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=e,this._pixelMargin=n,this._tileSize=512*e,this._dz=t,this._yPos=i,this._xPos=s}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let i=this._pixelRatio*this._pixelMargin;i/=this._finalRatio;let s=t>>this._dz;i>s&&(i=s),this._margin=i,this._xmin=s*this._xPos-i,this._ymin=s*this._yPos-i,this._xmax=this._xmin+s+2*i,this._ymax=this._ymin+s+2*i}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,i){this._pushLine(),this._prevIsIn=this._isIn(t,i),this._moveTo(t,i,this._prevIsIn),this._prevPt=new e(t,i),this._firstPt=new e(t,i),this._dist=0}lineTo(t,i){let s,h,r,_,l,a,u,o,x=this._isIn(t,i),y=new e(t,i),c=e.distance(this._prevPt,y);if(x)this._prevIsIn?this._lineTo(t,i,!0):(s=this._prevPt,h=y,r=this._intersect(h,s),this._start=this._dist+c*(1-this._r),this._lineTo(r.x,r.y,!0),this._lineTo(h.x,h.y,!0));else if(this._prevIsIn)h=this._prevPt,s=y,r=this._intersect(h,s),this._lineTo(r.x,r.y,!0),this._lineTo(s.x,s.y,!1);else{let t=this._prevPt,i=y;if(t.x<=this._xmin&&i.x<=this._xmin||t.x>=this._xmax&&i.x>=this._xmax||t.y<=this._ymin&&i.y<=this._ymin||t.y>=this._ymax&&i.y>=this._ymax)this._lineTo(i.x,i.y,!1);else{let s=[];if((t.x<this._xmin&&i.x>this._xmin||t.x>this._xmin&&i.x<this._xmin)&&(_=(this._xmin-t.x)/(i.x-t.x),o=t.y+_*(i.y-t.y),o<=this._ymin?a=!1:o>=this._ymax?a=!0:s.push(new n(_,this._xmin,o))),(t.x<this._xmax&&i.x>this._xmax||t.x>this._xmax&&i.x<this._xmax)&&(_=(this._xmax-t.x)/(i.x-t.x),o=t.y+_*(i.y-t.y),o<=this._ymin?a=!1:o>=this._ymax?a=!0:s.push(new n(_,this._xmax,o))),(t.y<this._ymin&&i.y>this._ymin||t.y>this._ymin&&i.y<this._ymin)&&(_=(this._ymin-t.y)/(i.y-t.y),u=t.x+_*(i.x-t.x),u<=this._xmin?l=!1:u>=this._xmax?l=!0:s.push(new n(_,u,this._ymin))),(t.y<this._ymax&&i.y>this._ymax||t.y>this._ymax&&i.y<this._ymax)&&(_=(this._ymax-t.y)/(i.y-t.y),u=t.x+_*(i.x-t.x),u<=this._xmin?l=!1:u>=this._xmax?l=!0:s.push(new n(_,u,this._ymax))),0===s.length)l?a?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):a?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(s.length>1&&s[0].ratio>s[1].ratio)this._start=this._dist+c*s[1].ratio,this._lineTo(s[1].x,s[1].y,!0),this._lineTo(s[0].x,s[0].y,!0);else{this._start=this._dist+c*s[0].ratio;for(let t=0;t<s.length;t++)this._lineTo(s[t].x,s[t].y,!0)}this._lineTo(i.x,i.y,!1)}}this._dist+=c,this._prevIsIn=x,this._prevPt=y}close(){if(this._line.length>2){let t=this._firstPt,i=this._prevPt;(t.x!==i.x||t.y!==i.y)&&this.lineTo(t.x,t.y);let s=this._line,e=s.length;for(;e>=4&&(s[0].x===s[1].x&&s[0].x===s[e-2].x||s[0].y===s[1].y&&s[0].y===s[e-2].y);)s.pop(),s[0].x=s[e-2].x,s[0].y=s[e-2].y,--e}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&_.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw Error("Only valid for lines");this._pushLine();let t=this._lines,i=t.length;if(0===i)return null;let s=[];for(let e=0;e<i;e++)s.push({line:t[e],start:this._starts[e]||0});return s}_isIn(t,i){return t>=this._xmin&&t<=this._xmax&&i>=this._ymin&&i<=this._ymax}_intersect(t,i){let s,n,h;if(i.x>=this._xmin&&i.x<=this._xmax)n=i.y<=this._ymin?this._ymin:this._ymax,h=(n-t.y)/(i.y-t.y),s=t.x+h*(i.x-t.x);else if(i.y>=this._ymin&&i.y<=this._ymax)s=i.x<=this._xmin?this._xmin:this._xmax,h=(s-t.x)/(i.x-t.x),n=t.y+h*(i.y-t.y);else{n=i.y<=this._ymin?this._ymin:this._ymax,s=i.x<=this._xmin?this._xmin:this._xmax;let e=(s-t.x)/(i.x-t.x),r=(n-t.y)/(i.y-t.y);e<r?(h=e,n=t.y+e*(i.y-t.y)):(h=r,s=t.x+r*(i.x-t.x))}return this._r=h,new e(s,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,i,s){3===this._type?(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),i<this._ymin&&(i=this._ymin),i>this._ymax&&(i=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.push(new e(t,i)),this._isH=!1,this._isV=!1):s&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.push(new e(t,i)))}_lineTo(t,i,s){let n,h;if(3!==this._type)if(s){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,i)))return;this._line.push(new e(t,i))}else this._line&&this._line.length>0&&this._pushLine();else if(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),i<this._ymin&&(i=this._ymin),i>this._ymax&&(i=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];let s=n.x===t,r=n.y===i;if(s&&r)return;this._isH&&s||this._isV&&r?(n.x=t,n.y=i,h=this._line[this._line.length-2],h.x===t&&h.y===i?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(h=this._line[this._line.length-2],this._isH=h.x===t,this._isV=h.y===i)):(this._isH=h.x===t,this._isV=h.y===i)):(this._line.push(new e(t,i)),this._isH=s,this._isV=r)}else this._line.push(new e(t,i))}}class r{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,i){this._line&&this._lines.push(this._line),this._line=[];let s=this._ratio;this._line.push(new e(t*s,i*s))}lineTo(t,i){let s=this._ratio;this._line.push(new e(t*s,i*s))}close(){let t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class _{static simplify(t,i,s){if(!s)return;let e=-i,n=t+i,h=-i,r=t+i,l=[],a=[],u=s.length;for(let t=0;t<u;++t){let i=s[t];if(!i||i.length<2)continue;let _,u=i[0],o=i.length;for(let s=1;s<o;++s)_=i[s],u.x===_.x&&(u.x<=e&&(u.y>_.y?(l.push(t),l.push(s),l.push(0),l.push(-1)):(a.push(t),a.push(s),a.push(0),a.push(-1))),u.x>=n&&(u.y<_.y?(l.push(t),l.push(s),l.push(1),l.push(-1)):(a.push(t),a.push(s),a.push(1),a.push(-1)))),u.y===_.y&&(u.y<=h&&(u.x<_.x?(l.push(t),l.push(s),l.push(2),l.push(-1)):(a.push(t),a.push(s),a.push(2),a.push(-1))),u.y>=r&&(u.x>_.x?(l.push(t),l.push(s),l.push(3),l.push(-1)):(a.push(t),a.push(s),a.push(3),a.push(-1)))),u=_}if(0===l.length||0===a.length)return;_.fillParent(s,a,l),_.fillParent(s,l,a);let o=[];_.calcDeltas(o,a,l),_.calcDeltas(o,l,a),_.addDeltas(o,s)}static fillParent(t,i,s){let e=s.length,n=i.length;for(let h=0;h<n;h+=4){let n=i[h],r=i[h+1],_=i[h+2],a=t[n][r-1],u=t[n][r],o=8092,x=-1;for(let i=0;i<e;i+=4){if(s[i+2]!==_)continue;let e=s[i],n=s[i+1],h=t[e][n-1],r=t[e][n];switch(_){case 0:case 1:if(l(a.y,h.y,r.y)&&l(u.y,h.y,r.y)){let t=Math.abs(r.y-h.y);t<o&&(o=t,x=i)}break;case 2:case 3:if(l(a.x,h.x,r.x)&&l(u.x,h.x,r.x)){let t=Math.abs(r.x-h.x);t<o&&(o=t,x=i)}}}i[h+3]=x}}static calcDeltas(t,i,s){let e=i.length;for(let n=0;n<e;n+=4){let e=_.calcDelta(n,i,s,[]);t.push(i[n]),t.push(i[n+1]),t.push(i[n+2]),t.push(e)}}static calcDelta(t,i,s,e){let n=i[t+3];if(-1===n)return 0;let h=e.length;return h>1&&e[h-2]===n?0:(e.push(n),_.calcDelta(n,s,i,e)+1)}static addDeltas(t,i){let s=t.length,e=0;for(let i=0;i<s;i+=4){let s=t[i+3];s>e&&(e=s)}for(let n=0;n<s;n+=4){let s=i[t[n]],h=t[n+1],r=e-t[n+3];switch(t[n+2]){case 0:s[h-1].x-=r,s[h].x-=r,1===h&&(s[s.length-1].x-=r),h===s.length-1&&(s[0].x-=r);break;case 1:s[h-1].x+=r,s[h].x+=r,1===h&&(s[s.length-1].x+=r),h===s.length-1&&(s[0].x+=r);break;case 2:s[h-1].y-=r,s[h].y-=r,1===h&&(s[s.length-1].y-=r),h===s.length-1&&(s[0].y-=r);break;case 3:s[h-1].y+=r,s[h].y+=r,1===h&&(s[s.length-1].y+=r),h===s.length-1&&(s[0].y+=r)}}}}const l=(t,i,s)=>t>=i&&t<=s||t>=s&&t<=i},13195(t,i,s){s.d(i,{GW:()=>c,IU:()=>f,Wh:()=>u,cP:()=>m,p6:()=>y,wV:()=>x,yM:()=>p,z0:()=>o});var e=s(6774);const n=Math.PI,h=2*n,r=128/n,_=256/360,l=n/180,a=1/Math.LN2;function u(t,i){return(t%=i)>=0?t:t+i}function o(t){return u(t*r,256)}function x(t){return u(t*_,256)}function y(t){return Math.log(t)*a}function c(t,i,s){return t*(1-s)+i*s}function f(t){return 8+Math.max(16*(t-14),0)}function m(t,i){if(0===i||Number.isNaN(i))return t;let s=[],n=new e.bR(0,0),h=new e.bR(0,0),r=new e.bR(0,0);for(let _=0;_<t.length;_++){let l=t[_],a=[];for(let t=0;t<l.length;t++){let s=l[t-1],_=l[t],u=l[t+1];0===t?n.setCoords(0,0):n.assignSub(_,s).normalize().rightPerpendicular(),t===l.length-1?h.setCoords(0,0):h.assignSub(u,_).normalize().rightPerpendicular(),r.assignAdd(n,h).normalize();let o=r.x*h.x+r.y*h.y;0!==o&&r.scale(1/o),a.push(e.bR.add(_,r.scale(i)))}s.push(a)}return s}function p(t,i,s,n){let h=new e.bR(t[0],t[1]);if(h.scale(n),"viewport"===i){let t=-s*(Math.PI/180),i=Math.cos(t),e=Math.sin(t);h.rotate(i,e)}return h}s.d(i,["Jo",0,n,"MG",0,1/0,"aA",0,_,"os",0,l,"pJ",0,h])},89518(t,i,s){s.d(i,{Kl:()=>o,M9:()=>_,Ss:()=>l,fw:()=>u,lj:()=>h,ws:()=>a});const e=new Float32Array(1),n=new Uint32Array(e.buffer);function h(t){return function(t,i,s){return Math.round(Math.max(Math.min(t,s),i))}(t,-32768,32767)}function r(t){return e[0]=t,n[0]}function _(t,i){return 65535&t|i<<16}function l(t,i,s,e){return 255&t|(255&i)<<8|(255&s)<<16|e<<24}function a(t,i){return 255&t|(255&i)<<8}function u(t){let i=r(t),s=i>>>31,e=i>>>23&255,n=8388607&i;return e-=127,e>15?s<<15|31744:e<-25?0:(e<-14&&(n+=8388608,n/=2**(-14-e),e=-15),e+=15,n/=8192,n=function(t){let i=Math.floor(t),s=t-i;return i<1023&&(s>.5||.5===s&&i%2==1)?i+1:i}(n),s<<15|e<<10|n)}function o(t){let i=t>>>15,s=t>>10&31,e=1023&t;return i=i?-1:1,s-=15,e/=1024,s>-15?e+=1:s=-14,i*2**s*e}},68572(t,i,s){s.d(i,{H:()=>r,q:()=>_}),s(44208);var e=s(23304),n=s(63907);function h(t){switch(t){case n.pe.BYTE:case n.pe.UNSIGNED_BYTE:return 1;case n.pe.SHORT:case n.pe.UNSIGNED_SHORT:case n.pe.HALF_FLOAT:return 2;case n.pe.FLOAT:case n.pe.INT:case n.pe.UNSIGNED_INT:return 4}}function r(t){let i=[],s=[],e=[];for(let n of t){let t=h(n.type)*n.count;switch(t%2||t%4||4){case 4:i.push(n);continue;case 2:s.push(n);continue;case 1:e.push(n);continue;default:throw Error("Found unexpected dataType byte count")}}return i.push(...s),i.push(...e),i}class _{static fromVertexSpec(t,i){let s,e,n,l=t.attributes,a=t.optionalAttributes,u=[];for(let t in l){if(l[t].otherSource)continue;let i=l[t];"position"===i.pack?s={...i,name:t,offset:0}:"id"===i.pack?e={...i,name:t,offset:4}:"bitset"===t?n={...i,name:t,offset:7}:u.push({...i,name:t})}for(let t in a)if(!0===i[t]){let i=a[t];u.push({...i,name:t})}let o=r(u),x=[],y=8,c=1;for(let t of o)x.push({...t,offset:y}),y+=h(t.type)*t.count,t.packAlternating&&(c=Math.max(t.packAlternating.count,c));let f=Uint32Array.BYTES_PER_ELEMENT,m=y%f;return new _(s,e,n,x,y+(m?f-m:0),c)}constructor(t,i,s,e,n,h){this.position=t,this.id=i,this.bitset=s,this.standardAttributes=e,this.stride=n,this.packVertexCount=h,e.push(s),this._attributes=[t,i,s,...e]}get attributeLayout(){if(!this._attributeLayout){let t=(0,e.hU)(this._attributes),i=this._attributes.map(t=>({name:t.name,count:t.count,offset:t.offset,type:t.type,packPrecisionFactor:t.packPrecisionFactor,normalized:t.normalized??!1}));this._attributeLayout={attributes:i,hash:t,stride:this.stride}}return this._attributeLayout}}},23304(t,i,s){s.d(i,{Ph:()=>h,Z0:()=>r,hU:()=>n});var e=s(799);function n(t){let i=t.map(({name:t,count:i,type:s})=>`${t}.${i}.${s}`).join(",");return(0,e.Wm)(i)}function h(t,i,s,e,n,r,_){if(t.primitiveName===i){let i=e?.readWithDefault(n,r,t[s]&&_);return"text"===t.type&&(i=i.toString()),void(t[s]=i)}if("type"in t&&null!=t.type){if(t.effects)for(let l of t.effects)h(l,i,s,e,n,r,_);switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.symbolLayers)for(let l of t.symbolLayers)h(l,i,s,e,n,r,_);break;case"CIMTextSymbol":t.symbol&&h(t.symbol,i,s,e,n,r,_);break;case"CIMHatchFill":t.lineSymbol&&h(t.lineSymbol,i,s,e,n,r,_);break;case"CIMPictureMarker":case"CIMCharacterMarker":case"CIMVectorMarker":if(t.markerPlacement&&h(t.markerPlacement,i,s,e,n,r,_),"CIMVectorMarker"===t.type&&t.markerGraphics)for(let l of t.markerGraphics)h(l,i,s,e,n,r,_),h(l.symbol,i,s,e,n,r,_)}}}function r(t){let i=Math.max(1.25*t.width,20);return null!=t.effects&&t.effects.length>0?400:i}},63907(t,i,s){const e={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},n={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},h=Object.values(n),r={FLOAT:e.FLOAT,UNSIGNED_BYTE:e.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:e.BYTE,UNSIGNED_SHORT:e.UNSIGNED_SHORT,SHORT:e.SHORT,UNSIGNED_INT:e.UNSIGNED_INT,INT:e.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};s.d(i,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,n,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,h,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,r,"pe",0,e,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9829],{39829(t,n,e){e.d(n,{A:()=>z});var i,r=e(32198),l=e(4576),s=e(51447),u=e(4718),a=e(53966),h=e(91429),o=e(5443),f=e(91075),m=e(86738),g=e(16930),c=e(12359),x=e(94078),p=e(95108),y=e(90634),v=e(47610),d=e(28735),M=e(56993),R=e(43937);function P(t){return!Array.isArray(t[0])}let z=i=class extends f.A{static fromExtent(t){let n=t.clone().normalize(),{spatialReference:e}=t,r=!1,l=!1;for(let t of n)t.hasZ&&(r=!0),t.hasM&&(l=!0);let s={rings:n.map(t=>{let n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(r&&t.hasZ){let e=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<n.length;t++)n[t].push(e)}if(l&&t.hasM){let e=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<n.length;t++)n[t].push(e)}return n}),spatialReference:e};return r&&(s.hasZ=!0),l&&(s.hasM=!0),new i(s)}constructor(t){super(function(t){if(!t)return;let{rings:n,hasM:e,hasZ:i,spatialReference:r}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:i??=!0,e??=!0;break;case 3:i??=!0!==e,e??=!i;break;default:i??=!1,e??=!1}return r??=g.A.WGS84,{...t,hasM:e,hasZ:i,rings:n,spatialReference:r}}(t)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){(0,s.Lx)(a.A.getLogger(this),"centroid",{replacement:"Please use centroidExecute() instead.",version:"4.34",warnOnce:!0});let t=(0,c.Ve)(this);return t?m.A.fromJSON(t):null}writeCurveRings(t,n){n.curveRings=(0,u.o8)(t)}get extent(){let t=(0,y.v)(this),{spatialReference:n}=this;return t?new o.A({...t,spatialReference:n}):null}writeRings(t,n){n.rings=(0,u.o8)(this.rings)}addRing(t){if(!t)return;let n=this.rings,e=n.length;if(P(t)){let i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.slice();return this.notifyChange("rings"),this}clone(){let t=new i;return t.spatialReference=this.spatialReference,t.rings=(0,u.o8)(this.rings),t.curveRings=(0,u.o8)(this.curveRings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if(null==t)return!1;let n=this.spatialReference,e=t.spatialReference;if(null!=n!=(null!=e)||null!=n&&null!=e&&!n.equals(e)||this.rings.length!==t.rings.length)return!1;for(let n=0;n<this.rings.length;n++){let e=this.rings[n],i=t.rings[n];if(!(0,l.aI)(e,i,v.v6))return!1}return!0}contains(t){if(!t)return!1;let n=(0,d.Cv)(t,this.spatialReference);return(0,x.m3)(this,n??t)}isClockwise(t){let n=P(t)?t.map(t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y]):t;return(0,p.$3)(n)}getPoint(t,n){if(!this._validateInputs(t,n))return null;let e=this.rings[t][n],i=this.hasZ,r=this.hasM;return i&&!r?new m.A(e[0],e[1],e[2],void 0,this.spatialReference):r&&!i?new m.A(e[0],e[1],void 0,e[2],this.spatialReference):i&&r?new m.A(e[0],e[1],e[2],e[3],this.spatialReference):new m.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,M.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t].splice(n,0,e),this.notifyChange("rings"),this):this}removePoint(t,n){if(!this._validateInputs(t,n))return null;let e=new m.A(this.rings[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("rings"),e}removeRing(t){if(!this._validateInputs(t,null))return null;let n=this.rings.splice(t,1)[0],e=this.spatialReference,i=n.map(t=>new m.A(t,e));return this.notifyChange("rings"),i}setPoint(t,n,e){return this._validateInputs(t,n)?((0,M.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t][n]=e,this.notifyChange("rings"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=n){let i=this.rings[t];if(e&&(n<0||n>i.length)||!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r.Cg)([(0,h.MZ)({readOnly:!0})],z.prototype,"cache",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],z.prototype,"centroid",null),(0,r.Cg)([(0,h.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],z.prototype,"curveRings",void 0),(0,r.Cg)([(0,R.K)("curveRings")],z.prototype,"writeCurveRings",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],z.prototype,"extent",null),(0,r.Cg)([(0,h.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],z.prototype,"rings",void 0),(0,r.Cg)([(0,R.K)("rings")],z.prototype,"writeRings",null),z=i=(0,r.Cg)([(0,h.$K)("esri.geometry.Polygon")],z),z.prototype.toJSON.isDefaultToJSON=!0},51118(t,n,e){function i(t){let n=[];for(t.reset();t.nextPath();){let e=[];for(;t.nextPoint();){let n=[t.x,t.y];t.hasZ&&n.push(t.z),t.hasM&&n.push(t.m),e.push(n)}n.push(e)}return t.reset(),n}function r(t){let n=[];for(;t.nextPoint();)n.push([t.x,t.y]);return t.seekPathStart(),n}e.d(n,{A:()=>r,x:()=>i})},537(t,n,e){e.d(n,{B$:()=>p,LJ:()=>y,Pj:()=>M,Rg:()=>c,Yz:()=>v,z8:()=>x});var i=e(19419),r=e(79567),l=e(52006);function s(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function u(t){return void 0!==t.points}function a(t){return void 0!==t.x&&void 0!==t.y}function h(t){return void 0!==t.paths}function o(t){return void 0!==t.rings}function f(t){return function(n,e){return null==n?e:null==e?n:t(n,e)}}const m=f(Math.min),g=f(Math.max);function c(t,n){return h(n)?v(t,n.curvePaths??n.paths,!1,!1)??t:o(n)?v(t,n.curveRings??n.rings,!1,!1)??t:u(n)?M(t,n.points,!1,!1,!1,!1):s(n)?d(t,n):(a(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function x(t){let n,e,r,l;for(t.reset(),n=r=1/0,e=l=-1/0;t.nextPath();){let i=p(t);n=Math.min(i[0],n),r=Math.min(i[1],r),e=Math.max(i[2],e),l=Math.max(i[3],l)}return(0,i.vt)([n,r,e,l])}function p(t){let n,e,r,l;for(n=r=1/0,e=l=-1/0;t.nextPoint();)n=Math.min(t.x,n),r=Math.min(t.y,r),e=Math.max(t.x,e),l=Math.max(t.y,l);return(0,i.vt)([n,r,e,l])}function y(t,n){return h(n)?v(t,n.curvePaths??n.paths,!0,!1)??t:o(n)?v(t,n.curveRings??n.rings,!0,!1)??t:u(n)?M(t,n.points,!0,!1,!0,!1):s(n)?d(t,n,0,0,!0,!1):(a(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function v(t,n,e,s){let u=e?3:2;if(!n.length||!n[0].length)return null;let a,h,o,f,[c,x]=(0,l.yP)(n[0][0]),p=c,y=x;for(let t=0;t<n.length;t++){let v=n[t];for(let t=0;t<v.length;t++){let n=(0,l.yP)(v[t]),[d,M]=n;if(c=m(c,d),x=m(x,M),p=g(p,d),y=g(y,M),e&&n.length>2){let t=n[2];a=m(a,t),h=g(h,t)}if(s&&n.length>u){let t=n[u];o=m(o,t),f=g(f,t)}let R=v[t];if((0,l.Xq)(R)||t<1)continue;let P=(0,l.yP)(v[t-1]),z=(0,i.fA)(c,x,p,y);[c,x,p,y]=(0,r.e)(z,P,R)}}return e?s?(t[0]=c,t[1]=x,t[2]=a,t[3]=o,t[4]=p,t[5]=y,t[6]=h,t[7]=f,t.length=8,t):(t[0]=c,t[1]=x,t[2]=a,t[3]=p,t[4]=y,t[5]=h,t.length=6,t):s?(t[0]=c,t[1]=x,t[2]=o,t[3]=p,t[4]=y,t[5]=f,t.length=6,t):(t[0]=c,t[1]=x,t[2]=p,t[3]=y,t.length=4,t)}function d(t,n,e,i,r,l){let s=n.xmin,u=n.xmax,a=n.ymin,h=n.ymax,o=n.zmin,f=n.zmax,m=n.mmin,g=n.mmax;return r?(o||=0,f||=0,l?(m||=0,g||=0,t[0]=s,t[1]=a,t[2]=o,t[3]=m,t[4]=u,t[5]=h,t[6]=f,t[7]=g,t):(t[0]=s,t[1]=a,t[2]=o,t[3]=u,t[4]=h,t[5]=f,t)):l?(m||=0,g||=0,t[0]=s,t[1]=a,t[2]=m,t[3]=u,t[4]=h,t[5]=g,t):(t[0]=s,t[1]=a,t[2]=u,t[3]=h,t)}function M(t,n,e,i,r,l){let s=e?3:2,u=i&&l,a=e&&r;if(!n.length||!n[0].length)return null;let h,o,f,c,[x,p]=n[0],[y,v]=n[0];for(let t=0;t<n.length;t++){let e=n[t],[i,r]=e;if(x=m(x,i),p=m(p,r),y=g(y,i),v=g(v,r),a&&e.length>2){let t=e[2];h=m(h,t),o=g(o,t)}if(u&&e.length>s){let t=e[s];f=m(h,t),c=g(o,t)}}return r?(h||=0,o||=0,l?(f||=0,c||=0,t[0]=x,t[1]=p,t[2]=h,t[3]=f,t[4]=y,t[5]=v,t[6]=o,t[7]=c,t):(t[0]=x,t[1]=p,t[2]=h,t[3]=y,t[4]=v,t[5]=o,t)):l?(f||=0,c||=0,t[0]=x,t[1]=p,t[2]=f,t[3]=y,t[4]=v,t[5]=c,t):(t[0]=x,t[1]=p,t[2]=y,t[3]=v,t)}},12359(t,n,e){e.d(n,{IK:()=>o,TP:()=>f,Ve:()=>u,Z4:()=>l,l8:()=>s,w2:()=>h});var i=e(51118),r=e(95108);function l({xmin:t,xmax:n,ymin:e,ymax:i,zmin:r,zmax:l,hasZ:s}){let u=[(t+n)/2,(e+i)/2];return s&&u.push((r+l)/2),u}function s(t){return function(t,n){if(!t?.length)return null;let e=[],i=[],l=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let e=0,r=t.length;e<r;e++){let r=a(t[e],n,l);r&&i.push(r)}if(i.sort((t,e)=>{let i=t[2]-e[2];return 0===i&&n&&(i=t[4]-e[4]),i}),i.length&&(e[0]=i[0][0],e[1]=i[0][1],n&&(e[2]=i[0][3]),(e[0]<l[0]||e[0]>l[1]||e[1]<l[2]||e[1]>l[3]||n&&(e[2]<l[4]||e[2]>l[5]))&&(e.length=0)),!e.length){let i=t[0]&&t[0].length?function(t,n){let e=n?[0,0,0]:[0,0],i=n?[0,0,0]:[0,0],l=0,s=0,u=0,a=0;for(let h=0,o=t.length;h<o-1;h++){let o=t[h],f=t[h+1];if(o&&f){e[0]=o[0],e[1]=o[1],i[0]=f[0],i[1]=f[1],n&&o.length>2&&f.length>2&&(e[2]=o[2],i[2]=f[2]);let t=(0,r.R3)(e,i);if(t){l+=t;let e=(0,r.t9)(o,f);s+=t*e[0],u+=t*e[1],n&&e.length>2&&(a+=t*e[2])}}}return l>0?n?[s/l,u/l,a/l]:[s/l,u/l]:t.length?t[0]:null}(t[0],n):null;if(!i)return null;e[0]=i[0],e[1]=i[1],n&&i.length>2&&(e[2]=i[2])}return e}(t.rings,t.hasZ??!1)}function u(t){let n=s(t);if(!n)return null;let{hasZ:e,spatialReference:i}=t,[r,l,u]=n;return isNaN(r)||isNaN(l)||e&&isNaN(u)?null:{x:r,y:l,z:e?u:void 0,spatialReference:i}}function a(t,n,e){let i=0,r=0,l=0,s=0,u=0,a=t.length?t[0][0]:0,h=t.length?t[0][1]:0,o=t.length&&n?t[0][2]:0;for(let f=0;f<t.length;f++){let m=t[f],g=t[(f+1)%t.length],[c,x,p]=m,y=c-a,v=x-h,[d,M,R]=g,P=d-a,z=M-h,Z=y*z-P*v;if(s+=Z,i+=(y+P)*Z,r+=(v+z)*Z,n&&m.length>2&&g.length>2){let t=p-o,n=R-o,e=y*n-P*t;l+=(t+n)*e,u+=e}c<e[0]&&(e[0]=c),c>e[1]&&(e[1]=c),x<e[2]&&(e[2]=x),x>e[3]&&(e[3]=x),n&&(p<e[4]&&(e[4]=p),p>e[5]&&(e[5]=p))}if(s>0&&(s*=-1),u>0&&(u*=-1),!s)return null;s*=.5,u*=.5;let f=[i/(6*s)+a,r/(6*s)+h,s];return n&&(e[4]===e[5]||0===u?(f[3]=(e[4]+e[5])/2,f[4]=0):(f[3]=l/(6*u)+o,f[4]=u)),f}function h(t,n){let e=0,i=0,r=0;t.nextPoint();let l=t.pathSize?t.x:0,s=t.pathSize?t.y:0;for(let u=0;u<t.pathSize;u++){t.seekInPath(u);let a=[t.x,t.y];t.seekInPath((u+1)%t.pathSize);let h=[t.x,t.y],[o,f]=a,m=o-l,g=f-s,[c,x]=h,p=c-l,y=x-s,v=m*y-p*g;r+=v,e+=(m+p)*v,i+=(g+y)*v,o<n[0]&&(n[0]=o),o>n[1]&&(n[1]=o),f<n[2]&&(n[2]=f),f>n[3]&&(n[3]=f)}return r>0&&(r*=-1),r?(r*=.5,[e/(6*r)+l,i/(6*r)+s,r]):null}function o(t){let{hasZ:n,totalSize:e}=t;if(0===e)return null;let l=[],s=[],u=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(t.reset();t.nextPath();){let n=a((0,i.A)(t),t.hasZ,u);n&&s.push(n)}if(s.sort((t,e)=>{let i=t[2]-e[2];return 0===i&&n&&(i=t[4]-e[4]),i}),s.length&&(l[0]=s[0][0],l[1]=s[0][1],n&&(l[2]=s[0][3]),(l[0]<u[0]||l[0]>u[1]||l[1]<u[2]||l[1]>u[3]||n&&(l[2]<u[4]||l[2]>u[5]))&&(l.length=0)),!l.length){t.reset(),t.nextPath();let e=t.pathSize?function(t){let{hasZ:n}=t,e=n?[0,0,0]:[0,0],i=n?[0,0,0]:[0,0],l=0,s=0,u=0,a=0;if(t.nextPoint()){let h=t.x,o=t.y,f=t.z;for(;t.nextPoint();){let m=t.x,g=t.y,c=t.z;e[0]=h,e[1]=o,i[0]=m,i[1]=g,n&&(e[2]=f,i[2]=c);let x=(0,r.R3)(e,i);if(x){l+=x;let t=(0,r.t9)(e,i);s+=x*t[0],u+=x*t[1],n&&t.length>2&&(a+=x*t[2])}h=m,o=g,f=c}}return l>0?n?[s/l,u/l,a/l]:[s/l,u/l]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!e)return null;l[0]=e[0],l[1]=e[1],n&&e.length>2&&(l[2]=e[2])}return l}function f(t){let n=0;for(t.reset();t.nextPath();)n+=t.getCurrentRingArea();if(n<1e-6){let n=o(t);return n?[n[0],n[1]]:null}let e=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;let i=[t.x,t.y];for(t.reset();t.nextPath();)m(e,i,t);return e[0]*=1/n,e[1]*=1/n,e[0]+=i[0],e[1]+=i[1],e}function m(t,n,e){if(!t||!e||e.pathSize<3)return null;e.nextPoint();let i=e.x,r=e.y;e.nextPoint();let l,s=e.x-i,u=e.y-r,a=0,h=0;for(;e.nextPoint();)a=e.x-i,h=e.y-r,l=.16666666666666666*(a*u-h*s),t[0]+=l*(s+a),t[1]+=l*(u+h),s=a,u=h;let o=e.getCurrentRingArea(),f=[i,r];return f[0]-=n[0],f[1]-=n[1],f[0]*=o,f[1]*=o,t[0]+=f[0],t[1]+=f[1],t}},95108(t,n,e){e.d(n,{$3:()=>o,R3:()=>r,Xf:()=>s,Yl:()=>h,gR:()=>l,m3:()=>m,t9:()=>a});var i=e(4576);function r(t,n){let e=n[0]-t[0],i=n[1]-t[1];if(t.length>2&&n.length>2){let r=t[2]-n[2];return Math.sqrt(e*e+i*i+r*r)}return Math.sqrt(e*e+i*i)}function l(t,n,e,i){let[r,l]=n,[s,u]=e,[a,h]=i,o=a-s,f=h-u,m=o*o+f*f,g=(r-s)*o+(l-u)*f,c=Math.min(1,Math.max(0,g/m));return t[0]=s+o*c,t[1]=u+f*c,t}function s(t,n,e){let i,r,l,s,a=!1,h=1/0;for(e.reset();e.nextPath();)if(e.nextPoint())for(i=e.x,r=e.y;e.nextPoint();)l=e.x,s=e.y,r>n!=s>n&&t<(l-i)*(n-r)/(s-r)+i&&(a=!a),h=Math.min(h,u(t,n,i,r,l,s)),i=l,r=s;return 0===h?0:(a?1:-1)*Math.sqrt(h)}function u(t,n,e,i,r,l){let s=e,u=i,a=r-s,h=l-u;if(0!==a||0!==h){let e=((t-s)*a+(n-u)*h)/(a*a+h*h);e>1?(s=r,u=l):e>0&&(s+=a*e,u+=h*e)}return a=t-s,h=n-u,a*a+h*h}function a(t,n){return function(t,n,e){let i=t[0]+e*(n[0]-t[0]),r=t[1]+e*(n[1]-t[1]);return t.length>2&&n.length>2?[i,r,t[2]+e*(n[2]-t[2])]:[i,r]}(t,n,.5)}function h(t){let n=t.length,e=0;for(let i=0;i<n-1;++i)e+=r(t[i],t[i+1]);return e}function o(t,n=0,e=1){let i=0,r=t.length,l=t[0];for(let s=1;s<r;s++){let r=t[s];i+=(r[n]-l[n])*(r[e]+l[e]),l=r}if(f(t)){let r=t[0];i+=(r[n]-l[n])*(r[e]+l[e])}return i>=0}function f(t){let n=t.length;return n>0&&!(0,i.aI)(t[0],t[n-1])}function m(t){if("rings"in t)for(let n of t.rings)f(n)&&n.push(n[0].slice())}e(52006)},90634(t,n,e){e.d(n,{HA:()=>o,JM:()=>f,Z3:()=>c,ge:()=>m,v:()=>g});var i=e(537);const r=[];function l(t,n,e,i){return{xmin:t,ymin:n,xmax:e,ymax:i}}function s(t,n,e,i,r,l){return{xmin:t,ymin:n,zmin:e,xmax:i,ymax:r,zmax:l}}function u(t,n,e,i,r,l){return{xmin:t,ymin:n,mmin:e,xmax:i,ymax:r,mmax:l}}function a(t,n,e,i,r,l,s,u){return{xmin:t,ymin:n,zmin:e,mmin:i,xmax:r,ymax:l,zmax:s,mmax:u}}function h(t,n=!1,e=!1){return n?e?a(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):s(t[0],t[1],t[2],t[3],t[4],t[5]):e?u(t[0],t[1],t[2],t[3],t[4],t[5]):l(t[0],t[1],t[2],t[3])}function o(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){let{x:n,y:e,z:i,m:r}=t,h=null!=r;return null!=i?h?a(n,e,i,r,n,e,i,r):s(n,e,i,n,e,i):h?u(n,e,r,n,e,r):l(n,e,n,e)}(t):function(t){return void 0!==t.rings}(t)?g(t):function(t){return void 0!==t.paths}(t)?c(t):function(t){return void 0!==t.points}(t)?m(t):null:null}function f(t,{xmin:n,ymin:e,zmin:i,mmin:r,xmax:l,ymax:s,zmax:u,mmax:a}){t.xmin=Math.min(t.xmin,n),t.xmax=Math.max(t.xmax,l),t.ymin=Math.min(t.ymin,e),t.ymax=Math.max(t.ymax,s),null!=t.zmin&&(t.zmin=Math.min(t.zmin,i),t.zmax=Math.max(t.zmax,u)),null!=t.mmin&&(t.mmin=Math.min(t.mmin,r),t.mmax=Math.max(t.mmax,a))}function m(t){let{hasZ:n,hasM:e,points:l}=t,s=(0,i.Pj)(r,l,n??!1,e??!1,n??!1,e??!1);return s?h(s,n,e):null}function g(t){let{hasZ:n,hasM:e,rings:l,curveRings:s}=t,u=(0,i.Yz)(r,s??l,n??!1,e??!1);return u?h(u,n,e):null}function c(t){let{hasZ:n,hasM:e,paths:l,curvePaths:s}=t,u=(0,i.Yz)(r,s??l,n??!1,e??!1);return u?h(u,n,e):null}},47610(t,n,e){function i([t,n,e,i],[r,l,s,u]){return t===r&&n===l&&(null==e&&null==s||e===s)&&(null==i&&null==u||i===u)}e.d(n,{v6:()=>i}),e(5443),e(83960)},83960(t,n,e){e.d(n,{X_:()=>l,oW:()=>u,zx:()=>s});var i=e(34727),r=e(86211);function l(t,n){let e=n||t.extent,i=t.width,l=(0,r.GA)(e?.spatialReference);return e&&i?e.width/i*l*39.37*96:0}function s(t,n,e){return function(t,n){return 0===n||(0,i.Sp)(t,n)||t<n}(t,n)&&function(t,n){return 0===n||(0,i.Sp)(t,n)||t>n}(t,e)}function u(t,n){return(0,i.Sp)(t,n)?0:(t||1/0)>(n||1/0)?1:-1}},56993(t,n,e){function i(t,n,e=!1){let{hasM:i,hasZ:r}=t;Array.isArray(n)?4!==n.length||i||r?3===n.length&&e&&!i?(r=!0,i=!1):3===n.length&&i&&r&&(i=!1,r=!1):(i=!0,r=!0):(r=!r&&n.hasZ&&(!i||n.hasM),i=!i&&n.hasM&&(!r||n.hasZ)),t.hasZ=r,t.hasM=i}e.d(n,{h:()=>i})}}]);
|