@arcgis/core 5.0.0-next.122 → 5.0.0-next.124

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 (836) hide show
  1. package/Camera.d.ts +1 -1
  2. package/Ground.d.ts +7 -7
  3. package/PopupTemplate.d.ts +6 -6
  4. package/WebScene.d.ts +1 -1
  5. package/analysis/AreaMeasurementAnalysis.d.ts +1 -1
  6. package/analysis/DirectLineMeasurementAnalysis.d.ts +1 -1
  7. package/analysis/LengthDimension.d.ts +4 -4
  8. package/analysis/ShadowCastAnalysis.d.ts +3 -3
  9. package/analysis/SliceAnalysis.d.ts +1 -1
  10. package/analysis/SlicePlane.d.ts +1 -1
  11. package/applications/Components/SketchTooltipControls.d.ts +3 -2
  12. package/applications/Components/SketchTooltipControls.js +1 -1
  13. package/assets/esri/core/t9n/Units_ar.json +1 -1
  14. package/assets/esri/core/t9n/Units_bg.json +1 -1
  15. package/assets/esri/core/t9n/Units_bs.json +1 -1
  16. package/assets/esri/core/t9n/Units_ca.json +1 -1
  17. package/assets/esri/core/t9n/Units_cs.json +1 -1
  18. package/assets/esri/core/t9n/Units_da.json +1 -1
  19. package/assets/esri/core/t9n/Units_de.json +1 -1
  20. package/assets/esri/core/t9n/Units_el.json +1 -1
  21. package/assets/esri/core/t9n/Units_es.json +1 -1
  22. package/assets/esri/core/t9n/Units_et.json +1 -1
  23. package/assets/esri/core/t9n/Units_fi.json +1 -1
  24. package/assets/esri/core/t9n/Units_fr.json +1 -1
  25. package/assets/esri/core/t9n/Units_he.json +1 -1
  26. package/assets/esri/core/t9n/Units_hr.json +1 -1
  27. package/assets/esri/core/t9n/Units_hu.json +1 -1
  28. package/assets/esri/core/t9n/Units_id.json +1 -1
  29. package/assets/esri/core/t9n/Units_it.json +1 -1
  30. package/assets/esri/core/t9n/Units_ja.json +1 -1
  31. package/assets/esri/core/t9n/Units_ko.json +1 -1
  32. package/assets/esri/core/t9n/Units_lt.json +1 -1
  33. package/assets/esri/core/t9n/Units_lv.json +1 -1
  34. package/assets/esri/core/t9n/Units_nl.json +1 -1
  35. package/assets/esri/core/t9n/Units_no.json +1 -1
  36. package/assets/esri/core/t9n/Units_pl.json +1 -1
  37. package/assets/esri/core/t9n/Units_pt-BR.json +1 -1
  38. package/assets/esri/core/t9n/Units_pt-PT.json +1 -1
  39. package/assets/esri/core/t9n/Units_ro.json +1 -1
  40. package/assets/esri/core/t9n/Units_ru.json +1 -1
  41. package/assets/esri/core/t9n/Units_sk.json +1 -1
  42. package/assets/esri/core/t9n/Units_sl.json +1 -1
  43. package/assets/esri/core/t9n/Units_sr.json +1 -1
  44. package/assets/esri/core/t9n/Units_sv.json +1 -1
  45. package/assets/esri/core/t9n/Units_th.json +1 -1
  46. package/assets/esri/core/t9n/Units_tr.json +1 -1
  47. package/assets/esri/core/t9n/Units_uk.json +1 -1
  48. package/assets/esri/core/t9n/Units_vi.json +1 -1
  49. package/assets/esri/core/t9n/Units_zh-CN.json +1 -1
  50. package/assets/esri/core/t9n/Units_zh-HK.json +1 -1
  51. package/assets/esri/core/t9n/Units_zh-TW.json +1 -1
  52. package/assets/esri/core/workers/RemoteClient.js +1 -1
  53. package/assets/esri/core/workers/chunks/0184b4c0c92c76c60ab2.js +1 -0
  54. package/assets/esri/core/workers/chunks/05d6cd51ca970705e46a.js +1 -0
  55. package/assets/esri/core/workers/chunks/{d5314786df52b6be5307.js → 0e6ffb02a929130ddb50.js} +1 -1
  56. package/assets/esri/core/workers/chunks/128cdb4a02549abc68b5.js +1 -0
  57. package/assets/esri/core/workers/chunks/{41fe4d8fe97388498f73.js → 13512a23655258fa77f4.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{d621cdd0aef6d77986f0.js → 1469e6d1d0d4e310b8f8.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{b9e90875943703486227.js → 15ba0296403dd4152b88.js} +1 -1
  60. package/assets/esri/core/workers/chunks/1701d9c50610f0b2dd38.js +1 -0
  61. package/assets/esri/core/workers/chunks/1794db88a2006711eff3.js +1 -0
  62. package/assets/esri/core/workers/chunks/{dddcae86e434d93b10c0.js → 189e22df73414a1a3989.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{63831996ad82bd3b1ca9.js → 1e29a114c1cfe21121c4.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{6b1e1fb4e9010873c171.js → 1f30558e3ad6ac68bdb8.js} +1 -1
  65. package/assets/esri/core/workers/chunks/2011da6dfc4bb89829c6.js +1 -0
  66. package/assets/esri/core/workers/chunks/22045f85e503ae0ec8f4.js +1 -0
  67. package/assets/esri/core/workers/chunks/231602adad900fc024f0.js +1 -0
  68. package/assets/esri/core/workers/chunks/{9c06b803912fcafa7f52.js → 24dd404612c35f6a3fc3.js} +1 -1
  69. package/assets/esri/core/workers/chunks/25861560a6ec1ffedfad.js +1 -0
  70. package/assets/esri/core/workers/chunks/{401af6d07c9f458ae067.js → 2c69d8bb1c950b95278d.js} +1 -1
  71. package/assets/esri/core/workers/chunks/2cd56b7ab70f908bbbd4.js +1 -0
  72. package/assets/esri/core/workers/chunks/{120a5fa9b46084cd0c45.js → 2d376f82cdf020e1fca9.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{5b3f2bad61a0d993bf16.js → 2e63e18df96e5a2461de.js} +1 -1
  74. package/assets/esri/core/workers/chunks/2e9d280f51ab43e6f102.js +1 -0
  75. package/assets/esri/core/workers/chunks/32a1ccc145c9f6091e13.js +1 -0
  76. package/assets/esri/core/workers/chunks/34691b147318b2cfdd45.js +1 -0
  77. package/assets/esri/core/workers/chunks/38124ee5119e614645c9.js +1 -0
  78. package/assets/esri/core/workers/chunks/394aa478c29599b08bf5.js +1 -0
  79. package/assets/esri/core/workers/chunks/43780090ae85b21ef3fd.js +1 -0
  80. package/assets/esri/core/workers/chunks/43c797bfc2191b51875b.js +1 -0
  81. package/assets/esri/core/workers/chunks/460a82f3e4838b13e3b4.js +1 -0
  82. package/assets/esri/core/workers/chunks/{78ce6fcb72e97d3dc087.js → 499d594dc0d282dfe777.js} +1 -1
  83. package/assets/esri/core/workers/chunks/4ad6f80488aa218b95e3.js +1 -0
  84. package/assets/esri/core/workers/chunks/4ba4aa6c75e3f8950e65.js +1 -0
  85. package/assets/esri/core/workers/chunks/{a115984b794a7f90b2c0.js → 4d45c51ff32dd75299ac.js} +1 -1
  86. package/assets/esri/core/workers/chunks/4e9863a11d09900baf30.js +1 -0
  87. package/assets/esri/core/workers/chunks/{61ce373f00a0cad113ed.js → 4f2c29168c9de0b08741.js} +1 -1
  88. package/assets/esri/core/workers/chunks/4fdc838f4c3efab6cd61.js +1 -0
  89. package/assets/esri/core/workers/chunks/5028de543cc1b8e60e65.js +1 -0
  90. package/assets/esri/core/workers/chunks/51a2da9faccf204d0817.js +1 -0
  91. package/assets/esri/core/workers/chunks/{17b39b88547968048113.js → 531c55f3b8e708ccf767.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{5789898948cc0da78b8b.js → 552e5c413828e181f89a.js} +1 -1
  93. package/assets/esri/core/workers/chunks/{ec4e2f18453e1cb68fed.js → 5f10f39835cb40179000.js} +1 -1
  94. package/assets/esri/core/workers/chunks/{7b1964255722e756eba3.js → 5f9eeab833a6c08c76c4.js} +1 -1
  95. package/assets/esri/core/workers/chunks/6321680c8070dffa3b6c.js +1 -0
  96. package/assets/esri/core/workers/chunks/65f86594c42ff82095fe.js +1 -0
  97. package/assets/esri/core/workers/chunks/677f5e444ff588ab670f.js +1 -0
  98. package/assets/esri/core/workers/chunks/6997b4d5bcc9c4755375.js +1 -0
  99. package/assets/esri/core/workers/chunks/{b79cceeee3ed46f218a0.js → 69ab42b965bccc3bad4f.js} +1 -1
  100. package/assets/esri/core/workers/chunks/{bb4c75479cfea67cf8a2.js → 6af14a0217077d9ab47f.js} +1 -1
  101. package/assets/esri/core/workers/chunks/6b02919373bd4da7ff73.js +1 -0
  102. package/assets/esri/core/workers/chunks/{672542d0435fbfd0647c.js → 6b3d8280a24f7a3aac40.js} +1 -1
  103. package/assets/esri/core/workers/chunks/6cd370c716e4fe87b684.js +1 -0
  104. package/assets/esri/core/workers/chunks/7382c9882525101eddad.js +1 -0
  105. package/assets/esri/core/workers/chunks/7477a4d08414b561d03b.js +1 -0
  106. package/assets/esri/core/workers/chunks/{da188d0e22ba1639928e.js → 75907e5d009b71ce723b.js} +1 -1
  107. package/assets/esri/core/workers/chunks/778ab9e4c3928b0d7d74.js +1 -0
  108. package/assets/esri/core/workers/chunks/{ac62411b9b4cf85a4722.js → 7a037fbfd91dd22e3bf0.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{0420fb4b3592f8a26b1f.js → 7d2b1e5402a88b6bee85.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{50661f65a9c191f528bc.js → 7ee7529fcbd0d169047c.js} +1 -1
  111. package/assets/esri/core/workers/chunks/8161deb139b24ad6c287.js +1 -0
  112. package/assets/esri/core/workers/chunks/81a45d7e9dadf678b584.js +1 -0
  113. package/assets/esri/core/workers/chunks/{82a446e8befe9d29c8f0.js → 822a115c7d718e4e3d2b.js} +1 -1
  114. package/assets/esri/core/workers/chunks/86f2ec2692363abc97d1.js +1 -0
  115. package/assets/esri/core/workers/chunks/{18b0776aef1536867ab8.js → 89274b81a2a8b7cd5c49.js} +1 -1
  116. package/assets/esri/core/workers/chunks/8c3bf66f8543cedc72ef.js +1 -0
  117. package/assets/esri/core/workers/chunks/{6789ddaa61e6d8f20d04.js → 8eea620f770576d18809.js} +1 -1
  118. package/assets/esri/core/workers/chunks/920d6330df72e2f01d19.js +1 -0
  119. package/assets/esri/core/workers/chunks/{10c4f5afe14c0addc418.js → 9332db133a0925d522fe.js} +1 -1
  120. package/assets/esri/core/workers/chunks/{bc87890d00d6dba979b2.js → 99c9f35a29f9f6c9e4ce.js} +1 -1
  121. package/assets/esri/core/workers/chunks/9dc7abca1d1eb9ba5b58.js +1 -0
  122. package/assets/esri/core/workers/chunks/9e054c264b17f04b7efa.js +1 -0
  123. package/assets/esri/core/workers/chunks/a49f1172b17c14527acf.js +1 -0
  124. package/assets/esri/core/workers/chunks/{ab9156be67332338bbe4.js → aceec85ce64a3e6d8761.js} +1 -1
  125. package/assets/esri/core/workers/chunks/b10b3eb8c2ed9be14ab2.js +1 -0
  126. package/assets/esri/core/workers/chunks/b40e4ed067da65c3d7ce.js +1 -0
  127. package/assets/esri/core/workers/chunks/{b5fc0a2480a229e8891a.js → b5f291e8ed7f7cac158d.js} +1 -1
  128. package/assets/esri/core/workers/chunks/b5f68e1fdbaca3cd9c8d.js +1 -0
  129. package/assets/esri/core/workers/chunks/{a32b274404dfd2fb70ee.js → bcfa9f2e54f6777d0855.js} +1 -1
  130. package/assets/esri/core/workers/chunks/{9a43065e51df9c21c9fa.js → bdb4f216ae8881b98604.js} +1 -1
  131. package/assets/esri/core/workers/chunks/c409b8d39c0a40dafa06.js +1 -0
  132. package/assets/esri/core/workers/chunks/c6e0ada6f2ad74fddfec.js +1 -0
  133. package/assets/esri/core/workers/chunks/c80c82acec04ee0ade04.js +1 -0
  134. package/assets/esri/core/workers/chunks/c873ac660e7d5dc88781.js +1 -0
  135. package/assets/esri/core/workers/chunks/cfdb17522112c52f81ad.js +1 -0
  136. package/assets/esri/core/workers/chunks/d03d50f3247327257d8b.js +1 -0
  137. package/assets/esri/core/workers/chunks/d27a542a406ac3fe2ad9.js +1 -0
  138. package/assets/esri/core/workers/chunks/d2d9c1f32a75befe168b.js +1 -0
  139. package/assets/esri/core/workers/chunks/d76dfac06299cbd4f00e.js +1 -0
  140. package/assets/esri/core/workers/chunks/d9dc8d9fc8ab2706f96b.js +1 -0
  141. package/assets/esri/core/workers/chunks/{09cf8aed89a1ea1f8b28.js → da42da04a9df651b06cc.js} +1 -1
  142. package/assets/esri/core/workers/chunks/dd24cddc406f610d2483.js +1 -0
  143. package/assets/esri/core/workers/chunks/ded71a656e2626a411f9.js +1 -0
  144. package/assets/esri/core/workers/chunks/df1fa0f7e8f7e2bcc2e6.js +1 -0
  145. package/assets/esri/core/workers/chunks/{a5af20f3d484d2d3bafe.js → e2dc7e6b84e9b38ef9fe.js} +1 -1
  146. package/assets/esri/core/workers/chunks/{2889e782ed81bb05b9e5.js → e508f8e707eb3207cfcc.js} +1 -1
  147. package/assets/esri/core/workers/chunks/{bb8530ade7c40a1ed7c4.js → eb9e913fe0dfcc71cf92.js} +1 -1
  148. package/assets/esri/core/workers/chunks/{6a043be736f096d70070.js → ec2dfd89e4ce6fda4971.js} +1 -1
  149. package/assets/esri/core/workers/chunks/{f7e25a85a79c4e3c1c9f.js → ec63c0fa21cd3c872633.js} +1 -1
  150. package/assets/esri/core/workers/chunks/{a5bd7e5d71cffde68f89.js → ee89564d11c077169b31.js} +1 -1
  151. package/assets/esri/core/workers/chunks/ef9106ee818ec732b670.js +1 -0
  152. package/assets/esri/core/workers/chunks/f0582d8111ec825e1f9a.js +1 -0
  153. package/assets/esri/core/workers/chunks/{2e7d4a437717606bc39c.js → f104823f3b31a204bacb.js} +1 -1
  154. package/assets/esri/core/workers/chunks/{12fd2e26e949d90abfbd.js → f114da7ef2b891184e77.js} +1 -1
  155. package/assets/esri/core/workers/chunks/f121a0bf33c03abfa0b6.js +1 -0
  156. package/assets/esri/core/workers/chunks/{b3cc7f6d953bfbc3a70d.js → f62e37863a549f72093c.js} +1 -1
  157. package/assets/esri/core/workers/chunks/fab7e3e07d700d7bb651.js +1 -0
  158. package/assets/esri/core/workers/chunks/{bc9997d15ec0a86793c6.js → fd47dc60646260c5633c.js} +1 -1
  159. package/assets/esri/core/workers/chunks/fe5aec7e2da4465422b4.js +1 -0
  160. package/assets/esri/core/workers/chunks/{0fe47bf45428100cc808.js → ffb73b4e8f2f7ffd2db4.js} +1 -1
  161. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  162. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  163. package/assets/esri/themes/base/widgets/_Attribution.scss +4 -2
  164. package/assets/esri/themes/dark/main.css +1 -1
  165. package/assets/esri/themes/light/main.css +1 -1
  166. package/assets/esri/themes/light/view.css +1 -1
  167. package/assets/esri/widgets/Directions/t9n/Directions_ar.json +1 -1
  168. package/assets/esri/widgets/Directions/t9n/Directions_bg.json +1 -1
  169. package/assets/esri/widgets/Directions/t9n/Directions_bs.json +1 -1
  170. package/assets/esri/widgets/Directions/t9n/Directions_ca.json +1 -1
  171. package/assets/esri/widgets/Directions/t9n/Directions_cs.json +1 -1
  172. package/assets/esri/widgets/Directions/t9n/Directions_da.json +1 -1
  173. package/assets/esri/widgets/Directions/t9n/Directions_de.json +1 -1
  174. package/assets/esri/widgets/Directions/t9n/Directions_el.json +1 -1
  175. package/assets/esri/widgets/Directions/t9n/Directions_es.json +1 -1
  176. package/assets/esri/widgets/Directions/t9n/Directions_et.json +1 -1
  177. package/assets/esri/widgets/Directions/t9n/Directions_fi.json +1 -1
  178. package/assets/esri/widgets/Directions/t9n/Directions_fr.json +1 -1
  179. package/assets/esri/widgets/Directions/t9n/Directions_he.json +1 -1
  180. package/assets/esri/widgets/Directions/t9n/Directions_hr.json +1 -1
  181. package/assets/esri/widgets/Directions/t9n/Directions_hu.json +1 -1
  182. package/assets/esri/widgets/Directions/t9n/Directions_id.json +1 -1
  183. package/assets/esri/widgets/Directions/t9n/Directions_it.json +1 -1
  184. package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
  185. package/assets/esri/widgets/Directions/t9n/Directions_ko.json +1 -1
  186. package/assets/esri/widgets/Directions/t9n/Directions_lt.json +1 -1
  187. package/assets/esri/widgets/Directions/t9n/Directions_lv.json +1 -1
  188. package/assets/esri/widgets/Directions/t9n/Directions_nl.json +1 -1
  189. package/assets/esri/widgets/Directions/t9n/Directions_no.json +1 -1
  190. package/assets/esri/widgets/Directions/t9n/Directions_pl.json +1 -1
  191. package/assets/esri/widgets/Directions/t9n/Directions_pt-BR.json +1 -1
  192. package/assets/esri/widgets/Directions/t9n/Directions_pt-PT.json +1 -1
  193. package/assets/esri/widgets/Directions/t9n/Directions_ro.json +1 -1
  194. package/assets/esri/widgets/Directions/t9n/Directions_ru.json +1 -1
  195. package/assets/esri/widgets/Directions/t9n/Directions_sk.json +1 -1
  196. package/assets/esri/widgets/Directions/t9n/Directions_sl.json +1 -1
  197. package/assets/esri/widgets/Directions/t9n/Directions_sr.json +1 -1
  198. package/assets/esri/widgets/Directions/t9n/Directions_sv.json +1 -1
  199. package/assets/esri/widgets/Directions/t9n/Directions_th.json +1 -1
  200. package/assets/esri/widgets/Directions/t9n/Directions_tr.json +1 -1
  201. package/assets/esri/widgets/Directions/t9n/Directions_uk.json +1 -1
  202. package/assets/esri/widgets/Directions/t9n/Directions_vi.json +1 -1
  203. package/assets/esri/widgets/Directions/t9n/Directions_zh-CN.json +1 -1
  204. package/assets/esri/widgets/Directions/t9n/Directions_zh-HK.json +1 -1
  205. package/assets/esri/widgets/Directions/t9n/Directions_zh-TW.json +1 -1
  206. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  207. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  208. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  209. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  210. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  211. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  212. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  213. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  214. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  215. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  216. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  217. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  218. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  219. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  220. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  221. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  222. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  223. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  224. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  225. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  226. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  227. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  228. package/assets/esri/widgets/Editor/t9n/Editor_no.json +1 -1
  229. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  230. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  231. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  232. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  233. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  234. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  235. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  236. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  237. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  238. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  239. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  240. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  241. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  242. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  243. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  244. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  245. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
  246. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
  247. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
  248. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
  249. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
  250. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
  251. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
  252. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
  253. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
  254. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
  255. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
  256. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
  257. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
  258. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
  259. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
  260. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
  261. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
  262. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
  263. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
  264. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
  265. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
  266. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
  267. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
  268. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
  269. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
  270. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
  271. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
  272. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
  273. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
  274. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
  275. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
  276. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
  277. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
  278. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
  279. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
  280. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
  281. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
  282. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
  283. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
  284. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  285. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  286. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  287. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  288. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  289. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  290. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  291. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  292. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  293. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  294. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  295. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  296. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  297. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  298. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  299. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  300. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  301. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  302. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  303. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  304. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  305. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  306. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
  307. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  308. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  309. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  310. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  311. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  312. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  313. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  314. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  315. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  316. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  317. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  318. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  319. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  320. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  321. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  322. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  323. package/assets/esri/widgets/Sketch/t9n/Sketch_ar.json +1 -1
  324. package/assets/esri/widgets/Sketch/t9n/Sketch_bg.json +1 -1
  325. package/assets/esri/widgets/Sketch/t9n/Sketch_bs.json +1 -1
  326. package/assets/esri/widgets/Sketch/t9n/Sketch_ca.json +1 -1
  327. package/assets/esri/widgets/Sketch/t9n/Sketch_cs.json +1 -1
  328. package/assets/esri/widgets/Sketch/t9n/Sketch_da.json +1 -1
  329. package/assets/esri/widgets/Sketch/t9n/Sketch_de.json +1 -1
  330. package/assets/esri/widgets/Sketch/t9n/Sketch_el.json +1 -1
  331. package/assets/esri/widgets/Sketch/t9n/Sketch_es.json +1 -1
  332. package/assets/esri/widgets/Sketch/t9n/Sketch_et.json +1 -1
  333. package/assets/esri/widgets/Sketch/t9n/Sketch_fi.json +1 -1
  334. package/assets/esri/widgets/Sketch/t9n/Sketch_fr.json +1 -1
  335. package/assets/esri/widgets/Sketch/t9n/Sketch_he.json +1 -1
  336. package/assets/esri/widgets/Sketch/t9n/Sketch_hr.json +1 -1
  337. package/assets/esri/widgets/Sketch/t9n/Sketch_hu.json +1 -1
  338. package/assets/esri/widgets/Sketch/t9n/Sketch_id.json +1 -1
  339. package/assets/esri/widgets/Sketch/t9n/Sketch_it.json +1 -1
  340. package/assets/esri/widgets/Sketch/t9n/Sketch_ja.json +1 -1
  341. package/assets/esri/widgets/Sketch/t9n/Sketch_ko.json +1 -1
  342. package/assets/esri/widgets/Sketch/t9n/Sketch_lt.json +1 -1
  343. package/assets/esri/widgets/Sketch/t9n/Sketch_lv.json +1 -1
  344. package/assets/esri/widgets/Sketch/t9n/Sketch_nl.json +1 -1
  345. package/assets/esri/widgets/Sketch/t9n/Sketch_no.json +1 -1
  346. package/assets/esri/widgets/Sketch/t9n/Sketch_pl.json +1 -1
  347. package/assets/esri/widgets/Sketch/t9n/Sketch_pt-BR.json +1 -1
  348. package/assets/esri/widgets/Sketch/t9n/Sketch_pt-PT.json +1 -1
  349. package/assets/esri/widgets/Sketch/t9n/Sketch_ro.json +1 -1
  350. package/assets/esri/widgets/Sketch/t9n/Sketch_ru.json +1 -1
  351. package/assets/esri/widgets/Sketch/t9n/Sketch_sk.json +1 -1
  352. package/assets/esri/widgets/Sketch/t9n/Sketch_sl.json +1 -1
  353. package/assets/esri/widgets/Sketch/t9n/Sketch_sr.json +1 -1
  354. package/assets/esri/widgets/Sketch/t9n/Sketch_sv.json +1 -1
  355. package/assets/esri/widgets/Sketch/t9n/Sketch_th.json +1 -1
  356. package/assets/esri/widgets/Sketch/t9n/Sketch_tr.json +1 -1
  357. package/assets/esri/widgets/Sketch/t9n/Sketch_uk.json +1 -1
  358. package/assets/esri/widgets/Sketch/t9n/Sketch_vi.json +1 -1
  359. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-CN.json +1 -1
  360. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-HK.json +1 -1
  361. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-TW.json +1 -1
  362. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_ar.json +1 -1
  363. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_bg.json +1 -1
  364. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_bs.json +1 -1
  365. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_ca.json +1 -1
  366. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_cs.json +1 -1
  367. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_da.json +1 -1
  368. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_de.json +1 -1
  369. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_el.json +1 -1
  370. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_es.json +1 -1
  371. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_et.json +1 -1
  372. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_fi.json +1 -1
  373. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_fr.json +1 -1
  374. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_he.json +1 -1
  375. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_hr.json +1 -1
  376. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_hu.json +1 -1
  377. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_id.json +1 -1
  378. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_it.json +1 -1
  379. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_ja.json +1 -1
  380. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_ko.json +1 -1
  381. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_lt.json +1 -1
  382. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_lv.json +1 -1
  383. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_nl.json +1 -1
  384. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_no.json +1 -1
  385. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_pl.json +1 -1
  386. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_pt-BR.json +1 -1
  387. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_pt-PT.json +1 -1
  388. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_ro.json +1 -1
  389. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_ru.json +1 -1
  390. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_sk.json +1 -1
  391. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_sl.json +1 -1
  392. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_sr.json +1 -1
  393. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_sv.json +1 -1
  394. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_th.json +1 -1
  395. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_tr.json +1 -1
  396. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_uk.json +1 -1
  397. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_vi.json +1 -1
  398. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_zh-CN.json +1 -1
  399. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_zh-HK.json +1 -1
  400. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_zh-TW.json +1 -1
  401. package/chunks/Fog.glsl.js +1 -1
  402. package/config.js +1 -1
  403. package/core/has.js +1 -1
  404. package/core/sql/types.d.ts +398 -86
  405. package/core/types.d.ts +5 -0
  406. package/core/workers/workerFactory.js +1 -1
  407. package/editing/sharedTemplates/executor/builders/radialLines.js +1 -1
  408. package/editing/sharedTemplates/executor/builders/support/shapeUtils.js +1 -1
  409. package/effects/FocusAreas.d.ts +1 -1
  410. package/form/elements/FieldElement.d.ts +1 -1
  411. package/form/elements/GroupElement.d.ts +1 -1
  412. package/form/elements/TextElement.d.ts +1 -1
  413. package/form/elements/inputs/ComboBoxInput.d.ts +1 -1
  414. package/form/elements/inputs/RadioButtonsInput.d.ts +1 -1
  415. package/form/elements/inputs/SwitchInput.d.ts +1 -1
  416. package/geometry/Mesh.d.ts +7 -7
  417. package/geometry/operators/alphaShapeOperator.d.ts +1 -1
  418. package/geometry/operators/areaOperator.d.ts +1 -1
  419. package/geometry/operators/bufferOperator.d.ts +1 -1
  420. package/geometry/operators/centroidOperator.d.ts +1 -1
  421. package/geometry/operators/clipOperator.d.ts +1 -1
  422. package/geometry/operators/containsOperator.d.ts +1 -1
  423. package/geometry/operators/convexHullOperator.d.ts +1 -1
  424. package/geometry/operators/crossesOperator.d.ts +1 -1
  425. package/geometry/operators/cutOperator.d.ts +1 -1
  426. package/geometry/operators/densifyOperator.d.ts +1 -1
  427. package/geometry/operators/differenceOperator.d.ts +1 -1
  428. package/geometry/operators/disjointOperator.d.ts +1 -1
  429. package/geometry/operators/distanceOperator.d.ts +1 -1
  430. package/geometry/operators/generalizeOperator.d.ts +1 -1
  431. package/geometry/operators/geodesicProximityOperator.d.ts +1 -1
  432. package/geometry/operators/geodeticDistanceOperator.d.ts +1 -1
  433. package/geometry/operators/geodeticUtilsOperator.d.ts +2 -2
  434. package/geometry/operators/graphicBufferOperator.d.ts +1 -1
  435. package/geometry/operators/intersectionOperator.d.ts +1 -1
  436. package/geometry/operators/intersectsOperator.d.ts +1 -1
  437. package/geometry/operators/isNearOperator.d.ts +1 -1
  438. package/geometry/operators/lengthOperator.d.ts +1 -1
  439. package/geometry/operators/locateBetweenOperator.d.ts +1 -1
  440. package/geometry/operators/multiPartToSinglePartOperator.d.ts +1 -1
  441. package/geometry/operators/offsetOperator.d.ts +5 -5
  442. package/geometry/operators/overlapsOperator.d.ts +1 -1
  443. package/geometry/operators/proximityOperator.d.ts +1 -1
  444. package/geometry/operators/simplifyOGCOperator.d.ts +1 -1
  445. package/geometry/operators/simplifyOperator.d.ts +1 -1
  446. package/geometry/operators/support/GeographicTransformation.d.ts +6 -4
  447. package/geometry/operators/support/GeographicTransformation.js +1 -1
  448. package/geometry/operators/support/GeographicTransformationStep.d.ts +5 -3
  449. package/geometry/operators/support/GeographicTransformationStep.js +1 -1
  450. package/geometry/operators/support/Transformation.d.ts +6 -6
  451. package/geometry/operators/symmetricDifferenceOperator.d.ts +1 -1
  452. package/geometry/operators/touchesOperator.d.ts +1 -1
  453. package/geometry/operators/unionOperator.d.ts +1 -1
  454. package/geometry/operators/withinOperator.d.ts +1 -1
  455. package/geometry/projectionUtils.js +1 -1
  456. package/geometry/support/MeshMaterialMetallicRoughness.d.ts +1 -1
  457. package/geometry/support/curves/curveUtils.js +1 -1
  458. package/kernel.js +1 -1
  459. package/layers/BuildingSceneLayer.d.ts +4 -4
  460. package/layers/CSVLayer.d.ts +4 -4
  461. package/layers/CatalogLayer.d.ts +2 -2
  462. package/layers/ElevationLayer.d.ts +1 -1
  463. package/layers/FeatureLayer.d.ts +2 -2
  464. package/layers/GaussianSplatLayer.d.ts +77 -10
  465. package/layers/GeoJSONLayer.d.ts +3 -3
  466. package/layers/GeoRSSLayer.d.ts +1 -1
  467. package/layers/GraphicsLayer.d.ts +2 -2
  468. package/layers/ImageryLayer.d.ts +3 -3
  469. package/layers/ImageryTileLayer.d.ts +2 -2
  470. package/layers/IntegratedMesh3DTilesLayer.d.ts +6 -6
  471. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  472. package/layers/IntegratedMeshLayer.d.ts +7 -7
  473. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  474. package/layers/MapImageLayer.d.ts +1 -1
  475. package/layers/MediaLayer.d.ts +1 -1
  476. package/layers/OGCFeatureLayer.d.ts +2 -2
  477. package/layers/PointCloudLayer.d.ts +1 -1
  478. package/layers/SceneLayer.d.ts +9 -9
  479. package/layers/StreamLayer.d.ts +2 -2
  480. package/layers/VectorTileLayer.d.ts +2 -2
  481. package/layers/VideoLayer.d.ts +1 -1
  482. package/layers/VoxelLayer.d.ts +8 -8
  483. package/layers/WFSLayer.d.ts +6 -6
  484. package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
  485. package/layers/graphics/data/QueryEngineResult.js +1 -1
  486. package/layers/graphics/data/SnappingCandidate.js +1 -1
  487. package/layers/mixins/BlendLayer.d.ts +6 -6
  488. package/layers/pointCloudFilters/PointCloudReturnFilter.d.ts +1 -1
  489. package/layers/pointCloudFilters/PointCloudValueFilter.d.ts +1 -1
  490. package/layers/support/ControlPointsGeoreference.d.ts +2 -2
  491. package/layers/support/ControlPointsGeoreference.js +1 -1
  492. package/layers/support/CornersGeoreference.d.ts +2 -2
  493. package/layers/support/CornersGeoreference.js +1 -1
  494. package/layers/support/DimensionalDefinition.d.ts +2 -2
  495. package/layers/support/ExtentAndRotationGeoreference.d.ts +2 -2
  496. package/layers/support/ExtentAndRotationGeoreference.js +1 -1
  497. package/layers/support/FeatureEffect.d.ts +4 -4
  498. package/layers/support/FeatureFilter.d.ts +17 -17
  499. package/layers/support/FeatureReductionBinning.d.ts +1 -1
  500. package/layers/support/FeatureReductionCluster.d.ts +9 -9
  501. package/layers/support/FeatureReductionSelection.d.ts +1 -1
  502. package/layers/support/GeoreferenceBaseMixin.js +2 -0
  503. package/layers/support/LabelClass.d.ts +2 -2
  504. package/layers/support/RasterFunction.d.ts +1 -1
  505. package/layers/support/SceneFilter.d.ts +2 -2
  506. package/layers/support/SceneModification.d.ts +3 -3
  507. package/layers/support/arcgisLayerUrl.js +1 -1
  508. package/layers/support/featurePopupQueryUtils.js +1 -1
  509. package/layers/support/mediaUtils.js +1 -1
  510. package/layers/support/relativeTimeQueryUtils.js +1 -1
  511. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  512. package/layers/types.d.ts +24 -10
  513. package/package.json +1 -1
  514. package/popup/content/AttachmentsContent.d.ts +1 -1
  515. package/popup/content/BarChartMediaInfo.d.ts +1 -1
  516. package/popup/content/ColumnChartMediaInfo.d.ts +1 -1
  517. package/popup/content/FieldsContent.d.ts +1 -1
  518. package/popup/content/ImageMediaInfo.d.ts +1 -1
  519. package/popup/content/LineChartMediaInfo.d.ts +1 -1
  520. package/popup/content/MediaContent.d.ts +1 -1
  521. package/popup/content/PieChartMediaInfo.d.ts +1 -1
  522. package/popup/content/RelationshipContent.d.ts +1 -1
  523. package/popup/content/TextContent.d.ts +1 -1
  524. package/portal/support/urlUtils.js +1 -1
  525. package/renderers/ClassBreaksRenderer.d.ts +1 -1
  526. package/renderers/DictionaryRenderer.d.ts +1 -1
  527. package/renderers/DotDensityRenderer.d.ts +46 -3
  528. package/renderers/DotDensityRenderer.js +1 -1
  529. package/renderers/FlowRenderer.d.ts +6 -6
  530. package/renderers/HeatmapRenderer.d.ts +3 -3
  531. package/renderers/PieChartRenderer.d.ts +1 -1
  532. package/renderers/RasterShadedReliefRenderer.d.ts +1 -1
  533. package/renderers/Renderer.d.ts +4 -4
  534. package/renderers/SimpleRenderer.d.ts +2 -2
  535. package/renderers/UniqueValueRenderer.d.ts +2 -2
  536. package/renderers/VectorFieldRenderer.d.ts +1 -1
  537. package/renderers/mixins/VisualVariablesMixin.d.ts +12 -12
  538. package/renderers/visualVariables/ColorVariable.d.ts +1 -1
  539. package/renderers/visualVariables/OpacityVariable.d.ts +1 -1
  540. package/renderers/visualVariables/RotationVariable.d.ts +1 -1
  541. package/renderers/visualVariables/SizeVariable.d.ts +1 -1
  542. package/renderers/visualVariables/VisualVariable.d.ts +1 -1
  543. package/rest/featureService/FeatureService.js +1 -1
  544. package/rest/print.js +1 -1
  545. package/rest/query/operations/pbfFlatFeatureSet.js +1 -1
  546. package/rest/query/support/AttachmentInfo.d.ts +1 -1
  547. package/rest/support/AutoIntervalBinParameters.d.ts +1 -1
  548. package/rest/support/DateBinParameters.d.ts +1 -1
  549. package/rest/support/FixedBoundariesBinParameters.d.ts +1 -1
  550. package/rest/support/FixedIntervalBinParameters.d.ts +1 -1
  551. package/rest/support/Query.d.ts +3 -2
  552. package/rest/types.d.ts +1 -3
  553. package/smartMapping/labels/clusters.d.ts +1 -1
  554. package/smartMapping/popup/clusters.d.ts +2 -2
  555. package/smartMapping/popup/templates.d.ts +1 -1
  556. package/smartMapping/raster/renderers/flow.d.ts +2 -2
  557. package/smartMapping/renderers/color.d.ts +12 -12
  558. package/smartMapping/renderers/predominance.d.ts +3 -3
  559. package/smartMapping/renderers/relationship.d.ts +15 -15
  560. package/smartMapping/renderers/univariateColorSize.d.ts +4 -4
  561. package/smartMapping/symbology/color.d.ts +4 -4
  562. package/smartMapping/symbology/flow.d.ts +2 -2
  563. package/smartMapping/symbology/types.d.ts +18 -18
  564. package/support/actions/ActionButton.d.ts +1 -1
  565. package/support/revision.js +1 -1
  566. package/symbols/CIMSymbol.d.ts +1 -1
  567. package/symbols/ExtrudeSymbol3DLayer.d.ts +21 -11
  568. package/symbols/FillSymbol3DLayer.d.ts +39 -19
  569. package/symbols/IconSymbol3DLayer.d.ts +1 -1
  570. package/symbols/LabelSymbol3D.d.ts +2 -2
  571. package/symbols/LineStyleMarker3D.d.ts +7 -7
  572. package/symbols/LineSymbol3D.d.ts +2 -2
  573. package/symbols/LineSymbol3DLayer.d.ts +7 -7
  574. package/symbols/LineSymbolMarker.d.ts +6 -6
  575. package/symbols/MarkerSymbol.d.ts +1 -1
  576. package/symbols/MeshSymbol3D.d.ts +2 -2
  577. package/symbols/ObjectSymbol3DLayer.d.ts +29 -7
  578. package/symbols/PathSymbol3DLayer.d.ts +32 -20
  579. package/symbols/PictureFillSymbol.d.ts +1 -1
  580. package/symbols/PictureMarkerSymbol.d.ts +1 -1
  581. package/symbols/PointSymbol3D.d.ts +3 -3
  582. package/symbols/PolygonSymbol3D.d.ts +7 -7
  583. package/symbols/SimpleFillSymbol.d.ts +8 -8
  584. package/symbols/SimpleLineSymbol.d.ts +20 -20
  585. package/symbols/SimpleMarkerSymbol.d.ts +7 -7
  586. package/symbols/Symbol3DLayer.d.ts +16 -16
  587. package/symbols/TextSymbol.d.ts +1 -1
  588. package/symbols/TextSymbol3DLayer.d.ts +1 -1
  589. package/symbols/WaterSymbol3DLayer.d.ts +3 -3
  590. package/symbols/WebStyleSymbol.d.ts +1 -1
  591. package/symbols/callouts/Callout3D.d.ts +1 -1
  592. package/symbols/callouts/LineCallout3D.d.ts +3 -3
  593. package/symbols/cim/CIMSymbolHelper.js +1 -1
  594. package/symbols/cim/rasterizingUtils.js +1 -1
  595. package/symbols/cim/types.d.ts +23 -23
  596. package/symbols/edges/Edges3D.d.ts +1 -1
  597. package/symbols/edges/SolidEdges3D.d.ts +1 -1
  598. package/symbols/patterns/LineStylePattern3D.d.ts +11 -11
  599. package/symbols/patterns/StylePattern3D.d.ts +8 -8
  600. package/symbols/support/ElevationInfo.d.ts +2 -2
  601. package/symbols/support/IconSymbol3DLayerResource.d.ts +6 -6
  602. package/symbols/support/ObjectSymbol3DLayerResource.d.ts +7 -7
  603. package/symbols/support/Symbol3DEmissive.d.ts +19 -6
  604. package/symbols/support/Symbol3DVerticalOffset.d.ts +2 -2
  605. package/versionManagement/VersionManagementService.d.ts +4 -0
  606. package/views/2d/interactive/SnappingVisualizer2D.js +1 -1
  607. package/views/2d/layers/BaseLayerViewGL2D.d.ts +1 -1
  608. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  609. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  610. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  611. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  612. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  613. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  614. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  615. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  616. package/views/2d/layers/features/sources/strategies/FeaturePagedTileLoadStrategy.js +1 -1
  617. package/views/2d/layers/features/sources/strategies/FeatureSnapshotLoadStrategy.js +1 -1
  618. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  619. package/views/2d/layers/support/RouteLayerWaypointVisualization.js +1 -1
  620. package/views/2d/types.d.ts +3 -3
  621. package/views/3d/environment/CloudyWeather.d.ts +1 -1
  622. package/views/3d/environment/Environment.d.ts +4 -4
  623. package/views/3d/environment/FoggyWeather.d.ts +1 -1
  624. package/views/3d/environment/RainyWeather.d.ts +1 -1
  625. package/views/3d/environment/SnowyWeather.d.ts +1 -1
  626. package/views/3d/environment/SunLighting.d.ts +1 -1
  627. package/views/3d/environment/SunnyWeather.d.ts +1 -1
  628. package/views/3d/environment/VirtualLighting.d.ts +1 -1
  629. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  630. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  631. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  632. package/views/3d/webgl/RenderNode.d.ts +2 -2
  633. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  634. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
  635. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
  636. package/views/3d/webgl.d.ts +1 -1
  637. package/views/Magnifier.d.ts +3 -3
  638. package/views/MapView.d.ts +7 -7
  639. package/views/SceneView.d.ts +16 -16
  640. package/views/View.d.ts +2 -2
  641. package/views/interactive/keybindings.js +1 -1
  642. package/views/interactive/sketch/SketchLabelOptions.d.ts +1 -1
  643. package/views/interactive/sketch/SketchTooltipOptions.d.ts +1 -1
  644. package/views/interactive/snapping/SnappingOptions.d.ts +7 -7
  645. package/views/interactive/snapping/candidates/EdgeSnappingCandidate.js +1 -1
  646. package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
  647. package/views/interactive/snapping/featureSources/queryEngineUtils.js +1 -1
  648. package/views/interactive/snapping/featureSources/snappingCandidateElevationAlignment.js +1 -1
  649. package/views/interactive/snapping/featureSources/snappingCandidateElevationFilter.js +1 -1
  650. package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
  651. package/views/layers/FeatureLikeLayerView.js +1 -1
  652. package/views/layers/support/WhereClauseVisitor.js +1 -1
  653. package/views/support/HighlightOptions.d.ts +1 -1
  654. package/views/ui/DefaultUI.d.ts +2 -2
  655. package/views/webgl/RenderingContext.js +1 -1
  656. package/webscene/Environment.d.ts +16 -11
  657. package/webscene/Glow.d.ts +9 -2
  658. package/webscene/background/ColorBackground.d.ts +1 -1
  659. package/widgets/AreaMeasurement2D.d.ts +1 -1
  660. package/widgets/AreaMeasurement3D.d.ts +2 -2
  661. package/widgets/Attachments.d.ts +1 -1
  662. package/widgets/Attribution.d.ts +1 -1
  663. package/widgets/BasemapGallery.d.ts +1 -1
  664. package/widgets/BasemapLayerList.d.ts +3 -3
  665. package/widgets/BasemapToggle.d.ts +1 -1
  666. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +1 -2
  667. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  668. package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
  669. package/widgets/BatchAttributeForm/inputs/BatchFormInputs.d.ts +0 -1
  670. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +1 -1
  671. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  672. package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +2 -11
  673. package/widgets/BatchAttributeForm/inputs/TextElementInput.js +1 -1
  674. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  675. package/widgets/BatchAttributeForm/inputs/support/textElementInputUtils.js +2 -0
  676. package/widgets/BatchAttributeForm/templates/TextElementTemplate.js +1 -1
  677. package/widgets/BatchAttributeForm/templates/support/constants.js +2 -0
  678. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  679. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  680. package/widgets/BatchAttributeForm/templates/support/textElementTemplateUtils.js +2 -0
  681. package/widgets/BatchAttributeForm.d.ts +0 -2
  682. package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +1 -1
  683. package/widgets/Bookmarks.d.ts +2 -2
  684. package/widgets/BuildingExplorer.d.ts +1 -1
  685. package/widgets/CatalogLayerList.d.ts +3 -3
  686. package/widgets/Compass.d.ts +2 -2
  687. package/widgets/CoordinateConversion.d.ts +1 -1
  688. package/widgets/Daylight.d.ts +5 -5
  689. package/widgets/DirectLineMeasurement3D.d.ts +2 -2
  690. package/widgets/Directions/DirectionsViewModel.d.ts +12 -0
  691. package/widgets/Directions/DirectionsViewModel.js +1 -1
  692. package/widgets/Directions.d.ts +4 -4
  693. package/widgets/DistanceMeasurement2D.d.ts +1 -1
  694. package/widgets/Editor/CreateFeaturesWorkflow.d.ts +1 -1
  695. package/widgets/Editor/EditorViewModel.js +1 -1
  696. package/widgets/Editor/components/Settings.js +1 -1
  697. package/widgets/Editor.d.ts +8 -8
  698. package/widgets/ElevationProfile/ElevationProfileLineGround.d.ts +1 -1
  699. package/widgets/ElevationProfile/ElevationProfileLineInput.d.ts +1 -1
  700. package/widgets/ElevationProfile/ElevationProfileLineView.d.ts +1 -1
  701. package/widgets/ElevationProfile.d.ts +3 -3
  702. package/widgets/Expand.d.ts +1 -1
  703. package/widgets/FeatureForm.d.ts +1 -1
  704. package/widgets/FeatureTable/ActionColumn.d.ts +2 -2
  705. package/widgets/FeatureTable/AttachmentsColumn.d.ts +1 -1
  706. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +3 -3
  707. package/widgets/FeatureTable/Grid/GroupColumn.d.ts +1 -1
  708. package/widgets/FeatureTable/RelationshipColumn.d.ts +1 -1
  709. package/widgets/FeatureTable/VisibleElements.d.ts +1 -1
  710. package/widgets/FeatureTable.d.ts +10 -10
  711. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.d.ts +5 -5
  712. package/widgets/FeatureTemplates.d.ts +8 -8
  713. package/widgets/Features/FeaturesViewModel.d.ts +2 -2
  714. package/widgets/Features/FeaturesViewModel.js +1 -1
  715. package/widgets/Features/FeaturesVisibleElements.d.ts +2 -2
  716. package/widgets/Features.d.ts +1 -1
  717. package/widgets/Histogram.d.ts +2 -2
  718. package/widgets/HistogramRangeSlider.d.ts +1 -1
  719. package/widgets/Home.d.ts +1 -1
  720. package/widgets/LayerList/ListItemPanel.d.ts +1 -1
  721. package/widgets/LayerList.d.ts +4 -4
  722. package/widgets/Legend.d.ts +8 -8
  723. package/widgets/LineOfSight.d.ts +1 -1
  724. package/widgets/Locate.d.ts +2 -2
  725. package/widgets/Measurement.d.ts +1 -1
  726. package/widgets/NavigationToggle/NavigationToggleViewModel.d.ts +1 -1
  727. package/widgets/NavigationToggle.d.ts +3 -3
  728. package/widgets/Popup/PopupVisibleElements.d.ts +2 -2
  729. package/widgets/Popup.d.ts +5 -5
  730. package/widgets/Print/CustomTemplate.d.ts +1 -1
  731. package/widgets/Print/PrintViewModel.js +1 -1
  732. package/widgets/Print/TemplateOptions.d.ts +4 -4
  733. package/widgets/ScaleRangeSlider.d.ts +1 -1
  734. package/widgets/Search/SearchViewModel.d.ts +4 -4
  735. package/widgets/Search.d.ts +5 -5
  736. package/widgets/ShadowCast.d.ts +3 -3
  737. package/widgets/Sketch/SketchViewModel.d.ts +39 -39
  738. package/widgets/Sketch.d.ts +43 -43
  739. package/widgets/Sketch.js +1 -1
  740. package/widgets/Slice.d.ts +2 -2
  741. package/widgets/Slider/SliderViewModel.d.ts +2 -2
  742. package/widgets/Slider.d.ts +9 -9
  743. package/widgets/Swipe/SwipeViewModel.d.ts +1 -1
  744. package/widgets/Swipe.d.ts +2 -2
  745. package/widgets/TableList/ListItemPanel.d.ts +1 -1
  746. package/widgets/TableList.d.ts +1 -1
  747. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +8 -9
  748. package/widgets/TimeSlider/types.d.ts +1 -1
  749. package/widgets/TimeSlider.d.ts +11 -12
  750. package/widgets/Track.d.ts +2 -2
  751. package/widgets/UtilityNetworkAssociations.d.ts +3 -3
  752. package/widgets/UtilityNetworkTrace.d.ts +4 -4
  753. package/widgets/UtilityNetworkValidateTopology.d.ts +1 -1
  754. package/widgets/ValuePicker.d.ts +5 -5
  755. package/widgets/VideoPlayer.d.ts +1 -1
  756. package/widgets/smartMapping/ClassedColorSlider.d.ts +1 -1
  757. package/widgets/smartMapping/ClassedSizeSlider.d.ts +1 -1
  758. package/widgets/smartMapping/ColorSizeSlider.d.ts +2 -2
  759. package/widgets/smartMapping/ColorSlider.d.ts +1 -1
  760. package/widgets/smartMapping/HeatmapSlider.d.ts +1 -1
  761. package/widgets/smartMapping/OpacitySlider.d.ts +1 -1
  762. package/widgets/smartMapping/SizeSlider.d.ts +1 -1
  763. package/widgets/smartMapping/SmartMappingSliderBase.d.ts +4 -4
  764. package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +6 -6
  765. package/widgets/support/GridControls.d.ts +1 -1
  766. package/widgets/support/SketchTooltipControls.js +1 -1
  767. package/widgets/support/SnappingControls/VisibleElements.d.ts +1 -1
  768. package/widgets/support/SnappingControls.d.ts +6 -6
  769. package/assets/esri/core/workers/chunks/0baf2cf9d8998045a605.js +0 -1
  770. package/assets/esri/core/workers/chunks/0c8a676599821b9871c2.js +0 -1
  771. package/assets/esri/core/workers/chunks/0cc68540194bd9f7aa3c.js +0 -1
  772. package/assets/esri/core/workers/chunks/153a9d087e0fe7072af4.js +0 -1
  773. package/assets/esri/core/workers/chunks/15e5471277a48f482383.js +0 -1
  774. package/assets/esri/core/workers/chunks/178c91fabf4a87bbb50b.js +0 -1
  775. package/assets/esri/core/workers/chunks/1ab4289195f5e46c6fe8.js +0 -1
  776. package/assets/esri/core/workers/chunks/2216264b22a605a0f1ce.js +0 -1
  777. package/assets/esri/core/workers/chunks/22d12c309af9c19a1a48.js +0 -1
  778. package/assets/esri/core/workers/chunks/25b815ef26cf2fa26fc8.js +0 -1
  779. package/assets/esri/core/workers/chunks/2b7615cccbaeda1649f3.js +0 -1
  780. package/assets/esri/core/workers/chunks/2bb7bb7901bd343201fc.js +0 -1
  781. package/assets/esri/core/workers/chunks/2f0ea91afc9aa8ee9cad.js +0 -1
  782. package/assets/esri/core/workers/chunks/395ee51a863757ea8124.js +0 -1
  783. package/assets/esri/core/workers/chunks/3a850b5e847b6b0ea53f.js +0 -1
  784. package/assets/esri/core/workers/chunks/3d78e9b3c97c0ce21d16.js +0 -1
  785. package/assets/esri/core/workers/chunks/449cf6ae6b6e6c2795e5.js +0 -1
  786. package/assets/esri/core/workers/chunks/4550b7620932cd6de20e.js +0 -1
  787. package/assets/esri/core/workers/chunks/455fbddd814e4681f0c0.js +0 -1
  788. package/assets/esri/core/workers/chunks/4d438627dd3509f65d5a.js +0 -1
  789. package/assets/esri/core/workers/chunks/4dcd5d5ea5875a08a7c7.js +0 -1
  790. package/assets/esri/core/workers/chunks/4ef60a76eeca20bcafb1.js +0 -1
  791. package/assets/esri/core/workers/chunks/5058715f32ff026053a9.js +0 -1
  792. package/assets/esri/core/workers/chunks/5062ed46edb88c0d343c.js +0 -1
  793. package/assets/esri/core/workers/chunks/5210bde0a05ab172ab28.js +0 -1
  794. package/assets/esri/core/workers/chunks/529dbf16ffbbd39f3fa2.js +0 -1
  795. package/assets/esri/core/workers/chunks/554f389f99db430b309c.js +0 -1
  796. package/assets/esri/core/workers/chunks/56a296cb5c1ae1ea5ab2.js +0 -1
  797. package/assets/esri/core/workers/chunks/58cf3d35771b87bd74e5.js +0 -1
  798. package/assets/esri/core/workers/chunks/5fe0bed2a0a9f8eadb28.js +0 -1
  799. package/assets/esri/core/workers/chunks/652bb1b53782cdd3103c.js +0 -1
  800. package/assets/esri/core/workers/chunks/6acab23acf3b044f5215.js +0 -1
  801. package/assets/esri/core/workers/chunks/6c2a7bac3f8e32c83292.js +0 -1
  802. package/assets/esri/core/workers/chunks/6d26e5368e8952003669.js +0 -1
  803. package/assets/esri/core/workers/chunks/7595c52b1647f092c61a.js +0 -1
  804. package/assets/esri/core/workers/chunks/7b7288c431933a75daca.js +0 -1
  805. package/assets/esri/core/workers/chunks/7c01e5eaab97a9ae80ad.js +0 -1
  806. package/assets/esri/core/workers/chunks/7cb6ccee9bcef449caea.js +0 -1
  807. package/assets/esri/core/workers/chunks/8177e95596b71bf020aa.js +0 -1
  808. package/assets/esri/core/workers/chunks/879e8439a513cb333b61.js +0 -1
  809. package/assets/esri/core/workers/chunks/8c321c6bc344544ebb51.js +0 -1
  810. package/assets/esri/core/workers/chunks/90aeef17af12cfbecb36.js +0 -1
  811. package/assets/esri/core/workers/chunks/a027da22acdaa6d6baa3.js +0 -1
  812. package/assets/esri/core/workers/chunks/a6006718fe22d9f2fa87.js +0 -1
  813. package/assets/esri/core/workers/chunks/ae0a555b047b11aa68eb.js +0 -1
  814. package/assets/esri/core/workers/chunks/b0b24fb60a21b995b348.js +0 -1
  815. package/assets/esri/core/workers/chunks/b60337c471e2b855d02a.js +0 -1
  816. package/assets/esri/core/workers/chunks/b6e155b42a4a423139e7.js +0 -1
  817. package/assets/esri/core/workers/chunks/bb830d93e97dceac350f.js +0 -1
  818. package/assets/esri/core/workers/chunks/bd12ca39198e6efbefbb.js +0 -1
  819. package/assets/esri/core/workers/chunks/bd1bbf1820e12d7a27f6.js +0 -1
  820. package/assets/esri/core/workers/chunks/bf9b2aa2e67ca746ec7c.js +0 -1
  821. package/assets/esri/core/workers/chunks/c516b185b099bf69c0ed.js +0 -1
  822. package/assets/esri/core/workers/chunks/c693e8eb96ab8a4b9cbe.js +0 -1
  823. package/assets/esri/core/workers/chunks/c9067667290e93407dd7.js +0 -1
  824. package/assets/esri/core/workers/chunks/d4da3abbd3d88cd63cb9.js +0 -1
  825. package/assets/esri/core/workers/chunks/e59c5bcf91984aa5be6d.js +0 -1
  826. package/assets/esri/core/workers/chunks/e71d08c6f545c2c70174.js +0 -1
  827. package/assets/esri/core/workers/chunks/e8a7ff6210cd11d3a828.js +0 -1
  828. package/assets/esri/core/workers/chunks/eb4a2dc5efdb873a7f25.js +0 -1
  829. package/assets/esri/core/workers/chunks/ed78e19b1e400c0db309.js +0 -1
  830. package/assets/esri/core/workers/chunks/ee34f14bbfe619b85a80.js +0 -1
  831. package/assets/esri/core/workers/chunks/f0b8de5b3cfbe9223df6.js +0 -1
  832. package/assets/esri/core/workers/chunks/f347dee99faa9ee5eef1.js +0 -1
  833. package/assets/esri/core/workers/chunks/fe52117fe6982046c9e3.js +0 -1
  834. package/layers/support/GeoreferenceBase.d.ts +0 -4
  835. package/layers/support/GeoreferenceBase.js +0 -2
  836. package/widgets/BatchAttributeForm/inputs/support/textInputElementUtils.js +0 -2
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9203],{6518(e,t,n){n.d(t,{F:()=>a});var i=n(44208),r=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 r.wq(9,(0,i.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,i)=>{e[t++]=i}),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:()=>w});var i=n(5482),r=n(92602),o=n(70333),s=n(11254),a=n(60999),l=n(49186),c=n(53966),u=n(97768),h=n(74887),d=n(84952),p=n(91429),m=n(77548),f=n(20655),g=n(80812),y=n(41318),x=n(10407),_=n(36005),v=n(43937);const w=e=>{const t=e;let w=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}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new g.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:i}=await n.e(1204).then(n.bind(n,41204));return(0,h.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,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(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:i},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",r)}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 i=!o.id?.findCredential(this.url),r=e===n.id;if(r&&n.portal.user)return this._getUserPrivileges(n,i);let s,a;if(r)s=n.portal.url;else try{s=await(0,m.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!s||!(0,d.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(r?await n.reload():(n=new g.default({id:e,portal:{url:s}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,i)}catch(e){(0,h.QP)(e)}return{features:{edit:l,fullEdit:c},content:{updateItem:u}}}_getUserPrivileges(e,t){const n=(0,x.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=P.credential===t?P.user:await this._fetchEditingUser(e);return P.credential=t,P.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 i=`${n.owningSystemUrl}/sharing/rest`,r=f.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(i))return r.user;const l=`${i}/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?y.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return n&&i&&!(0,d.ut)(i.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,i.Cg)([(0,p.MZ)({type:g.default})],w.prototype,"portalItem",null),(0,i.Cg)([(0,_.w)("web-document","portalItem",["itemId"])],w.prototype,"readPortalItem",null),(0,i.Cg)([(0,v.K)("web-document","portalItem",{itemId:{type:String}})],w.prototype,"writePortalItem",null),(0,i.Cg)([(0,p.MZ)({clonable:!1})],w.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasUpdateItemPrivileges",void 0),w=(0,i.Cg)([(0,p.$K)("esri.layers.mixins.PortalLayer")],w),w},P={credential:null,user:null}},10407(e,t,n){n.d(t,{It:()=>p,LG:()=>s,OM:()=>c,Sm:()=>u,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>h});var i=n(91218),r=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,d.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=r.A.WGS84;return await(0,i.initializeProjection)(t,n),(0,i.project)(e,n)}(n)}const d={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 p(e){const{portal:t,isOrgItem:n,itemControl:i}=e,r=t.user?.privileges;let o=!r||r.includes("features:user:edit"),s=!!n&&!!r?.includes("features:user:fullEdit");const a="update"===i||"admin"===i;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}},11006(e,t,n){function i(e,t,n,i,o){r(e,t,n||0,i||e.length-1,o||s)}function r(e,t,n,i,s){for(;i>n;){if(i-n>600){var a=i-n+1,l=t-n+1,c=Math.log(a),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(a-u)/a)*(l-a/2<0?-1:1);r(e,t,Math.max(n,Math.floor(t-l*u/a+h)),Math.min(i,Math.floor(t+(a-l)*u/a+h)),s)}var d=e[t],p=n,m=i;for(o(e,n,t),s(e[i],d)>0&&o(e,n,i);p<m;){for(o(e,p,m),p++,m--;s(e[p],d)<0;)p++;for(;s(e[m],d)>0;)m--}0===s(e[n],d)?o(e,n,m):o(e,++m,i),m<=t&&(n=m+1),t<=m&&(i=m-1)}}function o(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function s(e,t){return e<t?-1:e>t?1:0}n.d(t,{q:()=>i})},13069(e,t,n){n.d(t,{AG:()=>a,lk:()=>r,vD:()=>s,yS:()=>o});const i="randomUUID"in crypto;function r(){if(i)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`{${r().toUpperCase()}}`}function s(){return`{${r()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},16494(e,t,n){n.d(t,{Nd:()=>a,W5:()=>s});var i=n(17632);const r=["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 i.I({whiteList:r,onTagAttr:(e,t,n)=>{const i=`${t}="${n}"`;if(o.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},21287(e,t,n){n.d(t,{M5:()=>h,eV:()=>u});var i=n(11254),r=n(49186),o=n(74887),s=n(84952),a=n(26306);let l=null,c=!0;function u(e,t,n,i){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 r=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,i);return r.data.set(e,0),r}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 r=await(0,i.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:r.data,mediaType:r.getHeader?.("Content-Type")??""}}(e,t),u="image/png"===c;if("image/gif"===c){const{isAnimatedGIF:e,parseGif:i}=await n.e(820).then(n.bind(n,10820));if(e(l))return i(l,t)}if(u){const{isAnimatedPNG:e,parseApng:i}=await n.e(2390).then(n.bind(n,22390));if(e(l))return i(l,t)}return async function(e,t){const n=window.URL.createObjectURL(e);try{const{data:e}=await(0,i.A)(n,{...t,responseType:"image"});return e}catch(e){if(!(0,o.zf)(e))throw new r.A("invalid-image",`Could not fetch requested image at ${n}`);throw e}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:c}),t)}},29203(e,t,n){n.r(t),n.d(t,{default:()=>tt});var i=n(5482),r=n(7762),o=n(49186),s=n(53966),a=n(25728),l=n(74887),c=n(91429),u=n(16930),h=n(4146),d=n(63074),p=n(16131),m=n(8303),f=n(25036),g=n(25482),y=n(77690),x=n(29242),_=n(37585),v=n(35522);const w=(0,n(51850).vt)(),P=(0,x.vt)(),M=(0,x.vt)(),I=(0,x.vt)();function b(e,t,n){return(0,v.hZ)(w,t[0],t[1],1),(0,v.ei)(w,w,(0,y.mg)(P,n)),0===w[2]?(0,_.hZ)(e,w[0],w[1]):(0,_.hZ)(e,w[0]/w[2],w[1]/w[2])}function A(e,t,n){return C(M,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),C(I,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,y.lw)(e,(0,y.KC)(M,M),I),0!==e[8]&&(e[0]/=e[8],e[1]/=e[8],e[2]/=e[8],e[3]/=e[8],e[4]/=e[8],e[5]/=e[8],e[6]/=e[8],e[7]/=e[8],e[8]/=e[8]),e}function C(e,t,n,i,r,o,s,a,l){(0,y.hZ)(e,t,i,o,n,r,s,1,1,1),(0,v.hZ)(w,a,l,1),(0,y.KC)(P,e);const[c,u,h]=(0,v.ei)(w,w,(0,y.mg)(P,P));return(0,y.hZ)(P,c,0,0,0,u,0,0,0,h),(0,y.lw)(e,P,e)}var R=n(90629),S=n(48163),O=n(86738),E=n(39829),L=n(91218),B=n(56560),T=n(69540);let Z=class extends T.Pw{projectOrWarn(e,t){if(null==e)return e;const{geometry:n,pending:i}=(0,L.projectOrLoad)(e,t);return i?null:i||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)}};Z=(0,i.Cg)([(0,c.$K)("esri.layers.support.GeoreferenceBase")],Z);var j=n(36005),Y=n(43937);const U=(0,x.vt)(),X=(0,S.vt)();let H=class extends g.o{};(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:{isRequired:!0}}})],H.prototype,"x",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:{isRequired:!0}}})],H.prototype,"y",void 0),H=(0,i.Cg)([(0,c.$K)("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],H);let N=class extends((0,g.T)(Z)){constructor(e){super(e),this.height=0,this.type="control-points",this.width=0}get controlPoints(){return this._get("controlPoints")??null}set controlPoints(e){this._set("controlPoints",e)}readControlPoints(e,t){const n=u.A.fromJSON(t.spatialReference),i=(0,x.fA)(...t.coefficients,1);return e.map(e=>((0,_.hZ)(X,e.x,e.y),b(X,X,i),{sourcePoint:e,mapPoint:new O.A({x:X[0],y:X[1],spatialReference:n})}))}writeControlPoints(e,t,n,i){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:i?.layer,georeference:this});return void(i?.messages?i.messages.push(e):s.A.getLogger(this).error(e.name,e.message))}null!=e&&$(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||!$(this.controlPoints[0]))return null;const t=this.controlPoints[0].mapPoint.spatialReference;return function(e,t,n,i){const r=(0,S.fA)(0,n),o=(0,S.fA)(0,0),s=(0,S.fA)(t,0),a=(0,S.fA)(t,n);return b(r,r,e),b(o,o,e),b(s,s,e),b(a,a,e),new E.A({rings:[[r,o,s,a,r]],spatialReference:i})}(e,this.width,this.height,t)}set coords(e){if(null==this.controlPoints||!$(this.controlPoints[0]))return;const t=this.controlPoints[0].mapPoint.spatialReference;if(null==(e=this.projectOrWarn(e,t)))return;const{width:n,height:i}=this,{rings:[[r,o,s,a]]}=e,l=new B.A({sourcePoint:(0,R.tc)(0,i),mapPoint:new O.A({x:r[0],y:r[1],spatialReference:t})}),c=new B.A({sourcePoint:(0,R.tc)(0,0),mapPoint:new O.A({x:o[0],y:o[1],spatialReference:t})}),u=new B.A({sourcePoint:(0,R.tc)(n,0),mapPoint:new O.A({x:s[0],y:s[1],spatialReference:t})}),h=new B.A({sourcePoint:(0,R.tc)(n,i),mapPoint:new O.A({x:a[0],y:a[1],spatialReference:t})});$(l)&&$(c)&&$(u)&&$(h)&&(Q(U,l,c,u,h),this.controlPoints=this.controlPoints.map(({sourcePoint:e})=>((0,_.hZ)(X,e.x,e.y),b(X,X,U),{sourcePoint:e,mapPoint:new O.A({x:X[0],y:X[1],spatialReference:t})})))}get inverseTransform(){return null==this.transform?null:(0,y.B8)((0,x.vt)(),this.transform)}get transform(){return this._updateTransform()}toMap(e){if(null==e||null==this.transform||null==this.controlPoints||!$(this.controlPoints[0]))return null;(0,_.hZ)(X,e.x,e.y);const t=this.controlPoints[0].mapPoint.spatialReference;return b(X,X,this.transform),new O.A({x:X[0],y:X[1],spatialReference:t})}toSource(e){if(null==e||null==this.inverseTransform||null==this.controlPoints||!$(this.controlPoints[0]))return null;const t=this.controlPoints[0].mapPoint.spatialReference;return e=e.normalize(),null==(e=(0,L.projectOrLoad)(e,t).geometry)?null:((0,_.hZ)(X,e.x,e.y),b(X,X,this.inverseTransform),(0,R.tc)(X[0],X[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:i}=this;if(!(null!=t&&n>0&&i>0))return null;const[r,o,s,a]=t;if(!$(r))return null;const l=r.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(!$(c.controlPoint))return null;null==e&&(e=(0,x.vt)());let d=null;return d=$(u.controlPoint)&&$(h.controlPoint)?Q(e,r,c.controlPoint,u.controlPoint,h.controlPoint):$(u.controlPoint)?function(e,t,n,i){return J(z,W,t),J(V,K,n),J(k,D,i),(0,_.Cc)(G,z,V,.5),(0,_.e$)(G,k,G,Math.PI),(0,_.Cc)(F,W,K,.5),(0,_.e$)(F,D,F,Math.PI),ie(e,z,V,k,G,W,K,D,F)}(e,r,c.controlPoint,u.controlPoint):function(e,t,n){return J(z,W,t),J(V,K,n),(0,_.e$)(k,V,z,q),(0,_.e$)(G,z,V,q),(0,_.e$)(D,K,W,-q),(0,_.e$)(F,W,K,-q),ie(e,z,V,k,G,W,K,D,F)}(e,r,c.controlPoint),d.every(e=>0===e)?null:d}_projectControlPoint(e,t){if(!$(e))return{valid:!0,controlPoint:e};const{sourcePoint:n,mapPoint:i}=e,{geometry:r,pending:o}=(0,L.projectOrLoad)(i,t);return o?{valid:!1,controlPoint:null}:o||r?{valid:!0,controlPoint:new B.A({sourcePoint:n,mapPoint:r})}:(s.A.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:e,sourceSpatialReference:i.spatialReference,targetSpatialReference:t}),{valid:!1,controlPoint:null})}};function $(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(0,i.Cg)([(0,c.MZ)({type:[B.A],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[H],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:u.A,isRequired:!0}}}}})],N.prototype,"controlPoints",null),(0,i.Cg)([(0,j.w)("controlPoints")],N.prototype,"readControlPoints",null),(0,i.Cg)([(0,Y.K)("controlPoints")],N.prototype,"writeControlPoints",null),(0,i.Cg)([(0,c.MZ)({clonable:!1})],N.prototype,"coords",null),(0,i.Cg)([(0,c.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],N.prototype,"height",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"inverseTransform",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"transform",null),(0,i.Cg)([(0,c.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],N.prototype,"width",void 0),N=(0,i.Cg)([(0,c.$K)("esri.layers.support.ControlPointsGeoreference")],N);const z=(0,S.vt)(),V=(0,S.vt)(),k=(0,S.vt)(),G=(0,S.vt)(),W=(0,S.vt)(),K=(0,S.vt)(),D=(0,S.vt)(),F=(0,S.vt)(),q=Math.PI/2;function J(e,t,n){(0,_.hZ)(e,n.sourcePoint.x,n.sourcePoint.y),(0,_.hZ)(t,n.mapPoint.x,n.mapPoint.y)}function Q(e,t,n,i,r){return J(z,W,t),J(V,K,n),J(k,D,i),J(G,F,r),ie(e,z,V,k,G,W,K,D,F)}const ee=new Array(8).fill(0),te=new Array(8).fill(0);function ne(e,t,n,i,r){return e[0]=t[0],e[1]=t[1],e[2]=n[0],e[3]=n[1],e[4]=i[0],e[5]=i[1],e[6]=r[0],e[7]=r[1],e}function ie(e,t,n,i,r,o,s,a,l){return A(e,ne(ee,t,n,i,r),ne(te,o,s,a,l))}var re=n(11254),oe=n(21287),se=n(84952),ae=n(13069),le=n(92474),ce=n(64108);let ue=0;const he=e=>{const t=e;let n=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:ue++})}};return n=(0,i.Cg)([(0,ce.$)("esri.core.NumericIdentifiable")],n),n};var de=n(35666),pe=n(5443),me=n(21325);const fe=(0,S.vt)();let ge=class extends Z{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:i}=this;if(null==e||null==t||null==n||null==i)return null;const r=e.spatialReference;return t=this.projectOrWarn(t,r),n=this.projectOrWarn(n,r),i=this.projectOrWarn(i,r),null==t||null==n||null==i?null:new E.A({rings:[[[n.x,n.y],[e.x,e.y],[t.x,t.y],[i.x,i.y],[n.x,n.y]]],spatialReference:r})}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:[[i,r,o,s]]}=e;this.bottomLeft=new O.A({x:i[0],y:i[1],spatialReference:n}),this.topLeft=new O.A({x:r[0],y:r[1],spatialReference:n}),this.topRight=new O.A({x:o[0],y:o[1],spatialReference:n}),this.bottomRight=new O.A({x:s[0],y:s[1],spatialReference:n})}toSourceNormalized(e){const{topLeft:t,topRight:n,bottomRight:i,bottomLeft:r}=this;if(null==e||null==t||null==n||null==i||null==r)return null;const o=t.spatialReference;e=e.normalize();const s=(0,L.projectOrLoad)(e,o).geometry;if(null==s)return null;(0,_.hZ)(fe,s.x,s.y);const a=A((0,x.vt)(),[t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y],[0,0,0,1,1,0,1,1]);return b(fe,fe,a),(0,R.tc)(fe[0],fe[1])}};(0,i.Cg)([(0,c.MZ)({clonable:!1})],ge.prototype,"coords",null),(0,i.Cg)([(0,c.MZ)({type:O.A})],ge.prototype,"bottomLeft",void 0),(0,i.Cg)([(0,c.MZ)({type:O.A})],ge.prototype,"bottomRight",void 0),(0,i.Cg)([(0,c.MZ)({type:O.A})],ge.prototype,"topLeft",void 0),(0,i.Cg)([(0,c.MZ)({type:O.A})],ge.prototype,"topRight",void 0),ge=(0,i.Cg)([(0,c.$K)("esri.layers.support.CornersGeoreference")],ge);const ye=ge;var xe=n(34727),_e=n(34304);let ve=class extends Z{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:i,spatialReference:r}=this.extent;let o;if(this.rotation){const{x:r,y:s}=this.extent.center,a=we(r,s,this.rotation);o=[a(e,t),a(e,i),a(n,i),a(n,t)],o.push(o[0])}else o=[[e,t],[e,i],[n,i],[n,t],[e,t]];return new E.A({rings:[o],spatialReference:r})}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,i,r]],extent:{center:{x:o,y:s}}}=e,a=(0,xe.KJ)(Math.PI/2-Math.atan2(i[1]-n[1],i[0]-n[0])),l=we(o,s,-a),[c,u]=l(n[0],n[1]),[h,d]=l(r[0],r[1]);this.extent=new pe.A({xmin:c,ymin:u,xmax:h,ymax:d,spatialReference:t}),this.rotation=a}toSourceNormalized(e){const{extent:t,rotation:n}=this;if(null==e||null==t)return null;const{xmin:i,ymin:r,xmax:o,ymax:s,center:a,spatialReference:l}=t;e=e.normalize();const c=(0,L.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,R.tc)((0,xe.hs)(u,i,o,0,1),(0,xe.hs)(h,s,r,0,1))}};function we(e,t,n){const i=(0,_e.DF)(n),r=Math.cos(i),o=Math.sin(i);return(n,i)=>[r*(n-e)+o*(i-t)+e,r*(i-t)-o*(n-e)+t]}function Pe(e,t){const n=(0,de.aB)(t);return function(e){return"media"===e?.type}(e)&&!!e.portalItem&&null!=n&&n>3}function Me(e,t,n){return{enabled:!Pe(n?.layer,n?.origin),ignoreOrigin:!0}}(0,i.Cg)([(0,c.MZ)({clonable:!1})],ve.prototype,"coords",null),(0,i.Cg)([(0,c.MZ)({type:pe.A})],ve.prototype,"extent",void 0),(0,i.Cg)([(0,c.MZ)({type:Number})],ve.prototype,"rotation",void 0),ve=(0,i.Cg)([(0,c.$K)("esri.layers.support.ExtentAndRotationGeoreference")],ve);const Ie={json:{name:"url",type:String,write:{overridePolicy:Me}}},be={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:Me}}},Ae={types:{key:"type",base:Z,typeMap:{"control-points":N,corners:ye,"extent-and-rotation":ve}},json:{types:{key:"type",base:Z,typeMap:{"control-points":N}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};var Ce=n(59923);let Re=class extends(he((0,a.M)(le.x_))){constructor(e){super(e),this.georeference=null,this.opacity=1}readGeoreference(e){return N.fromJSON(e)}writeGeoreference(e,t,n,i){const r=i?.resources?.pendingOperations,o=()=>{const r=function(e,t,n){if(!e||"control-points"===e.type)return e;const{coords:i}=e;if(5!==i?.rings[0]?.length)return null;const[r,o,s,a]=i.rings[0],{spatialReference:l}=i;return new N({controlPoints:[new B.A({mapPoint:new O.A({x:r[0],y:r[1],spatialReference:l}),sourcePoint:(0,R.tc)(0,n)}),new B.A({mapPoint:new O.A({x:o[0],y:o[1],spatialReference:l}),sourcePoint:(0,R.tc)(0,0)}),new B.A({mapPoint:new O.A({x:s[0],y:s[1],spatialReference:l}),sourcePoint:(0,R.tc)(t,0)}),new B.A({mapPoint:new O.A({x:a[0],y:a[1],spatialReference:l}),sourcePoint:(0,R.tc)(t,n)})],width:t,height:n})}(this.georeference,this.contentWidth,this.contentHeight);if(r){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!==r.controlPoints?.length)return void(0,Ce.qt)(i,"ControlPointsGeoreference.controlPoints","only 'control-points' georeference with 4 control points may be persisted.");t[n]=r.write({},i)}};if("control-points"!==e.type&&!this.loaded&&r)return t[n]={},void r.push(this.load().then(o));o()}get contentWidth(){return 0}get contentHeight(){return 0}toSource(e){const{georeference:t,contentWidth:n,contentHeight:i}=this;if(null==e||null==t||0===n||0===i)return null;const r=t.toSourceNormalized(e);return null==r?null:(r.x*=n,r.y*=i,r)}};(0,i.Cg)([(0,c.MZ)(Ae)],Re.prototype,"georeference",void 0),(0,i.Cg)([(0,j.w)("georeference")],Re.prototype,"readGeoreference",null),(0,i.Cg)([(0,Y.K)("georeference")],Re.prototype,"writeGeoreference",null),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],Re.prototype,"opacity",void 0),Re=(0,i.Cg)([(0,c.$K)("esri.layers.support.MediaElementBase")],Re);var Se=n(85648);const Oe=Symbol("ImageElementInstance"),Ee=Symbol("VideoElementInstance");function Le(e){return function(e){return null!=e&&"object"==typeof e&&Oe in e}(e)||function(e){return null!=e&&"object"==typeof e&&Ee in e}(e)}var Be,Te=n(97159);let Ze=class extends Re{static{Be=Oe}constructor(e){super(e),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this[Be]=!0,this.image=null}load(){const e=this.image;if("string"==typeof e){const t=(0,oe.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,i){if(null==e)return;const r=i?.portalItem,o=i?.resources;if(!r||!o)return void("string"==typeof e&&(t[n]=(0,Te.t)(e,i)));const s=function(e){return"string"==typeof e&&!(0,se.DB)(e)&&!(0,se.w8)(e)}(e)?e:null;if(s){if(null==(0,Te.i)(s))return void(t[n]=s);const e=(0,Te.t)(s,{...i,verifyItemRelativeUrls:i?.verifyItemRelativeUrls?{writtenUrls:i.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1);if(r&&e&&!(0,se.oP)(e))return o.toKeep.push({resource:r.resourceFromPath(e),compress:!1}),void(t[n]=e)}t[n]="<pending>",o.pendingOperations.push(async function(e){return"string"==typeof e?(0,se.DB)(e)?(0,se.N9)(e):(await(0,re.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,i=document.createElement("canvas"),r=i.getContext("2d");return i.width=t,i.height=n,e instanceof HTMLImageElement?r.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&r.putImageData(e,0,0),i}(e).toBlob(t))}(e).then(e=>{const i=function(e,t){const n=(0,ae.lk)(),i=`${(0,se.fj)("media",n)}.${(0,Se.n)({type:"blob",blob:e})}`;return t.resourceFromPath(i)}(e,r);t[n]=i.itemRelativeUrl,o.toAdd.push({resource:i,content:{type:"blob",blob:e},compress:!1,finish:e=>{this.image=e.url}})}))}};(0,i.Cg)([(0,c.MZ)()],Ze.prototype,"animationOptions",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Ze.prototype,"content",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Ze.prototype,"contentWidth",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Ze.prototype,"contentHeight",null),(0,i.Cg)([(0,c.MZ)(Ie)],Ze.prototype,"image",void 0),(0,i.Cg)([(0,j.w)("image",["url"])],Ze.prototype,"readImage",null),(0,i.Cg)([(0,Y.K)("image")],Ze.prototype,"writeImage",null),(0,i.Cg)([(0,c.MZ)(be)],Ze.prototype,"type",void 0),Ze=(0,i.Cg)([(0,c.$K)("esri.layers.support.ImageElement")],Ze);var je=n(62885),Ye=n(65529),Ue=n(61893),Xe=n(36708),He=n(19419),Ne=n(12176),$e=n(6518),ze=n(69622),Ve=n(89056);let ke=class extends ze.A{constructor(e){super(e)}get bounds(){const e=this.coords;return null==e?.extent?null:(0,He.VY)(e.extent)}get coords(){const e=this.element.georeference?.coords;return(0,L.projectOrLoad)(e,this.spatialReference).geometry}get normalizedCoords(){return E.A.fromJSON((0,Ve.jZ)(this.coords))}get normalizedBounds(){const e=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=e?(0,He.VY)(e):null}};(0,i.Cg)([(0,c.MZ)()],ke.prototype,"spatialReference",void 0),(0,i.Cg)([(0,c.MZ)()],ke.prototype,"element",void 0),(0,i.Cg)([(0,c.MZ)()],ke.prototype,"bounds",null),(0,i.Cg)([(0,c.MZ)()],ke.prototype,"coords",null),(0,i.Cg)([(0,c.MZ)()],ke.prototype,"normalizedCoords",null),(0,i.Cg)([(0,c.MZ)()],ke.prototype,"normalizedBounds",null),ke=(0,i.Cg)([(0,c.$K)("esri.layers.support.MediaElementView")],ke);var Ge,We=n(16494),Ke=n(38969);const De=Symbol("canplay");let Fe=class extends Re{static{Ge=Ee}constructor(e){super(e),this.autoplay=!0,this.content=null,this.type="video",this[Ge]=!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=We.W5.sanitizeUrl((0,se.s2)(e)),t.crossOrigin="anonymous",t.autoplay=this.autoplay,t.muted=!0,t.loop=!0,t.playsInline=!0,this._loadVideo(t).then(()=>{this._set("content",t)})})):e instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(e).then(()=>{this._set("content",e)})):this.addResolvingPromise(Promise.reject(new o.A("video-element:invalid-video-type","Invalid video type",{video:e}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.content?.currentTime}set currentTime(e){if(!this.content)return;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,i){if(!e)return void(i?.messages&&i.messages.push(new o.A("video-element:unsupported-video","video source is missing")));const r=function(e){return"string"==typeof e&&!(0,se.DB)(e)&&!(0,se.w8)(e)}(e)?e:null;if(!r)return void(i?.messages&&i.messages.push(new o.A("video-element:unsupported-video","video source must be an absolute url")));!(0,se.oP)(r)&&i?.blockedRelativeUrls&&i.blockedRelativeUrls.push(r);const s=(0,se.s2)(r);(0,Te.i)(s)?i?.messages&&i.messages.push(new o.A("video-element:unsupported-video","video source cannot be an item resource")):t[n]=s}async _preProcessVideoUrl(e){if((0,se.zs)(e))return(0,se.yM)(e);try{return await(0,re.A)(e,{method:"head"}),e}catch{try{return(0,se.yM)(e,!0)}catch{return e}}}async _loadVideo(e){"anonymous"!==e.crossOrigin&&(e.crossOrigin="anonymous",(0,se.w8)(e.src)||(e.src=e.src));try{await(0,Ke.i)(e,e=>this.addHandles(e,De)),this.autoplay&&await e.play().catch(e=>{throw console.error(e),e})}finally{this.removeHandles(De)}}};(0,i.Cg)([(0,c.MZ)()],Fe.prototype,"autoplay",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Fe.prototype,"content",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Fe.prototype,"contentWidth",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Fe.prototype,"contentHeight",null),(0,i.Cg)([(0,c.MZ)({type:Number})],Fe.prototype,"currentTime",null),(0,i.Cg)([(0,c.MZ)({type:Number})],Fe.prototype,"duration",null),(0,i.Cg)([(0,c.MZ)(Ie)],Fe.prototype,"video",null),(0,i.Cg)([(0,Y.K)("video")],Fe.prototype,"writeVideo",null),(0,i.Cg)([(0,c.MZ)(be)],Fe.prototype,"type",void 0),Fe=(0,i.Cg)([(0,c.$K)("esri.layers.support.VideoElement")],Fe);const qe={key:"type",defaultKeyValue:"image",base:Re,typeMap:{image:Ze,video:Fe}},Je=r.A.ofType(qe);let Qe=class extends((0,le.WV)((0,Ue.g)(Ye.nJ))){constructor(e){super(e),this._index=new $e.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 ke({spatialReference:t,element:n});this._elementViewsMap.set(n,e);const i=(0,Xe.wB)(()=>e.coords,()=>this._updateIndexForElement(e,!1));this._updateIndexForElement(e,!0),this.addHandles(i,e)}this._elementsIndexes.clear(),this.elements.forEach((e,t)=>this._elementsIndexes.set(e,t)),this.emit("refresh")},this.elements=new Je}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:u.A.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}get elements(){return this._get("elements")}set elements(e){this._set("elements",(0,je.V)(e,this._get("elements"),Je))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const e=this._index.fullBounds;return null==e?null:new pe.A({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:this.spatialReference})}set spatialReference(e){"not-loaded"===this.loadStatus?this._set("spatialReference",e):s.A.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(e,t){await this.load(),await(0,L.initializeProjection)(e.spatialReference,this.spatialReference,null,t);const n=(0,me.aI)(e.spatialReference,this.spatialReference)?e:(0,L.project)(e,this.spatialReference);if(!n)return[];const i=n.normalize(),r=[];for(const e of i)this._index.forEachInBounds((0,He.VY)(e),({normalizedCoords:t,element:n})=>{null!=t&&(0,Ne.fA)(e,t)&&r.push(n)});return r.sort((e,t)=>this._elementsIndexes.get(e)-this._elementsIndexes.get(t)),r}hasElement(e){return this.elements.includes(e)}_updateIndexForElement(e,t){const n=e.normalizedBounds,i=this._index.has(e),r=null!=n;this._index.delete(e),r&&this._index.set(e,n),this.notifyChange("fullExtent"),t||(i!==r?this.emit("refresh"):this.emit("change",{element:e.element}))}};(0,i.Cg)([(0,c.MZ)()],Qe.prototype,"elements",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Qe.prototype,"fullExtent",null),(0,i.Cg)([(0,c.MZ)()],Qe.prototype,"spatialReference",null),Qe=(0,i.Cg)([(0,c.$K)("esri.layers.support.LocalMediaElementSource")],Qe);let et=class extends((0,d.dM)((0,f.j)((0,p.q)((0,m.A)((0,a.M)(h.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,i)=>{const{save:r,saveAs:o}=await n.e(3561).then(n.bind(n,63561));switch(e){case 0:return r(this,t);case 1:return o(this,i,t)}}),this.source=new Qe}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 i=Le(t)?new Qe({elements:new r.A([t])}):t;this._set("effectiveSource",i),this.spatialReference&&(i.spatialReference=this.spatialReference),await i.load(e),this.spatialReference=i.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 Qe({elements:new r.A(e)}):e instanceof r.A?new Qe({elements:e}):e:null}readSource(e,t,n){if("itemId"in t&&t.itemId)return;const i=this._createSource(t);return i?.read(t,n),i}writeSource(e,t,n,i){if(e&&e instanceof Qe){const t=e.elements.length;if(1!==t)return void(i?.messages&&i.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)}Le(e)?e.write(t,i):i?.messages&&(e?i.messages.push(new o.A("media-layer:unsupported-source","only media elements of type 'ImageElement' or 'VideoElement' can be persisted")):i.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 Ze;case"video":return new Fe}return null}_getSourceOverride(e,t){if(Le(e)&&3===this.originIdOf("source")&&t&&(5===this.originIdOf("georeference")||4===this.originIdOf("georeference"))){const n=e.toJSON(),i=this._createSource(n);return i.read({...n},{origin:"portal-item"}),i.read({georeference:t},{origin:"web-map"}),i.read({georeference:t},{origin:"web-scene"}),i}return null}};(0,i.Cg)([(0,c.MZ)({readOnly:!0})],et.prototype,"effectiveSource",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!0}}}})],et.prototype,"georeference",void 0),(0,i.Cg)([(0,j.w)("web-document","georeference")],et.prototype,"readGeoreference",null),(0,i.Cg)([(0,c.MZ)({type:String})],et.prototype,"copyright",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],et.prototype,"fullExtent",null),(0,i.Cg)([(0,c.MZ)({type:["MediaLayer"]})],et.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)({type:["show","hide"]})],et.prototype,"listMode",void 0),(0,i.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:Pe(this,n?.origin)&&Le(e)&&!!e.georeference&&e.originIdOf("georeference")>3}}}}})],et.prototype,"source",null),(0,i.Cg)([(0,c.wg)("source")],et.prototype,"castSource",null),(0,i.Cg)([(0,j.w)("source",["url"])],et.prototype,"readSource",null),(0,i.Cg)([(0,Y.K)("source")],et.prototype,"writeSource",null),(0,i.Cg)([(0,c.MZ)({type:u.A})],et.prototype,"spatialReference",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],et.prototype,"type",void 0),et=(0,i.Cg)([(0,c.$K)("esri.layers.MediaLayer")],et);const tt=et},38969(e,t,n){n.d(t,{i:()=>r});var i=n(37955);function r(e,t){return new Promise((n,r)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(t((0,i.Oo)(e,"canplay",n)),t((0,i.Oo)(e,"error",r)))})}},48163(e,t,n){function i(){return[0,0]}function r(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:()=>r,vt:()=>i});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:r,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const n=Math.min(2,e.length);for(let i=0;i<n;++i)t[i]=e[i];return t},fromValues:o,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},62885(e,t,n){n.d(t,{H:()=>o,V:()=>r});var i=n(7762);function r(e,t,n=i.A){return t||(t=new n),t===e||t.destroyed||(t.removeAll(),(r=e)&&(Array.isArray(r)||"items"in r&&Array.isArray(r.items))?t.addMany(e):e&&t.add(e)),t;var r}function o(e){return e}},69540(e,t,n){n.d(t,{OU:()=>u,Pw:()=>h});var i=n(5482),r=n(69622),o=(n(44208),n(4718)),s=(n(53966),n(97768)),a=n(88620),l=n(64108);const c=Symbol("ClonableMixin"),u=e=>{var t;const n=e;let r=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,i=t.store,r={},l=new Map;for(const t in n){const s=n[t],a=i?.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):r[t]=h}const c=new(0,Object.getPrototypeOf(this).constructor)(r);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 r=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],r),r},h=u(r.A)},75503(e,t,n){n.d(t,{wq:()=>a});var i=n(4576),r=n(21818),o=(n(44208),n(15142)),s=n(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),w.prune(),P.prune(),M.prune(),I.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const i=this._toBBox;if(_(e,n))for(w.clear();n;){for(let r=0,o=n.children.length;r<o;r++){const o=n.children[r],s=n.leaf?i(o):o;_(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(!_(e,t))return!1;for(w.clear();t;){for(let i=0,r=t.children.length;i<r;i++){const r=t.children[i],o=t.leaf?n(r):r;if(_(e,o)){if(t.leaf||x(e,o))return!0;w.push(r)}}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 C([]),this}remove(e){if(!e)return this;let t,n=this._data,o=null,s=0,a=!1;const l=this._toBBox(e);for(M.clear(),I.clear();n||M.length>0;){if(n||(n=M.pop(),o=M.data[M.length-1],s=I.pop()??0,a=!0),n.leaf&&(t=(0,i.qh)(n.children,(0,r.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),M.push(n),this._condense(M),this;a||n.leaf||!x(n,l)?o?(s++,n=o.children[s],a=!1):n=null:(M.push(n),I.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,i){const r=n-t+1;let o=this._maxEntries;if(r<=o){const i=new C(e.slice(t,n+1));return c(i,this._toBBox),i}i||(i=Math.ceil(Math.log(r)/Math.log(o)),o=Math.ceil(r/o**(i-1)));const s=new R([]);s.height=i;const a=Math.ceil(r/o),l=a*Math.ceil(Math.sqrt(o));v(e,t,n,l,this._compareMinX);for(let r=t;r<=n;r+=l){const t=Math.min(r+l-1,n);v(e,r,t,a,this._compareMinY);for(let n=r;n<=t;n+=a){const r=Math.min(n+a-1,t);s.children.push(this._build(e,n,r,i-1))}}return c(s,this._toBBox),s}_insert(e,t,n){const i=this._toBBox,r=n?e:i(e);M.clear();const o=function(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,r=1/0;for(let o=0,s=t.children.length;o<s;o++){const s=t.children[o],a=m(s),l=g(e,s)-a;l<r?(r=l,i=a<i?a:i,n=s):l===r&&a<i&&(i=a,n=s)}t=n||t.children[0]}return t}(r,this._data,t,M);for(o.children.push(e),h(o,r);t>=0&&M.data[t].children.length>this._maxEntries;)this._split(M,t),t--;!function(e,t,n){for(let i=n;i>=0;i--)h(t.data[i],e)}(r,M,t)}_split(e,t){const n=e.data[t],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);const o=this._chooseSplitIndex(n,r,i);if(!o)return;const s=n.children.splice(o,n.children.length-o),a=n.leaf?new C(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 i,r,o;i=r=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=m(t)+m(a);l<i?(i=l,o=s,r=c<r?c:r):l===i&&c<r&&(r=c,o=s)}return o}_chooseSplitAxis(e,t,n){const i=e.leaf?this._compareMinX:d,r=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,r)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const r=this._toBBox,o=u(e,0,t,r),s=u(e,n-t,n,r);let a=f(o)+f(s);for(let i=t;i<n-t;i++){const t=e.children[i];h(o,e.leaf?r(t):t),a+=f(o)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];h(s,e.leaf?r(t):t),a+=f(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 r=e.data[t-1],o=r.children;o.splice((0,i.qh)(o,n,o.length,r.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(P.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,r.z)(e));else P.pushArray(n.children);n=P.pop()??null}}function c(e,t){u(e,0,e.children.length,t,e)}function u(e,t,n,i,r){r||(r=new C([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let o,s=t;s<n;s++)o=e.children[s],h(r,e.leaf?i(o):o);return r}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 d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function g(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function y(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,r-n)*Math.max(0,o-i)}function x(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function _(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function v(e,t,n,i,r){const o=[t,n];for(;o.length;){const t=o.pop(),n=o.pop();if(t-n<=i)continue;const a=n+Math.ceil((t-n)/i/2)*i;(0,s.q)(e,a,n,t,r),o.push(n,a,a,t)}}const w=new o.A,P=new o.A,M=new o.A,I=new o.A({deallocator:void 0});class b{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends b{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class C extends A{constructor(e){super(),this.children=e,this.leaf=!0}}class R extends A{constructor(e){super(),this.children=e,this.leaf=!1}}},80754(e,t,n){n.d(t,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>c});var i=n(82799),r=n(16930),o=n(60408);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.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:()=>r});var i=n(84952);function r(e){return o[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.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 i=n(12195),r=n(19419),o=n(537),s=n(95108),a=n(60408),l=n(80754),c=n(21325);function u(e){return d(e,!0)}function h(e){return d(e,!1)}function d(e,t){if(null==e)return null;const n=e.spatialReference,r=(0,c.Vp)(n),s=(0,i.W)(e)?e.toJSON():e;if(!r)return s;const u=(0,c.K8)(n)?102100:4326,h=l.j7[u].maxX,d=l.j7[u].minX;if((0,a.fT)(s))return m(s,h,d);if((0,a.U9)(s))return s.points=s.points.map(e=>m(e,h,d)),s;if((0,a.ZC)(s))return p(s,r);if((0,a.Bi)(s)||(0,a.Rg)(s)){const e=(0,o.Rg)(v,s),n={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},i=(0,l.kd)(n.xmin,d)*(2*h),r=0===i?s:(0,l.kS)(s,i);return n.xmin+=i,n.xmax+=i,n.xmax>h?x(r,h,t):n.xmin<d?x(r,d,t):r}return s}function p(e,t){if(!t)return e;const n=function(e,t){const n=[],{ymin:i,ymax:r,xmin:o,xmax:s}=e,a=e.xmax-e.xmin,[l,c]=t.valid,{x:u,frameId:h}=f(e.xmin,t),{x:d,frameId:p}=f(e.xmax,t),m=u===d&&a>0;if(a>2*c){const e={xmin:o<s?u:d,ymin:i,xmax:c,ymax:r},t={xmin:l,ymin:i,xmax:o<s?d:u,ymax:r},a={xmin:0,ymin:i,xmax:c,ymax:r},m={xmin:l,ymin:i,xmax:0,ymax:r},f=[],y=[];g(e,a)&&f.push(h),g(e,m)&&y.push(h),g(t,a)&&f.push(p),g(t,m)&&y.push(p);for(let e=h+1;e<p;e++)f.push(e),y.push(e);n.push(new _(e,[h]),new _(t,[p]),new _(a,f),new _(m,y))}else u>d||m?n.push(new _({xmin:u,ymin:i,xmax:c,ymax:r},[h]),new _({xmin:l,ymin:i,xmax:d,ymax:r},[p])):n.push(new _({xmin:u,ymin:i,xmax:d,ymax:r},[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 m(e,t,n){if(Array.isArray(e)){const i=e[0];if(i>t){const n=(0,l.kd)(i,t);e[0]=i+n*(-2*t)}else if(i<n){const t=(0,l.kd)(i,n);e[0]=i+t*(-2*n)}}else{const i=e.x;if(i>t){const n=(0,l.kd)(i,t);e.x+=n*(-2*t)}else if(i<n){const t=(0,l.kd)(i,n);e.x+=t*(-2*n)}}return e}function f(e,t){const[n,i]=t.valid,r=2*i;let o,s=0;return e>i?(o=Math.ceil(Math.abs(e-i)/r),e-=o*r,s=o):e<n&&(o=Math.ceil(Math.abs(e-n)/r),e+=o*r,s=-o),{x:e,frameId:s}}function g(e,t){const{xmin:n,ymin:i,xmax:r,ymax:o}=t;return y(e,n,i)&&y(e,n,o)&&y(e,r,o)&&y(e,r,i)}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 i=!(0,a.Rg)(e);if(i&&(0,s.m3)(e),n)return(new w).cut(e,t);const r=i?e.rings:e.paths,o=i?4:2,l=r.length,c=-2*t;for(let e=0;e<l;e++){const t=r[e];if(t&&t.length>=o){const e=[];for(const[n,...i]of t)e.push([n+c,...i]);r.push(e)}}return i?e.rings=r:e.paths=r,e}class _{constructor(e,t){this.extent=e,this.frameIds=t}}const v=(0,r.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 i=-2*this._xCut;for(const e of this._linesOut)if(e&&e.length>=this._minPts){for(const t of e)t[0]+=i;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?(P(this._lineIn,n<=0?e:this._xCut,t),P(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 P(e,t,n){const i=e.length;i>1&&e[i-1][0]===t&&e[i-2][0]===t?e[i-1][1]=n:e.push([t,n])}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1918,3931,6061,6312,7837,7992,8125,9169,9397],{159(e,t,n){n.d(t,{A:()=>u});var r,s=n(5482),i=n(69622),o=n(91429),a=n(99157);let u=r=class extends i.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,s.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],u.prototype,"steps",void 0),u=r=(0,s.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},4197(e,t,n){n.d(t,{Vj:()=>c,cj:()=>u,jh:()=>i,l5:()=>a,xm:()=>o});var r=n(34275),s=n(9093);function i(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function u(e){return[...e]}function c(e){const t=(0,s.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},5482(e,t,n){function r(e,t,n,r){var s,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function s(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,s;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(s=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");s&&(r=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}n.d(t,{Cg:()=>r,hk:()=>o,mS:()=>s}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function o(e){function t(t){e.error=e.hasError?new i(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function s(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(s);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(s,function(e){return t(e),s()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},5808(e,t,n){n.d(t,{O:()=>r});const r={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}},7817(e,t,n){n.d(t,{e:()=>i,l:()=>a,s:()=>o});var r=n(86211),s=n(78125);function i(e,t={}){const{unit:n}=t;let i=(0,s.fromGeometry)(e).calculateLength2D();if(i&&n){const t=(0,s.getSpatialReference)(e);i=(0,r.PQ)(i,t,n)}return i}const o=!0,a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:o},Symbol.toStringTag,{value:"Module"}))},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(e,t,n,r,s,i,o,a,u,c,l,h,f,m,g,p){return[e,t,n,r,s,i,o,a,u,c,l,h,f,m,g,p]}},Symbol.toStringTag,{value:"Module"}))},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>s});var r=n(49208);function s(e,t,n,s,i,o,a=Math.floor(e.length/3)){const u=(0,r.jd)(t,i);if(null==u)return!1;if(u===r.pO){if(e===s&&n===o)return!0;const t=n+3*a;for(let r=n,i=o;r<t;r++,i++)s[i]=e[r]??0;return!0}const c=n+3*a;for(let t=n,r=o;t<c;t+=3,r+=3)u(e,t,s,r);return!0}},10222(e,t,n){n.d(t,{e:()=>i,s:()=>a});var r=n(81150),s=n(78125);function i(e){const t=(0,s.getSpatialReference)(e);return(0,s.toGeometry)((0,r.g7)((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),!1),t)}const o=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:function(e){const t=e.map(s.fromGeometry),n=(0,s.getSpatialReference)(e);return(0,r.zo)(t,(0,s.fromSpatialReference)(n),!1).map(e=>(0,s.toGeometry)(e,n))},isSimple:function(e){return(0,r.Pg)((0,s.fromGeometry)(e),(0,s.fromSpatialReference)((0,s.getSpatialReference)(e)),!1)},supportsCurves:o},Symbol.toStringTag,{value:"Module"}))},11918(e,t,n){n.r(t),n.d(t,{execute:()=>d,isLoaded:()=>g,load:()=>p,supportsCurves:()=>m});var r=n(86211),s=n(83290);let i;function o(){return!!i&&(0,s.i)()}async function a(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6859),n.e(2764)]).then(n.bind(n,12764)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,s.l)()]);i=new e.OperatorGeodeticDistance,t(s.p)}}function u(e,t,n,r){return i.execute(e,t,n,r,null)}var c=n(5808);let l,h,f,m;function g(){return!!l&&o()}async function p(){if(!g()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(3931)]).then(n.bind(n,78125)),a()]);l=e.fromGeometry,h=e.fromSpatialReference,f=e.getSpatialReference,m=i.supportsCurves()}}function d(e,t,n={}){const{curveType:s="geodesic",unit:i}=n,o=f(e);let a=u(l(e),l(t),h(o),c.O[s]);return a&&i&&(a=(0,r.oU)(a,"meters",i)),a}},15546(e,t,n){n.d(t,{a:()=>o,c:()=>i});var r=n(55537),s=n(83661);function i(e,t){if(!e.isEmpty())switch(e.getGeometryType()){case r.G.enumPolygon:return a(e);case r.G.enumPolyline:return h(e.getImpl());case r.G.enumLine:case r.G.enumBezier:case r.G.enumEllipticArc:return function(e){const t=e.calculateLength2D();return 0===t?e.getStartXY():e.calculateWeightedCentroid2D().mul(1/t)}(e);case r.G.enumMultiPoint:return function(e){const t=new s.K(0),n=new s.K(0),r=e.getImpl(),i=r.getAttributeStreamRef(0),o=r.getPointCount(),a=new s.P;for(let e=0;e<o;e++)i.queryPoint2D(2*e,a),t.add(a.x),n.add(a.y);const u=new s.P;return u.setCoords(t.getResult(),n.getResult()),u.divThis(o)}(e);case r.G.enumEnvelope:return e.getCenterXY();case r.G.enumPoint:return e.getXY();default:return s.P.construct(Number.NaN,Number.NaN)}return s.P.construct(Number.NaN,Number.NaN)}function o(e,t){return a(e,t)}function a(e,t=-1){const n=new s.K(0),r=new s.K(0),i=e.getImpl();let o;const a=i.hasNonLinearSegments();let h;const f=i.getXY(0);if(-1===t){if(h=i.calculateArea2D(),0===h)return l(e);a&&(o=i.querySegmentIterator());for(let e=0,t=i.getPathCount();e<t;e++)u(f,i,e,n,r),a&&c(f,o,n,r)}else{if(h=i.calculateRingArea2D(t),0===h)return l(e,t);a&&(o=i.querySegmentIterator(),o.resetToPath(t)),u(f,i,t,n,r),a&&c(f,o,n,r)}const m=new s.P,g=new s.P;return m.setCoords(n.getResult(),r.getResult()),g.assign(m.mul(1/h).add(f)),g}function u(e,t,n,r,i){const o=t.getPathStart(n),a=t.getPathEnd(n);if(a-o<3)return;const u=t.getAttributeStreamRef(0),c=u.readPoint2D(2*o),l=u.readPoint2D(2*(o+1));l.subThis(c);const h=new s.K(0),f=t.hasNonLinearSegments(),m=1/3,g=new s.P;for(let e=o+2;e<a;e++){u.queryPoint2D(2*e,g),g.subThis(c);const t=.5*g.crossProduct(l);f&&h.add(t);const n=m*t;r.add((l.x+g.x)*n),i.add((l.y+g.y)*n),l.setCoordsPoint2D(g)}const p=f?h.getResult():t.calculateRingArea2D(n),d=c.sub(e).mul(p);r.add(d.x),i.add(d.y)}function c(e,t,n,s){let i;for(t.nextPath()||(0,r.d)("centroid");null!==(i=t.nextCurve());){const t=i.calculateWeightedAreaCentroid2D(e);n.add(t.x),s.add(t.y)}}function l(e,t=-1){return h(e.getImpl(),t)}function h(e,t=-1){const n=-1===t?e.calculateLength2D():e.calculatePathLength2D(t);if(0===n)return function(e,t=-1){if(-1!==t)return e.getXY(e.getPathStart(t));const n=new s.K(0),r=new s.K(0);for(let t=0;t<e.getPathCount();++t){const s=e.getXY(e.getPathStart(t));n.add(s.x),r.add(s.y)}return s.P.construct(n.getResult(),r.getResult()).mul(1/e.getPathCount())}(e,t);const r=new s.K(0),i=new s.K(0),o=e.querySegmentIterator();for(-1!==t&&o.resetToPath(t);o.nextPath();){const n=o.getPathIndex(),s=e.getXY(e.getPathStart(n));for(;o.hasNextSegment();){const e=o.nextSegment(),t=e.calculateLength2D();if(0===t)continue;const n=e.calculateWeightedCentroid2D().sub(s.mul(t));r.add(n.x),i.add(n.y)}const a=s.mul(e.calculatePathLength2D(n));if(r.add(a.x),i.add(a.y),-1!==t)break}const a=new s.P;return a.setCoords(r.getResult(),i.getResult()),a.mul(1/n)}},16346(e,t,n){n.d(t,{d:()=>l,e:()=>u});var r=n(55537),s=n(26640),i=n(86211),o=n(78125);const a=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,i,o,a){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const u=e,c=t;Number.isNaN(a)&&(a=Number.POSITIVE_INFINITY);const l=new s.D(a,n).calculate(u,c,i,o);return Number.isFinite(l)?l:Number.NaN}};function u(e,t,n={}){const{unit:r}=n;let s=a.execute((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),null);if(s&&r){const t=(0,o.getSpatialReference)(e);s=(0,i.PQ)(s,t,r)}return s}const c=a.supportsCurves(),l=Object.freeze(Object.defineProperty({__proto__:null,execute:u,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},17799(e,t,n){n.d(t,{T9:()=>a,d_:()=>s,gT:()=>i});var r=n(86211);function s(e,t){return{type:(0,r.t$)(t),value:e,unit:t}}function i(e,t){return{type:(0,r.t$)(t),value:e,unit:t}}function o(e,t,n="arithmetic"){return{type:(0,r.t$)(t),value:e,unit:t,rotationType:n}}function a(e,t){return null==e?t:null==t||e.value>(0,r.oU)(t.value,t.unit,e.unit)?e:t}s(0,"meters"),i(0,"square-meters"),o(0,"radians"),o(0,"degrees"),o(0,"degrees","geographic")},21276(e,t,n){n.d(t,{H:()=>i,f:()=>s});var r=n(49186);function s(e){if(e&&"object"==typeof e&&"type"in e&&"mesh"===e.type)throw new r.A("internal:mesh","Mesh geometries are not supported for this operation")}function i(e){e.forEach(s)}},26640(e,t,n){n.d(t,{D:()=>M,m:()=>l,s:()=>y,w:()=>d});var r=n(5482),s=n(55537),i=n(88885),o=n(15756),a=n(83661),u=n(79187),c=n(95213);function l(){return{outPoint:new a.P,index:-1,t:Number.NaN}}function h(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function f(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function m(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function g(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function p(e,t){const n=l();m(n,e),m(e,t),m(t,n)}function d(e,t,n,r,i,a){if(e.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,o.l)(e,t.getEndXY(),0))return f(i,t.getEndXY(),-1,Number.NaN),f(a,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,o.l)(t,e.getEndXY(),0))return f(i,e.getEndXY(),-1,Number.NaN),f(a,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function y(e){const t=e.getPathCount(),n=(0,a.d)(e.getSegmentCount(),0);let r=0;for(let s=0;s<t;++s){const t=r+e.getSegmentCountPath(s);for(let i=r,o=e.getPathStart(s);i<t;++i,++o)n[i]=o;r=t}return(0,i.s)(e.getPointCount(),n),n}function v(e,t){return!!Number.isNaN(t)||e<=t}function x(e){const t=new i.P;return t.addEnvelope(e,!1),t}class M{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==c.P.type||t.getGeometryType()!==c.P.type)&&(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!v(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const s=h(new a.P,(0,a.j)(),Number.NaN),i=h(new a.P,(0,a.j)(),Number.NaN),o=this._ExecuteBruteForce(e,t,s,i);return v(o,this.m_maxDistance)?(null!==n&&m(n,s),null!==r&&m(r,i),o):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==c.P.type&&e.getGeometryType()!==c.E.type||t.getGeometryType()!==c.P.type&&t.getGeometryType()!==c.E.type||(n=!1),n){if(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=h(new a.P,(0,a.j)(),Number.NaN),s=h(new a.P,(0,a.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,n,r);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const s=e.getXY(),i=t.getXY();return f(n,s,0,0),f(r,i,0,0),Math.sqrt(a.P.sqrDistance(s,i))}distancePointMultipoint(e,t,n,r){const s=e.getXY();let i=this.m_maxSqrDistance,o=i,u=!1;const c=t.getPointCount(),l=new a.P;for(let e=0;e<c;++e)if(t.queryXY(e,l),o=a.P.sqrDistance(s,l),this.m_bIsNearCalc){if(o<=i)return 0}else if(!(o>i)&&(!u&&o===i||o<i)&&(i=o,f(n,s,0,0),f(r,l,e,0),u=!0,0===i))return 0;return u?Math.sqrt(i):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const i=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),c=e.getXY();if(!i&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,o.l)(t,c,0))return f(n,c,0,0),f(r,c,-1,Number.NaN),0;t.getImpl().getAccelerators();let l=this.m_maxSqrDistance,h=l,m=-1;const g=new u.Envelope2D,p=t.querySegmentIterator();let d=!1;for(;p.nextPath();)for(;p.hasNextSegment();){const e=p.nextSegment();e.queryEnvelope(g);const t=g.sqrDistance(c);if(t>l)continue;if(!this.m_bIsNearCalc&&d&&t===l)continue;m=e.getClosestCoordinate(c,!1);const s=e.getCoord2D(m);if(h=a.P.sqrDistance(c,s),this.m_bIsNearCalc){if(h<=l)return 0}else if(!(h>l)&&(!d||h<l)&&(l=h,f(n,c,0,0),f(r,s,p.getStartPointIndex(),m),d=!0,0===l))return 0}return d?Math.sqrt(l):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const s=e.getXY();f(n,s,0,0),f(r,s,-1,Number.NaN);const i=t.asEnvelope2D();return i.contains(s)?0:Math.sqrt(i.sqrDistance(s,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,x(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,s,i,o){const u={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===i&&1===o){const r=Math.trunc((0,a.s)(Math.sqrt(e.getPointCount())+1,1,(0,a.i)())),i=Math.trunc((0,a.s)(Math.sqrt(t.getPointCount())+1,1,(0,a.i)()));if((r>=4||i>=4)&&this.distanceMultipointMultipoint(e,t,n,s,r,i)<=this.m_maxSqrDistance)return 0}let c=this.m_maxSqrDistance;const l=[e],h=[t],m=this.swapGeometriesIfBGtA(l,h);m&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o=(0,a.c)(i,i=o),p(n,s)),(0,r.mS)(u,(0,a.h)(()=>{p(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!m),!1);const g=l[0].getImpl(),d=h[0].getImpl(),y=g.getPointCount(),v=d.getPointCount(),x=v>1;let M=!1;const P=new a.P,_=new a.P;for(let e=0;e<y;e+=i){if(g.queryXY(e,P),x){const e=this.m_env2DgeometryB.sqrDistance(P);if(this.m_bIsNearCalc){if(e>c)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(P)<=c)return 0}else if(e>=c)continue}for(let t=0;t<v;t+=o){d.queryXY(t,_);const r=a.P.sqrDistance(P,_);if(this.m_bIsNearCalc){if(r<=c)return 0}else if(!(r>c||M&&r===c)&&(!M||r<c)&&(f(n,P,e,0),f(s,_,t,0),M=!0,c=r,0===c))return M?Math.sqrt(c):Number.POSITIVE_INFINITY}}return M?Math.sqrt(c):Number.POSITIVE_INFINITY}catch(e){u.error=e,u.hasError=!0}finally{(0,r.hk)(u)}}distanceMultipointMultipath(e,t,n,r){let i=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon;const c=t.querySegmentIterator();c.stripAttributes();const l=new u.Envelope2D,h=new a.P;let m=this.m_maxSqrDistance;const g=e.getImpl(),p=g.getPointCount(),d=p>1;let y=!1;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment();if(e.queryLooseEnvelope(l),d){const e=l.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>m)continue}else if(e>m||y&&e===m)continue}for(let s=0;s<p;s++){if(g.queryXY(s,h),i&&0!==(0,o.l)(t,h,0))return f(n,h,-1,Number.NaN),f(r,h,s,0),0;{const e=l.sqrDistance(h);if(this.m_bIsNearCalc){if(e>m)continue}else if(e>m)continue}const a=e.getClosestCoordinate(h,!1),u=e.getCoord2D(a);h.subThis(u);const p=h.sqrLength();if(this.m_bIsNearCalc){if(p<=m)return 0}else if(!(p>m)&&(!y||p<m)&&(m=p,f(n,g.getXY(s),s,0),f(r,u,c.getStartPointIndex(),a),y=!0,0===m))return 0}i=!1}return y?Math.sqrt(m):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,x(e),r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(x(e),t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const s=e.asEnvelope2D(),i=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(i,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,x(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,s){const o={stack:[],error:void 0,hasError:!1};try{const c=[e],h=[t],f=this.swapGeometriesIfAGtB(c,h);f&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),p(n,s)),(0,r.mS)(o,(0,a.h)(()=>{p(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!f),!1);const v=c[0],x=h[0],M=v.querySegmentIterator();M.stripAttributes();const P=x.querySegmentIterator();if(P.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,a.s)(Math.sqrt(v.getPointCount())+1,1,(0,a.i)())),t=Math.trunc((0,a.s)(Math.sqrt(v.getPointCount())+1,1,(0,a.i)()));if(this.distanceMultipointMultipoint(v,x,n,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=l(),t=l();if(d(v,x,M,P,e,t))return m(n,e),m(s,t),0}const _=y(v),N=[],w=new i.S,S=new u.Envelope2D,b=new u.Envelope2D,C=new u.Envelope2D;let I=this.m_maxSqrDistance,A=!0,D=!1;for(let e=0,t=_.length;e<t;++e){v.querySegment(_[e],w,!0);const t=w.get();if(t.queryEnvelope(S),!(S.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>I)){if(this.m_bIsNearCalc&&S.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=I)return 0;for(;P.nextPath();){if(this.progress_(),A)x.queryPathEnvelope(P.getPathIndex(),C),N[P.getPathIndex()]=C.clone();else if(S.sqrDistanceEnvelope(N[P.getPathIndex()],null,null)>I)continue;for(;P.hasNextSegment();){const r=P.nextSegment();if(r.queryEnvelope(b),S.sqrDistanceEnvelope(b,null,null)<=I){const i=!S.isIntersecting(b),o=[0],a=[0];let u=t.distance(r,i,o,a);if(u*=u,this.m_bIsNearCalc&&u<=this.m_maxSqrDistance)return 0;if(u<I||u===I&&_[e]<n.index){if(D=!0,g(n,t,_[e],o[0]),g(s,r,P.getStartPointIndex(),a[0]),0===u)return 0;I=u}}}}P.resetToFirstPath(),A=!1}}return D?Math.sqrt(I):Number.POSITIVE_INFINITY}catch(e){o.error=e,o.hasError=!0}finally{(0,r.hk)(o)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,a.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},27993(e,t,n){n.d(t,{F:()=>a});var r=n(91218),s=n(16930),i=n(9762),o=n(65806);function a(e,t,n,s){return!(null==t||null==s||e.length<2)&&((0,r.canProjectWithoutEngine)(t,s)?(0,i.projectBuffer)(e,t,0,n,s,0,1):(u.x=e[0],u.y=e[1],u.z=e[2],u.spatialReference=t,(0,o.g)(u,n,s)))}const u={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:s.A.WGS84,type:"point"}},28735(e,t,n){n.d(t,{Cv:()=>d,Gh:()=>x,ci:()=>M,je:()=>y,jg:()=>h,tD:()=>v,y7:()=>p,yw:()=>l});var r=n(4718),s=n(21276),i=n(16930),o=n(79258),a=n(21325);function u(e){return 57.29577951308232*e}function c(e){return.017453292519943*e}function l(e){return e/o.$O.radius}function h(e){return Math.PI/2-2*Math.atan(Math.exp(-e/o.$O.radius))}function f(e){return null!=e.wkid||null!=e.wkt}const m=[0,0];function g(e,t,n,r,s){const i=e,o=s;if(o.spatialReference=n,"x"in i&&"x"in o)[o.x,o.y]=t(i.x,i.y,m,r);else if("xmin"in i&&"xmin"in o)[o.xmin,o.ymin]=t(i.xmin,i.ymin,m,r),[o.xmax,o.ymax]=t(i.xmax,i.ymax,m,r);else if("paths"in i&&"paths"in o||"rings"in i&&"rings"in o){const e="paths"in i?i.paths:i.rings,n=[];let s;for(let i=0;i<e.length;i++){const o=e[i];s=[],n.push(s);for(let e=0;e<o.length;e++)s.push(t(o[e][0],o[e][1],[0,0],r)),o[e].length>2&&s[e].push(o[e][2]),o[e].length>3&&s[e].push(o[e][3])}"paths"in o?o.paths=n:o.rings=n}else if("points"in i&&"points"in o){const e=i.points,n=[];for(let s=0;s<e.length;s++)n[s]=t(e[s][0],e[s][1],[0,0],r),e[s].length>2&&n[s].push(e[s][2]),e[s].length>3&&n[s].push(e[s][3]);o.points=n}return s}function p(e,t){const n=e&&(f(e)?e:e.spatialReference),r=t&&(f(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!n||!r)&&(!!(0,a.aI)(r,n)||(0,a.K8)(r)&&(0,a.oT)(n)||(0,a.K8)(n)&&(0,a.oT)(r))}function d(e,t){if(null==e)return null;const n=e.spatialReference,s=t&&(f(t)?t:t.spatialReference);return p(n,s)?(0,a.aI)(n,s)?(0,r.o8)(e):(0,a.K8)(s)?g(e,y,i.A.WebMercator,!1,(0,r.o8)(e)):(0,a.oT)(s)?g(e,v,i.A.WGS84,!1,(0,r.o8)(e)):null:null}function y(e,t,n=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const r=c(t);return n[0]=c(e)*o.$O.radius,n[1]=o.$O.halfSemiMajorAxis*Math.log((1+Math.sin(r))/(1-Math.sin(r))),n}function v(e,t,n=[0,0],r=!1){if(e===a.Mc[0])n[0]=-180;else if(e===a.Mc[1])n[0]=180;else{const t=u(e/o.$O.radius);n[0]=r?t:t-360*Math.floor((t+180)/360)}return n[1]=u(Math.PI/2-2*Math.atan(Math.exp(-t/o.$O.radius))),n}function x(e,t=!1,n=(0,r.o8)(e)){return(0,s.f)(e),(0,s.f)(n),g(e,y,i.A.WebMercator,t,n)}function M(e,t=!1,n=(0,r.o8)(e)){return(0,s.f)(e),(0,s.f)(n),g(e,v,i.A.WGS84,t,n)}},32728(e,t,n){n.d(t,{YH:()=>o,nu:()=>a,wp:()=>i}),n(34727);var r=n(35522),s=n(51850);function i(e,t){const n=Math.sqrt(t[0]*t[0]+t[4]*t[4]+t[8]*t[8]),s=Math.sqrt(t[1]*t[1]+t[5]*t[5]+t[9]*t[9]),i=Math.sqrt(t[2]*t[2]+t[6]*t[6]+t[10]*t[10]);return(0,r.hZ)(e,n,s,i),e}function o(e,t,n){n=n||e;const s=(0,r.Om)(e,t);(0,r.hZ)(n,e[0]-s*t[0],e[1]-s*t[1],e[2]-s*t[2]),(0,r.S8)(n,n)}function a(e,t,n,i=(0,s.vt)()){const o=(0,r.Bw)(e),a=(0,r.Bw)(t),l=(0,r.Om)(e,t)/(o*a);if(l<.9999999999999999){const s=Math.acos(l),h=((1-n)*o+n*a)/Math.sin(s),f=h/o*Math.sin((1-n)*s),m=h/a*Math.sin(n*s);return(0,r.hs)(u,e,f),(0,r.hs)(c,t,m),(0,r.WQ)(i,u,c)}return(0,r.Cc)(i,e,t,n)}(0,s.vt)(),(0,s.vt)(),(0,s.vt)();const u=(0,s.vt)(),c=(0,s.vt)()},34304(e,t,n){n.d(t,{DF:()=>u,FD:()=>s,Ov:()=>i,ct:()=>c});let r=1e-6;function s(){return r}const i=Math.random,o=Math.PI/180,a=180/Math.PI;function u(e){return e*o}function c(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(e,t){return Math.abs(e-t)<=r*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:s,setEpsilon:function(e){r=e},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"}))},34403(e,t,n){n.d(t,{TP:()=>o});var r=n(79258);Math.PI;const s=r.$O.radius,i=r.$O.eccentricitySquared,o={a1:s*i,a2:s*i*s*i,a3:s*i*i/2,a4:s*i*s*i*2.5,a5:s*i+s*i*i/2,a6:1-i};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},35223(e,t,n){n.d(t,{Hh:()=>o,fz:()=>u,g7:()=>a,s1:()=>i});var r=n(83290);let s;function i(){return!!s&&(0,r.i)()}async function o(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(4167)]).then(n.bind(n,28879)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticLength,t(r.p)}}function a(e,t,n){return s.execute(e,t,n,null)}function u(){return s.supportsCurves()}},35522(e,t,n){n.d(t,{$A:()=>S,Bw:()=>i,C:()=>o,Cc:()=>b,DI:()=>_,Il:()=>Y,Io:()=>v,Ln:()=>y,Om:()=>w,Qr:()=>h,Re:()=>c,S8:()=>N,T9:()=>p,WQ:()=>u,Z0:()=>C,_S:()=>m,aI:()=>O,ei:()=>I,gL:()=>A,hG:()=>x,hZ:()=>a,hs:()=>d,jb:()=>T,jk:()=>g,lo:()=>z,lw:()=>l,m3:()=>M,oW:()=>G,t2:()=>R,tn:()=>f,uE:()=>B,xg:()=>j,ze:()=>P});var r=n(51850),s=n(34304);function i(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function o(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 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 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 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 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 f(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function m(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function g(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 p(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 d(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 v(e,t){const n=t[0]-e[0],r=t[1]-e[1],s=t[2]-e[2];return Math.sqrt(n*n+r*r+s*s)}function x(e,t){const n=t[0]-e[0],r=t[1]-e[1],s=t[2]-e[2];return n*n+r*r+s*s}function M(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function P(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function _(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function N(e,t){const n=t[0],r=t[1],s=t[2];let i=n*n+r*r+s*s;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function w(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function S(e,t,n){const r=t[0],s=t[1],i=t[2],o=n[0],a=n[1],u=n[2];return e[0]=s*u-i*a,e[1]=i*o-r*u,e[2]=r*a-s*o,e}function b(e,t,n,r){const s=t[0],i=t[1],o=t[2];return e[0]=s+r*(n[0]-s),e[1]=i+r*(n[1]-i),e[2]=o+r*(n[2]-o),e}function C(e,t,n){const r=t[0],s=t[1],i=t[2];return e[0]=n[0]*r+n[4]*s+n[8]*i+n[12],e[1]=n[1]*r+n[5]*s+n[9]*i+n[13],e[2]=n[2]*r+n[6]*s+n[10]*i+n[14],e}function I(e,t,n){const r=t[0],s=t[1],i=t[2];return e[0]=r*n[0]+s*n[3]+i*n[6],e[1]=r*n[1]+s*n[4]+i*n[7],e[2]=r*n[2]+s*n[5]+i*n[8],e}function A(e,t,n){const r=n[0],s=n[1],i=n[2],o=n[3],a=t[0],u=t[1],c=t[2],l=s*c-i*u,h=i*a-r*c,f=r*u-s*a,m=s*f-i*h,g=i*l-r*f,p=r*h-s*l,d=2*o;return e[0]=a+l*d+2*m,e[1]=u+h*d+2*g,e[2]=c+f*d+2*p,e}const D=(0,r.vt)(),E=(0,r.vt)();function R(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function O(e,t){if(e===t)return!0;const n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],u=t[2],c=(0,s.FD)();return Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))}function G(e,t,n){const r=n[0]-t[0],s=n[1]-t[1],i=n[2]-t[2];let o=r*r+s*s+i*i;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=s*o,e[2]=i*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const T=c,q=l,Z=h,j=v,z=x,Y=i,B=M;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(e,t){N(D,e),N(E,t);const n=w(D,E);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,s,i){const o=1-i,a=o*o,u=i*i,c=a*o,l=3*i*a,h=3*u*o,f=u*i;return e[0]=t[0]*c+n[0]*l+r[0]*h+s[0]*f,e[1]=t[1]*c+n[1]*l+r[1]*h+s[1]*f,e[2]=t[2]*c+n[2]*l+r[2]*h+s[2]*f,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:o,cross:S,crossAndNormalize:function(e,t,n){const r=t[0],s=t[1],i=t[2],o=n[0],a=n[1],u=n[2],c=s*u-i*a,l=i*o-r*u,h=r*a-s*o,f=Math.sqrt(c*c+l*l+h*h);return e[0]=c/f,e[1]=l/f,e[2]=h/f,e},direction:G,dist:j,distance:v,div:Z,divide:h,dot:w,equals:O,exactEquals:R,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,s,i){const o=i*i,a=o*(2*i-3)+1,u=o*(i-2)+i,c=o*(i-1),l=o*(3-2*i);return e[0]=t[0]*a+n[0]*u+r[0]*c+s[0]*l,e[1]=t[1]*a+n[1]*u+r[1]*c+s[1]*l,e[2]=t[2]*a+n[2]*u+r[2]*c+s[2]*l,e},inverse:_,len:Y,length:i,lerp:b,max:p,min:g,mul:q,multiply:l,negate:P,normalize:N,random:function(e,t=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=i*t,e},rotateX:function(e,t,n,r){const s=[],i=[];return s[0]=t[0]-n[0],s[1]=t[1]-n[1],s[2]=t[2]-n[2],i[0]=s[0],i[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),i[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},rotateY:function(e,t,n,r){const s=[],i=[];return s[0]=t[0]-n[0],s[1]=t[1]-n[1],s[2]=t[2]-n[2],i[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),i[1]=s[1],i[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},rotateZ:function(e,t,n,r){const s=[],i=[];return s[0]=t[0]-n[0],s[1]=t[1]-n[1],s[2]=t[2]-n[2],i[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),i[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),i[2]=s[2],e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[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:d,scaleAndAdd:y,set:a,sign:m,sqrDist:z,sqrLen:B,squaredDistance:x,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:T,subtract:c,transformMat3:I,transformMat4:C,transformQuat:A},Symbol.toStringTag,{value:"Module"}))},39663(e,t,n){n.d(t,{e:()=>f,g:()=>m,l:()=>h});var r=n(86211),s=n(35223),i=n(5808);let o,a,u,c;function l(){return!!o&&(0,s.s1)()}async function h(){if(!l()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(9169)]).then(n.bind(n,78125)),(0,s.Hh)()]);o=e.fromGeometry,a=e.fromSpatialReference,u=e.getSpatialReference,c=(0,s.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,l=u(e);let h=(0,s.g7)(o(e),a(l),i.O[n]);return h&&c&&(h=(0,r.oU)(h,"meters",c)),h}const m=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:l,load:h,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},48265(e,t,n){n.d(t,{c:()=>u,e:()=>o});var r=n(15546),s=n(78125);const i=new class{getOperatorType(){return 10205}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t){return(0,r.c)(e)}};function o(e){const t=i.execute((0,s.fromGeometry)(e),null);return(0,s.toPoint)(t,(0,s.getSpatialReference)(e))}const a=i.supportsCurves(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:o,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},49208(e,t,n){n.d(t,{Tp:()=>h,jd:()=>l,pO:()=>m,w5:()=>c});var r=n(34727),s=n(86211),i=n(73941),o=n(79258),a=n(34403),u=n(21325);const c={2:{5:m,7:null,9:null,10:m,1:P,6:null,8:null,0:null,3:p,11:d,2:m,4:b},5:{5:m,7:null,9:null,10:m,1:P,6:null,8:null,0:null,3:p,11:d,2:m,4:b},7:{5:null,7:m,9:null,10:m,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:x,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(e,t,n,r){const s=e[t]/R,i=E-2*Math.atan(Math.exp(-e[t+1]/R)),o=R+(e[t+2]??0),a=Math.cos(i)*o;n[r]=Math.cos(s)*a,n[r+1]=Math.sin(s)*a,n[r+2]=Math.sin(i)*o},6:null,8:null,0:null,3:m,11:function(e,t,n,r){g(e,t,n,r),d(n,r,n,r)},2:g,4:function(e,t,n,r){g(e,t,n,r),b(n,r,n,r)}},4:{5:C,7:null,9:null,10:C,1:function(e,t,n,r){C(e,t,n,r),P(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){C(e,t,n,r),p(n,r,n,r)},11:function(e,t,n,r){C(e,t,n,r),d(n,r,n,r)},2:C,4:m},1:{5:S,7:null,9:null,10:S,1:m,6:null,8:null,0:null,3:function(e,t,n,r){S(e,t,n,r),p(n,r,n,r)},11:function(e,t,n,r){S(e,t,n,r),d(n,r,n,r)},2:S,4:function(e,t,n,r){S(e,t,n,r),b(n,r,n,r)}},6:{5:null,7:w,9:null,10:w,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:N,10:N,1:null,6:null,8:m,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:P,6:M,8:x,0:null,3:p,11:d,2:m,4:b},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,r){y(e,t,n,r),P(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){y(e,t,n,r),p(n,r,n,r)},11:m,2:y,4:function(e,t,n,r){y(e,t,n,r),b(n,r,n,r)}}};function l(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(I.source.spatialReference===e&&I.dest.spatialReference===t)return I;const n=f(e,I.source),r=f(t,I.dest);return 0===n&&0===r?(0,u.aI)(e,t)?I.projector=m:I.projector=null:I.projector=c[n][r],I}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=1:(0,u.oT)(e)?t.spatialReferenceId=2:(0,u.K8)(e)?t.spatialReferenceId=3:(0,u.r1)(e)?t.spatialReferenceId=11:e.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===i.FY.wkt?t.spatialReferenceId=6:e.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,i.q8)(e)?t.spatialReferenceId=7:(0,i.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t]??0)}function g(e,t,n,r){n[r]=D*(e[t]/R),n[r+1]=D*(E-2*Math.atan(Math.exp(-e[t+1]/R))),n[r+2]=e[t+2]??0}function p(e,t,n,s){!function(e,t,n,s,i){const o=.4999999*Math.PI,a=(0,r.qE)(A*e[t+1],-o,o),u=Math.sin(a);n[s++]=A*e[t]*i.radius,n[s++]=i.halfSemiMajorAxis*Math.log((1+u)/(1-u)),n[s]=e[t+2]??0}(e,t,n,s,o.$O)}function d(e,t,n,r){n[r]=e[t]*O,n[r+1]=e[t+1]*O,n[r+2]=e[t+2]??0}function y(e,t,n,r){n[r]=e[t]*G,n[r+1]=e[t+1]*G,n[r+2]=e[t+2]??0}function v(e,t,n,r,s){const i=s+(e[t+2]??0),o=A*e[t],a=A*e[t+1],u=Math.cos(a)*i;n[r]=Math.cos(o)*u,n[r+1]=Math.sin(o)*u,n[r+2]=Math.sin(a)*i}function x(e,t,n,r){v(e,t,n,r,o.Sw.radius)}function M(e,t,n,r){v(e,t,n,r,o.sH.radius)}function P(e,t,n,r){v(e,t,n,r,o.$O.radius)}function _(e,t,n,s,i){const o=e[t],a=e[t+1],u=e[t+2]??0,c=Math.sqrt(o*o+a*a+u*u),l=(0,r.YN)(u/(0===c?1:c)),h=Math.atan2(a,o);n[s++]=D*h,n[s++]=D*l,n[s]=c-i}function N(e,t,n,r){_(e,t,n,r,o.Sw.radius)}function w(e,t,n,r){_(e,t,n,r,o.sH.radius)}function S(e,t,n,r){_(e,t,n,r,o.$O.radius)}function b(e,t,n,r){!function(e,t,n,r,s){const i=A*e[t],o=A*e[t+1],a=e[t+2]??0,u=Math.sin(o),c=Math.cos(o),l=s.radius/Math.sqrt(1-s.eccentricitySquared*u*u);n[r++]=(l+a)*c*Math.cos(i),n[r++]=(l+a)*c*Math.sin(i),n[r++]=(l*(1-s.eccentricitySquared)+a)*u}(e,t,n,r,o.$O)}function C(e,t,n,r){const s=a.TP,i=e[t],u=e[t+1],c=e[t+2]??0;let l,h,f,m,g,p,d,y,v,x,M,P,_,N,w,S,b,C,I,A,E;l=Math.abs(c),h=i*i+u*u,f=Math.sqrt(h),m=h+c*c,g=Math.sqrt(m),A=Math.atan2(u,i),p=c*c/m,d=h/m,N=s.a2/g,w=s.a3-s.a4/g,d>.3?(y=l/g*(1+d*(s.a1+N+p*w)/g),I=Math.asin(y),x=y*y,v=Math.sqrt(1-x)):(v=f/g*(1-p*(s.a5-N-d*w)/g),I=Math.acos(v),x=1-v*v,y=Math.sqrt(x)),M=1-o.$O.eccentricitySquared*x,P=o.$O.radius/Math.sqrt(M),_=s.a6*P,N=f-P*v,w=l-_*y,b=v*N+y*w,S=v*w-y*N,C=S/(_/M+b),I+=C,E=b+S*C/2,c<0&&(I=-I),n[r++]=D*A,n[r++]=D*I,n[r]=E}const I={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},A=(0,r.kU)(1),D=(0,r.KJ)(1),E=.5*Math.PI,R=o.$O.radius,O=R*Math.PI/180,G=180/(R*Math.PI)},49590(e,t,n){n.d(t,{e:()=>f,g:()=>m,l:()=>h});var r=n(86211),s=n(86742),i=n(5808);let o,a,u,c;function l(){return!!o&&(0,s.s1)()}async function h(){if(!l()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(9169)]).then(n.bind(n,78125)),(0,s.Hh)()]);o=e.fromGeometry,a=e.fromSpatialReference,u=e.getSpatialReference,c=(0,s.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,l=u(e);let h=(0,s.g7)(o(e),a(l),i.O[n]);return h&&c&&(h=(0,r.oU)(h,"square-meters",c)),h}const m=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:l,load:h,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},51850(e,t,n){function r(){return[0,0,0]}function s(e){return[e[0],e[1],e[2]]}function i(e,t,n){return[e,t,n]}function o(e,t,n){return[e,t,n]}function a(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function u(){return i(1,1,1)}function c(){return i(1,0,0)}function l(){return i(0,1,0)}function h(){return i(0,0,1)}n.d(t,{CN:()=>o,Cb:()=>d,Cw:()=>g,JP:()=>p,Un:()=>m,ci:()=>a,fA:()=>i,o8:()=>s,uY:()=>f,vt:()=>r});const f=[0,0,0],m=u(),g=c(),p=l(),d=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:g,UNIT_Y:p,UNIT_Z:d,ZEROS:f,clone:s,create:r,freeze:o,fromArray:a,fromValues:i,ones:u,unitX:c,unitY:l,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},60408(e,t,n){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function i(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function u(e){return"object"==typeof e&&"vertexAttributes"in e}function c(e){return e?i(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function l(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>c,Bi:()=>a,Pv:()=>l,Rg:()=>o,U9:()=>s,W0:()=>h,ZC:()=>r,fT:()=>i,uW:()=>u})},61691(e,t,n){n.d(t,{G:()=>r});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},65708(e,t,n){n.d(t,{a:()=>o,e:()=>i});var r=n(86211),s=n(78125);function i(e,t={}){const{unit:n}=t;let i=(0,s.fromGeometry)(e).calculateArea2D();if(i&&n){const t=(0,s.getSpatialReference)(e);if(t.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const o=(0,r.B5)(t);o!==n&&(o?i=(0,r.oU)(i,o,n):(i=Math.sqrt(i),i*=(0,r.GA)(t),i**=2,i=(0,r.oU)(i,"square-meters",n)))}return i}const o=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:!0},Symbol.toStringTag,{value:"Module"}))},65806(e,t,n){n.d(t,{g:()=>o});var r=n(51850),s=n(91218),i=n(9762);function o(e,t,n,r){if((0,s.canProjectWithoutEngine)(e.spatialReference,n))return a[0]=e.x,a[1]=e.y,a[2]=e.z??0,(0,i.projectBuffer)(a,e.spatialReference,0,t,n,0);const o=(0,s.tryProject)(e,n,r);return!!o&&(t[0]=o.x,t[1]=o.y,t[2]=o.z??0,!0)}const a=(0,r.vt)()},69396(e,t,n){n.r(t),n.d(t,{area2D:()=>T,areaHorizontal:()=>L,autoArea2D:()=>Y,autoDistance2DBetweenPoints:()=>V,autoLength2D:()=>B,autoSize2D:()=>F,distance2DBetweenPoints:()=>z,geodeticArea:()=>I,geodeticDistanceBetweenPoints:()=>G,geodeticLength:()=>O,length2D:()=>j,preloadGeodetic:()=>A});var r=n(17799),s=n(86211),i=n(35522),o=n(51850),a=n(73941),u=n(86738),c=n(39829),l=n(82799),h=n(91218),f=n(16930),m=n(98764),g=n(65708),p=n(48265),d=n(16346),y=n(49590),v=n(11918),x=n(39663),M=n(7817),P=n(10222),_=n(27993);function N(e,t,n,r,s){(0,i.C)(w,e),(0,i.WQ)(S,e,t),(0,_.F)(w,n,w,s),(0,_.F)(S,n,S,s),(0,i.Re)(r,S,w),(0,i.S8)(r,r)}const w=(0,o.vt)(),S=(0,o.vt)();var b=n(21325),C=n(32728);async function I({geometryJSON:e,options:t}){await Promise.allSettled([(0,y.l)(),t?.returnLength?(0,x.l)():void 0]);const n=D(e,t),i=t?.unit??"square-meters",o=(0,P.e)(n)??n,a=(0,y.e)(o,{unit:i,...t}),u=(0,r.gT)(a,i),c=t?.lengthUnit??(0,s.Bd)(i);return{area:u,centroid:t?.returnCentroid?E(o).toJSON():void 0,length:t?.returnLength?await R(o,{unit:c}):void 0}}function A(){(0,y.l)(),(0,x.l)(),(0,v.load)()}function D(e,t){const n="rings"in e?c.A.fromJSON(e):l.A.fromJSON(e);if(t?.stagedPoint){const e=u.A.fromJSON(t.stagedPoint),r=("rings"in n?n.rings:n.paths).at(-1);if(r){const{x:t,y:s,z:i,m:o}=e,a=n.hasZ&&n.hasM?[t,s,i??0,o??0]:n.hasZ?[t,s,i??0]:n.hasM?[t,s,o??0]:[t,s];r.push(a)}}return n}function E(e){return(0,p.e)(e)}async function R(e,t){await(0,x.l)();const n=t?.unit??"meters";return(0,r.d_)((0,x.e)(e,{...t,unit:n}),n)}function O({geometryJSON:e,options:t}){return R(D(e,t),t)}async function G({geometry1JSON:e,geometry2JSON:t,options:n}){await(0,v.load)();const s=u.A.fromJSON(e),i=u.A.fromJSON(t),o=n?.unit??"meters";return(0,r.d_)((0,v.execute)(s,i,{...n,unit:o}),o)}function T({geometryJSON:e,options:t}){return q(D(e,t),t)}function q(e,t){const n=t?.unit??"square-meters",i=t?.lengthUnit??(0,s.Bd)(n),o=(0,P.e)(e)??e,a=(0,g.e)(o,{unit:n,...t});return{area:(0,r.gT)(a,n),centroid:t?.returnCentroid?E(o).toJSON():void 0,length:t?.returnLength?Z(o,{unit:i}):void 0}}function Z(e,t){const n=t?.unit??"meters";return(0,r.d_)((0,M.e)(e,{...t,unit:n}),n)}function j({geometryJSON:e,options:t}){return Z(D(e,t),t)}function z({geometry1JSON:e,geometry2JSON:t,options:n}){const s=u.A.fromJSON(e),i=u.A.fromJSON(t),o=n?.unit??"meters";return(0,r.d_)((0,d.e)(s,i,{...n,unit:o}),o)}async function Y(e){return k(e.geometryJSON.spatialReference,I,T)(e)}async function B(e){return k(e.geometryJSON.spatialReference,O,j)(e)}async function V(e){return k(e.geometry1JSON.spatialReference,G,z)(e)}async function F(e){const t=k(e.topLeftJSON.spatialReference,G,z),{topLeftJSON:n,topRightJSON:s,bottomRightJSON:i,bottomLeftJSON:o,options:a}=e,[u,c,l,h]=await Promise.all([t({geometry1JSON:o,geometry2JSON:i,options:a}),t({geometry1JSON:n,geometry2JSON:s,options:a}),t({geometry1JSON:i,geometry2JSON:s,options:a}),t({geometry1JSON:o,geometry2JSON:n,options:a})]);return{width:(0,r.T9)(u,c),height:(0,r.T9)(h,l)}}function k(e,t,n){switch(function(e){return(0,b.EA)(e)||(0,b.K8)(e)?0:1}(e)){case 0:return t;case 1:return n}}function L(e){const{geometryJSON:t}=e,n=function(e){return e?(0,a.B3)(e)?(0,b.oT)(e)||(0,b.K8)(e)||(0,b.x1)(e)||(0,a.jA)(e)||(0,b.aI)(e,m.Y0)?{mode:1,spatialReference:m.Y0}:{mode:0,spatialReference:e}:{mode:1,spatialReference:(0,m.lO)(e)}:null}(t.spatialReference);if(!n)throw new Error("Cannot compute horizontal area without a valid spatial reference.");switch(n.mode){case 0:return T(e);case 1:return function(e,{geometryJSON:t,options:n}){const r=D(t,n),s=U,i=W,o=$,a=(0,b.aI)(r.spatialReference,e.spatialReference)?r.clone():(0,h.projectWithoutEngine)(r,r.spatialReference,e.spatialReference);if(!a)throw new Error(`Cannot project geometry from ${r.spatialReference?.wkid??"unknown"} to ${e.spatialReference.wkid}.`);J(a,s,i,o);const{area:u,centroid:c,length:l}=q(a,n);return{area:u,centroid:X(c,s,i,o,e.spatialReference,r.spatialReference),length:l}}(n,e)}}function X(e,t,n,r,s,o){if(!e)return e;(0,i.hs)(n,n,e.x),(0,i.hs)(r,r,e.y);const a=K;return(0,i.WQ)(a,n,r),(0,i.WQ)(a,a,t),e.x=a[0],e.y=a[1],e.z=a[2],e.spatialReference=s,(0,h.projectWithoutEngine)(e,e.spatialReference,o)?.toJSON()??void 0}function J(e,t,n,r){let s=0;(0,i.hZ)(t,0,0,0);for(const n of e.rings)for(const e of n)t[0]+=e[0],t[1]+=e[1],t[2]+=e[2],s++;(0,i.hs)(t,t,1/s);const o=H;(0,i.S8)(o,t);const a=Q,u=Math.atan2(o[1],o[0]);(0,i.hZ)(a,-Math.sin(u),Math.cos(u),0),(0,b.aI)(e.spatialReference,m.Y0)&&(N(t,o,m.GD,o,e.spatialReference),N(t,a,m.GD,a,e.spatialReference)),(0,C.YH)(a,o,n),(0,i.$A)(r,n,o);const c=K;for(const s of e.rings)for(const e of s){(0,i.hZ)(c,e[0],e[1],e[2]),(0,i.Re)(c,c,t);const s=(0,i.Om)(n,c),o=(0,i.Om)(r,c);e[0]=s,e[1]=o}e.hasZ=!1,e.spatialReference=f.A.WebMercator}const W=(0,o.vt)(),$=(0,o.vt)(),U=(0,o.vt)(),K=(0,o.vt)(),H=(0,o.vt)(),Q=(0,o.vt)()},69397(e,t,n){n.d(t,{Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>m,lM:()=>i,qK:()=>l});var r=n(34275);const s=16;function i(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n],!1));return t}function o(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 c(e,8);let n=h;for(let r=0;r<t;r++)n+=a(e[r]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return s;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+f:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return h+e.length*t}const l=32,h=16,f=145,m=64},70328(e,t,n){n.d(t,{BI:()=>x,DC:()=>h,Ej:()=>m,Ie:()=>y,Jt:()=>v,Ne:()=>g,RF:()=>l,aI:()=>P,fA:()=>o,gE:()=>u,hZ:()=>d,iT:()=>f,is:()=>M,qv:()=>_,vI:()=>p,vY:()=>a,v_:()=>N,vt:()=>i,w1:()=>c});var r=n(5443),s=(n(19419),n(4197));function i(e=N){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,r,s,o,a=i()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=s,a[5]=o,a}function a(e,t=i()){return function(e,t,n,r=i()){return d(r,_),function(e,t,n=0,r=t.length/3){let s=e[0],i=e[1],o=e[2],a=e[3],u=e[4],c=e[5];for(let e=0;e<r;e++)s=Math.min(s,t[n+3*e]),i=Math.min(i,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),u=Math.max(u,t[n+3*e+1]),c=Math.max(c,t[n+3*e+2]);e[0]=s,e[1]=i,e[2]=o,e[3]=a,e[4]=u,e[5]=c}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,s.jh)(24)){const[n,r,i,o,a,u]=e;return t[0]=n,t[1]=r,t[2]=i,t[3]=n,t[4]=r,t[5]=u,t[6]=n,t[7]=a,t[8]=i,t[9]=n,t[10]=a,t[11]=u,t[12]=o,t[13]=r,t[14]=i,t[15]=o,t[16]=r,t[17]=u,t[18]=o,t[19]=a,t[20]=i,t[21]=o,t[22]=a,t[23]=u,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function m(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function g(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function p(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?d(e,_):i(_)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function x(e,t,n,r,s){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function M(e){return 6===e.length}function P(e,t,n){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const _=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];i()},76061(e,t,n){n.d(t,{S:()=>s});var r=n(61691);class s extends r.G{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125(e,t,n){n.r(t),n.d(t,{fromExtent:()=>d,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>v,fromPolygon:()=>x,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>P,fromSpatialReference:()=>_,getSpatialReference:()=>g,toExtent:()=>w,toGeometry:()=>N,toMultipoint:()=>S,toPoint:()=>b,toPolygon:()=>C,toPolyline:()=>I});var r=n(83661),s=(n(79187),n(55537)),i=n(95213),o=n(88885),a=n(5443),u=n(48526),c=n(86738),l=n(39829),h=n(82799),f=(n(90293),n(83299));const m="_gxVersion";function g(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function p(e){switch(e.type){case"point":return v(e);case"multipoint":return y(e);case"polyline":return M(e);case"polygon":return x(e);case"extent":return d(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function d(e){if(!e.getCacheValue(m)){const t=new i.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(m,t)}return e.getCacheValue(m)}function y(e){if(!e.getCacheValue(m)){const t=new o.M,n=new i.P,r=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,i=r.length;e<i;e++){const i=r[e];n.setXYCoords(i[0],i[1]),a&&n.setZ(i[2]??0),s&&n.setM(i[u]??NaN),t.add(n)}e.setCacheValue(m,t)}return e.getCacheValue(m)}function v(e){if(!e.getCacheValue(m)){const t=new i.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(m,t)}return e.getCacheValue(m)}function x(e){if(!e.getCacheValue(m)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,i=(0,f.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(m,i)}return e.getCacheValue(m)}function M(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,i=(0,f.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(m,i)}return e.getCacheValue(m)}function P(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(m,i)}return e.getCacheValue(m)}function _(e){return(0,f.fromSpatialReference)(e)}function N(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return b(e,t);case s.G.enumEnvelope:return w(e,t);case s.G.enumMultiPoint:return S(e,t);case s.G.enumPolyline:return I(e,t);case s.G.enumPolygon:return C(e,t)}return null}function w(e,t){if(e.isEmpty())return null;const n=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(2,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(1,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(m,e),n}function S(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],a=new i.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const c=new u.A({hasM:r,hasZ:s,points:o,spatialReference:t});return c.setCacheValue(m,e),c}function b(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(m,e),n}function C(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}function I(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({...(0,f.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}},81150(e,t,n){n.d(t,{Pg:()=>u,fz:()=>c,g7:()=>o,zo:()=>a});var r=n(76061),s=(n(55537),n(88885),n(15756));n(95213);const i=new s.f;function o(e,t,n){return i.execute(e,t,n,null)}function a(e,t,n){const s=i.executeMany(new r.S(e),t,n,null);return Array.from(s)}function u(e,t,n){return i.isSimpleAsFeature(e,t,n,null,null)}function c(){return i.supportsCurves()}},86738(e,t,n){n.d(t,{A:()=>x});var r=n(5482),s=n(69622),i=n(53966),o=n(91429),a=n(56507),u=n(91075),c=n(16930),l=n(21325),h=n(28735);function f({x:e,y:t,spatialReference:n},r=[0,0]){if(n){if((0,l.K8)(n))return(0,h.tD)(e,t,r);if((0,l.EA)(n))return r[0]=e,r[1]=t,r}return null}const m=[0,0];var g,p=n(43937),d=n(36005);const y=[0,0];function v(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let x=g=class extends u.A{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const n=e._get("spatialReference");t._set("spatialReference",s.A.isFrozen(n)?n:n.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,n,r,s){let o;if(Array.isArray(e))o=e,s=t,e=o[0],t=o[1],n=o[2],r=o[3];else if(e&&"object"==typeof e){if(o=e,e=null!=o.x?o.x:o.longitude,t=null!=o.y?o.y:o.latitude,n=o.z,r=o.m,(s=o.spatialReference)&&"esri.geometry.SpatialReference"!==s.declaredClass&&(s=new c.A(s)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)i.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)i.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&s?.isWebMercator){const n=(0,h.je)(o.longitude,o.latitude,y);e=n[0],t=n[1]}}else v(n)?(s=n,n=null):v(r)&&(s=r,r=null);const a={x:e,y:t};return null==a.x&&null!=a.y?i.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&i.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=s&&(a.spatialReference=s),null!=n&&(a.z=n),null!=r&&(a.m=r),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return e=this,f(e,m)?.[1]??null;var e}set latitude(e){const{spatialReference:t,x:n}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,h.je)(n,e,y)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return e=this,f(e,m)?.[0]??null;var e}set longitude(e){const{y:t,spatialReference:n}=this;null!=e&&n&&(n.isWebMercator?this._set("x",(0,h.je)(e,t,y)[0]):n.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,n){t[n]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new g;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return g.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:n,z:r,m:s,spatialReference:i}=this,{z:o,m:a}=e;let{x:u,y:c,spatialReference:l}=e;if(!i.equals(l))if(i.isWebMercator&&l.isWGS84)[u,c]=(0,h.je)(u,c),l=i;else{if(!i.isWGS84||!l.isWebMercator)return!1;[u,c]=(0,h.tD)(u,c),l=i}return t===u&&n===c&&r===o&&s===a&&i.wkid===l.wkid}offset(e,t,n){return this.x+=e,this.y+=t,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const e=(0,l.Vp)(this.spatialReference);if(!e)return this;let t=this.x;const[n,r]=e.valid,s=2*r;let i;return t>r?(i=Math.ceil(Math.abs(t-r)/s),t-=i*s):t<n&&(i=Math.ceil(Math.abs(t-n)/s),t+=i*s),this._set("x",t),this}distance(e){return function(e,t){const n=e.x-t.x,r=e.y-t.y,s=null!=e.z&&null!=t.z?e.z-t.z:0;return Math.sqrt(n*n+r*r+s*s)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],x.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],x.prototype,"hasM",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],x.prototype,"hasZ",null),(0,r.Cg)([(0,o.MZ)({type:Number})],x.prototype,"latitude",null),(0,r.Cg)([(0,o.MZ)({type:Number})],x.prototype,"longitude",null),(0,r.Cg)([(0,o.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,o.wg)(e=>isNaN(e)?e:(0,a.GB)(e))],x.prototype,"x",void 0),(0,r.Cg)([(0,p.K)("x")],x.prototype,"writeX",null),(0,r.Cg)([(0,d.w)("x")],x.prototype,"readX",null),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],x.prototype,"y",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],x.prototype,"z",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],x.prototype,"m",void 0),x=g=(0,r.Cg)([(0,o.$K)("esri.geometry.Point")],x),x.prototype.toJSON.isDefaultToJSON=!0},86742(e,t,n){n.d(t,{Hh:()=>o,fz:()=>u,g7:()=>a,s1:()=>i});var r=n(83290);let s;function i(){return!!s&&(0,r.i)()}async function o(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6859),n.e(6558)]).then(n.bind(n,6558)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticArea,t(r.p)}}function a(e,t,n){return s.execute(e,t,n,null)}function u(){return s.supportsCurves()}},87992(e,t,n){n.d(t,{JR:()=>S,ME:()=>_,MY:()=>b,NO:()=>P,Nh:()=>w,V2:()=>E,_s:()=>R,e6:()=>G,gh:()=>N,tr:()=>q,uX:()=>d});var r=n(5482),s=n(69397),i=n(16930),o=(n(70328),n(19419)),a=n(60408),u=n(21325),c=n(513),l=n(50954),h=n(79567),f=n(52006),m=n(49663),g=n(46068),p=n(92722);class d{constructor({type:e,spatialReference:t,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:l,segmentParams:h,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=l,this.segmentParams=h,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:n}=this;return e&&e-t-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?s.Ul+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:n,hasZ:r,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=E(e,t,n,r,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:l}=this;if(a.vertexXY.set(u.subarray(0,2*t),0),a.vertexZ?.set(c.subarray(0,t),0),a.vertexM?.set(l.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,n+1)),a.partOffsets.set(e.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(n.subarray(0,t),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,u.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const n=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,n)=>Math.abs(e-n)>t||isNaN(e)!==isNaN(n);for(let t=0;t<this.vertexCount;++t)if(n(this.vertexXY[2*t],e.vertexXY[2*t])||n(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(n(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(n(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(n(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return new y(this)}}class y{constructor(e){this.geometry=e,this.value=new v(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class v{constructor(e){this.geometry=e,this.index=-1,this._readVertex=A(e),this._segments=new x(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class x{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new M(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=A(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[n++],r=t[n++],s=t[n++],i=t[n++];return{b:[this.end,[e,r],[s,i]]}}const r=t[n++],s=t[n++],i=t[n++],o=t[n++],a=t[n++],u=t[n++];n++,n++;const c=t[n++],l=t[n++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[c,l]]};const h=2&r?0:1,f=1&r?0:1;return{a:[this.end,[a,u],h,f,o,s,i]}}}function P(e,t){const n={stack:[],error:void 0,hasError:!1};try{return t??=(0,o.Ie)(),(0,r.mS)(n,new C(e,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(t,function(e){let t;const{vertexCount:n,vertexXY:s,vertexZ:i,vertexM:a}=e,u=I(e);if(e.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new C(e,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:n}of t.segments)(0,h.e)(s,e,n),e=(0,f.yP)(n)}const[i,a,c,l]=s;t={xmin:i,ymin:a,xmax:c,ymax:l,spatialReference:u}}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}else{let e,r,i,o;e=r=1/0,i=o=-1/0;for(let t=0;t<n;++t){const n=s[2*t],a=s[2*t+1];e=Math.min(e,n),i=Math.max(i,n),r=Math.min(r,a),o=Math.max(o,a)}t={xmin:e,ymin:r,xmax:i,ymax:o,spatialReference:u}}if(i){let e=1/0,n=-1/0;for(const t of i)e=Math.min(e,t),n=Math.max(n,t);t.zmin=e,t.zmax=n}if(a){let e=1/0,n=-1/0;for(const t of a)e=Math.min(e,t),n=Math.max(n,t);t.mmin=e,t.mmax=n}return t}(e)),t}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}function _(e){let t,n,r;if((0,a.fT)(e)){r="point";const{x:s,y:i,z:o,m:a}=e,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),n=[[u]],t=1}else(0,a.U9)(e)?(r="multipoint",n=[e.points],t=e.points.length):(0,a.Rg)(e)?(r="polyline",n=e.curvePaths??e.paths,t=n.reduce((e,t)=>e+t.length,0)):(r="polygon",n=e.curveRings??e.rings,t=n.reduce((e,t)=>(0===t.length||(e+=t.length,D(t[0],(0,f.yP)(t.at(-1)))&&--e),e),0));const s=E(r,t,r.includes("point")?0:n.length,(0,a.Pv)(e),(0,a.W0)(e),(0,f.Ed)(e)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:c,vertexM:l}=s;function h(e){u[2*g]=e[0],u[2*g+1]=e[1],i&&(c[g]=e[2]),o&&(l[g]=e[m]),++g}s.spatialReference=e.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!o){for(const[e,t]of n[0])u[2*g]=e,u[2*g+1]=t,++g;return s}for(const e of n[0])h(e);return s}const p="polygon"===r,{partOffsets:d}=s;let y=0;if(!s.hasCurves()){for(const e of n){if(d[y++]=g,0===e.length)continue;let t=e.length;if(p&&D(e[0],e.at(-1))&&--t,i||o)for(let n=0;n<t;++n)h(e[n]);else for(let n=0;n<t;++n){const[t,r]=e[n];u[2*g]=t,u[2*g+1]=r,++g}}return d[y]=g,s}function v(e){const t=x+e;if(t<=(s.segmentParams?.length??0))return;let n=t*Z;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let x=0;for(const e of n){if(s.partOffsets[y++]=g,0===e.length)continue;const t=e[0];let n=t;for(let t=1;t<e.length;++t){const r=e[t];h(n);const i=g-1;(0,f.wY)(r)?(v(10),++s.segmentCountArc,x=R(n,r,s,i,x),n=r.a[0]):(0,f.DA)(r)?(v(10),++s.segmentCountArc,x=O(n,r,s,i,x),n=r.a[0]):(0,f.aO)(r)?(v(10),++s.segmentCountArc,x=G(n,r,s,i,x),n=r.c[0]):(0,f.n1)(r)?(v(4),++s.segmentCountBezier,x=q(0,r,s,i,x),n=r.b[0]):n=r}p&&D(t,n)||h(n)}return s.partOffsets[y]=g,s}function N(e){const t=A(e),{vertexCount:n,partCount:r,hasZ:s,hasM:i}=e,o=I(e);if("point"===e.type){const[t,n]=e.vertexXY,r=e.vertexZ?.[0],s=e.vertexM?.[0];return{x:t,y:n,z:r,m:s,spatialReference:o}}let a=0;if("multipoint"===e.type){const e=[];for(;a<n;)e.push(t(a++));return{points:e,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===e.type;if(!e.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=e.partOffsets[s+1],i=new Array;for(;a<r;)i.push(t(a++));u&&i.length>0&&i.push(i[0]),n.push(i)}return u?{rings:n,hasZ:s,hasM:i,spatialReference:o}:{paths:n,hasZ:s,hasM:i,spatialReference:o}}const c=new Array;for(const{segments:t,startVertex:n}of e.parts){const e=[n];for(const{curve:n}of t)e.push(n);c.push(e)}return u?{rings:[],curveRings:c,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:c,hasZ:s,hasM:i,spatialReference:o}}function w(e,{lengths:t,coords:n,hasZ:r,hasM:s},i){const o=e.includes("point")?0:t.length,a="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);r??=!1,s??=!1;const c=E(e,u,o,r,s,!1,0,0);if(c.spatialReference=i??void 0,!c.isMultipart()){for(let e=0,t=0;e<u;++e)c.vertexXY[2*e]=n[t++],c.vertexXY[2*e+1]=n[t++],r&&(c.vertexZ[e]=n[t++]),s&&(c.vertexM[e]=n[t++]);return c}const l=2+Number(r)+Number(s);let h=0,f=0;c.partOffsets[0]=0;for(const e of t){const t=c.partOffsets[f],i=t+e-Number(a);c.partOffsets[++f]=i;for(let e=t;e<i;++e)c.vertexXY[2*e]=n[h++],c.vertexXY[2*e+1]=n[h++],r&&(c.vertexZ[e]=n[h++]),s&&(c.vertexM[e]=n[h++]);a&&(h+=l)}return c}function S({type:e,vertexCount:t,vertexXY:n,vertexZ:r,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const c=new p.A([],[],a,u);i=Math.max(i,1);const l="polygon"===e;let h=0;for(let e=0;e<i;++e){const i=o?.[e+1]??t,f=c.coords.length;for(let e=h;e<i;++e)c.coords.push(n[2*e],n[2*e+1]),a&&c.coords.push(r[e]),u&&c.coords.push(s[e]);if(l){const e=h;c.coords.push(n[2*e],n[2*e+1]),a&&c.coords.push(r[e]),u&&c.coords.push(s[e])}c.lengths.push((c.coords.length-f)/c.stride),h=i}return"point"===e&&(c.lengths.length=0),c}function b(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,n=e.isCustomWkid()?0:e.getOldID();if(n<=0)return{wkt:t};let r=e.getLatestID();(r<=0||r===n)&&(r=void 0);const s=e.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:t};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:n,wkt:t,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new d({...e.toFlatGeometry(),spatialReference:t})}class C{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const n of t)e[n]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function I({spatialReference:e}){return e instanceof i.A?e.toJSON():e}function A({vertexXY:e,vertexZ:t,vertexM:n}){return t?n?r=>[e[2*r],e[2*r+1],t[r],n[r]]:n=>[e[2*n],e[2*n+1],t[n]]:n?t=>[e[2*t],e[2*t+1],n[t]]:t=>[e[2*t],e[2*t+1]]}function D(e,t){return e.every((e,n)=>e===t[n])}function E(e,t,n,r,s,i,o,a){o??=0,a??=0;const u=new d({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*t;r&&(c+=Float64Array.BYTES_PER_ELEMENT*t),s&&(c+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(c+=(n+1)*Int32Array.BYTES_PER_ELEMENT,c+=(n+1)*Int8Array.BYTES_PER_ELEMENT),i&&(c+=t*Int8Array.BYTES_PER_ELEMENT,c+=t*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(c);let h=0;return u.vertexXY=new Float64Array(l,h,2*t),h+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(l,h,t),h+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(l,h,t),h+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(l,h,u.segmentParamCount),h+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(l,h,t),u.segmentIndices.fill(j),h+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(l,h,n+1),h+=u.partOffsets.byteLength,u.partFlags=new Int8Array(l,h,n+1),h+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),i&&(u.segmentFlags=new Int8Array(l,h,t),u.segmentFlags.fill(1),h+=u.segmentFlags.byteLength),u}function R(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const[a,[u,c],l,h,f,m,p]=t.a;let d=4;h||(d|=1),l||(d|=2);const y=(0,g.SW)(e,t),[v,x]=(0,g.Uk)(y,.5);return s[o++]=d,s[o++]=m,s[o++]=p,s[o++]=f,s[o++]=u,s[o++]=c,s[o++]=y.u2-y.u1,s[o++]=y.u1,s[o++]=v,s[o++]=x,o}function O(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const a=(0,m.i)(e,t);return T(a,4,...(0,c.mq)(a,.5),s,o)}function G(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){return n[i]=4,r[i]=o,T((0,l.pM)(e,t),0,...t.c[1],s,o)}function T(e,t,n,r,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:c,radius:l}=e;return u>c||(t|=1),Math.abs(c-u)<=Math.PI||(t|=2),s[i++]=t,s[i++]=l,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=c-u,s[i++]=u,s[i++]=n,s[i++]=r,i}function q(e,{b:[t,[n,r],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},c,l){return o[c]=2,a[c]=l,u[l++]=n,u[l++]=r,u[l++]=s,u[l++]=i,l}const Z=1.61803,j=-1},91075(e,t,n){n.d(t,{A:()=>u});var r=n(5482),s=n(25482),i=n(91429),o=n(16930),a=n(36005);let u=class extends s.o{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=o.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof o.A)return e;if(null!=e){const n=new o.A;return n.read(e,t),n}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,r.Cg)([(0,i.MZ)()],u.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],u.prototype,"cache",null),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],u.prototype,"extent",null),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasM",void 0),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasZ",void 0),(0,r.Cg)([(0,i.MZ)({type:o.A,json:{write:!0},value:o.A.WGS84})],u.prototype,"spatialReference",void 0),(0,r.Cg)([(0,a.w)("spatialReference")],u.prototype,"readSpatialReference",null),u=(0,r.Cg)([(0,i.$K)("esri.geometry.Geometry")],u)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>L,initializeProjection:()=>J,isEqualBaseGCS:()=>X,isLoaded:()=>E,isLoadedOrLoad:()=>R,isLoadedOrLoadFor:()=>O,load:()=>T,project:()=>q,projectAsync:()=>k,projectExtent:()=>re,projectMany:()=>Z,projectMultipoint:()=>K,projectOrLoad:()=>z,projectOrLoadMany:()=>Y,projectPoint:()=>$,projectPolygon:()=>te,projectPolyline:()=>Q,projectWithoutEngine:()=>W,requiresLoad:()=>G,test:()=>F,tryProject:()=>j,unload:()=>V});var r=n(49186),s=n(74887),i=n(62788),o=n(95488),a=n(51850),u=n(21276),c=n(73941),l=n(5443),h=n(91075),f=n(48526),m=n(86738),g=n(39829),p=n(82799),d=n(16930),y=n(98764),v=n(159),x=n(9762),M=n(49208);function P(e,t,n,r,s,i){return _[0]=e,_[1]=t,_[2]=n,(0,x.projectBuffer)(_,r,0,s,i,0)}const _=(0,a.vt)();var N=n(21325),w=n(52006);let S=null,b=null,C=null,I=null,A={};const D=new o.I;function E(){return!!(b?.isLoaded()&&C?.isLoaded()&&I?.isLoaded())}function R(){return!!E()||((0,i.gc)(D),T(),!1)}function O(e,t){return!e||!t||L(e,t)||R()}function G(e,t){return!L(e,t)&&!E()}async function T(e){null==S&&(S=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(b=e,b.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(C=e,C.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(I=e,I.load()))])),await S,(0,s.Te)(e),D.notify()}function q(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,u.H)(e),Z(e,e[0].spatialReference,t,n)):((0,u.f)(e),Z([e],e.spatialReference,t,n)[0])}function Z(e,t,n,r){if(null==t||null==n)return e;if(!e.some(e=>(0,w.Ed)(e))&&L(t,n,r))return e.map(e=>W(e,t,n));if(null==r?.geographicTransformation&&(0,c.jA)(t))return Z(e.map(e=>W(e,t,d.A.WGS84)),d.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,c.jA)(n))return Z(e,t,d.A.WGS84).map(e=>W(e,d.A.WGS84,n));if(!E())throw new B;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:I.getTransformation(t,n,r.areaOfInterestExtent)||new v.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let s=A[e];s||(s=I.getTransformation(t,n)||new v.A,A[e]=s),r={geographicTransformation:s,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof h.A?b.executeMany(e,n,r):C.executeMany(e,n,r)}function j(e,t,n){try{return q(e,t,n)}catch(e){return null}}function z(e,t){const n=Y([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function Y(e,t,n){if(!E())for(const n of e)if(null!=n&&!(0,N.aI)(n.spatialReference,t)&&(0,N.fn)(n.spatialReference)&&(0,N.fn)(t)&&!L(n.spatialReference,t))return(0,i.gc)(D),{pending:T(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,N.aI)(e.spatialReference,t)?e:(0,N.fn)(e.spatialReference)&&(0,N.fn)(t)?q(e,t,n):null)}}class B extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function V(){S=null,b=null,C=null,I=null,A={}}const F={get loadPromise(){return S}};async function k(e,t,n){if((0,s.Te)(n),!e)return e;const r=Y(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,s.Te)(n),k(e,t,n);const i=r.geometries??[];return Array.isArray(e)?i:i[0]}function L(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,N.aI)(e,t)||(0,N.fn)(e)&&(0,N.fn)(t)&&!!(0,M.jd)(e,t))}function X(e,t){if((0,N.aI)(e,t))return!0;if(!(0,N.fn)(e)||!(0,N.fn)(t))return!1;const n=(0,N.oT)(e)||(0,N.K8)(e)||(0,N.x1)(e),r=(0,N.oT)(t)||(0,N.K8)(t)||(0,N.x1)(t);return n&&r}async function J(e,t,n,r){if(E())return(0,s.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,options:s}of e)if(t&&n&&!L(t,n,s))return T(r)}else if(e&&t&&!L(e,t,n))return T(r);return(0,s.NO)(r)}function W(e,t,n){return e?"x"in e?U(e,t,new m.A,n,0):"xmin"in e?se(e,t,new l.A,n,0):"rings"in e?ne(e,t,new g.A,n,0):"paths"in e?ee(e,t,new p.A,n,0):"points"in e?H(e,t,new f.A,n,0):null:null}function $(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=U(e,e.spatialReference,t,n,r)}function U(e,t,n,r,s){ae[0]=e.x,ae[1]=e.y;const i=e.z;return ae[2]=void 0!==i?i:s,(0,x.projectBuffer)(ae,t,0,ae,r,0)?(n.x=ae[0],n.y=ae[1],n.spatialReference=r,void 0!==i||(0,c.xP)(r)?(n.z=ae[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function K(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=H(e,e.spatialReference,t,n,r)}function H(e,t,n,r,s){const{points:i,hasZ:o,hasM:a}=e,u=[],c=i.length,l=[];for(const e of i)l.push(e[0],e[1],o?e[2]:s);if(!(0,x.projectBuffer)(l,t,0,l,r,0,c))return null;const h=oe(o,r);for(let e=0;e<c;++e){const t=3*e,n=l[t],r=l[t+1];h&&a?u.push([n,r,l[t+2],i[e][3]]):h?u.push([n,r,l[t+2]]):a?u.push([n,r,i[e][2]]):u.push([n,r])}return n.points=u,n.spatialReference=r,n.hasZ=o,n.hasM=a,n}function Q(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ee(e,e.spatialReference,t,n,r)}function ee(e,t,n,r,s){const{paths:i,hasZ:o,hasM:a}=e,u=[];if(!ie(i,o??!1,a??!1,t,u,r,s))return null;const c=oe(o,r);return n.paths=u,n.spatialReference=r,n.hasZ=c,n.hasM=a,n}function te(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ne(e,e.spatialReference,t,n,r)}function ne(e,t,n,r,s){const{rings:i,hasZ:o,hasM:a}=e,u=[];if(!ie(i,o??!1,a??!1,t,u,r,s))return null;const c=oe(o,r);return n.rings=u,n.spatialReference=r,n.hasZ=c,n.hasM=a,n}function re(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=se(e,e.spatialReference,t,n,r)}function se(e,t,n,r,s){const{xmin:i,ymin:o,xmax:a,ymax:u,hasZ:c,hasM:l}=e;if(!P(i,o,c?e.zmin:s,t,ae,r))return null;const h=oe(c,r);return n.xmin=ae[0],n.ymin=ae[1],h&&(n.zmin=ae[2]),P(a,u,c?e.zmax:s,t,ae,r)?(n.xmax=ae[0],n.ymax=ae[1],h&&(n.zmax=ae[2]),l&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function ie(e,t,n,r,s,i,o=0){const a=new Array;for(const n of e)for(const e of n)a.push(e[0],e[1],t?e[2]:o);if(!(0,x.projectBuffer)(a,r,0,a,i,0))return!1;let u=0;s.length=0;const c=oe(t,i);for(const t of e){const e=new Array;for(const r of t)c&&n?e.push([a[u++],a[u++],a[u++],r[3]]):c?e.push([a[u++],a[u++],a[u++]]):n?(e.push([a[u++],a[u++],r[2]]),u++):(e.push([a[u++],a[u++]]),u++);s.push(e)}return!0}function oe(e,t){return e||(0,c.xP)(t)||(0,N.aI)(t,y.Y0)}const ae=(0,a.vt)()},92722(e,t,n){n.d(t,{A:()=>s});var r=n(69397);class s{constructor(e=[],t=[],n=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:n,hasM:r}){return new s(e,t,n||!1,r||!1)}static fromRect([e,t,n,r]){const i=n-e,o=r-t;return new s([5],[e,t,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*t],i=this.coords[r*t+1];for(let o=1;o<n;o+=1){const n=r*(t+o),a=this.coords[n],u=this.coords[n+1];e+=-.5*(a-s)*(u+i),s=a,i=u}t+=n}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(t+s);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:n}=e;let r=0;const{stride:s}=this;for(const e of n){for(let n=1;n<e;n++){const e=s*(r+n);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}r+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return e?(e.set(i),new s(t,e)):new s(t,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const n=new Array(t*e);for(let t=0,r=0;t<n.length;t+=e)n[r++]=this.coords[t],n[r++]=this.coords[t+1];return new s(this.lengths,n,!1,!1)}}},95488(e,t,n){n.d(t,{I:()=>s});var r=n(11406);class s extends r.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},98764(e,t,n){n.d(t,{GD:()=>o,Y0:()=>c,lO:()=>l});var r=n(73941),s=n(16930),i=n(21325);const o=new s.A(r.fv),a=new s.A(r.FY),u=new s.A(r.LJ),c=new s.A(r.Ro);function l(e){const t=h.get(e);if(t)return t;let n=o;if(e)if(e===a)n=a;else if(e===u)n=u;else{const t=e.wkid,r=e.latestWkid;if(null!=t||null!=r)(0,i.tl)(t)||(0,i.tl)(r)?n=a:((0,i.ZL)(t)||(0,i.ZL)(r))&&(n=u);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===f?n=a:e===m&&(n=u)}}}return h.set(e,n),n}const h=new Map,f=a.wkt.toUpperCase(),m=u.wkt.toUpperCase()},99157(e,t,n){n.d(t,{A:()=>a});var r,s=n(5482),i=n(69622),o=n(91429);let a=r=class extends i.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,s.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,s.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,s.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=r=(0,s.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4347],{159(e,t,i){i.d(t,{A:()=>l});var n,s=i(5482),r=i(69622),a=i(91429),o=i(99157);let l=n=class extends r.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const i=this.steps[t];e.steps.push(i.getInverse())}return e}};(0,s.Cg)([(0,a.MZ)({type:[o.A],nonNullable:!0})],l.prototype,"steps",void 0),l=n=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],l)},5834(e,t,i){i.d(t,{A:()=>p});var n=i(5482),s=i(93637),r=i(91429),a=i(56507),o=i(41266),l=i(41366),u=i(93223);function c(e,t,i){(0,s.sM)(i,e instanceof Date?e.getTime():e,t)}let p=class extends((0,l.K)(o.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,n.Cg)([(0,r.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],p.prototype,"numBins",void 0),(0,n.Cg)([(0,r.MZ)({json:{name:"parameters.end",write:{writer:c}}})],p.prototype,"end",void 0),(0,n.Cg)([(0,r.MZ)({json:{name:"parameters.start",write:{writer:c}}})],p.prototype,"start",void 0),(0,n.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],p.prototype,"type",void 0),p=(0,n.Cg)([(0,r.$K)("esri.rest.support.AutoIntervalBinParameters")],p),p.from=(0,a.dp)(p)},8384(e,t,i){i.d(t,{G:()=>C});var n=i(4718),s=i(12359),r=i(90634),a=i(62577),o=i(21325),l=i(46329),u=i(52006),c=i(29441),p=i(51441),d=i(30524),f=i(87445),h=i(1873),m=i(43668);class y{constructor(e,t,i){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=i,this.featureAdapter=t;const n=e.outFields;if(n&&!n.includes("*")){this.outFields=n;let e=0;for(const t of n){const n=(0,c.Wq)(t),s=this.fieldsIndex.get(n),r=s?null:(0,c.j4)(n,i),a=s?s.name:(0,c.SY)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:r})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach(e=>this.getAttributes(e)),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,i){if(i)return this.featureAdapter.getAttribute(e,i.name);const n=t;let s=null;return this._fieldDataCache.has(n)?s=this._fieldDataCache.get(n)?.clause:i||(s=(0,c.j4)(t,this.fieldsIndex),this._fieldDataCache.set(n,{alias:n,clause:s})),s?.calculateValue(e,this.featureAdapter)}getDataValues(e,t,i=!0){const n=t.normalizationType,s=t.normalizationTotal,r=this.fieldsIndex.get(t.field),a=(0,d.zD)(r)||(0,d.Ah)(r),o=(0,d.OH)(r);return e.map(e=>{let r=t.field&&this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2?(r=`${(0,h.gJ)(r)}${t.fieldDelimiter}${(0,h.gJ)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(r=`${r}${t.fieldDelimiter}${(0,h.gJ)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)):"string"==typeof r&&i&&(a?r=r?new Date(r).getTime():null:o&&(r=r?(0,f.rb)(r):null)),n&&Number.isFinite(r)){const i="field"===n&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;r=(0,h.zS)(r,n,i,s)}return r})}async getExpressionValues(e,t,i,n,s){const{arcadeUtils:r}=await(0,m.l)(),a=r.hasGeometryOperations(t);a&&await r.enableGeometryOperations();const o=r.createFunction(t),l=r.getViewInfo(i),u={fields:this.fieldsIndex.fields};return e.map(e=>{const t={attributes:this.featureAdapter.getAttributes(e),layer:u,geometry:a?{...(0,p.pL)(n.geometryType,this.featureAdapter.getGeometry(e)),spatialReference:i?.spatialReference}:null},c=r.createExecContext(t,l,s);return r.executeFunction(o,c)})}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,c.j4)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testFeature(e,this.featureAdapter)??!1}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,c.j4)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testSet(e,this.featureAdapter)??!1}_processAttributesForOutFields(e){const t=this.outFields;if(!t?.length)return this.featureAdapter.getAttributes(e);const i={};for(const n of t){const{alias:t,clause:s}=this._fieldDataCache.get(n);i[t]=s?s.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return i}_processAttributesForDistinctValues(e){if(null==e||!this.returnDistinctValues)return e;const t=this.outFields,i=[];if(t)for(const n of t){const{alias:t}=this._fieldDataCache.get(n);i.push(e[t])}else for(const t in e)i.push(e[t]);const n=`${(t||["*"]).join(",")}=${i.join(",")}`;let s=this._returnDistinctMap.get(n)||0;return this._returnDistinctMap.set(n,++s),s>1?null:e}}var g=i(31464),x=i(58727);class v{constructor(e,t,i){this.objectId=e,this.target=t,this.distance=i}}class w extends v{constructor(e,t,i){super(e,t,i),this.type="vertex"}}class _ extends v{constructor(e,t,i,n,s,r=!1){super(e,t,i),this.start=n,this.end=s,this.draped=r,this.type="edge"}}var S=i(5834),F=i(59977),R=i(57231),I=i(11440),T=i(60909),M=i(98623),A=i(92647);const b="bin";class C{constructor(e,t,i){this.items=e,this.query=t,this.geometryType=i.geometryType,this.hasM=i.hasM,this.hasZ=i.hasZ,this.fieldsIndex=i.fieldsIndex,this.objectIdField=i.objectIdField,this.spatialReference=i.spatialReference,this.featureAdapter=i.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){const e=new y(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:i,outStatistics:n}=this.query,s=t?.length;if(!s)return 1;const r=new Map,a=new Map,o=new Set;for(const s of n){const{statisticType:n}=s,l="exceedslimit"!==n?s.onStatisticField:void 0;if(!a.has(l)){const i=[];for(const n of t){const t=this._getAttributeValues(e,n,this.items,r);i.push(t)}a.set(l,this._calculateUniqueValues(i,this.items,e.returnDistinctValues))}const u=a.get(l);for(const t in u){const{data:n,items:s}=u[t],r=n.join(",");i&&!e.validateItems(s,i)||o.add(r)}}return o.size}async createQueryResponse(){let e;if(e=this.query.outStatistics?this.query.outStatistics.some(e=>"exceedslimit"===e.statisticType)?this._createExceedsLimitQueryResponse():await this._createStatisticsQueryResponse(this.query,this.items):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry){const t=this.query.geometry;(0,o.fn)(this.query.outSR)&&!(0,o.aI)(t.spatialReference,this.query.outSR)?e.queryGeometry=(0,p.ag)({spatialReference:this.query.outSR,...(0,g.Cv)(t,t.spatialReference,this.query.outSR)}):e.queryGeometry=(0,p.ag)({spatialReference:this.query.outSR,...t})}return e}createSnappingResponse(e,t,i){const n=this.featureAdapter,s=B(this.hasZ,this.hasM),{point:r}=e,a="number"==typeof e.distance?e.distance:e.distance.x,o="number"==typeof e.distance?e.distance:e.distance.y;function c(e,t){const i=(e-r.x)/a,n=(t-r.y)/o;return i*i+n*n}const p={candidates:[]},d="esriGeometryPolygon"===this.geometryType,f="esriGeometryPolyline"===this.geometryType||"esriGeometryPoint"===this.geometryType,h=this._getPointCreator(t,this.spatialReference,i),m=new O(null,0),y=new O(null,0),g={x:0,y:0,z:0};for(const e of this.items){const t=n.getObjectId(e),i=n.getGeometryWithCurves?.(e);if(null!=i){v(i,t);continue}const s=n.getGeometry(e);null==s||x(s,t)}return p.candidates.sort((e,t)=>e.distance-t.distance),p;function x(t,i){const{coords:n}=t,a=t.isPoint?P:t.lengths;if(m.coords=n,y.coords=n,e.returnEdge){let e=0;for(let t=0;t<a.length;t++){const n=a[t],o=e;for(let t=0;t<n;t++,e+=s){if(!d&&t===n-1)continue;if(m.coordsIndex=e,y.coordsIndex=t===n-1?o:e+s,!z(g,r,m,y))continue;const a=c(g.x,g.y);a<=1&&p.candidates.push(new _(i,h(g),Math.sqrt(a),h(m),h(y)))}}}if("all"===e.vertexMode){let e=0;for(let t=0;t<a.length;t++){const n=a[t],r=e,o=y;o.coordsIndex=r;for(let t=0;t<n;t++,e+=s){if(m.coordsIndex=e,d&&t===n-1&&m.x===o.x&&m.y===o.y)continue;const s=c(m.x,m.y);s<=1&&p.candidates.push(new w(i,h(m),Math.sqrt(s)))}}}else if(f&&"ends"===e.vertexMode){let e=0;const t=[];for(let i=0;i<a.length;i++){t.push(e);const n=a[i];e+=n*s,n>1&&t.push(e-s)}for(const e of t){m.coordsIndex=e;const t=c(m.x,m.y);t<=1&&p.candidates.push(new w(i,h(m),Math.sqrt(t)))}}}function v(t,i){const{candidates:n}=p,s={x:0,y:0,z:0};if(e.returnEdge){const e=[r.x,r.y],a=new O(e,0),o=new O(e,0);for(const{segments:r}of t.parts)for(const{start:t,curve:p}of r){const{curvePoint:r}=(0,l.y)(t,p,e),d=c(...r);d>1||([s.x,s.y]=r,a.coords=t,o.coords=(0,u.yP)(p),n.push(new _(i,h(s),Math.sqrt(d),h(a),h(o))))}}function a(e){s.x=t.vertexXY[2*e],s.y=t.vertexXY[2*e+1];const r=c(s.x,s.y);r>1||(s.z=t.vertexZ?.[e]??0,n.push(new w(i,h(s),Math.sqrt(r))))}if("all"===e.vertexMode){const{vertexCount:e}=t;for(let t=0;t<e;++t)a(t);return}if("ends"===e.vertexMode)switch(t.type){case"point":a(0);break;case"polyline":for(let e=0;e<t.partCount;++e){const i=t.partOffsets[e],n=t.partOffsets[e+1];a(i),n!==i&&a(n)}}}}_getPointCreator(e,t,i){const n=null==i||(0,o.aI)(t,i)?e=>e:e=>(0,g.Cv)(e,t,i),{hasZ:s}=this;return s&&e?({x:e,y:t,z:i})=>n({x:e,y:t,z:i}):({x:e,y:t})=>n({x:e,y:t,z:0})}async createSummaryStatisticsResponse(e){const{field:t,valueExpression:i,normalizationField:n,normalizationType:s,normalizationTotal:r,minValue:a,maxValue:o,scale:l,timeZone:u,outStatisticTypes:c}=e,p=this.fieldsIndex.get(t),f=(0,d.vE)(p)||(0,d.zD)(p)||(0,d.Ah)(p),m=await this._getDataValues({field:t,valueExpression:i,normalizationField:n,normalizationType:s,normalizationTotal:r,scale:l,timeZone:u},this.items),y=(0,h.Vb)({normalizationType:s,normalizationField:n,minValue:a,maxValue:o}),g={value:.5,fieldType:p?.type},x=(0,d.yM)(p)?(0,h.z9)({values:m,supportsNullCount:y,percentileParams:g,outStatisticTypes:c}):(0,h.G_)({values:m,minValue:a,maxValue:o,useSampleStdDev:!s,supportsNullCount:y,percentileParams:g,outStatisticTypes:c});return(0,h.oZ)(x,c,f)}async createUniqueValuesResponse(e){const{field:t,valueExpression:i,domains:n,returnAllCodedValues:s,scale:r,timeZone:a}=e,o=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:i,scale:r,timeZone:a},this.items,!1),l=(0,h.b3)(o);return(0,h.lv)(l,n,s,e.fieldDelimiter)}async createClassBreaksResponse(e){const{field:t,valueExpression:i,normalizationField:n,normalizationType:s,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:u,numClasses:c,scale:p,timeZone:d}=e,f=await this._getDataValues({field:t,valueExpression:i,normalizationField:n,normalizationType:s,normalizationTotal:r,scale:p,timeZone:d},this.items),m=(0,h.Rw)(f,{field:t,normalizationField:n,normalizationType:s,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:u,numClasses:c});return(0,h.jM)(m,a)}async createHistogramResponse(e){const{field:t,valueExpression:i,normalizationField:n,normalizationType:s,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:u,numBins:c,scale:p,timeZone:d}=e,f=await this._getDataValues({field:t,valueExpression:i,normalizationField:n,normalizationType:s,normalizationTotal:r,scale:p,timeZone:d},this.items);return(0,h.$y)(f,{field:t,normalizationField:n,normalizationType:s,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:u,numBins:c})}_sortFeatures(e,t,i){if(e.length>1&&t?.length)for(const n of t.slice().reverse()){const t=n.split(" "),s=t[0],r=this.fieldsIndex.get(s),a=!!t[1]&&"desc"===t[1].toLowerCase(),o=(0,h.FM)(r?.type,a,"case-sensitive");e.sort((e,t)=>{const n=i(e,s,r),a=i(t,s,r);return o(n,a)})}}_createFeatureQueryResponse(e){const{items:t,geometryType:i,hasM:n,hasZ:s,objectIdField:r,spatialReference:o}=this,{outFields:l,outSR:u,quantizationParameters:c,resultRecordCount:d,resultOffset:f,returnZ:h,returnM:m}=e,y=null!=d&&t.length>(f||0)+d,g=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map(e=>this.fieldsIndex.get(e)));return{exceededTransferLimit:y,features:this._createFeatures(e,t),fields:g,geometryType:i,hasM:n&&m,hasZ:s&&h,objectIdFieldName:r,spatialReference:(0,p.ag)(u||o),transform:c&&(0,a.VV)(c)||null}}_createFeatures(e,t){const i=new y(e,this.featureAdapter,this.fieldsIndex),{hasM:n,hasZ:s}=this,{orderByFields:r,quantizationParameters:o,returnGeometry:l,returnCentroid:u,maxAllowableOffset:c,resultOffset:d,resultRecordCount:f,returnZ:h=!1,returnM:m=!1}=e,g=s&&h,x=n&&m;let v=[],w=0;const _=[...t];if(this._sortFeatures(_,r,(e,t,n)=>i.getFieldValue(e,t,n)),this.geometryType&&(l||u)){const e=(0,a.VV)(o)??void 0,t="esriGeometryPolygon"===this.geometryType||"esriGeometryPolyline"===this.geometryType;if(l&&!u)for(const n of _){const s=this.featureAdapter.getGeometry(n),r=this._addFeatureJSONMetadata(n,{attributes:i.getAttributes(n),geometry:(0,p.pL)(this.geometryType,s,c,e,g,x)});t&&s&&!r.geometry&&(r.centroid=(0,p.LQ)(this,this.featureAdapter.getCentroid(n,this),e)),v[w++]=r}else if(!l&&u)for(const t of _)v[w++]=this._addFeatureJSONMetadata(t,{attributes:i.getAttributes(t),centroid:(0,p.LQ)(this,this.featureAdapter.getCentroid(t,this),e)});else for(const t of _)v[w++]=this._addFeatureJSONMetadata(t,{attributes:i.getAttributes(t),centroid:(0,p.LQ)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,p.pL)(this.geometryType,this.featureAdapter.getGeometry(t),c,e,g,x)})}else for(const e of _){const t=i.getAttributes(e);t&&(v[w++]=this._addFeatureJSONMetadata(e,{attributes:t}))}const S=d||0;if(null!=f){const e=S+f;v=v.slice(S,Math.min(v.length,e))}return v}_addFeatureJSONMetadata(e,t){const i=this.featureAdapter.getMetadata?.(e);return void 0!==i&&(t.metadata=i),t}_createExceedsLimitQueryResponse(){let e=!1,t=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;for(const e of this.query.outStatistics??[])if("exceedslimit"===e.statisticType){t=null!=e.maxPointCount?e.maxPointCount:Number.POSITIVE_INFINITY,i=null!=e.maxRecordCount?e.maxRecordCount:Number.POSITIVE_INFINITY,n=null!=e.maxVertexCount?e.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)e=this.items.length>t;else if(this.items.length>i)e=!0;else{const t=B(this.hasZ,this.hasM),i=this.featureAdapter;e=this.items.reduce((e,t)=>{const n=i.getGeometry(t);return e+(null!=n&&n.coords.length||0)},0)/t>n}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(e)}}]}}async _createStatisticsQueryResponse(e,t,i={attributes:{}}){const n=[],s=new Map,r=new Map,a=new Map,o=new Map,l=new y(e,this.featureAdapter,this.fieldsIndex),u=e.outStatistics,{groupByFieldsForStatistics:c,having:p,orderByFields:f,resultRecordCount:h}=e,m=c?.length,g=!!m,x=g?c[0]:null,v=g&&!this.fieldsIndex.get(x);for(const e of u??[]){const{outStatisticFieldName:u,statisticType:f}=e,h=e,y="exceedslimit"!==f?e.onStatisticField:void 0,w="percentile_disc"===f||"percentile_cont"===f,_="EnvelopeAggregate"===f||"CentroidAggregate"===f||"ConvexHullAggregate"===f,S=g&&1===m&&(y===x||v)&&"count"===f;if(g){if(!a.has(y)){const e=[];for(const i of c){const n=this._getAttributeValues(l,i,t,s);e.push(n)}a.set(y,this._calculateUniqueValues(e,t,!_&&l.returnDistinctValues))}const e=a.get(y);if(!e)continue;const i=Object.keys(e);for(const n of i){const{count:i,data:r,items:a,itemPositions:d}=e[n],f=r.join(",");if(!p||l.validateItems(a,p)){const e=o.get(f)||{attributes:{}};if(_){e.aggregateGeometries||(e.aggregateGeometries={});const{aggregateGeometries:t,outStatisticFieldName:i}=await this._getAggregateGeometry(h,a);e.aggregateGeometries[i]=t}else{let n=null;if(S)n=i;else{const e=this._getAttributeValues(l,y,t,s),i=d.map(t=>e[t]);n=w&&"statisticParameters"in h?this._getPercentileValue(h,i):this._getStatisticValue(h,i,null,l.returnDistinctValues)}e.attributes[u]=n}let n=0;c.forEach((t,i)=>e.attributes[this.fieldsIndex.get(t)?t:"EXPR_"+ ++n]=r[i]),o.set(f,e)}}}else if(_){i.aggregateGeometries||(i.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:n}=await this._getAggregateGeometry(h,t);i.aggregateGeometries[n]=e}else{const e=this._getAttributeValues(l,y,t,s);i.attributes[u]=w&&"statisticParameters"in h?this._getPercentileValue(h,e):this._getStatisticValue(h,e,r,l.returnDistinctValues)}const F="min"!==f&&"max"!==f||!(0,d.yM)(this.fieldsIndex.get(y))&&!this._isAnyDateField(y)?null:this.fieldsIndex.get(y)?.type;n.push({name:u,alias:u,type:F||"esriFieldTypeDouble"})}const w=g?Array.from(o.values()):[i];return this._sortFeatures(w,f,(e,t)=>e.attributes[t]),h&&(w.length=Math.min(h,w.length)),{fields:n,features:w}}_isAnyDateField(e){const t=this.fieldsIndex.get(e);return(0,d.vE)(t)||(0,d.zD)(t)||(0,d.Ah)(t)||(0,d.OH)(t)}async _getAggregateGeometry(e,t){const{convexHull:n,union:a}=await i.e(1023).then(i.bind(i,81023)),{statisticType:o,outStatisticFieldName:l}=e,{featureAdapter:u,spatialReference:c,geometryType:d}=this,f=t.map(e=>(0,p.pL)(d,u.getGeometry(e))),h=n(c,f,!0)[0],m={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===o){const e=h?(0,r.v)(h):(0,r.HA)(a(c,f));m.aggregateGeometries={...e,spatialReference:c},m.outStatisticFieldName=l||"extent"}else if("CentroidAggregate"===o){const e=h?(0,s.l8)(h):(0,s.Z4)((0,r.HA)(a(c,f)));m.aggregateGeometries={x:e[0],y:e[1],spatialReference:c},m.outStatisticFieldName=l||"centroid"}else"ConvexHullAggregate"===o&&(m.aggregateGeometries=h,m.outStatisticFieldName=l||"convexHull");return m}_getStatisticValue(e,t,i,n){const{onStatisticField:s,statisticType:r}=e;let a=null;return a=i?.has(s)?i.get(s):(0,d.yM)(this.fieldsIndex.get(s))||this._isAnyDateField(s)?(0,h.z9)({values:t,returnDistinct:n}):(0,h.G_)({values:n?[...new Set(t)]:t,minValue:null,maxValue:null,useSampleStdDev:!0}),i&&i.set(s,a),a["var"===r?"variance":r]}_getPercentileValue(e,t){const{onStatisticField:i,statisticParameters:n,statisticType:s}=e,{value:r,orderBy:a}=n,o=this.fieldsIndex.get(i);return(0,h.qg)(t,{value:r,orderBy:a,fieldType:o?.type,isDiscrete:"percentile_disc"===s})}_getAttributeValues(e,t,i,n){if(n.has(t))return n.get(t);const s=this.fieldsIndex.get(t),r=i.map(i=>e.getFieldValue(i,t,s));return n.set(t,r),r}_calculateUniqueValues(e,t,i){const n={},s=t.length;for(let r=0;r<s;r++){const s=t[r],a=[];for(const t of e)a.push(t[r]);const o=a.join(",");null==n[o]?n[o]={count:1,data:a,items:[s],itemPositions:[r]}:(i||n[o].count++,n[o].items.push(s),n[o].itemPositions.push(r))}return n}async _getDataValues(e,t,i=!0){const s=new y(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:r,scale:a,timeZone:o}=e;return r?s.getExpressionValues(t,r,{viewingMode:"map",scale:a,spatialReference:this.query.outSR||this.spatialReference},{geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM},o):s.getDataValues(t,(0,n.o8)(e),i)}_calculateHistogramBins(e,t,i){if(null==t.min&&null==t.max)return[];const n=t.intervals,s=t.min??0,r=t.max??0,a=n.map(([e,t])=>({minValue:e,maxValue:t,count:0,items:[]}));for(let t=0;t<e.length;t++){const o=e[t],l=i[t];if(null!=o&&o>=s&&o<=r){const e=(0,h.Ak)(n,o);e>-1&&(a[e].count++,a[e].items.push(l))}}return a}async createQueryBinsResponse(e){const t=e.bin?.splitBy;if(!t)return this._createBinsResponse(e);const{value:i,outAlias:n,valueType:s}=t,r=[],a=[{name:n??i,alias:n??i,type:s??"esriFieldTypeString"},{name:b,alias:b,type:"esriFieldTypeInteger"}],o=new y(e,this.featureAdapter,this.fieldsIndex),l=new Map,u=[...this.items];this._sortFeatures(u,[i],(e,t,i)=>o.getFieldValue(e,t,i));const c=this._getAttributeValues(o,i,u,l),p=this._calculateUniqueValues([c],u,o.returnDistinctValues);for(const t in p){const{items:s}=p[t],o=await this._createBinsResponse(e,s);if(r.push(...o.features.map(e=>({...e,attributes:{...e.attributes,[n??i]:t}}))),o.fields)for(const e of o.fields)a.some(t=>t.name===e.name)||a.push(e)}return{fields:a,features:r}}async _createBinsResponse(e,t){const i=e.bin;switch(t=t??this.items,i.type){case"autoIntervalBin":return this._createAutoIntervalBinsResponse(S.A.fromJSON(i),e,t);case"dateBin":return this._createDateBinsResponse(F.A.fromJSON(i),e,t);case"fixedBoundariesBin":return this._createFixedBoundariesBinsResponse(I.A.fromJSON(i),e,t);case"fixedIntervalBin":return this._createFixedIntervalBinsResponse(T.A.fromJSON(i),e,t)}}async _createAutoIntervalBinsResponse(e,t,i){const{field:n,normalizationField:s,numBins:r,normalizationType:a,normalizationTotal:o,start:l,end:u}=e,c=await this._getDataValues({field:e.field||e.expression,normalizationField:e.normalizationField,normalizationType:e.normalizationType,normalizationTotal:e.normalizationTotal,timeZone:t.outTimeReference?.ianaTimeZone},i),p=(0,h.sU)(c,{field:n,normalizationField:s,normalizationType:a,normalizationTotal:o,numBins:r,minValue:(0,x.dO)(a?e.normalizationMinValue:l,!1),maxValue:(0,x.dO)(a?e.normalizationMaxValue:u,!1)}),d=this._calculateHistogramBins(c,p,i);return this._createFeaturesFromHistogramBins(d,t)}async _createDateBinsResponse(e,t,i){const{field:n,interval:s,start:r,end:a,snapToData:o,returnFullIntervalBin:l,offset:u,firstDayOfWeek:c}=e,p=s.unit,f=await this._getDataValues({field:n||e.expression,timeZone:t.outTimeReference?.ianaTimeZone},i),h=(0,d.OH)(this.fieldsIndex.get(n)),m=R.g.toJSON(p),y=f.filter(Boolean).sort((e,t)=>e-t),g=null!=r?(0,x.dO)(r,h):y[0],v=null!=a?(0,x.dO)(a,h):y[y.length-1],w=[];if(null!=g&&null!=v){const e={zone:t.outTimeReference?.ianaTimeZone??M.n$},i=u?.unit?R.g.toJSON(u.unit):"milliseconds",n={[i]:u?.value||0},r=A.c9.fromMillis(g,e).minus(n),a=A.c9.fromMillis(v,e).minus(n),p="number"==typeof c&&c>=1&&c<=7?c:7,d=(e,t)=>{const i=(e.weekday-t+7)%7;return e.minus({days:i}).startOf("day")};if("last"===o){let e="week"===m?((e,t)=>d(e,t).plus({days:7}))(a,p):a;for(;e>r;){const t=e.minus({[m]:s.value});if(t<r){w.unshift([l?t.plus(n).toMillis():r.plus(n).toMillis(),e.plus(n).toMillis()]);break}w.unshift([t.plus(n).toMillis(),e.plus(n).toMillis()]),e=t}}else{let e="first"===o?r:"week"===m?d(r,p):r.startOf(m);for(;e<=a;){const t=e.plus({[m]:s.value});if(t>a){w.push([e.plus(n).toMillis(),l?t.plus(n).toMillis():a.plus(n).toMillis()]);break}w.push([e.plus(n).toMillis(),t.plus(n).toMillis()]),e=t}}}const _=this._calculateHistogramBins(f,{intervals:w,min:g,max:v},i);return this._createFeaturesFromHistogramBins(_,t)}async _createFixedBoundariesBinsResponse(e,t,i){const{field:n}=e,s=await this._getDataValues({field:n||e.expression,timeZone:t.outTimeReference?.ianaTimeZone},i),r=(0,d.OH)(this.fieldsIndex.get(n)),a=e.boundaries.map(e=>(0,x.dO)(e,r)).sort((e,t)=>e-t),o=[];for(let e=0;e<a.length-1;e++)o.push([a[e],a[e+1]]);const l={intervals:o,min:a.at(0),max:a.at(-1)},u=this._calculateHistogramBins(s,l,i);return this._createFeaturesFromHistogramBins(u,t)}async _createFixedIntervalBinsResponse(e,t,i){const{field:n,interval:s,normalizationType:r,start:a,end:o}=e,l=await this._getDataValues({field:n||e.expression,normalizationField:e.normalizationField,normalizationType:r,normalizationTotal:e.normalizationTotal,timeZone:t.outTimeReference?.ianaTimeZone},i),u=(0,d.OH)(this.fieldsIndex.get(n)),c=(0,h.sU)(l,{field:n,classificationMethod:"defined-interval",definedInterval:s,minValue:(0,x.dO)(r?e.normalizationMinValue:a,u),maxValue:(0,x.dO)(r?e.normalizationMaxValue:o,u)},!0),p=this._calculateHistogramBins(l,c,i);return this._createFeaturesFromHistogramBins(p,t)}async _createFeaturesFromHistogramBins(e,t){const{upperBoundaryAlias:i,lowerBoundaryAlias:n}=t,s=n||"lowerBoundary",r=i||"upperBoundary",a=[],o=[{name:s,alias:s,type:"esriFieldTypeDouble"},{name:r,alias:r,type:"esriFieldTypeDouble"}],l=t.bin?.stackBy?.value,u=t.bin?.stackBy?.outAlias;l&&o.push({name:b,alias:b,type:"esriFieldTypeInteger"},{name:u??l,alias:u??l,type:"esriFieldTypeString"});let c=0;const p="dateBin"===t.bin.type,d=t.outTimeReference?.ianaTimeZone;for(const i of e){const{minValue:e,maxValue:n,items:f}=i,h={attributes:{}};let m;if(h.attributes[s]=p&&d&&null!=e?A.c9.fromMillis(e,{zone:d}).toISO():e,t.bin.hideUpperBound||(h.attributes[r]=p&&d&&null!=n?A.c9.fromMillis(n,{zone:d}).toISO():n),l?(m=await this._createStatisticsQueryResponse({...t,groupByFieldsForStatistics:[l],orderByFields:[l]},f),h.attributes[b]=++c,"flat"===t.bin.jsonStyle?a.push(...m.features.map(({attributes:{EXPR_1:e,...t},...i})=>({...i,attributes:u??e?{...t,[u??e]:e,...h.attributes}:{...t,...h.attributes}}))):(h.stackedAttributes=m.features.map(({attributes:{EXPR_1:e,...t}})=>u??e?{...t,[u??e]:e}:t),a.push(h))):(t.bin?.splitBy&&(h.attributes[b]=++c),m=await this._createStatisticsQueryResponse(t,f,h),a.push(h)),m.fields)for(const e of m.fields)o.some(t=>t.name===e.name)||o.push(e)}return"desc"===t.binOrder&&a.reverse(),{fields:o,features:a}}}function z(e,t,i,n){const s=n.x-i.x,r=n.y-i.y,a=t.x-i.x,o=t.y-i.y,l=s*s+r*r;if(0===l)return!1;const u=a*s+o*r,c=Math.min(1,Math.max(0,u/l));return e.x=i.x+s*c,e.y=i.y+r*c,!0}function B(e,t){return e?t?4:3:t?3:2}class O{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}const P=[1]},9762(e,t,i){i.r(t),i.d(t,{projectBuffer:()=>s});var n=i(49208);function s(e,t,i,s,r,a,o=Math.floor(e.length/3)){const l=(0,n.jd)(t,r);if(null==l)return!1;if(l===n.pO){if(e===s&&i===a)return!0;const t=i+3*o;for(let n=i,r=a;n<t;n++,r++)s[r]=e[n]??0;return!0}const u=i+3*o;for(let t=i,n=a;t<u;t+=3,n+=3)l(e,t,s,n);return!0}},11006(e,t,i){function n(e,t,i,n,r){s(e,t,i||0,n||e.length-1,r||a)}function s(e,t,i,n,a){for(;n>i;){if(n-i>600){var o=n-i+1,l=t-i+1,u=Math.log(o),c=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*c*(o-c)/o)*(l-o/2<0?-1:1);s(e,t,Math.max(i,Math.floor(t-l*c/o+p)),Math.min(n,Math.floor(t+(o-l)*c/o+p)),a)}var d=e[t],f=i,h=n;for(r(e,i,t),a(e[n],d)>0&&r(e,i,n);f<h;){for(r(e,f,h),f++,h--;a(e[f],d)<0;)f++;for(;a(e[h],d)>0;)h--}0===a(e[i],d)?r(e,i,h):r(e,++h,n),h<=t&&(i=h+1),t<=h&&(n=h-1)}}function r(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function a(e,t){return e<t?-1:e>t?1:0}i.d(t,{q:()=>n})},11440(e,t,i){i.d(t,{A:()=>u});var n=i(5482),s=i(93637),r=i(91429),a=i(56507),o=i(41266),l=i(93223);let u=class extends o.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,n.Cg)([(0,r.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,i){(0,s.sM)(i,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,n.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,n.Cg)([(0,r.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,a.dp)(u)},17136(e,t,i){i.d(t,{Y_:()=>A,O7:()=>T,el:()=>I});var n=i(92602),s=i(69052),r=i(49186),a=i(53966),o=i(39829),l=i(82799),u=i(16930),c=i(80754),p=i(21325),d=i(28735),f=i(11254),h=i(60408),m=i(65864),y=i(2272),g=i(84952),x=i(92300);const v=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function _(e){return"polyline"===e[0].type}function S(e,t,i){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof o.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw v().error(e),new r.A("internal:geometry",e)}const i=(0,c.r8)(e),n=[];for(const e of i){const i=[];n.push(i),i.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const s=e[n][0],r=e[n][1],a=e[n+1][0],o=e[n+1][1],l=Math.sqrt((a-s)*(a-s)+(o-r)*(o-r)),u=(o-r)/l,c=(a-s)/l,p=l/t;if(p>1){for(let e=1;e<=p-1;e++){const n=e*t,a=c*n+s,o=u*n+r;i.push([a,o])}const e=(l+Math.floor(p-1)*t)/2,n=c*e+s,a=u*e+r;i.push([n,a])}i.push([a,o])}}return function(e){return"polygon"===e.type}(e)?new o.A({rings:n,spatialReference:e.spatialReference}):new l.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.ci)(t,!0)}return i&&(e=(0,c.kS)(e,i)),e}function F(e,t,i){if(Array.isArray(e)){const n=e[0];if(n>t){const i=(0,c.kd)(n,t);e[0]=n+i*(-2*t)}else if(n<i){const t=(0,c.kd)(n,i);e[0]=n+t*(-2*i)}}else{const n=e.x;if(n>t){const i=(0,c.kd)(n,t);e=e.clone().offset(i*(-2*t),0)}else if(n<i){const t=(0,c.kd)(n,i);e=e.clone().offset(t*(-2*i),0)}}return e}function R(e,t){let i=-1;for(let n=0;n<t.cutIndexes.length;n++){const s=t.cutIndexes[n],r=t.geometries[n],a=(0,c.r8)(r);for(let e=0;e<a.length;e++){const t=a[e];t.some(i=>{if(i[0]<180)return!0;{let i=0;for(let e=0;e<t.length;e++){const n=t[e][0];i=n>i?n:i}i=Number(i.toFixed(9));const n=-360*(0,c.kd)(i,180);for(let i=0;i<t.length;i++){const t=r.getPoint(e,i);r.setPoint(e,i,t.clone().offset(n,0))}return!0}})}if(s===i){if(w(e))for(const t of(0,c.r8)(r))e[s]=e[s].addRing(t);else if(_(e))for(const t of(0,c.r8)(r))e[s]=e[s].addPath(t)}else i=s,e[s]=r}return e}async function I(e,t,i){if(!Array.isArray(e))return I([e],t);t&&"string"!=typeof t&&v().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let r,a,u,w,_,T,M,A,b=0;const C=[],z=[];for(const t of e)if(null!=t)if(r||(r=t.spatialReference,a=(0,p.Vp)(r),u=r.isWebMercator,T=u?102100:4326,w=c.j7[T].maxX,_=c.j7[T].minX,M=c.j7[T].plus180Line,A=c.j7[T].minus180Line),a)if("mesh"===t.type)z.push(t);else if("point"===t.type)z.push(F(t.clone(),w,_));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>F(e,w,_)),z.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,a);z.push(e.rings?new o.A(e):e)}else if(t.extent){const e=t.extent,i=(0,c.kd)(e.xmin,_)*(2*w);let n=0===i?t.clone():(0,c.kS)(t.clone(),i);e.offset(i,0);let{xmin:s,xmax:r}=e;s=Number(s.toFixed(9)),r=Number(r.toFixed(9)),e.intersects(M)&&r!==w?(b=r>b?r:b,n=S(n,u),C.push(n),z.push("cut")):e.intersects(A)&&s!==_?(b=r*(2*w)>b?r*(2*w):b,n=S(n,u,360),C.push(n),z.push("cut")):z.push(n)}else z.push(t.clone());else z.push(t);else z.push(t);let B=(0,c.kd)(b,w),O=-90;const P=B,G=new l.A;for(;B>0;){const e=360*B-180;G.addPath([[e,O],[e,-1*O]]),O*=-1,B--}if(C.length>0&&P>0){const t=R(C,await async function(e,t,i,n){const s=(0,y.Dl)(e),r=t[0].spatialReference,a={...n,responseType:"json",query:{...s.query,f:"json",sr:(0,p.YX)(r),target:JSON.stringify({geometryType:(0,h.$B)(t[0]),geometries:t}),cutter:JSON.stringify(i)}},o=await(0,f.A)(s.path+"/cut",a),{cutIndexes:l,geometries:u=[]}=o.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,m.rS)(e);return t.spatialReference=r,t})}}(s,C,G,i)),n=[],r=[];for(let i=0;i<z.length;i++){const s=z[i];if("cut"!==s)r.push(s);else{const s=t.shift(),a=e[i];null!=a&&"polygon"===a.type&&a.rings&&a.rings.length>1&&s.rings.length>=a.rings.length?(n.push(s),r.push("simplify")):r.push(u?(0,d.Gh)(s):s)}}if(!n.length)return r;const a=await async function(e,t,i){const n="string"==typeof e?(0,g.An)(e):e,s=t[0].spatialReference,r=(0,h.$B)(t[0]),a={...i,query:{...n.query,f:"json",sr:(0,p.YX)(s),geometries:JSON.stringify((0,x.X)(t))}},{data:o}=await(0,f.A)(n.path+"/simplify",a);return(0,x.V)(o.geometries,r,s)}(s,n,i),o=[];for(let e=0;e<r.length;e++){const t=r[e];"simplify"!==t?o.push(t):o.push(u?(0,d.Gh)(a.shift()):a.shift())}return o}const q=[];for(let e=0;e<z.length;e++){const t=z[e];if("cut"!==t)q.push(t);else{const e=C.shift();q.push(!0===u?(0,d.Gh)(e):e)}}return q}function T(e,t,i){const n=(0,p.Vp)(i);if(null==n)return e;const[s,r]=n.valid,a=2*r;let o=0,l=0;t>r?o=Math.ceil(Math.abs(t-r)/a):t<s&&(o=-Math.ceil(Math.abs(t-s)/a)),e>r?l=Math.ceil(Math.abs(e-r)/a):e<s&&(l=-Math.ceil(Math.abs(e-s)/a));let u=e+(o-l)*a;const c=u-t;return c>r?u-=a:c<s&&(u+=a),u}function M(e){const t=(0,p.Vp)(e);if(null==t)return null;const[i,n]=t.valid;return new s.hr(i,n)}const A=M(u.A.WGS84);M(u.A.WebMercator)},29441(e,t,i){i.d(t,{MG:()=>x,SN:()=>f,SY:()=>g,VW:()=>c,Wq:()=>y,eD:()=>h,j4:()=>m,vl:()=>u});var n=i(49186),s=i(44123),r=i(98453);const a=new s.WhereClauseCache(50,500),o="unsupported-query",l=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeBigInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong"]),c=new Set(["esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]),p=new Set(["esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...u,...c]);function d(e,t,i={}){const s=m(t,e);if(!s){const i=a.getError(t,e);throw new n.A(o,"invalid SQL expression",{expression:t,error:i})}const r=i.expressionName||"expression";if(i.validateStandardized&&!s.isStandardized)throw new n.A(o,`${r} is not standard`,{expression:t});if(i.validateAggregate&&!s.isAggregate)throw new n.A(o,`${r} does not contain a valid aggregate function`,{expression:t});return s.fieldNames}function f(e,t,i,n){if(!i)return!0;const s="where clause";return x(e,t,d(e,i,{validateStandardized:!0,expressionName:s}),{expressionName:s,query:n}),!0}function h(e,t,i,s,r){if(!i)return!0;const a="having clause",l=d(e,i,{validateAggregate:!0,expressionName:a});x(e,t,l,{expressionName:a,query:r});const u=m(i,e),c=u?.getExpressions().every(t=>{const{aggregateType:i,field:n}=t,r=e.get(n)?.name;return s.some(t=>{const{onStatisticField:n,statisticType:s}=t,a=e.get(n)?.name;return a===r&&s.toLowerCase().trim()===i})});if(!c)throw new n.A(o,"expressions in having clause should also exist in outStatistics",{having:i});return!0}function m(e,t){return e?a.get(e,t):null}function y(e){return/\((.*?)\)/.test(e)?e:e.split(l)[0]}function g(e){return e.split(l)[1]}function x(e,t,i,s={}){const r=new Map;if(function(e,t,i,n,s){const r=s.includes("*")?[...i,...s.filter(e=>"*"!==e)]:s;for(const s of r)if(t.get(s))v(e,t,i,n,s);else try{const r=d(t,y(s),{validateStandardized:!0});for(const s of r)v(e,t,i,n,s)}catch(t){e.set(s,{type:"expression-error",expression:s,error:t})}}(r,e,t,s.allowedFieldTypes??p,i),r.size){const e=s.expressionName??"expression";throw new n.A(o,`${e} contains invalid or missing fields`,{errors:Array.from(r.values()),query:s.query})}}function v(e,t,i,n,s){const a=t.get(s);a?i.has(a.name)?"all"!==n&&!1===n?.has(a.type)&&e.set(s,{type:"invalid-type",fieldName:a.name,fieldType:r.m.fromJSON(a.type),allowedFieldTypes:Array.from(n,e=>r.m.fromJSON(e))}):e.set(s,{type:"missing-field",fieldName:a.name}):e.set(s,{type:"invalid-field",fieldName:s})}},31464(e,t,i){i.d(t,{Cv:()=>m,Nk:()=>d,lK:()=>g});var n=i(4576),s=i(74887),r=i(91218),a=i(21325),o=i(28735);const l=[0,0];function u(e,t){if(!t)return null;if("x"in t){const i={x:0,y:0};return[i.x,i.y]=e(t.x,t.y,l),null!=t.z&&(i.z=t.z),null!=t.m&&(i.m=t.m),i}if("xmin"in t){const i={xmin:0,ymin:0,xmax:0,ymax:0};return[i.xmin,i.ymin]=e(t.xmin,t.ymin,l),[i.xmax,i.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(i.zmin=t.zmin,i.zmax=t.zmax,i.hasZ=!0),t.hasM&&(i.mmin=t.mmin,i.mmax=t.mmax,i.hasM=!0),i}return"rings"in t?{rings:c(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:c(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:p(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function c(e,t){const i=[];for(const n of e)i.push(p(n,t));return i}function p(e,t){const i=[];for(const n of e){const e=t(n[0],n[1],[0,0]);i.push(e),n.length>2&&e.push(n[2]),n.length>3&&e.push(n[3])}return i}async function d(e,t){if(!e||!t)return;const i=Array.isArray(e)?e.map(e=>null!=e.geometry?e.geometry.spatialReference:null).filter(n.Ru):[e];await(0,r.initializeProjection)(i.map(e=>({source:e,dest:t})))}const f=u.bind(null,o.je),h=u.bind(null,o.tD);function m(e,t,i,n){if(!e)return null;if(i||(i=t,t=e.spatialReference),!(0,a.fn)(t)||!(0,a.fn)(i)||(0,a.aI)(t,i))return e;if((0,o.y7)(t,i)){const t=(0,a.K8)(i)?f(e):h(e);return t.spatialReference=i,t}return(0,r.projectMany)([e],t,i,n)[0]}const y=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,i,n){if(!e?.length||!t||!i||(0,a.aI)(t,i))return e;const r={geometries:e,inSpatialReference:t,outSpatialReference:i,options:n,resolve:(0,s.Tw)()};return this._jobs.push(r),this._timer??=setTimeout(this._process,10),r.resolve.promise}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:i,outSpatialReference:n,resolve:s,options:l}=e,u=t.filter(e=>null!=e);let c;c=(0,o.y7)(i,n)&&null==l?.extendedParams?(0,a.K8)(n)?u.map(f):u.map(h):(0,r.projectMany)(u,i,n,l);let p=0;s(t.map(e=>null==e?null:c[p++])),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function g(e,t,i,n){return y.push(e,t,i,n)}},34403(e,t,i){i.d(t,{TP:()=>a});var n=i(79258);Math.PI;const s=n.$O.radius,r=n.$O.eccentricitySquared,a={a1:s*r,a2:s*r*s*r,a3:s*r*r/2,a4:s*r*s*r*2.5,a5:s*r+s*r*r/2,a6:1-r};n.$O.radius,n.$O.flattening,n.Sw.radius,n.Sw.flattening,n.sH.radius,n.sH.flattening,n.sH.radius},41266(e,t,i){i.d(t,{A:()=>m});var n=i(5482),s=i(69540),r=i(66552),a=i(25482),o=i(91429),l=i(56507),u=i(93223);const c=new r.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let p=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"outAlias",write:!0}})],p.prototype,"alias",void 0),(0,n.Cg)([(0,o.MZ)({type:String})],p.prototype,"responseType",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"value",void 0),(0,n.Cg)([(0,u.e)(c)],p.prototype,"valueType",void 0),p=(0,n.Cg)([(0,o.$K)("esri.rest.support.AttributeBinsGrouping")],p);const d=p;p.from=(0,l.dp)(p);const f=new r.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),h=new r.J({naturalLog:"natural-log",squareRoot:"square-root"});let m=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],m.prototype,"expression",void 0),(0,n.Cg)([(0,u.e)(f,{name:"onExpression.valueType"})],m.prototype,"expressionValueType",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"onField",write:!0}})],m.prototype,"field",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],m.prototype,"firstDayOfWeek",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hideUpperBound",void 0),(0,n.Cg)([(0,o.MZ)({type:d,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],m.prototype,"splitBy",void 0),(0,n.Cg)([(0,o.MZ)({type:d,json:{write:{target:{stackBy:{type:d},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>d.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],m.prototype,"stackBy",void 0),(0,n.Cg)([(0,u.e)(h)],m.prototype,"transformation",void 0),m=(0,n.Cg)([(0,o.$K)("esri.rest.support.BinParametersBase")],m)},41366(e,t,i){i.d(t,{K:()=>p,Q:()=>l});var n=i(5482),s=i(66552),r=i(53966),a=i(91429),o=i(93223);const l=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",p=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&c||i&&u||null,t&&i&&r.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,o.e)(l,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,n.Cg)([(0,a.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i}},44123(e,t,i){i.d(t,{WhereClauseCache:()=>r});var n=i(66344),s=i(89696);class r{constructor(e,t){this._cache=new n.q(e),this._invalidCache=new n.q(t)}get(e,t){const i=`${t?.uid}:${e}`,n=this._cache.get(i);if(n)return n;if(null!=this._invalidCache.get(i))return null;try{const n=s.A.create(e,{fieldsIndex:t});return this._cache.put(i,n),n}catch(e){return this._invalidCache.put(i,e),null}}getError(e,t){const i=`${t?.uid}:${e}`;return this._invalidCache.get(i)??null}}},44794(e,t,i){i.d(t,{v:()=>o});var n=i(4718),s=i(62788),r=i(95488);class a{constructor(e,t){this._observable=new r.I,this._value=e,this._equalityFunction=t}get value(){return(0,s.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function o(e,t=n.gh){return new a(e,t)}},46329(e,t,i){i.d(t,{y:()=>p});var n=i(49186),s=i(4305),r=i(513),a=i(50954),o=i(52006),l=i(49663),u=i(46068),c=i(59803);function p(e,t,i){if((0,o.Xq)(t))return(0,c.T)(e,t,i);if((0,o.n1)(t)){const r=(0,s.m_)(e,t,i)[0];if(null==r)throw new n.A("closestPointOnCurve:unexpected-error","Failed to find close point on bezier curve");return r}if((0,o.aO)(t)){const n=(0,a.pM)(e,t);return(0,r.fM)(n,i)}if((0,o.DA)(t)){const n=(0,l.i)(e,t);return(0,r.fM)(n,i)}const p=(0,u.SW)(e,t);return(0,u.pb)(p,i)}},49208(e,t,i){i.d(t,{Tp:()=>p,jd:()=>c,pO:()=>f,w5:()=>u});var n=i(34727),s=i(86211),r=i(73941),a=i(79258),o=i(34403),l=i(21325);const u={2:{5:f,7:null,9:null,10:f,1:_,6:null,8:null,0:null,3:m,11:y,2:f,4:T},5:{5:f,7:null,9:null,10:f,1:_,6:null,8:null,0:null,3:m,11:y,2:f,4:T},7:{5:null,7:f,9:null,10:f,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:h,7:null,9:null,10:h,1:function(e,t,i,n){const s=e[t]/B,r=z-2*Math.atan(Math.exp(-e[t+1]/B)),a=B+(e[t+2]??0),o=Math.cos(r)*a;i[n]=Math.cos(s)*o,i[n+1]=Math.sin(s)*o,i[n+2]=Math.sin(r)*a},6:null,8:null,0:null,3:f,11:function(e,t,i,n){h(e,t,i,n),y(i,n,i,n)},2:h,4:function(e,t,i,n){h(e,t,i,n),T(i,n,i,n)}},4:{5:M,7:null,9:null,10:M,1:function(e,t,i,n){M(e,t,i,n),_(i,n,i,n)},6:null,8:null,0:null,3:function(e,t,i,n){M(e,t,i,n),m(i,n,i,n)},11:function(e,t,i,n){M(e,t,i,n),y(i,n,i,n)},2:M,4:f},1:{5:I,7:null,9:null,10:I,1:f,6:null,8:null,0:null,3:function(e,t,i,n){I(e,t,i,n),m(i,n,i,n)},11:function(e,t,i,n){I(e,t,i,n),y(i,n,i,n)},2:I,4:function(e,t,i,n){I(e,t,i,n),T(i,n,i,n)}},6:{5:null,7:R,9:null,10:R,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:F,10:F,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:_,6:w,8:v,0:null,3:m,11:y,2:f,4:T},11:{5:g,7:null,9:null,10:g,1:function(e,t,i,n){g(e,t,i,n),_(i,n,i,n)},6:null,8:null,0:null,3:function(e,t,i,n){g(e,t,i,n),m(i,n,i,n)},11:f,2:g,4:function(e,t,i,n){g(e,t,i,n),T(i,n,i,n)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(A.source.spatialReference===e&&A.dest.spatialReference===t)return A;const i=d(e,A.source),n=d(t,A.dest);return 0===i&&0===n?(0,l.aI)(e,t)?A.projector=f:A.projector=null:A.projector=u[i][n],A}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.GA)(e,1)),(0,r.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===r.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===r.FY.wkt?t.spatialReferenceId=6:e.wkt===r.LJ.wkt?t.spatialReferenceId=8:(0,r.q8)(e)?t.spatialReferenceId=7:(0,r.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,i,n){e!==i&&(i[n++]=e[t++],i[n++]=e[t++],i[n]=e[t]??0)}function h(e,t,i,n){i[n]=C*(e[t]/B),i[n+1]=C*(z-2*Math.atan(Math.exp(-e[t+1]/B))),i[n+2]=e[t+2]??0}function m(e,t,i,s){!function(e,t,i,s,r){const a=.4999999*Math.PI,o=(0,n.qE)(b*e[t+1],-a,a),l=Math.sin(o);i[s++]=b*e[t]*r.radius,i[s++]=r.halfSemiMajorAxis*Math.log((1+l)/(1-l)),i[s]=e[t+2]??0}(e,t,i,s,a.$O)}function y(e,t,i,n){i[n]=e[t]*O,i[n+1]=e[t+1]*O,i[n+2]=e[t+2]??0}function g(e,t,i,n){i[n]=e[t]*P,i[n+1]=e[t+1]*P,i[n+2]=e[t+2]??0}function x(e,t,i,n,s){const r=s+(e[t+2]??0),a=b*e[t],o=b*e[t+1],l=Math.cos(o)*r;i[n]=Math.cos(a)*l,i[n+1]=Math.sin(a)*l,i[n+2]=Math.sin(o)*r}function v(e,t,i,n){x(e,t,i,n,a.Sw.radius)}function w(e,t,i,n){x(e,t,i,n,a.sH.radius)}function _(e,t,i,n){x(e,t,i,n,a.$O.radius)}function S(e,t,i,s,r){const a=e[t],o=e[t+1],l=e[t+2]??0,u=Math.sqrt(a*a+o*o+l*l),c=(0,n.YN)(l/(0===u?1:u)),p=Math.atan2(o,a);i[s++]=C*p,i[s++]=C*c,i[s]=u-r}function F(e,t,i,n){S(e,t,i,n,a.Sw.radius)}function R(e,t,i,n){S(e,t,i,n,a.sH.radius)}function I(e,t,i,n){S(e,t,i,n,a.$O.radius)}function T(e,t,i,n){!function(e,t,i,n,s){const r=b*e[t],a=b*e[t+1],o=e[t+2]??0,l=Math.sin(a),u=Math.cos(a),c=s.radius/Math.sqrt(1-s.eccentricitySquared*l*l);i[n++]=(c+o)*u*Math.cos(r),i[n++]=(c+o)*u*Math.sin(r),i[n++]=(c*(1-s.eccentricitySquared)+o)*l}(e,t,i,n,a.$O)}function M(e,t,i,n){const s=o.TP,r=e[t],l=e[t+1],u=e[t+2]??0;let c,p,d,f,h,m,y,g,x,v,w,_,S,F,R,I,T,M,A,b,z;c=Math.abs(u),p=r*r+l*l,d=Math.sqrt(p),f=p+u*u,h=Math.sqrt(f),b=Math.atan2(l,r),m=u*u/f,y=p/f,F=s.a2/h,R=s.a3-s.a4/h,y>.3?(g=c/h*(1+y*(s.a1+F+m*R)/h),A=Math.asin(g),v=g*g,x=Math.sqrt(1-v)):(x=d/h*(1-m*(s.a5-F-y*R)/h),A=Math.acos(x),v=1-x*x,g=Math.sqrt(v)),w=1-a.$O.eccentricitySquared*v,_=a.$O.radius/Math.sqrt(w),S=s.a6*_,F=d-_*x,R=c-S*g,T=x*F+g*R,I=x*R-g*F,M=I/(S/w+T),A+=M,z=T+I*M/2,u<0&&(A=-A),i[n++]=C*b,i[n++]=C*A,i[n]=z}const A={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},b=(0,n.kU)(1),C=(0,n.KJ)(1),z=.5*Math.PI,B=a.$O.radius,O=B*Math.PI/180,P=180/(B*Math.PI)},51441(e,t,i){i.d(t,{LQ:()=>s,ag:()=>a,pL:()=>r});var n=i(90708);function s(e,t,i,s=e.hasZ,r=e.hasM){if(null==t)return null;const a=e.hasZ&&s,o=e.hasM&&r;if(i){const e=(0,n.Nl)(t,"esriGeometryPoint",i,s,r);return(0,n.DF)(e,a,o)}return(0,n.DF)(t,a,o)}function r(e,t,i,s,r,a){if(null==t)return null;const o="coords"in t?t:t.geometry;if(null==o)return null;const{hasZ:l,hasM:u}=o,c=l&&(r??=l),p=u&&(a??=u);if(i){let t=(0,n.kz)(o,e,i,r,a);return s&&(t=(0,n.Nl)(t,e,s)),(0,n.zv)(t,e,c,p)}if(s){const t=(0,n.Nl)(o,e,s,r,a);return(0,n.zv)(t,e,c,p)}return(0,n.zv)(o,e,c,p)}function a(e){return e&&o in e?JSON.parse(JSON.stringify(e,l)):e}const o="_geVersion",l=(e,t)=>e===o?void 0:t},56390(e,t,i){i.d(t,{do:()=>L,Wc:()=>$});var n=i(4576),s=i(21818),r=i(49186),a=(i(44208),i(4718)),o=i(97768),l=i(74887),u=i(86211),c=i(12195),p=i(91218),d=i(70328),f=i(19419),h=i(537),m=i(60408),y=i(65864),g=i(17136),x=i(21325),v=i(90708),w=i(29441),_=i(51441),S=i(31464);class F{constructor(){this._storage=new Map,this._purgeInterval=5,this._sweep=()=>{if(this._timer=void 0,!this._storage)return;const e=1e3*this._purgeInterval,t=performance.now()-e;for(const[i,n]of this._storage){if(!(n.time<t))return void(this._storage.size>0&&(this._timer=setTimeout(this._sweep,e)));this._storage.delete(i)}}}destroy(){this._storage?.clear(),this._storage=null,clearTimeout(this._timer)}put(e,t){this._storage?.set(e,new I(t)),this._scheduleSweep()}get(e){const t=this._storage?.get(e);if(t)return this._storage?.delete(e),t.time=performance.now(),this._storage?.set(e,t),t.items}clear(){this._storage?.clear()}_scheduleSweep(){this._storage&&(this._timer??=setTimeout(this._sweep,1e3*this._purgeInterval))}get test(){}}let R=0;class I{constructor(e){this.items=e,this.time=performance.now(),this.id=R++}}var T=i(99352),M=i(8384),A=i(58727),b=i(62660),C=i(43668);const z="unsupported-query";async function B(e,{fieldsIndex:t,geometryType:i,spatialReference:n,availableFields:s}){if(null!=e.geometryPrecision||e.multipatchOption&&"xyFootprint"!==e.multipatchOption||e.pixelSize||e.relationParam||e.text)throw new r.A(z,"Unsupported query options",{query:e});return O(t,s,e),function(e,t,i){const{outStatistics:n,groupByFieldsForStatistics:s,having:a}=i,o=s?.length,l=n?.length;if(a){if(!o||!l)throw new r.A(z,"outStatistics and groupByFieldsForStatistics should be specified with having",{query:i});(0,w.eD)(e,t,a,n,i)}if(l){if(null==(u=n)||!u.every(e=>"exceedslimit"!==e.statisticType))return;const a=n.map(e=>e.onStatisticField).filter(Boolean);(0,w.MG)(e,t,a,{expressionName:"onStatisticFields",query:i}),o&&(0,w.MG)(e,t,s,{expressionName:"groupByFieldsForStatistics",query:i});for(const s of n){const{onStatisticField:n,statisticType:a}=s;if("percentile_disc"!==a&&"percentile_cont"!==a||!("statisticParameters"in s))e.get(n)&&"count"!==a&&"min"!==a&&"max"!==a&&(0,w.MG)(e,t,[n],{expressionName:`outStatistics with '${a}' statistic type`,allowedFieldTypes:P,query:i});else{const{statisticParameters:e}=s;if(!e)throw new r.A(z,"statisticParameters should be set for percentile type",{definition:s,query:i})}}}var u}(t,s,e),Promise.all([(0,b.c0)(e,i,n),(0,S.Nk)(n,e.outSR)]).then(()=>e)}function O(e,t,i){const{returnDistinctValues:n,outStatistics:s}=i,a=s?s.map(e=>e.outStatisticFieldName&&e.outStatisticFieldName.toLowerCase()).filter(Boolean):[];if("orderByFields"in i&&i.orderByFields&&i.orderByFields.length>0){const n=" asc",s=" desc",r=i.orderByFields.map(e=>{const t=e.toLowerCase();return t.includes(n)?t.split(n)[0]:t.includes(s)?t.split(s)[0]:e}).filter(e=>!a.includes(e));(0,w.MG)(e,t,r,{expressionName:"orderByFields",query:i})}if("outFields"in i)if(i.outFields?.length)(0,w.MG)(e,t,i.outFields,{expressionName:"outFields",query:i,allowedFieldTypes:"all"});else if(n)throw new r.A(z,"outFields should be specified for returnDistinctValues",{query:i});(0,w.SN)(e,t,i.where,i)}const P=new Set([...w.vl,...w.VW]);async function G(e,t,i,n){let s=[];if(i.valueExpression){const{arcadeUtils:e}=await(0,C.l)();s=e.extractFieldNames(i.valueExpression)}if(i.field&&s.push(i.field),i.field2&&s.push(i.field2),i.field3&&s.push(i.field3),i.normalizationField&&s.push(i.normalizationField),!s.length&&!i.valueExpression)throw new r.A(z,"field or valueExpression is required",{params:i});(0,w.MG)(e,t,s,{expressionName:"statistics",query:n})}var q=i(86420),E=i(95466),j=(i(71511),i(53966),i(36708),i(44794),i(78659)),N=i(5482),D=i(69622),V=i(91429);let Q=class extends D.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,N.Cg)([(0,V.MZ)()],Q.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,N.Cg)([(0,V.MZ)()],Q.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),Q=(0,N.Cg)([(0,V.$K)("esri.views.support.debugFlags")],Q),new Q,Symbol("Yield");new Map([["immediate",0],["schedule",4],["slide",0],["stream loader",0],["elevation query",0],["terrain",1],["surface geometry updates",1],["LoD renderer",2],["Graphics3D",2],["I3S",2],["point cloud",2],["feature fetcher",2],["stream controller",2],["clouds generator",2],["overlay",4],["overlay renderer",4],["stage",4],["graphics deconflictor",4],["graphics filter visibility",4],["graphics scale visibility",4],["graphics frustum visibility",4],["POI frequent",6],["POI infrequent",30],["labeler",8],["feature query",8],["feature tile tree",16],["fast feature tile tree",0],["elevation alignment",12],["elevation alignment scene",14],["text texture atlas",12],["texture unload",12],["line of sight tool",16],["interactive line of sight tool",0],["volume measurement",4],["snapping",0],["shadow accumulator",30],["flow generator",12],["gaussian splat sorting",2],["gaussian splat texture atlas",12],["mapview fetch queue",0],["mapview layerview update",2],["mapview vector tile parsing queue",0]]),(0,j.l5)(6.5),(0,j.l5)(1),(0,j.l5)(30),(0,j.l5)(1e3/30),(0,j.l5)(100);const k=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};k.enabled=!1;const Z=new class{remove(){}processQueue(){}schedule(e,t,i){try{if((0,l.G4)(t)){const e=(0,l.NK)();return i?Promise.resolve(i(e)):Promise.reject(e)}return(0,l.z7)(e(k))}catch(e){return Promise.reject(e)}}reschedule(e,t,i){return this.schedule(e,t,i)}async scheduleGenerator(e,t,i){if((0,l.G4)(t)){const e=(0,l.NK)();if(i)return i(e);throw e}const n=e(k);for(;;){const e=n.next(k),s=(0,l.$X)(e)?await e:e;if((0,l.G4)(t)){const e=(0,l.NK)();if(i){const t=i(e),s=n.return(null);return(0,l.$X)(s)&&await(0,l.QZ)(s),t}const t=n.throw(e);throw(0,l.$X)(t)&&await(0,l.QZ)(t),e}if(s.done)return s.value}}};class L{constructor(e){this._changeHandle=null,this.capabilities={query:T.F},this.geometryType=e.geometryType,this.hasM=!!e.hasM,this.hasZ=!!e.hasZ,this.spatialReference=e.spatialReference,this.definitionExpression=e.definitionExpression,this.featureStore=e.featureStore,this.aggregateAdapter=e.aggregateAdapter,this._cache=e.cache??new F,this.timeInfo=e.timeInfo,this.featureIdInfo=e.featureIdInfo,"object-id"===e.featureIdInfo.type&&(this.objectIdField=e.featureIdInfo.fieldName),this._changeHandle=this.featureStore.events.on("changed",()=>this._clearCache()),this.fieldsIndex=(0,c.W)(e.fieldsIndex)?e.fieldsIndex:E.A.fromJSON(e.fieldsIndex),!e.availableFields||1===e.availableFields.length&&"*"===e.availableFields[0]?this.availableFields=new Set(this.fieldsIndex.fields.map(e=>e.name)):this.availableFields=new Set(e.availableFields.map(e=>this.fieldsIndex.get(e)?.name).filter(e=>null!=e)),e.scheduler&&e.priority?this._frameTask=e.scheduler.registerTask(e.priority):this._frameTask=Z}destroy(){this._changeHandle=(0,o.xt)(this._changeHandle),this._frameTask=(0,o.xt)(this._frameTask),this._clearCache(),(0,o.pR)(this._cache)}get featureAdapter(){return this.featureStore.featureAdapter}async executeQuery(e,t){const i=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryFeatureSet(e),i)}async executeQueryForCount(e={},t){const i=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForCount(e),i)}async executeQueryForExtent(e,t){const i=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForExtent(e),i)}async executeQueryForIds(e,t){return Array.from(await this.executeQueryForIdSet(e,t))}async executeQueryForIdSet(e,t){const i=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForIdSet(e),i)}async executeQueryForLatestObservations(e,t){const i=(0,l.Mq)(t);if(!this.timeInfo?.trackIdField)throw new r.A("unsupported-query","Missing timeInfo or timeInfo.trackIdField",{query:e,timeInfo:this.timeInfo});return await this._frameTask.scheduleGenerator(()=>this._executeQueryForLatestObservations(e),i)}async executeQueryForOpaqueFeatures(e,t){const i=(0,l.Mq)(t);return(await this._frameTask.scheduleGenerator(()=>this._executeQuery(e,{}),i)).items}async executeAttributeBinsQuery(e,t){const i=(0,l.Mq)(t);return e=(0,a.o8)(e),await this._frameTask.scheduleGenerator(()=>this._executeAttributeBinsQuery(e),i)}async executeQueryForSummaryStatistics(e={},t,i){const n=(0,l.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForSummaryStatistics(e,t),n)}async executeQueryForUniqueValues(e={},t,i){const n=(0,l.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForUniqueValues(e,t),n)}async executeQueryForClassBreaks(e={},t,i){const n=(0,l.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForClassBreaks(e,t),n)}async executeQueryForHistogram(e={},t,i){const n=(0,l.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForHistogram(e,t),n)}async executeQueryForSnapping(e,t){const i=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForSnapping(e,i),i)}async fetchRecomputedExtents(e){const t=(0,l.Mq)(e);this._timeExtentPromise||=(0,q.W)(this.timeInfo,this.featureStore);const[i,n]=await Promise.all([this._getFullExtent(),this._timeExtentPromise]);return(0,l.Te)(t),{fullExtent:i,timeExtent:n}}_clearCache(){this._cache.clear(),this._allFeaturesPromise=null,this._timeExtentPromise=null,this._fullExtentPromise=null}async*_executeQueryFeatureSet(e){try{const t=yield*this._executeQuery(e,{});return yield,await t.createQueryResponse()}catch(t){if(t!==A.v8)throw t;return await new M.G([],e,this).createQueryResponse()}}async*_executeQueryForCount(e){try{const t=yield*this._executeQuery(e,{returnGeometry:!1,returnCentroid:!1,outSR:null});return yield,t.createQueryResponseForCount()}catch(e){if(e!==A.v8)throw e;return 0}}async*_executeQueryForExtent(e){const t=e.outSR;try{const i=yield*this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null});yield;const n=i.size;if(!n)return{count:0,extent:null};const s=await this._getBounds(i.items,i.spatialReference,t??this.spatialReference);return yield,{count:n,extent:s}}catch(e){if(e===A.v8)return{count:0,extent:null};throw e}}async*_executeQueryForIdSet(e){try{const t=yield*this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null});yield;const i=t.items,n=new Set;for(const e of i)n.add(t.featureAdapter.getObjectId(e));return n}catch(e){if(e===A.v8)return new Set;throw e}}async*_executeQueryForLatestObservations(e){try{const t=yield*this._executeQuery(e,{});return yield,this._filterLatest(t),yield,await t.createQueryResponse()}catch(t){if(t!==A.v8)throw t;return await new M.G([],e,this).createQueryResponse()}}async*_executeAttributeBinsQuery(e){let t;try{e=await(0,A.iJ)(e,this.definitionExpression,this.spatialReference),yield,e=await async function(e,t){const i=e.bin;if(!i.onField&&!i.onExpression?.value||"autoIntervalBin"===i.type&&null==i.parameters.numberOfBins||"dateBin"===i.type&&(null==i.parameters.number||null==i.parameters.unit)||"fixedBoundariesBin"===i.type&&null==i.parameters.boundaries||"fixedIntervalBin"===i.type&&null==i.parameters.interval)throw new r.A(z,"Unsupported query options",{query:e});return B(e,t)}(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;const i=yield*this._executeSceneFilterQuery(e);yield,t=yield*this._executeGeometryQuery(e,i),yield,this._executeAggregateIdsQuery(t),yield,this._executeObjectIdsQuery(t),yield,this._executeTimeQuery(t),yield,this._executeAttributesQuery(t),yield}catch(i){if(i!==A.v8)throw i;t=new M.G([],e,this)}return await t.createQueryBinsResponse(e)}async*_executeQueryForSummaryStatistics(e={},t){const{field:i,normalizationField:n,valueExpression:s}=t,r=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:n,valueExpression:s});return yield,await r.createSummaryStatisticsResponse(t)}async*_executeQueryForUniqueValues(e={},t){const{field:i,field2:n,field3:s,valueExpression:r}=t,a=yield*this._executeQueryForStatistics(e,{field:i,field2:n,field3:s,valueExpression:r});return yield,await a.createUniqueValuesResponse(t)}async*_executeQueryForClassBreaks(e,t){const{field:i,normalizationField:n,valueExpression:s}=t,r=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:n,valueExpression:s});return yield,await r.createClassBreaksResponse(t)}async*_executeQueryForHistogram(e,t){const{field:i,normalizationField:n,valueExpression:s}=t,r=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:n,valueExpression:s});return yield,await r.createHistogramResponse(t)}async*_executeQueryForSnapping(e,t){const{point:i,distance:n,returnEdge:s,vertexMode:r}=e;if(!s&&"none"===r)return{candidates:[]};let o=(0,a.o8)(e.query);o=await(0,A.T2)(o,this.definitionExpression,this.spatialReference),yield,o=await B(o,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;const l=!(0,x.aI)(i.spatialReference,this.spatialReference);l&&(await(0,S.Nk)(i.spatialReference,this.spatialReference),yield);const u="number"==typeof n?n:n.x,c="number"==typeof n?n:n.y,p={xmin:i.x-u,xmax:i.x+u,ymin:i.y-c,ymax:i.y+c,spatialReference:i.spatialReference},d=l?(0,S.Cv)(p,this.spatialReference):p;if(!d)return{candidates:[]};const f=(await(0,g.el)((0,y.rS)(i),null,{signal:t}))[0];yield;const h=(await(0,g.el)((0,y.rS)(d),null,{signal:t}))[0];if(yield,null==f||null==h)return{candidates:[]};const m=await this._searchFeatures(U(h.toJSON()));yield;const v=new M.G(m,o,this);this._executeObjectIdsQuery(v),yield,this._executeTimeQuery(v),yield,this._executeAttributesQuery(v),yield,yield*this._executeGeometryQueryForSnapping(v),yield;const w=f.toJSON(),_=l?(0,S.Cv)(w,this.spatialReference):w,F=l?Math.max(d.xmax-d.xmin,d.ymax-d.ymin)/2:n;return v.createSnappingResponse({...e,point:_,distance:F},o.returnZ,i.spatialReference)}async _getBounds(e,t,i){const n=(0,d.hZ)((0,d.vt)(),d.qv);return await this.featureStore.forEachBounds(e,e=>(0,d.RF)(n,e)),$(n,t,i,this.spatialReference,this.hasZ)}_getFullExtent(){return this._fullExtentPromise||="getFullExtent"in this.featureStore&&this.featureStore.getFullExtent?Promise.resolve(this.featureStore.getFullExtent(this.spatialReference)):this._getAllFeatures().then(e=>this._getBounds(e,this.spatialReference,this.spatialReference)),this._fullExtentPromise}async _getAllFeaturesQueryEngineResult(e){return new M.G(await this._getAllFeatures(),e,this)}async _getAllFeatures(){if(null==this._allFeaturesPromise){const e=[];this._allFeaturesPromise=(async()=>await this.featureStore.forEach(t=>e.push(t)))().then(()=>(0,s.z)(e))}const e=this._allFeaturesPromise,t=await e;return e===this._allFeaturesPromise?t.slice():this._getAllFeatures()}async*_executeQuery(e,t){e=(0,a.o8)(e),e=await(0,A.GC)(e,this.definitionExpression,this.spatialReference),yield,e=await B(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield,e={...e,...t};const i=yield*this._executeSceneFilterQuery(e);yield;const n=yield*this._executeGeometryQuery(e,i);return yield,this._executeAggregateIdsQuery(n),yield,this._executeObjectIdsQuery(n),yield,this._executeTimeQuery(n),yield,this._executeAttributesQuery(n),n}async*_executeSceneFilterQuery(e){if(null==e.sceneFilter)return null;const{outSR:t,returnGeometry:i,returnCentroid:n}=e,s=this.featureStore.featureSpatialReference,r=e.sceneFilter.geometry,a=null==s||(0,x.aI)(s,r.spatialReference)?r:(0,S.Cv)(r,s);if(!a)return null;const o=i||n,l=(0,x.fn)(t)&&!(0,x.aI)(this.spatialReference,t)&&o?async e=>this._project(e,t):e=>e;yield;const u=this.featureAdapter,c=await this._searchFeatures(U(a));if(yield,"disjoint"===e.sceneFilter.spatialRelationship){if(!c.length)return null;const t=new Set;for(const e of c)t.add(u.getObjectId(e));const i=await this._getAllFeatures();yield;const n=await(0,b.xt)("esriSpatialRelDisjoint",a,this.geometryType);yield;const s=e=>!t.has(u.getObjectId(e))||n(u.getGeometry(e)),r=yield*this._runSpatialFilter(i,s);yield;const o=new M.G(r,e,this);return await l(o)}if(!c.length)return new M.G([],e,this);if(this._canExecuteSinglePass(a,e))return await l(new M.G(c,e,this));const p=await(0,b.xt)("esriSpatialRelContains",a,this.geometryType);yield;const d=yield*this._runSpatialFilter(c,e=>p(u.getGeometry(e)));return yield,await l(new M.G(d,e,this))}async*_executeGeometryQuery(e,t){if(null!=t&&0===t.items.length)return t;const{geometry:i,outSR:s,returnGeometry:r,returnCentroid:a}=e,o=t?null:this._getCacheKey(e),l=o?this._cache.get(o):null;if(l)return new M.G(l,e,this);const u=(0,x.fn)(s)&&!(0,x.aI)(this.spatialReference,s),c=r||a,p=async e=>(u&&c&&await this._project(e,s),o&&this._cache.put(o,e.items),e),d=this.featureStore.featureSpatialReference,f=!i||null==d||(0,x.aI)(d,i.spatialReference)?i:(0,S.Cv)(i,d);if(!f)return await p(null!=t?t:await this._getAllFeaturesQueryEngineResult(e));yield;const h=this.featureAdapter;let m=await this._searchFeatures(U(i));yield;const y=e.spatialRel??"esriSpatialRelIntersects";if("esriSpatialRelDisjoint"===y){if(!m.length)return await p(null!=t?t:await this._getAllFeaturesQueryEngineResult(e));const i=new Set;for(const e of m)i.add(h.getObjectId(e));let n;null!=t?n=t.items:(yield,n=await this._getAllFeatures(),yield);const s=await(0,b.xt)(y,f,this.geometryType);yield;const r=e=>!i.has(h.getObjectId(e))||s(h.getGeometry(e)),a=yield*this._runSpatialFilter(n,r);yield;const o=new M.G(a,e,this);return await p(o)}if(null!=t){const e=new n.vW;m=m.filter(i=>(0,n.qh)(t.items,i,t.items.length,e)>=0)}if(!m.length){const t=new M.G([],e,this);return o&&this._cache.put(o,t.items),t}if(this._canExecuteSinglePass(f,e))return await p(new M.G(m,e,this));const g=await(0,b.xt)(y,f,this.geometryType);yield;const v=yield*this._runSpatialFilter(m,e=>g(h.getGeometry(e)));return yield,await p(new M.G(v,e,this))}_executeAggregateIdsQuery(e){if(0===e.items.length||!e.query.aggregateIds?.length||null==this.aggregateAdapter)return;const t=new Set;for(const i of e.query.aggregateIds)this.aggregateAdapter.getFeatureObjectIds(i).forEach(e=>t.add(e));const i=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(i(e)))}_executeObjectIdsQuery(e){if(0===e.items.length||!e.query.objectIds?.length)return;const t=new Set(e.query.objectIds),i=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(i(e)))}_executeTimeQuery(e){if(0===e.items.length)return;const t=(0,q.I)(this.timeInfo,e.query.timeExtent,this.featureAdapter);null!=t&&(e.items=e.items.filter(t))}_executeAttributesQuery(e){if(0===e.items.length)return;const t=(0,w.j4)(e.query.where,this.fieldsIndex);if(t){if(!t.isStandardized)throw new TypeError("Where clause is not standardized");e.items=e.items.filter(e=>t.testFeature(e,this.featureAdapter))}}async*_executeGeometryQueryForSnapping(e){const{query:t}=e,{spatialRel:i}=t;if(!e?.items?.length||!t.geometry||!i)return;const n=await(0,b.xt)(i,t.geometry,this.geometryType);yield;const s=this.featureAdapter,r=yield*this._runSpatialFilter(e.items,e=>n(s.getGeometry(e)));e.items=r}*_runSpatialFilter(e,t){if(!t)return e;if(null==this._frameTask)return e.filter(e=>t(e));let i=yield;const n=new Array;for(const s of e)t(s)&&n.push(s),i.madeProgress(),i.done&&(i=yield);return n}_filterLatest(e){const{trackIdField:t,startTimeField:i,endTimeField:n}=this.timeInfo,s=n||i,r=new Map,a=this.featureAdapter.getAttribute;for(const i of e.items){const e=a(i,t),n=a(i,s),o=r.get(e);(!o||n>a(o,s))&&r.set(e,i)}e.items=Array.from(r.values())}_getCacheKey(e){const{geometry:t,spatialRel:i,returnGeometry:n,returnCentroid:s,outSR:r,resultType:a,cacheHint:o}=e;if("tile"!==a&&!o)return null;const l=n||s;return(0,x.fn)(r)&&!(0,x.aI)(this.spatialReference,r)&&l?JSON.stringify([t,i,r]):JSON.stringify([t,i])}_canExecuteSinglePass(e,t){const{spatialRel:i}=t;return(0,b.tC)(e)&&("esriSpatialRelEnvelopeIntersects"===i||"esriGeometryPoint"===this.geometryType&&("esriSpatialRelIntersects"===i||"esriSpatialRelContains"===i))}async _project(e,t){if(!t||(0,x.aI)(this.spatialReference,t))return e;const i=this.featureAdapter,n=(0,p.isLoaded)()?await this._getFullExtent():void 0,r=await(0,S.lK)(e.items.map(e=>(0,_.pL)(this.geometryType,i.getGeometry(e))),this.spatialReference,t,{areaOfInterestExtent:n});return e.items=(0,s.z)(r.map((t,n)=>i.cloneWithGeometry(e.items[n],(0,v.Ux)(t,this.hasZ,this.hasM),this.geometryType))),e}async _searchFeatures(e){const t=new Set;await Promise.all(e.map(e=>this.featureStore.forEachInBounds(e,e=>t.add(e))));const i=Array.from(t.values());return t.clear(),i}async*_executeQueryForStatistics(e,t){e=(0,a.o8)(e);try{e=await(0,A.GC)(e,this.definitionExpression,this.spatialReference),yield,e=await async function(e,t,{fieldsIndex:i,geometryType:n,spatialReference:s,availableFields:a}){if(null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text||e.outStatistics||e.groupByFieldsForStatistics||e.having||e.orderByFields)throw new r.A(z,"Unsupported query options",{query:e});return O(i,a,e),Promise.all([G(i,a,t,e),(0,b.c0)(e,n,s),(0,S.Nk)(s,e.outSR)]).then(()=>e)}(e,t,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;const i=yield*this._executeSceneFilterQuery(e);yield;const n=yield*this._executeGeometryQuery(e,i);return yield,this._executeAggregateIdsQuery(n),yield,this._executeObjectIdsQuery(n),yield,this._executeTimeQuery(n),yield,this._executeAttributesQuery(n),yield,n}catch(t){if(t!==A.v8)throw t;return new M.G([],e,this)}}get test(){}}function U(e){if((0,b.tC)(e)){if((0,m.ZC)(e))return[(0,f.fA)(Math.min(e.xmin,e.xmax),Math.min(e.ymin,e.ymax),Math.max(e.xmin,e.xmax),Math.max(e.ymin,e.ymax))];if((0,m.Bi)(e))return e.rings.map(e=>(0,f.fA)(Math.min(e[0][0],e[2][0]),Math.min(e[0][1],e[2][1]),Math.max(e[0][0],e[2][0]),Math.max(e[0][1],e[2][1])))}return[(0,h.Rg)((0,f.vt)(),e)]}function $(e,t,i,n,s){const r={xmin:e[0],ymin:e[1],xmax:e[3],ymax:e[4],spatialReference:(0,_.ag)(n)};s&&isFinite(e[2])&&isFinite(e[5])&&(r.zmin=e[2],r.zmax=e[5],r.hasZ=!0);const a=(0,S.Cv)(r,t,i);if(a.spatialReference=(0,_.ag)(i),a.xmax-a.xmin===0){const e=(0,u.GA)(a.spatialReference);a.xmin-=e,a.xmax+=e}if(a.ymax-a.ymin===0){const e=(0,u.GA)(a.spatialReference);a.ymin-=e,a.ymax+=e}if(s&&null!=a.zmin&&null!=a.zmax&&a.zmax-a.zmin===0){const e=(0,u.GA)(a.spatialReference);a.zmin-=e,a.zmax+=e}return a}},57231(e,t,i){i.d(t,{g:()=>n});const n=(0,i(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"})},58727(e,t,i){i.d(t,{GC:()=>y,T2:()=>g,VY:()=>f,dO:()=>v,iJ:()=>m,v8:()=>h});var n=i(49186),s=i(66552),r=i(86211),a=i(91218),o=i(90634),l=i(60408),u=i(65864),c=i(17136),p=i(21325),d=i(31464);const f=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),h=Object.freeze({});async function m(e,t,i){const n=e.bin;return n.onField&&(n.onField=n.onField.trim()),n.onExpression?.value&&(n.onExpression.value=n.onExpression.value.trim()),n.splitBy&&(n.splitBy.value&&(n.splitBy.value=n.splitBy.value.trim()),n.splitBy.outAlias&&(n.splitBy.outAlias=n.splitBy.outAlias.trim())),n.stackBy&&(n.stackBy.value&&(n.stackBy.value=n.stackBy.value.trim()),n.stackBy.outAlias&&(n.stackBy.outAlias=n.stackBy.outAlias.trim())),"normalizationField"in n.parameters&&n.parameters.normalizationField&&(n.parameters.normalizationField=n.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),y(e,t,i)}async function y(e,t,i){const{outFields:n,orderByFields:s,groupByFieldsForStatistics:r,outStatistics:a}=e;if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),g(e,t,i)}async function g(e,t,s){if(!e)return null;let{where:a}=e;if(e.where=a=a?.trim(),(!a||/^1 *= *1$/.test(a)||t&&t===a)&&(e.where=null),!e.geometry)return e;let m=await async function(e){const{distance:t,units:s}=e,a=e.geometry;if(null==t||"vertexAttributes"in a)return a;const o=a.spatialReference,u=s?f.fromJSON(s):(0,r.Ij)(o),c=o&&((0,p.EA)(o)||(0,p.K8)(o))?a:await(0,d.Nk)(o,p.KK).then(()=>(0,d.Cv)(a,p.KK)),h=await i.e(9159).then(i.bind(i,49159));await h.load();const m=h.execute(c,t||1,{unit:u})??void 0;if(!m||!(0,l.Bi)(m)||0===m.rings.length)throw new n.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return m}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;m=(0,o.HA)(m),m.spatialReference=t}if(m){await(0,d.Nk)(m.spatialReference,s),m=function(e,t){const i=e.spatialReference;return x(e,t)&&(0,l.ZC)(e)?{spatialReference:i,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(m,s);const t=(await(0,c.el)((0,u.rS)(m)))[0];if(null==t)throw h;const i="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,n=i&&x(m,s)?{extendedParams:{densificationStep:8*i}}:void 0,r=t.toJSON(),a=(0,d.Cv)(r,r.spatialReference,s,n);if(!a)throw h;a.spatialReference=s,e.geometry=a}return e}function x(e,t){if(!e)return!1;const i=e.spatialReference;return((0,l.ZC)(e)||(0,l.Bi)(e)||(0,l.Rg)(e))&&!(0,p.aI)(i,t)&&!(0,a.canProjectWithoutEngine)(i,t)}function v(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}},59977(e,t,i){i.d(t,{A:()=>y});var n=i(5482),s=i(93637),r=i(91429),a=i(56507),o=i(41266),l=i(69540),u=i(25482),c=i(57231),p=i(93223);let d=class extends((0,l.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,n.Cg)([(0,r.MZ)({type:Number,json:{name:"number",write:!0}})],d.prototype,"value",void 0),(0,n.Cg)([(0,p.e)(c.g)],d.prototype,"unit",void 0),d=(0,n.Cg)([(0,r.$K)("esri.rest.support.DateBinTimeInterval")],d);const f=d;function h(e,t,i){(0,s.sM)(i,"string"==typeof e?e:e?.getTime(),t)}function m(e,t){const i=e.parameters[t];return i?"string"==typeof i?i:new Date(i):null}d.from=(0,a.dp)(d);let y=class extends o.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,n.Cg)([(0,r.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.end",read:{reader:(e,t)=>m(t,"end")},write:{writer:h}}})],y.prototype,"end",void 0),(0,n.Cg)([(0,r.MZ)({type:f,json:{name:"parameters",write:!0}})],y.prototype,"interval",void 0),(0,n.Cg)([(0,r.MZ)({type:f,json:{name:"parameters.offset",write:!0}})],y.prototype,"offset",void 0),(0,n.Cg)([(0,r.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],y.prototype,"returnFullIntervalBin",void 0),(0,n.Cg)([(0,r.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.start",read:{reader:(e,t)=>m(t,"start")},write:{writer:h}}})],y.prototype,"start",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],y.prototype,"snapToData",void 0),(0,n.Cg)([(0,p.e)({dateBin:"date"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,n.Cg)([(0,r.$K)("esri.rest.support.DateBinParameters")],y),y.from=(0,a.dp)(y)},60909(e,t,i){i.d(t,{A:()=>p});var n=i(5482),s=i(93637),r=i(91429),a=i(56507),o=i(41266),l=i(41366),u=i(93223);function c(e,t,i){(0,s.sM)(i,e instanceof Date?e.getTime():e,t)}let p=class extends((0,l.K)(o.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,n.Cg)([(0,r.MZ)({json:{name:"parameters.end",write:{writer:c}}})],p.prototype,"end",void 0),(0,n.Cg)([(0,r.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],p.prototype,"interval",void 0),(0,n.Cg)([(0,r.MZ)({json:{name:"parameters.start",write:{writer:c}}})],p.prototype,"start",void 0),(0,n.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],p.prototype,"type",void 0),p=(0,n.Cg)([(0,r.$K)("esri.rest.support.FixedIntervalBinParameters")],p),p.from=(0,a.dp)(p)},62660(e,t,i){i.d(t,{tC:()=>S,c0:()=>_,xt:()=>w});var n=i(49186),s=i(94078),r=i(12176),a=i(60408),o=i(21325);function l(e,t){return c(e,t.coords[0],t.coords[1])}function u(e,t){const{coords:i,lengths:n,stride:s}=t;if(!n)return!1;for(let t=0,r=0;t<n.length;t++,r+=s)if(!c(e,i[r],i[r+1]))return!1;return!0}function c(e,t,i){if(!e)return!1;const{coords:n,lengths:s,stride:r}=e;let a=!1,o=0;for(const e of s)a=p(a,n,r,o,e,t,i),o+=e*r;return a}function p(e,t,i,n,s,r,a){let o=e,l=n;for(let e=n,u=n+s*i;e<u;e+=i){l=e+i,l===u&&(l=n);const s=t[e],c=t[e+1],p=t[l],d=t[l+1];(c<a&&d>=a||d<a&&c>=a)&&s+(a-c)/(d-c)*(p-s)<r&&(o=!o)}return o}var d=i(90708),f=i(51441),h=i(31464);const m="unsupported-query",y={esriSpatialRelIntersects:!0,esriSpatialRelContains:!0,esriSpatialRelWithin:!0,esriSpatialRelCrosses:!0,esriSpatialRelDisjoint:!0,esriSpatialRelTouches:!0,esriSpatialRelOverlaps:!0,esriSpatialRelEnvelopeIntersects:!0,esriSpatialRelIndexIntersects:!1,esriSpatialRelRelation:!1},g={esriGeometryPoint:!0,esriGeometryMultiPatch:!1,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!0},x={esriGeometryPoint:!0,esriGeometryMultiPatch:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!1},v={esriSpatialRelIntersects:()=>Promise.all([i.e(3661),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(8414)]).then(i.bind(i,55284)),esriSpatialRelContains:()=>Promise.all([i.e(3661),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(609)]).then(i.bind(i,51508)),esriSpatialRelCrosses:()=>Promise.all([i.e(3661),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(7316)]).then(i.bind(i,85672)),esriSpatialRelDisjoint:()=>Promise.all([i.e(3661),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(6960)]).then(i.bind(i,7978)),esriSpatialRelEnvelopeIntersects:null,esriSpatialRelIndexIntersects:null,esriSpatialRelOverlaps:()=>Promise.all([i.e(3661),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(3304)]).then(i.bind(i,46178)),esriSpatialRelTouches:()=>Promise.all([i.e(3661),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(7987)]).then(i.bind(i,83547)),esriSpatialRelWithin:()=>Promise.all([i.e(3661),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(1787)]).then(i.bind(i,85445)),esriSpatialRelRelation:null};async function w(e,t,i){if((0,a.Bi)(t)){if("esriGeometryPoint"===i&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e)){const e=(0,d.Ye)(t,!1,!1);return t=>l(e,t)}if("esriGeometryMultipoint"===i){const i=(0,d.Ye)(t,!1,!1);if("esriSpatialRelContains"===e)return e=>u(i,e)}}if((0,a.ZC)(t)){if("esriGeometryPoint"===i&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e))return e=>(0,s.qz)(t,(0,f.pL)(i,e));if("esriGeometryMultipoint"===i&&"esriSpatialRelContains"===e)return e=>(0,s.rL)(t,(0,f.pL)(i,e));if("esriSpatialRelIntersects"===e){const e="mesh"===(n=i)?r.xB:(0,r.xK)(n);return n=>e(t,(0,f.pL)(i,n))}}var n;"esriSpatialRelEnvelopeIntersects"===e&&(e="esriSpatialRelIntersects");const o=await function(e){const t=v[e];if(null==t)throw new Error(`Cannot load unsupported spatial operator: ${e}`);return t()}(e);return e=>o.execute(t,(0,f.pL)(i,e))}async function _(e,t,i){const{spatialRel:s,geometry:r}=e;if(r){if(null==(l=s)||!0!==y[l])throw new n.A(m,"Unsupported query spatial relationship",{query:e});if((0,o.fn)(r.spatialReference)&&(0,o.fn)(i)){if(!function(e){return null!=e&&!0===g[(0,a.$B)(e)]}(r))throw new n.A(m,"Unsupported query geometry type",{query:e});if(!function(e){return null!=e&&!0===x[e]}(t))throw new n.A(m,"Unsupported layer geometry type",{query:e});if(e.outSR)return(0,h.Nk)(e.geometry?.spatialReference,e.outSR)}}var l}function S(e){if((0,a.ZC)(e))return!0;if((0,a.Bi)(e)){for(const t of e.rings){if(5!==t.length)return!1;if(t[0][0]!==t[1][0]||t[0][0]!==t[4][0]||t[2][0]!==t[3][0]||t[0][1]!==t[3][1]||t[0][1]!==t[4][1]||t[1][1]!==t[2][1])return!1}return!0}return!1}},69052(e,t,i){i.d(t,{hr:()=>s,ie:()=>l,uC:()=>o});var n=i(34727);class s{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return r(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+a(this.range,e-t,i)}minimalMonotonic(e,t,i){return r(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(n)?i:n}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function r(e,t,i,n,s=0,r=!1){return(n-=s)<t?n+=a(e,t-n):n>i&&(n-=a(e,n-i)),r&&n===i&&(n=t),n+s}function a(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const o=new s(0,2*Math.PI),l=(new s(-Math.PI,Math.PI),new s(0,360))},80754(e,t,i){i.d(t,{j7:()=>a,kS:()=>l,kd:()=>o,r8:()=>u});var n=i(82799),s=i(16930),r=i(60408);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const i=u(e);for(const e of i)for(const i of e)i[0]+=t;return e}function u(e){return(0,r.Bi)(e)?e.rings:e.paths}},86420(e,t,i){i.d(t,{I:()=>r,W:()=>s});var n=i(21818);async function s(e,t){if(!e)return null;const i=t.featureAdapter,{startTimeField:s,endTimeField:r}=e;let a=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;if(s&&r)await t.forEach(e=>{const t=i.getAttribute((0,n.z)(e),s),l=i.getAttribute((0,n.z)(e),r);null==t||isNaN(t)||(a=Math.min(a,t)),null==l||isNaN(l)||(o=Math.max(o,l))});else{const e=s||r;await t.forEach(t=>{const s=i.getAttribute((0,n.z)(t),e);null==s||isNaN(s)||(a=Math.min(a,s),o=Math.max(o,s))})}return{start:a,end:o}}function r(e,t,i){if(!t||!e)return null;const{startTimeField:n,endTimeField:s}=e;if(!n&&!s)return null;const{start:r,end:a}=t;if(null===r&&null===a)return null;if(void 0===r&&void 0===a)return()=>!1;const o=i.getAttributeAsTimestamp?.bind(i)??i.getAttribute.bind(i);return n&&s?function(e,t,i,n,s){return null!=n&&null!=s?r=>{const a=e(r,t),o=e(r,i);return(null==a||a<=s)&&(null==o||o>=n)}:null!=n?t=>{const s=e(t,i);return null==s||s>=n}:null!=s?i=>{const n=e(i,t);return null==n||n<=s}:void 0}(o,n,s,r,a):function(e,t,i,n){return null!=i&&null!=n&&i===n?n=>e(n,t)===i:null!=i&&null!=n?s=>{const r=e(s,t);return null!=r&&r>=i&&r<=n}:null!=i?n=>{const s=e(n,t);return null!=s&&s>=i}:null!=n?i=>{const s=e(i,t);return null!=s&&s<=n}:void 0}(o,n||s,r,a)}},91218(e,t,i){i.r(t),i.d(t,{canProjectWithoutEngine:()=>L,initializeProjection:()=>$,isEqualBaseGCS:()=>U,isLoaded:()=>z,isLoadedOrLoad:()=>B,isLoadedOrLoadFor:()=>O,load:()=>G,project:()=>q,projectAsync:()=>Z,projectExtent:()=>ne,projectMany:()=>E,projectMultipoint:()=>K,projectOrLoad:()=>N,projectOrLoadMany:()=>D,projectPoint:()=>J,projectPolygon:()=>te,projectPolyline:()=>X,projectWithoutEngine:()=>H,requiresLoad:()=>P,test:()=>k,tryProject:()=>j,unload:()=>Q});var n=i(49186),s=i(74887),r=i(62788),a=i(95488),o=i(51850),l=i(21276),u=i(73941),c=i(5443),p=i(91075),d=i(48526),f=i(86738),h=i(39829),m=i(82799),y=i(16930),g=i(98764),x=i(159),v=i(9762),w=i(49208);function _(e,t,i,n,s,r){return S[0]=e,S[1]=t,S[2]=i,(0,v.projectBuffer)(S,n,0,s,r,0)}const S=(0,o.vt)();var F=i(21325),R=i(52006);let I=null,T=null,M=null,A=null,b={};const C=new a.I;function z(){return!!(T?.isLoaded()&&M?.isLoaded()&&A?.isLoaded())}function B(){return!!z()||((0,r.gc)(C),G(),!1)}function O(e,t){return!e||!t||L(e,t)||B()}function P(e,t){return!L(e,t)&&!z()}async function G(e){null==I&&(I=Promise.all([i.e(3276).then(i.bind(i,83276)).then(e=>(T=e,T.load())),i.e(8377).then(i.bind(i,8377)).then(e=>(M=e,M.load())),i.e(2158).then(i.bind(i,12158)).then(e=>(A=e,A.load()))])),await I,(0,s.Te)(e),C.notify()}function q(e,t,i){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),E(e,e[0].spatialReference,t,i)):((0,l.f)(e),E([e],e.spatialReference,t,i)[0])}function E(e,t,i,n){if(null==t||null==i)return e;if(!e.some(e=>(0,R.Ed)(e))&&L(t,i,n))return e.map(e=>H(e,t,i));if(null==n?.geographicTransformation&&(0,u.jA)(t))return E(e.map(e=>H(e,t,y.A.WGS84)),y.A.WGS84,i,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(i))return E(e,t,y.A.WGS84).map(e=>H(e,y.A.WGS84,i));if(!z())throw new V;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:A.getTransformation(t,i,n.areaOfInterestExtent)||new x.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,i);let s=b[e];s||(s=A.getTransformation(t,i)||new x.A,b[e]=s),n={geographicTransformation:s,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?T.executeMany(e,i,n):M.executeMany(e,i,n)}function j(e,t,i){try{return q(e,t,i)}catch(e){return null}}function N(e,t){const i=D([e],t);return null!=i.pending?{pending:i.pending,geometry:null}:null!=i.geometries?{pending:null,geometry:i.geometries[0]}:{pending:null,geometry:null}}function D(e,t,i){if(!z())for(const i of e)if(null!=i&&!(0,F.aI)(i.spatialReference,t)&&(0,F.fn)(i.spatialReference)&&(0,F.fn)(t)&&!L(i.spatialReference,t))return(0,r.gc)(C),{pending:G(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,F.aI)(e.spatialReference,t)?e:(0,F.fn)(e.spatialReference)&&(0,F.fn)(t)?q(e,t,i):null)}}class V extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function Q(){I=null,T=null,M=null,A=null,b={}}const k={get loadPromise(){return I}};async function Z(e,t,i){if((0,s.Te)(i),!e)return e;const n=D(Array.isArray(e)?e:[e],t,i);if(n.pending)return await n.pending,(0,s.Te)(i),Z(e,t,i);const r=n.geometries??[];return Array.isArray(e)?r:r[0]}function L(e,t,i){return!(i?.areaOfInterestExtent||i?.extendedParams||i?.geographicTransformation)&&(!!(0,F.aI)(e,t)||(0,F.fn)(e)&&(0,F.fn)(t)&&!!(0,w.jd)(e,t))}function U(e,t){if((0,F.aI)(e,t))return!0;if(!(0,F.fn)(e)||!(0,F.fn)(t))return!1;const i=(0,F.oT)(e)||(0,F.K8)(e)||(0,F.x1)(e),n=(0,F.oT)(t)||(0,F.K8)(t)||(0,F.x1)(t);return i&&n}async function $(e,t,i,n){if(z())return(0,s.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:i,options:s}of e)if(t&&i&&!L(t,i,s))return G(n)}else if(e&&t&&!L(e,t,i))return G(n);return(0,s.NO)(n)}function H(e,t,i){return e?"x"in e?W(e,t,new f.A,i,0):"xmin"in e?se(e,t,new c.A,i,0):"rings"in e?ie(e,t,new h.A,i,0):"paths"in e?ee(e,t,new m.A,i,0):"points"in e?Y(e,t,new d.A,i,0):null:null}function J(e,t,i=t.spatialReference,n=0){return null!=i&&null!=e.spatialReference&&null!=W(e,e.spatialReference,t,i,n)}function W(e,t,i,n,s){oe[0]=e.x,oe[1]=e.y;const r=e.z;return oe[2]=void 0!==r?r:s,(0,v.projectBuffer)(oe,t,0,oe,n,0)?(i.x=oe[0],i.y=oe[1],i.spatialReference=n,void 0!==r||(0,u.xP)(n)?(i.z=oe[2],i.hasZ=!0):(i.z=void 0,i.hasZ=!1),void 0===e.m?(i.m=void 0,i.hasM=!1):(i.m=e.m,i.hasM=!0),i):null}function K(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=Y(e,e.spatialReference,t,i,n)}function Y(e,t,i,n,s){const{points:r,hasZ:a,hasM:o}=e,l=[],u=r.length,c=[];for(const e of r)c.push(e[0],e[1],a?e[2]:s);if(!(0,v.projectBuffer)(c,t,0,c,n,0,u))return null;const p=ae(a,n);for(let e=0;e<u;++e){const t=3*e,i=c[t],n=c[t+1];p&&o?l.push([i,n,c[t+2],r[e][3]]):p?l.push([i,n,c[t+2]]):o?l.push([i,n,r[e][2]]):l.push([i,n])}return i.points=l,i.spatialReference=n,i.hasZ=a,i.hasM=o,i}function X(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=ee(e,e.spatialReference,t,i,n)}function ee(e,t,i,n,s){const{paths:r,hasZ:a,hasM:o}=e,l=[];if(!re(r,a??!1,o??!1,t,l,n,s))return null;const u=ae(a,n);return i.paths=l,i.spatialReference=n,i.hasZ=u,i.hasM=o,i}function te(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=ie(e,e.spatialReference,t,i,n)}function ie(e,t,i,n,s){const{rings:r,hasZ:a,hasM:o}=e,l=[];if(!re(r,a??!1,o??!1,t,l,n,s))return null;const u=ae(a,n);return i.rings=l,i.spatialReference=n,i.hasZ=u,i.hasM=o,i}function ne(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=se(e,e.spatialReference,t,i,n)}function se(e,t,i,n,s){const{xmin:r,ymin:a,xmax:o,ymax:l,hasZ:u,hasM:c}=e;if(!_(r,a,u?e.zmin:s,t,oe,n))return null;const p=ae(u,n);return i.xmin=oe[0],i.ymin=oe[1],p&&(i.zmin=oe[2]),_(o,l,u?e.zmax:s,t,oe,n)?(i.xmax=oe[0],i.ymax=oe[1],p&&(i.zmax=oe[2]),c&&(i.mmin=e.mmin,i.mmax=e.mmax),i.spatialReference=n,i):null}function re(e,t,i,n,s,r,a=0){const o=new Array;for(const i of e)for(const e of i)o.push(e[0],e[1],t?e[2]:a);if(!(0,v.projectBuffer)(o,n,0,o,r,0))return!1;let l=0;s.length=0;const u=ae(t,r);for(const t of e){const e=new Array;for(const n of t)u&&i?e.push([o[l++],o[l++],o[l++],n[3]]):u?e.push([o[l++],o[l++],o[l++]]):i?(e.push([o[l++],o[l++],n[2]]),l++):(e.push([o[l++],o[l++]]),l++);s.push(e)}return!0}function ae(e,t){return e||(0,u.xP)(t)||(0,F.aI)(t,g.Y0)}const oe=(0,o.vt)()},92300(e,t,i){i.d(t,{V:()=>a,X:()=>r});var n=i(60408),s=i(65864);function r(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function a(e,t,i){const n=(0,s.xD)(t);return e.map(e=>{const t=n.fromJSON(e);return t.spatialReference=i,t})}},98764(e,t,i){i.d(t,{GD:()=>a,Y0:()=>u,lO:()=>c});var n=i(73941),s=i(16930),r=i(21325);const a=new s.A(n.fv),o=new s.A(n.FY),l=new s.A(n.LJ),u=new s.A(n.Ro);function c(e){const t=p.get(e);if(t)return t;let i=a;if(e)if(e===o)i=o;else if(e===l)i=l;else{const t=e.wkid,n=e.latestWkid;if(null!=t||null!=n)(0,r.tl)(t)||(0,r.tl)(n)?i=o:((0,r.ZL)(t)||(0,r.ZL)(n))&&(i=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?i=o:e===f&&(i=l)}}}return p.set(e,i),i}const p=new Map,d=o.wkt.toUpperCase(),f=l.wkt.toUpperCase()},99157(e,t,i){i.d(t,{A:()=>o});var n,s=i(5482),r=i(69622),a=i(91429);let o=n=class extends r.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,s.Cg)([(0,a.MZ)()],o.prototype,"isInverse",void 0),(0,s.Cg)([(0,a.MZ)()],o.prototype,"wkt",void 0),(0,s.Cg)([(0,a.MZ)()],o.prototype,"wkid",void 0),o=n=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],o)},99352(e,t,i){i.d(t,{F:()=>n,P:()=>s});const n={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},s={supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}}}]);