@arcgis/ai-components 5.2.0-next.106 → 5.2.0-next.108

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 (285) hide show
  1. package/dist/agent-utils/BaseAgent.js +1 -1
  2. package/dist/agent-utils/FunctionAgent.js +1 -1
  3. package/dist/agent-utils/LLMAgent.js +1 -1
  4. package/dist/agent-utils/WorkflowAgent.js +1 -1
  5. package/dist/agent-utils/index.js +1 -1
  6. package/dist/agent-utils/middlewares/humanInTheLoop.js +1 -1
  7. package/dist/agent-utils/middlewares/middleware.js +1 -1
  8. package/dist/agent-utils/middlewares/trace.js +1 -1
  9. package/dist/agent-utils/middlewares/types.js +1 -1
  10. package/dist/agent-utils/tools/FunctionTool.js +1 -1
  11. package/dist/agent-utils/workflows/ConditionalWorkflow.js +1 -1
  12. package/dist/agent-utils/workflows/LoopWorkflow.js +1 -1
  13. package/dist/agent-utils/workflows/ParallelWorkflow.js +1 -1
  14. package/dist/agent-utils/workflows/RouterWorkflow.js +1 -1
  15. package/dist/agent-utils/workflows/SequentialWorkflow.js +1 -1
  16. package/dist/agent-utils/workflows/SwitchWorkflow.js +1 -1
  17. package/dist/agents/runtime/skill/createSkillAgent.d.ts +1 -1
  18. package/dist/agents/runtime/skill/createSkillAgent.js +42 -44
  19. package/dist/agents/runtime/skill/types.d.ts +1 -1
  20. package/dist/agents/runtime/skill/types.js +1 -1
  21. package/dist/agents/tools/filter/clearFilters/adapter.js +1 -1
  22. package/dist/agents/tools/filter/resetMap/adapter.js +1 -1
  23. package/dist/agents/tools/filter/setFeatureEffect/adapter.js +1 -1
  24. package/dist/agents/tools/help/listFields/adapter.js +1 -1
  25. package/dist/agents/tools/navigation/goToAddress/adapter.js +1 -1
  26. package/dist/agents/tools/navigation/goToBookmark/adapter.js +1 -1
  27. package/dist/agents/tools/navigation/goToFeatures/adapter.js +1 -1
  28. package/dist/agents/tools/navigation/goToFullExtent/adapter.js +1 -1
  29. package/dist/agents/tools/navigation/goToHomeExtent/adapter.js +1 -1
  30. package/dist/agents/tools/navigation/goToLayer/adapter.js +1 -1
  31. package/dist/agents/tools/navigation/goToScale/adapter.js +1 -1
  32. package/dist/agents/tools/navigation/goToViewpoint/adapter.js +1 -1
  33. package/dist/agents/tools/navigation/goToZoom/adapter.js +1 -1
  34. package/dist/agents/tools/query/getAttribute/adapter.js +1 -1
  35. package/dist/agents/tools/query/getStatistics/adapter.js +1 -1
  36. package/dist/agents/tools/query/getTopFeatures/adapter.js +1 -1
  37. package/dist/agents/tools/query/queryFeatures/adapter.js +1 -1
  38. package/dist/agents/tools/search/findRelevantFields/adapter.js +1 -1
  39. package/dist/agents/tools/search/findRelevantLayers/adapter.js +1 -1
  40. package/dist/agents/tools/shared/resolveToolArtifact.js +1 -1
  41. package/dist/agents/tools/shared/types.js +1 -1
  42. package/dist/cdn/25MBI4PD.js +2 -0
  43. package/dist/cdn/{3XDT7MWI.js → 275FFTBE.js} +2 -2
  44. package/dist/cdn/{XQ3NBBQ3.js → 2F4TPWZQ.js} +1 -1
  45. package/dist/cdn/{KJLLN4P4.js → 2LVYAXHG.js} +3 -3
  46. package/dist/cdn/{5MK44FNO.js → 2NRCE53B.js} +2 -2
  47. package/dist/cdn/{XKH37FLY.js → 2WXXSZP5.js} +2 -2
  48. package/dist/cdn/{APFZY4PI.js → 3KNLFIM3.js} +2 -2
  49. package/dist/cdn/{VMZZR7MY.js → 3PPXAIRE.js} +2 -2
  50. package/dist/cdn/{JMNHFKGL.js → 45BDE3MG.js} +2 -2
  51. package/dist/cdn/{S4LELUBK.js → 477I66FH.js} +2 -2
  52. package/dist/cdn/4CFCV47G.js +2 -0
  53. package/dist/cdn/{TPULIO6I.js → 4IWDBEMN.js} +2 -2
  54. package/dist/cdn/{HHBNLCJP.js → 4OI4QEV7.js} +2 -2
  55. package/dist/cdn/{2W7LK4HA.js → 4UAREC76.js} +2 -2
  56. package/dist/cdn/{TEI6WXW7.js → 4VBOTWC3.js} +2 -2
  57. package/dist/cdn/{RLEHNAIA.js → 4YOG5F3W.js} +1 -1
  58. package/dist/cdn/5X23DDDZ.js +2 -0
  59. package/dist/cdn/65ZACLYB.js +2 -0
  60. package/dist/cdn/{D5EKX26R.js → 6KWGSXIN.js} +2 -2
  61. package/dist/cdn/{O4NVW75A.js → 6MRTZ4OM.js} +2 -2
  62. package/dist/cdn/{6YZGKVYB.js → 77NAJM5H.js} +2 -2
  63. package/dist/cdn/{NEV6OZN3.js → 7DOYUO7L.js} +2 -2
  64. package/dist/cdn/{EYOWRGDP.js → 7JJX6VGI.js} +2 -2
  65. package/dist/cdn/{ONQ6JSBJ.js → A6LBMS7A.js} +1 -1
  66. package/dist/cdn/{EOD5PNOL.js → AP3KPOHN.js} +2 -2
  67. package/dist/cdn/AUCKEB52.js +2 -0
  68. package/dist/cdn/B3HXSEBN.js +2 -0
  69. package/dist/cdn/{6ECRQVHY.js → BAKJLCYO.js} +2 -2
  70. package/dist/cdn/{74CVYM72.js → BJMGT6GV.js} +2 -2
  71. package/dist/cdn/{5LMYUEK7.js → BTOBEN7Q.js} +2 -2
  72. package/dist/cdn/BTTCBEPW.js +2 -0
  73. package/dist/cdn/{UZLQALHY.js → BVUCNXC5.js} +1 -1
  74. package/dist/cdn/{RFVZ7KCG.js → CAOMMQSY.js} +1 -1
  75. package/dist/cdn/{P4GFYBBO.js → CBYBFBD3.js} +2 -2
  76. package/dist/cdn/{725MBCQF.js → CKUUYQLO.js} +2 -2
  77. package/dist/cdn/{MWYBF3F3.js → CSE6BHOJ.js} +2 -2
  78. package/dist/cdn/{XTCLJEID.js → CX2HJ67C.js} +2 -2
  79. package/dist/cdn/EELMDCPV.js +2 -0
  80. package/dist/cdn/{6RAWG2KQ.js → EGRRZTF6.js} +2 -2
  81. package/dist/cdn/EHYDAEGL.js +2 -0
  82. package/dist/cdn/{TBYDZN4H.js → EK3PM4L5.js} +2 -2
  83. package/dist/cdn/{PYGX4HN7.js → ENAEE4UU.js} +2 -2
  84. package/dist/cdn/EXMEB4X2.js +2 -0
  85. package/dist/cdn/{AGQ5ADFU.js → EYGZJKVD.js} +2 -2
  86. package/dist/cdn/{BTTBKTFM.js → FK2CVSXW.js} +2 -2
  87. package/dist/cdn/FLUI6GCU.js +2 -0
  88. package/dist/cdn/{ZU2FHVNK.js → FPH52WOH.js} +2 -2
  89. package/dist/cdn/FRYS2PZJ.js +2 -0
  90. package/dist/cdn/FSLQCZRN.js +2 -0
  91. package/dist/cdn/{PQ2DPOFM.js → FTTLFIBV.js} +2 -2
  92. package/dist/cdn/{2AMUOR7X.js → FV6FHLYW.js} +2 -2
  93. package/dist/cdn/{TFRWUAB6.js → G24MNC7D.js} +2 -2
  94. package/dist/cdn/{6OOZSZRJ.js → GN56DOYL.js} +2 -2
  95. package/dist/cdn/{ROQGPAR5.js → HIJGY4GU.js} +2 -2
  96. package/dist/cdn/{BL273EGZ.js → HMMYCSOK.js} +2 -2
  97. package/dist/cdn/{ES6D4UD6.js → HNTSDY3J.js} +2 -2
  98. package/dist/cdn/HQOK6DDH.js +2 -0
  99. package/dist/cdn/{HB72YIII.js → HV7MVIQV.js} +2 -2
  100. package/dist/cdn/I3SUE2TR.js +2 -0
  101. package/dist/cdn/{VAXH6RUQ.js → I72ST4JR.js} +2 -2
  102. package/dist/cdn/{FYZATVB3.js → IHUWQOMK.js} +2 -2
  103. package/dist/cdn/{J6A4AS7E.js → JMXXRRKQ.js} +2 -2
  104. package/dist/cdn/{5HBAJ57P.js → JPXEMNPR.js} +2 -2
  105. package/dist/cdn/{UHEYPSOR.js → JYNHWJUZ.js} +2 -2
  106. package/dist/cdn/KAX4A7SF.js +2 -0
  107. package/dist/cdn/{BQYF37UD.js → KBSXHSBX.js} +2 -2
  108. package/dist/cdn/{CCC6LBMY.js → KKCLHXHG.js} +1 -1
  109. package/dist/cdn/{7UF3WRLO.js → L2HLFWCV.js} +2 -2
  110. package/dist/cdn/{LK7ZIQW6.js → L3BTURBA.js} +2 -2
  111. package/dist/cdn/{IRSJXHRN.js → LBTGOMCT.js} +2 -2
  112. package/dist/cdn/{34O57OGV.js → LLY5A2E2.js} +1 -1
  113. package/dist/cdn/{OOGADOKQ.js → LXIKAXUT.js} +2 -2
  114. package/dist/cdn/{S627D4K7.js → M2U456J5.js} +2 -2
  115. package/dist/cdn/{UAG6GDUG.js → M3KKORBG.js} +2 -2
  116. package/dist/cdn/M5B6X46F.js +2 -0
  117. package/dist/cdn/{SDWWUWAF.js → MZUDIQQH.js} +2 -2
  118. package/dist/cdn/{CEKOEHB3.js → NNPA3NLK.js} +2 -2
  119. package/dist/cdn/{MXTXJKFE.js → NPWLYHMU.js} +2 -2
  120. package/dist/cdn/NV7CL4S3.js +2 -0
  121. package/dist/cdn/{3UEKINYC.js → OALQBAZR.js} +2 -2
  122. package/dist/cdn/{RHYNE5OE.js → OF3TAARW.js} +1 -1
  123. package/dist/cdn/{F5NIRETW.js → P53TDER7.js} +2 -2
  124. package/dist/cdn/{SXM4NUT5.js → PJLGCS33.js} +2 -2
  125. package/dist/cdn/{EJJFG5DE.js → PJPP6LOS.js} +2 -2
  126. package/dist/cdn/PUZ6RAFQ.js +2 -0
  127. package/dist/cdn/{IHP25JWI.js → QAX6UF4L.js} +2 -2
  128. package/dist/cdn/{JEBRN3EU.js → QTEPFTAU.js} +2 -2
  129. package/dist/cdn/ROS22KOA.js +2 -0
  130. package/dist/cdn/RPOFBIE7.js +2 -0
  131. package/dist/cdn/{COH3QXWG.js → S5GFNIHC.js} +3 -3
  132. package/dist/cdn/{A7BKHIMA.js → SBNNJ5WA.js} +2 -2
  133. package/dist/cdn/SI22EJLC.js +2 -0
  134. package/dist/cdn/{7QIX4PZR.js → SJMAKF4P.js} +2 -2
  135. package/dist/cdn/{6P44KOKX.js → SKCUGZ7G.js} +2 -2
  136. package/dist/cdn/{V6HOUZPZ.js → SNG3WODY.js} +2 -2
  137. package/dist/cdn/{JWZD3D5E.js → STOGCXJH.js} +2 -2
  138. package/dist/cdn/{OMF6ITSG.js → SUC2MIGE.js} +2 -2
  139. package/dist/cdn/SXYKNDOF.js +2 -0
  140. package/dist/cdn/SZ2L5556.js +2 -0
  141. package/dist/cdn/{4ALF2CJY.js → T6W6F4TF.js} +2 -2
  142. package/dist/cdn/{RN6WMVZX.js → TFAJNKBC.js} +2 -2
  143. package/dist/cdn/{R74ZHFA6.js → TLPZELG3.js} +1 -1
  144. package/dist/cdn/{2O4DON37.js → TNLFUXIB.js} +2 -2
  145. package/dist/cdn/{RLB6TK6B.js → TXZQZR3I.js} +2 -2
  146. package/dist/cdn/UGIHS7OA.js +2 -0
  147. package/dist/cdn/{UDRKUVZP.js → UX457AQR.js} +2 -2
  148. package/dist/cdn/{ICBIUFK7.js → V266DJ5V.js} +2 -2
  149. package/dist/cdn/{FDOMMK2M.js → V4PJMCJZ.js} +1 -1
  150. package/dist/cdn/{3VCPN2KW.js → V52GSTOC.js} +2 -2
  151. package/dist/cdn/{UHICISBZ.js → VGLBH473.js} +2 -2
  152. package/dist/cdn/{WSWB3B7B.js → VHNTHPH7.js} +2 -2
  153. package/dist/cdn/{OZ2CM3J2.js → VK6CCPTG.js} +2 -2
  154. package/dist/cdn/{AOVJ34QE.js → VLPELJUS.js} +2 -2
  155. package/dist/cdn/VT5EWFH7.js +2 -0
  156. package/dist/cdn/{Y7LGFSHO.js → VXLKTQ36.js} +2 -2
  157. package/dist/cdn/{CFAC4FN3.js → W54XYT2A.js} +2 -2
  158. package/dist/cdn/{RZIXMISL.js → X42ACC66.js} +2 -2
  159. package/dist/cdn/{7EOS4SGJ.js → XNUWVZN7.js} +2 -2
  160. package/dist/cdn/{2OUIRKTV.js → XOTPSCNF.js} +2 -2
  161. package/dist/cdn/{ZZZB3GES.js → XRVGYRXL.js} +2 -2
  162. package/dist/cdn/{JKKU4K4C.js → XV7RMYLR.js} +2 -2
  163. package/dist/cdn/{3SD47V7G.js → XVJFPZTW.js} +2 -2
  164. package/dist/cdn/XZF7Y6B2.js +2 -0
  165. package/dist/cdn/Y4ZOB6UH.js +2 -0
  166. package/dist/cdn/{ZFOG3KXV.js → Y6CV2NZR.js} +2 -2
  167. package/dist/cdn/YMJKT5OK.js +2 -0
  168. package/dist/cdn/{6GODC6RU.js → YOW3YKWR.js} +2 -2
  169. package/dist/cdn/{OKVLGJAG.js → ZA7ZU2F7.js} +2 -2
  170. package/dist/cdn/{OL7QBAGS.js → ZJWR4W2S.js} +2 -2
  171. package/dist/cdn/ZWIKFBOU.js +2 -0
  172. package/dist/cdn/{MXAZE2VM.js → ZY3JQCZQ.js} +36 -36
  173. package/dist/cdn/agent-utils/index.js +2 -2
  174. package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +2 -2
  175. package/dist/cdn/agent-utils/middlewares/middleware.js +2 -2
  176. package/dist/cdn/agent-utils/middlewares/trace.js +2 -2
  177. package/dist/cdn/index.js +2 -2
  178. package/dist/chunks/BaseWorkflow.js +1 -1
  179. package/dist/chunks/SKILL.js +1 -1
  180. package/dist/chunks/SKILL2.js +1 -1
  181. package/dist/chunks/SKILL3.js +1 -1
  182. package/dist/chunks/SKILL4.js +1 -1
  183. package/dist/chunks/adapter.js +1 -1
  184. package/dist/chunks/aiFactory.js +1 -1
  185. package/dist/chunks/arcgisKnowledgeGraph.js +1 -1
  186. package/dist/chunks/arcgisToolRegistry.js +88 -0
  187. package/dist/chunks/arcgis_knowledge_current_lc_context.js +1 -1
  188. package/dist/chunks/arcgis_knowledge_current_map_context.js +1 -1
  189. package/dist/chunks/arcgis_knowledge_cypher_query_prompt.js +1 -1
  190. package/dist/chunks/arcgis_knowledge_lucene_generation_prompt.js +1 -1
  191. package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +1 -1
  192. package/dist/chunks/arcgis_knowledge_tool_prompt.js +1 -1
  193. package/dist/chunks/baseAgentState.js +1 -1
  194. package/dist/chunks/converterUtils.js +1 -1
  195. package/dist/chunks/dataExplorationAgent.js +3 -14
  196. package/dist/chunks/data_explore_filter_prompt.js +1 -1
  197. package/dist/chunks/data_explore_query_prompt.js +1 -1
  198. package/dist/chunks/embeddings.worker.js +1 -1
  199. package/dist/chunks/fetchAgentContext.js +1 -1
  200. package/dist/chunks/fetchService.js +1 -1
  201. package/dist/chunks/fieldStatistics.js +1 -1
  202. package/dist/chunks/field_descriptions_prompt.js +1 -1
  203. package/dist/chunks/formatFeatureAttributes.js +1 -1
  204. package/dist/chunks/generateLayerDescriptions.js +1 -1
  205. package/dist/chunks/graph.js +1 -1
  206. package/dist/chunks/helpAgent.js +11 -14
  207. package/dist/chunks/help_prompt.js +1 -1
  208. package/dist/chunks/index.js +1 -1
  209. package/dist/chunks/intent_prompt.js +1 -1
  210. package/dist/chunks/layerStylingGraph.js +1 -1
  211. package/dist/chunks/layer_descriptions_prompt.js +1 -1
  212. package/dist/chunks/layer_styling_prompt.js +1 -1
  213. package/dist/chunks/mergeWhereClauses.js +1 -1
  214. package/dist/chunks/navigationAgent.js +7 -20
  215. package/dist/chunks/navigation_intent_prompt.js +1 -1
  216. package/dist/chunks/navigation_tool_prompt.js +1 -1
  217. package/dist/chunks/orchestrator.js +1 -1
  218. package/dist/chunks/requireAgentServices.js +1 -1
  219. package/dist/chunks/resolvePointGeometryFilter.js +1 -1
  220. package/dist/chunks/runtime.js +2 -2
  221. package/dist/chunks/slottableRequestUtils.js +1 -1
  222. package/dist/chunks/state.js +1 -1
  223. package/dist/chunks/summarize_query_response_prompt.js +1 -1
  224. package/dist/chunks/useT9n.js +1 -1
  225. package/dist/chunks/utils.js +1 -1
  226. package/dist/chunks/utils2.js +1 -1
  227. package/dist/chunks/utils3.js +1 -1
  228. package/dist/components/arcgis-assistant/customElement.js +1 -1
  229. package/dist/components/arcgis-assistant-agent/customElement.js +130 -212
  230. package/dist/components/arcgis-assistant-chat/customElement.js +1 -1
  231. package/dist/components/arcgis-assistant-chat-entry/customElement.js +1 -1
  232. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +1 -1
  233. package/dist/components/arcgis-assistant-help-agent/customElement.js +1 -1
  234. package/dist/components/arcgis-assistant-interrupt/customElement.js +1 -1
  235. package/dist/components/arcgis-assistant-interrupt-preview/customElement.js +1 -1
  236. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +1 -1
  237. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +1 -1
  238. package/dist/components/arcgis-assistant-message/customElement.js +1 -1
  239. package/dist/components/arcgis-assistant-message-block/customElement.js +1 -1
  240. package/dist/components/arcgis-assistant-message-feedback/customElement.js +1 -1
  241. package/dist/components/arcgis-assistant-message-footer/customElement.js +1 -1
  242. package/dist/components/arcgis-assistant-message-loading/customElement.js +1 -1
  243. package/dist/components/arcgis-assistant-message-log/customElement.js +1 -1
  244. package/dist/components/arcgis-assistant-message-read-aloud/customElement.js +1 -1
  245. package/dist/components/arcgis-assistant-message-text/customElement.js +1 -1
  246. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +1 -1
  247. package/dist/components/arcgis-assistant-speech-input/customElement.js +1 -1
  248. package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +1 -1
  249. package/dist/components/arcgis-assistant-user-message/customElement.js +1 -1
  250. package/dist/docs/api.json +1 -1
  251. package/dist/docs/docs.json +1 -1
  252. package/dist/docs/web-types.json +1 -1
  253. package/dist/index.js +1 -1
  254. package/dist/loader.js +1 -1
  255. package/dist/utils/index.js +1 -1
  256. package/package.json +5 -5
  257. package/dist/cdn/23C34FEU.js +0 -2
  258. package/dist/cdn/2OHRNRNT.js +0 -2
  259. package/dist/cdn/2S6L3P4Q.js +0 -2
  260. package/dist/cdn/3IOP64NG.js +0 -2
  261. package/dist/cdn/3OH35VXS.js +0 -2
  262. package/dist/cdn/434TAA3J.js +0 -2
  263. package/dist/cdn/AFSBL4ZP.js +0 -2
  264. package/dist/cdn/BVSK2GWP.js +0 -2
  265. package/dist/cdn/EGN5BCHV.js +0 -2
  266. package/dist/cdn/HLN5675C.js +0 -2
  267. package/dist/cdn/IFFOSSNB.js +0 -2
  268. package/dist/cdn/IO7DYFL2.js +0 -2
  269. package/dist/cdn/JD2TB7H4.js +0 -2
  270. package/dist/cdn/KZ73TZOB.js +0 -2
  271. package/dist/cdn/LEO3USHH.js +0 -2
  272. package/dist/cdn/LNIMGXB4.js +0 -2
  273. package/dist/cdn/MG2W2ZF3.js +0 -2
  274. package/dist/cdn/MSXMHRI7.js +0 -2
  275. package/dist/cdn/PK5KI2XF.js +0 -2
  276. package/dist/cdn/PWFUEBTT.js +0 -2
  277. package/dist/cdn/RSJSRETN.js +0 -2
  278. package/dist/cdn/RSR66KB4.js +0 -2
  279. package/dist/cdn/SL4Y7IRG.js +0 -2
  280. package/dist/cdn/STUBN3L5.js +0 -2
  281. package/dist/cdn/T2OYKP3V.js +0 -2
  282. package/dist/cdn/U3ETGDT7.js +0 -2
  283. package/dist/cdn/VXFQANGJ.js +0 -2
  284. package/dist/cdn/WW4BEFDF.js +0 -2
  285. package/dist/cdn/XGCQS3N4.js +0 -2
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{c as i,e as c}from"./XKH37FLY.js";export default $arcgis.t(([m,{subclass:p}])=>{function a(t){return t?Object.keys(t.shape??{}):[]}function d(t){let e={};for(let n of t)for(let s of a(n))e[s]=void 0;return e}function g(t,e){return Object.fromEntries(e.filter(n=>Object.hasOwn(t,n)).map(n=>[n,t[n]]))}function l(t,e){return`${t.id}_${e}`}function h(t,e){let n=e.inputSchema;return n?{...g(t,a(n)),agentExecutionContext:t.agentExecutionContext,outputMessage:t.outputMessage,status:void 0,summary:""}:{...t,status:void 0,summary:""}}function x(t,e){return t.outputSchema?g(e,a(t.outputSchema)):{}}function y(t){let e={outputMessage:t.outputMessage,status:t.status,summary:t.summary};return t.agentExecutionContext&&(e.agentExecutionContext=t.agentExecutionContext),e}function v(t,e){return async(n,s)=>{let o=await t.run(h(n,t),s),r=x(t,o);return e||o.status==="failed"?{...r,...y(o)}:{...r,outputMessage:o.outputMessage}}}var w=Object.getOwnPropertyDescriptor,E=(t,e,n,s)=>{for(var o=s>1?void 0:s?w(e,n):e,r=t.length-1,u;r>=0;r--)(u=t[r])&&(o=u(o)||o);return o},f=class extends m{generate(){let t=this.getAgents();this.validateAgents(t);for(let r of t)r.generate();let e=d(t.flatMap(r=>r.getSchemas())),n=i(e),s=this.buildNodes(t),o=this.buildEdges(t);return{workspace:n,createGraph:()=>c(s,o,n,{entryNode:this.getEntryNode(t)})}}buildNodes(t){let e={};for(let[n,s]of t.entries())e[l(s,n)]=v(s,this.isTerminalAgent(t,n));return e}validateAgents(t){if(!t.length)throw new Error("Workflow requires at least one agent.")}};f=E([p("BaseWorkflow")],f);return{a:a,b:d,c:l,d:f}},"core/Accessor","core/accessorSupport/decorators")
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{c as i,e as c}from"./2WXXSZP5.js";export default $arcgis.t(([m,{subclass:p}])=>{function a(t){return t?Object.keys(t.shape??{}):[]}function d(t){let e={};for(let n of t)for(let s of a(n))e[s]=void 0;return e}function g(t,e){return Object.fromEntries(e.filter(n=>Object.hasOwn(t,n)).map(n=>[n,t[n]]))}function l(t,e){return`${t.id}_${e}`}function h(t,e){let n=e.inputSchema;return n?{...g(t,a(n)),agentExecutionContext:t.agentExecutionContext,outputMessage:t.outputMessage,status:void 0,summary:""}:{...t,status:void 0,summary:""}}function x(t,e){return t.outputSchema?g(e,a(t.outputSchema)):{}}function y(t){let e={outputMessage:t.outputMessage,status:t.status,summary:t.summary};return t.agentExecutionContext&&(e.agentExecutionContext=t.agentExecutionContext),e}function v(t,e){return async(n,s)=>{let o=await t.run(h(n,t),s),r=x(t,o);return e||o.status==="failed"?{...r,...y(o)}:{...r,outputMessage:o.outputMessage}}}var w=Object.getOwnPropertyDescriptor,E=(t,e,n,s)=>{for(var o=s>1?void 0:s?w(e,n):e,r=t.length-1,u;r>=0;r--)(u=t[r])&&(o=u(o)||o);return o},f=class extends m{generate(){let t=this.getAgents();this.validateAgents(t);for(let r of t)r.generate();let e=d(t.flatMap(r=>r.getSchemas())),n=i(e),s=this.buildNodes(t),o=this.buildEdges(t);return{workspace:n,createGraph:()=>c(s,o,n,{entryNode:this.getEntryNode(t)})}}buildNodes(t){let e={};for(let[n,s]of t.entries())e[l(s,n)]=v(s,this.isTerminalAgent(t,n));return e}validateAgents(t){if(!t.length)throw new Error("Workflow requires at least one agent.")}};f=E([p("BaseWorkflow")],f);return{a:a,b:d,c:l,d:f}},"core/Accessor","core/accessorSupport/decorators")
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./CCC6LBMY.js";import{a as B,b as S}from"./34O57OGV.js";import a from"./UHICISBZ.js";import{a as g}from"./ONQ6JSBJ.js";import{Dc as h}from"./S627D4K7.js";import{a as e}from"./VXFQANGJ.js";export default $arcgis.t(([k,j,{a:m,d:b,e:w,f:F},{d:T}])=>{var q=i=>i.flatMap(t=>t.split(",")).map(t=>t.trim()).map(t=>t.split(/\s+/u)[0]?.replace(/^"|"$/gu,"")).filter(t=>!!t),R=async(i,t,n,a,d)=>{let s=n.map?.allLayers.find(o=>o.id===i.layerId),c=await n.whenLayerView(s),u=s.title??i.layerId,l;if(a){let o=await b(a,n);if("error"in o)return{tool:"getTopFeatures",layerName:u,summary:"Geometry lookup failed",details:{error:o.error}};if(!o.geometry)return{tool:"getTopFeatures",layerName:u,summary:"No features found for geometry filter",details:{error:`No features found matching: ${"where"in a?a.where:"unknown criteria"}`}};l=o.geometry}else d&&(l=n.extent.clone());let y=t.groupByFields&&t.groupByFields.length>0,f=s.objectIdField,p=i.outFields.includes("*")?["*"]:[...new Set([...i.outFields,f])];try{let o;if(y){let r=new k({where:i.where||"1=1",outFields:p,orderByFields:i.orderByFields,geometry:l,spatialRelationship:l?"intersects":void 0,distance:a?.distance,units:a?.units,topFilter:new j({topCount:t.topCount,groupByFields:t.groupByFields,orderByFields:t.orderByFields})});o=await s.queryTopFeatures(r)}else{let r=s.createQuery();r.where=S(s.definitionExpression,i.where||"1=1"),r.outFields=p.length?p:["*"],r.orderByFields=t.orderByFields,r.returnGeometry=!1,r.num=t.topCount,l&&(r.geometry=l,r.spatialRelationship="intersects"),a?.distance&&(r.distance=a.distance),a?.units&&(r.units=a.units),r.outSpatialReference=n.spatialReference;let v=[...new Set([...i.outFields,...q(t.orderByFields)])],N=B(c,v,d??!1);try{o=N?await c.queryFeatures(r):await s.queryFeatures(r)}catch(x){console.warn("Client-side query failed, falling back to server:",x),o=await s.queryFeatures(r)}}let C=o.features.map(r=>r.attributes[f]),{attributes:I}=T(s,o,n.timeZone);return{tool:"getTopFeatures",layerName:u,summary:`Top ${t.topCount} features extracted`,details:{topCount:t.topCount,attributes:I,objectIds:C,objectIdField:f,where:i.where,orderByFields:t.orderByFields,...y&&{groupByFields:t.groupByFields}}}}catch(o){return{tool:"getTopFeatures",layerName:u,summary:"Query failed",details:{error:o instanceof Error?o.message:String(o)}}}},D=async({targetLayer:i,topFilter:t,geometryFilter:n,useCurrentExtent:a},d)=>{let{mapView:s}=g(d,["mapView"]),c=F(n,d.state?.agentExecutionContext?.sharedResources),u=await R(i,t,s,c,a);return JSON.stringify(u,null,2)},E=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:m.optional().describe("The units for the distance buffer.")}),L=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:m.optional().describe("The units for the distance buffer.")}),U=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer containing the field from which to get a value."),where:e.string().describe("The SQL-92 where clause representing the feature from which to get an attribute value."),orderByFields:e.array(e.string().describe("The field(s) and order for which to sort the resulting features.")),outFields:e.array(e.string().describe('The fields to include in the output that will be presented to the user. This should include identifying information about the resulting features, like a name or id, along with the values desired in the output. If unsure, choose all fields ("*").').default("*"))}),geometryFilter:e.union([E,L,w]).optional().describe("Geometry filter for spatial queries. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location. Use 'point' for inline coordinates or 'layerId/where' for features from another layer."),topFilter:e.object({topCount:e.number().describe("Number of top features to return per group."),orderByFields:e.array(e.string().describe("Field(s) to rank by with ASC/DESC. Must be existing field names, not aggregate functions.")),groupByFields:e.array(e.string().describe("Field(s) to group results by. Returns top N per group."))}).required(),useCurrentExtent:e.boolean().optional().describe("Set to true ONLY when user explicitly asks about features 'in my view', 'on my map', 'I am looking at'. Default is false (queries entire layer).")}),Y=h(D,{name:"getTopFeatures",description:'Returns top N features ranked by an existing field value. Use for "highest", "lowest", "top N" questions where ranking is based on a field that already exists in the data (e.g., population, value, date, depth). orderByFields must be actual field names with ASC/DESC. Do NOT use aggregate functions like COUNT(), SUM(), AVG() - those require getStatistics.',schema:U});return Y},"rest/support/TopFeaturesQuery","rest/support/TopFilter",a,b)
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import b from"./KKCLHXHG.js";import{a as B,b as S}from"./LLY5A2E2.js";import a from"./VGLBH473.js";import{a as g}from"./A6LBMS7A.js";import{Dc as h}from"./M2U456J5.js";import{a as e}from"./5X23DDDZ.js";export default $arcgis.t(([k,j,{a:m,d:b,e:w,f:F},{d:T}])=>{var q=i=>i.flatMap(t=>t.split(",")).map(t=>t.trim()).map(t=>t.split(/\s+/u)[0]?.replace(/^"|"$/gu,"")).filter(t=>!!t),R=async(i,t,n,a,d)=>{let s=n.map?.allLayers.find(o=>o.id===i.layerId),c=await n.whenLayerView(s),u=s.title??i.layerId,l;if(a){let o=await b(a,n);if("error"in o)return{tool:"getTopFeatures",layerName:u,summary:"Geometry lookup failed",details:{error:o.error}};if(!o.geometry)return{tool:"getTopFeatures",layerName:u,summary:"No features found for geometry filter",details:{error:`No features found matching: ${"where"in a?a.where:"unknown criteria"}`}};l=o.geometry}else d&&(l=n.extent.clone());let y=t.groupByFields&&t.groupByFields.length>0,f=s.objectIdField,p=i.outFields.includes("*")?["*"]:[...new Set([...i.outFields,f])];try{let o;if(y){let r=new k({where:i.where||"1=1",outFields:p,orderByFields:i.orderByFields,geometry:l,spatialRelationship:l?"intersects":void 0,distance:a?.distance,units:a?.units,topFilter:new j({topCount:t.topCount,groupByFields:t.groupByFields,orderByFields:t.orderByFields})});o=await s.queryTopFeatures(r)}else{let r=s.createQuery();r.where=S(s.definitionExpression,i.where||"1=1"),r.outFields=p.length?p:["*"],r.orderByFields=t.orderByFields,r.returnGeometry=!1,r.num=t.topCount,l&&(r.geometry=l,r.spatialRelationship="intersects"),a?.distance&&(r.distance=a.distance),a?.units&&(r.units=a.units),r.outSpatialReference=n.spatialReference;let v=[...new Set([...i.outFields,...q(t.orderByFields)])],N=B(c,v,d??!1);try{o=N?await c.queryFeatures(r):await s.queryFeatures(r)}catch(x){console.warn("Client-side query failed, falling back to server:",x),o=await s.queryFeatures(r)}}let C=o.features.map(r=>r.attributes[f]),{attributes:I}=T(s,o,n.timeZone);return{tool:"getTopFeatures",layerName:u,summary:`Top ${t.topCount} features extracted`,details:{topCount:t.topCount,attributes:I,objectIds:C,objectIdField:f,where:i.where,orderByFields:t.orderByFields,...y&&{groupByFields:t.groupByFields}}}}catch(o){return{tool:"getTopFeatures",layerName:u,summary:"Query failed",details:{error:o instanceof Error?o.message:String(o)}}}},D=async({targetLayer:i,topFilter:t,geometryFilter:n,useCurrentExtent:a},d)=>{let{mapView:s}=g(d,["mapView"]),c=F(n,d.state?.agentExecutionContext?.sharedResources),u=await R(i,t,s,c,a);return JSON.stringify(u,null,2)},E=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:m.optional().describe("The units for the distance buffer.")}),L=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:m.optional().describe("The units for the distance buffer.")}),U=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer containing the field from which to get a value."),where:e.string().describe("The SQL-92 where clause representing the feature from which to get an attribute value."),orderByFields:e.array(e.string().describe("The field(s) and order for which to sort the resulting features.")),outFields:e.array(e.string().describe('The fields to include in the output that will be presented to the user. This should include identifying information about the resulting features, like a name or id, along with the values desired in the output. If unsure, choose all fields ("*").').default("*"))}),geometryFilter:e.union([E,L,w]).optional().describe("Geometry filter for spatial queries. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location. Use 'point' for inline coordinates or 'layerId/where' for features from another layer."),topFilter:e.object({topCount:e.number().describe("Number of top features to return per group."),orderByFields:e.array(e.string().describe("Field(s) to rank by with ASC/DESC. Must be existing field names, not aggregate functions.")),groupByFields:e.array(e.string().describe("Field(s) to group results by. Returns top N per group."))}).required(),useCurrentExtent:e.boolean().optional().describe("Set to true ONLY when user explicitly asks about features 'in my view', 'on my map', 'I am looking at'. Default is false (queries entire layer).")}),Y=h(D,{name:"getTopFeatures",description:'Returns top N features ranked by an existing field value. Use for "highest", "lowest", "top N" questions where ranking is based on a field that already exists in the data (e.g., population, value, date, depth). orderByFields must be actual field names with ASC/DESC. Do NOT use aggregate functions like COUNT(), SUM(), AVG() - those require getStatistics.',schema:U});return Y},"rest/support/TopFeaturesQuery","rest/support/TopFilter",a,b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import b from"./M3KKORBG.js";import a from"./KKCLHXHG.js";import"./A6LBMS7A.js";import"./M2U456J5.js";import"./5X23DDDZ.js";import"./CSE6BHOJ.js";import"./BVUCNXC5.js";export default $arcgis.t(([,a])=>{return a},a,b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import a from"./VK6CCPTG.js";import"./A6LBMS7A.js";import"./M2U456J5.js";import"./5X23DDDZ.js";import"./CSE6BHOJ.js";import"./BVUCNXC5.js";export default $arcgis.t(([a])=>{return a},a)
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./UZLQALHY.js";var e='---\nname: filter\ndescription: Changes feature emphasis on the map by including, excluding, highlighting, dimming, or clearing filtered features. Use when the user asks to visually filter feature-layer data.\nallowed-tools: findRelevantLayers findRelevantFields setFeatureEffect resetMap clearFilters\n---\n\n# Filter\n\n- Use `clearFilters` when the user asks only to remove feature filters or effects. Use `resetMap` only when the user asks to reset the broader map state.\n- Reuse a preceding query result from this run whenever it contains the layer ID and filtering criteria needed for the visual operation. Do not repeat layer or field discovery in that case.\n- A preceding query result may provide the layer ID, where clause, geometry filter, `useCurrentExtent`, object IDs, and count. Preserve and reuse those values rather than reconstructing them.\n- If no usable preceding query geometry exists and the task refers to an address, place, or location resolved by an earlier agent, call `listSharedResources` with `point` as the requested kind. If a resource description clearly matches the location, pass its exact ID as `geometryFilter.sharedResourceId` and use `where: "1=1"` unless the user requests an additional attribute filter. If no resource clearly matches a referential location such as "this location," state that the spatial anchor is unavailable and do not guess coordinates.\n- If no usable preceding query result exists, start with `findRelevantLayers`. Use the assigned task as the semantic query. If no relevant layers are returned, explain that no matching map layer was found and stop. Never invent a layer ID.\n- When discovery is required, call `findRelevantFields` with only relevant layer IDs before constructing a filter. Use only the exact field names and categorical values returned by `findRelevantFields`.\n- Leave `includeSummaryStatistics` false unless the filter criteria explicitly depend on a requested numeric summary.\n- Use real field names rather than aliases in SQL-92 where clauses. Use `1=1` when no attribute filter is requested.\n- For highlight, show, include, exclude, or other visual-filter requests with feature criteria, call `setFeatureEffect` using the same layer ID, where clause, geometry filter, and `useCurrentExtent` value determined by the preceding query or discovery steps.\n- If a preceding query returned object IDs for ranked, top-N, or otherwise selected records, pass those object IDs to `setFeatureEffect` instead of rebuilding the selection using only a where clause.\n- Prefer the default feature effects unless the user explicitly requests a particular visual treatment.\n- Set `useCurrentExtent` only when the user explicitly refers to the current view or visible map area.\n- When available, use the preceding query result for feature counts or attribute details in the final response.\n- Report the `setFeatureEffect` outcome faithfully. Do not claim that a map effect was applied when the tool failed or no matching layer or field was found.\n';export{e as default};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import"./BVUCNXC5.js";var e='---\nname: filter\ndescription: Changes feature emphasis on the map by including, excluding, highlighting, dimming, or clearing filtered features. Use when the user asks to visually filter feature-layer data.\nallowed-tools: findRelevantLayers findRelevantFields setFeatureEffect resetMap clearFilters\n---\n\n# Filter\n\n- Use `clearFilters` when the user asks only to remove feature filters or effects. Use `resetMap` only when the user asks to reset the broader map state.\n- Reuse a preceding query result from this run whenever it contains the layer ID and filtering criteria needed for the visual operation. Do not repeat layer or field discovery in that case.\n- A preceding query result may provide the layer ID, where clause, geometry filter, `useCurrentExtent`, object IDs, and count. Preserve and reuse those values rather than reconstructing them.\n- If no usable preceding query geometry exists and the task refers to an address, place, or location resolved by an earlier agent, call `listSharedResources` with `point` as the requested kind. If a resource description clearly matches the location, pass its exact ID as `geometryFilter.sharedResourceId` and use `where: "1=1"` unless the user requests an additional attribute filter. If no resource clearly matches a referential location such as "this location," state that the spatial anchor is unavailable and do not guess coordinates.\n- If no usable preceding query result exists, start with `findRelevantLayers`. Use the assigned task as the semantic query. If no relevant layers are returned, explain that no matching map layer was found and stop. Never invent a layer ID.\n- When discovery is required, call `findRelevantFields` with only relevant layer IDs before constructing a filter. Use only the exact field names and categorical values returned by `findRelevantFields`.\n- Leave `includeSummaryStatistics` false unless the filter criteria explicitly depend on a requested numeric summary.\n- Use real field names rather than aliases in SQL-92 where clauses. Use `1=1` when no attribute filter is requested.\n- For highlight, show, include, exclude, or other visual-filter requests with feature criteria, call `setFeatureEffect` using the same layer ID, where clause, geometry filter, and `useCurrentExtent` value determined by the preceding query or discovery steps.\n- If a preceding query returned object IDs for ranked, top-N, or otherwise selected records, pass those object IDs to `setFeatureEffect` instead of rebuilding the selection using only a where clause.\n- Prefer the default feature effects unless the user explicitly requests a particular visual treatment.\n- Set `useCurrentExtent` only when the user explicitly refers to the current view or visible map area.\n- When available, use the preceding query result for feature counts or attribute details in the final response.\n- Report the `setFeatureEffect` outcome faithfully. Do not claim that a map effect was applied when the tool failed or no matching layer or field was found.\n';export{e as default};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{b as T,c as q}from"./SNG3WODY.js";import{a as G}from"./M5B6X46F.js";import"./OALQBAZR.js";import"./4YOG5F3W.js";import d from"./SBNNJ5WA.js";import"./XNUWVZN7.js";import b from"./EGRRZTF6.js";import{a as R,b as D,e as W}from"./2WXXSZP5.js";import a from"./2LVYAXHG.js";import{e as C}from"./4OI4QEV7.js";import{v as A,z as P}from"./S5GFNIHC.js";import"./TLPZELG3.js";import"./V52GSTOC.js";import"./4VBOTWC3.js";import"./477I66FH.js";import{_ as E,ka as _}from"./ZJWR4W2S.js";import"./M2U456J5.js";import"./5X23DDDZ.js";import{Dd as c}from"./CSE6BHOJ.js";import"./BVUCNXC5.js";export default $arcgis.t(([$,V,{property:a,subclass:h},O,I,,,,,,,M,L])=>{var X=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,f=(t,e,r,s)=>{for(var o=s>1?void 0:s?Y(e,r):e,n=t.length-1,i;n>=0;n--)(i=t[n])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&X(e,r,o),o},p=class extends I{constructor(t){super(t)}static fromJSON(t){return new p({id:t.id,sourceAnchorId:t.source_anchor_id,sourceNodeId:t.source_node_id,targetAnchorId:t.target_anchor_id,targetNodeId:t.target_node_id})}};f([a()],p.prototype,"id",2);f([a()],p.prototype,"sourceAnchorId",2);f([a()],p.prototype,"sourceNodeId",2);f([a()],p.prototype,"targetAnchorId",2);f([a()],p.prototype,"targetNodeId",2);p=f([h("Edge")],p);var Z=Object.defineProperty,tt=Object.getOwnPropertyDescriptor,N=(t,e,r,s)=>{for(var o=s>1?void 0:s?tt(e,r):e,n=t.length-1,i;n>=0;n--)(i=t[n])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&Z(e,r,o),o},m=class extends I{constructor(t){super(t)}async load(){return await Promise.resolve(this)}compile(t){return{runtimeNode:this.createRuntimeNode(),edges:t.outgoingEdges.map(e=>({from:this.id,to:e.targetNodeId}))}}static fromJSON(t){throw new Error("BaseNode is abstract and cannot be instantiated directly.")}};N([a()],m.prototype,"id",2);N([a()],m.prototype,"label",2);N([a()],m.prototype,"type",2);m=N([h("BaseNode")],m);function z(t){let e=new Set(t.required),r=Object.fromEntries(Object.entries(t.properties).map(([s,o])=>{let n=B(o);return[s,e.has(s)?n:n.optional()]}));return c.object(r)}function B(t){let e;switch(t.type){case"array":e=c.array(t.items?B(t.items):c.unknown());break;case"boolean":e=c.boolean();break;case"number":e=c.number();break;case"object":e=z({properties:t.properties??{},required:t.required});break;case"string":e=t.enum?.length?c.enum(t.enum):c.string();break}return t.description?e.describe(t.description):e}var et=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,S=(t,e,r,s)=>{for(var o=s>1?void 0:s?ot(e,r):e,n=t.length-1,i;n>=0;n--)(i=t[n])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&et(e,r,o),o},rt=t=>t.replace(/_([a-z])/gu,(e,r)=>r.toUpperCase()),u=class extends I{constructor(t){super(t),this.type="arcgis-tool"}async createRuntimeTools(){if(!this.name)throw new Error("ArcgisTool name is required");return[await G(rt(this.name))]}static fromJSON(t){return new u({name:t.name,requireApproval:t.require_approval})}};S([a()],u.prototype,"name",2);S([a()],u.prototype,"requireApproval",2);S([a()],u.prototype,"type",2);u=S([h("ArcgisTool")],u);var st=Object.defineProperty,nt=Object.getOwnPropertyDescriptor,F=t=>{throw TypeError(t)},w=(t,e,r,s)=>{for(var o=s>1?void 0:s?nt(e,r):e,n=t.length-1,i;n>=0;n--)(i=t[n])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&st(e,r,o),o},it=(t,e,r)=>e.has(t)||F("Cannot "+r),at=(t,e,r)=>e.has(t)?F("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),ct=(t,e,r)=>(it(t,e,"access private method"),r),v,U,d=class extends m{constructor(t){super(t),at(this,v),this.type="agent-node"}createRuntimeNode(){let t;return async(e,r)=>{t??=ct(this,v,U).call(this);let s=await(await t).run(e,r),o=this.outputSchema?.safeParse(s);if(o&&!o.success)throw o.error;let n=o?.data,i=n??s.outputMessage;return{agentExecutionContext:s.agentExecutionContext,...n?{}:{outputMessage:s.outputMessage},status:s.status,summary:s.summary,nodes:{[this.id]:{output:i}}}}}compile(t){let e=t.outgoingEdges[0]?.targetNodeId;return{runtimeNode:this.createRuntimeNode(),edges:[{from:this.id,decide:r=>r.status==="failed"?void 0:e}],schemas:[c.object({output:this.outputSchema??c.string()})]}}static fromJSON(t){let e=new d({id:t.id,label:t.label,prompt:t.prompt?.content,type:"agent-node",modelTier:t.llm_model?.model_tier});return t.structured_output&&(e.outputSchema=z(t.structured_output)),e.tools=t.tools?.filter(r=>r.type==="arcgis_tool").map(r=>u.fromJSON(r)),e}};v=new WeakSet;U=async function(){let t=this.prompt;if(!t?.trim())throw new Error(`WebAgent agent node "${this.id}" requires a prompt.`);let e=[];if(this.tools)for(let r of this.tools){let s=await r.createRuntimeTools();e.push(...s)}return new L({name:this.id,outputSchema:this.outputSchema,modelTier:this.modelTier,prompt:t,tools:e})};w([a()],d.prototype,"type",2);w([a()],d.prototype,"prompt",2);w([a()],d.prototype,"outputSchema",2);w([a()],d.prototype,"tools",2);w([a()],d.prototype,"modelTier",2);d=w([h("AgentNode")],d);var pt=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,k=(t,e,r,s)=>{for(var o=s>1?void 0:s?dt(e,r):e,n=t.length-1,i;n>=0;n--)(i=t[n])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&pt(e,r,o),o},l=class extends m{constructor(t){super(t),this.type="end-message-node"}createRuntimeNode(){return async t=>{let e=await E.fromTemplate(this.message,{templateFormat:"mustache"}).format(t);return{outputMessage:e,status:"success",summary:e}}}compile(t){return{runtimeNode:this.createRuntimeNode(),edges:[]}}static fromJSON(t){let e=new l({id:t.id,label:t.label,type:"end-message-node"});return e.message=t.message,e}};k([a()],l.prototype,"type",2);k([a()],l.prototype,"message",2);l=k([h("EndMessageNode")],l);var mt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,H=(t,e,r,s)=>{for(var o=s>1?void 0:s?ut(e,r):e,n=t.length-1,i;n>=0;n--)(i=t[n])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&mt(e,r,o),o},y=class extends m{constructor(t){super(t),this.type="start-node"}createRuntimeNode(){return t=>({question:t.agentExecutionContext.userRequest})}static fromJSON(t){return new y({id:t.id,label:t.label,type:"start-node"})}};H([a()],y.prototype,"type",2);y=H([h("StartNode")],y);function ht(t){switch(t.type){case"agent_node":return d.fromJSON(t);case"end_message_node":return l.fromJSON(t);case"start_node":return y.fromJSON(t);default:throw new Error(`WebAgent node "${t.id}" uses unsupported type "${t.type}".`)}}function lt(t={}){let e=Object.keys(t);if(R(e),e.includes("nodes"))throw new Error("node state cannot define reserved field: nodes.");let r=D(t);return _.Root({...r,nodes:_({reducer:(s,o)=>({...s,...o}),default:()=>({})}),...C()})}function K(t){let e=new Set;for(let s of t)for(let o of Object.keys(s.shape??{}))o!=="nodes"&&e.add(o);let r=Object.fromEntries([...e].map(s=>[s,void 0]));return lt(r)}var j=class t{constructor(e,r,s){this.sourceJSON=e,this.edges=r,this.nodes=s,this._loaded=!1}static fromJSON(e){return new t(e,e.graph.edges.map(r=>p.fromJSON(r)),e.graph.nodes.map(r=>ht(r)))}async load(){return this._loadPromise??=Promise.all(this.nodes.map(async e=>await e.load())).then(()=>{this._loaded=!0}),await this._loadPromise,this}getSchemas(){let e=Object.fromEntries(this._getNodeCompilations().flatMap((r,s)=>{let o=this.nodes[s];return r.schemas?.map(n=>[o.id,n])??[]}));return[c.object({loopCounts:c.record(c.string(),c.number()).optional(),nodes:c.object(e).partial().optional(),question:c.string().optional()})]}generate(){this._assertLoaded(),this._nodeCompilations=void 0;let e=this._getNodeCompilations(),r=K(this.getSchemas()),s=this.nodes.find(i=>i.type==="start-node")?.id,o={},n=[];for(let[i,Q]of this.nodes.entries()){let b=e[i];b&&(b.runtimeNode&&(o[Q.id]=b.runtimeNode),n.push(...b.edges))}return{createGraph:()=>W(o,n,r,{entryNode:s}),workspace:r}}_assertLoaded(){if(!this._loaded)throw new Error("AgenticWorkflowRuntime must be loaded before it can generate a graph.")}_getNodeCompilations(){return this._assertLoaded(),this._nodeCompilations??=this.nodes.map(e=>e.compile({outgoingEdges:this.edges.filter(r=>r.sourceNodeId===e.id)}))}},gt=Object.defineProperty,ft=Object.getOwnPropertyDescriptor,x=(t,e,r,s)=>{for(var o=s>1?void 0:s?ft(e,r):e,n=t.length-1,i;n>=0;n--)(i=t[n])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&gt(e,r,o),o},wt=()=>{throw new Error("WebAgent must be loaded before it can run.")},g=class extends M{constructor(t){super(t)}async load(){if(this.portalItem){try{await this.portalItem.load()}catch(r){throw new O("web-agent:load-portal-item","Failed to load portal item",{error:r})}let e=await this.portalItem.fetchData();if(this.sourceJSON=e,!this.portalItem.title)throw new O("web-agent:missing-title","The portal item is missing a title")}if(!this.sourceJSON)throw new O("web-agent:missing-source-json","The source JSON is missing");if(!this.sourceJSON.description)throw new O("web-agent:missing-description","The source JSON is missing a description");let t=j.fromJSON(this.sourceJSON);return await t.load(),this._runtime=t,this.description=this.sourceJSON.description,this.name=this.portalItem?.title??`web-agent-${Date.now()}`,this.generate(),this}getSchemas(){return this._runtime?.getSchemas()??[]}generate(){if(!this._runtime){this._set("workspace",K([])),this._set("createGraph",wt);return}let{createGraph:t,workspace:e}=this._runtime.generate();this._set("workspace",e),this._set("createGraph",t)}};x([a({type:$})],g.prototype,"portalItem",2);x([a()],g.prototype,"sourceJSON",2);g=x([h("WebAgent")],g);var J=class extends A{static{this.properties={agent:0,context:0,itemId:1,workflow:0}}#t;async getContext(){return T(this.context)?await this.context():this.context}async load(){let e;if(this.itemId){let r=V.getDefault();e=new g({portalItem:new $({id:this.itemId,portal:r})})}else this.workflow&&(e=new g({sourceJSON:this.workflow}));if(e&&(await e.load(),this.agent=e.registration),!this.agent)throw new Error("Failed to initialize the assistant agent because the agent registration is missing.");this.#t=q(this)}disconnectedCallback(){this.#t?.unregister(this.agent.id),super.disconnectedCallback()}};P("arcgis-assistant-agent",J);return J},"portal/PortalItem","portal/Portal","core/accessorSupport/decorators","core/Error","core/Accessor","identity/IdentityManager","request","config","core/reactiveUtils","layers/FeatureLayer",a,b,d)
@@ -1,5 +1,5 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./CCC6LBMY.js";import{a as x,b as O}from"./34O57OGV.js";import a from"./UHICISBZ.js";import{a as L}from"./ONQ6JSBJ.js";import{Dc as T}from"./S627D4K7.js";import{a as e}from"./VXFQANGJ.js";export default $arcgis.t(([{a:p,b:g,c:b,d:v,e:R,f:j},{d:N}])=>{var w=25,k=i=>i.flatMap(r=>r.split(",")).map(r=>r.trim()).map(r=>r.split(/\s+/u)[0]?.replace(/^"|"$/gu,"")).filter(r=>!!r),E=async(i,r,t,l)=>{let s=r.map?.allLayers.find(u=>u.id===i.layerId),d=await r.whenLayerView(s),f=s.title??i.layerId,h;if(t){let u=await v(t,r);if("error"in u){let o={error:u.error};if(b(t)){let c=r.map?.allLayers.find(m=>m.id===t.layerId);o.geometryLayerName=c?.title??c?.id,o.geometryLayerId=t.layerId,o.geometryWhere=t.where}else g(t)&&(o.point=t.point);return{tool:"queryFeatures",layerName:f,summary:"Geometry lookup failed",details:o}}if(!u.geometry){let o={};if(b(t)){let c=r.map?.allLayers.find(m=>m.id===t.layerId);o.error=`No features found matching: ${t.where}`,o.geometryLayerName=c?.title??c?.id,o.geometryLayerId=t.layerId,o.geometryWhere=t.where}else g(t)&&(o.error="Failed to create point geometry",o.point=t.point);return{tool:"queryFeatures",layerName:f,summary:"No features found for geometry filter",details:o}}h=u.geometry}else l&&(h=r.extent.clone());let C=[...new Set([...i.outFields,...k(i.orderByFields)])],F=x(d,C,l??!1),I=s.objectIdField,a=s.createQuery();a.where=O(s.definitionExpression,i.where||"1=1"),a.outFields=i.outFields.includes("*")?["*"]:[...new Set([...i.outFields,I])],a.orderByFields=i.orderByFields,h&&(a.geometry=h,a.spatialRelationship="intersects"),t?.distance&&(a.distance=t.distance),t?.units&&(a.units=t.units),a.outSpatialReference=r.spatialReference;let n,y;try{n=F?await d.queryFeatureCount(a):await s.queryFeatureCount(a),n>0&&n<=w&&(y=F?await d.queryFeatures(a):await s.queryFeatures(a))}catch(u){console.warn("Client-side query failed, falling back to server:",u),n=await s.queryFeatureCount(a),n>0&&n<=w&&(y=await s.queryFeatures(a))}let{objectIds:q,attributes:S}=y?N(s,y,r.timeZone):{objectIds:void 0,attributes:void 0};return{tool:"queryFeatures",layerName:f,summary:`${n} features found`,details:{totalCount:n,where:i.where,orderByFields:i.orderByFields,outFields:i.outFields,...q&&{objectIds:q,objectIdField:I},...S&&{attributes:S},...n>w&&{note:`${n} features found.`}}}};async function W({targetLayer:i,geometryFilter:r,useCurrentExtent:t},l){let{mapView:s}=L(l,["mapView"]),d=j(r,l.state?.agentExecutionContext?.sharedResources),f=await E(i,s,d,t);return JSON.stringify(f,null,2)}var B=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:p.optional().describe("The units for the distance buffer.")}),U=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:p.optional().describe("The units for the distance buffer.")}),D=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer containing the field from which to get a value."),where:e.string().describe("SQL-92 where clause. IMPORTANT: When using geometryFilter.point or geometryFilter.sharedResourceId for point-in-polygon queries, set this to '1=1' to return all features that intersect the point. Only add attribute filters if the user specifically requests them in addition to the spatial query."),orderByFields:e.array(e.string().describe("The field(s) and order for which to sort the resulting features.")),outFields:e.array(e.string().describe('The fields to include in the output that will be presented to the user. This should include identifying information about the resulting features, like a name or id, along with the values desired in the output. If unsure, choose all fields ("*").').default("*"))}),geometryFilter:e.union([B,U,R]).optional().describe("Geometry filter for spatial queries. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location. Use 'point' for inline coordinates or 'layerId/where' for features from another layer."),useCurrentExtent:e.boolean().optional().describe("Set to true ONLY when user explicitly asks about features 'in my view', 'on my map', 'I am looking at', OR when the user refers back to features previously identified using the current extent (e.g. 'these', 'those', 'them', 'the same ones'). Default is false (queries entire layer).")}),H=T(W,{name:"queryFeatures",description:`Queries features from a layer. Returns the total count of matching features, plus individual feature attributes if \u226425 features match.
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import b from"./KKCLHXHG.js";import{a as x,b as O}from"./LLY5A2E2.js";import a from"./VGLBH473.js";import{a as L}from"./A6LBMS7A.js";import{Dc as T}from"./M2U456J5.js";import{a as e}from"./5X23DDDZ.js";export default $arcgis.t(([{a:p,b:g,c:b,d:v,e:R,f:j},{d:N}])=>{var w=25,k=i=>i.flatMap(r=>r.split(",")).map(r=>r.trim()).map(r=>r.split(/\s+/u)[0]?.replace(/^"|"$/gu,"")).filter(r=>!!r),E=async(i,r,t,l)=>{let s=r.map?.allLayers.find(u=>u.id===i.layerId),d=await r.whenLayerView(s),f=s.title??i.layerId,h;if(t){let u=await v(t,r);if("error"in u){let o={error:u.error};if(b(t)){let c=r.map?.allLayers.find(m=>m.id===t.layerId);o.geometryLayerName=c?.title??c?.id,o.geometryLayerId=t.layerId,o.geometryWhere=t.where}else g(t)&&(o.point=t.point);return{tool:"queryFeatures",layerName:f,summary:"Geometry lookup failed",details:o}}if(!u.geometry){let o={};if(b(t)){let c=r.map?.allLayers.find(m=>m.id===t.layerId);o.error=`No features found matching: ${t.where}`,o.geometryLayerName=c?.title??c?.id,o.geometryLayerId=t.layerId,o.geometryWhere=t.where}else g(t)&&(o.error="Failed to create point geometry",o.point=t.point);return{tool:"queryFeatures",layerName:f,summary:"No features found for geometry filter",details:o}}h=u.geometry}else l&&(h=r.extent.clone());let C=[...new Set([...i.outFields,...k(i.orderByFields)])],F=x(d,C,l??!1),I=s.objectIdField,a=s.createQuery();a.where=O(s.definitionExpression,i.where||"1=1"),a.outFields=i.outFields.includes("*")?["*"]:[...new Set([...i.outFields,I])],a.orderByFields=i.orderByFields,h&&(a.geometry=h,a.spatialRelationship="intersects"),t?.distance&&(a.distance=t.distance),t?.units&&(a.units=t.units),a.outSpatialReference=r.spatialReference;let n,y;try{n=F?await d.queryFeatureCount(a):await s.queryFeatureCount(a),n>0&&n<=w&&(y=F?await d.queryFeatures(a):await s.queryFeatures(a))}catch(u){console.warn("Client-side query failed, falling back to server:",u),n=await s.queryFeatureCount(a),n>0&&n<=w&&(y=await s.queryFeatures(a))}let{objectIds:q,attributes:S}=y?N(s,y,r.timeZone):{objectIds:void 0,attributes:void 0};return{tool:"queryFeatures",layerName:f,summary:`${n} features found`,details:{totalCount:n,where:i.where,orderByFields:i.orderByFields,outFields:i.outFields,...q&&{objectIds:q,objectIdField:I},...S&&{attributes:S},...n>w&&{note:`${n} features found.`}}}};async function W({targetLayer:i,geometryFilter:r,useCurrentExtent:t},l){let{mapView:s}=L(l,["mapView"]),d=j(r,l.state?.agentExecutionContext?.sharedResources),f=await E(i,s,d,t);return JSON.stringify(f,null,2)}var B=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:p.optional().describe("The units for the distance buffer.")}),U=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:p.optional().describe("The units for the distance buffer.")}),D=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer containing the field from which to get a value."),where:e.string().describe("SQL-92 where clause. IMPORTANT: When using geometryFilter.point or geometryFilter.sharedResourceId for point-in-polygon queries, set this to '1=1' to return all features that intersect the point. Only add attribute filters if the user specifically requests them in addition to the spatial query."),orderByFields:e.array(e.string().describe("The field(s) and order for which to sort the resulting features.")),outFields:e.array(e.string().describe('The fields to include in the output that will be presented to the user. This should include identifying information about the resulting features, like a name or id, along with the values desired in the output. If unsure, choose all fields ("*").').default("*"))}),geometryFilter:e.union([B,U,R]).optional().describe("Geometry filter for spatial queries. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location. Use 'point' for inline coordinates or 'layerId/where' for features from another layer."),useCurrentExtent:e.boolean().optional().describe("Set to true ONLY when user explicitly asks about features 'in my view', 'on my map', 'I am looking at', OR when the user refers back to features previously identified using the current extent (e.g. 'these', 'those', 'them', 'the same ones'). Default is false (queries entire layer).")}),H=T(W,{name:"queryFeatures",description:`Queries features from a layer. Returns the total count of matching features, plus individual feature attributes if \u226425 features match.
3
3
 
4
4
  USE THIS TOOL FOR:
5
5
  - "Show / display / list features where..." \u2014 finding and listing features
@@ -1,3 +1,3 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./UZLQALHY.js";var o=`(function(){"use strict";const h=(a,r)=>{if(a.length!==r.length)throw new Error("Vectors must be the same length");let c=0,t=0,e=0;for(let n=0;n<a.length;++n){const s=a[n],l=r[n];c+=s*l,t+=s*s,e+=l*l}const i=Math.sqrt(t*e);if(i===0)return 0;const m=c/i;return Math.max(-1,Math.min(1,m))},f=(a,r,c=.6)=>{const t=[],e=[...a];for(;t.length<r&&e.length>0;){let i=-1,m=-1/0;for(let n=0;n<e.length;n++){const s=e[n].score,l=t.length===0?0:Math.max(...t.map(o=>h(e[n].vector,o.vector))),d=c*s-(1-c)*l;d>m&&(m=d,i=n)}t.push(e[i]),e.splice(i,1)}return t.map(({name:i,score:m})=>({name:i,score:m}))};let p=[];const u=new Map,v=12,y=10,M=a=>{p=a.layers.map(r=>({id:r.id,vector:r.vector}))},E=a=>{u.clear();for(const r of a.layers){const c=r.fields.map(t=>({name:t.name,vector:t.vector}));u.set(r.id,c)}};globalThis.addEventListener("message",a=>{(async()=>{const{type:r,webmapEmbeddings:c,layerIdForFieldsSearch:t=[],requestId:e,precomputedEmbedding:i,minScore:m=0,topResults:n=v}=a.data;switch(r){case"generateEmbeddings":{c&&(M(c),E(c)),globalThis.postMessage("completed");break}case"layerSearch":{if(p.length>0)try{const s=p.map(o=>({id:o.id,vector:o.vector,score:h(i,o.vector)})),d=f(s.map(o=>({name:o.id,vector:o.vector,score:o.score})),y).map(({name:o,score:b})=>({id:o,score:b}));globalThis.postMessage({requestId:e,results:d})}catch(s){globalThis.postMessage({requestId:e,results:[],error:s instanceof Error?s.message:"Calculation error"})}else globalThis.postMessage({requestId:e,results:[],error:"Layer embeddings not initialized"});break}case"fieldSearch":{if(t.length>0)try{const s=t.map(l=>{const d=u.get(l);if(!d)return{layerId:l,results:[]};const o=d.map(g=>({name:g.name,vector:g.vector,score:h(i,g.vector)})).filter(({score:g})=>g>=m),b=f(o,n);return{layerId:l,results:b}});globalThis.postMessage({requestId:e,results:s})}catch(s){globalThis.postMessage({requestId:e,results:[],error:s instanceof Error?s.message:"Field search calculation error"})}break}default:console.warn("Unknown message type:",r)}})()})})();
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import"./BVUCNXC5.js";var o=`(function(){"use strict";const h=(a,r)=>{if(a.length!==r.length)throw new Error("Vectors must be the same length");let c=0,t=0,e=0;for(let n=0;n<a.length;++n){const s=a[n],l=r[n];c+=s*l,t+=s*s,e+=l*l}const i=Math.sqrt(t*e);if(i===0)return 0;const m=c/i;return Math.max(-1,Math.min(1,m))},f=(a,r,c=.6)=>{const t=[],e=[...a];for(;t.length<r&&e.length>0;){let i=-1,m=-1/0;for(let n=0;n<e.length;n++){const s=e[n].score,l=t.length===0?0:Math.max(...t.map(o=>h(e[n].vector,o.vector))),d=c*s-(1-c)*l;d>m&&(m=d,i=n)}t.push(e[i]),e.splice(i,1)}return t.map(({name:i,score:m})=>({name:i,score:m}))};let p=[];const u=new Map,v=12,y=10,M=a=>{p=a.layers.map(r=>({id:r.id,vector:r.vector}))},E=a=>{u.clear();for(const r of a.layers){const c=r.fields.map(t=>({name:t.name,vector:t.vector}));u.set(r.id,c)}};globalThis.addEventListener("message",a=>{(async()=>{const{type:r,webmapEmbeddings:c,layerIdForFieldsSearch:t=[],requestId:e,precomputedEmbedding:i,minScore:m=0,topResults:n=v}=a.data;switch(r){case"generateEmbeddings":{c&&(M(c),E(c)),globalThis.postMessage("completed");break}case"layerSearch":{if(p.length>0)try{const s=p.map(o=>({id:o.id,vector:o.vector,score:h(i,o.vector)})),d=f(s.map(o=>({name:o.id,vector:o.vector,score:o.score})),y).map(({name:o,score:b})=>({id:o,score:b}));globalThis.postMessage({requestId:e,results:d})}catch(s){globalThis.postMessage({requestId:e,results:[],error:s instanceof Error?s.message:"Calculation error"})}else globalThis.postMessage({requestId:e,results:[],error:"Layer embeddings not initialized"});break}case"fieldSearch":{if(t.length>0)try{const s=t.map(l=>{const d=u.get(l);if(!d)return{layerId:l,results:[]};const o=d.map(g=>({name:g.name,vector:g.vector,score:h(i,g.vector)})).filter(({score:g})=>g>=m),b=f(o,n);return{layerId:l,results:b}});globalThis.postMessage({requestId:e,results:s})}catch(s){globalThis.postMessage({requestId:e,results:[],error:s instanceof Error?s.message:"Field search calculation error"})}break}default:console.warn("Unknown message type:",r)}})()})})();
3
3
  `,r=typeof self<"u"&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",o],{type:"text/javascript;charset=utf-8"});function a(t){let e;try{if(e=r&&(self.URL||self.webkitURL).createObjectURL(r),!e)throw"";let s=new Worker(e,{name:t?.name});return s.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(e)}),s}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(o),{name:t?.name})}}export{a as default};
@@ -1,5 +1,5 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{$ as In,$a as Ol,$b as er,A as re,Aa as gl,Ab as Gl,Ac as Ls,B as Hc,Ba as pa,Bb as Wl,Bc as ku,C as Gc,Ca as _l,Cb as Kl,Cc as Cu,D as Wc,Db as zl,E as Kc,Ea as zt,Eb as ql,F as zc,Fa as yl,Fb as be,G as Cn,Ga as Es,Gb as Tr,H as qc,Ha as bl,Hb as Ns,I as ee,Ia as qt,Ib as Zt,J as It,Ja as vl,Jb as Jl,K as Jc,Ka as wl,Kb as Yl,L as Yc,La as Gr,Lb as Ms,M as Xc,Ma as Sl,Mb as Xl,N as Zc,Na as kl,Nb as Zl,O as Ge,Oa as Cl,Ob as Ql,P as En,Pa as El,Q as Qc,Qa as Tl,Qb as Qt,R as Cs,Ra as Le,Rb as eu,S as el,Sa as fa,Sb as Kr,Ta as oe,Tb as tu,U as wr,Ua as xl,V as Wt,Va as Ts,Vb as ru,W as Kt,Wa as De,Wb as ve,X as Tn,Xa as At,Xb as nu,Y as tl,Ya as he,Yb as ma,Z as rl,Za as Il,Zb as su,_ as xn,_a as Al,_b as H,a as A,aa as nl,ab as Pn,ac as iu,b as xc,ba as sl,bb as Ot,bc as au,c as Ur,ca as xe,cc as et,da as An,db as Nl,dc as Ps,ea as il,eb as Jt,ec as Fe,f as ha,fa as al,fb as Ml,fc as ou,ga as Ze,gb as Pl,gc as cu,h as Ic,ha as Qe,hb as Wr,hc as we,i as ws,ia as Sr,ib as xs,ic as Rs,j as Ss,ja as ol,jb as Cr,jc as lu,k as Ac,ka as cl,kb as Rl,kc as uu,l as Oc,la as ll,lb as Ll,lc as hu,m as ks,ma as me,mb as Dl,mc as pu,n as Nc,na as ul,nb as Is,nc as fu,o as Mc,oa as hl,ob as Fl,oc as da,p as Pc,pa as pl,pb as Yt,pc as mu,q as Rc,qa as fl,qb as jl,qc as du,r as Lc,ra as kr,rb as $l,rc as gu,s as Dc,sa as ml,sb as Bl,sc as _u,t as Fc,ta as q,tb as As,tc as yu,u as jc,ua as Hr,ub as Os,uc as bu,v as $c,va as On,vb as Vl,vc as vu,w as Bc,wa as de,wb as Xt,wc as wu,x as Xe,xa as dl,xb as Er,xc as Su,y as Vc,ya as Nn,yb as Ul,z as Uc,za as Mn,zb as Hl}from"./S627D4K7.js";import{Dd as tr}from"./MWYBF3F3.js";function Eu(e,t){if(e!=null){if(typeof e!="number"||Number.isNaN(e)||e<=0)throw new Error(`${t} must be greater than 0`);return e}}function rr(e){if(e==null)return;let t=typeof e=="number"?{runTimeout:e}:e,r=t.refreshOn??"auto";if(r!=="auto"&&r!=="heartbeat")throw new Error('refreshOn must be "auto" or "heartbeat"');let n=Eu(t.runTimeout,"runTimeout"),s=Eu(t.idleTimeout,"idleTimeout");if(!(n===void 0&&s===void 0))return{runTimeout:n,idleTimeout:s,refreshOn:r}}var Z="__start__",Q="__end__",dt="__input__";var nr="__error__",Ln="__error_source_node__",Ds="__pregel_ns_writes";function Tu(){let e=typeof process<"u"?process.env?.LANGGRAPH_DELTA_MAX_SUPERSTEPS_SINCE_SNAPSHOT:void 0;if(e!==void 0&&e!==""){let t=Number.parseInt(e,10);if(Number.isFinite(t)&&t>0)return t}return 5e3}var Se="__pregel_send",gt="__pregel_call",Ie="__pregel_read",We="__pregel_checkpointer",Ir="__pregel_resuming",zr="__pregel_task_id",Dn="__pregel_stream",Ym="__pregel_resume_value",Ar="__pregel_resume_map",Ae="__pregel_scratchpad",sr="__pregel_previous",Xm="__pregel_durability",ir="checkpoint_id",Ue="checkpoint_ns",xu="__pregel_node_finished",Fn="__pregel_node_error",ke="checkpoint_map",Fs="__pregel_replay_state",Iu="__pregel_abort_signals",Y="__interrupt__",Oe="__resume__",jn="__no_writes__",ar="__return__",or="__previous__",se="langsmith:hidden";var _a="__self__",_t="__pregel_tasks",Ne="__pregel_push",js="__pregel_pull",Me="00000000-0000-0000-0000-000000000000",Au=[se,dt,Y,Oe,nr,Ln,jn,Se,Ie,We,Xm,Dn,Ir,zr,gt,Ym,Ae,sr,ke,Ue,ir,Fs],ga=Symbol.for("langgraph.command"),Ou=class{[ga];constructor(e){this[ga]=e}};function $s(e){let t=e;return t!=null&&typeof t.node=="string"&&t.args!==void 0}var xr=class{lg_name="Send";node;args;timeout;constructor(e,t,r){this.node=e,this.args=Rn(t),this.timeout=rr(r?.timeout)}toJSON(){return{lg_name:this.lg_name,node:this.node,args:this.args,timeout:this.timeout}}};function ce(e){return e instanceof xr}var mt="__overwrite__",Zm=class{lg_name="Overwrite";[mt];constructor(e){this[mt]=e}get value(){return this[mt]}toJSON(){return{[mt]:this[mt]}}static isInstance(e){return!e||typeof e!="object"?!1:"__overwrite__"in e||"lg_name"in e&&e.lg_name==="Overwrite"}};function tt(e){if(typeof e=="object"&&e!==null){if("__overwrite__"in e)return[!0,e[mt]];let t=e;if(t.type==="__overwrite__"&&"value"in t)return[!0,t.value]}return[!1,void 0]}function Or(e){return tt(e)[0]}function Nr(e){return!e||typeof e!="object"||!("__interrupt__"in e)?!1:Array.isArray(e[Y])}var je=class extends Ou{lg_name="Command";lc_direct_tool_output=!0;graph;update;resume;goto=[];static PARENT="__parent__";constructor(e){super(e),this.resume=e.resume,this.graph=e.graph,this.update=e.update,e.goto&&(this.goto=Array.isArray(e.goto)?Rn(e.goto):[Rn(e.goto)])}_updateAsTuples(){return this.update&&typeof this.update=="object"&&!Array.isArray(this.update)?Object.entries(this.update):Array.isArray(this.update)&&this.update.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]=="string")?this.update:[["__root__",this.update]]}toJSON(){let e;return typeof this.goto=="string"?e=this.goto:ce(this.goto)?e=this.goto.toJSON():e=this.goto?.map(t=>typeof t=="string"?t:t.toJSON()),{lg_name:this.lg_name,update:this.update,resume:this.resume,goto:e}}};function pe(e){return typeof e!="object"||e==null?!1:"lg_name"in e&&e.lg_name==="Command"}function Qm(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Rn(e,t=new Map){if(e!=null&&typeof e=="object"){if(t.has(e))return t.get(e);let r;if(Array.isArray(e))r=[],t.set(e,r),e.forEach((n,s)=>{r[s]=Rn(n,t)});else if(e instanceof je||e instanceof xr||!Qm(e))r=e,t.set(e,r);else if(pe(e))r=new je(e),t.set(e,r);else if($s(e))r=new xr(e.node,e.args,e.timeout!==void 0?{timeout:e.timeout}:void 0),t.set(e,r);else if("lc_serializable"in e&&e.lc_serializable)r=e,t.set(e,r);else{r={},t.set(e,r);for(let[n,s]of Object.entries(e))r[n]=Rn(s,t)}return r}return e}var Ke=class extends Error{lc_error_code;constructor(e,t){let r=e??"";t?.lc_error_code&&(r=`${r}
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{$ as In,$a as Ol,$b as er,A as re,Aa as gl,Ab as Gl,Ac as Ls,B as Hc,Ba as pa,Bb as Wl,Bc as ku,C as Gc,Ca as _l,Cb as Kl,Cc as Cu,D as Wc,Db as zl,E as Kc,Ea as zt,Eb as ql,F as zc,Fa as yl,Fb as be,G as Cn,Ga as Es,Gb as Tr,H as qc,Ha as bl,Hb as Ns,I as ee,Ia as qt,Ib as Zt,J as It,Ja as vl,Jb as Jl,K as Jc,Ka as wl,Kb as Yl,L as Yc,La as Gr,Lb as Ms,M as Xc,Ma as Sl,Mb as Xl,N as Zc,Na as kl,Nb as Zl,O as Ge,Oa as Cl,Ob as Ql,P as En,Pa as El,Q as Qc,Qa as Tl,Qb as Qt,R as Cs,Ra as Le,Rb as eu,S as el,Sa as fa,Sb as Kr,Ta as oe,Tb as tu,U as wr,Ua as xl,V as Wt,Va as Ts,Vb as ru,W as Kt,Wa as De,Wb as ve,X as Tn,Xa as At,Xb as nu,Y as tl,Ya as he,Yb as ma,Z as rl,Za as Il,Zb as su,_ as xn,_a as Al,_b as H,a as A,aa as nl,ab as Pn,ac as iu,b as xc,ba as sl,bb as Ot,bc as au,c as Ur,ca as xe,cc as et,da as An,db as Nl,dc as Ps,ea as il,eb as Jt,ec as Fe,f as ha,fa as al,fb as Ml,fc as ou,ga as Ze,gb as Pl,gc as cu,h as Ic,ha as Qe,hb as Wr,hc as we,i as ws,ia as Sr,ib as xs,ic as Rs,j as Ss,ja as ol,jb as Cr,jc as lu,k as Ac,ka as cl,kb as Rl,kc as uu,l as Oc,la as ll,lb as Ll,lc as hu,m as ks,ma as me,mb as Dl,mc as pu,n as Nc,na as ul,nb as Is,nc as fu,o as Mc,oa as hl,ob as Fl,oc as da,p as Pc,pa as pl,pb as Yt,pc as mu,q as Rc,qa as fl,qb as jl,qc as du,r as Lc,ra as kr,rb as $l,rc as gu,s as Dc,sa as ml,sb as Bl,sc as _u,t as Fc,ta as q,tb as As,tc as yu,u as jc,ua as Hr,ub as Os,uc as bu,v as $c,va as On,vb as Vl,vc as vu,w as Bc,wa as de,wb as Xt,wc as wu,x as Xe,xa as dl,xb as Er,xc as Su,y as Vc,ya as Nn,yb as Ul,z as Uc,za as Mn,zb as Hl}from"./M2U456J5.js";import{Dd as tr}from"./CSE6BHOJ.js";function Eu(e,t){if(e!=null){if(typeof e!="number"||Number.isNaN(e)||e<=0)throw new Error(`${t} must be greater than 0`);return e}}function rr(e){if(e==null)return;let t=typeof e=="number"?{runTimeout:e}:e,r=t.refreshOn??"auto";if(r!=="auto"&&r!=="heartbeat")throw new Error('refreshOn must be "auto" or "heartbeat"');let n=Eu(t.runTimeout,"runTimeout"),s=Eu(t.idleTimeout,"idleTimeout");if(!(n===void 0&&s===void 0))return{runTimeout:n,idleTimeout:s,refreshOn:r}}var Z="__start__",Q="__end__",dt="__input__";var nr="__error__",Ln="__error_source_node__",Ds="__pregel_ns_writes";function Tu(){let e=typeof process<"u"?process.env?.LANGGRAPH_DELTA_MAX_SUPERSTEPS_SINCE_SNAPSHOT:void 0;if(e!==void 0&&e!==""){let t=Number.parseInt(e,10);if(Number.isFinite(t)&&t>0)return t}return 5e3}var Se="__pregel_send",gt="__pregel_call",Ie="__pregel_read",We="__pregel_checkpointer",Ir="__pregel_resuming",zr="__pregel_task_id",Dn="__pregel_stream",Ym="__pregel_resume_value",Ar="__pregel_resume_map",Ae="__pregel_scratchpad",sr="__pregel_previous",Xm="__pregel_durability",ir="checkpoint_id",Ue="checkpoint_ns",xu="__pregel_node_finished",Fn="__pregel_node_error",ke="checkpoint_map",Fs="__pregel_replay_state",Iu="__pregel_abort_signals",Y="__interrupt__",Oe="__resume__",jn="__no_writes__",ar="__return__",or="__previous__",se="langsmith:hidden";var _a="__self__",_t="__pregel_tasks",Ne="__pregel_push",js="__pregel_pull",Me="00000000-0000-0000-0000-000000000000",Au=[se,dt,Y,Oe,nr,Ln,jn,Se,Ie,We,Xm,Dn,Ir,zr,gt,Ym,Ae,sr,ke,Ue,ir,Fs],ga=Symbol.for("langgraph.command"),Ou=class{[ga];constructor(e){this[ga]=e}};function $s(e){let t=e;return t!=null&&typeof t.node=="string"&&t.args!==void 0}var xr=class{lg_name="Send";node;args;timeout;constructor(e,t,r){this.node=e,this.args=Rn(t),this.timeout=rr(r?.timeout)}toJSON(){return{lg_name:this.lg_name,node:this.node,args:this.args,timeout:this.timeout}}};function ce(e){return e instanceof xr}var mt="__overwrite__",Zm=class{lg_name="Overwrite";[mt];constructor(e){this[mt]=e}get value(){return this[mt]}toJSON(){return{[mt]:this[mt]}}static isInstance(e){return!e||typeof e!="object"?!1:"__overwrite__"in e||"lg_name"in e&&e.lg_name==="Overwrite"}};function tt(e){if(typeof e=="object"&&e!==null){if("__overwrite__"in e)return[!0,e[mt]];let t=e;if(t.type==="__overwrite__"&&"value"in t)return[!0,t.value]}return[!1,void 0]}function Or(e){return tt(e)[0]}function Nr(e){return!e||typeof e!="object"||!("__interrupt__"in e)?!1:Array.isArray(e[Y])}var je=class extends Ou{lg_name="Command";lc_direct_tool_output=!0;graph;update;resume;goto=[];static PARENT="__parent__";constructor(e){super(e),this.resume=e.resume,this.graph=e.graph,this.update=e.update,e.goto&&(this.goto=Array.isArray(e.goto)?Rn(e.goto):[Rn(e.goto)])}_updateAsTuples(){return this.update&&typeof this.update=="object"&&!Array.isArray(this.update)?Object.entries(this.update):Array.isArray(this.update)&&this.update.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]=="string")?this.update:[["__root__",this.update]]}toJSON(){let e;return typeof this.goto=="string"?e=this.goto:ce(this.goto)?e=this.goto.toJSON():e=this.goto?.map(t=>typeof t=="string"?t:t.toJSON()),{lg_name:this.lg_name,update:this.update,resume:this.resume,goto:e}}};function pe(e){return typeof e!="object"||e==null?!1:"lg_name"in e&&e.lg_name==="Command"}function Qm(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Rn(e,t=new Map){if(e!=null&&typeof e=="object"){if(t.has(e))return t.get(e);let r;if(Array.isArray(e))r=[],t.set(e,r),e.forEach((n,s)=>{r[s]=Rn(n,t)});else if(e instanceof je||e instanceof xr||!Qm(e))r=e,t.set(e,r);else if(pe(e))r=new je(e),t.set(e,r);else if($s(e))r=new xr(e.node,e.args,e.timeout!==void 0?{timeout:e.timeout}:void 0),t.set(e,r);else if("lc_serializable"in e&&e.lc_serializable)r=e,t.set(e,r);else{r={},t.set(e,r);for(let[n,s]of Object.entries(e))r[n]=Rn(s,t)}return r}return e}var Ke=class extends Error{lc_error_code;constructor(e,t){let r=e??"";t?.lc_error_code&&(r=`${r}
3
3
 
4
4
  Troubleshooting URL: https://docs.langchain.com/oss/javascript/langgraph/${t.lc_error_code}/
5
5
  `),super(r),this.lc_error_code=t?.lc_error_code}},Bs=class extends Ke{get is_bubble_up(){return!0}},ya=class extends Ke{constructor(e,t){super(e,t),this.name="GraphRecursionError"}static get unminifiable_name(){return"GraphRecursionError"}},Mr=class extends Ke{constructor(e,t){super(e,t),this.name="GraphValueError"}static get unminifiable_name(){return"GraphValueError"}},Vs=class extends Bs{reason;constructor(e="shutdown",t){super(`Graph drained: ${e}`,t),this.name="GraphDrained",this.reason=e}static get unminifiable_name(){return"GraphDrained"}};function Us(e){return e!==void 0&&e.name===Vs.unminifiable_name}var Nt=class extends Bs{interrupts;constructor(e,t){super(JSON.stringify(e,null,2),t),this.name="GraphInterrupt",this.interrupts=e??[]}static get unminifiable_name(){return"GraphInterrupt"}},Hs=class extends Nt{constructor(e,t){super([{value:e}],t),this.name="NodeInterrupt"}static get unminifiable_name(){return"NodeInterrupt"}},Gs=class{node;error;constructor(e,t){this.node=e,this.error=t}static get unminifiable_name(){return"NodeError"}};function ed(e){return e!=null&&typeof e=="object"&&e.constructor!=null&&e.constructor.unminifiable_name===Gs.unminifiable_name}var Ws=class extends Bs{command;constructor(e){super(),this.name="ParentCommand",this.command=e}static get unminifiable_name(){return"ParentCommand"}};function ba(e){return e!==void 0&&e.name===Ws.unminifiable_name}function cr(e){return e!==void 0&&e.is_bubble_up===!0}function Mt(e){return e!==void 0&&[Nt.unminifiable_name,Hs.unminifiable_name].includes(e.name)}var Ks=class extends Ke{node;kind;timeout;elapsed;runTimeout;idleTimeout;constructor(e,t){let{node:r,elapsed:n,kind:s,runTimeout:i,idleTimeout:a}=e,o,c;if(s==="idle"){if(a===void 0)throw new Error("idleTimeout is required when kind='idle'");c=a,o=`Node "${r}" exceeded its idle timeout of ${a}ms without making progress (elapsed: ${n}ms).`}else{if(i===void 0)throw new Error("runTimeout is required when kind='run'");c=i,o=`Node "${r}" exceeded its run timeout of ${i}ms (elapsed: ${n}ms).`}super(o,t),this.name="NodeTimeoutError",this.node=r,this.kind=s,this.timeout=c,this.elapsed=n,this.runTimeout=i,this.idleTimeout=a}static get unminifiable_name(){return"NodeTimeoutError"}};function td(e){return e!==void 0&&e.name===Ks.unminifiable_name}var zs=class extends Ke{constructor(e,t){super(e,t),this.name="EmptyInputError"}static get unminifiable_name(){return"EmptyInputError"}},W=class extends Ke{constructor(e,t){let r=Error.stackTraceLimit;Error.stackTraceLimit=0,super(e,t),Error.stackTraceLimit=r,this.name="EmptyChannelError"}static get unminifiable_name(){return"EmptyChannelError"}},$=class extends Ke{constructor(e,t){super(e,t),this.name="InvalidUpdateError"}static get unminifiable_name(){return"InvalidUpdateError"}},rd=class extends Ke{constructor(e,t){super(e,t),this.name="MultipleSubgraphError"}static get unminifiable_name(){return"MultipleSubgraphError"}},va=class extends Ke{constructor(e,t){super(e,t),this.name="UnreachableNodeError"}static get unminifiable_name(){return"UnreachableNodeError"}},nd=class extends Ke{constructor(e,t){super(e,t),this.name="RemoteException"}static get unminifiable_name(){return"RemoteException"}},$n=class extends Ke{constructor(e,t){super(e,t),this.name="StateGraphInputError",this.message="Invalid StateGraph input. Make sure to pass a valid StateDefinition, Annotation.Root, or Zod schema."}static get unminifiable_name(){return"StateGraphInputError"}},sd=()=>(globalThis[Symbol.for("LG_CHECKPOINT_SEEN_NS_SET")]===void 0&&(globalThis[Symbol.for("LG_CHECKPOINT_SEEN_NS_SET")]=new Set),globalThis[Symbol.for("LG_CHECKPOINT_SEEN_NS_SET")]);var wa=0,Bn=0;function Vn(e){let t=Date.now();return t<=wa?(Bn+=1,Bn>=1e4&&(Bn=0,t=wa+1)):Bn=0,wa=t,gl({clockseq:e,msecs:t,nsecs:Bn})}function yt(e,t){let r=t.replace(/-/g,"").match(/.{2}/g).map(n=>parseInt(n,16));return Mn(e,new Uint8Array(r))}var Un="__pregel_tasks",Sa="__error__",Pr="__scheduled__",ka="__interrupt__",Ca="__resume__",qr=class{lg_name="DeltaSnapshot";value;constructor(e){this.value=e}};function Ea(e){return e!=null&&typeof e=="object"&&e.lg_name==="DeltaSnapshot"}var Nu="[...]",id="[Circular]",qs=[],Jr=[];function ad(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Mu(e,t,r,n){typeof n>"u"&&(n=ad()),xa(e,"",0,[],void 0,0,n);var s;try{Jr.length===0?s=JSON.stringify(e,t,r):s=JSON.stringify(e,od(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;qs.length!==0;){var i=qs.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return s}function Ta(e,t,r,n){var s=Object.getOwnPropertyDescriptor(n,r);s.get!==void 0?s.configurable?(Object.defineProperty(n,r,{value:e}),qs.push([n,r,t,s])):Jr.push([t,r,e]):(n[r]=e,qs.push([n,r,t]))}function xa(e,t,r,n,s,i,a){i+=1;var o;if(typeof e=="object"&&e!==null){for(o=0;o<n.length;o++)if(n[o]===e){Ta(id,e,t,s);return}if(typeof a.depthLimit<"u"&&i>a.depthLimit){Ta(Nu,e,t,s);return}if(typeof a.edgesLimit<"u"&&r+1>a.edgesLimit){Ta(Nu,e,t,s);return}if(n.push(e),Array.isArray(e))for(o=0;o<e.length;o++)xa(e[o],o,o,n,e,i,a);else{var c=Object.keys(e);for(o=0;o<c.length;o++){var l=c[o];xa(e[l],l,o,n,e,i,a)}}n.pop()}}function od(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(Jr.length>0)for(var n=0;n<Jr.length;n++){var s=Jr[n];if(s[1]===t&&s[0]===r){r=s[2],Jr.splice(n,1);break}}return e.call(this,t,r)}}var Pu=[];var Ru=A({});var Lu=A({});var Js=(e,t)=>{let r=[...new Set(t?.map(s=>{if(typeof s=="string")return s;let i=new s({});if(!("getType"in i)||typeof i.getType!="function")throw new Error("Invalid type provided.");return i.getType()}))],n=e.getType();return r.some(s=>s===n)};function Bu(e,t){return Array.isArray(e)?Du(e,t):Fe.from(r=>Du(r,e))}function Du(e,t={}){let{includeNames:r,excludeNames:n,includeTypes:s,excludeTypes:i,includeIds:a,excludeIds:o}=t,c=[];for(let l of e)if(!(n&&l.name&&n.includes(l.name))){{if(i&&Js(l,i))continue;if(o&&l.id&&o.includes(l.id))continue}s||a||r?(r&&l.name&&r.some(u=>u===l.name)||s&&Js(l,s)||a&&l.id&&a.some(u=>u===l.id))&&c.push(l):c.push(l)}return c}function Vu(e){return Array.isArray(e)?Fu(e):Fe.from(Fu)}function Fu(e){if(!e.length)return[];let t=[];for(let r of e){let n=r,s=t.pop();if(!s)t.push(n);else if(n.getType()==="tool"||n.getType()!==s.getType())t.push(s,n);else{let i=kr(s),a=kr(n),o=i.concat(a);typeof i.content=="string"&&typeof a.content=="string"&&(o.content=`${i.content}
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import a from"./ZY3JQCZQ.js";export default $arcgis.t(([{a:e}])=>{var t=[async()=>(await import("./SUC2MIGE.js")).default,async()=>(await import("./Y6CV2NZR.js")).default],r=e({id:"dataExploration",name:"Data Exploration Agent",description:"Explores feature-layer data and applies data-driven map filters using on-demand query and filter skills.",skillLoaders:t,modelTier:"default",systemPrompt:"You are an ArcGIS data exploration agent.",instructions:"A request can require both query and filter skills. Treat show, display, highlight, map, filter, reveal, emphasize, include, or exclude as visual map intent when the request targets matching features. For visual map intent, do not stop after query. First use query to identify/count the matching features, then load the filter skill and call setFeatureEffect with the same layer, where clause, geometry filter, extent setting, or object IDs. Use only tool results to describe data or map changes.",fallbackMessage:"Data exploration request completed.",failureMessage:"I couldn't complete the data exploration request."});return r},a)