@arcgis/core 5.1.0-next.70 → 5.1.0-next.72

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 (699) hide show
  1. package/PopupTemplate.js +1 -1
  2. package/assets/components/assets/combobox/t9n/messages.ar.json +1 -1
  3. package/assets/components/assets/combobox/t9n/messages.bg.json +1 -1
  4. package/assets/components/assets/combobox/t9n/messages.bs.json +1 -1
  5. package/assets/components/assets/combobox/t9n/messages.ca.json +1 -1
  6. package/assets/components/assets/combobox/t9n/messages.cs.json +1 -1
  7. package/assets/components/assets/combobox/t9n/messages.da.json +1 -1
  8. package/assets/components/assets/combobox/t9n/messages.de.json +1 -1
  9. package/assets/components/assets/combobox/t9n/messages.el.json +1 -1
  10. package/assets/components/assets/combobox/t9n/messages.en.json +1 -1
  11. package/assets/components/assets/combobox/t9n/messages.es.json +1 -1
  12. package/assets/components/assets/combobox/t9n/messages.et.json +1 -1
  13. package/assets/components/assets/combobox/t9n/messages.fi.json +1 -1
  14. package/assets/components/assets/combobox/t9n/messages.fr.json +1 -1
  15. package/assets/components/assets/combobox/t9n/messages.he.json +1 -1
  16. package/assets/components/assets/combobox/t9n/messages.hr.json +1 -1
  17. package/assets/components/assets/combobox/t9n/messages.hu.json +1 -1
  18. package/assets/components/assets/combobox/t9n/messages.id.json +1 -1
  19. package/assets/components/assets/combobox/t9n/messages.it.json +1 -1
  20. package/assets/components/assets/combobox/t9n/messages.ja.json +1 -1
  21. package/assets/components/assets/combobox/t9n/messages.json +1 -1
  22. package/assets/components/assets/combobox/t9n/messages.ko.json +1 -1
  23. package/assets/components/assets/combobox/t9n/messages.lt.json +1 -1
  24. package/assets/components/assets/combobox/t9n/messages.lv.json +1 -1
  25. package/assets/components/assets/combobox/t9n/messages.nl.json +1 -1
  26. package/assets/components/assets/combobox/t9n/messages.no.json +1 -1
  27. package/assets/components/assets/combobox/t9n/messages.pl.json +1 -1
  28. package/assets/components/assets/combobox/t9n/messages.pt-BR.json +1 -1
  29. package/assets/components/assets/combobox/t9n/messages.pt-PT.json +1 -1
  30. package/assets/components/assets/combobox/t9n/messages.ro.json +1 -1
  31. package/assets/components/assets/combobox/t9n/messages.ru.json +1 -1
  32. package/assets/components/assets/combobox/t9n/messages.sk.json +1 -1
  33. package/assets/components/assets/combobox/t9n/messages.sl.json +1 -1
  34. package/assets/components/assets/combobox/t9n/messages.sr.json +1 -1
  35. package/assets/components/assets/combobox/t9n/messages.sv.json +1 -1
  36. package/assets/components/assets/combobox/t9n/messages.th.json +1 -1
  37. package/assets/components/assets/combobox/t9n/messages.tr.json +1 -1
  38. package/assets/components/assets/combobox/t9n/messages.uk.json +1 -1
  39. package/assets/components/assets/combobox/t9n/messages.vi.json +1 -1
  40. package/assets/components/assets/combobox/t9n/messages.zh-CN.json +1 -1
  41. package/assets/components/assets/combobox/t9n/messages.zh-HK.json +1 -1
  42. package/assets/components/assets/combobox/t9n/messages.zh-TW.json +1 -1
  43. package/assets/components/assets/icon/addToLivestreamVideoLayer16.json +1 -0
  44. package/assets/components/assets/icon/addToLivestreamVideoLayer24.json +1 -0
  45. package/assets/components/assets/icon/addToLivestreamVideoLayer32.json +1 -0
  46. package/assets/components/assets/icon/addToVideoLayer16.json +1 -0
  47. package/assets/components/assets/icon/addToVideoLayer24.json +1 -0
  48. package/assets/components/assets/icon/addToVideoLayer32.json +1 -0
  49. package/assets/components/assets/icon/arcgisQuickcapture16.json +1 -0
  50. package/assets/components/assets/icon/arcgisQuickcapture24.json +1 -0
  51. package/assets/components/assets/icon/arcgisQuickcapture32.json +1 -0
  52. package/assets/components/assets/icon/arcgisSurvey12316.json +1 -0
  53. package/assets/components/assets/icon/arcgisSurvey12324.json +1 -0
  54. package/assets/components/assets/icon/arcgisSurvey12332.json +1 -0
  55. package/assets/components/assets/icon/bicycleTravelMode16.json +1 -0
  56. package/assets/components/assets/icon/bicycleTravelMode16F.json +1 -0
  57. package/assets/components/assets/icon/bicycleTravelMode24.json +1 -0
  58. package/assets/components/assets/icon/bicycleTravelMode24F.json +1 -0
  59. package/assets/components/assets/icon/bicycleTravelMode32.json +1 -0
  60. package/assets/components/assets/icon/bicycleTravelMode32F.json +1 -0
  61. package/assets/components/assets/icon/busTravelMode16.json +1 -0
  62. package/assets/components/assets/icon/busTravelMode16F.json +1 -0
  63. package/assets/components/assets/icon/busTravelMode24.json +1 -0
  64. package/assets/components/assets/icon/busTravelMode24F.json +1 -0
  65. package/assets/components/assets/icon/busTravelMode32.json +1 -0
  66. package/assets/components/assets/icon/busTravelMode32F.json +1 -0
  67. package/assets/components/assets/icon/carTravelMode16.json +1 -0
  68. package/assets/components/assets/icon/carTravelMode16F.json +1 -0
  69. package/assets/components/assets/icon/carTravelMode24.json +1 -0
  70. package/assets/components/assets/icon/carTravelMode24F.json +1 -0
  71. package/assets/components/assets/icon/carTravelMode32.json +1 -0
  72. package/assets/components/assets/icon/carTravelMode32F.json +1 -0
  73. package/assets/components/assets/icon/conditionalRulesDown16.json +1 -0
  74. package/assets/components/assets/icon/conditionalRulesDown24.json +1 -0
  75. package/assets/components/assets/icon/conditionalRulesDown32.json +1 -0
  76. package/assets/components/assets/icon/emergency16.json +1 -0
  77. package/assets/components/assets/icon/emergency16F.json +1 -0
  78. package/assets/components/assets/icon/emergency24.json +1 -0
  79. package/assets/components/assets/icon/emergency24F.json +1 -0
  80. package/assets/components/assets/icon/emergency32.json +1 -0
  81. package/assets/components/assets/icon/emergency32F.json +1 -0
  82. package/assets/components/assets/icon/eyedropper16.json +1 -1
  83. package/assets/components/assets/icon/eyedropper24.json +1 -1
  84. package/assets/components/assets/icon/eyedropper32.json +1 -1
  85. package/assets/components/assets/icon/featureDetailsSet16.json +1 -0
  86. package/assets/components/assets/icon/featureDetailsSet24.json +1 -0
  87. package/assets/components/assets/icon/featureDetailsSet32.json +1 -0
  88. package/assets/components/assets/icon/fileBim16.json +1 -0
  89. package/assets/components/assets/icon/fileBim24.json +1 -0
  90. package/assets/components/assets/icon/fileBim32.json +1 -0
  91. package/assets/components/assets/icon/fileDwg16.json +1 -0
  92. package/assets/components/assets/icon/fileDwg24.json +1 -0
  93. package/assets/components/assets/icon/fileDwg32.json +1 -0
  94. package/assets/components/assets/icon/fileRvt16.json +1 -0
  95. package/assets/components/assets/icon/fileRvt24.json +1 -0
  96. package/assets/components/assets/icon/fileRvt32.json +1 -0
  97. package/assets/components/assets/icon/gradient16.json +1 -0
  98. package/assets/components/assets/icon/gradient24.json +1 -0
  99. package/assets/components/assets/icon/gradient32.json +1 -0
  100. package/assets/components/assets/icon/layerStreamSetting16.json +1 -0
  101. package/assets/components/assets/icon/layerStreamSetting24.json +1 -0
  102. package/assets/components/assets/icon/layerStreamSetting32.json +1 -0
  103. package/assets/components/assets/icon/mopedTravelMode16.json +1 -0
  104. package/assets/components/assets/icon/mopedTravelMode16F.json +1 -0
  105. package/assets/components/assets/icon/mopedTravelMode24.json +1 -0
  106. package/assets/components/assets/icon/mopedTravelMode24F.json +1 -0
  107. package/assets/components/assets/icon/mopedTravelMode32.json +1 -0
  108. package/assets/components/assets/icon/mopedTravelMode32F.json +1 -0
  109. package/assets/components/assets/icon/motorcycleTravelMode16.json +1 -0
  110. package/assets/components/assets/icon/motorcycleTravelMode16F.json +1 -0
  111. package/assets/components/assets/icon/motorcycleTravelMode24.json +1 -0
  112. package/assets/components/assets/icon/motorcycleTravelMode24F.json +1 -0
  113. package/assets/components/assets/icon/motorcycleTravelMode32.json +1 -0
  114. package/assets/components/assets/icon/motorcycleTravelMode32F.json +1 -0
  115. package/assets/components/assets/icon/publish16.json +1 -0
  116. package/assets/components/assets/icon/publish24.json +1 -0
  117. package/assets/components/assets/icon/publish32.json +1 -0
  118. package/assets/components/assets/icon/scooterTravelMode16.json +1 -0
  119. package/assets/components/assets/icon/scooterTravelMode16F.json +1 -0
  120. package/assets/components/assets/icon/scooterTravelMode24.json +1 -0
  121. package/assets/components/assets/icon/scooterTravelMode24F.json +1 -0
  122. package/assets/components/assets/icon/scooterTravelMode32.json +1 -0
  123. package/assets/components/assets/icon/scooterTravelMode32F.json +1 -0
  124. package/assets/components/assets/icon/shuttleTravelMode16.json +1 -0
  125. package/assets/components/assets/icon/shuttleTravelMode16F.json +1 -0
  126. package/assets/components/assets/icon/shuttleTravelMode24.json +1 -0
  127. package/assets/components/assets/icon/shuttleTravelMode24F.json +1 -0
  128. package/assets/components/assets/icon/shuttleTravelMode32.json +1 -0
  129. package/assets/components/assets/icon/shuttleTravelMode32F.json +1 -0
  130. package/assets/components/assets/icon/strollerTravelMode16.json +1 -0
  131. package/assets/components/assets/icon/strollerTravelMode16F.json +1 -0
  132. package/assets/components/assets/icon/strollerTravelMode24.json +1 -0
  133. package/assets/components/assets/icon/strollerTravelMode24F.json +1 -0
  134. package/assets/components/assets/icon/strollerTravelMode32.json +1 -0
  135. package/assets/components/assets/icon/strollerTravelMode32F.json +1 -0
  136. package/assets/components/assets/icon/trainTravelMode16.json +1 -0
  137. package/assets/components/assets/icon/trainTravelMode16F.json +1 -0
  138. package/assets/components/assets/icon/trainTravelMode24.json +1 -0
  139. package/assets/components/assets/icon/trainTravelMode24F.json +1 -0
  140. package/assets/components/assets/icon/trainTravelMode32.json +1 -0
  141. package/assets/components/assets/icon/trainTravelMode32F.json +1 -0
  142. package/assets/components/assets/icon/tramTravelMode16.json +1 -0
  143. package/assets/components/assets/icon/tramTravelMode16F.json +1 -0
  144. package/assets/components/assets/icon/tramTravelMode24.json +1 -0
  145. package/assets/components/assets/icon/tramTravelMode24F.json +1 -0
  146. package/assets/components/assets/icon/tramTravelMode32.json +1 -0
  147. package/assets/components/assets/icon/tramTravelMode32F.json +1 -0
  148. package/assets/components/assets/icon/truckTravelMode16.json +1 -0
  149. package/assets/components/assets/icon/truckTravelMode16F.json +1 -0
  150. package/assets/components/assets/icon/truckTravelMode24.json +1 -0
  151. package/assets/components/assets/icon/truckTravelMode24F.json +1 -0
  152. package/assets/components/assets/icon/truckTravelMode32.json +1 -0
  153. package/assets/components/assets/icon/truckTravelMode32F.json +1 -0
  154. package/assets/components/assets/icon/velocityServer16.json +1 -0
  155. package/assets/components/assets/icon/velocityServer24.json +1 -0
  156. package/assets/components/assets/icon/velocityServer32.json +1 -0
  157. package/assets/components/assets/icon/walkingTravelMode16.json +1 -0
  158. package/assets/components/assets/icon/walkingTravelMode16F.json +1 -0
  159. package/assets/components/assets/icon/walkingTravelMode24.json +1 -0
  160. package/assets/components/assets/icon/walkingTravelMode24F.json +1 -0
  161. package/assets/components/assets/icon/walkingTravelMode32.json +1 -0
  162. package/assets/components/assets/icon/walkingTravelMode32F.json +1 -0
  163. package/assets/components/assets/icon/wheelchairTravelMode16.json +1 -0
  164. package/assets/components/assets/icon/wheelchairTravelMode16F.json +1 -0
  165. package/assets/components/assets/icon/wheelchairTravelMode24.json +1 -0
  166. package/assets/components/assets/icon/wheelchairTravelMode24F.json +1 -0
  167. package/assets/components/assets/icon/wheelchairTravelMode32.json +1 -0
  168. package/assets/components/assets/icon/wheelchairTravelMode32F.json +1 -0
  169. package/assets/esri/core/workers/RemoteClient.js +1 -1
  170. package/assets/esri/core/workers/chunks/003fd7745966fe03510c.js +1 -0
  171. package/assets/esri/core/workers/chunks/00bae4b7e179336e0362.js +1 -0
  172. package/assets/esri/core/workers/chunks/026d3fa331caec1ea3d2.js +1 -0
  173. package/assets/esri/core/workers/chunks/027c3ea756db68e51f0a.js +1 -0
  174. package/assets/esri/core/workers/chunks/{81b2985b83be8f8f1090.js → 02876e434dc91c42b2f4.js} +1 -1
  175. package/assets/esri/core/workers/chunks/041c372e98a6fba90b36.js +1 -0
  176. package/assets/esri/core/workers/chunks/0783890816bac45277b9.js +1 -0
  177. package/assets/esri/core/workers/chunks/07aac6245a0d1adbb2d4.js +1 -0
  178. package/assets/esri/core/workers/chunks/0839da55707f7c4cf780.js +1 -0
  179. package/assets/esri/core/workers/chunks/0b1454a77a6a682541dc.js +2 -0
  180. package/assets/esri/core/workers/chunks/{d82b543c96f09ded3bf9.js.LICENSE.txt → 0b1454a77a6a682541dc.js.LICENSE.txt} +6 -1
  181. package/assets/esri/core/workers/chunks/0c00e5e4bd18467bcecd.js +1 -0
  182. package/assets/esri/core/workers/chunks/{478879ba965798f61bf3.js → 0d96e39380fd84cea9ba.js} +1 -1
  183. package/assets/esri/core/workers/chunks/0dad0bca8d58b2c63d22.js +1 -0
  184. package/assets/esri/core/workers/chunks/0ef93722524620023f69.js +1 -0
  185. package/assets/esri/core/workers/chunks/{03e20ac54d6f141b5001.js → 11241781baaed346af52.js} +1 -1
  186. package/assets/esri/core/workers/chunks/127cd8fee3717a473fc5.js +1 -0
  187. package/assets/esri/core/workers/chunks/1286f41f245ef22b3a26.js +1 -0
  188. package/assets/esri/core/workers/chunks/161d60fdac2013c15543.js +1 -0
  189. package/assets/esri/core/workers/chunks/1661684357912726a72a.js +1 -0
  190. package/assets/esri/core/workers/chunks/168de44a789d1cecc1f8.js +1 -0
  191. package/assets/esri/core/workers/chunks/1961b59756933e0a82f2.js +1 -0
  192. package/assets/esri/core/workers/chunks/1c7183551f5269bdcf13.js +30 -0
  193. package/assets/esri/core/workers/chunks/1d9560eb8b21b9e76616.js +1 -0
  194. package/assets/esri/core/workers/chunks/1d9d7915cf7449e5d468.js +1 -0
  195. package/assets/esri/core/workers/chunks/{b364ec104dd59faa41b6.js → 1f82a0f134ea912fc686.js} +1 -1
  196. package/assets/esri/core/workers/chunks/1f85646936200a399c15.js +1 -0
  197. package/assets/esri/core/workers/chunks/2171aaa147aa4d9fc5b5.js +1 -0
  198. package/assets/esri/core/workers/chunks/235cb82952a18ff8d206.js +1 -0
  199. package/assets/esri/core/workers/chunks/260d4571722cb1ff1366.js +1 -0
  200. package/assets/esri/core/workers/chunks/266ba61b72a278d93a26.js +1 -0
  201. package/assets/esri/core/workers/chunks/27b80c386cebadcaca3c.js +1 -0
  202. package/assets/esri/core/workers/chunks/29d3890a5a43d934067a.js +1 -0
  203. package/assets/esri/core/workers/chunks/{333a0038d782d8a34d58.js → 2abf124e2956e4f76688.js} +1 -1
  204. package/assets/esri/core/workers/chunks/2f17438d215bea3ce70f.js +1 -0
  205. package/assets/esri/core/workers/chunks/30e710ec4d22c43d4e7e.js +1 -0
  206. package/assets/esri/core/workers/chunks/356cb86606b8c674f947.js +1 -0
  207. package/assets/esri/core/workers/chunks/3697e51e1e4cf442f39a.js +1 -0
  208. package/assets/esri/core/workers/chunks/398e0dd2bc7e1ab84831.js +1 -0
  209. package/assets/esri/core/workers/chunks/3a58708217a9c11836ab.js +1 -0
  210. package/assets/esri/core/workers/chunks/3b1052aa30af3f6186cc.js +1 -0
  211. package/assets/esri/core/workers/chunks/3bbf684ee2484eb44c9f.js +1 -0
  212. package/assets/esri/core/workers/chunks/3cd9bd20e75ba4d5b294.js +1 -0
  213. package/assets/esri/core/workers/chunks/3e87e3ad857d72f6ecbb.js +1 -0
  214. package/assets/esri/core/workers/chunks/3ea5a18b264628dc37f0.js +1 -0
  215. package/assets/esri/core/workers/chunks/41809c16544ec25120fa.js +1 -0
  216. package/assets/esri/core/workers/chunks/41913575dd45c65d645e.js +1 -0
  217. package/assets/esri/core/workers/chunks/427dec43ef2d67467699.js +1 -0
  218. package/assets/esri/core/workers/chunks/42e483fde18f12da32a6.js +1 -0
  219. package/assets/esri/core/workers/chunks/43ab44d37bc0ea97ef98.js +1 -0
  220. package/assets/esri/core/workers/chunks/{746b3e98bad32c366a27.js → 444f0f51b3ee0b9845a5.js} +1 -1
  221. package/assets/esri/core/workers/chunks/46e622857ba92a72a317.js +1 -0
  222. package/assets/esri/core/workers/chunks/47f2113357b2aa4f4f37.js +1 -0
  223. package/assets/esri/core/workers/chunks/488ed9584b527ec47be3.js +1 -0
  224. package/assets/esri/core/workers/chunks/4ad32580e0c0699fde1f.js +1 -0
  225. package/assets/esri/core/workers/chunks/4d0f793dee4ad919221b.js +1 -0
  226. package/assets/esri/core/workers/chunks/{f209a7076d67cbf4d205.js → 4e676e888a935c507d90.js} +1 -1
  227. package/assets/esri/core/workers/chunks/4eed175277eb0df3c821.js +1 -0
  228. package/assets/esri/core/workers/chunks/50d5d6654ada9f28345d.js +1 -0
  229. package/assets/esri/core/workers/chunks/54c6e870262469d0d702.js +1 -0
  230. package/assets/esri/core/workers/chunks/54d07eadf113f0e4e506.js +1 -0
  231. package/assets/esri/core/workers/chunks/54ed37ec9682ea739deb.js +1 -0
  232. package/assets/esri/core/workers/chunks/55369c5bd65bcaf78da1.js +1 -0
  233. package/assets/esri/core/workers/chunks/56fd3da911c2c4511e5d.js +1 -0
  234. package/assets/esri/core/workers/chunks/58c79e15ca95238a4b43.js +1 -0
  235. package/assets/esri/core/workers/chunks/59592bb25f226865e88a.js +1 -0
  236. package/assets/esri/core/workers/chunks/5a4d7ba6dc1d4b41d80d.js +1 -0
  237. package/assets/esri/core/workers/chunks/5d55b4449bcb24cd72b6.js +1 -0
  238. package/assets/esri/core/workers/chunks/5d8fe41a3c06ddb4094b.js +1 -0
  239. package/assets/esri/core/workers/chunks/5ef37f37e405b3bb5450.js +1 -0
  240. package/assets/esri/core/workers/chunks/608d707fd9d9f9088473.js +1 -0
  241. package/assets/esri/core/workers/chunks/61ef14e42bc09b787d89.js +1 -0
  242. package/assets/esri/core/workers/chunks/628f56c09838eb9c573b.js +1 -0
  243. package/assets/esri/core/workers/chunks/656d6963e8f837fbf28f.js +1 -0
  244. package/assets/esri/core/workers/chunks/68b47a5a50e0b5fffca2.js +1 -0
  245. package/assets/esri/core/workers/chunks/6a0352d20596ca3f4b64.js +1 -0
  246. package/assets/esri/core/workers/chunks/6c7ff968bd4fc816442d.js +1 -0
  247. package/assets/esri/core/workers/chunks/6dac8dfcd63fc757ae2d.js +1 -0
  248. package/assets/esri/core/workers/chunks/6e526c06825ecc6c99c0.js +1 -0
  249. package/assets/esri/core/workers/chunks/6e70e922331704b92a08.js +1 -0
  250. package/assets/esri/core/workers/chunks/6ea8b0d68881d16a2432.js +1 -0
  251. package/assets/esri/core/workers/chunks/6f67c9f68101a084b683.js +30 -0
  252. package/assets/esri/core/workers/chunks/6f9ea461c268c421f9c9.js +1 -0
  253. package/assets/esri/core/workers/chunks/7027d93dc5a4595d70c6.js +1 -0
  254. package/assets/esri/core/workers/chunks/70b35b2446558d5280e3.js +1 -0
  255. package/assets/esri/core/workers/chunks/728ad5bbbcbf88d6249f.js +1 -0
  256. package/assets/esri/core/workers/chunks/7349cb45a93e6916f115.js +1 -0
  257. package/assets/esri/core/workers/chunks/74be994d789c57031631.js +1 -0
  258. package/assets/esri/core/workers/chunks/751609831b283903ba48.js +1 -0
  259. package/assets/esri/core/workers/chunks/76edaeaf8fe344bb77a8.js +1 -0
  260. package/assets/esri/core/workers/chunks/76fe5b821d6b54db5721.js +1 -0
  261. package/assets/esri/core/workers/chunks/7bacdd65a6cc4d284e0a.js +2 -0
  262. package/assets/esri/core/workers/chunks/7c7c11c0fde8b63e330b.js +1 -0
  263. package/assets/esri/core/workers/chunks/7e6ccf9f3e756186e93e.js +1 -0
  264. package/assets/esri/core/workers/chunks/81d30c9062ad0120a863.js +1 -0
  265. package/assets/esri/core/workers/chunks/824051af00e7a1f05ed0.js +1 -0
  266. package/assets/esri/core/workers/chunks/84772b023d04e415f17f.js +1 -0
  267. package/assets/esri/core/workers/chunks/85edbb072a2ce6c1bb30.js +2 -0
  268. package/assets/esri/core/workers/chunks/{2d2c10c31cc1460dd96a.js → 88827e23f8938342781c.js} +1 -1
  269. package/assets/esri/core/workers/chunks/88b480a1d1fb01778798.js +267 -0
  270. package/assets/esri/core/workers/chunks/88c5f7c712c6b89b5109.js +1 -0
  271. package/assets/esri/core/workers/chunks/88e469b82d2594f23649.js +1 -0
  272. package/assets/esri/core/workers/chunks/8a14e3db28c403b046cf.js +1 -0
  273. package/assets/esri/core/workers/chunks/8a48a6760c33ed50b650.js +1 -0
  274. package/assets/esri/core/workers/chunks/8a664451845a47048859.js +1 -0
  275. package/assets/esri/core/workers/chunks/8a8242e7cc7e6a9e7876.js +1 -0
  276. package/assets/esri/core/workers/chunks/8acee3fba488f202f82f.js +1 -0
  277. package/assets/esri/core/workers/chunks/8b73f4d2f99c0b54cced.js +1 -0
  278. package/assets/esri/core/workers/chunks/91a0227a64a944af3286.js +596 -0
  279. package/assets/esri/core/workers/chunks/943cf0653a2b7de16a4f.js +1 -0
  280. package/assets/esri/core/workers/chunks/9444ed8ea117861ae89b.js +1 -0
  281. package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +1 -0
  282. package/assets/esri/core/workers/chunks/96bba4d93a32ad34a1c8.js +1 -0
  283. package/assets/esri/core/workers/chunks/9a38fd68b02b617c45d3.js +1 -0
  284. package/assets/esri/core/workers/chunks/{e0a63b5861e8c975097e.js → 9aaf78b831f8739bc127.js} +1 -1
  285. package/assets/esri/core/workers/chunks/{4d378d4e021a33b0047e.js → 9be4438ce2c7180adadf.js} +1 -1
  286. package/assets/esri/core/workers/chunks/9d434360dfce1e49b7b9.js +1 -0
  287. package/assets/esri/core/workers/chunks/9f4b97204def91567e3c.js +1 -0
  288. package/assets/esri/core/workers/chunks/a169d9fe66b5865911d9.js +1 -0
  289. package/assets/esri/core/workers/chunks/a37c28e3c4a2be9fd1d5.js +1 -0
  290. package/assets/esri/core/workers/chunks/a37fc886227365f7ecd5.js +1 -0
  291. package/assets/esri/core/workers/chunks/a5d8d6f3c0c8de474efd.js +1 -0
  292. package/assets/esri/core/workers/chunks/a65d576e90179a2b5400.js +1 -0
  293. package/assets/esri/core/workers/chunks/a8d7f59927bdad564141.js +1 -0
  294. package/assets/esri/core/workers/chunks/{678c9f15712cf3d3bb9e.js → aa1a3a849aba84cf585b.js} +1 -1
  295. package/assets/esri/core/workers/chunks/abc06d10c7ac8ba5b0e4.js +1 -0
  296. package/assets/esri/core/workers/chunks/abe22ae8ee0dcc9efbb7.js +1 -0
  297. package/assets/esri/core/workers/chunks/ae0a572cbbdd9815ee2e.js +1 -0
  298. package/assets/esri/core/workers/chunks/af5db0372d526e592fcc.js +1 -0
  299. package/assets/esri/core/workers/chunks/b1a21a4d7d73ad7d0e47.js +1 -0
  300. package/assets/esri/core/workers/chunks/b2983f521d8c96becd8a.js +1 -0
  301. package/assets/esri/core/workers/chunks/{915a5e8aecf25f3bc72b.js → b475f5492c6e3fd4cca8.js} +1 -1
  302. package/assets/esri/core/workers/chunks/b495f14d90abe8d1a558.js +1 -0
  303. package/assets/esri/core/workers/chunks/{f11ea0d3de93ec0392af.js → b54b7cc6b23a70fed700.js} +1 -1
  304. package/assets/esri/core/workers/chunks/b702279c48f3009f6dd8.js +1 -0
  305. package/assets/esri/core/workers/chunks/b79058f5bda6fcac22f8.js +1 -0
  306. package/assets/esri/core/workers/chunks/b801631b58e6fc6cec8a.js +1 -0
  307. package/assets/esri/core/workers/chunks/b92794def31592a6a25f.js +1 -0
  308. package/assets/esri/core/workers/chunks/bc53ce9a643f82d516c2.js +1 -0
  309. package/assets/esri/core/workers/chunks/be1d6a571f76933dfbb0.js +1 -0
  310. package/assets/esri/core/workers/chunks/bea70be8e38b8c83ccd2.js +1 -0
  311. package/assets/esri/core/workers/chunks/bfcdc5c315131aae34d8.js +1 -0
  312. package/assets/esri/core/workers/chunks/c0f624a2ca0d07ef8f8c.js +1 -0
  313. package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +1 -0
  314. package/assets/esri/core/workers/chunks/c1838822b096d5f36a8b.js +1 -0
  315. package/assets/esri/core/workers/chunks/c3381b9a36299210ee47.js +1 -0
  316. package/assets/esri/core/workers/chunks/c46a4adea39636a96d03.js +1 -0
  317. package/assets/esri/core/workers/chunks/{c2882a9e67124b7c18be.js → c503c79ba5761f7abbeb.js} +1 -1
  318. package/assets/esri/core/workers/chunks/c6030271bd6d39b6e1db.js +1 -0
  319. package/assets/esri/core/workers/chunks/c9065cee85eb8dde6a42.js +1 -0
  320. package/assets/esri/core/workers/chunks/c961aff385e38b081204.js +1 -0
  321. package/assets/esri/core/workers/chunks/cb5e4b9b4a59c2622eb5.js +1 -0
  322. package/assets/esri/core/workers/chunks/cca095f0c623e037002d.js +1 -0
  323. package/assets/esri/core/workers/chunks/ce2aa75e084ee56f5e29.js +1 -0
  324. package/assets/esri/core/workers/chunks/cf826787ab8d4b27ad80.js +1 -0
  325. package/assets/esri/core/workers/chunks/d05a7ce6c1d4b883ed4c.js +30 -0
  326. package/assets/esri/core/workers/chunks/d201a5dff18a5bb467ab.js +1 -0
  327. package/assets/esri/core/workers/chunks/d2aa75816e84b1e7fd25.js +1 -0
  328. package/assets/esri/core/workers/chunks/d4a9eb4470cc6a1f67fc.js +2 -0
  329. package/assets/esri/core/workers/chunks/{8ccf2f65d8ed3c48ffff.js → d950d5c2844206502ff0.js} +1 -1
  330. package/assets/esri/core/workers/chunks/db3c484bfa607dec6050.js +1 -0
  331. package/assets/esri/core/workers/chunks/db588bf3256e95c977b7.js +1 -0
  332. package/assets/esri/core/workers/chunks/dbc9249dae41096d750d.js +1 -0
  333. package/assets/esri/core/workers/chunks/dcc719e15b2e0cce1f3b.js +1 -0
  334. package/assets/esri/core/workers/chunks/{6bb090f3e5c18604cb39.js → dd5b362bded458afa2d6.js} +1 -1
  335. package/assets/esri/core/workers/chunks/de583214195eff13cb00.js +1140 -0
  336. package/assets/esri/core/workers/chunks/dec6d41d614105e6fd93.js +1 -0
  337. package/assets/esri/core/workers/chunks/df8143b72ef94806c992.js +1 -0
  338. package/assets/esri/core/workers/chunks/dfdd474fddcd1d6091ce.js +1 -0
  339. package/assets/esri/core/workers/chunks/e0b47b08ae2c36c76fa2.js +1 -0
  340. package/assets/esri/core/workers/chunks/e235ea4293d5d463acfb.js +1 -0
  341. package/assets/esri/core/workers/chunks/e43486113aaf72ac4dc1.js +1 -0
  342. package/assets/esri/core/workers/chunks/ea4c3393c5757e309a71.js +1 -0
  343. package/assets/esri/core/workers/chunks/ed216ddeb7f59f510bd0.js +1 -0
  344. package/assets/esri/core/workers/chunks/ef8886dff54063928bcb.js +1 -0
  345. package/assets/esri/core/workers/chunks/f05932aea4eb267cba4d.js +1 -0
  346. package/assets/esri/core/workers/chunks/f09a41ad239d467d9438.js +2 -0
  347. package/assets/esri/core/workers/chunks/f1673e723b336204ad77.js +1 -0
  348. package/assets/esri/core/workers/chunks/f5223ffb3be548c9b0a1.js +1 -0
  349. package/assets/esri/core/workers/chunks/f52443cd203e687551da.js +1 -0
  350. package/assets/esri/core/workers/chunks/f6912532aae1638cbe8f.js +1 -0
  351. package/assets/esri/core/workers/chunks/fae147d03ed723ab234d.js +1 -0
  352. package/assets/esri/core/workers/chunks/ffcd4fca7f67e1f943f1.js +1 -0
  353. package/assets/esri/themes/dark/main.css +1 -1
  354. package/assets/esri/themes/light/main.css +1 -1
  355. package/assets/esri/themes/light/view.css +1 -1
  356. package/chunks/CheckerBoard.glsl.js +3 -5
  357. package/chunks/ColorMaterial.glsl.js +4 -6
  358. package/chunks/ComponentShader.glsl.js +42 -44
  359. package/chunks/DefaultMaterial.glsl.js +21 -23
  360. package/chunks/EdgeShader.glsl.js +9 -11
  361. package/chunks/GaussianSplat.glsl.js +8 -8
  362. package/chunks/ImageMaterial.glsl.js +5 -7
  363. package/chunks/LineCallout.glsl.js +9 -12
  364. package/chunks/LineMarker.glsl.js +24 -26
  365. package/chunks/OITDim.glsl.js +3 -4
  366. package/chunks/Path.glsl.js +15 -17
  367. package/chunks/Pattern.glsl.js +25 -27
  368. package/chunks/RealisticTree.glsl.js +11 -13
  369. package/chunks/RibbonLine.glsl.js +42 -45
  370. package/chunks/ShadedColorMaterial.glsl.js +8 -9
  371. package/chunks/Water.glsl.js +18 -20
  372. package/config.js +1 -1
  373. package/core/workers/WorkerHandle.js +1 -1
  374. package/geometry/Mesh.js +1 -1
  375. package/geometry/support/DoubleArray.js +1 -1
  376. package/geometry/support/triangulationUtilsDeprecated.js +1 -1
  377. package/kernel.js +1 -1
  378. package/layers/VoxelWasmPerSceneView.js +1 -1
  379. package/layers/graphics/FlatFeature.js +1 -1
  380. package/layers/graphics/FlatFeatureSet.js +1 -1
  381. package/layers/graphics/OptimizedFeature.js +1 -1
  382. package/layers/graphics/data/AttributesBuilder.js +1 -1
  383. package/layers/graphics/data/QueryEngineResult.js +1 -1
  384. package/layers/graphics/data/flatFeatureQueryEngineAdapter.js +1 -1
  385. package/layers/graphics/data/optimizedFeatureQueryEngineAdapter.js +1 -1
  386. package/layers/graphics/featureConversionUtils.js +1 -1
  387. package/layers/support/LabelClass.js +1 -1
  388. package/layers/support/featureLayerUtils.js +1 -1
  389. package/layers/support/labelUtils.js +1 -1
  390. package/layers/video/videoUtils.js +1 -1
  391. package/package.json +3 -3
  392. package/popup/Feature.d.ts +2 -0
  393. package/popup/Feature.js +1 -1
  394. package/popup/actions.js +1 -1
  395. package/popupTemplateUtils.js +2 -0
  396. package/renderers/visualVariables/SizeVariable.js +1 -1
  397. package/renderers/visualVariables/support/sizeVariableUtils.js +1 -1
  398. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  399. package/rest/support/OutDistance.js +2 -0
  400. package/rest/support/Query.js +1 -1
  401. package/smartMapping/statistics/support/utils.js +1 -1
  402. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  403. package/support/arcadeUtils.js +1 -1
  404. package/support/revision.js +1 -1
  405. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  406. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  407. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  408. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  409. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  410. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  411. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  412. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  413. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  414. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  415. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  416. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  417. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  418. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  419. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  420. package/views/2d/layers/imagery/ImageryView2D.js +1 -1
  421. package/views/2d/layers/imagery/VectorFieldView2D.js +1 -1
  422. package/views/3d/FocusAreasView.js +1 -1
  423. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementController.js +1 -1
  424. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  425. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  426. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  427. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  428. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  429. package/views/3d/layers/IntegratedMeshNormals.js +1 -1
  430. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  431. package/views/3d/layers/StreamLayerView3D.js +1 -1
  432. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  433. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  434. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  435. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  436. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  437. package/views/3d/layers/graphics/featureExpressionInfoUtils.js +1 -1
  438. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  439. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  440. package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
  441. package/views/3d/state/ViewStateManager.js +1 -1
  442. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  443. package/views/3d/support/renderInfoUtils/polygonDeprecated.js +1 -1
  444. package/views/3d/terrain/OverlayRenderer.js +1 -1
  445. package/views/3d/terrain/PatchRenderData.js +1 -1
  446. package/views/3d/terrain/TerrainRenderer.js +1 -1
  447. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  448. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  449. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialGlobalParameters.js +1 -1
  450. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
  451. package/views/3d/webgl-engine/collections/Component/Material/ComponentShader.glsl.js +1 -1
  452. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  453. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +20 -32
  454. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +5 -3
  455. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
  456. package/views/3d/webgl-engine/core/shaderLibrary/util/EmissionDimming.glsl.js +1 -1
  457. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  458. package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
  459. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  460. package/views/3d/webgl-engine/lib/Compositor.js +1 -1
  461. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  462. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  463. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  464. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  465. package/views/3d/webgl-engine/lib/SamplerRepository.js +2 -0
  466. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  467. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  468. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  469. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
  470. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechniqueConfiguration.js +1 -1
  471. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  472. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  473. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  474. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  475. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  476. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  477. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  478. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  479. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  480. package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
  481. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  482. package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
  483. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  484. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  485. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  486. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  487. package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
  488. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  489. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  490. package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
  491. package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
  492. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  493. package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
  494. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  495. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  496. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  497. package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
  498. package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
  499. package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
  500. package/views/3d/webgl-engine/shaders/ImageMaterialTechniqueConfiguration.js +1 -1
  501. package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
  502. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  503. package/views/3d/webgl-engine/shaders/LineCalloutTechniqueConfiguration.js +1 -1
  504. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  505. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  506. package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
  507. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  508. package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
  509. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  510. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  511. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  512. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  513. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  514. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechniqueConfiguration.js +1 -1
  515. package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
  516. package/views/VideoView.js +1 -1
  517. package/views/ViewAnimation.d.ts +2 -21
  518. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  519. package/views/layers/FeatureLikeLayerView.js +1 -1
  520. package/views/support/rasterHitTestUtils.js +2 -0
  521. package/views/video/VideoOperationalDataView.js +1 -1
  522. package/views/webgl/Sampler.js +1 -1
  523. package/views/webgl/ShaderBuilder.js +1 -1
  524. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +19 -3
  525. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  526. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  527. package/widgets/FeatureTable/VisibleElements.d.ts +15 -1
  528. package/widgets/FeatureTable/VisibleElements.js +1 -1
  529. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  530. package/widgets/FeatureTable.d.ts +15 -1
  531. package/widgets/FeatureTable.js +1 -1
  532. package/widgets/Search/SearchViewModel.js +1 -1
  533. package/widgets/support/widgetUtils.js +1 -1
  534. package/assets/esri/core/workers/chunks/01be1315c60810651783.js +0 -1
  535. package/assets/esri/core/workers/chunks/0dd12d6af0cf7707109c.js +0 -2
  536. package/assets/esri/core/workers/chunks/0e2e4cb34ac6aac88ebf.js +0 -1
  537. package/assets/esri/core/workers/chunks/155f57fe9886ef322e2a.js +0 -1
  538. package/assets/esri/core/workers/chunks/170f4d83555d238e365b.js +0 -1
  539. package/assets/esri/core/workers/chunks/171cca726a763c770469.js +0 -1
  540. package/assets/esri/core/workers/chunks/1761dc5799850ca7b66c.js +0 -1
  541. package/assets/esri/core/workers/chunks/17d54e77001ccb48a258.js +0 -1
  542. package/assets/esri/core/workers/chunks/19afacc9a741038e4bfb.js +0 -1
  543. package/assets/esri/core/workers/chunks/1a198c9e17f7a058669e.js +0 -1
  544. package/assets/esri/core/workers/chunks/1ae4e43a399e1974f106.js +0 -1
  545. package/assets/esri/core/workers/chunks/1c742bfe3b0aa51823d1.js +0 -1
  546. package/assets/esri/core/workers/chunks/1d8777266fb1c5cfca55.js +0 -1
  547. package/assets/esri/core/workers/chunks/1f76c06af4682c85bc21.js +0 -1
  548. package/assets/esri/core/workers/chunks/205e957ffd7e95f530f7.js +0 -1
  549. package/assets/esri/core/workers/chunks/20e715e3aeb1c3265901.js +0 -1
  550. package/assets/esri/core/workers/chunks/210629f3c28d4339c655.js +0 -1
  551. package/assets/esri/core/workers/chunks/21a8e2a11ffacc226e2b.js +0 -1
  552. package/assets/esri/core/workers/chunks/27643750dce502fedef3.js +0 -1
  553. package/assets/esri/core/workers/chunks/29b1a4ce7646b403008e.js +0 -1
  554. package/assets/esri/core/workers/chunks/2a65bbe6c63c384cbf5f.js +0 -1
  555. package/assets/esri/core/workers/chunks/2fa69ca3ba8c442dd7d6.js +0 -1
  556. package/assets/esri/core/workers/chunks/314140e2e9b813191907.js +0 -1
  557. package/assets/esri/core/workers/chunks/3158a3487d3e8a61b680.js +0 -1
  558. package/assets/esri/core/workers/chunks/35217befc8f9882d139e.js +0 -1
  559. package/assets/esri/core/workers/chunks/38328a785365c4783b1e.js +0 -1
  560. package/assets/esri/core/workers/chunks/3a2ecb883fdb5c598544.js +0 -30
  561. package/assets/esri/core/workers/chunks/3eef3c2e94aa2a00d76a.js +0 -1
  562. package/assets/esri/core/workers/chunks/40d6ad030614099155cd.js +0 -1414
  563. package/assets/esri/core/workers/chunks/41396724040180d2537f.js +0 -1
  564. package/assets/esri/core/workers/chunks/41e59d75ccb51a238739.js +0 -1
  565. package/assets/esri/core/workers/chunks/44016e1176629c36bc11.js +0 -1
  566. package/assets/esri/core/workers/chunks/453280ea87a696a4df81.js +0 -1
  567. package/assets/esri/core/workers/chunks/499b899bf88aaf29230d.js +0 -1
  568. package/assets/esri/core/workers/chunks/4b0d6309abf273f1f79f.js +0 -1
  569. package/assets/esri/core/workers/chunks/4e07827ab870c65377d3.js +0 -1
  570. package/assets/esri/core/workers/chunks/51852ef71ac04954fdae.js +0 -1
  571. package/assets/esri/core/workers/chunks/53b797e384be9628fc94.js +0 -1
  572. package/assets/esri/core/workers/chunks/549a51dedcc49f366e53.js +0 -1
  573. package/assets/esri/core/workers/chunks/54c0306082d30d59cba2.js +0 -1
  574. package/assets/esri/core/workers/chunks/56c7d7c7217557375fb6.js +0 -1
  575. package/assets/esri/core/workers/chunks/57cdd5d4ae073d5ca725.js +0 -1
  576. package/assets/esri/core/workers/chunks/5a1d975b3e9e6b7eff67.js +0 -1
  577. package/assets/esri/core/workers/chunks/5b9257c5359fa05f4f28.js +0 -1
  578. package/assets/esri/core/workers/chunks/5d574079f0e96e883aab.js +0 -1
  579. package/assets/esri/core/workers/chunks/5d967bcf71c05ddb1ab6.js +0 -1
  580. package/assets/esri/core/workers/chunks/5f6942ac94acd7842926.js +0 -1
  581. package/assets/esri/core/workers/chunks/60d0f8a949b130baff81.js +0 -1
  582. package/assets/esri/core/workers/chunks/61778185d702da468b00.js +0 -1
  583. package/assets/esri/core/workers/chunks/61b49cdaf288f36f9288.js +0 -1
  584. package/assets/esri/core/workers/chunks/621ea864e2774f160d1c.js +0 -1
  585. package/assets/esri/core/workers/chunks/679086351352756b33c9.js +0 -1
  586. package/assets/esri/core/workers/chunks/681e97ebbf9c69c410c6.js +0 -1
  587. package/assets/esri/core/workers/chunks/69644b8a6ce340ca1159.js +0 -1
  588. package/assets/esri/core/workers/chunks/6a567755b67c06d16f21.js +0 -1
  589. package/assets/esri/core/workers/chunks/6e7bb6d3e739527116a4.js +0 -1
  590. package/assets/esri/core/workers/chunks/70263c2182dc43046742.js +0 -1
  591. package/assets/esri/core/workers/chunks/71326d16b5cc35c3ff7f.js +0 -1
  592. package/assets/esri/core/workers/chunks/73a045061e69a22b6869.js +0 -1
  593. package/assets/esri/core/workers/chunks/73e000cc3c4da10e9937.js +0 -1
  594. package/assets/esri/core/workers/chunks/75669912cddcb5db52c8.js +0 -1
  595. package/assets/esri/core/workers/chunks/78fbfc03d9b827c3f767.js +0 -1
  596. package/assets/esri/core/workers/chunks/7d0350f459844162d3a7.js +0 -1
  597. package/assets/esri/core/workers/chunks/7e39e9d4d68843b60e4c.js +0 -1
  598. package/assets/esri/core/workers/chunks/823127b23bec07e1f9d0.js +0 -2
  599. package/assets/esri/core/workers/chunks/84eb889b9cce35dac2e5.js +0 -1
  600. package/assets/esri/core/workers/chunks/854fe80272b59fafc2e9.js +0 -1
  601. package/assets/esri/core/workers/chunks/861817be5e050e9522ab.js +0 -1
  602. package/assets/esri/core/workers/chunks/888f6387e795d45a7ad3.js +0 -2
  603. package/assets/esri/core/workers/chunks/891d97d0da6361d63679.js +0 -1
  604. package/assets/esri/core/workers/chunks/8969788c57bcc11bf77b.js +0 -1
  605. package/assets/esri/core/workers/chunks/8d6da6573d07385f4ed5.js +0 -1
  606. package/assets/esri/core/workers/chunks/8ede12f54b215c52cf3c.js +0 -1
  607. package/assets/esri/core/workers/chunks/8fb336c2066113300d0d.js +0 -1
  608. package/assets/esri/core/workers/chunks/8fed6becd107d2ed9bbd.js +0 -1
  609. package/assets/esri/core/workers/chunks/97062996e1e4196cfa7c.js +0 -1
  610. package/assets/esri/core/workers/chunks/97210bcb5e3cf3ac961b.js +0 -1
  611. package/assets/esri/core/workers/chunks/9a235c92f21df2c17aa8.js +0 -1
  612. package/assets/esri/core/workers/chunks/9c819ebdc98ed8b6afcf.js +0 -1
  613. package/assets/esri/core/workers/chunks/9d7ffd83f69d6e639f09.js +0 -1
  614. package/assets/esri/core/workers/chunks/9dfd00972c12a4adc15d.js +0 -1
  615. package/assets/esri/core/workers/chunks/9f1f5fb648302c43ad12.js +0 -1
  616. package/assets/esri/core/workers/chunks/9fab410b9fa668dc498b.js +0 -1
  617. package/assets/esri/core/workers/chunks/a061a17b62686f945e81.js +0 -1
  618. package/assets/esri/core/workers/chunks/a30815a0155a3b8790b4.js +0 -1
  619. package/assets/esri/core/workers/chunks/a43decc8ede8b4910553.js +0 -1
  620. package/assets/esri/core/workers/chunks/a462aa1c7b68efad6906.js +0 -1
  621. package/assets/esri/core/workers/chunks/a4b6fdbc995be03d2afb.js +0 -1
  622. package/assets/esri/core/workers/chunks/a520f83ae0c3c3e78858.js +0 -1
  623. package/assets/esri/core/workers/chunks/a5d9dbb1fef8c4465943.js +0 -1
  624. package/assets/esri/core/workers/chunks/a73e8b80760dc88f926f.js +0 -1
  625. package/assets/esri/core/workers/chunks/a96692514dcaa50340dd.js +0 -1
  626. package/assets/esri/core/workers/chunks/aa7aaeae31ddb259e55e.js +0 -1
  627. package/assets/esri/core/workers/chunks/b014f0b2385dc82dc683.js +0 -2
  628. package/assets/esri/core/workers/chunks/b2120c4c56656be941ae.js +0 -1
  629. package/assets/esri/core/workers/chunks/b3950d5f1f3352521504.js +0 -1
  630. package/assets/esri/core/workers/chunks/b3f0600729227b458a75.js +0 -1
  631. package/assets/esri/core/workers/chunks/b8005b1996f42dee8237.js +0 -1
  632. package/assets/esri/core/workers/chunks/b85c9ceeece1bae67a16.js +0 -1
  633. package/assets/esri/core/workers/chunks/b8a11d32a4847513619b.js +0 -1
  634. package/assets/esri/core/workers/chunks/b8acb6c2538053c01cc6.js +0 -1
  635. package/assets/esri/core/workers/chunks/b8e85b7d5eed6e7c79b5.js +0 -1
  636. package/assets/esri/core/workers/chunks/bbaf1d9835671c0165ca.js +0 -1
  637. package/assets/esri/core/workers/chunks/bbdf27bc34fadbe8e6fe.js +0 -1
  638. package/assets/esri/core/workers/chunks/bc2c7cb99e227ddbd3a6.js +0 -1
  639. package/assets/esri/core/workers/chunks/bc85bb82cfcbc216fa31.js +0 -1
  640. package/assets/esri/core/workers/chunks/bcefdf9753d9d2f6f1be.js +0 -1
  641. package/assets/esri/core/workers/chunks/be42fe0b7ba0e27030b2.js +0 -1
  642. package/assets/esri/core/workers/chunks/be4d13088a557b7de4b1.js +0 -1
  643. package/assets/esri/core/workers/chunks/be61ea8e1883b915bbb1.js +0 -1
  644. package/assets/esri/core/workers/chunks/bf758d57091fa534c1f8.js +0 -1
  645. package/assets/esri/core/workers/chunks/bfd516c37fb717e14d71.js +0 -1
  646. package/assets/esri/core/workers/chunks/c22945637a40355fbe61.js +0 -1
  647. package/assets/esri/core/workers/chunks/c25a58d9f94aaa96957d.js +0 -1
  648. package/assets/esri/core/workers/chunks/c6a43f748dbf8bac4bb5.js +0 -1
  649. package/assets/esri/core/workers/chunks/c79827f879d1d58d3f1b.js +0 -1
  650. package/assets/esri/core/workers/chunks/c7ca47f5d4b2f3885239.js +0 -1
  651. package/assets/esri/core/workers/chunks/cb903ccbce87172a0757.js +0 -1
  652. package/assets/esri/core/workers/chunks/cda2e445eb2ac269abdf.js +0 -1
  653. package/assets/esri/core/workers/chunks/d024278a1c2aa7d22be3.js +0 -1
  654. package/assets/esri/core/workers/chunks/d264aed5dbe09e34040f.js +0 -1
  655. package/assets/esri/core/workers/chunks/d315098b038a96084ff5.js +0 -1
  656. package/assets/esri/core/workers/chunks/d4e55eb75fa4d3ac1e84.js +0 -1
  657. package/assets/esri/core/workers/chunks/d5c7ebfd5c2ca635a7a8.js +0 -1
  658. package/assets/esri/core/workers/chunks/d635f97b7b82a37482d6.js +0 -1
  659. package/assets/esri/core/workers/chunks/d7b92bd9198dd3b27eb5.js +0 -1
  660. package/assets/esri/core/workers/chunks/d816d1a4220d827faf63.js +0 -1
  661. package/assets/esri/core/workers/chunks/d82b543c96f09ded3bf9.js +0 -2
  662. package/assets/esri/core/workers/chunks/d8dde0d1759e009b8373.js +0 -1
  663. package/assets/esri/core/workers/chunks/da0a61f73d45ea9e71fc.js +0 -1
  664. package/assets/esri/core/workers/chunks/e305ced975d885c28e7e.js +0 -1
  665. package/assets/esri/core/workers/chunks/e3a73d9acebccd3ba49b.js +0 -1
  666. package/assets/esri/core/workers/chunks/e3c60b7df2740e600066.js +0 -1
  667. package/assets/esri/core/workers/chunks/e5801b0f3893d4d4f5b0.js +0 -1
  668. package/assets/esri/core/workers/chunks/e59f5dc8c85bcea66e98.js +0 -1
  669. package/assets/esri/core/workers/chunks/e611cd03eee4fae7c413.js +0 -1
  670. package/assets/esri/core/workers/chunks/e62d08f5488a74cbda82.js +0 -1
  671. package/assets/esri/core/workers/chunks/e64a92b6f4075616f40f.js +0 -1
  672. package/assets/esri/core/workers/chunks/e67bdd8bf38ebe89a344.js +0 -1
  673. package/assets/esri/core/workers/chunks/e78b442417f6a903b9b1.js +0 -1
  674. package/assets/esri/core/workers/chunks/e9dd60d0220036545ebb.js +0 -1
  675. package/assets/esri/core/workers/chunks/ea6d3b7c7d720aa7bc94.js +0 -1
  676. package/assets/esri/core/workers/chunks/edc2e87968c958bc852b.js +0 -1
  677. package/assets/esri/core/workers/chunks/ef0fe4e1a9e960a74c60.js +0 -1
  678. package/assets/esri/core/workers/chunks/ef9d74f8d5a502fda809.js +0 -1
  679. package/assets/esri/core/workers/chunks/efbbcf467b2a27a92b85.js +0 -1
  680. package/assets/esri/core/workers/chunks/f09446b9ff937a84d6d3.js +0 -1
  681. package/assets/esri/core/workers/chunks/f0bc5e8e44d53b73d431.js +0 -1
  682. package/assets/esri/core/workers/chunks/f201edf9b68717a6106d.js +0 -1
  683. package/assets/esri/core/workers/chunks/f59f1db572be1f19887f.js +0 -1
  684. package/assets/esri/core/workers/chunks/f9cde38cb56c547e87e5.js +0 -1
  685. package/assets/esri/core/workers/chunks/fb9a889ec9fd23739a14.js +0 -1
  686. package/assets/esri/core/workers/chunks/fc64ae69581e4c38fa8a.js +0 -1
  687. package/assets/esri/core/workers/chunks/fd6bbe47773bbd9f7dd9.js +0 -1
  688. package/assets/esri/core/workers/chunks/fe1b67ab7748a3aef231.js +0 -1
  689. package/assets/esri/core/workers/chunks/fe3b42eadcdd9ba54f05.js +0 -1
  690. package/chunks/HUDCompositing.glsl.js +0 -2
  691. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +0 -5
  692. package/views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js +0 -8
  693. package/views/3d/webgl-engine/effects/fboFormatUtils.js +0 -2
  694. package/views/3d/webgl-engine/shaders/HUDCompositing.glsl.js +0 -2
  695. package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +0 -2
  696. /package/assets/esri/core/workers/chunks/{0dd12d6af0cf7707109c.js.LICENSE.txt → 7bacdd65a6cc4d284e0a.js.LICENSE.txt} +0 -0
  697. /package/assets/esri/core/workers/chunks/{823127b23bec07e1f9d0.js.LICENSE.txt → 85edbb072a2ce6c1bb30.js.LICENSE.txt} +0 -0
  698. /package/assets/esri/core/workers/chunks/{888f6387e795d45a7ad3.js.LICENSE.txt → d4a9eb4470cc6a1f67fc.js.LICENSE.txt} +0 -0
  699. /package/assets/esri/core/workers/chunks/{b014f0b2385dc82dc683.js.LICENSE.txt → f09a41ad239d467d9438.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7033],{69052(e,t,r){r.d(t,{hr:()=>n,ie:()=>l,uC:()=>a});var i=r(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return o(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+s(this.range,e-t,r)}minimalMonotonic(e,t,r){return o(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function o(e,t,r,i,n=0,o=!1){return(i-=n)<t?i+=s(e,t-i):i>r&&(i-=s(e,i-r)),o&&i===r&&(i=t),i+n}function s(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new n(0,2*Math.PI),l=(new n(-Math.PI,Math.PI),new n(0,360))},46140(e,t,r){r.d(t,{A:()=>n});var i=r(49186);class n{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new n(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new i.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new i.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(o,10);return new n(a,l,t)}}},6797(e,t,r){r.d(t,{Ui:()=>d});var i=r(69622),n=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function l(e){return e instanceof n.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=l(e),n=l(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=n.filter(e=>!i.includes(e)),d=i.filter(e=>!n.includes(e)),y=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(o,d).sort(),m=p(e);if(m&&s.has(m)&&y.length)return{type:"complete",oldValue:e,newValue:t};let h;const f=a(e)&&a(t);for(const i of y){const n=u(e,i),o=u(t,i);let s;if((f||"function"!=typeof n&&"function"!=typeof o)&&n!==o&&(null!=n||null!=o)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(n,o);else if(n instanceof Date&&o instanceof Date){if(n.getTime()===o.getTime())continue;s={type:"complete",oldValue:n,newValue:o}}else s="object"==typeof n&&"object"==typeof o&&p(n)===p(o)?c(n,o):{type:"complete",oldValue:n,newValue:o};null!=s&&(null!=h?h.diff[i]=s:h={type:"partial",diff:{[i]:s}})}}return h}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},46130(e,t,r){r.d(t,{v:()=>n});var i=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,i.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},9093(e,t,r){function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(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]]}r.d(t,{o8:()=>n,vt:()=>i,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:n,create:i,fromValues:function(e,t,r,i,n,o,s,a,l,u,p,c,d,y,m,h){return[e,t,r,i,n,o,s,a,l,u,p,c,d,y,m,h]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,r){r.d(t,{$A:()=>A,Bw:()=>o,C:()=>s,Cc:()=>I,DI:()=>T,Il:()=>$,Io:()=>b,Ln:()=>g,Om:()=>S,Qr:()=>c,Re:()=>u,S8:()=>M,T9:()=>h,WQ:()=>l,Z0:()=>O,_S:()=>y,aI:()=>F,ei:()=>j,fw:()=>Z,g7:()=>D,gL:()=>N,hG:()=>v,hZ:()=>a,hs:()=>f,jb:()=>_,jk:()=>m,lo:()=>k,lw:()=>p,m3:()=>w,oW:()=>P,t2:()=>R,tn:()=>d,uE:()=>U,xg:()=>J,ze:()=>C});var i=r(51850),n=r(34304);function o(e){const t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,i){return e[0]=t,e[1]=r,e[2]=i,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function p(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function y(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function h(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function f(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function g(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function b(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function v(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return r*r+i*i+n*n}function w(e){const t=e[0],r=e[1],i=e[2];return t*t+r*r+i*i}function C(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function T(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function M(e,t){const r=t[0],i=t[1],n=t[2];let o=r*r+i*i+n*n;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function S(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],a=r[1],l=r[2];return e[0]=n*l-o*a,e[1]=o*s-i*l,e[2]=i*a-n*s,e}function I(e,t,r,i){const n=t[0],o=t[1],s=t[2];return e[0]=n+i*(r[0]-n),e[1]=o+i*(r[1]-o),e[2]=s+i*(r[2]-s),e}function O(e,t,r){const i=t[0],n=t[1],o=t[2];return e[0]=r[0]*i+r[4]*n+r[8]*o+r[12],e[1]=r[1]*i+r[5]*n+r[9]*o+r[13],e[2]=r[2]*i+r[6]*n+r[10]*o+r[14],e}function j(e,t,r){const i=t[0],n=t[1],o=t[2];return e[0]=i*r[0]+n*r[3]+o*r[6],e[1]=i*r[1]+n*r[4]+o*r[7],e[2]=i*r[2]+n*r[5]+o*r[8],e}function N(e,t,r){return Z(e,t,r[0],r[1],r[2],r[3])}function Z(e,t,r,i,n,o){const s=t[0],a=t[1],l=t[2],u=i*l-n*a,p=n*s-r*l,c=r*a-i*s,d=i*c-n*p,y=n*u-r*c,m=r*p-i*u,h=2*o;return e[0]=s+u*h+2*d,e[1]=a+p*h+2*y,e[2]=l+c*h+2*m,e}function D(e,t){M(x,e),M(B,t);const r=S(x,B);return r>1?0:r<-1?Math.PI:Math.acos(r)}const x=(0,i.vt)(),B=(0,i.vt)();function R(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function F(e,t){if(e===t)return!0;const r=e[0],i=e[1],o=e[2],s=t[0],a=t[1],l=t[2],u=(0,n.FD)();return Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function P(e,t,r){const i=r[0]-t[0],n=r[1]-t[1],o=r[2]-t[2];let s=i*i+n*n+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=i*s,e[1]=n*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const _=u,E=p,L=c,J=b,k=v,$=o,U=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:D,bezier:function(e,t,r,i,n,o){const s=1-o,a=s*s,l=o*o,u=a*s,p=3*o*a,c=3*l*s,d=l*o;return e[0]=t[0]*u+r[0]*p+i[0]*c+n[0]*d,e[1]=t[1]*u+r[1]*p+i[1]*c+n[1]*d,e[2]=t[2]*u+r[2]*p+i[2]*c+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:s,cross:A,crossAndNormalize:function(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],a=r[1],l=r[2],u=n*l-o*a,p=o*s-i*l,c=i*a-n*s,d=Math.sqrt(u*u+p*p+c*c);return e[0]=u/d,e[1]=p/d,e[2]=c/d,e},direction:P,dist:J,distance:b,div:L,divide:c,dot:S,equals:F,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,r,i,n,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),p=s*(3-2*o);return e[0]=t[0]*a+r[0]*l+i[0]*u+n[0]*p,e[1]=t[1]*a+r[1]*l+i[1]*u+n[1]*p,e[2]=t[2]*a+r[2]*l+i[2]*u+n[2]*p,e},inverse:T,len:$,length:o,lerp:I,max:h,min:m,mul:E,multiply:p,negate:C,normalize:M,random:function(e,t=1){const r=n.Ov,i=2*r()*Math.PI,o=2*r()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(i)*s,e[1]=Math.sin(i)*s,e[2]=o*t,e},rotateX:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[0],o[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),o[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateY:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),o[1]=n[1],o[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateZ:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),o[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),o[2]=n[2],e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[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:f,scaleAndAdd:g,set:a,sign:y,sqrDist:k,sqrLen:U,squaredDistance:v,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:_,subtract:u,transformMat3:j,transformMat4:O,transformQuat:N,transformQuatValues:Z},Symbol.toStringTag,{value:"Module"}))},76553(e,t,r){function i(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>i})},159(e,t,r){r.d(t,{A:()=>u});var i,n=r(5482),o=r(69540),s=r(25482),a=r(91429),l=r(99157);let u=i=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,n.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>l});var i,n=r(5482),o=r(69540),s=r(25482),a=r(91429);let l=i=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,n.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],l.prototype,"isInverse",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=i=(0,n.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>n});var i=r(49208);function n(e,t,r,n,o,s,a=Math.floor(e.length/3)){const l=(0,i.jd)(t,o);if(null==l)return!1;if(l===i.pO){if(e===n&&r===s)return!0;const t=r+3*a;for(let i=r,o=s;i<t;i++,o++)n[o]=e[i]??0;return!0}const u=r+3*a;for(let t=r,i=s;t<u;t+=3,i+=3)l(e,t,n,i);return!0}},49208(e,t,r){r.d(t,{Tp:()=>c,jd:()=>p,pO:()=>y,w5:()=>u});var i=r(34727),n=r(86211),o=r(73941),s=r(79258),a=r(34403),l=r(21325);const u={2:{5:y,7:null,9:null,10:y,1:C,6:null,8:null,0:null,3:h,11:f,2:y,4:I},5:{5:y,7:null,9:null,10:y,1:C,6:null,8:null,0:null,3:h,11:f,2:y,4:I},7:{5:null,7:y,9:null,10:y,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,t,r,i){const n=e[t]/x,o=D-2*Math.atan(Math.exp(-e[t+1]/x)),s=x+(e[t+2]??0),a=Math.cos(o)*s;r[i]=Math.cos(n)*a,r[i+1]=Math.sin(n)*a,r[i+2]=Math.sin(o)*s},6:null,8:null,0:null,3:y,11:function(e,t,r,i){m(e,t,r,i),f(r,i,r,i)},2:m,4:function(e,t,r,i){m(e,t,r,i),I(r,i,r,i)}},4:{5:O,7:null,9:null,10:O,1:function(e,t,r,i){O(e,t,r,i),C(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){O(e,t,r,i),h(r,i,r,i)},11:function(e,t,r,i){O(e,t,r,i),f(r,i,r,i)},2:O,4:y},1:{5:A,7:null,9:null,10:A,1:y,6:null,8:null,0:null,3:function(e,t,r,i){A(e,t,r,i),h(r,i,r,i)},11:function(e,t,r,i){A(e,t,r,i),f(r,i,r,i)},2:A,4:function(e,t,r,i){A(e,t,r,i),I(r,i,r,i)}},6:{5:null,7:S,9:null,10:S,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:M,10:M,1:null,6:null,8:y,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:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:C,6:w,8:v,0:null,3:h,11:f,2:y,4:I},11:{5:g,7:null,9:null,10:g,1:function(e,t,r,i){g(e,t,r,i),C(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){g(e,t,r,i),h(r,i,r,i)},11:y,2:g,4:function(e,t,r,i){g(e,t,r,i),I(r,i,r,i)}}};function p(e,t){return c(e,t)?.projector}function c(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const r=d(e,j.source),i=d(t,j.dest);return 0===r&&0===i?(0,l.aI)(e,t)?j.projector=y:j.projector=null:j.projector=u[r][i],j}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,n.GA)(e,1)),(0,o.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===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,o.q8)(e)?t.spatialReferenceId=7:(0,o.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function y(e,t,r,i){e!==r&&(r[i++]=e[t++],r[i++]=e[t++],r[i]=e[t]??0)}function m(e,t,r,i){r[i]=Z*(e[t]/x),r[i+1]=Z*(D-2*Math.atan(Math.exp(-e[t+1]/x))),r[i+2]=e[t+2]??0}function h(e,t,r,n){!function(e,t,r,n,o){const s=.4999999*Math.PI,a=(0,i.qE)(N*e[t+1],-s,s),l=Math.sin(a);r[n++]=N*e[t]*o.radius,r[n++]=o.halfSemiMajorAxis*Math.log((1+l)/(1-l)),r[n]=e[t+2]??0}(e,t,r,n,s.$O)}function f(e,t,r,i){r[i]=e[t]*B,r[i+1]=e[t+1]*B,r[i+2]=e[t+2]??0}function g(e,t,r,i){r[i]=e[t]*R,r[i+1]=e[t+1]*R,r[i+2]=e[t+2]??0}function b(e,t,r,i,n){const o=n+(e[t+2]??0),s=N*e[t],a=N*e[t+1],l=Math.cos(a)*o;r[i]=Math.cos(s)*l,r[i+1]=Math.sin(s)*l,r[i+2]=Math.sin(a)*o}function v(e,t,r,i){b(e,t,r,i,s.Sw.radius)}function w(e,t,r,i){b(e,t,r,i,s.sH.radius)}function C(e,t,r,i){b(e,t,r,i,s.$O.radius)}function T(e,t,r,n,o){const s=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(s*s+a*a+l*l),p=(0,i.YN)(l/(0===u?1:u)),c=Math.atan2(a,s);r[n++]=Z*c,r[n++]=Z*p,r[n]=u-o}function M(e,t,r,i){T(e,t,r,i,s.Sw.radius)}function S(e,t,r,i){T(e,t,r,i,s.sH.radius)}function A(e,t,r,i){T(e,t,r,i,s.$O.radius)}function I(e,t,r,i){!function(e,t,r,i,n){const o=N*e[t],s=N*e[t+1],a=e[t+2]??0,l=Math.sin(s),u=Math.cos(s),p=n.radius/Math.sqrt(1-n.eccentricitySquared*l*l);r[i++]=(p+a)*u*Math.cos(o),r[i++]=(p+a)*u*Math.sin(o),r[i++]=(p*(1-n.eccentricitySquared)+a)*l}(e,t,r,i,s.$O)}function O(e,t,r,i){const n=a.TP,o=e[t],l=e[t+1],u=e[t+2]??0;let p,c,d,y,m,h,f,g,b,v,w,C,T,M,S,A,I,O,j,N,D;p=Math.abs(u),c=o*o+l*l,d=Math.sqrt(c),y=c+u*u,m=Math.sqrt(y),N=Math.atan2(l,o),h=u*u/y,f=c/y,M=n.a2/m,S=n.a3-n.a4/m,f>.3?(g=p/m*(1+f*(n.a1+M+h*S)/m),j=Math.asin(g),v=g*g,b=Math.sqrt(1-v)):(b=d/m*(1-h*(n.a5-M-f*S)/m),j=Math.acos(b),v=1-b*b,g=Math.sqrt(v)),w=1-s.$O.eccentricitySquared*v,C=s.$O.radius/Math.sqrt(w),T=n.a6*C,M=d-C*b,S=p-T*g,I=b*M+g*S,A=b*S-g*M,O=A/(T/w+I),j+=O,D=I+A*O/2,u<0&&(j=-j),r[i++]=Z*N,r[i++]=Z*j,r[i]=D}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},N=(0,i.kU)(1),Z=(0,i.KJ)(1),D=.5*Math.PI,x=s.$O.radius,B=x*Math.PI/180,R=180/(x*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>V,initializeProjection:()=>z,isEqualBaseGCS:()=>q,isLoaded:()=>x,isLoadedOrLoad:()=>B,isLoadedOrLoadFor:()=>R,load:()=>P,project:()=>_,projectAsync:()=>G,projectExtent:()=>ne,projectMany:()=>E,projectMultipoint:()=>X,projectOrLoad:()=>J,projectOrLoadMany:()=>k,projectPoint:()=>Y,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>K,requiresLoad:()=>F,test:()=>W,tryProject:()=>L,unload:()=>U});var i=r(49186),n=r(17676),o=r(62788),s=r(95488),a=r(51850),l=r(21276),u=r(73941),p=r(5443),c=r(91075),d=r(48526),y=r(86738),m=r(39829),h=r(82799),f=r(16930),g=r(98764),b=r(159),v=r(9762),w=r(49208);function C(e,t,r,i,n,o){return T[0]=e,T[1]=t,T[2]=r,(0,v.projectBuffer)(T,i,0,n,o,0)}const T=(0,a.vt)();var M=r(60408),S=r(21325),A=r(52006);let I=null,O=null,j=null,N=null,Z={};const D=new s.I;function x(){return!!(O?.isLoaded()&&j?.isLoaded()&&N?.isLoaded())}function B(){return!!x()||((0,o.gc)(D),P(),!1)}function R(e,t){return!e||!t||V(e,t)||B()}function F(e,t){return!V(e,t)&&!x()}async function P(e){null==I&&(I=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(O=e,O.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(j=e,j.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(N=e,N.load()))])),await I,(0,n.Te)(e),D.notify()}function _(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),E(e,e[0].spatialReference,t,r)):((0,l.f)(e),E([e],e.spatialReference,t,r)[0])}function E(e,t,r,i){if(null==t||null==r)return e;if(V(t,r,i))return e.map(e=>K(e,t,r));if(null==i?.geographicTransformation&&(0,u.jA)(t))return E(e.map(e=>K(e,t,f.A.WGS84)),f.A.WGS84,r,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(r))return E(e,t,f.A.WGS84).map(e=>K(e,f.A.WGS84,r));if(!x())throw new $;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:N.getTransformation(t,r,i.areaOfInterestExtent)||new b.A};else if(!i?.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,r);let n=Z[e];n||(n=N.getTransformation(t,r)||new b.A,Z[e]=n),i={geographicTransformation:n,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof c.A?O.executeMany(e,r,i):j.executeMany(e,r,i)}function L(e,t,r){try{return _(e,t,r)}catch(e){return null}}function J(e,t){const r=k([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function k(e,t,r){if(!x())for(const r of e)if(null!=r&&!(0,S.aI)(r.spatialReference,t)&&(0,S.fn)(r.spatialReference)&&(0,S.fn)(t)&&!V(r.spatialReference,t))return(0,o.gc)(D),{pending:P(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,S.aI)(e.spatialReference,t)?e:(0,S.fn)(e.spatialReference)&&(0,S.fn)(t)?_(e,t,r):null)}}class $ extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){I=null,O=null,j=null,N=null,Z={}}const W={get loadPromise(){return I}};async function G(e,t,r){if((0,n.Te)(r),!e)return e;const i=k(Array.isArray(e)?e:[e],t,r);if(i.pending)return await i.pending,(0,n.Te)(r),G(e,t,r);const o=i.geometries??[];return Array.isArray(e)?o:o[0]}function V(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,S.aI)(e,t)||(0,S.fn)(e)&&(0,S.fn)(t)&&!!(0,w.jd)(e,t))}function q(e,t){if((0,S.aI)(e,t))return!0;if(!(0,S.fn)(e)||!(0,S.fn)(t))return!1;const r=(0,S.oT)(e)||(0,S.K8)(e)||(0,S.x1)(e),i=(0,S.oT)(t)||(0,S.K8)(t)||(0,S.x1)(t);return r&&i}async function z(e,t,r,i){if(x())return(0,n.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:r,options:n}of e)if(t&&r&&!V(t,r,n))return P(i)}else if(e&&t&&!V(e,t,r))return P(i);return(0,n.NO)(i)}function K(e,t,r){return e?(0,M.fT)(e)?H(e,t,new y.A,r,0):(0,M.ZC)(e)?oe(e,t,new p.A,r,0):(0,M.Bi)(e)?ie(e,t,new m.A,r,0):(0,M.Rg)(e)?te(e,t,new h.A,r,0):(0,M.U9)(e)?Q(e,t,new d.A,r,0):null:null}function Y(e,t,r=t.spatialReference,i=0){return null!=r&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,r,i)}function H(e,t,r,i,n){ue[0]=e.x,ue[1]=e.y;const o=e.z;return ue[2]=void 0!==o?o:n,(0,v.projectBuffer)(ue,t,0,ue,i,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=i,void 0!==o||(0,u.xP)(i)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function X(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=Q(e,e.spatialReference,t,r,i)}function Q(e,t,r,i,n){const{points:o,hasZ:s,hasM:a}=e,l=[],u=o.length,p=[];for(const e of o)p.push(e[0],e[1],s?e[2]:n);if(!(0,v.projectBuffer)(p,t,0,p,i,0,u))return null;const c=le(s,i);for(let e=0;e<u;++e){const t=3*e,r=p[t],i=p[t+1];c&&a?l.push([r,i,p[t+2],o[e][3]]):c?l.push([r,i,p[t+2]]):a?l.push([r,i,o[e][2]]):l.push([r,i])}return r.points=l,r.spatialReference=i,r.hasZ=s,r.hasM=a,r}function ee(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,i)}function te(e,t,r,i,n){const{curvePaths:o,paths:s,hasZ:a,hasM:l}=e;if(!(o?ae(o,a??!1,l??!1,t,r.curvePaths=[],i,n):se(s,a??!1,l??!1,t,r.paths,i,n)))return null;const u=le(a,i);return r.spatialReference=i,r.hasZ=u,r.hasM=l,r}function re(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=ie(e,e.spatialReference,t,r,i)}function ie(e,t,r,i,n){const{curveRings:o,rings:s,hasZ:a,hasM:l}=e;return(o?ae(o,a??!1,l??!1,t,r.curveRings=[],i,n):se(s,a??!1,l??!1,t,r.rings,i,n))?(r.spatialReference=i,r.hasZ=le(a,i),r.hasM=l,r):null}function ne(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=oe(e,e.spatialReference,t,r,i)}function oe(e,t,r,i,n){const{xmin:o,ymin:s,xmax:a,ymax:l,hasZ:u,hasM:p}=e;if(!C(o,s,u?e.zmin:n,t,ue,i))return null;const c=le(u,i);return r.xmin=ue[0],r.ymin=ue[1],c&&(r.zmin=ue[2]),C(a,l,u?e.zmax:n,t,ue,i)?(r.xmax=ue[0],r.ymax=ue[1],c&&(r.zmax=ue[2]),p&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=i,r):null}function se(e,t,r,i,n,o,s=0){const a=new Array;for(const r of e)for(const e of r)a.push(e[0],e[1],t?e[2]:s);if(!(0,v.projectBuffer)(a,i,0,a,o,0))return!1;let l=0;n.length=0;const u=t?3:2,p=le(t,o);for(const t of e){const e=new Array;for(const i of t){const t=a.slice(l,l+=3);p||t.pop(),r&&t.push(i[u]),e.push(t)}n.push(e)}return!0}function ae(e,t,r,i,n,o,s=0){const a=new Array;for(const r of e)for(const e of r){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[r,i]=e.c;a.push(r[0],r[1],t?r[2]:s,i[0],i[1],s);continue}if((0,A.n1)(e)){const[r,i,n]=e.b;a.push(r[0],r[1],t?r[2]:s,i[0],i[1],s,n[0],n[1],s);continue}const r=e;a.push(r[0],r[1],t?r[2]:s)}if(!(0,v.projectBuffer)(a,i,0,a,o,0))return!1;let l=0;n.length=0;const u=t?3:2,p=le(t,o);for(const t of e){const e=new Array;for(const i of t){const t=a.slice(l,l+=3);if(p||t.pop(),r&&t.push((0,A.yP)(i)[u]),(0,A.FG)(i))return!1;if((0,A.aO)(i)){const r=a[l++],i=a[l++];++l,e.push({c:[t,[r,i]]});continue}if((0,A.n1)(i)){const r=a[l++],i=a[l++];++l;const n=a[l++],o=a[l++];++l,e.push({b:[t,[r,i],[n,o]]});continue}e.push(t)}n.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,S.aI)(t,g.Y0)}const ue=(0,a.vt)()},98764(e,t,r){r.d(t,{GD:()=>s,Y0:()=>u,lO:()=>p});var i=r(73941),n=r(16930),o=r(21325);const s=new n.A(i.fv),a=new n.A(i.FY),l=new n.A(i.LJ),u=new n.A(i.Ro);function p(e){const t=c.get(e);if(t)return t;let r=s;if(e)if(e===a)r=a;else if(e===l)r=l;else{const t=e.wkid,i=e.latestWkid;if(null!=t||null!=i)(0,o.tl)(t)||(0,o.tl)(i)?r=a:((0,o.ZL)(t)||(0,o.ZL)(i))&&(r=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?r=a:e===y&&(r=l)}}}return c.set(e,r),r}const c=new Map,d=a.wkt.toUpperCase(),y=l.wkt.toUpperCase()},4197(e,t,r){r.d(t,{Vj:()=>l,cj:()=>a,jh:()=>o,l5:()=>s});var i=r(34275),n=r(9093);function o(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function s(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e){return[...e]}function l(e){const t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>v,DC:()=>c,Ej:()=>y,Ie:()=>g,Jt:()=>b,Ne:()=>m,RF:()=>p,aI:()=>C,fA:()=>s,gE:()=>l,hZ:()=>f,iT:()=>d,is:()=>w,qv:()=>T,vI:()=>h,vY:()=>a,v_:()=>M,vt:()=>o,w1:()=>u}),r(35522);var i=r(5443),n=(r(19419),r(4197));function o(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,r,i,n,s,a=o()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=n,a[5]=s,a}function a(e,t=o()){return function(e,t,r,i=o()){return f(i,T),function(e,t,r=0,i=t.length/3){let n=e[0],o=e[1],s=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function l(e,t=(0,n.jh)(24)){const[r,i,o,s,a,l]=e;return t[0]=r,t[1]=i,t[2]=o,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=a,t[8]=o,t[9]=r,t[10]=a,t[11]=l,t[12]=s,t[13]=i,t[14]=o,t[15]=s,t[16]=i,t[17]=l,t[18]=s,t[19]=a,t[20]=o,t[21]=s,t[22]=a,t[23]=l,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{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 p(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 c(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 d(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 y(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 m(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function h(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function f(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 g(e){return e?f(e,T):o(T)}function b(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 v(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function C(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const T=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];o()},34403(e,t,r){r.d(t,{TP:()=>s});var i=r(79258);Math.PI;const n=i.$O.radius,o=i.$O.eccentricitySquared,s={a1:n*o,a2:n*o*n*o,a3:n*o*o/2,a4:n*o*n*o*2.5,a5:n*o+n*o*o/2,a6:1-o};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius},17136(e,t,r){r.d(t,{Y_:()=>j,O7:()=>I,el:()=>A});var i=r(92602),n=r(69052),o=r(49186),s=r(53966),a=r(39829),l=r(82799),u=r(16930),p=r(80754),c=r(21325),d=r(28735),y=r(11254),m=r(60408),h=r(65864),f=r(2272),g=r(84952),b=r(92300);const v=()=>s.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function C(e){return"polyline"===e[0].type}function T(e,t,r){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw v().error(e),new o.A("internal:geometry",e)}const r=(0,p.r8)(e),i=[];for(const e of r){const r=[];i.push(r),r.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const n=e[i][0],o=e[i][1],s=e[i+1][0],a=e[i+1][1],l=Math.sqrt((s-n)*(s-n)+(a-o)*(a-o)),u=(a-o)/l,p=(s-n)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const i=e*t,s=p*i+n,a=u*i+o;r.push([s,a])}const e=(l+Math.floor(c-1)*t)/2,i=p*e+n,s=u*e+o;r.push([i,s])}r.push([s,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:i,spatialReference:e.spatialReference}):new l.A({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.ci)(t,!0)}return r&&(e=(0,p.kS)(e,r)),e}function M(e,t,r){if(Array.isArray(e)){const i=e[0];if(i>t){const r=(0,p.kd)(i,t);e[0]=i+r*(-2*t)}else if(i<r){const t=(0,p.kd)(i,r);e[0]=i+t*(-2*r)}}else{const i=e.x;if(i>t){const r=(0,p.kd)(i,t);e=e.clone().offset(r*(-2*t),0)}else if(i<r){const t=(0,p.kd)(i,r);e=e.clone().offset(t*(-2*r),0)}}return e}function S(e,t){let r=-1;for(let i=0;i<t.cutIndexes.length;i++){const n=t.cutIndexes[i],o=t.geometries[i],s=(0,p.r8)(o);for(let e=0;e<s.length;e++){const t=s[e];t.some(r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const i=t[e][0];r=i>r?i:r}r=Number(r.toFixed(9));const i=-360*(0,p.kd)(r,180);for(let r=0;r<t.length;r++){const t=o.getPoint(e,r);o.setPoint(e,r,t.clone().offset(i,0))}return!0}})}if(n===r){if(w(e))for(const t of(0,p.r8)(o))e[n]=e[n].addRing(t);else if(C(e))for(const t of(0,p.r8)(o))e[n]=e[n].addPath(t)}else r=n,e[n]=o}return e}async function A(e,t,r){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&v().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??i.A.geometryServiceUrl;let o,s,u,w,C,I,O,j,N=0;const Z=[],D=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,s=(0,c.Vp)(o),u=o.isWebMercator,I=u?102100:4326,w=p.j7[I].maxX,C=p.j7[I].minX,O=p.j7[I].plus180Line,j=p.j7[I].minus180Line),s)if("mesh"===t.type)D.push(t);else if("point"===t.type)D.push(M(t.clone(),w,C));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>M(e,w,C)),D.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,s);D.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,r=(0,p.kd)(e.xmin,C)*(2*w);let i=0===r?t.clone():(0,p.kS)(t.clone(),r);e.offset(r,0);let{xmin:n,xmax:o}=e;n=Number(n.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(O)&&o!==w?(N=o>N?o:N,i=T(i,u),Z.push(i),D.push("cut")):e.intersects(j)&&n!==C?(N=o*(2*w)>N?o*(2*w):N,i=T(i,u,360),Z.push(i),D.push("cut")):D.push(i)}else D.push(t.clone());else D.push(t);else D.push(t);let x=(0,p.kd)(N,w),B=-90;const R=x,F=new l.A;for(;x>0;){const e=360*x-180;F.addPath([[e,B],[e,-1*B]]),B*=-1,x--}if(Z.length>0&&R>0){const t=S(Z,await async function(e,t,r,i){const n=(0,f.Dl)(e),o=t[0].spatialReference,s={...i,responseType:"json",query:{...n.query,f:"json",sr:(0,c.YX)(o),target:JSON.stringify({geometryType:(0,m.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,y.A)(n.path+"/cut",s),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,h.rS)(e);return t.spatialReference=o,t})}}(n,Z,F,r)),i=[],o=[];for(let r=0;r<D.length;r++){const n=D[r];if("cut"!==n)o.push(n);else{const n=t.shift(),s=e[r];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&n.rings.length>=s.rings.length?(i.push(n),o.push("simplify")):o.push(u?(0,d.Gh)(n):n)}}if(!i.length)return o;const s=await async function(e,t,r){const i="string"==typeof e?(0,g.An)(e):e,n=t[0].spatialReference,o=(0,m.$B)(t[0]),s={...r,query:{...i.query,f:"json",sr:(0,c.YX)(n),geometries:JSON.stringify((0,b.X)(t))}},{data:a}=await(0,y.A)(i.path+"/simplify",s);return(0,b.V)(a.geometries,o,n)}(n,i,r),a=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?a.push(t):a.push(u?(0,d.Gh)(s.shift()):s.shift())}return a}const P=[];for(let e=0;e<D.length;e++){const t=D[e];if("cut"!==t)P.push(t);else{const e=Z.shift();P.push(!0===u?(0,d.Gh)(e):e)}}return P}function I(e,t,r){const i=(0,c.Vp)(r);if(null==i)return e;const[n,o]=i.valid,s=2*o;let a=0,l=0;t>o?a=Math.ceil(Math.abs(t-o)/s):t<n&&(a=-Math.ceil(Math.abs(t-n)/s)),e>o?l=Math.ceil(Math.abs(e-o)/s):e<n&&(l=-Math.ceil(Math.abs(e-n)/s));let u=e+(a-l)*s;const p=u-t;return p>o?u-=s:p<n&&(u+=s),u}function O(e){const t=(0,c.Vp)(e);if(null==t)return null;const[r,i]=t.valid;return new n.hr(r,i)}const j=O(u.A.WGS84);O(u.A.WebMercator)},80754(e,t,r){r.d(t,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>u});var i=r(82799),n=r(16930),o=r(60408);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=u(e);for(const e of r)for(const r of e)r[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},50498(e,t,r){r.d(t,{Ye:()=>c,gy:()=>p,iI:()=>y,yR:()=>d});var i=r(66552),n=r(5443),o=r(91075),s=r(48526),a=r(86738),l=r(39829),u=r(82799);const p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:o.A,key:"type",typeMap:{extent:n.A,multipoint:s.A,point:a.A,polyline:u.A,polygon:l.A}},y=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},34507(e,t,r){r.r(t),r.d(t,{default:()=>Ft});var i=r(5482),n=r(92602),o=r(52106),s=r(37838),a=r(4576),l=r(7762),u=r(49186),p=r(53966),c=r(25728),d=r(93637),y=r(17676),m=r(36708),h=r(86211),f=r(84952),g=r(91429),b=r(46130),v=r(5443),w=r(48526),C=r(91218),T=r(16930),M=r(21325),S=r(4146),A=r(63074),I=r(34287),O=r(8303),j=r(25036),N=r(60694),Z=r(25482),D=r(53930),x=r(33910);let B=class extends Z.o{constructor(e){super(e),this.break=new D.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}}),this.first=new D.A({color:[0,255,0],size:20,outline:{color:[255,255,255],width:4}}),this.unlocated=new D.A({color:[255,0,0],size:12,outline:{color:[255,255,255],width:3}}),this.last=new D.A({color:[255,0,0],size:20,outline:{color:[255,255,255],width:4}}),this.middle=new D.A({color:[51,51,51],size:12,outline:{color:[0,122,194],width:3}}),this.waypoint=new D.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}})}};(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"break",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"first",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"unlocated",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"last",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"middle",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"waypoint",void 0),B=(0,i.Cg)([(0,g.$K)("esri.layers.support.RouteStopSymbols")],B);var R=r(94985),F=r(31593);let P=class extends Z.o{constructor(e){super(e),this.directionLines=new F.A({color:[0,122,194],width:6}),this.directionPoints=new D.A({color:[255,255,255],size:6,outline:{color:[0,122,194],width:2}}),this.pointBarriers=new D.A({style:"x",size:10,outline:{color:[255,0,0],width:3}}),this.polygonBarriers=new R.A({color:[255,170,0,.6],outline:{width:7.5,color:[255,0,0,.6]}}),this.polylineBarriers=new F.A({width:7.5,color:[255,85,0,.7]}),this.routeInfo=new F.A({width:8,color:[20,89,127]}),this.stops=new B}};(0,i.Cg)([(0,g.MZ)({types:x.Y7})],P.prototype,"directionLines",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],P.prototype,"directionPoints",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],P.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Ac})],P.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Y7})],P.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Y7})],P.prototype,"routeInfo",void 0),(0,i.Cg)([(0,g.MZ)({type:B})],P.prototype,"stops",void 0),P=(0,i.Cg)([(0,g.$K)("esri.layers.support.RouteSymbols")],P);var _=r(20655),E=r(80812),L=r(10407),J=r(65494),k=r(11254),$=r(2272),U=r(2073),W=r(93223);let G=class extends Z.o{constructor(e){super(e),this.dataType=null,this.name=null,this.parameterNames=null,this.restrictionUsageParameterName=null,this.timeNeutralAttributeName=null,this.trafficSupport=null,this.units=null,this.usageType=null}};(0,i.Cg)([(0,g.MZ)({type:String})],G.prototype,"dataType",void 0),(0,i.Cg)([(0,W.e)(U.et,{ignoreUnknown:!1})],G.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:[String]})],G.prototype,"parameterNames",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],G.prototype,"restrictionUsageParameterName",void 0),(0,i.Cg)([(0,W.e)(U.Mm,{ignoreUnknown:!1})],G.prototype,"timeNeutralAttributeName",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],G.prototype,"trafficSupport",void 0),(0,i.Cg)([(0,W.e)(U.dn)],G.prototype,"units",void 0),(0,i.Cg)([(0,W.e)(U.WU)],G.prototype,"usageType",void 0),G=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkAttribute")],G);const V=G;let q=class extends Z.o{constructor(e){super(e),this.buildTime=null,this.name=null,this.networkAttributes=null,this.networkSources=null,this.state=null}};(0,i.Cg)([(0,g.MZ)({type:Number})],q.prototype,"buildTime",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],q.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:[V]})],q.prototype,"networkAttributes",void 0),(0,i.Cg)([(0,g.MZ)()],q.prototype,"networkSources",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],q.prototype,"state",void 0),q=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkDataset")],q);const z=q;var K=r(69540),Y=r(36005),H=r(43937);let X=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.attributeParameterValues=null,this.description=null,this.distanceAttributeName=null,this.id=null,this.impedanceAttributeName=null,this.name=null,this.restrictionAttributeNames=null,this.simplificationTolerance=null,this.simplificationToleranceUnits=null,this.timeAttributeName=null,this.type=null,this.useHierarchy=null,this.uturnAtJunctions=null}readId(e,t){return t.id??t.itemId??null}readRestrictionAttributes(e,t){const{restrictionAttributeNames:r}=t;return null==r?null:r.map(e=>U.OC.fromJSON(e))}writeRestrictionAttributes(e,t,r){null!=e&&(t[r]=e.map(e=>U.OC.toJSON(e)))}};(0,i.Cg)([(0,g.MZ)({type:[Object],json:{write:!0}})],X.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],X.prototype,"description",void 0),(0,i.Cg)([(0,W.e)(U.dd,{ignoreUnknown:!1})],X.prototype,"distanceAttributeName",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],X.prototype,"id",void 0),(0,i.Cg)([(0,Y.w)("id",["id","itemId"])],X.prototype,"readId",null),(0,i.Cg)([(0,W.e)(U.et,{ignoreUnknown:!1})],X.prototype,"impedanceAttributeName",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],X.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:[String],json:{write:!0}})],X.prototype,"restrictionAttributeNames",void 0),(0,i.Cg)([(0,Y.w)("restrictionAttributeNames")],X.prototype,"readRestrictionAttributes",null),(0,i.Cg)([(0,H.K)("restrictionAttributeNames")],X.prototype,"writeRestrictionAttributes",null),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:{allowNull:!0}}})],X.prototype,"simplificationTolerance",void 0),(0,i.Cg)([(0,W.e)(U.hY)],X.prototype,"simplificationToleranceUnits",void 0),(0,i.Cg)([(0,W.e)(U.Mm,{ignoreUnknown:!1})],X.prototype,"timeAttributeName",void 0),(0,i.Cg)([(0,W.e)(U.ow)],X.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],X.prototype,"useHierarchy",void 0),(0,i.Cg)([(0,W.e)(U.hE)],X.prototype,"uturnAtJunctions",void 0),X=(0,i.Cg)([(0,g.$K)("esri.rest.support.TravelMode")],X);let Q=class extends Z.o{constructor(e){super(e),this.accumulateAttributeNames=null,this.attributeParameterValues=null,this.currentVersion=null,this.defaultTravelMode=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsSupportedLanguages=null,this.directionsTimeAttribute=null,this.hasZ=null,this.impedance=null,this.networkDataset=null,this.supportedTravelModes=null}readAccumulateAttributes(e){return null==e?null:e.map(e=>U.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>U.et.toJSON(e)))}get capabilities(){return{supportsNow:(this.currentVersion??10)>=10.81}}readDefaultTravelMode(e,t){const r=t.supportedTravelModes?.find(({id:e})=>e===t.defaultTravelMode)??t.supportedTravelModes?.find(({itemId:e})=>e===t.defaultTravelMode);return r?X.fromJSON(r):null}};function ee(e,t,r,i){i[r]=[t.length,t.length+e.length],e.forEach(e=>{t.push(e.geometry)})}async function te(e,t,r){if(!e)throw new u.A("network-service:missing-url","Url to Network service is missing");const i=(0,$.jV)({f:"json",token:t},r),{data:n}=await(0,k.A)(e,i),o=n.currentVersion>=10.4?async function(e,t,r){try{const i=(0,$.jV)({f:"json",token:t},r),n=(0,f.UC)(e)+"/retrieveTravelModes",{data:{supportedTravelModes:o,defaultTravelMode:s}}=await(0,k.A)(n,i);return{supportedTravelModes:o,defaultTravelMode:s}}catch(e){throw new u.A("network-service:retrieveTravelModes","Could not get to the NAServer's retrieveTravelModes.",{error:e})}}(e,t,r):async function(e,t){const r=(0,$.jV)({f:"json"},t),{data:i}=await(0,k.A)(e.replace(/\/rest\/.*$/i,"/info"),r);if(!i?.owningSystemUrl)return{supportedTravelModes:[],defaultTravelMode:null};const{owningSystemUrl:n}=i,o=(0,f.UC)(n)+"/sharing/rest/portals/self",{data:s}=await(0,k.A)(o,r),a=(0,d.wc)("helperServices.routingUtilities.url",s);if(!a)return{supportedTravelModes:[],defaultTravelMode:null};const l=(0,$.Dl)(n),u=/\/solve$/i.test(l.path)?"Route":/\/solveclosestfacility$/i.test(l.path)?"ClosestFacility":"ServiceAreas",p=(0,$.jV)({f:"json",serviceName:u},t),c=(0,f.UC)(a)+"/GetTravelModes/execute",y=await(0,k.A)(c,p),m=[];let h=null;if(y?.data?.results?.length){const e=y.data.results;for(const t of e)if("supportedTravelModes"===t.paramName){if(t.value?.features)for(const{attributes:e}of t.value.features)if(e){const t=JSON.parse(e.TravelMode);m.push(t)}}else"defaultTravelMode"===t.paramName&&(h=t.value)}return{supportedTravelModes:m,defaultTravelMode:h}}(e,r),{defaultTravelMode:s,supportedTravelModes:a}=await o;return n.defaultTravelMode=s,n.supportedTravelModes=a,Q.fromJSON(n)}(0,i.Cg)([(0,g.MZ)()],Q.prototype,"accumulateAttributeNames",void 0),(0,i.Cg)([(0,Y.w)("accumulateAttributeNames")],Q.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,H.K)("accumulateAttributeNames")],Q.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"capabilities",null),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"currentVersion",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"defaultTravelMode",void 0),(0,i.Cg)([(0,Y.w)("defaultTravelMode",["defaultTravelMode","supportedTravelModes"])],Q.prototype,"readDefaultTravelMode",null),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,W.e)(U.Z7)],Q.prototype,"directionsLengthUnits",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"directionsSupportedLanguages",void 0),(0,i.Cg)([(0,W.e)(U.Mm,{ignoreUnknown:!1})],Q.prototype,"directionsTimeAttribute",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"hasZ",void 0),(0,i.Cg)([(0,W.e)(U.et,{ignoreUnknown:!1})],Q.prototype,"impedance",void 0),(0,i.Cg)([(0,g.MZ)({type:z})],Q.prototype,"networkDataset",void 0),(0,i.Cg)([(0,g.MZ)({type:[X]})],Q.prototype,"supportedTravelModes",void 0),Q=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkServiceDescription")],Q);var re=r(16649),ie=r(17136);function ne(e,t){if(null==e)return null;const r={},i=new RegExp(`^${t}`,"i");for(const n of Object.keys(e))if(i.test(n)){const i=n.slice(t.length);r[U.et.fromJSON(i)]=e[n]}return r}function oe(e,t,r){if(null!=e){t.attributes||(t.attributes={});for(const i in e){const n=U.et.toJSON(i);t.attributes[`${r}${n}`]=e[i]}}}function se(e){const t={};for(const r of Object.keys(e)){const i=r;t[U.et.fromJSON(i)]=e[r]}return t}function ae(e){const t={};for(const r of Object.keys(e)){const i=r;t[U.et.toJSON(i)]=e[r]}return t}function le(e,t){return null==e||null==t?null:Math.round((e-t)/6e4)}function ue(e){const t=e.toJSON(),r=t;return r.accumulateAttributeNames&&=t.accumulateAttributeNames?.join(),r.attributeParameterValues&&=JSON.stringify(t.attributeParameterValues),r.barriers&&=JSON.stringify(t.barriers),r.locateSettings&&=JSON.stringify(t.locateSettings),r.outSR&&=t.outSR?.wkid,r.overrides&&=JSON.stringify(t.overrides),r.polygonBarriers&&=JSON.stringify(t.polygonBarriers),r.polylineBarriers&&=JSON.stringify(t.polylineBarriers),r.restrictionAttributeNames&&=t.restrictionAttributeNames?.join(),r.stops&&=JSON.stringify(t.stops),r.travelMode&&=JSON.stringify(t.travelMode),r}var pe=r(22671),ce=r(66552),de=r(37807);const ye=new ce.J({0:"informative",1:"process-definition",2:"process-start",3:"process-stop",50:"warning",100:"error",101:"empty",200:"abort"});let me=class extends de.A{constructor(e){super(e),this.type=null}};(0,i.Cg)([(0,g.MZ)({type:String,json:{read:ye.read,write:ye.write}})],me.prototype,"type",void 0),me=(0,i.Cg)([(0,g.$K)("esri.rest.support.NAMessage")],me);const he=me;var fe=r(82799),ge=r(86738);let be=class extends Z.o{constructor(e){super(e)}};(0,i.Cg)([(0,g.MZ)({json:{read:{source:"string"}}})],be.prototype,"text",void 0),(0,i.Cg)([(0,W.e)(U.Ec,{name:"stringType"})],be.prototype,"type",void 0),be=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsString")],be);const ve=be;let we=class extends Z.o{constructor(e){super(e),this.arriveTime=null,this.arriveTimeOffset=null,this.geometry=null,this.strings=null}readArriveTimeOffset(e,t){return le(t.ETA,t.arriveTimeUTC)}readGeometry(e,t){return ge.A.fromJSON(t.point)}};(0,i.Cg)([(0,g.MZ)({type:Date,json:{read:{source:"arriveTimeUTC"}}})],we.prototype,"arriveTime",void 0),(0,i.Cg)([(0,g.MZ)()],we.prototype,"arriveTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("arriveTimeOffset",["arriveTimeUTC","ETA"])],we.prototype,"readArriveTimeOffset",null),(0,i.Cg)([(0,g.MZ)({type:ge.A})],we.prototype,"geometry",void 0),(0,i.Cg)([(0,Y.w)("geometry",["point"])],we.prototype,"readGeometry",null),(0,i.Cg)([(0,g.MZ)({type:[ve]})],we.prototype,"strings",void 0),we=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsEvent")],we);const Ce=we;let Te=class extends o.A{constructor(e){super(e),this.events=null,this.geometry=null,this.strings=null}set attributes(e){super.attributes=e}readGeometry(e,t){const r=function(e){if(null==e||""===e)return null;let t=0,r=0,i=0,n=0;const o=[];let s,a,l,u,p,c,d,y,m=0,h=0,f=0;if(p=e.match(/((\+|-)[^+\-|]+|\|)/g),p||(p=[]),0===parseInt(p[m],32)){m=2;const e=parseInt(p[m],32);m++,c=parseInt(p[m],32),m++,1&e&&(h=p.indexOf("|")+1,d=parseInt(p[h],32),h++),2&e&&(f=p.indexOf("|",h)+1,y=parseInt(p[f],32),f++)}else c=parseInt(p[m],32),m++;for(;m<p.length&&"|"!==p[m];){s=parseInt(p[m],32)+t,m++,t=s,a=parseInt(p[m],32)+r,m++,r=a;const e=[s/c,a/c];h&&(u=parseInt(p[h],32)+i,h++,i=u,e.push(u/d)),f&&(l=parseInt(p[f],32)+n,f++,n=l,e.push(l/y)),o.push(e)}return{paths:[o],hasZ:h>0,hasM:f>0}}(t.compressedGeometry);return null!=r?fe.A.fromJSON(r):null}};(0,i.Cg)([(0,g.MZ)({type:[Ce]})],Te.prototype,"events",void 0),(0,i.Cg)([(0,g.MZ)({types:{base:null,key:"type",typeMap:{polygon:fe.A},defaultKeyValue:"polygon"}})],Te.prototype,"geometry",void 0),(0,i.Cg)([(0,Y.w)("geometry",["compressedGeometry"])],Te.prototype,"readGeometry",null),(0,i.Cg)([(0,g.MZ)({type:[ve]})],Te.prototype,"strings",void 0),Te=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsFeature")],Te);const Me=Te;let Se=class extends pe.A{constructor(e){super(e),this.extent=null,this.features=[],this.geometryType="polyline",this.routeId=null,this.routeName=null,this.totalDriveTime=null,this.totalLength=null,this.totalTime=null}readFeatures(e,t){if(!e)return[];const r=t.summary.envelope.spatialReference??t.spatialReference,i=r&&T.A.fromJSON(r);return e.map(e=>{const t=Me.fromJSON(e);if(null!=t.geometry&&(t.geometry.spatialReference=i),null!=t.events)for(const e of t.events)null!=e.geometry&&(e.geometry.spatialReference=i);return t})}get mergedGeometry(){return this.features?function(e,t){if(0===e.length)return new fe.A({spatialReference:t});const r=[];for(const t of e)for(const e of t.paths)r.push(...e);const i=[];r.forEach((e,t)=>{0!==t&&e[0]===r[t-1][0]&&e[1]===r[t-1][1]||i.push(e)});const{hasM:n,hasZ:o}=e[0];return new fe.A({hasM:n,hasZ:o,paths:[i],spatialReference:t})}(this.features.map(({geometry:e})=>e),this.extent.spatialReference):null}get strings(){return this.features.flatMap(({strings:e})=>e).filter(a.Ru)}};(0,i.Cg)([(0,g.MZ)({type:v.A,json:{read:{source:"summary.envelope"}}})],Se.prototype,"extent",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0})],Se.prototype,"features",void 0),(0,i.Cg)([(0,Y.w)("features")],Se.prototype,"readFeatures",null),(0,i.Cg)([(0,g.MZ)()],Se.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Se.prototype,"mergedGeometry",null),(0,i.Cg)([(0,g.MZ)()],Se.prototype,"routeId",void 0),(0,i.Cg)([(0,g.MZ)()],Se.prototype,"routeName",void 0),(0,i.Cg)([(0,g.MZ)({value:null,readOnly:!0})],Se.prototype,"strings",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"summary.totalDriveTime"}}})],Se.prototype,"totalDriveTime",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"summary.totalLength"}}})],Se.prototype,"totalLength",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"summary.totalTime"}}})],Se.prototype,"totalTime",void 0),Se=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsFeatureSet")],Se);const Ae=Se;let Ie=class extends Z.o{constructor(e){super(e),this.directionLines=null,this.directionPoints=null,this.directions=null,this.route=null,this.routeName=null,this.stops=null,this.traversedEdges=null,this.traversedJunctions=null,this.traversedTurns=null}};(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"directionLines",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"directionPoints",void 0),(0,i.Cg)([(0,g.MZ)({type:Ae,json:{write:!0}})],Ie.prototype,"directions",void 0),(0,i.Cg)([(0,g.MZ)({type:o.A,json:{write:!0}})],Ie.prototype,"route",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ie.prototype,"routeName",void 0),(0,i.Cg)([(0,g.MZ)({type:[o.A],json:{write:!0}})],Ie.prototype,"stops",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedEdges",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedJunctions",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedTurns",void 0),Ie=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteResult")],Ie);const Oe=Ie;function je(e){return e?pe.A.fromJSON(e).features.filter(a.Ru):[]}let Ne=class extends Z.o{constructor(e){super(e),this.checksum=null,this.messages=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null,this.routeResults=null}readPointBarriers(e,t){return je(t.barriers)}readPolylineBarriers(e){return je(e)}readPolygonBarriers(e){return je(e)}};function Ze(e){return e instanceof pe.A}async function De(e,t,r){const i=[],n=[],o={},s={},a=(0,$.Dl)(e),{path:l}=a;Ze(t.stops)&&ee(t.stops.features,n,"stops.features",o),Ze(t.pointBarriers)&&ee(t.pointBarriers.features,n,"pointBarriers.features",o),Ze(t.polylineBarriers)&&ee(t.polylineBarriers.features,n,"polylineBarriers.features",o),Ze(t.polygonBarriers)&&ee(t.polygonBarriers.features,n,"polygonBarriers.features",o);const u=await(0,ie.el)(n);for(const e in o){const t=o[e];i.push(e),s[e]=u.slice(t[0],t[1])}if(function(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)if(null!=e&&e.hasZ)return!0}return!1}(s,i)){let e=null;try{e=await te(l,t.apiKey,r)}catch{}e&&!e.hasZ&&function(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)e.z=void 0}p.A.getLogger("esri.rest.networkService").warnOnce("The remote Network Analysis service is powered by a network dataset which is not Z-aware.\nZ-coordinates of the input geometry are ignored.")}(s,i)}for(const e in s)s[e].forEach((r,i)=>{(0,re.Jt)(t,e)[i].geometry=r});const c={...r,query:{...a.query,...ue(t),f:"json"}},d=l.endsWith("/solve")?l:`${l}/solve`,{data:y}=await(0,k.A)(d,c);return function(e){const{barriers:t,checksum:r,directionLines:i,directionPoints:n,directions:o,messages:s,polygonBarriers:a,polylineBarriers:l,routes:u,stops:p,traversedEdges:c,traversedJunctions:d,traversedTurns:y}=e,m=e=>{const t=f.find(t=>t.routeName===e);if(null!=t)return t;const r={routeId:f.length+1,routeName:e};return f.push(r),r},h=e=>{const t=f.find(t=>t.routeId===e);if(null!=t)return t;const r={routeId:e,routeName:null};return f.push(r),r},f=[];u?.features.forEach((e,t)=>{e.geometry.spatialReference=u.spatialReference??void 0;const r=e.attributes.Name,i=t+1;f.push({routeId:i,routeName:r,route:e})}),o?.forEach(e=>{const{routeName:t}=e;m(t).directions=e});const g=p?.features.every(e=>null==e.attributes.RouteName)&&f.length>0?f[0].routeName:null;return p?.features.forEach(e=>{e.geometry&&(e.geometry.spatialReference??=p.spatialReference??void 0);const t=g??e.attributes.RouteName,r=m(t);r.stops??=[],r.stops.push(e)}),i?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:n,spatialReference:o}=i;r.directionLines??={features:[],geometryType:n,spatialReference:o},r.directionLines.features.push(e)}),n?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:o}=n;r.directionPoints??={features:[],geometryType:i,spatialReference:o},r.directionPoints.features.push(e)}),c?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:n}=c;r.traversedEdges??={features:[],geometryType:i,spatialReference:n},r.traversedEdges.features.push(e)}),d?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:n}=d;r.traversedJunctions??={features:[],geometryType:i,spatialReference:n},r.traversedJunctions.features.push(e)}),y?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t);r.traversedTurns??={features:[]},r.traversedTurns.features.push(e)}),Ne.fromJSON({barriers:t,checksum:r,messages:s,polygonBarriers:a,polylineBarriers:l,routeResults:f})}(y)}var xe;(0,i.Cg)([(0,g.MZ)({type:String})],Ne.prototype,"checksum",void 0),(0,i.Cg)([(0,g.MZ)({type:[he]})],Ne.prototype,"messages",void 0),(0,i.Cg)([(0,g.MZ)({type:[o.A]})],Ne.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,Y.w)("pointBarriers",["barriers"])],Ne.prototype,"readPointBarriers",null),(0,i.Cg)([(0,g.MZ)({type:[o.A]})],Ne.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,Y.w)("polylineBarriers")],Ne.prototype,"readPolylineBarriers",null),(0,i.Cg)([(0,g.MZ)({type:[o.A]})],Ne.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,Y.w)("polygonBarriers")],Ne.prototype,"readPolygonBarriers",null),(0,i.Cg)([(0,g.MZ)({type:[Oe]})],Ne.prototype,"routeResults",void 0),Ne=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteSolveResult")],Ne);let Be=class extends((0,K.OU)(Z.o)){static{xe=this}constructor(e){super(e),this.directionLineType=null,this.directionPointId=null,this.distance=null,this.duration=null,this.fromLevel=null,this.geometry=null,this.objectId=null,this.popupTemplate=null,this.symbol=null,this.toLevel=null,this.type="direction-line"}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"DirectionLineType",alias:"Line Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DirectionPointID",alias:"Direction Point ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"FromLevel",alias:"From Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Meters",alias:"Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Minutes",alias:"Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"ToLevel",alias:"To Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0}]}static fromGraphic(e){return new xe({directionLineType:U.gD.fromJSON(e.attributes.DirectionLineType),directionPointId:e.attributes.DirectionPointID,distance:e.attributes.Meters,duration:e.attributes.Minutes,fromLevel:e.attributes.FromLevel??null,geometry:e.geometry,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,symbol:e.symbol,toLevel:e.attributes.ToLevel??null})}toGraphic(){const e={ObjectID:this.objectId,DirectionLineType:this.directionLineType?U.gD.toJSON(this.directionLineType):null,DirectionPointID:this.directionPointId,Meters:this.distance,Minutes:this.duration};return null!=this.fromLevel&&(e.FromLevel=this.fromLevel),null!=this.toLevel&&(e.ToLevel=this.toLevel),new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Re;(0,i.Cg)([(0,g.MZ)({type:U.gD.apiValues,json:{read:{source:"attributes.DirectionLineType",reader:U.gD.read}}})],Be.prototype,"directionLineType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.DirectionPointID"}}})],Be.prototype,"directionPointId",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Meters"}}})],Be.prototype,"distance",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Minutes"}}})],Be.prototype,"duration",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.FromLevel"}}})],Be.prototype,"fromLevel",void 0),(0,i.Cg)([(0,g.MZ)({type:fe.A})],Be.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Be.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Be.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Be.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ToLevel"}}})],Be.prototype,"toLevel",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Be.prototype,"type",void 0),Be=xe=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionLine")],Be);let Fe=class extends((0,K.OU)(Z.o)){static{Re=this}constructor(e){super(e),this.alternateName=null,this.arrivalTime=null,this.arrivalTimeOffset=null,this.azimuth=null,this.branchName=null,this.directionPointType=null,this.displayText=null,this.exitName=null,this.geometry=null,this.intersectingName=null,this.level=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.sequence=null,this.shortVoiceInstruction=null,this.stopId=null,this.symbol=null,this.towardName=null,this.type="direction-point",this.voiceInstruction=null}readArrivalTime(e,t){return null!=t.attributes.ArrivalTime?new Date(t.attributes.ArrivalTime):null}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AlternateName",alias:"Alternate Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"ArrivalUTCOffset",alias:"Arrival Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Azimuth",alias:"Azimuth",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"BranchName",alias:"Branch Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"DirectionPointType",alias:"Directions Point Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DisplayText",alias:"Display Text",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"ExitName",alias:"Exit Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"IntersectingName",alias:"Intersecting Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"Level",alias:"Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ShortVoiceInstruction",alias:"Short Voice Instruction",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"StopID",alias:"Stop ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TowardName",alias:"Toward Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"VoiceInstruction",alias:"Voice Instruction",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048}]}static fromGraphic(e){return new Re({alternateName:e.attributes.AlternateName??null,arrivalTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arrivalTimeOffset:e.attributes.ArrivalUTCOffset??null,azimuth:e.attributes.Azimuth??null,branchName:e.attributes.BranchName??null,directionPointType:U._6.fromJSON(e.attributes.DirectionPointType),displayText:e.attributes.DisplayText??null,exitName:e.attributes.ExitName??null,geometry:e.geometry,intersectingName:e.attributes.IntersectingName??null,level:e.attributes.Level??null,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,sequence:e.attributes.Sequence,shortVoiceInstruction:e.attributes.ShortVoiceInstruction??null,stopId:e.attributes.StopID??null,symbol:e.symbol,towardName:e.attributes.TowardName??null,voiceInstruction:e.attributes.VoiceInstruction??null})}toGraphic(){const e={ObjectID:this.objectId,DirectionPointType:this.directionPointType?U._6.toJSON(this.directionPointType):null,Sequence:this.sequence,StopID:this.stopId};return null!=this.alternateName&&(e.AlternateName=this.alternateName),null!=this.arrivalTime&&(e.ArrivalTime=this.arrivalTime.getTime()),null!=this.arrivalTimeOffset&&(e.ArrivalUTCOffset=this.arrivalTimeOffset),null!=this.azimuth&&(e.Azimuth=this.azimuth),null!=this.branchName&&(e.BranchName=this.branchName),null!=this.displayText&&(e.DisplayText=this.displayText),null!=this.exitName&&(e.ExitName=this.exitName),null!=this.intersectingName&&(e.IntersectingName=this.intersectingName),null!=this.level&&(e.Level=this.level),null!=this.name&&(e.Name=this.name),null!=this.shortVoiceInstruction&&(e.ShortVoiceInstruction=this.shortVoiceInstruction),null!=this.towardName&&(e.TowardName=this.towardName),null!=this.voiceInstruction&&(e.VoiceInstruction=this.voiceInstruction),new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Pe;(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.AlternateName"}}})],Fe.prototype,"alternateName",void 0),(0,i.Cg)([(0,g.MZ)({type:Date})],Fe.prototype,"arrivalTime",void 0),(0,i.Cg)([(0,Y.w)("arrivalTime",["attributes.ArrivalTime"])],Fe.prototype,"readArrivalTime",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ArrivalUTCOffset"}}})],Fe.prototype,"arrivalTimeOffset",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Azimuth"}}})],Fe.prototype,"azimuth",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.BranchName"}}})],Fe.prototype,"branchName",void 0),(0,i.Cg)([(0,g.MZ)({type:U._6.apiValues,json:{read:{source:"attributes.DirectionPointType",reader:U._6.read}}})],Fe.prototype,"directionPointType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.DisplayText"}}})],Fe.prototype,"displayText",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ExitName"}}})],Fe.prototype,"exitName",void 0),(0,i.Cg)([(0,g.MZ)({type:ge.A})],Fe.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.IntersectingName"}}})],Fe.prototype,"intersectingName",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Level"}}})],Fe.prototype,"level",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Name"}}})],Fe.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Fe.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Fe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Sequence"}}})],Fe.prototype,"sequence",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ShortVoiceInstruction"}}})],Fe.prototype,"shortVoiceInstruction",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.StopID"}}})],Fe.prototype,"stopId",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Fe.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.TowardName"}}})],Fe.prototype,"towardName",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Fe.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.VoiceInstruction"}}})],Fe.prototype,"voiceInstruction",void 0),Fe=Re=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionPoint")],Fe);let _e=class extends((0,K.OU)(Z.o)){static{Pe=this}constructor(e){super(e),this.addedCost=null,this.barrierType=null,this.costs=null,this.curbApproach=null,this.fullEdge=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.positionAlong=null,this.sideOfEdge=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.type="point-barrier"}readCosts(e,t){return ne(t.attributes,"Attr_")}writeCosts(e,t){oe(e,t,"Attr_")}set geometry(e){this._get("geometry")&&(this._set("positionAlong",null),this._set("sideOfEdge",null),this._set("sourceId",null),this._set("sourceOid",null),this._set("status",null)),this._set("geometry",e)}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AddedCost",alias:"Added Cost",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"FullEdge",alias:"Full Edge",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0}]}static fromGraphic(e){return new Pe({addedCost:e.attributes.AddedCost??null,barrierType:null!=e.attributes.BarrierType?U.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?se(JSON.parse(e.attributes.Costs)):null,curbApproach:null!=e.attributes.CurbApproach?U.JJ.fromJSON(e.attributes.CurbApproach):null,fullEdge:null!=e.attributes.FullEdge?U.fe.fromJSON(e.attributes.FullEdge):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,status:null!=e.attributes.Status?U.$r.fromJSON(e.attributes.Status):null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,AddedCost:this.addedCost,BarrierType:this.barrierType?U.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,CurbApproach:this.curbApproach?U.JJ.toJSON(this.curbApproach):null,FullEdge:this.fullEdge?U.fe.toJSON(this.fullEdge):null,Name:this.name,Status:this.status?U.$r.toJSON(this.status):null};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,g.MZ)()],_e.prototype,"addedCost",void 0),(0,i.Cg)([(0,g.MZ)({type:U.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:U.iM.read},write:{writer:U.iM.write}}})],_e.prototype,"barrierType",void 0),(0,i.Cg)([(0,g.MZ)()],_e.prototype,"costs",void 0),(0,i.Cg)([(0,Y.w)("costs",["attributes"])],_e.prototype,"readCosts",null),(0,i.Cg)([(0,H.K)("costs")],_e.prototype,"writeCosts",null),(0,i.Cg)([(0,g.MZ)({type:U.JJ.apiValues,json:{read:{source:"attributes.CurbApproach",reader:U.JJ.read}}})],_e.prototype,"curbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:U.fe.apiValues,json:{name:"attributes.FullEdge",read:{reader:U.fe.read},write:{writer:U.fe.write}}})],_e.prototype,"fullEdge",void 0),(0,i.Cg)([(0,g.MZ)({type:ge.A,json:{write:!0},value:null})],_e.prototype,"geometry",null),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],_e.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],_e.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],_e.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.PosAlong"}})],_e.prototype,"positionAlong",void 0),(0,i.Cg)([(0,g.MZ)({type:U.mt.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:U.mt.read},write:{writer:U.mt.write}}})],_e.prototype,"sideOfEdge",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceID"}})],_e.prototype,"sourceId",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceOID"}})],_e.prototype,"sourceOid",void 0),(0,i.Cg)([(0,g.MZ)({type:U.$r.apiValues,json:{read:{source:"attributes.Status",reader:U.$r.read}}})],_e.prototype,"status",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],_e.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],_e.prototype,"type",void 0),_e=Pe=(0,i.Cg)([(0,g.$K)("esri.rest.support.PointBarrier")],_e);var Ee,Le=r(39829);let Je=class extends((0,K.OU)(Z.o)){static{Ee=this}constructor(e){super(e),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polygon-barrier"}readCosts(e,t){return ne(t.attributes,"Attr_")}writeCosts(e,t){oe(e,t,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new Ee({barrierType:null!=e.attributes.BarrierType?U.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?se(JSON.parse(e.attributes.Costs)):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,scaleFactor:e.attributes.ScaleFactor??null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,BarrierType:this.barrierType?U.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,Name:this.name??null,ScaleFactor:this.scaleFactor??null};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var ke;(0,i.Cg)([(0,g.MZ)({type:U.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:U.iM.read},write:{writer:U.iM.write}}})],Je.prototype,"barrierType",void 0),(0,i.Cg)([(0,g.MZ)()],Je.prototype,"costs",void 0),(0,i.Cg)([(0,Y.w)("costs",["attributes"])],Je.prototype,"readCosts",null),(0,i.Cg)([(0,H.K)("costs")],Je.prototype,"writeCosts",null),(0,i.Cg)([(0,g.MZ)({type:Le.A,json:{write:!0}})],Je.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],Je.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],Je.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Je.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)()],Je.prototype,"scaleFactor",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Je.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Je.prototype,"type",void 0),Je=Ee=(0,i.Cg)([(0,g.$K)("esri.rest.support.PolygonBarrier")],Je);let $e=class extends((0,K.OU)(Z.o)){static{ke=this}constructor(e){super(e),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polyline-barrier"}readCosts(e,t){return ne(t.attributes,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new ke({barrierType:null!=e.attributes.BarrierType?U.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?se(JSON.parse(e.attributes.Costs)):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,scaleFactor:e.attributes.ScaleFactor??null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,BarrierType:this.barrierType?U.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,Name:this.name,ScaleFactor:this.scaleFactor};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,g.MZ)({type:U.iM.apiValues,json:{read:{source:"attributes.BarrierType",reader:U.iM.read}}})],$e.prototype,"barrierType",void 0),(0,i.Cg)([(0,g.MZ)()],$e.prototype,"costs",void 0),(0,i.Cg)([(0,Y.w)("costs",["attributes"])],$e.prototype,"readCosts",null),(0,i.Cg)([(0,g.MZ)({type:fe.A,json:{write:!0}})],$e.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],$e.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],$e.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],$e.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)()],$e.prototype,"scaleFactor",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],$e.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],$e.prototype,"type",void 0),$e=ke=(0,i.Cg)([(0,g.$K)("esri.rest.support.PolylineBarrier")],$e);let Ue=class extends Z.o{constructor(e){super(e),this.accumulateAttributes=null,this.directionsLanguage=null,this.findBestSequence=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.startTimeIsUTC=null,this.timeWindowsAreUTC=null,this.travelMode=null}readAccumulateAttributes(e){return null==e?null:e.map(e=>U.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>U.et.toJSON(e)))}};var We;(0,i.Cg)([(0,g.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],Ue.prototype,"accumulateAttributes",void 0),(0,i.Cg)([(0,Y.w)("accumulateAttributes")],Ue.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,H.K)("accumulateAttributes")],Ue.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ue.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"findBestSequence",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"preserveFirstStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"preserveLastStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"startTimeIsUTC",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"timeWindowsAreUTC",void 0),(0,i.Cg)([(0,g.MZ)({type:X,json:{write:!0}})],Ue.prototype,"travelMode",void 0),Ue=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteSettings")],Ue);let Ge=class extends((0,K.OU)(Z.o)){static{We=this}constructor(e){super(e),this.analysisSettings=null,this.endTime=null,this.endTimeOffset=null,this.firstStopId=null,this.geometry=null,this.lastStopId=null,this.messages=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.startTime=null,this.startTimeOffset=null,this.stopCount=null,this.symbol=null,this.totalCosts=null,this.totalDistance=null,this.totalDuration=null,this.totalLateDuration=null,this.totalViolations=null,this.totalWait=null,this.totalWaitDuration=null,this.type="route-info",this.version="1.0.0"}readEndTime(e,t){return null!=t.attributes.EndTimeUTC?new Date(t.attributes.EndTimeUTC):null}readEndTimeOffset(e,t){return le(t.attributes.EndTime,t.attributes.EndTimeUTC)}readStartTime(e,t){return null!=t.attributes.StartTimeUTC?new Date(t.attributes.StartTimeUTC):null}readStartTimeOffset(e,t){return le(t.attributes.StartTime,t.attributes.StartTimeUTC)}readTotalCosts(e,t){return ne(t.attributes,"Total_")}readTotalViolations(e,t){return ne(t.attributes,"TotalViolation_")}readTotalWait(e,t){return ne(t.attributes,"TotalWait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AnalysisSettings",alias:"Analysis Settings",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"EndTime",alias:"End Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"EndUTCOffset",alias:"End Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Messages",alias:"Messages",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1024},{name:"StartTime",alias:"Start Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"StartUTCOffset",alias:"Start Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TotalCosts",alias:"Total Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"TotalLateMinutes",alias:"Total Late Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalMeters",alias:"Total Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalMinutes",alias:"Total Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalWaitMinutes",alias:"Total Wait Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Version",alias:"Version",type:"esriFieldTypeString",editable:!0,nullable:!0,length:16}]}static fromGraphic(e){return new We({analysisSettings:null!=e.attributes.AnalysisSettings?Ue.fromJSON(JSON.parse(e.attributes.AnalysisSettings)):null,endTime:null!=e.attributes.EndTime?new Date(e.attributes.EndTime):null,endTimeOffset:e.attributes.EndUTCOffset??null,geometry:e.geometry,messages:null!=e.attributes.Messages?JSON.parse(e.attributes.Messages):null,name:e.attributes.RouteName,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,startTime:null!=e.attributes.StartTime?new Date(e.attributes.StartTime):null,startTimeOffset:e.attributes.StartUTCOffset??null,symbol:e.symbol,totalCosts:null!=e.attributes.TotalCosts?se(JSON.parse(e.attributes.TotalCosts)):null,totalDistance:e.attributes.TotalMeters??null,totalDuration:e.attributes.TotalMinutes??null,totalLateDuration:e.attributes.TotalLateMinutes??null,totalWaitDuration:e.attributes.TotalWaitMinutes??null,version:e.attributes.Version})}toGraphic(){const e={ObjectID:this.objectId,AnalysisSettings:this.analysisSettings?JSON.stringify(this.analysisSettings.toJSON()):null,EndTime:this.endTime?.getTime()??null,EndUTCOffset:this.endTimeOffset,Messages:this.messages?JSON.stringify(this.messages):null,RouteName:this.name,StartTime:this.startTime?.getTime()??null,StartUTCOffset:this.startTimeOffset,TotalCosts:this.totalCosts?JSON.stringify(ae(this.totalCosts)):null,TotalLateMinutes:this.totalLateDuration,TotalMeters:this.totalDistance,TotalMinutes:this.totalDuration,TotalWaitMinutes:this.totalWaitDuration,Version:this.version};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"analysisSettings",void 0),(0,i.Cg)([(0,g.MZ)({type:Date})],Ge.prototype,"endTime",void 0),(0,i.Cg)([(0,Y.w)("endTime",["attributes.EndTimeUTC"])],Ge.prototype,"readEndTime",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"endTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("endTimeOffset",["attributes.EndTime","attributes.EndTimeUTC"])],Ge.prototype,"readEndTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.FirstStopID"}}})],Ge.prototype,"firstStopId",void 0),(0,i.Cg)([(0,g.MZ)({type:fe.A})],Ge.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.LastStopID"}}})],Ge.prototype,"lastStopId",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"messages",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Name"}}})],Ge.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Ge.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Ge.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({type:Date})],Ge.prototype,"startTime",void 0),(0,i.Cg)([(0,Y.w)("startTime",["attributes.StartTimeUTC"])],Ge.prototype,"readStartTime",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"startTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("startTimeOffset",["attributes.StartTime","attributes.StartTimeUTC"])],Ge.prototype,"readStartTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.StopCount"}}})],Ge.prototype,"stopCount",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Ge.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalCosts",void 0),(0,i.Cg)([(0,Y.w)("totalCosts",["attributes"])],Ge.prototype,"readTotalCosts",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalDistance",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalDuration",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalLateDuration",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalViolations",void 0),(0,i.Cg)([(0,Y.w)("totalViolations",["attributes"])],Ge.prototype,"readTotalViolations",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalWait",void 0),(0,i.Cg)([(0,Y.w)("totalWait",["attributes"])],Ge.prototype,"readTotalWait",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalWaitDuration",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Ge.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"version",void 0),Ge=We=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteInfo")],Ge);var Ve=r(56507),qe=r(24097),ze=r(65864),Ke=r(50498);let Ye=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.geometry=null,this.geometryType=null,this.name=null,this.spatialRelationship=null,this.type="layer",this.where=null}};(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ye.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i.Cg)([(0,g.MZ)({types:Ke.yR,json:{read:ze.rS,write:!0}})],Ye.prototype,"geometry",void 0),(0,i.Cg)([(0,W.e)(U.Vj)],Ye.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{name:"layerName",write:!0}})],Ye.prototype,"name",void 0),(0,i.Cg)([(0,W.e)(U.vS,{name:"spatialRel"})],Ye.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ye.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ye.prototype,"where",void 0),Ye=(0,i.Cg)([(0,g.$K)("esri.rest.support.DataLayer")],Ye);var He=r(10107),Xe=r(64108);let Qe=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.name=null,this.where=null}};(0,i.Cg)([(0,He.MZ)({json:{write:!0}})],Qe.prototype,"name",void 0),(0,i.Cg)([(0,He.MZ)({json:{write:!0}})],Qe.prototype,"where",void 0),Qe=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettingSource")],Qe);const et=Qe;let tt=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.allowAutoRelocate=null,this.sources=null}};(0,i.Cg)([(0,He.MZ)({type:Boolean,json:{write:!0}})],tt.prototype,"allowAutoRelocate",void 0),(0,i.Cg)([(0,He.MZ)({type:[et],json:{write:!0}})],tt.prototype,"sources",void 0),tt=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettingBase")],tt);const rt=tt;let it=class extends rt{constructor(e){super(e),this.tolerance=null,this.toleranceUnits=null}};(0,i.Cg)([(0,He.MZ)({type:Number,json:{write:!0}})],it.prototype,"tolerance",void 0),(0,i.Cg)([(0,W.e)(U.Y8)],it.prototype,"toleranceUnits",void 0),it=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSetting")],it);const nt=it;let ot=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.stops=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null}};(0,i.Cg)([(0,He.MZ)({type:nt,json:{write:!0}})],ot.prototype,"stops",void 0),(0,i.Cg)([(0,He.MZ)({type:nt,json:{name:"barriers",write:!0}})],ot.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,He.MZ)({type:rt,json:{write:!0}})],ot.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,He.MZ)({type:rt,json:{write:!0}})],ot.prototype,"polygonBarriers",void 0),ot=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettingsOverrides")],ot);const st=ot;let at=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.default=null,this.overrides=null}};(0,i.Cg)([(0,He.MZ)({type:nt,json:{write:!0}})],at.prototype,"default",void 0),(0,i.Cg)([(0,He.MZ)({type:st,json:{write:!0}})],at.prototype,"overrides",void 0),at=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettings")],at);const lt=at;var ut;let pt=class extends pe.A{static{ut=this}constructor(e){super(e),this.doNotLocateOnRestrictedElements=null}clone(){return new ut({doNotLocateOnRestrictedElements:this.doNotLocateOnRestrictedElements,...this.cloneProperties()})}};(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"doNotLocateOnRestrictedElements",void 0),pt=ut=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkFeatureSet")],pt);let ct=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.url=null}};var dt;(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],ct.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],ct.prototype,"url",void 0),ct=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkUrl")],ct);let yt=class extends((0,K.OU)(Z.o)){static{dt=this}constructor(e){super(e),this.accumulateAttributes=null,this.apiKey=null,this.attributeParameterValues=null,this.checksum=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsOutputType=null,this.directionsStyleName=null,this.directionsTimeAttribute=null,this.findBestSequence=null,this.geometryPrecision=null,this.geometryPrecisionM=null,this.geometryPrecisionZ=null,this.ignoreInvalidLocations=null,this.impedanceAttribute=null,this.locateSettings=null,this.outputGeometryPrecision=null,this.outputGeometryPrecisionUnits=null,this.outputLines="true-shape",this.outSpatialReference=null,this.overrides=null,this.pointBarriers=null,this.polygonBarriers=null,this.polylineBarriers=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.preserveObjectID=null,this.restrictionAttributes=null,this.restrictUTurns=null,this.returnBarriers=!1,this.returnDirections=!1,this.returnEmptyResults=null,this.returnPolygonBarriers=!1,this.returnPolylineBarriers=!1,this.returnRoutes=!0,this.returnStops=!1,this.returnTraversedEdges=null,this.returnTraversedJunctions=null,this.returnTraversedTurns=null,this.returnZ=!0,this.startTime=null,this.startTimeIsUTC=!0,this.stops=null,this.timeWindowsAreUTC=null,this.travelMode=null,this.useHierarchy=null,this.useTimeWindows=null}static from(e){return(0,Ve.PZ)(dt,e)}readAccumulateAttributes(e){return null==e?null:e.map(e=>U.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>U.et.toJSON(e)))}writePointBarriers(e,t,r){mt(e,t,r)}writePolygonBarrier(e,t,r){mt(e,t,r)}writePolylineBarrier(e,t,r){mt(e,t,r)}readRestrictionAttributes(e){return null==e?null:e.map(e=>U.OC.fromJSON(e))}writeRestrictionAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>U.OC.toJSON(e)))}readStartTime(e,t){const{startTime:r}=t;return null==r?null:"now"===r?"now":new Date(r)}writeStartTime(e,t){null!=e&&(t.startTime="now"===e?"now":e.getTime())}readStops(e,t){return function(e){return function(e){return e&&"type"in e}(e)?Ye.fromJSON(e):function(e){return e&&"url"in e}(e)?ct.fromJSON(e):function(e){return e&&"features"in e&&"doNotLocateOnRestrictedElements"in e}(e)?pt.fromJSON(e):function(e){return e&&"features"in e}(e)?pe.A.fromJSON(e):null}(t.stops)}writeStops(e,t,r){mt(e,t,r)}};function mt(e,t,r){null!=e&&(t[r]=l.A.isCollection(e)?{features:e.toArray().map(e=>e.toJSON())}:e.toJSON())}var ht;(0,i.Cg)([(0,g.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],yt.prototype,"accumulateAttributes",void 0),(0,i.Cg)([(0,Y.w)("accumulateAttributes")],yt.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,H.K)("accumulateAttributes")],yt.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,g.MZ)(qe.K)],yt.prototype,"apiKey",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],yt.prototype,"checksum",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],yt.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,W.e)(U.Z7)],yt.prototype,"directionsLengthUnits",void 0),(0,i.Cg)([(0,W.e)(U.aJ)],yt.prototype,"directionsOutputType",void 0),(0,i.Cg)([(0,W.e)(U.$n)],yt.prototype,"directionsStyleName",void 0),(0,i.Cg)([(0,W.e)(U.Mm,{name:"directionsTimeAttributeName",ignoreUnknown:!1})],yt.prototype,"directionsTimeAttribute",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"findBestSequence",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecision",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecisionM",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecisionZ",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"ignoreInvalidLocations",void 0),(0,i.Cg)([(0,W.e)(U.et,{name:"impedanceAttributeName",ignoreUnknown:!1})],yt.prototype,"impedanceAttribute",void 0),(0,i.Cg)([(0,g.MZ)({type:lt,json:{write:!0}})],yt.prototype,"locateSettings",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"outputGeometryPrecision",void 0),(0,i.Cg)([(0,W.e)(U.hY)],yt.prototype,"outputGeometryPrecisionUnits",void 0),(0,i.Cg)([(0,W.e)(U.Sr)],yt.prototype,"outputLines",void 0),(0,i.Cg)([(0,g.MZ)({type:T.A,json:{name:"outSR",write:!0}})],yt.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"overrides",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"barriers",write:!0}})],yt.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,H.K)("pointBarriers")],yt.prototype,"writePointBarriers",null),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,H.K)("polygonBarriers")],yt.prototype,"writePolygonBarrier",null),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,H.K)("polylineBarriers")],yt.prototype,"writePolylineBarrier",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveFirstStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveLastStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveObjectID",void 0),(0,i.Cg)([(0,g.MZ)({type:[String],json:{name:"restrictionAttributeNames",write:!0}})],yt.prototype,"restrictionAttributes",void 0),(0,i.Cg)([(0,Y.w)("restrictionAttributes")],yt.prototype,"readRestrictionAttributes",null),(0,i.Cg)([(0,H.K)("restrictionAttributes")],yt.prototype,"writeRestrictionAttributes",null),(0,i.Cg)([(0,W.e)(U.hE)],yt.prototype,"restrictUTurns",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnBarriers",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnDirections",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnEmptyResults",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnPolygonBarriers",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnPolylineBarriers",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnRoutes",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnStops",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedEdges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedJunctions",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedTurns",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnZ",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"startTime",void 0),(0,i.Cg)([(0,Y.w)("startTime")],yt.prototype,"readStartTime",null),(0,i.Cg)([(0,H.K)("startTime")],yt.prototype,"writeStartTime",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"startTimeIsUTC",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"stops",void 0),(0,i.Cg)([(0,Y.w)("stops")],yt.prototype,"readStops",null),(0,i.Cg)([(0,H.K)("stops")],yt.prototype,"writeStops",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"timeWindowsAreUTC",void 0),(0,i.Cg)([(0,g.MZ)({type:X,json:{write:!0}})],yt.prototype,"travelMode",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"useHierarchy",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"useTimeWindows",void 0),yt=dt=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteParameters")],yt);let ft=class extends((0,K.OU)(Z.o)){static{ht=this}constructor(e){super(e),this.arriveCurbApproach=null,this.arriveTime=null,this.arriveTimeOffset=null,this.bearing=null,this.bearingTol=null,this.cumulativeCosts=null,this.cumulativeDistance=null,this.cumulativeDuration=null,this.curbApproach=null,this.departCurbApproach=null,this.departTime=null,this.departTimeOffset=null,this.distanceToNetworkInMeters=null,this.lateDuration=null,this.locationType=null,this.name=null,this.navLatency=null,this.objectId=null,this.popupTemplate=null,this.positionAlong=null,this.routeName=null,this.serviceCosts=null,this.serviceDistance=null,this.serviceDuration=null,this.sequence=null,this.sideOfEdge=null,this.snapX=null,this.snapY=null,this.snapZ=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.timeWindowEnd=null,this.timeWindowEndOffset=null,this.timeWindowStart=null,this.timeWindowStartOffset=null,this.type="stop",this.violations=null,this.waitDuration=null,this.wait=null}readArriveTimeOffset(e,t){return le(t.attributes.ArriveTime,t.attributes.ArriveTimeUTC)}readCumulativeCosts(e,t){return ne(t.attributes,"Cumul_")}readDepartTimeOffset(e,t){return le(t.attributes.DepartTime,t.attributes.DepartTimeUTC)}set geometry(e){this._get("geometry")&&(this._set("positionAlong",null),this._set("sideOfEdge",null),this._set("sourceId",null),this._set("sourceOid",null),this._set("status",null)),this._set("geometry",e)}readServiceCosts(e,t){return ne(t.attributes,"Attr_")}writeServiceCosts(e,t){oe(e,t,"Attr_")}writeTimeWindowEnd(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowEnd=e.getTime())}writeTimeWindowStart(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowStart=e.getTime())}readViolations(e,t){return ne(t.attributes,"Violation_")}readWait(e,t){return ne(t.attributes,"Wait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"ArrivalCurbApproach",alias:"Arrival Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"ArrivalUTCOffset",alias:"Arrival Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"CumulativeCosts",alias:"Cumulative Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"CumulativeMeters",alias:"Cumulative Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"CumulativeMinutes",alias:"Cumulative Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DepartureCurbApproach",alias:"Departure Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DepartureTime",alias:"Departure Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"DepartureUTCOffset",alias:"Departure Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"LateMinutes",alias:"Minutes Late",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"LocationType",alias:"Location Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ServiceCosts",alias:"Service Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"ServiceMeters",alias:"Service Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"ServiceMinutes",alias:"Service Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TimeWindowEnd",alias:"Time Window End",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"TimeWindowEndUTCOffset",alias:"Time Window End Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TimeWindowStart",alias:"Time Window Start",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"TimeWindowStartUTCOffset",alias:"Time Window Start Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"WaitMinutes",alias:"Minutes Wait",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new ht({arriveCurbApproach:null!=e.attributes.ArrivalCurbApproach?U.JJ.fromJSON(e.attributes.ArrivalCurbApproach):null,arriveTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arriveTimeOffset:e.attributes.ArrivalUTCOffset,cumulativeCosts:null!=e.attributes.CumulativeCosts?se(JSON.parse(e.attributes.CumulativeCosts)):null,cumulativeDistance:e.attributes.CumulativeMeters??null,cumulativeDuration:e.attributes.CumulativeMinutes??null,curbApproach:null!=e.attributes.CurbApproach?U.JJ.fromJSON(e.attributes.CurbApproach):null,departCurbApproach:null!=e.attributes.DepartureCurbApproach?U.JJ.fromJSON(e.attributes.DepartureCurbApproach):null,departTime:null!=e.attributes.DepartureTime?new Date(e.attributes.DepartureTime):null,departTimeOffset:e.attributes.DepartureUTCOffset??null,geometry:e.geometry,lateDuration:e.attributes.LateMinutes??null,locationType:null!=e.attributes.LocationType?U.EM.fromJSON(e.attributes.LocationType):null,name:e.attributes.Name,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,routeName:e.attributes.RouteName,sequence:e.attributes.Sequence??null,serviceCosts:null!=e.attributes.ServiceCosts?se(JSON.parse(e.attributes.ServiceCosts)):null,serviceDistance:e.attributes.ServiceMeters??null,serviceDuration:e.attributes.ServiceMinutes??null,status:null!=e.attributes.Status?U.$r.fromJSON(e.attributes.Status):null,symbol:e.symbol,timeWindowEnd:null!=e.attributes.TimeWindowEnd?new Date(e.attributes.TimeWindowEnd):null,timeWindowEndOffset:e.attributes.TimeWindowEndUTCOffset??null,timeWindowStart:null!=e.attributes.TimeWindowStart?new Date(e.attributes.TimeWindowStart):null,timeWindowStartOffset:e.attributes.TimeWindowStartUTCOffset??null,waitDuration:e.attributes.WaitMinutes??null})}toGraphic(){const e={ObjectID:this.objectId,ArrivalCurbApproach:this.arriveCurbApproach?U.JJ.toJSON(this.arriveCurbApproach):null,ArrivalTime:this.arriveTime?.getTime()??null,ArrivalUTCOffset:this.arriveTimeOffset,CumulativeCosts:this.cumulativeCosts?JSON.stringify(ae(this.cumulativeCosts)):null,CumulativeMeters:this.cumulativeDistance,CumulativeMinutes:this.cumulativeDuration,CurbApproach:this.curbApproach?U.JJ.toJSON(this.curbApproach):null,DepartureCurbApproach:this.departCurbApproach?U.JJ.toJSON(this.departCurbApproach):null,DepartureTime:this.departTime?.getTime()??null,DepartureUTCOffset:this.departTimeOffset,LateMinutes:this.lateDuration,LocationType:this.locationType?U.EM.toJSON(this.locationType):null,Name:this.name,RouteName:this.routeName,Sequence:this.sequence,ServiceCosts:this.serviceCosts?JSON.stringify(ae(this.serviceCosts)):null,ServiceMeters:this.serviceDistance,ServiceMinutes:this.serviceDuration,Status:this.status?U.$r.toJSON(this.status):null,TimeWindowEnd:this.timeWindowEnd?.getTime()??null,TimeWindowEndUTCOffset:this.timeWindowEndOffset??this.arriveTimeOffset,TimeWindowStart:this.timeWindowStart?.getTime()??null,TimeWindowStartUTCOffset:this.timeWindowStartOffset??this.arriveTimeOffset,WaitMinutes:this.waitDuration};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};function gt(e){if(!e.length)return;const t=e.toArray(),r=t.map(({objectId:e})=>e).filter(e=>null!=e);let i=Math.max(...r,0);for(const e of t)e.objectId??=++i}function bt(e,t){return e.length===t.length&&vt(e)&&vt(t)}function vt(e){return e.every(({objectId:e})=>null!=e)}function wt(e,t){return!!e.length||!!t.length}function Ct(e){return e.length?e:null}function Tt(e){switch(e){case"esriGeometryPoint":return{type:"esriSMS",style:"esriSMSCircle",size:12,color:[0,0,0,0],outline:Tt("esriGeometryPolyline")};case"esriGeometryPolyline":return{type:"esriSLS",style:"esriSLSSolid",width:1,color:[0,0,0,0]};case"esriGeometryPolygon":return{type:"esriSFS",style:"esriSFSNull",outline:Tt("esriGeometryPolyline")}}}function Mt(e){return"layers"in e}async function St(e){const t=T.A.WGS84;return await(0,C.initializeProjection)(e.spatialReference,t),(0,C.project)(e,t)}function At(e,t){if(t&&e?.length&&!e.every(({symbol:e})=>!!e))for(const r of e)r.symbol=t}function It(e,t){switch(t){case"seconds":return e/60;case"hours":return 60*e;case"days":return 60*e*24;default:return e}}function Ot(e,t){return"decimal-degrees"===t||"points"===t||"unknown"===t?e:(0,h.oU)(e,t,"meters")}(0,i.Cg)([(0,g.MZ)({type:U.JJ.apiValues,json:{read:{source:"attributes.ArrivalCurbApproach",reader:U.JJ.read}}})],ft.prototype,"arriveCurbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{read:{source:"attributes.ArriveTimeUTC"}}})],ft.prototype,"arriveTime",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"arriveTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("arriveTimeOffset",["attributes.ArriveTime","attributes.ArriveTimeUTC"])],ft.prototype,"readArriveTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Bearing",read:!1,write:!0}})],ft.prototype,"bearing",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.BearingTol",read:!1,write:!0}})],ft.prototype,"bearingTol",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"cumulativeCosts",void 0),(0,i.Cg)([(0,Y.w)("cumulativeCosts",["attributes"])],ft.prototype,"readCumulativeCosts",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"cumulativeDistance",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"cumulativeDuration",void 0),(0,i.Cg)([(0,g.MZ)({type:U.JJ.apiValues,json:{name:"attributes.CurbApproach",read:{reader:U.JJ.read},write:{writer:U.JJ.write}}})],ft.prototype,"curbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:U.JJ.apiValues,json:{read:{source:"attributes.DepartCurbApproach",reader:U.JJ.read}}})],ft.prototype,"departCurbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{read:{source:"attributes.DepartTimeUTC"}}})],ft.prototype,"departTime",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"departTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("departTimeOffset",["attributes.DepartTime","attributes.DepartTimeUTC"])],ft.prototype,"readDepartTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.DistanceToNetworkInMeters"}}})],ft.prototype,"distanceToNetworkInMeters",void 0),(0,i.Cg)([(0,g.MZ)({type:ge.A,json:{write:!0},value:null})],ft.prototype,"geometry",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"lateDuration",void 0),(0,i.Cg)([(0,g.MZ)({type:U.EM.apiValues,json:{name:"attributes.LocationType",read:{reader:U.EM.read},write:{writer:U.EM.write}}})],ft.prototype,"locationType",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],ft.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.NavLatency",read:!1,write:!0}})],ft.prototype,"navLatency",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],ft.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],ft.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.PosAlong"}})],ft.prototype,"positionAlong",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.RouteName"}})],ft.prototype,"routeName",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"serviceCosts",void 0),(0,i.Cg)([(0,Y.w)("serviceCosts",["attributes"])],ft.prototype,"readServiceCosts",null),(0,i.Cg)([(0,H.K)("serviceCosts")],ft.prototype,"writeServiceCosts",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"serviceDistance",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"serviceDuration",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Sequence"}})],ft.prototype,"sequence",void 0),(0,i.Cg)([(0,g.MZ)({type:U.mt.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:U.mt.read},write:{writer:U.mt.write}}})],ft.prototype,"sideOfEdge",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.SnapX"}}})],ft.prototype,"snapX",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.SnapY"}}})],ft.prototype,"snapY",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.SnapZ"}}})],ft.prototype,"snapZ",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceID"}})],ft.prototype,"sourceId",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceOID"}})],ft.prototype,"sourceOid",void 0),(0,i.Cg)([(0,g.MZ)({type:U.$r.apiValues,json:{name:"attributes.Status",read:{reader:U.$r.read},write:{writer:U.$r.write}}})],ft.prototype,"status",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],ft.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{name:"attributes.TimeWindowEnd"}})],ft.prototype,"timeWindowEnd",void 0),(0,i.Cg)([(0,H.K)("timeWindowEnd")],ft.prototype,"writeTimeWindowEnd",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"timeWindowEndOffset",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{name:"attributes.TimeWindowStart"}})],ft.prototype,"timeWindowStart",void 0),(0,i.Cg)([(0,H.K)("timeWindowStart")],ft.prototype,"writeTimeWindowStart",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"timeWindowStartOffset",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],ft.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"violations",void 0),(0,i.Cg)([(0,Y.w)("violations",["attributes"])],ft.prototype,"readViolations",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"waitDuration",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"wait",void 0),(0,i.Cg)([(0,Y.w)("wait",["attributes"])],ft.prototype,"readWait",null),ft=ht=(0,i.Cg)([(0,g.$K)("esri.rest.support.Stop")],ft);const jt=l.A.ofType(Be),Nt=l.A.ofType(Fe),Zt=l.A.ofType(_e),Dt=l.A.ofType(Je),xt=l.A.ofType($e),Bt=l.A.ofType(ft);let Rt=class extends((0,A.dM)((0,j.j)((0,I.q)((0,O.A)((0,c.M)(S.A)))))){constructor(e){super(e),this._cachedServiceDescription=null,this._featureCollection=null,this._type="Feature Collection",this.checksum=null,this.defaultSymbols=new P,this.directionLines=null,this.directionPoints=null,this.featureCollectionType="route",this.legendEnabled=!1,this.maxScale=0,this.minScale=0,this.pointBarriers=new Zt,this.polygonBarriers=new Dt,this.polylineBarriers=new xt,this.routeInfo=null,this.spatialReference=T.A.WGS84,this.stops=new Bt,this.type="route"}initialize(){const e=()=>{this._setStopSymbol(this.stops)},t=()=>{At(this.pointBarriers,this.defaultSymbols.pointBarriers)},r=()=>{At(this.polylineBarriers,this.defaultSymbols.polylineBarriers)},i=()=>{At(this.polygonBarriers,this.defaultSymbols.polygonBarriers)};this.addHandles([(0,m.on)(()=>this.stops,"change",e,{sync:!0,onListenerAdd:e}),(0,m.on)(()=>this.pointBarriers,"change",t,{sync:!0,onListenerAdd:t}),(0,m.on)(()=>this.polylineBarriers,"change",r,{sync:!0,onListenerAdd:r}),(0,m.on)(()=>this.polygonBarriers,"change",i,{sync:!0,onListenerAdd:i})])}writeFeatureCollectionWebmap(e,t,r,i){const n=[this._writePolygonBarriers(),this._writePolylineBarriers(),this._writePointBarriers(),this._writeRouteInfo(),this._writeDirectionLines(),this._writeDirectionPoints(),this._writeStops()].filter(e=>!!e),o=n.map((e,t)=>t),s="web-map"===i.origin?"featureCollection.layers":"layers";(0,d.sM)(s,n,t),t.opacity=this.opacity,t.visibility=this.visible,t.visibleLayers=o}readDirectionLines(e,t){return this._getNetworkFeatures(t,"DirectionLines",e=>Be.fromGraphic(e))}readDirectionPoints(e,t){return this._getNetworkFeatures(t,"DirectionPoints",e=>Fe.fromGraphic(e))}get fullExtent(){const e=new v.A({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:T.A.WGS84});if(null!=this.routeInfo?.geometry)return this.routeInfo.geometry.extent??e;if(null==this.stops)return e;const t=this.stops.filter(e=>null!=e.geometry);if(t.length<2)return e;const{spatialReference:r}=t.at(0).geometry;if(null==r)return e;const i=t.toArray().map(e=>{const t=e.geometry;return[t.x,t.y]});return new w.A({points:i,spatialReference:r}).extent}readMaxScale(e,t){const r=Mt(t)?t.layers:t.featureCollection?.layers,i=r?.find(e=>null!=e.layerDefinition.maxScale);return i?.layerDefinition.maxScale??0}readMinScale(e,t){const r=Mt(t)?t.layers:t.featureCollection?.layers,i=r?.find(e=>null!=e.layerDefinition.minScale);return i?.layerDefinition.minScale??0}readPointBarriers(e,t){return this._getNetworkFeatures(t,"Barriers",e=>_e.fromGraphic(e))}readPolygonBarriers(e,t){return this._getNetworkFeatures(t,"PolygonBarriers",e=>Je.fromGraphic(e))}readPolylineBarriers(e,t){return this._getNetworkFeatures(t,"PolylineBarriers",e=>$e.fromGraphic(e))}readRouteInfo(e,t){return this._getNetworkFeatures(t,"RouteInfo",e=>Ge.fromGraphic(e)).at(0)??null}readSpatialReference(e,t){const r=Mt(t)?t.layers:t.featureCollection?.layers;if(!r?.length)return T.A.WGS84;const{layerDefinition:i,featureSet:n}=r[0],o=n.features[0],s=o?.geometry?.spatialReference??n.spatialReference??i.spatialReference??i.extent.spatialReference??M.KK;return T.A.fromJSON(s)}readStops(e,t){return this._getNetworkFeatures(t,"Stops",e=>ft.fromGraphic(e),e=>this._setStopSymbol(e))}get title(){return this.routeInfo?.name??"Route"}set title(e){this._overrideIfSome("title",e)}get url(){return n.A.routeServiceUrl}set url(e){null!=e?this._set("url",(0,N.Jf)(e,p.A.getLogger(this))):this._set("url",n.A.routeServiceUrl)}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}removeAll(){this.removeResult(),this.pointBarriers.removeAll(),this.polygonBarriers.removeAll(),this.polylineBarriers.removeAll(),this.stops.removeAll()}removeResult(){null!=this.directionLines&&(this.directionLines.removeAll(),this._set("directionLines",null)),null!=this.directionPoints&&(this.directionPoints.removeAll(),this._set("directionPoints",null)),null!=this.routeInfo&&this._set("routeInfo",null)}async save(){await this.load();const{fullExtent:e,portalItem:t}=this;if(!t)throw new u.A("routelayer:portal-item-not-set","save() requires to the layer to have a portal item");if(!t.id)throw new u.A("routelayer:portal-item-not-saved","Please use saveAs() first to save the routelayer");if("Feature Collection"!==t.type)throw new u.A("routelayer:portal-item-wrong-type",'Portal item needs to have type "Feature Collection"');if(!this.routeInfo)throw new u.A("routelayer:route-unsolved","save() requires a solved route");const{portal:r}=t;await r.signIn(),r.user||await t.reload();const{itemUrl:i,itemControl:n}=t;if("admin"!==n&&"update"!==n)throw new u.A("routelayer:insufficient-permissions","To save this layer, you need to be the owner or an administrator of your organization");const o={messages:[],origin:"portal-item",portal:r,url:i?(0,f.An)(i):void 0,writtenProperties:[]},s=this.write(void 0,o);return t.extent=await St(e),t.title=this.title,await t.update({data:s}),t}async saveAs(e,t={}){if(await this.load(),null==this.routeInfo)throw new u.A("routelayer:route-unsolved","saveAs() requires a solved route");const r=E.default.from(e).clone();r.extent??=await St(this.fullExtent),r.id=null,r.portal??=_.A.getDefault(),r.title??=this.title,r.type="Feature Collection",r.typeKeywords=["Data","Feature Collection",L.mm.MULTI_LAYER,"Route Layer"];const{portal:i}=r,n={messages:[],origin:"portal-item",portal:i,url:null,writtenProperties:[]};await i.signIn();const o=t?.folder,s=this.write(void 0,n);return await i.user.addItem({item:r,folder:o,data:s}),this.portalItem=r,(0,b.v)(n),n.portalItem=r,r}async solve(e,t){gt(this.stops),gt(this.pointBarriers),gt(this.polylineBarriers),gt(this.polygonBarriers);const r=e?.stops??this.stops,i=e?.pointBarriers??Ct(this.pointBarriers),n=e?.polylineBarriers??Ct(this.polylineBarriers),o=e?.polygonBarriers??Ct(this.polygonBarriers);if(null==r)throw new u.A("routelayer:undefined-stops","the route layer must have stops defined in the route parameters.");if((function(e){return"esri.rest.support.FeatureSet"===e.declaredClass}(r)||function(e){return"esri.rest.support.NetworkFeatureSet"===e.declaredClass}(r))&&r.features.length<2||l.A.isCollection(r)&&r.length<2)throw new u.A("routelayer:insufficent-stops","the route layer must have two or more stops to solve a route.");if(l.A.isCollection(r))for(const e of r)e.routeName=null;const s=e?.apiKey,{checksum:a,url:p}=this,c=await this._getServiceDescription(p,s,t),d=e?.travelMode??c.defaultTravelMode,m=e?.accumulateAttributes??[];d&&(m.push(d.distanceAttributeName),d.timeAttributeName&&m.push(d.timeAttributeName));const h={accumulateAttributes:m,checksum:a,directionsOutputType:"featuresets",ignoreInvalidLocations:!0,pointBarriers:i,polylineBarriers:n,polygonBarriers:o,preserveObjectID:!0,returnBarriers:!!i,returnDirections:!0,returnPolygonBarriers:!!o,returnPolylineBarriers:!!n,returnRoutes:!0,returnStops:!0,stops:r},f=yt.from(e??{});let g;f.set(h);try{g=await De(p,f,t)}catch(e){throw(0,y.zf)(e)?e:new u.A("routelayer:failed-route-request","the routing request failed",{error:e})}const b=this._toRouteLayerSolution(g);return this._isOverridden("title")||(this.title=b.routeInfo.name??"Route"),this._populatePortalFields(b,c,f),b}update(e){const{checksum:t,directionLines:r,directionPoints:i,pointBarriers:n,polygonBarriers:o,polylineBarriers:s,routeInfo:a,stops:l}=e;bt(l,this.stops)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.arriveCurbApproach=r.arriveCurbApproach,e.arriveTime=r.arriveTime,e.arriveTimeOffset=r.arriveTimeOffset,e.cumulativeCosts=r.cumulativeCosts,e.cumulativeDistance=r.cumulativeDistance,e.cumulativeDuration=r.cumulativeDuration,e.curbApproach=r.curbApproach,e.departCurbApproach=r.departCurbApproach,e.departTime=r.departTime,e.departTimeOffset=r.departTimeOffset,e.distanceToNetworkInMeters=r.distanceToNetworkInMeters,e.geometry=r.geometry,e.lateDuration=r.lateDuration,e.name=r.name,e.navLatency=r.navLatency,e.positionAlong=r.positionAlong,e.routeName=r.routeName,e.serviceCosts=r.serviceCosts,e.serviceDistance=r.serviceDistance,e.serviceDuration=r.serviceDuration,e.sequence=r.sequence,e.sideOfEdge=r.sideOfEdge,e.snapX=r.snapX,e.snapY=r.snapY,e.snapZ=r.snapZ,e.sourceId=r.sourceId,e.sourceOid=r.sourceOid,e.status=r.status,e.symbol=r.symbol,e.timeWindowEnd=r.timeWindowEnd,e.timeWindowStart=r.timeWindowStart,e.violations=r.violations,e.waitDuration=r.waitDuration,e.wait=r.wait)}}(l,this.stops):this.set({stops:l}),wt(n,this.pointBarriers)&&(bt(n,this.pointBarriers)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.addedCost=r.addedCost,e.barrierType=r.barrierType,e.costs=r.costs,e.curbApproach=r.curbApproach,e.fullEdge=r.fullEdge,e.geometry=r.geometry,e.name=r.name,e.sideOfEdge=r.sideOfEdge,e.sourceId=r.sourceId,e.sourceOid=r.sourceOid,e.status=r.status,e.symbol=r.symbol)}}(n,this.pointBarriers):this.set({pointBarriers:n})),wt(s,this.polylineBarriers)&&(bt(s,this.polylineBarriers)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.barrierType=r.barrierType,e.costs=r.costs,e.geometry=r.geometry,e.name=r.name,e.scaleFactor=r.scaleFactor,e.symbol=r.symbol)}}(s,this.polylineBarriers):this.set({polylineBarriers:s})),wt(o,this.polygonBarriers)&&(bt(o,this.polygonBarriers)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.barrierType=r.barrierType,e.costs=r.costs,e.geometry=r.geometry,e.name=r.name,e.scaleFactor=r.scaleFactor,e.symbol=r.symbol)}}(o,this.polygonBarriers):this.set({polygonBarriers:o})),this.set({checksum:t}),this._set("directionLines",r),this._set("directionPoints",i),this._set("routeInfo",a),a.geometry&&(this.spatialReference=a.geometry.spatialReference)}_getNetworkFeatures(e,t,r,i){const n=Mt(e)?e.layers:e.featureCollection?.layers,a=n?.find(e=>e.layerDefinition.name===t);if(null==a)return new l.A;const{layerDefinition:u,popupInfo:p,featureSet:c}=a,d=u.drawingInfo.renderer,{features:y}=c,m=c.spatialReference??u.spatialReference??u.extent.spatialReference??M.KK,h=d&&(0,J.L)(d),f=T.A.fromJSON(m),g=y.map(e=>{const i=o.A.fromJSON(e);i.geometry&&e.geometry&&null==e.geometry.spatialReference&&(i.geometry.spatialReference=f);const n=r(i);return n.symbol??=h?.getSymbol(i)??this._getNetworkSymbol(t),n.popupTemplate??=p&&s.A.fromJSON(p),n});return i&&g.some(({symbol:e})=>!e)&&i(g),new l.A(g)}_getNetworkSymbol(e){switch(e){case"Barriers":return this.defaultSymbols.pointBarriers;case"DirectionPoints":return this.defaultSymbols.directionPoints;case"DirectionLines":return this.defaultSymbols.directionLines;case"PolylineBarriers":return this.defaultSymbols.polylineBarriers;case"PolygonBarriers":return this.defaultSymbols.polygonBarriers;case"RouteInfo":return this.defaultSymbols.routeInfo;case"Stops":return null}}async _getServiceDescription(e,t,r){if(null!=this._cachedServiceDescription&&this._cachedServiceDescription.url===e)return this._cachedServiceDescription.serviceDescription;const i=await te(e,t,r);return this._cachedServiceDescription={serviceDescription:i,url:e},i}_setStopSymbol(e){const t=l.A.isCollection(e)?e.toArray():e;if(!t||!t.length||!this.defaultSymbols.stops||t.every(({symbol:e})=>!!e))return;const{first:r,last:i,middle:n,unlocated:o,waypoint:s,break:u}=this.defaultSymbols.stops,p=t.map(({sequence:e})=>e).filter(a.Ru),c=t.length===p.length;if(!this.routeInfo&&!c||1===t.length)return void t.forEach((e,o)=>{switch(o){case 0:e.symbol=r;break;case t.length-1:e.symbol=i;break;default:e.symbol=n}});const d=Math.min(...p),y=Math.max(...p);for(const e of t)e.sequence!==d?e.sequence!==y?this.routeInfo&&"ok"!==e.status&&"not-located-on-closest"!==e.status?e.symbol=o:"waypoint"!==e.locationType?"break"!==e.locationType?e.symbol=n:e.symbol=u:e.symbol=s:e.symbol=i:e.symbol=r}_toRouteLayerSolution(e){const{checksum:t,routeResults:r}=e,i=r[0].stops?.map(e=>ft.fromJSON(e.toJSON()));this._setStopSymbol(i);const n=new Bt(i),o=new Dt(e.polygonBarriers?.map(e=>Je.fromJSON(e.toJSON())));At(o,this.defaultSymbols.polygonBarriers);const s=new xt(e.polylineBarriers?.map(e=>$e.fromJSON(e.toJSON())));At(s,this.defaultSymbols.polylineBarriers);const a=new Zt(e.pointBarriers?.map(e=>_e.fromJSON(e.toJSON())));At(a,this.defaultSymbols.pointBarriers);const l=r[0].route?.toJSON(),u=Ge.fromJSON(l);u.symbol=this.defaultSymbols.routeInfo;const p=new Nt(r[0].directionPoints?.features.map(e=>Fe.fromJSON(e.toJSON())));At(p,this.defaultSymbols.directionPoints);const c=new jt(r[0].directionLines?.features.map(e=>Be.fromJSON(e.toJSON())));return At(c,this.defaultSymbols.directionLines),{checksum:t,directionLines:c,directionPoints:p,pointBarriers:a,polygonBarriers:o,polylineBarriers:s,routeInfo:u,stops:n}}_writeDirectionLines(){return this._writeNetworkFeatures(this.directionLines,this.defaultSymbols.directionLines,"esriGeometryPolyline",Be.fields,"DirectionLines","Direction Lines")}_writeDirectionPoints(){return this._writeNetworkFeatures(this.directionPoints,this.defaultSymbols.directionPoints,"esriGeometryPoint",Fe.fields,"DirectionPoints","Direction Points")}_writeNetworkFeatures(e,t,r,i,n,o){if(!e?.length)return null;const s=this.spatialReference.toJSON(),{fullExtent:a,maxScale:l,minScale:u}=this;return{featureSet:{features:e.toArray().map(e=>function(e){const{attributes:t,geometry:r,popupTemplate:i,symbol:n}=e.toGraphic().toJSON();return{attributes:t,geometry:r,popupInfo:i,symbol:n}}(e)),geometryType:r,spatialReference:s},layerDefinition:{capabilities:"Query,Update,Editing",drawingInfo:{renderer:{type:"simple",symbol:t?.toJSON()??Tt(r)}},extent:a.toJSON(),fields:i,geometryType:r,hasM:!1,hasZ:!1,maxScale:l,minScale:u,name:n,objectIdField:"ObjectID",spatialReference:s,title:o,type:"Feature Layer",typeIdField:""}}}_writePointBarriers(){return this._writeNetworkFeatures(this.pointBarriers,this.defaultSymbols.pointBarriers,"esriGeometryPoint",_e.fields,"Barriers","Point Barriers")}_writePolygonBarriers(){return this._writeNetworkFeatures(this.polygonBarriers,this.defaultSymbols.polygonBarriers,"esriGeometryPolygon",Je.fields,"PolygonBarriers","Polygon Barriers")}_writePolylineBarriers(){return this._writeNetworkFeatures(this.polylineBarriers,this.defaultSymbols.polylineBarriers,"esriGeometryPolyline",$e.fields,"PolylineBarriers","Line Barriers")}_writeRouteInfo(){return this._writeNetworkFeatures(null!=this.routeInfo?new l.A([this.routeInfo]):null,this.defaultSymbols.routeInfo,"esriGeometryPolyline",Ge.fields,"RouteInfo","Route Details")}_writeStops(){const e=this._writeNetworkFeatures(this.stops,null,"esriGeometryPoint",ft.fields,"Stops","Stops");if(null==e)return null;const{stops:t}=this.defaultSymbols,r=t?.first?.toJSON(),i=t?.middle?.toJSON(),n=t?.last?.toJSON();return e.layerDefinition.drawingInfo.renderer={type:"uniqueValue",field1:"Sequence",defaultSymbol:i,uniqueValueInfos:[{value:"1",symbol:r,label:"First Stop"},{value:`${this.stops.length}`,symbol:n,label:"Last Stop"}]},e}_populatePortalFields(e,t,r){const i=t.networkDataset?.networkAttributes,n=i?.filter(({usageType:e})=>"cost"===e)??[],o=r.travelMode??t.defaultTravelMode;if(null==o)return void p.A.getLogger(this).warn("route-layer:missing-travel-mode","The routing service must have a default travel mode or one must be specified in the route parameter.");const{timeAttributeName:s,distanceAttributeName:a}=o,l=n.find(({name:e})=>e===s),c=n.find(({name:e})=>e===a),d=r.travelMode?.impedanceAttributeName??r.impedanceAttribute??t.impedance,y=l?.units,m=c?.units;if(!y||!m)throw new u.A("routelayer:unknown-impedance-units","the units of either the distance or time impedance are unknown");const h=r.directionsLanguage??t.directionsLanguage,f=r.accumulateAttributes??t.accumulateAttributeNames??[],g=new Set(n.filter(({name:e})=>e===s||e===a||e===d||null!=e&&f.includes(e)).map(({name:e})=>e)),b=e=>{for(const t in e)g.has(t)||delete e[t]};for(const t of e.pointBarriers)null!=t.costs&&(t.addedCost=t.costs[d]??0,b(t.costs));for(const t of e.polygonBarriers)null!=t.costs&&(t.scaleFactor=t.costs[d]??1,b(t.costs));for(const t of e.polylineBarriers)null!=t.costs&&(t.scaleFactor=t.costs[d]??1,b(t.costs));const{routeInfo:v}=e,{findBestSequence:w,preserveFirstStop:C,preserveLastStop:T,startTimeIsUTC:M,timeWindowsAreUTC:S}=r;v.analysisSettings=new Ue({accumulateAttributes:f,directionsLanguage:h,findBestSequence:w,preserveFirstStop:C,preserveLastStop:T,startTimeIsUTC:M,timeWindowsAreUTC:S,travelMode:o}),v.totalDuration=It(v.totalCosts?.[s]??0,y),v.totalDistance=Ot(v.totalCosts?.[a]??0,m),v.totalLateDuration=It(v.totalViolations?.[s]??0,y),v.totalWaitDuration=It(v.totalWait?.[s]??0,y),null!=v.totalCosts&&b(v.totalCosts),null!=v.totalViolations&&b(v.totalViolations),null!=v.totalWait&&b(v.totalWait);for(const t of e.stops)null!=t.serviceCosts&&(t.serviceDuration=It(t.serviceCosts[s]??0,y),t.serviceDistance=Ot(t.serviceCosts[a]??0,m),b(t.serviceCosts)),null!=t.cumulativeCosts&&(t.cumulativeDuration=It(t.cumulativeCosts[s]??0,y),t.cumulativeDistance=Ot(t.cumulativeCosts[a]??0,m),b(t.cumulativeCosts)),null!=t.violations&&(t.lateDuration=It(t.violations[s]??0,y),b(t.violations)),null!=t.wait&&(t.waitDuration=It(t.wait[s]??0,y),b(t.wait))}};(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,origins:{"portal-item":{write:{allowNull:!0,ignoreOrigin:!0}},"web-map":{write:{overridePolicy(){return{allowNull:!0,ignoreOrigin:null==this.portalItem}}}}}}})],Rt.prototype,"_featureCollection",void 0),(0,i.Cg)([(0,H.K)(["web-map","portal-item"],"_featureCollection")],Rt.prototype,"writeFeatureCollectionWebmap",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{target:"type",overridePolicy(){return{ignoreOrigin:null!=this.portalItem}}}}}}})],Rt.prototype,"_type",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],Rt.prototype,"checksum",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:P})],Rt.prototype,"defaultSymbols",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Rt.prototype,"directionLines",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"directionLines",["layers","featureCollection.layers"])],Rt.prototype,"readDirectionLines",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Rt.prototype,"directionPoints",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"directionPoints",["layers","featureCollection.layers"])],Rt.prototype,"readDirectionPoints",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],Rt.prototype,"featureCollectionType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Rt.prototype,"fullExtent",null),(0,i.Cg)([(0,g.MZ)({json:{origins:{"web-map":{name:"featureCollection.showLegend"}},write:!0}})],Rt.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"]})],Rt.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],Rt.prototype,"maxScale",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"maxScale",["layers","featureCollection.layers"])],Rt.prototype,"readMaxScale",null),(0,i.Cg)([(0,g.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],Rt.prototype,"minScale",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"minScale",["layers","featureCollection.layers"])],Rt.prototype,"readMinScale",null),(0,i.Cg)([(0,g.MZ)({type:["ArcGISFeatureLayer"],value:"ArcGISFeatureLayer"})],Rt.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(_e)})],Rt.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"pointBarriers",["layers","featureCollection.layers"])],Rt.prototype,"readPointBarriers",null),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(Je)})],Rt.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"polygonBarriers",["layers","featureCollection.layers"])],Rt.prototype,"readPolygonBarriers",null),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType($e)})],Rt.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"polylineBarriers",["layers","featureCollection.layers"])],Rt.prototype,"readPolylineBarriers",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Rt.prototype,"routeInfo",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"routeInfo",["layers","featureCollection.layers"])],Rt.prototype,"readRouteInfo",null),(0,i.Cg)([(0,g.MZ)({type:T.A})],Rt.prototype,"spatialReference",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"spatialReference",["layers","featureCollection.layers"])],Rt.prototype,"readSpatialReference",null),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(ft)})],Rt.prototype,"stops",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"stops",["layers","featureCollection.layers"])],Rt.prototype,"readStops",null),(0,i.Cg)([(0,g.MZ)()],Rt.prototype,"title",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Rt.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],Rt.prototype,"url",null),Rt=(0,i.Cg)([(0,g.$K)("esri.layers.RouteLayer")],Rt);const Ft=Rt},76369(e,t,r){r.d(t,{LF:()=>T,M9:()=>M});var i=r(49186),n=r(93637),o=r(40876),s=r(59247),a=r(27865);class l extends SyntaxError{constructor(e,t,r,i){super(e),this.expected=t,this.found=r,this.location=i,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let r=null;const i=e.find(e=>e.source===this.location.source);i&&(r=i.text.split(/\r\n|\n|\r/g));const n=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,s=this.location.source+":"+o.line+":"+o.column;if(r){const e=this.location.end,i="".padEnd(o.line.toString().length," "),a=r[n.line-1],l=(n.line===e.line?e.column:a.length+1)-n.column||1;t+="\n --\x3e "+s+"\n"+i+" |\n"+o.line+" | "+a+"\n"+i+" | "+"".padEnd(n.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+s}return t}static buildMessage(e,t){function r(e){return e.codePointAt(0).toString(16).toUpperCase()}const i=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function n(e){return i?e.replace(i,e=>"\\u{"+r(e)+"}"):e}function o(e){return n(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+r(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+r(e)))}function s(e){return n(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+r(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+r(e)))}const a={literal:e=>'"'+o(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return a[e.type](e)}return"Expected "+function(e){const t=e.map(l);if(t.sort(),t.length>0){let e=1;for(let r=1;r<t.length;r++)t[r-1]!==t[r]&&(t[e]=t[r],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."}}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=p(e);return t&&0!==t.length?t:null}const t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new i.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:p(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,a.mj)(t[e].effects,t[e+1].effects))throw new i.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,a.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function p(e){let t;if(!e)return[];try{t=function(e,t){const r={},i=(t=void 0!==t?t:{}).grammarSource,n={start:Ce};let o=Ce;const s="none",a=")",u=",",p="(",c="%",d="px",y="cm",m="mm",h="in",f="pt",g="pc",b="deg",v="rad",w="grad",C="turn",T="#",M=".",S="e",A=/^[ \t\n\r]/,I=/^[a-z\-]/,O=/^[0-9a-fA-F]/,j=/^[+\-]/,N=/^[0-9]/,Z=ge("none"),D=he("none",!1),x=he(")",!1),B=he(",",!1),R=fe([" ","\t","\n","\r"],!1,!1,!1),F=ge("function"),P=he("(",!1),_=ge("identifier"),E=fe([["a","z"],"-"],!1,!1,!1),L=ge("percentage"),J=he("%",!1),k=ge("length"),$=he("px",!1),U=he("cm",!1),W=he("mm",!1),G=he("in",!1),V=he("pt",!1),q=he("pc",!1),z=ge("angle"),K=he("deg",!1),Y=he("rad",!1),H=he("grad",!1),X=he("turn",!1),Q=ge("number"),ee=ge("color"),te=he("#",!1),re=fe([["0","9"],["a","f"],["A","F"]],!1,!1,!1),ie=fe(["+","-"],!1,!1,!1),ne=fe([["0","9"]],!1,!1,!1),oe=he(".",!1),se=he("e",!1);let ae=0|t.peg$currPos,le=ae;const ue=[{line:1,column:1}];let pe,ce=ae,de=t.peg$maxFailExpected||[],ye=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in n))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=n[t.startRule]}function me(){return e.substring(le,ae)}function he(e,t){return{type:"literal",text:e,ignoreCase:t}}function fe(e,t,r,i){return{type:"class",parts:e,inverted:t,ignoreCase:r,unicode:i}}function ge(e){return{type:"other",description:e}}function be(t){let r,i=ue[t];if(i)return i;if(t>=ue.length)r=ue.length-1;else for(r=t;!ue[--r];);for(i=ue[r],i={line:i.line,column:i.column};r<t;)10===e.charCodeAt(r)?(i.line++,i.column=1):i.column++,r++;return ue[t]=i,i}function ve(e,t,r){const n=be(e),o=be(t);return{source:i,start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:o.line,column:o.column}}}function we(e){ae<ce||(ae>ce&&(ce=ae,de=[]),de.push(e))}function Ce(){let e;return e=Te(),e===r&&(e=function(){let e,t;if(e=[],t=Me(),t!==r)for(;t!==r;)e.push(t),t=Me();else e=r;return e}()),e}function Te(){let t,i;return ye++,t=ae,Ae(),e.substr(ae,4)===s?(i=s,ae+=4):(i=r,0===ye&&we(D)),i!==r?(Ae(),le=t,t=[]):(ae=t,t=r),ye--,t===r&&0===ye&&we(Z),t}function Me(){let t,i,n,o;return t=ae,Ae(),i=function(){let t,i,n;return ye++,t=ae,i=Ie(),i!==r?(40===e.charCodeAt(ae)?(n=p,ae++):(n=r,0===ye&&we(P)),n!==r?(le=t,t=i):(ae=t,t=r)):(ae=t,t=r),ye--,t===r&&(i=r,0===ye&&we(F)),t}(),i!==r?(Ae(),n=function(){let t,i,n,o,s,a,l,p;if(t=ae,i=Se(),i!==r){for(n=[],o=ae,s=Ae(),44===e.charCodeAt(ae)?(a=u,ae++):(a=r,0===ye&&we(B)),a===r&&(a=null),l=Ae(),p=Se(),p!==r?(s=[s,a,l,p],o=s):(ae=o,o=r);o!==r;)n.push(o),o=ae,s=Ae(),44===e.charCodeAt(ae)?(a=u,ae++):(a=r,0===ye&&we(B)),a===r&&(a=null),l=Ae(),p=Se(),p!==r?(s=[s,a,l,p],o=s):(ae=o,o=r);le=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(i,n)}else ae=t,t=r;return t}(),n===r&&(n=null),Ae(),41===e.charCodeAt(ae)?(o=a,ae++):(o=r,0===ye&&we(x)),o!==r?(Ae(),le=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(i,n)):(ae=t,t=r)):(ae=t,t=r),t}function Se(){let e,t;return e=ae,t=Oe(),t===r&&(t=je(),t===r&&(t=Ne(),t===r&&(t=function(){let e,t;return ye++,e=ae,Ae(),t=De(),t!==r?(le=e,e=function(e){return{value:e,unit:null}}(t)):(ae=e,e=r),ye--,e===r&&0===ye&&we(Q),e}()))),t!==r&&(le=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===r&&(e=ae,t=Ze(),t!==r&&(le=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function Ae(){let t,i;for(ye++,t=[],i=e.charAt(ae),A.test(i)?ae++:(i=r,0===ye&&we(R));i!==r;)t.push(i),i=e.charAt(ae),A.test(i)?ae++:(i=r,0===ye&&we(R));return ye--,t}function Ie(){let t,i,n;if(ye++,t=ae,i=[],n=e.charAt(ae),I.test(n)?ae++:(n=r,0===ye&&we(E)),n!==r)for(;n!==r;)i.push(n),n=e.charAt(ae),I.test(n)?ae++:(n=r,0===ye&&we(E));else i=r;return i!==r&&(le=t,i=me()),t=i,ye--,t===r&&(i=r,0===ye&&we(_)),t}function Oe(){let t,i,n;return ye++,t=ae,Ae(),i=De(),i!==r?(37===e.charCodeAt(ae)?(n=c,ae++):(n=r,0===ye&&we(J)),n!==r?(le=t,t=function(e){return{value:e,unit:"%"}}(i)):(ae=t,t=r)):(ae=t,t=r),ye--,t===r&&0===ye&&we(L),t}function je(){let t,i,n;return ye++,t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===d?(n=d,ae+=2):(n=r,0===ye&&we($)),n!==r?(le=t,t=function(e){return{value:e,unit:"px"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===y?(n=y,ae+=2):(n=r,0===ye&&we(U)),n!==r?(le=t,t=function(e){return{value:e,unit:"cm"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===m?(n=m,ae+=2):(n=r,0===ye&&we(W)),n!==r?(le=t,t=function(e){return{value:e,unit:"mm"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===h?(n=h,ae+=2):(n=r,0===ye&&we(G)),n!==r?(le=t,t=function(e){return{value:e,unit:"in"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===f?(n=f,ae+=2):(n=r,0===ye&&we(V)),n!==r?(le=t,t=function(e){return{value:e,unit:"pt"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===g?(n=g,ae+=2):(n=r,0===ye&&we(q)),n!==r?(le=t,t=function(e){return{value:e,unit:"pc"}}(i)):(ae=t,t=r)):(ae=t,t=r)))))),ye--,t===r&&0===ye&&we(k),t}function Ne(){let t,i,n;return ye++,t=ae,i=De(),i!==r?(e.substr(ae,3)===b?(n=b,ae+=3):(n=r,0===ye&&we(K)),n!==r?(le=t,t=function(e){return{value:e,unit:"deg"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,3)===v?(n=v,ae+=3):(n=r,0===ye&&we(Y)),n!==r?(le=t,t=function(e){return{value:e,unit:"rad"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,4)===w?(n=w,ae+=4):(n=r,0===ye&&we(H)),n!==r?(le=t,t=function(e){return{value:e,unit:"grad"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,4)===C?(n=C,ae+=4):(n=r,0===ye&&we(X)),n!==r?(le=t,t=function(e){return{value:e,unit:"turn"}}(i)):(ae=t,t=r)):(ae=t,t=r)))),ye--,t===r&&(i=r,0===ye&&we(z)),t}function Ze(){let t,i,n,o;if(ye++,t=ae,35===e.charCodeAt(ae)?(i=T,ae++):(i=r,0===ye&&we(te)),i!==r){if(n=[],o=e.charAt(ae),O.test(o)?ae++:(o=r,0===ye&&we(re)),o!==r)for(;o!==r;)n.push(o),o=e.charAt(ae),O.test(o)?ae++:(o=r,0===ye&&we(re));else n=r;n!==r?(le=t,t={type:"hex",value:me()}):(ae=t,t=r)}else ae=t,t=r;return t===r&&(t=ae,i=Me(),i!==r&&(le=t,i=function(e){return{type:"function",value:e}}(i)),t=i,t===r&&(t=ae,i=Ie(),i!==r&&(le=t,i={type:"named",value:me()}),t=i)),ye--,t===r&&(i=r,0===ye&&we(ee)),t}function De(){let t,i,n,o,s,a,l,u;for(t=ae,i=e.charAt(ae),j.test(i)?ae++:(i=r,0===ye&&we(ie)),i===r&&(i=null),n=ae,o=[],s=e.charAt(ae),N.test(s)?ae++:(s=r,0===ye&&we(ne));s!==r;)o.push(s),s=e.charAt(ae),N.test(s)?ae++:(s=r,0===ye&&we(ne));if(46===e.charCodeAt(ae)?(s=M,ae++):(s=r,0===ye&&we(oe)),s!==r){if(a=[],l=e.charAt(ae),N.test(l)?ae++:(l=r,0===ye&&we(ne)),l!==r)for(;l!==r;)a.push(l),l=e.charAt(ae),N.test(l)?ae++:(l=r,0===ye&&we(ne));else a=r;a!==r?(o=[o,s,a],n=o):(ae=n,n=r)}else ae=n,n=r;if(n===r)if(n=[],o=e.charAt(ae),N.test(o)?ae++:(o=r,0===ye&&we(ne)),o!==r)for(;o!==r;)n.push(o),o=e.charAt(ae),N.test(o)?ae++:(o=r,0===ye&&we(ne));else n=r;if(n!==r){if(o=ae,101===e.charCodeAt(ae)?(s=S,ae++):(s=r,0===ye&&we(se)),s!==r){if(a=e.charAt(ae),j.test(a)?ae++:(a=r,0===ye&&we(ie)),a===r&&(a=null),l=[],u=e.charAt(ae),N.test(u)?ae++:(u=r,0===ye&&we(ne)),u!==r)for(;u!==r;)l.push(u),u=e.charAt(ae),N.test(u)?ae++:(u=r,0===ye&&we(ne));else l=r;l!==r?(s=[s,a,l],o=s):(ae=o,o=r)}else ae=o,o=r;o===r&&(o=null),le=t,t=parseFloat(me())}else ae=t,t=r;return t}pe=o();const xe=pe!==r&&ae===e.length;function Be(){throw pe!==r&&ae<e.length&&we({type:"end"}),function(e,t,r){return new l(l.buildMessage(e,t),e,t,r)}(de,ce<e.length?function(t=ae){const r=e.codePointAt(t);return void 0===r?"":String.fromCodePoint(r)}(ce):null,ce<e.length?ve(ce,ce+1):ve(ce,ce))}return t.peg$library?{peg$result:pe,peg$currPos:ae,peg$FAILED:r,peg$maxFailExpected:de,peg$maxFailPos:ce,peg$success:xe,peg$throw:xe?void 0:Be}:xe?pe:void Be()}(e)}catch(t){throw new i.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0])),new s.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0])),new s.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new i.A("effect:type-error",`Expected <angle>, Actual: ${d(e)}`,{term:e})}(e),e.value*m[e.unit]||0}(e.parameters[0])),new s.Nd(t)}(e);case"blur":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0]),y(t,e.parameters[0])),new s.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new i.A("effect:type-error","Accepts only one color",{});r=b(n)}else{const e=g(n);if(Object.isFrozen(t))throw new i.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&y(e,n)}if(t.length<2||t.length>3)throw new i.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new s.$b(t[0],t[1],t[2]||0,r||v("black"))}(e);case"bloom":return function(e){let t=1,r=0,i=0;return c(e.parameters,3),e.parameters[0]&&(t=f(e.parameters[0])),e.parameters[1]&&(r=g(e.parameters[1]),y(r,e.parameters[1])),e.parameters[2]&&(i=f(e.parameters[2])),new s.bv(t,r,i)}(e)}}catch(t){throw t.details.filter=e,t}throw new i.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function c(e,t){if(e.length>t)throw new i.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function d(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in h)return"<length>";if(e.unit in m)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function y(e,t){if(e<0)throw new i.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},h={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function f(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new i.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${d(e)}`,{term:e})}(e);const t=e.value;return y(t,e),"%"===e.unit?.01*t:t}function g(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=h[e.unit]))throw new i.A("effect:type-error",`Expected <length>, Actual: ${d(e)}`,{term:e})}(e),e.value*h[e.unit]||0}function b(e){switch(e.colorType){case"hex":return(0,o.j5)(e.value);case"named":return v(e.value);case"function":return function(e){if(c(e.parameters,4),w.test(e.name))return[f(e.parameters[0]),f(e.parameters[1]),f(e.parameters[2]),e.parameters[3]?f(e.parameters[3]):1];if(C.test(e.name))return(0,o.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new i.A("effect:type-error",`Expected <double>, Actual: ${d(e)}`,{term:e})}(e),y(e.value,e),e.value}(e.parameters[0]),f(e.parameters[1]),f(e.parameters[2]),e.parameters[3]?f(e.parameters[3]):1);throw new i.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function v(e){if(!(0,o.V6)(e))throw new i.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,o.c4)(e)}const w=/^rgba?/i,C=/^hsla?/i;function T(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:S(r.value)});return t}return S(e)}(e)}catch(e){r?.messages?.push(e)}return null}function M(e,t,r,i){try{const i=function(e){const t=u(e);return t?(0,a.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,n.sM)(r,i,t)}catch(e){i.messages&&i.messages.push(e)}}function S(e){if(!e?.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[A(r,"amount")];break;case"blur":e=[A(r,"radius","pt")];break;case"hue-rotate":e=[A(r,"angle","deg")];break;case"drop-shadow":e=[A(r,"xoffset","pt"),A(r,"yoffset","pt"),A(r,"blurRadius","pt"),I(r,"color")];break;case"bloom":e=[A(r,"strength"),A(r,"radius","pt"),A(r,"threshold")]}const i=`${r.type}(${e.filter(Boolean).join(" ")})`;u(i),t.push(i)}return t.join(" ")}function A(e,t,r){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function I(e,t){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const r=[];for(const i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>n})},63074(e,t,r){r.d(t,{LF:()=>u,dM:()=>p,sU:()=>a});var i=r(5482),n=r(91429),o=r(89317),s=r(76369);const a={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:o.K}},"portal-item":{read:!0,write:{layerContainerTypes:o.K}}}}},l={read:{reader:s.LF},write:{allowNull:!0,writer:s.M9,layerContainerTypes:o.K}},u={json:{read:!1,write:!1,origins:{"web-map":l,"portal-item":l}}},p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,i.Cg)([(0,n.MZ)(a)],r.prototype,"blendMode",void 0),(0,i.Cg)([(0,n.MZ)(u)],r.prototype,"effect",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.BlendLayer")],r),r}},8303(e,t,r){r.d(t,{A:()=>C});var i=r(5482),n=r(92602),o=r(70333),s=r(11254),a=r(60999),l=r(49186),u=r(53966),p=r(97768),c=r(17676),d=r(84952),y=r(91429),m=r(77548),h=r(20655),f=r(80812),g=r(41318),b=r(10407),v=r(36005),w=r(43937);const C=e=>{const t=e;let C=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.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,r){if(t.itemId)return new f.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,c.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,c.zf)(e)||u.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,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!o.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let s,a;if(n)s=r.portal.url;else try{s=await(0,m.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!s||!(0,d.b8)(s,r.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,c.QP)(e)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(n?await r.reload():(r=new f.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,c.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.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 r=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=h.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?g.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||h.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.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,y.MZ)({type:f.default})],C.prototype,"portalItem",null),(0,i.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,i.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,i.Cg)([(0,y.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,i.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],C),C},T={credential:null,user:null}},25036(e,t,r){r.d(t,{j:()=>o});var i=r(5482),n=r(91429);const o=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,n.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}},5757(e,t,r){r.d(t,{B:()=>n,P:()=>i});const i=Symbol("PopupTemplateInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>s,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>c});var i=r(91218),n=r(16930),o=r(28735);function s(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?s(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=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 r=n.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}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 y(e){const{portal:t,isOrgItem:r,itemControl:i}=e,n=t.user?.privileges;let o=!n||n.includes("features:user:edit"),s=!!r&&!!n?.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}}}},96576(e,t,r){r.d(t,{A:()=>c});var i,n=r(5482),o=r(4718),s=r(91429),a=r(92438),l=r(63988),u=r(49849),p=r(93223);let c=i=class extends((0,l.h)(a.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new i({description:this.description,label:this.label,symbol:(0,o.o8)(this.symbol),visualVariables:(0,o.o8)(this.visualVariables),authoringInfo:(0,o.o8)(this.authoringInfo)})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,n.Cg)([(0,s.MZ)(u.Wp)],c.prototype,"symbol",void 0),(0,n.Cg)([(0,p.e)({simple:"simple"})],c.prototype,"type",void 0),c=i=(0,n.Cg)([(0,s.$K)("esri.renderers.SimpleRenderer")],c)},73681(e,t,r){r.d(t,{n:()=>l});var i=r(49186),n=r(53966),o=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),c={};if(t)for(const e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const y=await(0,a.xR)(e.expression,null,c);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const m=!s||!s.greaterEqual(4,0);m&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const h=new u(r,m);return new l(m,p,y,h)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},65494(e,t,r){r.d(t,{L:()=>l,r:()=>s});var i=r(90360),n=r(41214),o=r(59923);function s(e,t){return l(e,null,t)}const a=(0,i.C)({types:n.Hg});function l(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,o.Yc)(r,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):a(e,t,r):null}},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>s,gf:()=>o,of:()=>n,uY:()=>i});const i=Symbol("SizeVariableInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const r=t||s(e),i=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},92300(e,t,r){r.d(t,{V:()=>s,X:()=>o});var i=r(60408),n=r(65864);function o(e){return{geometryType:(0,i.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,r){const i=(0,n.xD)(t);return e.map(e=>{const t=i.fromJSON(e);return t.spatialReference=r,t})}},24097(e,t,r){r.d(t,{K:()=>i});const i={type:String,json:{read:{source:"token"},write:{target:"token"}}}},55674(e,t,r){r.d(t,{Ad:()=>y,Gj:()=>f,QY:()=>d,lL:()=>g,xR:()=>m});var i=r(66131),n=r(49186),o=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),u=r(43668),p=r(98623);const c=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of c)t.hasArcadeDependency(r)&&e.add(r);return e}function y(e,t){return h.create(e,t,null,["$feature","$view"])}function m(e,t,r){return h.create(e,t,r,["$feature","$view","$config"])}class h{static async create(e,t,r,i){const{arcade:o,Dictionary:s}=await(0,u.l)();let a;try{a=o.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const p={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},c=o.compileScript(a,p);let d=null;null!=r&&(d=new s(r),d.immutable=!0);const y=new s;return y.immutable=!1,y.setField("scale",0),new h(e,o,a,c,t,y,d,s)}constructor(e,t,r,i,n,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=n,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new f,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class f{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===p.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??p.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},11831(e,t,r){r.d(t,{A:()=>u});var i,n=r(5482),o=r(25482),s=r(90629),a=r(91429),l=r(5760);let u=i=class extends o.o{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(e){this._set("size",e)}castSize(e){return(0,s.cr)(e)}clone(){return new i({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,n.Cg)([(0,a.MZ)({type:l.h9,json:{default:"none",write:!0}})],u.prototype,"decoration",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"family",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:(e,t,r)=>({enabled:!r||!r.textSymbol3D})}}})],u.prototype,"size",null),(0,n.Cg)([(0,a.wg)("size")],u.prototype,"castSize",null),(0,n.Cg)([(0,a.MZ)({type:l._R,json:{default:"normal",write:!0}})],u.prototype,"style",void 0),(0,n.Cg)([(0,a.MZ)({type:l.NM,json:{default:"normal",write:!0}})],u.prototype,"weight",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.symbols.Font")],u)},68249(e,t,r){r.d(t,{A:()=>m});var i,n=r(5482),o=r(68197),s=r(4718),a=r(90629),l=r(91429),u=r(11831),p=r(20378),c=r(5760),d=r(93223),y=r(43937);let m=i=class extends p.A{constructor(...e){super(...e),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const i={};return e&&(i.text=e),t&&(i.font=t),r&&(i.color=r),i}get haloSize(){return this._get("haloSize")??null}set haloSize(e){this._set("haloSize",e)}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(e){this._set("lineWidth",e)}writeLineWidth(e,t,r,i){i&&"string"!=typeof i?i.origin:t[r]=e}castLineWidth(e){return(0,a.cr)(e)}writeLineHeight(e,t,r,i){i&&"string"!=typeof i?i.origin:t[r]=e}clone(){return new i({angle:this.angle,backgroundColor:(0,s.o8)(this.backgroundColor),borderLineColor:(0,s.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,s.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,s.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,n.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],m.prototype,"backgroundColor",void 0),(0,n.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],m.prototype,"borderLineColor",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0},cast:a.cr})],m.prototype,"borderLineSize",void 0),(0,n.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],m.prototype,"font",void 0),(0,n.Cg)([(0,l.MZ)({...c.rM,json:{write:!0}})],m.prototype,"horizontalAlignment",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"kerning",void 0),(0,n.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],m.prototype,"haloColor",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],m.prototype,"haloSize",null),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"rightToLeft",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"rotated",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"text",void 0),(0,n.Cg)([(0,d.e)({esriTS:"text"},{readOnly:!0})],m.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({...c.x0,json:{write:!0}})],m.prototype,"verticalAlignment",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],m.prototype,"xoffset",null),(0,n.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],m.prototype,"yoffset",null),(0,n.Cg)([(0,l.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],m.prototype,"angle",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],m.prototype,"width",void 0),(0,n.Cg)([(0,l.MZ)({type:Number})],m.prototype,"lineWidth",null),(0,n.Cg)([(0,y.K)("lineWidth")],m.prototype,"writeLineWidth",null),(0,n.Cg)([(0,l.wg)("lineWidth")],m.prototype,"castLineWidth",null),(0,n.Cg)([(0,l.MZ)(c.Tb)],m.prototype,"lineHeight",void 0),(0,n.Cg)([(0,y.K)("lineHeight")],m.prototype,"writeLineHeight",null),m=i=(0,n.Cg)([(0,l.$K)("esri.symbols.TextSymbol")],m)},5760(e,t,r){r.d(t,{NM:()=>a,Tb:()=>l,_R:()=>s,h9:()=>o,rM:()=>u,x0:()=>p,y7:()=>c});var i=r(34727),n=r(56507);const o=["none","underline","line-through"],s=["normal","italic","oblique"],a=["normal","lighter","bold","bolder"],l={type:Number,cast:e=>{const t=(0,n.GB)(e);return 0===t?1:(0,i.qE)(t,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},p={type:["baseline","top","middle","bottom"],nonNullable:!0},c=8}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[547,1550,1666,1948,2722,3931,5020,5611,6061,6312,7992,8125,9169,9285],{59534(t,e,s){s.d(e,{B:()=>r,b:()=>i});var n=s(85935);function r(t){return t.toLowerCase().replaceAll(/[\s-]+/g,"")}class i{constructor(t,e){const s=new Map;for(const e of t){const t=r(e);if(s.has(t))throw new Error(`${e} already added as ${s.get(t)}`);s.set(t,e)}if(null!=e)for(const[t,n]of e){const e=r(t);if(s.has(e))throw new Error(`${t} already associated with ${s.get(e)}`);s.set(e,n)}this._enumMap=s}lookup(t){return this._enumMap.get(r(t))}get(t){const e=this.lookup(t);if(null==e)throw new n.D$(null,"InvalidParameter",null);return e}}},85935(t,e,s){s.d(e,{D$:()=>o,Nh:()=>l,O$:()=>h,mT:()=>u,ps:()=>m});var n=s(799);const r={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};class i extends Error{constructor(...t){super(...t)}}class a extends i{constructor(t,e){super(c(e)+t.message,{cause:t}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,a),e?.loc&&(this.loc=e.loc)}}class o extends Error{constructor(t,e,s,i){super("Execution error - "+c(s)+(0,n.HC)(r[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,o),s?.loc&&(this.loc=s.loc)}}function c(t){return t&&t.loc?`Line : ${t.loc.start?.line}, ${t.loc.start?.column}: `:""}class u extends Error{constructor(t,e,s,i){super("Compilation error - "+c(s)+(0,n.HC)(r[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),s?.loc&&(this.loc=s.loc)}}class h extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,h)}}function l(t,e,s){return"esri.arcade.arcadeexecutionerror"===s.declaredRootClass||"esri.arcade.arcadecompilationerror"===s.declaredRootClass?null===s.loc&&e?.loc?new a(s,{cause:s}):s:("esri.arcade.featureset.support.featureseterror"===s.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===s.declaredRootClass||s.declaredRootClass,e?.loc?new a(s,{cause:s}):s)}const f={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class m extends Error{constructor(t,e){super((0,n.HC)(f[t],e)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,m)}}},71409(t,e,s){s.d(e,{A7:()=>f,L2:()=>u,SQ:()=>n,s9:()=>c,y6:()=>l,zD:()=>a});const n=new Map([[1025,109452],[1033,109451],[9001,109404],[9002,109405],[9003,109406],[9005,109407],[9014,109408],[9030,109409],[9031,109410],[9033,109411],[9034,109412],[9035,109413],[9036,109414],[9037,109415],[9038,109416],[9039,109417],[9040,109418],[9041,109419],[9042,109420],[9043,109421],[9050,109422],[9051,109423],[9052,109424],[9053,109425],[9060,109426],[9061,109427],[9062,109428],[9063,109429],[9070,109430],[9080,109431],[9081,109432],[9082,109433],[9083,109434],[9084,109435],[9085,109436],[9086,109437],[9087,109438],[9093,109439],[9094,109440],[9095,109441],[9096,109442],[9097,109444],[9098,109445],[9099,109446],[9300,109447],[9301,109448],[9302,109449],[109001,109442],[109002,109443],[109003,109444],[109004,109445],[109005,109450],[109006,109451],[109007,109452],[109008,109453],[109009,109454],[109010,109455],[109011,109456],[109012,109457],[109013,109458],[109014,109459],[109015,109462],[109016,109464],[109017,109465],[109018,109466],[109030,109460],[109031,109461]]);function r(t){return(e,s)=>[e,{type:t,wkid:e,factor:s}]}const i=r("angular"),a=new Map([i(1031,4.84813681109536e-9),i(9101,1),i(9102,.017453292519943295),i(9103,.0002908882086657216),i(9104,484813681109536e-20),i(9105,.015707963267948967),i(9106,.015707963267948967),i(9109,1e-6),i(9112,.00015707963267948965),i(9113,15707963267948967e-22),i(9114,.0009817477042468104)]),o=r("linear"),c=new Map([o(1025,.001),o(1033,.01),o(9001,1),o(9002,.3048),o(9003,.30480060960121924),o(9005,.3047972654),o(9014,1.8288),o(9030,1852),o(9031,1.0000135965),o(9033,20.11684023368047),o(9034,.2011684023368047),o(9035,1609.3472186944375),o(9036,1e3),o(9037,.9143917962),o(9038,20.1166195164),o(9039,.201166195164),o(9040,.9143984146160287),o(9041,.3047994715386762),o(9042,20.116765121552632),o(9043,.2011676512155263),o(9050,.9143992),o(9051,.3047997333333333),o(9052,20.1167824),o(9053,.201167824),o(9060,.9143992042898124),o(9061,.30479973476327077),o(9062,20.116782494375872),o(9063,.2011678249437587),o(9070,.30480083333333335),o(9080,.30479951024814694),o(9081,.30479841),o(9082,.3047996),o(9083,.3047995),o(9084,.9143985307444408),o(9085,.91439523),o(9086,.9143988),o(9087,.9143985),o(9093,1609.344),o(9094,.3047997101815088),o(9095,.3048007491),o(9096,.9144),o(9097,20.1168),o(9098,.201168),o(9099,.914398),o(9300,.30479933333333337),o(9301,20.116756),o(9302,.20116756),o(109001,.9144),o(109002,.9144018288036576),o(109003,20.1168),o(109004,.201168),o(109005,.1),o(109006,.01),o(109007,.001),o(109008,.0254),o(109009,.025400050800101603),o(109010,5.0292),o(109011,5.029210058420118),o(109012,1853.248),o(109013,1853.184),o(109014,1.7018),o(109015,.8466683600033867),o(109016,.00035277777777777776),o(109017,1e-6),o(109018,1e-9),o(109030,5e4),o(109031,15e4)]),u=c.get(9001),h=r("area"),l=new Map([h(109401,1e4),h(109402,4046.8564224),h(109403,4046.872609874252),h(109404,1),h(109405,.09290304),h(109406,.09290341161327487),h(109407,.09290137299531805),h(109408,3.34450944),h(109409,3429904),h(109410,1.000027193184865),h(109411,404.6872609874253),h(109412,.04046872609874252),h(109413,2589998.470319522),h(109414,1e6),h(109415,.8361123569578626),h(109416,404.6783807676053),h(109417,.04046783807676053),h(109418,.8361244606523066),h(109419,.09290271785025629),h(109420,404.6842389557165),h(109421,.04046842389557164),h(109422,.83612589696064),h(109423,.0929028774400711),h(109424,404.6849341289498),h(109425,.04046849341289498),h(109426,.836125904805842),h(109427,.09290287831176021),h(109428,404.6849379260275),h(109429,.04046849379260275),h(109430,.09290354800069446),h(109431,.09290274144751023),h(109432,.09290207073852812),h(109433,.09290279616016),h(109434,.09290273520025),h(109435,.836124673027592),h(109436,.8361186366467529),h(109437,.8361251654414399),h(109438,.83612461680225),h(109439,2589988.110336),h(109440,.09290286332673177),h(109441,.09290349665192114),h(109442,.83612736),h(109443,.8361307045194736),h(109444,404.68564224),h(109445,.040468564224),h(109446,.836123702404),h(109447,.09290263360044447),h(109448,404.683871963536),h(109449,.0404683871963536),h(109450,.01),h(109451,1e-4),h(109452,1e-6),h(109453,64516e-8),h(109454,.0006451625806477421),h(109455,25.29285264),h(109456,25.29295381171408),h(109457,3434528.149504),h(109458,3434290.937856),h(109459,2.89612324),h(109460,25e8),h(109461,225e8),h(109462,.7168473118308245),h(109463,100),h(109464,1.244521604938271e-7),h(109465,1e-12),h(109466,1e-18)]),f=l.get(109404)},85549(t,e,s){s.d(e,{executeOffsetJson:()=>u,r:()=>c});var n=s(40547),r=s(66070),i=s(78125),a=s(83299);const o={round:0,bevel:1,miter:2,square:3};function c(t,e,s,r,a,o){e=(0,n.convertToSpatialReferenceUnit)((0,n.toLengthUnit)(s),t.spatialReference,e);const c=(0,i.fromGeometry)(t),u=(0,i.getSpatialReference)(t),l=h(c,(0,i.fromSpatialReference)(u),e,r,a,o);return(0,i.toGeometry)(l,u)}function u(t,e,s,r,i,o){e=(0,n.convertToSpatialReferenceUnit)((0,n.toLengthUnit)(s),t.spatialReference,e);const c=(0,a.fromGeometry)(t),u=c.getGeometry(),l=c.getSpatialReference(),f=h(u,l,e,r,i,o);return(0,a.toGeometry)(f,l)}function h(t,e,s,n,i,a){const c=(0,r.g7)(t,e,s,o[n],i,a);if(!c.isEmpty())return c;{const c=t.clone();c.reverseAllPaths();const u=(0,r.g7)(c,e,-s,o[n],i,a);if(!u.isEmpty())return u.reverseAllPaths(),u}const u=Math.abs(s)/10,h=u/10;let l=a;if("round"===n&&(l+=h),"bevel"===n||"square"===n){const c=(0,r.g7)(t,e,s,o[n="miter"],i,a);if(!c.isEmpty())return c}if("miter"===n){const c=(0,r.g7)(t,e,s,o[n="round"],i,a);if(!c.isEmpty())return c}if("round"===n)for(;l<=u;l+=h){const a=(0,r.g7)(t,e,s,o[n],i,l);if(!a.isEmpty())return a}return null}},40547(t,e,s){s.d(e,{convert:()=>M,convertFromSpatialReferenceUnit:()=>_,convertToSpatialReferenceUnit:()=>P,meters:()=>i.L2,squareMeters:()=>i.A7,toAreaUnit:()=>p,toLengthUnit:()=>y});var n=s(59534),r=s(85935),i=s(71409);const a=[];function o(t){return 0===t.length?'""':t.startsWith('"')||t.startsWith(".")||t[0]>="0"&&t[0]<="9"?t:'"'+t.trim()+'"'}function c(t){let e="",s="",n=!1;for(let r=0;r<t.length;r++){const i=t[r];n?'"'===i?'"'===t[r+1]?(e+=`\\${i}`,r+=1):n=!1:e+=i:/\s/.test(i)||(","===i?(s+=""!==e?o(e)+",":",",e=""):")"===i||"]"===i?(s+=""!==e?o(e)+"]}":"]}",e=""):"("===i||"["===i?(s+='{ "entity": "'+e.toUpperCase().trim()+'", "values":[',e=""):'"'===i?(n=!0,e=""):e+=i)}return JSON.parse(s)}function u(t){try{for(let e=0;e<a.length;e++)if(a[e].spatialReferenceWkt===t)return a[e].unit;const e=h(c(t));if(null===e)return null;let s=null;for(const t of e.values)if("object"==typeof t&&("UNIT"===t.entity||"ANGLEUNIT"===t.entity||"LENGTHUNIT"===t.entity)){s=t;break}if(null===s)return null;const n=function(t,e,s){if(null!=s)try{if("EPSG"===s.values[0])return{type:t,wkid:Number.parseInt(s.values[1],10),factor:e}}catch(t){}return{type:t,factor:e}}("GEOGCS"===e.entity||"GEOGCRS"===e.entity?"angular":"linear",s.values[1],s.values[2]);return a.push({spatialReferenceWkt:t,unit:n}),a.length>10&&a.shift(),n}catch(t){return null}}function h(t){if(null===t)return null;switch(t.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return t}const e=[];for(const s of t.values)if("object"==typeof s&&void 0!==s.entity)switch(s.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return s;default:e.push(s)}for(const t of e){const e=h(t);if(null!=e)return e}return null}var l=s(86211),f=s(22530);function m(t,e){let s;switch(t){case"linear":s=i.s9;break;case"angular":s=i.zD;break;case"area":s=i.y6;break;default:return null}return s.get(e)}function d(t){const e=t.wkid;if(null!=e){const t=f.A.units[f.A[e]];if(null!=t)switch(t){case"Meter":return m("linear",9001);case"Foot":return m("linear",9002);case"Foot_US":return m("linear",9003);case"Foot_Clarke":return m("linear",9005);case"Yard_Clarke":return m("linear",9037);case"Link_Clarke":return m("linear",9039);case"Yard_Sears":return m("linear",9040);case"Foot_Sears":return m("linear",9041);case"Chain_Sears":return m("linear",9042);case"Chain_Benoit_1895_B":return m("linear",9062);case"Yard_Indian":return m("linear",9084);case"Yard_Indian_1937":return m("linear",9085);case"Foot_Gold_Coast":return m("linear",9094);case"Chain":return m("linear",9097);case"Chain_Sears_1922_Truncated":return m("linear",9301);case"50_Kilometers":return m("linear",109030);case"150_Kilometers":return m("linear",109031);default:throw new Error(`Unknown unit name: ${t}`)}return l.yD.has(e)?m("angular",9105):m("angular",9102)}const s=t.wkt2||t.wkt;if(null!=s){const t=u(s);if(null!=t){if(null!=t.wkid){const e=m(t.type,t.wkid);if(null!=e)return e}return{type:t.type,wkid:-1,factor:t.factor}}}return null}function g(t){if("linear"!==t.type)return null;if(-1===t.wkid)return{type:"area",wkid:-1,factor:t.factor**2};const e=i.SQ.get(t.wkid);return null==e?null:m("area",e)}function p(t){if(null!=t){if("number"==typeof t)return i.y6.get(t)??i.s9.get(t)??i.zD.get(t);if("string"!=typeof t)throw new r.D$(null,"InvalidParameter",null);switch((0,n.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return i.y6.get(109404);case"miles":case"mile":case"squaremile":case"squaremiles":return i.y6.get(109439);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.y6.get(109414);case"acres":case"acre":case"ac":return i.y6.get(109402);case"hectares":case"hectare":case"ha":return i.y6.get(109401);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return i.y6.get(109442);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.y6.get(109405);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.y6.get(109409);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.y6.get(109452);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.y6.get(109451);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.y6.get(109450);case"inch":case"inches":case"squareinch":case"squareinches":return i.y6.get(109453);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.y6.get(109406);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.y6.get(109413)}}}function y(t){if(null!=t){if("number"==typeof t)return i.s9.get(t)??i.zD.get(t)??i.y6.get(t);if("string"!=typeof t)throw new r.D$(null,"InvalidParameter",null);switch((0,n.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":case"hectares":case"hectare":case"ha":return i.s9.get(9001);case"miles":case"mile":case"squaremile":case"squaremiles":return i.s9.get(9093);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.s9.get(9036);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":case"acres":case"acre":case"ac":return i.s9.get(9096);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.s9.get(9002);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.s9.get(9030);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.s9.get(109007);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.s9.get(109006);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.s9.get(109005);case"inch":case"inches":case"squareinch":case"squareinches":return i.s9.get(109008);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.s9.get(9003);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.s9.get(9035)}}}function x(t,e,s){if(t.type!==e.type)throw new Error(`Incompatible unit types. src=${t.type} dest=${e.type}`);return s*(t.factor/e.factor)}function _(t,e,s){if(null==t||null==e)return s;const n=d(t);if(null==n)throw new Error("Unknown spatial reference unit.");const r="area"===e.type&&"linear"===n.type?g(n):n;if(null==r)throw new Error(`Unknown spatial reference ${e.type} unit.`);return x(r,e,s)}function P(t,e,s){if(null==t||null==e)return s;const n=d(e);if(null==n)throw new Error("Unknown spatial reference unit.");const r="area"===t.type&&"linear"===n.type?g(n):n;if(null==r)throw new Error(`Unknown spatial reference ${t.type} unit.`);return x(t,r,s)}function M(t,e,s){return null==t||null==e?s:x(t,e,s)}},61691(t,e,s){s.d(e,{G:()=>n});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,s){s.d(e,{S:()=>r});var n=s(61691);class r extends n.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},9093(t,e,s){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}s.d(e,{o8:()=>r,vt:()=>n,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:r,create:n,fromValues:function(t,e,s,n,r,i,a,o,c,u,h,l,f,m,d,g){return[t,e,s,n,r,i,a,o,c,u,h,l,f,m,d,g]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,s){function n(){return[0,0,0]}function r(t){return[t[0],t[1],t[2]]}function i(t,e,s){return[t,e,s]}function a(t,e,s){return[t,e,s]}function o(t,e=[0,0,0]){const s=Math.min(3,t.length);for(let n=0;n<s;++n)e[n]=t[n];return e}function c(){return[0,0,0]}function u(){return i(1,1,1)}function h(){return i(1,0,0)}function l(){return i(0,1,0)}function f(){return i(0,0,1)}s.d(e,{CN:()=>a,Cb:()=>y,Cw:()=>g,JP:()=>p,S:()=>u,Ul:()=>c,Un:()=>d,ci:()=>o,fA:()=>i,o8:()=>r,uY:()=>m,vt:()=>n});const m=[0,0,0],d=u(),g=h(),p=l(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:g,UNIT_Y:p,UNIT_Z:y,ZEROS:m,clone:r,create:n,freeze:a,fromArray:o,fromValues:i,ones:u,unitX:h,unitY:l,unitZ:f,zeros:c},Symbol.toStringTag,{value:"Module"}))},35522(t,e,s){s.d(e,{$A:()=>E,Bw:()=>i,C:()=>a,Cc:()=>w,DI:()=>v,Il:()=>z,Io:()=>x,Ln:()=>y,Om:()=>C,Qr:()=>l,Re:()=>u,S8:()=>b,T9:()=>g,WQ:()=>c,Z0:()=>S,_S:()=>m,aI:()=>G,ei:()=>A,fw:()=>O,g7:()=>R,gL:()=>I,hG:()=>_,hZ:()=>o,hs:()=>p,jb:()=>N,jk:()=>d,lo:()=>U,lw:()=>h,m3:()=>P,oW:()=>Z,t2:()=>q,tn:()=>f,uE:()=>L,xg:()=>Y,ze:()=>M});var n=s(51850),r=s(34304);function i(t){const e=t[0],s=t[1],n=t[2];return Math.sqrt(e*e+s*s+n*n)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,s,n){return t[0]=e,t[1]=s,t[2]=n,t}function c(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t}function u(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t}function h(t,e,s){return t[0]=e[0]*s[0],t[1]=e[1]*s[1],t[2]=e[2]*s[2],t}function l(t,e,s){return t[0]=e[0]/s[0],t[1]=e[1]/s[1],t[2]=e[2]/s[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,s){return t[0]=Math.min(e[0],s[0]),t[1]=Math.min(e[1],s[1]),t[2]=Math.min(e[2],s[2]),t}function g(t,e,s){return t[0]=Math.max(e[0],s[0]),t[1]=Math.max(e[1],s[1]),t[2]=Math.max(e[2],s[2]),t}function p(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t}function y(t,e,s,n){return t[0]=e[0]+s[0]*n,t[1]=e[1]+s[1]*n,t[2]=e[2]+s[2]*n,t}function x(t,e){const s=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(s*s+n*n+r*r)}function _(t,e){const s=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return s*s+n*n+r*r}function P(t){const e=t[0],s=t[1],n=t[2];return e*e+s*s+n*n}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function v(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function b(t,e){const s=e[0],n=e[1],r=e[2];let i=s*s+n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function E(t,e,s){const n=e[0],r=e[1],i=e[2],a=s[0],o=s[1],c=s[2];return t[0]=r*c-i*o,t[1]=i*a-n*c,t[2]=n*o-r*a,t}function w(t,e,s,n){const r=e[0],i=e[1],a=e[2];return t[0]=r+n*(s[0]-r),t[1]=i+n*(s[1]-i),t[2]=a+n*(s[2]-a),t}function S(t,e,s){const n=e[0],r=e[1],i=e[2];return t[0]=s[0]*n+s[4]*r+s[8]*i+s[12],t[1]=s[1]*n+s[5]*r+s[9]*i+s[13],t[2]=s[2]*n+s[6]*r+s[10]*i+s[14],t}function A(t,e,s){const n=e[0],r=e[1],i=e[2];return t[0]=n*s[0]+r*s[3]+i*s[6],t[1]=n*s[1]+r*s[4]+i*s[7],t[2]=n*s[2]+r*s[5]+i*s[8],t}function I(t,e,s){return O(t,e,s[0],s[1],s[2],s[3])}function O(t,e,s,n,r,i){const a=e[0],o=e[1],c=e[2],u=n*c-r*o,h=r*a-s*c,l=s*o-n*a,f=n*l-r*h,m=r*u-s*l,d=s*h-n*u,g=2*i;return t[0]=a+u*g+2*f,t[1]=o+h*g+2*m,t[2]=c+l*g+2*d,t}function R(t,e){b(k,t),b(T,e);const s=C(k,T);return s>1?0:s<-1?Math.PI:Math.acos(s)}const k=(0,n.vt)(),T=(0,n.vt)();function q(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){if(t===e)return!0;const s=t[0],n=t[1],i=t[2],a=e[0],o=e[1],c=e[2],u=(0,r.FD)();return Math.abs(s-a)<=u*Math.max(1,Math.abs(s),Math.abs(a))&&Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-c)<=u*Math.max(1,Math.abs(i),Math.abs(c))}function Z(t,e,s){const n=s[0]-e[0],r=s[1]-e[1],i=s[2]-e[2];let a=n*n+r*r+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=n*a,t[1]=r*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=u,F=h,V=l,Y=x,U=_,z=i,L=P;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:c,angle:R,bezier:function(t,e,s,n,r,i){const a=1-i,o=a*a,c=i*i,u=o*a,h=3*i*o,l=3*c*a,f=c*i;return t[0]=e[0]*u+s[0]*h+n[0]*l+r[0]*f,t[1]=e[1]*u+s[1]*h+n[1]*l+r[1]*f,t[2]=e[2]*u+s[2]*h+n[2]*l+r[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,s=1){return t[0]=Math.min(Math.max(t[0],e),s),t[1]=Math.min(Math.max(t[1],e),s),t[2]=Math.min(Math.max(t[2],e),s),t},copy:a,cross:E,crossAndNormalize:function(t,e,s){const n=e[0],r=e[1],i=e[2],a=s[0],o=s[1],c=s[2],u=r*c-i*o,h=i*a-n*c,l=n*o-r*a,f=Math.sqrt(u*u+h*h+l*l);return t[0]=u/f,t[1]=h/f,t[2]=l/f,t},direction:Z,dist:Y,distance:x,div:V,divide:l,dot:C,equals:G,exactEquals:q,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,s,n,r,i){const a=i*i,o=a*(2*i-3)+1,c=a*(i-2)+i,u=a*(i-1),h=a*(3-2*i);return t[0]=e[0]*o+s[0]*c+n[0]*u+r[0]*h,t[1]=e[1]*o+s[1]*c+n[1]*u+r[1]*h,t[2]=e[2]*o+s[2]*c+n[2]*u+r[2]*h,t},inverse:v,len:z,length:i,lerp:w,max:g,min:d,mul:F,multiply:h,negate:M,normalize:b,random:function(t,e=1){const s=r.Ov,n=2*s()*Math.PI,i=2*s()-1,a=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=i*e,t},rotateX:function(t,e,s,n){const r=[],i=[];return r[0]=e[0]-s[0],r[1]=e[1]-s[1],r[2]=e[2]-s[2],i[0]=r[0],i[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),i[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),t[0]=i[0]+s[0],t[1]=i[1]+s[1],t[2]=i[2]+s[2],t},rotateY:function(t,e,s,n){const r=[],i=[];return r[0]=e[0]-s[0],r[1]=e[1]-s[1],r[2]=e[2]-s[2],i[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),i[1]=r[1],i[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),t[0]=i[0]+s[0],t[1]=i[1]+s[1],t[2]=i[2]+s[2],t},rotateZ:function(t,e,s,n){const r=[],i=[];return r[0]=e[0]-s[0],r[1]=e[1]-s[1],r[2]=e[2]-s[2],i[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),i[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),i[2]=r[2],t[0]=i[0]+s[0],t[1]=i[1]+s[1],t[2]=i[2]+s[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:p,scaleAndAdd:y,set:o,sign:m,sqrDist:U,sqrLen:L,squaredDistance:_,squaredLength:P,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:N,subtract:u,transformMat3:A,transformMat4:S,transformQuat:I,transformQuatValues:O},Symbol.toStringTag,{value:"Module"}))},69397(t,e,s){s.d(e,{Qf:()=>c,Qh:()=>a,RS:()=>r,Ul:()=>m,i5:()=>f,lM:()=>i,qK:()=>h});var n=s(34275);const r=16;function i(t){if(!t)return 0;let e=h;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let s=l;for(let n=0;n<e;n++)s+=o(t[n]);return s}(t);let e=h;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return r;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?u(e,r):0:0),0)}function u(t,e){return l+t.length*e}const h=32,l=16,f=145,m=64},87992(t,e,s){s.d(e,{JR:()=>E,ME:()=>v,MY:()=>w,NO:()=>M,Nh:()=>C,V2:()=>R,_s:()=>k,e6:()=>q,gh:()=>b,tr:()=>Z,uX:()=>p});var n=s(5482),r=s(69397),i=s(16930),a=(s(70328),s(19419)),o=s(60408),c=s(21325),u=s(513),h=s(50954),l=s(79567),f=s(52006),m=s(49663),d=s(46068),g=s(92722);class p{constructor({type:t,spatialReference:e,vertexCount:s,vertexXY:n,vertexZ:r,vertexM:i,partCount:a,partOffsets:o,partFlags:c,segmentFlags:u,segmentIndices:h,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=s,this.vertexXY=n,this.vertexZ=r,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=c,this.segmentFlags=u,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:s}=this;return t&&t-e-s}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 t(t){return t?r.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:s,hasZ:n,hasM:r,segmentCountArc:i,segmentCountBezier:a}=this,o=R(t,e,s,n,r,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:c,vertexZ:u,vertexM:h}=this;if(o.vertexXY.set(c.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(h.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,s+1)),o.partOffsets.set(t.subarray(0,s+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:s,segmentParams:n,segmentParamCount:r}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(s.subarray(0,e),0),o.segmentParams.set(n.subarray(0,r),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,c.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const s=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,s)=>Math.abs(t-s)>e||isNaN(t)!==isNaN(s);for(let e=0;e<this.vertexCount;++e)if(s(this.vertexXY[2*e],t.vertexXY[2*e])||s(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(s(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(t){this.geometry=t,this.value=new x(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class x{constructor(t){this.geometry=t,this.index=-1,this._readVertex=I(t),this._segments=new _(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class _{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new P(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class P{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=I(t)}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 t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let s=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[s++],n=e[s++],r=e[s++],i=e[s++];return{b:[this.end,[t,n],[r,i]]}}const n=e[s++],r=e[s++],i=e[s++],a=e[s++],o=e[s++],c=e[s++];s++,s++;const u=e[s++],h=e[s++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[u,h]]};const l=2&n?0:1,f=1&n?0:1;return{a:[this.end,[o,c],l,f,a,r,i]}}}function M(t,e){const s={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,n.mS)(s,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:s,vertexXY:r,vertexZ:i,vertexM:o}=t,c=A(t);if(t.hasCurves()){const s={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(s,new S(t,["vertexZ","vertexM"]),!1);const r=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:s}of e.segments)(0,l.e)(r,t,s),t=(0,f.yP)(s)}const[i,o,u,h]=r;e={xmin:i,ymin:o,xmax:u,ymax:h,spatialReference:c}}catch(t){s.error=t,s.hasError=!0}finally{(0,n.hk)(s)}}else{let t,n,i,a;t=n=1/0,i=a=-1/0;for(let e=0;e<s;++e){const s=r[2*e],o=r[2*e+1];t=Math.min(t,s),i=Math.max(i,s),n=Math.min(n,o),a=Math.max(a,o)}e={xmin:t,ymin:n,xmax:i,ymax:a,spatialReference:c}}if(i){let t=1/0,s=-1/0;for(const e of i)t=Math.min(t,e),s=Math.max(s,e);e.zmin=t,e.zmax=s}if(o){let t=1/0,s=-1/0;for(const e of o)t=Math.min(t,e),s=Math.max(s,e);e.mmin=t,e.mmax=s}return e}(t)),e}catch(t){s.error=t,s.hasError=!0}finally{(0,n.hk)(s)}}function v(t){let e,s,n;if((0,o.fT)(t)){n="point";const{x:r,y:i,z:a,m:o}=t,c=[r,i];null!=a&&c.push(a),null!=o&&c.push(o),s=[[c]],e=1}else(0,o.U9)(t)?(n="multipoint",s=[t.points],e=t.points.length):(0,o.Rg)(t)?(n="polyline",s=t.curvePaths??t.paths,e=s.reduce((t,e)=>t+e.length,0)):(n="polygon",s=t.curveRings??t.rings,e=s.reduce((t,e)=>(0===e.length||(t+=e.length,O(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const r=R(n,e,n.includes("point")?0:s.length,(0,o.Pv)(t),(0,o.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:a,vertexXY:c,vertexZ:u,vertexM:h}=r;function l(t){c[2*d]=t[0],c[2*d+1]=t[1],i&&(u[d]=t[2]),a&&(h[d]=t[m]),++d}r.spatialReference=t.spatialReference??void 0;const m=r.hasZ?3:2;let d=0;if(!r.isMultipart()){if(!i&&!a){for(const[t,e]of s[0])c[2*d]=t,c[2*d+1]=e,++d;return r}for(const t of s[0])l(t);return r}const g="polygon"===n,{partOffsets:p}=r;let y=0;if(!r.hasCurves()){for(const t of s){if(p[y++]=d,0===t.length)continue;let e=t.length;if(g&&O(t[0],t.at(-1))&&--e,i||a)for(let s=0;s<e;++s)l(t[s]);else for(let s=0;s<e;++s){const[e,n]=t[s];c[2*d]=e,c[2*d+1]=n,++d}}return p[y]=d,r}function x(t){const e=_+t;if(e<=(r.segmentParams?.length??0))return;let s=e*N;s=20*Math.ceil(s/20);const n=r.segmentParams;r.segmentParams=new Float64Array(s),null!=n&&r.segmentParams.set(n)}let _=0;for(const t of s){if(r.partOffsets[y++]=d,0===t.length)continue;const e=t[0];let s=e;for(let e=1;e<t.length;++e){const n=t[e];l(s);const i=d-1;(0,f.wY)(n)?(x(10),++r.segmentCountArc,_=k(s,n,r,i,_),s=n.a[0]):(0,f.DA)(n)?(x(10),++r.segmentCountArc,_=T(s,n,r,i,_),s=n.a[0]):(0,f.aO)(n)?(x(10),++r.segmentCountArc,_=q(s,n,r,i,_),s=n.c[0]):(0,f.n1)(n)?(x(4),++r.segmentCountBezier,_=Z(0,n,r,i,_),s=n.b[0]):s=n}g&&O(e,s)||l(s)}return r.partOffsets[y]=d,r}function b(t){const e=I(t),{vertexCount:s,partCount:n,hasZ:r,hasM:i}=t,a=A(t);if("point"===t.type){const[e,s]=t.vertexXY,n=t.vertexZ?.[0],r=t.vertexM?.[0];return{x:e,y:s,z:n,m:r,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<s;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:r,hasM:i}}const c="polygon"===t.type;if(!t.hasCurves()){const s=new Array;for(let r=0;r<n;++r){const n=t.partOffsets[r+1],i=new Array;for(;o<n;)i.push(e(o++));c&&i.length>0&&i.push(i[0]),s.push(i)}return c?{rings:s,hasZ:r,hasM:i,spatialReference:a}:{paths:s,hasZ:r,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:s}of t.parts){const t=[s];for(const{curve:s}of e)t.push(s);u.push(t)}return c?{rings:[],curveRings:u,hasZ:r,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:r,hasM:i,spatialReference:a}}function C(t,{lengths:e,coords:s,hasZ:n,hasM:r},i){const a=t.includes("point")?0:e.length,o="polygon"===t,c="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);n??=!1,r??=!1;const u=R(t,c,a,n,r,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<c;++t)u.vertexXY[2*t]=s[e++],u.vertexXY[2*t+1]=s[e++],n&&(u.vertexZ[t]=s[e++]),r&&(u.vertexM[t]=s[e++]);return u}const h=2+Number(n)+Number(r);let l=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(o);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=s[l++],u.vertexXY[2*t+1]=s[l++],n&&(u.vertexZ[t]=s[l++]),r&&(u.vertexM[t]=s[l++]);o&&(l+=h)}return u}function E({type:t,vertexCount:e,vertexXY:s,vertexZ:n,vertexM:r,partCount:i,partOffsets:a,hasZ:o,hasM:c}){const u=new g.A([],[],o,c);i=Math.max(i,1);const h="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=u.coords.length;for(let t=l;t<i;++t)u.coords.push(s[2*t],s[2*t+1]),o&&u.coords.push(n[t]),c&&u.coords.push(r[t]);if(h){const t=l;u.coords.push(s[2*t],s[2*t+1]),o&&u.coords.push(n[t]),c&&u.coords.push(r[t])}u.lengths.push((u.coords.length-f)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function w(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,s=t.isCustomWkid()?0:t.getOldID();if(s<=0)return{wkt:e};let n=t.getLatestID();(n<=0||n===s)&&(n=void 0);const r=t.getVCS();if(null==r)return{wkid:s,latestWkid:n,wkt:e};const i=r.isCustomWkid()?0:r.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:s,wkt:e,latestWkid:n,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const s of e)t[s]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function A({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function I({vertexXY:t,vertexZ:e,vertexM:s}){return e?s?n=>[t[2*n],t[2*n+1],e[n],s[n]]:s=>[t[2*s],t[2*s+1],e[s]]:s?e=>[t[2*e],t[2*e+1],s[e]]:e=>[t[2*e],t[2*e+1]]}function O(t,e){return t.every((t,s)=>t===e[s])}function R(t,e,s,n,r,i,a,o){a??=0,o??=0;const c=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:s,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),r&&(u+=Float64Array.BYTES_PER_ELEMENT*e),c.isMultipart()&&(u+=(s+1)*Int32Array.BYTES_PER_ELEMENT,u+=(s+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=c.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(u);let l=0;return c.vertexXY=new Float64Array(h,l,2*e),l+=c.vertexXY.byteLength,n&&(c.vertexZ=new Float64Array(h,l,e),l+=c.vertexZ.byteLength),r&&(c.vertexM=new Float64Array(h,l,e),l+=c.vertexM.byteLength),i&&(c.segmentParams=new Float64Array(h,l,c.segmentParamCount),l+=c.segmentParams.byteLength,c.segmentIndices=new Int32Array(h,l,e),c.segmentIndices.fill(F),l+=c.segmentIndices.byteLength),c.isMultipart()&&(c.partOffsets=new Int32Array(h,l,s+1),l+=c.partOffsets.byteLength,c.partFlags=new Int8Array(h,l,s+1),l+=c.partFlags.byteLength,"polygon"===c.type&&c.partFlags.subarray(0,s).fill(1)),i&&(c.segmentFlags=new Int8Array(h,l,e),c.segmentFlags.fill(1),l+=c.segmentFlags.byteLength),c}function k(t,e,{segmentFlags:s,segmentIndices:n,segmentParams:r},i,a){s[i]=4,n[i]=a;const[o,[c,u],h,l,f,m,g]=e.a;let p=4;l||(p|=1),h||(p|=2);const y=(0,d.SW)(t,e),[x,_]=(0,d.Uk)(y,.5);return r[a++]=p,r[a++]=m,r[a++]=g,r[a++]=f,r[a++]=c,r[a++]=u,r[a++]=y.u2-y.u1,r[a++]=y.u1,r[a++]=x,r[a++]=_,a}function T(t,e,{segmentFlags:s,segmentIndices:n,segmentParams:r},i,a){s[i]=4,n[i]=a;const o=(0,m.io)(t,e);return G(o,4,...(0,u.mq)(o,.5),r,a)}function q(t,e,{segmentFlags:s,segmentIndices:n,segmentParams:r},i,a){return s[i]=4,n[i]=a,G((0,h.pM)(t,e),0,...e.c[1],r,a)}function G(t,e,s,n,r,i){const{cx:a,cy:o,thetaStart:c,thetaEnd:u,radius:h}=t;return c>u||(e|=1),Math.abs(u-c)<=Math.PI||(e|=2),r[i++]=e,r[i++]=h,r[i++]=1,r[i++]=0,r[i++]=a,r[i++]=o,r[i++]=u-c,r[i++]=c,r[i++]=s,r[i++]=n,i}function Z(t,{b:[e,[s,n],[r,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:c},u,h){return a[u]=2,o[u]=h,c[h++]=s,c[h++]=n,c[h++]=r,c[h++]=i,h}const N=1.61803,F=-1},66070(t,e,s){s.d(e,{g7:()=>y,zo:()=>x});var n=s(76061),r=s(61691),i=s(95213),a=s(55537),o=s(88885),c=s(83661);const u=1.4142135623730951,h=.017453292519943295,l=256,f=1024;class m{static construct(t,e,s){const n=new m;return n.x=t.x,n.y=t.y,n.m_next=-1,n.m_prev=-1,n.z=e,n.m=s,n.type=0,n}clone(){const t=new m;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new c.P(this.x,this.y)}}class d{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===a.G.enumLine)return this.offsetLine();if(t===a.G.enumEnvelope)return this.offsetEnvelope();if((0,a.f)(t)){const t=new o.a;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===a.G.enumPolyline){const t=new o.a;return this.offsetMultiPath(t),t}if(t===a.G.enumPolygon){const t=new o.P;return this.offsetMultiPath(t),t}(0,a.t)("")}offsetLine(){const t=this.m_inputGeometry,e=t.getStartXY(),s=t.getEndXY(),n=new c.P;n.setSub(s,e),n.normalize(),n.leftPerpendicularThis(),n.scale(this.m_distance),e.addThis(n),s.addThis(n);const r=t.clone();return r.setStartXY(e),r.setEndXY(s),r}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const e=new o.P;return e.addEnvelope(t,!1),this.m_inputGeometry=e,this.constructOffset()}const e=t.clone();return e.inflateCoords(this.m_distance,this.m_distance),e}progress(){}static buildPoint(t,e,s,n){n.x=t.x+e*Math.cos(s),n.y=t.y+e*Math.sin(s),n.type=t.type,n.z=t.z,n.m=t.m,n.m_next=-1,n.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,e){if(0===this.m_offsetPtCount)return void this.addPoint(t);const s=this.m_srcPtCount,n=this.m_srcPts[0===e?s-1:e-1],r=this.m_srcPts[e],i=d.dotSign(n,r,this.m_offsetPts[this.m_offsetPtCount-1],t);if(i>0)this.addPoint(t);else if(i<0)if(d.dotSign(n,r,r,this.m_offsetPts[this.m_offsetPtCount-1])>0){const r=new m;let i;i=0===e?s-2:1===e?s-1:e-2;const a=this.m_srcPts[i],o=Math.atan2(n.y-a.y,n.x-a.x);if(d.buildPoint(n,this.m_distance,o-c.o,r),this.m_offsetPts[this.m_offsetPtCount-1]=r.clone(),1===this.m_joins||2===this.m_joins){r.x=.5*(r.x+n.x),r.y=.5*(r.y+n.y),this.addPoint(r),d.buildPoint(n,this.m_distance,this.m_a1+c.o,r);const t=r.clone();t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),t.type|=l,this.addPoint(t),this.addPoint(r)}else d.buildPoint(n,this.m_distance,this.m_a1+c.o,r),r.type|=l,this.addPoint(r);this.addPointEx(t,e)}else{const t=new m;if(d.buildPoint(r,this.m_distance,this.m_a1+c.o,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+r.x),t.y=.5*(t.y+r.y),this.addPoint(t),d.buildPoint(r,this.m_distance,this.m_a2-c.o,t);const e=t.clone();e.x=.5*(e.x+r.x),e.y=.5*(e.y+r.y),e.type|=l,this.addPoint(e),this.addPoint(t)}else d.buildPoint(r,this.m_distance,this.m_a2-c.o,t),t.type|=l,this.addPoint(t)}}buildOffset(){const t=new m,e=this.m_srcPtCount;this.m_offsetPtCount=0;const s=.5*this.m_tolerance;let n=0,r=0;for(let i=0;i<e;i++){const a=this.m_srcPts[i],o=0===i?this.m_srcPts[e-1]:this.m_srcPts[i-1],m=i===e-1?this.m_srcPts[0]:this.m_srcPts[i+1];let g,p,y=0;{const t=o.x-a.x,e=o.y-a.y,s=m.x-a.x,u=m.y-a.y;g=Math.atan2(e,t),p=Math.atan2(u,s),this.m_a1=g,this.m_a2=p,0===i&&(n=g,r=p),y=c.P.orientationRobust(a.asPoint2D(),o.asPoint2D(),m.asPoint2D())}const x=p;if(p<g&&(p+=c.p),!(Math.abs(Math.abs(g-p)-Math.PI)<1e-8))if(y*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){d.buildPoint(a,this.m_distance,g+c.o,t),this.addPoint(t);const e=.001;t.x=a.x+(t.x-a.x)*e,t.y=a.y+(t.y-a.y)*e,this.addPoint(t),d.buildPoint(a,this.m_distance,p-c.o,t);const s=t.clone();s.x=a.x+(s.x-a.x)*e,s.y=a.y+(s.y-a.y)*e,s.type|=l,this.addPoint(s),this.addPoint(t)}else{const e=.5*(p-g),s=0===e?this.m_distance:this.m_distance/Math.abs(Math.sin(e));d.buildPoint(a,s,.5*(g+p),t),this.addPointEx(t,i)}else{if(512&a.type){const e=1-s/Math.abs(this.m_distance);let n=1,r=this.m_distance<0?-Math.PI:Math.PI;if(e>-1&&e<1){let t=2*Math.acos(e);t<h&&(t=h),n=Math.trunc(Math.PI/t+1.5),n>1&&(r/=n)}n<=1&&(n=2,r/=2);let o=g+c.o;d.buildPoint(a,this.m_distance,o,t),0===i&&(t.type|=f),this.addPointEx(t,i);const u=this.m_distance/Math.cos(r/2);for(o+=r/2,d.buildPoint(a,u,o,t),t.type|=f,this.addPoint(t);--n>0;)o+=r,d.buildPoint(a,u,o,t),t.type|=f,this.addPoint(t);d.buildPoint(a,this.m_distance,p-c.o,t),t.type|=f,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const e=1-s/Math.abs(this.m_distance);let n=1,r=p-c.o-(g+c.o);if(e>-1&&e<1){let t=2*Math.acos(e);t<h&&(t=h),n=Math.trunc(Math.abs(r)/t+1.5),n>1&&(r/=n)}const o=this.m_distance/Math.cos(.5*r);let u=g+c.o+.5*r;for(d.buildPoint(a,o,u,t),this.addPointEx(t,i);--n>0;)u+=r,d.buildPoint(a,o,u,t),this.addPoint(t);continue}if(2===this.m_joins){const e=o.x-a.x,s=o.y-a.y,n=m.x-a.x,r=m.y-a.y;let h=(e*n+s*r)/Math.sqrt(e*e+s*s)/Math.sqrt(n*n+r*r);if(h=Math.max(h,-1),h>1-1e-8){d.buildPoint(a,u*this.m_distance,p-.25*Math.PI,t),this.addPointEx(t,i),d.buildPoint(a,u*this.m_distance,p+.25*Math.PI,t),this.addPoint(t);continue}const l=Math.abs(this.m_distance/Math.sin(.5*Math.acos(h))),f=Math.abs(this.m_miterLimit*this.m_distance);if(l>f){const e=.5*(p-g),s=this.m_distance/Math.abs(Math.sin(e));d.buildPoint(a,s,.5*(g+p),t);const n=c.P.construct(t.x,t.y),r=c.P.construct(a.x,a.y),o=new c.P;o.setSub(n,r);const u=new c.P;u.setScaleAdd(f/o.length(),o,r);const h=Math.sqrt(l*l-this.m_distance*this.m_distance),m=(l-f)*Math.abs(this.m_distance)/h;this.m_distance>0?o.rightPerpendicularThis():o.leftPerpendicularThis(),o.scale(m/o.length());const y=new c.P;y.setAdd(u,o);const x=new c.P;x.setSub(u,o),t.x=y.x,t.y=y.y,this.addPointEx(t,i),t.x=x.x,t.y=x.y,this.addPoint(t);continue}const y=.5*(p-g),x=this.m_distance/Math.abs(Math.sin(y));d.buildPoint(a,x,.5*(g+p),t),this.addPointEx(t,i);continue}{let e;if(p=x,this.m_distance>0?(p>g&&(p-=c.p),e=g-p<c.o):(p<g&&(p+=c.p),e=p-g<c.o),e){const e=this.m_distance*u;let s;s=e<0?g+.25*Math.PI:g+3*Math.PI*.25,d.buildPoint(a,e,s,t),this.addPointEx(t,i),s=e<0?p-.25*Math.PI:p-3*Math.PI*.25,d.buildPoint(a,e,s,t),this.addPoint(t)}else{const e=.5*(p-g),s=this.m_distance/Math.abs(Math.sin(e));p<g&&(p+=c.p),d.buildPoint(a,s,(g+p)/2,t),this.addPointEx(t,i)}}}else d.buildPoint(a,this.m_distance,g+c.o,t),this.addPointEx(t,i),d.buildPoint(a,this.m_distance,p-c.o,t),this.addPoint(t)}}return this.m_a1=n,this.m_a2=r,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let t=!1;for(let t=0;t<this.m_offsetPtCount;t++){const e=this.m_offsetPts[t];e.m_next=t+1,e.m_prev=t-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let e=0;for(let s=0;s<this.m_offsetPtCount;s++)if(this.m_offsetPts[e].type&l){const s=this.deleteClosedSeg(e);if(-1===s){t=!0;break}e=s}else e=this.m_offsetPts[e].m_next;return!t&&(this.compressOffsetArray(e),!0)}deleteClosedSeg(t){const e=this.m_offsetPtCount-1;let s,n,r=t;for(let i=1;i<=e-2;i++){r=this.m_offsetPts[r].m_next,s=r,n=t;for(let t=1;t<=i;t++){if(n=this.m_offsetPts[n].m_prev,0===(this.m_offsetPts[n].type&l)&&0===(this.m_offsetPts[s].type&l)){const t=this.handleClosedIntersection(n,s);if(-1!==t)return t}s=this.m_offsetPts[s].m_prev}}return-1}handleClosedIntersection(t,e){const s=this.m_offsetPts[this.m_offsetPts[t].m_prev],n=this.m_offsetPts[t],r=this.m_offsetPts[this.m_offsetPts[e].m_prev],i=this.m_offsetPts[e];if(!this.sectGraphicRect(s,n,r,i))return-1;const a={pt:new m,bAtExistingPt:!1};if(((n.x-s.x)*(i.y-r.y)-(n.y-s.y)*(i.x-r.x))*this.m_distance<0&&this.findIntersection(s,n,r,i,a)&&!a.bAtExistingPt){const o=1e-8,c=Math.sqrt((n.x-s.x)*(n.x-s.x)+(n.y-s.y)*(n.y-s.y)),u=(n.x-s.x)/c,h=(n.y-s.y)/c,l=Math.sqrt((i.x-r.x)*(i.x-r.x)+(i.y-r.y)*(i.y-r.y)),f=(i.x-r.x)/l,m=(i.y-r.y)/l;let d=!1;const g=a.pt.clone();g.x+=(u+f)*o,g.y+=(h+m)*o;let p=r,y=a.pt,x=this.m_offsetPts[t].m_prev;for(;y.y>g.y!=p.y>g.y&&g.x<(p.x-y.x)*(g.y-y.y)/(p.y-y.y)+y.x&&(d=!d),p=y,x=this.m_offsetPts[x].m_next,x!==e;)y=this.m_offsetPts[x];if(d)return-1;const _=this.m_offsetPts[t].m_prev;return a.pt.type=n.type,a.pt.m_next=e,a.pt.m_prev=_,this.m_offsetPts[t]=a.pt,this.m_offsetPts[e].m_prev=t,e}return-1}sectGraphicRect(t,e,s,n){return Math.max(t.x,e.x)>=Math.min(s.x,n.x)&&Math.max(s.x,n.x)>=Math.min(t.x,e.x)&&Math.max(t.y,e.y)>=Math.min(s.y,n.y)&&Math.max(s.y,n.y)>=Math.min(t.y,e.y)}findIntersection(t,e,s,n,r){let i,a,o,c;return r.bAtExistingPt=!1,i=(e.y-t.y)*(n.x-s.x)-(e.x-t.x)*(n.y-s.y),a=(s.y-t.y)*(e.x-t.x)-(s.x-t.x)*(e.y-t.y),o=0===i?2:a/i,o>=0&&o<=1&&(c=o,i=(n.y-s.y)*(e.x-t.x)-(n.x-s.x)*(e.y-t.y),a=(t.y-s.y)*(n.x-s.x)-(t.x-s.x)*(n.y-s.y),o=0===i?2:a/i,o>=0&&o<=1)&&(r.pt.x=t.x+o*(e.x-t.x),r.pt.y=t.y+o*(e.y-t.y),this.m_bUseZ&&(r.pt.z=s.z+c*(n.z-s.z)),this.m_bUseM&&(r.pt.m=s.m+c*(n.m-s.m)),0!==c&&1!==c||0!==o&&1!==o||(r.bAtExistingPt=!0),!((0===c||1===c)&&o>0&&o<1||(0===o||1===o)&&c>0&&c<1))}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let e=0,s=t;do{const t=this.m_offsetPts[s].clone();this.m_offsetPts[e]=t,s=t.m_next,e++}while(s!==t);this.m_offsetPts[e]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=e+1}addPart(t,e){if(!(e<2))for(let s=0;s<e;s++){const e=this.m_offsetPts[t+s];if(s?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(e.x,e.y,e.z):this.m_resultPath.lineToCoords(e.x,e.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(e.x,e.y,e.z):this.m_resultPath.startPathCoords(e.x,e.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,e.m)}}}offsetMultiPath(t){const e=(0,o.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),s=e.querySegmentIterator();s.resetToFirstPath();let n=-1;for(;s.nextPath();)n++,this.offsetPath(e,n,t)}offsetPath(t,e,s){let n=t.getPathStart(e),r=t.getPathEnd(e);if(this.m_resultPath=s,t.isClosedPath(e)){const e=t.getXY(n);for(;r>n&&t.getXY(r-1).equals(e);)r--;if(r-n>=2){this.m_srcPtCount=r-n,this.m_srcPts.length=this.m_srcPtCount;for(let e=n;e<r;e++)this.progress(),this.m_srcPts[e-n]=m.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const e=t.getXY(n);for(;n<r-1&&t.getXY(n+1).equals(e);)n++;const s=t.getXY(r-1);for(;n<r-1&&t.getXY(r-2).equals(s);)r--;if(r-n>=2){this.m_srcPtCount=2*(r-n)-2,this.m_srcPts.length=this.m_srcPtCount;let s=m.construct(e,this.m_bUseZ?t.getAttributeAsDbl(1,n,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n,0):0);s.type|=1536,this.m_srcPts[0]=s;let i=1,a=this.m_srcPtCount-1;for(let e=n+1;e<r-1;e++,i++,a--)this.progress(),s=m.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0),this.m_srcPts[i]=s.clone(),s.type|=f,this.m_srcPts[a]=s.clone();if(s=m.construct(t.getXY(r-1),this.m_bUseZ?t.getAttributeAsDbl(1,r-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,r-1,0):0),s.type|=512,this.m_srcPts[i]=s.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,e=-1,s=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&f);s||(t=0);for(let n=1;n<this.m_offsetPtCount;n++){this.progress();const r=0!==(this.m_offsetPts[n].type&f);r?s||(e=n-1,e-t+1>1&&this.addPart(t,e-t+1)):s&&(t=n-1),s=r}s||(e=this.m_offsetPtCount-1,e-t+1>1&&this.addPart(t,e-t+1))}else{const t=0,e=this.m_offsetPtCount-1;e-t>=1&&this.addPart(t,e-t+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,e,s,n){const r=e.x-t.x,i=e.y-t.y,a=n.x-s.x,o=n.y-s.y,u=(0,c.t)(r,i,a,o);return(0,c.e)(u)}}class g extends r.G{constructor(t,e,s,n,r,i,a){super(),this.m_progressTracker=a,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=e,this.m_distance=s,this.m_joins=n,this.m_miterLimit=r,this.m_flattenError=i}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let e;return(0,a.c)(t),e=this.m_flattenError<=0?(0,i.e)(this.m_spatialReference,t,!0).total():this.m_flattenError,function(t,e,s,n,r,i){if(null===t&&(0,a.a)(""),t.getDimension()<1&&(0,a.a)(""),r>0||(0,a.a)(""),(0,a.c)(t),0===e||t.isEmpty())return t;const o=new d(i);return o.m_bUseZ=t.hasAttribute(1),o.m_bUseM=t.hasAttribute(2),o.m_inputGeometry=t,o.m_distance=e,o.m_tolerance=r,o.m_joins=s,o.m_miterLimit=n>1?n:1,o.m_progressCounter=0,o.constructOffset()}(t,this.m_distance,this.m_joins,this.m_miterLimit,e,this.m_progressTracker)}}const p=new class{getOperatorType(){return 10108}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e,s,n,r,i,a){return new g(t,e,s,n,r,i,a)}execute(t,e,s,n,r,i,a){return new g(null,e,s,n,r,i,a).offset(t)}};function y(t,e,s,n,r,i){return p.execute(t,e,s,n,r,i,null)}function x(t,e,s,r,i,a){const o=p.executeMany(new n.S(t),e,s,r,i,a,null);return Array.from(o)}},78125(t,e,s){s.r(e),s.d(e,{fromExtent:()=>p,fromGeometry:()=>g,fromMultipoint:()=>y,fromPoint:()=>x,fromPolygon:()=>_,fromPolyline:()=>P,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>v,getSpatialReference:()=>d,toExtent:()=>C,toGeometry:()=>b,toMultipoint:()=>E,toPoint:()=>w,toPolygon:()=>S,toPolyline:()=>A});var n=s(83661),r=(s(79187),s(55537)),i=s(95213),a=s(88885),o=s(5443),c=s(48526),u=s(86738),h=s(39829),l=s(82799),f=(s(90293),s(83299));const m="_gxVersion";function d(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function g(t){switch(t.type){case"point":return x(t);case"multipoint":return y(t);case"polyline":return P(t);case"polygon":return _(t);case"extent":return p(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function p(t){if(!t.getCacheValue(m)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new a.M,s=new i.P,n=t.points,r=t.hasM,o=t.hasZ,c=o?3:2;for(let t=0,i=n.length;t<i;t++){const i=n[t];s.setXYCoords(i[0],i[1]),o&&s.setZ(i[2]??0),r&&s.setM(i[c]??NaN),e.add(s)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function x(t){if(!t.getCacheValue(m)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function _(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:s,hasZ:n,rings:r}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:s,hasZ:n,rings:r});t.setCacheValue(m,i)}return t.getCacheValue(m)}function P(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:s,hasZ:n,paths:r}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:s,hasZ:n,paths:r});t.setCacheValue(m,i)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:s,hasZ:n,paths:r}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:s,hasZ:n,paths:r});t.setCacheValue(m,i)}return t.getCacheValue(m)}function v(t){return t.cache?(t.cache[m]??=(0,f.fromSpatialReference)(t),t.cache[m]):(0,f.fromSpatialReference)(t)}function b(t,e){if(t)switch(t.getGeometryType()){case r.G.enumPoint:return w(t,e);case r.G.enumEnvelope:return C(t,e);case r.G.enumMultiPoint:return E(t,e);case r.G.enumPolyline:return A(t,e);case r.G.enumPolygon:return S(t,e)}return null}function C(t,e){if(t.isEmpty())return null;const s=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),n=t.getDescription();if(n.hasM()){const e=t.queryInterval(2,0);s.mmin=e.vmin,s.mmax=e.vmax}if(n.hasZ()){const e=t.queryInterval(1,0);s.zmin=e.vmin,s.zmax=e.vmax}return s.setCacheValue(m,t),s}function E(t,e){if(t.isEmpty())return null;const s=t.getDescription(),n=s.hasM(),r=s.hasZ(),a=[],o=new i.P;for(let e=0,s=t.getPointCount();e<s;e++){t.getPointByVal(e,o);const s=[o.getX(),o.getY()];r&&s.push(o.getZ()),n&&s.push(o.getM()),a.push(s)}const u=new c.A({hasM:n,hasZ:r,points:a,spatialReference:e});return u.setCacheValue(m,t),u}function w(t,e){if(t instanceof n.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const s=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),r=t.getDescription();return r.hasM()&&(s.m=t.getM()),r.hasZ()&&(s.z=t.getZ()),s.setCacheValue(m,t),s}function S(t,e){if(t.isEmpty())return null;const s=h.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return s.setCacheValue(m,t),s}function A(t,e){if(t.isEmpty())return null;const s=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return s.setCacheValue(m,t),s}},4197(t,e,s){s.d(e,{Vj:()=>c,cj:()=>o,jh:()=>i,l5:()=>a});var n=s(34275),r=s(9093);function i(t){return t<=n.y9?new Array(t).fill(0):new Float64Array(t)}function a(t,e,s){return Array.isArray(t)?t.slice(e,e+s):t.subarray(e,e+s)}function o(t){return[...t]}function c(t){const e=(0,r.vt)();for(let s=0;s<16;++s)e[s]=t[s];return e}},70328(t,e,s){s.d(e,{BI:()=>_,DC:()=>l,Ej:()=>m,Ie:()=>y,Jt:()=>x,Ne:()=>d,RF:()=>h,aI:()=>M,fA:()=>a,gE:()=>c,hZ:()=>p,iT:()=>f,is:()=>P,qv:()=>v,vI:()=>g,vY:()=>o,v_:()=>b,vt:()=>i,w1:()=>u}),s(35522);var n=s(5443),r=(s(19419),s(4197));function i(t=b){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e,s,n,r,a,o=i()){return o[0]=t,o[1]=e,o[2]=s,o[3]=n,o[4]=r,o[5]=a,o}function o(t,e=i()){return function(t,e,s,n=i()){return p(n,v),function(t,e,s=0,n=e.length/3){let r=t[0],i=t[1],a=t[2],o=t[3],c=t[4],u=t[5];for(let t=0;t<n;t++)r=Math.min(r,e[s+3*t]),i=Math.min(i,e[s+3*t+1]),a=Math.min(a,e[s+3*t+2]),o=Math.max(o,e[s+3*t]),c=Math.max(c,e[s+3*t+1]),u=Math.max(u,e[s+3*t+2]);t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=c,t[5]=u}(n,t,e,s),n}(t,0,t.length/3,e)}function c(t,e=(0,r.jh)(24)){const[s,n,i,a,o,c]=t;return e[0]=s,e[1]=n,e[2]=i,e[3]=s,e[4]=n,e[5]=c,e[6]=s,e[7]=o,e[8]=i,e[9]=s,e[10]=o,e[11]=c,e[12]=a,e[13]=n,e[14]=i,e[15]=a,e[16]=n,e[17]=c,e[18]=a,e[19]=o,e[20]=i,e[21]=a,e[22]=o,e[23]=c,e}function u(t,e){const s=isFinite(t[2])||isFinite(t[5]);return new n.A(s?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function d(t,e,s=t){return s[0]=e[0],s[1]=e[1],s[2]=e[2],s!==t&&(s[3]=t[3],s[4]=t[4],s[5]=t[5]),s}function g(t,e,s=t){return s[3]=e[0],s[4]=e[1],s[5]=e[2],s!==t&&(s[0]=t[0],s[1]=t[1],s[2]=t[2]),t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function y(t){return t?p(t,v):i(v)}function x(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function _(t,e,s,n,r){return t[0]=e,t[1]=s,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=r,t[5]=Number.POSITIVE_INFINITY,t}function P(t){return 6===t.length}function M(t,e,s){if(null==t||null==e)return t===e;if(!P(t)||!P(e))return!1;if(s){for(let n=0;n<t.length;n++)if(!s(t[n],e[n]))return!1}else for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];i()},92722(t,e,s){s.d(e,{A:()=>r});var n=s(69397);class r{constructor(t=[],e=[],s=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=s,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:s,hasM:n}){return new r(t,e,s||!1,n||!1)}static fromRect([t,e,s,n]){const i=s-t,a=n-e;return new r([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const s of this.lengths){if(s<3)continue;const{stride:n}=this;let r=this.coords[n*e],i=this.coords[n*e+1];for(let a=1;a<s;a+=1){const s=n*(e+a),o=this.coords[s],c=this.coords[s+1];t+=-.5*(o-r)*(c+i),r=o,i=c}e+=s}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:s}=this;for(const n of this.lengths){for(let r=0;r<n;r++){const n=s*(e+r);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:s}=t;let n=0;const{stride:r}=this;for(const t of s){for(let s=1;s<t;s++){const t=r*(n+s);e[t]+=e[t-r],e[t+1]+=e[t+1-r]}n+=t}return t}clone(t){if(this.isPoint)return new r([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:s,size:n}=this,i=this.coords.slice(0,n*s);return t?(t.set(i),new r(e,t,this.hasZ,this.hasM)):new r(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const s=new Array(e*t);for(let e=0,n=0;e<s.length;e+=t)s[n++]=this.coords[e],s[n++]=this.coords[e+1];return new r(this.lengths,s,!1,!1)}}}}]);