@arcgis/core 4.33.0-next.20250515 → 4.33.0-next.20250517

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 (484) hide show
  1. package/Basemap.js +1 -1
  2. package/applications/Components/QuantityFormatter.d.ts +4 -0
  3. package/applications/Components/QuantityFormatter.js +5 -0
  4. package/applications/Components/baUtils.js +1 -1
  5. package/arcade/ArcadeDate.js +1 -1
  6. package/arcade/enum.js +5 -0
  7. package/arcade/featureset/actions/GroupBy.js +1 -1
  8. package/arcade/functions/convertdirection.js +1 -1
  9. package/arcade/functions/date.js +1 -1
  10. package/arcade/functions/featuresetbase.js +1 -1
  11. package/arcade/functions/geomasync.js +1 -1
  12. package/arcade/functions/geomsync.js +1 -1
  13. package/arcade/functions/string.js +1 -1
  14. package/arcade/geometry/functions.js +1 -1
  15. package/arcade/geometry/unitConversion.js +1 -1
  16. package/assets/esri/core/workers/RemoteClient.js +1 -1
  17. package/assets/esri/core/workers/chunks/{0fd6d80393722132e044.js → 0229c573fa8a2fff2d8b.js} +2 -2
  18. package/assets/esri/core/workers/chunks/{d21d9e8b8c8a2e0485d5.js → 094e8aae6dada24c8115.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{ffaa977cd97a2b7190c5.js → 0c2dccec20c0994366fe.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{8f1fbfdac04e694f621d.js → 0c50ee1f3cdd30d96479.js} +1 -1
  21. package/assets/esri/core/workers/chunks/151d6354e7bc105b25c0.js +346 -0
  22. package/assets/esri/core/workers/chunks/1cf0fae3f2e848a2a738.js +1 -0
  23. package/assets/esri/core/workers/chunks/24327d01cb2c5c55a4b7.js +1 -0
  24. package/assets/esri/core/workers/chunks/{1a010d877b8428e755fb.js → 2841888fdbc2770e90c8.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{7e1dc8e5e18f18dd21e2.js → 29fb64826bb1351aca8d.js} +2 -2
  26. package/assets/esri/core/workers/chunks/{1f4fd9e3849f4e593375.js → 2b1486a466760d2152f5.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{4e0d2458f4d7a35bb97c.js → 2ce5cc797ae0d66c8678.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{9d564f79b82d427fc1da.js → 2fd30428309f4c517d4c.js} +1 -1
  29. package/assets/esri/core/workers/chunks/3ca6f893fd58f5b17af5.js +1 -0
  30. package/assets/esri/core/workers/chunks/{52d160cb7921ae7a4f57.js → 3fc44d8cef392b4b9c7a.js} +1 -1
  31. package/assets/esri/core/workers/chunks/417293f00b2c21cc3175.js +1 -0
  32. package/assets/esri/core/workers/chunks/{4cb199b547e5b97e65fb.js → 48cedef1c926d11164b7.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{563594357f3648652a5c.js → 4b21c4815533a43835c3.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{d166f805990353578494.js → 523046e04679e301797d.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{921c040d0497031fd8ff.js → 54da9c7fd1088a8076ce.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{ab9614555a15f04396f6.js → 54f981fe0f8851767be9.js} +2 -2
  37. package/assets/esri/core/workers/chunks/{28d9e2ffc3059a55311e.js → 59f701c30bcd9088b291.js} +1 -1
  38. package/assets/esri/core/workers/chunks/5d50a8d0427eab0a2514.js +1 -0
  39. package/assets/esri/core/workers/chunks/5f4ca51b82daf0e51010.js +1 -0
  40. package/assets/esri/core/workers/chunks/{05c80002c37002ac99e8.js → 5f6719286a6c9a3ac74b.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{a09b5700c92bb76c3234.js → 638ecabe3e22978af5a3.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{9fff43ffcd5602ccc50f.js → 649caffe8f5dbaad0d7b.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{4480e4b61affb3b2e9d6.js → 6648e68f00d28e12bcf9.js} +1 -1
  44. package/assets/esri/core/workers/chunks/66a1b92358344dd28ee1.js +1 -0
  45. package/assets/esri/core/workers/chunks/{b92a34f88569c481ed10.js → 67338948e470c1251d8a.js} +3 -3
  46. package/assets/esri/core/workers/chunks/{a8d043b73e087bee7c40.js → 67c5f1112a7c65e9eeff.js} +1 -1
  47. package/assets/esri/core/workers/chunks/6a225393b63e1e8c7933.js +1 -0
  48. package/assets/esri/core/workers/chunks/6c29a768f02dc7ce0ed6.js +1 -0
  49. package/assets/esri/core/workers/chunks/{fbd2f45d5adce4ca323f.js → 73ddb356121add556994.js} +2 -2
  50. package/assets/esri/core/workers/chunks/{a6ca68ef6311ffc365b2.js → 73e179b04bb931ca9b86.js} +1 -1
  51. package/assets/esri/core/workers/chunks/7678177555570682154e.js +1 -0
  52. package/assets/esri/core/workers/chunks/7a9a0383f27f4967bcfa.js +1 -0
  53. package/assets/esri/core/workers/chunks/7b9d14cc4a466ef18d71.js +1 -0
  54. package/assets/esri/core/workers/chunks/7e6141b5baae47682f97.js +1 -0
  55. package/assets/esri/core/workers/chunks/{257db39a1ba1a11ebfb4.js → 8365707e408d19988356.js} +1 -1
  56. package/assets/esri/core/workers/chunks/87fc7b6c3e2d4f7775e2.js +1 -0
  57. package/assets/esri/core/workers/chunks/8a2cee726b7843c7408a.js +1 -0
  58. package/assets/esri/core/workers/chunks/{b1e275607d9754079f60.js → 8eadf90d938753691044.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{ff4e7da880b206fd98ec.js → 9049c81445cc044286f1.js} +1 -1
  60. package/assets/esri/core/workers/chunks/9588328d4ed6b0f04166.js +2 -0
  61. package/assets/esri/core/workers/chunks/{dcf5719f38ad40b92941.js → 9826a1c66885dbbdc130.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{3b4b4f84d594db8945f9.js → 9839309d0cd804fe52c2.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{c10885b3a0739708e9e0.js → 9a06476b834584d00d5c.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{4954e0cf4a40e45d237f.js → 9c8e66da6cf32ace0914.js} +1 -1
  65. package/assets/esri/core/workers/chunks/9cac00d4bfac14aaae12.js +1 -0
  66. package/assets/esri/core/workers/chunks/{d60da671aba70485050e.js → 9f18392933c06f1d63b6.js} +1 -1
  67. package/assets/esri/core/workers/chunks/a937076d2f8c2b6a5d8a.js +1 -0
  68. package/assets/esri/core/workers/chunks/{c3b2b05996e2008adbe3.js → a9f16323666042a9d47f.js} +1 -1
  69. package/assets/esri/core/workers/chunks/aad9a693813b47a51530.js +2 -0
  70. package/assets/esri/core/workers/chunks/{654fe135d41af81daa13.js → be1f3cac908c28c64401.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{5e52c1c076a1502f9fe4.js → be2c8c0a8b2bce7979b6.js} +1 -1
  72. package/assets/esri/core/workers/chunks/bf4d9cdcbe6bb8bc9d39.js +1 -0
  73. package/assets/esri/core/workers/chunks/{d49518eb4b351afc5f00.js → ca3851ca2621879eb887.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{56db71ea7eb8a5652d98.js → ca62e7ec102a1bb879dc.js} +1 -1
  75. package/assets/esri/core/workers/chunks/cb16ba9512ae0a09c55d.js +1 -0
  76. package/assets/esri/core/workers/chunks/{8c1242ffd48b3ef800fa.js → d103e184ddf9beec779d.js} +1 -1
  77. package/assets/esri/core/workers/chunks/d3d98ea5b5e56fc60a31.js +1 -0
  78. package/assets/esri/core/workers/chunks/{5719471414810b6a9aec.js → d9d9180689bcf71af00f.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{dcaeb57c69d432118604.js → db13c93b4d708a2481db.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{2c3bfa75286376388806.js → db192728fa0ee08a776a.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{40b8e53c8b1c447eff7e.js → e2d012078d51dc2b2802.js} +1 -1
  82. package/assets/esri/core/workers/chunks/e385a27fd1ac2123a05f.js +1 -0
  83. package/assets/esri/core/workers/chunks/{e85f892ea44d67d53ff0.js → f3b51aa0a1a8fc3b231c.js} +2 -2
  84. package/assets/esri/core/workers/chunks/f74f8ed3f17713a208c3.js +1 -0
  85. package/assets/esri/core/workers/chunks/f9567108862629f25c8b.js +1 -0
  86. package/assets/esri/core/workers/chunks/fa99abc572b382e7e0c7.js +1 -0
  87. package/assets/esri/themes/base/widgets/_Directions.scss +74 -0
  88. package/assets/esri/themes/base/widgets/_Editor.scss +2 -1
  89. package/assets/esri/themes/base/widgets/_SearchResultRenderer.scss +5 -30
  90. package/assets/esri/themes/dark/main.css +1 -1
  91. package/assets/esri/themes/light/main.css +1 -1
  92. package/assets/esri/themes/light/view.css +1 -1
  93. package/assets/esri/widgets/Directions/t9n/Directions.json +1 -1
  94. package/assets/esri/widgets/Directions/t9n/Directions_ar.json +1 -1
  95. package/assets/esri/widgets/Directions/t9n/Directions_bg.json +1 -1
  96. package/assets/esri/widgets/Directions/t9n/Directions_bs.json +1 -1
  97. package/assets/esri/widgets/Directions/t9n/Directions_ca.json +1 -1
  98. package/assets/esri/widgets/Directions/t9n/Directions_cs.json +1 -1
  99. package/assets/esri/widgets/Directions/t9n/Directions_da.json +1 -1
  100. package/assets/esri/widgets/Directions/t9n/Directions_de.json +1 -1
  101. package/assets/esri/widgets/Directions/t9n/Directions_el.json +1 -1
  102. package/assets/esri/widgets/Directions/t9n/Directions_en.json +1 -1
  103. package/assets/esri/widgets/Directions/t9n/Directions_es.json +1 -1
  104. package/assets/esri/widgets/Directions/t9n/Directions_et.json +1 -1
  105. package/assets/esri/widgets/Directions/t9n/Directions_fi.json +1 -1
  106. package/assets/esri/widgets/Directions/t9n/Directions_fr.json +1 -1
  107. package/assets/esri/widgets/Directions/t9n/Directions_he.json +1 -1
  108. package/assets/esri/widgets/Directions/t9n/Directions_hr.json +1 -1
  109. package/assets/esri/widgets/Directions/t9n/Directions_hu.json +1 -1
  110. package/assets/esri/widgets/Directions/t9n/Directions_id.json +1 -1
  111. package/assets/esri/widgets/Directions/t9n/Directions_it.json +1 -1
  112. package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
  113. package/assets/esri/widgets/Directions/t9n/Directions_ko.json +1 -1
  114. package/assets/esri/widgets/Directions/t9n/Directions_lt.json +1 -1
  115. package/assets/esri/widgets/Directions/t9n/Directions_lv.json +1 -1
  116. package/assets/esri/widgets/Directions/t9n/Directions_nl.json +1 -1
  117. package/assets/esri/widgets/Directions/t9n/Directions_no.json +1 -1
  118. package/assets/esri/widgets/Directions/t9n/Directions_pl.json +1 -1
  119. package/assets/esri/widgets/Directions/t9n/Directions_pt-BR.json +1 -1
  120. package/assets/esri/widgets/Directions/t9n/Directions_pt-PT.json +1 -1
  121. package/assets/esri/widgets/Directions/t9n/Directions_ro.json +1 -1
  122. package/assets/esri/widgets/Directions/t9n/Directions_ru.json +1 -1
  123. package/assets/esri/widgets/Directions/t9n/Directions_sk.json +1 -1
  124. package/assets/esri/widgets/Directions/t9n/Directions_sl.json +1 -1
  125. package/assets/esri/widgets/Directions/t9n/Directions_sr.json +1 -1
  126. package/assets/esri/widgets/Directions/t9n/Directions_sv.json +1 -1
  127. package/assets/esri/widgets/Directions/t9n/Directions_th.json +1 -1
  128. package/assets/esri/widgets/Directions/t9n/Directions_tr.json +1 -1
  129. package/assets/esri/widgets/Directions/t9n/Directions_uk.json +1 -1
  130. package/assets/esri/widgets/Directions/t9n/Directions_vi.json +1 -1
  131. package/assets/esri/widgets/Directions/t9n/Directions_zh-CN.json +1 -1
  132. package/assets/esri/widgets/Directions/t9n/Directions_zh-HK.json +1 -1
  133. package/assets/esri/widgets/Directions/t9n/Directions_zh-TW.json +1 -1
  134. package/assets/esri/widgets/Search/t9n/Search.json +1 -1
  135. package/assets/esri/widgets/Search/t9n/Search_ar.json +1 -1
  136. package/assets/esri/widgets/Search/t9n/Search_bg.json +1 -1
  137. package/assets/esri/widgets/Search/t9n/Search_bs.json +1 -1
  138. package/assets/esri/widgets/Search/t9n/Search_ca.json +1 -1
  139. package/assets/esri/widgets/Search/t9n/Search_cs.json +1 -1
  140. package/assets/esri/widgets/Search/t9n/Search_da.json +1 -1
  141. package/assets/esri/widgets/Search/t9n/Search_de.json +1 -1
  142. package/assets/esri/widgets/Search/t9n/Search_el.json +1 -1
  143. package/assets/esri/widgets/Search/t9n/Search_en.json +1 -1
  144. package/assets/esri/widgets/Search/t9n/Search_es.json +1 -1
  145. package/assets/esri/widgets/Search/t9n/Search_et.json +1 -1
  146. package/assets/esri/widgets/Search/t9n/Search_fi.json +1 -1
  147. package/assets/esri/widgets/Search/t9n/Search_fr.json +1 -1
  148. package/assets/esri/widgets/Search/t9n/Search_he.json +1 -1
  149. package/assets/esri/widgets/Search/t9n/Search_hr.json +1 -1
  150. package/assets/esri/widgets/Search/t9n/Search_hu.json +1 -1
  151. package/assets/esri/widgets/Search/t9n/Search_id.json +1 -1
  152. package/assets/esri/widgets/Search/t9n/Search_it.json +1 -1
  153. package/assets/esri/widgets/Search/t9n/Search_ja.json +1 -1
  154. package/assets/esri/widgets/Search/t9n/Search_ko.json +1 -1
  155. package/assets/esri/widgets/Search/t9n/Search_lt.json +1 -1
  156. package/assets/esri/widgets/Search/t9n/Search_lv.json +1 -1
  157. package/assets/esri/widgets/Search/t9n/Search_nl.json +1 -1
  158. package/assets/esri/widgets/Search/t9n/Search_no.json +1 -1
  159. package/assets/esri/widgets/Search/t9n/Search_pl.json +1 -1
  160. package/assets/esri/widgets/Search/t9n/Search_pt-BR.json +1 -1
  161. package/assets/esri/widgets/Search/t9n/Search_pt-PT.json +1 -1
  162. package/assets/esri/widgets/Search/t9n/Search_ro.json +1 -1
  163. package/assets/esri/widgets/Search/t9n/Search_ru.json +1 -1
  164. package/assets/esri/widgets/Search/t9n/Search_sk.json +1 -1
  165. package/assets/esri/widgets/Search/t9n/Search_sl.json +1 -1
  166. package/assets/esri/widgets/Search/t9n/Search_sr.json +1 -1
  167. package/assets/esri/widgets/Search/t9n/Search_sv.json +1 -1
  168. package/assets/esri/widgets/Search/t9n/Search_th.json +1 -1
  169. package/assets/esri/widgets/Search/t9n/Search_tr.json +1 -1
  170. package/assets/esri/widgets/Search/t9n/Search_uk.json +1 -1
  171. package/assets/esri/widgets/Search/t9n/Search_vi.json +1 -1
  172. package/assets/esri/widgets/Search/t9n/Search_zh-CN.json +1 -1
  173. package/assets/esri/widgets/Search/t9n/Search_zh-HK.json +1 -1
  174. package/assets/esri/widgets/Search/t9n/Search_zh-TW.json +1 -1
  175. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_ar.json +1 -0
  176. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_bg.json +1 -0
  177. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_bs.json +1 -0
  178. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_ca.json +1 -0
  179. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_cs.json +1 -0
  180. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_da.json +1 -0
  181. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_de.json +1 -0
  182. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_el.json +1 -0
  183. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_es.json +1 -0
  184. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_et.json +1 -0
  185. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_fi.json +1 -0
  186. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_fr.json +1 -0
  187. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_he.json +1 -0
  188. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_hr.json +1 -0
  189. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_hu.json +1 -0
  190. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_id.json +1 -0
  191. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_it.json +1 -0
  192. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_ja.json +1 -0
  193. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_ko.json +1 -0
  194. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_lt.json +1 -0
  195. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_lv.json +1 -0
  196. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_nl.json +1 -0
  197. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_no.json +1 -0
  198. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_pl.json +1 -0
  199. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_pt-BR.json +1 -0
  200. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_pt-PT.json +1 -0
  201. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_ro.json +1 -0
  202. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_ru.json +1 -0
  203. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_sk.json +1 -0
  204. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_sl.json +1 -0
  205. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_sr.json +1 -0
  206. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_sv.json +1 -0
  207. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_th.json +1 -0
  208. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_tr.json +1 -0
  209. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_uk.json +1 -0
  210. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_vi.json +1 -0
  211. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_zh-CN.json +1 -0
  212. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_zh-HK.json +1 -0
  213. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_zh-TW.json +1 -0
  214. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_ar.json +1 -0
  215. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_bg.json +1 -0
  216. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_bs.json +1 -0
  217. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_ca.json +1 -0
  218. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_cs.json +1 -0
  219. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_da.json +1 -0
  220. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_de.json +1 -0
  221. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_el.json +1 -0
  222. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_es.json +1 -0
  223. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_et.json +1 -0
  224. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_fi.json +1 -0
  225. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_fr.json +1 -0
  226. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_he.json +1 -0
  227. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_hr.json +1 -0
  228. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_hu.json +1 -0
  229. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_id.json +1 -0
  230. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_it.json +1 -0
  231. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_ja.json +1 -0
  232. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_ko.json +1 -0
  233. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_lt.json +1 -0
  234. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_lv.json +1 -0
  235. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_nl.json +1 -0
  236. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_no.json +1 -0
  237. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_pl.json +1 -0
  238. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_pt-BR.json +1 -0
  239. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_pt-PT.json +1 -0
  240. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_ro.json +1 -0
  241. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_ru.json +1 -0
  242. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_sk.json +1 -0
  243. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_sl.json +1 -0
  244. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_sr.json +1 -0
  245. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_sv.json +1 -0
  246. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_th.json +1 -0
  247. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_tr.json +1 -0
  248. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_uk.json +1 -0
  249. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_vi.json +1 -0
  250. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_zh-CN.json +1 -0
  251. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_zh-HK.json +1 -0
  252. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_zh-TW.json +1 -0
  253. package/chunks/Bufferer-Dw9Qi4T1.js +5 -0
  254. package/chunks/Distance2DCalculator-CXhBP-8I.js +5 -0
  255. package/chunks/Envelope.js +1 -1
  256. package/chunks/GeodeticDistanceCalculator-Ce-woMPw.js +5 -0
  257. package/chunks/Geometry.js +1 -1
  258. package/chunks/MultiPathImpl.js +5 -0
  259. package/chunks/OperatorClip.js +1 -1
  260. package/chunks/OperatorCut.js +1 -1
  261. package/chunks/OperatorDensify.js +1 -1
  262. package/chunks/OperatorGeneralize.js +1 -1
  263. package/chunks/OperatorGeodesicBuffer.js +1 -1
  264. package/chunks/OperatorGeodeticArea.js +1 -1
  265. package/chunks/OperatorGeodeticDistance.js +1 -1
  266. package/chunks/OperatorGeodeticLength.js +1 -1
  267. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  268. package/chunks/OperatorProximityGeodesic.js +1 -1
  269. package/chunks/OperatorShapePreservingLength.js +1 -1
  270. package/chunks/OperatorShapePreservingProject.js +1 -1
  271. package/chunks/Point2D.js +1 -1
  272. package/chunks/ProjectionTransformation.js +1 -1
  273. package/chunks/ShadowCastClear.glsl.js +5 -0
  274. package/chunks/distanceOperator.js +1 -1
  275. package/config.js +1 -1
  276. package/geometry/operators/extendOperator.js +1 -1
  277. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  278. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  279. package/geometry/operators/gx/operatorBoundary.js +1 -1
  280. package/geometry/operators/gx/operatorBuffer.js +1 -1
  281. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  282. package/geometry/operators/gx/operatorDifference.js +1 -1
  283. package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
  284. package/geometry/operators/gx/operatorIntegrate.js +1 -1
  285. package/geometry/operators/gx/operatorIntersection.js +1 -1
  286. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  287. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  288. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  289. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  290. package/geometry/operators/gx/operatorOffset.js +1 -1
  291. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  292. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  293. package/geometry/operators/gx/operatorSimplify.js +1 -1
  294. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  295. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  296. package/geometry/operators/gx/operatorUnion.js +1 -1
  297. package/geometry/operators/isNearOperator.js +1 -1
  298. package/geometry/operators/reshapeOperator.js +1 -1
  299. package/geometry/operators/support/apiConverter.js +1 -1
  300. package/geometry/operators/support/initNoPeFactory.js +1 -1
  301. package/geometry/operators/support/jsonConverter.js +1 -1
  302. package/geometry/support/aaBoundingBox.js +1 -1
  303. package/geometry.js +1 -1
  304. package/interfaces.d.ts +205 -51
  305. package/layers/KnowledgeGraphLayer.js +1 -1
  306. package/layers/LinkChartLayer.js +1 -1
  307. package/layers/graphics/sources/support/QueryTask.js +1 -1
  308. package/package.json +2 -2
  309. package/pointCloudRenderers.js +1 -1
  310. package/portal/Portal.js +1 -1
  311. package/rasterRenderers.js +1 -1
  312. package/renderers.js +1 -1
  313. package/request.js +1 -1
  314. package/rest/knowledgeGraph/GraphAddNamedTypesResult.js +1 -1
  315. package/rest/knowledgeGraph/GraphAddPropertyResult.js +5 -0
  316. package/rest/knowledgeGraph/GraphApplyEditsResult.js +1 -1
  317. package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.js +1 -1
  318. package/rest/knowledgeGraph/GraphDeletePropertyResult.js +5 -0
  319. package/rest/knowledgeGraph/GraphUpdateNamedTypesResult.js +5 -0
  320. package/rest/knowledgeGraph/GraphUpdatePropertyResult.js +5 -0
  321. package/rest/knowledgeGraph/wasmInterface/updateToWasmEncodedFactories.js +1 -1
  322. package/rest/knowledgeGraph/wasmInterface/wasmToDataModelChangeResponseFactories.js +1 -1
  323. package/rest/knowledgeGraphService.js +1 -1
  324. package/rest/networks/unitIdentifiers/insertGap.js +5 -0
  325. package/rest/networks/unitIdentifiers/queryUnitIdentifiers.js +5 -0
  326. package/rest/networks/unitIdentifiers/reset.js +5 -0
  327. package/rest/networks/unitIdentifiers/resize.js +5 -0
  328. package/rest/networks/unitIdentifiers/support/InsertGapParameters.js +5 -0
  329. package/rest/networks/unitIdentifiers/support/QueryUnitIdentifiersParamters.js +5 -0
  330. package/rest/networks/unitIdentifiers/support/ResetParameters.js +5 -0
  331. package/rest/networks/unitIdentifiers/support/ResizeParameters.js +5 -0
  332. package/rest/networks/unitIdentifiers/support/UnitQueryResult.js +5 -0
  333. package/rest/query/executeForCount.js +1 -1
  334. package/rest/utils.js +1 -1
  335. package/support/apiKeyUtils.js +1 -1
  336. package/support/basemapEnsureType.js +1 -1
  337. package/support/revision.js +1 -1
  338. package/symbols.js +1 -1
  339. package/unionTypes.d.ts +2 -0
  340. package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
  341. package/views/3d/FocusAreasView.js +1 -1
  342. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementController.js +1 -1
  343. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  344. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  345. package/views/3d/analysis/Dimension/DimensionController.js +1 -1
  346. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  347. package/views/3d/analysis/DimensionAnalysisView3D.js +1 -1
  348. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
  349. package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
  350. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  351. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  352. package/views/3d/analysis/support/measurementUtils.js +1 -1
  353. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  354. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  355. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  356. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  357. package/views/3d/interactive/editingTools/reshape/reshapeTooltipUtils3D.js +1 -1
  358. package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
  359. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentMove.js +1 -1
  360. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  361. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  362. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  363. package/views/3d/layers/ContentGeometryLayerView.js +5 -0
  364. package/views/3d/layers/DimensionLayerView3D.js +1 -1
  365. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  366. package/views/3d/layers/FlowSubView3D.js +1 -1
  367. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  368. package/views/3d/layers/I3SMeshView3D.js +1 -1
  369. package/views/3d/layers/I3SMeshViewLabeler.js +1 -1
  370. package/views/3d/layers/LineOfSightLayerView3D.js +1 -1
  371. package/views/3d/layers/RouteLayerView3D.js +1 -1
  372. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  373. package/views/3d/layers/ViewshedLayerView3D.js +1 -1
  374. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  375. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  376. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  377. package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
  378. package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
  379. package/views/3d/layers/graphics/Labeler.js +1 -1
  380. package/views/3d/layers/support/LayerViewAnalysisViewManager.js +1 -1
  381. package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
  382. package/views/3d/support/pointsOfInterest/ContentGeometryUpdates.js +1 -1
  383. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  384. package/views/3d/terrain/TerrainRenderer.js +1 -1
  385. package/views/3d/terrain/TerrainSurface.js +1 -1
  386. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  387. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  388. package/views/3d/webgl-engine/shaders/ShadowCastClear.glsl.js +5 -0
  389. package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +5 -0
  390. package/views/LinkChartView.js +1 -1
  391. package/views/draw/DrawAction.js +1 -1
  392. package/views/draw/DrawGraphicTool.js +1 -1
  393. package/views/draw/DrawOperation.js +1 -1
  394. package/views/draw/DrawScreenTool.js +1 -1
  395. package/views/draw/DrawTool.js +1 -1
  396. package/views/draw/PointDrawAction.js +1 -1
  397. package/views/draw/PolygonDrawAction.js +1 -1
  398. package/views/draw/PolylineDrawAction.js +1 -1
  399. package/views/draw/SegmentDrawAction.js +1 -1
  400. package/views/draw/support/Box.js +1 -1
  401. package/views/draw/support/Reshape.js +1 -1
  402. package/views/draw/support/reshapeTooltipUtils.js +1 -1
  403. package/views/draw/support/tooltipUtils.js +1 -1
  404. package/views/interactive/SegmentLabels.js +1 -1
  405. package/views/interactive/coordinateHelper.js +1 -1
  406. package/views/interactive/snapping/LineSnapper.js +1 -1
  407. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  408. package/views/interactive/snapping/SelfSnappingEngine.js +1 -1
  409. package/views/interactive/snapping/SnappingManager.js +1 -1
  410. package/views/support/automaticAreaMeasurementUtils.js +1 -1
  411. package/views/support/automaticLengthMeasurementUtils.js +1 -1
  412. package/views/support/extentUtils.js +1 -1
  413. package/views/support/geodesicAreaMeasurementUtils.js +1 -1
  414. package/views/support/geodesicLengthMeasurementUtils.js +1 -1
  415. package/views/support/geodesicMeasurementUtils.js +1 -1
  416. package/views/support/layerViewUtils.js +1 -1
  417. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  418. package/widgets/BasemapLayerList.js +1 -1
  419. package/widgets/BatchAttributeForm/VisibleElements.js +1 -1
  420. package/widgets/BatchAttributeForm.js +1 -1
  421. package/widgets/CatalogLayerList.js +1 -1
  422. package/widgets/Directions/css.js +1 -1
  423. package/widgets/Directions.js +1 -1
  424. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  425. package/widgets/Editor/EditorViewModel.js +1 -1
  426. package/widgets/Editor/UpdateFeaturesWorkflow.d.ts +4 -0
  427. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  428. package/widgets/Editor/UpdateFeaturesWorkflowData.d.ts +4 -0
  429. package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
  430. package/widgets/Editor/UpdateWorkflow.js +1 -1
  431. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  432. package/widgets/Editor/support/SketchController.js +1 -1
  433. package/widgets/Editor/workflowUtils.js +1 -1
  434. package/widgets/Editor.js +1 -1
  435. package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
  436. package/widgets/LayerList.js +1 -1
  437. package/widgets/Search/SearchResultRenderer.js +1 -1
  438. package/widgets/Search/SearchViewModel.js +1 -1
  439. package/widgets/Search/searchResultRendererCSS.js +1 -1
  440. package/widgets/Sketch/SketchViewModel.js +1 -1
  441. package/widgets/TableList.js +1 -1
  442. package/widgets/support/GridControls/GridControlsViewModel.js +1 -1
  443. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  444. package/widgets/support/SelectionList/selectionListUtils.js +1 -1
  445. package/widgets/support/SelectionList.js +1 -1
  446. package/widgets/support/SelectionToolbar.js +1 -1
  447. package/widgets/support/Selector2D/SelectionOperation.js +1 -1
  448. package/assets/esri/core/workers/chunks/009730713ed9bc7c7388.js +0 -1
  449. package/assets/esri/core/workers/chunks/0817ddd885ce8b2459cb.js +0 -1
  450. package/assets/esri/core/workers/chunks/0cce3770591b0730cf22.js +0 -1
  451. package/assets/esri/core/workers/chunks/1991f0d0f0a12175f849.js +0 -1
  452. package/assets/esri/core/workers/chunks/1f194ffea16cc6595ecc.js +0 -1
  453. package/assets/esri/core/workers/chunks/297d2c0a9d3f1e978318.js +0 -1
  454. package/assets/esri/core/workers/chunks/394b9723d108cff7136e.js +0 -1
  455. package/assets/esri/core/workers/chunks/4a362a35bcdb8405a53a.js +0 -1
  456. package/assets/esri/core/workers/chunks/52a3d0e041717da7697e.js +0 -1
  457. package/assets/esri/core/workers/chunks/62798f66872dc32e77d6.js +0 -346
  458. package/assets/esri/core/workers/chunks/6b42bcfbb60432e3ed1f.js +0 -1
  459. package/assets/esri/core/workers/chunks/7e8f78b96d43c224c7b6.js +0 -1
  460. package/assets/esri/core/workers/chunks/8e82acd1f730571680f4.js +0 -1
  461. package/assets/esri/core/workers/chunks/a0d2bd5d4ed3c90f6b1c.js +0 -1
  462. package/assets/esri/core/workers/chunks/a673128da9e6656ead2e.js +0 -1
  463. package/assets/esri/core/workers/chunks/a9b1f4bf5eaa937943be.js +0 -1
  464. package/assets/esri/core/workers/chunks/b52b28a6f422b10ff166.js +0 -1
  465. package/assets/esri/core/workers/chunks/c07c1bb7ae09136dc1f6.js +0 -1
  466. package/assets/esri/core/workers/chunks/cbbca011f8b176d4b5db.js +0 -1
  467. package/assets/esri/core/workers/chunks/cd5c380196db7fb55242.js +0 -1
  468. package/assets/esri/core/workers/chunks/ce321fd8fc5551e190ec.js +0 -1
  469. package/assets/esri/core/workers/chunks/ce53ddda04e09ba2f860.js +0 -1
  470. package/assets/esri/core/workers/chunks/d6ab65ad864782c50705.js +0 -1
  471. package/assets/esri/core/workers/chunks/da3c62a851a4332f6dda.js +0 -1
  472. package/assets/esri/core/workers/chunks/db3f710d770adf631b28.js +0 -2
  473. package/assets/esri/core/workers/chunks/f4c6ea630cecf0f260d7.js +0 -2
  474. package/chunks/Bufferer-CicaNej1.js +0 -5
  475. package/chunks/Distance2DCalculator-C1KHhZwD.js +0 -5
  476. package/chunks/GeodeticDistanceCalculator-CcF1gMZX.js +0 -5
  477. package/chunks/QuadraticBezier.js +0 -5
  478. /package/assets/esri/core/workers/chunks/{0fd6d80393722132e044.js.LICENSE.txt → 0229c573fa8a2fff2d8b.js.LICENSE.txt} +0 -0
  479. /package/assets/esri/core/workers/chunks/{7e1dc8e5e18f18dd21e2.js.LICENSE.txt → 29fb64826bb1351aca8d.js.LICENSE.txt} +0 -0
  480. /package/assets/esri/core/workers/chunks/{ab9614555a15f04396f6.js.LICENSE.txt → 54f981fe0f8851767be9.js.LICENSE.txt} +0 -0
  481. /package/assets/esri/core/workers/chunks/{fbd2f45d5adce4ca323f.js.LICENSE.txt → 73ddb356121add556994.js.LICENSE.txt} +0 -0
  482. /package/assets/esri/core/workers/chunks/{db3f710d770adf631b28.js.LICENSE.txt → 9588328d4ed6b0f04166.js.LICENSE.txt} +0 -0
  483. /package/assets/esri/core/workers/chunks/{f4c6ea630cecf0f260d7.js.LICENSE.txt → aad9a693813b47a51530.js.LICENSE.txt} +0 -0
  484. /package/assets/esri/core/workers/chunks/{e85f892ea44d67d53ff0.js.LICENSE.txt → f3b51aa0a1a8fc3b231c.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[655],{16405:(t,e,r)=>{r.d(e,{A:()=>c});var s,o=r(90237),i=r(69622),l=r(66552),a=r(4718),n=r(10107),u=(r(44208),r(53966),r(40608)),p=r(5443),d=r(16930),h=r(28735);const y=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=s=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new s({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map((t=>Array.isArray(t)?JSON.stringify(t):t)));let s="";if(this.extent){const t=(0,h.Cv)(this.extent,d.A.WGS84);null!=t&&(s=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let o=this.query;!this.disableExtraQuery&&t.extraQuery&&(o="("+o+")"+t.extraQuery);const i={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map((t=>y.toJSON(t.trim()))).join(","),i.sortOrder=this.sortOrder),{query:{...e,...i}}}};(0,o._)([(0,n.MZ)()],c.prototype,"categories",void 0),(0,o._)([(0,n.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,o._)([(0,n.MZ)({type:p.A})],c.prototype,"extent",void 0),(0,o._)([(0,n.MZ)()],c.prototype,"filter",void 0),(0,o._)([(0,n.MZ)()],c.prototype,"num",void 0),(0,o._)([(0,n.MZ)()],c.prototype,"query",void 0),(0,o._)([(0,n.MZ)()],c.prototype,"sortField",void 0),(0,o._)([(0,n.MZ)()],c.prototype,"sortOrder",null),(0,o._)([(0,n.MZ)()],c.prototype,"start",void 0),c=s=(0,o._)([(0,u.$)("esri.portal.PortalQueryParams")],c)},20655:(t,e,r)=>{r.d(e,{A:()=>b});var s=r(90237),o=r(92602),i=r(70333),l=r(78888),a=r(49186),n=r(25482),u=r(92474),p=r(97768),d=r(74887),h=r(10107),y=r(56507),c=(r(44208),r(87811),r(36005)),m=r(40608),_=r(5443),v=r(73444);let f;var M=r(96360),g=r(16405),Z=r(69622);r(53966);let S=class extends Z.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s._)([(0,h.MZ)()],S.prototype,"nextQueryParams",void 0),(0,s._)([(0,h.MZ)()],S.prototype,"queryParams",void 0),(0,s._)([(0,h.MZ)()],S.prototype,"results",void 0),(0,s._)([(0,h.MZ)()],S.prototype,"total",void 0),S=(0,s._)([(0,m.$)("esri.portal.PortalQueryResult")],S);var P,O=r(41318),w=r(926);let A;const C={PortalGroup:()=>Promise.resolve({default:M.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:O.A})};let b=class extends(n.A.JSONSupportMixin(u.A)){static{P=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){D.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)o.A.request.trustedServers.includes(e)||o.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,w.Jn)(this.url)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=O.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then((({default:e})=>{(0,d.Te)(t),A=e})).then((()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t))).then((t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==P.AUTH_MODE_AUTO&&this.authMode!==P.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch((()=>{}))}}(new WeakRef(this))),D.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)}));return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(6131),r.e(9953),r.e(586),r.e(812),r.e(9186),r.e(5751)]).then(r.bind(r,68611))).default;return t?t.map((t=>new e({id:t.id,url:t.url}))):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){const s=await this._fetchBasemaps3D(t,e);r.unshift(...s)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new g.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find((t=>"Web Scene"===t.type));return r?new A({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then((t=>t.categorySchema)):(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(t){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",t).then((t=>t.classificationSchema)):null}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new g.A({num:100,sortField:"title"});if(e?.length){const s=[];for(const t of e)s.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,t).then((t=>t.results))}return(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return f&&!f.destroyed||(f=new P),f}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const s=this.restUrl+"/portals/self",o={authMode:t,query:{culture:(0,v.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),e&&(o.query.default=!0),this.request(s,o)}queryPortal(t,e,r,s){const o=(0,y.dp)(g.A,e),i=e=>this.request(this.restUrl+t,{...o.toRequestOptions(this),...s}).then((t=>{const r=o.clone();return r.start=t.nextStart,new S({nextQueryParams:r,queryParams:o,total:t.total,results:P._resultsToTypedArray(e,{portal:this},t,s)})})).then((t=>Promise.all(t.results.map((e=>"function"==typeof e.when?e.when():t))).then((()=>t),(e=>((0,d.QP)(e),t)))));return r&&C[r]?C[r]().then((({default:t})=>((0,d.Te)(s),i(t)))):i()}signIn(){if(this.hasAPIKey)return this.load().then((()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")}));if(this.authMode===P.AUTH_MODE_ANONYMOUS||this.authMode===P.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then((()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then((()=>null))):"loading"===this.loadStatus?this.load().then((()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate")))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate")))).then((t=>{t&&(this.sourceJSON=t,this.read(t))}));return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==P.AUTH_MODE_NO_PROMPT}).then((e=>t(e))):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then((t=>{const e=P._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map((e=>"function"==typeof e.when?e.when():t))).then((()=>e),(()=>e))}))}request(t,e={}){const r={f:"json",...e.query},{authMode:s=(this.authMode===P.AUTH_MODE_ANONYMOUS||this.authMode===P.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:s,body:o,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then((t=>t.data))}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new P({sourceJSON:t})}_getHelperService(t){const e=this.helperServices&&this.helperServices[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new g.A;r.query=t||(this.hasAPIKey?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,e);if(!s.total)return[];const o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";const i=await o.queryItems(r,e);return i.total?i.results.filter((t=>"Web Map"===t.type)).map((t=>new A({portalItem:t}))):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];if(this.hasAPIKey)return[];const s=new g.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,e);if(!o.total)return[];const i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(s,e);return l.total?l.results.filter((t=>"Web Scene"===t.type)).map((t=>new A({portalItem:t}))):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=A.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,s){let o;if(r){const i=null!=s?s.signal:null;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(o=o.map((r=>{const s=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof s.load&&s.load(i),s})))}else o=[];return o}};(0,s._)([(0,h.MZ)()],b.prototype,"access",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"allSSL",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"authMode",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"authorizedCrossOriginDomains",void 0),(0,s._)([(0,c.w)("authorizedCrossOriginDomains")],b.prototype,"readAuthorizedCrossOriginDomains",null),(0,s._)([(0,h.MZ)()],b.prototype,"basemapGalleryGroupQuery",void 0),(0,s._)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],b.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"bingKey",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"canListApps",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"canListData",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"canListPreProvisionedItems",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"canProvisionDirectPurchase",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"canSearchPublic",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"canShareBingPublic",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"canSharePublic",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"canSignInArcGIS",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"canSignInIDP",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"colorSetsGroupQuery",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"commentsEnabled",void 0),(0,s._)([(0,h.MZ)({type:Date})],b.prototype,"created",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"credential",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"culture",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"currentVersion",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"customBaseUrl",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"default3DBasemapQuery",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"defaultBasemap",void 0),(0,s._)([(0,c.w)("defaultBasemap")],b.prototype,"readDefaultBasemap",null),(0,s._)([(0,h.MZ)()],b.prototype,"defaultDevBasemap",void 0),(0,s._)([(0,c.w)("defaultDevBasemap")],b.prototype,"readDefaultDevBasemap",null),(0,s._)([(0,h.MZ)({type:_.A})],b.prototype,"defaultExtent",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"defaultVectorBasemap",void 0),(0,s._)([(0,c.w)("defaultVectorBasemap")],b.prototype,"readDefaultVectorBasemap",null),(0,s._)([(0,h.MZ)()],b.prototype,"description",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"eueiEnabled",void 0),(0,s._)([(0,h.MZ)({readOnly:!0})],b.prototype,"extraQuery",null),(0,s._)([(0,h.MZ)()],b.prototype,"featuredGroups",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"featuredItemsGroupQuery",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"galleryTemplatesGroupQuery",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"layoutGroupQuery",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"livingAtlasGroupQuery",void 0),(0,s._)([(0,h.MZ)({readOnly:!0})],b.prototype,"hasAPIKey",null),(0,s._)([(0,h.MZ)()],b.prototype,"hasCategorySchema",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"hasClassificationSchema",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"helpBase",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"helperServices",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"helpMap",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"homePageFeaturedContent",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"homePageFeaturedContentCount",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"httpPort",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"httpsPort",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"id",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"ipCntryCode",void 0),(0,s._)([(0,h.MZ)({readOnly:!0})],b.prototype,"isOrganization",null),(0,s._)([(0,h.MZ)()],b.prototype,"isPortal",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"isReadOnly",void 0),(0,s._)([(0,h.MZ)({readOnly:!0})],b.prototype,"itemPageUrl",null),(0,s._)([(0,h.MZ)()],b.prototype,"layerTemplatesGroupQuery",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"maxTokenExpirationMinutes",void 0),(0,s._)([(0,h.MZ)({type:Date})],b.prototype,"modified",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"name",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"portalHostname",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"portalMode",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"portalProperties",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"region",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"recycleBinEnabled",void 0),(0,s._)([(0,h.MZ)({readOnly:!0})],b.prototype,"restUrl",null),(0,s._)([(0,h.MZ)()],b.prototype,"rotatorPanels",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"showHomePageDescription",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"sourceJSON",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"staticImagesUrl",void 0),(0,s._)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],b.prototype,"stylesGroupQuery2d",void 0),(0,s._)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],b.prototype,"stylesGroupQuery3d",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"supportsHostedServices",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"symbolSetsGroupQuery",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"templatesGroupQuery",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"thumbnail",void 0),(0,s._)([(0,h.MZ)({readOnly:!0})],b.prototype,"thumbnailUrl",null),(0,s._)([(0,h.MZ)()],b.prototype,"units",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"url",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"urlKey",void 0),(0,s._)([(0,c.w)("urlKey")],b.prototype,"readUrlKey",null),(0,s._)([(0,h.MZ)()],b.prototype,"user",void 0),(0,s._)([(0,c.w)("user")],b.prototype,"readUser",null),(0,s._)([(0,h.MZ)()],b.prototype,"use3dBasemaps",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"useDefault3dBasemap",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"useStandardizedQuery",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"useVectorBasemaps",void 0),(0,s._)([(0,h.MZ)()],b.prototype,"vectorBasemapGalleryGroupQuery",void 0),b=P=(0,s._)([(0,m.$)("esri.portal.Portal")],b);const D=new FinalizationRegistry((t=>{t.remove()}))},41318:(t,e,r)=>{r.d(e,{A:()=>d});var s=r(90237),o=r(49186),i=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let n=class extends i.A{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new o.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s._)([(0,l.MZ)({type:Date})],n.prototype,"created",void 0),(0,s._)([(0,l.MZ)()],n.prototype,"id",void 0),(0,s._)([(0,l.MZ)()],n.prototype,"portal",void 0),(0,s._)([(0,l.MZ)()],n.prototype,"title",void 0),(0,s._)([(0,l.MZ)({readOnly:!0})],n.prototype,"url",null),(0,s._)([(0,l.MZ)()],n.prototype,"username",void 0),n=(0,s._)([(0,a.$)("esri.portal.PortalFolder")],n);var u,p=r(96360);let d=u=class extends i.A{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.id}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.id}`:null}addItem(t){const e=t&&t.item,r=t?.data,s=t?.folder,o={method:"post"};e&&(o.query=e.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then((t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load())))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const s=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:s}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",s=[],i=t.map((t=>t.id));if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find((t=>e.itemId===t.id)),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new o.A("portal:delete-item-failed",e.error.message,e.error)),s.push({item:r,success:i,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then((t=>{let e;return e=t&&t.folders?t.folders.map((t=>{const e=n.fromJSON(t);return e.portal=this.portal,e})):[],e}))}fetchGroups(){return this.portal.request(this.url??"").then((t=>{let e;return e=t&&t.groups?t.groups.map((t=>{const e=p.A.fromJSON(t);return e.portal=this.portal,e})):[],e}))}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:s}=await r.e(812).then(r.bind(r,80812)),o={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:o});let l;return i?.items?(l=i.items.map((t=>{const e=s.fromJSON(t);return e.portal=this.portal,e})),await Promise.all(l.map((t=>t.load()))),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then((t=>t.tags))}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new p.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,s=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new u({sourceJSON:t});return e.read(t),e}};(0,s._)([(0,l.MZ)()],d.prototype,"access",void 0),(0,s._)([(0,l.MZ)({type:Date})],d.prototype,"created",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"culture",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"description",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"email",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"favGroupId",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"fullName",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"id",void 0),(0,s._)([(0,l.MZ)({type:Date})],d.prototype,"modified",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"orgId",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"portal",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"preferredView",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"privileges",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"region",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"role",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"roleId",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"sourceJSON",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"thumbnail",void 0),(0,s._)([(0,l.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,s._)([(0,l.MZ)()],d.prototype,"units",void 0),(0,s._)([(0,l.MZ)({readOnly:!0})],d.prototype,"userContentUrl",null),(0,s._)([(0,l.MZ)({readOnly:!0})],d.prototype,"url",null),(0,s._)([(0,l.MZ)()],d.prototype,"username",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"userLicenseTypeId",void 0),(0,s._)([(0,l.MZ)()],d.prototype,"userType",void 0),d=u=(0,s._)([(0,a.$)("esri.portal.PortalUser")],d)},61893:(t,e,r)=>{r.d(e,{A:()=>d});var s,o,i=r(90237),l=r(69622),a=r(74887),n=r(40608);(o=s||(s={}))[o.PENDING=0]="PENDING",o[o.RESOLVED=1]="RESOLVED",o[o.REJECTED=2]="REJECTED";class u{constructor(){this._resolver=(0,a.Tw)(),this._status=s.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=s.RESOLVED,this._cleanUp()}),(()=>{this._status=s.REJECTED,this._cleanUp()})),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===s.RESOLVED}isRejected(){return this._status===s.REJECTED}isFulfilled(){return this._status!==s.PENDING}abort(){this._resolver.reject((0,a.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=(0,a.Tw)(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then((()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()}),(t=>{this.isFulfilled()||this._allPromise!==r||(0,a.zf)(t)||this._resolver.reject(t)})),t.resolve()}}const p=t=>{let e=class extends t{constructor(...t){super(...t),this._promiseProps=new u,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then((()=>this)).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}};return e=(0,i._)([(0,n.$)("esri.core.Promise")],e),e};let d=class extends(p(l.A)){};d=(0,i._)([(0,n.$)("esri.core.Promise")],d),function(t){t.EsriPromiseMixin=p}(d||(d={}))},92474:(t,e,r)=>{r.d(e,{A:()=>y});var s=r(90237),o=r(49186),i=r(97768),l=r(61893),a=r(74887),n=r(67076),u=r(10107),p=r(40608);const d="loaded",h=t=>{let e=class extends t{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise((t=>{const e=this.load.bind(this);this.load=r=>{const s=new Promise(((t,e)=>{const s=(0,a.NY)(r,e);this.destroyed&&e(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally((()=>{s&&s.remove()}))}));if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal})}return t(),s}}))),this.when((()=>{this._set("loadStatus",d),this._loadController=null}),(t=>{this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null}))}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new o.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s._)([(0,u.MZ)({readOnly:!0})],e.prototype,"loaded",null),(0,s._)([(0,u.MZ)({readOnly:!0})],e.prototype,"loadError",void 0),(0,s._)([(0,u.MZ)({clonable:!1})],e.prototype,"loadStatus",void 0),(0,s._)([(0,u.MZ)({type:[n.A],readOnly:!0})],e.prototype,"loadWarnings",null),e=(0,s._)([(0,p.$)("esri.core.Loadable")],e),e};let y=class extends(h(l.A)){};var c;y=(0,s._)([(0,p.$)("esri.core.Loadable")],y),(c=y||(y={})).LoadableMixin=h,c.isLoadable=function(t){return!(!t||!t.load)}},96360:(t,e,r)=>{r.d(e,{A:()=>d});var s,o=r(90237),i=r(49186),l=r(25482),a=r(10107),n=r(56507),u=(r(44208),r(87811),r(40608)),p=r(16405);let d=s=class extends l.A{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then((e=>{const r=e.categorySchema||[];return r.some((t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source))?this._fetchCategorySchemaSet("LivingAtlas",t):r}))}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new s({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(p.A,t);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new p.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new p.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then((t=>{const s=t.contentCategorySetsGroupQuery;if(s){const t=new p.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")})).then((r=>{if(r.total){const s=r.results[0],o=new p.A({num:1,query:`typekeywords:"${t}"`});return s.queryItems(o,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")})).then((t=>t.total?t.results[0].fetchData("json",e).then((t=>{const e=t?.categorySchema;return e?.length?e:[]})):[]))}};(0,o._)([(0,a.MZ)()],d.prototype,"access",void 0),(0,o._)([(0,a.MZ)({type:Date})],d.prototype,"created",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"description",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"id",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"isInvitationOnly",void 0),(0,o._)([(0,a.MZ)({type:Date})],d.prototype,"modified",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"owner",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"portal",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"snippet",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"sortField",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"sortOrder",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"sourceJSON",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"tags",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"thumbnail",void 0),(0,o._)([(0,a.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,o._)([(0,a.MZ)()],d.prototype,"title",void 0),(0,o._)([(0,a.MZ)({readOnly:!0})],d.prototype,"url",null),d=s=(0,o._)([(0,u.$)("esri.portal.PortalGroup")],d)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3367],{2272:(e,t,n)=>{n.d(t,{Dl:()=>u,gf:()=>d,jV:()=>l,lF:()=>c});var r=n(92602),i=n(70333),s=n(4718),o=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,n){const r={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))r[i]=s.map((e=>c(e)));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[i]);r[i]=t?e:JSON.stringify(e)}else r[i]=t?s:JSON.stringify(s);else r[i]=s}return r}async function d(e,t,s){const o=function(e,t){return e?(0,a.Jn)(e,t)?t||r.A.apiKey:i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&r.A.request.useIdentity&&await Promise.all([n.e(7292),n.e(3747)]).then(n.bind(n,73747));const l=await(i.id?.getCredential(e,s));return l?.token}},3330:(e,t,n)=>{n.d(t,{GB:()=>i,Qo:()=>o,Y4:()=>s});var r=n(96285);class i{static{this.instance=new r.oh("Etc/UTC")}}function s(e){return e instanceof r.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return s(e)?i.instance:e}},3367:(e,t,n)=>{n.d(t,{A:()=>N,B:()=>b,P:()=>y,g:()=>T,r:()=>w});var r=n(48938),i=n(66395),s=n(85935),o=n(78878),a=n(49186),l=n(53966),u=n(91869),c=n(20655),d=n(45475),f=n(67090),m=n(62791),h=n(14942),p=n(54218);class y{constructor(e,t){this.portal=e,this._debugLog=t}async translate(e){this.portal.loaded||await this.portal.load();const t=this.portal.helperServices?.aiUtilityServices;if(null==t)return{success:!1};const n=t.url+t.translateUtility;try{return{success:!0,results:(await(0,d.T)(n,e,{authMode:"no-prompt"})).map((e=>e.toJSON()))}}catch(e){return null!=this._debugLog&&(e instanceof Error||e instanceof a.A)&&this._debugLog(`TranslateText error: ${e.message}`),l.A.getLogger("esri.arcade.functions.aiServices").error(e),{success:!1}}}}class g{constructor(e,t,n){this._parameters=e,this._maxTotalContentSize=t,this._maxContentsLength=n,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(e){const t=new Set(e.filter((e=>!this._normalizedContents.has(e.text))).map((e=>e.text)));if(this._requests.length+t.size>this._maxContentsLength)return null;let n=0;for(const e of t)n+=e.length;if((n+this._contentsTotalSize)*(this._parameters.to.length??1)>this._maxTotalContentSize)return null;const r=this._requests.length;for(const{key:t,text:n}of e)(0,u.tE)(this._normalizedContents,n,(()=>[])).push({batchIdx:r,key:t});return this._requests.push(e),this._contentsTotalSize+=n,r}async send(e){const t=[],n=[];let r=0;for(const[e,i]of this._normalizedContents)t.push(new f.A({key:String(r++),text:e})),n.push(i);const i=new m.A(this._parameters);i.contents=t;const s=await e.translate(i);if(!s.success)return Array.from(this._requests,(()=>s));const o=Array.from(this._requests,(()=>({success:!0,results:[]})));for(const e of s.results){const t=Number(e.key);for(const r of n[t])o[r.batchIdx].results.push({...e,key:r.key})}return o}}function T(e){const t=[...new Set(e.to)].sort(),n=e.from??null,r=e.portalUrl,i=e.translator,s=e.apiKey??null;return JSON.stringify([t,n,r,i,s])}async function S(e,t,n){try{return(await e.yieldFor(n))[t]}catch{return{success:!1}}}class b{constructor(e,t,{maxTotalContentSize:n=5e4,maxContentsLength:r=1e3}={}){this._executor=e,this._service=t,this._openBatches=new Map,this._maxTotalContentSize=n,this._maxContentsLength=r}create(e){return{translate:async t=>{const n=T(t),{contents:r,to:i,from:s,translator:o,portalUrl:a,apiKey:l}=t;if(null==i)return{success:!1};if(null==r||r.every((e=>0===e.text.length)))return{success:!1};const u=this._openBatches.get(n);if(null!=u){const t=u.data.tryAdd(r);if(null!=t)return await S(e,t,u);u.send()}const c=new g({to:i,from:s,translator:o,portalUrl:a,apiKey:l},this._maxTotalContentSize,this._maxContentsLength),d=c.tryAdd(r);if(null!=d){const t=this._executor.openBatch(c,{open:e=>{this._openBatches.set(n,e)},execute:e=>e.send(this._service),close:e=>{this._openBatches.get(n)===e&&this._openBatches.delete(n)}});return await S(e,d,t)}return await this._service.translate(t)}}}}function w(e){"async"===e.mode&&(e.functions[(0,r.X)("TranslateText")]=function(t,n){return e.standardFunctionAsync(t,n,(async(e,t,n)=>{if((0,o.D)(n,2,3,e,t),!(0,p.Kg)(n[0])&&!(0,p.cy)(n[0])&&!(0,o.m)(n[0]))throw new s.D$(e,s.TX.InvalidParameter,t);const r=(0,o.M)(n[0]);if(!(0,p.Kg)(n[1])&&!(0,p.cy)(n[1])&&!(0,o.m)(n[1]))throw new s.D$(e,s.TX.InvalidParameter,t);const a=(0,o.M)(n[1]);let l=null;if(n.length>=3){if(!(0,p.Kg)(n[2]))throw new s.D$(e,s.TX.InvalidParameter,t);l=n[2]}const u=r.map(((e,t)=>new f.A({key:String(t),text:e}))),d=e.services?.portal??c.A.getDefault(),g=new m.A({to:a,contents:u,from:l,portalUrl:d.url}),S=new Map;let b=null;if(null!=e.lrucache){const t=e.lrucache;b??=T(g),g.contents=g.contents?.filter((e=>{const n=t.getCachedTranslation(b,e.text);return null==n||(S.set(e.key,{...n,key:e.key,text:e.text}),!1)}))}if(g.contents?.length){const t=e.services?.translation??new y(d,e.console),n=await t.translate(g);if(!n.success)return new i.A({success:!1});for(const t of n.results){const n=g.contents?.find((e=>e.key===t.key))?.text;if(null==n)throw new s.D$(null,s.TX.NeverReach,null);S.set(t.key,t),null!=e.lrucache&&(b??=T(g),e.lrucache.setCachedTranslation(b,n,{detectedLanguage:t.detectedLanguage,translation:t.translation}))}}const w=Array.from(u,(t=>{const n=h.A.fromJSON(S.get(t.key));if(null==n)throw new s.D$(null,s.TX.NeverReach,null);return n.text=t.text,i.A.convertJsonToArcade(n.toJSON(),e.timeZone??"system",!0)}));return new i.A({success:!0,results:w})}))})}const N=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:b,PortalTranslationService:y,getTranslateParametersKey:T,registerFunctions:w},Symbol.toStringTag,{value:"Module"}))},6800:(e,t,n)=>{n.d(t,{G:()=>l,y:()=>o});var r=n(99719),i=n(78878),s=n(54218);function o(e){a=e}let a;function l(e){return null===e?null:(0,i.g)(e)?e.clone():(0,i.d)(e)?e:(0,i.l)(e)?e.clone():(0,i.m)(e)?e.toArray().map((e=>l(e))):(0,s.cy)(e)?e.map((e=>l(e))):(0,i.n)(e)?a.createFromArcadeFeature(e):(0,i.o)(e)||(0,i.p)(e)?e:(0,i.q)(e)||"esri.arcade.Attachment"===e?.declaredClass?e.deepClone():("esri.arcade.Portal"===e?.declaredClass||(0,i.r)(e)||e instanceof r.x||(0,i.i)(e),e)}},7335:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(93818),i=n(84939);class s extends r.A{constructor(e,t,n,r,i){super(e),this._lazyPath=[],this._hasZ=!1,this._hasM=!1,this._hasZ=n,this._hasM=r,this._spRef=t,this._cacheId=i}get(e){if(void 0===this._lazyPath[e]){const t=this._elements[e];if(void 0===t)return;this._lazyPath[e]=new i.A(t,this._spRef,this._hasZ,this._hasM,this._cacheId,e)}return this._lazyPath[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()}}},14607:(e,t,n)=>{n.d(t,{B:()=>u,GP:()=>a,qg:()=>c});var r=n(799),i=n(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const n=e.split("-");n.length>1&&n[0]in s&&(e=n[0],t=!0),t||(e="en")}const[n,r,o="#,##0.###"]=s[e];return{decimal:n,group:r,pattern:o}}function a(e,t){const n=o((t={...t}).locale);t.customs=n;const r=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,n){const r=(n=n||{}).customs.group,i=n.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(a,function(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const r=t.split("."),i="string"==typeof n.places&&n.places.indexOf(",");let s=n.places;i?s=n.places.slice(i+1):+s>=0||(s=(r[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(r[1]||n.places){i&&(n.places=n.places.slice(0,Math.max(0,i)));const e=void 0!==n.places?n.places:r[1]&&r[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+s<a.length&&(o[1]=a.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const l=r[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let c,d,f=r[0].lastIndexOf(",");if(-1!==f){c=r[0].length-f-1;const e=r[0].slice(0,f);f=e.lastIndexOf(","),-1!==f&&(d=e.length-f-1)}const m=[];for(let e=o[0];e;){const t=e.length-c;m.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",d&&(c=d,d=void 0)}return o[0]=m.reverse().join(n.group||","),o.join(n.decimal||".")}(e,u[0],{decimal:i,group:r,places:n.places,round:n.round}))}(e,r,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),n=e.pattern||t.pattern,i=t.group,s=t.decimal;let a=1;if(n.includes("%"))a/=100;else if(n.includes("‰"))a/=1e3;else if(n.includes("¤"))throw new Error("currency notation not supported");const u=n.split(";");1===u.length&&u.push("-"+u[0]);const c=f(u,(t=>(t="(?:"+(0,r.Cj)(t,".")+")").replace(l,(t=>{const n={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},r=t.split(".");let o=e.places;1===r.length&&1!==a&&(r[1]="###"),1===r.length||0===o?n.fractional=!1:(void 0===o&&(o=e.pattern?r[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(n.fractional=!0),!e.places&&+o<r[1].length&&(o+=","+r[1].length),n.places=o);const l=r[0].split(",");return l.length>1&&(n.groupSize=l.pop().length,l.length>1&&(n.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=d(e),n=f(e.fractional,(t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n}),!0);let r=t+n;return n&&(r="(?:(?:"+r+")|(?:"+n+"))"),r+f(e.exponent,(t=>t?"([eE]"+d({signed:e.eSigned})+")":""))}(n)+")"}))),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:a}}function c(e,t){const n=u(t),r=new RegExp("^"+n.regexp+"$").exec(e);if(!r)return NaN;let i=r[1];if(!r[1]){if(!r[2])return NaN;i=r[2],n.factor*=-1}return i=i.replaceAll(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(i)*n.factor}function d(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",f(e.signed,(e=>e?"[-+]":""),!0)+f(e.separator,(t=>{if(!t)return"(?:\\d+)";" "===(t=(0,r.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const n=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+n+"})";return n-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*)"}),!0)}const f=(e,t,n)=>{if(!Array.isArray(e))return t(e);const r=[];for(let n=0;n<e.length;n++)r.push(t(e[n]));return m(r.join("|"),Boolean(n))},m=(e,t)=>"("+(t?"?:":"")+e+")"},14942:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(90237),i=n(25482),s=n(10107),o=n(40608);let a=class extends i.A{constructor(e){super(e),this.text=null,this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,r._)([(0,s.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],a.prototype,"detectedLanguage",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],a.prototype,"detectedLanguageScore",void 0),(0,r._)([(0,s.MZ)({type:Object,json:{write:!0}})],a.prototype,"translation",void 0),a=(0,r._)([(0,o.$)("esri.rest.support.TranslateResult")],a)},15032:(e,t,n)=>{n.d(t,{k:()=>l});var r=n(78502),i=n(73444),s=n(96285);function o(e){if(!e)return"";const t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let n="";for(const r of e.match(t)||[])switch(r){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":n+=r;break;case"A":case"a":n+="a";break;default:n+=`'${r}'`}return n}const a="esri.core.sql.timeonly";class l{constructor(e,t,n,r){this._hour=e,this._minute=t,this._second=n,this._millisecond=r,this.declaredRootClass=a}static isTimeOnly(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(e){return l.isTimeOnly(e)&&e.hour===this.hour&&e.minute===this.minute&&e.second===this.second&&e.millisecond===this.millisecond}clone(){return new l(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,r.Fq)(this.hour)&&(0,r.Fq)(this.minute)&&(0,r.Fq)(this.second)&&(0,r.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(e=null){return null===e||""===e?this.toString():(e=o(e))?s.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(e,t,n,r){const i=new l(e,t,n,r);return i.isValid()?i:null}static fromReader(e){if(!e)return null;const t=e.split(":");return 3!==t.length?null:new l(parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10),0)}static fromMilliseconds(e){if(e>864e5||e<0)return null;const t=Math.floor(e/1e3%60),n=Math.floor(e/6e4%60),r=Math.floor(e/36e5%24),i=Math.floor(e%1e3);return new l(r,n,t,i)}static fromDateJS(e){return new l(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}static fromDateTime(e){return new l(e.hour,e.minute,e.second,e.millisecond)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const n=[];t?(t=o(t))&&n.push(t):null!==t&&""!==t||(n.push("HH:mm:ss"),n.push("HH:mm:ss.SSS"),n.push("hh:mm:ss a"),n.push("hh:mm:ss.SSS a"),n.push("HH:mm"),n.push("hh:mm a"),n.push("H:mm"),n.push("h:mm a"),n.push("H:mm:ss"),n.push("h:mm:ss a"),n.push("H:mm:ss.SSS"),n.push("h:mm:ss.SSS a"));for(const t of n){const n=s.c9.fromFormat(e,t);if(n.isValid)return new l(n.hour,n.minute,n.second,n.millisecond)}return null}plus(e,t){switch(e){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return l.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}return null}toUTCDateTime(){return s.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}}},20437:(e,t,n)=>{n.d(t,{A:()=>p});var r,i=n(90237),s=n(66552),o=n(25482),a=n(10107),l=n(56507),u=(n(44208),n(87811),n(93223)),c=n(36005),d=n(40608),f=n(80451),m=n(98453);const h=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let p=class extends o.A{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 n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?h.fromJSON(n.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,i._)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"alias",void 0),(0,i._)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],p.prototype,"defaultValue",void 0),(0,i._)([(0,a.MZ)()],p.prototype,"description",void 0),(0,i._)([(0,c.w)("description")],p.prototype,"readDescription",null),(0,i._)([(0,a.MZ)({types:f.gK,json:{read:{reader:f.rS},write:!0}})],p.prototype,"domain",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"editable",void 0),(0,i._)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],p.prototype,"length",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"nullable",void 0),(0,i._)([(0,u.e)(m.m)],p.prototype,"type",void 0),(0,i._)([(0,a.MZ)()],p.prototype,"valueType",void 0),(0,i._)([(0,c.w)("valueType",["description"])],p.prototype,"readValueType",null),(0,i._)([(0,a.MZ)({type:Boolean,json:{read:!1}})],p.prototype,"visible",void 0),p=r=(0,i._)([(0,d.$)("esri.layers.support.Field")],p)},24097:(e,t,n)=>{n.d(t,{K:()=>r});const r={type:String,json:{read:{source:"token"},write:{target:"token"}}}},33325:(e,t,n)=>{n.d(t,{$P:()=>m,At:()=>w,J6:()=>i,JB:()=>A,Lk:()=>h,NI:()=>D,Qi:()=>N,eB:()=>_,eg:()=>g,f0:()=>y,gO:()=>T,ik:()=>S,ke:()=>d,nE:()=>f,rX:()=>p,yT:()=>b,zl:()=>r});var r,i,s,o=n(66131),a=n(44729),l=n(15032),u=n(20437),c=n(96285);function d(e){return u.A.fromJSON(e.toJSON())}function f(e){return e.toJSON?e.toJSON():e}function m(e){return e instanceof Date}function h(e){return e instanceof c.c9}function p(e){return e instanceof o.lY}function y(e){return e instanceof a.n}function g(e){return e instanceof l.k}(s=r||(r={}))[s.Standardised=0]="Standardised",s[s.StandardisedNoInterval=1]="StandardisedNoInterval",s[s.SqlServer=2]="SqlServer",s[s.Oracle=3]="Oracle",s[s.Postgres=4]="Postgres",s[s.PGDB=5]="PGDB",s[s.FILEGDB=6]="FILEGDB",s[s.NotEvaluated=7]="NotEvaluated",function(e){e[e.InFeatureSet=0]="InFeatureSet",e[e.NotInFeatureSet=1]="NotInFeatureSet",e[e.Unknown=2]="Unknown"}(i||(i={}));const T=1e3,S={point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},b={point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"},w={"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"};function N(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function A(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(r?.(t));for(o="",i=0;i<l.length;i++){const n=l[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(a,1),"{"+o+"}"}(e)}function D(e){switch(e.type){case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"oriented-imagery":case"subtype-group":case"wfs":return!0;default:return!1}}function _(e){switch(e.type){case"catalog-footprint":case"subtype-sublayer":return!0;default:return D(e)}}},39357:(e,t,n)=>{n.d(t,{H:()=>l});var r,i=n(90237),s=n(25482),o=n(10107),a=(n(44208),n(53966),n(87811),n(40608));let l=r=class extends s.A{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i._)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,i._)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=r=(0,i._)([(0,a.$)("esri.layers.support.CodedValue")],l)},44729:(e,t,n)=>{n.d(t,{n:()=>l});var r=n(66131),i=n(73444),s=n(96285);function o(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="";const n=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const r of e.match(n)||[])switch(r){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=r;break;default:r.length>=2&&"["===r.slice(0,1)&&"]"===r.slice(-1)?t+=`'${r.slice(1,-1)}'`:t+=`'${r}'`}return t}const a="esri.core.sql.dateonly";class l{constructor(e,t,n){this._year=e,this._month=t,this._day=n,this.declaredRootClass=a}static isDateOnly(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return l.isDateOnly(e)&&e.day===this.day&&e.month===this.month&&e.year===this.year}clone(){return new l(this._year,this._month,this._day)}toDateTime(e){return s.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,r.mT)(e)})}toDateTimeLuxon(e){return s.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,r.mT)(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,t=!0){if(null===e||""===e)return this.toString();if(t&&(e=o(e)),!e)return"";const n=this.toDateTime("unknown");return r.lY.dateTimeToArcadeDate(n).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"})}toArcadeDate(){const e=this.toDateTime("unknown");return r.lY.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,t){return l.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}toUTCDateTime(){return s.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){const t=s.c9.fromMillis(e,{zone:s.mQ.utcInstance});return t.isValid?l.fromParts(t.year,t.month,t.day):null}static fromSeconds(e){const t=s.c9.fromSeconds(e,{zone:s.mQ.utcInstance});return t.isValid?l.fromParts(t.year,t.month,t.day):null}static fromReader(e){if(!e)return null;const t=e.split("-");return 3!==t.length?null:new l(parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10))}static fromParts(e,t,n){const r=new l(e,t,n);return!1===r.isValid?null:r}static fromDateJS(e){return l.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return l.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const n=[];if(t)(t=o(t))&&n.push(t);else if(null===t||""===t){const t=s.c9.fromISO(e,{setZone:!0});return t.isValid?l.fromParts(t.year,t.month,t.day):null}for(const r of n){const n=s.c9.fromFormat(e,t??r);if(n.isValid)return new l(n.year,n.month,n.day)}return null}static fromNow(e="system"){const t=s.c9.fromJSDate(new Date).setZone((0,r.mT)(e));return new l(t.year,t.month,t.day)}}},45475:(e,t,n)=>{n.d(t,{T:()=>o});var r=n(78888),i=n(2272),s=n(14942);async function o(e,t,n){const o=t.toJSON();o.contents=JSON.stringify(o.contents),o.token=await(0,i.gf)(t.portalUrl,t.apiKey,{signal:n?.signal,prompt:"no-prompt"!==n?.authMode});const a=(0,i.Dl)(e),l=(0,i.jV)(a.query,{...n,query:o,method:"post",authMode:"anonymous"});return(await(0,r.A)(a.path,l)).data.results.map((e=>s.A.fromJSON(e)))}},48938:(e,t,n)=>{n.d(t,{X:()=>i,_:()=>s});var r=n(85935);function i(e){if("string"==typeof e)return e.toLowerCase();if("name"in e)return e.name.toLowerCase();if("string"!=typeof e.value)throw new r.D$(null,r.TX.InvalidIdentifier,null);return e.value.toLowerCase()}const s=Object.freeze({aborted:!1})},53177:(e,t,n)=>{n.d(t,{A:()=>d});var r,i=n(90237),s=n(4718),o=n(10107),a=(n(44208),n(53966),n(93223)),l=n(40608),u=n(39357),c=n(76357);let d=class extends c.A{static{r=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new r({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i._)([(0,o.MZ)({type:[u.H],json:{write:{isRequired:!0}}})],d.prototype,"codedValues",void 0),(0,i._)([(0,a.e)({codedValue:"coded-value"})],d.prototype,"type",void 0),d=r=(0,i._)([(0,l.$)("esri.layers.support.CodedValueDomain")],d)},62791:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(90237),i=n(25482),s=n(10107),o=n(40608),a=n(24097),l=n(67090);let u=class extends i.A{constructor(e){super(e),this.to=null,this.contents=null,this.portalUrl="https://www.arcgis.com",this.translator="esri",this.from=null,this.apiKey=null}};(0,r._)([(0,s.MZ)({type:[String],json:{write:!0}})],u.prototype,"to",void 0),(0,r._)([(0,s.MZ)({type:[l.A],json:{write:!0}})],u.prototype,"contents",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"portalUrl",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0,default:"esri"}})],u.prototype,"translator",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"from",void 0),(0,r._)([(0,s.MZ)(a.K)],u.prototype,"apiKey",void 0),u=(0,r._)([(0,o.$)("esri.rest.support.TranslateParameters")],u)},66131:(e,t,n)=>{n.d(t,{lY:()=>d,mT:()=>f});var r,i=n(799),s=n(3330),o=n(96285);(r||(r={})).TimeZoneNotRecognized="TimeZoneNotRecognized";const a={[r.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."};class l extends Error{constructor(e,t){super((0,i.HC)(a[e],t)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,l)}}function u(e,t,n){return e<t?e-t:e>n?e-n:0}function c(e,t,n){return e<t?t:e>n?n:e}class d{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,t=1,n=1,r=0,i=0,s=0,a=0,l){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(s)||isNaN(a))return null;const m=o.c9.local(e,t).daysInMonth;let h=o.c9.fromObject({day:c(n,1,m),year:e,month:c(t,1,12),hour:c(r,0,23),minute:c(i,0,59),second:c(s,0,59),millisecond:c(a,0,999)},{zone:f(l)});return h=h.plus({months:u(t,1,12),days:u(n,1,m),hours:u(r,0,23),minutes:u(i,0,59),seconds:u(s,0,59),milliseconds:u(a,0,999)}),new d(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,t){const n=f(t);return e.isUnknownTimeZone||n===s.GB.instance?d.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,n):new d(e._date.setZone(n))}static dateJSToArcadeDate(e){return new d(o.c9.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,t="system"){const n=f(t);return new d(o.c9.fromJSDate(e,{zone:n}))}static unknownEpochToArcadeDate(e){return new d(o.c9.fromMillis(e,{zone:s.GB.instance}))}static unknownDateJSToArcadeDate(e){return new d(o.c9.fromMillis(e.getTime(),{zone:s.GB.instance}))}static epochToArcadeDate(e,t="system"){const n=f(t);return new d(o.c9.fromMillis(e,{zone:n}))}static dateTimeToArcadeDate(e){return new d(e)}clone(){return new d(this._date)}changeTimeZone(e){const t=f(e);return d.dateTimeToArcadeDate(this._date.setZone(t))}static dateTimeAndZoneToArcadeDate(e,t){const n=f(t);return e.zone===s.GB.instance||n===s.GB.instance?d.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,n):new d(e.setZone(n))}static nowToArcadeDate(e){const t=f(e);return new d(o.c9.fromJSDate(new Date,{zone:t}))}static nowUTCToArcadeDate(){return new d(o.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===s.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const e=this.zone;return"fixed"===e.type?0===e.fixed?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new d(this._date.plus(e))}diff(e,t="milliseconds"){return this._date.diff(e._date,t)[t]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,t){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:t&&!this.isUnknownTimeZone})}toFormat(e,t){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,t)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;const t=o.c9.fromISO(e,{setZone:!0});return new d(t)}}function f(e,t=!0){if(e instanceof o.bo)return e;if("system"===e.toLowerCase())return"system";if("utc"===e.toLowerCase())return"UTC";if("unknown"===e.toLowerCase())return s.GB.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){const t=o.mQ.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(t)return t}const n=o.oh.create(e);if(!n.isValid){if(t)throw new l(r.TimeZoneNotRecognized);return null}return n}},66395:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(66131),i=n(6800),s=n(85935),o=n(78878),a=n(91075),l=n(54218);function u(e,t,n=!1,r=!1){if(null==e)return null;if((0,l.Et)(e))return(0,o.t)(e);if((0,l.Lm)(e))return(0,o.e)(e);if((0,l.Kg)(e))return(0,o.f)(e);if((0,o.g)(e))return(0,o.h)(e,t);if((0,o.j)(e))return e;if((0,o.k)(e))return e;if((0,l.cy)(e)){const i=[];for(const s of e)i.push(u(s,t,n,r));return i}if(r&&(0,o.l)(e))return e;const i=new c;i.immutable=!1;for(const s of Object.keys(e)){const o=e[s];void 0!==o&&i.setField(s,u(o,t,n,r))}return i.immutable=n,i}class c{constructor(e){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,this.attributes=e instanceof c?e.attributes:e??{}}field(e){const t=e.toLowerCase(),n=this.attributes[e];if(void 0!==n)return n;for(const e in this.attributes)if(e.toLowerCase()===t)return this.attributes[e];throw new s.D$(null,s.TX.FieldNotFound,null,{key:e})}setField(e,t){if(this.immutable)throw new s.D$(null,s.TX.Immutable,null);if((0,o.i)(t))throw new s.D$(null,s.TX.NoFunctionInDictionary,null);const n=e.toLowerCase();if(t instanceof Date&&(t=r.lY.dateJSToArcadeDate(t)),void 0===this.attributes[e]){for(const e in this.attributes)if(e.toLowerCase()===n)return void(this.attributes[e]=t);this.attributes[e]=t}else this.attributes[e]=t}hasField(e){const t=e.toLowerCase();if(void 0!==this.attributes[e])return!0;for(const e in this.attributes)if(e.toLowerCase()===t)return!0;return!1}keys(){let e=[];for(const t in this.attributes)e.push(t);return e=e.sort(),e}castToText(e=!1){return(0,o.c)(this.attributes,{useNumbersForDates:e})}static convertObjectToArcadeDictionary(e,t,n=!0,r=!1){const i=new c;i.immutable=!1;for(const s in e){const o=e[s];void 0!==o&&i.setField(s.toString(),u(o,t,n,r))}return i.immutable=n,i}static convertJsonToArcade(e,t,n=!1,r=!1){return u(e,t,n,r)}castAsJson(e=null){const t={};for(let n in this.attributes){const r=this.attributes[n];void 0!==r&&(e?.keyTranslate&&(n=e.keyTranslate(n)),t[n]=(0,o.a)(r,e))}return t}async castDictionaryValueAsJsonAsync(e,t,n,r=null,i){const s=await(0,o.b)(n,r,i);return e[t]=s,s}async castAsJsonAsync(e=null,t=null){const n={},i=[];for(let s in this.attributes){const l=this.attributes[s];t?.keyTranslate&&(s=t.keyTranslate(s)),void 0!==l&&((0,o.d)(l)||l instanceof a.A||l instanceof r.lY?n[s]=(0,o.a)(l,t):i.push(this.castDictionaryValueAsJsonAsync(n,s,l,e,t)))}return i.length>0&&await Promise.all(i),n}deepClone(){const e=new c;e.immutable=!1;for(const t of this.keys())e.setField(t,(0,i.G)(this.field(t)));return e}}},67090:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(90237),i=n(25482),s=n(10107),o=n(40608);let a=class extends i.A{constructor(e){super(e)}};(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,r._)([(0,o.$)("esri.rest.support.TranslateContent")],a)},76357:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(90237),i=n(66552),s=n(25482),o=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),l=n(40608);const u=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends s.A{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,a.e)(u),(0,o.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,r._)([(0,l.$)("esri.layers.support.Domain")],c)},78502:(e,t,n)=>{n.d(t,{Fq:()=>o,Yc:()=>i,Yq:()=>s});var r=n(5443);function i(e){if(null==e)return null;switch(e.type){case"polygon":case"multipoint":case"polyline":return e.extent;case"point":return new r.A({xmin:e.x,ymin:e.y,xmax:e.x,ymax:e.y,spatialReference:e.spatialReference});case"extent":return e}return null}function s(e){if(null==e)return null;const t=e.clone();return void 0!==e.cache._geVersion&&(t.cache._geVersion=e.cache._geVersion),t}function o(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}},78878:(e,t,n)=>{n.d(t,{$:()=>Le,A:()=>oe,B:()=>Oe,C:()=>E,D:()=>Q,E:()=>Ne,F:()=>pe,G:()=>De,H:()=>_e,I:()=>x,J:()=>Ce,K:()=>J,L:()=>Pe,M:()=>Fe,N:()=>R,O:()=>re,P:()=>ee,Q:()=>Ue,R:()=>v,S:()=>Ee,T:()=>Re,U:()=>ze,V:()=>Je,W:()=>ye,X:()=>j,Y:()=>Z,Z:()=>je,_:()=>ue,a:()=>Me,a0:()=>xe,a1:()=>Se,a2:()=>ge,a3:()=>Te,b:()=>Ze,c:()=>ae,d:()=>U,e:()=>he,f:()=>le,g:()=>K,h:()=>me,i:()=>I,j:()=>H,k:()=>X,l:()=>P,m:()=>B,n:()=>z,o:()=>Y,p:()=>G,q:()=>V,r:()=>$,s:()=>ce,t:()=>fe,u:()=>Ve,v:()=>O,w:()=>M,x:()=>k,y:()=>q,z:()=>se});var r=n(92602),i=n(70333),s=n(66131),o=n(99719),a=n(85935),l=n(92400),u=n(93818),c=n(7335),d=n(84939),f=n(33325),m=n(14607),h=n(44729),p=n(15032),y=n(5443),g=n(91075),T=n(48526),S=n(86738),b=n(39829),w=n(82799),N=n(16930),A=n(95108),D=n(65864),_=n(73444),C=n(54218),F=n(96285);class v{constructor(e){this.value=e}}class x{constructor(e){this.value=e}}const O={type:"VOID"},M=Symbol("BREAK"),k=Symbol("CONTINUE");function Z(e,t,n){return""===t||null==t||t===n||t===n?e:e=e.split(t).join(n)}function I(e){return e instanceof l.fF}function L(e){return e instanceof o.x}function U(e){return!!((0,C.Kg)(e)||(0,C.Et)(e)||K(e)||H(e)||X(e)||(0,C.Lm)(e)||null===e||e===O||"number"==typeof e)}function J(e,t){return void 0===e?t:e}function R(e){return null==e?"":(0,C.cy)(e)||B(e)?"Array":K(e)?"Date":X(e)?"Time":H(e)?"DateOnly":(0,C.Kg)(e)?"String":(0,C.Lm)(e)?"Boolean":(0,C.Et)(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":$(e)?"KnowledgeGraph":e instanceof o.x?"Module":z(e)?"Feature":e instanceof S.A?"Point":e instanceof b.A?"Polygon":e instanceof w.A?"Polyline":e instanceof T.A?"Multipoint":e instanceof y.A?"Extent":I(e)?"Function":G(e)?"FeatureSet":Y(e)?"FeatureSetCollection":j(e)?"Voxel":e===O?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function E(e){return e===O}function P(e){return e instanceof g.A}function z(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function j(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function G(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function V(e){return"esri.arcade.Dictionary"===e?.declaredClass}function q(e){return V(e)||z(e)||j(e)}function Y(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function $(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function B(e){return e instanceof u.A}function K(e){return e instanceof s.lY}function H(e){return e instanceof h.n}function X(e){return e instanceof p.k}function W(e){return null!=e&&"object"==typeof e}function Q(e,t,n,r,i){if(e.length<t||e.length>n)throw new a.D$(r,a.TX.WrongNumberOfParameters,i)}function ee(e){return e<0?-Math.round(-e):Math.round(e)}function te(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=Z(t,"‰",""),t=Z(t,"¤",""),(0,m.GP)(e,{pattern:t}))}function ne(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(re(t),{locale:(0,_.JK)(),numberingSystem:"latn"})}function re(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let n="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(r)||[])switch(i){case"D":n+="d";break;case"DD":n+="dd";break;case"DDD":n+="o";break;case"d":n+="c";break;case"ddd":n+="ccc";break;case"dddd":n+="cccc";break;case"M":n+="L";break;case"MM":n+="LL";break;case"MMM":n+="LLL";break;case"MMMM":n+="LLLL";break;case"YY":n+="yy";break;case"Y":case"YYYY":n+="yyyy";break;case"Q":n+="q";break;case"Z":n+="Z";break;case"ZZ":n+="ZZ";break;case"ZZZ":n+="ZZZ";break;case"ZZZZ":n+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":n+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":n+="'S'";break;case"SS":n+="'SS'";break;case"SSS":n+="u";break;case"A":case"a":n+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":n+=i;break;default:i.length>=2&&"["===i.slice(0,1)&&"]"===i.slice(-1)?n+=`'${i.slice(1,-1)}'`:n+=`'${i}'`}return n}function ie(e,t,n){switch(n){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function se(e,t,n){if(null===e){if(null===t||t===O)return ie(null,null,n);if((0,C.Et)(t))return ie(0,t,n);if((0,C.Kg)(t))return ie(0,fe(t),n);if((0,C.Lm)(t))return ie(0,fe(t),n);if(K(t))return ie(0,t.toNumber(),n);if(X(t))return ie(e,t.toNumber(),n);if(H(t))return ie(e,t.toNumber(),n)}if(e===O){if(null===t||t===O)return ie(null,null,n);if((0,C.Et)(t))return ie(0,t,n);if((0,C.Kg)(t))return ie(0,fe(t),n);if((0,C.Lm)(t))return ie(0,fe(t),n);if(K(t))return ie(0,t.toNumber(),n);if(X(t))return ie(e,t.toNumber(),n);if(H(t))return ie(e,t.toNumber(),n)}else if((0,C.Et)(e)){if((0,C.Et)(t))return ie(e,t,n);if((0,C.Lm)(t))return ie(e,fe(t),n);if(null===t||t===O)return ie(e,0,n);if((0,C.Kg)(t))return ie(e,fe(t),n);if(K(t))return ie(e,t.toNumber(),n);if(X(t))return ie(e,t.toNumber(),n);if(H(t))return ie(e,t.toNumber(),n)}else if((0,C.Kg)(e)){if((0,C.Kg)(t))return ie(le(e),le(t),n);if(K(t))return ie(fe(e),t.toNumber(),n);if(X(t))return ie(fe(e),t.toNumber(),n);if(H(t))return ie(fe(e),t.toNumber(),n);if((0,C.Et)(t))return ie(fe(e),t,n);if(null===t||t===O)return ie(fe(e),0,n);if((0,C.Lm)(t))return ie(fe(e),fe(t),n)}else if(K(e)){if(K(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=s.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=s.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),ie(e.toNumber(),t.toNumber(),n);if(null===t||t===O)return ie(e.toNumber(),0,n);if((0,C.Et)(t))return ie(e.toNumber(),t,n);if((0,C.Lm)(t))return ie(e.toNumber(),fe(t),n);if((0,C.Kg)(t))return ie(e.toNumber(),fe(t),n);if(X(t))throw new a.D$(null,a.TX.CannotCompareDateAndTime,null);if(H(t))return ie(e.toNumber(),t.toNumber(),n)}else if((0,C.Lm)(e)){if((0,C.Lm)(t))return ie(e,t,n);if((0,C.Et)(t))return ie(fe(e),fe(t),n);if(K(t))return ie(fe(e),t.toNumber(),n);if(X(t))return ie(fe(e),t.toNumber(),n);if(H(t))return ie(fe(e),t.toNumber(),n);if(null===t||t===O)return ie(fe(e),0,n);if((0,C.Kg)(t))return ie(fe(e),fe(t),n)}else if(H(e)){if(K(t))return ie(e.toNumber(),t.toNumber(),n);if(null===t||t===O)return ie(e.toNumber(),0,n);if((0,C.Et)(t))return ie(e.toNumber(),t,n);if((0,C.Lm)(t))return ie(e.toNumber(),fe(t),n);if((0,C.Kg)(t))return ie(e.toNumber(),fe(t),n);if(X(t))throw new a.D$(null,a.TX.CannotCompareDateAndTime,null);if(H(t))return ie(e.toNumber(),t.toNumber(),n)}else if(X(e)){if(K(t))throw new a.D$(null,a.TX.CannotCompareDateAndTime,null);if(null===t||t===O)return ie(e.toNumber(),0,n);if((0,C.Et)(t))return ie(e.toNumber(),t,n);if((0,C.Lm)(t))return ie(e.toNumber(),fe(t),n);if((0,C.Kg)(t))return ie(e.toNumber(),fe(t),n);if(X(t))return ie(e.toNumber(),t.toNumber(),n);if(H(t))throw new a.D$(null,a.TX.CannotCompareDateAndTime,null)}return!!oe(e,t)&&("<="===n||">="===n)}function oe(e,t){if(e===t)return!0;if(null===e&&t===O||null===t&&e===O)return!0;if(K(e)&&K(t))return e.equals(t);if(X(e)&&X(t))return e.equals(t);if(H(e)&&H(t))return e.equals(t);if(e instanceof c.A)return e.equalityTest(t);if(e instanceof d.A)return e.equalityTest(t);if(e instanceof S.A&&t instanceof S.A){const n=e.cache._arcadeCacheId,r=t.cache._arcadeCacheId;if(null!=n)return n===r}if(W(e)&&W(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ae(e,{useNumbersForDates:t}){let n="";for(const r in e){""!==n&&(n+=",");const i=e[r];null==i?n+=JSON.stringify(r)+":null":(0,C.Lm)(i)||(0,C.Et)(i)||(0,C.Kg)(i)?n+=JSON.stringify(r)+":"+JSON.stringify(i):P(i)?n+=JSON.stringify(r)+":"+ce(i):X(i)||H(i)?n+=`${JSON.stringify(r)}:${JSON.stringify(i.toString())}`:B(i)||Array.isArray(i)?n+=JSON.stringify(r)+":"+ce(i,null,t):K(i)?n+=t?JSON.stringify(r)+":"+JSON.stringify(i.getTime()):JSON.stringify(r)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(n+=JSON.stringify(r)+":"+i.castToText(t))}return"{"+n+"}"}function le(e,t){if((0,C.Kg)(e))return e;if(null===e)return"";if((0,C.Et)(e))return te(e,t);if((0,C.Lm)(e))return e.toString();if(K(e))return ne(e,t);if(X(e))return e.toFormat(t);if(H(e))return e.toFormat(t);if(e instanceof g.A)return JSON.stringify(e.toJSON());if((0,C.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=de(e[n]);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let n=0;n<e.length();n++)t[n]=de(e.get(n));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():I(e)?"object, Function":e===O?"":L(e)?"object, Module":""}function ue(e){const t=[];if(e instanceof u.A){for(let n=0;n<e.length();n++)t[n]=fe(e.get(n));return t}if(!(0,C.cy)(e))return null;for(let n=0;n<e.length;n++)t[n]=fe(e[n]);return t}function ce(e,t,n=!1){if((0,C.Kg)(e))return e;if(null===e)return"";if((0,C.Et)(e))return te(e,t);if((0,C.Lm)(e))return e.toString();if(K(e))return ne(e,t);if(X(e))return e.toFormat(t);if(H(e))return e.toFormat(t);if(e instanceof g.A)return e instanceof y.A?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+we(e.spatialReference)+"}":we(e.toJSON(),((e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0));if((0,C.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=de(e[r],n);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let r=0;r<e.length();r++)t[r]=de(e.get(r),n);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(n):I(e)?"object, Function":e===O?"":L(e)?"object, Module":""}function de(e,t=!1){if(null===e)return"null";if((0,C.Lm)(e)||(0,C.Et)(e)||(0,C.Kg)(e))return JSON.stringify(e);if(e instanceof g.A)return ce(e,null,t);if(e instanceof u.A)return ce(e,null,t);if(Array.isArray(e))return ce(e,null,t);if(K(e))return t?JSON.stringify(e.getTime()):JSON.stringify(ne(e,""));if(X(e))return JSON.stringify(e.toString());if(H(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===O)return"null";return"null"}function fe(e,t){return(0,C.Et)(e)?e:null===e||""===e?0:K(e)||H(e)||X(e)?NaN:(0,C.Lm)(e)?e?1:0:(0,C.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,C.Kg)(e)?(t=Z(t,"‰",""),t=Z(t,"¤",""),(0,m.qg)(e,{pattern:t})):e===O?0:Number(e)}function me(e,t){if(K(e))return e;if((0,C.Kg)(e)){const n=function(e,t){const n=/ (\d\d)/,r=(0,s.mT)(t);let i=F.c9.fromISO(e,{zone:r});return i.isValid||n.test(e)&&(e=e.replace(n,"T$1"),i=F.c9.fromISO(e,{zone:t}),i.isValid)?i:null}(e,t);if(n)return s.lY.dateTimeToArcadeDate(n)}return null}function he(e){return(0,C.Lm)(e)?e:(0,C.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,C.Et)(e)&&0!==e&&!isNaN(e)}function pe(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function ye(e){if(null===e)return null;if(e instanceof S.A)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof b.A){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if(e instanceof w.A){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return e instanceof T.A?0===e.points.length?null:e:e instanceof y.A?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function ge(e,t){if(!e)return t;if(!e.domain)return t;let n=null,r=null;if(K(t))n=t.toNumber();else if(H(t))n=t.toString();else if(X(t))n=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)n=le(t);else{if(null==t)return null;if(""===t)return t;n=fe(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===n&&(r=i)}return null===r?le(t):r.name}function Te(e,t){if(!e)return t;if(!e.domain)return t;let n=null;const r=le(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===r&&(n=i)}return null===n?t:n.code}function Se(e,t,n=null,r=null){if(!t)return null;if(!t.fields)return null;let i,s,o=null;for(let n=0;n<t.fields.length;n++){const r=t.fields[n];r.name.toLowerCase()===e.toString().toLowerCase()&&(o=r)}if(null===o)throw new a.D$(null,a.TX.FieldNotFound,null,{key:e});let l=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(l=t.subtypeField,u="code",c=t.subtypes??[]),null===r&&n&&l)r=n.hasField(l)?n.field(l):null;else if(l&&null!==r){let e=!1;for(const t of c||[])if(r===t[u]){e=!0;break}if(!e)for(const t of c||[])if(r===t.name){r=t[u],e=!0;break}e||(r=null,n&&l&&(r=n.hasField(l)?n.field(l):null))}return null!=r&&c.some((e=>e[u]===r&&(i=e.domains?.[o.name],i&&"inherited"===i.type&&(i=be(o.name,t),s=!0),!0))),s||i||(i=be(e,t)),{field:o,domain:i}}function be(e,t){let n;return t.fields.some((t=>(t.name.toLowerCase()===e.toLowerCase()&&(n=t.domain),!!n))),n}function we(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(r?.(t));for(o="",i=0;i<l.length;i++){const n=l[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(a,1),"{"+o+"}"}(e)}function Ne(e){if(null===e)return null;const t=[];for(const n of e)z(n)?t.push(n.geometry()):t.push(n);return t}function Ae(e,t){if(!(t instanceof S.A))throw new a.D$(null,a.TX.InvalidParameter,null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function De(e,t){if((0,C.cy)(e)||B(e)){let n=!1,r=!1,i=[],s=t;if((0,C.cy)(e)){for(const t of e)Ae(i,t);i.length>0&&(s=e[0].spatialReference,n=e[0].hasZ,r=e[0].hasM)}else if(e instanceof d.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else{if(!B(e))throw new a.D$(null,a.TX.InvalidParameter,null);for(const t of e.toArray())Ae(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:((0,A.$3)(i)||(i=i.slice().reverse()),new b.A({rings:[i],spatialReference:s,hasZ:n,hasM:r}))}return e}function _e(e,t){if((0,C.cy)(e)||B(e)){let n=!1,r=!1,i=[],s=t;if((0,C.cy)(e)){for(const t of e)Ae(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof d.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(B(e)){for(const t of e.toArray())Ae(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new w.A({paths:[i],spatialReference:s,hasZ:n,hasM:r})}return e}function Ce(e,t){if((0,C.cy)(e)||B(e)){let n=!1,r=!1,i=[],s=t;if((0,C.cy)(e)){for(const t of e)Ae(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof d.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(B(e)){for(const t of e.toArray())Ae(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new T.A({points:i,spatialReference:s,hasZ:n,hasM:r})}return e}function Fe(e,t=!0){if(null==e)return[];if((0,C.cy)(e)){const n=[];for(const r of e){const e=le(r);(t||""!==e)&&n.push(e)}return n}if(B(e)){const n=[];for(let r=0;r<e.length();r++){const i=le(e.get(r));(t||""!==i)&&n.push(i)}return n}if(U(e)){const n=le(e);if(t||""!==n)return[n]}return[]}let ve=0;function xe(e){return ve++,ve%100==0?(ve=0,new Promise((t=>{setTimeout((()=>{t(e)}),0)}))):e}function Oe(e,t,n){switch(n){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Me(e,t=null){return null==e?null:(0,C.Lm)(e)||(0,C.Et)(e)||(0,C.Kg)(e)?e:e instanceof g.A?!0===t?.keepGeometryType?e:e.toJSON():e instanceof u.A?e.toArray().map((e=>Me(e,t))):Array.isArray(e)?e.map((e=>Me(e,t))):(0,C.$P)(e)?e:K(e)?e.toJSDate():X(e)?e.toString():H(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function ke(e,t,n,r,i){const s=await Ze(e,t,n);i[r]=s}async function Ze(e,t=null,n=null){if(e instanceof u.A&&(e=e.toArray()),null==e)return null;if(U(e)||e instanceof g.A||(0,C.$P)(e)||K(e))return Me(e,n);if(Array.isArray(e)){const r=[],i=[];for(const s of e)null===s||U(s)||s instanceof g.A||(0,C.$P)(s)||K(s)?i.push(Me(s,n)):(i.push(null),r.push(ke(s,t,n,i.length-1,i)));return r.length>0&&await Promise.all(r),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,n):null}function Ie(e){return Le(e)?e.parent:e}function Le(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Ue(e,t,n){const r=Ie(e.fullSchema());return null===r?null:r.fields?Se(t,r,e,n):null}function Je(e){const t=Ie(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map((e=>({name:e.name,code:e.code}))):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map((e=>({name:e.name,code:e.id}))):[]}:null:null}function Re(e,t,n,r){const i=Ie(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=Se(t,i,e,r);if(void 0===n)try{n=e.field(t)}catch(e){return null}return ge(s,n)}function Ee(e,t,n,r){const i=Ie(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===n){try{n=e.field(t)}catch(e){return null}return n}return Te(Se(t,i,e,r),n)}function Pe(e){return e?.timeZone??"system"}function ze(e){const t=Ie(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const n=[];for(const e of t.fields)n.push((0,f.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===f.yT[t.geometryType]?"":f.yT[t.geometryType],fields:n}}function je(e,t){const n=s.lY.systemTimeZoneCanonicalName;return"system"===e&&(e=n),{version:Ge,engineVersion:i.rE,timeZone:e,userTimeZone:n,spatialReference:t instanceof N.A?t.toJSON():t,application:r.A.applicationName??"",engine:"web",locale:(0,_.JK)()}}const Ge="1.32",Ve=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:x,ReturnResult:v,absRound:ee,arcadeVersion:Ge,autoCastArrayOfPointsToMultiPoint:Ce,autoCastArrayOfPointsToPolygon:De,autoCastArrayOfPointsToPolyline:_e,autoCastFeatureToGeometry:Ne,binaryOperator:Oe,breakResult:M,castAsJson:Me,castAsJsonAsync:Ze,castRecordToText:ae,continueResult:k,defaultExecutingContext:je,defaultTimeZone:Pe,defaultUndefined:J,equalityTest:oe,featureDomainCodeLookup:Ee,featureDomainValueLookup:Re,featureFullDomain:Ue,featureSchema:ze,featureSubtypes:Je,fixNullGeometry:ye,fixSpatialReference:pe,formatDate:ne,formatNumber:te,getDomain:Se,getDomainCode:Te,getDomainValue:ge,getType:R,greaterThanLessThan:se,isArray:C.cy,isBoolean:C.Lm,isDate:K,isDateOnly:H,isDictionary:V,isDictionaryLike:q,isFeature:z,isFeatureSet:G,isFeatureSetCollection:Y,isFunctionParameter:I,isGeometry:P,isGraphic:C.DU,isImmutableArray:B,isInteger:C.Fq,isJsDate:C.$P,isKnowledgeGraph:$,isModule:L,isNumber:C.Et,isObject:W,isSimpleType:U,isString:C.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Le,isTime:X,isVoid:E,isVoxel:j,multiReplace:Z,parseGeometryFromJson:function(e,t){const n=JSON.parse(e);return n&&!n.spatialReference&&(n.spatialReference=t),(0,D.rS)(n)},pcCheck:Q,stableStringify:we,standardiseDateFormat:re,tick:xe,toBoolean:he,toDate:me,toNumber:fe,toNumberArray:ue,toString:le,toStringArray:Fe,toStringExplicit:ce,voidOperation:O},Symbol.toStringTag,{value:"Module"}))},80451:(e,t,n)=>{n.d(t,{rS:()=>h,gK:()=>m}),n(44208);var r,i=n(53177),s=n(76357),o=n(90237),a=(n(53966),n(87811),n(49186),n(93223)),l=n(40608);let u=class extends s.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o._)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=r=(0,o._)([(0,l.$)("esri.layers.support.InheritedDomain")],u);var c,d=n(10107);let f=class extends s.A{static{c=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new c({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,d.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,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],f.prototype,"maxValue",void 0),(0,o._)([(0,d.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],f.prototype,"minValue",void 0),(0,o._)([(0,a.e)({range:"range"})],f.prototype,"type",void 0),f=c=(0,o._)([(0,l.$)("esri.layers.support.RangeDomain")],f);const m={key:"type",base:s.A,typeMap:{range:f,"coded-value":i.A,inherited:u}};function h(e){if(!e?.type)return null;switch(e.type){case"range":return f.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},84939:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(93818),i=n(86738);class s extends r.A{constructor(e,t,n,r,i,s){super(e),this._lazyPt=[],this._hasZ=!1,this._hasM=!1,this._spRef=t,this._hasZ=n,this._hasM=r,this._cacheId=i,this._partId=s}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const n=new i.A(t[0],t[1],this._spRef);this._hasZ&&(n.z=t[2]),this._hasM&&(n.m=this._hasZ?t[3]:t[2]),n.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=n}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},85935:(e,t,n)=>{n.d(t,{B:()=>h,D$:()=>u,Nh:()=>m,O$:()=>f,TX:()=>r,mT:()=>d,ps:()=>y});var r,i,s=n(799);(i=r||(r={})).AsyncNotEnabled="AsyncNotEnabled",i.ModulesNotSupported="ModulesNotSupported",i.CircularModules="CircularModules",i.CannotCompareDateAndTime="CannotCompareDateAndTime",i.NeverReach="NeverReach",i.UnsupportedHashType="UnsupportedHashType",i.InvalidParameter="InvalidParameter",i.FeatureSetDoesNotHaveSubtypes="FeatureSetDoesNotHaveSubtypes",i.UnexpectedToken="UnexpectedToken",i.Unrecognized="Unrecognized",i.UnrecognizedType="UnrecognizedType",i.MaximumCallDepth="MaximumCallDepth",i.BooleanConditionRequired="BooleanConditionRequired",i.TypeNotAllowedInFeature="TypeNotAllowedInFeature",i.KeyMustBeString="KeyMustBeString",i.WrongNumberOfParameters="WrongNumberOfParameters",i.CallNonFunction="CallNonFunction",i.NoFunctionInTemplateLiteral="NoFunctionInTemplateLiteral",i.NoFunctionInDictionary="NoFunctionInDictionary",i.NoFunctionInArray="NoFunctionInArray",i.AssignModuleFunction="AssignModuleFunction",i.LogicExpressionOrAnd="LogicExpressionOrAnd",i.LogicalExpressionOnlyBoolean="LogicalExpressionOnlyBoolean",i.FunctionNotFound="FunctionNotFound",i.InvalidMemberAccessKey="InvalidMemberAccessKey",i.UnsupportedUnaryOperator="UnsupportUnaryOperator",i.InvalidIdentifier="InvalidIdentifier",i.MemberOfNull="MemberOfNull",i.UnsupportedOperator="UnsupportedOperator",i.Cancelled="Cancelled",i.ModuleAccessorMustBeString="ModuleAccessorMustBeString",i.ModuleExportNotFound="ModuleExportNotFound",i.Immutable="Immutable",i.OutOfBounds="OutOfBounds",i.IllegalResult="IllegalResult",i.FieldNotFound="FieldNotFound",i.PortalRequired="PortalRequired",i.LogicError="LogicError",i.ArrayAccessorMustBeNumber="ArrayAccessMustBeNumber",i.KeyAccessorMustBeString="KeyAccessorMustBeString",i.WrongSpatialReference="WrongSpatialReference",i.CannotChangeTimeZoneTime="CannotChangeTimeZoneTime",i.CannotChangeTimeZoneDateOnly="CannotChangeTimeZoneDateOnly";const o={[r.TypeNotAllowedInFeature]:"Feature attributes only support dates, numbers, strings, guids.",[r.LogicError]:"Logic error - {reason}",[r.CannotCompareDateAndTime]:"Cannot compare date or dateonly with timeonly types",[r.NeverReach]:"Encountered unreachable logic",[r.AsyncNotEnabled]:"Async Arcade must be enabled for this script",[r.ModuleAccessorMustBeString]:"Module accessor must be a string",[r.ModuleExportNotFound]:"Module has no export with provided identifier",[r.ModulesNotSupported]:"Current profile does not support modules",[r.ArrayAccessorMustBeNumber]:"Array accessor must be a number",[r.FunctionNotFound]:"Function not found",[r.FieldNotFound]:"Key not found - {key}",[r.CircularModules]:"Circular module dependencies are not allowed",[r.Cancelled]:"Execution cancelled",[r.UnsupportedHashType]:"Type not supported in hash function",[r.IllegalResult]:"Value is not a supported return type",[r.PortalRequired]:"Portal is required",[r.InvalidParameter]:"Invalid parameter",[r.WrongNumberOfParameters]:"Call with wrong number of parameters",[r.Unrecognized]:"Unrecognized code structure",[r.UnrecognizedType]:"Unrecognized type",[r.WrongSpatialReference]:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",[r.BooleanConditionRequired]:"Conditions must use booleans",[r.NoFunctionInDictionary]:"Dictionaries cannot contain functions.",[r.NoFunctionInArray]:"Arrays cannot contain functions.",[r.NoFunctionInTemplateLiteral]:"Template Literals do not expect functions by value.",[r.KeyAccessorMustBeString]:"Accessor must be a string",[r.KeyMustBeString]:"Object keys must be a string",[r.Immutable]:"Object is immutable",[r.UnexpectedToken]:"Unexpected token",[r.MemberOfNull]:"Cannot access property of null object",[r.MaximumCallDepth]:"Exceeded maximum function depth",[r.OutOfBounds]:"Out of bounds",[r.InvalidIdentifier]:"Identifier not recognized",[r.CallNonFunction]:"Expression is not a function",[r.InvalidMemberAccessKey]:"Cannot access value using a key of this type",[r.AssignModuleFunction]:"Cannot assign function to module variable",[r.UnsupportedUnaryOperator]:"Unsupported unary operator",[r.UnsupportedOperator]:"Unsupported operator",[r.LogicalExpressionOnlyBoolean]:"Logical expressions must be boolean",[r.LogicExpressionOrAnd]:"Logical expression can only be combined with || or &&",[r.CannotChangeTimeZoneTime]:"Cannot change the timezone of a Time",[r.CannotChangeTimeZoneDateOnly]:"Cannot change the timezone of a DateOnly",[r.FeatureSetDoesNotHaveSubtypes]:"FeatureSet does not have subtypes"};class a extends Error{constructor(...e){super(...e)}}class l extends a{constructor(e,t){super(c(t)+e.message,{cause:e}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,l),t?.loc&&(this.loc=t.loc)}}class u extends Error{constructor(e,t,n,r){super("Execution error - "+c(n)+(0,s.HC)(o[t],r)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),n?.loc&&(this.loc=n.loc)}}function c(e){return e&&e.loc?`Line : ${e.loc.start?.line}, ${e.loc.start?.column}: `:""}class d extends Error{constructor(e,t,n,r){super("Compilation error - "+c(n)+(0,s.HC)(o[t],r)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,d),n?.loc&&(this.loc=n.loc)}}class f extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,f)}}function m(e,t,n){return"esri.arcade.arcadeexecutionerror"===n.declaredRootClass||"esri.arcade.arcadecompilationerror"===n.declaredRootClass?null===n.loc&&t?.loc?new l(n,{cause:n}):n:("esri.arcade.featureset.support.featureseterror"===n.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===n.declaredRootClass||n.declaredRootClass,t?.loc?new l(n,{cause:n}):n)}var h;!function(e){e.UnrecognizedUri="UnrecognizedUri",e.UnsupportedUriProtocol="UnsupportedUriProtocol"}(h||(h={}));const p={[h.UnrecognizedUri]:"Unrecognized uri - {uri}",[h.UnsupportedUriProtocol]:"Unrecognized uri protocol"};class y extends Error{constructor(e,t){super((0,s.HC)(p[e],t)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,y)}}},92400:(e,t,n)=>{n.d(t,{CU:()=>a,UQ:()=>o,fF:()=>i,o6:()=>s});var r=n(74887);class i{constructor(){}}function s(e,t,n){if(e instanceof i&&!(e instanceof a)){const r=new a;return r.fn=e,r.parameterEvaluator=n,r.context=t,r}return e}class o extends i{constructor(e){super(),this.fn=e}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,n,o){return o(e,t,((t,l,u)=>{u=u.map((t=>t instanceof i&&!(t instanceof a)?s(t,e,o):t));const c=this.call(n,{args:u});return(0,r.$X)(c)?c.then((e=>s(e,n,o))):c}))}}class a extends i{constructor(){super(...arguments),this.fn=null,this.context=null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,n){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(e=[]){this._elements=e}length(){return this._elements.length}get(e){return this._elements[e]}toArray(){return this.slice()}slice(e=0,t=this.length()){const n=[];for(let r=e;r<t;r++)n.push(this.get(r));return n}}},98453:(e,t,n)=>{n.d(t,{m:()=>r});const r=new(n(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"})},99719:(e,t,n)=>{n.d(t,{x:()=>r});class r{}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1728],{71728:(e,t,a)=>{a.r(t),a.d(t,{default:()=>z});var i,n,o=a(90237),s=a(67996),r=a(5503),l=a(49186),h=a(53966),d=a(91869),c=a(92071),p=a(74887),u=a(36708),y=a(10107),g=(a(44208),a(87811),a(40608)),m=a(35666),f=a(5443),M=a(86738),L=a(82799),w=a(4146),b=a(90708),k=a(15375);(n=i||(i={})).MULTIPLIER="multiplier",n.ABSOLUTE="absolute-value";var T=a(80340),C=a(70643),N=a(85342),x=a(69860),v=a(30504),D=a(63074),E=a(16131),_=a(25036),A=a(10873),I=a(8460),S=a(51806);let R=class extends((0,E.q)((0,D.dM)((0,_.j)((0,c.P)(w.A))))){constructor(e){if(super(e),this.url=null,this.dataPreloadedInLocalCache=!1,this.initializationLinkChartConfig=null,this.membershipModified=!0,this._currentLinkChartConfig={layoutMode:"organic-standard"},this._graphTypeLookup=new Map,this.dataManager=null,this.knowledgeGraph=null,this.layers=new(r.A.ofType(C.A)),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map,this.linkChartExtent=new f.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7}),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.operationalLayerType="LinkChartLayer",this.sublayerIdsCache=new Map,this.tables=new(r.A.ofType(C.A)),this.type="link-chart",this.chronologicalAuxiliaryGraphics=null,this._originalInclusionList=e?.initializationInclusionModeDefinition,e?.dataPreloadedInLocalCache&&!e?.initializationInclusionModeDefinition)throw new l.A("knowledge-graph:linkchart-layer-constructor","If creating a link chart composite layer and configured that data is already loaded in the cache, you must specify an inclusion list so the Composite Layer knows what records belong to it");this.addHandles((0,u.wB)((()=>this.layers.concat(this.tables)),((e,t)=>this._handleSublayersChange(e,t)),u.OH))}normalizeCtorArgs(e){if(!e)return{};const{url:t,title:a,dataPreloadedInLocalCache:i,initializationLinkChartConfig:n}=e;return{url:t,title:a,dataPreloadedInLocalCache:i,initializationLinkChartConfig:n}}_initializeLayerProperties(e){if(!this.title&&this.url){const e=this.url.split("/");this.title=e[e.length-2]}const t=new Set;let a=[],i=[];if(e.inclusionModeDefinition&&(!e.inclusionModeDefinition.namedTypeDefinitions||e.inclusionModeDefinition.namedTypeDefinitions.size<1))throw new l.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined");e.inclusionModeDefinition?.generateAllSublayers?(a=e.knowledgeGraph.dataModel.entityTypes??[],i=e.knowledgeGraph.dataModel.relationshipTypes??[]):e.inclusionModeDefinition?.namedTypeDefinitions&&e.inclusionModeDefinition?.namedTypeDefinitions.size>0?e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((n,o)=>{const s=this._graphTypeLookup.get(o);if(!s)return h.A.getLogger(this).warn(`A named type, ${o}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(o);"relationship"===s.type?t.has(o)||(t.add(o),i.push(s)):"entity"===s.type?t.has(o)||(t.add(o),a.push(s)):(h.A.getLogger(this).warn(`A named type, ${o}, was in the inclusion list that wasn't properly modeled and will be removed`),e.inclusionModeDefinition?.namedTypeDefinitions.delete(o))})):(a=e.knowledgeGraph.dataModel.entityTypes??[],i=e.knowledgeGraph.dataModel.relationshipTypes??[]);const n=new T.P({knowledgeGraph:e.knowledgeGraph,inclusionModeDefinition:e.inclusionModeDefinition});this.knowledgeGraph=e.knowledgeGraph,this.memberEntityTypes=a,this.memberRelationshipTypes=i,this.dataManager=n}load(e){const t=async()=>{const e=[],t=[];this.loadLayerAssumingLocalCache(),this._layersLoadedFromAuthoritativeItem()||await(0,N.qN)(this),this.dataManager.inclusionModeDefinition&&(this.dataManager.inclusionModeDefinition.generateAllSublayers=!1),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach((e=>{e.useAllData=!1})),await this._initializeDiagram(),this.layers.forEach((a=>{t.push(a.refreshCachedQueryEngine()),e.push(new Promise((e=>{a.on("layerview-create",(()=>{e(null)}))})))})),this.tables.forEach((e=>{t.push(e.refreshCachedQueryEngine())})),await Promise.all(t)};return this.addResolvingPromise(new Promise((a=>{(0,S.fetchKnowledgeGraph)(this.url).then((async i=>{i.dataModel.entityTypes?.forEach((e=>{e.name&&this._graphTypeLookup.set(e.name,e)})),i.dataModel.relationshipTypes?.forEach((e=>{e.name&&this._graphTypeLookup.set(e.name,e)}));const n=this.linkChart?.linkChartProperties;if(n?.originIdOf("entitiesUrl")===m.Gr.LINK_CHART&&(this.membershipModified=!1,this._originalInclusionList=await s.XW.fetchAndConvertSerializedLinkChart({entitiesUrl:n?.entitiesUrl,relationshipsUrl:n?.relationshipsUrl}),this._alignLayersDataModelAndInclusionDefinition(i.dataModel),this.initializationLinkChartConfig={layoutSettings:n?.layoutSettings??void 0,layoutMode:(0,v.k5)(n.layoutType)}),this._initializeLayerProperties({knowledgeGraph:i,inclusionModeDefinition:this._originalInclusionList}),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.size||(this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map},this.dataManager.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})})),this.dataManager.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})}))),this.dataPreloadedInLocalCache){const e=x.A.getInstance();for(const[t,a]of this.dataManager.inclusionModeDefinition?.namedTypeDefinitions??[])for(const i of a.members?.values()??[]){const a=e.readFromStoreById(`${t}__${i.id}`);a&&(0,d.tE)(this.dataManager.sublayerCaches,t,(()=>new Map)).set(i.id,a)}await t()}else{const a="geographic-organic-standard"===this.initializationLinkChartConfig?.layoutMode;this.addResolvingPromise(this.dataManager.refreshCacheContent(void 0,!1,a,!0).then((async()=>{(0,p.Te)(e),await t()})))}a(null)}))}))),Promise.resolve(this)}set initializationInclusionModeDefinition(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("initializationInclusionModeDefinition",e):h.A.getLogger(this).error("#initializationInclusionModeDefinition","initializationInclusionModeDefinition cannot be changed after the layer is loaded.")}get linkChart(){return this.parent}async addRecords(e,t){let a=[];t?.cascadeAddRelationshipEndNodes&&this.dataManager.knowledgeGraph.dataModel&&(a=await(0,v.aq)(e,this.dataManager.knowledgeGraph));const i=e.concat(a).filter((e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id)));i.length>0&&(this.membershipModified=!0),await this._handleNewRecords(i,t)}async createSublayerForNamedType(e){await this.load();const t=this._graphTypeLookup.get(e);if(!t)throw new l.A("knowledge-graph:missing-type","The specified type does not exist in the knowledge graph.");if(this.dataManager.sublayerCaches.has(e))throw new l.A("knowledge-graph:duplicate-type","The specified type already exists as a sublayer.");this.dataManager.sublayerCaches.set(e,new Map),(0,d.tE)(this.sublayerIdsCache,e,(()=>new Set));const a=this._createSublayer(t);return"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.set(e,{useAllData:!1,members:new Map}),a.geometryType?this.layers.push(a):this.tables.push(a),await(0,N.qN)(this,[e]),this._refreshNamedTypes(),a}async removeRecords(e,{cascadeRemoveRelationships:t=!0,recalculateLayout:a=!1,overrideMembershipCheck:i=!1}={cascadeRemoveRelationships:!0,recalculateLayout:!1,overrideMembershipCheck:!1}){let n=[];for(const t of e)(i||!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.members?.has(t.id))&&n.push(t);if(t){const e=new Set,t=[];for(const t of n)if(this.dataManager.nodeConnectionsLookup.has(t.id))for(const a of this.dataManager.nodeConnectionsLookup.get(t.id))e.add(a);for(const a of e)if(this.dataManager.memberIdTypeLookup.has(a))for(const e of this.dataManager.memberIdTypeLookup.get(a))this.dataManager.relationshipTypeNames.has(e)&&t.push({id:a,typeName:e});n=n.concat(t)}this.dataManager.removeFromLayer(n);for(const e of n)this.sublayerIdsCache.get(e.typeName)?.delete(e.id),this.dataManager.relationshipTypeNames.has(e.typeName)?this.relationshipLinkChartDiagramLookup.delete(e.id):this.entityLinkChartDiagramLookup.delete(e.id);const o=a?void 0:this.getCurrentNodeLocations();await this._calculateLayoutWithSublayerTimeInfo(this._currentLinkChartConfig.layoutMode,{layoutSettings:this._currentLinkChartConfig.layoutSettings,lockedNodeLocations:o}),n.length>0&&(this.membershipModified=!0);const s=[];return this.layers.forEach((e=>{s.push(e.refreshCachedQueryEngine())})),await Promise.all(s),this._refreshNamedTypes(),n}async expand(e,t){let a=[];try{const i=await this.dataManager.getConnectedRecordIds(e,t?.relationshipTypeNames,t);a=i.filter((e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id))),await this._handleNewRecords(a,t),i.length>0&&(this.membershipModified=!0),(0,p.Te)(t?.signal)}catch(e){throw(0,p.zf)(e)&&a.length>0&&await this.removeRecords(a,{overrideMembershipCheck:!0}),e}return{records:a}}loadLayerAssumingLocalCache(){const e=[...this.memberRelationshipTypes,...this.memberEntityTypes];this.originIdOf("layers")===m.Gr.DEFAULTS?this._createSublayers(e,this.layers,(e=>!!e.geometryType)):this._updateSublayers(e,this.layers),this.originIdOf("tables")===m.Gr.DEFAULTS?this._createSublayers(e,this.tables,(e=>!e.geometryType)):this._updateSublayers(e,this.tables),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{const a=(0,d.tE)(this.sublayerIdsCache,t,(()=>new Set));e.members?.forEach((({id:e,linkChartLocation:i})=>{if(a.add(e),i){const a="coords"in i&&"lengths"in i?i:(0,b.Ux)(i);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(e,a):this.entityLinkChartDiagramLookup.set(e,a)}}))}))}async calculateLinkChartLayout(e="organic-standard",t){const a=[],i=[],n=[];this.dataManager.sublayerCaches.forEach(((e,t)=>{this.dataManager.entityTypeNames.has(t)?e.forEach((e=>{a.push({typeName:t,feature:e})})):this.dataManager.relationshipTypeNames.has(t)&&e.forEach((e=>{i.push({typeName:t,feature:e})}))})),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map;const o=new Map,s=new Map,r=new Map,c=new Map,u=new Uint8Array(a.length),y=new Float64Array(a.length),g=new Float64Array(a.length),m=new Float64Array(a.length),w=new Float64Array(a.length),T=new Uint32Array(i.length),C=new Uint32Array(i.length),N=new Float64Array(i.length),x=new Float64Array(i.length),v=[];let D=!1;const E=new f.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7});let _,A="organic-standard",S=0,R=0;const z=I.i6.apply;switch(A="geographic-organic-standard"===e?"organic-standard":e,A){case"organic-standard":_=I.pM.apply;break;case"organic-community":_=I.Tu.apply;break;case"hierarchical-bottom-to-top":_=I.$C.apply;break;case"radial-root-centric":_=I.vJ.apply;break;case"tree-left-to-right":_=I.Xq.apply;break;default:_=I.Wg.apply}let G=!1;a.forEach((({typeName:a,feature:i})=>{if("chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e&&t?.lockedNodeLocations?.has(i.attributes[k.dr])){"geographic-organic-standard"===e&&this.dataManager.geographicLookup.has(a)?u[S]=I.tx.IsGeographic:u[S]=I.tx.None;const n=t.lockedNodeLocations.get(i.attributes[k.dr]);y[S]=n.x,g[S]=n.y}else if("geographic-organic-standard"===e&&this.dataManager.geographicLookup.has(a)){u[S]=I.tx.IsGeographic;let e=null;const t=i.attributes[this.dataManager.geographicLookup.get(a).name],n=this.dataManager.geographicLookup.get(a)?.geometryType;switch(n){case"esriGeometryPoint":y[S]=t?.x,g[S]=t?.y;break;case"esriGeometryPolygon":e=t?.centroid,null!=e?.x&&null!=e?.y?(y[S]=e.x,g[S]=e.y):u[S]=I.tx.IsMovable;break;case"esriGeometryPolyline":case"esriGeometryMultipoint":e=t?.extent?.center,null!=e?.x&&null!=e?.y?(y[S]=e.x,g[S]=e.y):u[S]=I.tx.IsMovable;break;default:u[S]=I.tx.IsMovable}(null==y[S]||null==g[S]||Number.isNaN(y[S])||Number.isNaN(g[S]))&&(u[S]=I.tx.IsMovable,y[S]=0,g[S]=0)}else if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){!G&&t?.lockedNodeLocations?.has(i.attributes[k.dr])&&(G=!0);const e=t?.timeInfoByTypeName?.get(a),n=e?.startField,o=n&&e?.startField?i.attributes[n]:null;m[S]=o?new Date(o).getTime():NaN;const s=e?.endField,r=s&&e?.endField?i.attributes[s]:null;w[S]=r?new Date(r).getTime():NaN,y[S]=0,g[S]=0,u[S]=I.tx.IsMovable}else u[S]=I.tx.IsMovable,y[S]=0,g[S]=0;c.set(i.attributes[k.dr],S),v[S]={feature:i,typeName:a},S++})),G&&h.A.getLogger(this).warn("Locked node locations are not supported for chronological layout at this time. Requested node locations were ignored");let P=!1;const F=new Map;i.forEach((a=>{const i=a.feature.attributes[k.Cz],o=a.feature.attributes[k.KQ],s=c.get(i),r=c.get(o),l=t?.timeInfoByTypeName?.get(a.typeName),h=t?.timeInfoByTypeName?l?.startField:null,d=h?a.feature.attributes[h]:null,p=l?.endField,u=p?a.feature.attributes[p]:null;if(void 0!==s&&void 0!==r){let t=i+"-"+o;"chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e||(t=t+"-"+d+"-"+u);const l=F.get(t),h=l?.has(a.typeName);h||(T[R]=s,C[R]=r,"chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e||(N[R]=d?new Date(d).getTime():NaN,x[R]=u?new Date(u).getTime():NaN),void 0===l?F.set(t,new Map([[a.typeName,R]])):l.set(a.typeName,R),R++),n.push(a)}else P=!0,this.relationshipLinkChartDiagramLookup.set(i,null)})),P&&h.A.getLogger(this).warn("A relationship is a member of this layer that has either origin or destination entity nodes that are not members. The diagram geometry will be set to null");const O=this._validateOrganicLayoutSettings(e,t?.layoutSettings?.organicLayoutSettings),U=this._convertValidatedOrganicSettingsToCalculationSettings(O);await(0,I.Hh)();let Z=I.JT.Error,B=null;if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){let a;({status:Z,links:B,graphics:a}=z((()=>t?.signal?.aborted??!1),u,y,g,m,w,T.subarray(0,R),C.subarray(0,R),N.subarray(0,R),x.subarray(0,R),"chronological-multi-timeline"===e,t?.layoutSettings?.chronologicalLayoutSettings)),Z===I.JT.Success&&(this.chronologicalAuxiliaryGraphics=a)}else({status:Z,links:B}=_((()=>t?.signal?.aborted??!1),u,y,g,T.subarray(0,R),C.subarray(0,R),U.computationBudgetTime,U.idealEdgeLengthMultiplier,U.repulsionRadiusMultiplier));if((0,p.Te)(t?.signal),Z===I.JT.Error)throw new l.A("knowledge-graph:layout-failed","Attempting to arrange the records in the specified layout failed");if(Z===I.JT.Canceled)throw(0,p.NK)();for(let e=0;e<v.length;e++){if(g[e]>84.9999?g[e]=84.9999:g[e]<-84.9999&&(g[e]=-84.9999),y[e]>179.9999?y[e]=179.9999:y[e]<-179.9999&&(y[e]=-179.9999),v[e].feature.attributes[k.T1]=new M.A(y[e],g[e]),o.has(v[e].typeName)){const t=o.get(v[e].typeName);t?.set(v[e].feature.attributes[k.dr],v[e].feature)}else{const t=new Map;t.set(v[e].feature.attributes[k.dr],v[e].feature),o.set(v[e].typeName,t)}r.set(v[e].feature.attributes[k.dr],v[e].feature);const t=(0,b.Ux)(v[e].feature.attributes[k.T1]);this.entityLinkChartDiagramLookup.set(v[e].feature.attributes[k.dr],v[e].feature.attributes[k.T1]?t:null);const a=(0,d.tE)(this.dataManager.inclusionModeDefinition.namedTypeDefinitions,v[e].typeName,(()=>({useAllData:!1,members:new Map})));(0,d.tE)(a.members,v[e].feature.attributes[k.dr],(()=>({id:v[e].feature.attributes[k.dr],linkChartLocation:void 0}))).linkChartLocation=v[e].feature.attributes[k.T1];const{x:i,y:n}=v[e].feature.attributes[k.T1];if(D)E.xmin=Math.min(E.xmin,i),E.xmax=Math.max(E.xmax,i),E.ymin=Math.min(E.ymin,n),E.ymax=Math.max(E.ymax,n);else{const e=1e-7;E.xmin=i-e,E.xmax=i+e,E.ymin=n-e,E.ymax=n+e,D=!0}}if(this.linkChartExtent.xmin=E.xmin,this.linkChartExtent.xmax=E.xmax,this.linkChartExtent.ymin=E.ymin,this.linkChartExtent.ymax=E.ymax,!B)throw new l.A("knowledge-graph:layout-failed","Attempting to retrieve link geometry from diagram engine failed");const j=new Map,Q=new Map,q=new Map,J=new Set;for(let a=0;a<n.length;a++){const i=[],o=n[a],l=o.feature.attributes[k.Cz],p=o.feature.attributes[k.KQ];let u=l+"-"+p;if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){const e=t?.timeInfoByTypeName?.get(o.typeName),a=t?.timeInfoByTypeName?e?.startField:null,i=a?o.feature.attributes[a]:null,n=e?.endField;u+="-"+i+"-"+(n?o.feature.attributes[n]:null)}const y=F.get(u).get(o.typeName),g=0===y?0:B?.vertexEndIndex[y-1];if(!J.has(y)){if(J.add(y),B.types[y]===I.J.Recursive){const e=[B.vertices[2*g],B.vertices[2*g+1]],t=[B.vertices[2*(g+1)],B.vertices[2*(g+1)+1]],a=[.5*(e[0]+t[0]),.5*(e[1]+t[1])],n=[a[0]-e[0],a[1]-e[1]],o=[a[0]+n[1],a[1]-n[0]],s=[a[0]-n[1],a[1]+n[0]];i.push(e),i.push(o),i.push(t),i.push(s),i.push(e)}else{if(B.types[y]!==I.J.Regular){h.A.getLogger(this).warn("A relationship generated an unsupported link geometry type. It will not be rendered");continue}for(let e=g;e<B.vertexEndIndex[y];e++)i.push([B.vertices[2*e],B.vertices[2*e+1]])}if("chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e){const e=v[c.get(l)]?.feature.attributes[k.T1],t=v[c.get(p)]?.feature.attributes[k.T1];i[0][0]===e.x&&i[0][1]===e.y||(i[0]=[e.x,e.y]),i[i.length-1][0]===t.x&&i[i.length-1][1]===t.y||(i[i.length-1]=[t.x,t.y])}for(let e=1;e<i.length-1;e++)i[e][1]>85.5?i[e][1]=85.5:i[e][1]<-85.5&&(i[e][1]=-85.5),i[e][0]>179.9999?i[e][0]=179.9999:i[e][0]<-179.9999&&(i[e][0]=-179.9999);j.has(u)?j.get(u).push(i):j.set(u,[i])}const m=j.get(u);Q.has(u)||(Q.set(u,new Map),q.set(u,new Map));const f=Q.get(u),M=q.get(u);f.has(o.typeName)||(f.set(o.typeName,m.shift()),M.set(o.typeName,0));const w=f.get(o.typeName);M.set(o.typeName,M.get(o.typeName)+1);const T=new L.A({paths:[w]});if(o.feature.attributes[k.T1]=T,s.has(o.typeName)){const e=s.get(o.typeName);e?.set(o.feature.attributes[k.dr],o.feature)}else{const e=new Map;e.set(o.feature.attributes[k.dr],o.feature),s.set(o.typeName,e)}r.set(o.feature.attributes[k.dr],o.feature);const C=(0,b.Ux)(o.feature.attributes[k.T1]);this.relationshipLinkChartDiagramLookup.set(o.feature.attributes[k.dr],o.feature.attributes[k.T1]?C:null);const N=(0,d.tE)(this.dataManager.inclusionModeDefinition.namedTypeDefinitions,o.typeName,(()=>({useAllData:!1,members:new Map})));(0,d.tE)(N.members,o.feature.attributes[k.dr],(()=>({id:o.feature.attributes[k.dr],linkChartLocation:void 0}))).linkChartLocation=C}for(const e of n)e.feature.attributes[k.M1]=q.get(e.feature.attributes[k.Cz]+"-"+e.feature.attributes[k.KQ])?.get(e.typeName)??null;return this._currentLinkChartConfig={layoutMode:e,layoutSettings:t?.layoutSettings?.clone()},{nodes:o,links:s,idMap:r}}async applyNewLinkChartLayout(e="organic-standard",t){const a=[];await this._calculateLayoutWithSublayerTimeInfo(e,t),this.layers.forEach((e=>{a.push(e.refreshCachedQueryEngine())})),this.membershipModified=!0,await Promise.all(a),this._refreshNamedTypes()}getCurrentNodeLocations(){const e=new Map;for(const[t,a]of this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.entries()??[])this.dataManager.relationshipTypeNames.has(t)||a?.members?.forEach((t=>{const a=t.linkChartLocation;let i;const n=t.id;a&&(i="x"in a?{x:a.x,y:a.y}:{x:a.coords[0],y:a.coords[1]},e.set(n,new M.A({x:i.x,y:i.y})))}));return e}async refreshLinkChartCache(e){await this.dataManager.refreshCacheContent(e);const t=[];this.layers.forEach((e=>{t.push(e.refreshCachedQueryEngine())})),await Promise.all(t),this._refreshNamedTypes()}async connectBetweenEntities(e,t){if(!e.length)return{records:[]};let a=[];try{let i=[];for(const e of this.dataManager.relationshipTypeNames){const t=this.sublayerIdsCache.get(e);t&&(i=i.concat(Array.from(t.keys())))}a=await this.dataManager.getRelationshipsBetweenNodes(e,i,t),await this._handleNewRecords(a,t),(0,p.Te)(t)}catch(e){throw(0,p.zf)(e)&&this.removeRecords(a),e}return{records:a}}async connectFromEntities(e,t){if(!e.length)return{records:[]};let a=[];try{let i=[];for(const e of this.dataManager.relationshipTypeNames){const t=this.sublayerIdsCache.get(e);t&&(i=i.concat(Array.from(t.keys())))}let n=[];for(const e of this.dataManager.entityTypeNames){const t=this.sublayerIdsCache.get(e);t&&(n=n.concat(Array.from(t)))}a=await this.dataManager.getRelationshipsFromNodes(e,n,i,t),await this._handleNewRecords(a,t),a.length>0&&(this.membershipModified=!0),(0,p.Te)(t)}catch(e){throw(0,p.zf)(e)&&this.removeRecords(a),e}return{records:a}}getCurrentLayout(){return this._currentLinkChartConfig.layoutMode}async _calculateLayoutWithSublayerTimeInfo(e="organic-standard",t){const a=new Map;this.layers.forEach((e=>{a.set(e.objectType.name,e.timeInfo)})),await this.calculateLinkChartLayout(e,{timeInfoByTypeName:a,...t}),this.linkChart?.handleChronologicalOverlay()}async _handleNewRecords(e,t){const a=new Set,i=[],n=this.layers.concat(this.tables);for(const t of e)this._graphTypeLookup.has(t.typeName)&&(!1===n.some((e=>e.objectType.name===t.typeName))&&(this.dataManager.sublayerCaches.set(t.typeName,new Map),a.add(t.typeName)),(0,d.tE)(this.sublayerIdsCache,t.typeName,(()=>new Set)).add(t.id),i.push(t));this.dataManager.addToLayer(i);for(const e of a){const t=this._graphTypeLookup.get(e);if(t){const a=this._createSublayer(t);"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),a.geometryType?this.layers.push(a):this.tables.push(a)}}await(0,N.qN)(this,Array.from(a),t),await this.dataManager.refreshCacheContent(e.map((e=>e.id)),void 0,void 0,void 0,t);const o={layoutSettings:this._currentLinkChartConfig.layoutSettings,lockedNodeLocations:new Map};for(const[e,t]of this.entityLinkChartDiagramLookup.entries())t&&o.lockedNodeLocations.set(e,new M.A(t.coords[0],t.coords[1]));await this.applyNewLinkChartLayout(this._currentLinkChartConfig.layoutMode,o)}_createSublayers(e,t,a){e.forEach((e=>{const i=this._createSublayer(e);a(i)&&t.push(i),this._updateSublayerCaches(e)}))}_updateSublayers(e,t){t.forEach((t=>{t.parentCompositeLayer=this;const a=e.find((e=>e.type===t.graphType&&e.name===t.graphTypeName));a&&(t.objectType=a,t.read({title:a.name},{origin:"service"}),this._updateSublayerCaches(a))}))}_updateSublayerCaches({name:e}){if(!e)return;const t=this.dataManager.sublayerCaches;t.has(e)||t.set(e,new Map)}_layersLoadedFromAuthoritativeItem(){const e=this.originIdOf("layers");return e>=m.Gr.PORTAL_ITEM&&e<m.Gr.USER}async _initializeDiagram(){this.initializationLinkChartConfig?this.initializationLinkChartConfig.doNotRecalculateLayout?(this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{e?.members?.forEach((e=>{const a=e.linkChartLocation;let i;const n=e.id;if(!a)return;i="x"in a?{x:a.x,y:a.y}:{x:a.coords[0],y:a.coords[1]};const o=(0,b.Ux)(i);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(n,o):this.entityLinkChartDiagramLookup.set(n,o),this.linkChartExtent.xmin>i.x&&(this.linkChartExtent.xmin=i.x),this.linkChartExtent.xmax<i.x&&(this.linkChartExtent.xmax=i.x),this.linkChartExtent.ymin>i.y&&(this.linkChartExtent.ymin=i.y),this.linkChartExtent.ymax<i.y&&(this.linkChartExtent.ymax=i.y)}))})),this.memberRelationshipTypes.forEach((e=>{e.name&&this.dataManager.sublayerCaches.get(e.name)?.forEach((e=>{const t=this.relationshipLinkChartDiagramLookup.get(e.attributes[k.Cz]),a=this.relationshipLinkChartDiagramLookup.get(e.attributes[k.KQ]);if(t&&a){const i=(0,b.Ux)(new L.A({paths:[[[t.coords[0],t.coords[1]],[a.coords[0],a.coords[1]]]]}));this.relationshipLinkChartDiagramLookup.set(e.attributes[k.dr],i)}else this.relationshipLinkChartDiagramLookup.set(e.attributes[k.dr],null)}))}))):await this._calculateLayoutWithSublayerTimeInfo(this.initializationLinkChartConfig.layoutMode,{lockedNodeLocations:this.getCurrentNodeLocations(),...this.initializationLinkChartConfig||{}}):await this._calculateLayoutWithSublayerTimeInfo("organic-standard",{lockedNodeLocations:this.getCurrentNodeLocations()})}_refreshNamedTypes(){for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}_validateOrganicLayoutSettings(e,t){const a=e=>"number"==typeof e&&!isNaN(e),n=e=>a(e)&&e>=0,o={};if(!new Set(["organic-standard","organic-community","geographic-organic-standard","chronological-multi-timeline","chronological-mono-timeline"]).has(e)||!t)return o;const{computationBudgetTime:s,autoRepulsionRadius:r,repulsionRadiusMultiplier:l,absoluteIdealEdgeLength:d,multiplicativeIdealEdgeLength:c,idealEdgeLengthType:p}=t;return(e=>a(e)&&e>=1)(s)?o.computationBudgetTime=s:s&&h.A.getLogger(this).warn("Invalid layout computationBudgetTime setting, will revert to default setting"),o.autoRepulsionRadius=r,!r&&(e=>a(e)&&e>=1)(l)?o.repulsionRadiusMultiplier=l:r||(o.autoRepulsionRadius=!0,h.A.getLogger(this).warn("Invalid layout repulsionRadiusMultiplier setting, will revert to default setting")),"geographic-organic-standard"===e&&((e=>Object.values(i).includes(e))(p)?o.idealEdgeLengthType=p:void 0!==p&&h.A.getLogger(this).warn('Invalid layout idealEdgeLengthType setting, will revert to "multiplier" setting'),"absolute-value"===p&&n(d)?o.absoluteIdealEdgeLength=d:"absolute-value"===p&&void 0!==d?h.A.getLogger(this).warn("Invalid layout idealEdgeLength setting, will revert to default setting"):"multiplier"===p&&n(c)?o.multiplicativeIdealEdgeLength=c:"multiplier"===p&&void 0!==c&&h.A.getLogger(this).warn("Invalid layout idealEdgeLength setting, will revert to default setting")),o}_convertValidatedOrganicSettingsToCalculationSettings(e){let t=e.idealEdgeLengthType===i.ABSOLUTE?e.absoluteIdealEdgeLength:e.multiplicativeIdealEdgeLength;return e.idealEdgeLengthType===i.ABSOLUTE&&(void 0===t?t=-1:t*=-1),{computationBudgetTime:e.computationBudgetTime??void 0,repulsionRadiusMultiplier:e.repulsionRadiusMultiplier&&!e.autoRepulsionRadius?e.repulsionRadiusMultiplier:void 0,idealEdgeLengthMultiplier:t}}_createSublayer(e){return new C.A({objectType:e,parentCompositeLayer:this,graphType:e.type})}_handleSublayersChange(e,t){t&&(t.forEach((e=>{e.parent=null})),this.removeHandles("sublayers-owner")),e&&(e.forEach((e=>{e.parent=this})),this.addHandles([e.on("after-add",(({item:e})=>{e.parent=this})),e.on("after-remove",(({item:e})=>{e.parent=null}))],"sublayers-owner"))}_alignLayersDataModelAndInclusionDefinition(e){const t=new Set((e.entityTypes??[]).map((e=>e.name)).concat((e.relationshipTypes??[]).map((e=>e.name)))),a=new Set((e.entityTypes??[]).map((e=>e.name))),i=new Set((e.relationshipTypes??[]).map((e=>e.name)));if(this.layers){for(const e of this.layers)!e.graphType&&t.has(e.graphTypeName)&&(e.graphType=a.has(e.graphTypeName)?"entity":"relationship");const e=this.layers.filter((e=>t.has(e.graphTypeName)&&("entity"===e.graphType?a.has(e.graphTypeName):i.has(e.graphTypeName))));this.setAtOrigin("layers",e,(0,m.OL)(this.originIdOf("layers")))}else this.layers=new r.A;if(this.layers&&this._originalInclusionList){const e=new Set(this._originalInclusionList.namedTypeDefinitions.keys()),t=this.tables?.map((e=>e.graphTypeName))??[],a=this.layers.map((e=>e.graphTypeName)).concat(t);for(const t of a)e.has(t)||this._originalInclusionList.namedTypeDefinitions.set(t,{useAllData:!1,members:new Map});const i=[];for(const e of this._originalInclusionList.namedTypeDefinitions.keys())a.includes(e)||(h.A.getLogger(this).warn(`A named type, ${e}, was in the serialized feature collection but did not have a sublayer config in the item, so will be removed`),i.push(e));for(const e of i)this._originalInclusionList.namedTypeDefinitions.delete(e)}}};(0,o._)([(0,y.MZ)(A.OZ)],R.prototype,"url",void 0),(0,o._)([(0,y.MZ)()],R.prototype,"dataPreloadedInLocalCache",void 0),(0,o._)([(0,y.MZ)()],R.prototype,"initializationLinkChartConfig",void 0),(0,o._)([(0,y.MZ)()],R.prototype,"membershipModified",void 0),(0,o._)([(0,y.MZ)()],R.prototype,"dataManager",void 0),(0,o._)([(0,y.MZ)()],R.prototype,"initializationInclusionModeDefinition",null),(0,o._)([(0,y.MZ)()],R.prototype,"knowledgeGraph",void 0),(0,o._)([(0,y.MZ)({type:r.A.ofType(C.A),json:{write:{ignoreOrigin:!0}}})],R.prototype,"layers",void 0),(0,o._)([(0,y.MZ)({readOnly:!0})],R.prototype,"linkChart",null),(0,o._)([(0,y.MZ)()],R.prototype,"entityLinkChartDiagramLookup",void 0),(0,o._)([(0,y.MZ)()],R.prototype,"relationshipLinkChartDiagramLookup",void 0),(0,o._)([(0,y.MZ)()],R.prototype,"linkChartExtent",void 0),(0,o._)([(0,y.MZ)()],R.prototype,"memberEntityTypes",void 0),(0,o._)([(0,y.MZ)()],R.prototype,"memberRelationshipTypes",void 0),(0,o._)([(0,y.MZ)({type:["LinkChartLayer"]})],R.prototype,"operationalLayerType",void 0),(0,o._)([(0,y.MZ)()],R.prototype,"sublayerIdsCache",void 0),(0,o._)([(0,y.MZ)({type:r.A.ofType(C.A),json:{write:{ignoreOrigin:!0}}})],R.prototype,"tables",void 0),(0,o._)([(0,y.MZ)({json:{read:!1}})],R.prototype,"type",void 0),(0,o._)([(0,y.MZ)({json:{read:!1}})],R.prototype,"chronologicalAuxiliaryGraphics",void 0),R=(0,o._)([(0,g.$)("esri.layers.LinkChartLayer")],R);const z=R}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8469],{2272:(t,e,s)=>{s.d(e,{Dl:()=>c,gf:()=>u,jV:()=>h,lF:()=>l});var i=s(92602),n=s(70333),r=s(4718),o=s(84952),a=s(926);function h(t,e){return e?{...e,query:{...t??{},...e.query}}:{query:t}}function c(t){return"string"==typeof t?(0,o.An)(t):(0,r.o8)(t)}function l(t,e,s){const i={};for(const n in t){if("declaredClass"===n)continue;const r=t[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r))i[n]=r.map((t=>l(t)));else if("object"==typeof r)if(r.toJSON){const t=r.toJSON(s?.[n]);i[n]=e?t:JSON.stringify(t)}else i[n]=e?r:JSON.stringify(r);else i[n]=r}return i}async function u(t,e,r){const o=function(t,e){return t?(0,a.Jn)(t,e)?e||i.A.apiKey:n.id?.findCredential(t)?.token:null}(t,e);if(o)return o;!n.id&&i.A.request.useIdentity&&await Promise.all([s.e(7292),s.e(3747)]).then(s.bind(s,73747));const h=await(n.id?.getCredential(t,r));return h?.token}},3330:(t,e,s)=>{s.d(e,{GB:()=>n,Qo:()=>o,Y4:()=>r});var i=s(96285);class n{static{this.instance=new i.oh("Etc/UTC")}}function r(t){return t instanceof i.bo?t===n.instance:"unknown"===t?.toString().toLowerCase()}function o(t){return r(t)?n.instance:t}},6518:(t,e,s)=>{s.d(e,{F:()=>a});var i=s(44208),n=s(75503),r=s(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.w(9,(0,i.A)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((s,i)=>{t[e++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.Ie)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,s){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,s)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},15032:(t,e,s)=>{s.d(e,{k:()=>h});var i=s(78502),n=s(73444),r=s(96285);function o(t){if(!t)return"";const e=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let s="";for(const i of t.match(e)||[])switch(i){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":s+=i;break;case"A":case"a":s+="a";break;default:s+=`'${i}'`}return s}const a="esri.core.sql.timeonly";class h{constructor(t,e,s,i){this._hour=t,this._minute=e,this._second=s,this._millisecond=i,this.declaredRootClass=a}static isTimeOnly(t){return"object"==typeof t&&null!=t&&"declaredRootClass"in t&&t.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(t){return h.isTimeOnly(t)&&t.hour===this.hour&&t.minute===this.minute&&t.second===this.second&&t.millisecond===this.millisecond}clone(){return new h(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,i.Fq)(this.hour)&&(0,i.Fq)(this.minute)&&(0,i.Fq)(this.second)&&(0,i.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(t=null){return null===t||""===t?this.toString():(t=o(t))?r.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(t,{locale:(0,n.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(t,e,s,i){const n=new h(t,e,s,i);return n.isValid()?n:null}static fromReader(t){if(!t)return null;const e=t.split(":");return 3!==e.length?null:new h(parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10),0)}static fromMilliseconds(t){if(t>864e5||t<0)return null;const e=Math.floor(t/1e3%60),s=Math.floor(t/6e4%60),i=Math.floor(t/36e5%24),n=Math.floor(t%1e3);return new h(i,s,e,n)}static fromDateJS(t){return new h(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}static fromDateTime(t){return new h(t.hour,t.minute,t.second,t.millisecond)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,e=null){if(""===t)return null;if(null===t)return null;const s=[];e?(e=o(e))&&s.push(e):null!==e&&""!==e||(s.push("HH:mm:ss"),s.push("HH:mm:ss.SSS"),s.push("hh:mm:ss a"),s.push("hh:mm:ss.SSS a"),s.push("HH:mm"),s.push("hh:mm a"),s.push("H:mm"),s.push("h:mm a"),s.push("H:mm:ss"),s.push("h:mm:ss a"),s.push("H:mm:ss.SSS"),s.push("h:mm:ss.SSS a"));for(const e of s){const s=r.c9.fromFormat(t,e);if(s.isValid)return new h(s.hour,s.minute,s.second,s.millisecond)}return null}plus(t,e){switch(t){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return h.fromDateTime(this.toUTCDateTime().plus({[t]:e}))}return null}toUTCDateTime(){return r.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(t,e){switch(e.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===e?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}}},36708:(t,e,s)=>{s.d(e,{C_:()=>d,OH:()=>_,Vh:()=>y,on:()=>u,pc:()=>g,wB:()=>h,z7:()=>c});var i=s(37955),n=s(36563),r=s(97768),o=s(74887),a=s(14012);function h(t,e,s={}){return l(t,e,s,m)}function c(t,e,s={}){return l(t,e,s,f)}function l(t,e,s={},i){let n=null;const o=s.once?(t,s)=>{i(t)&&((0,r.xt)(n),e(t,s))}:(t,s)=>{i(t)&&e(t,s)};if(n=(0,a.Cn)(t,o,s.sync,s.equals),s.initial){const e=t();o(e,e)}return n}function u(t,e,s,o={}){let a=null,c=null,l=null;function u(){a&&c&&(c.remove(),o.onListenerRemove?.(a),a=null,c=null)}function d(t){o.once&&o.once&&(0,r.xt)(l),s(t)}const m=h(t,((t,s)=>{u(),(0,i.wb)(t)&&(a=t,c=(0,i.on)(t,e,d),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return l=(0,n.hA)((()=>{m.remove(),u()})),l}function d(t,e){return function(t,e,s){if((0,o.G4)(s))return Promise.reject((0,o.NK)());const i=t();if(e?.(i))return Promise.resolve(i);let a=null;function h(){a=(0,r.xt)(a)}return new Promise(((i,r)=>{a=(0,n.vE)([(0,o.u7)(s,(()=>{h(),r((0,o.NK)())})),l(t,(t=>{h(),i(t)}),{sync:!1,once:!0},e??m)])}))}(t,f,e)}function m(t){return!0}function f(t){return!!t}s(80559);const _={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},37730:(t,e,s)=>{s.d(e,{T:()=>n});var i=s(43334);const n={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e)=>new i.Om(e,t.attributes,null,t.objectId),getGeometry:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)}},44729:(t,e,s)=>{s.d(e,{n:()=>h});var i=s(66131),n=s(73444),r=s(96285);function o(t){t=t.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let e="";const s=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const i of t.match(s)||[])switch(i){case"D":e+="d";break;case"DD":e+="dd";break;case"DDD":e+="o";break;case"d":e+="c";break;case"ddd":e+="ccc";break;case"dddd":e+="cccc";break;case"M":e+="L";break;case"MM":e+="LL";break;case"MMM":e+="LLL";break;case"MMMM":e+="LLLL";break;case"YY":e+="yy";break;case"Y":case"YYYY":e+="yyyy";break;case"Q":e+="q";break;case"X":case"x":e+=i;break;default:i.length>=2&&"["===i.slice(0,1)&&"]"===i.slice(-1)?e+=`'${i.slice(1,-1)}'`:e+=`'${i}'`}return e}const a="esri.core.sql.dateonly";class h{constructor(t,e,s){this._year=t,this._month=e,this._day=s,this.declaredRootClass=a}static isDateOnly(t){return"object"==typeof t&&null!=t&&"declaredRootClass"in t&&t.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return h.isDateOnly(t)&&t.day===this.day&&t.month===this.month&&t.year===this.year}clone(){return new h(this._year,this._month,this._day)}toDateTime(t){return r.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,i.mT)(t)})}toDateTimeLuxon(t){return r.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,i.mT)(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,e=!0){if(null===t||""===t)return this.toString();if(e&&(t=o(t)),!t)return"";const s=this.toDateTime("unknown");return i.lY.dateTimeToArcadeDate(s).toFormat(t,{locale:(0,n.JK)(),numberingSystem:"latn"})}toArcadeDate(){const t=this.toDateTime("unknown");return i.lY.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,e){return h.fromDateTime(this.toUTCDateTime().plus({[t]:e}))}toUTCDateTime(){return r.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,e){switch(e.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===e?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){const e=r.c9.fromMillis(t,{zone:r.mQ.utcInstance});return e.isValid?h.fromParts(e.year,e.month,e.day):null}static fromSeconds(t){const e=r.c9.fromSeconds(t,{zone:r.mQ.utcInstance});return e.isValid?h.fromParts(e.year,e.month,e.day):null}static fromReader(t){if(!t)return null;const e=t.split("-");return 3!==e.length?null:new h(parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10))}static fromParts(t,e,s){const i=new h(t,e,s);return!1===i.isValid?null:i}static fromDateJS(t){return h.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return h.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,e=null){if(""===t)return null;if(null===t)return null;const s=[];if(e)(e=o(e))&&s.push(e);else if(null===e||""===e){const e=r.c9.fromISO(t,{setZone:!0});return e.isValid?h.fromParts(e.year,e.month,e.day):null}for(const i of s){const s=r.c9.fromFormat(t,e??i);if(s.isValid)return new h(s.year,s.month,s.day)}return null}static fromNow(t="system"){const e=r.c9.fromJSDate(new Date).setZone((0,i.mT)(t));return new h(e.year,e.month,e.day)}}},58376:(t,e,s)=>{s.d(e,{J:()=>f});var i=s(4718),n=s(74887),r=s(65864),o=s(17136),a=s(21325),h=s(31464),c=s(68298),l=s(8384),u=s(58727),d=s(62798),m=s(62660);async function f(t,e,s){const f=(0,n.Mq)(s),{point:_,distance:y,returnEdge:g,vertexMode:p}=e;if(!g&&"none"===p)return{candidates:[]};let S=(0,i.o8)(e.query);S=await t.schedule((()=>(0,u.T2)(S,t.definitionExpression,t.spatialReference)),f),S=await t.reschedule((()=>(0,d.B4)(S,{availableFields:t.availableFields,fieldsIndex:t.fieldsIndex,geometryType:t.geometryType,spatialReference:t.spatialReference})),f);const T=!(0,a.aI)(_.spatialReference,t.spatialReference);T&&await(0,h.Nk)(_.spatialReference,t.spatialReference);const x="number"==typeof y?y:y.x,w="number"==typeof y?y:y.y,b={xmin:_.x-x,xmax:_.x+x,ymin:_.y-w,ymax:_.y+w,spatialReference:_.spatialReference},M=T?(0,h.Cv)(b,t.spatialReference):b;if(!M)return{candidates:[]};const z=(await(0,o.el)((0,r.rS)(_),null,{signal:f}))[0],D=(await(0,o.el)((0,r.rS)(M),null,{signal:f}))[0];if(null==z||null==D)return{candidates:[]};const I=new l.G(await t.reschedule((()=>t.searchFeatures((0,c.ux)(D.toJSON()))),f),S,t);await t.reschedule((()=>t.executeObjectIdsQuery(I)),f),await t.reschedule((()=>t.executeTimeQuery(I)),f),await t.reschedule((()=>t.executeAttributesQuery(I)),f),await t.reschedule((()=>async function(t,e,s){const{query:i}=e,{spatialRel:n}=i;if(!e?.items?.length||!i.geometry||!n)return;const r=await(0,m.xt)(n,i.geometry,t.geometryType,t.hasZ,t.hasM),o=await t.runSpatialFilter(e.items,(t=>r(t.geometry)),s);e.items=o}(t,I,f)),f);const B=z.toJSON(),C=T?(0,h.Cv)(B,t.spatialReference):B,v=T?Math.max(M.xmax-M.xmin,M.ymax-M.ymin)/2:y;return I.createSnappingResponse({...e,point:C,distance:v},S.returnZ,_.spatialReference)}},66131:(t,e,s)=>{s.d(e,{lY:()=>u,mT:()=>d});var i,n=s(799),r=s(3330),o=s(96285);(i||(i={})).TimeZoneNotRecognized="TimeZoneNotRecognized";const a={[i.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."};class h extends Error{constructor(t,e){super((0,n.HC)(a[t],e)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,h)}}function c(t,e,s){return t<e?t-e:t>s?t-s:0}function l(t,e,s){return t<e?e:t>s?s:t}class u{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,e=1,s=1,i=0,n=0,r=0,a=0,h){if(isNaN(t)||isNaN(e)||isNaN(s)||isNaN(i)||isNaN(n)||isNaN(r)||isNaN(a))return null;const m=o.c9.local(t,e).daysInMonth;let f=o.c9.fromObject({day:l(s,1,m),year:t,month:l(e,1,12),hour:l(i,0,23),minute:l(n,0,59),second:l(r,0,59),millisecond:l(a,0,999)},{zone:d(h)});return f=f.plus({months:c(e,1,12),days:c(s,1,m),hours:c(i,0,23),minutes:c(n,0,59),seconds:c(r,0,59),milliseconds:c(a,0,999)}),new u(f)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,e){const s=d(e);return t.isUnknownTimeZone||s===r.GB.instance?u.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,s):new u(t._date.setZone(s))}static dateJSToArcadeDate(t){return new u(o.c9.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,e="system"){const s=d(e);return new u(o.c9.fromJSDate(t,{zone:s}))}static unknownEpochToArcadeDate(t){return new u(o.c9.fromMillis(t,{zone:r.GB.instance}))}static unknownDateJSToArcadeDate(t){return new u(o.c9.fromMillis(t.getTime(),{zone:r.GB.instance}))}static epochToArcadeDate(t,e="system"){const s=d(e);return new u(o.c9.fromMillis(t,{zone:s}))}static dateTimeToArcadeDate(t){return new u(t)}clone(){return new u(this._date)}changeTimeZone(t){const e=d(t);return u.dateTimeToArcadeDate(this._date.setZone(e))}static dateTimeAndZoneToArcadeDate(t,e){const s=d(e);return t.zone===r.GB.instance||s===r.GB.instance?u.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,s):new u(t.setZone(s))}static nowToArcadeDate(t){const e=d(t);return new u(o.c9.fromJSDate(new Date,{zone:e}))}static nowUTCToArcadeDate(){return new u(o.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===u.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===r.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const t=this.zone;return"fixed"===t.type?0===t.fixed?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new u(this._date.plus(t))}diff(t,e="milliseconds"){return this._date.diff(t._date,e)[e]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,e){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:e&&!this.isUnknownTimeZone})}toFormat(t,e){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,e)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new u(this._date.toUTC())}toLocal(){return new u(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;const e=o.c9.fromISO(t,{setZone:!0});return new u(e)}}function d(t,e=!0){if(t instanceof o.bo)return t;if("system"===t.toLowerCase())return"system";if("utc"===t.toLowerCase())return"UTC";if("unknown"===t.toLowerCase())return r.GB.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(t)){const e=o.mQ.parseSpecifier("UTC"+(t.startsWith("+")||t.startsWith("-")?"":"+")+t);if(e)return e}const s=o.oh.create(t);if(!s.isValid){if(e)throw new h(i.TimeZoneNotRecognized);return null}return s}},66344:(t,e,s)=>{var i,n;s.d(e,{q:()=>h}),(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME",Symbol.iterator;class r{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear()}register(t){this._users.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._users.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}getSize(t,e){const s=this._db.get(t.id+e);return s?.size??0}put(t,e,s,n,r){e=t.id+e;const a=this._db.get(e);if(a&&(this._size-=a.size,t.size-=a.size,this._db.delete(e),a.entry!==s&&this._notifyRemove(e,a.entry,a.size,i.ALL)),n>this._maxSize)return void this._notifyRemove(e,s,n,i.ALL);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return console.warn(`Refusing to cache entry with size ${n} for key ${e}`),void this._notifyRemove(e,s,0,i.ALL);const h=1+Math.max(r,-4)- -3;this._db.set(e,new o(s,n,h)),this._size+=n,t.size+=n,this._checkSize()}updateSize(t,e,s,n){e=t.id+e;const r=this._db.get(e);if(r&&r.entry===s){for(this._size-=r.size,t.size-=r.size;n>this._maxSize;){const t=this._notifyRemove(e,s,n,i.SOME);if(!(null!=t&&t>0))return void this._db.delete(e);n=t}r.size=n,this._size+=n,t.size+=n,this._checkSize()}}pop(t,e){e=t.id+e;const s=this._db.get(e);if(s)return this._size-=s.size,t.size-=s.size,this._db.delete(e),++this._hit,s.entry;++this._miss}get(t,e){e=t.id+e;const s=this._db.get(e);if(void 0!==s)return this._db.delete(e),s.lives=s.lifetime,this._db.set(e,s),++this._hit,s.entry;++this._miss}peek(t,e){const s=this._db.get(t.id+e);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach(((t,i)=>{const n=t.lifetime;s[n]=(s[n]||0)+t.size,this._users.forEach((s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=e[r]||0;e[r]=s+t.size}}))}));const i={};this._users.forEach((t=>{const s=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const n=e[s]||0;e[s]=n,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(e);n.sort(((t,s)=>e[s]-e[t])),n.forEach((s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]));for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forEach((t=>t.resetHitRate()))}clear(t){const e=t.id;this._db.forEach(((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,t.size,i.ALL))})),t.size=0}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,t.size,i.ALL))),this._users.forEach((t=>t.size=0)),this._size=0,this._db.clear()}*values(t){for(const[e,s]of this._db)e.startsWith(t.id)&&(yield s.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s,i){const n=this._users.get(t.split(a)[0])?.removeFunc,r=n?.(e,i,s);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach(((t,e)=>this._checkSizeLimits(t,e))),this._checkSizeLimits(this.maxSize)}setMaxSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const s=e??this;if(s.size<=t)return;const i=e?.id;let n=!0;for(;n;){n=!1;for(const[r,o]of this._db)if(0===o.lifetime&&(!i||r.startsWith(i))){const i=e??this._users.get(r.split(a)[0]);if(this._purgeItem(r,o,i),s.size<=.9*t)return;n||=this._db.has(r)}}for(const[n,r]of this._db)if(!i||n.startsWith(i)){const i=e??this._users.get(n.split(a)[0]);if(this._purgeItem(n,r,i),s.size<=.9*t)return}}_purgeItem(t,e,s){if(this._db.delete(t),e.lives<=1){this._size-=e.size,s&&(s.size-=e.size);const n=this._notifyRemove(t,e.entry,e.size,i.SOME);null!=n&&n>0&&(this._size+=n,s&&(s.size+=n),e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}class o{constructor(t,e,s){this.entry=t,this.size=e,this.lifetime=s,this.lives=s}}const a=":";class h{constructor(t,e){this.removeFunc=e,this._storage=new r,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,s=1){this._storage.put(this,t,e,s,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},69540:(t,e,s)=>{s.d(e,{A:()=>d});var i=s(90237),n=s(69622),r=(s(44208),s(4718)),o=(s(53966),s(97768)),a=s(35666),h=s(88620),c=s(40608);const l=t=>{let e=class extends t{clone(){const t=(0,h.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const e=t.metadata,s=t.store,i={},n=new Map;for(const t in e){const o=e[t],h=s?.originOf(t),c=o.clonable;if(o.readOnly||!1===c||h!==a.Gr.USER&&h!==a.Gr.DEFAULTS&&h!==a.Gr.WEB_MAP&&h!==a.Gr.WEB_SCENE)continue;const l=this[t];let u=null;u="function"==typeof c?c(l):"reference"===c?l:(0,r.TU)(l),null!=l&&null==u||(h===a.Gr.DEFAULTS?n.set(t,u):i[t]=u)}const c=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const t=(0,h.oY)(c)?.store;if(t)for(const[e,s]of n)t.set(e,s,a.Gr.DEFAULTS)}return c}};return e=(0,i._)([(0,c.$)("esri.core.Clonable")],e),e};let u=class extends(l(n.A)){};u=(0,i._)([(0,c.$)("esri.core.Clonable")],u),(u||(u={})).ClonableMixin=l;const d=u},75503:(t,e,s)=>{s.d(e,{E:()=>z,w:()=>a});var i=s(4576),n=s(21818),r=(s(44208),s(3694)),o=s(11006);class a{constructor(t=9,e){this._compareMinX=d,this._compareMinY=m,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),w.prune(),b.prune(),M.prune()}all(t){h(this._data,t)}search(t,e){let s=this._data;const i=this._toBBox;if(S(t,s))for(x.clear();s;){for(let n=0,r=s.children.length;n<r;n++){const r=s.children[n],o=s.leaf?i(r):r;S(t,o)&&(s.leaf?e(r):p(t,o)?h(r,e):x.push(r))}s=x.pop()}}collides(t){let e=this._data;const s=this._toBBox;if(!S(t,e))return!1;for(x.clear();e;){for(let i=0,n=e.children.length;i<n;i++){const n=e.children[i],r=e.leaf?s(n):n;if(S(t,r)){if(e.leaf||p(t,r))return!0;x.push(n)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,s=t.length;e<s;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new I([]),this}remove(t){if(!t)return this;let e,s=this._data,r=null,o=0,a=!1;const h=this._toBBox(t);for(b.clear(),M.clear();s||b.length>0;){if(s||(s=b.pop(),r=b.data[b.length-1],o=M.pop()??0,a=!0),s.leaf&&(e=(0,i.qh)(s.children,(0,n.zI)(t),s.children.length,s.indexHint),-1!==e))return s.children.splice(e,1),b.push(s),this._condense(b),this;a||s.leaf||!p(s,h)?r?(o++,s=r.children[o],a=!1):s=null:(b.push(s),M.push(o),o=0,r=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,s,i){const n=s-e+1;let r=this._maxEntries;if(n<=r){const i=new I(t.slice(e,s+1));return c(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(i-1)));const o=new B([]);o.height=i;const a=Math.ceil(n/r),h=a*Math.ceil(Math.sqrt(r));T(t,e,s,h,this._compareMinX);for(let n=e;n<=s;n+=h){const e=Math.min(n+h-1,s);T(t,n,e,a,this._compareMinY);for(let s=n;s<=e;s+=a){const n=Math.min(s+a-1,e);o.children.push(this._build(t,s,n,i-1))}}return c(o,this._toBBox),o}_insert(t,e,s){const i=this._toBBox,n=s?t:i(t);b.clear();const r=function(t,e,s,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==s;){let s,i=1/0,n=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],a=f(o),h=y(t,o)-a;h<n?(n=h,i=a<i?a:i,s=o):h===n&&a<i&&(i=a,s=o)}e=s||e.children[0]}return e}(n,this._data,e,b);for(r.children.push(t),u(r,n);e>=0&&b.data[e].children.length>this._maxEntries;)this._split(b,e),e--;!function(t,e,s){for(let i=s;i>=0;i--)u(e.data[i],t)}(n,b,e)}_split(t,e){const s=t.data[e],i=s.children.length,n=this._minEntries;this._chooseSplitAxis(s,n,i);const r=this._chooseSplitIndex(s,n,i);if(!r)return;const o=s.children.splice(r,s.children.length-r),a=s.leaf?new I(o):new B(o);a.height=s.height,c(s,this._toBBox),c(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(s,a)}_splitRoot(t,e){this._data=new B([t,e]),this._data.height=t.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(t,e,s){let i,n,r;i=n=1/0;for(let o=e;o<=s-e;o++){const e=l(t,0,o,this._toBBox),a=l(t,o,s,this._toBBox),h=g(e,a),c=f(e)+f(a);h<i?(i=h,r=o,n=c<n?c:n):h===i&&c<n&&(n=c,r=o)}return r}_chooseSplitAxis(t,e,s){const i=t.leaf?this._compareMinX:d,n=t.leaf?this._compareMinY:m;this._allDistMargin(t,e,s,i)<this._allDistMargin(t,e,s,n)&&t.children.sort(i)}_allDistMargin(t,e,s,i){t.children.sort(i);const n=this._toBBox,r=l(t,0,e,n),o=l(t,s-e,s,n);let a=_(r)+_(o);for(let i=e;i<s-e;i++){const e=t.children[i];u(r,t.leaf?n(e):e),a+=_(r)}for(let i=s-e-1;i>=e;i--){const e=t.children[i];u(o,t.leaf?n(e):e),a+=_(o)}return a}_condense(t){for(let e=t.length-1;e>=0;e--){const s=t.data[e];if(0===s.children.length)if(e>0){const n=t.data[e-1],r=n.children;r.splice((0,i.qh)(r,s,r.length,n.indexHint),1)}else this.clear();else c(s,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function h(t,e){let s=t;for(w.clear();s;){if(!0===s.leaf)for(const t of s.children)e((0,n.zI)(t));else w.pushArray(s.children);s=w.pop()??null}}function c(t,e){l(t,0,t.children.length,e,t)}function l(t,e,s,i,n){n||(n=new I([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=e;o<s;o++)r=t.children[o],u(n,t.leaf?i(r):r);return n}function u(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function d(t,e){return t.minX-e.minX}function m(t,e){return t.minY-e.minY}function f(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function _(t){return t.maxX-t.minX+(t.maxY-t.minY)}function y(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function g(t,e){const s=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),n=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,n-s)*Math.max(0,r-i)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function S(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function T(t,e,s,i,n){const r=[e,s];for(;r.length;){const e=r.pop(),s=r.pop();if(e-s<=i)continue;const a=s+Math.ceil((e-s)/i/2)*i;(0,o.q)(t,a,s,e,n),r.push(s,a,a,e)}}const x=new r.A,w=new r.A,b=new r.A,M=new r.A({deallocator:void 0});class z{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class D extends z{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class I extends D{constructor(t){super(),this.children=t,this.leaf=!0}}class B extends D{constructor(t){super(),this.children=t,this.leaf=!1}}},78502:(t,e,s)=>{s.d(e,{Fq:()=>o,Yc:()=>n,Yq:()=>r});var i=s(5443);function n(t){if(null==t)return null;switch(t.type){case"polygon":case"multipoint":case"polyline":return t.extent;case"point":return new i.A({xmin:t.x,ymin:t.y,xmax:t.x,ymax:t.y,spatialReference:t.spatialReference});case"extent":return t}return null}function r(t){if(null==t)return null;const e=t.clone();return void 0!==t.cache._geVersion&&(e.cache._geVersion=t.cache._geVersion),e}function o(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}},83221:(t,e,s)=>{s.d(e,{A:()=>f});var i=s(4576),n=s(49186),r=s(65529),o=s(53966),a=s(70328),h=s(19419),c=s(90708),l=s(6518),u=s(51441),d=s(37730);const m=(0,a.vt)();class f{constructor(t){this.geometryInfo=t,this._boundsStore=new l.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.A,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach((e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,s,i,n]=this.fullBounds;return{xmin:e,ymin:s,xmax:i,ymax:n,spatialReference:(0,u.ag)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}upsertMany(t){const e=t.map((t=>this._upsert(t)));return this._emitChanged(),e.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const s of t){const t=this._boundsStore.get(s.objectId);t&&e((0,a.Jt)(m,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach((e=>t(e)))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,(t=>{e(this._featuresById.get(t))}))}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:t}));const s=this._featuresById.get(e);let i;if(s?(t.displayId=s.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(s)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(t),!t.geometry?.coords?.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);i=(0,c.jQ)(null!=i?i:(0,h.vt)(),t.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t),this._usedMemory+=this.estimateFeatureUsedMemory?.(t)??0}_upsert(t){const e=t?.objectId;if(null==e)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:t})),null;const s=this._featuresById.get(e);if(!s)return this._add(t),t;this._usedMemory-=this.estimateFeatureUsedMemory?.(s)??0;const{geometry:i,attributes:r}=t;for(const t in r)s.attributes[t]=r[t];return i&&(s.geometry=i,this._boundsStore.set(e,(0,c.jQ)((0,h.vt)(),i,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(s)??0,s}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._boundsStore.delete(e),this._featuresById.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(t)??0,t}}},98453:(t,e,s)=>{s.d(e,{m:()=>i});const i=new(s(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"})}}]);