@capagents/forgeqe 3.3.1 → 3.3.2

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 (217) hide show
  1. package/HOW_TO_USE.md +32 -0
  2. package/dist/docs-site/docs/area-setup/index.html +1 -0
  3. package/dist/docs-site/docs/area-test-cases/index.html +25 -0
  4. package/dist/docs-site/docs/search.js +1 -1
  5. package/dist/forgeqe.js +1922 -1906
  6. package/dist/requirement-agent/requirements_agent/__init__.py +3 -0
  7. package/dist/requirement-agent/requirements_agent/__main__.py +5 -0
  8. package/dist/requirement-agent/requirements_agent/agent.py +363 -0
  9. package/dist/requirement-agent/requirements_agent/chat_session.py +424 -0
  10. package/dist/requirement-agent/requirements_agent/cli.py +870 -0
  11. package/dist/requirement-agent/requirements_agent/config.py +403 -0
  12. package/dist/requirement-agent/requirements_agent/console_ui.py +632 -0
  13. package/dist/requirement-agent/requirements_agent/context/__init__.py +3 -0
  14. package/dist/requirement-agent/requirements_agent/context/aggregate.py +214 -0
  15. package/dist/requirement-agent/requirements_agent/context/base.py +14 -0
  16. package/dist/requirement-agent/requirements_agent/context/folder.py +107 -0
  17. package/dist/requirement-agent/requirements_agent/context/given.py +70 -0
  18. package/dist/requirement-agent/requirements_agent/context/graph.py +181 -0
  19. package/dist/requirement-agent/requirements_agent/context/knowledge.py +192 -0
  20. package/dist/requirement-agent/requirements_agent/context/mcp.py +24 -0
  21. package/dist/requirement-agent/requirements_agent/context/memory.py +144 -0
  22. package/dist/requirement-agent/requirements_agent/context/personas.py +214 -0
  23. package/dist/requirement-agent/requirements_agent/context/rag.py +148 -0
  24. package/dist/requirement-agent/requirements_agent/context/untrusted.py +56 -0
  25. package/dist/requirement-agent/requirements_agent/docs/HOW_TO_USE.md +505 -0
  26. package/dist/requirement-agent/requirements_agent/docs/requirements-agent-architecture.html +348 -0
  27. package/dist/requirement-agent/requirements_agent/docs_cmd.py +51 -0
  28. package/dist/requirement-agent/requirements_agent/export/__init__.py +3 -0
  29. package/dist/requirement-agent/requirements_agent/export/markdown.py +55 -0
  30. package/dist/requirement-agent/requirements_agent/export/pdf.py +82 -0
  31. package/dist/requirement-agent/requirements_agent/export/requirements_json.py +120 -0
  32. package/dist/requirement-agent/requirements_agent/init_cmd.py +191 -0
  33. package/dist/requirement-agent/requirements_agent/llm/__init__.py +3 -0
  34. package/dist/requirement-agent/requirements_agent/llm/base.py +49 -0
  35. package/dist/requirement-agent/requirements_agent/llm/copilot.py +171 -0
  36. package/dist/requirement-agent/requirements_agent/llm/mock.py +144 -0
  37. package/dist/requirement-agent/requirements_agent/llm/providers.py +277 -0
  38. package/dist/requirement-agent/requirements_agent/llm/router.py +35 -0
  39. package/dist/requirement-agent/requirements_agent/models.py +73 -0
  40. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/agents/analyst.md +29 -0
  41. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/agents/architect.md +28 -0
  42. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/agents/bmad-orchestrator.md +26 -0
  43. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/agents/dev.md +27 -0
  44. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/agents/pm.md +27 -0
  45. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/agents/po.md +27 -0
  46. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/agents/qa.md +28 -0
  47. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/agents/sm.md +26 -0
  48. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/checklists/spec-circuit-analyst.md +8 -0
  49. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/checklists/spec-circuit-architect.md +11 -0
  50. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/checklists/spec-circuit-dev.md +11 -0
  51. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/checklists/spec-circuit-orchestrator.md +9 -0
  52. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/checklists/spec-circuit-pm.md +9 -0
  53. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/checklists/spec-circuit-po.md +10 -0
  54. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/checklists/spec-circuit-qa.md +11 -0
  55. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/checklists/spec-circuit-sm.md +8 -0
  56. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/data/bmad-kb.md +19 -0
  57. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/data/requirements-standards-baseline.md +188 -0
  58. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/data/technical-preferences.md +54 -0
  59. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/utils/template-format.md +7 -0
  60. package/dist/requirement-agent/requirements_agent/packs/bmad-core-spec/workflows/greenfield-fullstack.yml +177 -0
  61. package/dist/requirement-agent/requirements_agent/pipeline/__init__.py +3 -0
  62. package/dist/requirement-agent/requirements_agent/pipeline/brd.py +86 -0
  63. package/dist/requirement-agent/requirements_agent/pipeline/pack.py +233 -0
  64. package/dist/requirement-agent/requirements_agent/pipeline/progress.py +60 -0
  65. package/dist/requirement-agent/requirements_agent/pipeline/prompts.py +150 -0
  66. package/dist/requirement-agent/requirements_agent/pipeline/quality.py +124 -0
  67. package/dist/requirement-agent/requirements_agent/pipeline/refine.py +386 -0
  68. package/dist/requirement-agent/requirements_agent/pipeline/sections.py +117 -0
  69. package/dist/requirement-agent/requirements_agent/pipeline/spec_circuit.py +142 -0
  70. package/dist/requirement-agent/requirements_agent/shell/__init__.py +7 -0
  71. package/dist/requirement-agent/requirements_agent/shell/actions.py +208 -0
  72. package/dist/requirement-agent/requirements_agent/shell/app.py +902 -0
  73. package/dist/requirement-agent/requirements_agent/shell/commands.py +206 -0
  74. package/dist/requirement-agent/requirements_agent/shell/progress_pane.py +114 -0
  75. package/dist/requirement-agent/requirements_agent/shell/ref_picker.py +59 -0
  76. package/dist/requirement-agent/requirements_agent/shell/refs.py +120 -0
  77. package/dist/requirement-agent/requirements_agent/shell/session.py +362 -0
  78. package/dist/requirement-agent/requirements_agent/shell/transcript.py +241 -0
  79. package/dist/requirement-agent/requirements_agent/shell/usage.py +64 -0
  80. package/dist/requirement-agent/requirements_agent/shell/usage_llm.py +64 -0
  81. package/dist/requirement-agent/requirements_agent/shell/worker.py +378 -0
  82. package/dist/requirement-agent/requirements_agent/tuios_hook.py +182 -0
  83. package/dist/requirement-agent/requirements_agent/webops.py +627 -0
  84. package/dist/template.html +67 -67
  85. package/dist/web/assets/{3d-force-graph-Df2wOlpF.js → 3d-force-graph-DDyP5jcf.js} +1 -1
  86. package/dist/web/assets/Agent-sLaNlaQo.js +8 -0
  87. package/dist/web/assets/AgentWork-Dv0G4bt3.js +2 -0
  88. package/dist/web/assets/ApiTests-Bnw2qgWw.js +15 -0
  89. package/dist/web/assets/Browse-CBt1JY2E.js +1 -0
  90. package/dist/web/assets/Chat-DIWdnIZK.js +3 -0
  91. package/dist/web/assets/CommandPalette-DD04oS83.js +1 -0
  92. package/dist/web/assets/Compare-D0Ao8dZ6.js +1 -0
  93. package/dist/web/assets/Cost-BY_8-9Qt.js +1 -0
  94. package/dist/web/assets/{Data-Be3ZNkUu.js → Data-BC7R_FbW.js} +4 -4
  95. package/dist/web/assets/Desktop-CSQ2xLg0.js +1 -0
  96. package/dist/web/assets/DesktopReview-CCOhUdeJ.js +2 -0
  97. package/dist/web/assets/DeviceScreen-BHmTd9Q-.js +1 -0
  98. package/dist/web/assets/Evidence-9W4pqIkC.js +1 -0
  99. package/dist/web/assets/{Explore-AtSStzNg.js → Explore-BndXiEf8.js} +2 -2
  100. package/dist/web/assets/Features-BrfsTC9Q.js +1 -0
  101. package/dist/web/assets/{Flags-GxmNrnSn.js → Flags-DyykkeHU.js} +2 -2
  102. package/dist/web/assets/Flaky-C3gj_Brn.js +1 -0
  103. package/dist/web/assets/Impact-Z8nbNhbe.js +3 -0
  104. package/dist/web/assets/Jobs-CJWXAqSy.js +5 -0
  105. package/dist/web/assets/KindPage-C45x_cFz.js +6 -0
  106. package/dist/web/assets/LiveDevice-DGdLDigO.js +1 -0
  107. package/dist/web/assets/Migration-QFI5ctp7.js +8 -0
  108. package/dist/web/assets/Mobile-CuswZyee.js +1 -0
  109. package/dist/web/assets/Observability-CknZ_xBN.js +1 -0
  110. package/dist/web/assets/PageAgent-B2bmmMaP.js +1 -0
  111. package/dist/web/assets/Product-CrtwDiMv.js +12 -0
  112. package/dist/web/assets/Production-BMsytC2i.js +1 -0
  113. package/dist/web/assets/Quality-B4Aw6N3_.js +1 -0
  114. package/dist/web/assets/Readiness-CVIzTFX-.js +1 -0
  115. package/dist/web/assets/Record-B2Ic8Taj.js +1 -0
  116. package/dist/web/assets/Regression-bCIAE3Ne.js +5 -0
  117. package/dist/web/assets/RelationGraph-kG4YVMzl.js +1 -0
  118. package/dist/web/assets/Reports-NAZ-26Ub.js +2 -0
  119. package/dist/web/assets/Requirements-BkpiF-Bt.js +2 -0
  120. package/dist/web/assets/Responsive-CsaoisJq.js +3 -0
  121. package/dist/web/assets/RunDiff-BC-3Wg1b.js +1 -0
  122. package/dist/web/assets/Settings-DyBed-J5.js +21 -0
  123. package/dist/web/assets/Steps-DcQxQ4yA.js +2 -0
  124. package/dist/web/assets/TestData-wpUeU9Er.js +2 -0
  125. package/dist/web/assets/TestManagement-D0njkyAT.js +4 -0
  126. package/dist/web/assets/WhatsNew-BxIAAwgH.js +1 -0
  127. package/dist/web/assets/agentSettingsSheet-BdB7IXah.js +1 -0
  128. package/dist/web/assets/choice-C4-yW2x9.js +1 -0
  129. package/dist/web/assets/code-Jek8uWUO.js +1 -0
  130. package/dist/web/assets/{coverage-DirEXtfZ.js → coverage-q-ib7wOq.js} +1 -1
  131. package/dist/web/assets/dataParts-B2-a-pOD.js +3 -0
  132. package/dist/web/assets/desktopAppPath-C-p0zU40.js +1 -0
  133. package/dist/web/assets/frame-CjpZWX_X.js +13 -0
  134. package/dist/web/assets/index-BH5RbDNY.css +2 -0
  135. package/dist/web/assets/index-CfGXe_De.js +55 -0
  136. package/dist/web/assets/line-icons-CwCZidXs.js +1 -0
  137. package/dist/web/assets/logos-P2LOMyTK.js +1 -0
  138. package/dist/web/assets/{markdown-BnrLv6Iw.js → markdown-dXSsS-mD.js} +5 -5
  139. package/dist/web/assets/nav-BZfNOkhX.js +1 -0
  140. package/dist/web/assets/pageBack-BwKT31j3.js +3 -0
  141. package/dist/web/assets/palette-L37b4wTE.js +1 -0
  142. package/dist/web/assets/{paletteCommands-LXIICD4V.js → paletteCommands-zqGCORJu.js} +1 -1
  143. package/dist/web/assets/parts-3o6HnCp1.js +1 -0
  144. package/dist/web/assets/preload-helper-BupTYkQW.js +1 -0
  145. package/dist/web/assets/productParts-BDiEg0z6.js +1 -0
  146. package/dist/web/assets/qualityParts--CnSadOZ.js +1 -0
  147. package/dist/web/assets/radio-BLI4Ubhk.js +1 -0
  148. package/dist/web/assets/react-BDur5s0O.js +1 -0
  149. package/dist/web/assets/{recordTest-BzKpS4m5.js → recordTest-D092f975.js} +1 -1
  150. package/dist/web/assets/route-oDy8sV6H.js +1 -0
  151. package/dist/web/assets/sectionList-XiKcJNEK.js +1 -0
  152. package/dist/web/assets/step-mark-CaKf4dAR.js +1 -0
  153. package/dist/web/assets/stepper-naqAN_Nb.js +1 -0
  154. package/dist/web/assets/utils-DJRAScIl.js +1 -0
  155. package/dist/web/assets/wizardParts-DLlOHVMx.js +1 -0
  156. package/dist/web/index.html +14 -12
  157. package/docs/user-guide.html +26 -0
  158. package/package.json +2 -1
  159. package/py/forgeqe_engine/cli.py +7 -0
  160. package/dist/web/assets/Agent-CRfgRnq2.js +0 -8
  161. package/dist/web/assets/AgentWork-DqiO3LUi.js +0 -2
  162. package/dist/web/assets/ApiTests-DCAnizu5.js +0 -15
  163. package/dist/web/assets/Browse-D5VDHN9Z.js +0 -1
  164. package/dist/web/assets/Chat-CLGQ1ymU.js +0 -3
  165. package/dist/web/assets/CommandPalette-D3F4iHrP.js +0 -1
  166. package/dist/web/assets/Compare-B1WN67Ny.js +0 -1
  167. package/dist/web/assets/Cost-Dk4m3r8z.js +0 -1
  168. package/dist/web/assets/Desktop-B3GcbaPu.js +0 -1
  169. package/dist/web/assets/DesktopReview-DfvAL3m8.js +0 -2
  170. package/dist/web/assets/DeviceScreen-DJqblqBh.js +0 -1
  171. package/dist/web/assets/Evidence-BsA7vCZG.js +0 -1
  172. package/dist/web/assets/Features-CDBlFLaJ.js +0 -1
  173. package/dist/web/assets/Flaky-C062Mh6z.js +0 -1
  174. package/dist/web/assets/Impact-BeXw3-oL.js +0 -3
  175. package/dist/web/assets/Jobs-QYWqmdDI.js +0 -5
  176. package/dist/web/assets/KindPage-C2g51s9c.js +0 -6
  177. package/dist/web/assets/LiveDevice-C9LRZMhC.js +0 -1
  178. package/dist/web/assets/Migration-ByUU0Oa_.js +0 -8
  179. package/dist/web/assets/Mobile-Dd3jL0Cn.js +0 -1
  180. package/dist/web/assets/Observability-Dx4ZCRDj.js +0 -1
  181. package/dist/web/assets/PageAgent-DYBOhs2x.js +0 -1
  182. package/dist/web/assets/Product-Ch1XAeAT.js +0 -12
  183. package/dist/web/assets/Production-TEdyFmo4.js +0 -1
  184. package/dist/web/assets/Quality-DH8EdI2u.js +0 -1
  185. package/dist/web/assets/Readiness-B8S7Ex0C.js +0 -1
  186. package/dist/web/assets/Record-uFQ-YaHg.js +0 -1
  187. package/dist/web/assets/Regression-CSDT2AnY.js +0 -5
  188. package/dist/web/assets/RelationGraph-gc0Xmklt.js +0 -1
  189. package/dist/web/assets/Reports-CSHhRfWv.js +0 -2
  190. package/dist/web/assets/Responsive-CEG1hbbQ.js +0 -3
  191. package/dist/web/assets/RunDiff-CHrMivzC.js +0 -1
  192. package/dist/web/assets/Settings-B63s0b1g.js +0 -21
  193. package/dist/web/assets/Steps-BsDjv-pm.js +0 -2
  194. package/dist/web/assets/TestData-CJoCXihI.js +0 -2
  195. package/dist/web/assets/TestManagement-Dkb-paWh.js +0 -4
  196. package/dist/web/assets/WhatsNew-Dtk9mJU4.js +0 -1
  197. package/dist/web/assets/agentSettingsSheet-BlM8KSpN.js +0 -1
  198. package/dist/web/assets/choice-CiFogD01.js +0 -1
  199. package/dist/web/assets/code-DzYywAs5.js +0 -1
  200. package/dist/web/assets/dataParts-Di7PdPHu.js +0 -3
  201. package/dist/web/assets/desktopAppPath-B8j1-pX0.js +0 -1
  202. package/dist/web/assets/frame-CNLw552P.js +0 -13
  203. package/dist/web/assets/index-DLuCgQKX.js +0 -55
  204. package/dist/web/assets/index-DRcPg81h.css +0 -2
  205. package/dist/web/assets/line-icons-B-O8oBsY.js +0 -1
  206. package/dist/web/assets/nav-Ds_6IERv.js +0 -1
  207. package/dist/web/assets/pageBack-DJxbEPfN.js +0 -3
  208. package/dist/web/assets/palette-H2g-hemT.js +0 -1
  209. package/dist/web/assets/parts-DKRLtrjs.js +0 -1
  210. package/dist/web/assets/preload-helper-BML5SvL4.js +0 -1
  211. package/dist/web/assets/productParts-imNtw-1N.js +0 -1
  212. package/dist/web/assets/qualityParts-DJhFlgCm.js +0 -1
  213. package/dist/web/assets/radio-CbR6ODxQ.js +0 -1
  214. package/dist/web/assets/route-DjewvmpL.js +0 -1
  215. package/dist/web/assets/sectionList-0umoKvRv.js +0 -1
  216. package/dist/web/assets/step-mark-g8Eb6foB.js +0 -1
  217. package/dist/web/assets/stepper-CzZIC36d.js +0 -1
@@ -0,0 +1,55 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/agentSettingsSheet-BdB7IXah.js","assets/rolldown-runtime-XKyaHtl9.js","assets/react-BDur5s0O.js","assets/route-oDy8sV6H.js","assets/jsx-runtime-LKYXHABd.js","assets/sectionList-XiKcJNEK.js","assets/line-icons-CwCZidXs.js","assets/pageBack-BwKT31j3.js","assets/preload-helper-BupTYkQW.js","assets/utils-DJRAScIl.js","assets/api-6pHfHEgB.js","assets/nav-BZfNOkhX.js","assets/frame-CjpZWX_X.js","assets/palette-L37b4wTE.js","assets/Settings-DyBed-J5.js","assets/when-BuWCTaKm.js","assets/code-Jek8uWUO.js","assets/markdown-dXSsS-mD.js","assets/default-DB4ZMZxa.js","assets/coverage-q-ib7wOq.js","assets/step-mark-CaKf4dAR.js","assets/radio-BLI4Ubhk.js","assets/Chat-DIWdnIZK.js","assets/poll-CHpac9Fb.js","assets/recordTest-D092f975.js","assets/DeviceScreen-BHmTd9Q-.js","assets/LiveDevice-DGdLDigO.js","assets/Reports-NAZ-26Ub.js","assets/Agent-sLaNlaQo.js","assets/RelationGraph-kG4YVMzl.js","assets/choice-C4-yW2x9.js","assets/dataParts-B2-a-pOD.js","assets/Record-B2Ic8Taj.js","assets/desktopAppPath-C-p0zU40.js","assets/DesktopReview-CCOhUdeJ.js","assets/AgentWork-Dv0G4bt3.js","assets/Desktop-CSQ2xLg0.js","assets/Mobile-CuswZyee.js","assets/Regression-bCIAE3Ne.js","assets/PageAgent-B2bmmMaP.js","assets/Impact-Z8nbNhbe.js","assets/flowLayout-cXVJhLpH.js","assets/ApiTests-Bnw2qgWw.js","assets/Migration-QFI5ctp7.js","assets/logos-P2LOMyTK.js","assets/parts-3o6HnCp1.js","assets/Steps-DcQxQ4yA.js","assets/wizardParts-DLlOHVMx.js","assets/stepper-naqAN_Nb.js","assets/Compare-D0Ao8dZ6.js","assets/Quality-B4Aw6N3_.js","assets/qualityParts--CnSadOZ.js","assets/Flaky-C3gj_Brn.js","assets/RunDiff-BC-3Wg1b.js","assets/Responsive-CsaoisJq.js","assets/Requirements-BkpiF-Bt.js","assets/TestManagement-D0njkyAT.js","assets/Flags-DyykkeHU.js","assets/Production-BMsytC2i.js","assets/Cost-BY_8-9Qt.js","assets/Observability-CknZ_xBN.js","assets/Explore-BndXiEf8.js","assets/Readiness-CVIzTFX-.js","assets/KindPage-C45x_cFz.js","assets/Data-BC7R_FbW.js","assets/TestData-wpUeU9Er.js","assets/Features-BrfsTC9Q.js","assets/Jobs-CJWXAqSy.js","assets/Product-CrtwDiMv.js","assets/productParts-BDiEg0z6.js","assets/Product-DLioOiRN.css","assets/Evidence-9W4pqIkC.js","assets/WhatsNew-BxIAAwgH.js","assets/Browse-CBt1JY2E.js"])))=>i.map(i=>d[i]);
2
+ import{n as e,r as t,t as n}from"./rolldown-runtime-XKyaHtl9.js";import{t as r}from"./react-BDur5s0O.js";import{a as i,i as a,n as o,r as s,t as c}from"./route-oDy8sV6H.js";import{F as l,H as u,L as d,P as f,c as p,l as m,o as h,p as g,s as _,t as v,u as y,z as b}from"./preload-helper-BupTYkQW.js";import{n as x,t as S}from"./utils-DJRAScIl.js";import{t as C}from"./jsx-runtime-LKYXHABd.js";import{G as w,K as ee,L as T,N as E,U as D,W as te,a as ne,c as O,i as re,l as ie,o as ae,r as k,s as A,u as oe}from"./palette-L37b4wTE.js";import{N as se,a as ce,b as le,d as j,g as M,h as ue,i as de,m as N,n as fe,p as pe,r as me,t as he,x as ge,y as _e}from"./sectionList-XiKcJNEK.js";import{B as ve,G as ye,N as be,Q as xe,R as Se,S as Ce,U as we,Y as Te,b as Ee,d as De,dt as Oe,et as ke,f as Ae,it as je,m as Me,n as Ne,tt as Pe,u as Fe,y as Ie}from"./api-6pHfHEgB.js";import{C as P,S as Le,_ as Re,b as F,f as ze,g as Be,h as Ve,n as He,r as Ue,u as We,v as Ge,x as I,y as Ke}from"./pageBack-BwKT31j3.js";import{$ as qe,Bn as Je,Bt as Ye,Cn as Xe,Cr as Ze,Ct as Qe,D as $e,Dt as et,E as tt,Fn as nt,Ft as rt,G as it,Hn as at,It as ot,Jn as st,Jt as ct,Ln as lt,Lr as ut,M as dt,Mn as ft,Mt as pt,N as mt,O as ht,Or as gt,P as _t,Pn as vt,Qn as yt,Qt as bt,R as xt,Rr as St,Sr as Ct,St as wt,V as Tt,Vn as Et,W as Dt,Wn as Ot,X as kt,Xn as At,Zn as jt,Zt as Mt,_t as Nt,a as Pt,an as Ft,b as It,bt as Lt,cn as Rt,ct as zt,dr as Bt,er as Vt,et as Ht,fr as Ut,gr as Wt,gt as Gt,h as Kt,hn as qt,ht as Jt,i as Yt,in as Xt,ir as Zt,jn as Qt,jr as $t,jt as en,k as tn,kt as nn,lr as rn,lt as an,mn as on,mt as sn,nr as cn,o as ln,on as un,or as dn,p as fn,pn,qn as mn,r as hn,rr as gn,rt as _n,s as vn,sn as yn,tn as bn,u as xn,ur as Sn,ut as Cn,v as wn,vt as Tn,w as En,wr as Dn,xn as On,xr as kn,y as An,yn as jn,yr as Mn,yt as Nn,z as Pn,zn as Fn,zt as In}from"./line-icons-CwCZidXs.js";import{At as Ln,B as Rn,C as zn,Ct as Bn,D as Vn,Dt as Hn,E as Un,Et as Wn,Ft as Gn,G as Kn,Gt as qn,It as Jn,J as Yn,K as Xn,Kt as Zn,Lt as Qn,Mt as $n,Nt as er,Ot as tr,R as nr,Rt as rr,S as ir,St as ar,T as or,U as sr,Wt as cr,Y as lr,Z as ur,_ as dr,_t as fr,at as pr,b as mr,bt as hr,c as gr,dt as _r,ft as vr,gt as yr,h as br,ht as xr,i as Sr,it as Cr,jt as wr,kt as Tr,l as Er,lt as Dr,mt as Or,nt as kr,o as Ar,ot as jr,pt as Mr,qt as Nr,s as Pr,t as Fr,ut as Ir,vt as Lr,w as Rr,wt as zr,x as Br,xt as Vr,y as Hr,yt as Ur,z as Wr}from"./frame-CjpZWX_X.js";import{r as Gr,t as Kr}from"./when-BuWCTaKm.js";import{h as qr,m as Jr,p as Yr,u as Xr}from"./nav-BZfNOkhX.js";import{n as Zr}from"./code-Jek8uWUO.js";import{i as Qr,n as $r,o as ei,r as ti,s as ni,t as ri}from"./markdown-dXSsS-mD.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ii=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&O(x,t.startTime-e)}}}var S=!1,C=-1,w=5,ee=-1;function T(){return g?!0:!(e.unstable_now()-ee<w)}function E(){if(g=!1,S){var t=e.unstable_now();ee=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&T());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&O(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(E)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,ne=te.port2;te.port1.onmessage=E,D=function(){ne.postMessage(null)}}else D=function(){_(E,0)};function O(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,O(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ai=n(((e,t)=>{t.exports=ii()})),oi=n((e=>{var t=ai(),n=r(),a=i();function o(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(o(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return d(i),e;if(a===r)return d(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function O(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case ee:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var ae=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},se=[],ce=-1;function le(e){return{current:e}}function j(e){0>ce||(e.current=se[ce],se[ce]=null,ce--)}function M(e,t){ce++,se[ce]=e.current,e.current=t}var ue=le(null),de=le(null),N=le(null),fe=le(null);function pe(e,t){switch(M(N,t),M(de,e),M(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}j(ue),M(ue,e)}function me(){j(ue),j(de),j(N)}function he(e){e.memoizedState!==null&&M(fe,e);var t=ue.current,n=Ud(t,e.type);t!==n&&(M(de,e),M(ue,n))}function ge(e){de.current===e&&(j(ue),j(de)),fe.current===e&&(j(fe),$f._currentValue=oe)}var _e,ve;function ye(e){if(_e===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||``,ve=-1<e.stack.indexOf(`
3
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
+ `+_e+e+ve}var be=!1;function xe(e,t){if(!e||be)return``;be=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
+ `),l=s.split(`
6
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ye(n):``}function Se(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye(`Lazy`);case 13:return e.child!==t&&t!==null?ye(`Suspense Fallback`):ye(`Suspense`);case 19:return ye(`SuspenseList`);case 0:case 15:return xe(e.type,!1);case 11:return xe(e.type.render,!1);case 1:return xe(e.type,!0);case 31:return ye(`Activity`);default:return``}}function Ce(e){try{var t=``,n=null;do t+=Se(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
+ Error generating stack: `+e.message+`
9
+ `+e.stack}}var we=Object.prototype.hasOwnProperty,Te=t.unstable_scheduleCallback,Ee=t.unstable_cancelCallback,De=t.unstable_shouldYield,Oe=t.unstable_requestPaint,ke=t.unstable_now,Ae=t.unstable_getCurrentPriorityLevel,je=t.unstable_ImmediatePriority,Me=t.unstable_UserBlockingPriority,Ne=t.unstable_NormalPriority,Pe=t.unstable_LowPriority,Fe=t.unstable_IdlePriority,Ie=t.log,P=t.unstable_setDisableYieldValue,Le=null,Re=null;function F(e){if(typeof Ie==`function`&&P(e),Re&&typeof Re.setStrictMode==`function`)try{Re.setStrictMode(Le,e)}catch{}}var ze=Math.clz32?Math.clz32:He,Be=Math.log,Ve=Math.LN2;function He(e){return e>>>=0,e===0?32:31-(Be(e)/Ve|0)|0}var Ue=256,We=262144,Ge=4194304;function I(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ke(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=I(n))):i=I(o):i=I(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=I(n))):i=I(o)):i=I(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Je(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ye(){var e=Ge;return Ge<<=1,!(Ge&62914560)&&(Ge=4194304),e}function Xe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-ze(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&$e(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function $e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ze(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function et(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function tt(e,t){var n=t&-t;return n=n&42?1:nt(n),(n&(e.suspendedLanes|t))===0?n:0}function nt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function rt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function it(){var e=A.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function at(e,t){var n=A.p;try{return A.p=e,t()}finally{A.p=n}}var ot=Math.random().toString(36).slice(2),st=`__reactFiber$`+ot,ct=`__reactProps$`+ot,lt=`__reactContainer$`+ot,ut=`__reactEvents$`+ot,dt=`__reactListeners$`+ot,ft=`__reactHandles$`+ot,pt=`__reactResources$`+ot,mt=`__reactMarker$`+ot;function ht(e){delete e[st],delete e[ct],delete e[ut],delete e[dt],delete e[ft]}function gt(e){var t=e[st];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lt]||n[st]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[st])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function _t(e){if(e=e[st]||e[lt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function yt(e){var t=e[pt];return t||=e[pt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function bt(e){e[mt]=!0}var xt=new Set,St={};function Ct(e,t){wt(e,t),wt(e+`Capture`,t)}function wt(e,t){for(St[e]=t,e=0;e<t.length;e++)xt.add(t[e])}var Tt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Et={},Dt={};function Ot(e){return we.call(Dt,e)?!0:we.call(Et,e)?!1:Tt.test(e)?Dt[e]=!0:(Et[e]=!0,!1)}function kt(e,t,n){if(Ot(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function At(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function jt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Mt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Nt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Pt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ft(e){if(!e._valueTracker){var t=Nt(e)?`checked`:`value`;e._valueTracker=Pt(e,t,``+e[t])}}function It(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Nt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Lt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Rt=/[\n"\\]/g;function zt(e){return e.replace(Rt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Bt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Mt(t)):e.value!==``+Mt(t)&&(e.value=``+Mt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ht(e,o,Mt(n)):Ht(e,o,Mt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Mt(s):e.removeAttribute(`name`)}function Vt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ft(e);return}n=n==null?``:``+Mt(n),t=t==null?n:``+Mt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ft(e)}function Ht(e,t,n){t===`number`&&Lt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ut(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Mt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wt(e,t,n){t!=null&&(t=``+Mt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Mt(n)}function Gt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(o(92));if(ae(r)){if(1<r.length)throw Error(o(93));r=r[0]}n=r}n??=``,t=n}n=Mt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ft(e)}function Kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Jt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Yt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(o(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Jt(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&Jt(e,a,t[a])}function Xt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Zt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Qt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $t(e){return Qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function en(){}var tn=null;function nn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,an=null;function on(e){var t=_t(e);if(t&&(e=t.stateNode)){var n=e[ct]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Bt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[ct]||null;if(!i)throw Error(o(90));Bt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&It(r)}break a;case`textarea`:Wt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ut(e,!!n.multiple,t,!1)}}}var sn=!1;function cn(e,t,n){if(sn)return e(t,n);sn=!0;try{return e(t)}finally{if(sn=!1,(rn!==null||an!==null)&&(xu(),rn&&(t=rn,e=an,an=rn=null,on(t),e)))for(t=0;t<e.length;t++)on(e[t])}}function ln(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ct]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(o(231,t,typeof n));return n}var un=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,dn=!1;if(un)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return hn=i.slice(e,1<r?1-r:void 0)}function _n(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vn(){return!0}function yn(){return!1}function bn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?vn:yn,this.isPropagationStopped=yn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=bn(xn),Cn=m({},xn,{view:0,detail:0}),wn=bn(Cn),Tn,En,Dn,On=m({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Dn&&(Dn&&e.type===`mousemove`?(Tn=e.screenX-Dn.screenX,En=e.screenY-Dn.screenY):En=Tn=0,Dn=e),Tn)},movementY:function(e){return`movementY`in e?e.movementY:En}}),kn=bn(On),An=bn(m({},On,{dataTransfer:0})),jn=bn(m({},Cn,{relatedTarget:0})),Mn=bn(m({},xn,{animationName:0,elapsedTime:0,pseudoElement:0})),Nn=bn(m({},xn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Pn=bn(m({},xn,{data:0})),Fn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},In={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Ln={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Rn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ln[e])?!!t[e]:!1}function zn(){return Rn}var Bn=bn(m({},Cn,{key:function(e){if(e.key){var t=Fn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?In[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zn,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Vn=bn(m({},On,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Hn=bn(m({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zn})),Un=bn(m({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Wn=bn(m({},On,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Gn=bn(m({},xn,{newState:0,oldState:0})),Kn=[9,13,27,32],qn=un&&`CompositionEvent`in window,Jn=null;un&&`documentMode`in document&&(Jn=document.documentMode);var Yn=un&&`TextEvent`in window&&!Jn,Xn=un&&(!qn||Jn&&8<Jn&&11>=Jn),Zn=` `,Qn=!1;function $n(e,t){switch(e){case`keyup`:return Kn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function er(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var tr=!1;function nr(e,t){switch(e){case`compositionend`:return er(t);case`keypress`:return t.which===32?(Qn=!0,Zn):null;case`textInput`:return e=t.data,e===Zn&&Qn?null:e;default:return null}}function rr(e,t){if(tr)return e===`compositionend`||!qn&&$n(e,t)?(e=gn(),hn=mn=pn=null,tr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Xn&&t.locale!==`ko`?null:t.data;default:return null}}var ir={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ir[e.type]:t===`textarea`}function or(e,t,n,r){rn?an?an.push(r):an=[r]:rn=r,t=Dd(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var sr=null,cr=null;function lr(e){bd(e,0)}function ur(e){if(It(vt(e)))return e}function dr(e,t){if(e===`change`)return t}var fr=!1;if(un){var pr;if(un){var mr=`oninput`in document;if(!mr){var hr=document.createElement(`div`);hr.setAttribute(`oninput`,`return;`),mr=typeof hr.oninput==`function`}pr=mr}else pr=!1;fr=pr&&(!document.documentMode||9<document.documentMode)}function gr(){sr&&(sr.detachEvent(`onpropertychange`,_r),cr=sr=null)}function _r(e){if(e.propertyName===`value`&&ur(cr)){var t=[];or(t,cr,e,nn(e)),cn(lr,t)}}function vr(e,t,n){e===`focusin`?(gr(),sr=t,cr=n,sr.attachEvent(`onpropertychange`,_r)):e===`focusout`&&gr()}function yr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ur(cr)}function br(e,t){if(e===`click`)return ur(t)}function xr(e,t){if(e===`input`||e===`change`)return ur(t)}function Sr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Cr=typeof Object.is==`function`?Object.is:Sr;function wr(e,t){if(Cr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!we.call(t,i)||!Cr(e[i],t[i]))return!1}return!0}function Tr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Er(e,t){var n=Tr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Tr(n)}}function Dr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Or(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ar=un&&`documentMode`in document&&11>=document.documentMode,jr=null,Mr=null,Nr=null,Pr=!1;function Fr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pr||jr==null||jr!==Lt(r)||(r=jr,`selectionStart`in r&&kr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Nr&&wr(Nr,r)||(Nr=r,r=Dd(Mr,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=jr)))}function Ir(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Lr={animationend:Ir(`Animation`,`AnimationEnd`),animationiteration:Ir(`Animation`,`AnimationIteration`),animationstart:Ir(`Animation`,`AnimationStart`),transitionrun:Ir(`Transition`,`TransitionRun`),transitionstart:Ir(`Transition`,`TransitionStart`),transitioncancel:Ir(`Transition`,`TransitionCancel`),transitionend:Ir(`Transition`,`TransitionEnd`)},Rr={},zr={};un&&(zr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Lr.animationend.animation,delete Lr.animationiteration.animation,delete Lr.animationstart.animation),`TransitionEvent`in window||delete Lr.transitionend.transition);function Br(e){if(Rr[e])return Rr[e];if(!Lr[e])return e;var t=Lr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zr)return Rr[e]=t[n];return e}var Vr=Br(`animationend`),Hr=Br(`animationiteration`),Ur=Br(`animationstart`),Wr=Br(`transitionrun`),Gr=Br(`transitionstart`),Kr=Br(`transitioncancel`),qr=Br(`transitionend`),Jr=new Map,Yr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Yr.push(`scrollEnd`);function Xr(e,t){Jr.set(e,t),Ct(t,[e])}var Zr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Qr=[],$r=0,ei=0;function ti(){for(var e=$r,t=ei=$r=0;t<e;){var n=Qr[t];Qr[t++]=null;var r=Qr[t];Qr[t++]=null;var i=Qr[t];Qr[t++]=null;var a=Qr[t];if(Qr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&oi(n,i,a)}}function ni(e,t,n,r){Qr[$r++]=e,Qr[$r++]=t,Qr[$r++]=n,Qr[$r++]=r,ei|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ri(e,t,n,r){return ni(e,t,n,r),si(e)}function ii(e,t){return ni(e,null,null,t),si(e)}function oi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-ze(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function si(e){if(50<fu)throw fu=0,pu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var L={};function ci(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function R(e,t,n,r){return new ci(e,t,n,r)}function li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ui(e,t){var n=e.alternate;return n===null?(n=R(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function di(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fi(e,t,n,r,i,a){var s=0;if(r=e,typeof e==`function`)li(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,ue.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case D:return e=R(31,n,t,i),e.elementType=D,e.lanes=a,e;case v:return pi(n.children,i,a,t);case y:s=8,i|=24;break;case b:return e=R(12,n,t,i|2),e.elementType=b,e.lanes=a,e;case w:return e=R(13,n,t,i),e.elementType=w,e.lanes=a,e;case ee:return e=R(19,n,t,i),e.elementType=ee,e.lanes=a,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case x:s=9;break a;case C:s=11;break a;case T:s=14;break a;case E:s=16,r=null;break a}s=29,n=Error(o(130,e===null?`null`:typeof e,``)),r=null}return t=R(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function pi(e,t,n,r){return e=R(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=R(6,e,null,t),e.lanes=n,e}function hi(e){var t=R(18,null,null,0);return t.stateNode=e,t}function gi(e,t,n){return t=R(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _i=new WeakMap;function vi(e,t){if(typeof e==`object`&&e){var n=_i.get(e);return n===void 0?(t={value:e,source:t,stack:Ce(t)},_i.set(e,t),t):n}return{value:e,source:t,stack:Ce(t)}}var yi=[],bi=0,xi=null,Si=0,Ci=[],wi=0,Ti=null,Ei=1,Di=``;function Oi(e,t){yi[bi++]=Si,yi[bi++]=xi,xi=e,Si=t}function ki(e,t,n){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ti=e;var r=Ei;e=Di;var i=32-ze(r)-1;r&=~(1<<i),n+=1;var a=32-ze(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ei=1<<32-ze(t)+i|n<<i|r,Di=a+e}else Ei=1<<a|n<<i|r,Di=e}function Ai(e){e.return!==null&&(Oi(e,1),ki(e,1,0))}function ji(e){for(;e===xi;)xi=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null;for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Di=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null}function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ei=t.id,Di=t.overflow,Ti=e}var Ni=null,z=null,B=!1,Pi=null,Fi=!1,Ii=Error(o(519));function Li(e){throw Ui(vi(Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ii}function Ri(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[st]=e,t[ct]=r,n){case`dialog`:Z(`cancel`,t),Z(`close`,t);break;case`iframe`:case`object`:case`embed`:Z(`load`,t);break;case`video`:case`audio`:for(n=0;n<vd.length;n++)Z(vd[n],t);break;case`source`:Z(`error`,t);break;case`img`:case`image`:case`link`:Z(`error`,t),Z(`load`,t);break;case`details`:Z(`toggle`,t);break;case`input`:Z(`invalid`,t),Vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Z(`invalid`,t);break;case`textarea`:Z(`invalid`,t),Gt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Nd(t.textContent,n)?(r.popover!=null&&(Z(`beforetoggle`,t),Z(`toggle`,t)),r.onScroll!=null&&Z(`scroll`,t),r.onScrollEnd!=null&&Z(`scrollend`,t),r.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||Li(e,!0)}function zi(e){for(Ni=e.return;Ni;)switch(Ni.tag){case 5:case 31:case 13:Fi=!1;return;case 27:case 3:Fi=!0;return;default:Ni=Ni.return}}function Bi(e){if(e!==Ni)return!1;if(!B)return zi(e),B=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Wd(e.type,e.memoizedProps)),n=!n),n&&z&&Li(e),zi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));z=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));z=df(e)}else t===27?(t=z,Qd(e.type)?(e=uf,uf=null,z=e):z=t):z=Ni?lf(e.stateNode.nextSibling):null;return!0}function Vi(){z=Ni=null,B=!1}function Hi(){var e=Pi;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Pi=null),e}function Ui(e){Pi===null?Pi=[e]:Pi.push(e)}var Wi=le(null),Gi=null,Ki=null;function qi(e,t,n){M(Wi,t._currentValue),t._currentValue=n}function Ji(e){e._currentValue=Wi.current,j(Wi)}function Yi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Xi(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var s=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Yi(a.return,n,e),r||(s=null);break a}a=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(o(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Yi(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function Zi(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(o(387));if(s=s.memoizedProps,s!==null){var c=i.type;Cr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===fe.current){if(s=i.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[$f]:e.push($f))}i=i.return}e!==null&&Xi(t,e,n,r),t.flags|=262144}function Qi(e){for(e=e.firstContext;e!==null;){if(!Cr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,Ki=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ea(e){return na(Gi,e)}function ta(e,t){return Gi===null&&$i(e),na(e,t)}function na(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ki===null){if(e===null)throw Error(o(308));Ki=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ki=Ki.next=t;return n}var ra=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ia=t.unstable_scheduleCallback,aa=t.unstable_NormalPriority,oa={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sa(){return{controller:new ra,data:new Map,refCount:0}}function ca(e){e.refCount--,e.refCount===0&&ia(aa,function(){e.controller.abort()})}var la=null,ua=0,da=0,fa=null;function pa(e,t){if(la===null){var n=la=[];ua=0,da=fd(),fa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ua++,t.then(ma,ma),t}function ma(){if(--ua===0&&la!==null){fa!==null&&(fa.status=`fulfilled`);var e=la;la=null,da=0,fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ha(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ga=k.S;k.S=function(e,t){tu=ke(),typeof t==`object`&&t&&typeof t.then==`function`&&pa(e,t),ga!==null&&ga(e,t)};var _a=le(null);function va(){var e=_a.current;return e===null?K.pooledCache:e}function ya(e,t){t===null?M(_a,_a.current):M(_a,t.pool)}function ba(){var e=va();return e===null?null:{parent:oa._currentValue,pool:e}}var xa=Error(o(460)),Sa=Error(o(474)),Ca=Error(o(542)),wa={then:function(){}};function Ta(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ea(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(en,en),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Aa(e),e;default:if(typeof t.status==`string`)t.then(en,en);else{if(e=K,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Aa(e),e}throw Oa=t,xa}}function Da(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Oa=e,xa):e}}var Oa=null;function ka(){if(Oa===null)throw Error(o(459));var e=Oa;return Oa=null,e}function Aa(e){if(e===xa||e===Ca)throw Error(o(483))}var ja=null,Ma=0;function Na(e){var t=Ma;return Ma+=1,ja===null&&(ja=[]),Ea(ja,e,t)}function Pa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Fa(e,t){throw t.$$typeof===h?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ia(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=ui(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===E&&Da(a)===t.type)?(t=i(t,n.props),Pa(t,n),t.return=e,t):(t=fi(n.type,n.key,n.props,null,e.mode,r),Pa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=gi(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=pi(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=fi(t.type,t.key,t.props,null,e.mode,n),Pa(n,t),n.return=e,n;case _:return t=gi(t,e.mode,n),t.return=e,t;case E:return t=Da(t),f(e,t,n)}if(ae(t)||O(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Na(t),n);if(t.$$typeof===S)return f(e,ta(e,t),n);Fa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case E:return n=Da(n),p(e,t,n,r)}if(ae(n)||O(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Na(n),r);if(n.$$typeof===S)return p(e,t,ta(e,n),r);Fa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case _:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case E:return r=Da(r),m(e,t,n,r,i)}if(ae(r)||O(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Na(r),i);if(r.$$typeof===S)return m(e,t,n,ta(t,r),i);Fa(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),B&&Oi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return B&&Oi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),B&&Oi(i,h),l}function y(i,s,c,l){if(c==null)throw Error(o(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=a(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),B&&Oi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return B&&Oi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),B&&Oi(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===v&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case g:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===v){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Da(l)===r.type){n(e,r.sibling),c=i(r,a.props),Pa(c,a),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===v?(c=pi(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=fi(a.type,a.key,a.props,null,e.mode,c),Pa(c,a),c.return=e,e=c)}return s(e);case _:a:{for(l=a.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=gi(a,e.mode,c),c.return=e,e=c}return s(e);case E:return a=Da(a),b(e,r,a,c)}if(ae(a))return h(e,r,a,c);if(O(a)){if(l=O(a),typeof l!=`function`)throw Error(o(150));return a=l.call(a),y(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Na(a),c);if(a.$$typeof===S)return b(e,r,ta(e,a),c);Fa(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=mi(a,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ma=0;var i=b(e,t,n,r);return ja=null,i}catch(t){if(t===xa||t===Ca)throw t;var a=R(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var La=Ia(!0),Ra=Ia(!1),za=!1;function Ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Va(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=si(e),oi(e,null,n),t}return ni(e,r,t,n),si(e)}function Wa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}function Ga(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ka=!1;function qa(){if(Ka){var e=fa;if(e!==null)throw e}}function Ja(e,t,n,r){Ka=!1;var i=e.updateQueue;za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===da&&(Ka=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:za=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Ya(e,t){if(typeof e!=`function`)throw Error(o(191,e));e.call(t)}function Xa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ya(n[e],t)}var Za=le(null),Qa=le(0);function $a(e,t){e=Wl,M(Qa,e),M(Za,t),Wl=e|t.baseLanes}function eo(){M(Qa,Wl),M(Za,Za.current)}function to(){Wl=Qa.current,j(Za),j(Qa)}var no=le(null),ro=null;function io(e){var t=e.alternate;M(lo,lo.current&1),M(no,e),ro===null&&(t===null||Za.current!==null||t.memoizedState!==null)&&(ro=e)}function ao(e){M(lo,lo.current),M(no,e),ro===null&&(ro=e)}function oo(e){e.tag===22?(M(lo,lo.current),M(no,e),ro===null&&(ro=e)):so(e)}function so(){M(lo,lo.current),M(no,no.current)}function co(e){j(no),ro===e&&(ro=null),j(lo)}var lo=le(0);function uo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||sf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fo=0,V=null,H=null,po=null,mo=!1,ho=!1,go=!1,_o=0,vo=0,yo=null,bo=0;function U(){throw Error(o(321))}function xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Cr(e[n],t[n]))return!1;return!0}function So(e,t,n,r,i,a){return fo=a,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?zs:Bs,go=!1,a=n(r,i),go=!1,ho&&(a=wo(t,n,r,i)),Co(e),a}function Co(e){k.H=Rs;var t=H!==null&&H.next!==null;if(fo=0,po=H=V=null,mo=!1,vo=0,yo=null,t)throw Error(o(300));e===null||rc||(e=e.dependencies,e!==null&&Qi(e)&&(rc=!0))}function wo(e,t,n,r){V=e;var i=0;do{if(ho&&(yo=null),vo=0,ho=!1,25<=i)throw Error(o(301));if(i+=1,po=H=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}k.H=Vs,a=t(n,r)}while(ho);return a}function To(){var e=k.H,t=e.useState()[0];return t=typeof t.then==`function`?Mo(t):t,e=e.useState()[0],(H===null?null:H.memoizedState)!==e&&(V.flags|=1024),t}function Eo(){var e=_o!==0;return _o=0,e}function Do(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Oo(e){if(mo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mo=!1}fo=0,po=H=V=null,ho=!1,vo=_o=0,yo=null}function ko(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return po===null?V.memoizedState=po=e:po=po.next=e,po}function Ao(){if(H===null){var e=V.alternate;e=e===null?null:e.memoizedState}else e=H.next;var t=po===null?V.memoizedState:po.next;if(t!==null)po=t,H=e;else{if(e===null)throw V.alternate===null?Error(o(467)):Error(o(310));H=e,e={memoizedState:H.memoizedState,baseState:H.baseState,baseQueue:H.baseQueue,queue:H.queue,next:null},po===null?V.memoizedState=po=e:po=po.next=e}return po}function jo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mo(e){var t=vo;return vo+=1,yo===null&&(yo=[]),e=Ea(yo,e,t),t=V,(po===null?t.memoizedState:po.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?zs:Bs),e}function No(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Mo(e);if(e.$$typeof===S)return ea(e)}throw Error(o(438,String(e)))}function Po(e){var t=null,n=V.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=V.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=jo(),V.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=te;return t.index++,n}function Fo(e,t){return typeof t==`function`?t(e):t}function Io(e){return Lo(Ao(),H,e)}function Lo(e,t,n){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(fo&f)===f:(J&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===da&&(d=!0);else if((fo&p)===p){u=u.next,p===da&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=a):l=l.next=f,V.lanes|=p,Kl|=p;f=u.action,go&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=a):l=l.next=p,V.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=a:l.next=c,!Cr(a,e.memoizedState)&&(rc=!0,d&&(n=fa,n!==null)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ro(e){var t=Ao(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);Cr(a,t.memoizedState)||(rc=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function zo(e,t,n){var r=V,i=Ao(),a=B;if(a){if(n===void 0)throw Error(o(407));n=n()}else n=t();var s=!Cr((H||i).memoizedState,n);if(s&&(i.memoizedState=n,rc=!0),i=i.queue,us(Ho.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||po!==null&&po.memoizedState.tag&1){if(r.flags|=2048,as(9,{destroy:void 0},Vo.bind(null,r,i,n,t),null),K===null)throw Error(o(349));a||fo&127||Bo(r,t,n)}return n}function Bo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t=jo(),V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Vo(e,t,n,r){t.value=n,t.getSnapshot=r,Uo(t)&&Wo(e)}function Ho(e,t,n){return n(function(){Uo(t)&&Wo(e)})}function Uo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cr(e,n)}catch{return!0}}function Wo(e){var t=ii(e,2);t!==null&&gu(t,e,2)}function Go(e){var t=ko();if(typeof e==`function`){var n=e;if(e=n(),go){F(!0);try{n()}finally{F(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:e},t}function Ko(e,t,n,r){return e.baseState=n,Lo(e,H,typeof r==`function`?r:Fo)}function qo(e,t,n,r,i){if(Fs(e))throw Error(o(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};k.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Jo(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Jo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=k.T,o={};k.T=o;try{var s=n(i,r),c=k.S;c!==null&&c(o,s),Yo(e,t,s)}catch(n){Zo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),k.T=a}}else try{a=n(i,r),Yo(e,t,a)}catch(n){Zo(e,t,n)}}function Yo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Xo(e,t,n)},function(n){return Zo(e,t,n)}):Xo(e,t,n)}function Xo(e,t,n){t.status=`fulfilled`,t.value=n,Qo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Jo(e,n)))}function Zo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Qo(t),t=t.next;while(t!==r)}e.action=null}function Qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $o(e,t){return t}function es(e,t){if(B){var n=K.formState;if(n!==null){a:{var r=V;if(B){if(z){b:{for(var i=z,a=Fi;i.nodeType!==8;)if(!a||(i=lf(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){z=lf(i.nextSibling),r=i.data===`F!`;break a}}Li(r)}r=!1}r&&(t=n[0])}}return n=ko(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:t},n.queue=r,n=Ms.bind(null,V,r),r.dispatch=n,r=Go(!1),a=Ps.bind(null,V,!1,r.queue),r=ko(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=qo.bind(null,V,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ts(e){return ns(Ao(),H,e)}function ns(e,t,n){if(t=Lo(e,t,$o)[0],e=Io(Fo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Mo(t)}catch(e){throw e===xa?Ca:e}else r=t;t=Ao();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(V.flags|=2048,as(9,{destroy:void 0},rs.bind(null,i,n),null)),[r,a,e]}function rs(e,t){e.action=t}function is(e){var t=Ao(),n=H;if(n!==null)return ns(t,n,e);Ao(),t=t.memoizedState,n=Ao();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function as(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=V.updateQueue,t===null&&(t=jo(),V.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function os(){return Ao().memoizedState}function ss(e,t,n,r){var i=ko();V.flags|=e,i.memoizedState=as(1|t,{destroy:void 0},n,r===void 0?null:r)}function cs(e,t,n,r){var i=Ao();r=r===void 0?null:r;var a=i.memoizedState.inst;H!==null&&r!==null&&xo(r,H.memoizedState.deps)?i.memoizedState=as(t,a,n,r):(V.flags|=e,i.memoizedState=as(1|t,a,n,r))}function ls(e,t){ss(8390656,8,e,t)}function us(e,t){cs(2048,8,e,t)}function ds(e){V.flags|=4;var t=V.updateQueue;if(t===null)t=jo(),V.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function fs(e){var t=Ao().memoizedState;return ds({ref:t,nextImpl:e}),function(){if(G&2)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function ps(e,t){return cs(4,2,e,t)}function ms(e,t){return cs(4,4,e,t)}function hs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gs(e,t,n){n=n==null?null:n.concat([e]),cs(4,4,hs.bind(null,t,e),n)}function _s(){}function vs(e,t){var n=Ao();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ys(e,t){var n=Ao();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&xo(t,r[1]))return r[0];if(r=e(),go){F(!0);try{e()}finally{F(!1)}}return n.memoizedState=[r,t],r}function bs(e,t,n){return n===void 0||fo&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),V.lanes|=e,Kl|=e,n)}function xs(e,t,n,r){return Cr(n,t)?n:Za.current===null?!(fo&42)||fo&1073741824&&!(J&261930)?(rc=!0,e.memoizedState=n):(e=hu(),V.lanes|=e,Kl|=e,t):(e=bs(e,n,r),Cr(e,t)||(rc=!0),e)}function Ss(e,t,n,r,i){var a=A.p;A.p=a!==0&&8>a?a:8;var o=k.T,s={};k.T=s,Ps(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ns(e,t,ha(c,r),mu(e)):Ns(e,t,r,mu(e))}catch(n){Ns(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function Cs(){}function ws(e,t,n,r){if(e.tag!==5)throw Error(o(476));var i=Ts(e).queue;Ss(e,i,t,oe,n===null?Cs:function(){return Es(e),n(r)})}function Ts(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Es(e){var t=Ts(e);t.next===null&&(t=e.alternate.memoizedState),Ns(e,t.next.queue,{},mu())}function Ds(){return ea($f)}function Os(){return Ao().memoizedState}function ks(){return Ao().memoizedState}function As(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Ha(n);var r=Ua(t,e,n);r!==null&&(gu(r,t,n),Wa(r,t,n)),t={cache:sa()},e.payload=t;return}t=t.return}}function js(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fs(e)?Is(t,n):(n=ri(e,t,n,r),n!==null&&(gu(n,e,r),Ls(n,t,r)))}function Ms(e,t,n){Ns(e,t,n,mu())}function Ns(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fs(e))Is(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Cr(s,o))return ni(e,t,i,0),K===null&&ti(),!1}catch{}if(n=ri(e,t,i,r),n!==null)return gu(n,e,r),Ls(n,t,r),!0}return!1}function Ps(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Fs(e)){if(t)throw Error(o(479))}else t=ri(e,n,r,2),t!==null&&gu(t,e,2)}function Fs(e){var t=e.alternate;return e===V||t!==null&&t===V}function Is(e,t){ho=mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ls(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}var Rs={readContext:ea,use:No,useCallback:U,useContext:U,useEffect:U,useImperativeHandle:U,useLayoutEffect:U,useInsertionEffect:U,useMemo:U,useReducer:U,useRef:U,useState:U,useDebugValue:U,useDeferredValue:U,useTransition:U,useSyncExternalStore:U,useId:U,useHostTransitionStatus:U,useFormState:U,useActionState:U,useOptimistic:U,useMemoCache:U,useCacheRefresh:U};Rs.useEffectEvent=U;var zs={readContext:ea,use:No,useCallback:function(e,t){return ko().memoizedState=[e,t===void 0?null:t],e},useContext:ea,useEffect:ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ss(4194308,4,hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ss(4194308,4,e,t)},useInsertionEffect:function(e,t){ss(4,2,e,t)},useMemo:function(e,t){var n=ko();t=t===void 0?null:t;var r=e();if(go){F(!0);try{e()}finally{F(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ko();if(n!==void 0){var i=n(t);if(go){F(!0);try{n(t)}finally{F(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=js.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=ko();return e={current:e},t.memoizedState=e},useState:function(e){e=Go(e);var t=e.queue,n=Ms.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_s,useDeferredValue:function(e,t){return bs(ko(),e,t)},useTransition:function(){var e=Go(!1);return e=Ss.bind(null,V,e.queue,!0,!1),ko().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=V,i=ko();if(B){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),K===null)throw Error(o(349));J&127||Bo(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ls(Ho.bind(null,r,a,e),[e]),r.flags|=2048,as(9,{destroy:void 0},Vo.bind(null,r,a,n,t),null),n},useId:function(){var e=ko(),t=K.identifierPrefix;if(B){var n=Di,r=Ei;n=(r&~(1<<32-ze(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=_o++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=bo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ds,useFormState:es,useActionState:es,useOptimistic:function(e){var t=ko();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ps.bind(null,V,!0,n),n.dispatch=t,[e,t]},useMemoCache:Po,useCacheRefresh:function(){return ko().memoizedState=As.bind(null,V)},useEffectEvent:function(e){var t=ko(),n={impl:e};return t.memoizedState=n,function(){if(G&2)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Bs={readContext:ea,use:No,useCallback:vs,useContext:ea,useEffect:us,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:Io,useRef:os,useState:function(){return Io(Fo)},useDebugValue:_s,useDeferredValue:function(e,t){return xs(Ao(),H.memoizedState,e,t)},useTransition:function(){var e=Io(Fo)[0],t=Ao().memoizedState;return[typeof e==`boolean`?e:Mo(e),t]},useSyncExternalStore:zo,useId:Os,useHostTransitionStatus:Ds,useFormState:ts,useActionState:ts,useOptimistic:function(e,t){return Ko(Ao(),H,e,t)},useMemoCache:Po,useCacheRefresh:ks};Bs.useEffectEvent=fs;var Vs={readContext:ea,use:No,useCallback:vs,useContext:ea,useEffect:us,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:Ro,useRef:os,useState:function(){return Ro(Fo)},useDebugValue:_s,useDeferredValue:function(e,t){var n=Ao();return H===null?bs(n,e,t):xs(n,H.memoizedState,e,t)},useTransition:function(){var e=Ro(Fo)[0],t=Ao().memoizedState;return[typeof e==`boolean`?e:Mo(e),t]},useSyncExternalStore:zo,useId:Os,useHostTransitionStatus:Ds,useFormState:is,useActionState:is,useOptimistic:function(e,t){var n=Ao();return H===null?(n.baseState=e,[e,n.queue.dispatch]):Ko(n,H,e,t)},useMemoCache:Po,useCacheRefresh:ks};Vs.useEffectEvent=fs;function Hs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Us={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ha(r);i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(gu(t,e,r),Wa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ha(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(gu(t,e,r),Wa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Ha(n);r.tag=2,t!=null&&(r.callback=t),t=Ua(e,r,n),t!==null&&(gu(t,e,n),Wa(t,e,n))}};function Ws(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!wr(n,r)||!wr(i,a):!0}function Gs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Us.enqueueReplaceState(t,t.state,null)}function Ks(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function qs(e){Zr(e)}function Js(e){console.error(e)}function Ys(e){Zr(e)}function Xs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Zs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){return n=Ha(n),n.tag=3,n.payload={element:null},n.callback=function(){Xs(e,t)},n}function $s(e){return e=Ha(e),e.tag=3,e}function ec(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Zs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Zs(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function tc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Zi(t,n,i,!0),n=no.current,n!==null){switch(n.tag){case 31:case 13:return ro===null?Ou():n.alternate===null&&Gl===0&&(Gl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===wa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ku(e,r,i)),!1;case 22:return n.flags|=65536,r===wa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ku(e,r,i)),!1}throw Error(o(435,n.tag))}return Ku(e,r,i),Ou(),!1}if(B)return t=no.current,t===null?(r!==Ii&&(t=Error(o(423),{cause:r}),Ui(vi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=vi(r,n),i=Qs(e.stateNode,r,i),Ga(e,i),Gl!==4&&(Gl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Ii&&(e=Error(o(422),{cause:r}),Ui(vi(e,n)))),!1;var a=Error(o(520),{cause:r});if(a=vi(a,n),Zl===null?Zl=[a]:Zl.push(a),Gl!==4&&(Gl=2),t===null)return!0;r=vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Qs(n.stateNode,r,e),Ga(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(iu===null||!iu.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=$s(i),ec(i,e,n,r),Ga(n,i),!1}n=n.return}while(n!==null);return!1}var nc=Error(o(461)),rc=!1;function ic(e,t,n,r){t.child=e===null?Ra(t,null,n,r):La(t,e.child,n,r)}function ac(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return $i(t),r=So(e,t,n,o,a,i),s=Eo(),e!==null&&!rc?(Do(e,t,i),kc(e,t,i)):(B&&s&&Ai(t),t.flags|=1,ic(e,t,r,i),t.child)}function oc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,sc(e,t,a,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ac(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?wr:n,n(o,r)&&e.ref===t.ref)return kc(e,t,i)}return t.flags|=1,e=ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function sc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(wr(a,r)&&e.ref===t.ref){if(rc=!1,t.pendingProps=r=a,Ac(e,i))e.flags&131072&&(rc=!0);else return t.lanes=e.lanes,kc(e,t,i)}}return hc(e,t,n,r,i)}function cc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return uc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ya(t,a===null?null:a.cachePool),a===null?eo():$a(t,a),oo(t);else return r=t.lanes=536870912,uc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ya(t,null),eo(),so(t)):(ya(t,a.cachePool),$a(t,a),so(t),t.memoizedState=null);return ic(e,t,i,n),t.child}function lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function uc(e,t,n,r,i){var a=va();return a=a===null?null:{parent:oa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ya(t,null),eo(),oo(t),e!==null&&Zi(e,t,r,!0),t.childLanes=i,null}function dc(e,t){return t=wc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fc(e,t,n){return La(t,e.child,null,n),e=dc(t,t.pendingProps),e.flags|=2,co(t),t.memoizedState=null,e}function pc(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if(B){if(r.mode===`hidden`)return e=dc(t,r),t.lanes=536870912,lc(null,e);if(ao(t),(e=z)?(e=af(e,Fi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,z=null)):e=null,e===null)throw Li(t);return t.lanes=536870912,null}return dc(t,r)}var a=e.memoizedState;if(a!==null){var s=a.dehydrated;if(ao(t),i){if(t.flags&256)t.flags&=-257,t=fc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558))}else if(rc||Zi(e,t,n,!1),i=(n&e.childLanes)!==0,rc||i){if(r=K,r!==null&&(s=tt(r,n),s!==0&&s!==a.retryLane))throw a.retryLane=s,ii(e,s),gu(r,e,s),nc;Ou(),t=fc(e,t,n)}else e=a.treeContext,z=lf(s.nextSibling),Ni=t,B=!0,Pi=null,Fi=!1,e!==null&&Mi(t,e),t=dc(t,r),t.flags|=4096;return t}return e=ui(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function mc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function hc(e,t,n,r,i){return $i(t),n=So(e,t,n,r,void 0,i),r=Eo(),e!==null&&!rc?(Do(e,t,i),kc(e,t,i)):(B&&r&&Ai(t),t.flags|=1,ic(e,t,n,i),t.child)}function gc(e,t,n,r,i,a){return $i(t),t.updateQueue=null,n=wo(t,r,n,i),Co(e),r=Eo(),e!==null&&!rc?(Do(e,t,a),kc(e,t,a)):(B&&r&&Ai(t),t.flags|=1,ic(e,t,n,a),t.child)}function _c(e,t,n,r,i){if($i(t),t.stateNode===null){var a=L,o=n.contextType;typeof o==`object`&&o&&(a=ea(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Us,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ba(t),o=n.contextType,a.context=typeof o==`object`&&o?ea(o):L,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Hs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Us.enqueueReplaceState(a,a.state,null),Ja(t,r,a,i),qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ks(n,s);a.props=c;var l=a.context,u=n.contextType;o=L,typeof u==`object`&&u&&(o=ea(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Gs(t,a,r,o),za=!1;var f=t.memoizedState;a.state=f,Ja(t,r,a,i),qa(),l=t.memoizedState,s||f!==l||za?(typeof d==`function`&&(Hs(t,n,d,r),l=t.memoizedState),(c=za||Ws(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Va(e,t),o=t.memoizedProps,u=Ks(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=L,typeof l==`object`&&l&&(c=ea(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Gs(t,a,r,c),za=!1,f=t.memoizedState,a.state=f,Ja(t,r,a,i),qa();var p=t.memoizedState;o!==d||f!==p||za||e!==null&&e.dependencies!==null&&Qi(e.dependencies)?(typeof s==`function`&&(Hs(t,n,s,r),p=t.memoizedState),(u=za||Ws(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Qi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,mc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=La(t,e.child,null,i),t.child=La(t,null,n,i)):ic(e,t,n,i),t.memoizedState=a.state,e=t.child):e=kc(e,t,i),e}function vc(e,t,n,r){return Vi(),t.flags|=256,ic(e,t,n,r),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bc(e){return{baseLanes:e,cachePool:ba()}}function xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function Sc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:!!(lo.current&2)),s&&(i=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(B){if(i?io(t):so(t),(e=z)?(e=af(e,Fi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,z=null)):e=null,e===null)throw Li(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(so(t),i=t.mode,c=wc({mode:`hidden`,children:c},i),r=pi(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(null,r)):(io(t),Cc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(io(t),t.flags&=-257,t=Tc(e,t,n)):t.memoizedState===null?(so(t),c=r.fallback,i=t.mode,r=wc({mode:`visible`,children:r.children},i),c=pi(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,La(t,e.child,null,n),r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,t=lc(null,r)):(so(t),t.child=e.child,t.flags|=128,t=null);else if(io(t),sf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(o(419)),r.stack=``,r.digest=s,Ui({value:r,source:null,stack:null}),t=Tc(e,t,n)}else if(rc||Zi(e,t,n,!1),s=(n&e.childLanes)!==0,rc||s){if(s=K,s!==null&&(r=tt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ii(e,r),gu(s,e,r),nc;of(c)||Ou(),t=Tc(e,t,n)}else of(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,z=lf(c.nextSibling),Ni=t,B=!0,Pi=null,Fi=!1,e!==null&&Mi(t,e),t=Cc(t,r.children),t.flags|=4096);return t}return i?(so(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=ui(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,i,n,null),c.flags|=2):c=ui(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,lc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=bc(n):(i=c.cachePool,i===null?i=ba():(l=oa._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(e.child,r)):(io(t),n=e.child,e=n.sibling,n=ui(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Cc(e,t){return t=wc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function wc(e,t){return e=R(22,e,null,t),e.lanes=0,e}function Tc(e,t,n){return La(t,e.child,null,n),e=Cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ec(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yi(e.return,t,n)}function Dc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Oc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=lo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,M(lo,o),ic(e,t,r,n),r=B?Si:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ec(e,n,t);else if(e.tag===19)Ec(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&uo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Dc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&uo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Dc(t,!0,n,null,a,r);break;case`together`:Dc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function kc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Zi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ac(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Qi(e)))}function jc(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),qi(t,oa,e.memoizedState.cache),Vi();break;case 27:case 5:he(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:qi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(io(t),e=kc(e,t,n),e===null?null:e.sibling):Sc(e,t,n):(io(t),t.flags|=128,null);io(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Zi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Oc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),M(lo,lo.current),r)break;return null;case 22:return t.lanes=0,cc(e,t,n,t.pendingProps);case 24:qi(t,oa,e.memoizedState.cache)}return kc(e,t,n)}function Mc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)rc=!0;else{if(!Ac(e,n)&&!(t.flags&128))return rc=!1,jc(e,t,n);rc=!!(e.flags&131072)}}else rc=!1,B&&t.flags&1048576&&ki(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Da(t.elementType),t.type=e,typeof e==`function`)li(e)?(r=Ks(e,r),t.tag=1,t=_c(null,t,e,r,n)):(t.tag=0,t=hc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===C){t.tag=11,t=ac(null,t,e,r,n);break a}if(i===T){t.tag=14,t=oc(null,t,e,r,n);break a}}throw t=ie(e)||e,Error(o(306,t,``))}}return t;case 0:return hc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Ks(r,t.pendingProps),_c(e,t,r,i,n);case 3:a:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,Va(e,t),Ja(t,r,null,n);var s=t.memoizedState;if(r=s.cache,qi(t,oa,r),r!==a.cache&&Xi(t,[oa],n,!0),qa(),r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=vc(e,t,r,n);break a}if(r!==i){i=vi(Error(o(424)),t),Ui(i),t=vc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(z=lf(e.firstChild),Ni=t,B=!0,Pi=null,Fi=!0,n=Ra(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Vi(),r===i){t=kc(e,t,n);break a}ic(e,t,r,n)}t=t.child}return t;case 26:return mc(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:B||(n=t.type,e=t.pendingProps,r=Vd(N.current).createElement(n),r[st]=t,r[ct]=e,Fd(r,n,e),bt(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&B&&(r=t.stateNode=pf(t.type,t.pendingProps,N.current),Ni=t,Fi=!0,i=z,Qd(t.type)?(uf=i,z=lf(r.firstChild)):z=i),ic(e,t,t.pendingProps.children,n),mc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&B&&((i=r=z)&&(r=nf(r,t.type,t.pendingProps,Fi),r===null?i=!1:(t.stateNode=r,Ni=t,z=lf(r.firstChild),Fi=!1,i=!0)),i||Li(t)),he(t),i=t.type,a=t.pendingProps,s=e===null?null:e.memoizedProps,r=a.children,Wd(i,a)?r=null:s!==null&&Wd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=So(e,t,To,null,null,n),$f._currentValue=i),mc(e,t),ic(e,t,r,n),t.child;case 6:return e===null&&B&&((e=n=z)&&(n=rf(n,t.pendingProps,Fi),n===null?e=!1:(t.stateNode=n,Ni=t,z=null,e=!0)),e||Li(t)),null;case 13:return Sc(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=La(t,null,r,n):ic(e,t,r,n),t.child;case 11:return ac(e,t,t.type,t.pendingProps,n);case 7:return ic(e,t,t.pendingProps,n),t.child;case 8:return ic(e,t,t.pendingProps.children,n),t.child;case 12:return ic(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,qi(t,t.type,r.value),ic(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,$i(t),i=ea(i),r=r(i),t.flags|=1,ic(e,t,r,n),t.child;case 14:return oc(e,t,t.type,t.pendingProps,n);case 15:return sc(e,t,t.type,t.pendingProps,n);case 19:return Oc(e,t,n);case 31:return pc(e,t,n);case 22:return cc(e,t,n,t.pendingProps);case 24:return $i(t),r=ea(oa),e===null?(i=va(),i===null&&(i=K,a=sa(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Ba(t),qi(t,oa,i)):((e.lanes&n)!==0&&(Va(e,t),Ja(t,null,null,n),qa()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,qi(t,oa,r),r!==i.cache&&Xi(t,[oa],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),qi(t,oa,r))),ic(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Nc(e){e.flags|=4}function Pc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Tu())e.flags|=8192;else throw Oa=wa,Sa}}else e.flags&=-16777217}function Fc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t)){if(Tu())e.flags|=8192;else throw Oa=wa,Sa}}function Ic(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ye(),e.lanes|=t,Xl|=t)}function Lc(e,t){if(!B)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function W(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Rc(e,t,n){var r=t.pendingProps;switch(ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return W(t),null;case 1:return W(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ji(oa),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Bi(t)?Nc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Hi())),W(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Nc(t),a===null?(W(t),Pc(t,i,null,r,n)):(W(t),Fc(t,a))):a?a===e.memoizedState?(W(t),t.flags&=-16777217):(Nc(t),W(t),Fc(t,a)):(e=e.memoizedProps,e!==r&&Nc(t),W(t),Pc(t,i,e,r,n)),null;case 27:if(ge(t),n=N.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return W(t),null}e=ue.current,Bi(t)?Ri(t,e):(e=pf(i,r,n),t.stateNode=e,Nc(t))}return W(t),null;case 5:if(ge(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return W(t),null}if(a=ue.current,Bi(t))Ri(t,a);else{var s=Vd(N.current);switch(a){case 1:a=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=s.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}a[st]=t,a[ct]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)a.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;a:switch(Fd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Nc(t)}}return W(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(o(166));if(e=N.current,Bi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ni,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Li(t,!0)}else e=Vd(e).createTextNode(r),e[st]=t,t.stateNode=e}return W(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Bi(t),n!==null){if(e===null){if(!r)throw Error(o(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(557));e[st]=t}else Vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;W(t),e=!1}else n=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(co(t),t):(co(t),null);if(t.flags&128)throw Error(o(558))}return W(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Bi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(o(317));i[st]=t}else Vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;W(t),i=!1}else i=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(co(t),t):(co(t),null)}return co(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ic(t,t.updateQueue),W(t),null);case 4:return me(),e===null&&Cd(t.stateNode.containerInfo),W(t),null;case 10:return Ji(t.type),W(t),null;case 19:if(j(lo),r=t.memoizedState,r===null)return W(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)Lc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=uo(e),a!==null){for(t.flags|=128,Lc(r,!1),e=a.updateQueue,t.updateQueue=e,Ic(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return M(lo,lo.current&1|2),B&&Oi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ke()>nu&&(t.flags|=128,i=!0,Lc(r,!1),t.lanes=4194304)}}else{if(!i){if(e=uo(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ic(t,e),Lc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!B)return W(t),null}else 2*ke()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Lc(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(W(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ke(),e.sibling=null,n=lo.current,M(lo,i?n&1|2:n&1),B&&Oi(t,r.treeForkCount),e);case 22:case 23:return co(t),to(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(W(t),t.subtreeFlags&6&&(t.flags|=8192)):W(t),n=t.updateQueue,n!==null&&Ic(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&j(_a),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ji(oa),W(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function zc(e,t){switch(ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ji(oa),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(co(t),t.alternate===null)throw Error(o(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(co(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(lo),null;case 4:return me(),null;case 10:return Ji(t.type),null;case 22:case 23:return co(t),to(),e!==null&&j(_a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ji(oa),null;case 25:return null;default:return null}}function Bc(e,t){switch(ji(t),t.tag){case 3:Ji(oa),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&co(t);break;case 13:co(t);break;case 19:j(lo);break;case 10:Ji(t.type);break;case 22:case 23:co(t),to(),e!==null&&j(_a);break;case 24:Ji(oa)}}function Vc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){X(t,t.return,e)}}function Hc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){X(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){X(t,t.return,e)}}function Uc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xa(t,n)}catch(t){X(e,e.return,t)}}}function Wc(e,t,n){n.props=Ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){X(e,t,n)}}function Gc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){X(e,t,n)}}function Kc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){X(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){X(e,t,n)}else n.current=null}}function qc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){X(e,e.return,t)}}function Jc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[ct]=t}catch(t){X(e,e.return,t)}}function Yc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function Xc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Yc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[st]=e,t[ct]=n}catch(t){X(e,e.return,t)}}var el=!1,tl=!1,nl=!1,rl=typeof WeakSet==`function`?WeakSet:Set,il=null;function al(e,t){if(e=e.containerInfo,zd=cp,e=Or(e),kr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===a&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},cp=!1,il=t;il!==null;)if(t=il,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,il=e;else for(;il!==null;){switch(t=il,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var h=Ks(n.type,i);e=r.getSnapshotBeforeUpdate(h,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){X(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:tf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,il=e;break}il=t.return}}function ol(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:xl(e,n),r&4&&Vc(5,n);break;case 1:if(xl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){X(n,n.return,e)}else{var i=Ks(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){X(n,n.return,e)}}}r&64&&Uc(n),r&512&&Gc(n,n.return);break;case 3:if(xl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xa(e,t)}catch(e){X(n,n.return,e)}}break;case 27:t===null&&r&4&&$c(n);case 26:case 5:xl(e,n),t===null&&r&4&&qc(n),r&512&&Gc(n,n.return);break;case 12:xl(e,n);break;case 31:xl(e,n),r&4&&fl(e,n);break;case 13:xl(e,n),r&4&&pl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Yu.bind(null,n),cf(e,n))));break;case 22:if(r=n.memoizedState!==null||el,!r){t=t!==null&&t.memoizedState!==null||tl,i=el;var a=tl;el=r,(tl=t)&&!a?Cl(e,n,!!(n.subtreeFlags&8772)):xl(e,n),el=i,tl=a}break;case 30:break;default:xl(e,n)}}function sl(e){var t=e.alternate;t!==null&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ht(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var cl=null,ll=!1;function ul(e,t,n){for(n=n.child;n!==null;)dl(e,t,n),n=n.sibling}function dl(e,t,n){if(Re&&typeof Re.onCommitFiberUnmount==`function`)try{Re.onCommitFiberUnmount(Le,n)}catch{}switch(n.tag){case 26:tl||Kc(n,t),ul(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tl||Kc(n,t);var r=cl,i=ll;Qd(n.type)&&(cl=n.stateNode,ll=!1),ul(e,t,n),mf(n.stateNode),cl=r,ll=i;break;case 5:tl||Kc(n,t);case 6:if(r=cl,i=ll,cl=null,ul(e,t,n),cl=r,ll=i,cl!==null){if(ll)try{(cl.nodeType===9?cl.body:cl.nodeName===`HTML`?cl.ownerDocument.body:cl).removeChild(n.stateNode)}catch(e){X(n,t,e)}else try{cl.removeChild(n.stateNode)}catch(e){X(n,t,e)}}break;case 18:cl!==null&&(ll?(e=cl,$d(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Pp(e)):$d(cl,n.stateNode));break;case 4:r=cl,i=ll,cl=n.stateNode.containerInfo,ll=!0,ul(e,t,n),cl=r,ll=i;break;case 0:case 11:case 14:case 15:Hc(2,n,t),tl||Hc(4,n,t),ul(e,t,n);break;case 1:tl||(Kc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Wc(n,t,r)),ul(e,t,n);break;case 21:ul(e,t,n);break;case 22:tl=(r=tl)||n.memoizedState!==null,ul(e,t,n),tl=r;break;default:ul(e,t,n)}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pp(e)}catch(e){X(t,t.return,e)}}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pp(e)}catch(e){X(t,t.return,e)}}function ml(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rl),t;default:throw Error(o(435,e.tag))}}function hl(e,t){var n=ml(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Xu.bind(null,e,t);t.then(r,r)}})}function gl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Qd(c.type)){cl=c.stateNode,ll=!1;break a}break;case 5:cl=c.stateNode,ll=!1;break a;case 3:case 4:cl=c.stateNode.containerInfo,ll=!0;break a}c=c.return}if(cl===null)throw Error(o(160));dl(a,s,i),cl=null,ll=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)vl(t,e),t=t.sibling}var _l=null;function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gl(t,e),yl(e),r&4&&(Hc(3,e,e.return),Vc(3,e),Hc(5,e,e.return));break;case 1:gl(t,e),yl(e),r&512&&(tl||n===null||Kc(n,n.return)),r&64&&el&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=_l;if(gl(t,e),yl(e),r&512&&(tl||n===null||Kc(n,n.return)),r&4){var a=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:a=i.getElementsByTagName(`title`)[0],(!a||a[mt]||a[st]||a.namespaceURI===`http://www.w3.org/2000/svg`||a.hasAttribute(`itemprop`))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector(`head > title`))),Fd(a,r,n),a[st]=e,bt(a),r=a;break a;case`link`:var s=Hf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(a=s[c],a.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&a.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&a.getAttribute(`title`)===(n.title==null?null:n.title)&&a.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}a=i.createElement(r),Fd(a,r,n),i.head.appendChild(a);break;case`meta`:if(s=Hf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(a=s[c],a.getAttribute(`content`)===(n.content==null?null:``+n.content)&&a.getAttribute(`name`)===(n.name==null?null:n.name)&&a.getAttribute(`property`)===(n.property==null?null:n.property)&&a.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}a=i.createElement(r),Fd(a,r,n),i.head.appendChild(a);break;default:throw Error(o(468,r))}a[st]=e,bt(a),r=a}e.stateNode=r}else Uf(i,e.type,e.stateNode)}else e.stateNode=Lf(i,r,e.memoizedProps)}else a===r?r===null&&e.stateNode!==null&&Jc(e,e.memoizedProps,n.memoizedProps):(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?Uf(i,e.type,e.stateNode):Lf(i,r,e.memoizedProps))}break;case 27:gl(t,e),yl(e),r&512&&(tl||n===null||Kc(n,n.return)),n!==null&&r&4&&Jc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gl(t,e),yl(e),r&512&&(tl||n===null||Kc(n,n.return)),e.flags&32){i=e.stateNode;try{Kt(i,``)}catch(t){X(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Jc(e,i,n===null?i:n.memoizedProps)),r&1024&&(nl=!0);break;case 6:if(gl(t,e),yl(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){X(e,e.return,t)}}break;case 3:if(Vf=null,i=_l,_l=_f(t.containerInfo),gl(t,e),_l=i,yl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pp(t.containerInfo)}catch(t){X(e,e.return,t)}nl&&(nl=!1,bl(e));break;case 4:r=_l,_l=_f(e.stateNode.containerInfo),gl(t,e),yl(e),_l=r;break;case 12:gl(t,e),yl(e);break;case 31:gl(t,e),yl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 13:gl(t,e),yl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=ke()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=el,d=tl;if(el=u||i,tl=d||l,gl(t,e),tl=d,el=u,yl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||el||tl||Sl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,i)s=a.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){X(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){X(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?ef(m,!0):ef(l.stateNode,!1)}catch(e){X(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,hl(e,n))));break;case 19:gl(t,e),yl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 30:break;case 21:break;default:gl(t,e),yl(e)}}function yl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Yc(r)){n=r;break}r=r.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode;Qc(e,Xc(e),i);break;case 5:var a=n.stateNode;n.flags&32&&(Kt(a,``),n.flags&=-33),Qc(e,Xc(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;Zc(e,Xc(e),s);break;default:throw Error(o(161))}}catch(t){X(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ol(e,t.alternate,t),t=t.sibling}function Sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Hc(4,t,t.return),Sl(t);break;case 1:Kc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Wc(t,t.return,n),Sl(t);break;case 27:mf(t.stateNode);case 26:case 5:Kc(t,t.return),Sl(t);break;case 22:t.memoizedState===null&&Sl(t);break;case 30:Sl(t);break;default:Sl(t)}e=e.sibling}}function Cl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Cl(i,a,n),Vc(4,a);break;case 1:if(Cl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){X(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ya(c[i],s)}catch(e){X(r,r.return,e)}}n&&o&64&&Uc(a),Gc(a,a.return);break;case 27:$c(a);case 26:case 5:Cl(i,a,n),n&&r===null&&o&4&&qc(a),Gc(a,a.return);break;case 12:Cl(i,a,n);break;case 31:Cl(i,a,n),n&&o&4&&fl(i,a);break;case 13:Cl(i,a,n),n&&o&4&&pl(i,a);break;case 22:a.memoizedState===null&&Cl(i,a,n),Gc(a,a.return);break;case 30:break;default:Cl(i,a,n)}t=t.sibling}}function wl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ca(n))}function Tl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ca(e))}function El(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dl(e,t,n,r),t=t.sibling}function Dl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:El(e,t,n,r),i&2048&&Vc(9,t);break;case 1:El(e,t,n,r);break;case 3:El(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ca(e)));break;case 12:if(i&2048){El(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){X(t,t.return,e)}}else El(e,t,n,r);break;case 31:El(e,t,n,r);break;case 13:El(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?El(e,t,n,r):(a._visibility|=2,Ol(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?El(e,t,n,r):kl(e,t),i&2048&&wl(o,t);break;case 24:El(e,t,n,r),i&2048&&Tl(t.alternate,t);break;default:El(e,t,n,r)}}function Ol(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Ol(a,o,s,c,i),Vc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ol(a,o,s,c,i)):u._visibility&2?Ol(a,o,s,c,i):kl(a,o),i&&l&2048&&wl(o.alternate,o);break;case 24:Ol(a,o,s,c,i),i&&l&2048&&Tl(o.alternate,o);break;default:Ol(a,o,s,c,i)}t=t.sibling}}function kl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:kl(n,r),i&2048&&wl(r.alternate,r);break;case 24:kl(n,r),i&2048&&Tl(r.alternate,r);break;default:kl(n,r)}t=t.sibling}}var Al=8192;function jl(e,t,n){if(e.subtreeFlags&Al)for(e=e.child;e!==null;)Ml(e,t,n),e=e.sibling}function Ml(e,t,n){switch(e.tag){case 26:jl(e,t,n),e.flags&Al&&e.memoizedState!==null&&Kf(n,_l,e.memoizedState,e.memoizedProps);break;case 5:jl(e,t,n);break;case 3:case 4:var r=_l;_l=_f(e.stateNode.containerInfo),jl(e,t,n),_l=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Al,Al=16777216,jl(e,t,n),Al=r):jl(e,t,n));break;default:jl(e,t,n)}}function Nl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Pl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];il=r,Ll(r,e)}Nl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fl(e),e=e.sibling}function Fl(e){switch(e.tag){case 0:case 11:case 15:Pl(e),e.flags&2048&&Hc(9,e,e.return);break;case 3:Pl(e);break;case 12:Pl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Il(e)):Pl(e);break;default:Pl(e)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];il=r,Ll(r,e)}Nl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Hc(8,t,t.return),Il(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Il(t));break;default:Il(t)}e=e.sibling}}function Ll(e,t){for(;il!==null;){var n=il;switch(n.tag){case 0:case 11:case 15:Hc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ca(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,il=r;else a:for(n=e;il!==null;){r=il;var i=r.sibling,a=r.return;if(sl(r),r===n){il=null;break a}if(i!==null){i.return=a,il=i;break a}il=a}}}var Rl={getCacheForType:function(e){var t=ea(oa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ea(oa).controller.signal}},zl=typeof WeakMap==`function`?WeakMap:Map,G=0,K=null,q=null,J=0,Y=0,Bl=null,Vl=!1,Hl=!1,Ul=!1,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return G&2&&J!==0?J&-J:k.T===null?it():fd()}function hu(){if(Yl===0){if(!(J&536870912)||B){var e=We;We<<=1,!(We&3932160)&&(We=262144),Yl=e}else Yl=536870912}return e=no.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===K&&(Y===2||Y===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,J,Yl,!1)),Ze(e,n),G&2&&e===K||(e===K&&(!(G&2)&&(ql|=n),Gl===4&&bu(e,J,Yl,!1)),id(e))}function _u(e,t,n){if(G&6)throw Error(o(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||qe(e,t),i=r?ju(e,t):ku(e,t,!0),a=r;do{if(i===0){Hl&&!r&&bu(e,t,0,!1);break}if(n=e.current.alternate,a&&!yu(n))i=ku(e,t,!1),a=!1;else{if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=a,ql|=a,i=4;break a}a=Ql,Ql=i,a!==null&&(Ql===null?Ql=a:Ql.push.apply(Ql,a))}i=s}if(a=!1,i!==2)continue}}if(i===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Yl,!Vl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=eu+300-ke(),10<i)){if(bu(r,t,Yl,!Vl),Ke(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=qd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,a,`Throttled`,-0,0),i);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,a,null,-0,0)}break}}while(1);id(e)}function vu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},Ml(t,a,d);var m=(a&62914560)===a?eu-ke():(a&4194048)===a?tu-ke():0;if(m=Jf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Cr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ze(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&$e(e,n,t)}function xu(){return G&6?!0:(ad(0,!1),!1)}function Su(){if(q!==null){if(Y===0)var e=q.return;else e=q,Ki=Gi=null,Oo(e),ja=null,Ma=0,e=q;for(;e!==null;)Bc(e.alternate,e),e=e.return;q=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Jd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),K=e,q=n=ui(e.current,null),J=t,Y=0,Bl=null,Vl=!1,Hl=qe(e,t),Ul=!1,Xl=Yl=Jl=ql=Kl=Gl=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-ze(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,ti(),n}function wu(e,t){V=null,k.H=Rs,t===xa||t===Ca?(t=ka(),Y=3):t===Sa?(t=ka(),Y=4):Y=t===nc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Bl=t,q===null&&(Gl=1,Xs(e,vi(t,e.current)))}function Tu(){var e=no.current;return e===null?!0:(J&4194048)===J?ro===null:(J&62914560)===J||J&536870912?e===ro:!1}function Eu(){var e=k.H;return k.H=Rs,e===null?Rs:e}function Du(){var e=k.A;return k.A=Rl,e}function Ou(){Gl=4,Vl||(J&4194048)!==J&&no.current!==null||(Hl=!0),!(Kl&134217727)&&!(ql&134217727)||K===null||bu(K,J,Yl,!1)}function ku(e,t,n){var r=G;G|=2;var i=Eu(),a=Du();(K!==e||J!==t)&&(ru=null,Cu(e,t)),t=!1;var o=Gl;a:do try{if(Y!==0&&q!==null){var s=q,c=Bl;switch(Y){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:no.current===null&&(t=!0);var l=Y;if(Y=0,Bl=null,Fu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=Y,Y=0,Bl=null,Fu(e,s,c,l)}}Au(),o=Gl;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ki=Gi=null,G=r,k.H=i,k.A=a,q===null&&(K=null,J=0,ti()),o}function Au(){for(;q!==null;)Nu(q)}function ju(e,t){var n=G;G|=2;var r=Eu(),i=Du();K!==e||J!==t?(ru=null,nu=ke()+500,Cu(e,t)):Hl=qe(e,t);a:do try{if(Y!==0&&q!==null){t=q;var a=Bl;b:switch(Y){case 1:Y=0,Bl=null,Fu(e,t,a,1);break;case 2:case 9:if(Ta(a)){Y=0,Bl=null,Pu(t);break}t=function(){Y!==2&&Y!==9||K!==e||(Y=7),id(e)},a.then(t,t);break a;case 3:Y=7;break a;case 4:Y=5;break a;case 7:Ta(a)?(Y=0,Bl=null,Pu(t)):(Y=0,Bl=null,Fu(e,t,a,7));break;case 5:var s=null;switch(q.tag){case 26:s=q.memoizedState;case 5:case 27:var c=q;if(s?Gf(s):c.stateNode.complete){Y=0,Bl=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,Iu(u))}break b}}Y=0,Bl=null,Fu(e,t,a,5);break;case 6:Y=0,Bl=null,Fu(e,t,a,6);break;case 8:Su(),Gl=6;break a;default:throw Error(o(462))}}Mu();break}catch(t){wu(e,t)}while(1);return Ki=Gi=null,k.H=r,k.A=i,G=n,q===null?(K=null,J=0,ti(),Gl):0}function Mu(){for(;q!==null&&!De();)Nu(q)}function Nu(e){var t=Mc(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Iu(e):q=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=gc(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=gc(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:Oo(t);default:Bc(n,t),t=q=di(t,Wl),t=Mc(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):q=t}function Fu(e,t,n,r){Ki=Gi=null,Oo(t),ja=null,Ma=0;var i=t.return;try{if(tc(e,i,t,n,J)){Gl=1,Xs(e,vi(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;Gl=1,Xs(e,vi(n,e.current)),q=null;return}t.flags&32768?(B||r===1?e=!0:Hl||J&536870912?e=!1:(Vl=e=!0,(r===2||r===9||r===3||r===6)&&(r=no.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Vl);return}e=t.return;var n=Rc(t.alternate,t,Wl);if(n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);Gl===0&&(Gl=5)}function Lu(e,t){do{var n=zc(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);Gl=6,q=null}function Ru(e,t,n,r,i,a,s,c,l){e.cancelPendingCommit=null;do Uu();while(au!==0);if(G&6)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(a=t.lanes|t.childLanes,a|=ei,Qe(e,n,a,s,c,l),e===K&&(q=K=null,J=0),su=t,ou=e,cu=n,lu=a,uu=i,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Zu(Ne,function(){return Wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=k.T,k.T=null,i=A.p,A.p=2,s=G,G|=4;try{al(e,t,n)}finally{G=s,A.p=i,k.T=r}}au=1,zu(),Bu(),Vu()}}function zu(){if(au===1){au=0;var e=ou,t=su,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=G;G|=4;try{vl(t,e);var a=Bd,o=Or(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Dr(s.ownerDocument.documentElement,s)){if(c!==null&&kr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Er(s,h),v=Er(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}cp=!!zd,Bd=zd=null}finally{G=i,A.p=r,k.T=n}}e.current=t,au=2}}function Bu(){if(au===2){au=0;var e=ou,t=su,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=G;G|=4;try{ol(e,t.alternate,t)}finally{G=i,A.p=r,k.T=n}}au=3}}function Vu(){if(au===4||au===3){au=0,Oe();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),rt(n),t=t.stateNode,Re&&typeof Re.onCommitFiberRoot==`function`)try{Re.onCommitFiberRoot(Le,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=k.T,i=A.p,A.p=2,k.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{k.T=t,A.p=i}}cu&3&&Uu(),id(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,ad(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ca(t)))}function Uu(){return zu(),Bu(),Vu(),Wu()}function Wu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=rt(cu),r=k.T,i=A.p;try{A.p=32>n?32:n,k.T=null,n=uu,uu=null;var a=ou,s=cu;if(au=0,su=ou=null,cu=0,G&6)throw Error(o(331));var c=G;if(G|=4,Fl(a.current),Dl(a,a.current,s,n),G=c,ad(0,!1),Re&&typeof Re.onPostCommitFiberRoot==`function`)try{Re.onPostCommitFiberRoot(Le,a)}catch{}return!0}finally{A.p=i,k.T=r,Hu(e,t)}}function Gu(e,t,n){t=vi(n,t),t=Qs(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(Ze(e,2),id(e))}function X(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=vi(n,e),n=$s(2),r=Ua(t,n,2),r!==null&&(ec(n,r,t,e),Ze(r,2),id(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(J&n)===n&&(Gl===4||Gl===3&&(J&62914560)===J&&300>ke()-eu?!(G&2)&&Cu(e,0):Jl|=n,Xl===J&&(Xl=0)),id(e)}function Ju(e,t){t===0&&(t=Ye()),e=ii(e,t),e!==null&&(Ze(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return Te(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ze(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=J,a=Ke(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,ud(r,a))}r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&Kd()&&(e=rd);for(var t=ke(),n=null,r=Qu;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}au!==0&&au!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-ze(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Je(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=K,n=J,n=Ke(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Y===2||Y===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||qe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ee(r),rt(n)){case 2:case 8:n=Me;break;case 32:n=Ne;break;case 268435456:n=Fe;break;default:n=Ne}return r=ld.bind(null,e),n=Te(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ee(r),e.callbackPriority=2,e.callbackNode=null,2}function ld(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=J;return r=Ke(e,e===K?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),cd(e,ke()),e.callbackNode!=null&&e.callbackNode===n?ld.bind(null,e):null)}function ud(e,t){if(Uu())return null;_u(e,t,!0)}function dd(){Xd(function(){G&6?Te(je,od):sd()})}function fd(){if(rd===0){var e=da;e===0&&(e=Ue,Ue<<=1,!(Ue&261888)&&(Ue=256)),rd=e}return rd}function pd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:$t(``+e)}function md(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function hd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=pd((i[ct]||null).action),o=r.submitter;o&&(t=(t=o[ct]||null)?pd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(rd!==0){var e=o?md(i,o):new FormData(i);ws(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?md(i,o):new FormData(i),ws(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var gd=0;gd<Yr.length;gd++){var _d=Yr[gd];Xr(_d.toLowerCase(),`on`+(_d[0].toUpperCase()+_d.slice(1)))}Xr(Vr,`onAnimationEnd`),Xr(Hr,`onAnimationIteration`),Xr(Ur,`onAnimationStart`),Xr(`dblclick`,`onDoubleClick`),Xr(`focusin`,`onFocus`),Xr(`focusout`,`onBlur`),Xr(Wr,`onTransitionRun`),Xr(Gr,`onTransitionStart`),Xr(Kr,`onTransitionCancel`),Xr(qr,`onTransitionEnd`),wt(`onMouseEnter`,[`mouseout`,`mouseover`]),wt(`onMouseLeave`,[`mouseout`,`mouseover`]),wt(`onPointerEnter`,[`pointerout`,`pointerover`]),wt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ct(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ct(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ct(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ct(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var vd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),yd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(vd));function bd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Zr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Zr(e)}i.currentTarget=null,a=c}}}}function Z(e,t){var n=t[ut];n===void 0&&(n=t[ut]=new Set);var r=e+`__bubble`;n.has(r)||(wd(t,e,2,!1),n.add(r))}function xd(e,t,n){var r=0;t&&(r|=4),wd(n,e,r,t)}var Sd=`_reactListening`+Math.random().toString(36).slice(2);function Cd(e){if(!e[Sd]){e[Sd]=!0,xt.forEach(function(t){t!==`selectionchange`&&(yd.has(t)||xd(t,!1,e),xd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sd]||(t[Sd]=!0,xd(`selectionchange`,!1,t))}}function wd(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!dn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Td(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=gt(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}cn(function(){var r=a,i=nn(n),o=[];a:{var s=Jr.get(e);if(s!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=Bn;break;case`focusin`:u=`focus`,l=jn;break;case`focusout`:u=`blur`,l=jn;break;case`beforeblur`:case`afterblur`:l=jn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=An;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Hn;break;case Vr:case Hr:case Ur:l=Mn;break;case qr:l=Un;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Wn;break;case`copy`:case`cut`:case`paste`:l=Nn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Vn;break;case`toggle`:case`beforetoggle`:l=Gn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=ln(m,p),g!=null&&d.push(Ed(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==tn&&(u=n.relatedTarget||n.fromElement)&&(gt(u)||u[lt]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?gt(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=kn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Vn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:vt(l),h=u==null?s:vt(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,gt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Od,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&kd(o,s,l,d,!1),u!==null&&f!==null&&kd(o,f,u,d,!0)}}a:{if(s=r?vt(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=dr;else if(ar(s)){if(fr)v=xr;else{v=yr;var y=vr}}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Xt(r.elementType)&&(v=dr):v=br;if(v&&=v(e,r)){or(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Ht(s,`number`,s.value)}switch(y=r?vt(r):window,e){case`focusin`:(ar(y)||y.contentEditable===`true`)&&(jr=y,Mr=r,Nr=null);break;case`focusout`:Nr=Mr=jr=null;break;case`mousedown`:Pr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Pr=!1,Fr(o,n,i);break;case`selectionchange`:if(Ar)break;case`keydown`:case`keyup`:Fr(o,n,i)}var b;if(qn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else tr?$n(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Xn&&n.locale!==`ko`&&(tr||x!==`onCompositionStart`?x===`onCompositionEnd`&&tr&&(b=gn()):(pn=i,mn=`value`in pn?pn.value:pn.textContent,tr=!0)),y=Dd(r,x),0<y.length&&(x=new Pn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=er(n),b!==null&&(x.data=b)))),(b=Yn?nr(e,n):rr(e,n))&&(x=Dd(r,`onBeforeInput`),0<x.length&&(y=new Pn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),hd(o,e,r,n,i)}bd(o,t)})}function Ed(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=ln(e,n),i!=null&&r.unshift(Ed(e,i,a)),i=ln(e,t),i!=null&&r.push(Ed(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Od(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=ln(n,a),l!=null&&o.unshift(Ed(n,l,c))):i||(l=ln(n,a),l!=null&&o.push(Ed(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ad=/\r\n?/g,jd=/\u0000|\uFFFD/g;function Md(e){return(typeof e==`string`?e:``+e).replace(Ad,`
10
+ `).replace(jd,``)}function Nd(e,t){return t=Md(t),Md(e)===t}function Q(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Kt(e,``+r);break;case`className`:At(e,`class`,r);break;case`tabIndex`:At(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:At(e,n,r);break;case`style`:Yt(e,r,a);break;case`data`:if(t!==`object`){At(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof a==`function`&&(n===`formAction`?(t!==`input`&&Q(e,t,`name`,i.name,i,null),Q(e,t,`formEncType`,i.formEncType,i,null),Q(e,t,`formMethod`,i.formMethod,i,null),Q(e,t,`formTarget`,i.formTarget,i,null)):(Q(e,t,`encType`,i.encType,i,null),Q(e,t,`method`,i.method,i,null),Q(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=en);break;case`onScroll`:r!=null&&Z(`scroll`,e);break;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=$t(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Z(`beforetoggle`,e),Z(`toggle`,e),kt(e,`popover`,r);break;case`xlinkActuate`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:kt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Zt.get(n)||n,kt(e,n,r))}}function Pd(e,t,n,r,i,a){switch(n){case`style`:Yt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&Z(`scroll`,e);break;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=en);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!St.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[ct]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):kt(e,n,r)}}}function Fd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Z(`error`,e),Z(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:Q(e,t,a,s,n,null)}}i&&Q(e,t,`srcSet`,n.srcSet,n,null),r&&Q(e,t,`src`,n.src,n,null);return;case`input`:Z(`invalid`,e);var c=a=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(o(137,t));break;default:Q(e,t,r,d,n,null)}}Vt(e,a,c,l,u,s,i,!1);return;case`select`:for(i in Z(`invalid`,e),r=s=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Q(e,t,i,c,n,null)}t=a,n=s,e.multiple=!!r,t==null?n!=null&&Ut(e,!!r,n,!0):Ut(e,!!r,t,!1);return;case`textarea`:for(s in Z(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(o(91));break;default:Q(e,t,s,c,n,null)}Gt(e,r,i,a);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Q(e,t,l,r,n,null)}return;case`dialog`:Z(`beforetoggle`,e),Z(`toggle`,e),Z(`cancel`,e),Z(`close`,e);break;case`iframe`:case`object`:Z(`load`,e);break;case`video`:case`audio`:for(r=0;r<vd.length;r++)Z(vd[r],e);break;case`image`:Z(`error`,e),Z(`load`,e);break;case`details`:Z(`toggle`,e);break;case`embed`:case`source`:case`link`:Z(`error`,e),Z(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:Q(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Pd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Q(e,t,c,r,n,null))}function Id(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Q(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:a=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(o(137,t));break;default:m!==f&&Q(e,t,p,m,r,f)}}Bt(e,s,c,l,u,d,a,i);return;case`select`:for(a in m=s=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||Q(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:p=a;break;case`defaultValue`:c=a;break;case`multiple`:s=a;default:a!==l&&Q(e,t,i,a,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ut(e,!!n,n?[]:``,!1):Ut(e,!!n,t,!0)):Ut(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Q(e,t,c,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(i!=null||a!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(o(91));break;default:i!==a&&Q(e,t,s,i,r,a)}Wt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Q(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Q(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Q(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(o(137,t));break;default:Q(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Pd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Pd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Q(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Q(e,t,f,p,r,m)}function Ld(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Rd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ld(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var zd=null,Bd=null;function Vd(e){return e.nodeType===9?e:e.ownerDocument}function Hd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Ud(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Wd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gd=null;function Kd(){var e=window.event;return e&&e.type===`popstate`?e!==Gd&&(Gd=e,!0):(Gd=null,!1)}var qd=typeof setTimeout==`function`?setTimeout:void 0,Jd=typeof clearTimeout==`function`?clearTimeout:void 0,Yd=typeof Promise==`function`?Promise:void 0,Xd=typeof queueMicrotask==`function`?queueMicrotask:Yd===void 0?qd:function(e){return Yd.resolve(null).then(e).catch(Zd)};function Zd(e){setTimeout(function(){throw e})}function Qd(e){return e===`head`}function $d(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Pp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[mt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body)}n=i}while(n);Pp(t)}function ef(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function tf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:tf(n),ht(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[mt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lf(e.nextSibling),e===null)break}return null}function rf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function af(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function of(e){return e.data===`$?`||e.data===`$~`}function sf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pf(e,t,n){switch(t=Vd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(o(452));return e;case`head`:if(e=t.head,!e)throw Error(o(453));return e;case`body`:if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ht(e)}var hf=new Map,gf=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vf=A.d;A.d={f:yf,r:bf,D:Cf,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function yf(){var e=vf.f(),t=xu();return e||t}function bf(e){var t=_t(e);t!==null&&t.tag===5&&t.type===`form`?Es(t):vf.r(e)}var xf=typeof document>`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Fd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=yt(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);bt(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=yt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),bt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=yt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),bt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var i=(i=N.current)?_f(i):null;if(!i)throw Error(o(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=yt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var a=yt(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(Mf(e)))&&!a._p&&(s.instance=a,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),a||Pf(i,e,n,s.state))),t&&r===null)throw Error(o(528,``));return s}if(t&&r!==null)throw Error(o(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=yt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(o(444,e))}}function jf(e){return`href="`+zt(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),bt(t),e.head.appendChild(t))}function Ff(e){return`[src="`+zt(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var i=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Fd(r,`style`,i),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=jf(n.href);var a=e.querySelector(Mf(i));if(a)return t.state.loading|=4,t.instance=a,bt(a),a;r=Nf(n),(i=hf.get(i))&&zf(r,i),a=(e.ownerDocument||e).createElement(`link`),bt(a);var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(a,`link`,r),t.state.loading|=4,Rf(a,n.precedence,e),t.instance=a;case`script`:return a=Ff(n.src),(i=e.querySelector(If(a)))?(t.instance=i,bt(i),i):(r=n,(i=hf.get(a))&&(r=m({},n),Bf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),bt(i),Fd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(o(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[mt]||a[st]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*Rd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Yf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var $f={$$typeof:S,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function ep(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xe(0),this.hiddenUpdates=Xe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=R(3,null,null,t),e.current=a,a.stateNode=e,t=sa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ba(a),e}function np(e){return e?(e=L,e):L}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Ha(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ua(e,r,t),n!==null&&(gu(n,e,t),Wa(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=ii(e,67108864);t!==null&&gu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=mu();t=nt(t);var n=ii(e,t);n!==null&&gu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=2,dp(e,t,n,r)}finally{A.p=a,k.T=i}}function up(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=8,dp(e,t,n,r)}finally{A.p=a,k.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)Td(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=_t(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=I(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ze(o);s.entanglements[1]|=c,o&=~c}id(a),!(G&6)&&(nu=ke()+500,ad(0,!1))}}break;case 31:case 13:s=ii(a,2),s!==null&&gu(s,a,2),xu(),ap(a,2)}if(a=fp(r),a===null&&Td(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Td(e,t,r,null,n)}}function fp(e){return e=nn(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=gt(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=u(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pp=e,null}function hp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ae()){case je:return 2;case Me:return 8;case Ne:case Pe:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=_t(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=gt(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,at(e.priority,function(){sp(n)});return}}else if(t===31){if(t=u(n),t!==null){e.blockedOn=t,at(e.priority,function(){sp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tn=r,n.target.dispatchEvent(r),tn=null}else return t=_t(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,n){e.blockedOn===n&&(e.blockedOn=null,gp||(gp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mp===e&&(Mp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(mp(r||n)===null)continue;break}var a=_t(n);a!==null&&(e.splice(t,3),t-=3,ws(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Pp(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ct]||null;if(typeof a==`function`)o||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ct]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Fp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current;rp(n,mu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),xu(),t[lt]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=it();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Rp=n.version;if(Rp!==`19.2.7`)throw Error(o(527,Rp,`19.2.7`));A.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(o(188)):(e=Object.keys(e).join(`,`),Error(o(268,e)));return e=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:k,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Le=Bp.inject(zp),Re=Bp}catch{}}e.createRoot=function(e,t){if(!s(e))throw Error(o(299));var n=!1,r=``,i=qs,a=Js,c=Ys;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=tp(e,1,!1,null,null,n,r,null,i,a,c,Fp),e[lt]=t.current,Cd(e),new Ip(t)}})),si=n(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=oi()}))(),L=t(r(),1),ci=t(i(),1),R=C(),li=`data-tip`,ui=400,di=300,fi=8,pi=8;function mi(e){let t=e instanceof Element?e.closest(`[${li}]`):null;return t&&t.getAttribute(`data-tip`)?.trim()?t:null}var hi=`data-tip-side`,gi=e=>e===`right`||e===`left`?e:`up`;function _i(e,t,n,r,i,a=`up`){let o=(e,t,n)=>Math.min(Math.max(pi,e),Math.max(pi,n-pi-t)),s=o(e.top+e.height/2-n/2,n,i);if(a===`right`&&e.left+e.width+fi+t<=r-pi)return{top:s,left:e.left+e.width+fi,side:`right`};if(a===`left`&&e.left-fi-t>=pi)return{top:s,left:e.left-fi-t,side:`left`};let c=e.top-fi-n>=pi,l=e.bottom+fi+n<=i-pi,u=c||!l?`up`:`down`;return{top:u===`up`?Math.max(pi,e.top-fi-n):e.bottom+fi,left:o(e.left+e.width/2-t/2,t,r),side:u}}function vi(e,t,n){let r=e.trim();return r===(t??``).trim()||r===(n??``).trim()}function yi({id:e,text:t,style:n,ref:r}){return(0,R.jsx)(`div`,{ref:r,id:e,role:`tooltip`,"data-keep-name":``,style:n,className:S(ee,`fade-in pointer-events-none fixed z-50 w-max max-w-[320px] max-h-[calc(var(--screen)-16px)] overflow-hidden px-4 py-2 text-body-sm leading-snug [overflow-wrap:anywhere] rounded-base`),children:se(t)})}function bi(e){try{return e.matches(`:focus-visible`)}catch{return!0}}var xi=e=>e.matches(`:disabled`),Si=(e,t,n)=>{let r=e.getBoundingClientRect();return t>=r.left&&t<=r.right&&n>=r.top&&n<=r.bottom};function Ci(e,t,n){if(!(e instanceof Element))return null;for(let r of e.querySelectorAll(`:disabled[${li}]`))if(r.getAttribute(`data-tip`)?.trim()&&Si(r,t,n))return r;return null}function wi(){let e=(0,L.useId)(),[t,n]=(0,L.useState)(null),[r,i]=(0,L.useState)({visibility:`hidden`,top:0,left:0}),a=(0,L.useRef)(null),o=(0,L.useRef)(null),s=(0,L.useRef)(null),c=(0,L.useRef)(void 0),l=(0,L.useRef)(0);(0,L.useEffect)(()=>{let e=()=>{clearTimeout(c.current),s.current=null},t=(t,r=t)=>{e(),o.current=t,n({el:t,owner:r,text:se(t.getAttribute(`data-tip`)??``)})},r=()=>{e(),o.current&&(l.current=Date.now()),o.current=null,n(null)},i=n=>{if(n!==o.current&&n!==s.current){if(e(),o.current!==null||Date.now()-l.current<di)return t(n);s.current=n,c.current=setTimeout(()=>n.isConnected?t(n):e(),ui)}},a=e=>{if(e.pointerType===`touch`)return;let t=mi(e.target);t&&i(t)},u=t=>{let n=mi(t.target);!n||t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(n===s.current&&e(),n===o.current&&r())},d=t=>{if(t.pointerType===`touch`)return;let n=o.current??s.current;if(n&&xi(n)&&!Si(n,t.clientX,t.clientY)&&(n===s.current&&e(),n===o.current&&r()),mi(t.target))return;let a=Ci(t.target,t.clientX,t.clientY);a&&i(a)},f=e=>{let n=mi(e.target);n&&e.target instanceof Element&&bi(e.target)?t(n,e.target):o.current&&r()},p=e=>{let t=o.current;t&&e.target instanceof Node&&t.contains(e.target)&&(e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||r())},m=e=>{e.key===`Escape`&&o.current&&(e.preventDefault(),e.stopPropagation(),r())},h={capture:!0,passive:!0},g={capture:!0};return document.addEventListener(`pointerover`,a,h),document.addEventListener(`pointerout`,u,h),document.addEventListener(`pointermove`,d,h),document.addEventListener(`pointerdown`,r,h),document.addEventListener(`focusin`,f,h),document.addEventListener(`focusout`,p,h),document.addEventListener(`keydown`,m,g),window.addEventListener(`scroll`,r,h),window.addEventListener(`resize`,r,h),window.addEventListener(`blur`,r),()=>{e(),document.removeEventListener(`pointerover`,a,h),document.removeEventListener(`pointerout`,u,h),document.removeEventListener(`pointermove`,d,h),document.removeEventListener(`pointerdown`,r,h),document.removeEventListener(`focusin`,f,h),document.removeEventListener(`focusout`,p,h),document.removeEventListener(`keydown`,m,g),window.removeEventListener(`scroll`,r,h),window.removeEventListener(`resize`,r,h),window.removeEventListener(`blur`,r)}},[]),(0,L.useEffect)(()=>{if(!t)return;let e=new MutationObserver(()=>{let e=t.el.getAttribute(li)?.trim();if(!t.el.isConnected||!e){o.current=null,n(null);return}let r=se(e);r!==t.text&&n({...t,text:r})});return e.observe(t.el,{attributes:!0,attributeFilter:[li]}),e.observe(document.body,{childList:!0,subtree:!0}),()=>e.disconnect()},[t]),(0,L.useEffect)(()=>{if(!t||vi(t.text,t.owner.getAttribute(`aria-label`),t.owner.textContent))return;let n=t.owner,r=n.getAttribute(`aria-describedby`);return n.setAttribute(`aria-describedby`,r?`${r} ${e}`:e),()=>{let t=(n.getAttribute(`aria-describedby`)??``).split(/\s+/).filter(t=>t&&t!==e);t.length?n.setAttribute(`aria-describedby`,t.join(` `)):n.removeAttribute(`aria-describedby`)}},[t,e]);let u=t?t.el.closest(`dialog[open], [popover]:popover-open`)??document.body:null;return(0,L.useLayoutEffect)(()=>{if(!t||!a.current||!u){i({visibility:`hidden`,top:0,left:0});return}let e=!1,n=()=>{if(e||!a.current)return;let n=a.current.getBoundingClientRect(),r=_i(t.el.getBoundingClientRect(),n.width,n.height,window.innerWidth,window.innerHeight,gi(t.el.getAttribute(hi)));i({top:r.top,left:r.left})},r=u instanceof HTMLElement&&u!==document.body?u.getAnimations():[];return r.length?(i({visibility:`hidden`,top:0,left:0}),Promise.allSettled(r.map(e=>e.finished)).then(n)):n(),()=>{e=!0}},[t,u]),!t||!u?null:(0,ci.createPortal)((0,R.jsx)(yi,{ref:a,id:e,text:t.text,style:r}),u)}function Ti(e,t){if(!(!Number.isFinite(e)||e<=0||!Number.isFinite(t)||t<.25||t>4))return Math.round(e/t*100)/100}function Ei(e){let t=e.createElement(`div`);t.setAttribute(`aria-hidden`,`true`),t.style.cssText=`position:absolute;top:0;left:0;width:1px;height:1000px;visibility:hidden;pointer-events:none`,e.body.appendChild(t);let n=t.getBoundingClientRect().height;return t.remove(),n/1e3}function Di(e=window){let t=e.document,n=()=>{let n=Ti(e.innerHeight,Ei(t));if(n===void 0)for(let e of[`--screen`,`--window`])t.documentElement.style.removeProperty(e);else for(let e of[`--screen`,`--window`])t.documentElement.style.setProperty(e,`${n}px`)};return n(),e.addEventListener(`resize`,n),()=>e.removeEventListener(`resize`,n)}function Oi(e,t=900){let n=new Map,r=r=>{let i=r.target===e?e.documentElement:r.target;if(!i||!(i instanceof e.defaultView.Element))return;let a=n.get(i);a?clearTimeout(a):i.setAttribute(`data-scrolling`,``),n.set(i,setTimeout(()=>{n.delete(i),i.removeAttribute(`data-scrolling`)},t))};return e.addEventListener(`scroll`,r,{capture:!0,passive:!0}),()=>{e.removeEventListener(`scroll`,r,{capture:!0});for(let[e,t]of n)clearTimeout(t),e.removeAttribute(`data-scrolling`);n.clear()}}var ki=5e3,Ai=e=>new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`});function ji({onReload:e}){let[t,n]=(0,L.useState)(null);return(0,L.useEffect)(()=>{let e=!0,t=()=>void Ee.status().then(t=>e&&n(t),()=>{}),r=()=>{document.visibilityState===`visible`&&Ee.status().catch(()=>{})},i=setInterval(r,ki);return window.addEventListener(Ne,t),document.addEventListener(`visibilitychange`,r),()=>{e=!1,clearInterval(i),window.removeEventListener(Ne,t),document.removeEventListener(`visibilitychange`,r)}},[]),t?t.error?(0,R.jsxs)(`div`,{role:`alert`,className:S(P.warn,`mx-4 mt-4 flex flex-col gap-1`),children:[(0,R.jsxs)(`span`,{className:`font-medium`,children:[`The settings files have a problem: `,t.error]}),(0,R.jsxs)(`span`,{className:`text-ink-2`,children:[t.loadedAt?`Pages show the settings as they were at ${Ai(t.loadedAt)}`:`Pages cannot show the settings`,`; nothing can be started until it is fixed. Fix it in Settings or in the file: no restart is needed.`]})]}):(0,R.jsxs)(`div`,{role:`status`,className:S(P.info,`mx-4 mt-4 flex flex-wrap items-center gap-2`),children:[(0,R.jsx)(`span`,{className:`min-w-0 flex-1`,children:`The settings changed on disk. They are in use already; show this page with them?`}),(0,R.jsxs)(I,{size:`sm`,variant:`primary`,onClick:()=>{n(null),e()},"data-tip":`Show this page with the new settings`,children:[(0,R.jsx)(Fn,{"aria-hidden":`true`}),`Reload`]}),(0,R.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>n(null),children:[(0,R.jsx)(St,{"aria-hidden":`true`}),`Later`]})]}):null}function Mi({crew:e}){return(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-2`,children:[(0,R.jsx)(`span`,{className:`text-body-sm font-medium text-muted`,children:`Works with`}),(0,R.jsx)(`ul`,{"aria-label":`Works with`,className:`m-0 flex list-none flex-wrap justify-center gap-2 p-0`,children:e.map(e=>{let t=N(e.agent).name;return(0,R.jsxs)(`li`,{tabIndex:0,"data-tip":`${t} ${e.does}`,className:`flex min-h-7 items-center gap-1 rounded-full bg-surface-strong py-1 pr-2 pl-1 text-body-sm font-medium text-ink`,children:[(0,R.jsx)(ne,{agent:e.agent,px:18,decorative:!0}),t,(0,R.jsxs)(`span`,{className:`sr-only`,children:[`: `,e.does]})]},e.agent)})})]})}var Ni=`(max-height: 820px)`,z=()=>(0,L.useSyncExternalStore)(e=>{let t=typeof matchMedia==`function`?matchMedia(Ni):null;return t?.addEventListener(`change`,e),()=>t?.removeEventListener(`change`,e)},()=>typeof matchMedia==`function`&&matchMedia(`(max-height: 820px)`).matches,()=>!1),B=`[your objective: the story, feature or page to test]`,Pi=[{label:`Generate functional test cases`,Icon:Xt,text:[`Role: A test analyst who writes functional test cases from requirements`,`Objective: Write functional test cases for ${B}`,`Steps:
11
+ 1. Read the story or requirement, its acceptance criteria and the pages it changes.
12
+ 2. Write test cases for each acceptance criterion: the main path, other valid paths, invalid input and edge cases.
13
+ 3. Compare them with the existing test cases, and reuse or extend a case where the steps are the same.
14
+ 4. Save the new test cases, linked to the story.`,`Rules:
15
+ - Each step has one action and one expected result.
16
+ - Do not run tests and do not change code.`,`Output format: A table for each test case: id, title, preconditions, steps, expected results, and the acceptance criterion it covers.`,`Summary: Write and save functional test cases for the objective above.`].join(`
17
+
18
+ `)},{label:`Generate test cases and automation scripts`,Icon:it,text:[`Role: A test automation engineer who writes test cases and automates them in the test repository`,`Objective: Write functional test cases for ${B}, and automate them`,`Steps:
19
+ 1. Read the story or requirement, its acceptance criteria and the pages it changes.
20
+ 2. Write test cases for each acceptance criterion: the main path, other valid paths, invalid input and edge cases.
21
+ 3. Compare them with the existing test cases, and save the new ones, linked to the story.
22
+ 4. Run each test case in the browser on the selected test environment.
23
+ 5. Turn each passed run into an automated test in the test repository, written in its framework, page objects and helpers.`,`Rules:
24
+ - Each step has one action and one expected result.
25
+ - Do not automate a test case that failed: report it with the reason.`,`Output format: A table of the test cases (id, title, acceptance criterion, run result), then each automation script's file and the command that runs it.`,`Summary: Write, run and automate test cases for the objective above.`].join(`
26
+
27
+ `)},{label:`Generate test cases, scripts and regression`,Icon:Je,text:[`Role: A test automation engineer who writes test cases, automates them and keeps the regression pack current`,`Objective: Write functional test cases for ${B}, automate them, and add them to the regression pack`,`Steps:
28
+ 1. Read the story or requirement, its acceptance criteria and the pages it changes.
29
+ 2. Write test cases for each acceptance criterion: the main path, other valid paths, invalid input and edge cases.
30
+ 3. Compare them with the existing test cases, and save the new ones, linked to the story.
31
+ 4. Run each test case in the browser on the selected test environment.
32
+ 5. Turn each passed run into an automated test in the test repository, written in its framework, page objects and helpers.
33
+ 6. Add the automated tests to the regression pack, then run the regression pack.`,`Rules:
34
+ - Each step has one action and one expected result.
35
+ - Do not automate a test case that failed: report it with the reason.
36
+ - Do not remove a test from the regression pack.`,`Output format: A table of the test cases (id, title, acceptance criterion, run result), each automation script's file and command, and the regression pack's result with every failure and its reason.`,`Summary: Write, automate and add to regression the test cases for the objective above.`].join(`
37
+
38
+ `)}];function Fi(e){let t=e.indexOf(B);return t<0?null:[t,t+52]}var Ii=null,Li=null;function Ri(){if(!Ii||Date.now()-Ii.at>1e4){let e=ye.list().then(e=>Li=e.personas,e=>{throw Ii=null,e});Ii={at:Date.now(),list:e}}return Ii.list}var zi=e=>new Set(e.flatMap(e=>[e.handle,e.id])),Bi=()=>Li?zi(Li):null;function Vi(e){let[t,n]=(0,L.useState)(Bi);return(0,L.useEffect)(()=>{if(!e)return;let t=!1;return Ri().then(e=>!t&&n(zi(e)),()=>{}),()=>{t=!0}},[e]),t}var Hi=2048,Ui=/\.(png|jpe?g|gif|webp|bmp|avif|svg|ico|heic|heif|tiff?)$/i,Wi=new Set([`image/png`,`image/jpeg`,`image/webp`,`image/gif`]),Gi=e=>Ui.test(e),Ki=e=>e.type.startsWith(`image/`)||Ui.test(e.name),qi=e=>/\.(png|jpe?g|gif|webp)$/i.test(e);function Ji(e){return e.replace(/^.*[\\/]/,``).replace(/\.[^.]*$/,``).replace(/[^A-Za-z0-9._-]+/g,`-`).replace(/^[-.]+|(?<!-)-+$/g,``).slice(0,60)||`image`}var Yi=0;function Xi(e=new Date){let t=e=>String(e).padStart(2,`0`);return`pasted-${e.getFullYear()}${t(e.getMonth()+1)}${t(e.getDate())}-${t(e.getHours())}${t(e.getMinutes())}${t(e.getSeconds())}-${++Yi}`}var Zi=e=>!e||/^image\.(png|jpe?g|gif|webp|bmp)$/i.test(e);async function Qi(e){let t=new Uint8Array(await e.arrayBuffer()),n=``;for(let e=0;e<t.length;e+=32768)n+=String.fromCharCode(...t.subarray(e,e+32768));return btoa(n)}async function $i(e){if(e.type!==`image/svg+xml`)try{let t=await createImageBitmap(e,{imageOrientation:`from-image`});return{source:t,width:t.width,height:t.height,close:()=>t.close()}}catch{}let t=await ea(e);try{let e=new Image;e.decoding=`async`,e.src=t,await e.decode();let n=e.naturalWidth||1024;return{source:e,width:n,height:e.naturalHeight||Math.round(n*.75)}}catch{throw Error(`This browser cannot read that image. Save it as PNG or JPEG and attach it again.`)}}function ea(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result||``)),r.onerror=()=>n(Error(`The image could not be read.`)),r.readAsDataURL(e)})}function ta(e,t){let n=document.createElement(`canvas`);return n.width=e,n.height=t,n}function na(e,t,n){return new Promise(r=>e.toBlob(r,t,n))}function ra(e){let t=e.getContext(`2d`);if(!t)return!1;let{data:n}=t.getImageData(0,0,e.width,e.height),r=Math.max(1,Math.floor(n.length/4/25e4))*4;for(let e=3;e<n.length;e+=r)if(n[e]<255)return!0;return!1}async function ia(e,t={}){let n=t.max??5242880,r=t.name??e.name??``,i=Zi(r)?Xi():Ji(r);if(e.type===`image/gif`&&e.size<=n){let t=await $i(e).catch(()=>null);if(t?.close?.(),t)return{name:`${i}.gif`,type:`image/gif`,data:await Qi(e),width:t.width,height:t.height,changed:!1}}let a=await $i(e);try{let t=Math.min(1,Hi/Math.max(a.width,a.height));for(let o=0;o<6;o++){let o=Math.max(1,Math.round(a.width*t)),s=Math.max(1,Math.round(a.height*t)),c=ta(o,s),l=c.getContext(`2d`);if(!l)throw Error(`This browser cannot draw the image.`);l.imageSmoothingQuality=`high`,l.drawImage(a.source,0,0,o,s);let u=ra(c),d=/^image\/(jpeg|heic|heif|avif)$/.test(e.type)||/\.(jpe?g|heic|heif|avif)$/i.test(r),f=u?[[`image/png`,void 0],[`image/webp`,.92],[`image/webp`,.8]]:d?[[`image/jpeg`,.9],[`image/jpeg`,.8],[`image/jpeg`,.7]]:[[`image/png`,void 0],[`image/webp`,.92],[`image/jpeg`,.9],[`image/jpeg`,.8],[`image/jpeg`,.7]];for(let[e,t]of f){let r=await na(c,e,t);if(r&&r.type===e&&Wi.has(e)&&r.size<=n)return{name:`${i}${e===`image/png`?`.png`:e===`image/webp`?`.webp`:`.jpg`}`,type:e,data:await Qi(r),width:o,height:s,changed:!0}}t*=.75}throw Error(`The image could not be made small enough to attach.`)}finally{a.close?.()}}var aa=/<!-- (?:attached-files|forgeqe:files)\s*([\s\S]*?)-->\s*/,oa=/^(?:\.forgeqe\/inbox\/[A-Za-z0-9][A-Za-z0-9._-]*|(?:[A-Za-z0-9][A-Za-z0-9 ._-]*\/)*[A-Za-z0-9][A-Za-z0-9 ._-]*\/?)$/,sa=/\.(png|jpe?g|gif|webp)$/i,ca=e=>sa.test(e),la=/\.(png|jpe?g|gif|webp|pdf|docx|xlsx|pptx|md|txt|csv|tsv|json|xml|ya?ml|tsx?|jsx?|mjs|cjs|py|java|cs|go|rb|sql|log|feature|toml|ini|sh|ps1)$/i,ua=e=>la.test(e),da=/\.(docx|xlsx|pptx)$/i,fa=e=>da.test(e);function pa(e){let t=/\.(doc|xls|ppt)$/i.exec(e);return t?`.${t[1].toLowerCase()}x`:void 0}var ma=e=>/\s/.test(e)?`@"${e}"`:`@${e}`;function ha(e,t){let n=ma(t),r=e.indexOf(n);for(;r>=0;){let t=r+n.length;if((r===0||/\s/.test(e[r-1]))&&(t===e.length||/\s/.test(e[t])))return e.slice(0,r)+e.slice(t).replace(/^ /,``);r=e.indexOf(n,r+1)}return e}function ga(e,t){return ha(e,t)!==e}function _a(e){let t=e.endsWith(`/`)&&e.length>1,n=t?e.slice(0,-1):e,r=n.lastIndexOf(`/`),i=t?`/`:``;return r<=0?{name:`${n}${i}`,dir:``}:{name:`${n.slice(r+1)}${i}`,dir:n.slice(0,r)}}function va(e,t){if(t<0||t>e.length)return null;let n=e.slice(0,t),r=n.lastIndexOf(`@`);if(r<0||r>0&&/[\w./]/.test(n[r-1]))return null;let i=n.slice(r+1);return i.length>200?null:i.startsWith(`"`)?/["@\n]/.test(i.slice(1))?null:{start:r,query:i.slice(1)}:/[\s@"]/.test(i)?null:{start:r,query:i}}function ya(e,t,n,r){let i=`${ma(r)} `;return{text:`${e.slice(0,t)}${i}${e.slice(n)}`,cursor:t+i.length}}function ba(e,t){let n=e.trim(),r=t.filter(e=>e.path);if(!r.length)return n;let i=r.flatMap(e=>e.text?[`- ${e.path}`,`- ${e.text}`]:[`- ${e.path}`]).join(`
39
+ `);return`<!-- attached-files\nRead these files with your tools; each path is relative to your working folder:\n${r.some(e=>e.text)?`A Word, Excel or PowerPoint file is listed with a .md copy of its text after it: read the copy.
40
+ `:``}${i}\n-->\n${n}`.trim()}function xa(e){let t=aa.exec(e),n=t?t[1].split(/\r?\n/).map(e=>e.replace(/^- /,``).trim()).filter(e=>oa.test(e)):[],r=n.filter(e=>!(e.endsWith(`.md`)&&fa(e.slice(0,-3))&&n.includes(e.slice(0,-3))));return{body:e.replace(aa,``).replace(/^(?:<!--[\s\S]*?-->\s*)+/,``).trim(),files:r}}function Sa(e,t){let n=/(^|\s)\/([a-z0-9-]{0,40})$/i.exec(e.slice(0,t));return!n||!/^[a-z0-9-]*(\s|$)/i.test(e.slice(t))?null:{start:n.index+n[1].length,query:n[2].toLowerCase()}}var Ca=/^\/[a-z][a-z0-9-]{0,39}(?=\s|$)/,wa=/(^|\s)(@"[^"\n]+"|@[^\s@"]*[^\s@".,;:!?)\]])/g,Ta=/(^|\s)\/([a-z][a-z0-9-]{0,39})(?=[\s.,;:!?)]|$)/g;function Ea(e,t){let n=[];for(let t of e.matchAll(wa))n.push({start:t.index+t[1].length,text:t[2],mark:`file`});for(let r of e.matchAll(Ta)){let e=r.index+r[1].length;(t?t.has(r[2]):e===0)&&n.push({start:e,text:`/${r[2]}`,mark:`persona`})}n.sort((e,t)=>e.start-t.start);let r=[],i=0;for(let t of n)t.start<i||(t.start>i&&r.push({text:e.slice(i,t.start)}),r.push({text:t.text,mark:t.mark}),i=t.start+t.text.length);return i<e.length&&r.push({text:e.slice(i)}),r}function Da(e){let t=Ca.exec(e.trimStart());return t?{command:t[0],rest:e.trimStart().slice(t[0].length).trim()}:{command:``,rest:e}}function Oa(e,t,n){let{command:r,rest:i}=Da(e),a=t.trim(),o=[...new Set([...i.matchAll(wa)].map(e=>e[2]))].filter(e=>![...a.matchAll(wa)].some(t=>t[2]===e)),s=e=>[...e.matchAll(Ta)].map(e=>e[2]).filter(e=>n?.has(e)),c=[...new Set(s(i))].filter(e=>e!==r.slice(1)&&!s(a).includes(e));return c.length&&(a=`${a}\n\nPersonas: ${c.map(e=>`/${e}`).join(` `)}`),o.length&&(a=`${a}\n\nFiles: ${o.join(` `)}`),r&&Da(a).command!==r&&(a=`${r} ${a}`),a.trim()}var ka=8;function Aa(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=String(r.result||``),n=e.indexOf(`,`);t(n>=0?e.slice(n+1):``)},r.onerror=()=>n(Error(`The file could not be read.`)),r.readAsDataURL(e)})}function ja({path:e,name:t,note:n}){let r=_a(e),i=n||r.dir;return(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-col items-start gap-1`,children:[(0,R.jsx)(`span`,{className:`max-w-full truncate text-body-sm font-medium leading-tight text-ink`,children:t||r.name}),i?(0,R.jsx)(`span`,{className:`max-w-full truncate text-body-sm leading-tight text-muted`,"data-tip":e||void 0,children:i}):null]})}function Ma({file:e,scope:t,onView:n}){let r=e.pending&&e.pending.type.startsWith(`image/`)&&ca(e.name)?`data:${e.pending.type};base64,${e.pending.data}`:``,[i,a]=(0,L.useState)(``),o=`${t.chat||``}|${t.code===!1?0:1}`;(0,L.useEffect)(()=>{if(a(``),r||!e.path||!ca(e.path))return;let n=!1;return Ie.openFile(e.path,t).then(e=>!n&&e.kind===`image`&&a(e.url)).catch(()=>{}),()=>{n=!0}},[e.path,r,o]);let s=r||i;if(!s)return null;let c=(0,R.jsx)(`img`,{src:s,alt:``,className:S(h,`size-8 flex-none`)});return n?(0,R.jsx)(`button`,{type:`button`,"aria-label":`Preview ${e.name}`,"data-tip":`Preview`,onClick:()=>n(s),className:`inline-flex flex-none cursor-zoom-in border-0 bg-transparent p-0`,children:c}):c}function Na({text:e,scope:t={}}){let{body:n,files:r}=xa(e),[i,a]=(0,L.useState)(``);return!n&&!r.length?null:(0,R.jsxs)(`div`,{className:`ml-auto flex max-w-[min(85%,640px)] flex-col items-end gap-2`,children:[r.length>0&&(0,R.jsx)(`ul`,{"aria-label":`Attached files`,className:`m-0 flex list-none flex-wrap justify-end gap-2 p-0`,children:r.map(e=>(0,R.jsx)(`li`,{className:`inline-flex max-w-full`,children:e.endsWith(`/`)?(0,R.jsx)(`span`,{className:`inline-flex max-w-full items-center gap-2 rounded-sm bg-surface-strong px-2 py-2`,children:(0,R.jsx)(ja,{path:e})}):(0,R.jsxs)(I,{"data-tip":`Open ${e}`,onClick:async()=>{a(``),a(await Ge(e,e=>Ie.openFile(e,t)))},className:`max-w-full justify-start py-1 pl-1 text-left`,children:[(0,R.jsx)(Ma,{file:{path:e,name:_a(e).name},scope:t}),(0,R.jsx)(ja,{path:e})]})},e))}),i&&(0,R.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:i}),n&&(0,R.jsx)(`div`,{className:S(`rounded-md bg-bg px-4 py-2 text-ink shadow-md [overflow-wrap:anywhere]`,`text-body-lg leading-relaxed whitespace-pre-wrap`),children:n})]})}function Pa({file:e,scope:t,onRemove:n,onView:r}){return(0,R.jsxs)(`span`,{className:`inline-flex max-w-[260px] items-center gap-2 rounded-sm bg-surface-strong py-2 pr-1 pl-2`,children:[(0,R.jsx)(Ma,{file:e,scope:e.scope??t,onView:r}),(0,R.jsx)(ja,{path:e.path,name:e.name,note:e.pending?`Saves when you send`:void 0}),(0,R.jsx)(I,{variant:`icon`,size:`icon-xs`,className:`self-start`,type:`button`,"aria-label":`Remove ${e.name}`,"data-tip":`Remove ${e.name}`,onClick:n,children:(0,R.jsx)(St,{size:12,"aria-hidden":`true`})})]})}async function Fa(e,t,n){try{let r=await Ie.openFile(e,n),i=await fetch(r.url,{credentials:`same-origin`});if(!i.ok)return null;let a=t.replace(/\.[^.]*$/,``),o=await ia(await i.blob(),{name:`${a}-picture`}),s=await Ie.attachFile({name:o.name,type:o.type,data:o.data},n);return{id:s.path,path:s.path,name:s.name,kind:`upload`,image:!0,scope:n,copyOf:e}}catch{return null}}var Ia=716800,La=5242880,Ra=52428800;function za(e,t,n,r={}){let[i,a]=(0,L.useState)([]),[o,s]=(0,L.useState)(``),[c,l]=(0,L.useState)([]),[u,d]=(0,L.useState)(!1),[f,p]=(0,L.useState)(null),[m,h]=(0,L.useState)(0),[g,_]=(0,L.useState)(`file`),[v,y]=(0,L.useState)(!1),[b,x]=(0,L.useState)(!1),[C,w]=(0,L.useState)(null),ee=(0,L.useRef)(null),T=(0,L.useRef)(0),E=(0,L.useRef)(0),D=(0,L.useRef)(null),te=(0,L.useRef)(0),ne=(0,L.useRef)(e);ne.current=e;let O=(0,L.useRef)(i),ie=(0,L.useRef)(r);ie.current=r;let ae=`${r.chat||``}|${r.code===!1?0:1}`,k=e=>{O.current=e,a(e)},A=e=>{let t=++te.current;g===`persona`?(y(!0),Ri().then(n=>{t===te.current&&(l(n.filter(t=>t.handle.startsWith(e)||t.id.startsWith(e)).slice(0,8).map(e=>({path:`/${e.handle}`,name:e.name,role:e.role}))),h(0))}).catch(e=>t===te.current&&s(`The personas did not load: ${e.message}`)).finally(()=>t===te.current&&y(!1))):Ie.files(e,ie.current).then(e=>{t===te.current&&(l(e.files),h(0))}).catch(e=>t===te.current&&s(e.message))};(0,L.useEffect)(()=>{if(f===null)return;let e=setTimeout(()=>A(f),80);return()=>clearTimeout(e)},[f,ae,g]),(0,L.useEffect)(()=>{u&&document.getElementById(`${n}-file-${m}`)?.scrollIntoView({block:`nearest`})},[u,m,n]);let oe=()=>{++te.current,d(!1),p(null),l([]),ee.current=null},se=e=>{let t=O.current;return e.path&&t.some(t=>t.path===e.path)?``:e.pending&&t.some(t=>t.kind===`upload`&&t.name===e.name)?`${e.name} is already attached.`:t.length>=ka?`At most ${ka} files go with one message.`:(k([...t,e]),``)},ce=e=>{e.kind===`upload`&&e.path&&Ie.dropFile(e.path,e.scope??ie.current).catch(e=>s(e.message))},le=e=>{let n=O.current.find(t=>(t.id||t.path||t.name)===e);if(n){if(k(O.current.filter(e=>e!==n)),ce(n),n.kind===`project`){let e=ha(ne.current,n.name);e!==ne.current&&t(e)}s(``)}},j=e=>{requestAnimationFrame(()=>{let t=document.getElementById(n);t?.focus(),t?.setSelectionRange(e,e)})},M=e=>{if(g===`persona`){let n=ne.current,r=n.slice(E.current).replace(/^[a-z0-9-]*/i,``);oe();let i=`${n.slice(0,T.current)}${e.path} `;t(`${i}${r.replace(/^\s+/,``)}`),j(i.length);return}let n=ee.current,r=se({id:e.path,path:e.path,name:e.name,kind:`project`,image:ca(e.path)});if(s(r),oe(),!n||r)return;let i=ya(ne.current,n.start,E.current,e.name);t(i.text),j(i.cursor)},ue=(e,t)=>{E.current=t;let n=ne.current;if(e!==n){let t=O.current.filter(t=>t.kind===`project`&&ga(n,t.name)&&!ga(e,t.name));t.length&&k(O.current.filter(e=>!t.includes(e)))}let r=Sa(e,t);if(r!==null){ee.current=null,T.current=r.start,g!==`persona`&&(++te.current,l([])),u&&g===`persona`||y(!0),_(`persona`),p(r.query),d(!0);return}let i=va(e,t);i?(ee.current=i,g!==`file`&&(++te.current,l([])),_(`file`),p(i.query),d(!0)):u&&oe()},de=e=>u?e.key===`ArrowDown`?(e.preventDefault(),h(e=>Math.min(e+1,Math.max(c.length-1,0))),!0):e.key===`ArrowUp`?(e.preventDefault(),h(e=>Math.max(e-1,0)),!0):e.key===`Escape`?(e.preventDefault(),oe(),!0):(re(e)||e.key===`Tab`)&&!e.shiftKey&&c[m]?(e.preventDefault(),E.current=e.currentTarget.selectionStart??E.current,M(c[m]),!0):!1:!1,N=e=>{s(``);let t=[...e];(async()=>{let e=[];for(let n of t){if(!n.size){e.push(`${n.name||`The pasted file`} is empty.`);continue}if(Ki(n)){if(n.size>Ra){e.push(`${n.name} is over ${Ra/1024/1024} MB: save a smaller copy and attach that.`);continue}try{let t=await ia(n),r=se({id:`pending:${t.name}:${n.size}:${n.lastModified}`,path:``,name:t.name,kind:`upload`,image:!0,pending:{name:t.name,type:t.type,data:t.data}});if(r&&(e.push(r),O.current.length>=ka))break}catch(t){e.push(`${n.name}: ${t.message}`)}continue}let t=pa(n.name);if(t){e.push(`${n.name}: save it as ${t} and attach that (the older format is not read).`);continue}if(!ua(n.name)){e.push(`${n.name}: attach an image, a PDF, a Word, Excel or PowerPoint file, or a text or code file.`);continue}let r=fa(n.name)?La:Ia;if(n.size>r){let t=r>=1048576?`${r/1024/1024} MB`:`${Math.round(r/1024)} KB`;e.push(`${n.name} is too large to attach here (${t} at most): put it in the agent's folder and @ its path instead.`)}else try{let t=await Aa(n),r=se({id:`pending:${n.name}:${n.size}:${n.lastModified}`,path:``,name:n.name,kind:`upload`,image:ca(n.name),pending:{name:n.name,type:n.type||`application/octet-stream`,data:t}});if(r&&(e.push(r),O.current.length>=ka))break}catch(t){e.push(t.message)}}e.length&&s(e.join(` `))})()},fe={onDragEnter:e=>{e.preventDefault(),[...e.dataTransfer.types].includes(`Files`)&&x(!0)},onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect=`copy`},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||x(!1)},onDrop:e=>{e.preventDefault(),x(!1),e.dataTransfer.files.length&&N(e.dataTransfer.files)}},pe=i.filter(t=>!(t.kind===`project`&&ga(e,t.name)));return{files:i,error:o,setError:s,hasFiles:i.length>0,wrap:async e=>{let t=O.current,n=ie.current,r=[];for(let e=0;e<t.length;e++){let i=t[e];try{if(i.kind===`project`){let e=await Ie.attachFile({path:i.path},n);if(r.push({...i,id:e.path,path:e.path,name:e.name}),Gi(e.name)&&(!qi(e.name)||(e.size??0)>5242880)&&!t.some(t=>t.copyOf===e.path)&&!r.some(t=>t.copyOf===e.path)){let t=await Fa(e.path,e.name,n);t&&r.push(t)}}else if(i.pending){let e=await Ie.attachFile(i.pending,n);r.push({id:e.path,path:e.path,name:e.name,kind:`upload`,image:ca(e.path),scope:n,...i.copyOf?{copyOf:i.copyOf}:{},...e.text?{text:e.text}:{}})}else r.push(i);k([...r,...t.slice(e+1)])}catch(n){throw k([...r,...t.slice(e)]),Error(`${i.name}: ${n.message}`,{cause:n})}}return k(r),ba(e,r)},reset:e=>{if(!e?.keep)for(let e of O.current)ce(e);k([]),s(``),oe()},onEdit:ue,onKeyDown:de,onFiles:N,drop:fe,dropping:b,pick:()=>D.current?.click(),fileInput:(0,R.jsx)(`input`,{ref:D,type:`file`,multiple:!0,className:`hidden`,onChange:e=>(e.target.files&&N(e.target.files),e.target.value=``)}),chips:(0,R.jsxs)(R.Fragment,{children:[pe.length>0&&(0,R.jsx)(`ul`,{"aria-label":`Attached files`,className:`m-0 mb-2 flex list-none flex-wrap gap-2 p-0`,children:pe.map(e=>(0,R.jsx)(`li`,{children:(0,R.jsx)(Pa,{file:e,scope:r,onRemove:()=>le(e.id||e.path||e.name),onView:t=>w({src:t,name:e.name,pending:!!e.pending})})},e.id||e.path||e.name))}),(0,R.jsx)(Nr,{wide:!0,open:!!C,onClose:()=>w(null),title:C?.name||``,description:C?.pending?`As it goes to the model when you send: at most 2048 pixels across, with no location or camera details.`:`From the agent's folder.`,footer:(0,R.jsxs)(I,{onClick:()=>w(null),children:[(0,R.jsx)(St,{"aria-hidden":`true`}),`Close`]}),children:C&&(0,R.jsx)(`img`,{src:C.src,alt:`${C.name}, attached`,className:S(`rounded-base bg-surface-muted object-cover`,`block h-auto max-w-full object-contain`)})})]}),combo:{expanded:u,listId:`${n}-files`,activeId:u&&c[m]?`${n}-file-${m}`:void 0},mentions:u&&!(g===`persona`&&T.current>0&&c.length===0)&&(0,R.jsxs)(`div`,{className:S(`rounded-md border border-overlay-line bg-overlay p-2 text-ink shadow-menu backdrop-blur-[16px]`,`absolute bottom-full left-0 z-20 mb-2 w-[min(420px,calc(100vw-48px))]`),children:[c.length===0&&(0,R.jsx)(`p`,{role:`status`,className:`m-0 px-4 py-2 text-body-sm text-muted`,children:g===`persona`?v?`Reading the personas…`:o.startsWith(`The personas did not load`)?`The personas did not load.`:`No persona has this command. Business personas are on Mask's page.`:f?`No file or folder matches.`:`Type a name to find a file or folder.`}),(0,R.jsx)(`div`,{id:`${n}-files`,role:`listbox`,"aria-label":g===`persona`?`Business personas`:`Files in the agent's folder`,className:`max-h-64 overflow-y-auto`,children:c.map((e,t)=>{let r=g===`persona`?[e.path,e.role].filter(Boolean).join(` · `):_a(e.path).dir;return(0,R.jsxs)(`button`,{id:`${n}-file-${t}`,type:`button`,tabIndex:-1,role:`option`,"aria-selected":t===m,className:S(`flex w-full min-h-11 cursor-pointer items-center gap-4 rounded-base border-0 bg-transparent px-4 py-2 text-left text-body-sm text-ink no-underline transition-colors duration-150 hover:bg-tint hover:text-ink aria-[current]:bg-tint-hover aria-selected:bg-tint-hover aria-pressed:bg-tint-hover aria-checked:bg-tint-hover has-[:checked]:bg-tint-hover disabled:cursor-not-allowed disabled:opacity-50`,`min-w-0 flex-col items-start gap-1`),onMouseDown:e=>e.preventDefault(),onClick:()=>M(e),children:[(0,R.jsx)(`span`,{className:`max-w-full truncate text-body-sm font-medium text-ink`,children:e.name}),r?(0,R.jsx)(`span`,{className:`max-w-full truncate text-body-sm text-muted`,children:r}):null]},e.path)})})]})}}var Ba=()=>typeof CSS<`u`&&typeof CSS.supports==`function`&&CSS.supports(`field-sizing: content`);function Va({id:e,value:t,onChange:n,onSend:r,onStop:i,busy:a,disabled:o,placeholder:s,label:c,left:l,right:u,top:d,rows:f=2,canSend:p,onEdit:m,onKey:h,onFiles:g,dropping:_,drop:v,mentions:y,combo:b}){let x=p??t.trim().length>0,C=(0,L.useRef)(null),w=(0,L.useRef)(null),ee=Ea(t,Vi(t.includes(`/`))),T=ee.some(e=>e.mark),E=z()&&f===2?1:f;return(0,L.useLayoutEffect)(()=>{let e=C.current;e&&!Ba()&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`)},[t,E]),(0,R.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),a?i?.():x&&!o&&r()},onDragEnter:v?.onDragEnter,onDragOver:v?.onDragOver,onDragLeave:v?.onDragLeave,onDrop:v?.onDrop,className:S(`relative box-border w-full rounded-lg border-0 bg-bg py-4 pr-4 pl-6 shadow-composer short:py-4 has-[textarea:focus-visible]:outline-2 has-[textarea:focus-visible]:outline-offset-2 has-[textarea:focus-visible]:outline-accent`,_&&`outline-2 outline-offset-2 outline-accent`),children:[_&&(0,R.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-lg bg-accent-soft/80 text-body-sm font-medium text-accent-fg`,children:`Drop files here`}),y,(0,R.jsx)(`label`,{htmlFor:e,className:`sr-only`,children:c}),d,(0,R.jsxs)(`div`,{className:`relative`,children:[T&&(0,R.jsx)(`div`,{ref:w,"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 overflow-hidden text-body-lg leading-[1.55] whitespace-pre-wrap text-transparent [overflow-wrap:break-word]`,children:ee.map((e,t)=>e.mark?(0,R.jsx)(`mark`,{className:`rounded-[5px] bg-surface-strong text-transparent shadow-[0_0_0_2px_var(--color-surface-strong)]`,children:e.text},t):(0,R.jsx)(`span`,{children:e.text},t))}),(0,R.jsx)(`textarea`,{ref:C,id:e,rows:E,style:{minBlockSize:`${E}lh`},value:t,disabled:o,onChange:e=>{n(e.target.value),m?.(e.target.value,e.target.selectionStart)},onSelect:e=>m?.(e.currentTarget.value,e.currentTarget.selectionStart),onPaste:e=>{let t=[...e.clipboardData.files];t.length&&g&&(e.preventDefault(),g(t))},onScroll:e=>{w.current&&(w.current.scrollTop=e.currentTarget.scrollTop)},...b?{role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":b.expanded,"aria-controls":b.listId,...b.expanded&&b.activeId?{"aria-activedescendant":b.activeId}:{}}:{},onKeyDown:e=>{h?.(e)||e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),!k(e)&&!a&&x&&!o&&r())},placeholder:s,className:`relative box-border max-h-[50vh] w-full resize-none [field-sizing:content] overflow-y-auto border-0 bg-transparent p-0 text-body-lg leading-[1.55] text-ink outline-none placeholder:text-muted focus-visible:outline-none disabled:opacity-60`})]}),(0,R.jsxs)(`div`,{className:`mt-2 -ml-2 flex items-center gap-1 short:mt-2`,children:[l,(0,R.jsx)(`div`,{className:`flex-auto`}),u,a?(0,R.jsx)(`button`,{type:`submit`,"aria-label":`Stop`,className:`ml-2 inline-flex size-11 flex-none cursor-pointer items-center justify-center rounded-full border-0 bg-ink text-bg hover:bg-ink-2`,children:(0,R.jsx)(dn,{size:14,fill:`currentColor`,"aria-hidden":`true`})}):(0,R.jsx)(`button`,{type:`submit`,"aria-label":`Send`,disabled:o,className:S(`ml-2 inline-flex size-11 flex-none cursor-pointer items-center justify-center rounded-full border-0 transition-colors disabled:cursor-not-allowed`,x&&!o?`bg-accent text-accent-ink hover:bg-accent-hover`:`bg-line text-muted`),children:(0,R.jsx)(vn,{size:20,strokeWidth:2.2,"aria-hidden":`true`})})]})]})}function Ha(e,t){let[n,r]=(0,L.useState)(null),i=(0,L.useRef)(null),a=(0,L.useRef)(t);a.current=t;let o=()=>{i.current&&qn(i.current),i.current=null};return(0,L.useEffect)(()=>o,[]),{state:n,start:(0,L.useCallback)(async t=>{if(!t.trim())return;o();let{command:n,rest:s}=Da(t);if(n&&!s)return r({original:t,job:null,error:`Type what ${n} should do, then refine it.`});r({original:t,job:null,error:``});try{let n=await Te.start(s,e);r({original:t,job:n,error:``}),i.current=Zn(async()=>{try{let i=await Te.job();if(!i||i.target!==e||i.startedAt!==n.startedAt)return;if(i.running)return r(e=>e&&{...e,job:i});o();let s=i.exitCode===0?i.result:void 0;s?.refined&&a.current(Oa(t,s.refined,Bi())),r(e=>e&&{...e,job:i,result:s})}catch(e){o(),r(t=>t&&{...t,error:e.message})}},700)}catch(e){r({original:t,job:null,error:e.message})}},[e]),stop:(0,L.useCallback)(async()=>{o(),await Te.stop().catch(()=>{}),r(null)},[]),close:(0,L.useCallback)(()=>{o(),r(null)},[]),undo:(0,L.useCallback)(()=>{r(e=>(e&&a.current(e.original),null))},[]),running:!!n&&!n.error&&(!n.job||n.job.running)}}function Ua({onClick:e,running:t,disabled:n}){return(0,R.jsx)(I,{variant:`ghost`,className:`flex-none px-2 text-body-lg sm:px-2`,"aria-label":`Refine`,disabled:n||t,onClick:e,"data-tip":`Make the request precise before sending it: nothing runs`,children:t?(0,R.jsx)(Ke,{state:`thinking`,px:18}):(0,R.jsx)($t,{"aria-hidden":`true`})})}function Wa({state:e,onStop:t,onUndo:n,onClose:r}){let[i,a]=(0,L.useState)(!1),o=e.job,s=e.result,c=!e.error&&(!o||o.running),l=e.error||o?.lines.filter(e=>!/^→ |^args /.test(e)).slice(-3).join(` `)||`Refine gave no result.`;return(0,R.jsxs)(`div`,{"aria-live":`polite`,className:`-mt-1 mb-4 flex flex-col gap-2 border-b border-line-soft pb-4 text-body-sm`,children:[(0,R.jsxs)(`div`,{className:`flex min-h-7 flex-wrap items-center gap-x-2 gap-y-1`,children:[c?(0,R.jsx)(Ke,{state:`thinking`,px:18,label:`Refining`}):s?(0,R.jsx)(F,{icon:Zt,size:16}):(0,R.jsx)(F,{icon:Ct,size:16,className:`text-fail`}),(0,R.jsx)(`span`,{className:S(`font-medium`,c&&`shimmer`),children:(0,R.jsx)(`span`,{children:c?`Refining your request…`:s?`Refined: your request below, made precise`:`Refine did not finish`})}),c&&(0,R.jsx)(`span`,{className:`text-muted`,children:`Checking it against the capabilities, the systems and the project. Nothing runs.`}),s&&(0,R.jsxs)(`span`,{className:`text-muted`,children:[s.grounded.filter(e=>e.checked).length,` of `,s.grounded.length,` facts checked`]}),(0,R.jsx)(`span`,{className:`flex-auto`}),c?(0,R.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:t,children:[(0,R.jsx)(dn,{"aria-hidden":`true`}),`Stop`]}):(0,R.jsxs)(R.Fragment,{children:[s&&(s.assumed.length>0||typeof s.ste==`number`)&&(0,R.jsxs)(I,{variant:`ghost`,size:`sm`,"aria-expanded":i,onClick:()=>a(!i),className:`gap-1`,children:[`Details`,(0,R.jsx)(tt,{size:14,"aria-hidden":`true`,className:S(`transition-transform`,i&&`rotate-180`)})]}),s&&(0,R.jsxs)(I,{variant:`ghost`,size:`sm`,type:`button`,onClick:n,"data-tip":`Put your own words back`,children:[(0,R.jsx)(Ze,{size:14,"aria-hidden":`true`}),`Undo`]}),(0,R.jsx)(I,{variant:`icon`,size:`icon-xs`,type:`button`,"aria-label":`Close the note`,"data-tip":`Close the note`,onClick:r,children:(0,R.jsx)(St,{size:14,"aria-hidden":`true`})})]})]}),!c&&!s&&(0,R.jsx)(`p`,{className:S(P.fail,`m-0`),children:l}),s&&s.missing.length>0&&(0,R.jsxs)(`div`,{className:S(P.warn,`flex flex-col gap-1`),children:[(0,R.jsxs)(`span`,{className:`flex items-center gap-2 font-medium text-warn`,children:[(0,R.jsx)(F,{icon:Ct,size:14}),`Still missing: add it before you send`]}),(0,R.jsx)(`ul`,{className:`m-0 list-disc pl-6 text-ink-2`,children:s.missing.map(e=>(0,R.jsx)(`li`,{children:e},e))})]}),s&&(0,R.jsx)(cr,{open:i,children:(0,R.jsxs)(`div`,{className:`flex flex-col gap-1 text-muted [overflow-wrap:anywhere]`,children:[s.assumed.length>0&&(0,R.jsxs)(`p`,{className:`m-0`,children:[`Assumed: `,s.assumed.join(`; `)]}),typeof s.ste==`number`&&(0,R.jsxs)(`p`,{className:`m-0`,children:[Math.round(s.ste*100),`% of its sentences in plain technical English`]})]})})]})}function Ga(e){requestAnimationFrame(()=>{let t=document.getElementById(e);t&&(t.focus(),t.setSelectionRange(0,0),t.scrollTop=0)})}var Ka=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 150`,width:`2.06em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{fill:`#34a853`,d:`M255.285 143.47c-.084-.524-.164-1.042-.251-1.56a128.1 128.1 0 0 0-12.794-38.288a128.8 128.8 0 0 0-23.45-31.86a129.2 129.2 0 0 0-22.713-18.005c.049-.08.09-.168.14-.25c2.582-4.461 5.172-8.917 7.755-13.38l7.576-13.068c1.818-3.126 3.632-6.26 5.438-9.386q.643-1.115 1.023-2.297a11.78 11.78 0 0 0-.36-8.188q-.32-.76-.743-1.472a11.7 11.7 0 0 0-4.08-4.064a11.85 11.85 0 0 0-5.005-1.61a12 12 0 0 0-2.218.02q-.912.094-1.814.33a11.74 11.74 0 0 0-7.154 5.467c-1.814 3.127-3.628 6.26-5.438 9.386l-7.576 13.069c-2.583 4.462-5.173 8.918-7.755 13.38c-.282.487-.567.973-.848 1.467q-.586-.237-1.172-.462c-14.24-5.43-29.688-8.4-45.836-8.4c-.442 0-.879 0-1.324.006c-14.357.143-28.152 2.64-41.022 7.12a119 119 0 0 0-4.42 1.642c-.262-.455-.532-.911-.79-1.367c-2.583-4.462-5.173-8.918-7.755-13.38l-7.576-13.07a3915 3915 0 0 1-5.439-9.386A11.74 11.74 0 0 0 48.5.048a11.7 11.7 0 0 0-5.01 1.612a11.7 11.7 0 0 0-4.077 4.063c-.281.474-.532.967-.742 1.473a11.8 11.8 0 0 0-.365 8.188c.259.786.594 1.554 1.023 2.296a3973 3973 0 0 1 5.439 9.386q3.793 6.535 7.58 13.069c2.582 4.462 5.168 8.918 7.75 13.38c.02.038.046.075.065.112A129 129 0 0 0 45.32 64.38a129.7 129.7 0 0 0-22.2 24.015a128 128 0 0 0-9.34 15.24a128.2 128.2 0 0 0-10.843 28.764a131 131 0 0 0-1.951 9.524c-.087.518-.167 1.042-.247 1.56A125 125 0 0 0 0 149.118h256q-.307-2.837-.734-5.636z`}),(0,R.jsx)(`path`,{fill:`#202124`,d:`M194.59 113.712c5.122-3.41 5.867-11.3 1.661-17.62c-4.203-6.323-11.763-8.682-16.883-5.273c-5.122 3.41-5.868 11.3-1.662 17.621c4.203 6.322 11.764 8.682 16.883 5.272m-116.071-5.25c4.206-6.321 3.46-14.21-1.662-17.62c-5.123-3.41-12.68-1.05-16.886 5.27c-4.203 6.323-3.458 14.212 1.662 17.622c5.122 3.41 12.683 1.05 16.886-5.272`})]})),qa=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 315`,width:`0.99em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{d:`M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262`})]})),Ja=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 242`,width:`1.28em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsxs)(`defs`,{children:[(0,R.jsxs)(`linearGradient`,{id:`SVG4V795Kgq`,x1:`58.972%`,x2:`37.191%`,y1:`7.411%`,y2:`103.762%`,children:[(0,R.jsx)(`stop`,{offset:`0%`,stopColor:`#114a8b`}),(0,R.jsx)(`stop`,{offset:`100%`,stopColor:`#0669bc`})]}),(0,R.jsxs)(`linearGradient`,{id:`SVGzpurqcJr`,x1:`59.719%`,x2:`52.691%`,y1:`52.313%`,y2:`54.864%`,children:[(0,R.jsx)(`stop`,{offset:`0%`,stopOpacity:.3}),(0,R.jsx)(`stop`,{offset:`7.1%`,stopOpacity:.2}),(0,R.jsx)(`stop`,{offset:`32.1%`,stopOpacity:.1}),(0,R.jsx)(`stop`,{offset:`62.3%`,stopOpacity:.05}),(0,R.jsx)(`stop`,{offset:`100%`,stopOpacity:0})]}),(0,R.jsxs)(`linearGradient`,{id:`SVGZ5kCkZNr`,x1:`37.279%`,x2:`62.473%`,y1:`4.6%`,y2:`99.979%`,children:[(0,R.jsx)(`stop`,{offset:`0%`,stopColor:`#3ccbf4`}),(0,R.jsx)(`stop`,{offset:`100%`,stopColor:`#2892df`})]})]}),(0,R.jsx)(`path`,{fill:`url(#SVG4V795Kgq)`,d:`M85.343.003h75.753L82.457 233a12.08 12.08 0 0 1-11.442 8.216H12.06A12.06 12.06 0 0 1 .633 225.303L73.898 8.219A12.08 12.08 0 0 1 85.343 0z`}),(0,R.jsx)(`path`,{fill:`#0078d4`,d:`M195.423 156.282H75.297a5.56 5.56 0 0 0-3.796 9.627l77.19 72.047a12.14 12.14 0 0 0 8.28 3.26h68.02z`}),(0,R.jsx)(`path`,{fill:`url(#SVGzpurqcJr)`,d:`M85.343.003a11.98 11.98 0 0 0-11.471 8.376L.723 225.105a12.045 12.045 0 0 0 11.37 16.112h60.475a12.93 12.93 0 0 0 9.921-8.437l14.588-42.991l52.105 48.6a12.33 12.33 0 0 0 7.757 2.828h67.766l-29.721-84.935l-86.643.02L161.37.003z`}),(0,R.jsx)(`path`,{fill:`url(#SVGZ5kCkZNr)`,d:`M182.098 8.207A12.06 12.06 0 0 0 170.67.003H86.245c5.175 0 9.773 3.301 11.428 8.204L170.94 225.3a12.062 12.062 0 0 1-11.428 15.92h84.429a12.062 12.062 0 0 0 11.425-15.92z`})]})),Ya=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`defs`,{children:(0,R.jsxs)(`radialGradient`,{id:`SVGwZwAicDR`,cx:`50.141%`,cy:`50.003%`,r:`50.119%`,fx:`50.141%`,fy:`50.003%`,children:[(0,R.jsx)(`stop`,{offset:`0%`,stopColor:`#797979`}),(0,R.jsx)(`stop`,{offset:`100%`,stopColor:`#4c4c4c`})]})}),(0,R.jsx)(`circle`,{cx:127.949,cy:128.603,r:127.397,fill:`#f5bb60`}),(0,R.jsx)(`circle`,{cx:114.961,cy:115.615,r:114.685,fill:`#e86f32`}),(0,R.jsx)(`circle`,{cx:130.16,cy:100.416,r:99.485,fill:`#e53d42`}),(0,R.jsx)(`circle`,{cx:138.174,cy:108.43,r:91.471,fill:`#bfd141`}),(0,R.jsx)(`circle`,{cx:131.542,cy:115.062,r:84.839,fill:`#6db64c`}),(0,R.jsx)(`circle`,{cx:118.001,cy:101.798,r:71.298,fill:`#afdbe7`}),(0,R.jsx)(`circle`,{cx:129.607,cy:89.915,r:59.691,fill:`#57badf`}),(0,R.jsx)(`circle`,{cx:137.069,cy:97.376,r:52.506,fill:`#02b2d6`}),(0,R.jsx)(`circle`,{cx:129.331,cy:104.837,r:44.768,fill:`url(#SVGwZwAicDR)`}),(0,R.jsx)(`circle`,{cx:129.331,cy:104.837,r:44.768,fill:`#231f20`}),(0,R.jsx)(`path`,{fill:`#fff`,d:`M141.088 98.971c4.439 1.992 10.56-2.016 13.672-8.951s2.036-14.173-2.402-16.164c-4.44-1.992-10.56 2.016-13.672 8.951s-2.037 14.173 2.402 16.164`})]})),Xa=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 257`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{fill:`#d97757`,d:`m50.228 170.321l50.357-28.257l.843-2.463l-.843-1.361h-2.462l-8.426-.518l-28.775-.778l-24.952-1.037l-24.175-1.296l-6.092-1.297L0 125.796l.583-3.759l5.12-3.434l7.324.648l16.202 1.101l24.304 1.685l17.629 1.037l26.118 2.722h4.148l.583-1.685l-1.426-1.037l-1.101-1.037l-25.147-17.045l-27.22-18.017l-14.258-10.37l-7.713-5.25l-3.888-4.925l-1.685-10.758l7-7.713l9.397.649l2.398.648l9.527 7.323l20.35 15.75L94.817 91.9l3.889 3.24l1.555-1.102l.195-.777l-1.75-2.917l-14.453-26.118l-15.425-26.572l-6.87-11.018l-1.814-6.61c-.648-2.723-1.102-4.991-1.102-7.778l7.972-10.823L71.42 0l10.63 1.426l4.472 3.888l6.61 15.101l10.694 23.786l16.591 32.34l4.861 9.592l2.592 8.879l.973 2.722h1.685v-1.556l1.36-18.211l2.528-22.36l2.463-28.776l.843-8.1l4.018-9.722l7.971-5.25l6.222 2.981l5.12 7.324l-.713 4.73l-3.046 19.768l-5.962 30.98l-3.889 20.739h2.268l2.593-2.593l10.499-13.934l17.628-22.036l7.778-8.749l9.073-9.657l5.833-4.601h11.018l8.1 12.055l-3.628 12.443l-11.342 14.388l-9.398 12.184l-13.48 18.147l-8.426 14.518l.778 1.166l2.01-.194l30.46-6.481l16.462-2.982l19.637-3.37l8.88 4.148l.971 4.213l-3.5 8.62l-20.998 5.184l-24.628 4.926l-36.682 8.685l-.454.324l.519.648l16.526 1.555l7.065.389h17.304l32.21 2.398l8.426 5.574l5.055 6.805l-.843 5.184l-12.962 6.611l-17.498-4.148l-40.83-9.721l-14-3.5h-1.944v1.167l11.666 11.406l21.387 19.314l26.767 24.887l1.36 6.157l-3.434 4.86l-3.63-.518l-23.526-17.693l-9.073-7.972l-20.545-17.304h-1.36v1.814l4.73 6.935l25.017 37.59l1.296 11.536l-1.814 3.76l-6.481 2.268l-7.13-1.297l-14.647-20.544l-15.1-23.138l-12.185-20.739l-1.49.843l-7.194 77.448l-3.37 3.953l-7.778 2.981l-6.48-4.925l-3.436-7.972l3.435-15.749l4.148-20.544l3.37-16.333l3.046-20.285l1.815-6.74l-.13-.454l-1.49.194l-15.295 20.999l-23.267 31.433l-18.406 19.702l-4.407 1.75l-7.648-3.954l.713-7.064l4.277-6.286l25.47-32.405l15.36-20.092l9.917-11.6l-.065-1.686h-.583L44.07 198.125l-12.055 1.555l-5.185-4.86l.648-7.972l2.463-2.593l20.35-13.999z`})]})),Za=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 246`,width:`1.26em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsxs)(`defs`,{children:[(0,R.jsxs)(`linearGradient`,{id:`SVGvnhR7dox`,x1:`99.14%`,x2:`33.859%`,y1:`112.708%`,y2:`37.755%`,children:[(0,R.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,R.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]}),(0,R.jsxs)(`linearGradient`,{id:`SVGgker3cTp`,x1:`.926%`,x2:`66.18%`,y1:`-12.582%`,y2:`62.306%`,children:[(0,R.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,R.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]})]}),(0,R.jsx)(`path`,{fill:`url(#SVGvnhR7dox)`,d:`M9.26 187.33c-2.64 4.307-5.607 9.305-8.126 13.287a8.127 8.127 0 0 0 2.722 11.052l52.823 32.507a8.127 8.127 0 0 0 11.256-2.763c2.113-3.536 4.835-8.127 7.801-13.044c20.926-34.538 41.974-30.312 79.925-12.19l52.376 24.908a8.127 8.127 0 0 0 10.93-4.063l25.152-56.886a8.127 8.127 0 0 0-4.063-10.646c-11.052-5.201-33.034-15.562-52.823-25.111c-71.189-34.579-131.691-32.344-177.972 42.949`}),(0,R.jsx)(`path`,{fill:`url(#SVGgker3cTp)`,d:`M246.115 58.232c2.641-4.307 5.607-9.305 8.127-13.287a8.127 8.127 0 0 0-2.723-11.052L198.696 1.386a8.127 8.127 0 0 0-11.58 2.682c-2.113 3.535-4.835 8.127-7.802 13.043c-20.926 34.538-41.974 30.313-79.925 12.19L47.176 4.515a8.127 8.127 0 0 0-10.93 4.063L11.093 65.465a8.127 8.127 0 0 0 4.063 10.645c11.052 5.202 33.035 15.563 52.823 25.112c71.351 34.538 131.854 32.222 178.135-42.99`})]})),Qa=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 208`,width:`1.49em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{d:`M205.28 31.36c14.096 14.88 20.016 35.2 22.512 63.68c6.626 0 12.805 1.47 16.976 7.152l7.792 10.56A17.55 17.55 0 0 1 256 123.2v28.688c-.008 3.704-1.843 7.315-4.832 9.504C215.885 187.222 172.35 208 128 208c-49.066 0-98.19-28.273-123.168-46.608c-2.989-2.189-4.825-5.8-4.832-9.504V123.2c0-3.776 1.2-7.424 3.424-10.464l7.792-10.544c4.173-5.657 10.38-7.152 16.992-7.152c2.496-28.48 8.4-48.8 22.512-63.68C77.331 3.165 112.567.06 127.552 0H128c14.72 0 50.4 2.88 77.28 31.36m-77.264 47.376c-3.04 0-6.544.176-10.272.544c-1.312 4.896-3.248 9.312-6.08 12.128c-11.2 11.2-24.704 12.928-31.936 12.928c-6.802 0-13.927-1.42-19.744-5.088c-5.502 1.808-10.786 4.415-11.136 10.912c-.586 12.28-.637 24.55-.688 36.824c-.026 6.16-.05 12.322-.144 18.488c.024 3.579 2.182 6.903 5.44 8.384C79.936 185.92 104.976 192 128.016 192c23.008 0 48.048-6.08 74.512-18.144c3.258-1.48 5.415-4.805 5.44-8.384c.317-18.418.062-36.912-.816-55.312h.016c-.342-6.534-5.648-9.098-11.168-10.912c-5.82 3.652-12.927 5.088-19.728 5.088c-7.232 0-20.72-1.728-31.936-12.928c-2.832-2.816-4.768-7.232-6.08-12.128a106 106 0 0 0-10.24-.544m-26.941 43.93c5.748 0 10.408 4.66 10.408 10.409v19.183c0 5.749-4.66 10.409-10.408 10.409s-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408m53.333 0c5.749 0 10.409 4.66 10.409 10.409v19.183c0 5.749-4.66 10.409-10.409 10.409c-5.748 0-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408M81.44 28.32c-11.2 1.12-20.64 4.8-25.44 9.92c-10.4 11.36-8.16 40.16-2.24 46.24c4.32 4.32 12.48 7.2 21.28 7.2c6.72 0 19.52-1.44 30.08-12.16c4.64-4.48 7.52-15.68 7.2-27.04c-.32-9.12-2.88-16.64-6.72-19.84c-4.16-3.68-13.6-5.28-24.16-4.32m68.96 4.32c-3.84 3.2-6.4 10.72-6.72 19.84c-.32 11.36 2.56 22.56 7.2 27.04c10.56 10.72 23.36 12.16 30.08 12.16c8.8 0 16.96-2.88 21.28-7.2c5.92-6.08 8.16-34.88-2.24-46.24c-4.8-5.12-14.24-8.8-25.44-9.92c-10.56-.96-20 .64-24.16 4.32M128 56c-2.56 0-5.6.16-8.96.48c.32 1.76.48 3.68.64 5.76c0 1.44 0 2.88-.16 4.48c3.2-.32 5.92-.32 8.48-.32s5.28 0 8.48.32c-.16-1.6-.16-3.04-.16-4.48c.16-2.08.32-4 .64-5.76c-3.36-.32-6.4-.48-8.96-.48`})]})),$a=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 250`,width:`1.24em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{fill:`#161614`,d:`M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0m-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931m6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66m4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08m7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27m9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622m10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868m10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403`})]})),eo=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 247`,width:`1.25em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{fill:`#e24329`,d:`m251.845 97.642l-.328-.986l-34.85-90.903c-.657-1.808-1.972-3.287-3.616-4.274Q210.586 0 207.627 0c-1.973 0-3.78.822-5.26 1.973a8.73 8.73 0 0 0-3.124 4.767l-23.506 71.999H80.56l-23.506-72c-.493-1.808-1.644-3.451-3.123-4.766C52.45.822 50.643 0 48.67 0s-3.781.329-5.425 1.48c-1.644.986-2.96 2.465-3.617 4.273L4.781 96.656l-.33.986c-10.355 26.959-1.479 57.37 21.535 74.794h.328c0 .164 53.096 39.944 53.096 39.944l26.3 19.89l15.946 12c3.78 2.96 9.205 2.96 12.986 0l15.945-12l26.3-19.89l53.424-39.944c23.014-17.425 31.726-47.835 21.37-74.794z`}),(0,R.jsx)(`path`,{fill:`#fc6d26`,d:`m251.845 97.642l-.328-.986c-17.26 3.616-33.205 10.85-46.849 21.04c-.164 0-41.424 31.398-76.602 57.863a18377 18377 0 0 0 48.657 36.821l53.424-39.944c23.013-17.425 31.726-47.835 21.37-74.794z`}),(0,R.jsx)(`path`,{fill:`#fca326`,d:`m79.245 212.38l26.301 19.89l15.945 12c3.78 2.96 9.206 2.96 12.986 0l15.945-12l26.301-19.89s-22.684-17.095-48.657-36.82c-26.136 19.725-48.82 36.82-48.82 36.82`}),(0,R.jsx)(`path`,{fill:`#fc6d26`,d:`M51.465 117.697c-13.644-10.192-29.589-17.589-46.849-21.04l-.329.985c-10.356 26.959-1.479 57.37 21.534 74.794h.33c0 .164 53.094 39.944 53.094 39.944s22.685-17.095 48.821-36.82c-35.013-26.466-76.272-57.699-76.601-57.863`})]})),to=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 206`,width:`1.5em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{fill:`#ea4335`,d:`m170.252 56.819l22.253-22.253l1.483-9.37C153.437-11.677 88.976-7.496 52.42 33.92C42.267 45.423 34.734 59.764 30.717 74.573l7.97-1.123l44.505-7.34l3.436-3.513c19.797-21.742 53.27-24.667 76.128-6.168z`}),(0,R.jsx)(`path`,{fill:`#4285f4`,d:`M224.205 73.918a100.25 100.25 0 0 0-30.217-48.722l-31.232 31.232a55.52 55.52 0 0 1 20.379 44.037v5.544c15.35 0 27.797 12.445 27.797 27.796c0 15.352-12.446 27.485-27.797 27.485h-55.671l-5.466 5.934v33.34l5.466 5.231h55.67c39.93.311 72.553-31.494 72.864-71.424a72.3 72.3 0 0 0-31.793-60.453`}),(0,R.jsx)(`path`,{fill:`#34a853`,d:`M71.87 205.796h55.593V161.29H71.87a27.3 27.3 0 0 1-11.399-2.498l-7.887 2.42l-22.409 22.253l-1.952 7.574c12.567 9.489 27.9 14.825 43.647 14.757`}),(0,R.jsx)(`path`,{fill:`#fbbc05`,d:`M71.87 61.426C31.94 61.663-.237 94.227.001 134.158a72.3 72.3 0 0 0 28.222 56.88l32.248-32.246c-13.99-6.322-20.208-22.786-13.887-36.776s22.786-20.208 36.775-13.888a27.8 27.8 0 0 1 13.887 13.888l32.248-32.248A72.22 72.22 0 0 0 71.87 61.427`})]})),no=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsxs)(`defs`,{children:[(0,R.jsxs)(`filter`,{id:`SVGqoIxVV2h`,width:39.274,height:43.217,x:-19.824,y:13.152,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),(0,R.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,R.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_10859_4895`,stdDeviation:2.46})]}),(0,R.jsxs)(`filter`,{id:`SVGOahAkcjC`,width:84.868,height:85.688,x:-15.001,y:-40.257,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),(0,R.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,R.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_10859_4895`,stdDeviation:11.891})]}),(0,R.jsxs)(`filter`,{id:`SVGyT4fLePl`,width:79.454,height:90.917,x:-20.776,y:11.927,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),(0,R.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,R.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_10859_4895`,stdDeviation:10.109})]}),(0,R.jsxs)(`filter`,{id:`SVGonSETbRF`,width:79.731,height:81.505,x:-19.845,y:15.459,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),(0,R.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,R.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_10859_4895`,stdDeviation:10.109})]}),(0,R.jsxs)(`filter`,{id:`SVGSN7ofz6B`,width:75.117,height:73.758,x:29.832,y:-11.552,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),(0,R.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,R.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_10859_4895`,stdDeviation:9.606})]}),(0,R.jsxs)(`filter`,{id:`SVGHvbpPvOn`,width:78.135,height:78.758,x:-38.583,y:-16.253,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),(0,R.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,R.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_10859_4895`,stdDeviation:8.706})]}),(0,R.jsxs)(`filter`,{id:`SVG7JmfweRd`,width:78.877,height:77.539,x:8.107,y:-5.966,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),(0,R.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,R.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_10859_4895`,stdDeviation:7.775})]}),(0,R.jsxs)(`filter`,{id:`SVGgGkiybCN`,width:56.272,height:51.81,x:13.587,y:-18.488,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),(0,R.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,R.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_10859_4895`,stdDeviation:6.957})]}),(0,R.jsxs)(`filter`,{id:`SVGxEY6lcrm`,width:70.856,height:69.306,x:-15.526,y:-31.297,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),(0,R.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,R.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_10859_4895`,stdDeviation:5.876})]}),(0,R.jsxs)(`filter`,{id:`SVGMZLCp0yD`,width:55.502,height:51.571,x:-14.168,y:20.964,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),(0,R.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,R.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_10859_4895`,stdDeviation:7.273})]}),(0,R.jsxs)(`linearGradient`,{id:`SVG1oAMmOOu`,x1:18.447,x2:52.153,y1:43.42,y2:15.004,gradientUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`stop`,{stopColor:`#4893fc`}),(0,R.jsx)(`stop`,{offset:.27,stopColor:`#4893fc`}),(0,R.jsx)(`stop`,{offset:.777,stopColor:`#969dff`}),(0,R.jsx)(`stop`,{offset:1,stopColor:`#bd99fe`})]})]}),(0,R.jsx)(`path`,{fill:`#fff`,d:`M228.265 114.441c-19.721-8.49-36.974-20.134-51.776-34.927c-14.792-14.789-26.436-32.056-34.93-51.779a154 154 0 0 1-7.884-23.295A5.86 5.86 0 0 0 127.999 0a5.86 5.86 0 0 0-5.674 4.44a154 154 0 0 1-7.882 23.295c-8.494 19.723-20.141 36.99-34.929 51.779c-14.794 14.793-32.058 26.437-51.779 34.927a154 154 0 0 1-23.297 7.889A5.855 5.855 0 0 0 0 127.999a5.86 5.86 0 0 0 4.438 5.678a154 154 0 0 1 23.297 7.886c19.721 8.49 36.978 20.139 51.779 34.93c14.795 14.789 26.435 32.055 34.929 51.774a154 154 0 0 1 7.882 23.297a5.854 5.854 0 0 0 5.674 4.436a5.85 5.85 0 0 0 5.676-4.436a154 154 0 0 1 7.884-23.297q12.742-29.58 34.93-51.774c14.793-14.791 32.055-26.44 51.776-34.93a154 154 0 0 1 23.297-7.886a5.86 5.86 0 0 0 4.438-5.678a5.855 5.855 0 0 0-4.438-5.669a154.4 154.4 0 0 1-23.297-7.889`}),(0,R.jsx)(`g`,{filter:`url(#SVGqoIxVV2h)`,mask:`url(#SVGWpw6Gcvj)`,transform:`translate(-.101 -.049)scale(3.9436)`,children:(0,R.jsx)(`ellipse`,{cx:14.407,cy:16.95,fill:`#ffe432`,rx:14.407,ry:16.95,transform:`rotate(19.552 -44.576 -16.496)`})}),(0,R.jsx)(`g`,{filter:`url(#SVGOahAkcjC)`,mask:`url(#SVGWpw6Gcvj)`,transform:`translate(-.101 -.049)scale(3.9436)`,children:(0,R.jsx)(`ellipse`,{cx:27.433,cy:2.587,fill:`#fc413d`,rx:18.652,ry:19.062})}),(0,R.jsx)(`g`,{filter:`url(#SVGyT4fLePl)`,mask:`url(#SVGWpw6Gcvj)`,transform:`translate(-.101 -.049)scale(3.9436)`,children:(0,R.jsx)(`ellipse`,{cx:18.951,cy:57.386,fill:`#00b95c`,rx:19.493,ry:25.253,transform:`rotate(-2.799 18.951 57.386)`})}),(0,R.jsx)(`g`,{filter:`url(#SVGyT4fLePl)`,mask:`url(#SVGWpw6Gcvj)`,transform:`translate(-.101 -.049)scale(3.9436)`,children:(0,R.jsx)(`ellipse`,{cx:18.951,cy:57.386,fill:`#00b95c`,rx:19.493,ry:25.253,transform:`rotate(-2.799 18.951 57.386)`})}),(0,R.jsx)(`g`,{filter:`url(#SVGonSETbRF)`,mask:`url(#SVGWpw6Gcvj)`,transform:`translate(-.101 -.049)scale(3.9436)`,children:(0,R.jsx)(`ellipse`,{cx:20.02,cy:56.211,fill:`#00b95c`,rx:19.107,ry:21.035,transform:`rotate(-31.318 20.02 56.211)`})}),(0,R.jsx)(`g`,{filter:`url(#SVGSN7ofz6B)`,mask:`url(#SVGWpw6Gcvj)`,transform:`translate(-.101 -.049)scale(3.9436)`,children:(0,R.jsx)(`ellipse`,{cx:67.391,cy:25.327,fill:`#3186ff`,rx:18.346,ry:17.667})}),(0,R.jsx)(`g`,{filter:`url(#SVGHvbpPvOn)`,mask:`url(#SVGWpw6Gcvj)`,transform:`translate(-.101 -.049)scale(3.9436)`,children:(0,R.jsx)(`ellipse`,{cx:21.222,cy:22.384,fill:`#fbbc04`,rx:21.222,ry:22.384,transform:`rotate(37.252 9.752 -8.009)`})}),(0,R.jsx)(`g`,{filter:`url(#SVG7JmfweRd)`,mask:`url(#SVGWpw6Gcvj)`,transform:`translate(-.101 -.049)scale(3.9436)`,children:(0,R.jsx)(`ellipse`,{cx:24.469,cy:22.604,fill:`#3186ff`,rx:24.469,ry:22.604,transform:`rotate(34.51 19.587 64.852)`})}),(0,R.jsx)(`g`,{filter:`url(#SVGgGkiybCN)`,mask:`url(#SVGWpw6Gcvj)`,transform:`translate(-.101 -.049)scale(3.9436)`,children:(0,R.jsx)(`path`,{fill:`#749bff`,d:`M54.984-2.336c2.833 3.852-.808 11.34-8.131 16.727s-15.557 6.631-18.39 2.78c-2.833-3.853.807-11.342 8.13-16.728s15.558-6.631 18.39-2.78`})}),(0,R.jsx)(`g`,{filter:`url(#SVGxEY6lcrm)`,mask:`url(#SVGWpw6Gcvj)`,transform:`translate(-.101 -.049)scale(3.9436)`,children:(0,R.jsx)(`ellipse`,{cx:19.902,cy:3.356,fill:`#fc413d`,rx:27.971,ry:17.388,transform:`rotate(-42.848 19.902 3.356)`})}),(0,R.jsx)(`g`,{filter:`url(#SVGMZLCp0yD)`,mask:`url(#SVGWpw6Gcvj)`,transform:`translate(-.101 -.049)scale(3.9436)`,children:(0,R.jsx)(`ellipse`,{cx:13.583,cy:46.75,fill:`#ffee48`,rx:14.989,ry:8.717,transform:`rotate(35.592 13.583 46.75)`})}),(0,R.jsxs)(`mask`,{id:`SVGWpw6Gcvj`,width:65,height:65,x:0,y:0,maskUnits:`userSpaceOnUse`,style:{maskType:`alpha`},children:[(0,R.jsx)(`path`,{d:`M32.447 0c.68 0 1.273.465 1.439 1.125a39 39 0 0 0 1.999 5.905q3.23 7.5 8.854 13.125q5.627 5.626 13.125 8.855a39 39 0 0 0 5.906 1.999c.66.166 1.124.758 1.124 1.438s-.464 1.273-1.125 1.439a39 39 0 0 0-5.905 1.999q-7.5 3.23-13.125 8.854q-5.625 5.627-8.854 13.125a39 39 0 0 0-2 5.906a1.485 1.485 0 0 1-1.438 1.124c-.68 0-1.272-.464-1.438-1.125a39 39 0 0 0-2-5.905q-3.227-7.5-8.854-13.125q-5.625-5.625-13.125-8.854a39 39 0 0 0-5.905-2A1.485 1.485 0 0 1 0 32.448c0-.68.465-1.272 1.125-1.438a39 39 0 0 0 5.905-2q7.5-3.228 13.125-8.854q5.626-5.624 8.855-13.125a39 39 0 0 0 1.999-5.905A1.485 1.485 0 0 1 32.447 0`}),(0,R.jsx)(`path`,{fill:`url(#SVG1oAMmOOu)`,d:`M32.447 0c.68 0 1.273.465 1.439 1.125a39 39 0 0 0 1.999 5.905q3.23 7.5 8.854 13.125q5.627 5.626 13.125 8.855a39 39 0 0 0 5.906 1.999c.66.166 1.124.758 1.124 1.438s-.464 1.273-1.125 1.439a39 39 0 0 0-5.905 1.999q-7.5 3.23-13.125 8.854q-5.625 5.627-8.854 13.125a39 39 0 0 0-2 5.906a1.485 1.485 0 0 1-1.438 1.124c-.68 0-1.272-.464-1.438-1.125a39 39 0 0 0-2-5.905q-3.227-7.5-8.854-13.125q-5.625-5.625-13.125-8.854a39 39 0 0 0-5.905-2A1.485 1.485 0 0 1 0 32.448c0-.68.465-1.272 1.125-1.438a39 39 0 0 0 5.905-2q7.5-3.228 13.125-8.854q5.626-5.624 8.855-13.125a39 39 0 0 0 1.999-5.905A1.485 1.485 0 0 1 32.447 0`})]})]})),ro=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 231`,width:`1.34em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`defs`,{children:(0,R.jsxs)(`linearGradient`,{id:`SVGR9diIphF`,x1:`108.633%`,x2:`46.927%`,y1:`13.818%`,y2:`78.776%`,children:[(0,R.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,R.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]})}),(0,R.jsxs)(`g`,{fill:`none`,children:[(0,R.jsx)(`path`,{d:`M101.272 152.561h53.449l12.901-75.319H87.06z`}),(0,R.jsx)(`path`,{fill:`#2684ff`,d:`M8.308 0A8.202 8.202 0 0 0 .106 9.516l34.819 211.373a11.155 11.155 0 0 0 10.909 9.31h167.04a8.2 8.2 0 0 0 8.201-6.89l34.82-213.752a8.202 8.202 0 0 0-8.203-9.514zm146.616 152.768h-53.315l-14.436-75.42h80.67z`}),(0,R.jsx)(`path`,{fill:`url(#SVGR9diIphF)`,d:`M244.61 77.242h-76.916l-12.909 75.36h-53.272l-62.902 74.663a11.1 11.1 0 0 0 7.171 2.704H212.73a8.196 8.196 0 0 0 8.196-6.884z`})]})]})),io=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsxs)(`defs`,{children:[(0,R.jsxs)(`linearGradient`,{id:`SVGSBI7obaC`,x1:`98.031%`,x2:`58.888%`,y1:`.161%`,y2:`40.766%`,children:[(0,R.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,R.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]}),(0,R.jsxs)(`linearGradient`,{id:`SVGHifZlbzE`,x1:`100.665%`,x2:`55.402%`,y1:`.455%`,y2:`44.727%`,children:[(0,R.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,R.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]})]}),(0,R.jsx)(`path`,{fill:`#2684ff`,d:`M244.658 0H121.707a55.5 55.5 0 0 0 55.502 55.502h22.649V77.37c.02 30.625 24.841 55.447 55.466 55.467V10.666C255.324 4.777 250.55 0 244.658 0`}),(0,R.jsx)(`path`,{fill:`url(#SVGSBI7obaC)`,d:`M183.822 61.262H60.872c.019 30.625 24.84 55.447 55.466 55.467h22.649v21.938c.039 30.625 24.877 55.43 55.502 55.43V71.93c0-5.891-4.776-10.667-10.667-10.667`}),(0,R.jsx)(`path`,{fill:`url(#SVGHifZlbzE)`,d:`M122.951 122.489H0c0 30.653 24.85 55.502 55.502 55.502h22.72v21.867c.02 30.597 24.798 55.408 55.396 55.466V133.156c0-5.891-4.776-10.667-10.667-10.667`})]})),ao=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 339`,width:`0.92em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{d:`M189.485 144.651c-3.445.99-6.306 3.4-7.867 6.626l-1.015 2.087l.014 2.918c0 2.721.057 3.06.832 4.977c1.072 2.72 2.143 4.399 4.103 6.316c3.383 3.355 7.19 4.23 12.294 2.89a12.13 12.13 0 0 0 7.288-6.147a10.6 10.6 0 0 0 1.128-7.02c-.902-6.387-4.652-11.026-10.207-12.647a14.94 14.94 0 0 0-6.57 0m-129.746.07c-4.3 1.354-7.515 4.512-9.164 9.01a16.7 16.7 0 0 0-.846 7.33c.803 4.357 4.37 8.319 8.43 9.404c5.104 1.34 8.91.465 12.294-2.89c1.974-1.917 3.031-3.595 4.103-6.316c.775-1.917.832-2.256.832-4.977l.014-2.918l-1.015-2.087a12.6 12.6 0 0 0-7.966-6.654a14.4 14.4 0 0 0-6.682.099m58.987 28.197c-1.847 1.001-3.144 3.525-2.75 5.4c.438 2.016 2.214 4.06 4.977 5.738c1.48.888 1.58 1.015 1.65 1.917c.056.536-.141 2.059-.409 3.426c-.282 1.325-.507 2.735-.507 3.13c.028 1.043.986 2.75 2.016 3.567c.902.733 1.071.761 3.595.832c2.312.07 2.791.014 3.722-.423c2.382-1.156 2.988-3.3 2.114-7.402c-.733-3.426-.592-3.947 1.227-5.005c1.931-1.128 3.962-3.087 4.568-4.427a5.146 5.146 0 0 0-2.467-6.767a5.56 5.56 0 0 0-2.552-.465c-1.777 0-2.919.423-5.005 1.748l-1.198.747l-.748-.45c-3.087-1.834-3.651-2.045-5.512-2.017a5.6 5.6 0 0 0-2.721.451m5.498-30.946c-5.258.508-6.696.705-9.22 1.213c-4.103.846-9.587 2.75-13.408 4.624c-13.252 6.485-22.402 17.285-25.193 29.804c-.564 2.481-.635 3.299-.635 7.472c0 4.145.07 5.033.607 7.388c3.722 16.354 18.779 28.436 38.262 30.635c4.23.465 22.501.465 26.73 0c15.65-1.762 29.1-10.25 35.148-22.148c1.607-3.186 2.382-5.245 3.101-8.487c.55-2.355.62-3.243.62-7.374c0-4.187-.07-5.005-.634-7.486c-4.06-18.187-21.697-32.482-43.31-35.203a97 97 0 0 0-12.054-.438zm9.094 13.21a46.3 46.3 0 0 1 20.301 7.247c3.144 2.087 7.571 6.457 9.46 9.333c2.34 3.539 3.666 7.162 4.272 11.56c.282 2.017.14 3.54-.606 6.796c-1.128 4.864-4.68 9.94-9.474 13.492a44 44 0 0 1-9.714 4.906c-5.386 1.72-8.91 2.03-21.5 1.946c-8.205-.085-9.671-.141-12.026-.592c-8.036-1.509-14.408-4.709-19.033-9.587c-3.721-3.947-5.427-7.543-6.344-13.337c-.423-2.707.353-7.176 1.932-10.94c1.917-4.596 6.88-10.292 11.786-13.577c5.681-3.792 13.168-6.485 20.048-7.218c2.636-.282 8.261-.282 10.898-.028M55.735.103a23.3 23.3 0 0 0-9.63 4.2c-8.092 6.133-14.352 19.188-17.002 35.444c-.987 6.147-1.678 14.662-1.678 21.19c0 7.669.903 17.481 2.186 24.263c.282 1.508.437 2.847.324 2.932q-1.302 1.091-2.637 2.143a75 75 0 0 0-13.379 14.38A77.4 77.4 0 0 0 .667 137.63a93.4 93.4 0 0 0-.325 19.132c1.283 10.996 4.582 20.273 10.25 28.76l1.833 2.75l-.522.902c-3.792 6.372-7.02 15.578-8.53 24.418c-1.184 6.993-1.339 8.868-1.339 18.243c0 9.446.127 11.321 1.24 17.848c1.34 7.825 4.061 16.115 7.092 21.627c1.001 1.805 3.426 5.54 3.722 5.738c.099.043-.197.945-.648 1.988a104.4 104.4 0 0 0-7.726 26.406c-.874 5.88-1.001 7.783-1.001 13.972c0 7.895.437 11.73 2.087 18.031l.24.917h20.836l-.704-1.283c-4.188-7.782-4.582-22.205-.96-36.613c1.65-6.655 3.525-11.547 7.022-18.272l2.086-4.088v-2.496c0-2.326-.042-2.594-.803-4.13a12.9 12.9 0 0 0-2.735-3.525a24.5 24.5 0 0 1-5.428-7.655c-5.978-12.97-7.134-32.23-2.933-48.654c1.749-6.851 4.639-12.942 7.67-16.27a11.1 11.1 0 0 0 3.144-7.485c0-2.75-.987-5.005-3.158-7.36a44.2 44.2 0 0 1-11.519-24.376c-1.973-13.534 1.608-28.267 9.728-39.954c7.938-11.476 19.075-18.836 31.538-20.795c2.806-.465 8.036-.395 10.94.14c3.187.565 5.175.396 7.219-.577c2.523-1.199 3.778-2.679 5.273-6.077c1.31-3.03 2.326-4.694 5.075-8.12c3.299-4.089 6.485-6.894 11.589-10.278c5.822-3.806 12.463-6.584 19.06-7.909c2.397-.493 3.525-.564 8.023-.564s5.61.07 8.022.564a57.4 57.4 0 0 1 26.984 14.056c1.65 1.537 5.61 6.443 6.88 8.487c.479.804 1.339 2.496 1.86 3.764c1.48 3.398 2.75 4.878 5.273 6.063c1.974.958 4.032 1.156 7.092.634c4.836-.818 8.557-.747 13.294.226c16.129 3.242 30.17 16.537 36.388 34.357c5.428 15.621 3.891 31.961-4.173 44.452c-1.367 2.115-2.72 3.807-4.695 5.907c-4.243 4.54-4.243 10.18-.014 14.846c6.95 7.599 11.293 26.307 9.982 42.802c-.874 10.884-3.666 20.626-7.515 26.139a29.6 29.6 0 0 1-3.158 3.637a12.9 12.9 0 0 0-2.735 3.524c-.76 1.537-.803 1.805-.803 4.131v2.51l2.086 4.088c3.497 6.711 5.358 11.603 7.021 18.258c3.567 14.21 3.257 28.337-.832 36.387q-.353.671-.62 1.382c0 .084 4.639.127 10.32.127h10.292l.282-1.043l.507-1.89c.268-1.071.804-4.23 1.241-7.274c.409-3.06.409-14.324 0-17.736c-1.55-12.336-4.159-22.134-8.417-31.383c-.45-1.043-.747-1.945-.648-1.988c.113-.07.803-1.043 1.522-2.143c5.301-8.022 8.558-18.102 10.208-31.41c.437-3.666.437-19.428 0-22.953c-1.17-9.093-2.566-15.254-4.907-21.5a86 86 0 0 0-4.638-9.868l-.536-.903l1.847-2.735c5.668-8.515 8.967-17.792 10.25-28.76a93.4 93.4 0 0 0-.339-19.146a77.7 77.7 0 0 0-13.238-32.976a75 75 0 0 0-13.393-14.38a114 114 0 0 1-2.623-2.143a9.8 9.8 0 0 1 .325-2.932c2.932-15.325 2.833-34.443-.24-49.387c-2.679-13.027-7.543-23.375-13.816-29.352c-4.991-4.766-10.095-6.796-16.213-6.415c-14.042.832-25.377 16.988-29.832 42.436a96 96 0 0 0-1.368 10.235c0 .508-.099.93-.211.93a13.5 13.5 0 0 1-2.101-1.099a68.5 68.5 0 0 0-34.611-9.827c-11.73 0-23.784 3.426-34.626 9.841c-.662.427-1.36.795-2.086 1.1c-.113 0-.212-.423-.212-.93a95 95 0 0 0-1.367-10.222C85.665 19.627 76.36 4.5 63.996.679A29.6 29.6 0 0 0 55.75.101zm4.13 19.765c3.497 2.777 7.374 10.7 9.616 19.569c.422 1.593.845 3.44.972 4.116c.099.663.367 2.143.578 3.285c.945 5.146 1.382 10.715 1.438 17.482l.029 6.697l-1.692 2.467l-1.664 2.51h-3.92c-4.567 0-9.107.577-13.449 1.748l-3.355.846c-.466.098-.536-.043-.804-2.03a119 119 0 0 1 .226-32.751c1.748-11.11 5.822-21.162 9.812-24.122c.945-.705 1.114-.691 2.213.183m138.516-.17c2.397 1.777 5.047 6.486 7.021 12.52c3.948 12.04 5.076 28.592 2.99 44.34c-.269 1.973-.34 2.128-.805 2.03l-3.355-.846a52 52 0 0 0-13.45-1.749h-3.919l-1.678-2.509l-1.677-2.467l.028-6.683c.056-9.432.93-16.777 3.017-24.982c2.213-8.783 6.118-16.707 9.587-19.484c1.1-.874 1.268-.888 2.241-.17`})]})),oo=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 260`,width:`1.19em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{d:`M239.184 106.203a64.72 64.72 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.72 64.72 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.67 64.67 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.77 64.77 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483m-97.56 136.338a48.4 48.4 0 0 1-31.105-11.255l1.535-.87l51.67-29.825a8.6 8.6 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601M37.158 197.93a48.35 48.35 0 0 1-5.781-32.589l1.534.921l51.722 29.826a8.34 8.34 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803M23.549 85.38a48.5 48.5 0 0 1 25.58-21.333v61.39a8.29 8.29 0 0 0 4.195 7.316l62.874 36.272l-21.845 12.636a.82.82 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405zm179.466 41.695l-63.08-36.63L161.73 77.86a.82.82 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.54 8.54 0 0 0-4.4-7.213m21.742-32.69l-1.535-.922l-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.72.72 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391zM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87l-51.67 29.825a8.6 8.6 0 0 0-4.246 7.367zm11.868-25.58L128.067 97.3l28.188 16.218v32.434l-28.086 16.218l-28.188-16.218z`})]})),so=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{fill:`#ff6c37`,d:`M254.953 144.253c8.959-70.131-40.569-134.248-110.572-143.206C74.378-7.912 10.005 41.616 1.047 111.619c-8.959 70.003 40.569 134.248 110.572 143.334c70.131 8.959 134.248-40.569 143.334-110.7`}),(0,R.jsx)(`path`,{fill:`#fff`,d:`m174.2 82.184l-54.007 54.007l-15.23-15.23c53.111-53.11 58.358-48.503 69.236-38.777`}),(0,R.jsx)(`path`,{fill:`#ff6c37`,d:`M120.193 137.47c-.384 0-.64-.128-.896-.384l-15.357-15.229a1.237 1.237 0 0 1 0-1.791c54.006-54.007 59.637-48.888 71.027-38.65c.256.256.384.512.384.896s-.128.64-.384.896l-54.006 53.878c-.128.256-.512.384-.768.384m-13.437-16.509l13.437 13.438l52.087-52.087c-9.47-8.446-15.87-11.006-65.524 38.65`}),(0,R.jsx)(`path`,{fill:`#fff`,d:`m135.678 151.676l-14.717-14.718l54.006-54.006c14.462 14.59-7.166 38.265-39.289 68.724`}),(0,R.jsx)(`path`,{fill:`#ff6c37`,d:`M135.678 152.956c-.384 0-.64-.128-.895-.384l-14.718-14.718c-.256-.256-.256-.512-.256-.896c0-.383.128-.64.384-.895L174.2 82.056a1.237 1.237 0 0 1 1.792 0a15.58 15.58 0 0 1 4.991 11.902c-.256 14.206-16.38 32.25-44.28 58.614c-.384.256-.768.384-1.024.384m-12.925-15.998c8.19 8.319 11.646 11.646 12.925 12.926c21.5-20.476 42.36-41.464 42.489-55.926c.128-3.327-1.152-6.655-3.328-9.214z`}),(0,R.jsx)(`path`,{fill:`#fff`,d:`m105.22 121.345l10.878 10.878q.384.384 0 .768c-.128.128-.128.128-.256.128l-22.524 4.863c-1.152.128-2.176-.64-2.432-1.791c-.128-.64.128-1.28.512-1.664l13.054-13.054c.256-.256.64-.384.768-.128`}),(0,R.jsx)(`path`,{fill:`#ff6c37`,d:`M92.934 139.262c-1.92 0-3.327-1.536-3.327-3.455c0-.896.384-1.792 1.024-2.432l13.053-13.054c.768-.64 1.792-.64 2.56 0l10.878 10.878c.768.64.768 1.792 0 2.56c-.256.256-.512.384-.896.512l-22.524 4.863c-.256 0-.512.128-.768.128m11.902-16.509l-12.542 12.542c-.256.256-.384.64-.128 1.024c.128.384.512.511.896.384l21.116-4.608z`}),(0,R.jsx)(`path`,{fill:`#fff`,d:`M202.738 52.238c-8.19-7.935-21.372-7.679-29.306.64c-7.935 8.318-7.679 21.372.64 29.306A20.68 20.68 0 0 0 199.154 85l-14.59-14.59z`}),(0,R.jsx)(`path`,{fill:`#ff6c37`,d:`M188.405 89.223c-12.158 0-22.012-9.854-22.012-22.012s9.854-22.012 22.012-22.012c5.63 0 11.134 2.176 15.23 6.143c.255.256.383.512.383.896s-.128.64-.384.896L186.357 70.41l13.566 13.566c.512.512.512 1.28 0 1.792l-.256.256c-3.328 2.047-7.295 3.2-11.262 3.2m0-41.336c-10.75 0-19.453 8.702-19.325 19.452c0 10.75 8.703 19.453 19.453 19.325c2.943 0 5.887-.64 8.574-2.048l-13.437-13.31c-.256-.256-.384-.512-.384-.896c0-.383.128-.64.384-.895l17.149-17.15c-3.456-2.943-7.807-4.478-12.414-4.478`}),(0,R.jsx)(`path`,{fill:`#fff`,d:`m203.122 52.622l-.256-.256l-18.3 18.044l14.461 14.462c1.408-.896 2.815-1.92 3.967-3.072a20.51 20.51 0 0 0 .128-29.178`}),(0,R.jsx)(`path`,{fill:`#ff6c37`,d:`M199.155 86.28c-.384 0-.64-.128-.896-.384l-14.59-14.59c-.255-.256-.383-.512-.383-.896c0-.383.128-.64.384-.895l18.172-18.173a1.237 1.237 0 0 1 1.792 0l.384.256c8.575 8.574 8.575 22.396.128 31.098c-1.28 1.28-2.687 2.432-4.223 3.328c-.384.128-.64.256-.768.256m-12.798-15.87l12.926 12.926c1.024-.64 2.048-1.536 2.815-2.303c7.295-7.295 7.679-19.197.64-26.876z`}),(0,R.jsx)(`path`,{fill:`#fff`,d:`M176.375 84.488a7.88 7.88 0 0 0-11.134 0l-48.247 48.247l8.062 8.063l51.063-44.792c3.328-2.816 3.583-7.807.768-11.134c-.256-.128-.384-.256-.512-.384`}),(0,R.jsx)(`path`,{fill:`#ff6c37`,d:`M124.928 142.078c-.384 0-.64-.128-.896-.384l-8.062-8.063a1.237 1.237 0 0 1 0-1.792l48.247-48.247a9.115 9.115 0 0 1 12.926 0a9.115 9.115 0 0 1 0 12.926l-.384.384l-51.063 44.792q-.192.384-.768.384m-6.143-9.343l6.271 6.271l50.167-44.024c2.816-2.304 3.072-6.527.768-9.342c-2.303-2.816-6.527-3.072-9.342-.768c-.128.128-.256.256-.512.384z`}),(0,R.jsx)(`path`,{fill:`#fff`,d:`M80.008 187.637c-.511.256-.767.768-.64 1.28l2.176 9.214c.512 1.28-.256 2.816-1.664 3.2c-1.023.384-2.175 0-2.815-.768l-14.078-13.95l45.944-45.943l15.87.256l10.75 10.75c-2.56 2.175-18.045 17.149-55.543 35.961`}),(0,R.jsx)(`path`,{fill:`#ff6c37`,d:`M78.985 202.61c-1.024 0-2.048-.383-2.688-1.151l-13.95-13.95c-.255-.256-.383-.512-.383-.895c0-.384.128-.64.384-.896l45.943-45.944c.256-.256.64-.384.896-.384l15.87.256c.383 0 .64.128.895.384l10.75 10.75c.256.256.384.64.384 1.024s-.128.64-.512.896l-.896.767c-13.565 11.902-31.994 23.804-54.902 35.194l2.176 9.087c.384 1.663-.384 3.455-1.92 4.35c-.768.385-1.408.513-2.047.513m-14.078-15.996l13.182 13.053c.384.64 1.152.896 1.791.512c.64-.384.896-1.152.512-1.792l-2.175-9.214c-.256-1.152.256-2.176 1.28-2.687c22.651-11.39 40.952-23.164 54.39-34.81l-9.47-9.47l-14.718-.256z`}),(0,R.jsx)(`path`,{fill:`#fff`,d:`m52.11 197.62l11.005-11.006l16.382 16.38l-26.108-1.791c-1.152-.128-1.92-1.152-1.791-2.304c0-.512.128-1.024.511-1.28`}),(0,R.jsx)(`path`,{fill:`#ff6c37`,d:`m79.497 204.146l-26.236-1.791c-1.92-.128-3.2-1.792-3.071-3.712c.128-.768.384-1.535 1.024-2.047L62.22 185.59a1.237 1.237 0 0 1 1.791 0l16.381 16.38c.384.385.512.897.256 1.408q-.384.768-1.151.768m-16.382-15.74l-10.11 10.11c-.384.255-.384.895 0 1.151c.128.128.256.256.512.256l22.652 1.536zm41.337-41.849c-.768 0-1.28-.64-1.28-1.28c0-.384.128-.64.384-.896l12.414-12.414a1.237 1.237 0 0 1 1.792 0l8.062 8.063c.384.384.512.768.384 1.28c-.128.384-.512.768-1.024.896l-20.476 4.35zm12.414-11.902l-8.447 8.446l13.822-2.943z`}),(0,R.jsx)(`path`,{fill:`#fff`,d:`m124.8 140.926l-14.077 3.071c-1.024.256-2.048-.384-2.304-1.408c-.128-.64 0-1.28.512-1.791l7.807-7.807z`}),(0,R.jsx)(`path`,{fill:`#ff6c37`,d:`M110.467 145.277a3.17 3.17 0 0 1-3.2-3.2c0-.895.384-1.663.896-2.303l7.807-7.807a1.237 1.237 0 0 1 1.792 0l8.062 8.063c.384.384.512.768.384 1.28c-.128.384-.512.768-1.024.896l-14.077 3.071zm6.399-10.622l-6.911 6.91c-.256.257-.256.513-.128.768q.192.384.768.384l11.774-2.56zm86.384-69.748c-.256-.767-1.152-1.151-1.92-.895c-.767.256-1.151 1.151-.895 1.92c0 .127.128.255.128.383c.768 1.536.512 3.456-.512 4.863c-.512.64-.384 1.536.128 2.048c.64.512 1.535.384 2.047-.256c1.92-2.432 2.304-5.503 1.024-8.063`})]})),co=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 227`,width:`1.36em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{fill:`#362d59`,d:`M148.368 12.403a23.935 23.935 0 0 0-41.003 0L73.64 70.165c52.426 26.174 87.05 78.177 90.975 136.642h-23.679c-3.918-50.113-34.061-94.41-79.238-116.448l-31.213 53.97a81.6 81.6 0 0 1 47.307 62.375h-54.38a3.895 3.895 0 0 1-3.178-5.69l15.069-25.626a55 55 0 0 0-17.221-9.738L3.167 191.277a23.27 23.27 0 0 0 8.662 31.982a23.9 23.9 0 0 0 11.583 3.075h74.471a99.43 99.43 0 0 0-41.003-88.72l11.84-20.5c35.679 24.504 55.754 66.038 52.79 109.22h63.094c2.99-65.43-29.047-127.512-84.107-162.986l23.935-41.002a3.947 3.947 0 0 1 5.382-1.384c2.716 1.486 103.993 178.208 105.89 180.258a3.895 3.895 0 0 1-3.486 5.792h-24.396q.46 9.789 0 19.528h24.499A23.53 23.53 0 0 0 256 202.91a23 23 0 0 0-3.178-11.685z`})]})),lo=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 239`,width:`1.3em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsxs)(`defs`,{children:[(0,R.jsxs)(`linearGradient`,{id:`SVGCo9xpmZW`,x1:`17.372%`,x2:`82.628%`,y1:`-6.51%`,y2:`106.51%`,children:[(0,R.jsx)(`stop`,{offset:`0%`,stopColor:`#5a62c3`}),(0,R.jsx)(`stop`,{offset:`50%`,stopColor:`#4d55bd`}),(0,R.jsx)(`stop`,{offset:`100%`,stopColor:`#3940ab`})]}),(0,R.jsx)(`path`,{id:`SVGhJCUgeMn`,d:`M136.93 64.476v12.8a32.7 32.7 0 0 1-5.953-.952a38.7 38.7 0 0 1-26.79-22.742h21.848c6.008.022 10.872 4.887 10.895 10.894`})]}),(0,R.jsx)(`path`,{fill:`#5059c9`,d:`M178.563 89.302h66.125c6.248 0 11.312 5.065 11.312 11.312v60.231c0 22.96-18.613 41.574-41.573 41.574h-.197c-22.96.003-41.576-18.607-41.579-41.568V95.215a5.91 5.91 0 0 1 5.912-5.913`}),(0,R.jsx)(`circle`,{cx:223.256,cy:50.605,r:26.791,fill:`#5059c9`}),(0,R.jsx)(`circle`,{cx:139.907,cy:38.698,r:38.698,fill:`#7b83eb`}),(0,R.jsx)(`path`,{fill:`#7b83eb`,d:`M191.506 89.302H82.355c-6.173.153-11.056 5.276-10.913 11.449v68.697c-.862 37.044 28.445 67.785 65.488 68.692c37.043-.907 66.35-31.648 65.489-68.692v-68.697c.143-6.173-4.74-11.296-10.913-11.449`}),(0,R.jsx)(`path`,{d:`M142.884 89.302v96.268a10.96 10.96 0 0 1-6.787 10.062c-1.3.55-2.697.833-4.108.833H76.68c-.774-1.965-1.488-3.93-2.084-5.953a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.1}),(0,R.jsx)(`path`,{d:`M136.93 89.302v102.222c0 1.411-.283 2.808-.833 4.108a10.96 10.96 0 0 1-10.062 6.787H79.48c-1.012-1.965-1.965-3.93-2.798-5.954a59 59 0 0 1-2.084-5.953a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.2}),(0,R.jsx)(`path`,{d:`M136.93 89.302v90.315c-.045 5.998-4.896 10.85-10.895 10.895H74.597a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.2}),(0,R.jsx)(`path`,{d:`M130.977 89.302v90.315c-.046 5.998-4.897 10.85-10.895 10.895H74.597a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.2}),(0,R.jsx)(`path`,{d:`M142.884 58.523v18.753c-1.012.06-1.965.12-2.977.12s-1.965-.06-2.977-.12a32.7 32.7 0 0 1-5.953-.952a38.7 38.7 0 0 1-26.791-22.742a33 33 0 0 1-1.905-5.954h29.708c6.007.023 10.872 4.887 10.895 10.895`,opacity:.1}),(0,R.jsx)(`use`,{href:`#SVGhJCUgeMn`,opacity:.2}),(0,R.jsx)(`use`,{href:`#SVGhJCUgeMn`,opacity:.2}),(0,R.jsx)(`path`,{d:`M130.977 64.476v11.848a38.7 38.7 0 0 1-26.791-22.743h15.896c6.008.023 10.872 4.888 10.895 10.895`,opacity:.2}),(0,R.jsx)(`path`,{fill:`url(#SVGCo9xpmZW)`,d:`M10.913 53.581h109.15c6.028 0 10.914 4.886 10.914 10.913v109.151c0 6.027-4.886 10.913-10.913 10.913H10.913C4.886 184.558 0 179.672 0 173.645V64.495C0 58.466 4.886 53.58 10.913 53.58`}),(0,R.jsx)(`path`,{fill:`#fff`,d:`M94.208 95.125h-21.82v59.416H58.487V95.125H36.769V83.599h57.439z`})]})),uo=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{fill:`#0078d4`,d:`M0 0h121.329v121.329H0zm134.671 0H256v121.329H134.671zM0 134.671h121.329V256H0zm134.671 0H256V256H134.671z`})]})),fo=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 128 128`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`defs`,{children:(0,R.jsxs)(`linearGradient`,{id:`SVG6uMEBcPj`,x1:9,x2:9,y1:16.97,y2:1.03,gradientTransform:`scale(7.11111)`,gradientUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`stop`,{offset:0,stopColor:`#0078d4`}),(0,R.jsx)(`stop`,{offset:.16,stopColor:`#1380da`}),(0,R.jsx)(`stop`,{offset:.53,stopColor:`#3c91e5`}),(0,R.jsx)(`stop`,{offset:.82,stopColor:`#559cec`}),(0,R.jsx)(`stop`,{offset:1,stopColor:`#5ea0ef`})]})}),(0,R.jsx)(`path`,{fill:`url(#SVG6uMEBcPj)`,d:`M120.89 28.445v69.262l-28.445 23.324l-44.09-16.07v15.93L23.395 88.25l72.746 5.688V31.574ZM96.64 31.93L55.82 7.11v16.285L18.348 34.418L7.109 48.852v32.785l16.075 7.11V46.718Zm0 0`})]})),V=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 128 128`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{fill:`#1a62b3`,d:`M50.782 42.96h26.436a7.536 7.536 0 0 1 7.553 7.552v26.976a7.536 7.536 0 0 1-7.553 7.552H50.782a7.536 7.536 0 0 1-7.553-7.552V50.512a7.536 7.536 0 0 1 7.553-7.553zm55.803 41.611V34.477A13.566 13.566 0 0 0 92.99 20.88H35.01a13.566 13.566 0 0 0-13.595 13.596v59.046a13.566 13.566 0 0 0 13.595 13.595l92.171.002c-.935 11.716-10.67 20.88-22.623 20.88H23.442A22.61 22.61 0 0 1 .783 105.341V22.66A22.61 22.61 0 0 1 23.443 0h81.115a22.61 22.61 0 0 1 22.659 22.66v61.91z`})]})),H=(0,L.forwardRef)(({title:e,titleId:t,...n},r)=>(0,R.jsxs)(`svg`,{viewBox:`0 0 128 128`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,R.jsx)(`title`,{id:t,children:e}):null,(0,R.jsx)(`path`,{fill:`#50d18d`,d:`m37.701 127.439l-15.398-14.782a1.813 1.813 0 0 1 0-2.666l15.41-14.773a2.005 2.005 0 0 1 2.78 0l15.412 14.783c.778.73.778 1.936 0 2.666L40.494 127.44a2.003 2.003 0 0 1-2.78 0zm24.907-23.89l-15.41-14.783a1.813 1.813 0 0 1 0-2.656l15.41-14.782a2.005 2.005 0 0 1 2.78 0L80.79 86.11c.778.73.778 1.936 0 2.666l-15.4 14.773a2.01 2.01 0 0 1-2.774 0zm24.908-23.892l-15.4-14.783a1.81 1.81 0 0 1 0-2.656L87.52 47.437a2.005 2.005 0 0 1 2.78 0l15.402 14.781a1.81 1.81 0 0 1 0 2.656L90.29 79.657a2.006 2.006 0 0 1-2.779 0h.01zm-49.346.447L22.758 65.333a1.817 1.817 0 0 1 0-2.66l15.412-14.79a2.004 2.004 0 0 1 2.779 0l15.41 14.784a1.81 1.81 0 0 1 0 2.656L40.95 80.116a2.007 2.007 0 0 1-2.78 0zm24.906-23.89L47.664 41.441a1.817 1.817 0 0 1 0-2.668l15.412-14.781a2.004 2.004 0 0 1 2.78 0l15.4 14.781a1.81 1.81 0 0 1 0 2.658l-15.4 14.781a2.006 2.006 0 0 1-2.774 0v-.01v.005zm-24.43-23.41l-15.42-14.828a1.814 1.814 0 0 1 0-2.667L38.647.56a2.004 2.004 0 0 1 2.78 0l15.41 14.782c.78.731.78 1.937 0 2.667l-15.42 14.75a2.004 2.004 0 0 1-2.78 0l.01.032z`})]})),po=`/assets/dataverse-CH0w-aF1.png`,mo=`/assets/zephyr-BNWDPG5u.png`,ho=(e,t,n)=>r=>(0,R.jsx)(`svg`,{viewBox:`0 0 ${t} ${n}`,...r,children:(0,R.jsx)(`image`,{href:e,width:t,height:n})}),go=e=>(0,R.jsxs)(`svg`,{viewBox:`-55 0 209 209`,...e,children:[(0,R.jsx)(`path`,{fill:`#31b34b`,d:`m98.092 104.307l-49.011 12.252l-24.54 91.807z`,opacity:`.5`}),(0,R.jsx)(`path`,{fill:`#31b34b`,d:`M98.092 104.307L0 129.024V67.443h73.551l24.718 36.828z`,opacity:`.8`}),(0,R.jsx)(`path`,{fill:`#31b34b`,d:`M0 67.443v61.44L73.551 0z`})]}),_o=e=>(0,R.jsxs)(`svg`,{viewBox:`0 0 256 153`,...e,children:[(0,R.jsx)(`path`,{className:`logo-ink`,fill:`#252f3e`,d:`M72.392 55.438c0 3.137.34 5.68.933 7.545a45.4 45.4 0 0 0 2.712 6.103c.424.678.593 1.356.593 1.95c0 .847-.508 1.695-1.61 2.543l-5.34 3.56c-.763.509-1.526.763-2.205.763c-.847 0-1.695-.424-2.543-1.187a26 26 0 0 1-3.051-3.984c-.848-1.44-1.696-3.052-2.628-5.001q-9.919 11.697-24.922 11.698c-7.12 0-12.8-2.035-16.954-6.103c-4.153-4.07-6.272-9.495-6.272-16.276c0-7.205 2.543-13.054 7.714-17.462c5.17-4.408 12.037-6.612 20.768-6.612c2.882 0 5.849.254 8.985.678c3.137.424 6.358 1.102 9.749 1.865V29.33c0-6.443-1.357-10.935-3.985-13.563c-2.712-2.628-7.29-3.9-13.817-3.9c-2.967 0-6.018.34-9.155 1.103s-6.188 1.695-9.155 2.882c-1.356.593-2.373.932-2.967 1.102s-1.017.254-1.356.254c-1.187 0-1.78-.848-1.78-2.628v-4.154c0-1.356.17-2.373.593-2.966c.424-.594 1.187-1.187 2.374-1.78q4.45-2.29 10.68-3.815C33.908.763 38.316.255 42.978.255c10.088 0 17.463 2.288 22.21 6.866c4.662 4.577 7.036 11.528 7.036 20.853v27.464zM37.976 68.323c2.798 0 5.68-.508 8.731-1.526c3.052-1.017 5.765-2.882 8.053-5.425c1.357-1.61 2.374-3.39 2.882-5.425c.509-2.034.848-4.493.848-7.375v-3.56a71 71 0 0 0-7.799-1.441a64 64 0 0 0-7.968-.509c-5.68 0-9.833 1.102-12.63 3.391s-4.154 5.51-4.154 9.748c0 3.984 1.017 6.951 3.136 8.986c2.035 2.119 5.002 3.136 8.901 3.136m68.069 9.155c-1.526 0-2.543-.254-3.221-.848c-.678-.508-1.272-1.695-1.78-3.305L81.124 7.799c-.51-1.696-.764-2.798-.764-3.391c0-1.356.678-2.12 2.035-2.12h8.307c1.61 0 2.713.255 3.306.848c.678.509 1.187 1.696 1.695 3.306l14.241 56.117l13.224-56.117c.424-1.695.933-2.797 1.61-3.306c.679-.508 1.866-.847 3.392-.847h6.781c1.61 0 2.713.254 3.39.847c.679.509 1.272 1.696 1.611 3.306l13.394 56.795L168.01 6.442c.508-1.695 1.102-2.797 1.695-3.306c.678-.508 1.78-.847 3.306-.847h7.883c1.357 0 2.12.678 2.12 2.119c0 .424-.085.848-.17 1.356s-.254 1.187-.593 2.12l-20.43 65.525q-.762 2.544-1.78 3.306c-.678.509-1.78.848-3.22.848h-7.29c-1.611 0-2.713-.254-3.392-.848c-.678-.593-1.271-1.695-1.61-3.39l-13.14-54.676l-13.054 54.59c-.423 1.696-.932 2.798-1.61 3.391c-.678.594-1.865.848-3.39.848zm108.927 2.289c-4.408 0-8.816-.509-13.054-1.526c-4.239-1.017-7.544-2.12-9.748-3.39c-1.357-.764-2.29-1.611-2.628-2.374a6 6 0 0 1-.509-2.374V65.78c0-1.78.678-2.628 1.95-2.628a4.8 4.8 0 0 1 1.526.255c.508.17 1.271.508 2.119.847a46 46 0 0 0 9.324 2.967a51 51 0 0 0 10.088 1.017c5.34 0 9.494-.932 12.376-2.797s4.408-4.577 4.408-8.053c0-2.373-.763-4.323-2.289-5.934s-4.408-3.051-8.561-4.408l-12.292-3.814c-6.188-1.95-10.765-4.832-13.563-8.647c-2.797-3.73-4.238-7.883-4.238-12.291q0-5.34 2.289-9.41c1.525-2.712 3.56-5.085 6.103-6.95c2.543-1.95 5.425-3.391 8.816-4.408c3.39-1.017 6.95-1.441 10.68-1.441c1.865 0 3.815.085 5.68.339c1.95.254 3.73.593 5.51.932c1.695.424 3.306.848 4.832 1.357q2.288.762 3.56 1.525c1.187.679 2.034 1.357 2.543 2.12q.763 1.017.763 2.797v3.984c0 1.78-.678 2.713-1.95 2.713c-.678 0-1.78-.34-3.22-1.018q-7.25-3.306-16.276-3.306c-4.832 0-8.647.763-11.275 2.374c-2.627 1.61-3.984 4.069-3.984 7.544c0 2.374.848 4.408 2.543 6.019s4.832 3.221 9.325 4.662l12.037 3.815c6.103 1.95 10.511 4.662 13.139 8.137s3.9 7.46 3.9 11.868c0 3.645-.764 6.951-2.205 9.833c-1.525 2.882-3.56 5.425-6.188 7.46c-2.628 2.119-5.764 3.645-9.409 4.747c-3.815 1.187-7.799 1.78-12.122 1.78`}),(0,R.jsx)(`path`,{fill:`#f90`,d:`M230.993 120.964c-27.888 20.599-68.408 31.534-103.247 31.534c-48.827 0-92.821-18.056-126.05-48.064c-2.628-2.373-.255-5.594 2.881-3.73c35.942 20.854 80.276 33.484 126.136 33.484c30.94 0 64.932-6.442 96.212-19.666c4.662-2.12 8.646 3.052 4.068 6.442m11.614-13.224c-3.56-4.577-23.566-2.204-32.636-1.102c-2.713.34-3.137-2.034-.678-3.814c15.936-11.19 42.13-7.968 45.181-4.239c3.052 3.815-.848 30.008-15.767 42.554c-2.288 1.95-4.492.933-3.475-1.61c3.39-8.393 10.935-27.296 7.375-31.789`})]}),vo=e=>(0,R.jsxs)(`svg`,{viewBox:`0 0 18.02 20.27`,fill:`#000`,...e,children:[(0,R.jsx)(`path`,{d:`M18.0137 0H12.6097V13.0595H18.0137V0Z`}),(0,R.jsx)(`path`,{d:`M5.4043 0H0V7.43041L5.4043 13.0595V0Z`}),(0,R.jsx)(`path`,{d:`M5.4043 13.0595H0V20.2648H5.4043V13.0595Z`}),(0,R.jsx)(`path`,{d:`M12.6104 13.0595H5.4051L9.68322 18.4634H12.6104V13.0595Z`})]}),yo=e=>t=>(0,R.jsx)(e,{...t,className:S(t.className,`logo-mono`)}),bo={jira:io,azure_devops:fo,confluence:Za,testrail:H,qtest:V,github:yo($a),browserstack:Ya,xray:go,gitlab:eo,bitbucket:ro,postman:so,sentry:yo(co),testmu:yo(vo),zephyr:ho(mo,128,128),dataverse:ho(po,128,98),aws:_o,gcp:to},U={openai:yo(oo),azure:Ja,github_copilot:yo(Qa),ollama:yo(ao),anthropic:Xa,gemini:no,bedrock:_o},xo={android:Ka,ios:yo(qa),windows:uo};function So(e,t){if(!e)return[];let n=[],r=[!e.engine&&`the browser engine`,!e.runtime&&`the agent runtime`].filter(e=>!!e);r.length&&n.push({title:`Install ${r.join(` and `)}`,detail:`The agents run tests with them. Installing needs no admin rights and takes a few minutes.`,fix:`Install what's missing`,to:s(`settings`,`setup`)});let i=e.model.usable??[],a=t??e.model.active;return e.model.ready?a&&!i.includes(a)&&n.push({title:`${a} has no key or sign-in yet`,detail:`Add its key, or pick a model that is ready in the box below: ${i.join(`, `)}.`,fix:`Add its key`,to:s(`settings`,`models`)}):n.push({title:`No model is ready`,detail:e.model.detail,fix:`Add a model key`,to:s(`settings`,`models`)}),n}function Co(e){let t=$n(e?.environments),n=Object.entries($n(t.environments)).map(([e,t])=>({name:e,env:$n(t)}));return{envs:n,fallback:[$n(e?.config.environments).default,t.default].find(e=>typeof e==`string`&&n.some(t=>t.name===e))||(n.length===1?n[0].name:``)}}function wo({item:e,onOpen:t,onDone:n,innerRef:r}){return(0,R.jsxs)(`button`,{ref:r,type:`button`,role:`menuitem`,disabled:e.disabled,...e.tip?{"data-tip":e.tip}:{},...e.panel?{"aria-haspopup":`dialog`}:{},onClick:()=>{if(e.panel)return t(e.id);e.onSelect?.(),n()},className:S(u,`gap-2`),children:[(0,R.jsx)(F,{icon:e.icon,size:16,className:`flex-none text-muted`}),(0,R.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),e.dot&&(0,R.jsx)(`span`,{"aria-hidden":`true`,className:`size-1.5 flex-none rounded-full bg-accent`}),e.value&&(0,R.jsx)(`span`,{className:`max-w-[45%] truncate text-body-sm text-muted`,children:e.value}),e.panel&&(0,R.jsx)(ht,{size:16,"aria-hidden":`true`,className:`flex-none text-muted`})]})}function To({items:e,label:t=`More`}){let[n,r]=(0,L.useState)(!1),[i,a]=(0,L.useState)(``),[o,s]=(0,L.useState)(``),[c,l]=(0,L.useState)(`next`),[d,f]=(0,L.useState)(),p=(0,L.useRef)(null),m=(0,L.useRef)({}),h=(0,L.useRef)(null),g=(0,L.useCallback)(()=>{r(!1),a(``),s(``)},[]),_=(0,L.useCallback)(()=>{s(i),l(`back`),a(``)},[i]),v=(0,L.useCallback)(e=>{l(`next`),a(e)},[]);(0,L.useEffect)(()=>{if(n){if(i)return h.current?.focus();o&&(m.current[o]?.focus(),s(``))}},[n,i,o]);let y=e.find(e=>e.id===i&&!!e.panel);(0,L.useLayoutEffect)(()=>{if(!n)return f(void 0);f(p.current?.scrollHeight)},[n,i,e.length]);let b=e.some(e=>e.dot);return e.length?(0,R.jsxs)(`div`,{className:`relative`,children:[(0,R.jsxs)(I,{variant:`ghost`,className:`flex-none px-2 text-body-lg sm:px-2`,"aria-label":t,"aria-haspopup":`menu`,"aria-expanded":n,"data-tip":e.map(e=>e.label).join(` · `),onClick:()=>n?g():r(!0),children:[(0,R.jsx)(lt,{"aria-hidden":`true`}),b&&(0,R.jsx)(`span`,{"aria-hidden":`true`,className:`size-1.5 rounded-full bg-accent`})]}),(0,R.jsx)(D,{open:n,onClose:y?_:g,label:y?.panelLabel||y?.label||t,role:y?`dialog`:`menu`,className:S(`transition-[width] duration-[var(--motion)] ease-[var(--ease-out)]`,y?`w-[min(400px,calc(100vw-48px))]`:`w-[min(320px,calc(100vw-48px))]`),children:(0,R.jsx)(`div`,{className:`overflow-hidden transition-[height] duration-[var(--motion)] ease-[var(--ease-out)]`,style:d===void 0?void 0:{height:d},children:(0,R.jsx)(`div`,{ref:p,className:c===`next`?`pane-next`:`pane-back`,children:y?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(`button`,{ref:h,type:`button`,onClick:_,className:S(u,`min-h-9 gap-2 font-medium text-ink-2`),children:[(0,R.jsx)(Pt,{size:16,"aria-hidden":`true`}),`Back`]}),y.panel]}):e.map(e=>(0,R.jsx)(wo,{item:e,onOpen:v,onDone:g,innerRef:t=>{m.current[e.id]=t}},e.id))},i||`rows`)})})]}):null}function Eo(e,t){return t&&!e.some(e=>e.id===`attach`)?[...e,t]:[...e]}function Do(e){let t=e?.config||{},n=$n(t.browser),r=$n(t.sources),i=[`jira`,`azure_devops`,`testrail`,`xray`,`zephyr`,`qtest`,`servicenow`,`github`].find(e=>r[e]),a={jira:`Jira`,azure_devops:`Azure DevOps`,testrail:`TestRail`,xray:`Xray`,zephyr:`Zephyr`,qtest:`qTest`,servicenow:`ServiceNow`,github:`GitHub`},o=String(n.provider||`local`);return{code:!0,headed:n.headless===!1,repo:$n(t.code).repo?String($n(t.code).repo):`the project folder`,browser:o===`local`?`Chrome on this machine`:o===`testmu`?`TestMu AI`:o===`browserstack`?`BrowserStack`:o,cases:i?a[i]:`Files in the project`}}var Oo={azure:`Azure OpenAI`,openai:`OpenAI`,ollama:`Ollama`,openai_compatible:`OpenAI-compatible`,github_copilot:`GitHub Copilot`,github:`GitHub Models`,anthropic:`Anthropic`};function ko({children:e}){return(0,R.jsx)(`div`,{className:`px-4 pt-2 pb-1 text-body-sm font-medium tracking-wide text-muted uppercase`,children:e})}function Ao({tools:e,onChange:t,chat:n}){let r=(n,r,i,a)=>(0,R.jsxs)(`label`,{className:u,children:[(0,R.jsx)(Jn,{icon:n}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,R.jsx)(`span`,{className:`text-body-sm font-medium text-ink`,children:i}),(0,R.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:a})]}),(0,R.jsx)(Tr,{checked:e[r],label:i,onChange:n=>t({...e,[r]:n})})]}),i=(e,t,n)=>(0,R.jsxs)(`div`,{className:`flex items-center gap-4 px-4 py-2`,children:[(0,R.jsx)(F,{icon:e,size:16,className:`flex-none text-muted`}),(0,R.jsx)(`span`,{className:`flex-1 text-body-sm text-ink-2`,children:t}),(0,R.jsx)(`span`,{className:`truncate text-body-sm text-ink`,children:n})]});return(0,R.jsxs)(`div`,{className:`flex flex-col`,children:[(0,R.jsx)(ko,{children:n?`This chat, from your next message`:`This chat`}),r(Dt,`code`,`Write the test`,`Turn a passed run into a test in ${e.repo}`),r(hn,`headed`,`Show the browser`,`Watch each run in a Chrome window`),(0,R.jsx)(`div`,{className:`mx-4 my-2 border-t border-line-soft`}),(0,R.jsx)(ko,{children:`From your settings`}),i(rt,`Browsers run on`,e.browser),i(Xt,`Test cases from`,e.cases),n?.model&&(0,R.jsxs)(`div`,{className:`flex items-center gap-4 px-4 py-2`,children:[U[n.provider||``]?(()=>{let e=U[n.provider||``];return(0,R.jsx)(e,{"aria-hidden":`true`,className:`size-4 flex-none`})})():(0,R.jsx)(F,{icon:Zt,size:16,className:`flex-none text-muted`}),(0,R.jsx)(`span`,{className:`flex-1 text-body-sm text-ink-2`,children:`Model`}),(0,R.jsx)(`span`,{className:`truncate text-body-sm text-ink`,children:n.model})]}),(0,R.jsx)(`div`,{className:`mx-2 mt-1 mb-1 flex flex-wrap gap-x-1`,children:(0,R.jsxs)(`a`,{href:s(`settings`),className:S(u,`min-h-9 gap-2 px-2 font-medium`),children:[(0,R.jsx)(yt,{size:14,"aria-hidden":`true`}),`Change them in Settings`]})})]})}function jo({models:e,current:t,onPick:n,auto:r=!0}){let i=(e,r=!1)=>{let i=t===e.name;return(0,R.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":i,onClick:()=>n(e.name),className:u,children:[r?(0,R.jsx)(Jn,{icon:Zt}):U[e.provider]?(0,R.jsx)(Jn,{logo:U[e.provider]}):(0,R.jsx)(Jn,{icon:nt}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,R.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,R.jsx)(`span`,{className:`truncate text-body-sm font-medium text-ink`,children:e.name}),!r&&Oo[e.provider]&&(0,R.jsx)(`span`,{className:`flex-none text-body-sm text-muted`,children:Oo[e.provider]})]}),e.note&&(0,R.jsx)(`span`,{className:`truncate text-body-sm text-muted`,children:e.note})]}),(0,R.jsx)(En,{size:16,"aria-hidden":`true`,className:S(`flex-none text-accent-fg`,!i&&`invisible`)})]},e.name)};return(0,R.jsxs)(`div`,{className:`flex flex-col`,children:[(0,R.jsx)(ko,{children:`Model for this chat`}),r&&i({name:`Auto routing`,provider:``,note:`The most capable model plans; each step gets the model that suits it`},!0),e.length>0&&(0,R.jsxs)(R.Fragment,{children:[r&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`div`,{className:`mx-4 my-2 border-t border-line-soft`}),(0,R.jsx)(ko,{children:`Your models`})]}),(0,R.jsx)(`div`,{className:`flex flex-col`,children:e.map(e=>i(e))})]}),(0,R.jsx)(`div`,{className:`mx-4 my-2 border-t border-line-soft`}),(0,R.jsxs)(`a`,{href:s(`settings`,`models`),className:S(u,`mx-2 mb-1 min-h-9 w-auto gap-2 px-2 font-medium`),children:[(0,R.jsx)(yt,{size:14,"aria-hidden":`true`}),`Manage models`]})]})}var Mo={web:rt,api:jt,desktop:jn,mobile:cn};function No({icon:e,label:t,value:n}){return(0,R.jsxs)(`li`,{className:`flex min-w-0 items-start gap-2 px-4 py-1 text-body-sm`,children:[(0,R.jsx)(F,{icon:e,size:14,className:`mt-1 flex-none text-muted`}),(0,R.jsxs)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:[(0,R.jsx)(`span`,{className:`font-medium text-ink`,children:t}),n&&(0,R.jsxs)(`span`,{className:`text-muted`,children:[` `,n]})]})]})}function Po({row:e}){let t=e.env,n=Object.entries($n(t.apps)).map(([e,t])=>({...$n(t),name:e})),r=Object.entries($n(t.variables)),i=Object.entries($n(t.data)),a=Object.keys($n(t.databases)),o=Array.isArray(t.secrets)?t.secrets.filter(e=>typeof e==`string`):[],s=typeof t.file==`string`?t.file:``,c=!s&&!n.length&&!r.length&&!i.length&&!a.length&&!o.length;return(0,R.jsxs)(`div`,{className:`flex flex-col pb-1`,children:[(0,R.jsxs)(ko,{children:[`What the agent gets in `,e.name]}),(0,R.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:[s&&(0,R.jsx)(No,{icon:Tn,label:`Read from`,value:s}),n.map(e=>(0,R.jsx)(No,{icon:Mo[String(e.kind||`web`)]||rt,label:e.name,value:[String(e.url||e.path||e.app_id||``),e.login?`signs in as ${String(e.login)}`:``].filter(Boolean).join(` · `)},`app:${e.name}`)),r.length>0&&(0,R.jsx)(No,{icon:gt,label:`Values`,value:r.map(([e,t])=>`${e} = ${String(t??``)}`).join(`, `)}),i.length>0&&(0,R.jsx)(No,{icon:Nt,label:`Test data`,value:i.map(([e,t])=>`${e}: ${String(t)}`).join(`, `)}),a.length>0&&(0,R.jsx)(No,{icon:Ht,label:`Databases`,value:a.join(`, `)}),o.length>0&&(0,R.jsx)(No,{icon:ct,label:`Secrets, by name`,value:o.join(`, `)}),c&&(0,R.jsx)(`li`,{className:`px-4 py-1 text-body-sm text-muted`,children:`Nothing set yet. Add its apps and test data in Settings.`})]})]})}function Fo({envs:e,current:t,onPick:n}){let r=e.find(e=>e.name===t);return(0,R.jsxs)(`div`,{className:`flex flex-col`,children:[(0,R.jsx)(ko,{children:`Environment for this chat`}),e.length?e.map(e=>{let r=e.name===t,i=typeof e.env.description==`string`?e.env.description:``;return(0,R.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":r,onClick:()=>n(e.name),className:u,children:[(0,R.jsx)(Jn,{icon:Mt}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,R.jsx)(`span`,{className:`truncate text-body-sm font-medium text-ink`,children:e.name}),i&&(0,R.jsx)(`span`,{className:`truncate text-body-sm text-muted`,children:i})]}),(0,R.jsx)(En,{size:16,"aria-hidden":`true`,className:S(`flex-none text-accent-fg`,!r&&`invisible`)})]},e.name)}):(0,R.jsx)(`p`,{className:`m-0 px-4 py-1 text-body-sm text-muted`,children:`No environments yet. Add one with its apps, test data and the names of its secrets.`}),r&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`div`,{className:`mx-4 my-2 border-t border-line-soft`}),(0,R.jsx)(Po,{row:r})]}),(0,R.jsx)(`div`,{className:`mx-4 my-2 border-t border-line-soft`}),(0,R.jsxs)(`a`,{href:s(`settings`,`environments`),className:S(u,`mx-2 mb-1 min-h-9 w-auto gap-2 px-2 font-medium`),children:[(0,R.jsx)(yt,{size:14,"aria-hidden":`true`}),`Manage environments`]})]})}function Io(){let[e,t]=(0,L.useState)(null),[n,r]=(0,L.useState)(null),[i,a]=(0,L.useState)(null),[o,s]=(0,L.useState)(``),[c,l]=(0,L.useState)(()=>Do(null)),[u,d]=(0,L.useState)(``);(0,L.useEffect)(()=>{ke.state().then(e=>{r(e),e.ready&&ke.machine().then(a,()=>{}),e.ready&&Ae.settings().then(e=>{t(e),l(Do(e))},()=>{})},()=>{})},[]);let f=Object.entries($n(e?.models.models)).map(([e,t])=>({name:e,provider:String($n(t).provider||``),note:String($n(t).description||``)})).filter(e=>e.provider!==`mock`&&e.name!==`mock`),p=String($n(e?.config.llm).routing||`off`)===`auto`,m=e=>typeof e==`string`&&f.some(t=>t.name===e)?e:``,h=m(e?.models.default)||f[0]?.name||``,g=u||(p?`Auto routing`:m($n(e?.config.llm).active)||h||`Auto routing`),{envs:_,fallback:v}=Co(e),y=_.some(e=>e.name===o)?o:v,b={profile:f.some(e=>e.name===g)?g:void 0,headed:c.headed,code:c.code,env:y||void 0};return{snap:e,setup:n,machine:i,ready:!n||n.ready,tools:c,setTools:l,profiles:f,current:g,setModel:d,envs:_,environment:y,setEnvName:s,choice:b}}function Lo({attach:e,choice:t,started:n,before:r=[]}){let i=Ro(n),a=Eo(r,e&&{id:`attach`,icon:Dn,label:`Attach a file`,tip:`Attach a file, or type @ in the box to name one in the agent's folder`,onSelect:e.pick});return t&&a.push({id:`env`,icon:jt,label:`Environment`,value:t.environment||`None`,panel:(0,R.jsx)(Fo,{envs:t.envs,current:t.environment,onPick:t.setEnvName}),panelLabel:`Environment for this chat`},{id:`tools`,icon:ut,label:`Tools`,dot:t.tools.headed||!t.tools.code,panel:(0,R.jsx)(Ao,{tools:t.tools,onChange:t.setTools}),panelLabel:`Tools for this chat`}),n&&i&&a.push({id:`chat-tools`,icon:ut,label:`Tools`,dot:i.tools.headed||!i.tools.code,disabled:n.ended,panel:(0,R.jsx)(Ao,{tools:i.tools,chat:{model:n.thread.model?.name,provider:n.thread.model?.provider},onChange:i.change}),panelLabel:`Tools for this chat`}),(0,R.jsx)(To,{items:a})}function Ro(e){let[t,n]=(0,L.useState)({}),r=e?.thread.headed,i=e?.thread.writeTests;if((0,L.useEffect)(()=>n({}),[r,i]),!e)return null;let a={...Do(e.snap),headed:t.headed??r??!1,code:t.code??i??!0};return{tools:a,change:t=>{let r={};t.headed!==a.headed&&(r.headed=t.headed),t.code!==a.code&&(r.writeTests=t.code),Object.keys(r).length&&(n({headed:t.headed,code:t.code}),Ie.settings(e.chat,r).catch(t=>e.onError(t.message)))}}}function zo({c:e}){let[t,n]=(0,L.useState)(!1),r=e.profiles.find(t=>t.name===e.current)?.provider||``,i=e.current===`Auto routing`?void 0:U[r];return(0,R.jsxs)(`div`,{className:`relative min-w-0`,children:[(0,R.jsxs)(I,{variant:`ghost`,className:`max-w-[46vw] min-w-0 px-2 text-body-lg sm:px-2`,"aria-expanded":t,"aria-haspopup":`menu`,"aria-label":`Model: ${e.current}`,onClick:()=>n(!t),children:[i?(0,R.jsx)(i,{"aria-hidden":`true`,className:`size-4`}):(0,R.jsx)(gn,{"aria-hidden":`true`}),(0,R.jsx)(`span`,{className:`hidden truncate sm:inline`,children:e.current}),(0,R.jsx)(tt,{size:16,"aria-hidden":`true`,className:`hidden sm:block`})]}),(0,R.jsx)(D,{open:t,onClose:()=>n(!1),label:`Model`,align:`end`,className:`w-[min(400px,calc(100vw-48px))]`,children:(0,R.jsx)(jo,{models:e.profiles,current:e.current,onPick:t=>{e.setModel(t),n(!1)}})})]})}function Bo({chat:e,thread:t,ended:n,busy:r,snap:i,onError:a}){let[o,s]=(0,L.useState)(!1),c=t.model?.name||``;if(!c)return null;let l=$n(i?.models.models),u=(t.models||[]).map(e=>({...e,note:String($n(l[e.name]).description||``)})),d=U[t.model?.provider||``],f=u.length<2;return(0,R.jsxs)(`div`,{className:`relative min-w-0`,children:[(0,R.jsxs)(I,{variant:`ghost`,className:`max-w-[46vw] min-w-0 px-2 text-body-lg sm:px-2`,disabled:n||r||f,"data-tip":f?`This chat has no other model to switch to`:r?`When ForgeQE has finished`:void 0,"aria-expanded":o,"aria-haspopup":`menu`,"aria-label":`Model: ${c}`,onClick:()=>s(!o),children:[d?(0,R.jsx)(d,{"aria-hidden":`true`,className:`size-4`}):(0,R.jsx)(gn,{"aria-hidden":`true`}),(0,R.jsx)(`span`,{className:`hidden truncate sm:inline`,children:c}),!f&&(0,R.jsx)(tt,{size:16,"aria-hidden":`true`,className:`hidden sm:block`})]}),(0,R.jsx)(D,{open:o,onClose:()=>s(!1),label:`Model`,align:`end`,className:`w-[min(400px,calc(100vw-48px))]`,children:(0,R.jsx)(jo,{models:u,current:c,auto:!1,onPick:t=>{s(!1),t!==c&&Ie.model(e,t).catch(e=>a(e.message))}})})]})}function Vo({project:e}){return(0,R.jsxs)(`div`,{role:`status`,className:`flex w-full flex-wrap items-center gap-x-4 gap-y-4 border-y border-line py-4 short:gap-y-2 short:py-2`,children:[(0,R.jsx)(F,{icon:Et,size:20,className:`flex-none text-icon`}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`font-medium`,children:`Set up ForgeQE first`}),(0,R.jsxs)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:[`Choose your project folder and set ForgeQE up in it. It is not set up in `,e,` yet.`]})]}),(0,R.jsxs)(`a`,{className:S(Le({variant:`primary`}),`short:min-h-8 short:px-4 short:text-body-sm`),href:s(`settings`,`setup`),children:[(0,R.jsx)(yt,{"aria-hidden":`true`}),`Set up`]})]})}function Ho({c:e}){let t=So(e.machine,e.choice.profile);return t.length?(0,R.jsx)(`div`,{role:`status`,className:`flex w-full flex-col gap-4 border-y border-line py-4 short:gap-2 short:py-2`,children:t.map(e=>(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-4 short:gap-y-2`,children:[(0,R.jsx)(F,{icon:Et,size:20,className:`flex-none text-icon`}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`font-medium`,children:e.title}),(0,R.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:e.detail})]}),(0,R.jsxs)(`a`,{className:S(Le({variant:`accent`}),`short:min-h-8 short:px-4 short:text-body-sm`),href:e.to,"data-tip":e.fix,children:[e.fix.startsWith(`Add`)?(0,R.jsx)(lt,{"aria-hidden":`true`}):(0,R.jsx)(_n,{"aria-hidden":`true`}),e.fix.split(` `)[0]]})]},e.title))}):null}var Uo=`forgeqe.regression.handoff`,Wo=`forgeqe.home.handoff`;function Go({id:e,icon:t,title:n,n:r,actions:i,description:a,level:o=2,className:s}){let c=o===2?`h2`:`h3`;return(0,R.jsxs)(`div`,{className:S(`flex flex-col gap-1`,s),children:[(0,R.jsxs)(`div`,{className:`flex min-h-8 flex-wrap items-center gap-x-4 gap-y-2`,children:[(0,R.jsxs)(c,{id:e,className:S(`m-0 flex min-w-0 flex-1 items-center gap-2`,o===2?`text-headline-sm`:`text-body-lg font-medium`),children:[(0,R.jsx)(F,{icon:t,size:o===2?18:16,className:`flex-none text-icon`}),(0,R.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:n}),r!=null&&(0,R.jsx)(`span`,{className:`text-body-sm font-normal text-muted tabular-nums`,children:r})]}),i&&(0,R.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:i})]}),a&&(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:a})]})}function Ko({icon:e,title:t,n,actions:r,description:i,level:a=2,divider:o=!0,className:s,children:c,id:l}){let u=(0,L.useId)(),d=`${l||u}-h`;return(0,R.jsxs)(`section`,{id:l,"aria-labelledby":d,className:S(`flex min-w-0 flex-col gap-4`,o&&a===2&&`pt-6 first:pt-0`,s),children:[(0,R.jsx)(Go,{id:d,icon:e,title:t,n,actions:r,description:i,level:a}),c]})}function qo({href:e,children:t,className:n}){return(0,R.jsxs)(`a`,{href:e,className:S(`inline-flex items-center gap-1 text-body-sm text-ink no-underline hover:text-ink hover:underline`,n),children:[t,(0,R.jsx)(ln,{size:14,"aria-hidden":`true`,className:`flex-none text-icon`})]})}var Jo=Object.defineProperty,Yo=(e,t)=>Jo(e,`name`,{value:t,configurable:!0});function Xo(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Yo(Xo,`setRef`);function Zo(...e){return t=>{let n=!1,r=e.map(e=>{let r=Xo(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Xo(e[t],null)}}}}Yo(Zo,`composeRefs`);function Qo(...e){return L.useCallback(Zo(...e),e)}Yo(Qo,`useComposedRefs`);var $o=Object.defineProperty,es=(e,t)=>$o(e,`name`,{value:t,configurable:!0});function ts(e,t){let n=L.createContext(t);n.displayName=e+`Context`;let r=es(e=>{let{children:t,...r}=e,i=L.useMemo(()=>r,Object.values(r));return(0,R.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=L.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return es(i,`useContext`),[r,i]}es(ts,`createContext`);function ns(e,t=[]){let n=[];function r(t,r){let i=L.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=es(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=L.useMemo(()=>o,Object.values(o));return(0,R.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=L.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return es(s,`useContext`),[o,s]}es(r,`createContext`);let i=es(()=>{let t=n.map(e=>L.createContext(e));return es(function(n){let r=n?.[e]||t;return L.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,rs(i,...t)]}es(ns,`createContextScope`);function rs(...e){let t=e[0];if(e.length===1)return t;let n=es(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return es(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}es(rs,`composeContextScopes`);var is=Object.defineProperty,as=(e,t)=>is(e,`name`,{value:t,configurable:!0}),os=!!(typeof window<`u`&&window.document&&window.document.createElement);function ss(e,t,{checkForDefaultPrevented:n=!0}={}){return as(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}as(ss,`composeEventHandlers`);function cs(e){if(!os)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}as(cs,`getOwnerWindow`);function ls(e){if(!os)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}as(ls,`getOwnerDocument`);function us(e,t=!1){let{activeElement:n}=ls(e);if(!n?.nodeName)return null;if(ds(n)&&n.contentDocument)return us(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=ls(n).getElementById(e);if(t)return t}}return n}as(us,`getActiveElement`);function ds(e){return e.tagName===`IFRAME`}as(ds,`isFrame`);var fs=globalThis?.document?L.useLayoutEffect:()=>{},ps=Object.defineProperty,ms=(e,t)=>ps(e,`name`,{value:t,configurable:!0}),hs=L.useEffectEvent,gs=L.useInsertionEffect;function _s(e){if(typeof hs==`function`)return hs(e);let t=L.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof gs==`function`?gs(()=>{t.current=e}):fs(()=>{t.current=e}),L.useMemo(()=>((...e)=>t.current?.(...e)),[])}ms(_s,`useEffectEvent`);var vs=Object.defineProperty,ys=(e,t)=>vs(e,`name`,{value:t,configurable:!0}),bs=L.useInsertionEffect||fs;function xs({prop:e,defaultProp:t,onChange:n=ys(()=>{},`onChange`),caller:r}){let[i,a,o]=Ss({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,L.useCallback(t=>{if(s){let n=Cs(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}ys(xs,`useControllableState`);function Ss({defaultProp:e,onChange:t}){let[n,r]=L.useState(e),i=L.useRef(n),a=L.useRef(t);return bs(()=>{a.current=t},[t]),L.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}ys(Ss,`useUncontrolledState`);function Cs(e){return typeof e==`function`}ys(Cs,`isFunction`);var ws=Symbol(`RADIX:SYNC_STATE`);function Ts(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=_s(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=L.useReducer((t,n)=>{if(n.type===ws)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=L.useRef(p);L.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=L.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return L.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:ws,state:i})},[i,d.state,c]),[h,f]}ys(Ts,`useControllableStateReducer`);var Es=Object.defineProperty,Ds=(e,t)=>Es(e,`name`,{value:t,configurable:!0});function Os(e){let[t,n]=L.useState(void 0);return fs(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}Ds(Os,`useSize`);var ks=Object.defineProperty,As=(e,t)=>ks(e,`name`,{value:t,configurable:!0});function js(e){let t=L.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Vs(r),L.Children.forEach(r,e=>{if(Ls(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;zs(n)&&typeof Gs==`function`;)n=Gs(n._payload);a=Ps(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=L.cloneElement(a,void 0,s):!o&&L.Children.count(r)===1&&L.isValidElement(r)&&(a=r);let c=a?Is(a):void 0,l=Qo(n,c);if(!a){if(r||r===0)throw Error(o?Ws(e):Us(e));return r}let u=Fs(i,a.props??{});return a.type!==L.Fragment&&(u.ref=n?l:c),L.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}As(js,`createSlot`);var Ms=Symbol.for(`radix.slottable`);function Ns(e){let t=As(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Ms,t}As(Ns,`createSlottable`);var Ps=As((e,t)=>`child`in e.props?L.isValidElement(t)?L.cloneElement(t,void 0,e.props.children(t.props.children)):null:L.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function Fs(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Hs(a,i))}return{...e,...n}}As(Fs,`mergeProps`);function Is(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}As(Is,`getElementRef`);function Ls(e){return L.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ms}As(Ls,`isSlottable`);var Rs=Symbol.for(`react.lazy`);function zs(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Rs&&`_payload`in e&&Bs(e._payload)}As(zs,`isLazyComponent`);function Bs(e){return typeof e==`object`&&!!e&&`then`in e}As(Bs,`isPromiseLike`);function Vs(e){let t=e;for(;zs(t)&&typeof Gs==`function`;)t=Gs(t._payload);return t}As(Vs,`useUnwrappedLazy`);function Hs(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}As(Hs,`concatAriaDescribedby`);var Us=As(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Ws=As(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Gs=L.use,Ks=Object.defineProperty,qs=(e,t)=>Ks(e,`name`,{value:t,configurable:!0}),Js=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=js(`Primitive.${t}`),r=L.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,R.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ys(e,t){e&&ci.flushSync(()=>e.dispatchEvent(t))}qs(Ys,`dispatchDiscreteCustomEvent`);var Xs=Object.defineProperty,Zs=(e,t)=>Xs(e,`name`,{value:t,configurable:!0}),Qs=`Checkbox`,[$s,ec]=ns(Qs),[tc,nc]=$s(Qs);function rc(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=xs({prop:n,defaultProp:i??!1,onChange:c,caller:Qs}),[m,h]=L.useState(null),[g,_]=L.useState(null),[v,y]=L.useState(null),b=!m||!!o||!!m.closest(`form`),x={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,userClick:v,onUserClick:y,required:l,defaultChecked:!uc(i)&&i,isFormControl:b,bubbleInput:g,setBubbleInput:_};return(0,R.jsx)(tc,{scope:t,...x,children:lc(d)?d(x):r})}Zs(rc,`CheckboxProvider`);var ic=`CheckboxTrigger`,ac=L.forwardRef(Zs(function({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i){let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,onUserClick:f,isFormControl:p,bubbleInput:m}=nc(ic,e),h=Qo(i,u),g=L.useRef(c);return L.useEffect(()=>{let e=a?.form;if(e){let t=Zs(()=>d(g.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,R.jsx)(Js.button,{type:`button`,role:`checkbox`,"aria-checked":uc(c)?`mixed`:c,"aria-required":l,"data-state":dc(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:h,onKeyDown:ss(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:ss(n,e=>{let t=e.isPropagationStopped();f({requestedChecked:uc(c)?!0:!c,hasConsumerStoppedPropagation:t}),d(e=>uc(e)?!0:!e),m&&p&&(t||e.stopPropagation())})})},`CheckboxTrigger`)),oc=L.forwardRef(Zs(function(e,t){let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,R.jsx)(rc,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(ac,{...d,ref:t,__scopeCheckbox:n}),e&&(0,R.jsx)(cc,{__scopeCheckbox:n})]})})},`Checkbox`)),sc=`CheckboxBubbleInput`,cc=L.forwardRef(Zs(function({__scopeCheckbox:e,onClick:t,...n},r){let{control:i,userClick:a,checked:o,defaultChecked:s,required:c,disabled:l,name:u,value:d,form:f,bubbleInput:p,setBubbleInput:m}=nc(sc,e),h=Qo(r,m),g=Os(i),_=L.useRef(!1),v=L.useRef(o),y=L.useRef(a),b=L.useRef(null);L.useEffect(()=>{let e=p;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set;if(!n)return;let r=v.current!==o;v.current=o;let i=a!==null&&a!==y.current;if(y.current=a,i)b.current=r?null:a,r&&(e.indeterminate=uc(o),n.call(e,!uc(o)&&o)),e.dispatchEvent(new Event(`click`,{bubbles:!a.hasConsumerStoppedPropagation}));else if(r){let t=b.current;b.current=null;let r=t?.requestedChecked===o;_.current=!0,e.indeterminate=uc(o),n.call(e,!uc(o)&&o),e.dispatchEvent(new Event(`click`,{bubbles:!(r&&t.hasConsumerStoppedPropagation)})),_.current=!1}},[p,o,a]);let x=L.useRef(!uc(o)&&o);return(0,R.jsx)(Js.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:s??x.current,required:c,disabled:l,name:u,value:d,form:f,...n,tabIndex:-1,ref:h,onClick:ss(t,e=>{_.current&&e.stopPropagation()}),style:{...n.style,...g,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`CheckboxBubbleInput`));function lc(e){return typeof e==`function`}Zs(lc,`isFunction`);function uc(e){return e===`indeterminate`}Zs(uc,`isIndeterminate`);function dc(e){return uc(e)?`indeterminate`:e?`checked`:`unchecked`}Zs(dc,`getState`);function fc({className:e,checked:t,onCheckedChange:n,disabled:r,defaultChecked:i,...a}){let[o,s]=L.useState(i??!1),c=t??o,l=e=>{t===void 0&&s(e),n?.(e)};return(0,R.jsx)(`span`,{className:S(`check-wrap inline-flex flex-none`,!r&&`check-moves`),children:(0,R.jsx)(oc,{checked:c,onCheckedChange:e=>l(e===!0),disabled:r,className:S(`flex size-[16px] shrink-0 cursor-pointer items-center justify-center rounded-[5px] border-0 bg-line-strong p-0 text-primary-btn-ink transition-colors duration-200 outline-none hover:bg-muted/50`,`data-[state=checked]:bg-primary-btn`,`focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent`,`disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-line-strong`,e),...a,children:(0,R.jsx)(`svg`,{className:`size-full`,viewBox:`0 0 12 12`,fill:`none`,"aria-hidden":`true`,children:(0,R.jsx)(`path`,{className:`check-tick`,d:`M2.5 6L4.5 8L9.5 3`,pathLength:1,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`})})})})}function pc(e){return e.waiting||e.state===`ready`&&e.outcome===`needs_input`?`waiting`:e.state===`busy`||e.state===`starting`?`working`:e.state===`closed`||e.state===`failed`?`ended`:`done`}var mc={working:{label:`Working`,tone:`running`},waiting:{label:`Needs you`,tone:`warn`},done:{label:`Your turn`,tone:`pass`},ended:{label:`Ended`,tone:`neutral`}};function hc(e){let t=e=>Date.parse(e.lastAt||e.started)||0;return e.toSorted((e,n)=>t(n)-t(e))}function gc(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean),r=`${e.title} ${e.lastReply||``} ${e.profile||``}`.toLowerCase();return n.every(e=>r.includes(e))}function _c({c:e}){let t=pc(e),n=mc[t];return(0,R.jsxs)(`a`,{href:s(`chats`,e.id),className:S(u,`group grid min-h-14 grid-cols-[minmax(0,1fr)_auto] gap-x-4 @3xl:grid-cols-[minmax(0,1fr)_120px_90px_150px_96px]`),children:[(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,R.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[t===`waiting`&&(0,R.jsx)(`span`,{"aria-hidden":`true`,className:`size-2 flex-none rounded-full bg-warn`}),(0,R.jsx)(`span`,{className:`truncate text-body-sm font-medium`,children:e.title})]}),(0,R.jsx)(`span`,{className:S(`truncate text-body-sm`,e.lastReply?`text-muted`:`text-muted italic`),children:e.lastReply||(t===`working`?`Working on the first answer…`:`No answer yet`)})]}),(0,R.jsx)(`span`,{className:`justify-self-end @3xl:justify-self-start`,children:(0,R.jsx)(Be,{tone:n.tone,orb:e.state===`starting`?`waiting`:`working`,children:n.label})}),(0,R.jsx)(`span`,{className:`hidden text-body-sm text-muted tabular-nums @3xl:block`,children:e.turns?x(e.turns,`message`):`—`}),(0,R.jsx)(`span`,{className:`hidden min-w-0 items-center gap-1 truncate text-body-sm text-muted @3xl:flex`,children:e.profile?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(F,{icon:gn,size:11,className:`flex-none text-icon`}),(0,R.jsx)(`span`,{className:`truncate`,children:e.profile})]}):`Default model`}),(0,R.jsx)(`span`,{className:`hidden text-right text-body-sm text-muted tabular-nums @3xl:block`,children:Kr(e.lastAt||e.started)})]})}var vc=[{id:`status`,label:`Status`},{id:`messages`,label:`Messages`},{id:`model`,label:`Model`},{id:`last`,label:`Last activity`}],yc={waiting:0,working:1,done:2,ended:3},bc={title:e=>e.title,status:e=>yc[pc(e)],messages:e=>e.turns||0,model:e=>e.profile||``,last:e=>Date.parse(e.lastAt||e.started)||0},xc=(e,t)=>zr(e,t,bc),Sc=e=>pc(e)===`working`,Cc=e=>s(`chats`,e.id);function wc({c:e,onStop:t}){let[n,r]=(0,L.useState)(!1),i=e=>()=>{r(!1),e()};return(0,R.jsxs)(`span`,{className:`relative inline-block`,onClick:e=>e.stopPropagation(),children:[(0,R.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`More for ${e.title}`,"data-tip":`More`,"aria-haspopup":`menu`,"aria-expanded":n,onClick:()=>r(!n),children:(0,R.jsx)(On,{"aria-hidden":`true`})}),(0,R.jsxs)(D,{open:n,onClose:()=>r(!1),label:`More for ${e.title}`,align:`end`,className:`min-w-[200px] text-left`,children:[(0,R.jsx)(te,{onClick:i(()=>location.hash=Cc(e)),children:`Open`}),(0,R.jsx)(te,{onClick:i(()=>window.open(Cc(e),`_blank`,`noopener,noreferrer`)),children:`Open in a new tab`}),Sc(e)&&(0,R.jsx)(te,{onClick:i(()=>t(e)),children:(0,R.jsx)(`span`,{className:`text-fail`,children:`Stop`})})]})]})}function Tc({rows:e,resetKey:t,tools:n,empty:r,onStop:i}){let[a,o]=(0,L.useState)({key:`last`,dir:`desc`}),[s,c]=(0,L.useState)([]),[l,u]=(0,L.useState)([]),[d,f]=(0,L.useState)(!1),p=(0,L.useMemo)(()=>xc(e,a),[e,a]),m=l.filter(t=>e.some(e=>e.id===t)),h=e.filter(e=>m.includes(e.id)&&Sc(e)),g=e=>!s.includes(e),_=e.length>0&&e.every(e=>m.includes(e.id)),v=async e=>{f(!0);try{await i(e)}finally{f(!1)}},y=(e,t,n,r,i=!1)=>(0,R.jsx)(fr,{col:e,sort:a,onSort:o,first:n,num:i,className:r,children:t});return(0,R.jsx)(xr,{label:`Chats`,search:!1,size:25,resetKey:`${String(t)}-${a.key}-${a.dir}`,tools:n,height:yr,end:(0,R.jsx)(Or,{columns:vc,hidden:s,onChange:c}),empty:r,selection:{count:m.length,onClear:()=>u([]),actions:(0,R.jsxs)(I,{busy:d,size:`sm`,variant:`danger`,disabled:!h.length||d,"data-tip":h.length?`Stop ${x(h.length,`chat`)} at work`:`None of the selected chats is at work`,onClick:()=>void v(h.map(e=>e.id)).then(()=>u([])),children:[(0,R.jsx)(dn,{"aria-hidden":`true`}),d?`Stopping…`:`Stop${h.length?` (${h.length})`:``}`]})},head:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`th`,{scope:`col`,className:S(hr,`w-10`),children:(0,R.jsx)(fc,{"aria-label":`Select all ${x(e.length,`chat`)}`,checked:_,onCheckedChange:t=>u(t?e.map(e=>e.id):[])})}),y(`title`,`Chat`,`asc`),g(`status`)&&y(`status`,`Status`,`asc`,`w-[136px]`),g(`messages`)&&y(`messages`,`Messages`,`desc`,`hidden w-[120px] @3xl:table-cell`,!0),g(`model`)&&y(`model`,`Model`,`asc`,`hidden w-[176px] @2xl:table-cell`),g(`last`)&&y(`last`,`Last activity`,`desc`,`hidden w-[144px] @xl:table-cell`,!0),(0,R.jsx)(`th`,{scope:`col`,className:S(hr,`w-12`),children:(0,R.jsx)(`span`,{className:`sr-only`,children:`More`})})]}),children:p.map(e=>{let t=pc(e),n=mc[t],r=m.includes(e.id);return(0,R.jsxs)(`tr`,{className:Bn,"data-state":r?`selected`:void 0,onClick:()=>location.hash=Cc(e),children:[(0,R.jsx)(`td`,{className:Lr,onClick:e=>e.stopPropagation(),children:(0,R.jsx)(fc,{"aria-label":`Select ${e.title}`,checked:r,onCheckedChange:t=>u(t?[...m,e.id]:m.filter(t=>t!==e.id))})}),(0,R.jsx)(`td`,{className:S(Lr,`max-w-0`),children:(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,R.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[t===`waiting`&&(0,R.jsx)(`span`,{"aria-hidden":`true`,className:`size-2 flex-none rounded-full bg-warn`}),(0,R.jsx)(`a`,{href:Cc(e),onClick:e=>e.stopPropagation(),className:`truncate font-medium text-ink no-underline hover:underline`,"data-tip":e.title,children:e.title})]}),(0,R.jsx)(`span`,{className:S(`truncate text-muted`,!e.lastReply&&`italic`),children:e.lastReply||(t===`working`?`Working on the first answer…`:`No answer yet`)})]})}),g(`status`)&&(0,R.jsx)(`td`,{className:S(`px-4 py-2`,`whitespace-nowrap`),children:(0,R.jsx)(Be,{tone:n.tone,orb:e.state===`starting`?`waiting`:`working`,children:n.label})}),g(`messages`)&&(0,R.jsx)(`td`,{className:S(`px-4 py-2 text-right whitespace-nowrap tabular-nums`,`hidden text-ink-2 @3xl:table-cell`),children:e.turns?x(e.turns,`message`):(0,R.jsx)(`span`,{className:`text-muted`,children:`—`})}),g(`model`)&&(0,R.jsx)(`td`,{className:S(`px-4 py-2`,`hidden max-w-0 @2xl:table-cell`),children:(0,R.jsx)(`span`,{className:`flex min-w-0 items-center gap-1 text-ink-2`,children:e.profile?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(F,{icon:gn,size:11,className:`flex-none text-icon`}),(0,R.jsx)(`span`,{className:`truncate`,"data-tip":e.profile,children:e.profile})]}):(0,R.jsx)(`span`,{className:`text-muted`,children:`Default model`})})}),g(`last`)&&(0,R.jsx)(`td`,{className:S(`px-4 py-2 text-right whitespace-nowrap tabular-nums`,`hidden text-ink-2 @xl:table-cell`),"data-tip":new Date(e.lastAt||e.started).toLocaleString(),children:Kr(e.lastAt||e.started)}),(0,R.jsx)(`td`,{className:S(Lr,`text-right`),children:(0,R.jsx)(wc,{c:e,onStop:e=>void v([e.id])})})]},e.id)})})}function Ec(e,t){return hc(e.kind===`all`?t:e.kind===`custom`?t.filter(t=>t.agent===e.id):tr(e.page,t))}function Dc(e,t){let n=t.filter(e=>e.state===`waiting`);return e.kind===`all`?n:e.kind===`custom`?n.filter(t=>t.agent===e.id):[]}function Oc(e){return pc(e)===`waiting`?!1:pc(e)===`working`||e.task?.state===`running`||e.task?.state===`paused`}function kc(e,t=new Date){let n=e?Date.parse(e):NaN;if(!Number.isFinite(n))return!1;let r=new Date(t);return r.setHours(0,0,0,0),n>=r.getTime()&&n<=t.getTime()+6e4}var Ac=(e,t=new Date)=>e.filter(e=>e.task?.state===`done`&&kc(e.task.updatedAt,t)).length;function jc(e,t,n=new Date){return{running:e.filter(e=>e.status===`running`).length,failed:e.filter(e=>e.status===`failed`&&kc(e.lastAt||e.startedAt,n)).length,jobsFailed:t.filter(e=>e.enabled&&e.last&&[`failed`,`timed_out`].includes(e.last.status)).length}}function Mc(e,t=Date.now()){let n=e?Date.parse(e):NaN;if(!Number.isFinite(n))return``;let r=Math.max(0,Math.floor((t-n)/6e4));if(r<1)return`under 1m`;if(r<60)return`${r}m`;let i=Math.floor(r/60);return i<24?r%60?`${i}h ${r%60}m`:`${i}h`:`${Math.floor(i/24)}d`}function Nc(e,t=new Date){let n=new Date(t.getFullYear(),t.getMonth(),t.getDate()-6).getTime(),r=[0,0,0,0,0,0,0],i=0,a=0;for(let o of e){let e=Date.parse(o.startedAt);if(!Number.isFinite(e)||e<n||e>t.getTime())continue;let s=new Date(e),c=Math.round((new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime()-n)/864e5);c<0||c>6||(r[c]++,o.status===`failed`&&i++,o.status===`done`&&a++)}let o=a+i;return{perDay:r,total:r.reduce((e,t)=>e+t,0),failed:i,passRate:o?Math.round(a/o*100):null}}function Pc(e,t,n,r=new Date){let i=new Date(r);i.setHours(0,0,0,0);let a=e=>{let t=Date.parse(e);return Number.isFinite(t)&&t>=i.getTime()};return{failed:(e||[]).filter(e=>e.status===`failed`&&a(e.lastAt||e.startedAt)).length,waiting:(t||[]).filter(e=>e.state===`waiting`).length,jobsFailed:(n||[]).filter(e=>e.enabled&&e.last&&[`failed`,`timed_out`].includes(e.last.status)).length,running:(e||[]).filter(e=>e.status===`running`).length}}var Fc=5,Ic=15e3;function Lc(e,t,n=!1){let[r,i]=(0,L.useState)(null),[a,o]=(0,L.useState)([]),[s,c]=(0,L.useState)([]),[l,u]=(0,L.useState)([]),[d,f]=(0,L.useState)(``),[p,m]=(0,L.useState)({}),[h,g]=(0,L.useState)({runs:!1,jobs:!1}),_=(0,L.useCallback)(()=>{n||(Ie.list().then(t=>{i(Ec(e,t.chats)),f(``)},e=>{f(e.message),i(e=>e??[])}),e.kind!==`page`&&Me.list().then(t=>{o(Dc(e,t.approvals)),m(e=>({...e,approvals:!1}))},()=>m(e=>({...e,approvals:!0}))),e.kind===`all`&&(xe.list().then(e=>{c(e.runs),m(e=>({...e,runs:!1}))},()=>m(e=>({...e,runs:!0}))).finally(()=>g(e=>({...e,runs:!0}))),Se.list().then(e=>{u(e.jobs),m(e=>({...e,jobs:!1}))},()=>m(e=>({...e,jobs:!0}))).finally(()=>g(e=>({...e,jobs:!0})))))},[n,e.kind,e.kind===`page`?e.page.id:e.kind===`custom`?e.id:``]);(0,L.useEffect)(()=>{if(n)return;_();let e=Zn(_,Ic);return()=>qn(e)},[_,n]);let v=r!==null&&(e.kind===`page`||p.approvals!==void 0)&&(e.kind!==`all`||h.runs&&h.jobs);return(0,L.useEffect)(()=>{v&&t?.(Pc(s,a,l))},[v,s,a,l]),{chats:r,approvals:a,runs:s,jobs:l,error:d,unread:p,ready:v,load:_}}function W(e){let t=(e.chats??[]).filter(e=>pc(e)===`waiting`),{running:n,failed:r,jobsFailed:i}=jc(e.runs,e.jobs);return{chats:t,failed:r,jobsFailed:i,running:n,count:e.approvals.length+t.length+ +!!r+ +!!i}}function Rc(e){let t=W(e);return{words:[e.approvals.length?x(e.approvals.length,`approval`):``,t.chats.length?`${x(t.chats.length,`question`)} for you`:``,t.failed?`${x(t.failed,`run`)} failed today`:``,t.jobsFailed?`${x(t.jobsFailed,`job`)} failed`:``].filter(Boolean).join(`, `),answer:e.approvals.length+t.chats.length>0}}function zc(){let e=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;document.getElementById(`home-waiting`)?.scrollIntoView({behavior:e?`auto`:`smooth`,block:`start`})}function Bc({scope:e,onRead:t,composer:n=!0}){let r=e.kind===`all`,[i,a]=(0,L.useState)(!1),o=Lc(e,t),{chats:c,error:l,load:d}=o;if(!c)return(0,R.jsx)(`p`,{role:`status`,className:`m-0 w-full text-left text-body-sm text-muted`,children:`Reading what the agent is doing…`});let f=W(o),p=c.filter(Oc),h=c.filter(e=>!Oc(e)&&pc(e)!==`waiting`),g=r?f.running:0,_=f.count,v=Ac(c),y=e.kind===`page`?s(`agents`,e.page.id,`conversations`):r?s(`chats`):void 0,b=i?h:h.slice(0,Fc),C=!!l,w=e.kind===`page`?ge(N(e.page.agent).name):e.kind===`custom`?ge(e.name||e.id):``;return(0,R.jsxs)(`section`,{"aria-label":`What the agent is doing`,className:`@container w-full text-left`,children:[l&&(0,R.jsx)(`p`,{role:`alert`,className:`m-0 mb-4 text-body-sm text-fail [overflow-wrap:anywhere]`,children:l}),(0,R.jsxs)(`div`,{className:`grid grid-cols-1 items-start gap-6 @3xl:grid-cols-2 @3xl:grid-rows-[auto_1fr]`,children:[(0,R.jsxs)(`section`,{"aria-labelledby":`board-waiting`,className:S(m,`flex min-w-0 flex-col gap-2 @3xl:col-start-1 @3xl:row-start-1`),children:[(0,R.jsx)(Uc,{id:`board-waiting`,icon:dt,title:`Waiting on you`,n:_}),(0,R.jsx)(Vc,{board:o,all:r})]}),(0,R.jsxs)(`section`,{"aria-labelledby":`board-working`,className:S(m,`flex min-w-0 flex-col gap-2 self-stretch @3xl:col-start-2 @3xl:row-span-2 @3xl:row-start-1`),children:[(0,R.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,R.jsx)(Uc,{id:`board-working`,icon:vt,title:`Working now`,n:p.length+ +!!g}),(0,R.jsx)(`span`,{className:`flex-1`}),(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-body-sm text-muted tabular-nums`,children:[(0,R.jsx)(F,{icon:mt,size:14,className:`text-pass`}),v,` done today`]})]}),p.length===0&&!g?!C&&(0,R.jsxs)(Gc,{children:[`Nothing is running.`,n?` What you ask above shows here while it works.`:``]}):(0,R.jsxs)(`ul`,{className:`m-0 flex list-none flex-col gap-4 p-0`,children:[p.map(e=>(0,R.jsx)(Xc,{c:e,showAgent:r,onChange:d},e.id)),g>0&&(0,R.jsx)(`li`,{className:`border-l-2 border-line py-2 pl-4`,children:(0,R.jsxs)(qo,{href:s(`runs`),className:`font-medium`,children:[x(g,`run`),` going now: watch them`]})})]})]}),(0,R.jsxs)(`section`,{"aria-labelledby":`board-recent`,className:S(m,`flex min-w-0 flex-col gap-2 @3xl:col-start-1 @3xl:row-start-2`),children:[(0,R.jsx)(Go,{id:`board-recent`,icon:on,title:`Recent chats`,level:3,actions:(0,R.jsx)(R.Fragment,{children:y?(0,R.jsx)(qo,{href:y,children:`All chats`}):h.length>Fc&&(0,R.jsx)(I,{size:`sm`,variant:`ghost`,"aria-expanded":i,onClick:()=>a(!i),children:i?`Fewer`:`All (${h.length})`})})}),h.length===0?!C&&(0,R.jsxs)(Gc,{children:[r||!w?`No chats yet.`:`No chats with ${w} yet.`,n?` Ask above to start one.`:``]}):(0,R.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:b.map(e=>(0,R.jsx)(`li`,{children:(0,R.jsxs)(`a`,{href:s(`chats`,e.id),className:S(u,`-mx-4`),children:[r&&(0,R.jsx)(Jc,{c:e,px:20}),(0,R.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-body-sm`,children:e.title}),(0,R.jsx)(`span`,{className:`flex-none text-body-sm text-muted tabular-nums`,children:Kr(e.lastAt||e.started)})]})},e.id))})]})]})]})}function Vc({board:e,all:t,className:n}){let r=W(e),i=(e.unread.approvals||e.unread.runs||e.unread.jobs)&&(0,R.jsxs)(`p`,{role:`alert`,className:`m-0 text-body-sm text-fail`,children:[`Could not read `,[e.unread.approvals&&`the approvals waiting`,e.unread.runs&&`today's runs`,e.unread.jobs&&`the jobs`].filter(Boolean).join(`, `),`. Trying again shortly.`]});return r.count===0?(0,R.jsx)(R.Fragment,{children:i||!e.error&&(0,R.jsx)(Gc,{children:`Nothing waits on you.`})}):(0,R.jsxs)(R.Fragment,{children:[i,(0,R.jsxs)(`ul`,{className:S(`m-0 flex list-none flex-col p-0`,n),children:[e.approvals.map(n=>(0,R.jsx)(Yc,{a:n,showAgent:t,onDone:e.load},`a:${n.agent}:${n.id}`)),r.chats.map(e=>(0,R.jsx)(Kc,{icon:t?(0,R.jsx)(Jc,{c:e}):void 0,title:e.title,meta:`${t?`${qc(e)}, asked`:`Asked`} ${Kr(e.lastAt||e.started)}`,children:(0,R.jsxs)(`a`,{href:s(`chats`,e.id),className:Le({variant:`outline`,size:`sm`}),"data-tip":`Answer in the chat`,children:[(0,R.jsx)(on,{"aria-hidden":`true`}),`Answer`]})},`c:${e.id}`)),t&&r.failed>0&&(0,R.jsx)(Kc,{icon:(0,R.jsx)(F,{icon:dt,size:20,className:`text-fail`,label:`Failed`}),title:`${x(r.failed,`run`)} failed today`,meta:`See what broke`,children:(0,R.jsxs)(`a`,{href:s(`runs`),className:Le({variant:`outline`,size:`sm`}),children:[(0,R.jsx)(ln,{"aria-hidden":`true`}),`Runs`]})}),t&&r.jobsFailed>0&&(0,R.jsx)(Kc,{icon:(0,R.jsx)(F,{icon:dt,size:20,className:`text-fail`,label:`Failed`}),title:`${x(r.jobsFailed,`job`)} failed last time`,meta:`See the jobs`,children:(0,R.jsxs)(`a`,{href:s(`jobs`,`list`),className:Le({variant:`outline`,size:`sm`}),children:[(0,R.jsx)(ln,{"aria-hidden":`true`}),`Jobs`]})})]})]})}function Hc(e){return(e.chats??[]).filter(Oc).length+ +!!W(e).running}function Uc({id:e,icon:t,title:n,n:r}){return(0,R.jsx)(Go,{id:e,icon:t,title:n,n:r,level:3})}function Wc(e){let t=e.filter(Boolean).join(`, `);return t?`${t[0].toUpperCase()}${t.slice(1)}`:``}var Gc=({children:e})=>(0,R.jsx)(Re,{className:`py-2`,children:e});function Kc({icon:e,title:t,meta:n,children:r}){return(0,R.jsxs)(`li`,{className:`flex flex-wrap items-center gap-x-4 gap-y-2 border-b border-line-soft py-2 last:border-b-0`,children:[e&&(0,R.jsx)(`span`,{className:`flex flex-none`,children:e}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_200px] flex-col`,children:[(0,R.jsx)(`span`,{className:`text-body-sm font-medium [overflow-wrap:anywhere]`,children:t}),n&&(0,R.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:n})]}),r&&(0,R.jsx)(`span`,{className:`flex flex-none flex-wrap gap-2`,children:r})]})}function qc(e){if(e.agent)return e.agent;let t=Hn(e);return t?N(t.agent).name:N(ce).name}function Jc({c:e,px:t=24}){return(0,R.jsx)(ne,{agent:Hn(e)?.agent??`forgeqe`,px:t,decorative:!0})}function Yc({a:e,showAgent:t,onDone:n}){let[r,i]=(0,L.useState)(!1),[a,o]=(0,L.useState)(``),s=async t=>{i(!0),o(``);try{await Me.answer(e.agent,e.id,t),n()}catch(e){o(e.message)}finally{i(!1)}};return(0,R.jsxs)(Kc,{icon:(0,R.jsx)(F,{icon:dt,size:20,className:`text-warn`,label:`Waiting for your approval`}),title:e.title,meta:(0,R.jsxs)(R.Fragment,{children:[e.detail&&(0,R.jsx)(`span`,{className:`block text-ink-2`,children:e.detail}),(e.lines||[]).map((e,t)=>(0,R.jsx)(`span`,{className:`block`,children:e},t)),(0,R.jsxs)(`span`,{className:`block`,children:[t?`${e.agent}, asked`:`Asked`,` `,Kr(e.createdAt),`; no answer by `,e.until.slice(0,16).replace(`T`,` `),` UTC is a no.`]}),a&&(0,R.jsx)(`span`,{className:`block text-fail`,children:a})]}),children:[(0,R.jsxs)(I,{size:`sm`,disabled:r,onClick:()=>void s(`allow`),children:[(0,R.jsx)(En,{"aria-hidden":`true`}),`Allow`]}),e.forRun&&(0,R.jsxs)(I,{size:`sm`,disabled:r,onClick:()=>void s(`allow_run`),"data-tip":`Allow for the rest of this run`,children:[(0,R.jsx)(En,{"aria-hidden":`true`}),`Allow run`]}),(0,R.jsxs)(I,{size:`sm`,variant:`ghost`,disabled:r,onClick:()=>void s(`deny`),children:[(0,R.jsx)(xt,{"aria-hidden":`true`}),`Deny`]})]})}function Xc({c:e,showAgent:t,onChange:n}){let r=e.task?.state===`paused`,[i,a]=(0,L.useState)(!1),[o,c]=(0,L.useState)(``),l=e.task?.state===`running`||r,u=async()=>{a(!0),c(``);try{await Ie.pause(e.id,!r),n()}catch(e){c(e.message)}finally{a(!1)}},d=Mc(e.task?.startedAt||e.lastAt||e.started);return(0,R.jsxs)(`li`,{className:`flex gap-4 border-l-2 border-line py-2 pl-4`,children:[t&&(0,R.jsx)(Jc,{c:e}),(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-2`,children:[(0,R.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,R.jsx)(`a`,{href:s(`chats`,e.id),className:`truncate text-body-sm font-medium text-ink no-underline hover:underline`,"data-tip":e.title,children:e.title}),(0,R.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 text-body-sm text-muted`,children:[t&&(0,R.jsx)(`span`,{children:qc(e)}),r&&(0,R.jsx)(Be,{tone:`neutral`,icon:!1,children:`Paused`})]})]}),l&&(0,R.jsx)(I,{variant:`icon`,size:`icon`,disabled:i,onClick:()=>void u(),"aria-label":`${r?`Resume`:`Pause`}: ${e.title}`,"data-tip":r?`Resume`:`Pause before its next step`,className:`-my-2 -mr-2 flex-none`,children:r?(0,R.jsx)(vt,{"aria-hidden":`true`}):(0,R.jsx)(Qt,{"aria-hidden":`true`})})]}),e.task?.steps.length?(0,R.jsx)(`ol`,{"aria-label":`Its last steps`,className:`m-0 flex list-none flex-col gap-1 p-0`,children:e.task.steps.map((e,t)=>(0,R.jsxs)(`li`,{className:S(`flex min-w-0 items-center gap-2 text-body-sm`,e.running?`text-ink`:`text-muted`),children:[(0,R.jsx)(`span`,{className:`flex size-4 flex-none items-center justify-center`,children:e.running?r?(0,R.jsx)(F,{icon:Qt,size:14,label:`Paused`}):(0,R.jsx)(Ke,{state:`working`,px:16,label:`Running`}):e.ok===!1?(0,R.jsx)(F,{icon:dt,size:14,className:`text-fail`,label:`Failed`}):(0,R.jsx)(F,{icon:mt,size:14,className:`text-pass`,label:`Done`})}),(0,R.jsx)(`span`,{className:`truncate`,children:e.text})]},t))}):(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:e.lastReply?e.lastReply:`Working on the first answer…`}),(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted tabular-nums`,children:Wc([e.task?.done?`${x(e.task.done,`step`)} done`:``,d?`going for ${d}`:``])}),o&&(0,R.jsx)(`p`,{role:`alert`,className:`m-0 text-body-sm text-fail`,children:o})]})]})}function Zc({title:e,children:t,defaultOpen:n}){let[r,i]=(0,L.useState)(!!n),a=(0,L.useId)();return(0,R.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,R.jsxs)(I,{variant:`ghost`,size:`sm`,"aria-expanded":r,"aria-controls":a,onClick:()=>i(!r),className:`self-start`,children:[(0,R.jsx)(tt,{size:15,"aria-hidden":`true`,className:S(`transition-transform`,r&&`rotate-180`)}),e]}),(0,R.jsx)(cr,{open:r,id:a,children:t})]})}function Qc({review:e,className:t}){return(0,R.jsxs)(`div`,{className:S(`flex flex-col gap-2 text-body-sm leading-relaxed`,t),children:[e.summary&&(0,R.jsx)(`p`,{className:`m-0 text-ink-2 [overflow-wrap:anywhere]`,children:e.summary}),e.issues.length>0&&(0,R.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0`,children:e.issues.map((e,t)=>(0,R.jsxs)(`li`,{className:`flex min-w-0 items-start gap-2`,children:[(0,R.jsx)(`span`,{className:S(`mt-px flex-none rounded-full px-2 py-px text-body-sm font-medium`,e.kind===`correctness`?`bg-fail-soft text-fail`:`bg-surface-strong text-ink-2`),children:e.kind===`correctness`?`Correctness`:`Standards`}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-1`,children:[e.file&&(0,R.jsx)(`span`,{className:`font-mono text-body-sm text-muted [overflow-wrap:anywhere]`,children:e.file}),(0,R.jsx)(`span`,{className:`text-ink [overflow-wrap:anywhere]`,children:e.problem}),e.fix&&(0,R.jsxs)(`span`,{className:`text-muted [overflow-wrap:anywhere]`,children:[`Fix: `,e.fix]})]})]},t))})]})}var $c={done:`border-line-strong`,active:`border-accent/35`,pending:`border-line-strong`,failed:`border-fail/35`,skipped:`border-line-strong`,note:`border-line-strong`};function el({status:e,orb:t,px:n=20,spin:r=!1}){let i={width:n,height:n};return e===`active`&&r?(0,R.jsx)(`span`,{role:`img`,"aria-label":`At work`,className:`flex flex-none items-center justify-center`,style:i,children:(0,R.jsx)(yn,{size:n-2,strokeWidth:2.5,"aria-hidden":`true`,className:`animate-spin text-accent-fg motion-reduce:animate-none`})}):e===`active`?(0,R.jsx)(Ke,{state:t,px:n,label:`At work`}):e===`done`?(0,R.jsx)(`span`,{role:`img`,"aria-label":`Done`,className:`flex flex-none items-center justify-center`,style:i,children:(0,R.jsx)(En,{size:n*.8,strokeWidth:2.5,"aria-hidden":`true`,className:`text-icon`})}):e===`failed`?(0,R.jsx)(`span`,{role:`img`,"aria-label":`Failed`,className:`flex flex-none items-center justify-center`,style:i,children:(0,R.jsx)(St,{size:n*.8,strokeWidth:2.5,"aria-hidden":`true`,className:`text-fail`})}):e===`note`?(0,R.jsx)(`span`,{role:`img`,"aria-label":`Note`,className:`flex flex-none items-center justify-center`,style:i,children:(0,R.jsx)(`span`,{className:`size-1.5 rounded-full bg-line-strong`})}):(0,R.jsx)(`span`,{role:`img`,"aria-label":e===`skipped`?`Skipped`:`To come`,className:S(`box-border block flex-none rounded-full border-2 border-line-strong`,e===`skipped`&&`border-dashed`),style:i})}var tl=(e,t)=>e.status===`running`?t?`active`:`done`:e.status===`ok`?`done`:e.status===`fail`?`failed`:`note`,nl={read:Tn,search:st,list:et,edit:Jt,run:Wt,element:qe,outline:un,references:pt,impact:Xe,find:Gt,testfile:wt,web:rt,environment:jt,cases:Tt,browser:rt,post:At,test:wt,retry:at,review:Vt,task:nn,work:ut},rl={done:`text-icon`,failed:`text-fail`,active:`text-accent-fg animate-pulse motion-reduce:animate-none`,pending:`text-muted`,skipped:`text-muted`,note:`text-muted`},il={done:`Done`,failed:`Failed`,active:`At work`,pending:`To come`,skipped:`Skipped`,note:`Note`};function al({kind:e,status:t}){let n=S(`mt-px flex size-4 flex-none items-center justify-center`,rl[t]);if(e===`skill`)return(0,R.jsxs)(`span`,{role:`img`,"aria-label":il[t],className:S(n,`relative`),children:[(0,R.jsx)(g,{name:T.skills,px:15}),(t===`done`||t===`failed`)&&(0,R.jsx)(`span`,{"aria-hidden":`true`,className:S(`absolute -right-0.5 -bottom-0.5 size-1.5 rounded-full ring-1 ring-bg`,t===`done`?`bg-accent`:`bg-fail`)})]});let r=nl[e];return(0,R.jsx)(`span`,{role:`img`,"aria-label":il[t],className:n,children:(0,R.jsx)(r,{size:15,strokeWidth:2,"aria-hidden":`true`})})}function ol({status:e}){return e===`active`?(0,R.jsx)(yn,{size:12,strokeWidth:2.5,"aria-label":`At work`,className:`mt-1 flex-none animate-spin text-accent-fg motion-reduce:animate-none`}):(0,R.jsx)(`span`,{role:`img`,"aria-label":il[e],className:S(`mt-2 size-2 flex-none rounded-full`,e===`done`?`bg-accent`:e===`failed`?`bg-fail`:`bg-line-strong`)})}function sl({text:e,label:t}){let[n,r]=(0,L.useState)(!1);return(0,R.jsx)(I,{variant:`icon`,size:`icon-xs`,"aria-label":n?`Copied`:t,"data-tip":n?`Copied`:t,onClick:async()=>{try{await navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),1500)}catch{}},className:`flex-none opacity-0 group-hover:opacity-100 focus-visible:opacity-100`,children:n?(0,R.jsx)(En,{size:13,"aria-hidden":`true`,className:`text-icon`}):(0,R.jsx)(kt,{size:13,"aria-hidden":`true`})})}function cl({step:e,failed:t}){return(0,R.jsxs)(`div`,{className:`flex flex-col gap-1 py-1 font-mono text-body-sm leading-relaxed`,children:[e.command&&(0,R.jsxs)(`div`,{className:`group flex min-w-0 items-start gap-2 text-muted`,children:[(0,R.jsx)(`span`,{"aria-hidden":`true`,className:`flex-none select-none`,children:`$`}),(0,R.jsx)(`span`,{className:`min-w-0 flex-1 whitespace-pre-wrap [overflow-wrap:anywhere]`,children:e.command}),(0,R.jsx)(sl,{text:e.command,label:`Copy the command`})]}),e.output&&(0,R.jsxs)(`div`,{className:`group flex min-w-0 items-start gap-2`,children:[(0,R.jsx)(`span`,{"aria-hidden":`true`,className:`flex-none text-muted select-none`,children:`⎿`}),(0,R.jsx)(`pre`,{className:S(`m-0 max-h-56 min-w-0 flex-1 overflow-auto font-mono text-body-sm leading-relaxed whitespace-pre-wrap [overflow-wrap:anywhere]`,t?`text-fail`:`text-ink-2`),children:(0,R.jsx)(Ue,{text:e.output})}),(0,R.jsx)(sl,{text:e.output,label:`Copy the output`})]}),e.shell?.exit!==void 0&&e.shell.exit!==0&&(0,R.jsxs)(`span`,{className:`text-fail`,children:[`Exit code `,e.shell.exit]})]})}var ll=e=>/[/\\]|\.\w{1,5}$|^\$ /.test(e)&&!/\s{2,}/.test(e);function ul({text:e}){return(0,R.jsx)(`span`,{className:S(_,`min-w-0 max-w-full truncate rounded-sm px-2 py-1 text-body-sm text-ink-2`,ll(e)&&`font-mono text-body-sm`),children:e})}function dl(e){return{count:e.length,failed:e.filter(e=>e.ok===!1).length,latest:e[e.length-1]}}function fl({line:e}){return(0,R.jsxs)(`li`,{className:S(`flex gap-2 [overflow-wrap:anywhere]`,e.ok===!1?`text-fail`:`text-ink-2`),children:[e.ok!==void 0&&(0,R.jsx)(`span`,{"aria-hidden":`true`,className:e.ok?`text-icon`:void 0,children:e.ok?`✓`:`✗`}),(0,R.jsx)(ti,{text:e.text,className:`min-w-0 text-body-sm leading-relaxed text-inherit [&_p]:my-0`})]})}function pl({step:e}){let[t,n]=(0,L.useState)(!1),r=e.lines.length>3&&!t,{count:i,failed:a,latest:o}=dl(e.lines);return(0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[e.lines.length>3&&(0,R.jsxs)(I,{variant:`link`,size:`inline`,"aria-expanded":t,onClick:()=>n(!t),className:`w-fit gap-1`,children:[(0,R.jsxs)(`span`,{children:[t?`Hide`:`Show`,` `,i,` lines`,a>0&&(0,R.jsxs)(`span`,{className:`text-fail`,children:[` · `,a,` failed`]})]}),(0,R.jsx)(tt,{size:13,"aria-hidden":`true`,className:S(`transition-transform`,t&&`rotate-180`)})]}),(0,R.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0 text-body-sm leading-relaxed`,children:r?o&&(0,R.jsx)(fl,{line:o}):e.lines.map((e,t)=>(0,R.jsx)(fl,{line:e},t))})]})}function ml({agent:e,named:t=!0,working:n=!1,state:r,orb:i}){let a=N(e),o=A(e);return(0,R.jsxs)(`span`,{className:`inline-flex flex-none items-center gap-2`,"data-tip":a.name,children:[(0,R.jsx)(ne,{agent:e,px:24,decorative:t,working:n,state:r,activity:n?O(i):void 0}),t&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`span`,{className:`font-medium`,style:{color:o},children:a.name}),(0,R.jsx)(`span`,{"aria-hidden":`true`,className:`text-muted`,children:`·`})]})]})}var hl=e=>e===`active`?`thinking`:e===`failed`?`failed`:e===`done`?`done`:`idle`;function gl({step:e,from:t,to:n,live:r}){let i=N(n),a=A(n),o=r?`thinking`:e.status===`fail`?`failed`:e.status===`ok`?`done`:`idle`,s=[...e.children??[]].reverse().find(e=>e.status===`running`)?.orb??(e.orb===`handing`?void 0:e.orb);return(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,R.jsx)(ne,{agent:t,px:24,activity:r?`handing`:void 0}),(0,R.jsxs)(`span`,{role:`img`,"aria-label":`hands off to`,className:S(`handoff-flow flex-none`,r&&`is-live`),style:{color:a},children:[(0,R.jsx)(`span`,{}),(0,R.jsx)(`span`,{}),(0,R.jsx)(`span`,{})]}),(0,R.jsx)(ne,{agent:n,px:28,decorative:!0,state:o,activity:r?O(s):void 0,className:`handoff-in`}),(0,R.jsx)(`span`,{className:`font-medium`,style:{color:a},children:i.name}),!e.handoff&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`span`,{"aria-hidden":`true`,className:`text-muted`,children:`·`}),(0,R.jsx)(`span`,{className:S(`[overflow-wrap:anywhere]`,r?`text-ink`:`text-ink-2`),children:e.label})]}),e.arg&&(0,R.jsx)(ul,{text:e.arg})]})}function _l({step:e,working:t,from:n=ce}){let r=e.agent||n,i=vl(e),a=tl(e,t),[o,s]=(0,L.useState)(null),c=o??((!!e.handoff||!!e.agent||!!e.shell||e.key.startsWith(`try:`))&&a===`active`),l=(0,R.jsxs)(R.Fragment,{children:[e.handoff||r!==n?(0,R.jsx)(el,{status:a,orb:e.orb,px:14,spin:!0}):!e.icon&&(0,R.jsx)(ol,{status:a}),e.handoff||r!==n?(0,R.jsx)(gl,{step:e,from:n,to:e.handoff?.agent??r,live:a===`active`}):(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1`,children:[e.icon?(0,R.jsx)(al,{kind:e.icon,status:a}):(0,R.jsx)(ml,{agent:r,named:!1,working:a===`active`,state:hl(a),orb:e.orb}),(0,R.jsx)(`span`,{className:S(`[overflow-wrap:anywhere]`,a===`active`?`text-ink`:`text-ink-2`),children:e.label}),e.arg&&(0,R.jsx)(ul,{text:e.arg}),e.change&&(0,R.jsxs)(`span`,{className:`font-mono text-body-sm tabular-nums`,children:[(0,R.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.change.added]}),` `,(0,R.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.change.removed]})]})]}),i&&(0,R.jsx)(tt,{size:14,"aria-hidden":`true`,className:S(`mt-1 ml-auto flex-none text-muted transition-transform`,c&&`rotate-180`)})]});return(0,R.jsxs)(`li`,{className:`flex flex-col`,children:[i?(0,R.jsx)(`button`,{type:`button`,"aria-expanded":c,onClick:()=>s(!c),className:S(u,`min-h-8 items-start gap-2 px-2 py-2`),children:l}):(0,R.jsx)(`div`,{className:`flex min-h-8 items-start gap-2 px-2 py-2 text-body-sm`,children:l}),i&&(0,R.jsx)(cr,{open:c,children:(0,R.jsx)(yl,{step:e,working:t,from:n,className:`mb-1 ml-4`})})]})}var vl=e=>e.lines.length>0||(e.children?.length??0)>0||!!e.handoff?.result||!!e.change||!!e.output||!!e.command||!!e.review;function yl({step:e,working:t,from:n,className:r}){let i=e.children||[],a=e.handoff?.agent||e.agent;return(0,R.jsxs)(`div`,{className:S(`flex flex-col gap-2 border-l border-dotted py-1 pl-4`,r),style:{borderColor:a?`${N(a).hue}59`:`var(--color-line-strong)`},children:[(e.output||e.command)&&(0,R.jsx)(cl,{step:e,failed:e.status===`fail`}),e.review&&(0,R.jsx)(Qc,{review:e.review}),e.lines.length>0&&(0,R.jsx)(pl,{step:e}),e.change&&(0,R.jsx)(ni,{diff:e.change.diff}),i.length>0&&(0,R.jsx)(`ul`,{"aria-label":a?`What ${ge(N(a).name)} did`:`Steps`,className:`m-0 flex list-none flex-col p-0`,children:i.map(e=>(0,R.jsx)(_l,{step:e,working:t,from:a||n},e.key))}),e.handoff?.result&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-1 text-body-sm`,children:[(0,R.jsxs)(`span`,{className:`text-muted`,children:[ge(N(e.handoff.agent).name,!0),` answered`]}),(0,R.jsx)(ti,{text:e.handoff.result.length>1200?`${e.handoff.result.slice(0,1199)}…`:e.handoff.result,className:`text-body-sm text-ink-2 [&_p]:my-0`})]})]})}function bl({node:e,last:t,working:n,now:r,orbed:i}){let a=e.step?[]:e.steps,o=e.step,s=a.length>0||!!r||!!o&&vl(o),[c,l]=(0,L.useState)(null),d=c??(e.status===`active`||e.status===`failed`),f=o?.orb??a.findLast(e=>e.status===`running`)?.orb??r?.orb??`thinking`;return(0,R.jsxs)(`li`,{className:`flex gap-4`,children:[(0,R.jsxs)(`div`,{className:`flex flex-none flex-col items-center`,children:[(0,R.jsx)(`span`,{className:`mt-1`,children:(0,R.jsx)(el,{status:e.status,orb:f,px:16,spin:!i})}),!t&&(0,R.jsx)(`span`,{"aria-hidden":`true`,className:S(`mt-2 min-h-4 w-0 flex-1 border-l border-dotted`,$c[e.status])})]}),(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col pb-2`,children:[s?(0,R.jsxs)(`button`,{type:`button`,"aria-expanded":d,onClick:()=>l(!d),className:S(u,`min-h-7 items-start gap-2 p-0`),children:[(0,R.jsx)(xl,{node:e,orb:f}),(0,R.jsx)(tt,{size:14,"aria-hidden":`true`,className:S(`mt-1 flex-none text-muted transition-transform`,d&&`rotate-180`)}),e.status===`active`&&(0,R.jsx)(Be,{tone:`running`,icon:!1,className:`mt-1 ml-1 flex-none`,children:`In progress`})]}):(0,R.jsx)(`div`,{className:`min-h-7`,children:(0,R.jsx)(xl,{node:e,orb:f})}),s&&(0,R.jsx)(cr,{open:d,className:`mt-1`,children:o?(0,R.jsx)(yl,{step:o,working:n,from:`forgeqe`,className:`mt-1`}):(0,R.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:[a.map(e=>(0,R.jsx)(_l,{step:e,working:n},e.key)),r&&(0,R.jsx)(`li`,{children:(0,R.jsx)(wl,{live:r,className:`px-2`})})]})})]})]})}function xl({node:e,orb:t}){let n=e.status===`active`?`text-ink`:e.status===`pending`||e.status===`skipped`?`text-muted`:e.status===`failed`?`text-fail`:`text-ink-2`,r=e.step;return r?.handoff||r?.agent&&r.agent!==`forgeqe`?(0,R.jsx)(gl,{step:r,from:ce,to:r.handoff?.agent??r.agent,live:e.status===`active`}):(0,R.jsxs)(`span`,{className:S(`flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 text-body-sm font-medium`,n,e.status===`skipped`&&`line-through`),children:[r&&(0,R.jsx)(ml,{agent:r.agent||`forgeqe`,named:!!r.agent&&r.agent!==`forgeqe`,working:e.status===`active`,state:hl(e.status),orb:t}),e.status===`active`?(0,R.jsx)(`span`,{className:`shimmer [overflow-wrap:anywhere]`,children:(0,R.jsx)(`span`,{children:e.label})}):(0,R.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.label}),r?.arg&&(0,R.jsx)(ul,{text:r.arg})]})}var Sl={info:`text-ink-2`,ok:`text-ink-2`,fail:`text-fail`,warn:`text-warn`,dim:`text-muted`,say:`text-ink-2`,you:`text-accent-fg`,think:`text-muted italic`};function Cl(e){let[t,n]=(0,L.useState)(()=>Date.now());(0,L.useEffect)(()=>{let e=Zn(()=>n(Date.now()),1e3);return()=>qn(e)},[]);let r=e?Date.parse(e):NaN;if(Number.isNaN(r))return``;let i=Math.max(0,Math.round((t-r)/1e3));return i<2?`just now`:i<60?Gr(i,`second`):Gr(Math.floor(i/60),`minute`)}function wl({live:e,orb:t=!1,className:n}){let r=Cl(e.latest?.at);return(0,R.jsxs)(`div`,{className:S(`flex min-h-8 items-start gap-2 py-1`,n),children:[(0,R.jsx)(`span`,{className:`mt-1 flex size-4 flex-none items-center justify-center`,children:t?(0,R.jsx)(Ke,{state:e.orb,px:20,label:`At work`}):(0,R.jsxs)(`span`,{"aria-hidden":`true`,className:`relative flex size-2`,children:[(0,R.jsx)(`span`,{className:`absolute inline-flex size-full animate-ping rounded-full bg-accent opacity-60 motion-reduce:animate-none`}),(0,R.jsx)(`span`,{className:`relative inline-flex size-2 rounded-full bg-accent`})]})}),(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`shimmer text-body-sm font-medium text-muted`,children:(0,R.jsx)(`span`,{"aria-live":`polite`,children:e.text})}),e.latest&&(0,R.jsxs)(`button`,{type:`button`,onClick:e.onLog,"data-tip":`Open the activity log`,className:S(`flex w-full min-h-11 cursor-pointer items-center gap-4 rounded-base border-0 bg-transparent px-4 py-2 text-left text-body-sm text-ink no-underline transition-colors duration-150 hover:bg-tint hover:text-ink aria-[current]:bg-tint-hover aria-selected:bg-tint-hover aria-pressed:bg-tint-hover aria-checked:bg-tint-hover has-[:checked]:bg-tint-hover disabled:cursor-not-allowed disabled:opacity-50`,`min-h-0 min-w-0 items-baseline gap-2 p-0`),children:[(0,R.jsx)(`span`,{className:S(`min-w-0 truncate font-mono text-body-sm`,Sl[e.latest.tone]),children:e.latest.plain}),(0,R.jsxs)(`span`,{className:`flex-none text-body-sm whitespace-nowrap text-muted tabular-nums`,children:[r,r&&` · `,e.events,` `,e.events===1?`event`:`events`]})]})]})]})}function Tl({turn:e,working:t,live:n,folded:r=!1}){if(r)return(0,R.jsx)(wl,{live:n,orb:!0});let i=dr(e,t),a=e.plan.length>0&&t?i.find(e=>e.status===`active`)??null:null,o=t&&!a?[{key:`now`,label:n.text,status:`active`,steps:[]}]:[],s=[...i,...o],c=i.findLast(e=>e.status===`active`);return(0,R.jsx)(`ol`,{"aria-label":`What ForgeQE did`,className:`m-0 flex list-none flex-col p-0 pt-1`,children:s.map((e,r)=>e.key===`now`?(0,R.jsx)(`li`,{className:`flex gap-4`,children:(0,R.jsx)(wl,{live:n,orb:!c,className:`-mt-1 min-w-0 flex-1 py-0`})},`now`):(0,R.jsx)(bl,{node:e,last:r===s.length-1,working:t,now:a===e?n:void 0,orbed:c===e},e.key))})}var El={passed:`Passed`,failed:`Failed`,stopped:`Stopped`,blocked:`Blocked`};function Dl({label:e,children:t}){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`dt`,{className:`text-body-sm text-muted sm:pt-1`,children:e}),(0,R.jsx)(`dd`,{className:`m-0 min-w-0 text-body-sm [overflow-wrap:anywhere]`,children:t})]})}function Ol({text:e}){return(0,R.jsxs)(`span`,{role:`figure`,"aria-label":`Command`,className:`flex min-w-0 items-start gap-2`,children:[(0,R.jsx)(`span`,{"aria-hidden":`true`,className:`flex-none font-mono text-label-md leading-6 font-normal text-muted select-none`,children:`$`}),(0,R.jsx)(`code`,{className:`min-w-0 flex-1 font-mono text-label-md leading-6 font-normal whitespace-pre-wrap text-ink-2 [overflow-wrap:anywhere]`,children:e}),(0,R.jsx)(ri,{text:e,label:`Copy the command`})]})}function kl(e){if(e.runs===void 0)return e.attempts===void 0?``:x(e.attempts,`attempt`);let t=`${x(e.runs,`test run`)}${e.failedRuns?` (${e.failedRuns} failed)`:``}`;return e.reviews?`${t} · ${x(e.reviews,`review`)}`:t}function Al({name:e}){let t=e.lastIndexOf(`.`),n=t>0?e.slice(t+1):e,r=t>0?e.slice(0,t):``;return(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-col`,"data-tip":e,children:[(0,R.jsx)(`span`,{className:`font-mono text-label-md font-normal text-ink [overflow-wrap:anywhere]`,children:n}),r&&(0,R.jsx)(`span`,{className:`font-mono text-label-md font-normal text-muted [overflow-wrap:anywhere]`,children:r})]})}function jl({t:e}){let t=kl(e);return(0,R.jsxs)(`div`,{className:`flex flex-col gap-2 border-l-2 border-line-strong pl-4`,children:[(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,R.jsx)(wt,{size:16,strokeWidth:2,"aria-hidden":`true`,className:e.ok?`text-pass`:e.status===`stopped`?`text-muted`:`text-fail`}),(0,R.jsx)(`span`,{className:`text-body-md font-medium`,children:e.ok?`Test written`:`Test not finished`}),(0,R.jsx)(Be,{tone:e.ok?`pass`:e.status===`stopped`?`neutral`:`fail`,children:El[e.status]||e.status||`Not written`}),t&&(0,R.jsx)(`span`,{className:`ml-auto text-body-sm text-muted tabular-nums`,children:t})]}),(0,R.jsxs)(`dl`,{className:`m-0 grid grid-cols-1 gap-x-4 gap-y-1 sm:grid-cols-[88px_minmax(0,1fr)] sm:gap-y-2`,children:[(e.testFile||e.testName)&&(0,R.jsx)(Dl,{label:`Test`,children:(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-1`,children:[e.testFile&&(0,R.jsx)($r,{path:e.testFile}),e.testName&&(0,R.jsx)(Al,{name:e.testName})]})}),e.command&&(0,R.jsx)(Dl,{label:`Run it`,children:(0,R.jsx)(Ol,{text:e.command})}),e.review&&(0,R.jsx)(Dl,{label:e.review.approved?`Review`:`Review asked`,children:(0,R.jsx)(Qc,{review:e.review})}),e.runDir&&(0,R.jsx)(Dl,{label:`From the run`,children:(0,R.jsx)($r,{path:e.runDir})}),e.reused.length>0&&(0,R.jsx)(Dl,{label:`Reused`,children:(0,R.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0`,children:e.reused.map(e=>(0,R.jsx)(`li`,{className:`min-w-0`,children:(0,R.jsx)($r,{path:e})},e))})})]}),e.error&&(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-fail [overflow-wrap:anywhere]`,children:e.error})]})}function Ml({c:e}){let[t,n]=(0,L.useState)(!1);return(0,R.jsxs)(`li`,{className:`flex flex-col`,children:[(0,R.jsxs)(`div`,{className:`flex min-h-9 items-center gap-2`,children:[(0,R.jsx)(I,{variant:`icon`,size:`icon-xs`,"aria-expanded":t,"aria-label":`${t?`Hide`:`Show`} the changes to ${e.path}`,"data-tip":`${t?`Hide`:`Show`} the changes to ${e.path}`,onClick:()=>n(!t),className:`flex-none`,children:(0,R.jsx)(tt,{size:15,"aria-hidden":`true`,className:S(`transition-transform`,!t&&`-rotate-90`)})}),(0,R.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:(0,R.jsx)($r,{path:e.path})}),(0,R.jsxs)(`span`,{className:`flex-none font-mono text-body-sm tabular-nums`,children:[(0,R.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,R.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})]}),(0,R.jsx)(cr,{open:t,children:(0,R.jsx)(ni,{diff:e.diff,className:`mb-2 ml-10`})})]})}function Nl({turn:e}){let t=e.reports.filter((e,t,n)=>n.findIndex(t=>t.path===e.path)===t),n=new Set(e.changes.map(e=>e.path)),r=[...new Set(e.tests.flatMap(e=>e.changed))].filter(e=>!n.has(e)&&![...n].some(t=>t.endsWith(e)||e.endsWith(t)));return!e.tests.length&&!t.length&&!e.changes.length&&!r.length?null:(0,R.jsxs)(`section`,{"aria-label":`Result`,className:`flex flex-col gap-4 pt-4`,children:[e.tests.map((e,t)=>(0,R.jsx)(jl,{t:e},t)),t.length>0&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`text-body-sm font-medium`,children:`Reports`}),(0,R.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0 text-body-sm`,children:t.map(e=>(0,R.jsxs)(`li`,{className:`flex flex-wrap items-baseline gap-2`,children:[(0,R.jsx)(`span`,{className:`text-ink-2`,children:e.label}),(0,R.jsx)($r,{path:e.path})]},e.path))})]}),(e.changes.length>0||r.length>0)&&(0,R.jsxs)(`div`,{className:S(`flex flex-col gap-1`,(e.tests.length>0||t.length>0)&&`pt-4`),children:[(0,R.jsxs)(`span`,{className:`flex items-center gap-2 text-body-sm font-medium`,children:[(0,R.jsx)(sn,{size:15,"aria-hidden":`true`,className:`text-muted`}),`Files changed`,(0,R.jsxs)(`span`,{className:`font-normal text-muted`,children:[x(e.changes.length+r.length,`file`),e.changes.length>0&&(0,R.jsxs)(R.Fragment,{children:[` · `,(0,R.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.changes.reduce((e,t)=>e+t.added,0)]}),` `,(0,R.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.changes.reduce((e,t)=>e+t.removed,0)]})]})]})]}),(0,R.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:[e.changes.map(e=>(0,R.jsx)(Ml,{c:e},e.path)),r.map(e=>(0,R.jsx)(`li`,{className:`flex min-h-9 items-center gap-2 pl-10`,children:(0,R.jsx)($r,{path:e})},e))]})]})]})}var Pl=/^\s*(?:[-*>]\s*)?(?:\*\*|__)?\s*(?:sources?|evidence|references?|refs?)\s*(?:\*\*|__)?\s*:/i;function Fl(e){let t=[],n=[],r=!1;for(let i of e.split(`
41
+ `))/^\s*(```|~~~)/.test(i)&&(r=!r),!r&&Pl.test(i)?n.push(i.trim()):t.push(i);return{body:t.join(`
42
+ `).replace(/\n{3,}/g,`
43
+
44
+ `).trimEnd(),sources:n.join(`
45
+
46
+ `)}}var Il=1.5;function Ll(e,t){if(e>=t)return t;let n=t-e;return Math.min(t,e+Math.max(Il,n/45))}function Rl(e,t){return Math.min(Math.floor(t),e.length)}var zl=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function G(e,t){let n=(0,L.useRef)(t);t&&(n.current=!0);let r=n.current&&!zl(),[i,a]=(0,L.useState)(()=>r?0:e.length),o=(0,L.useRef)(i),s=(0,L.useRef)(e);s.current!==e&&(o.current=Rl(e,o.current),s.current=e),r||(o.current=e.length),(0,L.useEffect)(()=>{if(!r||o.current>=e.length){a(o.current);return}let t=0,n=()=>{o.current=Ll(o.current,e.length),a(o.current),o.current<e.length&&(t=requestAnimationFrame(n))};return t=requestAnimationFrame(n),()=>cancelAnimationFrame(t)},[e,r]);let c=Math.min(Math.floor(r?i:e.length),e.length);return{shown:e.slice(0,c),typing:c<e.length}}var K={info:`text-ink-2`,ok:`text-ink-2`,fail:`text-fail`,warn:`text-warn`,dim:`text-muted`,say:`text-ink`,you:`text-accent-fg`,think:`text-muted italic`};function q({at:e}){let t=Un(e),[n,r]=t?[t.slice(0,t.lastIndexOf(` `)),t.slice(t.lastIndexOf(` `)+1)]:[``,``];return(0,R.jsxs)(`time`,{dateTime:e,className:`w-28 flex-none text-body-sm whitespace-nowrap tabular-nums`,children:[(0,R.jsx)(`span`,{className:`text-muted/70`,children:n}),` `,(0,R.jsx)(`span`,{className:`text-muted`,children:r})]})}function J({line:e}){let[t,n]=(0,L.useState)(!1),r=e.plain.length>160;return e.kind===`head`?(0,R.jsxs)(`li`,{className:`mt-4 flex items-baseline gap-4 border-b border-line-soft pb-1 first:mt-0`,children:[(0,R.jsx)(q,{at:e.at}),(0,R.jsx)(ti,{text:e.md,className:S(`min-w-0 text-body-sm font-medium text-ink [&_p]:my-0`,Qr)})]}):(0,R.jsxs)(`li`,{className:S(`flex items-baseline gap-4 py-1`,e.kind===`sub`&&`pl-4`),children:[(0,R.jsx)(q,{at:e.at}),e.kind===`out`?(0,R.jsx)(`pre`,{className:`m-0 min-w-0 flex-1 font-mono text-body-sm leading-relaxed whitespace-pre-wrap text-ink-2 [overflow-wrap:anywhere]`,children:(0,R.jsx)(Ue,{text:e.plain})}):(0,R.jsx)(`button`,{type:`button`,disabled:!r,"aria-expanded":r?t:void 0,onClick:()=>n(!t),"data-tip":r&&!t?`Show all of it`:void 0,className:S(`min-w-0 flex-1 border-0 bg-transparent p-0 text-left`,r&&`cursor-pointer`),children:(0,R.jsx)(ti,{text:e.md,className:S(`text-body-sm leading-relaxed [overflow-wrap:anywhere] [&_code]:text-body-sm [&_p]:my-0`,Qr,K[e.tone],r&&!t&&`line-clamp-2`)})})]})}function Y({lines:e,live:t,name:n,timeline:r=!1}){let i=(0,L.useRef)(null),a=(0,L.useRef)(!0),[o,s]=(0,L.useState)(!1),c=(0,L.useMemo)(()=>or(e),[e]);return(0,L.useEffect)(()=>{a.current&&i.current&&(i.current.scrollTop=i.current.scrollHeight)},[c]),(0,R.jsxs)(`div`,{className:`overflow-hidden`,children:[(0,R.jsxs)(`div`,{className:`flex min-h-9 items-center gap-1 border-b border-line-soft text-body-sm text-muted`,children:[(0,R.jsxs)(`span`,{className:`flex-1`,children:[e.length,` event`,e.length===1?``:`s`,t&&` · live`]}),(0,R.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":o?`Copied`:`Copy the activity log as Markdown`,"data-tip":o?`Copied`:`Copy the activity log as Markdown`,onClick:async()=>{try{await navigator.clipboard.writeText(c),s(!0),setTimeout(()=>s(!1),1500)}catch{}},children:o?(0,R.jsx)(En,{size:14,"aria-hidden":`true`,className:`text-pass`}):(0,R.jsx)(kt,{size:14,"aria-hidden":`true`})}),(0,R.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Download the activity log as a Markdown file`,"data-tip":`Download the activity log as a Markdown file`,onClick:()=>{let e=URL.createObjectURL(new Blob([c],{type:`text/markdown;charset=utf-8`})),t=document.createElement(`a`);t.href=e,t.download=n,t.click(),setTimeout(()=>URL.revokeObjectURL(e),1e3)},children:(0,R.jsx)(F,{icon:_n,size:14})})]}),(0,R.jsx)(`div`,{ref:i,role:`log`,"aria-label":`Activity log`,onScroll:e=>{let t=e.currentTarget;a.current=t.scrollTop+t.clientHeight>=t.scrollHeight-24},className:S(`overflow-y-auto py-2`,r?`max-h-[calc(var(--screen)-260px)] min-h-[320px]`:`max-h-[360px] border-b border-line-soft`),children:(0,R.jsx)(`ol`,{className:`m-0 flex list-none flex-col p-0`,children:e.map((e,t)=>(0,R.jsx)(J,{line:e},t))})})]})}function Bl({ask:e,live:t,onAnswer:n}){let r=t&&e.answer===void 0;return(0,R.jsxs)(`div`,{className:S(`flex flex-col gap-4`,r?P.info:`py-1`),children:[(0,R.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,R.jsx)(pn,{size:18,"aria-hidden":`true`,className:`mt-1 flex-none text-icon`}),(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`font-medium`,children:e.title}),e.detail&&(0,R.jsx)(`span`,{className:`text-body-sm text-ink-2`,children:e.detail}),e.lines.map((e,t)=>(0,R.jsx)(`span`,{className:`text-body-sm text-ink-2 [overflow-wrap:anywhere]`,children:e},t))]})]}),r?(0,R.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[e.options.map(e=>(0,R.jsx)(I,{size:`sm`,onClick:()=>n(e.id),children:e.label},e.id)),!e.options.some(e=>e.id===`cancel`||e.label.trim().toLowerCase()===`cancel`)&&(0,R.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>n(null),children:[(0,R.jsx)(St,{"aria-hidden":`true`}),`Cancel`]})]}):(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:e.answer===void 0?`Not answered`:`You chose: ${e.answer}`})]})}function Vl({wait:e,live:t,onProceed:n}){let r=t&&e.answer===void 0;return(0,R.jsxs)(`div`,{className:S(`flex flex-col gap-4`,r?P.info:`py-1`),children:[(0,R.jsxs)(`span`,{className:`flex items-start gap-2`,children:[(0,R.jsx)(dt,{size:18,"aria-hidden":`true`,className:`mt-1 flex-none text-icon`}),(0,R.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.prompt})]}),r?(0,R.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,R.jsxs)(I,{size:`sm`,variant:`primary`,"data-tip":`Done, continue`,onClick:()=>n(!0),children:[(0,R.jsx)(ln,{"aria-hidden":`true`}),`Continue`]}),(0,R.jsxs)(I,{size:`sm`,onClick:()=>n(!1),children:[(0,R.jsx)(St,{"aria-hidden":`true`}),`Cancel`]})]}):(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:e.answer===void 0?`Not done`:e.answer?`You continued`:`You cancelled`})]})}function Hl(e,t){let[n,r]=(0,L.useState)(!1),i=(0,L.useRef)(t);return(0,L.useEffect)(()=>{let n=t>i.current;if(i.current=t,!e||!n)return void(e||r(!1));r(!0);let a=setTimeout(()=>r(!1),900);return()=>clearTimeout(a)},[e,t]),n}function Ul({started:e}){let[t,n]=(0,L.useState)(()=>Date.now());(0,L.useEffect)(()=>{let e=Zn(()=>n(Date.now()),1e3);return()=>qn(e)},[]);let r=mr(e,t),i=new Date(t).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),a=e&&!Number.isNaN(Date.parse(e))?new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`,second:`2-digit`}):``;return(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-body-sm whitespace-nowrap text-muted tabular-nums`,"data-tip":a?`Started at ${a}`:void 0,children:[r&&(0,R.jsxs)(`span`,{"aria-label":`Elapsed ${r}`,children:[r,` elapsed`]}),r&&(0,R.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,R.jsx)(`time`,{dateTime:new Date(t).toISOString(),"aria-label":`Time now ${i}`,children:i})]})}function Wl({turn:e,live:t,onAnswer:n,onProceed:r}){let i=t&&!e.outcome,[a,o]=(0,L.useState)(null),s=a??i,c=br(e),l=i?c.text:zn(e),u=e.parts.map(e=>Vn(e.text)).filter(Boolean),d=G(e.outcome&&e.reply?e.reply:u.join(`
47
+
48
+ `),i),f=(0,L.useMemo)(()=>Fl(d.shown),[d.shown]),p=Hl(i,u.reduce((e,t)=>e+t.length,0)),m=d.typing||p,[h,g]=(0,L.useState)(!1),_=e.log.findLast(e=>e.tone!==`you`&&e.tone!==`say`);return(0,R.jsxs)(`div`,{className:`flex gap-4`,children:[(0,R.jsx)(`div`,{className:`size-9 flex-none`,"aria-hidden":`true`,children:(0,R.jsx)(ne,{agent:`forgeqe`,px:34,working:i,state:m?`speaking`:i?`thinking`:e.outcome===`done`?`done`:e.outcome===`failed`?`failed`:`idle`,activity:i&&!m?O(br(e).orb):void 0,className:`mt-1`})}),(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-4 pt-2`,children:[(e.steps.length>0||i||e.log.length>0)&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-1`,children:[(0,R.jsxs)(`button`,{type:`button`,"aria-expanded":s,disabled:!e.steps.length&&!e.plan.length,onClick:()=>o(!s),className:S(`flex cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-body-sm font-medium text-muted hover:text-ink disabled:cursor-default`,i&&`shimmer`),children:[(0,R.jsx)(`span`,{"aria-live":`polite`,children:l}),(e.steps.length>0||e.plan.length>0)&&(0,R.jsx)(tt,{size:16,"aria-hidden":`true`,className:S(`transition-transform`,s&&`rotate-180`)})]}),i&&(0,R.jsx)(Ul,{started:e.started||e.log[0]?.at}),e.log.length>0&&(0,R.jsxs)(I,{variant:`ghost`,size:`sm`,"aria-expanded":h,onClick:()=>g(!h),className:`ml-auto`,children:[(0,R.jsx)(F,{icon:mn,size:14}),`Activity log`,(0,R.jsx)(`span`,{className:`tabular-nums`,children:e.log.length})]})]}),(0,R.jsx)(cr,{open:(s||i)&&(e.steps.length>0||e.plan.length>0||i),children:(0,R.jsx)(Tl,{turn:e,working:i,folded:!s,live:{...c,latest:_,events:e.log.length,onLog:()=>g(!0)}})}),(0,R.jsx)(cr,{open:h,children:(0,R.jsx)(Y,{lines:e.log,live:i,name:`forgeqe-activity-${e.id}.md`})})]}),e.asks.map(e=>(0,R.jsx)(Bl,{ask:e,live:i,onAnswer:t=>n(e.id,t)},e.id)),e.waits.map(e=>(0,R.jsx)(Vl,{wait:e,live:i,onProceed:t=>r(e.id,t)},e.id)),f.body&&(0,R.jsx)(ti,{text:f.body,className:S(`text-body-md leading-[1.7] [&_li]:my-2 [&_p]:my-4`,(d.typing||i)&&`typing-caret`)}),f.sources&&!d.typing&&!i&&(0,R.jsx)(Zc,{title:`Sources`,children:(0,R.jsx)(ti,{text:f.sources,className:`text-muted`})}),(0,R.jsx)(Nl,{turn:e}),e.error&&(0,R.jsx)(`p`,{role:`alert`,className:S(P.fail,`m-0`),children:e.error}),e.outcome===`stopped`&&!e.reply&&(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Stopped.`}),e.outcome&&e.spent&&(0,R.jsx)(Gl,{spent:e.spent})]})]})}function Gl({spent:e}){let t=e.input+e.output>0,n=[t?`${Br(e.input)} in → ${Br(e.output)} out`:``,e.ms===void 0?``:ir(e.ms),e.premium===void 0?``:Hr(e.premium)].filter(Boolean);if(!n.length)return null;let r=[t?`${e.input.toLocaleString()} tokens read${e.cached?`, ${e.cached.toLocaleString()} of them from the cache`:``}; ${e.output.toLocaleString()} written.`:``,e.premium===void 0?e.copilot?`GitHub Copilot bills premium requests; how many is not known, as the seat's model list did not name this model.`:``:`GitHub Copilot bills premium requests: one a model call, times the model's multiplier on your seat.`].filter(Boolean).join(` `);return(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted tabular-nums`,"data-tip":r||void 0,children:n.join(` · `)})}var Kl=[{id:`runs`,label:`Runs`,icon:vt,href:s(`runs`)},{id:`reports`,label:`Execution reports`,icon:an,href:s(`reports`)},{id:`reports-project`,label:`Project report`,icon:mn,href:s(`reports`,`project`)},{id:`run-diff`,label:`Run diff`,icon:sn,href:s(`run-diff`)},{id:`flaky`,label:`Flaky tests`,icon:An,href:s(`flaky`)}],ql=[{id:`evidence-contracts`,label:`Contracts`,icon:Cn,href:s(`evidence-contracts`)},{id:`evidence-releases`,label:`Releases`,icon:Et,href:s(`evidence-releases`)},{id:`evidence-learn`,label:`Learn`,icon:bn,href:s(`evidence-learn`)},{id:`evidence-monitor`,label:`Monitor`,icon:In,href:s(`evidence-monitor`)}],Jl={execution:`Execution`,report:`Report`,coding:`Coding`,chat:`Chat`},Yl={execution:wt,report:zt,coding:it,chat:on};function Xl({kind:e}){let t=Yl[e];return(0,R.jsx)(F,{icon:t,size:14,className:`flex-none text-muted`})}var Zl={passed:{label:`Passed`,tone:`pass`},failed:{label:`Failed`,tone:`fail`},error:{label:`Error`,tone:`fail`},skipped:{label:`Skipped`,tone:`neutral`},stopped:{label:`Stopped`,tone:`neutral`},blocked:{label:`Blocked`,tone:`warn`}},Ql=e=>Zl[e]||{label:e?e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g,` `):`–`,tone:`neutral`},$l={suite:`Suite`,monitor:`Monitor round`,run:`Browser run`,explore:`Exploration`,api:`API run`,desktop:`Desktop run`,mobile:`App run`},eu=e=>{if(!e)return``;let t=Math.round(e/1e3);return t<60?`${t}s`:`${Math.floor(t/60)}m ${t%60}s`};function tu({title:e,icon:t,children:n,aside:r,className:i}){return(0,R.jsx)(Ko,{level:3,icon:t,title:e,actions:r,className:S(`pt-6`,i),children:n})}function nu({path:e,label:t=`Report`}){let[n,r]=(0,L.useState)(``);return(0,R.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-2`,children:[(0,R.jsxs)(I,{"data-tip":`Open the report`,onClick:async()=>r(await Ge(e)),children:[(0,R.jsx)(an,{"aria-hidden":`true`}),t]}),n&&(0,R.jsx)(`span`,{className:`text-body-sm text-fail`,children:n})]})}function ru({items:e,first:t,render:n}){let[r,i]=(0,L.useState)(!1);return(0,R.jsxs)(R.Fragment,{children:[(r?e:e.slice(0,t)).map(n),e.length>t&&(0,R.jsxs)(I,{variant:`link`,size:`inline`,"aria-expanded":r,onClick:()=>i(!r),className:`min-h-8 gap-1 self-start`,children:[r?(0,R.jsx)(tn,{"aria-hidden":`true`}):(0,R.jsx)(tt,{"aria-hidden":`true`}),r?`Less`:`All (${e.length})`]})]})}function iu({c:e}){if(!e.total)return null;let t=t=>`${t/e.total*100}%`;return(0,R.jsxs)(`div`,{role:`img`,"aria-label":`${e.passed} passed, ${e.failed} failed, ${e.other} other, of ${e.total}`,className:`flex h-2 overflow-hidden rounded-full bg-surface-strong`,children:[(0,R.jsx)(`div`,{className:`bg-pass transition-[width] duration-200 ease-out`,style:{width:t(e.passed)}}),(0,R.jsx)(`div`,{className:`bg-fail transition-[width] duration-200 ease-out`,style:{width:t(e.failed)}}),(0,R.jsx)(`div`,{className:`bg-warn transition-[width] duration-200 ease-out`,style:{width:t(e.other)}})]})}function au({e}){let t=e.counts.total?Math.round(e.counts.passed/e.counts.total*100):0;return(0,R.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4 first:pt-0`,children:[(0,R.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-4 gap-y-2`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.title}),(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:[$l[e.scope]||e.scope,eu(e.ms),e.tokens?`${Rn(e.tokens)} tokens`:``,e.stopped?`stopped early`:``].filter(Boolean).join(` · `)})]}),e.report&&(0,R.jsx)(nu,{path:e.report})]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-body-sm`,children:[(0,R.jsxs)(`span`,{className:`text-headline-sm tabular-nums`,children:[t,`%`]}),(0,R.jsx)(`span`,{className:`text-muted`,children:`passed`}),(0,R.jsxs)(Be,{tone:`pass`,children:[e.counts.passed,` passed`]}),e.counts.failed>0&&(0,R.jsxs)(Be,{tone:`fail`,children:[e.counts.failed,` failed`]}),e.counts.other>0&&(0,R.jsxs)(Be,{tone:`warn`,children:[e.counts.other,` other`]}),(0,R.jsxs)(`span`,{className:`text-muted`,children:[`of `,e.counts.total]})]}),(0,R.jsx)(iu,{c:e.counts}),e.cases.length>0&&(0,R.jsx)(`ul`,{"aria-label":`Cases of ${e.title}`,className:`m-0 flex list-none flex-col p-0`,children:(0,R.jsx)(ru,{items:e.cases.toSorted((e,t)=>Number(Ql(t.status).tone===`fail`)-Number(Ql(e.status).tone===`fail`)),first:6,render:(e,t)=>(0,R.jsxs)(`li`,{className:`flex min-w-0 items-start gap-4 border-t border-line-soft py-2 text-body-sm`,children:[(0,R.jsx)(`span`,{className:`w-[76px] flex-none`,children:(0,R.jsx)(Be,{tone:Ql(e.status).tone,children:Ql(e.status).label})}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,R.jsxs)(`span`,{className:`[overflow-wrap:anywhere]`,children:[e.id&&(0,R.jsx)(`span`,{className:`mr-2 font-mono text-body-sm text-muted`,children:e.id}),e.title,e.device&&(0,R.jsxs)(`span`,{className:`text-muted`,children:[` · `,e.device]})]}),e.summary&&(0,R.jsx)(`span`,{className:`line-clamp-2 text-body-sm text-muted`,children:e.summary})]}),(0,R.jsx)(`span`,{className:`flex-none text-body-sm text-muted tabular-nums`,children:eu(e.ms)})]},`${e.id}-${t}`)})}),e.folder&&!e.report&&(0,R.jsxs)(`span`,{className:`text-body-sm`,children:[`Kept in `,(0,R.jsx)($r,{path:e.folder})]})]})}function ou({list:e,className:t}){let n=e.reduce((e,t)=>({total:e.total+t.counts.total,passed:e.passed+t.counts.passed,failed:e.failed+t.counts.failed}),{total:0,passed:0,failed:0});return(0,R.jsx)(tu,{...t?{className:t}:{},title:`Execution summary`,icon:wt,aside:e.length>1?(0,R.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[x(e.length,`run`),` · `,n.passed,` of `,n.total,` passed`]}):void 0,children:e.length?e.map((e,t)=>(0,R.jsx)(au,{e},`${e.folder||e.title}-${t}`)):(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`No results found for this run yet: they appear once its report is written.`})})}function su({list:e,className:t}){return(0,R.jsxs)(tu,{...t?{className:t}:{},title:`Report summary`,icon:zt,children:[e.length===0&&(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`No report was written in this run.`}),e.map((e,t)=>(0,R.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4 first:pt-0`,children:[(0,R.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-4 gap-y-2`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.title}),(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:e.builtAt?`Written ${new Date(e.builtAt).toLocaleString([],{dateStyle:`medium`,timeStyle:`short`})}`:e.path?``:`Its page is not there any more`})]}),e.path&&(0,R.jsx)(nu,{path:e.path})]}),e.stats&&(0,R.jsx)(`dl`,{className:`m-0 grid grid-cols-[repeat(auto-fit,minmax(110px,1fr))] gap-2`,children:e.stats.map(e=>(0,R.jsxs)(`div`,{className:`panel rounded-md bg-(--page-surface-strong) p-6`,children:[(0,R.jsx)(`dt`,{className:`text-body-sm text-muted`,children:e.label}),(0,R.jsx)(`dd`,{className:`m-0 text-headline-sm tabular-nums`,children:e.value})]},e.label))}),e.markdown&&(0,R.jsx)(cu,{text:e.markdown})]},`${e.path||e.title}-${t}`))]})}function cu({text:e,height:t=220}){let[n,r]=(0,L.useState)(!1),[i,a]=(0,L.useState)(!0),[o,s]=(0,L.useState)(t),c=(0,L.useRef)(null);return(0,L.useLayoutEffect)(()=>{c.current&&!n&&a(c.current.scrollHeight>t+8)},[e,t,n]),(0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,R.jsxs)(`div`,{ref:c,style:o===void 0?void 0:{maxHeight:o},onTransitionEnd:e=>e.target===e.currentTarget&&n&&s(void 0),className:S(`transition-[max-height] duration-200 ease-out`,o!==void 0&&`relative overflow-hidden`),children:[(0,R.jsx)(ti,{text:e,className:S(`text-body-sm`,Qr)}),!n&&i&&(0,R.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-0 h-12 bg-gradient-to-t from-bg to-transparent`})]}),(n||i)&&(0,R.jsxs)(I,{variant:`link`,size:`inline`,className:`self-start`,type:`button`,"aria-expanded":n,onClick:()=>{let e=c.current?.scrollHeight??t;if(r(!n),b())return s(n?t:void 0);s(e),n&&requestAnimationFrame(()=>requestAnimationFrame(()=>s(t)))},children:[n?(0,R.jsx)(tn,{size:14,"aria-hidden":`true`}):(0,R.jsx)(tt,{size:14,"aria-hidden":`true`}),n?`Less`:`More`]})]})}function lu(e){let t=e.join(`
49
+ `),n=Math.max(2,...(t.match(/`+/g)||[]).map(e=>e.length)),r="`".repeat(n+1);return`${r}diff\n${t}\n${r}`}function uu({e}){let[t,n]=(0,L.useState)(!1),r=e.action===`write`?`New`:`Edited`;return(0,R.jsxs)(`li`,{className:`border-t border-line-soft`,children:[(0,R.jsxs)(`div`,{className:`flex min-h-[44px] min-w-0 items-center gap-2 py-2 text-body-sm`,children:[(0,R.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-expanded":t,"aria-label":`${t?`Hide`:`Show`} the diff of ${e.path}`,"data-tip":`${t?`Hide`:`Show`} the diff of ${e.path}`,disabled:!e.diffs.length,onClick:()=>n(!t),className:`flex-none`,children:(0,R.jsx)(ht,{"aria-hidden":`true`,className:S(`transition-transform duration-200`,t&&`rotate-90`)})}),(0,R.jsx)(`span`,{className:`w-[52px] flex-none text-body-sm text-muted`,children:r}),(0,R.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:(0,R.jsx)($r,{path:e.path})}),(0,R.jsxs)(`span`,{className:`flex-none font-mono text-body-sm tabular-nums`,children:[(0,R.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,R.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})]}),(0,R.jsx)(cr,{open:t,className:`pb-4 pl-10 [&_pre]:max-h-[420px] [&_pre]:overflow-auto`,children:e.diffs.length?(0,R.jsx)(ti,{text:lu(e.diffs),className:Qr}):null})]})}var du={write:`New`,edit:`Edited`,delete:`Deleted`,"test written":`Test`};function fu({label:e,children:t}){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`dt`,{className:`pt-1 text-body-sm text-muted`,children:e}),(0,R.jsx)(`dd`,{className:`m-0 min-w-0 text-body-sm [overflow-wrap:anywhere]`,children:t})]})}function pu({c:e,files:t,className:n}){let r=e.edits.reduce((e,t)=>e+t.added,0),i=e.edits.reduce((e,t)=>e+t.removed,0),a=e.tests.filter(e=>!e.ok).length,o=e.reviews.at(-1),s=e.edits.length?[]:t.filter(e=>e.action&&e.action!==`read`);return(0,R.jsxs)(tu,{...n?{className:n}:{},title:`Code changes`,icon:it,aside:e.edits.length?(0,R.jsxs)(`span`,{className:`font-mono text-body-sm tabular-nums`,children:[x(e.edits.length,`file`),` · `,(0,R.jsxs)(`span`,{className:`text-pass`,children:[`+`,r]}),` `,(0,R.jsxs)(`span`,{className:`text-fail`,children:[`−`,i]})]}):s.length?(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:x(s.length,`file`)}):void 0,children:[e.results.map((t,n)=>{let r=t.status===`passed`||t.status===`done`,i=t.status===`error`||t.status===`failed`;return(0,R.jsxs)(`div`,{className:`flex flex-col gap-4 border-b border-line-soft pb-4 last:border-b-0 last:pb-0`,children:[(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,R.jsx)(wt,{size:17,strokeWidth:2,"aria-hidden":`true`,className:r?`text-pass`:i?`text-fail`:`text-warn`}),(0,R.jsx)(`span`,{className:`text-body-lg font-medium`,children:r?`Test written`:i?`Test not finished`:Ql(t.status).label}),(0,R.jsx)(Be,{tone:r?`pass`:i?`fail`:`warn`,children:Ql(t.status).label}),e.tests.length>0&&(0,R.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[x(e.tests.length,`test run`),a?` (${a} failed)`:``,e.reviews.length?` · ${x(e.reviews.length,`review`)}`:``]})]}),(0,R.jsxs)(`dl`,{className:`m-0 grid grid-cols-1 gap-x-6 gap-y-1 sm:grid-cols-[110px_minmax(0,1fr)] sm:gap-y-4`,children:[t.testFile&&(0,R.jsx)(fu,{label:`Test`,children:(0,R.jsx)($r,{path:t.testFile})}),t.command&&(0,R.jsx)(fu,{label:`Run it`,children:(0,R.jsx)(Ol,{text:t.command})}),(t.review||o)&&(0,R.jsx)(fu,{label:`Review`,children:(0,R.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[(0,R.jsx)(`span`,{children:(0,R.jsx)(Be,{tone:(t.review??o).approved?`pass`:`warn`,children:(t.review??o).approved?`Approved`:`Changes asked`})}),(t.review?.summary||o?.summary)&&(0,R.jsx)(`span`,{className:`text-ink-2`,children:t.review?.summary||o?.summary})]})}),t.notes&&(0,R.jsx)(fu,{label:`Notes`,children:(0,R.jsx)(ti,{text:t.notes,className:S(`text-body-sm text-ink-2 [&_p]:my-0 [&_p+p]:mt-2`,`[&_p]:max-w-none [&_ul]:max-w-none [&_ol]:max-w-none [&_blockquote]:max-w-none [&_h1]:max-w-none [&_h2]:max-w-none [&_h3]:max-w-none [&_h4]:max-w-none [&_h5]:max-w-none [&_h6]:max-w-none`)})})]}),t.error&&(0,R.jsx)(`p`,{className:S(P.fail,`m-0`),children:t.error})]},n)}),e.edits.length>0&&(0,R.jsxs)(`div`,{className:`flex flex-col`,children:[(0,R.jsx)(`h4`,{className:`m-0 text-body-sm font-medium text-muted`,children:`Files changed`}),(0,R.jsx)(`ul`,{"aria-label":`Files changed`,className:`m-0 flex list-none flex-col p-0`,children:(0,R.jsx)(ru,{items:e.edits,first:8,render:e=>(0,R.jsx)(uu,{e},e.path)})})]}),s.length>0&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,R.jsx)(`h4`,{className:`m-0 text-body-sm font-medium text-muted`,children:`Files changed`}),(0,R.jsx)(`ul`,{"aria-label":`Files changed`,className:`m-0 flex list-none flex-col p-0`,children:s.map(e=>(0,R.jsxs)(`li`,{className:`flex min-h-9 min-w-0 items-center gap-4 border-t border-line-soft text-body-sm first:border-t-0`,children:[(0,R.jsx)(`span`,{className:`w-[52px] flex-none text-body-sm text-muted`,children:du[e.action]||e.action.charAt(0).toUpperCase()+e.action.slice(1)}),(0,R.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:(0,R.jsx)($r,{path:e.path})})]},e.path))}),(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Their diffs were not kept for this run.`})]}),!e.edits.length&&!s.length&&!e.results.length&&(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`No files changed.`}),e.edits.some(e=>!e.diffs.length)&&(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`A file without a diff was changed before ForgeQE kept diffs, or is a hidden or credential file, whose text is not kept.`})]})}function mu({final:e,answer:t,className:n}){let r=e.from===`agent`?t?.files??[]:[],i=e.from!==`agent`,a=Math.max(2,...(e.text.match(/`+/g)||[]).map(e=>e.length)),o="`".repeat(a+1);return(0,R.jsxs)(tu,{...n?{className:n}:{},title:`Final message`,icon:Lt,aside:(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:e.from===`agent`?`The agent's last reply`:e.from===`job`?`The end of the job's output`:`What the command said at the end`}),children:[(0,R.jsx)(cu,{text:i?`${o}text\n${e.text}\n${o}`:Vn(e.text),height:420}),r.length>0&&(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-body-sm`,children:[(0,R.jsx)(`span`,{className:`text-muted`,children:`Files it names:`}),r.map(e=>(0,R.jsx)($r,{path:e},e))]})]})}var hu={rule:{icon:fn,label:`Rulebook`},decision:{icon:en,label:`Test decisions`},memory:{icon:wn,label:`Page memory`},replay:{icon:Je,label:`Replays`},model:{icon:Zt,label:`Model`},skill:{icon:ot,label:`Skills`}};function gu({list:e,className:t}){let n=Object.keys(hu).filter(t=>e.some(e=>e.kind===t));return(0,R.jsx)(tu,{...t?{className:t}:{},title:`Learnings`,icon:bn,aside:e.length?(0,R.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[e.length,` from this session`]}):void 0,children:e.length===0?(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Nothing learned or decided in this session: no rules, test decisions, page memory or model switches in its log.`}):(0,R.jsx)(`div`,{className:`grid grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-x-6 gap-y-4`,children:n.map(t=>{let{icon:n,label:r}=hu[t];return(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,R.jsxs)(`h4`,{className:`m-0 flex items-center gap-2 text-body-sm font-medium text-muted`,children:[(0,R.jsx)(F,{icon:n,size:14}),r]}),(0,R.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.filter(e=>e.kind===t).map((e,t)=>(0,R.jsxs)(`li`,{className:`flex flex-col gap-1 border-t border-line-soft py-2 text-body-sm first:border-t-0`,children:[(0,R.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.text}),e.note&&(0,R.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:e.note})]},t))})]},t)})})})}function _u({run:e,className:t}){let n=[],r=t?{className:t}:{};return(e.executions.length||e.kind===`execution`)&&n.push({kind:`execution`,node:(0,R.jsx)(ou,{list:e.executions,...r},`e`)}),(e.reports.length||e.kind===`report`)&&n.push({kind:`report`,node:(0,R.jsx)(su,{list:e.reports,...r},`r`)}),e.coding&&(e.coding.edits.length||e.coding.results.length||e.kind===`coding`)&&n.push({kind:`coding`,node:(0,R.jsx)(pu,{c:e.coding,files:e.files,...r},`c`)}),n.sort((t,n)=>Number(n.kind===e.kind)-Number(t.kind===e.kind)),(0,R.jsx)(R.Fragment,{children:n.map(e=>e.node)})}var vu=e({ORIGIN:()=>Ou,Runs:()=>Zu,RunsTable:()=>Yu,StatusIcon:()=>Au,empty:()=>ju,newestRuns:()=>qu,runTab:()=>Uu,statusLabel:()=>ku}),yu={running:{label:`Running`,tone:`running`},done:{label:`Done`,tone:`pass`},failed:{label:`Failed`,tone:`fail`},stopped:{label:`Stopped`,tone:`neutral`}},bu={chat:`Chat`,suite:`Suite`,monitor:`Monitor`,run:`Browser run`,start:`Chat`,heal:`Heal`,"pr-tests":`PR tests`,pack:`Pack`,pipeline:`Pipeline watch`,explore:`Explore`,api:`API tests`,generate:`Generate`,jobs:`Jobs service`},xu=e=>bu[e]||e.charAt(0).toUpperCase()+e.slice(1),Su=e=>{if(!e)return``;let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString([],{month:`short`,day:`numeric`,...t.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`},hour:`numeric`,minute:`2-digit`})},Cu=(e,t)=>Math.max(0,Math.round(((e.status===`running`?t:Date.parse(e.lastAt))-Date.parse(e.startedAt))/1e3)),wu=e=>Number.isFinite(e)?e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m ${e%60}s`:`${Math.floor(e/3600)}h ${Math.floor(e%3600/60)}m`:`–`,Tu=e=>e.usage.input+e.usage.output;function Eu(e){let[t,n]=(0,L.useState)(Date.now());return(0,L.useEffect)(()=>{if(!e)return;let t=Zn(()=>n(Date.now()),1e3);return()=>qn(t)},[e]),t}function Du({r:e}){return e.origin.kind===`web`?(0,R.jsxs)(`a`,{href:s(`chats`,e.origin.chat),className:`inline-flex items-center gap-2`,children:[(0,R.jsx)(F,{icon:on,size:14}),`Web chat`]}):e.origin.kind===`job`?(0,R.jsxs)(`a`,{href:s(`jobs`,encodeURIComponent(e.origin.job)),className:`inline-flex items-center gap-2`,children:[(0,R.jsx)(F,{icon:It,size:14}),`Job`]}):(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-muted`,children:[(0,R.jsx)(F,{icon:Wt,size:14}),`Terminal`]})}var Ou={web:`Web chat`,job:`Job`,terminal:`Terminal`},ku=e=>yu[e].label;function Au({status:e}){let t=yu[e].label;return e===`running`?(0,R.jsx)(Rt,{size:16,"aria-label":t,className:`flex-none animate-spin text-accent-fg`}):e===`done`?(0,R.jsx)(mt,{size:16,"aria-label":t,className:`flex-none text-pass`}):e===`failed`?(0,R.jsx)(Pn,{size:16,"aria-label":t,className:`flex-none text-fail`}):(0,R.jsx)(_t,{size:16,"aria-label":t,className:`flex-none text-muted`})}var ju=e=>e.status!==`running`&&!e.tools&&!e.turns&&!Tu(e)&&!e.files.length&&!e.outputs.length&&Cu(e,0)<2;function Mu(e){return/^forgeqe(-|$)|^engine$/.test(e)?N(e).name:e&&e.charAt(0).toUpperCase()+e.slice(1)}function Nu({label:e,children:t,stacked:n=!1}){return n?(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col border-t border-line-soft py-2 text-body-sm first:border-t-0`,children:[(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:e}),(0,R.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]}):(0,R.jsxs)(`div`,{className:`grid grid-cols-[120px_minmax(0,1fr)] items-baseline gap-4 border-t border-line-soft py-2 text-body-sm first:border-t-0`,children:[(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:e}),(0,R.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]})}function Pu({title:e,icon:t,children:n}){return(0,R.jsx)(Ko,{level:3,icon:t,title:e,className:`gap-2`,children:(0,R.jsx)(`div`,{className:`flex min-w-0 flex-col`,children:n})})}var Fu=8,Iu=e=>e===`write`?`Written`:e===`edit`?`Edited`:e===`delete`?`Deleted`:e?e.charAt(0).toUpperCase()+e.slice(1):`Changed`;function Lu({run:e,now:t,running:n,events:r}){let i=yu[e.status],a=e.executions.reduce((e,t)=>({total:e.total+t.counts.total,passed:e.passed+t.counts.passed,failed:e.failed+t.counts.failed}),{total:0,passed:0,failed:0}),o=e.coding?.results.at(-1),s=e.coding?.tests.length??0,c=e.coding?.tests.filter(e=>!e.ok).length??0,l=e.coding?.edits??[],u=l.reduce((e,t)=>e+t.added,0),d=l.reduce((e,t)=>e+t.removed,0),f=l.length||e.files.filter(e=>e.action&&e.action!==`read`).length;return(0,R.jsxs)(jr,{label:`How this run went`,children:[(0,R.jsx)(pr,{compact:!0,label:`Outcome`,value:i.label,tone:i.tone===`fail`?`text-fail`:i.tone===`pass`?`text-pass`:void 0,...o?.attempts?{note:`attempt ${o.attempts}${o.maxAttempts?` of ${o.maxAttempts}`:``}`}:{}}),(0,R.jsx)(pr,{label:n?`Running for`:`Took`,value:wu(Cu(e,t)),...r?{note:x(r,`event`)}:{}}),a.total>0&&(0,R.jsx)(pr,{label:`Cases`,value:`${a.passed}/${a.total}`,...a.failed?{tone:`text-fail`}:a.passed===a.total?{tone:`text-pass`}:{},note:`passed`}),s>0&&(0,R.jsx)(pr,{label:`Test runs`,value:s,...c?{note:`${c} failed`}:{}}),f>0&&(0,R.jsx)(pr,{label:`Files changed`,value:f,...u+d?{note:`+${u} −${d}`}:{}}),Tu(e)>0&&(0,R.jsx)(pr,{label:`Tokens`,value:Rn(Tu(e)),note:`${Rn(e.usage.input)} in · ${Rn(e.usage.output)} out`})]})}var Ru={rerun:at,write_test:rn,investigate:st,fix_test:ut},zu={rerun:`Retry`,write_test:`Write`,investigate:`Investigate`,fix_test:`Fix`};function Bu({actions:e}){let[t,n]=(0,L.useState)(``),[r,i]=(0,L.useState)(``);if(!e.length)return null;let a=async e=>{n(e.prompt),i(``);try{let{id:t}=await Ie.start(e.prompt,{});location.hash=s(`chats`,t)}catch(e){i(e.message),n(``)}};return(0,R.jsxs)(`section`,{"aria-label":`Next steps`,className:`flex flex-col gap-2`,children:[(0,R.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:e.map((e,n)=>(0,R.jsxs)(I,{disabled:!!t,onClick:()=>void a(e),"data-tip":e.note?`${e.label}: ${e.note}`:e.label,className:`max-w-full min-w-0`,children:[(0,R.jsx)(F,{icon:Ru[e.kind],size:16,className:`flex-none`}),(0,R.jsx)(`span`,{className:`min-w-0 truncate`,children:t===e.prompt?`Opening…`:zu[e.kind]}),e.note&&(0,R.jsx)(`span`,{className:`min-w-0 flex-[1_1_0] truncate font-normal text-ink-2`,children:e.note})]},n))}),(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:`Each opens a chat with the request; it asks before it changes anything.`}),r&&(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:r})]})}var Vu=e=>`\`${e.replace(/`/g,``)}\``,Hu=[`summary`,`conversation`,`activity`,`details`],Uu=e=>Hu.find(t=>t===e)??`summary`;function Wu({name:e,tab:t}){let[n,r]=(0,L.useState)(null),[i,a]=(0,L.useState)(``),[o,c]=(0,L.useState)(!1),l=Uu(t),u=t=>location.hash=t===`summary`?s(`runs`,encodeURIComponent(e)):s(`runs`,encodeURIComponent(e),t),d=(0,L.useCallback)(()=>{xe.detail(e).then(e=>{r(e),a(``)},e=>a(e.message))},[e]);(0,L.useEffect)(d,[d]);let f=n?.status===`running`;(0,L.useEffect)(()=>{if(!f)return;let e=Zn(d,2e3);return()=>qn(e)},[d,f]);let p=Eu(f),m=(0,L.useMemo)(()=>(n?.events??[]).map(Rr).filter(e=>!!e),[n?.events]),h=async()=>{c(!0),a(``);try{await xe.cancel(e),d()}catch(e){a(e.message)}finally{c(!1)}},g=(0,R.jsx)(He,{to:{href:s(`runs`),label:`All runs`}});if(!n)return(0,R.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[g,i?(0,R.jsx)(`p`,{role:`alert`,className:S(P.fail,`m-0`),children:i}):(0,R.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`})]});let _=yu[n.status],v=!n.replies.length,y=!!n.final||n.executions.length>0||n.reports.length>0||!!(n.coding&&(n.coding.edits.length||n.coding.results.length))||n.learnings.length>0||n.outputs.length>0||n.files.length>0,b=[{id:`summary`,label:`Summary`},{id:`conversation`,label:v?`Command`:`Conversation`,n:n.replies.length||void 0},{id:`activity`,label:`Activity`,n:m.length||void 0},{id:`details`,label:`Details`}],C=new Set([...n.reports.map(e=>e.path),...n.executions.flatMap(e=>[e.report,e.folder])].filter(Boolean)),w=n.outputs.filter(e=>!C.has(e.path)),ee=n.context?.limit?Math.round(n.context.tokens/n.context.limit*100):null,T=w.length>0||n.files.length>0?`@3xl:col-span-3`:`@3xl:col-span-4`;return(0,R.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[g,(0,R.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-4 gap-y-4`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_320px] flex-col gap-2`,children:[(0,R.jsx)(Go,{icon:vt,title:n.title,actions:(0,R.jsx)(Be,{tone:_.tone,children:_.label})}),(0,R.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 text-body-sm text-muted`,children:[(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,R.jsx)(Xl,{kind:n.kind}),Jl[n.kind]]}),`· `,(0,R.jsx)(Du,{r:n}),`· `,Su(n.startedAt),` · `,f?`running for `:`took `,wu(Cu(n,p)),` · `,Rn(Tu(n)),` tokens`,n.profile?.model?` · ${n.profile.model}`:``]})]}),n.cancel&&(0,R.jsxs)(I,{busy:o,variant:`danger`,disabled:o,"data-tip":n.cancel===`chat`?`Stop this chat's work`:`Cancel this job's run`,onClick:()=>void h(),children:[n.cancel===`chat`?(0,R.jsx)(dn,{fill:`currentColor`,"aria-hidden":`true`}):(0,R.jsx)(St,{"aria-hidden":`true`}),o?`Stopping…`:n.cancel===`chat`?`Stop`:`Cancel`]})]}),i&&(0,R.jsx)(`p`,{role:`alert`,className:S(P.fail,`m-0`),children:i}),n.error&&(0,R.jsxs)(`p`,{className:S(P.fail,`m-0`),children:[(0,R.jsx)(`strong`,{children:`What went wrong:`}),` `,n.error]}),!f&&(0,R.jsx)(Bu,{actions:n.actions??[]}),(0,R.jsx)(vr,{prefix:`run`,label:`This run`,className:`mb-0`,current:l,onPick:u,tabs:b}),(0,R.jsxs)(`div`,{role:`tabpanel`,id:`run-panel-${l}`,"aria-labelledby":`run-${l}`,className:`flex min-w-0 flex-col gap-6`,children:[l===`summary`&&(0,R.jsxs)(R.Fragment,{children:[y&&(0,R.jsx)(Lu,{run:n,now:p,running:f,events:m.length}),(0,R.jsxs)(`div`,{className:`grid items-start gap-x-12 gap-y-6 @3xl:grid-cols-4 @3xl:[grid-auto-flow:dense]`,children:[n.final&&(0,R.jsx)(mu,{final:n.final,answer:n.answer,className:T}),(0,R.jsx)(_u,{run:n,className:T}),w.length>0&&(0,R.jsx)(`div`,{className:`flex min-w-0 flex-col pt-6 @3xl:col-span-1`,children:(0,R.jsx)(Pu,{title:`What it produced (${w.length})`,icon:Tn,children:w.map(e=>(0,R.jsx)(Nu,{label:e.label,stacked:!0,children:(0,R.jsx)($r,{path:e.path,children:e.path.split(`/`).pop()})},e.path))})}),n.files.length>0&&(0,R.jsx)(`div`,{className:`flex min-w-0 flex-col pt-6 @3xl:col-span-1`,children:(0,R.jsx)(Pu,{title:`Files worked on (${n.files.length})`,icon:Qe,children:(0,R.jsx)(ru,{items:[...n.files].sort((e,t)=>Number(e.action===`read`)-Number(t.action===`read`)),first:Fu,render:e=>(0,R.jsx)(Nu,{label:Iu(e.action),stacked:!0,children:e.action===`delete`?(0,R.jsx)(`span`,{className:`font-mono text-body-sm`,children:e.path.split(`/`).pop()}):(0,R.jsx)($r,{path:e.path,children:e.path.split(`/`).pop()})},e.path)})})}),n.learnings.length>0&&(0,R.jsx)(gu,{list:n.learnings,className:`@3xl:col-span-4`})]}),!y&&(0,R.jsx)(Re,{className:`py-4`,children:f?`Still working: its answer and what it produces show here when it ends.`:`This run left no answer, results or files. Its Activity shows what it did.`})]}),l===`conversation`&&(v?(0,R.jsx)(ti,{text:Vu(n.prompt),className:`text-body-sm [&_p]:my-0`}):(0,R.jsx)(`ol`,{className:`m-0 flex list-none flex-col gap-4 p-0`,children:n.replies.map((e,t)=>(0,R.jsxs)(`li`,{className:`flex flex-col gap-2`,children:[(0,R.jsx)(`div`,{className:S(`rounded-md bg-bg px-4 py-2 text-ink shadow-md [overflow-wrap:anywhere]`,`max-w-[85%] self-end text-body-sm`),children:(0,R.jsx)(ti,{text:e.ask,className:`[&_p]:my-1`})}),e.text&&(0,R.jsx)(ti,{text:Vn(e.text),className:`text-body-sm`}),e.error&&(0,R.jsx)(`p`,{className:S(P.fail,`m-0`),children:e.error})]},t))})),l===`activity`&&(n.archived?(0,R.jsxs)(`p`,{className:S(P.info,`m-0`),children:[`ForgeQE keeps the newest session logs only, and this run's is gone. Its summary, final message and learnings were kept in `,(0,R.jsx)(`code`,{className:`font-mono text-body-sm`,children:`.forgeqe/runs`}),`; its step-by-step activity was not.`]}):m.length?(0,R.jsx)(Y,{timeline:!0,lines:m,live:f,name:`forgeqe-run-${n.name.replace(/\.log$/,``)}.md`}):(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Nothing logged yet.`})),l===`details`&&(0,R.jsxs)(Gu,{children:[(0,R.jsxs)(Pu,{title:`Numbers`,icon:kn,children:[(0,R.jsx)(Nu,{label:f?`Running for`:`Took`,children:wu(Cu(n,p))}),(0,R.jsx)(Nu,{label:`Tokens`,children:(0,R.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[(0,R.jsxs)(`span`,{children:[Rn(Tu(n)),` `,(0,R.jsxs)(`span`,{className:`text-muted`,children:[`· `,nr(n.usage)]})]}),(n.byAgent?.length??0)>1&&(0,R.jsx)(`span`,{className:`flex flex-col gap-1 text-body-sm`,children:n.byAgent.map(e=>(0,R.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,R.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-ink-2`,children:Mu(e.agent)}),(0,R.jsx)(`span`,{className:`text-muted tabular-nums`,children:Rn(e.input+e.output)})]},e.agent))})]})}),(0,R.jsxs)(Nu,{label:`Context`,children:[n.context?Rn(n.context.tokens):`–`,ee!==null&&(0,R.jsxs)(`span`,{className:`text-muted`,children:[` of `,Rn(n.context.limit),` (`,ee,`%)`]})]}),(0,R.jsxs)(Nu,{label:`Tool calls`,children:[n.tools,` `,(0,R.jsxs)(`span`,{className:`text-muted`,children:[`in `,x(n.turns,`turn`)]})]})]}),(0,R.jsxs)(Pu,{title:`Session`,icon:Sn,children:[(0,R.jsx)(Nu,{label:`Started by`,children:(0,R.jsx)(Du,{r:n})}),(0,R.jsx)(Nu,{label:`Command`,children:xu(n.command)}),(0,R.jsx)(Nu,{label:`Model`,children:n.profile?[n.profile.name,n.profile.model].filter(Boolean).join(` · `):`–`}),(0,R.jsx)(Nu,{label:`Agents`,children:n.agents.length?(0,R.jsx)(`span`,{className:`flex flex-col gap-1`,children:n.agents.map(e=>(0,R.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,R.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:Mu(e.name)}),(0,R.jsx)(`span`,{className:`text-body-sm text-muted tabular-nums`,children:x(e.calls,`call`)})]},e.name))}):(0,R.jsx)(`span`,{className:`text-muted`,children:`None`})}),(0,R.jsxs)(Nu,{label:`Log`,children:[n.archived?(0,R.jsx)(`span`,{className:`text-muted`,children:`No longer kept: ForgeQE keeps the newest logs only`}):(0,R.jsx)($r,{path:`.forgeqe/logs/${n.name}`}),n.truncated&&(0,R.jsx)(`span`,{className:`block text-body-sm text-muted`,children:`Very long: only its start is shown.`})]})]}),n.job&&(0,R.jsxs)(Pu,{title:`Job`,icon:It,children:[(0,R.jsx)(Nu,{label:`Job`,children:(0,R.jsx)(`a`,{href:s(`jobs`,encodeURIComponent(n.origin.kind===`job`?n.origin.job:n.job.name)),children:n.job.name})}),(0,R.jsx)(Nu,{label:`Runs`,children:(0,R.jsx)(ti,{text:Vu(n.job.command),className:`text-body-sm [&_p]:my-0`})}),(0,R.jsxs)(Nu,{label:`Schedule`,children:[n.job.schedule,!n.job.enabled&&` (disabled)`,n.job.nextAt&&n.job.enabled?` · next ${Su(n.job.nextAt)}`:``]}),n.job.run&&(0,R.jsxs)(Nu,{label:`This run`,children:[n.job.run.reason===`asked`?`Asked for`:`On schedule`,`, `,n.job.run.status.replace(`_`,` `),n.job.run.exitCode!==void 0&&n.job.run.exitCode!==null?`, exit ${n.job.run.exitCode}`:``]})]}),(0,R.jsx)(Pu,{title:`Notifications`,icon:xn,children:n.notifications.length?n.notifications.map(e=>(0,R.jsx)(Nu,{label:e.event.replace(/_/g,` `),children:e.channels.length?e.channels.join(`, `):(0,R.jsx)(`span`,{className:`text-muted`,children:`No channel takes it`})},e.event)):(0,R.jsx)(`p`,{className:`m-0 py-1 text-body-sm text-muted`,children:n.origin.kind===`terminal`||n.origin.kind===`web`?`None: notify channels go with jobs, suites and the monitor.`:`No notify channels are set up (Settings, Notify).`})})]})]})]})}function Gu({children:e}){let t=L.Children.toArray(e).filter(Boolean),n=t.length%2==1;return(0,R.jsx)(`div`,{className:`grid items-start gap-x-12 gap-y-6 @3xl:grid-cols-4 @3xl:[grid-auto-flow:dense]`,children:t.map((e,r)=>(0,R.jsx)(`div`,{className:S(`flex min-w-0 flex-col pt-6`,n&&r===t.length-1?`@3xl:col-span-4`:`@3xl:col-span-2`),children:e},r))})}var X={running:0,failed:1,stopped:2,done:3},Ku=e=>Date.parse(e.startedAt)||0,qu=e=>e.toSorted((e,t)=>Ku(t)-Ku(e)),Ju=e=>s(`runs`,encodeURIComponent(e.name));function Yu({runs:e,now:t,resetKey:n,tools:r,end:i,empty:a}){return(0,R.jsx)(xr,{label:`Runs`,search:!1,resetKey:n,tools:r,end:i,height:yr,empty:a,head:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`th`,{scope:`col`,className:hr,children:`Run`}),(0,R.jsx)(`th`,{scope:`col`,className:S(hr,`w-[128px]`),children:`Status`}),(0,R.jsx)(`th`,{scope:`col`,className:S(hr,`hidden w-[160px] @2xl:table-cell`),children:`Kind`}),(0,R.jsx)(`th`,{scope:`col`,className:S(hr,`hidden w-[128px] @3xl:table-cell`),children:`Started by`}),(0,R.jsx)(`th`,{scope:`col`,className:S(Vr,`hidden w-[96px] @3xl:table-cell`),children:`Took`}),(0,R.jsx)(`th`,{scope:`col`,className:S(Vr,`hidden w-[96px] @3xl:table-cell`),children:`Tokens`}),(0,R.jsx)(`th`,{scope:`col`,className:S(Vr,`hidden w-[128px] @xl:table-cell`),children:`When`})]}),children:e.map(e=>{let n=yu[e.status];return(0,R.jsxs)(`tr`,{className:Bn,onClick:()=>location.hash=Ju(e),children:[(0,R.jsx)(`td`,{className:S(Lr,`max-w-0`),children:(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,R.jsx)(`a`,{href:Ju(e),onClick:e=>e.stopPropagation(),className:`truncate font-medium text-ink no-underline hover:underline`,"data-tip":e.title,children:e.title}),e.error?(0,R.jsx)(`span`,{className:`truncate text-fail`,"data-tip":e.error,children:e.error}):(0,R.jsx)(`span`,{className:`truncate text-muted @3xl:hidden`,children:[Jl[e.kind],Ou[e.origin.kind]||e.origin.kind,wu(Cu(e,t)),`${Rn(Tu(e))} tokens`,Kr(e.startedAt)].join(` · `)})]})}),(0,R.jsx)(`td`,{className:S(Lr,`whitespace-nowrap`),"data-sort":X[e.status],children:(0,R.jsx)(Be,{tone:n.tone,children:n.label})}),(0,R.jsx)(`td`,{className:S(Lr,`hidden max-w-0 @2xl:table-cell`),children:(0,R.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2 text-ink-2`,children:[(0,R.jsx)(Xl,{kind:e.kind}),(0,R.jsx)(`span`,{className:`truncate`,children:Jl[e.kind]})]})}),(0,R.jsx)(`td`,{className:S(Lr,`hidden text-ink-2 @3xl:table-cell`),children:Ou[e.origin.kind]||e.origin.kind}),(0,R.jsx)(`td`,{className:S(Ur,`hidden text-ink-2 @3xl:table-cell`),"data-sort":Cu(e,t),children:wu(Cu(e,t))}),(0,R.jsx)(`td`,{className:S(Ur,`hidden text-ink-2 @3xl:table-cell`),"data-sort":Tu(e),children:Rn(Tu(e))}),(0,R.jsx)(`td`,{className:S(Ur,`hidden text-ink-2 @xl:table-cell`),"data-sort":Ku(e),"data-tip":Su(e.startedAt),children:Kr(e.startedAt)})]},e.name)})})}function Xu({runs:e}){let t=Eu(e.some(e=>e.status===`running`)),[n,r]=(0,L.useState)(``),[i,a]=(0,L.useState)(`all`),[o,c]=(0,L.useState)(``),[l,u]=(0,L.useState)(``),[f,p]=(0,L.useState)(!1),m=e.filter(ju).length,h=n.toLowerCase().split(/\s+/).filter(Boolean),g=e.filter(e=>(f||!ju(e))&&(!o||e.kind===o)&&(!l||e.origin.kind===l)&&h.every(t=>`${e.title} ${e.command} ${e.error||``}`.toLowerCase().includes(t))),_={all:g.length,running:g.filter(e=>e.status===`running`).length,failed:g.filter(e=>e.status===`failed`).length},v=qu(i===`all`?g:g.filter(e=>e.status===i)),y=e.filter(e=>e.status!==`running`&&!ju(e)),b=y.filter(e=>e.status===`failed`).length,C=y.length?y.reduce((e,n)=>e+Cu(n,t),0)/y.length:NaN,w=e.reduce((e,t)=>e+Tu(t),0),ee=[...new Set(e.map(e=>e.kind))],T=[...new Set(e.map(e=>e.origin.kind))];return e.length===0?(0,R.jsx)(Re,{icon:Sn,title:`No runs yet`,action:(0,R.jsxs)(`a`,{className:Le({size:`sm`}),href:s(),"data-tip":`Start a chat`,children:[(0,R.jsx)(on,{"aria-hidden":`true`}),`Chat`]}),children:`A chat here, a job, or a ForgeQE command in this project adds one.`}):(0,R.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,R.jsxs)(`div`,{className:`flex flex-wrap gap-x-6 gap-y-1 text-body-sm text-muted`,children:[(0,R.jsxs)(`span`,{children:[(0,R.jsx)(`b`,{className:`text-ink tabular-nums`,children:e.length-m}),` runs`]}),e.some(e=>e.status===`running`)&&(0,R.jsxs)(`span`,{children:[(0,R.jsx)(`b`,{className:`text-accent-fg tabular-nums`,children:e.filter(e=>e.status===`running`).length}),` running now`]}),(0,R.jsxs)(`span`,{children:[(0,R.jsx)(`b`,{className:S(`tabular-nums`,b?`text-fail`:`text-ink`),children:b}),` failed`,y.length?` (${Math.round(b/y.length*100)}%)`:``]}),(0,R.jsxs)(`span`,{children:[(0,R.jsx)(`b`,{className:`text-ink tabular-nums`,children:Rn(w)}),` tokens`]}),(0,R.jsxs)(`span`,{children:[(0,R.jsx)(`b`,{className:`text-ink tabular-nums`,children:wu(Math.round(C))}),` on average`]})]}),(0,R.jsx)(`div`,{children:(0,R.jsx)(Yu,{runs:v,now:t,resetKey:`${n}-${i}-${o}-${l}-${f}`,empty:`No run matches.`,tools:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Ve,{id:`run-search`,label:`Find a run`,value:n,onChange:r,placeholder:`Find a run by what was asked`}),(0,R.jsx)(ze,{items:[{id:`all`,label:`All`,n:_.all},{id:`running`,label:`Running`,n:_.running},{id:`failed`,label:`Failed`,n:_.failed,alert:!0}],value:i,onChange:a}),ee.length>1&&(0,R.jsxs)(d,{size:`sm`,"aria-label":`What it did`,value:o,onChange:e=>c(e.target.value),className:`w-auto pr-8 pl-4`,children:[(0,R.jsx)(`option`,{value:``,children:`Any kind`}),ee.map(e=>(0,R.jsx)(`option`,{value:e,children:Jl[e]},e))]}),T.length>1&&(0,R.jsxs)(d,{size:`sm`,"aria-label":`Started by`,value:l,onChange:e=>u(e.target.value),className:`w-auto pr-8 pl-4`,children:[(0,R.jsx)(`option`,{value:``,children:`Started anywhere`}),T.map(e=>(0,R.jsx)(`option`,{value:e,children:Ou[e]||e},e))]})]}),end:m>0&&(0,R.jsx)(I,{variant:`link`,size:`inline`,onClick:()=>p(!f),children:f?`Hide the ${x(m,`empty session`)}`:`${x(m,`empty session`)} hidden`})})})]})}function Zu({sub:e}){let[t,n]=(0,L.useState)(null),[r,i]=(0,L.useState)(``),a=(0,L.useCallback)(()=>{xe.list().then(e=>{n(e.runs),i(``)},e=>i(e.message))},[]);(0,L.useEffect)(a,[a]);let s=t?.some(e=>e.status===`running`);(0,L.useEffect)(()=>{if(e)return;let t=Zn(a,s?3e3:2e4);return()=>qn(t)},[a,s,e]);let[c,l]=(e||``).split(`/`),u=c?o(c):``;return(0,R.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,R.jsx)(Pr,{}),(0,R.jsx)(`main`,{className:S(Fr,`@container flex-auto gap-4`),children:u?(0,R.jsx)(Wu,{name:u,tab:l},u):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(He,{}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-6 gap-y-2`,children:[(0,R.jsxs)(`span`,{className:`flex items-center gap-4`,children:[(0,R.jsx)(Jn,{pixel:T.runs,size:`lg`}),(0,R.jsx)(`h1`,{className:`m-0 text-headline-lg`,children:`Runs`})]}),(0,R.jsx)(Dr,{label:`Runs and reports`,links:Kl,current:`runs`})]}),(0,R.jsx)(`p`,{className:`m-0 text-body-sm leading-relaxed text-ink-2`,children:`Every ForgeQE session in this project: chats here, jobs' runs, and commands typed in a terminal, newest first. Open one for how it went and what it produced.`}),r&&(0,R.jsx)(`p`,{role:`alert`,className:S(P.fail,`m-0`),children:r}),!t&&!r&&(0,R.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`}),t&&(0,R.jsx)(Xu,{runs:t})]})})]})}var Qu=5,$u={running:`running`,done:`pass`,failed:`fail`,stopped:`neutral`},ed=new Intl.DateTimeFormat([],{month:`short`,day:`numeric`}),td=new Intl.DateTimeFormat([],{weekday:`short`});function nd({perDay:e,now:t=new Date}){let n=e.length,r=e=>new Date(t.getFullYear(),t.getMonth(),t.getDate()-(n-1)+e),i=Math.max(1,...e),a=e.map((e,t)=>`${td.format(r(t))} ${e}`).join(`, `);return(0,R.jsxs)(`div`,{role:`img`,"aria-label":`Runs started each day this week: ${a}; ${e[n-1]??0} today`,className:`flex flex-col gap-2`,children:[(0,R.jsx)(`div`,{className:`flex h-6 items-end gap-1`,"aria-hidden":`true`,children:e.map((e,t)=>(0,R.jsx)(`span`,{"data-tip":`${t===n-1?`Today`:ed.format(r(t))}: ${x(e,`run`)}`,className:S(`flex-1 rounded-sm`,t===n-1?`bg-accent`:e?`bg-accent-line`:`bg-surface-strong`),style:{height:e?`${Math.max(25,e/i*100)}%`:`3px`}},t))}),(0,R.jsx)(`div`,{className:`flex gap-1 tabular-nums`,"aria-hidden":`true`,children:e.map((e,t)=>(0,R.jsx)(`span`,{className:S(`flex-1 text-center`,t===n-1&&`font-medium text-accent-fg`),children:td.format(r(t)).slice(0,2)},t))})]})}function rd({label:e,aside:t,value:n,unit:r,children:i}){return(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,R.jsxs)(`div`,{className:`flex min-h-6 items-center justify-between gap-2 text-body-sm whitespace-nowrap`,children:[(0,R.jsx)(`span`,{className:`font-medium text-ink-2`,children:e}),t]}),(0,R.jsxs)(`p`,{className:`m-0 font-home text-headline-lg leading-none text-ink tabular-nums`,children:[n,r&&(0,R.jsx)(`span`,{className:`ml-1 text-body-sm font-normal tracking-normal text-muted`,children:r})]}),(0,R.jsx)(`div`,{className:`mt-2 min-w-0 text-body-sm text-muted`,children:i})]})}function id({board:e,now:t=new Date}){let n=Nc(e.runs.filter(e=>!ju(e)),t),r=W(e),i=Ac(e.chats??[],t);return(0,R.jsxs)(y,{as:`section`,"aria-label":`This week at a glance`,className:`grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4 lg:gap-0`,children:[(0,R.jsx)(`div`,{className:`lg:pr-8`,children:(0,R.jsx)(rd,{label:`Runs this week`,aside:n.perDay[6]?(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-1 font-medium text-icon`,children:[(0,R.jsx)(kn,{size:14,"aria-hidden":`true`}),n.perDay[6],` today`]}):void 0,value:n.total.toLocaleString(),children:(0,R.jsx)(nd,{perDay:n.perDay,now:t})})}),(0,R.jsx)(`div`,{className:`lg:px-8`,children:(0,R.jsx)(rd,{label:`Passed this week`,value:n.passRate===null?`–`:n.passRate,...n.passRate===null?{}:{unit:`%`},aside:n.failed?(0,R.jsxs)(Be,{tone:`fail`,children:[n.failed,` failed`]}):void 0,children:n.passRate===null?`Shows once a run has ended.`:(0,R.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,R.jsx)(We,{label:`${n.passRate}% of the runs that ended passed`,parts:[{key:`passed`,value:n.passRate,className:`bg-pass`,text:`${n.passRate}%`},{key:`rest`,value:100-n.passRate,className:`bg-surface-strong`,text:``}]}),(0,R.jsx)(`span`,{children:`Of the runs that ended`})]})})}),(0,R.jsx)(`div`,{className:`lg:px-8`,children:(0,R.jsx)(rd,{label:`Waiting on you`,value:r.count,unit:r.count===1?`thing`:`things`,children:r.count?(0,R.jsxs)(`button`,{type:`button`,onClick:zc,className:`inline-flex cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-left text-inherit underline-offset-2 hover:underline focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,R.jsx)(`span`,{className:`size-2 flex-none rounded-full bg-warn`,"aria-hidden":`true`}),Rc(e).answer?`Answer them below`:`See them below`]}):(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,R.jsx)(`span`,{className:`size-2 rounded-full bg-pass`,"aria-hidden":`true`}),`Nothing needs you now`]})})}),(0,R.jsx)(`div`,{className:`lg:pl-8`,children:(0,R.jsx)(rd,{label:`Done today`,value:i,unit:i===1?`turn`:`turns`,children:`Chats that finished their work today`})})]})}function ad({board:e}){let t=W(e);return!t.count&&!e.unread.approvals&&!e.unread.jobs?null:(0,R.jsxs)(`section`,{"aria-labelledby":`home-waiting`,className:`flex flex-col gap-4`,children:[(0,R.jsx)(Go,{id:`home-waiting`,icon:dt,title:`Waiting on you`,n:t.count}),(0,R.jsx)(y,{className:``,children:(0,R.jsx)(Vc,{board:e,all:!0})})]})}function od({board:e}){let t=(e.chats??[]).filter(Oc),{running:n}=W(e),r=Ac(e.chats??[]);return(0,R.jsxs)(`section`,{"aria-labelledby":`home-working`,className:`flex flex-col gap-4`,children:[(0,R.jsx)(Go,{id:`home-working`,icon:vt,title:`Working now`,n:Hc(e),actions:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-body-sm text-muted tabular-nums`,children:[(0,R.jsx)(F,{icon:mt,size:14,className:`text-pass`}),r,` done today`]}),(0,R.jsx)(qo,{href:s(`chats`),children:`All chats`})]})}),t.length===0&&!n?(0,R.jsx)(Re,{className:`py-2`,children:`Nothing is running. What you ask above shows here while it works.`}):(0,R.jsxs)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-4 p-0 md:grid-cols-2 xl:grid-cols-3`,children:[t.map(t=>(0,R.jsx)(y,{as:`li`,className:`min-w-0`,children:(0,R.jsx)(`ul`,{className:`m-0 list-none p-0 [&>li]:border-l-0 [&>li]:p-0`,children:(0,R.jsx)(Xc,{c:t,showAgent:!0,onChange:e.load})})},t.id)),n>0&&(0,R.jsxs)(y,{as:`li`,className:`flex min-w-0 flex-col justify-between gap-4`,children:[(0,R.jsxs)(`span`,{className:`flex items-center gap-2 text-body-sm font-medium text-ink`,children:[(0,R.jsx)(F,{icon:vt,size:16,className:`text-icon`}),x(n,`run`),` going now`]}),(0,R.jsx)(qo,{href:s(`runs`),children:`Watch them in Runs`})]})]})]})}function sd({runs:e,unread:t=!1}){let[n,r]=(0,L.useState)(`all`),i=n===`failed`,a=e.filter(e=>!ju(e)),o=a.filter(e=>e.status===`failed`).length,c=(i?a.filter(e=>e.status===`failed`):a).slice(0,Qu);return(0,R.jsxs)(`section`,{"aria-labelledby":`home-runs`,className:`flex flex-col gap-4`,children:[(0,R.jsx)(Go,{id:`home-runs`,icon:Ye,title:`Recent runs`,...a[0]?{description:`Last one started ${Kr(a[0].startedAt)}`}:{},actions:(0,R.jsx)(_r,{label:`Show runs`,value:n,onChange:r,options:[{id:`all`,label:`All runs`},{id:`failed`,label:`Only failed`,...o?{n:o,tone:`text-fail`}:{}}]})}),t&&(0,R.jsx)(`p`,{role:`alert`,className:`m-0 text-body-sm text-fail`,children:`Could not read the runs. Trying again shortly.`}),t?null:c.length===0?(0,R.jsx)(Re,{className:`py-2`,children:i?`Nothing failed. Every run that ended passed.`:`No runs yet. A chat here, a job or a ForgeQE command adds one.`}):(0,R.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0`,children:c.map(e=>(0,R.jsx)(`li`,{children:(0,R.jsxs)(`a`,{href:s(`runs`,encodeURIComponent(e.name)),className:S(m,`flex min-h-16 items-center gap-4 text-ink no-underline transition-shadow hover:text-ink hover:shadow-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent`),children:[(0,R.jsx)(`span`,{className:S(`grid size-10 flex-none place-items-center rounded-sm`,e.status===`failed`?`bg-fail-soft text-fail`:`bg-container text-icon`),children:(0,R.jsx)(F,{icon:e.status===`failed`?dt:e.status===`done`?mt:vt,size:18})}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`truncate font-medium`,"data-tip":e.title,children:e.title}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-wrap gap-x-4 text-body-sm text-muted`,children:[(0,R.jsx)(`span`,{children:Jl[e.kind]}),(0,R.jsx)(`span`,{children:Ou[e.origin.kind]??e.origin.kind}),e.error&&(0,R.jsx)(`span`,{className:`min-w-0 truncate text-fail`,children:e.error})]})]}),(0,R.jsx)(Be,{tone:$u[e.status],className:`flex-none`,children:ku(e.status)}),(0,R.jsx)(`span`,{className:`hidden w-24 flex-none text-right text-body-sm text-muted tabular-nums sm:block`,children:Kr(e.startedAt)})]})},e.name))}),(0,R.jsx)(qo,{href:s(`runs`),className:`self-start`,children:`All runs`})]})}function cd({board:e}){return e.ready?(0,R.jsxs)(`div`,{className:`flex w-full flex-col gap-12`,children:[e.error&&(0,R.jsx)(`p`,{role:`alert`,className:`m-0 text-body-sm text-fail [overflow-wrap:anywhere]`,children:e.error}),(0,R.jsx)(id,{board:e}),(0,R.jsx)(ad,{board:e}),(0,R.jsx)(od,{board:e}),(0,R.jsx)(sd,{runs:e.runs,unread:!!e.unread.runs}),(0,R.jsxs)(`p`,{className:S(P.info,`m-0 inline-flex items-center gap-2 self-center`),children:[(0,R.jsx)(bn,{size:14,"aria-hidden":`true`,className:`text-icon`}),`Press `,(0,R.jsx)(Mr,{children:Er()}),` anywhere to search`]})]}):(0,R.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Reading what the agents are doing…`})}var ld=[`thinking`,`searching`,`reading`,`working`,`writing`,`browsing`,`handing`],ud=2600;function dd(e=Math.random){let t=[...ld];for(let n=t.length-1;n>0;n--){let r=Math.floor(e()*(n+1));[t[n],t[r]]=[t[r],t[n]]}return t}function fd(e,t=Math.random){let n=e.length?[...e]:dd(t);return{move:n.pop(),left:n}}function pd(e,t=ud){let n=[];function r(){let t=fd(n);n=t.left,e(t.move)}r();let i=setInterval(r,t);return()=>{clearInterval(i),e(`idle`)}}function md(e){let[t,n]=(0,L.useState)(`idle`);return(0,L.useEffect)(()=>{if(!(e||b()))return pd(n)},[e]),e?`idle`:t}var hd=[{state:`thinking`},{state:`idle`,activity:`searching`},{state:`idle`,activity:`browsing`},{state:`idle`,activity:`reading`},{state:`idle`,activity:`writing`},{state:`idle`,activity:`working`},{state:`idle`,activity:`handing`},{state:`speaking`},{state:`waiting`},{state:`idle`,mood:`joy`},{state:`idle`,mood:`content`},{state:`idle`,mood:`surprised`},{state:`idle`,mood:`concern`},{state:`idle`,mood:`frustrated`},{state:`idle`,mood:`angry`}],gd=[`angry`,`frustrated`];function _d(e){let t=e=>Number.isFinite(e)&&e>0?Math.floor(e):0,n=t(e.failed)+t(e.jobsFailed);return n>=3?{state:`idle`,mood:`angry`}:n>0?{state:`idle`,mood:`frustrated`}:t(e.waiting)?{state:`idle`,mood:`surprised`}:t(e.running)?{state:`idle`,activity:`working`}:{state:`idle`,mood:`joy`}}function vd(e=null,t=Math.random){let n=e?.mood&&gd.includes(e.mood)?e.mood:null,r=hd.map(e=>n&&(e.mood===`joy`||e.mood===`content`)?{state:`idle`,mood:n}:e);for(let e=r.length-1;e>0;e--){let n=Math.floor(t()*(e+1));[r[e],r[n]]=[r[n],r[e]]}return r}function yd(e,t=ud){let n=[],r=null,i=0,a=null,o=(t,n)=>{let r={state:t.state};t.mood&&(r.mood={kind:t.mood,at:++i,secs:n/1e3}),t.activity&&(r.activity=t.activity),e(r),a&&clearTimeout(a),a=setTimeout(s,n)};function s(){n.length||(n=vd(r)),o(n.pop(),t)}return s(),{stop(){a&&clearTimeout(a),a=null,e({state:`idle`})},react(e){r=e,n=[],o(e,t*2)},attend(){o({state:`waiting`},t)}}}function bd(e,t,n){let[r,i]=(0,L.useState)({state:`idle`}),a=(0,L.useRef)(null);(0,L.useEffect)(()=>{if(e||b())return;let t=yd(i);return a.current=t,()=>{a.current=null,t.stop()}},[e]);let o=t?`${t.state}/${t.mood??``}/${t.activity??``}`:``;(0,L.useEffect)(()=>{t&&a.current?.react(t)},[o,e]);let s=(0,L.useRef)(!0);return(0,L.useEffect)(()=>{if(s.current)return void(s.current=!1);n&&a.current?.attend()},[n]),e?{state:`idle`}:r}var Z={$comment:`ForgeQE's release notes, newest first: the web app's What's new and each GitHub Release. See RELEASING.md.`,releases:[{version:`3.3.2`,date:`2026-11-26`,summary:`The Requirements Agent now runs inside ForgeQE's web app as a guided review, recorded steps can be moved, and every chart uses the new look.`,changes:[{kind:`new`,title:`Review requirements in the web app`,detail:`The Requirements Agent now ships with ForgeQE and has its own page under Test design. A review is four steps: Review, where each role and each of your business personas reads it in turn; Spec report, with the quality score and its six dimensions as dials; Refine, where each gap comes with a suggested answer and a proposed change to Accept, Skip or Discuss; and Requirements report, with the BRD, the decisions kept and what is still open. Reviews use the project's knowledge, and decisions you accept are remembered for later reviews.`,to:[`requirements`]},{kind:`improved`,title:`Home says what is waiting on you`,detail:`The Waiting on you count on Home now says what it is, such as "1 run failed today", "2 approvals" or "1 question for you", and clicking it takes you to the list. When nothing needs a reply, it says "See them below" instead of asking you to answer.`},{kind:`improved`,title:`The guides wear your logo`,detail:`The Help guides show the logo and name set in Settings › Appearance in their header and footer, with your small logo as the tab's icon. On the dark look, a dark logo sits on a light plate so it stays visible.`,to:[`appearance`]},{kind:`improved`,title:`Move a recorded step up or down`,detail:`A recording's review has Move up and Move down beside Drop on the Steps tab, so you can change the order of steps before a re-run. The first step and the steps inside a block stay where they are, and each move is kept as a version you can go back from.`,to:[`record`]},{kind:`improved`,title:`Clearer buttons and icons with your brand colour`,detail:`A button in a mid-tone brand colour keeps white words, its fill darkened just enough to read. Icons are a dark slate in every brand, so the brand colour is left for buttons, links and what is selected. Icon tiles look the same on every page, and stay visible in a row you hover or pick. Fields no longer disappear on a white card. Side panels, such as Edit an environment, have the page's background with their cards spaced apart.`,to:[`appearance`]},{kind:`improved`,title:`A chat's side panel shows what it used`,detail:`The workspace panel beside a chat has a This chat section: the tokens used, each agent with how full its context is (amber when it is close to being compacted), and the skills, knowledge, document sections and systems the chat used. A skill shows the logo of its framework or language. The project's tokens are a section of their own. Sections fold open one at a time, with one icon style throughout.`,to:[`chats`]},{kind:`improved`,title:`Easier-to-read chat replies and activity log`,detail:`Replies have more room between paragraphs and list items, and code in them uses the same code block as every other page. The test result card is quieter, with its run command on one line beside Copy. The activity log shows the date and time of each line, on screen and when you copy it.`,to:[`chats`]},{kind:`fixed`,title:`Home's runs this week match the figure`,detail:`The Runs this week card drew 28 days under a one-week number and stretched the cards beside it. It now shows this week's 7 days as short columns, labelled by weekday, with today in the accent.`,to:[`runs`]},{kind:`improved`,title:`Every chart in the new look`,detail:`The charts that were left now match. Trends over time are glowing areas with failures, budgets and slow calls marked. Budgets are meters with warning and limit marks. Splits are thick bars with the shares inside, and a run's recent history is a row of dots with the latest ringed. Impact and Tosca scores are meters marked at their thresholds. This covers Home, Tokenomics, Cost, Observability, Reports, Test management and Regression, and every page of a run's report.`,to:[`appearance`,`runs`]},{kind:`improved`,title:`Breakdowns as rows of figures`,detail:`Where the tokens and money went (by agent, model, kind of run or purpose) is now a list of rows: each with its label, its main figure large, what else it carries beside it, and its share of the whole. You'll see this on Tokenomics, Cost and Observability, and in the report's Spend, Where it went, Every call, Trends and Overview.`,to:[`appearance`,`runs`]},{kind:`fixed`,title:`Small pieces no longer vanish on cards`,detail:`Icon tiles, chips, keys, checkboxes, code labels and zoom buttons were sometimes the same white as the card under them. They now always stand one shade off whatever they sit on, in light and dark mode. Settings no longer draws a card around content that already has its own.`,to:[`appearance`]}]},{version:`3.3.1`,date:`2026-11-26`,summary:`New charts in the report and the web app: each chart now suits its data, in one colour that follows the page and dark mode.`,changes:[{kind:`improved`,title:`Report charts redrawn`,detail:`A run's report has charts that suit each set of figures. Trends shows results per run as bars, run time with its figures, pass rate by feature area as a grid, requirements stacked to their total, and this run's failures by kind as a donut. Tokens per run is a glowing line with a dot for each run, zoomed in so small changes show. The run timeline is a glowing area, spend is a meter against the budget, defects by area are split bars with critical and high on the left, and reliability is a list of figures, each with its change.`,to:[`runs`]},{kind:`improved`,title:`Charts in the web app`,detail:`Home shows your runs over the last 28 days as a glowing area with today marked. Quality shows violations as dot bars with the latest run in full colour, and Test management's trend is a list of figures with their change. Charts follow the theme, so they read the same in light and dark mode.`,to:[`appearance`,`quality`,`test-management`]}]},{version:`3.3.0`,date:`2026-11-26`,summary:`The product map follows calls through an API gateway to the service behind it, and chat replies look calmer, with one code block style everywhere.`,changes:[{kind:`improved`,title:`The product map follows calls through an API gateway`,detail:`A front end that calls a gateway used to show every call as a gap. Now a call through a gateway with a route table reaches the service its best-matching route sends it to, with the route as evidence. The map also catches more: every topic of a subscription list, not only the first; a request's method when it goes through helper functions; and a client's default address when it is set at run time. A database lock such as FOR UPDATE SKIP LOCKED no longer shows up as a table. Code read before is read again the next time you build the map.`,to:[`product`]},{kind:`improved`,title:`Calmer chat replies, one code block style`,detail:`Your messages and a step's details sit on white cards, finished steps show a small tick in the normal icon colour, and only errors and warnings take a colour. A step no longer repeats its label ("Reading" next to "Reading a.ts"). Code in replies, commands to run and the Tosca pages all use one code block, with the language in its header, copy and wrap.`,to:[`chats`]},{kind:`improved`,title:`Search boxes match the cards`,detail:`Every search box, including the top bar's and the command palette's, is a white field with a soft shadow like the cards around it, and the Ctrl K key sits on light grey.`,to:[`appearance`]}]},{version:`3.2.9`,date:`2026-11-26`,summary:`Architecture opens on a zoomable map of the whole product, and the sidebar's categories and areas just fold open, with a pin on every page.`,changes:[{kind:`new`,title:`Architecture: a zoomable map of the whole product`,detail:`Architecture now opens on a Map view: each system is a block that opens into its services as you zoom in, with zoom controls, a minimap and every connection drawn. Pick a part to light its links and see its details below. The flat view is still there as Boxes. You can also move around the map with the keyboard.`,to:[`product`]},{kind:`improved`,title:`The sidebar folds open instead of opening landing pages`,detail:`Categories and areas in the sidebar now only fold open, and an area with one page shows that page directly. Every page has a pin star, so you can pin it from the sidebar. A few names that repeated their folder are shorter, and old links go to the right place.`,to:[`appearance`]},{kind:`improved`,title:`A more consistent look`,detail:`Cards, numbered steps and icons look the same on every page, and the Code map, Impact's code view and the schema diagram have a visible background. Secondary buttons, such as Refresh, Stop and Talk's toggle, sit on a soft tint of the icon colour so they stand apart from the main action.`,to:[`appearance`]}]},{version:`3.2.8`,date:`2026-11-25`,summary:`Tabs work the same on every page and are kept in links and between sessions. A job's page has tabs of its own, and Test management fits its views into four parts.`,changes:[{kind:`improved`,title:`Tabs work the same on every page`,detail:`Each screen has one row of tabs, and tabs inside a part are underlined. A tab you open is in the page's address, so a reload, Back or a shared link opens it, and recording and workflow reviews have addresses of their own. A page reopens on the tab you last used, even after forgeqe web starts again.`,to:[`appearance`]},{kind:`improved`,title:`A job's page has tabs`,detail:`A job's page now has Overview (last run, passes, how many runs in a row have failed, next run, the latest output and the command), Runs, Monitor for a monitor, and Settings, where you turn the job on or off or remove it. Ask and Run sit at the top.`,to:[`runs`]},{kind:`improved`,title:`Test management in four parts`,detail:`Its eight tabs no longer run off the page: they are four parts (Dashboard, Cases, Coverage, Suites and tags) with their views under each. With no plan connected, the page says how to connect one. Old links still work.`,to:[`test-management`]},{kind:`improved`,title:`Buttons show when they are at work`,detail:`A button doing something (Saving…, Testing…) shows a small spinner in place of its icon and cannot be pressed again until it is done.`,to:[`appearance`]}]},{version:`3.2.7`,date:`2026-11-25`,summary:`A new calm look across the app and its docs. More recorded values can change on each run, and API tests fill {{$unique}} and the other built-ins in every call they send.`,changes:[{kind:`improved`,title:`A new, calmer look across the app`,detail:`The whole app has a new design: a soft porcelain background, white cards with a light shadow instead of borders, rounded pill buttons and fields, a calm blue for the main actions, and quieter status colours. Menus and the command palette are frosted glass, and fields are white with a fine edge so they stand out on cards. The breadcrumb in the top bar is now the way back on every page. The help pages and docs site have the same look.`,to:[`appearance`]},{kind:`new`,title:`More recorded values can change on each run`,detail:`More values that were stuck at what you recorded can now be made data in the review. On the web: a typed date ("28 Nov 2026" or 28/11/2026) can be a date from today, a drop-down can pick a date from today or its first free option, and a double-click on a slot or day works like a click. On desktop and mobile, a typed value can be new on each run or a date from today. Booking slots drawn as plain page elements, or whose names change ("10:30 AM, selected"), can be made data too, and "any free one" skips slots marked booked or unavailable.`,to:[`record`,`desktop`,`mobile`]},{kind:`fixed`,title:`API tests fill {{$unique}} and the other built-ins everywhere`,detail:`{{$unique}}, {{$uuid}}, {{$now}} and {{$randomInt}} (in any case) were filled by the Workbench's Send but sent as written by a run of the set, sign-in, load tests and healing, so the API created users named user_{{$unique}}. Every call now gets fresh values, the same wherever they appear in one request. A call whose placeholder cannot be filled is not sent and is named.`,to:[`api-tests`]},{kind:`fixed`,title:`API scenarios keep the request body you gave`,detail:`A planned scenario replaced the body you wrote (for example {{$unique}} names) with the captured example's values. Your fields are now kept, also when a plan is reused, and a note says which ones were set.`,to:[`api-tests`]},{kind:`improved`,title:`API tests: each flow step shows what it sent and got back`,detail:`The Flows view shows each step's request and answer, with credentials masked, for every flow's last run (running one flow no longer hides the others' results). A call that expects an error status keeps its answer too, and a failed step opens its request and answer by itself. The page's title, tabs and actions stay at the top as you scroll, and POST has its own colour in light and dark.`,to:[`api-tests`]},{kind:`improved`,title:`Test cases and Test debt are tabs of Test management`,detail:`They were pages of their own; the sidebar now lists Test management once, and old links open the right tab. On the Agents page, the Advisers, Builders and Operators pages are gone; use the kind filter instead.`,to:[`test-management`,`agents`]},{kind:`fixed`,title:`The sign-in browser stays open until you have signed in`,detail:`Pressing Continue before finishing sign-in (with an account picker still open) closed the window with nothing saved, and the agent opened it again and again. The window now stays open and asks again; Cancel still closes it. A sign-in page outside the login's sites is refused before a browser opens.`,to:[`settings`]},{kind:`new`,title:`The API agent can change an existing call`,detail:`Ask the API page's agent to change a call that is already there (its query, headers, body, name, folder, sign-in, method, path or expected answer) and it edits it in place, with the same checks as the Workbench, instead of refusing it as a duplicate. Credentials still go through a sign-in, never a header.`,to:[`api-tests`]},{kind:`fixed`,title:`A mobile recording replays on the device it was recorded on`,detail:`A replay ignored the device picked on the Record page and used the settings' device instead, so on a TestMu AI plan that covers real devices only the first step was refused although the recording had worked. The recording now keeps its device and the replay uses it unless you name another. When TestMu's plan refuses a session, ForgeQE says it is the plan, not the app, and whether to switch between real and virtual devices or change the plan.`,to:[`mobile`]},{kind:`improved`,title:`Record and replay Dynamics 365 reliably`,detail:`Recording on Dynamics 365 kept ids D365 makes up from position, so a replay with other results or in another session found nothing. The recorder now uses D365's own control attributes (app tiles by their title, controls by their data id), and a replay waits for D365 to be ready after each step, since its controls appear before they work.`,to:[`record`]},{kind:`new`,title:`Get past Chrome's device-certificate box`,detail:`Signing in from a computer joined to Entra ID makes Chrome ask for the device certificate in a box no recording can see, so a replay hung on it. The recording now keeps it as a step, and forgeqe doctor certificate writes the Chrome policy that picks the certificate by itself (for Chrome, Chromium and Edge on macOS, Linux and Windows) for an administrator to install. ForgeQE never installs it.`,to:[`record`,`setup`]},{kind:`improved`,title:`Tables sort by any column and let you hide columns`,detail:`Every data table now sorts when you click a column's heading and has a Columns menu, and a table that fills its page shows the rows that fit, a page at a time, instead of scrolling inside. All chats, Reports, Runs and Jobs are such tables: pick rows to act on several at once, and Jobs shows each job's status and sorts the next run soonest first.`,to:[`appearance`,`chats`]},{kind:`improved`,title:`Chat replies are easier to read`,detail:`Code in a reply no longer sits in a box that matched the page, and a file path with line numbers (src/a.ts:7-11) opens the file. The sidebar's areas no longer open pages that only listed what the sidebar already shows; old links go to their category's page.`,to:[`chats`,`appearance`]},{kind:`improved`,title:`Product understanding has one entry per part in the sidebar`,detail:`Product, Product agent, Architecture, Code map, Runtime, Open questions and Business view are each an entry under Product understanding, named as the page is, instead of tabs hidden a level down. Knowledge search is now Search, the first area of Knowledge. Old links still work.`,to:[`product`]}]},{version:`3.2.6`,date:`2026-11-25`,summary:`Agents is one page to browse like a marketplace, with search on every page. A recorded click on a slot or day can be test data or a date from today, and Anthropic, Gemini and Bedrock join the providers.`,changes:[{kind:`improved`,title:`Agents is one page you can browse like a marketplace`,detail:`The two agent pages are now one. Pinned and most-run agents come first, with their runs and pass rate. You can filter by kind, what an agent works with and status, sort, switch between grid and list, and run or set up an agent from its card. Run counts come from your own runs. Each agent's page has the new look too, with Waiting on you, Working now and Recent chats as cards.`,to:[`agents`]},{kind:`improved`,title:`One search bar at the top of every page`,detail:`Search moved out of the sidebar into a bar across the top of every page, beside where you are (for example Agents / WebPilot). Ctrl K still opens it. On a phone it is an icon.`,to:[`appearance`]},{kind:`improved`,title:`Every page shares the new look`,detail:`Every page now has the same background as Home and Settings, with white cards on it and no white bands across the page. The Data page has the new look as well, with its tabs on their own row and each screen on a card.`,to:[`appearance`,`data`]},{kind:`new`,title:`Record: a click can be test data, a date from today, or any free one`,detail:`A click on an appointment slot or a calendar day failed on a re-run once the slot was booked or the day had passed. The review's Test data tab now lists such clicks, and each can be kept as test data (a data file's rows give another one), a date counted from today in the format the page showed, or any free one (the first enabled one where you clicked). A date that is not on screen moves the calendar to its month. You can name each value, and later checks follow what the run clicked.`,to:[`record`]},{kind:`new`,title:`Desktop and mobile workflows: a click can be data too`,detail:`The same three choices are in the desktop and mobile review: test data, a date from today, or any free control of its kind in the same place. Going back to the click as recorded restores it. Maestro runs whole flows, so it cannot pick any free one; use Appium for that.`,to:[`desktop`,`mobile`]},{kind:`new`,title:`Anthropic, Google Gemini and AWS Bedrock as model providers`,detail:`Settings › Models adds each as a provider with its logo, preset and key variable. ForgeQE calls each at the vendor's own address, never one a profile names, so a key is only ever sent to that vendor. They work for chat and for the browser, desktop and mobile agents.`,to:[`models`,`settings`]},{kind:`new`,title:`Every model your Copilot seat has, in the model list`,detail:`Signing in to GitHub Copilot now adds a profile for each model your seat can use, so Settings › Models and the model pickers list them all. Sync models on the Copilot card adds any new ones later. Profiles you already have are never changed, and a model that cannot read screenshots is paired with one that can for browser, desktop and mobile runs.`,to:[`models`,`settings`]},{kind:`improved`,title:`GitHub Copilot answers sooner`,detail:`Copilot's answer now comes back without waiting for its session to close, and the engine check before a run no longer holds up the app (a passed check is remembered for a day). Copilot is reached over WebSockets, and when they do not work on your network ForgeQE switches to HTTPS by itself and keeps it for a week. FORGEQE_COPILOT_WEBSOCKETS set to 1 or 0 fixes one or the other.`,to:[`models`]}]},{version:`3.2.5`,date:`2026-11-25`,summary:`Settings has a new look, and each agent's own settings move to its page. Named sign-ins on the API page now save and remove as they should.`,changes:[{kind:`improved`,title:`Each agent's settings are on its own page`,detail:`Settings keeps what every agent shares. Browser, Mobile, Desktop, Code, Databases, Quality and Monitor settings now open from a settings button at the top right of their agent's page, in a side panel that also shows the model, prompts, skills and guardrails of that page's agents. Search settings still finds them and opens the right panel, and old Settings links go there too.`,to:[`settings`]},{kind:`improved`,title:`Settings has the Home look`,detail:`Settings now sits on the page like Home, with every group of settings on a card of its own (Environments, Sign-ins, Databases, Prompts, Skills, Guardrails and Settings as text included) and the same icon colour throughout. Settings' menu and the app's sidebar mark the page you are on the same way.`,to:[`settings`]},{kind:`fixed`,title:`API tests: adding and removing a named sign-in works`,detail:`Add and Remove in the Sign in panel failed for a named sign-in. They now save and remove it, and the API page's agent asks you before it removes one.`,to:[`api-tests`]},{kind:`fixed`,title:`API tests: the request preview shows the call's own sign-in`,detail:`The preview now shows the sign-in a call picks, as Send uses it, says so when that sign-in is missing, and hides every secret it fills in, however short. It updates when you change sign-ins.`,to:[`api-tests`]},{kind:`fixed`,title:`API tests: healing keeps each call's sign-in`,detail:`Healing replays each call with its own sign-in and keeps it on the healed call. A call whose sign-in cannot log in is noted, never replayed with another login.`,to:[`api-tests`]},{kind:`fixed`,title:`API tests: a password cannot slip into a sign-in as text`,detail:`A sign-in's login body written as text is read as its fields, so a password inside it (also in a list or a nested field, and under names like pw, pin or otp) is refused as a typed value, as it is anywhere else. Use a secret or variable name instead.`,to:[`api-tests`]}]},{version:`3.2.4`,date:`2026-11-24`,summary:`API tests can use different logins for different calls, and browser runs on a GitHub Copilot model keep going when a network blocks requests that carry screenshots.`,changes:[{kind:`fixed`,title:`Copilot browser runs keep going when screenshots cannot be sent`,detail:`On some networks, a browser step's request to GitHub Copilot failed with "error sending request" whenever it carried a screenshot, while text-only requests went through, and ForgeQE then wrongly switched between models as if each had failed. Now such a failure is treated as the network's: no model is marked failing, and ForgeQE sends smaller screenshots, then none (the agent works from the page's text), for an hour before trying full screenshots again. The error says it is the network or proxy for Copilot's address.`,to:[`settings`]},{kind:`new`,title:`API tests: named sign-ins, so calls can use different logins`,detail:`An API can now keep several named sign-ins besides its own (for example admin and customer, both from the same login call with different credentials), and each call picks which one it uses, on its Headers tab. Add and remove them in the Sign in panel, or ask the API page's agent. Credentials in a sign-in's login are only secret or variable names, never typed values. A call naming a sign-in the API lacks is not sent, rather than falling back to another login.`,to:[`api-tests`]}]},{version:`3.2.3`,date:`2026-11-24`,summary:`Record keeps typing in masked fields and a Tab that changes the page, the API page's agent can set an API's sign-in from its login call, and a chat at work shows how long it has run.`,changes:[{kind:`fixed`,title:`Record keeps typing in masked fields`,detail:`Phone, card and date fields that write the value themselves as you type lost the typing: only the click on the field was recorded. The typing is now kept, read when you move on as in any field, and a password such a field writes is still kept only as its saved login's variable.`,to:[`record`]},{kind:`fixed`,title:`Record keeps a Tab that changes the page`,detail:`A Tab that accepted a suggestion or left a field that is checked as you leave it (a message shows, the field is marked invalid) was not recorded, so a check of that message failed on replay. Such a Tab is now a step, and its replay waits for suggestions as the arrow keys do. A Tab that changes nothing is still not a step.`,to:[`record`]},{kind:`new`,title:`The API agent sets an API's sign-in from its login call`,detail:`Ask the API page's agent to send a call with the token your login call answers, and it sets the API's sign-in to that login call and the token's field, after asking you. It no longer adds a token as a header by hand, and it can take the sign-in off again.`,to:[`api-tests`]},{kind:`improved`,title:`A chat at work shows how long it has run`,detail:`While ForgeQE works on a reply, the chat shows the total time it has been working and the time now, ticking each second, so a long run reads as a total rather than only the time since its last step. Point at it to see when it started.`,to:[`chats`]}]},{version:`3.2.2`,date:`2026-11-24`,summary:`GitHub Copilot models work again after an update to Copilot's software, Copilot sign-in no longer asks you to pick one model, and Help always opens the current docs.`,changes:[{kind:`fixed`,title:`GitHub Copilot models work again`,detail:`Every request to a GitHub Copilot model failed with "argument of type 'CapiSessionOptions' is not iterable" after Copilot's own software changed. Requests reach Copilot again, and a new check against Copilot's real software catches this kind of change before a release.`,to:[`settings`]},{kind:`improved`,title:`Copilot sign-in no longer asks you to pick a model`,detail:`After you sign in to GitHub, ForgeQE lets Copilot pick the model for each request (auto) when your seat allows it, else the best model your seat has, so you are never held to a model that stops working on your seat. To keep one model, choose it under Settings › Models. Settings › Models now describes auto as Copilot picking the model per request.`,to:[`settings`]},{kind:`fixed`,title:`Help always opens the current docs`,detail:`When forgeqe web was started from a copy of ForgeQE's source code, Help could open the old single-page guide instead of the current docs pages. It now builds the docs pages when they are missing and opens them.`,to:[`about`]}]},{version:`3.2.1`,date:`2026-11-24`,summary:`A Mobile apps page with the device shown live, accessibility checks on phones, tablets and native app screens, Workbench sign-in from a login call, and Record that asks where to record a mobile app.`,changes:[{kind:`new`,title:`Mobile apps: an agent page with the device shown live`,detail:`Mobile apps (Automation) works like Desktop apps for Android and iOS: an Agent tab, Workflows that replay on Appium or Maestro, your team's Maestro flows from .maestro/, Runs with heals to accept, and Devices and apps (Appium and Maestro readiness, devices, apps, uploading a build to TestMu AI). While a run works you watch the device's screen and step live, and a chat that runs a mobile tool shows the device beside it. Typed values show only as a secret's name or a length.`,to:[`mobile`]},{kind:`new`,title:`Accessibility personas on phones and tablets`,detail:`Pick a device for an accessibility session (the on picker, or forgeqe a11y --device): every persona then runs with that phone's or tablet's size, pixel ratio, touch and user agent. Screen-reader personas on touch swipe through the reading order and double-tap, and a larger-text setting scales the page. New built-in personas: mobile screen reader (iPhone 15), large text (Pixel 8, 200%) and touch tremor (Galaxy S23).`,to:[`accessibility`]},{kind:`new`,title:`Accessibility checks of native app screens`,detail:`Each new screen a mobile replay or explore reaches on Appium is checked for controls and images without names, fields without labels, small touch targets and duplicate names, and on iOS 17+ with Apple's own audit. Results are written like a browser run's. Turn it off with mobile.accessibility in Settings › Mobile.`,to:[`mobile`,`accessibility`]},{kind:`new`,title:`Sign in to an API with the token a login call answers`,detail:`An API's Sign in can be From a call's answer: name the login call, the field of its answer holding the token (such as data.accessToken) and the header it goes in. Workbench Send, contract runs, flows and heals send the login call first. The token is kept in memory for that send or run only, never saved, and masked in what comes back; a failed sign-in says why and stops the call.`,to:[`api-tests`]},{kind:`new`,title:`Record asks where to record a mobile app`,detail:`Pick where to record (an emulator or simulator here, a phone plugged in, TestMu AI or BrowserStack), then the app, then a device from that place's own list in a side panel with search. An app build the place cannot install is refused before anything starts, saying what to do.`,to:[`record`]},{kind:`improved`,title:`Turn query parameters on and off one at a time`,detail:`Each query parameter under Params has a checkbox: only ticked ones are sent and shown in the address, and unticked ones stay with the call, so you can try combinations without copying the call. A query typed or pasted into the path becomes rows under Params.`,to:[`api-tests`]},{kind:`improved`,title:`Rename a Workbench folder`,detail:`Folder rows have Rename, and asking the agent to rename a folder moves its calls instead of making a second folder. Folders spelled with other case or spacing count as the same folder.`,to:[`api-tests`]},{kind:`improved`,title:`A clearer New recording form`,detail:`Each field has its name above it in a narrower form, Record sits at its end with what it does beside it, and How it works is a side panel. A recording that did not start says what to do for known troubles (a build the cloud cannot install, a refused sign-in, an Appium that did not answer), with the recorder's own words folded underneath.`,to:[`record`]},{kind:`improved`,title:`Test management lists filter with one dropdown`,detail:`Test cases, Automated, Gaps and Tags pick their view from one dropdown with its counts, beside the list's other dropdowns, instead of a row of chips that wrapped or scrolled on a narrow page. The chosen view's note (such as where Gaps reads stories from) is written beside it, and a view that needs a look, such as Failing or Out of step, shows in red.`,to:[`test-management`]},{kind:`improved`,title:`Test management's header looks the same with the agent open`,detail:`Sync, Schedule and Agent are icon buttons at the header's right, named in their tips, so the row no longer changes when the agent panel opens. On a narrower page the tabs move under the title.`,to:[`test-management`]},{kind:`fixed`,title:`Accessibility runs on the cloud browser you ask for`,detail:`forgeqe a11y --browser-provider and a session's chosen provider were not passed on: every persona ran in this computer's browser while the plan said TestMu AI or BrowserStack. Persona runs now use it, and the plan and reports say where the browsers ran. A run that ended before the persona gave its verdict is reported as not tested, not as a persona who could not reach the goal.`,to:[`accessibility`]},{kind:`fixed`,title:`Copilot signs in on networks that block GitHub's downloads`,detail:`When the pinned Copilot version cannot be downloaded (a company network that resets GitHub's release downloads), ForgeQE uses the newest version already on this computer and says which one runs. A dropped download is tried again, and a failure names the hosts to allow.`},{kind:`fixed`,title:`Azure DevOps bugs keep their formatting`,detail:`A bug the agent writes in Markdown (Steps to reproduce, Expected result and so on) is now saved as formatted text in Description and Repro Steps on the first create, instead of one run-on paragraph.`},{kind:`fixed`,title:`Every page has its way back`,detail:`Flaky tests, API tests and the Skills, Prompts and Guardrails pages now show the link back above their title, as Run diff and the other pages do.`,to:[`api-tests`]}]},{version:`3.2.0`,date:`2026-11-24`,summary:`IBM Equal Access as an accessibility rule engine, picked with the standard for each session; a conversion's errors in one line and an Errors tab; conversions that no longer undo each other; and one look for tabs, sections and the sidebar.`,changes:[{kind:`new`,title:`Check accessibility with IBM Equal Access`,detail:`Besides axe-core, accessibility runs can use IBM's Equal Access rules: set Rule engine in Settings, or quality.accessibility.engine: ibm. The standard you pick sets its rules (WCAG 2.0, 2.1 or 2.2 at A or AA, Section 508, EN 301 549, or best practice). IBM has no AAA rules, so AAA is checked at AA and the run says so. Reports name the engine that checked the pages.`,to:[`accessibility`,`settings`]},{kind:`new`,title:`Choose the rule engine and standard for each accessibility session`,detail:`The Accessibility agent's tab has Checked with pickers under the persona chips, remembered on this computer; each session card and its results say what it was checked with. In a terminal: forgeqe a11y --engine, --standard and --best-practice.`,to:[`accessibility`]},{kind:`improved`,title:`A conversion's errors in one line, all of them on an Errors tab`,detail:`A Tosca conversion's Overview shows the latest error in one line, with See all errors. The new Errors tab lists each failed test, latest first: what went wrong, the error as the test printed it, the agent's note, and Fix with the agent, Steps beside the code and Full output.`,to:[`migration`]},{kind:`fixed`,title:`Two conversions in one repository no longer undo each other`,detail:`A conversion puts back anything changed outside its target folder, so two running at once in the same repository reverted and even deleted each other's new files. Now only one Tosca conversion or migration works in a repository at a time: starting another says which one is running.`},{kind:`fixed`,title:`Fix asked twice no longer stops the first fix`,detail:`Pressing Fix with the agent on a second test while a fix was starting stopped the first one halfway, with no reason recorded. The second is now refused until the first ends, for conversions and migrations alike.`,to:[`migration`]},{kind:`fixed`,title:`Accessibility personas run cleaner`,detail:`A persona's zoomed, filtered or forced-colour screenshots no longer become visual regression baselines; a persona stops when it is done instead of recording the same barrier until its step limit; a run whose model never answered is reported as not tested; and a start page holding a user name or password is refused rather than written into every report.`,to:[`accessibility`]},{kind:`improved`,title:`One look for tabs and section headings`,detail:`Every page's tabs carry an icon at one size, and a tab's status is a tick or a cross in its count. Each part of a page has the same heading, with its accent icon, count and actions, and a hairline before it, so parts no longer run together. The highlight slides to the tab or choice you pick.`},{kind:`improved`,title:`A steadier sidebar`,detail:`Pinned is always at the top (with a hint while empty) and the Recently used groups are gone. The page you are on is highlighted the same way wherever it appears, and stays readable on a dark or coloured sidebar.`},{kind:`fixed`,title:`An agent's setup notices no longer cover its question on a phone`,detail:`On a narrow screen the Setup and Ready notices made the message box taller than the screen, so it slid over the agent's question. They now sit just above the message box.`}]},{version:`3.1.9`,date:`2026-11-24`,summary:`Blocks for desktop and mobile apps, an Observability dashboard and opt-in OpenTelemetry export, a redesigned Migration wizard with Tosca inside it, a page for each automated test, and Copilot that steps off a failing model by itself.`,changes:[{kind:`new`,title:`See ForgeQE's own work on the Observability page`,detail:`AI Assurance › Governance › Observability shows ForgeQE's sessions on this computer over the last 7, 30 or 90 days: sessions a day and those with an error, browser runs by how they ended, turn times, tool calls and errors, model calls with their speed and cost, and the latest problems. It reads only ForgeQE's own counts, never what the agents read or wrote, and the agent can answer from it too.`,to:[`observability`]},{kind:`new`,title:`Send ForgeQE's spans and metrics to your OpenTelemetry collector`,detail:`Settings › Observability (or forgeqe telemetry) sends sessions, runs, model calls, tool calls, cost and problems to a collector you name. It is off until you turn it on and type the collector's host, and it never sends a prompt, reply, page text, address or secret. Choose JSON or protobuf, add problems as log records, and preview a sample before anything is sent.`,to:[`settings`]},{kind:`improved`,title:`A sidebar you can see the whole app in`,detail:`The sidebar is now one branching tree: categories and areas fold open in place, the page you are on stands out, and each category still lists the pages you pinned. All chats is pinned by default.`,to:[`appearance`]},{kind:`improved`,title:`Agent pages show what waits on you`,detail:`Each agent's page opens on one board: what needs your answer, what is working now and its recent chats. The chat list sums up each chat's last turn, with its state, times and last steps.`,to:[`agents`,`chats`]},{kind:`improved`,title:`Migration and conversion reports, redesigned`,detail:`New migration walks three steps on a timeline that keeps each answer, with logos for every framework and tests folders picked from a tree, several at once. A Tosca conversion's report has four tabs: Summary, Test cases (failed first), Coverage and Traceability. Its comparison puts the Tosca steps beside the converted test, and the downloads sit in one Export menu.`,to:[`migration`,`tosca`]},{kind:`fixed`,title:`API tests that leave your data as they found it`,detail:`Contract runs now update and delete a record they create themselves, then remove it, instead of changing the example's shared one. An operation's own Basic sign-in or API key can be used alongside a default token. Open operations are no longer reported as broken authentication, and the mock starts with records its contracts accept (--seed). Error messages name the setting or address to fix.`,to:[`api-tests`]},{kind:`improved`,title:`Errors and warnings stand out in logs`,detail:`Error lines show in red and warnings in amber in the activity log, command output, session logs and every job's live output.`,to:[`chats`,`settings`]},{kind:`new`,title:`Blocks for desktop and mobile apps`,detail:`Save steps from a desktop or mobile workflow's review as a block, then put it into another workflow of the same app, or play it while recording by hand. Its test data and secrets become inputs you fill in each time. A recording can start from several blocks played in a row, and a workflow holding an older version of a block can be updated in one click with its values kept. The same is available from a terminal with forgeqe blocks list, save, insert and delete.`,to:[`record`]},{kind:`improved`,title:`Safer, fuller blocks and checks in web recordings`,detail:`A block now has inputs, sections, a description and versions, can be put in after any step, and several can open a recording. A value you make a secret leaves every kept version of the workflow, and Go back never restores it. Count and attribute checks keep their comparison, and patterns that could hang a run are refused.`,to:[`record`]},{kind:`improved`,title:`Earlier versions of a desktop or mobile workflow`,detail:`A workflow's earlier versions are listed in its review, previewed and can be gone back to. Steps that already do what a saved block does can be marked as that block.`,to:[`record`]},{kind:`new`,title:`Each automated test has its own page`,detail:`In Test management, a test opens a page with where it lives, how it was found, its last runs, tags, linked cases (link and unlink there) and its code. The page also fits a phone, with one header and one way to filter each list, like the rest of the app.`,to:[`test-management`]},{kind:`fixed`,title:`Test management keeps ids, links and suites straight`,detail:`A renamed or copied test keeps its own id instead of taking a neighbour's. Robot Framework 7 tags, Gherkin Rules, pytest-bdd 8 names and multi-target dotnet lists are read correctly, and run commands select exactly the linked tests. Suites written to a tracker are never duplicated on a retry, and Xray Cloud test sets are read past their first 100.`,to:[`test-management`]},{kind:`improved`,title:`Tosca migrates from the same wizard as everything else`,detail:`New migration no longer has a separate Tosca tab: any source with .tsu files (git, folder, upload, paste or this project) offers its exports and test cases in the Source step. Conversions and their reports now live under Migration, with old Tosca links redirected. The screens were redesigned: Review leads with what needs a decision, and a conversion shows what needs your attention first.`,to:[`migration`]},{kind:`improved`,title:`Copilot steps off a failing model by itself`,detail:`A Copilot model that times out or errors is avoided for an hour and its requests go to a stand-in that costs no more. You'll see "GitHub Copilot switched models" when that happens. Auto is listed first and recommended at sign-in. Requests now go over plain HTTPS, which company proxies break less often; FORGEQE_COPILOT_WEBSOCKETS=1 turns WebSockets back on.`,to:[`settings`,`models`]},{kind:`fixed`,title:`Browser runs show Copilot's real error and stop sooner`,detail:`Two model calls in a row that fail at the model's end now stop a browser run with the reason, instead of six four-minute steps. Copilot's own error is shown instead of a generic timeout.`,to:[`browser`]},{kind:`improved`,title:`Copilot SDK updated, and an outdated one is named`,detail:`The GitHub Copilot SDK moves to 1.0.35 (runtime 1.0.112). If Copilot refuses the version ForgeQE uses, ForgeQE tells you to run forgeqe update instead of treating the model as failing, and forgeqe doctor shows both versions.`,to:[`settings`,`models`]},{kind:`improved`,title:`Easier to use with a keyboard`,detail:`Tabs that change the page's address are links, a table that scrolls can be reached and scrolled with the keyboard, and a disabled button that says why can still be focused to read its reason. Every page's way back is now the same link.`,to:[`accessibility`]}]},{version:`3.1.8`,date:`2026-11-23`,summary:`Browser runs group their tabs and glow by mode, Workbench Send and Accept keep only what they should, hardcoded test values get caught, and a model that never answers stops the turn.`,changes:[{kind:`improved`,title:`A run's tabs are grouped under its name`,detail:`When the browser agent runs in a visible Chrome, its tabs sit in a tab group named after the run, so you can tell several runs apart at a glance. It needs Chrome 137 or newer started by ForgeQE's own browser; the small helper it adds asks only to manage tab groups and cannot read any page.`,to:[`browser`]},{kind:`improved`,title:`The page's glow shows the agent's mode`,detail:`The frame around the page the agent is working on is now a solid rim with a stronger glow, in the step bar's colour: cyan while thinking, green while acting, violet when replaying from memory, amber when it's your turn.`,to:[`browser`]},{kind:`fixed`,title:`Workbench Send keeps no issued tokens, and history counts each call once`,detail:`A kept Send now takes access tokens and JWTs the API returned out of the saved body and checks, even in a shortened snippet. Other calls' results carry over from the last run that had them, so a heal or a run of only some calls no longer blanks them, and history counts each call's own runs once.`,to:[`api-tests`]},{kind:`fixed`,title:`Accept drafts the expected answer; Save keeps it`,detail:`Accept now only fills What it must answer. Nothing is kept until you press Save, which works out the schema and fields again.`,to:[`api-tests`]},{kind:`fixed`,title:`Hardcoded test-data values are caught after a test passes`,detail:`Once a written test passes, ForgeQE checks the files it changed for this run's test-data values typed straight into fill, type or select calls, and sends each back for the tidy-up round to move into the project's test data.`,to:[`record`,`chats`]},{kind:`fixed`,title:`A turn stops when the model doesn't answer`,detail:`If the model never replies (a timed-out response, or Copilot's "Failed to get response from the AI model"), the turn now ends with a clear reason instead of sitting through more five-minute retries. Rate limits and brief server errors are still retried.`,to:[`chats`,`models`]},{kind:`fixed`,title:`Slow Copilot steps in the browser agent can finish`,detail:`A browser step now waits as long as ForgeQE allows a model call (240 seconds for Copilot), so it is no longer cut off at 180 seconds. BROWSER_USE_STEP_TIMEOUT still overrides it.`,to:[`browser`]}]},{version:`3.1.7`,date:`2026-11-23`,summary:`Tests written from a recording or a browser run put form values in the project's real test data (Examples, parametrize, DataRow), not hardcoded in the script.`,changes:[{kind:`fixed`,title:`Generated tests no longer hardcode recorded form values`,detail:`When Quill writes a test from a recording or a browser run, each typed or chosen value is named as test data and must go into the repository's own mechanism — Scenario Outline Examples, pytest parametrize, MSTest/NUnit/xUnit data rows, or Playwright test.each — then into page objects. Secrets and one-time codes stay on environment variables.`,to:[`record`,`chats`]},{kind:`improved`,title:`Quill follows how the project already drives test data`,detail:`Before writing, ForgeQE notes whether the repository uses Gherkin Examples, parametrize, DataRow, or data files, and steers the new test to put handoff values there instead of a const only in the same file.`,to:[`record`,`chats`]}]},{version:`3.1.6`,date:`2026-11-23`,summary:`API Workbench Send keeps each run in history and updates call status, and Accept fills What it must answer so you can Save the expected response.`,changes:[{kind:`fixed`,title:`Workbench Send keeps history and call status`,detail:`Sending a call from the API Workbench now writes an execution record (timestamp, status, checks) under the API's runs, updates the call icon and the API's aggregate status, and keeps that result after you refresh. Secrets stay masked. Running the full contract suite is unchanged.`,to:[`api-tests`]},{kind:`fixed`,title:`Accept fills What it must answer and enables Save`,detail:`Accept on a successful Workbench response now copies status, content type, shape and fields into What it must answer, opens that tab, and enables Save so you can keep the expected contract. Reloading after Save shows the same expectation.`,to:[`api-tests`]}]},{version:`3.0.2`,date:`2026-11-15`,summary:`Talk tells what's said to it from the room's own talk, can listen to your voice only, and changes settings as you say them. Plus a livelier orb and a smoother "+" menu.`,changes:[{kind:`improved`,title:`Talk knows when you're talking to it`,detail:`After the wake word, Talk acts only on what's said to it: an order or a request. A phone call, a greeting to a colleague or a story told across the room is dropped, nothing shown or kept. A sentence cut off midway waits for the rest instead of being acted on in half. Send when I pause now needs the wake word, and turns it on.`,to:[`voice`]},{kind:`new`,title:`Only my voice`,detail:`Turn on Only my voice in Settings › Voice and Talk acts only on the voice that said the wake word. Another voice in the room goes into the message box instead, for you to look at. Nothing about your voice is saved to a file.`,to:[`voice`,`settings`]},{kind:`improved`,title:`Settings change as you say them`,detail:`The browser window, desktop replays, mobile emulators, the model and the test environment now change at once, like light or dark, with no question first. Settings opens the section, marks the row and says “Changed by voice”, so a misheard change is easy to spot and put back. Production and models outside your profiles are still never picked. Starting work (tests again, a pack, a recording, writing a test) still waits for your yes.`,to:[`voice`,`settings`]},{kind:`fixed`,title:`Talk answers aloud on Home and in a chat`,detail:`Where there's a message box, Talk's own answers, questions and refusals are now spoken, not only written. “The browser settings” opens Settings › Browser, not WebPilot, and names run together (“FlakyTests”) still find their page.`,to:[`voice`]},{kind:`improved`,title:`Talk starts from the message box`,detail:`The Talk buttons in the sidebar are gone: start Talk from the message box, whose button shows whether speech is set up and lights while it listens. New chat has a plain pen icon instead of Atlas's.`,to:[`voice`,`appearance`]},{kind:`improved`,title:`The orb plays while you wait`,detail:`On Home and in the agent builder, the orb above the greeting acts out the kinds of work ForgeQE does in a gentle loop, and shows the waiting orb while a chat or the builder starts. With reduced motion it stays still.`,to:[`appearance`,`agents`]},{kind:`improved`,title:`A smoother "+" menu`,detail:`Moving between the "+" menu's levels (Environment, Tools, Back) now slides the pane and resizes the box smoothly instead of jumping.`,to:[`chats`]}]},{version:`3.0.1`,date:`2026-11-15`,summary:`Talk does several things in one request, changes a few settings, starts work after a yes and answers ForgeQE's questions. Plus emulators without a window, and a coding agent that follows your instructions.`,changes:[{kind:`new`,title:`Several things in one request`,detail:`Ask Talk for more than one thing at once (“switch to dark mode, open the runs page and ask ForgeQE why the last run failed”) and it does them in order. Ask “what's on this page?” or “why did this run fail?” for a sentence or two about what you're looking at, “how many runs failed this week?” for the counts, and “show only the failed runs” to filter Runs.`,to:[`voice`]},{kind:`new`,title:`Start work and change settings by voice, after a yes`,detail:`Talk can run a run's failed tests again, run a regression pack (here or on TestMu), record an app your settings list, or write a test from the open recording, each only after you say yes. It changes light or dark and its own language, voice and wake word at once, and after a yes the browser window, desktop replays headed or headless, mobile emulators shown or hidden, the model in use and the test environment, saved and audited as Settings saves them. Never a production model or environment; other settings stay in Settings.`,to:[`voice`,`settings`]},{kind:`new`,title:`Answer ForgeQE's questions by voice`,detail:`Turn on Answer questions by voice in Settings › Voice and Talk reads ForgeQE's question and its options aloud. Say one, then yes to send it; a yes on its own never picks an option. A question about production, and a pause that waits for you, still need a click. It's off until you turn it on, and only a click turns it on.`,to:[`voice`,`chats`]},{kind:`new`,title:`Emulators without a window`,detail:`A device in Settings › Mobile can name an Android emulator (Emulator to start) for Appium to start for the run, and Emulators without a window starts emulators and iOS simulators with no window. Real devices and cloud devices are never affected.`,to:[`settings`]},{kind:`improved`,title:`Talk is the mascot in the corner`,detail:`On a page with no message box, Talk is the mascot of the agent you're talking to, in the bottom-right corner, listening, thinking or speaking. Where there is a box, the box is the conversation and nothing floats over it.`,to:[`voice`,`appearance`]},{kind:`improved`,title:`Talk speaks without pauses`,detail:`Talk starts speaking sooner and no longer pauses between sentences. It now says one short piece while it prepares the next. App names are heard the way you say them (“key pass” finds KeePass), and Talk no longer asks you twice before starting something.`,to:[`voice`]},{kind:`improved`,title:`The coding agent follows your instructions`,detail:`What you ask for when a test is written (“tag it @regression”, “follow CONTRIBUTING.md”) now reaches the coding agent, and it reads the repository's own contributing rules. A test the reviewer rejected is no longer kept as passed, and ForgeQE's agent leaves the coding agent's test to the coding agent and its reviewer instead of rewriting it.`,to:[`code`]},{kind:`fixed`,title:`API runs, run logs and token counts`,detail:`“Run GET /categories only” now runs just that call. A no to calls that change data is taken as your answer instead of being asked again. Two chats started in the same second no longer share one log, Atlas is listed on every run it worked on, and browser agent tokens and the coding agent's work in forgeqe run --direct, record and code are counted on the Runs and Cost pages.`,to:[`api-tests`,`chats`]}]},{version:`3.0.0`,date:`2026-11-15`,summary:`Robot Framework as a migration target, your own migration targets without waiting for a release, and Talk gets a wake word, Hindi and a tidier chat box.`,changes:[{kind:`new`,title:`Migrate to Robot Framework`,detail:`Robot Framework with the Browser library is now a migration target, and a framework the coding agent writes: a case whose Framework line says Robot Framework gets a .robot suite with shared keywords in resources/, and its runs keep videos, screenshots and Robot's own log as evidence. ForgeQE also installs what a Python test project needs, with uv, Poetry, Pipenv or pip, from the project's own requirements file.`,to:[`migration`]},{kind:`new`,title:`Add your own migration targets`,detail:`A framework ForgeQE was never taught can be a target: describe it in .forgeqe/migrate-targets/<id>.yaml (its language, the command that runs one test, what counts as evidence) and approve it at a terminal with forgeqe migrate target approve. Migrations and Tosca conversions can both use it; forgeqe migrate targets and forgeqe tosca targets list them with their approval state.`,to:[`migration`]},{kind:`improved`,title:`A migrated test must prove it checks something`,detail:`Before a migrated test is kept, ForgeQE runs a copy of it with the values its source expected made wrong. That run has to fail: a test that passes either way is not migrated, whatever its framework. The migration report shows this as Checks proved.`,to:[`migration`]},{kind:`new`,title:`Talk: a wake word, and Hindi`,detail:`Switch on the wake word and Talk acts only on what starts with “Hey ForgeQE” (or your app's name), then listens for follow-ups until 20 seconds of quiet. Talk also listens and answers in Hindi. It keeps hearing you while ForgeQE works, so “stop” stops it, and once the work is done it says a short summary instead of reading the whole reply back.`,to:[`chats`]},{kind:`improved`,title:`A tidier chat box, and Settings › Voice`,detail:`The box's toolbar is now the “+”, Refine, Talk, the model and Send; attach, environment and tools are rows of the “+” menu. Talk's language, voice, “Send when I pause” and the one-time speech setup moved to Settings › Voice, and Talk stays greyed out until speech is set up.`,to:[`settings`,`voice`]},{kind:`improved`,title:`Agent cards open where the agent works`,detail:`The Tosca and Migration cards on the Agents page, in the command palette and in Browse open their own pages, and each page has an “Ask the … agent” link back to its chat. Bridge goes by one name everywhere, in the terminal too.`},{kind:`fixed`,title:`Talk from an npm install, and on ARM64 Windows`,detail:`Talk's voice agent stopped as it started after an npm install, and the data engine could not load; both now ship in the package. Speech setup on ARM64 Windows failed for want of a native wheel; it now uses an x64 Python there.`}]},{version:`2.10.5`,date:`2026-11-14`,summary:`Record a phone app by hand, with Appium set up for you; talk to ForgeQE out loud; agents come alive as mascots; and API tests learn from your runs and recordings.`,changes:[{kind:`new`,title:`Record a mobile app by hand`,detail:`Record › Mobile app shows your phone's or emulator's screen on the page, here or on TestMu AI or BrowserStack. Tap, type, swipe and check on it: each action is done on the device and saved as a step that replays with no model. Passwords are typed from your saved secrets by name, a dropdown choice is one step, and the recording opens in a review where you add checks by clicking the app's picture and replay it.`,to:[`record`]},{kind:`new`,title:`Appium is set up for you`,detail:`For an emulator or phone on this computer, forgeqe mobile setup (or Settings › Set up › Install what's missing) installs Appium and its drivers, and every run starts Appium by itself when it is needed and stops it after. ForgeQE finds the Android SDK and Java on its own. Devices on TestMu AI or BrowserStack need none of this.`,to:[`settings`,`setup`]},{kind:`new`,title:`Talk to ForgeQE`,detail:`Talk (under Search, and in every chat box) is a voice assistant of ForgeQE's own. Say “open the model settings”, “where are my failed runs? open it” or “search for TestMu”: it moves around the app at once, with no chat, and asks when it is not sure. Ask for real work, such as “get me the ACs for 256 from ADO”, and ForgeQE does it and reads the answer aloud as it arrives; say “stop” to stop it. In a chat, what you say goes into the box to change or Refine first. Speech runs on this computer; Settings › Models picks Talk's model.`,to:[`chats`]},{kind:`new`,title:`Agents as living mascots`,detail:`Agents in the chat, on Home and on the Agents pages are drawn as small animated mascots, a robot or a character in its job's outfit, each in its own colour. Click one and it reacts; it rests when idle and sleeps when unused. Settings › Appearance switches between robots, characters and the old icons.`,to:[`settings`,`appearance`]},{kind:`new`,title:`A theme from one colour`,detail:`Settings › Appearance › From one colour turns a single colour into a family of matching shades and, if you want, sets the sidebar, buttons and page from it, keeping text readable.`,to:[`settings`,`appearance`]},{kind:`new`,title:`API tests learn from your runs and recordings`,detail:`ForgeQE compares several runs of the same flow to tell which parts of a call you choose (an id, a search word) and makes them inputs. A recording made by hand now keeps the app's API calls in full, with credentials removed, so API tests can be made from it. A contract the app outgrew can be healed, and nothing changes until you agree.`,to:[`api-tests`]},{kind:`improved`,title:`Personas and files in any message`,detail:`@files and /persona commands are shaded in every chat box, and several personas can be named anywhere in a message (check @steps.json as /sam and /priya). Refine keeps them. Replies now type out smoothly as they arrive.`,to:[`chats`]},{kind:`improved`,title:`Long replies are easier to read`,detail:`A long answer now reads as sections: clear heading sizes, a line between sections, and lines that stop at a comfortable width. Code and tables still use the full width.`,to:[`chats`]},{kind:`improved`,title:`Sources tucked away`,detail:`The line an answer ends with naming its sources (work items, run folders, reports) now folds under Sources at the end of the reply, one click away, and Talk never reads it or file paths aloud.`,to:[`chats`]},{kind:`improved`,title:`A calmer, more consistent look`,detail:`The web app's spacing, text sizes and shadows now follow one scale, so pages feel roomier and headings stand out by size alone. Body and chat text are a little larger.`},{kind:`improved`,title:`Chats start faster`,detail:`Azure DevOps, GitHub and your other connected systems no longer all start when a chat opens: each starts only when the chat first needs it, so nothing signs in that is not used.`},{kind:`improved`,title:`Searches use the site's own filters`,detail:`When you ask for results under a price or the cheapest few, the browser agent now uses the site's filter or sort instead of reading every page, and a request to generate a script hands the test to the coding agent and its reviewer.`},{kind:`fixed`,title:`Your team's own work item states`,detail:`Release readiness, duplicate bug checks and test case reuse now follow the states your Azure DevOps or Jira project really uses (In Test, Verified, Shipped…), so finished work no longer counts as open and a bug is not filed twice.`},{kind:`fixed`,title:`GitHub Copilot sessions`,detail:`An agent's reply is no longer cut short in the chat, an agent can no longer loop asking for tools it already has, and a test job whose browser cannot start stops with how to fix it instead of spending tokens.`}]},{version:`2.10.4`,date:`2026-11-13`,summary:`Your pinned pages stay pinned after you restart ForgeQE, dropdowns are readable in dark mode, and the recording window fits your screen.`,changes:[{kind:`fixed`,title:`Pins stay after a restart`,detail:`Pinned pages, recent pages and starred agents were cleared each time you started forgeqe web again. ForgeQE now keeps them for you, so they are there in every new session. Pins you already have are kept from your next session on.`},{kind:`fixed`,title:`Dropdowns in dark mode`,detail:`In dark mode, the open list of a dropdown, such as the new recording's Start on, showed most options as light text on white on Windows. The list now uses the dark theme's colours.`,to:[`appearance`]},{kind:`fixed`,title:`The recording window fits your screen`,detail:`On a Windows display set to a larger scale (125% or more), the recording window was bigger than the screen, so its bottom and scroll bar were out of sight. It now opens maximised.`,to:[`record`]}]},{version:`2.10.3`,date:`2026-11-13`,summary:`Checks added in a recording's review now hold on every step and every run, re-runs no longer click into the middle of a page, and the review warns when a locator or a checked value will not hold next time.`,changes:[{kind:`fixed`,title:`Checks of a text inside a longer text`,detail:`A text you pick to check in the review, such as "(user and pass: admin)" next to a link, is found wherever it shows on the page. Before, it had to be an element's whole text, so the check failed on a re-run although the page showed it.`,to:[`record`]},{kind:`fixed`,title:`Every step has its picture in the review`,detail:`Steps 8, 9, 18, 19 and so on showed no picture in the review, and no check could be added after them ("Step 10 has no screenshot to check against"). Recordings made before this fix show their pictures too.`,to:[`record`]},{kind:`fixed`,title:`Re-runs no longer jump to another page`,detail:`A click on the page itself, such as the one the browser sends after you choose from a dropdown, is no longer a step. A click on the empty space of a section is replayed where you clicked, not in the middle of the section, where a link may be.`,to:[`record`]},{kind:`improved`,title:`Values that change on every visit`,detail:`ForgeQE notices a text that is different each time the same page loads, such as a random label or one message of a few, and checks that a message shows rather than which one. The review says why.`,to:[`record`]},{kind:`improved`,title:`The review says when a locator will not hold`,detail:`A step found by an id a framework made up, or by a name that holds data like a price, says so in the review, and you can pick another of its locators. The test written from the recording prefers a steady locator.`,to:[`record`]},{kind:`fixed`,title:`Location in replays`,detail:`A recording that used your location replays with a fixed test location, the same on every run, never your own. The test written from it is told which browser permissions the site needs.`}]},{version:`2.10.2`,date:`2026-11-13`,summary:`Recording now captures the hard parts of real pages, from frames, shadow DOM and new windows to hover menus, gestures and keyboard-driven widgets, and their replays run on Windows.`,changes:[{kind:`improved`,title:`Recordings that replay on tricky pages`,detail:`Recordings now replay on pages built with hover menus (including menus inside menus), web components, framesets, lazy content that loads as you scroll, and buttons whose label or icon comes from CSS. A Close, Delete or OK button that appears more than once is found through the toast, row or card it belongs to. Tested on every example page of the-internet.herokuapp.com on Windows.`,to:[`record`]},{kind:`new`,title:`New windows, gestures and keyboard widgets`,detail:`Steps in a window a link opens are recorded there. A press and hold, a swipe, several choices in a multiple-select list, and arrow keys or typing on custom dropdowns, sliders and canvases are now steps. Moving the pointer off the top of the page, which some sites answer with an offer, is a step too.`,to:[`record`]},{kind:`improved`,title:`Back, scrolling and suggestions replay as you did them`,detail:`Going back right after a click, or back from a form's result page, is kept. A replay scrolls to where you stopped scrolling, and waits for a search box's suggestions before choosing one.`,to:[`record`]},{kind:`improved`,title:`Sign-ins and one-time codes`,detail:`A password you type is matched to the right saved login, or read from the site's own variable when it is none of them; the password itself is never recorded. A one-time code the page shows, kept as a variable, is typed from that variable. Permissions you allowed while recording, such as your location, are allowed in the replay.`,to:[`record`]},{kind:`fixed`,title:`Downloads and hovers in Edge replays`,detail:`Replays in Edge no longer get stuck on Edge's own downloads page after a download, and a menu opened by a hover stays open for the next step.`,to:[`record`]},{kind:`new`,title:`Unpin a page from the sidebar`,detail:`Hover a page in the sidebar's Pinned list and click its star to unpin it.`}]},{version:`2.10.1`,date:`2026-11-12`,summary:`Attach Word, Excel and PowerPoint files to a chat, and recordings now capture downloads, right-clicks, scrolls, tooltips and sites behind a browser sign-in, with more kinds of checks.`,changes:[{kind:`new`,title:`Attach Word, Excel and PowerPoint files`,detail:`Drop a .docx, .xlsx or .pptx file (up to 5 MB) into a chat and the agent reads its text. ForgeQE keeps a plain-text copy beside the file, without running any macro or formula. Older .doc, .xls and .ppt files are refused, with the format to save them as.`,to:[`chats`]},{kind:`new`,title:`Downloads are recorded and checked`,detail:`Clicking Export or Download while recording adds a download step with the file's name and size, matched by a pattern when part of the name changes, like a date. The replay waits for the file and fails if it does not arrive or is empty.`,to:[`record`]},{kind:`new`,title:`Right-clicks, scrolls and tooltips`,detail:`Recordings now capture a right-click on the page's own menu, and scrolling of the page or of a list that loads more at its end. To check a tooltip or hover card, press the leader key and then H: the hover is kept, and you can pick the tooltip's text as a check in the review.`,to:[`record`]},{kind:`new`,title:`More kinds of checks`,detail:`In a recording's review, a check on an element can now say it is enabled, it is disabled, how many elements match (as a number), or what an attribute's value is. Changing what a check looks at resets how it compares, so what you see is what is saved.`,to:[`record`]},{kind:`new`,title:`Sites behind the browser's own sign-in`,detail:`A staging site that shows the browser's sign-in box (basic auth) now replays instead of stopping at a 401. The replay signs in with the saved login for that site. If there is none, the recording tells you to save one.`,to:[`record`]},{kind:`fixed`,title:`Steadier replays`,detail:`Replays wait for spinners inside frames too, such as in a payment form, and no longer wait forever for a spinner the page had hidden. On Windows, Stop now closes the recording's browser window.`,to:[`record`]}]},{version:`2.10.0`,date:`2026-11-12`,summary:`Recordings capture drag and drop and browser dialogs and replay them the same way, Stop closes the browser at once, and dropdowns and hover menus replay reliably.`,changes:[{kind:`new`,title:`Drag and drop is recorded`,detail:`Dragging a card, moving a list item or map pin, or sliding a slider becomes one step in your recording. The replay drags with the mouse just as you did, so lists and maps that only start dragging once the pointer moves work too. Selecting text or sweeping over the page is not mistaken for a drag.`,to:[`record`]},{kind:`new`,title:`Browser dialogs are recorded`,detail:`Alerts, confirms and prompts now appear while you record, and your answer (OK, Cancel or the text you typed) becomes a step. The replay gives the same answer, checks the page showed the dialog, and dismisses any dialog the recording did not have.`,to:[`record`]},{kind:`fixed`,title:`Stop closes the browser at once`,detail:`Pressing Stop closes the recording's browser straight away, and ForgeQE saves the recording afterwards. Before, the window stayed open for several seconds while it saved, so Stop looked broken. A recording's video is no longer empty when a site moves the tab to its own process on the first page load.`,to:[`record`]},{kind:`fixed`,title:`Dropdowns and hover menus replay reliably`,detail:`A menu or time list that opens after a click is no longer recorded as a hover that is gone on replay. Locators leave out classes that change with the pointer, such as active or selected, so a picked item is found again on replay.`,to:[`record`]}]},{version:`2.9.9`,date:`2026-11-12`,summary:`Business assurance tests what people could make your business lose, maps draw as architecture diagrams, recordings explain every step, and personas open in a side panel with skills and knowledge of their own.`,changes:[{kind:`new`,title:`Business assurance`,detail:`A new agent tests your software the way customers, staff and opportunists would use it: over-refunds, coupons redeemed twice, rules bypassed on another journey, self-approval. It reads your product's rules, ranks the risks, and runs investigations on a test environment, saying what the business intended and whether it held. Findings are written for leaders, product, risk and engineering.`,to:[`agents`,`business`]},{kind:`new`,title:`Simulate a whole population`,detail:`Business assurance can build a population from your personas (mostly honest customers, some opportunists, a few insiders) and let it trade on a test environment over simulated days. Checks name who broke a rule, so a loss hidden in the totals shows up, for example 7 of 67 refunds paying back more than was paid. Ask why lets you question one person about what they did. The same seed always gives the same people.`,to:[`agents`,`business`]},{kind:`improved`,title:`Maps drawn as architecture diagrams`,detail:`The Code map, the Impact map and the Product page's links share one graph. Code map shows all your repositories as the product, with the data stores and systems they share, and opens a repository arranged by layer: front end, API, services, data access, with tests and shared code at the sides. The Impact map puts the changed files at the top and each step away below them.`,to:[`product`,`code`]},{kind:`improved`,title:`Recordings explain every step`,detail:`A recording's review shows what each step recorded: the element, the best locator and the others with whether each was unique, its frames, and what was typed (a password only by its variable). A recording started from the web app has a Stop button on the page. Every recording and re-run keeps a log. Checks picked from a step's picture now reach text inside web components and frames.`,to:[`record`]},{kind:`new`,title:`Personas with their own skills and knowledge`,detail:`A persona opens in a side panel, with Edit (or Copy to edit for a built-in one). It shows the skills and documents the persona uses, with suggestions to add. ForgeQE can write skills and knowledge just for that persona, when you save it or with Generate, used only when someone works as that persona. New persona is a side panel too, and the Persona pages are linked at the top right.`,to:[`agents`,`persona`]},{kind:`improved`,title:`A calmer, more consistent web app`,detail:`Pages change smoothly: the old page stays until the new one has its data, then fades over. The icon colour you choose in Appearance now reaches every icon, button, link and the entry you are on, without turning the page pale. Recent chats have icons, and Needs a look marks a failure with a clear bar in its colour.`,to:[`settings`,`appearance`]},{kind:`fixed`,title:`Token totals add up`,detail:`A chat's All agents total now stays the sum of its agents, instead of showing only Atlas's use at the end of a turn. Each agent says the tokens it used and how full its context is, and every page words token breakdowns the same way.`}]},{version:`2.9.8`,date:`2026-11-12`,summary:`ForgeQE installs a test project's packages before running its tests, Cypress cases get Cypress tests, and agents ask you before they install, run or change anything they may not.`,changes:[{kind:`fixed`,title:`Cypress cases get Cypress tests`,detail:`A test case whose Framework line says Cypress is now written as a Cypress test, in the folder where your Cypress suite lives. A test in another framework is never run, kept or linked to the case, so a Playwright test no longer passes for a Cypress case.`},{kind:`improved`,title:`Packages installed before tests run`,detail:`When a test project's packages are missing, ForgeQE installs them with the project's own lockfile before the test runs. If a run says Cypress, a Playwright browser or a package is missing, it installs that once and runs again. A failed install stops the job with the reason in plain words and the command to run yourself.`},{kind:`new`,title:`Agents ask before they install, run or change`,detail:`Quill, the healing agent and Link no longer change your packages themselves. When they need a package, a command their shell refuses, or a change to package.json, requirements.txt or pyproject.toml, ForgeQE shows you exactly what it would do and acts only on a yes. A no, or a run nobody watches, changes nothing and the test is reported as blocked. A shell, a git push, .npmrc and lockfile edits are always refused.`,to:[`settings`,`code`]},{kind:`new`,title:`Choose how agent requests are answered`,detail:`Settings › Code › Help it gets › When an agent asks for more (code.requests): ask a person each time (the default), allow after ForgeQE's checks without asking, or refuse every request.`,to:[`settings`]},{kind:`improved`,title:`A simpler Mask page`,detail:`Mask's page has one message box. Its own Agent chat is gone, because you use a persona from any agent's chat (/priya …). Personas is the first screen, and its tabs sit beside the persona count.`,to:[`persona`]}]},{version:`2.9.7`,date:`2026-11-11`,summary:`A suite no longer stops after its first case writes a test, and env.yaml variables that point to a .env secret are typed as that secret instead of its name.`,changes:[{kind:`fixed`,title:`A suite no longer stops after its first case writes a test`,detail:`Running test cases against an environment could hang once a passing case started writing its test, and every later case showed Not run: the suite was stopped. The suite now carries on through every case.`},{kind:`fixed`,title:`env.yaml variables that point to a .env secret`,detail:"A variable like TestPassword: password, ${NAME} or env:NAME was typed literally, so the browser agent typed the word password. It is now a secret: the value comes from that .env variable, is typed only on the environment's own sites and never appears in a brief or log. A literal password in env.yaml stays reported and is never copied into a converted env.yaml."}]},{version:`2.9.6`,date:`2026-11-11`,summary:`Search your documents and past chats without a vector database, a Librarian you can correct, a recorder that handles frames, shadow DOM, uploads and CAPTCHAs, replays that wait for the page, and ServiceNow test cases.`,changes:[{kind:`new`,title:`Search your documents without a vector database`,detail:`ForgeQE splits your knowledge notes, documents and docs folders into sections and finds the ones that answer a question, with no embeddings or database to set up. Turn on Skimmer to let the model pick sections. Use forgeqe knowledge docs index, search and outline, or Ask the documents on the Knowledge page. PDF, Word and Excel are indexed when you ask.`},{kind:`improved`,title:`Agents read only the sections they need`,detail:`Skills and knowledge notes now reach an agent as the sections that fit its task, not whole files: 55 to 80% less text on the built-in skills. The same question to Skimmer is answered from its cache, with no model call.`},{kind:`new`,title:`Search what was said in every chat`,detail:`Typing three or more letters in All chats also searches what was said in every kept chat, the terminal's included, and opens a web chat at that turn. Terminal chats are now kept, with secrets taken out. In this chat lists the document sections the agent used.`,to:[`chats`]},{kind:`improved`,title:`Long chats carry over what matters`,detail:`A long chat reopened or moved to another model now sends its last four turns and the earlier turns about your new message in full, and every other turn as one line, instead of only the last 20 turns.`},{kind:`new`,title:`Librarian: see what ForgeQE understood and correct it`,detail:`Ask Librarian what ForgeQE knows about your product, then correct it. Each change to a knowledge note, project skill, team prompt or product rule is shown as a diff and written only when you approve it. Where sources disagree, it asks which is right. Available from forgeqe knowledge chat, the chat and the Knowledge hub.`},{kind:`improved`,title:`Recorder handles frames, web components and canvases`,detail:`Steps inside frames, including another site's frame within a frame, are recorded and replayed. Menus inside web components no longer record as a click on the whole component, closed shadow roots are recorded too, and a canvas click keeps where it landed.`,to:[`record`]},{kind:`improved`,title:`Locators for buttons that repeat`,detail:`When the same button appears on every row or card (Remove, Book now), the recorder anchors it on the row or card by text only that one has, so a replay picks the right one even after the list is reordered.`,to:[`record`]},{kind:`improved`,title:`Uploads from anywhere`,detail:`A file picked from outside the project, such as Downloads, is copied into the recording. Browse buttons and files dropped on a drop zone are recorded and replayed. Hidden files, files named like credentials and files over 25 MB are still refused.`,to:[`record`]},{kind:`new`,title:`CAPTCHAs become one step a person solves`,detail:`A reCAPTCHA, hCaptcha, Turnstile, Arkose or GeeTest is recorded as one step, not its clicks. A replay with a visible browser waits up to 3 minutes for a person to solve it. The written test runs where the CAPTCHA is turned off and never tries to get round it.`,to:[`record`]},{kind:`improved`,title:`Replays wait for the page`,detail:`After every replayed step, the page gets up to 10 seconds to finish loading, finish its own background calls and clear any spinner the step brought up. Pages that only work once their data has loaded now pass. In the review you can add a wait after a step: until the page loads, until a text shows or goes, or a pause.`,to:[`record`]},{kind:`new`,title:`Checks that compare`,detail:`Change a check in the review to compare by is exactly, starts with, ends with, does not contain, matches a pattern, or a number that is equal, above, below or between two values, with case optionally ignored.`,to:[`record`]},{kind:`improved`,title:`Re-run history and step pictures`,detail:`Each re-run keeps a picture of the page after every step, and a failed step's opens by itself. The Runs tab lists the latest 30 re-runs, even after forgeqe web restarts, and the History tab is now called Versions. Videos open in a new tab.`,to:[`record`]},{kind:`new`,title:`ServiceNow test cases`,detail:`Read tests and their steps from ServiceNow Test Management by number, sys_id or query (read only). Set it up on Settings' ServiceNow card.`,to:[`settings`]},{kind:`improved`,title:`Test case ids found in the right system`,detail:`A test case id is looked up in the system it belongs to, from its prefix, a link or sources.id_routes. When more than one system could hold it, ForgeQE asks which instead of guessing.`},{kind:`fixed`,title:`Run one case from a Markdown file`,detail:`A Markdown file with common steps and a heading per case (5458-02, TC-3) can now run a single case, with the common steps included. A precondition is taken as met by the test data and no longer stops a run or fails one that reached the expected result. A typed password or one-time code is no longer shown in a step's line.`}]},{version:`2.9.5`,date:`2026-11-11`,summary:`Writing a test from a recording uses far fewer tokens: the coding agent no longer loops on re-reads and repeated edits, and a stopped job carries on fresh. Accessibility checks keep their zoom and no longer pass when nothing ran.`,changes:[{kind:`improved`,title:`The coding agent stops going round in circles`,detail:`When the coding agent re-reads files that have not changed or keeps editing the same files without running the test, ForgeQE stops it and asks for its test. code.repeat_after (default 6) and code.edit_after (default 8) set when, also in Settings. The planner keeps to 15 steps and no longer looks up the same thing twice.`,to:[`settings`]},{kind:`improved`,title:`A stopped or extended job carries on fresh`,detail:`Running a stopped job again, or raising its token budget, now starts a short new session from the job's brief, the agreed plan and the files already written, instead of re-sending the whole earlier conversation on every call.`},{kind:`improved`,title:`Live browser when the replay cannot get through`,detail:`When ForgeQE's replay of a recording cannot reach its last page, the coding agent gets the live browser from the start instead of patching steps blind.`},{kind:`fixed`,title:`Unattended writing no longer asks Carry on?`,detail:`A test written with nobody watching stops at code.max_tokens instead of asking. When a person is asked, Carry on? now says whether the test has been run yet and how many model calls the job made.`},{kind:`fixed`,title:`A stopped job says truthfully what it left`,detail:`A stopped job now lists the files it changed and whether the test ever ran. It no longer says Test run 1 failed or Test written when no test ran.`},{kind:`improved`,title:`See why GitHub Copilot calls cache so little`,detail:`With a Copilot model profile, each call logs a line with its input and cached tokens (never the prompt's text), and the low-cache notice points to it.`},{kind:`fixed`,title:`Accessibility checks keep their zoom and report honestly`,detail:`The low-vision persona's 200% zoom is kept after the page changes. A persona whose run broke (no model, no browser) is now Not tested and fails the check, and forgeqe a11y exits 1 instead of showing a pass. A stopped session lists the personas it never ran, and every persona run includes the axe-core rule checks.`}]},{version:`2.9.4`,date:`2026-11-11`,summary:`Business personas any agent can act as (/priya, /sam and more), BDD skills for Gherkin feature files, Dynamics 365 know-how for the browser agent and Quill, and project logos that fit the sidebar by themselves.`,changes:[{kind:`new`,title:`Mask: test as the business would`,detail:`A business persona is someone who accepts the software the way the business does: a payments expert, an end user, a compliance specialist or an operations manager, each with what they check before they accept it. Five are built in, and Mask drafts your own from a description.`,to:[`agents`,`persona`]},{kind:`new`,title:`/priya, /sam and other persona commands`,detail:`Start a message with a persona's command (/priya, /sam, /dana, /lee, /alex, or your own) in the terminal, forgeqe run or any web chat, and the agent works as that persona. The chat box suggests them after /.`,to:[`agents`,`persona`]},{kind:`new`,title:`Persona page`,detail:`Mask's page has an Agent tab to describe a person and save the persona it drafts, a list of personas with what each checks, and Run as this persona. Each saved persona also gets a readable Markdown profile.`,to:[`agents`,`persona`]},{kind:`new`,title:`Share personas between projects`,detail:`Export personas as a file and import them in another project, from the page or with forgeqe persona export and import. An import adds only new personas, never replaces one, and is refused whole if anything in it is not a persona.`},{kind:`new`,title:`BDD feature files`,detail:`Tests can be written as Gherkin feature files for Reqnroll/SpecFlow, cucumber-js, playwright-bdd, Cucumber-JVM, behave or pytest-bdd. Before writing one, the agent asks whether you want a Scenario Outline with Examples, a Background and Rule blocks, and it writes scenarios from the acceptance criteria.`},{kind:`new`,title:`Dynamics 365 know-how`,detail:`The browser agent knows Dynamics 365's own names for its controls (site map, Quick Create, Quick Find, subgrids, lookups, business process flow and more), and tests written for D365 use reliable locators and wait for the page to settle.`},{kind:`improved`,title:`Project logos fit the sidebar by themselves`,detail:`Settings › Appearance › Logo size has Fit automatically, now the default: the logo is sized from its shape so it is seen and its words can be read. A logo with no project name fills the brand area, and a logo with its own background gets rounded corners instead of a second plate.`,to:[`settings`,`appearance`]}]},{version:`2.9.3`,date:`2026-11-11`,summary:`A redesigned Record page that follows each recording to its test, desktop recordings you can review and edit, video of recordings and replays, ForgeQE working on every Windows, and a hosted mode for forgeqe web.`,changes:[{kind:`improved`,title:`Record page redesigned`,detail:`Record now opens on headline numbers, the New recording form beside a short How it works, and a table of recordings with search and filters. Each row shows its test case, browser, duration and what it produced, with a menu to open, write the test, open the chat, read the steps or delete.`,to:[`record`]},{kind:`new`,title:`See the test written from each recording`,detail:`Every web recording says whether it has a test: No test yet, Writing the test, Test written with its file, Test out of date, Test not passing or Writing failed. Writing again updates that test instead of adding a second one.`,to:[`record`]},{kind:`improved`,title:`Writing a test carries on without you`,detail:`Writing a test from a recording keeps going when you leave the page, and the chat and the recording link to each other. It says why a writing failed, and Stop writing ends one. If the model cannot be reached, ForgeQE checks every 30 seconds for up to 15 minutes and carries on where it stopped.`,to:[`record`]},{kind:`new`,title:`Stop a recording's Re-run`,detail:`A re-run of a web recording now has Stop, so you no longer wait for every step to time out. The steps already done are kept and the result is marked stopped, not failed.`,to:[`record`]},{kind:`new`,title:`Review desktop recordings like web ones`,detail:`A desktop workflow opens in a review with Steps, Test data and Last run tabs. See how each step went on the last replay, add a check, wait or keys after a step, change or drop a step with a preview, and turn a typed value into test data or a secret.`,to:[`desktop`]},{kind:`new`,title:`A picture of each desktop step, and click it to add a check`,detail:`Desktop recordings and replays keep a picture of the app after each step. Click a control in the picture to add a check that it shows its text, or that it is there. A password field's text is never kept.`,to:[`desktop`]},{kind:`new`,title:`Video of recordings, replays and desktop runs`,detail:`Recordings by hand, re-runs and desktop runs now keep a video, and the review plays it. browser.video and desktop.video turn it off. Making a typed value a secret removes that recording's videos.`},{kind:`improved`,title:`Change or remove desktop apps, with arguments`,detail:`Desktop apps' list has Change (path, arguments, description) and Remove, which says first which workflows name the app. Adding an app now takes arguments too, typed as on a command line and never run through a shell.`,to:[`desktop`]},{kind:`new`,title:`Hosted mode for forgeqe web`,detail:`forgeqe web --port 8080 --public-url https://NAME serves a demo or security test through a TLS proxy that limits who gets in. It still listens only on 127.0.0.1 and needs its token. Anyone who gets through the proxy with the link can use ForgeQE and its credentials, so give that server test credentials only.`},{kind:`improved`,title:`Home starts from better requests`,detail:`Home's starters are now three requests written out in full (test cases; test cases and scripts; test cases, scripts and regression): type only your objective. What needs a look is a clear list of rows saying what each one opens.`},{kind:`improved`,title:`Tidier Tosca conversion header`,detail:`A conversion's header keeps Start again, Run and Report as buttons, with Re-import, CI, Pull request and Delete under More.`,to:[`tosca`]},{kind:`improved`,title:`Context and tokens shows the 30-day total`,detail:`The panel's This project section now opens with the project's 30-day token total, which leads to Settings › Tokenomics, and each row has its own icon.`},{kind:`fixed`,title:`ForgeQE works on every Windows`,detail:`Fixes for Windows x64 and ARM64: Tosca exports that could not be read, API tests losing their address, test commands built for the wrong shell, the Azure CLI not starting, short user folder names, and Edge's own new tab appearing at the start of a run. Every change is now tested on Windows too.`},{kind:`fixed`,title:`Git hooks stay off on Windows, and protected folders stay protected`,detail:`On Windows, a git hook in a folder any user could create could run during ForgeQE's own checkouts; it no longer can. The coding agent could also write to ForgeQE's run folder when it was on another drive; that is now refused.`}]},{version:`2.9.2`,date:`2026-11-10`,summary:`A Desktop apps page and a DeskPilot that replays, explores and accepts heals from the web app or chat, recording any desktop app by its path, Copy to edit for built-in skills, and safer project .env files and tool downloads.`,changes:[{kind:`new`,title:`Desktop apps page`,detail:`Quality Engineering › Automation › Desktop apps does what forgeqe desktop does: Workflows, Runs, and Machine and apps tabs, with Replay (variables, data rows, heal, new baselines), Explore and Set up in sheets. Accept a passed replay's heals from its run. Fix with the agent and Why did it fail open a chat.`,to:[`desktop`]},{kind:`new`,title:`DeskPilot in chat`,detail:`DeskPilot has its own agent page, and in chat it can list workflows and runs, validate a workflow, replay with data rows, accept a passed replay's heals and set up the engine (asking first for anything that changes something).`},{kind:`new`,title:`Record any desktop app`,detail:`Record's app list ends with Another app…: type the program's path or pick it with Browse, name it, and ForgeQE adds it to the environment's apps and records it. Machine and apps has Add an app too. Only a real program file is accepted, never a .bat, .cmd or script.`,to:[`record`]},{kind:`new`,title:`Copy to edit a built-in skill`,detail:`A built-in skill's panel offers Copy to edit: save the project's own copy under the same name, with its reference files, and it replaces the built-in one in this project.`,to:[`skills`]},{kind:`fixed`,title:`Scheduled custom agents keep their request`,detail:`A schedule ran agent run <id> --unattended with no request, because the request was read as the switch's value. It now runs with the request it was given.`,to:[`agents`]},{kind:`fixed`,title:`Sidebar foot stays in view on laptops`,detail:`On laptop-sized windows in some browsers the sidebar ran past the window and hid Settings, Help and Dark/Light. It now fits in every browser.`},{kind:`fixed`,title:`A malformed address no longer blanks the web app`,detail:`An address like #/regression/%E0 left a blank app. Pages now read it safely, and a page that fails to draw shows a short note in its place instead of taking the app down. Errors in ForgeQE's own code now answer 500, not 400.`},{kind:`improved`,title:`A project's .env cannot run other code`,detail:`A cloned repository's .env can no longer set NODE_OPTIONS=--require, LD_PRELOAD, PYTHONSTARTUP, GIT_SSH_COMMAND and similar names that make every program ForgeQE starts load other code. Keys, proxies and CA files load as before; the shell and ForgeQE's own .env are unchanged.`},{kind:`improved`,title:`Downloaded tools need a matching checksum`,detail:`The agent runtime and uv install only when their SHA-256 matches one pinned in ForgeQE. A download whose checksum cannot be checked (a rate limit, a proxy) is refused instead of installed unchecked.`}]},{version:`2.9.1`,date:`2026-11-10`,summary:`Tosca migration grows up: an assistant that sets it up in chat, API, desktop, mobile and database steps converted, batches, CI pipelines and pull requests. Settings › Secrets keeps every secret and pulls from Azure, Google and AWS vaults.`,changes:[{kind:`new`,title:`Guide`,detail:`The Tosca page opens on an Agent tab. Say what to migrate in your own words; the assistant asks only what it still needs (exports, framework, language, where the tests start, the app or database the cases use, the secret behind each test variable) and opens the wizard on Review with every stage filled in. It can clone exports from a git repository, and conversations survive a restart.`,to:[`tosca`]},{kind:`new`,title:`Tosca converts API, desktop, mobile, database and file steps`,detail:`API test cases become API tests. Desktop and mobile test cases become ForgeQE workflows, written by code with no model, with their test data in a .data.csv and secrets typed from variables; inside a web test they are replayed at their step. Read-only database queries become checks with the target's own client (values bound as parameters), and file and Excel reads become checks. Mixed test cases convert their web and API steps and mark the rest for a person; anything that writes stays for a person.`,to:[`tosca`]},{kind:`new`,title:`Know what can be migrated before you start`,detail:`Every test case of an export is sorted by kind with what becomes of it (also as a CSV), Ready to run checks what the run needs before Start, and Review estimates the conversion's tokens and cost.`,to:[`tosca`]},{kind:`new`,title:`Several exports, batches and re-import`,detail:`A plan can read many .tsu files or a folder of them (duplicates converted once). Convert in batches (--batch N) checks each batch before the next. Read exports again (forgeqe tosca reimport) brings in what changed, and tosca-map.json traces each Tosca test case by its id to its test and last outcome.`,to:[`tosca`]},{kind:`new`,title:`Tosca test data from a data file`,detail:`Name Tosca's Export to Excel of a test sheet, or any CSV, Excel or JSON file, on Review (or forgeqe tosca data) and {XL[...]} values are filled from it instead of left for a person.`,to:[`tosca`]},{kind:`new`,title:`CI pipelines and pull requests for a conversion`,detail:`forgeqe tosca ci (or the CI pipeline sheet) writes a GitHub Actions or Azure Pipelines file with one job per execution list, plus replay jobs for desktop and mobile workflows. Pull request on a finished conversion (or forgeqe tosca pr) commits the target folder on ForgeQE's own branch without touching your checkout.`,to:[`tosca`]},{kind:`improved`,title:`Tosca report built for thousands of test cases`,detail:`One compact summary on top, test cases grouped as Failed, Needs attention, Passed, Not run and Left out, searchable, 50 at a time. Every test run keeps a failure screenshot and a video by default. Download the HTML report as a zip with every video. Activity groups its log by unit, with search and filters. A stopped or failed conversion can be started again from its page.`,to:[`tosca`]},{kind:`new`,title:`Settings › Secrets and vaults`,detail:`Every saved secret by name in one place: add, replace or remove; a value is never shown again. Connect Azure Key Vault, Google Secret Manager or AWS Secrets Manager (browser sign-in recommended), browse names and pull a value straight into the credential store. Export vault connections, without values, for teammates to import. Repository tokens are a filter here, and the suggested token name is now REPO_TOKEN.`,to:[`settings`,`secrets`]},{kind:`fixed`,title:`Desktop replay on Windows`,detail:`Replay brings the app forward and refuses to click or type while another program's window is in front, types text as keys (Save dialogs), and no longer stops when healing is off or its model cannot be used. A heal is remembered only from a replay that passed. Recording by hand catches the OK that closes a dialog.`},{kind:`fixed`,title:`Sidebar and browser detection fixes`,detail:`A shell starting a browser is no longer counted as a browser, and the sidebar no longer falls back to tiles because its icons were mis-measured.`}]},{version:`2.9.0`,date:`2026-11-10`,summary:`Browsers start on locked-down PCs (through Playwright, or attached to one you opened), forgeqe doctor browser explains a failed start, the sidebar keeps your recent chats and pages, and one 30-day token figure across the app.`,changes:[{kind:`new`,title:`Start the browser through Playwright, or attach to your own`,detail:`browser.launch in forgeqe.yaml (and Settings › Browser) is auto, direct, playwright or attach. Auto starts the browser directly and, once this computer stops that, through ForgeQE's own Playwright; what worked is remembered. Attach connects to a browser you started with --remote-debugging-port (browser.attach_port, this computer only) and never closes it. A browser started through Playwright now looks to a site like one started directly.`,to:[`settings`,`browser`]},{kind:`new`,title:`forgeqe doctor browser`,detail:`Tries each way of starting the browser and writes .forgeqe/reports/browser-check-<time>.md with each start's log, the browser policies that block automation, security software, and (on Windows) AppLocker and code integrity events about browsers. Send it when a browser will not start on a managed PC.`},{kind:`fixed`,title:`No browsers left running after a failed start`,detail:`Browsers a failed start leaves behind (relaunched by a launcher, or by a stopped Playwright) are closed right away and checked again over the next minute. A browser on any other profile, yours included, is never touched. A slow first start also gets one more try.`},{kind:`fixed`,title:`Windows update no longer loops`,detail:`On 2.8.x, forgeqe update on Windows could open and close command windows forever without updating. The update now runs once, waits up to 5 minutes for ForgeQE to exit, and clears the stuck scripts an earlier update left behind.`},{kind:`fixed`,title:`Recordings no longer stall when a step leaves the page`,detail:`A click that submitted a form or followed a link could crash Chrome's page renderer about one time in ten, leaving the recording waiting until it timed out. It no longer does.`},{kind:`new`,title:`Recent chats and pages in the sidebar`,detail:`The sidebar lists your recent chats below the main options at every level, and inside a chat shows its last chats under Chat history. Every landing page and category shows its pinned pages and the ones you opened lately. Agents › Chat lists as many chats as fit, a page at a time, with search.`,to:[`browse`]},{kind:`new`,title:`Search Administration`,detail:`A search box on Administration finds its pages and any setting by name or forgeqe.yaml key, and opens its section.`},{kind:`improved`,title:`One token figure across the app`,detail:`The workspace panel, Tokenomics and Cost now share one 30-day window and one total, so chats are counted on Tokenomics too (they showed 0 before). Test-run figures sit below under Test runs, and Cost shows the amount charged at the time beside today's price.`,to:[`settings`,`tokenomics`]},{kind:`improved`,title:`Settings as text`,detail:`Settings › Files is now Settings as text: forgeqe.yaml, llms.json and env.yaml as they are on disk, laid out with the page, with Save always at the foot of the window.`,to:[`settings`]},{kind:`improved`,title:`Shorter buttons, one icon per action`,detail:`Buttons across the web app and the HTML report have short labels and one icon for each kind of action, icon-only where space is short. Checkboxes are animated, and scrollbars are thin and appear only while an area scrolls.`},{kind:`fixed`,title:`Terminal replies no longer flicker blank`,detail:`On a busy machine a reply in the terminal could show empty for a moment while it was highlighted. The words now appear at once and the highlighting follows.`}]},{version:`2.8.9`,date:`2026-11-09`,summary:`Pick the local browser in Settings, wait out a browser launcher handover, and hold every custom-agent sub-agent to the agent's limits.`,changes:[{kind:`new`,title:`Pick the local browser in Settings`,detail:`browser.local_browser in forgeqe.yaml (and Settings › Browser) chooses Automatic (Chrome, then Edge, then Playwright's Chromium), or Chrome, Edge or Chromium alone. It applies to runs, recordings and forgeqe login. A path in BROWSER_USE_EXECUTABLE_PATH still wins.`,to:[`settings`,`browser`]},{kind:`fixed`,title:`Wait when a launcher starts the real browser`,detail:`On some managed Windows PCs the process ForgeQE starts exits after opening another browser on the same DevTools port. ForgeQE now waits for that browser (up to 90s) instead of failing when the launcher exits, and logs each step of the start.`},{kind:`improved`,title:`Every sub-agent a tool starts respects the agent's limits`,detail:`Custom agents' "agents it may start" now covers tools that start a sub-agent without listing it before (Miner, test planning, product knowledge, defect analysis). The editor offers those agents and warns when a capability needs one the draft does not allow.`,to:[`agents`]},{kind:`fixed`,title:`Safer custom agent pack import`,detail:`Importing a zip refuses oversized or hostile entries, linked paths out of the project, and overwriting another agent's notes. Knowledge and skills are written only inside the project.`,to:[`agents`]}]},{version:`2.8.8`,date:`2026-11-09`,summary:`Fall back when Chrome will not start, category landing pages with what needs a look, and a unique icon for every agent.`,changes:[{kind:`fixed`,title:`Try Edge or Chromium when Chrome will not start`,detail:`Runs, recordings and forgeqe login fall back to Microsoft Edge, then Playwright's Chromium, when installed Chrome closes before it can be driven or does not answer. The report names the browser used. Pin one with BROWSER_USE_EXECUTABLE_PATH, or set BROWSER_USE_FALLBACK=0 to keep that browser only.`},{kind:`improved`,title:`Landing pages show what needs a look`,detail:`Each category's landing page lists what needs attention there and the built-in agents that work in it. Everything shows every category's. Home's suggestions come from more of ForgeQE, and Sign-ins, Environments and Set up no longer say the agents only test.`,to:[`browse`]},{kind:`improved`,title:`Own icons for Agents, Quality Engineering and AI Assurance`,detail:`The three sidebar categories each have a ForgeQE-drawn icon, matching the rest of the nav.`,to:[`browse`]},{kind:`improved`,title:`A unique icon for every agent`,detail:`No two agents on Agents or Settings › Routing share an icon. Chat-only agents (builder, bug report, Evidence and others) have their own faces instead of the Helper. Tooltips keep your agent.app_name when the page is renamed.`,to:[`agents`]}]},{version:`2.8.7`,date:`2026-11-09`,summary:`Delete a custom agent from Details, and a shorter Versions history.`,changes:[{kind:`new`,title:`Delete a custom agent`,detail:`Details opens Delete under Versions. Type the agent id to confirm. It removes the manifest, approved versions, runs, waiting approvals and its schedule job. Knowledge files and skills it named stay. forgeqe agent delete does the same at the terminal.`,to:[`agents`]},{kind:`improved`,title:`Shorter Versions history`,detail:`The current version shows a Running pill. Who approved it uses your git name when set, and long GitHub noreply emails shorten to the username with · web when done in the app.`,to:[`agents`]}]},{version:`2.8.6`,date:`2026-11-08`,summary:`A custom agent's page uses the same ask box and layout as ForgeQE's own agents.`,changes:[{kind:`improved`,title:`Custom agent page like Link`,detail:`One large icon, name and description, then the shared chat composer (environment, tools, Refine, model). Starter pills and what it needs sit below. Export, Details and Edit stay as icon buttons; Details opens a right-side panel for reach, versions and runs.`,to:[`agents`]}]},{version:`2.8.5`,date:`2026-11-08`,summary:`Custom agent page matches Jobs, searchable Phosphor and Lucide icons, and chat no longer shows the model price mismatch note.`,changes:[{kind:`improved`,title:`Custom agent page like Jobs`,detail:`An agent's page centres on try and ask, with icon-only Export, Details and Edit. Details opens a right-side panel for reach, versions, runs and approve or disable.`,to:[`agents`]},{kind:`improved`,title:`Search Phosphor and Lucide for agent icons`,detail:`The icon picker searches ForgeQE's faces plus Phosphor and Lucide by name, shows the top ten matches, and offers Show more. Manifests keep only safe ph: and lucide: ids.`,to:[`agents`]},{kind:`fixed`,title:`No price mismatch note when chat starts`,detail:`Opening forgeqe chat no longer prints the Note about llms.json prices not matching the provider. Other commands still show it when the catalog is off.`}]},{version:`2.8.4`,date:`2026-11-08`,summary:`Custom agents: share a zip across projects, and pick an icon from ForgeQE's set.`,changes:[{kind:`new`,title:`Export and import a custom agent`,detail:`Export to share packs agent.json with its knowledge files and skills into a zip. Import agent (or forgeqe agent import) always creates a draft to edit, try and approve. Environments and systems stay in the target project. Same-repo teams still commit .forgeqe/agents.`,to:[`agents`]},{kind:`new`,title:`Icon for each custom agent`,detail:`The builder and editor let you pick one of ForgeQE's agent icons. The Agents list and the agent's page show it; a manifest without an icon uses the Helper face.`,to:[`agents`]}]},{version:`2.8.3`,date:`2026-11-08`,summary:`Tosca report: searchable test list, structured LLM usage, and the failed stage only — no progress bar on a finished conversion.`,changes:[{kind:`improved`,title:`Report scales to many test cases`,detail:`The conversion report lists test cases in a searchable, filterable table (all, needs attention, converted) with paging. Pick a row for Tosca steps, output, and failure screenshots or video instead of scrolling one card per case.`,to:[`tosca`]},{kind:`improved`,title:`LLM usage as labeled figures`,detail:`The report sidebar shows model, tokens (read, cached, written), and cost as rows — not the long CLI usage line with pricing footnotes.`,to:[`tosca`]},{kind:`improved`,title:`Failed stage instead of a progress bar`,detail:`A finished report no longer repeats the Prepare–Review stage row. If a stage failed, one line names that stage and its note.`,to:[`tosca`]}]},{version:`2.8.2`,date:`2026-11-08`,summary:`Tosca: a full-page conversion report with total time, LLM usage and cost, per-test fidelity, and failure screenshots or video.`,changes:[{kind:`new`,title:`Full-page Tosca conversion report`,detail:`Report opens a dedicated page for the conversion instead of a Markdown sheet. It shows total time, model and token cost, every test case with fidelity and output, environment variables to set, and steps a person still has to finish.`,to:[`tosca`]},{kind:`new`,title:`Failure screenshots and video on the report`,detail:`When a converted Playwright test fails, ForgeQE keeps its screenshot and short video under the plan and shows them on the report. New conversions ask Playwright for only-on-failure screenshots and retain-on-failure video.`,to:[`tosca`]},{kind:`improved`,title:`tosca.md includes time and LLM cost`,detail:`The Markdown report written for the CLI and downloads now lists total time, the model, and a readable token and cost line alongside the test table.`}]},{version:`2.8.1`,date:`2026-11-07`,summary:`Tosca: confirming Start opens the running overview at once, and conversion progress stays within 100%.`,changes:[{kind:`fixed`,title:`Confirming Start opens the overview`,detail:`After you type the plan id and start a Tosca conversion, the page leaves the confirm sheet and shows the running overview instead of staying on the plan. A running result is written as soon as the job starts so the list and progress update immediately.`,to:[`tosca`]},{kind:`fixed`,title:`Conversion progress never exceeds 100%`,detail:`The Tosca list and overview counted finished files against the number of test cases only, so exports with many page objects could show 133% or more. Progress now uses every planned unit and stays at most 99% while running.`,to:[`tosca`]},{kind:`improved`,title:`Tooltips use a grey surface`,detail:`Tooltips and the Reports day tip use the muted surface colour so they read clearly on both light and dark themes.`}]},{version:`2.8.0`,date:`2026-11-07`,summary:`Tosca and Migration: Stop ends a stuck run, delete old plans from the page, Cloud exports keep their locators, and __pycache__ no longer looks like an outside edit.`,changes:[{kind:`fixed`,title:`Stop ends a Tosca or Migration run`,detail:`Stop sends SIGTERM the conversion handles, and settles a result left as Running after the process is already gone, so the page does not keep offering Stop with nothing to stop.`,to:[`tosca`]},{kind:`new`,title:`Delete an old Migration or Tosca plan`,detail:`On a plan's page, Delete removes it from the list after you type its id. Converted tests in the target folder stay; a running job must be stopped first.`,to:[`migration`]},{kind:`fixed`,title:`Tosca Cloud exports keep their locators`,detail:`Cloud .tsu files that omit the reverse XParam link no longer convert with empty page objects. ForgeQE fills ExtendableObject the same way it already fills missing TestStep links.`,to:[`tosca`]},{kind:`fixed`,title:`Bytecode caches are not outside edits`,detail:`Python __pycache__ and similar junk are ignored when ForgeQE checks that the agent wrote only inside the target folder, so conversions are not blocked by false Put them back messages. The Tosca export itself is protected the same way.`,to:[`tosca`]}]},{version:`2.7.9`,date:`2026-11-07`,summary:`Tosca conversion reads Tosca Cloud exports and opens browser tests that use OpenUrl and CloseBrowser, so web cases can start instead of showing Mixed or Not supported.`,changes:[{kind:`fixed`,title:`Tosca Cloud exports read their steps`,detail:`Some Tosca Cloud .tsu files list step values only on the step, without the reverse link Commander exports. ForgeQE fills that link before reading, so those exports show real actions, checks and page objects instead of empty Web cases.`,to:[`tosca`]},{kind:`fixed`,title:`OpenUrl and CloseBrowser stay on the web route`,detail:`Tosca's Framework OpenUrl and CloseBrowser modules no longer mark an otherwise Html test as Mixed or Not supported. They become navigate and close steps; TBox Wait becomes a wait. Json and Xml engines show as API (later), not Not supported.`,to:[`tosca`]},{kind:`improved`,title:`Web cases with a few non-web notes can start`,detail:`A test that is mostly web, with only unsupported extras such as mail or screenshots left as marked comments, can be picked and started. Pure API, desktop and other non-web routes still wait for a later version.`,to:[`tosca`]}]},{version:`2.7.8`,date:`2026-11-07`,summary:`Change impact gains Product and Internal views, readiness and pull-request links, and forgeqe web answers on a .localhost name without picking a port.`,changes:[{kind:`improved`,title:`Change impact: Product and Internal`,detail:`Browse a change in two views: Product for how it spreads through the business, and Internal for the whole repository as Graph and Code. Each change sits beside how it spreads, with counts and areas by severity and priority.`,to:[`impact`]},{kind:`improved`,title:`Change impact: readiness and pull requests`,detail:`See readiness, history, effort and confidence on the page, with pull requests, missing tests and links. ForgeQE reads what a change does before it traces impact, and forgeqe impact runs the same analysis from the terminal.`,to:[`impact`]},{kind:`improved`,title:`Change impact layout`,detail:`Compact cards in one row, areas, changes and the files map as tabs, a labelled view toggle, and keyboard focus on an opened area. Regression areas read as plain sentences.`,to:[`impact`]},{kind:`new`,title:`forgeqe web behind a local proxy`,detail:`Serve the app at a .localhost name (for example through portless) without choosing a port yourself. Host and Origin checks still bind to this computer only.`},{kind:`fixed`,title:`Change impact review fixes`,detail:`Security and UI consistency fixes from review on the Change impact pages.`}]},{version:`2.7.7`,date:`2026-11-07`,summary:`Ten new quality pages (flaky tests, release readiness, cost and more), data-driven tests and MFA sign-ins, wider API and cloud testing, desktop replay on macOS and Linux, and a far more reliable mobile agent.`,changes:[{kind:`new`,title:`Flaky tests and run diff`,detail:`Runs › Flaky tests scores each test by how often it flips, passes only on retry or varies in run time, names the likely cause, and quarantines or heals it. Runs › Run diff lines up two runs step by step and shows the first difference that matters.`,to:[`flaky`]},{kind:`new`,title:`Release readiness`,detail:`One verdict for a release from the regression pack, untested changes, the tracker, flaky tests, quality, security and Evidence, with a sign-off record. The agent can work out the verdict; signing off stays with a person.`,to:[`readiness`]},{kind:`new`,title:`Test debt`,detail:`Untested code and business rules, tests that never fail or test nothing that exists any more, near-duplicate tests, and cases not yet automated, in one place.`,to:[`test-debt`]},{kind:`new`,title:`Feature-flag matrix`,detail:`Read your flags from env.yaml, LaunchDarkly or Unleash (read only) and run the regression pack for each combination, all of them or pairwise.`,to:[`flags`]},{kind:`new`,title:`Production signals`,detail:`Errors from Sentry, Datadog and Application Insights, with which of them no test covers. Record a repro of one straight from the list.`,to:[`production`]},{kind:`new`,title:`Security smoke checks and localization`,detail:`Quality › Security checks headers, CSP, cookie flags, mixed content, open redirects, CORS and keys in answers, passively. Quality › Localization finds keys shown as text, English left in other languages and cut-off text, with pseudo-localized and right-to-left stress runs.`,to:[`quality`,`security`]},{kind:`new`,title:`Exploratory sessions and cost`,detail:`Test › Exploratory runs a session with a goal, a cap on charters and a time limit. Results › Cost shows spend by agent, job, model and day, the router's picks, and what each pack run cost.`,to:[`explore`]},{kind:`new`,title:`Data-driven tests`,detail:`A test case runs once per row of a CSV, Excel or JSON file, a read-only query or a kept Miner request, with values as {{row.column}}. Each row is its own run; the case fails if any row fails. Written tests read every row from one parameterised test, and Try it on the Record page plays up to 20 rows.`,to:[`test-cases`]},{kind:`new`,title:`MFA sign-ins`,detail:`Saved logins handle authenticator codes, codes sent by email, text or a test address, security keys and passkeys, and push approvals (the run waits for a person). A login column gives each row its own user. Codes are never shown to the model.`},{kind:`new`,title:`API testing: streams, OAuth2, mTLS, load and security`,detail:`gRPC streaming, GraphQL subscriptions, WebSocket and SSE contracts. OAuth2 client credentials and client certificates. forgeqe api load reports latency and error rate for read-only calls (never production); forgeqe api security checks an API you own against the OWASP API Top 10. The mock adds rules, stateful CRUD and faults, and Pact contracts import.`,to:[`api-tests`]},{kind:`new`,title:`Cloud testing for Azure, AWS and Google Cloud`,detail:`Agents know each cloud's SDK and its emulators. An env.yaml environment names its subscription, account or project (cloud:), editable in Settings › Environments. AWS and Google Cloud MCP servers read resources, and the cloud-verifier agent template checks a run's effects in the cloud without changing anything.`,to:[`settings`,`environments`]},{kind:`new`,title:`Desktop replay on macOS and Linux`,detail:`Desktop workflows replay through agent-desktop on macOS, Linux and headless Windows, with the same healing, memory and reports. desktop.driver: auto picks it outside Windows. Apps can be a macOS .app or a Linux program; explore and recording stay on Windows.`,to:[`settings`,`desktop`]},{kind:`new`,title:`Mobile: drag and drop, and real iPhones`,detail:`The mobile agent drags one control onto another (a puzzle piece onto its slot), saved as a drag step and replayed on Appium. iOS runs on TestMu's real iPhones and simulators: a permission prompt is closed when it shows and never fails a device where it doesn't.`,to:[`settings`,`mobile`]},{kind:`improved`,title:`A far more reliable mobile agent`,detail:`Swipes and scrolls move React Native carousels and pages that ignored them. An explore stops after a few actions that change nothing instead of spending its budget, records checks before a dialog closes, and keeps only checks a replay can see. iOS sees only controls on screen and keeps app alerts open for checks.`,to:[`settings`,`mobile`]},{kind:`improved`,title:`Mobile runs on several devices`,detail:`Each step line names its device, each failed device says which step failed, and a device TestMu reports unavailable is skipped for the rest of a suite instead of costing ten minutes per workflow. mobile doctor checks TestMu's hub and sign-in when every device is in the cloud.`,to:[`settings`,`mobile`]},{kind:`improved`,title:`Settings changes without a restart`,detail:`forgeqe web keeps working while you edit forgeqe.yaml, llms.json, env.yaml or .env: a half-saved file keeps the last good settings, the page offers to show the changes, open chats can switch to them, and .env values reload. After forgeqe update, Settings › About restarts the server on the same port.`,to:[`settings`,`about`]},{kind:`improved`,title:`Large logos are shrunk`,detail:`Settings › Appearance makes a PNG, JPEG or WebP logo up to 20 MB smaller in the browser instead of refusing anything over 512 KB.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`Data page tabs and database chips`,detail:`The Data page's tabs wrap on a phone and take the arrow keys. A read-only database shows green with a tick, a writable one in amber with a pencil.`,to:[`data`]},{kind:`fixed`,title:`Two runs started at once no longer share a folder`,detail:`Mobile and desktop runs started in the same second each get their own report folder; one no longer overwrote the other's workflow.`},{kind:`fixed`,title:`A missing secret stops a mobile replay at once`,detail:`A replay that types a secret which is not set, or not listed, stops in seconds with what to set, before a cloud device is taken.`},{kind:`fixed`,title:`Agent tabs keep the message box at the bottom`,detail:`Before the first message, the Agent tabs of Jobs, Regression, API tests, Accessibility, Performance and Visual showed the message box in the middle of the window. API tests now lines up with the other pages.`}]},{version:`2.7.6`,date:`2026-11-06`,summary:`Runs check the users, logins and values they need before the browser opens. Test cases use env.yaml values, recordings can be deleted, and the app fits laptop screens.`,changes:[{kind:`new`,title:`A check before every run`,detail:`Before a run or a set of test cases starts, ForgeQE checks that the test users, saved logins, apps and values they name exist in env.yaml and forgeqe.yaml. Anything missing is listed with how to fix it, by name only, never a value, and you choose to stop and add it or run anyway.`,to:[`runs`]},{kind:`new`,title:`env.yaml values in test cases`,detail:`Write {{var.NAME}} or {{app.NAME}} in a test case's title, steps or expected results, and the run fills in the environment's variable or the app's address. A case that names an app starts there. Secrets are never put into a case.`,to:[`test-cases`]},{kind:`new`,title:`Delete recordings`,detail:`Record › Recordings has a checkbox on each row and Delete selected. One confirmation lists what goes; tests already written from a recording stay.`,to:[`record`]},{kind:`improved`,title:`Edits to forgeqe.yaml and env.yaml apply mid-chat`,detail:`A chat, in the web app or the terminal, reads forgeqe.yaml and env.yaml again when either changes and carries the conversation on. An edit that no longer loads keeps the old settings and says why.`,to:[`chats`]},{kind:`improved`,title:`env.yaml says what it did not read`,detail:`Apps are found even in a file copied from the example with leftovers, an app's kind is worked out from what it has, and names match in any case. Anything ForgeQE could not read is listed by forgeqe apps and the agent instead of being dropped silently. Values written beside apps: are read as variables; a password there is reported and never used.`},{kind:`improved`,title:`Fits 13 and 14 inch laptops`,detail:`On laptop-sized windows the app draws slightly smaller, so Home, the sidebar and the agent tabs fit without scrolling. The sidebar's foot is one row: Settings, Help and Dark/Light. What's ready and What's new are now in Settings › Advanced.`,to:[`settings`]},{kind:`improved`,title:`ForgeQE's own engine and runtime`,detail:`Setup, forgeqe doctor and Settings name ForgeQE's browser engine and agent runtime, and the runtime keeps its data in ForgeQE's own folder. An earlier download is moved, not downloaded again. Agent sessions from before this update start fresh when resumed.`},{kind:`fixed`,title:`Open the web app in new tabs`,detail:`Links, bookmarks and typed addresses open in a new tab without signing in again: open tabs share the sign-in. A tab with nothing to sign in from now says so, instead of saying ForgeQE was restarted.`},{kind:`fixed`,title:`Re-running a chat's test keeps the right test`,detail:`Turning a run into code reuses an existing test only when most of the run's steps are found in it, so an unrelated test is no longer picked from one matching locator. A captcha's answer is worked out in the test, never copied from the run.`,to:[`chats`]},{kind:`fixed`,title:`A sign-in never types a secret's name`,detail:`When a login's values are missing, or the sign-in page is on a site the login does not list, the browser stops and says why instead of typing the placeholder into the page.`},{kind:`fixed`,title:`Mobile runs on TestMu and longer mobile flows`,detail:`Native app sessions on TestMu (LambdaTest) and other device clouds no longer fail because a browser name was sent with the app. A mobile explore run that is still making progress carries on past its step limit, as browser runs do, so a full sign-in flow finishes.`}]},{version:`2.7.5`,date:`2026-11-06`,summary:`Report a problem with ForgeQE from Settings, drafted from the session that went wrong. Browsers close after every run, and Windows works like macOS and Linux.`,changes:[{kind:`new`,title:`Report a problem`,detail:`Settings › Report a problem picks the recent session that went wrong and shows what ForgeQE found in its log: what was asked, ForgeQE's own errors and its failing checks. Draft the bug fills in the title, steps, expected and actual result, and asks only what the log can't show. You check the attachments (the log with secrets removed, ForgeQE's checks, screenshots) before anything is sent, and you don't need an Azure DevOps account. Copy as text works anywhere.`,to:[`settings`]},{kind:`fixed`,title:`No terminal windows during an update on Windows`,detail:`forgeqe update on Windows no longer opens extra terminal windows that had to be closed before the update could finish. It runs in one minimised window.`},{kind:`fixed`,title:`Browsers close after every run`,detail:`A finished, stopped or failed run closes the browser it opened, and the recorder's and sign-in browsers do too. On Windows, stopping a run, test or job now ends everything it started, not only its first process. A browser ForgeQE only connected to is never closed.`},{kind:`fixed`,title:`Windows works like macOS and Linux`,detail:`Links open safely on Windows, including links with & in them. Tools such as npx, az and gh start reliably, copying keeps non-English text, and the guides show PowerShell lines beside the macOS and Linux ones. The Requirement Agent installs and starts on Windows without reinstalling its packages every time.`},{kind:`fixed`,title:`Setup repairs a broken engine`,detail:`If an interrupted setup left the browser engine's environment broken, forgeqe setup rebuilds it instead of failing with "externally managed". The engine also uses a Python version it is tested on (3.13 on Windows) rather than the newest one installed.`}]},{version:`2.7.4`,date:`2026-11-06`,summary:`Change impact: see the features, journeys and tests a branch or commit range affects, on a map of the whole code in red, amber and green. Also a shorter sidebar with Ctrl+K search.`,changes:[{kind:`new`,title:`Change impact`,detail:`Test › Change impact compares two branches, tags or commits of a product repository and says what the change affects: each feature with its risk and the reasons for it, the journeys and business rules it touches, the tests to run and why, and what no test covers. Read from the product graph; nothing is run.`,to:[`impact`]},{kind:`new`,title:`Impact map`,detail:`The change drawn over the whole repository, file by file in its folders: red what it changed, amber what it affects (files that use it, and the services a front end's change calls), green the tests that reach it. Switch to Whole product to see every repository, or colour the files by how often they change in git. Click a file for the chain back to the change and the features it serves.`,to:[`impact`]},{kind:`improved`,title:`A shorter sidebar and Ctrl+K search`,detail:`Pages that showed the same work share one entry, so the sidebar goes from 28 entries to 19; pages of one entry link to each other beside their titles. Press Ctrl+K (or Search in the sidebar) to go to any page, agent, Settings section or setting by its name or its forgeqe.yaml key.`,to:[`settings`]},{kind:`improved`,title:`Know what stops a chat before you send it`,detail:`Home and the agents' pages say when a chat cannot start (the browser engine or agent runtime not installed, or the model without its key) and link to the Settings section that fixes it.`,to:[`chats`,`agents`]},{kind:`improved`,title:`Clearer pages`,detail:`Home links to runs that failed today, approvals waiting, failed jobs and runs going now. Empty pages offer the one action that fills them. Settings keeps the common sections in view and folds the rest under More settings. The agent groups are Advisers, Builders and Operators, and API tests gather the agent's actions under one Ask the agent menu.`,to:[`agents`,`runs`,`settings`]},{kind:`improved`,title:`Forget one flow or page`,detail:`Memory can forget a single flow or a single page, not only a whole site, and flows with no site can be cleared on their own. Each asks first and is written to the audit log.`,to:[`memory`]}]},{version:`2.7.3`,date:`2026-11-06`,summary:`A Code map of your product's files with seven views and a blast radius, product knowledge read by Graphify, Build and Refresh on the Product page, each agent run's prompt and output in Evidence, and icons in a colour of your choice.`,changes:[{kind:`new`,title:`Code map`,detail:`Product › Engineering › Code map shows every file of your repositories in seven views: Graph, Treemap, Matrix, Tree, Flow, Bundle and Cluster. The graph moves live: drag files, pan, and zoom with the wheel. Pick one repository to see its files grouped by folder. Click a file to see what uses it, what it uses, and every file a change to it would reach.`,to:[`product`,`code`]},{kind:`new`,title:`Product knowledge read by Graphify`,detail:`Building product knowledge now reads the code with Graphify, in about 40 languages: classes, functions, and who calls and imports whom. It also reads a repository's database schema, PDF, Word and Excel documents, and the comments that say why code exists. A service's page shows its modules and the parts most depended on.`,to:[`product`]},{kind:`new`,title:`Build and Refresh on the Product page`,detail:`Start or refresh the product's knowledge from the Product page and follow it on a progress bar, step by step and repository by repository. A running build also shows under Background tasks, with a Stop button.`,to:[`product`]},{kind:`new`,title:`Prompt and output of each agent run`,detail:`An agent run's page in Evidence shows what the agent was told (its system prompt), what it was asked, its final answer and what it said on the way, with each model call's model and tokens. Runs recorded from Langfuse and OpenTelemetry now keep the system prompt, with secrets cut out, and the token counts.`,to:[`evidence-runs`]},{kind:`new`,title:`Evidence demo in your project`,detail:`forgeqe evidence demo --project fills an empty Evidence section with a demo shop's made-up AI agents, so every Evidence page has something to show next to your product. It writes only while the project has no runs or contracts of its own.`,to:[`evidence`]},{kind:`new`,title:`Find missing packages`,detail:`Settings › Set up lists every package ForgeQE installs, with the version needed, the one installed and the command that fixes it. The same report is forgeqe doctor --packages.`,to:[`settings`,`setup`]},{kind:`new`,title:`Icon colour and Lucide icons`,detail:`Settings › Appearance › Icon colour draws the icons in black (white in dark mode), the buttons' colour, or a colour of your own; two-tone icons keep their shape with a pale second tone. Lucide joins the icon sets. Attaching in the chat box is now a plus.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`How it is built, Journeys and Records`,detail:`The capability and record diagrams can be dragged and zoomed, and a large map opens on one capability at a time. A journey reads as a summary and numbered steps. A record shows its fields, with personal data marked, and what writes, reads and shares it.`,to:[`product`,`business`]},{kind:`improved`,title:`Clearer product maps`,detail:`The Landscape and Services maps put front ends, gateways, services, data and test suites in their own bands. A gateway shows its routes, and workers and test suites say what they are.`},{kind:`improved`,title:`Package updates`,detail:`The agent runtime, browser engine, Playwright, Copilot, the data engine's drivers and the desktop packages are updated to their latest versions.`},{kind:`fixed`,title:`Re-run on the Record page`,detail:`A recording made without Google Chrome, or in Docker, now re-runs: ForgeQE tries the run's own browser, then Chrome, Edge and an installed Chromium, instead of failing to start a browser.`,to:[`record`]},{kind:`fixed`,title:`More calls linked between repositories`,detail:`The product graph matches a call to the endpoint it reaches by the route's shape, reads request options written over several lines, and recognises database upserts and .NET message consumers.`}]},{version:`2.7.2`,date:`2026-11-05`,summary:`Convert Tricentis Tosca test cases with the new Bridge and page, past chats kept and carried on after forgeqe web restarts, and one flat icon style across the app.`,changes:[{kind:`new`,title:`Convert Tosca test cases`,detail:`Bridge reads a Tosca .tsu export and, once you confirm its plan, writes one page object per Tosca module and one test per web test case, each Tosca step marked in the test so nothing is lost. Tests go under their Tosca folders and are tagged with the execution lists that run them. forgeqe tosca verify runs the converted tests again without a model.`,to:[`tosca`]},{kind:`new`,title:`Tosca page`,detail:`Under Test, after Migration: start a conversion in four steps (export and test cases, framework and language, instructions, review), follow each test's Tosca steps beside the converted code, and run the tests again, all of them or one suite at a time, with each test's output.`,to:[`tosca`]},{kind:`new`,title:`Past chats are kept`,detail:`Chats are saved in the project and are still listed after forgeqe web restarts, so a link to an earlier chat opens it. Send a message to an ended chat and it carries on with its earlier turns.`,to:[`chats`]},{kind:`improved`,title:`One icon style`,detail:`Pages, agents, buttons and menus use Phosphor icons, drawn in the text's colour so they read on any sidebar. Appearance also offers Solar Bold Duotone, or ForgeQE's 3D icons as before.`,to:[`settings`,`appearance`]},{kind:`fixed`,title:`Azure DevOps sign-in in Evidence`,detail:`An Azure DevOps address on dev.azure.com or visualstudio.com is treated as the cloud, so the Azure CLI sign-in is offered. A sign-in question already answered no longer comes back, and an answer cannot be sent twice.`,to:[`settings`,`evidence`]},{kind:`fixed`,title:`API calls in the product graph`,detail:`A call whose method comes from options built by a helper or held in a variable is read with its real method, such as POST, instead of GET.`}]},{version:`2.7.1`,date:`2026-11-05`,summary:`Set up Evidence in five steps, with repositories picked from your GitHub, Azure DevOps, GitLab or Bitbucket account, and forgeqe update now finds an older copy still running.`,changes:[{kind:`new`,title:`Repositories from your account`,detail:`In Settings, Evidence, add a GitHub, Azure DevOps, GitLab or Bitbucket account (Cloud or Data Center), sign in in the browser or with a personal access token, and pick its repositories from a list. Local clones and links can still be added by hand.`,to:[`settings`,`evidence`]},{kind:`new`,title:`Search through an MCP server`,detail:`The search service can be a service at an address, a tool of one of your MCP servers, or a command, with a search to try on the page.`,to:[`settings`,`evidence`]},{kind:`new`,title:`Add documents from the page`,detail:`Add Markdown and text documents in Settings, Evidence, and the product knowledge build reads them beside your folders, links, Confluence spaces and web apps.`,to:[`settings`,`evidence`]},{kind:`improved`,title:`Evidence set up in five steps`,detail:`Settings, Evidence walks through repositories, search, documents, the product and its knowledge, and building the graph, in that order. The search and knowledge folder settings move here from Agents.`,to:[`settings`,`evidence`]},{kind:`fixed`,title:`forgeqe update finds an older running copy`,detail:`When the ForgeQE you are running is older than the installs it finds, forgeqe update names it and the command that fixes it, instead of saying everything is up to date. On Windows, a pip install whose Python comes from the Microsoft Store is found and updated too.`}]},{version:`2.7.0`,date:`2026-11-05`,summary:`TestMu AI's tools for the agent with a browser sign-in, real logos for more systems in Settings, and quicker moves between Settings sections.`,changes:[{kind:`new`,title:`TestMu AI's tools`,detail:`Turn on TestMu AI's MCP server to give ForgeQE's agent HyperExecute, failure triage, SmartUI, accessibility and Test Manager. Sign in once in the browser; no key is needed. forgeqe auth login testmu offers the browser sign-in or the grid's user name and access key.`,to:[`settings`]},{kind:`improved`,title:`Real logos in Settings`,detail:`GitLab, Postman, Sentry, Xray, TestMu AI, Dataverse and Zephyr Scale show their own logos instead of plain icons.`,to:[`settings`]},{kind:`improved`,title:`Quicker moves in Settings`,detail:`Moving between Settings sections changes at once, without the whole page fading out and back in.`,to:[`settings`]}]},{version:`2.6.9`,date:`2026-11-05`,summary:`A fix for setup on 64-bit Windows, a model picker that holds any number of models, a separate Evidence section in Settings, and a more consistent look on every page.`,changes:[{kind:`improved`,title:`Pick any number of models per area`,detail:`In Settings, Routing, each area of work picks its models from a searchable list instead of a row of chips. Each agent shows its icon and what it does, and the order that decides which model a call gets is a numbered list.`,to:[`settings`]},{kind:`improved`,title:`Evidence has its own Settings page`,detail:`The product, its knowledge graph, repositories, documents and links, and the team's knowledge move from Agents to a new Evidence page in Settings. Agents keeps instructions, custom agents, capabilities and agent names.`,to:[`settings`]},{kind:`improved`,title:`Colours from a website`,detail:`Appearance reads more of a website's colours, up to 16 of them. A site that shows a bot check instead of its page is reported as turned away, rather than offering the check page's colours as the site's.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`The same look on every page`,detail:`Every page uses one style for empty states, tabs and headings. Grey labels are easier to read, and long agent names wrap onto a second line instead of being cut off.`},{kind:`fixed`,title:`Setup on 64-bit Windows`,detail:`forgeqe setup no longer fails on 64-bit Windows when a 32-bit Python is installed: it uses a 64-bit Python instead.`}]},{version:`2.6.8`,date:`2026-11-05`,summary:`A tidier Settings, one standard for buttons and fields across the app, a page background colour, and an easier Runs page.`,changes:[{kind:`new`,title:`A page background colour`,detail:`Set a light background colour for the app in Appearance, or read one from your website or design file. Text and lines adjust so they stay readable.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`A tidier Settings`,detail:`Every setting's control sits in the same column, so fields line up on every section. MCP servers are under AI, and Browser and Replays under Testing. Routing shows which model a call gets, and lists each area of work with its agents under it.`,to:[`settings`]},{kind:`improved`,title:`One standard for buttons and fields`,detail:`Buttons, text fields, dropdowns, search boxes, checkboxes and radios look and size the same across the app. Each view has at most one main button, and secondary buttons have an outline so they no longer look switched off.`},{kind:`improved`,title:`An easier Runs page`,detail:`Runs share the app's search, filters and pages. A run's next steps are clear buttons, and the open tab is kept in the address, so a link or a reload opens it again.`,to:[`runs`]},{kind:`improved`,title:`Easier to read`,detail:`Explanations use darker text, Home's animation settles after a few seconds, the side panel's Environment section has more room, and on a phone the workspace button no longer covers the page heading.`},{kind:`improved`,title:`Reading your website's look`,detail:`When a website turns ForgeQE's reader away, Appearance says so once and what to do instead.`}]},{version:`2.6.7`,date:`2026-11-04`,summary:`A lighter look without boxes, run pages that read cleanly, token counts for every agent in a chat, and a clearer view of how a test was written and reviewed.`,changes:[{kind:`improved`,title:`A lighter look across the app`,detail:`Pages, chat replies and run pages drop their boxes: each section is its heading and content, set apart by space and a thin line. A question still waiting for you keeps its highlight, so it stands out.`},{kind:`improved`,title:`Run pages that read cleanly`,detail:`A run's summary shows its final message once, each test as one result with its full command to copy, and the files the run wrote. The activity is a timeline with each event's time, and Details counts the tokens of every agent that worked on the run.`,to:[`runs`]},{kind:`improved`,title:`Tokens for every agent in a chat`,detail:`Context and tokens counts every agent that works in a chat, such as Quill and Checker, as each model call comes back. Today and Last 30 days count all of the project's chats, runs and agents.`},{kind:`improved`,title:`How a test was written and reviewed`,detail:`A chat shows ForgeQE handing a test to Quill, with its work, test runs and reviews below. The reviewer, now called Checker, shows its verdict and each issue next to the attempt it judged. Step icons show how a step went by their colour.`},{kind:`improved`,title:`Custom agent runs linked to their session`,detail:`A custom agent's recent runs link to the session they ran in on the Runs page.`,to:[`runs`]},{kind:`fixed`,title:`Times in the activity log`,detail:`Each line shows the time it happened, instead of the same +0:00 for every line.`},{kind:`fixed`,title:`Tooltips in chat`,detail:`Copy buttons, a test's full name and the model picker's reason use the app's own tooltip.`}]},{version:`2.6.6`,date:`2026-11-04`,summary:`Change a chat's model without starting over, and reports with your project's logo and a cleaner look.`,changes:[{kind:`new`,title:`Change the model mid-chat`,detail:`Pick another model from the chat's composer between messages, and the chat carries on with its conversation, tools and files. In the terminal, /profile does the same.`,to:[`settings`,`models`]},{kind:`improved`,title:`Your logo in reports`,detail:`Reports show the logo and name set in Settings, Appearance, in their sidebar and as the tab's icon, in place of ForgeQE's.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`A cleaner report`,detail:`Reports drop the cards inside cards: each block is its heading and content on a white page, as in the web app's chat and Settings. Tooltips are styled, show on keyboard focus, and never grow taller than the window.`}]},{version:`2.6.4`,date:`2026-11-04`,summary:`Test cases reused instead of duplicated in every test case system, a product knowledge graph, an Evidence section for checking agents, and new integrations.`,changes:[{kind:`new`,title:`Reuse existing test cases`,detail:`Before saving, ForgeQE compares new cases with the story's linked cases and its scope, and asks before it links to or extends an existing one instead of adding a copy. Optionally it also compares with the other stories under the same feature or epic. Cases older than their story's last change are flagged.`},{kind:`new`,title:`Test cases in Xray, TestRail and Zephyr Scale`,detail:`Save, update and link test cases there as in Azure DevOps, and record which cases are automated. New Azure DevOps cases join the scope's suite with priority, tags, state, shared steps and parameters. Cases can also be saved with no story, under an area path or a project.`},{kind:`new`,title:`Product knowledge`,detail:`ForgeQE reads your repositories, documents and deployment files into one graph of the product's systems and how they talk, with the evidence for each link. The agents use it, the Product page shows it in the business's words, and the Engineering view draws the landscape. It can be built once in a pipeline and shared with the team.`,to:[`product`]},{kind:`new`,title:`Evidence`,detail:`A section for checking AI agents, ForgeQE's own or any other: their runs from OpenTelemetry, Langfuse or LangSmith, contracts and behaviour checks, a scenario suite and a release gate, and monitoring for drift. forgeqe evidence demo fills every page with a demo project.`,to:[`evidence`]},{kind:`new`,title:`More integrations`,detail:`GitLab, BrowserStack, Postman, Azure, Dataverse and Sentry, added from the catalog in the MCP view. MCP servers that need a browser sign-in get one, and every system's sign-in is in Settings.`,to:[`settings`]},{kind:`improved`,title:`Mobile and desktop settings`,detail:`Separate settings for each, devices described by what they are, cloud devices for BrowserStack and TestMu edited in Settings, and mobile tests run on several devices at once.`,to:[`settings`]},{kind:`improved`,title:`A model and a name for each agent`,detail:`Choose a default model for each agent, and call each agent what your team calls it.`,to:[`settings`]},{kind:`improved`,title:`Release readiness for Jira`,detail:`Release readiness works on Jira scopes, as it does on Azure DevOps.`},{kind:`improved`,title:`Carry on, or stop`,detail:`Healing, the Regression page, forgeqe suite and a browser run that makes no progress ask before they stop at a limit.`},{kind:`fixed`,title:`Links and proxies`,detail:`Links in chat are fetched only after ForgeQE's own checks, and web fetches work behind a company proxy.`},{kind:`fixed`,title:`Migration`,detail:`The source framework is found from the project's packages and code, not a word in a comment, and a remote grid is named only when the code starts one.`}]},{version:`2.6.3`,date:`2026-11-03`,summary:`A migration agent for old test suites, a Miner that finds test data for every agent, and the same chat box on every agent's page.`,changes:[{kind:`new`,title:`Mover`,detail:`Move a test suite to another framework with forgeqe migrate or the Migration page. Bring the tests from git, a folder, an upload or a paste; ForgeQE migrates them, runs them, fixes what fails, and shows the old and new side by side in Compare.`,to:[`migration`]},{kind:`new`,title:`Miner`,detail:`Every agent asks Miner for test data before it runs. Its page under Agents shows your databases, their schema as a diagram, and an Ask box.`,to:[`agents`]},{kind:`new`,title:`Test data page`,detail:`Every request for test data is logged, with what was asked and what came back.`,to:[`test-data`]},{kind:`improved`,title:`Data page`,detail:`Redesigned around Miner, with paged lists and one clear main action.`,to:[`data`]},{kind:`improved`,title:`The same chat box everywhere`,detail:`Every Agent tab has attachments, @ files, Refine, the environment, tools and the model. Nothing is sent until ForgeQE is set up, and Home's Set up card says what is missing.`},{kind:`improved`,title:`A page for every agent`,detail:`Each agent's page has its own tools, requests and runs below its chat.`,to:[`agents`]},{kind:`improved`,title:`Headline numbers`,detail:`Shown as one stat panel with a trend for each number.`}]},{version:`2.6.2`,date:`2026-11-02`,summary:`Custom agents, a page for every agent, Accessibility, Performance and Visual pages, and pictures in chat.`,changes:[{kind:`new`,title:`Custom agents`,detail:`Build your own agent with the agent builder. It runs only an approved version, held to its limits on every tool call, and can run on a schedule with a person approving what it may not do alone.`,to:[`agents`]},{kind:`new`,title:`Accessibility, Performance and Visual pages`,detail:`Each has its own page and agent. Accessibility tests a goal as personas (blind, keyboard-only, low vision…) and keeps every session in a Results tab.`,to:[`accessibility`]},{kind:`new`,title:`Agents page`,detail:`Every agent in four columns by category, with what each can do and whether it is ready. Mark favourites to keep them close.`,to:[`agents`]},{kind:`new`,title:`Pictures and files in chat`,detail:`Attach files with @ or drop them on the composer. Images of any format are shrunk and stripped of their metadata before the model sees them; /paste works in the terminal.`},{kind:`new`,title:`GitHub Copilot models`,detail:`Pick a Copilot model in Settings, count and budget premium requests, and sign in with GitHub Enterprise Cloud.`,to:[`settings`,`models`]},{kind:`new`,title:`Jobs agent`,detail:`Make a job by asking for it in the Agent tab; jobs show as a table.`,to:[`jobs`]},{kind:`improved`,title:`At a limit, carry on`,detail:`When a run reaches its budget, ForgeQE asks whether to carry on instead of ending the work.`},{kind:`improved`,title:`Tables everywhere`,detail:`Memory, Knowledge, Skills, Guardrails and Prompts are tables that look and page the same, each with a search box.`},{kind:`improved`,title:`What's ready`,detail:`One box per area, one line per feature, and the details in a side sheet.`,to:[`features`]},{kind:`improved`,title:`Dark and light in the sidebar`,detail:`Switch the theme from the sidebar; the sidebar itself is dark.`},{kind:`fixed`,title:`Copilot errors`,detail:`Rate limits, cut-off replies and Windows' reason for not loading Copilot's runtime are now reported clearly.`}]},{version:`2.4.0`,date:`2026-10-28`,summary:`Each agent gets only the tools it needs.`,changes:[{kind:`new`,title:`Scoped MCP tools`,detail:`An agent's tool server offers only the tools its work needs, so it chooses among fewer and calls fewer by mistake.`}]}]},xd=[`new`,`improved`,`fixed`],Sd=/^[a-z0-9][a-z0-9-]*$/,Cd=/^[0-9]+\.[0-9]+\.[0-9]+([a-zA-Z0-9.-]*)?$/,wd={summary:240,title:80,detail:600},Td=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function Ed(e,t){if(typeof e!=`string`)return;let n=e.trim();if(!(!n||n.length>t||/[\u0000-\u001f\u007f\u2028\u2029]/.test(n)))return n}function Dd(e){if(typeof e!=`string`||!/^\d{4}-\d{2}-\d{2}$/.test(e))return;let t=new Date(`${e}T00:00:00Z`);return!Number.isNaN(t.getTime())&&t.toISOString().slice(0,10)===e?e:void 0}function Od(e){let t=/^([0-9]+)\.([0-9]+)\.([0-9]+)(.*)$/.exec(e);return t?[Number(t[1]),Number(t[2]),Number(t[3]),+!t[4],t[4]??``]:[0,0,0,0,e]}function kd(e,t){let n=Od(e),r=Od(t);for(let e=0;e<4;e++)if(n[e]!==r[e])return n[e]-r[e];return n[4]<r[4]?-1:+(n[4]>r[4])}function Ad(e,t,n){if(!Td(e))return void n.push(`${t}: not an object`);let r=Object.keys(e).filter(e=>![`kind`,`title`,`detail`,`to`].includes(e));if(r.length)return void n.push(`${t}: unknown key ${r.join(`, `)}`);let i=xd.find(t=>t===e.kind);if(!i)return void n.push(`${t}: kind must be one of ${xd.join(`, `)}`);let a=Ed(e.title,wd.title);if(!a)return void n.push(`${t}: title must be one line of at most ${wd.title} characters`);let o=Ed(e.detail,wd.detail);return o?e.to===void 0?{kind:i,title:a,detail:o}:!Array.isArray(e.to)||!e.to.length||e.to.length>4||!e.to.every(e=>typeof e==`string`&&Sd.test(e))?void n.push(`${t}: to must be 1 to 4 route parts of the web app, like ["settings", "models"]`):{kind:i,title:a,detail:o,to:[...e.to]}:void n.push(`${t}: detail must be one line of at most ${wd.detail} characters`)}function jd(e,t,n){if(!Td(e))return void n.push(`${t}: not an object`);let r=Object.keys(e).filter(e=>![`version`,`date`,`summary`,`changes`].includes(e));if(r.length)return void n.push(`${t}: unknown key ${r.join(`, `)}`);let i=typeof e.version==`string`&&Cd.test(e.version)?e.version:void 0;if(!i)return void n.push(`${t}: version must be like 2.6.2`);let a=`${t} (${i})`,o=Dd(e.date);if(!o)return void n.push(`${a}: date must be a real day, like 2026-11-02`);let s=Ed(e.summary,wd.summary);if(!s)return void n.push(`${a}: summary must be one line of at most ${wd.summary} characters`);if(!Array.isArray(e.changes)||!e.changes.length)return void n.push(`${a}: changes must list at least one change`);let c=n.length,l=e.changes.map((e,t)=>Ad(e,`${a} change ${t+1}`,n)).filter(e=>!!e);if(!(n.length>c))return{version:i,date:o,summary:s,changes:l}}function Md(e){let t=[];if(!Td(e)||!Array.isArray(e.releases))return{releases:[],problems:[`the file must be an object with a "releases" list`]};let n=Object.keys(e).filter(e=>e!==`releases`&&e!==`$comment`);n.length&&t.push(`unknown key ${n.join(`, `)}`);let r=[];return e.releases.forEach((e,n)=>{let i=jd(e,`release ${n+1}`,t);if(!i)return;let a=r[r.length-1];if(r.some(e=>e.version===i.version))return void t.push(`release ${n+1}: version ${i.version} is listed twice`);if(a&&(kd(i.version,a.version)>=0||i.date>a.date))return void t.push(`release ${n+1}: ${i.version} must come after ${a.version} (newest first, by version and date)`);r.push(i)}),{releases:r,problems:t}}var Nd=Md(Z).releases,Q=Nd[0],Pd=e=>e.to?.length&&e.to.every(e=>Sd.test(e))?s(...e.to):void 0,Fd=e=>new Date(`${e}T00:00:00`),Id=e=>Fd(e).toLocaleDateString(void 0,{day:`numeric`,month:`short`,year:`numeric`}),Ld=e=>Fd(e).toLocaleDateString(void 0,{month:`long`,year:`numeric`});function Rd(e=Nd){let t=[];for(let n of e){let e=Ld(n.date),r=t[t.length-1];r?.month===e?r.releases.push(n):t.push({month:e,releases:[n]})}return t}var zd=`forgeqe-whats-new-seen`,Bd=()=>{try{return localStorage.getItem(zd)===Q?.version}catch{return!1}},Vd=()=>{try{Q&&localStorage.setItem(zd,Q.version)}catch{}},Hd={browser:[`browser`],mobile:[`mobile`],desktop:[`desktop`],coding:[`tests`],db:[`databases`],accessibility:[`quality`],performance:[`quality`],visual:[`quality`],jobs:[`monitor`]},Ud={browser:`browser`,mobile:`mobile`,desktop:`desktop`,tests:`coding`,databases:`db`,quality:`accessibility`,monitor:`jobs`},Wd=e=>Object.hasOwn(Ud,e);function Gd(e){let t=Ud[e],n=de.find(e=>e.id===t);return n?c(n):s(t)}var Kd=`forgeqe-open-settings`;function qd(e,t=!1){if(Wd(e)){try{sessionStorage.setItem(Kd,e)}catch{}t?location.replace(Gd(e)):location.hash=Gd(e)}}function Jd(e){let t=Ud[e];return t===`accessibility`?`the Quality pages`:t===`jobs`?`the Jobs page`:`${de.find(e=>e.id===t)?`its agent's`:`its`} page`}var Yd=he.filter(e=>!fe.includes(e.id)&&!Wd(e.id)),Xd=(0,L.lazy)(()=>v(()=>import(`./agentSettingsSheet-BdB7IXah.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),Zd=/^[a-z][a-z0-9-]*$/,Qd=e=>e.filter(e=>Zd.test(e));function $d({page:e,title:t,agents:n=[]}){let r=Hd[e]??[],i=Qd(n),[a,o]=(0,L.useState)(!1),[s,c]=(0,L.useState)(!1);return(0,L.useEffect)(()=>{try{let e=sessionStorage.getItem(Kd);e&&r.includes(e)&&(sessionStorage.removeItem(Kd),c(!0),o(!0))}catch{}},[e]),!r.length&&!i.length?null:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`${t} settings`,"data-tip":`${t} settings`,"aria-haspopup":`dialog`,"aria-expanded":a,onClick:()=>{c(!0),o(!0)},children:(0,R.jsx)(yt,{"aria-hidden":`true`})}),s&&(0,R.jsx)(L.Suspense,{fallback:null,children:(0,R.jsx)(Xd,{open:a,onClose:()=>o(!1),title:t,sections:r,agents:i})})]})}function ef(e,t){setTimeout(()=>{let n=document.getElementById(e);if(!n)return;n.focus();let r=Fi(t);r&&n.setSelectionRange(r[0],r[1])},0)}function tf(){let[e,t]=(0,L.useState)(()=>!!Q&&!Bd());if(!e||!Q)return null;let n=Q.changes.filter(e=>e.kind===`new`).slice(0,3);return(0,R.jsxs)(`section`,{"aria-labelledby":`whats-new-title`,className:S(m,`flex w-full items-start gap-x-4`),children:[(0,R.jsx)(F,{icon:Zt,size:20,className:`mt-1 flex-none text-icon`}),(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-center gap-x-4 gap-y-4`,children:[(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-1`,children:[(0,R.jsxs)(`span`,{id:`whats-new-title`,className:`font-medium`,children:[`What's new in ForgeQE `,Q.version]}),(0,R.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:n.length?n.map(e=>e.title).join(` · `):Q.summary})]}),(0,R.jsxs)(`a`,{className:Le({variant:`outline`}),href:s(`settings`,`whats-new`),"data-tip":`See all changes`,children:[(0,R.jsx)(ln,{"aria-hidden":`true`}),`Changes`]})]}),(0,R.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Close until the next release`,"data-tip":`Close until the next release`,onClick:()=>{Vd(),t(!1)},className:`-my-2 -mr-2 size-8 flex-none`,children:(0,R.jsx)(St,{size:16,"aria-hidden":`true`})})]})}function nf({id:e}){let t=Wn(e);return(0,R.jsx)(He,{to:{href:t.href,label:t.label}})}function rf({agent:e,tabs:t}){return(0,R.jsxs)(`header`,{style:t?{viewTransitionName:`agent-tabs`}:void 0,className:`flex flex-wrap items-center gap-1 px-6 py-4 short:py-2`,children:[(0,R.jsx)(Ar,{}),e&&(0,R.jsx)(nf,{id:e.id}),t&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`span`,{className:`flex-1`}),t]})]})}function af({agent:e,title:t,tabs:n,end:r,back:i,tabsBelow:a=!1}){let o=N(e.agent);return(0,R.jsxs)(R.Fragment,{children:[i?(0,R.jsx)(He,{to:{href:i.href,label:i.label}}):(0,R.jsx)(nf,{id:e.id}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-2`,children:[(0,R.jsx)(ne,{agent:e.agent,px:40,decorative:!0}),(0,R.jsx)(`h1`,{className:`m-0 font-home text-headline-lg`,children:t??(o?o.name:e.id)}),!a&&n,(0,R.jsx)(`span`,{className:`flex-auto`}),r,(0,R.jsx)($d,{page:e.id,title:o?o.name:e.id,agents:e.prompt===!1?[]:e.runs})]}),a&&n&&(0,R.jsx)(`div`,{className:`flex min-w-0 flex-wrap`,children:n})]})}function of({agent:e,title:t,below:n,tabs:r,end:i}={}){let a=e&&N(e.agent),o=e?e.starters:Pi,[c,l]=(0,L.useState)(``),[u,d]=(0,L.useState)(``);(0,L.useEffect)(()=>{if(!e)try{let e=sessionStorage.getItem(Wo);sessionStorage.removeItem(Wo),e&&e.trim()&&(l(e.slice(0,2e4)),setTimeout(()=>Ga(`msg`),0))}catch{}},[]);let[f,p]=(0,L.useState)(!1),m=Io(),h=z(),g=E(oe().theme)!==`icons`,_=md(!!e||g||f),[v,y]=(0,L.useState)(null),b=bd(!!e||!g||f,v,c),{setup:x}=m,C=Lc({kind:`all`},e=>y(_d(e)),!!e||!x?.ready),w=Hc(C),ee=W(C).count,T=za(c,e=>{l(e),d(``)},`msg`,{code:m.tools.code}),D=Ha(`home`,e=>{l(e),Ga(`msg`)}),te=async(t=c)=>{let n=a&&e?.agent!==`forgeqe`&&t.trim()?`${a.name}: ${t.trim()}`:t.trim();if(f||!n.trim()&&!T.hasFiles)return!1;p(!0),d(``);try{let t=await T.wrap(n);if(!t.trim())return p(!1),!1;let{id:r}=await Ie.start(t,m.choice,e?.id??`orchestrator`);return T.reset({keep:!0}),location.hash=s(`chats`,r),!0}catch(e){return d(e.message),p(!1),!1}};return(0,R.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col bg-canvas`,children:[e?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Pr,{}),(0,R.jsx)(`div`,{className:S(Fr,`@container gap-4 pb-0 short:pb-0`),children:(0,R.jsx)(af,{agent:e,...t?{title:t}:{},tabs:r,end:i})})]}):(0,R.jsx)(rf,{}),(0,R.jsxs)(`main`,{className:S(`flex flex-auto flex-col items-center px-6`,e?`pt-8 pb-16 short:pt-6 short:pb-8`:`pt-16 pb-24 short:pt-8 short:pb-16`),children:[(0,R.jsxs)(`div`,{className:S(`flex w-full flex-col items-center gap-10 short:gap-6`,e?`max-w-[880px]`:`home-controls max-w-[780px]`),children:[(0,R.jsxs)(`div`,{className:`flex flex-col items-center gap-4 text-center short:gap-2`,children:[e?(0,R.jsx)(ne,{agent:e.agent,px:h?64:96,decorative:!0,working:f,className:`mb-1`}):g?(0,R.jsx)(ne,{agent:ce,px:h?72:112,state:f?`thinking`:b.state,mood:f?void 0:b.mood,activity:f?void 0:b.activity,className:`mb-1`}):(0,R.jsx)(Ke,{state:f?`waiting`:_,px:h?72:112,label:f?`Starting the chat`:`ForgeQE is ready`,className:`mb-1`}),e&&a&&t&&t!==a.name&&(0,R.jsx)(`p`,{className:`m-0 text-headline-sm`,children:a.name}),!e&&C.ready&&(ee?(0,R.jsx)(`button`,{type:`button`,onClick:zc,className:`cursor-pointer border-0 bg-transparent p-0 focus-visible:ring-2 focus-visible:ring-accent`,"data-tip":`Show what is waiting`,children:(0,R.jsxs)(Be,{tone:`warn`,children:[w?`${w} working now`:`Nothing running now`,`, `,Rc(C).words]})}):(0,R.jsx)(Be,{tone:w?`running`:`pass`,children:w?`${w} working now`:`Nothing running now`})),!e&&(0,R.jsx)(`h1`,{"data-app-title":``,className:`m-0 font-home text-headline-lg-mobile text-ink sm:text-headline-lg`,children:`What are we assuring today?`}),e?(0,R.jsx)(`p`,{className:`m-0 text-body-lg leading-relaxed text-ink-2`,children:e.about}):(0,R.jsx)(`p`,{className:`m-0 max-w-[46ch] text-body-md text-ink-2`,children:`ForgeQE assures every release: it uses your app as your customers do, shows what broke and why, and keeps the proof.`}),e?.crew?.length?(0,R.jsx)(Mi,{crew:e.crew}):null]}),x&&!x.ready&&(0,R.jsx)(Vo,{project:x.project}),x?.ready&&(0,R.jsx)(Ho,{c:m}),(0,R.jsx)(Va,{id:`msg`,label:a?`Message ${ge(a.name)}`:`Message ForgeQE`,value:c,onChange:e=>{l(e),d(``)},onSend:()=>void te(),disabled:f||!!x&&!x.ready||D.running,canSend:!!c.trim()||T.hasFiles,onEdit:T.onEdit,onKey:T.onKeyDown,onFiles:T.onFiles,dropping:T.dropping,drop:T.drop,mentions:T.mentions,combo:T.combo,placeholder:a?`Ask ${ge(a.name)} to…`:`Ask ForgeQE to test something…`,top:(0,R.jsxs)(R.Fragment,{children:[T.chips,D.state&&(0,R.jsx)(Wa,{state:D.state,onStop:()=>void D.stop(),onUndo:D.undo,onClose:D.close}),(0,R.jsx)(rr,{chat:null})]}),left:(0,R.jsxs)(R.Fragment,{children:[T.fileInput,(0,R.jsx)(Lo,{attach:{pick:T.pick},choice:m}),(0,R.jsx)(Ua,{running:D.running,disabled:!c.trim()||f||!!x&&!x.ready,onClick:()=>void D.start(c)}),(0,R.jsx)(Qn,{chat:null,disabled:f||D.running||!!x&&!x.ready})]}),right:(0,R.jsx)(zo,{c:m})}),(0,R.jsx)(`p`,{role:`status`,"aria-live":`polite`,className:S(`-mt-6 m-0 text-center short:-mt-4 text-body-sm text-ink-2`,!(u||T.error)&&`sr-only`),children:(0,R.jsx)(`span`,{className:T.error&&!u?`text-fail`:``,children:u||T.error||``})}),(0,R.jsx)(`div`,{className:`-mt-2 flex flex-wrap justify-center gap-2`,children:o.map(({label:e,Icon:t,text:n})=>(0,R.jsxs)(I,{onClick:()=>{l(n),d(``),ef(`msg`,n)},children:[t&&(0,R.jsx)(t,{"aria-hidden":`true`}),e]},e))}),n]}),!e&&(0,R.jsxs)(`div`,{className:`mt-16 flex w-full max-w-[1040px] flex-col gap-12 short:mt-8`,children:[x?.ready&&(0,R.jsx)(cd,{board:C}),(0,R.jsx)(tf,{})]})]})]})}function sf({groups:e,edit:t}){return(0,R.jsx)(R.Fragment,{children:e.map(e=>(0,R.jsxs)(ur,{children:[(0,R.jsx)(Xn,{help:e.help,first:!0,children:e.title}),(0,R.jsx)(Kn,{defs:e.fields,edit:t,base:e.base})]},e.title))})}Yn.add(sf);function cf(e,t,n,r){return t.map(t=>{let r=e[t]??n.find(e=>e.key===t)?.default;return typeof r==`string`?r:``}).filter(e=>e&&!r(e))}var lf=[{key:`url`,label:`Sign-in page`,type:`url`,placeholder:`https://staging.shop.example/login`},{key:`domains`,label:`Or sites`,help:`Comma separated; * matches a subdomain.`,type:`list`,placeholder:`https://staging.shop.example, https://*.shop.example`},{key:`app`,label:`Or desktop app`,help:`A desktop app of desktop.apps this login signs in to, instead of a site.`,type:`text`,placeholder:`billing`},{key:`username_env`,label:`User name variable`,type:`var`,placeholder:`SHOP_USER`},{key:`password_env`,label:`Password variable`,type:`var`,placeholder:`SHOP_PASSWORD`},{key:`totp_env`,label:`Authenticator secret variable`,help:`Optional: a base32 secret for two-factor codes.`,type:`var`,placeholder:`SHOP_TOTP_SECRET`},{key:`save_session`,label:`Keep the session`,help:`The next run starts signed in (.forgeqe/sessions). Off signs in every run.`,type:`switch`,default:!0},{key:`code`,label:`Codes sent by`,help:`A one-time code the site sends another way than an authenticator app: ForgeQE reads it where it arrives and types it.`,type:`select`,options:[{value:`email`,label:`Email (a test mailbox, IMAP)`},{value:`sms`,label:`Text message (Twilio)`},{value:`http`,label:`The test environment's address`}],emptyLabel:`None`},{key:`code_host`,label:`Mailbox server`,help:`The IMAP server, on port 993.`,type:`text`,placeholder:`imap.mail.example`,when:e=>e.code===`email`},{key:`code_user_env`,label:`Mailbox user or Twilio SID variable`,help:`Email: the mailbox user. Text message: the Twilio account SID.`,type:`var`,placeholder:`QA_MAIL_USER`,when:e=>e.code===`email`||e.code===`sms`},{key:`code_secret_env`,label:`Mailbox password or token variable`,help:`Email: the mailbox password. Text message: the Twilio auth token. Address: its token (optional).`,type:`var`,placeholder:`QA_MAIL_PASSWORD`,when:e=>!!e.code},{key:`code_to`,label:`Sent to`,help:`Email: the address the code goes to (optional). Text message: the number, +15550100.`,type:`text`,placeholder:`+15550100 or qa1@mail.example`,when:e=>e.code===`email`||e.code===`sms`},{key:`code_sender`,label:`Sent from`,help:`Optional: only messages from this address or number.`,type:`text`,placeholder:`no-reply@shop.example`,when:e=>e.code===`email`||e.code===`sms`},{key:`code_folder`,label:`Mailbox folder`,type:`text`,default:`INBOX`,when:e=>e.code===`email`},{key:`code_url`,label:`Address with the latest code`,help:`https (http only on this computer); answers with the code as text or JSON.`,type:`url`,placeholder:`https://qa-api.shop.example/otp/latest?user=qa1`,when:e=>e.code===`http`},{key:`code_header`,label:`Token header`,help:`Optional: the header the token goes in (Authorization: Bearer otherwise).`,type:`text`,placeholder:`X-Api-Key`,when:e=>e.code===`http`},{key:`code_pattern`,label:`Code pattern`,help:`Optional: a regular expression whose group is the code (4 to 8 digits otherwise).`,type:`text`,placeholder:`Your code is ([0-9]{6})`,when:e=>!!e.code},{key:`code_wait`,label:`Wait for it (seconds)`,type:`number`,default:90,when:e=>!!e.code},{key:`passkey_env`,label:`Security key variable`,help:`Holds a security key or passkey registered once; runs present it as a virtual key.`,type:`var`,placeholder:`SHOP_PASSKEY`},{key:`push_wait`,label:`Wait for a push approval (seconds)`,help:`A push to a phone needs a person: the run waits this long and tells the notification channels that ask for sign-in approvals.`,type:`number`,placeholder:`120`}],uf=/^[A-Za-z0-9][A-Za-z0-9_.-]{0,62}$/;function df(e,t,n){return e?uf.test(e)?e!==t&&n.includes(e)?`There is already a sign-in named ${e}.`:``:`Letters, digits, . _ and -.`:`Needs a name.`}function ff(e){let t=e.toUpperCase().replace(/[^A-Z0-9]/g,`_`);return{username_env:`${t}_USER`,password_env:`${t}_PASSWORD`}}function pf({edit:e}){let[t,n]=(0,L.useState)(null),r=Cr(),i=$n(e.value.logins),a=Object.keys(i);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(ur,{children:[(0,R.jsx)(Xn,{first:!0,icon:ct,children:`Sign-ins`}),(0,R.jsxs)(`div`,{className:`-mt-2 mb-4 flex flex-wrap items-center justify-between gap-4`,children:[(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:`One for each app the agent signs in to.`}),(0,R.jsxs)(I,{size:`sm`,"data-tip":`Add a sign-in`,onClick:()=>{let e=Ln(i,`shop`);n({mode:`add`,from:``,name:e,login:ff(e)})},children:[(0,R.jsx)(lt,{"aria-hidden":`true`}),`Add`]})]}),a.length===0&&(0,R.jsx)(`p`,{className:`m-0 border-t border-line-soft py-6 text-body-sm text-muted`,children:`None yet.`}),Object.entries(i).map(([t,i])=>{let a=$n(i),o=cf(a,[`username_env`,`password_env`],lf,e=>kr(r,e)),s=a.username_env||a.password_env;return(0,R.jsx)(sr,{expandable:!1,open:!1,onToggle:()=>{},lead:(0,R.jsx)(Jn,{icon:ct}),title:t,meta:String(a.url||(Array.isArray(a.domains)?a.domains.join(`, `):``)||`No site yet`),state:s?o.length?(0,R.jsx)(`span`,{className:`text-body-sm text-warn`,"data-tip":o.join(`, `),children:o.length===1?`Needs ${o[0]}`:`Needs ${o.length} variables`}):(0,R.jsx)(`span`,{className:`text-body-sm text-pass`,children:`Ready`}):(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:`Not set up`}),actions:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Edit ${t}`,"data-tip":`Edit ${t}`,onClick:()=>n({mode:`edit`,from:t,name:t,login:{...a}}),children:(0,R.jsx)(ft,{"aria-hidden":`true`})}),(0,R.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${t}`,"data-tip":`Remove ${t}`,onClick:()=>e.set(Gn(e.value,[`logins`,t],void 0)),children:(0,R.jsx)(Mn,{"aria-hidden":`true`})})]}),children:null},t)})]}),(0,R.jsx)(mf,{panel:t,setPanel:n,taken:a,vars:e.vars,onApply:t=>{t.mode===`add`?e.set(Gn(e.value,[`logins`,t.name],t.login)):e.set(Gn(e.value,[`logins`],{...er(i,t.from,t.name),[t.name]:t.login}))}})]})}function mf({panel:e,setPanel:t,taken:n,vars:r,onApply:i}){let a={value:e?$n(e.login):{},set:n=>e&&t({...e,login:n}),vars:r},o=e?df(e.name,e.from,n):``,s=()=>t(null);return(0,R.jsx)(Nr,{open:!!e,onClose:s,title:e?.mode===`add`?`Add a sign-in`:`Edit ${e?.from}`,description:(0,R.jsxs)(R.Fragment,{children:[`The page and variables for one app login. Changes apply when you press the button below; a secret's value goes to your credential store as you type it.`,e?.name&&uf.test(e.name)?(0,R.jsxs)(R.Fragment,{children:[` `,`Sign in by hand with `,(0,R.jsxs)(`code`,{className:`font-mono text-body-sm`,children:[`forgeqe login `,e.name]}),`.`]}):null]}),footer:(0,R.jsxs)(R.Fragment,{children:[o&&(0,R.jsx)(`span`,{className:`mr-auto self-center text-body-sm text-muted`,children:`Needs a valid name`}),(0,R.jsxs)(I,{onClick:s,children:[(0,R.jsx)(St,{"aria-hidden":`true`}),`Cancel`]}),(0,R.jsxs)(I,{variant:`primary`,disabled:!!o,onClick:()=>{i(e),s()},children:[e?.mode===`add`?(0,R.jsx)(lt,{"aria-hidden":`true`}):(0,R.jsx)(En,{"aria-hidden":`true`}),e?.mode===`add`?`Add`:`Done`]})]}),children:e&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(lr,{label:`Name`,help:o?(0,R.jsx)(`span`,{className:`text-fail`,children:o}):`How environments and forgeqe login name it.`,htmlFor:`login-name`,className:`mt-4`,stacked:!0,children:(0,R.jsx)(l,{id:`login-name`,value:e.name,spellCheck:!1,placeholder:`shop-qa`,"aria-invalid":!!o,onChange:n=>t({...e,name:n.target.value.trim()}),className:`font-mono`})}),(0,R.jsx)(Kn,{defs:lf,edit:a,base:[],stacked:!0})]})})}function hf({rules:e,others:t,onChange:n}){let[r,i]=(0,L.useState)(``),[a,o]=(0,L.useState)(``),s=r.trim().length>0;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(`form`,{onSubmit:a=>{a.preventDefault();let s=r.replace(/^\s*[-*+]\s+/,``).trim();if(s){if(s.length>300)return o(`A rule is at most 300 characters: make it shorter.`);if([...e,...t.map(e=>e.text)].some(e=>e.toLowerCase()===s.toLowerCase()))return o(`That rule is already in force.`);o(``),n([...e,s]),i(``)}},className:`mb-4 flex items-center gap-2`,children:[(0,R.jsx)(`label`,{htmlFor:`rule`,className:`sr-only`,children:`New rule`}),(0,R.jsx)(l,{id:`rule`,value:r,maxLength:300,onChange:e=>{i(e.target.value),o(``)},placeholder:`Add a rule every agent must follow`,className:`flex-auto`}),(0,R.jsxs)(I,{type:`submit`,variant:`accent`,disabled:!s,"data-tip":`Add the rule`,children:[(0,R.jsx)(lt,{"aria-hidden":`true`}),`Add`]})]}),a&&(0,R.jsx)(`p`,{role:`alert`,className:`mt-0 mb-4 text-body-sm text-fail`,children:a}),e.length===0&&t.length===0?(0,R.jsx)(`p`,{className:`m-0 py-6 text-body-sm text-muted`,children:`No rules yet. Add the first one above.`}):(0,R.jsx)(`div`,{className:`@container`,children:(0,R.jsx)(xr,{label:`Rules`,placeholder:`Find a rule`,empty:`No rule matches.`,head:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`th`,{scope:`col`,className:hr,children:`Rule`}),(0,R.jsx)(`th`,{scope:`col`,className:S(hr,`hidden @xl:table-cell`),children:`Set in`}),(0,R.jsx)(`th`,{scope:`col`,className:hr,children:(0,R.jsx)(`span`,{className:`sr-only`,children:`Remove`})})]}),children:[...e.map((t,r)=>(0,R.jsxs)(`tr`,{className:ar,children:[(0,R.jsx)(`td`,{className:S(Lr,`leading-normal`),children:t}),(0,R.jsx)(`td`,{className:S(Lr,`hidden w-[1%] whitespace-nowrap @xl:table-cell`),children:(0,R.jsx)(Be,{tone:`pass`,icon:!1,children:`This project`})}),(0,R.jsx)(`td`,{className:S(Lr,`w-[1%] text-right`),children:(0,R.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove rule: ${t}`,"data-tip":`Remove rule: ${t}`,onClick:()=>n(e.filter((e,t)=>t!==r)),children:(0,R.jsx)(Mn,{"aria-hidden":`true`})})})]},`own-${r}`)),...t.map(e=>(0,R.jsxs)(`tr`,{className:ar,children:[(0,R.jsx)(`td`,{className:S(Lr,`leading-normal`),children:e.text}),(0,R.jsxs)(`td`,{className:S(Lr,`hidden w-[1%] whitespace-nowrap @xl:table-cell`),children:[(0,R.jsx)(`span`,{className:`font-mono text-body-sm text-muted`,children:e.source}),e.agents?.length?(0,R.jsxs)(`span`,{className:`block text-body-sm text-muted`,children:[`For `,e.agents.length>2?`${e.agents.length} agents`:e.agents.map(e=>N(e).name).join(` and `)]}):null]}),(0,R.jsx)(`td`,{className:S(Lr,`w-[1%] text-right text-body-sm whitespace-nowrap text-muted`),children:`Read only`})]},`other-${e.source}-${e.text}`))]})})]})}function gf(e){let t=e=>e.split(/[\\/]/).pop()||e,n=e.paths.environments;return[{id:`config`,label:t(e.paths.config),file:`config`,path:e.paths.config,text:e.raw.config},{id:`models`,label:t(e.paths.models),file:`models`,path:e.paths.models,text:e.raw.models},...e.raw.environments.map(e=>({id:`env:${e.name}`,label:t(e.path),file:`environments`,env:n.layout===`dir`?e.name:void 0,path:e.path,text:e.text}))]}var _f=`m-0 px-4 py-4 font-mono text-body-sm leading-[1.7] whitespace-pre-wrap [overflow-wrap:anywhere] [tab-size:2]`;function vf({id:e,value:t,lang:n,onChange:r,plain:i=!1}){let a=ei(t,n);return(0,R.jsx)(`div`,{className:S(`outline-accent has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2`,i?`rounded-sm [&_pre]:px-0 [&_textarea]:px-0`:S(f,`max-h-[calc(var(--screen)-300px)] min-h-[360px] overflow-auto rounded-base`)),children:(0,R.jsxs)(`div`,{className:`grid`,children:[(0,R.jsxs)(`pre`,{"aria-hidden":`true`,className:S(_f,`pointer-events-none text-ink [grid-area:1/1]`),children:[a,`
50
+ `]}),(0,R.jsx)(`textarea`,{id:e,spellCheck:!1,autoCapitalize:`off`,autoCorrect:`off`,value:t,onChange:e=>r(e.target.value),className:S(_f,`resize-none overflow-hidden border-0 !bg-transparent text-transparent caret-ink outline-none selection:bg-accent-soft [grid-area:1/1]`)})]})})}function yf({snap:e,dirty:t,onSave:n}){let r=gf(e),[i,a]=(0,L.useState)(`config`),[o,s]=(0,L.useState)({}),[c,l]=(0,L.useState)(!1),u=r.find(e=>e.id===i)||r[0],d=o[u.id]??u.text,f=d!==u.text;return(0,R.jsxs)(ur,{children:[(0,R.jsx)(vr,{prefix:`file`,label:`Settings files`,className:`mb-4`,current:u.id,onPick:a,tabs:r.map(e=>({id:e.id,label:e.label,mono:!0}))}),(0,R.jsxs)(`div`,{id:`file-panel-${u.id}`,role:`tabpanel`,"aria-labelledby":`file-${u.id}`,className:`flex flex-col gap-4`,children:[(0,R.jsx)(`p`,{className:`m-0 font-mono text-body-sm break-all text-muted`,children:u.path}),e.errors[u.file]&&(0,R.jsxs)(`p`,{role:`alert`,className:S(P.fail,`m-0`),children:[`Does not parse: `,e.errors[u.file]]}),(0,R.jsx)(`label`,{htmlFor:`file-text`,className:`sr-only`,children:u.label}),(0,R.jsx)(vf,{id:`file-text`,plain:!0,value:d,lang:u.label.endsWith(`.json`)?`json`:`yaml`,onChange:e=>s({...o,[u.id]:e})}),(0,R.jsxs)(`div`,{className:`sticky bottom-0 z-[1] -mx-1 flex flex-wrap items-center gap-4 border-t border-line-soft bg-bg px-1 py-4`,children:[(0,R.jsxs)(I,{busy:c,size:`sm`,variant:`primary`,"data-tip":`Save file`,disabled:!f||c||t[u.file],onClick:async()=>{l(!0);try{if(await n(u.file,d,u.env)){let e={...o};delete e[u.id],s(e)}}finally{l(!1)}},children:[(0,R.jsx)(En,{"aria-hidden":`true`}),c?`Saving…`:`Save`]}),f&&(0,R.jsxs)(I,{size:`sm`,onClick:()=>{let e={...o};delete e[u.id],s(e)},disabled:c,"data-tip":`Discard your changes`,children:[(0,R.jsx)(Ze,{"aria-hidden":`true`}),`Discard`]}),t[u.file]&&(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:`Save or discard the form's changes to this file first.`})]})]})]})}var bf=/^[A-Za-z0-9][A-Za-z0-9_-]{0,62}$/;function xf({edit:e,base:t,defs:n,noun:r,meta:i,start:a={},placeholder:o}){let s=$n(wr(e.value,t)),[c,u]=(0,L.useState)(null),[d,f]=(0,L.useState)(``),p=d&&!bf.test(d)?`Letters, digits, - and _.`:d in s?`There is a ${r} named ${d}.`:``,m=()=>{d&&!p&&(e.set(Gn(e.value,[...t,d],{...a})),u(d),f(``))};return(0,R.jsxs)(R.Fragment,{children:[Object.keys(s).length===0&&(0,R.jsx)(`p`,{className:`m-0 border-t border-line-soft py-4 text-body-sm text-muted`,children:`None yet.`}),Object.entries(s).map(([r,a])=>(0,R.jsx)(sr,{title:r,meta:i($n(a))||void 0,open:c===r,onToggle:()=>u(c===r?null:r),actions:(0,R.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${r}`,"data-tip":`Remove ${r}`,onClick:()=>e.set(Gn(e.value,[...t,r],void 0)),children:(0,R.jsx)(Mn,{"aria-hidden":`true`})}),children:(0,R.jsx)(Kn,{defs:n,edit:e,base:[...t,r]})},r)),(0,R.jsx)(lr,{label:`Add a ${r}`,help:p?(0,R.jsx)(`span`,{className:`text-fail`,children:p}):`A short name: letters, digits, - and _.`,htmlFor:`add-${t.join(`-`)}`,children:(0,R.jsxs)(`div`,{className:`flex w-full items-center gap-2`,children:[(0,R.jsx)(l,{id:`add-${t.join(`-`)}`,value:d,spellCheck:!1,placeholder:`Name, such as ${o}`,"aria-invalid":!!p,onChange:e=>f(e.target.value.trim()),onKeyDown:e=>re(e)&&m(),className:`min-w-0 flex-1`}),(0,R.jsxs)(I,{size:`sm`,disabled:!d||!!p,"data-tip":`Add a ${r}`,onClick:m,children:[(0,R.jsx)(lt,{"aria-hidden":`true`}),`Add`]})]})})]})}var Sf={attention:{label:`Needs attention`,tone:`fail`},partial:{label:`Partly set up`,tone:`warn`},ready:{label:`Ready`,tone:`pass`},unavailable:{label:`Unavailable`,tone:`neutral`}},Cf={pass:`bg-pass`,warn:`bg-warn`,fail:`bg-fail`,neutral:`bg-line-strong`,running:`bg-accent`},wf={assisted:`Adviser`,native:`Builder`,agentic:`Operator`,custom:`Custom agent`};function Tf(e,t){let n={};for(let r of e){if(!r.runIds.length)continue;let e=t.filter(e=>Array.isArray(e.agents)&&e.agents.some(e=>e&&r.runIds.includes(e.name)));if(!e.length)continue;let i=e.filter(e=>e.status===`done`||e.status===`failed`);n[r.fav]={runs:e.length,passRate:i.length?Math.round(100*i.filter(e=>e.status===`done`).length/i.length):null}}return n}var Ef=[{id:`runs`,label:`Most run`},{id:`name`,label:`Name`},{id:`status`,label:`Needs attention first`}],Df=[`attention`,`partial`,`ready`,`unavailable`],Of={kinds:[],surfaces:[],statuses:[]},kf=(e,t)=>(!t.kinds.length||t.kinds.includes(e.kind))&&(!t.surfaces.length||e.tags.some(e=>t.surfaces.includes(e)))&&(!t.statuses.length||!!e.status&&t.statuses.includes(e.status));function Af(e,t){let n=e.filter(e=>(t.tab===`all`||(t.tab===`favourites`?t.favs.includes(e.fav):e.status===t.tab))&&kf(e,t.picks)),r=(e,t)=>e.name.localeCompare(t.name),i=e=>t.stats[e.fav]?.runs??0,a=e=>e.status?Df.indexOf(e.status):Df.length;return[...n].sort(t.sort===`name`?r:t.sort===`status`?(e,t)=>a(e)-a(t)||r(e,t):(e,t)=>i(t)-i(e)||r(e,t))}function jf(e,t,n){let r=t.map(t=>e.find(e=>e.fav===t)).filter(e=>!!e),i=e.filter(e=>!t.includes(e.fav)&&(n[e.fav]?.runs??0)>0).sort((e,t)=>n[t.fav].runs-n[e.fav].runs);return[...r,...i].slice(0,4)}var Mf=(e,t)=>`${e} ${t}${e===1?``:`s`}`;function Nf({status:e}){return e?(0,R.jsx)(`span`,{className:S(`size-2 flex-none rounded-full`,Cf[Sf[e].tone]),"aria-hidden":`true`}):null}function Pf({item:e,favs:t,className:n}){let r=t.favs.includes(e.fav);return(0,R.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-pressed":r,"aria-label":r?`Remove ${ge(e.name)} from favourites`:`Add ${ge(e.name)} to favourites`,"data-tip":r?`Remove from favourites`:`Add to favourites`,onClick:()=>t.toggle(e.fav),className:n,children:(0,R.jsx)(Bt,{size:14,strokeWidth:1.8,fill:r?`currentColor`:`none`,"aria-hidden":`true`})})}var Ff=e=>e.status===`partial`||e.status===`attention`||e.status===`unavailable`?`Set up`:`Run agent`;function If({items:e,favs:t,stats:n}){return e.length?(0,R.jsxs)(`section`,{"aria-labelledby":`agents-pinned`,className:`flex flex-col gap-4`,children:[(0,R.jsx)(Go,{id:`agents-pinned`,icon:Bt,title:`Pinned and most run`,description:`Your favourites first, then the agents your recent runs used most.`,...t.favs.length>0?{actions:(0,R.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[t.favs.length,` pinned`]})}:{}}),(0,R.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-4 p-0 sm:grid-cols-2 xl:grid-cols-4`,children:e.map(e=>{let t=n[e.fav],r=e.status?Sf[e.status]:void 0;return(0,R.jsxs)(`li`,{className:S(m,`flex min-w-0 flex-col gap-4`),children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 items-start gap-4`,children:[e.icon,(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,R.jsxs)(`a`,{href:e.href,className:`flex min-w-0 items-center gap-2 font-medium text-ink no-underline hover:underline`,children:[(0,R.jsx)(`span`,{className:`truncate`,children:e.name}),(0,R.jsx)(Nf,{status:e.status})]}),(0,R.jsx)(`span`,{className:`truncate text-body-sm text-muted`,children:e.short})]}),t&&(0,R.jsx)(Be,{tone:`neutral`,icon:!1,className:`flex-none tabular-nums`,children:Mf(t.runs,`run`)})]}),(0,R.jsxs)(`div`,{className:`mt-auto flex items-center justify-between gap-2`,children:[(0,R.jsxs)(`span`,{className:S(`flex items-center gap-2 text-body-sm`,t?.passRate==null?r?.tone===`warn`?`text-warn`:r?.tone===`fail`?`text-fail`:`text-muted`:`text-pass`),children:[(0,R.jsx)(Nf,{status:t?.passRate==null?e.status:`ready`}),t?.passRate==null?r?.label??``:`${t.passRate}% passed`]}),(0,R.jsx)(`a`,{href:e.href,className:S(Le({variant:`outline`,size:`sm`}),`no-underline`),children:Ff(e)})]})]},e.fav)})})]}):null}function Lf({id:e,title:t,options:n,picked:r,onChange:i}){return n.length?(0,R.jsxs)(`fieldset`,{className:`m-0 flex flex-col gap-1 border-0 p-0 pt-4`,children:[(0,R.jsxs)(`legend`,{className:`float-left mb-2 flex w-full items-center justify-between p-0 text-body-sm font-medium`,children:[(0,R.jsx)(`span`,{id:`facet-${e}`,children:t}),(0,R.jsx)(`span`,{className:`text-body-sm font-normal text-muted tabular-nums`,children:n.length})]}),n.map(e=>{let t=r.includes(e.id);return(0,R.jsxs)(`label`,{className:`flex min-h-8 cursor-pointer items-center gap-2 text-body-sm text-ink`,children:[(0,R.jsx)(fc,{checked:t,onCheckedChange:t=>i(t?[...r,e.id]:r.filter(t=>t!==e.id)),"aria-label":`${e.label}, ${e.n}`}),e.tone&&(0,R.jsx)(`span`,{className:S(`size-2 flex-none rounded-full`,Cf[e.tone]),"aria-hidden":`true`}),(0,R.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),(0,R.jsx)(`span`,{className:`text-body-sm text-muted tabular-nums`,children:e.n})]},e.id)})]}):null}function Rf(e,t,n=12){let r=new Map;for(let n of e)for(let e of new Set(t(n)))r.set(e,(r.get(e)??0)+1);return[...r].sort((e,t)=>t[1]-e[1]||e[0].localeCompare(t[0])).slice(0,n).map(([e,t])=>({id:e,label:e,n:t}))}function zf({items:e,picks:t,setPicks:n,search:r}){let i=me.map(t=>({id:t.id,label:t.label,n:e.filter(e=>e.kind===t.id).length})).filter(e=>e.n>0||t.kinds.includes(e.id)),a=Rf(e.filter(e=>e.kind!==`custom`),e=>e.tags),o=Object.keys(Sf).map(t=>({id:t,label:Sf[t].label,tone:Sf[t].tone,n:e.filter(e=>e.status===t).length})).filter(e=>e.n>0||t.statuses.includes(e.id)),s=t.kinds.length+t.surfaces.length+t.statuses.length>0,c=e=>r=>n({...t,[e]:r});return(0,R.jsxs)(`aside`,{"aria-label":`Filters`,className:S(m,`flex min-w-0 flex-col gap-4`),children:[(0,R.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,R.jsx)(Go,{icon:yt,title:`Filters`,level:3}),(0,R.jsx)(I,{variant:`ghost`,size:`sm`,disabled:!s,onClick:()=>n(Of),children:`Clear all`})]}),r,(0,R.jsx)(Lf,{id:`kind`,title:`Kind`,options:i,picked:t.kinds,onChange:c(`kinds`)}),(0,R.jsx)(Lf,{id:`works-with`,title:`Works with`,options:a,picked:t.surfaces,onChange:c(`surfaces`)}),(0,R.jsx)(Lf,{id:`status`,title:`Status`,options:o,picked:t.statuses,onChange:c(`statuses`)}),(0,R.jsx)(I,{size:`sm`,disabled:!s,onClick:()=>n(Of),className:`mt-2 w-full justify-center`,children:`Reset all filters`})]})}function Bf({value:e,onChange:t,counts:n}){return(0,R.jsx)(`div`,{role:`group`,"aria-label":`Show`,className:`flex flex-wrap gap-2`,children:[{id:`all`,label:`All agents`},{id:`ready`,label:`Ready`,tone:`pass`},{id:`attention`,label:`Needs attention`,tone:`fail`},{id:`favourites`,label:`Favourites`,star:!0}].map(r=>{let i=e===r.id;return(0,R.jsxs)(I,{size:`sm`,"aria-pressed":i,onClick:()=>t(r.id),children:[r.tone&&(0,R.jsx)(`span`,{className:S(`size-2 rounded-full`,Cf[r.tone]),"aria-hidden":`true`}),r.star&&(0,R.jsx)(Bt,{size:14,fill:`currentColor`,"aria-hidden":`true`,className:`text-warn`}),r.label,(0,R.jsx)(`span`,{className:`tabular-nums`,children:n[r.id]})]},r.id)})})}function Vf({value:e,onChange:t}){let[n,r]=(0,L.useState)(!1),i=(0,L.useRef)(null);return(0,R.jsxs)(`span`,{ref:i,className:`relative`,children:[(0,R.jsxs)(I,{variant:`ghost`,size:`sm`,"aria-haspopup":`menu`,"aria-expanded":n,onClick:()=>r(!n),children:[(0,R.jsx)(Yt,{"aria-hidden":`true`}),`Sort: `,Ef.find(t=>t.id===e)?.label,(0,R.jsx)(tt,{"aria-hidden":`true`})]}),(0,R.jsx)(D,{open:n,onClose:()=>r(!1),label:`Sort the agents`,align:`end`,anchor:i.current,children:Ef.map(n=>(0,R.jsx)(w,{role:`menuitemradio`,checked:e===n.id,onSelect:()=>{t(n.id),r(!1)},children:n.label},n.id))})]})}function Hf({value:e,onChange:t}){return(0,R.jsx)(_r,{label:`Show as`,value:e,onChange:t,options:[{id:`grid`,label:`Grid`,icon:(0,R.jsx)(bt,{size:14,"aria-hidden":`true`})},{id:`list`,label:`List`,icon:(0,R.jsx)(Ft,{size:14,"aria-hidden":`true`})}]})}function Uf({item:e,favs:t,stats:n}){let r=e.status?Sf[e.status]:void 0;return(0,R.jsxs)(`li`,{className:S(m,`flex min-w-0 flex-col gap-4`),children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 items-start gap-4`,children:[e.icon,(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,R.jsxs)(`a`,{href:e.href,className:`flex min-w-0 items-center gap-2 text-body-lg font-medium text-ink no-underline hover:underline`,children:[(0,R.jsx)(`span`,{className:`line-clamp-2`,children:e.name}),(0,R.jsx)(Nf,{status:e.status}),r&&(0,R.jsxs)(`span`,{className:`sr-only`,children:[r.label,e.note?`: ${e.note}`:``]})]}),(0,R.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[wf[e.kind]??e.kind,` · `,e.short]})]}),(0,R.jsx)(Pf,{item:e,favs:t,className:`-mt-1 -mr-1 flex-none text-muted aria-pressed:text-warn`})]}),(0,R.jsx)(`p`,{className:`m-0 line-clamp-2 text-body-sm leading-relaxed text-ink-2`,children:e.about}),(0,R.jsxs)(`div`,{className:`mt-auto flex items-center gap-4 pt-4`,children:[e.runIds.length>0&&(0,R.jsx)(`span`,{className:`text-body-sm whitespace-nowrap text-muted tabular-nums`,children:Mf(n?.runs??0,`run`)}),(0,R.jsx)(`a`,{href:e.href,className:S(Le({variant:`outline`,size:`sm`}),`ml-auto flex-none no-underline`),children:Ff(e)})]})]})}function Wf({item:e,favs:t,stats:n}){let r=e.status?Sf[e.status]:void 0;return(0,R.jsxs)(`li`,{className:`flex min-h-16 min-w-0 items-center gap-4 px-4 py-2`,children:[e.icon,(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,R.jsxs)(`a`,{href:e.href,className:`flex min-w-0 items-center gap-2 font-medium text-ink no-underline hover:underline`,children:[(0,R.jsx)(`span`,{className:`truncate`,children:e.name}),(0,R.jsx)(Nf,{status:e.status})]}),(0,R.jsxs)(`span`,{className:`truncate text-body-sm text-muted`,children:[wf[e.kind]??e.kind,` · `,e.short]})]}),(0,R.jsx)(`span`,{className:`hidden w-32 flex-none text-body-sm text-muted md:block`,children:r?.label??``}),(0,R.jsx)(`span`,{className:`hidden w-16 flex-none text-right text-body-sm text-muted tabular-nums sm:block`,children:n?Mf(n.runs,`run`):``}),(0,R.jsx)(Pf,{item:e,favs:t,className:`flex-none text-muted aria-pressed:text-warn`}),(0,R.jsx)(`a`,{href:e.href,className:S(Le({variant:`outline`,size:`sm`}),`flex-none no-underline`),children:Ff(e)})]})}function Gf({items:e,favs:t,stats:n,layout:r,empty:i}){return e.length?r===`list`?(0,R.jsx)(`ul`,{className:S(m,`m-0 flex list-none flex-col divide-y divide-line-soft p-0`),children:e.map(e=>(0,R.jsx)(Wf,{item:e,favs:t,...n[e.fav]?{stats:n[e.fav]}:{}},e.fav))}):(0,R.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-4 p-0 @xl:grid-cols-2 @3xl:grid-cols-3`,children:e.map(e=>(0,R.jsx)(Uf,{item:e,favs:t,...n[e.fav]?{stats:n[e.fav]}:{}},e.fav))}):(0,R.jsx)(`div`,{className:S(m,`text-center text-body-sm text-muted`),children:i})}var Kf=[12,24,48];function qf({page:e,size:t,total:n,onPage:r,onSize:i}){let a=Math.max(1,Math.ceil(n/t));return n<=Kf[0]?null:(0,R.jsxs)(`div`,{className:S(m,`flex flex-wrap items-center gap-4`),children:[(0,R.jsx)(`label`,{htmlFor:`agents-per-page`,className:`text-body-sm text-muted`,children:`Agents per page`}),(0,R.jsx)(d,{id:`agents-per-page`,size:`sm`,value:String(t),onChange:e=>i(Number(e.target.value)),className:`w-auto`,children:Kf.map(e=>(0,R.jsx)(`option`,{value:e,children:e},e))}),(0,R.jsxs)(`nav`,{"aria-label":`Pages`,className:`ml-auto flex items-center gap-1`,children:[(0,R.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Earlier page`,disabled:e===0,onClick:()=>r(e-1),children:(0,R.jsx)($e,{"aria-hidden":`true`})}),Array.from({length:a},(t,n)=>(0,R.jsx)(I,{variant:`ghost`,size:`icon-sm`,"aria-current":n===e?`page`:void 0,onClick:()=>r(n),className:`tabular-nums aria-[current]:bg-accent-soft`,children:n+1},n)),(0,R.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Later page`,disabled:e>=a-1,onClick:()=>r(e+1),children:(0,R.jsx)(ht,{"aria-hidden":`true`})})]})]})}var Jf=`forgeqe-agent-favourites`,Yf=`forgeqe-agent-favourites`;function Xf(){let e=()=>{try{return _e(localStorage.getItem(Jf))}catch{return[]}},[t,n]=(0,L.useState)(e);return(0,L.useEffect)(()=>{let t=()=>n(e());return window.addEventListener(Yf,t),window.addEventListener(`storage`,t),()=>{window.removeEventListener(Yf,t),window.removeEventListener(`storage`,t)}},[]),{favs:t,toggle:e=>{let r=t.includes(e)?t.filter(t=>t!==e):[...t,e];n(r);try{localStorage.setItem(Jf,JSON.stringify(r)),window.dispatchEvent(new Event(Yf))}catch{}Jr(`favourites`)}}}var Zf=(e,t)=>{let n=j(e),r=t?.[n.agent];return{fav:n.id,href:c(n),name:N(n.agent).name,about:n.about,short:n.short,icon:(0,R.jsx)(ae,{agent:n.agent,px:44,iconPx:24,frame:rp}),tags:r?.tags??[],...r?{status:r.status}:{},note:r?.note??``,kind:n.category,runIds:n.runs}},Qf={active:{label:`Active`,tone:`pass`},changed:{label:`Change waiting`,tone:`warn`},draft:{label:`Draft`,tone:`neutral`},invalid:{label:`Needs fixing`,tone:`fail`},broken:{label:`Cannot run`,tone:`fail`},disabled:{label:`Disabled`,tone:`neutral`},drifted:{label:`Knowledge changed`,tone:`warn`}},$f={active:`ready`,changed:`partial`,draft:`partial`,invalid:`attention`,broken:`attention`,disabled:`unavailable`,drifted:`attention`},ep={done:`done`,failed:`failed`,stopped:`stopped`,needs_input:`needed a person`,running:`running`},tp=e=>({fav:pe(e.id),href:s(`agents`,`custom`,e.id),name:e.name,about:e.description||`No description yet.`,short:e.description||Qf[e.state].label,icon:(0,R.jsx)(ae,{agent:e.id,icon:e.icon,px:44,iconPx:24,frame:rp}),status:$f[e.state],note:Qf[e.state].label,kind:`custom`,runIds:[],tags:[...e.state===`active`?[]:[Qf[e.state].label],...e.waiting?[`${e.waiting} waiting for you`]:[],...e.approvedVersion?[`v${e.approvedVersion}`]:[],...(e.byItself||[]).length?[e.byItself.length===2?`Runs on a schedule and when something happens`:e.byItself.includes(`schedule`)?`Runs on a schedule`:`Starts when something happens`]:[],...e.lastRun?[e.lastRun.outcome===`running`?`A run is going now`:`Last run: ${ep[e.lastRun.outcome]||e.lastRun.outcome}, ${Kr(e.lastRun.at)}`]:[],...e.problems?[`${e.problems} problem${e.problems===1?``:`s`}`]:[]]});function np({cards:e}){let t=Object.values(e||{});if(!t.length||t.some(e=>e.status!==`unavailable`))return null;let n=[...new Set(t.map(e=>(e.note||``).replace(/:\s*Set up\.?$/,``).trim()).filter(Boolean))],r=n.length>0&&n.every(e=>/^No model/i.test(e));return(0,R.jsxs)(`div`,{role:`status`,className:`flex w-full flex-wrap items-center gap-x-4 gap-y-4 border-y border-line py-4`,children:[(0,R.jsx)(F,{icon:Et,size:20,className:`flex-none text-icon`}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`font-medium`,children:`No agent can run yet`}),(0,R.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:n.length?n.join(` · `):`ForgeQE is not set up on this computer.`})]}),(0,R.jsxs)(`a`,{className:Le({variant:`primary`}),href:r?s(`settings`,`models`):s(`settings`,`setup`),"data-tip":r?`Add a model key`:`Install what's missing`,children:[(0,R.jsx)(yt,{"aria-hidden":`true`}),`Set up`]})]})}var rp=`size-10 @min-[260px]/col:size-11`;function ip(){return(0,R.jsxs)(`a`,{href:s(`agents`,`custom`,`new`),className:S(Le({variant:`accent`}),`no-underline`),"data-tip":`New agent`,children:[(0,R.jsx)(lt,{"aria-hidden":`true`}),`New`]})}function ap({onDone:e}){let[t,n]=(0,L.useState)(!1),[r,i]=(0,L.useState)(null),[a,o]=(0,L.useState)(``),[s,c]=(0,L.useState)(``),[u,d]=(0,L.useState)(null),[f,p]=(0,L.useState)(!1),[m,h]=(0,L.useState)(!1),[g,_]=(0,L.useState)(``),v=(0,L.useRef)(null),[y,b]=(0,L.useState)(null);(0,L.useEffect)(()=>{if(!t)return;let e=!1;return Ce.library.list().then(t=>!e&&b(t.entries),()=>{e||(b([]),_(`Could not read your library.`))}),()=>{e=!0}},[t]);let x=async e=>{_(``),d(null);try{let{base64:t}=await Ce.library.pack(e.entry);i(t),o(e.entry);let n=await Ce.importPreview(t);d(n),c(n.id||``)}catch(e){i(null),_(e.message||`That library entry is not a valid package.`)}},C=()=>{i(null),o(``),c(``),d(null),p(!1),_(``)},w=e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=String(r.result||``),n=e.indexOf(`,`);t(n>=0?e.slice(n+1):e)},r.onerror=()=>n(r.error||Error(`Could not read the package.`)),r.readAsDataURL(e)}),ee=async e=>{if(_(``),d(null),e.size>4194304)_(`The package is larger than 4 MB.`);else try{let t=await w(e);i(t),o(e.name);let n=await Ce.importPreview(t);d(n),c(n.id||``)}catch(e){i(null),_(e.message||`That file is not a valid package.`)}},T=async e=>{if(r){h(!0),_(``);try{let t=await Ce.importPreview(r,e.trim()||void 0);d(t)}catch(e){_(e.message)}finally{h(!1)}}},E=async()=>{if(r&&u){h(!0),_(``);try{let t=await Ce.importPack(r,{id:s.trim()||void 0,overwriteKnowledge:f});n(!1),C(),e(t.id)}catch(e){_(e.message)}finally{h(!1)}}},D=u?[...u.missing.environments.map(e=>`environment ${e}`),...u.missing.systems.map(e=>`system ${e}`),...u.missing.capabilities.map(e=>`capability ${e}`),...u.missing.skills.map(e=>`skill ${e}`),...u.missing.knowledge.map(e=>`knowledge ${e}`)]:[],te=!(!u||u.problems.length||u.idTaken);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>(n(!0),C()),"data-tip":`Import agent`,children:[(0,R.jsx)(Dn,{"aria-hidden":`true`}),`Import`]}),(0,R.jsx)(Nr,{open:t,onClose:()=>(n(!1),C()),title:`Import a custom agent`,description:`From this computer's library, or a .forgeqe-agent.zip from Export to share (agent.json plus knowledge and skill files). It becomes a draft here: you edit, try and approve it. Environments and systems of this project must already exist.`,footer:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(I,{variant:`ghost`,onClick:()=>(n(!1),C()),children:[(0,R.jsx)(St,{"aria-hidden":`true`}),`Cancel`]}),(0,R.jsxs)(I,{variant:`primary`,disabled:m||!te||u?.warnings.some(e=>e.includes(`already exists here`)&&e.startsWith(`knowledge`))&&!f,onClick:()=>void E(),"data-tip":`Import as draft`,children:[(0,R.jsx)(Dn,{"aria-hidden":`true`}),`Import`]})]}),children:(0,R.jsxs)(`div`,{className:`flex flex-col gap-4 text-body-sm`,children:[(0,R.jsx)(`input`,{ref:v,type:`file`,accept:`.zip,application/zip`,className:`sr-only`,onChange:e=>{let t=e.target.files?.[0];e.target.value=``,t&&ee(t)}}),y&&y.length>0&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`font-medium`,children:`From your library`}),(0,R.jsx)(`ul`,{"aria-label":`Agents in your library`,className:S(`surface rounded-lg bg-bg p-6 shadow-sm`,`m-0 flex list-none flex-col p-0`),children:y.map((e,t)=>(0,R.jsx)(`li`,{className:S(t>0&&`border-t border-line-soft`),children:(0,R.jsxs)(`button`,{type:`button`,disabled:e.problems.length>0,onClick:()=>void x(e),"aria-pressed":a===e.entry,className:S(`flex w-full min-h-11 cursor-pointer items-center gap-4 rounded-base border-0 bg-transparent px-4 py-2 text-left text-body-sm text-ink no-underline transition-colors duration-150 hover:bg-tint hover:text-ink aria-[current]:bg-tint-hover aria-selected:bg-tint-hover aria-pressed:bg-tint-hover aria-checked:bg-tint-hover has-[:checked]:bg-tint-hover disabled:cursor-not-allowed disabled:opacity-50`,`flex-col items-start gap-1`),children:[(0,R.jsxs)(`span`,{className:`flex flex-wrap items-baseline gap-x-2`,children:[(0,R.jsx)(`span`,{className:`font-medium`,children:e.name}),(0,R.jsxs)(`span`,{className:`text-body-sm text-muted tabular-nums`,children:[e.version,e.publishedAt?` · ${Kr(e.publishedAt)}`:``]})]}),e.description&&(0,R.jsx)(`span`,{className:`text-body-sm text-ink-2`,children:e.description}),e.problems.length>0&&(0,R.jsx)(`span`,{className:`text-body-sm text-fail`,children:e.problems[0]})]})},e.entry))})]}),(0,R.jsxs)(I,{size:`sm`,className:`self-start`,onClick:()=>v.current?.click(),"data-tip":a?`Choose another file`:`Choose .zip package`,children:[(0,R.jsx)(Nn,{"aria-hidden":`true`}),`Choose`]}),a&&(0,R.jsx)(`span`,{className:`text-muted`,children:a}),u&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(`label`,{className:`flex flex-col gap-2`,children:[(0,R.jsx)(`span`,{className:`font-medium`,children:`Id`}),(0,R.jsx)(l,{value:s,maxLength:40,spellCheck:!1,onChange:e=>c(e.target.value.toLowerCase()),onBlur:()=>void T(s)}),u.idTaken&&(0,R.jsx)(`span`,{className:`text-body-sm text-warn`,children:`That id is taken here. Choose another before importing.`})]}),u.knowledge.length>0&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`font-medium`,children:`Knowledge it brings`}),(0,R.jsx)(`ul`,{className:`m-0 list-disc pl-6 text-ink-2`,children:u.knowledge.map(e=>(0,R.jsx)(`li`,{children:e.path},e.path))})]}),u.skills.length>0&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`font-medium`,children:`Skills it brings`}),(0,R.jsx)(`ul`,{className:`m-0 list-disc pl-6 text-ink-2`,children:u.skills.map(e=>(0,R.jsx)(`li`,{children:e.name},e.name))})]}),D.length>0&&(0,R.jsxs)(`div`,{className:S(P.warn,`flex flex-col gap-1`),children:[(0,R.jsx)(`span`,{className:`font-medium`,children:`This project still needs`}),(0,R.jsx)(`ul`,{className:`m-0 list-disc pl-6`,children:D.map(e=>(0,R.jsx)(`li`,{children:e},e))})]}),u.warnings.some(e=>e.startsWith(`knowledge file `)&&e.endsWith(` already exists here`))&&(0,R.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,R.jsx)(fc,{checked:f,onCheckedChange:p}),`Replace existing knowledge files of the same path`]}),u.problems.length>0&&(0,R.jsx)(`ul`,{className:`m-0 list-disc pl-6 text-fail`,children:u.problems.map((e,t)=>(0,R.jsx)(`li`,{children:e},t))})]}),g&&(0,R.jsx)(`p`,{className:`m-0 text-fail`,children:g})]})})]})}function op(){let[e,t]=(0,L.useState)(null),[n,r]=(0,L.useState)(``),[i,a]=(0,L.useState)(``);return(0,L.useEffect)(()=>{let e=!1;return Ce.list().then(n=>{e||(le(n.agents,`replace`),t(n.agents),a(n.off||``))},n=>{e||(t([]),r(n.message))}),()=>{e=!0}},[]),{rows:e,error:n,off:i,setRows:t}}function sp(){return(0,R.jsxs)(`p`,{role:`status`,className:S(`m-0 flex flex-wrap items-center gap-x-2`,P.info),children:[`Custom agents are turned off for this project: none runs, from here, the terminal, Atlas or a schedule.`,(0,R.jsx)(`a`,{href:s(`settings`),children:`Turn them on in Settings, Custom agents`})]})}function cp({rows:e,onDone:t}){let[n,r]=(0,L.useState)(!1),[i,a]=(0,L.useState)([]),[o,s]=(0,L.useState)(null),[c,u]=(0,L.useState)(``),[d,f]=(0,L.useState)(!1),[p,m]=(0,L.useState)(``),h=e.filter(e=>e.approvedVersion);if(!h.length)return null;let g=h.filter(e=>i.includes(e.id)),_=async()=>{if(o){f(!0);try{let e=await Ce.bulk(o,i,c);t(e.agents),m(`${o===`disable`?`Disabled`:`Enabled`} ${e.done.length}${e.skipped.length?`; skipped ${e.skipped.map(e=>e.id).join(`, `)} (already ${o}d)`:``}.`),s(null),a([]),r(!1)}catch(e){m(e.message)}finally{f(!1),u(``)}}};return(0,R.jsxs)(Ko,{id:`custom-bulk`,icon:Xt,title:`Disable or enable several`,actions:(0,R.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>(r(!n),a([]),m(``)),"data-tip":n?void 0:`Select agents`,children:[n?(0,R.jsx)(St,{"aria-hidden":`true`}):(0,R.jsx)(Xt,{"aria-hidden":`true`}),n?`Cancel`:`Select`]}),children:[n&&(0,R.jsxs)(`div`,{className:S(`surface rounded-lg bg-bg p-6 shadow-sm`,`flex flex-col gap-2`),children:[(0,R.jsxs)(`label`,{className:`flex items-center gap-2 text-body-sm font-medium`,children:[(0,R.jsx)(fc,{checked:i.length===h.length,onCheckedChange:e=>a(e?h.map(e=>e.id):[])}),`All `,h.length,` approved agents`]}),(0,R.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-2 p-0 sm:grid-cols-2`,children:h.map(e=>(0,R.jsx)(`li`,{children:(0,R.jsxs)(`label`,{className:`flex items-center gap-2 text-body-sm`,children:[(0,R.jsx)(fc,{checked:i.includes(e.id),onCheckedChange:t=>a(t?[...i,e.id]:i.filter(t=>t!==e.id))}),(0,R.jsx)(`span`,{className:`min-w-0 truncate`,children:e.name}),(0,R.jsx)(Be,{tone:Qf[e.state].tone,icon:!1,children:Qf[e.state].label})]})},e.id))}),(0,R.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,R.jsxs)(I,{size:`sm`,disabled:!i.length,onClick:()=>s(`disable`),children:[(0,R.jsx)(xt,{"aria-hidden":`true`}),i.length?`Disable (${i.length})`:`Disable`]}),(0,R.jsxs)(I,{size:`sm`,variant:`ghost`,disabled:!i.length,onClick:()=>s(`enable`),children:[(0,R.jsx)(mt,{"aria-hidden":`true`}),i.length?`Enable (${i.length})`:`Enable`]})]})]}),p&&(0,R.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:p}),o&&(0,R.jsx)(Nr,{open:!0,onClose:()=>(s(null),u(``)),title:`${o===`disable`?`Disable`:`Enable`} ${g.length} agent${g.length===1?``:`s`}`,description:o===`disable`?`None of them runs (not you, your team, Atlas or their schedules) until a person enables it again. Their versions and history are kept.`:`Their approved versions run again, and their schedules come back.`,footer:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(I,{variant:`ghost`,onClick:()=>(s(null),u(``)),children:[(0,R.jsx)(St,{"aria-hidden":`true`}),`Cancel`]}),(0,R.jsxs)(I,{variant:`primary`,disabled:d||c!==String(g.length),onClick:()=>void _(),children:[o===`disable`?(0,R.jsx)(xt,{"aria-hidden":`true`}):(0,R.jsx)(mt,{"aria-hidden":`true`}),o===`disable`?`Disable`:`Enable`]})]}),children:(0,R.jsxs)(`div`,{className:`flex flex-col gap-4 text-body-sm`,children:[(0,R.jsx)(`span`,{className:`text-ink-2`,children:g.map(e=>e.name).join(`, `)}),(0,R.jsxs)(`label`,{className:`flex flex-col gap-2`,children:[(0,R.jsxs)(`span`,{children:[`Type `,g.length,` to confirm`]}),(0,R.jsx)(l,{value:c,onChange:e=>u(e.target.value),autoComplete:`off`,inputMode:`numeric`})]})]})})]})}function lp({only:e}){let t=Xf(),n=op(),[r,i]=(0,L.useState)(null);(0,L.useEffect)(()=>{De.directory().then(e=>i(e.agents),()=>i({}))},[]);let[a,o]=(0,L.useState)([]);(0,L.useEffect)(()=>{Me.list().then(e=>o(e.approvals.filter(e=>e.state===`waiting`)),()=>{})},[]);let[c,l]=(0,L.useState)(``),u=e?me.find(t=>t.id===e):void 0,[d,f]=(0,L.useState)(u?{...Of,kinds:[u.id]}:Of),[p,h]=(0,L.useState)(Kf[0]),[_,v]=(0,L.useState)(`all`),[y,b]=(0,L.useState)(`runs`),[x,C]=(0,L.useState)(`grid`),[w,ee]=(0,L.useState)(0),[E,D]=(0,L.useState)([]);(0,L.useEffect)(()=>{xe.list().then(e=>D(Array.isArray(e.runs)?e.runs:[]),()=>{})},[]);let te=(0,L.useMemo)(()=>ue(c),[c]),ne=(0,L.useMemo)(()=>M(n.rows||[],c),[n.rows,c]),O=(0,L.useMemo)(()=>[...te.map(e=>Zf(e.id,r)),...ne.map(tp)],[te,ne,r]),re=(0,L.useMemo)(()=>Tf(O,E),[O,E]),ie=(0,L.useMemo)(()=>c.trim()?[]:jf(O,t.favs,re),[O,t.favs,re,c]),ae=O.filter(e=>kf(e,d)),k={all:ae.length,ready:ae.filter(e=>e.status===`ready`).length,attention:ae.filter(e=>e.status===`attention`).length,favourites:ae.filter(e=>t.favs.includes(e.fav)).length},A=Af(O,{tab:_,picks:d,sort:y,favs:t.favs,stats:re}),oe=Math.max(1,Math.ceil(A.length/p)),se=Math.min(w,oe-1),ce=A.slice(se*p,se*p+p),j=e=>t=>{e(t),ee(0)},de=O.filter(e=>e.status===`ready`).length;return(0,R.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col bg-canvas`,children:[(0,R.jsx)(Pr,{}),(0,R.jsxs)(`main`,{className:S(Fr,`max-w-[1400px] flex-auto gap-8`),children:[(0,R.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[u?(0,R.jsx)(He,{to:{href:s(`agents`),label:`All agents`}}):(0,R.jsx)(He,{}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-6 gap-y-4`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_480px] flex-col gap-2`,children:[(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-4`,children:[(0,R.jsx)(Jn,{pixel:T.agents,size:`lg`}),(0,R.jsx)(`h1`,{className:`m-0 font-home text-headline-lg`,children:u?u.label:`Agents`}),r&&(0,R.jsxs)(Be,{tone:`neutral`,icon:!1,className:`tabular-nums`,children:[O.length,` agents · `,de,` ready`]})]}),(0,R.jsx)(`p`,{className:`m-0 max-w-[720px] text-body-sm leading-relaxed text-ink-2`,children:u?u.about:`Find, filter and open ForgeQE's agents and your team's own: chat with one, see what it can do, or make a new one.`})]}),!n.off&&(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 self-center`,children:[(0,R.jsx)(ap,{onDone:e=>{Ce.list().then(e=>{le(e.agents,`replace`),n.setRows(e.agents)},()=>{}),location.hash=s(`agents`,`custom`,e)}}),(0,R.jsx)(ip,{})]})]})]}),(0,R.jsx)(np,{cards:r}),u&&a.length>0&&(0,R.jsx)(`div`,{role:`status`,className:`self-start`,children:(0,R.jsx)(`a`,{href:s(`agents`,`custom`,a[0].agent),className:S(P.warn,`flex items-center gap-2 font-medium no-underline hover:text-warn`),children:a.length===1?`${a[0].agent} is waiting for your approval`:`${a.length} requests from your agents are waiting for your approval`})}),!u&&(0,R.jsx)(If,{items:ie,favs:t,stats:re}),n.off&&(0,R.jsx)(sp,{}),u?.id===`custom`&&n.rows&&(0,R.jsx)(cp,{rows:n.rows,onDone:n.setRows}),(0,R.jsxs)(`div`,{className:`grid items-start gap-6 lg:grid-cols-[280px_minmax(0,1fr)]`,children:[(0,R.jsx)(zf,{items:O,picks:d,setPicks:j(f),search:(0,R.jsx)(Ve,{id:`agents-search`,label:`Find an agent`,placeholder:`Find among ${O.length} agents`,value:c,onChange:j(l),className:`max-w-none flex-auto`})}),(0,R.jsxs)(`div`,{className:`@container flex min-w-0 flex-col gap-4`,children:[(0,R.jsxs)(`div`,{className:S(m,`flex flex-wrap items-center gap-4 px-4 py-2`),children:[(0,R.jsx)(Bf,{value:_,onChange:j(v),counts:k}),(0,R.jsx)(`span`,{className:`ml-auto text-body-sm text-muted tabular-nums`,children:A.length?`Showing ${se*p+1}–${se*p+ce.length} of ${A.length}`:`None`}),(0,R.jsx)(Vf,{value:y,onChange:j(b)}),(0,R.jsx)(Hf,{value:x,onChange:C})]}),n.error&&(0,R.jsxs)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:[`Your custom agents cannot be read: `,n.error]}),(0,R.jsx)(Gf,{items:ce,favs:t,stats:re,layout:x,empty:r?_===`favourites`&&!k.favourites?`No favourites yet: star an agent to keep it here and on top.`:(0,R.jsxs)(`span`,{className:`flex flex-col items-center gap-2`,children:[(0,R.jsx)(g,{name:T.agents,px:22}),(0,R.jsx)(`span`,{className:`text-body-lg font-medium text-ink`,children:`No agent matches`}),(0,R.jsx)(`span`,{children:`Clear a filter or the search, or make a custom agent for the job.`})]}):`Reading the agents…`}),(0,R.jsx)(qf,{page:se,size:p,total:A.length,onPage:ee,onSize:j(h)})]})]})]})]})}var up=5;function dp({page:e,onTab:t=!1}){let[n,r]=(0,L.useState)([]),[i,a]=(0,L.useState)(null),[o,c]=(0,L.useState)(``),[l,u]=(0,L.useState)(null);(0,L.useEffect)(()=>{let t=!1;return De.directory().then(n=>!t&&u(n.agents[e.agent]??null),()=>{}),De.tools(e.agent).then(e=>!t&&a(e),e=>!t&&c(e.message)),Fe.prompts().then(n=>!t&&r(n.agents.filter(t=>e.runs.includes(t.name))),()=>{}),()=>{t=!0}},[e]);let d=N(e.agent).name,f=[...new Set(n.map(e=>e.prompt))];return(0,R.jsxs)(`div`,{className:`flex w-full flex-col gap-8 pt-2`,children:[l&&l.status!==`ready`&&(0,R.jsx)(pp,{card:l,name:d}),(0,R.jsx)(Bc,{scope:{kind:`page`,page:e},composer:!t}),(0,R.jsx)(`div`,{className:m,children:(0,R.jsx)(Zc,{title:`What ${ge(d)} can use`,defaultOpen:t,children:(0,R.jsxs)(`div`,{className:`flex flex-col gap-6 pt-2`,children:[(0,R.jsx)(Ko,{id:`agent-tools`,icon:ut,title:`Tools it can use`,level:3,children:o?(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:o}):i?(0,R.jsx)(_p,{view:i,limit:up,more:s(`agents`,e.id,`tools`)}):(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Reading its tools…`})}),i&&i.connections.length>0&&(0,R.jsx)(Ko,{id:`agent-connected`,icon:nt,title:`Connected to`,level:3,children:(0,R.jsx)(hp,{list:i.connections,limit:4,more:s(`agents`,e.id,`tools`)})}),e.prompt!==!1&&(0,R.jsx)(Ko,{id:`agent-prompt`,icon:qt,title:`Its instructions`,level:3,children:(0,R.jsxs)(`a`,{href:s(`prompts`),className:S(`surface rounded-lg bg-bg p-6 shadow-sm`,`flex items-center gap-4 text-ink no-underline`),children:[(0,R.jsx)(F,{icon:Tn,size:18,className:`flex-none text-muted`}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,R.jsx)(`span`,{className:`text-body-sm font-medium`,children:f.length?f.map(e=>`${e}.md`).join(`, `):`The prompt it starts from`}),(0,R.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[`What `,ge(d),` starts with, and your team's additions: change them in Prompts.`]})]}),(0,R.jsx)(ln,{size:16,"aria-hidden":`true`,className:`flex-none text-muted`})]})})]})})})]})}var fp={setup:{to:s(`settings`,`setup`),label:`Settings, Set up`},models:{to:s(`settings`,`models`),label:`Settings, Models`},tests:{to:s(`settings`,`tests`),label:`Settings, Code`},databases:{to:s(`settings`,`databases`),label:`Settings, Databases`},integrations:{to:s(`settings`,`integrations`),label:`Settings, Integrations`},features:{to:s(`settings`,`features`),label:`What's ready`}};function pp({card:e,name:t}){let n=Sf[e.status],r=e.needs??[];return(0,R.jsx)(Ko,{id:`agent-needs`,icon:Ct,title:`What it needs`,actions:(0,R.jsx)(Be,{tone:n.tone,children:n.label}),children:r.length===0?(0,R.jsx)(`p`,{className:S(P.info,`m-0`),children:e.note}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:r.some(e=>e.blocks)?`${ge(t,!0)} cannot work until the first ${r.filter(e=>e.blocks).length===1?`one is`:`ones are`} set up.`:`${ge(t,!0)} works, without the parts below.`}),(0,R.jsx)(`ul`,{"aria-label":`What ${ge(t)} needs`,className:S(m,`m-0 flex list-none flex-col p-0`),children:r.map((e,t)=>(0,R.jsxs)(`li`,{className:S(`flex items-center gap-4 px-4 py-2`,t>0&&`border-t border-line-soft`),children:[(0,R.jsx)(dt,{size:16,"aria-label":e.blocks?`Needed`:`Optional`,className:S(`flex-none`,e.blocks?`text-fail`:`text-warn`)}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,R.jsx)(`span`,{className:`text-body-sm font-medium`,children:e.what}),(0,R.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:e.why})]}),e.fix&&(0,R.jsxs)(`a`,{href:fp[e.fix].to,className:`flex flex-none items-center gap-1 text-body-sm`,children:[fp[e.fix].label,(0,R.jsx)(ln,{size:14,"aria-hidden":`true`})]})]},`${e.what}:${t}`))})]})})}var mp={repository:`branch`,database:`container`,environment:`web`,system:`plug`};function hp({list:e,limit:t,more:n}){let r=t?e.slice(0,t):e;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-2 p-0 sm:grid-cols-2`,children:r.map((e,t)=>(0,R.jsxs)(`li`,{className:S(e.on?m:p,`flex items-center gap-4`),children:[(0,R.jsx)(g,{name:mp[e.kind],px:22,className:S(!e.on&&`opacity-50 grayscale`)}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,R.jsx)(`span`,{className:`truncate text-body-sm font-medium`,"data-tip":e.name,children:e.name}),(0,R.jsx)(`span`,{className:`truncate text-body-sm text-muted`,children:e.on?e.detail:`Not connected: ${e.why||`not set up`}`})]})]},`${e.kind}:${e.name}:${t}`))}),n&&r.length<e.length&&(0,R.jsxs)(`a`,{href:n,className:`self-start text-body-sm`,children:[`Show all `,e.length,` connections`]})]})}function gp({page:e}){let[t,n]=(0,L.useState)(null),[r,i]=(0,L.useState)(``);(0,L.useEffect)(()=>{let t=!1;return De.tools(e.agent).then(e=>!t&&n(e),e=>!t&&i(e.message)),()=>{t=!0}},[e]);let a=N(e.agent).name;return(0,R.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,R.jsx)(Pr,{}),(0,R.jsxs)(`main`,{className:Fr,children:[(0,R.jsx)(He,{to:{href:s(`agents`,e.id),label:a},className:`mb-4`}),(0,R.jsxs)(`div`,{className:`mb-1 flex items-center gap-4`,children:[(0,R.jsx)(ae,{agent:e.agent,px:40,iconPx:24,frame:`size-10`}),(0,R.jsxs)(`h1`,{className:`m-0 text-headline-lg`,children:[`What `,ge(a),` can use`]})]}),(0,R.jsxs)(`p`,{className:`mt-1 mb-6 text-body-sm leading-relaxed text-ink-2`,children:[t?`${t.title.replace(/\.$/,``)}.`:e.about,` Every tool it has, in the groups its session is given, and what it reaches from this project.`]}),r?(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:r}):t?(0,R.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,R.jsx)(Ko,{id:`all-tools`,icon:ut,title:`Tools it can use`,children:(0,R.jsx)(_p,{view:t,openAll:!0})}),t.connections.length>0&&(0,R.jsx)(Ko,{id:`all-connected`,icon:nt,title:`Connected to`,children:(0,R.jsx)(hp,{list:t.connections})})]}):(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Reading its tools…`})]})]})}function _p({view:e,limit:t,more:n,openAll:r}){let[i,a]=(0,L.useState)(()=>r?e.groups.map(e=>e.id):[]),o=t?e.groups.slice(0,t):e.groups,s=e.groups.reduce((e,t)=>e+t.tools.length,0),c=e.groups.filter(e=>e.on).length;return(0,R.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,R.jsxs)(`p`,{className:`m-0 text-body-sm text-muted`,children:[c,` of `,e.groups.length,` `,e.groups.length===1?`group`:`groups`,` usable here.`]}),(0,R.jsx)(`ul`,{className:S(m,`m-0 flex list-none flex-col p-0`),children:o.map((e,n)=>{let r=i.includes(e.id);return(0,R.jsxs)(`li`,{className:S(n>0&&`border-t border-line-soft`),children:[(0,R.jsxs)(`button`,{type:`button`,"aria-expanded":r,"aria-controls":`tools-${n}`,disabled:!e.tools.length,onClick:()=>a(r?i.filter(t=>t!==e.id):[...i,e.id]),className:u,children:[e.on?(0,R.jsx)(mt,{size:16,"aria-label":`Usable`,className:`flex-none text-pass`}):(0,R.jsx)(xt,{size:16,"aria-label":`Not usable here`,className:`flex-none text-muted`}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,R.jsxs)(`span`,{className:`text-body-sm font-medium`,children:[e.label,e.tools.length>0&&(0,R.jsxs)(`span`,{className:`font-normal text-muted`,children:[` · `,e.tools.length]})]}),(0,R.jsx)(`span`,{className:S(`text-body-sm text-muted`,t&&`truncate`),children:e.on?[e.about,e.limited].filter(Boolean).join(` · `):`Not here: ${e.why||`not set up`}`})]}),e.tools.length>0&&(0,R.jsx)(ht,{size:16,"aria-hidden":`true`,className:S(`flex-none text-muted transition-transform duration-200`,r&&`rotate-90`)})]}),(0,R.jsx)(cr,{open:r,id:`tools-${n}`,children:(0,R.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-2 px-4 pb-4 pl-10`,children:e.tools.map(e=>(0,R.jsxs)(`li`,{"data-tip":e.what||void 0,className:Zr,children:[e.name,e.what&&(0,R.jsx)(`span`,{className:`ml-2 font-sans text-muted`,children:e.what})]},e.name))})})]},e.id)})}),n&&(o.length<e.groups.length||s>0)&&(0,R.jsx)(`a`,{href:n,className:`self-start text-body-sm`,children:o.length<e.groups.length?`Show all ${e.groups.length} groups and ${s} tools`:`Show every tool (${s})`})]})}function vp({name:e,chats:t}){return(0,R.jsx)(`div`,{className:S(m,`@container`),children:(0,R.jsx)(`ul`,{"aria-label":`Conversations with ${ge(e)}`,className:`m-0 flex list-none flex-col p-2`,children:t.map(e=>(0,R.jsx)(`li`,{children:(0,R.jsx)(_c,{c:e})},e.id))})})}function yp({page:e}){let[t,n]=(0,L.useState)(null),[r,i]=(0,L.useState)(``);(0,L.useEffect)(()=>{let t=!1;return Ie.list().then(r=>!t&&n(hc(tr(e,r.chats))),e=>!t&&i(e.message)),()=>{t=!0}},[e]);let a=N(e.agent).name;return(0,R.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,R.jsx)(Pr,{}),(0,R.jsxs)(`main`,{className:Fr,children:[(0,R.jsx)(He,{to:{href:s(`agents`,e.id),label:a},className:`mb-4`}),(0,R.jsxs)(`div`,{className:`mb-1 flex items-center gap-4`,children:[(0,R.jsx)(ae,{agent:e.agent,px:40,iconPx:24,frame:`size-10`}),(0,R.jsxs)(`h1`,{className:`m-0 text-headline-lg`,children:[`Conversations with `,ge(a)]})]}),(0,R.jsxs)(`p`,{className:`mt-1 mb-6 text-body-sm leading-relaxed text-ink-2`,children:[`Every chat started from `,ge(a),`'s page, newest first. Open one to read it or carry it on.`]}),r?(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:r}):t?t.length===0?(0,R.jsxs)(Re,{className:`py-4`,children:[`No conversations with `,ge(a),` yet. `,(0,R.jsx)(`a`,{href:s(`agents`,e.id),children:`Ask it`}),` to start one.`]}):(0,R.jsx)(vp,{name:a,chats:t}):(0,R.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`})]})]})}var bp=60,xp=Yr.tabs;function Sp(){try{let e=JSON.parse(localStorage.getItem(xp)||`[]`);return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}catch{return[]}}function Cp(e,t,n){let r=Sp().find(t=>t.startsWith(`${e}:`)),i=r?.slice(e.length+1);if(!r&&n)try{i=localStorage.getItem(n)??void 0}catch{}return i&&t.includes(i)?i:void 0}function wp(e,t){qr().then(()=>{let n=`${e}:${t}`,r=Sp();if(r[0]!==n){try{localStorage.setItem(xp,JSON.stringify([n,...r.filter(t=>!t.startsWith(`${e}:`))].slice(0,bp)))}catch{return}Jr(`tabs`)}})}function Tp(e,t,n,r){(0,L.useEffect)(()=>{let i=!1;return qr().then(()=>{let a=Cp(e,t);!i&&a&&!n()&&r(a)}),()=>{i=!0}},[e])}function Ep(e,t,n,r,i){let a=(0,L.useRef)(!0),o=n.join(`|`);(0,L.useEffect)(()=>{if(!n.length)return;let o=a.current;if(a.current=!1,o&&r){let r=location.hash;qr().then(()=>{if(location.hash!==r)return;let a=Cp(e,n);a&&a!==t?i(a):wp(e,t)})}else wp(e,t)},[e,t,o,r])}var Dp=`agent`,Op={desktop:`desktop`,mobile:`mobile`,coding:`record`,exploration:`explore`,"knowledge-agent":`knowledge`,responsive:`responsive`,basal:`basal`,migration:`migration`,db:`data`};function kp(e){let t=T[Op[e]??e];return t?{pixel:t}:Kt}function Ap({page:e,title:t,label:n,tabs:r,current:i,onPick:a,tabHref:o,below:s,end:c,agentBody:l,keepAgent:u=!1,wide:d=!1,back:f,canvas:p=!1,children:m}){let h=o?.(Dp).replace(/\/agent$/,``),g=!!h&&i===`agent`&&location.hash.replace(/\/+$/,``)===h;Ep(e.id,i,[Dp,...r.map(e=>e.id)],g,e=>o?location.replace(o(e)):a(e));let _=(0,R.jsx)(Ir,{label:n,current:i,onPick:a,tabs:[{id:Dp,label:`Agent`,icon:kp(e.id)},...r],className:`mb-0`}),v=i===Dp,y=(n,r)=>(0,R.jsxs)(`div`,{className:`@container flex min-h-(--screen) flex-col`,children:[(0,R.jsx)(Pr,{}),(0,R.jsxs)(`main`,{className:S(Fr,Sr,`@container flex-auto`,p?`gap-6`:`gap-4`),children:[(0,R.jsx)(af,{agent:e,...t?{title:t}:{},tabs:_,end:c,...f?{back:f}:{},tabsBelow:p}),(0,R.jsx)(`div`,{role:`tabpanel`,id:`panel-${r}`,"aria-labelledby":`tab-${r}`,className:S(`flex min-w-0 flex-col`,p?`gap-6`:`gap-4`,d&&S(`@container [--wide-w:min(var(--wide-max,100000px),calc(var(--page-w)_-_48px))] md:[--wide-w:min(var(--wide-max,100000px),calc(var(--page-w)_-_96px))] w-(--wide-w) max-w-none self-start ml-[calc((100%_-_var(--wide-w))/2)]`,`[--wide-max:1384px]`)),children:n})]})]}),b=l===void 0?(0,R.jsx)(of,{agent:e,...t?{title:t}:{},tabs:_,below:s,end:c}):y(l,Dp);return u?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`div`,{hidden:!v,children:b}),!v&&y(m,i)]}):v?b:y(m,i)}function jp({text:e,onRetry:t}){return(0,R.jsxs)(`div`,{role:`alert`,className:S(P.fail,`flex flex-col items-start gap-4`),children:[(0,R.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e}),t&&(0,R.jsxs)(I,{onClick:t,"data-tip":`Try again`,children:[(0,R.jsx)(at,{"aria-hidden":`true`}),`Retry`]})]})}var Mp=[`pl-0`,`pl-0`,`pl-4`,`pl-8`,`pl-12`,`pl-16`,`pl-20`];function Np(){let[e,t]=(0,L.useState)(``),[n,r]=(0,L.useState)(!1),[i,a]=(0,L.useState)(!1),[o,s]=(0,L.useState)(``),[c,l]=(0,L.useState)(null),u=async()=>{let t=e.trim();if(t){a(!0),s(``);try{l({query:t,...await ve.searchDocs(t,{reasoning:n})})}catch(e){s(e.message)}finally{a(!1)}}},d=c?.reasoning===`used`?`The model picked these sections.`:c?.reasoning===`cached`?`The model's earlier answer to this question, at no cost.`:c?.reasoning===`failed`?`The model gave no answer, so these are found by their words.`:`Found by their words.`;return(0,R.jsxs)(`section`,{"aria-labelledby":`ask-docs-title`,className:`mb-6`,children:[(0,R.jsx)(`h2`,{id:`ask-docs-title`,className:`sr-only`,children:`Ask the documents`}),(0,R.jsxs)(`form`,{role:`search`,"aria-label":`Ask the documents`,className:`flex flex-wrap items-center gap-x-4 gap-y-2`,onSubmit:e=>{e.preventDefault(),u()},children:[(0,R.jsx)(Ve,{id:`ask-docs`,label:`Ask the documents`,value:e,onChange:t,placeholder:`refund limit for card payments`,className:`max-w-none flex-[1_1_320px]`}),(0,R.jsxs)(`span`,{className:`flex items-center gap-2 text-body-sm`,children:[(0,R.jsx)(Tr,{checked:n,onChange:r,label:`Let the model pick sections`}),`Let the model pick sections`]}),(0,R.jsxs)(I,{busy:i,size:`sm`,type:`submit`,disabled:i||!e.trim(),children:[(0,R.jsx)(st,{"aria-hidden":`true`}),i?`Searching…`:`Search`]})]}),o&&(0,R.jsx)(`div`,{className:`mt-4`,children:(0,R.jsx)(jp,{text:o,onRetry:()=>void u()})}),(0,R.jsx)(`div`,{"aria-live":`polite`,children:c&&!o&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`p`,{role:`status`,className:`mt-4 mb-0 text-body-sm text-muted`,children:c.documents?c.hits.length?`${c.hits.length} ${c.hits.length===1?`passage`:`passages`} from ${c.documents} ${c.documents===1?`document`:`documents`}. ${d}`:`Nothing in ${c.documents} ${c.documents===1?`document`:`documents`} answers "${c.query}".`:`No documents to search yet: add a knowledge file below, or documents in Settings, Evidence.`}),!!c.hits.length&&(0,R.jsx)(`ul`,{"aria-label":`Passages found`,className:`m-0 mt-2 list-none p-0`,children:c.hits.map((e,t)=>(0,R.jsxs)(`li`,{className:`border-t border-line-soft py-2 text-body-sm [overflow-wrap:anywhere]`,children:[(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,R.jsx)(`span`,{className:`font-medium text-ink`,children:e.where}),e.picked&&(0,R.jsx)(Be,{tone:`pass`,children:`Picked by the model`})]}),(0,R.jsxs)(`span`,{className:`mt-1 block font-mono text-body-sm text-muted`,children:[e.source,`/`,e.file,`:`,e.line]}),(0,R.jsx)(ti,{text:e.text,className:`mt-2 text-body-sm`})]},`${e.source}/${e.file}:${e.line}:${t}`))})]})})]})}function Pp({sub:e}){let t=j(`knowledge-agent`),n=(e||``).split(`/`)[0]===`notes`?`notes`:Dp,[r,i]=(0,L.useState)(null),[a,o]=(0,L.useState)(``),[c,u]=(0,L.useState)(null),[d,f]=(0,L.useState)(!1),[p,m]=(0,L.useState)(``),[h,g]=(0,L.useState)(``),[_,v]=(0,L.useState)(`read`),[y,b]=(0,L.useState)(null),[x,C]=(0,L.useState)(!1),[w,ee]=(0,L.useState)(``),[T,E]=(0,L.useState)(null),D=()=>{m(``),v(`edit`),u({rel:``,text:`#
51
+
52
+ ## Rules
53
+
54
+ -
55
+ `,was:``,isNew:!0})},te=(0,L.useCallback)(()=>{o(``),ve.knowledge().then(i,e=>o(e.message)),ve.docsStatus().then(b,()=>b(null))},[]),ne=async()=>{C(!0),g(``),ee(``);try{let e=await ve.indexDocs();b(e),g(`Indexed ${e.documents} ${e.documents===1?`document`:`documents`}, ${e.sections.toLocaleString()} sections.${e.waiting?` ${e.waiting} PDF, Word or Excel ${e.waiting===1?`file has`:`files have`} no text that could be read.`:``}`)}catch(e){ee(e.message)}finally{C(!1)}},O=async e=>{if(v(`outline`),!(T?.rel===e&&T.outline)){E({rel:e});try{E({rel:e,outline:await ve.docOutline(e)})}catch(t){E({rel:e,error:t.message})}}};(0,L.useEffect)(te,[te]);let re=async e=>{m(``);try{let t=await ve.knowledgeFile(e);u({rel:e,text:t.text,was:t.text,isNew:!1}),v(`read`)}catch(e){o(e.message)}},ie=async()=>{if(c){f(!0),m(``);try{let e=c.rel.trim();await ve.saveKnowledgeFile(e,c.text),u(null),g(`Saved ${e}. Agents read it from their next request.`),te()}catch(e){m(e.message)}finally{f(!1)}}},ae=r?.files.filter(e=>e.used).length??0;return(0,R.jsxs)(Ap,{title:Xr(`knowledge`),page:t,label:`Knowledge`,current:n,tabHref:e=>e===`agent`?s(`knowledge`,Dp):s(`knowledge`,e),onPick:e=>location.hash=e===`agent`?s(`knowledge`,Dp):s(`knowledge`,e),tabs:[{id:`notes`,label:r?`Notes (${r.files.length})`:`Notes`,icon:Ut}],below:(0,R.jsx)(dp,{page:t}),children:[(0,R.jsxs)(`p`,{className:`m-0 text-body-sm leading-relaxed text-ink-2`,children:[`What the agents know about your product: its features, business rules and terms, as Markdown files in`,` `,(0,R.jsx)(`span`,{className:`font-mono text-body-sm`,children:r?.dir||`.forgeqe/knowledge`}),`. Each agent reads the parts that match its task. The industry and regulations are in`,` `,(0,R.jsx)(`a`,{href:s(`settings`,`evidence`),children:`Settings, Evidence`}),`, and the folders in `,(0,R.jsx)(`a`,{href:s(`settings`,`agents`),children:`Settings, Agents`}),`.`]}),a&&(0,R.jsx)(jp,{text:a,onRetry:te}),!r&&!a&&(0,R.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`}),r&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(jr,{label:`Knowledge files`,className:`mb-6`,children:[(0,R.jsx)(pr,{icon:Tn,label:`Files`,value:String(r.files.length)}),(0,R.jsx)(pr,{icon:Xe,label:`Read by agents`,value:String(ae),note:ae<r.files.length?`The others are templates still to fill in`:void 0}),(0,R.jsx)(pr,{icon:rt,label:`Per browser run`,value:r.maxChars?`${r.maxChars.toLocaleString()}`:`Off`,note:r.maxChars?`characters at most`:void 0}),(0,R.jsx)(pr,{icon:st,label:`Document sections`,value:y?y.sections.toLocaleString():`–`,note:y?`In ${y.documents} ${y.documents===1?`document`:`documents`}${y.waiting?`; ${y.waiting} PDF, Word or Excel ${y.waiting===1?`file is`:`files are`} not read yet`:``}`:void 0})]}),(0,R.jsx)(Np,{}),(0,R.jsx)(`div`,{"aria-live":`polite`,children:h&&(0,R.jsx)(`p`,{className:S(P.pass,`mt-0 mb-4`),children:h})}),w&&(0,R.jsx)(`div`,{className:`mb-4`,children:(0,R.jsx)(jp,{text:w,onRetry:()=>void ne()})}),(0,R.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-2`,children:[(0,R.jsx)(`span`,{className:`flex-1 text-body-sm text-muted`,children:`Open a file to read it; a template is a starting point for you to fill in.`}),y&&(0,R.jsxs)(I,{onClick:()=>void ne(),disabled:x||y.indexing,"data-tip":`Reads the PDF, Word and Excel files of your documents so they can be searched. It can take a few minutes.`,children:[(0,R.jsx)(Fn,{"aria-hidden":`true`}),x||y.indexing?`Indexing…`:`Index PDFs, Word and Excel`]}),(0,R.jsxs)(I,{variant:`accent`,onClick:D,"data-tip":`Add a file`,children:[(0,R.jsx)(lt,{"aria-hidden":`true`}),`Add`]})]}),(0,R.jsx)(xr,{label:`Knowledge files`,placeholder:`Find a file`,height:`max(320px, calc(var(--screen) - 288px))`,empty:`No knowledge files yet. Add one for each product area: what it does, its rules, its words.`,head:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`File`}),(0,R.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`text-right`),children:`Status`})]}),children:r.files.map(e=>(0,R.jsxs)(`tr`,{onClick:()=>void re(e.rel),className:`h-12 cursor-pointer border-t border-line-soft align-middle transition-colors duration-150 hover:bg-tint data-[state=selected]:bg-tint-hover`,children:[(0,R.jsxs)(`td`,{className:`px-4 py-2`,children:[(0,R.jsxs)(I,{variant:`link`,size:`inline`,onClick:t=>(t.stopPropagation(),void re(e.rel)),className:`whitespace-normal text-left`,children:[(0,R.jsx)(F,{icon:Tn,size:16,className:`flex-none text-muted`}),(0,R.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.title})]}),(0,R.jsx)(`span`,{className:`mt-1 block pl-6 font-mono text-body-sm text-muted [overflow-wrap:anywhere]`,children:e.rel})]}),(0,R.jsx)(`td`,{className:S(`px-4 py-2`,`w-[1%] text-right whitespace-nowrap`),children:(0,R.jsx)(Be,{tone:e.used?`pass`:`neutral`,icon:!!e.used,children:e.used?e.state===`edited`?`Filled in`:`Read by agents`:`Template: fill it in`})})]},e.rel))})]}),(0,R.jsx)(Nr,{wide:!0,open:!!c,onClose:()=>u(null),title:c?.isNew?`Add a knowledge file`:r?.files.find(e=>e.rel===c?.rel)?.title||c?.rel||``,description:c?.isNew?`Markdown. Headings split it into parts; an agent gets the parts that match its task. Never put passwords or keys here.`:c?.rel,footer:(0,R.jsxs)(R.Fragment,{children:[p&&(0,R.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-body-sm text-fail [overflow-wrap:anywhere]`,children:p}),(0,R.jsxs)(I,{onClick:()=>u(null),children:[(0,R.jsx)(St,{"aria-hidden":`true`}),`Cancel`]}),(0,R.jsxs)(I,{busy:d,variant:`primary`,disabled:d||!c||!c.rel.trim()||!c.isNew&&c.text===c.was,onClick:()=>void ie(),children:[(0,R.jsx)(En,{"aria-hidden":`true`}),d?`Saving…`:`Save`]})]}),children:c&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4`,children:[c.isNew&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,R.jsx)(`label`,{htmlFor:`knowledge-name`,className:`font-medium`,children:`File name`}),(0,R.jsx)(l,{id:`knowledge-name`,value:c.rel,spellCheck:!1,placeholder:`products/checkout.md`,className:`font-mono`,onChange:e=>u({...c,rel:e.target.value})}),(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:`In the knowledge folder; a folder before the name groups files.`})]}),!c.isNew&&(0,R.jsx)(_r,{label:`Show the file`,value:_,onChange:e=>e===`outline`?void O(c.rel):v(e),options:[{id:`read`,label:`Read`},{id:`edit`,label:`Edit`},{id:`outline`,label:`Outline`}]}),_===`outline`&&!c.isNew?(0,R.jsxs)(`div`,{"aria-live":`polite`,children:[T?.error&&(0,R.jsx)(jp,{text:T.error,onRetry:()=>void O(c.rel)}),!T?.outline&&!T?.error&&(0,R.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`}),T?.outline&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`p`,{className:`mt-0 mb-2 text-body-sm text-muted`,children:`The parts an agent can be given on their own: each heading starts one.`}),(0,R.jsx)(`ul`,{"aria-label":`Sections`,className:`m-0 list-none p-0`,children:T.outline.sections.map(e=>(0,R.jsxs)(`li`,{className:S(`flex items-baseline gap-2 border-t border-line-soft py-2 text-body-sm`,Mp[Math.min(6,e.depth)]),children:[(0,R.jsx)(`span`,{className:`text-ink [overflow-wrap:anywhere]`,children:e.title}),(0,R.jsxs)(`span`,{className:`font-mono text-body-sm text-muted`,children:[`line `,e.line]})]},`${e.line}:${e.title}`))})]})]}):_===`read`&&!c.isNew?(0,R.jsx)(ti,{text:c.text,className:`text-body-lg`}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`label`,{htmlFor:`knowledge-text`,className:`sr-only`,children:`Text`}),(0,R.jsx)(vf,{id:`knowledge-text`,value:c.text,lang:`markdown`,onChange:e=>u({...c,text:e})}),(0,R.jsx)(`span`,{className:`text-body-sm text-muted`,children:`Markdown. Headings split it into parts; an agent gets the parts that match its task. Never put passwords or keys here.`})]})]})})]})}var Fp=``;function Ip(e){let t=e?Date.parse(e):NaN;if(Number.isNaN(t))return``;let n=(Date.now()-t)/1e3;return n<3600?Gr(Math.max(1,Math.floor(n/60)),`minute`):n<86400?Gr(Math.floor(n/3600),`hour`):n<604800?Gr(Math.floor(n/86400),`day`):new Date(t).toLocaleDateString([],{day:`numeric`,month:`short`})}var Lp=e=>!!e.lastStatus&&/pass|success|complete/i.test(e.lastStatus),Rp=e=>e.successes===0?`never`:e.lastStatus&&!Lp(e)?`failing`:e.replays>0?`replaying`:`ok`,zp=e=>e||`Other`;function Bp({view:e}){let t=e.stats.areas.find(e=>e.area===`browser`),n=(t?.replayedSteps??0)+(t?.modelSteps??0),r=n?Math.round((t?.replayedSteps??0)/n*100):0,i=new Set([...e.flows.map(e=>zp(e.host)),...e.pages.map(e=>zp(e.host))]).size,a=e.flows.reduce((e,t)=>e+t.replays,0);return(0,R.jsxs)(jr,{label:`Memory`,className:`mb-6`,children:[(0,R.jsx)(pr,{icon:Ot,label:`Flows`,value:String(e.flows.length),note:`tasks it can replay`}),(0,R.jsx)(pr,{icon:hn,label:`Pages`,value:String(e.pages.length),note:`with the elements found on them`}),(0,R.jsx)(pr,{icon:rt,label:`Sites`,value:String(i)}),(0,R.jsx)(pr,{icon:Je,label:`Steps from memory`,value:n?`${r}%`:`—`,note:n?`of recent runs, ${x(a,`replay`)}`:`no run has used it yet`})]})}var Vp={never:{label:`Never passed`,tone:`fail`},failing:{label:`Failed last time`,tone:`fail`},replaying:{label:`Replaying`,tone:`pass`},ok:{label:`Learned`,tone:`neutral`}},Hp=e=>e.replayedSteps+e.modelSteps?`${Math.round(e.replayedSteps/(e.replayedSteps+e.modelSteps)*100)}%`:`—`;function Up({f:e,showSite:t,onOpen:n}){let r=Vp[Rp(e)];return(0,R.jsxs)(`tr`,{onClick:n,className:Bn,children:[(0,R.jsxs)(`td`,{className:Lr,children:[(0,R.jsx)(I,{variant:`link`,size:`inline`,onClick:e=>(e.stopPropagation(),n()),className:`justify-start whitespace-normal text-left`,children:(0,R.jsx)(`span`,{className:`line-clamp-2`,children:e.goal})}),(0,R.jsxs)(`span`,{className:`mt-1 block text-body-sm text-muted`,children:[x(e.steps,`step`),` · passed `,e.successes,` of `,e.runs]})]}),t&&(0,R.jsx)(`td`,{className:S(`px-4 py-2`,`hidden max-w-[200px] truncate text-body-sm text-muted @3xl:table-cell`),children:zp(e.host)}),(0,R.jsx)(`td`,{className:S(Lr,`w-[1%] whitespace-nowrap`),children:(0,R.jsx)(Be,{tone:r.tone,icon:r.tone!==`neutral`,children:r.label})}),(0,R.jsx)(`td`,{className:S(Ur,`hidden @2xl:table-cell`),"data-sort":e.replayedSteps+e.modelSteps?e.replayedSteps/(e.replayedSteps+e.modelSteps):-1,children:Hp(e)}),(0,R.jsx)(`td`,{className:S(Ur,`text-muted`),"data-sort":Date.parse(e.lastRun||``)||0,children:Ip(e.lastRun)})]})}function Wp({p:e,showSite:t,forget:n}){return(0,R.jsxs)(`tr`,{className:ar,children:[(0,R.jsxs)(`td`,{className:Lr,children:[(0,R.jsx)(`span`,{className:`block text-body-sm text-ink`,children:e.title||e.path}),(0,R.jsx)(`span`,{className:`block truncate font-mono text-body-sm text-muted`,"data-tip":`${e.host}${e.path}`,children:e.path})]}),t&&(0,R.jsx)(`td`,{className:S(`px-4 py-2`,`hidden max-w-[200px] truncate text-body-sm text-muted @3xl:table-cell`),children:zp(e.host)}),(0,R.jsx)(`td`,{className:Ur,children:e.elements}),(0,R.jsx)(`td`,{className:S(Ur,`hidden @2xl:table-cell`),children:e.visits}),(0,R.jsx)(`td`,{className:S(Ur,`text-muted`),"data-sort":Date.parse(e.lastSeen||``)||0,children:Ip(e.lastSeen)}),(0,R.jsx)(`td`,{className:S(Lr,`w-[1%] text-right whitespace-nowrap`),children:n})]})}function Gp({view:e,target:t,files:n,label:r,question:i,done:a,icon:o,onCleared:s}){let[c,l]=(0,L.useState)(!1),[u,d]=(0,L.useState)(!1);if((0,L.useEffect)(()=>l(!1),[t?.name]),!n)return null;let f=async()=>{d(!0);try{let e=await ve.clearMemory(t);s(e,`Removed ${x(e.removed??0,`file`)} of memory${a}. The next runs learn it again.`)}catch(t){s(e,t.message)}finally{d(!1),l(!1)}};return c?(0,R.jsxs)(`span`,{role:`alertdialog`,"aria-label":r,className:S(S(P.fail,`inline-flex flex-wrap items-center gap-2 text-left`),o&&`w-[240px] whitespace-normal [overflow-wrap:anywhere]`),children:[i,(0,R.jsxs)(I,{variant:`destructive`,size:`sm`,disabled:u,onClick:()=>void f(),children:[(0,R.jsx)(Mn,{"aria-hidden":`true`}),t?.kind===`flow`||t?.kind===`page`?`Forget`:`Clear`]}),(0,R.jsxs)(I,{size:`sm`,onClick:()=>l(!1),children:[(0,R.jsx)(En,{"aria-hidden":`true`}),`Keep`]})]}):o?(0,R.jsx)(I,{size:`icon`,variant:`icon`,"aria-label":r,"data-tip":r,onClick:()=>l(!0),className:`size-8`,children:(0,R.jsx)(Mn,{"aria-hidden":`true`})}):(0,R.jsxs)(I,{variant:`danger`,size:`sm`,onClick:()=>l(!0),"data-tip":r,children:[(0,R.jsx)(Mn,{"aria-hidden":`true`}),t?.kind===`flow`||t?.kind===`page`?`Forget`:`Clear`]})}var Kp=[`flows`,`pages`];function qp(){let[e,t]=(0,L.useState)(null),[n,r]=(0,L.useState)(``),[i,a]=(0,L.useState)(Fp),[o,c]=(0,L.useState)(`flows`);Ep(`memory`,o,Kp,!0,c);let[l,u]=(0,L.useState)(`all`),[f,p]=(0,L.useState)(``),[m,h]=(0,L.useState)(null),[g,_]=(0,L.useState)(``),v=(0,L.useCallback)(()=>{r(``),ve.memory().then(t,e=>r(e.message))},[]);(0,L.useEffect)(v,[v]);let y=(0,L.useMemo)(()=>{let t=new Map,n=e=>t.get(zp(e))??t.set(zp(e),{flows:0,pages:0,failing:0}).get(zp(e));for(let t of e?.flows||[]){let e=n(t.host);e.flows++,(Rp(t)===`failing`||Rp(t)===`never`)&&e.failing++}for(let t of e?.pages||[])n(t.host).pages++;for(let t of e?.targets||[])n(t.name);return[...t.entries()].map(([e,t])=>({name:e,...t})).sort((e,t)=>t.flows+t.pages-(e.flows+e.pages))},[e]),b=i?e?.targets.find(e=>e.name===i):void 0,C=(e,n)=>{t({...e}),_(n)},w=f.toLowerCase().split(/\s+/).filter(Boolean),ee=(0,L.useMemo)(()=>(e?.flows||[]).filter(e=>(!i||zp(e.host)===i)&&(l===`all`||Rp(e)===l)&&w.every(t=>`${e.goal} ${e.host||``}`.toLowerCase().includes(t))).sort((e,t)=>(Date.parse(t.lastRun||``)||0)-(Date.parse(e.lastRun||``)||0)),[e,i,l,f]),E=(0,L.useMemo)(()=>(e?.pages||[]).filter(e=>(!i||zp(e.host)===i)&&w.every(t=>`${e.title||``} ${e.path} ${e.host}`.toLowerCase().includes(t))).sort((e,t)=>(Date.parse(t.lastSeen||``)||0)-(Date.parse(e.lastSeen||``)||0)),[e,i,f]),D=(0,L.useMemo)(()=>{let t={all:0,replaying:0,failing:0,never:0};for(let n of e?.flows||[]){if(i&&zp(n.host)!==i)continue;t.all++;let e=Rp(n);e!==`ok`&&t[e]++}return t},[e,i]);return(0,R.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,R.jsx)(Pr,{}),(0,R.jsxs)(`main`,{className:S(Fr,`@container`),children:[(0,R.jsx)(He,{className:`mb-2`}),(0,R.jsxs)(`div`,{className:`mb-1 flex flex-wrap items-center gap-4`,children:[(0,R.jsx)(Jn,{pixel:T.memory,size:`lg`}),(0,R.jsx)(`h1`,{className:`m-0 flex-1 text-headline-lg`,children:`Memory`}),(0,R.jsxs)(`a`,{href:s(`settings`,`runs`),className:S(Le({size:`sm`,variant:`ghost`}),`gap-2`),"data-tip":`Memory settings`,children:[(0,R.jsx)(yt,{"aria-hidden":`true`}),`Settings`]})]}),(0,R.jsxs)(`p`,{className:`mt-1 mb-6 text-body-sm leading-relaxed text-ink-2`,children:[`What ForgeQE learned from runs that passed, so the next run of the same task is faster and cheaper. A `,(0,R.jsx)(`b`,{className:`font-medium text-ink-2`,children:`flow`}),` is a task's steps, replayed without the AI; a `,(0,R.jsx)(`b`,{className:`font-medium text-ink-2`,children:`page`}),` keeps the elements found on it.`]}),n&&(0,R.jsxs)(`div`,{role:`alert`,className:S(P.fail,`flex flex-col items-start gap-4`),children:[n,(0,R.jsxs)(I,{onClick:v,"data-tip":`Try again`,children:[(0,R.jsx)(at,{"aria-hidden":`true`}),`Retry`]})]}),!e&&!n&&(0,R.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Loading…`}),e&&(0,R.jsxs)(R.Fragment,{children:[!e.enabled&&(0,R.jsxs)(`p`,{className:S(P.warn,`mt-0 mb-4`),children:[`Memory is off for this project: runs neither use nor add to it. Turn it on in `,(0,R.jsx)(`a`,{href:s(`settings`,`runs`),children:`Memory settings`}),`.`]}),(0,R.jsx)(Bp,{view:e}),g&&(0,R.jsx)(`p`,{role:`status`,className:S(P.info,`mt-0 mb-4`),children:g}),e.flows.length+e.pages.length===0?(0,R.jsx)(Re,{icon:wn,title:`Nothing remembered yet`,action:(0,R.jsxs)(`a`,{className:Le({size:`sm`}),href:s(),"data-tip":`Run something from Home`,children:[(0,R.jsx)(vt,{"aria-hidden":`true`}),`Run`]}),children:`Each browser run that passes adds its pages and steps, and the next run of the same task replays them.`}):(0,R.jsxs)(`section`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,R.jsx)(vr,{label:`What to show`,className:`mb-0`,current:o,onPick:c,tabs:[{id:`flows`,label:`Flows`,n:ee.length},{id:`pages`,label:`Pages`,n:E.length}]}),(0,R.jsxs)(d,{"aria-label":`Site`,value:i,onChange:e=>a(e.target.value),className:`w-auto max-w-[280px] min-w-[180px] flex-[0_1_240px]`,children:[(0,R.jsxs)(`option`,{value:Fp,children:[`All sites (`,y.length,`)`]}),y.map(e=>(0,R.jsxs)(`option`,{value:e.name,children:[e.name,e.failing?` (${e.failing} failed)`:``]},e.name))]}),(0,R.jsx)(Ve,{id:`tab-flows-find-a-flow-fi`,label:o===`flows`?`Find a flow`:`Find a page`,value:f,onChange:p,placeholder:o===`flows`?`Find a flow by its task`:`Find a page by title or path`}),(0,R.jsx)(`span`,{className:`ml-auto`,children:(0,R.jsx)(Gp,{view:e,target:b,files:i?b?.files??0:e.files,label:i?`Clear this site`:`Clear everything`,question:`Remove ${x(i?b?.files??0:e.files,`file`)} for ${i||`everything`}? Runs learn it again.`,done:b?` for ${b.name}`:``,onCleared:C})})]}),o===`flows`&&(0,R.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:(0,R.jsx)(ze,{items:[[`all`,`All`],[`replaying`,`Replaying`],[`failing`,`Failed last time`],[`never`,`Never passed`]].map(([e,t])=>({id:e,label:t,n:D[e],alert:e===`failing`||e===`never`})),value:l,onChange:u})}),(0,R.jsx)(`div`,{className:`@container`,children:o===`flows`?(0,R.jsx)(xr,{label:`Flows`,search:!1,height:`max(320px, calc(var(--screen) - 288px))`,resetKey:`${i}|${l}|${f}`,empty:`Nothing matches.`,head:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Task`}),!i&&(0,R.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`hidden @3xl:table-cell`),children:`Site`}),(0,R.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Status`}),(0,R.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`hidden @2xl:table-cell`),children:`Replayed`}),(0,R.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Last run`})]}),children:ee.map(e=>(0,R.jsx)(L.Fragment,{children:Up({f:e,showSite:!i,onOpen:()=>h(e)})},e.id))}):(0,R.jsx)(xr,{label:`Pages`,search:!1,height:`max(320px, calc(var(--screen) - 288px))`,resetKey:`${i}|${f}`,empty:`Nothing matches.`,head:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Page`}),!i&&(0,R.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`hidden @3xl:table-cell`),children:`Site`}),(0,R.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Elements`}),(0,R.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`hidden @2xl:table-cell`),children:`Visits`}),(0,R.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Last seen`}),(0,R.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:(0,R.jsx)(`span`,{className:`sr-only`,children:`Forget`})})]}),children:E.map(t=>(0,R.jsx)(L.Fragment,{children:Wp({p:t,showSite:!i,forget:(0,R.jsx)(Gp,{icon:!0,view:e,target:{name:t.id,kind:`page`},files:1,label:`Forget ${t.title||t.path}`,question:`Forget ${t.host}${t.path}? Runs find its elements again.`,done:` for ${t.host}${t.path}`,onCleared:C})})},t.id))})})]})]})]}),(0,R.jsx)(Nr,{open:!!m,onClose:()=>h(null),title:`Flow`,description:m?.host?`On ${m.host}`:`A task ForgeQE remembers`,footer:(0,R.jsxs)(I,{onClick:()=>h(null),children:[(0,R.jsx)(St,{"aria-hidden":`true`}),`Close`]}),children:m&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4 text-body-sm`,children:[(0,R.jsx)(`p`,{className:`m-0 leading-relaxed whitespace-pre-wrap text-ink [overflow-wrap:anywhere]`,children:m.goal}),(0,R.jsxs)(`dl`,{className:`m-0 grid grid-cols-[auto_1fr] gap-x-4 gap-y-2`,children:[(0,R.jsx)(`dt`,{className:`text-muted`,children:`Steps`}),(0,R.jsx)(`dd`,{className:`m-0`,children:m.steps}),(0,R.jsx)(`dt`,{className:`text-muted`,children:`Runs`}),(0,R.jsxs)(`dd`,{className:`m-0`,children:[m.runs,`, `,m.successes,` passed, `,m.failures,` failed`]}),(0,R.jsx)(`dt`,{className:`text-muted`,children:`Replayed`}),(0,R.jsxs)(`dd`,{className:`m-0`,children:[x(m.replays,`time`),`; `,m.replayedSteps,` of `,m.replayedSteps+m.modelSteps,` steps without a model`]}),(0,R.jsx)(`dt`,{className:`text-muted`,children:`Last run`}),(0,R.jsxs)(`dd`,{className:`m-0`,children:[m.lastRun?new Date(m.lastRun).toLocaleString([],{dateStyle:`medium`,timeStyle:`short`}):`—`,m.lastStatus?`, ${m.lastStatus}`:``]})]}),(0,R.jsx)(`p`,{className:S(P.info,`m-0`),children:Rp(m)===`never`?`It has not passed yet, so nothing replays: the next run of this task asks the model at each step.`:Rp(m)===`failing`?`Its last run failed. The next run replays the steps that worked, then the agent takes over from where it went wrong.`:`The next run of this task replays its steps without a model, and the agent looks once to confirm the result.`}),e&&(0,R.jsx)(`div`,{className:`pt-4`,children:(0,R.jsx)(Gp,{view:e,target:{name:m.id,kind:`flow`},files:1,label:`Forget this flow`,question:`Forget this flow? The next run of its task asks the model at each step and learns it again.`,done:` for this flow`,onCleared:(e,t)=>{C(e,t),e.flows.some(e=>e.id===m.id)||h(null)}})})]})})]})}var Jp=[];function Yp({section:e}){return(0,R.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,R.jsx)(Pr,{}),(0,R.jsxs)(`main`,{className:S(Fr,`gap-4`),children:[(0,R.jsx)(He,{}),(0,R.jsx)(`h1`,{className:`m-0 text-headline-lg`,children:e.label}),(0,R.jsxs)(`p`,{className:`m-0 leading-relaxed text-ink-2`,children:[e.what,` are not in the web app yet. In a terminal in your project folder, run`,` `,(0,R.jsx)(`code`,{className:Zr,children:e.command}),`.`]})]})]})}var Xp=class extends L.Component{state={failed:!1,at:this.props.at};static getDerivedStateFromError(){return{failed:!0}}static getDerivedStateFromProps(e,t){return e.at===t.at?null:{failed:!1,at:e.at}}componentDidCatch(e){console.error(`This page could not be shown:`,e)}render(){return this.state.failed?(0,R.jsxs)(`div`,{role:`alert`,className:`m-0 px-6 py-10 text-body-sm text-muted`,children:[(0,R.jsx)(`p`,{className:`m-0`,children:`This page could not be shown. Check the address, or go back and try again.`}),(0,R.jsx)(`p`,{className:`m-0 mt-2`,children:(0,R.jsx)(`a`,{href:s(),className:`underline`,children:`Go to Home`})})]}):this.props.children}};function $(e,t){let n,r,i=()=>r??=e().then(e=>n=t(e),e=>{throw r=void 0,e}),a=(0,L.lazy)(()=>i().then(()=>({default:n})));return Object.assign(e=>(0,L.createElement)(n||a,e),{preload:i})}var Zp=()=>v(()=>import(`./Chat-DIWdnIZK.js`),__vite__mapDeps([22,1,2,3,8,9,4,13,5,6,10,7,11,12,16,23,24,25,26,15])),Qp=$(()=>v(()=>import(`./Settings-DyBed-J5.js`),__vite__mapDeps([14,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,19,20,21])),e=>e.Settings),$p=$(Zp,e=>e.Chat),em=$(Zp,e=>e.Chats),tm=$(()=>v(()=>import(`./Reports-NAZ-26Ub.js`),__vite__mapDeps([27,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18])),e=>e.Reports),nm=$(()=>v(()=>import(`./Agent-sLaNlaQo.js`),__vite__mapDeps([28,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,29,30,20,31])),e=>e.Agent),rm=$(()=>v(()=>Promise.resolve().then(()=>vu),void 0),e=>e.Runs),im=$(()=>v(()=>import(`./Record-B2Ic8Taj.js`),__vite__mapDeps([32,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,20,24,25,33,34,31,21,35])),e=>e.Record),am=$(()=>v(()=>import(`./Desktop-CSQ2xLg0.js`),__vite__mapDeps([36,1,2,3,8,9,4,5,6,10,7,11,12,13,15,17,16,18,31,33,34])),e=>e.Desktop),om=$(()=>v(()=>import(`./Mobile-CuswZyee.js`),__vite__mapDeps([37,1,2,3,8,9,4,5,6,10,7,11,12,13,15,17,16,18,31,26,25,34])),e=>e.Mobile),sm=$(()=>v(()=>import(`./Regression-bCIAE3Ne.js`),__vite__mapDeps([38,1,2,3,8,9,4,13,5,6,10,7,11,12,16,39,30,23,21])),e=>e.Regression),cm=$(()=>v(()=>import(`./Impact-Z8nbNhbe.js`),__vite__mapDeps([40,1,2,3,8,9,4,13,5,6,10,7,11,12,16,29,41])),e=>e.Impact),lm=$(()=>v(()=>import(`./ApiTests-Bnw2qgWw.js`),__vite__mapDeps([42,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,39,30,23])),e=>e.ApiTests),um=$(()=>v(()=>import(`./Migration-QFI5ctp7.js`),__vite__mapDeps([43,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,30,44,45,20,46,47,48])),e=>e.Migration),dm=$(()=>v(()=>import(`./Compare-D0Ao8dZ6.js`),__vite__mapDeps([49,1,2,3,9,4,10,7,8,6,11,44,46,17,16,18,20,45])),e=>e.ToscaCompare),fm=$(()=>v(()=>import(`./Quality-B4Aw6N3_.js`),__vite__mapDeps([50,1,2,3,8,9,4,13,5,6,10,7,11,12,15,17,16,18,51])),e=>e.Quality),pm=$(()=>v(()=>import(`./Flaky-C3gj_Brn.js`),__vite__mapDeps([52,1,2,3,8,9,4,13,5,6,10,7,11,12,51,15,17,16,18])),e=>e.Flaky),mm=$(()=>v(()=>import(`./RunDiff-BC-3Wg1b.js`),__vite__mapDeps([53,1,2,3,8,9,4,13,5,6,10,7,11,12,15,51,17,16,18])),e=>e.RunDiff),hm=$(()=>v(()=>import(`./Responsive-CsaoisJq.js`),__vite__mapDeps([54,1,2,3,8,9,4,5,6,10,7,11,12,13,15,20,45,44,48])),e=>e.Responsive),gm=$(()=>v(()=>import(`./Requirements-BkpiF-Bt.js`),__vite__mapDeps([55,1,2,3,8,9,4,5,6,10,7,11,12,13,15,17,16,18,20,45,44,48,47,30])),e=>e.Requirements),_m=$(()=>v(()=>import(`./TestManagement-D0njkyAT.js`),__vite__mapDeps([56,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,51,35])),e=>e.TestManagement),vm=$(()=>v(()=>import(`./Flags-DyykkeHU.js`),__vite__mapDeps([57,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,51,17,18])),e=>e.Flags),ym=$(()=>v(()=>import(`./Production-BMsytC2i.js`),__vite__mapDeps([58,1,2,3,9,4,13,8,5,6,10,7,11,12,15,17,16,18,51])),e=>e.Production),bm=$(()=>v(()=>import(`./Cost-BY_8-9Qt.js`),__vite__mapDeps([59,1,2,3,9,4,13,8,5,6,10,7,11,12,15,51,17,16,18])),e=>e.Cost),xm=$(()=>v(()=>import(`./Observability-CknZ_xBN.js`),__vite__mapDeps([60,1,2,3,9,4,13,8,5,6,10,7,11,12,15,51,17,16,18])),e=>e.Observability),Sm=$(()=>v(()=>import(`./Explore-BndXiEf8.js`),__vite__mapDeps([61,1,2,3,8,9,4,5,6,10,7,11,12,13,15,16,51,17,18])),e=>e.Explore),Cm=$(()=>v(()=>import(`./Readiness-CVIzTFX-.js`),__vite__mapDeps([62,1,2,3,8,9,4,13,5,6,10,7,11,12,15,51,17,16,18])),e=>e.Readiness),wm=$(()=>v(()=>import(`./KindPage-C45x_cFz.js`),__vite__mapDeps([63,1,2,3,8,9,4,13,5,6,10,7,11,12,15,17,16,18,39,30,23,51])),e=>e.Accessibility),Tm=$(()=>v(()=>import(`./KindPage-C45x_cFz.js`),__vite__mapDeps([63,1,2,3,8,9,4,13,5,6,10,7,11,12,15,17,16,18,39,30,23,51])),e=>e.Performance),Em=$(()=>v(()=>import(`./KindPage-C45x_cFz.js`),__vite__mapDeps([63,1,2,3,8,9,4,13,5,6,10,7,11,12,15,17,16,18,39,30,23,51])),e=>e.Visual),Dm=$(()=>v(()=>import(`./Data-BC7R_FbW.js`),__vite__mapDeps([64,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,30,31,39,23,65])),e=>e.Data),Om=$(()=>v(()=>import(`./TestData-wpUeU9Er.js`),__vite__mapDeps([65,1,2,3,8,9,4,13,5,6,10,7,11,12,15,31,16,17,18])),e=>e.TestData),km=$(()=>v(()=>import(`./Features-BrfsTC9Q.js`),__vite__mapDeps([66,1,2,3,8,9,4,13,5,6,10,7,11,12,17,16,18])),e=>e.Features),Am=$(()=>v(()=>import(`./Jobs-CJWXAqSy.js`),__vite__mapDeps([67,1,2,3,8,9,4,13,5,6,10,7,11,12,17,16,18,39,30,23,21])),e=>e.Jobs),jm=$(()=>v(()=>import(`./Product-CrtwDiMv.js`).then(e=>e.t),__vite__mapDeps([68,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,29,30,20,39,23,69,41,45,44,70])),e=>e.Product),Mm=$(()=>v(()=>import(`./Evidence-9W4pqIkC.js`),__vite__mapDeps([71,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,69])),e=>e.Evidence),Nm=$(()=>v(()=>import(`./WhatsNew-BxIAAwgH.js`),__vite__mapDeps([72,1,2,8,9,4,13,5,6,10,7,11,3,12])),e=>e.WhatsNew),Pm=$(()=>v(()=>import(`./Browse-CBt1JY2E.js`),__vite__mapDeps([73,1,2,11,3,10])),e=>e.Browse),Fm={chats:em,reports:tm,agents:nm,runs:rm,record:im,desktop:am,mobile:om,regression:sm,impact:cm,"api-tests":lm,migration:um,quality:fm,flaky:pm,"run-diff":mm,responsive:hm,requirements:gm,"test-management":_m,flags:vm,production:ym,cost:bm,observability:xm,explore:Sm,readiness:Cm,accessibility:wm,performance:Tm,visual:Em,data:Dm,"test-data":Om,features:km,jobs:Am,schedules:Am,product:jm,evidence:Mm,"evidence-runs":Mm,"evidence-contracts":Mm,"evidence-review":Mm,"evidence-releases":Mm,"evidence-learn":Mm,"evidence-monitor":Mm,"whats-new":Nm,browse:Pm},Im=e=>Fm[e[0]||``]?.preload();function Lm(){let e=a(Im),[t=``,n,...r]=e;oe();let[,i]=(0,L.useState)(0),[s,c]=(0,L.useState)(0);return(0,L.useEffect)(()=>{let e=()=>Object.values(Fm).forEach(e=>void e.preload().catch(()=>{}));if(typeof requestIdleCallback==`function`){let t=requestIdleCallback(e,{timeout:3e3});return()=>cancelIdleCallback(t)}let t=setTimeout(e,1500);return()=>clearTimeout(t)},[]),(0,L.useEffect)(()=>{be.get().then(e=>{Wr(e),i(e=>e+1)},()=>{})},[]),(0,L.useEffect)(()=>{we.status().then(e=>{let t=location.hash.replace(/^#\/?/,``).split(`/`)[0];!e.ready&&e.state===null&&t!==`welcome`&&t!==`settings`&&location.replace(`#/welcome/setup`)},()=>{})},[]),t===`tosca`&&n&&r[0]===`compare`?(0,R.jsx)(Xp,{at:e.join(`/`),children:(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(dm,{id:n,caseId:r[1]?o(r[1]):void 0})})}):(0,R.jsxs)(gr,{current:t,route:e,children:[(0,R.jsx)(ji,{onReload:()=>c(e=>e+1)}),(0,R.jsx)(L.Fragment,{children:(0,R.jsx)(Xp,{at:e.join(`/`),children:(0,R.jsx)(Bm,{page:t,sub:(t===`data`||t===`jobs`||t===`responsive`||t===`desktop`||t===`mobile`||t===`product`||t===`agents`||t===`runs`||t===`evidence`||t===`evidence-runs`||t===`accessibility`||t===`test-cases`||t===`test-management`||t===`quality`||t===`record`||t===`requirements`||t===`tosca`||t===`migration`||t===`browse`||t===`knowledge`)&&n?[n,...r].join(`/`):n})})},s)]})}function Rm(e){return e?e===`conversions`?s(`migration`,`migrations`):`#/migration/${e}`:s(`migration`,`guide`)}function zm({to:e}){return(0,L.useEffect)(()=>{location.replace(e)},[e]),null}function Bm({page:e,sub:t}){if(e===`settings`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(Qp,{section:t})});if(e===`welcome`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(Qp,{guide:t??``},`welcome`)});if(e===`chats`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:t?(0,R.jsx)($p,{id:t}):(0,R.jsx)(em,{})});if(e===`reports`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(tm,{sub:t})});if(e===`jobs`||e===`schedules`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(Am,{sub:e===`jobs`?t:void 0})});if(e===`impact`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(cm,{})});if(e===`regression`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(sm,{sub:t})});if(e===`api-tests`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(lm,{sub:t})});if(e===`migration`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(um,{sub:t})});if(e===`tosca`)return(0,R.jsx)(zm,{to:Rm(t)});if(e===`quality`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(fm,{sub:t})});if(e===`readiness`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(Cm,{})});if(e===`explore`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(Sm,{sub:t})});if(e===`cost`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(bm,{})});if(e===`observability`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(xm,{})});if(e===`production`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(ym,{})});if(e===`flags`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(vm,{})});if(e===`test-management`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(_m,{sub:t})});if(e===`test-debt`)return(0,R.jsx)(zm,{to:s(`test-management`,`debt`,...t?[t]:[])});if(e===`requirements`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(gm,{sub:t})});if(e===`responsive`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(hm,{sub:t})});if(e===`run-diff`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(mm,{sub:t})});if(e===`flaky`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(pm,{})});if(e===`test-cases`)return(0,R.jsx)(zm,{to:t?`#/test-management/stories/${t}`:s(`test-management`,`stories`)});if(e===`accessibility`||e===`performance`||e===`visual`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(e===`accessibility`?wm:e===`performance`?Tm:Em,{sub:t},e)});if(e===`data`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(Dm,{sub:t})});if(e===`test-data`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(Om,{sub:t})});if(e===`features`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(km,{})});if(e===`whats-new`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(Nm,{})});if(e===`record`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(im,{sub:t})});if(e===`desktop`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(am,{sub:t})});if(e===`mobile`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(om,{sub:t})});if(e===`agents`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(nm,{id:t})});if(e===`runs`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(rm,{sub:t})});if(e===`product`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(jm,{sub:t})});if(e===`evidence`||e===`evidence-runs`||e===`evidence-contracts`||e===`evidence-review`||e===`evidence-releases`||e===`evidence-learn`||e===`evidence-monitor`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(Mm,{page:e,sub:t})});if(e===`browse`)return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(Pm,{sub:t})});if(e===`knowledge`)return(0,R.jsx)(Pp,{sub:t});if(e===`memory`)return(0,R.jsx)(qp,{});if(fe.includes(e))return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,R.jsx)(Qp,{only:e},e)});let n=Jp.find(t=>t.id===e);return n?(0,R.jsx)(Yp,{section:n}):(0,R.jsx)(of,{})}je(),Oe(),Pe(),qr(),Oi(document),Di(),(0,si.createRoot)(document.getElementById(`root`)).render((0,R.jsx)(L.StrictMode,{children:(0,R.jsxs)(ie,{children:[(0,R.jsx)(Lm,{}),(0,R.jsx)(wi,{})]})}));export{xo as $,Pd as A,gc as B,Yd as C,qd as D,Jd as E,Kl as F,Wo as G,fc as H,Wl as I,zo as J,Uo as K,Zc as L,Id as M,md as N,Q as O,ql as P,Io as Q,Bc as R,$d as S,Gd as T,Ko as U,pc as V,Go as W,Ho as X,Bo as Y,Vo as Z,xf as _,Cp as a,Ga as at,af as b,yp as c,Na as ct,lp as d,z as dt,U as et,Qf as f,Mi as ft,hf as g,sf as h,wp as i,Wa as it,Vd as j,Rd as k,dp as l,za as lt,yf as m,Ap as n,lo as nt,Ep as o,Ha as ot,vf as p,Lo as q,kp as r,Ua as rt,Tp as s,Va as st,Dp as t,bo as tt,gp as u,ia as ut,pf as v,Wd as w,of as x,cf as y,Tc as z};