thursday-agent 0.16.0 → 0.17.1
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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/artifact/route.js +9 -9
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js +3 -3
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js +8 -8
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js +8 -8
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/[id]/route.js +3 -3
- package/.next/server/app/api/bot/thread/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/route.js +3 -3
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js +4 -4
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +11 -11
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js +11 -11
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js +7 -7
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/signins/route.js +5 -5
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js +7 -7
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js +7 -7
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js +5 -5
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/settings/route.js +5 -5
- package/.next/server/app/api/thursday/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js +13 -13
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +12 -12
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js +8 -8
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js +9 -9
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +3 -3
- package/.next/server/app/artifact/[...path]/page.js +4 -4
- package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next/server/app/page/server-reference-manifest.json +60 -60
- package/.next/server/app/page.js +5 -5
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__00qyw01._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__01ypm_z._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__021dkui._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__18e65_-._.js → [root-of-the-server]__03xamry._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__05dp5tr._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__09gdscj._.js +7 -0
- package/.next/server/chunks/{[root-of-the-server]__10_7vqz._.js → [root-of-the-server]__0b36yfw._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1gamvcz._.js → [root-of-the-server]__0jzwdg-._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0mrk2it._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0nmust6._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__0svzjwa._.js +7 -0
- package/.next/server/chunks/{[root-of-the-server]__16yw3mb._.js → [root-of-the-server]__12m24xl._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1zrwxis._.js → [root-of-the-server]__12tahb4._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1ep-pao._.js → [root-of-the-server]__1_h4hf9._.js} +4 -4
- package/.next/server/chunks/{[root-of-the-server]__1-tdj60._.js → [root-of-the-server]__1de1o6m._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1voqqyc._.js → [root-of-the-server]__1ignh6-._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1t02-1p._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ygplx1._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__11g20j-._.js → [root-of-the-server]__1yl5l25._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1mbd2w_._.js → [root-of-the-server]__208vmyf._.js} +1 -1
- package/.next/server/chunks/{_1mfu9a3._.js → _02lipqs._.js} +1 -1
- package/.next/server/chunks/_05sa7xl._.js +1 -1
- package/.next/server/chunks/{_1rg5bfd._.js → _074f2ts._.js} +1 -1
- package/.next/server/chunks/_07nxi75._.js +37 -37
- package/.next/server/chunks/_08354bn._.js +12 -12
- package/.next/server/chunks/_08btiir._.js +7 -0
- package/.next/server/chunks/_0caua_s._.js +1 -1
- package/.next/server/chunks/{_0qoush_._.js → _0gt6cbj._.js} +1 -1
- package/.next/server/chunks/_0xygcxs._.js +37 -37
- package/.next/server/chunks/{_09c4we8._.js → _17i1lt2._.js} +1 -1
- package/.next/server/chunks/_19kea1l._.js +9 -9
- package/.next/server/chunks/_1gn2r2q._.js +3 -3
- package/.next/server/chunks/{_03niwml._.js → _1ntwp1s._.js} +1 -1
- package/.next/server/chunks/_1q6e56i._.js +3 -3
- package/.next/server/chunks/{_02fn1o3._.js → _1tkzgtm._.js} +1 -1
- package/.next/server/chunks/_1wl2g8_._.js +2 -2
- package/.next/server/chunks/{_1w6uf9k._.js → _1y3mnz4._.js} +1 -1
- package/.next/server/chunks/features_workspace_workspace_ts_13h82gv._.js +4 -4
- package/.next/server/chunks/features_workspace_workspace_ts_1iyjroj._.js +4 -4
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0cux6zt._.js → node_modules_consola_dist_chunks_prompt_mjs_04oxl25._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0w32bqh._.js → node_modules_consola_dist_chunks_prompt_mjs_0g87zst._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_1clmnaj._.js → node_modules_consola_dist_chunks_prompt_mjs_1341cnf._.js} +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__02jdtqa._.js → [root-of-the-server]__07660xu._.js} +3 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__07iyl1_._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0rnjkw2._.js → [root-of-the-server]__0g__u45._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__17h1ggo._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1jyeu61._.js +1 -1
- package/.next/server/chunks/ssr/_0-i6wdi._.js +3 -0
- package/.next/server/chunks/ssr/{_1k0efi3._.js → _00g5sq-._.js} +2 -2
- package/.next/server/chunks/ssr/{_0ncuqct._.js → _03akcjz._.js} +2 -2
- package/.next/server/chunks/ssr/{_0l1-xc6._.js → _06xy39t._.js} +2 -2
- package/.next/server/chunks/ssr/_088vzgn._.js +3 -0
- package/.next/server/chunks/ssr/_0fo4552._.js +7 -7
- package/.next/server/chunks/ssr/_0r0g9ki._.js +1 -1
- package/.next/server/chunks/ssr/{_1dqaksc._.js → _0sefgiu._.js} +2 -2
- package/.next/server/chunks/ssr/_0v9r8g2._.js +3 -0
- package/.next/server/chunks/ssr/_0x8ophf._.js +1 -1
- package/.next/server/chunks/ssr/{_0w8r7o7._.js → _1-41lck._.js} +2 -2
- package/.next/server/chunks/ssr/{_11pnnvd._.js → _113ukfo._.js} +3 -3
- package/.next/server/chunks/ssr/_12p8f9_._.js +3 -0
- package/.next/server/chunks/ssr/{_10fwcz_._.js → _14dfh7a._.js} +2 -2
- package/.next/server/chunks/ssr/{_1f6s34p._.js → _1_gwau0._.js} +2 -2
- package/.next/server/chunks/ssr/{_0wupyvd._.js → _1hn3szq._.js} +2 -2
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/{_17ble8k._.js → _1o7a11b._.js} +3 -3
- package/.next/server/chunks/ssr/{_0y28gl3._.js → _1swhm5m._.js} +3 -3
- package/.next/server/chunks/ssr/_1uij_rj._.js +1 -1
- package/.next/server/chunks/ssr/_1umbr78._.js +1 -1
- package/.next/server/chunks/ssr/_1w9w1ok._.js +1 -1
- package/.next/server/chunks/ssr/_1wac78_._.js +3 -0
- package/.next/server/chunks/ssr/{_1z586yw._.js → _20ywznt._.js} +2 -2
- package/.next/server/chunks/ssr/features_0796o8r._.js +1 -1
- package/.next/server/chunks/ssr/{features_bot_1k25jdg._.js → features_bot_0j4h9qu._.js} +2 -2
- package/.next/server/chunks/ssr/features_bot_1knyan7._.js +3 -0
- package/.next/server/chunks/ssr/{features_config_11dpa7r._.js → features_config_1xrlh3l._.js} +3 -3
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +1 -1
- package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
- package/.next/server/chunks/ssr/features_workspace_workspace_ts_1wc7_u_._.js +4 -4
- package/.next/server/chunks/ssr/{node_modules_1r5o-bo._.js → node_modules_00kqq8n._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0u24mg0._.js → node_modules_04o9dd2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0mark4f._.js → node_modules_05jatne._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0bas34k._.js → node_modules_06rkzq5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0y5uubt._.js → node_modules_07w6r9n._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ka8te1._.js → node_modules_08ld3lm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0n1js5k._.js → node_modules_0ft86sp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_156m1qh._.js → node_modules_0g0lr19._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0bbwe-u._.js → node_modules_0kg-vd-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0x_2io2._.js → node_modules_0nl9i29._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_18yn_bs._.js → node_modules_0p0xf5f._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0-8r9yw._.js → node_modules_0pyepmf._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1dzye0n._.js → node_modules_0vg-4fo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1xua-g1._.js → node_modules_0y5upun._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1o9n7_n._.js → node_modules_13seln7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1ozyial._.js → node_modules_15vsfpv._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0sdjzae._.js → node_modules_17azpeb._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1zkzksd._.js → node_modules_1_il5l7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0-ew8f8._.js → node_modules_1aeg65a._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0etz1i0._.js → node_modules_1d73q89._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ld7p-1._.js → node_modules_1iq8zjs._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_138kcrz._.js → node_modules_1mcsva4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0uibk9z._.js → node_modules_1mhg5br._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1tj7_9z._.js → node_modules_1mqisle._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_02uwbwp._.js → node_modules_1va4lz9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_097cl9f._.js → node_modules_207ay1p._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_133hjui._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0hefprb._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1b3vwd3._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1uuvrfp._.js} +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +61 -61
- package/.next/static/chunks/04toe_3nqfjqt.js +1 -0
- package/.next/static/chunks/{245_cp14iz637.js → 0780wmy0_rva8.js} +1 -1
- package/.next/static/chunks/{314szf8yer-3n.js → 09opsnra7k4k0.js} +2 -2
- package/.next/static/chunks/{42m371fn687r5.js → 0if7xqoj3ysfj.js} +1 -1
- package/.next/static/chunks/{0609ejkwuy4sf.js → 1-q6so9vze75d.js} +2 -2
- package/.next/static/chunks/{23tx-2paw9qa6.js → 106jbz6qd0c5l.js} +1 -1
- package/.next/static/chunks/19wkcgzetkh6-.js +1 -0
- package/.next/static/chunks/{39miwvg4k-b2d.js → 1_me_-lnpwdfd.js} +1 -1
- package/.next/static/chunks/{2oa4gpkzjtpni.js → 1mkw_05uc8_ft.js} +1 -1
- package/.next/static/chunks/1njjf8bfkg4_v.js +1 -0
- package/.next/static/chunks/{1ub9obhgfm4jl.js → 25ciqm-ee14nf.js} +1 -1
- package/.next/static/chunks/{2xjr5b-yk_h3o.js → 29laj9_xhx0d1.js} +1 -1
- package/.next/static/chunks/{2jbjyazqfqyoh.js → 2b306ek_blfp1.js} +1 -1
- package/.next/static/chunks/2mpqmpf8wcst1.js +15 -0
- package/.next/static/chunks/{3ro66d9dc70bc.js → 2rpyc6mevfhu6.js} +1 -1
- package/.next/static/chunks/{0cl_fgkphk1oz.js → 2wj77vx62ng3n.js} +1 -1
- package/.next/static/chunks/{3j-l8un0d77v7.js → 2y2v3bk65fdle.js} +3 -3
- package/.next/static/chunks/{3vwjs5kq11417.js → 32oho7re_n3dq.js} +1 -1
- package/.next/static/chunks/388l-zszwa_jf.js +1 -0
- package/.next/static/chunks/{0q4ws7qd21chx.js → 3_s5svfgu9kl_.js} +3 -3
- package/.next/static/chunks/3bwrvpjk95_x4.js +1 -0
- package/.next/static/chunks/{07vcuxousbmy1.js → 3suz18umxycuk.js} +1 -1
- package/.next/static/chunks/{0unonxbajyknw.js → 44n-w1bs83ejz.js} +1 -1
- package/README.md +12 -12
- package/guide/bots.md +48 -8
- package/guide/calls.md +13 -12
- package/guide/setup.md +4 -2
- package/package.json +1 -1
- package/public/sounds/NOTICE +3 -0
- package/public/sounds/opening-land.ogg +0 -0
- package/public/sounds/opening-rise.ogg +0 -0
- package/public/sounds/opening-step-1.ogg +0 -0
- package/public/sounds/opening-step-2.ogg +0 -0
- package/public/sounds/opening-step-3.ogg +0 -0
- package/skills/README.md +3 -0
- package/skills/artifact/SKILL.md +6 -5
- package/skills/artifact/references/book.md +23 -8
- package/skills/artifact/references/deck.md +4 -2
- package/skills/artifact/references/document.md +9 -0
- package/skills/artifact/references/sheet.md +113 -0
- package/skills/artifact/runtime/book/book.css +75 -0
- package/skills/artifact/runtime/book/book.html +6 -3
- package/skills/artifact/runtime/book/book.js +21 -0
- package/skills/artifact/runtime/canvas/canvas.css +1 -1
- package/skills/artifact/runtime/canvas/canvas.js +11 -1
- package/skills/artifact/runtime/deck/deck.css +164 -1
- package/skills/artifact/runtime/deck/deck.js +76 -1
- package/skills/artifact/runtime/document/docx.js +631 -0
- package/skills/artifact/runtime/document/markdown.mjs +58 -2
- package/skills/artifact/runtime/document/quick.css +66 -0
- package/skills/artifact/runtime/document/quick.html +1 -0
- package/skills/artifact/runtime/document/quick.js +154 -0
- package/skills/artifact/runtime/document/word.mjs +65 -0
- package/skills/artifact/runtime/sheet/format.mjs +392 -0
- package/skills/artifact/runtime/sheet/formula.mjs +755 -0
- package/skills/artifact/runtime/sheet/sheet.css +499 -0
- package/skills/artifact/runtime/sheet/sheet.html +102 -0
- package/skills/artifact/runtime/sheet/sheet.js +1361 -0
- package/skills/artifact/runtime/sheet/xlsx.mjs +320 -0
- package/skills/artifact/runtime/shell/head.html +1 -1
- package/skills/artifact/runtime/shell/shell.css +3 -0
- package/skills/artifact/runtime/shell/wear.mjs +47 -1
- package/skills/artifact/runtime/vendor/fflate.LICENSE.md +23 -0
- package/skills/artifact/runtime/vendor/fflate.mjs +2710 -0
- package/skills/artifact/scripts/book.mjs +160 -11
- package/skills/artifact/scripts/chart.mjs +229 -11
- package/skills/artifact/scripts/document.mjs +29 -2
- package/skills/artifact/scripts/spreadsheet.mjs +1165 -0
- package/skills/data-report/SKILL.md +8 -1
- package/.next/server/chunks/[root-of-the-server]__0aijj66._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0tvoct-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__118qjk_._.js +0 -7
- package/.next/server/chunks/[root-of-the-server]__1b8tp42._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1gzcbda._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1qcn1ti._.js +0 -7
- package/.next/server/chunks/_0xx3ryc._.js +0 -7
- package/.next/server/chunks/ssr/[root-of-the-server]__1y5_1cv._.js +0 -3
- package/.next/server/chunks/ssr/_0-ou1b0._.js +0 -3
- package/.next/server/chunks/ssr/_1g48r6t._.js +0 -3
- package/.next/server/chunks/ssr/_1u5vsy-._.js +0 -3
- package/.next/server/chunks/ssr/features_bot_1s_-2vj._.js +0 -3
- package/.next/server/chunks/ssr/lib_utils_ts_0_f1xvm._.js +0 -3
- package/.next/static/chunks/00d54fcfm-lko.js +0 -1
- package/.next/static/chunks/0gjlsu6vrfzod.js +0 -1
- package/.next/static/chunks/17yqt1p_svv13.js +0 -1
- package/.next/static/chunks/203pbwecfs3tm.js +0 -1
- package/.next/static/chunks/3ghvoe_mlljzs.js +0 -15
- package/.next/static/chunks/3gn7dubb4-pwy.js +0 -1
- /package/.next/static/{RtLRT9EEaGn-OqwpMFdYg → SNCDmWKeIrXB6yqnwzClS}/_buildManifest.js +0 -0
- /package/.next/static/{RtLRT9EEaGn-OqwpMFdYg → SNCDmWKeIrXB6yqnwzClS}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{RtLRT9EEaGn-OqwpMFdYg → SNCDmWKeIrXB6yqnwzClS}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[673701,a=>{"use strict";var b=a.i(187924),c=a.i(676459),d=a.i(926184),e=a.i(400187),f=a.i(497895);let g=(0,e.cva)("group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full",{variants:{variant:{default:"*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",secondary:"*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",muted:"*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",tinted:"*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",outline:"*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",ghost:"border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50",destructive:"*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"}},defaultVariants:{variant:"default"}});(0,e.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"}}),a.s(["Bubble",0,function({variant:a="default",align:c="start",className:d,...e}){return(0,b.jsx)("div",{"data-slot":"bubble","data-variant":a,"data-align":c,className:(0,f.cn)(g({variant:a}),d),...e})},"BubbleContent",0,function({className:a,render:b,...e}){var g;return g={defaultTagName:"div",props:(0,c.mergeProps)({className:(0,f.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",a)},e),render:b,state:{slot:"bubble-content"}},(0,d.useRenderElement)(g.defaultTagName??"div",g,g)}],673701)},613350,a=>{"use strict";var b=a.i(187924),c=a.i(589027),d=a.i(572131),e=a.i(497895);a.s(["FoldedText",0,function({text:a,subject:f,clamp:g="line-clamp-3",tall:h="max-h-40",className:i}){let[j,k]=(0,d.useState)(!1),[l,m]=(0,d.useState)(!1),n=(0,d.useRef)(null),[o,p]=(0,d.useState)(a);return o!==a&&(p(a),k(!1)),(0,d.useEffect)(()=>{let a=n.current;a&&!j&&m(a.scrollHeight>a.clientHeight+1)},[j,a]),(0,b.jsxs)("div",{className:(0,e.cn)("flex items-start gap-1",i),children:[(0,b.jsx)("p",{ref:n,className:(0,e.cn)("min-w-0 flex-1 text-[13px] leading-snug break-keep wrap-anywhere",j?(0,e.cn)(h,"overflow-y-auto scrollbar-none"):g),children:a}),(l||j)&&(0,b.jsx)("button",{type:"button",onClick:()=>k(a=>!a),"aria-label":j?`Fold the ${f}`:`Read the whole ${f}`,className:"shrink-0 rounded-md p-0.5 opacity-60 outline-none transition-opacity hover:opacity-100 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,b.jsx)(c.ChevronDown,{className:(0,e.cn)("size-3.5",j&&"rotate-180")})})]})}])},42380,a=>{"use strict";var b=a.i(187924),c=a.i(913834);a.s(["BotRoster",0,function({bots:a}){return a.length<2?null:(0,b.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5",title:a.map(a=>a.name).join(", "),children:[(0,b.jsx)("span",{className:"flex items-center gap-0.5",children:a.slice(0,3).map(a=>(0,b.jsx)(c.BotMark,{size:18,seed:a.name,color:a.icon?.color,shape:a.icon?.shape,outline:a.icon?.outline,paint:a.icon?.paint,notify:!1,className:"shrink-0"},a.name))}),(0,b.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground",children:[a.length," bots"]})]})}])},181809,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(256711),f=a.i(752562),g=a.i(589027),h=a.i(707963),i=a.i(802550),j=a.i(585650),k=a.i(851528),l=a.i(875160),m=a.i(748819),n=a.i(474215),o=a.i(572131),p=a.i(673701),q=a.i(613350),r=a.i(846991),s=a.i(545097),t=a.i(621958),u=a.i(864037),v=a.i(862494),w=a.i(321799),x=a.i(913834),y=a.i(346075),z=a.i(369768),A=a.i(199169),B=a.i(313237),C=a.i(497895),D=a.i(983874),E=a.i(135432),F=a.i(8468),G=b([r,w,z,F]);function H({onClick:a}){return(0,d.jsx)("button",{type:"button",onClick:a,"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,d.jsx)(n.X,{className:"size-3.5"})})}function I({thread:a}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(J,{thread:a}),(0,d.jsx)(K,{thread:a}),(0,d.jsx)(L,{thread:a})]})}function J({thread:a}){let{contextTokens:b,tokens:c}=a;return b?(0,d.jsx)("span",{title:`Last step ${(0,C.formatCount)(b)} tokens \xb7 in total in ${(0,C.formatCount)(c.input)} \xb7 out ${(0,C.formatCount)(c.output)}`,className:"shrink-0 font-mono text-[10px] text-muted-foreground/70 tabular-nums",children:(0,C.formatCount)(b)}):null}function K({thread:a}){let{contextTokens:b,contextBudget:c}=a,[e,f]=(0,o.useState)(!1),[g,h]=(0,B.useServerAction)(v.compactThreadAction,{onOk:()=>f(!0)}),[i,j]=(0,o.useState)(b);if(i!==b&&(j(b),f(!1)),!b||!c)return null;let k=Math.min(1,b/c);return(0,d.jsx)("button",{type:"button",disabled:h||e,onClick:()=>void g(a.id,a.bot.name),title:e?"It summarizes itself at its next step":`Context ${(0,C.formatCount)(b)} of ${(0,C.formatCount)(c)} — 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,d.jsx)("span",{className:"block h-[3px] w-9 overflow-hidden rounded-full bg-muted",children:(0,d.jsx)("span",{className:(0,C.cn)("block h-full rounded-full",e?"animate-pulse bg-muted-foreground/40":k>.9?"bg-amber-500/80":"bg-muted-foreground/70"),style:{width:`${Math.max(4,Math.round(100*k))}%`}})})})}[r,w,z,F]=G.then?(await G)():G;let ai={working:"text-muted-foreground",waiting:C.WAITING_INK,done:"text-foreground",cancelled:"text-muted-foreground"},aj={working:"working",waiting:"waiting",done:"done",cancelled:"stopped"};function L({thread:a}){let b="done"===a.status&&a.seen?"text-muted-foreground":ai[a.status];return"working"===a.status?(0,d.jsx)(s.ShinyText,{text:aj.working,speed:2.2,className:"shrink-0 font-mono text-[10px]"}):(0,d.jsx)("span",{className:(0,C.cn)("flex shrink-0 items-center gap-1.5 font-mono text-[10px]",b),children:aj[a.status]})}function M({thread:a,roster:b,side:c,onPick:e,className:f}){return(0,d.jsx)(t.Tabs,{value:c??a.bot.name,onValueChange:b=>e(b===a.bot.name?null:String(b)),className:(0,C.cn)("shrink-0 gap-0 px-3 pt-1 pb-0.5",f),children:(0,d.jsx)(t.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:b.map(b=>{let c=N(a,b.name);return(0,d.jsxs)(t.TabsTrigger,{value:b.name,className:(0,C.cn)(ak,"pl-1.5"),children:[(0,d.jsx)(x.BotMark,{size:16,seed:b.name,color:b.icon?.color,shape:b.icon?.shape,outline:b.icon?.outline,paint:b.icon?.paint,notify:"asking"===c,className:"shrink-0"}),(0,d.jsx)("span",{className:"max-w-28 truncate",children:b.name}),"running"===c&&(0,d.jsx)(l.Loader2,{className:"size-3 animate-spin text-muted-foreground/70"})]},b.name)})})})}let ak="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 N(a,b){let{room:c}=a;return c.questions.some(a=>a.bot===b)?"asking":"working"===a.status&&c.participants.some(a=>a.bot===b&&"running"===a.state)?"running":null}function O({turn:a,thread:b,self:c}){let e=a.speaker.name===c,f=e?"none":a.speaker.name===al.name?"dark":"secondary",g=null;return(0,d.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 duration-300",children:(0,d.jsx)($,{side:e?"start":"end",name:a.speaker.name,mark:(0,d.jsx)(Y,{bot:a.speaker}),children:a.entries.map(h=>{if("work"===h.kind)return e?(0,d.jsx)(Q,{lines:h.lines,trailing:h.open,bot:a.speaker,thread:b},h.key):(0,d.jsx)(P,{lines:h.lines,trailing:h.open,bot:a.speaker,thread:b},h.key);let i=(0,E.heardBy)(h.line),j=i&&i.name!==a.speaker.name&&i.name!==c&&i.name!==al.name&&i.name!==g?i:null;return i&&(g=i.name),(0,d.jsx)(_,{line:h.line,surface:f,mention:j},h.key)})})})}function P({lines:a,trailing:b,bot:c,thread:e}){var f;let[g,h]=(0,o.useState)(!1),[i,j]=(0,o.useState)(null),k=b?N(e,c.name):null,m=(f=a,[["tool","step"],["say","note"],["stop","stop"],["note","compaction"]].map(([a,b])=>[f.filter(b=>b.kind===a).length,b]).filter(([a])=>a>0).map(([a,b])=>`${a} ${b}${1===a?"":"s"}`).join(" · ")),n=a.filter(a=>a.tool?.results!==void 0);if(!k&&!m)return null;let p=a.findLast(a=>"tool"===a.kind||"say"===a.kind),q=g&&a.length>0;return(0,d.jsxs)("div",{className:(0,C.cn)("flex min-w-0 flex-col rounded-2xl bg-muted/40 p-1",q?"w-full":"w-fit max-w-full"),children:[(0,d.jsxs)("button",{type:"button",disabled:!a.length,"aria-expanded":q,onClick:()=>{h(a=>!a),j(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"===k&&(0,d.jsx)(l.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground/60"}),k?(0,d.jsx)(s.ShinyText,{text:"asking"===k?"waiting on you":p?U(p):"working",tone:"asking"===k?"waiting":"muted",speed:2.4,className:(0,C.cn)("min-w-0 truncate text-[12px] leading-4",q&&"flex-1")}):(0,d.jsx)(S,{words:p?U(p):"",facts:[m,function(a){let b=a.flatMap(a=>a.at?[(0,A.toDate)(a.at).getTime()]:[]);if(b.length<2)return"";let c=Math.round((Math.max(...b)-Math.min(...b))/1e3);if(c<1)return"";if(c<60)return`${c}s`;let d=Math.round(c/60);return d<60?`${d} min`:`${Math.floor(d/60)}h ${d%60}m`}(a)].filter(Boolean).join(" · "),grow:q}),a.length>0&&(0,d.jsx)(T,{open:q})]}),!q&&n.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-1 px-2 pt-0.5 pb-1.5",children:n.map(a=>a.tool&&(0,d.jsx)(F.StepTile,{tool:a.tool,onOpen:()=>{j(a.id),h(!0)}},a.id))}),q&&(0,d.jsx)("div",{className:"flex min-w-0 flex-col gap-0.5 pt-0.5",children:ah(a).map(a=>"tools"===a.kind?a.lines.map(a=>a.tool&&(0,d.jsx)(F.BotTool,{tool:a.tool,threadId:e.id,collapsed:a.id!==i},a.id)):"stops"===a.kind?(0,d.jsx)("div",{className:"px-1.5 py-1",children:(0,d.jsx)(ag,{lines:a.lines})},a.key):a.lines.map(a=>(0,d.jsx)(ae,{line:a,inset:!0},a.id)))})]})}function Q({lines:a,trailing:b,bot:c,thread:e}){let f=b?N(e,c.name):null,g=a.some(a=>a.tool&&void 0===a.tool.results);return(0,d.jsxs)(d.Fragment,{children:[ah(a).map(a=>"tools"===a.kind?(0,d.jsx)(R,{lines:a.lines,threadId:e.id},a.key):"stops"===a.kind?(0,d.jsx)(ag,{lines:a.lines},a.key):a.lines.map(a=>(0,d.jsx)(ae,{line:a},a.id))),f&&!g&&(0,d.jsx)(s.ShinyText,{text:"asking"===f?"waiting on you":"on the next step…",tone:"asking"===f?"waiting":"muted",speed:2.2,className:"block px-1 font-mono text-[10px]"})]})}function R({lines:a,threadId:b}){return(0,d.jsx)("div",{className:"flex w-full flex-col gap-0.5 rounded-2xl bg-muted/40 p-1",children:a.map(a=>a.tool&&(0,d.jsx)(F.BotTool,{tool:a.tool,threadId:b,collapsed:!0},a.id))})}function S({words:a,facts:b,grow:c=!1}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:(0,C.cn)("min-w-0 truncate text-[12.5px] leading-5 text-foreground/80",c&&"flex-1"),children:a}),(0,d.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] leading-4 text-muted-foreground",children:b})]})}function T({open:a}){return(0,d.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,d.jsx)(g.ChevronDown,{className:(0,C.cn)("size-3.5 transition-transform",a&&"rotate-180")})})}function U(a){return"tool"===a.kind&&a.tool?a.tool.note??`${a.tool.name} \xb7 ${a.tool.input}`:(0,C.plainText)(a.text).replace(/\s+/g," ").trim()}function V({thread:a}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(W,{from:al,to:a.bot}),(0,d.jsx)($,{side:"end",name:al.name,mark:(0,d.jsx)(Y,{bot:al}),children:(0,d.jsx)(Z,{dark:!0,className:"py-2 pr-2 pl-3.5",children:(0,d.jsx)(q.FoldedText,{text:a.request,subject:"request",className:"wrap-anywhere"})})})]})}let al={name:D.ROOM_THURSDAY};function W({from:a,to:b}){return(0,d.jsx)("div",{className:"flex animate-in justify-center fade-in duration-300",children:(0,d.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,d.jsx)(X,{bot:a}),(0,d.jsx)("span",{className:"shrink-0 text-muted-foreground/70",children:"invited"}),(0,d.jsx)(X,{bot:b})]})})}function X({bot:a}){return(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[a.name===al.name?(0,d.jsx)(y.ThursdayMark,{size:15,className:"shrink-0"}):(0,d.jsx)(x.BotMark,{size:15,seed:a.name,color:a.icon?.color,shape:a.icon?.shape,outline:a.icon?.outline,paint:a.icon?.paint,notify:!1,className:"shrink-0"}),(0,d.jsx)("span",{className:"truncate",children:a.name})]})}function Y({bot:a}){return a.name===al.name?(0,d.jsx)(y.ThursdayMark,{size:26,className:"mt-1 shrink-0"}):(0,d.jsx)(x.BotMark,{size:26,seed:a.name,color:a.icon?.color,shape:a.icon?.shape,outline:a.icon?.outline,paint:a.icon?.paint,notify:!1,className:"mt-1 shrink-0"})}function Z({dark:a=!1,children:b,className:c}){return(0,d.jsx)(p.Bubble,{align:"end",variant:a?"default":"secondary",className:"max-w-full",children:(0,d.jsx)(p.BubbleContent,{className:(0,C.cn)("rounded-tr-md px-3.5",c),children:(0,d.jsx)("div",{className:(0,C.cn)("min-w-0",a&&"inverse"),children:b})})})}function $({side:a,mark:b,name:c,children:e}){return(0,d.jsxs)("div",{className:(0,C.cn)("flex gap-2.5","end"===a&&"flex-row-reverse"),children:[b,(0,d.jsxs)("div",{className:(0,C.cn)("flex min-w-0 flex-1 flex-col gap-1.5 [&>*+*]:max-w-[80%]","end"===a&&"items-end"),children:[(0,d.jsx)("p",{className:"max-w-[80%] truncate px-1 font-mono text-[10px] text-muted-foreground",children:c}),e]})]})}function _({line:a,surface:b,mention:c}){let e=!!a.question,f="result"===a.kind,g="none"!==b,h=(0,w.shortenPaths)(a.text),i=(0,d.jsxs)(d.Fragment,{children:[e&&(0,d.jsx)(ad,{}),c?(0,d.jsx)(ac,{bot:c,bubble:g,children:h}):(0,d.jsx)(aa,{bubble:g,className:(0,C.cn)(!f&&"leading-snug"),children:h}),(0,d.jsx)(w.Attachments,{text:a.text,onBubble:g,className:"mt-2"})]});return(0,d.jsxs)(d.Fragment,{children:[g?(0,d.jsx)(Z,{dark:"dark"===b,children:i}):(0,d.jsx)("div",{className:"min-w-0 max-w-full px-1",children:i}),a.steppedIn&&(0,d.jsxs)("p",{className:"flex items-center gap-1 px-1 font-mono text-[10px] text-muted-foreground",children:[(0,d.jsx)(k.CornerDownLeft,{className:"size-2.5"}),"stepped in"]}),f&&(0,d.jsx)("div",{className:"flex px-1",children:(0,d.jsx)(af,{text:a.text})})]})}function aa({children:a,bubble:b=!1,className:c}){return(0,d.jsx)(r.Markdown,{className:(0,C.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",b&&"[&_[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!",c),children:a})}function ab({bot:a,bubble:b}){return(0,d.jsxs)("span",{className:(0,C.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",b?"bg-background":"bg-muted"),children:[(0,d.jsx)(x.BotMark,{size:14,seed:a.name,color:a.icon?.color,shape:a.icon?.shape,outline:a.icon?.outline,paint:a.icon?.paint,notify:!1,className:"shrink-0"}),(0,d.jsx)("span",{className:"truncate",children:a.name})]})}function ac({bot:a,bubble:b,children:c}){return(0,d.jsxs)("div",{className:"min-w-0 max-w-full text-[13px] leading-snug",children:[(0,d.jsx)(ab,{bot:a,bubble:b}),(0,d.jsx)(aa,{bubble:b,className:"contents leading-snug [&>p:first-child]:inline",children:c})]})}function ad(){return(0,d.jsxs)("p",{className:"mb-1 flex items-center gap-1.5 text-[12px] leading-4 font-medium text-muted-foreground",children:[(0,d.jsx)(i.CircleQuestionMark,{className:"size-3.5 shrink-0"}),"Question"]})}function ae({line:a,inset:b=!1}){return"note"===a.kind?(0,d.jsxs)("details",{className:"w-full px-2 py-1 text-muted-foreground",children:[(0,d.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-2.5 outline-none [&::-webkit-details-marker]:hidden",children:[(0,d.jsx)("span",{className:"h-px flex-1 bg-border"}),(0,d.jsx)("span",{className:"min-w-0 text-center font-mono text-[10px]",children:"Compacted — it goes on from its summary"}),(0,d.jsx)("span",{className:"h-px flex-1 bg-border"})]}),(0,d.jsx)(aa,{className:"mt-2 rounded-xl bg-muted/40 px-3 py-2 text-[11px]",children:a.text})]}):(0,d.jsx)(aa,{className:(0,C.cn)("text-[12.5px] text-muted-foreground",b?"px-2.5 py-1":"px-1"),children:a.text})}function af({text:a}){let[b,c]=(0,o.useState)(!1),e=(0,o.useRef)(null);return(0,o.useEffect)(()=>()=>{e.current&&clearTimeout(e.current)},[]),(0,d.jsx)("button",{type:"button","aria-label":"Copy the answer",onClick:async()=>{try{await navigator.clipboard.writeText(a),c(!0),e.current&&clearTimeout(e.current),e.current=setTimeout(()=>c(!1),1400)}catch(a){u.toast.add({type:"error",title:"Could not copy the answer",description:(0,C.errorToString)(a)})}},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:b?(0,d.jsx)(f.Check,{className:"size-3"}):(0,d.jsx)(j.Copy,{className:"size-3"})})}function ag({lines:a}){return(0,d.jsxs)("details",{className:"group min-w-0 px-1 text-muted-foreground",children:[(0,d.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,d.jsx)(m.RotateCw,{className:"size-3 shrink-0"}),(0,d.jsx)("span",{className:"min-w-0 truncate",children:am(a[0].text)}),a.length>1&&(0,d.jsxs)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/70",children:["×",a.length]}),(0,d.jsx)(g.ChevronDown,{className:"size-2.5 shrink-0 text-muted-foreground/70 transition-transform group-open:rotate-180"})]}),(0,d.jsx)("div",{className:"mt-1 space-y-1 pl-4.5 text-[11px] leading-relaxed",children:a.map(a=>(0,d.jsxs)("p",{className:"flex gap-2 break-keep wrap-anywhere",children:[a.at&&(0,d.jsx)("span",{className:"shrink-0 font-mono text-muted-foreground/70 tabular-nums",children:(0,e.format)((0,A.toDate)(a.at),"HH:mm:ss")}),(0,d.jsx)("span",{className:"min-w-0",children:a.text})]},a.id))})]})}let am=a=>a.split(" (")[0].replace(/\.$/,"");function ah(a){let b=[];for(let c of a){let a="tool"===c.kind&&c.tool?"tools":"stop"===c.kind?"stops":"said",d=b.at(-1),e=d?.kind===a&&("stops"!==a||am(d.lines[0].text)===am(c.text));d&&e?d.lines.push(c):b.push({kind:a,key:c.id,lines:[c]})}return b}a.s(["Conversation",0,function({thread:a,tab:b=null,onTab:c,className:e,tabsClassName:f}){let g,h=(0,o.useRef)(null),i=(0,o.useRef)(!0),j=a.roster,k=c&&b!==a.bot.name&&j.some(a=>a.name===b)?b:null,l=k??a.bot.name,m=j.filter(b=>(!k||b.name===k)&&N(a,b.name)),n=(0,E.threadItems)((g=new Set(a.room.questions.map(a=>a.id))).size?{...a,lines:a.lines.filter(a=>!("ask"===a.kind&&void 0!==a.questionId&&g.has(a.questionId)))}:a,l,m);return(0,o.useEffect)(()=>{i.current=!0},[a.id,k]),(0,o.useEffect)(()=>{let a=h.current;a&&i.current&&(a.scrollTop=a.scrollHeight)},[a.lines,a.status,k]),(0,o.useEffect)(()=>{let a=h.current;if(!a)return;let b=new ResizeObserver(()=>{i.current&&(a.scrollTop=a.scrollHeight)});for(let c of Array.from(a.children))b.observe(c);return()=>b.disconnect()},[n.length,a.lines,k]),(0,d.jsxs)(z.FileViewer,{children:[c&&(0,d.jsx)(M,{thread:a,roster:j,side:k,onPick:c,className:f}),(0,d.jsxs)("div",{ref:h,onScroll:a=>{let b=a.currentTarget;i.current=b.scrollHeight-b.scrollTop-b.clientHeight<24},className:(0,C.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",e),children:[!k&&(0,d.jsx)(V,{thread:a}),n.map(b=>"invite"===b.kind?(0,d.jsx)(W,{from:b.from,to:b.to},b.key):(0,d.jsx)(O,{turn:b,thread:a,self:l},b.key))]})]})},"FoldButton",0,H,"TAB",0,ak,"THURSDAY",0,al,"ThreadFacts",0,I,"ThreadHeader",0,function({thread:a,onBack:b,onClose:c}){return(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-3 pb-1",children:[(0,d.jsx)("button",{type:"button",onClick:b,"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,d.jsx)(h.ChevronLeft,{className:"size-4"})}),(0,d.jsx)(x.BotMark,{size:22,seed:a.bot.name,color:a.bot.icon?.color,shape:a.bot.icon?.shape,outline:a.bot.icon?.outline,paint:a.bot.icon?.paint,notify:!1}),(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium",children:a.label}),(0,d.jsx)(I,{thread:a}),(0,d.jsx)(H,{onClick:c})]})},"leadOf",0,am,"stepOf",0,U]),c()}catch(a){c(a)}},!1),988422,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(327598),f=a.i(589027),g=a.i(707963),h=a.i(141146),i=a.i(231500),j=a.i(851528),k=a.i(875160),l=a.i(127774),m=a.i(19895),n=a.i(474215),o=a.i(572131),p=a.i(767561),q=a.i(340695),r=a.i(676504),s=a.i(613350),t=a.i(846991),u=a.i(545097),v=a.i(546893),w=a.i(926043),x=a.i(845782),y=a.i(174632),z=a.i(411509),A=a.i(913834),B=a.i(135432),C=a.i(217464),D=a.i(866460),E=a.i(332033),F=a.i(313237),G=a.i(759497),H=a.i(497895),I=b([t,D]);function J({className:a,children:b}){return(0,d.jsx)("div",{className:(0,H.cn)("flex min-w-0 flex-col gap-2.5 rounded-[18px] bg-muted py-2 pr-2 pl-3.5",a),children:b})}function K({bot:a,word:b,children:c}){return(0,d.jsxs)("div",{className:"flex min-h-7 min-w-0 items-center gap-1.5",children:[(0,d.jsx)("span",{title:a.name,className:"shrink-0 leading-none",children:(0,d.jsx)(O,{bot:a,size:16})}),(0,d.jsx)("span",{className:(0,H.cn)("truncate text-[12px] leading-4 font-medium",H.WAITING_INK),children:b}),c]})}function L({options:a,picked:b,busy:c,onChoose:e}){return(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:a.map(a=>(0,d.jsxs)(q.Button,{type:"button",size:"sm",variant:"ghost",loading:b===a,disabled:c,onClick:()=>e(a),className:"h-7 gap-1.5 rounded-full bg-background px-3 text-[12.5px] hover:bg-background/60 dark:hover:bg-background/60",children:[a===z.THREAD_CONTINUE&&b!==a&&(0,d.jsx)(i.ChevronsRight,{className:"size-3.5 text-muted-foreground"}),a]},a))})}function M({threadId:a,recipient:b,draftKey:c,send:f,busy:g,placeholder:h,label:i,autoFocus:j=!1,onEscape:m,leading:n,trailing:p,className:r}){let[s,t]=(0,o.useState)(()=>B.threadDrafts.get(a,b,c)),[u,w]=(0,o.useState)(!1),x=d=>{t(d),B.threadDrafts.set(a,b,d,c)},y=(0,D.useGivenFiles)(),z=(0,o.useRef)(null),{take:A}=y;(0,o.useEffect)(()=>D.roomDrop.claim(a=>void A(a)),[A]);let C=!!s.trim()&&!g&&!y.arriving,F=async()=>{C&&(w(!0),await f(y.withPaths(s))&&(x(""),y.clear()),w(!1))};return(0,d.jsxs)("form",{onSubmit:a=>{a.preventDefault(),F()},className:(0,H.cn)("flex min-w-0 flex-wrap items-end gap-1",r),children:[y.files.length>0&&(0,d.jsx)(D.GivenFiles,{dense:!0,files:y.files,onRemove:y.remove,className:"w-full pb-1"}),n,(0,d.jsx)(v.Textarea,{value:s,rows:1,disabled:g,autoFocus:j,onChange:a=>x(a.target.value),onPaste:a=>{let b=[...a.clipboardData.files];b.length&&(a.preventDefault(),A(b))},onKeyDown:a=>{let b=(0,E.composing)(a);if("Escape"===a.key&&m&&!b){a.preventDefault(),m();return}"Enter"!==a.key||a.shiftKey||b||(a.preventDefault(),F())},placeholder:h,"aria-label":i,className:"max-h-32 min-h-0 min-w-0 flex-1 resize-none border-0 bg-transparent px-0 py-1 text-[13px] leading-5 shadow-none focus-visible:ring-0 dark:bg-transparent"}),(0,d.jsx)("input",{ref:z,type:"file",multiple:!0,hidden:!0,onChange:a=>{A([...a.target.files??[]]),a.target.value=""}}),(0,d.jsx)(q.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:g,"aria-label":"Add files",onClick:()=>z.current?.click(),className:"rounded-full text-muted-foreground",children:(0,d.jsx)(l.Paperclip,{})}),p,(0,d.jsx)(q.Button,{type:"submit",size:"icon-sm",variant:C?"default":"ghost",disabled:!C,"aria-label":"Send",className:"rounded-full",children:u?(0,d.jsx)(k.Loader2,{className:"animate-spin"}):(0,d.jsx)(e.ArrowUp,{})})]})}function N({current:a,bots:b,disabled:c,onPick:e}){return(0,d.jsxs)(r.DropdownMenu,{children:[(0,d.jsxs)(r.DropdownMenuTrigger,{render:(0,d.jsx)("button",{type:"button",disabled:c,"aria-label":`Message ${a.name}; choose another bot`,className:"mt-1 inline-flex h-5 shrink-0 items-center gap-1 self-start rounded-full bg-muted pr-1.5 pl-[3px] text-[12px] leading-none font-medium outline-none transition-colors hover:bg-muted-foreground/15 focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50"}),children:[(0,d.jsx)("span",{className:"pl-1 text-muted-foreground",children:"To"}),(0,d.jsx)(O,{bot:a,size:14}),(0,d.jsx)("span",{className:"max-w-32 truncate",children:a.name}),(0,d.jsx)(f.ChevronDown,{className:"size-3 shrink-0 text-muted-foreground"})]}),(0,d.jsx)(r.DropdownMenuContent,{align:"start",children:(0,d.jsx)(r.DropdownMenuGroup,{children:b.map(a=>(0,d.jsxs)(r.DropdownMenuItem,{onClick:()=>e(a.name),children:[(0,d.jsx)(O,{bot:a,size:16}),a.name]},a.name))})})]})}function O({bot:a,size:b}){return(0,d.jsx)(A.BotMark,{size:b,seed:a.name,color:a.icon?.color,shape:a.icon?.shape,outline:a.icon?.outline,paint:a.icon?.paint,notify:!1,className:"shrink-0"})}function P(){let[a,b]=(0,F.useServerAction)(w.answerThreadAction,{onOk:()=>(0,G.revalidate)(p.queryKey.threads)});return[async(b,c,d,e)=>{let f=c.trim();if(!f)return!1;try{let c=await a(b.id,f,d,e);return B.screenActs.announce({kind:"answered",id:c.id,label:c.label,answer:f,recipient:d,replyTo:e}),!0}catch{return!1}},b]}[t,D]=I.then?(await I)():I,a.s(["ThreadReply",0,function({thread:a,status:b,faces:c=[],to:e=null,className:f}){let[i,l]=(0,o.useState)(),[r,v]=(0,o.useState)(()=>B.threadDrafts.recipient(a.id)??a.bot),[w,A]=(0,o.useState)(!1),[D,E]=(0,o.useState)(null),[I,O]=(0,o.useState)({id:a.id,bot:a.bot});(I.id!==a.id||I.bot!==a.bot)&&(O({id:a.id,bot:a.bot}),v(B.threadDrafts.recipient(a.id)??a.bot),l(void 0),A(!1)),(0,o.useEffect)(()=>{e&&(B.threadDrafts.select(a.id,e),v(e))},[a.id,e]);let Q=a.room.participants,R=a.room.questions,S=Math.max(0,R.findIndex(a=>a.id===i)),T=R[S],U="waiting"===b?a.ask:null,V=(0,z.isAppStop)(U),W=T?.bot??(Q.some(a=>a.bot===r)?r:a.bot),X=T?.id,[Y,Z]=P(),[$,_]=(0,F.useServerAction)(x.cancelThreadAction,{onOk:a=>{(0,G.revalidate)(p.queryKey.threads),B.screenActs.announce({kind:"stopped",id:a.id,label:a.label})}}),aa=Z||_,ab=a.room.deliveries.filter(a=>!a.delivered),[ac,ad]=(0,F.useServerAction)(y.withdrawStepInAction,{onOk:()=>(0,G.revalidate)(p.queryKey.threads)}),ae=ab.map(a=>`${a.bot}: ${a.text}`).join(" · "),af=Q.filter(a=>"running"===a.state).map(a=>a.bot),ag=af.join(", ")||a.bot,ah="running"===b&&Q.some(a=>a.bot===W&&("running"===a.state||"queued"===a.state)),ai="running"===b&&!ah,aj=W!==a.bot,ak=a=>c.find(b=>b.name===a)??{name:a},al=async b=>{if(aa)return!1;let c=await Y(a,b,W,X);return c&&ah&&A(!1),c},am=async a=>{E(a),await al(a),E(null)},an=(c=!1)=>"running"===b||"waiting"===b?(0,d.jsxs)(q.Button,{type:"button",size:"sm",variant:"ghost",loading:_,disabled:aa,onClick:()=>$(a.id),"aria-label":"Stop this thread",className:(0,H.cn)("h-7 shrink-0 gap-1.5 rounded-full px-2.5 text-[12px]",c&&"bg-background px-3 hover:bg-background/60 dark:hover:bg-background/60"),children:[!_&&(0,d.jsx)(m.Square,{className:"size-2.5 fill-current"}),"Stop"]}):null;if(T){let b=T.options??[],c=T.text;return(0,d.jsxs)(J,{className:f,children:[(0,d.jsx)(K,{bot:ak(W),word:"Question",children:(0,d.jsxs)("span",{className:"ml-auto flex shrink-0 items-center gap-1.5",children:[R.length>1&&(0,d.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,d.jsx)(q.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Previous question",disabled:aa||0===S,onClick:()=>l(R[S-1].id),children:(0,d.jsx)(g.ChevronLeft,{})}),(0,d.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground tabular-nums","aria-live":"polite",children:[S+1," / ",R.length]}),(0,d.jsx)(q.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Next question",disabled:aa||S===R.length-1,onClick:()=>l(R[S+1].id),children:(0,d.jsx)(h.ChevronRight,{})})]}),an(!0)]})}),c&&(0,d.jsx)("div",{className:"max-h-[min(14rem,30vh)] min-w-0 overflow-y-auto overscroll-contain pr-1.5",children:(0,d.jsx)(t.Markdown,{className:"min-w-0 text-[13px] leading-snug wrap-anywhere break-keep [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:c})}),b.length>0&&(0,d.jsx)(L,{options:b,picked:D,busy:aa,onChoose:am}),(0,d.jsx)(C.SignInAsk,{bot:W,onAllowed:al}),(0,d.jsx)(M,{threadId:a.id,recipient:W,draftKey:T.id,send:al,busy:aa,placeholder:b.length?"Or write your own answer…":"Your answer…",label:`Answer for ${W}`},JSON.stringify([a.id,W,T.id]))]})}return V?(0,d.jsxs)(J,{className:f,children:[(0,d.jsx)(K,{bot:ak(a.bot),word:"Paused",children:(0,d.jsx)("span",{className:"ml-auto flex shrink-0",children:an(!0)})}),U?.question&&(0,d.jsx)(s.FoldedText,{text:U.question,subject:"message",clamp:"line-clamp-3",tall:"max-h-40"}),(0,d.jsx)(L,{options:U?.options.length?U.options:[z.THREAD_CONTINUE],picked:D,busy:aa,onChoose:am}),(0,d.jsx)(M,{threadId:a.id,recipient:W,send:al,busy:aa,placeholder:"Or put it another way…",label:`Message for ${W}`},JSON.stringify([a.id,W,"paused"]))]}):ah&&!w?(0,d.jsxs)("div",{className:(0,H.cn)("flex min-w-0 flex-col rounded-2xl bg-muted/40 ring-1 ring-border/50",f),children:[ab.map(b=>(0,d.jsxs)("div",{className:"flex items-start gap-2 border-border/60 border-b py-2.5 pr-1.5 pl-3.5",children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,d.jsxs)("p",{className:"flex min-w-0 items-center gap-1.5 font-mono text-[10px] leading-4",children:[(0,d.jsx)(k.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"}),(0,d.jsx)(u.ShinyText,{text:`Step-in \xb7 waits for ${b.bot}'s next step`,speed:2.2,className:"min-w-0 truncate"})]}),(0,d.jsx)("p",{className:"whitespace-pre-wrap break-keep wrap-anywhere text-[13px] leading-snug",children:b.text})]}),(0,d.jsx)(q.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:ad,onClick:()=>ac(a.id,b.id),"aria-label":"Take it back",className:"shrink-0 text-muted-foreground/60 hover:text-foreground",children:(0,d.jsx)(n.X,{})})]},b.id)),(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-2 py-1.5 pr-1.5 pl-3.5",children:[(0,d.jsx)(u.ShinyText,{text:`${ag} \xb7 Working`,speed:2.4,className:"min-w-0 flex-1 truncate text-[12.5px] leading-5 break-keep"}),(0,d.jsxs)(q.Button,{type:"button",size:"sm",variant:"ghost",disabled:aa,onClick:()=>A(!0),className:"h-7 shrink-0 gap-1.5 rounded-full px-2.5 text-[12px]",children:[(0,d.jsx)(j.CornerDownLeft,{className:"size-3.5"}),"Step in"]}),(0,d.jsx)("span",{className:"h-4 w-px shrink-0 bg-border"}),an()]})]}):(0,d.jsxs)("div",{className:(0,H.cn)("flex min-w-0 flex-col gap-1.5",f),children:[ai&&(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-2 pr-1.5 pl-3.5",children:[(0,d.jsxs)("p",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-[12.5px] leading-5",children:[(0,d.jsxs)("span",{className:"shrink-0 text-muted-foreground",children:[W," is idle"]}),af.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"shrink-0 text-muted-foreground/50",children:"·"}),(0,d.jsx)(u.ShinyText,{text:`${af.join(", ")} working`,speed:2.4,className:"min-w-0 truncate"})]})]}),(0,d.jsx)("span",{className:"h-4 w-px shrink-0 bg-border"}),an()]}),(0,d.jsx)(M,{threadId:a.id,recipient:W,send:al,busy:aa,autoFocus:ah,onEscape:ah?()=>A(!1):void 0,placeholder:ah?`What's off? ${W} reads this before its next step`:ai?`Anything for ${W}? It starts again as soon as you send`:"Anything more? It picks up where it left off",label:`Message for ${W}`,className:"rounded-2xl bg-background py-1.5 pr-1.5 pl-3.5 ring-1 ring-border/80 transition-shadow focus-within:ring-ring/60",leading:Q.length>1?(0,d.jsx)(N,{current:ak(W),bots:Q.map(a=>ak(a.bot)),disabled:aa,onPick:b=>{B.threadDrafts.select(a.id,b),v(b)}}):null,trailing:ah?(0,d.jsx)(q.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:aa,onClick:()=>A(!1),"aria-label":"Never mind",className:"text-muted-foreground",children:(0,d.jsx)(n.X,{})}):null},JSON.stringify([a.id,W])),aj&&(0,d.jsxs)("p",{className:"min-w-0 truncate px-1 text-xs text-muted-foreground",children:[W,"’s answer goes back to ",a.bot]}),!!ae&&!ah&&(0,d.jsxs)("p",{className:"flex min-w-0 items-center gap-2 px-1 text-xs text-muted-foreground",children:[(0,d.jsx)(k.Loader2,{className:"size-3 shrink-0 animate-spin"}),(0,d.jsxs)("span",{className:"truncate",children:["Sending to ",ae]})]})]})},"useAnswerThread",0,P]),c()}catch(a){c(a)}},!1),926043,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f7bb799009465b1485b93cf098c5444693f8355b4",b.callServer,void 0,b.findSourceMapURL,"answerThreadAction");a.s(["answerThreadAction",0,c])},845782,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f9c2c29ef859b4f85149212550e72d94f6c816a69",b.callServer,void 0,b.findSourceMapURL,"cancelThreadAction");a.s(["cancelThreadAction",0,c])},174632,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f7f8cd31895eb44170d7269aeeb477a94986b2694",b.callServer,void 0,b.findSourceMapURL,"withdrawStepInAction");a.s(["withdrawStepInAction",0,c])},862494,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f9bb64ae5decdc5eb16cf9a9298a8a8772204a462",b.callServer,void 0,b.findSourceMapURL,"compactThreadAction");a.s(["compactThreadAction",0,c])},217464,a=>{"use strict";var b=a.i(187924),c=a.i(767561),d=a.i(340695),e=a.i(313237),f=a.i(759497),g=a.i(558081);a.s(["SignInAsk",0,function({bot:a,onAllowed:h}){let{data:i}=(0,f.useServerRoute)(c.queryKey.signIns),[j,k]=(0,e.useServerAction)(g.setSignInBotAction,{onOk:()=>(0,f.revalidate)(c.queryKey.signIns)}),l=(i??[]).filter(b=>b.asking.includes(a));return l.length?(0,b.jsx)("div",{className:"flex flex-wrap gap-1.5",children:l.map(c=>(0,b.jsxs)(d.Button,{type:"button",size:"sm",loading:k,onClick:()=>void j(c.site,a,!0).then(()=>h(`Yes — you may use my ${c.site} sign-in.`)).catch(()=>{}),children:["Let ",a," use ",c.site," (",c.account,")"]},c.site))}):null}])},866460,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(875160),f=a.i(474215),g=a.i(572131),h=a.i(864037),i=a.i(287702),j=a.i(38793),k=a.i(142400),l=a.i(313237),m=a.i(497895),n=b([j]);[j]=n.then?(await n)():n;let o=null;a.s(["GivenFiles",0,function({files:a,onRemove:b,dense:c=!1,children:g,className:h}){let i=c?"size-8 rounded-lg":"size-10 rounded-[9px]";return(0,d.jsxs)("div",{className:(0,m.cn)("flex flex-wrap gap-1.5",h),children:[a.map(a=>{let g;return(0,d.jsxs)("span",{className:(0,m.cn)("flex max-w-64 items-center bg-muted/70",c?"h-10.5 gap-2 rounded-xl py-1 pr-1.5 pl-1":"h-13 gap-2.5 rounded-[14px] py-1.5 pr-2 pl-1.5"),children:[a.path?(0,d.jsx)(j.FileThumb,{path:a.path,bytes:a.bytes,className:(0,m.cn)("shrink-0 overflow-hidden ring-1 ring-foreground/6",i)}):(0,d.jsx)("span",{className:(0,m.cn)("grid shrink-0 place-items-center bg-background text-muted-foreground ring-1 ring-foreground/6",i),children:(0,d.jsx)(e.Loader2,{className:"size-3.5 animate-spin"})}),(0,d.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,d.jsx)("span",{className:(0,m.cn)("truncate",c?"text-xs leading-4":"text-[12.5px] leading-4.5"),children:a.name}),(0,d.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[(g=a.bytes)<1048576?`${Math.max(1,Math.round(g/1024))} KB`:`${(g/1024/1024).toFixed(1)} MB`,a.note&&` \xb7 ${a.note}`]})]}),(0,d.jsx)("button",{type:"button","aria-label":`Take ${a.name} out`,onClick:()=>b(a.key),className:"grid size-5 shrink-0 place-items-center rounded-full text-muted-foreground outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,d.jsx)(f.X,{className:"size-3.5"})})]},a.key)}),g]})},"roomDrop",0,{claim:a=>(o=a,()=>{o===a&&(o=null)}),offer:(a,b)=>!!o&&!!a?.closest?.("[data-room]")&&(o(b),!0)},"useGivenFiles",0,function(a){let b=(0,g.useRef)(a?.onKept);b.current=a?.onKept;let[c,d]=(0,g.useState)([]),[e]=(0,l.useServerAction)(k.giveFilesAction),f=(0,g.useCallback)(async a=>{let f=i.GIVEN_FILES.perMessage-c.length;a.length>f&&h.toast.add({type:"error",title:`At most ${i.GIVEN_FILES.perMessage} files at a time.`});let g=a.slice(0,Math.max(0,f));if(!g.length)return;let j=g.map(a=>({key:crypto.randomUUID(),name:a.name,bytes:a.size,path:null}));d(a=>[...a,...j]);let k=new FormData;for(let a of g)k.append("file",a);try{let a=await e(k),c=b.current?.(a);d(b=>b.map(b=>{let d=j.findIndex(a=>a.key===b.key);return d<0?b:{...b,path:a[d]??null,note:c}}))}catch{d(a=>a.filter(a=>!j.some(b=>b.key===a.key)))}},[c.length,e]);return{files:c,take:f,remove:a=>d(b=>b.filter(b=>b.key!==a)),clear:()=>d([]),arriving:c.some(a=>null===a.path),withPaths:a=>[a.trim(),...c.flatMap(a=>a.path??[])].filter(Boolean).join("\n")}}]),c()}catch(a){c(a)}},!1),142400,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f0362ac5f4ef10351a512c0ff3b70858aa27e0f46",b.callServer,void 0,b.findSourceMapURL,"giveFilesAction");a.s(["giveFilesAction",0,c])},231500,a=>{"use strict";var b=a.i(164831);let c={name:"chevrons-right",size:24,node:[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]};c.node;let d=(0,b.default)(c);a.s(["ChevronsRight",0,d],231500)},802550,a=>{"use strict";var b=a.i(164831);let c={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"]};c.node;let d=(0,b.default)(c);a.s(["CircleQuestionMark",0,d],802550)},851528,a=>{"use strict";var b=a.i(164831);let c={name:"corner-down-left",size:24,node:[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]]};c.node;let d=(0,b.default)(c);a.s(["CornerDownLeft",0,d],851528)},127774,a=>{"use strict";var b=a.i(164831);let c={name:"paperclip",size:24,node:[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]};c.node;let d=(0,b.default)(c);a.s(["Paperclip",0,d],127774)},748819,a=>{"use strict";var b=a.i(164831);let c={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"}]]};c.node;let d=(0,b.default)(c);a.s(["RotateCw",0,d],748819)},19895,a=>{"use strict";var b=a.i(164831);let c={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};c.node;let d=(0,b.default)(c);a.s(["Square",0,d],19895)}];
|
|
1
|
+
module.exports=[673701,a=>{"use strict";var b=a.i(187924),c=a.i(676459),d=a.i(926184),e=a.i(400187),f=a.i(497895);let g=(0,e.cva)("group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full",{variants:{variant:{default:"*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",secondary:"*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",muted:"*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",tinted:"*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",outline:"*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",ghost:"border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50",destructive:"*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"}},defaultVariants:{variant:"default"}});(0,e.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"}}),a.s(["Bubble",0,function({variant:a="default",align:c="start",className:d,...e}){return(0,b.jsx)("div",{"data-slot":"bubble","data-variant":a,"data-align":c,className:(0,f.cn)(g({variant:a}),d),...e})},"BubbleContent",0,function({className:a,render:b,...e}){var g;return g={defaultTagName:"div",props:(0,c.mergeProps)({className:(0,f.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",a)},e),render:b,state:{slot:"bubble-content"}},(0,d.useRenderElement)(g.defaultTagName??"div",g,g)}],673701)},613350,a=>{"use strict";var b=a.i(187924),c=a.i(589027),d=a.i(572131),e=a.i(497895);a.s(["FoldedText",0,function({text:a,subject:f,clamp:g="line-clamp-3",tall:h="max-h-40",className:i}){let[j,k]=(0,d.useState)(!1),[l,m]=(0,d.useState)(!1),n=(0,d.useRef)(null),[o,p]=(0,d.useState)(a);return o!==a&&(p(a),k(!1)),(0,d.useEffect)(()=>{let a=n.current;a&&!j&&m(a.scrollHeight>a.clientHeight+1)},[j,a]),(0,b.jsxs)("div",{className:(0,e.cn)("flex items-start gap-1",i),children:[(0,b.jsx)("p",{ref:n,className:(0,e.cn)("min-w-0 flex-1 text-[13px] leading-snug break-keep wrap-anywhere",j?(0,e.cn)(h,"overflow-y-auto scrollbar-none"):g),children:a}),(l||j)&&(0,b.jsx)("button",{type:"button",onClick:()=>k(a=>!a),"aria-label":j?`Fold the ${f}`:`Read the whole ${f}`,className:"shrink-0 rounded-md p-0.5 opacity-60 outline-none transition-opacity hover:opacity-100 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,b.jsx)(c.ChevronDown,{className:(0,e.cn)("size-3.5",j&&"rotate-180")})})]})}])},42380,a=>{"use strict";var b=a.i(187924),c=a.i(913834);a.s(["BotRoster",0,function({bots:a}){return a.length<2?null:(0,b.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5",title:a.map(a=>a.name).join(", "),children:[(0,b.jsx)("span",{className:"flex items-center gap-0.5",children:a.slice(0,3).map(a=>(0,b.jsx)(c.BotMark,{size:18,seed:a.name,color:a.icon?.color,shape:a.icon?.shape,outline:a.icon?.outline,paint:a.icon?.paint,notify:!1,className:"shrink-0"},a.name))}),(0,b.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground",children:[a.length," bots"]})]})}])},181809,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(256711),f=a.i(752562),g=a.i(589027),h=a.i(707963),i=a.i(802550),j=a.i(585650),k=a.i(851528),l=a.i(875160),m=a.i(748819),n=a.i(474215),o=a.i(572131),p=a.i(673701),q=a.i(613350),r=a.i(846991),s=a.i(545097),t=a.i(621958),u=a.i(864037),v=a.i(341195),w=a.i(321799),x=a.i(913834),y=a.i(346075),z=a.i(369768),A=a.i(199169),B=a.i(313237),C=a.i(497895),D=a.i(983874),E=a.i(135432),F=a.i(8468),G=b([r,w,z,F]);function H({onClick:a}){return(0,d.jsx)("button",{type:"button",onClick:a,"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,d.jsx)(n.X,{className:"size-3.5"})})}function I({thread:a}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(J,{thread:a}),(0,d.jsx)(K,{thread:a}),(0,d.jsx)(L,{thread:a})]})}function J({thread:a}){let{contextTokens:b,tokens:c}=a;return b?(0,d.jsx)("span",{title:`Last step ${(0,C.formatCount)(b)} tokens \xb7 in total in ${(0,C.formatCount)(c.input)} \xb7 out ${(0,C.formatCount)(c.output)}`,className:"shrink-0 font-mono text-[10px] text-muted-foreground/70 tabular-nums",children:(0,C.formatCount)(b)}):null}function K({thread:a}){let{contextTokens:b,contextBudget:c}=a,[e,f]=(0,o.useState)(!1),[g,h]=(0,B.useServerAction)(v.compactThreadAction,{onOk:()=>f(!0)}),[i,j]=(0,o.useState)(b);if(i!==b&&(j(b),f(!1)),!b||!c)return null;let k=Math.min(1,b/c);return(0,d.jsx)("button",{type:"button",disabled:h||e,onClick:()=>void g(a.id,a.bot.name),title:e?"It summarizes itself at its next step":`Context ${(0,C.formatCount)(b)} of ${(0,C.formatCount)(c)} — 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,d.jsx)("span",{className:"block h-[3px] w-9 overflow-hidden rounded-full bg-muted",children:(0,d.jsx)("span",{className:(0,C.cn)("block h-full rounded-full",e?"animate-pulse bg-muted-foreground/40":k>.9?"bg-amber-500/80":"bg-muted-foreground/70"),style:{width:`${Math.max(4,Math.round(100*k))}%`}})})})}[r,w,z,F]=G.then?(await G)():G;let ai={working:"text-muted-foreground",waiting:C.WAITING_INK,done:"text-foreground",cancelled:"text-muted-foreground"},aj={working:"working",waiting:"waiting",done:"done",cancelled:"stopped"};function L({thread:a}){let b="done"===a.status&&a.seen?"text-muted-foreground":ai[a.status];return"working"===a.status?(0,d.jsx)(s.ShinyText,{text:aj.working,speed:2.2,className:"shrink-0 font-mono text-[10px]"}):(0,d.jsx)("span",{className:(0,C.cn)("flex shrink-0 items-center gap-1.5 font-mono text-[10px]",b),children:aj[a.status]})}function M({thread:a,roster:b,side:c,onPick:e,className:f}){return(0,d.jsx)(t.Tabs,{value:c??a.bot.name,onValueChange:b=>e(b===a.bot.name?null:String(b)),className:(0,C.cn)("shrink-0 gap-0 px-3 pt-1 pb-0.5",f),children:(0,d.jsx)(t.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:b.map(b=>{let c=N(a,b.name);return(0,d.jsxs)(t.TabsTrigger,{value:b.name,className:(0,C.cn)(ak,"pl-1.5"),children:[(0,d.jsx)(x.BotMark,{size:16,seed:b.name,color:b.icon?.color,shape:b.icon?.shape,outline:b.icon?.outline,paint:b.icon?.paint,notify:"asking"===c,className:"shrink-0"}),(0,d.jsx)("span",{className:"max-w-28 truncate",children:b.name}),"running"===c&&(0,d.jsx)(l.Loader2,{className:"size-3 animate-spin text-muted-foreground/70"})]},b.name)})})})}let ak="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 N(a,b){let{room:c}=a;return c.questions.some(a=>a.bot===b)?"asking":"working"===a.status&&c.participants.some(a=>a.bot===b&&"running"===a.state)?"running":null}function O({turn:a,thread:b,self:c}){let e=a.speaker.name===c,f=e?"none":a.speaker.name===al.name?"dark":"secondary",g=null;return(0,d.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 duration-300",children:(0,d.jsx)($,{side:e?"start":"end",name:a.speaker.name,mark:(0,d.jsx)(Y,{bot:a.speaker}),children:a.entries.map(h=>{if("work"===h.kind)return e?(0,d.jsx)(Q,{lines:h.lines,trailing:h.open,bot:a.speaker,thread:b},h.key):(0,d.jsx)(P,{lines:h.lines,trailing:h.open,bot:a.speaker,thread:b},h.key);let i=(0,E.heardBy)(h.line),j=i&&i.name!==a.speaker.name&&i.name!==c&&i.name!==al.name&&i.name!==g?i:null;return i&&(g=i.name),(0,d.jsx)(_,{line:h.line,surface:f,mention:j},h.key)})})})}function P({lines:a,trailing:b,bot:c,thread:e}){var f;let[g,h]=(0,o.useState)(!1),[i,j]=(0,o.useState)(null),k=b?N(e,c.name):null,m=(f=a,[["tool","step"],["say","note"],["stop","stop"],["note","compaction"]].map(([a,b])=>[f.filter(b=>b.kind===a).length,b]).filter(([a])=>a>0).map(([a,b])=>`${a} ${b}${1===a?"":"s"}`).join(" · ")),n=a.filter(a=>a.tool?.results!==void 0);if(!k&&!m)return null;let p=a.findLast(a=>"tool"===a.kind||"say"===a.kind),q=g&&a.length>0;return(0,d.jsxs)("div",{className:(0,C.cn)("flex min-w-0 flex-col rounded-2xl bg-muted/40 p-1",q?"w-full":"w-fit max-w-full"),children:[(0,d.jsxs)("button",{type:"button",disabled:!a.length,"aria-expanded":q,onClick:()=>{h(a=>!a),j(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"===k&&(0,d.jsx)(l.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground/60"}),k?(0,d.jsx)(s.ShinyText,{text:"asking"===k?"waiting on you":p?U(p):"working",tone:"asking"===k?"waiting":"muted",speed:2.4,className:(0,C.cn)("min-w-0 truncate text-[12px] leading-4",q&&"flex-1")}):(0,d.jsx)(S,{words:p?U(p):"",facts:[m,function(a){let b=a.flatMap(a=>a.at?[(0,A.toDate)(a.at).getTime()]:[]);if(b.length<2)return"";let c=Math.round((Math.max(...b)-Math.min(...b))/1e3);if(c<1)return"";if(c<60)return`${c}s`;let d=Math.round(c/60);return d<60?`${d} min`:`${Math.floor(d/60)}h ${d%60}m`}(a)].filter(Boolean).join(" · "),grow:q}),a.length>0&&(0,d.jsx)(T,{open:q})]}),!q&&n.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-1 px-2 pt-0.5 pb-1.5",children:n.map(a=>a.tool&&(0,d.jsx)(F.StepTile,{tool:a.tool,onOpen:()=>{j(a.id),h(!0)}},a.id))}),q&&(0,d.jsx)("div",{className:"flex min-w-0 flex-col gap-0.5 pt-0.5",children:ah(a).map(a=>"tools"===a.kind?a.lines.map(a=>a.tool&&(0,d.jsx)(F.BotTool,{tool:a.tool,threadId:e.id,collapsed:a.id!==i},a.id)):"stops"===a.kind?(0,d.jsx)("div",{className:"px-1.5 py-1",children:(0,d.jsx)(ag,{lines:a.lines})},a.key):a.lines.map(a=>(0,d.jsx)(ae,{line:a,inset:!0},a.id)))})]})}function Q({lines:a,trailing:b,bot:c,thread:e}){let f=b?N(e,c.name):null,g=a.some(a=>a.tool&&void 0===a.tool.results);return(0,d.jsxs)(d.Fragment,{children:[ah(a).map(a=>"tools"===a.kind?(0,d.jsx)(R,{lines:a.lines,threadId:e.id},a.key):"stops"===a.kind?(0,d.jsx)(ag,{lines:a.lines},a.key):a.lines.map(a=>(0,d.jsx)(ae,{line:a},a.id))),f&&!g&&(0,d.jsx)(s.ShinyText,{text:"asking"===f?"waiting on you":"on the next step…",tone:"asking"===f?"waiting":"muted",speed:2.2,className:"block px-1 font-mono text-[10px]"})]})}function R({lines:a,threadId:b}){return(0,d.jsx)("div",{className:"flex w-full flex-col gap-0.5 rounded-2xl bg-muted/40 p-1",children:a.map(a=>a.tool&&(0,d.jsx)(F.BotTool,{tool:a.tool,threadId:b,collapsed:!0},a.id))})}function S({words:a,facts:b,grow:c=!1}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:(0,C.cn)("min-w-0 truncate text-[12.5px] leading-5 text-foreground/80",c&&"flex-1"),children:a}),(0,d.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] leading-4 text-muted-foreground",children:b})]})}function T({open:a}){return(0,d.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,d.jsx)(g.ChevronDown,{className:(0,C.cn)("size-3.5 transition-transform",a&&"rotate-180")})})}function U(a){return"tool"===a.kind&&a.tool?a.tool.note??`${a.tool.name} \xb7 ${a.tool.input}`:(0,C.plainText)(a.text).replace(/\s+/g," ").trim()}function V({thread:a}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(W,{from:al,to:a.bot}),(0,d.jsx)($,{side:"end",name:al.name,mark:(0,d.jsx)(Y,{bot:al}),children:(0,d.jsx)(Z,{dark:!0,className:"py-2 pr-2 pl-3.5",children:(0,d.jsx)(q.FoldedText,{text:a.request,subject:"request",className:"wrap-anywhere"})})})]})}let al={name:D.ROOM_THURSDAY};function W({from:a,to:b}){return(0,d.jsx)("div",{className:"flex animate-in justify-center fade-in duration-300",children:(0,d.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,d.jsx)(X,{bot:a}),(0,d.jsx)("span",{className:"shrink-0 text-muted-foreground/70",children:"invited"}),(0,d.jsx)(X,{bot:b})]})})}function X({bot:a}){return(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[a.name===al.name?(0,d.jsx)(y.ThursdayMark,{size:15,className:"shrink-0"}):(0,d.jsx)(x.BotMark,{size:15,seed:a.name,color:a.icon?.color,shape:a.icon?.shape,outline:a.icon?.outline,paint:a.icon?.paint,notify:!1,className:"shrink-0"}),(0,d.jsx)("span",{className:"truncate",children:a.name})]})}function Y({bot:a}){return a.name===al.name?(0,d.jsx)(y.ThursdayMark,{size:26,className:"mt-1 shrink-0"}):(0,d.jsx)(x.BotMark,{size:26,seed:a.name,color:a.icon?.color,shape:a.icon?.shape,outline:a.icon?.outline,paint:a.icon?.paint,notify:!1,className:"mt-1 shrink-0"})}function Z({dark:a=!1,children:b,className:c}){return(0,d.jsx)(p.Bubble,{align:"end",variant:a?"default":"secondary",className:"max-w-full",children:(0,d.jsx)(p.BubbleContent,{className:(0,C.cn)("rounded-tr-md px-3.5",c),children:(0,d.jsx)("div",{className:(0,C.cn)("min-w-0",a&&"inverse"),children:b})})})}function $({side:a,mark:b,name:c,children:e}){return(0,d.jsxs)("div",{className:(0,C.cn)("flex gap-2.5","end"===a&&"flex-row-reverse"),children:[b,(0,d.jsxs)("div",{className:(0,C.cn)("flex min-w-0 flex-1 flex-col gap-1.5 [&>*+*]:max-w-[80%]","end"===a&&"items-end"),children:[(0,d.jsx)("p",{className:"max-w-[80%] truncate px-1 font-mono text-[10px] text-muted-foreground",children:c}),e]})]})}function _({line:a,surface:b,mention:c}){let e=!!a.question,f="result"===a.kind,g="none"!==b,h=(0,w.shortenPaths)(a.text),i=(0,d.jsxs)(d.Fragment,{children:[e&&(0,d.jsx)(ad,{}),c?(0,d.jsx)(ac,{bot:c,bubble:g,children:h}):(0,d.jsx)(aa,{bubble:g,className:(0,C.cn)(!f&&"leading-snug"),children:h}),(0,d.jsx)(w.Attachments,{text:a.text,onBubble:g,className:"mt-2"})]});return(0,d.jsxs)(d.Fragment,{children:[g?(0,d.jsx)(Z,{dark:"dark"===b,children:i}):(0,d.jsx)("div",{className:"min-w-0 max-w-full px-1",children:i}),a.steppedIn&&(0,d.jsxs)("p",{className:"flex items-center gap-1 px-1 font-mono text-[10px] text-muted-foreground",children:[(0,d.jsx)(k.CornerDownLeft,{className:"size-2.5"}),"stepped in"]}),f&&(0,d.jsx)("div",{className:"flex px-1",children:(0,d.jsx)(af,{text:a.text})})]})}function aa({children:a,bubble:b=!1,className:c}){return(0,d.jsx)(r.Markdown,{className:(0,C.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",b&&"[&_[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!",c),children:a})}function ab({bot:a,bubble:b}){return(0,d.jsxs)("span",{className:(0,C.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",b?"bg-background":"bg-muted"),children:[(0,d.jsx)(x.BotMark,{size:14,seed:a.name,color:a.icon?.color,shape:a.icon?.shape,outline:a.icon?.outline,paint:a.icon?.paint,notify:!1,className:"shrink-0"}),(0,d.jsx)("span",{className:"truncate",children:a.name})]})}function ac({bot:a,bubble:b,children:c}){return(0,d.jsxs)("div",{className:"min-w-0 max-w-full text-[13px] leading-snug",children:[(0,d.jsx)(ab,{bot:a,bubble:b}),(0,d.jsx)(aa,{bubble:b,className:"contents leading-snug [&>p:first-child]:inline",children:c})]})}function ad(){return(0,d.jsxs)("p",{className:"mb-1 flex items-center gap-1.5 text-[12px] leading-4 font-medium text-muted-foreground",children:[(0,d.jsx)(i.CircleQuestionMark,{className:"size-3.5 shrink-0"}),"Question"]})}function ae({line:a,inset:b=!1}){return"note"===a.kind?(0,d.jsxs)("details",{className:"w-full px-2 py-1 text-muted-foreground",children:[(0,d.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-2.5 outline-none [&::-webkit-details-marker]:hidden",children:[(0,d.jsx)("span",{className:"h-px flex-1 bg-border"}),(0,d.jsx)("span",{className:"min-w-0 text-center font-mono text-[10px]",children:"Compacted — it goes on from its summary"}),(0,d.jsx)("span",{className:"h-px flex-1 bg-border"})]}),(0,d.jsx)(aa,{className:"mt-2 rounded-xl bg-muted/40 px-3 py-2 text-[11px]",children:a.text})]}):(0,d.jsx)(aa,{className:(0,C.cn)("text-[12.5px] text-muted-foreground",b?"px-2.5 py-1":"px-1"),children:a.text})}function af({text:a}){let[b,c]=(0,o.useState)(!1),e=(0,o.useRef)(null);return(0,o.useEffect)(()=>()=>{e.current&&clearTimeout(e.current)},[]),(0,d.jsx)("button",{type:"button","aria-label":"Copy the answer",onClick:async()=>{try{await navigator.clipboard.writeText(a),c(!0),e.current&&clearTimeout(e.current),e.current=setTimeout(()=>c(!1),1400)}catch(a){u.toast.add({type:"error",title:"Could not copy the answer",description:(0,C.errorToString)(a)})}},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:b?(0,d.jsx)(f.Check,{className:"size-3"}):(0,d.jsx)(j.Copy,{className:"size-3"})})}function ag({lines:a}){return(0,d.jsxs)("details",{className:"group min-w-0 px-1 text-muted-foreground",children:[(0,d.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,d.jsx)(m.RotateCw,{className:"size-3 shrink-0"}),(0,d.jsx)("span",{className:"min-w-0 truncate",children:am(a[0].text)}),a.length>1&&(0,d.jsxs)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/70",children:["×",a.length]}),(0,d.jsx)(g.ChevronDown,{className:"size-2.5 shrink-0 text-muted-foreground/70 transition-transform group-open:rotate-180"})]}),(0,d.jsx)("div",{className:"mt-1 space-y-1 pl-4.5 text-[11px] leading-relaxed",children:a.map(a=>(0,d.jsxs)("p",{className:"flex gap-2 break-keep wrap-anywhere",children:[a.at&&(0,d.jsx)("span",{className:"shrink-0 font-mono text-muted-foreground/70 tabular-nums",children:(0,e.format)((0,A.toDate)(a.at),"HH:mm:ss")}),(0,d.jsx)("span",{className:"min-w-0",children:a.text})]},a.id))})]})}let am=a=>a.split(" (")[0].replace(/\.$/,"");function ah(a){let b=[];for(let c of a){let a="tool"===c.kind&&c.tool?"tools":"stop"===c.kind?"stops":"said",d=b.at(-1),e=d?.kind===a&&("stops"!==a||am(d.lines[0].text)===am(c.text));d&&e?d.lines.push(c):b.push({kind:a,key:c.id,lines:[c]})}return b}a.s(["Conversation",0,function({thread:a,tab:b=null,onTab:c,className:e,tabsClassName:f}){let g,h=(0,o.useRef)(null),i=(0,o.useRef)(!0),j=a.roster,k=c&&b!==a.bot.name&&j.some(a=>a.name===b)?b:null,l=k??a.bot.name,m=j.filter(b=>(!k||b.name===k)&&N(a,b.name)),n=(0,E.threadItems)((g=new Set(a.room.questions.map(a=>a.id))).size?{...a,lines:a.lines.filter(a=>!("ask"===a.kind&&void 0!==a.questionId&&g.has(a.questionId)))}:a,l,m);return(0,o.useEffect)(()=>{i.current=!0},[a.id,k]),(0,o.useEffect)(()=>{let a=h.current;a&&i.current&&(a.scrollTop=a.scrollHeight)},[a.lines,a.status,k]),(0,o.useEffect)(()=>{let a=h.current;if(!a)return;let b=new ResizeObserver(()=>{i.current&&(a.scrollTop=a.scrollHeight)});for(let c of Array.from(a.children))b.observe(c);return()=>b.disconnect()},[n.length,a.lines,k]),(0,d.jsxs)(z.FileViewer,{children:[c&&(0,d.jsx)(M,{thread:a,roster:j,side:k,onPick:c,className:f}),(0,d.jsxs)("div",{ref:h,onScroll:a=>{let b=a.currentTarget;i.current=b.scrollHeight-b.scrollTop-b.clientHeight<24},className:(0,C.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",e),children:[!k&&(0,d.jsx)(V,{thread:a}),n.map(b=>"invite"===b.kind?(0,d.jsx)(W,{from:b.from,to:b.to},b.key):(0,d.jsx)(O,{turn:b,thread:a,self:l},b.key))]})]})},"FoldButton",0,H,"TAB",0,ak,"THURSDAY",0,al,"ThreadFacts",0,I,"ThreadHeader",0,function({thread:a,onBack:b,onClose:c}){return(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-3 pb-1",children:[(0,d.jsx)("button",{type:"button",onClick:b,"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,d.jsx)(h.ChevronLeft,{className:"size-4"})}),(0,d.jsx)(x.BotMark,{size:22,seed:a.bot.name,color:a.bot.icon?.color,shape:a.bot.icon?.shape,outline:a.bot.icon?.outline,paint:a.bot.icon?.paint,notify:!1}),(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium",children:a.label}),(0,d.jsx)(I,{thread:a}),(0,d.jsx)(H,{onClick:c})]})},"leadOf",0,am,"stepOf",0,U]),c()}catch(a){c(a)}},!1),988422,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(327598),f=a.i(589027),g=a.i(707963),h=a.i(141146),i=a.i(231500),j=a.i(851528),k=a.i(875160),l=a.i(127774),m=a.i(19895),n=a.i(474215),o=a.i(572131),p=a.i(767561),q=a.i(340695),r=a.i(676504),s=a.i(613350),t=a.i(846991),u=a.i(545097),v=a.i(546893),w=a.i(563538),x=a.i(423930),y=a.i(131151),z=a.i(411509),A=a.i(913834),B=a.i(135432),C=a.i(217464),D=a.i(866460),E=a.i(332033),F=a.i(313237),G=a.i(759497),H=a.i(497895),I=b([t,D]);function J({className:a,children:b}){return(0,d.jsx)("div",{className:(0,H.cn)("flex min-w-0 flex-col gap-2.5 rounded-[18px] bg-muted py-2 pr-2 pl-3.5",a),children:b})}function K({bot:a,word:b,children:c}){return(0,d.jsxs)("div",{className:"flex min-h-7 min-w-0 items-center gap-1.5",children:[(0,d.jsx)("span",{title:a.name,className:"shrink-0 leading-none",children:(0,d.jsx)(O,{bot:a,size:16})}),(0,d.jsx)("span",{className:(0,H.cn)("truncate text-[12px] leading-4 font-medium",H.WAITING_INK),children:b}),c]})}function L({options:a,picked:b,busy:c,onChoose:e}){return(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:a.map(a=>(0,d.jsxs)(q.Button,{type:"button",size:"sm",variant:"ghost",loading:b===a,disabled:c,onClick:()=>e(a),className:"h-7 gap-1.5 rounded-full bg-background px-3 text-[12.5px] hover:bg-background/60 dark:hover:bg-background/60",children:[a===z.THREAD_CONTINUE&&b!==a&&(0,d.jsx)(i.ChevronsRight,{className:"size-3.5 text-muted-foreground"}),a]},a))})}function M({threadId:a,recipient:b,draftKey:c,send:f,busy:g,placeholder:h,label:i,autoFocus:j=!1,onEscape:m,leading:n,trailing:p,className:r}){let[s,t]=(0,o.useState)(()=>B.threadDrafts.get(a,b,c)),[u,w]=(0,o.useState)(!1),x=d=>{t(d),B.threadDrafts.set(a,b,d,c)},y=(0,D.useGivenFiles)(),z=(0,o.useRef)(null),{take:A}=y;(0,o.useEffect)(()=>D.roomDrop.claim(a=>void A(a)),[A]);let C=!!s.trim()&&!g&&!y.arriving,F=async()=>{C&&(w(!0),await f(y.withPaths(s))&&(x(""),y.clear()),w(!1))};return(0,d.jsxs)("form",{onSubmit:a=>{a.preventDefault(),F()},className:(0,H.cn)("flex min-w-0 flex-wrap items-end gap-1",r),children:[y.files.length>0&&(0,d.jsx)(D.GivenFiles,{dense:!0,files:y.files,onRemove:y.remove,className:"w-full pb-1"}),n,(0,d.jsx)(v.Textarea,{value:s,rows:1,disabled:g,autoFocus:j,onChange:a=>x(a.target.value),onPaste:a=>{let b=[...a.clipboardData.files];b.length&&(a.preventDefault(),A(b))},onKeyDown:a=>{let b=(0,E.composing)(a);if("Escape"===a.key&&m&&!b){a.preventDefault(),m();return}"Enter"!==a.key||a.shiftKey||b||(a.preventDefault(),F())},placeholder:h,"aria-label":i,className:"max-h-32 min-h-0 min-w-0 flex-1 resize-none border-0 bg-transparent px-0 py-1 text-[13px] leading-5 shadow-none focus-visible:ring-0 dark:bg-transparent"}),(0,d.jsx)("input",{ref:z,type:"file",multiple:!0,hidden:!0,onChange:a=>{A([...a.target.files??[]]),a.target.value=""}}),(0,d.jsx)(q.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:g,"aria-label":"Add files",onClick:()=>z.current?.click(),className:"rounded-full text-muted-foreground",children:(0,d.jsx)(l.Paperclip,{})}),p,(0,d.jsx)(q.Button,{type:"submit",size:"icon-sm",variant:C?"default":"ghost",disabled:!C,"aria-label":"Send",className:"rounded-full",children:u?(0,d.jsx)(k.Loader2,{className:"animate-spin"}):(0,d.jsx)(e.ArrowUp,{})})]})}function N({current:a,bots:b,disabled:c,onPick:e}){return(0,d.jsxs)(r.DropdownMenu,{children:[(0,d.jsxs)(r.DropdownMenuTrigger,{render:(0,d.jsx)("button",{type:"button",disabled:c,"aria-label":`Message ${a.name}; choose another bot`,className:"mt-1 inline-flex h-5 shrink-0 items-center gap-1 self-start rounded-full bg-muted pr-1.5 pl-[3px] text-[12px] leading-none font-medium outline-none transition-colors hover:bg-muted-foreground/15 focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50"}),children:[(0,d.jsx)("span",{className:"pl-1 text-muted-foreground",children:"To"}),(0,d.jsx)(O,{bot:a,size:14}),(0,d.jsx)("span",{className:"max-w-32 truncate",children:a.name}),(0,d.jsx)(f.ChevronDown,{className:"size-3 shrink-0 text-muted-foreground"})]}),(0,d.jsx)(r.DropdownMenuContent,{align:"start",children:(0,d.jsx)(r.DropdownMenuGroup,{children:b.map(a=>(0,d.jsxs)(r.DropdownMenuItem,{onClick:()=>e(a.name),children:[(0,d.jsx)(O,{bot:a,size:16}),a.name]},a.name))})})]})}function O({bot:a,size:b}){return(0,d.jsx)(A.BotMark,{size:b,seed:a.name,color:a.icon?.color,shape:a.icon?.shape,outline:a.icon?.outline,paint:a.icon?.paint,notify:!1,className:"shrink-0"})}function P(){let[a,b]=(0,F.useServerAction)(w.answerThreadAction,{onOk:()=>(0,G.revalidate)(p.queryKey.threads)});return[async(b,c,d,e)=>{let f=c.trim();if(!f)return!1;try{let c=await a(b.id,f,d,e);return B.screenActs.announce({kind:"answered",id:c.id,label:c.label,answer:f,recipient:d,replyTo:e}),!0}catch{return!1}},b]}[t,D]=I.then?(await I)():I,a.s(["ThreadReply",0,function({thread:a,status:b,faces:c=[],to:e=null,className:f}){let[i,l]=(0,o.useState)(),[r,v]=(0,o.useState)(()=>B.threadDrafts.recipient(a.id)??a.bot),[w,A]=(0,o.useState)(!1),[D,E]=(0,o.useState)(null),[I,O]=(0,o.useState)({id:a.id,bot:a.bot});(I.id!==a.id||I.bot!==a.bot)&&(O({id:a.id,bot:a.bot}),v(B.threadDrafts.recipient(a.id)??a.bot),l(void 0),A(!1)),(0,o.useEffect)(()=>{e&&(B.threadDrafts.select(a.id,e),v(e))},[a.id,e]);let Q=a.room.participants,R=a.room.questions,S=Math.max(0,R.findIndex(a=>a.id===i)),T=R[S],U="waiting"===b?a.ask:null,V=(0,z.isAppStop)(U),W=T?.bot??(Q.some(a=>a.bot===r)?r:a.bot),X=T?.id,[Y,Z]=P(),[$,_]=(0,F.useServerAction)(x.cancelThreadAction,{onOk:a=>{(0,G.revalidate)(p.queryKey.threads),B.screenActs.announce({kind:"stopped",id:a.id,label:a.label})}}),aa=Z||_,ab=a.room.deliveries.filter(a=>!a.delivered),[ac,ad]=(0,F.useServerAction)(y.withdrawStepInAction,{onOk:()=>(0,G.revalidate)(p.queryKey.threads)}),ae=ab.map(a=>`${a.bot}: ${a.text}`).join(" · "),af=Q.filter(a=>"running"===a.state).map(a=>a.bot),ag=af.join(", ")||a.bot,ah="running"===b&&Q.some(a=>a.bot===W&&("running"===a.state||"queued"===a.state)),ai="running"===b&&!ah,aj=W!==a.bot,ak=a=>c.find(b=>b.name===a)??{name:a},al=async b=>{if(aa)return!1;let c=await Y(a,b,W,X);return c&&ah&&A(!1),c},am=async a=>{E(a),await al(a),E(null)},an=(c=!1)=>"running"===b||"waiting"===b?(0,d.jsxs)(q.Button,{type:"button",size:"sm",variant:"ghost",loading:_,disabled:aa,onClick:()=>$(a.id),"aria-label":"Stop this thread",className:(0,H.cn)("h-7 shrink-0 gap-1.5 rounded-full px-2.5 text-[12px]",c&&"bg-background px-3 hover:bg-background/60 dark:hover:bg-background/60"),children:[!_&&(0,d.jsx)(m.Square,{className:"size-2.5 fill-current"}),"Stop"]}):null;if(T){let b=T.options??[],c=T.text;return(0,d.jsxs)(J,{className:f,children:[(0,d.jsx)(K,{bot:ak(W),word:"Question",children:(0,d.jsxs)("span",{className:"ml-auto flex shrink-0 items-center gap-1.5",children:[R.length>1&&(0,d.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,d.jsx)(q.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Previous question",disabled:aa||0===S,onClick:()=>l(R[S-1].id),children:(0,d.jsx)(g.ChevronLeft,{})}),(0,d.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground tabular-nums","aria-live":"polite",children:[S+1," / ",R.length]}),(0,d.jsx)(q.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Next question",disabled:aa||S===R.length-1,onClick:()=>l(R[S+1].id),children:(0,d.jsx)(h.ChevronRight,{})})]}),an(!0)]})}),c&&(0,d.jsx)("div",{className:"max-h-[min(14rem,30vh)] min-w-0 overflow-y-auto overscroll-contain pr-1.5",children:(0,d.jsx)(t.Markdown,{className:"min-w-0 text-[13px] leading-snug wrap-anywhere break-keep [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:c})}),b.length>0&&(0,d.jsx)(L,{options:b,picked:D,busy:aa,onChoose:am}),(0,d.jsx)(C.SignInAsk,{bot:W,onAllowed:al}),(0,d.jsx)(M,{threadId:a.id,recipient:W,draftKey:T.id,send:al,busy:aa,placeholder:b.length?"Or write your own answer…":"Your answer…",label:`Answer for ${W}`},JSON.stringify([a.id,W,T.id]))]})}return V?(0,d.jsxs)(J,{className:f,children:[(0,d.jsx)(K,{bot:ak(a.bot),word:"Paused",children:(0,d.jsx)("span",{className:"ml-auto flex shrink-0",children:an(!0)})}),U?.question&&(0,d.jsx)(s.FoldedText,{text:U.question,subject:"message",clamp:"line-clamp-3",tall:"max-h-40"}),(0,d.jsx)(L,{options:U?.options.length?U.options:[z.THREAD_CONTINUE],picked:D,busy:aa,onChoose:am}),(0,d.jsx)(M,{threadId:a.id,recipient:W,send:al,busy:aa,placeholder:"Or put it another way…",label:`Message for ${W}`},JSON.stringify([a.id,W,"paused"]))]}):ah&&!w?(0,d.jsxs)("div",{className:(0,H.cn)("flex min-w-0 flex-col rounded-2xl bg-muted/40 ring-1 ring-border/50",f),children:[ab.map(b=>(0,d.jsxs)("div",{className:"flex items-start gap-2 border-border/60 border-b py-2.5 pr-1.5 pl-3.5",children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,d.jsxs)("p",{className:"flex min-w-0 items-center gap-1.5 font-mono text-[10px] leading-4",children:[(0,d.jsx)(k.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"}),(0,d.jsx)(u.ShinyText,{text:`Step-in \xb7 waits for ${b.bot}'s next step`,speed:2.2,className:"min-w-0 truncate"})]}),(0,d.jsx)("p",{className:"whitespace-pre-wrap break-keep wrap-anywhere text-[13px] leading-snug",children:b.text})]}),(0,d.jsx)(q.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:ad,onClick:()=>ac(a.id,b.id),"aria-label":"Take it back",className:"shrink-0 text-muted-foreground/60 hover:text-foreground",children:(0,d.jsx)(n.X,{})})]},b.id)),(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-2 py-1.5 pr-1.5 pl-3.5",children:[(0,d.jsx)(u.ShinyText,{text:`${ag} \xb7 Working`,speed:2.4,className:"min-w-0 flex-1 truncate text-[12.5px] leading-5 break-keep"}),(0,d.jsxs)(q.Button,{type:"button",size:"sm",variant:"ghost",disabled:aa,onClick:()=>A(!0),className:"h-7 shrink-0 gap-1.5 rounded-full px-2.5 text-[12px]",children:[(0,d.jsx)(j.CornerDownLeft,{className:"size-3.5"}),"Step in"]}),(0,d.jsx)("span",{className:"h-4 w-px shrink-0 bg-border"}),an()]})]}):(0,d.jsxs)("div",{className:(0,H.cn)("flex min-w-0 flex-col gap-1.5",f),children:[ai&&(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-2 pr-1.5 pl-3.5",children:[(0,d.jsxs)("p",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-[12.5px] leading-5",children:[(0,d.jsxs)("span",{className:"shrink-0 text-muted-foreground",children:[W," is idle"]}),af.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"shrink-0 text-muted-foreground/50",children:"·"}),(0,d.jsx)(u.ShinyText,{text:`${af.join(", ")} working`,speed:2.4,className:"min-w-0 truncate"})]})]}),(0,d.jsx)("span",{className:"h-4 w-px shrink-0 bg-border"}),an()]}),(0,d.jsx)(M,{threadId:a.id,recipient:W,send:al,busy:aa,autoFocus:ah,onEscape:ah?()=>A(!1):void 0,placeholder:ah?`What's off? ${W} reads this before its next step`:ai?`Anything for ${W}? It starts again as soon as you send`:"Anything more? It picks up where it left off",label:`Message for ${W}`,className:"rounded-2xl bg-background py-1.5 pr-1.5 pl-3.5 ring-1 ring-border/80 transition-shadow focus-within:ring-ring/60",leading:Q.length>1?(0,d.jsx)(N,{current:ak(W),bots:Q.map(a=>ak(a.bot)),disabled:aa,onPick:b=>{B.threadDrafts.select(a.id,b),v(b)}}):null,trailing:ah?(0,d.jsx)(q.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:aa,onClick:()=>A(!1),"aria-label":"Never mind",className:"text-muted-foreground",children:(0,d.jsx)(n.X,{})}):null},JSON.stringify([a.id,W])),aj&&(0,d.jsxs)("p",{className:"min-w-0 truncate px-1 text-xs text-muted-foreground",children:[W,"’s answer goes back to ",a.bot]}),!!ae&&!ah&&(0,d.jsxs)("p",{className:"flex min-w-0 items-center gap-2 px-1 text-xs text-muted-foreground",children:[(0,d.jsx)(k.Loader2,{className:"size-3 shrink-0 animate-spin"}),(0,d.jsxs)("span",{className:"truncate",children:["Sending to ",ae]})]})]})},"useAnswerThread",0,P]),c()}catch(a){c(a)}},!1),563538,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f47dfbb47ded1fb60912bd60356cca8e423ee1475",b.callServer,void 0,b.findSourceMapURL,"answerThreadAction");a.s(["answerThreadAction",0,c])},131151,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7fc63176d80d9e8976385c79b5d8e8b9de3dc517f7",b.callServer,void 0,b.findSourceMapURL,"withdrawStepInAction");a.s(["withdrawStepInAction",0,c])},423930,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f0c5b3e04521fcdcc4d2e61574ad09b7240b5c856",b.callServer,void 0,b.findSourceMapURL,"cancelThreadAction");a.s(["cancelThreadAction",0,c])},341195,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7fa811dfc7103cf026174da99a0cfa1fe79c472f3b",b.callServer,void 0,b.findSourceMapURL,"compactThreadAction");a.s(["compactThreadAction",0,c])},217464,a=>{"use strict";var b=a.i(187924),c=a.i(767561),d=a.i(340695),e=a.i(313237),f=a.i(759497),g=a.i(124819);a.s(["SignInAsk",0,function({bot:a,onAllowed:h}){let{data:i}=(0,f.useServerRoute)(c.queryKey.signIns),[j,k]=(0,e.useServerAction)(g.setSignInBotAction,{onOk:()=>(0,f.revalidate)(c.queryKey.signIns)}),l=(i??[]).filter(b=>b.asking.includes(a));return l.length?(0,b.jsx)("div",{className:"flex flex-wrap gap-1.5",children:l.map(c=>(0,b.jsxs)(d.Button,{type:"button",size:"sm",loading:k,onClick:()=>void j(c.site,a,!0).then(()=>h(`Yes — you may use my ${c.site} sign-in.`)).catch(()=>{}),children:["Let ",a," use ",c.site," (",c.account,")"]},c.site))}):null}])},866460,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(875160),f=a.i(474215),g=a.i(572131),h=a.i(864037),i=a.i(287702),j=a.i(38793),k=a.i(396068),l=a.i(313237),m=a.i(497895),n=b([j]);[j]=n.then?(await n)():n;let o=null;a.s(["GivenFiles",0,function({files:a,onRemove:b,dense:c=!1,children:g,className:h}){let i=c?"size-8 rounded-lg":"size-10 rounded-[9px]";return(0,d.jsxs)("div",{className:(0,m.cn)("flex flex-wrap gap-1.5",h),children:[a.map(a=>{let g;return(0,d.jsxs)("span",{className:(0,m.cn)("flex max-w-64 items-center bg-muted/70",c?"h-10.5 gap-2 rounded-xl py-1 pr-1.5 pl-1":"h-13 gap-2.5 rounded-[14px] py-1.5 pr-2 pl-1.5"),children:[a.path?(0,d.jsx)(j.FileThumb,{path:a.path,bytes:a.bytes,className:(0,m.cn)("shrink-0 overflow-hidden ring-1 ring-foreground/6",i)}):(0,d.jsx)("span",{className:(0,m.cn)("grid shrink-0 place-items-center bg-background text-muted-foreground ring-1 ring-foreground/6",i),children:(0,d.jsx)(e.Loader2,{className:"size-3.5 animate-spin"})}),(0,d.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,d.jsx)("span",{className:(0,m.cn)("truncate",c?"text-xs leading-4":"text-[12.5px] leading-4.5"),children:a.name}),(0,d.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[(g=a.bytes)<1048576?`${Math.max(1,Math.round(g/1024))} KB`:`${(g/1024/1024).toFixed(1)} MB`,a.note&&` \xb7 ${a.note}`]})]}),(0,d.jsx)("button",{type:"button","aria-label":`Take ${a.name} out`,onClick:()=>b(a.key),className:"grid size-5 shrink-0 place-items-center rounded-full text-muted-foreground outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,d.jsx)(f.X,{className:"size-3.5"})})]},a.key)}),g]})},"roomDrop",0,{claim:a=>(o=a,()=>{o===a&&(o=null)}),offer:(a,b)=>!!o&&!!a?.closest?.("[data-room]")&&(o(b),!0)},"useGivenFiles",0,function(a){let b=(0,g.useRef)(a?.onKept);b.current=a?.onKept;let[c,d]=(0,g.useState)([]),[e]=(0,l.useServerAction)(k.giveFilesAction),f=(0,g.useCallback)(async a=>{let f=i.GIVEN_FILES.perMessage-c.length;a.length>f&&h.toast.add({type:"error",title:`At most ${i.GIVEN_FILES.perMessage} files at a time.`});let g=a.slice(0,Math.max(0,f));if(!g.length)return;let j=g.map(a=>({key:crypto.randomUUID(),name:a.name,bytes:a.size,path:null}));d(a=>[...a,...j]);let k=new FormData;for(let a of g)k.append("file",a);try{let a=await e(k),c=b.current?.(a);d(b=>b.map(b=>{let d=j.findIndex(a=>a.key===b.key);return d<0?b:{...b,path:a[d]??null,note:c}}))}catch{d(a=>a.filter(a=>!j.some(b=>b.key===a.key)))}},[c.length,e]);return{files:c,take:f,remove:a=>d(b=>b.filter(b=>b.key!==a)),clear:()=>d([]),arriving:c.some(a=>null===a.path),withPaths:a=>[a.trim(),...c.flatMap(a=>a.path??[])].filter(Boolean).join("\n")}}]),c()}catch(a){c(a)}},!1),396068,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7fed114f2d90f6aa4d4abd2e2b14e227edce09a1f4",b.callServer,void 0,b.findSourceMapURL,"giveFilesAction");a.s(["giveFilesAction",0,c])},231500,a=>{"use strict";var b=a.i(164831);let c={name:"chevrons-right",size:24,node:[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]};c.node;let d=(0,b.default)(c);a.s(["ChevronsRight",0,d],231500)},802550,a=>{"use strict";var b=a.i(164831);let c={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"]};c.node;let d=(0,b.default)(c);a.s(["CircleQuestionMark",0,d],802550)},851528,a=>{"use strict";var b=a.i(164831);let c={name:"corner-down-left",size:24,node:[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]]};c.node;let d=(0,b.default)(c);a.s(["CornerDownLeft",0,d],851528)},127774,a=>{"use strict";var b=a.i(164831);let c={name:"paperclip",size:24,node:[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]};c.node;let d=(0,b.default)(c);a.s(["Paperclip",0,d],127774)},748819,a=>{"use strict";var b=a.i(164831);let c={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"}]]};c.node;let d=(0,b.default)(c);a.s(["RotateCw",0,d],748819)},19895,a=>{"use strict";var b=a.i(164831);let c={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};c.node;let d=(0,b.default)(c);a.s(["Square",0,d],19895)}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=_00g5sq-._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[436788,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_0l1-xc6._.js"].map(b=>a.l(b))).then(()=>b(964665)))},348436,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_0-ou1b0._.js","server/chunks/ssr/_0y28gl3._.js"].map(b=>a.l(b))).then(()=>b(581662)))},315458,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1v93o68._.js","server/chunks/ssr/features_bot_1k25jdg._.js"].map(b=>a.l(b))).then(()=>b(82951)))},228887,a=>{a.v(a=>Promise.resolve().then(()=>a(405593)))},930209,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1whffg_._.js","server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js"].map(b=>a.l(b))).then(()=>b(26444)))},277297,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1tih-7v._.js","server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js"].map(b=>a.l(b))).then(()=>b(857022)))},553433,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0zxr5sz._.js","server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js"].map(b=>a.l(b))).then(()=>b(41014)))},15022,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1neoj22._.js"].map(b=>a.l(b))).then(()=>b(109788)))},479648,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1scosxl._.js","server/chunks/ssr/_1g48r6t._.js"].map(b=>a.l(b))).then(()=>b(703228)))},502073,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_trash_mjs_0px2gzr._.js","server/chunks/ssr/_1dqaksc._.js"].map(b=>a.l(b))).then(()=>b(922056)))},895186,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1u5vsy-._.js"].map(b=>a.l(b))).then(()=>b(901729)))},72597,a=>{a.v(a=>Promise.resolve().then(()=>a(809750)))},628472,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@vercel_oidc_dist_token_1mnivwk.js"].map(b=>a.l(b))).then(()=>b(779476)))},715837,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_node_readline_1u65a-m._.js","server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_05cwqv2._.js"].map(b=>a.l(b))).then(()=>b(270101)))},992025,a=>{a.v(a=>Promise.resolve().then(()=>a(948986)))},929490,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0ld7p-1._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(161868)))},969267,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0etz1i0._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1feyqvf._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0arohj6._.js","server/chunks/ssr/node_modules_11trqmi._.js"].map(b=>a.l(b))).then(()=>b(626047)))},784520,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0qwth-_._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-I7D4REHJ_mjs_0qg1lr5._.js"].map(b=>a.l(b))).then(()=>b(155638)))},613707,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-F27PBJKO_mjs_0ms0zmb._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-7LVT6UL2_mjs_06bhe3-._.js"].map(b=>a.l(b))).then(()=>b(557384)))},854712,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1v463pe._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js"].map(b=>a.l(b))).then(()=>b(336243)))},892569,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0thh8pk._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js"].map(b=>a.l(b))).then(()=>b(538994)))},989520,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1nl12mt._.js","server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0arohj6._.js"].map(b=>a.l(b))).then(()=>b(127273)))},388833,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_097cl9f._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(517237)))},390118,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_dagre-GXQ25YYZ_mjs_0k_lz8d._.js","server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js"].map(b=>a.l(b))).then(()=>b(920028)))},831868,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0mark4f._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0eji647._.js"].map(b=>a.l(b))).then(()=>b(767190)))},840309,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0n1js5k._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(464445)))},835410,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1xua-g1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(617803)))},728413,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0-ew8f8._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-VX7I27RA_mjs_0dl8gzm._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_13hksv_._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(217755)))},992149,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1o9n7_n._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(752425)))},70220,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0y5uubt._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(137554)))},595386,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0il0v7d._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-RLTQ6QDP_mjs_18g60i7._.js"].map(b=>a.l(b))).then(()=>b(239909)))},707604,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0ql0igl._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js"].map(b=>a.l(b))).then(()=>b(1258)))},598518,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1831lye._.js","server/chunks/ssr/node_modules_1_d0q_7._.js"].map(b=>a.l(b))).then(()=>b(722966)))},126571,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_138kcrz._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0dlpxwr._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-WWUBYQGX_mjs_0g15hiw._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(349834)))},814636,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1dzye0n._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1ok0411._.js"].map(b=>a.l(b))).then(()=>b(525902)))},147136,a=>{a.v(b=>Promise.all(["server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-5VMMS53U_mjs_05o2e4d._.js"].map(b=>a.l(b))).then(()=>b(206340)))},719552,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_201yvda._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-3NMN7TZE_mjs_16ehrbl._.js"].map(b=>a.l(b))).then(()=>b(450754)))},653408,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5VM5RSS4_mjs_0tg6kya._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UXKFOSKX_mjs_1uiqd5g._.js"].map(b=>a.l(b))).then(()=>b(301315)))},165250,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1turj0n._.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_mindmap-definition-YA3MSWOX_mjs_19k8byt._.js"].map(b=>a.l(b))).then(()=>b(790158)))},325455,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0-8r9yw._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(595628)))},934650,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_133hjui._.js","server/chunks/ssr/node_modules_1rg7lj4._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1sgfrma._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(748116)))},389088,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_111pp7w._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-AXDQQJYC_mjs_0h4a9wq._.js"].map(b=>a.l(b))).then(()=>b(888630)))},523431,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0bas34k._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(846881)))},458290,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1turj0n._.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_requirementDiagram-BXWQKSXE_mjs_0kwiv6n._.js"].map(b=>a.l(b))).then(()=>b(443250)))},215730,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_d3-scale_src_1tr1qwb._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-P5KCCOFB_mjs_187yyta._.js"].map(b=>a.l(b))).then(()=>b(656950)))},295724,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1o1kg4c._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-WJ2MYXX4_mjs_1n01m3a._.js"].map(b=>a.l(b))).then(()=>b(571979)))},482052,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-INFHLROL_mjs_179zv_p._.js"].map(b=>a.l(b))).then(()=>b(865684)))},438231,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1rxlz7e._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-D77RDMKH_mjs_1mer5fv._.js","server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js"].map(b=>a.l(b))).then(()=>b(168538)))},991687,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0jkhu0x._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js"].map(b=>a.l(b))).then(()=>b(472309)))},860094,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_swimlanes-42K2YHIH_mjs_0scuk32._.js"].map(b=>a.l(b))).then(()=>b(827033)))},819980,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_04f6p6a._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js"].map(b=>a.l(b))).then(()=>b(1471)))},623969,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_d3-shape_src_arc_1-w13bo.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_timeline-definition-24CTP7MA_mjs_10dmaxt._.js"].map(b=>a.l(b))).then(()=>b(301394)))},788557,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-4TSXK5OY_mjs_0anqu7y._.js"].map(b=>a.l(b))).then(()=>b(509170)))},925161,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0etz1i0._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-VM6X3IG4_mjs_0kh3fjb._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_17wxxyr._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(914844)))},506751,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0xht9wg._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-S5SC5T6Z_mjs_08t5e44._.js"].map(b=>a.l(b))).then(()=>b(176947)))},236914,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_streamdown_dist_highlighted-body-KPVGNVTW_1fnf894.js"].map(b=>a.l(b))).then(()=>b(391282)))},172487,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_streamdown_dist_mermaid-HWGCJPDP_093xi20.js"].map(b=>a.l(b))).then(()=>b(853409)))}];
|
|
1
|
+
module.exports=[436788,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_06xy39t._.js"].map(b=>a.l(b))).then(()=>b(964665)))},348436,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_0-i6wdi._.js","server/chunks/ssr/_1swhm5m._.js"].map(b=>a.l(b))).then(()=>b(581662)))},315458,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1v93o68._.js","server/chunks/ssr/features_bot_0j4h9qu._.js"].map(b=>a.l(b))).then(()=>b(82951)))},228887,a=>{a.v(a=>Promise.resolve().then(()=>a(405593)))},930209,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1whffg_._.js","server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js"].map(b=>a.l(b))).then(()=>b(26444)))},277297,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1tih-7v._.js","server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js"].map(b=>a.l(b))).then(()=>b(857022)))},553433,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0zxr5sz._.js","server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js"].map(b=>a.l(b))).then(()=>b(41014)))},15022,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1neoj22._.js"].map(b=>a.l(b))).then(()=>b(109788)))},479648,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1scosxl._.js","server/chunks/ssr/_12p8f9_._.js"].map(b=>a.l(b))).then(()=>b(703228)))},502073,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_trash_mjs_0px2gzr._.js","server/chunks/ssr/_0sefgiu._.js"].map(b=>a.l(b))).then(()=>b(922056)))},895186,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1wac78_._.js"].map(b=>a.l(b))).then(()=>b(901729)))},72597,a=>{a.v(a=>Promise.resolve().then(()=>a(809750)))},628472,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@vercel_oidc_dist_token_1mnivwk.js"].map(b=>a.l(b))).then(()=>b(779476)))},715837,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_node_readline_1u65a-m._.js","server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_05cwqv2._.js"].map(b=>a.l(b))).then(()=>b(270101)))},992025,a=>{a.v(a=>Promise.resolve().then(()=>a(948986)))},929490,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1mhg5br._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(161868)))},969267,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0nl9i29._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1feyqvf._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0arohj6._.js","server/chunks/ssr/node_modules_11trqmi._.js"].map(b=>a.l(b))).then(()=>b(626047)))},784520,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0qwth-_._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-I7D4REHJ_mjs_0qg1lr5._.js"].map(b=>a.l(b))).then(()=>b(155638)))},613707,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-F27PBJKO_mjs_0ms0zmb._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-7LVT6UL2_mjs_06bhe3-._.js"].map(b=>a.l(b))).then(()=>b(557384)))},854712,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1v463pe._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js"].map(b=>a.l(b))).then(()=>b(336243)))},892569,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0thh8pk._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js"].map(b=>a.l(b))).then(()=>b(538994)))},989520,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1nl12mt._.js","server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0arohj6._.js"].map(b=>a.l(b))).then(()=>b(127273)))},388833,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0kg-vd-._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(517237)))},390118,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_dagre-GXQ25YYZ_mjs_0k_lz8d._.js","server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js"].map(b=>a.l(b))).then(()=>b(920028)))},831868,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_15vsfpv._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0eji647._.js"].map(b=>a.l(b))).then(()=>b(767190)))},840309,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0ft86sp._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(464445)))},835410,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0y5upun._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(617803)))},728413,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1aeg65a._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-VX7I27RA_mjs_0dl8gzm._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_13hksv_._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(217755)))},992149,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1mqisle._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(752425)))},70220,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1va4lz9._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(137554)))},595386,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0il0v7d._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-RLTQ6QDP_mjs_18g60i7._.js"].map(b=>a.l(b))).then(()=>b(239909)))},707604,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0ql0igl._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js"].map(b=>a.l(b))).then(()=>b(1258)))},598518,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1831lye._.js","server/chunks/ssr/node_modules_1_d0q_7._.js"].map(b=>a.l(b))).then(()=>b(722966)))},126571,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_00kqq8n._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0dlpxwr._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-WWUBYQGX_mjs_0g15hiw._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(349834)))},814636,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0vg-4fo._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1ok0411._.js"].map(b=>a.l(b))).then(()=>b(525902)))},147136,a=>{a.v(b=>Promise.all(["server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-5VMMS53U_mjs_05o2e4d._.js"].map(b=>a.l(b))).then(()=>b(206340)))},719552,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_201yvda._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-3NMN7TZE_mjs_16ehrbl._.js"].map(b=>a.l(b))).then(()=>b(450754)))},653408,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5VM5RSS4_mjs_0tg6kya._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UXKFOSKX_mjs_1uiqd5g._.js"].map(b=>a.l(b))).then(()=>b(301315)))},165250,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1turj0n._.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_mindmap-definition-YA3MSWOX_mjs_19k8byt._.js"].map(b=>a.l(b))).then(()=>b(790158)))},325455,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0pyepmf._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(595628)))},934650,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1uuvrfp._.js","server/chunks/ssr/node_modules_1rg7lj4._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1sgfrma._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(748116)))},389088,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_111pp7w._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-AXDQQJYC_mjs_0h4a9wq._.js"].map(b=>a.l(b))).then(()=>b(888630)))},523431,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_06rkzq5._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(846881)))},458290,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1turj0n._.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_requirementDiagram-BXWQKSXE_mjs_0kwiv6n._.js"].map(b=>a.l(b))).then(()=>b(443250)))},215730,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_d3-scale_src_1tr1qwb._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-P5KCCOFB_mjs_187yyta._.js"].map(b=>a.l(b))).then(()=>b(656950)))},295724,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1o1kg4c._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-WJ2MYXX4_mjs_1n01m3a._.js"].map(b=>a.l(b))).then(()=>b(571979)))},482052,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-INFHLROL_mjs_179zv_p._.js"].map(b=>a.l(b))).then(()=>b(865684)))},438231,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1rxlz7e._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-D77RDMKH_mjs_1mer5fv._.js","server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js"].map(b=>a.l(b))).then(()=>b(168538)))},991687,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0jkhu0x._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js"].map(b=>a.l(b))).then(()=>b(472309)))},860094,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_swimlanes-42K2YHIH_mjs_0scuk32._.js"].map(b=>a.l(b))).then(()=>b(827033)))},819980,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_04f6p6a._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js"].map(b=>a.l(b))).then(()=>b(1471)))},623969,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_d3-shape_src_arc_1-w13bo.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_timeline-definition-24CTP7MA_mjs_10dmaxt._.js"].map(b=>a.l(b))).then(()=>b(301394)))},788557,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-4TSXK5OY_mjs_0anqu7y._.js"].map(b=>a.l(b))).then(()=>b(509170)))},925161,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0nl9i29._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-VM6X3IG4_mjs_0kh3fjb._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_17wxxyr._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(914844)))},506751,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0xht9wg._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-S5SC5T6Z_mjs_08t5e44._.js"].map(b=>a.l(b))).then(()=>b(176947)))},236914,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_streamdown_dist_highlighted-body-KPVGNVTW_1fnf894.js"].map(b=>a.l(b))).then(()=>b(391282)))},172487,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_streamdown_dist_mermaid-HWGCJPDP_093xi20.js"].map(b=>a.l(b))).then(()=>b(853409)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=_03akcjz._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[964665,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(707963),f=a.i(168370),g=a.i(844561),h=a.i(595775),i=a.i(951675),j=a.i(572131),k=a.i(767561),l=a.i(340695),m=a.i(446181),n=a.i(950463),o=a.i(287702),p=a.i(308673),q=a.i(913834),r=a.i(619477),s=a.i(38793),t=a.i(369768),u=a.i(113778),v=a.i(199169),w=a.i(313237),x=a.i(759497),y=a.i(497895),z=b([s,t]);function A(a){let b=new Map;for(let c of a){let a=b.get(c.bot)??[];a.push(c),b.set(c.bot,a)}return[...b].map(([a,b])=>({bot:a,rows:b}))}function B({label:a,mark:b,count:c,active:e,onPick:f}){return(0,d.jsxs)("button",{type:"button",onClick:f,className:(0,y.cn)("mx-2 flex h-9 items-center gap-2 rounded-md px-2 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",e?(0,y.cn)(r.PICKED_ROW,"font-medium"):"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[b??(0,d.jsx)(h.Images,{className:"size-4 shrink-0"}),(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate",children:a}),(0,d.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] text-muted-foreground/70 tabular-nums",children:c})]})}function C({row:a,file:b,onOpen:c,onBack:h,onGone:j,onShelf:n}){let[o]=(0,w.useServerAction)(u.revealFileAction),[q,r]=(0,w.useServerAction)(p.deleteArtifactAction,{okMessage:"Deleted",onOk:()=>{(0,x.revalidate)(k.queryKey.artifacts),b?h():j()}}),s=b?{path:b.path,bytes:b.bytes,at:b.at}:"file"===a.kind?{path:a.path,bytes:a.bytes,at:a.at}:null,z=async a=>{await m.notify.confirm({title:`Delete ${a.split("/").pop()}?`,description:s?"It is deleted from disk for good.":"The folder and everything in it are deleted from disk for good.",okText:"Delete",destructive:!0})&&q(a)};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-3 border-b border-border/60 px-6",children:[(0,d.jsxs)("button",{type:"button",onClick:b?h:n,className:"-ml-1 flex shrink-0 items-center gap-1 rounded-md px-1.5 py-1 font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,d.jsx)(e.ChevronLeft,{className:"size-3"}),b?a.name:"Shelf"]}),(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-foreground",children:s?s.path.split("/").pop()??a.name:a.name}),(0,d.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:s?`${(0,y.formatBytes)(s.bytes)} \xb7 ${(0,v.shortAgo)(s.at)}`:`${a.count} ${1===a.count?"file":"files"} \xb7 ${(0,v.shortAgo)(a.at)}`}),s&&(0,d.jsx)("a",{href:k.queryKey.fileView(s.path),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,d.jsx)(f.ExternalLink,{className:"size-4"})}),(0,d.jsx)(l.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>o(s?.path??a.path),children:(0,d.jsx)(g.FolderOpen,{})}),(0,d.jsx)(l.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:r,className:"ml-1.5 text-muted-foreground hover:text-destructive",onClick:()=>z(s?.path??a.path),children:(0,d.jsx)(i.Trash2,{})})]}),(0,d.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:s?(0,d.jsx)(t.FilePreview,{path:s.path,bytes:s.bytes}):(0,d.jsx)(D,{path:a.path,onOpen:c})})]})}function D({path:a,onOpen:b}){let{data:c,isLoading:e,error:f}=(0,x.useServerRoute)(k.queryKey.artifactSet(a,o.ARTIFACT_VIEW.setFiles));if(e)return(0,d.jsx)("div",{className:"grid grid-cols-4 gap-3 p-5",children:Array.from({length:8},(a,b)=>(0,d.jsx)(n.Skeleton,{className:"aspect-4/3 w-full rounded-xl"},b))});if(f)return(0,d.jsx)(r.SettingError,{message:f.message});let g=c?.files??[];return 0===g.length?(0,d.jsx)("p",{className:"p-5 text-xs text-muted-foreground/60",children:"Nothing in here the app can open."}):(0,d.jsxs)("div",{className:"p-5",children:[(0,d.jsx)("div",{className:"grid grid-cols-4 gap-3",children:g.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>b(a),title:`${a.name} \xb7 ${(0,y.formatBytes)(a.bytes)}`,className:"flex flex-col gap-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-offset-2",children:[(0,d.jsx)(E,{file:a}),(0,d.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground",children:a.name})]},a.path))}),c&&c.total>g.length&&(0,d.jsx)("p",{className:"pt-4 font-mono text-[11px] text-muted-foreground/60",children:`${g.length} of ${c.total.toLocaleString("en")} — the rest are in the folder`})]})}function E({file:a}){return(0,d.jsx)(s.FileThumb,{path:a.path,bytes:a.bytes,glyph:"size-5",className:"aspect-4/3 w-full rounded-xl ring-1 ring-foreground/5 ring-inset"})}function F({entries:a,bots:b,onPick:c}){return(0,d.jsx)("div",{className:"space-y-7 p-6",children:A(a).map(({bot:a,rows:e})=>(0,d.jsxs)("section",{className:"space-y-3",children:[(0,d.jsxs)("h3",{className:"flex items-center gap-2 text-sm font-medium",children:[a&&(0,d.jsx)(q.BotMark,{size:20,seed:a,...(0,q.markOf)(a,b),notify:!1,className:"shrink-0"}),(0,d.jsx)("span",{className:"truncate",children:a??"Unsorted"}),(0,d.jsx)("span",{className:"font-mono text-[11px] font-normal text-muted-foreground",children:e.length})]}),(0,d.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))] gap-x-4 gap-y-5",children:e.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>c(a),className:"group flex min-w-0 flex-col gap-1.5 rounded-xl text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:["set"===a.kind?(0,d.jsx)("span",{className:"grid aspect-4/3 w-full place-items-center rounded-xl bg-muted/60 text-muted-foreground transition-colors group-hover:bg-muted",children:(0,d.jsx)(g.FolderOpen,{className:"size-5"})}):(0,d.jsx)(s.FileThumb,{path:a.path,bytes:a.bytes,glyph:"size-5",className:"aspect-4/3 w-full rounded-xl ring-1 ring-foreground/5 ring-inset"}),(0,d.jsxs)("span",{className:"min-w-0 space-y-0.5 px-0.5",children:[(0,d.jsx)("span",{className:"block truncate text-[13px]",children:a.name}),(0,d.jsxs)("span",{className:"block truncate font-mono text-[10.5px] text-muted-foreground",children:["set"===a.kind?`${a.count} ${1===a.count?"file":"files"} \xb7 `:"",(0,v.shortAgo)(a.at)]})]})]},a.path))})]},a??""))})}function G({empty:a}){return(0,d.jsx)("div",{className:"p-8",children:(0,d.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:a?"Nothing finished yet. When a bot ends a job with something to hand over — a page, a report, a set of pictures — it lands here.":"Pick something on the left. Each bot's work is under its face; a folder it filled is one row, and opens as a sheet."})})}[s,t]=z.then?(await z)():z,a.s(["ArtifactSetting",0,function(){let[a,b]=(0,j.useState)(null),[c,e]=(0,j.useState)(""),[f,h]=(0,j.useState)(void 0),[i,m]=(0,j.useState)(o.ARTIFACT_VIEW.rows),{data:n,isLoading:p,error:s}=(0,x.useServerRoute)(k.queryKey.artifactShelf(i),{keepPreviousData:!0}),{data:t}=(0,x.useServerRoute)(k.queryKey.bot),[v]=(0,w.useServerAction)(u.revealFileAction);if(p)return(0,d.jsx)(r.SettingPanesSkeleton,{});if(s)return(0,d.jsx)(r.SettingError,{message:s.message});let y=n?.entries??[],z=n?.total??0,D=c.trim().toLowerCase(),E=y.filter(a=>(void 0===f||a.bot===f)&&(!D||a.name.toLowerCase().includes(D)||a.bot?.toLowerCase().includes(D))),H=y.find(b=>b.path===a?.row.path)??a?.row;return(0,d.jsx)(r.SettingPanes,{footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.SettingRailNote,{children:(0,d.jsxs)("span",{className:"font-mono",children:[(0,d.jsx)("span",{className:"font-medium text-foreground",children:"finished"}),` \xb7 ${function(a,b,c){if(0===b)return"empty";let d=b>a.length?`${a.length} of ${b.toLocaleString("en")} results`:`${b} ${1===b?"result":"results"}`;return c>b?`${d} \xb7 ${c.toLocaleString("en")} files`:d}(y,z,n?.files??0)}`]})}),(0,d.jsxs)(l.Button,{variant:"outline",size:"sm",onClick:()=>v(o.PATHS.artifacts),children:[(0,d.jsx)(g.FolderOpen,{}),"Reveal folder"]})]}),left:(0,d.jsxs)("div",{className:"flex flex-col py-2",children:[(0,d.jsx)(r.SettingFilter,{value:c,onChange:e,placeholder:"Filter files",className:"mx-2 mb-1.5 w-auto"}),(0,d.jsx)(B,{label:"Everyone",count:y.length,active:void 0===f,onPick:()=>{h(void 0),b(null)}}),A(y).map(({bot:a,rows:c})=>(0,d.jsx)(B,{label:a??"Unsorted",mark:a?(0,d.jsx)(q.BotMark,{size:18,seed:a,...(0,q.markOf)(a,t),notify:!1,className:"shrink-0"}):void 0,count:c.length,active:f===a,onPick:()=>{h(a),b(null)}},a??"")),z>y.length&&(0,d.jsx)("button",{type:"button",onClick:()=>m(i+o.ARTIFACT_VIEW.rows),className:"mx-2 mt-2 rounded-md px-2 py-1.5 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:`Show ${Math.min(o.ARTIFACT_VIEW.rows,z-y.length)} more of ${z.toLocaleString("en")}`})]}),right:H?(0,d.jsx)(C,{row:H,file:a?.file??null,onOpen:a=>b({row:H,file:a}),onBack:()=>b({row:H,file:null}),onGone:()=>b(null),onShelf:()=>b(null)},H.path):E.length>0?(0,d.jsx)(F,{entries:E,bots:t,onPick:a=>b({row:a,file:null})}):(0,d.jsx)(G,{empty:0===z})})}]),c()}catch(a){c(a)}},!1),308673,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7fcd156c67c7a10820368590817bd764985e7e6340",b.callServer,void 0,b.findSourceMapURL,"deleteArtifactAction");a.s(["deleteArtifactAction",0,c])},595775,a=>{"use strict";var b=a.i(164831);let c={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]};c.node;let d=(0,b.default)(c);a.s(["Images",0,d],595775)},951675,a=>{"use strict";var b=a.i(164831);let c={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"]};c.node;let d=(0,b.default)(c);a.s(["Trash2",0,d],951675)}];
|
|
1
|
+
module.exports=[964665,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(707963),f=a.i(168370),g=a.i(844561),h=a.i(595775),i=a.i(951675),j=a.i(572131),k=a.i(767561),l=a.i(340695),m=a.i(446181),n=a.i(950463),o=a.i(287702),p=a.i(753179),q=a.i(913834),r=a.i(619477),s=a.i(38793),t=a.i(369768),u=a.i(883243),v=a.i(199169),w=a.i(313237),x=a.i(759497),y=a.i(497895),z=b([s,t]);function A(a){let b=new Map;for(let c of a){let a=b.get(c.bot)??[];a.push(c),b.set(c.bot,a)}return[...b].map(([a,b])=>({bot:a,rows:b}))}function B({label:a,mark:b,count:c,active:e,onPick:f}){return(0,d.jsxs)("button",{type:"button",onClick:f,className:(0,y.cn)("mx-2 flex h-9 items-center gap-2 rounded-md px-2 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",e?(0,y.cn)(r.PICKED_ROW,"font-medium"):"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[b??(0,d.jsx)(h.Images,{className:"size-4 shrink-0"}),(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate",children:a}),(0,d.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] text-muted-foreground/70 tabular-nums",children:c})]})}function C({row:a,file:b,onOpen:c,onBack:h,onGone:j,onShelf:n}){let[o]=(0,w.useServerAction)(u.revealFileAction),[q,r]=(0,w.useServerAction)(p.deleteArtifactAction,{okMessage:"Deleted",onOk:()=>{(0,x.revalidate)(k.queryKey.artifacts),b?h():j()}}),s=b?{path:b.path,bytes:b.bytes,at:b.at}:"file"===a.kind?{path:a.path,bytes:a.bytes,at:a.at}:null,z=async a=>{await m.notify.confirm({title:`Delete ${a.split("/").pop()}?`,description:s?"It is deleted from disk for good.":"The folder and everything in it are deleted from disk for good.",okText:"Delete",destructive:!0})&&q(a)};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-3 border-b border-border/60 px-6",children:[(0,d.jsxs)("button",{type:"button",onClick:b?h:n,className:"-ml-1 flex shrink-0 items-center gap-1 rounded-md px-1.5 py-1 font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,d.jsx)(e.ChevronLeft,{className:"size-3"}),b?a.name:"Shelf"]}),(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-foreground",children:s?s.path.split("/").pop()??a.name:a.name}),(0,d.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:s?`${(0,y.formatBytes)(s.bytes)} \xb7 ${(0,v.shortAgo)(s.at)}`:`${a.count} ${1===a.count?"file":"files"} \xb7 ${(0,v.shortAgo)(a.at)}`}),s&&(0,d.jsx)("a",{href:k.queryKey.fileView(s.path),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,d.jsx)(f.ExternalLink,{className:"size-4"})}),(0,d.jsx)(l.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>o(s?.path??a.path),children:(0,d.jsx)(g.FolderOpen,{})}),(0,d.jsx)(l.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:r,className:"ml-1.5 text-muted-foreground hover:text-destructive",onClick:()=>z(s?.path??a.path),children:(0,d.jsx)(i.Trash2,{})})]}),(0,d.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:s?(0,d.jsx)(t.FilePreview,{path:s.path,bytes:s.bytes}):(0,d.jsx)(D,{path:a.path,onOpen:c})})]})}function D({path:a,onOpen:b}){let{data:c,isLoading:e,error:f}=(0,x.useServerRoute)(k.queryKey.artifactSet(a,o.ARTIFACT_VIEW.setFiles));if(e)return(0,d.jsx)("div",{className:"grid grid-cols-4 gap-3 p-5",children:Array.from({length:8},(a,b)=>(0,d.jsx)(n.Skeleton,{className:"aspect-4/3 w-full rounded-xl"},b))});if(f)return(0,d.jsx)(r.SettingError,{message:f.message});let g=c?.files??[];return 0===g.length?(0,d.jsx)("p",{className:"p-5 text-xs text-muted-foreground/60",children:"Nothing in here the app can open."}):(0,d.jsxs)("div",{className:"p-5",children:[(0,d.jsx)("div",{className:"grid grid-cols-4 gap-3",children:g.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>b(a),title:`${a.name} \xb7 ${(0,y.formatBytes)(a.bytes)}`,className:"flex flex-col gap-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-offset-2",children:[(0,d.jsx)(E,{file:a}),(0,d.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground",children:a.name})]},a.path))}),c&&c.total>g.length&&(0,d.jsx)("p",{className:"pt-4 font-mono text-[11px] text-muted-foreground/60",children:`${g.length} of ${c.total.toLocaleString("en")} — the rest are in the folder`})]})}function E({file:a}){return(0,d.jsx)(s.FileThumb,{path:a.path,bytes:a.bytes,glyph:"size-5",className:"aspect-4/3 w-full rounded-xl ring-1 ring-foreground/5 ring-inset"})}function F({entries:a,bots:b,onPick:c}){return(0,d.jsx)("div",{className:"space-y-7 p-6",children:A(a).map(({bot:a,rows:e})=>(0,d.jsxs)("section",{className:"space-y-3",children:[(0,d.jsxs)("h3",{className:"flex items-center gap-2 text-sm font-medium",children:[a&&(0,d.jsx)(q.BotMark,{size:20,seed:a,...(0,q.markOf)(a,b),notify:!1,className:"shrink-0"}),(0,d.jsx)("span",{className:"truncate",children:a??"Unsorted"}),(0,d.jsx)("span",{className:"font-mono text-[11px] font-normal text-muted-foreground",children:e.length})]}),(0,d.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))] gap-x-4 gap-y-5",children:e.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>c(a),className:"group flex min-w-0 flex-col gap-1.5 rounded-xl text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:["set"===a.kind?(0,d.jsx)("span",{className:"grid aspect-4/3 w-full place-items-center rounded-xl bg-muted/60 text-muted-foreground transition-colors group-hover:bg-muted",children:(0,d.jsx)(g.FolderOpen,{className:"size-5"})}):(0,d.jsx)(s.FileThumb,{path:a.path,bytes:a.bytes,glyph:"size-5",className:"aspect-4/3 w-full rounded-xl ring-1 ring-foreground/5 ring-inset"}),(0,d.jsxs)("span",{className:"min-w-0 space-y-0.5 px-0.5",children:[(0,d.jsx)("span",{className:"block truncate text-[13px]",children:a.name}),(0,d.jsxs)("span",{className:"block truncate font-mono text-[10.5px] text-muted-foreground",children:["set"===a.kind?`${a.count} ${1===a.count?"file":"files"} \xb7 `:"",(0,v.shortAgo)(a.at)]})]})]},a.path))})]},a??""))})}function G({empty:a}){return(0,d.jsx)("div",{className:"p-8",children:(0,d.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:a?"Nothing finished yet. When a bot ends a job with something to hand over — a page, a report, a set of pictures — it lands here.":"Pick something on the left. Each bot's work is under its face; a folder it filled is one row, and opens as a sheet."})})}[s,t]=z.then?(await z)():z,a.s(["ArtifactSetting",0,function(){let[a,b]=(0,j.useState)(null),[c,e]=(0,j.useState)(""),[f,h]=(0,j.useState)(void 0),[i,m]=(0,j.useState)(o.ARTIFACT_VIEW.rows),{data:n,isLoading:p,error:s}=(0,x.useServerRoute)(k.queryKey.artifactShelf(i),{keepPreviousData:!0}),{data:t}=(0,x.useServerRoute)(k.queryKey.bot),[v]=(0,w.useServerAction)(u.revealFileAction);if(p)return(0,d.jsx)(r.SettingPanesSkeleton,{});if(s)return(0,d.jsx)(r.SettingError,{message:s.message});let y=n?.entries??[],z=n?.total??0,D=c.trim().toLowerCase(),E=y.filter(a=>(void 0===f||a.bot===f)&&(!D||a.name.toLowerCase().includes(D)||a.bot?.toLowerCase().includes(D))),H=y.find(b=>b.path===a?.row.path)??a?.row;return(0,d.jsx)(r.SettingPanes,{footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.SettingRailNote,{children:(0,d.jsxs)("span",{className:"font-mono",children:[(0,d.jsx)("span",{className:"font-medium text-foreground",children:"finished"}),` \xb7 ${function(a,b,c){if(0===b)return"empty";let d=b>a.length?`${a.length} of ${b.toLocaleString("en")} results`:`${b} ${1===b?"result":"results"}`;return c>b?`${d} \xb7 ${c.toLocaleString("en")} files`:d}(y,z,n?.files??0)}`]})}),(0,d.jsxs)(l.Button,{variant:"outline",size:"sm",onClick:()=>v(o.PATHS.artifacts),children:[(0,d.jsx)(g.FolderOpen,{}),"Reveal folder"]})]}),left:(0,d.jsxs)("div",{className:"flex flex-col py-2",children:[(0,d.jsx)(r.SettingFilter,{value:c,onChange:e,placeholder:"Filter files",className:"mx-2 mb-1.5 w-auto"}),(0,d.jsx)(B,{label:"Everyone",count:y.length,active:void 0===f,onPick:()=>{h(void 0),b(null)}}),A(y).map(({bot:a,rows:c})=>(0,d.jsx)(B,{label:a??"Unsorted",mark:a?(0,d.jsx)(q.BotMark,{size:18,seed:a,...(0,q.markOf)(a,t),notify:!1,className:"shrink-0"}):void 0,count:c.length,active:f===a,onPick:()=>{h(a),b(null)}},a??"")),z>y.length&&(0,d.jsx)("button",{type:"button",onClick:()=>m(i+o.ARTIFACT_VIEW.rows),className:"mx-2 mt-2 rounded-md px-2 py-1.5 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:`Show ${Math.min(o.ARTIFACT_VIEW.rows,z-y.length)} more of ${z.toLocaleString("en")}`})]}),right:H?(0,d.jsx)(C,{row:H,file:a?.file??null,onOpen:a=>b({row:H,file:a}),onBack:()=>b({row:H,file:null}),onGone:()=>b(null),onShelf:()=>b(null)},H.path):E.length>0?(0,d.jsx)(F,{entries:E,bots:t,onPick:a=>b({row:a,file:null})}):(0,d.jsx)(G,{empty:0===z})})}]),c()}catch(a){c(a)}},!1),753179,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7ffe9c06b7ad8cad1d561d1902b1d2342207e19610",b.callServer,void 0,b.findSourceMapURL,"deleteArtifactAction");a.s(["deleteArtifactAction",0,c])},595775,a=>{"use strict";var b=a.i(164831);let c={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]};c.node;let d=(0,b.default)(c);a.s(["Images",0,d],595775)},951675,a=>{"use strict";var b=a.i(164831);let c={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"]};c.node;let d=(0,b.default)(c);a.s(["Trash2",0,d],951675)}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=_06xy39t._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[62721,a=>{"use strict";let b="currentColor",c=[{id:"system",label:"System",value:b},{id:"slate",label:"Slate",value:"#64748B"},{id:"indigo",label:"Indigo",value:"#6366F1"},{id:"blue",label:"Blue",value:"#3B82F6"},{id:"cyan",label:"Cyan",value:"#06B6D4"},{id:"teal",label:"Teal",value:"#14B8A6"},{id:"green",label:"Green",value:"#22C55E"},{id:"lime",label:"Lime",value:"#84CC16"},{id:"amber",label:"Amber",value:"#F59E0B"},{id:"orange",label:"Orange",value:"#F97316"},{id:"red",label:"Red",value:"#EF4444"},{id:"pink",label:"Pink",value:"#EC4899"},{id:"violet",label:"Violet",value:"#8B5CF6"},{id:"fuchsia",label:"Fuchsia",value:"#D946EF"},{id:"rose",label:"Rose",value:"#F43F5E"},{id:"sky",label:"Sky",value:"#0EA5E9"},{id:"emerald",label:"Emerald",value:"#10B981"},{id:"yellow",label:"Yellow",value:"#EAB308"},{id:"stone",label:"Stone",value:"#78716C"}],d=Object.fromEntries(c.map(a=>[a.id,a.value])),e=c.filter(a=>a.value!==b).map(a=>a.value),f=[d.amber,d.red],g={[d.cyan]:"#009dbb",[d.teal]:"#00a190",[d.green]:"#00a640",[d.lime]:"#5ca100",[d.amber]:"#d07b00",[d.orange]:"#ec6700",[d.sky]:"#0098dc",[d.emerald]:"#00a46d",[d.yellow]:"#bb8600"},h={rainbow:{label:"Rainbow",look:"flow",colors:[0,45,90,140,190,240,290,330,360].map(a=>`oklch(0.77 0.16 ${a})`)},duo:{label:"Duo",look:"duo",colors:["#818CF8","#F472B6"]},aurora:{label:"Aurora",look:"aurora",edge:"dark",colors:["#1a2f73","#2c56c9","#34d399","#22d3ee","#a7f3d0"]},"aurora-pink":{label:"Pink aurora",look:"aurora",edge:"dark",colors:["#3a1478","#7c3aed","#f472b6","#e879f9","#fbcfe8"]}},i=Object.keys(h);a.s(["MARK_PAINTS",0,h,"MARK_PAINT_IDS",0,i,"MARK_SHAPES",0,["blob","poly","squircle","heart"],"MARK_SYSTEM",0,b,"markInk",0,(a,b)=>b?a:g[a]??a,"randomMarkFills",0,function(a){let b=[...e.filter(a=>!f.includes(a)).map(a=>({color:a})),...i.map(a=>({paint:a}))];for(let a=b.length-1;a>0;a--){let c=Math.floor(Math.random()*(a+1));[b[a],b[c]]=[b[c],b[a]]}return b.slice(0,a)}])},182248,a=>{"use strict";var b;let c,d,e,f,g,h=(a=new Map,b=null,c)=>({nextPart:a,validators:b,classGroupId:c}),i=[],j=(a,b,c)=>{if(0==a.length-b)return c.classGroupId;let d=a[b],e=c.nextPart.get(d);if(e){let c=j(a,b+1,e);if(c)return c}let f=c.validators;if(null===f)return;let g=0===b?a.join("-"):a.slice(b).join("-"),h=f.length;for(let a=0;a<h;a++){let b=f[a];if(b.validator(g))return b.classGroupId}},k=(a,b)=>{let c=h();for(let d in a)l(a[d],c,d,b);return c},l=(a,b,c,d)=>{let e=a.length;for(let f=0;f<e;f++)m(a[f],b,c,d)},m=(a,b,c,d)=>{"string"==typeof a?n(a,b,c):"function"==typeof a?o(a,b,c,d):p(a,b,c,d)},n=(a,b,c)=>{(""===a?b:q(b,a)).classGroupId=c},o=(a,b,c,d)=>{r(a)?l(a(d),b,c,d):(null===b.validators&&(b.validators=[]),b.validators.push({classGroupId:c,validator:a}))},p=(a,b,c,d)=>{let e=Object.entries(a),f=e.length;for(let a=0;a<f;a++){let[f,g]=e[a];l(g,q(b,f),c,d)}},q=(a,b)=>{let c=a,d=b.split("-"),e=d.length;for(let a=0;a<e;a++){let b=d[a],e=c.nextPart.get(b);e||(e=h(),c.nextPart.set(b,e)),c=e}return c},r=a=>"isThemeGetter"in a&&!0===a.isThemeGetter,s=[],t=(a,b,c,d,e)=>({modifiers:a,hasImportantModifier:b,baseClassName:c,maybePostfixModifierPosition:d,isExternal:e}),u=/\s+/,v=a=>{let b;if("string"==typeof a)return a;let c="";for(let d=0;d<a.length;d++)a[d]&&(b=v(a[d]))&&(c&&(c+=" "),c+=b);return c},w=[],x=a=>{let b=b=>b[a]||w;return b.isThemeGetter=!0,b.themeKey=a,b},y=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,z=/^\((?:(\w[\w-]*):)?(.+)\)$/i,A=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,B=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,D=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,F=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=a=>A.test(a),H=a=>!!a&&!Number.isNaN(Number(a)),I=a=>!!a&&Number.isInteger(Number(a)),J=a=>a.endsWith("%")&&H(a.slice(0,-1)),K=a=>B.test(a),L=()=>!0,M=a=>C.test(a)&&!D.test(a),N=()=>!1,O=a=>E.test(a),P=a=>F.test(a),Q=a=>!T(a)&&!_(a),R=a=>a.startsWith("@container")&&("/"===a[10]&&void 0!==a[11]||"s"===a[11]&&void 0!==a[16]&&a.startsWith("-size/",10)||"n"===a[11]&&void 0!==a[18]&&a.startsWith("-normal/",10)),S=a=>ah(a,al,N),T=a=>y.test(a),U=a=>ah(a,am,M),V=a=>ah(a,an,H),W=a=>ah(a,ap,L),X=a=>ah(a,ao,N),Y=a=>ah(a,aj,N),Z=a=>ah(a,ak,P),$=a=>ah(a,aq,O),_=a=>z.test(a),aa=a=>ai(a,am),ab=a=>ai(a,ao),ac=a=>ai(a,aj),ad=a=>ai(a,al),ae=a=>ai(a,ak),af=a=>ai(a,aq,!0),ag=a=>ai(a,ap,!0),ah=(a,b,c)=>{let d=y.exec(a);return!!d&&(d[1]?b(d[1]):c(d[2]))},ai=(a,b,c=!1)=>{let d=z.exec(a);return!!d&&(d[1]?b(d[1]):c)},aj=a=>"position"===a||"percentage"===a,ak=a=>"image"===a||"url"===a,al=a=>"length"===a||"size"===a||"bg-size"===a,am=a=>"length"===a,an=a=>"number"===a,ao=a=>"family-name"===a,ap=a=>"number"===a||"weight"===a,aq=a=>"shadow"===a,ar=(b=()=>{let a=x("color"),b=x("font"),c=x("text"),d=x("font-weight"),e=x("tracking"),f=x("leading"),g=x("breakpoint"),h=x("container"),i=x("spacing"),j=x("radius"),k=x("shadow"),l=x("inset-shadow"),m=x("text-shadow"),n=x("drop-shadow"),o=x("blur"),p=x("perspective"),q=x("aspect"),r=x("ease"),s=x("animate"),t=()=>["auto","avoid","all","avoid-page","page","left","right","column"],u=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...u(),_,T],w=()=>["auto","hidden","clip","visible","scroll"],y=()=>["auto","contain","none"],z=()=>[_,T,i],A=()=>[G,"full","auto",...z()],B=()=>[I,"none","subgrid",_,T],C=()=>["auto",{span:["full",I,_,T]},I,_,T],D=()=>[I,"auto",_,T],E=()=>["auto","min","max","fr",_,T],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...z()],O=()=>[G,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],P=()=>[h,G,"screen","full","dvw","lvw","svw","min","max","fit",...z()],ah=()=>[G,"screen","full","lh","dvh","lvh","svh","min","max","fit",...z()],ai=()=>[a,_,T],aj=()=>[...u(),ac,Y,{position:[_,T]}],ak=()=>["no-repeat",{repeat:["","x","y","space","round"]}],al=()=>["auto","cover","contain",ad,S,{size:[_,T]}],am=()=>[J,aa,U],an=()=>["","none","full",j,_,T],ao=()=>["",H,aa,U],ap=()=>["solid","dashed","dotted","double"],aq=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ar=()=>[H,J,ac,Y],as=()=>["","none",o,_,T],at=()=>["none",H,_,T],au=()=>["none",H,_,T],av=()=>[H,_,T],aw=()=>[G,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[K],breakpoint:[K],color:[L],container:[K],"drop-shadow":[K],ease:["in","out","in-out"],font:[Q],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[K],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[K],shadow:[K],spacing:["px",H],text:[K],"text-shadow":[K],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",G,T,_,q]}],container:["container"],"container-type":[{"@container":["","normal","size",_,T]}],"container-named":[R],columns:[{columns:[H,"auto",T,_,h]}],"break-after":[{"break-after":t()}],"break-before":[{"break-before":t()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:y()}],"overscroll-x":[{"overscroll-x":y()}],"overscroll-y":[{"overscroll-y":y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{"inset-s":A(),start:A()}],end:[{"inset-e":A(),end:A()}],"inset-bs":[{"inset-bs":A()}],"inset-be":[{"inset-be":A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[I,"auto",_,T]}],basis:[{basis:[G,"full","auto",h,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[H,G,"auto","initial","none",T]}],grow:[{grow:["",H,_,T]}],shrink:[{shrink:["",H,_,T]}],order:[{order:[I,"first","last","none",_,T]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pbs:[{pbs:z()}],pbe:[{pbe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...P()]}],"min-inline-size":[{"min-inline":["auto",...P()]}],"max-inline-size":[{"max-inline":["none",...P()]}],"block-size":[{block:["auto",...ah()]}],"min-block-size":[{"min-block":["auto",...ah()]}],"max-block-size":[{"max-block":["none",...ah()]}],w:[{w:[h,"screen",...O()]}],"min-w":[{"min-w":[h,"screen","none",...O()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[g]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh","none",...O()]}],"font-size":[{text:["base",c,aa,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[d,ag,W]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",J,T]}],"font-family":[{font:[ab,X,b]}],"font-features":[{"font-features":[T]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[e,_,T]}],"line-clamp":[{"line-clamp":[H,"none",_,V]}],leading:[{leading:["none",f,...z()]}],"list-image":[{"list-image":["none",_,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ai()}],"text-color":[{text:ai()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ap(),"wavy"]}],"text-decoration-thickness":[{decoration:[H,"from-font","auto",_,U]}],"text-decoration-color":[{decoration:ai()}],"underline-offset":[{"underline-offset":[H,"auto",_,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"tab-size":[{tab:[I,_,T]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:aj()}],"bg-repeat":[{bg:ak()}],"bg-size":[{bg:al()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},I,_,T],radial:["",_,T],conic:["",I,_,T]},ae,Z]}],"bg-color":[{bg:ai()}],"gradient-from-pos":[{from:am()}],"gradient-via-pos":[{via:am()}],"gradient-to-pos":[{to:am()}],"gradient-from":[{from:ai()}],"gradient-via":[{via:ai()}],"gradient-to":[{to:ai()}],rounded:[{rounded:an()}],"rounded-s":[{"rounded-s":an()}],"rounded-e":[{"rounded-e":an()}],"rounded-t":[{"rounded-t":an()}],"rounded-r":[{"rounded-r":an()}],"rounded-b":[{"rounded-b":an()}],"rounded-l":[{"rounded-l":an()}],"rounded-ss":[{"rounded-ss":an()}],"rounded-se":[{"rounded-se":an()}],"rounded-ee":[{"rounded-ee":an()}],"rounded-es":[{"rounded-es":an()}],"rounded-tl":[{"rounded-tl":an()}],"rounded-tr":[{"rounded-tr":an()}],"rounded-br":[{"rounded-br":an()}],"rounded-bl":[{"rounded-bl":an()}],"border-w":[{border:ao()}],"border-w-x":[{"border-x":ao()}],"border-w-y":[{"border-y":ao()}],"border-w-s":[{"border-s":ao()}],"border-w-e":[{"border-e":ao()}],"border-w-bs":[{"border-bs":ao()}],"border-w-be":[{"border-be":ao()}],"border-w-t":[{"border-t":ao()}],"border-w-r":[{"border-r":ao()}],"border-w-b":[{"border-b":ao()}],"border-w-l":[{"border-l":ao()}],"divide-x":[{"divide-x":ao()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ao()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ap(),"hidden","none"]}],"divide-style":[{divide:[...ap(),"hidden","none"]}],"border-color":[{border:ai()}],"border-color-x":[{"border-x":ai()}],"border-color-y":[{"border-y":ai()}],"border-color-s":[{"border-s":ai()}],"border-color-e":[{"border-e":ai()}],"border-color-bs":[{"border-bs":ai()}],"border-color-be":[{"border-be":ai()}],"border-color-t":[{"border-t":ai()}],"border-color-r":[{"border-r":ai()}],"border-color-b":[{"border-b":ai()}],"border-color-l":[{"border-l":ai()}],"divide-color":[{divide:ai()}],"outline-style":[{outline:[...ap(),"none","hidden"]}],"outline-offset":[{"outline-offset":[H,_,T]}],"outline-w":[{outline:["",H,aa,U]}],"outline-color":[{outline:ai()}],shadow:[{shadow:["","inner","none",k,af,$]}],"shadow-color":[{shadow:ai()}],"inset-shadow":[{"inset-shadow":["none",l,af,$]}],"inset-shadow-color":[{"inset-shadow":ai()}],"ring-w":[{ring:ao()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ai()}],"ring-offset-w":[{"ring-offset":[H,U]}],"ring-offset-color":[{"ring-offset":ai()}],"inset-ring-w":[{"inset-ring":ao()}],"inset-ring-color":[{"inset-ring":ai()}],"text-shadow":[{"text-shadow":["none",m,af,$]}],"text-shadow-color":[{"text-shadow":ai()}],opacity:[{opacity:[H,_,T]}],"mix-blend":[{"mix-blend":[...aq(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":aq()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":ar()}],"mask-image-linear-to-pos":[{"mask-linear-to":ar()}],"mask-image-linear-from-color":[{"mask-linear-from":ai()}],"mask-image-linear-to-color":[{"mask-linear-to":ai()}],"mask-image-t-from-pos":[{"mask-t-from":ar()}],"mask-image-t-to-pos":[{"mask-t-to":ar()}],"mask-image-t-from-color":[{"mask-t-from":ai()}],"mask-image-t-to-color":[{"mask-t-to":ai()}],"mask-image-r-from-pos":[{"mask-r-from":ar()}],"mask-image-r-to-pos":[{"mask-r-to":ar()}],"mask-image-r-from-color":[{"mask-r-from":ai()}],"mask-image-r-to-color":[{"mask-r-to":ai()}],"mask-image-b-from-pos":[{"mask-b-from":ar()}],"mask-image-b-to-pos":[{"mask-b-to":ar()}],"mask-image-b-from-color":[{"mask-b-from":ai()}],"mask-image-b-to-color":[{"mask-b-to":ai()}],"mask-image-l-from-pos":[{"mask-l-from":ar()}],"mask-image-l-to-pos":[{"mask-l-to":ar()}],"mask-image-l-from-color":[{"mask-l-from":ai()}],"mask-image-l-to-color":[{"mask-l-to":ai()}],"mask-image-x-from-pos":[{"mask-x-from":ar()}],"mask-image-x-to-pos":[{"mask-x-to":ar()}],"mask-image-x-from-color":[{"mask-x-from":ai()}],"mask-image-x-to-color":[{"mask-x-to":ai()}],"mask-image-y-from-pos":[{"mask-y-from":ar()}],"mask-image-y-to-pos":[{"mask-y-to":ar()}],"mask-image-y-from-color":[{"mask-y-from":ai()}],"mask-image-y-to-color":[{"mask-y-to":ai()}],"mask-image-radial":[{"mask-radial":[_,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":ar()}],"mask-image-radial-to-pos":[{"mask-radial-to":ar()}],"mask-image-radial-from-color":[{"mask-radial-from":ai()}],"mask-image-radial-to-color":[{"mask-radial-to":ai()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":u()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":ar()}],"mask-image-conic-to-pos":[{"mask-conic-to":ar()}],"mask-image-conic-from-color":[{"mask-conic-from":ai()}],"mask-image-conic-to-color":[{"mask-conic-to":ai()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:aj()}],"mask-repeat":[{mask:ak()}],"mask-size":[{mask:al()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,T]}],filter:[{filter:["","none",_,T]}],blur:[{blur:as()}],brightness:[{brightness:[H,_,T]}],contrast:[{contrast:[H,_,T]}],"drop-shadow":[{"drop-shadow":["","none",n,af,$]}],"drop-shadow-color":[{"drop-shadow":ai()}],grayscale:[{grayscale:["",H,_,T]}],"hue-rotate":[{"hue-rotate":[H,_,T]}],invert:[{invert:["",H,_,T]}],saturate:[{saturate:[H,_,T]}],sepia:[{sepia:["",H,_,T]}],"backdrop-filter":[{"backdrop-filter":["","none",_,T]}],"backdrop-blur":[{"backdrop-blur":as()}],"backdrop-brightness":[{"backdrop-brightness":[H,_,T]}],"backdrop-contrast":[{"backdrop-contrast":[H,_,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",H,_,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,_,T]}],"backdrop-invert":[{"backdrop-invert":["",H,_,T]}],"backdrop-opacity":[{"backdrop-opacity":[H,_,T]}],"backdrop-saturate":[{"backdrop-saturate":[H,_,T]}],"backdrop-sepia":[{"backdrop-sepia":["",H,_,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[H,"initial",_,T]}],ease:[{ease:["linear","initial",r,_,T]}],delay:[{delay:[H,_,T]}],animate:[{animate:["none",s,_,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,_,T]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:at()}],"rotate-x":[{"rotate-x":at()}],"rotate-y":[{"rotate-y":at()}],"rotate-z":[{"rotate-z":at()}],scale:[{scale:au()}],"scale-x":[{"scale-x":au()}],"scale-y":[{"scale-y":au()}],"scale-z":[{"scale-z":au()}],"scale-3d":["scale-3d"],skew:[{skew:av()}],"skew-x":[{"skew-x":av()}],"skew-y":[{"skew-y":av()}],transform:[{transform:[_,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:aw()}],"translate-x":[{"translate-x":aw()}],"translate-y":[{"translate-y":aw()}],"translate-z":[{"translate-z":aw()}],"translate-none":["translate-none"],zoom:[{zoom:[I,_,T]}],accent:[{accent:ai()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ai()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":ai()}],"scrollbar-track-color":[{"scrollbar-track":ai()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mbs":[{"scroll-mbs":z()}],"scroll-mbe":[{"scroll-mbe":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pbs":[{"scroll-pbs":z()}],"scroll-pbe":[{"scroll-pbe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,T]}],fill:[{fill:["none",...ai()]}],"stroke-w":[{stroke:[H,aa,U,V]}],stroke:[{stroke:["none",...ai()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},g=a=>{let b=d(a);if(b)return b;let f=((a,b)=>{let{parseClassName:c,getClassGroupId:d,getConflictingClassGroupIds:e,sortModifiers:f,postfixLookupClassGroupIds:g}=b,h=[],i=a.trim().split(u),j="";for(let a=i.length-1;a>=0;a-=1){let b,k=i[a],{isExternal:l,modifiers:m,hasImportantModifier:n,baseClassName:o,maybePostfixModifierPosition:p}=c(k);if(l){j=k+(j.length>0?" "+j:j);continue}let q=!!p;if(q){let a=(b=d(o.substring(0,p)))&&g[b]?d(o):void 0;a&&a!==b&&(b=a,q=!1)}else b=d(o);if(!b){if(!q||!(b=d(o))){j=k+(j.length>0?" "+j:j);continue}q=!1}let r=0===m.length?"":1===m.length?m[0]:f(m).join(":"),s=n?r+"!":r,t=s+b;if(h.indexOf(t)>-1)continue;h.push(t);let u=e(b,q);for(let a=0;a<u.length;++a){let b=u[a];h.push(s+b)}j=k+(j.length>0?" "+j:j)}return j})(a,c);return e(a,f),f},f=a=>{var h;let l;return d=(c={cache:(a=>{if(a<1)return{get:()=>void 0,set:()=>{}};let b=0,c=Object.create(null),d=Object.create(null),e=(e,f)=>{c[e]=f,++b>a&&(b=0,d=c,c=Object.create(null))};return{get(a){let b=c[a];return void 0!==b?b:void 0!==(b=d[a])?(e(a,b),b):void 0},set(a,b){a in c?c[a]=b:e(a,b)}}})((h=[].reduce((a,b)=>b(a),b())).cacheSize),parseClassName:(a=>{let{prefix:b,experimentalParseClassName:c}=a,d=a=>{let b,c=[],d=0,e=0,f=0,g=a.length;for(let h=0;h<g;h++){let g=a[h];if(0===d&&0===e){if(":"===g){c.push(a.slice(f,h)),f=h+1;continue}if("/"===g){b=h;continue}}"["===g?d++:"]"===g?d--:"("===g?e++:")"===g&&e--}let h=0===c.length?a:a.slice(f),i=h,j=!1;return h.endsWith("!")?(i=h.slice(0,-1),j=!0):h.startsWith("!")&&(i=h.slice(1),j=!0),t(c,j,i,b&&b>f?b-f:void 0)};if(b){let a=b+":",c=d;d=b=>b.startsWith(a)?c(b.slice(a.length)):t(s,!1,b,void 0,!0)}if(c){let a=d;d=b=>c({className:b,parseClassName:a})}return d})(h),sortModifiers:(l=new Map,h.orderSensitiveModifiers.forEach((a,b)=>{l.set(a,1e6+b)}),a=>{let b=[],c=[];for(let d=0;d<a.length;d++){let e=a[d],f="["===e[0],g=l.has(e);f||g?(c.length>0&&(c.sort(),b.push(...c),c=[]),b.push(e)):c.push(e)}return c.length>0&&(c.sort(),b.push(...c)),b}),postfixLookupClassGroupIds:(a=>{let b=Object.create(null),c=a.postfixLookupClassGroups;if(c)for(let a=0;a<c.length;a++)b[c[a]]=!0;return b})(h),...(a=>{let b=(a=>{let{theme:b,classGroups:c}=a;return k(c,b)})(a),{conflictingClassGroups:c,conflictingClassGroupModifiers:d}=a;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]")){var c;let b,d,e;return -1===(c=a).slice(1,-1).indexOf(":")?void 0:(d=(b=c.slice(1,-1)).indexOf(":"),(e=b.slice(0,d))?"arbitrary.."+e:void 0)}let d=a.split("-"),e=+(""===d[0]&&d.length>1);return j(d,e,b)},getConflictingClassGroupIds:(a,b)=>{if(b){let b=d[a],e=c[a];if(b){if(e){let a=Array(e.length+b.length);for(let b=0;b<e.length;b++)a[b]=e[b];for(let c=0;c<b.length;c++)a[e.length+c]=b[c];return a}return b}return e||i}return c[a]||i}}})(h)}).cache.get,e=c.cache.set,f=g,g(a)},(...a)=>f(((...a)=>{let b,c,d=0,e="";for(;d<a.length;)(b=a[d++])&&(c=v(b))&&(e&&(e+=" "),e+=c);return e})(...a)));function as(a,b){let c=a.replace(/\s+/g," ").trim();return c.length>b?`${c.slice(0,b-1).trimEnd()}…`:c}a.s(["PromiseChain",0,()=>{let a=Promise.resolve();return b=>{let c=a.then(()=>b());return a=c.catch(()=>{}),c}},"clip",0,as,"cn",0,function(...a){return ar(function(){for(var a,b,c=0,d="",e=arguments.length;c<e;c++)(a=arguments[c])&&(b=function a(b){var c,d,e="";if("string"==typeof b||"number"==typeof b)e+=b;else if("object"==typeof b)if(Array.isArray(b)){var f=b.length;for(c=0;c<f;c++)b[c]&&(d=a(b[c]))&&(e&&(e+=" "),e+=d)}else for(d in b)b[d]&&(e&&(e+=" "),e+=d);return e}(a))&&(d&&(d+=" "),d+=b);return d}(a))},"errorToString",0,function(a){if(a instanceof Error)return a.message;if("object"!=typeof a||null===a)return String(a);let{message:b,error:c}=a;if("string"==typeof b&&b)return b;if("string"==typeof c&&c)return c;let d=c?.message;if("string"==typeof d&&d)return d;try{return as(JSON.stringify(a),300)}catch{return`${a.constructor?.name??"Object"} thrown without a message`}},"hostOf",0,function(a){try{return new URL(a).hostname.replace(/^www\./,"")}catch{return null}},"plainText",0,function(a){return a.replace(/```[\s\S]*?```/g," ").replace(/`([^`]*)`/g,"$1").replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(#{1,6}\s+|[-*+]\s+|\d+\.\s+|>\s?)/gm,"").replace(/(\*\*|__)(.*?)\1/g,"$2").replace(/(\*|_)(.*?)\1/g,"$2").replace(/^\s*\|?[\s:|-]+\|\s*$/gm," ").replace(/\|/g," ").replace(/\s+/g," ").trim()},"slug",0,function(a){return a.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"").slice(0,40)}],182248)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_088vzgn._.js.map
|