@arcgis/core 5.2.0-next.147 → 5.2.0-next.148

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 (246) 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/{79c83f4e066682543ca1.js → 0a078721c7e0e24027f0.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{72019baeba520edb6bb0.js → 112befb3b5b406f29298.js} +1 -1
  5. package/assets/esri/core/workers/chunks/131e89663014bc76c4ee.js +1 -0
  6. package/assets/esri/core/workers/chunks/{392bcef780df52fb4cca.js → 16053ce50642c5ffbfa9.js} +1 -1
  7. package/assets/esri/core/workers/chunks/19689c66776b39cec234.js +1 -0
  8. package/assets/esri/core/workers/chunks/{ba46869e700ba1d2787f.js → 1b3f59fcad6e14c4d0e0.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{6dd0b79fa3a629ab4f27.js → 1bca39e0e651426bdbb5.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{305a718719ef15fda90c.js → 20458fffda7692c78135.js} +1 -1
  11. package/assets/esri/core/workers/chunks/219d0935ce281902a49f.js +1 -0
  12. package/assets/esri/core/workers/chunks/2416518db4a0117541a8.js +1 -0
  13. package/assets/esri/core/workers/chunks/{8b1c17cc52d989924313.js → 27a425d87c57b91489b3.js} +1 -1
  14. package/assets/esri/core/workers/chunks/2d9a1f23ec6ce90723ac.js +1 -0
  15. package/assets/esri/core/workers/chunks/{06e7400f5ebe0719b81c.js → 2e75df54852d65e71330.js} +1 -1
  16. package/assets/esri/core/workers/chunks/39d1d2fbe94afcd0a590.js +1 -0
  17. package/assets/esri/core/workers/chunks/{d01381b548c204835509.js → 3e9f056e4d1f0d067fc6.js} +1 -1
  18. package/assets/esri/core/workers/chunks/407f1e8176f3b0af73b4.js +1 -0
  19. package/assets/esri/core/workers/chunks/{1ba0dfbe0958cdbd7c9f.js → 42fd2a7b22b03dacc6a7.js} +1 -1
  20. package/assets/esri/core/workers/chunks/43321f244effd3d67069.js +1 -0
  21. package/assets/esri/core/workers/chunks/47e6b5631a625298db5b.js +1 -0
  22. package/assets/esri/core/workers/chunks/4a6b92ecbb1f1c55cc43.js +1 -0
  23. package/assets/esri/core/workers/chunks/4fc337240e7cddd0e988.js +1 -0
  24. package/assets/esri/core/workers/chunks/52c25809edf7ac008a52.js +1 -0
  25. package/assets/esri/core/workers/chunks/54b18559280a7d2a8d93.js +1 -0
  26. package/assets/esri/core/workers/chunks/561c48cb4d49b150765b.js +1 -0
  27. package/assets/esri/core/workers/chunks/{5c855af73ee3c3e764fb.js → 5732fdf6d8b87739aeea.js} +1 -1
  28. package/assets/esri/core/workers/chunks/5924ec3167a2941ebb1f.js +1 -0
  29. package/assets/esri/core/workers/chunks/5f0c06f59121e09091f7.js +1 -0
  30. package/assets/esri/core/workers/chunks/5fa1ec357c3ad1f91bc7.js +1 -0
  31. package/assets/esri/core/workers/chunks/606ea251075fe81a1206.js +1 -0
  32. package/assets/esri/core/workers/chunks/{ceb680688fe7e570a774.js → 608be1172a908e92b9f1.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{6f358116f79021ff9687.js → 612104dff305ff062dfa.js} +2 -2
  34. package/assets/esri/core/workers/chunks/68be3fb88ca61f82fb90.js +1 -0
  35. package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +1 -0
  36. package/assets/esri/core/workers/chunks/6eb5cc8ddf772c0062e6.js +1 -0
  37. package/assets/esri/core/workers/chunks/709e019885822b1f6f3e.js +1 -0
  38. package/assets/esri/core/workers/chunks/70ee81ba22badbbf045c.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/7a4f1484b119ebafc2e7.js +1 -0
  42. package/assets/esri/core/workers/chunks/8293600f94553afc8c38.js +1 -0
  43. package/assets/esri/core/workers/chunks/{c18189710d6198516175.js → 830ab9b8d000169da675.js} +1 -1
  44. package/assets/esri/core/workers/chunks/8602b3587d4bdd9cc9f5.js +1 -0
  45. package/assets/esri/core/workers/chunks/{956a40f40bde416efe93.js → 898f43feeec74acde1ec.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{700b1d5bc67b7e1b3ff3.js → 8aa80b892fde552577e8.js} +1 -1
  47. package/assets/esri/core/workers/chunks/8ef802ef8d108ae2e473.js +1 -0
  48. package/assets/esri/core/workers/chunks/900181f68449d8f82eeb.js +1 -0
  49. package/assets/esri/core/workers/chunks/925271bb763607a326ae.js +1 -0
  50. package/assets/esri/core/workers/chunks/937824bc7948f7bc7845.js +1 -0
  51. package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +1 -0
  52. package/assets/esri/core/workers/chunks/{a52bf03bffb6ffac3b54.js → a101b89c18488f213d80.js} +1 -1
  53. package/assets/esri/core/workers/chunks/a337ca943862b30b978d.js +1 -0
  54. package/assets/esri/core/workers/chunks/ac03976b8450331aa31e.js +1 -0
  55. package/assets/esri/core/workers/chunks/af349c7bc8ef41a0e1bd.js +1 -0
  56. package/assets/esri/core/workers/chunks/afc3b2af20e9d1dfd260.js +1 -0
  57. package/assets/esri/core/workers/chunks/{97dbbedea9fe03bd1306.js → b0fd7cd5fc9526d30ddc.js} +1 -1
  58. package/assets/esri/core/workers/chunks/b3e812c3a06b486f05d2.js +1 -0
  59. package/assets/esri/core/workers/chunks/{6883a5c6883eccaddf64.js → b6ba66a05030d3815dfd.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{9ab25ee06041f907b9a2.js → c2c1f51a4668055c2838.js} +1 -1
  61. package/assets/esri/core/workers/chunks/c598b22f78ccc57f9d6d.js +1 -0
  62. package/assets/esri/core/workers/chunks/c5d85be6e16bc895e7fb.js +1 -0
  63. package/assets/esri/core/workers/chunks/c62738f84c914671b143.js +1 -0
  64. package/assets/esri/core/workers/chunks/{820f41d66b2056a3ebc8.js → c7699edd14497d174445.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{a7985d20fa6e8d4878e7.js → d0f5bee9db1ad51ae687.js} +1 -1
  66. package/assets/esri/core/workers/chunks/dbcac8c1a76d4a9db13d.js +1 -0
  67. package/assets/esri/core/workers/chunks/{4ed8655770a3e018e366.js → de8d7f11f5a078c01b83.js} +1 -1
  68. package/assets/esri/core/workers/chunks/e0351753f6b4d1adf11e.js +1 -0
  69. package/assets/esri/core/workers/chunks/{534186fc921a0ccf58dc.js → e1f5d00878f27e1d413e.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{4479a166b5ac8db1e12e.js → f2b69bd704db62915a6b.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{711cfb84659cb4437679.js → f528ac5c648ca6a98582.js} +1 -1
  72. package/assets/esri/core/workers/chunks/fdbf6208df5c58746d9d.js +1 -0
  73. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
  74. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
  75. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
  76. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
  77. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
  78. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
  79. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
  80. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
  81. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
  82. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
  83. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
  84. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
  85. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
  86. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
  87. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
  88. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
  89. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
  90. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
  91. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
  92. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
  93. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
  94. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
  95. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
  96. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
  97. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
  98. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
  99. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
  100. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
  101. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
  102. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
  103. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
  104. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
  105. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
  106. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
  107. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
  108. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
  109. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
  110. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
  111. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
  112. package/config.js +1 -1
  113. package/geometry/support/TileClipper.js +1 -1
  114. package/geometry/support/meshUtils.d.ts +1 -1
  115. package/geometry/support/scaleUtils.js +1 -1
  116. package/kernel.js +1 -1
  117. package/layers/CSVLayer.d.ts +1 -1
  118. package/layers/CatalogLayer.d.ts +1 -1
  119. package/layers/FeatureLayer.d.ts +1 -1
  120. package/layers/GeoJSONLayer.d.ts +1 -1
  121. package/layers/OrientedImageryLayer.js +1 -1
  122. package/layers/ParquetLayer.d.ts +4 -3
  123. package/layers/ParquetLayer.js +1 -1
  124. package/layers/SceneLayer.d.ts +4 -5
  125. package/layers/SceneLayer.js +1 -1
  126. package/layers/SketchLayer.d.ts +0 -1
  127. package/layers/SubtypeGroupLayer.d.ts +1 -1
  128. package/layers/WFSLayer.d.ts +1 -1
  129. package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +1 -1
  130. package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
  131. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +1 -1
  132. package/layers/mixins/ArcGISImageService.d.ts +1 -1
  133. package/layers/mixins/PortalLayer.js +1 -1
  134. package/layers/mixins/ScaleRangeLayer.js +1 -1
  135. package/layers/mixins/SublayersOwner.js +1 -1
  136. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  137. package/layers/orientedImagery/core/utils.js +1 -1
  138. package/layers/support/FeatureFilter.d.ts +1 -1
  139. package/layers/support/ParquetPortalItemData.js +1 -1
  140. package/layers/support/PortalItemData.js +1 -1
  141. package/layers/support/Sublayer.js +1 -1
  142. package/layers/support/SubtypeSublayer.d.ts +1 -1
  143. package/layers/support/SubtypeSublayer.js +1 -1
  144. package/package.json +2 -2
  145. package/popup/FeaturesModel.d.ts +26 -5
  146. package/popup/FeaturesModel.js +1 -1
  147. package/portal/support/layersLoader.js +1 -1
  148. package/portal/support/portalLayers.js +1 -1
  149. package/rest/print.js +1 -1
  150. package/rest/support/printTaskUtils.js +1 -1
  151. package/symbols/cim/CIMSymbolHelper.js +1 -1
  152. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  153. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  154. package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
  155. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  156. package/views/2d/layers/LayerView2D.js +1 -1
  157. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  158. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  159. package/views/3d/analysis/Viewshed/types.d.ts +3 -1
  160. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  161. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  162. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  163. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  164. package/views/3d/layers/FlowSubView3D.js +1 -1
  165. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  166. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  167. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  168. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  169. package/views/3d/layers/MediaLayerView3D.js +1 -1
  170. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  171. package/views/3d/layers/RouteLayerView3D.js +1 -1
  172. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  173. package/views/3d/layers/SceneLayerView3D.js +1 -1
  174. package/views/3d/layers/TiledLayerView3D.js +1 -1
  175. package/views/3d/layers/VoxelLayerView3D.js +1 -1
  176. package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
  177. package/views/3d/layers/graphics/Labeler.js +1 -1
  178. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  179. package/views/3d/support/popupHitTest.js +1 -1
  180. package/views/View2D.d.ts +1 -1
  181. package/views/interactive/snapping/FeatureSnappingSourceInfo.js +1 -1
  182. package/views/interactive/snapping/SnappingOptions.d.ts +1 -1
  183. package/views/layers/FeatureLikeLayerView.d.ts +1 -1
  184. package/views/layers/LayerView.js +1 -1
  185. package/views/layers/LineOfSightLayerView.d.ts +3 -4
  186. package/views/layers/PointCloudLayerView.d.ts +1 -1
  187. package/views/layers/SceneLayerView.d.ts +1 -1
  188. package/views/layers/ViewshedLayerView.d.ts +5 -6
  189. package/views/support/layerViewUtils.js +1 -1
  190. package/webdoc/support/saveUtils.js +1 -1
  191. package/webdoc/support/unsupportedErrors.js +1 -1
  192. package/widgets/Editor.d.ts +10 -0
  193. package/widgets/Legend.d.ts +1 -0
  194. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  195. package/widgets/OrientedImageryViewer/adapters/draw/HeightMeasurementAdapter.js +1 -1
  196. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  197. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  198. package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
  199. package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
  200. package/widgets/support/SnappingControls.d.ts +1 -1
  201. package/assets/esri/core/workers/chunks/00a600c71ceebe7bfeee.js +0 -1
  202. package/assets/esri/core/workers/chunks/0193df3f9fb23633da87.js +0 -1
  203. package/assets/esri/core/workers/chunks/050c4b212f2b5691db34.js +0 -1
  204. package/assets/esri/core/workers/chunks/07aa6d36f1006b6ab7ff.js +0 -1
  205. package/assets/esri/core/workers/chunks/0bb11751efa2023ec937.js +0 -1
  206. package/assets/esri/core/workers/chunks/2062d46f638eabfc9499.js +0 -1
  207. package/assets/esri/core/workers/chunks/222af8522773c7dc80b1.js +0 -1
  208. package/assets/esri/core/workers/chunks/303fde8f3459dde16555.js +0 -1
  209. package/assets/esri/core/workers/chunks/347bf269c2b1583d2dca.js +0 -1
  210. package/assets/esri/core/workers/chunks/350540770781b281c39a.js +0 -1
  211. package/assets/esri/core/workers/chunks/3b017b718ea2d4ed498f.js +0 -1
  212. package/assets/esri/core/workers/chunks/3e81dfc9d621ece038fe.js +0 -1
  213. package/assets/esri/core/workers/chunks/46b2d4addfc73f9183a4.js +0 -1
  214. package/assets/esri/core/workers/chunks/4d82db661365daa513a6.js +0 -1
  215. package/assets/esri/core/workers/chunks/4f48d45baa8ada16f579.js +0 -1
  216. package/assets/esri/core/workers/chunks/50ca55ad2f5421acc492.js +0 -1
  217. package/assets/esri/core/workers/chunks/5450f339f97b2b042ee2.js +0 -1
  218. package/assets/esri/core/workers/chunks/55cc8581978c71b17998.js +0 -1
  219. package/assets/esri/core/workers/chunks/633a9051580c5302d2f7.js +0 -1
  220. package/assets/esri/core/workers/chunks/641d196a554bd07f729e.js +0 -1
  221. package/assets/esri/core/workers/chunks/655c3afda1eef01611dd.js +0 -1
  222. package/assets/esri/core/workers/chunks/6569797d3c22442e5e97.js +0 -1
  223. package/assets/esri/core/workers/chunks/70793967db45fb142962.js +0 -1
  224. package/assets/esri/core/workers/chunks/798a63653f82c0e842c5.js +0 -1
  225. package/assets/esri/core/workers/chunks/84fcbf7a1d04f01685d1.js +0 -1
  226. package/assets/esri/core/workers/chunks/8e511079918e2fd9261f.js +0 -1
  227. package/assets/esri/core/workers/chunks/8fcfd515ee1b18c902e5.js +0 -1
  228. package/assets/esri/core/workers/chunks/9001e9a1e81bce175ddd.js +0 -1
  229. package/assets/esri/core/workers/chunks/9401cc22373566e1171e.js +0 -1
  230. package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +0 -1
  231. package/assets/esri/core/workers/chunks/9c0fd8baa00ee9733ba4.js +0 -1
  232. package/assets/esri/core/workers/chunks/9c1e69ac82e2bf746191.js +0 -1
  233. package/assets/esri/core/workers/chunks/a010d2e4e34eb7bc1fec.js +0 -1
  234. package/assets/esri/core/workers/chunks/a05790444115e4cf1bcc.js +0 -1
  235. package/assets/esri/core/workers/chunks/a7edf7541569fef77cb3.js +0 -1
  236. package/assets/esri/core/workers/chunks/b2c29bc48c7b3b0c9357.js +0 -1
  237. package/assets/esri/core/workers/chunks/b7d77dd2abb255fd2e5a.js +0 -1
  238. package/assets/esri/core/workers/chunks/b8054adc45bca069b948.js +0 -1
  239. package/assets/esri/core/workers/chunks/ca7fb75e2c62e7d37122.js +0 -1
  240. package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +0 -1
  241. package/assets/esri/core/workers/chunks/d270cc9807161033686e.js +0 -1
  242. package/assets/esri/core/workers/chunks/d4f038e04c42aed588c1.js +0 -1
  243. package/assets/esri/core/workers/chunks/e32b96c08cb272a59851.js +0 -1
  244. package/assets/esri/core/workers/chunks/e7c60bd85abbd36cdc64.js +0 -1
  245. package/assets/esri/core/workers/chunks/f0a68d2900d24f56afa0.js +0 -1
  246. 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,i){i.d(t,{G:()=>r});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,i){i.d(t,{S:()=>n});var r=i(61691);class n extends r.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,i){i.d(t,{a:()=>c,b:()=>a,c:()=>n,d:()=>o,e:()=>p,f:()=>u,l:()=>h,n:()=>d,t:()=>s}),i(44208);var r=i(72727);function n(e,t,i){s(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)}function s(e,t,i,n=3,s=n){let o=(0,r.k)(e.length,n,3),a=(0,r.k)(t.length,s,3),l=Math.min(o,a),h=i[0],u=i[1],c=i[2],p=i[4],d=i[5],f=i[6],m=i[8],g=i[9],y=i[10],v=i[12],w=i[13],_=i[14],C=0,b=0;for(let i=0;i<l;i++){let i=t[C],r=t[C+1],o=t[C+2];e[b]=h*i+p*r+m*o+v,e[b+1]=u*i+d*r+g*o+w,e[b+2]=c*i+f*r+y*o+_,C+=s,b+=n}return e}function o(e,t,i){a(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)}function a(e,t,i,n=3,s=n){let o=(0,r.k)(e.length,n,3),a=(0,r.k)(t.length,s,3),l=Math.min(o,a),h=i[0],u=i[1],c=i[2],p=i[3],d=i[4],f=i[5],m=i[6],g=i[7],y=i[8],v=0,w=0;for(let i=0;i<l;i++){let i=t[v],r=t[v+1],o=t[v+2];e[w]=h*i+p*r+m*o,e[w+1]=u*i+d*r+g*o,e[w+2]=c*i+f*r+y*o,v+=s,w+=n}}function l(e,t,i,r=3,n=r){let s=Math.min(e.length/r,t.length/n),o=0,a=0;for(let l=0;l<s;l++)e[a]=i*t[o],e[a+1]=i*t[o+1],e[a+2]=i*t[o+2],o+=n,a+=r;return e}function h(e,t,i,r){u(e.typedBuffer,t.typedBuffer,i,r,e.typedBufferStride,t.typedBufferStride)}function u(e,t,i,r,n=3,s=n){let o=Math.min(e.length/n,t.length/s),a=0,l=0,h=1/2.2;for(let u=0;u<o;u++)e[l]=r*(i*t[a])**h,e[l+1]=r*(i*t[a+1])**h,e[l+2]=r*(i*t[a+2])**h,a+=s,l+=n}function c(e,t,i,n=3,s=n){let o=(0,r.k)(e.length,n,3),a=(0,r.k)(t.length,s,3),l=Math.min(o,a),h=0,u=0;for(let r=0;r<l;r++)e[u]=t[h]+i[0],e[u+1]=t[h+1]+i[1],e[u+2]=t[h+2]+i[2],h+=s,u+=n;return e}function p(e,t){d(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function d(e,t,i=3,r=i){let n=Math.min(e.length/i,t.length/r),s=0,o=0;for(let a=0;a<n;a++){let n=t[s],a=t[s+1],l=t[s+2],h=n*n+a*a+l*l;if(h>0){let t=1/Math.sqrt(h);e[o]=t*n,e[o+1]=t*a,e[o+2]=t*l}s+=r,o+=i}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:h,normalize:d,normalizeView:p,scale:l,scaleView:function(e,t,i){l(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,i){let r=Math.min(e.count,t.count),n=e.typedBuffer,s=e.typedBufferStride,o=t.typedBuffer,a=t.typedBufferStride,l=0,h=0;for(let e=0;e<r;e++)n[h]=o[l]>>i,n[h+1]=o[l+1]>>i,n[h+2]=o[l+2]>>i,l+=a,h+=s},transformMat3:a,transformMat3View:o,transformMat4:s,transformMat4View:n,translate:c},Symbol.toStringTag,{value:"Module"}))},69540(e,t,i){var r=i(32198),n=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),l=i(64108);const h=Symbol("ClonableMixin"),u=e=>{var t;let i=e,n=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=h}clone(e){let t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");let i=t.metadata,r=t.store,n={},l=new Map;for(let t in i){let o=i[t],a=r?.originOf(t),h=o.clonable;if(o.readOnly||!1===h||7!==a&&0!==a&&5!==a&&4!==a)continue;let u=this[t],c=null;if("function"==typeof h)c=h(u,e);else if("reference"===h)c=u;else if(c=(0,s.TU)(u,e),null!=u&&null==c)continue;0===a?l.set(t,c):n[t]=c}let h=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){let e=(0,a.oY)(h)?.store;if(e)for(let[t,i]of l)e.set(t,i,0)}return h}};return n=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],n),n},c=u(n.A);i.d(t,["OU",0,u,"Pw",0,c])},7762(e,t,i){var r,n=i(32198),s=i(98291),o=i(4576),a=i(65529),l=i(36563),h=i(4718),u=i(53966),c=i(93687),p=i(76030),d=i(78888),f=i(62788),m=i(10107),g=i(7695),y=i(64108),v=i(95488),w=i(12195);class _{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 C{constructor(e,t,i,r,n){this.target=e,this.added=t,this.removed=i,this.start=r,this.deleteCount=n}}const b=new c.A(()=>new _,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function x(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function M(e){return e?e instanceof D?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function A(e){if(e?.length)return e[0]}function T(e,t,i,r){let n=Math.min(e.length-i,t.length-r),s=0;for(;s<n&&e[i+s]===t[r+s];)s++;return s}function S(e,t,i,r){t&&t.forEach((t,n,s)=>{e.push(t),S(e,i.call(r,t,n,s),i,r)})}const R=new Set,Z=new Set,O=new Set,P=new Map;let I=0,D=r=class extends a.nJ{static ofType(e){if(!e)return r;if(P.has(e))return P.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 i in e.typeMap){let r=e.typeMap[i].prototype.declaredClass;t?t+=` | ${r}`:t=r}let i=class extends r{};return(0,n.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,d.dp)(e):(0,d.aq)(e)})],i.prototype,"itemType",void 0),i=(0,n.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],i),P.set(e,i),i}static isCollection(e){return null!=e&&e instanceof r}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:I++})}normalizeCtorArgs(e){return e?(0,o.yc)(e)||e instanceof r?{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?u.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,i={removed:!1,callback:t};return e.push(i),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{i.removed=!0,e.splice(e.indexOf(i),1)})}return super.on(e,t)}once(e,t){let i="deref"in t?()=>t.deref():()=>t,r=this.on(e,e=>{i()?.call(null,e),r.remove()});return r}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;let i=this.getNextIndex(t??null);return this._splice(i,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 i=this.getNextIndex(t);return this._splice(i,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(h.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 i=this._splice(0,this.length),r=i.length;for(let n=0;n<r;n++)e.call(t,i[n],n,i);this._emitAfterChanges(2)}destroyAll(){this.drain(x)}destroyMany(e){let t=this.removeMany(e);return t.forEach(x),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);let i=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:i})}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 i=[];return S(i,this,e,t),new r(i)}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 i=this._items.map(e,t);return new r({items:i})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);let i=this.indexOf(e);if(-1!==i){if(t<0?t=0:t>=this.length&&(t=this.length-1),i!==t){if(this._emitBeforeChanges(4))return e;this._splice(i,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=A(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 i=this._items;return 2===arguments.length?i.reduce(e,t):i.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);let i=this._items;return 2===arguments.length?i.reduceRight(e,t):i.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=A(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 r?e.toArray():e,i=this._items,n=[],s=t.length;for(let e=0;e<s;e++){let r=t[e],s=i.indexOf(r);if(s>-1){let r=1+T(t,i,e+1,s+1),o=this._splice(s,r);o&&o.length>0&&n.push.apply(n,o),e+=r-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=A(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 i=0;i<t;i++)if(e(this.items[i],this.items[i+1])>0)return!0;return!1}splice(e,t,...i){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let r=(t?2:0)|!!i.length;if(this._emitBeforeChanges(r))return[];let n=this._splice(e,t,i)||[];return this._emitAfterChanges(r),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.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,i){let r,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,p._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(n=s.splice(e,t),this.hasEventListener("before-remove")){let t=b.acquire();t.target=this,t.cancellable=!0;for(let i=0,o=n.length;i<o;i++)r=n[i],t.reset(r),this.emit("before-remove",t),t.defaultPrevented&&(n.splice(i,1),s.splice(e,0,r),e+=1,--i,--o);b.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=b.acquire();e.target=this,e.cancellable=!1;let t=n.length;for(let i=0;i<t;i++)e.reset(n[i]),this.emit("after-remove",e);b.release(e)}}if(i?.length){if(o){let e=[];for(let t of i){let i=o.ensureType(t);(null!=i||null==t)&&e.push(i)}i=e}let t=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),n=e===this.length;if(t||r){let o=b.acquire();o.target=this,o.cancellable=!0;let a=b.acquire();a.target=this,a.cancellable=!1;for(let l of i)t?(o.reset(l),this.emit("before-add",o),o.defaultPrevented||(n?s.push(l):s.splice(e++,0,l),this._length=s.length,r&&(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));b.release(a),b.release(o)}else{if(n)for(let e of i)s.push(e);else s.splice(e,0,...i);this._length=s.length}}if((i?.length||n?.length)&&this._notifyChangeEvent(i,n),this.hasEventListener("after-splice")){let r=new C(this,i,n,e,t);this.emit("after-splice",r)}return n}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let i=b.acquire();i.target=this,i.cancellable=!0,i.type=e,this.emit("before-changes",i),t=i.defaultPrevented,b.release(i)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=b.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),b.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;R.clear(),Z.clear(),O.clear();for(let{added:t,removed:i}of e){if(t)if(0===O.size&&0===Z.size)for(let e of t)R.add(e);else for(let e of t)Z.has(e)?(O.add(e),Z.delete(e)):O.has(e)||R.add(e);if(i)if(0===O.size&&0===R.size)for(let e of i)Z.add(e);else for(let e of i)R.has(e)?R.delete(e):(O.delete(e),Z.add(e))}let i=s.A.acquire();R.forEach(e=>{i.push(e)});let r=s.A.acquire();Z.forEach(e=>{r.push(e)});let n=this._items,o=t.items,a=s.A.acquire();if(O.forEach(e=>{o.indexOf(e)!==n.indexOf(e)&&a.push(e)}),t.listeners&&(i.length||r.length||a.length)){let e={target:this,added:i,removed:r,moved:a},n=t.listeners.length;for(let i=0;i<n;i++){let r=t.listeners[i];r.removed||r.callback.call(this,e)}}s.A.release(i),s.A.release(r),s.A.release(a)}R.clear(),Z.clear(),O.clear()}};(0,n.Cg)([(0,m.MZ)()],D.prototype,"_updating",void 0),(0,n.Cg)([(0,m.MZ)()],D.prototype,"_length",void 0),(0,n.Cg)([(0,m.MZ)()],D.prototype,"length",null),(0,n.Cg)([(0,m.MZ)()],D.prototype,"items",null),(0,n.Cg)([(0,m.MZ)({readOnly:!0})],D.prototype,"updating",null),D=r=(0,n.Cg)([(0,y.$)("esri.core.Collection")],D);const E=D;i.d(t,["A",0,E])},4902(e,t,i){var r=i(32198),n=i(64108);let s=0;const o=e=>{let t=e,i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return i=(0,r.Cg)([(0,n.$)("esri.core.Identifiable")],i),i};o(class{}),i.d(t,["s",0,o])},9775(e,t,i){i.d(t,{A:()=>s});var r=i(62788),n=i(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,r.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,r.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,r.gc)(this._observable),yield*this._items}}},563(e,t,i){i.d(t,{QueueProcessor:()=>h,SharedConcurrency:()=>c});var r=i(97768),n=i(17676),s=i(9775),o=i(32587),a=i(76030),l=i(44794);class h{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??p,this._queue=new s.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,r.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,i)=>e(i))}_get(e){return this._deferreds.get(e)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){let i=this._get(e);if(i)return i;let r=new AbortController,s=Promise.withResolvers(),o=t?(0,n.u7)(t,()=>r.abort()):null,a=(0,n.NY)(r.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,r),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,i=new AbortController,r=new u(e,i);this._processingItems.set(e,r),this.sharedConcurrency.current.value+=1;try{t=this.process(e,i.signal)}catch(e){this._processError(r,e)}(0,n.$X)(t)?(r.promise=t,t.then(e=>this._processResult(r,e),e=>this._processError(r,e))):this._processResult(r,t)}}class u{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 p=new c(1/0)},32587(e,t,i){i.d(t,{A:()=>s});var r=i(62788),n=i(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,r.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,r.gc)(this._observable),this._map.entries()}forEach(e,t){(0,r.gc)(this._observable),this._map.forEach((i,r)=>e.call(t,i,r,this),t)}get(e){return(0,r.gc)(this._observable),this._map.get(e)}has(e){return(0,r.gc)(this._observable),this._map.has(e)}keys(){return(0,r.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 i of t){if(!this._map.has(i))continue;let t=this._map.get(i),r=e(t,i);r!==t&&this.set(i,r)}})}values(){return(0,r.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,r.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,i){function r(e){return(t,i)=>{t[i]=e}}i.d(t,{u:()=>r})},82534(e,t,i){function r(){return[0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3]]}i.d(t,{o8:()=>n,vt:()=>r});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:r,fromValues:function(e,t,i,r){return[e,t,i,r]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,s])},48163(e,t,i){function r(){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 h(){return s(0,1)}i.d(t,{fA:()=>s,o8:()=>n,vt:()=>r});const u=o(),c=a(),p=l(),d=h();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:u,UNIT_X:p,UNIT_Y:d,ZEROS:[0,0],clone:n,create:r,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let i=Math.min(2,e.length);for(let r=0;r<i;++r)t[r]=e[r];return t},fromValues:s,negativeOnes:a,ones:o,unitX:l,unitY:h,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["IA",0,c,"Un",0,u])},17799(e,t,i){i.d(t,{T9:()=>a,d_:()=>n,gT:()=>s});var r=i(86211);function n(e,t){return{type:(0,r.t$)(t),value:e,unit:t}}function s(e,t){return{type:(0,r.t$)(t),value:e,unit:t}}function o(e,t,i="arithmetic"){return{type:(0,r.t$)(t),value:e,unit:t,rotationType:i}}function a(e,t){return null==e?t:null==t||e.value>(0,r.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,i){i.d(t,{C_:()=>p,on:()=>c,wB:()=>l,z7:()=>h});var r=i(37955),n=i(36563),s=i(97768),o=i(17676),a=i(14012);function l(e,t,i={}){return u(e,t,i,d)}function h(e,t,i={}){return u(e,t,i,f)}function u(e,t,i={},r){let n=null,o=i.once?(e,i)=>{r(e)&&((0,s.xt)(n),t(e,i))}:(e,i)=>{r(e)&&t(e,i)};if(n=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){let t=e();o(t,t)}return n}function c(e,t,i,o={}){let a=null,h=null,u=null;function c(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function p(e){o.once&&o.once&&(0,s.xt)(u),i(e)}let d=l(e,(e,i)=>{c(),(0,r.wb)(e)&&(a=e,h=(0,r.on)(e,t,p),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return u=(0,n.hA)(()=>{d.remove(),c()}),u}function p(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());let r=e();if(t?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((r,s)=>{a=(0,n.vE)([(0,o.u7)(i,()=>{l(),s((0,o.NK)())}),u(e,e=>{l(),r(e)},{sync:!1,once:!0},t??d)])})}(e,f,t)}function d(e){return!0}function f(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,i){i.d(t,{v:()=>a});var r=i(4718),n=i(62788),s=i(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=r.gh){return new o(e,t)}},88930(e,t,i){i.d(t,{S1:()=>a,VW:()=>l,lL:()=>h,rb:()=>u,t:()=>c});var r=i(97770),n=(i(98623),i(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,i,s="system"){if("unknown"===i)return e;let o=new n.oh((0,r.wj)(s)),a=n.c9.fromJSDate(e,{zone:o}),l="decades"===i||"centuries"===i?"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"}}(i);return"decades"===i&&(t*=10),"centuries"===i&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,i="milliseconds"){let r=e.getTime(),n=c(t,i,"milliseconds");return new Date(r+n)}function h(e,t,i="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new n.oh((0,r.wj)(i)),l=n.c9.fromJSDate(e,{zone:a}),h=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:h(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:h(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:h(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:h(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:h(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:h(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:h(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,i=e.year-e.year%t;return e.set({year:i}).toJSDate()}case"unknown":return e}}function u(e){let t=s.exec(e);if(!t)return null;let{hh:i,mm:r,ss:n,ms:a}=t.groups;return Number(i)*o.hours+Number(r)*o.minutes+Number(n||0)*o.seconds+Number(a||0)}function c(e,t,i){return 0===e?0:e*o[t]/o[i]}},35982(e,t,i){i.d(t,{B:()=>u});var r=i(4576),n=i(71511),s=i(36563),o=i(53966),a=i(97768),l=i(17676),h=i(83027);class u{constructor(e,t,i,r,n={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(e,{...n,schedule:r}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{n.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(let t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){let i=new c(e,t);return this._listeners.push(i),this._connectListener(i),(0,s.hA)(()=>{(0,r.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,r){if(this._thread){let n=this._transferLists[e],s=n?n(t):[];return this._thread.invoke(e,t,{transferList:s,signal:i,jobPriority:r})}return this._promise?this._promise.then(()=>((0,l.Te)(i),this.invokeMethod(e,t,i))):Promise.reject((0,l.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(p):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class c{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new n.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function p(){}},87992(e,t,i){i.d(t,{JR:()=>M,ME:()=>C,MY:()=>T,NO:()=>_,Nh:()=>x,V2:()=>P,_s:()=>I,e6:()=>E,gh:()=>b,jm:()=>A,tr:()=>N,uX:()=>m});var r=i(32198),n=i(16930),s=i(19419),o=i(60408),a=i(21325),l=i(513),h=i(50954),u=i(79567),c=i(52006),p=i(49663),d=i(46068),f=i(92722);class m{constructor({type:e,spatialReference:t,vertexCount:i,vertexXY:r,vertexZ:n,vertexM:s,partCount:o,partOffsets:a,partFlags:l,segmentFlags:h,segmentIndices:u,segmentParams:c,segmentCountArc:p,segmentCountBezier:d}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=i,this.vertexXY=r,this.vertexZ=n,this.vertexM=s,this.partCount=o,this.partOffsets=a,this.partFlags=l,this.segmentFlags=h,this.segmentIndices=u,this.segmentParams=c,this.segmentCountArc=p,this.segmentCountBezier=d}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:i}=this;return e&&e-t-i}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:i,hasZ:r,hasM:n,segmentCountArc:s,segmentCountBezier:o}=this,a=P(e,t,i,r,n,this.hasCurves(),s,o);a.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:h,vertexM:u}=this;if(a.vertexXY.set(l.subarray(0,2*t),0),a.vertexZ?.set(h.subarray(0,t),0),a.vertexM?.set(u.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,i+1)),a.partOffsets.set(e.subarray(0,i+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:i,segmentParams:r,segmentParamCount:n}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(i.subarray(0,t),0),a.segmentParams.set(r.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 i=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,i)=>Math.abs(e-i)>t||isNaN(e)!==isNaN(i);for(let t=0;t<this.vertexCount;++t)if(i(this.vertexXY[2*t],e.vertexXY[2*t])||i(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(i(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(i(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(i(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 w(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 w{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,i=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[i++],r=t[i++],n=t[i++],s=t[i++];return{b:[this.end,[e,r],[n,s]]}}let r=t[i++],n=t[i++],s=t[i++],o=t[i++],a=t[i++],l=t[i++];i++,i++;let h=t[i++],u=t[i++];if(!(4&r)&&1===s)return{c:[this.end,[h,u]]};let c=2&r?0:1,p=1&r?0:1;return{a:[this.end,[a,l],c,p,o,n,s]}}}function _(e,t){let i={stack:[],error:void 0,hasError:!1};try{return t??=(0,s.Ie)(),(0,r.mS)(i,new S(e,["vertexZ","vertexM","spatialReference"]),!1),(0,s.bx)(t,function(e){let t,{vertexCount:i,vertexXY:n,vertexZ:o,vertexM:a}=e,l=R(e);if(e.hasCurves()){let i={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(i,new S(e,["vertexZ","vertexM"]),!1);let n=(0,s.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:i}of t.segments)(0,u.e)(n,e,i),e=(0,c.yP)(i)}let[o,a,h,p]=n;t={xmin:o,ymin:a,xmax:h,ymax:p,spatialReference:l}}catch(e){i.error=e,i.hasError=!0}finally{(0,r.hk)(i)}}else{let e,r,s,o;e=r=1/0,s=o=-1/0;for(let t=0;t<i;++t){let i=n[2*t],a=n[2*t+1];e=Math.min(e,i),s=Math.max(s,i),r=Math.min(r,a),o=Math.max(o,a)}t={xmin:e,ymin:r,xmax:s,ymax:o,spatialReference:l}}if(o){let e=1/0,i=-1/0;for(let t of o)e=Math.min(e,t),i=Math.max(i,t);t.zmin=e,t.zmax=i}if(a){let e=1/0,i=-1/0;for(let t of a)e=Math.min(e,t),i=Math.max(i,t);t.mmin=e,t.mmax=i}return t}(e)),t}catch(e){i.error=e,i.hasError=!0}finally{(0,r.hk)(i)}}function C(e){let t,i,r;if((0,o.fT)(e)){r="point";let{x:n,y:s,z:o,m:a}=e,l=[n,s];null!=o&&l.push(o),null!=a&&l.push(a),i=[[l]],t=1}else(0,o.U9)(e)?(r="multipoint",i=[e.points],t=e.points.length):(0,o.Rg)(e)?(r="polyline",i=e.curvePaths??e.paths,t=i.reduce((e,t)=>e+t.length,0)):(r="polygon",i=e.curveRings??e.rings,t=i.reduce((e,t)=>(0===t.length||(e+=t.length,O(t[0],(0,c.yP)(t.at(-1)))&&--e),e),0));let n=P(r,t,r.includes("point")?0:i.length,(0,o.Pv)(e),(0,o.W0)(e),(0,c.Ed)(e)),{hasZ:s,hasM:a,vertexXY:l,vertexZ:h,vertexM:u}=n;function p(e){l[2*f]=e[0],l[2*f+1]=e[1],s&&(h[f]=e[2]),a&&(u[f]=e[d]),++f}n.spatialReference=e.spatialReference??void 0;let d=n.hasZ?3:2,f=0;if(!n.isMultipart()){if(!s&&!a){for(let[e,t]of i[0])l[2*f]=e,l[2*f+1]=t,++f;return n}for(let e of i[0])p(e);return n}let m="polygon"===r,{partOffsets:g}=n,y=0;if(!(0,c.Ed)(e)){for(let e of i){if(g[y++]=f,0===e.length)continue;let t=e.length;if(m&&O(e[0],e.at(-1))&&--t,s||a)for(let i=0;i<t;++i)p(e[i]);else for(let i=0;i<t;++i){let[t,r]=e[i];l[2*f]=t,l[2*f+1]=r,++f}}return g[y]=f,n}function v(e){let t=w+e;if(t<=(n.segmentParams?.length??0))return;let i=t*L;i=20*Math.ceil(i/20);let r=n.segmentParams;n.segmentParams=new Float64Array(i),null!=r&&n.segmentParams.set(r)}let w=0;for(let e of i){if(n.partOffsets[y++]=f,0===e.length)continue;let t=e[0],i=t;for(let t=1;t<e.length;++t){let r=e[t];p(i);let s=f-1;(0,c.wY)(r)?(v(10),++n.segmentCountArc,w=I(i,r,n,s,w),i=r.a[0]):(0,c.DA)(r)?(v(10),++n.segmentCountArc,w=D(i,r,n,s,w),i=r.a[0]):(0,c.aO)(r)?(v(10),++n.segmentCountArc,w=E(i,r,n,s,w),i=r.c[0]):(0,c.n1)(r)?(v(4),++n.segmentCountBezier,w=N(0,r,n,s,w),i=r.b[0]):i=r}m&&O(t,i)||p(i)}return n.partOffsets[y]=f,n}function b(e){let t=Z(e),{vertexCount:i,partCount:r,hasZ:n,hasM:s}=e,o=R(e),a=0;if(!e.isMultipart()){if("point"===e.type){let[t,i]=e.vertexXY;return{x:t,y:i,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:o}}let r=[];for(;a<i;)r.push(t(a++));return{points:r,spatialReference:o,hasZ:n,hasM:s}}if(!e.hasCurves()){let i=[];for(let n=0;n<r;++n){let r=!!(1&e.partFlags[n]),s=e.partOffsets[n+1],o=[];for(;a<s;)o.push(t(a++));r&&o.length>0&&o.push([...o[0]]),i.push(o)}return"polygon"===e.type?{rings:i,hasZ:n,hasM:s,spatialReference:o}:{paths:i,hasZ:n,hasM:s,spatialReference:o}}let l=[];for(let{segments:t,startVertex:i}of e.parts){let e=[i];for(let{curve:i}of t)e.push(i);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 x(e,{lengths:t,coords:i,hasZ:r,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);r??=!1,n??=!1;let h=P(e,l,o,r,n,!1,0,0);if(h.spatialReference=s??void 0,!h.isMultipart()){for(let e=0,t=0;e<l;++e)h.vertexXY[2*e]=i[t++],h.vertexXY[2*e+1]=i[t++],r&&(h.vertexZ[e]=i[t++]),n&&(h.vertexM[e]=i[t++]);return h}let u=2+Number(r)+Number(n),c=0,p=0;h.partOffsets[0]=0;for(let e of t){let t=h.partOffsets[p],s=t+e-Number(a);h.partOffsets[++p]=s;for(let e=t;e<s;++e)h.vertexXY[2*e]=i[c++],h.vertexXY[2*e+1]=i[c++],r&&(h.vertexZ[e]=i[c++]),n&&(h.vertexM[e]=i[c++]);a&&(c+=u)}return h}function M({type:e,vertexCount:t,vertexXY:i,vertexZ:r,vertexM:n,partCount:s,partOffsets:o,partFlags:a,hasZ:l,hasM:h}){let u=new f.A([],[],l,h);s=Math.max(s,1);let c=0;for(let e=0;e<s;++e){let s=o?.[e+1]??t,p=u.coords.length;for(let e=c;e<s;++e)u.coords.push(i[2*e],i[2*e+1]),l&&u.coords.push(r[e]),h&&u.coords.push(n[e]);if(a&&1&a[e]){let e=c;u.coords.push(i[2*e],i[2*e+1]),l&&u.coords.push(r[e]),h&&u.coords.push(n[e])}u.lengths.push((u.coords.length-p)/u.stride),c=s}return"point"===e&&(u.lengths.length=0),u}function A(...e){let t=new Set;for(let i of e){if(!i)continue;let e=[i.vertexXY,i.vertexZ,i.vertexM,i.partOffsets,i.partFlags,i.segmentFlags,i.segmentIndices,i.segmentParams];for(let i of e){let e=i?.buffer;e&&t.add(e)}}return Array.from(t)}function T(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,i=e.isCustomWkid()?0:e.getOldID();if(i<=0)return{wkt:t};let r=e.getLatestID();(r<=0||r===i)&&(r=void 0);let n=e.getVCS();if(null==n)return{wkid:i,latestWkid:r,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:i,wkt:t,latestWkid:r,vcsWkid:s,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new m({...e.toFlatGeometry(),spatialReference:t})}class S{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let i of t)e[i]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function R({spatialReference:e}){return e instanceof n.A?e.toJSON():e}function Z({vertexXY:e,vertexZ:t,vertexM:i}){return t?i?r=>[e[2*r],e[2*r+1],t[r],i[r]]:i=>[e[2*i],e[2*i+1],t[i]]:i?t=>[e[2*t],e[2*t+1],i[t]]:t=>[e[2*t],e[2*t+1]]}function O(e,t){return e.every((e,i)=>e===t[i])}function P(e,t,i,r,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:i,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a}),h=2*Float64Array.BYTES_PER_ELEMENT*t;r&&(h+=Float64Array.BYTES_PER_ELEMENT*t),n&&(h+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(h+=(i+1)*Int32Array.BYTES_PER_ELEMENT,h+=(i+1)*Int8Array.BYTES_PER_ELEMENT),s&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let u=new ArrayBuffer(h),c=0;return l.vertexXY=new Float64Array(u,c,2*t),c+=l.vertexXY.byteLength,r&&(l.vertexZ=new Float64Array(u,c,t),c+=l.vertexZ.byteLength),n&&(l.vertexM=new Float64Array(u,c,t),c+=l.vertexM.byteLength),s&&(l.segmentParams=new Float64Array(u,c,l.segmentParamCount),c+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(u,c,t),l.segmentIndices.fill(V),c+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(u,c,i+1),c+=l.partOffsets.byteLength,l.partFlags=new Int8Array(u,c,i+1),c+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,i).fill(1)),s&&(l.segmentFlags=new Int8Array(u,c,t),l.segmentFlags.fill(1),c+=l.segmentFlags.byteLength),l}function I(e,t,{segmentFlags:i,segmentIndices:r,segmentParams:n},s,o){i[s]=4,r[s]=o;let[a,[l,h],u,c,p,f,m]=t.a,g=4;c||(g|=1),u||(g|=2);let y=(0,d.SW)(e,t),[v,w]=(0,d.Uk)(y,.5);return n[o++]=g,n[o++]=f,n[o++]=m,n[o++]=p,n[o++]=l,n[o++]=h,n[o++]=y.u2-y.u1,n[o++]=y.u1,n[o++]=v,n[o++]=w,o}function D(e,t,{segmentFlags:i,segmentIndices:r,segmentParams:n},s,o){i[s]=4,r[s]=o;let a=(0,p.io)(e,t);return z(a,4,...(0,l.mq)(a,.5),n,o)}function E(e,t,{segmentFlags:i,segmentIndices:r,segmentParams:n},s,o){return i[s]=4,r[s]=o,z((0,h.pM)(e,t),0,...t.c[1],n,o)}function z(e,t,i,r,n,s){let{cx:o,cy:a,thetaStart:l,thetaEnd:h,radius:u}=e;return l>h||(t|=1),Math.abs(h-l)<=Math.PI||(t|=2),n[s++]=t,n[s++]=u,n[s++]=1,n[s++]=0,n[s++]=o,n[s++]=a,n[s++]=h-l,n[s++]=l,n[s++]=i,n[s++]=r,s}function N(e,{b:[t,[i,r],[n,s]]},{segmentFlags:o,segmentIndices:a,segmentParams:l},h,u){return o[h]=2,a[h]=u,l[u++]=i,l[u++]=r,l[u++]=n,l[u++]=s,u}const L=1.61803,V=-1},54239(e,t,i){i.d(t,{A:()=>y});var r,n=i(32198),s=i(4576),o=i(66552),a=i(25482),l=i(86211),h=i(67076),u=i(91429),c=i(97348),p=i(43937),d=i(36005);const f=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=f.jsonValues.slice();(0,s.Xy)(m,"orthometric");const g=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=r=class extends a.o{constructor(e){super(e),this.origin=0,this.associatedSpatialReference=null,this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}read(e,t){super.read(e,t),("service"===t?.origin||"web-scene"===t?.origin)&&(this.origin="service"===t.origin?2:1,this.associatedSpatialReference=null)}writeHeightModel(e,t,i){return f.write(e,t,i)}readHeightModel(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(function(e,t){return new h.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,l.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS,origin:this.origin,associatedSpatialReference:this.associatedSpatialReference})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static fromSpatialReference(e){let{latestVcsWkid:t,vcsWkid:i}=e;if(!i)return null;let n=(null==t?null:c.B.get(t))??c.B.get(i);return n?new r({heightModel:0===n.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(n.unit.name),vertCRS:n.datum,origin:3,associatedSpatialReference:e}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;let t=new r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new h.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n.Cg)([(0,u.MZ)()],y.prototype,"origin",void 0),(0,n.Cg)([(0,u.MZ)()],y.prototype,"associatedSpatialReference",void 0),(0,n.Cg)([(0,u.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,n.Cg)([(0,p.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,n.Cg)([(0,d.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,n.Cg)([(0,u.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,n.Cg)([(0,d.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,n.Cg)([(0,d.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,n.Cg)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,n.Cg)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=r=(0,n.Cg)([(0,u.$K)("esri.geometry.HeightModelInfo")],y)},48526(e,t,i){i.d(t,{A:()=>g});var r,n=i(32198),s=i(4576),o=i(4718),a=i(91429),l=i(5443),h=i(91075),u=i(86738),c=i(16930),p=i(90634),d=i(47610),f=i(56993),m=i(43937);let g=r=class extends h.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:i,hasZ:r,spatialReference:n}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,i??=!0;break;case 3:r??=!0!==i,i??=!r;break;default:r??=!1,i??=!1}return n??=c.A.WGS84,{...e,hasM:i,hasZ:r,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,p.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:i,hasZ:n}=this;return new r({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:i,hasZ:n})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,i=e.spatialReference;return!(null!=t!=(null!=i)||null!=t&&null!=i&&!t.equals(i))&&(0,s.aI)(this.points,e.points,d.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],i={x:t[0],y:t[1],spatialReference:this.spatialReference},r=2;return this.hasZ&&(i.z=t[2],r=3),this.hasM&&(i.m=t[r]),new u.A(i)}removePoint(e){if(!this._validateInputs(e))return null;let t=new u.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=r=(0,n.Cg)([(0,a.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,i){i.d(t,{A:()=>f});var r,n=i(32198),s=i(4718),o=i(91429),a=i(5443),l=i(91075),h=i(86738),u=i(16930),c=i(90634),p=i(56993),d=i(43937);let f=r=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:i,hasZ:r,spatialReference:n}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,i??=!0;break;case 3:r??=!0!==i,i??=!r;break;default:r??=!1,i??=!1}return n??=u.A.WGS84,{...e,hasM:i,hasZ:r,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,i=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let r=[];for(let t=0,i=e.length;t<i;t++)r[t]=e[t].toArray();t[i]=r}else t[i]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new r;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 i=this.paths[e][t],r=this.hasZ,n=this.hasM;return r&&!n?new h.A(i[0],i[1],i[2],void 0,this.spatialReference):n&&!r?new h.A(i[0],i[1],void 0,i[2],this.spatialReference):r&&n?new h.A(i[0],i[1],i[2],i[3],this.spatialReference):new h.A(i[0],i[1],this.spatialReference)}insertPoint(e,t,i){return this._validateInputs(e,t,!0)?((0,p.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e].splice(t,0,i),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],i=this.spatialReference,r=t.map(e=>new h.A(e,i));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;let i=new h.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(e,t,i){return this._validateInputs(e,t)?((0,p.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e][t]=i,this.notifyChange("paths"),this):this}_validateInputs(e,t,i=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let r=this.paths[e];if(i&&(t<0||t>r.length)||!i&&(t<0||t>=r.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,d.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,d.K)("paths")],f.prototype,"writePaths",null),f=r=(0,n.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},89506(e,t,i){i.d(t,{WP:()=>h}),i(86211);var r=i(86742);let n,s,o,a,l;async function h(){if(!n||!(0,r.s)()){let[e]=await Promise.all([i.e(506).then(()=>i(78125)),(0,r.load)()]);n=e.fromGeometry,s=e.fromSpatialReference,o=e.getSpatialReference,a=(0,r.f)(),l=a}}i(85036)},40427(e,t,i){i.d(t,{nG:()=>h}),i(86211);var r=i(35223);let n,s,o,a,l;async function h(){if(!n||!(0,r.s)()){let[e]=await Promise.all([i.e(506).then(()=>i(78125)),(0,r.load)()]);n=e.fromGeometry,s=e.fromSpatialReference,o=e.getSpatialReference,a=(0,r.f)(),l=a}}i(85036)},86742(e,t,i){i.d(t,{execute:()=>a,f:()=>l,load:()=>o,s:()=>s});var r=i(83290);let n;function s(){return!!n&&(0,r.i)()}async function o(){if(!s()){let[e,t]=await Promise.all([Promise.all([i.e(2024),i.e(6558)]).then(()=>i(6558)),i.e(3375).then(()=>i(15756)).then(({injectPe:e})=>e),(0,r.l)()]);n=new e.OperatorGeodeticArea,t(r.p)}}function a(e,t,i){return n.execute(e,t,i,null)}function l(){return n.supportsCurves()}},77085(e,t,i){i.d(t,{execute:()=>o,load:()=>s}),i(76061);var r=i(83290);let n;async function s(){if(!n||!(0,r.i)()){let[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(1088)]).then(()=>i(31088)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(()=>i(15756)).then(({injectPe:e})=>e),(0,r.l)()]);n=new e.OperatorGeodeticDensifyByLength,t(r.p)}}function o(e,t,i,r){return n.execute(e,t,i,r,null)}},35223(e,t,i){i.d(t,{execute:()=>a,f:()=>l,load:()=>o,s:()=>s});var r=i(83290);let n;function s(){return!!n&&(0,r.i)()}async function o(){if(!s()){let[e,t]=await Promise.all([i.e(8879).then(()=>i(28879)),i.e(3375).then(()=>i(15756)).then(({injectPe:e})=>e),(0,r.l)()]);n=new e.OperatorGeodeticLength,t(r.p)}}function a(e,t,i){return n.execute(e,t,i,null)}function l(){return n.supportsCurves()}},4144(e,t,i){i.r(t),i.d(t,{clipToSpatialReference:()=>l,execute:()=>h,executeMany:()=>u,foldInto360Range:()=>c,foldInto360RangeGeodetic:()=>p,isLoaded:()=>o,load:()=>a,normalizeGeometry:()=>d,supportsCurves:()=>f,transform:()=>m});var r=i(76061),n=i(83290);let s;function o(){return!!s&&(0,n.i)()}async function a(){if(!o()){let[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(9192)]).then(()=>i(9192)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(()=>i(15756)).then(({injectPe:e})=>e),(0,n.l)()]);s=new e.OperatorProject,t(n.p)}}function l(e,t,i){return s.clipToSpatialReference(e,t,null,i)}function h(e,t){return s.execute(e,t,null)}function u(e,t){let i=s.executeMany(new r.S(e),t,null);return Array.from(i)}function c(e,t){return s.foldInto360Range(e,t)}function p(e,t,i){return s.foldInto360RangeGeodetic(e,t,i)}function d(e,t,i){return s.normalizeGeometry(e,t,i)}function f(){return s.supportsCurves()}function m(e,t,i,r,n){return s.transform(e,t,i,r,n)}},81150(e,t,i){i.d(t,{execute:()=>o,f:()=>h,isSimpleAsFeature:()=>l,z:()=>a});var r=i(76061),n=(i(55537),i(88885),i(39117));i(95213);const s=new n.J;function o(e,t,i){return s.execute(e,t,i,null)}function a(e,t,i){let n=s.executeMany(new r.S(e),t,i,null);return Array.from(n)}function l(e,t,i){return s.isSimpleAsFeature(e,t,i,null,null)}function h(){return s.supportsCurves()}},965(e,t,i){i.d(t,{lengthExecute:()=>s});var r=i(86211),n=i(78125);function s(e,t={}){let{unit:i}=t,s=(0,n.fromGeometry)(e).calculateLength2D();if(s&&i){let t=(0,n.getSpatialReference)(e);s=(0,r.PQ)(s,t,i)}return s}i(85036)},83276(e,t,i){i.r(t),i.d(t,{execute:()=>v,executeMany:()=>_,isLoaded:()=>f,load:()=>g,projectExecute:()=>y,projectExecuteMany:()=>w,projectIsLoaded:()=>d,projectLoad:()=>m,projectSupportsCurves:()=>c,supportsCurves:()=>p});var r=i(4144),n=i(85036),s=i(17499);let o,a,l,h,u,c,p;function d(){return!!o&&(0,r.isLoaded)()}function f(){return(0,n.Q)("projectOperator","isLoaded","projectIsLoaded"),d()}async function m(){if(!d()){let[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(9567),i.e(9829),i.e(1666)]).then(()=>i(78125)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(6129)]).then(()=>i(86129)),(0,r.load)()]);o=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,h=e.toGeometry,u=t.createProjectionTransformation,c=(0,r.supportsCurves)(),p=c}}function g(){return(0,n.Q)("projectOperator","load","projectLoad"),m()}function y(e,t,i){let n=l(e),c=u(a(n),a(t),i),p=h((0,r.execute)(o(e),c),t);return!i?.zConversionDisabled&&p?.hasZ&&(0,s.g)([p],n,t),p}function v(e,t,i){return(0,n.Q)("projectOperator","execute","projectExecute"),y(e,t,i)}function w(e,t,i){let n=e.map(o),c=l(e),p=u(a(c),a(t),i),d=(0,r.executeMany)(n,p).map(e=>h(e,t));return!i?.zConversionDisabled&&d&&(0,s.g)(d,c,t),d}function _(e,t,i){return(0,n.Q)("projectOperator","executeMany","projectExecuteMany"),w(e,t,i)}},78125(e,t,i){i.r(t),i.d(t,{fromExtent:()=>g,fromGeometry:()=>m,fromMultipoint:()=>y,fromPoint:()=>v,fromPolygon:()=>w,fromPolyline:()=>_,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>b,getSpatialReference:()=>f,toExtent:()=>M,toGeometry:()=>x,toMultipoint:()=>A,toPoint:()=>T,toPolygon:()=>S,toPolyline:()=>R});var r=i(83661),n=i(55537),s=i(95213),o=i(88885),a=i(5443),l=i(48526),h=i(86738),u=i(39829),c=i(82799),p=(i(90293),i(83299));const d="_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 _(e);case"polygon":return w(e);case"extent":return g(e);default:throw Error(`Unsupported geometry type: ${e.type}`)}}function g(e){if(!e.getCacheValue(d)){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(d,t)}return e.getCacheValue(d)}function y(e){if(!e.getCacheValue(d)){let t=new o.M,i=new s.P,r=e.points,n=e.hasM,a=e.hasZ,l=a?3:2;for(let e=0,s=r.length;e<s;e++){let s=r[e];i.setXYCoords(s[0],s[1]),a&&i.setZ(s[2]??0),n&&i.setM(s[l]??NaN),t.add(i)}e.setCacheValue(d,t)}return e.getCacheValue(d)}function v(e){if(!e.getCacheValue(d)){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(d,t)}return e.getCacheValue(d)}function w(e){if(!e.getCacheValue(d)){let{curveRings:t,hasM:i,hasZ:r,rings:n}=e,s=(0,p.fromGeometryToGXGeometry)({curveRings:t,hasM:i,hasZ:r,rings:n});e.setCacheValue(d,s)}return e.getCacheValue(d)}function _(e){if(!e.getCacheValue(d)){let{curvePaths:t,hasM:i,hasZ:r,paths:n}=e,s=(0,p.fromGeometryToGXGeometry)({curvePaths:t,hasM:i,hasZ:r,paths:n});e.setCacheValue(d,s)}return e.getCacheValue(d)}function C(e){if(!e.getCacheValue(d)){let{curvePaths:t,hasM:i,hasZ:r,paths:n}=e,s=(0,p.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:i,hasZ:r,paths:n});e.setCacheValue(d,s)}return e.getCacheValue(d)}function b(e){return e.cache?(e.cache[d]??=(0,p.fromSpatialReference)(e),e.cache[d]):(0,p.fromSpatialReference)(e)}function x(e,t){if(e)switch(e.getGeometryType()){case n.G.enumPoint:return T(e,t);case n.G.enumEnvelope:return M(e,t);case n.G.enumMultiPoint:return A(e,t);case n.G.enumPolyline:return R(e,t);case n.G.enumPolygon:return S(e,t)}return null}function M(e,t){if(e.isEmpty())return null;let i=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){let t=e.queryInterval(2,0);i.mmin=t.vmin,i.mmax=t.vmax}if(r.hasZ()){let t=e.queryInterval(1,0);i.zmin=t.vmin,i.zmax=t.vmax}return i.setCacheValue(d,e),i}function A(e,t){if(e.isEmpty())return null;let i=e.getDescription(),r=i.hasM(),n=i.hasZ(),o=[],a=new s.P;for(let t=0,i=e.getPointCount();t<i;t++){e.getPointByVal(t,a);let i=[a.getX(),a.getY()];n&&i.push(a.getZ()),r&&i.push(a.getM()),o.push(i)}let h=new l.A({hasM:r,hasZ:n,points:o,spatialReference:t});return h.setCacheValue(d,e),h}function T(e,t){if(e instanceof r.P)return new h.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;let i=new h.A({x:e.getX(),y:e.getY(),spatialReference:t}),n=e.getDescription();return n.hasM()&&(i.m=e.getM()),n.hasZ()&&(i.z=e.getZ()),i.setCacheValue(d,e),i}function S(e,t){if(e.isEmpty())return null;let i=u.A.fromJSON({...(0,p.toGeometry)(e,null),spatialReference:t});return i.setCacheValue(d,e),i}function R(e,t){if(e.isEmpty())return null;let i=c.A.fromJSON({...(0,p.toGeometry)(e,null),spatialReference:t});return i.setCacheValue(d,e),i}},85036(e,t,i){i.d(t,{Q:()=>s});var r=i(51447),n=i(53966);function s(e,t,i){(0,r.io)(n.A.getLogger(`esri.geometry.operators.${e}`),`${t} is deprecated. Refactor using @arcgis/codemod or manually replace usages with ${i} instead.`,{replacement:i,warnOnce:!0})}},17499(e,t,i){i.d(t,{g:()=>s});var r=i(60408),n=i(62815);function s(e,t,i){let s;for(let o of e)if(o&&(0,r.Pv)(o)&&!("vertexAttributes"in o)){if(!s){let e="type"in o?o.type:(0,r.$B)(o);if(s=(0,n.N)(e,t,i),!s)return}s(o)}}},72727(e,t,i){function r(e,t,i){if(t<=0)return 0;let r=e-i;return r<0?0:Math.floor(r/t)+1}i.d(t,{k:()=>r}),i(53966)},60408(e,t,i){function r(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 h(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function u(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)}i.d(t,{$B:()=>h,Bi:()=>a,Pv:()=>u,Rg:()=>o,U9:()=>n,W0:()=>c,ZC:()=>r,fT:()=>s,uW:()=>l})},65864(e,t,i){i.d(t,{rS:()=>u,xD:()=>p});var r=i(5443),n=i(91075),s=i(48526),o=i(86738),a=i(39829),l=i(82799),h=i(60408);function u(e){return null==e?null:e instanceof n.A?e:(0,h.fT)(e)?o.A.fromJSON(e):(0,h.Rg)(e)?l.A.fromJSON(e):(0,h.Bi)(e)?a.A.fromJSON(e):(0,h.U9)(e)?s.A.fromJSON(e):(0,h.ZC)(e)?r.A.fromJSON(e):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function p(e){return e&&c[e]||null}},27921(e,t,i){i.d(t,{$Q:()=>R,BX:()=>S,C:()=>h,Cr:()=>d,H:()=>O,LV:()=>l,O_:()=>p,Qj:()=>u,T7:()=>M,Ui:()=>x,_I:()=>P,fA:()=>c,gv:()=>A,lU:()=>f,mN:()=>I,mP:()=>C,mR:()=>b,vE:()=>z,vt:()=>a,wE:()=>D});var r=i(34727),n=i(35522),s=i(51850),o=(i(78955),i(44280),i(32114));function a(e=N){return[e[0],e[1],e[2],e[3]]}function l(e=N[0],t=N[1],i=N[2],r=N[3]){return c(e,t,i,r,o.Km.get())}function h(e,t){return c(t[0],t[1],t[2],t[3],e)}function u(e){return e}function c(e,t,i,r,n=a()){return n[0]=e,n[1]=t,n[2]=i,n[3]=r,n}function p(e,t,i){let r=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return i[0]=t[0]*n,i[1]=t[1]*n,i[2]=t[2]*n,i[3]=-(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]),i}function d(e,t,i,r=a()){let n=i[0]-t[0],s=i[1]-t[1],o=i[2]-t[2],l=e[0]-t[0],h=e[1]-t[1],u=e[2]-t[2],c=s*u-o*h,p=o*l-n*u,d=n*h-s*l,f=c*c+p*p+d*d,m=Math.abs(f-1)>1e-5&&f>1e-12?1/Math.sqrt(f):1;return r[0]=c*m,r[1]=p*m,r[2]=d*m,r[3]=-(r[0]*e[0]+r[1]*e[1]+r[2]*e[2]),r}function f(e,t,i,r=0,s=Math.floor(1/3*i),o=Math.floor(2/3*i)){if(i<3)return!1;t(g,r);let a=s,l=!1;for(;a<i-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<i&&!l;)t(v,a),a++,(0,n.Re)(w,g,y),(0,n.S8)(w,w),(0,n.Re)(_,y,v),(0,n.S8)(_,_),l=!(0,n.t2)(g,v)&&!(0,n.t2)(y,v)&&Math.abs((0,n.Om)(w,_))<m;return l?(d(g,y,v,e),!0):(0!==r||1!==s||2!==o)&&f(e,t,i,0,1,2)}i(32728);const m=.99619469809,g=(0,s.vt)(),y=(0,s.vt)(),v=(0,s.vt)(),w=(0,s.vt)(),_=(0,s.vt)();function C(e,t,i){return t!==e&&h(e,t),e[3]=-(0,n.Om)(e,i),e}function b(e,t,i,r){return(0,n.$A)(v,t,e),p(i,v,r)}function x(e,t,i){return null!=t&&E(z(e,t.origin,t.direction,L,i))}function M(e,t,i){return E(z(e,t.origin,t.vector,0,i))}function A(e,t,i){return E(z(e,t.origin,t.vector,1,i))}function T(e,t){return I(e,t)<=0}function S(e,t){return I(e,t)>=0}function R(e,t){return function(e,t,i,r,s,o,a){let l=(0,n.Om)(e,i),h=I(e,t);if(l>-1e-6&&l<1e-6)return Z(h,s,o);let u=-h/l,c=Z(l,s,!1);return!(a&&!c&&!Z(h,s,o))&&(c?u>r.c0&&(r.c0=u):u<r.c1&&(r.c1=u),r.c0<=r.c1)}(e,t.ray.origin,t.ray.direction,t,!1,!1,!0)}function Z(e,t,i){return i?t?e>=0:e<=0:t?e>0:e<0}function O(e,t,i,r=!1){let s=t.at(-1),o=I(e,s),a=r?o>0:o<=0;for(let l=0;l<t.length;l++){let h=t.at(l),u=I(e,h),c=r?u>0:u<=0;a!==c&&(0,n.Cc)(i(),s,h,o/(o-u)),c&&(0,n.C)(i(),h),s=h,o=u,a=c}}function P(e,t,i){let r=(0,n.hs)(o.rq.get(),e,-e[3]),s=function(e,t,i){let r=(0,n.hs)(o.rq.get(),e,(0,n.Om)(e,t));return(0,n.Re)(i,t,r),i}(e,(0,n.Re)(o.rq.get(),t,r),o.rq.get());return(0,n.WQ)(i,s,r),i}function I(e,t){return(0,n.Om)(e,t)+e[3]}function D(e,t,i){for(let r=0;r<i;++r)if(T(e,t[r]))return!1;return!0}function E(e){return 0===e||1===e}function z(e,t,i,s,o){let a=(0,n.Om)(e,i),l=I(e,t);if(0===a)return l>=0?2:3;let h=-l/a;return 1&s&&(h=(0,r.qE)(h,0,1)),!(4&s)&&h<0||!(8&s)&&h>1?l>=0?2:3:((0,n.WQ)(o,t,(0,n.hs)(o,i,h)),l>=0?0:1)}const N=[0,0,1,0],L=8;(0,s.vt)()},44280(e,t,i){i.d(t,{g7:()=>a,gr:()=>o});var r=i(34727),n=i(35522),s=i(51850);function o(e,t){return(0,n.Om)(e,t)/(0,n.Bw)(e)}function a(e,t){let i=(0,n.Om)(e,t)/((0,n.Bw)(e)*(0,n.Bw)(t));return-(0,r.XM)(i)}(0,s.vt)(),(0,s.vt)()},32114(e,t,i){i.d(t,{Rc:()=>d,rq:()=>c,Km:()=>p}),i(44208);var r=i(26390),n=i(29242),s=i(9093),o=i(82534),a=i(48163),l=i(51850),h=i(91829);class u{constructor(e){this._create=e,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.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 u(a.vt)}static createVec3f64(){return new u(l.vt)}static createVec4f64(){return new u(h.vt)}static createMat3f64(){return new u(n.vt)}static createMat4f64(){return new u(s.vt)}static createQuatf64(){return new u(o.vt)}get test(){}}u.createVec2f64();const c=u.createVec3f64(),p=u.createVec4f64(),d=(u.createMat3f64(),u.createMat4f64());u.createQuatf64()},97770(e,t,i){i.d(t,{Ey:()=>O,F8:()=>Z,J2:()=>A,Yq:()=>S,_m:()=>T,iS:()=>R,wj:()=>P});var r=i(66552),n=i(73444),s=i(98623),o=i(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},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},p={year:"numeric",month:"short",day:"numeric"},d={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},w={"short-date":u,"short-date-short-time":{...u,...f},"short-date-short-time-24":{...u,...y},"short-date-long-time":{...u,...m},"short-date-long-time-24":{...u,...v},"short-date-le":u,"short-date-le-short-time":{...u,...f},"short-date-le-short-time-24":{...u,...y},"short-date-le-long-time":{...u,...m},"short-date-le-long-time-24":{...u,...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":p,"day-short-month-year-short-time":{...p,...f},"day-short-month-year-short-time-24":{...p,...y},"day-short-month-year-long-time":{...p,...m},"day-short-month-year-long-time-24":{...p,...v},"long-date":d,"long-date-short-time":{...d,...f},"long-date-short-time-24":{...d,...y},"long-date-long-time":{...d,...m},"long-date-long-time-24":{...d,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":m},_=(0,r.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"}),C={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function b(){let e=(0,n.lR)();return(e&&C[e])??(0,n.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(C.bs="sr-Latn-CS");let x=new WeakMap;const M=w["short-date-short-time"];function A(e){return w[e]}function T(e){let{dateStyle:t,timeStyle:i,hour12:r,year:n,month:s}=e,o={};return t?o.dateStyle=t:n&&(o.year=n,o.month=s||void 0),i&&!o.year&&(o.timeStyle=i,o.hour12="auto"===r?void 0:"always"===r),o}function S(e,t=M){return function(e){let t=x.get(e);if(!t){let i=b(),r=P(e.timeZone??"system"),n={...e,timeZone:r};t=new Intl.DateTimeFormat(i,n),x.set(e,t)}return t}(t).format(e)}function R(e,t=M){return S(new Date(e),{...t,...h,...l})}function Z(e,t=M){return S(new Date(`1970-01-01T${e}Z`),{...t,...h,...a})}function O(e,t=M){let i=o.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return S(i.toJSDate(),t);let r=0===i.offset?"UTC":t.timeZone,n={...t,timeZone:r};return i.toLocaleString(n,{locale:b()})}function P(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,n.Ml)(()=>{x=new WeakMap}),i.d(t,["_v",0,_])},73444(e,t,i){i.d(t,{JK:()=>l,Ml:()=>g,QC:()=>c,lR:()=>u,oQ:()=>f});var r=i(36563);let n;i(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 h=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=l()){return p(e)?.language}function c(e=l()){let t=p(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function p(e=l()){return h.exec(e)?.groups}const d=[];function f(e){return d.push(e),(0,r.hA)(()=>{d.splice(d.indexOf(e),1)})}new Map;const m=[];function g(e){return m.push(e),(0,r.hA)(()=>m.splice(m.indexOf(e),1))}function y(){let e=a();n!==e&&([...m].forEach(t=>t(e)),n=e,[...d].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),o&&new MutationObserver(()=>{y()}).observe(o,{attributeFilter:["lang"]})},38732(e,t,i){i.r(t),i.d(t,{default:()=>A});var r=i(32198),n=i(56507),s=i(49186),o=i(97768),a=i(25728),l=i(17676),h=i(84952),u=i(91429),c=i(4146),p=i(89186),d=i(18768),f=i(85707),m=i(34287),g=i(8303),y=i(10873),v=i(87378),w=i(35982);class _ extends w.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(C.forEach((e,t)=>{e===this&&C.delete(t)}),this.destroy())}}const C=new Map;var b=i(36005);let x=class extends((0,f.a)((0,p.f)((0,d.b)((0,m.q)((0,g.A)((0,a.M)(c.A))))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=C.get(e);return t||(null==e?(t=new _,C.set(null,t)):(t=new _(t=>e.immediate.schedule(t)),C.set(e,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,o.Gz)(this._lercDecoder)}readCapabilities(e,t){let i=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}get memoizedElevationQueryDependencies(){return[this.loadStatus,this.tileInfo,this.fullExtent,this.spatialReference]}readVersion(e,t){let i=t.currentVersion;return i||=9.3,i}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new s.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(l.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,t,i,r){let o=r?.signal,a={responseType:"array-buffer",signal:o,useQueue:r?.useQueue,priority:r?.priority},l={noDataValue:r?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,t,i,r);let h=await(0,n.A)(this.getTileUrl(e,t,i),a),u=await this._lercDecoder.decode(h.data,l,o);if(!u)throw new s.A("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new v.A({values:u.pixelData,width:u.width,height:u.height,noDataValue:u.noDataValue})}getTileUrl(e,t,i){let r=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,n=(0,h.x0)({...this.parsedUrl.query,blankTile:!r&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${n?"?"+n:""}`}async queryElevation(e,t){let{query:r}=await i.e(1359).then(()=>i(1359));return(0,l.Te)(t),r(this,e,t)}async createElevationSampler(e,t){let{createSampler:r}=await i.e(1359).then(()=>i(1359));return(0,l.Te)(t),r(this,e,t)}_fetchTileAvailability(e,t,i,r){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,r):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;let t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,n.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[M]}};(0,r.Cg)([(0,u.MZ)({readOnly:!0})],x.prototype,"capabilities",void 0),(0,r.Cg)([(0,b.w)("service","capabilities",["capabilities"])],x.prototype,"readCapabilities",null),(0,r.Cg)([(0,u.MZ)({json:{read:{source:"copyrightText"}}})],x.prototype,"copyright",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],x.prototype,"path",void 0),(0,r.Cg)([(0,u.MZ)({type:["show","hide"]})],x.prototype,"listMode",void 0),(0,r.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],x.prototype,"minScale",void 0),(0,r.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],x.prototype,"maxScale",void 0),(0,r.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],x.prototype,"opacity",void 0),(0,r.Cg)([(0,u.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],x.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,u.MZ)()],x.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,u.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],x.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)()],x.prototype,"memoizedElevationQueryDependencies",null),(0,r.Cg)([(0,u.MZ)(y.OZ)],x.prototype,"url",void 0),(0,r.Cg)([(0,u.MZ)()],x.prototype,"version",void 0),(0,r.Cg)([(0,b.w)("version",["currentVersion"])],x.prototype,"readVersion",null),x=(0,r.Cg)([(0,u.$K)("esri.layers.ElevationLayer")],x);const M=Symbol("default-fetch-tile");x.prototype.fetchTile[M]=!0;const A=x},4146(e,t,i){i.d(t,{A:()=>v});var r=i(32198),n=i(56507),s=i(49186),o=i(65529),a=i(4902),l=i(92474),h=i(53966),u=i(17676),c=i(84952),p=i(91429),d=i(5443),f=i(16930),m=i(92602),g=i(79677);let y=0,v=class extends((0,o.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new d.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([i.e(812),i.e(7982)]).then(()=>i(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){let t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await Promise.all([i.e(9917),i.e(812),i.e(5613)]).then(()=>i(45613));try{return await r(t)}catch(e){let i=t?.portalItem,r=i?.id||"unset",n=i?.portal?.url||m.A.portalUrl;throw h.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||h.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,r.Cg)([(0,p.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,r.Cg)([(0,p.MZ)({type:d.A})],v.prototype,"fullExtent",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,r.Cg)([(0,p.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,r.Cg)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,r.Cg)([(0,p.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,r.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,r.Cg)([(0,p.MZ)({type:f.A})],v.prototype,"spatialReference",void 0),(0,r.Cg)([(0,p.MZ)({type:String})],v.prototype,"title",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,r.Cg)([(0,p.MZ)()],v.prototype,"url",void 0),(0,r.Cg)([(0,p.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,r.Cg)([(0,p.$K)("esri.layers.Layer")],v)},92722(e,t,i){i.d(t,{A:()=>n});var r=i(69397);class n{constructor(e=[],t=[],i=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=i,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:i,hasM:r}){return new n(e,t,i||!1,r||!1)}static fromRect([e,t,i,r]){let s=i-e,o=r-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,r.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 i of this.lengths){if(i<3)continue;let{stride:r}=this,n=this.coords[r*t],s=this.coords[r*t+1];for(let o=1;o<i;o+=1){let i=r*(t+o),a=this.coords[i],l=this.coords[i+1];e+=-.5*(a-n)*(l+s),n=a,s=l}t+=i}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:i}=this;for(let r of this.lengths){for(let n=0;n<r;n++){let r=i*(t+n);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){let e=this.clone(),{coords:t,lengths:i}=e,r=0,{stride:n}=this;for(let e of i){for(let i=1;i<e;i++){let e=n*(r+i);t[e]+=t[e-n],t[e+1]+=t[e+1-n]}r+=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:i,size:r}=this,s=this.coords.slice(0,r*i);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 i=Array(t*e);for(let t=0,r=0;t<i.length;t+=e)i[r++]=this.coords[t],i[r++]=this.coords[t+1];return new n(this.lengths,i,!1,!1)}}},89186(e,t,i){var r=i(32198),n=i(91429),s=i(16930),o=i(87045),a=i(65509),l=i(25943),h=i(36005);i.d(t,["f",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){let r=t.capabilities?.toLowerCase().includes("tilemap"),{minLOD:n,maxLOD:s,minScale:h,maxScale:u}=t;if(null==n&&null==s&&(0!==h||0!==u)){let e=e=>Math.round(1e4*e)/1e4;h=e(h||t.tileInfo.lods[0].scale),u=e(u||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(let i of t.tileInfo.lods){let t=e(i.scale);n=t>=h?i.level:n,s=t>=u?i.level:s}}if(r)return new l.d({layer:this,minLOD:n,maxLOD:s});if(t.tileInfo){let e=new o.A;return e.read(t.tileInfo,i),new a.A(e,n,s)}return null}};return(0,r.Cg)([(0,n.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,n.MZ)()],i.prototype,"minScale",void 0),(0,r.Cg)([(0,h.w)("service","minScale")],i.prototype,"readMinScale",null),(0,r.Cg)([(0,n.MZ)()],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,h.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,n.MZ)({type:s.A})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,n.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,r.Cg)([(0,n.MZ)({type:o.A})],i.prototype,"tileInfo",void 0),(0,r.Cg)([(0,n.MZ)()],i.prototype,"tilemapCache",void 0),(0,r.Cg)([(0,h.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,r.Cg)([(0,n.MZ)()],i.prototype,"version",void 0),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},85707(e,t,i){var r=i(32198),n=i(91429),s=i(54239);i.d(t,["a",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,r.Cg)([(0,n.MZ)({readOnly:!0,type:s.A})],i.prototype,"heightModelInfo",void 0),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.HeightModelInfoMixin")],i),i}])},63490(e,t,i){i.d(t,{Mr:()=>l,TH:()=>a});var r=i(32198),n=i(69540),s=i(25482),o=i(91429);let a=class extends((0,n.OU)(s.o)){constructor(){super(...arguments),this.url=null}};(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,r.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,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,r.Cg)([(0,o.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l),i.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,i){i.d(t,{eR:()=>b,yP:()=>A,R:()=>Z,o:()=>O,RR:()=>x,l6:()=>M});var r=i(66552),n=(i(86211),i(28735),i(32198)),s=i(69540),o=i(25482),a=i(91429),l=i(69622),h=i(21325);let u=class extends l.A{set horizontalWKID(e){e?(0,h.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,h.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:r,tangentialDistortionCoefficients:n}=this;return e?.length>1&&!Number.isNaN(t)&&i?.length>1&&r?.length>1&&n?.length>1}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"horizontalWKID",null),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"verticalWKID",null),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"z",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"type",void 0),u=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],u);const c=u;let p=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=1}toString(){let{type:e,horizontalWKID:t,verticalWKID:i,x:r,y:n,z:s,heading:o,pitch:a,roll:l,affineTransformations:h,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:p,tangentialDistortionCoefficients:d}=this,f=[e,t,i,r,n,s,o,a,l];return this.isAdvanced&&(h?.forEach(e=>f.push(e)),f.push(u),c?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],p.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"heading",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"pitch",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"roll",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"z",void 0),p=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],p);const d=p;let f=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=4}toString(){let{type:e,latitude:t,longitude:i,ellipsoidRadius:r,squaredEccentricity:n,properties:s}=this,o=`${s}`.split("|");return o.splice(1,1),`${e}|${t}|${i}|${r}|${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:i,x:r,y:n,z:s,omega:o,phi:a,kappa:l,affineTransformations:h,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:p,tangentialDistortionCoefficients:d}=this,f=[e,t,i,r,n,s,o,a,l];return this.isAdvanced&&(h?.forEach(e=>f.push(e)),f.push(u),c?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e)),d?.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:i,radialDistortionCoefficients:r,tangentialDistortionCoefficients:n}=this;return e?.length>1||!Number.isNaN(t)||i?.length>1||r?.length>1||n?.length>1}toString(){let{type:e,horizontalWKID:t,verticalWKID:i,x:r,y:n,z:s,yaw:o,pitch:a,roll:l,affineTransformations:h,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:p,tangentialDistortionCoefficients:d}=this,f=[e,t,i,r,n,s,o,a,l];return this.isAdvanced&&(h?.forEach(e=>f.push(e)),f.push(u),c?.forEach(e=>f.push(e)),c?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e)),d?.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 w=v,_=new Map;_.set("2",{desc:"Using Omega Phi Kappa",constructor:y}),_.set("1",{desc:"Using Heading, Pitch and Roll",constructor:d}),_.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:w}),_.set("4",{desc:"Using Local Tangent Plane",constructor:m});var C=i(63490);function b(e,t,i){return e&&((0,C.E1)(e)?new C.Mr(e):function(e,t,i){let{url:r}=e;return r?(r=function(e,t,i){return t&&(e=`${t}${e}`),i&&(e+=`${i}`),e}(r,t,i),new C.TH({...e,url:r})):null}(e,t,i))}const x=new r.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),M=new r.J({Feet:"feet",Meter:"meter"}),A=new r.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}),T=new Map;T.set("1",function(e){let[t,i,r,n,s,o,a,l,h,u,c,p,d,f,m,g,y,v,w,_,C,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:r,y:n,z:s,heading:o,pitch:a,roll:l,...R([h,u,c,p,d,f],[g,y],[v,w,_],[C,b],m)}}),T.set("3",function(e){let[t,i,r,n,s,o,a,l,h,u,c,p,d,f,m,g,y,v,w,_,C,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:r,y:n,z:s,yaw:o,pitch:a,roll:l,...R([h,u,c,p,d,f],[g,y],[v,w,_],[C,b],m)}}),T.set("2",function(e){let[t,i,r,n,s,o,a,l,h,u,c,p,d,f,m,g,y,v,w,_,C,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:r,y:n,z:s,omega:o,phi:a,kappa:l,...R([h,u,c,p,d,f],[g,y],[v,w,_],[C,b],m)}}),T.set("4",function(e){let[t,i,r,n,s,...o]=e.slice(1),a=T.get(s),l=_.get(s)?.constructor;return a&&l?{latitude:t,longitude:i,ellipsoidRadius:r,squaredEccentricity:n,properties:new l(a([s,"",...o]))}:null});const S=e=>{let t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function R(e,t,i,r,n){let s=S(e),o=S(t),a=S(i),l=S(r);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 O(e,t,i){let r=function(e,t){return e?.length?e.map(({field:e,order:i})=>{let r=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return r?{fieldName:r.name,sortOrder:"desc"===i?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(i,t);if(r?.length)return r;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,i){i.d(t,{A:()=>a});var r,n=i(32198),s=i(25482),o=i(91429);let a=r=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({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=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,i){i.d(t,{A:()=>u});var r,n=i(32198),s=i(4718),o=i(91429),a=i(39357),l=i(76357),h=i(93223);let u=class extends l.A{static{r=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let i=String(e);this.codedValues.some(e=>(String(e.code)===i&&(t=e.name),!!t))}return t}clone(){return new r({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,n.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],u.prototype,"codedValues",void 0),(0,n.Cg)([(0,h.e)({codedValue:"coded-value"})],u.prototype,"type",void 0),u=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],u)},76357(e,t,i){i.d(t,{A:()=>h});var r=i(32198),n=i(66552),s=i(25482),o=i(91429),a=i(93223);const l=new n.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let h=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,r.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),h=(0,r.Cg)([(0,o.$K)("esri.layers.support.Domain")],h)},1359(e,t,i){i.d(t,{createSampler:()=>T,query:()=>A});var r=i(60999),n=i(49186),s=i(44208),o=i(97768),a=i(17676),l=i(86211),h=i(99917),u=i(19419),c=i(4576),p=i(72802);class d{constructor(e,t){this.layer=e,this.parameters=t}}class f extends d{constructor(e,t,i){super(e,i),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{let{tileInfo:t,tilemapCache:i}=this.layer,r=y(t,i)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(r,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 i=t.tile?.id;t.tile=i?e[i]: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 d{constructor(e,t,i,r){super(e,i),this.maskExtents=r,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){let i=this._maximumLodForRequests(t),r=Math.min(i,e);r<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(r)}_maximumLodForRequests(e){let{tileInfo:t,tilemapCache:i}=this.layer,r=y(t,i);if(!e)return r.length-1;let n=this.extent;if(null==n)return-1;for(let i=r.length-1;i>=0;i--){let s=r[i],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 i}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 i=t.id&&e[t.id];i&&(this._fetchedCandidates.add(t),this.elevationTiles.push(i))}}remapTiles(e){this._candidateTiles=v(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){let i=this._candidateTiles;this._candidateTiles=[],i.forEach(i=>{if(this._fetchedCandidates.has(i))return void t?.(i);let r=!1;e(i,()=>r=!0),r?t?.(i):this._candidateTiles.push(i)}),this._candidateTiles=v(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;let t=this.extent;if(null==t)return;let{tileInfo:i,tilemapCache:r}=this.layer,n=y(i,r)[e],s=i.tileAt(n.level,t.xmin,t.ymin),o=s.extent,a=n.resolution*i.size[0],l=n.resolution*i.size[1],h=Math.ceil((t.xmax-o[0])/a),u=Math.ceil((t.ymax-o[1])/l);for(let e=0;e<u;e++)for(let t=0;t<h;t++){let r=new p.U(s.level,s.row-e,s.col+t);i.updateTileInfo(r),this._tileIsMasked(r)||this._candidateTiles.push(r)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,u.gR)(t,e.extent))??!1}}function g(e){return null!=e?.tileInfo}function y(e,t){let i=e.lods;if(g(t)){let{effectiveMinLOD:e,effectiveMaxLOD:r}=t;return i.filter(t=>t.level>=e&&t.level<=r)}return i}function v(e,t){let i={},r=[];for(let n of e){let e=n.id;e&&!i[e]?(i[e]=n,r.push(n)):t?.(n)}let n=r.sort((e,t)=>e.level-t.level);return n.filter((e,i)=>{for(let r=0;r<i;r++){let i=n[r].extent;if(i&&(0,u.gR)(i,e.extent))return t?.(e),!1}return!0})}class w{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 _{constructor(e,t=null){if(this.key=e,null!=t){let i=e.extent;this._samplerData=new w(t,i)}}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:i,data:r,dx:n,dy:s,y1:o,x0:a}=this._samplerData,{width:l,values:h,noDataValue:u}=r,c=C(s*(o-t),0,i),p=C(n*(e-a),0,i),d=Math.floor(c),f=Math.floor(p),m=d*l+f,g=m+l,y=h[m],v=h[g],w=h[m+1],_=h[g+1];if(y!==u&&v!==u&&w!==u&&_!==u){let e=p-f,t=y+(w-y)*e;return t+(v+(_-v)*e-t)*(c-d)}}}function C(e,t,i){return e<t?t:e>i?i:e}var b=i(87378),x=i(10292),M=i(57984);async function A(e,t,i){if(!e)throw new n.A(z,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof x.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 r={...D,...i},a=r.signal;if("integrated-mesh-3dtiles"===e.type){let n=x.q.fromGeometry(t);if(e.queryElevationCallback&&((0,s.A)("enable-feature:im-as-ground")?e.isUsedAsGroundLayer:e.replacesTerrain)){let s=12.9*(i?.minDemResolution||0)+.71,o=await(await e.queryElevationCallback(n,{signal:a,maxGeometricError:s})).project(t.spatialReference,a);if(o){if(void 0!==r.noDataValue&&r.noDataValue!==Number.MAX_VALUE)for(let e of o.coordinates)e.z===Number.MAX_VALUE&&(e.z=r.noDataValue);let t=r.noDataValue??Number.MAX_VALUE,i=o.coordinates.map(i=>({demResolution:i.z===t?-1:1,source:e}));return{geometry:o.export(),noDataValue:t,sampleInfo:i}}}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 i=x.q.fromGeometry(t),r=i.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:i.export(),noDataValue:Number.MAX_VALUE,sampleInfo:r}}let u=new f(e,t.spatialReference,r);return await e.load({signal:a}),await async function(e,t,i){let r,s=e.layer.tileInfo.spatialReference;if(t instanceof x.q?r=await t.project(s,i):(await(0,h.initializeProjection)([{source:t.spatialReference,dest:s}],{signal:i}),r=(0,h.project)(t,s)),!r)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=x.q.fromGeometry(r)}(u,t,a),await Z(u,a),await E(u,a),function(e){e.geometry.coordinates.forEach(t=>{let i=t.elevationTile,r=e.parameters.noDataValue;if(i){let e=i.sample(t.x,t.y);null==e?t.elevationTile=null:r=e}t.z=r})}(u),async function(e,t){let i=await e.geometry.project(e.outSpatialReference,t);(0,o.Lw)(i);let r={geometry:i.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(r.sampleInfo=function(e){let t=e.layer.tileInfo,i=(0,l.GA)(t.spatialReference);return e.geometry.coordinates.map(r=>{let n=-1;return r.elevationTile&&r.elevationTile!==e.outsideExtentTile&&(n=t.lodAt(r.elevationTile.key.level).resolution*i),{demResolution:n,source:-1===n?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),r}(u,a)}async function T(e,t,i){if(e=Array.isArray(e)?e:[e],0===(e=i?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new n.A(z,"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 r={...D,...i,returnSampleInfo:!0},s=S(e[e.length-1],t,r);return 1===e.length?s:R(e,t,await s,r)}async function S(e,t,i,r){let n=i.signal;await e.load({signal:n});let s=t.spatialReference,o=e.tileInfo.spatialReference;s.equals(o)||(await(0,h.initializeProjection)([{source:s,dest:o}],{signal:n}),t=(0,h.project)(t,o));let a=new m(e,t,i,r);await Z(a,n),await E(a,n);let l=a.elevationTiles,u=a.layer.tileInfo,c=a.parameters.noDataValue;return new M.C({noDataValue:c,tiles:l,tileInfo:u})}async function R(e,t,i,r){if(e.pop(),!e.length)return i;let n=i.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,u.VY)(e.extent)),s=await S(e[e.length-1],t,r,n);if(0===s.samplers.length)return i;let o=i.samplers.concat(s.samplers),a=r.noDataValue;return R(e,t,new M.C({samplers:o,noDataValue:a}),r)}async function Z(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;let t=new _(new p.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;let i=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{let r=e.x,n=e.y;(r<i.xmin||r>i.xmax||n<i.ymin||n>i.ymax)&&(e.elevationTile=t)})}(e);let i=e.parameters.demResolution;if("number"==typeof i)!function(e,t){let i=function(e,t){let{tileInfo:i,tilemapCache:r}=e.layer,n=t/(0,l.GA)(i.spatialReference),s=y(i,r),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(i)}(e,i);else if("finest-contiguous"===i)await async function(e,t){let{tileInfo:i,tilemapCache:r}=e.layer;await O(e,I(i,r,e.parameters.minDemResolution),t)}(e,t);else{if("auto"!==i)throw new n.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${i}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){let{tileInfo:t,tilemapCache:i}=e.layer,r=I(t,i,e.parameters.minDemResolution);e.selectTilesAtLOD(r,e.parameters.maximumAutoTileRequests)})(e),function(e){let t=e.layer.tileInfo,i=0,r={},n=e=>{null!=e.id&&(e.id in r?r[e.id]++:(r[e.id]=1,i++))},s=e=>{if(null==e.id)return;let t=r[e.id];1===t?(delete r[e.id],i--):r[e.id]=t-1};e.forEachTileToFetch(n,s);let o=!0;for(;o&&(o=!1,e.forEachTileToFetch(r=>{i<=e.parameters.maximumAutoTileRequests||(s(r),t.upsampleTile(r)&&(o=!0),n(r))},s),o););}(e);let i=e.layer.tilemapCache;if(!i||g(i))return P(e,t);let n=e.getTilesToFetch(),s={},o=n.map(async e=>{let n=new p.U(0,0,0),o=await(0,r.Ke)(i.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 O(e,t,i){let r=e.layer;if(e.selectTilesAtLOD(t),t<0)return;let s=r.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:i}))),i);else if(await E(e,i),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new n.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(r){(0,a.QP)(r),await O(e,t-1,i)}}async function P(e,t){let i=e.layer.tileInfo;await E(e,t);let r=!1;e.forEachTileToFetch((e,t)=>{i.upsampleTile(e)?r=!0:t()}),r&&await P(e,t)}function I(e,t,i=0){let r=y(e,t),n=r.length-1;if(i>0){let t=i/(0,l.GA)(e.spatialReference),s=r.findIndex(e=>e.resolution<t);0===s?n=0:s>0&&(n=s-1)}return n}const D={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function E(e,t){let i=e.getTilesToFetch(),r={},n=e.parameters.cache,s=e.parameters.noDataValue,o={noDataValue:s,signal:t},l=i.map(async t=>{if(null==t.id)return;let i=`${e.layer.uid}:${t.id}:${s}`,a=n?.get(i)??b.A.from(await e.layer.fetchTile(t.level,t.row,t.col,o));n?.put(i,a),r[t.id]=new _(t,a)});await(0,a.qr)(Promise.allSettled(l),t),e.populateElevationTiles(r)}const z="elevation-query:invalid-layer"},7236(e,t,i){i.d(t,{A:()=>h});var r=i(32198),n=i(65529),s=i(53966),o=i(91429),a=i(86738),l=i(28735);let h=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,i){return e.hasZ=!0,e.z=i.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,i){u.spatialReference=t.spatialReference;let r=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];u.x=n[0],u.y=n[1],r&&(t[3]=t[2]),t[2]=i.elevationAt(u.x,u.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,i){u.spatialReference=t.spatialReference;let r=e.hasM&&!e.hasZ;for(let n=0;n<e.points.length;n++){let s=e.points[n],o=t.points[n];u.x=o[0],u.y=o[1],r&&(s[3]=s[2]),s[2]=i.elevationAt(u.x,u.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;let i=e.spatialReference;if(i.equals(t))return e;let r=(0,l.Cv)(e,t);return r||s.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${i.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),r}};h=(0,r.Cg)([(0,o.$K)("esri.layers.support.ElevationSampler")],h);const u=new a.A},87378(e,t,i){i.d(t,{A:()=>a});var r,n=i(34275),s=i(78888);const o=Symbol("ElevationTileDataClass");class a{static{r=o}constructor({values:e,width:t,height:i,noDataValue:s}){this[r]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,n.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=i,this.noDataValue=s}get hasNoDataValues(){if(null==this._hasNoDataValues){let e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;let{noDataValue:e,values:t}=this,i=1/0,r=-1/0,n=!0;for(let s of t)s===e?this._hasNoDataValues=!0:(i=s<i?s:i,r=s>r?s:r,n=!1);n?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=r>-3e38?r:0)}static{this.from=(0,s.qf)(a)}}},20437(e,t,i){i.d(t,{A:()=>f});var r,n=i(32198),s=i(66552),o=i(25482),a=i(91429),l=i(78888),h=i(8631),u=i(98453),c=i(36005),p=i(93223);const d=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{r=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 i=null;try{i=t?JSON.parse(t):null}catch{}return i?.value??null}readValueType(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch{}return i?d.fromJSON(i.fieldValueType):null}clone(){return new r({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:h.g,json:{read:{reader:h.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,p.e)(u.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=r=(0,n.Cg)([(0,a.$K)("esri.layers.support.Field")],f)},95466(e,t,i){i.d(t,{A:()=>h});var r=i(49186),n=i(53966),s=i(12195),o=i(30524),a=i(98623),l=i(56400);class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],c(e))}static fromLayerJSON(e){return new h(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 i=[];for(let e of this.fields){let t=e?.name,r=(0,o.GZ)(t);if(t&&r){let n=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),i.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)}}i.sort(),this.uid=i.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 r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):u.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 u=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){let t=new Map;if(!e.fields)return t;let i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:n}=e,s=(r?"startField"in r?r.startField:r.startTimeField:"")??"",h=(r?"endField"in r?r.endField:r.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??c:n.dateFieldsTimeReference?(0,l.ZS)(n.dateFieldsTimeReference):c??"UTC":null,d=r?function(e){return"timeZone"in e}(r)?r.timeZone??c:r.timeReference?(0,l.ZS)(r.timeReference):c:null,f=new Map([[(0,o.NF)(n?.creationDateField??""),p],[(0,o.NF)(n?.editDateField??""),p],[(0,o.NF)(s),d],[(0,o.NF)(h),d]]);for(let{name:r,type:n}of e.fields)if(u.has(n))t.set(r,a.L);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(r,null);else if(i)t.set(r,a.L);else{let e=f.get((0,o.NF)(r??""))??c;t.set(r,e)}return t}},10292(e,t,i){i.d(t,{q:()=>a});var r=i(48526),n=i(86738),s=i(82799),o=i(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 i=new r.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,o.project)(i,e);if(!n)return null;let s=this.coordinates.map((e,t)=>{let i=e.clone(),r=n.points[t];return i.x=r[0],i.y=r[1],i}),a=this.clone(s);return a.spatialReference=e,a}projectSync(e){if(this.spatialReference.equals(e))return this.clone();let t=new r.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,o.project)(t,e);if(!i)return null;let n=this.coordinates.map((e,t)=>{let r=e.clone(),n=i.points[t];return r.x=n[0],r.y=n[1],r}),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,i)=>{let r=e.clone(t);return r.spatialReference=i,r},t;switch(e.type){case"point":{let i=e,{hasZ:r,hasM:s}=i;return t.coordinates=r&&s?[new l(i.x,i.y,i.z,i.m)]:r?[new l(i.x,i.y,i.z)]:s?[new l(i.x,i.y,null,i.m)]:[new l(i.x,i.y)],t._exporter=(t,i)=>e.hasM?new n.A(t[0].x,t[0].y,t[0].z,t[0].m,i):new n.A(t[0].x,t[0].y,t[0].z,i),t}case"multipoint":{let i=e,{hasZ:n,hasM:s}=i;return t.coordinates=n&&s?i.points.map(e=>new l(e[0],e[1],e[2],e[3])):n?i.points.map(e=>new l(e[0],e[1],e[2])):s?i.points.map(e=>new l(e[0],e[1],null,e[2])):i.points.map(e=>new l(e[0],e[1])),t._exporter=(t,i)=>e.hasM?new r.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:i}):new r.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:i}),t}case"polyline":{let i=e,r=[],n=[],{hasZ:o,hasM:a}=e,h=0;for(let e of i.paths)if(n.push([h,h+e.length]),h+=e.length,o&&a)for(let t of e)r.push(new l(t[0],t[1],t[2],t[3]));else if(o)for(let t of e)r.push(new l(t[0],t[1],t[2]));else if(a)for(let t of e)r.push(new l(t[0],t[1],null,t[2]));else for(let t of e)r.push(new l(t[0],t[1]));return t.coordinates=r,t._exporter=(t,i)=>{let r=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=>r.slice(e[0],e[1]));return new s.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:i})},t}}}}class l{constructor(e,t,i=null,r=null,n=null,s=null){this.x=e,this.y=t,this.z=i,this.m=r,this.tile=n,this.elevationTile=s}clone(){return new l(this.x,this.y,this.z,this.m)}}},91806(e,t,i){i.d(t,{A:()=>l});var r,n=i(32198),s=i(25482),o=i(91429),a=i(78888);let l=class extends s.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"cols",void 0),(0,n.Cg)([(0,o.MZ)({type:a.jz,json:{write:!0}})],l.prototype,"level",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"levelValue",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"origin",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"resolution",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"rows",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"scale",void 0),l=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.LOD")],l)},41628(e,t,i){i.d(t,{A:()=>l});var r,n=i(32198),s=i(91429),o=i(76357),a=i(93223);let l=class extends o.A{static{r=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new r({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,i){t[i]=[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,i){t[i]=[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=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},57984(e,t,i){i.d(t,{C:()=>u});var r=i(32198),n=i(53966),s=i(86211),o=i(91429),a=i(16930),l=i(19419),h=i(7236);let u=class extends h.A{get spatialReference(){return this.extent.spatialReference}constructor(e){let t=e.noDataValue,i="tiles"in e?e.tiles.map(i=>new c({tile:i,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:i});let r=i[0];if(r){this.extent=r.extent.clone();let{min:e,max:t}=r.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<i.length;e++){let t=i[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 i;for(let r of this.samplers)if(r.containsAt(e,t)&&(i=r.elevationAt(e,t),i!==r.noDataValue))return i;return i??(n.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,r.Cg)([(0,o.MZ)({constructOnly:!0})],u.prototype,"noDataValue",void 0),(0,r.Cg)([(0,o.MZ)({constructOnly:!0})],u.prototype,"samplers",void 0),u=(0,r.Cg)([(0,o.$K)("esri.layers.support.TileElevationSampler")],u);let c=class extends h.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 i=(0,s.GA)(e.tileInfo.spatialReference),r=e.tileInfo.lodAt(e.tile.key.level).resolution*i;this.demResolution={min:r,max:r}}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,r.Cg)([(0,o.MZ)({constructOnly:!0})],c.prototype,"tile",void 0),(0,r.Cg)([(0,o.MZ)({constructOnly:!0})],c.prototype,"noDataValue",void 0),(0,r.Cg)([(0,o.MZ)({constructOnly:!0})],c.prototype,"tileInfo",void 0),c=(0,r.Cg)([(0,o.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],c)},87045(e,t,i){i.d(t,{A:()=>w});var r,n=i(32198),s=i(66552),o=i(25482),a=i(86211),l=i(91429),h=i(78888),u=i(86738),c=i(16930),p=i(21325),d=i(28735),f=i(91806),m=i(72802),g=i(36005),y=i(43937);const v=new s.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=class extends o.o{static{r=this}static create(e={}){let{resolutionFactor:t=1,scales:i,size:n=256,spatialReference:s=c.A.WebMercator,numLODs:o=24}=e;if(!(0,p.fn)(s)){let e=[];if(i)for(let t=0;t<i.length;t++){let r=i[t];e.push(new f.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift(new f.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new u.A(0,0,s),size:[n,n],spatialReference:s})}let l=(0,p.Vp)(s),h=e.origin?new u.A({x:e.origin.x,y:e.origin.y,spatialReference:s}):l?new u.A({x:l.origin[0],y:l.origin[1],spatialReference:s}):new u.A({x:0,y:0,spatialReference:s}),d=1/(39.37*(0,a.GA)(s)*96),m=[];if(i)for(let e=0;e<i.length;e++){let t=i[e],r=t*d;m.push(new f.A({level:e,scale:t,resolution:r}))}else{let e=(0,p.EA)(s)?512/n*591657527.5917094:256/n*591657527.591555,i=Math.ceil(o/t);m.push(new f.A({level:0,scale:e,resolution:e*d}));for(let r=1;r<i;r++){let i=e/2**t,n=i*d;m.push(new f.A({level:r,scale:i,resolution:n})),e=i}}return new r({dpi:96,lods:m,origin:h,size:[n,n],spatialReference:s})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){let{spatialReference:e,origin:t}=this;if(e&&t){let i=(0,p.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return u.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0,r=[],n=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,n[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){let t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];let i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){let t=this.scales,i=t.length-1,r=0;for(;r<i;r++){let i=t[r],n=t[r+1];if(i<=e)return r;if(n===e)return r+1;if(i>e&&n<e)return r+Math.log(i/e)/Math.log(i/n)}return r}tileAt(e,t,i,r){let n,s,o=this.lodAt(e);if(!o)return null;if("number"==typeof t)n=t,s=i;else if((0,p.aI)(t.spatialReference,this.spatialReference))n=t.x,s=t.y,r=i;else{let e=(0,d.Cv)(t,this.spatialReference);if(null==e)return null;n=e.x,s=e.y,r=i}let a=o.resolution*this.size[0],l=o.resolution*this.size[1];return r??=new m.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-s)/l+.001),r.col=Math.floor((n-this.origin.x)/a+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){let t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;let r=e.level-i.level,n=i.resolution*this.size[0]/2**r,s=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*s,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+s,!0}upsampleTile(e){let t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){let i=this.lodAt(t.level);if(null==i)return null;let{resolution:r}=i,n=r*this.size[0],s=r*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+n,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;let t=(512===this.size[0]&&256===e?-1:0)+ +!!this.spatialReference.isGeographic;if(this.size[0]===e&&0===t)return this;let i=[],n=this.lods.length-t;for(let e=0;e<n;e++){let r=e+t,{scale:n,resolution:s}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new f.A({level:e,scale:n,resolution:s}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){let e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){let r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:v.read,write:v.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,n.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,n.Cg)([(0,g.w)("origin")],w.prototype,"readOrigin",null),(0,n.Cg)([(0,l.MZ)({type:[f.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,n.Cg)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,n.Cg)([(0,g.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,n.Cg)([(0,y.K)("size",{cols:{type:h.jz},rows:{type:h.jz}})],w.prototype,"writeSize",null),(0,n.Cg)([(0,l.MZ)({type:c.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.TileInfo")],w)},65509(e,t,i){i.d(t,{A:()=>s});var r=i(49186),n=i(17676);class s{constructor(e,t=0,i=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=i,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(i)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,i){let r=this.tileInfo?.lodAt(e);return!r||e<this.minLOD||e>this.maxLOD?"unavailable":r.cols&&r.rows?i>=r.cols[0]&&i<=r.cols[1]&&t>=r.rows[0]&&t<=r.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,s){await(0,n.NO)(s);let o=this.getAvailability(e,t,i);if("unavailable"===o)throw new r.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return o}async fetchAvailabilityUpsample(e,t,i,r,s){await(0,n.NO)(s),r.level=e,r.row=t,r.col=i;let o=this.tileInfo;return o.updateTileInfo(r),this.fetchAvailability(e,t,i,s).catch(e=>{if((0,n.zf)(e))throw e;if(o.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,s);throw e})}}},72802(e,t,i){i.d(t,{U:()=>n});var r=i(19419);class n{constructor(e,t,i,n=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=n}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new n(e.level,e.row,e.col,e.extent)}}},25943(e,t,i){i.d(t,{d:()=>b});var r,n=i(32198),s=i(56507),o=i(69622),a=i(49186),l=i(36563),h=(i(44208),i(66344)),u=i(15142),c=i(17676),p=i(36708),d=i(76030),f=i(84952),m=i(91429),g=i(72802),y=i(4718),v=i(69397);class w{constructor(e){!function(e){if(!e?.location)throw new a.A("tilemap:missing-location","Location missing from tilemap response");if(!1===e.valid)throw new a.A("tilemap:invalid","Tilemap response was marked as invalid");if(!e.data)throw new a.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(e.data))throw new a.A("tilemap:data-mismatch","Data must be an array of numbers");if(e.data.length!==e.location.width*e.location.height)throw new a.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(e);let{location:t,data:i}=e;this.location=Object.freeze((0,y.o8)(t));let r=this.location.width,n=this.location.height,s=!0,o=!0,l=function(e,t=!1){return e<=1024?t?Array(e).fill(0):Array(e):new Uint32Array(e)}(Math.ceil(r*n/32)),h=0;for(let e=0;e<i.length;e++){let t=e%32;i[e]?(o=!1,l[h]|=1<<t):s=!1,31===t&&++h}o?(this._availability="unavailable",this.byteSize=40):s?(this._availability="available",this.byteSize=40):(this._availability=l,this.byteSize=40+(0,v.Qf)(l))}getAvailability(e,t){if("unavailable"===this._availability||"available"===this._availability)return this._availability;let i=(e-this.location.top)*this.location.width+(t-this.location.left),r=i%32,n=i>>5,s=this._availability;return n<0||n>s.length?"unknown":s[n]&1<<r?"available":"unavailable"}static fromDefinition(e,t){let i=e.service.request||s.A,{row:r,col:n,width:o,height:l}=e,h={query:{f:"json"}};return t=t?{...h,...t}:h,i(function(e){let t;if(e.service.tileServers?.length){let i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}else t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;let i=e.service.query;return i&&(t=`${t}?${i}`),t}(e),t).then(e=>e.data).catch(e=>{if(422===e?.details?.httpStatus)return{location:{top:r,left:n,width:o,height:l},valid:!0,data:Array(o*l).fill(0)};throw e}).then(e=>{if(e.location&&(e.location.top!==r||e.location.left!==n||e.location.width!==o||e.location.height!==l))throw new a.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:e,definition:{top:r,left:n,width:o,height:l}});return w.fromJSON(e)})}static fromJSON(e){return Object.freeze(new w(e))}}function _(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function C(e,t,i){return new a.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i})}let b=class extends o.A{static{r=this}constructor(e){super(e),this._pendingTilemapRequests={},this.request=s.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new h.q(2097152),this.addHandles((0,p.wB)(()=>{let{layer:e}=this;return[e?.parsedUrl,e?.tileServers,e?.apiKey,e?.customParameters]},()=>this._initializeTilemapDefinition(),p.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(e,t,i){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return"unavailable";let r=this._tilemapFromCache(e,t,i,this._tmpTilemapDefinition);return r?r.getAvailability(t,i):"unknown"}fetchAvailability(e,t,i,r){return!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD?Promise.reject(C(e,t,i)):this._fetchTilemap(e,t,i,r).catch(e=>e).then(r=>{if(r instanceof w){let n=r.getAvailability(t,i);if("unavailable"===n)throw C(e,t,i);return n}if((0,c.zf)(r))throw r;return"unknown"})}fetchAvailabilityUpsample(e,t,i,r,n){r.level=e,r.row=t,r.col=i;let s=this.layer.tileInfo;s.updateTileInfo(r);let o=this.fetchAvailability(e,t,i,n).catch(e=>{if((0,c.zf)(e))throw e;if(s.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,n);throw e});return this._fetchAvailabilityUpsamplePrefetch(e,t,i,n,o),o}async _fetchAvailabilityUpsamplePrefetch(e,t,i,n,s){if(!this._prefetchingEnabled)return;let o=`prefetch-${e}-${t}-${i}`;if(this.hasHandles(o))return;let a=new AbortController;s.then(()=>a.abort(),()=>a.abort());let h=!1,u=(0,l.hA)(()=>{h||(h=!0,a.abort())});if(this.addHandles(u,o),await(0,d.md)(10,a.signal).catch(()=>{}),h||(h=!0,this.removeHandles(o)),(0,c.G4)(a))return;let p=new g.U(e,t,i),f={...n,signal:a.signal},m=this.layer.tileInfo;for(let e=0;r._prefetches.length<r._maxPrefetch&&m.upsampleTile(p);++e){let e=this.fetchAvailability(p.level,p.row,p.col,f);r._prefetches.push(e);let t=()=>{r._prefetches.removeUnordered(e)};e.then(t,t)}}static{this._maxPrefetch=4}static{this._prefetches=new u.A({initialSize:r._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(e,t,i,r){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return Promise.reject(new a.A("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));let n=this._tmpTilemapDefinition,s=this._tilemapFromCache(e,t,i,n);if(s)return Promise.resolve(s);let o=r?.signal;return r={...r,signal:null},new Promise((e,t)=>{(0,c.u7)(o,()=>t((0,c.NK)()));let i=_(n),s=this._pendingTilemapRequests[i];if(!s){s=w.fromDefinition(n,r).then(e=>(this._tilemapCache.put(i,e,e.byteSize),e));let e=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=s,s.then(e,e)}s.then(e,t)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;let{parsedUrl:e,apiKey:t,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:(0,f.x0)({...e.query,...i,token:t??e.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,i,r){r.level=e,r.row=t-t%this.size,r.col=i-i%this.size;let n=_(r);return this._tilemapCache.get(n)}get test(){}};(0,n.Cg)([(0,m.MZ)({constructOnly:!0})],b.prototype,"layer",void 0),(0,n.Cg)([(0,m.MZ)({constructOnly:!0})],b.prototype,"minLOD",void 0),(0,n.Cg)([(0,m.MZ)({constructOnly:!0})],b.prototype,"maxLOD",void 0),(0,n.Cg)([(0,m.MZ)({constructOnly:!0})],b.prototype,"request",void 0),(0,n.Cg)([(0,m.MZ)({constructOnly:!0})],b.prototype,"size",void 0),b=r=(0,n.Cg)([(0,m.$K)("esri.layers.support.TilemapCache")],b)},8631(e,t,i){i.d(t,{r:()=>p,g:()=>c});var r,n=i(53177),s=i(76357),o=i(32198),a=i(91429),l=i(93223);let h=class extends s.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],h.prototype,"type",void 0),h=r=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],h);var u=i(41628);const c={key:"type",base:s.A,typeMap:{range:u.A,"coded-value":n.A,inherited:h}};function p(e){if(!e?.type)return null;switch(e.type){case"range":return u.A.fromJSON(e);case"codedValue":return n.A.fromJSON(e);case"inherited":return h.fromJSON(e)}return null}},98453(e,t,i){const r=new(i(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"});i.d(t,["m",0,r])},77548(e,t,i){i.d(t,{Gh:()=>P,tk:()=>T,BR:()=>A,p2:()=>x,qd:()=>S,wI:()=>M,G$:()=>Z,$x:()=>R,Ov:()=>w,cM:()=>p,UC:()=>d,Qz:()=>f,OP:()=>O,TU:()=>v,F2:()=>m,XX:()=>y,Qi:()=>_,jy:()=>C});var r=i(70333),n=i(56507),s=i(7762),o=(i(84952),i(36563)),a=i(36708),l=i(4146);const h=new WeakMap;function u(e){return!e.destroyed&&(h.has(e)||e.addHandles([(0,a.wB)(()=>{let{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||u(t))},t=>h.set(e,t),a.pc),(0,o.hA)(()=>h.delete(e))]),h.get(e))}function c(e,t){return"object"==typeof e&&!!e&&"type"in e&&e.type===t}function p(e){return c(e,"knowledge-graph")&&"layers"in e}function d(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)}i(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 w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function _(e){return"object"==typeof e&&!!e&&"featureReduction"in e}function C(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 b(e){let t=e?.type;return"binning"===t||"cluster"===t}function x(e,t){if(!C(e))return;let i=t?.graphic,r="featureReduction"in e?e.featureReduction:null;if(i){if(i.isAggregate){let e=i.origin;return e&&"featureReductionProvider"in e&&r?b(r)?r:null:void 0}return e}return t?.checkFeatureReduction&&r?b(r)?r:null:e}async function M(e,t){let i=r.id?.findServerInfo(e);if(null!=i?.currentVersion)return i.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 A(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 T(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 S(e){let t=new s.A;for(let i of e.allLayers.concat(e.allTables))u(i)||g(i)||"annotation-feature"===i.type||"dimension-feature"===i.type||("charts"in i&&t.push(i),"subtype-group"===i.type&&t.push(...i.sublayers));return t}function R(e,t){return null}function Z(e){return null}function O(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function P(e,t){if(!t||!O(e))return;let i=(e.url,null);i&&(e.url=i)}},38969(e,t,i){i.d(t,{i:()=>n});var r=i(37955);function n(e,t){return new Promise((i,n)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?i():(t((0,r.Oo)(e,"canplay",i)),t((0,r.Oo)(e,"error",n)))})}},73133(e,t,i){const r=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});i.d(t,["j",0,r])},7861(e,t,i){i.d(t,{L:()=>n});var r=i(56507);async function n(e,t){return(await(0,r.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},16215(e,t,i){i.d(t,{S:()=>n});const r=Symbol("BasemapInstance");function n(e){return"object"==typeof e&&!!e&&r in e}i.d(t,["Y",0,r])},79677(e,t,i){i.d(t,{A:()=>c});var r,n=i(32198),s=i(25482),o=i(88930),a=i(91429),l=(i(98623),i(10184)),h=i(36005),u=i(43937);let c=class extends s.o{static{r=this}static get allTime(){return p}static get empty(){return d}static fromArray(e){return new r({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(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null==t.start?null:new Date(t.start)}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;let t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===r&&i===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let i=this.start;i&&=(0,o.lL)(i,new l.A({value:1,unit:e}),t);let n=this.end;if(n){let i=(0,o.lL)(n,new l.A({value:1,unit:e}),t);n=n.getTime()===i.getTime()?i:(0,o.S1)(i,1,e,t)}return new r({start:i,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();let t,i,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?i=s:a>=n&&a<=s&&(i=a),null==t||null==i||isNaN(t)||isNaN(i)?r.empty:new r({start:t===-1/0?null:new Date(t),end:i===1/0?null:new Date(i)})}offset(e,t,i="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();let n=new r,{start:s,end:a}=this;return null!=s&&(n.start=(0,o.S1)(s,e,t,i)),null!=a&&(n.end=(0,o.S1)(a,e,t,i)),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 p.clone();let t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n.Cg)([(0,h.w)("end")],c.prototype,"readEnd",null),(0,n.Cg)([(0,u.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,h.w)("start")],c.prototype,"readStart",null),(0,n.Cg)([(0,u.K)("start")],c.prototype,"writeStart",null),c=r=(0,n.Cg)([(0,a.$K)("esri.time.TimeExtent")],c);const p=new c,d=new c({start:void 0,end:void 0})},10184(e,t,i){i.d(t,{A:()=>u});var r=i(32198),n=i(69540),s=i(25482),o=i(88930),a=i(91429),l=i(73133),h=i(93223);let u=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,r.Cg)([(0,h.e)(l.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,r.Cg)([(0,a.$K)("esri.time.TimeInterval")],u)},32728(e,t,i){i.d(t,{YH:()=>o,nu:()=>a,wp:()=>s}),i(34727);var r=i(35522),n=i(51850);function s(e,t){let i=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,r.hZ)(e,i,n,s),e}function o(e,t,i){i||=e;let n=(0,r.Om)(e,t);(0,r.hZ)(i,e[0]-n*t[0],e[1]-n*t[1],e[2]-n*t[2]),(0,r.S8)(i,i)}function a(e,t,i,s=(0,n.vt)()){let o=(0,r.Bw)(e),a=(0,r.Bw)(t),u=(0,r.Om)(e,t)/(o*a);if(u<.9999999999999999){let n=Math.acos(u),c=((1-i)*o+i*a)/Math.sin(n),p=c/o*Math.sin((1-i)*n),d=c/a*Math.sin(i*n);return(0,r.hs)(l,e,p),(0,r.hs)(h,t,d),(0,r.WQ)(s,l,h)}return(0,r.Cc)(s,e,t,i)}(0,n.vt)(),(0,n.vt)(),(0,n.vt)();const l=(0,n.vt)(),h=(0,n.vt)()},44012(e,t,i){i.r(t),i.d(t,{generateCombinationsPanoramicWorker:()=>A,generateCombinationsWorker:()=>M});var r=i(34727),n=i(17676);i(17799),i(69052),i(799),i(86211),i(18047),new Map,i(77690),i(29242),i(51850),i(37585),i(35522);var s=i(49186),o=(i(78888),i(86738),i(39829),i(82799),i(16930));i(34403),i(21325),i(99917),i(78125),i(85036),i(89506),i(77085),i(40427),i(965),(0,i(81150).f)(),i(4576),i(87811);var a=i(53966),l=(i(44208),i(27921),i(5443));i(83276),i(19419),i(38732),i(87772),i(23281),i(1359),i(87378),i(22796),i(57984),i(87045),i(72802),i(7861);const h=[1920,1080],u={xmin:-150,ymin:1,xmax:20,ymax:80,spatialReference:{wkid:4326}},c=(o.A.fromJSON(u.spatialReference),.001);new l.A({xmin:u.xmin+c,ymin:u.ymin+c,xmax:u.xmax-c,ymax:u.ymax-c,spatialReference:u.spatialReference}),(0,r.KJ)(Math.acos(.05));var p=i(32198),d=i(97768),f=i(61893),m=i(10107),g=i(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,d.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:r}=this,s=this.datasetFormat;if(!t)throw Error("URL is required to load NonPanoramicMedia.");let o=await i.e(7835).then(()=>i(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([i.e(2754),i.e(9859),i.e(9235),i.e(1003),i.e(2806),i.e(124)]).then(()=>i(90124))).default;(0,n.Te)(e),this._cache=new l({url:t,ioConfig:{skipExtensions:["aux.xml","jgw"],skipMapInfo:!0,datasetFormat:s},customParameters:r??void 0});let h=this._cache.load(e);return this.addResolvingPromise(h),await h,(0,n.Te)(e),{layer:this._cache,size:this.size}}};(0,p.Cg)([(0,m.MZ)()],y.prototype,"_cache",void 0),(0,p.Cg)([(0,m.MZ)()],y.prototype,"autoLoad",void 0),(0,p.Cg)([(0,m.MZ)()],y.prototype,"customParameters",void 0),(0,p.Cg)([(0,m.MZ)()],y.prototype,"datasetFormat",void 0),(0,p.Cg)([(0,m.MZ)()],y.prototype,"url",void 0),(0,p.Cg)([(0,m.MZ)()],y.prototype,"layer",null),(0,p.Cg)([(0,m.MZ)()],y.prototype,"rotation",void 0),(0,p.Cg)([(0,m.MZ)()],y.prototype,"size",null),y=(0,p.Cg)([(0,g.$)("esri.widgets.OrientedImageryViewer.support.NonPanoramicMedia")],y);var v=i(37955),w=i(38969);class _ extends s.A{constructor(e,t,i){super(e,t,i),this.name="unknown",this.name=e}}const C=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),b=new Set(["MRF","TIFF","TIF"]);let x=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,r.KJ)(Math.asin(-e[6])):0}get horizonRoll(){let{matrix:e}=this;return e?(0,r.KJ)(Math.atan(e[7]/e[8])):0}get horizonYaw(){let{matrix:e,cameraHeading:t}=this;return e?(0,r.KJ)(Math.atan2(e[3],e[0])):t?-t:0}get size(){return this._size}async load(e){let{guessExtensionFromURI:t}=await i.e(7835).then(()=>i(97835));if((0,n.Te)(e),"video"===this.type)return this.loadVideoMesh(e);let r=this.extension;if(r||=t(this.url),!r||!C.has(r))throw new _("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:r??"UNKNOWN FORMAT"});return b.has(r)?this.loadOptimizedImageMesh(e):this.loadImageMesh(e)}async loadOptimizedImageMesh(e){let{loadMeshes:t,loadPyramid:r,loadRaster:s}=await Promise.all([i.e(2258),i.e(118),i.e(3494)]).then(()=>i(21060)),o=await s(this.url,e);(0,n.Te)(e),this.imagePyramid=await r(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([i.e(2258),i.e(118),i.e(3494)]).then(()=>i(21060));if((0,n.Te)(e),this._cache){let i=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{meshOrMeshes:i,size:this._size}}let r=await this._resolveMedia(e);(0,n.Te)(e),this._cache=r.media,this._size=[...h];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([i.e(2258),i.e(118),i.e(3494)]).then(()=>i(21060));if((0,n.Te)(e),this._cache){let i=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{meshOrMeshes:i,size:this._size}}let r=await this._resolveMedia(e);(0,n.Te)(e),this._cache=r.media;let s=r.mesh;return this._size=[r.media.width,r.media.height],{meshOrMeshes:s,size:this._size}}async _resolveMedia(e){let t=Promise.withResolvers(),r=(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,w.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{r?.remove()}(0,n.Te)(e);let h=s;if(!h)throw new _("unknown","Could not load media",{url:this.url});let{createImageSphere:u}=await Promise.all([i.e(2258),i.e(118),i.e(3494)]).then(()=>i(21060));(0,n.Te)(e);let c=await u({data:s,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{media:h,mesh:c}}};function M(e){return function(e,t){let{cameraPitch:i,cameraRoll:r,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[h,u,,c,p]=t,d=[-c,0,c],f=[-p,0,p],m=[-h,0,h],g=[-u,0,u],y=[];for(let t of d)for(let n of f)for(let h of m)for(let u of m)for(let c of g){let p={...e};p.cameraPitch=i+t,p.cameraRoll=r+n,p.cameraLocation={x:s+h,y:o+u,z:a?a+c:0,spatialReference:{wkid:l.wkid}},y.push(p)}return y}(e.imageToWorldProps,e.accuracyParameters)}function A(e){return function(e,t){let{cameraHeading:i,cameraLocation:r}=e,{x:n,y:s,z:o,spatialReference:a}=r;if(!t||t.every(e=>0===e)||!t.length||!a)throw Error("Invalid parameters");let[l,h,u]=t,c=u>0?[-u,0,u]:[],p=l>0?[-l,0,l]:[],d=h>0?[-h,0,h]:[],f=[];for(let t of c)for(let r of p)for(let l of p)for(let h of d){let u={...e};u.cameraHeading=i+t,u.cameraLocation={x:n+r,y:s+l,z:o?o+h:0,spatialReference:{wkid:a.wkid}},f.push(u)}return f}(e.imageToWorldProps,e.accuracyParameters)}(0,p.Cg)([(0,m.MZ)()],x.prototype,"_size",void 0),(0,p.Cg)([(0,m.MZ)()],x.prototype,"autoLoad",void 0),(0,p.Cg)([(0,m.MZ)()],x.prototype,"cameraHeading",void 0),(0,p.Cg)([(0,m.MZ)()],x.prototype,"extension",void 0),(0,p.Cg)([(0,m.MZ)()],x.prototype,"horizonPitch",null),(0,p.Cg)([(0,m.MZ)()],x.prototype,"horizonRoll",null),(0,p.Cg)([(0,m.MZ)()],x.prototype,"horizonYaw",null),(0,p.Cg)([(0,m.MZ)()],x.prototype,"id",void 0),(0,p.Cg)([(0,m.MZ)()],x.prototype,"imagePyramid",void 0),(0,p.Cg)([(0,m.MZ)()],x.prototype,"matrix",void 0),(0,p.Cg)([(0,m.MZ)()],x.prototype,"size",null),(0,p.Cg)([(0,m.MZ)()],x.prototype,"type",void 0),(0,p.Cg)([(0,m.MZ)()],x.prototype,"uiStrings",void 0),(0,p.Cg)([(0,m.MZ)()],x.prototype,"url",void 0),x=(0,p.Cg)([(0,g.$)("esri.widgets.PanoramicViewer.support.PanoramicMedia")],x),i(9093),i(91829),i(58083),i(79258),i(73354),i(63490),i(28208),i(28735)},28208(e,t,i){var r=i(86738),n=i(16930);const s=new r.A({x:0,y:0,z:0,spatialReference:n.A.WebMercator});i.d(t,["NU",0,.3515625,"ZH",0,s])}}]);