thursday-agent 0.17.2 → 0.19.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 (444) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +4 -2
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/routes-manifest.json +28 -12
  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 +12 -12
  16. package/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
  17. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +11 -11
  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 +4 -4
  24. package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
  25. package/.next/server/app/api/bot/route.js +4 -4
  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.js +29 -0
  31. package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -0
  32. package/.next/server/app/api/bot/thread/file/route_client-reference-manifest.js +3 -0
  33. package/.next/server/app/api/bot/thread/route.js +1 -1
  34. package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
  35. package/.next/server/app/api/config/route.js +1 -1
  36. package/.next/server/app/api/config/route.js.nft.json +1 -1
  37. package/.next/server/app/api/events/route.js +2 -2
  38. package/.next/server/app/api/events/route.js.nft.json +1 -1
  39. package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
  40. package/.next/server/app/api/file/[...path]/route.js +4 -4
  41. package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
  42. package/.next/server/app/api/llm-model/automatic/route.js +3 -3
  43. package/.next/server/app/api/llm-model/automatic/route.js.nft.json +1 -1
  44. package/.next/server/app/api/llm-model/catalog/[provider]/route/app-paths-manifest.json +3 -0
  45. package/.next/server/app/api/llm-model/catalog/{route.js → [provider]/route.js} +8 -8
  46. package/.next/server/app/api/llm-model/catalog/[provider]/route.js.nft.json +1 -0
  47. package/.next/server/app/api/llm-model/catalog/[provider]/route_client-reference-manifest.js +3 -0
  48. package/.next/server/app/api/llm-model/credits/[provider]/route/app-paths-manifest.json +3 -0
  49. package/.next/server/app/api/llm-model/credits/[provider]/route/build-manifest.json +12 -0
  50. package/.next/server/app/api/llm-model/credits/[provider]/route/server-reference-manifest.json +4 -0
  51. package/.next/server/app/api/llm-model/credits/{route.js → [provider]/route.js} +8 -8
  52. package/.next/server/app/api/llm-model/credits/[provider]/route.js.map +5 -0
  53. package/.next/server/app/api/llm-model/credits/[provider]/route.js.nft.json +1 -0
  54. package/.next/server/app/api/llm-model/credits/[provider]/route_client-reference-manifest.js +3 -0
  55. package/.next/server/app/api/llm-model/route.js +1 -1
  56. package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
  57. package/.next/server/app/api/llm-model/subscription/route.js +1 -1
  58. package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
  59. package/.next/server/app/api/mcp/[name]/route.js +1 -1
  60. package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
  61. package/.next/server/app/api/mcp/oauth/callback/route.js +2 -2
  62. package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
  63. package/.next/server/app/api/mcp/route.js +1 -1
  64. package/.next/server/app/api/mcp/route.js.nft.json +1 -1
  65. package/.next/server/app/api/mcp/tools/route.js +1 -1
  66. package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
  67. package/.next/server/app/api/memory/edit/route.js +12 -12
  68. package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
  69. package/.next/server/app/api/memory/route.js +1 -1
  70. package/.next/server/app/api/memory/route.js.nft.json +1 -1
  71. package/.next/server/app/api/reach/route.js +17 -17
  72. package/.next/server/app/api/reach/route.js.nft.json +1 -1
  73. package/.next/server/app/api/routine/route.js +6 -6
  74. package/.next/server/app/api/routine/route.js.nft.json +1 -1
  75. package/.next/server/app/api/running/route/app-paths-manifest.json +3 -0
  76. package/.next/server/app/api/running/route/build-manifest.json +12 -0
  77. package/.next/server/app/api/running/route/server-reference-manifest.json +4 -0
  78. package/.next/server/app/api/running/route.js +10 -0
  79. package/.next/server/app/api/running/route.js.map +5 -0
  80. package/.next/server/app/api/running/route.js.nft.json +1 -0
  81. package/.next/server/app/api/running/route_client-reference-manifest.js +3 -0
  82. package/.next/server/app/api/signins/route.js +4 -4
  83. package/.next/server/app/api/signins/route.js.nft.json +1 -1
  84. package/.next/server/app/api/skills/[source]/[name]/route.js +7 -7
  85. package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
  86. package/.next/server/app/api/skills/route.js +6 -6
  87. package/.next/server/app/api/skills/route.js.nft.json +1 -1
  88. package/.next/server/app/api/thursday/call/end/route.js +1 -1
  89. package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
  90. package/.next/server/app/api/thursday/call/route.js +1 -1
  91. package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
  92. package/.next/server/app/api/thursday/settings/route.js +1 -1
  93. package/.next/server/app/api/thursday/settings/route.js.nft.json +1 -1
  94. package/.next/server/app/api/thursday/text/route.js +12 -12
  95. package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
  96. package/.next/server/app/api/thursday/tool-call/route.js +13 -13
  97. package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
  98. package/.next/server/app/api/workspace/files/route.js +7 -7
  99. package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
  100. package/.next/server/app/api/workspace/route.js +6 -6
  101. package/.next/server/app/api/workspace/route.js.nft.json +1 -1
  102. package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +94 -6
  103. package/.next/server/app/artifact/[...path]/page.js +9 -5
  104. package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
  105. package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
  106. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  107. package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  108. package/.next/server/app/page/server-reference-manifest.json +161 -128
  109. package/.next/server/app/page.js +10 -9
  110. package/.next/server/app/page.js.nft.json +1 -1
  111. package/.next/server/app/page_client-reference-manifest.js +1 -1
  112. package/.next/server/app-paths-manifest.json +4 -2
  113. package/.next/server/chunks/[root-of-the-server]__00qyw01._.js +1 -1
  114. package/.next/server/chunks/[root-of-the-server]__02ra64t._.js +5 -0
  115. package/.next/server/chunks/{[root-of-the-server]__05dp5tr._.js → [root-of-the-server]__06ky9of._.js} +2 -2
  116. package/.next/server/chunks/[root-of-the-server]__0b565-x._.js +7 -0
  117. package/.next/server/chunks/[root-of-the-server]__0bmtib_._.js +7 -0
  118. package/.next/server/chunks/[root-of-the-server]__0bqveex._.js +1 -1
  119. package/.next/server/chunks/[root-of-the-server]__0brmiv2._.js +7 -0
  120. package/.next/server/chunks/[root-of-the-server]__0eivkvk._.js +2 -2
  121. package/.next/server/chunks/[root-of-the-server]__0f7m79q._.js +1 -1
  122. package/.next/server/chunks/[root-of-the-server]__0g38-aj._.js +2 -2
  123. package/.next/server/chunks/[root-of-the-server]__0gvdr2h._.js +5 -0
  124. package/.next/server/chunks/[root-of-the-server]__0h656y-._.js +2 -2
  125. package/.next/server/chunks/[root-of-the-server]__0hm3tiq._.js +2 -2
  126. package/.next/server/chunks/[root-of-the-server]__0hzdqnv._.js +2 -2
  127. package/.next/server/chunks/[root-of-the-server]__0kzmxpg._.js +3 -0
  128. package/.next/server/chunks/[root-of-the-server]__0mgyt8p._.js +2 -2
  129. package/.next/server/chunks/[root-of-the-server]__0mrk2it._.js +1 -1
  130. package/.next/server/chunks/[root-of-the-server]__0o5s5-o._.js +5 -0
  131. package/.next/server/chunks/[root-of-the-server]__0p80i1n._.js +1 -1
  132. package/.next/server/chunks/[root-of-the-server]__0qdoc_9._.js +5 -0
  133. package/.next/server/chunks/[root-of-the-server]__0qzho69._.js +1 -1
  134. package/.next/server/chunks/[root-of-the-server]__0sm5xvm._.js +1 -1
  135. package/.next/server/chunks/[root-of-the-server]__0v_kuor._.js +5 -0
  136. package/.next/server/chunks/{[root-of-the-server]__061o2_x._.js → [root-of-the-server]__0ypkfbu._.js} +1 -1
  137. package/.next/server/chunks/[root-of-the-server]__1-18_pz._.js +1 -1
  138. package/.next/server/chunks/[root-of-the-server]__13hng6h._.js +1 -1
  139. package/.next/server/chunks/{[root-of-the-server]__01k3vi3._.js → [root-of-the-server]__14iga7p._.js} +1 -1
  140. package/.next/server/chunks/[root-of-the-server]__16gn7zn._.js +3 -0
  141. package/.next/server/chunks/[root-of-the-server]__18e65_-._.js +3 -0
  142. package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +2 -2
  143. package/.next/server/chunks/[root-of-the-server]__1_cgawk._.js +5 -0
  144. package/.next/server/chunks/[root-of-the-server]__1ceammd._.js +1 -1
  145. package/.next/server/chunks/[root-of-the-server]__1ckt1yj._.js +1 -1
  146. package/.next/server/chunks/[root-of-the-server]__1cu5f3z._.js +1 -1
  147. package/.next/server/chunks/[root-of-the-server]__1dth047._.js +5 -0
  148. package/.next/server/chunks/{[root-of-the-server]__1k2qs1m._.js → [root-of-the-server]__1fc6v12._.js} +1 -1
  149. package/.next/server/chunks/[root-of-the-server]__1hviq62._.js +2 -2
  150. package/.next/server/chunks/[root-of-the-server]__1ksm9m-._.js +12 -0
  151. package/.next/server/chunks/[root-of-the-server]__1m1q6u5._.js +3 -0
  152. package/.next/server/chunks/[root-of-the-server]__1m_dmf6._.js +5 -0
  153. package/.next/server/chunks/[root-of-the-server]__1mys2c3._.js +5 -0
  154. package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
  155. package/.next/server/chunks/[root-of-the-server]__1p0njle._.js +5 -0
  156. package/.next/server/chunks/[root-of-the-server]__1p47fbb._.js +2 -2
  157. package/.next/server/chunks/[root-of-the-server]__1pugoq0._.js +1 -1
  158. package/.next/server/chunks/{[root-of-the-server]__0ts7ai0._.js → [root-of-the-server]__1trns9g._.js} +1 -1
  159. package/.next/server/chunks/[root-of-the-server]__1ygplx1._.js +1 -1
  160. package/.next/server/chunks/[root-of-the-server]__1zn039k._.js +1 -1
  161. package/.next/server/chunks/[root-of-the-server]__20w_g71._.js +3 -0
  162. package/.next/server/chunks/_01c32w9._.js +1 -1
  163. package/.next/server/chunks/_02bov6_._.js +1 -1
  164. package/.next/server/chunks/_06hnfi8._.js +2 -2
  165. package/.next/server/chunks/_06u9yo-._.js +1 -1
  166. package/.next/server/chunks/_08354bn._.js +12 -11
  167. package/.next/server/chunks/_08_-9ay._.js +7 -0
  168. package/.next/server/chunks/_08s4vft._.js +1 -1
  169. package/.next/server/chunks/_0bgjf07._.js +5 -0
  170. package/.next/server/chunks/_0c49lmw._.js +1 -1
  171. package/.next/server/chunks/_0fb6dvr._.js +1 -1
  172. package/.next/server/chunks/_0hgvg55._.js +1 -1
  173. package/.next/server/chunks/_0iw19ig._.js +1 -1
  174. package/.next/server/chunks/_0poi1t2._.js +1 -1
  175. package/.next/server/chunks/_0s8ao8z._.js +1 -1
  176. package/.next/server/chunks/_0t_7gji._.js +1 -1
  177. package/.next/server/chunks/_0ucx1jv._.js +1 -1
  178. package/.next/server/chunks/_0uzj57i._.js +1 -1
  179. package/.next/server/chunks/_0wyh244._.js +112 -0
  180. package/.next/server/chunks/_1-sk_q4._.js +1 -1
  181. package/.next/server/chunks/_108gsm8._.js +2 -2
  182. package/.next/server/chunks/_136j09a._.js +5 -5
  183. package/.next/server/chunks/_15negpy._.js +2 -2
  184. package/.next/server/chunks/_1d7og_q._.js +1 -1
  185. package/.next/server/chunks/_1dxq827._.js +2 -2
  186. package/.next/server/chunks/_1e54wxa._.js +1 -1
  187. package/.next/server/chunks/_1frcwj1._.js +1 -1
  188. package/.next/server/chunks/_1gn2r2q._.js +8 -6
  189. package/.next/server/chunks/_1gxankq._.js +2 -2
  190. package/.next/server/chunks/_1i3uucm._.js +1 -1
  191. package/.next/server/chunks/_1jvy78-._.js +5 -0
  192. package/.next/server/chunks/_1lg0lsu._.js +53 -0
  193. package/.next/server/chunks/_1njolhx._.js +294 -0
  194. package/.next/server/chunks/_1q6e56i._.js +8 -6
  195. package/.next/server/chunks/_1qgix-j._.js +1 -1
  196. package/.next/server/chunks/_1wtb-77._.js +294 -0
  197. package/.next/server/chunks/_1wwl_7o._.js +1 -1
  198. package/.next/server/chunks/_1y8w80a._.js +5 -5
  199. package/.next/server/chunks/_1yx285_._.js +3 -0
  200. package/.next/server/chunks/_20qn224._.js +3 -0
  201. package/.next/server/chunks/_211dn2c._.js +1 -1
  202. package/.next/server/chunks/_next-internal_server_app_api_bot_thread_file_route_actions_0q3be0o.js +3 -0
  203. package/.next/server/chunks/_next-internal_server_app_api_llm-model_catalog_[provider]_route_actions_1i0449q.js +3 -0
  204. package/.next/server/chunks/_next-internal_server_app_api_llm-model_credits_[provider]_route_actions_0iui9hz.js +3 -0
  205. package/.next/server/chunks/_next-internal_server_app_api_running_route_actions_0o1g-aw.js +3 -0
  206. package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
  207. package/.next/server/chunks/features_bot_08z387_._.js +3 -3
  208. package/.next/server/chunks/features_bot_0zy_q8y._.js +7 -7
  209. package/.next/server/chunks/features_bot_1dfrdsb._.js +7 -7
  210. package/.next/server/chunks/features_workspace_workspace_ts_13h82gv._.js +3 -3
  211. package/.next/server/chunks/features_workspace_workspace_ts_1iyjroj._.js +3 -3
  212. package/.next/server/chunks/{node_modules_1rosz79._.js → node_modules_035o7ku._.js} +1 -1
  213. package/.next/server/chunks/{node_modules_1er1u8w._.js → node_modules_0tn5t13._.js} +1 -1
  214. package/.next/server/chunks/{node_modules_103lpef._.js → node_modules_12oq3hr._.js} +1 -1
  215. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0g87zst._.js → node_modules_consola_dist_chunks_prompt_mjs_0yd5xa0._.js} +1 -1
  216. package/.next/server/chunks/ssr/[root-of-the-server]__04upd5v._.js +1 -1
  217. package/.next/server/chunks/ssr/[root-of-the-server]__0p0mv2u._.js +3 -0
  218. package/.next/server/chunks/ssr/[root-of-the-server]__0sk5enu._.js +3 -0
  219. package/.next/server/chunks/ssr/[root-of-the-server]__0xyaud4._.js +3 -0
  220. package/.next/server/chunks/ssr/[root-of-the-server]__1-gi9sm._.js +3 -0
  221. package/.next/server/chunks/ssr/[root-of-the-server]__16nn3pe._.js +3 -0
  222. package/.next/server/chunks/ssr/[root-of-the-server]__1867koj._.js +1 -1
  223. package/.next/server/chunks/ssr/[root-of-the-server]__1c8-7cw._.js +3 -0
  224. package/.next/server/chunks/ssr/{[root-of-the-server]__1d7usu0._.js → [root-of-the-server]__1qn0axo._.js} +2 -2
  225. package/.next/server/chunks/ssr/[root-of-the-server]__1tb5vve._.js +47 -0
  226. package/.next/server/chunks/ssr/_02cm0fr._.js +5 -0
  227. package/.next/server/chunks/ssr/{features_bot_1knyan7._.js → _07nmtxo._.js} +2 -2
  228. package/.next/server/chunks/ssr/_088vzgn._.js +1 -1
  229. package/.next/server/chunks/ssr/{_1dfv66y._.js → _0bg1u1j._.js} +2 -2
  230. package/.next/server/chunks/ssr/_0cv9tmv._.js +1 -1
  231. package/.next/server/chunks/ssr/{_10-_awu._.js → _0f9hx5p._.js} +2 -2
  232. package/.next/server/chunks/ssr/_0g9ula_._.js +3 -0
  233. package/.next/server/chunks/ssr/{_1aqjk-1._.js → _0irozu9._.js} +2 -2
  234. package/.next/server/chunks/ssr/{_123y-ah._.js → _0is8m6y._.js} +2 -2
  235. package/.next/server/chunks/ssr/_0iwsdp7._.js +3 -0
  236. package/.next/server/chunks/ssr/_0l7rjg5._.js +1 -1
  237. package/.next/server/chunks/ssr/{lib_logger_ts_0-olsze._.js → _0mfgsk-._.js} +4 -2
  238. package/.next/server/chunks/ssr/{_0fo4552._.js → _0nk80t6._.js} +53 -13
  239. package/.next/server/chunks/ssr/_0p6w0ef._.js +3 -0
  240. package/.next/server/chunks/ssr/_0pbav_w._.js +3 -0
  241. package/.next/server/chunks/ssr/{_0vo_oym._.js → _0q-mdwv._.js} +8 -8
  242. package/.next/server/chunks/ssr/_0s5_ahb._.js +3 -0
  243. package/.next/server/chunks/ssr/{_0e2fnvg._.js → _0t5f2c3._.js} +2 -2
  244. package/.next/server/chunks/ssr/_0v9r8g2._.js +1 -1
  245. package/.next/server/chunks/ssr/_0x8ophf._.js +1 -1
  246. package/.next/server/chunks/ssr/_0x9f717._.js +60 -0
  247. package/.next/server/chunks/ssr/_107vtdk._.js +162 -0
  248. package/.next/server/chunks/ssr/{_17a4qyk._.js → _12lql1x._.js} +3 -3
  249. package/.next/server/chunks/ssr/{_163dr78._.js → _165wnr4._.js} +2 -2
  250. package/.next/server/chunks/ssr/_16_7zeo._.js +3 -0
  251. package/.next/server/chunks/ssr/_17komoi._.js +3 -0
  252. package/.next/server/chunks/ssr/_190hjys._.js +3 -0
  253. package/.next/server/chunks/ssr/_1bfrntd._.js +6 -0
  254. package/.next/server/chunks/ssr/{_01al00i._.js → _1booff4._.js} +2 -2
  255. package/.next/server/chunks/ssr/{_0xfafez._.js → _1ew1j7l._.js} +2 -2
  256. package/.next/server/chunks/ssr/_1i2swyr._.js +3 -0
  257. package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
  258. package/.next/server/chunks/ssr/_1qsa25k._.js +3 -0
  259. package/.next/server/chunks/ssr/_1soynbw._.js +6 -0
  260. package/.next/server/chunks/ssr/_1vc2xmu._.js +3 -0
  261. package/.next/server/chunks/ssr/{_14oirtb._.js → _1wq90j8._.js} +2 -2
  262. package/.next/server/chunks/ssr/_1xwtbdz._.js +3 -0
  263. package/.next/server/chunks/ssr/_1zrhkf0._.js +310 -0
  264. package/.next/server/chunks/ssr/_21awrs2._.js +5 -0
  265. package/.next/server/chunks/ssr/features_0796o8r._.js +1 -1
  266. package/.next/server/chunks/ssr/features_bot_0tb4ui-._.js +2 -2
  267. package/.next/server/chunks/ssr/features_bot_1c56lew._.js +37 -0
  268. package/.next/server/chunks/ssr/features_bot_1fn_grf._.js +3 -0
  269. package/.next/server/chunks/ssr/{features_config_09n-q9q._.js → features_config_05zi68v._.js} +3 -3
  270. package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
  271. package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +1 -1
  272. package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
  273. package/.next/server/chunks/ssr/features_workspace_workspace_ts_1wc7_u_._.js +4 -4
  274. package/.next/server/chunks/ssr/{node_modules_1k5i-_9._.js → node_modules_0-sux1a._.js} +1 -1
  275. package/.next/server/chunks/ssr/{node_modules_0msrhxf._.js → node_modules_01oezhb._.js} +1 -1
  276. package/.next/server/chunks/ssr/{node_modules_1gq3ght._.js → node_modules_04m6ebg._.js} +1 -1
  277. package/.next/server/chunks/ssr/{node_modules_0nmkv-v._.js → node_modules_067jfov._.js} +1 -1
  278. package/.next/server/chunks/ssr/{node_modules_0gd9hbz._.js → node_modules_06ugby3._.js} +1 -1
  279. package/.next/server/chunks/ssr/{node_modules_0d6j33x._.js → node_modules_07p51j3._.js} +1 -1
  280. package/.next/server/chunks/ssr/{node_modules_10_fv2a._.js → node_modules_0995xyq._.js} +1 -1
  281. package/.next/server/chunks/ssr/{node_modules_1lmyts8._.js → node_modules_0_uecwx._.js} +1 -1
  282. package/.next/server/chunks/ssr/{node_modules_04x5wyv._.js → node_modules_0dsyc90._.js} +1 -1
  283. package/.next/server/chunks/ssr/{node_modules_0__0tvm._.js → node_modules_0hli6s2._.js} +1 -1
  284. package/.next/server/chunks/ssr/{node_modules_0k8-y89._.js → node_modules_0m-bde_._.js} +1 -1
  285. package/.next/server/chunks/ssr/{node_modules_1p_6sq7._.js → node_modules_0oqfdbr._.js} +1 -1
  286. package/.next/server/chunks/ssr/node_modules_0qd7p5f._.js +3 -0
  287. package/.next/server/chunks/ssr/{node_modules_13g-d25._.js → node_modules_0tgy5s5._.js} +1 -1
  288. package/.next/server/chunks/ssr/{node_modules_1_8-jcj._.js → node_modules_1-kjmls._.js} +1 -1
  289. package/.next/server/chunks/ssr/{node_modules_0m73b88._.js → node_modules_1-l3ka5._.js} +1 -1
  290. package/.next/server/chunks/ssr/{node_modules_113l3e5._.js → node_modules_1-w3ayh._.js} +1 -1
  291. package/.next/server/chunks/ssr/{node_modules_0q-klni._.js → node_modules_133exgm._.js} +1 -1
  292. package/.next/server/chunks/ssr/{node_modules_1xb-ndg._.js → node_modules_17xc5_k._.js} +1 -1
  293. package/.next/server/chunks/ssr/{node_modules_021lid9._.js → node_modules_1_i_w30._.js} +1 -1
  294. package/.next/server/chunks/ssr/{node_modules_1ri_eip._.js → node_modules_1a2cjfk._.js} +1 -1
  295. package/.next/server/chunks/ssr/{node_modules_13bqv6i._.js → node_modules_1k752fe._.js} +1 -1
  296. package/.next/server/chunks/ssr/{node_modules_1qstb1x._.js → node_modules_1lie7z8._.js} +1 -1
  297. package/.next/server/chunks/ssr/{node_modules_096up6a._.js → node_modules_1mv70-y._.js} +1 -1
  298. package/.next/server/chunks/ssr/{node_modules_156kv_t._.js → node_modules_1r611t2._.js} +1 -1
  299. package/.next/server/chunks/ssr/node_modules_1vfd8dz._.js +3 -0
  300. package/.next/server/chunks/ssr/{node_modules_0cjnmzp._.js → node_modules_1yaowd7._.js} +1 -1
  301. package/.next/server/chunks/ssr/{node_modules_0nw5jz7._.js → node_modules_20a1wpo._.js} +1 -1
  302. 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_1r8pxbe._.js} +1 -1
  303. 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_1siiu4h._.js} +1 -1
  304. package/.next/server/middleware-build-manifest.js +3 -3
  305. package/.next/server/pages/404.html +1 -1
  306. package/.next/server/pages/500.html +1 -1
  307. package/.next/server/server-reference-manifest.js +1 -1
  308. package/.next/server/server-reference-manifest.json +205 -132
  309. package/.next/static/chunks/{0obogzscwwekj.js → 088d3w5qxu19g.js} +2 -2
  310. package/.next/static/chunks/0_s4z70lx1tgs.js +1 -0
  311. package/.next/static/chunks/0bxekp4hnuk1g.js +1 -0
  312. package/.next/static/chunks/{1cglo3a2mbeou.js → 0fw4u_s974j24.js} +1 -1
  313. package/.next/static/chunks/0hy2x7qhk8wgx.css +1 -0
  314. package/.next/static/chunks/{2zbl41hed17g3.js → 0n_eshmn_7wfn.js} +2 -2
  315. package/.next/static/chunks/0q9b2n6l4flqb.js +1 -0
  316. package/.next/static/chunks/0ulcp_u_y1u0b.js +15 -0
  317. package/.next/static/chunks/0vj93zo0yvix9.js +35 -0
  318. package/.next/static/chunks/{166smhw8v-s3j.js → 10f98bh4hdmhe.js} +1 -1
  319. package/.next/static/chunks/1b8bce_z_act0.js +1 -0
  320. package/.next/static/chunks/1c32d2azsjaj_.js +1 -0
  321. package/.next/static/chunks/{1xv4g10m-cl1s.js → 1fs829mz69pxz.js} +1 -1
  322. package/.next/static/chunks/1lwlh4mo_vv8d.js +1 -0
  323. package/.next/static/chunks/{0p2f6uv4xytfm.js → 1po8fkg40peu-.js} +1 -1
  324. package/.next/static/chunks/{0uxq_vs6uxi-b.js → 1rg6b9l5fm1hj.js} +1 -1
  325. package/.next/static/chunks/{3b96xy59nl_gd.js → 26g3iwfuad-7p.js} +1 -1
  326. package/.next/static/chunks/2bjnmtke_q43c.js +1 -0
  327. package/.next/static/chunks/2c86k0o-1p9_w.js +1 -0
  328. package/.next/static/chunks/2gf4t0d76bvyv.js +1 -0
  329. package/.next/static/chunks/2rj3q_ahctv19.js +1 -0
  330. package/.next/static/chunks/{2lhc74urf3acr.js → 2x6-fpctvucte.js} +1 -1
  331. package/.next/static/chunks/2yicf7bky866n.js +3 -0
  332. package/.next/static/chunks/337g9g_ux2gj-.js +1 -0
  333. package/.next/static/chunks/350ws7svim7ij.js +58 -0
  334. package/.next/static/chunks/{0o7o0eb7ihxi6.js → 396enq-m0sss5.js} +1 -1
  335. package/.next/static/chunks/3e1w_nwfb39j-.js +1 -0
  336. package/.next/static/chunks/3v3ooretb54ag.js +1 -0
  337. package/.next/static/chunks/40re_3ukjulg9.js +1 -0
  338. package/.next/static/chunks/{3gsxnqqqphh-1.js → 44bcbnmup71so.js} +1 -1
  339. package/.next/static/chunks/{2qgkbdshzpq1c.js → 458dtbsemx996.js} +1 -1
  340. package/README.md +5 -5
  341. package/bin/background.mjs +995 -0
  342. package/bin/lock.mjs +121 -5
  343. package/bin/thursday.mjs +126 -30
  344. package/bin/tools.mjs +72 -1
  345. package/database/migrations/20260926021847_thread_cache_tokens/migration.sql +2 -0
  346. package/database/migrations/20260926021847_thread_cache_tokens/snapshot.json +1949 -0
  347. package/guide/bots.md +173 -317
  348. package/guide/calls.md +106 -146
  349. package/guide/index.md +2 -2
  350. package/guide/memory.md +14 -18
  351. package/guide/phone.md +86 -133
  352. package/guide/setup.md +141 -172
  353. package/guide/trouble.md +42 -65
  354. package/package.json +1 -1
  355. package/seed-skills/concierge/travel/references/itinerary.md +1 -1
  356. package/seed-skills/concierge/travel/scripts/itinerary.mjs +8 -3
  357. package/skills/artifact/references/book.md +3 -3
  358. package/skills/artifact/runtime/shell/shell.js +32 -3
  359. package/.next/server/app/api/llm-model/catalog/route/app-paths-manifest.json +0 -3
  360. package/.next/server/app/api/llm-model/catalog/route.js.nft.json +0 -1
  361. package/.next/server/app/api/llm-model/catalog/route_client-reference-manifest.js +0 -3
  362. package/.next/server/app/api/llm-model/credits/route/app-paths-manifest.json +0 -3
  363. package/.next/server/app/api/llm-model/credits/route.js.nft.json +0 -1
  364. package/.next/server/app/api/llm-model/credits/route_client-reference-manifest.js +0 -3
  365. package/.next/server/chunks/[root-of-the-server]__01ypm_z._.js +0 -3
  366. package/.next/server/chunks/[root-of-the-server]__021dkui._.js +0 -3
  367. package/.next/server/chunks/[root-of-the-server]__03xamry._.js +0 -3
  368. package/.next/server/chunks/[root-of-the-server]__09gdscj._.js +0 -7
  369. package/.next/server/chunks/[root-of-the-server]__0ljizgj._.js +0 -5
  370. package/.next/server/chunks/[root-of-the-server]__0nmust6._.js +0 -5
  371. package/.next/server/chunks/[root-of-the-server]__0svzjwa._.js +0 -7
  372. package/.next/server/chunks/[root-of-the-server]__1-rmal0._.js +0 -5
  373. package/.next/server/chunks/[root-of-the-server]__10xnb7e._.js +0 -3
  374. package/.next/server/chunks/[root-of-the-server]__1_h4hf9._.js +0 -7
  375. package/.next/server/chunks/[root-of-the-server]__1c2kwku._.js +0 -12
  376. package/.next/server/chunks/[root-of-the-server]__1t02-1p._.js +0 -3
  377. package/.next/server/chunks/[root-of-the-server]__1t0jj1j._.js +0 -5
  378. package/.next/server/chunks/[root-of-the-server]__1v7x5ym._.js +0 -3
  379. package/.next/server/chunks/[root-of-the-server]__1vlxv19._.js +0 -5
  380. package/.next/server/chunks/_07nxi75._.js +0 -254
  381. package/.next/server/chunks/_08btiir._.js +0 -7
  382. package/.next/server/chunks/_0j0-gq6._.js +0 -5
  383. package/.next/server/chunks/_0p6v1fr._.js +0 -5
  384. package/.next/server/chunks/_0srlnvd._.js +0 -16
  385. package/.next/server/chunks/_0xygcxs._.js +0 -254
  386. package/.next/server/chunks/_1ic3bew._.js +0 -5
  387. package/.next/server/chunks/_next-internal_server_app_api_llm-model_catalog_route_actions_1eu2y41.js +0 -3
  388. package/.next/server/chunks/_next-internal_server_app_api_llm-model_credits_route_actions_0v424pb.js +0 -3
  389. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_04oxl25._.js +0 -3
  390. package/.next/server/chunks/ssr/[root-of-the-server]__0-af_o7._.js +0 -3
  391. package/.next/server/chunks/ssr/[root-of-the-server]__09f39cp._.js +0 -4
  392. package/.next/server/chunks/ssr/[root-of-the-server]__0ouu4qp._.js +0 -3
  393. package/.next/server/chunks/ssr/[root-of-the-server]__0q9g9ea._.js +0 -5
  394. package/.next/server/chunks/ssr/[root-of-the-server]__17h1ggo._.js +0 -46
  395. package/.next/server/chunks/ssr/[root-of-the-server]__1jyeu61._.js +0 -5
  396. package/.next/server/chunks/ssr/_0afrpci._.js +0 -3
  397. package/.next/server/chunks/ssr/_0bgse1c._.js +0 -162
  398. package/.next/server/chunks/ssr/_0jstvlg._.js +0 -39
  399. package/.next/server/chunks/ssr/_0qsmpcu._.js +0 -3
  400. package/.next/server/chunks/ssr/_0z38nha._.js +0 -3
  401. package/.next/server/chunks/ssr/_1-41lck._.js +0 -3
  402. package/.next/server/chunks/ssr/_10_ph1t._.js +0 -3
  403. package/.next/server/chunks/ssr/_116lfdc._.js +0 -3
  404. package/.next/server/chunks/ssr/_14dfh7a._.js +0 -4
  405. package/.next/server/chunks/ssr/_17qtuv7._.js +0 -3
  406. package/.next/server/chunks/ssr/_19jez1a._.js +0 -3
  407. package/.next/server/chunks/ssr/_1_5xof_._.js +0 -3
  408. package/.next/server/chunks/ssr/_1alxym6._.js +0 -3
  409. package/.next/server/chunks/ssr/_1ou5sj0._.js +0 -3
  410. package/.next/server/chunks/ssr/_1tmw842._.js +0 -5
  411. package/.next/server/chunks/ssr/_1uij_rj._.js +0 -3
  412. package/.next/server/chunks/ssr/_1w9w1ok._.js +0 -3
  413. package/.next/server/chunks/ssr/_20gq_24._.js +0 -3
  414. package/.next/server/chunks/ssr/features_bot_0ouemw8._.js +0 -3
  415. package/.next/server/chunks/ssr/node_modules_@base-ui_react_1j9i1ho._.js +0 -3
  416. package/.next/static/chunks/01l7kw74vfp32.js +0 -1
  417. package/.next/static/chunks/0a5_-jqhaktjj.js +0 -1
  418. package/.next/static/chunks/0npvak0wpgagb.js +0 -1
  419. package/.next/static/chunks/19l81deo_pyoc.js +0 -1
  420. package/.next/static/chunks/1bnhw-5fj7aiz.js +0 -1
  421. package/.next/static/chunks/1in6nxpu33iab.js +0 -1
  422. package/.next/static/chunks/1u7kg91f9qy3g.js +0 -1
  423. package/.next/static/chunks/2ajs12-fcdwzm.js +0 -1
  424. package/.next/static/chunks/2i7qtmxc1kuqg.js +0 -1
  425. package/.next/static/chunks/2kz1f6r59nky0.js +0 -3
  426. package/.next/static/chunks/31kn4_h2rvf6k.css +0 -1
  427. package/.next/static/chunks/35jj-5u4te56r.js +0 -1
  428. package/.next/static/chunks/37ixzapa06xlo.js +0 -1
  429. package/.next/static/chunks/3jtcieuk1l6tw.js +0 -1
  430. package/.next/static/chunks/3k1d8y03t5nax.js +0 -58
  431. package/.next/static/chunks/3sla-dm1puqd1.js +0 -35
  432. package/.next/static/chunks/3t2c76awm9k_p.js +0 -1
  433. package/.next/static/chunks/3vrmcm31ih7gb.js +0 -1
  434. package/.next/static/chunks/3yiqr95d7ybeq.js +0 -15
  435. package/bin/autostart.mjs +0 -162
  436. /package/.next/server/app/api/{llm-model/catalog → bot/thread/file}/route/build-manifest.json +0 -0
  437. /package/.next/server/app/api/{llm-model/catalog → bot/thread/file}/route/server-reference-manifest.json +0 -0
  438. /package/.next/server/app/api/{llm-model/catalog → bot/thread/file}/route.js.map +0 -0
  439. /package/.next/server/app/api/llm-model/{credits → catalog/[provider]}/route/build-manifest.json +0 -0
  440. /package/.next/server/app/api/llm-model/{credits → catalog/[provider]}/route/server-reference-manifest.json +0 -0
  441. /package/.next/server/app/api/llm-model/{credits → catalog/[provider]}/route.js.map +0 -0
  442. /package/.next/static/{8I2hKtciyA9LXvd8txuOz → YhaRHJqObuAcXZe5VLFs0}/_buildManifest.js +0 -0
  443. /package/.next/static/{8I2hKtciyA9LXvd8txuOz → YhaRHJqObuAcXZe5VLFs0}/_clientMiddlewareManifest.js +0 -0
  444. /package/.next/static/{8I2hKtciyA9LXvd8txuOz → YhaRHJqObuAcXZe5VLFs0}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,706108,s=>{s.v(t=>Promise.all(["static/chunks/1b8bce_z_act0.js"].map(t=>s.l(t))).then(()=>t(94682)))},835878,s=>{"use strict";var t=s.i(843476),a=s.i(635963);s.s(["BotRoster",0,function({bots:s}){return s.length<2?null:(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5",title:s.map(s=>s.name).join(", "),children:[(0,t.jsx)("span",{className:"flex items-center gap-0.5",children:s.slice(0,3).map(s=>(0,t.jsx)(a.BotMark,{size:18,seed:s.name,color:s.icon?.color,shape:s.icon?.shape,outline:s.icon?.outline,paint:s.icon?.paint,notify:!1,className:"shrink-0"},s.name))}),(0,t.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground",children:[s.length," bots"]})]})}])},959484,s=>{s.v(t=>Promise.all(["static/chunks/1po8fkg40peu-.js","static/chunks/088d3w5qxu19g.js"].map(t=>s.l(t))).then(()=>t(507906)))},351866,51481,825398,s=>{"use strict";var t=s.i(843476),a=s.i(401851),e=s.i(689664),n=s.i(716327),l=s.i(24071),c=s.i(456420);let i={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"]};i.node;let o=(0,c.default)(i);s.s(["CircleQuestionMark",0,o],51481);var r=s.i(508734),m=s.i(919191),h=s.i(632781);let u={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"}]]};u.node;let p=(0,c.default)(u);s.s(["RotateCw",0,p],825398);var k=s.i(263676),d=s.i(271645),j=s.i(176782),v=s.i(552245),x=s.i(225913),b=s.i(647163);let g=(0,x.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"}});function f({variant:s="default",align:a="start",className:e,...n}){return(0,t.jsx)("div",{"data-slot":"bubble","data-variant":s,"data-align":a,className:(0,b.cn)(g({variant:s}),e),...n})}function w({className:s,render:t,...a}){var e;return e={defaultTagName:"div",props:(0,j.mergeProps)({className:(0,b.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",s)},a),render:t,state:{slot:"bubble-content"}},(0,v.useRenderElement)(e.defaultTagName??"div",e,e)}(0,x.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"}});var P=s.i(496336),y=s.i(683408),z=s.i(660302),_=s.i(127341),q=s.i(6799),N=s.i(95187);let T=(0,N.createServerReference)("7f5e26f3fa07edb4055beaaa8c5235672e02bf93fa",N.callServer,void 0,N.findSourceMapURL,"compactThreadAction");var C=s.i(807038),M=s.i(635963),S=s.i(256604),B=s.i(621285),$=s.i(245629),R=s.i(609856),H=s.i(553429),I=s.i(978411),F=s.i(222055);function A({onClick:s}){return(0,t.jsx)("button",{type:"button",onClick:s,"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)(k.X,{className:"size-3.5"})})}function L({thread:s}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O,{thread:s}),(0,t.jsx)(D,{thread:s}),(0,t.jsx)(V,{thread:s})]})}function O({thread:s}){let{contextTokens:a,tokens:e}=s;return a?(0,t.jsx)("span",{title:`Last step ${(0,b.formatCount)(a)} tokens \xb7 in total in ${(0,b.formatCount)(e.input)} \xb7 out ${(0,b.formatCount)(e.output)}`,className:"shrink-0 font-mono text-[10px] text-muted-foreground/70 tabular-nums",children:(0,b.formatCount)(a)}):null}function D({thread:s}){let{contextTokens:a,contextBudget:e}=s,[n,l]=(0,d.useState)(!1),[c,i]=(0,R.useServerAction)(T,{onOk:()=>l(!0)}),[o,r]=(0,d.useState)(a);if(o!==a&&(r(a),l(!1)),!a||!e)return null;let m=Math.min(1,a/e);return(0,t.jsx)("button",{type:"button",disabled:i||n,onClick:()=>void c(s.id,s.bot.name),title:n?"It summarizes itself at its next step":`Context ${(0,b.formatCount)(a)} of ${(0,b.formatCount)(e)} — 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,b.cn)("block h-full rounded-full",n?"animate-pulse bg-muted-foreground/40":m>.9?"bg-amber-500/80":"bg-muted-foreground/70"),style:{width:`${Math.max(4,Math.round(100*m))}%`}})})})}let E={working:"text-muted-foreground",waiting:b.WAITING_INK,done:"text-foreground",cancelled:"text-muted-foreground"},U={working:"working",waiting:"waiting",done:"done",cancelled:"stopped"};function V({thread:s}){let a="done"===s.status&&s.seen?"text-muted-foreground":E[s.status];return"working"===s.status?(0,t.jsx)(z.ShinyText,{text:U.working,speed:2.2,className:"shrink-0 font-mono text-[10px]"}):(0,t.jsx)("span",{className:(0,b.cn)("flex shrink-0 items-center gap-1.5 font-mono text-[10px]",a),children:U[s.status]})}function K({thread:s,roster:a,side:e,onPick:n,className:l}){return(0,t.jsx)(_.Tabs,{value:e??s.bot.name,onValueChange:t=>n(t===s.bot.name?null:String(t)),className:(0,b.cn)("shrink-0 gap-0 px-3 pt-1 pb-0.5",l),children:(0,t.jsx)(_.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:a.map(a=>{let e=Y(s,a.name);return(0,t.jsxs)(_.TabsTrigger,{value:a.name,className:(0,b.cn)(Q,"pl-1.5"),children:[(0,t.jsx)(M.BotMark,{size:16,seed:a.name,color:a.icon?.color,shape:a.icon?.shape,outline:a.icon?.outline,paint:a.icon?.paint,notify:"asking"===e,className:"shrink-0"}),(0,t.jsx)("span",{className:"max-w-28 truncate",children:a.name}),"running"===e&&(0,t.jsx)(h.Loader2,{className:"size-3 animate-spin text-muted-foreground/70"})]},a.name)})})})}let Q="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 Y(s,t){let{room:a}=s;return a.questions.some(s=>s.bot===t)?"asking":"working"===s.status&&a.participants.some(s=>s.bot===t&&"running"===s.state)?"running":null}function G({turn:s,thread:a,self:e}){let n=s.speaker.name===e,l=n?"none":s.speaker.name===se.name?"dark":"secondary",c=null;return(0,t.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 duration-300",children:(0,t.jsx)(so,{side:n?"start":"end",name:s.speaker.name,mark:(0,t.jsx)(sc,{bot:s.speaker}),children:s.entries.map(i=>{if("work"===i.kind)return n?(0,t.jsx)(X,{lines:i.lines,trailing:i.open,bot:s.speaker,thread:a},i.key):(0,t.jsx)(W,{lines:i.lines,trailing:i.open,bot:s.speaker,thread:a},i.key);let o=(0,I.heardBy)(i.line),r=o&&o.name!==s.speaker.name&&o.name!==e&&o.name!==se.name&&o.name!==c?o:null;return o&&(c=o.name),(0,t.jsx)(sr,{line:i.line,surface:l,mention:r,threadId:a.id},i.key)})})})}function W({lines:s,trailing:a,bot:e,thread:n}){var l;let[c,i]=(0,d.useState)(!1),[o,r]=(0,d.useState)(null),m=a?Y(n,e.name):null,u=(l=s,[["tool","step"],["say","note"],["stop","stop"],["note","compaction"]].map(([s,t])=>[l.filter(t=>t.kind===s).length,t]).filter(([s])=>s>0).map(([s,t])=>`${s} ${t}${1===s?"":"s"}`).join(" · ")),p=s.filter(s=>s.tool?.results!==void 0);if(!m&&!u)return null;let k=s.findLast(s=>"tool"===s.kind||"say"===s.kind),j=c&&s.length>0;return(0,t.jsxs)("div",{className:(0,b.cn)("flex min-w-0 flex-col rounded-2xl bg-muted/40 p-1",j?"w-full":"w-fit max-w-full"),children:[(0,t.jsxs)("button",{type:"button",disabled:!s.length,"aria-expanded":j,onClick:()=>{i(s=>!s),r(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"===m&&(0,t.jsx)(h.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground/60"}),m?(0,t.jsx)(z.ShinyText,{text:"asking"===m?"waiting on you":k?st(k):"working",tone:"asking"===m?"waiting":"muted",speed:2.4,className:(0,b.cn)("min-w-0 truncate text-[12px] leading-4",j&&"flex-1")}):(0,t.jsx)(Z,{words:k?st(k):"",facts:[u,function(s){let t=s.flatMap(s=>s.at?[(0,$.toDate)(s.at).getTime()]:[]);if(t.length<2)return"";let a=Math.round((Math.max(...t)-Math.min(...t))/1e3);if(a<1)return"";if(a<60)return`${a}s`;let e=Math.round(a/60);return e<60?`${e} min`:`${Math.floor(e/60)}h ${e%60}m`}(s)].filter(Boolean).join(" · "),grow:j}),s.length>0&&(0,t.jsx)(ss,{open:j})]}),!j&&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(s=>s.tool&&(0,t.jsx)(F.StepTile,{tool:s.tool,onOpen:()=>{r(s.id),i(!0)}},s.id))}),j&&(0,t.jsx)("div",{className:"flex min-w-0 flex-col gap-0.5 pt-0.5",children:sx(s).map(s=>"tools"===s.kind?s.lines.map(s=>s.tool&&(0,t.jsx)(F.BotTool,{tool:s.tool,threadId:n.id,collapsed:s.id!==o},s.id)):"stops"===s.kind?(0,t.jsx)("div",{className:"px-1.5 py-1",children:(0,t.jsx)(sj,{lines:s.lines})},s.key):s.lines.map(s=>(0,t.jsx)(sk,{line:s,inset:!0},s.id)))})]})}function X({lines:s,trailing:a,bot:e,thread:n}){let l=a?Y(n,e.name):null,c=s.some(s=>s.tool&&void 0===s.tool.results);return(0,t.jsxs)(t.Fragment,{children:[sx(s).map(s=>"tools"===s.kind?(0,t.jsx)(J,{lines:s.lines,threadId:n.id},s.key):"stops"===s.kind?(0,t.jsx)(sj,{lines:s.lines},s.key):s.lines.map(s=>(0,t.jsx)(sk,{line:s},s.id))),l&&!c&&(0,t.jsx)(z.ShinyText,{text:"asking"===l?"waiting on you":"on the next step…",tone:"asking"===l?"waiting":"muted",speed:2.2,className:"block px-1 font-mono text-[10px]"})]})}function J({lines:s,threadId:a}){return(0,t.jsx)("div",{className:"flex w-full flex-col gap-0.5 rounded-2xl bg-muted/40 p-1",children:s.map(s=>s.tool&&(0,t.jsx)(F.BotTool,{tool:s.tool,threadId:a,collapsed:!0},s.id))})}function Z({words:s,facts:a,grow:e=!1}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,b.cn)("min-w-0 truncate text-[12.5px] leading-5 text-foreground/80",e&&"flex-1"),children:s}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] leading-4 text-muted-foreground",children:a})]})}function ss({open:s}){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)(n.ChevronDown,{className:(0,b.cn)("size-3.5 transition-transform",s&&"rotate-180")})})}function st(s){return"tool"===s.kind&&s.tool?s.tool.note??`${s.tool.name} \xb7 ${s.tool.input}`:(0,b.plainText)(s.text).replace(/\s+/g," ").trim()}function sa({thread:s}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(sn,{from:se,to:s.bot}),(0,t.jsx)(so,{side:"end",name:se.name,mark:(0,t.jsx)(sc,{bot:se}),children:(0,t.jsx)(si,{dark:!0,className:"py-2 pr-2 pl-3.5",children:(0,t.jsx)(P.FoldedText,{text:s.request,subject:"request",className:"wrap-anywhere"})})})]})}let se={name:H.ROOM_THURSDAY};function sn({from:s,to:a}){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)(sl,{bot:s}),(0,t.jsx)("span",{className:"shrink-0 text-muted-foreground/70",children:"invited"}),(0,t.jsx)(sl,{bot:a})]})})}function sl({bot:s}){return(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[s.name===se.name?(0,t.jsx)(S.ThursdayMark,{size:15,className:"shrink-0"}):(0,t.jsx)(M.BotMark,{size:15,seed:s.name,color:s.icon?.color,shape:s.icon?.shape,outline:s.icon?.outline,paint:s.icon?.paint,notify:!1,className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:s.name})]})}function sc({bot:s}){return s.name===se.name?(0,t.jsx)(S.ThursdayMark,{size:26,className:"mt-1 shrink-0"}):(0,t.jsx)(M.BotMark,{size:26,seed:s.name,color:s.icon?.color,shape:s.icon?.shape,outline:s.icon?.outline,paint:s.icon?.paint,notify:!1,className:"mt-1 shrink-0"})}function si({dark:s=!1,children:a,className:e}){return(0,t.jsx)(f,{align:"end",variant:s?"default":"secondary",className:"max-w-full",children:(0,t.jsx)(w,{className:(0,b.cn)("rounded-tr-md px-3.5",e),children:(0,t.jsx)("div",{className:(0,b.cn)("min-w-0",s&&"inverse"),children:a})})})}function so({side:s,mark:a,name:e,children:n}){return(0,t.jsxs)("div",{className:(0,b.cn)("flex gap-2.5","end"===s&&"flex-row-reverse"),children:[a,(0,t.jsxs)("div",{className:(0,b.cn)("flex min-w-0 flex-1 flex-col gap-1.5 [&>*+*]:max-w-[80%]","end"===s&&"items-end"),children:[(0,t.jsx)("p",{className:"max-w-[80%] truncate px-1 font-mono text-[10px] text-muted-foreground",children:e}),n]})]})}function sr({line:s,surface:a,mention:e,threadId:n=null}){let l=!!s.question,c="result"===s.kind,i="none"!==a,o=(0,C.shortenPaths)(s.text),r=(0,t.jsxs)(t.Fragment,{children:[l&&(0,t.jsx)(sp,{}),e?(0,t.jsx)(su,{bot:e,bubble:i,children:o}):(0,t.jsx)(sm,{bubble:i,className:(0,b.cn)(!c&&"leading-snug"),children:o}),(0,t.jsx)(C.Attachments,{text:s.text,from:n,onBubble:i,className:"mt-2"})]});return(0,t.jsxs)(t.Fragment,{children:[i?(0,t.jsx)(si,{dark:"dark"===a,children:r}):(0,t.jsx)("div",{className:"min-w-0 max-w-full px-1",children:r}),s.steppedIn&&(0,t.jsxs)("p",{className:"flex items-center gap-1 px-1 font-mono text-[10px] text-muted-foreground",children:[(0,t.jsx)(m.CornerDownLeft,{className:"size-2.5"}),"stepped in"]}),c&&(0,t.jsx)("div",{className:"flex px-1",children:(0,t.jsx)(sd,{text:s.text})})]})}function sm({children:s,bubble:a=!1,className:e}){return(0,t.jsx)(y.Markdown,{className:(0,b.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",a&&"[&_[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!",e),children:s})}function sh({bot:s,bubble:a}){return(0,t.jsxs)("span",{className:(0,b.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",a?"bg-background":"bg-muted"),children:[(0,t.jsx)(M.BotMark,{size:14,seed:s.name,color:s.icon?.color,shape:s.icon?.shape,outline:s.icon?.outline,paint:s.icon?.paint,notify:!1,className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:s.name})]})}function su({bot:s,bubble:a,children:e}){return(0,t.jsxs)("div",{className:"min-w-0 max-w-full text-[13px] leading-snug",children:[(0,t.jsx)(sh,{bot:s,bubble:a}),(0,t.jsx)(sm,{bubble:a,className:"contents leading-snug [&>p:first-child]:inline",children:e})]})}function sp(){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)(o,{className:"size-3.5 shrink-0"}),"Question"]})}function sk({line:s,inset:a=!1}){return"note"===s.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)(sm,{className:"mt-2 rounded-xl bg-muted/40 px-3 py-2 text-[11px]",children:s.text})]}):(0,t.jsx)(sm,{className:(0,b.cn)("text-[12.5px] text-muted-foreground",a?"px-2.5 py-1":"px-1"),children:s.text})}function sd({text:s}){let[a,n]=(0,d.useState)(!1),l=(0,d.useRef)(null);return(0,d.useEffect)(()=>()=>{l.current&&clearTimeout(l.current)},[]),(0,t.jsx)("button",{type:"button","aria-label":"Copy the answer",onClick:async()=>{try{await navigator.clipboard.writeText(s),n(!0),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>n(!1),1400)}catch(s){q.toast.add({type:"error",title:"Could not copy the answer",description:(0,b.errorToString)(s)})}},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:a?(0,t.jsx)(e.Check,{className:"size-3"}):(0,t.jsx)(r.Copy,{className:"size-3"})})}function sj({lines:s}){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)(p,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:sv(s[0].text)}),s.length>1&&(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/70",children:["×",s.length]}),(0,t.jsx)(n.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:s.map(s=>(0,t.jsxs)("p",{className:"flex gap-2 break-keep wrap-anywhere",children:[s.at&&(0,t.jsx)("span",{className:"shrink-0 font-mono text-muted-foreground/70 tabular-nums",children:(0,a.format)((0,$.toDate)(s.at),"HH:mm:ss")}),(0,t.jsx)("span",{className:"min-w-0",children:s.text})]},s.id))})]})}let sv=s=>s.split(" (")[0].replace(/\.$/,"");function sx(s){let t=[];for(let a of s){let s="tool"===a.kind&&a.tool?"tools":"stop"===a.kind?"stops":"said",e=t.at(-1),n=e?.kind===s&&("stops"!==s||sv(e.lines[0].text)===sv(a.text));e&&n?e.lines.push(a):t.push({kind:s,key:a.id,lines:[a]})}return t}s.s(["Conversation",0,function({thread:s,tab:a=null,onTab:e,className:n,tabsClassName:l}){let c,i=(0,d.useRef)(null),o=(0,d.useRef)(!0),r=s.roster,m=e&&a!==s.bot.name&&r.some(s=>s.name===a)?a:null,h=m??s.bot.name,u=r.filter(t=>(!m||t.name===m)&&Y(s,t.name)),p=(0,I.threadItems)((c=new Set(s.room.questions.map(s=>s.id))).size?{...s,lines:s.lines.filter(s=>!("ask"===s.kind&&void 0!==s.questionId&&c.has(s.questionId)))}:s,h,u);return(0,d.useEffect)(()=>{o.current=!0},[s.id,m]),(0,d.useEffect)(()=>{let s=i.current;s&&o.current&&(s.scrollTop=s.scrollHeight)},[s.lines,s.status,m]),(0,d.useEffect)(()=>{let s=i.current;if(!s)return;let t=new ResizeObserver(()=>{o.current&&(s.scrollTop=s.scrollHeight)});for(let a of Array.from(s.children))t.observe(a);return()=>t.disconnect()},[p.length,s.lines,m]),(0,t.jsxs)(B.FileViewer,{children:[e&&(0,t.jsx)(K,{thread:s,roster:r,side:m,onPick:e,className:l}),(0,t.jsxs)("div",{ref:i,onScroll:s=>{let t=s.currentTarget;o.current=t.scrollHeight-t.scrollTop-t.clientHeight<24},className:(0,b.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",n),children:[!m&&(0,t.jsx)(sa,{thread:s}),p.map(a=>"invite"===a.kind?(0,t.jsx)(sn,{from:a.from,to:a.to},a.key):(0,t.jsx)(G,{turn:a,thread:s,self:h},a.key))]})]})},"FoldButton",0,A,"TAB",0,Q,"THURSDAY",0,se,"ThreadFacts",0,L,"ThreadHeader",0,function({thread:s,onBack:a,onClose:e}){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:a,"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)(l.ChevronLeft,{className:"size-4"})}),(0,t.jsx)(M.BotMark,{size:22,seed:s.bot.name,color:s.bot.icon?.color,shape:s.bot.icon?.shape,outline:s.bot.icon?.outline,paint:s.bot.icon?.paint,notify:!1}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium",children:s.label}),(0,t.jsx)(L,{thread:s}),(0,t.jsx)(A,{onClick:e})]})},"leadOf",0,sv,"stepOf",0,st],351866)},954404,s=>{s.v(t=>Promise.all(["static/chunks/1fs829mz69pxz.js"].map(t=>s.l(t))).then(()=>t(457343)))},711454,s=>{s.v(s=>Promise.resolve().then(()=>s(805995)))},959108,s=>{s.v(t=>Promise.all(["static/chunks/1rg6b9l5fm1hj.js"].map(t=>s.l(t))).then(()=>t(787800)))},48663,s=>{s.v(t=>Promise.all(["static/chunks/44bcbnmup71so.js"].map(t=>s.l(t))).then(()=>t(556133)))},483782,s=>{s.v(t=>Promise.all(["static/chunks/26g3iwfuad-7p.js"].map(t=>s.l(t))).then(()=>t(480869)))},663973,s=>{s.v(t=>Promise.all(["static/chunks/0fw4u_s974j24.js"].map(t=>s.l(t))).then(()=>t(8912)))},832663,s=>{s.v(t=>Promise.all(["static/chunks/458dtbsemx996.js"].map(t=>s.l(t))).then(()=>t(833959)))},17613,s=>{s.v(t=>Promise.all(["static/chunks/0dq7uppta9s--.js","static/chunks/0bxekp4hnuk1g.js"].map(t=>s.l(t))).then(()=>t(59158)))},194379,s=>{s.v(t=>Promise.all(["static/chunks/10f98bh4hdmhe.js"].map(t=>s.l(t))).then(()=>t(107941)))},516690,s=>{s.v(t=>Promise.all(["static/chunks/0teeo9xl5wnnq.js"].map(t=>s.l(t))).then(()=>t(395360)))},274435,s=>{s.v(t=>Promise.all(["static/chunks/1wiw0gk7-qp8i.js"].map(t=>s.l(t))).then(()=>t(249740)))},796339,s=>{s.v(t=>Promise.all(["static/chunks/0w_ja4ciemrbk.js"].map(t=>s.l(t))).then(()=>t(948115)))},196546,s=>{s.v(t=>Promise.all(["static/chunks/3zx2nr3-vl_eh.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(t=>s.l(t))).then(()=>t(365711)))},60308,s=>{s.v(t=>Promise.all(["static/chunks/18ov-ugtitlq2.js","static/chunks/1ozmtvibzzync.js","static/chunks/0iowzpfymsgpq.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(148707)))},608734,s=>{s.v(t=>Promise.all(["static/chunks/0p3bmx6ek0qp8.js"].map(t=>s.l(t))).then(()=>t(398778)))},902952,s=>{s.v(t=>Promise.all(["static/chunks/0q82iw85zo1m8.js"].map(t=>s.l(t))).then(()=>t(262053)))},814026,s=>{s.v(t=>Promise.all(["static/chunks/1txgr9-t0s4je.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(t=>s.l(t))).then(()=>t(922608)))},210042,s=>{s.v(t=>Promise.all(["static/chunks/1qwswx0hjsw00.js"].map(t=>s.l(t))).then(()=>t(894523)))},327701,s=>{s.v(t=>Promise.all(["static/chunks/0r5gq9qo4arwu.js"].map(t=>s.l(t))).then(()=>t(641837)))},864940,s=>{s.v(t=>Promise.all(["static/chunks/0r3z95rc2ypfx.js"].map(t=>s.l(t))).then(()=>t(730184)))},581996,s=>{s.v(t=>Promise.all(["static/chunks/0t5b3chki_9fl.js"].map(t=>s.l(t))).then(()=>t(625004)))},185223,s=>{s.v(t=>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(t=>s.l(t))).then(()=>t(484803)))},577689,s=>{s.v(t=>Promise.all(["static/chunks/0-mnxu8ow6er0.js"].map(t=>s.l(t))).then(()=>t(401885)))},887861,s=>{s.v(t=>Promise.all(["static/chunks/05m1q2yic6i_6.js"].map(t=>s.l(t))).then(()=>t(545199)))},769047,s=>{s.v(t=>Promise.all(["static/chunks/0n7sj9xm17ln0.js"].map(t=>s.l(t))).then(()=>t(135626)))},566005,s=>{s.v(t=>Promise.all(["static/chunks/20p5cex0-ilx3.js"].map(t=>s.l(t))).then(()=>t(532400)))},64129,s=>{s.v(t=>Promise.all(["static/chunks/1hoe492g5-o2q.js"].map(t=>s.l(t))).then(()=>t(770767)))},686785,s=>{s.v(t=>Promise.all(["static/chunks/40epaf180rm_o.js"].map(t=>s.l(t))).then(()=>t(770913)))},234475,s=>{s.v(t=>Promise.all(["static/chunks/3v2r9tkahr03c.js"].map(t=>s.l(t))).then(()=>t(427540)))},273197,s=>{s.v(t=>Promise.all(["static/chunks/26elp1iu9_rfo.js"].map(t=>s.l(t))).then(()=>t(574536)))},184291,s=>{s.v(t=>Promise.all(["static/chunks/3y2yeb8hqhgma.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2-ohkulfwwqkp.js"].map(t=>s.l(t))).then(()=>t(294139)))},254810,s=>{s.v(t=>Promise.all(["static/chunks/31srg3-v_-3ex.js"].map(t=>s.l(t))).then(()=>t(124527)))},715630,s=>{s.v(t=>Promise.all(["static/chunks/2v-fuc1wwaulc.js"].map(t=>s.l(t))).then(()=>t(39516)))},721406,s=>{s.v(t=>Promise.all(["static/chunks/251ctc7y-p1x6.js"].map(t=>s.l(t))).then(()=>t(55582)))},928418,s=>{s.v(t=>Promise.all(["static/chunks/3svu996x25pgh.js"].map(t=>s.l(t))).then(()=>t(324330)))},496018,s=>{s.v(t=>Promise.all(["static/chunks/10a6xv-y_2nwl.js","static/chunks/36oxg-33dy_jz.js"].map(t=>s.l(t))).then(()=>t(944027)))},268805,s=>{s.v(t=>Promise.all(["static/chunks/3xpdaet8dw9x9.js"].map(t=>s.l(t))).then(()=>t(732548)))},885670,s=>{s.v(t=>Promise.all(["static/chunks/1ctnkqxh0n4u3.js"].map(t=>s.l(t))).then(()=>t(218663)))},850277,s=>{s.v(t=>Promise.all(["static/chunks/28t2bvti86a67.js"].map(t=>s.l(t))).then(()=>t(774228)))},608435,s=>{s.v(t=>Promise.all(["static/chunks/2urfmi-h-efgc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(t=>s.l(t))).then(()=>t(183824)))},677655,s=>{s.v(t=>Promise.all(["static/chunks/07o4ns4nqda4i.js"].map(t=>s.l(t))).then(()=>t(773966)))},393919,s=>{s.v(t=>Promise.all(["static/chunks/1-vnisuyudqdj.js"].map(t=>s.l(t))).then(()=>t(135921)))},499510,s=>{s.v(t=>Promise.all(["static/chunks/34asi35tmks9s.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(694693)))},314583,s=>{s.v(t=>Promise.all(["static/chunks/368hf3scqy9et.js"].map(t=>s.l(t))).then(()=>t(694899)))},138305,s=>{s.v(t=>Promise.all(["static/chunks/02cmf-0vz-j0l.js"].map(t=>s.l(t))).then(()=>t(98254)))},162895,s=>{s.v(t=>Promise.all(["static/chunks/446dwbh9a1brd.js","static/chunks/2ro2w2784zwl0.js","static/chunks/2v-fuc1wwaulc.js"].map(t=>s.l(t))).then(()=>t(750497)))},715822,s=>{s.v(t=>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(t=>s.l(t))).then(()=>t(276426)))},156548,s=>{s.v(t=>Promise.all(["static/chunks/1px0m_9u11val.js"].map(t=>s.l(t))).then(()=>t(804440)))},68853,s=>{s.v(t=>Promise.all(["static/chunks/04kziyzzvkmhl.js"].map(t=>s.l(t))).then(()=>t(174708)))},508072,s=>{s.v(t=>Promise.all(["static/chunks/1fw3www6hshi2.js"].map(t=>s.l(t))).then(()=>t(717147)))},379420,s=>{s.v(t=>Promise.all(["static/chunks/07fixed86aya_.js"].map(t=>s.l(t))).then(()=>t(517328)))},901081,s=>{s.v(t=>Promise.all(["static/chunks/2sj3ymj88_zus.js"].map(t=>s.l(t))).then(()=>t(820123)))},732086,s=>{s.v(t=>Promise.all(["static/chunks/0n0bzpsdtg893.js"].map(t=>s.l(t))).then(()=>t(293222)))},8814,s=>{s.v(t=>Promise.all(["static/chunks/16zbzmvpg2ww4.js"].map(t=>s.l(t))).then(()=>t(333824)))},706010,s=>{s.v(t=>Promise.all(["static/chunks/0s54dho0z8p6j.js"].map(t=>s.l(t))).then(()=>t(258271)))},611671,s=>{s.v(t=>Promise.all(["static/chunks/2_jhl4ez3w5lm.js"].map(t=>s.l(t))).then(()=>t(612944)))},499264,s=>{s.v(t=>Promise.all(["static/chunks/0f4x882qymosc.js"].map(t=>s.l(t))).then(()=>t(289460)))},964927,s=>{s.v(t=>Promise.all(["static/chunks/09k-wbu71lfrt.js"].map(t=>s.l(t))).then(()=>t(551327)))},86855,s=>{s.v(t=>Promise.all(["static/chunks/1dd6qzaoby04o.js"].map(t=>s.l(t))).then(()=>t(12522)))},955357,s=>{s.v(t=>Promise.all(["static/chunks/34678qecnnj_h.js"].map(t=>s.l(t))).then(()=>t(217285)))},40814,s=>{s.v(t=>Promise.all(["static/chunks/3paqvl_z7hv3n.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(164704)))},534593,s=>{s.v(t=>Promise.all(["static/chunks/0_lh4_g7vdhq1.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(t=>s.l(t))).then(()=>t(805100)))},80402,s=>{s.v(t=>Promise.all(["static/chunks/3qum31hte42y1.js","static/chunks/2v-fuc1wwaulc.js"].map(t=>s.l(t))).then(()=>t(709757)))},659962,s=>{s.v(t=>Promise.all(["static/chunks/1u8j3eb8for0y.js"].map(t=>s.l(t))).then(()=>t(563571)))},655306,s=>{s.v(t=>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(t=>s.l(t))).then(()=>t(24609)))},379291,s=>{s.v(t=>Promise.all(["static/chunks/16ya3783k-z1s.js"].map(t=>s.l(t))).then(()=>t(329263)))},56334,s=>{s.v(t=>Promise.all(["static/chunks/0u__wtz-jozok.js"].map(t=>s.l(t))).then(()=>t(970013)))},955953,s=>{s.v(t=>Promise.all(["static/chunks/1jz5jakghqd9v.js"].map(t=>s.l(t))).then(()=>t(274265)))},372286,s=>{s.v(t=>Promise.all(["static/chunks/2jhadmpmcpdrj.js"].map(t=>s.l(t))).then(()=>t(146027)))},709599,s=>{s.v(t=>Promise.all(["static/chunks/2tfc-naqg7z-u.js","static/chunks/319502xf-tnxv.js"].map(t=>s.l(t))).then(()=>t(774293)))},417187,s=>{s.v(t=>Promise.all(["static/chunks/319502xf-tnxv.js"].map(t=>s.l(t))).then(()=>t(363400)))},106583,s=>{s.v(t=>Promise.all(["static/chunks/28-z_wt6ndz-b.js"].map(t=>s.l(t))).then(()=>t(576577)))},600350,s=>{s.v(t=>Promise.all(["static/chunks/3hwj-0h-0-lla.js"].map(t=>s.l(t))).then(()=>t(823068)))},718592,s=>{s.v(t=>Promise.all(["static/chunks/00uuedu6-4dre.js"].map(t=>s.l(t))).then(()=>t(129659)))},964292,s=>{s.v(t=>Promise.all(["static/chunks/10jgwafb21-7w.js"].map(t=>s.l(t))).then(()=>t(961451)))},251227,s=>{s.v(t=>Promise.all(["static/chunks/3_8v942h1s07y.js"].map(t=>s.l(t))).then(()=>t(869943)))},781674,s=>{s.v(t=>Promise.all(["static/chunks/0uud_z0v566uf.js"].map(t=>s.l(t))).then(()=>t(143691)))},765886,s=>{s.v(t=>Promise.all(["static/chunks/3mk3dcnt98mri.js"].map(t=>s.l(t))).then(()=>t(640067)))},643635,s=>{s.v(t=>Promise.all(["static/chunks/0ftzs9_34hr49.js"].map(t=>s.l(t))).then(()=>t(118337)))},469752,s=>{s.v(t=>Promise.all(["static/chunks/0qo6w-wynmd7q.js"].map(t=>s.l(t))).then(()=>t(598277)))},220210,s=>{s.v(t=>Promise.all(["static/chunks/43x-wo-t6g20f.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(t=>s.l(t))).then(()=>t(872516)))},952204,s=>{s.v(t=>Promise.all(["static/chunks/2qqx13x1_na_q.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(405817)))},615932,s=>{s.v(t=>Promise.all(["static/chunks/2nuuq6y_mebd9.js","static/chunks/2v-fuc1wwaulc.js"].map(t=>s.l(t))).then(()=>t(238102)))},846517,s=>{s.v(t=>Promise.all(["static/chunks/22e7k4k061g55.js"].map(t=>s.l(t))).then(()=>t(289319)))},334810,s=>{s.v(t=>Promise.all(["static/chunks/17pegra88jm_q.js"].map(t=>s.l(t))).then(()=>t(466502)))},518233,s=>{s.v(t=>Promise.all(["static/chunks/2e7ddq5vayqre.js"].map(t=>s.l(t))).then(()=>t(902077)))},527502,s=>{s.v(t=>Promise.all(["static/chunks/0vuwq9sa14vne.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(564011)))},783131,s=>{s.v(t=>Promise.all(["static/chunks/324t9a-cp4u8q.js"].map(t=>s.l(t))).then(()=>t(394796)))},866363,s=>{s.v(t=>Promise.all(["static/chunks/17tgaro217rkw.js","static/chunks/3v4h-8da4l5p7.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(416128)))},936482,s=>{s.v(t=>Promise.all(["static/chunks/38lhx55kr9dl6.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(23141)))},219104,s=>{s.v(t=>Promise.all(["static/chunks/1jbxee7jz6bbc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(t=>s.l(t))).then(()=>t(892708)))},982274,s=>{s.v(t=>Promise.all(["static/chunks/0_9ky7_0gqp29.js"].map(t=>s.l(t))).then(()=>t(375491)))},843593,s=>{s.v(t=>Promise.all(["static/chunks/1niiwgkyydxzm.js"].map(t=>s.l(t))).then(()=>t(462002)))},392582,s=>{s.v(t=>Promise.all(["static/chunks/21xei27jfzp7x.js"].map(t=>s.l(t))).then(()=>t(40781)))},32395,s=>{s.v(t=>Promise.all(["static/chunks/16hinmy0f-glt.js"].map(t=>s.l(t))).then(()=>t(609979)))},336975,s=>{s.v(t=>Promise.all(["static/chunks/0zgg9c0-wj935.js"].map(t=>s.l(t))).then(()=>t(563498)))},736812,s=>{s.v(t=>Promise.all(["static/chunks/3uf4bpnwlk9hu.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(t=>s.l(t))).then(()=>t(662407)))},615475,s=>{s.v(t=>Promise.all(["static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(346619)))},722332,s=>{s.v(t=>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(t=>s.l(t))).then(()=>t(679394)))},77996,s=>{s.v(t=>Promise.all(["static/chunks/1u06mkqc8lt5y.js","static/chunks/31rpioh8q87-5.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(t=>s.l(t))).then(()=>t(546754)))},412671,s=>{s.v(t=>Promise.all(["static/chunks/2id4c69a8l7tw.js"].map(t=>s.l(t))).then(()=>t(788619)))},98975,s=>{s.v(t=>Promise.all(["static/chunks/1k3nt_5za2_5v.js"].map(t=>s.l(t))).then(()=>t(894666)))},221794,s=>{s.v(t=>Promise.all(["static/chunks/0ju2q95btugv1.js"].map(t=>s.l(t))).then(()=>t(904077)))},712237,s=>{s.v(t=>Promise.all(["static/chunks/1oyr1d-wo_dr-.js"].map(t=>s.l(t))).then(()=>t(251070)))},25004,s=>{s.v(t=>Promise.all(["static/chunks/1ggeg-sqe8ngu.js"].map(t=>s.l(t))).then(()=>t(388943)))},792799,s=>{s.v(t=>Promise.all(["static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(122952)))},300535,s=>{s.v(t=>Promise.all(["static/chunks/1xlbhszlykr4p.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(t=>s.l(t))).then(()=>t(776627)))},299868,s=>{s.v(t=>Promise.all(["static/chunks/335-38r54vx4c.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(313300)))},692658,s=>{s.v(t=>Promise.all(["static/chunks/39sp7w7wcwxjl.js"].map(t=>s.l(t))).then(()=>t(866695)))},145390,s=>{s.v(t=>Promise.all(["static/chunks/0kmw809wgqjkq.js"].map(t=>s.l(t))).then(()=>t(948742)))},459901,s=>{s.v(t=>Promise.all(["static/chunks/0z36xjjyl3kid.js"].map(t=>s.l(t))).then(()=>t(75400)))},844018,s=>{s.v(t=>Promise.all(["static/chunks/2t-fmsms_i3sr.js"].map(t=>s.l(t))).then(()=>t(380021)))},932597,s=>{s.v(t=>Promise.all(["static/chunks/3a7qna12wpg2h.js"].map(t=>s.l(t))).then(()=>t(45900)))},386493,s=>{s.v(t=>Promise.all(["static/chunks/3xcqoeizdjzn2.js"].map(t=>s.l(t))).then(()=>t(398160)))},287672,s=>{s.v(t=>Promise.all(["static/chunks/3tq8wpaa3ie4_.js"].map(t=>s.l(t))).then(()=>t(823760)))},148045,s=>{s.v(t=>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(t=>s.l(t))).then(()=>t(134812)))},704538,s=>{s.v(t=>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(t=>s.l(t))).then(()=>t(398122)))},522051,s=>{s.v(t=>Promise.all(["static/chunks/1t8ujmkza6s35.js"].map(t=>s.l(t))).then(()=>t(281694)))},278014,s=>{s.v(t=>Promise.all(["static/chunks/1c0t4bkzgxkho.js"].map(t=>s.l(t))).then(()=>t(376175)))},511938,s=>{s.v(t=>Promise.all(["static/chunks/2n0e6pbzr1vhc.js"].map(t=>s.l(t))).then(()=>t(251031)))},382697,s=>{s.v(t=>Promise.all(["static/chunks/3_3mt55_s_8nf.js","static/chunks/0w75738j7k0f7.js"].map(t=>s.l(t))).then(()=>t(906106)))},106774,s=>{s.v(t=>Promise.all(["static/chunks/2-0-eka22mzly.js"].map(t=>s.l(t))).then(()=>t(548052)))},657069,s=>{s.v(t=>Promise.all(["static/chunks/3ia1uy-ta-wwx.js"].map(t=>s.l(t))).then(()=>t(315754)))},133954,s=>{s.v(t=>Promise.all(["static/chunks/35w79dw14-r51.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(t=>s.l(t))).then(()=>t(411335)))},969445,s=>{s.v(t=>Promise.all(["static/chunks/3ma22p0pjm53-.js"].map(t=>s.l(t))).then(()=>t(233218)))},532210,s=>{s.v(t=>Promise.all(["static/chunks/1t4tz6qnsit4z.js"].map(t=>s.l(t))).then(()=>t(127844)))},917136,s=>{s.v(t=>Promise.all(["static/chunks/20i3ov2af4zvh.js"].map(t=>s.l(t))).then(()=>t(499412)))},147287,s=>{s.v(t=>Promise.all(["static/chunks/3oyixq96_fa_z.js","static/chunks/2v-fuc1wwaulc.js"].map(t=>s.l(t))).then(()=>t(950510)))},298173,s=>{s.v(t=>Promise.all(["static/chunks/38rdxmvrwtp57.js"].map(t=>s.l(t))).then(()=>t(372302)))},418877,s=>{s.v(t=>Promise.all(["static/chunks/3pzxtzd-vdn2f.js"].map(t=>s.l(t))).then(()=>t(377217)))},159142,s=>{s.v(t=>Promise.all(["static/chunks/2bk7wc4-ptm-c.js"].map(t=>s.l(t))).then(()=>t(274754)))},644609,s=>{s.v(t=>Promise.all(["static/chunks/13qtfpmkarvmt.js","static/chunks/0bp3uew85t0ry.js","static/chunks/3ia1uy-ta-wwx.js","static/chunks/0agnc6vlr5bvi.js"].map(t=>s.l(t))).then(()=>t(76277)))},323845,s=>{s.v(t=>Promise.all(["static/chunks/29hqqnd781kvs.js"].map(t=>s.l(t))).then(()=>t(744344)))},367535,s=>{s.v(t=>Promise.all(["static/chunks/1j_bjoxgu91mc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(t=>s.l(t))).then(()=>t(635473)))},659189,s=>{s.v(t=>Promise.all(["static/chunks/1q28ddzt1afnq.js"].map(t=>s.l(t))).then(()=>t(857397)))},457619,s=>{s.v(t=>Promise.all(["static/chunks/3-06o0suuf1y4.js"].map(t=>s.l(t))).then(()=>t(368643)))},401626,s=>{s.v(t=>Promise.all(["static/chunks/151lx87jseoly.js"].map(t=>s.l(t))).then(()=>t(321142)))},524176,s=>{s.v(t=>Promise.all(["static/chunks/2asmzjaah8m8z.js"].map(t=>s.l(t))).then(()=>t(747044)))},205353,s=>{s.v(t=>Promise.all(["static/chunks/0hyz-d49g6v3x.js"].map(t=>s.l(t))).then(()=>t(518227)))},847969,s=>{s.v(t=>Promise.all(["static/chunks/1u6au-494n78m.js"].map(t=>s.l(t))).then(()=>t(990800)))},755902,s=>{s.v(t=>Promise.all(["static/chunks/2e150n34zc8g9.js"].map(t=>s.l(t))).then(()=>t(731026)))},272194,s=>{s.v(t=>Promise.all(["static/chunks/05-_p9k102i_g.js"].map(t=>s.l(t))).then(()=>t(874353)))},557638,s=>{s.v(t=>Promise.all(["static/chunks/0v_3gh96z3jaa.js"].map(t=>s.l(t))).then(()=>t(400936)))},47723,s=>{s.v(t=>Promise.all(["static/chunks/3dur64hdd_v7c.js","static/chunks/2v-fuc1wwaulc.js"].map(t=>s.l(t))).then(()=>t(337476)))},446820,s=>{s.v(t=>Promise.all(["static/chunks/2v-fuc1wwaulc.js","static/chunks/2zxe_jdp_h7n8.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(181320)))},565220,s=>{s.v(t=>Promise.all(["static/chunks/2800ji7zpl6a7.js"].map(t=>s.l(t))).then(()=>t(775253)))},821908,s=>{s.v(t=>Promise.all(["static/chunks/0-a6206-r3j_8.js"].map(t=>s.l(t))).then(()=>t(265932)))},798543,s=>{s.v(t=>Promise.all(["static/chunks/2ovlkdbar4cl8.js"].map(t=>s.l(t))).then(()=>t(873456)))},953213,s=>{s.v(t=>Promise.all(["static/chunks/39upf2vnyk-xq.js"].map(t=>s.l(t))).then(()=>t(573095)))},357016,s=>{s.v(t=>Promise.all(["static/chunks/0jrnpgq-_qp2f.js"].map(t=>s.l(t))).then(()=>t(739360)))},144,s=>{s.v(t=>Promise.all(["static/chunks/273azq8ya_70t.js"].map(t=>s.l(t))).then(()=>t(834527)))},389188,s=>{s.v(t=>Promise.all(["static/chunks/1tcwgfbes5bur.js"].map(t=>s.l(t))).then(()=>t(292052)))},494584,s=>{s.v(t=>Promise.all(["static/chunks/2mgfqtimlpa2_.js"].map(t=>s.l(t))).then(()=>t(386104)))},590087,s=>{s.v(t=>Promise.all(["static/chunks/3rnj3hwd2gpl1.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(362833)))},753525,s=>{s.v(t=>Promise.all(["static/chunks/39sp7w7wcwxjl.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3rudiphv22_sj.js"].map(t=>s.l(t))).then(()=>t(235865)))},506695,s=>{s.v(t=>Promise.all(["static/chunks/16j4idsrg5cyn.js"].map(t=>s.l(t))).then(()=>t(528594)))},985641,s=>{s.v(t=>Promise.all(["static/chunks/1y1vu9-4l76_e.js"].map(t=>s.l(t))).then(()=>t(762570)))},215520,s=>{s.v(t=>Promise.all(["static/chunks/0o66-rbdl-bpr.js"].map(t=>s.l(t))).then(()=>t(767399)))},579736,s=>{s.v(t=>Promise.all(["static/chunks/3bnhh87m-vba3.js"].map(t=>s.l(t))).then(()=>t(793940)))},344743,s=>{s.v(t=>Promise.all(["static/chunks/0lmkqj5bnn1tx.js"].map(t=>s.l(t))).then(()=>t(478163)))},69901,s=>{s.v(t=>Promise.all(["static/chunks/2fx1t7nywz-zx.js"].map(t=>s.l(t))).then(()=>t(293157)))},849765,s=>{s.v(t=>Promise.all(["static/chunks/0uw1nhbzgcr4z.js"].map(t=>s.l(t))).then(()=>t(65260)))},925840,s=>{s.v(t=>Promise.all(["static/chunks/2htbqsoc2bojb.js"].map(t=>s.l(t))).then(()=>t(620602)))},678110,s=>{s.v(t=>Promise.all(["static/chunks/028oldt2v0xyz.js"].map(t=>s.l(t))).then(()=>t(121139)))},710002,s=>{s.v(t=>Promise.all(["static/chunks/3b13ywcpwn31z.js"].map(t=>s.l(t))).then(()=>t(236865)))},753456,s=>{s.v(t=>Promise.all(["static/chunks/1wxrfgphp_7tx.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(t=>s.l(t))).then(()=>t(487420)))},328116,s=>{s.v(t=>Promise.all(["static/chunks/1eyi5me_bl5mq.js"].map(t=>s.l(t))).then(()=>t(303348)))},762792,s=>{s.v(t=>Promise.all(["static/chunks/012oo6xzblu6s.js"].map(t=>s.l(t))).then(()=>t(122362)))},548436,s=>{s.v(t=>Promise.all(["static/chunks/36oxg-33dy_jz.js"].map(t=>s.l(t))).then(()=>t(265525)))},985774,s=>{s.v(t=>Promise.all(["static/chunks/0xnzoirqkfqgi.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(979978)))},822682,s=>{s.v(t=>Promise.all(["static/chunks/1xcq4o53ccqj-.js"].map(t=>s.l(t))).then(()=>t(777438)))},29273,s=>{s.v(t=>Promise.all(["static/chunks/3wssn6tbdvadr.js"].map(t=>s.l(t))).then(()=>t(12899)))},917431,s=>{s.v(t=>Promise.all(["static/chunks/2w0jipt45km-n.js"].map(t=>s.l(t))).then(()=>t(426182)))},127184,s=>{s.v(t=>Promise.all(["static/chunks/1kkj4dqqizj1g.js"].map(t=>s.l(t))).then(()=>t(569590)))},402999,s=>{s.v(t=>Promise.all(["static/chunks/1abc3xfswhk36.js"].map(t=>s.l(t))).then(()=>t(389508)))},22510,s=>{s.v(t=>Promise.all(["static/chunks/3p-mvzd69i8m_.js","static/chunks/1px0m_9u11val.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(792808)))},392914,s=>{s.v(t=>Promise.all(["static/chunks/3qa8z7ahjfjda.js"].map(t=>s.l(t))).then(()=>t(270093)))},864980,s=>{s.v(t=>Promise.all(["static/chunks/0unfsbpxtuicd.js"].map(t=>s.l(t))).then(()=>t(221610)))},362249,s=>{s.v(t=>Promise.all(["static/chunks/2pma0utbxjpx3.js"].map(t=>s.l(t))).then(()=>t(292310)))},919686,s=>{s.v(t=>Promise.all(["static/chunks/418b-iezadyqk.js"].map(t=>s.l(t))).then(()=>t(513929)))},123169,s=>{s.v(t=>Promise.all(["static/chunks/0-e41flx3-6kr.js"].map(t=>s.l(t))).then(()=>t(495422)))},866973,s=>{s.v(t=>Promise.all(["static/chunks/3trm7ge6o-yl3.js"].map(t=>s.l(t))).then(()=>t(381082)))},580357,s=>{s.v(t=>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(t=>s.l(t))).then(()=>t(428855)))},660137,s=>{s.v(t=>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(t=>s.l(t))).then(()=>t(259585)))},225837,s=>{s.v(t=>Promise.all(["static/chunks/409byf0ixcxxo.js"].map(t=>s.l(t))).then(()=>t(98542)))},559154,s=>{s.v(t=>Promise.all(["static/chunks/2e7zn6goip-16.js"].map(t=>s.l(t))).then(()=>t(672283)))},428160,s=>{s.v(t=>Promise.all(["static/chunks/2np1b-o9o9lxe.js"].map(t=>s.l(t))).then(()=>t(428978)))},679226,s=>{s.v(t=>Promise.all(["static/chunks/1zexcknv1j-z7.js"].map(t=>s.l(t))).then(()=>t(351908)))},95554,s=>{s.v(t=>Promise.all(["static/chunks/1zch7s-d9ym1d.js"].map(t=>s.l(t))).then(()=>t(843805)))},256229,s=>{s.v(t=>Promise.all(["static/chunks/0bp3uew85t0ry.js"].map(t=>s.l(t))).then(()=>t(455496)))},257294,s=>{s.v(t=>Promise.all(["static/chunks/34vbgf3h6aynb.js"].map(t=>s.l(t))).then(()=>t(763343)))},287646,s=>{s.v(t=>Promise.all(["static/chunks/3py7aam1ahr8d.js"].map(t=>s.l(t))).then(()=>t(470313)))},77876,s=>{s.v(t=>Promise.all(["static/chunks/10ur2oml6p9x4.js"].map(t=>s.l(t))).then(()=>t(883808)))},702789,s=>{s.v(t=>Promise.all(["static/chunks/11b9yf9dfuujx.js"].map(t=>s.l(t))).then(()=>t(713367)))},105404,s=>{s.v(t=>Promise.all(["static/chunks/2dnh5lwhlmqjo.js"].map(t=>s.l(t))).then(()=>t(503988)))},664050,s=>{s.v(t=>Promise.all(["static/chunks/40ei945lllr9w.js"].map(t=>s.l(t))).then(()=>t(80464)))},423766,s=>{s.v(t=>Promise.all(["static/chunks/0ra7vu-67oxip.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(t=>s.l(t))).then(()=>t(34684)))},471095,s=>{s.v(t=>Promise.all(["static/chunks/2evctkklgum84.js"].map(t=>s.l(t))).then(()=>t(259514)))},713125,s=>{s.v(t=>Promise.all(["static/chunks/2_59ceoqu2j9o.js"].map(t=>s.l(t))).then(()=>t(435493)))},347760,s=>{s.v(t=>Promise.all(["static/chunks/17tgaro217rkw.js"].map(t=>s.l(t))).then(()=>t(588587)))},525380,s=>{s.v(t=>Promise.all(["static/chunks/0txq63lra1gy5.js"].map(t=>s.l(t))).then(()=>t(843156)))},927772,s=>{s.v(t=>Promise.all(["static/chunks/38b2vebizod3f.js"].map(t=>s.l(t))).then(()=>t(286144)))},131592,s=>{s.v(t=>Promise.all(["static/chunks/1-pex3noy3abf.js"].map(t=>s.l(t))).then(()=>t(568096)))},942509,s=>{s.v(t=>Promise.all(["static/chunks/208d1-7kvefg6.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(809240)))},209551,s=>{s.v(t=>Promise.all(["static/chunks/1asjpdf763drn.js","static/chunks/4469hynu4qc3x.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(361218)))},174099,s=>{s.v(t=>Promise.all(["static/chunks/3l445yien52wx.js"].map(t=>s.l(t))).then(()=>t(42)))},401250,s=>{s.v(t=>Promise.all(["static/chunks/2qbs5ja7xij_y.js"].map(t=>s.l(t))).then(()=>t(921955)))},944475,s=>{s.v(t=>Promise.all(["static/chunks/3agxmq5t1fgcm.js"].map(t=>s.l(t))).then(()=>t(775193)))},600538,s=>{s.v(t=>Promise.all(["static/chunks/2osmatdeuj3s-.js"].map(t=>s.l(t))).then(()=>t(705623)))},336651,s=>{s.v(t=>Promise.all(["static/chunks/0obkw0gs46t63.js"].map(t=>s.l(t))).then(()=>t(605927)))},709948,s=>{s.v(t=>Promise.all(["static/chunks/1nax-hzuha2nt.js"].map(t=>s.l(t))).then(()=>t(596338)))},340336,s=>{s.v(t=>Promise.all(["static/chunks/1caj6_s4hafz8.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(461138)))},508436,s=>{s.v(t=>Promise.all(["static/chunks/1flk5q9pa7qsp.js"].map(t=>s.l(t))).then(()=>t(318633)))},155636,s=>{s.v(t=>Promise.all(["static/chunks/3_3mt55_s_8nf.js"].map(t=>s.l(t))).then(()=>t(107395)))},351979,s=>{s.v(t=>Promise.all(["static/chunks/0rc3dvh91j2qq.js"].map(t=>s.l(t))).then(()=>t(40899)))},65678,s=>{s.v(t=>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(t=>s.l(t))).then(()=>t(352763)))},841727,s=>{s.v(t=>Promise.all(["static/chunks/1t71kx4hckhdg.js"].map(t=>s.l(t))).then(()=>t(526893)))},557754,s=>{s.v(t=>Promise.all(["static/chunks/31rpioh8q87-5.js"].map(t=>s.l(t))).then(()=>t(578270)))},670454,s=>{s.v(t=>Promise.all(["static/chunks/42lcx54bokm4l.js"].map(t=>s.l(t))).then(()=>t(891579)))},670515,s=>{s.v(t=>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(t=>s.l(t))).then(()=>t(259443)))},48460,s=>{s.v(t=>Promise.all(["static/chunks/0agnc6vlr5bvi.js"].map(t=>s.l(t))).then(()=>t(3737)))},744538,s=>{s.v(t=>Promise.all(["static/chunks/38f2w40jfofcx.js"].map(t=>s.l(t))).then(()=>t(610648)))},963321,s=>{s.v(t=>Promise.all(["static/chunks/2keoa22_a2i05.js"].map(t=>s.l(t))).then(()=>t(717620)))},43837,s=>{s.v(t=>Promise.all(["static/chunks/3iufy6ir2ow_s.js"].map(t=>s.l(t))).then(()=>t(476205)))},830536,s=>{s.v(t=>Promise.all(["static/chunks/0dum5lyb1kgdu.js"].map(t=>s.l(t))).then(()=>t(18661)))},785051,s=>{s.v(t=>Promise.all(["static/chunks/3iooxhh1ig5bw.js"].map(t=>s.l(t))).then(()=>t(938702)))},586017,s=>{s.v(t=>Promise.all(["static/chunks/17z996osqxkqt.js"].map(t=>s.l(t))).then(()=>t(588430)))},495694,s=>{s.v(t=>Promise.all(["static/chunks/0h-2v5t5yj2f3.js"].map(t=>s.l(t))).then(()=>t(562973)))},404547,s=>{s.v(t=>Promise.all(["static/chunks/1idh9y3ry9ztt.js"].map(t=>s.l(t))).then(()=>t(44445)))},160550,s=>{s.v(t=>Promise.all(["static/chunks/2tslt-7b091nm.js","static/chunks/1dy9mwr1pcdwo.js"].map(t=>s.l(t))).then(()=>t(338022)))},109,s=>{s.v(t=>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(t=>s.l(t))).then(()=>t(534365)))},934329,s=>{s.v(t=>Promise.all(["static/chunks/2cl_2bjqc1lsc.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(t=>s.l(t))).then(()=>t(532041)))},834235,s=>{s.v(t=>Promise.all(["static/chunks/3c5h1ejnae2s_.js"].map(t=>s.l(t))).then(()=>t(288188)))},879931,s=>{s.v(t=>Promise.all(["static/chunks/0tbmf55xnq95w.js"].map(t=>s.l(t))).then(()=>t(997855)))},738463,s=>{s.v(t=>Promise.all(["static/chunks/41klrxz2-ykw3.js"].map(t=>s.l(t))).then(()=>t(786105)))},464547,s=>{s.v(t=>Promise.all(["static/chunks/1g4yzqc8g06o2.js"].map(t=>s.l(t))).then(()=>t(995255)))},74196,s=>{s.v(t=>Promise.all(["static/chunks/1pgom6axjfimi.js"].map(t=>s.l(t))).then(()=>t(786142)))},926245,s=>{s.v(t=>Promise.all(["static/chunks/00f7egm3k9vam.js"].map(t=>s.l(t))).then(()=>t(829634)))},998654,s=>{s.v(t=>Promise.all(["static/chunks/0gklkn8q2umf3.js"].map(t=>s.l(t))).then(()=>t(121147)))},160115,s=>{s.v(t=>Promise.all(["static/chunks/0-rd1xjzbrve6.js"].map(t=>s.l(t))).then(()=>t(244703)))},656841,s=>{s.v(t=>Promise.all(["static/chunks/3vdfjhigz-c80.js"].map(t=>s.l(t))).then(()=>t(33176)))},291412,s=>{s.v(t=>Promise.all(["static/chunks/2rbi0f59-vmf9.js"].map(t=>s.l(t))).then(()=>t(620584)))},441270,s=>{s.v(t=>Promise.all(["static/chunks/088x63_2l0zc9.js"].map(t=>s.l(t))).then(()=>t(675022)))},332344,s=>{s.v(t=>Promise.all(["static/chunks/3ve5sdpvgjpbu.js"].map(t=>s.l(t))).then(()=>t(642400)))},252913,s=>{s.v(t=>Promise.all(["static/chunks/2i6moah6rdm25.js"].map(t=>s.l(t))).then(()=>t(202714)))},695208,s=>{s.v(t=>Promise.all(["static/chunks/3_gqqu4iritf3.js"].map(t=>s.l(t))).then(()=>t(40379)))},952844,s=>{s.v(t=>Promise.all(["static/chunks/0wdb6hvovrzpj.js"].map(t=>s.l(t))).then(()=>t(48975)))},776488,s=>{s.v(t=>Promise.all(["static/chunks/07ciqblogdtfg.js"].map(t=>s.l(t))).then(()=>t(938096)))},536002,s=>{s.v(t=>Promise.all(["static/chunks/0n254r0xtp5py.js"].map(t=>s.l(t))).then(()=>t(340767)))},872934,s=>{s.v(t=>Promise.all(["static/chunks/3qx8r_111vbcq.js"].map(t=>s.l(t))).then(()=>t(216129)))},831036,s=>{s.v(t=>Promise.all(["static/chunks/0b7u4oyc-4h1f.js"].map(t=>s.l(t))).then(()=>t(188870)))},423803,s=>{s.v(t=>Promise.all(["static/chunks/1464ilzyzd67x.js"].map(t=>s.l(t))).then(()=>t(9753)))},486330,s=>{s.v(t=>Promise.all(["static/chunks/0akc8wpmmqk3w.js"].map(t=>s.l(t))).then(()=>t(611191)))},381001,s=>{s.v(t=>Promise.all(["static/chunks/0db0pjco5lunx.js"].map(t=>s.l(t))).then(()=>t(297569)))},902100,s=>{s.v(t=>Promise.all(["static/chunks/3cayxge-4bh_2.js"].map(t=>s.l(t))).then(()=>t(899637)))},295735,s=>{s.v(t=>Promise.all(["static/chunks/1_dzz-lgnak2h.js"].map(t=>s.l(t))).then(()=>t(504007)))},358172,s=>{s.v(t=>Promise.all(["static/chunks/2cbug7-1qys8e.js"].map(t=>s.l(t))).then(()=>t(824395)))},775274,s=>{s.v(t=>Promise.all(["static/chunks/16_2z7zojg3g3.js"].map(t=>s.l(t))).then(()=>t(760511)))},514214,s=>{s.v(t=>Promise.all(["static/chunks/0cmf43-qvwr5g.js"].map(t=>s.l(t))).then(()=>t(815758)))},948353,s=>{s.v(t=>Promise.all(["static/chunks/210l205kz5g3q.js"].map(t=>s.l(t))).then(()=>t(365094)))},640920,s=>{s.v(t=>Promise.all(["static/chunks/3skrxw7zfkqzf.js"].map(t=>s.l(t))).then(()=>t(363976)))},157811,s=>{s.v(t=>Promise.all(["static/chunks/17brxt738o00g.js"].map(t=>s.l(t))).then(()=>t(805755)))},805550,s=>{s.v(t=>Promise.all(["static/chunks/0cg7tv-i19f6n.js"].map(t=>s.l(t))).then(()=>t(7419)))},360233,s=>{s.v(t=>Promise.all(["static/chunks/2tsbrs7m-0f65.js"].map(t=>s.l(t))).then(()=>t(797673)))},579755,s=>{s.v(t=>Promise.all(["static/chunks/01bd73-hm8457.js"].map(t=>s.l(t))).then(()=>t(525522)))},980721,s=>{s.v(t=>Promise.all(["static/chunks/458hu9cfcc3s_.js"].map(t=>s.l(t))).then(()=>t(560616)))},27266,s=>{s.v(t=>Promise.all(["static/chunks/01i1qitd_8rtz.js"].map(t=>s.l(t))).then(()=>t(134497)))},231214,s=>{s.v(t=>Promise.all(["static/chunks/1fviz3qosnq__.js"].map(t=>s.l(t))).then(()=>t(770771)))},881110,s=>{s.v(t=>Promise.all(["static/chunks/037scab0ici8w.js"].map(t=>s.l(t))).then(()=>t(764248)))},337683,s=>{s.v(t=>Promise.all(["static/chunks/1yj-z4gstw2xu.js"].map(t=>s.l(t))).then(()=>t(581666)))},28130,s=>{s.v(t=>Promise.all(["static/chunks/0p3vq3l43725n.js"].map(t=>s.l(t))).then(()=>t(365013)))},487165,s=>{s.v(t=>Promise.all(["static/chunks/3xes-pn_ri2cj.js"].map(t=>s.l(t))).then(()=>t(7363)))},470579,s=>{s.v(t=>Promise.all(["static/chunks/12z0zeu7lvha7.js"].map(t=>s.l(t))).then(()=>t(791178)))},677856,s=>{s.v(t=>Promise.all(["static/chunks/3v0b10wj4wq9y.js"].map(t=>s.l(t))).then(()=>t(182360)))},194363,s=>{s.v(t=>Promise.all(["static/chunks/3pa4udctptdhb.js"].map(t=>s.l(t))).then(()=>t(720465)))},448953,s=>{s.v(t=>Promise.all(["static/chunks/3473zud7njrud.js"].map(t=>s.l(t))).then(()=>t(951566)))},711812,s=>{s.v(t=>Promise.all(["static/chunks/1xdsthrspgqid.js"].map(t=>s.l(t))).then(()=>t(935992)))},409732,s=>{s.v(t=>Promise.all(["static/chunks/3t3e6rkuocks5.js"].map(t=>s.l(t))).then(()=>t(553497)))},930788,s=>{s.v(t=>Promise.all(["static/chunks/0r8pu9o18-9be.js"].map(t=>s.l(t))).then(()=>t(94790)))},769460,s=>{s.v(t=>Promise.all(["static/chunks/2wewgtk8lsm47.js"].map(t=>s.l(t))).then(()=>t(258941)))},774478,s=>{s.v(t=>Promise.all(["static/chunks/2l6fe0r1d_q6v.js"].map(t=>s.l(t))).then(()=>t(899054)))},49008,s=>{s.v(t=>Promise.all(["static/chunks/14_d5b8v93ic0.js"].map(t=>s.l(t))).then(()=>t(645619)))},377952,s=>{s.v(t=>Promise.all(["static/chunks/1ji12pypkyvd6.js"].map(t=>s.l(t))).then(()=>t(464754)))},411374,s=>{s.v(t=>Promise.all(["static/chunks/0j6p1caglumb5.js"].map(t=>s.l(t))).then(()=>t(669891)))},820463,s=>{s.v(t=>Promise.all(["static/chunks/3oj0ck1e2y0rg.js"].map(t=>s.l(t))).then(()=>t(966937)))},630169,s=>{s.v(t=>Promise.all(["static/chunks/21bsne5xprg9x.js"].map(t=>s.l(t))).then(()=>t(412397)))},777035,s=>{s.v(t=>Promise.all(["static/chunks/2nz_jsjkeh_3n.js"].map(t=>s.l(t))).then(()=>t(323854)))},28589,s=>{s.v(t=>Promise.all(["static/chunks/3bl5nolxelhoh.js"].map(t=>s.l(t))).then(()=>t(299023)))},161439,s=>{s.v(t=>Promise.all(["static/chunks/2qvx9cvdob30_.js"].map(t=>s.l(t))).then(()=>t(83923)))},467304,s=>{s.v(t=>Promise.all(["static/chunks/2r50d8i8nzafy.js"].map(t=>s.l(t))).then(()=>t(620576)))},794497,s=>{s.v(t=>Promise.all(["static/chunks/2-q2d_mg8eewn.js"].map(t=>s.l(t))).then(()=>t(383983)))},353619,s=>{s.v(t=>Promise.all(["static/chunks/00133qbkud_a1.js"].map(t=>s.l(t))).then(()=>t(311461)))},841717,s=>{s.v(t=>Promise.all(["static/chunks/3wyndekp6gs1e.js"].map(t=>s.l(t))).then(()=>t(905139)))},703232,s=>{s.v(t=>Promise.all(["static/chunks/0a5uw59rid6rr.js"].map(t=>s.l(t))).then(()=>t(7846)))},469411,s=>{s.v(t=>Promise.all(["static/chunks/1tdg7-4y92ae5.js"].map(t=>s.l(t))).then(()=>t(135966)))},81356,s=>{s.v(t=>Promise.all(["static/chunks/27679aiblwt7d.js"].map(t=>s.l(t))).then(()=>t(920400)))},291336,s=>{s.v(t=>Promise.all(["static/chunks/2-r_2y3shm5dp.js"].map(t=>s.l(t))).then(()=>t(154629)))},753065,s=>{s.v(t=>Promise.all(["static/chunks/3zru906admgda.js"].map(t=>s.l(t))).then(()=>t(792599)))},758732,s=>{s.v(t=>Promise.all(["static/chunks/1m_1wucqbm0dk.js"].map(t=>s.l(t))).then(()=>t(341854)))},505358,s=>{s.v(t=>Promise.all(["static/chunks/3n91b_r3lsocx.js"].map(t=>s.l(t))).then(()=>t(273427)))},953493,s=>{s.v(t=>Promise.all(["static/chunks/0ppunhtgdiybw.js"].map(t=>s.l(t))).then(()=>t(468746)))},767374,s=>{s.v(t=>Promise.all(["static/chunks/2e77rof1d6aab.js"].map(t=>s.l(t))).then(()=>t(948350)))},461630,s=>{s.v(t=>Promise.all(["static/chunks/1ua4os8wtpq3w.js"].map(t=>s.l(t))).then(()=>t(200388)))},135353,s=>{s.v(t=>Promise.all(["static/chunks/3_rh0kun_htkr.js"].map(t=>s.l(t))).then(()=>t(720692)))},129817,s=>{s.v(t=>Promise.all(["static/chunks/2wgde6wz3k5s5.js"].map(t=>s.l(t))).then(()=>t(832876)))},666144,s=>{s.v(t=>Promise.all(["static/chunks/2wm8p15qdp-ng.js"].map(t=>s.l(t))).then(()=>t(942760)))},496740,s=>{s.v(t=>Promise.all(["static/chunks/365l-wyhfm_-p.js"].map(t=>s.l(t))).then(()=>t(436913)))},896290,s=>{s.v(t=>Promise.all(["static/chunks/0_81-tq3u4vi9.js"].map(t=>s.l(t))).then(()=>t(67631)))},161379,s=>{s.v(t=>Promise.all(["static/chunks/2ktgnhn-0j381.js"].map(t=>s.l(t))).then(()=>t(397216)))},839484,s=>{s.v(s=>Promise.resolve().then(()=>s(716400)))},569644,s=>{"use strict";var t=s.i(456420);let a={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};a.node;let e=(0,t.default)(a);s.s(["FolderOpen",0,e],569644)},97923,s=>{"use strict";var t=s.i(456420);let a={name:"log-in",size:24,node:[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]};a.node;let e=(0,t.default)(a);s.s(["LogIn",0,e],97923)},350117,s=>{s.v(t=>Promise.all(["static/chunks/0mkmxdnpoteey.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(t=>s.l(t))).then(()=>t(36245)))},382528,s=>{s.v(t=>Promise.all(["static/chunks/00h58csdfefay.js","static/chunks/1-2_pusn4n8oh.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/411-m6wb1xycs.js"].map(t=>s.l(t))).then(()=>t(868938)))},705108,s=>{s.v(t=>Promise.all(["static/chunks/0kdfzi54utgbh.js","static/chunks/42kilhgqayez4.js"].map(t=>s.l(t))).then(()=>t(121437)))},143904,s=>{s.v(t=>Promise.all(["static/chunks/0u3ktztrzu1fa.js","static/chunks/1ebh7wwf-wzqn.js"].map(t=>s.l(t))).then(()=>t(482661)))},110338,s=>{s.v(t=>Promise.all(["static/chunks/2gocl3dq0_h1s.js","static/chunks/2itcfm_igcz5x.js"].map(t=>s.l(t))).then(()=>t(59618)))},4699,s=>{s.v(t=>Promise.all(["static/chunks/01xjer0i_e5z5.js","static/chunks/2itcfm_igcz5x.js"].map(t=>s.l(t))).then(()=>t(595016)))},208503,s=>{s.v(t=>Promise.all(["static/chunks/0vhltcpdssl3-.js","static/chunks/411-m6wb1xycs.js"].map(t=>s.l(t))).then(()=>t(752312)))},342649,s=>{s.v(t=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1g6hadfcoz4ag.js"].map(t=>s.l(t))).then(()=>t(447429)))},555153,s=>{s.v(t=>Promise.all(["static/chunks/16mzcd_gvdgbo.js","static/chunks/3lx-n8v_8u7og.js"].map(t=>s.l(t))).then(()=>t(921789)))},121563,s=>{s.v(t=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/221-n1wtpkus8.js"].map(t=>s.l(t))).then(()=>t(52278)))},775281,s=>{s.v(t=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3oif9bymgqjgd.js"].map(t=>s.l(t))).then(()=>t(75306)))},840094,s=>{s.v(t=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3mjwob-a5hhwz.js"].map(t=>s.l(t))).then(()=>t(958133)))},806739,s=>{s.v(t=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/266qo7h19xz_m.js"].map(t=>s.l(t))).then(()=>t(486182)))},725135,s=>{s.v(t=>Promise.all(["static/chunks/25pfy8u3vc_bn.js","static/chunks/2qq7e47gpyc_e.js"].map(t=>s.l(t))).then(()=>t(271981)))},257999,s=>{s.v(t=>Promise.all(["static/chunks/1kg8hnvdsweku.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(t=>s.l(t))).then(()=>t(954776)))},126038,s=>{s.v(t=>Promise.all(["static/chunks/1wrwqqt23_cqy.js"].map(t=>s.l(t))).then(()=>t(868948)))},299022,s=>{s.v(t=>Promise.all(["static/chunks/025bmrgeukcb2.js","static/chunks/2b4v6n9b8htrv.js"].map(t=>s.l(t))).then(()=>t(595502)))},216587,s=>{s.v(t=>Promise.all(["static/chunks/1ztlt8o8gnas8.js","static/chunks/04e-e--5lk26x.js"].map(t=>s.l(t))).then(()=>t(222024)))},405760,s=>{s.v(t=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1rh4z578p-h1a.js"].map(t=>s.l(t))).then(()=>t(896515)))},937084,s=>{s.v(t=>Promise.all(["static/chunks/09nk4rn1z6j8b.js","static/chunks/2qq7e47gpyc_e.js"].map(t=>s.l(t))).then(()=>t(722875)))},223045,s=>{s.v(t=>Promise.all(["static/chunks/0x7n81v2cw92f.js"].map(t=>s.l(t))).then(()=>t(239077)))},104423,s=>{s.v(t=>Promise.all(["static/chunks/0oyz95sujd2c7.js"].map(t=>s.l(t))).then(()=>t(547384)))},847615,s=>{s.v(t=>Promise.all(["static/chunks/3s-zbm7kxc46y.js"].map(t=>s.l(t))).then(()=>t(980953)))},265584,s=>{s.v(t=>Promise.all(["static/chunks/14b2ne-5dycww.js"].map(t=>s.l(t))).then(()=>t(582576)))},121612,s=>{s.v(t=>Promise.all(["static/chunks/1-axl1a1s8xi7.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(t=>s.l(t))).then(()=>t(724854)))},761201,s=>{s.v(t=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/38h4_u_fq6ose.js"].map(t=>s.l(t))).then(()=>t(537834)))},480988,s=>{s.v(t=>Promise.all(["static/chunks/0dhmf6y59xjoo.js"].map(t=>s.l(t))).then(()=>t(713179)))},780947,s=>{s.v(t=>Promise.all(["static/chunks/3r7r2d2yc93-y.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(t=>s.l(t))).then(()=>t(354077)))},775900,s=>{s.v(t=>Promise.all(["static/chunks/14osgsp3aiqpz.js"].map(t=>s.l(t))).then(()=>t(207851)))},650519,s=>{s.v(t=>Promise.all(["static/chunks/3peltyinql2qj.js"].map(t=>s.l(t))).then(()=>t(621500)))},654159,s=>{s.v(t=>Promise.all(["static/chunks/2o4dndk0d68do.js","static/chunks/1u5i-jti87jbo.js"].map(t=>s.l(t))).then(()=>t(801891)))},483976,s=>{s.v(t=>Promise.all(["static/chunks/0p54qye85am3w.js"].map(t=>s.l(t))).then(()=>t(122015)))},99530,s=>{s.v(t=>Promise.all(["static/chunks/0u9ae9k_2g7k3.js","static/chunks/3lx-n8v_8u7og.js","static/chunks/3her9o9_qn46y.js"].map(t=>s.l(t))).then(()=>t(757018)))},633604,s=>{s.v(t=>Promise.all(["static/chunks/2sdwbfs1x5skp.js","static/chunks/3her9o9_qn46y.js"].map(t=>s.l(t))).then(()=>t(196572)))},12782,s=>{s.v(t=>Promise.all(["static/chunks/0_l0vn2teso0z.js"].map(t=>s.l(t))).then(()=>t(619325)))},868278,s=>{s.v(t=>Promise.all(["static/chunks/2m267diam_vib.js","static/chunks/2b4v6n9b8htrv.js"].map(t=>s.l(t))).then(()=>t(557786)))},9691,s=>{s.v(t=>Promise.all(["static/chunks/2udhdtq_z8488.js"].map(t=>s.l(t))).then(()=>t(254768)))},539575,s=>{s.v(t=>Promise.all(["static/chunks/0si45yj1su8y7.js"].map(t=>s.l(t))).then(()=>t(263487)))},85919,s=>{s.v(t=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/02slxciv9jt1p.js"].map(t=>s.l(t))).then(()=>t(353883)))},437446,s=>{s.v(t=>Promise.all(["static/chunks/2v_t22-0u_seu.js","static/chunks/0m-pl93u72hp9.js"].map(t=>s.l(t))).then(()=>t(819125)))},514467,s=>{s.v(t=>Promise.all(["static/chunks/1zlldlu99uorc.js"].map(t=>s.l(t))).then(()=>t(477142)))},369582,s=>{s.v(t=>Promise.all(["static/chunks/2hugas7n-e13p.js"].map(t=>s.l(t))).then(()=>t(976823)))},558850,s=>{s.v(t=>Promise.all(["static/chunks/41s9cnvp51p5u.js"].map(t=>s.l(t))).then(()=>t(335871)))}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,125740,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7fa31daf369b37a1ff41ebd3e394698f03ca2c7c7f",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,a])},333999,e=>{"use strict";var t=e.i(271645),a=e.i(647163);e.s(["useObjectState",0,e=>{let[s,c]=(0,t.useState)(e);return[s,(0,t.useCallback)(e=>{c(t=>{let s=(0,a.isFunction)(e)?e(t):e;return Object.keys(s).some(e=>!Object.is(t[e],s[e]))?{...t,...s}:t})},[])]}])},759659,e=>{"use strict";var t=e.i(456420);let a={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"]};a.node;let s=(0,t.default)(a);e.s(["Trash2",0,s],759659)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,761709,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7ffd6470380cab0591ee59221b19787592e2e2b9d3",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,a])},333999,e=>{"use strict";var t=e.i(271645),a=e.i(647163);e.s(["useObjectState",0,e=>{let[s,r]=(0,t.useState)(e);return[s,(0,t.useCallback)(e=>{r(t=>{let s=(0,a.isFunction)(e)?e(t):e;return Object.keys(s).some(e=>!Object.is(t[e],s[e]))?{...t,...s}:t})},[])]}])},759659,e=>{"use strict";var t=e.i(456420);let a={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"]};a.node;let s=(0,t.default)(a);e.s(["Trash2",0,s],759659)}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,986530,e=>{"use strict";var t=e.i(843476),n=e.i(225913);e.i(271645);var s=e.i(647163);function a({className:e,...n}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}e.i(652225);let r=(0,n.cva)("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});e.s(["Field",0,function({className:e,orientation:n="vertical",...a}){return(0,t.jsx)("div",{role:"group","data-slot":"field","data-orientation":n,className:(0,s.cn)(r({orientation:n}),e),...a})},"FieldContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"field-content",className:(0,s.cn)("group/field-content flex flex-1 flex-col gap-0.5 leading-snug",e),...n})},"FieldLabel",0,function({className:e,...n}){return(0,t.jsx)(a,{"data-slot":"field-label",className:(0,s.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",e),...n})}],986530)},787800,e=>{"use strict";var t=e.i(843476),n=e.i(689664),s=e.i(716327),a=e.i(867927),r=e.i(21357),o=e.i(77071),i=e.i(456420);let c={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};c.node;let l=(0,i.default)(c),d={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};d.node;let m=(0,i.default)(d);var u=e.i(759659),p=e.i(263676),h=e.i(271645),f=e.i(798120),g=e.i(167881),x=e.i(986530),v=e.i(23750),j=e.i(647163);let b=(0,h.memo)(({data:e,name:n,initialExpandDepth:s=2})=>{let a=(0,h.useMemo)(()=>"string"==typeof e?function(e){let t=e.trim();if(!(t.startsWith("{")&&t.endsWith("}"))&&!(t.startsWith("[")&&t.endsWith("]")))return{success:!1,data:e};try{return{success:!0,data:JSON.parse(e)}}catch{return{success:!1,data:e}}}(e).data:e,[e]);return(0,t.jsx)("div",{className:"text-sm",children:(0,t.jsx)(k,{data:a,name:n,depth:0,initialExpandDepth:s})})});b.displayName="JsonView";let y=(e,t)=>({role:"button",tabIndex:0,"aria-expanded":e,onClick:t,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())}}),N="outline-none focus-visible:ring-3 focus-visible:ring-ring/50",k=(0,h.memo)(({data:e,name:n,depth:s=0,initialExpandDepth:a})=>{var r;let o=void 0===e?"undefined":Array.isArray(e)?"array":null===e?"null":typeof e,[i,c]=(0,h.useState)("string"!==o&&s<a),l={number:"text-blue-500",boolean:"text-amber-500",null:"text-purple-500",undefined:"text-gray-500",string:"text-foreground break-all whitespace-pre-wrap",default:"text-muted-foreground"};switch(o){case"object":case"array":let d,m,u;return m=(d=(r="array"===o)?e:Object.entries(e)).length,u={open:r?"[":"{",close:r?"]":"}",collapsed:r?"[ ... ]":"{ ... }",empty:r?"[]":"{}"},0===m?(0,t.jsxs)("div",{className:"flex items-center",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:u.empty})]}):(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:(0,j.cn)("flex items-center mr-1 rounded cursor-pointer group hover:bg-input/30",N),...y(i,()=>c(!i)),children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground hover:text-foreground",children:[n,":"]}),i?(0,t.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground",children:u.open}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground",children:u.collapsed}),(0,t.jsxs)("span",{className:"ml-1 text-muted-foreground group-hover:text-foreground",children:[m," ",1===m?"item":"items"]})]})]}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"pl-2 ml-4 border-l border-border",children:r?d.map((e,n)=>(0,t.jsx)("div",{className:"my-1",children:(0,t.jsx)(k,{data:e,name:`${n}`,depth:s+1,initialExpandDepth:a})},n)):d.map(([e,n])=>(0,t.jsx)("div",{className:"my-1",children:(0,t.jsx)(k,{data:n,name:e,depth:s+1,initialExpandDepth:a})},e))}),(0,t.jsx)("div",{className:"text-muted-foreground",children:u.close})]})]});case"string":return e.length>100?(0,t.jsxs)("div",{className:"flex mr-1 rounded group hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground hover:text-foreground",children:[n,":"]}),(0,t.jsx)("pre",{className:(0,j.cn)(l.string,"cursor-pointer group-hover:text-foreground",N),...y(i,()=>c(!i)),title:i?"Click to collapse":"Click to expand",children:i?`"${e}"`:`"${e.slice(0,100)}..."`})]}):(0,t.jsxs)("div",{className:"flex mr-1 rounded hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsxs)("pre",{className:l.string,children:['"',e,'"']})]});case"undefined":return(0,t.jsxs)("div",{className:"flex items-center mr-1 rounded hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsx)("span",{className:l.undefined,children:"undefined"})]});default:return(0,t.jsxs)("div",{className:"flex items-center mr-1 rounded hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsx)("span",{className:l[o]||l.default,children:null===e?"null":String(e)})]})}});k.displayName="JsonNode";var S=e.i(917162),w=e.i(818125),z=e.i(319036),C=e.i(127341),O=e.i(184762),A=e.i(6799),T=e.i(95187);let P=(0,T.createServerReference)("7f10eeeae5a5dfd240dc39c1c1581fc058b565613c",T.callServer,void 0,T.findSourceMapURL,"callToolAction"),F=(0,T.createServerReference)("7ffb4e07fd3bef80a532307d58a2755d5d24601cf9",T.callServer,void 0,T.findSourceMapURL,"deleteServerAction"),$=(0,T.createServerReference)("7fe1df1fac3631cbf0e1651eba77b0846c28a15eb1",T.callServer,void 0,T.findSourceMapURL,"refreshServerAction"),R=(0,T.createServerReference)("7ff56366a5a6ccb74f36a746cee8e3b6a1d2f3e691",T.callServer,void 0,T.findSourceMapURL,"registerServerAction");var M=e.i(681307),D=e.i(245629);let L=M.z.object({url:M.z.url(),headers:M.z.record(M.z.string(),M.z.string()).optional()}),E=M.z.object({command:M.z.string().min(1),args:M.z.array(M.z.string()).optional(),env:M.z.record(M.z.string(),M.z.string()).optional()}),I=M.z.union([L,E]),q=M.z.object({name:M.z.string(),description:M.z.string().optional(),inputSchema:M.z.looseObject({}).optional(),outputSchema:M.z.looseObject({}).optional()});function B(e){return"url"in e}M.z.object({clientInformation:M.z.looseObject({}).optional(),tokens:M.z.looseObject({}).optional(),authorizationServer:M.z.looseObject({}).optional(),codeVerifier:M.z.string().optional(),state:M.z.string().optional()});let J=M.z.object({name:M.z.string().min(1).max(40),config:I,toolCount:M.z.number().int(),lastError:M.z.string().nullish()}),U=q.extend({id:M.z.number().int(),description:M.z.string().nullish()});J.omit({toolCount:!0}).extend({tools:U.array().default([]),toolsSyncedAt:D.DateLikeSchema});let K=M.z.object({name:M.z.string().min(1,"Name is required").max(40).regex(/^[a-zA-Z0-9_-]+$/,"Only letters, numbers, - and _ are allowed"),config:I}),H=M.z.union([M.z.object({mcpServers:M.z.record(M.z.string(),I)}),M.z.record(M.z.string(),I)]),V=[{name:"todoist",icon:"todoist.com",description:"Tasks, projects, and due dates",config:{url:"https://ai.todoist.net/mcp"}},{name:"home-assistant",icon:"home-assistant.io",description:"Lights, switches, and the rest of the house — your address and a long-lived token",config:{url:"http://homeassistant.local:8123/api/mcp",headers:{Authorization:"Bearer <your-home-assistant-token>"}}},{name:"kiwi",icon:"kiwi.com",description:"Flight search — no account",config:{url:"https://mcp.kiwi.com"}},{name:"zapier",icon:"zapier.com",description:"Gmail, Google Calendar, and thousands of apps you connect there",config:{url:"https://mcp.zapier.com/api/v1/connect"}},{name:"notion",icon:"notion.so",description:"Pages, databases, and search",config:{url:"https://mcp.notion.com/mcp"}},{name:"canva",icon:"canva.com",description:"Create and manage designs",config:{url:"https://mcp.canva.com/mcp"}},{name:"slack",icon:"slack.com",description:"Channels, messages, and search",config:{url:"https://mcp.slack.com/mcp"}},{name:"box",icon:"box.com",description:"Files, folders, and content search",config:{url:"https://mcp.box.com/mcp"}},{name:"airtable",icon:"airtable.com",description:"Bases, tables, and records",config:{url:"https://mcp.airtable.com/mcp"}},{name:"fireflies",icon:"fireflies.ai",description:"Meeting transcripts and summaries",config:{url:"https://mcp.fireflies.ai/mcp"}},{name:"asana",icon:"asana.com",description:"Tasks, projects, and portfolios",config:{url:"https://mcp.asana.com/mcp"}},{name:"monday",icon:"monday.com",description:"Boards, items, and updates",config:{url:"https://mcp.monday.com/mcp"}},{name:"clickup",icon:"clickup.com",description:"Tasks, docs, and spaces",config:{url:"https://mcp.clickup.com/mcp"}},{name:"linear",icon:"linear.app",description:"Issues, projects, and cycles",config:{url:"https://mcp.linear.app/mcp"}},{name:"atlassian",icon:"atlassian.com",description:"Jira and Confluence",config:{url:"https://mcp.atlassian.com/v1/mcp"}},{name:"hubspot",icon:"hubspot.com",description:"Contacts, deals, and companies",config:{url:"https://app.hubspot.com/mcp/v1/http"}},{name:"attio",icon:"attio.com",description:"CRM records and lists",config:{url:"https://mcp.attio.com/mcp"}},{name:"intercom",icon:"intercom.com",description:"Conversations and support tickets",config:{url:"https://mcp.intercom.com/mcp"}},{name:"wix",icon:"wix.com",description:"Sites, stores, and bookings",config:{url:"https://mcp.wix.com/mcp"}},{name:"webflow",icon:"webflow.com",description:"Sites, pages, and CMS collections",config:{url:"https://mcp.webflow.com/mcp"}},{name:"sanity",icon:"sanity.io",description:"Structured content and datasets",config:{url:"https://mcp.sanity.io/mcp"}},{name:"stripe",icon:"stripe.com",description:"Payments, invoices, and customers",config:{url:"https://mcp.stripe.com"}},{name:"paypal",icon:"paypal.com",description:"Payments and orders",config:{url:"https://mcp.paypal.com/mcp"}},{name:"square",icon:"squareup.com",description:"Payments, catalog, and orders",config:{url:"https://mcp.squareup.com/mcp"}},{name:"ramp",icon:"ramp.com",description:"Spend, cards, and transactions",config:{url:"https://mcp.ramp.com/mcp"}},{name:"github",icon:"github.com",description:"Repos, issues, PRs — paste a personal access token",config:{url:"https://api.githubcopilot.com/mcp/",headers:{Authorization:"Bearer <your-github-pat>"}}},{name:"vercel",icon:"vercel.com",description:"Deployments and projects",config:{url:"https://mcp.vercel.com"}},{name:"netlify",icon:"netlify.com",description:"Sites, builds, and deploys",config:{url:"https://mcp.netlify.com/mcp"}},{name:"cloudflare",icon:"cloudflare.com",description:"Workers bindings — D1, R2, KV",config:{url:"https://bindings.mcp.cloudflare.com/mcp"}},{name:"supabase",icon:"supabase.com",description:"Projects, tables, and SQL",config:{url:"https://mcp.supabase.com/mcp"}},{name:"neon",icon:"neon.tech",description:"Postgres branches and queries",config:{url:"https://mcp.neon.tech/mcp"}},{name:"prisma",icon:"prisma.io",description:"Postgres databases and schema",config:{url:"https://mcp.prisma.io/mcp"}},{name:"sentry",icon:"sentry.io",description:"Errors and performance issues",config:{url:"https://mcp.sentry.dev/mcp"}},{name:"grafana",icon:"grafana.com",description:"Dashboards, metrics, and alerts",config:{url:"https://mcp.grafana.com/mcp"}},{name:"semgrep",icon:"semgrep.dev",description:"Scan code for security findings",config:{url:"https://mcp.semgrep.ai/mcp"}},{name:"postman",icon:"postman.com",description:"Collections, environments, and requests",config:{url:"https://mcp.postman.com/mcp"}},{name:"resend",icon:"resend.com",description:"Send email and manage audiences",config:{url:"https://mcp.resend.com/mcp"}},{name:"hugging-face",icon:"huggingface.co",description:"Models, datasets, and Spaces",config:{url:"https://huggingface.co/mcp"}},{name:"apify",icon:"apify.com",description:"Run scrapers and automation actors",config:{url:"https://mcp.apify.com"}},{name:"exa",icon:"exa.ai",description:"Web search for agents",config:{url:"https://mcp.exa.ai/mcp"}},{name:"kagi",icon:"kagi.com",description:"Search, summarize, and answer",config:{url:"https://mcp.kagi.com/mcp"}},{name:"context7",icon:"context7.com",description:"Up-to-date library docs",config:{url:"https://mcp.context7.com/mcp"}},{name:"deepwiki",icon:"deepwiki.com",description:"Ask questions about any GitHub repo",config:{url:"https://mcp.deepwiki.com/mcp"}},{name:"microsoft-learn",icon:"learn.microsoft.com",description:"Microsoft and Azure docs — no account",config:{url:"https://learn.microsoft.com/api/mcp"}},{name:"aws-knowledge",icon:"aws.amazon.com",description:"AWS docs and API references — no account",config:{url:"https://knowledge-mcp.global.api.aws"}},{name:"cloudflare-docs",icon:"developers.cloudflare.com",description:"Cloudflare docs — no account",config:{url:"https://docs.mcp.cloudflare.com/mcp"}},{name:"stack-overflow",icon:"stackoverflow.com",description:"Questions, answers, and teams",config:{url:"https://mcp.stackoverflow.com"}}];var W=e.i(895836),_=e.i(333999),G=e.i(609856),Q=e.i(283653);function X({name:e,onDone:n}){let[s,a]=(0,h.useState)(""),{data:r,isLoading:o}=(0,Q.useServerRoute)(f.queryKey.mcpServer(e)),[i,c]=(0,G.useServerAction)($,{...el,onOk:t=>{el.onOk(t),(0,Q.revalidate)(f.queryKey.mcpServer(e))}}),[d,m]=(0,G.useServerAction)(F,{okMessage:"Server deleted",onOk:()=>{n(),(0,Q.revalidate)(f.queryKey.mcp)}}),p=async()=>{await S.notify.confirm({title:`Delete ${e}?`,description:"Its connection and saved authorization go with it.",okText:"Delete",destructive:!0})&&d(e)};if(o)return(0,t.jsx)(W.SettingSkeleton,{rows:4});if(!r)return null;let x=r.tools.length,v=s.trim().toLowerCase(),j=v?r.tools.filter(e=>`${e.name} ${e.description??""}`.toLowerCase().includes(v)):r.tools,b=B(r.config)?"HTTP":"STDIO";return(0,t.jsxs)(W.SettingDialogContent,{title:r.name,description:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)("span",{className:"shrink-0 rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[10px]",children:b}),(0,t.jsx)("span",{className:"truncate font-mono",children:em(r.config)})]}),footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(g.Button,{variant:"ghost",loading:m,onClick:p,className:"mr-auto text-destructive hover:text-destructive",children:[(0,t.jsx)(u.Trash2,{}),"Delete"]}),(0,t.jsxs)(g.Button,{variant:"outline",loading:c,onClick:()=>i(r.name),children:[(0,t.jsx)(l,{}),"Reconnect"]})]}),children:[r.lastError&&(0,t.jsx)("p",{className:"rounded-lg bg-destructive/10 px-3 py-2 font-mono text-xs text-destructive",children:r.lastError}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(W.SettingFilter,{value:s,onChange:a,placeholder:"Filter tools"}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:[x," ",1===x?"tool":"tools"]})]}),j.map(e=>(0,t.jsx)(ee,{tool:e,serverName:r.name},e.name)),0===j.length&&x>0&&(0,t.jsx)("p",{className:"py-6 text-center text-sm text-muted-foreground",children:"No tool here goes by that."})]})}function Y({server:e}){let s=e.toolCount,r=e.lastError?"error":s>0?"connected":"idle";return(0,t.jsxs)("button",{type:"button",onClick:()=>{S.notify.component({className:"sm:max-w-3xl",renderer:({close:n})=>(0,t.jsx)(X,{name:e.name,onDone:n})})},className:"group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-lg bg-muted text-muted-foreground",children:(0,t.jsx)(Z,{server:e})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:e.name}),"connected"===r&&(0,t.jsx)(n.Check,{className:"size-3 shrink-0 text-muted-foreground"})]}),(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:"error"===r?(0,t.jsx)("span",{className:"text-destructive",children:e.lastError}):(0,t.jsxs)(t.Fragment,{children:[s>0?`${s} ${1===s?"tool":"tools"}`:"No tools yet",(0,t.jsxs)("span",{className:"font-mono text-[11px] text-muted-foreground/70",children:[" · ",em(e.config)]})]})})]}),(0,t.jsx)(a.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}function Z({server:e}){let n,s=(n=V.find(t=>B(t.config)?B(e.config)&&t.config.url.replace(/\/+$/,"")===e.config.url.replace(/\/+$/,""):!B(e.config)&&t.config.command===e.config.command&&(t.config.args??[]).join(" ")===(e.config.args??[]).join(" "))??V.find(t=>t.name===e.name),n?.icon);return s?(0,t.jsx)(w.SiteIcon,{host:s,className:"size-5",fallback:(0,t.jsx)(m,{className:"size-4"})}):(0,t.jsx)(m,{className:"size-4"})}function ee({tool:e,serverName:n}){let[r,o]=(0,h.useState)(!1),[i,c]=(0,h.useState)(!1),[l,d]=(0,h.useState)(!1),m=[["inputSchema",e.inputSchema],["outputSchema",e.outputSchema]].filter(([,e])=>e);return(0,t.jsxs)("div",{className:"rounded-xl border border-border/60 bg-background p-4",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-sm",children:e.name}),m.length>0&&(0,t.jsxs)(g.Button,{size:"xs",variant:"ghost",className:"shrink-0 font-mono",onClick:()=>o(!r),children:[r?(0,t.jsx)(s.ChevronDown,{}):(0,t.jsx)(a.ChevronRight,{}),"Schema"]}),(0,t.jsxs)(g.Button,{size:"xs",variant:"ghost",className:"shrink-0 font-mono",onClick:()=>c(!i),children:[i?(0,t.jsx)(s.ChevronDown,{}):(0,t.jsx)(a.ChevronRight,{}),"Test"]})]}),e.description?(0,t.jsx)("p",{className:(0,j.cn)("mt-0.5 text-xs leading-relaxed text-muted-foreground",!l&&"line-clamp-2",e.description.length>140&&"cursor-pointer"),onClick:()=>d(!l),children:e.description}):null,r?(0,t.jsx)("div",{className:"mt-2 space-y-3 overflow-x-auto rounded-lg border border-input p-3",children:m.map(([e,n])=>(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("span",{className:"block font-mono text-xs text-muted-foreground",children:"inputSchema"===e?"in":"out"}),(0,t.jsx)("pre",{className:"font-mono text-xs leading-relaxed whitespace-pre",children:function e(t,n=0){if(!t||"object"!=typeof t)return"unknown";let s=" ".repeat(n+1),a=" ".repeat(n);if(Array.isArray(t.enum))return t.enum.map(e=>JSON.stringify(e)).join(" | ");let r=t.anyOf??t.oneOf;if(Array.isArray(r))return r.map(t=>e(t,n)).join(" | ");if("array"===t.type){let s=e(t.items,n);return/[|{]/.test(s)?`(${s})[]`:`${s}[]`}if("object"===t.type||t.properties){let r=t.properties;if(!r||0===Object.keys(r).length)return"{}";let o=t.required??[],i=Object.entries(r).map(([t,a])=>{let r=o.includes(t)?"":"?",i=a?.description,c="string"==typeof i&&i.length<=60?` // ${i}`:"";return`${s}${t}${r}: ${e(a,n+1)}${c}`});return`{
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,986530,e=>{"use strict";var t=e.i(843476),n=e.i(225913);e.i(271645);var s=e.i(647163);function a({className:e,...n}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}e.i(652225);let r=(0,n.cva)("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});e.s(["Field",0,function({className:e,orientation:n="vertical",...a}){return(0,t.jsx)("div",{role:"group","data-slot":"field","data-orientation":n,className:(0,s.cn)(r({orientation:n}),e),...a})},"FieldContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"field-content",className:(0,s.cn)("group/field-content flex flex-1 flex-col gap-0.5 leading-snug",e),...n})},"FieldLabel",0,function({className:e,...n}){return(0,t.jsx)(a,{"data-slot":"field-label",className:(0,s.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",e),...n})}],986530)},787800,e=>{"use strict";var t=e.i(843476),n=e.i(689664),s=e.i(716327),a=e.i(867927),r=e.i(21357),o=e.i(77071),i=e.i(456420);let c={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};c.node;let l=(0,i.default)(c),d={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};d.node;let m=(0,i.default)(d);var u=e.i(759659),p=e.i(263676),h=e.i(271645),f=e.i(798120),g=e.i(167881),x=e.i(986530),v=e.i(23750),j=e.i(647163);let b=(0,h.memo)(({data:e,name:n,initialExpandDepth:s=2})=>{let a=(0,h.useMemo)(()=>"string"==typeof e?function(e){let t=e.trim();if(!(t.startsWith("{")&&t.endsWith("}"))&&!(t.startsWith("[")&&t.endsWith("]")))return{success:!1,data:e};try{return{success:!0,data:JSON.parse(e)}}catch{return{success:!1,data:e}}}(e).data:e,[e]);return(0,t.jsx)("div",{className:"text-sm",children:(0,t.jsx)(k,{data:a,name:n,depth:0,initialExpandDepth:s})})});b.displayName="JsonView";let y=(e,t)=>({role:"button",tabIndex:0,"aria-expanded":e,onClick:t,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())}}),N="outline-none focus-visible:ring-3 focus-visible:ring-ring/50",k=(0,h.memo)(({data:e,name:n,depth:s=0,initialExpandDepth:a})=>{var r;let o=void 0===e?"undefined":Array.isArray(e)?"array":null===e?"null":typeof e,[i,c]=(0,h.useState)("string"!==o&&s<a),l={number:"text-blue-500",boolean:"text-amber-500",null:"text-purple-500",undefined:"text-gray-500",string:"text-foreground break-all whitespace-pre-wrap",default:"text-muted-foreground"};switch(o){case"object":case"array":let d,m,u;return m=(d=(r="array"===o)?e:Object.entries(e)).length,u={open:r?"[":"{",close:r?"]":"}",collapsed:r?"[ ... ]":"{ ... }",empty:r?"[]":"{}"},0===m?(0,t.jsxs)("div",{className:"flex items-center",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:u.empty})]}):(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:(0,j.cn)("flex items-center mr-1 rounded cursor-pointer group hover:bg-input/30",N),...y(i,()=>c(!i)),children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground hover:text-foreground",children:[n,":"]}),i?(0,t.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground",children:u.open}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground",children:u.collapsed}),(0,t.jsxs)("span",{className:"ml-1 text-muted-foreground group-hover:text-foreground",children:[m," ",1===m?"item":"items"]})]})]}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"pl-2 ml-4 border-l border-border",children:r?d.map((e,n)=>(0,t.jsx)("div",{className:"my-1",children:(0,t.jsx)(k,{data:e,name:`${n}`,depth:s+1,initialExpandDepth:a})},n)):d.map(([e,n])=>(0,t.jsx)("div",{className:"my-1",children:(0,t.jsx)(k,{data:n,name:e,depth:s+1,initialExpandDepth:a})},e))}),(0,t.jsx)("div",{className:"text-muted-foreground",children:u.close})]})]});case"string":return e.length>100?(0,t.jsxs)("div",{className:"flex mr-1 rounded group hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground hover:text-foreground",children:[n,":"]}),(0,t.jsx)("pre",{className:(0,j.cn)(l.string,"cursor-pointer group-hover:text-foreground",N),...y(i,()=>c(!i)),title:i?"Click to collapse":"Click to expand",children:i?`"${e}"`:`"${e.slice(0,100)}..."`})]}):(0,t.jsxs)("div",{className:"flex mr-1 rounded hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsxs)("pre",{className:l.string,children:['"',e,'"']})]});case"undefined":return(0,t.jsxs)("div",{className:"flex items-center mr-1 rounded hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsx)("span",{className:l.undefined,children:"undefined"})]});default:return(0,t.jsxs)("div",{className:"flex items-center mr-1 rounded hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsx)("span",{className:l[o]||l.default,children:null===e?"null":String(e)})]})}});k.displayName="JsonNode";var S=e.i(917162),w=e.i(818125),z=e.i(319036),C=e.i(127341),O=e.i(184762),A=e.i(6799),T=e.i(95187);let P=(0,T.createServerReference)("7f5bc44c6df1d9dbd20774e56cce16614b070ead00",T.callServer,void 0,T.findSourceMapURL,"callToolAction"),F=(0,T.createServerReference)("7f9af58d285f49abd4ebc86d359a2e6bab54047220",T.callServer,void 0,T.findSourceMapURL,"deleteServerAction"),$=(0,T.createServerReference)("7fb539827d92480336e8cd95c1e4427b94cc24dd16",T.callServer,void 0,T.findSourceMapURL,"refreshServerAction"),R=(0,T.createServerReference)("7f17f1d5f418c0b333e1b848659732952124a2f7b8",T.callServer,void 0,T.findSourceMapURL,"registerServerAction");var M=e.i(681307),D=e.i(245629);let L=M.z.object({url:M.z.url(),headers:M.z.record(M.z.string(),M.z.string()).optional()}),E=M.z.object({command:M.z.string().min(1),args:M.z.array(M.z.string()).optional(),env:M.z.record(M.z.string(),M.z.string()).optional()}),I=M.z.union([L,E]),q=M.z.object({name:M.z.string(),description:M.z.string().optional(),inputSchema:M.z.looseObject({}).optional(),outputSchema:M.z.looseObject({}).optional()});function B(e){return"url"in e}M.z.object({clientInformation:M.z.looseObject({}).optional(),tokens:M.z.looseObject({}).optional(),authorizationServer:M.z.looseObject({}).optional(),codeVerifier:M.z.string().optional(),state:M.z.string().optional()});let J=M.z.object({name:M.z.string().min(1).max(40),config:I,toolCount:M.z.number().int(),lastError:M.z.string().nullish()}),U=q.extend({id:M.z.number().int(),description:M.z.string().nullish()});J.omit({toolCount:!0}).extend({tools:U.array().default([]),toolsSyncedAt:D.DateLikeSchema});let K=M.z.object({name:M.z.string().min(1,"Name is required").max(40).regex(/^[a-zA-Z0-9_-]+$/,"Only letters, numbers, - and _ are allowed"),config:I}),H=M.z.union([M.z.object({mcpServers:M.z.record(M.z.string(),I)}),M.z.record(M.z.string(),I)]),V=[{name:"todoist",icon:"todoist.com",description:"Tasks, projects, and due dates",config:{url:"https://ai.todoist.net/mcp"}},{name:"home-assistant",icon:"home-assistant.io",description:"Lights, switches, and the rest of the house — your address and a long-lived token",config:{url:"http://homeassistant.local:8123/api/mcp",headers:{Authorization:"Bearer <your-home-assistant-token>"}}},{name:"kiwi",icon:"kiwi.com",description:"Flight search — no account",config:{url:"https://mcp.kiwi.com"}},{name:"zapier",icon:"zapier.com",description:"Gmail, Google Calendar, and thousands of apps you connect there",config:{url:"https://mcp.zapier.com/api/v1/connect"}},{name:"notion",icon:"notion.so",description:"Pages, databases, and search",config:{url:"https://mcp.notion.com/mcp"}},{name:"canva",icon:"canva.com",description:"Create and manage designs",config:{url:"https://mcp.canva.com/mcp"}},{name:"slack",icon:"slack.com",description:"Channels, messages, and search",config:{url:"https://mcp.slack.com/mcp"}},{name:"box",icon:"box.com",description:"Files, folders, and content search",config:{url:"https://mcp.box.com/mcp"}},{name:"airtable",icon:"airtable.com",description:"Bases, tables, and records",config:{url:"https://mcp.airtable.com/mcp"}},{name:"fireflies",icon:"fireflies.ai",description:"Meeting transcripts and summaries",config:{url:"https://mcp.fireflies.ai/mcp"}},{name:"asana",icon:"asana.com",description:"Tasks, projects, and portfolios",config:{url:"https://mcp.asana.com/mcp"}},{name:"monday",icon:"monday.com",description:"Boards, items, and updates",config:{url:"https://mcp.monday.com/mcp"}},{name:"clickup",icon:"clickup.com",description:"Tasks, docs, and spaces",config:{url:"https://mcp.clickup.com/mcp"}},{name:"linear",icon:"linear.app",description:"Issues, projects, and cycles",config:{url:"https://mcp.linear.app/mcp"}},{name:"atlassian",icon:"atlassian.com",description:"Jira and Confluence",config:{url:"https://mcp.atlassian.com/v1/mcp"}},{name:"hubspot",icon:"hubspot.com",description:"Contacts, deals, and companies",config:{url:"https://app.hubspot.com/mcp/v1/http"}},{name:"attio",icon:"attio.com",description:"CRM records and lists",config:{url:"https://mcp.attio.com/mcp"}},{name:"intercom",icon:"intercom.com",description:"Conversations and support tickets",config:{url:"https://mcp.intercom.com/mcp"}},{name:"wix",icon:"wix.com",description:"Sites, stores, and bookings",config:{url:"https://mcp.wix.com/mcp"}},{name:"webflow",icon:"webflow.com",description:"Sites, pages, and CMS collections",config:{url:"https://mcp.webflow.com/mcp"}},{name:"sanity",icon:"sanity.io",description:"Structured content and datasets",config:{url:"https://mcp.sanity.io/mcp"}},{name:"stripe",icon:"stripe.com",description:"Payments, invoices, and customers",config:{url:"https://mcp.stripe.com"}},{name:"paypal",icon:"paypal.com",description:"Payments and orders",config:{url:"https://mcp.paypal.com/mcp"}},{name:"square",icon:"squareup.com",description:"Payments, catalog, and orders",config:{url:"https://mcp.squareup.com/mcp"}},{name:"ramp",icon:"ramp.com",description:"Spend, cards, and transactions",config:{url:"https://mcp.ramp.com/mcp"}},{name:"github",icon:"github.com",description:"Repos, issues, PRs — paste a personal access token",config:{url:"https://api.githubcopilot.com/mcp/",headers:{Authorization:"Bearer <your-github-pat>"}}},{name:"vercel",icon:"vercel.com",description:"Deployments and projects",config:{url:"https://mcp.vercel.com"}},{name:"netlify",icon:"netlify.com",description:"Sites, builds, and deploys",config:{url:"https://mcp.netlify.com/mcp"}},{name:"cloudflare",icon:"cloudflare.com",description:"Workers bindings — D1, R2, KV",config:{url:"https://bindings.mcp.cloudflare.com/mcp"}},{name:"supabase",icon:"supabase.com",description:"Projects, tables, and SQL",config:{url:"https://mcp.supabase.com/mcp"}},{name:"neon",icon:"neon.tech",description:"Postgres branches and queries",config:{url:"https://mcp.neon.tech/mcp"}},{name:"prisma",icon:"prisma.io",description:"Postgres databases and schema",config:{url:"https://mcp.prisma.io/mcp"}},{name:"sentry",icon:"sentry.io",description:"Errors and performance issues",config:{url:"https://mcp.sentry.dev/mcp"}},{name:"grafana",icon:"grafana.com",description:"Dashboards, metrics, and alerts",config:{url:"https://mcp.grafana.com/mcp"}},{name:"semgrep",icon:"semgrep.dev",description:"Scan code for security findings",config:{url:"https://mcp.semgrep.ai/mcp"}},{name:"postman",icon:"postman.com",description:"Collections, environments, and requests",config:{url:"https://mcp.postman.com/mcp"}},{name:"resend",icon:"resend.com",description:"Send email and manage audiences",config:{url:"https://mcp.resend.com/mcp"}},{name:"hugging-face",icon:"huggingface.co",description:"Models, datasets, and Spaces",config:{url:"https://huggingface.co/mcp"}},{name:"apify",icon:"apify.com",description:"Run scrapers and automation actors",config:{url:"https://mcp.apify.com"}},{name:"exa",icon:"exa.ai",description:"Web search for agents",config:{url:"https://mcp.exa.ai/mcp"}},{name:"kagi",icon:"kagi.com",description:"Search, summarize, and answer",config:{url:"https://mcp.kagi.com/mcp"}},{name:"context7",icon:"context7.com",description:"Up-to-date library docs",config:{url:"https://mcp.context7.com/mcp"}},{name:"deepwiki",icon:"deepwiki.com",description:"Ask questions about any GitHub repo",config:{url:"https://mcp.deepwiki.com/mcp"}},{name:"microsoft-learn",icon:"learn.microsoft.com",description:"Microsoft and Azure docs — no account",config:{url:"https://learn.microsoft.com/api/mcp"}},{name:"aws-knowledge",icon:"aws.amazon.com",description:"AWS docs and API references — no account",config:{url:"https://knowledge-mcp.global.api.aws"}},{name:"cloudflare-docs",icon:"developers.cloudflare.com",description:"Cloudflare docs — no account",config:{url:"https://docs.mcp.cloudflare.com/mcp"}},{name:"stack-overflow",icon:"stackoverflow.com",description:"Questions, answers, and teams",config:{url:"https://mcp.stackoverflow.com"}}];var W=e.i(895836),_=e.i(333999),G=e.i(609856),Q=e.i(283653);function X({name:e,onDone:n}){let[s,a]=(0,h.useState)(""),{data:r,isLoading:o}=(0,Q.useServerRoute)(f.queryKey.mcpServer(e)),[i,c]=(0,G.useServerAction)($,{...el,onOk:t=>{el.onOk(t),(0,Q.revalidate)(f.queryKey.mcpServer(e))}}),[d,m]=(0,G.useServerAction)(F,{okMessage:"Server deleted",onOk:()=>{n(),(0,Q.revalidate)(f.queryKey.mcp)}}),p=async()=>{await S.notify.confirm({title:`Delete ${e}?`,description:"Its connection and saved authorization go with it.",okText:"Delete",destructive:!0})&&d(e)};if(o)return(0,t.jsx)(W.SettingSkeleton,{rows:4});if(!r)return null;let x=r.tools.length,v=s.trim().toLowerCase(),j=v?r.tools.filter(e=>`${e.name} ${e.description??""}`.toLowerCase().includes(v)):r.tools,b=B(r.config)?"HTTP":"STDIO";return(0,t.jsxs)(W.SettingDialogContent,{title:r.name,description:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)("span",{className:"shrink-0 rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[10px]",children:b}),(0,t.jsx)("span",{className:"truncate font-mono",children:em(r.config)})]}),footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(g.Button,{variant:"ghost",loading:m,onClick:p,className:"mr-auto text-destructive hover:text-destructive",children:[(0,t.jsx)(u.Trash2,{}),"Delete"]}),(0,t.jsxs)(g.Button,{variant:"outline",loading:c,onClick:()=>i(r.name),children:[(0,t.jsx)(l,{}),"Reconnect"]})]}),children:[r.lastError&&(0,t.jsx)("p",{className:"rounded-lg bg-destructive/10 px-3 py-2 font-mono text-xs text-destructive",children:r.lastError}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(W.SettingFilter,{value:s,onChange:a,placeholder:"Filter tools"}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:[x," ",1===x?"tool":"tools"]})]}),j.map(e=>(0,t.jsx)(ee,{tool:e,serverName:r.name},e.name)),0===j.length&&x>0&&(0,t.jsx)("p",{className:"py-6 text-center text-sm text-muted-foreground",children:"No tool here goes by that."})]})}function Y({server:e}){let s=e.toolCount,r=e.lastError?"error":s>0?"connected":"idle";return(0,t.jsxs)("button",{type:"button",onClick:()=>{S.notify.component({className:"sm:max-w-3xl",renderer:({close:n})=>(0,t.jsx)(X,{name:e.name,onDone:n})})},className:"group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-lg bg-muted text-muted-foreground",children:(0,t.jsx)(Z,{server:e})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:e.name}),"connected"===r&&(0,t.jsx)(n.Check,{className:"size-3 shrink-0 text-muted-foreground"})]}),(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:"error"===r?(0,t.jsx)("span",{className:"text-destructive",children:e.lastError}):(0,t.jsxs)(t.Fragment,{children:[s>0?`${s} ${1===s?"tool":"tools"}`:"No tools yet",(0,t.jsxs)("span",{className:"font-mono text-[11px] text-muted-foreground/70",children:[" · ",em(e.config)]})]})})]}),(0,t.jsx)(a.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}function Z({server:e}){let n,s=(n=V.find(t=>B(t.config)?B(e.config)&&t.config.url.replace(/\/+$/,"")===e.config.url.replace(/\/+$/,""):!B(e.config)&&t.config.command===e.config.command&&(t.config.args??[]).join(" ")===(e.config.args??[]).join(" "))??V.find(t=>t.name===e.name),n?.icon);return s?(0,t.jsx)(w.SiteIcon,{host:s,className:"size-5",fallback:(0,t.jsx)(m,{className:"size-4"})}):(0,t.jsx)(m,{className:"size-4"})}function ee({tool:e,serverName:n}){let[r,o]=(0,h.useState)(!1),[i,c]=(0,h.useState)(!1),[l,d]=(0,h.useState)(!1),m=[["inputSchema",e.inputSchema],["outputSchema",e.outputSchema]].filter(([,e])=>e);return(0,t.jsxs)("div",{className:"rounded-xl border border-border/60 bg-background p-4",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-sm",children:e.name}),m.length>0&&(0,t.jsxs)(g.Button,{size:"xs",variant:"ghost",className:"shrink-0 font-mono",onClick:()=>o(!r),children:[r?(0,t.jsx)(s.ChevronDown,{}):(0,t.jsx)(a.ChevronRight,{}),"Schema"]}),(0,t.jsxs)(g.Button,{size:"xs",variant:"ghost",className:"shrink-0 font-mono",onClick:()=>c(!i),children:[i?(0,t.jsx)(s.ChevronDown,{}):(0,t.jsx)(a.ChevronRight,{}),"Test"]})]}),e.description?(0,t.jsx)("p",{className:(0,j.cn)("mt-0.5 text-xs leading-relaxed text-muted-foreground",!l&&"line-clamp-2",e.description.length>140&&"cursor-pointer"),onClick:()=>d(!l),children:e.description}):null,r?(0,t.jsx)("div",{className:"mt-2 space-y-3 overflow-x-auto rounded-lg border border-input p-3",children:m.map(([e,n])=>(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("span",{className:"block font-mono text-xs text-muted-foreground",children:"inputSchema"===e?"in":"out"}),(0,t.jsx)("pre",{className:"font-mono text-xs leading-relaxed whitespace-pre",children:function e(t,n=0){if(!t||"object"!=typeof t)return"unknown";let s=" ".repeat(n+1),a=" ".repeat(n);if(Array.isArray(t.enum))return t.enum.map(e=>JSON.stringify(e)).join(" | ");let r=t.anyOf??t.oneOf;if(Array.isArray(r))return r.map(t=>e(t,n)).join(" | ");if("array"===t.type){let s=e(t.items,n);return/[|{]/.test(s)?`(${s})[]`:`${s}[]`}if("object"===t.type||t.properties){let r=t.properties;if(!r||0===Object.keys(r).length)return"{}";let o=t.required??[],i=Object.entries(r).map(([t,a])=>{let r=o.includes(t)?"":"?",i=a?.description,c="string"==typeof i&&i.length<=60?` // ${i}`:"";return`${s}${t}${r}: ${e(a,n+1)}${c}`});return`{
2
2
  ${i.join("\n")}
3
3
  ${a}}`}return Array.isArray(t.type)?t.type.join(" | "):"string"==typeof t.type?t.type:"unknown"}(n)})]},e))}):null,i?(0,t.jsx)(et,{tool:e,serverName:n}):null]})}function et({tool:e,serverName:n}){let[s,a]=(0,h.useState)(()=>(function(e){let t=e.inputSchema?.properties;if(!t||"object"!=typeof t)return"{}";let n={};for(let[e,s]of Object.entries(t))n[e]=s?.type==="number"||s?.type==="integer"?0:s?.type!=="boolean"&&(s?.type==="array"?[]:s?.type==="object"?{}:"");return JSON.stringify(n,null,2)})(e)),[o,i]=(0,h.useState)(""),[c,l,d,m,u]=(0,G.useServerAction)(P,{errorMessage:!1});return(0,t.jsxs)("div",{className:"mt-2 space-y-2 rounded-lg border border-input p-3",children:[(0,t.jsx)(O.Textarea,{value:s,onChange:e=>a(e.target.value),spellCheck:!1,className:"min-h-24 resize-none font-mono text-xs"}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-xs text-destructive",children:o||m}),(0,t.jsxs)(g.Button,{size:"sm",loading:l,onClick:()=>{let t;try{t=s.trim()?JSON.parse(s):void 0}catch{i("Not valid JSON");return}i(""),u(),c(n,e.name,t)},children:[!l&&(0,t.jsx)(r.Play,{}),"Run"]})]}),void 0!==d&&(0,t.jsx)("div",{className:"overflow-x-auto rounded-lg bg-muted/40 p-3",children:(0,t.jsx)(b,{data:d,initialExpandDepth:3})})]})}function en(e){return S.notify.component({className:"sm:max-w-lg",renderer:({close:n})=>(0,t.jsx)(es,{initial:e,onDone:n})})}function es({initial:e,onDone:n}){let s=e&&B(e.config)?e.config:void 0,a=e&&!B(e.config)?e.config:void 0,[r,o]=(0,_.useObjectState)({mode:a?"stdio":"http",name:e?.name??"",url:s?.url??"",headers:eo(s?.headers),command:a?.command??"",args:(a?.args??[]).join(" "),env:eo(a?.env),raw:""}),{mode:i,name:c,url:l,headers:d,command:m,args:u,env:p,raw:f}=r,[j,b]=(0,G.useServerAction)(R,{...el,onOk:e=>{el.onOk(e),"error"!==e.status&&n()}}),y=(0,h.useMemo)(()=>{var e,t,n,s,a;let r,o;return"json"===i?function(e){let t,n=e.trim();if(!n)return{value:null,error:""};try{t=JSON.parse(n)}catch{return{value:null,error:"Not valid JSON"}}let s=I.safeParse(t);if(s.success)return{value:{name:null,config:s.data},error:""};let a=H.safeParse(t);if(!a.success)return{value:null,error:"Needs a url or a command"};let r=Object.entries("mcpServers"in a.data?a.data.mcpServers:a.data)[0];return r?{value:{name:r[0],config:r[1]},error:""}:{value:null,error:"No server in there"}}(f):"http"===i?(e=l,t=d,(r=L.safeParse({url:e.trim(),headers:ei(t)})).success?{value:{name:null,config:r.data},error:""}:{value:null,error:e.trim()?"Needs a valid url":""}):(n=m,s=u,a=p,(o=E.safeParse({command:n.trim(),args:s.split(/\s+/).filter(Boolean),env:ei(a)})).success?{value:{name:null,config:o.data},error:""}:{value:null,error:n.trim()?"Needs a command":""})},[i,f,l,d,m,u,p]),N="json"===i?f:JSON.stringify([i,l,d,m,u,p]),[k,S]=(0,h.useState)(N);(0,h.useEffect)(()=>{let e=setTimeout(()=>S(N),700);return()=>clearTimeout(e)},[N]);let w=k===N?y.error:"",A=c||y.value?.name||"",T=K.safeParse({name:A,config:y.value?.config});function P(e){let t=y.value?.config;return t?"json"===e?o({mode:e,raw:JSON.stringify(t,null,2)}):"http"===e&&B(t)?o({mode:e,url:t.url,headers:eo(t.headers)}):"stdio"!==e||B(t)?void o({mode:e}):o({mode:e,command:t.command,args:(t.args??[]).join(" "),env:eo(t.env)}):o({mode:e})}let F=(0,t.jsxs)("span",{className:"flex items-center gap-2 font-mono text-xs text-muted-foreground",children:["JSON",(0,t.jsx)(z.Switch,{size:"sm",checked:"json"===i,onCheckedChange:e=>{let t;return e?P("json"):void P((t=y.value?.config)&&!B(t)?"stdio":"http")}})]});return(0,t.jsx)(W.SettingDialogContent,{title:"Add MCP server",description:"Its tools become available to every bot.",footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.Button,{variant:"ghost",onClick:n,children:"Cancel"}),(0,t.jsx)(g.Button,{disabled:!T.success,loading:b,onClick:()=>{T.success&&!b&&j(T.data)},children:"Connect"})]}),children:(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)(x.Field,{children:[(0,t.jsx)(x.FieldLabel,{children:"Name"}),(0,t.jsx)(v.Input,{value:A,onChange:e=>o({name:e.target.value}),placeholder:"notion",spellCheck:!1})]}),"json"===i?(0,t.jsxs)(x.Field,{children:[(0,t.jsxs)("div",{className:"flex min-h-6 items-center justify-between gap-2",children:[(0,t.jsx)(x.FieldLabel,{children:"JSON"}),F]}),(0,t.jsx)(O.Textarea,{value:f,onChange:e=>o({raw:e.target.value}),spellCheck:!1,placeholder:ec,className:"min-h-64 resize-none font-mono text-xs"})]}):(0,t.jsxs)(C.Tabs,{value:i,onValueChange:e=>P(e),className:"gap-6",children:[(0,t.jsxs)(x.Field,{children:[(0,t.jsxs)("div",{className:"flex min-h-6 items-center justify-between gap-2",children:[(0,t.jsx)(x.FieldLabel,{children:"Transport"}),F]}),(0,t.jsxs)(C.TabsList,{className:"w-full",children:[(0,t.jsx)(C.TabsTrigger,{value:"http",children:"HTTP"}),(0,t.jsx)(C.TabsTrigger,{value:"stdio",children:"STDIO"})]})]}),(0,t.jsxs)(C.TabsContent,{value:"http",className:"space-y-6",children:[(0,t.jsxs)(x.Field,{children:[(0,t.jsx)(x.FieldLabel,{children:"URL"}),(0,t.jsx)(v.Input,{value:l,onChange:e=>o({url:e.target.value}),placeholder:"https://mcp.notion.com/mcp",spellCheck:!1,className:"font-mono text-xs"})]}),(0,t.jsx)(ea,{label:"Headers",pairs:d,onChange:e=>o({headers:e}),keyPlaceholder:"Authorization",valuePlaceholder:"Bearer sk-..."})]}),(0,t.jsxs)(C.TabsContent,{value:"stdio",className:"space-y-6",children:[(0,t.jsxs)(x.Field,{children:[(0,t.jsx)(x.FieldLabel,{children:"Command"}),(0,t.jsx)(v.Input,{value:m,onChange:e=>o({command:e.target.value}),placeholder:"npx",spellCheck:!1,className:"font-mono text-xs"})]}),(0,t.jsxs)(x.Field,{children:[(0,t.jsx)(x.FieldLabel,{children:"Args"}),(0,t.jsx)(v.Input,{value:u,onChange:e=>o({args:e.target.value}),placeholder:"-y @notionhq/notion-mcp-server",spellCheck:!1,className:"font-mono text-xs"})]}),(0,t.jsx)(ea,{label:"Env",pairs:p,onChange:e=>o({env:e}),keyPlaceholder:"NOTION_TOKEN",valuePlaceholder:"ntn_..."})]})]}),w&&(0,t.jsx)("p",{className:"font-mono text-xs text-destructive",children:w})]})})}function ea({label:e,pairs:n,onChange:s,keyPlaceholder:a,valuePlaceholder:r}){let i=(e,t)=>s(n.map(n=>n.id===e?{...n,...t}:n));return(0,t.jsxs)(x.Field,{children:[(0,t.jsx)(x.FieldLabel,{children:e}),(0,t.jsxs)("div",{className:"space-y-2",children:[n.map(e=>(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(v.Input,{value:e.key,onChange:t=>i(e.id,{key:t.target.value}),placeholder:a,spellCheck:!1,className:"font-mono text-xs"}),(0,t.jsx)(v.Input,{value:e.value,onChange:t=>i(e.id,{value:t.target.value}),placeholder:r,spellCheck:!1,className:"font-mono text-xs"}),(0,t.jsx)(g.Button,{variant:"ghost",size:"icon","aria-label":"Remove this row",onClick:()=>s(n.filter(t=>t.id!==e.id)),children:(0,t.jsx)(p.X,{})})]},e.id)),(0,t.jsxs)(g.Button,{variant:"outline",size:"sm",onClick:()=>s([...n,er()]),children:[(0,t.jsx)(o.Plus,{}),"Add"]})]})]})}let er=(e="",t="")=>({id:crypto.randomUUID(),key:e,value:t}),eo=e=>Object.entries(e??{}).map(([e,t])=>er(e,t)),ei=e=>{let t=e.filter(e=>e.key.trim());if(t.length)return Object.fromEntries(t.map(e=>[e.key.trim(),e.value]))},ec=`/** STDIO Example */
4
4
  {
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,480869,e=>{"use strict";var t=e.i(843476),n=e.i(401851),a=e.i(493801),i=e.i(456420);let s={name:"calendar-days",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]]};s.node;let r=(0,i.default)(s);var l=e.i(689664),o=e.i(716327),d=e.i(867927),u=e.i(632781),c=e.i(648119),m=e.i(21357),h=e.i(759659),x=e.i(263676),f=e.i(271645),p=e.i(798120),g=e.i(167881),b=e.i(630374),y=e.i(463415),j=e.i(23750),k=e.i(917162),v=e.i(421429),w=e.i(660302),N=e.i(319036),M=e.i(184762),S=e.i(41533),D=e.i(635963),T=e.i(978411),C=e.i(895836),$=e.i(989409),R=e.i(245629),O=e.i(609856),A=e.i(283653),z=e.i(647163),q=e.i(95187);let I=(0,q.createServerReference)("7fb21b18c6abc3ba14c4c0c36f2c9ecbe3c644d6c7",q.callServer,void 0,q.findSourceMapURL,"createRoutineAction"),E=(0,q.createServerReference)("7f97b1aa7b52044a0c13d09b86cc1c92cf27b14d0e",q.callServer,void 0,q.findSourceMapURL,"deleteRoutineAction"),P=(0,q.createServerReference)("7ff8891bc45feda5327738f21c7a3de9c84c3f4f7e",q.callServer,void 0,q.findSourceMapURL,"runRoutineNowAction"),B=(0,q.createServerReference)("7f4c705cd2ff4be324c689fd2c3bd08c5adeb41e60",q.callServer,void 0,q.findSourceMapURL,"updateRoutineAction");var F=e.i(504565);let H=[1,2,3,4,5,6,7],U=F.default.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/,"A time is HH:MM, 00:00 to 23:59");function K(e){let[t,n]=e.split(" "),[a,i,s]=t.split("-").map(Number),[r,l]=n.split(":").map(Number);return new Date(a,i-1,s,r,l)}let W=/^\d{4}-\d\d-\d\d ([01]\d|2[0-3]):[0-5]\d$/,L=F.default.string().regex(W,'A moment is "YYYY-MM-DD HH:MM"').refine(e=>{if(!W.test(e))return!0;let t=K(e);return t.getMonth()===Number(e.slice(5,7))-1&&t.getDate()===Number(e.slice(8,10))},"There is no such day"),G=F.default.discriminatedUnion("kind",[F.default.object({kind:F.default.literal("once"),at:L}),F.default.object({kind:F.default.literal("daily"),time:U,days:F.default.array(F.default.number().int().min(1).max(7)).min(1,"Pick at least one day").transform(e=>[...new Set(e)].sort((e,t)=>e-t))}),F.default.object({kind:F.default.literal("every"),hours:F.default.number().int().min(S.ROUTINE.minHours,`No more often than every ${S.ROUTINE.minHours}h`).max(168)})]),J=F.default.object({bot:F.default.string().trim().min(1,"Pick a bot"),label:F.default.string().trim().min(1,"Give it a name").max(80),request:F.default.string().trim().min(1,"Say what it should do"),schedule:G}),Y=F.default.object({id:F.default.string(),status:F.default.enum(["running","waiting","done","cancelled"]),outcome:F.default.string().nullable(),updatedAt:R.DateLikeSchema});J.extend({id:F.default.string(),enabled:F.default.boolean(),nextRunAt:R.DateLikeSchema,runs:F.default.array(Y)});let _=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(e){if("once"===e.kind){let[t,n]=e.at.split(" "),[,a,i]=t.split("-").map(Number);return`Once \xb7 ${V[a-1]} ${i} ${n}`}if("every"===e.kind)return 1===e.hours?"Every hour":`Every ${e.hours} hours`;let{days:t,time:n}=e;if(7===t.length)return`Daily ${n}`;if(1===t.length)return`${_[t[0]-1]} ${n}`;let a=t.every((e,n)=>0===n||e===t[n-1]+1)?`${_[t[0]-1]}–${_[t.at(-1)-1]}`:t.map(e=>_[e-1]).join(" ");return`Daily ${n} \xb7 ${a}`}var Q=e.i(431594);function Z({routine:e,bots:n,open:a,onOpen:i,onSwitch:s}){let r=function(e,t){let n=e.runs[0],a=n?.outcome?(0,z.plainText)(n.outcome):"",i=n?`${(0,R.whenOf)(n.updatedAt)}${a?` — ${a}`:""}`:"Not run yet";if(!e.enabled)return{text:`Off \xb7 ${i}`,tone:"text-muted-foreground"};let s=t?.find(t=>t.name===e.bot);return t&&(!s||s.disabled)?{text:s?`${e.bot} is switched off`:`${e.bot} is gone — pick another bot`,tone:z.WAITING_INK,waits:!0}:n?.status==="running"?{text:"Running now",tone:"",shine:!0}:n?.status==="waiting"?{text:`The last run waits on you${a?`: ${a}`:""}`,tone:z.WAITING_INK,waits:!0}:{text:i,tone:"text-muted-foreground"}}(e,n),l=e.runs[0]?.status==="running";return(0,t.jsxs)("div",{className:(0,z.cn)("flex items-center gap-3 p-4 transition-colors",a?"bg-muted/80":"hover:bg-muted/50"),children:[(0,t.jsxs)("button",{type:"button",onClick:i,className:(0,z.cn)("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",!e.enabled&&"opacity-70"),children:[(0,t.jsx)(D.BotMark,{size:40,seed:e.bot,...(0,D.markOf)(e.bot,n),state:l?"thinking":"idle",notify:!!r.waits,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}),l&&(0,t.jsx)(u.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"})]}),(0,t.jsx)("span",{className:"flex min-w-0 text-[13px] leading-snug",children:r.shine?(0,t.jsx)(w.ShinyText,{text:r.text,speed:2.2,className:"min-w-0 truncate"}):(0,t.jsx)("span",{className:(0,z.cn)("min-w-0 truncate",r.tone),children:r.text})})]}),(0,t.jsxs)("span",{className:"flex w-44 shrink-0 flex-col items-end gap-0.5 font-mono text-[11px] leading-4 text-muted-foreground tabular-nums",children:[(0,t.jsxs)("span",{className:"flex max-w-full items-center gap-1.5 text-foreground",children:[(0,t.jsx)(Q.RoutineMark,{className:"size-3 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"truncate",children:X(e.schedule)})]}),(0,t.jsx)("span",{className:"max-w-full truncate text-muted-foreground/70",children:e.enabled?`next ${(0,R.whenOf)(e.nextRunAt)}`:"off"})]})]}),(0,t.jsx)(N.Switch,{checked:e.enabled,onCheckedChange:s,"aria-label":`${e.label} on or off`,className:"shrink-0"}),(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":`Open ${e.label}`,className:"shrink-0 rounded-md text-muted-foreground outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(d.ChevronRight,{className:"size-4"})})]})}let ee=e=>String(e).padStart(2,"0");function et(e,t=new Date){let a=new Date(t);return a.setDate(a.getDate()+e),(0,n.format)(a,"yyyy-MM-dd")}let en=(e,t)=>{let n=e?.schedule;return{label:e?.label??"",bot:e?.bot??t.find(e=>!e.disabled)?.name??"",request:e?.request??"",kind:n?.kind??"daily",time:n?.kind==="daily"?n.time:n?.kind==="once"?n.at.slice(11):"09:00",days:n?.kind==="daily"?n.days:[...H],hours:n?.kind==="every"?n.hours:6,date:n?.kind==="once"?n.at.slice(0,10):et(1)}};function ea(e){let t=/^\d\d:\d\d$/.test(e.time);return"once"===e.kind?t&&e.date?{kind:"once",at:`${e.date} ${e.time}`}:null:"daily"===e.kind?e.days.length&&t?{kind:"daily",time:e.time,days:e.days}:null:{kind:"every",hours:e.hours}}let ei=e=>e?.kind==="once"&&K(e.at)<=new Date,es=[{label:"Every day",days:[...H]},{label:"Weekdays",days:[1,2,3,4,5]},{label:"Weekends",days:[6,7]}],er=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],el=[1,2,3,6,12,24].filter(e=>e>=S.ROUTINE.minHours);function eo({routine:e,bots:n,onClose:a,onMade:i}){var s,r;let l,[u,w]=(0,f.useState)(null),S=(0,f.useCallback)(e=>{w(e?.closest("[data-slot=dialog-content]")??null)},[]),C="new"===e?null:e,q="new"===e?"new":e?.id??"",[F,U]=(0,f.useState)(()=>en(C,n));(0,f.useEffect)(()=>U(en(C,n)),[q]);let K=e=>U(t=>({...t,...e})),W=()=>(0,A.revalidate)(p.queryKey.routines),[L,G]=(0,O.useServerAction)(I,{onOk:e=>{W(),i(e.id)}}),[J]=(0,O.useServerAction)(B,{onOk:W}),[Y]=(0,O.useServerAction)(E,{onOk:W}),[V,Z]=(0,O.useServerAction)(P,{onOk:()=>{W(),(0,A.revalidate)(p.queryKey.threads)}}),em=ea(F),eg=em&&!ei(em)&&F.label.trim()&&F.bot&&F.request.trim()?{label:F.label.trim(),bot:F.bot,request:F.request.trim(),schedule:em}:null,eb=e=>{C&&J(C.id,e)},ey=e=>{K(e);let t=ea({...F,...e});!t||ei(t)||C&&function(e,t){if("once"===e.kind)return"once"===t.kind&&e.at===t.at;if("every"===e.kind)return"every"===t.kind&&e.hours===t.hours;let n=e=>[...e].sort((e,t)=>e-t).join();return"daily"===t.kind&&e.time===t.time&&n(e.days)===n(t.days)}(t,C.schedule)||eb({schedule:t,..."once"===t.kind?{enabled:!0}:{}})},ej=!!(C&&(F.label.trim()&&F.label.trim()!==C.label||F.request.trim()&&F.request.trim()!==C.request)),ek=C?ej:!!(F.label.trim()||F.request.trim()),ev=(0,f.useRef)(ek);ev.current=ek;let ew=(0,$.useSettingsStore)(e=>e.holdUnsaved);(0,f.useEffect)(()=>(ew(()=>ev.current),()=>ew(null)),[ew]);let eN=async()=>{(!ev.current||await k.notify.discard())&&a()},eM=async()=>{!C||await k.notify.confirm({title:`Delete "${C.label}"?`,description:"It starts no more. The jobs it already opened stay.",okText:"Delete",destructive:!0})&&(await Y(C.id).catch(()=>{}),a())},eS=n.find(e=>e.name===F.bot),eD=C?.runs[0]?.status==="running"||C?.runs[0]?.status==="waiting";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{ref:S,hidden:!0}),(0,t.jsx)(b.Dialog,{open:!!(e&&u),onOpenChange:e=>!e&&void eN(),modal:!1,disablePointerDismissal:!0,children:(0,t.jsx)(b.DialogPortal,{container:u,children:(0,t.jsx)(b.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&&(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:[eS?(0,t.jsx)(D.BotMark,{size:28,seed:eS.name,...(0,D.markOf)(eS.name,n),notify:!1,className:"shrink-0"}):(0,t.jsx)("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:(0,t.jsx)(Q.RoutineMark,{className:"size-3.5"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(b.DialogTitle,{className:"sr-only",children:C?C.label:"New routine"}),(0,t.jsx)("p",{className:"truncate text-[15px] leading-5 font-semibold",children:C?C.label:"New routine"}),C&&(0,t.jsxs)("p",{className:"mt-0.5 flex min-w-0 items-center gap-1.5 font-mono text-[11px] text-muted-foreground",children:[(0,t.jsx)(Q.RoutineMark,{className:"size-3 shrink-0"}),(0,t.jsxs)("span",{className:"truncate",children:[C.bot," · ",X(C.schedule),C.enabled&&` \xb7 next ${(0,R.whenOf)(C.nextRunAt)}`]})]})]}),C&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.Switch,{checked:C.enabled,onCheckedChange:e=>void J(C.id,{enabled:e}),"aria-label":`${C.label} on or off`,className:"mr-1 shrink-0"}),(0,t.jsxs)(y.DropdownMenu,{children:[(0,t.jsx)(y.DropdownMenuTrigger,{render:(0,t.jsx)(g.Button,{size:"icon-sm",variant:"ghost","aria-label":"More",className:"text-muted-foreground"}),children:(0,t.jsx)(c.MoreHorizontal,{})}),(0,t.jsx)(y.DropdownMenuContent,{align:"end",children:(0,t.jsxs)(y.DropdownMenuItem,{variant:"destructive",onClick:eM,children:[(0,t.jsx)(h.Trash2,{}),"Delete"]})})]})]}),(0,t.jsx)(b.DialogClose,{render:(0,t.jsx)(g.Button,{size:"icon-sm",variant:"ghost","aria-label":"Close the routine"}),children:(0,t.jsx)(x.X,{})})]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 space-y-4 overflow-y-auto px-5 pt-3 pb-5",children:[(0,t.jsxs)(ep,{label:"Name",htmlFor:"routine-name",children:[(0,t.jsx)(j.Input,{id:"routine-name",value:F.label,onChange:e=>K({label:e.target.value}),placeholder:"Morning mail",maxLength:80,autoFocus:!C}),(0,t.jsx)(ed,{children:"What it is called in this list, and what she calls it on a call."})]}),(0,t.jsxs)(ep,{label:"Bot",children:[(0,t.jsxs)(y.DropdownMenu,{children:[(0,t.jsxs)(y.DropdownMenuTrigger,{render:(0,t.jsx)(g.Button,{variant:"outline",className:"justify-start gap-2 pl-1.5 font-normal"}),children:[eS?(0,t.jsx)(D.BotMark,{size:20,seed:eS.name,...(0,D.markOf)(eS.name,n),notify:!1,className:"shrink-0"}):null,(0,t.jsx)("span",{className:(0,z.cn)(!eS&&"pl-1.5 text-muted-foreground"),children:eS?.name??(F.bot||"Pick a bot")}),(0,t.jsx)(o.ChevronDown,{className:"ml-1 size-3.5 text-muted-foreground"})]}),(0,t.jsx)(y.DropdownMenuContent,{align:"start",children:(0,t.jsx)(y.DropdownMenuGroup,{children:n.filter(e=>!e.disabled).map(e=>(0,t.jsxs)(y.DropdownMenuItem,{onClick:()=>{K({bot:e.name}),e.name!==C?.bot&&eb({bot:e.name})},children:[(0,t.jsx)(D.BotMark,{size:16,seed:e.name,...(0,D.markOf)(e.name,n),notify:!1,className:"shrink-0"}),e.name]},e.name))})})]}),(0,t.jsx)(ed,{children:"Who does the job each time it starts."})]}),(0,t.jsx)(ep,{label:"When",children:(0,t.jsxs)("div",{className:"space-y-3.5",children:[(0,t.jsx)(v.Segmented,{"aria-label":"How it starts",value:F.kind,onChange:e=>ey({kind:e}),options:[{value:"once",label:"Once"},{value:"daily",label:"On set days"},{value:"every",label:"Every few hours"}]}),(0,t.jsx)("div",{className:"space-y-2.5",children:"once"===F.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ec,{word:"On",children:(0,t.jsx)(eh,{value:F.date,onPick:e=>ey({date:e})})}),(0,t.jsxs)(ec,{word:"At",children:[(0,t.jsx)(ex,{value:F.time,onChange:e=>K({time:e}),onDone:()=>ey({})}),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"or"}),(0,t.jsx)(eu,{picked:!1,onClick:()=>{let e;return ey(((e=new Date(Date.now()+36e5)).setMinutes(5*Math.ceil(e.getMinutes()/5),0,0),{date:et(0,e),time:`${ee(e.getHours())}:${ee(e.getMinutes())}`}))},children:"In an hour"})]})]}):"daily"===F.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ec,{word:"On",children:H.map(e=>{let n=F.days.includes(e);return(0,t.jsx)(eu,{picked:n,several:!0,"aria-label":er[e-1],onClick:()=>ey({days:n?F.days.filter(t=>t!==e):[...F.days,e].sort((e,t)=>e-t)}),children:_[e-1]},e)})}),(0,t.jsx)(ec,{children:es.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>ey({days:[...e.days]}),className:"h-6.5 rounded-full bg-muted px-2.5 text-xs text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:e.label},e.label))}),(0,t.jsx)(ec,{word:"At",children:(0,t.jsx)(ex,{value:F.time,onChange:e=>K({time:e}),onDone:()=>ey({})})})]}):(0,t.jsxs)(ec,{word:"Every",children:[(el.includes(F.hours)?el:[...el,F.hours].sort((e,t)=>e-t)).map(e=>(0,t.jsx)(eu,{picked:e===F.hours,onClick:()=>ey({hours:e}),className:"min-w-10 px-3",children:e},e)),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"hours"})]})}),(0,t.jsx)(ef,{schedule:em,kind:F.kind})]})}),(0,t.jsxs)(ep,{label:"Job",htmlFor:"routine-request",children:[(0,t.jsx)(M.Textarea,{id:"routine-request",value:F.request,onChange:e=>K({request:e.target.value}),placeholder:"Go through the mail that came since the last run and draft replies to what needs one. Send nothing.",className:"min-h-28"}),(0,t.jsx)(ed,{children:"Handed to the bot as a new thread each time, with a line on how the last run ended. Nobody is there to ask, so say everything it needs."})]}),C&&(0,t.jsxs)("div",{className:"pt-1",children:[(0,t.jsx)("div",{className:"flex h-6 items-center",children:(0,t.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:"Runs"})}),0===C.runs.length?(0,t.jsx)("p",{className:"py-2 text-[13px] text-muted-foreground",children:"Not run yet."}):C.runs.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{var t;return t=e.id,void($.useSettingsStore.getState().hide(),T.roomOpens.open(t))},className:"flex h-9 w-full items-center gap-3 border-t border-border/60 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)("span",{className:"w-28 shrink-0 font-mono text-[11px] text-muted-foreground tabular-nums",children:(0,R.whenOf)(e.updatedAt)}),(0,t.jsx)("span",{className:(0,z.cn)("min-w-0 flex-1 truncate","waiting"===e.status?z.WAITING_INK:"text-muted-foreground"),children:"running"===e.status?"Running now":e.outcome?(0,z.plainText)(e.outcome):"cancelled"===e.status?"Stopped":"No words"}),(0,t.jsx)(d.ChevronRight,{className:"size-3 shrink-0 text-muted-foreground"})]},e.id))]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-t border-border/60 px-5 py-3",children:[(0,t.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-4 text-muted-foreground",children:C||eg?"Starts while Thursday is running on this computer, whether or not a tab is open. A time that passed meanwhile starts once, not once for each.":`Still needs ${s=F,r=em,(l=[s.label.trim()?null:"a name",s.bot?null:"a bot",!r?"a time":ei(r)?"a time still ahead":null,s.request.trim()?null:"a job"].filter(e=>null!==e)).length>1?`${l.slice(0,-1).join(", ")} and ${l.at(-1)}`:l[0]??"nothing"}.`}),ej&&(0,t.jsx)(g.Button,{size:"sm",onClick:()=>{if(!C)return;let e={};F.label.trim()&&F.label.trim()!==C.label&&(e.label=F.label.trim()),F.request.trim()&&F.request.trim()!==C.request&&(e.request=F.request.trim()),Object.keys(e).length&&eb(e)},children:"Save"}),C?(0,t.jsxs)(g.Button,{variant:"outline",size:"sm",loading:Z,disabled:eD,title:eD?"Its last run is still open":void 0,onClick:()=>void V(C.id),children:[(0,t.jsx)(m.Play,{}),"Run now"]}):(0,t.jsx)(g.Button,{size:"sm",loading:G,disabled:!eg,onClick:()=>eg&&void L(eg),children:"Create"})]})]})})})})]})}let ed=({children:e})=>(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e});function eu({picked:e,several:n=!1,className:a,children:i,...s}){return(0,t.jsxs)("button",{type:"button","aria-pressed":e,className:(0,z.cn)("inline-flex h-8 items-center justify-center gap-1.5 rounded-full px-3.5 text-[13px] whitespace-nowrap outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",!e&&"text-foreground ring-1 ring-border ring-inset hover:bg-muted",e&&(n?"bg-brand/10 pl-2.5 font-medium text-brand ring-1 ring-brand/30 ring-inset":"bg-brand font-medium text-brand-foreground"),a),...s,children:[e&&n&&(0,t.jsx)(l.Check,{className:"size-3.5"}),i]})}function ec({word:e,children:n}){return(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-8 w-9 shrink-0 items-center text-[13px] text-muted-foreground",children:e}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:n})]})}function em(e){let t=K(`${e} 00:00`),a=(t.getTime()-K(`${et(0)} 00:00`).getTime())/864e5;return(0,n.format)(t,a<7?"EEE d":"EEE, MMM d")}function eh({value:e,onPick:n}){let a=(0,f.useRef)(null),i=[0,1,2,3].map(e=>et(e)),s=()=>a.current?.showPicker();return(0,t.jsxs)(t.Fragment,{children:[i.map((a,i)=>(0,t.jsx)(eu,{picked:a===e,onClick:()=>n(a),children:0===i?"Today":1===i?"Tomorrow":em(a)},a)),!i.includes(e)&&(0,t.jsx)(eu,{picked:!0,onClick:s,children:em(e)}),(0,t.jsxs)("span",{className:"relative",children:[(0,t.jsx)(eu,{picked:!1,"aria-label":"Another day",onClick:s,className:"w-8 px-0",children:(0,t.jsx)(r,{className:"size-3.5"})}),(0,t.jsx)("input",{ref:a,type:"date",tabIndex:-1,"aria-hidden":!0,min:i[0],value:e,onChange:e=>e.target.value&&n(e.target.value),className:"pointer-events-none absolute inset-0 opacity-0"})]})]})}function ex({value:e,onChange:n,onDone:a}){return(0,t.jsx)(j.Input,{type:"time","aria-label":"Time of day",value:e,onChange:e=>n(e.target.value),onBlur:a,onClick:e=>e.currentTarget.showPicker?.(),className:"h-8.5 w-28 px-3 text-[15px] tabular-nums md:text-[15px] [&::-webkit-calendar-picker-indicator]:hidden"})}function ef({schedule:e,kind:n}){if(!e||ei(e))return(0,t.jsx)("p",{className:"text-xs text-destructive",children:e?"That time has passed. Pick a later one.":"daily"===n?"Pick a time and at least one day.":"Pick a time."});let i=function(e,t){if("once"===e.kind)return K(e.at);if("every"===e.kind)return new Date(t.getTime()+36e5*e.hours);let[n,a]=e.time.split(":").map(Number);for(let i=0;i<=7;i++){let s=new Date(t);s.setDate(s.getDate()+i),s.setHours(n,a,0,0);let r=0===s.getDay()?7:s.getDay();if(s>t&&e.days.includes(r))return s}return new Date(t.getTime()+864e5)}(e,new Date);return(0,t.jsxs)("p",{className:"flex items-start gap-2 text-[13px] leading-5",children:[(0,t.jsx)(Q.RoutineMark,{className:"mt-0.75 size-3.5 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"min-w-0",children:[X(e),(0,t.jsxs)("span",{className:"text-muted-foreground",children:[" · ","once"===e.kind?`${(0,a.formatDistanceToNowStrict)(i,{addSuffix:!0})}, then it switches itself off`:`first start ${(0,R.whenOf)(i)}`]})]})]})}function ep({label:e,htmlFor:n,children:a}){return(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("label",{htmlFor:n,className:"w-14 shrink-0 pt-2 font-mono text-xs text-muted-foreground",children:e}),(0,t.jsx)("div",{className:"min-w-0 flex-1 space-y-1.5",children:a})]})}e.s(["RoutineSetting",0,function(){let[e,n]=(0,f.useState)(null),{data:a,isLoading:i,error:s}=(0,A.useServerRoute)(p.queryKey.routines),{data:r}=(0,A.useServerRoute)(p.queryKey.bot),[l]=(0,O.useServerAction)(B,{onOk:()=>(0,A.revalidate)(p.queryKey.routines)});if(i)return(0,t.jsx)(C.SettingSkeleton,{rows:3});if(s)return(0,t.jsx)(C.SettingError,{message:s.message});let o=a??[],d=o.filter(e=>e.enabled).length,u=o.find(t=>t.id===e);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C.SettingScreen,{footer:(0,t.jsxs)(C.SettingRailNote,{children:[o.length," set up · ",d," on",o.length>=S.ROUTINE.max&&` \xb7 ${S.ROUTINE.max} is the most`]}),children:(0,t.jsx)(C.SettingItems,{addRow:o.length<S.ROUTINE.max?{label:"New routine",onClick:()=>n("new")}:void 0,children:0===o.length?(0,t.jsx)("p",{className:"p-4 text-sm leading-relaxed text-muted-foreground",children:'Nothing starts by itself yet. Tell Thursday what should — "every weekday at nine, go through my mail" — or make one here.'}):o.map(a=>(0,t.jsx)(Z,{routine:a,bots:r,open:a.id===e,onOpen:()=>n(a.id),onSwitch:e=>l(a.id,{enabled:e})},a.id))})}),(0,t.jsx)(eo,{routine:"new"===e?"new":u??null,bots:r??[],onClose:()=>n(null),onMade:e=>n(e)})]})}],480869)},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},21357,e=>{"use strict";var t=e.i(456420);let n={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};n.node;let a=(0,t.default)(n);e.s(["Play",0,a],21357)},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 a=(0,t.default)(n);e.s(["Trash2",0,a],759659)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,480869,e=>{"use strict";var t=e.i(843476),n=e.i(401851),a=e.i(493801),i=e.i(456420);let s={name:"calendar-days",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]]};s.node;let r=(0,i.default)(s);var l=e.i(689664),o=e.i(716327),d=e.i(867927),u=e.i(632781),c=e.i(648119),m=e.i(21357),h=e.i(759659),x=e.i(263676),f=e.i(271645),p=e.i(798120),g=e.i(167881),b=e.i(630374),y=e.i(463415),j=e.i(23750),k=e.i(917162),v=e.i(421429),w=e.i(660302),N=e.i(319036),M=e.i(184762),S=e.i(41533),D=e.i(635963),T=e.i(978411),C=e.i(895836),$=e.i(989409),R=e.i(245629),O=e.i(609856),A=e.i(283653),z=e.i(647163),q=e.i(95187);let I=(0,q.createServerReference)("7f8ad23e0b44af6bb1f1628d38788cc984a2105d38",q.callServer,void 0,q.findSourceMapURL,"createRoutineAction"),E=(0,q.createServerReference)("7f9a4dd855f56fa38a6ca1973adb8aa20ac6521774",q.callServer,void 0,q.findSourceMapURL,"deleteRoutineAction"),P=(0,q.createServerReference)("7f4556c9affd1f6fbf263bd1e44f7334c3f82cfe70",q.callServer,void 0,q.findSourceMapURL,"runRoutineNowAction"),B=(0,q.createServerReference)("7fc262b89ead548f02aa7be99b57013163e291dd84",q.callServer,void 0,q.findSourceMapURL,"updateRoutineAction");var F=e.i(504565);let H=[1,2,3,4,5,6,7],U=F.default.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/,"A time is HH:MM, 00:00 to 23:59");function K(e){let[t,n]=e.split(" "),[a,i,s]=t.split("-").map(Number),[r,l]=n.split(":").map(Number);return new Date(a,i-1,s,r,l)}let W=/^\d{4}-\d\d-\d\d ([01]\d|2[0-3]):[0-5]\d$/,L=F.default.string().regex(W,'A moment is "YYYY-MM-DD HH:MM"').refine(e=>{if(!W.test(e))return!0;let t=K(e);return t.getMonth()===Number(e.slice(5,7))-1&&t.getDate()===Number(e.slice(8,10))},"There is no such day"),G=F.default.discriminatedUnion("kind",[F.default.object({kind:F.default.literal("once"),at:L}),F.default.object({kind:F.default.literal("daily"),time:U,days:F.default.array(F.default.number().int().min(1).max(7)).min(1,"Pick at least one day").transform(e=>[...new Set(e)].sort((e,t)=>e-t))}),F.default.object({kind:F.default.literal("every"),hours:F.default.number().int().min(S.ROUTINE.minHours,`No more often than every ${S.ROUTINE.minHours}h`).max(168)})]),J=F.default.object({bot:F.default.string().trim().min(1,"Pick a bot"),label:F.default.string().trim().min(1,"Give it a name").max(80),request:F.default.string().trim().min(1,"Say what it should do"),schedule:G}),Y=F.default.object({id:F.default.string(),status:F.default.enum(["running","waiting","done","cancelled"]),outcome:F.default.string().nullable(),updatedAt:R.DateLikeSchema});J.extend({id:F.default.string(),enabled:F.default.boolean(),nextRunAt:R.DateLikeSchema,runs:F.default.array(Y)});let _=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(e){if("once"===e.kind){let[t,n]=e.at.split(" "),[,a,i]=t.split("-").map(Number);return`Once \xb7 ${V[a-1]} ${i} ${n}`}if("every"===e.kind)return 1===e.hours?"Every hour":`Every ${e.hours} hours`;let{days:t,time:n}=e;if(7===t.length)return`Daily ${n}`;if(1===t.length)return`${_[t[0]-1]} ${n}`;let a=t.every((e,n)=>0===n||e===t[n-1]+1)?`${_[t[0]-1]}–${_[t.at(-1)-1]}`:t.map(e=>_[e-1]).join(" ");return`Daily ${n} \xb7 ${a}`}var Q=e.i(431594);function Z({routine:e,bots:n,open:a,onOpen:i,onSwitch:s}){let r=function(e,t){let n=e.runs[0],a=n?.outcome?(0,z.plainText)(n.outcome):"",i=n?`${(0,R.whenOf)(n.updatedAt)}${a?` — ${a}`:""}`:"Not run yet";if(!e.enabled)return{text:`Off \xb7 ${i}`,tone:"text-muted-foreground"};let s=t?.find(t=>t.name===e.bot);return t&&(!s||s.disabled)?{text:s?`${e.bot} is switched off`:`${e.bot} is gone — pick another bot`,tone:z.WAITING_INK,waits:!0}:n?.status==="running"?{text:"Running now",tone:"",shine:!0}:n?.status==="waiting"?{text:`The last run waits on you${a?`: ${a}`:""}`,tone:z.WAITING_INK,waits:!0}:{text:i,tone:"text-muted-foreground"}}(e,n),l=e.runs[0]?.status==="running";return(0,t.jsxs)("div",{className:(0,z.cn)("flex items-center gap-3 p-4 transition-colors",a?"bg-muted/80":"hover:bg-muted/50"),children:[(0,t.jsxs)("button",{type:"button",onClick:i,className:(0,z.cn)("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",!e.enabled&&"opacity-70"),children:[(0,t.jsx)(D.BotMark,{size:40,seed:e.bot,...(0,D.markOf)(e.bot,n),state:l?"thinking":"idle",notify:!!r.waits,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}),l&&(0,t.jsx)(u.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"})]}),(0,t.jsx)("span",{className:"flex min-w-0 text-[13px] leading-snug",children:r.shine?(0,t.jsx)(w.ShinyText,{text:r.text,speed:2.2,className:"min-w-0 truncate"}):(0,t.jsx)("span",{className:(0,z.cn)("min-w-0 truncate",r.tone),children:r.text})})]}),(0,t.jsxs)("span",{className:"flex w-44 shrink-0 flex-col items-end gap-0.5 font-mono text-[11px] leading-4 text-muted-foreground tabular-nums",children:[(0,t.jsxs)("span",{className:"flex max-w-full items-center gap-1.5 text-foreground",children:[(0,t.jsx)(Q.RoutineMark,{className:"size-3 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"truncate",children:X(e.schedule)})]}),(0,t.jsx)("span",{className:"max-w-full truncate text-muted-foreground/70",children:e.enabled?`next ${(0,R.whenOf)(e.nextRunAt)}`:"off"})]})]}),(0,t.jsx)(N.Switch,{checked:e.enabled,onCheckedChange:s,"aria-label":`${e.label} on or off`,className:"shrink-0"}),(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":`Open ${e.label}`,className:"shrink-0 rounded-md text-muted-foreground outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(d.ChevronRight,{className:"size-4"})})]})}let ee=e=>String(e).padStart(2,"0");function et(e,t=new Date){let a=new Date(t);return a.setDate(a.getDate()+e),(0,n.format)(a,"yyyy-MM-dd")}let en=(e,t)=>{let n=e?.schedule;return{label:e?.label??"",bot:e?.bot??t.find(e=>!e.disabled)?.name??"",request:e?.request??"",kind:n?.kind??"daily",time:n?.kind==="daily"?n.time:n?.kind==="once"?n.at.slice(11):"09:00",days:n?.kind==="daily"?n.days:[...H],hours:n?.kind==="every"?n.hours:6,date:n?.kind==="once"?n.at.slice(0,10):et(1)}};function ea(e){let t=/^\d\d:\d\d$/.test(e.time);return"once"===e.kind?t&&e.date?{kind:"once",at:`${e.date} ${e.time}`}:null:"daily"===e.kind?e.days.length&&t?{kind:"daily",time:e.time,days:e.days}:null:{kind:"every",hours:e.hours}}let ei=e=>e?.kind==="once"&&K(e.at)<=new Date,es=[{label:"Every day",days:[...H]},{label:"Weekdays",days:[1,2,3,4,5]},{label:"Weekends",days:[6,7]}],er=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],el=[1,2,3,6,12,24].filter(e=>e>=S.ROUTINE.minHours);function eo({routine:e,bots:n,onClose:a,onMade:i}){var s,r;let l,[u,w]=(0,f.useState)(null),S=(0,f.useCallback)(e=>{w(e?.closest("[data-slot=dialog-content]")??null)},[]),C="new"===e?null:e,q="new"===e?"new":e?.id??"",[F,U]=(0,f.useState)(()=>en(C,n));(0,f.useEffect)(()=>U(en(C,n)),[q]);let K=e=>U(t=>({...t,...e})),W=()=>(0,A.revalidate)(p.queryKey.routines),[L,G]=(0,O.useServerAction)(I,{onOk:e=>{W(),i(e.id)}}),[J]=(0,O.useServerAction)(B,{onOk:W}),[Y]=(0,O.useServerAction)(E,{onOk:W}),[V,Z]=(0,O.useServerAction)(P,{onOk:()=>{W(),(0,A.revalidate)(p.queryKey.threads)}}),em=ea(F),eg=em&&!ei(em)&&F.label.trim()&&F.bot&&F.request.trim()?{label:F.label.trim(),bot:F.bot,request:F.request.trim(),schedule:em}:null,eb=e=>{C&&J(C.id,e)},ey=e=>{K(e);let t=ea({...F,...e});!t||ei(t)||C&&function(e,t){if("once"===e.kind)return"once"===t.kind&&e.at===t.at;if("every"===e.kind)return"every"===t.kind&&e.hours===t.hours;let n=e=>[...e].sort((e,t)=>e-t).join();return"daily"===t.kind&&e.time===t.time&&n(e.days)===n(t.days)}(t,C.schedule)||eb({schedule:t,..."once"===t.kind?{enabled:!0}:{}})},ej=!!(C&&(F.label.trim()&&F.label.trim()!==C.label||F.request.trim()&&F.request.trim()!==C.request)),ek=C?ej:!!(F.label.trim()||F.request.trim()),ev=(0,f.useRef)(ek);ev.current=ek;let ew=(0,$.useSettingsStore)(e=>e.holdUnsaved);(0,f.useEffect)(()=>(ew(()=>ev.current),()=>ew(null)),[ew]);let eN=async()=>{(!ev.current||await k.notify.discard())&&a()},eM=async()=>{!C||await k.notify.confirm({title:`Delete "${C.label}"?`,description:"It starts no more. The jobs it already opened stay.",okText:"Delete",destructive:!0})&&(await Y(C.id).catch(()=>{}),a())},eS=n.find(e=>e.name===F.bot),eD=C?.runs[0]?.status==="running"||C?.runs[0]?.status==="waiting";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{ref:S,hidden:!0}),(0,t.jsx)(b.Dialog,{open:!!(e&&u),onOpenChange:e=>!e&&void eN(),modal:!1,disablePointerDismissal:!0,children:(0,t.jsx)(b.DialogPortal,{container:u,children:(0,t.jsx)(b.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&&(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:[eS?(0,t.jsx)(D.BotMark,{size:28,seed:eS.name,...(0,D.markOf)(eS.name,n),notify:!1,className:"shrink-0"}):(0,t.jsx)("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:(0,t.jsx)(Q.RoutineMark,{className:"size-3.5"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(b.DialogTitle,{className:"sr-only",children:C?C.label:"New routine"}),(0,t.jsx)("p",{className:"truncate text-[15px] leading-5 font-semibold",children:C?C.label:"New routine"}),C&&(0,t.jsxs)("p",{className:"mt-0.5 flex min-w-0 items-center gap-1.5 font-mono text-[11px] text-muted-foreground",children:[(0,t.jsx)(Q.RoutineMark,{className:"size-3 shrink-0"}),(0,t.jsxs)("span",{className:"truncate",children:[C.bot," · ",X(C.schedule),C.enabled&&` \xb7 next ${(0,R.whenOf)(C.nextRunAt)}`]})]})]}),C&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.Switch,{checked:C.enabled,onCheckedChange:e=>void J(C.id,{enabled:e}),"aria-label":`${C.label} on or off`,className:"mr-1 shrink-0"}),(0,t.jsxs)(y.DropdownMenu,{children:[(0,t.jsx)(y.DropdownMenuTrigger,{render:(0,t.jsx)(g.Button,{size:"icon-sm",variant:"ghost","aria-label":"More",className:"text-muted-foreground"}),children:(0,t.jsx)(c.MoreHorizontal,{})}),(0,t.jsx)(y.DropdownMenuContent,{align:"end",children:(0,t.jsxs)(y.DropdownMenuItem,{variant:"destructive",onClick:eM,children:[(0,t.jsx)(h.Trash2,{}),"Delete"]})})]})]}),(0,t.jsx)(b.DialogClose,{render:(0,t.jsx)(g.Button,{size:"icon-sm",variant:"ghost","aria-label":"Close the routine"}),children:(0,t.jsx)(x.X,{})})]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 space-y-4 overflow-y-auto px-5 pt-3 pb-5",children:[(0,t.jsxs)(ep,{label:"Name",htmlFor:"routine-name",children:[(0,t.jsx)(j.Input,{id:"routine-name",value:F.label,onChange:e=>K({label:e.target.value}),placeholder:"Morning mail",maxLength:80,autoFocus:!C}),(0,t.jsx)(ed,{children:"What it is called in this list, and what she calls it on a call."})]}),(0,t.jsxs)(ep,{label:"Bot",children:[(0,t.jsxs)(y.DropdownMenu,{children:[(0,t.jsxs)(y.DropdownMenuTrigger,{render:(0,t.jsx)(g.Button,{variant:"outline",className:"justify-start gap-2 pl-1.5 font-normal"}),children:[eS?(0,t.jsx)(D.BotMark,{size:20,seed:eS.name,...(0,D.markOf)(eS.name,n),notify:!1,className:"shrink-0"}):null,(0,t.jsx)("span",{className:(0,z.cn)(!eS&&"pl-1.5 text-muted-foreground"),children:eS?.name??(F.bot||"Pick a bot")}),(0,t.jsx)(o.ChevronDown,{className:"ml-1 size-3.5 text-muted-foreground"})]}),(0,t.jsx)(y.DropdownMenuContent,{align:"start",children:(0,t.jsx)(y.DropdownMenuGroup,{children:n.filter(e=>!e.disabled).map(e=>(0,t.jsxs)(y.DropdownMenuItem,{onClick:()=>{K({bot:e.name}),e.name!==C?.bot&&eb({bot:e.name})},children:[(0,t.jsx)(D.BotMark,{size:16,seed:e.name,...(0,D.markOf)(e.name,n),notify:!1,className:"shrink-0"}),e.name]},e.name))})})]}),(0,t.jsx)(ed,{children:"Who does the job each time it starts."})]}),(0,t.jsx)(ep,{label:"When",children:(0,t.jsxs)("div",{className:"space-y-3.5",children:[(0,t.jsx)(v.Segmented,{"aria-label":"How it starts",value:F.kind,onChange:e=>ey({kind:e}),options:[{value:"once",label:"Once"},{value:"daily",label:"On set days"},{value:"every",label:"Every few hours"}]}),(0,t.jsx)("div",{className:"space-y-2.5",children:"once"===F.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ec,{word:"On",children:(0,t.jsx)(eh,{value:F.date,onPick:e=>ey({date:e})})}),(0,t.jsxs)(ec,{word:"At",children:[(0,t.jsx)(ex,{value:F.time,onChange:e=>K({time:e}),onDone:()=>ey({})}),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"or"}),(0,t.jsx)(eu,{picked:!1,onClick:()=>{let e;return ey(((e=new Date(Date.now()+36e5)).setMinutes(5*Math.ceil(e.getMinutes()/5),0,0),{date:et(0,e),time:`${ee(e.getHours())}:${ee(e.getMinutes())}`}))},children:"In an hour"})]})]}):"daily"===F.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ec,{word:"On",children:H.map(e=>{let n=F.days.includes(e);return(0,t.jsx)(eu,{picked:n,several:!0,"aria-label":er[e-1],onClick:()=>ey({days:n?F.days.filter(t=>t!==e):[...F.days,e].sort((e,t)=>e-t)}),children:_[e-1]},e)})}),(0,t.jsx)(ec,{children:es.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>ey({days:[...e.days]}),className:"h-6.5 rounded-full bg-muted px-2.5 text-xs text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:e.label},e.label))}),(0,t.jsx)(ec,{word:"At",children:(0,t.jsx)(ex,{value:F.time,onChange:e=>K({time:e}),onDone:()=>ey({})})})]}):(0,t.jsxs)(ec,{word:"Every",children:[(el.includes(F.hours)?el:[...el,F.hours].sort((e,t)=>e-t)).map(e=>(0,t.jsx)(eu,{picked:e===F.hours,onClick:()=>ey({hours:e}),className:"min-w-10 px-3",children:e},e)),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"hours"})]})}),(0,t.jsx)(ef,{schedule:em,kind:F.kind})]})}),(0,t.jsxs)(ep,{label:"Job",htmlFor:"routine-request",children:[(0,t.jsx)(M.Textarea,{id:"routine-request",value:F.request,onChange:e=>K({request:e.target.value}),placeholder:"Go through the mail that came since the last run and draft replies to what needs one. Send nothing.",className:"min-h-28"}),(0,t.jsx)(ed,{children:"Handed to the bot as a new thread each time, with a line on how the last run ended. Nobody is there to ask, so say everything it needs."})]}),C&&(0,t.jsxs)("div",{className:"pt-1",children:[(0,t.jsx)("div",{className:"flex h-6 items-center",children:(0,t.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:"Runs"})}),0===C.runs.length?(0,t.jsx)("p",{className:"py-2 text-[13px] text-muted-foreground",children:"Not run yet."}):C.runs.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{var t;return t=e.id,void($.useSettingsStore.getState().hide(),T.roomOpens.open(t))},className:"flex h-9 w-full items-center gap-3 border-t border-border/60 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)("span",{className:"w-28 shrink-0 font-mono text-[11px] text-muted-foreground tabular-nums",children:(0,R.whenOf)(e.updatedAt)}),(0,t.jsx)("span",{className:(0,z.cn)("min-w-0 flex-1 truncate","waiting"===e.status?z.WAITING_INK:"text-muted-foreground"),children:"running"===e.status?"Running now":e.outcome?(0,z.plainText)(e.outcome):"cancelled"===e.status?"Stopped":"No words"}),(0,t.jsx)(d.ChevronRight,{className:"size-3 shrink-0 text-muted-foreground"})]},e.id))]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-t border-border/60 px-5 py-3",children:[(0,t.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-4 text-muted-foreground",children:C||eg?"Starts while Thursday is running on this computer, whether or not a tab is open. A time that passed meanwhile starts once, not once for each.":`Still needs ${s=F,r=em,(l=[s.label.trim()?null:"a name",s.bot?null:"a bot",!r?"a time":ei(r)?"a time still ahead":null,s.request.trim()?null:"a job"].filter(e=>null!==e)).length>1?`${l.slice(0,-1).join(", ")} and ${l.at(-1)}`:l[0]??"nothing"}.`}),ej&&(0,t.jsx)(g.Button,{size:"sm",onClick:()=>{if(!C)return;let e={};F.label.trim()&&F.label.trim()!==C.label&&(e.label=F.label.trim()),F.request.trim()&&F.request.trim()!==C.request&&(e.request=F.request.trim()),Object.keys(e).length&&eb(e)},children:"Save"}),C?(0,t.jsxs)(g.Button,{variant:"outline",size:"sm",loading:Z,disabled:eD,title:eD?"Its last run is still open":void 0,onClick:()=>void V(C.id),children:[(0,t.jsx)(m.Play,{}),"Run now"]}):(0,t.jsx)(g.Button,{size:"sm",loading:G,disabled:!eg,onClick:()=>eg&&void L(eg),children:"Create"})]})]})})})})]})}let ed=({children:e})=>(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e});function eu({picked:e,several:n=!1,className:a,children:i,...s}){return(0,t.jsxs)("button",{type:"button","aria-pressed":e,className:(0,z.cn)("inline-flex h-8 items-center justify-center gap-1.5 rounded-full px-3.5 text-[13px] whitespace-nowrap outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",!e&&"text-foreground ring-1 ring-border ring-inset hover:bg-muted",e&&(n?"bg-brand/10 pl-2.5 font-medium text-brand ring-1 ring-brand/30 ring-inset":"bg-brand font-medium text-brand-foreground"),a),...s,children:[e&&n&&(0,t.jsx)(l.Check,{className:"size-3.5"}),i]})}function ec({word:e,children:n}){return(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-8 w-9 shrink-0 items-center text-[13px] text-muted-foreground",children:e}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:n})]})}function em(e){let t=K(`${e} 00:00`),a=(t.getTime()-K(`${et(0)} 00:00`).getTime())/864e5;return(0,n.format)(t,a<7?"EEE d":"EEE, MMM d")}function eh({value:e,onPick:n}){let a=(0,f.useRef)(null),i=[0,1,2,3].map(e=>et(e)),s=()=>a.current?.showPicker();return(0,t.jsxs)(t.Fragment,{children:[i.map((a,i)=>(0,t.jsx)(eu,{picked:a===e,onClick:()=>n(a),children:0===i?"Today":1===i?"Tomorrow":em(a)},a)),!i.includes(e)&&(0,t.jsx)(eu,{picked:!0,onClick:s,children:em(e)}),(0,t.jsxs)("span",{className:"relative",children:[(0,t.jsx)(eu,{picked:!1,"aria-label":"Another day",onClick:s,className:"w-8 px-0",children:(0,t.jsx)(r,{className:"size-3.5"})}),(0,t.jsx)("input",{ref:a,type:"date",tabIndex:-1,"aria-hidden":!0,min:i[0],value:e,onChange:e=>e.target.value&&n(e.target.value),className:"pointer-events-none absolute inset-0 opacity-0"})]})]})}function ex({value:e,onChange:n,onDone:a}){return(0,t.jsx)(j.Input,{type:"time","aria-label":"Time of day",value:e,onChange:e=>n(e.target.value),onBlur:a,onClick:e=>e.currentTarget.showPicker?.(),className:"h-8.5 w-28 px-3 text-[15px] tabular-nums md:text-[15px] [&::-webkit-calendar-picker-indicator]:hidden"})}function ef({schedule:e,kind:n}){if(!e||ei(e))return(0,t.jsx)("p",{className:"text-xs text-destructive",children:e?"That time has passed. Pick a later one.":"daily"===n?"Pick a time and at least one day.":"Pick a time."});let i=function(e,t){if("once"===e.kind)return K(e.at);if("every"===e.kind)return new Date(t.getTime()+36e5*e.hours);let[n,a]=e.time.split(":").map(Number);for(let i=0;i<=7;i++){let s=new Date(t);s.setDate(s.getDate()+i),s.setHours(n,a,0,0);let r=0===s.getDay()?7:s.getDay();if(s>t&&e.days.includes(r))return s}return new Date(t.getTime()+864e5)}(e,new Date);return(0,t.jsxs)("p",{className:"flex items-start gap-2 text-[13px] leading-5",children:[(0,t.jsx)(Q.RoutineMark,{className:"mt-0.75 size-3.5 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"min-w-0",children:[X(e),(0,t.jsxs)("span",{className:"text-muted-foreground",children:[" · ","once"===e.kind?`${(0,a.formatDistanceToNowStrict)(i,{addSuffix:!0})}, then it switches itself off`:`first start ${(0,R.whenOf)(i)}`]})]})]})}function ep({label:e,htmlFor:n,children:a}){return(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("label",{htmlFor:n,className:"w-14 shrink-0 pt-2 font-mono text-xs text-muted-foreground",children:e}),(0,t.jsx)("div",{className:"min-w-0 flex-1 space-y-1.5",children:a})]})}e.s(["RoutineSetting",0,function(){let[e,n]=(0,f.useState)(null),{data:a,isLoading:i,error:s}=(0,A.useServerRoute)(p.queryKey.routines),{data:r}=(0,A.useServerRoute)(p.queryKey.bot),[l]=(0,O.useServerAction)(B,{onOk:()=>(0,A.revalidate)(p.queryKey.routines)});if(i)return(0,t.jsx)(C.SettingSkeleton,{rows:3});if(s)return(0,t.jsx)(C.SettingError,{message:s.message});let o=a??[],d=o.filter(e=>e.enabled).length,u=o.find(t=>t.id===e);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C.SettingScreen,{footer:(0,t.jsxs)(C.SettingRailNote,{children:[o.length," set up · ",d," on",o.length>=S.ROUTINE.max&&` \xb7 ${S.ROUTINE.max} is the most`]}),children:(0,t.jsx)(C.SettingItems,{addRow:o.length<S.ROUTINE.max?{label:"New routine",onClick:()=>n("new")}:void 0,children:0===o.length?(0,t.jsx)("p",{className:"p-4 text-sm leading-relaxed text-muted-foreground",children:'Nothing starts by itself yet. Tell Thursday what should — "every weekday at nine, go through my mail" — or make one here.'}):o.map(a=>(0,t.jsx)(Z,{routine:a,bots:r,open:a.id===e,onOpen:()=>n(a.id),onSwitch:e=>l(a.id,{enabled:e})},a.id))})}),(0,t.jsx)(eo,{routine:"new"===e?"new":u??null,bots:r??[],onClose:()=>n(null),onMade:e=>n(e)})]})}],480869)},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},21357,e=>{"use strict";var t=e.i(456420);let n={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};n.node;let a=(0,t.default)(n);e.s(["Play",0,a],21357)},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 a=(0,t.default)(n);e.s(["Trash2",0,a],759659)}]);