thursday-agent 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +5 -5
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.json +5 -5
- package/.next/server/app/_global-error/page/build-manifest.json +2 -2
- 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/build-manifest.json +2 -2
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/artifact/route.js +10 -10
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js +1 -1
- 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/file/route.js +15 -15
- package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/route.js +5 -5
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/tool-result/[id]/route.js +6 -6
- package/.next/server/app/api/bot/tool-result/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js +3 -3
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js +1 -1
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/favicon/[host]/route.js +4 -4
- 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/automatic/route.js +5 -5
- package/.next/server/app/api/llm-model/automatic/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/[provider]/route.js +5 -5
- package/.next/server/app/api/llm-model/catalog/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/[provider]/route.js +5 -5
- package/.next/server/app/api/llm-model/credits/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/route.js +6 -6
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js +6 -6
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js +5 -5
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js +6 -6
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +5 -5
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js +5 -5
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +15 -15
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js +4 -4
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js +18 -18
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js +8 -8
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/running/route.js +2 -2
- package/.next/server/app/api/running/route.js.nft.json +1 -1
- package/.next/server/app/api/signins/route.js +3 -3
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js +6 -6
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js +6 -6
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/end/route.js +5 -5
- package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/plan/route.js +14 -14
- package/.next/server/app/api/thursday/call/plan/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js +6 -6
- 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 +14 -14
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +15 -15
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/update/route.js +7 -7
- package/.next/server/app/api/update/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js +6 -6
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js +6 -6
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/build-manifest.json +2 -2
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +11 -11
- 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 +2 -2
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next/server/app/page/build-manifest.json +2 -2
- package/.next/server/app/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/page/server-reference-manifest.json +184 -184
- package/.next/server/app/page.js +10 -10
- 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]__01jpmcj._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__03bjojd._.js +3 -3
- package/.next/server/chunks/{[root-of-the-server]__0wosonh._.js → [root-of-the-server]__05u-9a3._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1dyse-1._.js → [root-of-the-server]__0_qe8iq._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0d-dfqm._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0jqidnu._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0mmynvy._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0qhf60h._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0sea36s._.js +4 -4
- package/.next/server/chunks/[root-of-the-server]__0zezbds._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__12hkdpz._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__13hng6h._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__14inehv._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__17kdjf6._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__17yv6lg._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0b3_rzi._.js → [root-of-the-server]__1hjb8wf._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1jcu_e9._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1jmr2ed._.js +3 -3
- package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1o7z93z._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1onvx8x._.js +2 -2
- package/.next/server/chunks/_0-mqt2w._.js +1 -1
- package/.next/server/chunks/_04s1gb9._.js +30 -27
- package/.next/server/chunks/_06u9yo-._.js +1 -1
- package/.next/server/chunks/_08354bn._.js +33 -30
- package/.next/server/chunks/_083t_nr._.js +1 -1
- package/.next/server/chunks/_0c-s0ei._.js +1 -1
- package/.next/server/chunks/_0gifi_2._.js +2 -2
- package/.next/server/chunks/_0m3sdq8._.js +1 -1
- package/.next/server/chunks/_0pljp-1._.js +1 -1
- package/.next/server/chunks/_0wjia9n._.js +1 -1
- package/.next/server/chunks/_0wyh244._.js +33 -30
- package/.next/server/chunks/_0x2mdif._.js +1 -1
- package/.next/server/chunks/_1-sk_q4._.js +1 -1
- package/.next/server/chunks/_12a_gfz._.js +1 -1
- package/.next/server/chunks/_14-kmob._.js +1 -1
- package/.next/server/chunks/_16zct7w._.js +30 -27
- package/.next/server/chunks/_1823_7a._.js +4 -4
- package/.next/server/chunks/_1f_x75d._.js +1 -1
- package/.next/server/chunks/_1o2r4ja._.js +1 -1
- package/.next/server/chunks/_1q42187._.js +3 -3
- package/.next/server/chunks/_1ufbxe1._.js +1 -1
- package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
- package/.next/server/chunks/features_14kex_m._.js +11 -11
- package/.next/server/chunks/features_bot_08z387_._.js +4 -4
- package/.next/server/chunks/features_memory_0__61kl._.js +1 -1
- package/.next/server/chunks/features_memory_1uqvksn._.js +1 -1
- package/.next/server/chunks/features_workspace_workspace_ts_13h82gv._.js +1 -1
- package/.next/server/chunks/features_workspace_workspace_ts_1iyjroj._.js +3 -3
- package/.next/server/chunks/ssr/{[root-of-the-server]__0x297x3._.js → [root-of-the-server]__03_9u5q._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__0653diy._.js → [root-of-the-server]__04ky8w1._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1zlzs9j._.js → [root-of-the-server]__0crm8gr._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__02936mh._.js → [root-of-the-server]__0d3n8i_._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__0s8q44q._.js → [root-of-the-server]__0d4o9hs._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0id2dqb._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1s0etwd._.js → [root-of-the-server]__0q2c15o._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0t_oz3-._.js +6 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__16x99f1._.js → [root-of-the-server]__12r70jm._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1867koj._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__0glkz9k._.js → [root-of-the-server]__1fvh0zn._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__1t38-p_._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1c1xyyb._.js → [root-of-the-server]__1uy0zqr._.js} +2 -2
- package/.next/server/chunks/ssr/_02uubus._.js +3 -0
- package/.next/server/chunks/ssr/_0692i-a._.js +3 -0
- package/.next/server/chunks/ssr/_079xt7h._.js +32 -29
- package/.next/server/chunks/ssr/_07g7ojr._.js +3 -0
- package/.next/server/chunks/ssr/_0ewhz_x._.js +3 -0
- package/.next/server/chunks/ssr/_0f3t9pm._.js +2 -2
- package/.next/server/chunks/ssr/_0gx6qzr._.js +57 -0
- package/.next/server/chunks/ssr/_0pjwmak._.js +6 -0
- package/.next/server/chunks/ssr/_0pnzfq1._.js +1 -1
- package/.next/server/chunks/ssr/_0px9eat._.js +3 -0
- package/.next/server/chunks/ssr/_0r2_l__._.js +3 -0
- package/.next/server/chunks/ssr/{_20_wc-g._.js → _0rcuovx._.js} +2 -2
- package/.next/server/chunks/ssr/_0uwhhcs._.js +3 -0
- package/.next/server/chunks/ssr/{_1wct0tm._.js → _128r03g._.js} +1 -1
- package/.next/server/chunks/ssr/_12c2n7f._.js +3 -0
- package/.next/server/chunks/ssr/{_12_ail7._.js → _14f64h2._.js} +1 -1
- package/.next/server/chunks/ssr/_17fa2ns._.js +162 -0
- package/.next/server/chunks/ssr/_1_px1o-._.js +3 -0
- package/.next/server/chunks/ssr/_1a_w_du._.js +1 -1
- package/.next/server/chunks/ssr/_1e_9qjr._.js +1 -1
- package/.next/server/chunks/ssr/_1f59vze._.js +57 -0
- package/.next/server/chunks/ssr/_1j5ohq5._.js +3 -0
- package/.next/server/chunks/ssr/{_0ingto_._.js → _1kj3d2q._.js} +2 -2
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/_1ocl7u0._.js +3 -0
- package/.next/server/chunks/ssr/_1q9r6u6._.js +3 -0
- package/.next/server/chunks/ssr/{_0fvctar._.js → _1qqusa-._.js} +2 -2
- package/.next/server/chunks/ssr/_1soynbw._.js +2 -2
- package/.next/server/chunks/ssr/_1uok0wt._.js +3 -0
- package/.next/server/chunks/ssr/_1v1pcoh._.js +1 -1
- package/.next/server/chunks/ssr/_1xw9imq._.js +3 -0
- package/.next/server/chunks/ssr/{components_ui_markdown-body_tsx_0h7bkrz._.js → components_ui_markdown-body_tsx_08i96c6._.js} +2 -2
- package/.next/server/chunks/ssr/features_0rrgq_t._.js +1 -1
- package/.next/server/chunks/ssr/features_ai_components_model-picker_tsx_0ucb1y9._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_0tb4ui-._.js +2 -2
- package/.next/server/chunks/ssr/features_bot_components_01ye2wp._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js +2 -2
- package/.next/server/chunks/ssr/features_bot_components_thread-setting_tsx_0yae7zy._.js +1 -1
- package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +2 -2
- 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 +2 -2
- package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
- package/.next/server/chunks/ssr/features_skills_components_skills-setting_tsx_1wtuuip._.js +1 -1
- package/.next/server/chunks/ssr/features_thursday_components_thursday-setting_tsx_1_6ydrc._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_193w7l8._.js → node_modules_02djdfa._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1bwlhwa._.js → node_modules_03ybg-h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01xoz64._.js → node_modules_066eqdg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_20ifwl6._.js → node_modules_09605b3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1yilsx4._.js → node_modules_0_c17cv._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_080f5gu._.js → node_modules_0a1-9-h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17c047f._.js → node_modules_0bfpl_c._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1pav8g4._.js → node_modules_0brchjo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0gwiuga._.js → node_modules_0c0pgdi._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_02-zrtu._.js → node_modules_0ep265x._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0kqej10._.js → node_modules_0gzvt6a._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0i18max._.js → node_modules_0h4gjw5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1m2_gxv._.js → node_modules_0iso-he._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0cda8i6._.js → node_modules_0jvqmb4._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_0kzgugm._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_0uvoegq._.js → node_modules_0l8gpkg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_12ajdg8._.js → node_modules_0mlrvds._.js} +2 -2
- package/.next/server/chunks/ssr/node_modules_0nvqvnw._.js +7 -7
- package/.next/server/chunks/ssr/{node_modules_1s3j8gb._.js → node_modules_0ogtyfm._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1_xiwxs._.js → node_modules_0os_-0h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1abjhxx._.js → node_modules_0p05zru._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1o-m6_3._.js → node_modules_0pf8124._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0eqvt2l._.js → node_modules_0pp3v4f._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0rzz90e._.js → node_modules_0r1vv13._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1kum1yu._.js → node_modules_0r9yw6x._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1yw5fq4._.js → node_modules_0rk1a3e._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1es3wjv._.js → node_modules_0sq1pa3._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1-cv1_p._.js → node_modules_0w-pjyz._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0g_yuwn._.js → node_modules_0yoh66_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1s9agqr._.js → node_modules_10kn3ni._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1yajzrd._.js → node_modules_124ipg-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0svoyrb._.js → node_modules_12_p7d0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_203yqqb._.js → node_modules_12w12wr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17ks351._.js → node_modules_16kmp_v._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_05qs8r_._.js → node_modules_16m_yhd._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_07dc1cr._.js → node_modules_171uvar._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0qsi9t2._.js → node_modules_19pn2ti._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0k9_jdk._.js → node_modules_1_ly5yy._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0o_gq58._.js → node_modules_1_wsn9q._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1u7wlaq._.js → node_modules_1djak6n._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_08cq8i-._.js → node_modules_1e-oxmh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_15x7int._.js → node_modules_1ed4zep._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1pkpq6d._.js → node_modules_1f2qlxm._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1aw7c9f._.js → node_modules_1fn72fs._.js} +2 -2
- package/.next/server/chunks/ssr/node_modules_1h9p77x._.js +7 -7
- package/.next/server/chunks/ssr/{node_modules_1ucf2fi._.js → node_modules_1hj0rvo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_12pvysk._.js → node_modules_1jvkoqj._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0tq4-57._.js → node_modules_1jzofr8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_08hfp3a._.js → node_modules_1maqy-g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_071fb26._.js → node_modules_1oox5h1._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_jxnnn._.js → node_modules_1p56fwh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01yukzc._.js → node_modules_1prbr1-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hrbceb._.js → node_modules_1qfou69._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_11f1w-3._.js → node_modules_1qnosqe._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1kd_hpx._.js → node_modules_1rdpn6v._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_079iwnx._.js → node_modules_1v6m9sp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1iapzqf._.js → node_modules_1z8ywx9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1dim95c._.js → node_modules_1zzudo-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1_71wv3._.js → node_modules_2157u1j._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_1c5gb92._.js → node_modules_katex_dist_katex_mjs_12lynt6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_1ocxq2z._.js → node_modules_katex_dist_katex_mjs_1vjoadq._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1v93o68._.js +1 -1
- package/.next/server/middleware-build-manifest.js +5 -5
- 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 +185 -185
- package/.next/static/chunks/051z85h3ofmif.js +1 -0
- package/.next/static/chunks/05722zc-sohb_.js +4 -0
- package/.next/static/chunks/07jo959manleh.js +1 -0
- package/.next/static/chunks/0_5a18_y41-_4.js +1 -0
- package/.next/static/chunks/0be7dgti95u_2.js +1 -0
- package/.next/static/chunks/0c28x0q2aqsbj.js +1 -0
- package/.next/static/chunks/0o_rabv5are-o.js +2 -0
- package/.next/static/chunks/{0776-hu4_eek7.js → 0wwq57j09skhy.js} +2 -2
- package/.next/static/chunks/0zm3urd75-zw5.js +1 -0
- package/.next/static/chunks/16hfi69t-6a4t.js +2 -0
- package/.next/static/chunks/1g58g8-daiwu5.js +3 -0
- package/.next/static/chunks/1i1u85j-_yb1n.js +15 -0
- package/.next/static/chunks/1kd2sxkkrae8e.js +1 -0
- package/.next/static/chunks/{3xloayc4c096r.js → 1n3a07w81jbc-.js} +1 -1
- package/.next/static/chunks/1nncyxatu7une.js +1 -0
- package/.next/static/chunks/1s5t41jiomssd.css +1 -0
- package/.next/static/chunks/1yl4mlpsw8e7h.js +1 -0
- package/.next/static/chunks/{33qtnlc00c9gq.js → 2gl-fo_rmmmq0.js} +1 -1
- package/.next/static/chunks/2h_sak2oi70qs.js +1 -0
- package/.next/static/chunks/2isg5redeg2bc.js +1 -0
- package/.next/static/chunks/{2fxn-xltgy2un.js → 2of2-kggzp-fk.js} +1 -1
- package/.next/static/chunks/2vmran3sacktz.js +1 -0
- package/.next/static/chunks/2w02v9g8o9-rz.js +1 -0
- package/.next/static/chunks/2wi2pcbjrqm86.js +1 -0
- package/.next/static/chunks/2xk8otp3gnzml.js +1 -0
- package/.next/static/chunks/2ym1hrikoit8p.js +1 -0
- package/.next/static/chunks/34d1f980dv5c6.js +18 -0
- package/.next/static/chunks/34zhr71217o1-.js +2 -0
- package/.next/static/chunks/{0o1r15rfncytn.js → 37r4l2878vybp.js} +1 -1
- package/.next/static/chunks/{2cz5734j90h5b.js → 3a-2z23puvz2z.js} +1 -1
- package/.next/static/chunks/3d55-y263hup9.js +1 -0
- package/.next/static/chunks/3dzrveotr82eu.js +39 -0
- package/.next/static/chunks/3fensfht8pxhl.js +55 -0
- package/.next/static/chunks/3k7fum0yljmyr.js +1 -0
- package/.next/static/chunks/3sawwm4vucnzn.js +1 -0
- package/.next/static/chunks/{0z0-g4k1hnpw2.js → 3u208m--8u1iq.js} +1 -1
- package/.next/static/chunks/{turbopack-1kym6rf88i5i0.js → turbopack-0ekrsq98buh0j.js} +1 -1
- package/README.md +18 -18
- package/bin/background.mjs +60 -32
- package/bin/print.mjs +82 -0
- package/bin/thursday.mjs +44 -13
- package/guide/bots.md +19 -3
- package/guide/calls.md +5 -2
- package/guide/memory.md +2 -1
- package/guide/setup.md +8 -6
- package/guide/trouble.md +4 -0
- package/package.json +11 -5
- package/public/voices/intro/awake-f4e02fad.ogg +0 -0
- package/seed-skills/concierge/travel/scripts/itinerary.mjs +2 -1
- package/server.js +1 -1
- package/skills/artifact/references/document.md +5 -2
- package/skills/artifact/runtime/document/markdown.mjs +14 -1
- package/skills/artifact/runtime/shell/head.html +1 -1
- package/skills/artifact/scripts/document.mjs +9 -3
- package/skills/browser/SKILL.md +17 -13
- package/.next/server/chunks/[root-of-the-server]__0ald4vb._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0srfj96._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1kos36s._.js +0 -6
- package/.next/server/chunks/ssr/_024j8bs._.js +0 -3
- package/.next/server/chunks/ssr/_04jb10a._.js +0 -3
- package/.next/server/chunks/ssr/_059oyhd._.js +0 -3
- package/.next/server/chunks/ssr/_0d0uyl3._.js +0 -3
- package/.next/server/chunks/ssr/_0fk7dbp._.js +0 -88
- package/.next/server/chunks/ssr/_0gfa_rb._.js +0 -3
- package/.next/server/chunks/ssr/_0i7zd74._.js +0 -3
- package/.next/server/chunks/ssr/_0sp2z94._.js +0 -3
- package/.next/server/chunks/ssr/_1avnw03._.js +0 -57
- package/.next/server/chunks/ssr/_1bfrntd._.js +0 -6
- package/.next/server/chunks/ssr/_1cpvfkg._.js +0 -3
- package/.next/server/chunks/ssr/_1cqjpyq._.js +0 -3
- package/.next/server/chunks/ssr/_1khngyc._.js +0 -72
- package/.next/server/chunks/ssr/_1kyjimg._.js +0 -162
- package/.next/server/chunks/ssr/_1sw4r4m._.js +0 -6
- package/.next/server/chunks/ssr/_20004tu._.js +0 -57
- package/.next/server/chunks/ssr/node_modules_01alue6._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_02n9-pb._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0zxr5sz._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_trash_mjs_0px2gzr._.js +0 -3
- package/.next/static/chunks/02d9vhnz5mwvu.js +0 -1
- package/.next/static/chunks/06ff4fq0z4das.js +0 -1
- package/.next/static/chunks/09q9n7jrkm4c9.js +0 -39
- package/.next/static/chunks/0b3wt5kqs-mk2.js +0 -2
- package/.next/static/chunks/0blrj_tg1yur0.js +0 -1
- package/.next/static/chunks/0dn1ptom1ahgg.js +0 -18
- package/.next/static/chunks/0dq7uppta9s--.js +0 -1
- package/.next/static/chunks/0hoz2b--nhn4y.js +0 -1
- package/.next/static/chunks/0kfjtkez2xze2.js +0 -1
- package/.next/static/chunks/0mv2zywfzt83k.js +0 -4
- package/.next/static/chunks/0txtrhykehsd_.js +0 -55
- package/.next/static/chunks/17vs1vz7_4l4p.css +0 -1
- package/.next/static/chunks/1dnvf_117h4k3.js +0 -2
- package/.next/static/chunks/1irynso77np9t.js +0 -1
- package/.next/static/chunks/1sh_-w_keseat.js +0 -1
- package/.next/static/chunks/1z2_9pl3nezly.js +0 -3
- package/.next/static/chunks/23ty4edkuxirx.js +0 -1
- package/.next/static/chunks/2f1cnfz4h1e2x.js +0 -1
- package/.next/static/chunks/2jepcbdewlwlg.js +0 -1
- package/.next/static/chunks/2r_zq_knm0hph.js +0 -15
- package/.next/static/chunks/2yfmmo4qr_f-m.js +0 -1
- package/.next/static/chunks/3-xnkknav7azp.js +0 -1
- package/.next/static/chunks/38q31td1ecuay.js +0 -1
- package/.next/static/chunks/3n75-7grldc6f.js +0 -1
- package/.next/static/chunks/3ofr4htw4wpj3.js +0 -1
- package/.next/static/chunks/40bkw3zfenss4.js +0 -2
- package/public/voices/intro/awake-17dbafbf.ogg +0 -0
- package/public/voices/intro/models-d09ddc74.ogg +0 -0
- /package/.next/static/{YIQV0_9FZPTFUe9TCiVSF → 3_9hbwcAuWTSWCJSufp3d}/_buildManifest.js +0 -0
- /package/.next/static/{YIQV0_9FZPTFUe9TCiVSF → 3_9hbwcAuWTSWCJSufp3d}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{YIQV0_9FZPTFUe9TCiVSF → 3_9hbwcAuWTSWCJSufp3d}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,567334,877267,t=>{"use strict";let r,e=[[" "],[" ",".","`"],[".",",","·","'"],[":",";","-","^"],["=","+","~",'"'],["*","?","◦","j"],["c","v","○","7"],["o","x","◇","い"],["s","y","t","あ"],["e","a","u","な"],["k","w","z","や"],["q","h","n","米"]],n=e.length;function o(t,r){return f(.05,.42,t/r)}let i={A:[".##.","#..#","####","#..#","#..#"],B:["###.","#..#","###.","#..#","###."],C:[".###","#...","#...","#...",".###"],D:["###.","#..#","#..#","#..#","###."],E:["####","#...","###.","#...","####"],F:["####","#...","###.","#...","#..."],G:[".###","#...","#.##","#..#",".###"],H:["#..#","#..#","####","#..#","#..#"],I:["###",".#.",".#.",".#.","###"],J:["..##","...#","...#","#..#",".##."],K:["#..#","#.#.","##..","#.#.","#..#"],L:["#...","#...","#...","#...","####"],M:["#...#","##.##","#.#.#","#...#","#...#"],N:["#..#","##.#","#.##","#..#","#..#"],O:[".##.","#..#","#..#","#..#",".##."],P:["###.","#..#","###.","#...","#..."],Q:[".##.","#..#","#..#","#.#.",".#.#"],R:["###.","#..#","###.","#.#.","#..#"],S:[".###","#...",".##.","...#","###."],T:["###",".#.",".#.",".#.",".#."],U:["#..#","#..#","#..#","#..#",".##."],V:["#...#","#...#",".#.#.",".#.#.","..#.."],W:["#...#","#...#","#.#.#","##.##","#...#"],X:["#..#","#..#",".##.","#..#","#..#"],Y:["#.#","#.#",".#.",".#.",".#."],Z:["####","...#",".##.","#...","####"],0:[".##.","#.##","#..#","##.#",".##."],1:[".#.","##.",".#.",".#.","###"],2:["###.","...#",".##.","#...","####"],3:["###.","...#",".##.","...#","###."],4:["#..#","#..#","####","...#","...#"],5:["####","#...","###.","...#","###."],6:[".##.","#...","###.","#..#",".##."],7:["####","...#","..#.",".#..",".#.."],8:[".##.","#..#",".##.","#..#",".##."],9:[".##.","#..#",".###","...#",".##."],"!":["#","#","#",".","#"],"?":["###.","...#",".##.","....",".#.."],".":[".",".",".",".","#"],",":["..","..","..",".#","#."],"'":["#","#",".",".","."],"-":["...","...","###","...","..."],"+":["...",".#.","###",".#.","..."],":":[".","#",".","#","."],"(":[".#","#.","#.","#.",".#"],")":["#.",".#",".#",".#","#."],"<":["..#",".#.","#..",".#.","..#"],">":["#..",".#.","..#",".#.","#.."],"^":[".#.","#.#","...","...","..."],"~":["....",".#.#","#.#.","....","...."],"♥":[".#.#.","#####","#####",".###.","..#.."]," ":["..","..","..","..",".."]};function f(t,r,e){let n=Math.min(1,Math.max(0,(e-t)/(r-t)));return n*n*(3-2*n)}Object.keys(i).filter(t=>!/^[A-Z0-9 ]$/.test(t)),t.s(["ALPHA_TOP",0,.82,"CHAR_RATE",0,2.2,"EMOJI_CHAR_RATE",0,.6,"EMOJI_POOL",0,["🍎","🌹","🍓","❤️","🎈","🧨","🔴","🍊","🔥","🦊","🏀","🧡","🍑","⭐","🍋","🌻","💛","🐥","🌟","🍌","🍀","🌿","🐸","🥝","💚","🌵","🥑","💧","🌊","🫐","🐳","💙","🔵","🧊","🍇","💜","🔮","🟣","🪻","🍆","🌸","🌷","💗","🦩","🩷","🍫","🐻","🌰","🥐","🤍","☁️","🖤","⚪","⚫","🦢","🌈","🦜","🎨","🪩","🦄","✨","🍬","🎡"],"FACE_WORD_MAX",0,8,"LETTERS",0,i,"LEVELS",0,n,"ORB_INK",0,{dark:[247,247,247],light:[10,10,10]},"RAMP",0,e,"emojiAlpha",0,function(t,r){return .06+.94*o(t,r)},"emojiPx",0,function(t,r,e){return t*(.5+.5*o(r,e))},"emojiWeight",0,o,"hash",0,function(t,r){let e=43758.5453*Math.sin(127.1*t+311.7*r);return e-Math.floor(e)},"smoothstep",0,f,"undrawable",0,function(t){return Array.from(t.toUpperCase()).find(t=>!(t in i))??null}],567334);var a=t.i(271645);function s(){if(r)return r;let t=navigator,e=t.userAgentData?.platform||t.platform||"";return r=/mac|iphone|ipad|ipod/i.test(e)?"emoji":"letters"}let u=()=>()=>{};t.s(["faceGlyphs",0,s,"useFaceGlyphs",0,function(){return(0,a.useSyncExternalStore)(u,s,()=>"emoji")}],877267)},183414,t=>{"use strict";var r=t.i(41533);let e=Math.PI/180,n=t=>((t+180)%360+360)%360-180,o=null;function i(t,r,e){let n=!1;for(let o=0,i=e.length-2;o<e.length;i=o,o+=2){let f=e[o],a=e[o+1],s=e[i],u=e[i+1];a>r!=u>r&&t<(s-f)*(r-a)/(u-a)+f&&(n=!n)}return n}function f(t,r,e){for(let n of[e,e+360,e-360]){let[e,o,f,a]=t.bbox;if(!(n<e)&&!(n>o)&&!(r<f)&&!(r>a))for(let e=0;e<t.polys.length;e++){let{rings:o,bbox:f}=t.polys[e];if(!(n<f[0])&&!(n>f[1])&&!(r<f[2])&&!(r>f[3])&&i(n,r,o[0])&&!o.slice(1).some(t=>i(n,r,t)))return e}}return -1}t.s(["fitView",0,function(t,o,i,a,s){let u,h=function(t,o,i,a){let s=a?t.countries.findIndex(t=>t.code===a):-1;if(s>=0&&t.countries[s].polys.length){let r,a,u=t.countries[s],h=f(u,o,i);return{country:s,poly:h>=0?h:(r=0,a=1/0,u.polys.forEach(({bbox:t},f)=>{let s=Math.max(0,Math.abs(n(i-(t[0]+t[1])/2))-(t[1]-t[0])/2),u=Math.max(0,t[2]-o,o-t[3]),h=Math.hypot(s*Math.cos(o*e),u);h<a&&(a=h,r=f)}),r)}}let u=(r,e)=>{for(let n=0;n<t.countries.length;n++){let o=f(t.countries[n],r,e);if(o>=0)return{country:n,poly:o}}return null},h=u(o,i),l=Math.round(10*r.HERE.coastDeg);for(let t=1;!h&&t<=l;t++){let r=t/10;for(let t=0;t<8&&!h;t++)h=u(o+r*Math.sin(t*Math.PI/4),i+r*Math.cos(t*Math.PI/4))}return h}(t,o,i,s),{width:l,height:c}=a,p=o,y=i;if(h){let r=t.countries[h.country].polys,f=t=>{let r=0;for(let e=0,n=t.length-2;e<t.length;n=e,e+=2)r+=t[n]*t[e+1]-t[e]*t[n+1];return Math.abs(r/2)*Math.cos(t[1]*e)},a=h.poly,s=0;r.forEach((t,r)=>{let e=f(t.rings[0]);e>s&&(s=e,a=r)});let g=h.poly;if(a!==h.poly&&f(r[h.poly].rings[0])<.25*s){let t=r[a].bbox;4>Math.hypot(Math.max(0,t[0]-i,i-t[1])*Math.cos(o*e),Math.max(0,t[2]-o,o-t[3]))&&(g=a)}let d=[...r[g].bbox],m=[g];for(let t=0;t<3;t++)r.forEach((t,r)=>{let e=t.bbox;m.includes(r)||Math.max(0,e[0]-d[1],d[0]-e[1])>=2.5||Math.max(0,e[2]-d[3],d[2]-e[3])>=2.5||(m.push(r),d[0]=Math.min(d[0],e[0]),d[1]=Math.max(d[1],e[1]),d[2]=Math.min(d[2],e[2]),d[3]=Math.max(d[3],e[3]))});p=(d[2]+d[3])/2,y=n((d[0]+d[1])/2);let v=Math.cos(p*e),b=Math.abs(o-p),w=Math.abs(n(i-y))*v;for(let t of m){let e=r[t].rings[0];for(let t=0;t<e.length;t+=2)w=Math.max(w,Math.abs(n(e[t]-y))*v),b=Math.max(b,Math.abs(e[t+1]-p))}u=Math.min(.32*c/Math.sin(Math.min(70,Math.max(1,1.15*b))*e),.44*l/Math.sin(Math.min(80,Math.max(1,1.15*w))*e))}else u=c/2/Math.sin(8*e);return u=Math.max(a.least,Math.min(.32*c/Math.sin(e),u)),h&&(p=Math.min(89,p+.08*c/u/e)),{lat:o,lon:i,latc:p,lonc:y,radius:u,home:h?h.country:-1}},"loadWorld",0,function(){return o??=fetch("/here/world.json").then(async t=>{if(!t.ok)throw Error(`/here/world.json answered ${t.status}`);return function(t){if(t?.v!==2||!Array.isArray(t.a)||!Array.isArray(t.c))throw Error("world.json is not a map this app packs");let r=t.q,e=t.a.map(t=>{let e=new Float32Array(t.length),n=0,o=0;for(let i=0;i<t.length;i+=2)n+=t[i],o+=t[i+1],e[i]=n/r-180,e[i+1]=o/r-90;return e}),n=t=>{let r=[],n=null;for(let o of t){let t=e[o>=0?o:~o],i=t.length/2;for(let e=+!!r.length;e<i;e++){let f=o>=0?e:i-1-e,a=t[2*f];if(null!==n){for(;a-n>180;)a-=360;for(;a-n<-180;)a+=360}r.push(a,t[2*f+1]),n=a}}if(r.length>=4&&Math.abs(r[r.length-2]-r[0])>359){let t=0;for(let e=1;e<r.length;e+=2)t+=r[e];let e=t<0?-90:90;r.push(r[r.length-2],e,r[0],e)}return new Float32Array(r)},o=()=>[180,-180,90,-90],i=(t,r)=>{for(let e=0;e<r.length;e+=2)t[0]=Math.min(t[0],r[e]),t[1]=Math.max(t[1],r[e]),t[2]=Math.min(t[2],r[e+1]),t[3]=Math.max(t[3],r[e+1])};return{countries:t.c.map(({n:t,k:r,p:e})=>{let f=o();return{name:t,code:r??null,polys:e.map(t=>t.map(n).filter(t=>(t=>{let r=0;for(let e=0,n=t.length-2;e<t.length;n=e,e+=2)r+=t[n]*t[e+1]-t[e]*t[n+1];return Math.abs(r/2)})(t)>0)).filter(t=>t.length>0).map(t=>{let r=o();return i(r,t[0]),i(f,t[0]),{rings:t,bbox:r}}),bbox:f}})}}(await t.json())}).catch(t=>{throw o=null,t})},"project",0,function(t,r,n,o,i){let f=t*e,a=n*e,s=(r-o)*e;return{x:i*Math.cos(f)*Math.sin(s),y:-i*(Math.cos(a)*Math.sin(f)-Math.sin(a)*Math.cos(f)*Math.cos(s)),seen:Math.sin(a)*Math.sin(f)+Math.cos(a)*Math.cos(f)*Math.cos(s)>0}},"releaseWorld",0,function(){o=null},"wrap",0,n])},989366,t=>{"use strict";var r=t.i(55545),e=t.i(455024),n=t.i(99151),o=t.i(845110),i=t.i(281092),f=t.i(234662);t.s(["formatDistanceStrict",0,function(t,a,s){var u;let h,l,c=(0,e.getDefaultOptions)(),p=s?.locale??c.locale??r.defaultLocale,y=(l=(0,i.toDate)(t)-(0,i.toDate)(a))<0?-1:l>0?1:l;if(isNaN(y))throw RangeError("Invalid time value");let g=Object.assign({},s,{addSuffix:s?.addSuffix,comparison:y}),[d,m]=(0,o.normalizeDates)(s?.in,...y>0?[a,t]:[t,a]),v=(u=s?.roundingMethod??"round",t=>{let r=(u?Math[u]:Math.trunc)(t);return 0===r?0:r}),b=m.getTime()-d.getTime(),w=b/f.millisecondsInMinute,M=(b-((0,n.getTimezoneOffsetInMilliseconds)(m)-(0,n.getTimezoneOffsetInMilliseconds)(d)))/f.millisecondsInMinute,E=s?.unit;if("second"===(h=E||(w<1?"second":w<60?"minute":w<f.minutesInDay?"hour":M<f.minutesInMonth?"day":M<f.minutesInYear?"month":"year"))){let t=v(b/1e3);return p.formatDistance("xSeconds",t,g)}if("minute"===h){let t=v(w);return p.formatDistance("xMinutes",t,g)}if("hour"===h){let t=v(w/60);return p.formatDistance("xHours",t,g)}if("day"===h){let t=v(M/f.minutesInDay);return p.formatDistance("xDays",t,g)}if("month"===h){let t=v(M/f.minutesInMonth);return 12===t&&"month"!==E?p.formatDistance("xYears",1,g):p.formatDistance("xMonths",t,g)}else{let t=v(M/f.minutesInYear);return p.formatDistance("xYears",t,g)}}],989366)},569644,t=>{"use strict";var r=t.i(456420);let e={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};e.node;let n=(0,r.default)(e);t.s(["FolderOpen",0,n],569644)},97923,t=>{"use strict";var r=t.i(456420);let e={name:"log-in",size:24,node:[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]};e.node;let n=(0,r.default)(e);t.s(["LogIn",0,n],97923)},467034,(t,r,e)=>{var n={872:function(t,r){"use strict";r.byteLength=function(t){var r=s(t),e=r[0],n=r[1];return(e+n)*3/4-n},r.toByteArray=function(t){var r,e,i=s(t),f=i[0],a=i[1],u=new o((f+a)*3/4-a),h=0,l=a>0?f-4:f;for(e=0;e<l;e+=4)r=n[t.charCodeAt(e)]<<18|n[t.charCodeAt(e+1)]<<12|n[t.charCodeAt(e+2)]<<6|n[t.charCodeAt(e+3)],u[h++]=r>>16&255,u[h++]=r>>8&255,u[h++]=255&r;return 2===a&&(r=n[t.charCodeAt(e)]<<2|n[t.charCodeAt(e+1)]>>4,u[h++]=255&r),1===a&&(r=n[t.charCodeAt(e)]<<10|n[t.charCodeAt(e+1)]<<4|n[t.charCodeAt(e+2)]>>2,u[h++]=r>>8&255,u[h++]=255&r),u},r.fromByteArray=function(t){for(var r,n=t.length,o=n%3,i=[],f=0,a=n-o;f<a;f+=16383)i.push(function(t,r,n){for(var o,i=[],f=r;f<n;f+=3)o=(t[f]<<16&0xff0000)+(t[f+1]<<8&65280)+(255&t[f+2]),i.push(e[o>>18&63]+e[o>>12&63]+e[o>>6&63]+e[63&o]);return i.join("")}(t,f,f+16383>a?a:f+16383));return 1===o?i.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):2===o&&i.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),i.join("")};for(var e=[],n=[],o="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,a=i.length;f<a;++f)e[f]=i[f],n[i.charCodeAt(f)]=f;function s(t){var r=t.length;if(r%4>0)throw Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");-1===e&&(e=r);var n=e===r?0:4-e%4;return[e,n]}n[45]=62,n[95]=63},230:function(t,r,e){"use strict";var n=e(872),o=e(321),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,a.prototype),r}function a(t,r,e){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return h(t)}return s(t,r,e)}function s(t,r,e){if("string"==typeof t){var n=t,o=r;if(("string"!=typeof o||""===o)&&(o="utf8"),!a.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|p(n,o),s=f(i),u=s.write(n,o);return u!==i&&(s=s.slice(0,u)),s}if(ArrayBuffer.isView(t))return l(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(O(t,ArrayBuffer)||t&&O(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(O(t,SharedArrayBuffer)||t&&O(t.buffer,SharedArrayBuffer)))return function(t,r,e){var n;if(r<0||t.byteLength<r)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===r&&void 0===e?new Uint8Array(t):void 0===e?new Uint8Array(t,r):new Uint8Array(t,r,e),a.prototype),n}(t,r,e);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var h=t.valueOf&&t.valueOf();if(null!=h&&h!==t)return a.from(h,r,e);var y=function(t){if(a.isBuffer(t)){var r=0|c(t.length),e=f(r);return 0===e.length||t.copy(e,0,0,r),e}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?f(0):l(t):"Buffer"===t.type&&Array.isArray(t.data)?l(t.data):void 0}(t);if(y)return y;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),r,e);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return u(t),f(t<0?0:0|c(t))}function l(t){for(var r=t.length<0?0:0|c(t.length),e=f(r),n=0;n<r;n+=1)e[n]=255&t[n];return e}r.Buffer=a,r.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,r,e){return s(t,r,e)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,r,e){return(u(t),t<=0)?f(t):void 0!==r?"string"==typeof e?f(t).fill(r,e):f(t).fill(r):f(t)},a.allocUnsafe=function(t){return h(t)},a.allocUnsafeSlow=function(t){return h(t)};function c(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,r){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||O(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return T(t).length;default:if(o)return n?-1:B(t).length;r=(""+r).toLowerCase(),o=!0}}function y(t,r,e){var o,i,f,a=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0||(e>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var o="",i=r;i<e;++i)o+=R[t[i]];return o}(this,r,e);case"utf8":case"utf-8":return v(this,r,e);case"ascii":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(127&t[o]);return n}(this,r,e);case"latin1":case"binary":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(t[o]);return n}(this,r,e);case"base64":return o=this,i=r,f=e,0===i&&f===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(i,f));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,r,e){for(var n=t.slice(r,e),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,r,e);default:if(a)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function g(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function d(t,r,e,n,o){var i;if(0===t.length)return -1;if("string"==typeof e?(n=e,e=0):e>0x7fffffff?e=0x7fffffff:e<-0x80000000&&(e=-0x80000000),(i=e*=1)!=i&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length)if(o)return -1;else e=t.length-1;else if(e<0)if(!o)return -1;else e=0;if("string"==typeof r&&(r=a.from(r,n)),a.isBuffer(r))return 0===r.length?-1:m(t,r,e,n,o);if("number"==typeof r){if(r&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(t,r,e);else return Uint8Array.prototype.lastIndexOf.call(t,r,e);return m(t,[r],e,n,o)}throw TypeError("val must be string, number or Buffer")}function m(t,r,e,n,o){var i,f=1,a=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return -1;f=2,a/=2,s/=2,e/=2}function u(t,r){return 1===f?t[r]:t.readUInt16BE(r*f)}if(o){var h=-1;for(i=e;i<a;i++)if(u(t,i)===u(r,-1===h?0:i-h)){if(-1===h&&(h=i),i-h+1===s)return h*f}else -1!==h&&(i-=i-h),h=-1}else for(e+s>a&&(e=a-s),i=e;i>=0;i--){for(var l=!0,c=0;c<s;c++)if(u(t,i+c)!==u(r,c)){l=!1;break}if(l)return i}return -1}a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,r){if(O(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),O(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(t)||!a.isBuffer(r))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var e=t.length,n=r.length,o=0,i=Math.min(e,n);o<i;++o)if(t[o]!==r[o]){e=t[o],n=r[o];break}return e<n?-1:+(n<e)},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,r){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===r)for(e=0,r=0;e<t.length;++e)r+=t[e].length;var e,n=a.allocUnsafe(r),o=0;for(e=0;e<t.length;++e){var i=t[e];if(O(i,Uint8Array)&&(i=a.from(i)),!a.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)g(this,r,r+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)g(this,r,r+3),g(this,r+1,r+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)g(this,r,r+7),g(this,r+1,r+6),g(this,r+2,r+5),g(this,r+3,r+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?v(this,0,t):y.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(t,r,e,n,o){if(O(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return -1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,f=e-r,s=Math.min(i,f),u=this.slice(n,o),h=t.slice(r,e),l=0;l<s;++l)if(u[l]!==h[l]){i=u[l],f=h[l];break}return i<f?-1:+(f<i)},a.prototype.includes=function(t,r,e){return -1!==this.indexOf(t,r,e)},a.prototype.indexOf=function(t,r,e){return d(this,t,r,e,!0)},a.prototype.lastIndexOf=function(t,r,e){return d(this,t,r,e,!1)};function v(t,r,e){e=Math.min(t.length,e);for(var n=[],o=r;o<e;){var i,f,a,s,u=t[o],h=null,l=u>239?4:u>223?3:u>191?2:1;if(o+l<=e)switch(l){case 1:u<128&&(h=u);break;case 2:(192&(i=t[o+1]))==128&&(s=(31&u)<<6|63&i)>127&&(h=s);break;case 3:i=t[o+1],f=t[o+2],(192&i)==128&&(192&f)==128&&(s=(15&u)<<12|(63&i)<<6|63&f)>2047&&(s<55296||s>57343)&&(h=s);break;case 4:i=t[o+1],f=t[o+2],a=t[o+3],(192&i)==128&&(192&f)==128&&(192&a)==128&&(s=(15&u)<<18|(63&i)<<12|(63&f)<<6|63&a)>65535&&s<1114112&&(h=s)}null===h?(h=65533,l=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),o+=l}var c=n,p=c.length;if(p<=4096)return String.fromCharCode.apply(String,c);for(var y="",g=0;g<p;)y+=String.fromCharCode.apply(String,c.slice(g,g+=4096));return y}function b(t,r,e){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+r>e)throw RangeError("Trying to access beyond buffer length")}function w(t,r,e,n,o,i){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<i)throw RangeError('"value" argument is out of bounds');if(e+n>t.length)throw RangeError("Index out of range")}function M(t,r,e,n,o,i){if(e+n>t.length||e<0)throw RangeError("Index out of range")}function E(t,r,e,n,i){return r*=1,e>>>=0,i||M(t,r,e,4,34028234663852886e22,-34028234663852886e22),o.write(t,r,e,n,23,4),e+4}function A(t,r,e,n,i){return r*=1,e>>>=0,i||M(t,r,e,8,17976931348623157e292,-17976931348623157e292),o.write(t,r,e,n,52,8),e+8}a.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else if(isFinite(r))r>>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,f,a,s,u,h,l,c=this.length-r;if((void 0===e||e>c)&&(e=c),t.length>0&&(e<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n))>o&&(n=o):n=o;var i=r.length;n>i/2&&(n=i/2);for(var f=0;f<n;++f){var a,s=parseInt(r.substr(2*f,2),16);if((a=s)!=a)break;t[e+f]=s}return f}(this,t,r,e);case"utf8":case"utf-8":return o=r,i=e,U(B(t,this.length-o),this,o,i);case"ascii":return f=r,a=e,U(I(t),this,f,a);case"latin1":case"binary":return function(t,r,e,n){return U(I(r),t,e,n)}(this,t,r,e);case"base64":return s=r,u=e,U(T(t),this,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h=r,l=e,U(function(t,r){for(var e,n,o=[],i=0;i<t.length&&!((r-=2)<0);++i)n=(e=t.charCodeAt(i))>>8,o.push(e%256),o.push(n);return o}(t,this.length-h),this,h,l);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t);var n=this.subarray(t,r);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUIntLE=function(t,r,e){t>>>=0,r>>>=0,e||b(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n},a.prototype.readUIntBE=function(t,r,e){t>>>=0,r>>>=0,e||b(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},a.prototype.readUInt8=function(t,r){return t>>>=0,r||b(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,r){return t>>>=0,r||b(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,r){return t>>>=0,r||b(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,r){return t>>>=0,r||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUInt32BE=function(t,r){return t>>>=0,r||b(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||b(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*r)),n},a.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||b(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*r)),i},a.prototype.readInt8=function(t,r){return(t>>>=0,r||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,r){t>>>=0,r||b(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?0xffff0000|e:e},a.prototype.readInt16BE=function(t,r){t>>>=0,r||b(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?0xffff0000|e:e},a.prototype.readInt32LE=function(t,r){return t>>>=0,r||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,r){return t>>>=0,r||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,r){return t>>>=0,r||b(t,4,this.length),o.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,r){return t>>>=0,r||b(t,4,this.length),o.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,r){return t>>>=0,r||b(t,8,this.length),o.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,r){return t>>>=0,r||b(t,8,this.length),o.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;w(this,t,r,e,o,0)}var i=1,f=0;for(this[r]=255&t;++f<e&&(i*=256);)this[r+f]=t/i&255;return r+e},a.prototype.writeUIntBE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;w(this,t,r,e,o,0)}var i=e-1,f=1;for(this[r+i]=255&t;--i>=0&&(f*=256);)this[r+i]=t/f&255;return r+e},a.prototype.writeUInt8=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,1,255,0),this[r]=255&t,r+1},a.prototype.writeUInt16LE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},a.prototype.writeUInt16BE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},a.prototype.writeUInt32LE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,4,0xffffffff,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},a.prototype.writeUInt32BE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,4,0xffffffff,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},a.prototype.writeIntLE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var o=Math.pow(2,8*e-1);w(this,t,r,e,o-1,-o)}var i=0,f=1,a=0;for(this[r]=255&t;++i<e&&(f*=256);)t<0&&0===a&&0!==this[r+i-1]&&(a=1),this[r+i]=(t/f|0)-a&255;return r+e},a.prototype.writeIntBE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var o=Math.pow(2,8*e-1);w(this,t,r,e,o-1,-o)}var i=e-1,f=1,a=0;for(this[r+i]=255&t;--i>=0&&(f*=256);)t<0&&0===a&&0!==this[r+i+1]&&(a=1),this[r+i]=(t/f|0)-a&255;return r+e},a.prototype.writeInt8=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},a.prototype.writeInt16LE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},a.prototype.writeInt16BE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},a.prototype.writeInt32LE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,4,0x7fffffff,-0x80000000),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},a.prototype.writeInt32BE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},a.prototype.writeFloatLE=function(t,r,e){return E(this,t,r,!0,e)},a.prototype.writeFloatBE=function(t,r,e){return E(this,t,r,!1,e)},a.prototype.writeDoubleLE=function(t,r,e){return A(this,t,r,!0,e)},a.prototype.writeDoubleBE=function(t,r,e){return A(this,t,r,!1,e)},a.prototype.copy=function(t,r,e,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e||0===t.length||0===this.length)return 0;if(r<0)throw RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var o=n-e;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(r,e,n);else if(this===t&&e<r&&r<n)for(var i=o-1;i>=0;--i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,n),r);return o},a.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length<r||this.length<e)throw RangeError("Out of range index");if(e<=r)return this;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o<e;++o)this[o]=t;else{var f=a.isBuffer(t)?t:a.from(t,n),s=f.length;if(0===s)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<e-r;++o)this[o+r]=f[o%s]}return this};var x=/[^+/0-9A-Za-z-_]/g;function B(t,r){r=r||1/0;for(var e,n=t.length,o=null,i=[],f=0;f<n;++f){if((e=t.charCodeAt(f))>55295&&e<57344){if(!o){if(e>56319||f+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=(o-55296<<10|e-56320)+65536}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else if(e<1114112){if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}else throw Error("Invalid code point")}return i}function I(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}function T(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,r,e,n){for(var o=0;o<n&&!(o+e>=r.length)&&!(o>=t.length);++o)r[o+e]=t[o];return o}function O(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}var R=function(){for(var t="0123456789abcdef",r=Array(256),e=0;e<16;++e)for(var n=16*e,o=0;o<16;++o)r[n+o]=t[e]+t[o];return r}()},321:function(t,r){r.read=function(t,r,e,n,o){var i,f,a=8*o-n-1,s=(1<<a)-1,u=s>>1,h=-7,l=e?o-1:0,c=e?-1:1,p=t[r+l];for(l+=c,i=p&(1<<-h)-1,p>>=-h,h+=a;h>0;i=256*i+t[r+l],l+=c,h-=8);for(f=i&(1<<-h)-1,i>>=-h,h+=n;h>0;f=256*f+t[r+l],l+=c,h-=8);if(0===i)i=1-u;else{if(i===s)return f?NaN:1/0*(p?-1:1);f+=Math.pow(2,n),i-=u}return(p?-1:1)*f*Math.pow(2,i-n)},r.write=function(t,r,e,n,o,i){var f,a,s,u=8*i-o-1,h=(1<<u)-1,l=h>>1,c=5960464477539062e-23*(23===o),p=n?0:i-1,y=n?1:-1,g=+(r<0||0===r&&1/r<0);for(isNaN(r=Math.abs(r))||r===1/0?(a=+!!isNaN(r),f=h):(f=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-f))<1&&(f--,s*=2),f+l>=1?r+=c/s:r+=c*Math.pow(2,1-l),r*s>=2&&(f++,s/=2),f+l>=h?(a=0,f=h):f+l>=1?(a=(r*s-1)*Math.pow(2,o),f+=l):(a=r*Math.pow(2,l-1)*Math.pow(2,o),f=0));o>=8;t[e+p]=255&a,p+=y,a/=256,o-=8);for(f=f<<o|a,u+=o;u>0;t[e+p]=255&f,p+=y,f/=256,u-=8);t[e+p-y]|=128*g}}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var e=o[t]={exports:{}},f=!0;try{n[t](e,e.exports,i),f=!1}finally{f&&delete o[t]}return e.exports}i.ab="/ROOT/node_modules/next/dist/compiled/buffer/",r.exports=i(230)}]);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,496336,841172,e=>{"use strict";var t=e.i(843476),n=e.i(716327),r=e.i(271645),i=e.i(647163);e.s(["FoldedText",0,function({text:e,subject:a,clamp:s="line-clamp-3",tall:l="max-h-40",className:o}){let[d,c]=(0,r.useState)(!1),[u,f]=(0,r.useState)(!1),p=(0,r.useRef)(null),[m,h]=(0,r.useState)(e);return m!==e&&(h(e),c(!1)),(0,r.useEffect)(()=>{let e=p.current;e&&!d&&f(e.scrollHeight>e.clientHeight+1)},[d,e]),(0,t.jsxs)("div",{className:(0,i.cn)("flex items-start gap-1",o),children:[(0,t.jsx)("p",{ref:p,className:(0,i.cn)("min-w-0 flex-1 text-[13px] leading-snug break-keep wrap-anywhere",d?(0,i.cn)(l,"overflow-y-auto scrollbar-none"):s),children:e}),(u||d)&&(0,t.jsx)("button",{type:"button",onClick:()=>c(e=>!e),"aria-label":d?`Fold the ${a}`:`Read the whole ${a}`,className:"shrink-0 rounded-md p-0.5 opacity-60 outline-none transition-opacity hover:opacity-100 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(n.ChevronDown,{className:(0,i.cn)("size-3.5",d&&"rotate-180")})})]})}],496336);var a=e.i(95187);let s=(0,a.createServerReference)("7f1cf97c42c6abe2118fe8fe771a800fdb1fd95b48",a.callServer,void 0,a.findSourceMapURL,"answerThreadAction");e.s(["answerThreadAction",0,s],841172)},947627,e=>{"use strict";var t=e.i(843476),n=e.i(647163);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,n.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,n.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,n.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,n.cn)("h-9 px-2 text-left align-middle font-mono text-[11px] font-normal tracking-[0.1em] whitespace-nowrap text-muted-foreground uppercase [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,n.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,n.cn)("border-b border-border/60 transition-colors data-[state=selected]:bg-muted hover:bg-muted/40",e),...r})}])},853483,e=>{"use strict";var t=e.i(843476),n=e.i(867927),r=e.i(271645),i=e.i(511769),a=e.i(798120),s=e.i(167881),l=e.i(660302),o=e.i(671428),d=e.i(41533),c=e.i(975226),u=e.i(357360),f=e.i(399512),p=e.i(978411),m=e.i(989409),h=e.i(609856),g=e.i(283653),x=e.i(647163);let b="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",y="px-1 text-[12.5px] leading-5 text-muted-foreground break-keep";function v(e,t){return e?.find(e=>e.name===t)??{name:t}}function w({path:e,note:n}){let{data:r}=(0,g.useServerRoute)(a.queryKey.bot),[i,s]=(0,h.useServerAction)(u.tellFileThreadAction,{onOk:()=>(0,g.revalidate)(a.queryKey.threads)}),o=v(r,n.to),d="running"===n.status,c=async t=>{try{let r=await i(e,t,n.thread.id);return p.screenActs.announce({kind:"answered",id:r.id,label:r.label,answer:`About ${e}: ${t}`,recipient:r.to}),!0}catch{return!1}};return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5",children:[n.paused?(0,t.jsx)("p",{className:(0,x.cn)(y,"line-clamp-2"),children:`Paused: ${n.paused} Sending this picks it up again.`}):d?(0,t.jsx)("p",{className:y,children:(0,t.jsx)(l.ShinyText,{text:`${o.name} is working \xb7 it reads this before its next step`})}):null,(0,t.jsx)(f.DraftComposer,{threadId:n.thread.id,recipient:o.name,draftKey:`file:${e}`,send:c,busy:s,claimsDrops:!1,placeholder:d?`What's off? ${o.name} reads this before its next step`:`Anything to change here? ${o.name} picks the thread back up`,label:`Note to ${o.name} about this file`,leading:(0,t.jsxs)("span",{className:"mt-1 inline-flex h-5 shrink-0 items-center gap-1 self-start rounded-full bg-muted pr-2 pl-[3px] text-[12px] leading-none font-medium",children:[(0,t.jsx)("span",{className:"pl-1 text-muted-foreground",children:"To"}),(0,t.jsx)(f.Face,{bot:o,size:14}),(0,t.jsx)("span",{className:"max-w-32 truncate",children:o.name})]}),className:b}),(0,t.jsx)("p",{className:"px-1 font-mono text-[11px] text-muted-foreground",children:`${o.name} reads it with this file named \xb7 the answer shows in the thread`})]})}function j({path:e,suggested:n,lead:i,onThread:s}){let{data:l}=(0,g.useServerRoute)(a.queryKey.bot),[d,u]=(0,r.useState)(null),[p,m]=(0,h.useServerAction)(c.handFileAction,{onOk:e=>{(0,g.revalidate)(a.queryKey.threads),s(e.id)}});if(!l)return(0,t.jsx)(o.Skeleton,{className:"h-10 w-full rounded-2xl"});let x=l.filter(e=>!e.disabled),v=x.find(e=>e.name===(d??n))??x[0]??null;if(!v)return(0,t.jsx)("p",{className:y,children:"No bot is switched on to hand it to. Turn one on in Settings › Bots."});let w=async t=>{try{return await p(v.name,e,t),!0}catch{return!1}};return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5",children:[(0,t.jsx)("p",{className:y,children:i}),(0,t.jsx)(f.DraftComposer,{threadId:`file:${e}`,recipient:v.name,send:w,busy:m,claimsDrops:!1,placeholder:`Hand this file to ${v.name} as a new job`,label:`New job for ${v.name} with this file`,leading:(0,t.jsx)(f.RecipientPicker,{current:v,bots:x,disabled:m,onPick:u}),className:b})]})}e.s(["FileNoteBar",0,function({path:e,note:n,failure:i,onThread:a,onOpenThread:l}){let[d,c]=(0,r.useState)(!1);if(i)return(0,t.jsx)("p",{className:"px-1 text-xs text-destructive",children:`Could not tell where a note about this file would go: ${(0,x.errorToString)(i)}`});if(!n)return(0,t.jsx)(o.Skeleton,{className:"h-10 w-full rounded-2xl"});switch(n.state){case"gone":return(0,t.jsx)("p",{className:y,children:"This file is no longer on disk."});case"asking":return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl py-2 pr-2 pl-3.5 ring-1 ring-waiting/40",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)("span",{className:(0,x.cn)("text-[12.5px] font-medium",x.WAITING_INK),children:`${n.bot} is waiting on your answer`}),(0,t.jsx)("span",{className:"line-clamp-2 text-[13px] leading-snug break-keep wrap-anywhere",children:n.question})]}),(0,t.jsx)(s.Button,{size:"sm",className:"shrink-0 rounded-full",onClick:()=>l(n.thread.id),children:"Answer in the thread"})]});case"refused":if(d)return(0,t.jsx)(j,{path:e,suggested:null,lead:"What you send starts a new job, with this file.",onThread:a});return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl bg-muted/60 py-2 pr-2 pl-3.5",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 text-[13px] leading-snug break-keep wrap-anywhere",children:n.why}),"deleted"===n.reason?(0,t.jsx)(s.Button,{size:"sm",variant:"outline",className:"shrink-0 rounded-full",onClick:()=>c(!0),children:"Hand to another bot"}):(0,t.jsx)(s.Button,{size:"sm",variant:"outline",className:"shrink-0 rounded-full",onClick:()=>(0,m.openSettings)("keys"),children:"Open Settings"})]});case"none":return(0,t.jsx)(j,{path:e,suggested:n.bot,lead:`${n.threadDeleted?"This file's thread was deleted.":"No thread's report names this file."} What you send starts a new one.`,onThread:a});case"open":return(0,t.jsx)(w,{path:e,note:n})}},"FileThreadChip",0,function({note:e,onOpen:r}){let{data:i}=(0,g.useServerRoute)(a.queryKey.bot);if(!e||!("thread"in e))return null;let{thread:s}=e;return(0,t.jsxs)("button",{type:"button",onClick:()=>r(s.id),"aria-label":`Open the thread ${s.label}`,className:"inline-flex h-6.5 max-w-56 shrink-0 items-center gap-1.5 rounded-full bg-muted pr-2 pl-1.5 text-[12px] font-medium outline-none transition-colors hover:bg-muted-foreground/15 focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(f.Face,{bot:v(i,s.bot),size:14}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:s.label}),(0,t.jsx)(n.ChevronRight,{className:"size-3 shrink-0 text-muted-foreground"})]})},"useFileNote",0,function(e,t){let[n,s]=(0,r.useState)(t);(0,r.useEffect)(()=>s(t),[e,t]);let l=null!==e&&(e.startsWith(`${d.PATHS.artifacts}/`)||null!==n),{data:o,error:c}=(0,g.useServerRoute)(l&&a.queryKey.fileNote(e,n),{onError:()=>void 0});return(0,i.useAppEvent)({files:()=>void(0,g.revalidate)(a.queryKey.fileNotes)}),{filed:l,file:o?.file??null,note:o?.note,failure:c,follow:s}}])},399512,709190,e=>{"use strict";var t=e.i(843476),n=e.i(96892),r=e.i(716327),i=e.i(24071),a=e.i(867927),s=e.i(931619),l=e.i(919191),o=e.i(632781),d=e.i(64801),c=e.i(250832),u=e.i(929272),f=e.i(263676),p=e.i(271645),m=e.i(798120),h=e.i(167881),g=e.i(463415),x=e.i(496336),b=e.i(683408),y=e.i(660302),v=e.i(184762),w=e.i(265402),j=e.i(841172),k=e.i(234563),N=e.i(445434),S=e.i(451888),C=e.i(635963),M=e.i(978411),_=e.i(989409),R=e.i(702377),O=e.i(6799),z=e.i(41533),E=e.i(83928),A=e.i(95187);let T=(0,A.createServerReference)("7f012bd18ed92f7ce7ca95d4497d57250ee59ecda3",A.callServer,void 0,A.findSourceMapURL,"giveFilesAction");var P=e.i(609856),$=e.i(647163);let I=[],F=()=>I,D=()=>()=>{};function L(e){return e.size<=z.GIVEN_FILES.maxBytes||(O.toast.add({type:"error",title:`${e.name} is larger than ${Math.round(z.GIVEN_FILES.maxBytes/1024/1024)} MB.`}),!1)}function B(e){let t=(0,p.useRef)(e?.onKept);t.current=e?.onKept;let n=e?.held,[r,i]=(0,p.useState)([]),a=(0,p.useSyncExternalStore)(n?.subscribe??D,n?.read??F,F),s=n?a:r,l=(0,p.useCallback)(e=>{n?n.write(e(n.read())):i(e)},[n]),[o]=(0,P.useServerAction)(T),d=(0,p.useCallback)(async e=>{let n=e.filter(L),r=z.GIVEN_FILES.perMessage-s.length;n.length>r&&O.toast.add({type:"error",title:`At most ${z.GIVEN_FILES.perMessage} files at a time.`});let i=n.slice(0,Math.max(0,r));if(!i.length)return[];let a=i.map(e=>({key:crypto.randomUUID(),name:e.name,bytes:e.size,path:null}));l(e=>[...e,...a]);let d=new FormData;for(let e of i)d.append("file",e);try{let e=await o(d),n=t.current?.(e);return l(t=>t.map(t=>{let r=a.findIndex(e=>e.key===t.key);return r<0?t:{...t,path:e[r]??null,note:n}})),e}catch{return l(e=>e.filter(e=>!a.some(t=>t.key===e.key))),[]}},[s.length,o,l]);return{files:s,take:d,keepApart:(0,p.useCallback)(async e=>{if(!L(e))return null;let t=new FormData;t.append("file",e);try{return(await o(t))[0]??null}catch{return null}},[o]),remove:e=>l(t=>t.filter(t=>t.key!==e)),clear:()=>l(()=>[]),arriving:s.some(e=>null===e.path),paths:s.flatMap(e=>e.path??[]),withPaths:e=>[e.trim(),...s.flatMap(e=>e.path??[])].filter(Boolean).join("\n")}}function K({files:e,onRemove:n,dense:r=!1,children:i,className:a}){let s=r?"size-8 rounded-lg":"size-10 rounded-[9px]";return(0,t.jsxs)("div",{className:(0,$.cn)("flex flex-wrap gap-1.5",a),children:[e.map(e=>(0,t.jsxs)("span",{className:(0,$.cn)("flex max-w-64 items-center bg-muted/70",r?"h-10.5 gap-2 rounded-xl py-1 pr-1.5 pl-1":"h-13 gap-2.5 rounded-[14px] py-1.5 pr-2 pl-1.5"),children:[e.path?(0,t.jsx)(E.FileThumb,{path:e.path,bytes:e.bytes,className:(0,$.cn)("shrink-0 overflow-hidden ring-1 ring-foreground/6",s)}):(0,t.jsx)("span",{className:(0,$.cn)("grid shrink-0 place-items-center bg-background text-muted-foreground ring-1 ring-foreground/6",s),children:(0,t.jsx)(o.Loader2,{className:"size-3.5 animate-spin"})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,t.jsx)("span",{className:(0,$.cn)("truncate",r?"text-xs leading-4":"text-[12.5px] leading-4.5"),children:e.name}),(0,t.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[U(e.bytes),e.note&&` \xb7 ${e.note}`]})]}),(0,t.jsx)("button",{type:"button","aria-label":`Take ${e.name} out`,onClick:()=>n(e.key),className:"grid size-5 shrink-0 place-items-center rounded-full text-muted-foreground outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(f.X,{className:"size-3.5"})})]},e.key)),i]})}let q=null,W={claim:e=>(q=e,()=>{q===e&&(q=null)}),offer:(e,t)=>!!q&&!!e?.closest?.("[data-room]")&&(q(t),!0)},U=e=>e<1048576?`${Math.max(1,Math.round(e/1024))} KB`:`${(e/1024/1024).toFixed(1)} MB`;e.s(["GivenFiles",0,K,"roomDrop",0,W,"useGivenFiles",0,B],709190);var H=e.i(319841),V=e.i(283653);function G({className:e,children:n}){return(0,t.jsx)("div",{className:(0,$.cn)("flex min-w-0 flex-col gap-2.5 rounded-[18px] bg-muted py-2 pr-2 pl-3.5",e),children:n})}function J({bot:e,word:n,children:r}){return(0,t.jsxs)("div",{className:"flex min-h-7 min-w-0 items-center gap-1.5",children:[(0,t.jsx)("span",{title:e.name,className:"shrink-0 leading-none",children:(0,t.jsx)(Z,{bot:e,size:16})}),(0,t.jsx)("span",{className:(0,$.cn)("truncate text-[12px] leading-4 font-medium",$.WAITING_INK),children:n}),r]})}function X({options:e,picked:n,busy:r,onChoose:i}){return(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.map(e=>(0,t.jsxs)(h.Button,{type:"button",size:"sm",variant:"ghost",loading:n===e,disabled:r,onClick:()=>i(e),"data-continue":e===S.THREAD_CONTINUE?"":void 0,className:"h-7 gap-1.5 rounded-full bg-background px-3 text-[12.5px] hover:bg-background/60 dark:hover:bg-background/60",children:[e===S.THREAD_CONTINUE&&n!==e&&(0,t.jsx)(s.ChevronsRight,{className:"size-3.5 text-muted-foreground"}),e]},e))})}function Y({threadId:e,recipient:r,draftKey:i,send:a,busy:s,placeholder:l,label:c,autoFocus:u=!1,onEscape:f,leading:m,trailing:g,className:x,claimsDrops:b=!0}){let[y,w]=(0,p.useState)(()=>M.threadDrafts.get(e,r,i)),[j,k]=(0,p.useState)(!1),N=t=>{w(t),M.threadDrafts.set(e,r,t,i)},S=B({held:(0,p.useMemo)(()=>M.threadDrafts.files(e,r,i),[e,r,i])}),C=(0,p.useRef)(null),{take:_}=S;(0,p.useEffect)(()=>b?W.claim(e=>void _(e)):void 0,[_,b]);let R=!!y.trim()&&!s&&!S.arriving,O=async()=>{R&&(k(!0),await a(S.withPaths(y))&&(N(""),S.clear()),k(!1))};return(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),O()},className:(0,$.cn)("flex min-w-0 flex-wrap items-end gap-1",x),children:[S.files.length>0&&(0,t.jsx)(K,{dense:!0,files:S.files,onRemove:S.remove,className:"w-full pb-1"}),m,(0,t.jsx)(v.Textarea,{value:y,rows:1,readOnly:s,"aria-busy":s,autoFocus:u,onChange:e=>N(e.target.value),onPaste:e=>{let t=[...e.clipboardData.files];t.length&&(e.preventDefault(),_(t))},onKeyDown:e=>{let t=(0,H.composing)(e);if("Escape"===e.key&&f&&!t){e.preventDefault(),f();return}"Enter"!==e.key||e.shiftKey||t||(e.preventDefault(),O())},placeholder:l,"aria-label":c,className:"max-h-32 min-h-0 min-w-0 flex-1 resize-none border-0 bg-transparent px-0 py-1 text-[13px] leading-5 shadow-none focus-visible:ring-0 dark:bg-transparent"}),(0,t.jsx)("input",{ref:C,type:"file",multiple:!0,hidden:!0,onChange:e=>{_([...e.target.files??[]]),e.target.value=""}}),(0,t.jsx)(h.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:s,"aria-label":"Add files",onClick:()=>C.current?.click(),className:"rounded-full text-muted-foreground",children:(0,t.jsx)(d.Paperclip,{})}),g,(0,t.jsx)(h.Button,{type:"submit",size:"icon-sm",variant:R?"default":"ghost",disabled:!R,"aria-label":"Send",className:"rounded-full",children:j?(0,t.jsx)(o.Loader2,{className:"animate-spin"}):(0,t.jsx)(n.ArrowUp,{})})]})}function Q({current:e,bots:n,disabled:i,onPick:a}){return(0,t.jsxs)(g.DropdownMenu,{children:[(0,t.jsxs)(g.DropdownMenuTrigger,{render:(0,t.jsx)("button",{type:"button",disabled:i,"aria-label":`Message ${e.name}; choose another bot`,className:"mt-1 inline-flex h-5 shrink-0 items-center gap-1 self-start rounded-full bg-muted pr-1.5 pl-[3px] text-[12px] leading-none font-medium outline-none transition-colors hover:bg-muted-foreground/15 focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50"}),children:[(0,t.jsx)("span",{className:"pl-1 text-muted-foreground",children:"To"}),(0,t.jsx)(Z,{bot:e,size:14}),(0,t.jsx)("span",{className:"max-w-32 truncate",children:e.name}),(0,t.jsx)(r.ChevronDown,{className:"size-3 shrink-0 text-muted-foreground"})]}),(0,t.jsx)(g.DropdownMenuContent,{align:"start",children:(0,t.jsx)(g.DropdownMenuGroup,{children:n.map(e=>(0,t.jsxs)(g.DropdownMenuItem,{onClick:()=>a(e.name),children:[(0,t.jsx)(Z,{bot:e,size:16}),e.name]},e.name))})})]})}function Z({bot:e,size:n}){return(0,t.jsx)(C.BotMark,{size:n,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"})}function ee(){let[e,t]=(0,P.useServerAction)(j.answerThreadAction,{onOk:()=>(0,V.revalidate)(m.queryKey.threads)});return[async(t,n,r,i)=>{let a=n.trim();if(!a)return!1;try{let n=await e(t.id,a,r,i);return M.screenActs.announce({kind:"answered",id:n.id,label:n.label,answer:a,recipient:r,replyTo:i}),!0}catch{return!1}},t]}e.s(["DraftComposer",0,Y,"Face",0,Z,"RecipientPicker",0,Q,"ThreadReply",0,function({thread:e,status:n,faces:r=[],to:s=null,className:d,claimsDrops:g=!0}){let[v,j]=(0,p.useState)(),[C,O]=(0,p.useState)(()=>M.threadDrafts.recipient(e.id)??e.bot),[z,E]=(0,p.useState)(!1),[A,T]=(0,p.useState)(null),[I,F]=(0,p.useState)({id:e.id,bot:e.bot});(I.id!==e.id||I.bot!==e.bot)&&(F({id:e.id,bot:e.bot}),O(M.threadDrafts.recipient(e.id)??e.bot),j(void 0),E(!1)),(0,p.useEffect)(()=>{s&&M.threadDrafts.tab(e.id)!==s&&(M.threadDrafts.follow(e.id,s),O(s))},[e.id,s]);let D=e.room.participants,L=e.room.questions,B=Math.max(0,L.findIndex(e=>e.id===v)),K=L[B],q="waiting"===n?e.ask:null,W=(0,S.isAppStop)(q),U=K?.bot??(D.some(e=>e.bot===C)?C:e.bot),H=K?.id,[Z,et]=ee(),[en,er]=(0,P.useServerAction)(k.cancelThreadAction,{onOk:e=>{(0,V.revalidate)(m.queryKey.threads),M.screenActs.announce({kind:"stopped",id:e.id,label:e.label})}}),ei=et||er,ea=e.room.deliveries.filter(e=>!e.delivered),[es,el]=(0,P.useServerAction)(N.withdrawStepInAction,{onOk:()=>(0,V.revalidate)(m.queryKey.threads)}),eo=ea.map(e=>`${e.bot}: ${e.text}`).join(" · "),ed=D.filter(e=>"running"===e.state).map(e=>e.bot),ec=ed.join(", ")||e.bot,eu="running"===n&&D.some(e=>e.bot===U&&("running"===e.state||"queued"===e.state)),ef="running"===n&&!eu,ep=U!==e.bot,em=e=>r.find(t=>t.name===e)??{name:e},eh=async t=>{if(ei)return!1;let n=await Z(e,t,U,H);return n&&eu&&E(!1),n},eg=async e=>{T(e),await eh(e),T(null)},ex=(r=!1)=>"running"===n||"waiting"===n?(0,t.jsxs)(h.Button,{type:"button",size:"sm",variant:"ghost",loading:er,disabled:ei,onClick:()=>en(e.id),"aria-label":"Stop this thread",className:(0,$.cn)("h-7 shrink-0 gap-1.5 rounded-full px-2.5 text-[12px]",r&&"bg-background px-3 hover:bg-background/60 dark:hover:bg-background/60"),children:[!er&&(0,t.jsx)(u.Square,{className:"size-2.5 fill-current"}),"Stop"]}):null;if(K){let n=K.options??[],r=K.text;return(0,t.jsxs)(G,{className:d,children:[(0,t.jsx)(J,{bot:em(U),word:"Question",children:(0,t.jsxs)("span",{className:"ml-auto flex shrink-0 items-center gap-1.5",children:[L.length>1&&(0,t.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Previous question",disabled:ei||0===B,onClick:()=>j(L[B-1].id),children:(0,t.jsx)(i.ChevronLeft,{})}),(0,t.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground tabular-nums","aria-live":"polite",children:[B+1," / ",L.length]}),(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Next question",disabled:ei||B===L.length-1,onClick:()=>j(L[B+1].id),children:(0,t.jsx)(a.ChevronRight,{})})]}),ex(!0)]})}),r&&(0,t.jsx)("div",{className:"max-h-[min(14rem,30vh)] min-w-0 overflow-y-auto overscroll-contain pr-1.5",children:(0,t.jsx)(b.Markdown,{className:"min-w-0 text-[13px] leading-snug wrap-anywhere break-keep [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:r})}),n.length>0&&(0,t.jsx)(X,{options:n,picked:A,busy:ei,onChoose:eg}),(0,t.jsx)(R.SignInAsk,{bot:U,onAllowed:eh}),(0,t.jsx)(Y,{claimsDrops:g,threadId:e.id,recipient:U,draftKey:K.id,send:eh,busy:ei,placeholder:n.length?"Or write your own answer…":"Your answer…",label:`Answer for ${U}`},JSON.stringify([e.id,U,K.id]))]})}return W?(0,t.jsxs)(G,{className:d,children:[(0,t.jsx)(J,{bot:em(e.bot),word:"Paused",children:(0,t.jsx)("span",{className:"ml-auto flex shrink-0",children:ex(!0)})}),q?.refused&&(0,t.jsxs)("p",{className:"text-[13px] leading-5 text-destructive",children:[(0,w.refusedWords)(q.refused),"."]}),q?.question&&(0,t.jsx)(x.FoldedText,{text:q.question,subject:"message",clamp:q.refused?"line-clamp-2":"line-clamp-3",tall:"max-h-40",className:q.refused?"font-mono text-[11px] leading-4 text-muted-foreground":void 0}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[q?.refused&&(0,t.jsxs)(h.Button,{type:"button",size:"sm",onClick:()=>(0,_.openSettings)("keys"),className:"h-7 gap-1.5 rounded-full px-3 text-[12.5px]",children:[(0,t.jsx)(c.Settings2,{className:"size-3.5"}),"Open Settings"]}),(0,t.jsx)(X,{options:q?.options.length?q.options:[S.THREAD_CONTINUE],picked:A,busy:ei,onChoose:eg})]}),(0,t.jsx)(Y,{claimsDrops:g,threadId:e.id,recipient:U,send:eh,busy:ei,placeholder:"Or put it another way…",label:`Message for ${U}`},JSON.stringify([e.id,U,"paused"]))]}):eu&&!z?(0,t.jsxs)("div",{className:(0,$.cn)("flex min-w-0 flex-col rounded-2xl bg-muted/40 ring-1 ring-border/50",d),children:[ea.map(n=>(0,t.jsxs)("div",{className:"flex items-start gap-2 border-border/60 border-b py-2.5 pr-1.5 pl-3.5",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)("p",{className:"flex min-w-0 items-center gap-1.5 font-mono text-[10px] leading-4",children:[(0,t.jsx)(o.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"}),(0,t.jsx)(y.ShinyText,{text:`Step-in \xb7 waits for ${n.bot}'s next step`,speed:2.2,className:"min-w-0 truncate"})]}),(0,t.jsx)("p",{className:"whitespace-pre-wrap break-keep wrap-anywhere text-[13px] leading-snug",children:n.text})]}),(0,t.jsx)(h.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:el,onClick:()=>es(e.id,n.id),"aria-label":"Take it back",className:"shrink-0 text-muted-foreground/60 hover:text-foreground",children:(0,t.jsx)(f.X,{})})]},n.id)),(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 py-1.5 pr-1.5 pl-3.5",children:[(0,t.jsx)(y.ShinyText,{text:`${ec} \xb7 Working`,speed:2.4,className:"min-w-0 flex-1 truncate text-[12.5px] leading-5 break-keep"}),(0,t.jsxs)(h.Button,{type:"button",size:"sm",variant:"ghost",disabled:ei,onClick:()=>E(!0),className:"h-7 shrink-0 gap-1.5 rounded-full px-2.5 text-[12px]",children:[(0,t.jsx)(l.CornerDownLeft,{className:"size-3.5"}),"Step in"]}),(0,t.jsx)("span",{className:"h-4 w-px shrink-0 bg-border"}),ex()]})]}):(0,t.jsxs)("div",{className:(0,$.cn)("flex min-w-0 flex-col gap-1.5",d),children:[ef&&(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 pr-1.5 pl-3.5",children:[(0,t.jsxs)("p",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-[12.5px] leading-5",children:[(0,t.jsxs)("span",{className:"shrink-0 text-muted-foreground",children:[U," is idle"]}),ed.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 text-muted-foreground/50",children:"·"}),(0,t.jsx)(y.ShinyText,{text:`${ed.join(", ")} working`,speed:2.4,className:"min-w-0 truncate"})]})]}),(0,t.jsx)("span",{className:"h-4 w-px shrink-0 bg-border"}),ex()]}),(0,t.jsx)(Y,{claimsDrops:g,threadId:e.id,recipient:U,send:eh,busy:ei,autoFocus:eu,onEscape:eu?()=>E(!1):void 0,placeholder:eu?`What's off? ${U} reads this before its next step`:ef?`Anything for ${U}? It starts again as soon as you send`:"Anything more? It picks up where it left off",label:`Message for ${U}`,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:D.length>1?(0,t.jsx)(Q,{current:em(U),bots:D.map(e=>em(e.bot)),disabled:ei,onPick:t=>{M.threadDrafts.select(e.id,t),O(t)}}):null,trailing:eu?(0,t.jsx)(h.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:ei,onClick:()=>E(!1),"aria-label":"Never mind",className:"text-muted-foreground",children:(0,t.jsx)(f.X,{})}):null},JSON.stringify([e.id,U])),ep&&(0,t.jsxs)("p",{className:"min-w-0 truncate px-1 text-xs text-muted-foreground",children:[U,"’s answer goes back to ",e.bot]}),!!eo&&!eu&&(0,t.jsxs)("p",{className:"flex min-w-0 items-center gap-2 px-1 text-xs text-muted-foreground",children:[(0,t.jsx)(o.Loader2,{className:"size-3 shrink-0 animate-spin"}),(0,t.jsxs)("span",{className:"truncate",children:["Sending to ",eo]})]})]})},"useAnswerThread",0,ee],399512)},234563,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7f5afeadaf56688dd6ec2e01b595ee4de7510c9bfb",t.callServer,void 0,t.findSourceMapURL,"cancelThreadAction");e.s(["cancelThreadAction",0,n])},445434,702377,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7f3f19bb5a8fb802330794eec74a36a2c27c5ec96e",t.callServer,void 0,t.findSourceMapURL,"withdrawStepInAction");e.s(["withdrawStepInAction",0,n],445434);var r=e.i(843476),i=e.i(798120),a=e.i(167881),s=e.i(609856),l=e.i(283653),o=e.i(76177);e.s(["SignInAsk",0,function({bot:e,onAllowed:t}){let{data:n}=(0,l.useServerRoute)(i.queryKey.signIns),[d,c]=(0,s.useServerAction)(o.setSignInBotAction,{onOk:()=>(0,l.revalidate)(i.queryKey.signIns)}),u=(n??[]).filter(t=>t.asking.includes(e));return u.length?(0,r.jsx)("div",{className:"flex flex-wrap gap-1.5",children:u.map(n=>(0,r.jsxs)(a.Button,{type:"button",size:"sm",loading:c,onClick:()=>void d(n.site,n.account,e,!0).then(()=>t(`Yes — you may use my ${n.site} sign-in as ${n.account}.`)).catch(()=>{}),children:["Let ",e," use ",n.site," (",n.account,")"]},`${n.site}
|
|
2
|
+
${n.account}`))}):null}],702377)},975226,357360,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7fed281fde1fe8366c1cf5f505712753d66a1af031",t.callServer,void 0,t.findSourceMapURL,"handFileAction");e.s(["handFileAction",0,n],975226);let r=(0,t.createServerReference)("7fc6912508b142b0cdbae7a93737a4b2149d62746c",t.callServer,void 0,t.findSourceMapURL,"tellFileThreadAction");e.s(["tellFileThreadAction",0,r],357360)},83928,e=>{"use strict";var t=e.i(843476),n=e.i(829600),r=e.i(989360),i=e.i(575780),a=e.i(905015),s=e.i(693819),l=e.i(226091),o=e.i(227148),d=e.i(941464),c=e.i(51921),u=e.i(609374),f=e.i(657688),p=e.i(271645),m=e.i(798120),h=e.i(683408),g=e.i(41533),x=e.i(616172),b=e.i(647163);let y={markdown:l.FileText,csv:s.FileSpreadsheet,json:a.FileJson,text:o.FileType,image:i.FileImage,audio:c.Music,video:d.FileVideo},v={pdf:l.FileText,html:r.FileCode,htm:r.FileCode,docx:o.FileType,xlsx:s.FileSpreadsheet,pptx:u.Presentation};function w(e){return v[(0,x.extensionOf)(e)]??y[(0,x.viewKindOf)(e)]??n.File}let j=new Set(["markdown","text","csv","json"]);function k(e,t){let n=(0,x.viewKindOf)(e);return void 0!==t&&t>g.WORKSPACE_VIEW.elementMax?"glyph":"image"===n?"image":"frame"===n&&/\.html?$/i.test(e)?"page":j.has(n)?"text":"glyph"}function N({width:e,className:n,children:r}){let i=(0,p.useRef)(null),[a,s]=(0,p.useState)(null),[l,o]=(0,p.useState)(!1);(0,p.useLayoutEffect)(()=>{let e=i.current;if(!e)return;let t=()=>s({w:e.clientWidth,h:e.clientHeight});t();let{top:n,bottom:r}=e.getBoundingClientRect();r>-400&&n<window.innerHeight+400&&o(!0);let a=new ResizeObserver(t);return a.observe(e),()=>a.disconnect()},[]),(0,p.useEffect)(()=>{let e=i.current;if(!e||l)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&o(!0)},{rootMargin:"400px"});return t.observe(e),()=>t.disconnect()},[l]);let d=l&&a?a.w/e:0;return(0,t.jsx)("span",{ref:i,"aria-hidden":!0,className:(0,b.cn)("relative block overflow-hidden",n),children:d>0&&a&&(0,t.jsx)("span",{className:"absolute top-0 left-0 block origin-top-left",style:{width:e,transform:`scale(${d})`},children:r(Math.ceil(a.h/d))})})}function S({path:e,onMissing:n}){let[r,i]=(0,p.useState)(null);return((0,p.useEffect)(()=>{let t=new AbortController;return fetch(m.queryKey.file(e),{headers:{range:`bytes=0-${g.FILE_THUMB.textBytes-1}`},signal:t.signal}).then(e=>e.ok?e.text():Promise.reject()).then(e=>i(e.replace(/\uFFFD+$/,""))).catch(()=>{t.signal.aborted||n()}),()=>t.abort()},[e,n]),null===r)?null:"markdown"===(0,x.viewKindOf)(e)?(0,t.jsx)("div",{className:"pointer-events-none px-9 py-8 text-[15px] text-foreground",children:(0,t.jsx)(h.Markdown,{controls:!1,components:{a:"span"},children:r})}):(0,t.jsx)("pre",{className:"pointer-events-none px-7 py-6 font-mono text-[13px] leading-relaxed whitespace-pre-wrap text-foreground",children:r})}e.s(["FileThumb",0,function({path:e,bytes:n,glyph:r="size-4",className:i}){let[a,s]=(0,p.useState)(!1),l=(0,p.useCallback)(()=>s(!0),[]),o=a?"glyph":k(e,n);if("image"===o)return(0,t.jsx)("span",{className:(0,b.cn)("relative block overflow-hidden bg-muted",i),children:(0,t.jsx)(f.default,{src:m.queryKey.file(e),alt:"",fill:!0,sizes:`${g.FILE_THUMB.imageWidth}px`,loading:"lazy",decoding:"async",onError:()=>s(!0),className:"object-cover dark:brightness-[0.82]"})});if("page"===o)return(0,t.jsx)(N,{width:g.FILE_THUMB.pageWidth,className:(0,b.cn)("bg-white dark:brightness-[0.82]",i),children:n=>(0,t.jsx)("iframe",{title:"",src:m.queryKey.fileFace(e),sandbox:"allow-scripts",loading:"lazy",tabIndex:-1,"aria-hidden":!0,scrolling:"no",style:{width:g.FILE_THUMB.pageWidth,height:n},className:"pointer-events-none block border-0 bg-white"})});if("text"===o)return(0,t.jsx)(N,{width:g.FILE_THUMB.textWidth,className:(0,b.cn)("bg-background dark:brightness-[0.82]",i),children:()=>(0,t.jsx)(S,{path:e,onMissing:l})});let d=w(e);return(0,t.jsx)("span",{className:(0,b.cn)("grid place-items-center bg-muted text-muted-foreground",i),children:(0,t.jsx)(d,{className:r})})},"faceOf",0,k,"fileIcon",0,w])},621285,728479,267301,e=>{"use strict";var t=e.i(843476),n=e.i(401851),r=e.i(24071),i=e.i(867927),a=e.i(482022),s=e.i(657688),l=e.i(271645),o=e.i(798120),d=e.i(167881),c=e.i(630374),u=e.i(683408),f=e.i(671428),p=e.i(947627),m=e.i(41533),h=e.i(853483),g=e.i(978411),x=e.i(616172);let b=/^[0-9a-f]{0,32}$/,y=e=>"object"==typeof e&&null!==e&&"string"==typeof e.base&&b.test(e.base)&&"string"==typeof e.html&&Number.isFinite(e.at);function v(e,t,n){let r;if(!e)return{error:"this browser keeps nothing"};let i=`thursday-page-drafts:${t}`;try{r=e.getItem(i)}catch{return{error:"this browser keeps nothing"}}let a=[];try{let e=JSON.parse(r??"[]");Array.isArray(e)&&(a=e.filter(y))}catch{}let s=function(e,t){let n=e;if("string"==typeof t.drop&&(n=n.filter(e=>e.base!==t.drop)),void 0===t.hold)return n;if(!y(t.hold))return"not a page's edits";let{base:r,html:i,at:a}=t.hold;return(n=[...n.filter(e=>e.base!==r),{base:r,html:i,at:a}]).length>m.PAGE_DRAFTS.perFile?`${m.PAGE_DRAFTS.perFile} sets of this page's edits are kept aside already`:n.reduce((e,t)=>e+t.html.length,0)>m.PAGE_DRAFTS.chars?"too large to keep aside":n}(a,n);if("string"==typeof s)return{error:s};if(void 0!==n.hold||void 0!==n.drop)try{s.length?e.setItem(i,JSON.stringify(s)):e.removeItem(i)}catch{return{error:"this browser has no room left to keep them"}}return{drafts:s}}var w=e.i(95187);let j=(0,w.createServerReference)("7fcab53f88d925cf33ddceb88ea74f5deb10a3fdc8",w.callServer,void 0,w.findSourceMapURL,"openFileAction");e.s(["openFileAction",0,j],728479);let k=(0,w.createServerReference)("7f2ef09a0d2c396aedd448d8b396c0dbefc339e7f5",w.callServer,void 0,w.findSourceMapURL,"revealFileAction");e.s(["revealFileAction",0,k],267301);let N=(0,w.createServerReference)("7f8c02cfbf763f15c0d2a75abbf8dd880144b6d112",w.callServer,void 0,w.findSourceMapURL,"savePageAction");var S=e.i(319841),C=e.i(393080),M=e.i(609856),_=e.i(647163);let R=new Set(["frame","image","audio","video"]);function O(e){let t=(0,x.workspaceRelative)(e);return t?"none"===(0,x.viewKindOf)(t)?{how:"os"}:{how:"dialog",path:t}:{how:"os"}}let z=(0,l.createContext)(null),E={dialog:{prose:"px-5 py-4",block:"px-4 py-3"},page:{prose:"px-5 py-6 sm:px-8",block:"px-5 py-5"},inline:{prose:"pb-3",block:"pb-3"}};function A({kind:e,content:n,truncated:r,where:i="dialog"}){return(0,t.jsxs)(t.Fragment,{children:[null!=r&&(0,t.jsx)(T,{of:r}),(0,t.jsx)(P,{kind:e,content:n,where:i})]})}function T({of:e}){return(0,t.jsxs)("p",{className:"border-b border-border/60 px-5 py-2.5 font-mono text-[11px] text-muted-foreground",children:[`Showing the first ${(0,_.formatBytes)(m.WORKSPACE_VIEW.textMax)} of ${(0,_.formatBytes)(e)}. `,"Open the file itself for the rest."]})}function P({kind:e,content:n,where:r}){let i=E[r];switch(e){case"markdown":return(0,t.jsx)("div",{className:(0,_.cn)("min-w-0 text-sm leading-relaxed",i.prose),children:(0,t.jsx)(u.Markdown,{children:n})});case"csv":return(0,t.jsx)(V,{content:n,className:i.block});case"json":return(0,t.jsx)(H,{text:function(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}(n),className:i.block});default:return(0,t.jsx)(H,{text:n,className:i.block})}}function $(e,t=0){let[n,r]=(0,l.useState)(null),[i,a]=(0,l.useState)(null),[s,d]=(0,l.useState)(null);return(0,l.useEffect)(()=>{if(!e)return;r(null),a(null),d(null);let t=!1;return fetch(o.queryKey.file(e),{headers:{range:`bytes=0-${m.WORKSPACE_VIEW.textMax-1}`}}).then(async e=>{if(!e.ok)throw Error(await e.text());return{text:await e.text(),of:function(e){let t=e.headers.get("content-range")?.match(/^bytes \d+-(\d+)\/(\d+)$/);if(!t)return null;let[,n,r]=t.map(Number);return n+1<r?r:null}(e)}}).then(({text:e,of:n})=>{t||(r(null===n?e:e.slice(0,e.lastIndexOf("\n")+1||void 0)),d(n))}).catch(e=>!t&&a((0,_.errorToString)(e))),()=>{t=!0}},[e,t]),{content:n,failure:i,truncated:s}}let I={named:new Map,opened:new Map,showing:new WeakMap,takes:new WeakMap,saves:new Map,listening:!1},F=e=>{let t=I.named.get(e);return t||(t=crypto.randomUUID(),I.named.set(e,t),I.opened.set(t,e)),{thursday:"host",as:t}};async function D(e){let t=e.source,n=e.data;if(!t||"null"!==e.origin||"string"!=typeof n?.thursday)return;if("hello"===n.thursday){I.takes.set(t,Array.isArray(n.can)?n.can.filter(e=>"string"==typeof e):[]);let e=I.showing.get(t);e&&t.postMessage(F(e),"*");return}if("drafts"===n.thursday){let e=I.opened.get(n.as);if(!e)return;let r=v(L(),e,n),i={as:n.as,id:n.id};t.postMessage("error"in r?{...i,thursday:"not-held",error:r.error}:{...i,thursday:"drafts",drafts:r.drafts},"*");return}let r="save"===n.thursday&&I.opened.get(n.as);if(!r||"string"!=typeof n.html)return;let i=await N(r,n.html,"string"==typeof n.base?n.base:""),a={as:n.as,id:n.id};(0,C.isResultOk)(i)&&!i.data.changed?I.saves.set(r,i.data.version):"string"==typeof n.words&&v(L(),r,{hold:{base:"string"==typeof n.base?n.base:"",html:n.words,at:Date.now()}}),t.postMessage((0,C.isResultOk)(i)?i.data.changed?{...a,thursday:"not-saved",changed:!0}:{...a,thursday:"saved",revision:i.data.revision}:{...a,thursday:"not-saved",error:i.message},"*")}function L(){try{return window.localStorage}catch{return null}}function B({path:e,className:n,takeKeys:r,written:i,onUntold:a,onReloaded:s}){let d=(0,l.useRef)(null),c=(0,l.useRef)(!1),u=(0,l.useRef)(s);u.current=s;let f=(0,l.useRef)(a);f.current=a;let p=(0,l.useCallback)(()=>{r&&d.current?.focus();let t=d.current?.contentWindow;t&&(I.showing.set(t,e),t.postMessage(F(e),"*"),c.current&&(c.current=!1,u.current?.()))},[e,r]);return(0,l.useEffect)(p,[p]),(0,l.useEffect)(()=>{if(!i)return;let t=d.current?.contentWindow;if(!t)return;let n=I.takes.get(t);n?.includes("changed")?(c.current=!0,t.postMessage({thursday:"changed",as:F(e).as,revision:i.revision},"*")):f.current?.(n?"older":"plain")},[i,e]),(0,l.useEffect)(()=>{I.listening||(I.listening=!0,window.addEventListener("message",D))},[]),(0,t.jsx)("iframe",{ref:d,title:e,src:o.queryKey.file(e),allow:"clipboard-write *; fullscreen *; autoplay *",className:n,onLoad:p})}function K({path:e,kind:n,where:r,takeKeys:i,again:a=0,written:s,onUntold:l,onReloaded:d}){let c=a?`${o.queryKey.file(e)}?again=${a}`:o.queryKey.file(e);return"frame"===n?(0,t.jsx)(B,{path:e,className:"h-full w-full bg-white",takeKeys:i,written:s,onUntold:l,onReloaded:d}):"image"===n?(0,t.jsx)("img",{src:c,alt:e,className:"dialog"===r?"mx-auto max-h-[calc(100vh-11rem)] object-contain p-4":"mx-auto max-w-full p-6"}):"audio"===n?(0,t.jsx)("audio",{controls:!0,src:c,className:"w-full p-6",children:(0,t.jsx)("track",{kind:"captions"})}):(0,t.jsx)("video",{controls:!0,src:c,className:"mx-auto max-h-full max-w-full p-4",children:(0,t.jsx)("track",{kind:"captions"})})}function q({path:e}){let[n,r]=(0,M.useServerAction)(j);return(0,t.jsxs)("div",{className:"space-y-4 p-8",children:[(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:"Nothing here can draw this file. It opens in its own program."}),(0,t.jsx)(d.Button,{variant:"outline",loading:r,onClick:()=>n(e),children:"Open it"})]})}function W({path:e,bytes:n}){let[r,i]=(0,M.useServerAction)(k);return(0,t.jsxs)("div",{className:"space-y-4 p-8",children:[(0,t.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:[`This file is ${(0,_.formatBytes)(n)} — too big to draw here without `,"taking the window with it. Open it where it is instead."]}),(0,t.jsx)(d.Button,{variant:"outline",loading:i,onClick:()=>r(e),children:"Reveal in the file manager"})]})}function U({path:e,opening:u,group:p=[],kind:x,byHer:b,from:y,onPath:v,onClose:w}){let j="image"===x,k=R.has(x),{note:N,filed:C,failure:M,again:O,written:z,reloadedAt:E,stale:T,reload:P,follow:F,untold:D,reloaded:L}=function(e,t,n,r){let{filed:i,file:a,note:s,failure:o,follow:d}=(0,h.useFileNote)(e,n),[c,u]=(0,l.useState)(0),[f,p]=(0,l.useState)(null),[m,g]=(0,l.useState)(null),[x,b]=(0,l.useState)(!1),y=(0,l.useRef)(null);(0,l.useEffect)(()=>{u(0),p(null),g(null),b(!1),y.current=null},[e,t]);let v=(0,l.useCallback)(()=>{u(e=>e+1),p(null),b(!1),g(new Date)},[]),w=a?.version??null,j=a?.revision??null;return(0,l.useEffect)(()=>{if(!w)return;let t=y.current;y.current=w,null===t||t===w||(null===e||I.saves.get(e)!==w)&&("frame"===r?p(e=>({n:(e?.n??0)+1,revision:j})):"audio"===r||"video"===r?b(!0):v())},[w,j,r,v]),{filed:i,note:s,failure:o,again:c,written:f,reloadedAt:m,stale:x,reload:v,follow:d,untold:(0,l.useCallback)(e=>{if("plain"===e)return v();p(null),b(!0)},[v]),reloaded:(0,l.useCallback)(()=>{p(null),g(new Date)},[])}}(e,u,y,x),{content:B,failure:q,truncated:W}=$(k?null:e,O),H=e?.split("/").pop()??"",V=e?p.indexOf(e):-1,G=e=>{!(V<0)&&v&&v(p[(V+e+p.length)%p.length])},{left:J,keep:X}=function(e,t){let[n,r]=(0,l.useState)(null),i=(0,l.useRef)(t);i.current=t;let a=(0,l.useRef)(()=>void 0);return(0,l.useEffect)(()=>{if(!e)return void r(null);let t=Math.round(m.WORKSPACE_VIEW.autoCloseMs/1e3);r(t);let n=()=>{for(let e of(window.clearInterval(l),["pointermove","keydown","wheel","blur"]))window.removeEventListener(e,s);r(null)},s=()=>n(),l=window.setInterval(()=>{if((t-=1)>0)return r(t);n(),i.current()},1e3);for(let e of["pointermove","keydown","wheel","blur"])window.addEventListener(e,s);return a.current=n,n},[e]),{left:n,keep:(0,l.useCallback)(()=>a.current(),[])}}(b&&null!==e,w),Y="frame"===x||"video"===x,Q=(0,l.useRef)(null),Z=e=>{g.roomOpens.open(e),w()};return(0,t.jsx)(c.Dialog,{open:null!==e,onOpenChange:e=>!e&&w(),children:(0,t.jsxs)(c.DialogContent,{ref:Q,initialFocus:Q,onKeyDown:e=>{(0,S.capturesKeys)(e.target)||("ArrowLeft"===e.key&&G(-1),"ArrowRight"===e.key&&G(1))},onPointerOver:X,className:(0,_.cn)("flex flex-col gap-0 overflow-hidden p-0",Y?"h-[min(42rem,calc(100vh-3rem))] sm:max-w-232":"max-h-[calc(100vh-3rem)] sm:max-w-4xl"),children:[(0,t.jsx)(c.DialogTitle,{className:"sr-only",children:H}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1 border-b border-border/60 py-2 pr-12 pl-4",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",children:e}),null!==J&&(0,t.jsx)("span",{className:"shrink-0 pr-1 font-mono text-[11px] text-muted-foreground tabular-nums",children:`Closing in ${J}s`}),T?(0,t.jsx)(d.Button,{variant:"ghost",size:"xs",className:"shrink-0 font-normal text-muted-foreground",onClick:P,children:"Changed since it opened · Reload"}):E&&(0,t.jsx)("span",{className:"shrink-0 pr-1 font-mono text-[11px] text-muted-foreground tabular-nums",children:`Reloaded at ${(0,n.format)(E,"HH:mm")}`}),C&&(0,t.jsx)(h.FileThreadChip,{note:N,onOpen:Z}),V>=0&&p.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground tabular-nums",children:[V+1," / ",p.length]}),(0,t.jsx)(d.Button,{variant:"ghost",size:"icon-sm","aria-label":"Previous image",onClick:()=>G(-1),children:(0,t.jsx)(r.ChevronLeft,{})}),(0,t.jsx)(d.Button,{variant:"ghost",size:"icon-sm","aria-label":"Next image",onClick:()=>G(1),children:(0,t.jsx)(i.ChevronRight,{})})]}),e&&(0,t.jsx)("a",{href:o.queryKey.fileView(e),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:(0,_.cn)((0,d.buttonVariants)({variant:"ghost",size:"icon-sm"})),children:(0,t.jsx)(a.ExternalLink,{})})]}),(0,t.jsx)("div",{className:(0,_.cn)("min-h-0 flex-1","frame"===x?"overflow-hidden":"overflow-auto"),children:k&&e?(0,t.jsx)(K,{path:e,kind:x,where:"dialog",takeKeys:!b,again:O,written:z,onUntold:D,onReloaded:L},`${u}:${O}`):q?(0,t.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:q}):null===B?(0,t.jsxs)("div",{className:"space-y-3 p-5",children:[(0,t.jsx)(f.Skeleton,{className:"h-5 w-2/3"}),(0,t.jsx)(f.Skeleton,{className:"h-4 w-full"}),(0,t.jsx)(f.Skeleton,{className:"h-4 w-5/6"})]}):(0,t.jsx)(A,{kind:x,content:B,truncated:W})}),j&&p.length>1&&(0,t.jsx)("div",{className:"flex shrink-0 justify-center gap-1.5 border-t border-border/60 p-2.5",children:p.map(n=>(0,t.jsx)("button",{type:"button","aria-label":n.split("/").pop(),onClick:()=>v?.(n),className:(0,_.cn)("size-11 shrink-0 overflow-hidden rounded-md outline-none focus-visible:ring-3 focus-visible:ring-ring/50",n===e?"ring-2 ring-foreground":"opacity-55"),children:(0,t.jsx)(s.default,{src:o.queryKey.file(n),alt:"",width:96,height:96,loading:"lazy",className:"size-full bg-muted object-cover"})},n))}),C&&e&&(0,t.jsx)("div",{className:"shrink-0 border-t border-border/60 px-3 pt-2.5 pb-3",children:(0,t.jsx)(h.FileNoteBar,{path:e,note:N,failure:M,onThread:F,onOpenThread:Z})})]})})}function H({text:e,className:n}){return(0,t.jsx)("pre",{className:(0,_.cn)("overflow-x-auto font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-foreground/90",n),children:e})}function V({content:e,className:n}){let[r,...i]=(0,l.useMemo)(()=>(function(e){let t=[],n=[],r="",i=!1;for(let a=0;a<e.length;a++){let s=e[a];i?'"'===s&&'"'===e[a+1]?(r+='"',a++):'"'===s?i=!1:r+=s:'"'===s?i=!0:","===s?(n.push(r),r=""):"\n"===s||"\r"===s?("\r"===s&&"\n"===e[a+1]&&a++,n.push(r),t.push(n),n=[],r=""):r+=s}return(r.length||n.length)&&(n.push(r),t.push(n)),t.filter(e=>e.some(e=>e.trim()))})(e),[e]),a=(0,l.useMemo)(()=>(r??[]).map((e,t)=>i.some(e=>""!==(e[t]??"").trim())&&i.every(e=>{let n=(e[t]??"").trim();return""===n||/^[+-]?[\d,]*\.?\d+%?$/.test(n)})),[r,i]);return r?(0,t.jsx)("div",{className:(0,_.cn)("overflow-x-auto",n),children:(0,t.jsxs)(p.Table,{children:[(0,t.jsx)(p.TableHeader,{children:(0,t.jsx)(p.TableRow,{children:r.map((e,n)=>(0,t.jsx)(p.TableHead,{className:(0,_.cn)("whitespace-nowrap",a[n]&&"text-right"),children:e},`${n}-${e}`))})}),(0,t.jsx)(p.TableBody,{children:i.map((e,n)=>(0,t.jsx)(p.TableRow,{children:r.map((r,i)=>(0,t.jsx)(p.TableCell,{className:(0,_.cn)("whitespace-nowrap",a[i]&&"text-right tabular-nums"),children:e[i]??""},`${n}-${i}`))},`${n}-${e[0]??""}`))})]})}):(0,t.jsx)(H,{text:e,className:n})}e.s(["FileBody",0,A,"FileFrame",0,B,"FileLink",0,function({path:e,group:n,from:r=null,className:i,title:a,label:s,children:d}){let c=O(e),u=(0,l.useContext)(z),[f,p]=(0,M.useServerAction)(j);return(0,t.jsx)("button",{type:"button",disabled:p,title:a??e,"aria-label":s,className:i,onClick:()=>{"dialog"===c.how?u?u(c.path,n,!1,r):window.open(o.queryKey.fileView(c.path),"_blank"):f(e)},children:d})},"FilePreview",0,function({path:e,bytes:n}){let r=(0,x.viewKindOf)(e),{content:i,failure:a,truncated:s}=$(R.has(r)||"none"===r?null:e);return"none"===r?(0,t.jsx)(q,{path:e}):("frame"===r||"image"===r)&&n>m.WORKSPACE_VIEW.elementMax?(0,t.jsx)(W,{path:e,bytes:n}):R.has(r)?(0,t.jsx)(K,{path:e,kind:r,where:"preview"}):a?(0,t.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:a}):null===i?(0,t.jsxs)("div",{className:"space-y-3 p-5",children:[(0,t.jsx)(f.Skeleton,{className:"h-5 w-2/3"}),(0,t.jsx)(f.Skeleton,{className:"h-4 w-full"}),(0,t.jsx)(f.Skeleton,{className:"h-4 w-5/6"})]}):(0,t.jsx)(A,{kind:r,content:i,truncated:s})},"FileViewer",0,function({children:e}){let[n,r]=(0,l.useState)(null),i=(0,l.useRef)(0),a=(0,l.useCallback)((e,t=[],n=!1,a=null)=>r({path:e,group:t,byHer:n,from:a,n:++i.current}),[]);return(0,t.jsxs)(z,{value:a,children:[e,(0,t.jsx)(U,{path:n?.path??null,opening:n?.n??0,group:n?.group??[],kind:n?(0,x.viewKindOf)(n.path):"text",byHer:n?.byHer??!1,from:n?.from??null,onPath:e=>r(t=>t&&{...t,path:e}),onClose:()=>r(null)})]})},"fileTarget",0,O,"useFileText",0,$,"useOpenFile",0,function(){let e=(0,l.useContext)(z);return(0,l.useCallback)((t,n=[],r=!1,i=null)=>{let a=O(t);return"os"!==a.how&&(e?(e(a.path,n,r,i),!0):null!==window.open(o.queryKey.fileView(a.path),"_blank"))},[e])}],621285)},616172,e=>{"use strict";var t=e.i(798120),n=e.i(41533);let r=e=>`text/${e}; charset=utf-8`,i={md:{kind:"markdown",mime:r("markdown")},markdown:{kind:"markdown",mime:r("markdown")},csv:{kind:"csv",mime:r("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:r("plain")},log:{kind:"text",mime:r("plain")},html:{kind:"frame",mime:r("html")},htm:{kind:"frame",mime:r("html")},pdf:{kind:"frame",mime:"application/pdf"},png:{kind:"image",mime:"image/png"},jpg:{kind:"image",mime:"image/jpeg"},jpeg:{kind:"image",mime:"image/jpeg"},gif:{kind:"image",mime:"image/gif"},webp:{kind:"image",mime:"image/webp"},svg:{kind:"image",mime:"image/svg+xml"},mp3:{kind:"audio",mime:"audio/mpeg"},wav:{kind:"audio",mime:"audio/wav"},mp4:{kind:"video",mime:"video/mp4"},webm:{kind:"video",mime:"video/webm"},docx:{kind:"none",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},xlsx:{kind:"none",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},pptx:{kind:"none",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"},css:{kind:"none",mime:r("css")},js:{kind:"none",mime:r("javascript")},woff2:{kind:"none",mime:"font/woff2"}},a=e=>e.split(".").pop()?.toLowerCase()??"",s=e=>i[a(e)]?.kind??"none",l=new Set(["css","js","woff2"]),o=Object.keys(i).filter(e=>!l.has(e)),d=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])\/?(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${o.join("|")})\b`,"giu"),c=`${n.PATHS.workspace}/`,u=t.queryKey.file("");function f(e){let t=function(e){if(!e.startsWith(u))return e;let t=e.slice(u.length);try{return decodeURIComponent(t)}catch{return t}}(e.trim()),n=t.indexOf(c);return n>=0?t.slice(n+c.length)||null:t.startsWith("/")||/^[A-Za-z]:/.test(t)||t.split("/").includes("..")?null:t||null}let p=e=>e.startsWith(`${n.PATHS.artifacts}/`)&&["md","markdown","html","htm"].includes(a(e));e.s(["extensionOf",0,a,"isPicture",0,e=>"image"===s(e)&&"svg"!==a(e),"leadFirst",0,function(e){let t=e.findIndex(p);return t>0?[e[t],...e.filter((e,n)=>n!==t)]:e},"mimeOf",0,e=>i[a(e)]?.mime??"application/octet-stream","pathsIn",0,function(e){let t=e.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," ").replace(/\b[a-z][\w+.-]+:(?=\/)/gi," "),n=new Set,r="";for(let[e]of t.matchAll(d)){let t=!e.includes("/"),i=function(e){let t=f(e);if(!t)return null;let[n,...r]=t.split("/");return r.length&&n.includes(".")?null:t}(t?r+e:e);t||(r=i?.slice(0,i.lastIndexOf("/")+1)??""),i&&n.add(i)}return[...n].slice(0,12)},"viewKindOf",0,s,"workspaceRelative",0,f])},931619,919191,64801,e=>{"use strict";var t=e.i(456420);let n={name:"chevrons-right",size:24,node:[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]};n.node;let r=(0,t.default)(n);e.s(["ChevronsRight",0,r],931619);let i={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"}]]};i.node;let a=(0,t.default)(i);e.s(["CornerDownLeft",0,a],919191);let s={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"}]]};s.node;let l=(0,t.default)(s);e.s(["Paperclip",0,l],64801)},905015,e=>{"use strict";var t=e.i(456420);let n={name:"file-braces",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};n.node;let r=(0,t.default)(n);e.s(["FileJson",0,r],905015)},989360,575780,e=>{"use strict";var t=e.i(456420);let n={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]};n.node;let r=(0,t.default)(n);e.s(["FileCode",0,r],989360);let i={name:"file-image",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]};i.node;let a=(0,t.default)(i);e.s(["FileImage",0,a],575780)},693819,227148,941464,e=>{"use strict";var t=e.i(456420);let n={name:"file-spreadsheet",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]};n.node;let r=(0,t.default)(n);e.s(["FileSpreadsheet",0,r],693819);let i={name:"file-type",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M11 18h2",key:"12mj7e"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5",key:"qbrxap"}]]};i.node;let a=(0,t.default)(i);e.s(["FileType",0,a],227148);let s={name:"file-play",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",key:"1tzo1f"}]],aliases:["file-video"]};s.node;let l=(0,t.default)(s);e.s(["FileVideo",0,l],941464)},51921,e=>{"use strict";var t=e.i(456420);let n={name:"music",size:24,node:[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]};n.node;let r=(0,t.default)(n);e.s(["Music",0,r],51921)},609374,e=>{"use strict";var t=e.i(456420);let n={name:"presentation",size:24,node:[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]};n.node;let r=(0,t.default)(n);e.s(["Presentation",0,r],609374)},250832,e=>{"use strict";var t=e.i(456420);let n={name:"settings-2",size:24,node:[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]};n.node;let r=(0,t.default)(n);e.s(["Settings2",0,r],250832)},929272,e=>{"use strict";var t=e.i(456420);let n={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};n.node;let r=(0,t.default)(n);e.s(["Square",0,r],929272)},325633,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return h},defaultHead:function(){return u}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(555682),s=e.r(190809),l=e.r(843476),o=s._(e.r(271645)),d=a._(e.r(898879)),c=e.r(742732);function u(){return[(0,l.jsx)("meta",{charSet:"utf-8"},"charset"),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let p=["name","httpEquiv","charSet","itemProp"];function m(e){let t,n,r,i;return e.reduce(f,[]).reverse().concat(u().reverse()).filter((t=new Set,n=new Set,r=new Set,i={},e=>{let a=!0,s=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){s=!0;let n=e.key.slice(e.key.indexOf("$")+1);t.has(n)?a=!1:t.add(n)}switch(e.type){case"title":case"base":n.has(e.type)?a=!1:n.add(e.type);break;case"meta":for(let t=0,n=p.length;t<n;t++){let n=p[t];if(e.props.hasOwnProperty(n))if("charSet"===n)r.has(n)?a=!1:r.add(n);else{let t=e.props[n],r=i[n]||new Set;("name"!==n||!s)&&r.has(t)?a=!1:(r.add(t),i[n]=r)}}}return a})).reverse().map((e,t)=>{let n=e.key||t;return o.default.cloneElement(e,{key:n})})}let h=function({children:e}){let t=(0,o.useContext)(c.HeadManagerContext);return(0,l.jsx)(d.default,{reduceComponentsToState:m,headManager:t,children:e})};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},918556,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let r=e.r(555682)._(e.r(271645)),i=e.r(987690),a=r.default.createContext(i.imageConfigDefault)},65856,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"RouterContext",{enumerable:!0,get:function(){return r}});let r=e.r(555682)._(e.r(271645)).default.createContext(null)},670965,(e,t,n)=>{"use strict";function r(e,t){let n=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-n)<Math.abs(e-n)?t:e,t.qualities[0]):n}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"findClosestQuality",{enumerable:!0,get:function(){return r}})},1948,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});let r=e.r(670965),i=e.r(543369);function a({config:e,src:t,width:n,quality:s}){let l=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,i.getAssetToken)())l=void 0;else{let e=t.indexOf("?");if(-1!==e){let n=new URLSearchParams(t.slice(e+1)),r=n.get("dpl");if(r){l=r,n.delete("dpl");let i=n.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
|
|
3
|
+
Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,r.findClosestQuality)(s,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${n}&q=${o}${t.startsWith("/")&&l?`&dpl=${l}`:""}`}a.__next_img_default=!0;let s=a},818581,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=e.r(271645);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=a(e,r)),t&&(i.current=a(t,r))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},605500,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Image",{enumerable:!0,get:function(){return w}});let r=e.r(555682),i=e.r(190809),a=e.r(843476),s=i._(e.r(271645)),l=r._(e.r(174080)),o=r._(e.r(325633)),d=e.r(908927),c=e.r(987690),u=e.r(918556),f=e.r(65856),p=r._(e.r(1948)),m=e.r(818581),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[48,96,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,n,r,i,a,s){let l=e?.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),n?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}r?.current&&r.current(e)}}))}function x(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b="u"<typeof window?s.useEffect:s.useLayoutEffect,y=(0,s.forwardRef)(({src:e,srcSet:t,sizes:n,height:r,width:i,decoding:l,className:o,style:d,fetchPriority:c,placeholder:u,loading:f,unoptimized:p,fill:h,onLoadRef:y,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:j,sizesInput:k,onLoad:N,onError:S,...C},M)=>{let _=(0,s.useRef)(!1),R=(0,s.useRef)(null);b(()=>{let{current:e}=_,{current:t}=R;e||null===t||(S&&(t.src=t.src),t.complete&&g(t,u,y,v,w,p,k),_.current=!0)},[e,u,y,v,S,p,k]);let O=(0,m.useMergedRef)(M,R);return(0,a.jsx)("img",{...C,...x(c),loading:f,width:i,height:r,decoding:l,"data-nimg":h?"fill":"1",className:o,style:d,sizes:n,srcSet:t,src:e,ref:O,onLoad:e=>{g(e.currentTarget,u,y,v,w,p,k)},onError:e=>{j(!0),"empty"!==u&&w(!0),S&&S(e)}})});function v({isAppRouter:e,imgAttributes:t}){let n={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...x(t.fetchPriority)};return e&&l.default.preload?(l.default.preload(t.src,n),null):(0,a.jsx)(o.default,{children:(0,a.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...n},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,s.forwardRef)((e,t)=>{let n=(0,s.useContext)(f.RouterContext),r=(0,s.useContext)(u.ImageConfigContext),i=(0,s.useMemo)(()=>{let e=h||r||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n,qualities:i,localPatterns:"u"<typeof window?r?.localPatterns:e.localPatterns}},[r]),{onLoad:l,onLoadingComplete:o}=e,m=(0,s.useRef)(l);(0,s.useEffect)(()=>{m.current=l},[l]);let g=(0,s.useRef)(o);(0,s.useEffect)(()=>{g.current=o},[o]);let[x,b]=(0,s.useState)(!1),[w,j]=(0,s.useState)(!1),{props:k,meta:N}=(0,d.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:x,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{...k,unoptimized:N.unoptimized,placeholder:N.placeholder,fill:N.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:j,sizesInput:e.sizes,ref:t}),N.preload?(0,a.jsx)(v,{isAppRouter:!n,imgAttributes:k}):null]})});("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},794909,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return c},getImageProps:function(){return d}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(555682),s=e.r(908927),l=e.r(605500),o=a._(e.r(1948));function d(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[48,96,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let c=l.Image},657688,(e,t,n)=>{t.exports=e.r(794909)},488143,(e,t,n)=>{"use strict";function r({widthInt:e,heightInt:t,blurWidth:n,blurHeight:i,blurDataURL:a,objectFit:s}){let l=n?40*n:e,o=i?40*i:t,d=l&&o?`viewBox='0 0 ${l} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${d}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${d?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${a}'/%3E%3C/svg%3E`}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},987690,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return a},imageConfigDefault:function(){return s}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},908927,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImgProps",{enumerable:!0,get:function(){return d}});let r=e.r(543369),i=e.r(488143),a=e.r(987690),s=["-moz-initial","fill","none","scale-down",void 0];function l(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function d({src:e,sizes:t,unoptimized:n=!1,priority:c=!1,preload:u=!1,loading:f,className:p,quality:m,width:h,height:g,fill:x=!1,style:b,overrideSrc:y,onLoad:v,onLoadingComplete:w,placeholder:j="empty",blurDataURL:k,fetchPriority:N,decoding:S="async",layout:C,objectFit:M,objectPosition:_,lazyBoundary:R,lazyRoot:O,...z},E){var A;let T,P,$,{imgConf:I,showAltText:F,blurComplete:D,defaultLoader:L}=E,B=I||a.imageConfigDefault;if("allSizes"in B)T=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>e-t),t=B.deviceSizes.sort((e,t)=>e-t),n=B.qualities?.sort((e,t)=>e-t);T={...B,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===L)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let K=z.loader||L;delete z.loader,delete z.srcSet;let q="__next_img_default"in K;if(q){if("custom"===T.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
|
|
4
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=K;K=t=>{let{config:n,...r}=t;return e(r)}}if(C){"fill"===C&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];e&&(b={...b,...e});let n={responsive:"100vw",fill:"100vw"}[C];n&&!t&&(t=n)}let W="",U=o(h),H=o(g);if((A=e)&&"object"==typeof A&&(l(A)||void 0!==A.src)){let t=l(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(P=t.blurWidth,$=t.blurHeight,k=k||t.blurDataURL,W=t.src,!x)if(U||H){if(U&&!H){let e=U/t.width;H=Math.round(t.height*e)}else if(!U&&H){let e=H/t.height;U=Math.round(t.width*e)}}else U=t.width,H=t.height}let V=!c&&!u&&("lazy"===f||void 0===f);(!(e="string"==typeof e?e:W)||e.startsWith("data:")||e.startsWith("blob:"))&&(n=!0,V=!1),T.unoptimized&&(n=!0),q&&!T.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(n=!0);let G=o(m),J=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:_}:{},F?{}:{color:"transparent"},b),X=D||"empty"===j?null:"blur"===j?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:U,heightInt:H,blurWidth:P,blurHeight:$,blurDataURL:k||"",objectFit:J.objectFit})}")`:`url("${j}")`,Y=s.includes(J.objectFit)?"fill"===J.objectFit?"100% 100%":"cover":J.objectFit,Q=X?{backgroundSize:Y,backgroundPosition:J.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},Z=function({config:e,src:t,unoptimized:n,width:i,quality:a,sizes:s,loader:l}){if(n){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,r.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,r.getAssetToken)())e=void 0;else if(e){let n=t.indexOf("?");if(-1!==n){let r=new URLSearchParams(t.slice(n+1));r.get("dpl")||(r.append("dpl",e),t=t.slice(0,n)+"?"+r.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:o,kind:d}=function({deviceSizes:e,allSizes:t},n,r){if(r){let n=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=n.exec(r);)i.push(parseInt(e[2]));if(i.length){let n=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*n),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof n?{widths:e,kind:"w"}:{widths:[...new Set([n,2*n].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,s),c=o.length-1;return{sizes:s||"w"!==d?s:"100vw",srcSet:o.map((n,r)=>`${l({config:e,src:t,quality:a,width:n})} ${"w"===d?n:r+1}${d}`).join(", "),src:l({config:e,src:t,quality:a,width:o[c]})}}({config:T,src:e,unoptimized:n,width:U,quality:G,sizes:t,loader:K}),ee=V?"lazy":f;return{props:{...z,loading:ee,fetchPriority:N,width:U,height:H,decoding:S,className:p,style:{...J,...Q},sizes:Z.sizes,srcSet:Z.srcSet,src:y||Z.src},meta:{unoptimized:n,preload:u||c,placeholder:j,fill:x}}}},898879,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return l}});let r=e.r(271645),i="u"<typeof window,a=i?()=>{}:r.useLayoutEffect,s=i?()=>{}:r.useEffect;function l(e){let{headManager:t,reduceComponentsToState:n}=e;function l(){if(t&&t.mountedInstances){let e=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(e))}}return i&&(t?.mountedInstances?.add(e.children),l()),a(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),a(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,818125,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(798120),a=e.i(647163);e.s(["SiteIcon",0,function({host:e,className:i="size-3.5 rounded-full",fallback:l}){let[s,o]=(0,n.useState)(!1);return s?l??(0,t.jsx)("span",{"aria-hidden":!0,className:(0,a.cn)("grid shrink-0 place-items-center bg-foreground/10 text-[8.5px] font-medium text-foreground/70 uppercase",i),children:e[0]}):(0,t.jsx)("img",{src:r.queryKey.favicon(e),alt:"",onError:()=>o(!0),className:(0,a.cn)("shrink-0",i)})}])},616816,e=>{"use strict";var t=e.i(843476),n=e.i(375775),r=e.i(689664),a=e.i(263676),i=e.i(271645),l=e.i(798120),s=e.i(167881),o=e.i(23750),u=e.i(41533),c=e.i(412294),d=e.i(968978),m=e.i(149666),h=e.i(265402),p=e.i(609856),f=e.i(283653),g=e.i(647163),y=e.i(235168),x=e.i(992112);function O(){let e=h.TEXT_MODEL_PROVIDERS[m.LIVE_PROVIDER.id].keysAt;return e?(0,t.jsxs)("a",{href:e,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2.5 text-[13px] font-medium text-foreground no-underline",children:[(0,t.jsxs)("span",{className:"flex h-7.5 shrink-0 items-center gap-1.5 rounded-full bg-muted px-3.5 whitespace-nowrap transition-colors hover:bg-accent",children:["Get a key",(0,t.jsx)(n.ArrowUpRight,{className:"size-3.5"})]}),(0,t.jsx)("span",{className:"truncate font-mono text-[11px] font-normal text-muted-foreground",children:e.replace(/^https:\/\//,"")})]}):null}function S(e=null){let{data:t}=(0,f.useServerRoute)(l.queryKey.config),n=(0,x.isConfigSet)(t,h.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName),{data:r}=(0,f.useServerRoute)(n?l.queryKey.llmModel:null),{data:a}=(0,f.useServerRoute)(n?l.queryKey.subscriptionUsage:null),i=(!a||"refused"in a?null:a.plan)??r?.find(e=>"chatgpt"===e.id)?.plan??null,s=void 0!==t&&(!n||void 0!==r),o=(0,h.planCallsOf)(n?{plan:i}:null);return{known:s,signedIn:n,plan:i,planCalls:o,line:s?(0,m.liveLineOf)(e,e=>(0,x.isConfigSet)(t,e),i):null,countsForCall:e=>(0,x.isConfigSet)(t,e)&&(e!==h.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName||o)}}function b({children:e}){return(0,t.jsxs)("span",{className:"flex h-7 items-center justify-center gap-1.5 text-[12.5px] text-muted-foreground",children:[(0,t.jsx)("span",{className:"grid size-4 shrink-0 animate-in place-items-center rounded-full bg-primary text-primary-foreground duration-300 zoom-in-50",children:(0,t.jsx)(r.Check,{className:"size-2.5"})}),e]})}function v({provider:e,title:n,tag:r,about:a,warn:i=!1,children:l}){return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-xl p-3 ring-1 ring-border ring-inset",children:[(0,t.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,t.jsx)(d.ProviderIcon,{provider:e,className:"size-4"})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 text-[13px] leading-tight font-medium",children:[(0,t.jsx)("span",{className:"truncate",children:n}),r&&(0,t.jsx)("span",{className:"shrink-0 rounded-full px-1.5 font-mono text-[9.5px] leading-4 font-normal text-muted-foreground ring-1 ring-border ring-inset",children:r})]}),(0,t.jsx)("span",{className:(0,g.cn)("text-[11.5px] leading-snug text-pretty",i?g.WAITING_INK:"text-muted-foreground"),children:a})]}),(0,t.jsx)("span",{className:"w-28 shrink-0",children:l})]})}function _({ref:e,autoFocus:n,dense:r=!1,plain:o=!1,onCancel:c,onSaved:d,className:h}){let{data:O}=(0,f.useServerRoute)(l.queryKey.config),[S,b]=(0,i.useState)({}),[v,N]=(0,i.useState)(null),[k,L]=(0,i.useState)(null),[w]=(0,p.useServerAction)(y.setConfigAction,{errorMessage:!1,onError:e=>L(e??"That key was not saved."),onOk:()=>{(0,f.revalidate)(l.queryKey.config),(0,f.revalidate)(l.queryKey.llmModel)}}),T=e=>(S[e]?.trim().length??0)>=u.KEY_MIN,A=async e=>{let t=e.apiKeyName;if(!T(t)||v)return!1;L(null),N(t);try{return await w(t,S[t]),b(e=>({...e,[t]:""})),d?.(e.id),!0}catch{return!1}finally{N(null)}};return(0,i.useImperativeHandle)(e,()=>({pending:()=>T(m.LIVE_PROVIDER.apiKeyName),flush:async()=>!T(m.LIVE_PROVIDER.apiKeyName)||A(m.LIVE_PROVIDER)})),(0,t.jsxs)("div",{className:(0,g.cn)("w-full",r?"space-y-2":"space-y-4",h),children:[r&&!o&&(0,t.jsxs)("div",{className:"flex h-6 items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"px-0.5 font-mono text-[11px] text-muted-foreground",children:"Voice key"}),c&&(0,t.jsx)(s.Button,{type:"button",size:"icon",variant:"ghost","aria-label":"Not now",onClick:c,className:"-my-1 size-6",children:(0,t.jsx)(a.X,{className:"size-3.5"})})]}),(0,t.jsx)(E,{provider:m.LIVE_PROVIDER,saved:(0,x.isConfigSet)(O,m.LIVE_PROVIDER.apiKeyName),autoFocus:n,dense:r,plain:o,value:S[m.LIVE_PROVIDER.apiKeyName]??"",ready:T(m.LIVE_PROVIDER.apiKeyName),saving:v===m.LIVE_PROVIDER.apiKeyName,onValue:e=>{L(null),b(t=>({...t,[m.LIVE_PROVIDER.apiKeyName]:e}))},onSubmit:()=>void A(m.LIVE_PROVIDER)}),(k||(0,x.isConfigUnreadable)(O,m.LIVE_PROVIDER.apiKeyName))&&(0,t.jsx)("p",{className:(0,g.cn)("px-0.5 leading-5 break-words",r?"text-xs":"text-center text-[13px]",g.WAITING_INK),children:k??(0,x.lostWords)("The OpenAI key saved before","Paste it again.")}),!o&&(0,t.jsx)("p",{className:(0,g.cn)("px-0.5 font-mono text-muted-foreground",r?"text-[11px]":"pt-1 text-center text-[12.5px]"),children:r?"Live voice and reasoning share this OpenAI API key.":"Live uses an OpenAI API key, billed separately from ChatGPT. Stored on this machine, in this app's database."})]})}function E({provider:e,saved:n,autoFocus:r,dense:a,plain:i,value:l,ready:s,saving:o,onValue:u,onSubmit:c}){return(0,t.jsxs)("div",{className:"space-y-2",children:[!i&&(0,t.jsxs)("span",{className:"flex items-center gap-2 px-0.5 text-muted-foreground",children:[(0,t.jsx)(d.ProviderIcon,{provider:e.id,className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:(0,g.cn)("font-mono",a?"text-[11px]":"text-[12.5px]"),children:e.label})]}),(0,t.jsx)(k,{provider:e,saved:n,autoFocus:r,dense:a,mark:i,value:l,ready:s,saving:o,onValue:u,onSubmit:c})]})}let N=e=>e?.replace(/…$/,"")??"";function k({provider:e,saved:n,autoFocus:a,dense:i,mark:l,value:u,ready:c,saving:m,onValue:p,onSubmit:f}){var y;let x,O=(y=e.id,x=N(h.TEXT_MODEL_PROVIDERS[y].keyLooks),Object.entries(h.TEXT_MODEL_PROVIDERS).flatMap(([e,t])=>{let n=N(t.keyLooks);return e!==y&&n&&!x.startsWith(n)?[n]:[]})).some(e=>u.trim().startsWith(e));return(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),f()},className:(0,g.cn)("flex items-center gap-3 rounded-2xl border bg-muted/40 px-4 transition-colors",i?"h-11 rounded-xl px-3":"h-14",n||c?"border-foreground bg-transparent":"border-border"),children:[l&&(0,t.jsx)(d.ProviderIcon,{provider:e.id,className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)(o.Input,{autoFocus:a,type:"password","aria-label":"OpenAI API key",autoComplete:"off",value:u,spellCheck:!1,placeholder:n?"Replace it":"sk-…",onChange:e=>p(e.target.value),className:(0,g.cn)("min-w-0 flex-1 border-0 bg-transparent px-0 font-mono shadow-none focus-visible:ring-0 dark:bg-transparent",i?"h-7 text-[13px]":"h-9 text-[15px]")}),u?(0,t.jsx)(s.Button,{type:"submit",size:"sm",variant:O?"outline":"default",loading:m,disabled:!c,className:(0,g.cn)("shrink-0",i?"h-7 px-3":"h-9 px-4"),children:O?`Not ${e.label}?`:"Save"}):n&&(0,t.jsx)("span",{className:(0,g.cn)("grid shrink-0 animate-in place-items-center rounded-full bg-foreground text-background zoom-in-50 duration-300",i?"size-5":"size-7"),children:(0,t.jsx)(r.Check,{className:i?"size-3":"size-4"})})]})}e.s(["CallLines",0,function({onSaved:e}){let{data:n}=(0,f.useServerRoute)(l.queryKey.config),[r,a]=(0,i.useState)(()=>(0,x.isConfigUnreadable)(n,m.LIVE_PROVIDER.apiKeyName)),o=(0,x.isConfigUnreadable)(n,h.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName),u=(0,x.isConfigSet)(n,m.LIVE_PROVIDER.apiKeyName),{data:d}=(0,f.useServerRoute)(l.queryKey.thursdaySettings),p=S(d?.runsOn??null),g=p.signedIn&&!p.planCalls,y=p.known&&p.signedIn&&p.planCalls&&!o;return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2 text-left",children:[!y&&!u&&(0,t.jsx)("p",{className:"font-mono text-[11px] text-muted-foreground",children:"Either one is enough."}),(0,t.jsx)(v,{provider:"chatgpt",title:h.TEXT_MODEL_PROVIDERS.chatgpt.label,tag:p.signedIn?(0,h.planName)(p.plan)??void 0:void 0,about:o?"The sign-in saved before can't be unlocked any more.":g?"Bots and writing run on this plan; spoken calls don't.":y&&"chatgpt"===p.line?"Calls and bots run on your plan.":y&&"openai"===p.line?"Bots run on your plan; calls run on the key.":"Your ChatGPT plan. No key, no bill by the minute.",warn:o||g,children:y?(0,t.jsx)(b,{children:"Signed in"}):(0,t.jsx)(c.ChatGptSignIn,{variant:g||u?"outline":"brand",size:"sm",className:"w-full rounded-full",label:o||g?"Sign in again":"Sign in"})}),(0,t.jsx)(v,{provider:"openai",title:"OpenAI API key",about:u&&p.known?"chatgpt"===p.line?"Calls run on your plan; switch in Settings › Thursday.":"Calls run on it now, billed by the minute.":"Billed by the minute of call, apart from ChatGPT.",children:u?(0,t.jsx)(b,{children:"Saved"}):(0,t.jsx)(s.Button,{size:"sm",variant:g?"brand":"outline","aria-expanded":r,onClick:()=>a(e=>!e),className:"w-full rounded-full",children:"Paste a key"})}),r&&!u&&(0,t.jsxs)("div",{className:"flex animate-in flex-col gap-2.5 pt-1 fade-in slide-in-from-top-1 duration-200",children:[(0,t.jsx)(_,{dense:!0,plain:!0,autoFocus:!0,onSaved:e}),(0,t.jsx)(O,{})]})]})},"KeyInput",0,k,"useVoiceLine",0,S])},658707,561540,e=>{"use strict";var t=e.i(768834),n=e.i(798120),r=e.i(917162),a=e.i(6799),i=e.i(41533),l=e.i(393080),s=e.i(283653),o=e.i(647163),u=e.i(95187);let c=(0,u.createServerReference)("7f6254cab2a25f0dc7b921549a52e34ee9adf49d1d",u.callServer,void 0,u.findSourceMapURL,"updateNowAction"),d=(0,t.create)()(()=>({to:null,failed:null})),m=e=>new Promise(t=>setTimeout(t,e));async function h(e){if(d.getState().to)return;d.setState({to:e,failed:null});let t=(t,n=!0)=>d.setState({to:null,failed:{to:e,why:t,running:n}}),r=Date.now()+i.UPDATE.waitMs;for(;Date.now()<r;){let r;await m(i.UPDATE.pollMs);try{r=await (0,s.fetchRoute)(n.queryKey.update)}catch{continue}if(r.current===e)return window.location.reload();if(r.moving?.failed)return t(r.moving.failed);if(!r.moving)return t(`${r.current??"The one before"} runs again.`)}t("The new version did not answer in time.",!1)}async function p(e){try{let t=(0,l.unwrapResult)(await c(e,!1));if(!t.started&&t.busy){if(!await r.notify.confirm({title:`Update to ${e} now?`,description:(({call:e,threads:t})=>[e?"A call is open and ends when Thursday restarts.":null,t?`${1===t?"A job is":`${t} jobs are`} at work: ${1===t?"it pauses and waits":"they pause and wait"} on Continue, and a routine's run ends.`:null].filter(Boolean).join(" "))(t.busy),okText:"Update",cancelText:"Later",cautious:!0}))return;t=(0,l.unwrapResult)(await c(e,!0))}t.started&&h(e)}catch(e){a.toast.add({type:"error",title:"Could not start the update",description:(0,o.errorToString)(e)})}}e.s(["followUpdate",0,h,"moveTo",0,p,"useUpdateStore",0,d],658707);var f=e.i(213377);let g={[f.TOOL_NAMES.memory_recall]:"Checking your notes",[f.TOOL_NAMES.memory_create]:"Starting a note",[f.TOOL_NAMES.memory_remember]:"Noting that down",[f.TOOL_NAMES.memory_describe]:"Renaming a note",[f.TOOL_NAMES.memory_forget]:"Forgetting that",[f.TOOL_NAMES.bash]:"Doing it on this computer",[f.TOOL_NAMES.web_search]:"Searching the web",[f.TOOL_NAMES.load_skill]:"Reading how to do this",[f.TOOL_NAMES.look_at]:"Looking at the picture",[f.TOOL_NAMES.make_deck]:"Making the deck",[f.TOOL_NAMES.end_call]:"Ending the call",[f.TOOL_NAMES.routine]:"Checking your routines"};function y(e,t=28){let n=e.trim().replace(/\s+/g," ");if(n.length<=t)return n;let r=n.slice(0,t),a=r.lastIndexOf(" ");return`${(a>t/2?r.slice(0,a):r).trimEnd()}…`}let x=(e,t)=>"string"==typeof e[t]?e[t].trim():"";function O(e){if(!e)return null;try{let t=JSON.parse(e);if(t&&"object"==typeof t&&!Array.isArray(t))return t}catch{}return null}let S=new Set([f.TOOL_NAMES.thread_tell,f.TOOL_NAMES.thread_answer,f.TOOL_NAMES.thread_status,f.TOOL_NAMES.thread_show,f.TOOL_NAMES.thread_cancel,f.TOOL_NAMES.thread_seen]);function b(e){return Array.isArray(e)?e.flatMap(e=>e&&"object"==typeof e&&"string"==typeof e.url?[e]:[]):[]}e.s(["reasoningTitle",0,function(e){return/^\s*\*\*(.+?)\*\*/.exec(e)?.[1]?.trim()||null},"searchOf",0,function(e,t){if(e!==f.TOOL_NAMES.web_search)return null;try{let e=JSON.parse(t);return{query:"string"==typeof e.query?e.query:null,sources:b(e.sources)}}catch{return null}},"searchQueryOf",0,function(e){let t=O(e)?.query;return"string"==typeof t&&t.trim()?t.trim():null},"searchSourcesOf",0,function(e){return b(O(e)?.sources)},"startedLabel",0,function(e,t){if(e!==f.TOOL_NAMES.thread_start)return null;try{let e=JSON.parse(t);return"string"==typeof e.label?e.label:null}catch{return null}},"toolBot",0,function(e,t,n,r){let a=O(t);if(!a)return null;if(e===f.TOOL_NAMES.thread_start)return"string"==typeof a.bot&&a.bot.trim()?a.bot.trim():null;if(!S.has(e))return null;let i="string"==typeof a.thread?a.thread.trim():"";if(!i||"all"===i.toLowerCase())return null;let l=i.toLowerCase(),s=n?.find(e=>e.id===i)??n?.find(e=>e.label.toLowerCase()===l);return s?e===f.TOOL_NAMES.thread_answer?s.room.questions[0]?.bot??s.bot:s.bot:function(e){let t=O(e);if(!t)return null;if("string"==typeof t.bot&&t.bot.trim())return t.bot.trim();let n=t.answered;return"string"==typeof n?.bot?n.bot:null}(r)},"toolLine",0,function(e,t,n=null){let r;if(e===f.TOOL_NAMES.tool_search||e===f.TOOL_NAMES.tool_call)return"Reaching a connected service";let a=O(t);return(a&&function(e,t,n){if(e===f.TOOL_NAMES.memory_remember||e===f.TOOL_NAMES.memory_create){let n=x(t,"path"),r=function(e){if(!Array.isArray(e.facts))return null;let t=e.facts.map(e=>e&&"object"==typeof e&&"string"==typeof e.text?e.text.trim():"").filter(Boolean);return t.length?{text:t[0],more:t.length-1}:null}(t),a=e===f.TOOL_NAMES.memory_create?"Starting":"Noting";if(!n)return null;if(!r)return`${a} ${n}`;let i=r.more>0?` (+${r.more})`:"";return`${a} ${n}: ${y(r.text)}${i}`}if(e===f.TOOL_NAMES.memory_recall){let e=x(t,"path");return e?`Checking \xb7 ${e}`:null}if(e===f.TOOL_NAMES.memory_describe){let e=x(t,"path");return e?`Renaming \xb7 ${e}`:null}if(e===f.TOOL_NAMES.bash){let e=x(t,"description")||x(t,"command");return e?`On this computer \xb7 ${y(e,44)}`:null}if(e===f.TOOL_NAMES.load_skill){let e=x(t,"name");return e?`Reading the ${e} skill`:null}if(e===f.TOOL_NAMES.look_at){let e=x(t,"path");return e?`Looking at ${e.split("/").filter(Boolean).at(-1)??""}`:null}if(e===f.TOOL_NAMES.make_deck){let e=x(t,"title");return e?`Making the deck \xb7 ${y(e,44)}`:null}if(e===f.TOOL_NAMES.thread_start){let e=x(t,"bot");return e?`Handing this to ${e}`:"Handing this over"}if(e===f.TOOL_NAMES.web_search){let e=x(t,"query");return e?`Searching \xb7 ${e}`:null}if(e===f.TOOL_NAMES.routine){if("create"===t.action){let e=[x(t,"bot"),function(e){if("string"==typeof e.at&&e.at.length>=16){let[t,n]=e.at.split(" "),[r,a,i]=t.split("-").map(Number),l=new Date(r,a-1,i);if(l.toDateString()===new Date().toDateString())return`once at ${n}`;let s=l.toLocaleDateString("en-US",{month:"short",day:"numeric"});return`once, ${s} ${n}`}return"string"==typeof e.time&&e.time?`daily at ${e.time}`:"number"==typeof e.everyHours?`every ${e.everyHours} hours`:null}(t)].filter(Boolean).join(", ");return e?`Setting a routine \xb7 ${e}`:"Setting a routine"}return"change"===t.action?"Changing a routine":"delete"===t.action?"Deleting a routine":null}let r=x(t,"thread");return e===f.TOOL_NAMES.thread_tell?n?`Telling ${n}`:"Passing that on":e===f.TOOL_NAMES.thread_answer?n?`Answering ${n}`:"Answering that":e===f.TOOL_NAMES.thread_cancel?r?`Stopping ${r}`:"Stopping that":e===f.TOOL_NAMES.thread_seen?r?`Marking ${r} as read`:"Marking that as read":e===f.TOOL_NAMES.thread_show?r?`Opening ${r}`:"Opening that":e===f.TOOL_NAMES.thread_status?r&&"all"!==r.toLowerCase()?`Checking on ${r}`:"Checking on the work":null}(e,a,n))??g[e]??((r=e.indexOf("__"))<=0?null:`Reaching ${e.slice(0,r).replace(/[-_]/g," ")}`)}],561540)},333495,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(567334),a=e.i(387758),i=e.i(922521),l=e.i(647163);let s={ending:"ending",idle:"idle",connecting:"connecting",listening:"idle",speaking:"speaking",working:"working",delegating:"working"};function o({status:e,failed:n,word:l,size:u,getSpectrum:c,waking:d,held:m,className:h}){let p=(0,i.useIsDark)();return(0,t.jsx)(a.AsciiOrb,{mode:n?"error":s[e],word:l,size:u,color:p?r.ORB_INK.dark:r.ORB_INK.light,getSpectrum:c,waking:d,held:m,className:h})}let u=(0,n.memo)(function({status:e="idle",covered:r=!1,className:a,...i}){let s=(0,n.useRef)(null),[u,c]=(0,n.useState)(null),[d,m]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=s.current;if(!e)return;let t=new ResizeObserver(([e])=>{let t=Math.round(e.contentRect.width);t>0&&c(t)});return t.observe(e),()=>t.disconnect()},[]),(0,n.useEffect)(()=>{let e=requestAnimationFrame(()=>m(!0));return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)("div",{ref:s,className:(0,l.cn)("aspect-square transition-opacity duration-700 ease-out",d&&null!==u?"opacity-100":"opacity-0",a),children:null!==u&&!r&&(0,t.jsx)(o,{...i,status:e,size:u})})});e.s(["Face",0,u])},671228,67045,297825,e=>{"use strict";let t,n;var r=e.i(362201),a=e.i(798120),i=e.i(265402),l=e.i(616172),s=e.i(413168);r.object({place:r.string().max(120).regex(/^[^\n\r]*$/).nullable(),weather:r.object({code:r.number().int().min(0).max(99),temperature:r.number(),low:r.number(),high:r.number(),sunrise:r.string().regex(/^\d{2}:\d{2}$/),sunset:r.string().regex(/^\d{2}:\d{2}$/),gusts:r.number().min(0).nullish()}).nullable()});let o=[{id:"chatgpt",...i.TEXT_MODEL_PROVIDERS.chatgpt},{id:"openai",...i.TEXT_MODEL_PROVIDERS.openai}];r.object({id:r.string().min(1),text:r.string(),said:r.boolean(),pictures:r.array(r.string()).optional()});let u="note",c=e=>e.type===`data-${u}`?e.data:null,d={min:3,max:32},m=r.object({enabled:r.boolean(),phrase:r.string().trim().min(d.min).max(d.max)}),h={enabled:!1,phrase:"hey thursday"},p=r.object({enabled:r.boolean(),combo:r.string().trim().min(1).max(64)}),f={enabled:!1,combo:"alt+shift+KeyT"},g=["off","waiting","any"],y=r.enum(g),x="waiting",O=["center","sides"],S=r.enum(O);r.object({id:r.string().min(1),role:r.enum(["user","assistant","tool"]),tool:r.string().nullish(),text:r.string(),seq:r.number().int().min(0),fragments:r.array(s.LiveFragmentSchema).nullish()}),r.object({id:r.string().min(1),text:r.string(),seq:r.number().int().min(0)}),e.s(["CALL_BACK_DEFAULT",0,x,"CALL_BACK_LABEL",0,{off:"Never",waiting:"When a job needs me",any:"Whenever a job ends"},"CALL_BACK_MODES",0,g,"CAPTION_VIEWS",0,O,"CallBackSchema",0,y,"CaptionViewSchema",0,S,"HOTKEY_DEFAULT",0,f,"HotkeySchema",0,p,"TEXT_CALL_MOVED",0,"moved","TEXT_CALL_NOTE",0,u,"TEXT_CALL_REFUSED",0,"refused","WAKE_DEFAULT",0,h,"WAKE_PHRASE",0,d,"WakeSchema",0,m,"isEnglishPhrase",0,e=>/^[a-z0-9\s'.,!?-]+$/i.test(e.trim())&&/[a-z]/i.test(e),"noteOf",0,c,"notesIn",0,e=>e.flatMap(e=>e.parts.flatMap(e=>{let t=c(e);return t?[t]:[]})),"picturePart",0,e=>({type:"file",mediaType:(0,l.mimeOf)(e),url:a.queryKey.file(e),filename:e.split("/").pop()??e}),"textCallRunsOn",0,e=>o.find(t=>e(t.apiKeyName))?.id??null],671228);var b=e.i(768834);let v=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>v(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>v(t)(e)}}};var _=e.i(149666);let E=r.object({wake:m.catch(h),hotkey:p.catch(f),callBack:y.catch(x),captionView:S.catch("sides"),textModel:i.textModelRefSchema.nullable().catch(null)}),N={wake:h,hotkey:f,callBack:x,captionView:"sides",textModel:null},k=(0,b.create)()((t=e=>({...N,carried:null,patch:t=>e(t),carriedDone:()=>e({carried:null})}),n={name:"thursday.settings",version:2,migrate:(e,t)=>t<1&&e&&"object"==typeof e?{...e,webSearch:!0}:e,partialize:e=>({wake:e.wake,hotkey:e.hotkey,callBack:e.callBack,captionView:e.captionView,textModel:e.textModel}),merge:(e,t)=>{let n=E.safeParse(e),r=n.success?n.data:N;return{...t,...r,carried:function(e){if(!e||"object"!=typeof e)return null;let t=[...Object.keys(_.LiveSettingsSchema.shape),"voicePrompt","systemPrompt","model"].filter(t=>t in e);return t.length?Object.fromEntries(t.map(t=>[t,e[t]])):null}(e)}}},(e,r,a)=>{let i,l={storage:function(e){let t;try{t=e()}catch(e){return}return{getItem:e=>{var n;let r=e=>null===e?null:JSON.parse(e,void 0),a=null!=(n=t.getItem(e))?n:null;return a instanceof Promise?a.then(r):r(a)},setItem:(e,n)=>t.setItem(e,JSON.stringify(n,void 0)),removeItem:e=>t.removeItem(e)}}(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...n},s=!1,o=0,u=new Set,c=new Set,d=l.storage;if(!d)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),e(...t)});let m=()=>{let e=l.partialize({...r()});return d.setItem(l.name,{state:e,version:l.version})},h=a.setState;a.setState=(e,t)=>(h(e,t),m());let p=t((...t)=>(e(...t),m()));a.getInitialState=()=>p;let f=()=>{var t,n;if(!d)return;let a=++o;s=!1,u.forEach(e=>{var t;return e(null!=(t=r())?t:p)});let h=(null==(n=l.onRehydrateStorage)?void 0:n.call(l,null!=(t=r())?t:p))||void 0;return v(d.getItem.bind(d))(l.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===l.version)return[!1,e.state];else{if(l.migrate){let t=l.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(t=>{var n;if(a!==o)return;let[s,u]=t;if(e(i=l.merge(u,null!=(n=r())?n:p),!0),s)return m()}).then(()=>{a===o&&(null==h||h(r(),void 0),i=r(),s=!0,c.forEach(e=>e(i)))}).catch(e=>{a===o&&(null==h||h(void 0,e))})};return a.persist={setOptions:e=>{l={...l,...e},e.storage&&(d=e.storage)},clearStorage:()=>{++o,null==d||d.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>f(),hasHydrated:()=>s,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},l.skipHydration||f(),i||p}));e.s(["useThursdayStore",0,k],67045);var L=e.i(271645),w=e.i(609856),T=e.i(283653),A=e.i(95187);let M=(0,A.createServerReference)("7fa82d392d905101dd467f10fbf8a470086d809d0b",A.callServer,void 0,A.findSourceMapURL,"seedLiveSettingsAction"),R=(0,A.createServerReference)("7f0049565363d7820c3f80f8ffdcbf33fe233d12ce",A.callServer,void 0,A.findSourceMapURL,"setLiveSettingsAction");e.s(["useLiveSettings",0,function(){let{data:e}=(0,T.useServerRoute)(a.queryKey.thursdaySettings),[t]=(0,w.useServerAction)(R,{onOk:()=>(0,T.revalidate)(a.queryKey.thursdaySettings)}),n=(0,L.useCallback)(e=>void t(e),[t]);return function(){let e=k(e=>e.carried),t=k(e=>e.carriedDone),[n]=(0,w.useServerAction)(M,{onOk:e=>{e&&(0,T.revalidate)(a.queryKey.thursdaySettings)},errorMessage:!1});(0,L.useEffect)(()=>{e&&(t(),n(e))},[e,t,n])}(),{settings:e,patch:n}}],297825)},375775,e=>{"use strict";var t=e.i(456420);let n={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};n.node;let r=(0,t.default)(n);e.s(["ArrowUpRight",0,r],375775)},422411,525335,e=>{"use strict";var t=e.i(456420);let n={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]};n.node;let r=(0,t.default)(n);e.s(["AudioLines",0,r],422411);let a={name:"captions",size:24,node:[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2",key:"12ruh7"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4",key:"1ueiar"}]],aliases:["subtitles"]};a.node;let i=(0,t.default)(a);e.s(["Captions",0,i],525335)},508734,e=>{"use strict";var t=e.i(456420);let n={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};n.node;let r=(0,t.default)(n);e.s(["Copy",0,r],508734)},758925,e=>{"use strict";var t=e.i(456420);let n={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};n.node;let r=(0,t.default)(n);e.s(["KeyRound",0,r],758925)},96315,e=>{"use strict";var t=e.i(456420);let n={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};n.node;let r=(0,t.default)(n);e.s(["Mail",0,r],96315)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,107941,e=>{"use strict";var t=e.i(843476),n=e.i(24071),i=e.i(867927),s=e.i(482022),r=e.i(829600),a=e.i(456420);let o={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};o.node;let l=(0,a.default)(o);var d=e.i(905015),c=e.i(226091),u=e.i(726067),m=e.i(569644),x=e.i(815170),h=e.i(51921);let f={name:"sheet",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]};f.node;let p=(0,a.default)(f);var g=e.i(759659),v=e.i(438583),y=e.i(271645),k=e.i(798120),j=e.i(167881),b=e.i(917162),S=e.i(41533),w=e.i(895836),N=e.i(621285),A=e.i(30830),F=e.i(95187);let C=(0,F.createServerReference)("7f8cb9900672365c48c2944ec0bd68db4e9086f4af",F.callServer,void 0,F.findSourceMapURL,"emptyScratchAction");var P=e.i(267301),$=e.i(245629),R=e.i(609856),z=e.i(283653),E=e.i(647163);let T={markdown:c.FileText,csv:p,json:d.FileJson,text:c.FileText,frame:l,image:x.Image,audio:h.Music,video:v.Video,none:r.File};function M({label:e,rows:n,children:i}){return 0===n.length?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"px-3 pt-3 pb-1 font-mono text-[10px] text-muted-foreground",children:e}),i]})}function W({entry:e,active:n,onPick:s}){let r="dir"===e.kind?u.Folder:T[e.view];return(0,t.jsxs)("button",{type:"button",onClick:s,title:"file"===e.kind?`${e.name} \xb7 ${(0,$.shortAgo)(e.at)}`:e.name,className:(0,E.cn)("mx-2 flex items-center gap-2 rounded-md px-2 py-1.5 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",n?(0,E.cn)(w.PICKED_ROW,"font-medium"):"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,t.jsx)(r,{className:"size-3.5 shrink-0 opacity-70"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),"file"===e.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:(0,E.formatBytes)(e.bytes)}),(0,t.jsx)("span",{className:"w-3.5 shrink-0"})]}):(0,t.jsx)(i.ChevronRight,{className:"size-3.5 shrink-0 text-muted-foreground/50"})]})}function O({empty:e}){return(0,t.jsx)("div",{className:"space-y-4 p-8",children:e?(0,t.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:["Nothing here yet. What a bot writes during a call lands in"," ",(0,t.jsxs)("span",{className:"font-mono text-[13px] text-foreground",children:[S.PATHS.artifacts,"/"]})," ","— a page, a table, a picture — and shows up here to open."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"Pick a file on the left."}),(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:"Only what the app can open is listed — a page, a table, a picture, a note. Installed packages and tool leftovers are left out, and no folder is measured, so a folder opens as fast as it lists. Reveal folder, at the foot, opens everything else."})]})})}function K({file:e,onGone:n}){let i=e.path,[r]=(0,R.useServerAction)(P.revealFileAction),[a,o]=(0,R.useServerAction)(A.deleteWorkspaceFileAction,{okMessage:"File deleted",onOk:()=>{(0,z.revalidate)(k.queryKey.workspace),n()}}),l=async()=>{await b.notify.confirm({title:`Delete ${i.split("/").pop()}?`,description:"It is deleted from disk for good.",okText:"Delete",destructive:!0})&&a(i)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-b border-border/60 px-6 py-2",children:[(0,t.jsx)(B,{path:i}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:[(0,E.formatBytes)(e.bytes)," · ",(0,$.shortAgo)(e.at)]}),(0,t.jsx)("a",{href:k.queryKey.fileView(i),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(s.ExternalLink,{className:"size-4"})}),(0,t.jsx)(j.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>r(i),children:(0,t.jsx)(m.FolderOpen,{})}),(0,t.jsx)(j.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:o,className:"text-muted-foreground",onClick:l,children:(0,t.jsx)(g.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:(0,t.jsx)(N.FilePreview,{path:i,bytes:e.bytes})})]})}function B({path:e}){let n=["workspace",...e.split("/").filter(Boolean)];return(0,t.jsx)("span",{className:"flex min-w-0 flex-1 items-center gap-1 font-mono text-[11px] text-muted-foreground",children:n.map((e,s)=>(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[s>0&&(0,t.jsx)(i.ChevronRight,{className:"size-3 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:(0,E.cn)("truncate",s===n.length-1&&"text-foreground"),children:e})]},`${s}-${e}`))})}e.s(["WorkspaceSetting",0,function(){let[e,i]=(0,y.useState)(""),[s,r]=(0,y.useState)(S.WORKSPACE_VIEW.rows),[a,o]=(0,y.useState)(null),[l,d]=(0,y.useState)(""),{data:c,isLoading:u,error:x}=(0,z.useServerRoute)(k.queryKey.workspaceFolder(e,s),{keepPreviousData:!0}),h=e=>{i(e),r(S.WORKSPACE_VIEW.rows)},[f,p]=(0,R.useServerAction)(C,{okMessage:"Scratch emptied",onOk:()=>(0,z.revalidate)(k.queryKey.workspace)}),[g]=(0,R.useServerAction)(P.revealFileAction),v=async()=>{await b.notify.confirm({title:"Empty scratch?",description:`Everything under ${S.PATHS.scratch}/ is deleted for good. ${S.PATHS.artifacts}/ and ${S.PATHS.projects}/ are untouched.`,okText:"Empty",destructive:!0})&&f()};if(u)return(0,t.jsx)(w.SettingPanesSkeleton,{});if(x)return(0,t.jsx)(w.SettingError,{message:x.message});let N=c?.entries??[],A=c?.total??0,F=l.trim().toLowerCase(),$=F?N.filter(e=>e.name.toLowerCase().includes(F)):N,E=$.filter(e=>"dir"===e.kind),T=$.filter(e=>"file"===e.kind),B=""!==e||N.some(e=>"dir"===e.kind&&e.name===S.PATHS.scratch),V=N.find(e=>"file"===e.kind&&e.path===a?.path)??a;return(0,t.jsx)(w.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:`${S.PATHS.workspace}${e?`/${e}`:""}`}),` \xb7 ${function(e,t){let n=e.filter(e=>"dir"===e.kind).length,i=e.length-n,s=[n&&`${n} ${1===n?"folder":"folders"}`,i&&`${i} ${1===i?"file":"files"}`].filter(Boolean);if(!s.length)return"empty";let r=s.join(" · ");return t>e.length?`${r} of ${t.toLocaleString("en")}`:r}(N,A)}`]})}),(0,t.jsxs)(j.Button,{variant:"outline",size:"sm",onClick:()=>g(e||"."),children:[(0,t.jsx)(m.FolderOpen,{}),"Reveal folder"]}),B&&(0,t.jsx)(j.Button,{variant:"outline",size:"sm",loading:p,onClick:v,className:"text-destructive hover:text-destructive",children:"Empty scratch"})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(w.SettingFilter,{value:l,onChange:d,placeholder:"Filter this folder",className:"mx-2 mb-1.5 w-auto"}),e&&(0,t.jsxs)("button",{type:"button",onClick:()=>h(e.split("/").slice(0,-1).join("/")),className:"mx-2 mb-1 flex items-center gap-1 rounded-md px-2 py-1 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:[(0,t.jsx)(n.ChevronLeft,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.split("/").slice(0,-1).pop()??"workspace"})]}),0===$.length?(0,t.jsx)("p",{className:"px-4 py-3 text-xs text-muted-foreground",children:F?"Nothing matches":"Empty folder"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M,{label:"folders",rows:E,children:E.map(e=>(0,t.jsx)(W,{entry:e,onPick:()=>h(e.path)},e.path))}),(0,t.jsx)(M,{label:"files",rows:T,children:T.map(e=>(0,t.jsx)(W,{entry:e,active:e.path===a?.path,onPick:()=>"file"===e.kind&&o(e)},e.path))})]}),A>N.length&&(0,t.jsx)("button",{type:"button",onClick:()=>r(s+S.WORKSPACE_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(S.WORKSPACE_VIEW.rows,A-N.length)} more of ${A.toLocaleString("en")}`})]}),right:V?.kind==="file"?(0,t.jsx)(K,{file:V,onGone:()=>o(null)},V.path):(0,t.jsx)(O,{empty:!e&&0===N.length})})}],107941)},30830,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7fb032f1365c4590741fb41e5393384b8aa6dd1cda",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,n])},726067,e=>{"use strict";var t=e.i(456420);let n={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};n.node;let i=(0,t.default)(n);e.s(["Folder",0,i],726067)},759659,e=>{"use strict";var t=e.i(456420);let n={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};n.node;let i=(0,t.default)(n);e.s(["Trash2",0,i],759659)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23750,e=>{"use strict";var t=e.i(843476),i=e.i(271645);e.i(166432);var r=e.i(932013),n=e.i(45574),l=e.i(535718),a=e.i(910148),s=e.i(951437),o=e.i(146376),u=e.i(108868),d=e.i(667865),c=e.i(439957),f=e.i(469690),m=e.i(381104),x=e.i(884708),v=e.i(247778),g=e.i(538489),h=e.i(875812),b=e.i(552245),p=e.i(606039),C=e.i(675606),j=e.i(56434),y=e.i(584446);let N=i.forwardRef(function(e,t){let{render:r,className:n,id:l,name:a,value:N,disabled:w=!1,onValueChange:R,defaultValue:S,autoFocus:E=!1,style:D,...I}=e,{state:T,name:k,disabled:F,setTouched:O,setDirty:L,validityData:M,setFocused:P,setFilled:A,validationMode:V,validation:_}=(0,f.useFieldRootContext)(),{clearErrors:B,elementRef:U,submitCountRef:K}=(0,x.useFormContext)(),z=F||w,W=k??a,Y={...T,disabled:z},{labelId:H}=(0,v.useLabelableContext)(),J=(0,g.useLabelableId)({id:l}),[q]=(0,s.useControlled)({controlled:N,default:S,name:"FieldControl",state:"value"}),G=void 0!==N,X=G?q:void 0,$=null==X?void 0:String(X),Q=(0,d.useStableCallback)(()=>_.inputRef.current?.value);(0,m.useRegisterFieldControl)(_.inputRef,J,$,Q,!z,a),(0,o.useIsoLayoutEffect)(()=>{let e=$??_.inputRef.current?.value;void 0!==e&&A(""!==e)},[$,_.inputRef,A]),(0,p.useValueChanged)($,()=>{void 0!==$&&(B(W),L($!==(M.initialValue??"")),_.change($))});let Z=i.useRef(null),ee=(0,c.useTimeout)();return(0,o.useIsoLayoutEffect)(()=>{E&&Z.current===(0,y.activeElement)((0,u.ownerDocument)(Z.current))&&P(!0)},[E,P]),(0,b.useRenderElement)("input",e,{ref:[t,Z],state:Y,props:[{id:J,disabled:z,name:W,ref:_.inputRef,"aria-labelledby":H,autoFocus:E,...G?{value:X}:{defaultValue:S},onChange(e){let t=e.currentTarget.value,i=(0,C.createChangeEventDetails)(j.REASONS.none,e.nativeEvent);R?.(t,i),!G&&(L(t!==(M.initialValue??"")),A(""!==t),e.nativeEvent.defaultPrevented||i.isCanceled||(B(W),_.change(t)))},onFocus(){P(!0)},onBlur(e){if(O(!0),P(!1),"onBlur"===V){let t=e.currentTarget.value;_.commit(t),G&&queueMicrotask(()=>{let e=_.inputRef.current?.value;void 0!==e&&e!==t&&e!==(M.initialValue??"")&&_.commit(e)})}},onKeyDown(e){if("INPUT"===e.currentTarget.tagName&&"Enter"===e.key){O(!0);let t=e.currentTarget.value,i=e.currentTarget.form;if(i&&i===U.current&&!e.defaultPrevented){let t=e.currentTarget,i=K.current;ee.start(0,()=>{K.current===i&&_.commit(t.value)})}else _.commit(t)}}},I,e=>_.getValidationProps(z,e)],stateAttributesMapping:h.fieldValidityMapping})});var w=e.i(568815),R=e.i(223910),S=e.i(157153),E=e.i(666493);let D=i.forwardRef(function(e,r){let{render:n,className:l,style:a,disabled:s=!1,...o}=e,{state:u,disabled:d}=(0,f.useFieldRootContext)(!1),c=d||s,m={...u,disabled:c},x=i.useMemo(()=>({disabled:c}),[c]),v=(0,b.useRenderElement)("div",e,{ref:r,state:m,props:o,stateAttributesMapping:h.fieldValidityMapping});return(0,t.jsx)(E.LabelableProvider,{children:(0,t.jsx)(S.FieldItemContext.Provider,{value:x,children:v})})});e.s(["Control",0,N,"Description",()=>a.FieldDescription,"Error",()=>l.FieldError,"Item",0,D,"Label",()=>n.FieldLabel,"Root",()=>r.FieldRoot,"Validity",0,function(e){let{children:r}=e,{validityData:n,invalid:l}=(0,f.useFieldRootContext)(!1),a=i.useMemo(()=>(0,w.getCombinedFieldValidityData)(n,l),[n,l]),s=!1===a.state.valid,{transitionStatus:o}=(0,R.useTransitionStatus)(s),u=i.useMemo(()=>({...a,validity:a.state,transitionStatus:o}),[a,o]);return(0,t.jsx)(i.Fragment,{children:r(u)})}],305359);var I=e.i(305359),I=I;let T=i.forwardRef(function(e,i){return(0,t.jsx)(I.Control,{ref:i,...e})});var k=e.i(647163);let F="h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40";e.s(["Input",0,function({className:e,type:i,...r}){return(0,t.jsx)(T,{type:i,"data-slot":"input",className:(0,k.cn)(F,e),...r})},"inputClassName",0,F],23750)},917162,e=>{"use strict";var t=e.i(843476),i=e.i(271645),r=e.i(88014),n=e.i(167881),l=e.i(630374),a=e.i(23750),s=e.i(184762),o=e.i(647163);let u=()=>{let e=document.createElement("div");e.id=crypto.randomUUID(),document.body.appendChild(e);let t=(0,r.createRoot)(e);return{render:e=>t.render(e),unmount:()=>{t.unmount(),e.remove()}}},d={component:({renderer:e,className:i})=>new Promise(r=>{let n=u(),a=null,s=()=>{n.unmount(),r()},c=async()=>{(!a?.()||await d.discard())&&s()};n.render((0,t.jsx)(l.Dialog,{open:!0,onOpenChange:c,children:(0,t.jsx)(l.DialogContent,{className:(0,o.cn)("px-0",i),children:e({close:s,guard:e=>{a=e}})})}))}),discard:()=>d.confirm({title:"Discard your changes?",description:"What you wrote here is not saved.",okText:"Discard",destructive:!0}),alert:e=>new Promise(i=>{let r=u(),a=()=>{r.unmount(),i()};r.render((0,t.jsx)(l.Dialog,{open:!0,onOpenChange:a,children:(0,t.jsxs)(l.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:e.title}),(0,t.jsx)(l.DialogDescription,{children:e.description})]}),(0,t.jsx)(l.DialogFooter,{children:(0,t.jsx)(n.Button,{variant:"ghost",onClick:a,autoFocus:!0,children:e.okText||"OK"})})]})}))}),confirm:e=>new Promise(i=>{if(e.signal?.aborted)return void i(!1);let r=u(),a=!1,s=()=>{a||(a=!0,e.signal?.removeEventListener("abort",f),r.unmount())},d=()=>{i(!0),s()},c=()=>{i(!1),s()},f=()=>queueMicrotask(c);e.signal?.addEventListener("abort",f,{once:!0});let m=!!(e.destructive||e.cautious);r.render((0,t.jsx)(function(){return(0,t.jsx)(l.Dialog,{open:!0,onOpenChange:c,children:(0,t.jsxs)(l.DialogContent,{showCloseButton:!1,className:(0,o.cn)("max-h-[calc(100dvh-2rem)]",e.body?"grid-rows-[minmax(0,1fr)_auto_auto]":"grid-rows-[minmax(0,1fr)_auto]"),children:[(0,t.jsxs)(l.DialogHeader,{className:"min-h-0 overflow-y-auto wrap-anywhere",children:[(0,t.jsx)(l.DialogTitle,{children:e.title}),(0,t.jsx)(l.DialogDescription,{children:e.description})]}),e.body,(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(n.Button,{variant:"ghost",onClick:c,autoFocus:m,children:e.cancelText||"Never mind"}),(0,t.jsx)(n.Button,{variant:e.destructive?"destructive":"secondary",onClick:d,autoFocus:!m,children:e.okText||"OK"})]})]})})},{}))}),prompt:e=>new Promise(r=>{let o=u(),d=(e="")=>{o.unmount(),r(e)};o.render((0,t.jsx)(()=>{let[r,o]=(0,i.useState)(""),u=e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),d(r))};return(0,t.jsx)(l.Dialog,{open:!0,onOpenChange:()=>d(),children:(0,t.jsxs)(l.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:e.title}),(0,t.jsx)(l.DialogDescription,{children:e.description}),e.multiline?(0,t.jsx)(s.Textarea,{className:"resize-none max-h-[200px]",placeholder:e.placeholder,autoFocus:!0,value:r,maxLength:e.maxLength,onKeyDown:u,onChange:e=>o(e.target.value)}):(0,t.jsx)(a.Input,{placeholder:e.placeholder,autoFocus:!0,value:r,maxLength:e.maxLength,onChange:e=>o(e.target.value),onKeyDown:u})]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(n.Button,{variant:"ghost",onClick:()=>d(),children:e.cancelText||"Cancel"}),(0,t.jsx)(n.Button,{disabled:!r.trim(),variant:"secondary",onClick:()=>d(r),children:e.okText||"OK"})]})]})})},{}))})};e.s(["notify",0,d])},895836,630299,566595,e=>{"use strict";var t=e.i(843476),i=e.i(77071),r=e.i(456420);let n={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};n.node;let l=(0,r.default)(n);e.s(["default",0,l],630299),e.s(["Search",0,l],566595);var a=e.i(271645),s=e.i(630374),o=e.i(23750),u=e.i(671428),d=e.i(647163);let c="px-8 pt-8 pb-6";function f({className:e,children:i}){return(0,t.jsx)("div",{className:(0,d.cn)("mx-auto w-full max-w-[55rem]",e),children:i})}function m({left:e,right:i,footer:r}){return(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"mt-8 flex min-h-0 flex-1 border-t border-border/60",children:[(0,t.jsx)("div",{className:"flex w-64 shrink-0 flex-col overflow-y-auto border-r border-border/60 bg-muted/20",children:e}),(0,t.jsx)("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto",children:i})]}),r&&(0,t.jsx)(v,{children:r})]})}let x=["w-28","w-36","w-24","w-32","w-20"];function v({children:e}){return(0,t.jsx)("div",{className:"shrink-0 border-t border-border/60 px-8",children:(0,t.jsx)(f,{className:"flex h-14 items-center gap-3 text-xs text-muted-foreground",children:e})})}function g({label:e,hint:i,filter:r,right:n}){return(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[e&&(0,t.jsx)("h4",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:e}),i&&(0,t.jsx)("span",{className:"truncate font-mono text-xs text-muted-foreground",children:i}),r,n&&(0,t.jsx)("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:n})]})}function h({className:e,children:i}){return(0,t.jsx)("p",{className:(0,d.cn)("px-1 font-mono text-[11px] text-muted-foreground",e),children:i})}function b({label:e,onClick:r}){return(0,t.jsxs)("button",{type:"button",onClick:r,className:"text-muted-foreground hover:text-foreground flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-lg",children:(0,t.jsx)(i.Plus,{className:"size-4"})}),(0,t.jsx)("span",{className:"text-sm",children:e})]})}e.s(["NavBadge",0,function({tone:e,count:i}){return 0===i?null:void 0===i?(0,t.jsx)("span",{className:(0,d.cn)("size-1.5 shrink-0 rounded-full","red"===e?"bg-destructive":"bg-waiting")}):(0,t.jsx)("span",{className:(0,d.cn)("shrink-0 font-mono text-[11px]","red"===e?"text-destructive":d.WAITING_INK),children:i})},"PICKED_ROW",0,"bg-brand/8 text-foreground dark:bg-brand/14","SettingColumn",0,f,"SettingDialogContent",0,function({title:e,description:i,children:r,footer:n}){return(0,t.jsxs)("div",{className:"flex min-w-0 max-h-[75vh] flex-col gap-6 p-1",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-start justify-between gap-3",children:(0,t.jsxs)("div",{className:"min-w-0 space-y-1 px-6",children:[(0,t.jsx)(s.DialogTitle,{render:(0,t.jsx)("p",{}),className:"truncate text-xl font-semibold",children:e}),i&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:i})]})}),(0,t.jsx)("div",{className:"min-h-0 min-w-0 flex-1 scroll-py-3 overflow-y-auto",children:(0,t.jsx)("div",{className:"space-y-4 p-1 px-6",children:r})}),n&&(0,t.jsx)("div",{className:"flex shrink-0 justify-end gap-2 px-6",children:n})]})},"SettingError",0,function({message:e}){return(0,t.jsx)("div",{className:c,children:(0,t.jsx)(f,{children:(0,t.jsx)("p",{className:"font-mono text-xs text-destructive",children:e})})})},"SettingFilter",0,function({value:e,onChange:i,placeholder:r,className:n}){return(0,t.jsxs)("div",{className:(0,d.cn)("relative w-72 max-w-full",n),children:[(0,t.jsx)(l,{className:"pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(o.Input,{"data-setting-filter":"","aria-label":r,placeholder:r,value:e,onChange:e=>i(e.target.value),className:"h-8 pl-8"})]})},"SettingGroup",0,function({label:e,hint:i,filter:r,right:n,note:l,children:a}){return(0,t.jsxs)("section",{children:[(e||i||r||n)&&(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)(g,{label:e,hint:i,filter:r,right:n})}),a,l&&(0,t.jsx)(h,{className:"mt-2",children:l})]})},"SettingItems",0,function({addRow:e,children:i}){return(0,t.jsxs)("div",{className:"divide-y divide-border/60 rounded-xl border border-border/60",children:[e&&(0,t.jsx)(b,{label:e.label,onClick:e.onClick}),i]})},"SettingMore",0,function({hasMore:e,loading:i,sentinelRef:r,ghost:n,count:l=2,className:s}){return e?(0,t.jsx)("div",{ref:r,"aria-busy":i,"aria-label":"Loading more",className:s,children:Array.from({length:l},(e,i)=>(0,t.jsx)(a.Fragment,{children:n},`ghost-${i}`))}):null},"SettingNote",0,h,"SettingPanes",0,m,"SettingPanesSkeleton",0,function({rows:e=7}){return(0,t.jsx)(m,{footer:(0,t.jsx)(u.Skeleton,{className:"h-3 w-64 max-w-full"}),left:(0,t.jsx)("div",{className:"flex flex-col py-2",children:Array.from({length:e},(e,i)=>(0,t.jsx)("div",{className:"mx-2 flex items-center px-2 py-2",children:(0,t.jsx)(u.Skeleton,{className:(0,d.cn)("h-3",x[i%x.length])})},i))}),right:(0,t.jsx)("div",{className:"flex h-11 shrink-0 items-center border-b border-border/60 px-6",children:(0,t.jsx)(u.Skeleton,{className:"h-3 w-40"})})})},"SettingRailNote",0,function({children:e}){return(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e})},"SettingScreen",0,function({footer:e,children:i}){return(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"relative min-h-0 flex-1",children:[(0,t.jsx)("div",{className:"h-full w-full scroll-py-6 overflow-y-auto",children:(0,t.jsx)("div",{className:c,children:(0,t.jsx)(f,{children:(0,t.jsx)("div",{className:(0,d.cn)("-m-1 p-1","space-y-8"),children:i})})})}),(0,t.jsx)("div",{className:"pointer-events-none absolute top-0 left-0 h-6 w-full bg-linear-to-b from-background to-transparent dark:hidden"})]}),e&&(0,t.jsx)(v,{children:e})]})},"SettingSkeleton",0,function({rows:e=3}){return(0,t.jsx)("div",{className:c,children:(0,t.jsx)(f,{className:"space-y-3",children:Array.from({length:e},(e,i)=>(0,t.jsx)(u.Skeleton,{className:"h-16 w-full rounded-xl"},i))})})},"SettingToolbar",0,function({children:e,count:i}){return(0,t.jsx)(g,{filter:e,right:i})}],895836)},166432,e=>{"use strict";e.s([])},932013,666493,568815,155627,157153,45574,535718,910148,e=>{"use strict";var t=e.i(271645),i=e.i(146376),r=e.i(667865),n=e.i(469690),l=e.i(875812),a=e.i(387068),s=e.i(884708),o=e.i(388940),u=e.i(788015),d=e.i(247778),c=e.i(843476);let f=function(e){let i=(0,u.useBaseUiId)(),[n,l]=t.useState(i),[a,s]=t.useState(),[f,m]=t.useState([]),x=void 0===n?i:n,v=(0,o.useRefWithInit)(()=>new Map),{messageIds:g}=(0,d.useLabelableContext)(),h=(0,r.useStableCallback)((e,t)=>{let i=v.current;void 0===t?i.delete(e):i.set(e,t),l(e=>{let t;if(0===i.size)return e;for(let r of i.values()){if(r===e)return e;void 0===t&&(t=r)}return t})}),b=(0,r.useStableCallback)(()=>{0===v.current.size&&l(i)}),p=t.useCallback(e=>{let t=e["aria-describedby"]?e["aria-describedby"].split(" "):[];return t.push(...g,...f),{...e,"aria-describedby":Array.from(new Set(t)).join(" ")||void 0}},[g,f]),C=t.useMemo(()=>({controlId:x,registerControlId:h,resetControlId:b,labelId:a,setLabelId:s,messageIds:f,setMessageIds:m,getDescriptionProps:p}),[x,h,b,a,s,f,m,p]);return(0,c.jsx)(d.LabelableContext.Provider,{value:C,children:e.children})};e.s(["LabelableProvider",0,f],666493);var m=e.i(552245),x=e.i(956789),v=e.i(439957),g=e.i(176782);function h(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}e.s(["getCombinedFieldValidityData",0,h],568815);let b=Object.keys(l.DEFAULT_VALIDITY_STATE);function p(e,t){return!e.matches(":disabled")&&(!t||e.form===t||null===e.form&&!e.hasAttribute("form"))}function C(e,t){let i=null;for(let r of e.keys())if(p(r,t)){if(!r.validity.valid)return r;i??=r}return i}function j(e){return{...l.DEFAULT_VALIDITY_STATE,valid:!e,customError:e}}function y(e){return e&&e.validationMessage?[e.validationMessage]:[]}function N(e){let{elementRef:i,formRef:n}=(0,s.useFormContext)(),{setValidityData:l,validate:a,validityData:u,validationDebounceTime:c,invalid:f,markedDirtyRef:m,state:p,shouldValidateOnChange:N,validationMode:w,registeredFieldIdRef:R}=e,{controlId:S,getDescriptionProps:E}=(0,d.useLabelableContext)(),D=(0,v.useTimeout)(),I=t.useRef(null),T=(0,o.useRefWithInit)(()=>new Map).current,k=t.useRef(0),F=t.useRef(null),O=t.useCallback((e,t)=>(T.set(e,t),()=>{T.delete(e)}),[T]),L=(0,r.useStableCallback)(()=>{let e=C(T,i.current);return e&&T.get(e)?.controlRef.current||null}),M=(0,r.useStableCallback)(async(e,t=!1)=>{k.current+=1;let r=k.current;function s(){let e=F.current;F.current=null,e&&(!e[0].willValidate||e[0].validationMessage===e[1])&&e[0].setCustomValidity(e[2])}function o(t,i,r){let a,s=(a=!1===t.valid?i:[],{value:e,state:t,error:a[0]??"",errors:a,initialValue:u.initialValue});!function(e,t=f){let i=R.current??S;if(null==i)return;let r=n.current.fields.get(i);if(!r)return;let l=h(e,t);n.current.fields.set(i,{...r,validityData:l})}(s,r),l(s)}function d(){return T.size>0?C(T,i.current):I.current}let c=d();function x(){return c=d(),c?.willValidate?function(e){let t=b.reduce((t,i)=>(t[i]=e.validity[i],t),{}),i=!1;for(let e of b)if("valid"!==e){if("valueMissing"===e&&t[e])i=!0;else if(t[e])return t}return i&&!m.current&&(t.valid=!0,t.valueMissing=!1),t}(c):j(!1)}if(t){if(!1!==p.valid||!c)return;if(!c.validity.valueMissing){s();let e=d(),t=e?.validity.customError?y(e):[];o(j(t.length>0),t,!1);return}for(let e of b)if("valid"!==e&&"valueMissing"!==e&&"customError"!==e&&c.validity[e])return}D.clear(),s();let v=x(),g=y(c),E=N();if(0===g.length||E){let t,i=a(e,Array.from(n.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}));if("object"==typeof i&&null!==i&&"then"in i){if(!1===v.valid?o(v,g):"onSubmit"!==w&&u.state.customError||(v.valid=null,o(v,g)),t=await i,r!==k.current)return;v=x()}else t=i;if((g=t?[].concat(t).filter(Boolean):[]).length>0){var O,L;let e,t;v.valid=!1,v.customError=!0,c?.willValidate&&(O=c,L=g.join("\n"),e=O.validity.customError?O.validationMessage:"",t=L.replace(/\r\n?/g,"\n"),O.setCustomValidity(t),F.current=[O,t,e])}else g=y(c)}o(v,g)}),P=(0,r.useStableCallback)((e,t=!1)=>{if(D.clear(),k.current+=1,t)return;let i=N();i&&""!==e&&c?D.start(c,()=>{M(e)}):M(e,!i)}),A=t.useCallback((e,t={})=>(0,g.mergeProps)(E(t),!1!==p.valid||p.disabled||e?x.EMPTY_OBJECT:{"aria-invalid":!0}),[E,p.disabled,p.valid]);return t.useMemo(()=>({getValidationProps:A,inputRef:I,registeredInputs:T,registerInput:O,getInputControl:L,commit:M,change:P}),[A,T,O,L,M,P])}e.s(["isEligibleInput",0,p,"useFieldValidation",0,N],155627);let w=t.forwardRef(function(e,o){let{errors:u,validationMode:d,submitCountRef:f}=(0,s.useFormContext)(),{render:x,className:v,validate:g,validationDebounceTime:b=0,validationMode:p=d,name:C,disabled:j=!1,invalid:y,dirty:w,touched:R,actionsRef:S,style:E,...D}=e,I=(0,a.useFieldsetRootContext)(!0)?.disabled,T=(0,r.useStableCallback)(g||(()=>null)),k=I||j,[F,O]=t.useState(!1),[L,M]=t.useState(!1),[P,A]=t.useState(!1),[V,_]=t.useState(!1),B=w??L,U=R??F,K=t.useRef(B),z=t.useRef(void 0),[W,Y]=t.useState(),H=C??W;(0,i.useIsoLayoutEffect)(()=>{void 0!==w&&(K.current=w)},[w]);let J=(0,r.useStableCallback)(e=>{void 0===w&&(e&&(K.current=!0),M(e))}),q=(0,r.useStableCallback)(e=>{void 0===R&&O(e)}),G=(0,r.useStableCallback)(()=>"onChange"===p||"onSubmit"===p&&f.current>0),X=H&&Object.hasOwn(u,H)?u[H]:null,$=!!(Array.isArray(X)?X.length:X),Q=!0===y||$,[Z,ee]=t.useState({state:l.DEFAULT_VALIDITY_STATE,error:"",errors:[],value:null,initialValue:null}),et=!Q&&(k?null:Z.state.valid),ei=t.useMemo(()=>({disabled:k,touched:U,dirty:B,valid:et,filled:P,focused:V}),[k,U,B,et,P,V]),er=N({setValidityData:ee,validate:T,validityData:Z,validationDebounceTime:b,invalid:Q,markedDirtyRef:K,state:ei,shouldValidateOnChange:G,validationMode:p,registeredFieldIdRef:z}),[en,el]=function(e){let{change:n,commit:l,invalid:a,markedDirtyRef:o,name:u,setRegisteredFieldName:d,registeredFieldIdRef:c,setValidityData:f,validityData:m}=e,{formRef:x}=(0,s.useFormContext)(),v=t.useRef(null),g=t.useRef(null),b=t.useRef(!1),p=(0,r.useStableCallback)(()=>{let e=g.current;if(e)return e.getValue?e.getValue():e.value});function C(e){return void 0===e.value?p():e.value}let j=(0,r.useStableCallback)(()=>{let e=g.current;(o.current=!0,e)?l(C(e)):l(m.value)});function y(e=g.current?.id){e&&x.current.fields.delete(e)}(0,i.useIsoLayoutEffect)(()=>{let e=g.current;e&&e.id&&(d(u?void 0:e.name),x.current.fields.set(e.id,{getValue:p,name:u??e.name,controlRef:e.controlRef,validityData:h(m,a),validate:j}))},[x,p,a,u,d,j,m]),(0,i.useIsoLayoutEffect)(()=>{let e=x.current.fields;return()=>{let t=g.current?.id;t&&e.delete(t)}},[x]);let N=(0,r.useStableCallback)((e,t)=>{let i;if(!t){v.current===e&&(v.current=null,n(void 0,!0),y(),g.current=null,d(void 0),c.current=void 0);return}let r=g.current?.id,l=v.current;l&&l!==e&&n(void 0,!0),v.current=e,g.current=t,u||d(t.name),c.current=t.id,r&&r!==t.id&&y(r),function(e){if(b.current)return;b.current=!0;let t=C(e);f(e=>e.initialValue===t?e:{...e,initialValue:t})}(t),(i=g.current)&&i.id&&x.current.fields.set(i.id,{getValue:p,name:u??i.name,controlRef:i.controlRef,validityData:h(m,a),validate:j})});return[j,N]}({change:er.change,commit:er.commit,invalid:Q,markedDirtyRef:K,name:C,setRegisteredFieldName:Y,registeredFieldIdRef:z,setValidityData:ee,validityData:Z});t.useImperativeHandle(S,()=>({validate:en}),[en]);let ea=t.useMemo(()=>({invalid:Q,name:H,validityData:Z,setValidityData:ee,disabled:k,setTouched:q,setDirty:J,setFilled:A,setFocused:_,validationMode:p,shouldValidateOnChange:G,state:ei,registerFieldControl:el,validation:er}),[Q,H,Z,k,q,J,A,_,p,G,ei,el,er]),es=(0,m.useRenderElement)("div",e,{ref:o,state:ei,props:D,stateAttributesMapping:l.fieldValidityMapping});return(0,c.jsx)(n.FieldRootContext.Provider,{value:ea,children:es})}),R=t.forwardRef(function(e,t){return(0,c.jsx)(f,{children:(0,c.jsx)(w,{...e,ref:t})})});e.s(["FieldRoot",0,R],932013);var S=e.i(229315),E=e.i(108868),D=e.i(584446);let I=t.createContext({disabled:!1});function T(){return t.useContext(I)}e.s(["FieldItemContext",0,I,"useFieldItemContext",0,T],157153);let k=t.forwardRef(function(e,a){let{render:s,className:o,style:c,id:f,nativeLabel:x=!0,...v}=e,g=(0,n.useFieldRootContext)(!1),h=T(),{labelId:b}=(0,d.useLabelableContext)(),p={...g.state,disabled:g.disabled||h.disabled},C=t.useRef(null),j=function(e={}){let t,{id:n,fallbackControlId:l,native:a=!1,setLabelId:s,focusControl:o}=e,{controlId:c,setLabelId:f}=(0,d.useLabelableContext)(),m=(0,r.useStableCallback)(e=>{f(e),s?.(e)}),x=(t=(0,u.useBaseUiId)(n),(0,i.useIsoLayoutEffect)(()=>(m(t),()=>{m(e=>e===t?void 0:e)}),[t,m]),t),v=c??l;function g(e){let t=(0,D.getTarget)(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),a||function(e){if(o)return o(e,v);if(!v)return;let t=(0,E.ownerDocument)(e.currentTarget).getElementById(v);(0,S.isHTMLElement)(t)&&t.focus({focusVisible:!0})}(e))}return a?{id:x,htmlFor:v,onMouseDown:g}:{id:x,onClick:g,onPointerDown(e){e.preventDefault()}}}({id:b??f,native:x});return(0,m.useRenderElement)("label",e,{ref:[a,C],state:p,props:[j,v],stateAttributesMapping:l.fieldValidityMapping})});e.s(["FieldLabel",0,k],45574);var F=e.i(137584),O=e.i(474354),L=e.i(223910);let M={...l.fieldValidityMapping,...O.transitionStatusMapping},P=t.forwardRef(function(e,r){let{render:l,id:a,className:o,match:f,style:x,...v}=e,g=(0,u.useBaseUiId)(a),{validityData:h,state:b,name:p}=(0,n.useFieldRootContext)(!1),{setMessageIds:C}=(0,d.useLabelableContext)(),{errors:j}=(0,s.useFormContext)(),y=p&&Object.hasOwn(j,p)?j[p]:null,N=!!(Array.isArray(y)?y.length:y),w="string"==typeof f,R=!1;R=!0===f||!b.disabled&&(w?!!h.state[f]:N||!1===h.state.valid);let{mounted:S,transitionStatus:E,setMounted:D}=(0,L.useTransitionStatus)(R);(0,i.useIsoLayoutEffect)(()=>{if(R&&g)return C(e=>e.concat(g)),()=>{C(e=>e.filter(e=>e!==g))}},[R,g,C]);let I=t.useRef(null),[T,k]=t.useState(null),[O,P]=t.useState(null),A=h.error;!w&&N?A=y:h.errors.length>1&&(A=h.errors);let V=A;Array.isArray(A)&&(V=A.length>1?(0,c.jsx)("ul",{children:A.map(e=>(0,c.jsx)("li",{children:e},e))}):A[0]);let _=Array.isArray(A)?JSON.stringify(A):A;R&&_!==O&&(P(_),k(V)),(0,F.useOpenChangeComplete)({open:R,ref:I,onComplete(){R||D(!1)}});let B={...b,transitionStatus:E},U=(0,m.useRenderElement)("div",e,{ref:[r,I],state:B,props:[{id:g,children:R?V:T},v],stateAttributesMapping:M,enabled:S});return S?U:null});e.s(["FieldError",0,P],535718);let A=t.forwardRef(function(e,t){let{render:r,id:a,className:s,style:o,...c}=e,f=(0,u.useBaseUiId)(a),x=(0,n.useFieldRootContext)(!1),v=T(),{setMessageIds:g}=(0,d.useLabelableContext)(),h={...x.state,disabled:x.disabled||v.disabled};return(0,i.useIsoLayoutEffect)(()=>{if(f)return g(e=>e.concat(f)),()=>{g(e=>e.filter(e=>e!==f))}},[f,g]),(0,m.useRenderElement)("p",e,{ref:t,state:h,props:[{id:f},c],stateAttributesMapping:l.fieldValidityMapping})});e.s(["FieldDescription",0,A],910148)},387068,e=>{"use strict";e.i(247167);var t=e.i(733332),i=e.i(271645);let r=i.createContext(void 0);e.s(["useFieldsetRootContext",0,function(e=!1){let n=i.useContext(r);if(!n&&!e)throw Error((0,t.default)(86));return n}])},381104,e=>{"use strict";var t=e.i(146376),i=e.i(388940),r=e.i(469690);e.s(["useRegisterFieldControl",0,function(e,n,l,a,s=!0,o){let{registerFieldControl:u}=(0,r.useFieldRootContext)(),d=(0,i.useRefWithInit)(()=>Symbol());(0,t.useIsoLayoutEffect)(()=>{let t=d.current;s?u(t,{controlRef:e,getValue:a,id:n,name:o,value:l}):u(t,void 0)},[e,s,a,n,o,u,d,l]),(0,t.useIsoLayoutEffect)(()=>{let e=d.current;return()=>{u(e,void 0)}},[u,d])}])},469690,875812,e=>{"use strict";var t=e.i(733332),i=e.i(271645),r=e.i(956789);let n={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},l={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},a={disabled:!1,...l};e.s(["DEFAULT_FIELD_ROOT_STATE",0,a,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,l,"DEFAULT_VALIDITY_STATE",0,n,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}}],875812);let s={invalid:void 0,name:void 0,validityData:{state:n,errors:[],error:"",value:"",initialValue:null},setValidityData:r.NOOP,disabled:void 0,setTouched:r.NOOP,setDirty:r.NOOP,setFilled:r.NOOP,setFocused:r.NOOP,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:a,registerFieldControl:r.NOOP,validation:{getValidationProps:(e,t=r.EMPTY_OBJECT)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:r.NOOP,getInputControl:()=>null,commit:async()=>{},change:r.NOOP}},o=i.createContext(s);e.s(["DEFAULT_FIELD_ROOT_CONTEXT",0,s,"FieldRootContext",0,o,"useFieldRootContext",0,function(e=!0){let n=i.useContext(o);if(n.setValidityData===r.NOOP&&!e)throw Error((0,t.default)(28));return n}],469690)},884708,247778,e=>{"use strict";var t=e.i(271645),i=e.i(956789);let r=t.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:i.NOOP,validationMode:"onSubmit",submitCountRef:{current:0}});e.s(["useFormContext",0,function(){return t.useContext(r)}],884708);let n=t.createContext({controlId:void 0,registerControlId:i.NOOP,resetControlId:i.NOOP,labelId:void 0,setLabelId:i.NOOP,messageIds:[],setMessageIds:i.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,n,"useLabelableContext",0,function(){return t.useContext(n)}],247778)},538489,e=>{"use strict";var t=e.i(271645),i=e.i(146376),r=e.i(667865),n=e.i(388940),l=e.i(956789),a=e.i(788015),s=e.i(247778);e.s(["useLabelableId",0,function(e={}){let{id:o,enabled:u=!0}=e,{controlId:d,registerControlId:c,resetControlId:f}=(0,s.useLabelableContext)(),m=(0,a.useBaseUiId)(),x=(0,n.useRefWithInit)(()=>Symbol()),v=t.useRef(!1),g=t.useRef(!1),h=(0,r.useStableCallback)(()=>{v.current&&c!==l.NOOP&&(v.current=!1,c(x.current,void 0))});return(0,i.useIsoLayoutEffect)(()=>{let e;if(!u||c===l.NOOP)return void h();if(void 0!==o)g.current=!0,e=o;else{if(!g.current)return void f();e=m}void 0===e?h():(v.current=!0,c(x.current,e))},[o,u,c,f,m,x,h]),(0,i.useIsoLayoutEffect)(()=>h,[h]),(u?d:void 0)??o??m}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,195730,e=>{e.v(t=>Promise.all(["static/chunks/3t9huugh-5_ps.js","static/chunks/43q9cgbuw8krx.js","static/chunks/0dcfqbly-089u.js","static/chunks/13ss71zqoc3if.js","static/chunks/1rowt7kr1tu9y.js","static/chunks/0sqe8zks75fot.js","static/chunks/2gl-fo_rmmmq0.js","static/chunks/0wwq57j09skhy.js","static/chunks/3l6bwn061vy22.js","static/chunks/2of2-kggzp-fk.js","static/chunks/0ev4hyghq0mbb.js","static/chunks/2re701zfx-nrj.js","static/chunks/33lyk6a4x_hg8.js","static/chunks/1d9i8nlx-zy9a.js"].map(t=>e.l(t))).then(()=>t(683387)))},683408,e=>{"use strict";var t=e.i(843476),s=e.i(271645);let a=null,n=()=>e.A(195730).then(e=>(a=e.MarkdownBody,e)),r=(0,s.lazy)(()=>n().then(e=>({default:e.MarkdownBody})));{let e=()=>void n().catch(()=>{}),t=()=>{"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e)};"complete"===document.readyState?t():window.addEventListener("load",t,{once:!0})}let i=(0,s.memo)(function(e){if(a){let s=a;return(0,t.jsx)(s,{...e})}return(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)("div",{className:e.className,style:{whiteSpace:"pre-wrap"},children:e.children}),children:(0,t.jsx)(r,{...e})})});e.s(["Markdown",0,i])},76177,e=>{"use strict";var t=e.i(95187);let s=(0,t.createServerReference)("7f93d2b708efeafdbdcc5224b97b42a42d1a662d71",t.callServer,void 0,t.findSourceMapURL,"setSignInBotAction");e.s(["setSignInBotAction",0,s])},96892,319841,e=>{"use strict";var t=e.i(456420);let s={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};s.node;let a=(0,t.default)(s);e.s(["ArrowUp",0,a],96892);var n=e.i(271645);let r=["ctrl","alt","meta"],i=/^(Control|Alt|Shift|Meta|OS)/,l=/^(input|textarea|select)$/i,c=e=>!!e&&!!(l.test(e.tagName)||e.isContentEditable||e.closest?.("[data-hotkey-capture]")),u=e=>{let t="nativeEvent"in e?e.nativeEvent:e;return t.isComposing||229===t.keyCode},o=[],d=e=>{if("Escape"!==e.key||e.defaultPrevented||u(e))return;let t=o.at(-1);t&&(e.preventDefault(),t.current())};function f(e){let{code:t,ctrlKey:s,altKey:a,shiftKey:n,metaKey:r}=e;if(!t||i.test(t)||!s&&!a&&!r)return null;let l=[];return s&&l.push("ctrl"),a&&l.push("alt"),n&&l.push("shift"),r&&l.push("meta"),[...l,t].join("+")}let h={ctrl:["Ctrl","⌃"],alt:["Alt","⌥"],shift:["Shift","⇧"],meta:["Meta","⌘"]};function k(e,t=!1){let s=e.split("+"),a=s.at(-1)??"",n=s.slice(0,-1).map(e=>h[e]?.[+!!t]??e),r=a.replace(/^(Key|Digit|Numpad)/,"").replace(/([a-z])([A-Z])/g,"$1 $2")||a;return t?[...n,r].join(""):[...n,r].join(" + ")}e.s(["HOTKEY_CAPTURE",0,{"data-hotkey-capture":""},"capturesKeys",0,c,"comboOf",0,f,"composing",0,u,"isCombo",0,e=>{let t=e.split("+"),s=t.at(-1);return!!(s&&!i.test(s)&&t.slice(0,-1).some(e=>r.includes(e)))},"typed",0,(e,t)=>e.key===t&&!e.metaKey&&(e.altKey||!e.ctrlKey),"useCommandLabel",0,function(e,t=!1){let[s,a]=(0,n.useState)(!1);return(0,n.useEffect)(()=>a(/mac/i.test(navigator.userAgent)),[]),k([...(s?["shift","meta"]:["ctrl","shift"]).filter(e=>t||"shift"!==e),e].join("+"),s)},"useEscape",0,function(e,t){let s=(0,n.useRef)(t);s.current=t,(0,n.useEffect)(()=>{if(e)return o.push(s),1===o.length&&window.addEventListener("keydown",d),()=>{o.splice(o.indexOf(s),1),o.length||window.removeEventListener("keydown",d)}},[e])},"useHotkey",0,function({enabled:e,combo:t,onPress:s}){let a=(0,n.useRef)(s);a.current=s,(0,n.useEffect)(()=>{if(!e||!t)return;let s=e=>{e.repeat||c(e.target)||f(e)===t&&(e.preventDefault(),a.current())};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[e,t])},"useHotkeyLabel",0,function(e){let[t,s]=(0,n.useState)(!1);return(0,n.useEffect)(()=>s(/mac/i.test(navigator.userAgent)),[]),e?k(e,t):null},"windowKey",0,e=>!e.defaultPrevented&&!u(e)&&!c(e.target)&&!e.target?.closest?.('[role="dialog"]')],319841)},24071,e=>{"use strict";var t=e.i(456420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},226091,e=>{"use strict";var t=e.i(456420);let s={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};s.node;let a=(0,t.default)(s);e.s(["FileText",0,a],226091)},829600,e=>{"use strict";var t=e.i(456420);let s={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};s.node;let a=(0,t.default)(s);e.s(["File",0,a],829600)},632781,e=>{"use strict";var t=e.i(758379);e.s(["Loader2",()=>t.default])}]);
|