@arcgis/core 4.34.0-next.87 → 4.34.0-next.89

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 (504) hide show
  1. package/PopupTemplate.js +1 -1
  2. package/arcade/Dictionary.js +1 -1
  3. package/arcade/Feature.js +1 -1
  4. package/arcade/Pixel.js +1 -1
  5. package/arcade/Voxel.js +1 -1
  6. package/arcade/containerUtils.js +1 -1
  7. package/arcade/featureSetUtils.js +1 -1
  8. package/arcade/featureset/actions/GroupBy.js +1 -1
  9. package/arcade/featureset/actions/OrderBy.js +1 -1
  10. package/arcade/featureset/support/FeatureSet.js +1 -1
  11. package/arcade/functions/date.js +1 -1
  12. package/arcade/functions/feature.js +1 -1
  13. package/arcade/functions/featuresetbase.js +1 -1
  14. package/arcade/functions/featuresetstats.js +1 -1
  15. package/arcade/functions/featuresetstring.js +1 -1
  16. package/arcade/functions/fieldStats.js +1 -1
  17. package/arcade/functions/geometry.js +1 -1
  18. package/arcade/functions/maths.js +1 -1
  19. package/arcade/functions/string.js +1 -1
  20. package/arcade/languageUtils.js +1 -1
  21. package/assets/components/assets/accordion-item/t9n/messages.ar.json +1 -1
  22. package/assets/components/assets/accordion-item/t9n/messages.bg.json +1 -1
  23. package/assets/components/assets/accordion-item/t9n/messages.bs.json +1 -1
  24. package/assets/components/assets/accordion-item/t9n/messages.ca.json +1 -1
  25. package/assets/components/assets/accordion-item/t9n/messages.cs.json +1 -1
  26. package/assets/components/assets/accordion-item/t9n/messages.da.json +1 -1
  27. package/assets/components/assets/accordion-item/t9n/messages.de.json +1 -1
  28. package/assets/components/assets/accordion-item/t9n/messages.el.json +1 -1
  29. package/assets/components/assets/accordion-item/t9n/messages.es.json +1 -1
  30. package/assets/components/assets/accordion-item/t9n/messages.et.json +1 -1
  31. package/assets/components/assets/accordion-item/t9n/messages.fi.json +1 -1
  32. package/assets/components/assets/accordion-item/t9n/messages.fr.json +1 -1
  33. package/assets/components/assets/accordion-item/t9n/messages.he.json +1 -1
  34. package/assets/components/assets/accordion-item/t9n/messages.hr.json +1 -1
  35. package/assets/components/assets/accordion-item/t9n/messages.hu.json +1 -1
  36. package/assets/components/assets/accordion-item/t9n/messages.id.json +1 -1
  37. package/assets/components/assets/accordion-item/t9n/messages.it.json +1 -1
  38. package/assets/components/assets/accordion-item/t9n/messages.ja.json +1 -1
  39. package/assets/components/assets/accordion-item/t9n/messages.ko.json +1 -1
  40. package/assets/components/assets/accordion-item/t9n/messages.lt.json +1 -1
  41. package/assets/components/assets/accordion-item/t9n/messages.lv.json +1 -1
  42. package/assets/components/assets/accordion-item/t9n/messages.nl.json +1 -1
  43. package/assets/components/assets/accordion-item/t9n/messages.no.json +1 -1
  44. package/assets/components/assets/accordion-item/t9n/messages.pl.json +1 -1
  45. package/assets/components/assets/accordion-item/t9n/messages.pt-BR.json +1 -1
  46. package/assets/components/assets/accordion-item/t9n/messages.pt-PT.json +1 -1
  47. package/assets/components/assets/accordion-item/t9n/messages.ro.json +1 -1
  48. package/assets/components/assets/accordion-item/t9n/messages.ru.json +1 -1
  49. package/assets/components/assets/accordion-item/t9n/messages.sk.json +1 -1
  50. package/assets/components/assets/accordion-item/t9n/messages.sl.json +1 -1
  51. package/assets/components/assets/accordion-item/t9n/messages.sr.json +1 -1
  52. package/assets/components/assets/accordion-item/t9n/messages.sv.json +1 -1
  53. package/assets/components/assets/accordion-item/t9n/messages.th.json +1 -1
  54. package/assets/components/assets/accordion-item/t9n/messages.tr.json +1 -1
  55. package/assets/components/assets/accordion-item/t9n/messages.uk.json +1 -1
  56. package/assets/components/assets/accordion-item/t9n/messages.vi.json +1 -1
  57. package/assets/components/assets/accordion-item/t9n/messages.zh-CN.json +1 -1
  58. package/assets/components/assets/accordion-item/t9n/messages.zh-HK.json +1 -1
  59. package/assets/components/assets/accordion-item/t9n/messages.zh-TW.json +1 -1
  60. package/assets/components/assets/action-bar/t9n/messages.ar.json +1 -1
  61. package/assets/components/assets/action-bar/t9n/messages.bg.json +1 -1
  62. package/assets/components/assets/action-bar/t9n/messages.bs.json +1 -1
  63. package/assets/components/assets/action-bar/t9n/messages.ca.json +1 -1
  64. package/assets/components/assets/action-bar/t9n/messages.cs.json +1 -1
  65. package/assets/components/assets/action-bar/t9n/messages.da.json +1 -1
  66. package/assets/components/assets/action-bar/t9n/messages.de.json +1 -1
  67. package/assets/components/assets/action-bar/t9n/messages.el.json +1 -1
  68. package/assets/components/assets/action-bar/t9n/messages.es.json +1 -1
  69. package/assets/components/assets/action-bar/t9n/messages.et.json +1 -1
  70. package/assets/components/assets/action-bar/t9n/messages.fi.json +1 -1
  71. package/assets/components/assets/action-bar/t9n/messages.fr.json +1 -1
  72. package/assets/components/assets/action-bar/t9n/messages.he.json +1 -1
  73. package/assets/components/assets/action-bar/t9n/messages.hr.json +1 -1
  74. package/assets/components/assets/action-bar/t9n/messages.hu.json +1 -1
  75. package/assets/components/assets/action-bar/t9n/messages.id.json +1 -1
  76. package/assets/components/assets/action-bar/t9n/messages.it.json +1 -1
  77. package/assets/components/assets/action-bar/t9n/messages.ja.json +1 -1
  78. package/assets/components/assets/action-bar/t9n/messages.ko.json +1 -1
  79. package/assets/components/assets/action-bar/t9n/messages.lt.json +1 -1
  80. package/assets/components/assets/action-bar/t9n/messages.lv.json +1 -1
  81. package/assets/components/assets/action-bar/t9n/messages.nl.json +1 -1
  82. package/assets/components/assets/action-bar/t9n/messages.no.json +1 -1
  83. package/assets/components/assets/action-bar/t9n/messages.pl.json +1 -1
  84. package/assets/components/assets/action-bar/t9n/messages.pt-BR.json +1 -1
  85. package/assets/components/assets/action-bar/t9n/messages.pt-PT.json +1 -1
  86. package/assets/components/assets/action-bar/t9n/messages.ro.json +1 -1
  87. package/assets/components/assets/action-bar/t9n/messages.ru.json +1 -1
  88. package/assets/components/assets/action-bar/t9n/messages.sk.json +1 -1
  89. package/assets/components/assets/action-bar/t9n/messages.sl.json +1 -1
  90. package/assets/components/assets/action-bar/t9n/messages.sr.json +1 -1
  91. package/assets/components/assets/action-bar/t9n/messages.sv.json +1 -1
  92. package/assets/components/assets/action-bar/t9n/messages.th.json +1 -1
  93. package/assets/components/assets/action-bar/t9n/messages.tr.json +1 -1
  94. package/assets/components/assets/action-bar/t9n/messages.uk.json +1 -1
  95. package/assets/components/assets/action-bar/t9n/messages.vi.json +1 -1
  96. package/assets/components/assets/action-bar/t9n/messages.zh-CN.json +1 -1
  97. package/assets/components/assets/action-bar/t9n/messages.zh-HK.json +1 -1
  98. package/assets/components/assets/action-bar/t9n/messages.zh-TW.json +1 -1
  99. package/assets/components/assets/action-pad/t9n/messages.ar.json +1 -1
  100. package/assets/components/assets/action-pad/t9n/messages.bg.json +1 -1
  101. package/assets/components/assets/action-pad/t9n/messages.bs.json +1 -1
  102. package/assets/components/assets/action-pad/t9n/messages.ca.json +1 -1
  103. package/assets/components/assets/action-pad/t9n/messages.cs.json +1 -1
  104. package/assets/components/assets/action-pad/t9n/messages.da.json +1 -1
  105. package/assets/components/assets/action-pad/t9n/messages.de.json +1 -1
  106. package/assets/components/assets/action-pad/t9n/messages.el.json +1 -1
  107. package/assets/components/assets/action-pad/t9n/messages.es.json +1 -1
  108. package/assets/components/assets/action-pad/t9n/messages.et.json +1 -1
  109. package/assets/components/assets/action-pad/t9n/messages.fi.json +1 -1
  110. package/assets/components/assets/action-pad/t9n/messages.fr.json +1 -1
  111. package/assets/components/assets/action-pad/t9n/messages.he.json +1 -1
  112. package/assets/components/assets/action-pad/t9n/messages.hr.json +1 -1
  113. package/assets/components/assets/action-pad/t9n/messages.hu.json +1 -1
  114. package/assets/components/assets/action-pad/t9n/messages.id.json +1 -1
  115. package/assets/components/assets/action-pad/t9n/messages.it.json +1 -1
  116. package/assets/components/assets/action-pad/t9n/messages.ja.json +1 -1
  117. package/assets/components/assets/action-pad/t9n/messages.ko.json +1 -1
  118. package/assets/components/assets/action-pad/t9n/messages.lt.json +1 -1
  119. package/assets/components/assets/action-pad/t9n/messages.lv.json +1 -1
  120. package/assets/components/assets/action-pad/t9n/messages.nl.json +1 -1
  121. package/assets/components/assets/action-pad/t9n/messages.no.json +1 -1
  122. package/assets/components/assets/action-pad/t9n/messages.pl.json +1 -1
  123. package/assets/components/assets/action-pad/t9n/messages.pt-BR.json +1 -1
  124. package/assets/components/assets/action-pad/t9n/messages.pt-PT.json +1 -1
  125. package/assets/components/assets/action-pad/t9n/messages.ro.json +1 -1
  126. package/assets/components/assets/action-pad/t9n/messages.ru.json +1 -1
  127. package/assets/components/assets/action-pad/t9n/messages.sk.json +1 -1
  128. package/assets/components/assets/action-pad/t9n/messages.sl.json +1 -1
  129. package/assets/components/assets/action-pad/t9n/messages.sr.json +1 -1
  130. package/assets/components/assets/action-pad/t9n/messages.sv.json +1 -1
  131. package/assets/components/assets/action-pad/t9n/messages.th.json +1 -1
  132. package/assets/components/assets/action-pad/t9n/messages.tr.json +1 -1
  133. package/assets/components/assets/action-pad/t9n/messages.uk.json +1 -1
  134. package/assets/components/assets/action-pad/t9n/messages.vi.json +1 -1
  135. package/assets/components/assets/action-pad/t9n/messages.zh-CN.json +1 -1
  136. package/assets/components/assets/action-pad/t9n/messages.zh-HK.json +1 -1
  137. package/assets/components/assets/action-pad/t9n/messages.zh-TW.json +1 -1
  138. package/assets/components/assets/icon/layer3D16.json +1 -0
  139. package/assets/components/assets/icon/layer3D24.json +1 -0
  140. package/assets/components/assets/icon/layer3D32.json +1 -0
  141. package/assets/components/assets/sort-handle/t9n/messages.ar.json +1 -1
  142. package/assets/components/assets/sort-handle/t9n/messages.bg.json +1 -1
  143. package/assets/components/assets/sort-handle/t9n/messages.bs.json +1 -1
  144. package/assets/components/assets/sort-handle/t9n/messages.ca.json +1 -1
  145. package/assets/components/assets/sort-handle/t9n/messages.cs.json +1 -1
  146. package/assets/components/assets/sort-handle/t9n/messages.da.json +1 -1
  147. package/assets/components/assets/sort-handle/t9n/messages.de.json +1 -1
  148. package/assets/components/assets/sort-handle/t9n/messages.el.json +1 -1
  149. package/assets/components/assets/sort-handle/t9n/messages.es.json +1 -1
  150. package/assets/components/assets/sort-handle/t9n/messages.et.json +1 -1
  151. package/assets/components/assets/sort-handle/t9n/messages.fi.json +1 -1
  152. package/assets/components/assets/sort-handle/t9n/messages.fr.json +1 -1
  153. package/assets/components/assets/sort-handle/t9n/messages.he.json +1 -1
  154. package/assets/components/assets/sort-handle/t9n/messages.hr.json +1 -1
  155. package/assets/components/assets/sort-handle/t9n/messages.hu.json +1 -1
  156. package/assets/components/assets/sort-handle/t9n/messages.id.json +1 -1
  157. package/assets/components/assets/sort-handle/t9n/messages.it.json +1 -1
  158. package/assets/components/assets/sort-handle/t9n/messages.ja.json +1 -1
  159. package/assets/components/assets/sort-handle/t9n/messages.ko.json +1 -1
  160. package/assets/components/assets/sort-handle/t9n/messages.lt.json +1 -1
  161. package/assets/components/assets/sort-handle/t9n/messages.lv.json +1 -1
  162. package/assets/components/assets/sort-handle/t9n/messages.nl.json +1 -1
  163. package/assets/components/assets/sort-handle/t9n/messages.no.json +1 -1
  164. package/assets/components/assets/sort-handle/t9n/messages.pl.json +1 -1
  165. package/assets/components/assets/sort-handle/t9n/messages.pt-BR.json +1 -1
  166. package/assets/components/assets/sort-handle/t9n/messages.pt-PT.json +1 -1
  167. package/assets/components/assets/sort-handle/t9n/messages.ro.json +1 -1
  168. package/assets/components/assets/sort-handle/t9n/messages.ru.json +1 -1
  169. package/assets/components/assets/sort-handle/t9n/messages.sk.json +1 -1
  170. package/assets/components/assets/sort-handle/t9n/messages.sl.json +1 -1
  171. package/assets/components/assets/sort-handle/t9n/messages.sr.json +1 -1
  172. package/assets/components/assets/sort-handle/t9n/messages.sv.json +1 -1
  173. package/assets/components/assets/sort-handle/t9n/messages.th.json +1 -1
  174. package/assets/components/assets/sort-handle/t9n/messages.tr.json +1 -1
  175. package/assets/components/assets/sort-handle/t9n/messages.uk.json +1 -1
  176. package/assets/components/assets/sort-handle/t9n/messages.vi.json +1 -1
  177. package/assets/components/assets/sort-handle/t9n/messages.zh-CN.json +1 -1
  178. package/assets/components/assets/sort-handle/t9n/messages.zh-HK.json +1 -1
  179. package/assets/components/assets/sort-handle/t9n/messages.zh-TW.json +1 -1
  180. package/assets/esri/core/workers/RemoteClient.js +1 -1
  181. package/assets/esri/core/workers/chunks/{ed8863c3d334f438b625.js → 0037abf0a82d1ed32e91.js} +1 -1
  182. package/assets/esri/core/workers/chunks/{c6d4b8d683a34fc0d111.js → 0103b70126bc5dffc55e.js} +1 -1
  183. package/assets/esri/core/workers/chunks/{d7fc8ea2ff527a09f4b9.js → 0296ebe8e37e30af771c.js} +1 -1
  184. package/assets/esri/core/workers/chunks/{39a1f361bb69073af765.js → 04dbdaa63c950f32b8f0.js} +1 -1
  185. package/assets/esri/core/workers/chunks/05aac984cbbadb5f6aa0.js +1 -0
  186. package/assets/esri/core/workers/chunks/0fadd1defbb6743dacdc.js +1 -0
  187. package/assets/esri/core/workers/chunks/{0f05425954578ac796ec.js → 135142f3cbfaf24949bc.js} +1 -1
  188. package/assets/esri/core/workers/chunks/24921d31efa8d222ad2d.js +2 -0
  189. package/assets/esri/core/workers/chunks/{268f5b233640a9dbbf89.js.LICENSE.txt → 24921d31efa8d222ad2d.js.LICENSE.txt} +1 -1
  190. package/assets/esri/core/workers/chunks/2b2f1fcd50dea017d891.js +1 -0
  191. package/assets/esri/core/workers/chunks/2e1cc11462846febb3b2.js +1 -0
  192. package/assets/esri/core/workers/chunks/300b96f0f8e34b4a5d8b.js +1 -0
  193. package/assets/esri/core/workers/chunks/37b5007660535f1c91c6.js +1 -0
  194. package/assets/esri/core/workers/chunks/{2dc88379ee94fabdaf52.js → 39a5863355cccaabd2d6.js} +1 -1
  195. package/assets/esri/core/workers/chunks/3a457e718a901a45902e.js +2 -0
  196. package/assets/esri/core/workers/chunks/{47e4f66c33bb697fbe6b.js.LICENSE.txt → 3a457e718a901a45902e.js.LICENSE.txt} +1 -1
  197. package/assets/esri/core/workers/chunks/{f3ee035fa7bf638c8e60.js → 3d68a650a1f944ec5171.js} +1 -1
  198. package/assets/esri/core/workers/chunks/46ef545d2b3b3f4e6d32.js +2 -0
  199. package/assets/esri/core/workers/chunks/{336b54144afec0c7d396.js.LICENSE.txt → 46ef545d2b3b3f4e6d32.js.LICENSE.txt} +1 -1
  200. package/assets/esri/core/workers/chunks/47c0c16c1e995a441ec2.js +1 -0
  201. package/assets/esri/core/workers/chunks/48913b944c28343816ac.js +1 -0
  202. package/assets/esri/core/workers/chunks/{4d4db6854aff7656f6e1.js → 4dd4b19c410026233999.js} +1 -1
  203. package/assets/esri/core/workers/chunks/4e77b9cc1d9437bcbb0c.js +1 -0
  204. package/assets/esri/core/workers/chunks/52121179d4f9833008ec.js +1 -0
  205. package/assets/esri/core/workers/chunks/58e2652810143f509fe1.js +1 -0
  206. package/assets/esri/core/workers/chunks/{97489bf16a1d327992b2.js → 595593dd03bcfba795c8.js} +11 -16
  207. package/assets/esri/core/workers/chunks/59e27818cb68f0285d54.js +1 -0
  208. package/assets/esri/core/workers/chunks/620a94b54be3ed78350d.js +1 -0
  209. package/assets/esri/core/workers/chunks/67d9cfe02613cb73ee37.js.LICENSE.txt +1 -1
  210. package/assets/esri/core/workers/chunks/6f29951f5a2da068b257.js +1 -0
  211. package/assets/esri/core/workers/chunks/71c6c0b26253c4ca1b68.js +1 -0
  212. package/assets/esri/core/workers/chunks/{1c1b0cc91fe9cb3fec61.js → 71df48968d6cdc736458.js} +1 -1
  213. package/assets/esri/core/workers/chunks/773d106f60f7dad1493d.js +1 -0
  214. package/assets/esri/core/workers/chunks/779ee975efebb838b5d6.js +1 -0
  215. package/assets/esri/core/workers/chunks/7a240ab31d9ff2d2c5af.js +1 -0
  216. package/assets/esri/core/workers/chunks/834985ec601623df34a1.js +1 -0
  217. package/assets/esri/core/workers/chunks/{5dee8c0c60ced791e57f.js → 84a556dafd583635ad5e.js} +1 -1
  218. package/assets/esri/core/workers/chunks/8be9fa12e854a83062c3.js +1 -0
  219. package/assets/esri/core/workers/chunks/8f4cfef97716c3502b0f.js +1 -0
  220. package/assets/esri/core/workers/chunks/{65ec21d29e8563fdbc55.js → 94c9d3094c93f7760433.js} +1 -1
  221. package/assets/esri/core/workers/chunks/{177840d5f0076c0de46b.js → 96de78f9994207aa7201.js} +1 -1
  222. package/assets/esri/core/workers/chunks/{366db86914a63e6d0c68.js → 978ffde9ebebf5c83aea.js} +1 -1
  223. package/assets/esri/core/workers/chunks/a1abe9865d66789bd5af.js +1 -0
  224. package/assets/esri/core/workers/chunks/{47e4f66c33bb697fbe6b.js → a8f998b8ec8c56150479.js} +2 -2
  225. package/assets/esri/core/workers/chunks/{f6e18668f728dfd8ba5e.js.LICENSE.txt → a8f998b8ec8c56150479.js.LICENSE.txt} +1 -1
  226. package/assets/esri/core/workers/chunks/{257fd65786feb5951b90.js → a96e58ed9a4a2329ee53.js} +1 -1
  227. package/assets/esri/core/workers/chunks/{0074f1836d7ff69ff6ec.js → aa778e5d7db40d9b9b4a.js} +1 -1
  228. package/assets/esri/core/workers/chunks/aa78b69219d9a0ef1c54.js.LICENSE.txt +1 -1
  229. package/assets/esri/core/workers/chunks/{c78de6dd6c10280cee69.js → baa48614d9567d5f240d.js} +1 -1
  230. package/assets/esri/core/workers/chunks/c1d75c48558ed23c5b2b.js +1 -0
  231. package/assets/esri/core/workers/chunks/c3010d783506f8410f99.js +1 -0
  232. package/assets/esri/core/workers/chunks/c55c096669677321a227.js +1 -0
  233. package/assets/esri/core/workers/chunks/c86ca87959f04075e834.js +1 -0
  234. package/assets/esri/core/workers/chunks/c954d281038f6bf80232.js +1 -0
  235. package/assets/esri/core/workers/chunks/{c50e8d5f554cf151865c.js → ce16489cf7eb0d78c741.js} +2 -2
  236. package/assets/esri/core/workers/chunks/{c50e8d5f554cf151865c.js.LICENSE.txt → ce16489cf7eb0d78c741.js.LICENSE.txt} +1 -1
  237. package/assets/esri/core/workers/chunks/{a48f980c1531805db73b.js → d1fc2c6e95fe2572d297.js} +1 -1
  238. package/assets/esri/core/workers/chunks/{fc5ac54aab66562c8463.js → d51aabb9b950f49df183.js} +1 -1
  239. package/assets/esri/core/workers/chunks/d6e0528eacee7ea4c1ce.js.LICENSE.txt +1 -1
  240. package/assets/esri/core/workers/chunks/{639d856cd217914dfe1f.js → de34c21d3e6913befe5a.js} +1 -1
  241. package/assets/esri/core/workers/chunks/e99fc64b67bb0c71dc34.js +1 -0
  242. package/assets/esri/core/workers/chunks/f651c05604eab83aef5f.js.LICENSE.txt +1 -1
  243. package/assets/esri/core/workers/chunks/f6806780ca2aa591475a.js +1 -0
  244. package/assets/esri/themes/dark/main.css +1 -1
  245. package/assets/esri/themes/light/main.css +1 -1
  246. package/assets/esri/themes/light/view.css +1 -1
  247. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ar.json +1 -0
  248. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_bg.json +1 -0
  249. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_bs.json +1 -0
  250. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ca.json +1 -0
  251. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_cs.json +1 -0
  252. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_da.json +1 -0
  253. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_de.json +1 -0
  254. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_el.json +1 -0
  255. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_en.json +1 -0
  256. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_es.json +1 -0
  257. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_et.json +1 -0
  258. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_fi.json +1 -0
  259. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_fr.json +1 -0
  260. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_he.json +1 -0
  261. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_hr.json +1 -0
  262. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_hu.json +1 -0
  263. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_id.json +1 -0
  264. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_it.json +1 -0
  265. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ja.json +1 -0
  266. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ko.json +1 -0
  267. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_lt.json +1 -0
  268. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_lv.json +1 -0
  269. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_nl.json +1 -0
  270. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_no.json +1 -0
  271. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_pl.json +1 -0
  272. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_pt-BR.json +1 -0
  273. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_pt-PT.json +1 -0
  274. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ro.json +1 -0
  275. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ru.json +1 -0
  276. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_sk.json +1 -0
  277. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_sl.json +1 -0
  278. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_sr.json +1 -0
  279. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_sv.json +1 -0
  280. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_th.json +1 -0
  281. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_tr.json +1 -0
  282. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_uk.json +1 -0
  283. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_vi.json +1 -0
  284. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_zh-CN.json +1 -0
  285. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_zh-HK.json +1 -0
  286. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_zh-TW.json +1 -0
  287. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  288. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  289. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  290. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  291. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  292. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  293. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  294. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  295. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  296. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  297. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  298. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  299. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  300. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  301. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  302. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  303. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  304. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  305. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  306. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  307. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  308. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  309. package/assets/esri/widgets/Editor/t9n/Editor_no.json +1 -1
  310. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  311. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  312. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  313. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  314. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  315. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  316. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  317. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  318. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  319. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  320. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  321. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  322. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  323. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  324. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  325. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  326. package/chunks/ComponentShader.glsl.js +15 -16
  327. package/chunks/DefaultMaterial.glsl.js +15 -16
  328. package/chunks/Path.glsl.js +12 -12
  329. package/chunks/RealisticTree.glsl.js +5 -6
  330. package/chunks/aiServices.js +1 -1
  331. package/chunks/array.js +1 -1
  332. package/chunks/languageUtils.js +1 -1
  333. package/config.js +1 -1
  334. package/editing/sharedTemplates/SharedTemplate.js +1 -1
  335. package/editing/sharedTemplates/SharedTemplateMetadata.js +1 -1
  336. package/editing/sharedTemplates/SharedTemplateProvider.js +1 -1
  337. package/editing/sharedTemplates/templateDefinitions/FeatureTemplateDefinition.js +1 -1
  338. package/editing/sharedTemplates/templateDefinitions/GroupTemplateDefinition.js +1 -1
  339. package/editing/sharedTemplates/templateDefinitions/PresetTemplateDefinition.js +1 -1
  340. package/editing/sharedTemplates/templateDefinitions/TemplateDefinitionBase.js +1 -1
  341. package/editing/sharedTemplates/templateDefinitions/parts/FeatureTemplateRelationshipPart.js +1 -1
  342. package/editing/sharedTemplates/templateDefinitions/parts/PresetTemplatePart.js +1 -1
  343. package/editing/sharedTemplates/templateDefinitions/parts/TemplatePartBase.js +1 -1
  344. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  345. package/interfaces.d.ts +106 -47
  346. package/kernel.js +1 -1
  347. package/layers/CSVLayer.js +1 -1
  348. package/layers/FeatureLayer.js +1 -1
  349. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  350. package/layers/OrientedImageryLayer.js +1 -1
  351. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  352. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  353. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  354. package/layers/support/BuildingFieldStatistics.js +5 -0
  355. package/layers/support/BuildingSummaryStatistics.js +1 -1
  356. package/layers/support/ControlPoint.js +5 -0
  357. package/layers/support/ControlPointsGeoreference.js +1 -1
  358. package/layers/support/DateTimeFieldFormat.js +1 -1
  359. package/layers/support/FieldConfiguration.js +1 -1
  360. package/layers/support/FieldFormat.js +1 -1
  361. package/layers/support/NumberFieldFormat.js +1 -1
  362. package/layers/support/Sublayer.js +1 -1
  363. package/layers/support/VideoFrame.js +1 -1
  364. package/layers/support/capabilities.js +1 -1
  365. package/layers/support/fieldConfigUtils.js +1 -1
  366. package/layers/support/fieldFormatUtils.js +5 -0
  367. package/layers/support/mediaUtils.js +1 -1
  368. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  369. package/layers/support/vectorTileLayerLoader.js +1 -1
  370. package/package.json +2 -2
  371. package/popup/FieldInfo.js +1 -1
  372. package/popup/content/FieldsContent.js +1 -1
  373. package/portal/Portal.js +1 -1
  374. package/portal/schemas/definitions.js +1 -1
  375. package/renderers/support/RasterSymbolizer.js +1 -1
  376. package/rest/sharedTemplates/addSharedTemplates.js +5 -0
  377. package/rest/sharedTemplates/querySharedTemplates.js +1 -1
  378. package/rest/sharedTemplates/utils.js +5 -0
  379. package/rest/support/imageMeasureUtils.js +1 -1
  380. package/support/ArcadeExpression.js +1 -1
  381. package/support/revision.js +1 -1
  382. package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
  383. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  384. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
  385. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
  386. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsDiffShader.js +1 -1
  387. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsMinMaxSumShader.js +1 -1
  388. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsStdDevShader.js +1 -1
  389. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsSumOfSquaredDiffShader.js +1 -1
  390. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerStretchShader.js +1 -1
  391. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/math.js +1 -1
  392. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/stretch.js +1 -1
  393. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
  394. package/views/2d/layers/BaseLayerView2D.js +1 -1
  395. package/views/2d/layers/BaseLayerViewGL2D.js +1 -1
  396. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  397. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  398. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  399. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementConfiguration.js +1 -1
  400. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  401. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  402. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  403. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  404. package/views/3d/environment/CloudsComposition.js +1 -1
  405. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  406. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  407. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  408. package/views/3d/layers/GaussianSplatLayerViewPerformanceInfo.js +5 -0
  409. package/views/3d/layers/I3SMeshView3D.js +1 -1
  410. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  411. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  412. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  413. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  414. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  415. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  416. package/views/3d/layers/support/MediaLayerInteractionOptions.js +1 -1
  417. package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
  418. package/views/3d/state/ViewState.js +1 -1
  419. package/views/3d/state/ViewStateManager.js +1 -1
  420. package/views/3d/support/QualitySettings.js +1 -1
  421. package/views/3d/support/ResourceController.js +1 -1
  422. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  423. package/views/3d/support/orientedBoundingBox.js +1 -1
  424. package/views/3d/terrain/TerrainRenderer.js +1 -1
  425. package/views/3d/webgl/RenderNode.js +1 -1
  426. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  427. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  428. package/views/3d/webgl-engine/collections/Component/{ComponentObjectElevationAgnosticComponentBVH.js → ComponentObjectElevationAgnosticBVH.js} +1 -1
  429. package/views/3d/webgl-engine/collections/Component/ComponentObjectFixedBVH.js +5 -0
  430. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  431. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  432. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  433. package/views/3d/webgl-engine/collections/Component/ObjectParameters.js +1 -1
  434. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  435. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  436. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  437. package/views/3d/webgl-engine/effects/weather/SnowCover.glsl.js +0 -3
  438. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  439. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  440. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  441. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  442. package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
  443. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  444. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  445. package/views/GroundView.js +1 -1
  446. package/views/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +1 -1
  447. package/views/draw/input/DrawEvents.js +1 -1
  448. package/views/interactive/dragEventPipeline.js +1 -1
  449. package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
  450. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  451. package/views/layers/ImageryTileLayerView.js +1 -1
  452. package/views/support/Scheduler.js +1 -1
  453. package/widgets/Editor/AddAssociationWorkflowData.js +1 -1
  454. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  455. package/widgets/Editor/EditorViewModel.js +1 -1
  456. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  457. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  458. package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
  459. package/widgets/Editor/UpdateWorkflow.js +1 -1
  460. package/widgets/Editor/UpdateWorkflowData.js +1 -1
  461. package/widgets/Editor/components/FeatureList.js +1 -1
  462. package/widgets/Editor/workflowUtils.js +1 -1
  463. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  464. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  465. package/widgets/FeatureTable/support/templateUtils.js +1 -1
  466. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  467. package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
  468. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  469. package/widgets/OrientedImageryViewer.js +1 -1
  470. package/widgets/PanoramicVideoViewer.js +5 -0
  471. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +5 -0
  472. package/widgets/ScaleRangeSlider.js +1 -1
  473. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  474. package/assets/esri/core/workers/chunks/09c2004126f4a5242b85.js +0 -1
  475. package/assets/esri/core/workers/chunks/0dd6b8b3e634bb5f0ca7.js +0 -1
  476. package/assets/esri/core/workers/chunks/0dfc2ca36014910457ef.js +0 -1
  477. package/assets/esri/core/workers/chunks/1c7fffb496af6f2540dd.js +0 -1
  478. package/assets/esri/core/workers/chunks/1fc6311d4f0d27e88737.js +0 -1
  479. package/assets/esri/core/workers/chunks/268f5b233640a9dbbf89.js +0 -2
  480. package/assets/esri/core/workers/chunks/2fe96bf7dedef11a3b63.js +0 -1
  481. package/assets/esri/core/workers/chunks/336b54144afec0c7d396.js +0 -2
  482. package/assets/esri/core/workers/chunks/36a006c55766f9540bfc.js +0 -1
  483. package/assets/esri/core/workers/chunks/4840bd93d8fe15c7aefd.js +0 -1
  484. package/assets/esri/core/workers/chunks/637a5293e36f4f7f2853.js +0 -1
  485. package/assets/esri/core/workers/chunks/7540b34e743a23e67729.js +0 -1
  486. package/assets/esri/core/workers/chunks/7be11a3ef1f49245089f.js +0 -1
  487. package/assets/esri/core/workers/chunks/804e3b3df375177e6c86.js +0 -1
  488. package/assets/esri/core/workers/chunks/819a8bc1f0a694017ee6.js +0 -1
  489. package/assets/esri/core/workers/chunks/88d8ff0140f5ea97c6b7.js +0 -1
  490. package/assets/esri/core/workers/chunks/8de11aab65d91e7f1a4d.js +0 -1
  491. package/assets/esri/core/workers/chunks/96740c75ad65d651cc43.js +0 -1
  492. package/assets/esri/core/workers/chunks/9971de3f38a55735cec9.js +0 -1
  493. package/assets/esri/core/workers/chunks/9e47f680b66320dcfd34.js +0 -1
  494. package/assets/esri/core/workers/chunks/a2652d10bb0bc41c9a8d.js +0 -1
  495. package/assets/esri/core/workers/chunks/a7fcb60d5a9d2d9560e4.js +0 -1
  496. package/assets/esri/core/workers/chunks/aa84775399420e35c6a5.js +0 -1
  497. package/assets/esri/core/workers/chunks/b0508c96338d7cf296c1.js +0 -1
  498. package/assets/esri/core/workers/chunks/b09b34f64a6bc2b49e0a.js +0 -1
  499. package/assets/esri/core/workers/chunks/c0ae186620b68d43b338.js +0 -1
  500. package/assets/esri/core/workers/chunks/cc579c94438f48a0dbab.js +0 -1
  501. package/assets/esri/core/workers/chunks/ce0bf0d0cd9e9a90093b.js +0 -1
  502. package/assets/esri/core/workers/chunks/d142a42755a78bb157ed.js +0 -1
  503. package/assets/esri/core/workers/chunks/f35003a90163847fe1e2.js +0 -1
  504. package/assets/esri/core/workers/chunks/f6e18668f728dfd8ba5e.js +0 -2
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2763],{6518:(e,t,n)=>{n.d(t,{F:()=>a});var r=n(44208),i=n(75503),o=n(19419);const s={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 i.wq(9,(0,r.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,r)=>{e[t++]=r}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,o.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){s.minX=e[0],s.minY=e[1],s.maxX=e[2],s.maxY=e[3]})(t),e.search(s,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},8303:(e,t,n)=>{n.d(t,{A:()=>M});var r=n(31635),i=n(92602),o=n(70333),s=n(78888),a=n(60999),l=n(49186),c=n(53966),u=n(97768),h=n(74887),p=n(84952),d=n(10107),f=(n(44208),n(87811),n(36005)),m=n(40608),g=n(43937),y=n(77548),x=n(20655),v=n(80812),_=n(41318),w=n(10407);const M=e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new v.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await n.e(1204).then(n.bind(n,41204));return(0,h.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,h.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!o.id?.findCredential(this.url),i=e===n.id;if(i&&n.portal.user)return this._getUserPrivileges(n,r);let s,a;if(i)s=n.portal.url;else try{s=await(0,y.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!s||!(0,p.b8)(s,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const l=!0,c=!1,u=!1;if(!a)return{features:{edit:l,fullEdit:c},content:{updateItem:u}};try{if(i?await n.reload():(n=new v.default({id:e,portal:{url:s}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,r)}catch(e){(0,h.QP)(e)}return{features:{edit:l,fullEdit:c},content:{updateItem:u}}}_getUserPrivileges(e,t){const n=(0,w.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const n=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=o.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,i=x.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(r))return i.user;const l=`${r}/community/self`,c=null!=e?e.signal:null,u=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?_.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||x.A.getDefault());return n&&r&&!(0,p.ut)(r.restUrl,n.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,d.MZ)({type:v.default})],M.prototype,"portalItem",null),(0,r.Cg)([(0,f.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,r.Cg)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,r.Cg)([(0,d.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,r.Cg)([(0,m.$)("esri.layers.mixins.PortalLayer")],M),M},b={credential:null,user:null}},10407:(e,t,n)=>{n.d(t,{It:()=>d,LG:()=>s,OM:()=>c,Sm:()=>u,Y:()=>a,bK:()=>l,mm:()=>p,sQ:()=>h});var r=n(98988),i=n(16930),o=n(28735);function s(e,t){if(!a(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,p.HOSTED_SERVICE)}function c(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function u(e,t,n){n?s(e,t):c(e,t)}async function h(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const n=i.A.WGS84;return await(0,r.initializeProjection)(t,n),(0,r.project)(e,n)}(n)}const p={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:t,isOrgItem:n,itemControl:r}=e,i=t.user?.privileges;let o=!i||i.includes("features:user:edit"),s=!!n&&!!i?.includes("features:user:fullEdit");const a="update"===r||"admin"===r;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}},13069:(e,t,n)=>{n.d(t,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},16494:(e,t,n)=>{n.d(t,{W5:()=>s});var r=n(37330);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),o=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],s=new r.I({whiteList:i,onTagAttr:(e,t,n)=>{const r=`${t}="${n}"`;if(o.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)},19647:(e,t,n)=>{n.r(t),n.d(t,{default:()=>et});var r=n(31635),i=n(7762),o=n(49186),s=n(53966),a=n(92071),l=n(74887),c=n(10107),u=n(79901),h=(n(44208),n(87811),n(36005)),p=n(40608),d=n(43937),f=n(4146),m=n(63074),g=n(16131),y=n(8303),x=n(25036),v=n(69540),_=n(25482),w=n(77690),M=n(29242),b=n(37585),P=n(38954);const A=(0,n(51850).vt)(),C=(0,M.vt)(),I=(0,M.vt)(),R=(0,M.vt)();function S(e,t,n){return(0,P.i)(A,t[0],t[1],1),(0,P.o)(A,A,(0,w.mg)(C,n)),0===A[2]?(0,b.hZ)(e,A[0],A[1]):(0,b.hZ)(e,A[0]/A[2],A[1]/A[2])}function E(e,t,n){return O(I,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),O(R,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,w.lw)(e,(0,w.KC)(I,I),R),0!==e[8]&&(e[0]/=e[8],e[1]/=e[8],e[2]/=e[8],e[3]/=e[8],e[4]/=e[8],e[5]/=e[8],e[6]/=e[8],e[7]/=e[8],e[8]/=e[8]),e}function O(e,t,n,r,i,o,s,a,l){(0,w.hZ)(e,t,r,o,n,i,s,1,1,1),(0,P.i)(A,a,l,1),(0,w.KC)(C,e);const[c,u,h]=(0,P.o)(A,A,(0,w.mg)(C,C));return(0,w.hZ)(C,c,0,0,0,u,0,0,0,h),(0,w.lw)(e,C,e)}var L=n(90629),T=n(48163),B=n(86738),Z=n(39829),j=n(98988),$=n(16930);let Y=class extends v.Pw{projectOrWarn(e,t){if(null==e)return e;const{geometry:n,pending:r}=(0,j.projectOrLoad)(e,t);return r?null:r||n?n:(s.A.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:e,sourceSpatialReference:e.spatialReference,targetSpatialReference:t}),null)}};Y=(0,r.Cg)([(0,p.$)("esri.layers.support.GeoreferenceBase")],Y);const U=(0,M.vt)(),H=(0,T.vt)();let X=class extends _.o{};(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{isRequired:!0}}})],X.prototype,"x",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{isRequired:!0}}})],X.prototype,"y",void 0),X=(0,r.Cg)([(0,p.$)("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],X);let k=class extends v.Pw{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,r.Cg)([(0,c.MZ)()],k.prototype,"sourcePoint",void 0),(0,r.Cg)([(0,c.MZ)({type:B.A})],k.prototype,"mapPoint",void 0),k=(0,r.Cg)([(0,p.$)("esri.layers.support.ControlPointsGeoreference.ControlPoint")],k);let N=class extends((0,_.T)(Y)){constructor(e){super(e),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(e,t){const n=$.A.fromJSON(t.spatialReference),r=(0,M.fA)(...t.coefficients,1);return e.map(e=>((0,b.hZ)(H,e.x,e.y),S(H,H,r),{sourcePoint:e,mapPoint:new B.A({x:H[0],y:H[1],spatialReference:n})}))}writeControlPoints(e,t,n,r){if(null==this.transform){const e=new o.A("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.",{layer:r?.layer,georeference:this});return void(r?.messages?r.messages.push(e):s.A.getLogger(this).error(e.name,e.message))}null!=e&&F(e[0])&&(t.controlPoints=e.map(e=>{const t=e.sourcePoint;return{x:t.x,y:t.y}}),t.spatialReference=e[0].mapPoint.spatialReference.toJSON(),t.coefficients=this.transform.slice(0,8))}get coords(){if(null==this.controlPoints)return null;const e=this._updateTransform(U);if(null==e||!F(this.controlPoints[0]))return null;const t=this.controlPoints[0].mapPoint.spatialReference;return function(e,t,n,r){const i=(0,T.fA)(0,n),o=(0,T.fA)(0,0),s=(0,T.fA)(t,0),a=(0,T.fA)(t,n);return S(i,i,e),S(o,o,e),S(s,s,e),S(a,a,e),new Z.A({rings:[[i,o,s,a,i]],spatialReference:r})}(e,this.width,this.height,t)}set coords(e){if(null==this.controlPoints||!F(this.controlPoints[0]))return;const t=this.controlPoints[0].mapPoint.spatialReference;if(null==(e=this.projectOrWarn(e,t)))return;const{width:n,height:r}=this,{rings:[[i,o,s,a]]}=e,l={sourcePoint:(0,L.tc)(0,r),mapPoint:new B.A({x:i[0],y:i[1],spatialReference:t})},c={sourcePoint:(0,L.tc)(0,0),mapPoint:new B.A({x:o[0],y:o[1],spatialReference:t})},u={sourcePoint:(0,L.tc)(n,0),mapPoint:new B.A({x:s[0],y:s[1],spatialReference:t})},h={sourcePoint:(0,L.tc)(n,r),mapPoint:new B.A({x:a[0],y:a[1],spatialReference:t})};F(l)&&F(c)&&F(u)&&F(h)&&(te(U,l,c,u,h),this.controlPoints=this.controlPoints.map(({sourcePoint:e})=>((0,b.hZ)(H,e.x,e.y),S(H,H,U),{sourcePoint:e,mapPoint:new B.A({x:H[0],y:H[1],spatialReference:t})})))}get inverseTransform(){return null==this.transform?null:(0,w.B8)((0,M.vt)(),this.transform)}get transform(){return this._updateTransform()}toMap(e){if(null==e||null==this.transform||null==this.controlPoints||!F(this.controlPoints[0]))return null;(0,b.hZ)(H,e.x,e.y);const t=this.controlPoints[0].mapPoint.spatialReference;return S(H,H,this.transform),new B.A({x:H[0],y:H[1],spatialReference:t})}toSource(e){if(null==e||null==this.inverseTransform||null==this.controlPoints||!F(this.controlPoints[0]))return null;const t=this.controlPoints[0].mapPoint.spatialReference;return e=e.normalize(),null==(e=(0,j.projectOrLoad)(e,t).geometry)?null:((0,b.hZ)(H,e.x,e.y),S(H,H,this.inverseTransform),(0,L.tc)(H[0],H[1]))}toSourceNormalized(e){const t=this.toSource(e);return null!=t&&(t.x/=this.width,t.y/=this.height),t}_updateTransform(e){const{controlPoints:t,width:n,height:r}=this;if(!(null!=t&&n>0&&r>0))return null;const[i,o,s,a]=t;if(!F(i))return null;const l=i.mapPoint.spatialReference,c=this._projectControlPoint(o,l),u=this._projectControlPoint(s,l),h=this._projectControlPoint(a,l);if(!c.valid||!u.valid||!h.valid)return null;if(!F(c.controlPoint))return null;null==e&&(e=(0,M.vt)());let p=null;return p=F(u.controlPoint)&&F(h.controlPoint)?te(e,i,c.controlPoint,u.controlPoint,h.controlPoint):F(u.controlPoint)?function(e,t,n,r){return ee(z,G,t),ee(q,W,n),ee(V,K,r),(0,b.Cc)(D,z,q,.5),(0,b.e$)(D,V,D,Math.PI),(0,b.Cc)(J,G,W,.5),(0,b.e$)(J,K,J,Math.PI),oe(e,z,q,V,D,G,W,K,J)}(e,i,c.controlPoint,u.controlPoint):function(e,t,n){return ee(z,G,t),ee(q,W,n),(0,b.e$)(V,q,z,Q),(0,b.e$)(D,z,q,Q),(0,b.e$)(K,W,G,-Q),(0,b.e$)(J,G,W,-Q),oe(e,z,q,V,D,G,W,K,J)}(e,i,c.controlPoint),p.every(e=>0===e)?null:p}_projectControlPoint(e,t){if(!F(e))return{valid:!0,controlPoint:e};const{sourcePoint:n,mapPoint:r}=e,{geometry:i,pending:o}=(0,j.projectOrLoad)(r,t);return o?{valid:!1,controlPoint:null}:o||i?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:i}}:(s.A.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:e,sourceSpatialReference:r.spatialReference,targetSpatialReference:t}),{valid:!1,controlPoint:null})}};function F(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(0,r.Cg)([(0,c.MZ)({type:[k],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[X],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:$.A,isRequired:!0}}}}})],N.prototype,"controlPoints",void 0),(0,r.Cg)([(0,h.w)("controlPoints")],N.prototype,"readControlPoints",null),(0,r.Cg)([(0,d.K)("controlPoints")],N.prototype,"writeControlPoints",null),(0,r.Cg)([(0,c.MZ)({clonable:!1})],N.prototype,"coords",null),(0,r.Cg)([(0,c.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],N.prototype,"height",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"inverseTransform",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"transform",null),(0,r.Cg)([(0,c.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],N.prototype,"width",void 0),N=(0,r.Cg)([(0,p.$)("esri.layers.support.ControlPointsGeoreference")],N);const z=(0,T.vt)(),q=(0,T.vt)(),V=(0,T.vt)(),D=(0,T.vt)(),G=(0,T.vt)(),W=(0,T.vt)(),K=(0,T.vt)(),J=(0,T.vt)(),Q=Math.PI/2;function ee(e,t,n){(0,b.hZ)(e,n.sourcePoint.x,n.sourcePoint.y),(0,b.hZ)(t,n.mapPoint.x,n.mapPoint.y)}function te(e,t,n,r,i){return ee(z,G,t),ee(q,W,n),ee(V,K,r),ee(D,J,i),oe(e,z,q,V,D,G,W,K,J)}const ne=new Array(8).fill(0),re=new Array(8).fill(0);function ie(e,t,n,r,i){return e[0]=t[0],e[1]=t[1],e[2]=n[0],e[3]=n[1],e[4]=r[0],e[5]=r[1],e[6]=i[0],e[7]=i[1],e}function oe(e,t,n,r,i,o,s,a,l){return E(e,ie(ne,t,n,r,i),ie(re,o,s,a,l))}var se=n(78888),ae=n(21287),le=n(84952),ce=n(13069),ue=n(4902),he=n(92474),pe=n(35666),de=n(5443),fe=n(21325);const me=(0,T.vt)();let ge=class extends Y{constructor(e){super(e),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:e,topRight:t,bottomLeft:n,bottomRight:r}=this;if(null==e||null==t||null==n||null==r)return null;const i=e.spatialReference;return t=this.projectOrWarn(t,i),n=this.projectOrWarn(n,i),r=this.projectOrWarn(r,i),null==t||null==n||null==r?null:new Z.A({rings:[[[n.x,n.y],[e.x,e.y],[t.x,t.y],[r.x,r.y],[n.x,n.y]]],spatialReference:i})}set coords(e){const{topLeft:t}=this;if(null==t)return;const n=t.spatialReference;if(null==(e=this.projectOrWarn(e,n)))return;const{rings:[[r,i,o,s]]}=e;this.bottomLeft=new B.A({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new B.A({x:i[0],y:i[1],spatialReference:n}),this.topRight=new B.A({x:o[0],y:o[1],spatialReference:n}),this.bottomRight=new B.A({x:s[0],y:s[1],spatialReference:n})}toSourceNormalized(e){const{topLeft:t,topRight:n,bottomRight:r,bottomLeft:i}=this;if(null==e||null==t||null==n||null==r||null==i)return null;const o=t.spatialReference;e=e.normalize();const s=(0,j.projectOrLoad)(e,o).geometry;if(null==s)return null;(0,b.hZ)(me,s.x,s.y);const a=E((0,M.vt)(),[t.x,t.y,i.x,i.y,n.x,n.y,r.x,r.y],[0,0,0,1,1,0,1,1]);return S(me,me,a),(0,L.tc)(me[0],me[1])}};(0,r.Cg)([(0,c.MZ)({clonable:!1})],ge.prototype,"coords",null),(0,r.Cg)([(0,c.MZ)({type:B.A})],ge.prototype,"bottomLeft",void 0),(0,r.Cg)([(0,c.MZ)({type:B.A})],ge.prototype,"bottomRight",void 0),(0,r.Cg)([(0,c.MZ)({type:B.A})],ge.prototype,"topLeft",void 0),(0,r.Cg)([(0,c.MZ)({type:B.A})],ge.prototype,"topRight",void 0),ge=(0,r.Cg)([(0,p.$)("esri.layers.support.CornersGeoreference")],ge);const ye=ge;var xe=n(34727),ve=n(34304);let _e=class extends Y{constructor(e){super(e),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:e,ymin:t,xmax:n,ymax:r,spatialReference:i}=this.extent;let o;if(this.rotation){const{x:i,y:s}=this.extent.center,a=we(i,s,this.rotation);o=[a(e,t),a(e,r),a(n,r),a(n,t)],o.push(o[0])}else o=[[e,t],[e,r],[n,r],[n,t],[e,t]];return new Z.A({rings:[o],spatialReference:i})}set coords(e){if(null==e||null==this.extent)return;const t=this.extent.spatialReference;if(e=this.projectOrWarn(e,t),null==e?.extent)return;const{rings:[[n,r,i]],extent:{center:{x:o,y:s}}}=e,a=(0,xe.KJ)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),l=we(o,s,-a),[c,u]=l(n[0],n[1]),[h,p]=l(i[0],i[1]);this.extent=new de.A({xmin:c,ymin:u,xmax:h,ymax:p,spatialReference:t}),this.rotation=a}toSourceNormalized(e){const{extent:t,rotation:n}=this;if(null==e||null==t)return null;const{xmin:r,ymin:i,xmax:o,ymax:s,center:a,spatialReference:l}=t;e=e.normalize();const c=(0,j.projectOrLoad)(e,l).geometry;if(null==c)return null;let u=c.x,h=c.y;return n&&([u,h]=we(a.x,a.y,-n)(u,h)),(0,L.tc)((0,xe.hs)(u,r,o,0,1),(0,xe.hs)(h,s,i,0,1))}};function we(e,t,n){const r=(0,ve.DF)(n),i=Math.cos(r),o=Math.sin(r);return(n,r)=>[i*(n-e)+o*(r-t)+e,i*(r-t)-o*(n-e)+t]}function Me(e,t){const n=(0,pe.aB)(t);return function(e){return"media"===e?.type}(e)&&!!e.portalItem&&null!=n&&n>3}function be(e,t,n){return{enabled:!Me(n?.layer,n?.origin),ignoreOrigin:!0}}(0,r.Cg)([(0,c.MZ)({clonable:!1})],_e.prototype,"coords",null),(0,r.Cg)([(0,c.MZ)({type:de.A})],_e.prototype,"extent",void 0),(0,r.Cg)([(0,c.MZ)({type:Number})],_e.prototype,"rotation",void 0),_e=(0,r.Cg)([(0,p.$)("esri.layers.support.ExtentAndRotationGeoreference")],_e);const Pe={json:{name:"url",type:String,write:{overridePolicy:be}}},Ae={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:be}}},Ce={types:{key:"type",base:Y,typeMap:{"control-points":N,corners:ye,"extent-and-rotation":_e}},json:{types:{key:"type",base:Y,typeMap:{"control-points":N}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};let Ie=class extends((0,ue.PH)((0,a.P)(he.x_))){constructor(e){super(e),this.georeference=null,this.opacity=1}readGeoreference(e){return N.fromJSON(e)}writeGeoreference(e,t,n,r){const i=r?.resources?.pendingOperations,a=()=>{const i=function(e,t,n){if(!e||"control-points"===e.type)return e;const{coords:r}=e;if(5!==r?.rings[0]?.length)return null;const[i,o,s,a]=r.rings[0],{spatialReference:l}=r;return new N({controlPoints:[{mapPoint:new B.A({x:i[0],y:i[1],spatialReference:l}),sourcePoint:(0,L.tc)(0,n)},{mapPoint:new B.A({x:o[0],y:o[1],spatialReference:l}),sourcePoint:(0,L.tc)(0,0)},{mapPoint:new B.A({x:s[0],y:s[1],spatialReference:l}),sourcePoint:(0,L.tc)(t,0)},{mapPoint:new B.A({x:a[0],y:a[1],spatialReference:l}),sourcePoint:(0,L.tc)(t,n)}],width:t,height:n})}(this.georeference,this.contentWidth,this.contentHeight);if(i){if("control-points"!==e.type&&s.A.getLogger(this).warn(`only georeference of type 'control-points' may be persisted. The georeference of type '${e.type}' has been automatically converted.`),4!==i.controlPoints?.length&&r?.messages)return void r.messages.push(new o.A("property:unsupported","only 'control-points' georeference with 4 control points may be persisted."));t[n]=i.write({},r)}};if("control-points"!==e.type&&!this.loaded&&i)return t[n]={},void i.push(this.load().then(a));a()}get contentWidth(){return 0}get contentHeight(){return 0}toSource(e){const{georeference:t,contentWidth:n,contentHeight:r}=this;if(null==e||null==t||0===n||0===r)return null;const i=t.toSourceNormalized(e);return null==i?null:(i.x*=n,i.y*=r,i)}};(0,r.Cg)([(0,c.MZ)(Ce)],Ie.prototype,"georeference",void 0),(0,r.Cg)([(0,h.w)("georeference")],Ie.prototype,"readGeoreference",null),(0,r.Cg)([(0,d.K)("georeference")],Ie.prototype,"writeGeoreference",null),(0,r.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],Ie.prototype,"opacity",void 0),Ie=(0,r.Cg)([(0,p.$)("esri.layers.support.MediaElementBase")],Ie);var Re=n(85648);const Se=Symbol("ImageElementInstance"),Ee=Symbol("VideoElementInstance");function Oe(e){return function(e){return null!=e&&"object"==typeof e&&Se in e}(e)||function(e){return null!=e&&"object"==typeof e&&Ee in e}(e)}var Le,Te=n(97159);let Be=class extends Ie{static{Le=Se}constructor(e){super(e),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this[Le]=!0,this.image=null}load(){const e=this.image;if("string"==typeof e){const t=(0,ae.M5)(e).then(e=>{this._set("content",e)});this.addResolvingPromise(t)}else if(e instanceof HTMLImageElement){const t=e.decode().then(()=>{this._set("content",e)});this.addResolvingPromise(t)}else e?this._set("content",e):this.addResolvingPromise(Promise.reject(new o.A("image-element:invalid-image-type","Invalid image type",{image:e})));return Promise.resolve(this)}get contentWidth(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalWidth:this.content.width}get contentHeight(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalHeight:this.content.height}readImage(e,t,n){return(0,Te.f)(t.url,n)}writeImage(e,t,n,r){if(null==e)return;const i=r?.portalItem,o=r?.resources;if(!i||!o)return void("string"==typeof e&&(t[n]=(0,Te.t)(e,r)));const s=function(e){return"string"==typeof e&&!(0,le.DB)(e)&&!(0,le.w8)(e)}(e)?e:null;if(s){if(null==(0,Te.i)(s))return void(t[n]=s);const e=(0,Te.t)(s,{...r,verifyItemRelativeUrls:r?.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1);if(i&&e&&!(0,le.oP)(e))return o.toKeep.push({resource:i.resourceFromPath(e),compress:!1}),void(t[n]=e)}t[n]="<pending>",o.pendingOperations.push(async function(e){return"string"==typeof e?(0,le.DB)(e)?(0,le.N9)(e):(await(0,se.A)(e,{responseType:"blob"})).data:new Promise(t=>function(e){if(e instanceof HTMLCanvasElement)return e;const t=e instanceof HTMLImageElement?e.naturalWidth:e.width,n=e instanceof HTMLImageElement?e.naturalHeight:e.height,r=document.createElement("canvas"),i=r.getContext("2d");return r.width=t,r.height=n,e instanceof HTMLImageElement?i.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&i.putImageData(e,0,0),r}(e).toBlob(t))}(e).then(e=>{const r=function(e,t){const n=(0,ce.lk)(),r=`${(0,le.fj)("media",n)}.${(0,Re.n)({type:"blob",blob:e})}`;return t.resourceFromPath(r)}(e,i);t[n]=r.itemRelativeUrl,o.toAdd.push({resource:r,content:{type:"blob",blob:e},compress:!1,finish:e=>{this.image=e.url}})}))}};(0,r.Cg)([(0,c.MZ)()],Be.prototype,"animationOptions",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Be.prototype,"content",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Be.prototype,"contentWidth",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Be.prototype,"contentHeight",null),(0,r.Cg)([(0,c.MZ)(Pe)],Be.prototype,"image",void 0),(0,r.Cg)([(0,h.w)("image",["url"])],Be.prototype,"readImage",null),(0,r.Cg)([(0,d.K)("image")],Be.prototype,"writeImage",null),(0,r.Cg)([(0,c.MZ)(Ae)],Be.prototype,"type",void 0),Be=(0,r.Cg)([(0,p.$)("esri.layers.support.ImageElement")],Be);var Ze=n(62885),je=n(65529),$e=n(61893),Ye=n(36708),Ue=n(19419),He=n(12176),Xe=n(6518),ke=n(65008),Ne=n(89056);let Fe=class extends ke.A{constructor(e){super(e)}get bounds(){const e=this.coords;return null==e?.extent?null:(0,Ue.VY)(e.extent)}get coords(){const e=this.element.georeference?.coords;return(0,j.projectOrLoad)(e,this.spatialReference).geometry}get normalizedCoords(){return Z.A.fromJSON((0,Ne.jZ)(this.coords))}get normalizedBounds(){const e=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=e?(0,Ue.VY)(e):null}};(0,r.Cg)([(0,c.MZ)()],Fe.prototype,"spatialReference",void 0),(0,r.Cg)([(0,c.MZ)()],Fe.prototype,"element",void 0),(0,r.Cg)([(0,c.MZ)()],Fe.prototype,"bounds",null),(0,r.Cg)([(0,c.MZ)()],Fe.prototype,"coords",null),(0,r.Cg)([(0,c.MZ)()],Fe.prototype,"normalizedCoords",null),(0,r.Cg)([(0,c.MZ)()],Fe.prototype,"normalizedBounds",null),Fe=(0,r.Cg)([(0,p.$)("esri.layers.support.MediaElementView")],Fe);var ze,qe=n(16494),Ve=n(38969);const De=Symbol("canplay");let Ge=class extends Ie{static{ze=Ee}constructor(e){super(e),this.autoplay=!0,this.content=null,this.type="video",this[ze]=!0}load(){const e=this.video;return"string"==typeof e?this.addResolvingPromise(this._preProcessVideoUrl(e).then(async e=>{const t=document.createElement("video");return t.src=qe.W5.sanitizeUrl((0,le.s2)(e)),t.crossOrigin="anonymous",t.autoplay=this.autoplay,t.muted=!0,t.loop=!0,t.playsInline=!0,this._loadVideo(t).then(()=>{this._set("content",t)})})):e instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(e).then(()=>{this._set("content",e)})):this.addResolvingPromise(Promise.reject(new o.A("video-element:invalid-video-type","Invalid video type",{video:e}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.content?.currentTime}set currentTime(e){if(!this.content)return;const t=(0,xe.qE)(e,0,this.content.duration);"fastSeek"in this.content?this.content.fastSeek(t):this.content.currentTime=t,this.content.play().then(()=>{this.content?.pause()}).catch(()=>{})}get duration(){return this.content?.duration}set video(e){"not-loaded"===this.loadStatus?this._set("video",e):s.A.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}writeVideo(e,t,n,r){if(!e)return void(r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source is missing")));const i=function(e){return"string"==typeof e&&!(0,le.DB)(e)&&!(0,le.w8)(e)}(e)?e:null;if(!i)return void(r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source must be an absolute url")));!(0,le.oP)(i)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(i);const s=(0,le.s2)(i);(0,Te.i)(s)?r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source cannot be an item resource")):t[n]=s}async _preProcessVideoUrl(e){if((0,le.zs)(e))return(0,le.yM)(e);try{return await(0,se.A)(e,{method:"head"}),e}catch{try{return(0,le.yM)(e,!0)}catch{return e}}}async _loadVideo(e){"anonymous"!==e.crossOrigin&&(e.crossOrigin="anonymous",(0,le.w8)(e.src)||(e.src=e.src));try{await(0,Ve.i)(e,e=>this.addHandles(e,De)),this.autoplay&&await e.play().catch(e=>{throw console.error(e),e})}finally{this.removeHandles(De)}}};(0,r.Cg)([(0,c.MZ)()],Ge.prototype,"autoplay",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Ge.prototype,"content",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Ge.prototype,"contentWidth",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Ge.prototype,"contentHeight",null),(0,r.Cg)([(0,c.MZ)({type:Number})],Ge.prototype,"currentTime",null),(0,r.Cg)([(0,c.MZ)({type:Number})],Ge.prototype,"duration",null),(0,r.Cg)([(0,c.MZ)(Pe)],Ge.prototype,"video",null),(0,r.Cg)([(0,d.K)("video")],Ge.prototype,"writeVideo",null),(0,r.Cg)([(0,c.MZ)(Ae)],Ge.prototype,"type",void 0),Ge=(0,r.Cg)([(0,p.$)("esri.layers.support.VideoElement")],Ge);const We={key:"type",defaultKeyValue:"image",base:Ie,typeMap:{image:Be,video:Ge}},Ke=i.A.ofType(We);let Je=class extends((0,he.WV)((0,$e.g)(je.nJ))){constructor(e){super(e),this._index=new Xe.F,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=e=>{for(const t of e.removed){const e=this._elementViewsMap.get(t);this._elementViewsMap.delete(t),this._index.delete(e),this.removeHandles(e),e.destroy(),this.notifyChange("fullExtent")}const{spatialReference:t}=this;for(const n of e.added){if(this._elementViewsMap.get(n))continue;const e=new Fe({spatialReference:t,element:n});this._elementViewsMap.set(n,e);const r=(0,Ye.wB)(()=>e.coords,()=>this._updateIndexForElement(e,!1));this._updateIndexForElement(e,!0),this.addHandles(r,e)}this._elementsIndexes.clear(),this.elements.forEach((e,t)=>this._elementsIndexes.set(e,t)),this.emit("refresh")},this.elements=new Ke}async load(e){if((0,l.Te)(e),!this.spatialReference){const e=this.elements.find(e=>null!=e.georeference?.coords);this._set("spatialReference",e?e.georeference.coords.spatialReference:$.A.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(e){this._set("elements",(0,Ze.V)(e,this._get("elements"),Ke))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const e=this._index.fullBounds;return null==e?null:new de.A({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:this.spatialReference})}set spatialReference(e){"not-loaded"===this.loadStatus?this._set("spatialReference",e):s.A.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(e,t){await this.load(),await(0,j.initializeProjection)(e.spatialReference,this.spatialReference,null,t);const n=(0,fe.aI)(e.spatialReference,this.spatialReference)?e:(0,j.project)(e,this.spatialReference);if(!n)return[];const r=n.normalize(),i=[];for(const e of r)this._index.forEachInBounds((0,Ue.VY)(e),({normalizedCoords:t,element:n})=>{null!=t&&(0,He.fA)(e,t)&&i.push(n)});return i.sort((e,t)=>this._elementsIndexes.get(e)-this._elementsIndexes.get(t)),i}hasElement(e){return this.elements.includes(e)}_updateIndexForElement(e,t){const n=e.normalizedBounds,r=this._index.has(e),i=null!=n;this._index.delete(e),i&&this._index.set(e,n),this.notifyChange("fullExtent"),t||(r!==i?this.emit("refresh"):this.emit("change",{element:e.element}))}};(0,r.Cg)([(0,c.MZ)()],Je.prototype,"elements",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Je.prototype,"fullExtent",null),(0,r.Cg)([(0,c.MZ)()],Je.prototype,"spatialReference",null),Je=(0,r.Cg)([(0,p.$)("esri.layers.support.LocalMediaElementSource")],Je);let Qe=class extends((0,m.dM)((0,x.j)((0,g.q)((0,y.A)((0,a.P)(f.A)))))){constructor(e){super(e),this.effectiveSource=null,this.georeference=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this._debouncedSaveOperations=(0,l.sg)(async(e,t,r)=>{const{save:i,saveAs:o}=await n.e(3561).then(n.bind(n,63561));switch(e){case 0:return i(this,t);case 1:return o(this,r,t)}}),this.source=new Je}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.loadFromPortal({supportedTypes:["Media Layer"]},e);let t=this.source;if(!t)throw new o.A("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer.");const n=this._getSourceOverride(t,this.georeference);n&&(this.setAtOrigin("source",n,"web-map"),this.setAtOrigin("source",n,"web-scene"),t=n);const r=Oe(t)?new Je({elements:new i.A([t])}):t;this._set("effectiveSource",r),this.spatialReference&&(r.spatialReference=this.spatialReference),await r.load(e),this.spatialReference=r.spatialReference}destroy(){this.effectiveSource?.destroy(),this.effectiveSource!==this.source&&this.source?.destroy()}readGeoreference(e,t){return e&&"itemId"in t&&t.itemId?e:void 0}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}get loaded(){return super.loaded}get source(){return this._get("source")}set source(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("source",e):s.A.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(e){return e?Array.isArray(e)?new Je({elements:new i.A(e)}):e instanceof i.A?new Je({elements:e}):e:null}readSource(e,t,n){if("itemId"in t&&t.itemId)return;const r=this._createSource(t);return r?.read(t,n),r}writeSource(e,t,n,r){if(e&&e instanceof Je){const t=e.elements.length;if(1!==t)return void(r?.messages&&r.messages.push(new o.A("media-layer:unsupported-source",`local media element source can only be persisted if it contains exactly one ImageElement, but it has ${t}.`)));e=e.elements.at(0)}Oe(e)?e.write(t,r):r?.messages&&(e?r.messages.push(new o.A("media-layer:unsupported-source","only media elements of type 'ImageElement' or 'VideoElement' can be persisted")):r.messages.push(new o.A("media-layer:unsupported-source","the media layer is missing a source")))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_createSource(e){if("mediaType"in e)switch(e.mediaType){case"image":return new Be;case"video":return new Ge}return null}_getSourceOverride(e,t){if(Oe(e)&&3===this.originIdOf("source")&&t&&(5===this.originIdOf("georeference")||4===this.originIdOf("georeference"))){const n=e.toJSON(),r=this._createSource(n);return r.read({...n},{origin:"portal-item"}),r.read({georeference:t},{origin:"web-map"}),r.read({georeference:t},{origin:"web-scene"}),r}return null}};(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Qe.prototype,"effectiveSource",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!0}}}})],Qe.prototype,"georeference",void 0),(0,r.Cg)([(0,h.w)("web-document","georeference")],Qe.prototype,"readGeoreference",null),(0,r.Cg)([(0,c.MZ)({type:String})],Qe.prototype,"copyright",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Qe.prototype,"fullExtent",null),(0,r.Cg)([(0,c.MZ)({type:["MediaLayer"]})],Qe.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,c.MZ)({type:["show","hide"]})],Qe.prototype,"listMode",void 0),(0,r.Cg)([(0,c.MZ)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1,target:{url:{type:String},mediaType:{type:["image","video"]},georeference:{type:N}},overridePolicy(e,t,n){return{enabled:!0,allowNull:!1,ignoreOrigin:Me(this,n?.origin)&&Oe(e)&&!!e.georeference&&e.originIdOf("georeference")>3}}}}})],Qe.prototype,"source",null),(0,r.Cg)([(0,u.w)("source")],Qe.prototype,"castSource",null),(0,r.Cg)([(0,h.w)("source",["url"])],Qe.prototype,"readSource",null),(0,r.Cg)([(0,d.K)("source")],Qe.prototype,"writeSource",null),(0,r.Cg)([(0,c.MZ)()],Qe.prototype,"spatialReference",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Qe.prototype,"type",void 0),Qe=(0,r.Cg)([(0,p.$)("esri.layers.MediaLayer")],Qe);const et=Qe},21287:(e,t,n)=>{n.d(t,{M5:()=>h,eV:()=>u});var r=n(78888),i=n(49186),o=n(74887),s=n(84952),a=n(26306);let l=null,c=!0;function u(e,t,n,r){if(!t||!n)throw new Error("Cannot construct image data without dimensions");if(c)try{return new ImageData(e,t,n)}catch(e){c=!1}const i=function(e,t,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(e,t)}(t,n,r);return i.data.set(e,0),i}async function h(e,t){const{arrayBuffer:l,mediaType:c}=await async function(e,t){const n=(0,s.r$)(e);if(n?.isBase64)return{arrayBuffer:(0,a.M)(n.data),mediaType:n.mediaType};const i=await(0,r.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:i.data,mediaType:i.getHeader?.("Content-Type")??""}}(e,t),u="image/png"===c;if("image/gif"===c){const{isAnimatedGIF:e,parseGif:r}=await n.e(820).then(n.bind(n,10820));if(e(l))return r(l,t)}if(u){const{isAnimatedPNG:e,parseApng:r}=await n.e(2390).then(n.bind(n,22390));if(e(l))return r(l,t)}return async function(e,t){const n=window.URL.createObjectURL(e);try{const{data:e}=await(0,r.A)(n,{...t,responseType:"image"});return e}catch(e){if(!(0,o.zf)(e))throw new i.A("invalid-image",`Could not fetch requested image at ${n}`);throw e}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:c}),t)}},25036:(e,t,n)=>{n.d(t,{j:()=>s});var r=n(31635),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608));const s=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===e.minScale&&n.maxScale===e.maxScale?n:e}};return(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"minScale",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"maxScale",void 0),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],n.prototype,"effectiveScaleRange",null),n=(0,r.Cg)([(0,o.$)("esri.layers.mixins.ScaleRangeLayer")],n),n}},38954:(e,t,n)=>{n.d(t,{A:()=>f,B:()=>d,C:()=>u,D:()=>h,E:()=>T,F:()=>$,H:()=>U,a:()=>B,b:()=>y,c:()=>s,d:()=>c,e:()=>P,f:()=>l,g:()=>g,h:()=>A,i:()=>a,j:()=>x,k:()=>_,l:()=>o,m:()=>C,n:()=>b,o:()=>R,q:()=>L,r:()=>M,s:()=>v,t:()=>I,u:()=>w,v:()=>S,w:()=>p,x:()=>Y,y:()=>H,z:()=>m});var r=n(51850),i=n(34304);function o(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function c(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function u(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function p(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function m(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function g(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function x(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function v(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function _(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function w(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function M(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function b(e,t){const n=t[0],r=t[1],i=t[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function P(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,n){const r=t[0],i=t[1],o=t[2],s=n[0],a=n[1],l=n[2];return e[0]=i*l-o*a,e[1]=o*s-r*l,e[2]=r*a-i*s,e}function C(e,t,n,r){const i=t[0],o=t[1],s=t[2];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e[2]=s+r*(n[2]-s),e}function I(e,t,n){const r=t[0],i=t[1],o=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12],e[1]=n[1]*r+n[5]*i+n[9]*o+n[13],e[2]=n[2]*r+n[6]*i+n[10]*o+n[14],e}function R(e,t,n){const r=t[0],i=t[1],o=t[2];return e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8],e}function S(e,t,n){const r=n[0],i=n[1],o=n[2],s=n[3],a=t[0],l=t[1],c=t[2],u=i*c-o*l,h=o*a-r*c,p=r*l-i*a,d=i*p-o*h,f=o*u-r*p,m=r*h-i*u,g=2*s;return e[0]=a+u*g+2*d,e[1]=l+h*g+2*f,e[2]=c+p*g+2*m,e}const E=(0,r.vt)(),O=(0,r.vt)();function L(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function T(e,t,n){const r=n[0]-t[0],i=n[1]-t[1],o=n[2]-t[2];let s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=r*s,e[1]=i*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const B=c,Z=u,j=h,$=x,Y=v,U=o,H=_;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(e,t){b(E,e),b(O,t);const n=P(E,O);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,i,o){const s=1-o,a=s*s,l=o*o,c=a*s,u=3*o*a,h=3*l*s,p=l*o;return e[0]=t[0]*c+n[0]*u+r[0]*h+i[0]*p,e[1]=t[1]*c+n[1]*u+r[1]*h+i[1]*p,e[2]=t[2]*c+n[2]*u+r[2]*h+i[2]*p,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:s,cross:A,crossAndNormalize:function(e,t,n){const r=t[0],i=t[1],o=t[2],s=n[0],a=n[1],l=n[2],c=i*l-o*a,u=o*s-r*l,h=r*a-i*s,p=Math.sqrt(c*c+u*u+h*h);return e[0]=c/p,e[1]=u/p,e[2]=h/p,e},direction:T,dist:$,distance:x,div:j,divide:h,dot:P,equals:function(e,t){if(e===t)return!0;const n=e[0],r=e[1],o=e[2],s=t[0],a=t[1],l=t[2],c=(0,i.FD)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=c*Math.max(1,Math.abs(o),Math.abs(l))},exactEquals:L,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,i,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,c=s*(o-1),u=s*(3-2*o);return e[0]=t[0]*a+n[0]*l+r[0]*c+i[0]*u,e[1]=t[1]*a+n[1]*l+r[1]*c+i[1]*u,e[2]=t[2]*a+n[2]*l+r[2]*c+i[2]*u,e},inverse:M,len:U,length:o,lerp:C,max:m,min:f,mul:Z,multiply:u,negate:w,normalize:b,random:function(e,t=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=o*t,e},rotateX:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateY:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateZ:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:g,scaleAndAdd:y,set:a,sign:d,sqrDist:Y,sqrLen:H,squaredDistance:v,squaredLength:_,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:B,subtract:c,transformMat3:R,transformMat4:I,transformQuat:S},Symbol.toStringTag,{value:"Module"}))},38969:(e,t,n)=>{n.d(t,{i:()=>i});var r=n(37955);function i(e,t){return new Promise((n,i)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(t((0,r.Oo)(e,"canplay",n)),t((0,r.Oo)(e,"error",i)))})}},48163:(e,t,n)=>{function r(){return[0,0]}function i(e){return[e[0],e[1]]}function o(e,t){return[e,t]}function s(){return o(1,1)}function a(){return o(1,0)}function l(){return o(0,1)}n.d(t,{Un:()=>c,fA:()=>o,o8:()=>i,vt:()=>r});const c=s(),u=a(),h=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:h,ZEROS:[0,0],clone:i,create:r,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const n=Math.min(2,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t},fromValues:o,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},60999:(e,t,n)=>{n.d(t,{DZ:()=>f,Ke:()=>d,Tj:()=>u,UT:()=>m,jJ:()=>c});var r=n(31635),i=n(65008),o=n(97768),s=n(74887),a=n(10107),l=n(40608);function c(e,t,n){return(0,s.Lx)(e.map((e,r)=>t.apply(n,[e,r])))}async function u(e,t,n){return(await(0,s.Lx)(e.map((e,r)=>t.apply(n,[e,r])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function p(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return p(e)}}async function f(e){try{return h(await e)}catch(e){return(0,s.QP)(e),p(e)}}function m(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,o.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=p(e),this._cleanup()}),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,o.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,r.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,r.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,r.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,r.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,r.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g)},62885:(e,t,n)=>{n.d(t,{H:()=>o,V:()=>i});var r=n(7762);function i(e,t,n=r.A){return t||(t=new n),t===e||t.destroyed||(t.removeAll(),(i=e)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?t.addMany(e):e&&t.add(e)),t;var i}function o(e){return e}},63074:(e,t,n)=>{n.d(t,{LF:()=>u,dM:()=>h,sU:()=>l});var r=n(31635),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),s=n(89317),a=n(76369);const l={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:s.K}},"portal-item":{read:!0,write:{layerContainerTypes:s.K}}}}},c={read:{reader:a.LF},write:{allowNull:!0,writer:a.M9,layerContainerTypes:s.K}},u={json:{read:!1,write:!1,origins:{"web-map":c,"portal-item":c}}},h=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r.Cg)([(0,i.MZ)(l)],n.prototype,"blendMode",void 0),(0,r.Cg)([(0,i.MZ)(u)],n.prototype,"effect",void 0),n=(0,r.Cg)([(0,o.$)("esri.layers.mixins.BlendLayer")],n),n}},69540:(e,t,n)=>{n.d(t,{OU:()=>u,Pw:()=>h});var r=n(31635),i=n(65008),o=(n(44208),n(4718)),s=(n(53966),n(97768)),a=n(88620),l=n(40608);const c=Symbol("ClonableMixin"),u=e=>{var t;const n=e;let i=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=c}clone(e){const t=(0,a.oY)(this);(0,s.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,r=t.store,i={},l=new Map;for(const t in n){const s=n[t],a=r?.originOf(t),c=s.clonable;if(s.readOnly||!1===c||7!==a&&0!==a&&5!==a&&4!==a)continue;const u=this[t];let h=null;if("function"==typeof c)h=c(u,e);else if("reference"===c)h=u;else if(h=(0,o.TU)(u,e),null!=u&&null==h)continue;0===a?l.set(t,h):i[t]=h}const c=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){const e=(0,a.oY)(c)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return c}};return i=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],i),i},h=u(i.A)},75503:(e,t,n)=>{n.d(t,{EC:()=>A,wq:()=>a});var r=n(4576),i=n(21818),o=(n(44208),n(15142)),s=n(11006);class a{constructor(e=9,t){this._compareMinX=p,this._compareMinY=d,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),w.prune(),M.prune(),b.prune(),P.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const r=this._toBBox;if(v(e,n))for(w.clear();n;){for(let i=0,o=n.children.length;i<o;i++){const o=n.children[i],s=n.leaf?r(o):o;v(e,s)&&(n.leaf?t(o):x(e,s)?l(o,t):w.push(o))}n=w.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!v(e,t))return!1;for(w.clear();t;){for(let r=0,i=t.children.length;r<i;r++){const i=t.children[r],o=t.leaf?n(i):i;if(v(e,o)){if(t.leaf||x(e,o))return!0;w.push(i)}}t=w.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new I([]),this}remove(e){if(!e)return this;let t,n=this._data,o=null,s=0,a=!1;const l=this._toBBox(e);for(b.clear(),P.clear();n||b.length>0;){if(n||(n=b.pop(),o=b.data[b.length-1],s=P.pop()??0,a=!0),n.leaf&&(t=(0,r.qh)(n.children,(0,i.zI)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),b.push(n),this._condense(b),this;a||n.leaf||!x(n,l)?o?(s++,n=o.children[s],a=!1):n=null:(b.push(n),P.push(s),s=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,r){const i=n-t+1;let o=this._maxEntries;if(i<=o){const r=new I(e.slice(t,n+1));return c(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(o)),o=Math.ceil(i/o**(r-1)));const s=new R([]);s.height=r;const a=Math.ceil(i/o),l=a*Math.ceil(Math.sqrt(o));_(e,t,n,l,this._compareMinX);for(let i=t;i<=n;i+=l){const t=Math.min(i+l-1,n);_(e,i,t,a,this._compareMinY);for(let n=i;n<=t;n+=a){const i=Math.min(n+a-1,t);s.children.push(this._build(e,n,i,r-1))}}return c(s,this._toBBox),s}_insert(e,t,n){const r=this._toBBox,i=n?e:r(e);b.clear();const o=function(e,t,n,r){for(;r.push(t),!0!==t.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let o=0,s=t.children.length;o<s;o++){const s=t.children[o],a=f(s),l=g(e,s)-a;l<i?(i=l,r=a<r?a:r,n=s):l===i&&a<r&&(r=a,n=s)}t=n||t.children[0]}return t}(i,this._data,t,b);for(o.children.push(e),h(o,i);t>=0&&b.data[t].children.length>this._maxEntries;)this._split(b,t),t--;!function(e,t,n){for(let r=n;r>=0;r--)h(t.data[r],e)}(i,b,t)}_split(e,t){const n=e.data[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const o=this._chooseSplitIndex(n,i,r);if(!o)return;const s=n.children.splice(o,n.children.length-o),a=n.leaf?new I(s):new R(s);a.height=n.height,c(n,this._toBBox),c(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new R([e,t]),this._data.height=e.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let r,i,o;r=i=1/0;for(let s=t;s<=n-t;s++){const t=u(e,0,s,this._toBBox),a=u(e,s,n,this._toBBox),l=y(t,a),c=f(t)+f(a);l<r?(r=l,o=s,i=c<i?c:i):l===r&&c<i&&(i=c,o=s)}return o}_chooseSplitAxis(e,t,n){const r=e.leaf?this._compareMinX:p,i=e.leaf?this._compareMinY:d;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)}_allDistMargin(e,t,n,r){e.children.sort(r);const i=this._toBBox,o=u(e,0,t,i),s=u(e,n-t,n,i);let a=m(o)+m(s);for(let r=t;r<n-t;r++){const t=e.children[r];h(o,e.leaf?i(t):t),a+=m(o)}for(let r=n-t-1;r>=t;r--){const t=e.children[r];h(s,e.leaf?i(t):t),a+=m(s)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const i=e.data[t-1],o=i.children;o.splice((0,r.qh)(o,n,o.length,i.indexHint),1)}else this.clear();else c(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(M.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,i.zI)(e));else M.pushArray(n.children);n=M.pop()??null}}function c(e,t){u(e,0,e.children.length,t,e)}function u(e,t,n,r,i){i||(i=new I([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o,s=t;s<n;s++)o=e.children[s],h(i,e.leaf?r(o):o);return i}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function p(e,t){return e.minX-t.minX}function d(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(e){return e.maxX-e.minX+(e.maxY-e.minY)}function g(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function y(e,t){const n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function x(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function v(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function _(e,t,n,r,i){const o=[t,n];for(;o.length;){const t=o.pop(),n=o.pop();if(t-n<=r)continue;const a=n+Math.ceil((t-n)/r/2)*r;(0,s.q)(e,a,n,t,i),o.push(n,a,a,t)}}const w=new o.A,M=new o.A,b=new o.A,P=new o.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class C extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class I extends C{constructor(e){super(),this.children=e,this.leaf=!0}}class R extends C{constructor(e){super(),this.children=e,this.leaf=!1}}},76369:(e,t,n)=>{n.d(t,{LF:()=>M,M9:()=>b});var r=n(49186),i=n(93637),o=n(40876),s=n(59247),a=n(27865);class l extends SyntaxError{constructor(e,t,n,r){super(e),this.expected=t,this.found=n,this.location=r,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let n=null;const r=e.find(e=>e.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));const i=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(n){const e=this.location.end,r="".padEnd(o.line.toString().length," "),a=n[i.line-1],l=(i.line===e.line?e.column:a.length+1)-i.column||1;t+="\n --\x3e "+s+"\n"+r+" |\n"+o.line+" | "+a+"\n"+r+" | "+"".padEnd(i.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+s}return t}static buildMessage(e,t){function n(e){return e.codePointAt(0).toString(16).toUpperCase()}const r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function i(e){return r?e.replace(r,e=>"\\u{"+n(e)+"}"):e}function o(e){return i(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}function s(e){return i(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}const a={literal:e=>'"'+o(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return a[e.type](e)}return"Expected "+function(e){const t=e.map(l);if(t.sort(),t.length>0){let e=1;for(let n=1;n<t.length;n++)t[n-1]!==t[n]&&(t[e]=t[n],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."}}function c(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=u(e);return t&&0!==t.length?t:null}const t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:u(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,a.mj)(t[e].effects,t[e+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,a.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function u(e){let t;if(!e)return[];try{t=function(e,t){const n={},r=(t=void 0!==t?t:{}).grammarSource,i={start:we};let o=we;const s="none",a=")",c=",",u="(",h="%",p="px",d="cm",f="mm",m="in",g="pt",y="pc",x="deg",v="rad",_="grad",w="turn",M="#",b=".",P="e",A=/^[ \t\n\r]/,C=/^[a-z\-]/,I=/^[0-9a-fA-F]/,R=/^[+\-]/,S=/^[0-9]/,E=ye("none"),O=me("none",!1),L=me(")",!1),T=me(",",!1),B=ge([" ","\t","\n","\r"],!1,!1,!1),Z=ye("function"),j=me("(",!1),$=ye("identifier"),Y=ge([["a","z"],"-"],!1,!1,!1),U=ye("percentage"),H=me("%",!1),X=ye("length"),k=me("px",!1),N=me("cm",!1),F=me("mm",!1),z=me("in",!1),q=me("pt",!1),V=me("pc",!1),D=ye("angle"),G=me("deg",!1),W=me("rad",!1),K=me("grad",!1),J=me("turn",!1),Q=ye("number"),ee=ye("color"),te=me("#",!1),ne=ge([["0","9"],["a","f"],["A","F"]],!1,!1,!1),re=ge(["+","-"],!1,!1,!1),ie=ge([["0","9"]],!1,!1,!1),oe=me(".",!1),se=me("e",!1);let ae=0|t.peg$currPos,le=ae;const ce=[{line:1,column:1}];let ue,he=ae,pe=t.peg$maxFailExpected||[],de=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=i[t.startRule]}function fe(){return e.substring(le,ae)}function me(e,t){return{type:"literal",text:e,ignoreCase:t}}function ge(e,t,n,r){return{type:"class",parts:e,inverted:t,ignoreCase:n,unicode:r}}function ye(e){return{type:"other",description:e}}function xe(t){let n,r=ce[t];if(r)return r;if(t>=ce.length)n=ce.length-1;else for(n=t;!ce[--n];);for(r=ce[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return ce[t]=r,r}function ve(e,t,n){const i=xe(e),o=xe(t);return{source:r,start:{offset:e,line:i.line,column:i.column},end:{offset:t,line:o.line,column:o.column}}}function _e(e){ae<he||(ae>he&&(he=ae,pe=[]),pe.push(e))}function we(){let e;return e=Me(),e===n&&(e=function(){let e,t;if(e=[],t=be(),t!==n)for(;t!==n;)e.push(t),t=be();else e=n;return e}()),e}function Me(){let t,r;return de++,t=ae,Ae(),e.substr(ae,4)===s?(r=s,ae+=4):(r=n,0===de&&_e(O)),r!==n?(Ae(),le=t,t=[]):(ae=t,t=n),de--,t===n&&0===de&&_e(E),t}function be(){let t,r,i,o;return t=ae,Ae(),r=function(){let t,r,i;return de++,t=ae,r=Ce(),r!==n?(40===e.charCodeAt(ae)?(i=u,ae++):(i=n,0===de&&_e(j)),i!==n?(le=t,t=r):(ae=t,t=n)):(ae=t,t=n),de--,t===n&&(r=n,0===de&&_e(Z)),t}(),r!==n?(Ae(),i=function(){let t,r,i,o,s,a,l,u;if(t=ae,r=Pe(),r!==n){for(i=[],o=ae,s=Ae(),44===e.charCodeAt(ae)?(a=c,ae++):(a=n,0===de&&_e(T)),a===n&&(a=null),l=Ae(),u=Pe(),u!==n?(s=[s,a,l,u],o=s):(ae=o,o=n);o!==n;)i.push(o),o=ae,s=Ae(),44===e.charCodeAt(ae)?(a=c,ae++):(a=n,0===de&&_e(T)),a===n&&(a=null),l=Ae(),u=Pe(),u!==n?(s=[s,a,l,u],o=s):(ae=o,o=n);le=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(r,i)}else ae=t,t=n;return t}(),i===n&&(i=null),Ae(),41===e.charCodeAt(ae)?(o=a,ae++):(o=n,0===de&&_e(L)),o!==n?(Ae(),le=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(r,i)):(ae=t,t=n)):(ae=t,t=n),t}function Pe(){let e,t;return e=ae,t=Ie(),t===n&&(t=Re(),t===n&&(t=Se(),t===n&&(t=function(){let e,t;return de++,e=ae,Ae(),t=Oe(),t!==n?(le=e,e=function(e){return{value:e,unit:null}}(t)):(ae=e,e=n),de--,e===n&&0===de&&_e(Q),e}()))),t!==n&&(le=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===n&&(e=ae,t=Ee(),t!==n&&(le=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function Ae(){let t,r;for(de++,t=[],r=e.charAt(ae),A.test(r)?ae++:(r=n,0===de&&_e(B));r!==n;)t.push(r),r=e.charAt(ae),A.test(r)?ae++:(r=n,0===de&&_e(B));return de--,t}function Ce(){let t,r,i;if(de++,t=ae,r=[],i=e.charAt(ae),C.test(i)?ae++:(i=n,0===de&&_e(Y)),i!==n)for(;i!==n;)r.push(i),i=e.charAt(ae),C.test(i)?ae++:(i=n,0===de&&_e(Y));else r=n;return r!==n&&(le=t,r=fe()),t=r,de--,t===n&&(r=n,0===de&&_e($)),t}function Ie(){let t,r,i;return de++,t=ae,Ae(),r=Oe(),r!==n?(37===e.charCodeAt(ae)?(i=h,ae++):(i=n,0===de&&_e(H)),i!==n?(le=t,t=function(e){return{value:e,unit:"%"}}(r)):(ae=t,t=n)):(ae=t,t=n),de--,t===n&&0===de&&_e(U),t}function Re(){let t,r,i;return de++,t=ae,Ae(),r=Oe(),r!==n?(e.substr(ae,2)===p?(i=p,ae+=2):(i=n,0===de&&_e(k)),i!==n?(le=t,t=function(e){return{value:e,unit:"px"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Ae(),r=Oe(),r!==n?(e.substr(ae,2)===d?(i=d,ae+=2):(i=n,0===de&&_e(N)),i!==n?(le=t,t=function(e){return{value:e,unit:"cm"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Ae(),r=Oe(),r!==n?(e.substr(ae,2)===f?(i=f,ae+=2):(i=n,0===de&&_e(F)),i!==n?(le=t,t=function(e){return{value:e,unit:"mm"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Ae(),r=Oe(),r!==n?(e.substr(ae,2)===m?(i=m,ae+=2):(i=n,0===de&&_e(z)),i!==n?(le=t,t=function(e){return{value:e,unit:"in"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Ae(),r=Oe(),r!==n?(e.substr(ae,2)===g?(i=g,ae+=2):(i=n,0===de&&_e(q)),i!==n?(le=t,t=function(e){return{value:e,unit:"pt"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Ae(),r=Oe(),r!==n?(e.substr(ae,2)===y?(i=y,ae+=2):(i=n,0===de&&_e(V)),i!==n?(le=t,t=function(e){return{value:e,unit:"pc"}}(r)):(ae=t,t=n)):(ae=t,t=n)))))),de--,t===n&&0===de&&_e(X),t}function Se(){let t,r,i;return de++,t=ae,r=Oe(),r!==n?(e.substr(ae,3)===x?(i=x,ae+=3):(i=n,0===de&&_e(G)),i!==n?(le=t,t=function(e){return{value:e,unit:"deg"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,r=Oe(),r!==n?(e.substr(ae,3)===v?(i=v,ae+=3):(i=n,0===de&&_e(W)),i!==n?(le=t,t=function(e){return{value:e,unit:"rad"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,r=Oe(),r!==n?(e.substr(ae,4)===_?(i=_,ae+=4):(i=n,0===de&&_e(K)),i!==n?(le=t,t=function(e){return{value:e,unit:"grad"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,r=Oe(),r!==n?(e.substr(ae,4)===w?(i=w,ae+=4):(i=n,0===de&&_e(J)),i!==n?(le=t,t=function(e){return{value:e,unit:"turn"}}(r)):(ae=t,t=n)):(ae=t,t=n)))),de--,t===n&&(r=n,0===de&&_e(D)),t}function Ee(){let t,r,i,o;if(de++,t=ae,35===e.charCodeAt(ae)?(r=M,ae++):(r=n,0===de&&_e(te)),r!==n){if(i=[],o=e.charAt(ae),I.test(o)?ae++:(o=n,0===de&&_e(ne)),o!==n)for(;o!==n;)i.push(o),o=e.charAt(ae),I.test(o)?ae++:(o=n,0===de&&_e(ne));else i=n;i!==n?(le=t,t={type:"hex",value:fe()}):(ae=t,t=n)}else ae=t,t=n;return t===n&&(t=ae,r=be(),r!==n&&(le=t,r=function(e){return{type:"function",value:e}}(r)),t=r,t===n&&(t=ae,r=Ce(),r!==n&&(le=t,r={type:"named",value:fe()}),t=r)),de--,t===n&&(r=n,0===de&&_e(ee)),t}function Oe(){let t,r,i,o,s,a,l,c;for(t=ae,r=e.charAt(ae),R.test(r)?ae++:(r=n,0===de&&_e(re)),r===n&&(r=null),i=ae,o=[],s=e.charAt(ae),S.test(s)?ae++:(s=n,0===de&&_e(ie));s!==n;)o.push(s),s=e.charAt(ae),S.test(s)?ae++:(s=n,0===de&&_e(ie));if(46===e.charCodeAt(ae)?(s=b,ae++):(s=n,0===de&&_e(oe)),s!==n){if(a=[],l=e.charAt(ae),S.test(l)?ae++:(l=n,0===de&&_e(ie)),l!==n)for(;l!==n;)a.push(l),l=e.charAt(ae),S.test(l)?ae++:(l=n,0===de&&_e(ie));else a=n;a!==n?(o=[o,s,a],i=o):(ae=i,i=n)}else ae=i,i=n;if(i===n)if(i=[],o=e.charAt(ae),S.test(o)?ae++:(o=n,0===de&&_e(ie)),o!==n)for(;o!==n;)i.push(o),o=e.charAt(ae),S.test(o)?ae++:(o=n,0===de&&_e(ie));else i=n;if(i!==n){if(o=ae,101===e.charCodeAt(ae)?(s=P,ae++):(s=n,0===de&&_e(se)),s!==n){if(a=e.charAt(ae),R.test(a)?ae++:(a=n,0===de&&_e(re)),a===n&&(a=null),l=[],c=e.charAt(ae),S.test(c)?ae++:(c=n,0===de&&_e(ie)),c!==n)for(;c!==n;)l.push(c),c=e.charAt(ae),S.test(c)?ae++:(c=n,0===de&&_e(ie));else l=n;l!==n?(s=[s,a,l],o=s):(ae=o,o=n)}else ae=o,o=n;o===n&&(o=null),le=t,t=parseFloat(fe())}else ae=t,t=n;return t}ue=o();const Le=ue!==n&&ae===e.length;function Te(){throw ue!==n&&ae<e.length&&_e({type:"end"}),function(e,t,n){return new l(l.buildMessage(e,t),e,t,n)}(pe,he<e.length?function(t=ae){const n=e.codePointAt(t);return void 0===n?"":String.fromCodePoint(n)}(he):null,he<e.length?ve(he,he+1):ve(he,he))}return t.peg$library?{peg$result:ue,peg$currPos:ae,peg$FAILED:n,peg$maxFailExpected:pe,peg$maxFailPos:he,peg$success:Le,peg$throw:Le?void 0:Te}:Le?ue:void Te()}(e)}catch(t){throw new r.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new s.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new s.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=f[e.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${p(e)}`,{term:e})}(e),e.value*f[e.unit]||0}(e.parameters[0])),new s.Nd(t)}(e);case"blur":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=y(e.parameters[0]),d(t,e.parameters[0])),new s.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let n=null;for(const i of e.parameters)if("color"===i.type){if(t.length&&Object.freeze(t),n)throw new r.A("effect:type-error","Accepts only one color",{});n=x(i)}else{const e=y(i);if(Object.isFrozen(t))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&d(e,i)}if(t.length<2||t.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new s.$b(t[0],t[1],t[2]||0,n||v("black"))}(e);case"bloom":return function(e){let t=1,n=0,r=0;return h(e.parameters,3),e.parameters[0]&&(t=g(e.parameters[0])),e.parameters[1]&&(n=y(e.parameters[1]),d(n,e.parameters[1])),e.parameters[2]&&(r=g(e.parameters[2])),new s.bv(t,n,r)}(e)}}catch(t){throw t.details.filter=e,t}throw new r.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function h(e,t){if(e.length>t)throw new r.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function p(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in m)return"<length>";if(e.unit in f)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function d(e,t){if(e<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const f={deg:1,grad:.9,rad:180/Math.PI,turn:360},m={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${p(e)}`,{term:e})}(e);const t=e.value;return d(t,e),"%"===e.unit?.01*t:t}function y(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${p(e)}`,{term:e})}(e),e.value*m[e.unit]||0}function x(e){switch(e.colorType){case"hex":return(0,o.j5)(e.value);case"named":return v(e.value);case"function":return function(e){if(h(e.parameters,4),_.test(e.name))return[g(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1];if(w.test(e.name))return(0,o.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${p(e)}`,{term:e})}(e),d(e.value,e),e.value}(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function v(e){if(!(0,o.V6)(e))throw new r.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,o.c4)(e)}const _=/^rgba?/i,w=/^hsla?/i;function M(e,t,n){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const n of e)t.push({scale:n.scale,value:P(n.value)});return t}return P(e)}(e)}catch(e){n?.messages?.push(e)}return null}function b(e,t,n,r){try{const r=function(e){const t=c(e);return t?(0,a.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,i.sM)(n,r,t)}catch(e){r.messages&&r.messages.push(e)}}function P(e){if(!e?.length)return"";const t=[];for(const n of e){let e=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[A(n,"amount")];break;case"blur":e=[A(n,"radius","pt")];break;case"hue-rotate":e=[A(n,"angle","deg")];break;case"drop-shadow":e=[A(n,"xoffset","pt"),A(n,"yoffset","pt"),A(n,"blurRadius","pt"),C(n,"color")];break;case"bloom":e=[A(n,"strength"),A(n,"radius","pt"),A(n,"threshold")]}const r=`${n.type}(${e.filter(Boolean).join(" ")})`;c(r),t.push(r)}return t.join(" ")}function A(e,t,n){if(null==e[t])throw new r.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return n?e[t]+n:""+e[t]}function C(e,t){if(null==e[t])throw new r.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const n=e[t];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},78553:(e,t,n)=>{n.d(t,{D:()=>o,p:()=>i});var r=n(56507);function i(e){const t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function o(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},80754:(e,t,n)=>{n.d(t,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>c});var r=n(82799),i=n(16930),o=n(65864);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const n=c(e);for(const e of n)for(const n of e)n[0]+=t;return e}function c(e){return(0,o.Bi)(e)?e.rings:e.paths}},85648:(e,t,n)=>{n.d(t,{n:()=>i});var r=n(84952);function i(e){return o[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,r.Zo)(e);return l[t]||s}(e.url)}(e)]||a}const o={},s="text/plain",a=o[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)o[l[e]]=e},89056:(e,t,n)=>{n.d(t,{b3:()=>h,jZ:()=>u});var r=n(12195),i=n(19419),o=n(6606),s=n(95108),a=n(65864),l=n(80754),c=n(21325);function u(e){return p(e,!0)}function h(e){return p(e,!1)}function p(e,t){if(null==e)return null;const n=e.spatialReference,i=(0,c.Vp)(n),s=(0,r.W)(e)?e.toJSON():e;if(!i)return s;const u=(0,c.K8)(n)?102100:4326,h=l.j7[u].maxX,p=l.j7[u].minX;if((0,a.fT)(s))return f(s,h,p);if((0,a.U9)(s))return s.points=s.points.map(e=>f(e,h,p)),s;if((0,a.ZC)(s))return d(s,i);if((0,a.Bi)(s)||(0,a.Rg)(s)){const e=(0,o.Rg)(_,s),n={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},r=(0,l.kd)(n.xmin,p)*(2*h),i=0===r?s:(0,l.kS)(s,r);return n.xmin+=r,n.xmax+=r,n.xmax>h?x(i,h,t):n.xmin<p?x(i,p,t):i}return s}function d(e,t){if(!t)return e;const n=function(e,t){const n=[],{ymin:r,ymax:i,xmin:o,xmax:s}=e,a=e.xmax-e.xmin,[l,c]=t.valid,{x:u,frameId:h}=m(e.xmin,t),{x:p,frameId:d}=m(e.xmax,t),f=u===p&&a>0;if(a>2*c){const e={xmin:o<s?u:p,ymin:r,xmax:c,ymax:i},t={xmin:l,ymin:r,xmax:o<s?p:u,ymax:i},a={xmin:0,ymin:r,xmax:c,ymax:i},f={xmin:l,ymin:r,xmax:0,ymax:i},m=[],y=[];g(e,a)&&m.push(h),g(e,f)&&y.push(h),g(t,a)&&m.push(d),g(t,f)&&y.push(d);for(let e=h+1;e<d;e++)m.push(e),y.push(e);n.push(new v(e,[h]),new v(t,[d]),new v(a,m),new v(f,y))}else u>p||f?n.push(new v({xmin:u,ymin:r,xmax:c,ymax:i},[h]),new v({xmin:l,ymin:r,xmax:p,ymax:i},[d])):n.push(new v({xmin:u,ymin:r,xmax:p,ymax:i},[h]));return n}(e,t).map(e=>e.extent);return n.length<2?n[0]||e:n.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:n.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function f(e,t,n){if(Array.isArray(e)){const r=e[0];if(r>t){const n=(0,l.kd)(r,t);e[0]=r+n*(-2*t)}else if(r<n){const t=(0,l.kd)(r,n);e[0]=r+t*(-2*n)}}else{const r=e.x;if(r>t){const n=(0,l.kd)(r,t);e.x+=n*(-2*t)}else if(r<n){const t=(0,l.kd)(r,n);e.x+=t*(-2*n)}}return e}function m(e,t){const[n,r]=t.valid,i=2*r;let o,s=0;return e>r?(o=Math.ceil(Math.abs(e-r)/i),e-=o*i,s=o):e<n&&(o=Math.ceil(Math.abs(e-n)/i),e+=o*i,s=-o),{x:e,frameId:s}}function g(e,t){const{xmin:n,ymin:r,xmax:i,ymax:o}=t;return y(e,n,r)&&y(e,n,o)&&y(e,i,o)&&y(e,i,r)}function y(e,t,n){return t>=e.xmin&&t<=e.xmax&&n>=e.ymin&&n<=e.ymax}function x(e,t,n=!0){const r=!(0,a.Rg)(e);if(r&&(0,s.m3)(e),n)return(new w).cut(e,t);const i=r?e.rings:e.paths,o=r?4:2,l=i.length,c=-2*t;for(let e=0;e<l;e++){const t=i[e];if(t&&t.length>=o){const e=[];for(const n of t)e.push([n[0]+c,n[1]]);i.push(e)}}return r?e.rings=i:e.paths=i,e}class v{constructor(e,t){this.extent=e,this.frameIds=t}}const _=(0,i.vt)();class w{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let n;if(this._xCut=t,e.rings)this._closed=!0,n=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,n=e.paths,this._minPts=2}for(const e of n){if(!e||e.length<this._minPts)continue;let t=!0;for(const n of e)t?(this.moveTo(n),t=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const e of this._linesIn)e&&e.length>=this._minPts&&n.push(e);const r=-2*this._xCut;for(const e of this._linesOut)if(e&&e.length>=this._minPts){for(const t of e)t[0]+=r;n.push(e)}return this._closed?e.rings=n:e.paths=n,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e[0],e[1],this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){const t=this._side(e[0]);if(t*this._prevSide===-1){const n=this._intersect(this._prevPt,e);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(e[0],e[1],t)}else this._lineTo(e[0],e[1],t);this._prevSide=t,this._prevPt=e}close(){const e=this._firstPt,t=this._prevPt;e[0]===t[0]&&e[1]===t[1]||this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t,n){this._closed?(this._lineIn.push([n<=0?e:this._xCut,t]),this._lineOut.push([n>=0?e:this._xCut,t])):(n<=0&&this._lineIn.push([e,t]),n>=0&&this._lineOut.push([e,t]))}_lineTo(e,t,n){this._closed?(M(this._lineIn,n<=0?e:this._xCut,t),M(this._lineOut,n>=0?e:this._xCut,t)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([e,t])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([e,t])):this._prevSide<0?(this._lineIn.push([e,t]),this._lineOut.push([e,t])):this._prevSide>0&&(this._lineOut.push([e,t]),this._lineIn.push([e,t]))}_checkClosingPt(e){const t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0][1]=e[t-2][1],e.pop())}_side(e){return e<this._xCut?-1:e>this._xCut?1:0}_intersect(e,t){const n=(this._xCut-e[0])/(t[0]-e[0]);return e[1]+n*(t[1]-e[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function M(e,t,n){const r=e.length;r>1&&e[r-1][0]===t&&e[r-2][0]===t?e[r-1][1]=n:e.push([t,n])}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[624,7136],{10536:(e,t,r)=>{function s(e){const t={};for(const r in e){if("declaredClass"===r)continue;const n=e[r];if(null!=n&&"function"!=typeof n)if(Array.isArray(n)){t[r]=[];for(let e=0;e<n.length;e++)t[r][e]=s(n[e])}else"object"==typeof n?n.toJSON&&(t[r]=JSON.stringify(n)):t[r]=n}return t}r.d(t,{z:()=>s})},17136:(e,t,r)=>{r.d(t,{Y_:()=>x,O7:()=>T,el:()=>F});var s=r(92602),n=r(69052),i=r(49186),o=r(53966),a=r(39829),c=r(82799),u=r(16930),l=r(80754),h=r(21325),d=r(28735),f=r(78888),g=r(65864),p=r(2272),y=r(84952),m=r(92300);const _=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function b(e){return"polygon"===e[0].type}function w(e){return"polyline"===e[0].type}function k(e,t,r){if(t){const t=function(e,t){if(!(e instanceof c.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw _().error(e),new i.A("internal:geometry",e)}const r=(0,l.r8)(e),s=[];for(const e of r){const r=[];s.push(r),r.push([e[0][0],e[0][1]]);for(let s=0;s<e.length-1;s++){const n=e[s][0],i=e[s][1],o=e[s+1][0],a=e[s+1][1],c=Math.sqrt((o-n)*(o-n)+(a-i)*(a-i)),u=(a-i)/c,l=(o-n)/c,h=c/t;if(h>1){for(let e=1;e<=h-1;e++){const s=e*t,o=l*s+n,a=u*s+i;r.push([o,a])}const e=(c+Math.floor(h-1)*t)/2,s=l*e+n,o=u*e+i;r.push([s,o])}r.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:s,spatialReference:e.spatialReference}):new c.A({paths:s,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.ci)(t,!0)}return r&&(e=(0,l.kS)(e,r)),e}function S(e,t,r){if(Array.isArray(e)){const s=e[0];if(s>t){const r=(0,l.kd)(s,t);e[0]=s+r*(-2*t)}else if(s<r){const t=(0,l.kd)(s,r);e[0]=s+t*(-2*r)}}else{const s=e.x;if(s>t){const r=(0,l.kd)(s,t);e=e.clone().offset(r*(-2*t),0)}else if(s<r){const t=(0,l.kd)(s,r);e=e.clone().offset(t*(-2*r),0)}}return e}function I(e,t){let r=-1;for(let s=0;s<t.cutIndexes.length;s++){const n=t.cutIndexes[s],i=t.geometries[s],o=(0,l.r8)(i);for(let e=0;e<o.length;e++){const t=o[e];t.some(r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const s=t[e][0];r=s>r?s:r}r=Number(r.toFixed(9));const s=-360*(0,l.kd)(r,180);for(let r=0;r<t.length;r++){const t=i.getPoint(e,r);i.setPoint(e,r,t.clone().offset(s,0))}return!0}})}if(n===r){if(b(e))for(const t of(0,l.r8)(i))e[n]=e[n].addRing(t);else if(w(e))for(const t of(0,l.r8)(i))e[n]=e[n].addPath(t)}else r=n,e[n]=i}return e}async function F(e,t,r){if(!Array.isArray(e))return F([e],t);t&&"string"!=typeof t&&_().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??s.A.geometryServiceUrl;let i,o,u,b,w,T,A,x,q=0;const N=[],R=[];for(const t of e)if(null!=t)if(i||(i=t.spatialReference,o=(0,h.Vp)(i),u=i.isWebMercator,T=u?102100:4326,b=l.j7[T].maxX,w=l.j7[T].minX,A=l.j7[T].plus180Line,x=l.j7[T].minus180Line),o)if("mesh"===t.type)R.push(t);else if("point"===t.type)R.push(S(t.clone(),b,w));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>S(e,b,w)),R.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,o);R.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,r=(0,l.kd)(e.xmin,w)*(2*b);let s=0===r?t.clone():(0,l.kS)(t.clone(),r);e.offset(r,0);let{xmin:n,xmax:i}=e;n=Number(n.toFixed(9)),i=Number(i.toFixed(9)),e.intersects(A)&&i!==b?(q=i>q?i:q,s=k(s,u),N.push(s),R.push("cut")):e.intersects(x)&&n!==w?(q=i*(2*b)>q?i*(2*b):q,s=k(s,u,360),N.push(s),R.push("cut")):R.push(s)}else R.push(t.clone());else R.push(t);else R.push(t);let M=(0,l.kd)(q,b),v=-90;const O=M,E=new c.A;for(;M>0;){const e=360*M-180;E.addPath([[e,v],[e,-1*v]]),v*=-1,M--}if(N.length>0&&O>0){const t=I(N,await async function(e,t,r,s){const n=(0,p.Dl)(e),i=t[0].spatialReference,o={...s,responseType:"json",query:{...n.query,f:"json",sr:(0,h.YX)(i),target:JSON.stringify({geometryType:(0,g.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,f.A)(n.path+"/cut",o),{cutIndexes:c,geometries:u=[]}=a.data;return{cutIndexes:c,geometries:u.map(e=>{const t=(0,g.rS)(e);return t.spatialReference=i,t})}}(n,N,E,r)),s=[],i=[];for(let r=0;r<R.length;r++){const n=R[r];if("cut"!==n)i.push(n);else{const n=t.shift(),o=e[r];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(s.push(n),i.push("simplify")):i.push(u?(0,d.Gh)(n):n)}}if(!s.length)return i;const o=await async function(e,t,r){const s="string"==typeof e?(0,y.An)(e):e,n=t[0].spatialReference,i=(0,g.$B)(t[0]),o={...r,query:{...s.query,f:"json",sr:(0,h.YX)(n),geometries:JSON.stringify((0,m.X)(t))}},{data:a}=await(0,f.A)(s.path+"/simplify",o);return(0,m.V)(a.geometries,i,n)}(n,s,r),a=[];for(let e=0;e<i.length;e++){const t=i[e];"simplify"!==t?a.push(t):a.push(u?(0,d.Gh)(o.shift()):o.shift())}return a}const C=[];for(let e=0;e<R.length;e++){const t=R[e];if("cut"!==t)C.push(t);else{const e=N.shift();C.push(!0===u?(0,d.Gh)(e):e)}}return C}function T(e,t,r){const s=(0,h.Vp)(r);if(null==s)return e;const[n,i]=s.valid,o=2*i;let a=0,c=0;t>i?a=Math.ceil(Math.abs(t-i)/o):t<n&&(a=-Math.ceil(Math.abs(t-n)/o)),e>i?c=Math.ceil(Math.abs(e-i)/o):e<n&&(c=-Math.ceil(Math.abs(e-n)/o));let u=e+(a-c)*o;const l=u-t;return l>i?u-=o:l<n&&(u+=o),u}function A(e){const t=(0,h.Vp)(e);if(null==t)return null;const[r,s]=t.valid;return new n.hr(r,s)}const x=A(u.A.WGS84);A(u.A.WebMercator)},27647:(e,t,r)=>{function s(e,t){return e?t?4:3:t?3:2}function n(e,t,r,n){if(!t?.lengths.length)return null;e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0);const a=e.coords,c=[],u=r?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:l,coords:h}=t,d=s(r,n);let f=0;for(const e of l){const t=i(u,h,f,e,r,n);t&&c.push(t),f+=e*d}if(c.sort((e,t)=>{let s=e[2]-t[2];return 0===s&&r&&(s=e[4]-t[4]),s}),c.length){let e=6*c[0][2];a[0]=c[0][0]/e,a[1]=c[0][1]/e,r&&(e=6*c[0][4],a[2]=0!==e?c[0][3]/e:0),(a[0]<u[0]||a[0]>u[1]||a[1]<u[2]||a[1]>u[3]||r&&(a[2]<u[4]||a[2]>u[5]))&&(a.length=0)}if(!a.length){const e=t.lengths[0]?o(h,0,l[0],r,n):null;if(!e)return null;a[0]=e[0],a[1]=e[1],r&&e.length>2&&(a[2]=e[2])}return e}function i(e,t,r,n,i,o){const a=s(i,o);let c=r,u=r+a,l=0,h=0,d=0,f=0,g=0;for(let r=0,s=n-1;r<s;r++,c+=a,u+=a){const r=t[c],s=t[c+1],n=t[c+2],o=t[u],a=t[u+1],p=t[u+2];let y=r*a-o*s;f+=y,l+=(r+o)*y,h+=(s+a)*y,i&&(y=r*p-o*n,d+=(n+p)*y,g+=y),r<e[0]&&(e[0]=r),r>e[1]&&(e[1]=r),s<e[2]&&(e[2]=s),s>e[3]&&(e[3]=s),i&&(n<e[4]&&(e[4]=n),n>e[5]&&(e[5]=n))}if(f>0&&(f*=-1),g>0&&(g*=-1),!f)return null;const p=[l,h,.5*f];return i&&(p[3]=d,p[4]=.5*g),p}function o(e,t,r,n,i){const o=s(n,i);let h=t,d=t+o,f=0,g=0,p=0,y=0;for(let t=0,s=r-1;t<s;t++,h+=o,d+=o){const t=e[h],r=e[h+1],s=e[h+2],i=e[d],o=e[d+1],m=e[d+2],_=n?c(t,r,s,i,o,m):a(t,r,i,o);if(_)if(f+=_,n){const e=l(t,r,s,i,o,m);g+=_*e[0],p+=_*e[1],y+=_*e[2]}else{const e=u(t,r,i,o);g+=_*e[0],p+=_*e[1]}}return f>0?n?[g/f,p/f,y/f]:[g/f,p/f]:r>0?n?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function a(e,t,r,s){const n=r-e,i=s-t;return Math.sqrt(n*n+i*i)}function c(e,t,r,s,n,i){const o=s-e,a=n-t,c=i-r;return Math.sqrt(o*o+a*a+c*c)}function u(e,t,r,s){return[e+.5*(r-e),t+.5*(s-t)]}function l(e,t,r,s,n,i){return[e+.5*(s-e),t+.5*(n-t),r+.5*(i-r)]}r.d(t,{Q:()=>n})},30624:(e,t,r)=>{r.r(t),r.d(t,{createConnection:()=>I});var s=r(31635),n=r(78888),i=r(49186),o=r(53966),a=r(74887),c=r(84952),u=(r(44208),r(87811),r(40608)),l=r(16930),h=r(65864),d=r(10107),f=r(62815),g=r(65529);let p=class extends g.nJ{destroy(){this.emit("destroy")}get connectionError(){return this.errorString?new i.A("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}onMessage(e){this.emit("message-received",e)}};(0,s.Cg)([(0,d.MZ)({readOnly:!0})],p.prototype,"connectionError",null),p=(0,s.Cg)([(0,u.$)("esri.layers.support.StreamConnection")],p);let y=class extends p{constructor(e){super({}),this._outstandingMessages=[],this.errorString=null;const{geometryType:t,spatialReference:r,sourceSpatialReference:s}=e;this._config=e,this._featureZScaler=(0,f.N)(t,s,r),this._open()}normalizeCtorArgs(){return{}}async _open(){await this._tryCreateWebSocket(),this.destroyed||await this._handshake()}destroy(){super.destroy(),null!=this._websocket&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if(null==this._websocket)return"disconnected";switch(this._websocket.readyState){case 0:case 1:return"connected";case 2:case 3:return"disconnected"}}sendMessageToSocket(e){null!=this._websocket?this._websocket.send(JSON.stringify(e)):this._outstandingMessages.push(e)}sendMessageToClient(e){this._onMessage(e)}updateCustomParameters(e){this._config.customParameters=e,null!=this._websocket&&this._websocket.close()}async _tryCreateWebSocket(e=this._config.source.path,t=1e3,r=0){try{if(this.destroyed)return;const t=(0,c.a6)(e,this._config.customParameters??{});this._websocket=await this._createWebSocket(t),this.notifyChange("connectionStatus")}catch(s){const n=t/1e3;return this._config.maxReconnectionAttempts&&r>=this._config.maxReconnectionAttempts?(o.A.getLogger(this).error(new i.A("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void this.destroy()):(o.A.getLogger(this).error(new i.A("websocket-connection",`Failed to connect. Attempting to reconnect in ${n}s`,s)),await(0,a.Pl)(t),this._tryCreateWebSocket(e,Math.min(1.5*t,1e3*this._config.maxReconnectionInterval),r+1))}}_setWebSocketJSONParseHandler(e){e.onmessage=e=>{try{const t=JSON.parse(e.data);this._onMessage(t)}catch(e){return void o.A.getLogger(this).error(new i.A("websocket-connection","Failed to parse message, invalid JSON",{error:e}))}}}_createWebSocket(e){return new Promise((t,r)=>{const s=new WebSocket(e);s.onopen=()=>{if(s.onopen=null,this.destroyed)return s.onclose=null,void s.close();s.onclose=e=>this._onClose(e),s.onerror=e=>this._onError(e),this._setWebSocketJSONParseHandler(s),t(s)},s.onclose=e=>{s.onopen=s.onclose=null,r(e)}})}async _handshake(e=1e4){const t=this._websocket;if(null==t)return;const r=(0,a.Tw)(),s=t.onmessage,{filter:n,outFields:c,spatialReference:u}=this._config;return r.timeout(e),t.onmessage=e=>{let a=null;try{a=JSON.parse(e.data)}catch(e){}a&&"object"==typeof a||(o.A.getLogger(this).error(new i.A("websocket-connection","Protocol violation. Handshake failed - malformed message",e.data)),r.reject(),this.destroy()),a.spatialReference?.wkid!==u?.wkid&&(o.A.getLogger(this).error(new i.A("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${u.wkid}`,e.data)),r.reject(),this.destroy()),"json"!==a.format&&(o.A.getLogger(this).error(new i.A("websocket-connection","Protocol violation. Handshake failed - format is not set",e.data)),r.reject(),this.destroy()),n&&a.filter!==n&&o.A.getLogger(this).error(new i.A("websocket-connection","Tried to set filter, but server doesn't support it")),c&&a.outFields!==c&&o.A.getLogger(this).error(new i.A("websocket-connection","Tried to set outFields, but server doesn't support it")),t.onmessage=s;for(const e of this._outstandingMessages)t.send(JSON.stringify(e));this._outstandingMessages=[],r.resolve()},t.send(JSON.stringify({filter:n,outFields:c,format:"json",spatialReference:{wkid:u.wkid}})),r.promise}_onMessage(e){if(this.onMessage(e),"type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}}_onError(e){const t="Encountered an error over WebSocket connection";this._set("errorString",t),o.A.getLogger(this).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&o.A.getLogger(this).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,s.Cg)([(0,d.MZ)()],y.prototype,"connectionStatus",null),(0,s.Cg)([(0,d.MZ)()],y.prototype,"errorString",void 0),y=(0,s.Cg)([(0,u.$)("esri.layers.graphics.sources.connections.WebSocketConnection")],y);var m=r(80893),_=r(61956);const b={maxQueryDepth:5,maxRecordCountFactor:3};let w=class extends y{constructor(e){super({...b,...e}),this._buddyServicesQuery=null,this._relatedFeatures=null}async _open(){const e=await this._fetchServiceDefinition(this._config.source);e.timeInfo.trackIdField||o.A.getLogger(this).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");const t=this._fetchWebSocketUrl(e.streamUrls,this._config.spatialReference);this._buddyServicesQuery||(this._buddyServicesQuery=this._queryBuddyServices()),await this._buddyServicesQuery,await this._tryCreateWebSocket(t);const{filter:r,outFields:s}=this._config;this.destroyed||this._setFilter(r,s)}_onMessage(e){if("attributes"in e){let t;try{t=this._enrich(e),null!=this._featureZScaler&&this._featureZScaler(t.geometry)}catch(e){return void o.A.getLogger(this).error(new i.A("geoevent-connection","Failed to parse message",e))}this.onFeature(t)}else this.onMessage(e)}async _fetchServiceDefinition(e){const t={f:"json",...this._config.customParameters},r=(0,n.A)(e.path,{query:t,responseType:"json"}),s=(await r).data;return this._serviceDefinition=s,s}_fetchWebSocketUrl(e,t){const r=e[0],{urls:s,token:n}=r,i=this._inferWebSocketBaseUrl(s);return(0,c.a6)(`${i}/subscribe`,{outSR:""+t.wkid,token:n})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(const t of e)if(t.includes("wss"))return t;return o.A.getLogger(this).error(new i.A("geoevent-connection","Unable to infer WebSocket url",e)),null}async _setFilter(e,t){const r=this._websocket;if(null==r||null==e&&null==t)return;const s=JSON.stringify({filter:this._serializeFilter(e,t)});let n=!1;const c=(0,a.Tw)();return r.onmessage=e=>{const t=JSON.parse(e.data);t.filter&&(t.error&&(o.A.getLogger(this).error(new i.A("geoevent-connection","Failed to set service filter",t.error)),this._set("errorString",`Could not set service filter - ${t.error}`),c.reject(t.error)),this._setWebSocketJSONParseHandler(r),n=!0,c.resolve())},r.send(s),setTimeout(()=>{n||(this.destroyed||this._websocket!==r||o.A.getLogger(this).error(new i.A("geoevent-connection","Server timed out when setting filter")),c.reject())},1e4),c.promise}_serializeFilter(e,t){const r={};if(null==e&&null==t)return r;if(e?.geometry)try{const t=(0,h.rS)(e.geometry);if("extent"!==t.type)throw new i.A("geoevent-connection",`Expected extent but found type ${t.type}`);r.geometry=JSON.stringify(t.shiftCentralMeridian())}catch(e){o.A.getLogger(this).error(new i.A("geoevent-connection","Encountered an error when setting connection geometryDefinition",e))}return e?.where&&"1 = 1"!==e.where&&"1=1"!==e.where&&(r.where=e.where),null!=t&&(r.outFields=t.join(",")),r}_enrich(e){if(!this._relatedFeatures)return e;const t=this._serviceDefinition.relatedFeatures.joinField,r=e.attributes[t],s=this._relatedFeatures.get(r);if(!s)return o.A.getLogger(this).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;const{attributes:n,geometry:a}=s;for(const t in n)e.attributes[t]=n[t];return a&&(e.geometry=a),e.geometry||e.centroid||o.A.getLogger(this).error(new i.A("geoevent-connection","Found malformed feature - no geometry found",e)),e}async _queryBuddyServices(){try{const{relatedFeatures:e,keepLatestArchive:t}=this._serviceDefinition,r=this._queryRelatedFeatures(e),s=this._queryArchive(t);await r;const n=await s;if(!n)return;for(const e of n.features)this.onFeature(this._enrich(e))}catch(e){o.A.getLogger(this).error(new i.A("geoevent-connection","Encountered an error when querying buddy services",{error:e}))}}async _queryRelatedFeatures(e){if(!e)return;const t=await this._queryBuddy(e.featuresUrl);this._addRelatedFeatures(t)}async _queryArchive(e){if(e)return this._queryBuddy(e.featuresUrl)}async _queryBuddy(e){const t=new((await Promise.all([r.e(4045),r.e(6554),r.e(2869),r.e(3910),r.e(4903),r.e(1214),r.e(9953),r.e(8399),r.e(1017),r.e(957),r.e(8506),r.e(212),r.e(812),r.e(655),r.e(2561)]).then(r.bind(r,40212))).default)({url:e}),{capabilities:s}=await t.load(),n=s.query.supportsMaxRecordCountFactor,i=s.query.supportsPagination,o=s.query.supportsCentroid,a=this._config.maxRecordCountFactor,c=t.capabilities.query.maxRecordCount,u=n?c*a:c,h=new _.A;if(h.outFields=this._config.outFields??["*"],h.where=this._config.filter?.where??"1=1",h.returnGeometry=!0,h.returnExceededLimitFeatures=!0,h.outSpatialReference=l.A.fromJSON(this._config.spatialReference),o&&(h.returnCentroid=!0),n&&(h.maxRecordCountFactor=a),i)return h.num=u,t.destroy(),this._queryPages(e,h);const d=await(0,m.eW)(e,h,this._config.sourceSpatialReference);return t.destroy(),d.data}async _queryPages(e,t,r=[],s=0){t.start=null!=t.num?s*t.num:null;const{data:n}=await(0,m.eW)(e,t,this._config.sourceSpatialReference);return n.exceededTransferLimit&&s<(this._config.maxQueryDepth??0)?(n.features.forEach(e=>r.push(e)),this._queryPages(e,t,r,s+1)):(r.forEach(e=>n.features.push(e)),n)}_addRelatedFeatures(e){const t=new Map,r=e.features,s=this._serviceDefinition.relatedFeatures.joinField;for(const e of r){const r=e.attributes[s];t.set(r,e)}this._relatedFeatures=t}};w=(0,s.Cg)([(0,u.$)("esri.layers.graphics.sources.connections.GeoEventConnection")],w);let k=class extends p{constructor(e){super({}),this.connectionStatus="connected",this.errorString=null;const{geometryType:t,spatialReference:r,sourceSpatialReference:s}=e;this._featureZScaler=(0,f.N)(t,s,r)}normalizeCtorArgs(){return{}}updateCustomParameters(e){}sendMessageToSocket(e){}sendMessageToClient(e){if("type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}this.onMessage(e)}};function S(e,t){if(null==e&&null==t)return null;const r={};return null!=t&&(r.geometry=t),null!=e&&(r.where=e),r}function I(e,t,r,s,n,i,o,a,c){const u={source:e,sourceSpatialReference:t,spatialReference:r,geometryType:s,filter:S(n,i),maxReconnectionAttempts:o,maxReconnectionInterval:a,customParameters:c};return e?e.path.startsWith("wss://")||e.path.startsWith("ws://")?new y(u):new w(u):new k(u)}(0,s.Cg)([(0,d.MZ)()],k.prototype,"connectionStatus",void 0),(0,s.Cg)([(0,d.MZ)()],k.prototype,"errorString",void 0),k=(0,s.Cg)([(0,u.$)("esri.layers.support.ClientSideConnection")],k)},43334:(e,t,r)=>{r.d(t,{N3:()=>a,Om:()=>o});var s=r(69397),n=r(27647),i=r(92722);class o{constructor(e=null,t={},r,s,n=0){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=s,this.displayId=n}static fromJSON(e){const t=e.geometry?i.A.fromJSON(e.geometry):null,r=e.centroid?i.A.fromJSON(e.centroid):null,s=e.objectId;return new o(t,e.attributes,r,s)}weakClone(){const e=new o(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e}clone(){const e=this.geometry?.clone(),t=new o(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t}ensureCentroid(e){return this.centroid??=(0,n.Q)(new i.A,this.geometry,e.hasZ,e.hasM),this.centroid}get usedMemory(){return 128+(0,s.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function a(e){return!!e.geometry?.coords?.length}},51624:(e,t,r)=>{r.d(t,{A:()=>u});var s=r(44208),n=r(69397),i=r(93687);const o=4294967296,a=new TextDecoder("utf-8"),c=(0,s.A)("safari")||(0,s.A)("ios")?6:(0,s.A)("ff")?12:32;class u{constructor(e,t,r=0,s=(e?e.byteLength:0)){this._tag=0,this._dataType=99,this._init(e,t,r,s)}_init(e,t,r,s){this._data=e,this._dataView=t,this._pos=r,this._end=s}get usedMemory(){return 64+(0,n.Qf)(this._data)}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,s){const n=this.getMessage(),i=e(n,t,r,s);return n.release(),i}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=u.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,s=0;if(this._end-t>=10)do{if(s=e[t++],r|=127&s,!(128&s))break;if(s=e[t++],r|=(127&s)<<7,!(128&s))break;if(s=e[t++],r|=(127&s)<<14,!(128&s))break;if(s=e[t++],r|=(127&s)<<21,!(128&s))break;if(s=e[t++],r+=268435456*(127&s),!(128&s))break;if(s=e[t++],r+=34359738368*(127&s),!(128&s))break;if(s=e[t++],r+=4398046511104*(127&s),!(128&s))break;if(s=e[t++],r+=562949953421312*(127&s),!(128&s))break;if(s=e[t++],r+=72057594037927940*(127&s),!(128&s))break;if(s=e[t++],r+=0x8000000000000000*(127&s),!(128&s))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(s=e[t],128&s);)++t,r+=(127&s)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=s*n}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,s=0;const n=1&e[this._pos];if(s=e[this._pos++],r|=127&s,!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r|=(127&s)<<7,!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r|=(127&s)<<14,!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r|=(127&s)<<21,!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r+=268435456*(127&s),!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r+=34359738368*(127&s),!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r+=4398046511104*(127&s),!(128&s))return n?-(r+1)/2:r/2;if(t=BigInt(r),s=e[this._pos++],t+=0x2000000000000n*BigInt(127&s),!(128&s))return Number(n?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x100000000000000n*BigInt(127&s),!(128&s))return Number(n?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x8000000000000000n*BigInt(127&s),!(128&s))return Number(n?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>c){const s=e.subarray(t,r);return a.decode(s)}let s="",n="";for(let i=t;i<r;++i){const t=e[i];128&t?n+="%"+t.toString(16):(s+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(s+=decodeURIComponent(n)),s}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}static{this.pool=new i.A(()=>new u(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},53655:(e,t,r)=>{r.d(t,{SH:()=>q,ae:()=>I,cn:()=>_});var s=r(49186),n=r(51624),i=r(92722),o=r(69418);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],c=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],u=["upperLeft","lowerLeft"];function l(e){return e>=a.length?null:a[e]}function h(e){return e>=c.length?null:c[e]}function d(e){return e>=u.length?null:u[e]}function f(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function g(e,t,r){const s=e.asUnsafe(),n=t.createPointGeometry(r);for(;s.next();)switch(s.tag()){case 3:{const e=s.getUInt32(),r=s.pos()+e;let i=0;for(;s.pos()<r;)t.addCoordinatePoint(n,s.getSInt64(),i++);break}default:s.skip()}return n}function p(e,t,r){const s=e.asUnsafe(),n=t.createGeometry(r),i=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;s.next();)switch(s.tag()){case 2:{const e=s.getUInt32(),r=s.pos()+e;let i=0;for(;s.pos()<r;)t.addLength(n,s.getUInt32(),i++);break}case 3:{const e=s.getUInt32(),r=s.pos()+e;let o=0;for(t.allocateCoordinates(n);s.pos()<r;)t.addCoordinate(n,s.getSInt64(),o),o++,o===i&&(o=0);break}default:s.skip()}return n}function y(e){const t=e.asUnsafe(),r=new i.A;let s="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),s=t.pos()+e;for(;t.pos()<s;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),s=t.pos()+e;for(;t.pos()<s;)r.coords.push(t.getSInt64());break}case 1:s=o.z[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:s}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),r={type:l(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=l(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=h(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function b(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function w(e,t,r,s){const n=t.createFeature(r);let i=0;for(;e.next();)switch(e.tag()){case 1:{const t=s[i++].name;n.attributes[t]=e.processMessage(m);break}case 2:n.geometry=e.processMessageWithArgs(p,t,r);break;case 4:n.centroid=e.processMessageWithArgs(g,t,r);break;default:e.skip()}return n}function k(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function S(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function I(e){const t={originPosition:d(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=d(r.getEnum());break;case 2:t.scale=r.processMessage(k);break;case 3:t.translate=r.processMessage(S);break;default:r.skip()}return t}function F(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function T(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function A(e,t){const r=t.createFeatureResult(),s=e.asUnsafe();r.geometryType=f(t,0);let n=!1;for(;s.next();)switch(s.tag()){case 1:r.objectIdFieldName=s.getString();break;case 3:r.globalIdFieldName=s.getString();break;case 4:r.geohashFieldName=s.getString();break;case 5:r.geometryProperties=s.processMessage(F);break;case 7:r.geometryType=f(t,s.getEnum());break;case 8:r.spatialReference=s.processMessageWithArgs(T,t);break;case 10:r.hasZ=s.getBool();break;case 11:r.hasM=s.getBool();break;case 12:r.transform=s.processMessage(I);break;case 9:r.exceededTransferLimit=s.getBool();break;case 13:t.addField(r,s.processMessage(_));break;case 15:n||(t.prepareFeatures(r),n=!0),t.addFeature(r,s.processMessageWithArgs(w,t,r,r.fields));break;case 2:r.uniqueIdField=s.processMessage(b);break;default:s.skip()}return t.finishFeatureResult(r),r}function x(e,t){const r={};let s=null;for(;e.next();)switch(e.tag()){case 4:s=e.processMessageWithArgs(y);break;case 1:r.featureResult=e.processMessageWithArgs(A,t);break;default:e.skip()}return null!=s&&r.featureResult&&t.addQueryGeometry(r,s),r}function q(e,t){try{const r=2,s=new n.A(new Uint8Array(e),new DataView(e)),i={};for(;s.next();)s.tag()===r?i.queryResult=s.processMessageWithArgs(x,t):s.skip();return i}catch(e){throw new s.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},58501:(e,t,r)=>{r.d(t,{q:()=>n});var s=r(62815);function n(e,t,r){if(!r?.features||!r.hasZ)return;const n=(0,s.N)(r.geometryType,t,e.outSpatialReference);if(null!=n)for(const e of r.features)n(e.geometry)}},58512:(e,t,r)=>{r.d(t,{A:()=>s});class s{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new s;return e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},66208:(e,t,r)=>{r.d(t,{m:()=>n});var s=r(53655);function n(e,t){const r=(0,s.SH)(e,t),n=r.queryResult.featureResult,i=r.queryResult.queryGeometry,o=r.queryResult.queryGeometryType;if(n&&n.features&&n.features.length&&n.objectIdFieldName){const e=n.objectIdFieldName;for(const t of n.features)t.attributes&&(t.objectId=t.attributes[e])}return n&&(n.queryGeometry=i,n.queryGeometryType=o),n}},69052:(e,t,r)=>{r.d(t,{hr:()=>n,ie:()=>c,uC:()=>a});var s=r(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return i(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,s.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return i(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,s=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(s)?r:s}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function i(e,t,r,s,n=0,i=!1){return(s-=n)<t?s+=o(e,t-s):s>r&&(s-=o(e,s-r)),i&&s===r&&(s=t),s+n}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new n(0,2*Math.PI),c=(new n(-Math.PI,Math.PI),new n(0,360))},69397:(e,t,r)=>{r.d(t,{$B:()=>n,Qf:()=>u,Qh:()=>a,RS:()=>i,ez:()=>d,lM:()=>o,qK:()=>h});var s=r(34275);function n(e){return 32+e.length}const i=16;function o(e){if(!e)return 0;let t=h;for(const r in e)e.hasOwnProperty(r)&&(t+=c(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=d;for(let s=0;s<t;s++)r+=c(e[s]);return r}(e);let t=h;for(const r in e)e.hasOwnProperty(r)&&(t+=c(e[r]));return t}function c(e,t=!0){switch(typeof e){case"object":return t?a(e):h;case"string":return n(e);case"number":return i;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+f:Array.isArray(t)?l(t,i):0:0),0)}function l(e,t){return d+e.length*t}const h=32,d=16,f=145},69418:(e,t,r)=>{r.d(t,{S:()=>u,z:()=>c});var s=r(83047),n=r(21325),i=r(43334),o=r(58512),a=r(92722);const c=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=c,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new o.A}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e?.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,n.aI)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,s.G9)(this._options.sourceSpatialReference)/(0,s.G9)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,i.N3)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new i.Om(null,{},null,0)}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.A}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce((e,t)=>e+t,0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.A}}},80754:(e,t,r)=>{r.d(t,{j7:()=>o,kS:()=>c,kd:()=>a,r8:()=>u});var s=r(82799),n=r(16930),i=r(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function c(e,t){const r=u(e);for(const e of r)for(const r of e)r[0]+=t;return e}function u(e){return(0,i.Bi)(e)?e.rings:e.paths}},80893:(e,t,r)=>{r.d(t,{IJ:()=>g,Jf:()=>_,Pk:()=>y,eW:()=>f,gW:()=>m,kS:()=>p});var s=r(78888),n=r(84952),i=r(65864),o=r(17136),a=r(21325),c=r(10536),u=r(66208),l=r(58501);const h="Layer does not support extent calculation.";function d(e,t,r){const s=e.geometry,n=e.toJSON();delete n.compactGeometryEnabled,delete n.defaultSpatialReferenceEnabled;const o=n;let c,u,l;if(s&&(u=s.spatialReference,l=(0,a.YX)(u),o.geometryType=(0,i.$B)(s),o.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const r=e.toJSON();return delete r.spatialReference,JSON.stringify(r)}(s,e.compactGeometryEnabled),o.inSR=l),n.groupByFieldsForStatistics&&(o.groupByFieldsForStatistics=n.groupByFieldsForStatistics.join(",")),n.objectIds)switch(r?.uniqueIdFields?.length){case void 0:o.objectIds=n.objectIds.join(",");break;case 1:o.uniqueIds=JSON.stringify(n.objectIds),delete o.objectIds;break;default:o.uniqueIds=JSON.stringify(n.objectIds.map(e=>JSON.parse(e))),delete o.objectIds}if(n.orderByFields&&(o.orderByFields=n.orderByFields.join(",")),!n.outFields||!n.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete o.outFields:n.outFields.includes("*")?o.outFields="*":o.outFields=n.outFields.join(","),n.outSR?(o.outSR=(0,a.YX)(n.outSR),c=e.outSpatialReference):s&&(n.returnGeometry||n.returnCentroid)&&(o.outSR=o.inSR,c=u),n.returnGeometry&&delete n.returnGeometry,n.outStatistics&&(o.outStatistics=JSON.stringify(n.outStatistics)),n.fullText&&(o.fullText=JSON.stringify(n.fullText)),n.pixelSize&&(o.pixelSize=JSON.stringify(n.pixelSize)),n.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=u&&null!=e.quantizationParameters?.extent&&u.equals(e.quantizationParameters.extent.spatialReference)&&delete n.quantizationParameters.extent.spatialReference,o.quantizationParameters=JSON.stringify(n.quantizationParameters)),n.parameterValues&&(o.parameterValues=JSON.stringify(n.parameterValues)),n.rangeValues&&(o.rangeValues=JSON.stringify(n.rangeValues)),n.dynamicDataSource&&(o.layer=JSON.stringify({source:n.dynamicDataSource}),delete n.dynamicDataSource),n.timeExtent){const e=n.timeExtent,{start:t,end:r}=e;null==t&&null==r||(o.time=t===r?t:`${t??"null"},${r??"null"}`),delete n.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=u&&null!=c&&u.equals(c)&&(o.defaultSR=o.inSR,delete o.inSR,delete o.outSR),o}async function f(e,t,r,s,n){const i=t.timeExtent?.isEmpty?{data:{features:[]}}:await w(e,t,"json",s,void 0,n);return(0,l.q)(t,r,i.data),i}async function g(e,t,r,s,n){if(t.timeExtent?.isEmpty)return{data:r.createFeatureResult()};const i=await p(e,t,s,n),o=i;return o.data=(0,u.m)(i.data,r),o}function p(e,t,r,s){return w(e,t,"pbf",r,void 0,s)}function y(e,t,r,s){return t.timeExtent?.isEmpty?Promise.resolve({data:{objectIds:[]}}):w(e,t,"json",r,{returnIdsOnly:!0},s)}function m(e,t,r,s){return t.timeExtent?.isEmpty?Promise.resolve({data:{count:0}}):w(e,t,"json",r,{returnIdsOnly:!0,returnCountOnly:!0},s)}async function _(e,t,r){if(t.timeExtent?.isEmpty)return{data:{count:0,extent:null}};const s=await w(e,t,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}),n=s.data;if(n.hasOwnProperty("extent"))return s;if(n.features)throw new Error(h);if(n.hasOwnProperty("count"))throw new Error(h);return s}function b(e,t){if(!e.returnIdsOnly||!t.uniqueIdFields)return e;const r={...e,returnUniqueIdsOnly:!0};return delete r.returnIdsOnly,r}async function w(e,t,r,i={},a={},u={}){const l="string"==typeof e?(0,n.An)(e):e,h=t.geometry?[t.geometry]:[],f=await(0,o.el)(h,null,{signal:i.signal}),g=f?.[0];null!=g&&((t=t.clone()).geometry=g);const p=(0,c.z)({...l.query,f:r,...b(a,u),...d(t,a,u)});return(0,s.A)((0,n.fj)(l.path,(y=a,null==t.formatOf3DObjects||y.returnCountOnly||y.returnExtentOnly||y.returnIdsOnly?"query":"query3d")),{...i,responseType:"pbf"===r?"array-buffer":"json",query:{...p,...i.query}});var y}},92300:(e,t,r)=>{r.d(t,{V:()=>i,X:()=>n});var s=r(65864);function n(e){return{geometryType:(0,s.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function i(e,t,r){const n=(0,s.xD)(t);return e.map(e=>{const t=n.fromJSON(e);return t.spatialReference=r,t})}},92722:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(69397);class n{constructor(e=[],t=[]){this.lengths=e??[],this.coords=t??[]}static fromJSON(e){return new n(e.lengths,e.coords)}static fromRect(e){const[t,r,s,i]=e,o=s-t,a=i-r;return new n([5],[t,r,o,0,0,a,-o,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce((e,t)=>e+t)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}area(){let e=0,t=0;if(!this.lengths.length)return 0;for(let r=0;r<this.lengths.length;r++){const s=this.lengths[r];if(s<3)continue;let n=this.coords[2*t],i=this.coords[2*t+1];for(let r=1;r<s;r+=1){const s=this.coords[2*(r+t)],o=this.coords[2*(r+t)+1];e+=-.5*(s-n)*(o+i),n=s,i=o}t+=s}return e}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const s=this.lengths[r];for(let r=0;r<s;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=s}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let s=0;for(const e of r){for(let r=1;r<e;r++)t[2*(s+r)]+=t[2*(s+r)-2],t[2*(s+r)+1]+=t[2*(s+r)-1];s+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce((e,t)=>e+t)),r=this.coords.slice(0,t);return e?(e.set(r),new n(this.lengths,e)):new n(Array.from(this.lengths),Array.from(r))}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4784],{11221:(e,t,n)=>{n.d(t,{A:()=>g});var r=n(23732),a=n(87449),s=n(93833);class i{constructor(e,t){this._lastId=-1,this._progress=t,this._parent=e}reset(){this._lastId=-1}async nextBatchAsArcadeFeatures(e,t){const n=await this.nextBatch(e);return null===n?n:n.map(e=>s.Xj.createFromGraphicLikeObject(e.geometry,e.attributes,this._parent,t))}nextBatch(e){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then(t=>this.nextBatch(e),t=>this.nextBatch(e));const t={returnpromise:null,hasset:!1},n=[];return t.returnpromise=new Promise((r,a)=>{this._parent._getSet(this._progress).then(s=>{const i=s._known;let l=i.length-1;if("GETPAGES"===i[i.length-1]&&(l-=1),this._lastId+e>l&&i.length>0&&"GETPAGES"===i[i.length-1])return void this._parent._expandPagedSet(s,this._parent._maxQueryRate(),0,0,this._progress).then(n=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(r,a)},e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)});const o=s._candidates;if(l>=this._lastId+e||0===o.length){for(let t=0;t<e;t++){const e=t+this._lastId+1;if(e>=i.length)break;n[t]=i[e]}return this._lastId+=n.length,0===n.length&&(t.hasset=!0,this._parent._mainSetInUse=null,r([])),void this._parent._getFeatureBatch(n,this._progress).then(e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)},e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)})}this._parent._refineSetBlock(s,this._parent._maxProcessingRate(),this._progress).then(()=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(r,a)},e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)})},e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)})}),!1===t.hasset&&(this._parent._mainSetInUse=t.returnpromise,t.hasset=!0),t.returnpromise}next(){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then(e=>this.next(),e=>this.next());const e={returnpromise:null,hasset:!1};return e.returnpromise=new Promise((t,n)=>{this._parent._getSet(this._progress).then(r=>{const a=r._known;this._lastId<a.length-1?"GETPAGES"===a[this._lastId+1]?this._parent._expandPagedSet(r,this._parent._maxQueryRate(),0,0,this._progress).then(t=>(e.hasset=!0,this._parent._mainSetInUse=null,this.next())).then(t,n):(this._lastId+=1,this._parent._getFeature(r,a[this._lastId],this._progress).then(n=>{e.hasset=!0,this._parent._mainSetInUse=null,t(n)},t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)})):r._candidates.length>0?this._parent._refineSetBlock(r,this._parent._maxProcessingRate(),this._progress).then(()=>{e.hasset=!0,this._parent._mainSetInUse=null,this.next().then(t,n)},t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)}):(e.hasset=!0,this._parent._mainSetInUse=null,t(null))},t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)})}),!1===e.hasset&&(this._parent._mainSetInUse=e.returnpromise,e.hasset=!0),e.returnpromise}async count(){if(-1!==this._parent._totalCount)return this._parent._totalCount;const e=await this._parent._getSet(this._progress),t=await this._refineAllSets(e);return this._parent._totalCount=t._known.length,this._parent._totalCount}async _refineAllSets(e){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,1,this._progress),this._refineAllSets(e);if(e._candidates.length>0){if("GETPAGES"===e._known[e._candidates.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,2,this._progress),this._refineAllSets(e);const t=await this._parent._refineSetBlock(e,this._parent._maxProcessingRate(),this._progress);return t._candidates.length>0?this._refineAllSets(t):t}return e}}var l=n(89169),o=n(33325),u=n(50145),c=n(71163),h=n(74887),d=n(88368),p=n(16930),_=n(65864),f=n(95466);class g{constructor(e){this.recentlyUsedQueries=null,this.featureSetQueryInterceptor=null,this._idstates=[],this._parent=null,this._wset=null,this._mainSetInUse=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=7,this._databaseTypeProbed=null,this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._featureCache=Object.create(null),this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1,this._transparent=!1,this.loaded=!1,this._loadPromise=null,this._fieldsIndex=null,this.fsetInfo=null,e?.lrucache&&(this.recentlyUsedQueries=e.lrucache),e?.interceptor&&(this.featureSetQueryInterceptor=e.interceptor)}optimisePagingFeatureQueries(e){this._parent&&this._parent.optimisePagingFeatureQueries(e)}_hasMemorySource(){return!0}static{this._featuresetFunctions={}}prop(e,t){return void 0===t?this[e]:(void 0!==this[e]&&(this[e]=t),this)}end(){return null!==this._parent&&!0===this._parent._transparent?this._parent.end():this._parent}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return!0===this._parent?.loaded?(this._initialiseFeatureSet(),this):(await(this._parent?.load()),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes):(this.fields=[],this.typeIdField="",this.subtypeField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new p.A({wkid:4326}),this.geometryType=o.ik.point)}getField(e,t){let n;return(t=t||this.fields)&&(e=e.toLowerCase(),t.some(t=>(t&&t.name.toLowerCase()===e&&(n=t),!!n))),n}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=f.A.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}_checkCancelled(e){if(null!=e&&e.aborted)throw new a.d("Cancelled")}nativeCapabilities(){return this._parent.nativeCapabilities()}async _canDoAggregates(e,t,n,r,a){return null!==this._parent&&this._parent._canDoAggregates(e,t,n,r,a)}async _getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l){if(null===this._parent)throw new a.d("NeverReach");return this._parent._getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l)}async _getAgregagtePhysicalPage(e,t,n){if(null===this._parent)throw new a.d("NeverReach");return this._parent._getAgregagtePhysicalPage(e,t,n)}async databaseType(){if(7===this._databaseType){if(null!==r.A.applicationCache){const e=r.A.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==r.A.applicationCache&&r.A.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==r.A.applicationCache&&r.A.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{thetype:2,testwhere:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{thetype:3,testwhere:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{thetype:1,testwhere:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e)if(!0===await this._runDatabaseProbe(t.testwhere))return t.thetype;return 1}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new a.d("NotImplemented")}isTable(){return this._parent?.isTable()??!1}_featureFromCache(e){if(void 0!==this._featureCache[e])return this._featureCache[e]}_isInFeatureSet(e){return 2}_getSet(e){throw new a.d("NotImplemented")}async _getFeature(e,t,n){if(this._checkCancelled(n),void 0!==this._featureFromCache(t))return this._featureFromCache(t);if(await this._getFeatures(e,t,this._maxProcessingRate(),n),this._checkCancelled(n),void 0!==this._featureFromCache(t))return this._featureFromCache(t);throw new a.d("MissingFeatures")}async _getFeatureBatch(e,t){this._checkCancelled(t);const n=new l.A([],e,!1,null),r=[];await this._getFeatures(n,-1,e.length,t),this._checkCancelled(t);for(const t of e)void 0!==this._featureFromCache(t)&&r.push(this._featureFromCache(t));return r}async _getFeatures(e,t,n,r){return"success"}_getFilteredSet(e,t,n,r,s){throw new a.d("NotImplemented")}async _refineSetBlock(e,t,n){if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQueryRate()))return await this._expandPagedSet(e,this._maxQueryRate(),0,0,n),this._refineSetBlock(e,t,n);this._checkCancelled(n);const r=e._candidates.length;this._refineKnowns(e,t);let a=r-e._candidates.length;if(0===e._candidates.length)return e;if(a>=t)return e;if(await this._refineIfParentKnown(e,t-a,n),this._checkCancelled(n),this._refineKnowns(e,t-a),a=r-e._candidates.length,a<t&&e._candidates.length>0){const r=t-a,s=this._prepareFetchAndRefineSet(e._candidates);return await this._fetchAndRefineFeatures(s,s.length>r?r:e._candidates.length,n),this._checkCancelled(n),this._refineKnowns(e,t-a),e}return e}_fetchAndRefineFeatures(e,t,n){return null}_prepareFetchAndRefineSet(e){const t=[];for(let n=0;n<e.length;n++)this._isPhysicalFeature(e[n])&&t.push(e[n]);return t}_isPhysicalFeature(e){return null===this._parent||this._parent._isPhysicalFeature(e)}_refineKnowns(e,t){let n=0,r=null;const a=[];t=this._maxQueryRate();for(let s=0;s<e._candidates.length&&"GETPAGES"!==e._candidates[s];s++){let i=!1;const l=this._candidateIdTransform(e._candidates[s]);l!==e._candidates[s]&&(i=!0);const o=this._isInFeatureSet(l);if(0===o)!0===i?e._known.includes(l)||(e._known.push(l),n+=1):(e._known.push(e._candidates[s]),n+=1),null===r?r={start:s,end:s}:r.end===s-1?r.end=s:(a.push(r),r={start:s,end:s});else if(1===o)null===r?r={start:s,end:s}:r.end===s-1?r.end=s:(a.push(r),r={start:s,end:s}),n+=1;else if(2===o&&(n+=1,!0===e._ordered))break;if(n>=t)break}null!==r&&a.push(r);for(let t=a.length-1;t>=0;t--)e._candidates.splice(a[t].start,a[t].end-a[t].start+1)}_refineIfParentKnown(e,t,n){const r=new l.A([],[],e._ordered,null);return r._candidates=e._candidates.slice(),this._parent._refineSetBlock(r,t,n)}_candidateIdTransform(e){return this._parent._candidateIdTransform(e)}_checkIfNeedToExpandKnownPage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let r=e._lastFetchedIndex;r<e._known.length;r++){if("GETPAGES"===e._known[r])return!0;if(void 0===this._featureCache[e._known[r]]&&(n+=1,n>=t))break}return!1}_checkIfNeedToExpandCandidatePage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let r=0;r<e._candidates.length;r++){if("GETPAGES"===e._candidates[r])return!0;if(n+=1,n>=t)break}return!1}async _expandPagedSet(e,t,n,r,s){if(null===this._parent)throw new a.d("NotImplemented");return this._parent._expandPagedSet(e,t,n,r,s)}async _expandPagedSetFeatureSet(e,t,n,r,a){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1]&&(r=1),0===r&&e._candidates.length>0&&"GETPAGES"===e._candidates[e._candidates.length-1]&&(r=2),0===r)return"finished";const s=await this._getPage(e,r,a);return n+s<t?this._expandPagedSet(e,t,n+s,0,a):"success"}async _getPage(e,t,n){const r=1===t?e._known:e._candidates;if(e.pagesDefinition.internal.set.length>e.pagesDefinition.resultOffset||!0===e.pagesDefinition.internal.fullyResolved){r.length=r.length-1;let t=0;for(let n=0;n<e.pagesDefinition.resultRecordCount&&!(e.pagesDefinition.resultOffset+n>=e.pagesDefinition.internal.set.length);n++)r[r.length]=e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset+n],t++;e.pagesDefinition.resultOffset+=t;let n=!1;return!0===e.pagesDefinition.internal.fullyResolved&&e.pagesDefinition.internal.set.length<=e.pagesDefinition.resultOffset&&(n=!0),!1===n&&r.push("GETPAGES"),t}return await this._getPhysicalPage(e,t,n),this._getPage(e,t,n)}_getPhysicalPage(e,t,n){return null}_clonePageDefinition(e){return null===this._parent?null:this._parent._clonePageDefinition(e)}_first(e){return this.iterator(e).next()}first(e){return this._first(e)}async calculateStatistic(e,t,n,r){await this._ensureLoaded();let a=await this._stat(e,t,"",null,null,n,r);return!1===a.calculated&&(a=await this._manualStat(e,t,n,r)),a.result}async _manualStat(e,t,n,r){let a=null;switch(e.toLowerCase()){case"count":return a=await(0,u.U9)(this,r),{calculated:!0,result:a};case"distinct":return a=await(0,u.dM)(this,t,n,r),{calculated:!0,result:a};case"avg":case"mean":return a=await(0,u.i2)(this,t,r),{calculated:!0,result:a};case"stdev":return a=await(0,u.b$)(this,t,r),{calculated:!0,result:a};case"variance":return a=await(0,u.GV)(this,t,r),{calculated:!0,result:a};case"sum":return a=await(0,u.cz)(this,t,r),{calculated:!0,result:a};case"min":return a=await(0,u.jk)(this,t,r),{calculated:!0,result:a};case"max":return a=await(0,u.T9)(this,t,r),{calculated:!0,result:a};default:return{calculated:!0,result:0}}}async _stat(e,t,n,r,a,s,i){const l=await this._parent._stat(e,t,n,r,a,s,i);return!1===l.calculated?null===a&&""===n&&null===r?this._manualStat(e,t,s,i):{calculated:!1}:l}_unionAllGeomSelf(e){const t=this.iterator(this._defaultTracker(e)),n=[];return new Promise((e,r)=>{this._unionShapeInBatches(n,t,e,r)})}_unionAllGeom(e){return new Promise((t,n)=>{const r=this.iterator(this._defaultTracker(e));this._unionShapeInBatches([],r,t,n)})}_unionShapeInBatches(e,t,n,r){t.next().then(a=>{try{null!==a&&null!==a.geometry&&e.push(a.geometry),e.length>30||null===a&&e.length>1?(0,c.C)("union",[e.map(e=>e.toJSON())]).then(s=>{try{null===a?n(s):(e=[(0,_.rS)(s)],this._unionShapeInBatches(e,t,n,r))}catch(e){r(e)}},r):null===a?1===e.length?n(e[0]):n(null):this._unionShapeInBatches(e,t,n,r)}catch(e){r(e)}},r)}iterator(e){return new i(this,e)}intersection(e,t=!1){return g._featuresetFunctions.intersection.bind(this)(e,t)}difference(e,t=!1,n=!0){return g._featuresetFunctions.difference.bind(this)(e,t,n)}symmetricDifference(e,t=!1,n=!0){return g._featuresetFunctions.symmetricDifference.bind(this)(e,t,n)}morphShape(e,t,n="unknown",r=null){return g._featuresetFunctions.morphShape.bind(this)(e,t,n,r)}morphShapeAndAttributes(e,t,n="unknown"){return g._featuresetFunctions.morphShapeAndAttributes.bind(this)(e,t,n)}union(e,t=!1){return g._featuresetFunctions.union.bind(this)(e,t)}intersects(e){return g._featuresetFunctions.intersects.bind(this)(e)}envelopeIntersects(e){return g._featuresetFunctions.envelopeIntersects.bind(this)(e)}contains(e){return g._featuresetFunctions.contains.bind(this)(e)}overlaps(e){return g._featuresetFunctions.overlaps.bind(this)(e)}relate(e,t){return g._featuresetFunctions.relate.bind(this)(e,t)}within(e){return g._featuresetFunctions.within.bind(this)(e)}touches(e){return g._featuresetFunctions.touches.bind(this)(e)}top(e){return g._featuresetFunctions.top.bind(this)(e)}crosses(e){return g._featuresetFunctions.crosses.bind(this)(e)}buffer(e,t,n,r=!0){return g._featuresetFunctions.buffer.bind(this)(e,t,n,r)}filter(e,t=null){return g._featuresetFunctions.filter.bind(this)(e,t)}orderBy(e){return g._featuresetFunctions.orderBy.bind(this)(e)}dissolve(e,t){return g._featuresetFunctions.dissolve.bind(this)(e,t)}groupby(e,t){return g._featuresetFunctions.groupby.bind(this)(e,t)}reduce(e,t=null,n){return new Promise((r,a)=>{this._reduceImpl(this.iterator(this._defaultTracker(n)),e,t,0,r,a,0)})}_reduceImpl(e,t,n,r,a,s,i){try{if(++i>1e3)return void setTimeout(()=>{i=0,this._reduceImpl(e,t,n,r,a,s,i)});e.next().then(l=>{try{if(null===l)a(n);else{const o=t(n,l,r,this);(0,h.$X)(o)?o.then(n=>{this._reduceImpl(e,t,n,r+1,a,s,i)},s):this._reduceImpl(e,t,o,r+1,a,s,i)}}catch(e){s(e)}},s)}catch(e){s(e)}}removeField(e){return g._featuresetFunctions.removeField.bind(this)(e)}addField(e,t,n=null){return g._featuresetFunctions.addField.bind(this)(e,t,n)}async sumArea(e,t,n){const r=this.iterator(n);let a,s=0;for(;null!=(a=await r.next());)null!=a.geometry&&(s+=null!=t?await(0,c.C)("geodeticArea",[a.geometry.toJSON(),e,t]):await(0,c.C)("area",[a.geometry.toJSON(),e]));return s}async sumLength(e,t,n){const r=this.iterator(n);let a,s=0;for(;null!=(a=await r.next());)null!=a.geometry&&(s+=null!=t?await(0,c.C)("geodeticLength",[a.geometry.toJSON(),e,t]):await(0,c.C)("length",[a.geometry.toJSON(),e]));return s}async distinct(e,t=1e3,n=null,r){await this.load();const a=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(a,n),this.calculateStatistic("distinct",a,t,this._defaultTracker(r))}async min(e,t=null,n){await this.load();const r=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(r,t),this.calculateStatistic("min",r,-1,this._defaultTracker(n))}async max(e,t=null,n){await this.load();const r=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(r,t),this.calculateStatistic("max",r,-1,this._defaultTracker(n))}async avg(e,t=null,n){await this.load();const r=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(r,t),this.calculateStatistic("avg",r,-1,this._defaultTracker(n))}async sum(e,t=null,n){await this.load();const r=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(r,t),this.calculateStatistic("sum",r,-1,this._defaultTracker(n))}async stdev(e,t=null,n){await this.load();const r=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(r,t),this.calculateStatistic("stdev",r,-1,this._defaultTracker(n))}async variance(e,t=null,n){await this.load();const r=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(r,t),this.calculateStatistic("variance",r,-1,this._defaultTracker(n))}async count(e){return await this.load(),this.calculateStatistic("count",d.A.create("1",{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),-1,this._defaultTracker(e))}_defaultTracker(e){return e??{aborted:!1}}forEach(e,t){return new Promise((n,r)=>{this._forEachImpl(this.iterator(this._defaultTracker(t)),e,this,n,r,0)})}_forEachImpl(e,t,n,r,a,s){try{if(++s>1e3)return void setTimeout(()=>{s=0,this._forEachImpl(e,t,n,r,a,s)},0);e.next().then(i=>{try{if(null===i)r(n);else{const l=t(i);null==l?this._forEachImpl(e,t,n,r,a,s):(0,h.$X)(l)?l.then(()=>{try{this._forEachImpl(e,t,n,r,a,s)}catch(e){a(e)}},a):this._forEachImpl(e,t,n,r,a,s)}}catch(e){a(e)}},a)}catch(e){a(e)}}convertToJSON(e){const t={layerDefinition:{geometryType:this.geometryType,fields:[]},featureSet:{features:[],geometryType:this.geometryType}};for(let e=0;e<this.fields.length;e++)t.layerDefinition.fields.push((0,o.nE)(this.fields[e]));return this.reduce((e,n)=>{const r={geometry:n.geometry?.toJSON(),attributes:{}};for(const e in n.attributes)r.attributes[e]=n.attributes[e];return t.featureSet.features.push(r),1},0,e).then(()=>t)}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,n,r,a){return this._parent.queryAttachments(e,t,n,r,a)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetaData(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map(e=>({name:e.name,code:e.code})):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map(e=>({name:e.name,code:e.id})):[]}:null}relationshipMetaData(){return this._parent.relationshipMetaData()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push((0,o.nE)(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===o.yT[this.geometryType]?"esriGeometryNull":o.yT[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];await this.reduce((t,n)=>{const r={geometry:n.geometry?n.geometry.toJSON():null,attributes:n.attributes};return null!==r.geometry&&r.geometry.spatialReference&&delete r.geometry.spatialReference,e.push(r),1},0,t);const n=this.schema();return n.features=e,n.spatialReference=this.spatialReference.toJSON(),JSON.stringify(n)}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return null!==this._parent?this._parent.getRootFeatureSet():this}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const n=[];await this.reduce((e,r)=>{const a={geometry:r.geometry?!0===t?.keepGeometryType?r.geometry:r.geometry.toJSON():null,attributes:r.attributes};return null!==a.geometry&&a.geometry.spatialReference&&!0!==t?.keepGeometryType&&delete a.geometry.spatialReference,n.push(a),1},0,e);const r=this.schema();return r.features=n,r.spatialReference=!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON(),r}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){if(this.datesInUnknownTimezone)return"unknown";const e=this.dateFieldsTimeZone??"UTC";return""===e?"UTC":e}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}set featureSetInfo(e){this.fsetInfo=e}async getFeatureSetInfo(){return this.fsetInfo??await(this._parent?.getFeatureSetInfo())??null}}function m(e,t){if(null!==t){const n={};for(const e in t)n[e.toLowerCase()]=t[e];e.parameters=n}}},23732:(e,t,n)=>{n.d(t,{A:()=>r});class r{static{this.applicationCache=null}constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}},50145:(e,t,n)=>{n.d(t,{Dp:()=>c,GV:()=>_,T9:()=>d,U9:()=>m,b$:()=>f,cz:()=>g,dM:()=>S,i2:()=>p,jk:()=>h});var r=n(87449),a=(n(33325),n(80609)),s=n(44729),i=n(55612),l=n(15032);function o(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function u(e){const t=o(e);let n=0;for(let r=0;r<e.length;r++)n+=(t-e[r])**2;return n/(e.length-1)}function c(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return""}async function h(e,t,n){const r=await y(e,t,n);return 0===r.length?null:Math.min.apply(Math,r)}async function d(e,t,n){const r=await y(e,t,n);return 0===r.length?null:Math.max.apply(Math,r)}async function p(e,t,n){let r="";t&&!(0,a.DA)(t)&&(r=(0,a.IY)(t,e.fields));const s=await y(e,t,n);if(0===s.length)return null;const i=o(s);return null===i?i:"integer"===r?function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}(i):i}async function _(e,t,n){const r=await y(e,t,n);return 0===r.length?null:u(r)}async function f(e,t,n){const r=await y(e,t,n);return 0===r.length?null:Math.sqrt(u(r))}async function g(e,t,n){const r=await y(e,t,n);return 0===r.length?null:function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}(r)}async function m(e,t){return e.iterator(t).count()}async function y(e,t,n){const a=e.iterator(n),o=[],u={ticker:0};let c=await a.next();for(;null!==c;){if(u.ticker++,n.aborted)throw new r.d("Cancelled");u.ticker%100==0&&(u.ticker=0,await new Promise(e=>{setTimeout(e,0)}));const e=t?.calculateValue(c);null===e||(o[o.length]=e instanceof s.n||e instanceof l.k?e.toNumber():e instanceof i.g?e.toMilliseconds():e),c=await a.next()}return o}async function S(e,t,n=1e3,a=null){const o=e.iterator(a),u=[],c={},h={ticker:0};let d=await o.next();for(;null!==d;){if(h.ticker++,a?.aborted)throw new r.d("Cancelled");h.ticker%100==0&&(h.ticker=0,await new Promise(e=>{setTimeout(e,0)}));const e=t?.calculateValue(d);let p=e;if(e instanceof s.n?p="!!DATEONLY!!-"+e.toString():e instanceof i.g?p="!!TSOFFSETONLY!!-"+e.toString():e instanceof l.k?p="!!TIMEONLY!!-"+e.toString():e instanceof Date&&(p="!!DATE!!-"+e.toString()),null!=e&&void 0===c[p]&&(u.push(e),c[p]=1),u.length>=n&&-1!==n)return u;d=await o.next()}return u}},54784:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(78502),a=n(85978),s=n(87449),i=n(11221),l=n(89169),o=n(71163);class u extends i.A{constructor(e){super(e),this._relation="",this._relationString="",this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._relationString=e.relationString,this._parent=e.parentfeatureset,this._maxProcessing=40,this._relation=e.relation,this._relationGeom=e.relationGeom}async _getSet(e){if(null===this._wset){await this._ensureLoaded();const t=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,null,null,e);return this._checkCancelled(e),this._wset=new l.A(t._candidates.slice(),t._known.slice(),t._ordered,this._clonePageDefinition(t.pagesDefinition)),this._wset}return this._wset}_isInFeatureSet(e){let t=this._parent._isInFeatureSet(e);return 1===t?t:(t=this._idstates[e],void 0===t?2:t)}_getFeature(e,t,n){return this._parent._getFeature(e,t,n)}_getFeatures(e,t,n,r){return this._parent._getFeatures(e,t,n,r)}_featureFromCache(e){return this._parent._featureFromCache(e)}async executeSpatialRelationTest(e){if(null==e.geometry)return!1;switch(this._relation){case"esriSpatialRelEnvelopeIntersects":{const t=(0,r.Yc)(this._relationGeom),n=(0,r.Yc)(e.geometry);return null!=t&&null!=n&&(0,o.C)("intersects",[t.toJSON(),n.toJSON()])}case"esriSpatialRelIntersects":return(0,o.C)("intersects",[this._relationGeom.toJSON(),e.geometry.toJSON()]);case"esriSpatialRelContains":return(0,o.C)("contains",[this._relationGeom.toJSON(),e.geometry.toJSON()]);case"esriSpatialRelOverlaps":return(0,o.C)("overlaps",[this._relationGeom.toJSON(),e.geometry.toJSON()]);case"esriSpatialRelWithin":return(0,o.C)("within",[this._relationGeom.toJSON(),e.geometry.toJSON()]);case"esriSpatialRelTouches":return(0,o.C)("touches",[this._relationGeom.toJSON(),e.geometry.toJSON()]);case"esriSpatialRelCrosses":return(0,o.C)("crosses",[this._relationGeom.toJSON(),e.geometry.toJSON()]);case"esriSpatialRelRelation":return(0,o.C)("relate",[this._relationGeom.toJSON(),e.geometry.toJSON(),this._relationString??""])}}async _fetchAndRefineFeatures(e,t,n){const r=new l.A([],e,!1,null),a=Math.min(t,e.length);await(this._parent?._getFeatures(r,-1,a,n)),this._checkCancelled(n);const s=[];for(let t=0;t<a;t++){const n=this._parent._featureFromCache(e[t]);s.push(await this.executeSpatialRelationTest(n))}for(let n=0;n<t;n++)!0===s[n]?this._idstates[e[n]]=0:this._idstates[e[n]]=1;return"success"}async _getFilteredSet(e,t,n,r,a){await this._ensureLoaded();const s=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,n,r,a);let i;return this._checkCancelled(a),i=null!==t?new l.A(s._candidates.slice().concat(s._known.slice()),[],s._ordered,this._clonePageDefinition(s.pagesDefinition)):new l.A(s._candidates.slice(),s._known.slice(),s._ordered,this._clonePageDefinition(s.pagesDefinition)),i}async _stat(e,t,n,r,a,s,i){if(""!==n)return{calculated:!1};const l=await this._parent._stat(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a,s,i);return!1===l.calculated?null===a&&""===n&&null===r?this._manualStat(e,t,s,i):{calculated:!1}:l}async _canDoAggregates(e,t,n,r,a){return""===n&&null===r&&null!==this._parent&&this._parent._canDoAggregates(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a)}async _getAggregatePagesDataSourceDefinition(e,t,n,r,a,i,l){if(null===this._parent)throw new s.d("NeverReach");return this._parent._getAggregatePagesDataSourceDefinition(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a,i,l)}static registerAction(){i.A._featuresetFunctions.intersects=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelIntersects",relationGeom:e})},i.A._featuresetFunctions.envelopeIntersects=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelEnvelopeIntersects",relationGeom:e})},i.A._featuresetFunctions.contains=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelContains",relationGeom:e})},i.A._featuresetFunctions.overlaps=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelOverlaps",relationGeom:e})},i.A._featuresetFunctions.within=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelWithin",relationGeom:e})},i.A._featuresetFunctions.touches=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelTouches",relationGeom:e})},i.A._featuresetFunctions.crosses=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelCrosses",relationGeom:e})},i.A._featuresetFunctions.relate=function(e,t){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelRelation",relationGeom:e,relationString:t})}}getFieldsIndex(){return this._parent.getFieldsIndex()}}},71163:(e,t,n)=>{n.d(t,{C:()=>o});var r=n(29953);let a,s,i=!1;function l(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(e=>{s=e,i=!0,a=void 0})}async function o(e,t){return i?s.apply("invokeGeometryOp",[e,t]):(await l(),o(e,t))}},80609:(e,t,n)=>{n.d(t,{C6:()=>w,DA:()=>E,F1:()=>y,F6:()=>f,IY:()=>T,Ju:()=>A,Kb:()=>p,Mi:()=>c,Nf:()=>m,R8:()=>g,YY:()=>u,bD:()=>h,bm:()=>S,kg:()=>d,oj:()=>R});var r=n(66131),a=n(33325),s=n(1262),i=n(15032),l=n(88368),o=n(28097);function u(e,t){return _(e?.parseTree,t,e?.parameters)}function c(e,t,n){return _(e,t,n)}function h(e,t,n,r){const a=_(e.parseTree,0,e.parameters,t,n);return l.A.create(a,{fieldsIndex:r,timeZone:e.timeZone,currentUser:e.currentUser})}function d(e,t,n="AND"){return l.A.create("(("+u(e,0)+")"+n+"("+u(t,0)+"))",{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser})}function p(e){return!0===e.delimited?`"${e.column.split('"').join('""')}"`:e.column}function _(e,t,n,r=null,i=null){let l,o,u,c;switch(e.type){case"interval":return R(_(e.value,t,n,r,i),e.qualifier,e.op);case"case-expression":{let a=" CASE ";"simple"===e.format&&(a+=_(e.operand,t,n,r,i));for(let s=0;s<e.clauses.length;s++)a+=" WHEN "+_(e.clauses[s].operand,t,n,r,i)+" THEN "+_(e.clauses[s].value,t,n,r,i);return null!==e.else&&(a+=" ELSE "+_(e.else,t,n,r,i)),a+=" END ",a}case"parameter":{const r=n[e.value.toLowerCase()];if("string"==typeof r)return"'"+n[e.value.toLowerCase()].toString().replaceAll("'","''")+"'";if((0,a.$P)(r))return S(r,t);if((0,a.Lk)(r))return S(r,t);if((0,a.eg)(r))return y(r,t);if((0,a.rX)(r))return g(r,t);if((0,a.f0)(r))return m(r,t);if(Array.isArray(r)){const e=[];for(let n=0;n<r.length;n++)"string"==typeof r[n]?e.push("'"+r[n].toString().replaceAll("'","''")+"'"):(0,a.$P)(r[n])||(0,a.Lk)(r[n])?e.push(S(r[n],t)):(0,a.eg)(r[n])?e.push(y(r[n],t)):(0,a.rX)(r[n])?e.push(g(r[n],t)):(0,a.f0)(r[n])?e.push(m(r[n],t)):e.push(r[n].toString());return e}return r.toString()}case"expression-list":o=[];for(const a of e.value)o.push(_(a,t,n,r,i));return o;case"unary-expression":return" ( NOT "+_(e.expr,t,n,r,i)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+_(e.left,t,n,r,i)+" AND "+_(e.right,t,n,r,i)+") ";case"OR":return" ("+_(e.left,t,n,r,i)+" OR "+_(e.right,t,n,r,i)+") ";case"IS":if("null"!==e.right.type)throw new s.L("UnsupportedIsRhs");return" ("+_(e.left,t,n,r,i)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new s.L("UnsupportedIsRhs");return" ("+_(e.left,t,n,r,i)+" IS NOT NULL )";case"IN":return l=[],"expression-list"===e.right.type?(l=_(e.right,t,n,r,i)," ("+_(e.left,t,n,r,i)+" IN ("+l.join(",")+")) "):(c=_(e.right,t,n,r,i),Array.isArray(c)?" ("+_(e.left,t,n,r,i)+" IN ("+c.join(",")+")) ":" ("+_(e.left,t,n,r,i)+" IN ("+c+")) ");case"NOT IN":return l=[],"expression-list"===e.right.type?(l=_(e.right,t,n,r,i)," ("+_(e.left,t,n,r,i)+" NOT IN ("+l.join(",")+")) "):(c=_(e.right,t,n,r,i),Array.isArray(c)?" ("+_(e.left,t,n,r,i)+" NOT IN ("+c.join(",")+")) ":" ("+_(e.left,t,n,r,i)+" NOT IN ("+c+")) ");case"BETWEEN":return u=_(e.right,t,n,r,i)," ("+_(e.left,t,n,r,i)+" BETWEEN "+u[0]+" AND "+u[1]+" ) ";case"NOTBETWEEN":return u=_(e.right,t,n,r,i)," ("+_(e.left,t,n,r,i)+" NOT BETWEEN "+u[0]+" AND "+u[1]+" ) ";case"LIKE":return""!==e.escape?" ("+_(e.left,t,n,r,i)+" LIKE "+_(e.right,t,n,r,i)+" ESCAPE '"+e.escape+"') ":" ("+_(e.left,t,n,r,i)+" LIKE "+_(e.right,t,n,r,i)+") ";case"NOT LIKE":return""!==e.escape?" ("+_(e.left,t,n,r,i)+" NOT LIKE "+_(e.right,t,n,r,i)+" ESCAPE '"+e.escape+"') ":" ("+_(e.left,t,n,r,i)+" NOT LIKE "+_(e.right,t,n,r,i)+") ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+_(e.left,t,n,r,i)+" "+e.operator+" "+_(e.right,t,n,r,i)+") ";case"||":return" ("+_(e.left,t,n,r,i)+" "+(2===t?"+":e.operator)+" "+_(e.right,t,n,r,i)+") "}throw new s.L("UnsupportedOperator",{operator:e.operator});case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return w(e.mode,t);case"current-user":return"CURRENT_USER";case"column-reference":return r&&r.toLowerCase()===e.column.toLowerCase()?"("+i+")":p(e);case"data-type":return e.value;case"function":{const a=_(e.args,t,n,r,i);return f(e.name,a,t)}}throw new s.L("UnsupportedSyntax",{node:e.type})}function f(e,t,n){switch(e.toLowerCase().trim()){case"cos":case"sin":case"tan":case"cosh":case"tanh":case"sinh":case"acos":case"asin":case"atan":case"floor":case"log10":case"log":case"abs":if(1!==t.length)throw new s.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case"ceiling":case"ceil":if(1!==t.length)throw new s.L("InvalidFunctionParameters",{function:"ceiling"});return"CEILING("+t[0]+")";case"mod":case"power":case"nullif":if(2!==t.length)throw new s.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new s.L("InvalidFunctionParameters",{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new s.L("InvalidFunctionParameters",{function:"truncate"});return 2===n?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new s.L("InvalidFunctionParameters",{function:"char_length"});switch(n){case 2:return"LEN("+t[0]+")";case 3:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"coalesce":case"concat":{if(t.length<1)throw new s.L("InvalidFunctionParameters",{function:e.toLowerCase()});let n=e.toUpperCase().trim()+"(";for(let e=0;e<t.length;e++)0!==e&&(n+=","),n+=t[e];return n+=")",n}case"lower":case"lcase":if(1!==t.length)throw new s.L("InvalidFunctionParameters",{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new s.L("InvalidFunctionParameters",{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(n){case 3:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case 2:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replaceAll("'","")+" FROM "+t[1]+")";case"cast":{let e="";switch(n){case 3:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 4:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE PRECISION";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 2:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="DATETIME";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`}}}throw new s.L("InvalidFunctionParameters",{function:e})}function g(e,t){const n=e.toDateTime(),r=0===n.hour&&0===n.minute&&0===n.second&&0===n.millisecond;switch(t){case 6:case 0:case 1:return r?`date '${n.toFormat("yyyy-LL-dd")}'`:`timestamp '${n.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case 3:return r?`TO_DATE('${n.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${n.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case 2:return`'${n.toFormat(r?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case 5:return`#${n.toFormat(r?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case 4:return`TIMESTAMP '${n.toFormat(r?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`timestamp '${n.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function m(e,t){switch(t){case 6:case 0:case 1:default:return e.toSQLWithKeyword();case 3:return`TO_DATE('${e.toFormat("Y-MM-DD")}'`;case 2:return`'${e.toFormat("Y-MM-DD")}'`;case 5:return`#${e.toFormat("Y-MM-DD")}#`;case 4:return`TIMESTAMP '${e.toFormat("Y-MM-DD")}'`}}function y(e,t){switch(e instanceof i.k&&(e=e.toStorageString()),t){case 3:return`TO_DATE('${e}', 'HH24:MI:SS')`;case 2:return`'${e}'`;default:return`time '${e}'`}}function S(e,t){return g(r.lY.dateTimeToArcadeDate((0,a.Lk)(e)?e:o.c9.fromJSDate(e)),t)}function w(e,t){switch(t){case 6:case 0:case 1:case 3:case 5:default:return"date"===e?"CURRENT_DATE":"time"===e?"CURRENT_TIME":"CURRENT_TIMESTAMP";case 2:return"date"===e?"CAST(GETDATE() AS DATE)":"time"===e?"CAST(GETDATE() AS TIME)":"GETDATE()";case 4:return"date"===e?"CURRENT_DATE":"time"===e?"LOCALTIME":"CURRENT_TIMESTAMP"}}function T(e,t,n={}){const r={},a={},s={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeBigInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeTimeOnly:"time-only",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimestampOffset:"timestamp-offset",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"guid",oid:"integer",long:"integer","small-integer":"integer",integer:"integer","big-integer":"integer",single:"double","time-only":"time-only","date-only":"date-only","timestamp-offset":"timestemp-offset",double:"double",date:"date",guid:"guid","global-id":"guid",string:"string"};for(const e of t){const t=e.type?s[e.type]:void 0;r[e.name.toLowerCase()]=void 0===t?"":t}for(const e in n){const t=s[n[e]];a[e.toLowerCase()]=void 0===t?"":t}switch(I(r,e.parseTree,e.parameters,a)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"date-only":return"date-only";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";case"string":return"string";case"global-id":case"guid":return"guid"}return""}function I(e,t,n,r){let i;switch(t.type){case"interval":return"integer";case"case-expression":{const a=[];if("simple"===t.format){for(let s=0;s<t.clauses.length;s++)a.push(I(e,t.clauses[s].value,n,r));null!==t.else&&a.push(I(e,t.else,n,r))}else{for(let s=0;s<t.clauses.length;s++)a.push(I(e,t.clauses[s].value,n,r));null!==t.else&&a.push(I(e,t.else,n,r))}return b(a)}case"parameter":{const e=r[t.value.toLowerCase()];if(void 0===e&&n){const e=n[t.value.toLowerCase()];if(void 0===e)return"";if(null===e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if((0,a.$P)(e))return"date";if((0,a.rX)(e))return"date";if((0,a.f0)(e))return"date-only";if((0,a.eg)(e))return"time-only";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":{const a=[];for(const s of t.value)a.push(I(e,s,n,r));return a}case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new s.L("UnsupportedIsRhs");return"boolean";case"*":case"-":case"+":case"/":return b([I(e,t.left,n,r),I(e,t.right,n,r)]);case"||":return"string";default:throw new s.L("UnsupportedOperator",{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":return"date";case"timestamp":return t.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"current-time":return"time"===t.mode?"time-only":"date";case"current-user":return"string";case"column-reference":{const n=e[t.column.toLowerCase()];return void 0===n?"":n}case"function":switch(t.name.toLowerCase()){case"cast":switch(t.args?.value[1]?.value.type??""){case"integer":case"smallint":return"integer";case"real":case"float":return"double";case"date":case"timestamp":return!0===t.args?.value[1]?.value?.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"varchar":return"string";default:return""}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":if(i=I(e,t.args,n,r),Array.isArray(i)){if(i.length<=0)return"double";i=i[0]}return i;case"sign":return"integer";case"ceiling":case"floor":case"abs":return i=I(e,t.args,n,r),Array.isArray(i)&&(i=b(i)),"integer"===i||"double"===i?i:"double";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"truncate":return"double";case"nullif":case"coalesce":return i=I(e,t.args,n,r),Array.isArray(i)?i.length>0?i[0]:"":i}return""}throw new s.L("UnsupportedSyntax",{node:t.type})}const F={boolean:1,string:2,integer:3,double:4,date:5};function b(e){if(e){let t="";for(const n of e)""!==n&&(t=""===t||F[t]<F[n]?n:t);return t}return""}function A(e,t){return D(e.parseTree,t)}function E(e){return"column-reference"===e?.parseTree.type}function D(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return D(e.operand,t)||D(e.value,t);case"case-expression":for(const n of e.clauses)if(D(n,t))return!0;return!("simple"!==e.format||!D(e.operand,t))||!(null===e.else||!D(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"time":case"string":case"number":return!1;case"expression-list":for(const n of e.value)if(D(n,t))return!0;return!1;case"unary-expression":return D(e.expr,t);case"binary-expression":return D(e.left,t)||D(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return D(e.args,t)}return!1}function C(e){let t="";return t+=e.period.toUpperCase(),t}function R(e,t,n){let r="";return r="interval-period"===t.type?C(t):C(t.start)+" TO "+C(t.end),"INTERVAL "+n+" "+e+" "+r}},85978:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(87449),a=n(11221),s=n(89169);class i extends a.A{constructor(e){super(e),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._wset=new s.A([],[],!1,null),this._parent=e.parentfeatureset,this._databaseType=0}async _getSet(){return this._wset}optimisePagingFeatureQueries(){}_isInFeatureSet(){return 1}async _getFeature(){throw new r.d("NeverReach")}async queryAttachments(){return[]}async _getFeatures(){return"success"}_featureFromCache(){return null}async _fetchAndRefineFeatures(){throw new r.d("NeverReach")}async _getFilteredSet(){return new s.A([],[],!1,null)}_stat(e,t,n,r,a,s,i){return this._manualStat(e,t,s,i)}async _canDoAggregates(){return!1}}},87449:(e,t,n)=>{n.d(t,{d:()=>s});var r=n(799);const a={Cancelled:"Cancelled",InvalidStatResponse:"Invalid statistics response from service",InvalidRequest:"Invalid request",RequestFailed:"Request failed - {reason}",MissingFeatures:"Missing features",AggregationFieldNotFound:"Aggregation field not found",DataElementsNotFound:"Data elements not found on service",NeverReach:"Encountered unreachable logic",NotImplemented:"Not implemented"};class s extends Error{constructor(e,t){super((0,r.HC)(a[e],t)),this.declaredRootClass="esri.arcade.featureset.support.featureseterror",Error.captureStackTrace&&Error.captureStackTrace(this,s)}}},89169:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(e,t,n,r){this._lastFetchedIndex=0,this._ordered=!1,this.pagesDefinition=null,this._candidates=e,this._known=t,this._ordered=n,this.pagesDefinition=r}}}}]);