@arcgis/ai-components 5.1.0-next.99 → 5.1.1

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 (446) hide show
  1. package/README.md +2 -2
  2. package/dist/agent-utils/BaseAgent.d.ts +90 -0
  3. package/dist/agent-utils/BaseAgent.js +87 -0
  4. package/dist/agent-utils/FunctionAgent.d.ts +64 -0
  5. package/dist/agent-utils/FunctionAgent.js +98 -0
  6. package/dist/agent-utils/LLMAgent.d.ts +65 -0
  7. package/dist/agent-utils/LLMAgent.js +140 -0
  8. package/dist/agent-utils/WorkflowAgent.d.ts +44 -0
  9. package/dist/agent-utils/WorkflowAgent.js +70 -0
  10. package/dist/agent-utils/index.d.ts +177 -0
  11. package/dist/agent-utils/index.js +167 -0
  12. package/dist/agent-utils/middlewares/humanInTheLoop.d.ts +152 -0
  13. package/dist/agent-utils/middlewares/humanInTheLoop.js +94 -0
  14. package/dist/agent-utils/middlewares/middleware.d.ts +25 -0
  15. package/dist/agent-utils/middlewares/middleware.js +44 -0
  16. package/dist/agent-utils/middlewares/trace.d.ts +27 -0
  17. package/dist/agent-utils/middlewares/trace.js +42 -0
  18. package/dist/agent-utils/middlewares/types.d.ts +123 -0
  19. package/dist/agent-utils/middlewares/types.js +2 -0
  20. package/dist/agent-utils/tools/FunctionTool.d.ts +127 -0
  21. package/dist/agent-utils/tools/FunctionTool.js +80 -0
  22. package/dist/agent-utils/types.d.ts +181 -0
  23. package/dist/agent-utils/workflows/BaseWorkflow.d.ts +87 -0
  24. package/dist/agent-utils/workflows/ConditionalWorkflow.d.ts +72 -0
  25. package/dist/agent-utils/workflows/ConditionalWorkflow.js +61 -0
  26. package/dist/agent-utils/workflows/LoopWorkflow.d.ts +58 -0
  27. package/dist/agent-utils/workflows/LoopWorkflow.js +56 -0
  28. package/dist/agent-utils/workflows/ParallelWorkflow.d.ts +68 -0
  29. package/dist/agent-utils/workflows/ParallelWorkflow.js +129 -0
  30. package/dist/agent-utils/workflows/RouterWorkflow.d.ts +63 -0
  31. package/dist/agent-utils/workflows/RouterWorkflow.js +75 -0
  32. package/dist/agent-utils/workflows/SequentialWorkflow.d.ts +56 -0
  33. package/dist/agent-utils/workflows/SequentialWorkflow.js +69 -0
  34. package/dist/agent-utils/workflows/SwitchWorkflow.d.ts +74 -0
  35. package/dist/agent-utils/workflows/SwitchWorkflow.js +84 -0
  36. package/dist/assets/embeddings.worker-k9_Ou679.js +1 -0
  37. package/dist/cdn/23V7X7HI.js +2 -0
  38. package/dist/cdn/2M75JCC3.js +2 -0
  39. package/dist/cdn/3J5RM5OR.js +36 -0
  40. package/dist/cdn/46U2PGRW.js +65 -0
  41. package/dist/cdn/4ASZF5I2.js +181 -0
  42. package/dist/cdn/4BA4OUWC.js +134 -0
  43. package/dist/cdn/4EALV6QJ.js +2 -0
  44. package/dist/cdn/4FWA2GPI.js +2 -0
  45. package/dist/cdn/4G23LPSC.js +2 -0
  46. package/dist/cdn/4VLPZRE4.js +2 -0
  47. package/dist/cdn/5JUFVHKE.js +4 -0
  48. package/dist/cdn/{5PT7ZFXF.js → 5RQUSM3T.js} +23 -5
  49. package/dist/cdn/6FEB6XYK.js +2 -0
  50. package/dist/cdn/7CCULIWM.js +2 -0
  51. package/dist/cdn/7WSTR3WA.js +2 -0
  52. package/dist/cdn/A2EDDZYZ.js +9 -0
  53. package/dist/cdn/{SFREIREB.js → AJKWCXDA.js} +8 -2
  54. package/dist/cdn/{3QC3BRZP.js → AJZDMDBE.js} +1 -1
  55. package/dist/cdn/AQVENOUR.js +2 -0
  56. package/dist/cdn/AXOPGQGZ.js +2 -0
  57. package/dist/cdn/BBVJRA5C.js +2 -0
  58. package/dist/cdn/BN62SWVJ.js +2 -0
  59. package/dist/cdn/BUTKUPXN.js +34 -0
  60. package/dist/cdn/CJLWKEVL.js +2 -0
  61. package/dist/cdn/CU2TRUZQ.js +99 -0
  62. package/dist/cdn/DB2C7FK7.js +2 -0
  63. package/dist/cdn/DHGNGMNJ.js +2 -0
  64. package/dist/cdn/DKNDDDWM.js +2 -0
  65. package/dist/cdn/EQ6SIKWH.js +2 -0
  66. package/dist/cdn/ESRKMM6P.js +2 -0
  67. package/dist/cdn/FDBWYCAB.js +22 -0
  68. package/dist/cdn/FYNHAVHL.js +2 -0
  69. package/dist/cdn/GS6CZOV7.js +2 -0
  70. package/dist/cdn/H3EEFM4A.js +179 -0
  71. package/dist/cdn/IST7HVLR.js +2 -0
  72. package/dist/cdn/KGYSBUFO.js +9 -0
  73. package/dist/cdn/L6GVMINQ.js +2 -0
  74. package/dist/cdn/LTPDBXQ7.js +6 -0
  75. package/dist/cdn/LUY7QCZ3.js +2 -0
  76. package/dist/cdn/LXJWWOGK.js +66 -0
  77. package/dist/cdn/M7C6Y752.js +2 -0
  78. package/dist/cdn/MDN3ZUN3.js +2 -0
  79. package/dist/cdn/MJM2MHJW.js +44 -0
  80. package/dist/cdn/N2SKXRLK.js +71 -0
  81. package/dist/cdn/{O62HTIOD.js → OAD4232L.js} +1 -1
  82. package/dist/cdn/OBDCCGVH.js +2 -0
  83. package/dist/cdn/OLR476KB.js +2 -0
  84. package/dist/cdn/OP6ENMCN.js +180 -0
  85. package/dist/cdn/P5M2HNJ7.js +2 -0
  86. package/dist/cdn/PFW7KXCP.js +48 -0
  87. package/dist/cdn/PIUDMACH.js +56 -0
  88. package/dist/cdn/PKH5BECA.js +2 -0
  89. package/dist/cdn/PTKZXFXB.js +31 -0
  90. package/dist/cdn/QH6TSBNI.js +2 -0
  91. package/dist/cdn/QZHIR5EW.js +2 -0
  92. package/dist/cdn/QZXQIJSW.js +2 -0
  93. package/dist/cdn/SXSBIMCT.js +3 -0
  94. package/dist/cdn/{VHOF6SUZ.js → TIXCHLEN.js} +17 -1
  95. package/dist/cdn/TOYQ22PR.js +2 -0
  96. package/dist/cdn/UDXMJNRF.js +3 -0
  97. package/dist/cdn/UE3CP46P.js +2 -0
  98. package/dist/cdn/UI7A5YFP.js +2 -0
  99. package/dist/cdn/V54BAEVN.js +2 -0
  100. package/dist/cdn/VDAF255D.js +22 -0
  101. package/dist/cdn/VPZHLYPA.js +2 -0
  102. package/dist/cdn/{7EXACS27.js → VWMJ7HIK.js} +10 -7
  103. package/dist/cdn/W2CWLWUT.js +14 -0
  104. package/dist/cdn/W6HO4D6J.js +18 -0
  105. package/dist/cdn/WJ3HQS7K.js +2 -0
  106. package/dist/cdn/WNJM5TET.js +2 -0
  107. package/dist/cdn/XGH3OA6E.js +3 -0
  108. package/dist/cdn/XKBXBP5T.js +2 -0
  109. package/dist/cdn/Y5GGIKKC.js +2 -0
  110. package/dist/cdn/YURWID37.js +2 -0
  111. package/dist/cdn/ZXI5XHL2.js +2 -0
  112. package/dist/cdn/agent-utils/index.js +2 -0
  113. package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +3 -0
  114. package/dist/cdn/agent-utils/middlewares/middleware.js +2 -0
  115. package/dist/cdn/agent-utils/middlewares/trace.js +2 -0
  116. package/dist/cdn/assets/assistant/t9n/messages.ar.json +1 -1
  117. package/dist/cdn/assets/assistant/t9n/messages.bg.json +1 -1
  118. package/dist/cdn/assets/assistant/t9n/messages.bs.json +1 -1
  119. package/dist/cdn/assets/assistant/t9n/messages.ca.json +1 -1
  120. package/dist/cdn/assets/assistant/t9n/messages.cs.json +1 -1
  121. package/dist/cdn/assets/assistant/t9n/messages.da.json +1 -1
  122. package/dist/cdn/assets/assistant/t9n/messages.de.json +1 -1
  123. package/dist/cdn/assets/assistant/t9n/messages.el.json +1 -1
  124. package/dist/cdn/assets/assistant/t9n/messages.es.json +1 -1
  125. package/dist/cdn/assets/assistant/t9n/messages.et.json +1 -1
  126. package/dist/cdn/assets/assistant/t9n/messages.fi.json +1 -1
  127. package/dist/cdn/assets/assistant/t9n/messages.fr.json +1 -1
  128. package/dist/cdn/assets/assistant/t9n/messages.he.json +1 -1
  129. package/dist/cdn/assets/assistant/t9n/messages.hr.json +1 -1
  130. package/dist/cdn/assets/assistant/t9n/messages.hu.json +1 -1
  131. package/dist/cdn/assets/assistant/t9n/messages.id.json +1 -1
  132. package/dist/cdn/assets/assistant/t9n/messages.it.json +1 -1
  133. package/dist/cdn/assets/assistant/t9n/messages.ja.json +1 -1
  134. package/dist/cdn/assets/assistant/t9n/messages.ko.json +1 -1
  135. package/dist/cdn/assets/assistant/t9n/messages.lt.json +1 -1
  136. package/dist/cdn/assets/assistant/t9n/messages.lv.json +1 -1
  137. package/dist/cdn/assets/assistant/t9n/messages.nl.json +1 -1
  138. package/dist/cdn/assets/assistant/t9n/messages.no.json +1 -1
  139. package/dist/cdn/assets/assistant/t9n/messages.pl.json +1 -1
  140. package/dist/cdn/assets/assistant/t9n/messages.pt-BR.json +1 -1
  141. package/dist/cdn/assets/assistant/t9n/messages.pt-PT.json +1 -1
  142. package/dist/cdn/assets/assistant/t9n/messages.ro.json +1 -1
  143. package/dist/cdn/assets/assistant/t9n/messages.ru.json +1 -1
  144. package/dist/cdn/assets/assistant/t9n/messages.sk.json +1 -1
  145. package/dist/cdn/assets/assistant/t9n/messages.sl.json +1 -1
  146. package/dist/cdn/assets/assistant/t9n/messages.sr.json +1 -1
  147. package/dist/cdn/assets/assistant/t9n/messages.sv.json +1 -1
  148. package/dist/cdn/assets/assistant/t9n/messages.th.json +1 -1
  149. package/dist/cdn/assets/assistant/t9n/messages.tr.json +1 -1
  150. package/dist/cdn/assets/assistant/t9n/messages.uk.json +1 -1
  151. package/dist/cdn/assets/assistant/t9n/messages.vi.json +1 -1
  152. package/dist/cdn/assets/assistant/t9n/messages.zh-CN.json +1 -1
  153. package/dist/cdn/assets/assistant/t9n/messages.zh-HK.json +1 -1
  154. package/dist/cdn/assets/assistant/t9n/messages.zh-TW.json +1 -1
  155. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ar.json +1 -1
  156. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.bg.json +1 -1
  157. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.bs.json +1 -1
  158. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ca.json +1 -1
  159. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.cs.json +1 -1
  160. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.da.json +1 -1
  161. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.de.json +1 -1
  162. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.el.json +1 -1
  163. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.es.json +1 -1
  164. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.et.json +1 -1
  165. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.fi.json +1 -1
  166. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.fr.json +1 -1
  167. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.he.json +1 -1
  168. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.hr.json +1 -1
  169. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.hu.json +1 -1
  170. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.id.json +1 -1
  171. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.it.json +1 -1
  172. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ja.json +1 -1
  173. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ko.json +1 -1
  174. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.lt.json +1 -1
  175. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.lv.json +1 -1
  176. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.nl.json +1 -1
  177. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.no.json +1 -1
  178. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.pl.json +1 -1
  179. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.pt-BR.json +1 -1
  180. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.pt-PT.json +1 -1
  181. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ro.json +1 -1
  182. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ru.json +1 -1
  183. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.sk.json +1 -1
  184. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.sl.json +1 -1
  185. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.sr.json +1 -1
  186. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.sv.json +1 -1
  187. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.th.json +1 -1
  188. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.tr.json +1 -1
  189. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.uk.json +1 -1
  190. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.vi.json +1 -1
  191. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.zh-CN.json +1 -1
  192. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.zh-HK.json +1 -1
  193. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.zh-TW.json +1 -1
  194. package/dist/cdn/assets/assistant-message-footer/t9n/messages.ar.json +1 -1
  195. package/dist/cdn/assets/assistant-message-footer/t9n/messages.bg.json +1 -1
  196. package/dist/cdn/assets/assistant-message-footer/t9n/messages.bs.json +1 -1
  197. package/dist/cdn/assets/assistant-message-footer/t9n/messages.ca.json +1 -1
  198. package/dist/cdn/assets/assistant-message-footer/t9n/messages.cs.json +1 -1
  199. package/dist/cdn/assets/assistant-message-footer/t9n/messages.da.json +1 -1
  200. package/dist/cdn/assets/assistant-message-footer/t9n/messages.de.json +1 -1
  201. package/dist/cdn/assets/assistant-message-footer/t9n/messages.el.json +1 -1
  202. package/dist/cdn/assets/assistant-message-footer/t9n/messages.es.json +1 -1
  203. package/dist/cdn/assets/assistant-message-footer/t9n/messages.et.json +1 -1
  204. package/dist/cdn/assets/assistant-message-footer/t9n/messages.fi.json +1 -1
  205. package/dist/cdn/assets/assistant-message-footer/t9n/messages.fr.json +1 -1
  206. package/dist/cdn/assets/assistant-message-footer/t9n/messages.he.json +1 -1
  207. package/dist/cdn/assets/assistant-message-footer/t9n/messages.hr.json +1 -1
  208. package/dist/cdn/assets/assistant-message-footer/t9n/messages.hu.json +1 -1
  209. package/dist/cdn/assets/assistant-message-footer/t9n/messages.id.json +1 -1
  210. package/dist/cdn/assets/assistant-message-footer/t9n/messages.it.json +1 -1
  211. package/dist/cdn/assets/assistant-message-footer/t9n/messages.ja.json +1 -1
  212. package/dist/cdn/assets/assistant-message-footer/t9n/messages.ko.json +1 -1
  213. package/dist/cdn/assets/assistant-message-footer/t9n/messages.lt.json +1 -1
  214. package/dist/cdn/assets/assistant-message-footer/t9n/messages.lv.json +1 -1
  215. package/dist/cdn/assets/assistant-message-footer/t9n/messages.nl.json +1 -1
  216. package/dist/cdn/assets/assistant-message-footer/t9n/messages.no.json +1 -1
  217. package/dist/cdn/assets/assistant-message-footer/t9n/messages.pl.json +1 -1
  218. package/dist/cdn/assets/assistant-message-footer/t9n/messages.pt-BR.json +1 -1
  219. package/dist/cdn/assets/assistant-message-footer/t9n/messages.pt-PT.json +1 -1
  220. package/dist/cdn/assets/assistant-message-footer/t9n/messages.ro.json +1 -1
  221. package/dist/cdn/assets/assistant-message-footer/t9n/messages.ru.json +1 -1
  222. package/dist/cdn/assets/assistant-message-footer/t9n/messages.sk.json +1 -1
  223. package/dist/cdn/assets/assistant-message-footer/t9n/messages.sl.json +1 -1
  224. package/dist/cdn/assets/assistant-message-footer/t9n/messages.sr.json +1 -1
  225. package/dist/cdn/assets/assistant-message-footer/t9n/messages.sv.json +1 -1
  226. package/dist/cdn/assets/assistant-message-footer/t9n/messages.th.json +1 -1
  227. package/dist/cdn/assets/assistant-message-footer/t9n/messages.tr.json +1 -1
  228. package/dist/cdn/assets/assistant-message-footer/t9n/messages.uk.json +1 -1
  229. package/dist/cdn/assets/assistant-message-footer/t9n/messages.vi.json +1 -1
  230. package/dist/cdn/assets/assistant-message-footer/t9n/messages.zh-CN.json +1 -1
  231. package/dist/cdn/assets/assistant-message-footer/t9n/messages.zh-HK.json +1 -1
  232. package/dist/cdn/assets/assistant-message-footer/t9n/messages.zh-TW.json +1 -1
  233. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ar.json +1 -1
  234. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.bg.json +1 -1
  235. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.bs.json +1 -1
  236. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ca.json +1 -1
  237. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.cs.json +1 -1
  238. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.da.json +1 -1
  239. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.de.json +1 -1
  240. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.el.json +1 -1
  241. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.es.json +1 -1
  242. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.et.json +1 -1
  243. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.fi.json +1 -1
  244. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.fr.json +1 -1
  245. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.he.json +1 -1
  246. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.hr.json +1 -1
  247. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.hu.json +1 -1
  248. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.id.json +1 -1
  249. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.it.json +1 -1
  250. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ja.json +1 -1
  251. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ko.json +1 -1
  252. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.lt.json +1 -1
  253. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.lv.json +1 -1
  254. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.nl.json +1 -1
  255. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.no.json +1 -1
  256. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.pl.json +1 -1
  257. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.pt-BR.json +1 -1
  258. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.pt-PT.json +1 -1
  259. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ro.json +1 -1
  260. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ru.json +1 -1
  261. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.sk.json +1 -1
  262. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.sl.json +1 -1
  263. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.sr.json +1 -1
  264. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.sv.json +1 -1
  265. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.th.json +1 -1
  266. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.tr.json +1 -1
  267. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.uk.json +1 -1
  268. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.vi.json +1 -1
  269. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.zh-CN.json +1 -1
  270. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.zh-HK.json +1 -1
  271. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.zh-TW.json +1 -1
  272. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ar.json +1 -1
  273. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.bg.json +1 -1
  274. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.bs.json +1 -1
  275. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ca.json +1 -1
  276. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.cs.json +1 -1
  277. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.da.json +1 -1
  278. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.de.json +1 -1
  279. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.el.json +1 -1
  280. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.es.json +1 -1
  281. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.et.json +1 -1
  282. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.fi.json +1 -1
  283. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.fr.json +1 -1
  284. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.he.json +1 -1
  285. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.hr.json +1 -1
  286. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.hu.json +1 -1
  287. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.id.json +1 -1
  288. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.it.json +1 -1
  289. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ja.json +1 -1
  290. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ko.json +1 -1
  291. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.lt.json +1 -1
  292. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.lv.json +1 -1
  293. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.nl.json +1 -1
  294. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.no.json +1 -1
  295. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.pl.json +1 -1
  296. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.pt-BR.json +1 -1
  297. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.pt-PT.json +1 -1
  298. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ro.json +1 -1
  299. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ru.json +1 -1
  300. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.sk.json +1 -1
  301. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.sl.json +1 -1
  302. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.sr.json +1 -1
  303. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.sv.json +1 -1
  304. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.th.json +1 -1
  305. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.tr.json +1 -1
  306. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.uk.json +1 -1
  307. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.vi.json +1 -1
  308. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.zh-CN.json +1 -1
  309. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.zh-HK.json +1 -1
  310. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.zh-TW.json +1 -1
  311. package/dist/cdn/index.js +1 -1
  312. package/dist/cdn/main.css +1 -1
  313. package/dist/chunks/BaseWorkflow.js +107 -0
  314. package/dist/chunks/adapter.js +3130 -0
  315. package/dist/chunks/arcgisKnowledgeGraph.js +229 -0
  316. package/dist/chunks/arcgis_knowledge_current_lc_context.js +25 -0
  317. package/dist/chunks/arcgis_knowledge_current_map_context.js +37 -0
  318. package/dist/chunks/arcgis_knowledge_cypher_query_prompt.js +102 -0
  319. package/dist/chunks/arcgis_knowledge_lucene_generation_prompt.js +101 -0
  320. package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +137 -0
  321. package/dist/chunks/arcgis_knowledge_tool_prompt.js +34 -0
  322. package/dist/chunks/converterUtils.js +39 -32
  323. package/dist/chunks/dataExplorationGraph.js +324 -0
  324. package/dist/chunks/data_explore_filter_prompt.js +125 -0
  325. package/dist/chunks/data_explore_query_prompt.js +149 -0
  326. package/dist/chunks/embeddings.worker.js +25 -0
  327. package/dist/chunks/field_descriptions_prompt.js +112 -0
  328. package/dist/chunks/generateLayerDescriptions.js +453 -0
  329. package/dist/chunks/graph.js +86 -0
  330. package/dist/chunks/helpGraph.js +127 -0
  331. package/dist/chunks/help_prompt.js +74 -0
  332. package/dist/chunks/index.js +11 -0
  333. package/dist/chunks/intent_prompt.js +139 -0
  334. package/dist/chunks/layerStylingGraph.js +193 -0
  335. package/dist/chunks/layer_descriptions_prompt.js +59 -0
  336. package/dist/chunks/layer_styling_prompt.js +72 -0
  337. package/dist/chunks/navigationGraph.js +271 -0
  338. package/dist/chunks/navigation_intent_prompt.js +52 -0
  339. package/dist/chunks/navigation_tool_prompt.js +39 -0
  340. package/dist/chunks/orchestrator.js +569 -0
  341. package/dist/chunks/runtime.js +1 -1
  342. package/dist/chunks/slottableRequestUtils.js +3 -7
  343. package/dist/chunks/state.js +71 -0
  344. package/dist/chunks/summarize_query_response_prompt.js +80 -0
  345. package/dist/chunks/toolCallResponse.js +32 -0
  346. package/dist/chunks/utils.js +46 -28
  347. package/dist/chunks/utils2.js +41 -6
  348. package/dist/chunks/utils3.js +16 -0
  349. package/dist/components/arcgis-assistant/customElement.d.ts +87 -8
  350. package/dist/components/arcgis-assistant/customElement.js +393 -152
  351. package/dist/components/arcgis-assistant/index.js +2 -3
  352. package/dist/components/arcgis-assistant/types.d.ts +15 -2
  353. package/dist/components/arcgis-assistant-agent/customElement.d.ts +1 -1
  354. package/dist/components/arcgis-assistant-agent/customElement.js +6 -2
  355. package/dist/components/arcgis-assistant-chat/customElement.d.ts +8 -2
  356. package/dist/components/arcgis-assistant-chat/customElement.js +23 -18
  357. package/dist/components/arcgis-assistant-chat-entry/customElement.d.ts +4 -1
  358. package/dist/components/arcgis-assistant-chat-entry/customElement.js +25 -18
  359. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +30 -8
  360. package/dist/components/arcgis-assistant-help-agent/customElement.js +33 -8
  361. package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +4 -1
  362. package/dist/components/arcgis-assistant-interrupt/customElement.js +5 -5
  363. package/dist/components/arcgis-assistant-interrupt-preview/customElement.js +20 -0
  364. package/dist/components/arcgis-assistant-interrupt-preview/index.js +2 -0
  365. package/dist/components/arcgis-assistant-knowledge-agent/customElement.d.ts +158 -0
  366. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +74 -0
  367. package/dist/components/arcgis-assistant-knowledge-agent/index.d.ts +1 -0
  368. package/dist/components/arcgis-assistant-knowledge-agent/index.js +1 -0
  369. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +31 -6
  370. package/dist/components/arcgis-assistant-message/customElement.d.ts +23 -0
  371. package/dist/components/arcgis-assistant-message/customElement.js +28 -26
  372. package/dist/components/arcgis-assistant-message/index.d.ts +1 -0
  373. package/dist/components/arcgis-assistant-message/index.js +2 -0
  374. package/dist/components/arcgis-assistant-message-block/customElement.d.ts +2 -2
  375. package/dist/components/arcgis-assistant-message-block/customElement.js +18 -11
  376. package/dist/components/arcgis-assistant-message-block/index.js +1 -0
  377. package/dist/components/arcgis-assistant-message-feedback/customElement.d.ts +4 -1
  378. package/dist/components/arcgis-assistant-message-footer/customElement.d.ts +4 -1
  379. package/dist/components/arcgis-assistant-message-loading/customElement.d.ts +8 -1
  380. package/dist/components/arcgis-assistant-message-loading/customElement.js +8 -8
  381. package/dist/components/arcgis-assistant-message-loading/index.js +1 -0
  382. package/dist/components/arcgis-assistant-message-log/customElement.d.ts +4 -1
  383. package/dist/components/arcgis-assistant-message-read-aloud/customElement.d.ts +4 -1
  384. package/dist/components/arcgis-assistant-message-read-aloud/customElement.js +23 -27
  385. package/dist/components/arcgis-assistant-message-text/customElement.d.ts +5 -1
  386. package/dist/components/arcgis-assistant-message-text/customElement.js +12 -12
  387. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +31 -7
  388. package/dist/components/arcgis-assistant-speech-input/customElement.d.ts +6 -1
  389. package/dist/components/arcgis-assistant-suggested-prompts/customElement.d.ts +4 -1
  390. package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +8 -8
  391. package/dist/components/arcgis-assistant-user-message/customElement.d.ts +4 -1
  392. package/dist/components/arcgis-assistant-user-message/customElement.js +10 -8
  393. package/dist/docs/api.json +1 -1
  394. package/dist/docs/docs.json +1 -1
  395. package/dist/docs/vscode.html-custom-data.json +1 -1
  396. package/dist/docs/web-types.json +1 -1
  397. package/dist/index.d.ts +8 -0
  398. package/dist/loader.js +8 -6
  399. package/dist/types/lumina.d.ts +16 -5
  400. package/dist/types/preact.d.ts +18 -5
  401. package/dist/types/react.d.ts +20 -5
  402. package/dist/types/stencil.d.ts +16 -5
  403. package/dist/utils/index.d.ts +246 -9
  404. package/dist/utils/index.js +113 -10
  405. package/package.json +28 -12
  406. package/dist/cdn/2YEKZADB.js +0 -2
  407. package/dist/cdn/457RLS3H.js +0 -2
  408. package/dist/cdn/4QVKWA2Z.js +0 -24
  409. package/dist/cdn/54ATSQPS.js +0 -72
  410. package/dist/cdn/5JBT3YNY.js +0 -2
  411. package/dist/cdn/5L7OZ37N.js +0 -2
  412. package/dist/cdn/6ALN3KMA.js +0 -269
  413. package/dist/cdn/ARCP5UZY.js +0 -2
  414. package/dist/cdn/B4DEC7PH.js +0 -2
  415. package/dist/cdn/D7WNBUVK.js +0 -106
  416. package/dist/cdn/DSEMD4M2.js +0 -4
  417. package/dist/cdn/ESTSYVJP.js +0 -54
  418. package/dist/cdn/EUNEQNYC.js +0 -2
  419. package/dist/cdn/G4SVCCJH.js +0 -2
  420. package/dist/cdn/GER6EQYH.js +0 -2
  421. package/dist/cdn/K6LVZHWM.js +0 -45
  422. package/dist/cdn/KVH3PDVW.js +0 -2
  423. package/dist/cdn/LSGRWCAO.js +0 -5
  424. package/dist/cdn/LXFCO34K.js +0 -2
  425. package/dist/cdn/PTGKT5P6.js +0 -3
  426. package/dist/cdn/Q5D5LJS5.js +0 -2
  427. package/dist/cdn/R5FWFRWW.js +0 -2
  428. package/dist/cdn/SZBOIYZZ.js +0 -2
  429. package/dist/cdn/TRDKA5Y6.js +0 -2
  430. package/dist/cdn/UK6CP7BR.js +0 -2
  431. package/dist/cdn/WBRZZ4FB.js +0 -2
  432. package/dist/cdn/WNDUCHXU.js +0 -2
  433. package/dist/cdn/Y3AUHNRX.js +0 -2
  434. package/dist/cdn/YGW7TUNX.js +0 -2
  435. package/dist/cdn/YNJYG2RG.js +0 -2
  436. package/dist/cdn/YW52XJMM.js +0 -396
  437. package/dist/cdn/Z3DVGFEE.js +0 -2
  438. package/dist/cdn/ZLO73NU6.js +0 -2
  439. package/dist/cdn/ZPNJGIAF.js +0 -2
  440. /package/dist/cdn/{YVTKUITE.js → 53Z3R4OY.js} +0 -0
  441. /package/dist/cdn/{CFT5BBC6.js → 77GAVZIK.js} +0 -0
  442. /package/dist/cdn/{W5CHGOOR.js → G7XK3XOR.js} +0 -0
  443. /package/dist/cdn/{DMLSCJAM.js → HJGF7W5O.js} +0 -0
  444. /package/dist/cdn/{JDL3HFFX.js → MQ7QXIOW.js} +0 -0
  445. /package/dist/cdn/{MZJGADGH.js → NMWLJECU.js} +0 -0
  446. /package/dist/cdn/{24MYCR6F.js → URYKQKFE.js} +0 -0
@@ -0,0 +1,134 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./CFDTXKJ6.js";var e=`# ArcGIS Knowledge Agent \u2014 Action Summary
3
+
4
+ You are a Knowledge Graph assistant that has executed tool calls to answer a user request.
5
+
6
+ ## Context
7
+
8
+ **Data model**
9
+ {dataModelSummary}
10
+
11
+ **Assigned task**
12
+ {assignedTask}
13
+
14
+ **User request**
15
+ {userRequest}
16
+
17
+ **Tool result**
18
+ {toolResult}
19
+
20
+ ---
21
+
22
+ ## Goal
23
+
24
+ Generate a concise, complete Markdown response using the tool results.
25
+
26
+ ---
27
+
28
+ ## Priority Rules (Strict Order)
29
+
30
+ ### 1. User Formatting Override (Highest Priority)
31
+
32
+ - If the user specifies a format (table, list, bullets, etc.):
33
+ - Use that format exactly
34
+ - Ignore ALL default formatting rules below
35
+ - Do NOT add summaries or extra sections unless requested
36
+
37
+ ---
38
+
39
+ ### 2. Default Output (When no override)
40
+
41
+ Produce:
42
+
43
+ - **Summary**: 1\u20132 sentences (no header, no bullets)
44
+ - **Results**: Minimal, well-formatted data
45
+ - **Note (optional)**:
46
+ - 1\u20132 italicized sentences describing tool limitations
47
+
48
+ #### Limits
49
+
50
+ - maxPreviewItems: 5
51
+
52
+ ---
53
+
54
+ ### 3. Output Constraints (Non-Negotiable)
55
+
56
+ - Output **valid Markdown only** (no JSON)
57
+ - Do NOT hallucinate data (entities, fields, counts, relationships)
58
+ - Do NOT include:
59
+ - reasoning
60
+ - classification labels
61
+ - follow-up questions
62
+ - next steps
63
+ - intro phrases (\u201CHere are\u2026\u201D)
64
+ - restating the question
65
+ - End immediately after the response
66
+
67
+ ---
68
+
69
+ ### 4. Data Handling Rules
70
+
71
+ - If results are empty \u2192 clearly state no results returned
72
+ - If insufficient data \u2192 state limitation, do NOT speculate
73
+ - Do NOT output:
74
+ - raw nested objects
75
+ - large arrays
76
+ - geometry
77
+ - Summarize complex structures
78
+ - Truncate long values with \`\u2026\`
79
+ - Show entities/relationships only once
80
+ - Use:
81
+ - \u201Centity\u201D (not node)
82
+ - \u201Crelationship\u201D (not edge)
83
+ - Hide \`globalid\` and \`objectid\` unless explicitly requested
84
+
85
+ ---
86
+
87
+ ### 5. Formatting Rules (Default Mode Only)
88
+
89
+ - No headers; use _italic labels_ if needed
90
+ - Use:
91
+ - bullets \u2192 single item summaries
92
+ - tables \u2192 multiple results (limit to 5 rows)
93
+ - Reduce columns to key fields only
94
+ - Format:
95
+ - dates \u2192 \u201Cday month year\u201D
96
+ - time separate from date
97
+
98
+ ---
99
+
100
+ ### 6. Result-Type Formatting
101
+
102
+ **SEARCH_HITS**
103
+
104
+ - Highlight top match (bullets)
105
+ - Table for remaining results
106
+
107
+ **ENTITIES**
108
+
109
+ - Group by type (if multiple)
110
+ - Show key properties only
111
+
112
+ **RELATIONSHIPS**
113
+
114
+ - Format: \`(entity) \u2014[relationship]\u2192 (entity)\`
115
+
116
+ **PATHS**
117
+
118
+ - Summary + 1-3 examples
119
+
120
+ ---
121
+
122
+ ## Internal Processing (Do NOT output)
123
+
124
+ Classify results into:
125
+
126
+ - SEARCH_HITS, ENTITIES, RELATIONSHIPS, PATHS
127
+
128
+ ## Failure Handling
129
+
130
+ - If data is insufficient \u2192 clearly state limitation
131
+ - Never infer or fabricate missing information
132
+
133
+ ---
134
+ `;export{e as default};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ var s=t=>t.replace(o,(e,n)=>`${n===0?"":"-"}${e.toLowerCase()}`),o=/[A-Z]+(?![a-z])|[A-Z]/gu;var r="randomUUID"in crypto,c=()=>{if(r)return crypto.randomUUID();let t=crypto.getRandomValues(new Uint16Array(8));t[3]=t[3]&4095|16384,t[4]=t[4]&16383|32768;let e=n=>t[n].toString(16).padStart(4,"0");return`${e(0)+e(1)}-${e(2)}-${e(3)}-${e(4)}-${e(5)}${e(6)}${e(7)}`};export{s as a,c as b};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as s,b as c}from"./A2EDDZYZ.js";import"./46U2PGRW.js";import{g as a,h as e,v as r,z as i}from"./5JUFVHKE.js";import"./4EALV6QJ.js";import"./CFDTXKJ6.js";var o=a`:host{overflow:auto}.container{display:flex;align-items:center;gap:var(--calcite-spacing-md);background:color-mix(in srgb,var(--calcite-color-brand) 15%,var(--calcite-color-foreground-1));color:var(--calcite-color-text-1);padding:var(--calcite-spacing-md);border-radius:var(--calcite-border-radius);width:fit-content;margin-left:auto;justify-content:flex-end}.avatar{display:flex;align-items:center;justify-content:center}.content{>*{margin:0}>*+*{margin-block-start:var(--calcite-spacing-sm)}:is(ol,ul){padding-inline-start:var(--calcite-spacing-lg)}>calcite-table{display:block;max-width:100%}pre{background-color:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-sm);border-radius:var(--calcite-border-radius);color:var(--calcite-color-text-1);direction:ltr;max-width:100%;overflow:auto}pre code{display:block;white-space:pre;font-family:var(--calcite-code-family)}}@container (min-width: 480px){.container{max-width:80%}}`,t=class extends r{static{this.properties={content:1,user:1,message:0}}static{this.styles=o}_getContent(){return this.message?.role==="user"?this.message.content:this.content}render(){return e`<div class="container"><div><slot name=content><div class="content">${s(c(this._getContent()))}</div></slot></div><slot name=icon><div class="avatar"><calcite-avatar .fullName=${this.user} scale=s></calcite-avatar></div></slot></div>`}};i("arcgis-assistant-user-message",t);export{t as ArcgisAssistantUserMessage};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{b as i,c as a}from"./UE3CP46P.js";import"./P5M2HNJ7.js";import"./TOYQ22PR.js";import{v as s,z as e}from"./5JUFVHKE.js";import"./4EALV6QJ.js";import"./CFDTXKJ6.js";var t=class extends s{static{this.properties={agent:0,context:0}}#t;async getContext(){return i(this.context)?await this.context():this.context}load(){this.#t=a(this)}disconnectedCallback(){this.#t?.unregister(this.agent.id),super.disconnectedCallback()}};e("arcgis-assistant-agent",t);export{t as ArcgisAssistantAgent};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{g as t,h as e,t as i,u as a,v as n,z as r}from"./5JUFVHKE.js";import"./4EALV6QJ.js";import"./CFDTXKJ6.js";export default $arcgis.t(([l,{when:o,watch:c}])=>{var h=t`.messages-container{display:flex;flex:1;flex-direction:column;line-height:var(--calcite-font-line-height-relative-snug)}.messages-list{padding:var(--calcite-spacing-lg);display:flex;flex-direction:column;gap:var(--calcite-spacing-xxl);flex:1 1 auto;min-height:0;justify-content:flex-end;overflow:auto}.end-ref{margin-top:var(--calcite-spacing-lg)}`,s=class extends n{constructor(){super(...arguments),this.#t=i(),this.#s=!1,this.loading=!1,this.messages=new l([]),this.interrupt=null}static{this.properties={loading:5,messages:0,interrupt:0}}static{this.styles=h}#t;#s;firstUpdated(){this.#e()}loaded(){this.manager.onLifecycle(()=>[this.messages.on("change",()=>{this.#e()}),o(()=>!this.loading,()=>{this.#s=!1}),c(()=>[this.loading,this.interrupt],()=>this.#e())])}#e(){requestAnimationFrame(()=>{this.#s||this.#t.value?.scrollIntoView({behavior:"smooth",block:"end"})})}#i(){this.#s=!0}render(){return e`<div class="messages-container" @wheel=${this.#i}><div class="messages-list"><slot name=message-starter></slot><slot name=messages></slot><slot name=message-loading></slot></div><div class="end-ref" ${a(this.#t)}></div></div>`}};r("arcgis-assistant-chat",s);return s},"core/Collection","core/reactiveUtils")
@@ -0,0 +1,4 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as Y}from"./4EALV6QJ.js";var X=globalThis,Z=X.ShadowRoot&&(X.ShadyCSS===void 0||X.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gt=Symbol(),It=new WeakMap,I=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==gt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=It.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&It.set(e,t))}return t}toString(){return this.cssText}},kt=o=>new I(typeof o=="string"?o:o+"",void 0,gt),be=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,r,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[i+1],o[0]);return new I(e,o,gt)},jt=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),r=X.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},vt=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return kt(e)})(o):o;var{is:_e,defineProperty:Ae,getOwnPropertyDescriptor:Ce,getOwnPropertyNames:we,getOwnPropertySymbols:Oe,getPrototypeOf:Te}=Object,et=globalThis,Ht=et.trustedTypes,Se=Ht?Ht.emptyScript:"",Pe=et.reactiveElementPolyfillSupport,k=(o,t)=>o,tt={toAttribute(o,t){switch(t){case Boolean:o=o?Se:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},j=(o,t)=>!_e(o,t),Vt={attribute:!0,type:String,converter:tt,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),et.litPropertyMetadata??=new WeakMap;var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Vt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&Ae(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){let{get:r,set:i}=Ce(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){let a=r?.call(this);i?.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Vt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let t=Te(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties,s=[...we(e),...Oe(e)];for(let r of s)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let r of s)e.unshift(vt(r))}else t!==void 0&&e.push(vt(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let i=(s.converter?.toAttribute!==void 0?s.converter:tt).toAttribute(e,s.type);this._$Em=t,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let i=s.getPropertyOptions(r),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:tt;this._$Em=r;let a=n.fromAttribute(e,i.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,e,s,r=!1,i){if(t!==void 0){let n=this.constructor;if(r===!1&&(i=this[t]),s??=n.getPropertyOptions(t),!((s.hasChanged??j)(i,e)||s.useDefault&&s.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:r,wrapped:i},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,i]of s){let{wrapped:n}=i,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,i,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[k("elementProperties")]=new Map,_[k("finalized")]=new Map,Pe?.({ReactiveElement:_}),(et.reactiveElementVersions??=[]).push("2.1.2");var $t=globalThis,zt=o=>o,st=$t.trustedTypes,Bt=st?st.createPolicy("lit-html",{createHTML:o=>o}):void 0,bt="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,_t="?"+A,Ne=`<${_t}>`,T=document,V=()=>T.createComment(""),z=o=>o===null||typeof o!="object"&&typeof o!="function",At=Array.isArray,Jt=o=>At(o)||typeof o?.[Symbol.iterator]=="function",Et=`[
3
+ \f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wt=/-->/g,Ft=/>/g,w=RegExp(`>|${Et}(?:([^\\s"'>=/]+)(${Et}*=${Et}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),qt=/'/g,Gt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,Ct=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ds=Ct(1),ps=Ct(2),us=Ct(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Kt=new WeakMap,O=T.createTreeWalker(T,129);function Yt(o,t){if(!At(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bt!==void 0?Bt.createHTML(t):t}var Xt=(o,t)=>{let e=o.length-1,s=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=H;for(let a=0;a<e;a++){let l=o[a],h,u,c=-1,m=0;for(;m<l.length&&(n.lastIndex=m,u=n.exec(l),u!==null);)m=n.lastIndex,n===H?u[1]==="!--"?n=Wt:u[1]!==void 0?n=Ft:u[2]!==void 0?(Qt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??H,c=-1):u[1]===void 0?c=-2:(c=n.lastIndex-u[2].length,h=u[1],n=u[3]===void 0?w:u[3]==='"'?Gt:qt):n===Gt||n===qt?n=w:n===Wt||n===Ft?n=H:(n=w,r=void 0);let v=n===w&&o[a+1].startsWith("/>")?" ":"";i+=n===H?l+Ne:c>=0?(s.push(h),l.slice(0,c)+bt+l.slice(c)+A+v):l+A+(c===-2?a:v)}return[Yt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0,a=t.length-1,l=this.parts,[h,u]=Xt(t,e);if(this.el=o.createElement(h,s),O.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=O.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let c of r.getAttributeNames())if(c.endsWith(bt)){let m=u[n++],v=r.getAttribute(c).split(A),C=/([.?@])?(.*)/.exec(m);l.push({type:1,index:i,name:C[2],strings:v,ctor:C[1]==="."?rt:C[1]==="?"?it:C[1]==="@"?nt:P}),r.removeAttribute(c)}else c.startsWith(A)&&(l.push({type:6,index:i}),r.removeAttribute(c));if(Qt.test(r.tagName)){let c=r.textContent.split(A),m=c.length-1;if(m>0){r.textContent=st?st.emptyScript:"";for(let v=0;v<m;v++)r.append(c[v],V()),O.nextNode(),l.push({type:2,index:++i});r.append(c[m],V())}}}else if(r.nodeType===8)if(r.data===_t)l.push({type:2,index:i});else{let c=-1;for(;(c=r.data.indexOf(A,c+1))!==-1;)l.push({type:7,index:i}),c+=A.length-1}i++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let r=s!==void 0?e._$Co?.[s]:e._$Cl,i=z(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=r:e._$Cl=r),r!==void 0&&(t=S(o,r._$AS(o,t.values),r,s)),t}var ot=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let i=O.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new L(i,i.nextSibling,this,t):l.type===1?h=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(h=new at(i,this,t)),this._$AV.push(h),l=s[++a]}n!==l?.index&&(i=O.nextNode(),n++)}return O.currentNode=T,r}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},L=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),z(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Jt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&z(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Yt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new ot(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Kt.get(t.strings);return e===void 0&&Kt.set(t.strings,e=new B(t)),e}k(t){At(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,r=0;for(let i of t)r===e.length?e.push(s=new o(this.O(V()),this.O(V()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=zt(t).nextSibling;zt(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,r){let i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!z(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,l,h;for(t=i[0],l=0;l<i.length-1;l++)h=S(this,a[s+l],e,l),h===f&&(h=this._$AH[l]),n||=!z(h)||h!==this._$AH[l],h===d?t=d:t!==d&&(t+=(h??"")+i[l+1]),this._$AH[l]=h}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rt=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},it=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},nt=class extends P{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,r=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==d&&(s===d||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},at=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Zt={M:bt,P:A,A:_t,C:1,L:Xt,R:ot,D:Jt,V:S,I:L,H:P,N:it,U:nt,B:rt,F:at},De=$t.litHtmlPolyfillSupport;De?.(B,L),($t.litHtmlVersions??=[]).push("3.3.2");var wt=(o,t,e)=>{let s=e?.renderBefore??t,r=s._$litPart$;if(r===void 0){let i=e?.renderBefore??null;s._$litPart$=r=new L(t.insertBefore(V(),i),i,void 0,e??{})}return r._$AI(o),r};var Ot=globalThis,E=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=wt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:E});var xe=Ot.litElementPolyfillSupport;xe?.({LitElement:E});(Ot.litElementVersions??=[]).push("4.2.2");var te=new Set,ee;var se=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Os=(o,t,e,s)=>{let r=se(t);if(s?.once){let n=`${o}${r}${e}`;if(te.has(n))return;te.add(n)}let i;if(s?.detail){i={};for(let[n,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let l=new WeakRef(a);Object.defineProperty(i,n,{enumerable:!0,get(){return l.deref()}})}else i[n]=a;ee?.log.interceptors?.forEach(n=>n(o,r,e,i)),console[o](`[${r}]: ${e}`,i)}else ee?.log.interceptors?.forEach(n=>n(o,r,e)),console[o](`[${r}]: ${e}`)},oe=o=>{let t=`[${se(o)}] `;return e=>{let s=e instanceof Error&&e.message?e:new Error(String(e));s.message=`${t}${s.message}`,setTimeout(()=>{throw e})}};var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},W=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var q=Symbol.for("controller"),Le=o=>typeof o=="object"&&o!==null&&(q in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ps=o=>typeof o?.then=="function";var F,D=o=>{F!==o&&(F=o,queueMicrotask(()=>F===o?F=void 0:0))},G=o=>F,N=[],re=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},ie=()=>N,U,Ns=o=>{U!==o&&(U=o,queueMicrotask(()=>U===o?U=void 0:0))},Ue=()=>{let o=U;return U=void 0,o},ne=async(o,t)=>{let e=ct(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(r=>t(r,s))}return e.exports},ae=async o=>{let t=ct(o);return await t.ready,t},ct=o=>{let e=G().manager.X(o);if(e!==void 0)return e;if(Le(o))return o;let s=Ue();if(s!==void 0)return s},lt=!1,Ds=o=>{lt=!0;try{return o()}finally{lt=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var le=(o,t)=>{let e=t>Re?Me:t/Ie,s=0,r=setInterval(()=>{s+=e,s>=t&&(clearInterval(r),o())},e);return r},Re=4e3,Me=2e3,Ie=4;var ke=(o,t,e)=>{let s=Object.keys(o),r=s.length;R===void 0&&queueMicrotask(M),R??=new Map;let i=R.get(o);return i===void 0&&(i={callbacks:[],keyCount:r},R.set(o,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(s)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=h=>p(t,null,h),l=n[r];l===void 0?a(void 0):o[l]===e?a(l):a(void 0)}),e},R,M=()=>{R?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),R=void 0},je=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((r,i)=>p(t,void 0,e===i?r:void 0)),e},He=(o=[G(),...ie()],t,e)=>{let s=Array.isArray(o)?o:[o],r=s.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};s.forEach(n=>ke(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of s)if("manager"in n&&n.manager.component===n){je(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Ve=(o="",t={},e=G())=>{let s={emit:r=>{o===""&&M();let i=new CustomEvent(o,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return o===""&&He(void 0,r=>o=r.key,s),s},ze=Ve.bind(null,""),de;de=q;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#l=[],this.#c=[],this.#d=[],this.#n=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,s=t??G(new.target.name);e.#o=s,e.ready=e.P.promise,e.#a=he(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(re(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#l;#c;#d;#n;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(oe(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ne}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),ct}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#l.push(t)}onDestroy(t){this.#c.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#n.forEach(p),t.#n=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(ce,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#l.forEach(ce,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#c.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#n.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#n.push(r.remove)})}};function ce(o){p(o,void 0,this)}var pe=Tt,he=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,r,i){if(!((r==="exports"||r==="_exports")&&r in s&&s[r]===e)&&(r in s||r in Promise.prototype||typeof r=="symbol"))return typeof s=="function"?s[r]:Reflect.get(s,r,i)}},e=new Proxy(o,t);return e};var{I:zs}=Zt;var ht=o=>o.strings===void 0;var Be={},ue=(o,t=Be)=>o._$AH=t;var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=o=>(...t)=>({_$litDirective$:o,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var K=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),K(s,t);return!0},dt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},fe=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),qe(t)}};function We(o){this._$AN!==void 0?(dt(this),this._$AM=o,fe(this)):this._$AM=o}function Fe(o,t=!1,e=0){let s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let i=e;i<s.length;i++)K(s[i],!1),dt(s[i]);else s!=null&&(K(s,!1),dt(s));else K(this,o)}var qe=o=>{o.type==y.CHILD&&(o._$AP??=Fe,o._$AQ??=We)},pt=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),fe(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(this,t),dt(this))}setValue(t){if(ht(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Xs=()=>new Pt,Pt=class{},St=new WeakMap,Nt=$(class extends pt{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var xt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Lt={};function Ut(){}function Rt(o){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;o.prototype["f"+e]=async function(...s){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:s}))}}}var Ke=(o,t)=>function(s,r){if(!globalThis.customElements)return;let n=(r??s??{}).resourcesUrl;n&&o.setAssetPath(n);for(let[a,[l,h="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[c,m,v]=h.split(";"),C=c?c?.split(",").map(Je):void 0,yt=C?.map(([x])=>x),Q=class extends Dt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=yt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=o}constructor(){!Q.B&&(Q.B=l(),Q.F()),super()}};customElements.define(a,Q)}},ut=Object.defineProperty,Je=o=>{let t=o.split(":");return t.length===1?[t[0],Y(t[0])]:t},Qe=globalThis.HTMLElement??Ut,Dt=class extends Qe{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#r({a:e.A}):e.B.then(async s=>{await e.K.p,t.#r(await(s.default?.then(r=>typeof r=="function"?{a:r}:r)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ut(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ut(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ut(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{Rt(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=xt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,s=e.L,r=this.#e,i=Object.values(t).find(c=>c.L===s),n=`${s}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);Xe(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let h=document.createElement(n);i.N=void 0,this.#t=h,this.#e=h,this.#s.forEach(c=>h.attributeChangedCallback(c,null,this.getAttribute(c))),Object.entries(r).forEach(Ye,h);let u=this.isConnected;(u||this.G)&&(h.connectedCallback?.(),u||h.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function Ye([o,t]){this[o]=t}var Xe=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},t.hasAttribute=function(r){return e.hasAttribute.call(this.el,r)},ut(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var ft=class extends pe{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=mt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${mt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),M();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=le(t,Ze)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},Ze=1e3,mt="autoDestroyDisabled";var ye=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let r=!!t[s];r===this.st.has(s)||this.nt?.has(s)||(r?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var ge="important",ts=" !"+ge,es=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let r=t[s];if(r!=null){this.ft.add(s);let i=typeof r=="string"&&r.endsWith(ts);s.includes("-")||i?e.setProperty(s,i?r.slice(0,-11):r,i?ge:""):e[s]=r}}return f}});var ss=$(class extends g{constructor(o){if(super(o),o.type!==y.PROPERTY&&o.type!==y.ATTRIBUTE&&o.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===y.PROPERTY){if(t===e[s])return f}else if(o.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===y.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return ue(o),t}});var ve=class o extends E{constructor(){super(),this.M=[],this.manager=new ft(this);let t=this,e=t.constructor,s=e.N,r=e.K.o,i=o.prototype.shouldUpdate;t.#r=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,i=r?.hasChanged??j,n={attribute:s&1&&typeof t=="string"?Y(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),useDefault:!!(s&128),c:!1,...r,hasChanged(a,l){let h=i(a,l);return n.c=h,h}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){let r=this.K,i=super.getPropertyDescriptor(t,e,s);return s.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){let a=this.manager;if(s.readOnly&&!lt&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${n}"`);i.set.call(this,n??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(M(),a?.S(t,n))}}}static{this.lumina=!0}static{Rt(this)}#t;#e;#s;#r;#i;#l;get elementInternals(){return this.#l??=this.el.attachInternals(),this.#l}connectedCallback(){this.hasAttribute("defer-hydration")||this.#c(!0)}#c(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=e;let s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#n().catch(r=>{this.#r.reject(r),setTimeout(()=>{throw r})})):e&&this.requestUpdate()}#d(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,i=t??(s===Lt?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#c(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#n(){let t=this.el.G??xt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(W(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(mt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let s=this.J.filter(r=>!r.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#i?this.#d(t):super.update(t)}listen(t,e,s){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,s),()=>this.el.removeEventListener(t,r,s)))}listenOn(t,e,s,r){let i=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var $e=o=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},s={...o,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=s,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(o.defaultAssetPath),s};var $r=o=>typeof o=="object"&&o!=null?ye(o):o;var Mt=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},br=$(Mt);var _r=d;var J=$e({defaultAssetPath:"https://js.arcgis.com/5.1.1/ai-components/",hydratedAttribute:"hydrated"}),{customElement:Tr,getAssetPath:Sr,setAssetPath:Pr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{Ps as a,D as b,re as c,ie as d,Ns as e,Ds as f,be as g,ds as h,f as i,d as j,Os as k,oe as l,He as m,ze as n,Tt as o,Ke as p,y as q,$ as r,g as s,Xs as t,Nt as u,ve as v,$r as w,_r as x,J as y,Tr as z,Sr as A};
@@ -36,11 +36,30 @@ Latest user request:
36
36
  Prior steps:
37
37
  {priorSteps}
38
38
 
39
+ Last navigated features from shared state (if available):
40
+ {lastNavigatedFeatures}
41
+
42
+ Last resolved location from shared state (if available):
43
+ {lastResolvedLocation}
44
+
39
45
  Use the assigned task as the primary instruction for the current query.
40
46
  Use the latest user request as supporting context when needed.
41
47
  Use prior steps only when the assigned task or user request clearly depends on earlier results.
48
+ Use shared-state context (\`lastResolvedLocation\`, \`lastNavigatedFeatures\`) for referential follow-ups when relevant.
42
49
  Use chat history only when necessary to understand conversational references, and do not override the assigned task.
43
50
 
51
+ ### Anchor selection rule (strict, single source of truth)
52
+
53
+ When the request is referential (for example: "this", "it", "that", "those", "them", "of those", "the same one(s)"), choose exactly one anchor using this priority order:
54
+
55
+ 1. Explicit entity named in the current request (if present)
56
+ 2. \`lastResolvedLocation\` (if present and the request refers to a place/location)
57
+ 3. \`lastNavigatedFeatures\` (if present)
58
+ 4. The immediately previous successful relevant step from \`priorSteps\`
59
+
60
+ After selecting the anchor, keep that anchor for this query and do not switch to an older entity.
61
+ If \`lastNavigatedFeatures\` is used as the anchor, reuse its \`layerId\` and \`where\` for query scope unless the current request explicitly overrides it.
62
+
44
63
  ### Fresh WHERE clause rule
45
64
 
46
65
  Start with a fresh WHERE clause for each new question. Do not inherit filters from previous questions UNLESS the assigned task explicitly references previous results (see "Referencing Previously Identified Features" below).
@@ -63,11 +82,10 @@ Start with a fresh WHERE clause for each new question. Do not inherit filters fr
63
82
 
64
83
  This is an exception to the "fresh WHERE clause" rule above.
65
84
 
66
- When the assigned task uses words like "these", "those", "them", "the same ones" referring to features from a previous turn:
67
-
68
- - If the previous query used useCurrentExtent: true \u2192 use useCurrentExtent: true with where: "1=1"
69
- - If the previous assistant response mentions specific objectIds or feature IDs \u2192 use {{objectIdField}} IN (id1, id2, ...) to scope to those features
70
- - If neither is available, use the same WHERE clause and layer from the previous query turn to re-select the same features
85
+ - If the anchored context is \`lastResolvedLocation\` with a point, prefer \`geometryFilter.point\` and use \`where: "1=1"\` unless the user asked for additional attribute filters.
86
+ - Only use \`useCurrentExtent: true\` when the user explicitly asks about the current view/map extent (for example: "in my view", "on my map", "visible now").
87
+ - If the anchored context includes specific feature IDs/objectIds, scope to those IDs.
88
+ - Otherwise, use the anchored \`layerId\` + \`where\` combination.
71
89
 
72
90
  ### Mixed Questions
73
91
 
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as wd}from"./QH6TSBNI.js";import{$ as T,$a as Ta,$b as Tb,$c as Tc,A as s,Aa as sa,Ab as sb,Ac as sc,Ad as sd,B as t,Ba as ta,Bb as tb,Bc as tc,Bd as td,C as u,Ca as ua,Cb as ub,Cc as uc,Cd as ud,D as v,Da as va,Db as vb,Dc as vc,Dd as vd,E as w,Ea as wa,Eb as wb,Ec as wc,F as x,Fa as xa,Fb as xb,Fc as xc,G as y,Ga as ya,Gb as yb,Gc as yc,H as z,Ha as za,Hb as zb,Hc as zc,I as A,Ia as Aa,Ib as Ab,Ic as Ac,J as B,Ja as Ba,Jb as Bb,Jc as Bc,K as C,Ka as Ca,Kb as Cb,Kc as Cc,L as D,La as Da,Lb as Db,Lc as Dc,M as E,Ma as Ea,Mb as Eb,Mc as Ec,N as F,Na as Fa,Nb as Fb,Nc as Fc,O as G,Oa as Ga,Ob as Gb,Oc as Gc,P as H,Pa as Ha,Pb as Hb,Pc as Hc,Q as I,Qa as Ia,Qb as Ib,Qc as Ic,R as J,Ra as Ja,Rb as Jb,Rc as Jc,S as K,Sa as Ka,Sb as Kb,Sc as Kc,T as L,Ta as La,Tb as Lb,Tc as Lc,U as M,Ua as Ma,Ub as Mb,Uc as Mc,V as N,Va as Na,Vb as Nb,Vc as Nc,W as O,Wa as Oa,Wb as Ob,Wc as Oc,X as P,Xa as Pa,Xb as Pb,Xc as Pc,Y as Q,Ya as Qa,Yb as Qb,Yc as Qc,Z as R,Za as Ra,Zb as Rb,Zc as Rc,_ as S,_a as Sa,_b as Sb,_c as Sc,a,aa as U,ab as Ua,ac as Ub,ad as Uc,b,ba as V,bb as Va,bc as Vb,bd as Vc,c,ca as W,cb as Wa,cc as Wb,cd as Wc,d,da as X,db as Xa,dc as Xb,dd as Xc,e,ea as Y,eb as Ya,ec as Yb,ed as Yc,f,fa as Z,fb as Za,fc as Zb,fd as Zc,g,ga as _,gb as _a,gc as _b,gd as _c,h,ha as $,hb as $a,hc as $b,hd as $c,i,ia as aa,ib as ab,ic as ac,id as ad,ja as ba,jb as bb,jc as bc,jd as bd,ka as ca,kb as cb,kc as cc,kd as cd,l as j,la as da,lb as db,lc as dc,ld as dd,ma as ea,mb as eb,mc as ec,md as ed,na as fa,nb as fb,nc as fc,nd as fd,oa as ga,ob as gb,oc as gc,od as gd,p as k,pa as ha,pb as hb,pc as hc,pd as hd,q as l,qa as ia,qb as ib,qc as ic,qd as id,r as m,ra as ja,rb as jb,rc as jc,rd as jd,sa as ka,sb as kb,sc as kc,sd as kd,t as n,ta as la,tb as lb,tc as lc,td as ld,u as o,ua as ma,ub as mb,uc as mc,ud as md,v as p,va as na,vb as nb,vc as nc,vd as nd,wa as oa,wb as ob,wc as oc,wd as od,xa as pa,xb as pb,xc as pc,xd as pd,y as q,ya as qa,yb as qb,yc as qc,yd as qd,z as r,za as ra,zb as rb,zc as rc,zd as rd}from"./LXJWWOGK.js";import"./CFDTXKJ6.js";export{b as $brand,m as $input,l as $output,a as NEVER,p as TimePrecision,Hb as ZodAny,Rb as ZodArray,$a as ZodBase64,bb as ZodBase64URL,wb as ZodBigInt,yb as ZodBigIntFormat,ub as ZodBoolean,Xa as ZodCIDRv4,Za as ZodCIDRv6,Ha as ZodCUID,Ja as ZodCUID2,Mc as ZodCatch,Sc as ZodCodec,ed as ZodCustom,hb as ZodCustomStringFormat,Pb as ZodDate,Ec as ZodDefault,ac as ZodDiscriminatedUnion,db as ZodE164,ra as ZodEmail,Da as ZodEmoji,oc as ZodEnum,_ as ZodError,zc as ZodExactOptional,tc as ZodFile,sd as ZodFirstPartyTypeKind,cd as ZodFunction,ta as ZodGUID,Ra as ZodIPv4,Va as ZodIPv6,W as ZodISODate,V as ZodISODateTime,Y as ZodISODuration,X as ZodISOTime,cc as ZodIntersection,pd as ZodIssueCode,fb as ZodJWT,Pa as ZodKSUID,_c as ZodLazy,rc as ZodLiteral,Ta as ZodMAC,kc as ZodMap,Oc as ZodNaN,Fa as ZodNanoID,Lb as ZodNever,Ic as ZodNonOptional,Fb as ZodNull,Bc as ZodNullable,mb as ZodNumber,ob as ZodNumberFormat,Ub as ZodObject,xc as ZodOptional,Qc as ZodPipe,Gc as ZodPrefault,Vc as ZodPreprocess,ad as ZodPromise,Wc as ZodReadonly,$ as ZodRealError,gc as ZodRecord,mc as ZodSet,oa as ZodString,qa as ZodStringFormat,Kc as ZodSuccess,Bb as ZodSymbol,Yc as ZodTemplateLiteral,vc as ZodTransform,ec as ZodTuple,ma as ZodType,La as ZodULID,Aa as ZodURL,va as ZodUUID,Db as ZodUndefined,Yb as ZodUnion,Jb as ZodUnknown,Nb as ZodVoid,Na as ZodXID,_b as ZodXor,na as _ZodString,Fc as _default,dd as _function,Ib as any,Sb as array,ab as base64,cb as base64url,xb as bigint,vb as boolean,Nc as catch,fd as check,Ya as cidrv4,_a as cidrv6,d as clone,Tc as codec,ud as coerce,c as config,U as core,Ia as cuid,Ka as cuid2,gd as custom,Qb as date,fa as decode,ha as decodeAsync,wd as default,jd as describe,bc as discriminatedUnion,eb as e164,sa as email,Ea as emoji,ea as encode,ga as encodeAsync,K as endsWith,pc as enum,Ac as exactOptional,uc as file,f as flattenError,qb as float32,rb as float64,g as formatError,td as fromJSONSchema,dd as function,rd as getErrorMap,o as globalRegistry,s as gt,t as gte,ua as guid,lb as hash,kb as hex,jb as hostname,Ca as httpUrl,I as includes,ld as instanceof,pb as int,sb as int32,zb as int64,dc as intersection,Uc as invertCodec,Sa as ipv4,Wa as ipv6,Z as iso,nd as json,gb as jwt,Tb as keyof,Qa as ksuid,$c as lazy,E as length,sc as literal,k as locales,Xb as looseObject,jc as looseRecord,G as lowercase,q as lt,r as lte,Ua as mac,lc as map,C as maxLength,z as maxSize,kd as meta,M as mime,D as minLength,A as minSize,y as multipleOf,Pc as nan,Ga as nanoid,qc as nativeEnum,v as negative,Mb as never,x as nonnegative,Jc as nonoptional,w as nonpositive,O as normalize,Gb as null,Cc as nullable,Dc as nullish,nb as number,Vb as object,yc as optional,N as overwrite,aa as parse,ba as parseAsync,ic as partialRecord,Rc as pipe,u as positive,Hc as prefault,od as preprocess,i as prettifyError,bd as promise,L as property,Xc as readonly,hc as record,hd as refine,F as regex,j as regexes,n as registry,ja as safeDecode,la as safeDecodeAsync,ia as safeEncode,ka as safeEncodeAsync,ca as safeParse,da as safeParseAsync,nc as set,qd as setErrorMap,B as size,S as slugify,J as startsWith,Wb as strictObject,pa as string,ib as stringFormat,md as stringbool,Lc as success,id as superRefine,Cb as symbol,Zc as templateLiteral,T as toJSONSchema,Q as toLowerCase,R as toUpperCase,wc as transform,h as treeifyError,P as trim,fc as tuple,tb as uint32,Ab as uint64,Ma as ulid,Eb as undefined,Zb as union,Kb as unknown,H as uppercase,Ba as url,e as util,wa as uuid,xa as uuidv4,ya as uuidv6,za as uuidv7,Ob as void,Oa as xid,$b as xor,vd as z};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import a from"./WNJM5TET.js";import"./DHGNGMNJ.js";import"./H3EEFM4A.js";import"./4ASZF5I2.js";import"./LXJWWOGK.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{property:g,subclass:y},{c:p,d:w}])=>{var b=Object.defineProperty,k=Object.getOwnPropertyDescriptor,v=e=>{throw TypeError(e)},h=(e,t,r,s)=>{for(var n=s>1?void 0:s?k(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&b(t,r,n),n},A=(e,t,r)=>t.has(e)||v("Cannot "+r),M=(e,t,r)=>t.has(e)?v("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),m=(e,t,r)=>(A(e,t,"access private method"),r),c,u,i=class extends w{constructor(e){super(e),M(this,c)}getAgents(){let e=Object.values(this.agentsMap);return this.defaultAgent?e.concat(this.defaultAgent):e}buildNodes(e){let t=super.buildNodes(e);return t[d]=()=>({}),t}buildEdges(e){m(this,c,u).call(this);let t=this.resolver,r=new Map;for(let[o,[a]]of Object.entries(this.agentsMap).entries())r.set(a,p(e[o],o));let{defaultAgent:s}=this,n=s?p(s,e.length-1):void 0;return[{from:d,decide:async(o,a)=>{let l=await Promise.resolve(t(o,a));if(!l)return;let f=r.get(l);if(f)return f;if(s)return n;throw new Error(`SwitchWorkflow resolver returned unknown case: ${l}. Expected one of: ${Object.keys(this.agentsMap).join(", ")||"(none)"}.`)}}]}getEntryNode(){return d}isTerminalAgent(){return!0}validateAgents(e){m(this,c,u).call(this),super.validateAgents(e)}};c=new WeakSet;u=function(){if(!Object.keys(this.agentsMap).length)throw new Error("SwitchWorkflow requires a non-empty agentsMap.")};h([g()],i.prototype,"agentsMap",2);h([g()],i.prototype,"resolver",2);h([g()],i.prototype,"defaultAgent",2);i=h([y("SwitchWorkflow")],i);var d="__switch_decide";return i},"core/accessorSupport/decorators",a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as t}from"./KGYSBUFO.js";export default $arcgis.t(([])=>{var d=async(o,i)=>{let r=o.tool_calls??[];if(r.length===0){await t({text:`LLM did not request any tool calls: ${String(o?.content)}`},i);return}await Promise.all(r.map(async a=>await t({text:`LLM invoked ${a.name} tool with arguments: ${JSON.stringify(a.args,null,2)}`},i)))};return d},"identity/IdentityManager","portal/Portal","config","core/reactiveUtils","layers/FeatureLayer","request")
@@ -0,0 +1,9 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as W}from"./46U2PGRW.js";import{i as M,j as z,q as j,r as B,s as Q}from"./5JUFVHKE.js";var L=class extends Q{constructor(r){if(super(r),this.it=z,r.type!==j.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===z||r==null)return this._t=void 0,this.it=r;if(r===M)return r;if(typeof r!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.it)return this._t;this.it=r;let t=[r];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};L.directiveName="unsafeHTML",L.resultType=1;var mt=B(L);var V=function(){return V=Object.assign||function(r){for(var t,a=1,i=arguments.length;a<i;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},V.apply(this,arguments)},D={exports:{}},p={},q={exports:{}},w={};function ee(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function be(e,r,t){}function ve(e,r,t){}var ye=/javascript\s*\:/img;function we(e,r){return ye.test(r)?"":r}w.whiteList=ee();w.getDefaultWhiteList=ee;w.onAttr=be;w.onIgnoreAttr=ve;w.safeAttrValue=we;var Ae={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,i;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,i=e.length;a<i;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},E=Ae;function xe(e,r){e=E.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,a=!1,i=0,s=0,l="";function n(){if(!a){var c=E.trim(e.slice(i,s)),f=c.indexOf(":");if(f!==-1){var g=E.trim(c.slice(0,f)),d=E.trim(c.slice(f+1));if(g){var h=r(i,l.length,g,d,c);h&&(l+=h+"; ")}}}i=s+1}for(;s<t;s++){var o=e[s];if(o==="/"&&e[s+1]==="*"){var u=e.indexOf("*/",s+2);if(u===-1)break;s=u+1,i=s+1,a=!1}else o==="("?a=!0:o===")"?a=!1:o===";"?a||n():o===`
3
+ `&&n()}return E.trim(l)}var Te=xe,_=w,Se=Te;function J(e){return e==null}function ke(e){var r={};for(var t in e)r[t]=e[t];return r}function te(e){e=ke(e||{}),e.whiteList=e.whiteList||_.whiteList,e.onAttr=e.onAttr||_.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||_.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||_.safeAttrValue,this.options=e}te.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,i=t.onAttr,s=t.onIgnoreAttr,l=t.safeAttrValue,n=Se(e,function(o,u,c,f,g){var d=a[c],h=!1;if(d===!0?h=d:typeof d=="function"?h=d(f):d instanceof RegExp&&(h=d.test(f)),h!==!0&&(h=!1),f=l(c,f),!!f){var b={position:u,sourcePosition:o,source:g,isWhite:h};if(h){var m=i(c,f,b);return J(m)?c+":"+f:m}else{var m=s(c,f,b);if(!J(m))return m}}});return n};var Le=te;(function(e,r){var t=w,a=Le;function i(l,n){var o=new a(n);return o.process(l)}r=e.exports=i,r.FilterCSS=a;for(var s in t)r[s]=t[s]})(q,q.exports);var U=q.exports,H={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,i;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,i=e.length;a<i;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var r=/\s|\n|\t/,t=r.exec(e);return t?t.index:-1}},Ee=U.FilterCSS,Oe=U.getDefaultWhiteList,R=H;function re(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var ae=new Ee;function Ce(e,r,t){}function _e(e,r,t){}function Ie(e,r,t){}function Pe(e,r,t){}function ie(e){return e.replace(Ve,"&lt;").replace(Re,"&gt;")}function Fe(e,r,t,a){if(t=ue(t),r==="href"||r==="src"){if(t=R.trim(t),t==="#")return"#";if(!(t.substr(0,7)==="http://"||t.substr(0,8)==="https://"||t.substr(0,7)==="mailto:"||t.substr(0,4)==="tel:"||t.substr(0,11)==="data:image/"||t.substr(0,6)==="ftp://"||t.substr(0,2)==="./"||t.substr(0,3)==="../"||t[0]==="#"||t[0]==="/"))return""}else if(r==="background"){if(I.lastIndex=0,I.test(t))return""}else if(r==="style"){if(Z.lastIndex=0,Z.test(t)||(K.lastIndex=0,K.test(t)&&(I.lastIndex=0,I.test(t))))return"";a!==!1&&(a=a||ae,t=a.process(t))}return t=ce(t),t}var Ve=/</g,Re=/>/g,Ne=/"/g,$e=/&quot;/g,ze=/&#([a-zA-Z0-9]*);?/gim,We=/&colon;?/gim,De=/&newline;?/gim,I=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Z=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,K=/u\s*r\s*l\s*\(.*/gi;function se(e){return e.replace(Ne,"&quot;")}function ne(e){return e.replace($e,'"')}function oe(e){return e.replace(ze,function(t,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function le(e){return e.replace(We,":").replace(De," ")}function fe(e){for(var r="",t=0,a=e.length;t<a;t++)r+=e.charCodeAt(t)<32?" ":e.charAt(t);return R.trim(r)}function ue(e){return e=ne(e),e=oe(e),e=le(e),e=fe(e),e}function ce(e){return e=se(e),e=ie(e),e}function qe(){return""}function Ue(e,r){typeof r!="function"&&(r=function(){});var t=!Array.isArray(e);function a(l){return t?!0:R.indexOf(e,l)!==-1}var i=[],s=!1;return{onIgnoreTag:function(l,n,o){if(a(l))if(o.isClosing){var u="[/removed]",c=o.position+u.length;return i.push([s!==!1?s:o.position,c]),s=!1,u}else return s||(s=o.position),"[removed]";else return r(l,n,o)},remove:function(l){var n="",o=0;return R.forEach(i,function(u){n+=l.slice(o,u[0]),o=u[1]}),n+=l.slice(o),n}}}function He(e){for(var r="",t=0;t<e.length;){var a=e.indexOf("<!--",t);if(a===-1){r+=e.slice(t);break}r+=e.slice(t,a);var i=e.indexOf("-->",a);if(i===-1)break;t=i+3}return r}function Xe(e){var r=e.split("");return r=r.filter(function(t){var a=t.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),r.join("")}p.whiteList=re();p.getDefaultWhiteList=re;p.onTag=Ce;p.onIgnoreTag=_e;p.onTagAttr=Ie;p.onIgnoreTagAttr=Pe;p.safeAttrValue=Fe;p.escapeHtml=ie;p.escapeQuote=se;p.unescapeQuote=ne;p.escapeHtmlEntities=oe;p.escapeDangerHtml5Entities=le;p.clearNonPrintableCharacter=fe;p.friendlyAttrValue=ue;p.escapeAttrValue=ce;p.onIgnoreTagStripAll=qe;p.StripTagBody=Ue;p.stripCommentTag=He;p.stripBlankChar=Xe;p.cssFilter=ae;p.getDefaultCSSWhiteList=Oe;var N={},y=H;function Ge(e){var r=y.spaceIndex(e),t;return r===-1?t=e.slice(1,-1):t=e.slice(1,r+1),t=y.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function Me(e){return e.slice(0,2)==="</"}function je(e,r,t){var a="",i=0,s=!1,l=!1,n=0,o=e.length,u="",c="";e:for(n=0;n<o;n++){var f=e.charAt(n);if(s===!1){if(f==="<"){s=n;continue}}else if(l===!1){if(f==="<"){a+=t(e.slice(i,n)),s=n,i=n;continue}if(f===">"){a+=t(e.slice(i,s)),c=e.slice(s,n+1),u=Ge(c),a+=r(s,a.length,u,c,Me(c)),i=n+1,s=!1;continue}if(f==='"'||f==="'")for(var g=1,d=e.charAt(n-g);d.trim()===""||d==="=";){if(d==="="){l=f;continue e}d=e.charAt(n-++g)}}else if(f===l){l=!1;continue}}return i<e.length&&(a+=t(e.substr(i))),a}var Be=/[^a-zA-Z0-9\\_:.-]/gim;function Qe(e,r){var t=0,a=0,i=[],s=!1,l=e.length;function n(g,d){if(g=y.trim(g),g=g.replace(Be,"").toLowerCase(),!(g.length<1)){var h=r(g,d||"");h&&i.push(h)}}for(var o=0;o<l;o++){var u=e.charAt(o),c,f;if(s===!1&&u==="="){s=e.slice(t,o),t=o+1,a=e.charAt(t)==='"'||e.charAt(t)==="'"?t:Ze(e,o+1);continue}if(s!==!1&&o===a){if(f=e.indexOf(u,o+1),f===-1)break;c=y.trim(e.slice(a+1,f)),n(s,c),s=!1,o=f,t=o+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),s===!1)if(f=Je(e,o),f===-1){c=y.trim(e.slice(t,o)),n(c),s=!1,t=o+1;continue}else{o=f-1;continue}else if(f=Ke(e,o-1),f===-1){c=y.trim(e.slice(t,o)),c=Y(c),n(s,c),s=!1,t=o+1;continue}else continue}return t<e.length&&(s===!1?n(e.slice(t)):n(s,Y(y.trim(e.slice(t))))),y.trim(i.join(" "))}function Je(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="="?r:-1}}function Ze(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="'"||t==='"'?r:-1}}function Ke(e,r){for(;r>0;r--){var t=e[r];if(t!==" ")return t==="="?r:-1}}function Ye(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Y(e){return Ye(e)?e.substr(1,e.length-2):e}N.parseTag=je;N.parseAttr=Qe;var et=U.FilterCSS,v=p,ge=N,tt=ge.parseTag,rt=ge.parseAttr,F=H;function P(e){return e==null}function at(e){var r=F.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=F.trim(e.slice(r+1,-1));var t=e[e.length-1]==="/";return t&&(e=F.trim(e.slice(0,-1))),{html:e,closing:t}}function it(e){var r={};for(var t in e)r[t]=e[t];return r}function st(e){var r={};for(var t in e)Array.isArray(e[t])?r[t.toLowerCase()]=e[t].map(function(a){return a.toLowerCase()}):r[t.toLowerCase()]=e[t];return r}function de(e){e=it(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=v.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=st(e.whiteList||e.allowList):e.whiteList=v.whiteList,e.onTag=e.onTag||v.onTag,e.onTagAttr=e.onTagAttr||v.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||v.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||v.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||v.safeAttrValue,e.escapeHtml=e.escapeHtml||v.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new et(e.css))}de.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,i=t.onTag,s=t.onIgnoreTag,l=t.onTagAttr,n=t.onIgnoreTagAttr,o=t.safeAttrValue,u=t.escapeHtml,c=r.cssFilter;t.stripBlankChar&&(e=v.stripBlankChar(e)),t.allowCommentTag||(e=v.stripCommentTag(e));var f=!1;t.stripIgnoreTagBody&&(f=v.StripTagBody(t.stripIgnoreTagBody,s),s=f.onIgnoreTag);var g=tt(e,function(d,h,b,m,O){var C={sourcePosition:d,position:h,isClosing:O,isWhite:Object.prototype.hasOwnProperty.call(a,b)},S=i(b,m,C);if(!P(S))return S;if(C.isWhite){if(C.isClosing)return"</"+b+">";var X=at(m),me=a[b],G=rt(X.html,function(A,x){var $=F.indexOf(me,A)!==-1,k=l(b,A,x,$);return P(k)?$?(x=o(b,A,x,c),x?A+'="'+x+'"':A):(k=n(b,A,x,$),P(k)?void 0:k):k});return m="<"+b,G&&(m+=" "+G),X.closing&&(m+=" /"),m+=">",m}else return S=s(b,m,C),P(S)?u(m):S},u);return f&&(g=f.remove(g)),g};var nt=de;(function(e,r){var t=p,a=N,i=nt;function s(n,o){var u=new i(o);return u.process(n)}r=e.exports=s,r.filterXSS=s,r.FilterXSS=i,(function(){for(var n in t)r[n]=t[n];for(var o in a)r[o]=a[o]})();function l(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}l()&&(self.filterXSS=e.exports)})(D,D.exports);var T=D.exports,ot=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},pe=(function(){function e(r,t){var a=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=V(V({},T.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(s,l,n,o){return s==="a"&&l==="href"||(s==="img"||s==="source")&&l==="src"?a.sanitizeUrl(n):T.safeAttrValue(s,l,n,o)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var i;r&&!t?i=r:r&&t?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(r).forEach(function(s){if(s==="whiteList")i.whiteList=a._extendObjectOfArrays([a.arcgisWhiteList,r.whiteList||{}]);else if(s==="css"){var l=r.css.whiteList;l!=null&&r.css instanceof Object&&Object.keys(l).forEach(function(n){return i.css.whiteList[n]=l[n]})}else i[s]=r[s]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new T.FilterXSS(i)}return e.prototype.sanitize=function(r,t){switch(t===void 0&&(t={}),typeof r){case"number":return isNaN(r)||!isFinite(r)?null:r;case"boolean":return r;case"string":return this._xssFilter.process(r);case"object":return this._iterateOverObject(r,t);default:return t.allowUndefined&&typeof r>"u"?void 0:null}},e.prototype.sanitizeUrl=function(r,t){var a=(t??{}).isProtocolRequired,i=a===void 0?!0:a,s=this._trim(r.substring(0,r.indexOf(":"))),l=r==="/",n=/^#/.test(r),o=s&&this.allowedProtocols.indexOf(s.toLowerCase())>-1;return l||n||o?T.escapeAttrValue(r):!s&&!i?T.escapeAttrValue("https://".concat(r)):""},e.prototype.sanitizeHTMLAttribute=function(r,t,a,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(r,t,a,i):T.safeAttrValue(r,t,a,i)},e.prototype.validate=function(r,t){t===void 0&&(t={});var a=this.sanitize(r,t);return{isValid:r===a,sanitized:a}},e.prototype.encodeHTML=function(r){var t=this;return String(r).replace(/[&<>"'\/]/g,function(a){return t._entityMap[a]})},e.prototype.encodeAttrValue=function(r){var t=/^[a-zA-Z0-9]$/;return String(r).replace(/[\x00-\xFF]/g,function(a,i){return t.test(a)?a:"&#x".concat(Number(r.charCodeAt(i)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(r){var t={};return r.forEach(function(a){Object.keys(a).forEach(function(i){Array.isArray(a[i])&&Array.isArray(t[i])?t[i]=t[i].concat(a[i]):t[i]=a[i]})}),t},e.prototype._iterateOverObject=function(r,t){var a=this;t===void 0&&(t={});try{var i=!1,s=void 0;if(Array.isArray(r))s=r.reduce(function(n,o){var u=a.validate(o,t);return u.isValid?n.concat([o]):(i=!0,n.concat([u.sanitized]))},[]);else if(ot(r)){var l=Object.keys(r);s=l.reduce(function(n,o){var u=r[o],c=a.validate(u,t);return c.isValid?n[o]=u:(i=!0,n[o]=c.sanitized),n},{})}else return t.allowUndefined&&typeof r>"u"?void 0:null;return i?s:r}catch{return null}},e.prototype._trim=function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},e})();W.use({gfm:!0,breaks:!0,async:!1});var lt=new pe({whiteList:{ol:["start"],li:["value"],"calcite-table":["caption","bordered","striped","layout","scale","class"],"calcite-table-row":["slot","class"],"calcite-table-header":["heading","alignment","description","class"],"calcite-table-cell":["alignment","colspan","rowspan","class"],pre:["class"],code:["class"]}},!0);function ft(e){return lt.sanitize(e)}function he(e,r){let t=e.indexOf("{",r),a=e.indexOf("[",r);return t===-1?a:a===-1?t:Math.min(t,a)}function ut(e){if(e.trimStart().startsWith("```"))return null;for(let r=he(e,0);r!==-1;r=he(e,r+1)){let t=0,a=0;for(let i=r;i<e.length;i++){let s=e[i];if(s==="{"?t++:s==="}"?t--:s==="["?a++:s==="]"&&a--,t<0||a<0)break;if(t===0&&a===0&&i>r)return e.slice(r,i+1)}}return null}function Tt(e){if(!e)return"";let r=e,t=ut(e);if(t)try{let i=JSON.parse(t),s=`
4
+
5
+ \`\`\`json
6
+ ${JSON.stringify(i,null,2)}
7
+ \`\`\`
8
+
9
+ `;r=e.replace(t,s)}catch{}let a=gt(r);return ct(a)}function ct(e){if(!e)return"";let r=dt(e);return ft(r)}function gt(e){return e?W.parse(e,{async:!1}):""}function dt(e){if(!e||typeof DOMParser>"u")return e;try{let r=new DOMParser().parseFromString(e,"text/html");return Array.from(r.querySelectorAll("table")).forEach((t,a)=>{let i=r.createElement("calcite-table");i.setAttribute("caption",`Table ${a+1}`),i.setAttribute("striped","true");let s=t.querySelector("thead");if(s){let n=Array.from(s.querySelectorAll("tr"));for(let o of n){let u=r.createElement("calcite-table-row");u.setAttribute("slot","table-header");let c=Array.from(o.querySelectorAll("th, td"));for(let f of c){let g=(f.textContent??"").trim(),d=r.createElement("calcite-table-header");d.setAttribute("heading",g),u.appendChild(d)}i.appendChild(u)}}let l=t.querySelector("tbody");(l?Array.from(l.querySelectorAll("tr")):Array.from(t.querySelectorAll("tr")).filter(n=>!s?.contains(n))).forEach((n,o)=>{let u=r.createElement("calcite-table-row"),c=!s&&o===0&&n.querySelectorAll("th").length>0;c&&u.setAttribute("slot","table-header");let f=Array.from(n.querySelectorAll("th, td"));for(let g of f){if(c&&g.localName==="th"){let m=(g.textContent??"").trim(),O=r.createElement("calcite-table-header");O.setAttribute("heading",m),u.appendChild(O);return}let d=r.createElement("calcite-table-cell"),h=g.getAttribute("colspan"),b=g.getAttribute("rowspan");h&&d.setAttribute("colspan",h),b&&d.setAttribute("rowspan",b),d.innerHTML=g.innerHTML,u.appendChild(d)}i.appendChild(u)}),t.replaceWith(i)}),r.body.innerHTML}catch{return e}}export{mt as a,Tt as b,ct as c};
@@ -36,8 +36,14 @@ This is the order of preference in case of overlap:
36
36
 
37
37
  For example, "Where is Yosemite National Park". This is an address, but:
38
38
  A map that contains a bookmark with Yosemite National Park should prefer the bookmark.
39
- A map that has the National Parks layer, for example, should prefer the feature.
40
- If these do not exist, geocode and go to that address.
39
+ If bookmark does not exist, a map that has the National Parks layer, for example, should prefer the feature.
40
+ If both of these do not exist, geocode and go to that address.
41
+
42
+ Additional mapping guidance:
43
+
44
+ - "zoom/go to [layer]" with no filter \u2192 prefer \`goToLayer\`.
45
+ - "zoom/go to [features] where/with ..." (has a condition/filter) \u2192 prefer \`goToFeatures\`.
46
+ - Explicit numeric zoom/scale/viewpoint requests \u2192 prefer the matching zoom/scale/viewpoint tool.
41
47
 
42
48
  Return the name of the tool as a string.
43
49
  `;export{e as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as N,c as $}from"./YGW7TUNX.js";import{a as C,b as P,c as f,d as m,e as L,f as O,k as g,m as v,n as w,o as A}from"./DSEMD4M2.js";var _=t=>(...s)=>{let e=m(),r=new t(...s),o=r.exports;f(e.at(-1));let n=r.component.manager;n.W(r,o),r.watchExports(n.W.bind(n,r)),L(r);let a=[r.component,...e].reverse();return v(a,i=>i===void 0?void 0:S(r,i,o),o)},S=(t,{host:s,key:e,isReactive:r},o)=>{let n=s,a=n[e]!==t.exports,i=n[e]!==o,l=o!==t.exports;if(a&&!i&&l&&(n[e]=t.exports),s===t.component){if(r){let p=t.component.manager;i&&p.W(t,n[e]),t.onUpdate(u=>{if(u.has(e)){let x=n[e];x!==t.exports&&p.W(t,x)}})}t.O=r?void 0:e}let c=t.component.constructor.elementProperties.get(e)?.readOnly;t.watchExports(()=>{n[e]!==t.exports&&(c?O(()=>{n[e]=t.exports}):n[e]=t.exports)})};var U="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),F=new Set(U),h="en",W={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},K=async(t,s,e="")=>{let r=`${s}/${e}`,o=`${r}${t}.json`;return b[o]??(b[o]=j(t,r)),await b[o]},b={},j=async(t,s)=>{let e=`${s}${t}.json`;try{let r=await fetch(e);if(r.ok)return await r.json()}catch(r){return g("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:r}}),{}}return t===h?{}:await j(h,s)},E=t=>{let s=$(t,"lang",globalThis.navigator?.language||h);return{lang:s,t9nLocale:k(s)}},k=t=>{let[s,e]=t.split("-"),r=s.toLowerCase(),o=r;return e&&(o=`${r}-${e.toUpperCase()}`),o=W[o]??o,F.has(o)?o:e?k(r):h},D=(t,s,e,r)=>{let o,n=()=>R(t,s(),r).then(a=>{(o?.lang!==a.lang||o.t9nLocale!==a.t9nLocale||o.t9nStrings!==a.t9nStrings)&&e(a),o=a}).catch(a=>{g("error","intl","Error updating component locale state",{detail:{error:a}})});return queueMicrotask(n),N(t,["lang"],n)},R=async(t,s,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:r,t9nLocale:o}=E(t),n=`${s}/${e}/t9n`,i=e===null?{}:await K(o,n,"messages.");return{lang:r,t9nLocale:o,t9nStrings:i}};var T=t=>q(void 0,t);var y=class extends A{constructor(s,e){super(s);let r=this.exports;try{P(this.component);let o=e(this.component,this),n=this.exports!==r;if(C(o)){n||this.setProvisionalExports(o);let a=o.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await a)}else(!n||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this.P.reject(o)}}catchUpLifecycle(){}},q=_(y);var at=(t,s,e)=>T((r,o)=>{let n=s,a=w({bubbles:!1,composed:!1});return o.onUpdated(i=>{if(!n.some(c=>i.has(c)))return;let l=e(V(t,n,i)),d=e(V(t,n));l.forEach((c,p)=>{d.has(p)||a.emit({...c,data:void 0})}),d.forEach((c,p)=>{let u=l.get(p);(!u||!z(u,c))&&a.emit(c)})}),a});function V(t,s,e){let r={};return s.forEach(o=>{r[o]=e?.has(o)?e.get(o):t[o]}),r}function z(t,s){if(t===s)return!0;if(!t||!s||typeof t!="object"||typeof s!="object"||Array.isArray(t)||Array.isArray(s))return!1;let e=Object.entries(t),r=Object.entries(s);return e.length!==r.length?!1:e.every(([o,n])=>z(n,s[o]))}var it=t=>(s={})=>T((e,r)=>{let o=E(e.el),n={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},a=e;r.onLifecycle(()=>D(e.el,()=>t("./assets"),({t9nLocale:l,t9nStrings:d,lang:c})=>{let p={...d,_lang:c,_t9nLocale:l,_loading:!1};r.exports=p;let u=d.componentLabel;typeof u=="string"&&"label"in e&&e.label==null&&(e.label??=u),i(a.messageOverrides)},s.name));let i=l=>{let d=r.exports,c=d._original??d,p=M(c,l);l&&(p._original=c),r.exports=p};return"messageOverrides"in a&&r.onUpdate(l=>{l.has("messageOverrides")&&i(a.messageOverrides)}),s.blocking?(r.setProvisionalExports(n,!1),r.ready):n}),M=(t,s)=>{if(!s)return t;let e={...t};return Object.entries(s).forEach(([r,o])=>{t[r]!==void 0&&(typeof o=="object"?e[r]=M(t[r],o):e[r]=o??t[r])}),e};export{at as a,it as b};
2
+ import{b as N,d as $}from"./TOYQ22PR.js";import{a as C,b as P,c as f,d as m,e as L,f as O,k as g,m as v,n as w,o as A}from"./5JUFVHKE.js";var _=t=>(...s)=>{let e=m(),r=new t(...s),o=r.exports;f(e.at(-1));let n=r.component.manager;n.W(r,o),r.watchExports(n.W.bind(n,r)),L(r);let a=[r.component,...e].reverse();return v(a,i=>i===void 0?void 0:S(r,i,o),o)},S=(t,{host:s,key:e,isReactive:r},o)=>{let n=s,a=n[e]!==t.exports,i=n[e]!==o,l=o!==t.exports;if(a&&!i&&l&&(n[e]=t.exports),s===t.component){if(r){let p=t.component.manager;i&&p.W(t,n[e]),t.onUpdate(u=>{if(u.has(e)){let x=n[e];x!==t.exports&&p.W(t,x)}})}t.O=r?void 0:e}let c=t.component.constructor.elementProperties.get(e)?.readOnly;t.watchExports(()=>{n[e]!==t.exports&&(c?O(()=>{n[e]=t.exports}):n[e]=t.exports)})};var U="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),F=new Set(U),h="en",W={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},K=async(t,s,e="")=>{let r=`${s}/${e}`,o=`${r}${t}.json`;return b[o]??(b[o]=j(t,r)),await b[o]},b={},j=async(t,s)=>{let e=`${s}${t}.json`;try{let r=await fetch(e);if(r.ok)return await r.json()}catch(r){return g("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:r}}),{}}return t===h?{}:await j(h,s)},E=t=>{let s=$(t,"lang",globalThis.navigator?.language||h);return{lang:s,t9nLocale:k(s)}},k=t=>{let[s,e]=t.split("-"),r=s.toLowerCase(),o=r;return e&&(o=`${r}-${e.toUpperCase()}`),o=W[o]??o,F.has(o)?o:e?k(r):h},D=(t,s,e,r)=>{let o,n=()=>R(t,s(),r).then(a=>{(o?.lang!==a.lang||o.t9nLocale!==a.t9nLocale||o.t9nStrings!==a.t9nStrings)&&e(a),o=a}).catch(a=>{g("error","intl","Error updating component locale state",{detail:{error:a}})});return queueMicrotask(n),N(t,["lang"],n)},R=async(t,s,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:r,t9nLocale:o}=E(t),n=`${s}/${e}/t9n`,i=e===null?{}:await K(o,n,"messages.");return{lang:r,t9nLocale:o,t9nStrings:i}};var T=t=>q(void 0,t);var y=class extends A{constructor(s,e){super(s);let r=this.exports;try{P(this.component);let o=e(this.component,this),n=this.exports!==r;if(C(o)){n||this.setProvisionalExports(o);let a=o.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await a)}else(!n||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this.P.reject(o)}}catchUpLifecycle(){}},q=_(y);var at=(t,s,e)=>T((r,o)=>{let n=s,a=w({bubbles:!1,composed:!1});return o.onUpdated(i=>{if(!n.some(c=>i.has(c)))return;let l=e(V(t,n,i)),d=e(V(t,n));l.forEach((c,p)=>{d.has(p)||a.emit({...c,data:void 0})}),d.forEach((c,p)=>{let u=l.get(p);(!u||!z(u,c))&&a.emit(c)})}),a});function V(t,s,e){let r={};return s.forEach(o=>{r[o]=e?.has(o)?e.get(o):t[o]}),r}function z(t,s){if(t===s)return!0;if(!t||!s||typeof t!="object"||typeof s!="object"||Array.isArray(t)||Array.isArray(s))return!1;let e=Object.entries(t),r=Object.entries(s);return e.length!==r.length?!1:e.every(([o,n])=>z(n,s[o]))}var it=t=>(s={})=>T((e,r)=>{let o=E(e.el),n={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},a=e;r.onLifecycle(()=>D(e.el,()=>t("./assets"),({t9nLocale:l,t9nStrings:d,lang:c})=>{let p={...d,_lang:c,_t9nLocale:l,_loading:!1};r.exports=p;let u=d.componentLabel;typeof u=="string"&&"label"in e&&e.label==null&&(e.label??=u),i(a.messageOverrides)},s.name));let i=l=>{let d=r.exports,c=d._original??d,p=M(c,l);l&&(p._original=c),r.exports=p};return"messageOverrides"in a&&r.onUpdate(l=>{l.has("messageOverrides")&&i(a.messageOverrides)}),s.blocking?(r.setProvisionalExports(n,!1),r.ready):n}),M=(t,s)=>{if(!s)return t;let e={...t};return Object.entries(s).forEach(([r,o])=>{t[r]!==void 0&&(typeof o=="object"?e[r]=M(t[r],o):e[r]=o??t[r])}),e};export{at as a,it as b};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{g as i,h as a,v as e,z as t}from"./5JUFVHKE.js";import"./4EALV6QJ.js";import"./CFDTXKJ6.js";var n=i`:host{display:contents}.icon{padding:var(--calcite-spacing-sm);border-radius:var(--calcite-spacing-xl);background:var(--calcite-color-brand);color:var(--calcite-color-foreground-1)}.loading-container{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);padding:0 var(--calcite-spacing-sm)}.loading{display:flex;align-items:center;gap:var(--calcite-spacing-sm)}.text{font-style:italic;word-wrap:break-word;word-break:break-all;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical}.skeleton-block{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);width:100%}.skeleton-text{display:block;height:.95em;border-radius:var(--calcite-border-radius);background:linear-gradient(90deg,color-mix(in srgb,var(--calcite-color-foreground-2) 65%,transparent),color-mix(in srgb,var(--calcite-color-foreground-3) 85%,transparent),color-mix(in srgb,var(--calcite-color-foreground-2) 65%,transparent));background-size:200% 100%;animation:assistant-message-loading-shimmer 1.2s ease-in-out infinite;width:85%}.skeleton-text:last-child{width:70%}@keyframes assistant-message-loading-shimmer{0%{background-position:-150% 0}to{background-position:150% 0}}@media(prefers-reduced-motion){.skeleton-text{animation:none}}`,s=class extends e{constructor(){super(...arguments),this.loading=!1,this.loadingMessage="",this.assistantAvatarEnabled=!1}static{this.properties={loading:5,loadingMessage:1,assistantAvatarEnabled:5,interrupts:0}}static{this.styles=n}render(){return this.loading?a`<arcgis-assistant-message footer-disabled>${this.assistantAvatarEnabled?a`<slot name=icon slot=icon><calcite-icon class="icon" icon=effects scale=s></calcite-icon></slot>`:null}<slot name=content slot=content><arcgis-assistant-interrupt-preview .interrupts=${this.interrupts}></arcgis-assistant-interrupt-preview><div class="loading-container"><div class="loading"><calcite-loader label=loading inline></calcite-loader><div class="text">${this.loadingMessage}</div></div><div class="skeleton-block"><span class="skeleton-text"></span><span class="skeleton-text"></span></div></div></slot></arcgis-assistant-message>`:null}};t("arcgis-assistant-message-loading",s);export{s as ArcgisAssistantMessageLoading};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import a from"./WNJM5TET.js";import"./DHGNGMNJ.js";import"./H3EEFM4A.js";import"./4ASZF5I2.js";import"./LXJWWOGK.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{property:l,subclass:w},{c:p,d:d}])=>{var y=Object.defineProperty,m=Object.getOwnPropertyDescriptor,f=e=>{throw TypeError(e)},h=(e,t,o,n)=>{for(var r=n>1?void 0:n?m(t,o):t,s=e.length-1,g;s>=0;s--)(g=e[s])&&(r=(n?g(t,o,r):g(r))||r);return n&&r&&y(t,o,r),r},k=(e,t,o)=>t.has(e)||f("Cannot "+o),b=(e,t,o)=>t.has(e)?f("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),c=(e,t,o)=>(k(e,t,"access private method"),o),a,i,u=class extends d{constructor(e){super(e),b(this,a)}getAgents(){return c(this,a,i).call(this),[this.routerAgent,...Object.values(this.agentsMap)]}buildEdges(e){c(this,a,i).call(this);let t=p(this.routerAgent,0),o=new Map;for(let[n,[r]]of Object.entries(this.agentsMap).entries())o.set(r,p(e[n+1],n+1));return[{from:t,decide:n=>{let r=n[this.routerOutputKey];if(typeof r!="string"||!r)throw new Error("RouterWorkflow decideRoute could not determine next agent from state.");let s=o.get(r);if(!s)throw new Error(`RouterWorkflow decideRoute returned unknown agent: ${r}. Expected one of: ${Object.keys(this.agentsMap).join(", ")||"(none)"}.`);return s}}]}getEntryNode(){return c(this,a,i).call(this),p(this.routerAgent,0)}isTerminalAgent(e,t){return t>0}validateAgents(e){c(this,a,i).call(this),super.validateAgents(e)}};a=new WeakSet;i=function(){if(!Object.keys(this.agentsMap).length)throw new Error("RouterWorkflow requires a non-empty agentsMap.")};h([l()],u.prototype,"agentsMap",2);h([l()],u.prototype,"routerAgent",2);h([l()],u.prototype,"routerOutputKey",2);u=h([w("RouterWorkflow")],u);return u},"core/accessorSupport/decorators",a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{g as i,h as s,v as n,z as o}from"./5JUFVHKE.js";import"./4EALV6QJ.js";import"./CFDTXKJ6.js";var c=i`:host{display:block}`,e=class extends n{static{this.properties={block:0}}static{this.styles=c}_renderSuggestedPrompts(t){if(t.type!=="suggested-prompts")return null;let r=t.data?.prompts,a=Array.isArray(r)?r.filter(p=>typeof p=="string"):[];return a.length?s`<arcgis-assistant-suggested-prompts .prompts=${a}></arcgis-assistant-suggested-prompts>`:null}_renderBlock(t){switch(t.type){case"suggested-prompts":return this._renderSuggestedPrompts(t);case"text":return s`<arcgis-assistant-message-text .content=${t.data?.content} .parts=${t.data?.parts}></arcgis-assistant-message-text>`;default:return null}}render(){return this.block?this._renderBlock(this.block):null}};o("arcgis-assistant-message-block",e);export{e as ArcgisAssistantMessageBlock};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import c from"./MJM2MHJW.js";import b from"./OP6ENMCN.js";import a from"./PFW7KXCP.js";import{c as s,d as n}from"./UE3CP46P.js";import"./P5M2HNJ7.js";import"./TOYQ22PR.js";import{v as r,z as o}from"./5JUFVHKE.js";import"./4EALV6QJ.js";import"./KGYSBUFO.js";import"./PIUDMACH.js";import"./H3EEFM4A.js";import"./4ASZF5I2.js";import"./QH6TSBNI.js";import"./LXJWWOGK.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,,,,,,,,,{fetchKnowledgeGraph:p},,,a])=>{var i=class extends r{constructor(){super(...arguments),this.agent=a}static{this.properties={referenceElement:1,serviceUrl:3,context:0}}#e;#i;#t;#r;get serviceUrl(){return this.#i}set serviceUrl(t){this.#i=t}async getContext(){let t=this.context?{...this.context,knowledgeGraph:void 0,view:void 0}:{};if(this.#e)return{...t,view:this.#e};if(this.#t)try{let e=await this.#t;return{...t,knowledgeGraph:e}}catch(e){console.error("Failed to load knowledge graph via service URL:",e)}if(!this.context?.knowledgeGraph&&!this.context?.view)throw new Error("arcgis-assistant-knowledge-agent requires either a knowledgeGraph or view in context, and neither were provided");return this.context}willUpdate(t){t.has("serviceUrl")&&this.serviceUrl?this.#t=p(this.serviceUrl):this.#t=void 0}load(){this.#e=n(this)??void 0,this.#r=s(this)}disconnectedCallback(){this.#r?.unregister(this.agent.id),super.disconnectedCallback()}};o("arcgis-assistant-knowledge-agent",i);return i},"identity/IdentityManager","portal/Portal","config","core/reactiveUtils","layers/FeatureLayer","request","intl","smartMapping/statistics/summaryStatistics","smartMapping/statistics/uniqueValues","rest/knowledgeGraphService",a,b,c)
@@ -0,0 +1,34 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./CFDTXKJ6.js";var e=`## Membership Bind Parameters
3
+
4
+ The current map contains a subset of entities and relationships from the database. Their membership is available to Cypher queries as lists of string identifiers through these bind parameters:
5
+
6
+ - $entityIds
7
+ - $relationshipIds
8
+
9
+ Included Types:
10
+ {nonDynamicTypes}
11
+
12
+ Filtering rules:
13
+
14
+ - Apply membership filtering only when BOTH are true:
15
+ - The user is asking for data to be limited by the records already on 'the current map', 'my map', 'the knowledge graph layer' or similar.
16
+ - The variable in the cypher query is a type in Included Types above.
17
+ - IMPORTANT: In all other cases, DO NOT apply membership filtering. DO NOT include membership filters for any type not listed in Included Types above.
18
+
19
+ ### START EXAMPLES
20
+
21
+ User request: 'Add all records that are connected to people on this map to the map'
22
+ Context: 'Person' entity in data model and included in the bind parameter types above.
23
+ Expected Result: MATCH (n:Person)-[r]->(m) WHERE id(n) IN $entityIds return r, m
24
+
25
+ User request: 'Add all the suppliers to the map'
26
+ Context: 'Supplier' entity in the data model.
27
+ Expected Result: MATCH (s:Supplier) RETURN s
28
+
29
+ User request: 'Add all suppliers connected to plants on my map'
30
+ Context: 'Plant' entity in data model but not included in the bind parameter types above.
31
+ Expected Result: MATCH (p:Plant)-[r]->(s:Supplier) return r, s
32
+
33
+ ### END EXAMPLES
34
+ `;export{e as default};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import e from"./W6HO4D6J.js";import d from"./7WSTR3WA.js";import c from"./OP6ENMCN.js";import b from"./PFW7KXCP.js";import{a,c as s}from"./UE3CP46P.js";import"./P5M2HNJ7.js";import"./TOYQ22PR.js";import{v as i,z as r}from"./5JUFVHKE.js";import"./4EALV6QJ.js";import"./KGYSBUFO.js";import"./PIUDMACH.js";import"./H3EEFM4A.js";import"./4ASZF5I2.js";import"./QH6TSBNI.js";import"./LXJWWOGK.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,,,,,,,,,,,o])=>{var t=class extends i{constructor(){super(...arguments),this.agent=o}static{this.properties={referenceElement:1}}#t;#i;getContext(){if(!this.#t)throw new Error("arcgis-assistant-data-exploration-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=a(this,"arcgis-assistant-data-exploration-agent"),this.#i=s(this)}disconnectedCallback(){this.#i?.unregister(this.agent.id),super.disconnectedCallback()}};r("arcgis-assistant-data-exploration-agent",t);return t},"identity/IdentityManager","portal/Portal","config","core/reactiveUtils","layers/FeatureLayer","request","views/LinkChartView","rest/knowledgeGraphService",b,c,d,e)
@@ -0,0 +1,99 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./CFDTXKJ6.js";var e=`# ArcGIS Knowledge Graph Cypher Rules
3
+
4
+ ## GOAL
5
+
6
+ Generate a Cypher query that answers the user\u2019s request and conforms to the data model.
7
+
8
+ ---
9
+
10
+ ## 1. USER OVERRIDES (HIGHEST PRIORITY)
11
+
12
+ If the user specifies any of the following, ALWAYS follow their instructions over defaults:
13
+
14
+ - LIMIT (or no limit)
15
+ - Output columns / data model
16
+ - Inclusion/exclusion of globalid
17
+ - Ordering, grouping, filtering, projection
18
+
19
+ ---
20
+
21
+ ## 2. DATA MODEL CONFORMANCE (NON-NEGOTIABLE)
22
+
23
+ Use ONLY valid data model elements.
24
+
25
+ ### Required
26
+
27
+ - Use only valid entity types, relationship types, and properties
28
+ - Ensure relationships connect valid entity types
29
+ - infer direction from user prompt. if not clear use the least restrictive valid form supported by the model.
30
+
31
+ ### VALIDATION RULES (STRICT)
32
+
33
+ - Enforce exact schema match: all entities, relationships, and properties must exist exactly in the data model
34
+ - Validate relationship integrity: types, source\u2192target pairing, and direction must match schema
35
+ - Enforce field correctness: properties and filters must exist on the referenced type and use valid data types
36
+ - Ensure alias consistency: each alias maps to one type only and cannot change meaning
37
+ - Apply strict failure: if any component is invalid, do NOT generate the query and do NOT infer or repair
38
+
39
+ ## 4. PATH RESOLUTION
40
+
41
+ - First attempt a direct relationship
42
+ - If none exists \u2192 use a valid multi-hop path
43
+ - Each hop MUST be valid in the data model
44
+ - Max path length: 3 (unless user requests more)
45
+
46
+ ### Path selection
47
+
48
+ - Prefer shortest valid path
49
+ - If multiple valid paths exist \u2192 choose best match to user intent
50
+ - If no valid path exists \u2192 do not speculate
51
+
52
+ ---
53
+
54
+ ## 5. PERFORMANCE
55
+
56
+ - Use the minimal number of entities and relationships
57
+ - Prefer shortest valid path
58
+ - Avoid unnecessary patterns or complexity
59
+
60
+ ---
61
+
62
+ ## 6. CYPHER RULES
63
+
64
+ - UNION queries must return identical columns
65
+ - Apply LIMIT only after UNION (not inside subqueries)
66
+ - Do NOT use: OVER, REDUCE()
67
+ - Do NOT use reserved keywords as variables (call, match, return, as etc.)
68
+ - Use only valid openCypher syntax
69
+ - After OPTIONAL MATCH, always add:
70
+ WITH ...
71
+ WHERE var IS NOT NULL
72
+ before using var in any MATCH or relationship pattern.
73
+
74
+ ---
75
+
76
+ ## 7. SPATIAL RULES
77
+
78
+ - Prefer graph relationships over spatial functions
79
+ - Use spatial functions only when necessary
80
+ - Always ensure geometry is not null if using spatial functions
81
+ - for example: WHERE n.shape IS NOT NULL
82
+
83
+ ---
84
+
85
+ ## 9. DEFAULT OUTPUT (IF NOT SPECIFIED)
86
+
87
+ - Add LIMIT 50 unless results are clearly small
88
+ - Use descriptive aliases with AS
89
+ - ALWAYS Return full entities and relationships unless user requests specific properties
90
+
91
+ ---
92
+
93
+ ## 11. OUTPUT FORMAT
94
+
95
+ - Valid \u2192 return ONLY Cypher query
96
+ - No explanation
97
+
98
+ ---
99
+ `;export{e as default};