@arcgis/ai-components 6.0.0-next.1 → 6.0.0-next.3

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 (368) 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/SkillAgent.js +1 -1
  5. package/dist/agent-utils/WorkflowAgent.js +1 -1
  6. package/dist/agent-utils/createSchema.js +1 -1
  7. package/dist/agent-utils/middlewares/humanInTheLoop.js +23 -21
  8. package/dist/agent-utils/middlewares/middleware.js +1 -1
  9. package/dist/agent-utils/middlewares/trace.js +1 -1
  10. package/dist/agent-utils/middlewares/types.js +1 -1
  11. package/dist/agent-utils/tools/FunctionTool.js +1 -1
  12. package/dist/agent-utils/tools/MCPToolProvider.js +1 -1
  13. package/dist/agent-utils/tools/WebMCPToolProvider.js +1 -1
  14. package/dist/agent-utils/workflows/ConditionalWorkflow.js +1 -1
  15. package/dist/agent-utils/workflows/LoopWorkflow.js +1 -1
  16. package/dist/agent-utils/workflows/ParallelWorkflow.js +1 -1
  17. package/dist/agent-utils/workflows/RouterWorkflow.js +1 -1
  18. package/dist/agent-utils/workflows/SequentialWorkflow.js +1 -1
  19. package/dist/agent-utils/workflows/SwitchWorkflow.js +1 -1
  20. package/dist/agents/agents/arcgisKnowledge/graph/arcgisKnowledgeGraph.js +1 -1
  21. package/dist/agents/agents/dataExploration/dataExplorationAgent.js +1 -1
  22. package/dist/agents/agents/dataExplorationGraph/graph/dataExplorationGraph.js +1 -1
  23. package/dist/agents/agents/help/helpAgent.js +11 -11
  24. package/dist/agents/agents/helpGraph/graph/helpGraph.js +1 -1
  25. package/dist/agents/agents/layerStyling/context/layerStylingContext.js +1 -1
  26. package/dist/agents/agents/layerStyling/graph/layerStylingGraph.js +1 -1
  27. package/dist/agents/agents/navigation/navigationAgent.js +1 -1
  28. package/dist/agents/agents/navigationGraph/graph/navigationGraph.js +1 -1
  29. package/dist/agents/tools/filter/clearFilters/adapter.js +1 -1
  30. package/dist/agents/tools/filter/resetMap/adapter.js +1 -1
  31. package/dist/agents/tools/filter/setFeatureEffect/adapter.js +1 -1
  32. package/dist/agents/tools/help/listFields/adapter.js +1 -1
  33. package/dist/agents/tools/navigation/goToAddress/adapter.js +1 -1
  34. package/dist/agents/tools/navigation/goToBookmark/adapter.js +35 -18
  35. package/dist/agents/tools/navigation/goToFeatures/adapter.js +1 -1
  36. package/dist/agents/tools/navigation/goToFullExtent/adapter.js +1 -1
  37. package/dist/agents/tools/navigation/goToHomeExtent/adapter.js +1 -1
  38. package/dist/agents/tools/navigation/goToLayer/adapter.js +1 -1
  39. package/dist/agents/tools/navigation/goToScale/adapter.js +1 -1
  40. package/dist/agents/tools/navigation/goToViewpoint/adapter.js +1 -1
  41. package/dist/agents/tools/navigation/goToZoom/adapter.js +1 -1
  42. package/dist/agents/tools/query/getAttribute/adapter.js +1 -1
  43. package/dist/agents/tools/query/getStatistics/adapter.js +1 -1
  44. package/dist/agents/tools/query/getTopFeatures/adapter.js +1 -1
  45. package/dist/agents/tools/query/queryFeatures/adapter.js +1 -1
  46. package/dist/agents/tools/search/findRelevantFields/adapter.js +1 -1
  47. package/dist/agents/tools/search/findRelevantLayers/adapter.js +1 -1
  48. package/dist/agents/tools/shared/resolveToolArtifact.js +1 -1
  49. package/dist/agents/tools/shared/types.js +1 -1
  50. package/dist/cdn/24KEZCPF.js +2 -0
  51. package/dist/cdn/{2UKFCF2J.js → 272R36XK.js} +2 -2
  52. package/dist/cdn/{FX4LV2S3.js → 2H32MDP2.js} +1 -1
  53. package/dist/cdn/{VAXH6RUQ.js → 2HNGMLFD.js} +2 -2
  54. package/dist/cdn/{24TK55FP.js → 2JD3G7IW.js} +2 -2
  55. package/dist/cdn/{P4CHI7W3.js → 2NOLMOEP.js} +2 -2
  56. package/dist/cdn/{ZU2FHVNK.js → 2OW3DCUT.js} +2 -2
  57. package/dist/cdn/2PGZDONH.js +2 -0
  58. package/dist/cdn/2WY5MPMY.js +2 -0
  59. package/dist/cdn/{2DWN3SKH.js → 3COVQI26.js} +2 -2
  60. package/dist/cdn/{VIJVRJHL.js → 3UVQLYUK.js} +2 -2
  61. package/dist/cdn/46NXKDIE.js +2 -0
  62. package/dist/cdn/{BIEX4MVV.js → 5HNKH5OK.js} +2 -2
  63. package/dist/cdn/{46DT6BIG.js → 5INBG23U.js} +1 -1
  64. package/dist/cdn/{YJXRCO4T.js → 5LBUP33F.js} +2 -2
  65. package/dist/cdn/{JEWJ4M25.js → 5OGABLOF.js} +5 -5
  66. package/dist/cdn/{UZLQALHY.js → 5PV2GUZW.js} +1 -1
  67. package/dist/cdn/{EEHDAYOG.js → 5XZ5VL42.js} +2 -2
  68. package/dist/cdn/{DI3VGUJY.js → 63OF33IL.js} +2 -2
  69. package/dist/cdn/{NHWT7CXX.js → 6ELWX4W5.js} +2 -2
  70. package/dist/cdn/{OKVLGJAG.js → 6J3J7VLW.js} +2 -2
  71. package/dist/cdn/{AOVJ34QE.js → 6QOSUG64.js} +2 -2
  72. package/dist/cdn/{GVFJHADC.js → 6UGT2UG5.js} +2 -2
  73. package/dist/cdn/{QEGO4B2W.js → 7GDMXAF5.js} +2 -2
  74. package/dist/cdn/7JIXXYZR.js +2 -0
  75. package/dist/cdn/{X5ET73QZ.js → 7OQK2F7O.js} +2 -2
  76. package/dist/cdn/{FSLPYC4Y.js → A4ZVCRVF.js} +2 -2
  77. package/dist/cdn/{OVIQ5NSE.js → AGDGDULE.js} +2 -2
  78. package/dist/cdn/{TPULIO6I.js → AMA67DVI.js} +2 -2
  79. package/dist/cdn/AO42IPOX.js +2 -0
  80. package/dist/cdn/{UOKYHQNO.js → AOT3PM2Q.js} +2 -2
  81. package/dist/cdn/{EG5BMYZO.js → AQ7KG25Q.js} +2 -2
  82. package/dist/cdn/AY2ZONWQ.js +2 -0
  83. package/dist/cdn/{JZPPP4QY.js → BMVPOFHU.js} +2 -2
  84. package/dist/cdn/BWUQRZPK.js +2 -0
  85. package/dist/cdn/{XWNZMKQF.js → C3VLDYS2.js} +2 -2
  86. package/dist/cdn/{PQ2DPOFM.js → C5Q6E7UC.js} +2 -2
  87. package/dist/cdn/{FDOMMK2M.js → CETIZ4IQ.js} +1 -1
  88. package/dist/cdn/CKDKQVS3.js +2 -0
  89. package/dist/cdn/{TENUVOFJ.js → COANVCKH.js} +2 -2
  90. package/dist/cdn/CV5YAJMD.js +2 -0
  91. package/dist/cdn/{BBB5EJUB.js → CWZG7DML.js} +3 -3
  92. package/dist/cdn/{2O52MJ3D.js → D7CRICBG.js} +2 -2
  93. package/dist/cdn/D7FEOAW3.js +2 -0
  94. package/dist/cdn/{PGUEODFA.js → DY6MO2CA.js} +2 -2
  95. package/dist/cdn/EKMCGN6R.js +2 -0
  96. package/dist/cdn/EUIURCPS.js +2 -0
  97. package/dist/cdn/{RFDMNYTA.js → EWZNZZ5S.js} +2 -2
  98. package/dist/cdn/{DGCWQYN3.js → FGQH46Z2.js} +2 -2
  99. package/dist/cdn/FIZMK7GS.js +1 -0
  100. package/dist/cdn/FONIQ7VF.js +2 -0
  101. package/dist/cdn/G4L7RUTK.js +49 -0
  102. package/dist/cdn/{FYZATVB3.js → G7MCIFV2.js} +2 -2
  103. package/dist/cdn/{SDWWUWAF.js → GGAXXX5X.js} +2 -2
  104. package/dist/cdn/GS5JDPZH.js +2 -0
  105. package/dist/cdn/{T3SCINN5.js → H4QWVTEZ.js} +2 -2
  106. package/dist/cdn/H653UVNH.js +2 -0
  107. package/dist/cdn/{ZSLHB6MF.js → H6J65TWL.js} +2 -2
  108. package/dist/cdn/{UHEYPSOR.js → HCPI2RJE.js} +2 -2
  109. package/dist/cdn/{PCAMBPOA.js → HJOWCZPL.js} +2 -2
  110. package/dist/cdn/{5REENYPV.js → HTNKDDEV.js} +2 -2
  111. package/dist/cdn/{6WYVG3JI.js → HU527DML.js} +2 -2
  112. package/dist/cdn/{DJG6DBCU.js → I2RQZAFF.js} +3 -3
  113. package/dist/cdn/I37ZJHTM.js +2 -0
  114. package/dist/cdn/{GHFOAS7T.js → I724KIFI.js} +2 -2
  115. package/dist/cdn/IH5P2PWJ.js +2 -0
  116. package/dist/cdn/{C67KQCPS.js → J3T5HB77.js} +2 -2
  117. package/dist/cdn/{EXLDRGUC.js → JCWFLYB4.js} +2 -2
  118. package/dist/cdn/{IHP25JWI.js → JSRNLNOE.js} +2 -2
  119. package/dist/cdn/JZT4ECVH.js +2 -0
  120. package/dist/cdn/{MPWEXYYB.js → KDA5VPLO.js} +2 -2
  121. package/dist/cdn/KRPPMEOF.js +2 -0
  122. package/dist/cdn/{GBFRJF4F.js → KURNYULZ.js} +2 -2
  123. package/dist/cdn/{ZKWXHSEQ.js → L46O52F7.js} +2 -2
  124. package/dist/cdn/{FJV7CI7O.js → LDDP7NSY.js} +2 -2
  125. package/dist/cdn/{ZQTCPJUV.js → LGIXZLOP.js} +2 -2
  126. package/dist/cdn/{OGZFST2A.js → LMAIOLS2.js} +2 -2
  127. package/dist/cdn/{CFAC4FN3.js → LWEKPFV6.js} +2 -2
  128. package/dist/cdn/{L5IPMRHC.js → M52LKZN7.js} +2 -2
  129. package/dist/cdn/{AQF6BBWC.js → M5UMOOL2.js} +2 -2
  130. package/dist/cdn/MNMCIS4E.js +15 -0
  131. package/dist/cdn/{7X22QXJP.js → MR3R5YHQ.js} +2 -2
  132. package/dist/cdn/{MD2FTKQT.js → MSHEHZYP.js} +3 -3
  133. package/dist/cdn/{M6JQGHCE.js → MUSLUFKI.js} +2 -2
  134. package/dist/cdn/MYLY2ABI.js +2 -0
  135. package/dist/cdn/{AMP43OT2.js → N2GN5WOI.js} +2 -2
  136. package/dist/cdn/{RE7MJTEF.js → NAVK5JJ2.js} +3 -3
  137. package/dist/cdn/NDSYDURO.js +2 -0
  138. package/dist/cdn/{7ZTYHZIN.js → NK2QRPS6.js} +2 -2
  139. package/dist/cdn/{GMZUN5SF.js → NYFL2F5L.js} +2 -2
  140. package/dist/cdn/{PGH7POKS.js → OKDXM5D4.js} +2 -2
  141. package/dist/cdn/{JFL5IWPK.js → OMUWBY75.js} +2 -2
  142. package/dist/cdn/{34O57OGV.js → OPQCY33W.js} +1 -1
  143. package/dist/cdn/{R74ZHFA6.js → OUMTV5H5.js} +1 -1
  144. package/dist/cdn/OVH4S4ZB.js +3 -0
  145. package/dist/cdn/{5FDBJI24.js → OZDRETY2.js} +2 -2
  146. package/dist/cdn/{DYSPEU7W.js → PR4VMSKD.js} +1 -1
  147. package/dist/cdn/{HSMAXOOA.js → PXBS2FXE.js} +2 -2
  148. package/dist/cdn/{XEJFVUNQ.js → QAVDW7A7.js} +1 -1
  149. package/dist/cdn/{ONQ6JSBJ.js → QBZP6XOE.js} +1 -1
  150. package/dist/cdn/RNJ7T5GF.js +2 -0
  151. package/dist/cdn/{YBWRFVA6.js → RQYDIQVD.js} +3 -3
  152. package/dist/cdn/{BMPBJXD7.js → S6OUM5X2.js} +2 -2
  153. package/dist/cdn/{A22375P3.js → SUMXIUIS.js} +2 -2
  154. package/dist/cdn/SW3D6QD4.js +2 -0
  155. package/dist/cdn/{GEFFWUB2.js → T2OYUOSO.js} +1 -1
  156. package/dist/cdn/T7LYQ56H.js +2 -0
  157. package/dist/cdn/{DZOQFEOB.js → TFXK2POV.js} +2 -2
  158. package/dist/cdn/{XQ3NBBQ3.js → TIQUULA4.js} +1 -1
  159. package/dist/cdn/{LCI5MEDN.js → TOUYGIGK.js} +2 -2
  160. package/dist/cdn/TZQ6XEKW.js +2 -0
  161. package/dist/cdn/{5LA77ZBW.js → UMTRLI63.js} +2 -2
  162. package/dist/cdn/{NPV4MEAZ.js → UP7RW5K2.js} +2 -2
  163. package/dist/cdn/{XCLICBG7.js → UR2S7L6Z.js} +2 -2
  164. package/dist/cdn/{CEKOEHB3.js → UWHRBGWN.js} +2 -2
  165. package/dist/cdn/{UQRBY7ID.js → UXDRYDOD.js} +2 -2
  166. package/dist/cdn/{JUPTVXLY.js → UZ7XFHYI.js} +2 -2
  167. package/dist/cdn/{AAUVOBPS.js → VINKTQFR.js} +1 -1
  168. package/dist/cdn/{SWXUQFB6.js → VU7IOGNS.js} +2 -2
  169. package/dist/cdn/{HC5DJL2U.js → W2SIOY2B.js} +2 -2
  170. package/dist/cdn/{FBARYPZ7.js → W36IUEUB.js} +2 -2
  171. package/dist/cdn/{5TW2NFES.js → WEBAQIUT.js} +2 -2
  172. package/dist/cdn/{WSIZ2OTL.js → WHIWOYHN.js} +1 -1
  173. package/dist/cdn/WOL5YMJ2.js +2 -0
  174. package/dist/cdn/{66VWTARH.js → X3YFCWQZ.js} +2 -2
  175. package/dist/cdn/{ICBIUFK7.js → X4EQEKM7.js} +2 -2
  176. package/dist/cdn/{TJBU5BQK.js → XBWGOD6I.js} +2 -2
  177. package/dist/cdn/{6E6T6U7W.js → XGDXTTYW.js} +2 -2
  178. package/dist/cdn/{CDS2HGQY.js → XLHYQNAM.js} +2 -2
  179. package/dist/cdn/{NEV6OZN3.js → XMQJWPXI.js} +2 -2
  180. package/dist/cdn/{QT3B5K4R.js → XQUKC4YK.js} +2 -2
  181. package/dist/cdn/{JEBRN3EU.js → XSH4B7FP.js} +2 -2
  182. package/dist/cdn/{LK7ZIQW6.js → XVWSIDZV.js} +2 -2
  183. package/dist/cdn/{J6A4AS7E.js → XYMIFFBW.js} +2 -2
  184. package/dist/cdn/{MPQ2OZXN.js → Y3ZKMD47.js} +2 -2
  185. package/dist/cdn/{YPLPDUMB.js → YAANCUW2.js} +2 -2
  186. package/dist/cdn/{KY7M4WHO.js → YD5LVM7V.js} +2 -2
  187. package/dist/cdn/{AMURN3LO.js → YGI277SH.js} +2 -2
  188. package/dist/cdn/{YI6NIHNI.js → YGSDJ4V3.js} +2 -2
  189. package/dist/cdn/YIF2OD6F.js +2 -0
  190. package/dist/cdn/YJEARDAZ.js +2 -0
  191. package/dist/cdn/{XC3T3Z5R.js → YSEHJQ4L.js} +2 -2
  192. package/dist/cdn/Z44NI2YQ.js +2 -0
  193. package/dist/cdn/{UYP5PH5E.js → ZUKM4DGB.js} +2 -2
  194. package/dist/cdn/ZVVNATCX.js +2 -0
  195. package/dist/cdn/agent-utils/BaseAgent.js +2 -2
  196. package/dist/cdn/agent-utils/FunctionAgent.js +2 -2
  197. package/dist/cdn/agent-utils/LLMAgent.js +2 -2
  198. package/dist/cdn/agent-utils/SkillAgent.js +2 -2
  199. package/dist/cdn/agent-utils/WorkflowAgent.js +2 -2
  200. package/dist/cdn/agent-utils/createSchema.js +2 -2
  201. package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +2 -2
  202. package/dist/cdn/agent-utils/middlewares/middleware.js +2 -2
  203. package/dist/cdn/agent-utils/middlewares/trace.js +2 -2
  204. package/dist/cdn/agent-utils/tools/FunctionTool.js +2 -2
  205. package/dist/cdn/agent-utils/tools/MCPToolProvider.js +2 -2
  206. package/dist/cdn/agent-utils/tools/WebMCPToolProvider.js +2 -2
  207. package/dist/cdn/agent-utils/workflows/ConditionalWorkflow.js +2 -2
  208. package/dist/cdn/agent-utils/workflows/LoopWorkflow.js +2 -2
  209. package/dist/cdn/agent-utils/workflows/ParallelWorkflow.js +2 -2
  210. package/dist/cdn/agent-utils/workflows/RouterWorkflow.js +2 -2
  211. package/dist/cdn/agent-utils/workflows/SequentialWorkflow.js +2 -2
  212. package/dist/cdn/agent-utils/workflows/SwitchWorkflow.js +2 -2
  213. package/dist/cdn/index.js +2 -2
  214. package/dist/cdn/orchestrator/embeddings/getEmbeddings.js +2 -2
  215. package/dist/cdn/orchestrator/models/chatModel.js +2 -2
  216. package/dist/cdn/orchestrator/models/prompts.js +2 -2
  217. package/dist/cdn/orchestrator/signals.js +2 -2
  218. package/dist/cdn/orchestrator/state/runtime.js +2 -2
  219. package/dist/chunks/BaseWorkflow.js +1 -1
  220. package/dist/chunks/SKILL.js +1 -1
  221. package/dist/chunks/SKILL2.js +1 -1
  222. package/dist/chunks/SKILL3.js +7 -11
  223. package/dist/chunks/SKILL4.js +1 -1
  224. package/dist/chunks/adapter.js +1 -1
  225. package/dist/chunks/adapter2.js +1 -1
  226. package/dist/chunks/aiFactory.js +1 -1
  227. package/dist/chunks/aiUtilityService.js +1 -1
  228. package/dist/chunks/arcgisToolRegistry.js +1 -1
  229. package/dist/chunks/arcgis_knowledge_current_lc_context.js +1 -1
  230. package/dist/chunks/arcgis_knowledge_current_map_context.js +1 -1
  231. package/dist/chunks/arcgis_knowledge_cypher_query_prompt.js +1 -1
  232. package/dist/chunks/arcgis_knowledge_lucene_generation_prompt.js +1 -1
  233. package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +1 -1
  234. package/dist/chunks/arcgis_knowledge_tool_prompt.js +1 -1
  235. package/dist/chunks/converterUtils.js +1 -1
  236. package/dist/chunks/createSkillAgent.js +1 -1
  237. package/dist/chunks/data_explore_filter_prompt.js +1 -1
  238. package/dist/chunks/data_explore_query_prompt.js +1 -1
  239. package/dist/chunks/embeddings.worker.js +1 -1
  240. package/dist/chunks/fetchAgentContext.js +1 -1
  241. package/dist/chunks/fetchService.js +1 -1
  242. package/dist/chunks/fetchUtils.js +1 -1
  243. package/dist/chunks/fieldStatistics.js +1 -1
  244. package/dist/chunks/field_descriptions_prompt.js +1 -1
  245. package/dist/chunks/formatFeatureAttributes.js +1 -1
  246. package/dist/chunks/getPrompt.js +1 -1
  247. package/dist/chunks/graph.js +1 -1
  248. package/dist/chunks/helpState.js +1 -1
  249. package/dist/chunks/help_prompt.js +1 -1
  250. package/dist/chunks/intent_prompt.js +19 -108
  251. package/dist/chunks/layerQueryToolCalling.js +1 -1
  252. package/dist/chunks/layerStylingState.js +1 -1
  253. package/dist/chunks/layer_descriptions_prompt.js +1 -1
  254. package/dist/chunks/layer_styling_prompt.js +1 -1
  255. package/dist/chunks/localization.js +1 -1
  256. package/dist/chunks/mergeWhereClauses.js +1 -1
  257. package/dist/chunks/modelConfig.js +1 -1
  258. package/dist/chunks/modelPricing.js +1 -1
  259. package/dist/chunks/navigationState.js +1 -1
  260. package/dist/chunks/navigation_intent_prompt.js +1 -1
  261. package/dist/chunks/navigation_tool_prompt.js +1 -1
  262. package/dist/chunks/observationSnapshot.js +1 -1
  263. package/dist/chunks/reducers.js +1 -1
  264. package/dist/chunks/requireAgentServices.js +1 -1
  265. package/dist/chunks/resolveFieldNames.js +1 -1
  266. package/dist/chunks/resolveGeometryFilter.js +1 -1
  267. package/dist/chunks/runtime.js +2 -2
  268. package/dist/chunks/runtime2.js +1 -1
  269. package/dist/chunks/runtimeSpans.js +1 -1
  270. package/dist/chunks/schema.js +1 -1
  271. package/dist/chunks/slottableRequestUtils.js +1 -1
  272. package/dist/chunks/state.js +1 -1
  273. package/dist/chunks/summarize_query_response_prompt.js +1 -1
  274. package/dist/chunks/textFormatters.js +1 -1
  275. package/dist/chunks/toolCallResponse.js +1 -1
  276. package/dist/chunks/useT9n.js +1 -1
  277. package/dist/chunks/utils.js +1 -1
  278. package/dist/chunks/utils2.js +1 -1
  279. package/dist/chunks/utils3.js +1 -1
  280. package/dist/chunks/webmapSchema.js +1 -1
  281. package/dist/components/arcgis-assistant/customElement.js +101 -101
  282. package/dist/components/arcgis-assistant/types.d.ts +2 -0
  283. package/dist/components/arcgis-assistant-agent/customElement.js +1 -1
  284. package/dist/components/arcgis-assistant-chat/customElement.js +1 -1
  285. package/dist/components/arcgis-assistant-chat-entry/customElement.js +1 -1
  286. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +1 -1
  287. package/dist/components/arcgis-assistant-help-agent/customElement.js +1 -1
  288. package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +6 -0
  289. package/dist/components/arcgis-assistant-interrupt/customElement.js +25 -24
  290. package/dist/components/arcgis-assistant-interrupt-preview/customElement.js +1 -1
  291. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +1 -1
  292. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +1 -1
  293. package/dist/components/arcgis-assistant-message/customElement.js +1 -1
  294. package/dist/components/arcgis-assistant-message-block/customElement.js +1 -1
  295. package/dist/components/arcgis-assistant-message-feedback/customElement.js +1 -1
  296. package/dist/components/arcgis-assistant-message-footer/customElement.js +1 -1
  297. package/dist/components/arcgis-assistant-message-loading/customElement.js +1 -1
  298. package/dist/components/arcgis-assistant-message-log/customElement.js +1 -1
  299. package/dist/components/arcgis-assistant-message-read-aloud/customElement.js +1 -1
  300. package/dist/components/arcgis-assistant-message-text/customElement.js +1 -1
  301. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +1 -1
  302. package/dist/components/arcgis-assistant-observation-inspector/customElement.js +1 -1
  303. package/dist/components/arcgis-assistant-observation-latency/customElement.js +1 -1
  304. package/dist/components/arcgis-assistant-observation-panel/customElement.js +1 -1
  305. package/dist/components/arcgis-assistant-observation-run/customElement.js +1 -1
  306. package/dist/components/arcgis-assistant-observation-usage/customElement.js +1 -1
  307. package/dist/components/arcgis-assistant-speech-input/customElement.js +1 -1
  308. package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +1 -1
  309. package/dist/components/arcgis-assistant-user-message/customElement.js +1 -1
  310. package/dist/docs/api.json +1 -1
  311. package/dist/docs/docs.json +1 -1
  312. package/dist/docs/vscode.html-custom-data.json +1 -1
  313. package/dist/docs/web-types.json +1 -1
  314. package/dist/index.js +1 -1
  315. package/dist/loader.js +2 -2
  316. package/dist/orchestrator/embeddings/cosineSimilarity.js +1 -1
  317. package/dist/orchestrator/embeddings/getEmbeddings.js +1 -1
  318. package/dist/orchestrator/embeddings/webmapEmbeddings.js +1 -1
  319. package/dist/orchestrator/models/chatModel.js +1 -1
  320. package/dist/orchestrator/models/prompts.js +1 -1
  321. package/dist/orchestrator/orchestrator/orchestrator.js +1 -1
  322. package/dist/orchestrator/orchestrator/orchestratorEvents.js +1 -1
  323. package/dist/orchestrator/signals.js +1 -1
  324. package/dist/orchestrator/state/runtime.js +1 -1
  325. package/dist/orchestrator/state/types.js +1 -1
  326. package/dist/orchestrator/types.d.ts +6 -0
  327. package/dist/orchestrator/types.js +1 -1
  328. package/dist/types/lumina.d.ts +1 -1
  329. package/dist/types/preact.d.ts +1 -1
  330. package/dist/types/react.d.ts +1 -1
  331. package/dist/types/stencil.d.ts +1 -1
  332. package/dist/utils/index.js +1 -1
  333. package/package.json +5 -5
  334. package/dist/cdn/2UDDCWNW.js +0 -2
  335. package/dist/cdn/434TAA3J.js +0 -2
  336. package/dist/cdn/4KFTUBFL.js +0 -2
  337. package/dist/cdn/6PK2UPG3.js +0 -2
  338. package/dist/cdn/74CVYM72.js +0 -19
  339. package/dist/cdn/7HVIVV3O.js +0 -2
  340. package/dist/cdn/7MCFHVEH.js +0 -3
  341. package/dist/cdn/AO2G4EXA.js +0 -2
  342. package/dist/cdn/AWPLRVPS.js +0 -2
  343. package/dist/cdn/C76HLPKU.js +0 -2
  344. package/dist/cdn/CADNOKIK.js +0 -2
  345. package/dist/cdn/CHHC6YNW.js +0 -2
  346. package/dist/cdn/DBRBT54R.js +0 -2
  347. package/dist/cdn/DJKEGIQZ.js +0 -2
  348. package/dist/cdn/EGSD465U.js +0 -2
  349. package/dist/cdn/HLWG7OIR.js +0 -2
  350. package/dist/cdn/HWIM4KWF.js +0 -2
  351. package/dist/cdn/KKWCHNYQ.js +0 -2
  352. package/dist/cdn/KX6CZEVZ.js +0 -2
  353. package/dist/cdn/M2G44RTS.js +0 -2
  354. package/dist/cdn/MB7SEHPZ.js +0 -2
  355. package/dist/cdn/MC2V5WT3.js +0 -2
  356. package/dist/cdn/MZFWD5CQ.js +0 -2
  357. package/dist/cdn/NMFEXE4D.js +0 -2
  358. package/dist/cdn/OT5ECP4V.js +0 -138
  359. package/dist/cdn/OYHYHALE.js +0 -2
  360. package/dist/cdn/QUZTFUWM.js +0 -1
  361. package/dist/cdn/RF6HWZMB.js +0 -2
  362. package/dist/cdn/RFPTOFM4.js +0 -2
  363. package/dist/cdn/RKURZ5T2.js +0 -2
  364. package/dist/cdn/SJ4UMNIS.js +0 -2
  365. package/dist/cdn/USPB2QBX.js +0 -2
  366. package/dist/cdn/V6EX4YCY.js +0 -2
  367. package/dist/cdn/VA4M72JC.js +0 -2
  368. package/dist/cdn/VQ67NANV.js +0 -2
@@ -1,5 +1,5 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as Pe,c as Sn}from"./UZLQALHY.js";var cs=Pe((Mm,Vr)=>{"use strict";var pl=Object.prototype.hasOwnProperty,K="~";function Qe(){}Object.create&&(Qe.prototype=Object.create(null),new Qe().__proto__||(K=!1));function ml(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function os(t,e,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new ml(r,n||t,i),s=K?K+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],a]:t._events[s].push(a):(t._events[s]=a,t._eventsCount++),t}function kt(t,e){--t._eventsCount===0?t._events=new Qe:delete t._events[e]}function G(){this._events=new Qe,this._eventsCount=0}G.prototype.eventNames=function(){var e=[],r,n;if(this._eventsCount===0)return e;for(n in r=this._events)pl.call(r,n)&&e.push(K?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e};G.prototype.listeners=function(e){var r=K?K+e:e,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,s=new Array(a);i<a;i++)s[i]=n[i].fn;return s};G.prototype.listenerCount=function(e){var r=K?K+e:e,n=this._events[r];return n?n.fn?1:n.length:0};G.prototype.emit=function(e,r,n,i,a,s){var o=K?K+e:e;if(!this._events[o])return!1;var c=this._events[o],u=arguments.length,l,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,r),!0;case 3:return c.fn.call(c.context,r,n),!0;case 4:return c.fn.call(c.context,r,n,i),!0;case 5:return c.fn.call(c.context,r,n,i,a),!0;case 6:return c.fn.call(c.context,r,n,i,a,s),!0}for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=arguments[d];c.fn.apply(c.context,l)}else{var f=c.length,h;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),u){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,r);break;case 3:c[d].fn.call(c[d].context,r,n);break;case 4:c[d].fn.call(c[d].context,r,n,i);break;default:if(!l)for(h=1,l=new Array(u-1);h<u;h++)l[h-1]=arguments[h];c[d].fn.apply(c[d].context,l)}}return!0};G.prototype.on=function(e,r,n){return os(this,e,r,n,!1)};G.prototype.once=function(e,r,n){return os(this,e,r,n,!0)};G.prototype.removeListener=function(e,r,n,i){var a=K?K+e:e;if(!this._events[a])return this;if(!r)return kt(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!i||s.once)&&(!n||s.context===n)&&kt(this,a);else{for(var o=0,c=[],u=s.length;o<u;o++)(s[o].fn!==r||i&&!s[o].once||n&&s[o].context!==n)&&c.push(s[o]);c.length?this._events[a]=c.length===1?c[0]:c:kt(this,a)}return this};G.prototype.removeAllListeners=function(e){var r;return e?(r=K?K+e:e,this._events[r]&&kt(this,r)):(this._events=new Qe,this._eventsCount=0),this};G.prototype.off=G.prototype.removeListener;G.prototype.addListener=G.prototype.on;G.prefixed=K;G.EventEmitter=G;typeof Vr<"u"&&(Vr.exports=G)});var us=Pe((Nm,ls)=>{"use strict";ls.exports=(t,e)=>(e=e||(()=>{}),t.then(r=>new Promise(n=>{n(e())}).then(()=>r),r=>new Promise(n=>{n(e())}).then(()=>{throw r})))});var fs=Pe((Pm,$t)=>{"use strict";var _l=us(),Lt=class extends Error{constructor(e){super(e),this.name="TimeoutError"}},ds=(t,e,r)=>new Promise((n,i)=>{if(typeof e!="number"||e<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(e===1/0){n(t);return}let a=setTimeout(()=>{if(typeof r=="function"){try{n(r())}catch(c){i(c)}return}let s=typeof r=="string"?r:`Promise timed out after ${e} milliseconds`,o=r instanceof Error?r:new Lt(s);typeof t.cancel=="function"&&t.cancel(),i(o)},e);_l(t.then(n,i),()=>{clearTimeout(a)})});$t.exports=ds;$t.exports.default=ds;$t.exports.TimeoutError=Lt});var hs=Pe(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});function gl(t,e,r){let n=0,i=t.length;for(;i>0;){let a=i/2|0,s=n+a;r(t[s],e)<=0?(n=++s,i-=a+1):i=a}return n}qr.default=gl});var ps=Pe(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});var yl=hs(),Kr=class{constructor(){this._queue=[]}enqueue(e,r){r=Object.assign({priority:0},r);let n={priority:r.priority,run:e};if(this.size&&this._queue[this.size-1].priority>=r.priority){this._queue.push(n);return}let i=yl.default(this._queue,n,(a,s)=>s.priority-a.priority);this._queue.splice(i,0,n)}dequeue(){let e=this._queue.shift();return e?.run}filter(e){return this._queue.filter(r=>r.priority===e.priority).map(r=>r.run)}get size(){return this._queue.length}};Jr.default=Kr});var Qr=Pe(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});var wl=cs(),ms=fs(),bl=ps(),Ut=()=>{},El=new ms.TimeoutError,Wr=class extends wl{constructor(e){var r,n,i,a;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=Ut,this._resolveIdle=Ut,e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:bl.default},e),!(typeof e.intervalCap=="number"&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(n=(r=e.intervalCap)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:""}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(a=(i=e.interval)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===1/0||e.interval===0,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=e.throwOnTimeout===!0,this._isPaused=e.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=Ut,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=Ut,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){let e=Date.now();if(this._intervalId===void 0){let r=this._intervalEnd-e;if(r<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},r)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){let e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){let r=this._queue.dequeue();return r?(this.emit("active"),r(),e&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(e){if(!(typeof e=="number"&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,r={}){return new Promise((n,i)=>{let a=async()=>{this._pendingCount++,this._intervalCount++;try{let s=this._timeout===void 0&&r.timeout===void 0?e():ms.default(Promise.resolve(e()),r.timeout===void 0?this._timeout:r.timeout,()=>{(r.throwOnTimeout===void 0?this._throwOnTimeout:r.throwOnTimeout)&&i(El)});n(await s)}catch(s){i(s)}this._next()};this._queue.enqueue(a,r),this._tryToStartAnother(),this.emit("add")})}async addAll(e,r){return Promise.all(e.map(async n=>this.add(n,r)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(e=>{let r=this._resolveEmpty;this._resolveEmpty=()=>{r(),e()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(e=>{let r=this._resolveIdle;this._resolveIdle=()=>{r(),e()}})}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}};Xr.default=Wr});var xn=Object.defineProperty,P=(t,e)=>{let r={};for(var n in t)xn(r,n,{get:t[n],enumerable:!0});return e||xn(r,Symbol.toStringTag,{value:"Module"}),r};var no=/([A-Z]+)([A-Z][a-z0-9]+)/g,io=/([a-z0-9])([A-Z])/g,Tn=/[-_\s]+/g;function ao(t){return t.replace(no,"$1_$2").replace(io,"$1_$2").replace(Tn,"_").toLowerCase()}function so(t){let e=t.trim();return/[-_\s]/.test(e)?e.replace(Tn,"_").toLowerCase().replace(/_+([a-z0-9])/g,(r,n)=>n.toUpperCase()):e}function An(t,e){return e?.[t]||ao(t)}function xu(t,e){return e?.[t]||so(t)}function In(t,e,r){let n={};for(let i in t)Object.hasOwn(t,i)&&(n[e(i,r)]=t[i]);return n}var On="__lc_escaped__";function oo(t){return"lc"in t||Object.keys(t).length===1&&"__lc_escaped__"in t}function co(t){return{[On]:t}}function lo(t){return Object.keys(t).length===1&&"__lc_escaped__"in t}function uo(t){return t!==null&&typeof t=="object"&&"lc_serializable"in t&&typeof t.toJSON=="function"}function fo(t){let e;return t!==null&&typeof t=="object"?"lc_id"in t&&Array.isArray(t.lc_id)?e=t.lc_id:e=[t.constructor?.name??"Object"]:e=[typeof t],{lc:1,type:"not_implemented",id:e}}function it(t,e=new WeakSet){if(t!==null&&typeof t=="object"&&!Array.isArray(t)){if(e.has(t))return fo(t);if(uo(t))return t;e.add(t);let r=t;if(oo(r))return e.delete(t),co(r);let n={};for(let[i,a]of Object.entries(r))n[i]=it(a,e);return e.delete(t),n}return Array.isArray(t)?t.map(r=>it(r,e)):t}function Cn(t){if(t!==null&&typeof t=="object"&&!Array.isArray(t)){let e=t;if(lo(e))return e[On];let r={};for(let[n,i]of Object.entries(e))r[n]=Cn(i);return r}return Array.isArray(t)?t.map(e=>Cn(e)):t}var Ru=P({Serializable:()=>ke,get_lc_unique_name:()=>at});function Rn(t){return Array.isArray(t)?[...t]:{...t}}function ho(t,e){let r=Rn(t);for(let[n,i]of Object.entries(e)){let[a,...s]=n.split(".").reverse(),o=r;for(let c of s.reverse()){if(o[c]===void 0)break;o[c]=Rn(o[c]),o=o[c]}o[a]!==void 0&&(o[a]={lc:1,type:"secret",id:[i]})}return r}function at(t){let e=Object.getPrototypeOf(t);return typeof t.lc_name=="function"&&(typeof e.lc_name!="function"||t.lc_name()!==e.lc_name())?t.lc_name():t.name}var ke=class Mn{lc_serializable=!1;lc_kwargs;static lc_name(){return this.name}get lc_id(){return[...this.lc_namespace,at(this.constructor)]}get lc_secrets(){}get lc_attributes(){}get lc_aliases(){}get lc_serializable_keys(){}constructor(e,...r){this.lc_serializable_keys!==void 0?this.lc_kwargs=Object.fromEntries(Object.entries(e||{}).filter(([n])=>this.lc_serializable_keys?.includes(n))):this.lc_kwargs=e??{}}toJSON(){if(!this.lc_serializable)return this.toJSONNotImplemented();if(this.lc_kwargs instanceof Mn||typeof this.lc_kwargs!="object"||Array.isArray(this.lc_kwargs))return this.toJSONNotImplemented();let e={},r={},n=Object.keys(this.lc_kwargs).reduce((o,c)=>(o[c]=c in this?this[c]:this.lc_kwargs[c],o),{});for(let o=Object.getPrototypeOf(this);o;o=Object.getPrototypeOf(o))Object.assign(e,Reflect.get(o,"lc_aliases",this)),Object.assign(r,Reflect.get(o,"lc_secrets",this)),Object.assign(n,Reflect.get(o,"lc_attributes",this));Object.keys(r).forEach(o=>{let c=this,u=n,[l,...d]=o.split(".").reverse();for(let f of d.reverse()){if(!(f in c)||c[f]===void 0)return;(!(f in u)||u[f]===void 0)&&(typeof c[f]=="object"&&c[f]!=null?u[f]={}:Array.isArray(c[f])&&(u[f]=[])),c=c[f],u=u[f]}l in c&&c[l]!==void 0&&(u[l]=u[l]||c[l])});let i={},a=new WeakSet;a.add(this);for(let[o,c]of Object.entries(n))i[o]=it(c,a);let s=In(Object.keys(r).length?ho(i,r):i,An,e);return{lc:1,type:"constructor",id:this.lc_id,kwargs:s}}toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:this.lc_id}}};function pe(t){return typeof t=="object"&&t!==null&&"type"in t&&typeof t.type=="string"&&"source_type"in t&&(t.source_type==="url"||t.source_type==="base64"||t.source_type==="text"||t.source_type==="id")}function Nn(t){return pe(t)&&t.source_type==="url"&&"url"in t&&typeof t.url=="string"}function Pn(t){return pe(t)&&t.source_type==="base64"&&"data"in t&&typeof t.data=="string"}function Nu(t){return pe(t)&&t.source_type==="text"&&"text"in t&&typeof t.text=="string"}function kn(t){return pe(t)&&t.source_type==="id"&&"id"in t&&typeof t.id=="string"}function Pu(t){if(pe(t)){if(t.source_type==="url")return{type:"image_url",image_url:{url:t.url}};if(t.source_type==="base64"){if(!t.mime_type)throw new Error("mime_type key is required for base64 data.");return{type:"image_url",image_url:{url:`data:${t.mime_type};base64,${t.data}`}}}}throw new Error("Unsupported source type. Only 'url' and 'base64' are supported.")}function ku(t){let e=t.split(";")[0].split("/");if(e.length!==2)throw new Error(`Invalid mime type: "${t}" - does not match type/subtype format.`);let r=e[0].trim(),n=e[1].trim();if(r===""||n==="")throw new Error(`Invalid mime type: "${t}" - type or subtype is empty.`);let i={};for(let a of t.split(";").slice(1)){let s=a.split("=");if(s.length!==2)throw new Error(`Invalid parameter syntax in mime type: "${t}".`);let o=s[0].trim(),c=s[1].trim();if(o==="")throw new Error(`Invalid parameter syntax in mime type: "${t}".`);i[o]=c}return{type:r,subtype:n,parameters:i}}function Yt({dataUrl:t,asTypedArray:e=!1}){let r=t.match(/^data:(\w+\/\w+);base64,([A-Za-z0-9+/]+=*)$/),n;if(r){n=r[1].toLowerCase();let i=e?Uint8Array.from(atob(r[2]),a=>a.charCodeAt(0)):r[2];return{mime_type:n,data:i}}}function Lu(t,e){if(t.type==="text"){if(!e.fromStandardTextBlock)throw new Error(`Converter for ${e.providerName} does not implement \`fromStandardTextBlock\` method.`);return e.fromStandardTextBlock(t)}if(t.type==="image"){if(!e.fromStandardImageBlock)throw new Error(`Converter for ${e.providerName} does not implement \`fromStandardImageBlock\` method.`);return e.fromStandardImageBlock(t)}if(t.type==="audio"){if(!e.fromStandardAudioBlock)throw new Error(`Converter for ${e.providerName} does not implement \`fromStandardAudioBlock\` method.`);return e.fromStandardAudioBlock(t)}if(t.type==="file"){if(!e.fromStandardFileBlock)throw new Error(`Converter for ${e.providerName} does not implement \`fromStandardFileBlock\` method.`);return e.fromStandardFileBlock(t)}throw new Error(`Unable to convert content block type '${t.type}' to provider-specific format: not recognized.`)}function g(t,e){return b(t)&&t.type===e}function b(t){return typeof t=="object"&&t!==null}function U(t){return Array.isArray(t)}function p(t){return typeof t=="string"}function Y(t){return typeof t=="number"}function st(t){return t instanceof Uint8Array}function Zt(t){try{return JSON.parse(t)}catch{return}}var Z=t=>t();function po(t){if(t.type==="char_location"&&p(t.document_title)&&Y(t.start_char_index)&&Y(t.end_char_index)&&p(t.cited_text)){let{document_title:e,start_char_index:r,end_char_index:n,cited_text:i,...a}=t;return{...a,type:"citation",source:"char",title:e??void 0,startIndex:r,endIndex:n,citedText:i}}if(t.type==="page_location"&&p(t.document_title)&&Y(t.start_page_number)&&Y(t.end_page_number)&&p(t.cited_text)){let{document_title:e,start_page_number:r,end_page_number:n,cited_text:i,...a}=t;return{...a,type:"citation",source:"page",title:e??void 0,startIndex:r,endIndex:n,citedText:i}}if(t.type==="content_block_location"&&p(t.document_title)&&Y(t.start_block_index)&&Y(t.end_block_index)&&p(t.cited_text)){let{document_title:e,start_block_index:r,end_block_index:n,cited_text:i,...a}=t;return{...a,type:"citation",source:"block",title:e??void 0,startIndex:r,endIndex:n,citedText:i}}if(t.type==="web_search_result_location"&&p(t.url)&&p(t.title)&&p(t.encrypted_index)&&p(t.cited_text)){let{url:e,title:r,encrypted_index:n,cited_text:i,...a}=t;return{...a,type:"citation",source:"url",url:e,title:r,startIndex:Number(n),endIndex:Number(n),citedText:i}}if(t.type==="search_result_location"&&p(t.source)&&p(t.title)&&Y(t.start_block_index)&&Y(t.end_block_index)&&p(t.cited_text)){let{source:e,title:r,start_block_index:n,end_block_index:i,cited_text:a,...s}=t;return{...s,type:"citation",source:"search",url:e,title:r??void 0,startIndex:n,endIndex:i,citedText:a}}}function $n(t){if(g(t,"document")&&b(t.source)&&"type"in t.source){if(t.source.type==="base64"&&p(t.source.media_type)&&p(t.source.data))return{type:"file",mimeType:t.source.media_type,data:t.source.data};if(t.source.type==="url"&&p(t.source.url))return{type:"file",url:t.source.url};if(t.source.type==="file"&&p(t.source.file_id))return{type:"file",fileId:t.source.file_id};if(t.source.type==="text"&&p(t.source.data))return{type:"file",mimeType:String(t.source.media_type??"text/plain"),data:t.source.data}}else if(g(t,"image")&&b(t.source)&&"type"in t.source){if(t.source.type==="base64"&&p(t.source.media_type)&&p(t.source.data))return{type:"image",mimeType:t.source.media_type,data:t.source.data};if(t.source.type==="url"&&p(t.source.url))return{type:"image",url:t.source.url};if(t.source.type==="file"&&p(t.source.file_id))return{type:"image",fileId:t.source.file_id}}}function Un(t){function*e(){for(let r of t){let n=$n(r);n?yield n:yield r}}return Array.from(e())}function Ln(t){function*e(){let r=typeof t.content=="string"?[{type:"text",text:t.content}]:t.content;for(let n of r){if(g(n,"text")&&p(n.text)){let{text:i,citations:a,...s}=n;if(U(a)&&a.length){let o=a.reduce((c,u)=>{let l=po(u);return l?[...c,l]:c},[]);yield{...s,type:"text",text:i,annotations:o};continue}else{yield{...s,type:"text",text:i};continue}}else if(g(n,"thinking")&&p(n.thinking)){let{thinking:i,signature:a,...s}=n;yield{...s,type:"reasoning",reasoning:i,signature:a};continue}else if(g(n,"redacted_thinking")){yield{type:"non_standard",value:n};continue}else if(g(n,"tool_use")&&p(n.name)&&p(n.id)){yield{type:"tool_call",id:n.id,name:n.name,args:n.input};continue}else if(g(n,"input_json_delta")){if(mo(t)&&t.tool_call_chunks?.length){let i=t.tool_call_chunks[0];yield{type:"tool_call_chunk",id:i.id,name:i.name,args:i.args,index:i.index};continue}}else if(g(n,"server_tool_use")&&p(n.name)&&p(n.id)){let{name:i,id:a}=n;if(i==="web_search"){yield{id:a,type:"server_tool_call",name:"web_search",args:{query:Z(()=>{if(typeof n.input=="string")return n.input;if(b(n.input)&&p(n.input.query))return n.input.query;if(p(n.partial_json)){let s=Zt(n.partial_json);if(s?.query)return s.query}return""})}};continue}else if(n.name==="code_execution"){yield{id:a,type:"server_tool_call",name:"code_execution",args:{code:Z(()=>{if(typeof n.input=="string")return n.input;if(b(n.input)&&p(n.input.code))return n.input.code;if(p(n.partial_json)){let s=Zt(n.partial_json);if(s?.code)return s.code}return""})}};continue}}else if(g(n,"web_search_tool_result")&&p(n.tool_use_id)&&U(n.content)){let{content:i,tool_use_id:a}=n;yield{type:"server_tool_call_result",name:"web_search",toolCallId:a,status:"success",output:{urls:i.reduce((s,o)=>g(o,"web_search_result")?[...s,o.url]:s,[])}};continue}else if(g(n,"code_execution_tool_result")&&p(n.tool_use_id)&&b(n.content)){yield{type:"server_tool_call_result",name:"code_execution",toolCallId:n.tool_use_id,status:"success",output:n.content};continue}else if(g(n,"mcp_tool_use")){yield{id:n.id,type:"server_tool_call",name:"mcp_tool_use",args:n.input};continue}else if(g(n,"mcp_tool_result")&&p(n.tool_use_id)&&b(n.content)){yield{type:"server_tool_call_result",name:"mcp_tool_use",toolCallId:n.tool_use_id,status:"success",output:n.content};continue}else if(g(n,"container_upload")){yield{type:"server_tool_call",name:"container_upload",args:n.input};continue}else if(g(n,"search_result")){yield{id:n.id,type:"non_standard",value:n};continue}else if(g(n,"tool_result")){yield{id:n.id,type:"non_standard",value:n};continue}else{let i=$n(n);if(i){yield i;continue}}yield{type:"non_standard",value:n}}}return Array.from(e())}var jn={translateContent:Ln,translateContentChunk:Ln};function mo(t){return typeof t?._getType=="function"&&typeof t.concat=="function"&&t._getType()==="ai"}function _o(t){return Nn(t)?{type:t.type,mimeType:t.mime_type,url:t.url,metadata:t.metadata}:Pn(t)?{type:t.type,mimeType:t.mime_type??"application/octet-stream",data:t.data,metadata:t.metadata}:kn(t)?{type:t.type,mimeType:t.mime_type,fileId:t.id,metadata:t.metadata}:t}function Dn(t){return t.map(_o)}function Bn(t){return!!(g(t,"image_url")&&b(t.image_url)||g(t,"input_audio")&&b(t.input_audio)||g(t,"file")&&b(t.file))}function Hn(t){if(g(t,"image_url")&&b(t.image_url)&&p(t.image_url.url)){let e=Yt({dataUrl:t.image_url.url});return e?{type:"image",mimeType:e.mime_type,data:e.data}:{type:"image",url:t.image_url.url}}else{if(g(t,"input_audio")&&b(t.input_audio)&&p(t.input_audio.data)&&p(t.input_audio.format))return{type:"audio",data:t.input_audio.data,mimeType:`audio/${t.input_audio.format}`};if(g(t,"file")&&b(t.file)&&p(t.file.data)){let e=Yt({dataUrl:t.file.data});if(e)return{type:"file",data:e.data,mimeType:e.mime_type};if(p(t.file.file_id))return{type:"file",fileId:t.file.file_id}}}return t}function go(t){let e=[];typeof t.content=="string"?t.content.length>0&&e.push({type:"text",text:t.content}):e.push(...ot(t.content));for(let r of t.tool_calls??[])e.push({type:"tool_call",id:r.id,name:r.name,args:r.args});return e}function yo(t){let e=[];typeof t.content=="string"?t.content.length>0&&e.push({type:"text",text:t.content}):e.push(...ot(t.content));for(let r of t.tool_calls??[])e.push({type:"tool_call",id:r.id,name:r.name,args:r.args});return e}function ot(t){let e=[];for(let r of t)Bn(r)?e.push(Hn(r)):e.push(r);return e}function wo(t){if(t.type==="url_citation"){let{url:e,title:r,start_index:n,end_index:i}=t;return{type:"citation",url:e,title:r,startIndex:n,endIndex:i}}if(t.type==="file_citation"){let{file_id:e,filename:r,index:n}=t;return{type:"citation",title:r,startIndex:n,endIndex:n,fileId:e}}return t}function Fn(t){function*e(){b(t.additional_kwargs?.reasoning)&&U(t.additional_kwargs.reasoning.summary)&&(yield{type:"reasoning",reasoning:t.additional_kwargs.reasoning.summary.reduce((n,i)=>b(i)&&p(i.text)?`${n}${i.text}`:n,"")});let r=typeof t.content=="string"?[{type:"text",text:t.content}]:t.content;for(let n of r)if(g(n,"text")){let{text:i,annotations:a,phase:s,extras:o,...c}=n,u=b(o)?{...o}:{};p(s)&&(u.phase=s);let l=Object.keys(u).length>0?{extras:u}:{};Array.isArray(a)?yield{...c,...l,type:"text",text:String(i),annotations:a.map(wo)}:yield{...c,...l,type:"text",text:String(i)}}for(let n of t.tool_calls??[])yield{type:"tool_call",id:n.id,name:n.name,args:n.args};if(b(t.additional_kwargs)&&U(t.additional_kwargs.tool_outputs))for(let n of t.additional_kwargs.tool_outputs){if(g(n,"web_search_call")){let i={};if(b(n.action)&&p(n.action.query)&&(i.query=n.action.query),yield{id:n.id,type:"server_tool_call",name:"web_search",args:i},n.status==="completed"||n.status==="failed"){let a={};b(n.action)&&(a.action=n.action),yield{type:"server_tool_call_result",toolCallId:p(n.id)?n.id:"",status:n.status==="completed"?"success":"error",output:a}}continue}else if(g(n,"file_search_call")){yield{id:n.id,type:"server_tool_call",name:"file_search",args:{queries:U(n.queries)?n.queries:[]}},(n.status==="completed"||n.status==="failed")&&(yield{type:"server_tool_call_result",toolCallId:p(n.id)?n.id:"",status:n.status==="completed"?"success":"error",output:U(n.results)?{results:n.results}:{}});continue}else if(g(n,"computer_call")){yield{type:"non_standard",value:n};continue}else if(g(n,"code_interpreter_call")){if(p(n.code)&&(yield{id:n.id,type:"server_tool_call",name:"code_interpreter",args:{code:n.code}}),U(n.outputs)){let i=Z(()=>{if(n.status!=="in_progress"){if(n.status==="completed")return 0;if(n.status==="incomplete")return 127;if(n.status!=="interpreting"&&n.status==="failed")return 1}});for(let a of n.outputs)if(g(a,"logs")){yield{type:"server_tool_call_result",toolCallId:n.id??"",status:"success",output:{type:"code_interpreter_output",returnCode:i??0,stderr:[0,void 0].includes(i)?void 0:String(a.logs),stdout:[0,void 0].includes(i)?String(a.logs):void 0}};continue}}continue}else if(g(n,"mcp_call")){yield{id:n.id,type:"server_tool_call",name:"mcp_call",args:n.input};continue}else if(g(n,"mcp_list_tools")){yield{id:n.id,type:"server_tool_call",name:"mcp_list_tools",args:n.input};continue}else if(g(n,"mcp_approval_request")){yield{type:"non_standard",value:n};continue}else if(g(n,"tool_search_call")){let i={};b(n.arguments)&&Object.assign(i,n.arguments);let a={};p(n.execution)&&(a.execution=n.execution),p(n.status)&&(a.status=n.status),p(n.call_id)&&(a.call_id=n.call_id),yield{id:p(n.id)?n.id:"",type:"server_tool_call",name:"tool_search",args:i,...Object.keys(a).length>0?{extras:a}:{}};continue}else if(g(n,"tool_search_output")){let i={name:"tool_search"};p(n.execution)&&(i.execution=n.execution),yield{type:"server_tool_call_result",toolCallId:p(n.id)?n.id:"",status:n.status==="completed"?"success":n.status==="failed"?"error":"success",output:{tools:U(n.tools)?n.tools:[]},extras:i};continue}else if(g(n,"image_generation_call")){p(n.result)&&(yield{type:"image",mimeType:"image/png",data:n.result,id:p(n.id)?n.id:void 0,metadata:{status:p(n.status)?n.status:void 0}}),yield{type:"non_standard",value:n};continue}b(n)&&(yield{type:"non_standard",value:n})}}return Array.from(e())}function bo(t){function*e(){yield*Fn(t);for(let r of t.tool_call_chunks??[])yield{type:"tool_call_chunk",id:r.id,name:r.name,args:r.args}}return Array.from(e())}var Gn={translateContent:t=>typeof t.content=="string"?go(t):Fn(t),translateContentChunk:t=>typeof t.content=="string"?yo(t):bo(t)};function zn(t){return typeof t=="object"&&t!==null&&"type"in t&&"content"in t&&(typeof t.content=="string"||Array.isArray(t.content))}function Vn(t,e="pretty"){return e==="pretty"?Eo(t):JSON.stringify(t)}function Eo(t){let e=[],r=` ${t.type.charAt(0).toUpperCase()+t.type.slice(1)} Message `,n=Math.floor((80-r.length)/2),i="=".repeat(n),a=r.length%2===0?i:`${i}=`;if(e.push(`${i}${r}${a}`),t.type==="ai"){let s=t;if(s.tool_calls&&s.tool_calls.length>0){e.push("Tool Calls:");for(let o of s.tool_calls){e.push(` ${o.name} (${o.id})`),e.push(` Call ID: ${o.id}`),e.push(" Args:");for(let[c,u]of Object.entries(o.args))e.push(` ${c}: ${typeof u=="object"?JSON.stringify(u):u}`)}}}if(t.type==="tool"){let s=t;s.name&&e.push(`Name: ${s.name}`)}return typeof t.content=="string"&&t.content.trim()&&(e.length>1&&e.push(""),e.push(t.content)),e.join(`
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as Pe,c as Sn}from"./5PV2GUZW.js";var cs=Pe((Mm,Vr)=>{"use strict";var pl=Object.prototype.hasOwnProperty,K="~";function Qe(){}Object.create&&(Qe.prototype=Object.create(null),new Qe().__proto__||(K=!1));function ml(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function os(t,e,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new ml(r,n||t,i),s=K?K+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],a]:t._events[s].push(a):(t._events[s]=a,t._eventsCount++),t}function kt(t,e){--t._eventsCount===0?t._events=new Qe:delete t._events[e]}function G(){this._events=new Qe,this._eventsCount=0}G.prototype.eventNames=function(){var e=[],r,n;if(this._eventsCount===0)return e;for(n in r=this._events)pl.call(r,n)&&e.push(K?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e};G.prototype.listeners=function(e){var r=K?K+e:e,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,s=new Array(a);i<a;i++)s[i]=n[i].fn;return s};G.prototype.listenerCount=function(e){var r=K?K+e:e,n=this._events[r];return n?n.fn?1:n.length:0};G.prototype.emit=function(e,r,n,i,a,s){var o=K?K+e:e;if(!this._events[o])return!1;var c=this._events[o],u=arguments.length,l,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,r),!0;case 3:return c.fn.call(c.context,r,n),!0;case 4:return c.fn.call(c.context,r,n,i),!0;case 5:return c.fn.call(c.context,r,n,i,a),!0;case 6:return c.fn.call(c.context,r,n,i,a,s),!0}for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=arguments[d];c.fn.apply(c.context,l)}else{var f=c.length,h;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),u){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,r);break;case 3:c[d].fn.call(c[d].context,r,n);break;case 4:c[d].fn.call(c[d].context,r,n,i);break;default:if(!l)for(h=1,l=new Array(u-1);h<u;h++)l[h-1]=arguments[h];c[d].fn.apply(c[d].context,l)}}return!0};G.prototype.on=function(e,r,n){return os(this,e,r,n,!1)};G.prototype.once=function(e,r,n){return os(this,e,r,n,!0)};G.prototype.removeListener=function(e,r,n,i){var a=K?K+e:e;if(!this._events[a])return this;if(!r)return kt(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!i||s.once)&&(!n||s.context===n)&&kt(this,a);else{for(var o=0,c=[],u=s.length;o<u;o++)(s[o].fn!==r||i&&!s[o].once||n&&s[o].context!==n)&&c.push(s[o]);c.length?this._events[a]=c.length===1?c[0]:c:kt(this,a)}return this};G.prototype.removeAllListeners=function(e){var r;return e?(r=K?K+e:e,this._events[r]&&kt(this,r)):(this._events=new Qe,this._eventsCount=0),this};G.prototype.off=G.prototype.removeListener;G.prototype.addListener=G.prototype.on;G.prefixed=K;G.EventEmitter=G;typeof Vr<"u"&&(Vr.exports=G)});var us=Pe((Nm,ls)=>{"use strict";ls.exports=(t,e)=>(e=e||(()=>{}),t.then(r=>new Promise(n=>{n(e())}).then(()=>r),r=>new Promise(n=>{n(e())}).then(()=>{throw r})))});var fs=Pe((Pm,$t)=>{"use strict";var _l=us(),Lt=class extends Error{constructor(e){super(e),this.name="TimeoutError"}},ds=(t,e,r)=>new Promise((n,i)=>{if(typeof e!="number"||e<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(e===1/0){n(t);return}let a=setTimeout(()=>{if(typeof r=="function"){try{n(r())}catch(c){i(c)}return}let s=typeof r=="string"?r:`Promise timed out after ${e} milliseconds`,o=r instanceof Error?r:new Lt(s);typeof t.cancel=="function"&&t.cancel(),i(o)},e);_l(t.then(n,i),()=>{clearTimeout(a)})});$t.exports=ds;$t.exports.default=ds;$t.exports.TimeoutError=Lt});var hs=Pe(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});function gl(t,e,r){let n=0,i=t.length;for(;i>0;){let a=i/2|0,s=n+a;r(t[s],e)<=0?(n=++s,i-=a+1):i=a}return n}qr.default=gl});var ps=Pe(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});var yl=hs(),Kr=class{constructor(){this._queue=[]}enqueue(e,r){r=Object.assign({priority:0},r);let n={priority:r.priority,run:e};if(this.size&&this._queue[this.size-1].priority>=r.priority){this._queue.push(n);return}let i=yl.default(this._queue,n,(a,s)=>s.priority-a.priority);this._queue.splice(i,0,n)}dequeue(){let e=this._queue.shift();return e?.run}filter(e){return this._queue.filter(r=>r.priority===e.priority).map(r=>r.run)}get size(){return this._queue.length}};Jr.default=Kr});var Qr=Pe(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});var wl=cs(),ms=fs(),bl=ps(),Ut=()=>{},El=new ms.TimeoutError,Wr=class extends wl{constructor(e){var r,n,i,a;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=Ut,this._resolveIdle=Ut,e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:bl.default},e),!(typeof e.intervalCap=="number"&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(n=(r=e.intervalCap)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:""}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(a=(i=e.interval)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===1/0||e.interval===0,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=e.throwOnTimeout===!0,this._isPaused=e.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=Ut,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=Ut,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){let e=Date.now();if(this._intervalId===void 0){let r=this._intervalEnd-e;if(r<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},r)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){let e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){let r=this._queue.dequeue();return r?(this.emit("active"),r(),e&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(e){if(!(typeof e=="number"&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,r={}){return new Promise((n,i)=>{let a=async()=>{this._pendingCount++,this._intervalCount++;try{let s=this._timeout===void 0&&r.timeout===void 0?e():ms.default(Promise.resolve(e()),r.timeout===void 0?this._timeout:r.timeout,()=>{(r.throwOnTimeout===void 0?this._throwOnTimeout:r.throwOnTimeout)&&i(El)});n(await s)}catch(s){i(s)}this._next()};this._queue.enqueue(a,r),this._tryToStartAnother(),this.emit("add")})}async addAll(e,r){return Promise.all(e.map(async n=>this.add(n,r)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(e=>{let r=this._resolveEmpty;this._resolveEmpty=()=>{r(),e()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(e=>{let r=this._resolveIdle;this._resolveIdle=()=>{r(),e()}})}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}};Xr.default=Wr});var xn=Object.defineProperty,P=(t,e)=>{let r={};for(var n in t)xn(r,n,{get:t[n],enumerable:!0});return e||xn(r,Symbol.toStringTag,{value:"Module"}),r};var no=/([A-Z]+)([A-Z][a-z0-9]+)/g,io=/([a-z0-9])([A-Z])/g,Tn=/[-_\s]+/g;function ao(t){return t.replace(no,"$1_$2").replace(io,"$1_$2").replace(Tn,"_").toLowerCase()}function so(t){let e=t.trim();return/[-_\s]/.test(e)?e.replace(Tn,"_").toLowerCase().replace(/_+([a-z0-9])/g,(r,n)=>n.toUpperCase()):e}function An(t,e){return e?.[t]||ao(t)}function xu(t,e){return e?.[t]||so(t)}function In(t,e,r){let n={};for(let i in t)Object.hasOwn(t,i)&&(n[e(i,r)]=t[i]);return n}var On="__lc_escaped__";function oo(t){return"lc"in t||Object.keys(t).length===1&&"__lc_escaped__"in t}function co(t){return{[On]:t}}function lo(t){return Object.keys(t).length===1&&"__lc_escaped__"in t}function uo(t){return t!==null&&typeof t=="object"&&"lc_serializable"in t&&typeof t.toJSON=="function"}function fo(t){let e;return t!==null&&typeof t=="object"?"lc_id"in t&&Array.isArray(t.lc_id)?e=t.lc_id:e=[t.constructor?.name??"Object"]:e=[typeof t],{lc:1,type:"not_implemented",id:e}}function it(t,e=new WeakSet){if(t!==null&&typeof t=="object"&&!Array.isArray(t)){if(e.has(t))return fo(t);if(uo(t))return t;e.add(t);let r=t;if(oo(r))return e.delete(t),co(r);let n={};for(let[i,a]of Object.entries(r))n[i]=it(a,e);return e.delete(t),n}return Array.isArray(t)?t.map(r=>it(r,e)):t}function Cn(t){if(t!==null&&typeof t=="object"&&!Array.isArray(t)){let e=t;if(lo(e))return e[On];let r={};for(let[n,i]of Object.entries(e))r[n]=Cn(i);return r}return Array.isArray(t)?t.map(e=>Cn(e)):t}var Ru=P({Serializable:()=>ke,get_lc_unique_name:()=>at});function Rn(t){return Array.isArray(t)?[...t]:{...t}}function ho(t,e){let r=Rn(t);for(let[n,i]of Object.entries(e)){let[a,...s]=n.split(".").reverse(),o=r;for(let c of s.reverse()){if(o[c]===void 0)break;o[c]=Rn(o[c]),o=o[c]}o[a]!==void 0&&(o[a]={lc:1,type:"secret",id:[i]})}return r}function at(t){let e=Object.getPrototypeOf(t);return typeof t.lc_name=="function"&&(typeof e.lc_name!="function"||t.lc_name()!==e.lc_name())?t.lc_name():t.name}var ke=class Mn{lc_serializable=!1;lc_kwargs;static lc_name(){return this.name}get lc_id(){return[...this.lc_namespace,at(this.constructor)]}get lc_secrets(){}get lc_attributes(){}get lc_aliases(){}get lc_serializable_keys(){}constructor(e,...r){this.lc_serializable_keys!==void 0?this.lc_kwargs=Object.fromEntries(Object.entries(e||{}).filter(([n])=>this.lc_serializable_keys?.includes(n))):this.lc_kwargs=e??{}}toJSON(){if(!this.lc_serializable)return this.toJSONNotImplemented();if(this.lc_kwargs instanceof Mn||typeof this.lc_kwargs!="object"||Array.isArray(this.lc_kwargs))return this.toJSONNotImplemented();let e={},r={},n=Object.keys(this.lc_kwargs).reduce((o,c)=>(o[c]=c in this?this[c]:this.lc_kwargs[c],o),{});for(let o=Object.getPrototypeOf(this);o;o=Object.getPrototypeOf(o))Object.assign(e,Reflect.get(o,"lc_aliases",this)),Object.assign(r,Reflect.get(o,"lc_secrets",this)),Object.assign(n,Reflect.get(o,"lc_attributes",this));Object.keys(r).forEach(o=>{let c=this,u=n,[l,...d]=o.split(".").reverse();for(let f of d.reverse()){if(!(f in c)||c[f]===void 0)return;(!(f in u)||u[f]===void 0)&&(typeof c[f]=="object"&&c[f]!=null?u[f]={}:Array.isArray(c[f])&&(u[f]=[])),c=c[f],u=u[f]}l in c&&c[l]!==void 0&&(u[l]=u[l]||c[l])});let i={},a=new WeakSet;a.add(this);for(let[o,c]of Object.entries(n))i[o]=it(c,a);let s=In(Object.keys(r).length?ho(i,r):i,An,e);return{lc:1,type:"constructor",id:this.lc_id,kwargs:s}}toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:this.lc_id}}};function pe(t){return typeof t=="object"&&t!==null&&"type"in t&&typeof t.type=="string"&&"source_type"in t&&(t.source_type==="url"||t.source_type==="base64"||t.source_type==="text"||t.source_type==="id")}function Nn(t){return pe(t)&&t.source_type==="url"&&"url"in t&&typeof t.url=="string"}function Pn(t){return pe(t)&&t.source_type==="base64"&&"data"in t&&typeof t.data=="string"}function Nu(t){return pe(t)&&t.source_type==="text"&&"text"in t&&typeof t.text=="string"}function kn(t){return pe(t)&&t.source_type==="id"&&"id"in t&&typeof t.id=="string"}function Pu(t){if(pe(t)){if(t.source_type==="url")return{type:"image_url",image_url:{url:t.url}};if(t.source_type==="base64"){if(!t.mime_type)throw new Error("mime_type key is required for base64 data.");return{type:"image_url",image_url:{url:`data:${t.mime_type};base64,${t.data}`}}}}throw new Error("Unsupported source type. Only 'url' and 'base64' are supported.")}function ku(t){let e=t.split(";")[0].split("/");if(e.length!==2)throw new Error(`Invalid mime type: "${t}" - does not match type/subtype format.`);let r=e[0].trim(),n=e[1].trim();if(r===""||n==="")throw new Error(`Invalid mime type: "${t}" - type or subtype is empty.`);let i={};for(let a of t.split(";").slice(1)){let s=a.split("=");if(s.length!==2)throw new Error(`Invalid parameter syntax in mime type: "${t}".`);let o=s[0].trim(),c=s[1].trim();if(o==="")throw new Error(`Invalid parameter syntax in mime type: "${t}".`);i[o]=c}return{type:r,subtype:n,parameters:i}}function Yt({dataUrl:t,asTypedArray:e=!1}){let r=t.match(/^data:(\w+\/\w+);base64,([A-Za-z0-9+/]+=*)$/),n;if(r){n=r[1].toLowerCase();let i=e?Uint8Array.from(atob(r[2]),a=>a.charCodeAt(0)):r[2];return{mime_type:n,data:i}}}function Lu(t,e){if(t.type==="text"){if(!e.fromStandardTextBlock)throw new Error(`Converter for ${e.providerName} does not implement \`fromStandardTextBlock\` method.`);return e.fromStandardTextBlock(t)}if(t.type==="image"){if(!e.fromStandardImageBlock)throw new Error(`Converter for ${e.providerName} does not implement \`fromStandardImageBlock\` method.`);return e.fromStandardImageBlock(t)}if(t.type==="audio"){if(!e.fromStandardAudioBlock)throw new Error(`Converter for ${e.providerName} does not implement \`fromStandardAudioBlock\` method.`);return e.fromStandardAudioBlock(t)}if(t.type==="file"){if(!e.fromStandardFileBlock)throw new Error(`Converter for ${e.providerName} does not implement \`fromStandardFileBlock\` method.`);return e.fromStandardFileBlock(t)}throw new Error(`Unable to convert content block type '${t.type}' to provider-specific format: not recognized.`)}function g(t,e){return b(t)&&t.type===e}function b(t){return typeof t=="object"&&t!==null}function U(t){return Array.isArray(t)}function p(t){return typeof t=="string"}function Y(t){return typeof t=="number"}function st(t){return t instanceof Uint8Array}function Zt(t){try{return JSON.parse(t)}catch{return}}var Z=t=>t();function po(t){if(t.type==="char_location"&&p(t.document_title)&&Y(t.start_char_index)&&Y(t.end_char_index)&&p(t.cited_text)){let{document_title:e,start_char_index:r,end_char_index:n,cited_text:i,...a}=t;return{...a,type:"citation",source:"char",title:e??void 0,startIndex:r,endIndex:n,citedText:i}}if(t.type==="page_location"&&p(t.document_title)&&Y(t.start_page_number)&&Y(t.end_page_number)&&p(t.cited_text)){let{document_title:e,start_page_number:r,end_page_number:n,cited_text:i,...a}=t;return{...a,type:"citation",source:"page",title:e??void 0,startIndex:r,endIndex:n,citedText:i}}if(t.type==="content_block_location"&&p(t.document_title)&&Y(t.start_block_index)&&Y(t.end_block_index)&&p(t.cited_text)){let{document_title:e,start_block_index:r,end_block_index:n,cited_text:i,...a}=t;return{...a,type:"citation",source:"block",title:e??void 0,startIndex:r,endIndex:n,citedText:i}}if(t.type==="web_search_result_location"&&p(t.url)&&p(t.title)&&p(t.encrypted_index)&&p(t.cited_text)){let{url:e,title:r,encrypted_index:n,cited_text:i,...a}=t;return{...a,type:"citation",source:"url",url:e,title:r,startIndex:Number(n),endIndex:Number(n),citedText:i}}if(t.type==="search_result_location"&&p(t.source)&&p(t.title)&&Y(t.start_block_index)&&Y(t.end_block_index)&&p(t.cited_text)){let{source:e,title:r,start_block_index:n,end_block_index:i,cited_text:a,...s}=t;return{...s,type:"citation",source:"search",url:e,title:r??void 0,startIndex:n,endIndex:i,citedText:a}}}function $n(t){if(g(t,"document")&&b(t.source)&&"type"in t.source){if(t.source.type==="base64"&&p(t.source.media_type)&&p(t.source.data))return{type:"file",mimeType:t.source.media_type,data:t.source.data};if(t.source.type==="url"&&p(t.source.url))return{type:"file",url:t.source.url};if(t.source.type==="file"&&p(t.source.file_id))return{type:"file",fileId:t.source.file_id};if(t.source.type==="text"&&p(t.source.data))return{type:"file",mimeType:String(t.source.media_type??"text/plain"),data:t.source.data}}else if(g(t,"image")&&b(t.source)&&"type"in t.source){if(t.source.type==="base64"&&p(t.source.media_type)&&p(t.source.data))return{type:"image",mimeType:t.source.media_type,data:t.source.data};if(t.source.type==="url"&&p(t.source.url))return{type:"image",url:t.source.url};if(t.source.type==="file"&&p(t.source.file_id))return{type:"image",fileId:t.source.file_id}}}function Un(t){function*e(){for(let r of t){let n=$n(r);n?yield n:yield r}}return Array.from(e())}function Ln(t){function*e(){let r=typeof t.content=="string"?[{type:"text",text:t.content}]:t.content;for(let n of r){if(g(n,"text")&&p(n.text)){let{text:i,citations:a,...s}=n;if(U(a)&&a.length){let o=a.reduce((c,u)=>{let l=po(u);return l?[...c,l]:c},[]);yield{...s,type:"text",text:i,annotations:o};continue}else{yield{...s,type:"text",text:i};continue}}else if(g(n,"thinking")&&p(n.thinking)){let{thinking:i,signature:a,...s}=n;yield{...s,type:"reasoning",reasoning:i,signature:a};continue}else if(g(n,"redacted_thinking")){yield{type:"non_standard",value:n};continue}else if(g(n,"tool_use")&&p(n.name)&&p(n.id)){yield{type:"tool_call",id:n.id,name:n.name,args:n.input};continue}else if(g(n,"input_json_delta")){if(mo(t)&&t.tool_call_chunks?.length){let i=t.tool_call_chunks[0];yield{type:"tool_call_chunk",id:i.id,name:i.name,args:i.args,index:i.index};continue}}else if(g(n,"server_tool_use")&&p(n.name)&&p(n.id)){let{name:i,id:a}=n;if(i==="web_search"){yield{id:a,type:"server_tool_call",name:"web_search",args:{query:Z(()=>{if(typeof n.input=="string")return n.input;if(b(n.input)&&p(n.input.query))return n.input.query;if(p(n.partial_json)){let s=Zt(n.partial_json);if(s?.query)return s.query}return""})}};continue}else if(n.name==="code_execution"){yield{id:a,type:"server_tool_call",name:"code_execution",args:{code:Z(()=>{if(typeof n.input=="string")return n.input;if(b(n.input)&&p(n.input.code))return n.input.code;if(p(n.partial_json)){let s=Zt(n.partial_json);if(s?.code)return s.code}return""})}};continue}}else if(g(n,"web_search_tool_result")&&p(n.tool_use_id)&&U(n.content)){let{content:i,tool_use_id:a}=n;yield{type:"server_tool_call_result",name:"web_search",toolCallId:a,status:"success",output:{urls:i.reduce((s,o)=>g(o,"web_search_result")?[...s,o.url]:s,[])}};continue}else if(g(n,"code_execution_tool_result")&&p(n.tool_use_id)&&b(n.content)){yield{type:"server_tool_call_result",name:"code_execution",toolCallId:n.tool_use_id,status:"success",output:n.content};continue}else if(g(n,"mcp_tool_use")){yield{id:n.id,type:"server_tool_call",name:"mcp_tool_use",args:n.input};continue}else if(g(n,"mcp_tool_result")&&p(n.tool_use_id)&&b(n.content)){yield{type:"server_tool_call_result",name:"mcp_tool_use",toolCallId:n.tool_use_id,status:"success",output:n.content};continue}else if(g(n,"container_upload")){yield{type:"server_tool_call",name:"container_upload",args:n.input};continue}else if(g(n,"search_result")){yield{id:n.id,type:"non_standard",value:n};continue}else if(g(n,"tool_result")){yield{id:n.id,type:"non_standard",value:n};continue}else{let i=$n(n);if(i){yield i;continue}}yield{type:"non_standard",value:n}}}return Array.from(e())}var jn={translateContent:Ln,translateContentChunk:Ln};function mo(t){return typeof t?._getType=="function"&&typeof t.concat=="function"&&t._getType()==="ai"}function _o(t){return Nn(t)?{type:t.type,mimeType:t.mime_type,url:t.url,metadata:t.metadata}:Pn(t)?{type:t.type,mimeType:t.mime_type??"application/octet-stream",data:t.data,metadata:t.metadata}:kn(t)?{type:t.type,mimeType:t.mime_type,fileId:t.id,metadata:t.metadata}:t}function Dn(t){return t.map(_o)}function Bn(t){return!!(g(t,"image_url")&&b(t.image_url)||g(t,"input_audio")&&b(t.input_audio)||g(t,"file")&&b(t.file))}function Hn(t){if(g(t,"image_url")&&b(t.image_url)&&p(t.image_url.url)){let e=Yt({dataUrl:t.image_url.url});return e?{type:"image",mimeType:e.mime_type,data:e.data}:{type:"image",url:t.image_url.url}}else{if(g(t,"input_audio")&&b(t.input_audio)&&p(t.input_audio.data)&&p(t.input_audio.format))return{type:"audio",data:t.input_audio.data,mimeType:`audio/${t.input_audio.format}`};if(g(t,"file")&&b(t.file)&&p(t.file.data)){let e=Yt({dataUrl:t.file.data});if(e)return{type:"file",data:e.data,mimeType:e.mime_type};if(p(t.file.file_id))return{type:"file",fileId:t.file.file_id}}}return t}function go(t){let e=[];typeof t.content=="string"?t.content.length>0&&e.push({type:"text",text:t.content}):e.push(...ot(t.content));for(let r of t.tool_calls??[])e.push({type:"tool_call",id:r.id,name:r.name,args:r.args});return e}function yo(t){let e=[];typeof t.content=="string"?t.content.length>0&&e.push({type:"text",text:t.content}):e.push(...ot(t.content));for(let r of t.tool_calls??[])e.push({type:"tool_call",id:r.id,name:r.name,args:r.args});return e}function ot(t){let e=[];for(let r of t)Bn(r)?e.push(Hn(r)):e.push(r);return e}function wo(t){if(t.type==="url_citation"){let{url:e,title:r,start_index:n,end_index:i}=t;return{type:"citation",url:e,title:r,startIndex:n,endIndex:i}}if(t.type==="file_citation"){let{file_id:e,filename:r,index:n}=t;return{type:"citation",title:r,startIndex:n,endIndex:n,fileId:e}}return t}function Fn(t){function*e(){b(t.additional_kwargs?.reasoning)&&U(t.additional_kwargs.reasoning.summary)&&(yield{type:"reasoning",reasoning:t.additional_kwargs.reasoning.summary.reduce((n,i)=>b(i)&&p(i.text)?`${n}${i.text}`:n,"")});let r=typeof t.content=="string"?[{type:"text",text:t.content}]:t.content;for(let n of r)if(g(n,"text")){let{text:i,annotations:a,phase:s,extras:o,...c}=n,u=b(o)?{...o}:{};p(s)&&(u.phase=s);let l=Object.keys(u).length>0?{extras:u}:{};Array.isArray(a)?yield{...c,...l,type:"text",text:String(i),annotations:a.map(wo)}:yield{...c,...l,type:"text",text:String(i)}}for(let n of t.tool_calls??[])yield{type:"tool_call",id:n.id,name:n.name,args:n.args};if(b(t.additional_kwargs)&&U(t.additional_kwargs.tool_outputs))for(let n of t.additional_kwargs.tool_outputs){if(g(n,"web_search_call")){let i={};if(b(n.action)&&p(n.action.query)&&(i.query=n.action.query),yield{id:n.id,type:"server_tool_call",name:"web_search",args:i},n.status==="completed"||n.status==="failed"){let a={};b(n.action)&&(a.action=n.action),yield{type:"server_tool_call_result",toolCallId:p(n.id)?n.id:"",status:n.status==="completed"?"success":"error",output:a}}continue}else if(g(n,"file_search_call")){yield{id:n.id,type:"server_tool_call",name:"file_search",args:{queries:U(n.queries)?n.queries:[]}},(n.status==="completed"||n.status==="failed")&&(yield{type:"server_tool_call_result",toolCallId:p(n.id)?n.id:"",status:n.status==="completed"?"success":"error",output:U(n.results)?{results:n.results}:{}});continue}else if(g(n,"computer_call")){yield{type:"non_standard",value:n};continue}else if(g(n,"code_interpreter_call")){if(p(n.code)&&(yield{id:n.id,type:"server_tool_call",name:"code_interpreter",args:{code:n.code}}),U(n.outputs)){let i=Z(()=>{if(n.status!=="in_progress"){if(n.status==="completed")return 0;if(n.status==="incomplete")return 127;if(n.status!=="interpreting"&&n.status==="failed")return 1}});for(let a of n.outputs)if(g(a,"logs")){yield{type:"server_tool_call_result",toolCallId:n.id??"",status:"success",output:{type:"code_interpreter_output",returnCode:i??0,stderr:[0,void 0].includes(i)?void 0:String(a.logs),stdout:[0,void 0].includes(i)?String(a.logs):void 0}};continue}}continue}else if(g(n,"mcp_call")){yield{id:n.id,type:"server_tool_call",name:"mcp_call",args:n.input};continue}else if(g(n,"mcp_list_tools")){yield{id:n.id,type:"server_tool_call",name:"mcp_list_tools",args:n.input};continue}else if(g(n,"mcp_approval_request")){yield{type:"non_standard",value:n};continue}else if(g(n,"tool_search_call")){let i={};b(n.arguments)&&Object.assign(i,n.arguments);let a={};p(n.execution)&&(a.execution=n.execution),p(n.status)&&(a.status=n.status),p(n.call_id)&&(a.call_id=n.call_id),yield{id:p(n.id)?n.id:"",type:"server_tool_call",name:"tool_search",args:i,...Object.keys(a).length>0?{extras:a}:{}};continue}else if(g(n,"tool_search_output")){let i={name:"tool_search"};p(n.execution)&&(i.execution=n.execution),yield{type:"server_tool_call_result",toolCallId:p(n.id)?n.id:"",status:n.status==="completed"?"success":n.status==="failed"?"error":"success",output:{tools:U(n.tools)?n.tools:[]},extras:i};continue}else if(g(n,"image_generation_call")){p(n.result)&&(yield{type:"image",mimeType:"image/png",data:n.result,id:p(n.id)?n.id:void 0,metadata:{status:p(n.status)?n.status:void 0}}),yield{type:"non_standard",value:n};continue}b(n)&&(yield{type:"non_standard",value:n})}}return Array.from(e())}function bo(t){function*e(){yield*Fn(t);for(let r of t.tool_call_chunks??[])yield{type:"tool_call_chunk",id:r.id,name:r.name,args:r.args}}return Array.from(e())}var Gn={translateContent:t=>typeof t.content=="string"?go(t):Fn(t),translateContentChunk:t=>typeof t.content=="string"?yo(t):bo(t)};function zn(t){return typeof t=="object"&&t!==null&&"type"in t&&"content"in t&&(typeof t.content=="string"||Array.isArray(t.content))}function Vn(t,e="pretty"){return e==="pretty"?Eo(t):JSON.stringify(t)}function Eo(t){let e=[],r=` ${t.type.charAt(0).toUpperCase()+t.type.slice(1)} Message `,n=Math.floor((80-r.length)/2),i="=".repeat(n),a=r.length%2===0?i:`${i}=`;if(e.push(`${i}${r}${a}`),t.type==="ai"){let s=t;if(s.tool_calls&&s.tool_calls.length>0){e.push("Tool Calls:");for(let o of s.tool_calls){e.push(` ${o.name} (${o.id})`),e.push(` Call ID: ${o.id}`),e.push(" Args:");for(let[c,u]of Object.entries(o.args))e.push(` ${c}: ${typeof u=="object"?JSON.stringify(u):u}`)}}}if(t.type==="tool"){let s=t;s.name&&e.push(`Name: ${s.name}`)}return typeof t.content=="string"&&t.content.trim()&&(e.length>1&&e.push(""),e.push(t.content)),e.join(`
3
3
  `)}var er=Symbol.for("langchain.message");function qn(t){return Array.isArray(t)?t:typeof t=="string"?t===""?[]:[{type:"text",text:t}]:t==null?[]:[t]}function W(t,e){if(typeof t=="string")return t===""?e:typeof e=="string"?t+e:Array.isArray(e)&&e.length===0?t:Array.isArray(e)&&e.some(r=>pe(r))?[{type:"text",source_type:"text",text:t},...e]:[{type:"text",text:t},...e];if(Array.isArray(e)){let r=qn(t);return Le(r,e)??[...r,...e]}else return e===""?t:Array.isArray(t)&&t.some(r=>pe(r))?[...t,{type:"file",source_type:"text",text:e}]:[...qn(t),{type:"text",text:e}]}function Xn(t,e){return t==="error"||e==="error"?"error":"success"}function vo(t,e){function r(n,i){if(typeof n!="object"||n===null||n===void 0)return n;if(i>=e)return Array.isArray(n)?"[Array]":"[Object]";if(Array.isArray(n))return n.map(s=>r(s,i+1));let a={};for(let s of Object.keys(n))a[s]=r(n[s],i+1);return a}return JSON.stringify(r(t,0),null,2)}var q=class extends ke{lc_namespace=["langchain_core","messages"];lc_serializable=!0;get lc_aliases(){return{additional_kwargs:"additional_kwargs",response_metadata:"response_metadata"}}[er]=!0;id;name;content;additional_kwargs;response_metadata;_getType(){return this.type}getType(){return this._getType()}constructor(t){let e=typeof t=="string"||Array.isArray(t)?{content:t}:t;e.additional_kwargs||(e.additional_kwargs={}),e.response_metadata||(e.response_metadata={}),super(e),this.name=e.name,e.content===void 0&&e.contentBlocks!==void 0?(this.content=e.contentBlocks,this.response_metadata={output_version:"v1",...e.response_metadata}):e.content!==void 0?(this.content=e.content??[],this.response_metadata=e.response_metadata):(this.content=[],this.response_metadata=e.response_metadata),this.additional_kwargs=e.additional_kwargs,this.id=e.id}get text(){return typeof this.content=="string"?this.content:Array.isArray(this.content)?this.content.map(t=>typeof t=="string"?t:t.type==="text"?t.text:"").join(""):""}get contentBlocks(){let t=typeof this.content=="string"?[{type:"text",text:this.content}]:this.content;return[Dn,ot,Un].reduce((e,r)=>r(e),t)}toDict(){return{type:this.getType(),data:this.toJSON().kwargs}}static lc_name(){return"BaseMessage"}get _printableFields(){return{id:this.id,content:this.content,name:this.name,additional_kwargs:this.additional_kwargs,response_metadata:this.response_metadata}}static isInstance(t){return typeof t=="object"&&t!==null&&er in t&&t[er]===!0&&zn(t)}static[Symbol.hasInstance](t){return this.isInstance(t)}_updateId(t){this.id=t,this.lc_kwargs.id=t}get[Symbol.toStringTag](){return this.constructor.lc_name()}[Symbol.for("nodejs.util.inspect.custom")](t){if(t===null)return this;let e=vo(this._printableFields,Math.max(4,t));return`${this.constructor.lc_name()} ${e}`}toFormattedString(t="pretty"){return Vn(this,t)}};function td(t){return Array.isArray(t)&&t.every(e=>typeof e.index=="number")}var So=["index","created","timestamp"];function L(t,e,r){let n=r?.ignoreKeys??So;if(t==null&&e==null)return;if(t==null||e==null)return t??e;let i={...t};for(let[a,s]of Object.entries(e))if(i[a]==null)i[a]=s;else{if(s==null)continue;if(typeof i[a]!=typeof s||Array.isArray(i[a])!==Array.isArray(s))throw new Error(`field[${a}] already exists in the message chunk, but with a different type.`);if(typeof i[a]=="string"){if(a==="type")continue;if(["id","name","output_version","model_provider"].includes(a))s&&(i[a]=s);else{if(n.includes(a))continue;i[a]+=s}}else if(typeof i[a]=="number"){if(n.includes(a))continue;i[a]=i[a]+s}else if(typeof i[a]=="object"&&!Array.isArray(i[a]))i[a]=L(i[a],s,r);else if(Array.isArray(i[a]))i[a]=Le(i[a],s,r);else{if(i[a]===s)continue;console.warn(`field[${a}] already exists in this message chunk and value has unsupported type.`)}}return i}function xo(t){return typeof t=="number"||typeof t=="string"}function Kn(t){return typeof t!="object"||t===null||!("index"in t)?!1:xo(t.index)}function Jn(t){if(typeof t!="object"||t===null||!("id"in t))return!1;let e=t.id;return e!=null&&e!==""}function Wn(t){return t.endsWith("_delta")?t.slice(0,-6):t}function To(t,e){return typeof t!="object"||t===null||typeof e!="object"||e===null||!("type"in t)||!("type"in e)?!1:typeof t.type=="string"&&typeof e.type=="string"&&Wn(t.type)!==Wn(e.type)}function Ao(t,e){let r=Kn(e),n=Jn(e);return!r&&!n?-1:t.findIndex(i=>{let a=Kn(i),s=Jn(i);return r&&a?i.index!==e.index||To(i,e)?!1:s&&n?i.id===e.id:!0:!r&&!a&&n&&s?i.id===e.id:!1})}function Le(t,e,r){if(!(t==null&&e==null)){if(t==null||e==null)return t||e;{let n=[...t];for(let i of e){let a=Ao(n,i);if(a!==-1)n[a]=L(n[a],i,r);else{if(typeof i=="object"&&i!==null&&"text"in i&&i.text==="")continue;n.push(i)}}return n}}}function Qn(t,e,r){if(!(t==null&&e==null)){if(t==null||e==null)return t??e;if(typeof t!=typeof e)throw new Error(`Cannot merge objects of different types.
4
4
  Left ${typeof t}
5
5
  Right ${typeof e}`);if(typeof t=="string"&&typeof e=="string")return t+e;if(Array.isArray(t)&&Array.isArray(e))return Le(t,e,r);if(typeof t=="object"&&typeof e=="object")return L(t,e,r);if(t===e)return t;throw new Error(`Can not merge objects of different types.
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  export default $arcgis.t(([{formatDateOnly:h,convertDateFormatToIntlOptions:m,formatTimeOnly:N,formatDate:c}])=>{var T=new Set(["date","esrifieldtypedate","date-only","dateonly","esrifieldtypedateonly","time-only","timeonly","esrifieldtypetimeonly","timestamp-offset","timestampoffset","esrifieldtypetimestampoffset"]),y=e=>{if(!e)return!1;let t=e.toLowerCase();return T.has(t)},f=e=>{if(e instanceof Date)return Number.isNaN(e.getTime())?null:e;if(typeof e=="number"&&Number.isFinite(e)){let t=new Date(e);return Number.isNaN(t.getTime())?null:t}return null},S=e=>!e||e==="system"?Intl.DateTimeFormat().resolvedOptions().timeZone:e==="unknown"?"UTC":e,w=e=>{if(typeof e=="string"&&e)return e;let t=f(e);return t?t.toISOString().slice(0,10):null};var I=(e,t,n)=>{let r=t?.toLowerCase();if(r&&!y(r))return e;if(r==="date-only"){let o=w(e);return o?h(o,m("short-date")):e}if(r==="time-only"){if(typeof e=="string"&&e)return N(e,m("long-time"));let o=f(e);return o?c(o,{...m("long-time"),timeZone:"UTC"}):e}let i=f(e);return i?c(i,{...m("short-date-short-time"),timeZone:S(n)}):e},g=(e,t,n)=>{if(e&&typeof e!="function"){let r="getField"in n&&n.getField?.(e),i=r&&"getFieldDomain"in n&&n.getFieldDomain?n.getFieldDomain(r.name):null;if(i?.type==="coded-value"){let o=i.codedValues.find(s=>s.code===t);return o?o.name:null}}return null},O=e=>!e||e==="system"?Intl.DateTimeFormat().resolvedOptions().timeZone:e==="unknown"?"UTC":e,v=e=>{if(e instanceof Date)return Number.isNaN(e.getTime())?null:e;if(typeof e=="number"&&Number.isFinite(e)){let t=new Date(e);return Number.isNaN(t.getTime())?null:t}if(typeof e=="string"&&e){let t=new Date(e);return Number.isNaN(t.getTime())?null:t}return null},x=(e,t)=>{if(typeof e!="number")return e;let n={};t.minimumFractionDigits!==void 0&&(n.minimumFractionDigits=t.minimumFractionDigits),t.maximumFractionDigits!==void 0&&(n.maximumFractionDigits=t.maximumFractionDigits),t.useGrouping==="always"?n.useGrouping=!0:t.useGrouping==="never"&&(n.useGrouping=!1);try{return new Intl.NumberFormat(void 0,n).format(e)}catch{return e}},C=(e,t,n)=>{let r=v(e);if(!r)return e;let i={};t.dateStyle?i.dateStyle=t.dateStyle:(t.year&&(i.year=t.year),t.month&&(i.month=t.month)),t.timeStyle&&(i.timeStyle=t.timeStyle),t.timeStyle&&t.hour12==="always"?i.hour12=!0:t.timeStyle&&t.hour12==="never"&&(i.hour12=!1),i.timeZone=O(n);try{return new Intl.DateTimeFormat(void 0,i).format(r)}catch{return e}},p=(e,t)=>e.getFieldAlias?.(t)??e.fieldsIndex?.get(t)?.alias??e.fieldsIndex?.get(t)?.name??t,F=(e,t,n,r,i)=>{if(n==null)return n;let o=e.getFieldConfiguration?.(t)?.fieldFormat;return o?.type==="number"?x(n,o):o?.type==="date-time"?!r||y(r)?C(n,o,i):n:I(n,r,i)},j=(e,t,n,r)=>{let i=e.fieldsIndex?.get(t),o=g(t,n,e)??n;return F(e,t,o,i?.type,r)},G=(e,t)=>p(e,t),$=(e,t,n)=>{let r=e.objectIdField,i=t.features.map(s=>s.attributes[r]),o=t.features.map(s=>{let d=s.attributes,u={};return e.fields.forEach(a=>{if(!Object.hasOwn(d,a.name))return;let l=d[a.name];if(a.name===r){u[a.name]=l;return}let D=g(a.name,l,e)??l,b=p(e,a.name);u[b]=F(e,a.name,D,a.type,n)}),u});return{objectIds:i,attributes:o}};return{a:j,b:G,c:$}},"intl")
@@ -1,5 +1,5 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./UZLQALHY.js";var e=`# ArcGIS Knowledge Agent \u2014 Action Summary
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import"./5PV2GUZW.js";var e=`# ArcGIS Knowledge Agent \u2014 Action Summary
3
3
 
4
4
  You are a Knowledge Graph assistant that has executed tool calls to answer a user request.
5
5
 
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a}from"./FJV7CI7O.js";import{a as t}from"./WSIZ2OTL.js";var l=async(i={})=>{let{modelTier:e="default",config:o}=i,{getChatAIUtilityServiceUrl:r}=await import("./4KFTUBFL.js").then(m=>m.default),{createAuthenticatedFetch:n}=await import("./OYHYHALE.js").then(m=>m.default.then(e=>({createAuthenticatedFetch:e}))),c=t[e],s=await r(e);return new a({modelName:c,apiKey:"dummy-key",useResponsesApi:!0,zdrEnabled:!0,configuration:{baseURL:s,fetch:await n({config:o,withCredentials:!0})}})};export{l as a};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a}from"./LDDP7NSY.js";import{a as t}from"./WHIWOYHN.js";var l=async(i={})=>{let{modelTier:e="default",config:o}=i,{getChatAIUtilityServiceUrl:r}=await import("./NDSYDURO.js").then(m=>m.default),{createAuthenticatedFetch:n}=await import("./Z44NI2YQ.js").then(m=>m.default.then(e=>({createAuthenticatedFetch:e}))),c=t[e],s=await r(e);return new a({modelName:c,apiKey:"dummy-key",useResponsesApi:!0,zdrEnabled:!0,configuration:{baseURL:s,fetch:await n({config:o,withCredentials:!0})}})};export{l as a};
@@ -1,5 +1,5 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as U}from"./46DT6BIG.js";import{A as D,h as A,i as Q,j as G,k as J,r as Z,s as K,t as Y}from"./RE7MJTEF.js";var F=function(){return F=Object.assign||function(r){for(var t,a=1,s=arguments.length;a<s;a++){t=arguments[a];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},F.apply(this,arguments)},q={exports:{}},g={},X={exports:{}},S={};function ne(){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 ke(e,r,t){}function Le(e,r,t){}var Ee=/javascript\s*\:/img;function Oe(e,r){return Ee.test(r)?"":r}S.whiteList=ne();S.getDefaultWhiteList=ne;S.onAttr=ke;S.onIgnoreAttr=Le;S.safeAttrValue=Oe;var _e={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,s;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,s=e.length;a<s;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,"")}},O=_e;function Ce(e,r){e=O.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,a=!1,s=0,i=0,l="";function n(){if(!a){var c=O.trim(e.slice(s,i)),u=c.indexOf(":");if(u!==-1){var d=O.trim(c.slice(0,u)),p=O.trim(c.slice(u+1));if(d){var h=r(s,l.length,d,p,c);h&&(l+=h+"; ")}}}s=i+1}for(;i<t;i++){var o=e[i];if(o==="/"&&e[i+1]==="*"){var f=e.indexOf("*/",i+2);if(f===-1)break;i=f+1,s=i+1,a=!1}else o==="("?a=!0:o===")"?a=!1:o===";"?a||n():o===`
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as U}from"./5INBG23U.js";import{A as D,h as A,i as Q,j as G,k as J,r as Z,s as K,t as Y}from"./NAVK5JJ2.js";var F=function(){return F=Object.assign||function(r){for(var t,a=1,s=arguments.length;a<s;a++){t=arguments[a];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},F.apply(this,arguments)},q={exports:{}},g={},X={exports:{}},S={};function ne(){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 ke(e,r,t){}function Le(e,r,t){}var Ee=/javascript\s*\:/img;function Oe(e,r){return Ee.test(r)?"":r}S.whiteList=ne();S.getDefaultWhiteList=ne;S.onAttr=ke;S.onIgnoreAttr=Le;S.safeAttrValue=Oe;var _e={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,s;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,s=e.length;a<s;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,"")}},O=_e;function Ce(e,r){e=O.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,a=!1,s=0,i=0,l="";function n(){if(!a){var c=O.trim(e.slice(s,i)),u=c.indexOf(":");if(u!==-1){var d=O.trim(c.slice(0,u)),p=O.trim(c.slice(u+1));if(d){var h=r(s,l.length,d,p,c);h&&(l+=h+"; ")}}}s=i+1}for(;i<t;i++){var o=e[i];if(o==="/"&&e[i+1]==="*"){var f=e.indexOf("*/",i+2);if(f===-1)break;i=f+1,s=i+1,a=!1}else o==="("?a=!0:o===")"?a=!1:o===";"?a||n():o===`
3
3
  `&&n()}return O.trim(l)}var Ie=Ce,I=S,$e=Ie;function ee(e){return e==null}function Ve(e){var r={};for(var t in e)r[t]=e[t];return r}function oe(e){e=Ve(e||{}),e.whiteList=e.whiteList||I.whiteList,e.onAttr=e.onAttr||I.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||I.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||I.safeAttrValue,this.options=e}oe.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,s=t.onAttr,i=t.onIgnoreAttr,l=t.safeAttrValue,n=$e(e,function(o,f,c,u,d){var p=a[c],h=!1;if(p===!0?h=p:typeof p=="function"?h=p(u):p instanceof RegExp&&(h=p.test(u)),h!==!0&&(h=!1),u=l(c,u),!!u){var v={position:f,sourcePosition:o,source:d,isWhite:h};if(h){var m=s(c,u,v);return ee(m)?c+":"+u:m}else{var m=i(c,u,v);if(!ee(m))return m}}});return n};var Pe=oe;(function(e,r){var t=S,a=Pe;function s(l,n){var o=new a(n);return o.process(l)}r=e.exports=s,r.FilterCSS=a;for(var i in t)r[i]=t[i]})(X,X.exports);var H=X.exports,j={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,s;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,s=e.length;a<s;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}},Fe=H.FilterCSS,Ne=H.getDefaultWhiteList,N=j;function le(){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 fe=new Fe;function Re(e,r,t){}function ze(e,r,t){}function We(e,r,t){}function Ge(e,r,t){}function ue(e){return e.replace(Ue,"&lt;").replace(qe,"&gt;")}function De(e,r,t,a){if(t=me(t),r==="href"||r==="src"){if(t=N.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($.lastIndex=0,$.test(t))return""}else if(r==="style"){if(te.lastIndex=0,te.test(t)||(re.lastIndex=0,re.test(t)&&($.lastIndex=0,$.test(t))))return"";a!==!1&&(a=a||fe,t=a.process(t))}return t=ve(t),t}var Ue=/</g,qe=/>/g,Xe=/"/g,He=/&quot;/g,je=/&#([a-zA-Z0-9]*);?/gim,Me=/&colon;?/gim,Be=/&newline;?/gim,$=/((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,te=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,re=/u\s*r\s*l\s*\(.*/gi;function ce(e){return e.replace(Xe,"&quot;")}function ge(e){return e.replace(He,'"')}function de(e){return e.replace(je,function(t,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function pe(e){return e.replace(Me,":").replace(Be," ")}function he(e){for(var r="",t=0,a=e.length;t<a;t++)r+=e.charCodeAt(t)<32?" ":e.charAt(t);return N.trim(r)}function me(e){return e=ge(e),e=de(e),e=pe(e),e=he(e),e}function ve(e){return e=ce(e),e=ue(e),e}function Qe(){return""}function Je(e,r){typeof r!="function"&&(r=function(){});var t=!Array.isArray(e);function a(l){return t?!0:N.indexOf(e,l)!==-1}var s=[],i=!1;return{onIgnoreTag:function(l,n,o){if(a(l))if(o.isClosing){var f="[/removed]",c=o.position+f.length;return s.push([i!==!1?i:o.position,c]),i=!1,f}else return i||(i=o.position),"[removed]";else return r(l,n,o)},remove:function(l){var n="",o=0;return N.forEach(s,function(f){n+=l.slice(o,f[0]),o=f[1]}),n+=l.slice(o),n}}}function Ze(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 s=e.indexOf("-->",a);if(s===-1)break;t=s+3}return r}function Ke(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("")}g.whiteList=le();g.getDefaultWhiteList=le;g.onTag=Re;g.onIgnoreTag=ze;g.onTagAttr=We;g.onIgnoreTagAttr=Ge;g.safeAttrValue=De;g.escapeHtml=ue;g.escapeQuote=ce;g.unescapeQuote=ge;g.escapeHtmlEntities=de;g.escapeDangerHtml5Entities=pe;g.clearNonPrintableCharacter=he;g.friendlyAttrValue=me;g.escapeAttrValue=ve;g.onIgnoreTagStripAll=Qe;g.StripTagBody=Je;g.stripCommentTag=Ze;g.stripBlankChar=Ke;g.cssFilter=fe;g.getDefaultCSSWhiteList=Ne;var R={},x=j;function Ye(e){var r=x.spaceIndex(e),t;return r===-1?t=e.slice(1,-1):t=e.slice(1,r+1),t=x.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function et(e){return e.slice(0,2)==="</"}function tt(e,r,t){var a="",s=0,i=!1,l=!1,n=0,o=e.length,f="",c="";e:for(n=0;n<o;n++){var u=e.charAt(n);if(i===!1){if(u==="<"){i=n;continue}}else if(l===!1){if(u==="<"){a+=t(e.slice(s,n)),i=n,s=n;continue}if(u===">"){a+=t(e.slice(s,i)),c=e.slice(i,n+1),f=Ye(c),a+=r(i,a.length,f,c,et(c)),s=n+1,i=!1;continue}if(u==='"'||u==="'")for(var d=1,p=e.charAt(n-d);p.trim()===""||p==="=";){if(p==="="){l=u;continue e}p=e.charAt(n-++d)}}else if(u===l){l=!1;continue}}return s<e.length&&(a+=t(e.substr(s))),a}var rt=/[^a-zA-Z0-9\\_:.-]/gim;function at(e,r){var t=0,a=0,s=[],i=!1,l=e.length;function n(d,p){if(d=x.trim(d),d=d.replace(rt,"").toLowerCase(),!(d.length<1)){var h=r(d,p||"");h&&s.push(h)}}for(var o=0;o<l;o++){var f=e.charAt(o),c,u;if(i===!1&&f==="="){i=e.slice(t,o),t=o+1,a=e.charAt(t)==='"'||e.charAt(t)==="'"?t:st(e,o+1);continue}if(i!==!1&&o===a){if(u=e.indexOf(f,o+1),u===-1)break;c=x.trim(e.slice(a+1,u)),n(i,c),i=!1,o=u,t=o+1;continue}if(/\s|\n|\t/.test(f))if(e=e.replace(/\s|\n|\t/g," "),i===!1)if(u=it(e,o),u===-1){c=x.trim(e.slice(t,o)),n(c),i=!1,t=o+1;continue}else{o=u-1;continue}else if(u=nt(e,o-1),u===-1){c=x.trim(e.slice(t,o)),c=ae(c),n(i,c),i=!1,t=o+1;continue}else continue}return t<e.length&&(i===!1?n(e.slice(t)):n(i,ae(x.trim(e.slice(t))))),x.trim(s.join(" "))}function it(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="="?r:-1}}function st(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="'"||t==='"'?r:-1}}function nt(e,r){for(;r>0;r--){var t=e[r];if(t!==" ")return t==="="?r:-1}}function ot(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function ae(e){return ot(e)?e.substr(1,e.length-2):e}R.parseTag=tt;R.parseAttr=at;var lt=H.FilterCSS,b=g,ye=R,ft=ye.parseTag,ut=ye.parseAttr,P=j;function V(e){return e==null}function ct(e){var r=P.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=P.trim(e.slice(r+1,-1));var t=e[e.length-1]==="/";return t&&(e=P.trim(e.slice(0,-1))),{html:e,closing:t}}function gt(e){var r={};for(var t in e)r[t]=e[t];return r}function dt(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 be(e){e=gt(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=b.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=dt(e.whiteList||e.allowList):e.whiteList=b.whiteList,e.onTag=e.onTag||b.onTag,e.onTagAttr=e.onTagAttr||b.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||b.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||b.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||b.safeAttrValue,e.escapeHtml=e.escapeHtml||b.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new lt(e.css))}be.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,s=t.onTag,i=t.onIgnoreTag,l=t.onTagAttr,n=t.onIgnoreTagAttr,o=t.safeAttrValue,f=t.escapeHtml,c=r.cssFilter;t.stripBlankChar&&(e=b.stripBlankChar(e)),t.allowCommentTag||(e=b.stripCommentTag(e));var u=!1;t.stripIgnoreTagBody&&(u=b.StripTagBody(t.stripIgnoreTagBody,i),i=u.onIgnoreTag);var d=ft(e,function(p,h,v,m,Se){var C={sourcePosition:p,position:h,isClosing:Se,isWhite:Object.prototype.hasOwnProperty.call(a,v)},L=s(v,m,C);if(!V(L))return L;if(C.isWhite){if(C.isClosing)return"</"+v+">";var M=ct(m),Te=a[v],B=ut(M.html,function(T,k){var W=P.indexOf(Te,T)!==-1,E=l(v,T,k,W);return V(E)?W?(k=o(v,T,k,c),k?T+'="'+k+'"':T):(E=n(v,T,k,W),V(E)?void 0:E):E});return m="<"+v,B&&(m+=" "+B),M.closing&&(m+=" /"),m+=">",m}else return L=i(v,m,C),V(L)?f(m):L},f);return u&&(d=u.remove(d)),d};var pt=be;(function(e,r){var t=g,a=R,s=pt;function i(n,o){var f=new s(o);return f.process(n)}r=e.exports=i,r.filterXSS=i,r.FilterXSS=s,(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)})(q,q.exports);var w=q.exports,ht=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},mt=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],y=["color","display","fill-opacity","font-family","font-size","font-style","font-weight","opacity","shape-rendering","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-rendering","transform","visibility"],vt=["cx","cy","r"],yt=["cx","cy","rx","ry"],bt=["x1","x2","y1","y2"],ie=["points"],wt=["rx","ry","x","y"],se=["dx","dy","x","y"],we=(function(){function e(r,t){var a=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],animate:[],animatetransform:[],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],circle:vt.concat(y),clippath:[],code:["style"],dd:["style"],defs:[],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],ellipse:yt.concat(y),em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],g:y.slice(),h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],image:[],img:["alt","border","height","src","style","width"],li:[],line:bt.concat(y),lineargradient:[],main:["style"],mark:["style"],marker:[],mask:[],nav:["style"],ol:[],p:["style"],path:["d"].concat(y),pattern:[],polygon:ie.concat(y),polyline:ie.concat(y),pre:["style"],radialgradient:[],rect:wt.concat(y),section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],stop:["offset","stop-color","stop-opacity"],strong:[],sub:["style"],summary:["style"],sup:["style"],svg:["height","preserveaspectratio","viewbox","width","xmlns"].concat(y),switch:[],symbol:[],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"],text:se.concat(y),textpath:[],time:["style"],tspan:se.concat(y),u:[],ul:[],use:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=F(F({},w.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,"row-gap":!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","clickmobile","com.salesforce.fieldservice"],this.arcgisFilterOptions={allowCommentTag:!0,onTagAttr:function(i,l,n){if(i==="svg"){if(l==="viewbox")return'viewBox="'.concat(w.escapeAttrValue(n),'"');if(l==="preserveaspectratio")return'preserveAspectRatio="'.concat(w.escapeAttrValue(n),'"')}if(mt.indexOf(l)>-1)return"".concat(l,'="').concat(w.escapeAttrValue(n),'"')},safeAttrValue:function(i,l,n,o){return i==="a"&&l==="href"||(i==="img"||i==="source")&&l==="src"?a.sanitizeUrl(n):w.safeAttrValue(i,l,n,o)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var s;r&&!t?s=r:r&&t?(s=Object.create(this.arcgisFilterOptions),s.css={whiteList:this.arcgisCSSWhiteList},Object.keys(r).forEach(function(i){if(i==="whiteList")s.whiteList=a._extendObjectOfArrays([a.arcgisWhiteList,r.whiteList||{}]);else if(i==="css"){var l=r.css.whiteList;l!=null&&r.css instanceof Object&&Object.keys(l).forEach(function(n){return s.css.whiteList[n]=l[n]})}else s[i]=r[i]})):(s=Object.create(this.arcgisFilterOptions),s.whiteList=this.arcgisWhiteList,s.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=s,this._xssFilter=new w.FilterXSS(s)}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,s=a===void 0?!0:a,i=this._trim(r.substring(0,r.indexOf(":"))),l=r==="/",n=/^#/.test(r),o=i&&this.allowedProtocols.indexOf(i.toLowerCase())>-1;return l||n||o?w.escapeAttrValue(r):!i&&!s?w.escapeAttrValue("https://".concat(r)):""},e.prototype.sanitizeHTMLAttribute=function(r,t,a,s){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(r,t,a,s):w.safeAttrValue(r,t,a,s)},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,s){return t.test(a)?a:"&#x".concat(Number(r.charCodeAt(s)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(r){var t={};return r.forEach(function(a){Object.keys(a).forEach(function(s){Array.isArray(a[s])&&Array.isArray(t[s])?t[s]=t[s].concat(a[s]):t[s]=a[s]})}),t},e.prototype._iterateOverObject=function(r,t){var a=this;t===void 0&&(t={});try{var s=!1,i=void 0;if(Array.isArray(r))i=r.reduce(function(n,o){var f=a.validate(o,t);return f.isValid?n.concat([o]):(s=!0,n.concat([f.sanitized]))},[]);else if(ht(r)){var l=Object.keys(r);i=l.reduce(function(n,o){var f=r[o],c=a.validate(f,t);return c.isValid?n[o]=f:(s=!0,n[o]=c.sanitized),n},{})}else return t.allowUndefined&&typeof r>"u"?void 0:null;return s?i:r}catch{return null}},e.prototype._trim=function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},e})();var _=class extends Y{constructor(r){if(super(r),this.it=G,r.type!==Z.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===G||r==null)return this._t=void 0,this.it=r;if(r===Q)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:[]}}};_.directiveName="unsafeHTML",_.resultType=1;var Ae=K(_);U.use({gfm:!0,breaks:!0,async:!1});var At=new we({whiteList:{ol:["start"],thead:[],code:["class"]}},!0);function xe(e,r){let t=e.indexOf("{",r),a=e.indexOf("[",r);return t===-1?a:a===-1?t:Math.min(t,a)}function xt(e){if(e.trimStart().startsWith("```"))return null;for(let r=xe(e,0);r!==-1;r=xe(e,r+1)){let t=0,a=0;for(let s=r;s<e.length;s++){let i=e[s];if(i==="{"?t++:i==="}"?t--:i==="["?a++:i==="]"&&a--,t<0||a<0)break;if(t===0&&a===0&&s>r)return e.slice(r,s+1)}}return null}function Rt(e){if(!e)return"";let r=e,t=xt(e);if(t)try{let s=JSON.parse(t),i=`
4
4
 
5
5
  \`\`\`json
@@ -1,5 +1,5 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./UZLQALHY.js";var e=`You are a knowledgeable GIS expert.
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import"./5PV2GUZW.js";var e=`You are a knowledgeable GIS expert.
3
3
 
4
4
  You are given a Feature Service description and title.
5
5
 
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a}from"./H6J65TWL.js";import"./QBZP6XOE.js";import"./GS5JDPZH.js";import"./A4ZVCRVF.js";import"./N2GN5WOI.js";import"./272R36XK.js";import"./5PV2GUZW.js";export{a as goToLayerTool};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ var e=async(a,s)=>{let{dispatchCustomEvent:t}=await import("./5HNKH5OK.js");await t("trace_message",a,s)},n=async(a,s)=>{let{dispatchCustomEvent:t}=await import("./5HNKH5OK.js");await t("graph_ux_suggestion",a,s)};export{e as a,n as b};
@@ -1,5 +1,5 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as o}from"./FDOMMK2M.js";import{a as r}from"./RFPTOFM4.js";import{Ga as a}from"./FSLPYC4Y.js";var f=(l,i)=>{let t=Array.from(l.values()).find(({layerItem:e})=>e.title?.toLowerCase().includes(i.toLowerCase()));if(!t){let e=Array.from(l.values()).map(y=>y.layerItem.title).join(", ");return`Could not find a layer matching "${i}". Available layers: ${e}`}let s=Array.from(t.fieldRegistry.values()),n=s.map(e=>`- **${e.alias||e.name}** (\`${e.name}\`, ${e.type})${e.description?`: ${e.description}`:""}`).join(`
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as o}from"./CETIZ4IQ.js";import{a as r}from"./GS5JDPZH.js";import{Ga as a}from"./A4ZVCRVF.js";var f=(l,i)=>{let t=Array.from(l.values()).find(({layerItem:e})=>e.title?.toLowerCase().includes(i.toLowerCase()));if(!t){let e=Array.from(l.values()).map(y=>y.layerItem.title).join(", ");return`Could not find a layer matching "${i}". Available layers: ${e}`}let s=Array.from(t.fieldRegistry.values()),n=s.map(e=>`- **${e.alias||e.name}** (\`${e.name}\`, ${e.type})${e.description?`: ${e.description}`:""}`).join(`
3
3
  `);return`**${t.layerItem.title}** has ${s.length} field(s):
4
4
 
5
5
  ${n}`},m=({layerTitle:l},i)=>{let t=o(i,"layersAndFieldsRegistry");return f(t,l)},u=a(m,{name:"listLayerFields",description:"Lists all fields for a given layer by title. Use ONLY when the user explicitly asks to see fields, columns, or attributes of a specific named layer. Do NOT call this tool for general help questions, capability overviews, or layer listing.",schema:r.object({layerTitle:r.string().describe("The title or partial title of the layer to list fields for.")})});export{u as a};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{fa as c}from"./2UKFCF2J.js";function f(e,s,t){return{...e,status:s,summary:t}}function g(e){let s=Object.entries(e).filter(([t,n])=>t!=="agentExecutionContext"&&t!=="outputMessage"&&t!=="summary"&&t!=="status"&&n!==void 0);if(s.length!==0)try{return JSON.stringify(Object.fromEntries(s),null,2)}catch{return}}function m(e,s,t=[]){let n=s.safeParse(e);if(n.success){let u={...n.data},r=g(u),a=r??"Agent produced structured output.",o=r??u.outputMessage,i={...u,...o?{outputMessage:o}:{},agentExecutionContext:{messages:[...t,new c(typeof o=="string"&&o.trim()?o:a)]}};return f(i,"success",a)}else throw new Error(`Agent output schema validation failed: ${n.error.message}`)}function l(e,s){let t={outputMessage:e.outputMessage};if(s){let n=s.shape,u=e;for(let r of Object.keys(n??{}))r in e&&(t[r]=u[r])}return t}export{f as a,m as b,l as c};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{fa as c}from"./272R36XK.js";function f(e,s,t){return{...e,status:s,summary:t}}function g(e){let s=Object.entries(e).filter(([t,n])=>t!=="agentExecutionContext"&&t!=="outputMessage"&&t!=="summary"&&t!=="status"&&n!==void 0);if(s.length!==0)try{return JSON.stringify(Object.fromEntries(s),null,2)}catch{return}}function m(e,s,t=[]){let n=s.safeParse(e);if(n.success){let u={...n.data},r=g(u),a=r??"Agent produced structured output.",o=r??u.outputMessage,i={...u,...o?{outputMessage:o}:{},agentExecutionContext:{messages:[...t,new c(typeof o=="string"&&o.trim()?o:a)]}};return f(i,"success",a)}else throw new Error(`Agent output schema validation failed: ${n.error.message}`)}function l(e,s){let t={outputMessage:e.outputMessage};if(s){let n=s.shape,u=e;for(let r of Object.keys(n??{}))r in e&&(t[r]=u[r])}return t}export{f as a,m as b,l as c};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import q from"./CWZG7DML.js";import{a as p,c as m}from"./NYFL2F5L.js";import"./YD5LVM7V.js";import o from"./AOT3PM2Q.js";import k from"./YGSDJ4V3.js";import j from"./M52LKZN7.js";import i from"./UXDRYDOD.js";import h from"./2H32MDP2.js";import"./OPQCY33W.js";import"./QAVDW7A7.js";import g from"./YSEHJQ4L.js";import f from"./CV5YAJMD.js";import"./OKDXM5D4.js";import e from"./UP7RW5K2.js";import"./M5UMOOL2.js";import"./H6J65TWL.js";import"./XBWGOD6I.js";import d from"./J3T5HB77.js";import"./AGDGDULE.js";import"./FIZMK7GS.js";import"./LMAIOLS2.js";import"./7OQK2F7O.js";import c from"./Y3ZKMD47.js";import b from"./BMVPOFHU.js";import"./QBZP6XOE.js";import"./3COVQI26.js";import"./CETIZ4IQ.js";import"./PR4VMSKD.js";import"./X3YFCWQZ.js";import"./2JD3G7IW.js";import"./LDDP7NSY.js";import"./WHIWOYHN.js";import{C as n,x as a}from"./NAVK5JJ2.js";import"./OUMTV5H5.js";import{a as l}from"./I2RQZAFF.js";import"./H653UVNH.js";import"./GS5JDPZH.js";import"./2WY5MPMY.js";import"./S6OUM5X2.js";import"./XLHYQNAM.js";import"./7GDMXAF5.js";import"./5XZ5VL42.js";import"./C3VLDYS2.js";import"./A4ZVCRVF.js";import"./N2GN5WOI.js";import"./272R36XK.js";import"./5PV2GUZW.js";export default $arcgis.t(([])=>{var h=(t,i)=>{let d=Array.from(t?.values()??[]).map(({fieldRegistry:s,layerItem:r})=>{let e=Array.from(s.values(),({name:u})=>u);return{title:r.title,description:r.description,fields:e.slice(0,10),additionalFieldCount:Math.max(e.length-10,0)}}),g=(i?.list()??[]).map(({agent:{description:s,id:r,name:e}})=>({id:r,name:e,description:s}));return JSON.stringify({layers:d,agents:g},null,2)},f=({config:t})=>{let i=t?.configurable?.services;return h(i?.layersAndFieldsRegistry,i?.agentRegistry)},y=[async()=>(await import("./MNMCIS4E.js")).default],c=l({id:"help",name:"Help Agent",description:"Answers questions about the map, its layers, and fields in those layers, including listing all or matching layers by title or description and fields by name, alias, type, or description. Explains assistant capabilities and redirects unsupported map actions or unrelated questions to map-related help.",skillLoaders:y,modelTier:"default",systemPrompt:"You are an ArcGIS map help agent.",runtimeContextLoader:f});var o=class extends a{constructor(){super(...arguments),this.agent=c}static{this.properties={referenceElement:1}}#t;#i;getContext(){if(!this.#t)throw new Error("arcgis-assistant-help-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=p(this,"arcgis-assistant-help-agent"),this.#i=m(this)}disconnectedCallback(){this.#i?.unregister(this.agent.id),super.disconnectedCallback()}};n("arcgis-assistant-help-agent",o);return o},"intl","smartMapping/statistics/summaryStatistics","smartMapping/statistics/uniqueValues","rest/knowledgeGraphService",b,c,d,e,f,g,h,i,j,k,o,q)
@@ -1,5 +1,5 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{_a as a}from"./2UKFCF2J.js";import"./UZLQALHY.js";async function c(e,i,o){if(o===void 0)throw new Error(["Unable to dispatch a custom event without a parent run id.",'"dispatchCustomEvent" can only be called from within an existing run (e.g.,',"inside a tool or a RunnableLambda).",`
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{_a as a}from"./272R36XK.js";import"./5PV2GUZW.js";async function c(e,i,o){if(o===void 0)throw new Error(["Unable to dispatch a custom event without a parent run id.",'"dispatchCustomEvent" can only be called from within an existing run (e.g.,',"inside a tool or a RunnableLambda).",`
3
3
 
4
4
  If you continue to see this error, please import from "@langchain/core/callbacks/dispatch/web"`,"and explicitly pass in a config parameter.",`
5
5
 
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  function U(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var A=U();function ke(r){A=r}var T={exec:()=>null};function P(r){let e=[];return t=>{let s=Math.max(0,Math.min(3,t-1)),n=e[s];return n||(n=r(s),e[s]=n),n}}function u(r,e=""){let t=typeof r=="string"?r:r.source,s={replace:(n,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(b.caret,"$1"),t=t.replace(n,a),s},getRegex:()=>new RegExp(t,e)};return s}var ze=((r="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+r)}catch{return!1}})(),b={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:P(r=>new RegExp(`^ {0,${r}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:P(r=>new RegExp(`^ {0,${r}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:P(r=>new RegExp(`^ {0,${r}}(?:\`\`\`|~~~)`)),headingBeginRegex:P(r=>new RegExp(`^ {0,${r}}#`)),htmlBeginRegex:P(r=>new RegExp(`^ {0,${r}}(?:</?(?:${Z})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:P(r=>new RegExp(`^ {0,${r}}>`))},Ae=/^(?:[ \t]*(?:\n|$))+/,_e=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Pe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,q=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Le=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,W=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,fe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,de=u(fe).replace(/bull/g,W).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ie=u(fe).replace(/bull/g,W).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),J=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ee=/^[^\n]+/,K=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ce=u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",K).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Be=u(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,W).getRegex(),Z="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",V=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ve=u("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",V).replace("tag",Z).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xe=r=>u(J).replace("hr",q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",r).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z).getRegex(),qe=xe(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Ze=xe(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),De=u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ze).getRegex(),Y={blockquote:De,code:_e,def:Ce,fences:Pe,heading:Le,hr:q,html:ve,lheading:de,list:Be,newline:Ae,paragraph:qe,table:T,text:Ee},ne=u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z).getRegex(),Qe={...Y,lheading:Ie,table:ne,paragraph:u(J).replace("hr",q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ne).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z).getRegex()},Oe={...Y,html:u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",V).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:T,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:u(J).replace("hr",q).replace("heading",` *#{1,6} *[^
3
3
  ]`).replace("lheading",de).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Me=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,je=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,be=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,Ne=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,y=/[\p{P}\p{S}]/u,L=/[\s\p{P}\p{S}]/u,D=/[^\s\p{P}\p{S}]/u,He=u(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,L).getRegex(),Ge=/[\p{Pi}\p{Ps}"']/u,me=/(?!~)[\p{P}\p{S}]/u,Fe=/(?!~)[\s\p{P}\p{S}]/u,Xe=/(?:[^\s\p{P}\p{S}]|~)/u,Ue=u(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ze?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),we=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,We=u(we,"u").replace(/punct/g,y).getRegex(),Je=u(we,"u").replace(/punct/g,me).getRegex(),Ke=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Ve=u(Ke,"u").replace(/openQuote/g,Ge).replace(/punct/g,y).getRegex(),Se="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ye=u(Se,"gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,L).replace(/punct/g,y).getRegex(),et=u(Se,"gu").replace(/notPunctSpace/g,Xe).replace(/punctSpace/g,Fe).replace(/punct/g,me).getRegex(),tt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",rt=u(tt,"gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,L).replace(/punct/g,y).getRegex(),nt=u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,L).replace(/punct/g,y).getRegex(),st="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",it=u(st,"gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,L).replace(/punct/g,y).getRegex(),lt=u(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,y).getRegex(),at="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ot=u(at,"gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,L).replace(/punct/g,y).getRegex(),ct=u(/\\(punct)/,"gu").replace(/punct/g,y).getRegex(),pt=u(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ht=u(V).replace("(?:-->|$)","-->").getRegex(),ut=u("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ht).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),$e=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,O=u(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",$e).getRegex(),gt=u(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",O).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),kt=u(/^!?\[(label)\]\[(ref)\]/).replace("label",O).replace("ref",K).getRegex(),ft=u(/^!?\[(ref)\](?:\[\])?/).replace("ref",K).getRegex(),se=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,dt=u(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",$e).getRegex(),xt=u("reflink|nolink(?!\\()","g").replace("reflink",u(/^!?\[(label)\]\[(ref)\]/).replace("label",dt).replace("ref",se).getRegex()).replace("nolink",u(/^!?\[(ref)\](?:\[\])?/).replace("ref",se).getRegex()).getRegex(),ie=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,bt=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,mt=u(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,bt).getRegex(),ee={_backpedal:T,anyPunctuation:ct,autolink:pt,blockSkip:Ue,br:be,code:je,del:T,delLDelim:T,delRDelim:T,emStrongLDelim:We,emStrongRDelimAst:Ye,emStrongRDelimUnd:nt,escape:Me,link:gt,nolink:ft,punctuation:He,reflink:kt,reflinkSearch:xt,tag:ut,text:Ne,url:T},wt={...ee,emStrongLDelim:Ve,emStrongRDelimAst:rt,emStrongRDelimUnd:it,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",O).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",O).getRegex()},G={...ee,emStrongRDelimAst:et,emStrongLDelim:Je,delLDelim:lt,delRDelim:ot,url:u(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",mt).replace("protocol",ie).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:u(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",ie).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},St={...G,br:u(be).replace("{2,}","*").getRegex(),text:u(G.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Q={normal:Y,gfm:Qe,pedantic:Oe},B={normal:ee,gfm:G,breaks:St,pedantic:wt},$t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},le=r=>$t[r];function w(r,e){if(e){if(b.escapeTest.test(r))return r.replace(b.escapeReplace,le)}else if(b.escapeTestNoEncode.test(r))return r.replace(b.escapeReplaceNoEncode,le);return r}function yt(r){return r.replace(b.numericCharacterReference,(e,t,s)=>{let n=t===void 0?Number.parseInt(s,16):Number.parseInt(t,10);return n===0||n>1114111||n>=55296&&n<=57343?"\uFFFD":String.fromCodePoint(n)})}function ae(r){try{r=encodeURI(r).replace(b.percentDecode,"%")}catch{return null}return r}function oe(r,e){let t=r.replace(b.findPipe,(i,a,l)=>{let c=!1,o=a;for(;--o>=0&&l[o]==="\\";)c=!c;return c?"|":" |"}),s=t.split(b.splitPipe),n=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(b.slashPipe,"|");return s}function R(r,e,t){let s=r.length;if(s===0)return"";let n=0;for(;n<s;){let i=r.charAt(s-n-1);if(i===e&&!t)n++;else if(i!==e&&t)n++;else break}return r.slice(0,s-n)}function ce(r){let e=r.split(`
4
4
  `),t=e.length-1;for(;t>=0&&b.blankLine.test(e[t]);)t--;return e.length-t<=2?r:e.slice(0,t+1).join(`
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as p,c}from"./AAUVOBPS.js";import{C as b,g,h as l,x as u}from"./RE7MJTEF.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";var m=g`:host{display:block;min-width:0}h3{margin:0 0 var(--calcite-spacing-sm);font-size:var(--calcite-font-size-relative-base);font-weight:var(--calcite-font-weight-semibold)}.token-table{overflow-x:auto}calcite-table{font-variant-numeric:tabular-nums}.pricing{margin:var(--calcite-spacing-sm) 0 0;color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-relative-sm);overflow-wrap:anywhere}`,v=new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",maximumFractionDigits:6});function n(r){return r===void 0?"Unavailable":v.format(r)}var s=class extends u{constructor(){super(...arguments),this.aggregate=!1,this.pricing=p}static{this.properties={usage:0,aggregate:5,pricing:0}}static{this.styles=m}render(){let d=this.usage;if(!d)return null;let{tokens:t,cost:e,rates:i,uncached:o}=d,h=[{group:"Input",groupRows:4,label:"Non-cached input",tokens:o===void 0?"Not reported":Number.isFinite(o)&&o>=0?o.toLocaleString():"Invalid usage",rate:n(i?.input),cost:c(e?.input)},{label:"Cache reads",tokens:t.cacheRead?.toLocaleString()??"Not reported",rate:n(i?.cachedInput),cost:t.cacheRead===void 0?"Not reported":c(e?.cachedInput)},{label:"Cache writes",tokens:t.cacheWrite?.toLocaleString()??"Not reported",rate:n(i?.cacheWrite),cost:t.cacheWrite===void 0?"Not reported":c(e?.cacheWrite)},{label:"Input (total)",tokens:t.input?.toLocaleString()??"Unavailable",rate:"-",cost:c(e?e.input+e.cachedInput+e.cacheWrite:void 0)},{group:"Output",groupRows:2,label:"Reasoning (within output)",tokens:t.reasoning?.toLocaleString()??"Not reported",rate:"-",cost:"Included in output"},{label:"Output (total)",tokens:t.output?.toLocaleString()??"Unavailable",rate:n(i?.output),cost:c(e?.output)}];return l`<section aria-label=Usage><h3>Usage</h3><div class="token-table"><calcite-table aria-label="Token usage and estimated cost (USD)" caption="Token usage and estimated cost (USD)" scale=s interaction-mode=static bordered><calcite-table-row slot=table-header><calcite-table-header heading=Category col-span=2></calcite-table-header><calcite-table-header heading=Tokens alignment=end></calcite-table-header>${this.aggregate?null:l`<calcite-table-header heading="Rate / 1M" alignment=end></calcite-table-header>`}<calcite-table-header heading="Est. cost" alignment=end></calcite-table-header></calcite-table-row>${h.map(a=>l`<calcite-table-row>${a.group?l`<calcite-table-header .heading=${a.group} .rowSpan=${a.groupRows}></calcite-table-header>`:null}<calcite-table-header .heading=${a.label}></calcite-table-header><calcite-table-cell alignment=end>${a.tokens}</calcite-table-cell>${this.aggregate?null:l`<calcite-table-cell alignment=end>${a.rate}</calcite-table-cell>`}<calcite-table-cell alignment=end>${a.cost}</calcite-table-cell></calcite-table-row>`)}<calcite-table-row slot=table-footer><calcite-table-header heading=Total col-span=2></calcite-table-header><calcite-table-cell alignment=end>${t.total?.toLocaleString()??"Unavailable"}</calcite-table-cell>${this.aggregate?null:l`<calcite-table-cell alignment=end>-</calcite-table-cell>`}<calcite-table-cell alignment=end>${c(e?.total)}</calcite-table-cell></calcite-table-row></calcite-table></div><p class="pricing">Rates last updated: ${this.pricing.updatedAt}</p></section>`}};b("arcgis-assistant-observation-usage",s);export{s as ArcgisAssistantObservationUsage};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as p,c}from"./VINKTQFR.js";import{C as b,g,h as l,x as u}from"./NAVK5JJ2.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";var m=g`:host{display:block;min-width:0}h3{margin:0 0 var(--calcite-spacing-sm);font-size:var(--calcite-font-size-relative-base);font-weight:var(--calcite-font-weight-semibold)}.token-table{overflow-x:auto}calcite-table{font-variant-numeric:tabular-nums}.pricing{margin:var(--calcite-spacing-sm) 0 0;color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-relative-sm);overflow-wrap:anywhere}`,v=new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",maximumFractionDigits:6});function n(r){return r===void 0?"Unavailable":v.format(r)}var s=class extends u{constructor(){super(...arguments),this.aggregate=!1,this.pricing=p}static{this.properties={usage:0,aggregate:5,pricing:0}}static{this.styles=m}render(){let d=this.usage;if(!d)return null;let{tokens:t,cost:e,rates:i,uncached:o}=d,h=[{group:"Input",groupRows:4,label:"Non-cached input",tokens:o===void 0?"Not reported":Number.isFinite(o)&&o>=0?o.toLocaleString():"Invalid usage",rate:n(i?.input),cost:c(e?.input)},{label:"Cache reads",tokens:t.cacheRead?.toLocaleString()??"Not reported",rate:n(i?.cachedInput),cost:t.cacheRead===void 0?"Not reported":c(e?.cachedInput)},{label:"Cache writes",tokens:t.cacheWrite?.toLocaleString()??"Not reported",rate:n(i?.cacheWrite),cost:t.cacheWrite===void 0?"Not reported":c(e?.cacheWrite)},{label:"Input (total)",tokens:t.input?.toLocaleString()??"Unavailable",rate:"-",cost:c(e?e.input+e.cachedInput+e.cacheWrite:void 0)},{group:"Output",groupRows:2,label:"Reasoning (within output)",tokens:t.reasoning?.toLocaleString()??"Not reported",rate:"-",cost:"Included in output"},{label:"Output (total)",tokens:t.output?.toLocaleString()??"Unavailable",rate:n(i?.output),cost:c(e?.output)}];return l`<section aria-label=Usage><h3>Usage</h3><div class="token-table"><calcite-table aria-label="Token usage and estimated cost (USD)" caption="Token usage and estimated cost (USD)" scale=s interaction-mode=static bordered><calcite-table-row slot=table-header><calcite-table-header heading=Category col-span=2></calcite-table-header><calcite-table-header heading=Tokens alignment=end></calcite-table-header>${this.aggregate?null:l`<calcite-table-header heading="Rate / 1M" alignment=end></calcite-table-header>`}<calcite-table-header heading="Est. cost" alignment=end></calcite-table-header></calcite-table-row>${h.map(a=>l`<calcite-table-row>${a.group?l`<calcite-table-header .heading=${a.group} .rowSpan=${a.groupRows}></calcite-table-header>`:null}<calcite-table-header .heading=${a.label}></calcite-table-header><calcite-table-cell alignment=end>${a.tokens}</calcite-table-cell>${this.aggregate?null:l`<calcite-table-cell alignment=end>${a.rate}</calcite-table-cell>`}<calcite-table-cell alignment=end>${a.cost}</calcite-table-cell></calcite-table-row>`)}<calcite-table-row slot=table-footer><calcite-table-header heading=Total col-span=2></calcite-table-header><calcite-table-cell alignment=end>${t.total?.toLocaleString()??"Unavailable"}</calcite-table-cell>${this.aggregate?null:l`<calcite-table-cell alignment=end>-</calcite-table-cell>`}<calcite-table-cell alignment=end>${c(e?.total)}</calcite-table-cell></calcite-table-row></calcite-table></div><p class="pricing">Rates last updated: ${this.pricing.updatedAt}</p></section>`}};b("arcgis-assistant-observation-usage",s);export{s as ArcgisAssistantObservationUsage};