@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.
Files changed (317) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/03afeefb9d16b6f1d844.js +1 -0
  3. package/assets/esri/core/workers/chunks/09b9a886363bc1197785.js +1 -0
  4. package/assets/esri/core/workers/chunks/0ad0484ffcbe4ad21bd3.js +1 -0
  5. package/assets/esri/core/workers/chunks/{72019baeba520edb6bb0.js → 112befb3b5b406f29298.js} +1 -1
  6. package/assets/esri/core/workers/chunks/12a7997a40c77f5c9160.js +1 -0
  7. package/assets/esri/core/workers/chunks/18787aa685524b958561.js +1 -0
  8. package/assets/esri/core/workers/chunks/{776ae25a34352d3468bc.js → 19743dedaa40446259ec.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{6dd0b79fa3a629ab4f27.js → 1bca39e0e651426bdbb5.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{8b1c17cc52d989924313.js → 21f45a47708e6e43147f.js} +1 -1
  11. package/assets/esri/core/workers/chunks/2c626f525f3483c03477.js +1 -0
  12. package/assets/esri/core/workers/chunks/2d9a1f23ec6ce90723ac.js +1 -0
  13. package/assets/esri/core/workers/chunks/{7a05b18f655c1167ce0a.js → 2ef5237e4c876d6a4ee0.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{79c83f4e066682543ca1.js → 320e5942a098dd104366.js} +1 -1
  15. package/assets/esri/core/workers/chunks/407f1e8176f3b0af73b4.js +1 -0
  16. package/assets/esri/core/workers/chunks/{1ba0dfbe0958cdbd7c9f.js → 42fd2a7b22b03dacc6a7.js} +1 -1
  17. package/assets/esri/core/workers/chunks/444e5f214abce3d607cd.js +1 -0
  18. package/assets/esri/core/workers/chunks/45367aa8e5c5d574de94.js +1 -0
  19. package/assets/esri/core/workers/chunks/47d074136a7f8e551a9a.js +1 -0
  20. package/assets/esri/core/workers/chunks/4a6b92ecbb1f1c55cc43.js +1 -0
  21. package/assets/esri/core/workers/chunks/4fc337240e7cddd0e988.js +1 -0
  22. package/assets/esri/core/workers/chunks/{24cc7b6b5e307a89cdd5.js → 50036a323c2e7f155311.js} +1 -1
  23. package/assets/esri/core/workers/chunks/5116b569a8dbda4910c8.js +1 -0
  24. package/assets/esri/core/workers/chunks/54b18559280a7d2a8d93.js +1 -0
  25. package/assets/esri/core/workers/chunks/{b2737120c5999b2f3909.js → 55dcbf296d8d0092e473.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{5c855af73ee3c3e764fb.js → 5732fdf6d8b87739aeea.js} +1 -1
  27. package/assets/esri/core/workers/chunks/5924ec3167a2941ebb1f.js +1 -0
  28. package/assets/esri/core/workers/chunks/5fa1ec357c3ad1f91bc7.js +1 -0
  29. package/assets/esri/core/workers/chunks/606ea251075fe81a1206.js +1 -0
  30. package/assets/esri/core/workers/chunks/{ceb680688fe7e570a774.js → 608be1172a908e92b9f1.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{6f358116f79021ff9687.js → 612104dff305ff062dfa.js} +2 -2
  32. package/assets/esri/core/workers/chunks/6299be5e7e26bf3c6859.js +1 -0
  33. package/assets/esri/core/workers/chunks/68be3fb88ca61f82fb90.js +1 -0
  34. package/assets/esri/core/workers/chunks/6b04285726b803b82564.js +1 -0
  35. package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +1 -0
  36. package/assets/esri/core/workers/chunks/6c9acd9e4e201dc380e9.js +1 -0
  37. package/assets/esri/core/workers/chunks/6eb5cc8ddf772c0062e6.js +1 -0
  38. package/assets/esri/core/workers/chunks/709e019885822b1f6f3e.js +1 -0
  39. package/assets/esri/core/workers/chunks/731018c0deffc41ffc97.js +1 -0
  40. package/assets/esri/core/workers/chunks/7320a4913b6cad7cc5d7.js +1 -0
  41. package/assets/esri/core/workers/chunks/7449568eb2305bf2d650.js +1 -0
  42. package/assets/esri/core/workers/chunks/7572c2bc5062e66f6330.js +1 -0
  43. package/assets/esri/core/workers/chunks/7d212c415f2709037408.js +1 -0
  44. package/assets/esri/core/workers/chunks/7f0f9dddc44b1f1600f0.js +1 -0
  45. package/assets/esri/core/workers/chunks/8293600f94553afc8c38.js +1 -0
  46. package/assets/esri/core/workers/chunks/{c18189710d6198516175.js → 830ab9b8d000169da675.js} +1 -1
  47. package/assets/esri/core/workers/chunks/8414ffd937c1099e0bbc.js +1 -0
  48. package/assets/esri/core/workers/chunks/{700b1d5bc67b7e1b3ff3.js → 8aa80b892fde552577e8.js} +1 -1
  49. package/assets/esri/core/workers/chunks/900181f68449d8f82eeb.js +1 -0
  50. package/assets/esri/core/workers/chunks/925271bb763607a326ae.js +1 -0
  51. package/assets/esri/core/workers/chunks/937824bc7948f7bc7845.js +1 -0
  52. package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +1 -0
  53. package/assets/esri/core/workers/chunks/97d6ef9e34a43ad2e556.js +1 -0
  54. package/assets/esri/core/workers/chunks/{c76c42c74eedd43263d3.js → 9dd1fc56eb1ea6eb705e.js} +1 -1
  55. package/assets/esri/core/workers/chunks/a07cb6a2f5b66d4e9f15.js +1 -0
  56. package/assets/esri/core/workers/chunks/a40b6d8b5c73e06e14d4.js +1 -0
  57. package/assets/esri/core/workers/chunks/a7f3576208f295b670d6.js +1 -0
  58. package/assets/esri/core/workers/chunks/a80e49acc827dbf3b524.js +1 -0
  59. package/assets/esri/core/workers/chunks/aeaaff7a4b1a99540f52.js +1 -0
  60. package/assets/esri/core/workers/chunks/af349c7bc8ef41a0e1bd.js +1 -0
  61. package/assets/esri/core/workers/chunks/afc3b2af20e9d1dfd260.js +1 -0
  62. package/assets/esri/core/workers/chunks/b19b6102ed2d6f67b43b.js +1 -0
  63. package/assets/esri/core/workers/chunks/b1b4066e8d1c0c9656e5.js +1 -0
  64. package/assets/esri/core/workers/chunks/b4334713bacdfe40ce3d.js +1 -0
  65. package/assets/esri/core/workers/chunks/{6883a5c6883eccaddf64.js → b6ba66a05030d3815dfd.js} +1 -1
  66. package/assets/esri/core/workers/chunks/bbec9d2e3b75a5c59681.js +1 -0
  67. package/assets/esri/core/workers/chunks/{9ab25ee06041f907b9a2.js → c2c1f51a4668055c2838.js} +1 -1
  68. package/assets/esri/core/workers/chunks/c337fc0e6dc69c233e6d.js +1 -0
  69. package/assets/esri/core/workers/chunks/c598b22f78ccc57f9d6d.js +1 -0
  70. package/assets/esri/core/workers/chunks/c5d85be6e16bc895e7fb.js +1 -0
  71. package/assets/esri/core/workers/chunks/c62738f84c914671b143.js +1 -0
  72. package/assets/esri/core/workers/chunks/c8d178a0c82fffd7fed5.js +1 -0
  73. package/assets/esri/core/workers/chunks/c8d6bb5cca49926a0214.js +1 -0
  74. package/assets/esri/core/workers/chunks/cde4b044e013b9e41591.js +1 -0
  75. package/assets/esri/core/workers/chunks/{a7985d20fa6e8d4878e7.js → d0f5bee9db1ad51ae687.js} +1 -1
  76. package/assets/esri/core/workers/chunks/d2347d6aa1c57fd57029.js +1 -0
  77. package/assets/esri/core/workers/chunks/dca35dbe427605ef6fcc.js +1 -0
  78. package/assets/esri/core/workers/chunks/e0351753f6b4d1adf11e.js +1 -0
  79. package/assets/esri/core/workers/chunks/{534186fc921a0ccf58dc.js → e1f5d00878f27e1d413e.js} +1 -1
  80. package/assets/esri/core/workers/chunks/f1df76f098a3cc924832.js +1 -0
  81. package/assets/esri/core/workers/chunks/f4f9d08b2df856e3b694.js +1 -0
  82. package/assets/esri/core/workers/chunks/{711cfb84659cb4437679.js → f528ac5c648ca6a98582.js} +1 -1
  83. package/assets/esri/core/workers/chunks/f8a83d447b7aef051876.js +1 -0
  84. package/assets/esri/core/workers/chunks/fc44227c1756f65b95df.js +1 -0
  85. package/assets/esri/core/workers/chunks/fdbf6208df5c58746d9d.js +1 -0
  86. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
  87. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
  88. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
  89. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
  90. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
  91. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
  92. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
  93. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
  94. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
  95. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
  96. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
  97. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
  98. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
  99. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
  100. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
  101. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
  102. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
  103. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
  104. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
  105. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
  106. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
  107. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
  108. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
  109. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
  110. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
  111. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
  112. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
  113. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
  114. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
  115. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
  116. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
  117. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
  118. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
  119. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
  120. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
  121. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
  122. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
  123. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
  124. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
  125. package/config.js +1 -1
  126. package/core/Loadable.js +1 -1
  127. package/geometry/HeightModelInfo.js +1 -1
  128. package/geometry/support/TileClipper.js +1 -1
  129. package/geometry/support/meshUtils.d.ts +1 -1
  130. package/geometry/support/scaleUtils.js +1 -1
  131. package/kernel.js +1 -1
  132. package/layers/BaseDynamicLayer.d.ts +1 -0
  133. package/layers/BaseElevationLayer.d.ts +2 -0
  134. package/layers/BaseTileLayer.d.ts +12 -9
  135. package/layers/CSVLayer.d.ts +1 -16
  136. package/layers/CatalogLayer.d.ts +1 -1
  137. package/layers/FeatureLayer.d.ts +3 -16
  138. package/layers/GeoJSONLayer.d.ts +1 -53
  139. package/layers/GeoRSSLayer.d.ts +0 -44
  140. package/layers/OrientedImageryLayer.js +1 -1
  141. package/layers/ParquetLayer.d.ts +84 -5
  142. package/layers/ParquetLayer.js +1 -1
  143. package/layers/SceneLayer.d.ts +4 -5
  144. package/layers/SceneLayer.js +1 -1
  145. package/layers/SketchLayer.d.ts +0 -1
  146. package/layers/SubtypeGroupLayer.d.ts +1 -1
  147. package/layers/VectorTileLayer.d.ts +2 -12
  148. package/layers/WFSLayer.d.ts +1 -1
  149. package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +1 -1
  150. package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
  151. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +1 -1
  152. package/layers/mixins/ArcGISImageService.d.ts +1 -1
  153. package/layers/mixins/PortalLayer.js +1 -1
  154. package/layers/mixins/RefreshableLayer.d.ts +1 -3
  155. package/layers/mixins/ScaleRangeLayer.js +1 -1
  156. package/layers/mixins/SublayersOwner.js +1 -1
  157. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  158. package/layers/orientedImagery/core/utils.js +1 -1
  159. package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
  160. package/layers/support/FeatureFilter.d.ts +1 -1
  161. package/layers/support/ParquetPortalItemData.js +1 -1
  162. package/layers/support/PortalItemData.js +1 -1
  163. package/layers/support/Sublayer.js +1 -1
  164. package/layers/support/SubtypeSublayer.d.ts +1 -1
  165. package/layers/support/SubtypeSublayer.js +1 -1
  166. package/layers/support/layersLoader.js +1 -1
  167. package/package.json +2 -2
  168. package/popup/FeaturesModel.d.ts +27 -6
  169. package/popup/FeaturesModel.js +1 -1
  170. package/portal/support/layersLoader.js +1 -1
  171. package/portal/support/portalLayers.js +1 -1
  172. package/renderers/VectorFieldRenderer.d.ts +4 -4
  173. package/rest/print.js +1 -1
  174. package/rest/support/printTaskUtils.js +1 -1
  175. package/smartMapping/renderers/color.js +1 -1
  176. package/smartMapping/renderers/dotDensity.js +1 -1
  177. package/smartMapping/renderers/heatmap.js +1 -1
  178. package/smartMapping/renderers/pieChart.js +1 -1
  179. package/smartMapping/renderers/type.js +1 -1
  180. package/smartMapping/statistics/heatmapStatistics.js +1 -1
  181. package/smartMapping/statistics/histogram.js +1 -1
  182. package/smartMapping/statistics/summaryStatistics.js +1 -1
  183. package/smartMapping/statistics/summaryStatisticsForAttributes.js +1 -1
  184. package/smartMapping/statistics/uniqueValues.js +1 -1
  185. package/smartMapping/support/adapters/support/layerUtils.js +1 -1
  186. package/smartMapping/types.d.ts +3 -1
  187. package/symbols/cim/CIMSymbolHelper.js +1 -1
  188. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  189. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  190. package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
  191. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  192. package/views/2d/layers/LayerView2D.js +1 -1
  193. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  194. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  195. package/views/3d/analysis/Viewshed/types.d.ts +3 -1
  196. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  197. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  198. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  199. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  200. package/views/3d/layers/FlowSubView3D.js +1 -1
  201. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  202. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  203. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  204. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  205. package/views/3d/layers/MediaLayerView3D.js +1 -1
  206. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  207. package/views/3d/layers/RouteLayerView3D.js +1 -1
  208. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  209. package/views/3d/layers/SceneLayerView3D.js +1 -1
  210. package/views/3d/layers/TiledLayerView3D.js +1 -1
  211. package/views/3d/layers/VoxelLayerView3D.js +1 -1
  212. package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
  213. package/views/3d/layers/graphics/Labeler.js +1 -1
  214. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  215. package/views/3d/support/popupHitTest.js +1 -1
  216. package/views/3d/terrain/TerrainData.js +1 -1
  217. package/views/3d/terrain/terrainUtils.js +1 -1
  218. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  219. package/views/DOMContainer.d.ts +27 -9
  220. package/views/DOMContainer.js +1 -1
  221. package/views/PopupView.d.ts +6 -0
  222. package/views/VideoView.d.ts +27 -9
  223. package/views/View.d.ts +16 -7
  224. package/views/View.js +1 -1
  225. package/views/View2D.d.ts +1 -1
  226. package/views/draw/support/InteractiveHandle.js +1 -1
  227. package/views/interactive/snapping/FeatureSnappingSourceInfo.js +1 -1
  228. package/views/interactive/snapping/SnappingManagerPool.js +1 -1
  229. package/views/interactive/snapping/SnappingOptions.d.ts +1 -1
  230. package/views/interactive/tooltip/components/ElevationModeSelect.js +1 -1
  231. package/views/layers/FeatureLikeLayerView.d.ts +2 -3
  232. package/views/layers/LayerView.js +1 -1
  233. package/views/layers/LineOfSightLayerView.d.ts +3 -4
  234. package/views/layers/ParquetLayerView.d.ts +15 -0
  235. package/views/layers/PointCloudLayerView.d.ts +1 -1
  236. package/views/layers/SceneLayerView.d.ts +1 -1
  237. package/views/layers/ViewshedLayerView.d.ts +5 -6
  238. package/views/support/layerViewUtils.js +1 -1
  239. package/webdoc/support/saveUtils.js +1 -1
  240. package/webdoc/support/unsupportedErrors.js +1 -1
  241. package/widgets/Editor.d.ts +10 -0
  242. package/widgets/Legend.d.ts +1 -0
  243. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  244. package/widgets/OrientedImageryViewer/adapters/draw/HeightMeasurementAdapter.js +1 -1
  245. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  246. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  247. package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
  248. package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
  249. package/widgets/support/SnappingControls.d.ts +1 -1
  250. package/assets/esri/core/workers/chunks/00a600c71ceebe7bfeee.js +0 -1
  251. package/assets/esri/core/workers/chunks/0193df3f9fb23633da87.js +0 -1
  252. package/assets/esri/core/workers/chunks/050c4b212f2b5691db34.js +0 -1
  253. package/assets/esri/core/workers/chunks/05963f57cbe5a5249496.js +0 -1
  254. package/assets/esri/core/workers/chunks/06e7400f5ebe0719b81c.js +0 -1
  255. package/assets/esri/core/workers/chunks/07aa6d36f1006b6ab7ff.js +0 -1
  256. package/assets/esri/core/workers/chunks/0bb11751efa2023ec937.js +0 -1
  257. package/assets/esri/core/workers/chunks/14a3808427deaaa85bf2.js +0 -1
  258. package/assets/esri/core/workers/chunks/1a6027f08893aba9e677.js +0 -1
  259. package/assets/esri/core/workers/chunks/2062d46f638eabfc9499.js +0 -1
  260. package/assets/esri/core/workers/chunks/2164fcaced72b0fda31f.js +0 -1
  261. package/assets/esri/core/workers/chunks/222af8522773c7dc80b1.js +0 -1
  262. package/assets/esri/core/workers/chunks/25b0885d3bc190b28c04.js +0 -1
  263. package/assets/esri/core/workers/chunks/303fde8f3459dde16555.js +0 -1
  264. package/assets/esri/core/workers/chunks/305a718719ef15fda90c.js +0 -1
  265. package/assets/esri/core/workers/chunks/347bf269c2b1583d2dca.js +0 -1
  266. package/assets/esri/core/workers/chunks/350540770781b281c39a.js +0 -1
  267. package/assets/esri/core/workers/chunks/392bcef780df52fb4cca.js +0 -1
  268. package/assets/esri/core/workers/chunks/3b017b718ea2d4ed498f.js +0 -1
  269. package/assets/esri/core/workers/chunks/3e81dfc9d621ece038fe.js +0 -1
  270. package/assets/esri/core/workers/chunks/4479a166b5ac8db1e12e.js +0 -1
  271. package/assets/esri/core/workers/chunks/46b2d4addfc73f9183a4.js +0 -1
  272. package/assets/esri/core/workers/chunks/4d82db661365daa513a6.js +0 -1
  273. package/assets/esri/core/workers/chunks/4ed8655770a3e018e366.js +0 -1
  274. package/assets/esri/core/workers/chunks/4f48d45baa8ada16f579.js +0 -1
  275. package/assets/esri/core/workers/chunks/50ca55ad2f5421acc492.js +0 -1
  276. package/assets/esri/core/workers/chunks/5450f339f97b2b042ee2.js +0 -1
  277. package/assets/esri/core/workers/chunks/55cc8581978c71b17998.js +0 -1
  278. package/assets/esri/core/workers/chunks/5ea8809b6519c05ad9f6.js +0 -1
  279. package/assets/esri/core/workers/chunks/62795a1573cbaa4b8e7a.js +0 -1
  280. package/assets/esri/core/workers/chunks/633a9051580c5302d2f7.js +0 -1
  281. package/assets/esri/core/workers/chunks/641d196a554bd07f729e.js +0 -1
  282. package/assets/esri/core/workers/chunks/655c3afda1eef01611dd.js +0 -1
  283. package/assets/esri/core/workers/chunks/6569797d3c22442e5e97.js +0 -1
  284. package/assets/esri/core/workers/chunks/70793967db45fb142962.js +0 -1
  285. package/assets/esri/core/workers/chunks/794e5a67a88cb10c1a19.js +0 -1
  286. package/assets/esri/core/workers/chunks/798a63653f82c0e842c5.js +0 -1
  287. package/assets/esri/core/workers/chunks/820f41d66b2056a3ebc8.js +0 -1
  288. package/assets/esri/core/workers/chunks/841f67baf6a1634ada48.js +0 -1
  289. package/assets/esri/core/workers/chunks/84fcbf7a1d04f01685d1.js +0 -1
  290. package/assets/esri/core/workers/chunks/8e511079918e2fd9261f.js +0 -1
  291. package/assets/esri/core/workers/chunks/8fcfd515ee1b18c902e5.js +0 -1
  292. package/assets/esri/core/workers/chunks/9001e9a1e81bce175ddd.js +0 -1
  293. package/assets/esri/core/workers/chunks/94c5f3bc07fe516dafbe.js +0 -1
  294. package/assets/esri/core/workers/chunks/956a40f40bde416efe93.js +0 -1
  295. package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +0 -1
  296. package/assets/esri/core/workers/chunks/97dbbedea9fe03bd1306.js +0 -1
  297. package/assets/esri/core/workers/chunks/9c0fd8baa00ee9733ba4.js +0 -1
  298. package/assets/esri/core/workers/chunks/9c1e69ac82e2bf746191.js +0 -1
  299. package/assets/esri/core/workers/chunks/a010d2e4e34eb7bc1fec.js +0 -1
  300. package/assets/esri/core/workers/chunks/a05790444115e4cf1bcc.js +0 -1
  301. package/assets/esri/core/workers/chunks/a52bf03bffb6ffac3b54.js +0 -1
  302. package/assets/esri/core/workers/chunks/a7edf7541569fef77cb3.js +0 -1
  303. package/assets/esri/core/workers/chunks/b2c29bc48c7b3b0c9357.js +0 -1
  304. package/assets/esri/core/workers/chunks/b7d77dd2abb255fd2e5a.js +0 -1
  305. package/assets/esri/core/workers/chunks/b8054adc45bca069b948.js +0 -1
  306. package/assets/esri/core/workers/chunks/ba46869e700ba1d2787f.js +0 -1
  307. package/assets/esri/core/workers/chunks/ba48045a81acc4cda927.js +0 -1
  308. package/assets/esri/core/workers/chunks/ca7fb75e2c62e7d37122.js +0 -1
  309. package/assets/esri/core/workers/chunks/d01381b548c204835509.js +0 -1
  310. package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +0 -1
  311. package/assets/esri/core/workers/chunks/d270cc9807161033686e.js +0 -1
  312. package/assets/esri/core/workers/chunks/d4f038e04c42aed588c1.js +0 -1
  313. package/assets/esri/core/workers/chunks/e32b96c08cb272a59851.js +0 -1
  314. package/assets/esri/core/workers/chunks/e7c60bd85abbd36cdc64.js +0 -1
  315. package/assets/esri/core/workers/chunks/f05de08e194a3f9b96f2.js +0 -1
  316. package/assets/esri/core/workers/chunks/f0a68d2900d24f56afa0.js +0 -1
  317. package/assets/esri/core/workers/chunks/f511a304e9dea9eb3e01.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,895,1150,1359,1948,3354,4144,5223,6742,7085,8125,9096],{61691(e,t,r){r.d(t,{G:()=>i});class i{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>n});var i=r(61691);class n extends i.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},73354(e,t,r){r.d(t,{a:()=>c,b:()=>a,c:()=>n,d:()=>o,e:()=>d,f:()=>h,l:()=>u,n:()=>p,t:()=>s}),r(44208);var i=r(72727);function n(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,s=n){let o=(0,i.k)(e.length,n,3),a=(0,i.k)(t.length,s,3),l=Math.min(o,a),u=r[0],h=r[1],c=r[2],d=r[4],p=r[5],f=r[6],m=r[8],g=r[9],y=r[10],v=r[12],_=r[13],w=r[14],x=0,C=0;for(let r=0;r<l;r++){let r=t[x],i=t[x+1],o=t[x+2];e[C]=u*r+d*i+m*o+v,e[C+1]=h*r+p*i+g*o+_,e[C+2]=c*r+f*i+y*o+w,x+=s,C+=n}return e}function o(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,s=n){let o=(0,i.k)(e.length,n,3),a=(0,i.k)(t.length,s,3),l=Math.min(o,a),u=r[0],h=r[1],c=r[2],d=r[3],p=r[4],f=r[5],m=r[6],g=r[7],y=r[8],v=0,_=0;for(let r=0;r<l;r++){let r=t[v],i=t[v+1],o=t[v+2];e[_]=u*r+d*i+m*o,e[_+1]=h*r+p*i+g*o,e[_+2]=c*r+f*i+y*o,v+=s,_+=n}}function l(e,t,r,i=3,n=i){let s=Math.min(e.length/i,t.length/n),o=0,a=0;for(let l=0;l<s;l++)e[a]=r*t[o],e[a+1]=r*t[o+1],e[a+2]=r*t[o+2],o+=n,a+=i;return e}function u(e,t,r,i){h(e.typedBuffer,t.typedBuffer,r,i,e.typedBufferStride,t.typedBufferStride)}function h(e,t,r,i,n=3,s=n){let o=Math.min(e.length/n,t.length/s),a=0,l=0,u=1/2.2;for(let h=0;h<o;h++)e[l]=i*(r*t[a])**u,e[l+1]=i*(r*t[a+1])**u,e[l+2]=i*(r*t[a+2])**u,a+=s,l+=n}function c(e,t,r,n=3,s=n){let o=(0,i.k)(e.length,n,3),a=(0,i.k)(t.length,s,3),l=Math.min(o,a),u=0,h=0;for(let i=0;i<l;i++)e[h]=t[u]+r[0],e[h+1]=t[u+1]+r[1],e[h+2]=t[u+2]+r[2],u+=s,h+=n;return e}function d(e,t){p(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function p(e,t,r=3,i=r){let n=Math.min(e.length/r,t.length/i),s=0,o=0;for(let a=0;a<n;a++){let n=t[s],a=t[s+1],l=t[s+2],u=n*n+a*a+l*l;if(u>0){let t=1/Math.sqrt(u);e[o]=t*n,e[o+1]=t*a,e[o+2]=t*l}s+=i,o+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:h,linearToSRGBView:u,normalize:p,normalizeView:d,scale:l,scaleView:function(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){let i=Math.min(e.count,t.count),n=e.typedBuffer,s=e.typedBufferStride,o=t.typedBuffer,a=t.typedBufferStride,l=0,u=0;for(let e=0;e<i;e++)n[u]=o[l]>>r,n[u+1]=o[l+1]>>r,n[u+2]=o[l+2]>>r,l+=a,u+=s},transformMat3:a,transformMat3View:o,transformMat4:s,transformMat4View:n,translate:c},Symbol.toStringTag,{value:"Module"}))},69540(e,t,r){var i=r(32198),n=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),a=r(88620),l=r(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;let r=e,n=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){let t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,i=t.store,n={},l=new Map;for(let t in r){let o=r[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;let h=this[t],c=null;if("function"==typeof u)c=u(h,e);else if("reference"===u)c=h;else if(c=(0,s.TU)(h,e),null!=h&&null==c)continue;0===a?l.set(t,c):n[t]=c}let u=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){let e=(0,a.oY)(u)?.store;if(e)for(let[t,r]of l)e.set(t,r,0)}return u}};return n=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],n),n},c=h(n.A);r.d(t,["OU",0,h,"Pw",0,c])},7762(e,t,r){var i,n=r(32198),s=r(98291),o=r(4576),a=r(65529),l=r(36563),u=r(4718),h=r(53966),c=r(93687),d=r(76030),p=r(78888),f=r(62788),m=r(10107),g=r(7695),y=r(64108),v=r(95488),_=r(12195);class w{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class x{constructor(e,t,r,i,n){this.target=e,this.added=t,this.removed=r,this.start=i,this.deleteCount=n}}const C=new c.A(()=>new w,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function b(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function M(e){return e?e instanceof I?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function T(e){if(e?.length)return e[0]}function A(e,t,r,i){let n=Math.min(e.length-r,t.length-i),s=0;for(;s<n&&e[r+s]===t[i+s];)s++;return s}function R(e,t,r,i){t&&t.forEach((t,n,s)=>{e.push(t),R(e,r.call(i,t,n,s),r,i)})}const S=new Set,Z=new Set,P=new Set,E=new Map;let O=0,I=i=class extends a.nJ{static ofType(e){if(!e)return i;if(E.has(e))return E.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let r in e.typeMap){let i=e.typeMap[r].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends i{};return(0,n.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,p.dp)(e):(0,p.aq)(e)})],r.prototype,"itemType",void 0),r=(0,n.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],r),E.set(e,r),r}static isCollection(e){return null!=e&&e instanceof i}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:O++})}normalizeCtorArgs(e){return e?(0,o.yc)(e)||e instanceof i?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?h.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,f.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,M(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){let e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{r()?.call(null,e),i.remove()});return i}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t);return this._splice(r,0,M(e)),this._emitAfterChanges(1),this}at(e){if((0,f.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.map(u.o8)})}concat(...e){(0,f.gc)(this._observable);let t=e.map(M);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let r=this._splice(0,this.length),i=r.length;for(let n=0;n<i;n++)e.call(t,r[n],n,r);this._emitAfterChanges(2)}destroyAll(){this.drain(b)}destroyMany(e){let t=this.removeMany(e);return t.forEach(b),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);let r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,f.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,f.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,f.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,f.gc)(this._observable);let r=[];return R(r,this,e,t),new i(r)}forEach(e,t){return(0,f.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.gc)(this._observable),this._items[e]}getNextIndex(e){(0,f.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.gc)(this._observable);let r=this._items.map(e,t);return new i({items:r})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);let r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(4))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=T(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,f.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,f.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,f.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=T(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof i?e.toArray():e,r=this._items,n=[],s=t.length;for(let e=0;e<s;e++){let i=t[e],s=r.indexOf(i);if(s>-1){let i=1+A(t,r,e+1,s+1),o=this._splice(s,i);o&&o.length>0&&n.push.apply(n,o),e+=i-1}}return this._emitAfterChanges(2),n}reverse(){if((0,f.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=T(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let i=(t?2:0)|!!r.length;if(this._emitBeforeChanges(i))return[];let n=this._splice(e,t,r)||[];return this._emitAfterChanges(i),n}toArray(){return(0,f.gc)(this._observable),this._items.slice()}toJSON(e){return(0,f.gc)(this._observable),this.toArray().map(t=>(0,_.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,f.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,f.gc)(this._observable),this._items.toString()}unshift(...e){return(0,f.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let i,n,s=this._items,o=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(n=s.splice(e,t),this.hasEventListener("before-remove")){let t=C.acquire();t.target=this,t.cancellable=!0;for(let r=0,o=n.length;r<o;r++)i=n[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(n.splice(r,1),s.splice(e,0,i),e+=1,--r,--o);C.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=C.acquire();e.target=this,e.cancellable=!1;let t=n.length;for(let r=0;r<t;r++)e.reset(n[r]),this.emit("after-remove",e);C.release(e)}}if(r?.length){if(o){let e=[];for(let t of r){let r=o.ensureType(t);(null!=r||null==t)&&e.push(r)}r=e}let t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),n=e===this.length;if(t||i){let o=C.acquire();o.target=this,o.cancellable=!0;let a=C.acquire();a.target=this,a.cancellable=!1;for(let l of r)t?(o.reset(l),this.emit("before-add",o),o.defaultPrevented||(n?s.push(l):s.splice(e++,0,l),this._length=s.length,i&&(a.reset(l),this.emit("after-add",a)))):(n?s.push(l):s.splice(e++,0,l),this._length=s.length,a.reset(l),this.emit("after-add",a));C.release(a),C.release(o)}else{if(n)for(let e of r)s.push(e);else s.splice(e,0,...r);this._length=s.length}}if((r?.length||n?.length)&&this._notifyChangeEvent(r,n),this.hasEventListener("after-splice")){let i=new x(this,r,n,e,t);this.emit("after-splice",i)}return n}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=C.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,C.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=C.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),C.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;S.clear(),Z.clear(),P.clear();for(let{added:t,removed:r}of e){if(t)if(0===P.size&&0===Z.size)for(let e of t)S.add(e);else for(let e of t)Z.has(e)?(P.add(e),Z.delete(e)):P.has(e)||S.add(e);if(r)if(0===P.size&&0===S.size)for(let e of r)Z.add(e);else for(let e of r)S.has(e)?S.delete(e):(P.delete(e),Z.add(e))}let r=s.A.acquire();S.forEach(e=>{r.push(e)});let i=s.A.acquire();Z.forEach(e=>{i.push(e)});let n=this._items,o=t.items,a=s.A.acquire();if(P.forEach(e=>{o.indexOf(e)!==n.indexOf(e)&&a.push(e)}),t.listeners&&(r.length||i.length||a.length)){let e={target:this,added:r,removed:i,moved:a},n=t.listeners.length;for(let r=0;r<n;r++){let i=t.listeners[r];i.removed||i.callback.call(this,e)}}s.A.release(r),s.A.release(i),s.A.release(a)}S.clear(),Z.clear(),P.clear()}};(0,n.Cg)([(0,m.MZ)()],I.prototype,"_updating",void 0),(0,n.Cg)([(0,m.MZ)()],I.prototype,"_length",void 0),(0,n.Cg)([(0,m.MZ)()],I.prototype,"length",null),(0,n.Cg)([(0,m.MZ)()],I.prototype,"items",null),(0,n.Cg)([(0,m.MZ)({readOnly:!0})],I.prototype,"updating",null),I=i=(0,n.Cg)([(0,y.$)("esri.core.Collection")],I);const N=I;r.d(t,["A",0,N])},4902(e,t,r){var i=r(32198),n=r(64108);let s=0;const o=e=>{let t=e,r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return r=(0,i.Cg)([(0,n.$)("esri.core.Identifiable")],r),r};o(class{}),r.d(t,["s",0,o])},9775(e,t,r){r.d(t,{A:()=>s});var i=r(62788),n=r(95488);class s{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new n.I,this._items=new Set}get length(){return(0,i.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,i.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;let e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;let e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){let t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,i.gc)(this._observable),yield*this._items}}},563(e,t,r){r.d(t,{QueueProcessor:()=>u,SharedConcurrency:()=>c});var i=r(97768),n=r(17676),s=r(9775),o=r(32587),a=r(76030),l=r(44794);class u{constructor(e){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,l.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??d,this._queue=new s.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,i.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){this._controllers.get(e)?.abort()}clear(){this._queue.clear();let e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,r)=>e(r))}_get(e){return this._deferreds.get(e)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){let r=this._get(e);if(r)return r;let i=new AbortController,s=Promise.withResolvers(),o=t?(0,n.u7)(t,()=>i.abort()):null,a=(0,n.NY)(i.signal,()=>{let t=this._processingItems.get(e);t&&t.controller.abort(),l(),s.reject((0,n.NK)())}),l=()=>{a.remove(),o?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,s),this._controllers.set(e,i),s.promise.then(l,l),this._queue.push(e),this._scheduleNext(),s.promise}last(){return this._queue.last()}reset(){let e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!(!this._deferreds.get(e.item)||this._processingItems.get(e.item)!==e)}_process(e){if(null==e)return;let t,r=new AbortController,i=new h(e,r);this._processingItems.set(e,i),this.sharedConcurrency.current.value+=1;try{t=this.process(e,r.signal)}catch(e){this._processError(i,e)}(0,n.$X)(t)?(i.promise=t,t.then(e=>this._processResult(i,e),e=>this._processError(i,e))):this._processResult(i,t)}}class h{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class c{constructor(e){this.limit=e,this.current=(0,l.v)(0)}get full(){return this.current.value>=this.limit}}const d=new c(1/0)},32587(e,t,r){r.d(t,{A:()=>s});var i=r(62788),n=r(95488);class s{constructor(e){this._observable=new n.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,i.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){let t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,i.gc)(this._observable),this._map.entries()}forEach(e,t){(0,i.gc)(this._observable),this._map.forEach((r,i)=>e.call(t,r,i,this),t)}get(e){return(0,i.gc)(this._observable),this._map.get(e)}has(e){return(0,i.gc)(this._observable),this._map.has(e)}keys(){return(0,i.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(let r of t){if(!this._map.has(r))continue;let t=this._map.get(r),i=e(t,r);i!==t&&this.set(r,i)}})}values(){return(0,i.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,i.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},7695(e,t,r){function i(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>i})},82534(e,t,r){function i(){return[0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>n,vt:()=>i});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:i,fromValues:function(e,t,r,i){return[e,t,r,i]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,s])},48163(e,t,r){function i(){return[0,0]}function n(e){return[e[0],e[1]]}function s(e,t){return[e,t]}function o(){return s(1,1)}function a(){return s(-1,-1)}function l(){return s(1,0)}function u(){return s(0,1)}r.d(t,{fA:()=>s,o8:()=>n,vt:()=>i});const h=o(),c=a(),d=l(),p=u();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:h,UNIT_X:d,UNIT_Y:p,ZEROS:[0,0],clone:n,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t},fromValues:s,negativeOnes:a,ones:o,unitX:l,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,c,"Un",0,h])},17799(e,t,r){r.d(t,{T9:()=>a,d_:()=>n,gT:()=>s});var i=r(86211);function n(e,t){return{type:(0,i.t$)(t),value:e,unit:t}}function s(e,t){return{type:(0,i.t$)(t),value:e,unit:t}}function o(e,t,r="arithmetic"){return{type:(0,i.t$)(t),value:e,unit:t,rotationType:r}}function a(e,t){return null==e?t:null==t||e.value>(0,i.oU)(t.value,t.unit,e.unit)?e:t}n(0,"meters"),s(0,"square-meters"),o(0,"radians"),o(0,"degrees"),o(0,"degrees","geographic")},36708(e,t,r){r.d(t,{C_:()=>d,on:()=>c,wB:()=>l,z7:()=>u});var i=r(37955),n=r(36563),s=r(97768),o=r(17676),a=r(14012);function l(e,t,r={}){return h(e,t,r,p)}function u(e,t,r={}){return h(e,t,r,f)}function h(e,t,r={},i){let n=null,o=r.once?(e,r)=>{i(e)&&((0,s.xt)(n),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(n=(0,a.Cn)(e,o,r.sync,r.equals),r.initial){let t=e();o(t,t)}return n}function c(e,t,r,o={}){let a=null,u=null,h=null;function c(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,s.xt)(h),r(e)}let p=l(e,(e,r)=>{c(),(0,i.wb)(e)&&(a=e,u=(0,i.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,n.hA)(()=>{p.remove(),c()}),h}function d(e,t){return function(e,t,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());let i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((i,s)=>{a=(0,n.vE)([(0,o.u7)(r,()=>{l(),s((0,o.NK)())}),h(e,e=>{l(),i(e)},{sync:!1,once:!0},t??p)])})}(e,f,t)}function p(e){return!0}function f(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,r){r.d(t,{v:()=>a});var i=r(4718),n=r(62788),s=r(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=i.gh){return new o(e,t)}},88930(e,t,r){r.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>h,t:()=>c});var i=r(97770),n=(r(98623),r(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,r,s="system"){if("unknown"===r)return e;let o=new n.oh((0,i.wj)(s)),a=n.c9.fromJSDate(e,{zone:o}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){let i=e.getTime(),n=c(t,r,"milliseconds");return new Date(i+n)}function u(e,t,r="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new n.oh((0,i.wj)(r)),l=n.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function h(e){let t=s.exec(e);if(!t)return null;let{hh:r,mm:i,ss:n,ms:a}=t.groups;return Number(r)*o.hours+Number(i)*o.minutes+Number(n||0)*o.seconds+Number(a||0)}function c(e,t,r){return 0===e?0:e*o[t]/o[r]}},87992(e,t,r){r.d(t,{JR:()=>M,ME:()=>x,MY:()=>A,NO:()=>w,Nh:()=>b,V2:()=>E,_s:()=>O,e6:()=>N,gh:()=>C,jm:()=>T,tr:()=>z,uX:()=>m});var i=r(32198),n=r(16930),s=r(19419),o=r(60408),a=r(21325),l=r(513),u=r(50954),h=r(79567),c=r(52006),d=r(49663),p=r(46068),f=r(92722);class m{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:i,vertexZ:n,vertexM:s,partCount:o,partOffsets:a,partFlags:l,segmentFlags:u,segmentIndices:h,segmentParams:c,segmentCountArc:d,segmentCountBezier:p}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=i,this.vertexZ=n,this.vertexM=s,this.partCount=o,this.partOffsets=a,this.partFlags=l,this.segmentFlags=u,this.segmentIndices=h,this.segmentParams=c,this.segmentCountArc=d,this.segmentCountBezier=p}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:i,hasM:n,segmentCountArc:s,segmentCountBezier:o}=this,a=E(e,t,r,i,n,this.hasCurves(),s,o);a.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:u,vertexM:h}=this;if(a.vertexXY.set(l.subarray(0,2*t),0),a.vertexZ?.set(u.subarray(0,t),0),a.vertexM?.set(h.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,r+1)),a.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:i,segmentParamCount:n}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(i.subarray(0,n),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new g(this):[][Symbol.iterator]()}}class g{constructor(e){this.geometry=e,this.value=new y(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(e){this.geometry=e,this.index=-1,this._readVertex=Z(e),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class v{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new _(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class _{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],i=t[r++],n=t[r++],s=t[r++];return{b:[this.end,[e,i],[n,s]]}}let i=t[r++],n=t[r++],s=t[r++],o=t[r++],a=t[r++],l=t[r++];r++,r++;let u=t[r++],h=t[r++];if(!(4&i)&&1===s)return{c:[this.end,[u,h]]};let c=2&i?0:1,d=1&i?0:1;return{a:[this.end,[a,l],c,d,o,n,s]}}}function w(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,s.Ie)(),(0,i.mS)(r,new R(e,["vertexZ","vertexM","spatialReference"]),!1),(0,s.bx)(t,function(e){let t,{vertexCount:r,vertexXY:n,vertexZ:o,vertexM:a}=e,l=S(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(r,new R(e,["vertexZ","vertexM"]),!1);let n=(0,s.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,h.e)(n,e,r),e=(0,c.yP)(r)}let[o,a,u,d]=n;t={xmin:o,ymin:a,xmax:u,ymax:d,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}else{let e,i,s,o;e=i=1/0,s=o=-1/0;for(let t=0;t<r;++t){let r=n[2*t],a=n[2*t+1];e=Math.min(e,r),s=Math.max(s,r),i=Math.min(i,a),o=Math.max(o,a)}t={xmin:e,ymin:i,xmax:s,ymax:o,spatialReference:l}}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}function x(e){let t,r,i;if((0,o.fT)(e)){i="point";let{x:n,y:s,z:o,m:a}=e,l=[n,s];null!=o&&l.push(o),null!=a&&l.push(a),r=[[l]],t=1}else(0,o.U9)(e)?(i="multipoint",r=[e.points],t=e.points.length):(0,o.Rg)(e)?(i="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(i="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,P(t[0],(0,c.yP)(t.at(-1)))&&--e),e),0));let n=E(i,t,i.includes("point")?0:r.length,(0,o.Pv)(e),(0,o.W0)(e),(0,c.Ed)(e)),{hasZ:s,hasM:a,vertexXY:l,vertexZ:u,vertexM:h}=n;function d(e){l[2*f]=e[0],l[2*f+1]=e[1],s&&(u[f]=e[2]),a&&(h[f]=e[p]),++f}n.spatialReference=e.spatialReference??void 0;let p=n.hasZ?3:2,f=0;if(!n.isMultipart()){if(!s&&!a){for(let[e,t]of r[0])l[2*f]=e,l[2*f+1]=t,++f;return n}for(let e of r[0])d(e);return n}let m="polygon"===i,{partOffsets:g}=n,y=0;if(!(0,c.Ed)(e)){for(let e of r){if(g[y++]=f,0===e.length)continue;let t=e.length;if(m&&P(e[0],e.at(-1))&&--t,s||a)for(let r=0;r<t;++r)d(e[r]);else for(let r=0;r<t;++r){let[t,i]=e[r];l[2*f]=t,l[2*f+1]=i,++f}}return g[y]=f,n}function v(e){let t=_+e;if(t<=(n.segmentParams?.length??0))return;let r=t*F;r=20*Math.ceil(r/20);let i=n.segmentParams;n.segmentParams=new Float64Array(r),null!=i&&n.segmentParams.set(i)}let _=0;for(let e of r){if(n.partOffsets[y++]=f,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let i=e[t];d(r);let s=f-1;(0,c.wY)(i)?(v(10),++n.segmentCountArc,_=O(r,i,n,s,_),r=i.a[0]):(0,c.DA)(i)?(v(10),++n.segmentCountArc,_=I(r,i,n,s,_),r=i.a[0]):(0,c.aO)(i)?(v(10),++n.segmentCountArc,_=N(r,i,n,s,_),r=i.c[0]):(0,c.n1)(i)?(v(4),++n.segmentCountBezier,_=z(0,i,n,s,_),r=i.b[0]):r=i}m&&P(t,r)||d(r)}return n.partOffsets[y]=f,n}function C(e){let t=Z(e),{vertexCount:r,partCount:i,hasZ:n,hasM:s}=e,o=S(e),a=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:o}}let i=[];for(;a<r;)i.push(t(a++));return{points:i,spatialReference:o,hasZ:n,hasM:s}}if(!e.hasCurves()){let r=[];for(let n=0;n<i;++n){let i=!!(1&e.partFlags[n]),s=e.partOffsets[n+1],o=[];for(;a<s;)o.push(t(a++));i&&o.length>0&&o.push([...o[0]]),r.push(o)}return"polygon"===e.type?{rings:r,hasZ:n,hasM:s,spatialReference:o}:{paths:r,hasZ:n,hasM:s,spatialReference:o}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:n,hasM:s,spatialReference:o}:{paths:[],curvePaths:l,hasZ:n,hasM:s,spatialReference:o}}function b(e,{lengths:t,coords:r,hasZ:i,hasM:n},s){let o=e.includes("point")?0:t.length,a="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);i??=!1,n??=!1;let u=E(e,l,o,i,n,!1,0,0);if(u.spatialReference=s??void 0,!u.isMultipart()){for(let e=0,t=0;e<l;++e)u.vertexXY[2*e]=r[t++],u.vertexXY[2*e+1]=r[t++],i&&(u.vertexZ[e]=r[t++]),n&&(u.vertexM[e]=r[t++]);return u}let h=2+Number(i)+Number(n),c=0,d=0;u.partOffsets[0]=0;for(let e of t){let t=u.partOffsets[d],s=t+e-Number(a);u.partOffsets[++d]=s;for(let e=t;e<s;++e)u.vertexXY[2*e]=r[c++],u.vertexXY[2*e+1]=r[c++],i&&(u.vertexZ[e]=r[c++]),n&&(u.vertexM[e]=r[c++]);a&&(c+=h)}return u}function M({type:e,vertexCount:t,vertexXY:r,vertexZ:i,vertexM:n,partCount:s,partOffsets:o,partFlags:a,hasZ:l,hasM:u}){let h=new f.A([],[],l,u);s=Math.max(s,1);let c=0;for(let e=0;e<s;++e){let s=o?.[e+1]??t,d=h.coords.length;for(let e=c;e<s;++e)h.coords.push(r[2*e],r[2*e+1]),l&&h.coords.push(i[e]),u&&h.coords.push(n[e]);if(a&&1&a[e]){let e=c;h.coords.push(r[2*e],r[2*e+1]),l&&h.coords.push(i[e]),u&&h.coords.push(n[e])}h.lengths.push((h.coords.length-d)/h.stride),c=s}return"point"===e&&(h.lengths.length=0),h}function T(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function A(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let i=e.getLatestID();(i<=0||i===r)&&(i=void 0);let n=e.getVCS();if(null==n)return{wkid:r,latestWkid:i,wkt:t};let s=n.isCustomWkid()?0:n.getOldID();if(s<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===s)&&(o=void 0),{wkid:r,wkt:t,latestWkid:i,vcsWkid:s,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new m({...e.toFlatGeometry(),spatialReference:t})}class R{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function S({spatialReference:e}){return e instanceof n.A?e.toJSON():e}function Z({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?i=>[e[2*i],e[2*i+1],t[i],r[i]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function P(e,t){return e.every((e,r)=>e===t[r])}function E(e,t,r,i,n,s,o,a){o??=0,a??=0;let l=new m({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a}),u=2*Float64Array.BYTES_PER_ELEMENT*t;i&&(u+=Float64Array.BYTES_PER_ELEMENT*t),n&&(u+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),s&&(u+=t*Int8Array.BYTES_PER_ELEMENT,u+=t*Int32Array.BYTES_PER_ELEMENT,u+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let h=new ArrayBuffer(u),c=0;return l.vertexXY=new Float64Array(h,c,2*t),c+=l.vertexXY.byteLength,i&&(l.vertexZ=new Float64Array(h,c,t),c+=l.vertexZ.byteLength),n&&(l.vertexM=new Float64Array(h,c,t),c+=l.vertexM.byteLength),s&&(l.segmentParams=new Float64Array(h,c,l.segmentParamCount),c+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(h,c,t),l.segmentIndices.fill(V),c+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(h,c,r+1),c+=l.partOffsets.byteLength,l.partFlags=new Int8Array(h,c,r+1),c+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),s&&(l.segmentFlags=new Int8Array(h,c,t),l.segmentFlags.fill(1),c+=l.segmentFlags.byteLength),l}function O(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:n},s,o){r[s]=4,i[s]=o;let[a,[l,u],h,c,d,f,m]=t.a,g=4;c||(g|=1),h||(g|=2);let y=(0,p.SW)(e,t),[v,_]=(0,p.Uk)(y,.5);return n[o++]=g,n[o++]=f,n[o++]=m,n[o++]=d,n[o++]=l,n[o++]=u,n[o++]=y.u2-y.u1,n[o++]=y.u1,n[o++]=v,n[o++]=_,o}function I(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:n},s,o){r[s]=4,i[s]=o;let a=(0,d.io)(e,t);return D(a,4,...(0,l.mq)(a,.5),n,o)}function N(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:n},s,o){return r[s]=4,i[s]=o,D((0,u.pM)(e,t),0,...t.c[1],n,o)}function D(e,t,r,i,n,s){let{cx:o,cy:a,thetaStart:l,thetaEnd:u,radius:h}=e;return l>u||(t|=1),Math.abs(u-l)<=Math.PI||(t|=2),n[s++]=t,n[s++]=h,n[s++]=1,n[s++]=0,n[s++]=o,n[s++]=a,n[s++]=u-l,n[s++]=l,n[s++]=r,n[s++]=i,s}function z(e,{b:[t,[r,i],[n,s]]},{segmentFlags:o,segmentIndices:a,segmentParams:l},u,h){return o[u]=2,a[u]=h,l[h++]=r,l[h++]=i,l[h++]=n,l[h++]=s,h}const F=1.61803,V=-1},48526(e,t,r){r.d(t,{A:()=>g});var i,n=r(32198),s=r(4576),o=r(4718),a=r(91429),l=r(5443),u=r(91075),h=r(86738),c=r(16930),d=r(90634),p=r(47610),f=r(56993),m=r(43937);let g=i=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:i,spatialReference:n}=e;switch(t??=[],t?.at(0)?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return n??=c.A.WGS84,{...e,hasM:r,hasZ:i,points:t,spatialReference:n}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,d.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:n}=this;return new i({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:n})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,s.aI)(this.points,e.points,p.v6)}addPoint(e){return(0,f.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},i=2;return this.hasZ&&(r.z=t[2],i=3),this.hasM&&(r.m=t[i]),new h.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,f.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,n.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,n.Cg)([(0,m.K)("points")],g.prototype,"writePoints",null),g=i=(0,n.Cg)([(0,a.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>f});var i,n=r(32198),s=r(4718),o=r(91429),a=r(5443),l=r(91075),u=r(86738),h=r(16930),c=r(90634),d=r(56993),p=r(43937);let f=i=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:i,spatialReference:n}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return n??=h.A.WGS84,{...e,hasM:r,hasZ:i,paths:t,spatialReference:n}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){let e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let i=[];for(let t=0,r=e.length;t<r;t++)i[t]=e[t].toArray();t[r]=i}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new i;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],i=this.hasZ,n=this.hasM;return i&&!n?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):n&&!i?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):i&&n?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?((0,d.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,i=t.map(e=>new u.A(e,r));return this.notifyChange("paths"),i}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?((0,d.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths"),this):this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let i=this.paths[e];if(r&&(t<0||t>i.length)||!r&&(t<0||t>=i.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,n.Cg)([(0,p.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,n.Cg)([(0,p.K)("paths")],f.prototype,"writePaths",null),f=i=(0,n.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},89506(e,t,r){r.d(t,{WP:()=>u}),r(86211);var i=r(86742);let n,s,o,a,l;async function u(){if(!n||!(0,i.s)()){let[e]=await Promise.all([r.e(506).then(()=>r(78125)),(0,i.load)()]);n=e.fromGeometry,s=e.fromSpatialReference,o=e.getSpatialReference,a=(0,i.f)(),l=a}}r(85036)},40427(e,t,r){r.d(t,{nG:()=>u}),r(86211);var i=r(35223);let n,s,o,a,l;async function u(){if(!n||!(0,i.s)()){let[e]=await Promise.all([r.e(506).then(()=>r(78125)),(0,i.load)()]);n=e.fromGeometry,s=e.fromSpatialReference,o=e.getSpatialReference,a=(0,i.f)(),l=a}}r(85036)},86742(e,t,r){r.d(t,{execute:()=>a,f:()=>l,load:()=>o,s:()=>s});var i=r(83290);let n;function s(){return!!n&&(0,i.i)()}async function o(){if(!s()){let[e,t]=await Promise.all([Promise.all([r.e(2024),r.e(6558)]).then(()=>r(6558)),r.e(3375).then(()=>r(15756)).then(({injectPe:e})=>e),(0,i.l)()]);n=new e.OperatorGeodeticArea,t(i.p)}}function a(e,t,r){return n.execute(e,t,r,null)}function l(){return n.supportsCurves()}},77085(e,t,r){r.d(t,{execute:()=>o,load:()=>s}),r(76061);var i=r(83290);let n;async function s(){if(!n||!(0,i.i)()){let[e,t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(1088)]).then(()=>r(31088)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(5756)]).then(()=>r(15756)).then(({injectPe:e})=>e),(0,i.l)()]);n=new e.OperatorGeodeticDensifyByLength,t(i.p)}}function o(e,t,r,i){return n.execute(e,t,r,i,null)}},35223(e,t,r){r.d(t,{execute:()=>a,f:()=>l,load:()=>o,s:()=>s});var i=r(83290);let n;function s(){return!!n&&(0,i.i)()}async function o(){if(!s()){let[e,t]=await Promise.all([r.e(8879).then(()=>r(28879)),r.e(3375).then(()=>r(15756)).then(({injectPe:e})=>e),(0,i.l)()]);n=new e.OperatorGeodeticLength,t(i.p)}}function a(e,t,r){return n.execute(e,t,r,null)}function l(){return n.supportsCurves()}},4144(e,t,r){r.r(t),r.d(t,{clipToSpatialReference:()=>l,execute:()=>u,executeMany:()=>h,foldInto360Range:()=>c,foldInto360RangeGeodetic:()=>d,isLoaded:()=>o,load:()=>a,normalizeGeometry:()=>p,supportsCurves:()=>f,transform:()=>m});var i=r(76061),n=r(83290);let s;function o(){return!!s&&(0,n.i)()}async function a(){if(!o()){let[e,t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(9192)]).then(()=>r(9192)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(5756)]).then(()=>r(15756)).then(({injectPe:e})=>e),(0,n.l)()]);s=new e.OperatorProject,t(n.p)}}function l(e,t,r){return s.clipToSpatialReference(e,t,null,r)}function u(e,t){return s.execute(e,t,null)}function h(e,t){let r=s.executeMany(new i.S(e),t,null);return Array.from(r)}function c(e,t){return s.foldInto360Range(e,t)}function d(e,t,r){return s.foldInto360RangeGeodetic(e,t,r)}function p(e,t,r){return s.normalizeGeometry(e,t,r)}function f(){return s.supportsCurves()}function m(e,t,r,i,n){return s.transform(e,t,r,i,n)}},81150(e,t,r){r.d(t,{execute:()=>o,f:()=>u,isSimpleAsFeature:()=>l,z:()=>a});var i=r(76061),n=(r(55537),r(88885),r(39117));r(95213);const s=new n.J;function o(e,t,r){return s.execute(e,t,r,null)}function a(e,t,r){let n=s.executeMany(new i.S(e),t,r,null);return Array.from(n)}function l(e,t,r){return s.isSimpleAsFeature(e,t,r,null,null)}function u(){return s.supportsCurves()}},965(e,t,r){r.d(t,{lengthExecute:()=>s});var i=r(86211),n=r(78125);function s(e,t={}){let{unit:r}=t,s=(0,n.fromGeometry)(e).calculateLength2D();if(s&&r){let t=(0,n.getSpatialReference)(e);s=(0,i.PQ)(s,t,r)}return s}r(85036)},83276(e,t,r){r.r(t),r.d(t,{execute:()=>v,executeMany:()=>w,isLoaded:()=>f,load:()=>g,projectExecute:()=>y,projectExecuteMany:()=>_,projectIsLoaded:()=>p,projectLoad:()=>m,projectSupportsCurves:()=>c,supportsCurves:()=>d});var i=r(4144),n=r(85036),s=r(17499);let o,a,l,u,h,c,d;function p(){return!!o&&(0,i.isLoaded)()}function f(){return(0,n.Q)("projectOperator","isLoaded","projectIsLoaded"),p()}async function m(){if(!p()){let[e,t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(9567),r.e(9829),r.e(1666)]).then(()=>r(78125)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(6129)]).then(()=>r(86129)),(0,i.load)()]);o=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,u=e.toGeometry,h=t.createProjectionTransformation,c=(0,i.supportsCurves)(),d=c}}function g(){return(0,n.Q)("projectOperator","load","projectLoad"),m()}function y(e,t,r){let n=l(e),c=h(a(n),a(t),r),d=u((0,i.execute)(o(e),c),t);return!r?.zConversionDisabled&&d?.hasZ&&(0,s.g)([d],n,t),d}function v(e,t,r){return(0,n.Q)("projectOperator","execute","projectExecute"),y(e,t,r)}function _(e,t,r){let n=e.map(o),c=l(e),d=h(a(c),a(t),r),p=(0,i.executeMany)(n,d).map(e=>u(e,t));return!r?.zConversionDisabled&&p&&(0,s.g)(p,c,t),p}function w(e,t,r){return(0,n.Q)("projectOperator","executeMany","projectExecuteMany"),_(e,t,r)}},78125(e,t,r){r.r(t),r.d(t,{fromExtent:()=>g,fromGeometry:()=>m,fromMultipoint:()=>y,fromPoint:()=>v,fromPolygon:()=>_,fromPolyline:()=>w,fromPolylineUsingImportOperator:()=>x,fromSpatialReference:()=>C,getSpatialReference:()=>f,toExtent:()=>M,toGeometry:()=>b,toMultipoint:()=>T,toPoint:()=>A,toPolygon:()=>R,toPolyline:()=>S});var i=r(83661),n=r(55537),s=r(95213),o=r(88885),a=r(5443),l=r(48526),u=r(86738),h=r(39829),c=r(82799),d=(r(90293),r(83299));const p="_gxVersion";function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function m(e){switch(e.type){case"point":return v(e);case"multipoint":return y(e);case"polyline":return w(e);case"polygon":return _(e);case"extent":return g(e);default:throw Error(`Unsupported geometry type: ${e.type}`)}}function g(e){if(!e.getCacheValue(p)){let t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function y(e){if(!e.getCacheValue(p)){let t=new o.M,r=new s.P,i=e.points,n=e.hasM,a=e.hasZ,l=a?3:2;for(let e=0,s=i.length;e<s;e++){let s=i[e];r.setXYCoords(s[0],s[1]),a&&r.setZ(s[2]??0),n&&r.setM(s[l]??NaN),t.add(r)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function v(e){if(!e.getCacheValue(p)){let t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function _(e){if(!e.getCacheValue(p)){let{curveRings:t,hasM:r,hasZ:i,rings:n}=e,s=(0,d.fromGeometryToGXGeometry)({curveRings:t,hasM:r,hasZ:i,rings:n});e.setCacheValue(p,s)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){let{curvePaths:t,hasM:r,hasZ:i,paths:n}=e,s=(0,d.fromGeometryToGXGeometry)({curvePaths:t,hasM:r,hasZ:i,paths:n});e.setCacheValue(p,s)}return e.getCacheValue(p)}function x(e){if(!e.getCacheValue(p)){let{curvePaths:t,hasM:r,hasZ:i,paths:n}=e,s=(0,d.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:r,hasZ:i,paths:n});e.setCacheValue(p,s)}return e.getCacheValue(p)}function C(e){return e.cache?(e.cache[p]??=(0,d.fromSpatialReference)(e),e.cache[p]):(0,d.fromSpatialReference)(e)}function b(e,t){if(e)switch(e.getGeometryType()){case n.G.enumPoint:return A(e,t);case n.G.enumEnvelope:return M(e,t);case n.G.enumMultiPoint:return T(e,t);case n.G.enumPolyline:return S(e,t);case n.G.enumPolygon:return R(e,t)}return null}function M(e,t){if(e.isEmpty())return null;let r=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),i=e.getDescription();if(i.hasM()){let t=e.queryInterval(2,0);r.mmin=t.vmin,r.mmax=t.vmax}if(i.hasZ()){let t=e.queryInterval(1,0);r.zmin=t.vmin,r.zmax=t.vmax}return r.setCacheValue(p,e),r}function T(e,t){if(e.isEmpty())return null;let r=e.getDescription(),i=r.hasM(),n=r.hasZ(),o=[],a=new s.P;for(let t=0,r=e.getPointCount();t<r;t++){e.getPointByVal(t,a);let r=[a.getX(),a.getY()];n&&r.push(a.getZ()),i&&r.push(a.getM()),o.push(r)}let u=new l.A({hasM:i,hasZ:n,points:o,spatialReference:t});return u.setCacheValue(p,e),u}function A(e,t){if(e instanceof i.P)return new u.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;let r=new u.A({x:e.getX(),y:e.getY(),spatialReference:t}),n=e.getDescription();return n.hasM()&&(r.m=e.getM()),n.hasZ()&&(r.z=e.getZ()),r.setCacheValue(p,e),r}function R(e,t){if(e.isEmpty())return null;let r=h.A.fromJSON({...(0,d.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(p,e),r}function S(e,t){if(e.isEmpty())return null;let r=c.A.fromJSON({...(0,d.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(p,e),r}},85036(e,t,r){r.d(t,{Q:()=>s});var i=r(51447),n=r(53966);function s(e,t,r){(0,i.io)(n.A.getLogger(`esri.geometry.operators.${e}`),`${t} is deprecated. Refactor using @arcgis/codemod or manually replace usages with ${r} instead.`,{replacement:r,warnOnce:!0})}},17499(e,t,r){r.d(t,{g:()=>s});var i=r(60408),n=r(62815);function s(e,t,r){let s;for(let o of e)if(o&&(0,i.Pv)(o)&&!("vertexAttributes"in o)){if(!s){let e="type"in o?o.type:(0,i.$B)(o);if(s=(0,n.N)(e,t,r),!s)return}s(o)}}},72727(e,t,r){function i(e,t,r){if(t<=0)return 0;let i=e-r;return i<0?0:Math.floor(i/t)+1}r.d(t,{k:()=>i}),r(53966)},60408(e,t,r){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function c(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>n,W0:()=>c,ZC:()=>i,fT:()=>s,uW:()=>l})},65864(e,t,r){r.d(t,{rS:()=>h,xD:()=>d});var i=r(5443),n=r(91075),s=r(48526),o=r(86738),a=r(39829),l=r(82799),u=r(60408);function h(e){return null==e?null:e instanceof n.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?i.A.fromJSON(e):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function d(e){return e&&c[e]||null}},27921(e,t,r){r.d(t,{$Q:()=>S,BX:()=>R,C:()=>u,Cr:()=>p,H:()=>P,LV:()=>l,O_:()=>d,Qj:()=>h,T7:()=>M,Ui:()=>b,_I:()=>E,fA:()=>c,gv:()=>T,lU:()=>f,mN:()=>O,mP:()=>x,mR:()=>C,vE:()=>D,vt:()=>a,wE:()=>I});var i=r(34727),n=r(35522),s=r(51850),o=(r(78955),r(44280),r(32114));function a(e=z){return[e[0],e[1],e[2],e[3]]}function l(e=z[0],t=z[1],r=z[2],i=z[3]){return c(e,t,r,i,o.Km.get())}function u(e,t){return c(t[0],t[1],t[2],t[3],e)}function h(e){return e}function c(e,t,r,i,n=a()){return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function d(e,t,r){let i=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=Math.abs(i-1)>1e-5&&i>1e-12?1/Math.sqrt(i):1;return r[0]=t[0]*n,r[1]=t[1]*n,r[2]=t[2]*n,r[3]=-(r[0]*e[0]+r[1]*e[1]+r[2]*e[2]),r}function p(e,t,r,i=a()){let n=r[0]-t[0],s=r[1]-t[1],o=r[2]-t[2],l=e[0]-t[0],u=e[1]-t[1],h=e[2]-t[2],c=s*h-o*u,d=o*l-n*h,p=n*u-s*l,f=c*c+d*d+p*p,m=Math.abs(f-1)>1e-5&&f>1e-12?1/Math.sqrt(f):1;return i[0]=c*m,i[1]=d*m,i[2]=p*m,i[3]=-(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]),i}function f(e,t,r,i=0,s=Math.floor(1/3*r),o=Math.floor(2/3*r)){if(r<3)return!1;t(g,i);let a=s,l=!1;for(;a<r-1&&!l;)t(y,a),a++,l=!(0,n.t2)(g,y);if(!l)return!1;for(a=Math.max(a,o),l=!1;a<r&&!l;)t(v,a),a++,(0,n.Re)(_,g,y),(0,n.S8)(_,_),(0,n.Re)(w,y,v),(0,n.S8)(w,w),l=!(0,n.t2)(g,v)&&!(0,n.t2)(y,v)&&Math.abs((0,n.Om)(_,w))<m;return l?(p(g,y,v,e),!0):(0!==i||1!==s||2!==o)&&f(e,t,r,0,1,2)}r(32728);const m=.99619469809,g=(0,s.vt)(),y=(0,s.vt)(),v=(0,s.vt)(),_=(0,s.vt)(),w=(0,s.vt)();function x(e,t,r){return t!==e&&u(e,t),e[3]=-(0,n.Om)(e,r),e}function C(e,t,r,i){return(0,n.$A)(v,t,e),d(r,v,i)}function b(e,t,r){return null!=t&&N(D(e,t.origin,t.direction,F,r))}function M(e,t,r){return N(D(e,t.origin,t.vector,0,r))}function T(e,t,r){return N(D(e,t.origin,t.vector,1,r))}function A(e,t){return O(e,t)<=0}function R(e,t){return O(e,t)>=0}function S(e,t){return function(e,t,r,i,s,o,a){let l=(0,n.Om)(e,r),u=O(e,t);if(l>-1e-6&&l<1e-6)return Z(u,s,o);let h=-u/l,c=Z(l,s,!1);return!(a&&!c&&!Z(u,s,o))&&(c?h>i.c0&&(i.c0=h):h<i.c1&&(i.c1=h),i.c0<=i.c1)}(e,t.ray.origin,t.ray.direction,t,!1,!1,!0)}function Z(e,t,r){return r?t?e>=0:e<=0:t?e>0:e<0}function P(e,t,r,i=!1){let s=t.at(-1),o=O(e,s),a=i?o>0:o<=0;for(let l=0;l<t.length;l++){let u=t.at(l),h=O(e,u),c=i?h>0:h<=0;a!==c&&(0,n.Cc)(r(),s,u,o/(o-h)),c&&(0,n.C)(r(),u),s=u,o=h,a=c}}function E(e,t,r){let i=(0,n.hs)(o.rq.get(),e,-e[3]),s=function(e,t,r){let i=(0,n.hs)(o.rq.get(),e,(0,n.Om)(e,t));return(0,n.Re)(r,t,i),r}(e,(0,n.Re)(o.rq.get(),t,i),o.rq.get());return(0,n.WQ)(r,s,i),r}function O(e,t){return(0,n.Om)(e,t)+e[3]}function I(e,t,r){for(let i=0;i<r;++i)if(A(e,t[i]))return!1;return!0}function N(e){return 0===e||1===e}function D(e,t,r,s,o){let a=(0,n.Om)(e,r),l=O(e,t);if(0===a)return l>=0?2:3;let u=-l/a;return 1&s&&(u=(0,i.qE)(u,0,1)),!(4&s)&&u<0||!(8&s)&&u>1?l>=0?2:3:((0,n.WQ)(o,t,(0,n.hs)(o,r,u)),l>=0?0:1)}const z=[0,0,1,0],F=8;(0,s.vt)()},44280(e,t,r){r.d(t,{g7:()=>a,gr:()=>o});var i=r(34727),n=r(35522),s=r(51850);function o(e,t){return(0,n.Om)(e,t)/(0,n.Bw)(e)}function a(e,t){let r=(0,n.Om)(e,t)/((0,n.Bw)(e)*(0,n.Bw)(t));return-(0,i.XM)(r)}(0,s.vt)(),(0,s.vt)()},32114(e,t,r){r.d(t,{Rc:()=>p,rq:()=>c,Km:()=>d}),r(44208);var i=r(26390),n=r(29242),s=r(9093),o=r(82534),a=r(48163),l=r(51850),u=r(91829);class h{constructor(e){this._create=e,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,i.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let e=2*this._itemsPtr;this._items.length>e&&(this._items.length=e),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(l.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(n.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(o.vt)}get test(){}}h.createVec2f64();const c=h.createVec3f64(),d=h.createVec4f64(),p=(h.createMat3f64(),h.createMat4f64());h.createQuatf64()},97770(e,t,r){r.d(t,{Ey:()=>P,F8:()=>Z,J2:()=>T,Yq:()=>R,_m:()=>A,iS:()=>S,wj:()=>E});var i=r(66552),n=r(73444),s=r(98623),o=r(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},m={...f,second:"numeric"},g={hourCycle:"h23"},y={...f,...g},v={...m,...g},_={"short-date":h,"short-date-short-time":{...h,...f},"short-date-short-time-24":{...h,...y},"short-date-long-time":{...h,...m},"short-date-long-time-24":{...h,...v},"short-date-le":h,"short-date-le-short-time":{...h,...f},"short-date-le-short-time-24":{...h,...y},"short-date-le-long-time":{...h,...m},"short-date-le-long-time-24":{...h,...v},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...f},"long-month-day-year-short-time-24":{...c,...y},"long-month-day-year-long-time":{...c,...m},"long-month-day-year-long-time-24":{...c,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...f},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...m},"day-short-month-year-long-time-24":{...d,...v},"long-date":p,"long-date-short-time":{...p,...f},"long-date-short-time-24":{...p,...y},"long-date-long-time":{...p,...m},"long-date-long-time-24":{...p,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":m},w=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),x={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function C(){let e=(0,n.lR)();return(e&&x[e])??(0,n.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(x.bs="sr-Latn-CS");let b=new WeakMap;const M=_["short-date-short-time"];function T(e){return _[e]}function A(e){let{dateStyle:t,timeStyle:r,hour12:i,year:n,month:s}=e,o={};return t?o.dateStyle=t:n&&(o.year=n,o.month=s||void 0),r&&!o.year&&(o.timeStyle=r,o.hour12="auto"===i?void 0:"always"===i),o}function R(e,t=M){return function(e){let t=b.get(e);if(!t){let r=C(),i=E(e.timeZone??"system"),n={...e,timeZone:i};t=new Intl.DateTimeFormat(r,n),b.set(e,t)}return t}(t).format(e)}function S(e,t=M){return R(new Date(e),{...t,...u,...l})}function Z(e,t=M){return R(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function P(e,t=M){let r=o.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return R(r.toJSDate(),t);let i=0===r.offset?"UTC":t.timeZone,n={...t,timeZone:i};return r.toLocaleString(n,{locale:C()})}function E(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,n.Ml)(()=>{b=new WeakMap}),r.d(t,["_v",0,w])},73444(e,t,r){r.d(t,{JK:()=>l,Ml:()=>g,QC:()=>c,lR:()=>h,oQ:()=>f});var i=r(36563);let n;r(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===n&&(n=a()),n}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return d(e)?.language}function c(e=l()){let t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return u.exec(e)?.groups}const p=[];function f(e){return p.push(e),(0,i.hA)(()=>{p.splice(p.indexOf(e),1)})}new Map;const m=[];function g(e){return m.push(e),(0,i.hA)(()=>m.splice(m.indexOf(e),1))}function y(){let e=a();n!==e&&([...m].forEach(t=>t(e)),n=e,[...p].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),o&&new MutationObserver(()=>{y()}).observe(o,{attributeFilter:["lang"]})},4146(e,t,r){r.d(t,{A:()=>v});var i=r(32198),n=r(56507),s=r(49186),o=r(65529),a=r(4902),l=r(92474),u=r(53966),h=r(17676),c=r(84952),d=r(91429),p=r(5443),f=r(16930),m=r(92602),g=r(79677);let y=0,v=class extends((0,o.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.A(-180,-90,180,90,f.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+y++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){let t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(()=>r(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){let t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(9917),r.e(812),r.e(5613)]).then(()=>r(45613));try{return await i(t)}catch(e){let r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||m.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,h.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){let{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){let{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){let e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,i.Cg)([(0,d.MZ)({type:p.A})],v.prototype,"fullExtent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i.Cg)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,d.MZ)({type:f.A})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i.Cg)([(0,d.MZ)()],v.prototype,"url",void 0),(0,i.Cg)([(0,d.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i.Cg)([(0,d.$K)("esri.layers.Layer")],v)},92722(e,t,r){r.d(t,{A:()=>n});var i=r(69397);class n{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 n(e,t,r||!1,i||!1)}static fromRect([e,t,r,i]){let s=r-e,o=i-t;return new n([5],[e,t,s,0,0,o,-s,0,0,-o])}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,n=this.coords[i*t],s=this.coords[i*t+1];for(let o=1;o<r;o+=1){let r=i*(t+o),a=this.coords[r],l=this.coords[r+1];e+=-.5*(a-n)*(l+s),n=a,s=l}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 n=0;n<i;n++){let i=r*(t+n);e(this.coords[i],this.coords[i+1])}t+=i}}deltaDecode(){let e=this.clone(),{coords:t,lengths:r}=e,i=0,{stride:n}=this;for(let e of r){for(let r=1;r<e;r++){let e=n*(i+r);t[e]+=t[e-n],t[e+1]+=t[e+1-n]}i+=e}return e}clone(e){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:r,size:i}=this,s=this.coords.slice(0,i*r);return e?(e.set(s),new n(t,e,this.hasZ,this.hasM)):new n(t,Array.from(s),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 n(this.lengths,r,!1,!1)}}},63490(e,t,r){r.d(t,{Mr:()=>l,TH:()=>a});var i=r(32198),n=r(69540),s=r(25482),o=r(91429);let a=class extends((0,n.OU)(s.o)){constructor(){super(...arguments),this.url=null}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,i.Cg)([(0,o.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.constantElevation=null}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,i.Cg)([(0,o.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l),r.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,r){r.d(t,{eR:()=>C,yP:()=>T,R:()=>Z,o:()=>P,RR:()=>b,l6:()=>M});var i=r(66552),n=(r(86211),r(28735),r(32198)),s=r(69540),o=r(25482),a=r(91429),l=r(69622),u=r(21325);let h=class extends l.A{set horizontalWKID(e){e?(0,u.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,u.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:n}=this;return e?.length>1&&!Number.isNaN(t)&&r?.length>1&&i?.length>1&&n?.length>1}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"horizontalWKID",null),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"verticalWKID",null),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"z",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"type",void 0),h=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],h);const c=h;let d=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,heading:o,pitch:a,roll:l,affineTransformations:u,focalLength:h,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,r,i,n,s,o,a,l];return this.isAdvanced&&(u?.forEach(e=>f.push(e)),f.push(h),c?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"heading",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pitch",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"roll",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"z",void 0),d=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],d);const p=d;let f=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=4}toString(){let{type:e,latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:n,properties:s}=this,o=`${s}`.split("|");return o.splice(1,1),`${e}|${t}|${r}|${i}|${n}|${o.join("|")}`}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"latitude",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"longitude",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"ellipsoidRadius",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"squaredEccentricity",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"properties",void 0),f=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],f);const m=f;let g=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=2}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,omega:o,phi:a,kappa:l,affineTransformations:u,focalLength:h,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,r,i,n,s,o,a,l];return this.isAdvanced&&(u?.forEach(e=>f.push(e)),f.push(h),c?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>isNaN(e)?"":e).join("|")}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"omega",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"phi",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"kappa",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"z",void 0),g=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],g);const y=g;let v=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=3}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:n}=this;return e?.length>1||!Number.isNaN(t)||r?.length>1||i?.length>1||n?.length>1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,yaw:o,pitch:a,roll:l,affineTransformations:u,focalLength:h,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,r,i,n,s,o,a,l];return this.isAdvanced&&(u?.forEach(e=>f.push(e)),f.push(h),c?.forEach(e=>f.push(e)),c?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const _=v,w=new Map;w.set("2",{desc:"Using Omega Phi Kappa",constructor:y}),w.set("1",{desc:"Using Heading, Pitch and Roll",constructor:p}),w.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:_}),w.set("4",{desc:"Using Local Tangent Plane",constructor:m});var x=r(63490);function C(e,t,r){return e&&((0,x.E1)(e)?new x.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 x.TH({...e,url:i})):null}(e,t,r))}const b=new i.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),M=new i.J({Feet:"feet",Meter:"meter"}),T=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}),A=new Map;A.set("1",function(e){let[t,r,i,n,s,o,a,l,u,h,c,d,p,f,m,g,y,v,_,w,x,C]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,heading:o,pitch:a,roll:l,...S([u,h,c,d,p,f],[g,y],[v,_,w],[x,C],m)}}),A.set("3",function(e){let[t,r,i,n,s,o,a,l,u,h,c,d,p,f,m,g,y,v,_,w,x,C]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,yaw:o,pitch:a,roll:l,...S([u,h,c,d,p,f],[g,y],[v,_,w],[x,C],m)}}),A.set("2",function(e){let[t,r,i,n,s,o,a,l,u,h,c,d,p,f,m,g,y,v,_,w,x,C]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,omega:o,phi:a,kappa:l,...S([u,h,c,d,p,f],[g,y],[v,_,w],[x,C],m)}}),A.set("4",function(e){let[t,r,i,n,s,...o]=e.slice(1),a=A.get(s),l=w.get(s)?.constructor;return a&&l?{latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:n,properties:new l(a([s,"",...o]))}:null});const R=e=>{let t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function S(e,t,r,i,n){let s=R(e),o=R(t),a=R(r),l=R(i);return{affineTransformations:6===s?.length?s:void 0,focalLength:6===s?.length?parseFloat(n):void 0,principalOffsetPoint:2===o?.length?o:[0,0],radialDistortionCoefficients:3===a?.length?a:[0,0,0],tangentialDistortionCoefficients:2===l?.length?l:[0,0]}}function Z(e){if("string"!=typeof e)return null;let t=e.split(";");return t.some(e=>!/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/.test(e.trim()))?null:function(e){return function(e){if(!Array.isArray(e)||e.length<=5)return!1;for(let t of e)if("number"!=typeof t||!Number.isFinite(t)||t<0)return!1;return!0}(e)?function(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}(e):null}(t.map(e=>Number(e.trim())))}function P(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 n=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return n?[{fieldName:n.name,sortOrder:"asc"}]:null}},39357(e,t,r){r.d(t,{A:()=>a});var i,n=r(32198),s=r(25482),o=r(91429);let a=i=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,r){r.d(t,{A:()=>h});var i,n=r(32198),s=r(4718),o=r(91429),a=r(39357),l=r(76357),u=r(93223);let h=class extends l.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,n.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],h.prototype,"codedValues",void 0),(0,n.Cg)([(0,u.e)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],h)},76357(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(66552),s=r(25482),o=r(91429),a=r(93223);const l=new n.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},1359(e,t,r){r.d(t,{createSampler:()=>A,query:()=>T});var i=r(60999),n=r(49186),s=r(44208),o=r(97768),a=r(17676),l=r(86211),u=r(99917),h=r(19419),c=r(4576),d=r(72802);class p{constructor(e,t){this.layer=e,this.parameters=t}}class f extends p{constructor(e,t,r){super(e,r),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{let{tileInfo:t,tilemapCache:r}=this.layer,i=y(t,r)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(i,e.x,e.y))}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(let e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(let t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(let t of this.geometry.coordinates){let r=t.tile?.id;t.tile=r?e[r]:null}}getTilesToFetch(){return(0,c.Am)(this.geometry.coordinates.filter(({tile:e,elevationTile:t})=>e?.id&&!t),(e,t)=>e.tile?.id===t.tile?.id).map(({tile:e})=>e)}forEachTileToFetch(e){for(let t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>t.tile=null)}}class m extends p{constructor(e,t,r,i){super(e,r),this.maskExtents=i,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){let r=this._maximumLodForRequests(t),i=Math.min(r,e);i<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(i)}_maximumLodForRequests(e){let{tileInfo:t,tilemapCache:r}=this.layer,i=y(t,r);if(!e)return i.length-1;let n=this.extent;if(null==n)return-1;for(let r=i.length-1;r>=0;r--){let s=i[r],o=s.resolution*t.size[0],a=s.resolution*t.size[1];if(Math.ceil(n.width/o)*Math.ceil(n.height/a)<=e)return r}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(let t of this._candidateTiles){let r=t.id&&e[t.id];r&&(this._fetchedCandidates.add(t),this.elevationTiles.push(r))}}remapTiles(e){this._candidateTiles=v(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){let r=this._candidateTiles;this._candidateTiles=[],r.forEach(r=>{if(this._fetchedCandidates.has(r))return void t?.(r);let i=!1;e(r,()=>i=!0),i?t?.(r):this._candidateTiles.push(r)}),this._candidateTiles=v(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;let t=this.extent;if(null==t)return;let{tileInfo:r,tilemapCache:i}=this.layer,n=y(r,i)[e],s=r.tileAt(n.level,t.xmin,t.ymin),o=s.extent,a=n.resolution*r.size[0],l=n.resolution*r.size[1],u=Math.ceil((t.xmax-o[0])/a),h=Math.ceil((t.ymax-o[1])/l);for(let e=0;e<h;e++)for(let t=0;t<u;t++){let i=new d.U(s.level,s.row-e,s.col+t);r.updateTileInfo(i),this._tileIsMasked(i)||this._candidateTiles.push(i)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,h.gR)(t,e.extent))??!1}}function g(e){return null!=e?.tileInfo}function y(e,t){let r=e.lods;if(g(t)){let{effectiveMinLOD:e,effectiveMaxLOD:i}=t;return r.filter(t=>t.level>=e&&t.level<=i)}return r}function v(e,t){let r={},i=[];for(let n of e){let e=n.id;e&&!r[e]?(r[e]=n,i.push(n)):t?.(n)}let n=i.sort((e,t)=>e.level-t.level);return n.filter((e,r)=>{for(let i=0;i<r;i++){let r=n[i].extent;if(r&&(0,h.gR)(r,e.extent))return t?.(e),!1}return!0})}class _{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class w{constructor(e,t=null){if(this.key=e,null!=t){let r=e.extent;this._samplerData=new _(t,r)}}get zmin(){return null==this._samplerData?0:this._samplerData.data.minValue}get zmax(){return null==this._samplerData?0:this._samplerData.data.maxValue}get hasNoDataValues(){return!!this._samplerData?.data.hasNoDataValues}sample(e,t){if(null==this._samplerData)return;let{safeWidth:r,data:i,dx:n,dy:s,y1:o,x0:a}=this._samplerData,{width:l,values:u,noDataValue:h}=i,c=x(s*(o-t),0,r),d=x(n*(e-a),0,r),p=Math.floor(c),f=Math.floor(d),m=p*l+f,g=m+l,y=u[m],v=u[g],_=u[m+1],w=u[g+1];if(y!==h&&v!==h&&_!==h&&w!==h){let e=d-f,t=y+(_-y)*e;return t+(v+(w-v)*e-t)*(c-p)}}}function x(e,t,r){return e<t?t:e>r?r:e}var C=r(87378),b=r(10292),M=r(57984);async function T(e,t,r){if(!e)throw new n.A(D,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof b.q)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new n.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");let i={...I,...r},a=i.signal;if("integrated-mesh-3dtiles"===e.type){let n=b.q.fromGeometry(t);if(e.queryElevationCallback&&((0,s.A)("enable-feature:im-as-ground")?e.isUsedAsGroundLayer:e.replacesTerrain)){let s=12.9*(r?.minDemResolution||0)+.71,o=await(await e.queryElevationCallback(n,{signal:a,maxGeometricError:s})).project(t.spatialReference,a);if(o){if(void 0!==i.noDataValue&&i.noDataValue!==Number.MAX_VALUE)for(let e of o.coordinates)e.z===Number.MAX_VALUE&&(e.z=i.noDataValue);let t=i.noDataValue??Number.MAX_VALUE,r=o.coordinates.map(r=>({demResolution:r.z===t?-1:1,source:e}));return{geometry:o.export(),noDataValue:t,sampleInfo:r}}}let o=n.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:n.export(),noDataValue:Number.MAX_VALUE,sampleInfo:o}}if("integrated-mesh"===e.type){let r=b.q.fromGeometry(t),i=r.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:i}}let h=new f(e,t.spatialReference,i);return await e.load({signal:a}),await async function(e,t,r){let i,s=e.layer.tileInfo.spatialReference;if(t instanceof b.q?i=await t.project(s,r):(await(0,u.initializeProjection)([{source:t.spatialReference,dest:s}],{signal:r}),i=(0,u.project)(t,s)),!i)throw new n.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${s.wkid}'`);e.geometry=b.q.fromGeometry(i)}(h,t,a),await Z(h,a),await N(h,a),function(e){e.geometry.coordinates.forEach(t=>{let r=t.elevationTile,i=e.parameters.noDataValue;if(r){let e=r.sample(t.x,t.y);null==e?t.elevationTile=null:i=e}t.z=i})}(h),async function(e,t){let r=await e.geometry.project(e.outSpatialReference,t);(0,o.Lw)(r);let i={geometry:r.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(i.sampleInfo=function(e){let t=e.layer.tileInfo,r=(0,l.GA)(t.spatialReference);return e.geometry.coordinates.map(i=>{let n=-1;return i.elevationTile&&i.elevationTile!==e.outsideExtentTile&&(n=t.lodAt(i.elevationTile.key.level).resolution*r),{demResolution:n,source:-1===n?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),i}(h,a)}async function A(e,t,r){if(e=Array.isArray(e)?e:[e],0===(e=r?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new n.A(D,"Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new n.A("elevation-query:invalid-extent","Invalid or undefined extent");let i={...I,...r,returnSampleInfo:!0},s=R(e[e.length-1],t,i);return 1===e.length?s:S(e,t,await s,i)}async function R(e,t,r,i){let n=r.signal;await e.load({signal:n});let s=t.spatialReference,o=e.tileInfo.spatialReference;s.equals(o)||(await(0,u.initializeProjection)([{source:s,dest:o}],{signal:n}),t=(0,u.project)(t,o));let a=new m(e,t,r,i);await Z(a,n),await N(a,n);let l=a.elevationTiles,h=a.layer.tileInfo,c=a.parameters.noDataValue;return new M.C({noDataValue:c,tiles:l,tileInfo:h})}async function S(e,t,r,i){if(e.pop(),!e.length)return r;let n=r.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,h.VY)(e.extent)),s=await R(e[e.length-1],t,i,n);if(0===s.samplers.length)return r;let o=r.samplers.concat(s.samplers),a=i.noDataValue;return S(e,t,new M.C({samplers:o,noDataValue:a}),i)}async function Z(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;let t=new w(new d.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;let r=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{let i=e.x,n=e.y;(i<r.xmin||i>r.xmax||n<r.ymin||n>r.ymax)&&(e.elevationTile=t)})}(e);let r=e.parameters.demResolution;if("number"==typeof r)!function(e,t){let r=function(e,t){let{tileInfo:r,tilemapCache:i}=e.layer,n=t/(0,l.GA)(r.spatialReference),s=y(r,i),o=s[0],a=0;for(let e=1;e<s.length;e++){let t=s[e];Math.abs(t.resolution-n)<Math.abs(o.resolution-n)&&(o=t,a=e)}return a}(e,t);e.selectTilesAtLOD(r)}(e,r);else if("finest-contiguous"===r)await async function(e,t){let{tileInfo:r,tilemapCache:i}=e.layer;await P(e,O(r,i,e.parameters.minDemResolution),t)}(e,t);else{if("auto"!==r)throw new n.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${r}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){let{tileInfo:t,tilemapCache:r}=e.layer,i=O(t,r,e.parameters.minDemResolution);e.selectTilesAtLOD(i,e.parameters.maximumAutoTileRequests)})(e),function(e){let t=e.layer.tileInfo,r=0,i={},n=e=>{null!=e.id&&(e.id in i?i[e.id]++:(i[e.id]=1,r++))},s=e=>{if(null==e.id)return;let t=i[e.id];1===t?(delete i[e.id],r--):i[e.id]=t-1};e.forEachTileToFetch(n,s);let o=!0;for(;o&&(o=!1,e.forEachTileToFetch(i=>{r<=e.parameters.maximumAutoTileRequests||(s(i),t.upsampleTile(i)&&(o=!0),n(i))},s),o););}(e);let r=e.layer.tilemapCache;if(!r||g(r))return E(e,t);let n=e.getTilesToFetch(),s={},o=n.map(async e=>{let n=new d.U(0,0,0),o=await(0,i.Ke)(r.fetchAvailabilityUpsample(e.level,e.row,e.col,n,{signal:t}));!1!==o.ok?null!=e.id&&(s[e.id]=n):(0,a.QP)(o.error)});await(0,a.qr)(Promise.all(o),t),e.remapTiles(s)}(e,t)}}async function P(e,t,r){let i=e.layer;if(e.selectTilesAtLOD(t),t<0)return;let s=i.tilemapCache,o=e.getTilesToFetch();try{if(s&&!g(s))await(0,a.qr)(Promise.all(o.map(e=>s.fetchAvailability(e.level,e.row,e.col,{signal:r}))),r);else if(await N(e,r),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new n.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(i){(0,a.QP)(i),await P(e,t-1,r)}}async function E(e,t){let r=e.layer.tileInfo;await N(e,t);let i=!1;e.forEachTileToFetch((e,t)=>{r.upsampleTile(e)?i=!0:t()}),i&&await E(e,t)}function O(e,t,r=0){let i=y(e,t),n=i.length-1;if(r>0){let t=r/(0,l.GA)(e.spatialReference),s=i.findIndex(e=>e.resolution<t);0===s?n=0:s>0&&(n=s-1)}return n}const I={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function N(e,t){let r=e.getTilesToFetch(),i={},n=e.parameters.cache,s=e.parameters.noDataValue,o={noDataValue:s,signal:t},l=r.map(async t=>{if(null==t.id)return;let r=`${e.layer.uid}:${t.id}:${s}`,a=n?.get(r)??C.A.from(await e.layer.fetchTile(t.level,t.row,t.col,o));n?.put(r,a),i[t.id]=new w(t,a)});await(0,a.qr)(Promise.allSettled(l),t),e.populateElevationTiles(i)}const D="elevation-query:invalid-layer"},7236(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(65529),s=r(53966),o=r(91429),a=r(86738),l=r(28735);let u=class extends n.nJ{queryElevation(e){let t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;switch(e.type){case"point":return function(e,t,r){return e.hasZ=!0,e.z=r.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,r){h.spatialReference=t.spatialReference;let i=e.hasM&&!e.hasZ;for(let n=0;n<e.paths.length;n++){let s=e.paths[n],o=t.paths[n];for(let e=0;e<s.length;e++){let t=s[e],n=o[e];h.x=n[0],h.y=n[1],i&&(t[3]=t[2]),t[2]=r.elevationAt(h.x,h.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,r){h.spatialReference=t.spatialReference;let i=e.hasM&&!e.hasZ;for(let n=0;n<e.points.length;n++){let s=e.points[n],o=t.points[n];h.x=o[0],h.y=o[1],i&&(s[3]=s[2]),s[2]=r.elevationAt(h.x,h.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;let r=e.spatialReference;if(r.equals(t))return e;let i=(0,l.Cv)(e,t);return i||s.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${r.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),i}};u=(0,i.Cg)([(0,o.$K)("esri.layers.support.ElevationSampler")],u);const h=new a.A},20437(e,t,r){r.d(t,{A:()=>f});var i,n=r(32198),s=r(66552),o=r(25482),a=r(91429),l=r(78888),u=r(8631),h=r(98453),c=r(36005),d=r(93223);const p=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",marginOfError:"margin-of-error",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let f=class extends o.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?p.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,n.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"description",void 0),(0,n.Cg)([(0,c.w)("description")],f.prototype,"readDescription",null),(0,n.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],f.prototype,"domain",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,n.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,n.Cg)([(0,d.e)(h.m)],f.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"valueType",void 0),(0,n.Cg)([(0,c.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.Field")],f)},95466(e,t,r){r.d(t,{A:()=>u});var i=r(49186),n=r(53966),s=r(12195),o=r(30524),a=r(98623),l=r(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let r=[];for(let e of this.fields){let t=e?.name,i=(0,o.GZ)(t);if(t&&i){let n=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)!(0,o.te)(e)&&!(0,o.Xz)(e)&&!e.nullable&&void 0===(0,o.lD)(e)&&this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){let t=new Map;if(!e.fields)return t;let r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,d=n?function(e){return"timeZone"in e}(n)?n.timeZone??c:n.dateFieldsTimeReference?(0,l.ZS)(n.dateFieldsTimeReference):c??"UTC":null,p=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.timeReference?(0,l.ZS)(i.timeReference):c:null,f=new Map([[(0,o.NF)(n?.creationDateField??""),d],[(0,o.NF)(n?.editDateField??""),d],[(0,o.NF)(s),p],[(0,o.NF)(u),p]]);for(let{name:i,type:n}of e.fields)if(h.has(n))t.set(i,a.L);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,a.L);else{let e=f.get((0,o.NF)(i??""))??c;t.set(i,e)}return t}},10292(e,t,r){r.d(t,{q:()=>a});var i=r(48526),n=r(86738),s=r(82799),o=r(99917);class a{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){let t=new a(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,o.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});let r=new i.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,o.project)(r,e);if(!n)return null;let s=this.coordinates.map((e,t)=>{let r=e.clone(),i=n.points[t];return r.x=i[0],r.y=i[1],r}),a=this.clone(s);return a.spatialReference=e,a}projectSync(e){if(this.spatialReference.equals(e))return this.clone();let t=new i.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),r=(0,o.project)(t,e);if(!r)return null;let n=this.coordinates.map((e,t)=>{let i=e.clone(),n=r.points[t];return i.x=n[0],i.y=n[1],i}),s=this.clone(n);return s.spatialReference=e,s}static fromGeometry(e){let t=new a(e);if(e instanceof a)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,r)=>{let i=e.clone(t);return i.spatialReference=r,i},t;switch(e.type){case"point":{let r=e,{hasZ:i,hasM:s}=r;return t.coordinates=i&&s?[new l(r.x,r.y,r.z,r.m)]:i?[new l(r.x,r.y,r.z)]:s?[new l(r.x,r.y,null,r.m)]:[new l(r.x,r.y)],t._exporter=(t,r)=>e.hasM?new n.A(t[0].x,t[0].y,t[0].z,t[0].m,r):new n.A(t[0].x,t[0].y,t[0].z,r),t}case"multipoint":{let r=e,{hasZ:n,hasM:s}=r;return t.coordinates=n&&s?r.points.map(e=>new l(e[0],e[1],e[2],e[3])):n?r.points.map(e=>new l(e[0],e[1],e[2])):s?r.points.map(e=>new l(e[0],e[1],null,e[2])):r.points.map(e=>new l(e[0],e[1])),t._exporter=(t,r)=>e.hasM?new i.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:r}):new i.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:r}),t}case"polyline":{let r=e,i=[],n=[],{hasZ:o,hasM:a}=e,u=0;for(let e of r.paths)if(n.push([u,u+e.length]),u+=e.length,o&&a)for(let t of e)i.push(new l(t[0],t[1],t[2],t[3]));else if(o)for(let t of e)i.push(new l(t[0],t[1],t[2]));else if(a)for(let t of e)i.push(new l(t[0],t[1],null,t[2]));else for(let t of e)i.push(new l(t[0],t[1]));return t.coordinates=i,t._exporter=(t,r)=>{let i=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=n.map(e=>i.slice(e[0],e[1]));return new s.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:r})},t}}}}class l{constructor(e,t,r=null,i=null,n=null,s=null){this.x=e,this.y=t,this.z=r,this.m=i,this.tile=n,this.elevationTile=s}clone(){return new l(this.x,this.y,this.z,this.m)}}},41628(e,t,r){r.d(t,{A:()=>l});var i,n=r(32198),s=r(91429),o=r(76357),a=r(93223);let l=class extends o.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,n.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,n.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},57984(e,t,r){r.d(t,{C:()=>h});var i=r(32198),n=r(53966),s=r(86211),o=r(91429),a=r(16930),l=r(19419),u=r(7236);let h=class extends u.A{get spatialReference(){return this.extent.spatialReference}constructor(e){let t=e.noDataValue,r="tiles"in e?e.tiles.map(r=>new c({tile:r,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:r});let i=r[0];if(i){this.extent=i.extent.clone();let{min:e,max:t}=i.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<r.length;e++){let t=r[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else{let t="tileInfo"in e?e.tileInfo:null;this.extent=(0,l.w1)((0,l.vt)(),t?.spatialReference??a.A.WGS84),this.demResolution={min:0,max:0}}}elevationAt(e,t){let r;for(let i of this.samplers)if(i.containsAt(e,t)&&(r=i.elevationAt(e,t),r!==i.noDataValue))return r;return r??(n.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],h.prototype,"noDataValue",void 0),(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],h.prototype,"samplers",void 0),h=(0,i.Cg)([(0,o.$K)("esri.layers.support.TileElevationSampler")],h);let c=class extends u.A{get spatialReference(){return this.extent.spatialReference}constructor(e){super(e);let t=e.tile.key.extent;this.extent=(0,l.w1)(t,e.tileInfo.spatialReference),this.extent.zmin=e.tile.zmin,this.extent.zmax=e.tile.zmax;let r=(0,s.GA)(e.tileInfo.spatialReference),i=e.tileInfo.lodAt(e.tile.key.level).resolution*r;this.demResolution={min:i,max:i}}contains(e){let t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,l.Rj)(this.tile.key.extent,e,t)}elevationAt(e,t){return this.containsAt(e,t)?this.tile.sample(e,t)??this.noDataValue:this.noDataValue}};(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],c.prototype,"tile",void 0),(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],c.prototype,"noDataValue",void 0),(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],c.prototype,"tileInfo",void 0),c=(0,i.Cg)([(0,o.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],c)},8631(e,t,r){r.d(t,{r:()=>d,g:()=>c});var i,n=r(53177),s=r(76357),o=r(32198),a=r(91429),l=r(93223);let u=class extends s.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=i=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var h=r(41628);const c={key:"type",base:s.A,typeMap:{range:h.A,"coded-value":n.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return h.A.fromJSON(e);case"codedValue":return n.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,r){const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});r.d(t,["m",0,i])},77548(e,t,r){r.d(t,{Gh:()=>E,tk:()=>A,BR:()=>T,p2:()=>b,qd:()=>R,wI:()=>M,G$:()=>Z,$x:()=>S,Ov:()=>_,cM:()=>d,UC:()=>p,Qz:()=>f,OP:()=>P,TU:()=>v,F2:()=>m,XX:()=>y,Qi:()=>w,jy:()=>x});var i=r(70333),n=r(56507),s=r(7762),o=(r(84952),r(36563)),a=r(36708),l=r(4146);const u=new WeakMap;function h(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,a.wB)(()=>{let{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||h(t))},t=>u.set(e,t),a.pc),(0,o.hA)(()=>u.delete(e))]),u.get(e))}function c(e,t){return"object"==typeof e&&!!e&&"type"in e&&e.type===t}function d(e){return c(e,"knowledge-graph")&&"layers"in e}function p(e){return c(e,"knowledge-graph-sublayer")}function f(e){return c(e,"link-chart")&&"layers"in e}function m(e){return c(e,"subtype-group")&&"sublayers"in e}function g(e){let t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const y={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){let t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function _(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return"object"==typeof e&&!!e&&"featureReduction"in e}function x(e){return function(e){return c(e,"catalog-footprint")}(e)||function(e){return c(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return c(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){let t=e?.type;return"binning"===t||"cluster"===t}function b(e,t){if(!x(e))return;let r=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){let e=r.origin;return e&&"featureReductionProvider"in e&&i?C(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?C(i)?i:null:e}async function M(e,t){let r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;let s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;let o=`${e.slice(0,s)}/rest/info`,a=null==t?null:t.signal,{data:l}=await(0,n.A)(o,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function T(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function A(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function R(e){let t=new s.A;for(let r of e.allLayers.concat(e.allTables))h(r)||g(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function S(e,t){return null}function Z(e){return null}function P(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!P(e))return;let r=(e.url,null);r&&(e.url=r)}},38969(e,t,r){r.d(t,{i:()=>n});var i=r(37955);function n(e,t){return new Promise((r,n)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?r():(t((0,i.Oo)(e,"canplay",r)),t((0,i.Oo)(e,"error",n)))})}},73133(e,t,r){const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});r.d(t,["j",0,i])},7861(e,t,r){r.d(t,{L:()=>n});var i=r(56507);async function n(e,t){return(await(0,i.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},16215(e,t,r){r.d(t,{S:()=>n});const i=Symbol("BasemapInstance");function n(e){return"object"==typeof e&&!!e&&i in e}r.d(t,["Y",0,i])},79677(e,t,r){r.d(t,{A:()=>c});var i,n=r(32198),s=r(25482),o=r(88930),a=r(91429),l=(r(98623),r(10184)),u=r(36005),h=r(43937);let c=class extends s.o{static{i=this}static get allTime(){return d}static get empty(){return p}static fromArray(e){return new i({start:null==e[0]?e[0]:new Date(e[0]),end:null==e[1]?e[1]:new Date(e[1])})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null==t.end?null:new Date(t.end)}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null==t.start?null:new Date(t.start)}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;let t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&=(0,o.lL)(r,new l.A({value:1,unit:e}),t);let n=this.end;if(n){let r=(0,o.lL)(n,new l.A({value:1,unit:e}),t);n=n.getTime()===r.getTime()?r:(0,o.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();let t,r,n=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,o=e.start?.getTime()??-1/0,a=e.end?.getTime()??1/0;return o>=n&&o<=s?t=o:n>=o&&n<=a&&(t=n),s>=o&&s<=a?r=s:a>=n&&a<=s&&(r=a),null==t||null==r||isNaN(t)||isNaN(r)?i.empty:new i({start:t===-1/0?null:new Date(t),end:r===1/0?null:new Date(r)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();let n=new i,{start:s,end:a}=this;return null!=s&&(n.start=(0,o.S1)(s,e,t,r)),null!=a&&(n.end=(0,o.S1)(a,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();let t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n.Cg)([(0,u.w)("end")],c.prototype,"readEnd",null),(0,n.Cg)([(0,h.K)("end")],c.prototype,"writeEnd",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n.Cg)([(0,u.w)("start")],c.prototype,"readStart",null),(0,n.Cg)([(0,h.K)("start")],c.prototype,"writeStart",null),c=i=(0,n.Cg)([(0,a.$K)("esri.time.TimeExtent")],c);const d=new c,p=new c({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>h});var i=r(32198),n=r(69540),s=r(25482),o=r(88930),a=r(91429),l=r(73133),u=r(93223);let h=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,u.e)(l.j,{nonNullable:!0})],h.prototype,"unit",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],h.prototype,"value",void 0),h=(0,i.Cg)([(0,a.$K)("esri.time.TimeInterval")],h)},32728(e,t,r){r.d(t,{YH:()=>o,nu:()=>a,wp:()=>s}),r(34727);var i=r(35522),n=r(51850);function s(e,t){let r=Math.sqrt(t[0]*t[0]+t[4]*t[4]+t[8]*t[8]),n=Math.sqrt(t[1]*t[1]+t[5]*t[5]+t[9]*t[9]),s=Math.sqrt(t[2]*t[2]+t[6]*t[6]+t[10]*t[10]);return(0,i.hZ)(e,r,n,s),e}function o(e,t,r){r||=e;let n=(0,i.Om)(e,t);(0,i.hZ)(r,e[0]-n*t[0],e[1]-n*t[1],e[2]-n*t[2]),(0,i.S8)(r,r)}function a(e,t,r,s=(0,n.vt)()){let o=(0,i.Bw)(e),a=(0,i.Bw)(t),h=(0,i.Om)(e,t)/(o*a);if(h<.9999999999999999){let n=Math.acos(h),c=((1-r)*o+r*a)/Math.sin(n),d=c/o*Math.sin((1-r)*n),p=c/a*Math.sin(r*n);return(0,i.hs)(l,e,d),(0,i.hs)(u,t,p),(0,i.WQ)(s,l,u)}return(0,i.Cc)(s,e,t,r)}(0,n.vt)(),(0,n.vt)(),(0,n.vt)();const l=(0,n.vt)(),u=(0,n.vt)()},44012(e,t,r){r.r(t),r.d(t,{generateCombinationsPanoramicWorker:()=>T,generateCombinationsWorker:()=>M});var i=r(34727),n=r(17676);r(17799),r(69052),r(799),r(86211),r(18047),new Map,r(77690),r(29242),r(51850),r(37585),r(35522);var s=r(49186),o=(r(78888),r(86738),r(39829),r(82799),r(16930));r(34403),r(21325),r(99917),r(78125),r(85036),r(89506),r(77085),r(40427),r(965),(0,r(81150).f)(),r(4576),r(87811);var a=r(53966),l=(r(44208),r(27921),r(5443));r(83276),r(19419),r(38732),r(87772),r(23281),r(1359),r(87378),r(22796),r(57984),r(87045),r(72802),r(7861);const u=[1920,1080],h={xmin:-150,ymin:1,xmax:20,ymax:80,spatialReference:{wkid:4326}},c=(o.A.fromJSON(h.spatialReference),.001);new l.A({xmin:h.xmin+c,ymin:h.ymin+c,xmax:h.xmax-c,ymax:h.ymax-c,spatialReference:h.spatialReference}),(0,i.KJ)(Math.acos(.05));var d=r(32198),p=r(97768),f=r(61893),m=r(10107),g=r(64108);let y=class extends f.Z{constructor(e){super(e),this.autoLoad=!1,this.customParameters=null,this.datasetFormat=null,this.url=null,this.rotation=null}destroy(){this._cache=(0,p.pR)(this._cache)}get layer(){return this._cache}get size(){if(!this._cache?.loaded||!this._cache.serviceRasterInfo)return;let{serviceRasterInfo:e}=this._cache;return[e.width,e.height]}async load(e){if(this._cache?.loaded)return await this._cache.load(e),{layer:this._cache,size:this.size};let{url:t,customParameters:i}=this,s=this.datasetFormat;if(!t)throw Error("URL is required to load NonPanoramicMedia.");let o=await r.e(7835).then(()=>r(97835));if((0,n.Te)(e),s||=o.guessExtensionFromURI(t),!s){try{s=await o.getDatasetFormat(t)}catch(e){a.A.getLogger(this).warn("non-panoramic-media:dataset-format",e)}(0,n.Te)(e)}s??="UNKNOWN FORMAT",this.datasetFormat=s;let l=(await Promise.all([r.e(2754),r.e(9235),r.e(3500),r.e(1003),r.e(2806),r.e(124)]).then(()=>r(90124))).default;(0,n.Te)(e),this._cache=new l({url:t,ioConfig:{skipExtensions:["aux.xml","jgw"],skipMapInfo:!0,datasetFormat:s},customParameters:i??void 0});let u=this._cache.load(e);return this.addResolvingPromise(u),await u,(0,n.Te)(e),{layer:this._cache,size:this.size}}};(0,d.Cg)([(0,m.MZ)()],y.prototype,"_cache",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"autoLoad",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"customParameters",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"datasetFormat",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"url",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"layer",null),(0,d.Cg)([(0,m.MZ)()],y.prototype,"rotation",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"size",null),y=(0,d.Cg)([(0,g.$)("esri.widgets.OrientedImageryViewer.support.NonPanoramicMedia")],y);var v=r(37955),_=r(38969);class w extends s.A{constructor(e,t,r){super(e,t,r),this.name="unknown",this.name=e}}const x=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),C=new Set(["MRF","TIFF","TIF"]);let b=class extends f.Z{constructor(e){super(e),this._size=[0,0],this._cache=null,this.autoLoad=!1,this.cameraHeading=null,this.extension=null,this.imagePyramid=null,this.type="image",this.uiStrings={}}destroy(){this._cache=null}get horizonPitch(){let{matrix:e}=this;return e?(0,i.KJ)(Math.asin(-e[6])):0}get horizonRoll(){let{matrix:e}=this;return e?(0,i.KJ)(Math.atan(e[7]/e[8])):0}get horizonYaw(){let{matrix:e,cameraHeading:t}=this;return e?(0,i.KJ)(Math.atan2(e[3],e[0])):t?-t:0}get size(){return this._size}async load(e){let{guessExtensionFromURI:t}=await r.e(7835).then(()=>r(97835));if((0,n.Te)(e),"video"===this.type)return this.loadVideoMesh(e);let i=this.extension;if(i||=t(this.url),!i||!x.has(i))throw new w("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:i??"UNKNOWN FORMAT"});return C.has(i)?this.loadOptimizedImageMesh(e):this.loadImageMesh(e)}async loadOptimizedImageMesh(e){let{loadMeshes:t,loadPyramid:i,loadRaster:s}=await Promise.all([r.e(2258),r.e(118),r.e(3494)]).then(()=>r(21060)),o=await s(this.url,e);(0,n.Te)(e),this.imagePyramid=await i(o,{pitch:this.horizonPitch,yaw:this.horizonYaw,roll:this.horizonRoll},e),(0,n.Te)(e);let a=this.imagePyramid.getLowResolutionTiles(),l=await t(a,e);return(0,n.Te)(e),this._size=this.imagePyramid.imageSize,{meshOrMeshes:l,size:this._size,tileKeys:a?.map(e=>e.key)}}async loadVideoMesh(e){let{createImageSphere:t}=await Promise.all([r.e(2258),r.e(118),r.e(3494)]).then(()=>r(21060));if((0,n.Te)(e),this._cache){let r=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{meshOrMeshes:r,size:this._size}}let i=await this._resolveMedia(e);(0,n.Te)(e),this._cache=i.media,this._size=[...u];let s=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{meshOrMeshes:s,size:this._size}}async loadImageMesh(e){let{createImageSphere:t}=await Promise.all([r.e(2258),r.e(118),r.e(3494)]).then(()=>r(21060));if((0,n.Te)(e),this._cache){let r=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{meshOrMeshes:r,size:this._size}}let i=await this._resolveMedia(e);(0,n.Te)(e),this._cache=i.media;let s=i.mesh;return this._size=[i.media.width,i.media.height],{meshOrMeshes:s,size:this._size}}async _resolveMedia(e){let t=Promise.withResolvers(),i=(0,n.u7)(e?.signal,t.resolve),s="video"===this.type?document.createElement("video"):document.createElement("img");s.crossOrigin="anonymous",s.src=this.url;let o=null,a="video"===this.type?(0,_.i)(s,this.addHandles):await new Promise((e,t)=>{o=[(0,v.on)(s,"error",e=>{t(e)}),(0,v.on)(s,"load",e)]}).finally(()=>{o?.forEach(e=>e.remove()),o=null}),l=Promise.race([a,t.promise]);this.addResolvingPromise(l);try{await l}finally{i?.remove()}(0,n.Te)(e);let u=s;if(!u)throw new w("unknown","Could not load media",{url:this.url});let{createImageSphere:h}=await Promise.all([r.e(2258),r.e(118),r.e(3494)]).then(()=>r(21060));(0,n.Te)(e);let c=await h({data:s,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{media:u,mesh:c}}};function M(e){return function(e,t){let{cameraPitch:r,cameraRoll:i,cameraLocation:n}=e,{x:s,y:o,z:a,spatialReference:l}=n;if(t.every(e=>0===e)||!t||!t.length||!l)throw Error("Invalid parameters");let[u,h,,c,d]=t,p=[-c,0,c],f=[-d,0,d],m=[-u,0,u],g=[-h,0,h],y=[];for(let t of p)for(let n of f)for(let u of m)for(let h of m)for(let c of g){let d={...e};d.cameraPitch=r+t,d.cameraRoll=i+n,d.cameraLocation={x:s+u,y:o+h,z:a?a+c:0,spatialReference:{wkid:l.wkid}},y.push(d)}return y}(e.imageToWorldProps,e.accuracyParameters)}function T(e){return function(e,t){let{cameraHeading:r,cameraLocation:i}=e,{x:n,y:s,z:o,spatialReference:a}=i;if(!t||t.every(e=>0===e)||!t.length||!a)throw Error("Invalid parameters");let[l,u,h]=t,c=h>0?[-h,0,h]:[],d=l>0?[-l,0,l]:[],p=u>0?[-u,0,u]:[],f=[];for(let t of c)for(let i of d)for(let l of d)for(let u of p){let h={...e};h.cameraHeading=r+t,h.cameraLocation={x:n+i,y:s+l,z:o?o+u:0,spatialReference:{wkid:a.wkid}},f.push(h)}return f}(e.imageToWorldProps,e.accuracyParameters)}(0,d.Cg)([(0,m.MZ)()],b.prototype,"_size",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"autoLoad",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"cameraHeading",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"extension",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"horizonPitch",null),(0,d.Cg)([(0,m.MZ)()],b.prototype,"horizonRoll",null),(0,d.Cg)([(0,m.MZ)()],b.prototype,"horizonYaw",null),(0,d.Cg)([(0,m.MZ)()],b.prototype,"id",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"imagePyramid",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"matrix",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"size",null),(0,d.Cg)([(0,m.MZ)()],b.prototype,"type",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"uiStrings",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"url",void 0),b=(0,d.Cg)([(0,g.$)("esri.widgets.PanoramicViewer.support.PanoramicMedia")],b),r(9093),r(91829),r(58083),r(79258),r(73354),r(63490),r(28208),r(28735)},28208(e,t,r){var i=r(86738),n=r(16930);const s=new i.A({x:0,y:0,z:0,spatialReference:n.A.WebMercator});r.d(t,["NU",0,.3515625,"ZH",0,s])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2491],{11006(e,t,n){function r(e,t,n,r,o){i(e,t,n||0,r||e.length-1,o||s)}function i(e,t,n,r,s){for(;r>n;){if(r-n>600){var l=r-n+1,a=t-n+1,u=Math.log(l),h=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*h*(l-h)/l)*(a-l/2<0?-1:1);i(e,t,Math.max(n,Math.floor(t-a*h/l+c)),Math.min(r,Math.floor(t+(l-a)*h/l+c)),s)}var d=e[t],p=n,m=r;for(o(e,n,t),s(e[r],d)>0&&o(e,n,r);p<m;){for(o(e,p,m),p++,m--;s(e[p],d)<0;)p++;for(;s(e[m],d)>0;)m--}0===s(e[n],d)?o(e,n,m):o(e,++m,r),m<=t&&(n=m+1),t<=m&&(r=m-1)}}function o(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function s(e,t){return e<t?-1:+(e>t)}n.d(t,{q:()=>r})},40876(e,t,n){n.d(t,{Eq:()=>p,G1:()=>f,Q6:()=>_,TS:()=>o,V6:()=>i,Vm:()=>m,ay:()=>a,c1:()=>g,c4:()=>s,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>v});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!r[e]||!!r[e.toLowerCase()]}function o(e){return r[e]??r[e.toLowerCase()]}function s(e){return[...o(e)]}function l(e,t,n){n<0&&++n,n>1&&--n;let r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function a(e,t,n,r=1){let i=(e%360+360)%360/360,o=n<=.5?n*(t+1):n+t-n*t,s=2*n-o;return[Math.round(255*l(s,o,i+1/3)),Math.round(255*l(s,o,i)),Math.round(255*l(s,o,i-1/3)),r]}function u(e){let t=e.length>5,n=t?8:4,r=(1<<n)-1,i=t?1:17,o=t?9===e.length:5===e.length,s=Number("0x"+e.slice(1));if(isNaN(s))return null;let l,a=[0,0,0,1];return o&&(l=s&r,s>>=n,a[3]=i*l/255),l=s&r,s>>=n,a[2]=i*l,l=s&r,s>>=n,a[1]=i*l,l=s&r,s>>=n,a[0]=i*l,a}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,r+16*r,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?f(e[3]):1,e}function p(e){let t=i(e)?o(e):null;return t??=c(e),t??=h(e),t}function m(e){let t=p(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function f(e){return y(e,0,1)}function g(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const x=1/2.2;function _(e){return e**2.2}function v(e){return e**x}n.d(t,["iw",0,x])},62885(e,t,n){n.d(t,{H:()=>o,V:()=>i});var r=n(7762);function i(e,t,n=r.A){return t||=new n,t===e||t.destroyed||(t.removeAll(),(i=e)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?t.addMany(e):e&&t.add(e)),t;var i}function o(e){return e}},21287(e,t,n){n.d(t,{M5:()=>c,eV:()=>h});var r=n(56507),i=n(49186),o=n(17676),s=n(84952),l=n(26306);let a=null,u=!0;function h(e,t,n,r){if(!t||!n)throw Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,n)}catch{u=!1}let i=function(e,t,n){return n||=(a||(a=document.createElement("canvas"),a.width=1,a.height=1),a),n.getContext("2d").createImageData(e,t)}(t,n,r);return i.data.set(e,0),i}async function c(e,t){let{arrayBuffer:a,mediaType:u}=await async function(e,t){let n=(0,s.r$)(e);if(n?.isBase64)return{arrayBuffer:(0,l.M)(n.data),mediaType:n.mediaType};let i=await(0,r.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:i.data,mediaType:i.getHeader?.("Content-Type")??""}}(e,t),h="image/png"===u;if("image/gif"===u){let{isAnimatedGIF:e,parseGif:r}=await n.e(820).then(()=>n(10820));if(e(a))return r(a,t)}if(h){let{isAnimatedPNG:e,parseApng:r}=await n.e(2390).then(()=>n(22390));if(e(a))return r(a,t)}return async function(e,t){let n=window.URL.createObjectURL(e);try{let{data:e}=await(0,r.A)(n,{...t,responseType:"image"});return e}catch(e){throw(0,o.zf)(e)?e:new i.A("invalid-image",`Could not fetch requested image at ${n}`)}finally{window.URL.revokeObjectURL(n)}}(new Blob([a],{type:u}),t)}},48163(e,t,n){function r(){return[0,0]}function i(e){return[e[0],e[1]]}function o(e,t){return[e,t]}function s(){return o(1,1)}function l(){return o(-1,-1)}function a(){return o(1,0)}function u(){return o(0,1)}n.d(t,{fA:()=>o,o8:()=>i,vt:()=>r});const h=s(),c=l(),d=a(),p=u();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:h,UNIT_X:d,UNIT_Y:p,ZEROS:[0,0],clone:i,create:r,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let n=Math.min(2,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t},fromValues:o,negativeOnes:l,ones:s,unitX:a,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["IA",0,c,"Un",0,h])},35522(e,t,n){n.d(t,{$A:()=>I,Bw:()=>o,C:()=>s,Cc:()=>C,DI:()=>M,Io:()=>x,Ln:()=>y,Om:()=>P,Qr:()=>c,Re:()=>u,S8:()=>b,T9:()=>f,WQ:()=>a,Z0:()=>A,_S:()=>p,aI:()=>E,ei:()=>R,fw:()=>O,gL:()=>S,hG:()=>_,hZ:()=>l,hs:()=>g,jk:()=>m,lw:()=>h,m3:()=>v,oW:()=>Z,t2:()=>T,tn:()=>d,ze:()=>w});var r=n(51850),i=n(34304);function o(e){let t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function h(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function c(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[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 m(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function f(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function g(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function x(e,t){let n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function _(e,t){let n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function v(e){let t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function w(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function M(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function b(e,t=e){let n=t[0],r=t[1],i=t[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function P(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function I(e,t,n){let r=t[0],i=t[1],o=t[2],s=n[0],l=n[1],a=n[2];return e[0]=i*a-o*l,e[1]=o*s-r*a,e[2]=r*l-i*s,e}function C(e,t,n,r){let i=t[0],o=t[1],s=t[2];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e[2]=s+r*(n[2]-s),e}function A(e,t,n){let r=t[0],i=t[1],o=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12],e[1]=n[1]*r+n[5]*i+n[9]*o+n[13],e[2]=n[2]*r+n[6]*i+n[10]*o+n[14],e}function R(e,t,n){let r=t[0],i=t[1],o=t[2];return e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8],e}function S(e,t,n){return O(e,t,n[0],n[1],n[2],n[3])}function O(e,t,n,r,i,o){let s=t[0],l=t[1],a=t[2],u=r*a-i*l,h=i*s-n*a,c=n*l-r*s,d=r*c-i*h,p=i*u-n*c,m=n*h-r*u,f=2*o;return e[0]=s+u*f+2*d,e[1]=l+h*f+2*p,e[2]=a+c*f+2*m,e}const L=(0,r.vt)(),B=(0,r.vt)();function T(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function E(e,t){if(e===t)return!0;let n=e[0],r=e[1],o=e[2],s=t[0],l=t[1],a=t[2],u=(0,i.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-l)<=u*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(o-a)<=u*Math.max(1,Math.abs(o),Math.abs(a))}function Z(e,t,n){let r=n[0]-t[0],i=n[1]-t[1],o=n[2]-t[2],s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=r*s,e[1]=i*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const k=u,j=h,U=c,N=x,X=_,Y=o,H=v;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:a,angle:function(e,t){b(L,e),b(B,t);let n=P(L,B);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,i,o){let s=1-o,l=s*s,a=o*o,u=l*s,h=3*o*l,c=3*a*s,d=a*o;return e[0]=t[0]*u+n[0]*h+r[0]*c+i[0]*d,e[1]=t[1]*u+n[1]*h+r[1]*c+i[1]*d,e[2]=t[2]*u+n[2]*h+r[2]*c+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,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:s,cross:I,crossAndNormalize:function(e,t,n){let r=t[0],i=t[1],o=t[2],s=n[0],l=n[1],a=n[2],u=i*a-o*l,h=o*s-r*a,c=r*l-i*s,d=Math.sqrt(u*u+h*h+c*c);return e[0]=u/d,e[1]=h/d,e[2]=c/d,e},direction:Z,dist:N,distance:x,div:U,divide:c,dot:P,equals:E,exactEquals:T,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,n,r,i,o){let s=o*o,l=s*(2*o-3)+1,a=s*(o-2)+o,u=s*(o-1),h=s*(3-2*o);return e[0]=t[0]*l+n[0]*a+r[0]*u+i[0]*h,e[1]=t[1]*l+n[1]*a+r[1]*u+i[1]*h,e[2]=t[2]*l+n[2]*a+r[2]*u+i[2]*h,e},inverse:M,len:Y,length:o,lerp:C,max:f,min:m,mul:j,multiply:h,negate:w,normalize:b,random:function(e,t=1){let n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=o*t,e},rotateX:function(e,t,n,r){let i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateY:function(e,t,n,r){let i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateZ:function(e,t,n,r){let i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[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:g,scaleAndAdd:y,scaleTo:function(e,t){return g(e,e,t/Y(e))},set:l,sign:p,sqrDist:X,sqrLen:H,squaredDistance:_,squaredLength:v,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:k,subtract:u,transformMat3:R,transformMat4:A,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:S,transformQuatValues:O},Symbol.toStringTag,{value:"Module"})),n.d(t,["Il",0,Y,"jb",0,k,"lo",0,X,"uE",0,H])},75503(e,t,n){n.d(t,{wq:()=>l});var r=n(4576),i=n(21818),o=(n(44208),n(15142)),s=n(11006);class l{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),w.prune(),M.prune(),b.prune(),P.prune()}all(e){a(this._data,e)}search(e,t){let n=this._data,r=this._toBBox;if(_(e,n))for(w.clear();n;){for(let i=0,o=n.children.length;i<o;i++){let o=n.children[i],s=n.leaf?r(o):o;_(e,s)&&(n.leaf?t(o):x(e,s)?a(o,t):w.push(o))}n=w.pop()}}collides(e){let t=this._data,n=this._toBBox;if(!_(e,t))return!1;for(w.clear();t;){for(let r=0,i=t.children.length;r<i;r++){let i=t.children[r],o=t.leaf?n(i):i;if(_(e,o)){if(t.leaf||x(e,o))return!0;w.push(i)}}t=w.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,n=this._data,o=null,s=0,l=!1,a=this._toBBox(e);for(b.clear(),P.clear();n||b.length>0;){if(n||(n=b.pop(),o=b.data[b.length-1],s=P.pop()??0,l=!0),n.leaf&&(t=(0,r.qh)(n.children,(0,i.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),b.push(n),this._condense(b),this;l||n.leaf||!x(n,a)?o?(s++,n=o.children[s],l=!1):n=null:(b.push(n),P.push(s),s=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,r){let i=n-t+1,o=this._maxEntries;if(i<=o){let r=new A(e.slice(t,n+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(o)),o=Math.ceil(i/o**(r-1)));let s=new R([]);s.height=r;let l=Math.ceil(i/o),a=l*Math.ceil(Math.sqrt(o));v(e,t,n,a,this._compareMinX);for(let i=t;i<=n;i+=a){let t=Math.min(i+a-1,n);v(e,i,t,l,this._compareMinY);for(let n=i;n<=t;n+=l){let i=Math.min(n+l-1,t);s.children.push(this._build(e,n,i,r-1))}}return u(s,this._toBBox),s}_insert(e,t,n){let r=this._toBBox,i=n?e:r(e);b.clear();let o=function(e,t,n,r){for(;r.push(t),!0!==t.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let o=0,s=t.children.length;o<s;o++){let s=t.children[o],l=m(s),a=g(e,s)-l;a<i?(i=a,r=l<r?l:r,n=s):a===i&&l<r&&(r=l,n=s)}t=n||t.children[0]}return t}(i,this._data,t,b);for(o.children.push(e),c(o,i);t>=0&&b.data[t].children.length>this._maxEntries;)this._split(b,t),t--;!function(e,t,n){for(let r=n;r>=0;r--)c(t.data[r],e)}(i,b,t)}_split(e,t){let n=e.data[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);let o=this._chooseSplitIndex(n,i,r);if(!o)return;let s=n.children.splice(o,n.children.length-o),l=n.leaf?new A(s):new R(s);l.height=n.height,u(n,this._toBBox),u(l,this._toBBox),t?e.data[t-1].children.push(l):this._splitRoot(n,l)}_splitRoot(e,t){this._data=new R([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let r,i,o;r=i=1/0;for(let s=t;s<=n-t;s++){let t=h(e,0,s,this._toBBox),l=h(e,s,n,this._toBBox),a=y(t,l),u=m(t)+m(l);a<r?(r=a,o=s,i=u<i?u:i):a===r&&u<i&&(i=u,o=s)}return o}_chooseSplitAxis(e,t,n){let r=e.leaf?this._compareMinX:d,i=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)}_allDistMargin(e,t,n,r){e.children.sort(r);let i=this._toBBox,o=h(e,0,t,i),s=h(e,n-t,n,i),l=f(o)+f(s);for(let r=t;r<n-t;r++){let t=e.children[r];c(o,e.leaf?i(t):t),l+=f(o)}for(let r=n-t-1;r>=t;r--){let t=e.children[r];c(s,e.leaf?i(t):t),l+=f(s)}return l}_condense(e){for(let t=e.length-1;t>=0;t--){let n=e.data[t];if(0===n.children.length)if(t>0){let i=e.data[t-1],o=i.children;o.splice((0,r.qh)(o,n,o.length,i.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function a(e,t){let n=e;for(M.clear();n;){if(!0===n.leaf)for(let e of n.children)t((0,i.z)(e));else M.pushArray(n.children);n=M.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,n,r,i){i||=new A([]),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o,s=t;s<n;s++)o=e.children[s],c(i,e.leaf?r(o):o);return i}function c(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function g(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function y(e,t){let n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function x(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function _(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function v(e,t,n,r,i){let o=[t,n];for(;o.length;){let t=o.pop(),n=o.pop();if(t-n<=r)continue;let l=n+Math.ceil((t-n)/r/2)*r;(0,s.q)(e,l,n,t,i),o.push(n,l,l,t)}}const w=new o.A,M=new o.A,b=new o.A,P=new o.A({deallocator:void 0});class I{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class C extends I{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class A extends C{constructor(e){super(),this.children=e,this.leaf=!0}}class R extends C{constructor(e){super(),this.children=e,this.leaf=!1}}},16494(e,t,n){var r=n(76361);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",..."animate.animatetransform.circle.clippath.defs.ellipse.g.image.line.lineargradient.marker.mask.path.pattern.polygon.polyline.radialgradient.rect.stop.svg.switch.symbol.text.textpath.tspan.use".split(".")].reduce((e,t)=>(e[t]=[],e),{}),o="align.alink.alt.bgcolor.border.cellpadding.cellspacing.class.color.cols.colspan.coords.d.dir.face.height.hspace.ismap.lang.marginheight.marginwidth.multiple.nohref.noresize.noshade.nowrap.ref.rel.rev.rows.rowspan.scrolling.shape.span.summary.tabindex.title.usemap.valign.value.vlink.vspace.width".split("."),s=new r.I({whiteList:i,onTagAttr:(e,t,n)=>{let r=`${t}="${n}"`;if(o.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l=new r.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);n.d(t,["Nd",0,l,"W5",0,s])},90629(e,t,n){n.d(t,{Lz:()=>i,PN:()=>o,cr:()=>s,gs:()=>a,r_:()=>u,tc:()=>l}),n(39829);const r=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function i(e){return e?e/72*96:0}function o(e){return e?72*e/96:0}function s(e){if("string"==typeof e){let t=e.match(r);if(t){let n=Number(t[1]),r=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),s="px"===r?o(n):n;return i?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function l(e=0,t=0){return{x:e,y:t}}function a(e=0,t=0){return[e,t]}function u(e=0,t=0,n=0){return[e,t,n]}},13069(e,t,n){n.d(t,{AG:()=>l,lk:()=>i,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)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 o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function l(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},80754(e,t,n){n.d(t,{kS:()=>u,kd:()=>a});var r=n(82799),i=n(16930),o=n(60408),s=n(52006);const l={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,s.Ed)(e))for(let n of function(e){return(0,o.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of n){if((0,s.aO)(e)){let[n,r]=e.c;n[0]+=t,r[0]+=t;continue}if((0,s.FG)(e)){let[n,r]=e.a;n[0]+=t,r[0]+=t;continue}if((0,s.n1)(e)){let[n,r,i]=e.b;n[0]+=t,r[0]+=t,i[0]+=t;continue}e[0]+=t}for(let n of function(e){return(0,o.Bi)(e)?e.rings:e.paths}(e))for(let e of n)e[0]+=t;return e}n.d(t,["j7",0,l])},89056(e,t,n){n.d(t,{b3:()=>c,jZ:()=>h});var r=n(12195),i=n(19419),o=n(537),s=n(95108),l=n(60408),a=n(80754),u=n(21325);function h(e){return d(e,!0)}function c(e){return d(e,!1)}function d(e,t){if(null==e)return null;let n=e.spatialReference,i=(0,u.Vp)(n),s=(0,r.W)(e)?e.toJSON():e;if(!i)return s;let h=(0,u.K8)(n)?102100:4326,c=a.j7[h].maxX,d=a.j7[h].minX;if((0,l.fT)(s))return m(s,c,d);if((0,l.U9)(s))return s.points=s.points.map(e=>m(e,c,d)),s;if((0,l.ZC)(s))return p(s,i);if((0,l.Bi)(s)||(0,l.Rg)(s)){let e=(0,o.Rg)(v,s),n={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},r=(0,a.kd)(n.xmin,d),i=2*c*r,l=0===i?s:(0,a.kS)(s,i);return n.xmin+=i,n.xmax+=i,n.xmax>c?x(l,c,t):n.xmin<d?x(l,d,t):l}return s}function p(e,t){if(!t)return e;let n=function(e,t){let n=[],{ymin:r,ymax:i,xmin:o,xmax:s}=e,l=e.xmax-e.xmin,[a,u]=t.valid,{x:h,frameId:c}=f(e.xmin,t),{x:d,frameId:p}=f(e.xmax,t),m=h===d&&l>0;if(l>2*u){let e={xmin:o<s?h:d,ymin:r,xmax:u,ymax:i},t={xmin:a,ymin:r,xmax:o<s?d:h,ymax:i},l={xmin:0,ymin:r,xmax:u,ymax:i},m={xmin:a,ymin:r,xmax:0,ymax:i},f=[],y=[];g(e,l)&&f.push(c),g(e,m)&&y.push(c),g(t,l)&&f.push(p),g(t,m)&&y.push(p);for(let e=c+1;e<p;e++)f.push(e),y.push(e);n.push(new _(e,[c]),new _(t,[p]),new _(l,f),new _(m,y))}else h>d||m?n.push(new _({xmin:h,ymin:r,xmax:u,ymax:i},[c]),new _({xmin:a,ymin:r,xmax:d,ymax:i},[p])):n.push(new _({xmin:h,ymin:r,xmax:d,ymax:i},[c]));return n}(e,t).map(e=>e.extent);return n.length<2?n[0]||e:n.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:n.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function m(e,t,n){if(Array.isArray(e)){let r=e[0];if(r>t){let n=(0,a.kd)(r,t);e[0]=r+-2*t*n}else if(r<n){let t=(0,a.kd)(r,n);e[0]=r+-2*n*t}}else{let r=e.x;if(r>t){let n=(0,a.kd)(r,t);e.x+=-2*t*n}else if(r<n){let t=(0,a.kd)(r,n);e.x+=-2*n*t}}return e}function f(e,t){let n,[r,i]=t.valid,o=2*i,s=0;return e>i?(n=Math.ceil(Math.abs(e-i)/o),e-=n*o,s=n):e<r&&(n=Math.ceil(Math.abs(e-r)/o),e+=n*o,s=-n),{x:e,frameId:s}}function g(e,t){let{xmin:n,ymin:r,xmax:i,ymax:o}=t;return y(e,n,r)&&y(e,n,o)&&y(e,i,o)&&y(e,i,r)}function y(e,t,n){return t>=e.xmin&&t<=e.xmax&&n>=e.ymin&&n<=e.ymax}function x(e,t,n=!0){let r=!(0,l.Rg)(e);if(r&&(0,s.m3)(e),n)return(new w).cut(e,t);let i=r?e.rings:e.paths,o=r?4:2,a=i.length,u=-2*t;for(let e=0;e<a;e++){let t=i[e];if(t&&t.length>=o){let e=[];for(let[n,...r]of t)e.push([n+u,...r]);i.push(e)}}return r?e.rings=i:e.paths=i,e}class _{constructor(e,t){this.extent=e,this.frameIds=t}}const v=(0,i.vt)();class w{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let n;if(this._xCut=t,e.rings)this._closed=!0,n=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,n=e.paths,this._minPts=2}for(let e of n){if(!e||e.length<this._minPts)continue;let t=!0;for(let n of e)t?(this.moveTo(n),t=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(let e of this._linesIn)e&&e.length>=this._minPts&&n.push(e);let r=-2*this._xCut;for(let e of this._linesOut)if(e&&e.length>=this._minPts){for(let t of e)t[0]+=r;n.push(e)}return this._closed?e.rings=n:e.paths=n,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e,this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){let t=this._side(e[0]);if(t*this._prevSide===-1){let n=this._intersect(this._prevPt,e);this._lineTo(n,0),this._prevSide=0,this._lineTo(e,t)}else this._lineTo(e,t);this._prevSide=t,this._prevPt=e}close(){let e=this._firstPt,t=this._prevPt;(e[0]!==t[0]||e[1]!==t[1])&&this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t){this._closed?(this._lineIn.push(M(e,t<=0?e[0]:this._xCut)),this._lineOut.push(M(e,t>=0?e[0]:this._xCut))):(t<=0&&this._lineIn.push(e.slice()),t>=0&&this._lineOut.push(e.slice()))}_lineTo(e,t){this._closed?(b(this._lineIn,e,t<=0?e[0]:this._xCut),b(this._lineOut,e,t>=0?e[0]:this._xCut)):t<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(e.slice())):t>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(e.slice())):this._prevSide<0?(this._lineIn.push(e.slice()),this._lineOut.push(e.slice())):this._prevSide>0&&(this._lineOut.push(e.slice()),this._lineIn.push(e.slice()))}_checkClosingPt(e){let t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0]=e[t-2].slice(),e.pop())}_side(e){return e<this._xCut?-1:+(e>this._xCut)}_intersect(e,t){let n=(this._xCut-e[0])/(t[0]-e[0]),r=[this._xCut,e[1]+n*(t[1]-e[1])],i=Math.min(e.length,t.length);for(let o=2;o<i;o++)r.push(e[o]+n*(t[o]-e[o]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function M(e,t){let n=e.slice();return n[0]=t,n}function b(e,t,n){let r=e.length;r>1&&e[r-1][0]===n&&e[r-2][0]===n?e[r-1]=M(t,n):e.push(M(t,n))}},90182(e,t,n){n.r(t),n.d(t,{default:()=>nt});var r=n(32198),i=n(7762),o=n(49186),s=n(53966),l=n(25728),a=n(17676),u=n(91429),h=n(16930),c=n(4146),d=n(63074),p=n(34287),m=n(8303),f=n(25036),g=n(69540),y=n(25482),x=n(77690),_=n(29242),v=n(37585),w=n(35522);const M=(0,n(51850).vt)(),b=(0,_.vt)(),P=(0,_.vt)(),I=(0,_.vt)();function C(e,t,n){return(0,w.hZ)(M,t[0],t[1],1),(0,w.ei)(M,M,(0,x.mg)(b,n)),0===M[2]?(0,v.hZ)(e,M[0],M[1]):(0,v.hZ)(e,M[0]/M[2],M[1]/M[2])}function A(e,t,n){return R(P,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),R(I,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,x.lw)(e,(0,x.KC)(P,P),I),0!==e[8]&&(e[0]/=e[8],e[1]/=e[8],e[2]/=e[8],e[3]/=e[8],e[4]/=e[8],e[5]/=e[8],e[6]/=e[8],e[7]/=e[8],e[8]/=e[8]),e}function R(e,t,n,r,i,o,s,l,a){(0,x.hZ)(e,t,r,o,n,i,s,1,1,1),(0,w.hZ)(M,l,a,1),(0,x.KC)(b,e);let[u,h,c]=(0,w.ei)(M,M,(0,x.mg)(b,b));return(0,x.hZ)(b,u,0,0,0,h,0,0,0,c),(0,x.lw)(e,b,e)}var S=n(90629),O=n(48163),L=n(86738),B=n(39829),T=n(99917),E=n(56560);const Z=e=>{let t=e;return class extends t{projectOrWarn(e,t){if(null==e)return e;let{geometry:n,pending:r}=(0,T.projectOrLoad)(e,t);return r?null:r||n?n:(s.A.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:e,sourceSpatialReference:e.spatialReference,targetSpatialReference:t}),null)}}};var k=n(36005),j=n(43937);const U=(0,_.vt)(),N=(0,O.vt)();let X=class extends y.o{};(0,r.Cg)([(0,u.MZ)({type:Number,json:{write:{isRequired:!0}}})],X.prototype,"x",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,json:{write:{isRequired:!0}}})],X.prototype,"y",void 0),X=(0,r.Cg)([(0,u.$K)("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],X);let Y=class extends((0,y.T)(Z(g.Pw))){constructor(e){super(e),this.height=0,this.type="control-points",this.width=0}get controlPoints(){return this._get("controlPoints")??null}set controlPoints(e){this._set("controlPoints",e)}readControlPoints(e,t){let n=h.A.fromJSON(t.spatialReference),r=(0,_.fA)(...t.coefficients,1);return e.map(e=>((0,v.hZ)(N,e.x,e.y),C(N,N,r),{sourcePoint:e,mapPoint:new L.A({x:N[0],y:N[1],spatialReference:n})}))}writeControlPoints(e,t,n,r){if(null==this.transform){let e=new o.A("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.",{layer:r?.layer,georeference:this});return void(r?.messages?r.messages.push(e):s.A.getLogger(this).error(e.name,e.message))}null!=e&&H(e[0])&&(t.controlPoints=e.map(e=>{let t=e.sourcePoint;return{x:t.x,y:t.y}}),t.spatialReference=e[0].mapPoint.spatialReference.toJSON(),t.coefficients=this.transform.slice(0,8))}get coords(){if(null==this.controlPoints)return null;let e=this._updateTransform(U);if(null==e||!H(this.controlPoints[0]))return null;let t=this.controlPoints[0].mapPoint.spatialReference;return function(e,t,n,r){let i=(0,O.fA)(0,n),o=(0,O.fA)(0,0),s=(0,O.fA)(t,0),l=(0,O.fA)(t,n);return C(i,i,e),C(o,o,e),C(s,s,e),C(l,l,e),new B.A({rings:[[i,o,s,l,i]],spatialReference:r})}(e,this.width,this.height,t)}set coords(e){if(null==this.controlPoints||!H(this.controlPoints[0]))return;let t=this.controlPoints[0].mapPoint.spatialReference;if(null==(e=this.projectOrWarn(e,t)))return;let{width:n,height:r}=this,{rings:[[i,o,s,l]]}=e,a=new E.A({sourcePoint:(0,S.tc)(0,r),mapPoint:new L.A({x:i[0],y:i[1],spatialReference:t})}),u=new E.A({sourcePoint:(0,S.tc)(0,0),mapPoint:new L.A({x:o[0],y:o[1],spatialReference:t})}),h=new E.A({sourcePoint:(0,S.tc)(n,0),mapPoint:new L.A({x:s[0],y:s[1],spatialReference:t})}),c=new E.A({sourcePoint:(0,S.tc)(n,r),mapPoint:new L.A({x:l[0],y:l[1],spatialReference:t})});H(a)&&H(u)&&H(h)&&H(c)&&(Q(U,a,u,h,c),this.controlPoints=this.controlPoints.map(({sourcePoint:e})=>((0,v.hZ)(N,e.x,e.y),C(N,N,U),{sourcePoint:e,mapPoint:new L.A({x:N[0],y:N[1],spatialReference:t})})))}get inverseTransform(){return null==this.transform?null:(0,x.B8)((0,_.vt)(),this.transform)}get transform(){return this._updateTransform()}toMap(e){if(null==e||null==this.transform||null==this.controlPoints||!H(this.controlPoints[0]))return null;(0,v.hZ)(N,e.x,e.y);let t=this.controlPoints[0].mapPoint.spatialReference;return C(N,N,this.transform),new L.A({x:N[0],y:N[1],spatialReference:t})}toSource(e){if(null==e||null==this.inverseTransform||null==this.controlPoints||!H(this.controlPoints[0]))return null;let t=this.controlPoints[0].mapPoint.spatialReference;return e=e.normalize(),null==(e=(0,T.projectOrLoad)(e,t).geometry)?null:((0,v.hZ)(N,e.x,e.y),C(N,N,this.inverseTransform),(0,S.tc)(N[0],N[1]))}toSourceNormalized(e){let t=this.toSource(e);return null!=t&&(t.x/=this.width,t.y/=this.height),t}_updateTransform(e){let{controlPoints:t,width:n,height:r}=this;if(!(null!=t&&n>0&&r>0))return null;let[i,o,s,l]=t;if(!H(i))return null;let a=i.mapPoint.spatialReference,u=this._projectControlPoint(o,a),h=this._projectControlPoint(s,a),c=this._projectControlPoint(l,a);if(!(u.valid&&h.valid&&c.valid&&H(u.controlPoint)))return null;e??=(0,_.vt)();let d=null;return d=H(h.controlPoint)&&H(c.controlPoint)?Q(e,i,u.controlPoint,h.controlPoint,c.controlPoint):H(h.controlPoint)?function(e,t,n,r){return J(q,V,t),J($,W,n),J(z,G,r),(0,v.Cc)(F,q,$,.5),(0,v.e$)(F,z,F,Math.PI),(0,v.Cc)(D,V,W,.5),(0,v.e$)(D,G,D,Math.PI),re(e,q,$,z,F,V,W,G,D)}(e,i,u.controlPoint,h.controlPoint):function(e,t,n){return J(q,V,t),J($,W,n),(0,v.e$)(z,$,q,K),(0,v.e$)(F,q,$,K),(0,v.e$)(G,W,V,-K),(0,v.e$)(D,V,W,-K),re(e,q,$,z,F,V,W,G,D)}(e,i,u.controlPoint),d.every(e=>0===e)?null:d}_projectControlPoint(e,t){if(!H(e))return{valid:!0,controlPoint:e};let{sourcePoint:n,mapPoint:r}=e,{geometry:i,pending:o}=(0,T.projectOrLoad)(r,t);return o?{valid:!1,controlPoint:null}:o||i?{valid:!0,controlPoint:new E.A({sourcePoint:n,mapPoint:i})}:(s.A.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:e,sourceSpatialReference:r.spatialReference,targetSpatialReference:t}),{valid:!1,controlPoint:null})}};function H(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(0,r.Cg)([(0,u.MZ)({type:[E.A],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[X],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:h.A,isRequired:!0}}}}})],Y.prototype,"controlPoints",null),(0,r.Cg)([(0,k.w)("controlPoints")],Y.prototype,"readControlPoints",null),(0,r.Cg)([(0,j.K)("controlPoints")],Y.prototype,"writeControlPoints",null),(0,r.Cg)([(0,u.MZ)({clonable:!1})],Y.prototype,"coords",null),(0,r.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],Y.prototype,"height",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Y.prototype,"inverseTransform",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Y.prototype,"transform",null),(0,r.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],Y.prototype,"width",void 0),Y=(0,r.Cg)([(0,u.$K)("esri.layers.support.ControlPointsGeoreference")],Y);const q=(0,O.vt)(),$=(0,O.vt)(),z=(0,O.vt)(),F=(0,O.vt)(),V=(0,O.vt)(),W=(0,O.vt)(),G=(0,O.vt)(),D=(0,O.vt)(),K=Math.PI/2;function J(e,t,n){(0,v.hZ)(e,n.sourcePoint.x,n.sourcePoint.y),(0,v.hZ)(t,n.mapPoint.x,n.mapPoint.y)}function Q(e,t,n,r,i){return J(q,V,t),J($,W,n),J(z,G,r),J(F,D,i),re(e,q,$,z,F,V,W,G,D)}const ee=Array(8).fill(0),te=Array(8).fill(0);function ne(e,t,n,r,i){return e[0]=t[0],e[1]=t[1],e[2]=n[0],e[3]=n[1],e[4]=r[0],e[5]=r[1],e[6]=i[0],e[7]=i[1],e}function re(e,t,n,r,i,o,s,l,a){return A(e,ne(ee,t,n,r,i),ne(te,o,s,l,a))}var ie=n(56507),oe=n(21287),se=n(84952),le=n(13069),ae=n(92474),ue=n(64108);let he=0;const ce=e=>{let t=e,n=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:he++})}};return n=(0,r.Cg)([(0,ue.$)("esri.core.NumericIdentifiable")],n),n};var de=n(35666),pe=n(5443),me=n(21325);const fe=(0,O.vt)();let ge=class extends(Z(g.Pw)){constructor(e){super(e),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:e,topRight:t,bottomLeft:n,bottomRight:r}=this;if(null==e||null==t||null==n||null==r)return null;let i=e.spatialReference;return t=this.projectOrWarn(t,i),n=this.projectOrWarn(n,i),r=this.projectOrWarn(r,i),null==t||null==n||null==r?null:new B.A({rings:[[[n.x,n.y],[e.x,e.y],[t.x,t.y],[r.x,r.y],[n.x,n.y]]],spatialReference:i})}set coords(e){let{topLeft:t}=this;if(null==t)return;let n=t.spatialReference;if(null==(e=this.projectOrWarn(e,n)))return;let{rings:[[r,i,o,s]]}=e;this.bottomLeft=new L.A({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new L.A({x:i[0],y:i[1],spatialReference:n}),this.topRight=new L.A({x:o[0],y:o[1],spatialReference:n}),this.bottomRight=new L.A({x:s[0],y:s[1],spatialReference:n})}toSourceNormalized(e){let{topLeft:t,topRight:n,bottomRight:r,bottomLeft:i}=this;if(null==e||null==t||null==n||null==r||null==i)return null;let o=t.spatialReference;e=e.normalize();let s=(0,T.projectOrLoad)(e,o).geometry;if(null==s)return null;(0,v.hZ)(fe,s.x,s.y);let l=A((0,_.vt)(),[t.x,t.y,i.x,i.y,n.x,n.y,r.x,r.y],[0,0,0,1,1,0,1,1]);return C(fe,fe,l),(0,S.tc)(fe[0],fe[1])}};(0,r.Cg)([(0,u.MZ)({clonable:!1})],ge.prototype,"coords",null),(0,r.Cg)([(0,u.MZ)({type:L.A})],ge.prototype,"bottomLeft",void 0),(0,r.Cg)([(0,u.MZ)({type:L.A})],ge.prototype,"bottomRight",void 0),(0,r.Cg)([(0,u.MZ)({type:L.A})],ge.prototype,"topLeft",void 0),(0,r.Cg)([(0,u.MZ)({type:L.A})],ge.prototype,"topRight",void 0),ge=(0,r.Cg)([(0,u.$K)("esri.layers.support.CornersGeoreference")],ge);const ye=ge;var xe=n(34727),_e=n(34304);let ve=class extends(Z(g.Pw)){constructor(e){super(e),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;let e,{xmin:t,ymin:n,xmax:r,ymax:i,spatialReference:o}=this.extent;if(this.rotation){let{x:o,y:s}=this.extent.center,l=we(o,s,this.rotation);e=[l(t,n),l(t,i),l(r,i),l(r,n)],e.push(e[0])}else e=[[t,n],[t,i],[r,i],[r,n],[t,n]];return new B.A({rings:[e],spatialReference:o})}set coords(e){if(null==e||null==this.extent)return;let t=this.extent.spatialReference;if(e=this.projectOrWarn(e,t),null==e?.extent)return;let{rings:[[n,r,i]],extent:{center:{x:o,y:s}}}=e,l=(0,xe.KJ)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),a=we(o,s,-l),[u,h]=a(n[0],n[1]),[c,d]=a(i[0],i[1]);this.extent=new pe.A({xmin:u,ymin:h,xmax:c,ymax:d,spatialReference:t}),this.rotation=l}toSourceNormalized(e){let{extent:t,rotation:n}=this;if(null==e||null==t)return null;let{xmin:r,ymin:i,xmax:o,ymax:s,center:l,spatialReference:a}=t;e=e.normalize();let u=(0,T.projectOrLoad)(e,a).geometry;if(null==u)return null;let h=u.x,c=u.y;return n&&([h,c]=we(l.x,l.y,-n)(h,c)),(0,S.tc)((0,xe.hs)(h,r,o,0,1),(0,xe.hs)(c,s,i,0,1))}};function we(e,t,n){let r=(0,_e.DF)(n),i=Math.cos(r),o=Math.sin(r);return(n,r)=>[i*(n-e)+o*(r-t)+e,i*(r-t)-o*(n-e)+t]}function Me(e,t){let n=(0,de.aB)(t);return function(e){return"media"===e?.type}(e)&&!!e.portalItem&&null!=n&&n>3}function be(e,t,n){return{enabled:!Me(n?.layer,n?.origin),ignoreOrigin:!0}}(0,r.Cg)([(0,u.MZ)({clonable:!1})],ve.prototype,"coords",null),(0,r.Cg)([(0,u.MZ)({type:pe.A})],ve.prototype,"extent",void 0),(0,r.Cg)([(0,u.MZ)({type:Number})],ve.prototype,"rotation",void 0),ve=(0,r.Cg)([(0,u.$K)("esri.layers.support.ExtentAndRotationGeoreference")],ve);const Pe={json:{name:"url",type:String,write:{overridePolicy:be}}},Ie={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:be}}},Ce={types:{key:"type",base:null,typeMap:{"control-points":Y,corners:ye,"extent-and-rotation":ve}},json:{types:{key:"type",base:null,typeMap:{"control-points":Y}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};var Ae=n(59923);let Re=class extends(ce((0,l.M)(ae.x_))){constructor(e){super(e),this.georeference=null,this.opacity=1}readGeoreference(e){return Y.fromJSON(e)}writeGeoreference(e,t,n,r){let i=r?.resources?.pendingOperations,o=()=>{let i=function(e,t,n){if(!e||"control-points"===e.type)return e;let{coords:r}=e;if(5!==r?.rings[0]?.length)return null;let[i,o,s,l]=r.rings[0],{spatialReference:a}=r;return new Y({controlPoints:[new E.A({mapPoint:new L.A({x:i[0],y:i[1],spatialReference:a}),sourcePoint:(0,S.tc)(0,n)}),new E.A({mapPoint:new L.A({x:o[0],y:o[1],spatialReference:a}),sourcePoint:(0,S.tc)(0,0)}),new E.A({mapPoint:new L.A({x:s[0],y:s[1],spatialReference:a}),sourcePoint:(0,S.tc)(t,0)}),new E.A({mapPoint:new L.A({x:l[0],y:l[1],spatialReference:a}),sourcePoint:(0,S.tc)(t,n)})],width:t,height:n})}(this.georeference,this.contentWidth,this.contentHeight);if(i){if("control-points"!==e.type&&s.A.getLogger(this).warn(`only georeference of type 'control-points' may be persisted. The georeference of type '${e.type}' has been automatically converted.`),4!==i.controlPoints?.length)return void(0,Ae.qt)(r,"ControlPointsGeoreference.controlPoints","only 'control-points' georeference with 4 control points may be persisted.");t[n]=i.write({},r)}};if("control-points"!==e.type&&!this.loaded&&i)return t[n]={},void i.push(this.load().then(o));o()}get contentWidth(){return 0}get contentHeight(){return 0}toSource(e){let{georeference:t,contentWidth:n,contentHeight:r}=this;if(null==e||null==t||0===n||0===r)return null;let i=t.toSourceNormalized(e);return null==i?null:(i.x*=n,i.y*=r,i)}};(0,r.Cg)([(0,u.MZ)(Ce)],Re.prototype,"georeference",void 0),(0,r.Cg)([(0,k.w)("georeference")],Re.prototype,"readGeoreference",null),(0,r.Cg)([(0,j.K)("georeference")],Re.prototype,"writeGeoreference",null),(0,r.Cg)([(0,u.MZ)({json:{read:!1,write:!1}})],Re.prototype,"opacity",void 0),Re=(0,r.Cg)([(0,u.$K)("esri.layers.support.MediaElementBase")],Re);var Se=n(85648);const Oe=Symbol("ImageElementInstance"),Le=Symbol("VideoElementInstance");function Be(e){return"object"==typeof e&&!!e&&Oe in e}function Te(e){return Be(e)||function(e){return"object"==typeof e&&!!e&&Le in e}(e)}var Ee,Ze=n(97159);let ke=class extends Re{static{Ee=Oe}constructor(e){super(e),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this[Ee]=!0,this.image=null}load(){let e=this.image;if("string"==typeof e){let t=(0,oe.M5)(e).then(e=>{this._set("content",e)});this.addResolvingPromise(t)}else if(e instanceof HTMLImageElement){let t=e.decode().then(()=>{this._set("content",e)});this.addResolvingPromise(t)}else e?this._set("content",e):this.addResolvingPromise(Promise.reject(new o.A("image-element:invalid-image-type","Invalid image type",{image:e})));return Promise.resolve(this)}get contentWidth(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalWidth:this.content.width}get contentHeight(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalHeight:this.content.height}readImage(e,t,n){return(0,Ze.f)(t.url,n)}writeImage(e,t,n,r){if(null==e)return;let i=r?.portalItem,o=r?.resources;if(!i||!o)return void("string"==typeof e&&(t[n]=(0,Ze.t)(e,r)));let s=function(e){return"string"==typeof e&&!(0,se.DB)(e)&&!(0,se.w8)(e)}(e)?e:null;if(s){if(null==(0,Ze.i)(s))return void(t[n]=s);let e=(0,Ze.t)(s,{...r,verifyItemRelativeUrls:r?.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1);if(i&&e&&!(0,se.oP)(e))return o.toKeep.push({resource:i.resourceFromPath(e),compress:!1}),void(t[n]=e)}t[n]="<pending>",o.pendingOperations.push(async function(e){return"string"==typeof e?(0,se.DB)(e)?(0,se.N9)(e):(await(0,ie.A)(e,{responseType:"blob"})).data:new Promise(t=>function(e){if(e instanceof HTMLCanvasElement)return e;let t=e instanceof HTMLImageElement?e.naturalWidth:e.width,n=e instanceof HTMLImageElement?e.naturalHeight:e.height,r=document.createElement("canvas"),i=r.getContext("2d");return r.width=t,r.height=n,e instanceof HTMLImageElement?i.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&i.putImageData(e,0,0),r}(e).toBlob(t))}(e).then(e=>{let r=function(e,t){let n=(0,le.lk)(),r=`${(0,se.fj)("media",n)}.${(0,Se.n)({type:"blob",blob:e})}`;return t.resourceFromPath(r)}(e,i);t[n]=r.itemRelativeUrl,o.toAdd.push({resource:r,content:{type:"blob",blob:e},compress:!1,finish:e=>{this.image=e.url}})}))}};(0,r.Cg)([(0,u.MZ)()],ke.prototype,"animationOptions",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],ke.prototype,"content",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],ke.prototype,"contentWidth",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],ke.prototype,"contentHeight",null),(0,r.Cg)([(0,u.MZ)(Pe)],ke.prototype,"image",void 0),(0,r.Cg)([(0,k.w)("image",["url"])],ke.prototype,"readImage",null),(0,r.Cg)([(0,j.K)("image")],ke.prototype,"writeImage",null),(0,r.Cg)([(0,u.MZ)(Ie)],ke.prototype,"type",void 0),ke=(0,r.Cg)([(0,u.$K)("esri.layers.support.ImageElement")],ke);var je=n(62885),Ue=n(65529),Ne=n(61893),Xe=n(36708),Ye=n(19419),He=n(12176),qe=n(6518),$e=n(69622),ze=n(89056);let Fe=class extends $e.A{constructor(e){super(e)}get bounds(){let e=this.coords;return null==e?.extent?null:(0,Ye.VY)(e.extent)}get coords(){let e=this.element.georeference?.coords;return(0,T.projectOrLoad)(e,this.spatialReference).geometry}get normalizedCoords(){return B.A.fromJSON((0,ze.jZ)(this.coords))}get normalizedBounds(){let e=null==this.normalizedCoords?null:this.normalizedCoords.extent;return null==e?null:(0,Ye.VY)(e)}};(0,r.Cg)([(0,u.MZ)()],Fe.prototype,"spatialReference",void 0),(0,r.Cg)([(0,u.MZ)()],Fe.prototype,"element",void 0),(0,r.Cg)([(0,u.MZ)()],Fe.prototype,"bounds",null),(0,r.Cg)([(0,u.MZ)()],Fe.prototype,"coords",null),(0,r.Cg)([(0,u.MZ)()],Fe.prototype,"normalizedCoords",null),(0,r.Cg)([(0,u.MZ)()],Fe.prototype,"normalizedBounds",null),Fe=(0,r.Cg)([(0,u.$K)("esri.layers.support.MediaElementView")],Fe);var Ve,We=n(16494),Ge=n(38969);const De=Symbol("canplay");let Ke=class extends Re{static{Ve=Le}constructor(e){super(e),this.autoplay=!0,this.content=null,this.type="video",this[Ve]=!0}load(){let e=this.video;return"string"==typeof e?this.addResolvingPromise(this._preProcessVideoUrl(e).then(async e=>{let t=document.createElement("video");return t.src=We.W5.sanitizeUrl((0,se.s2)(e)),t.crossOrigin="anonymous",t.autoplay=this.autoplay,t.muted=!0,t.loop=!0,t.playsInline=!0,this._loadVideo(t).then(()=>{this._set("content",t)})})):e instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(e).then(()=>{this._set("content",e)})):this.addResolvingPromise(Promise.reject(new o.A("video-element:invalid-video-type","Invalid video type",{video:e}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.content?.currentTime}set currentTime(e){if(!this.content)return;let t=(0,xe.qE)(e,0,this.content.duration);"fastSeek"in this.content?this.content.fastSeek(t):this.content.currentTime=t,this.content.play().then(()=>{this.content?.pause()}).catch(()=>{})}get duration(){return this.content?.duration}set video(e){"not-loaded"===this.loadStatus?this._set("video",e):s.A.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}writeVideo(e,t,n,r){if(!e)return void(r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source is missing")));let i=function(e){return"string"==typeof e&&!(0,se.DB)(e)&&!(0,se.w8)(e)}(e)?e:null;if(!i)return void(r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source must be an absolute url")));!(0,se.oP)(i)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(i);let s=(0,se.s2)(i);(0,Ze.i)(s)?r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source cannot be an item resource")):t[n]=s}async _preProcessVideoUrl(e){if((0,se.zs)(e))return(0,se.yM)(e);try{return await(0,ie.A)(e,{method:"head"}),e}catch{try{return(0,se.yM)(e,!0)}catch{return e}}}async _loadVideo(e){"anonymous"!==e.crossOrigin&&(e.crossOrigin="anonymous",(0,se.w8)(e.src)||(e.src=e.src));try{await(0,Ge.i)(e,e=>this.addHandles(e,De)),this.autoplay&&await e.play().catch(e=>{throw console.error(e),e})}finally{this.removeHandles(De)}}};(0,r.Cg)([(0,u.MZ)()],Ke.prototype,"autoplay",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Ke.prototype,"content",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Ke.prototype,"contentWidth",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Ke.prototype,"contentHeight",null),(0,r.Cg)([(0,u.MZ)({type:Number})],Ke.prototype,"currentTime",null),(0,r.Cg)([(0,u.MZ)({type:Number})],Ke.prototype,"duration",null),(0,r.Cg)([(0,u.MZ)(Pe)],Ke.prototype,"video",null),(0,r.Cg)([(0,j.K)("video")],Ke.prototype,"writeVideo",null),(0,r.Cg)([(0,u.MZ)(Ie)],Ke.prototype,"type",void 0),Ke=(0,r.Cg)([(0,u.$K)("esri.layers.support.VideoElement")],Ke);const Je={key:"type",defaultKeyValue:"image",base:Re,typeMap:{image:ke,video:Ke}},Qe=i.A.ofType(Je);let et=class extends((0,ae.WV)((0,Ne.g)(Ue.nJ))){constructor(e){super(e),this._index=new qe.F,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=e=>{for(let t of e.removed){let e=this._elementViewsMap.get(t);this._elementViewsMap.delete(t),this._index.delete(e),this.removeHandles(e),e.destroy(),this.notifyChange("fullExtent")}let{spatialReference:t}=this;for(let n of e.added){if(this._elementViewsMap.get(n))continue;let e=new Fe({spatialReference:t,element:n});this._elementViewsMap.set(n,e);let r=(0,Xe.wB)(()=>e.coords,()=>this._updateIndexForElement(e,!1));this._updateIndexForElement(e,!0),this.addHandles(r,e)}this._elementsIndexes.clear(),this.elements.forEach((e,t)=>this._elementsIndexes.set(e,t)),this.emit("refresh")},this.elements=new Qe}async load(e){if((0,a.Te)(e),!this.spatialReference){let e=this.elements.find(e=>null!=e.georeference?.coords);this._set("spatialReference",e?e.georeference.coords.spatialReference:h.A.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}get elements(){return this._get("elements")}set elements(e){this._set("elements",(0,je.V)(e,this._get("elements"),Qe))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;let e=this._index.fullBounds;return null==e?null:new pe.A({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:this.spatialReference})}set spatialReference(e){"not-loaded"===this.loadStatus?this._set("spatialReference",e):s.A.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(e,t){await this.load(),await(0,T.initializeProjection)(e.spatialReference,this.spatialReference,null,t);let n=(0,me.aI)(e.spatialReference,this.spatialReference)?e:(0,T.project)(e,this.spatialReference);if(!n)return[];let r=n.normalize(),i=[];for(let e of r)this._index.forEachInBounds((0,Ye.VY)(e),({normalizedCoords:t,element:n})=>{null!=t&&(0,He.fA)(e,t)&&i.push(n)});return i.sort((e,t)=>this._elementsIndexes.get(e)-this._elementsIndexes.get(t)),i}hasElement(e){return this.elements.includes(e)}_updateIndexForElement(e,t){let n=e.normalizedBounds,r=this._index.has(e),i=null!=n;this._index.delete(e),i&&this._index.set(e,n),this.notifyChange("fullExtent"),t||(r===i?this.emit("change",{element:e.element}):this.emit("refresh"))}};(0,r.Cg)([(0,u.MZ)()],et.prototype,"elements",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],et.prototype,"fullExtent",null),(0,r.Cg)([(0,u.MZ)()],et.prototype,"spatialReference",null),et=(0,r.Cg)([(0,u.$K)("esri.layers.support.LocalMediaElementSource")],et);let tt=class extends((0,d.dM)((0,f.j)((0,p.q)((0,m.A)((0,l.M)(c.A)))))){constructor(e){super(e),this.effectiveSource=null,this.georeference=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this._debouncedSaveOperations=(0,a.sg)(async(e,t,r)=>{let{save:i,saveAs:o}=await n.e(3561).then(()=>n(63561));switch(e){case 0:return i(this,t);case 1:return o(this,r,t)}}),this.source=new et}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.loadFromPortal({supportedTypes:["Media Layer"]},e);let t=this.source;if(!t)throw new o.A("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer.");let n=this._getSourceOverride(t,this.georeference);n&&(this.setAtOrigin("source",n,"web-map"),this.setAtOrigin("source",n,"web-scene"),t=n);let r=Te(t)?new et({elements:new i.A([t])}):t;this._set("effectiveSource",r),this.spatialReference&&(r.spatialReference=this.spatialReference),await r.load(e),this.spatialReference=r.spatialReference}destroy(){this.effectiveSource?.destroy(),this.effectiveSource!==this.source&&this.source?.destroy()}readGeoreference(e,t){return e&&"itemId"in t&&t.itemId?e:void 0}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}get loaded(){return super.loaded}get source(){return this._get("source")}set source(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("source",e):s.A.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(e){return e?Array.isArray(e)?new et({elements:new i.A(e)}):e instanceof i.A?new et({elements:e}):e:null}readSource(e,t,n){if("itemId"in t&&t.itemId)return;let r=this._createSource(t);return r?.read(t,n),r}writeSource(e,t,n,r){if(e&&e instanceof et){let t=e.elements.length;if(1!==t)return void(r?.messages&&r.messages.push(new o.A("media-layer:unsupported-source",`local media element source can only be persisted if it contains exactly one ImageElement, but it has ${t}.`)));e=e.elements.at(0)}Te(e)?e.write(t,r):r?.messages&&(e?r.messages.push(new o.A("media-layer:unsupported-source","only media elements of type 'ImageElement' or 'VideoElement' can be persisted")):r.messages.push(new o.A("media-layer:unsupported-source","the media layer is missing a source")))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_createSource(e){if("mediaType"in e)switch(e.mediaType){case"image":return new ke;case"video":return new Ke}return null}_getSourceOverride(e,t){if(Te(e)&&3===this.originIdOf("source")&&t&&(5===this.originIdOf("georeference")||4===this.originIdOf("georeference"))){let n=e.toJSON(),r=this._createSource(n);return r.read({...n},{origin:"portal-item"}),r.read({georeference:t},{origin:"web-map"}),r.read({georeference:t},{origin:"web-scene"}),r}return null}};(0,r.Cg)([(0,u.MZ)({readOnly:!0})],tt.prototype,"effectiveSource",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!0}}}})],tt.prototype,"georeference",void 0),(0,r.Cg)([(0,k.w)("web-document","georeference")],tt.prototype,"readGeoreference",null),(0,r.Cg)([(0,u.MZ)({type:String})],tt.prototype,"copyright",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],tt.prototype,"fullExtent",null),(0,r.Cg)([(0,u.MZ)({type:["MediaLayer"]})],tt.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,u.MZ)({type:["show","hide"]})],tt.prototype,"listMode",void 0),(0,r.Cg)([(0,u.MZ)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1,target:{url:{type:String},mediaType:{type:["image","video"]},georeference:{type:Y}},overridePolicy(e,t,n){return{enabled:!0,allowNull:!1,ignoreOrigin:Me(this,n?.origin)&&Te(e)&&!!e.georeference&&e.originIdOf("georeference")>3}}}}})],tt.prototype,"source",null),(0,r.Cg)([(0,u.wg)("source")],tt.prototype,"castSource",null),(0,r.Cg)([(0,k.w)("source",["url"])],tt.prototype,"readSource",null),(0,r.Cg)([(0,j.K)("source")],tt.prototype,"writeSource",null),(0,r.Cg)([(0,u.MZ)({type:h.A})],tt.prototype,"spatialReference",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],tt.prototype,"type",void 0),tt=(0,r.Cg)([(0,u.$K)("esri.layers.MediaLayer")],tt);const nt=tt},6518(e,t,n){n.d(t,{F:()=>l});var r=n(44208),i=n(75503),o=n(19419);const s={minX:0,minY:0,maxX:0,maxY:0};class l{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.wq(9,(0,r.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((n,r)=>{e[t++]=r}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,o.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){s.minX=e[0],s.minY=e[1],s.maxX=e[2],s.maxY=e[3]})(t),e.search(s,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},8303(e,t,n){var r=n(32198),i=n(92602),o=n(70333),s=n(56507),l=n(60999),a=n(49186),u=n(36563),h=n(53966),c=n(97768),d=n(17676),p=n(84952),m=n(91429),f=n(77548),g=n(20655),y=n(80812),x=n(41318),_=n(10407),v=n(26121),w=n(36005),M=n(43937);const b={credential:null,user:null};n.d(t,["A",0,e=>{let t=e,P=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new y.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:r}=await n.e(1204).then(()=>n(41204));return(0,d.Te)(t),await r({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)||h.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 r=t?.signal?null:new AbortController;try{let{reload:i}=await n.e(1204).then(()=>n(41204));return r&&this.addHandles((0,u.rE)(r),"reloadFromPortal"),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:r.signal})}catch(e){throw(0,d.zf)(e)||h.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{r&&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:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);let r,i,s=!o.id?.findCredential(this.url),l=e===n.id;if(l&&n.portal.user)return this._getUserPrivileges(n,s);if(l)r=n.portal.url;else try{r=await(0,f.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!r||!(0,p.b8)(r,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;i=await(o.id?.getCredential(`${r}/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 n.reload():(n=new y.default({id:e,portal:{url:r}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,s)}catch(e){(0,d.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let n=(0,_.It)(e);return t&&(n.features.edit=!0),n}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?o.id?.findCredential(this.url):null;if(!t)return!0;let n=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let n=o.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;let r=`${n.owningSystemUrl}/sharing/rest`,i=g.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(r))return i.user;let a=`${r}/community/self`,u=null==e?null:e.signal,h=await(0,l.Ke)((0,s.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?x.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,v.wN)(this.portalItem,t)?(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,r.Cg)([(0,m.MZ)({type:y.default})],P.prototype,"portalItem",null),(0,r.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],P.prototype,"readPortalItem",null),(0,r.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],P.prototype,"writePortalItem",null),(0,r.Cg)([(0,m.MZ)({clonable:!1})],P.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasUpdateItemPrivileges",void 0),P=(0,r.Cg)([(0,m.$K)("esri.layers.mixins.PortalLayer")],P),P}])},38969(e,t,n){n.d(t,{i:()=>i});var r=n(37955);function i(e,t){return new Promise((n,i)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(t((0,r.Oo)(e,"canplay",n)),t((0,r.Oo)(e,"error",i)))})}},85648(e,t,n){n.d(t,{n:()=>i});var r=n(84952);function i(e){return o[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){let t=(0,r.Zo)(e);return a[t]||s}(e.url)}(e)]||l}const o={},s="text/plain",l=o[s],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let e in a)o[a[e]]=e},26121(e,t,n){n.d(t,{I6:()=>h,ci:()=>u,dL:()=>a,wN:()=>c});var r=n(49186),i=n(84952),o=n(77548),s=n(20655),l=n(59923);async function a(e){let t=[];for(let n of e.allLayers)if("beforeSave"in n&&"function"==typeof n.beforeSave){let e=n.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function u(e,t,n){let i=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:n})=>new r.A(e,t,n));if(e.blockedRelativeUrls&&(i=i.concat(e.blockedRelativeUrls.map(e=>(0,l.GL)("url",`Relative url '${e}' is not supported`)))),n){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:r}=n;e&&(i=i.filter(({name:e})=>!(l.MG.has(e)||t.includes(e)))),r&&(i=i.filter(e=>"web-document-write:property-required"!==e.name))}if(i.length>0)throw new r.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:i})}function h(e){return(0,o.qd)(e).some(e=>!!e.charts?.length)}function c(e,t){let n=t?.portal,r=e?.id&&(e.portal||s.A.getDefault());return!!n&&!!r&&!(0,i.ut)(r.restUrl,n.restUrl)}}}]);