thursday-agent 0.17.2 → 0.18.0

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 (362) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +1 -0
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/routes-manifest.json +6 -0
  6. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  7. package/.next/server/app/_global-error.html +1 -1
  8. package/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  13. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/_not-found.html +1 -1
  15. package/.next/server/app/_not-found.rsc +2 -2
  16. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  17. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  18. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  19. package/.next/server/app/api/artifact/route.js +7 -7
  20. package/.next/server/app/api/artifact/route.js.nft.json +1 -1
  21. package/.next/server/app/api/bot/memory/files/route.js +4 -4
  22. package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
  23. package/.next/server/app/api/bot/memory/route.js +1 -1
  24. package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
  25. package/.next/server/app/api/bot/route.js +1 -1
  26. package/.next/server/app/api/bot/route.js.nft.json +1 -1
  27. package/.next/server/app/api/bot/thread/[id]/route.js +1 -1
  28. package/.next/server/app/api/bot/thread/[id]/route.js.nft.json +1 -1
  29. package/.next/server/app/api/bot/thread/file/route/app-paths-manifest.json +3 -0
  30. package/.next/server/app/api/bot/thread/file/route/build-manifest.json +12 -0
  31. package/.next/server/app/api/bot/thread/file/route/server-reference-manifest.json +4 -0
  32. package/.next/server/app/api/bot/thread/file/route.js +29 -0
  33. package/.next/server/app/api/bot/thread/file/route.js.map +5 -0
  34. package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -0
  35. package/.next/server/app/api/bot/thread/file/route_client-reference-manifest.js +3 -0
  36. package/.next/server/app/api/bot/thread/route.js +1 -1
  37. package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
  38. package/.next/server/app/api/config/route.js +1 -1
  39. package/.next/server/app/api/config/route.js.nft.json +1 -1
  40. package/.next/server/app/api/events/route.js +2 -2
  41. package/.next/server/app/api/events/route.js.nft.json +1 -1
  42. package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
  43. package/.next/server/app/api/file/[...path]/route.js +4 -4
  44. package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
  45. package/.next/server/app/api/llm-model/automatic/route.js +1 -1
  46. package/.next/server/app/api/llm-model/automatic/route.js.nft.json +1 -1
  47. package/.next/server/app/api/llm-model/catalog/route.js +1 -1
  48. package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
  49. package/.next/server/app/api/llm-model/credits/route.js +1 -1
  50. package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -1
  51. package/.next/server/app/api/llm-model/route.js +1 -1
  52. package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
  53. package/.next/server/app/api/llm-model/subscription/route.js +1 -1
  54. package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
  55. package/.next/server/app/api/mcp/[name]/route.js +1 -1
  56. package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
  57. package/.next/server/app/api/mcp/oauth/callback/route.js +2 -2
  58. package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
  59. package/.next/server/app/api/mcp/route.js +1 -1
  60. package/.next/server/app/api/mcp/route.js.nft.json +1 -1
  61. package/.next/server/app/api/mcp/tools/route.js +1 -1
  62. package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
  63. package/.next/server/app/api/memory/edit/route.js +1 -1
  64. package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
  65. package/.next/server/app/api/memory/route.js +1 -1
  66. package/.next/server/app/api/memory/route.js.nft.json +1 -1
  67. package/.next/server/app/api/reach/route.js +1 -1
  68. package/.next/server/app/api/reach/route.js.nft.json +1 -1
  69. package/.next/server/app/api/routine/route.js +1 -1
  70. package/.next/server/app/api/routine/route.js.nft.json +1 -1
  71. package/.next/server/app/api/signins/route.js +1 -1
  72. package/.next/server/app/api/signins/route.js.nft.json +1 -1
  73. package/.next/server/app/api/skills/[source]/[name]/route.js +1 -1
  74. package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
  75. package/.next/server/app/api/skills/route.js +1 -1
  76. package/.next/server/app/api/skills/route.js.nft.json +1 -1
  77. package/.next/server/app/api/thursday/call/end/route.js +1 -1
  78. package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
  79. package/.next/server/app/api/thursday/call/route.js +1 -1
  80. package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
  81. package/.next/server/app/api/thursday/settings/route.js +1 -1
  82. package/.next/server/app/api/thursday/settings/route.js.nft.json +1 -1
  83. package/.next/server/app/api/thursday/text/route.js +1 -1
  84. package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
  85. package/.next/server/app/api/thursday/tool-call/route.js +1 -1
  86. package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
  87. package/.next/server/app/api/workspace/files/route.js +1 -1
  88. package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
  89. package/.next/server/app/api/workspace/route.js +1 -1
  90. package/.next/server/app/api/workspace/route.js.nft.json +1 -1
  91. package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +94 -6
  92. package/.next/server/app/artifact/[...path]/page.js +9 -6
  93. package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
  94. package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
  95. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  96. package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  97. package/.next/server/app/page/server-reference-manifest.json +161 -128
  98. package/.next/server/app/page.js +9 -9
  99. package/.next/server/app/page.js.nft.json +1 -1
  100. package/.next/server/app/page_client-reference-manifest.js +1 -1
  101. package/.next/server/app-paths-manifest.json +1 -0
  102. package/.next/server/chunks/{[externals]__12stas-._.js → [externals]__178rv3v._.js} +1 -1
  103. package/.next/server/chunks/[root-of-the-server]__00qyw01._.js +1 -1
  104. package/.next/server/chunks/[root-of-the-server]__02ra64t._.js +5 -0
  105. package/.next/server/chunks/[root-of-the-server]__03xamry._.js +1 -1
  106. package/.next/server/chunks/[root-of-the-server]__04hhvpu._.js +7 -0
  107. package/.next/server/chunks/[root-of-the-server]__05dp5tr._.js +1 -1
  108. package/.next/server/chunks/[root-of-the-server]__0bqveex._.js +1 -1
  109. package/.next/server/chunks/{[root-of-the-server]__1_h4hf9._.js → [root-of-the-server]__0brmiv2._.js} +4 -4
  110. package/.next/server/chunks/[root-of-the-server]__0gvdr2h._.js +5 -0
  111. package/.next/server/chunks/[root-of-the-server]__0h656y-._.js +1 -1
  112. package/.next/server/chunks/[root-of-the-server]__0lvjz0b._.js +5 -0
  113. package/.next/server/chunks/[root-of-the-server]__0mgyt8p._.js +1 -1
  114. package/.next/server/chunks/[root-of-the-server]__0mrk2it._.js +1 -1
  115. package/.next/server/chunks/[root-of-the-server]__0my9geo._.js +3 -0
  116. package/.next/server/chunks/[root-of-the-server]__0qdoc_9._.js +5 -0
  117. package/.next/server/chunks/[root-of-the-server]__0sm5xvm._.js +1 -1
  118. package/.next/server/chunks/[root-of-the-server]__0v_kuor._.js +5 -0
  119. package/.next/server/chunks/[root-of-the-server]__1-rmal0._.js +1 -1
  120. package/.next/server/chunks/[root-of-the-server]__13hng6h._.js +1 -1
  121. package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +2 -2
  122. package/.next/server/chunks/[root-of-the-server]__1ceammd._.js +1 -1
  123. package/.next/server/chunks/[root-of-the-server]__1dth047._.js +5 -0
  124. package/.next/server/chunks/[root-of-the-server]__1etbk64._.js +3 -0
  125. package/.next/server/chunks/[root-of-the-server]__1izes4_._.js +7 -0
  126. package/.next/server/chunks/[root-of-the-server]__1ksm9m-._.js +12 -0
  127. package/.next/server/chunks/[root-of-the-server]__1m_dmf6._.js +5 -0
  128. package/.next/server/chunks/[root-of-the-server]__1mys2c3._.js +5 -0
  129. package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
  130. package/.next/server/chunks/[root-of-the-server]__1p0njle._.js +5 -0
  131. package/.next/server/chunks/[root-of-the-server]__1p47fbb._.js +2 -2
  132. package/.next/server/chunks/[root-of-the-server]__1ygplx1._.js +1 -1
  133. package/.next/server/chunks/[root-of-the-server]__1zn039k._.js +1 -1
  134. package/.next/server/chunks/_01c32w9._.js +1 -1
  135. package/.next/server/chunks/_02bov6_._.js +1 -1
  136. package/.next/server/chunks/_06hnfi8._.js +2 -2
  137. package/.next/server/chunks/_06u9yo-._.js +1 -1
  138. package/.next/server/chunks/_07nxi75._.js +42 -41
  139. package/.next/server/chunks/_08354bn._.js +12 -11
  140. package/.next/server/chunks/{_08btiir._.js → _08_-9ay._.js} +3 -3
  141. package/.next/server/chunks/_08s4vft._.js +1 -1
  142. package/.next/server/chunks/_0bgjf07._.js +5 -0
  143. package/.next/server/chunks/_0fb6dvr._.js +1 -1
  144. package/.next/server/chunks/_0hgvg55._.js +1 -1
  145. package/.next/server/chunks/_0iw19ig._.js +1 -1
  146. package/.next/server/chunks/_0poi1t2._.js +1 -1
  147. package/.next/server/chunks/_0srlnvd._.js +6 -6
  148. package/.next/server/chunks/_0t_7gji._.js +1 -1
  149. package/.next/server/chunks/_0uzj57i._.js +1 -1
  150. package/.next/server/chunks/_0wyh244._.js +112 -0
  151. package/.next/server/chunks/_0xygcxs._.js +42 -41
  152. package/.next/server/chunks/_1-sk_q4._.js +1 -1
  153. package/.next/server/chunks/_108gsm8._.js +2 -2
  154. package/.next/server/chunks/_136j09a._.js +5 -5
  155. package/.next/server/chunks/_15negpy._.js +2 -2
  156. package/.next/server/chunks/_1d7og_q._.js +1 -1
  157. package/.next/server/chunks/_1dxq827._.js +2 -2
  158. package/.next/server/chunks/_1e54wxa._.js +1 -1
  159. package/.next/server/chunks/_1gn2r2q._.js +6 -6
  160. package/.next/server/chunks/_1i3uucm._.js +1 -1
  161. package/.next/server/chunks/_1jvy78-._.js +5 -0
  162. package/.next/server/chunks/_1q6e56i._.js +6 -6
  163. package/.next/server/chunks/_1qgix-j._.js +1 -1
  164. package/.next/server/chunks/_1wwl_7o._.js +1 -1
  165. package/.next/server/chunks/_1y8w80a._.js +5 -5
  166. package/.next/server/chunks/_1yx285_._.js +3 -0
  167. package/.next/server/chunks/_20qn224._.js +3 -0
  168. package/.next/server/chunks/_211dn2c._.js +1 -1
  169. package/.next/server/chunks/_next-internal_server_app_api_bot_thread_file_route_actions_0q3be0o.js +3 -0
  170. package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
  171. package/.next/server/chunks/features_bot_08z387_._.js +3 -3
  172. package/.next/server/chunks/features_workspace_workspace_ts_13h82gv._.js +3 -3
  173. package/.next/server/chunks/features_workspace_workspace_ts_1iyjroj._.js +3 -3
  174. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_04oxl25._.js → node_modules_consola_dist_chunks_prompt_mjs_0yd5xa0._.js} +1 -1
  175. package/.next/server/chunks/ssr/[root-of-the-server]__04upd5v._.js +1 -1
  176. package/.next/server/chunks/ssr/[root-of-the-server]__06knwl5._.js +3 -0
  177. package/.next/server/chunks/ssr/[root-of-the-server]__07ehpky._.js +3 -0
  178. package/.next/server/chunks/ssr/[root-of-the-server]__0h6jo0s._.js +3 -0
  179. package/.next/server/chunks/ssr/[root-of-the-server]__128hnrd._.js +3 -0
  180. package/.next/server/chunks/ssr/[root-of-the-server]__1867koj._.js +1 -1
  181. package/.next/server/chunks/ssr/[root-of-the-server]__1gzje-h._.js +3 -0
  182. package/.next/server/chunks/ssr/{[root-of-the-server]__1d7usu0._.js → [root-of-the-server]__1qn0axo._.js} +2 -2
  183. package/.next/server/chunks/ssr/[root-of-the-server]__1r7tj27._.js +3 -0
  184. package/.next/server/chunks/ssr/[root-of-the-server]__1tb5vve._.js +46 -0
  185. package/.next/server/chunks/ssr/{features_bot_1knyan7._.js → _07nmtxo._.js} +2 -2
  186. package/.next/server/chunks/ssr/{_10-_awu._.js → _0f9hx5p._.js} +2 -2
  187. package/.next/server/chunks/ssr/_0fo4552._.js +10 -9
  188. package/.next/server/chunks/ssr/{_123y-ah._.js → _0is8m6y._.js} +2 -2
  189. package/.next/server/chunks/ssr/{_17a4qyk._.js → _0ixe3g3._.js} +3 -3
  190. package/.next/server/chunks/ssr/_0j9vh-8._.js +3 -0
  191. package/.next/server/chunks/ssr/_0l7rjg5._.js +1 -1
  192. package/.next/server/chunks/ssr/{lib_logger_ts_0-olsze._.js → _0mfgsk-._.js} +4 -2
  193. package/.next/server/chunks/ssr/_0mpn6q0._.js +5 -0
  194. package/.next/server/chunks/ssr/{_0e2fnvg._.js → _0osvxkt._.js} +2 -2
  195. package/.next/server/chunks/ssr/_0p6w0ef._.js +3 -0
  196. package/.next/server/chunks/ssr/_0pbav_w._.js +3 -0
  197. package/.next/server/chunks/ssr/{_1aqjk-1._.js → _0wuvkqk._.js} +2 -2
  198. package/.next/server/chunks/ssr/_0x8ophf._.js +1 -1
  199. package/.next/server/chunks/ssr/_0x9f717._.js +60 -0
  200. package/.next/server/chunks/ssr/_1-41lck._.js +1 -1
  201. package/.next/server/chunks/ssr/_10jtmhl._.js +3 -0
  202. package/.next/server/chunks/ssr/{_0xfafez._.js → _12jv_41._.js} +2 -2
  203. package/.next/server/chunks/ssr/{_163dr78._.js → _165wnr4._.js} +2 -2
  204. package/.next/server/chunks/ssr/_16_7zeo._.js +3 -0
  205. package/.next/server/chunks/ssr/{_14oirtb._.js → _1_ogjze._.js} +2 -2
  206. package/.next/server/chunks/ssr/_1bfrntd._.js +6 -0
  207. package/.next/server/chunks/ssr/_1i2swyr._.js +3 -0
  208. package/.next/server/chunks/ssr/{_10_ph1t._.js → _1jd8rjm._.js} +2 -2
  209. package/.next/server/chunks/ssr/_1mdjoak._.js +162 -0
  210. package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
  211. package/.next/server/chunks/ssr/{_1dfv66y._.js → _1oafxdu._.js} +2 -2
  212. package/.next/server/chunks/ssr/_1omom9y._.js +3 -0
  213. package/.next/server/chunks/ssr/_1pgxh81._.js +271 -0
  214. package/.next/server/chunks/ssr/{_0vo_oym._.js → _1r4mc3i._.js} +2 -2
  215. package/.next/server/chunks/ssr/_1soynbw._.js +6 -0
  216. package/.next/server/chunks/ssr/{_01al00i._.js → _1tx-2k7._.js} +2 -2
  217. package/.next/server/chunks/ssr/_1w899wx._.js +3 -0
  218. package/.next/server/chunks/ssr/_1xwtbdz._.js +3 -0
  219. package/.next/server/chunks/ssr/features_0796o8r._.js +1 -1
  220. package/.next/server/chunks/ssr/features_bot_0tb4ui-._.js +2 -2
  221. package/.next/server/chunks/ssr/features_bot_18gqkr_._.js +3 -0
  222. package/.next/server/chunks/ssr/{features_config_09n-q9q._.js → features_config_1ond01n._.js} +3 -3
  223. package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
  224. package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +1 -1
  225. package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
  226. package/.next/server/chunks/ssr/features_workspace_workspace_ts_1wc7_u_._.js +4 -4
  227. package/.next/server/chunks/ssr/{node_modules_0msrhxf._.js → node_modules_004qt-z._.js} +1 -1
  228. package/.next/server/chunks/ssr/{node_modules_0q-klni._.js → node_modules_06m6e97._.js} +1 -1
  229. package/.next/server/chunks/ssr/{node_modules_13g-d25._.js → node_modules_09dy7tk._.js} +1 -1
  230. package/.next/server/chunks/ssr/{node_modules_0gd9hbz._.js → node_modules_0_hy3i2._.js} +1 -1
  231. package/.next/server/chunks/ssr/{node_modules_1gq3ght._.js → node_modules_0f485jl._.js} +1 -1
  232. package/.next/server/chunks/ssr/{node_modules_096up6a._.js → node_modules_0gbx70b._.js} +1 -1
  233. package/.next/server/chunks/ssr/{node_modules_13bqv6i._.js → node_modules_0i_v0-m._.js} +1 -1
  234. package/.next/server/chunks/ssr/{node_modules_04x5wyv._.js → node_modules_0lrn9ci._.js} +1 -1
  235. package/.next/server/chunks/ssr/{node_modules_0d6j33x._.js → node_modules_0lxwg2v._.js} +1 -1
  236. package/.next/server/chunks/ssr/{node_modules_113l3e5._.js → node_modules_0n2-p5q._.js} +1 -1
  237. package/.next/server/chunks/ssr/node_modules_0nj36zf._.js +3 -0
  238. package/.next/server/chunks/ssr/{node_modules_0cjnmzp._.js → node_modules_0ppirau._.js} +1 -1
  239. package/.next/server/chunks/ssr/{node_modules_0m73b88._.js → node_modules_0pw13ww._.js} +1 -1
  240. package/.next/server/chunks/ssr/node_modules_0qd7p5f._.js +3 -0
  241. package/.next/server/chunks/ssr/{node_modules_0nmkv-v._.js → node_modules_0upwx50._.js} +1 -1
  242. package/.next/server/chunks/ssr/{node_modules_0__0tvm._.js → node_modules_0v__o4h._.js} +1 -1
  243. package/.next/server/chunks/ssr/{node_modules_1k5i-_9._.js → node_modules_1-4q6is._.js} +1 -1
  244. package/.next/server/chunks/ssr/{node_modules_156kv_t._.js → node_modules_10mb0cv._.js} +1 -1
  245. package/.next/server/chunks/ssr/{node_modules_10_fv2a._.js → node_modules_16z7p8b._.js} +1 -1
  246. package/.next/server/chunks/ssr/{node_modules_1lmyts8._.js → node_modules_17o218r._.js} +1 -1
  247. package/.next/server/chunks/ssr/{node_modules_0k8-y89._.js → node_modules_1gpapfv._.js} +1 -1
  248. package/.next/server/chunks/ssr/{node_modules_1_8-jcj._.js → node_modules_1hdaxu9._.js} +1 -1
  249. package/.next/server/chunks/ssr/{node_modules_1ri_eip._.js → node_modules_1hjvwkh._.js} +1 -1
  250. package/.next/server/chunks/ssr/{node_modules_0nw5jz7._.js → node_modules_1j886a5._.js} +1 -1
  251. package/.next/server/chunks/ssr/{node_modules_1xb-ndg._.js → node_modules_1srjf5c._.js} +1 -1
  252. package/.next/server/chunks/ssr/{node_modules_1p_6sq7._.js → node_modules_1tus4vi._.js} +1 -1
  253. package/.next/server/chunks/ssr/{node_modules_021lid9._.js → node_modules_1tv_7lk._.js} +1 -1
  254. package/.next/server/chunks/ssr/{node_modules_1qstb1x._.js → node_modules_20448xv._.js} +1 -1
  255. package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0amkw0b._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0lg9pkl._.js} +1 -1
  256. package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0zq3l45._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1xgbf5j._.js} +1 -1
  257. package/.next/server/middleware-build-manifest.js +3 -3
  258. package/.next/server/middleware.js +1 -1
  259. package/.next/server/pages/404.html +1 -1
  260. package/.next/server/pages/500.html +1 -1
  261. package/.next/server/server-reference-manifest.js +1 -1
  262. package/.next/server/server-reference-manifest.json +205 -132
  263. package/.next/static/chunks/{166smhw8v-s3j.js → 05uvci-bk-vgp.js} +1 -1
  264. package/.next/static/chunks/09y_43y1cy5jw.js +1 -0
  265. package/.next/static/chunks/0_s4z70lx1tgs.js +1 -0
  266. package/.next/static/chunks/0oqviw3f55nfp.js +58 -0
  267. package/.next/static/chunks/0q9b2n6l4flqb.js +1 -0
  268. package/.next/static/chunks/0ruf3dqs--3ve.js +1 -0
  269. package/.next/static/chunks/0vggwjufw2-6r.js +1 -0
  270. package/.next/static/chunks/{3sla-dm1puqd1.js → 0x4m9nj2fazl2.js} +1 -1
  271. package/.next/static/chunks/{3t2c76awm9k_p.js → 1-1yfu34-3p2p.js} +1 -1
  272. package/.next/static/chunks/10oyyypxn_cpx.js +1 -0
  273. package/.next/static/chunks/{1cglo3a2mbeou.js → 17dx6w478vnb0.js} +1 -1
  274. package/.next/static/chunks/184-r80rv0xay.css +1 -0
  275. package/.next/static/chunks/1_hgdoungpm0o.js +1 -0
  276. package/.next/static/chunks/{0obogzscwwekj.js → 1dpg1u4a16ujt.js} +1 -1
  277. package/.next/static/chunks/{2qgkbdshzpq1c.js → 1h_6rh86q3i4p.js} +1 -1
  278. package/.next/static/chunks/{3b96xy59nl_gd.js → 1pe7i5yu779ta.js} +1 -1
  279. package/.next/static/chunks/{2zbl41hed17g3.js → 240nfv2dtidhc.js} +1 -1
  280. package/.next/static/chunks/{0uxq_vs6uxi-b.js → 27l8qwnk1j66z.js} +1 -1
  281. package/.next/static/chunks/2gxfy__ef51n9.js +3 -0
  282. package/.next/static/chunks/2kjwmo70judc2.js +15 -0
  283. package/.next/static/chunks/{3gsxnqqqphh-1.js → 2lzg4zedtmyic.js} +1 -1
  284. package/.next/static/chunks/2ug8q1x9e-_j6.js +1 -0
  285. package/.next/static/chunks/{01l7kw74vfp32.js → 2uk8rdtr-pk58.js} +1 -1
  286. package/.next/static/chunks/337g9g_ux2gj-.js +1 -0
  287. package/.next/static/chunks/{0o7o0eb7ihxi6.js → 396enq-m0sss5.js} +1 -1
  288. package/.next/static/chunks/{0p2f6uv4xytfm.js → 3r7u1y9xjoh-v.js} +1 -1
  289. package/.next/static/chunks/{3jtcieuk1l6tw.js → 3vg1-oc-zgw_7.js} +1 -1
  290. package/.next/static/chunks/40re_3ukjulg9.js +1 -0
  291. package/.next/static/chunks/41ztsnjn4qrn-.js +1 -0
  292. package/README.md +5 -5
  293. package/bin/autostart.mjs +32 -2
  294. package/bin/lock.mjs +85 -4
  295. package/bin/thursday.mjs +42 -15
  296. package/bin/tools.mjs +18 -1
  297. package/database/migrations/20260926021847_thread_cache_tokens/migration.sql +2 -0
  298. package/database/migrations/20260926021847_thread_cache_tokens/snapshot.json +1949 -0
  299. package/guide/bots.md +173 -317
  300. package/guide/calls.md +98 -146
  301. package/guide/index.md +2 -2
  302. package/guide/memory.md +14 -18
  303. package/guide/phone.md +86 -133
  304. package/guide/setup.md +127 -172
  305. package/guide/trouble.md +42 -65
  306. package/package.json +1 -1
  307. package/seed-skills/concierge/travel/scripts/itinerary.mjs +1 -1
  308. package/skills/artifact/runtime/shell/shell.js +32 -3
  309. package/.next/server/chunks/[root-of-the-server]__01ypm_z._.js +0 -3
  310. package/.next/server/chunks/[root-of-the-server]__021dkui._.js +0 -3
  311. package/.next/server/chunks/[root-of-the-server]__09gdscj._.js +0 -7
  312. package/.next/server/chunks/[root-of-the-server]__0ljizgj._.js +0 -5
  313. package/.next/server/chunks/[root-of-the-server]__0nmust6._.js +0 -5
  314. package/.next/server/chunks/[root-of-the-server]__0svzjwa._.js +0 -7
  315. package/.next/server/chunks/[root-of-the-server]__1c2kwku._.js +0 -12
  316. package/.next/server/chunks/[root-of-the-server]__1t02-1p._.js +0 -3
  317. package/.next/server/chunks/[root-of-the-server]__1t0jj1j._.js +0 -5
  318. package/.next/server/chunks/[root-of-the-server]__1vlxv19._.js +0 -5
  319. package/.next/server/chunks/_0j0-gq6._.js +0 -5
  320. package/.next/server/chunks/_0p6v1fr._.js +0 -5
  321. package/.next/server/chunks/_1ic3bew._.js +0 -5
  322. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0g87zst._.js +0 -3
  323. package/.next/server/chunks/ssr/[root-of-the-server]__0-af_o7._.js +0 -3
  324. package/.next/server/chunks/ssr/[root-of-the-server]__09f39cp._.js +0 -4
  325. package/.next/server/chunks/ssr/[root-of-the-server]__0ouu4qp._.js +0 -3
  326. package/.next/server/chunks/ssr/[root-of-the-server]__0q9g9ea._.js +0 -5
  327. package/.next/server/chunks/ssr/[root-of-the-server]__17h1ggo._.js +0 -46
  328. package/.next/server/chunks/ssr/[root-of-the-server]__1jyeu61._.js +0 -5
  329. package/.next/server/chunks/ssr/_0afrpci._.js +0 -3
  330. package/.next/server/chunks/ssr/_0bgse1c._.js +0 -162
  331. package/.next/server/chunks/ssr/_0qsmpcu._.js +0 -3
  332. package/.next/server/chunks/ssr/_0z38nha._.js +0 -3
  333. package/.next/server/chunks/ssr/_116lfdc._.js +0 -3
  334. package/.next/server/chunks/ssr/_14dfh7a._.js +0 -4
  335. package/.next/server/chunks/ssr/_17qtuv7._.js +0 -3
  336. package/.next/server/chunks/ssr/_1_5xof_._.js +0 -3
  337. package/.next/server/chunks/ssr/_1alxym6._.js +0 -3
  338. package/.next/server/chunks/ssr/_1ou5sj0._.js +0 -3
  339. package/.next/server/chunks/ssr/_1tmw842._.js +0 -5
  340. package/.next/server/chunks/ssr/_1uij_rj._.js +0 -3
  341. package/.next/server/chunks/ssr/_1w9w1ok._.js +0 -3
  342. package/.next/server/chunks/ssr/_20gq_24._.js +0 -3
  343. package/.next/server/chunks/ssr/features_bot_0ouemw8._.js +0 -3
  344. package/.next/server/chunks/ssr/node_modules_@base-ui_react_1j9i1ho._.js +0 -3
  345. package/.next/static/chunks/0a5_-jqhaktjj.js +0 -1
  346. package/.next/static/chunks/0npvak0wpgagb.js +0 -1
  347. package/.next/static/chunks/19l81deo_pyoc.js +0 -1
  348. package/.next/static/chunks/1bnhw-5fj7aiz.js +0 -1
  349. package/.next/static/chunks/1in6nxpu33iab.js +0 -1
  350. package/.next/static/chunks/1u7kg91f9qy3g.js +0 -1
  351. package/.next/static/chunks/1xv4g10m-cl1s.js +0 -1
  352. package/.next/static/chunks/2ajs12-fcdwzm.js +0 -1
  353. package/.next/static/chunks/2i7qtmxc1kuqg.js +0 -1
  354. package/.next/static/chunks/2kz1f6r59nky0.js +0 -3
  355. package/.next/static/chunks/31kn4_h2rvf6k.css +0 -1
  356. package/.next/static/chunks/35jj-5u4te56r.js +0 -1
  357. package/.next/static/chunks/37ixzapa06xlo.js +0 -1
  358. package/.next/static/chunks/3k1d8y03t5nax.js +0 -58
  359. package/.next/static/chunks/3yiqr95d7ybeq.js +0 -15
  360. /package/.next/static/{8I2hKtciyA9LXvd8txuOz → -IBxB5oqr6e3RuOCCmYtL}/_buildManifest.js +0 -0
  361. /package/.next/static/{8I2hKtciyA9LXvd8txuOz → -IBxB5oqr6e3RuOCCmYtL}/_clientMiddlewareManifest.js +0 -0
  362. /package/.next/static/{8I2hKtciyA9LXvd8txuOz → -IBxB5oqr6e3RuOCCmYtL}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,127341,e=>{"use strict";var t,n=e.i(843476);e.s([],559657),e.i(559657);var r=e.i(271645),a=e.i(951437),i=e.i(146376),l=e.i(667865),u=e.i(552245),s=e.i(53687),o=e.i(733332);let c=r.createContext(void 0);function d(){let e=r.useContext(c);if(void 0===e)throw Error((0,o.default)(64));return e}let f={tabActivationDirection:e=>({"data-activation-direction":e})};var p=e.i(675606),g=e.i(56434);let v=r.forwardRef(function(e,t){let{className:o,defaultValue:d=0,onValueChange:v,orientation:m="horizontal",render:R,value:E,style:x,...y}=e,C=void 0!==e.defaultValue,S=r.useRef([]),[k,w]=r.useState(()=>new Map),[I,A]=(0,a.useControlled)({controlled:E,default:d,name:"Tabs",state:"value"}),T=void 0!==E,[L,M]=r.useState(()=>new Map),O=r.useRef(void 0),_=r.useCallback(e=>b(L,e),[L]),[D,P]=r.useState(()=>({previousValue:I,tabActivationDirection:"none"})),{previousValue:N,tabActivationDirection:z}=D,j=z,H=!1;N!==I&&(j=h(N,I,m,L),H=null!=N&&null!=I&&null==_(I));let W=H?N:I,V=N!==W||z!==j;(0,i.useIsoLayoutEffect)(()=>{V&&P({previousValue:W,tabActivationDirection:j})},[W,V,j]);let B=(0,l.useStableCallback)((e,t)=>{t.activationDirection=h(I,e,m,L),v?.(e,t),t.isCanceled||A(e)}),F=(0,l.useStableCallback)((e,t)=>{v?.(e,(0,p.createChangeEventDetails)(t,void 0,void 0,{activationDirection:"none"}))}),K=(0,l.useStableCallback)((e,t)=>(w(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{w(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),U=r.useCallback(e=>k.get(e),[k]),Y=r.useCallback(e=>{for(let t of L.values())if(e===t.value)return t.id},[L]),$=r.useMemo(()=>({getTabElementBySelectedValue:_,getTabIdByPanelValue:Y,getTabPanelIdByValue:U,onValueChange:B,orientation:m,registerMountedTabPanel:K,setTabMap:M,tabActivationDirection:j,value:I}),[_,Y,U,B,m,K,M,j,I]),G=r.useMemo(()=>{for(let e of L.values())if(e.value===I)return e},[L,I]),q=r.useMemo(()=>{for(let e of L.values())if(!e.disabled)return e.value},[L]),Z=r.useRef(!C),J=r.useRef(d),X=r.useRef(C),Q=r.useRef(!1);(0,i.useIsoLayoutEffect)(()=>{if(T)return;function e(e,t){A(e),P({previousValue:e,tabActivationDirection:"none"}),F(e,t),Z.current=!1}if(0===L.size){Q.current&&null!==I&&!O.current?.isConnected&&e(null,g.REASONS.missing);return}Q.current=!0,O.current=L.keys().next().value;let t=G?.disabled,n=null==G&&null!==I;if(t||I!==J.current||(X.current=!1),X.current&&t&&I===J.current)return;let r=Z.current;if(t||n){let n=q??null;if(I===n){Z.current=!1;return}let a=g.REASONS.missing;r?a=g.REASONS.initial:t&&(a=g.REASONS.disabled),e(n,a);return}r&&null!=G&&(F(I,g.REASONS.initial),Z.current=!1)},[q,T,F,G,A,L,I]);let ee={orientation:m,tabActivationDirection:j},et=(0,u.useRenderElement)("div",e,{state:ee,ref:t,props:y,stateAttributesMapping:f});return(0,n.jsx)(c.Provider,{value:$,children:(0,n.jsx)(s.CompositeList,{elementsRef:S,children:et})})});function b(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function h(e,t,n,r){if(null==e||null==t)return"none";let[a,i,l]="horizontal"===n?["left","left","right"]:["top","up","down"],u=b(r,e),s=b(r,t);if(null==u||null==s)return u!==s&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?t>e?l:i:"none";let o=u.getBoundingClientRect()[a],c=s.getBoundingClientRect()[a];return c<o?i:c>o?l:"none"}var m=e.i(108868),R=e.i(788015),E=e.i(540886),x=e.i(370359),y=e.i(395530),C=e.i(838452);let S=r.createContext(void 0);function k(){let e=r.useContext(S);if(void 0===e)throw Error((0,o.default)(65));return e}var w=e.i(584446);let I=r.forwardRef(function(e,t){let{className:n,disabled:a=!1,render:s,value:o,id:c,nativeButton:v=!0,style:b,...h}=e,{value:S,getTabPanelIdByValue:I,onValueChange:A,orientation:T,tabActivationDirection:L}=d(),{activateOnFocus:M,registerTabResizeObserverElement:O,tabsListElement:_}=k(),{highlightedIndex:D,onHighlightedIndexChange:P}=(0,C.useCompositeRootContext)(),N=(0,R.useBaseUiId)(c),z=r.useMemo(()=>({disabled:a,id:N,value:o}),[a,N,o]),{compositeProps:j,compositeRef:H,index:W}=(0,y.useCompositeItem)({metadata:z}),V=o===S,B=r.useRef(!1),F=r.useRef(null),K=(0,l.useStableCallback)(e=>{F.current?.(),F.current=e?O(e):null});(0,i.useIsoLayoutEffect)(()=>{if(B.current){B.current=!1;return}if(V&&W>-1&&D!==W){if(null!=_){let e=(0,w.activeElement)((0,m.ownerDocument)(_));if(e&&(0,w.contains)(_,e))return}a||P(W)}},[V,W,D,P,a,_]);let{getButtonProps:U,buttonRef:Y}=(0,E.useButton)({disabled:a,native:v,focusableWhenDisabled:!0}),$=I(o),G=r.useRef(!1),q=r.useRef(!1);function Z(e){A(o,(0,p.createChangeEventDetails)(g.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"}))}return(0,u.useRenderElement)("button",e,{state:{disabled:a,active:V,orientation:T,tabActivationDirection:L},ref:[t,Y,H,K],props:[j,{role:"tab","aria-controls":$,"aria-selected":V,id:N,onClick:function(e){V||a||Z(e)},onFocus:function(e){V||a||M&&(!G.current||q.current)&&Z(e)},onPointerDown:function(e){if(V||a)return;G.current=!0,q.current=0===e.button;let t=(0,m.ownerDocument)(e.currentTarget);function n(){G.current=!1,q.current=!1,t.removeEventListener("pointerup",n),t.removeEventListener("pointercancel",n)}t.addEventListener("pointerup",n),t.addEventListener("pointercancel",n)},[x.ACTIVE_COMPOSITE_ITEM]:V?"":void 0,onKeyDownCapture(){B.current=!0}},h,U],stateAttributesMapping:f})});var A=e.i(229315),T=e.i(333848),L=e.i(802239),M=e.i(956789);function O(){return M.NOOP}function _(){return!1}function D(){return!0}let P=r.createContext(void 0),N={disableStyleElements:!1};function z(e){let{script:t}=e,{nonce:a}=r.useContext(P)??N;return(0,L.useSyncExternalStore)(O,_,D)?(0,n.jsx)("script",{nonce:a,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var j=e.i(73364),H=e.i(49072);let W={...f,activeTabPosition:()=>null,activeTabSize:()=>null},V=r.forwardRef(function(e,a){let{className:i,render:l,renderBeforeHydration:s=!1,style:o,...c}=e,{getTabElementBySelectedValue:f,orientation:p,tabActivationDirection:g,value:v}=d(),{tabsListElement:b,registerIndicatorUpdateListener:h}=k(),m=function(){let[,e]=r.useState({});return r.useCallback(()=>{e({})},[])}();r.useEffect(()=>h(m),[h,m]);let R=0,E=0,x=0,y=0,C=0,S=0,w=!1;if(null!=v&&null!=b){let e=f(v);if(null!=e){w=!0;let{width:t,height:n}=(0,j.getCssDimensions)(e),{width:r,height:a}=(0,j.getCssDimensions)(b),i=e.getBoundingClientRect(),l=b.getBoundingClientRect(),u=r>0?l.width/r:1,s=a>0?l.height/a:1,o=function(e,t){let n=B(e),r=B(t),a=n.left-r.left-t.clientLeft,i=n.top-r.top-t.clientTop,l=(0,A.getParentNode)(e);for(;(0,A.isHTMLElement)(l)&&l!==t&&!(0,A.isLastTraversableNode)(l);)a-=l.scrollLeft,i-=l.scrollTop,l=(0,A.getParentNode)(l);return{left:a,top:i}}(e,b);R=o.left,x=o.top;let c=(i.left-l.left)/u+b.scrollLeft-b.clientLeft,d=(i.top-l.top)/s+b.scrollTop-b.clientTop,f=function(e){let t=(0,T.ownerWindow)(e).getComputedStyle(e),{x:n,y:r}=(0,H.getElementTransform)(e,t),a=n,i=r,{translate:l}=t;if(l&&"none"!==l){let t=l.split(" ");a+=F(t[0],e.offsetWidth),i+=F(t[1],e.offsetHeight)}return{x:a,y:i}}(e);2>=Math.abs(c-f.x-R)&&2>=Math.abs(d-f.y-x)&&(R=c,x=d),C=t,S=n,E=b.scrollWidth-R-C,y=b.scrollHeight-x-S}}let I=w?{left:R,right:E,top:x,bottom:y}:null,L=w?{width:C,height:S}:null,M=w?{"--active-tab-left":`${R}px`,"--active-tab-right":`${E}px`,"--active-tab-top":`${x}px`,"--active-tab-bottom":`${y}px`,"--active-tab-width":`${C}px`,"--active-tab-height":`${S}px`}:void 0,O=w&&C>0&&S>0,_=(0,u.useRenderElement)("span",e,{state:{orientation:p,activeTabPosition:I,activeTabSize:L,tabActivationDirection:g},ref:a,props:[{role:"presentation",style:M,hidden:!O},c,{suppressHydrationWarning:!0}],stateAttributesMapping:W});return null==v?null:(0,n.jsxs)(r.Fragment,{children:[_,s&&(t||(t=(0,n.jsx)(z,{script:""})))]})});function B(e){let t=0,n=0,r=e;for(;null!=r;){t+=r.offsetLeft,n+=r.offsetTop;let e=r.offsetParent;null!=e&&(t+=e.clientLeft,n+=e.clientTop),r=e}return{left:t,top:n}}function F(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith("%")?n/100*t:n:0}var K=e.i(144394),U=e.i(474354),Y=e.i(137584),$=e.i(223910),G=e.i(673553),q=e.i(253335);q.TransitionStatusDataAttributes.startingStyle,q.TransitionStatusDataAttributes.endingStyle;let Z={...f,...U.transitionStatusMapping},J=r.forwardRef(function(e,t){let{className:n,value:a,render:l,keepMounted:s=!1,style:o,...c}=e,{value:f,getTabIdByPanelValue:p,orientation:g,tabActivationDirection:v,registerMountedTabPanel:b}=d(),h=(0,R.useBaseUiId)(),{ref:m,index:E}=(0,G.useCompositeListItem)(),x=a===f,{mounted:y,transitionStatus:C,setMounted:S}=(0,$.useTransitionStatus)(x),k=!y,w=p(a),I=r.useRef(null),A=(0,u.useRenderElement)("div",e,{state:{hidden:k,orientation:g,tabActivationDirection:v,transitionStatus:C},ref:[t,m,I],props:[{"aria-labelledby":w,hidden:k,id:h,role:"tabpanel",tabIndex:x?0:-1,inert:(0,K.inertValue)(!x),"data-index":E},c],stateAttributesMapping:Z});return((0,Y.useOpenChangeComplete)({open:x,ref:I,onComplete(){x||S(!1)}}),(0,i.useIsoLayoutEffect)(()=>{if(null!=h&&(!k||s))return b(a,h)},[k,s,a,h,b]),s||y)?A:null});var X=e.i(405934);let Q=r.forwardRef(function(e,t){let{activateOnFocus:a=!1,className:u,loopFocus:s=!0,render:o,style:c,...p}=e,{orientation:g,setTabMap:v,tabActivationDirection:b}=d(),[h,m]=r.useState(0),[R,E]=r.useState(null),x=r.useRef(new Set),y=r.useRef(new Set),C=r.useRef(null);(0,i.useIsoLayoutEffect)(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{x.current.forEach(e=>{e()})});return C.current=e,R&&e.observe(R),y.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),C.current=null}},[R]);let k=(0,l.useStableCallback)(e=>(x.current.add(e),()=>{x.current.delete(e)})),w=(0,l.useStableCallback)(e=>(y.current.add(e),C.current?.observe(e),()=>{y.current.delete(e),C.current?.unobserve(e)})),I=r.useMemo(()=>({activateOnFocus:a,registerIndicatorUpdateListener:k,registerTabResizeObserverElement:w,tabsListElement:R}),[a,k,w,R]);return(0,n.jsx)(S.Provider,{value:I,children:(0,n.jsx)(X.CompositeRoot,{render:o,className:u,style:c,state:{orientation:g,tabActivationDirection:b},refs:[t,E],props:[{"aria-orientation":"vertical"===g?"vertical":void 0,role:"tablist"},p],stateAttributesMapping:f,highlightedIndex:h,enableHomeAndEndKeys:!0,loopFocus:s,orientation:g,onHighlightedIndexChange:m,onMapChange:v,disabledIndices:M.EMPTY_ARRAY})})});e.s(["Indicator",0,V,"List",0,Q,"Panel",0,J,"Root",0,v,"Tab",0,I],69281);var ee=e.i(69281),ee=ee,et=e.i(225913),en=e.i(647163);let er=(0,et.cva)("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});e.s(["Tabs",0,function({className:e,orientation:t="horizontal",...r}){return(0,n.jsx)(ee.Root,{"data-slot":"tabs","data-orientation":t,className:(0,en.cn)("group/tabs flex gap-2 data-horizontal:flex-col",e),...r})},"TabsContent",0,function({className:e,...t}){return(0,n.jsx)(ee.Panel,{"data-slot":"tabs-content",className:(0,en.cn)("flex-1 text-sm outline-none",e),...t})},"TabsList",0,function({className:e,variant:t="default",...r}){return(0,n.jsx)(ee.List,{"data-slot":"tabs-list","data-variant":t,className:(0,en.cn)(er({variant:t}),e),...r})},"TabsTrigger",0,function({className:e,...t}){return(0,n.jsx)(ee.Tab,{"data-slot":"tabs-trigger",className:(0,en.cn)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}],127341)},319841,e=>{"use strict";var t=e.i(271645);let n=["ctrl","alt","meta"],r=/^(Control|Alt|Shift|Meta|OS)/,a=/^(input|textarea|select)$/i,i=e=>!!e&&!!(a.test(e.tagName)||e.isContentEditable||e.closest?.("[data-hotkey-capture]")),l=e=>{let t="nativeEvent"in e?e.nativeEvent:e;return t.isComposing||229===t.keyCode},u=[],s=e=>{if("Escape"!==e.key||e.defaultPrevented||l(e))return;let t=u.at(-1);t&&(e.preventDefault(),t.current())};function o(e){let{code:t,ctrlKey:n,altKey:a,shiftKey:i,metaKey:l}=e;if(!t||r.test(t)||!n&&!a&&!l)return null;let u=[];return n&&u.push("ctrl"),a&&u.push("alt"),i&&u.push("shift"),l&&u.push("meta"),[...u,t].join("+")}let c={ctrl:["Ctrl","⌃"],alt:["Alt","⌥"],shift:["Shift","⇧"],meta:["Meta","⌘"]};e.s(["HOTKEY_CAPTURE",0,{"data-hotkey-capture":""},"comboOf",0,o,"composing",0,l,"isCombo",0,e=>{let t=e.split("+"),a=t.at(-1);return!!(a&&!r.test(a)&&t.slice(0,-1).some(e=>n.includes(e)))},"useEscape",0,function(e,n){let r=(0,t.useRef)(n);r.current=n,(0,t.useEffect)(()=>{if(e)return u.push(r),1===u.length&&window.addEventListener("keydown",s),()=>{u.splice(u.indexOf(r),1),u.length||window.removeEventListener("keydown",s)}},[e])},"useHotkey",0,function({enabled:e,combo:n,onPress:r}){let a=(0,t.useRef)(r);a.current=r,(0,t.useEffect)(()=>{if(!e||!n)return;let t=e=>{e.repeat||i(e.target)||o(e)===n&&(e.preventDefault(),a.current())};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e,n])},"useHotkeyLabel",0,function(e){let[n,r]=(0,t.useState)(!1);return(0,t.useEffect)(()=>r(/mac/i.test(navigator.userAgent)),[]),e?function(e,t=!1){let n=e.split("+"),r=n.at(-1)??"",a=n.slice(0,-1).map(e=>c[e]?.[+!!t]??e),i=r.replace(/^(Key|Digit|Numpad)/,"").replace(/([a-z])([A-Z])/g,"$1 $2")||r;return t?[...a,i].join(""):[...a,i].join(" + ")}(e,n):null},"windowKey",0,e=>!e.defaultPrevented&&!l(e)&&!i(e.target)&&!e.target?.closest?.('[role="dialog"]')])},661504,e=>{"use strict";var t=e.i(271645),n=e.i(699018),r=e.i(677309),a=e.i(271235),i=e.i(802239),l=e.i(646192);let u=Promise.resolve(),s=(0,a.withMiddleware)(n.u,e=>(n,a,s)=>{let o,c=(0,t.useRef)(!1),{cache:d,initialSize:f=1,revalidateAll:p=!1,persistSize:g=!1,revalidateFirstPage:v=!0,revalidateOnMount:b=!1,parallel:h=!1}=s,[,,,m]=r.a.get(r.o);try{(o=(0,r.s)(n?n(0,null):null)[0])&&(o=l.INFINITE_PREFIX+o)}catch(e){}let[R,E,x]=(0,r.c)(d,o),y=(0,t.useCallback)(()=>(0,r.i)(R()._l)?f:R()._l,[d,o,f]);(0,i.useSyncExternalStore)((0,t.useCallback)(e=>o?x(o,()=>{e()}):()=>{},[d,o]),y,y);let C=(0,t.useCallback)(()=>{let e=R()._l;return(0,r.i)(e)?f:e},[o,f]),S=(0,t.useRef)(C());(0,r.u)(()=>{if(!c.current){c.current=!0;return}o&&E({_l:g?S.current:C()})},[o,d]);let k=b&&!c.current,w=e(o,async e=>{let t=R()._i,i=R()._r,l=r.a.get(d),u=l[8],o=()=>l[8]!==u;E({_r:r.U});let c=[],f=C(),[g]=(0,r.c)(d,e),b=g().data,x=[],y=null;for(let e=0;e<f;++e){let[l,u]=(0,r.s)(n(e,h?null:y));if(!l)break;let[f,g]=(0,r.c)(d,l),R=f().data,E=p||t||(0,r.i)(R)||v&&!e&&!(0,r.i)(b)||k||b&&!(0,r.i)(b[e])&&!s.compare(b[e],R);if(a&&("function"==typeof i?i(R,u):E)){let t=async()=>{if(l in m){let e=m[l];delete m[l],R=await e}else R=await a(u);o()||g({data:R,_k:u}),c[e]=R};h?x.push(t):await t()}else c[e]=R;h||(y=R)}return h&&await Promise.all(x.map(e=>e())),o()||E({_i:r.U}),c},s),I=(0,t.useCallback)(function(e,t){let n="boolean"==typeof t?{revalidate:t}:t||{},a=!1!==n.revalidate;return o?(a&&((0,r.i)(e)?E({_i:!0,_r:n.revalidate}):E({_i:!1,_r:n.revalidate})),arguments.length?w.mutate(e,{...n,revalidate:a}):w.mutate()):u},[o,d]),A=(0,t.useCallback)(e=>{let t;if(!o)return u;let[,a]=(0,r.c)(d,o);if((0,r.e)(e)?t=e(C()):"number"==typeof e&&(t=e),"number"!=typeof t)return u;a({_l:t}),S.current=t;let i=[],[l]=(0,r.c)(d,o),s=null;for(let e=0;e<t;++e){let[t]=(0,r.s)(n(e,s)),[a]=(0,r.c)(d,t),u=t?a().data:r.U;if((0,r.i)(u))return I(l().data);i.push(u),s=u}return I(i)},[o,d,I,C]);return{size:C(),setSize:A,mutate:I,get data(){return w.data},get error(){return w.error},get isValidating(){return w.isValidating},get isLoading(){return w.isLoading}}});var o=e.i(41533),c=e.i(283653);e.s(["useServerPages",0,function(e){let n=e.size??o.PAGE_SIZE,{key:r}=e,{data:a,error:i,isLoading:l,isValidating:u,setSize:d,mutate:f}=s((e,t)=>(0,c.resolveKey)(r(e,t)),c.fetchRoute,{...c.READ_DEFAULTS,revalidateFirstPage:!1,...e.swr}),p=a??[],g=(0,t.useMemo)(()=>(a??[]).flat(),[a]),v=p.at(-1),b=void 0!==v&&v.length>=n,h=(0,t.useRef)(0),m=u&&p.length>0&&h.current>p.length,R=(0,t.useRef)({isValidating:u,setSize:d,pages:p.length});(0,t.useEffect)(()=>{R.current={isValidating:u,setSize:d,pages:p.length}});let E=(0,t.useCallback)(()=>f(),[f]),x=(0,c.resolveKey)(r(0,null)),y="string"==typeof x?x:x?.url;(0,t.useEffect)(()=>{if(y)return(0,c.registerPagedReader)({url:y,refresh:E})},[y,E]);let C=function(e,n={}){let{enabled:r=!0,margin:a="600px",revision:i}=n,l=(0,t.useRef)(e);l.current=e;let u=(0,t.useRef)(null),s=(0,t.useRef)(null),o=(0,t.useCallback)(e=>{u.current=e},[]);return(0,t.useEffect)(()=>{s.current?.disconnect();let e=u.current;if(e&&r)return s.current=new IntersectionObserver(([e])=>{e.isIntersecting&&l.current()},{root:function(e){let t=e.parentElement;for(;t;){let{overflowY:e}=getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null}(e),rootMargin:a}),s.current.observe(e),()=>s.current?.disconnect()},[r,a,i]),o}(()=>{let e=R.current;e.isValidating||(h.current=e.pages+1,e.setSize(e.pages+1))},{enabled:b,revision:`${p.length}:${u}`});return{items:g,isLoading:l,isLoadingMore:m,error:i,hasMore:b,sentinelRef:C,refresh:E}}],661504)},370359,405934,e=>{"use strict";let t="data-composite-item-active";e.s(["ACTIVE_COMPOSITE_ITEM",0,t],370359);var n=e.i(271645),r=e.i(956789),a=e.i(53687),i=e.i(667865),l=e.i(828918),u=e.i(146376),s=e.i(673327),o=e.i(621082),c=e.i(584446),d=e.i(838452),f=e.i(552245),p=e.i(872855),g=e.i(843476);e.s(["CompositeRoot",0,function(e){let{render:v,className:b,style:h,refs:m=r.EMPTY_ARRAY,props:R=r.EMPTY_ARRAY,state:E=r.EMPTY_OBJECT,stateAttributesMapping:x,highlightedIndex:y,onHighlightedIndexChange:C,orientation:S,grid:k,loopFocus:w,onLoop:I,enableHomeAndEndKeys:A,onMapChange:T,stopEventPropagation:L=!0,rootRef:M,disabledIndices:O,modifierKeys:_,highlightItemOnHover:D=!1,tag:P="div",...N}=e,{props:z,highlightedIndex:j,onHighlightedIndexChange:H,elementsRef:W,onMapChange:V,relayKeyboardEvent:B}=function(e){let{loopFocus:a=!0,orientation:d="both",grid:f,onLoop:p,direction:g,highlightedIndex:v,onHighlightedIndexChange:b,rootRef:h,enableHomeAndEndKeys:m=!1,stopEventPropagation:R,disabledIndices:E,modifierKeys:x=r.EMPTY_ARRAY}=e,[y,C]=n.useState(0),S=null!=f,k=n.useRef(null),w=(0,l.useMergedRefs)(k,h),I=n.useRef([]),A=n.useRef(!1),T=n.useRef(null),L=v??y,M=(0,i.useStableCallback)((e,t=!1)=>{if(T.current=I.current[e]??null,(b??C)(e),t){let t=I.current[e];(0,s.scrollIntoViewIfNeeded)(k.current,t,g,d)}}),O=(0,i.useStableCallback)(e=>{if(0===e.size)return;if(A.current){let e=I.current,n=e.indexOf(T.current);if(-1===n){let n=e[L];!n||(0,o.isListIndexDisabled)(e,L,E)?M(function(e,n){let r=-1;for(let a=0;a<e.length;a+=1){let i=e[a];if(!(!i||(0,o.isListIndexDisabled)(e,a,n))){if(i.hasAttribute(t))return a;-1===r&&(r=a)}}return Math.max(r,0)}(e,E)):T.current=n}else n!==L&&M(n);return}A.current=!0;let n=Array.from(e.keys()),r=n.find(e=>e?.hasAttribute(t))??null,a=r?e.get(r)?.index??-1:-1;if(-1!==a)M(a);else if((0,o.isListIndexDisabled)(n,L,E)){let e=(0,o.findNonDisabledListIndex)(n,{disabledIndices:E});(0,o.isIndexOutOfListBounds)(n,e)||M(e)}(0,s.scrollIntoViewIfNeeded)(k.current,r,g,d)});(0,u.useIsoLayoutEffect)(()=>{if(null==E||null!=v||!A.current)return;let e=I.current;if((0,o.isListIndexDisabled)(e,L,E)){let t=(0,o.findNonDisabledListIndex)(e,{disabledIndices:E});(0,o.isIndexOutOfListBounds)(e,t)||M(t)}},[E,v,L,I,M]);let _=(0,i.useStableCallback)((e,t,n)=>p?p(e,t,n,I):n),D=(0,i.useStableCallback)(e=>{let t=e.key===s.HOME||e.key===s.END;if(!s.COMPOSITE_KEYS.has(e.key)||!m&&t||function(e,t){for(let n of s.MODIFIER_KEYS)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,x)||!k.current)return;let n="rtl"===g,r=n?s.ARROW_LEFT:s.ARROW_RIGHT,i=n?s.ARROW_RIGHT:s.ARROW_LEFT,l="vertical"===d?s.ARROW_DOWN:r,u="vertical"===d?s.ARROW_UP:i,v=(0,c.getTarget)(e.nativeEvent);if(null!=v&&(0,s.isNativeInput)(v)&&!(null==v||v.hasAttribute("disabled")||"true"===v.getAttribute("aria-disabled"))){let t=v.selectionStart,n=v.selectionEnd,r=v.value;if(null==t||e.shiftKey||t!==n||e.key!==u&&t<r.length||e.key!==l&&t>0)return}let b=L,h=(0,o.getMinListIndex)(I,E),y=(0,o.getMaxListIndex)(I,E);null!=f&&(b=f({disabledIndices:E,elementsRef:I,event:e,highlightedIndex:L,loopFocus:a,maxIndex:y,minIndex:h,onLoop:_,orientation:d,rtl:n}));let C="vertical"!==d&&e.key===r||"horizontal"!==d&&e.key===s.ARROW_DOWN,w="vertical"!==d&&e.key===i||"horizontal"!==d&&e.key===s.ARROW_UP;m&&(e.key===s.HOME?b=h:e.key===s.END&&(b=y)),b===L&&(C||w)&&(a&&b===y&&C?(b=h,p&&(b=p(e,L,b,I))):a&&b===h&&w?(b=y,p&&(b=p(e,L,b,I))):b=(0,o.findNonDisabledListIndex)(I.current,{startingIndex:b,decrement:w,disabledIndices:E})),b===L||(0,o.isIndexOutOfListBounds)(I.current,b)||(R&&e.stopPropagation(),(S||t||C||w)&&e.preventDefault(),M(b,!0),queueMicrotask(()=>{I.current[b]?.focus()}))});return{props:{ref:w,onFocus(e){let t=k.current,n=(0,c.getTarget)(e.nativeEvent);t&&null!=n&&(0,s.isNativeInput)(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:D},highlightedIndex:L,onHighlightedIndexChange:M,elementsRef:I,onMapChange:O,relayKeyboardEvent:D}}({grid:k,loopFocus:w,onLoop:I,orientation:S,highlightedIndex:y,onHighlightedIndexChange:C,rootRef:M,stopEventPropagation:L,enableHomeAndEndKeys:A,direction:(0,p.useDirection)(),disabledIndices:O,modifierKeys:_}),F=(0,f.useRenderElement)(P,e,{state:E,ref:m,props:[z,...R,N],stateAttributesMapping:x}),K=n.useMemo(()=>({highlightedIndex:j,onHighlightedIndexChange:H,highlightItemOnHover:D,relayKeyboardEvent:B}),[j,H,D,B]);return(0,g.jsx)(d.CompositeRootContext.Provider,{value:K,children:(0,g.jsx)(a.CompositeList,{elementsRef:W,onMapChange:e=>{T?.(e),V(e)},children:F})})}],405934)},652225,e=>{"use strict";e.i(247167);var t=e.i(271645),n=e.i(552245);let r=t.forwardRef(function(e,t){let{className:r,render:a,orientation:i="horizontal",style:l,...u}=e;return(0,n.useRenderElement)("div",e,{state:{orientation:i},ref:t,props:[{role:"separator","aria-orientation":i},u]})});e.s(["Separator",0,r])},96892,e=>{"use strict";var t=e.i(456420);let n={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};n.node;let r=(0,t.default)(n);e.s(["ArrowUp",0,r],96892)},632781,e=>{"use strict";var t=e.i(758379);e.s(["Loader2",()=>t.default])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,496336,e=>{"use strict";var t=e.i(843476),n=e.i(716327),a=e.i(271645),s=e.i(647163);e.s(["FoldedText",0,function({text:e,subject:r,clamp:i="line-clamp-3",tall:o="max-h-40",className:l}){let[d,c]=(0,a.useState)(!1),[u,m]=(0,a.useState)(!1),x=(0,a.useRef)(null),[p,b]=(0,a.useState)(e);return p!==e&&(b(e),c(!1)),(0,a.useEffect)(()=>{let e=x.current;e&&!d&&m(e.scrollHeight>e.clientHeight+1)},[d,e]),(0,t.jsxs)("div",{className:(0,s.cn)("flex items-start gap-1",l),children:[(0,t.jsx)("p",{ref:x,className:(0,s.cn)("min-w-0 flex-1 text-[13px] leading-snug break-keep wrap-anywhere",d?(0,s.cn)(o,"overflow-y-auto scrollbar-none"):i),children:e}),(u||d)&&(0,t.jsx)("button",{type:"button",onClick:()=>c(e=>!e),"aria-label":d?`Fold the ${r}`:`Read the whole ${r}`,className:"shrink-0 rounded-md p-0.5 opacity-60 outline-none transition-opacity hover:opacity-100 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(n.ChevronDown,{className:(0,s.cn)("size-3.5",d&&"rotate-180")})})]})}])},835878,e=>{"use strict";var t=e.i(843476),n=e.i(635963);e.s(["BotRoster",0,function({bots:e}){return e.length<2?null:(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5",title:e.map(e=>e.name).join(", "),children:[(0,t.jsx)("span",{className:"flex items-center gap-0.5",children:e.slice(0,3).map(e=>(0,t.jsx)(n.BotMark,{size:18,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"},e.name))}),(0,t.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground",children:[e.length," bots"]})]})}])},351866,e=>{"use strict";var t=e.i(843476),n=e.i(401851),a=e.i(689664),s=e.i(716327),r=e.i(24071),i=e.i(51481),o=e.i(508734),l=e.i(919191),d=e.i(632781),c=e.i(825398),u=e.i(263676),m=e.i(271645),x=e.i(815731),p=e.i(496336),b=e.i(683408),h=e.i(660302),f=e.i(127341),g=e.i(6799),k=e.i(95187);let j=(0,k.createServerReference)("7fa7094f780825c22fbc65937ce7579ed0bcfa6792",k.callServer,void 0,k.findSourceMapURL,"compactThreadAction");var v=e.i(807038),w=e.i(635963),y=e.i(256604),N=e.i(621285),S=e.i(245629),z=e.i(609856),T=e.i(647163),C=e.i(553429),_=e.i(978411),M=e.i(222055);function A({onClick:e}){return(0,t.jsx)("button",{type:"button",onClick:e,"aria-label":"Fold the room away",className:"grid size-7 shrink-0 place-items-center rounded-full bg-muted text-foreground outline-none transition-colors hover:bg-muted-foreground/20 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(u.X,{className:"size-3.5"})})}function B({thread:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(R,{thread:e}),(0,t.jsx)($,{thread:e}),(0,t.jsx)(q,{thread:e})]})}function R({thread:e}){let{contextTokens:n,tokens:a}=e;return n?(0,t.jsx)("span",{title:`Last step ${(0,T.formatCount)(n)} tokens \xb7 in total in ${(0,T.formatCount)(a.input)} \xb7 out ${(0,T.formatCount)(a.output)}`,className:"shrink-0 font-mono text-[10px] text-muted-foreground/70 tabular-nums",children:(0,T.formatCount)(n)}):null}function $({thread:e}){let{contextTokens:n,contextBudget:a}=e,[s,r]=(0,m.useState)(!1),[i,o]=(0,z.useServerAction)(j,{onOk:()=>r(!0)}),[l,d]=(0,m.useState)(n);if(l!==n&&(d(n),r(!1)),!n||!a)return null;let c=Math.min(1,n/a);return(0,t.jsx)("button",{type:"button",disabled:o||s,onClick:()=>void i(e.id,e.bot.name),title:s?"It summarizes itself at its next step":`Context ${(0,T.formatCount)(n)} of ${(0,T.formatCount)(a)} — it summarizes itself at the end of the bar. Press to have it do so at its next step`,"aria-label":"Summarize this thread's context at its next step",className:"-my-2 flex h-6 shrink-0 items-center rounded-sm outline-none focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-default",children:(0,t.jsx)("span",{className:"block h-[3px] w-9 overflow-hidden rounded-full bg-muted",children:(0,t.jsx)("span",{className:(0,T.cn)("block h-full rounded-full",s?"animate-pulse bg-muted-foreground/40":c>.9?"bg-amber-500/80":"bg-muted-foreground/70"),style:{width:`${Math.max(4,Math.round(100*c))}%`}})})})}let D={working:"text-muted-foreground",waiting:T.WAITING_INK,done:"text-foreground",cancelled:"text-muted-foreground"},I={working:"working",waiting:"waiting",done:"done",cancelled:"stopped"};function q({thread:e}){let n="done"===e.status&&e.seen?"text-muted-foreground":D[e.status];return"working"===e.status?(0,t.jsx)(h.ShinyText,{text:I.working,speed:2.2,className:"shrink-0 font-mono text-[10px]"}):(0,t.jsx)("span",{className:(0,T.cn)("flex shrink-0 items-center gap-1.5 font-mono text-[10px]",n),children:I[e.status]})}function F({thread:e,roster:n,side:a,onPick:s,className:r}){return(0,t.jsx)(f.Tabs,{value:a??e.bot.name,onValueChange:t=>s(t===e.bot.name?null:String(t)),className:(0,T.cn)("shrink-0 gap-0 px-3 pt-1 pb-0.5",r),children:(0,t.jsx)(f.TabsList,{className:"w-full justify-start gap-1 overflow-x-auto rounded-none bg-transparent p-0 scrollbar-none group-data-horizontal/tabs:h-auto",children:n.map(n=>{let a=O(e,n.name);return(0,t.jsxs)(f.TabsTrigger,{value:n.name,className:(0,T.cn)(L,"pl-1.5"),children:[(0,t.jsx)(w.BotMark,{size:16,seed:n.name,color:n.icon?.color,shape:n.icon?.shape,outline:n.icon?.outline,paint:n.icon?.paint,notify:"asking"===a,className:"shrink-0"}),(0,t.jsx)("span",{className:"max-w-28 truncate",children:n.name}),"running"===a&&(0,t.jsx)(d.Loader2,{className:"size-3 animate-spin text-muted-foreground/70"})]},n.name)})})})}let L="h-7 flex-none rounded-full px-3 py-0 text-[12px] text-muted-foreground hover:bg-muted/60 data-active:bg-muted data-active:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-none dark:data-active:border-transparent dark:data-active:bg-muted";function O(e,t){let{room:n}=e;return n.questions.some(e=>e.bot===t)?"asking":"working"===e.status&&n.participants.some(e=>e.bot===t&&"running"===e.state)?"running":null}function E({turn:e,thread:n,self:a}){let s=e.speaker.name===a,r=s?"none":e.speaker.name===W.name?"dark":"secondary",i=null;return(0,t.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 duration-300",children:(0,t.jsx)(ee,{side:s?"start":"end",name:e.speaker.name,mark:(0,t.jsx)(J,{bot:e.speaker}),children:e.entries.map(o=>{if("work"===o.kind)return s?(0,t.jsx)(H,{lines:o.lines,trailing:o.open,bot:e.speaker,thread:n},o.key):(0,t.jsx)(K,{lines:o.lines,trailing:o.open,bot:e.speaker,thread:n},o.key);let l=(0,_.heardBy)(o.line),d=l&&l.name!==e.speaker.name&&l.name!==a&&l.name!==W.name&&l.name!==i?l:null;return l&&(i=l.name),(0,t.jsx)(et,{line:o.line,surface:r,mention:d},o.key)})})})}function K({lines:e,trailing:n,bot:a,thread:s}){var r;let[i,o]=(0,m.useState)(!1),[l,c]=(0,m.useState)(null),u=n?O(s,a.name):null,x=(r=e,[["tool","step"],["say","note"],["stop","stop"],["note","compaction"]].map(([e,t])=>[r.filter(t=>t.kind===e).length,t]).filter(([e])=>e>0).map(([e,t])=>`${e} ${t}${1===e?"":"s"}`).join(" · ")),p=e.filter(e=>e.tool?.results!==void 0);if(!u&&!x)return null;let b=e.findLast(e=>"tool"===e.kind||"say"===e.kind),f=i&&e.length>0;return(0,t.jsxs)("div",{className:(0,T.cn)("flex min-w-0 flex-col rounded-2xl bg-muted/40 p-1",f?"w-full":"w-fit max-w-full"),children:[(0,t.jsxs)("button",{type:"button",disabled:!e.length,"aria-expanded":f,onClick:()=>{o(e=>!e),c(null)},className:"flex min-w-0 items-center gap-2 rounded-xl px-2.5 py-1.5 text-left outline-none transition-colors enabled:hover:bg-muted/60 focus-visible:ring-3 focus-visible:ring-ring/50",children:["running"===u&&(0,t.jsx)(d.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground/60"}),u?(0,t.jsx)(h.ShinyText,{text:"asking"===u?"waiting on you":b?V(b):"working",tone:"asking"===u?"waiting":"muted",speed:2.4,className:(0,T.cn)("min-w-0 truncate text-[12px] leading-4",f&&"flex-1")}):(0,t.jsx)(U,{words:b?V(b):"",facts:[x,function(e){let t=e.flatMap(e=>e.at?[(0,S.toDate)(e.at).getTime()]:[]);if(t.length<2)return"";let n=Math.round((Math.max(...t)-Math.min(...t))/1e3);if(n<1)return"";if(n<60)return`${n}s`;let a=Math.round(n/60);return a<60?`${a} min`:`${Math.floor(a/60)}h ${a%60}m`}(e)].filter(Boolean).join(" · "),grow:f}),e.length>0&&(0,t.jsx)(G,{open:f})]}),!f&&p.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-1 px-2 pt-0.5 pb-1.5",children:p.map(e=>e.tool&&(0,t.jsx)(M.StepTile,{tool:e.tool,onOpen:()=>{c(e.id),o(!0)}},e.id))}),f&&(0,t.jsx)("div",{className:"flex min-w-0 flex-col gap-0.5 pt-0.5",children:ec(e).map(e=>"tools"===e.kind?e.lines.map(e=>e.tool&&(0,t.jsx)(M.BotTool,{tool:e.tool,threadId:s.id,collapsed:e.id!==l},e.id)):"stops"===e.kind?(0,t.jsx)("div",{className:"px-1.5 py-1",children:(0,t.jsx)(el,{lines:e.lines})},e.key):e.lines.map(e=>(0,t.jsx)(ei,{line:e,inset:!0},e.id)))})]})}function H({lines:e,trailing:n,bot:a,thread:s}){let r=n?O(s,a.name):null,i=e.some(e=>e.tool&&void 0===e.tool.results);return(0,t.jsxs)(t.Fragment,{children:[ec(e).map(e=>"tools"===e.kind?(0,t.jsx)(P,{lines:e.lines,threadId:s.id},e.key):"stops"===e.kind?(0,t.jsx)(el,{lines:e.lines},e.key):e.lines.map(e=>(0,t.jsx)(ei,{line:e},e.id))),r&&!i&&(0,t.jsx)(h.ShinyText,{text:"asking"===r?"waiting on you":"on the next step…",tone:"asking"===r?"waiting":"muted",speed:2.2,className:"block px-1 font-mono text-[10px]"})]})}function P({lines:e,threadId:n}){return(0,t.jsx)("div",{className:"flex w-full flex-col gap-0.5 rounded-2xl bg-muted/40 p-1",children:e.map(e=>e.tool&&(0,t.jsx)(M.BotTool,{tool:e.tool,threadId:n,collapsed:!0},e.id))})}function U({words:e,facts:n,grow:a=!1}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,T.cn)("min-w-0 truncate text-[12.5px] leading-5 text-foreground/80",a&&"flex-1"),children:e}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] leading-4 text-muted-foreground",children:n})]})}function G({open:e}){return(0,t.jsx)("span",{className:"grid size-5.5 shrink-0 place-items-center rounded-md bg-background text-muted-foreground ring-1 ring-border/60",children:(0,t.jsx)(s.ChevronDown,{className:(0,T.cn)("size-3.5 transition-transform",e&&"rotate-180")})})}function V(e){return"tool"===e.kind&&e.tool?e.tool.note??`${e.tool.name} \xb7 ${e.tool.input}`:(0,T.plainText)(e.text).replace(/\s+/g," ").trim()}function Q({thread:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(X,{from:W,to:e.bot}),(0,t.jsx)(ee,{side:"end",name:W.name,mark:(0,t.jsx)(J,{bot:W}),children:(0,t.jsx)(Z,{dark:!0,className:"py-2 pr-2 pl-3.5",children:(0,t.jsx)(p.FoldedText,{text:e.request,subject:"request",className:"wrap-anywhere"})})})]})}let W={name:C.ROOM_THURSDAY};function X({from:e,to:n}){return(0,t.jsx)("div",{className:"flex animate-in justify-center fade-in duration-300",children:(0,t.jsxs)("span",{className:"flex max-w-full items-center gap-1.5 rounded-full bg-muted px-2.5 py-1 font-mono text-[10px] text-muted-foreground",children:[(0,t.jsx)(Y,{bot:e}),(0,t.jsx)("span",{className:"shrink-0 text-muted-foreground/70",children:"invited"}),(0,t.jsx)(Y,{bot:n})]})})}function Y({bot:e}){return(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[e.name===W.name?(0,t.jsx)(y.ThursdayMark,{size:15,className:"shrink-0"}):(0,t.jsx)(w.BotMark,{size:15,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]})}function J({bot:e}){return e.name===W.name?(0,t.jsx)(y.ThursdayMark,{size:26,className:"mt-1 shrink-0"}):(0,t.jsx)(w.BotMark,{size:26,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"mt-1 shrink-0"})}function Z({dark:e=!1,children:n,className:a}){return(0,t.jsx)(x.Bubble,{align:"end",variant:e?"default":"secondary",className:"max-w-full",children:(0,t.jsx)(x.BubbleContent,{className:(0,T.cn)("rounded-tr-md px-3.5",a),children:(0,t.jsx)("div",{className:(0,T.cn)("min-w-0",e&&"inverse"),children:n})})})}function ee({side:e,mark:n,name:a,children:s}){return(0,t.jsxs)("div",{className:(0,T.cn)("flex gap-2.5","end"===e&&"flex-row-reverse"),children:[n,(0,t.jsxs)("div",{className:(0,T.cn)("flex min-w-0 flex-1 flex-col gap-1.5 [&>*+*]:max-w-[80%]","end"===e&&"items-end"),children:[(0,t.jsx)("p",{className:"max-w-[80%] truncate px-1 font-mono text-[10px] text-muted-foreground",children:a}),s]})]})}function et({line:e,surface:n,mention:a}){let s=!!e.question,r="result"===e.kind,i="none"!==n,o=(0,v.shortenPaths)(e.text),d=(0,t.jsxs)(t.Fragment,{children:[s&&(0,t.jsx)(er,{}),a?(0,t.jsx)(es,{bot:a,bubble:i,children:o}):(0,t.jsx)(en,{bubble:i,className:(0,T.cn)(!r&&"leading-snug"),children:o}),(0,t.jsx)(v.Attachments,{text:e.text,onBubble:i,className:"mt-2"})]});return(0,t.jsxs)(t.Fragment,{children:[i?(0,t.jsx)(Z,{dark:"dark"===n,children:d}):(0,t.jsx)("div",{className:"min-w-0 max-w-full px-1",children:d}),e.steppedIn&&(0,t.jsxs)("p",{className:"flex items-center gap-1 px-1 font-mono text-[10px] text-muted-foreground",children:[(0,t.jsx)(l.CornerDownLeft,{className:"size-2.5"}),"stepped in"]}),r&&(0,t.jsx)("div",{className:"flex px-1",children:(0,t.jsx)(eo,{text:e.text})})]})}function en({children:e,bubble:n=!1,className:a}){return(0,t.jsx)(b.Markdown,{className:(0,T.cn)("min-w-0 max-w-full text-[13px] leading-relaxed wrap-anywhere break-keep [&_h1]:text-[15px] [&_h2]:text-[14px] [&_h3]:text-[13px] [&_h3]:font-semibold [&_li]:my-0.5 [&_table]:text-[12px] [&_table]:wrap-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",n&&"[&_[data-streamdown=inline-code]]:text-[12px] [&_[data-streamdown=code-block]]:my-2 [&_[data-streamdown=code-block]]:gap-0 [&_[data-streamdown=code-block]]:rounded-[10px] [&_[data-streamdown=code-block]]:border-0 [&_[data-streamdown=code-block]]:bg-background [&_[data-streamdown=code-block]]:p-0 [&_[data-streamdown=code-block-header]]:h-7 [&_[data-streamdown=code-block-header]]:px-2.5 [&_[data-streamdown=code-block-header]]:text-[11px] [&_[data-streamdown=code-block-body]]:border-0 [&_[data-streamdown=code-block-body]]:bg-transparent! [&_[data-streamdown=code-block-body]]:px-2.5 [&_[data-streamdown=code-block-body]]:pt-0 [&_[data-streamdown=code-block-body]]:pb-2.5 [&_[data-streamdown=code-block-body]]:text-[12.5px] [&_[data-streamdown=code-block]_div:has(>[data-streamdown=code-block-actions])]:-mt-7 [&_[data-streamdown=code-block-actions]]:mr-1 [&_[data-streamdown=code-block-actions]]:border-0 [&_[data-streamdown=code-block-actions]]:bg-transparent!",a),children:e})}function ea({bot:e,bubble:n}){return(0,t.jsxs)("span",{className:(0,T.cn)("mr-1.5 inline-flex h-5 max-w-full items-center gap-1 rounded-full pr-2 pl-[3px] align-[-4px] text-[12px] leading-none font-medium whitespace-nowrap text-foreground",n?"bg-background":"bg-muted"),children:[(0,t.jsx)(w.BotMark,{size:14,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]})}function es({bot:e,bubble:n,children:a}){return(0,t.jsxs)("div",{className:"min-w-0 max-w-full text-[13px] leading-snug",children:[(0,t.jsx)(ea,{bot:e,bubble:n}),(0,t.jsx)(en,{bubble:n,className:"contents leading-snug [&>p:first-child]:inline",children:a})]})}function er(){return(0,t.jsxs)("p",{className:"mb-1 flex items-center gap-1.5 text-[12px] leading-4 font-medium text-muted-foreground",children:[(0,t.jsx)(i.CircleQuestionMark,{className:"size-3.5 shrink-0"}),"Question"]})}function ei({line:e,inset:n=!1}){return"note"===e.kind?(0,t.jsxs)("details",{className:"w-full px-2 py-1 text-muted-foreground",children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-2.5 outline-none [&::-webkit-details-marker]:hidden",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),(0,t.jsx)("span",{className:"min-w-0 text-center font-mono text-[10px]",children:"Compacted — it goes on from its summary"}),(0,t.jsx)("span",{className:"h-px flex-1 bg-border"})]}),(0,t.jsx)(en,{className:"mt-2 rounded-xl bg-muted/40 px-3 py-2 text-[11px]",children:e.text})]}):(0,t.jsx)(en,{className:(0,T.cn)("text-[12.5px] text-muted-foreground",n?"px-2.5 py-1":"px-1"),children:e.text})}function eo({text:e}){let[n,s]=(0,m.useState)(!1),r=(0,m.useRef)(null);return(0,m.useEffect)(()=>()=>{r.current&&clearTimeout(r.current)},[]),(0,t.jsx)("button",{type:"button","aria-label":"Copy the answer",onClick:async()=>{try{await navigator.clipboard.writeText(e),s(!0),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>s(!1),1400)}catch(e){g.toast.add({type:"error",title:"Could not copy the answer",description:(0,T.errorToString)(e)})}},className:"grid size-5 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:n?(0,t.jsx)(a.Check,{className:"size-3"}):(0,t.jsx)(o.Copy,{className:"size-3"})})}function el({lines:e}){return(0,t.jsxs)("details",{className:"group min-w-0 px-1 text-muted-foreground",children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 text-[12.5px] leading-relaxed outline-none [&::-webkit-details-marker]:hidden",children:[(0,t.jsx)(c.RotateCw,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:ed(e[0].text)}),e.length>1&&(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/70",children:["×",e.length]}),(0,t.jsx)(s.ChevronDown,{className:"size-2.5 shrink-0 text-muted-foreground/70 transition-transform group-open:rotate-180"})]}),(0,t.jsx)("div",{className:"mt-1 space-y-1 pl-4.5 text-[11px] leading-relaxed",children:e.map(e=>(0,t.jsxs)("p",{className:"flex gap-2 break-keep wrap-anywhere",children:[e.at&&(0,t.jsx)("span",{className:"shrink-0 font-mono text-muted-foreground/70 tabular-nums",children:(0,n.format)((0,S.toDate)(e.at),"HH:mm:ss")}),(0,t.jsx)("span",{className:"min-w-0",children:e.text})]},e.id))})]})}let ed=e=>e.split(" (")[0].replace(/\.$/,"");function ec(e){let t=[];for(let n of e){let e="tool"===n.kind&&n.tool?"tools":"stop"===n.kind?"stops":"said",a=t.at(-1),s=a?.kind===e&&("stops"!==e||ed(a.lines[0].text)===ed(n.text));a&&s?a.lines.push(n):t.push({kind:e,key:n.id,lines:[n]})}return t}e.s(["Conversation",0,function({thread:e,tab:n=null,onTab:a,className:s,tabsClassName:r}){let i,o=(0,m.useRef)(null),l=(0,m.useRef)(!0),d=e.roster,c=a&&n!==e.bot.name&&d.some(e=>e.name===n)?n:null,u=c??e.bot.name,x=d.filter(t=>(!c||t.name===c)&&O(e,t.name)),p=(0,_.threadItems)((i=new Set(e.room.questions.map(e=>e.id))).size?{...e,lines:e.lines.filter(e=>!("ask"===e.kind&&void 0!==e.questionId&&i.has(e.questionId)))}:e,u,x);return(0,m.useEffect)(()=>{l.current=!0},[e.id,c]),(0,m.useEffect)(()=>{let e=o.current;e&&l.current&&(e.scrollTop=e.scrollHeight)},[e.lines,e.status,c]),(0,m.useEffect)(()=>{let e=o.current;if(!e)return;let t=new ResizeObserver(()=>{l.current&&(e.scrollTop=e.scrollHeight)});for(let n of Array.from(e.children))t.observe(n);return()=>t.disconnect()},[p.length,e.lines,c]),(0,t.jsxs)(N.FileViewer,{children:[a&&(0,t.jsx)(F,{thread:e,roster:d,side:c,onPick:a,className:r}),(0,t.jsxs)("div",{ref:o,onScroll:e=>{let t=e.currentTarget;l.current=t.scrollHeight-t.scrollTop-t.clientHeight<24},className:(0,T.cn)("min-w-0 max-h-[64vh] space-y-3 overflow-y-auto px-4 pt-6 pb-4 mask-[linear-gradient(to_bottom,transparent,black_2rem)] scrollbar-none",s),children:[!c&&(0,t.jsx)(Q,{thread:e}),p.map(n=>"invite"===n.kind?(0,t.jsx)(X,{from:n.from,to:n.to},n.key):(0,t.jsx)(E,{turn:n,thread:e,self:u},n.key))]})]})},"FoldButton",0,A,"TAB",0,L,"THURSDAY",0,W,"ThreadFacts",0,B,"ThreadHeader",0,function({thread:e,onBack:n,onClose:a}){return(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-3 pb-1",children:[(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":"Back to the list",className:"shrink-0 rounded-md p-1 text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(r.ChevronLeft,{className:"size-4"})}),(0,t.jsx)(w.BotMark,{size:22,seed:e.bot.name,color:e.bot.icon?.color,shape:e.bot.icon?.shape,outline:e.bot.icon?.outline,paint:e.bot.icon?.paint,notify:!1}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium",children:e.label}),(0,t.jsx)(B,{thread:e}),(0,t.jsx)(A,{onClick:a})]})},"leadOf",0,ed,"stepOf",0,V],351866)},399512,709190,e=>{"use strict";var t=e.i(843476),n=e.i(96892),a=e.i(716327),s=e.i(24071),r=e.i(867927),i=e.i(931619),o=e.i(919191),l=e.i(632781),d=e.i(64801),c=e.i(929272),u=e.i(263676),m=e.i(271645),x=e.i(798120),p=e.i(167881),b=e.i(463415),h=e.i(496336),f=e.i(683408),g=e.i(660302),k=e.i(184762),j=e.i(293735),v=e.i(856338),w=e.i(95187);let y=(0,w.createServerReference)("7ffe5d1e95a7f1d2943c4521e56ffb54e27e063552",w.callServer,void 0,w.findSourceMapURL,"withdrawStepInAction");var N=e.i(451888),S=e.i(635963),z=e.i(978411),T=e.i(609856),C=e.i(283653),_=e.i(475005);function M({bot:e,onAllowed:n}){let{data:a}=(0,C.useServerRoute)(x.queryKey.signIns),[s,r]=(0,T.useServerAction)(_.setSignInBotAction,{onOk:()=>(0,C.revalidate)(x.queryKey.signIns)}),i=(a??[]).filter(t=>t.asking.includes(e));return i.length?(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:i.map(a=>(0,t.jsxs)(p.Button,{type:"button",size:"sm",loading:r,onClick:()=>void s(a.site,e,!0).then(()=>n(`Yes — you may use my ${a.site} sign-in.`)).catch(()=>{}),children:["Let ",e," use ",a.site," (",a.account,")"]},a.site))}):null}var A=e.i(6799),B=e.i(41533),R=e.i(83928);let $=(0,w.createServerReference)("7fba562e17a4d30d1bb61b1309cdab438ecaff153f",w.callServer,void 0,w.findSourceMapURL,"giveFilesAction");var D=e.i(647163);function I(e){let t=(0,m.useRef)(e?.onKept);t.current=e?.onKept;let[n,a]=(0,m.useState)([]),[s]=(0,T.useServerAction)($),r=(0,m.useCallback)(async e=>{let r=B.GIVEN_FILES.perMessage-n.length;e.length>r&&A.toast.add({type:"error",title:`At most ${B.GIVEN_FILES.perMessage} files at a time.`});let i=e.slice(0,Math.max(0,r));if(!i.length)return;let o=i.map(e=>({key:crypto.randomUUID(),name:e.name,bytes:e.size,path:null}));a(e=>[...e,...o]);let l=new FormData;for(let e of i)l.append("file",e);try{let e=await s(l),n=t.current?.(e);a(t=>t.map(t=>{let a=o.findIndex(e=>e.key===t.key);return a<0?t:{...t,path:e[a]??null,note:n}}))}catch{a(e=>e.filter(e=>!o.some(t=>t.key===e.key)))}},[n.length,s]);return{files:n,take:r,remove:e=>a(t=>t.filter(t=>t.key!==e)),clear:()=>a([]),arriving:n.some(e=>null===e.path),withPaths:e=>[e.trim(),...n.flatMap(e=>e.path??[])].filter(Boolean).join("\n")}}function q({files:e,onRemove:n,dense:a=!1,children:s,className:r}){let i=a?"size-8 rounded-lg":"size-10 rounded-[9px]";return(0,t.jsxs)("div",{className:(0,D.cn)("flex flex-wrap gap-1.5",r),children:[e.map(e=>(0,t.jsxs)("span",{className:(0,D.cn)("flex max-w-64 items-center bg-muted/70",a?"h-10.5 gap-2 rounded-xl py-1 pr-1.5 pl-1":"h-13 gap-2.5 rounded-[14px] py-1.5 pr-2 pl-1.5"),children:[e.path?(0,t.jsx)(R.FileThumb,{path:e.path,bytes:e.bytes,className:(0,D.cn)("shrink-0 overflow-hidden ring-1 ring-foreground/6",i)}):(0,t.jsx)("span",{className:(0,D.cn)("grid shrink-0 place-items-center bg-background text-muted-foreground ring-1 ring-foreground/6",i),children:(0,t.jsx)(l.Loader2,{className:"size-3.5 animate-spin"})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,t.jsx)("span",{className:(0,D.cn)("truncate",a?"text-xs leading-4":"text-[12.5px] leading-4.5"),children:e.name}),(0,t.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[O(e.bytes),e.note&&` \xb7 ${e.note}`]})]}),(0,t.jsx)("button",{type:"button","aria-label":`Take ${e.name} out`,onClick:()=>n(e.key),className:"grid size-5 shrink-0 place-items-center rounded-full text-muted-foreground outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(u.X,{className:"size-3.5"})})]},e.key)),s]})}let F=null,L={claim:e=>(F=e,()=>{F===e&&(F=null)}),offer:(e,t)=>!!F&&!!e?.closest?.("[data-room]")&&(F(t),!0)},O=e=>e<1048576?`${Math.max(1,Math.round(e/1024))} KB`:`${(e/1024/1024).toFixed(1)} MB`;e.s(["GivenFiles",0,q,"roomDrop",0,L,"useGivenFiles",0,I],709190);var E=e.i(319841);function K({className:e,children:n}){return(0,t.jsx)("div",{className:(0,D.cn)("flex min-w-0 flex-col gap-2.5 rounded-[18px] bg-muted py-2 pr-2 pl-3.5",e),children:n})}function H({bot:e,word:n,children:a}){return(0,t.jsxs)("div",{className:"flex min-h-7 min-w-0 items-center gap-1.5",children:[(0,t.jsx)("span",{title:e.name,className:"shrink-0 leading-none",children:(0,t.jsx)(V,{bot:e,size:16})}),(0,t.jsx)("span",{className:(0,D.cn)("truncate text-[12px] leading-4 font-medium",D.WAITING_INK),children:n}),a]})}function P({options:e,picked:n,busy:a,onChoose:s}){return(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.map(e=>(0,t.jsxs)(p.Button,{type:"button",size:"sm",variant:"ghost",loading:n===e,disabled:a,onClick:()=>s(e),className:"h-7 gap-1.5 rounded-full bg-background px-3 text-[12.5px] hover:bg-background/60 dark:hover:bg-background/60",children:[e===N.THREAD_CONTINUE&&n!==e&&(0,t.jsx)(i.ChevronsRight,{className:"size-3.5 text-muted-foreground"}),e]},e))})}function U({threadId:e,recipient:a,draftKey:s,send:r,busy:i,placeholder:o,label:c,autoFocus:u=!1,onEscape:x,leading:b,trailing:h,className:f}){let[g,j]=(0,m.useState)(()=>z.threadDrafts.get(e,a,s)),[v,w]=(0,m.useState)(!1),y=t=>{j(t),z.threadDrafts.set(e,a,t,s)},N=I(),S=(0,m.useRef)(null),{take:T}=N;(0,m.useEffect)(()=>L.claim(e=>void T(e)),[T]);let C=!!g.trim()&&!i&&!N.arriving,_=async()=>{C&&(w(!0),await r(N.withPaths(g))&&(y(""),N.clear()),w(!1))};return(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),_()},className:(0,D.cn)("flex min-w-0 flex-wrap items-end gap-1",f),children:[N.files.length>0&&(0,t.jsx)(q,{dense:!0,files:N.files,onRemove:N.remove,className:"w-full pb-1"}),b,(0,t.jsx)(k.Textarea,{value:g,rows:1,readOnly:i,"aria-busy":i,autoFocus:u,onChange:e=>y(e.target.value),onPaste:e=>{let t=[...e.clipboardData.files];t.length&&(e.preventDefault(),T(t))},onKeyDown:e=>{let t=(0,E.composing)(e);if("Escape"===e.key&&x&&!t){e.preventDefault(),x();return}"Enter"!==e.key||e.shiftKey||t||(e.preventDefault(),_())},placeholder:o,"aria-label":c,className:"max-h-32 min-h-0 min-w-0 flex-1 resize-none border-0 bg-transparent px-0 py-1 text-[13px] leading-5 shadow-none focus-visible:ring-0 dark:bg-transparent"}),(0,t.jsx)("input",{ref:S,type:"file",multiple:!0,hidden:!0,onChange:e=>{T([...e.target.files??[]]),e.target.value=""}}),(0,t.jsx)(p.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:i,"aria-label":"Add files",onClick:()=>S.current?.click(),className:"rounded-full text-muted-foreground",children:(0,t.jsx)(d.Paperclip,{})}),h,(0,t.jsx)(p.Button,{type:"submit",size:"icon-sm",variant:C?"default":"ghost",disabled:!C,"aria-label":"Send",className:"rounded-full",children:v?(0,t.jsx)(l.Loader2,{className:"animate-spin"}):(0,t.jsx)(n.ArrowUp,{})})]})}function G({current:e,bots:n,disabled:s,onPick:r}){return(0,t.jsxs)(b.DropdownMenu,{children:[(0,t.jsxs)(b.DropdownMenuTrigger,{render:(0,t.jsx)("button",{type:"button",disabled:s,"aria-label":`Message ${e.name}; choose another bot`,className:"mt-1 inline-flex h-5 shrink-0 items-center gap-1 self-start rounded-full bg-muted pr-1.5 pl-[3px] text-[12px] leading-none font-medium outline-none transition-colors hover:bg-muted-foreground/15 focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50"}),children:[(0,t.jsx)("span",{className:"pl-1 text-muted-foreground",children:"To"}),(0,t.jsx)(V,{bot:e,size:14}),(0,t.jsx)("span",{className:"max-w-32 truncate",children:e.name}),(0,t.jsx)(a.ChevronDown,{className:"size-3 shrink-0 text-muted-foreground"})]}),(0,t.jsx)(b.DropdownMenuContent,{align:"start",children:(0,t.jsx)(b.DropdownMenuGroup,{children:n.map(e=>(0,t.jsxs)(b.DropdownMenuItem,{onClick:()=>r(e.name),children:[(0,t.jsx)(V,{bot:e,size:16}),e.name]},e.name))})})]})}function V({bot:e,size:n}){return(0,t.jsx)(S.BotMark,{size:n,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"})}function Q(){let[e,t]=(0,T.useServerAction)(j.answerThreadAction,{onOk:()=>(0,C.revalidate)(x.queryKey.threads)});return[async(t,n,a,s)=>{let r=n.trim();if(!r)return!1;try{let n=await e(t.id,r,a,s);return z.screenActs.announce({kind:"answered",id:n.id,label:n.label,answer:r,recipient:a,replyTo:s}),!0}catch{return!1}},t]}e.s(["ThreadReply",0,function({thread:e,status:n,faces:a=[],to:i=null,className:d}){let[b,k]=(0,m.useState)(),[j,w]=(0,m.useState)(()=>z.threadDrafts.recipient(e.id)??e.bot),[S,_]=(0,m.useState)(!1),[A,B]=(0,m.useState)(null),[R,$]=(0,m.useState)({id:e.id,bot:e.bot});(R.id!==e.id||R.bot!==e.bot)&&($({id:e.id,bot:e.bot}),w(z.threadDrafts.recipient(e.id)??e.bot),k(void 0),_(!1)),(0,m.useEffect)(()=>{i&&(z.threadDrafts.select(e.id,i),w(i))},[e.id,i]);let I=e.room.participants,q=e.room.questions,F=Math.max(0,q.findIndex(e=>e.id===b)),L=q[F],O="waiting"===n?e.ask:null,E=(0,N.isAppStop)(O),V=L?.bot??(I.some(e=>e.bot===j)?j:e.bot),W=L?.id,[X,Y]=Q(),[J,Z]=(0,T.useServerAction)(v.cancelThreadAction,{onOk:e=>{(0,C.revalidate)(x.queryKey.threads),z.screenActs.announce({kind:"stopped",id:e.id,label:e.label})}}),ee=Y||Z,et=e.room.deliveries.filter(e=>!e.delivered),[en,ea]=(0,T.useServerAction)(y,{onOk:()=>(0,C.revalidate)(x.queryKey.threads)}),es=et.map(e=>`${e.bot}: ${e.text}`).join(" · "),er=I.filter(e=>"running"===e.state).map(e=>e.bot),ei=er.join(", ")||e.bot,eo="running"===n&&I.some(e=>e.bot===V&&("running"===e.state||"queued"===e.state)),el="running"===n&&!eo,ed=V!==e.bot,ec=e=>a.find(t=>t.name===e)??{name:e},eu=async t=>{if(ee)return!1;let n=await X(e,t,V,W);return n&&eo&&_(!1),n},em=async e=>{B(e),await eu(e),B(null)},ex=(a=!1)=>"running"===n||"waiting"===n?(0,t.jsxs)(p.Button,{type:"button",size:"sm",variant:"ghost",loading:Z,disabled:ee,onClick:()=>J(e.id),"aria-label":"Stop this thread",className:(0,D.cn)("h-7 shrink-0 gap-1.5 rounded-full px-2.5 text-[12px]",a&&"bg-background px-3 hover:bg-background/60 dark:hover:bg-background/60"),children:[!Z&&(0,t.jsx)(c.Square,{className:"size-2.5 fill-current"}),"Stop"]}):null;if(L){let n=L.options??[],a=L.text;return(0,t.jsxs)(K,{className:d,children:[(0,t.jsx)(H,{bot:ec(V),word:"Question",children:(0,t.jsxs)("span",{className:"ml-auto flex shrink-0 items-center gap-1.5",children:[q.length>1&&(0,t.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Previous question",disabled:ee||0===F,onClick:()=>k(q[F-1].id),children:(0,t.jsx)(s.ChevronLeft,{})}),(0,t.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground tabular-nums","aria-live":"polite",children:[F+1," / ",q.length]}),(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Next question",disabled:ee||F===q.length-1,onClick:()=>k(q[F+1].id),children:(0,t.jsx)(r.ChevronRight,{})})]}),ex(!0)]})}),a&&(0,t.jsx)("div",{className:"max-h-[min(14rem,30vh)] min-w-0 overflow-y-auto overscroll-contain pr-1.5",children:(0,t.jsx)(f.Markdown,{className:"min-w-0 text-[13px] leading-snug wrap-anywhere break-keep [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:a})}),n.length>0&&(0,t.jsx)(P,{options:n,picked:A,busy:ee,onChoose:em}),(0,t.jsx)(M,{bot:V,onAllowed:eu}),(0,t.jsx)(U,{threadId:e.id,recipient:V,draftKey:L.id,send:eu,busy:ee,placeholder:n.length?"Or write your own answer…":"Your answer…",label:`Answer for ${V}`},JSON.stringify([e.id,V,L.id]))]})}return E?(0,t.jsxs)(K,{className:d,children:[(0,t.jsx)(H,{bot:ec(e.bot),word:"Paused",children:(0,t.jsx)("span",{className:"ml-auto flex shrink-0",children:ex(!0)})}),O?.question&&(0,t.jsx)(h.FoldedText,{text:O.question,subject:"message",clamp:"line-clamp-3",tall:"max-h-40"}),(0,t.jsx)(P,{options:O?.options.length?O.options:[N.THREAD_CONTINUE],picked:A,busy:ee,onChoose:em}),(0,t.jsx)(U,{threadId:e.id,recipient:V,send:eu,busy:ee,placeholder:"Or put it another way…",label:`Message for ${V}`},JSON.stringify([e.id,V,"paused"]))]}):eo&&!S?(0,t.jsxs)("div",{className:(0,D.cn)("flex min-w-0 flex-col rounded-2xl bg-muted/40 ring-1 ring-border/50",d),children:[et.map(n=>(0,t.jsxs)("div",{className:"flex items-start gap-2 border-border/60 border-b py-2.5 pr-1.5 pl-3.5",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)("p",{className:"flex min-w-0 items-center gap-1.5 font-mono text-[10px] leading-4",children:[(0,t.jsx)(l.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"}),(0,t.jsx)(g.ShinyText,{text:`Step-in \xb7 waits for ${n.bot}'s next step`,speed:2.2,className:"min-w-0 truncate"})]}),(0,t.jsx)("p",{className:"whitespace-pre-wrap break-keep wrap-anywhere text-[13px] leading-snug",children:n.text})]}),(0,t.jsx)(p.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:ea,onClick:()=>en(e.id,n.id),"aria-label":"Take it back",className:"shrink-0 text-muted-foreground/60 hover:text-foreground",children:(0,t.jsx)(u.X,{})})]},n.id)),(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 py-1.5 pr-1.5 pl-3.5",children:[(0,t.jsx)(g.ShinyText,{text:`${ei} \xb7 Working`,speed:2.4,className:"min-w-0 flex-1 truncate text-[12.5px] leading-5 break-keep"}),(0,t.jsxs)(p.Button,{type:"button",size:"sm",variant:"ghost",disabled:ee,onClick:()=>_(!0),className:"h-7 shrink-0 gap-1.5 rounded-full px-2.5 text-[12px]",children:[(0,t.jsx)(o.CornerDownLeft,{className:"size-3.5"}),"Step in"]}),(0,t.jsx)("span",{className:"h-4 w-px shrink-0 bg-border"}),ex()]})]}):(0,t.jsxs)("div",{className:(0,D.cn)("flex min-w-0 flex-col gap-1.5",d),children:[el&&(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 pr-1.5 pl-3.5",children:[(0,t.jsxs)("p",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-[12.5px] leading-5",children:[(0,t.jsxs)("span",{className:"shrink-0 text-muted-foreground",children:[V," is idle"]}),er.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 text-muted-foreground/50",children:"·"}),(0,t.jsx)(g.ShinyText,{text:`${er.join(", ")} working`,speed:2.4,className:"min-w-0 truncate"})]})]}),(0,t.jsx)("span",{className:"h-4 w-px shrink-0 bg-border"}),ex()]}),(0,t.jsx)(U,{threadId:e.id,recipient:V,send:eu,busy:ee,autoFocus:eo,onEscape:eo?()=>_(!1):void 0,placeholder:eo?`What's off? ${V} reads this before its next step`:el?`Anything for ${V}? It starts again as soon as you send`:"Anything more? It picks up where it left off",label:`Message for ${V}`,className:"rounded-2xl bg-background py-1.5 pr-1.5 pl-3.5 ring-1 ring-border/80 transition-shadow focus-within:ring-ring/60",leading:I.length>1?(0,t.jsx)(G,{current:ec(V),bots:I.map(e=>ec(e.bot)),disabled:ee,onPick:t=>{z.threadDrafts.select(e.id,t),w(t)}}):null,trailing:eo?(0,t.jsx)(p.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:ee,onClick:()=>_(!1),"aria-label":"Never mind",className:"text-muted-foreground",children:(0,t.jsx)(u.X,{})}):null},JSON.stringify([e.id,V])),ed&&(0,t.jsxs)("p",{className:"min-w-0 truncate px-1 text-xs text-muted-foreground",children:[V,"’s answer goes back to ",e.bot]}),!!es&&!eo&&(0,t.jsxs)("p",{className:"flex min-w-0 items-center gap-2 px-1 text-xs text-muted-foreground",children:[(0,t.jsx)(l.Loader2,{className:"size-3 shrink-0 animate-spin"}),(0,t.jsxs)("span",{className:"truncate",children:["Sending to ",es]})]})]})},"useAnswerThread",0,Q],399512)},856338,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7f50f96a5538572061175821b10256cd5b16370232",t.callServer,void 0,t.findSourceMapURL,"cancelThreadAction");e.s(["cancelThreadAction",0,n])},293735,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7f45b5d03ffb69691b4a35892cf6f316f73e5d371e",t.callServer,void 0,t.findSourceMapURL,"answerThreadAction");e.s(["answerThreadAction",0,n])},931619,e=>{"use strict";var t=e.i(456420);let n={name:"chevrons-right",size:24,node:[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]};n.node;let a=(0,t.default)(n);e.s(["ChevronsRight",0,a],931619)},51481,e=>{"use strict";var t=e.i(456420);let n={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};n.node;let a=(0,t.default)(n);e.s(["CircleQuestionMark",0,a],51481)},919191,e=>{"use strict";var t=e.i(456420);let n={name:"corner-down-left",size:24,node:[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]]};n.node;let a=(0,t.default)(n);e.s(["CornerDownLeft",0,a],919191)},64801,e=>{"use strict";var t=e.i(456420);let n={name:"paperclip",size:24,node:[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]};n.node;let a=(0,t.default)(n);e.s(["Paperclip",0,a],64801)},825398,815731,e=>{"use strict";var t=e.i(456420);let n={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};n.node;let a=(0,t.default)(n);e.s(["RotateCw",0,a],825398);var s=e.i(843476),r=e.i(176782),i=e.i(552245),o=e.i(225913),l=e.i(647163);let d=(0,o.cva)("group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full",{variants:{variant:{default:"*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",secondary:"*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",muted:"*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",tinted:"*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",outline:"*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",ghost:"border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50",destructive:"*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"}},defaultVariants:{variant:"default"}});(0,o.cva)("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0",{variants:{side:{top:"top-0 -translate-y-3/4",bottom:"bottom-0 translate-y-3/4"},align:{start:"left-3",end:"right-3"}},defaultVariants:{side:"bottom",align:"end"}}),e.s(["Bubble",0,function({variant:e="default",align:t="start",className:n,...a}){return(0,s.jsx)("div",{"data-slot":"bubble","data-variant":e,"data-align":t,className:(0,l.cn)(d({variant:e}),n),...a})},"BubbleContent",0,function({className:e,render:t,...n}){var a;return a={defaultTagName:"div",props:(0,r.mergeProps)({className:(0,l.cn)("w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-left [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50",e)},n),render:t,state:{slot:"bubble-content"}},(0,i.useRenderElement)(a.defaultTagName??"div",a,a)}],815731)},929272,e=>{"use strict";var t=e.i(456420);let n={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};n.node;let a=(0,t.default)(n);e.s(["Square",0,a],929272)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94682,e=>{"use strict";var t=e.i(843476),n=e.i(24071),s=e.i(482022),r=e.i(569644),i=e.i(456420);let o={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]};o.node;let a=(0,i.default)(o);var l=e.i(759659),c=e.i(271645),d=e.i(798120),u=e.i(167881),f=e.i(917162),m=e.i(671428),h=e.i(41533),x=e.i(95187);let p=(0,x.createServerReference)("7fea6d23a7dab8c72ed2a5c075f724064f8a9ff379",x.callServer,void 0,x.findSourceMapURL,"deleteArtifactAction");var g=e.i(635963),b=e.i(895836),v=e.i(83928),j=e.i(621285),y=e.i(201830),k=e.i(245629),N=e.i(609856),w=e.i(283653),S=e.i(647163);function A(e){let t=new Map;for(let n of e){let e=t.get(n.bot)??[];e.push(n),t.set(n.bot,e)}return[...t].map(([e,t])=>({bot:e,rows:t}))}function C({label:e,mark:n,count:s,active:r,onPick:i}){return(0,t.jsxs)("button",{type:"button",onClick:i,className:(0,S.cn)("mx-2 flex h-9 items-center gap-2 rounded-md px-2 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",r?(0,S.cn)(b.PICKED_ROW,"font-medium"):"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[n??(0,t.jsx)(a,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] text-muted-foreground/70 tabular-nums",children:s})]})}function $({row:e,file:i,onOpen:o,onBack:a,onGone:c,onShelf:m}){let[h]=(0,N.useServerAction)(y.revealFileAction),[x,g]=(0,N.useServerAction)(p,{okMessage:"Deleted",onOk:()=>{(0,w.revalidate)(d.queryKey.artifacts),i?a():c()}}),b=i?{path:i.path,bytes:i.bytes,at:i.at}:"file"===e.kind?{path:e.path,bytes:e.bytes,at:e.at}:null,v=async e=>{await f.notify.confirm({title:`Delete ${e.split("/").pop()}?`,description:b?"It is deleted from disk for good.":"The folder and everything in it are deleted from disk for good.",okText:"Delete",destructive:!0})&&x(e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-3 border-b border-border/60 px-6",children:[(0,t.jsxs)("button",{type:"button",onClick:i?a:m,className:"-ml-1 flex shrink-0 items-center gap-1 rounded-md px-1.5 py-1 font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(n.ChevronLeft,{className:"size-3"}),i?e.name:"Shelf"]}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-foreground",children:b?b.path.split("/").pop()??e.name:e.name}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:b?`${(0,S.formatBytes)(b.bytes)} \xb7 ${(0,k.shortAgo)(b.at)}`:`${e.count} ${1===e.count?"file":"files"} \xb7 ${(0,k.shortAgo)(e.at)}`}),b&&(0,t.jsx)("a",{href:d.queryKey.fileView(b.path),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(s.ExternalLink,{className:"size-4"})}),(0,t.jsx)(u.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>h(b?.path??e.path),children:(0,t.jsx)(r.FolderOpen,{})}),(0,t.jsx)(u.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:g,className:"ml-1.5 text-muted-foreground hover:text-destructive",onClick:()=>v(b?.path??e.path),children:(0,t.jsx)(l.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:b?(0,t.jsx)(j.FilePreview,{path:b.path,bytes:b.bytes}):(0,t.jsx)(T,{path:e.path,onOpen:o})})]})}function T({path:e,onOpen:n}){let{data:s,isLoading:r,error:i}=(0,w.useServerRoute)(d.queryKey.artifactSet(e,h.ARTIFACT_VIEW.setFiles));if(r)return(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3 p-5",children:Array.from({length:8},(e,n)=>(0,t.jsx)(m.Skeleton,{className:"aspect-4/3 w-full rounded-xl"},n))});if(i)return(0,t.jsx)(b.SettingError,{message:i.message});let o=s?.files??[];return 0===o.length?(0,t.jsx)("p",{className:"p-5 text-xs text-muted-foreground/60",children:"Nothing in here the app can open."}):(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3",children:o.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>n(e),title:`${e.name} \xb7 ${(0,S.formatBytes)(e.bytes)}`,className:"flex flex-col gap-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-offset-2",children:[(0,t.jsx)(F,{file:e}),(0,t.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground",children:e.name})]},e.path))}),s&&s.total>o.length&&(0,t.jsx)("p",{className:"pt-4 font-mono text-[11px] text-muted-foreground/60",children:`${o.length} of ${s.total.toLocaleString("en")} — the rest are in the folder`})]})}function F({file:e}){return(0,t.jsx)(v.FileThumb,{path:e.path,bytes:e.bytes,glyph:"size-5",className:"aspect-4/3 w-full rounded-xl ring-1 ring-foreground/5 ring-inset"})}function z({entries:e,bots:n,onPick:s}){return(0,t.jsx)("div",{className:"space-y-7 p-6",children:A(e).map(({bot:e,rows:i})=>(0,t.jsxs)("section",{className:"space-y-3",children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 text-sm font-medium",children:[e&&(0,t.jsx)(g.BotMark,{size:20,seed:e,...(0,g.markOf)(e,n),notify:!1,className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e??"Unsorted"}),(0,t.jsx)("span",{className:"font-mono text-[11px] font-normal text-muted-foreground",children:i.length})]}),(0,t.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))] gap-x-4 gap-y-5",children:i.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>s(e),className:"group flex min-w-0 flex-col gap-1.5 rounded-xl text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:["set"===e.kind?(0,t.jsx)("span",{className:"grid aspect-4/3 w-full place-items-center rounded-xl bg-muted/60 text-muted-foreground transition-colors group-hover:bg-muted",children:(0,t.jsx)(r.FolderOpen,{className:"size-5"})}):(0,t.jsx)(v.FileThumb,{path:e.path,bytes:e.bytes,glyph:"size-5",className:"aspect-4/3 w-full rounded-xl ring-1 ring-foreground/5 ring-inset"}),(0,t.jsxs)("span",{className:"min-w-0 space-y-0.5 px-0.5",children:[(0,t.jsx)("span",{className:"block truncate text-[13px]",children:e.name}),(0,t.jsxs)("span",{className:"block truncate font-mono text-[10.5px] text-muted-foreground",children:["set"===e.kind?`${e.count} ${1===e.count?"file":"files"} \xb7 `:"",(0,k.shortAgo)(e.at)]})]})]},e.path))})]},e??""))})}function R({empty:e}){return(0,t.jsx)("div",{className:"p-8",children:(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:e?"Nothing finished yet. When a bot ends a job with something to hand over — a page, a report, a set of pictures — it lands here.":"Pick something on the left. Each bot's work is under its face; a folder it filled is one row, and opens as a sheet."})})}e.s(["ArtifactSetting",0,function(){let[e,n]=(0,c.useState)(null),[s,i]=(0,c.useState)(""),[o,a]=(0,c.useState)(void 0),[l,f]=(0,c.useState)(h.ARTIFACT_VIEW.rows),{data:m,isLoading:x,error:p}=(0,w.useServerRoute)(d.queryKey.artifactShelf(l),{keepPreviousData:!0}),{data:v}=(0,w.useServerRoute)(d.queryKey.bot),[j]=(0,N.useServerAction)(y.revealFileAction);if(x)return(0,t.jsx)(b.SettingPanesSkeleton,{});if(p)return(0,t.jsx)(b.SettingError,{message:p.message});let k=m?.entries??[],S=m?.total??0,T=s.trim().toLowerCase(),F=k.filter(e=>(void 0===o||e.bot===o)&&(!T||e.name.toLowerCase().includes(T)||e.bot?.toLowerCase().includes(T))),M=k.find(t=>t.path===e?.row.path)??e?.row;return(0,t.jsx)(b.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"finished"}),` \xb7 ${function(e,t,n){if(0===t)return"empty";let s=t>e.length?`${e.length} of ${t.toLocaleString("en")} results`:`${t} ${1===t?"result":"results"}`;return n>t?`${s} \xb7 ${n.toLocaleString("en")} files`:s}(k,S,m?.files??0)}`]})}),(0,t.jsxs)(u.Button,{variant:"outline",size:"sm",onClick:()=>j(h.PATHS.artifacts),children:[(0,t.jsx)(r.FolderOpen,{}),"Reveal folder"]})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(b.SettingFilter,{value:s,onChange:i,placeholder:"Filter files",className:"mx-2 mb-1.5 w-auto"}),(0,t.jsx)(C,{label:"Everyone",count:k.length,active:void 0===o,onPick:()=>{a(void 0),n(null)}}),A(k).map(({bot:e,rows:s})=>(0,t.jsx)(C,{label:e??"Unsorted",mark:e?(0,t.jsx)(g.BotMark,{size:18,seed:e,...(0,g.markOf)(e,v),notify:!1,className:"shrink-0"}):void 0,count:s.length,active:o===e,onPick:()=>{a(e),n(null)}},e??"")),S>k.length&&(0,t.jsx)("button",{type:"button",onClick:()=>f(l+h.ARTIFACT_VIEW.rows),className:"mx-2 mt-2 rounded-md px-2 py-1.5 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:`Show ${Math.min(h.ARTIFACT_VIEW.rows,S-k.length)} more of ${S.toLocaleString("en")}`})]}),right:M?(0,t.jsx)($,{row:M,file:e?.file??null,onOpen:e=>n({row:M,file:e}),onBack:()=>n({row:M,file:null}),onGone:()=>n(null),onShelf:()=>n(null)},M.path):F.length>0?(0,t.jsx)(z,{entries:F,bots:v,onPick:e=>n({row:e,file:null})}):(0,t.jsx)(R,{empty:0===S})})}],94682)},759659,e=>{"use strict";var t=e.i(456420);let n={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};n.node;let s=(0,t.default)(n);e.s(["Trash2",0,s],759659)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41533,t=>{"use strict";var s=t.i(247167);s.default.env.THURSDAY_APP_DIR?.trim()||s.default.cwd(),s.default.env.THURSDAY_HOME?.trim()||s.default.cwd(),s.default.env.THURSDAY_URL?.trim()||s.default.env.PORT?.trim();let a=".ai-workspace",e={workspace:a,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",signIns:".sign-ins",skills:{default:"skills",custom:`${a}/.agents/skills`,own:".agents/skills",runtime:"runtime",seeds:"seed-skills"}};t.s(["APP_NAME",0,"Thursday","ARTIFACT_SKILL",0,"artifact","ARTIFACT_VIEW",0,{rows:200,setFiles:120},"ASCII_FACE",0,{fontSize:8,density:1.4,fps:30},"BOT_ROSTER",0,{max:14},"BOT_RUN",0,{steps:100,compactAt:5e5,compactHeadroom:.8,summaryWords:{min:600,max:3e3,perTokens:200},participants:12,concurrent:4,turns:120,queuedMessages:200,silenceMs:3e5,overflowShrink:.6,retryMs:1e4,compactFiles:40},"CALL_BACK",0,{ringMs:3e4},"CALL_END",0,{quietMs:600,unsaidMs:2e3,maxMs:8e3},"CALL_ENDED_MS",0,12e3,"CALL_HISTORY_PAGE",0,10,"CALL_IDLE",0,{hangUpMs:25e3,warnMs:1e4},"CALL_LINE",0,{dwellMs:2e3,lingerMs:2500,relayLingerMs:5e3,thinkingTailMs:6e3},"CALL_PAGE",0,{scrollback:24,saveFailures:3},"CALL_RELAY",0,{quietMs:2e3,perTurn:3,readMs:15e3,chars:600},"CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"COMMON_VALIDATE",0,{name:{max:16},shortDescription:{max:60},description:{max:100},prompt:{max:4e3}},"FILE_THUMB",0,{pageWidth:1024,textWidth:512,textBytes:4096,pages:2,imageWidth:384,cacheSeconds:300},"FINISHED_NOTICE",0,{rows:5,shown:1,words:240},"GIVEN_FILES",0,{dir:"inbox",maxBytes:0x1900000,perMessage:8},"INBOX_POLL_MS",0,3e4,"IS_DEV",0,!1,"KEY_MIN",0,8,"LIVE_CALL",0,{startupMs:3e4,closeMs:15e3,transcriptGapMs:1500,transcriptSaveMs:500,appendMs:15e3,backendOutputTokens:4096,reasoningCheckMs:5e3,keyCheckMs:5e3},"MARKETING_SKILL",0,"marketing","MAX_PINNED_TOOLS",0,10,"MEMORY_LIMITS",0,{facts:400,factsPerNote:50,descriptionChars:100},"PAGE_SIZE",0,50,"PATHS",0,e,"PROMPT_CROWDED",0,{bots:10,skills:20},"ROUTINE",0,{tickMs:3e4,max:12,minHours:1,runsShown:5},"SKILL_FILES",0,{uploadBytes:0x1400000,inlineBytes:524288,unpackedBytes:0x6400000,archiveEntries:1e3},"STUDIO_SERVER",0,"studio","TEXT_CALL",0,{maxSteps:12,model:"text",autoTurns:10},"TRAVEL_SKILL",0,"travel","WAKE_TOLERANCE",0,.34,"WORKSPACE_VIEW",0,{rows:200,textMax:524288,autoCloseMs:5e3,elementMax:0x3200000}])},516690,t=>{t.v(s=>Promise.all(["static/chunks/0teeo9xl5wnnq.js"].map(s=>t.l(s))).then(()=>s(395360)))},274435,t=>{t.v(s=>Promise.all(["static/chunks/1wiw0gk7-qp8i.js"].map(s=>t.l(s))).then(()=>s(249740)))},796339,t=>{t.v(s=>Promise.all(["static/chunks/0w_ja4ciemrbk.js"].map(s=>t.l(s))).then(()=>s(948115)))},196546,t=>{t.v(s=>Promise.all(["static/chunks/3zx2nr3-vl_eh.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(365711)))},60308,t=>{t.v(s=>Promise.all(["static/chunks/18ov-ugtitlq2.js","static/chunks/1ozmtvibzzync.js","static/chunks/0iowzpfymsgpq.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(148707)))},608734,t=>{t.v(s=>Promise.all(["static/chunks/0p3bmx6ek0qp8.js"].map(s=>t.l(s))).then(()=>s(398778)))},902952,t=>{t.v(s=>Promise.all(["static/chunks/0q82iw85zo1m8.js"].map(s=>t.l(s))).then(()=>s(262053)))},814026,t=>{t.v(s=>Promise.all(["static/chunks/1txgr9-t0s4je.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(922608)))},210042,t=>{t.v(s=>Promise.all(["static/chunks/1qwswx0hjsw00.js"].map(s=>t.l(s))).then(()=>s(894523)))},327701,t=>{t.v(s=>Promise.all(["static/chunks/0r5gq9qo4arwu.js"].map(s=>t.l(s))).then(()=>s(641837)))},864940,t=>{t.v(s=>Promise.all(["static/chunks/0r3z95rc2ypfx.js"].map(s=>t.l(s))).then(()=>s(730184)))},581996,t=>{t.v(s=>Promise.all(["static/chunks/0t5b3chki_9fl.js"].map(s=>t.l(s))).then(()=>s(625004)))},185223,t=>{t.v(s=>Promise.all(["static/chunks/2g-myvn_f_a_4.js","static/chunks/16vtcomz233wa.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/31rpioh8q87-5.js"].map(s=>t.l(s))).then(()=>s(484803)))},577689,t=>{t.v(s=>Promise.all(["static/chunks/0-mnxu8ow6er0.js"].map(s=>t.l(s))).then(()=>s(401885)))},887861,t=>{t.v(s=>Promise.all(["static/chunks/05m1q2yic6i_6.js"].map(s=>t.l(s))).then(()=>s(545199)))},769047,t=>{t.v(s=>Promise.all(["static/chunks/0n7sj9xm17ln0.js"].map(s=>t.l(s))).then(()=>s(135626)))},566005,t=>{t.v(s=>Promise.all(["static/chunks/20p5cex0-ilx3.js"].map(s=>t.l(s))).then(()=>s(532400)))},64129,t=>{t.v(s=>Promise.all(["static/chunks/1hoe492g5-o2q.js"].map(s=>t.l(s))).then(()=>s(770767)))},686785,t=>{t.v(s=>Promise.all(["static/chunks/40epaf180rm_o.js"].map(s=>t.l(s))).then(()=>s(770913)))},234475,t=>{t.v(s=>Promise.all(["static/chunks/3v2r9tkahr03c.js"].map(s=>t.l(s))).then(()=>s(427540)))},273197,t=>{t.v(s=>Promise.all(["static/chunks/26elp1iu9_rfo.js"].map(s=>t.l(s))).then(()=>s(574536)))},184291,t=>{t.v(s=>Promise.all(["static/chunks/3y2yeb8hqhgma.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2-ohkulfwwqkp.js"].map(s=>t.l(s))).then(()=>s(294139)))},254810,t=>{t.v(s=>Promise.all(["static/chunks/31srg3-v_-3ex.js"].map(s=>t.l(s))).then(()=>s(124527)))},715630,t=>{t.v(s=>Promise.all(["static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(39516)))},721406,t=>{t.v(s=>Promise.all(["static/chunks/251ctc7y-p1x6.js"].map(s=>t.l(s))).then(()=>s(55582)))},928418,t=>{t.v(s=>Promise.all(["static/chunks/3svu996x25pgh.js"].map(s=>t.l(s))).then(()=>s(324330)))},496018,t=>{t.v(s=>Promise.all(["static/chunks/10a6xv-y_2nwl.js","static/chunks/36oxg-33dy_jz.js"].map(s=>t.l(s))).then(()=>s(944027)))},268805,t=>{t.v(s=>Promise.all(["static/chunks/3xpdaet8dw9x9.js"].map(s=>t.l(s))).then(()=>s(732548)))},885670,t=>{t.v(s=>Promise.all(["static/chunks/1ctnkqxh0n4u3.js"].map(s=>t.l(s))).then(()=>s(218663)))},850277,t=>{t.v(s=>Promise.all(["static/chunks/28t2bvti86a67.js"].map(s=>t.l(s))).then(()=>s(774228)))},608435,t=>{t.v(s=>Promise.all(["static/chunks/2urfmi-h-efgc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(183824)))},677655,t=>{t.v(s=>Promise.all(["static/chunks/07o4ns4nqda4i.js"].map(s=>t.l(s))).then(()=>s(773966)))},393919,t=>{t.v(s=>Promise.all(["static/chunks/1-vnisuyudqdj.js"].map(s=>t.l(s))).then(()=>s(135921)))},499510,t=>{t.v(s=>Promise.all(["static/chunks/34asi35tmks9s.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(694693)))},314583,t=>{t.v(s=>Promise.all(["static/chunks/368hf3scqy9et.js"].map(s=>t.l(s))).then(()=>s(694899)))},138305,t=>{t.v(s=>Promise.all(["static/chunks/02cmf-0vz-j0l.js"].map(s=>t.l(s))).then(()=>s(98254)))},162895,t=>{t.v(s=>Promise.all(["static/chunks/446dwbh9a1brd.js","static/chunks/2ro2w2784zwl0.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(750497)))},715822,t=>{t.v(s=>Promise.all(["static/chunks/45c7xyr85-p84.js","static/chunks/1vpp0zxc5amhf.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(276426)))},156548,t=>{t.v(s=>Promise.all(["static/chunks/1px0m_9u11val.js"].map(s=>t.l(s))).then(()=>s(804440)))},68853,t=>{t.v(s=>Promise.all(["static/chunks/04kziyzzvkmhl.js"].map(s=>t.l(s))).then(()=>s(174708)))},508072,t=>{t.v(s=>Promise.all(["static/chunks/1fw3www6hshi2.js"].map(s=>t.l(s))).then(()=>s(717147)))},379420,t=>{t.v(s=>Promise.all(["static/chunks/07fixed86aya_.js"].map(s=>t.l(s))).then(()=>s(517328)))},901081,t=>{t.v(s=>Promise.all(["static/chunks/2sj3ymj88_zus.js"].map(s=>t.l(s))).then(()=>s(820123)))},732086,t=>{t.v(s=>Promise.all(["static/chunks/0n0bzpsdtg893.js"].map(s=>t.l(s))).then(()=>s(293222)))},8814,t=>{t.v(s=>Promise.all(["static/chunks/16zbzmvpg2ww4.js"].map(s=>t.l(s))).then(()=>s(333824)))},706010,t=>{t.v(s=>Promise.all(["static/chunks/0s54dho0z8p6j.js"].map(s=>t.l(s))).then(()=>s(258271)))},611671,t=>{t.v(s=>Promise.all(["static/chunks/2_jhl4ez3w5lm.js"].map(s=>t.l(s))).then(()=>s(612944)))},499264,t=>{t.v(s=>Promise.all(["static/chunks/0f4x882qymosc.js"].map(s=>t.l(s))).then(()=>s(289460)))},964927,t=>{t.v(s=>Promise.all(["static/chunks/09k-wbu71lfrt.js"].map(s=>t.l(s))).then(()=>s(551327)))},86855,t=>{t.v(s=>Promise.all(["static/chunks/1dd6qzaoby04o.js"].map(s=>t.l(s))).then(()=>s(12522)))},955357,t=>{t.v(s=>Promise.all(["static/chunks/34678qecnnj_h.js"].map(s=>t.l(s))).then(()=>s(217285)))},40814,t=>{t.v(s=>Promise.all(["static/chunks/3paqvl_z7hv3n.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(164704)))},534593,t=>{t.v(s=>Promise.all(["static/chunks/0_lh4_g7vdhq1.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(805100)))},80402,t=>{t.v(s=>Promise.all(["static/chunks/3qum31hte42y1.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(709757)))},659962,t=>{t.v(s=>Promise.all(["static/chunks/1u8j3eb8for0y.js"].map(s=>t.l(s))).then(()=>s(563571)))},655306,t=>{t.v(s=>Promise.all(["static/chunks/3qlz6dwx-4wpg.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/31rpioh8q87-5.js","static/chunks/2six92-4e054u.js","static/chunks/2ro2w2784zwl0.js"].map(s=>t.l(s))).then(()=>s(24609)))},379291,t=>{t.v(s=>Promise.all(["static/chunks/16ya3783k-z1s.js"].map(s=>t.l(s))).then(()=>s(329263)))},56334,t=>{t.v(s=>Promise.all(["static/chunks/0u__wtz-jozok.js"].map(s=>t.l(s))).then(()=>s(970013)))},955953,t=>{t.v(s=>Promise.all(["static/chunks/1jz5jakghqd9v.js"].map(s=>t.l(s))).then(()=>s(274265)))},372286,t=>{t.v(s=>Promise.all(["static/chunks/2jhadmpmcpdrj.js"].map(s=>t.l(s))).then(()=>s(146027)))},709599,t=>{t.v(s=>Promise.all(["static/chunks/2tfc-naqg7z-u.js","static/chunks/319502xf-tnxv.js"].map(s=>t.l(s))).then(()=>s(774293)))},417187,t=>{t.v(s=>Promise.all(["static/chunks/319502xf-tnxv.js"].map(s=>t.l(s))).then(()=>s(363400)))},106583,t=>{t.v(s=>Promise.all(["static/chunks/28-z_wt6ndz-b.js"].map(s=>t.l(s))).then(()=>s(576577)))},600350,t=>{t.v(s=>Promise.all(["static/chunks/3hwj-0h-0-lla.js"].map(s=>t.l(s))).then(()=>s(823068)))},718592,t=>{t.v(s=>Promise.all(["static/chunks/00uuedu6-4dre.js"].map(s=>t.l(s))).then(()=>s(129659)))},964292,t=>{t.v(s=>Promise.all(["static/chunks/10jgwafb21-7w.js"].map(s=>t.l(s))).then(()=>s(961451)))},251227,t=>{t.v(s=>Promise.all(["static/chunks/3_8v942h1s07y.js"].map(s=>t.l(s))).then(()=>s(869943)))},781674,t=>{t.v(s=>Promise.all(["static/chunks/0uud_z0v566uf.js"].map(s=>t.l(s))).then(()=>s(143691)))},765886,t=>{t.v(s=>Promise.all(["static/chunks/3mk3dcnt98mri.js"].map(s=>t.l(s))).then(()=>s(640067)))},643635,t=>{t.v(s=>Promise.all(["static/chunks/0ftzs9_34hr49.js"].map(s=>t.l(s))).then(()=>s(118337)))},469752,t=>{t.v(s=>Promise.all(["static/chunks/0qo6w-wynmd7q.js"].map(s=>t.l(s))).then(()=>s(598277)))},220210,t=>{t.v(s=>Promise.all(["static/chunks/43x-wo-t6g20f.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(872516)))},952204,t=>{t.v(s=>Promise.all(["static/chunks/2qqx13x1_na_q.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(405817)))},615932,t=>{t.v(s=>Promise.all(["static/chunks/2nuuq6y_mebd9.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(238102)))},846517,t=>{t.v(s=>Promise.all(["static/chunks/22e7k4k061g55.js"].map(s=>t.l(s))).then(()=>s(289319)))},334810,t=>{t.v(s=>Promise.all(["static/chunks/17pegra88jm_q.js"].map(s=>t.l(s))).then(()=>s(466502)))},518233,t=>{t.v(s=>Promise.all(["static/chunks/2e7ddq5vayqre.js"].map(s=>t.l(s))).then(()=>s(902077)))},527502,t=>{t.v(s=>Promise.all(["static/chunks/0vuwq9sa14vne.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(564011)))},783131,t=>{t.v(s=>Promise.all(["static/chunks/324t9a-cp4u8q.js"].map(s=>t.l(s))).then(()=>s(394796)))},866363,t=>{t.v(s=>Promise.all(["static/chunks/17tgaro217rkw.js","static/chunks/3v4h-8da4l5p7.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(416128)))},936482,t=>{t.v(s=>Promise.all(["static/chunks/38lhx55kr9dl6.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(23141)))},219104,t=>{t.v(s=>Promise.all(["static/chunks/1jbxee7jz6bbc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(892708)))},982274,t=>{t.v(s=>Promise.all(["static/chunks/0_9ky7_0gqp29.js"].map(s=>t.l(s))).then(()=>s(375491)))},843593,t=>{t.v(s=>Promise.all(["static/chunks/1niiwgkyydxzm.js"].map(s=>t.l(s))).then(()=>s(462002)))},392582,t=>{t.v(s=>Promise.all(["static/chunks/21xei27jfzp7x.js"].map(s=>t.l(s))).then(()=>s(40781)))},32395,t=>{t.v(s=>Promise.all(["static/chunks/16hinmy0f-glt.js"].map(s=>t.l(s))).then(()=>s(609979)))},336975,t=>{t.v(s=>Promise.all(["static/chunks/0zgg9c0-wj935.js"].map(s=>t.l(s))).then(()=>s(563498)))},736812,t=>{t.v(s=>Promise.all(["static/chunks/3uf4bpnwlk9hu.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(662407)))},615475,t=>{t.v(s=>Promise.all(["static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(346619)))},722332,t=>{t.v(s=>Promise.all(["static/chunks/1zse9_sq278z3.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1ebo_riinwqq8.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(679394)))},77996,t=>{t.v(s=>Promise.all(["static/chunks/1u06mkqc8lt5y.js","static/chunks/31rpioh8q87-5.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(546754)))},412671,t=>{t.v(s=>Promise.all(["static/chunks/2id4c69a8l7tw.js"].map(s=>t.l(s))).then(()=>s(788619)))},98975,t=>{t.v(s=>Promise.all(["static/chunks/1k3nt_5za2_5v.js"].map(s=>t.l(s))).then(()=>s(894666)))},221794,t=>{t.v(s=>Promise.all(["static/chunks/0ju2q95btugv1.js"].map(s=>t.l(s))).then(()=>s(904077)))},712237,t=>{t.v(s=>Promise.all(["static/chunks/1oyr1d-wo_dr-.js"].map(s=>t.l(s))).then(()=>s(251070)))},25004,t=>{t.v(s=>Promise.all(["static/chunks/1ggeg-sqe8ngu.js"].map(s=>t.l(s))).then(()=>s(388943)))},792799,t=>{t.v(s=>Promise.all(["static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(122952)))},300535,t=>{t.v(s=>Promise.all(["static/chunks/1xlbhszlykr4p.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(776627)))},299868,t=>{t.v(s=>Promise.all(["static/chunks/335-38r54vx4c.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(313300)))},692658,t=>{t.v(s=>Promise.all(["static/chunks/39sp7w7wcwxjl.js"].map(s=>t.l(s))).then(()=>s(866695)))},145390,t=>{t.v(s=>Promise.all(["static/chunks/0kmw809wgqjkq.js"].map(s=>t.l(s))).then(()=>s(948742)))},459901,t=>{t.v(s=>Promise.all(["static/chunks/0z36xjjyl3kid.js"].map(s=>t.l(s))).then(()=>s(75400)))},844018,t=>{t.v(s=>Promise.all(["static/chunks/2t-fmsms_i3sr.js"].map(s=>t.l(s))).then(()=>s(380021)))},932597,t=>{t.v(s=>Promise.all(["static/chunks/3a7qna12wpg2h.js"].map(s=>t.l(s))).then(()=>s(45900)))},386493,t=>{t.v(s=>Promise.all(["static/chunks/3xcqoeizdjzn2.js"].map(s=>t.l(s))).then(()=>s(398160)))},287672,t=>{t.v(s=>Promise.all(["static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(823760)))},148045,t=>{t.v(s=>Promise.all(["static/chunks/36oxg-33dy_jz.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/2ro2w2784zwl0.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3_ue_94qji2lm.js"].map(s=>t.l(s))).then(()=>s(134812)))},704538,t=>{t.v(s=>Promise.all(["static/chunks/1crpy7f655-f-.js","static/chunks/29kou1oqg257y.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/36oxg-33dy_jz.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2ro2w2784zwl0.js","static/chunks/1ozmtvibzzync.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(398122)))},522051,t=>{t.v(s=>Promise.all(["static/chunks/1t8ujmkza6s35.js"].map(s=>t.l(s))).then(()=>s(281694)))},278014,t=>{t.v(s=>Promise.all(["static/chunks/1c0t4bkzgxkho.js"].map(s=>t.l(s))).then(()=>s(376175)))},511938,t=>{t.v(s=>Promise.all(["static/chunks/2n0e6pbzr1vhc.js"].map(s=>t.l(s))).then(()=>s(251031)))},382697,t=>{t.v(s=>Promise.all(["static/chunks/3_3mt55_s_8nf.js","static/chunks/0w75738j7k0f7.js"].map(s=>t.l(s))).then(()=>s(906106)))},106774,t=>{t.v(s=>Promise.all(["static/chunks/2-0-eka22mzly.js"].map(s=>t.l(s))).then(()=>s(548052)))},657069,t=>{t.v(s=>Promise.all(["static/chunks/3ia1uy-ta-wwx.js"].map(s=>t.l(s))).then(()=>s(315754)))},133954,t=>{t.v(s=>Promise.all(["static/chunks/35w79dw14-r51.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(411335)))},969445,t=>{t.v(s=>Promise.all(["static/chunks/3ma22p0pjm53-.js"].map(s=>t.l(s))).then(()=>s(233218)))},532210,t=>{t.v(s=>Promise.all(["static/chunks/1t4tz6qnsit4z.js"].map(s=>t.l(s))).then(()=>s(127844)))},917136,t=>{t.v(s=>Promise.all(["static/chunks/20i3ov2af4zvh.js"].map(s=>t.l(s))).then(()=>s(499412)))},147287,t=>{t.v(s=>Promise.all(["static/chunks/3oyixq96_fa_z.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(950510)))},298173,t=>{t.v(s=>Promise.all(["static/chunks/38rdxmvrwtp57.js"].map(s=>t.l(s))).then(()=>s(372302)))},418877,t=>{t.v(s=>Promise.all(["static/chunks/3pzxtzd-vdn2f.js"].map(s=>t.l(s))).then(()=>s(377217)))},159142,t=>{t.v(s=>Promise.all(["static/chunks/2bk7wc4-ptm-c.js"].map(s=>t.l(s))).then(()=>s(274754)))},644609,t=>{t.v(s=>Promise.all(["static/chunks/13qtfpmkarvmt.js","static/chunks/0bp3uew85t0ry.js","static/chunks/3ia1uy-ta-wwx.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(76277)))},323845,t=>{t.v(s=>Promise.all(["static/chunks/29hqqnd781kvs.js"].map(s=>t.l(s))).then(()=>s(744344)))},367535,t=>{t.v(s=>Promise.all(["static/chunks/1j_bjoxgu91mc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(635473)))},659189,t=>{t.v(s=>Promise.all(["static/chunks/1q28ddzt1afnq.js"].map(s=>t.l(s))).then(()=>s(857397)))},457619,t=>{t.v(s=>Promise.all(["static/chunks/3-06o0suuf1y4.js"].map(s=>t.l(s))).then(()=>s(368643)))},401626,t=>{t.v(s=>Promise.all(["static/chunks/151lx87jseoly.js"].map(s=>t.l(s))).then(()=>s(321142)))},524176,t=>{t.v(s=>Promise.all(["static/chunks/2asmzjaah8m8z.js"].map(s=>t.l(s))).then(()=>s(747044)))},205353,t=>{t.v(s=>Promise.all(["static/chunks/0hyz-d49g6v3x.js"].map(s=>t.l(s))).then(()=>s(518227)))},847969,t=>{t.v(s=>Promise.all(["static/chunks/1u6au-494n78m.js"].map(s=>t.l(s))).then(()=>s(990800)))},755902,t=>{t.v(s=>Promise.all(["static/chunks/2e150n34zc8g9.js"].map(s=>t.l(s))).then(()=>s(731026)))},272194,t=>{t.v(s=>Promise.all(["static/chunks/05-_p9k102i_g.js"].map(s=>t.l(s))).then(()=>s(874353)))},557638,t=>{t.v(s=>Promise.all(["static/chunks/0v_3gh96z3jaa.js"].map(s=>t.l(s))).then(()=>s(400936)))},47723,t=>{t.v(s=>Promise.all(["static/chunks/3dur64hdd_v7c.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(337476)))},446820,t=>{t.v(s=>Promise.all(["static/chunks/2v-fuc1wwaulc.js","static/chunks/2zxe_jdp_h7n8.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(181320)))},565220,t=>{t.v(s=>Promise.all(["static/chunks/2800ji7zpl6a7.js"].map(s=>t.l(s))).then(()=>s(775253)))},821908,t=>{t.v(s=>Promise.all(["static/chunks/0-a6206-r3j_8.js"].map(s=>t.l(s))).then(()=>s(265932)))},798543,t=>{t.v(s=>Promise.all(["static/chunks/2ovlkdbar4cl8.js"].map(s=>t.l(s))).then(()=>s(873456)))},953213,t=>{t.v(s=>Promise.all(["static/chunks/39upf2vnyk-xq.js"].map(s=>t.l(s))).then(()=>s(573095)))},357016,t=>{t.v(s=>Promise.all(["static/chunks/0jrnpgq-_qp2f.js"].map(s=>t.l(s))).then(()=>s(739360)))},144,t=>{t.v(s=>Promise.all(["static/chunks/273azq8ya_70t.js"].map(s=>t.l(s))).then(()=>s(834527)))},389188,t=>{t.v(s=>Promise.all(["static/chunks/1tcwgfbes5bur.js"].map(s=>t.l(s))).then(()=>s(292052)))},494584,t=>{t.v(s=>Promise.all(["static/chunks/2mgfqtimlpa2_.js"].map(s=>t.l(s))).then(()=>s(386104)))},590087,t=>{t.v(s=>Promise.all(["static/chunks/3rnj3hwd2gpl1.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(362833)))},753525,t=>{t.v(s=>Promise.all(["static/chunks/39sp7w7wcwxjl.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3rudiphv22_sj.js"].map(s=>t.l(s))).then(()=>s(235865)))},506695,t=>{t.v(s=>Promise.all(["static/chunks/16j4idsrg5cyn.js"].map(s=>t.l(s))).then(()=>s(528594)))},985641,t=>{t.v(s=>Promise.all(["static/chunks/1y1vu9-4l76_e.js"].map(s=>t.l(s))).then(()=>s(762570)))},215520,t=>{t.v(s=>Promise.all(["static/chunks/0o66-rbdl-bpr.js"].map(s=>t.l(s))).then(()=>s(767399)))},579736,t=>{t.v(s=>Promise.all(["static/chunks/3bnhh87m-vba3.js"].map(s=>t.l(s))).then(()=>s(793940)))},344743,t=>{t.v(s=>Promise.all(["static/chunks/0lmkqj5bnn1tx.js"].map(s=>t.l(s))).then(()=>s(478163)))},69901,t=>{t.v(s=>Promise.all(["static/chunks/2fx1t7nywz-zx.js"].map(s=>t.l(s))).then(()=>s(293157)))},849765,t=>{t.v(s=>Promise.all(["static/chunks/0uw1nhbzgcr4z.js"].map(s=>t.l(s))).then(()=>s(65260)))},925840,t=>{t.v(s=>Promise.all(["static/chunks/2htbqsoc2bojb.js"].map(s=>t.l(s))).then(()=>s(620602)))},678110,t=>{t.v(s=>Promise.all(["static/chunks/028oldt2v0xyz.js"].map(s=>t.l(s))).then(()=>s(121139)))},710002,t=>{t.v(s=>Promise.all(["static/chunks/3b13ywcpwn31z.js"].map(s=>t.l(s))).then(()=>s(236865)))},753456,t=>{t.v(s=>Promise.all(["static/chunks/1wxrfgphp_7tx.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(487420)))},328116,t=>{t.v(s=>Promise.all(["static/chunks/1eyi5me_bl5mq.js"].map(s=>t.l(s))).then(()=>s(303348)))},762792,t=>{t.v(s=>Promise.all(["static/chunks/012oo6xzblu6s.js"].map(s=>t.l(s))).then(()=>s(122362)))},548436,t=>{t.v(s=>Promise.all(["static/chunks/36oxg-33dy_jz.js"].map(s=>t.l(s))).then(()=>s(265525)))},985774,t=>{t.v(s=>Promise.all(["static/chunks/0xnzoirqkfqgi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(979978)))},822682,t=>{t.v(s=>Promise.all(["static/chunks/1xcq4o53ccqj-.js"].map(s=>t.l(s))).then(()=>s(777438)))},29273,t=>{t.v(s=>Promise.all(["static/chunks/3wssn6tbdvadr.js"].map(s=>t.l(s))).then(()=>s(12899)))},917431,t=>{t.v(s=>Promise.all(["static/chunks/2w0jipt45km-n.js"].map(s=>t.l(s))).then(()=>s(426182)))},127184,t=>{t.v(s=>Promise.all(["static/chunks/1kkj4dqqizj1g.js"].map(s=>t.l(s))).then(()=>s(569590)))},402999,t=>{t.v(s=>Promise.all(["static/chunks/1abc3xfswhk36.js"].map(s=>t.l(s))).then(()=>s(389508)))},22510,t=>{t.v(s=>Promise.all(["static/chunks/3p-mvzd69i8m_.js","static/chunks/1px0m_9u11val.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(792808)))},392914,t=>{t.v(s=>Promise.all(["static/chunks/3qa8z7ahjfjda.js"].map(s=>t.l(s))).then(()=>s(270093)))},864980,t=>{t.v(s=>Promise.all(["static/chunks/0unfsbpxtuicd.js"].map(s=>t.l(s))).then(()=>s(221610)))},362249,t=>{t.v(s=>Promise.all(["static/chunks/2pma0utbxjpx3.js"].map(s=>t.l(s))).then(()=>s(292310)))},919686,t=>{t.v(s=>Promise.all(["static/chunks/418b-iezadyqk.js"].map(s=>t.l(s))).then(()=>s(513929)))},123169,t=>{t.v(s=>Promise.all(["static/chunks/0-e41flx3-6kr.js"].map(s=>t.l(s))).then(()=>s(495422)))},866973,t=>{t.v(s=>Promise.all(["static/chunks/3trm7ge6o-yl3.js"].map(s=>t.l(s))).then(()=>s(381082)))},580357,t=>{t.v(s=>Promise.all(["static/chunks/0l8oeumi7zreb.js","static/chunks/29kou1oqg257y.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1ozmtvibzzync.js","static/chunks/36oxg-33dy_jz.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2ro2w2784zwl0.js","static/chunks/31rpioh8q87-5.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(428855)))},660137,t=>{t.v(s=>Promise.all(["static/chunks/29kou1oqg257y.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2ro2w2784zwl0.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2six92-4e054u.js"].map(s=>t.l(s))).then(()=>s(259585)))},225837,t=>{t.v(s=>Promise.all(["static/chunks/409byf0ixcxxo.js"].map(s=>t.l(s))).then(()=>s(98542)))},559154,t=>{t.v(s=>Promise.all(["static/chunks/2e7zn6goip-16.js"].map(s=>t.l(s))).then(()=>s(672283)))},428160,t=>{t.v(s=>Promise.all(["static/chunks/2np1b-o9o9lxe.js"].map(s=>t.l(s))).then(()=>s(428978)))},679226,t=>{t.v(s=>Promise.all(["static/chunks/1zexcknv1j-z7.js"].map(s=>t.l(s))).then(()=>s(351908)))},95554,t=>{t.v(s=>Promise.all(["static/chunks/1zch7s-d9ym1d.js"].map(s=>t.l(s))).then(()=>s(843805)))},256229,t=>{t.v(s=>Promise.all(["static/chunks/0bp3uew85t0ry.js"].map(s=>t.l(s))).then(()=>s(455496)))},257294,t=>{t.v(s=>Promise.all(["static/chunks/34vbgf3h6aynb.js"].map(s=>t.l(s))).then(()=>s(763343)))},287646,t=>{t.v(s=>Promise.all(["static/chunks/3py7aam1ahr8d.js"].map(s=>t.l(s))).then(()=>s(470313)))},77876,t=>{t.v(s=>Promise.all(["static/chunks/10ur2oml6p9x4.js"].map(s=>t.l(s))).then(()=>s(883808)))},702789,t=>{t.v(s=>Promise.all(["static/chunks/11b9yf9dfuujx.js"].map(s=>t.l(s))).then(()=>s(713367)))},105404,t=>{t.v(s=>Promise.all(["static/chunks/2dnh5lwhlmqjo.js"].map(s=>t.l(s))).then(()=>s(503988)))},664050,t=>{t.v(s=>Promise.all(["static/chunks/40ei945lllr9w.js"].map(s=>t.l(s))).then(()=>s(80464)))},423766,t=>{t.v(s=>Promise.all(["static/chunks/0ra7vu-67oxip.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(34684)))},471095,t=>{t.v(s=>Promise.all(["static/chunks/2evctkklgum84.js"].map(s=>t.l(s))).then(()=>s(259514)))},713125,t=>{t.v(s=>Promise.all(["static/chunks/2_59ceoqu2j9o.js"].map(s=>t.l(s))).then(()=>s(435493)))},347760,t=>{t.v(s=>Promise.all(["static/chunks/17tgaro217rkw.js"].map(s=>t.l(s))).then(()=>s(588587)))},525380,t=>{t.v(s=>Promise.all(["static/chunks/0txq63lra1gy5.js"].map(s=>t.l(s))).then(()=>s(843156)))},927772,t=>{t.v(s=>Promise.all(["static/chunks/38b2vebizod3f.js"].map(s=>t.l(s))).then(()=>s(286144)))},131592,t=>{t.v(s=>Promise.all(["static/chunks/1-pex3noy3abf.js"].map(s=>t.l(s))).then(()=>s(568096)))},942509,t=>{t.v(s=>Promise.all(["static/chunks/208d1-7kvefg6.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(809240)))},209551,t=>{t.v(s=>Promise.all(["static/chunks/1asjpdf763drn.js","static/chunks/4469hynu4qc3x.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(361218)))},174099,t=>{t.v(s=>Promise.all(["static/chunks/3l445yien52wx.js"].map(s=>t.l(s))).then(()=>s(42)))},401250,t=>{t.v(s=>Promise.all(["static/chunks/2qbs5ja7xij_y.js"].map(s=>t.l(s))).then(()=>s(921955)))},944475,t=>{t.v(s=>Promise.all(["static/chunks/3agxmq5t1fgcm.js"].map(s=>t.l(s))).then(()=>s(775193)))},600538,t=>{t.v(s=>Promise.all(["static/chunks/2osmatdeuj3s-.js"].map(s=>t.l(s))).then(()=>s(705623)))},336651,t=>{t.v(s=>Promise.all(["static/chunks/0obkw0gs46t63.js"].map(s=>t.l(s))).then(()=>s(605927)))},709948,t=>{t.v(s=>Promise.all(["static/chunks/1nax-hzuha2nt.js"].map(s=>t.l(s))).then(()=>s(596338)))},340336,t=>{t.v(s=>Promise.all(["static/chunks/1caj6_s4hafz8.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(461138)))},508436,t=>{t.v(s=>Promise.all(["static/chunks/1flk5q9pa7qsp.js"].map(s=>t.l(s))).then(()=>s(318633)))},155636,t=>{t.v(s=>Promise.all(["static/chunks/3_3mt55_s_8nf.js"].map(s=>t.l(s))).then(()=>s(107395)))},351979,t=>{t.v(s=>Promise.all(["static/chunks/0rc3dvh91j2qq.js"].map(s=>t.l(s))).then(()=>s(40899)))},65678,t=>{t.v(s=>Promise.all(["static/chunks/0n-9icasrt3tr.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/29kou1oqg257y.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(352763)))},841727,t=>{t.v(s=>Promise.all(["static/chunks/1t71kx4hckhdg.js"].map(s=>t.l(s))).then(()=>s(526893)))},557754,t=>{t.v(s=>Promise.all(["static/chunks/31rpioh8q87-5.js"].map(s=>t.l(s))).then(()=>s(578270)))},670454,t=>{t.v(s=>Promise.all(["static/chunks/42lcx54bokm4l.js"].map(s=>t.l(s))).then(()=>s(891579)))},670515,t=>{t.v(s=>Promise.all(["static/chunks/2fkhtkfyegbfl.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/36oxg-33dy_jz.js","static/chunks/3rudiphv22_sj.js","static/chunks/2ro2w2784zwl0.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/31rpioh8q87-5.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(259443)))},48460,t=>{t.v(s=>Promise.all(["static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(3737)))},744538,t=>{t.v(s=>Promise.all(["static/chunks/38f2w40jfofcx.js"].map(s=>t.l(s))).then(()=>s(610648)))},963321,t=>{t.v(s=>Promise.all(["static/chunks/2keoa22_a2i05.js"].map(s=>t.l(s))).then(()=>s(717620)))},43837,t=>{t.v(s=>Promise.all(["static/chunks/3iufy6ir2ow_s.js"].map(s=>t.l(s))).then(()=>s(476205)))},830536,t=>{t.v(s=>Promise.all(["static/chunks/0dum5lyb1kgdu.js"].map(s=>t.l(s))).then(()=>s(18661)))},785051,t=>{t.v(s=>Promise.all(["static/chunks/3iooxhh1ig5bw.js"].map(s=>t.l(s))).then(()=>s(938702)))},586017,t=>{t.v(s=>Promise.all(["static/chunks/17z996osqxkqt.js"].map(s=>t.l(s))).then(()=>s(588430)))},495694,t=>{t.v(s=>Promise.all(["static/chunks/0h-2v5t5yj2f3.js"].map(s=>t.l(s))).then(()=>s(562973)))},404547,t=>{t.v(s=>Promise.all(["static/chunks/1idh9y3ry9ztt.js"].map(s=>t.l(s))).then(()=>s(44445)))},160550,t=>{t.v(s=>Promise.all(["static/chunks/2tslt-7b091nm.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(338022)))},109,t=>{t.v(s=>Promise.all(["static/chunks/1mi-5-8zn56-m.js","static/chunks/0bp3uew85t0ry.js","static/chunks/1qil2ska-_5gi.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3ia1uy-ta-wwx.js"].map(s=>t.l(s))).then(()=>s(534365)))},934329,t=>{t.v(s=>Promise.all(["static/chunks/2cl_2bjqc1lsc.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(532041)))},834235,t=>{t.v(s=>Promise.all(["static/chunks/3c5h1ejnae2s_.js"].map(s=>t.l(s))).then(()=>s(288188)))},879931,t=>{t.v(s=>Promise.all(["static/chunks/0tbmf55xnq95w.js"].map(s=>t.l(s))).then(()=>s(997855)))},738463,t=>{t.v(s=>Promise.all(["static/chunks/41klrxz2-ykw3.js"].map(s=>t.l(s))).then(()=>s(786105)))},464547,t=>{t.v(s=>Promise.all(["static/chunks/1g4yzqc8g06o2.js"].map(s=>t.l(s))).then(()=>s(995255)))},74196,t=>{t.v(s=>Promise.all(["static/chunks/1pgom6axjfimi.js"].map(s=>t.l(s))).then(()=>s(786142)))},926245,t=>{t.v(s=>Promise.all(["static/chunks/00f7egm3k9vam.js"].map(s=>t.l(s))).then(()=>s(829634)))},998654,t=>{t.v(s=>Promise.all(["static/chunks/0gklkn8q2umf3.js"].map(s=>t.l(s))).then(()=>s(121147)))},160115,t=>{t.v(s=>Promise.all(["static/chunks/0-rd1xjzbrve6.js"].map(s=>t.l(s))).then(()=>s(244703)))},656841,t=>{t.v(s=>Promise.all(["static/chunks/3vdfjhigz-c80.js"].map(s=>t.l(s))).then(()=>s(33176)))},291412,t=>{t.v(s=>Promise.all(["static/chunks/2rbi0f59-vmf9.js"].map(s=>t.l(s))).then(()=>s(620584)))},441270,t=>{t.v(s=>Promise.all(["static/chunks/088x63_2l0zc9.js"].map(s=>t.l(s))).then(()=>s(675022)))},332344,t=>{t.v(s=>Promise.all(["static/chunks/3ve5sdpvgjpbu.js"].map(s=>t.l(s))).then(()=>s(642400)))},252913,t=>{t.v(s=>Promise.all(["static/chunks/2i6moah6rdm25.js"].map(s=>t.l(s))).then(()=>s(202714)))},695208,t=>{t.v(s=>Promise.all(["static/chunks/3_gqqu4iritf3.js"].map(s=>t.l(s))).then(()=>s(40379)))},952844,t=>{t.v(s=>Promise.all(["static/chunks/0wdb6hvovrzpj.js"].map(s=>t.l(s))).then(()=>s(48975)))},776488,t=>{t.v(s=>Promise.all(["static/chunks/07ciqblogdtfg.js"].map(s=>t.l(s))).then(()=>s(938096)))},536002,t=>{t.v(s=>Promise.all(["static/chunks/0n254r0xtp5py.js"].map(s=>t.l(s))).then(()=>s(340767)))},872934,t=>{t.v(s=>Promise.all(["static/chunks/3qx8r_111vbcq.js"].map(s=>t.l(s))).then(()=>s(216129)))},831036,t=>{t.v(s=>Promise.all(["static/chunks/0b7u4oyc-4h1f.js"].map(s=>t.l(s))).then(()=>s(188870)))},423803,t=>{t.v(s=>Promise.all(["static/chunks/1464ilzyzd67x.js"].map(s=>t.l(s))).then(()=>s(9753)))},486330,t=>{t.v(s=>Promise.all(["static/chunks/0akc8wpmmqk3w.js"].map(s=>t.l(s))).then(()=>s(611191)))},381001,t=>{t.v(s=>Promise.all(["static/chunks/0db0pjco5lunx.js"].map(s=>t.l(s))).then(()=>s(297569)))},902100,t=>{t.v(s=>Promise.all(["static/chunks/3cayxge-4bh_2.js"].map(s=>t.l(s))).then(()=>s(899637)))},295735,t=>{t.v(s=>Promise.all(["static/chunks/1_dzz-lgnak2h.js"].map(s=>t.l(s))).then(()=>s(504007)))},358172,t=>{t.v(s=>Promise.all(["static/chunks/2cbug7-1qys8e.js"].map(s=>t.l(s))).then(()=>s(824395)))},775274,t=>{t.v(s=>Promise.all(["static/chunks/16_2z7zojg3g3.js"].map(s=>t.l(s))).then(()=>s(760511)))},514214,t=>{t.v(s=>Promise.all(["static/chunks/0cmf43-qvwr5g.js"].map(s=>t.l(s))).then(()=>s(815758)))},948353,t=>{t.v(s=>Promise.all(["static/chunks/210l205kz5g3q.js"].map(s=>t.l(s))).then(()=>s(365094)))},640920,t=>{t.v(s=>Promise.all(["static/chunks/3skrxw7zfkqzf.js"].map(s=>t.l(s))).then(()=>s(363976)))},157811,t=>{t.v(s=>Promise.all(["static/chunks/17brxt738o00g.js"].map(s=>t.l(s))).then(()=>s(805755)))},805550,t=>{t.v(s=>Promise.all(["static/chunks/0cg7tv-i19f6n.js"].map(s=>t.l(s))).then(()=>s(7419)))},360233,t=>{t.v(s=>Promise.all(["static/chunks/2tsbrs7m-0f65.js"].map(s=>t.l(s))).then(()=>s(797673)))},579755,t=>{t.v(s=>Promise.all(["static/chunks/01bd73-hm8457.js"].map(s=>t.l(s))).then(()=>s(525522)))},980721,t=>{t.v(s=>Promise.all(["static/chunks/458hu9cfcc3s_.js"].map(s=>t.l(s))).then(()=>s(560616)))},27266,t=>{t.v(s=>Promise.all(["static/chunks/01i1qitd_8rtz.js"].map(s=>t.l(s))).then(()=>s(134497)))},231214,t=>{t.v(s=>Promise.all(["static/chunks/1fviz3qosnq__.js"].map(s=>t.l(s))).then(()=>s(770771)))},881110,t=>{t.v(s=>Promise.all(["static/chunks/037scab0ici8w.js"].map(s=>t.l(s))).then(()=>s(764248)))},337683,t=>{t.v(s=>Promise.all(["static/chunks/1yj-z4gstw2xu.js"].map(s=>t.l(s))).then(()=>s(581666)))},28130,t=>{t.v(s=>Promise.all(["static/chunks/0p3vq3l43725n.js"].map(s=>t.l(s))).then(()=>s(365013)))},487165,t=>{t.v(s=>Promise.all(["static/chunks/3xes-pn_ri2cj.js"].map(s=>t.l(s))).then(()=>s(7363)))},470579,t=>{t.v(s=>Promise.all(["static/chunks/12z0zeu7lvha7.js"].map(s=>t.l(s))).then(()=>s(791178)))},677856,t=>{t.v(s=>Promise.all(["static/chunks/3v0b10wj4wq9y.js"].map(s=>t.l(s))).then(()=>s(182360)))},194363,t=>{t.v(s=>Promise.all(["static/chunks/3pa4udctptdhb.js"].map(s=>t.l(s))).then(()=>s(720465)))},448953,t=>{t.v(s=>Promise.all(["static/chunks/3473zud7njrud.js"].map(s=>t.l(s))).then(()=>s(951566)))},711812,t=>{t.v(s=>Promise.all(["static/chunks/1xdsthrspgqid.js"].map(s=>t.l(s))).then(()=>s(935992)))},409732,t=>{t.v(s=>Promise.all(["static/chunks/3t3e6rkuocks5.js"].map(s=>t.l(s))).then(()=>s(553497)))},930788,t=>{t.v(s=>Promise.all(["static/chunks/0r8pu9o18-9be.js"].map(s=>t.l(s))).then(()=>s(94790)))},769460,t=>{t.v(s=>Promise.all(["static/chunks/2wewgtk8lsm47.js"].map(s=>t.l(s))).then(()=>s(258941)))},774478,t=>{t.v(s=>Promise.all(["static/chunks/2l6fe0r1d_q6v.js"].map(s=>t.l(s))).then(()=>s(899054)))},49008,t=>{t.v(s=>Promise.all(["static/chunks/14_d5b8v93ic0.js"].map(s=>t.l(s))).then(()=>s(645619)))},377952,t=>{t.v(s=>Promise.all(["static/chunks/1ji12pypkyvd6.js"].map(s=>t.l(s))).then(()=>s(464754)))},411374,t=>{t.v(s=>Promise.all(["static/chunks/0j6p1caglumb5.js"].map(s=>t.l(s))).then(()=>s(669891)))},820463,t=>{t.v(s=>Promise.all(["static/chunks/3oj0ck1e2y0rg.js"].map(s=>t.l(s))).then(()=>s(966937)))},630169,t=>{t.v(s=>Promise.all(["static/chunks/21bsne5xprg9x.js"].map(s=>t.l(s))).then(()=>s(412397)))},777035,t=>{t.v(s=>Promise.all(["static/chunks/2nz_jsjkeh_3n.js"].map(s=>t.l(s))).then(()=>s(323854)))},28589,t=>{t.v(s=>Promise.all(["static/chunks/3bl5nolxelhoh.js"].map(s=>t.l(s))).then(()=>s(299023)))},161439,t=>{t.v(s=>Promise.all(["static/chunks/2qvx9cvdob30_.js"].map(s=>t.l(s))).then(()=>s(83923)))},467304,t=>{t.v(s=>Promise.all(["static/chunks/2r50d8i8nzafy.js"].map(s=>t.l(s))).then(()=>s(620576)))},794497,t=>{t.v(s=>Promise.all(["static/chunks/2-q2d_mg8eewn.js"].map(s=>t.l(s))).then(()=>s(383983)))},353619,t=>{t.v(s=>Promise.all(["static/chunks/00133qbkud_a1.js"].map(s=>t.l(s))).then(()=>s(311461)))},841717,t=>{t.v(s=>Promise.all(["static/chunks/3wyndekp6gs1e.js"].map(s=>t.l(s))).then(()=>s(905139)))},703232,t=>{t.v(s=>Promise.all(["static/chunks/0a5uw59rid6rr.js"].map(s=>t.l(s))).then(()=>s(7846)))},469411,t=>{t.v(s=>Promise.all(["static/chunks/1tdg7-4y92ae5.js"].map(s=>t.l(s))).then(()=>s(135966)))},81356,t=>{t.v(s=>Promise.all(["static/chunks/27679aiblwt7d.js"].map(s=>t.l(s))).then(()=>s(920400)))},291336,t=>{t.v(s=>Promise.all(["static/chunks/2-r_2y3shm5dp.js"].map(s=>t.l(s))).then(()=>s(154629)))},753065,t=>{t.v(s=>Promise.all(["static/chunks/3zru906admgda.js"].map(s=>t.l(s))).then(()=>s(792599)))},758732,t=>{t.v(s=>Promise.all(["static/chunks/1m_1wucqbm0dk.js"].map(s=>t.l(s))).then(()=>s(341854)))},505358,t=>{t.v(s=>Promise.all(["static/chunks/3n91b_r3lsocx.js"].map(s=>t.l(s))).then(()=>s(273427)))},953493,t=>{t.v(s=>Promise.all(["static/chunks/0ppunhtgdiybw.js"].map(s=>t.l(s))).then(()=>s(468746)))},767374,t=>{t.v(s=>Promise.all(["static/chunks/2e77rof1d6aab.js"].map(s=>t.l(s))).then(()=>s(948350)))},461630,t=>{t.v(s=>Promise.all(["static/chunks/1ua4os8wtpq3w.js"].map(s=>t.l(s))).then(()=>s(200388)))},135353,t=>{t.v(s=>Promise.all(["static/chunks/3_rh0kun_htkr.js"].map(s=>t.l(s))).then(()=>s(720692)))},129817,t=>{t.v(s=>Promise.all(["static/chunks/2wgde6wz3k5s5.js"].map(s=>t.l(s))).then(()=>s(832876)))},666144,t=>{t.v(s=>Promise.all(["static/chunks/2wm8p15qdp-ng.js"].map(s=>t.l(s))).then(()=>s(942760)))},496740,t=>{t.v(s=>Promise.all(["static/chunks/365l-wyhfm_-p.js"].map(s=>t.l(s))).then(()=>s(436913)))},896290,t=>{t.v(s=>Promise.all(["static/chunks/0_81-tq3u4vi9.js"].map(s=>t.l(s))).then(()=>s(67631)))},161379,t=>{t.v(s=>Promise.all(["static/chunks/2ktgnhn-0j381.js"].map(s=>t.l(s))).then(()=>s(397216)))},839484,t=>{t.v(t=>Promise.resolve().then(()=>t(716400)))},867927,986253,t=>{"use strict";var s=t.i(456420);let a={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};a.node;let e=(0,s.default)(a);t.s(["default",0,e],986253),t.s(["ChevronRight",0,e],867927)},482022,t=>{"use strict";var s=t.i(456420);let a={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};a.node;let e=(0,s.default)(a);t.s(["ExternalLink",0,e],482022)},350117,t=>{t.v(s=>Promise.all(["static/chunks/0mkmxdnpoteey.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(36245)))},382528,t=>{t.v(s=>Promise.all(["static/chunks/00h58csdfefay.js","static/chunks/1-2_pusn4n8oh.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/411-m6wb1xycs.js"].map(s=>t.l(s))).then(()=>s(868938)))},705108,t=>{t.v(s=>Promise.all(["static/chunks/0kdfzi54utgbh.js","static/chunks/42kilhgqayez4.js"].map(s=>t.l(s))).then(()=>s(121437)))},143904,t=>{t.v(s=>Promise.all(["static/chunks/0u3ktztrzu1fa.js","static/chunks/1ebh7wwf-wzqn.js"].map(s=>t.l(s))).then(()=>s(482661)))},696017,t=>{"use strict";var s=t.i(60231),a=t.i(419524);t.i(947716);var e=t.i(723685),i=(0,a.__name)(t=>{let{securityLevel:a}=(0,s.getConfig2)(),i=(0,e.select)("body");if("sandbox"===a){let s=(0,e.select)(`#i${t}`),a=s.node()?.contentDocument??document;i=(0,e.select)(a.body)}return i.select(`#${t}`)},"selectSvgElement");t.s(["selectSvgElement",0,i])},502056,t=>{"use strict";var s=t.i(217248),a=t.i(447804),e=t.i(508324),i=t.i(419524),l=(0,i.__name)(({flowchart:t})=>{let s=t?.subGraphTitleMargin?.top??0,a=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:s,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:s+a}},"getSubGraphTitleMargins"),c=new Map;async function n(t,e,i){let l,n;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let h=e.shape?s.shapes[e.shape]:void 0;if(!h)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;"sandbox"===i.config.securityLevel?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),l=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),n=await h(l,e,i)}else l=n=await h(t,e,i);return l.attr("data-look",(0,a.handleUndefinedAttr)(e.look)),e.tooltip&&n.attr("title",e.tooltip),c.set(e.id,l),e.haveCallback&&l.attr("class",l.attr("class")+" clickable"),l}(0,i.__name)(n,"insertNode");var h=(0,i.__name)((t,s)=>{c.set(s.id,t)},"setNodeElem"),r=(0,i.__name)(()=>{c.clear()},"clear"),m=(0,i.__name)(t=>{let s=c.get(t.id);e.log.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let a=t.diff||0;return t.clusterNode?s.attr("transform","translate("+(t.x+a-t.width/2)+", "+(t.y-t.height/2-8)+")"):s.attr("transform","translate("+t.x+", "+t.y+")"),a},"positionNode");t.s(["clear",0,r,"getSubGraphTitleMargins",0,l,"insertNode",0,n,"positionNode",0,m,"setNodeElem",0,h])},369110,t=>{"use strict";var s=t.i(502056),a=t.i(217248),e=t.i(224797),i=t.i(836333),l=t.i(60231),c=t.i(508324),n=t.i(419524);t.i(947716);var h=t.i(723685),r=t.i(883272),m=(0,n.__name)(async(t,s)=>{let n,m,o=(0,l.getConfig2)(),{themeVariables:u,handDrawnSeed:k}=o,{clusterBkg:p,clusterBorder:j}=u,{labelStyles:d,nodeStyles:v,borderStyles:g,backgroundStyles:w}=(0,e.styles2String)(s),P=t.insert("g").attr("class","cluster swimlane "+(s.cssClasses||"")).attr("id",s.id).attr("data-id",s.id).attr("data-et","cluster").attr("data-look",s.look),f=(0,l.evaluate)(o.flowchart.htmlLabels),y="LR"===s.direction,_=P.insert("g").attr("class","cluster-label swimlane-label"),z=await (0,i.createText)(_,s.label,{style:s.labelStyle,useHtmlLabels:f,isNode:!0,width:s.width}),b=z.getBBox();if(f){let t=z.children[0],s=(0,h.select)(z);b=t.getBoundingClientRect(),s.attr("width",b.width),s.attr("height",b.height)}let x=s.padding??0,q=s.width<=b.width+x?b.width+x:s.width;s.width<=b.width+x?s.diff=(q-s.width)/2-x:s.diff=-x;let L=s.height,M=s.y-L/2,C=s.y+L/2,E=s.x-q/2,T=void 0!==s.swimlaneContentTop?s.swimlaneContentTop:M+L/3,S=4*!!y,B=b.height+2*S;if(y){let t=Math.max(B,b.height+2*S),a=E+t,i=Math.max(0,q-t);if("handDrawn"===s.look){let l=r.default.svg(P),c=(0,e.userNodeOverrides)(s,{roughness:.7,fill:p,stroke:j,fillWeight:3,seed:k}),h=(0,e.userNodeOverrides)(s,{roughness:.7,fill:"none",stroke:j,seed:k}),o=l.rectangle(E,M,t,L,c);n=P.insert(()=>o,":first-child");let u=l.rectangle(a,M,i,L,h);m=P.insert(()=>u,":first-child"),n.select("path:nth-child(2)").attr("style",g.join(";")),n.select("path").attr("style",w.join(";").replace("fill","stroke"))}else n=P.insert("rect",":first-child"),m=P.insert("rect",":first-child"),n.attr("class","swimlane-title").attr("style",v).attr("x",E).attr("y",M).attr("width",t).attr("height",L).attr("fill",p).attr("stroke",j),m.attr("class","swimlane-body").attr("style",v).attr("x",a).attr("y",M).attr("width",i).attr("height",L).attr("fill","none").attr("stroke",j);let l=E+t/2,c=s.y;_.attr("transform",`translate(${l}, ${c}) rotate(-90) translate(${-b.width/2}, ${-b.height/2})`)}else{let t=Math.min(B,Math.max(0,T-M)),a=M+t,i=Math.max(0,C-a),l=s.x-q/2;if("handDrawn"===s.look){let c=r.default.svg(P),h=(0,e.userNodeOverrides)(s,{roughness:.7,fill:p,stroke:j,fillWeight:3,seed:k}),o=(0,e.userNodeOverrides)(s,{roughness:.7,fill:"none",stroke:j,seed:k}),u=c.rectangle(l,M,q,t,h);n=P.insert(()=>u,":first-child");let d=c.rectangle(l,a,q,i,o);m=P.insert(()=>d,":first-child"),n.select("path:nth-child(2)").attr("style",g.join(";")),n.select("path").attr("style",w.join(";").replace("fill","stroke"))}else n=P.insert("rect",":first-child"),m=P.insert("rect",":first-child"),n.attr("class","swimlane-title").attr("style",v).attr("x",l).attr("y",M).attr("width",q).attr("height",t).attr("fill",p).attr("stroke",j),m.attr("class","swimlane-body").attr("style",v).attr("x",l).attr("y",a).attr("width",q).attr("height",i).attr("fill","none").attr("stroke",j);let c=s.x-b.width/2,h=M+(t-b.height)/2;_.attr("transform",`translate(${c}, ${h})`)}if(c.log.trace("Swimlane data ",s,JSON.stringify(s)),d){let t=_.select("span");t&&t.attr("style",d)}return s.offsetX=0,s.width=q,s.height=L,s.offsetY=b.height-x/2,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:P,labelBBox:b}},"swimlane"),o=(0,n.__name)(async(t,n)=>{let m,o;c.log.info("Creating subgraph rect for ",n.id,n);let u=(0,l.getConfig2)(),{themeVariables:k,handDrawnSeed:p}=u,{clusterBkg:j,clusterBorder:d}=k,{labelStyles:v,nodeStyles:g,borderStyles:w,backgroundStyles:P}=(0,e.styles2String)(n),f=t.insert("g").attr("class","cluster "+n.cssClasses).attr("id",n.domId).attr("data-look",n.look),y=(0,l.getEffectiveHtmlLabels)(u),_=f.insert("g").attr("class","cluster-label "),z=(m="markdown"===n.labelType?await (0,i.createText)(_,n.label,{style:n.labelStyle,useHtmlLabels:y,isNode:!0,width:n.width}):await (0,a.createLabel_default)(_,n.label,n.labelStyle||"",!1,!0)).getBBox();if((0,l.getEffectiveHtmlLabels)(u)){let t=m.children[0],s=(0,h.select)(m);z=t.getBoundingClientRect(),s.attr("width",z.width),s.attr("height",z.height)}let b=n.width<=z.width+n.padding?z.width+n.padding:n.width;n.width<=z.width+n.padding?n.diff=(b-n.width)/2-n.padding:n.diff=-n.padding;let x=n.height,q=n.x-b/2,L=n.y-x/2;if(c.log.trace("Data ",n,JSON.stringify(n)),"handDrawn"===n.look){let t=r.default.svg(f),s=(0,e.userNodeOverrides)(n,{roughness:.7,fill:j,stroke:d,fillWeight:3,seed:p}),i=t.path((0,a.createRoundedRectPathD)(q,L,b,x,0),s);(o=f.insert(()=>(c.log.debug("Rough node insert CXC",i),i),":first-child")).select("path:nth-child(2)").attr("style",w.join(";")),o.select("path").attr("style",P.join(";").replace("fill","stroke"))}else(o=f.insert("rect",":first-child")).attr("style",g).attr("rx",n.rx).attr("ry",n.ry).attr("x",q).attr("y",L).attr("width",b).attr("height",x);let{subGraphTitleTopMargin:M}=(0,s.getSubGraphTitleMargins)(u);if(_.attr("transform",`translate(${n.x-z.width/2}, ${n.y-n.height/2+M})`),v){let t=_.select("span");t&&t.attr("style",v)}let C=o.node().getBBox();return n.offsetX=0,n.width=C.width,n.height=C.height,n.offsetY=z.height-n.padding/2,n.intersect=function(t){return(0,a.intersect_rect_default)(n,t)},{cluster:f,labelBBox:z}},"rect"),u=(0,n.__name)((t,s)=>{let e=t.insert("g").attr("class","note-cluster").attr("id",s.domId),i=e.insert("rect",":first-child"),l=0*s.padding,c=l/2;i.attr("rx",s.rx).attr("ry",s.ry).attr("x",s.x-s.width/2-c).attr("y",s.y-s.height/2-c).attr("width",s.width+l).attr("height",s.height+l).attr("fill","none");let n=i.node().getBBox();return s.width=n.width,s.height=n.height,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:e,labelBBox:{width:0,height:0}}},"noteGroup"),k=(0,n.__name)(async(t,s)=>{let e,i=(0,l.getConfig2)(),{themeVariables:c,handDrawnSeed:n}=i,{altBackground:m,compositeBackground:o,compositeTitleBackground:u,nodeBorder:k}=c,p=t.insert("g").attr("class",s.cssClasses).attr("id",s.domId).attr("data-id",s.id).attr("data-look",s.look),j=p.insert("g",":first-child"),d=p.insert("g").attr("class","cluster-label"),v=p.append("rect"),g=await (0,a.createLabel_default)(d,s.label,s.labelStyle,void 0,!0),w=g.getBBox();if((0,l.getEffectiveHtmlLabels)(i)){let t=g.children[0],s=(0,h.select)(g);w=t.getBoundingClientRect(),s.attr("width",w.width),s.attr("height",w.height)}let P=0*s.padding,f=(s.width<=w.width+s.padding?w.width+s.padding:s.width)+P;s.width<=w.width+s.padding?s.diff=(f-s.width)/2-s.padding:s.diff=-s.padding;let y=s.height+P,_=s.height+P-w.height-6,z=s.x-f/2,b=s.y-y/2;s.width=f;let x=s.y-s.height/2-P/2+w.height+2;if("handDrawn"===s.look){let t=s.cssClasses.includes("statediagram-cluster-alt"),i=r.default.svg(p),l=s.rx||s.ry?i.path((0,a.createRoundedRectPathD)(z,b,f,y,10),{roughness:.7,fill:u,fillStyle:"solid",stroke:k,seed:n}):i.rectangle(z,b,f,y,{seed:n});e=p.insert(()=>l,":first-child");let c=i.rectangle(z,x,f,_,{fill:t?m:o,fillStyle:t?"hachure":"solid",stroke:k,seed:n});e=p.insert(()=>l,":first-child"),v=p.insert(()=>c)}else(e=j.insert("rect",":first-child")).attr("class","outer").attr("x",z).attr("y",b).attr("width",f).attr("height",y).attr("data-look",s.look),v.attr("class","inner").attr("x",z).attr("y",x).attr("width",f).attr("height",_);return d.attr("transform",`translate(${s.x-w.width/2}, ${b+1-3*!(0,l.getEffectiveHtmlLabels)(i)})`),s.height=e.node().getBBox().height,s.offsetX=0,s.offsetY=w.height-s.padding/2,s.labelBBox=w,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:p,labelBBox:w}},"roundedWithTitle"),p=(0,n.__name)(async(t,n)=>{let m;c.log.info("Creating subgraph rect for ",n.id,n);let o=(0,l.getConfig2)(),{themeVariables:u,handDrawnSeed:k}=o,{clusterBkg:p,clusterBorder:j}=u,{labelStyles:d,nodeStyles:v,borderStyles:g,backgroundStyles:w}=(0,e.styles2String)(n),P=t.insert("g").attr("class","cluster "+n.cssClasses).attr("id",n.domId).attr("data-look",n.look),f=(0,l.getEffectiveHtmlLabels)(o),y=P.insert("g").attr("class","cluster-label "),_=await (0,i.createText)(y,n.label,{style:n.labelStyle,useHtmlLabels:f,isNode:!0,width:n.width}),z=_.getBBox();if((0,l.getEffectiveHtmlLabels)(o)){let t=_.children[0],s=(0,h.select)(_);z=t.getBoundingClientRect(),s.attr("width",z.width),s.attr("height",z.height)}let b=n.width<=z.width+n.padding?z.width+n.padding:n.width;n.width<=z.width+n.padding?n.diff=(b-n.width)/2-n.padding:n.diff=-n.padding;let x=n.height,q=n.x-b/2,L=n.y-x/2;if(c.log.trace("Data ",n,JSON.stringify(n)),"handDrawn"===n.look){let t=r.default.svg(P),s=(0,e.userNodeOverrides)(n,{roughness:.7,fill:p,stroke:j,fillWeight:4,seed:k}),i=t.path((0,a.createRoundedRectPathD)(q,L,b,x,n.rx),s);(m=P.insert(()=>(c.log.debug("Rough node insert CXC",i),i),":first-child")).select("path:nth-child(2)").attr("style",g.join(";")),m.select("path").attr("style",w.join(";").replace("fill","stroke"))}else(m=P.insert("rect",":first-child")).attr("style",v).attr("rx",n.rx).attr("ry",n.ry).attr("x",q).attr("y",L).attr("width",b).attr("height",x);let{subGraphTitleTopMargin:M}=(0,s.getSubGraphTitleMargins)(o);if(y.attr("transform",`translate(${n.x-z.width/2}, ${n.y-n.height/2+M})`),d){let t=y.select("span");t&&t.attr("style",d)}let C=m.node().getBBox();return n.offsetX=0,n.width=C.width,n.height=C.height,n.offsetY=z.height-n.padding/2,n.intersect=function(t){return(0,a.intersect_rect_default)(n,t)},{cluster:P,labelBBox:z}},"kanbanSection"),j={rect:o,squareRect:o,roundedWithTitle:k,noteGroup:u,divider:(0,n.__name)((t,s)=>{let e,{themeVariables:i,handDrawnSeed:c}=(0,l.getConfig2)(),{nodeBorder:n}=i,h=t.insert("g").attr("class",s.cssClasses).attr("id",s.domId).attr("data-look",s.look),m=h.insert("g",":first-child"),o=0*s.padding,u=s.width+o;s.diff=-s.padding;let k=s.height+o,p=s.x-u/2,j=s.y-k/2;if(s.width=u,"handDrawn"===s.look){let t=r.default.svg(h).rectangle(p,j,u,k,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:n,seed:c});e=h.insert(()=>t,":first-child")}else{e=m.insert("rect",":first-child");let t="outer";s.look,t="divider",e.attr("class",t).attr("x",p).attr("y",j).attr("width",u).attr("height",k).attr("data-look",s.look)}return s.height=e.node().getBBox().height,s.offsetX=0,s.offsetY=0,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:h,labelBBox:{}}},"divider"),kanbanSection:p,swimlane:m},d=new Map,v=(0,n.__name)(async(t,s)=>{let a=s.shape||"rect",e=await j[a](t,s);return d.set(s.id,e),e},"insertCluster"),g=(0,n.__name)(()=>{d=new Map},"clear");t.s(["clear",0,g,"insertCluster",0,v])},121292,t=>{"use strict";var s=t.i(369110),a=t.i(382793),e=t.i(502056),i=t.i(217248),l=t.i(447804),c=t.i(60231),n=t.i(508324),h=t.i(419524),r={common:c.common_default,getConfig:c.getConfig,insertCluster:s.insertCluster,insertEdge:a.insertEdge,insertEdgeLabel:a.insertEdgeLabel,insertMarkers:a.markers_default,insertNode:e.insertNode,interpolateToCurve:l.interpolateToCurve,labelHelper:i.labelHelper,log:n.log,positionEdgeLabel:a.positionEdgeLabel},m={},o=(0,h.__name)(t=>{for(let s of t)m[s.name]=s},"registerLayoutLoaders");(0,h.__name)(()=>{o([{name:"dagre",loader:(0,h.__name)(async()=>await t.A(555153),"loader")},{name:"swimlane",loader:(0,h.__name)(async()=>await t.A(12782),"loader")},{name:"cose-bilkent",loader:(0,h.__name)(async()=>await t.A(208503),"loader")}])},"registerDefaultLayoutLoaders")();var u=(0,h.__name)(async(t,s)=>{if(!(t.layoutAlgorithm in m))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let s of t.nodes){let a=s.domId||s.id;s.domId=`${t.diagramId}-${a}`}let a=m[t.layoutAlgorithm],e=await a.loader(),{theme:i,themeVariables:l}=t.config,{useGradient:c,gradientStart:n,gradientStop:h}=l,o=s.attr("id");if(s.append("defs").append("filter").attr("id",`${o}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),s.append("defs").append("filter").attr("id",`${o}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),c){let t=s.append("linearGradient").attr("id",s.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}return e.render(t,s,r,{algorithm:a.algorithm})},"render"),k=(0,h.__name)((t="",{fallback:s="dagre"}={})=>{if(t in m)return t;if(s in m)return n.log.warn(`Layout algorithm ${t} is not registered. Using ${s} as fallback.`),s;throw Error(`Both layout algorithms ${t} and ${s} are not registered.`)},"getRegisteredLayoutAlgorithm");t.s(["getRegisteredLayoutAlgorithm",0,k,"registerLayoutLoaders",0,o,"render",0,u])},110338,t=>{t.v(s=>Promise.all(["static/chunks/2gocl3dq0_h1s.js","static/chunks/2itcfm_igcz5x.js"].map(s=>t.l(s))).then(()=>s(59618)))},4699,t=>{t.v(s=>Promise.all(["static/chunks/01xjer0i_e5z5.js","static/chunks/2itcfm_igcz5x.js"].map(s=>t.l(s))).then(()=>s(595016)))},208503,t=>{t.v(s=>Promise.all(["static/chunks/0vhltcpdssl3-.js","static/chunks/411-m6wb1xycs.js"].map(s=>t.l(s))).then(()=>s(752312)))},342649,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1g6hadfcoz4ag.js"].map(s=>t.l(s))).then(()=>s(447429)))},555153,t=>{t.v(s=>Promise.all(["static/chunks/16mzcd_gvdgbo.js","static/chunks/3lx-n8v_8u7og.js"].map(s=>t.l(s))).then(()=>s(921789)))},121563,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/221-n1wtpkus8.js"].map(s=>t.l(s))).then(()=>s(52278)))},775281,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3oif9bymgqjgd.js"].map(s=>t.l(s))).then(()=>s(75306)))},840094,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3mjwob-a5hhwz.js"].map(s=>t.l(s))).then(()=>s(958133)))},806739,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/266qo7h19xz_m.js"].map(s=>t.l(s))).then(()=>s(486182)))},725135,t=>{t.v(s=>Promise.all(["static/chunks/25pfy8u3vc_bn.js","static/chunks/2qq7e47gpyc_e.js"].map(s=>t.l(s))).then(()=>s(271981)))},257999,t=>{t.v(s=>Promise.all(["static/chunks/1kg8hnvdsweku.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(954776)))},126038,t=>{t.v(s=>Promise.all(["static/chunks/1wrwqqt23_cqy.js"].map(s=>t.l(s))).then(()=>s(868948)))},299022,t=>{t.v(s=>Promise.all(["static/chunks/025bmrgeukcb2.js","static/chunks/2b4v6n9b8htrv.js"].map(s=>t.l(s))).then(()=>s(595502)))},216587,t=>{t.v(s=>Promise.all(["static/chunks/1ztlt8o8gnas8.js","static/chunks/04e-e--5lk26x.js"].map(s=>t.l(s))).then(()=>s(222024)))},405760,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1rh4z578p-h1a.js"].map(s=>t.l(s))).then(()=>s(896515)))},937084,t=>{t.v(s=>Promise.all(["static/chunks/09nk4rn1z6j8b.js","static/chunks/2qq7e47gpyc_e.js"].map(s=>t.l(s))).then(()=>s(722875)))},223045,t=>{t.v(s=>Promise.all(["static/chunks/0x7n81v2cw92f.js"].map(s=>t.l(s))).then(()=>s(239077)))},104423,t=>{t.v(s=>Promise.all(["static/chunks/0oyz95sujd2c7.js"].map(s=>t.l(s))).then(()=>s(547384)))},847615,t=>{t.v(s=>Promise.all(["static/chunks/3s-zbm7kxc46y.js"].map(s=>t.l(s))).then(()=>s(980953)))},265584,t=>{t.v(s=>Promise.all(["static/chunks/14b2ne-5dycww.js"].map(s=>t.l(s))).then(()=>s(582576)))},121612,t=>{t.v(s=>Promise.all(["static/chunks/1-axl1a1s8xi7.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(724854)))},761201,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/38h4_u_fq6ose.js"].map(s=>t.l(s))).then(()=>s(537834)))},480988,t=>{t.v(s=>Promise.all(["static/chunks/0dhmf6y59xjoo.js"].map(s=>t.l(s))).then(()=>s(713179)))},780947,t=>{t.v(s=>Promise.all(["static/chunks/3r7r2d2yc93-y.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(354077)))},775900,t=>{t.v(s=>Promise.all(["static/chunks/14osgsp3aiqpz.js"].map(s=>t.l(s))).then(()=>s(207851)))},650519,t=>{t.v(s=>Promise.all(["static/chunks/3peltyinql2qj.js"].map(s=>t.l(s))).then(()=>s(621500)))},654159,t=>{t.v(s=>Promise.all(["static/chunks/2o4dndk0d68do.js","static/chunks/1u5i-jti87jbo.js"].map(s=>t.l(s))).then(()=>s(801891)))},483976,t=>{t.v(s=>Promise.all(["static/chunks/0p54qye85am3w.js"].map(s=>t.l(s))).then(()=>s(122015)))},99530,t=>{t.v(s=>Promise.all(["static/chunks/0u9ae9k_2g7k3.js","static/chunks/3lx-n8v_8u7og.js","static/chunks/3her9o9_qn46y.js"].map(s=>t.l(s))).then(()=>s(757018)))},633604,t=>{t.v(s=>Promise.all(["static/chunks/2sdwbfs1x5skp.js","static/chunks/3her9o9_qn46y.js"].map(s=>t.l(s))).then(()=>s(196572)))},12782,t=>{t.v(s=>Promise.all(["static/chunks/0_l0vn2teso0z.js"].map(s=>t.l(s))).then(()=>s(619325)))},868278,t=>{t.v(s=>Promise.all(["static/chunks/2m267diam_vib.js","static/chunks/2b4v6n9b8htrv.js"].map(s=>t.l(s))).then(()=>s(557786)))},9691,t=>{t.v(s=>Promise.all(["static/chunks/2udhdtq_z8488.js"].map(s=>t.l(s))).then(()=>s(254768)))},539575,t=>{t.v(s=>Promise.all(["static/chunks/0si45yj1su8y7.js"].map(s=>t.l(s))).then(()=>s(263487)))},85919,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/02slxciv9jt1p.js"].map(s=>t.l(s))).then(()=>s(353883)))},437446,t=>{t.v(s=>Promise.all(["static/chunks/2v_t22-0u_seu.js","static/chunks/0m-pl93u72hp9.js"].map(s=>t.l(s))).then(()=>s(819125)))},514467,t=>{t.v(s=>Promise.all(["static/chunks/1zlldlu99uorc.js"].map(s=>t.l(s))).then(()=>s(477142)))},369582,t=>{t.v(s=>Promise.all(["static/chunks/2hugas7n-e13p.js"].map(s=>t.l(s))).then(()=>s(976823)))},558850,t=>{t.v(s=>Promise.all(["static/chunks/41s9cnvp51p5u.js"].map(s=>t.l(s))).then(()=>s(335871)))}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,457343,e=>{"use strict";var t=e.i(843476),s=e.i(867927),n=e.i(632781),a=e.i(648119),i=e.i(929272),r=e.i(759659),o=e.i(263676),l=e.i(271645),d=e.i(798120),c=e.i(167881),u=e.i(630374),x=e.i(463415),h=e.i(917162),m=e.i(660302),p=e.i(671428),f=e.i(41533),g=e.i(856338),j=e.i(95187);let b=(0,j.createServerReference)("7f038abb37957ba7cb2c522ee43c2d00b63bfd9f8c",j.callServer,void 0,j.findSourceMapURL,"clearFinishedThreadsAction"),k=(0,j.createServerReference)("7f2f806ae17425ff9116581e0777a310cb1cfeeb6a",j.callServer,void 0,j.findSourceMapURL,"deleteThreadAction");var N=e.i(451888),w=e.i(635963),v=e.i(835878),y=e.i(222055),S=e.i(351866),T=e.i(978411),M=e.i(431594),D=e.i(895836),C=e.i(245629),R=e.i(609856),z=e.i(661504),A=e.i(283653),I=e.i(647163),$=e.i(399512);let O="w-36";function F({thread:e,bots:a,open:i,onOpen:r,onStop:o,onDelete:d}){let c="running"===e.status,u=(0,l.useMemo)(()=>(0,T.threadFromRow)(e,a),[e,a]),x=function(e){let t=e.room.questions[0];if(t)return{text:(0,I.plainText)(t.text),tone:I.WAITING_INK};if("waiting"===e.status&&e.ask)return{text:(0,N.isAppStop)(e.ask)?(0,I.plainText)(e.outcome??e.ask.question):e.ask.question,tone:I.WAITING_INK};let s=e.seen;if("cancelled"===e.status)return{text:"Stopped",tone:"text-muted-foreground"};if("done"===e.status)return{text:(0,I.plainText)(e.outcome??"Done"),tone:s?"text-muted-foreground":"text-foreground/80"};for(let t=e.lines.length-1;t>=0;t--){let s=e.lines[t];if("tool"===s.kind)return{text:s.note??s.input,tone:"text-muted-foreground",tool:s.name,shine:!0};if("text"===s.kind)return{text:s.text,tone:"text-muted-foreground",shine:!0};if("user"===s.kind)break}return{text:`${e.bot} is taking it on…`,tone:"text-muted-foreground italic",shine:!0}}(e),h=e.tokens.input+e.tokens.output;return(0,t.jsxs)("div",{className:(0,I.cn)("group/row relative transition-colors",i?"bg-muted/80":"hover:bg-muted/50"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsxs)("button",{type:"button",onClick:r,className:"flex min-w-0 flex-1 items-center gap-3 rounded-md text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)(w.BotMark,{size:40,seed:e.bot,...(0,w.markOf)(e.bot,a),state:c?"thinking":"idle",notify:(0,N.needsThreadReply)(e)||(0,N.isUnread)(e),crossed:"cancelled"===e.status,className:"shrink-0"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:e.label}),e.routineId&&(0,t.jsx)("span",{title:"Started by a routine",className:"shrink-0",children:(0,t.jsx)(M.RoutineMark,{className:"size-3 text-muted-foreground/80"})}),(0,t.jsx)(v.BotRoster,{bots:u.roster}),c&&(0,t.jsx)(n.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"})]}),x&&(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-[13px] leading-snug",children:[x.tool&&(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:x.tool}),x.shine?(0,t.jsx)(m.ShinyText,{text:x.text,speed:2.2,className:"min-w-0 truncate"}):(0,t.jsx)("span",{className:(0,I.cn)("min-w-0 truncate",x.tone),children:x.text})]})]}),(0,t.jsxs)("span",{className:(0,I.cn)("flex shrink-0 flex-col items-end gap-0.5 font-mono text-[11px] leading-4 text-muted-foreground tabular-nums",O),children:[(0,t.jsx)("span",{children:(0,C.whenOf)(e.updatedAt)}),(0,t.jsxs)("span",{className:"max-w-full truncate text-muted-foreground/70",title:h>0?`${e.id} \xb7 in ${(0,I.formatCount)(e.tokens.input)} \xb7 out ${(0,I.formatCount)(e.tokens.output)}`:e.id,children:[e.bot,h>0&&` \xb7 ${(0,I.formatCount)(h)}`]})]}),(0,t.jsx)(s.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground"})]}),(0,t.jsx)(K,{thread:e,onStop:o,onDelete:d})]}),c&&(0,t.jsx)(B,{thread:e})]})}function K({thread:e,onStop:s,onDelete:n,className:o}){let l="running"===e.status||"waiting"===e.status;return(0,t.jsxs)(x.DropdownMenu,{children:[(0,t.jsx)(x.DropdownMenuTrigger,{render:(0,t.jsx)(c.Button,{size:"icon-sm",variant:"ghost","aria-label":"More",className:o}),children:(0,t.jsx)(a.MoreHorizontal,{})}),(0,t.jsxs)(x.DropdownMenuContent,{align:"end",children:[l&&(0,t.jsxs)(x.DropdownMenuItem,{onClick:s,children:[(0,t.jsx)(i.Square,{}),"Stop"]}),(0,t.jsxs)(x.DropdownMenuItem,{variant:"destructive",onClick:n,children:[(0,t.jsx)(r.Trash2,{}),"Delete"]})]})]})}function q({thread:e,whole:s,bots:n,onClose:a,onStop:i,onDelete:r}){let[d,x]=(0,l.useState)(null),h=(0,l.useCallback)(e=>{x(e?.closest("[data-slot=dialog-content]")??null)},[]),[m,f]=(0,l.useState)({}),g=(0,l.useMemo)(()=>e?(0,T.threadFromRow)(e,n):null,[e,n]),j=(0,l.useMemo)(()=>s?(0,T.threadFromRow)(s,n):g?.lines.length?g:null,[s,g,n]),b=e?m[e.id]??null:null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{ref:h,hidden:!0}),(0,t.jsx)(u.Dialog,{open:!!(e&&d),onOpenChange:e=>!e&&a(),modal:!1,disablePointerDismissal:!0,children:(0,t.jsx)(u.DialogPortal,{container:d,children:(0,t.jsx)(u.DialogPopup,{className:"absolute inset-y-0 right-0 z-10 flex w-[min(35rem,calc(100%-13rem))] flex-col border-l border-border/60 bg-popover text-popover-foreground shadow-2xl shadow-black/10 duration-150 data-open:animate-in data-open:fade-in-0 data-open:slide-in-from-right-4 data-closed:animate-out data-closed:fade-out-0 data-closed:slide-out-to-right-4",children:e&&g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2.5 pt-3.5 pr-3 pb-1.5 pl-5",children:[(0,t.jsx)(w.BotMark,{size:28,seed:e.bot,...(0,w.markOf)(e.bot,n),state:"running"===e.status?"thinking":"idle",notify:(0,N.needsThreadReply)(e),crossed:"cancelled"===e.status,className:"shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(u.DialogTitle,{className:"sr-only",children:e.label}),(0,t.jsx)("p",{className:"truncate text-[15px] leading-5 font-semibold",children:e.label}),(0,t.jsxs)("div",{className:"mt-0.5 flex min-w-0 items-center gap-2 font-mono text-[11px] text-muted-foreground",children:[(0,t.jsxs)("span",{title:e.id,className:"min-w-0 truncate",children:[e.bot," · ",(0,C.whenOf)(e.updatedAt)]}),(0,t.jsx)(S.ThreadFacts,{thread:g})]})]}),(0,t.jsx)(K,{thread:e,onStop:()=>i(e),onDelete:()=>r(e),className:"text-muted-foreground"}),(0,t.jsx)(u.DialogClose,{render:(0,t.jsx)(c.Button,{size:"icon-sm",variant:"ghost","aria-label":"Close the thread"}),children:(0,t.jsx)(o.X,{})})]}),j?(0,t.jsx)(S.Conversation,{thread:j,tab:b,onTab:t=>f(s=>({...s,[e.id]:t})),className:"max-h-none min-h-0 flex-1 px-5",tabsClassName:"px-5"}):(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 px-5 py-4",children:[(0,t.jsx)(p.Skeleton,{className:"h-3 w-4/5"}),(0,t.jsx)(p.Skeleton,{className:"h-3 w-3/5"}),(0,t.jsx)(p.Skeleton,{className:"h-3 w-2/3"})]}),(0,t.jsx)("div",{className:"shrink-0 px-5 pt-2 pb-4",children:(0,t.jsx)($.ThreadReply,{thread:{id:e.id,label:e.label,bot:e.bot,ask:e.ask,room:e.room},status:e.status,faces:g.roster,to:b??e.bot})})]})})})})]})}function B({thread:e}){let s=[];if(e.lines.forEach((t,n)=>{if("tool"!==t.kind)return;let a=e.lines[n+1];s.push({step:t,took:a?(0,C.toDate)(a.at).getTime()-(0,C.toDate)(t.at).getTime():null})}),0===s.length)return null;let a=(0,C.toDate)(e.updatedAt).getTime()-(0,C.toDate)(e.createdAt).getTime();return(0,t.jsxs)("div",{className:"pointer-events-none absolute top-[calc(100%-0.75rem)] left-17 z-20 hidden w-96 max-w-[calc(100%-5rem)] rounded-xl bg-background p-3 pb-2 shadow-xl shadow-black/10 ring-1 ring-border/60 group-hover/row:block",children:[(0,t.jsxs)("div",{className:"mb-1.5 flex items-center gap-2 font-mono text-[10px] text-muted-foreground",children:[(0,t.jsx)("span",{children:e.bot}),(0,t.jsx)("span",{className:"opacity-50",children:"·"}),(0,t.jsxs)("span",{children:[s.length," ",1===s.length?"step":"steps"]}),(0,t.jsx)("span",{className:"opacity-50",children:"·"}),(0,t.jsx)("span",{children:P(a)})]}),s.slice(-6).map(({step:e,took:s})=>{let a=(0,y.toolIcon)(e.name);return(0,t.jsxs)("div",{className:"flex h-5.5 items-center gap-2 font-mono text-[11px]",children:[null===s?(0,t.jsx)(n.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"}):(0,t.jsx)(a,{className:"size-3 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"w-24 shrink-0 truncate text-muted-foreground",children:e.name}),null===s?(0,t.jsx)(m.ShinyText,{text:e.note??e.input,speed:2.2,className:"min-w-0 flex-1 truncate"}):(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-foreground",children:e.note??e.input}),(0,t.jsx)("span",{className:"w-10 shrink-0 text-right text-muted-foreground/70 tabular-nums",children:null===s?"":P(s)})]},e.id)})]})}function P(e){let t=Math.max(0,e)/1e3;if(t<10)return`${t.toFixed(1)}s`;if(t<60)return`${Math.round(t)}s`;let s=Math.floor(t/60);return`${s}m ${Math.round(t-60*s)}s`}function L(){return(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsx)(p.Skeleton,{className:"size-10 shrink-0 rounded-full"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-2",children:[(0,t.jsx)(p.Skeleton,{className:"h-3 w-40 max-w-full"}),(0,t.jsx)(p.Skeleton,{className:"h-2.5 w-80 max-w-full"})]}),(0,t.jsxs)("span",{className:(0,I.cn)("flex shrink-0 flex-col items-end gap-1.5",O),children:[(0,t.jsx)(p.Skeleton,{className:"h-2.5 w-12"}),(0,t.jsx)(p.Skeleton,{className:"h-2.5 w-24"})]}),(0,t.jsx)("span",{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"size-7 shrink-0"})]})}e.s(["ThreadSetting",0,function(){let[e,s]=(0,l.useState)(null),[n,a]=(0,l.useState)(""),{data:i}=(0,A.useServerRoute)(d.queryKey.bot),{items:r,isLoading:o,isLoadingMore:u,error:x,hasMore:m,sentinelRef:p}=(0,z.useServerPages)({key:(e,t)=>{if(0===e)return d.queryKey.threadHistory(null);let s=t?.at(-1);return s?d.queryKey.threadHistory((0,C.toDate)(s.updatedAt).toISOString()):null},size:f.PAGE_SIZE}),j=r.find(t=>t.id===e),{data:w}=(0,A.useServerRoute)(e?d.queryKey.thread(e):null),v=w?.id===e?w:void 0;(0,T.useSeenOnDetail)(j);let[y]=(0,R.useServerAction)(g.cancelThreadAction,{onOk:e=>{(0,A.revalidate)(d.queryKey.threads),T.screenActs.announce({kind:"stopped",id:e.id,label:e.label})}}),[S]=(0,R.useServerAction)(k,{onOk:()=>(0,A.revalidate)(d.queryKey.threads)}),[M]=(0,R.useServerAction)(b,{onOk:()=>(0,A.revalidate)(d.queryKey.threads)}),I=n.trim().toLowerCase(),$=I?r.filter(e=>[e.label,e.outcome,e.bot].join(" ").toLowerCase().includes(I)):r,O=async()=>{await h.notify.confirm({title:"Clear finished jobs?",description:"Everything done or stopped goes, messages included. Running and waiting jobs stay.",okText:"Clear",destructive:!0})&&M()},K=async t=>{if(!await h.notify.confirm({title:`Delete "${t.label}"?`,description:"Its messages go with it — nothing can be picked back up.",okText:"Delete",destructive:!0}))return;let n=$.findIndex(e=>e.id===t.id),a=$[n+1]??$[n-1];try{await S(t.id)}catch{return}t.id===e&&s(a?.id??null)};if(o)return(0,t.jsx)(D.SettingSkeleton,{rows:3});if(x)return(0,t.jsx)(D.SettingError,{message:x.message});let B=r.filter(e=>"waiting"===e.status).length,P=r.filter(N.isUnread).length;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.SettingScreen,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(D.SettingRailNote,{children:[r.length," shown",B>0&&` \xb7 ${B} waiting on you`,P>0&&` \xb7 ${P} new result${1===P?"":"s"}`]}),(m||r.some(e=>"done"===e.status||"cancelled"===e.status))&&(0,t.jsx)(c.Button,{variant:"outline",size:"sm",onClick:O,children:"Clear finished"})]}),children:(0,t.jsx)(D.SettingGroup,{filter:(0,t.jsx)(D.SettingFilter,{value:n,onChange:a,placeholder:"Filter by label, bot or word"}),right:I?`${$.length} of ${r.length}`:void 0,children:(0,t.jsxs)(D.SettingItems,{children:[0===$.length?(0,t.jsx)("p",{className:"p-4 text-sm leading-relaxed text-muted-foreground",children:I?"Nothing here matches. Keep scrolling to search further back.":"Nothing yet. When Thursday hands a job to a bot mid-call, it shows up here — while it runs, and after."}):$.map(e=>(0,t.jsx)(F,{thread:e,bots:i,open:e.id===j?.id,onOpen:()=>s(e.id),onStop:()=>y(e.id),onDelete:()=>K(e)},e.id)),(0,t.jsx)(D.SettingMore,{hasMore:m,loading:u,sentinelRef:p,ghost:(0,t.jsx)(L,{}),className:"divide-y divide-border/60"})]})})}),(0,t.jsx)(q,{thread:j,whole:v,bots:i,onClose:()=>s(null),onStop:e=>y(e.id),onDelete:K})]})}],457343)},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},759659,e=>{"use strict";var t=e.i(456420);let s={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};s.node;let n=(0,t.default)(s);e.s(["Trash2",0,n],759659)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,463415,844601,978411,e=>{"use strict";var t=e.i(843476);e.s([],261027),e.i(261027);var n=e.i(271645),o=e.i(733332);let r=n.createContext(void 0);function i(e){let t=n.useContext(r);if(void 0===t&&!e)throw Error((0,o.default)(33));return t}let a=n.createContext(void 0);function s(e){let t=n.useContext(a);if(void 0===t&&!e)throw Error((0,o.default)(36));return t}var l=e.i(552245),u=e.i(879938);let d=n.forwardRef(function(e,t){let{render:n,className:o,style:r,...a}=e,{store:d}=s(),{arrowRef:c,side:p,align:f,arrowUncentered:g,arrowStyles:m}=i(),v=d.useState("open");return(0,l.useRenderElement)("div",e,{ref:[c,t],stateAttributesMapping:u.popupStateMapping,state:{open:v,side:p,align:f,uncentered:g},props:{style:m,"aria-hidden":!0,...a}})}),c=n.createContext(void 0);function p(e=!0){let t=n.useContext(c);if(void 0===t&&!e)throw Error((0,o.default)(25));return t}var f=e.i(56434);let g=n.forwardRef(function(e,t){let{render:n,className:o,style:r,...i}=e,{store:a}=s(),d=a.useState("open"),c=a.useState("mounted"),g=a.useState("transitionStatus"),m=a.useState("lastOpenChangeReason"),v=p();return(0,l.useRenderElement)("div",e,{ref:v?.backdropRef?[t,v.backdropRef]:t,state:{open:d,transitionStatus:g},stateAttributesMapping:u.popupTransitionStateMapping,props:[{role:"presentation",hidden:!c,style:{pointerEvents:m===f.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},i]})});var m=e.i(951437),v=e.i(956789);let h=n.createContext(void 0);var b=e.i(828918),S=e.i(540886),x=e.i(176782),y=e.i(328744),R=e.i(64350);function E(e){let{closeOnClick:t,highlighted:o,id:r,nodeId:i,store:a,typingRef:s,itemRef:l,itemMetadata:u}=e,{events:d}=a.useState("floatingTreeRoot"),c=a.useState("open"),g=p(!0),m=void 0!==g;return n.useMemo(()=>({id:r,role:"menuitem",tabIndex:c&&o?0:-1,onKeyDown(e){" "===e.key&&s?.current&&e.preventDefault()},onMouseMove(e){i&&d.emit("itemhover",{nodeId:i,target:e.currentTarget})},onClick(e){t&&d.emit("close",{domEvent:e,reason:f.REASONS.itemPress})},onMouseUp(e){if(g){let t=g.initialCursorPointRef.current;if(g.initialCursorPointRef.current=null,m&&t&&1>=Math.abs(e.clientX-t.x)&&1>=Math.abs(e.clientY-t.y)||m&&!y.platform.os.mac&&2===e.button)return}l.current&&a.context.allowMouseUpTriggerRef.current&&(!m||2===e.button)&&"regular-item"===u.type&&(0,R.dispatchClickWithModifiers)(l.current,e,{detail:1})}}),[t,o,r,d,i,c,a,s,l,g,m,u])}let I={type:"regular-item"};function k(e){let{closeOnClick:t,disabled:o,highlighted:r,id:i,store:a,typingRef:s=a.context.typingRef,nativeButton:l,itemMetadata:u,nodeId:d}=e,c=n.useRef(null),{getButtonProps:p,buttonRef:f}=(0,S.useButton)({disabled:o,focusableWhenDisabled:!0,native:l,composite:!0}),g=E({closeOnClick:t,highlighted:r,id:i,nodeId:d,store:a,typingRef:s,itemRef:c,itemMetadata:u}),m=n.useCallback(e=>(0,x.mergeProps)(g,{onMouseEnter(){"submenu-trigger"===u.type&&u.setActive()}},e,p),[g,p,u]),v=(0,b.useMergedRefs)(c,f);return n.useMemo(()=>({getItemProps:m,itemRef:v}),[m,v])}var O=e.i(673553),C=e.i(788015);let T={checked:e=>e?{"data-checked":""}:{"data-unchecked":""},...e.i(474354).transitionStatusMapping};var w=e.i(675606);let M=n.forwardRef(function(e,o){let{render:r,className:a,id:u,label:d,nativeButton:c=!1,disabled:p=!1,closeOnClick:g=!1,checked:b,defaultChecked:S,onCheckedChange:x,style:y,...R}=e,E=(0,O.useCompositeListItem)({guess:!0,label:d}),M=i(!0),P=(0,C.useBaseUiId)(u),{store:A}=s(),N=A.useState("disabled"),D=p||N,F=A.useState("isActive",E.index),L=A.useState("itemProps"),[j,H]=(0,m.useControlled)({controlled:b,default:S??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:U,itemRef:B}=k({closeOnClick:g,disabled:D,highlighted:F,id:P,store:A,nativeButton:c,nodeId:M?.context.nodeId,itemMetadata:I}),_=n.useMemo(()=>({disabled:D,highlighted:F,checked:j}),[D,F,j]),Y=(0,l.useRenderElement)("div",e,{state:_,stateAttributesMapping:T,props:[L,{role:"menuitemcheckbox","aria-checked":j,onClick:function(e){let t=(0,w.createChangeEventDetails)(f.REASONS.itemPress,e.nativeEvent,void 0,{preventUnmountOnClose:v.NOOP});x?.(!j,t),t.isCanceled||H(e=>!e)}},R,U],ref:[B,o,E.ref]});return(0,t.jsx)(h.Provider,{value:_,children:Y})});var P=e.i(223910),A=e.i(137584);let N=n.forwardRef(function(e,t){let{render:r,className:i,style:a,keepMounted:s=!1,...u}=e,d=function(){let e=n.useContext(h);if(void 0===e)throw Error((0,o.default)(30));return e}(),c=n.useRef(null),{transitionStatus:p,mounted:f,setMounted:g}=(0,P.useTransitionStatus)(d.checked);(0,A.useOpenChangeComplete)({batch:!0,enabled:!d.checked,open:d.checked,ref:c,onComplete(){d.checked||g(!1)}});let m={checked:d.checked,disabled:d.disabled,highlighted:d.highlighted,transitionStatus:p};return(0,l.useRenderElement)("span",e,{state:m,ref:[t,c],stateAttributesMapping:T,props:{"aria-hidden":!0,...u},enabled:s||f})}),D=n.createContext(void 0),F=n.forwardRef(function(e,o){let{render:r,className:i,style:a,...s}=e,[u,d]=n.useState(void 0),c=(0,l.useRenderElement)("div",e,{ref:o,props:{role:"group","aria-labelledby":u,...s}});return(0,t.jsx)(D.Provider,{value:d,children:c})});var L=e.i(146376);let j=n.forwardRef(function(e,t){let{render:r,className:i,style:a,id:s,...u}=e,d=(0,C.useBaseUiId)(s),c=function(){let e=n.useContext(D);if(void 0===e)throw Error((0,o.default)(31));return e}();return(0,L.useIsoLayoutEffect)(()=>(c(d),()=>{c(e=>e===d?void 0:e)}),[c,d]),(0,l.useRenderElement)("div",e,{ref:t,props:{id:d,"aria-hidden":!0,...u}})}),H=n.forwardRef(function(e,t){let{render:n,className:o,id:r,label:a,nativeButton:u=!1,disabled:d=!1,closeOnClick:c=!0,style:p,...f}=e,g=(0,O.useCompositeListItem)({guess:!0,label:a}),m=i(!0),v=(0,C.useBaseUiId)(r),{store:h}=s(),b=h.useState("disabled"),S=d||b,x=h.useState("isActive",g.index),y=h.useState("itemProps"),{getItemProps:R,itemRef:E}=k({closeOnClick:c,disabled:S,highlighted:x,id:v,store:h,nativeButton:u,nodeId:m?.context.nodeId,itemMetadata:I});return(0,l.useRenderElement)("div",e,{state:{disabled:S,highlighted:x},props:[y,f,R],ref:[E,t,g.ref]})}),U=n.forwardRef(function(e,t){let{render:o,className:r,id:a,label:u,closeOnClick:d=!1,style:c,...p}=e,f=n.useRef(null),g=(0,O.useCompositeListItem)({guess:!0,label:u}),m=i(!0),v=m?.context.nodeId,h=(0,C.useBaseUiId)(a),{store:b}=s(),y=b.useState("isActive",g.index),R=b.useState("itemProps"),k=b.context.typingRef,{getButtonProps:T,buttonRef:w}=(0,S.useButton)({native:!1,composite:!0}),M=E({closeOnClick:d,highlighted:y,id:h,nodeId:v,store:b,typingRef:k,itemRef:f,itemMetadata:I});return(0,l.useRenderElement)("a",e,{state:{highlighted:y},props:[R,p,function(e){return(0,x.mergeProps)(M,e,T)}],ref:[f,w,t,g.ref]})});var B=e.i(61487),_=e.i(431157),Y=e.i(96533),z=e.i(673327),G=e.i(253984);let K=n.forwardRef(function(e,o){let{render:r,className:a,style:d,finalFocus:c,...p}=e,{store:g}=s(),{side:m,align:v}=i(),h=null!=(0,Y.useToolbarRootContext)(!0),b=g.useState("open"),S=g.useState("transitionStatus"),x=g.useState("popupProps"),y=g.useState("mounted"),R=g.useState("instantType"),E=g.useState("activeTriggerElement"),I=g.useState("parent"),k=g.useState("lastOpenChangeReason"),O=g.useState("rootId"),C=g.useState("floatingRootContext"),T=g.useState("floatingTreeRoot"),M=g.useState("closeDelay"),P=g.useState("hoverEnabled"),N=g.useState("disabled"),D=g.useState("openMethod"),F="context-menu"===I.type;(0,A.useOpenChangeComplete)({open:b,ref:g.context.popupRef,onComplete(){b&&g.context.onOpenChangeComplete?.(!0)}}),n.useEffect(()=>{function e(e){g.setOpen(!1,(0,w.createChangeEventDetails)(e.reason,e.domEvent))}return T.events.on("close",e),()=>{T.events.off("close",e)}},[T.events,g]),(0,_.useHoverFloatingInteraction)(C,{enabled:P&&!N&&!F&&"menubar"!==I.type,closeDelay:M});let L=g.useStateSetter("popupElement"),j={transitionStatus:S,side:m,align:v,open:b,nested:"menu"===I.type,instant:R},H=(0,l.useRenderElement)("div",e,{state:j,ref:[o,g.context.popupRef,L],stateAttributesMapping:u.popupTransitionStateMapping,props:[x,{onKeyDown(e){h&&z.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,G.getDisabledMountTransitionStyles)(S),p,{"data-rootownerid":O}]}),U=void 0===I.type||F;return(E||"menubar"===I.type&&k!==f.REASONS.outsidePress)&&(U=!0),(0,t.jsx)(B.FloatingFocusManager,{context:C,openInteractionType:D,modal:F,disabled:!y,returnFocus:void 0===c?U:c,initialFocus:"menu"!==I.type,restoreFocus:!0,externalTree:"menubar"!==I.type?T:void 0,previousFocusableElement:E,nextFocusableElement:void 0===I.type?g.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:void 0===I.type?g.context.beforeContentFocusGuardRef:void 0,children:H})});var V=e.i(726674);let W=n.createContext(void 0),q=n.forwardRef(function(e,n){let{keepMounted:o=!1,...r}=e,{store:i,parent:a}=s();if(!(i.useState("mounted")||o))return null;let l="menu"===a.type||"menubar"===a.type?"group":void 0;return(0,t.jsx)(W.Provider,{value:o,children:(0,t.jsx)(V.FloatingPortal,{ref:n,...r,portalOwnerRole:l})})});var J=e.i(144394),$=e.i(439957),X=e.i(46420),Q=e.i(923706),Z=e.i(53687),ee=e.i(426),et=e.i(638396),en=e.i(222640),eo=e.i(789579),er=e.i(33383);let ei=n.forwardRef(function(e,i){let{anchor:a,positionMethod:l="absolute",className:u,render:d,side:c,align:g,sideOffset:m=0,alignOffset:v=0,collisionBoundary:h="clipping-ancestors",collisionPadding:b=5,arrowPadding:S=5,sticky:x=!1,disableAnchorTracking:y=!1,collisionAvoidance:R=et.DROPDOWN_COLLISION_AVOIDANCE,style:E,...I}=e,{store:k}=s(),O=function(){let e=n.useContext(W);if(void 0===e)throw Error((0,o.default)(32));return e}(),C=p(!0),T=k.useState("parent"),M=k.useState("floatingRootContext"),P=k.useState("floatingTreeRoot"),A=k.useState("mounted"),N=k.useState("open"),D=k.useState("modal"),F=k.useState("openMethod"),j=k.useState("activeTriggerElement"),H=k.useState("transitionStatus"),U=k.useState("positionerElement"),B=k.useState("instantType"),_=k.useState("adaptiveOrigin"),Y=k.useState("lastOpenChangeReason"),z=k.useState("floatingNodeId"),G=k.useState("floatingParentNodeId"),K=M.useState("domReferenceElement"),V=n.useRef(null),q=(0,en.useAnimationsFinished)(U),ei=a,ea=m,es=v,el=g,eu=R;"context-menu"===T.type&&(ei=a??T.context?.anchor,el=el??"start",c||"center"===el||(es=e.alignOffset??2,ea=e.sideOffset??-5));let ed=c,ec=el;"menu"===T.type?(ed=ed??"inline-end",ec=ec??"start",eu=e.collisionAvoidance??et.POPUP_COLLISION_AVOIDANCE):"menubar"===T.type&&(ed=ed??("vertical"===T.context.orientation?"inline-end":"bottom"),ec=ec??"start");let ep="context-menu"===T.type,ef=(0,Q.useAnchorPositioning)({anchor:ei,floatingRootContext:M,positionMethod:C?"fixed":l,mounted:A,side:ed,sideOffset:ea,align:ec,alignOffset:es,arrowPadding:ep?0:S,collisionBoundary:h,collisionPadding:b,sticky:x,nodeId:z,keepMounted:O,disableAnchorTracking:y,collisionAvoidance:eu,shift:ep?{crossAxis:!("side"in eu&&"flip"===eu.side),rootBoundary:"layoutViewport"}:void 0,externalTree:P,adaptiveOrigin:_});n.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===z&&k.set("hoverEnabled",!1),e.nodeId!==z&&e.parentNodeId===k.select("floatingParentNodeId")&&k.setOpen(!1,(0,w.createChangeEventDetails)(f.REASONS.siblingOpen)))}return P.events.on("menuopenchange",e),()=>{P.events.off("menuopenchange",e)}},[k,P.events,z]),n.useEffect(()=>{if(null!=k.select("floatingParentNodeId"))return P.events.on("menuopenchange",e),()=>{P.events.off("menuopenchange",e)};function e(e){if(e.open||e.nodeId!==k.select("floatingParentNodeId"))return;let t=e.reason??f.REASONS.siblingOpen;k.setOpen(!1,(0,w.createChangeEventDetails)(t))}},[P.events,k]);let eg=(0,$.useTimeout)();n.useEffect(()=>{N||eg.clear()},[N,eg]),n.useEffect(()=>{function e(e){if(N&&e.nodeId===k.select("floatingParentNodeId"))if(e.target&&j&&j!==e.target){let e=k.select("closeDelay");e>0?eg.isStarted()||eg.start(e,()=>{k.setOpen(!1,(0,w.createChangeEventDetails)(f.REASONS.siblingOpen))}):k.setOpen(!1,(0,w.createChangeEventDetails)(f.REASONS.siblingOpen))}else eg.clear()}return P.events.on("itemhover",e),()=>{P.events.off("itemhover",e)}},[P.events,N,j,k,eg]),n.useEffect(()=>{let e={open:N,nodeId:z,parentNodeId:G,reason:k.select("lastOpenChangeReason")};P.events.emit("menuopenchange",e)},[P.events,N,k,z,G]),(0,L.useIsoLayoutEffect)(()=>{let e=V.current;if(K&&(V.current=K),e&&K&&K!==e){k.set("instantType",void 0);let e=new AbortController;return q(()=>{k.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[K,q,k]);let em={open:N,side:ef.side,align:ef.align,anchorHidden:ef.anchorHidden,nested:"menu"===T.type,instant:B},ev="menubar"===T.type&&T.context.modal,eh=D&&Y!==f.REASONS.triggerHover;(0,er.useAnchoredPopupScrollLock)(N&&(ev||eh),"touch"===F,U,j);let eb=(0,eo.usePositioner)(e,em,{styles:ef.positionerStyles,transitionStatus:H,props:I,refs:[i,k.useStateSetter("positionerElement")],hidden:!A,inert:!N}),eS=A&&"menu"!==T.type&&("menubar"!==T.type&&D&&Y!==f.REASONS.triggerHover||"menubar"===T.type&&T.context.modal),ex=null;return"menubar"===T.type?ex=T.context.contentElement:void 0===T.type&&(ex=j),(0,t.jsxs)(r.Provider,{value:ef,children:[eS&&(0,t.jsx)(ee.InternalBackdrop,{ref:"context-menu"===T.type||"nested-context-menu"===T.type?T.context.internalBackdropRef:null,inert:(0,J.inertValue)(!N),cutout:ex}),(0,t.jsx)(X.FloatingNode,{id:z,children:(0,t.jsx)(Z.CompositeList,{elementsRef:k.context.itemDomElements,labelsRef:k.context.itemLabels,children:eb})})]})});var ea=e.i(667865);let es=n.createContext(void 0),el=n.memo(n.forwardRef(function(e,o){let{render:r,className:i,value:a,defaultValue:s,onValueChange:u,disabled:d=!1,style:c,"aria-labelledby":p,...f}=e,[g,v]=n.useState(void 0),[h,b]=(0,m.useControlled)({controlled:a,default:s,name:"MenuRadioGroup"}),S=(0,ea.useStableCallback)((e,t)=>{u?.(e,t),t.isCanceled||b(e)}),x=(0,l.useRenderElement)("div",e,{state:{disabled:d},ref:o,props:{role:"group","aria-labelledby":p??g,"aria-disabled":d||void 0,...f}}),y=n.useMemo(()=>({value:h,setValue:S,disabled:d}),[h,S,d]);return(0,t.jsx)(D.Provider,{value:v,children:(0,t.jsx)(es.Provider,{value:y,children:x})})})),eu=n.createContext(void 0),ed=n.forwardRef(function(e,r){let{render:a,className:u,id:d,label:c,nativeButton:p=!1,disabled:g=!1,closeOnClick:m=!1,value:h,style:b,...S}=e,x=(0,O.useCompositeListItem)({guess:!0,label:c}),y=i(!0),R=(0,C.useBaseUiId)(d),{store:E}=s(),M=E.useState("isActive",x.index),P=E.useState("itemProps"),{value:A,setValue:N,disabled:D}=function(){let e=n.useContext(es);if(void 0===e)throw Error((0,o.default)(34));return e}(),F=E.useState("disabled"),L=g||D||F,j=A===h,{getItemProps:H,itemRef:U}=k({closeOnClick:m,disabled:L,highlighted:M,id:R,store:E,nativeButton:p,nodeId:y?.context.nodeId,itemMetadata:I}),B=n.useMemo(()=>({disabled:L,highlighted:M,checked:j}),[L,M,j]),_=(0,l.useRenderElement)("div",e,{state:B,stateAttributesMapping:T,props:[P,{role:"menuitemradio","aria-checked":j,onClick:function(e){N(h,(0,w.createChangeEventDetails)(f.REASONS.itemPress,e.nativeEvent,void 0,{preventUnmountOnClose:v.NOOP}))}},S,H],ref:[U,r,x.ref]});return(0,t.jsx)(eu.Provider,{value:B,children:_})}),ec=n.forwardRef(function(e,t){let{render:r,className:i,style:a,keepMounted:s=!1,...u}=e,d=function(){let e=n.useContext(eu);if(void 0===e)throw Error((0,o.default)(35));return e}(),c=n.useRef(null),{transitionStatus:p,mounted:f,setMounted:g}=(0,P.useTransitionStatus)(d.checked);(0,A.useOpenChangeComplete)({batch:!0,enabled:!d.checked,open:d.checked,ref:c,onComplete(){d.checked||g(!1)}});let m={checked:d.checked,disabled:d.disabled,highlighted:d.highlighted,transitionStatus:p};return(0,l.useRenderElement)("span",e,{state:m,stateAttributesMapping:T,ref:[t,c],props:{"aria-hidden":!0,...u},enabled:s||f})});var ep=e.i(883977),ef=e.i(388940),eg=e.i(896499),em=e.i(17989),ev=e.i(260891),eh=e.i(736760),eb=e.i(350527);let eS=n.createContext(null);function ex(e){let t=n.useContext(eS);if(null===t&&!e)throw Error((0,o.default)(5));return t}var ey=e.i(872855),eR=e.i(32199),eE=e.i(301252),eI=e.i(379248),ek=e.i(18478),eO=e.i(116786),eC=e.i(990627);let eT={...eO.popupStoreSelectors,disabled:e=>"menubar"===e.parent.type&&e.parent.context.disabled||e.disabled,modal:e=>(void 0===e.parent.type||"context-menu"===e.parent.type)&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>"menu"===e.parent.type?e.parent.store.select("rootId"):void 0!==e.parent.type?e.parent.context.rootId:e.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>"menu"===e.parent.type?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>e.keyboardEventRelay?e.keyboardEventRelay:"menu"===e.parent.type?e.parent.store.select("keyboardEventRelay"):void 0};class ew extends eE.ReactStore{constructor(e,t,n=!1){const o=new eC.PopupTriggerMap;super(eP(o,t,n,e),eM(o),eT),this.unsubscribeParentListener=this.observe("parent",e=>{if(this.unsubscribeParentListener?.(),"menu"===e.type){let t=e.store.select("rootId"),n=e.store.select("floatingTreeRoot"),o=e.store.select("keyboardEventRelay");this.unsubscribeParentListener=e.store.subscribe(()=>{let r=e.store.select("rootId"),i=e.store.select("floatingTreeRoot"),a=e.store.select("keyboardEventRelay");(t!==r||n!==i||o!==a)&&(t=r,n=i,o=a,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}void 0!==e.type&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit("setOpen",{open:e,eventDetails:t})}unsubscribeParentListener=null}function eM(e){return{positionerRef:n.createRef(),popupRef:n.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:n.createRef(),beforeContentFocusGuardRef:n.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function eP(e,t,n=!1,o){return{...(0,eO.createInitialPopupStoreState)(e,t,n),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new eI.FloatingTreeStore,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:v.EMPTY_OBJECT,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...o}}var eA=e.i(264111);let eN=n.createContext(void 0);function eD(){return n.useContext(eN)}let eF=(0,eg.fastComponent)(function(e){var o,r,i;let l,{children:u,open:d,onOpenChange:c,onOpenChangeComplete:g,defaultOpen:m=!1,disabled:h=!1,modal:b,loopFocus:S=!0,orientation:y="vertical",actionsRef:R,closeParentOnEsc:E=!1,handle:I,triggerId:k,defaultTriggerId:O=null,highlightItemOnHover:C=!0}=e,T=p(!0),M=s(!0),P=ex(!0),A=eD(),N=n.useMemo(()=>A&&M?{type:"menu",store:M.store}:P?{type:"menubar",context:P}:T&&!M?{type:"context-menu",context:T}:{type:void 0},[T,M,P,A]),D=(0,ep.useId)(),F=(0,ep.useId)(),j=(0,X.useFloatingParentNodeId)(),H="menu"===N.type?N.store:void 0,U=(d??m)&&H?.state.transitionStatus==="starting",B=(0,ef.useRefWithInit)(()=>U?H?.state.instantType:void 0).current,_=(o={open:m,openProp:d,activeTriggerId:O,triggerIdProp:k,parent:N,disabled:h,highlightItemOnHover:C,modal:void 0===N.type?b:void 0,rootId:D,instantType:B},r=F,i=null!=j,(0,ef.useRefWithInit)(()=>new ew(o,r,i)).current);_.useControlledProp("openProp",d),_.useControlledProp("triggerIdProp",k),_.useContextCallback("onOpenChangeComplete",g);let Y=_.useState("floatingTreeRoot"),z=(0,X.useFloatingNodeId)(Y),G=_.useState("open"),K=_.useState("activeTriggerElement"),V=_.useState("positionerElement"),W=_.useState("hoverEnabled"),q=_.useState("disabled"),J=_.useState("lastOpenChangeReason"),Q=_.useState("parent"),Z=_.useState("activeIndex"),ee=_.useState("payload"),eo=_.useState("floatingParentNodeId"),er=n.useRef(null),ei=n.useRef("context-menu"!==Q.type),es=(0,$.useTimeout)(),el=n.useRef(!0),eu=(0,$.useTimeout)(),ed=null!=eo,{openMethod:ec,triggerProps:eg}=(0,eR.useOpenInteractionType)(G);_.useSyncedValues({disabled:h,highlightItemOnHover:C,modal:void 0===Q.type?b:void 0,openMethod:ec,rootId:D}),(0,eA.useImplicitActiveTrigger)(_);let{forceUnmount:eS,transitionStatus:eE}=(0,eA.useOpenStateTransitions)(G,_,()=>{_.set("allowMouseEnter",!1)},U),eI=(0,en.useAnimationsFinished)(_.context.popupRef);n.useEffect(()=>{if(void 0===B)return;let e=()=>{_.state.instantType===B&&_.set("instantType",void 0)};if(!G)return void e();if(void 0!==eE)return;if(null==_.context.popupRef.current)return void e();let t=new AbortController;return eI(e,t.signal),()=>{t.abort()}},[B,G,eE,eI,_]),(0,L.useIsoLayoutEffect)(()=>{T&&!M?_.update({parent:{type:"context-menu",context:T},floatingNodeId:z,floatingParentNodeId:j}):M&&_.update({floatingNodeId:z,floatingParentNodeId:j})},[T,M,z,j,_]),n.useEffect(()=>{if(G||(er.current=null),"context-menu"===Q.type){if(!G){es.clear(),ei.current=!1;return}es.start(500,()=>{ei.current=!0})}},[es,G,Q.type]),(0,L.useIsoLayoutEffect)(()=>{G||W||_.set("hoverEnabled",!0)},[G,W,_]);let ek=(0,ea.useStableCallback)((e,t)=>{let n=t.reason;if(!e&&!_.select("open")||G===e&&t.trigger===K&&J===n)return;let o=(0,eA.attachPreventUnmountOnClose)(t);if(e||null!=t.trigger||(t.trigger=K??void 0),c?.(e,t),t.isCanceled)return;_.state.floatingRootContext.dispatchOpenChange(e,t);let r=t.event;if(!1===e&&r?.type==="click"&&"touch"===r.pointerType&&!el.current)return;e&&n===f.REASONS.triggerFocus?(el.current=!1,eu.start(300,()=>{el.current=!0})):(el.current=!0,eu.clear());let i=(n===f.REASONS.triggerPress||n===f.REASONS.itemPress)&&0===r.detail,a=!e&&(n===f.REASONS.escapeKey||null==n);er.current=t.event;let s=(0,eA.createPopupOpenState)(_.state,e,t.trigger,o());s.openChangeReason=n,"menubar"===Q.type&&(n===f.REASONS.triggerFocus||n===f.REASONS.focusOut||n===f.REASONS.triggerHover||n===f.REASONS.listNavigation||n===f.REASONS.siblingOpen)?s.instantType="group":i||a?s.instantType=i?"click":"dismiss":s.instantType=void 0,_.update(s)}),eO=(0,eb.useSyncedFloatingRootContext)({popupStore:_,floatingRootContext:_.state.floatingRootContext,floatingId:F,nested:null!=j,onOpenChange:ek}),eC=eO.context.events;(0,L.useIsoLayoutEffect)(()=>{let e=({open:e,eventDetails:t})=>ek(e,t);return eC.on("setOpen",e),()=>{eC?.off("setOpen",e)}},[eC,ek]);let eT=n.useCallback(()=>{_.setOpen(!1,(0,w.createChangeEventDetails)(f.REASONS.imperativeAction))},[_]);n.useImperativeHandle(R,()=>({unmount:eS,close:eT}),[eS,eT]),"context-menu"===Q.type&&(l=Q.context),n.useImperativeHandle(l?.positionerRef,()=>V,[V]),n.useImperativeHandle(l?.actionsRef,()=>({setOpen:ek}),[ek]);let eM=(0,em.useDismiss)(eO,{enabled:!q,bubbles:{escapeKey:E&&"menu"===Q.type},outsidePress:()=>"context-menu"!==Q.type||er.current?.type==="contextmenu"||ei.current,externalTree:ed?Y:void 0}),eP=(0,ey.useDirection)(),eN=n.useCallback(e=>{_.select("activeIndex")!==e&&_.set("activeIndex",e)},[_]),eF=(0,ev.useListNavigation)(eO,{enabled:!q,listRef:_.context.itemDomElements,activeIndex:Z,nested:void 0!==Q.type,loopFocus:S,orientation:y,parentOrientation:"menubar"===Q.type?Q.context.orientation:void 0,rtl:"rtl"===eP,disabledIndices:v.EMPTY_ARRAY,onNavigate:eN,openOnArrowKeyDown:"context-menu"!==Q.type,externalTree:ed?Y:void 0,focusItemOnHover:C}),eL=n.useCallback(e=>{_.context.typingRef.current=e},[_]),ej=(0,eh.useTypeahead)(eO,{enabled:!q,listRef:_.context.itemLabels,elementsRef:_.context.itemDomElements,activeIndex:Z,resetMs:et.TYPEAHEAD_RESET_MS,onMatch:e=>{G&&e!==Z&&_.set("activeIndex",e)},onTyping:eL}),eH=n.useMemo(()=>{let e=(0,x.mergeProps)(ej.reference,eF.reference,eM.reference,{onMouseMove(){_.set("allowMouseEnter",!0)}},eg);return e["aria-haspopup"]="menu",e["aria-expanded"]=G,e},[_,ej.reference,eF.reference,eM.reference,eg,G]),eU=n.useMemo(()=>{let e=(0,x.mergeProps)(eF.trigger,eM.trigger,eg);return e["aria-haspopup"]="menu",e["aria-expanded"]=!1,e},[eF.trigger,eM.trigger,eg]);(0,ef.useRefWithInit)(()=>(_.update({inactiveTriggerProps:eU}),null));let eB=n.useMemo(()=>(0,x.mergeProps)(eA.FOCUSABLE_POPUP_PROPS,{id:F,role:"menu","aria-orientation":"horizontal"===y?"horizontal":void 0,"aria-labelledby":K?.id,onMouseMove(){_.set("allowMouseEnter",!0),"menu"===Q.type&&_.set("hoverEnabled",!1)},onClick(){_.select("hoverEnabled")&&_.set("hoverEnabled",!1)},onKeyDown(e){let t=_.select("keyboardEventRelay");t&&!e.isPropagationStopped()&&t(e)}},ej.floating,eF.floating,eM.floating),[K,F,y,Q.type,_,ej.floating,eF.floating,eM.floating]),e_=eF.item??v.EMPTY_OBJECT;(0,eA.usePopupInteractionProps)(_,{floatingRootContext:eO,activeTriggerProps:eH,inactiveTriggerProps:eU,popupProps:eB,itemProps:e_});let eY=n.useMemo(()=>({store:_,parent:N}),[_,N]),ez=(0,t.jsxs)(a.Provider,{value:eY,children:[I&&(0,t.jsx)(eA.PopupHandleAttachment,{handle:I,store:_}),"function"==typeof u?u({payload:ee}):u]});return void 0===Q.type||"context-menu"===Q.type?(0,t.jsx)(X.FloatingTree,{externalTree:Y,children:ez}):ez});var eL=e.i(108868),ej=e.i(650316),eH=e.i(385689),eU=e.i(413082),eB=e.i(872135),e_=e.i(584446),eY=e.i(264042),ez=e.i(348990),eG=e.i(838452),eK=e.i(229315),eV=e.i(459636),eW=e.i(346570),eq=e.i(152535);let eJ=(0,eg.fastComponentRef)(function(e,r){let i,{render:a,className:d,style:c,disabled:p=!1,nativeButton:g=!0,id:m,openOnHover:h,delay:b=100,closeDelay:y=0,handle:R,payload:E,...I}=e,k=s(!0),O=(0,eV.usePopupHandleStore)(R)??k?.store;if(!O)throw Error((0,o.default)(85));let T=(0,C.useBaseUiId)(m),w=O.useState("isTriggerActive",T),M=O.useState("floatingRootContext"),P=O.useState("isOpenedByTrigger",T),A=O.useState("triggerPopupId",T),N=n.useRef(null),D=(i=ex(!0),n.useMemo(()=>i?{type:"menubar",context:i}:{type:void 0},[i])),F=(0,eG.useCompositeRootContext)(!0),j=(0,X.useFloatingTree)(),H=n.useMemo(()=>j??new eI.FloatingTreeStore,[j]),U=(0,X.useFloatingNodeId)(H),B=(0,X.useFloatingParentNodeId)(),{registerTrigger:_,isMountedByThisTrigger:Y}=(0,eA.useTriggerDataForwarding)(T,N,O,{payload:E,closeDelay:y,parent:D,floatingTreeRoot:H,floatingNodeId:U,floatingParentNodeId:B,keyboardEventRelay:F?.relayKeyboardEvent}),z="menubar"===D.type,G=O.useState("disabled"),K=p||G||z&&D.context.disabled,{getButtonProps:V,buttonRef:W}=(0,S.useButton)({disabled:K,native:g});n.useEffect(()=>{P||void 0!==D.type||(O.context.allowMouseUpTriggerRef.current=!1)},[O,P,D.type]);let q=n.useRef(null),J=(0,$.useTimeout)(),Q=(0,ea.useStableCallback)(e=>{if(!q.current)return;J.clear(),O.context.allowMouseUpTriggerRef.current=!1;let t=e.target;(0,e_.contains)(q.current,t)||(0,e_.contains)(O.select("positionerElement"),t)||t===q.current||null!=t&&function e(t){return(0,eK.isHTMLElement)(t)&&t.hasAttribute("data-rootownerid")?t.getAttribute("data-rootownerid"):(0,eK.isLastTraversableNode)(t)?void 0:e((0,eK.getParentNode)(t))}(t)===O.select("rootId")||(0,eY.isMouseWithinBounds)(e,q.current)||H.events.emit("close",{domEvent:e,reason:f.REASONS.cancelOpen})});n.useEffect(()=>{P&&O.select("lastOpenChangeReason")===f.REASONS.triggerHover&&(0,eL.ownerDocument)(q.current).addEventListener("mouseup",Q,{once:!0})},[P,Q,O]);let Z=z&&D.context.hasSubmenuOpen,ee=h??Z,en=(0,eB.useHoverReferenceInteraction)(M,{enabled:ee&&!K&&(!z||Z&&!Y),handleClose:(0,ej.safePolygon)({blockPointerEvents:!z}),mouseOnly:!0,move:!1,restMs:void 0===D.type?b:void 0,delay:{close:y},triggerElementRef:N,externalTree:H,isActiveTrigger:w,isClosing:()=>"ending"===O.select("transitionStatus")}),eo=function(e,t){let o=(0,$.useTimeout)(),[r,i]=n.useState(!1);return(0,L.useIsoLayoutEffect)(()=>{e&&t===f.REASONS.triggerHover?(i(!0),o.start(et.PATIENT_CLICK_THRESHOLD,()=>{i(!1)})):e||(o.clear(),i(!1))},[e,t,o]),r}(P,O.select("lastOpenChangeReason")),er=(0,eH.useClick)(M,{enabled:!K,event:P&&z?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:void 0===D.type&&eo}),ei=(0,eU.useFocus)(M,{enabled:!K&&Z}),es=function(e){let{enabled:t=!0,mouseDownAction:o,open:r}=e,i=n.useRef(!1);return n.useMemo(()=>t?{onMouseDown:e=>{("open"===o&&!r||"close"===o&&r)&&(i.current=!0,(0,eL.ownerDocument)(e.currentTarget).addEventListener("click",()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:v.EMPTY_OBJECT,[t,o,r])}({open:P,enabled:z,mouseDownAction:"open"}),el=n.useMemo(()=>(0,x.mergeProps)(ei.reference,er.reference),[ei.reference,er.reference]),eu=O.useState("triggerProps",Y),{preFocusGuardRef:ed,handlePreFocusGuardFocus:ec,handleFocusTargetFocus:ep}=(0,eW.useTriggerFocusGuards)(O,N),ef={disabled:K,open:P},eg=[q,r,W,_,N],em=[el,en??v.EMPTY_OBJECT,eu,{"aria-haspopup":"menu","aria-controls":A,id:T,onMouseDown:e=>{O.select("open")||(J.start(200,()=>{O.context.allowMouseUpTriggerRef.current=!0}),(0,eL.ownerDocument)(e.currentTarget).addEventListener("mouseup",Q,{once:!0}))}},z?{role:"menuitem"}:{},es,I,V],ev=(0,l.useRenderElement)("button",e,{enabled:!z,stateAttributesMapping:u.pressableTriggerOpenStateMapping,state:ef,ref:eg,props:em});return z?(0,t.jsx)(ez.CompositeItem,{tag:"button",render:a,className:d,style:c,state:ef,refs:eg,props:em,stateAttributesMapping:u.pressableTriggerOpenStateMapping}):P?(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(eq.FocusGuard,{ref:ed,onFocus:ec},`${T}-pre-focus-guard`),(0,t.jsx)(n.Fragment,{children:ev},T),(0,t.jsx)(eq.FocusGuard,{ref:O.context.triggerFocusTargetRef,onFocus:ep},`${T}-post-focus-guard`)]}):(0,t.jsx)(n.Fragment,{children:ev},T)});var e$=e.i(818390);let eX=n.forwardRef(function(e,t){let{render:n,className:o,style:r,children:a,...u}=e,{store:d}=s(),{side:c}=i(),p=d.useState("instantType"),{children:f,state:g}=(0,e$.usePopupViewport)({store:d,side:c,children:a}),m={activationDirection:g.activationDirection,transitioning:g.transitioning,instant:p};return(0,l.useRenderElement)("div",e,{state:m,ref:t,props:[u,{children:f}],stateAttributesMapping:e$.popupViewportStateMapping})});var eQ=e.i(652225);let eZ={"aria-expanded":void 0},e0=n.forwardRef(function(e,t){let{render:r,className:a,style:d,label:c,id:p,nativeButton:g=!1,openOnHover:m=!0,delay:h=100,closeDelay:b=0,disabled:S=!1,...x}=e,R=eD();if(!R?.parentMenu)throw Error((0,o.default)(37));let E=(0,O.useCompositeListItem)({guess:!0,label:c}),I=i(),{store:T}=s(),w=(0,C.useBaseUiId)(p),M=T.useState("open"),P=T.useState("floatingRootContext"),A=T.useState("floatingTreeRoot"),N=T.useState("triggerPopupId",w),D=(0,eA.useTriggerRegistration)(w,T),F=(0,ea.useStableCallback)(e=>{D(e),null!==e&&T.select("open")&&null==T.select("activeTriggerId")&&T.update({activeTriggerId:w??null,activeTriggerElement:e,closeDelay:b})}),j=n.useRef(null),H=n.useCallback(e=>{j.current=e,T.set("activeTriggerElement",e)},[T]);(0,L.useIsoLayoutEffect)(()=>(F(j.current),()=>F(null)),[F,w,T]),T.useSyncedValue("closeDelay",b);let U=R.parentMenu,B=T.useState("disabled"),_=U.useState("disabled"),Y=S||B||_,z=U.useState("itemProps"),G=U.useState("isActive",E.index),K=n.useMemo(()=>({type:"submenu-trigger",setActive(){U.select("highlightItemOnHover")&&U.set("activeIndex",E.index)}}),[U,E.index]),{getItemProps:V,itemRef:W}=k({closeOnClick:!1,disabled:Y,highlighted:G,id:w,store:T,typingRef:U.context.typingRef,nativeButton:g,itemMetadata:K,nodeId:I?.context.nodeId}),q=T.useState("hoverEnabled"),J=(0,eB.useHoverReferenceInteraction)(P,{enabled:q&&m&&!Y,handleClose:(0,ej.safePolygon)({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:h,delay:{open:h,close:b},shouldOpen:h>0?()=>U.select("allowMouseEnter"):void 0,triggerElementRef:j,externalTree:A,isClosing:()=>"ending"===T.select("transitionStatus"),guardStaleOpen:!0}),$=(0,eH.useClick)(P,{enabled:!Y,event:"mousedown",toggle:!m,ignoreMouse:m,stickIfOpen:!1}).reference??v.EMPTY_OBJECT,X=T.useState("triggerProps",!0);delete X.id;let Q=T.useState("openMethod"),Z=T.useState("lastOpenChangeReason")===f.REASONS.listNavigation||"keyboard"===Q,ee=M&&Z&&y.platform.screenReader.voiceOver;return(0,l.useRenderElement)("div",e,{state:{disabled:Y,highlighted:G,open:M},stateAttributesMapping:u.triggerOpenStateMapping,props:[$,J,X,z,ee?eZ:void 0,{"aria-controls":N,tabIndex:M||G?0:-1,onBlur(){G&&U.set("activeIndex",null)}},x,V],ref:[t,E.ref,W,F,H]})});var e1=e.i(564170);class e3 extends e1.BasePopupHandle{constructor(){super(function(){let e=new eC.PopupTriggerMap;return Object.assign(new ek.NullStore(Object.freeze(eP(e)),Object.freeze(eM(e)),eT),{setOpen:v.NOOP})}(),"Menu")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",0,d,"Backdrop",0,g,"CheckboxItem",0,M,"CheckboxItemIndicator",0,N,"Group",0,F,"GroupLabel",0,j,"Handle",0,e3,"Item",0,H,"LinkItem",0,U,"Popup",0,K,"Portal",0,q,"Positioner",0,ei,"RadioGroup",0,el,"RadioItem",0,ed,"RadioItemIndicator",0,ec,"Root",0,eF,"Separator",()=>eQ.Separator,"SubmenuRoot",0,function(e){let o=s().store,r=n.useMemo(()=>({parentMenu:o}),[o]);return(0,t.jsx)(eN.Provider,{value:r,children:(0,t.jsx)(eF,{...e})})},"SubmenuTrigger",0,e0,"Trigger",0,eJ,"Viewport",0,eX,"createHandle",0,function(){return new e3}],160948);var e5=e.i(160948),e5=e5;e.i(593698),e.i(986253);var e8=e.i(647163);e.s(["DropdownMenu",0,function({...e}){return(0,t.jsx)(e5.Root,{"data-slot":"dropdown-menu",...e})},"DropdownMenuContent",0,function({align:e="start",alignOffset:n=0,side:o="bottom",sideOffset:r=4,className:i,...a}){return(0,t.jsx)(e5.Portal,{children:(0,t.jsx)(e5.Positioner,{className:"isolate z-50 outline-none",align:e,alignOffset:n,side:o,sideOffset:r,children:(0,t.jsx)(e5.Popup,{"data-slot":"dropdown-menu-content",className:(0,e8.cn)("z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",i),...a})})})},"DropdownMenuGroup",0,function({...e}){return(0,t.jsx)(e5.Group,{"data-slot":"dropdown-menu-group",...e})},"DropdownMenuItem",0,function({className:e,inset:n,variant:o="default",...r}){return(0,t.jsx)(e5.Item,{"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":o,className:(0,e8.cn)("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e),...r})},"DropdownMenuTrigger",0,function({...e}){return(0,t.jsx)(e5.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}],463415);var e4=e.i(798120),e6=e.i(6799),e2=e.i(95187);let e7=(0,e2.createServerReference)("7f03637174cd3c5625f55480f17b9e811ea9f83972",e2.callServer,void 0,e2.findSourceMapURL,"markSeenAction");e.s(["markSeenAction",0,e7],844601);var e9=e.i(451888),te=e.i(245629),tt=e.i(393080),tn=e.i(283653),to=e.i(553429);let tr=[],ti=!1,ta=new Set;function ts(e,t){let n=e=>({name:e,icon:t?.find(t=>t.name===e)?.icon??null}),o=n(e.bot),r=[],i=new Map,a=new Map,s=new Map;for(let t of e.lines){let e=t.bot?n(t.bot):o,l=t.to?n(t.to):t.parent?a.get(t.parent)??null:null;switch(t.kind){case"user":r.push({id:t.id,bot:t.to?n(t.to):o,to:t.to?n(t.to):null,text:t.text,kind:"user"});break;case"text":r.push({id:t.id,bot:e,to:l,text:t.text,kind:"say"});break;case"note":r.push({id:t.id,bot:e,to:l,text:t.text,kind:"note"});break;case"stop":r.push({id:t.id,bot:e,to:l,text:t.text,kind:"stop",at:t.at});break;case"tool":i.set(t.callId,r.length),r.push({id:t.id,bot:e,to:l,text:t.note??t.input,kind:"tool",at:t.at,tool:{name:t.name,input:t.input,note:t.note,path:t.path,callId:t.callId}});break;case"tool-result":{let e=i.get(t.callId)??s.get(t.callId),n=void 0===e?void 0:r[e];n?.tool&&void 0!==e?r[e]={...n,tool:{...n.tool,results:t.results,more:t.more}}:n?.kind==="ask"&&void 0!==e&&(r[e]={id:n.id,bot:n.bot,to:null,text:n.text,kind:"tool",tool:{name:t.name,input:n.text,callId:t.callId,results:t.results,more:t.more}});break}case"ask":{s.set(t.callId,r.length);let o=n(t.to);a.set(t.callId,e),r.push({id:t.id,bot:e,to:o,text:t.text,kind:"ask",question:t.question,questionId:t.questionId})}}}if(r.forEach((e,t)=>{if("user"!==e.kind)return;let n=r.slice(0,t).findLast(t=>"user"!==t.kind&&t.bot.name===e.bot.name);n?.kind==="tool"&&(r[t]={...e,steppedIn:!0})}),"done"===e.status){let e=r.at(-1);if(e&&"say"===e.kind&&e.bot.name===o.name){let t=r.length-1;for(;t>0&&"say"===r[t-1].kind&&tI(r[t-1])===tI(e);)t-=1;let n=r.splice(t);r.push({...n[0],kind:"result",text:n.map(e=>e.text).join("\n\n")})}}let l=[o],u=e=>{e&&e.name!==to.ROOM_THURSDAY&&(l.some(t=>t.name===e.name)||l.push(e))};for(let t of e.room.participants)u(n(t.bot));for(let e of r)u(e.bot),u(e.to);return{id:e.id,room:e.room,request:e.request,label:e.label,bot:o,roster:l,lines:r,status:"running"===e.status?"working":e.status,outcome:e.outcome,ask:e.ask,seen:e.seen,routineId:e.routineId,tokens:e.tokens,contextTokens:e.contextTokens,contextBudget:e.contextBudget,updatedAt:e.updatedAt}}let tl=new Map,tu=new Map,td=[],tc=new Set,tp=[],tf=null,tg=new Set,tm=new Set,tv=!1,th=new Set,tb=!1,tS=new Set,tx=new Set,ty=new Set,tR=new Set,tE=[],tI=e=>e.id.slice(0,e.id.lastIndexOf("-")),tk=e=>"user"===e.kind?{name:to.ROOM_THURSDAY}:e.bot,tO=e=>"user"===e.kind?e.bot:e.to,tC=(e,t)=>({kind:"entry",speaker:e.bot,entry:{kind:"work",key:`${e.lines[0].id}-work`,lines:e.lines,open:t}});e.s(["botThreads",0,{sync(e,t){for(let n of(ti=!0,tr=[...e].reverse().map(e=>ts(e,t)),ta))n()},primed:()=>ti},"fileOpens",0,{open(e){for(let t of ty)t(e);return ty.size>0},subscribe:e=>(ty.add(e),()=>{ty.delete(e)})},"heardBy",0,tO,"lastSaid",0,function(e){for(let t=e.lines.length-1;t>=0;t--){let n=e.lines[t];if("user"!==n.kind&&"note"!==n.kind&&"stop"!==n.kind)return n}return null},"ringingThreads",0,{set(e){if(!(e.length===td.length&&e.every((e,t)=>td[t]===e)))for(let t of(td=e,tc))t()}},"roomOpen",0,{set(e){if(e!==tf)for(let t of(tf=e,tg))t()}},"roomOpens",0,{open(e){for(let t of tx)t(e??null)},subscribe:e=>(tx.add(e),()=>{tx.delete(e)})},"screenActs",0,{announce(e){for(let t of tR)t(e)},subscribe:e=>(tR.add(e),()=>{tR.delete(e)})},"threadDrafts",0,{recipient:e=>tu.get(e),select:(e,t)=>{tu.set(e,t)},get:(e,t,n)=>tl.get(e)?.get(JSON.stringify([t,n??null]))??"",set(e,t,n,o){let r=tl.get(e)??new Map,i=JSON.stringify([t,o??null]);n?r.set(i,n):r.delete(i),r.size?tl.set(e,r):tl.delete(e)}},"threadFromRow",0,ts,"threadItems",0,function(e,t,n=[]){let o,r=(o=new Set(e.lines.filter(e=>"tool"===e.kind||"ask"===e.kind).map(tI)),e=>"user"===e.kind||"ask"===e.kind||"result"===e.kind||"say"===e.kind&&!o.has(tI(e))),i=t===e.bot.name?e.lines:e.lines.filter(e=>tk(e).name===t||r(e)&&tO(e)?.name===t),a=new Set([e.bot.name,to.ROOM_THURSDAY]),s=new Map;for(let t of e.lines){let e=tO(t);e&&!a.has(e.name)&&(a.add(e.name),s.set(t.id,{from:tk(t),to:e})),a.add(t.bot.name)}let l=[],u=new Map,d=e=>{let t=e?u.get(e.name):void 0;t&&(u.delete(t.bot.name),l.push(tC(t,!1)))};for(let e of i){if(!r(e)){let t=u.get(e.bot.name)??{bot:e.bot,lines:[],at:0};t.lines.push(e),t.at=l.length,u.set(e.bot.name,t);continue}let t=tk(e);d(tO(e));let n=s.get(e.id);n&&l.push({kind:"invite",key:`${e.id}-joins`,...n}),d(t),l.push({kind:"entry",speaker:t,entry:{kind:"message",key:e.id,line:e}})}for(let e of[...u.values()].sort((e,t)=>e.at-t.at).reverse())l.splice(e.at,0,tC(e,!0));for(let e of n)u.has(e.name)||l.push({kind:"entry",speaker:e,entry:{kind:"work",key:`${e.name}-now`,lines:[],open:!0}});let c=[];for(let e of l){let t=c.at(-1);"invite"===e.kind?c.push(e):t?.kind==="turn"&&t.speaker.name===e.speaker.name?t.entries.push(e.entry):c.push({kind:"turn",key:e.entry.key,speaker:e.speaker,entries:[e.entry]})}return c},"useBotThreads",0,function(){return(0,n.useSyncExternalStore)(e=>(ta.add(e),()=>ta.delete(e)),()=>tr,()=>tE)},"useCallWaits",0,function(){return(0,n.useSyncExternalStore)(e=>(tS.add(e),()=>tS.delete(e)),()=>tb,()=>!1)},"useRingingThreads",0,function(){return(0,n.useSyncExternalStore)(e=>(tc.add(e),()=>tc.delete(e)),()=>td,()=>tp)},"useRoomOpen",0,function(){return(0,n.useSyncExternalStore)(e=>(tg.add(e),()=>tg.delete(e)),()=>tf,()=>null)},"useSeenOnDetail",0,function(e){let t=(0,n.useRef)(new Set),o=e?.id??null,r=e?`${e.id}@${(0,te.toDate)(e.updatedAt).getTime()}`:null,i=!!e&&(0,e9.isUnread)(e);(0,n.useEffect)(()=>{!o||!r||!i||t.current.has(r)||(t.current.add(r),e7([o]).then(tt.unwrapResult).then(()=>(0,tn.revalidate)(e4.queryKey.threads)).catch(e=>{t.current.delete(r),e6.toast.add({type:"error",title:"Could not mark the thread as read",description:(0,e8.errorToString)(e)})}))},[o,r,i])},"useWriteLineUp",0,function(){return(0,n.useSyncExternalStore)(e=>(th.add(e),()=>th.delete(e)),()=>tv,()=>!1)},"writeLine",0,{open(){for(let e of tm)e()},subscribe:e=>(tm.add(e),()=>{tm.delete(e)}),shown(e){if(e!==tv)for(let t of(tv=e,th))t()},waits(e){if(e!==tb)for(let t of(tb=e,tS))t()}}],978411)}]);