@alook/app 0.0.123 → 0.0.125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/bundled/email-worker/index.js +105 -7
  2. package/bundled/web/.open-next/.build/durable-objects/queue.js +5 -5
  3. package/bundled/web/.open-next/assets/BUILD_ID +1 -1
  4. package/bundled/web/.open-next/assets/_next/static/chunks/0b0bf61oxocmd.js +1 -0
  5. package/bundled/web/.open-next/assets/_next/static/chunks/0e5m6elbfa-zc.js +22 -0
  6. package/bundled/web/.open-next/assets/_next/static/chunks/0ix7g0wppe7ap.js +1 -0
  7. package/bundled/web/.open-next/assets/_next/static/chunks/0w1e74-zrlr_t.js +1 -0
  8. package/bundled/web/.open-next/assets/_next/static/chunks/0ym6b1b5nwlot.js +1 -0
  9. package/bundled/web/.open-next/assets/_next/static/chunks/0zgj-5k527bub.js +3 -0
  10. package/bundled/web/.open-next/assets/_next/static/chunks/{3ktbvokn95fil.js → 17coqn37fn5yf.js} +1 -1
  11. package/bundled/web/.open-next/assets/_next/static/chunks/{18gk2x7nnxbqe.js → 19j0bml2m-9uo.js} +3 -3
  12. package/bundled/web/.open-next/assets/_next/static/chunks/1j1bygouvxt8w.js +1 -0
  13. package/bundled/web/.open-next/assets/_next/static/chunks/1xsm-ck02gbj9.js +59 -0
  14. package/bundled/web/.open-next/assets/_next/static/chunks/1z9bza2a4pnu7.js +63 -0
  15. package/bundled/web/.open-next/assets/_next/static/chunks/24uei2njvsgf4.js +1 -0
  16. package/bundled/web/.open-next/assets/_next/static/chunks/{1-srtubo20rjx.js → 27vz1_55bn5h_.js} +1 -1
  17. package/bundled/web/.open-next/assets/_next/static/chunks/{2wa56n0-zxr-6.js → 29xo03yr3ra6c.js} +1 -1
  18. package/bundled/web/.open-next/assets/_next/static/chunks/2ehyie2v34cpd.js +1 -0
  19. package/bundled/web/.open-next/assets/_next/static/chunks/{1-bjnx7wr9nop.js → 2kbuh-u0kdgqc.js} +1 -1
  20. package/bundled/web/.open-next/assets/_next/static/chunks/{1f1919o6u7ie4.js → 2z5ztdz1g7p07.js} +2 -2
  21. package/bundled/web/.open-next/assets/_next/static/chunks/32v7gw3qbi0rn.js +3 -0
  22. package/bundled/web/.open-next/assets/_next/static/chunks/37v24j51y7kp2.js +1 -0
  23. package/bundled/web/.open-next/assets/_next/static/chunks/3f96j114fbbez.js +3 -0
  24. package/bundled/web/.open-next/assets/_next/static/chunks/{09xenumhc9uzs.js → 3l4-pv_2z86tp.js} +1 -1
  25. package/bundled/web/.open-next/assets/_next/static/chunks/458l7xvx6lh_7.css +1 -0
  26. package/bundled/web/.open-next/cache/{p7dPVZmAMrsESYaje5GVD → jW2g1UUY35AB4Ty_mm4cF}/_global-error.cache +1 -1
  27. package/bundled/web/.open-next/cache/{p7dPVZmAMrsESYaje5GVD → jW2g1UUY35AB4Ty_mm4cF}/_not-found.cache +1 -1
  28. package/bundled/web/.open-next/cache/{p7dPVZmAMrsESYaje5GVD → jW2g1UUY35AB4Ty_mm4cF}/device.cache +1 -1
  29. package/bundled/web/.open-next/cache/{p7dPVZmAMrsESYaje5GVD → jW2g1UUY35AB4Ty_mm4cF}/privacy.cache +1 -1
  30. package/bundled/web/.open-next/cache/{p7dPVZmAMrsESYaje5GVD → jW2g1UUY35AB4Ty_mm4cF}/sitemap.xml.cache +1 -1
  31. package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
  32. package/bundled/web/.open-next/cloudflare/init.js +1 -1
  33. package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
  34. package/bundled/web/.open-next/middleware/handler.mjs +7 -7
  35. package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
  36. package/bundled/web/.open-next/server-functions/default/src/web/.next/app-path-routes-manifest.json +4 -2
  37. package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
  38. package/bundled/web/.open-next/server-functions/default/src/web/.next/prerender-manifest.json +3 -3
  39. package/bundled/web/.open-next/server-functions/default/src/web/.next/routes-manifest.json +22 -6
  40. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/invite/[token]/page_client-reference-manifest.js +1 -1
  41. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/studio/new/page_client-reference-manifest.js +1 -1
  42. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/activity/page_client-reference-manifest.js +1 -1
  43. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/[convId]/page_client-reference-manifest.js +1 -1
  44. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/page_client-reference-manifest.js +1 -1
  45. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/email/page_client-reference-manifest.js +1 -1
  46. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/files/page_client-reference-manifest.js +1 -1
  47. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/meetings/page_client-reference-manifest.js +1 -1
  48. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/page_client-reference-manifest.js +1 -1
  49. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/new/page_client-reference-manifest.js +1 -1
  50. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page_client-reference-manifest.js +1 -1
  51. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page_client-reference-manifest.js +1 -1
  52. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/flags/page_client-reference-manifest.js +1 -1
  53. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/help/email-setup/page_client-reference-manifest.js +1 -1
  54. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page_client-reference-manifest.js +1 -1
  55. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page_client-reference-manifest.js +1 -1
  56. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/page_client-reference-manifest.js +1 -1
  57. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page_client-reference-manifest.js +1 -1
  58. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page_client-reference-manifest.js +1 -1
  59. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/{threads → traces}/[traceId]/page.js +6 -6
  60. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/[traceId]/page_client-reference-manifest.js +3 -0
  61. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/{threads → traces}/page.js +6 -6
  62. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/page_client-reference-manifest.js +3 -0
  63. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page_client-reference-manifest.js +1 -1
  64. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/workspaces/page_client-reference-manifest.js +1 -1
  65. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(auth)/sign-in/page_client-reference-manifest.js +1 -1
  66. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  67. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/agents/[id]/threads/route.js +14 -0
  68. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/agents/[id]/threads/route_client-reference-manifest.js +3 -0
  69. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/conversations/[id]/threads/route.js +16 -0
  70. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/conversations/[id]/threads/route_client-reference-manifest.js +3 -0
  71. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/email/notify/route.js +3 -2
  72. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/device/page_client-reference-manifest.js +1 -1
  73. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page/react-loadable-manifest.json +1 -1
  74. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page_client-reference-manifest.js +1 -1
  75. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
  76. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/[id]/page_client-reference-manifest.js +1 -1
  77. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/page_client-reference-manifest.js +1 -1
  78. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app-paths-manifest.json +4 -2
  79. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/0_kl__next-internal_server_app_api_conversations_[id]_threads_route_actions_1snnipi.js +3 -0
  80. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__00tttex._.js +1 -1
  81. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__068ljm8._.js +1 -1
  82. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__07exuq1._.js +1 -1
  83. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0d82yjz._.js +1 -1
  84. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0envyr7._.js +1 -1
  85. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0k5yb3f._.js +3 -0
  86. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0p9_qnh._.js +1 -1
  87. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__16_glrs._.js +1 -1
  88. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__16u73k9._.js +1 -1
  89. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1c0s55o._.js +1 -1
  90. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1ertv1z._.js +1 -1
  91. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1g69747._.js +1 -1
  92. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1r94gz3._.js +1 -1
  93. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1v9hp6s._.js +1 -1
  94. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1yza8tr._.js +1 -1
  95. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[turbopack]_runtime.js +30 -24
  96. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0i7-4r6._.js +3 -0
  97. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0n8pg0d._.js +1 -1
  98. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0qy7lt2._.js +3 -0
  99. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0v95a0y._.js +6 -6
  100. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_133a7k4._.js +1 -1
  101. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_139j3zh._.js +6 -6
  102. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_1a2lyoh._.js +3 -0
  103. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_1nfaney._.js +6 -6
  104. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/src_1j5rtq8._.js +3 -0
  105. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/src_web__next-internal_server_app_api_agents_[id]_threads_route_actions_0z9gwx3.js +3 -0
  106. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{0_0k_next_dist_esm_build_templates_app-page_1szp50t.js → 0_0k_next_dist_esm_build_templates_app-page_0om6w08.js} +3 -3
  107. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{0_0k_next_dist_esm_build_templates_app-page_03qcyrd.js → 0_0k_next_dist_esm_build_templates_app-page_1-1h6nu.js} +3 -3
  108. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/0_kl__next-internal_server_app_(app)_w_[slug]_traces_[traceId]_page_actions_0azi91v.js +3 -0
  109. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__0ufxdae._.js → [root-of-the-server]__0d9wg-2._.js} +2 -2
  110. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__0am_4wb._.js → [root-of-the-server]__0h57d-t._.js} +2 -2
  111. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__1-8w6mo._.js → [root-of-the-server]__0h_is3c._.js} +2 -2
  112. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__0rumtkk._.js → [root-of-the-server]__1e5_yd1._.js} +2 -2
  113. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__1olzajq._.js +3 -0
  114. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[turbopack]_runtime.js +30 -24
  115. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_04ht2b1._.js +1 -1
  116. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_1dw6wfx._.js → _0934_gu._.js} +2 -2
  117. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_1dqb0sa._.js → _0_vr0b8._.js} +2 -2
  118. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0aittsu._.js +1 -1
  119. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0ank6h0._.js +3 -0
  120. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0h4t18a._.js +3 -0
  121. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0p54okk._.js +2 -2
  122. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0ps6zah._.js +65 -0
  123. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_15s-tjk._.js +3 -0
  124. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0cw18c9._.js → _17uno5p._.js} +2 -2
  125. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{src_web_src_components_avatar_0hmu31-._.js → _1_l18p2._.js} +2 -2
  126. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0wtkjzl._.js → _1xq5127._.js} +3 -3
  127. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/node_modules__pnpm_1jq1kez._.js +3 -0
  128. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web__next-internal_server_app_(app)_w_[slug]_traces_page_actions_0ouyxwm.js +3 -0
  129. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_0pwl5s4._.js +3 -0
  130. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_1gzvmep._.js +3 -0
  131. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_agents_[id]_layout_tsx_0ysqmgw._.js +1 -1
  132. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_home_page_tsx_0-vs82-._.js +1 -1
  133. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{src_web_src_app_(app)_w_[slug]_threads_[traceId]_page_tsx_00jstix._.js → src_web_src_app_(app)_w_[slug]_traces_[traceId]_page_tsx_1ar14oc._.js} +2 -2
  134. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_traces_page_tsx_1964ml4._.js +3 -0
  135. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_home_home-page_tsx_1e1vr_i._.js +1 -1
  136. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_lib_api_ts_1ffelwp._.js +1 -1
  137. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
  138. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +5 -5
  139. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/next-font-manifest.js +1 -1
  140. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/next-font-manifest.json +2 -2
  141. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.js +1 -1
  142. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.json +1 -1
  143. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +94 -92
  144. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +619 -396
  145. package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +5 -5
  146. package/bundled/web/migrations/0039_add_thread_columns.sql +6 -0
  147. package/bundled/ws-do/index.js +103 -6
  148. package/dist/cli/index.js +15 -0
  149. package/dist/cli/session-runner.js +15 -0
  150. package/dist/index.js +8 -0
  151. package/package.json +1 -1
  152. package/bundled/web/.open-next/assets/_next/static/chunks/08_59eymmivc3.css +0 -1
  153. package/bundled/web/.open-next/assets/_next/static/chunks/0q121fbd7g_tm.js +0 -1
  154. package/bundled/web/.open-next/assets/_next/static/chunks/0yeu-j3z9iguu.js +0 -1
  155. package/bundled/web/.open-next/assets/_next/static/chunks/1hysx7io25oee.js +0 -3
  156. package/bundled/web/.open-next/assets/_next/static/chunks/1ievf6mopw-38.js +0 -1
  157. package/bundled/web/.open-next/assets/_next/static/chunks/1lr1gmh4hbe2o.js +0 -1
  158. package/bundled/web/.open-next/assets/_next/static/chunks/1mx37r05ln6g1.js +0 -22
  159. package/bundled/web/.open-next/assets/_next/static/chunks/20ufhzii8j1s-.js +0 -3
  160. package/bundled/web/.open-next/assets/_next/static/chunks/23tr-x-2n25uu.js +0 -1
  161. package/bundled/web/.open-next/assets/_next/static/chunks/2h5i0w9yjtehx.js +0 -121
  162. package/bundled/web/.open-next/assets/_next/static/chunks/31l_dqaqpowsj.js +0 -1
  163. package/bundled/web/.open-next/assets/_next/static/chunks/3c8i7pzls-plb.js +0 -1
  164. package/bundled/web/.open-next/assets/_next/static/chunks/3pk89-bwz664l.js +0 -3
  165. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/[traceId]/page_client-reference-manifest.js +0 -3
  166. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/page_client-reference-manifest.js +0 -3
  167. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_03_h7-u._.js +0 -3
  168. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/0_kl__next-internal_server_app_(app)_w_[slug]_threads_[traceId]_page_actions_0zp36iw.js +0 -3
  169. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__015bdc7._.js +0 -3
  170. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_08f25id._.js +0 -3
  171. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1fplcoj._.js +0 -65
  172. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1q2gs7z._.js +0 -3
  173. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1rpi0ih._.js +0 -3
  174. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/node_modules__pnpm_0b17d5w._.js +0 -3
  175. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/node_modules__pnpm_1xmk7_g._.js +0 -3
  176. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web__next-internal_server_app_(app)_w_[slug]_threads_page_actions_0xnqg_4.js +0 -3
  177. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_1sy648u._.js +0 -3
  178. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_threads_page_tsx_0hy955b._.js +0 -3
  179. /package/bundled/web/.open-next/assets/_next/static/{p7dPVZmAMrsESYaje5GVD → jW2g1UUY35AB4Ty_mm4cF}/_buildManifest.js +0 -0
  180. /package/bundled/web/.open-next/assets/_next/static/{p7dPVZmAMrsESYaje5GVD → jW2g1UUY35AB4Ty_mm4cF}/_clientMiddlewareManifest.js +0 -0
  181. /package/bundled/web/.open-next/assets/_next/static/{p7dPVZmAMrsESYaje5GVD → jW2g1UUY35AB4Ty_mm4cF}/_ssgManifest.js +0 -0
  182. /package/bundled/web/.open-next/cache/{p7dPVZmAMrsESYaje5GVD → jW2g1UUY35AB4Ty_mm4cF}/robots.txt.cache +0 -0
  183. /package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/{threads → traces}/[traceId]/page/react-loadable-manifest.json +0 -0
  184. /package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/{threads → traces}/page/react-loadable-manifest.json +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,371836,e=>{"use strict";var t=e.i(653772),r=e.i(511043),n=e.i(23382),a=e.i(732919),i=e.i(886819),o,s,l,c,d,u,p,m,f,g,h,x,v,y=function(){return o||"u">typeof window&&(o=window.gsap)&&o.registerPlugin&&o},b=1,k=[],w=[],j=[],N=Date.now,C=function(e,t){return t},S=function(){var e=f.core,t=e.bridge||{},r=e._scrollers,n=e._proxies;r.push.apply(r,w),n.push.apply(n,j),w=r,j=n,C=function(e,r){return t[e](r)}},A=function(e,t){return~j.indexOf(e)&&j[j.indexOf(e)+1][t]},_=function(e){return!!~g.indexOf(e)},T=function(e,t,r,n,a){return e.addEventListener(t,r,{passive:!1!==n,capture:!!a})},M=function(e,t,r,n){return e.removeEventListener(t,r,!!n)},E="scrollLeft",P="scrollTop",R=function(){return h&&h.isPressed||w.cache++},F=function(e,t){var r=function r(n){if(n||0===n){b&&(l.history.scrollRestoration="manual");var a=h&&h.isPressed;e(n=r.v=Math.round(n)||(h&&h.iOS?1:0)),r.cacheID=w.cache,a&&C("ss",n)}else(t||w.cache!==r.cacheID||C("ref"))&&(r.cacheID=w.cache,r.v=e());return r.v+r.offset};return r.offset=0,e&&r},z={s:E,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:F(function(e){return arguments.length?l.scrollTo(e,O.sc()):l.pageXOffset||c[E]||d[E]||u[E]||0})},O={s:P,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:z,sc:F(function(e){return arguments.length?l.scrollTo(z.sc(),e):l.pageYOffset||c[P]||d[P]||u[P]||0})},I=function(e,t){return(t&&t._ctx&&t._ctx.selector||o.utils.toArray)(e)[0]||("string"==typeof e&&!1!==o.config().nullTargetWarn?console.warn("Element not found:",e):null)},L=function(e,t){for(var r=t.length;r--;)if(t[r]===e||t[r].contains(e))return!0;return!1},D=function(e,t){var r=t.s,n=t.sc;_(e)&&(e=c.scrollingElement||d);var a=w.indexOf(e),i=n===O.sc?1:2;~a||(a=w.push(e)-1),w[a+i]||T(e,"scroll",R);var s=w[a+i],l=s||(w[a+i]=F(A(e,r),!0)||(_(e)?n:F(function(t){return arguments.length?e[r]=t:e[r]})));return l.target=e,s||(l.smooth="smooth"===o.getProperty(e,"scrollBehavior")),l},Y=function(e,t,r){var n=e,a=e,i=N(),o=i,s=t||50,l=Math.max(500,3*s),c=function(e,t){var l=N();t||l-i>s?(a=n,n=e,o=i,i=l):r?n+=e:n=a+(e-a)/(l-o)*(i-o)};return{update:c,reset:function(){a=n=r?0:n,o=i=0},getVelocity:function(e){var t=o,s=a,d=N();return(e||0===e)&&e!==n&&c(e),i===o||d-o>l?0:(n+(r?s:-s))/((r?d:i)-t)*1e3}}},B=function(e,t){return t&&!e._gsapAllow&&!1!==e.cancelable&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},W=function(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r},H=function(){(f=o.core.globals().ScrollTrigger)&&f.core&&S()},V=function(e){return o=e||y(),!s&&o&&"u">typeof document&&document.body&&(l=window,d=(c=document).documentElement,u=c.body,g=[l,c,d,u],o.utils.clamp,v=o.core.context||function(){},m="onpointerenter"in u?"pointer":"mouse",p=X.isTouch=l.matchMedia&&l.matchMedia("(hover: none), (pointer: coarse)").matches?1:2*("ontouchstart"in l||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),x=X.eventTypes=("ontouchstart"in d?"touchstart,touchmove,touchcancel,touchend":!("onpointerdown"in d)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),setTimeout(function(){return b=0},500),s=1),f||H(),s};z.op=O,w.cache=0;var X=function(){var e;function t(e){this.init(e)}return t.prototype.init=function(e){s||V(o)||console.warn("Please gsap.registerPlugin(Observer)"),f||H();var t=e.tolerance,r=e.dragMinimum,n=e.type,a=e.target,i=e.lineHeight,g=e.debounce,y=e.preventDefault,b=e.onStop,w=e.onStopDelay,j=e.ignore,C=e.wheelSpeed,S=e.event,A=e.onDragStart,E=e.onDragEnd,P=e.onDrag,F=e.onPress,X=e.onRelease,G=e.onRight,U=e.onLeft,q=e.onUp,$=e.onDown,K=e.onChangeX,Z=e.onChangeY,J=e.onChange,Q=e.onToggleX,ee=e.onToggleY,et=e.onHover,er=e.onHoverEnd,en=e.onMove,ea=e.ignoreCheck,ei=e.isNormalizer,eo=e.onGestureStart,es=e.onGestureEnd,el=e.onWheel,ec=e.onEnable,ed=e.onDisable,eu=e.onClick,ep=e.scrollSpeed,em=e.capture,ef=e.allowClicks,eg=e.lockAxis,eh=e.onLockAxis;this.target=a=I(a)||d,this.vars=e,j&&(j=o.utils.toArray(j)),t=t||1e-9,r=r||0,C=C||1,ep=ep||1,n=n||"wheel,touch,pointer",g=!1!==g,i||(i=parseFloat(l.getComputedStyle(u).lineHeight)||22);var ex,ev,ey,eb,ek,ew,ej,eN=this,eC=0,eS=0,eA=e.passive||!y&&!1!==e.passive,e_=D(a,z),eT=D(a,O),eM=e_(),eE=eT(),eP=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===x[0],eR=_(a),eF=a.ownerDocument||c,ez=[0,0,0],eO=[0,0,0],eI=0,eL=function(){return eI=N()},eD=function(e,t){return(eN.event=e)&&j&&L(e.target,j)||t&&eP&&"touch"!==e.pointerType||ea&&ea(e,t)},eY=function(){var e=eN.deltaX=W(ez),r=eN.deltaY=W(eO),n=Math.abs(e)>=t,a=Math.abs(r)>=t;J&&(n||a)&&J(eN,e,r,ez,eO),n&&(G&&eN.deltaX>0&&G(eN),U&&eN.deltaX<0&&U(eN),K&&K(eN),Q&&eN.deltaX<0!=eC<0&&Q(eN),eC=eN.deltaX,ez[0]=ez[1]=ez[2]=0),a&&($&&eN.deltaY>0&&$(eN),q&&eN.deltaY<0&&q(eN),Z&&Z(eN),ee&&eN.deltaY<0!=eS<0&&ee(eN),eS=eN.deltaY,eO[0]=eO[1]=eO[2]=0),(eb||ey)&&(en&&en(eN),ey&&(A&&1===ey&&A(eN),P&&P(eN),ey=0),eb=!1),ew&&(ew=!1,1)&&eh&&eh(eN),ek&&(el(eN),ek=!1),ex=0},eB=function(e,t,r){ez[r]+=e,eO[r]+=t,eN._vx.update(e),eN._vy.update(t),g?ex||(ex=requestAnimationFrame(eY)):eY()},eW=function(e,t){eg&&!ej&&(eN.axis=ej=Math.abs(e)>Math.abs(t)?"x":"y",ew=!0),"y"!==ej&&(ez[2]+=e,eN._vx.update(e,!0)),"x"!==ej&&(eO[2]+=t,eN._vy.update(t,!0)),g?ex||(ex=requestAnimationFrame(eY)):eY()},eH=function(e){if(!eD(e,1)){var t=(e=B(e,y)).clientX,n=e.clientY,a=t-eN.x,i=n-eN.y,o=eN.isDragging;eN.x=t,eN.y=n,(o||(a||i)&&(Math.abs(eN.startX-t)>=r||Math.abs(eN.startY-n)>=r))&&(ey||(ey=o?2:1),o||(eN.isDragging=!0),eW(a,i))}},eV=eN.onPress=function(e){eD(e,1)||e&&e.button||(eN.axis=ej=null,ev.pause(),eN.isPressed=!0,e=B(e),eC=eS=0,eN.startX=eN.x=e.clientX,eN.startY=eN.y=e.clientY,eN._vx.reset(),eN._vy.reset(),T(ei?a:eF,x[1],eH,eA,!0),eN.deltaX=eN.deltaY=0,F&&F(eN))},eX=eN.onRelease=function(e){if(!eD(e,1)){M(ei?a:eF,x[1],eH,!0);var t=!isNaN(eN.y-eN.startY),r=eN.isDragging,n=r&&(Math.abs(eN.x-eN.startX)>3||Math.abs(eN.y-eN.startY)>3),i=B(e);!n&&t&&(eN._vx.reset(),eN._vy.reset(),y&&ef&&o.delayedCall(.08,function(){if(N()-eI>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(eF.createEvent){var t=eF.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,l,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),eN.isDragging=eN.isGesturing=eN.isPressed=!1,b&&r&&!ei&&ev.restart(!0),ey&&eY(),E&&r&&E(eN),X&&X(eN,n)}},eG=function(e){return e.touches&&e.touches.length>1&&(eN.isGesturing=!0)&&eo(e,eN.isDragging)},eU=function(){return eN.isGesturing=!1,es(eN)},eq=function(e){if(!eD(e)){var t=e_(),r=eT();eB((t-eM)*ep,(r-eE)*ep,1),eM=t,eE=r,b&&ev.restart(!0)}},e$=function(e){if(!eD(e)){e=B(e,y),el&&(ek=!0);var t=(1===e.deltaMode?i:2===e.deltaMode?l.innerHeight:1)*C;eB(e.deltaX*t,e.deltaY*t,0),b&&!ei&&ev.restart(!0)}},eK=function(e){if(!eD(e)){var t=e.clientX,r=e.clientY,n=t-eN.x,a=r-eN.y;eN.x=t,eN.y=r,eb=!0,b&&ev.restart(!0),(n||a)&&eW(n,a)}},eZ=function(e){eN.event=e,et(eN)},eJ=function(e){eN.event=e,er(eN)},eQ=function(e){return eD(e)||B(e,y)&&eu(eN)};ev=eN._dc=o.delayedCall(w||.25,function(){eN._vx.reset(),eN._vy.reset(),ev.pause(),b&&b(eN)}).pause(),eN.deltaX=eN.deltaY=0,eN._vx=Y(0,50,!0),eN._vy=Y(0,50,!0),eN.scrollX=e_,eN.scrollY=eT,eN.isDragging=eN.isGesturing=eN.isPressed=!1,v(this),eN.enable=function(e){return!eN.isEnabled&&(T(eR?eF:a,"scroll",R),n.indexOf("scroll")>=0&&T(eR?eF:a,"scroll",eq,eA,em),n.indexOf("wheel")>=0&&T(a,"wheel",e$,eA,em),(n.indexOf("touch")>=0&&p||n.indexOf("pointer")>=0)&&(T(a,x[0],eV,eA,em),T(eF,x[2],eX),T(eF,x[3],eX),ef&&T(a,"click",eL,!0,!0),eu&&T(a,"click",eQ),eo&&T(eF,"gesturestart",eG),es&&T(eF,"gestureend",eU),et&&T(a,m+"enter",eZ),er&&T(a,m+"leave",eJ),en&&T(a,m+"move",eK)),eN.isEnabled=!0,eN.isDragging=eN.isGesturing=eN.isPressed=eb=ey=!1,eN._vx.reset(),eN._vy.reset(),eM=e_(),eE=eT(),e&&e.type&&eV(e),ec&&ec(eN)),eN},eN.disable=function(){eN.isEnabled&&(k.filter(function(e){return e!==eN&&_(e.target)}).length||M(eR?eF:a,"scroll",R),eN.isPressed&&(eN._vx.reset(),eN._vy.reset(),M(ei?a:eF,x[1],eH,!0)),M(eR?eF:a,"scroll",eq,em),M(a,"wheel",e$,em),M(a,x[0],eV,em),M(eF,x[2],eX),M(eF,x[3],eX),M(a,"click",eL,!0),M(a,"click",eQ),M(eF,"gesturestart",eG),M(eF,"gestureend",eU),M(a,m+"enter",eZ),M(a,m+"leave",eJ),M(a,m+"move",eK),eN.isEnabled=eN.isPressed=eN.isDragging=!1,ed&&ed(eN))},eN.kill=eN.revert=function(){eN.disable();var e=k.indexOf(eN);e>=0&&k.splice(e,1),h===eN&&(h=0)},k.push(eN),ei&&_(a)&&(h=eN),eN.enable(S)},e=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();X.version="3.15.0",X.create=function(e){return new X(e)},X.register=V,X.getAll=function(){return k.slice()},X.getById=function(e){return k.filter(function(t){return t.vars.id===e})[0]},y()&&o.registerPlugin(X);var G,U,q,$,K,Z,J,Q,ee,et,er,en,ea,ei,eo,es,el,ec,ed,eu,ep,em,ef,eg,eh,ex,ev,ey,eb,ek,ew,ej,eN,eC,eS,eA,e_,eT,eM=1,eE=Date.now,eP=eE(),eR=0,eF=0,ez=function(e,t,r){var n=e$(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return r["_"+t+"Clamp"]=n,n?e.substr(6,e.length-7):e},eO=function(e,t){return t&&(!e$(e)||"clamp("!==e.substr(0,6))?"clamp("+e+")":e},eI=function(){return ei=1},eL=function(){return ei=0},eD=function(e){return e},eY=function(e){return Math.round(1e5*e)/1e5||0},eB=function(){return"u">typeof window},eW=function(){return G||eB()&&(G=window.gsap)&&G.registerPlugin&&G},eH=function(e){return!!~J.indexOf(e)},eV=function(e){return("Height"===e?ew:q["inner"+e])||K["client"+e]||Z["client"+e]},eX=function(e){return A(e,"getBoundingClientRect")||(eH(e)?function(){return tJ.width=q.innerWidth,tJ.height=ew,tJ}:function(){return ts(e)})},eG=function(e,t,r){var n=r.d,a=r.d2,i=r.a;return(i=A(e,"getBoundingClientRect"))?function(){return i()[n]}:function(){return(t?eV(a):e["client"+a])||0}},eU=function(e,t){var r=t.s,n=t.d2,a=t.d,i=t.a;return Math.max(0,(i=A(e,r="scroll"+n))?i()-eX(e)()[a]:eH(e)?(K[r]||Z[r])-eV(n):e[r]-e["offset"+n])},eq=function(e,t){for(var r=0;r<ed.length;r+=3)(!t||~t.indexOf(ed[r+1]))&&e(ed[r],ed[r+1],ed[r+2])},e$=function(e){return"string"==typeof e},eK=function(e){return"function"==typeof e},eZ=function(e){return"number"==typeof e},eJ=function(e){return"object"==typeof e},eQ=function(e,t,r){return e&&e.progress(+!t)&&r&&e.pause()},e0=function(e,t,r){if(e.enabled){var n=e._ctx?e._ctx.add(function(){return t(e,r)}):t(e,r);n&&n.totalTime&&(e.callbackAnimation=n)}},e1=Math.abs,e2="left",e3="right",e5="bottom",e4="width",e7="height",e8="Right",e6="Left",e9="Bottom",te="padding",tt="margin",tr="Width",tn="Height",ta=function(e){return q.getComputedStyle(e.nodeType===Node.DOCUMENT_NODE?e.scrollingElement:e)},ti=function(e){var t=ta(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"},to=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},ts=function(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==ta(e)[eo]&&G.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect?e.getBoundingClientRect():e.scrollingElement.getBoundingClientRect();return r&&r.progress(0).kill(),n},tl=function(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0},tc=function(e){var t,r=[],n=e.labels,a=e.duration();for(t in n)r.push(n[t]/a);return r},td=function(e){var t=G.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return r?function(e,n,a){var i;if(void 0===a&&(a=.001),!n)return t(e);if(n>0){for(e-=a,i=0;i<r.length;i++)if(r[i]>=e)return r[i];return r[i-1]}for(i=r.length,e+=a;i--;)if(r[i]<=e)return r[i];return r[0]}:function(r,n,a){void 0===a&&(a=.001);var i=t(r);return!n||Math.abs(i-r)<a||i-r<0==n<0?i:t(n<0?r-e:r+e)}},tu=function(e,t,r,n){return r.split(",").forEach(function(r){return e(t,r,n)})},tp=function(e,t,r,n,a){return e.addEventListener(t,r,{passive:!n,capture:!!a})},tm=function(e,t,r,n){return e.removeEventListener(t,r,!!n)},tf=function(e,t,r){(r=r&&r.wheelHandler)&&(e(t,"wheel",r),e(t,"touchmove",r))},tg={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},th={toggleActions:"play",anticipatePin:0},tx={top:0,left:0,center:.5,bottom:1,right:1},tv=function(e,t){if(e$(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in tx?tx[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},ty=function(e,t,r,n,a,i,o,s){var l=a.startColor,c=a.endColor,d=a.fontSize,u=a.indent,p=a.fontWeight,m=$.createElement("div"),f=eH(r)||"fixed"===A(r,"pinType"),g=-1!==e.indexOf("scroller"),h=f?Z:"IFRAME"===r.tagName?r.contentDocument.body:r,x=-1!==e.indexOf("start"),v=x?l:c,y="border-color:"+v+";font-size:"+d+";color:"+v+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((g||s)&&f?"fixed;":"absolute;"),(g||s||!f)&&(y+=(n===O?e3:e5)+":"+(i+parseFloat(u))+"px;"),o&&(y+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),m._isStart=x,m.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),m.style.cssText=y,m.innerText=t||0===t?e+"-"+t:e,h.children[0]?h.insertBefore(m,h.children[0]):h.appendChild(m),m._offset=m["offset"+n.op.d2],tb(m,0,n,x),m},tb=function(e,t,r,n){var a={display:"block"},i=r[n?"os2":"p2"],o=r[n?"p2":"os2"];e._isFlipped=n,a[r.a+"Percent"]=n?-100:0,a[r.a]=n?"1px":0,a["border"+i+tr]=1,a["border"+o+tr]=0,a[r.p]=t+"px",G.set(e,a)},tk=[],tw={},tj=function(){return eE()-eR>34&&(eS||(eS=requestAnimationFrame(tH)))},tN=function(){ef&&ef.isPressed&&!(ef.startX>Z.clientWidth)||(w.cache++,ef?eS||(eS=requestAnimationFrame(tH)):tH(),eR||tM("scrollStart"),eR=eE())},tC=function(){ex=q.innerWidth,eh=q.innerHeight},tS=function(e){w.cache++,(!0===e||!ea&&!em&&!$.fullscreenElement&&!$.webkitFullscreenElement&&(!eg||ex!==q.innerWidth||Math.abs(q.innerHeight-eh)>.25*q.innerHeight))&&Q.restart(!0)},tA={},t_=[],tT=function e(){return tm(t4,"scrollEnd",e)||tY(!0)},tM=function(e){return tA[e]&&tA[e].map(function(e){return e()})||t_},tE=[],tP=function(e){for(var t=0;t<tE.length;t+=5)(!e||tE[t+4]&&tE[t+4].query===e)&&(tE[t].style.cssText=tE[t+1],tE[t].getBBox&&tE[t].setAttribute("transform",tE[t+2]||""),tE[t+3].uncache=1)},tR=function(){return w.forEach(function(e){return eK(e)&&++e.cacheID&&(e.rec=e())})},tF=function(e,t){var r;for(es=0;es<tk.length;es++)(r=tk[es])&&(!t||r._ctx===t)&&(e?r.kill(1):r.revert(!0,!0));ej=!0,t&&tP(t),t||tM("revert")},tz=function(e,t){w.cache++,(t||!eA)&&w.forEach(function(e){return eK(e)&&e.cacheID++&&(e.rec=0)}),e$(e)&&(q.history.scrollRestoration=eb=e)},tO=0,tI=function(){if(e_!==tO){var e=e_=tO;requestAnimationFrame(function(){return e===tO&&tY(!0)})}},tL=function(){Z.appendChild(ek),ew=!ef&&ek.offsetHeight||q.innerHeight,Z.removeChild(ek)},tD=function(e){return ee(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(t){return t.style.display=e?"none":"block"})},tY=function(e,t){if(K=$.documentElement,Z=$.body,J=[q,$,K,Z],eR&&!e&&!ej)return void tp(t4,"scrollEnd",tT);tL(),eA=t4.isRefreshing=!0,ej||tR();var r=tM("refreshInit");eu&&t4.sort(),t||tF(),w.forEach(function(e){eK(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),tk.slice(0).forEach(function(e){return e.refresh()}),ej=!1,tk.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",r=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-r),e.refresh()}}),eN=1,tD(!0),tk.forEach(function(e){var t=eU(e.scroller,e._dir),r="max"===e.vars.end||e._endClamp&&e.end>t,n=e._startClamp&&e.start>=t;(r||n)&&e.setPositions(n?t-1:e.start,r?Math.max(n?t:e.start+1,t):e.end,!0)}),tD(!1),eN=0,r.forEach(function(e){return e&&e.render&&e.render(-1)}),w.forEach(function(e){eK(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),tz(eb,1),Q.pause(),tO++,eA=2,tH(2),tk.forEach(function(e){return eK(e.vars.onRefresh)&&e.vars.onRefresh(e)}),eA=t4.isRefreshing=!1,tM("refresh")},tB=0,tW=1,tH=function(e){if(2===e||!eA&&!ej){t4.isUpdating=!0,eT&&eT.update(0);var t=tk.length,r=eE(),n=r-eP>=50,a=t&&tk[0].scroll();if(tW=tB>a?-1:1,eA||(tB=a),n&&(eR&&!ei&&r-eR>200&&(eR=0,tM("scrollEnd")),er=eP,eP=r),tW<0){for(es=t;es-- >0;)tk[es]&&tk[es].update(0,n);tW=1}else for(es=0;es<t;es++)tk[es]&&tk[es].update(0,n);t4.isUpdating=!1}eS=0},tV=[e2,"top",e5,e3,tt+e9,tt+e8,tt+"Top",tt+e6,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],tX=tV.concat([e4,e7,"boxSizing","max"+tr,"max"+tn,"position",tt,te,te+"Top",te+e8,te+e9,te+e6]),tG=function(e,t,r){t$(r);var n=e._gsap;if(n.spacerIsNative)t$(n.spacerState);else if(e._gsap.swappedIn){var a=t.parentNode;a&&(a.insertBefore(e,t),a.removeChild(t))}e._gsap.swappedIn=!1},tU=function(e,t,r,n){if(!e._gsap.swappedIn){for(var a,i=tV.length,o=t.style,s=e.style;i--;)o[a=tV[i]]=r[a];o.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(o.display="inline-block"),s[e5]=s[e3]="auto",o.flexBasis=r.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[e4]=tl(e,z)+"px",o[e7]=tl(e,O)+"px",o[te]=s[tt]=s.top=s[e2]="0",t$(n),s[e4]=s["max"+tr]=r[e4],s[e7]=s["max"+tn]=r[e7],s[te]=r[te],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},tq=/([A-Z])/g,t$=function(e){if(e){var t,r,n=e.t.style,a=e.length,i=0;for((e.t._gsap||G.core.getCache(e.t)).uncache=1;i<a;i+=2)r=e[i+1],t=e[i],r?n[t]=r:n[t]&&n.removeProperty(t.replace(tq,"-$1").toLowerCase())}},tK=function(e){for(var t=tX.length,r=e.style,n=[],a=0;a<t;a++)n.push(tX[a],r[tX[a]]);return n.t=e,n},tZ=function(e,t,r){for(var n,a=[],i=e.length,o=8*!!r;o<i;o+=2)n=e[o],a.push(n,n in t?t[n]:e[o+1]);return a.t=e.t,a},tJ={left:0,top:0},tQ=function(e,t,r,n,a,i,o,s,l,c,d,u,p,m){eK(e)&&(e=e(s)),e$(e)&&"max"===e.substr(0,3)&&(e=u+("="===e.charAt(4)?tv("0"+e.substr(3),r):0));var f,g,h,x=p?p.time():0;if(p&&p.seek(0),isNaN(e)||(e*=1),eZ(e))p&&(e=G.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,u,e)),o&&tb(o,r,n,!0);else{eK(t)&&(t=t(s));var v,y,b,k,w=(e||"0").split(" ");(v=ts(h=I(t,s)||Z)||{}).left||v.top||"none"!==ta(h).display||(k=h.style.display,h.style.display="block",v=ts(h),k?h.style.display=k:h.style.removeProperty("display")),y=tv(w[0],v[n.d]),b=tv(w[1]||"0",r),e=v[n.p]-l[n.p]-c+y+a-b,o&&tb(o,b,n,r-b<20||o._isStart&&b>20),r-=r-b}if(m&&(s[m]=e||-.001,e<0&&(e=0)),i){var j=e+r,N=i._isStart;f="scroll"+n.d2,tb(i,j,n,N&&j>20||!N&&(d?Math.max(Z[f],K[f]):i.parentNode[f])<=j+1),d&&(l=ts(o),d&&(i.style[n.op.p]=l[n.op.p]-n.op.m-i._offset+"px"))}return p&&h&&(f=ts(h),p.seek(u),g=ts(h),p._caScrollDist=f[n.p]-g[n.p],e=e/p._caScrollDist*u),p&&p.seek(x),p?e:Math.round(e)},t0=/(webkit|moz|length|cssText|inset)/i,t1=function(e,t,r,n){if(e.parentNode!==t){var a,i,o=e.style;if(t===Z){for(a in e._stOrig=o.cssText,i=ta(e))+a||t0.test(a)||!i[a]||"string"!=typeof o[a]||"0"===a||(o[a]=i[a]);o.top=r,o.left=n}else o.cssText=e._stOrig;G.core.getCache(e).uncache=1,t.appendChild(e)}},t2=function(e,t,r){var n=t,a=n;return function(t){var i=Math.round(e());return i!==n&&i!==a&&Math.abs(i-n)>3&&Math.abs(i-a)>3&&(t=i,r&&r()),a=n,n=Math.round(t)}},t3=function(e,t,r){var n={};n[t.p]="+="+r,G.set(e,n)},t5=function(e,t){var r=D(e,t),n="_scroll"+t.p2,a=function t(a,i,o,s,l){var c=t.tween,d=i.onComplete,u={};o=o||r();var p=t2(r,o,function(){c.kill(),t.tween=0});return l=s&&l||0,s=s||a-o,c&&c.kill(),i[n]=a,i.inherit=!1,i.modifiers=u,u[n]=function(){return p(o+s*c.ratio+l*c.ratio*c.ratio)},i.onUpdate=function(){w.cache++,t.tween&&tH()},i.onComplete=function(){t.tween=0,d&&d.call(c)},c=t.tween=G.to(e,i)};return e[n]=r,r.wheelHandler=function(){return a.tween&&a.tween.kill()&&(a.tween=0)},tp(e,"wheel",r.wheelHandler),t4.isTouch&&tp(e,"touchmove",r.wheelHandler),a},t4=function(){function e(t,r){U||e.register(G)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ey(this),this.init(t,r)}return e.prototype.init=function(t,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!eF){this.update=this.refresh=this.kill=eD;return}var n,a,i,o,s,l,c,d,u,p,m,f,g,h,x,v,y,b,k,N,C,S,_,T,M,E,P,R,F,L,Y,B,W,H,V,X,U,J,Q,en,eo,el=t=to(e$(t)||eZ(t)||t.nodeType?{trigger:t}:t,th),ec=el.onUpdate,ed=el.toggleClass,em=el.id,ef=el.onToggle,eg=el.onRefresh,eh=el.scrub,ex=el.trigger,ev=el.pin,ey=el.pinSpacing,eb=el.invalidateOnRefresh,ek=el.anticipatePin,ew=el.onScrubComplete,ej=el.onSnapComplete,eS=el.once,e_=el.snap,eP=el.pinReparent,eI=el.pinSpacer,eL=el.containerAnimation,eB=el.fastScrollEnd,eW=el.preventOverlaps,eV=t.horizontal||t.containerAnimation&&!1!==t.horizontal?z:O,eq=!eh&&0!==eh,e2=I(t.scroller||q),e3=G.core.getCache(e2),e5=eH(e2),tu=("pinType"in t?t.pinType:A(e2,"pinType")||e5&&"fixed")==="fixed",tf=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],tx=eq&&t.toggleActions.split(" "),tb="markers"in t?t.markers:th.markers,tj=e5?0:parseFloat(ta(e2)["border"+eV.p2+tr])||0,tC=this,tA=t.onRefreshInit&&function(){return t.onRefreshInit(tC)},t_=eG(e2,e5,eV),tM=!e5||~j.indexOf(e2)?eX(e2):function(){return tJ},tE=0,tP=0,tR=0,tF=D(e2,eV);if(tC._startClamp=tC._endClamp=!1,tC._dir=eV,ek*=45,tC.scroller=e2,tC.scroll=eL?eL.time.bind(eL):tF,l=tF(),tC.vars=t,r=r||t.animation,"refreshPriority"in t&&(eu=1,-9999===t.refreshPriority&&(eT=tC)),e3.tweenScroll=e3.tweenScroll||{top:t5(e2,O),left:t5(e2,z)},tC.tweenTo=i=e3.tweenScroll[eV.p],tC.scrubDuration=function(e){(V=eZ(e)&&e)?H?H.duration(e):H=G.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:V,paused:!0,onComplete:function(){return ew&&ew(tC)}}):(H&&H.progress(1).kill(),H=0)},r&&(r.vars.lazy=!1,r._initted&&!tC.isReverted||!1!==r.vars.immediateRender&&!1!==t.immediateRender&&r.duration()&&r.render(0,!0,!0),tC.animation=r.pause(),r.scrollTrigger=tC,tC.scrubDuration(eh),B=0,em||(em=r.vars.id)),e_&&((!eJ(e_)||e_.push)&&(e_={snapTo:e_}),"scrollBehavior"in Z.style&&G.set(e5?[Z,K]:e2,{scrollBehavior:"auto"}),w.forEach(function(e){return eK(e)&&e.target===(e5?$.scrollingElement||K:e2)&&(e.smooth=!1)}),s=eK(e_.snapTo)?e_.snapTo:"labels"===e_.snapTo?(n=r,function(e){return G.utils.snap(tc(n),e)}):"labelsDirectional"===e_.snapTo?(a=r,function(e,t){return td(tc(a))(e,t.direction)}):!1!==e_.directional?function(e,t){return td(e_.snapTo)(e,eE()-tP<500?0:t.direction)}:G.utils.snap(e_.snapTo),X=eJ(X=e_.duration||{min:.1,max:2})?et(X.min,X.max):et(X,X),U=G.delayedCall(e_.delay||V/2||.1,function(){var e=tF(),t=eE()-tP<500,n=i.tween;if((t||10>Math.abs(tC.getVelocity()))&&!n&&!ei&&tE!==e){var a,o,l=(e-d)/v,c=r&&!eq?r.totalProgress():l,p=t?0:(c-W)/(eE()-er)*1e3||0,m=G.utils.clamp(-l,1-l,e1(p/2)*p/.185),f=l+(!1===e_.inertia?0:m),g=e_,h=g.onStart,x=g.onInterrupt,y=g.onComplete;if(eZ(a=s(f,tC))||(a=f),o=Math.max(0,Math.round(d+a*v)),e<=u&&e>=d&&o!==e){if(n&&!n._initted&&n.data<=e1(o-e))return;!1===e_.inertia&&(m=a-l),i(o,{duration:X(e1(.185*Math.max(e1(f-c),e1(a-c))/p/.05||0)),ease:e_.ease||"power3",data:e1(o-e),onInterrupt:function(){return U.restart(!0)&&x&&e0(tC,x)},onComplete:function(){tC.update(),tE=tF(),r&&!eq&&(H?H.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),B=W=r&&!eq?r.totalProgress():tC.progress,ej&&ej(tC),y&&e0(tC,y)}},e,m*v,o-e-m*v),h&&e0(tC,h,i.tween)}}else tC.isActive&&tE!==e&&U.restart(!0)}).pause()),em&&(tw[em]=tC),(eo=(ex=tC.trigger=I(ex||!0!==ev&&ev))&&ex._gsap&&ex._gsap.stRevert)&&(eo=eo(tC)),ev=!0===ev?ex:I(ev),e$(ed)&&(ed={targets:ex,className:ed}),ev&&(!1===ey||ey===tt||(ey=(!!ey||!ev.parentNode||!ev.parentNode.style||"flex"!==ta(ev.parentNode).display)&&te),tC.pin=ev,(o=G.core.getCache(ev)).spacer?y=o.pinState:(eI&&((eI=I(eI))&&!eI.nodeType&&(eI=eI.current||eI.nativeElement),o.spacerIsNative=!!eI,eI&&(o.spacerState=tK(eI))),o.spacer=N=eI||$.createElement("div"),N.classList.add("pin-spacer"),em&&N.classList.add("pin-spacer-"+em),o.pinState=y=tK(ev)),!1!==t.force3D&&G.set(ev,{force3D:!0}),tC.spacer=N=o.spacer,E=(Y=ta(ev))[ey+eV.os2],S=G.getProperty(ev),_=G.quickSetter(ev,eV.a,"px"),tU(ev,N,Y),k=tK(ev)),tb){h=eJ(tb)?to(tb,tg):tg,f=ty("scroller-start",em,e2,eV,h,0),g=ty("scroller-end",em,e2,eV,h,0,f),C=f["offset"+eV.op.d2];var tz=I(A(e2,"content")||e2);p=this.markerStart=ty("start",em,tz,eV,h,C,0,eL),m=this.markerEnd=ty("end",em,tz,eV,h,C,0,eL),eL&&(en=G.quickSetter([p,m],eV.a,"px")),tu||j.length&&!0===A(e2,"fixedMarkers")||(ti(e5?Z:e2),G.set([f,g],{force3D:!0}),R=G.quickSetter(f,eV.a,"px"),L=G.quickSetter(g,eV.a,"px"))}if(eL){var tO=eL.vars.onUpdate,tL=eL.vars.onUpdateParams;eL.eventCallback("onUpdate",function(){tC.update(0,0,1),tO&&tO.apply(eL,tL||[])})}if(tC.previous=function(){return tk[tk.indexOf(tC)-1]},tC.next=function(){return tk[tk.indexOf(tC)+1]},tC.revert=function(e,t){if(!t)return tC.kill(!0);var n=!1!==e||!tC.enabled,a=ea;n!==tC.isReverted&&(n&&(J=Math.max(tF(),tC.scroll.rec||0),tR=tC.progress,Q=r&&r.progress()),p&&[p,m,f,g].forEach(function(e){return e.style.display=n?"none":"block"}),n&&(ea=tC,tC.update(n)),!ev||eP&&tC.isActive||(n?tG(ev,N,y):tU(ev,N,ta(ev),P)),n||tC.update(n),ea=a,tC.isReverted=n)},tC.refresh=function(n,a,o,s){if(!ea&&tC.enabled||a){if(ev&&n&&eR)return void tp(e,"scrollEnd",tT);!eA&&tA&&tA(tC),ea=tC,i.tween&&!o&&(i.tween.kill(),i.tween=0),H&&H.pause(),eb&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren?r.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):r.vars.immediateRender&&r.render(0,!0,!0)),tC.isReverted||tC.revert(!0,!0),tC._subPinOffset=!1;var h,w,j,C,A,_,E,R,L,Y,B,W,V,X=t_(),q=tM(),ee=eL?eL.duration():eU(e2,eV),et=v<=.01||!v,er=0,en=s||0,ei=eJ(o)?o.end:t.end,eo=t.endTrigger||ex,es=eJ(o)?o.start:t.start||(0!==t.start&&ex?ev?"0 0":"0 100%":0),el=tC.pinnedContainer=t.pinnedContainer&&I(t.pinnedContainer,tC),ec=ex&&Math.max(0,tk.indexOf(tC))||0,ed=ec;for(tb&&eJ(o)&&(W=G.getProperty(f,eV.p),V=G.getProperty(g,eV.p));ed-- >0;)(_=tk[ed]).end||_.refresh(0,1)||(ea=tC),(E=_.pin)&&(E===ex||E===ev||E===el)&&!_.isReverted&&(Y||(Y=[]),Y.unshift(_),_.revert(!0,!0)),_!==tk[ed]&&(ec--,ed--);for(eK(es)&&(es=es(tC)),d=tQ(es=ez(es,"start",tC),ex,X,eV,tF(),p,f,tC,q,tj,tu,ee,eL,tC._startClamp&&"_startClamp")||(ev?-.001:0),eK(ei)&&(ei=ei(tC)),e$(ei)&&!ei.indexOf("+=")&&(~ei.indexOf(" ")?ei=(e$(es)?es.split(" ")[0]:"")+ei:(er=tv(ei.substr(2),X),ei=e$(es)?es:(eL?G.utils.mapRange(0,eL.duration(),eL.scrollTrigger.start,eL.scrollTrigger.end,d):d)+er,eo=ex)),ei=ez(ei,"end",tC),u=Math.max(d,tQ(ei||(eo?"100% 0":ee),eo,X,eV,tF()+er,m,g,tC,q,tj,tu,ee,eL,tC._endClamp&&"_endClamp"))||-.001,er=0,ed=ec;ed--;)(E=(_=tk[ed]||{}).pin)&&_.start-_._pinPush<=d&&!eL&&_.end>0&&(h=_.end-(tC._startClamp?Math.max(0,_.start):_.start),(E===ex&&_.start-_._pinPush<d||E===el)&&isNaN(es)&&(er+=h*(1-_.progress)),E===ev&&(en+=h));if(d+=er,u+=er,tC._startClamp&&(tC._startClamp+=er),tC._endClamp&&!eA&&(tC._endClamp=u||-.001,u=Math.min(u,eU(e2,eV))),v=u-d||(d-=.01)&&.001,et&&(tR=G.utils.clamp(0,1,G.utils.normalize(d,u,J))),tC._pinPush=en,p&&er&&((h={})[eV.a]="+="+er,el&&(h[eV.p]="-="+tF()),G.set([p,m],h)),ev&&!(eN&&tC.end>=eU(e2,eV)))h=ta(ev),C=eV===O,j=tF(),T=parseFloat(S(eV.a))+en,!ee&&u>1&&(B={style:B=(e5?$.scrollingElement||K:e2).style,value:B["overflow"+eV.a.toUpperCase()]},e5&&"scroll"!==ta(Z)["overflow"+eV.a.toUpperCase()]&&(B.style["overflow"+eV.a.toUpperCase()]="scroll")),tU(ev,N,h),k=tK(ev),w=ts(ev,!0),R=tu&&D(e2,C?z:O)(),ey?((P=[ey+eV.os2,v+en+"px"]).t=N,(ed=ey===te?tl(ev,eV)+v+en:0)&&(P.push(eV.d,ed+"px"),"auto"!==N.style.flexBasis&&(N.style.flexBasis=ed+"px")),t$(P),el&&tk.forEach(function(e){e.pin===el&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),tu&&tF(J)):(ed=tl(ev,eV))&&"auto"!==N.style.flexBasis&&(N.style.flexBasis=ed+"px"),tu&&((A={top:w.top+(C?j-d:R)+"px",left:w.left+(C?R:j-d)+"px",boxSizing:"border-box",position:"fixed"})[e4]=A["max"+tr]=Math.ceil(w.width)+"px",A[e7]=A["max"+tn]=Math.ceil(w.height)+"px",A[tt]=A[tt+"Top"]=A[tt+e8]=A[tt+e9]=A[tt+e6]="0",A[te]=h[te],A[te+"Top"]=h[te+"Top"],A[te+e8]=h[te+e8],A[te+e9]=h[te+e9],A[te+e6]=h[te+e6],b=tZ(y,A,eP),eA&&tF(0)),r?(L=r._initted,ep(1),r.render(r.duration(),!0,!0),M=S(eV.a)-T+v+en,F=Math.abs(v-M)>1,tu&&F&&b.splice(b.length-2,2),r.render(0,!0,!0),L||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ep(0)):M=v,B&&(B.value?B.style["overflow"+eV.a.toUpperCase()]=B.value:B.style.removeProperty("overflow-"+eV.a));else if(ex&&tF()&&!eL)for(w=ex.parentNode;w&&w!==Z;)w._pinOffset&&(d-=w._pinOffset,u-=w._pinOffset),w=w.parentNode;Y&&Y.forEach(function(e){return e.revert(!1,!0)}),tC.start=d,tC.end=u,l=c=eA?J:tF(),eL||eA||(l<J&&tF(J),tC.scroll.rec=0),tC.revert(!1,!0),tP=eE(),U&&(tE=-1,U.restart(!0)),ea=0,r&&eq&&(r._initted||Q)&&r.progress()!==Q&&r.progress(Q||0,!0).render(r.time(),!0,!0),(et||tR!==tC.progress||eL||eb||r&&!r._initted)&&(r&&!eq&&(r._initted||tR||!1!==r.vars.immediateRender)&&r.totalProgress(eL&&d<-.001&&!tR?G.utils.normalize(d,u,0):tR,!0),tC.progress=et||(l-d)/v===tR?0:tR),ev&&ey&&(N._pinOffset=Math.round(tC.progress*M)),H&&H.invalidate(),isNaN(W)||(W-=G.getProperty(f,eV.p),V-=G.getProperty(g,eV.p),t3(f,eV,W),t3(p,eV,W-(s||0)),t3(g,eV,V),t3(m,eV,V-(s||0))),et&&!eA&&tC.update(),!eg||eA||x||(x=!0,eg(tC),x=!1)}},tC.getVelocity=function(){return(tF()-c)/(eE()-er)*1e3||0},tC.endAnimation=function(){eQ(tC.callbackAnimation),r&&(H?H.progress(1):r.paused()?eq||eQ(r,tC.direction<0,1):eQ(r,r.reversed()))},tC.labelToScroll=function(e){return r&&r.labels&&(d||tC.refresh()||d)+r.labels[e]/r.duration()*v||0},tC.getTrailing=function(e){var t=tk.indexOf(tC),r=tC.direction>0?tk.slice(0,t).reverse():tk.slice(t+1);return(e$(e)?r.filter(function(t){return t.vars.preventOverlaps===e}):r).filter(function(e){return tC.direction>0?e.end<=d:e.start>=u})},tC.update=function(e,t,n){if(!eL||n||e){var a,o,s,p,m,g,h,x=!0===eA?J:tC.scroll(),y=e?0:(x-d)/v,w=y<0?0:y>1?1:y||0,j=tC.progress;if(t&&(c=l,l=eL?tF():x,e_&&(W=B,B=r&&!eq?r.totalProgress():w)),ek&&ev&&!ea&&!eM&&eR&&(!w&&d<x+(x-c)/(eE()-er)*ek?w=1e-4:1===w&&u>x+(x-c)/(eE()-er)*ek&&(w=.9999)),w!==j&&tC.enabled){if(p=(m=(a=tC.isActive=!!w&&w<1)!=(!!j&&j<1))||!!w!=!!j,tC.direction=w>j?1:-1,tC.progress=w,p&&!ea&&(o=w&&!j?0:1===w?1:1===j?2:3,eq&&(s=!m&&"none"!==tx[o+1]&&tx[o+1]||tx[o],h=r&&("complete"===s||"reset"===s||s in r))),eW&&(m||h)&&(h||eh||!r)&&(eK(eW)?eW(tC):tC.getTrailing(eW).forEach(function(e){return e.endAnimation()})),!eq&&(!H||ea||eM?r&&r.totalProgress(w,!!(ea&&(tP||e))):(H._dp._time-H._start!==H._time&&H.render(H._dp._time-H._start),H.resetTo?H.resetTo("totalProgress",w,r._tTime/r._tDur):(H.vars.totalProgress=w,H.invalidate().restart()))),ev)if(e&&ey&&(N.style[ey+eV.os2]=E),tu){if(p){if(g=!e&&w>j&&u+1>x&&x+1>=eU(e2,eV),eP)if(!e&&(a||g)){var C=ts(ev,!0),S=x-d;t1(ev,Z,C.top+(eV===O?S:0)+"px",C.left+(eV===O?0:S)+"px")}else t1(ev,N);t$(a||g?b:k),F&&w<1&&a||_(T+(1!==w||g?0:M))}}else _(eY(T+M*w));!e_||i.tween||ea||eM||U.restart(!0),ed&&(m||eS&&w&&(w<1||!eC))&&ee(ed.targets).forEach(function(e){return e.classList[a||eS?"add":"remove"](ed.className)}),!ec||eq||e||ec(tC),p&&!ea?(eq&&(h&&("complete"===s?r.pause().totalProgress(1):"reset"===s?r.restart(!0).pause():"restart"===s?r.restart(!0):r[s]()),ec&&ec(tC)),(m||!eC)&&(ef&&m&&e0(tC,ef),tf[o]&&e0(tC,tf[o]),eS&&(1===w?tC.kill(!1,1):tf[o]=0),!m&&tf[o=1===w?1:3]&&e0(tC,tf[o])),eB&&!a&&Math.abs(tC.getVelocity())>(eZ(eB)?eB:2500)&&(eQ(tC.callbackAnimation),H?H.progress(1):eQ(r,"reverse"===s?1:!w,1))):eq&&ec&&!ea&&ec(tC)}if(L){var A=eL?x/eL.duration()*(eL._caScrollDist||0):x;R(A+ +!!f._isFlipped),L(A)}en&&en(-x/eL.duration()*(eL._caScrollDist||0))}},tC.enable=function(t,r){tC.enabled||(tC.enabled=!0,tp(e2,"resize",tS),e5||tp(e2,"scroll",tN),tA&&tp(e,"refreshInit",tA),!1!==t&&(tC.progress=tR=0,l=c=tE=tF()),!1!==r&&tC.refresh())},tC.getTween=function(e){return e&&i?i.tween:H},tC.setPositions=function(e,t,r,n){if(eL){var a=eL.scrollTrigger,i=eL.duration(),o=a.end-a.start;e=a.start+o*e/i,t=a.start+o*t/i}tC.refresh(!1,!1,{start:eO(e,r&&!!tC._startClamp),end:eO(t,r&&!!tC._endClamp)},n),tC.update()},tC.adjustPinSpacing=function(e){if(P&&e){var t=P.indexOf(eV.d)+1;P[t]=parseFloat(P[t])+e+"px",P[1]=parseFloat(P[1])+e+"px",t$(P)}},tC.disable=function(t,r){if(!1!==t&&tC.revert(!0,!0),tC.enabled&&(tC.enabled=tC.isActive=!1,r||H&&H.pause(),J=0,o&&(o.uncache=1),tA&&tm(e,"refreshInit",tA),U&&(U.pause(),i.tween&&i.tween.kill()&&(i.tween=0)),!e5)){for(var n=tk.length;n--;)if(tk[n].scroller===e2&&tk[n]!==tC)return;tm(e2,"resize",tS),e5||tm(e2,"scroll",tN)}},tC.kill=function(e,n){tC.disable(e,n),H&&!n&&H.kill(),em&&delete tw[em];var a=tk.indexOf(tC);a>=0&&tk.splice(a,1),a===es&&tW>0&&es--,a=0,tk.forEach(function(e){return e.scroller===tC.scroller&&(a=1)}),a||eA||(tC.scroll.rec=0),r&&(r.scrollTrigger=null,e&&r.revert({kill:!1}),n||r.kill()),p&&[p,m,f,g].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),eT===tC&&(eT=0),ev&&(o&&(o.uncache=1),a=0,tk.forEach(function(e){return e.pin===ev&&a++}),a||(o.spacer=0)),t.onKill&&t.onKill(tC)},tk.push(tC),tC.enable(!1,!1),eo&&eo(tC),r&&r.add&&!v){var tD=tC.update;tC.update=function(){tC.update=tD,w.cache++,d||u||tC.refresh()},G.delayedCall(.01,tC.update),v=.01,d=u=0}else tC.refresh();ev&&tI()},e.register=function(t){return U||(G=t||eW(),eB()&&window.document&&e.enable(),U=eF),U},e.defaults=function(e){if(e)for(var t in e)th[t]=e[t];return th},e.disable=function(e,t){eF=0,tk.forEach(function(r){return r[t?"kill":"disable"](e)}),tm(q,"wheel",tN),tm($,"scroll",tN),clearInterval(en),tm($,"touchcancel",eD),tm(Z,"touchstart",eD),tu(tm,$,"pointerdown,touchstart,mousedown",eI),tu(tm,$,"pointerup,touchend,mouseup",eL),Q.kill(),eq(tm);for(var r=0;r<w.length;r+=3)tf(tm,w[r],w[r+1]),tf(tm,w[r],w[r+2])},e.enable=function(){if(q=window,K=($=document).documentElement,Z=$.body,G)if(ee=G.utils.toArray,et=G.utils.clamp,ey=G.core.context||eD,ep=G.core.suppressOverwrites||eD,eb=q.history.scrollRestoration||"auto",tB=q.pageYOffset||0,G.core.globals("ScrollTrigger",e),Z){eF=1,(ek=document.createElement("div")).style.height="100vh",ek.style.position="absolute",tL(),function e(){return eF&&requestAnimationFrame(e)}(),X.register(G),e.isTouch=X.isTouch,ev=X.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),eg=1===X.isTouch,tp(q,"wheel",tN),J=[q,$,K,Z],G.matchMedia?(e.matchMedia=function(e){var t,r=G.matchMedia();for(t in e)r.add(t,e[t]);return r},G.addEventListener("matchMediaInit",function(){tR(),tF()}),G.addEventListener("matchMediaRevert",function(){return tP()}),G.addEventListener("matchMedia",function(){tY(0,1),tM("matchMedia")}),G.matchMedia().add("(orientation: portrait)",function(){return tC(),tC})):console.warn("Requires GSAP 3.11.0 or later"),tC(),tp($,"scroll",tN);var t,r,n=Z.hasAttribute("style"),a=Z.style,i=a.borderTopStyle,o=G.core.Animation.prototype;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),a.borderTopStyle="solid",O.m=Math.round((t=ts(Z)).top+O.sc())||0,z.m=Math.round(t.left+z.sc())||0,i?a.borderTopStyle=i:a.removeProperty("border-top-style"),n||(Z.setAttribute("style",""),Z.removeAttribute("style")),en=setInterval(tj,250),G.delayedCall(.5,function(){return eM=0}),tp($,"touchcancel",eD),tp(Z,"touchstart",eD),tu(tp,$,"pointerdown,touchstart,mousedown",eI),tu(tp,$,"pointerup,touchend,mouseup",eL),eo=G.utils.checkPrefix("transform"),tX.push(eo),U=eE(),Q=G.delayedCall(.2,tY).pause(),ed=[$,"visibilitychange",function(){var e=q.innerWidth,t=q.innerHeight;$.hidden?(el=e,ec=t):(el!==e||ec!==t)&&tS()},$,"DOMContentLoaded",tY,q,"load",tY,q,"resize",tS],eq(tp),tk.forEach(function(e){return e.enable(0,1)}),r=0;r<w.length;r+=3)tf(tm,w[r],w[r+1]),tf(tm,w[r],w[r+2])}else $&&$.addEventListener("DOMContentLoaded",function t(){e.enable(),$.removeEventListener("DOMContentLoaded",t)})},e.config=function(t){"limitCallbacks"in t&&(eC=!!t.limitCallbacks);var r=t.syncInterval;r&&clearInterval(en)||(en=r)&&setInterval(tj,r),"ignoreMobileResize"in t&&(eg=1===e.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(eq(tm)||eq(tp,t.autoRefreshEvents||"none"),em=-1===(t.autoRefreshEvents+"").indexOf("resize"))},e.scrollerProxy=function(e,t){var r=I(e),n=w.indexOf(r),a=eH(r);~n&&w.splice(n,a?6:2),t&&(a?j.unshift(q,t,Z,t,K,t):j.unshift(r,t))},e.clearMatchMedia=function(e){tk.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,r){var n=(e$(e)?I(e):e).getBoundingClientRect(),a=n[r?e4:e7]*t||0;return r?n.right-a>0&&n.left+a<q.innerWidth:n.bottom-a>0&&n.top+a<q.innerHeight},e.positionInViewport=function(e,t,r){e$(e)&&(e=I(e));var n=e.getBoundingClientRect(),a=n[r?e4:e7],i=null==t?a/2:t in tx?tx[t]*a:~t.indexOf("%")?parseFloat(t)*a/100:parseFloat(t)||0;return r?(n.left+i)/q.innerWidth:(n.top+i)/q.innerHeight},e.killAll=function(e){if(tk.slice(0).forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e){var t=tA.killAll||[];tA={},t.forEach(function(e){return e()})}},e}();t4.version="3.15.0",t4.saveStyles=function(e){return e?ee(e).forEach(function(e){if(e&&e.style){var t=tE.indexOf(e);t>=0&&tE.splice(t,5),tE.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),G.core.getCache(e),ey())}}):tE},t4.revert=function(e,t){return tF(!e,t)},t4.create=function(e,t){return new t4(e,t)},t4.refresh=function(e){return e?tS(!0):(U||t4.register())&&tY(!0)},t4.update=function(e){return++w.cache&&tH(2*(!0===e))},t4.clearScrollMemory=tz,t4.maxScroll=function(e,t){return eU(e,t?z:O)},t4.getScrollFunc=function(e,t){return D(I(e),t?z:O)},t4.getById=function(e){return tw[e]},t4.getAll=function(){return tk.filter(function(e){return"ScrollSmoother"!==e.vars.id})},t4.isScrolling=function(){return!!eR},t4.snapDirectional=td,t4.addEventListener=function(e,t){var r=tA[e]||(tA[e]=[]);~r.indexOf(t)||r.push(t)},t4.removeEventListener=function(e,t){var r=tA[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},t4.batch=function(e,t){var r,n=[],a={},i=t.interval||.016,o=t.batchMax||1e9,s=function(e,t){var r=[],n=[],a=G.delayedCall(i,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||a.restart(!0),r.push(e.trigger),n.push(e),o<=r.length&&a.progress(1)}};for(r in t)a[r]="on"===r.substr(0,2)&&eK(t[r])&&"onRefreshInit"!==r?s(r,t[r]):t[r];return eK(o)&&(o=o(),tp(t4,"refresh",function(){return o=t.batchMax()})),ee(e).forEach(function(e){var t={};for(r in a)t[r]=a[r];t.trigger=e,n.push(t4.create(t))}),n};var t7,t8=function(e,t,r,n){return t>n?e(n):t<0&&e(0),r>n?(n-t)/(r-t):r<0?t/(t-r):1},t6=function e(t,r){!0===r?t.style.removeProperty("touch-action"):t.style.touchAction=!0===r?"auto":r?"pan-"+r+(X.isTouch?" pinch-zoom":""):"none",t===K&&e(Z,r)},t9={auto:1,scroll:1},re=function(e){var t,r=e.event,n=e.target,a=e.axis,i=(r.changedTouches?r.changedTouches[0]:r).target,o=i._gsap||G.core.getCache(i),s=eE();if(!o._isScrollT||s-o._isScrollT>2e3){for(;i&&i!==Z&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(t9[(t=ta(i)).overflowY]||t9[t.overflowX]));)i=i.parentNode;o._isScroll=i&&i!==n&&!eH(i)&&(t9[(t=ta(i)).overflowY]||t9[t.overflowX]),o._isScrollT=s}(o._isScroll||"x"===a)&&(r.stopPropagation(),r._gsapAllow=!0)},rt=function(e,t,r,n){return X.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&re,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&tp($,X.eventTypes[0],rn,!1,!0)},onDisable:function(){return tm($,X.eventTypes[0],rn,!0)}})},rr=/(input|label|select|textarea)/i,rn=function(e){var t=rr.test(e.target.tagName);(t||t7)&&(e._gsapAllow=!0,t7=t)},ra=function(e){eJ(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,r,n,a,i,o,s,l,c=e,d=c.normalizeScrollX,u=c.momentum,p=c.allowNestedScroll,m=c.onRelease,f=I(e.target)||K,g=G.core.globals().ScrollSmoother,h=g&&g.get(),x=ev&&(e.content&&I(e.content)||h&&!1!==e.content&&!h.smooth()&&h.content()),v=D(f,O),y=D(f,z),b=1,k=(X.isTouch&&q.visualViewport?q.visualViewport.scale*q.visualViewport.width:q.outerWidth)/q.innerWidth,j=0,N=eK(u)?function(){return u(t)}:function(){return u||2.8},C=rt(f,e.type,!0,p),S=function(){return a=!1},A=eD,_=eD,T=function(){r=eU(f,O),_=et(+!!ev,r),d&&(A=et(0,eU(f,z))),n=tO},M=function(){x._gsap.y=eY(parseFloat(x._gsap.y)+v.offset)+"px",x.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(x._gsap.y)+", 0, 1)",v.offset=v.cacheID=0},E=function(){if(a){requestAnimationFrame(S);var e=eY(t.deltaY/2),r=_(v.v-e);if(x&&r!==v.v+v.offset){v.offset=r-v.v;var n=eY((parseFloat(x&&x._gsap.y)||0)-v.offset);x.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",x._gsap.y=n+"px",v.cacheID=w.cache,tH()}return!0}v.offset&&M(),a=!0},P=function(){T(),i.isActive()&&i.vars.scrollY>r&&(v()>r?i.progress(1)&&v(r):i.resetTo("scrollY",r))};return x&&G.set(x,{y:"+=0"}),e.ignoreCheck=function(e){return ev&&"touchmove"===e.type&&E(e)||b>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){a=!1;var e=b;b=eY((q.visualViewport&&q.visualViewport.scale||1)/k),i.pause(),e!==b&&t6(f,b>1.01||!d&&"x"),o=y(),s=v(),T(),n=tO},e.onRelease=e.onGestureStart=function(e,t){if(v.offset&&M(),t){w.cache++;var n,a,o=N();d&&(a=(n=y())+-(.05*o*e.velocityX)/.227,o*=t8(y,n,a,eU(f,z)),i.vars.scrollX=A(a)),a=(n=v())+-(.05*o*e.velocityY)/.227,o*=t8(v,n,a,eU(f,O)),i.vars.scrollY=_(a),i.invalidate().duration(o).play(.01),(ev&&i.vars.scrollY>=r||n>=r-1)&&G.to({},{onUpdate:P,duration:o})}else l.restart(!0);m&&m(e)},e.onWheel=function(){i._ts&&i.pause(),eE()-j>1e3&&(n=0,j=eE())},e.onChange=function(e,t,r,a,i){if(tO!==n&&T(),t&&d&&y(A(a[2]===t?o+(e.startX-e.x):y()+t-a[1])),r){v.offset&&M();var l=i[2]===r,c=l?s+e.startY-e.y:v()+r-i[1],u=_(c);l&&c!==u&&(s+=u-c),v(u)}(r||t)&&tH()},e.onEnable=function(){t6(f,!d&&"x"),t4.addEventListener("refresh",P),tp(q,"resize",P),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),C.enable()},e.onDisable=function(){t6(f,!0),tm(q,"resize",P),t4.removeEventListener("refresh",P),C.kill()},e.lockAxis=!1!==e.lockAxis,(t=new X(e)).iOS=ev,ev&&!v()&&v(1),ev&&G.ticker.add(eD),l=t._dc,i=G.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:d?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:t2(v,v(),function(){return i.pause()})},onUpdate:tH,onComplete:l.vars.onComplete}),t};t4.sort=function(e){if(eK(e))return tk.sort(e);var t=q.pageYOffset||0;return t4.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+q.innerHeight}),tk.sort(e||function(e,t){return -1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))})},t4.observe=function(e){return new X(e)},t4.normalizeScroll=function(e){if(void 0===e)return ef;if(!0===e&&ef)return ef.enable();if(!1===e){ef&&ef.kill(),ef=e;return}var t=e instanceof X?e:ra(e);return ef&&ef.target===t.target&&ef.kill(),eH(t.target)&&(ef=t),t},t4.core={_getVelocityProp:Y,_inputObserver:rt,_scrollers:w,_proxies:j,bridge:{ss:function(){eR||tM("scrollStart"),eR=eE()},ref:function(){return ea}}},eW()&&G.registerPlugin(t4);var ri=e.i(790961),ro=e.i(837002),rs=e.i(48663),rl=e.i(438342),rc=e.i(795379),rd=e.i(205189);function ru({isLoggedIn:e}){let n=(0,r.useRef)(null),o=(0,r.useRef)(null),s=(0,r.useRef)(null),l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,i.useGSAP)(()=>{o.current&&s.current&&l.current&&a.default.timeline({delay:.3}).fromTo(".hero-brand",{y:-20,opacity:0},{y:0,opacity:1,duration:.5,ease:"power3.out"}).to(o.current,{opacity:1,duration:.4,ease:"power2.out"},.2).to(s.current,{opacity:1,duration:.3,ease:"power2.out"},"-=0.1").fromTo(".hero-clipboard",{y:10,opacity:0},{y:0,opacity:1,duration:.3,ease:"power2.out"},"-=0.1").fromTo(".hero-specs",{y:15,opacity:0},{y:0,opacity:1,duration:.5,ease:"power2.out"},"-=0.1").fromTo(".hero-providers",{y:10,opacity:0},{y:0,opacity:1,duration:.4,ease:"power2.out"},"-=0.2").fromTo(l.current,{y:15,opacity:0},{y:0,opacity:1,duration:.4,ease:"power2.out"},"-=0.2")},{scope:n}),(0,t.jsxs)("section",{ref:n,className:"hero-section relative flex h-screen items-center justify-center overflow-hidden",style:{backgroundColor:"var(--landing-bg)"},children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 opacity-[0.03]",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E\")",backgroundRepeat:"repeat",backgroundSize:"256px 256px"}}),(0,t.jsxs)("div",{className:"hero-content relative z-10 mx-auto flex w-full max-w-4xl flex-col items-center px-4 sm:px-6 py-8 max-h-full",children:[(0,t.jsxs)("div",{className:"hero-brand mb-6 flex shrink-0 items-center gap-1.5",style:{opacity:0},children:[(0,t.jsx)(ro.default,{src:"/alook.svg",alt:"Alook",width:32,height:32}),(0,t.jsx)("span",{className:"text-2xl tracking-tight",style:{fontFamily:"var(--font-brand)",color:"var(--landing-text)",fontWeight:700},children:"Alook"})]}),(0,t.jsx)("div",{className:"typewriter-wrapper flex w-full shrink min-h-0 flex-col items-center",style:{height:"clamp(192px, calc(100vh - 200px), 750px)"},children:(0,t.jsxs)("div",{className:"hero-scalable flex w-full flex-1 min-h-0 flex-col items-center",children:[(0,t.jsxs)("div",{className:"relative w-full shrink min-h-0 flex-1",children:[(0,t.jsxs)("div",{className:"absolute top-0 left-0 right-0 z-10 flex flex-col items-center pt-2",children:[(0,t.jsx)("h1",{ref:o,className:"mb-1 text-center leading-[1.2] px-2",style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)",fontSize:"clamp(26px, 4vw, 44px)",letterSpacing:"-0.01em",opacity:0},children:"Run Your Personal Company"}),(0,t.jsx)("p",{ref:s,className:"block max-w-lg text-center text-sm sm:text-base leading-relaxed px-2",style:{fontFamily:"var(--font-crt)",color:"var(--landing-text-muted)",fontSize:"clamp(15px, 3.6vw, 20px)",opacity:0},children:"You have ideas that need ten people to execute. Now you only need yourself and Alook."})]}),(0,t.jsx)(rc.TypewriterVisual,{interactive:!0,entranceDelay:1.2,className:"absolute! inset-0"})]}),(0,t.jsxs)("div",{className:"hero-clipboard relative mt-8 shrink-0 w-full max-w-lg cursor-pointer",style:{opacity:0},onClick:()=>{navigator.clipboard.writeText(`Read ${window.location.origin}/onboard.md and follow the instructions to install and configure Alook`),d(!0),setTimeout(()=>d(!1),2e3)},children:[(0,t.jsx)("span",{className:"absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 whitespace-nowrap overflow-hidden text-ellipsis px-2 py-0.5 text-[10px] sm:text-xs",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",backgroundColor:"var(--landing-bg)"},children:"Copy and Paste Into Your Agent's Chat to Get Started"}),(0,t.jsxs)("div",{className:"flex w-full items-center gap-2 rounded px-3 py-2.5 pt-3 text-xs sm:text-sm",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text)",border:"1px solid color-mix(in srgb, var(--landing-text-muted) 30%, transparent)"},children:[(0,t.jsxs)("span",{className:"flex-1 overflow-hidden whitespace-nowrap text-ellipsis",children:["Read"," ",(0,t.jsx)("a",{href:"/onboard.md",target:"_blank",rel:"noopener noreferrer",className:"underline transition-opacity hover:opacity-70",style:{color:"var(--landing-text)"},onClick:e=>e.stopPropagation(),children:"Onboard.md"})," ","and follow the instructions to install and configure Alook"]}),(0,t.jsx)("span",{className:"shrink-0 p-1",style:{color:c?"var(--landing-text)":"var(--landing-text-muted)"},children:c?(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"20 6 9 17 4 12"})}):(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),(0,t.jsxs)("div",{className:"hero-providers mt-5 shrink-0 flex items-center justify-center gap-4",style:{opacity:0},children:[(0,t.jsx)("a",{href:"https://github.com/alookai/alook",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1.5 transition-opacity hover:opacity-70",style:{color:"var(--landing-text)"},"aria-label":"GitHub",children:(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}),(0,t.jsx)("a",{href:"https://discord.alook.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1.5 transition-opacity hover:opacity-70",style:{color:"var(--landing-text)"},"aria-label":"Discord",children:(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z"})})}),(0,t.jsx)("a",{href:"https://x.com/alook_ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1.5 transition-opacity hover:opacity-70",style:{color:"var(--landing-text)"},"aria-label":"Follow us on X",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})]}),(0,t.jsxs)("div",{ref:l,className:"mt-8 shrink-0 flex flex-nowrap items-center justify-center gap-3",style:{opacity:0},children:[e?(0,t.jsxs)("a",{href:"/workspaces?auto",onClick:()=>(0,rd.trackLandingCtaClicked)({cta_name:"open_app"}),className:"inline-flex items-center gap-2 px-6 py-2.5 text-sm transition-all duration-200 hover:opacity-80",style:{fontFamily:"var(--font-mono)",color:"var(--landing-bg)",backgroundColor:"var(--landing-text)",letterSpacing:"0.12em"},children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}),(0,t.jsx)("polyline",{points:"10 17 15 12 10 7"}),(0,t.jsx)("line",{x1:"15",y1:"12",x2:"3",y2:"12"})]}),"OPEN APP"]}):(0,t.jsxs)("a",{href:"/sign-in",onClick:()=>(0,rd.trackLandingCtaClicked)({cta_name:"get_started"}),className:"inline-flex items-center gap-2 px-6 py-2.5 text-sm transition-all duration-200 hover:opacity-80",style:{fontFamily:"var(--font-mono)",color:"var(--landing-bg)",backgroundColor:"var(--landing-text)",letterSpacing:"0.12em"},children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}),(0,t.jsx)("polyline",{points:"10 17 15 12 10 7"}),(0,t.jsx)("line",{x1:"15",y1:"12",x2:"3",y2:"12"})]}),"GET STARTED"]}),(0,t.jsxs)(rs.default,{href:"/templates",onClick:()=>(0,rd.trackLandingCtaClicked)({cta_name:"templates"}),className:"inline-flex items-center gap-2 px-6 py-2.5 text-sm transition-all duration-200 hover:opacity-80",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text)",border:"1px solid var(--landing-text)",letterSpacing:"0.12em"},children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"7",height:"7"}),(0,t.jsx)("rect",{x:"14",y:"3",width:"7",height:"7"}),(0,t.jsx)("rect",{x:"3",y:"14",width:"7",height:"7"}),(0,t.jsx)("rect",{x:"14",y:"14",width:"7",height:"7"})]}),"TEMPLATES"]})]})]})}),(0,t.jsx)("p",{className:"mt-4 shrink-0 sm:hidden text-center text-xs",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:"For the full experience, open on a desktop browser."})]})]})}a.default.registerPlugin(t4,rl.SplitText),a.default.registerPlugin(t4);let rp=[{number:"I",title:"Collaboration",spec:"DEFINE YOUR COMPANY STRUCTURE",description:"You're the CEO. Assign agents to roles — dev, ops, research — and let them coordinate. Define your org chart, and Alook keeps everyone in sync.",terminal:["▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓","▓ YOU ▓░░░░░░░░░░░▓ DEV ▓░░░░░░░░░░░▓ OPS ▓","▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓"," ░ ░ ░ "," ░ ░ ░ ","▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓","▓ R&D ▓░░░░░░░░░░░▓ SALES ▓░░░░░░░░░░░▓ BIZ ▓","▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓"],cta:{tagline:"Design your org chart",label:"BUILD YOUR TEAM",href:"/sign-in"}},{number:"II",title:"Traceable",spec:"EVERY INTERACTION · RECORDED · AUDITABLE",description:"Agents communicate through email and work on your local machine. Every instruction, decision, and reply is recorded — in your inbox or in local files. Full accountability, no black boxes.",terminal:["█████████████████████████","█▓▒ ▒▓█","█ ▓▒░ ░▒▓ █","█ ▓▒░ ░▒▓ █","█ ▓▒░ ░▒▓ █","█ ▓▒░ ░▒▓ █","█ ▓▒█▒▓ █","█ ▒█▒ █","█ █","█████████████████████████"],cta:{tagline:"Full audit trail, zero black boxes",label:"SEE EVERY DECISION",href:"/sign-in"}},{number:"III",title:"Calendar",spec:"SHOWS UP AT THE RIGHT TIME",description:"Your agent manages its own schedule. It knows when to work, when to follow up, and when to wait — always on time, never in the way.",terminal:["▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓","▓ M T W T F S S ▓","▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓","▓ ░ ░ ░ ░ ░ ░ ░ ▓","▓ ░ ░ ░ ░ ░ ░ ░ ▓","▓ ░ ░ ▒ ▓ ░ ░ ░ ▓","▓ ░ ░ ░ ░ █ ░ ░ ▓","▓ ░ ░ ░ ░ ░ ░ ░ ▓","▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓"],cta:{tagline:"Agents that show up on time",label:"SET UP SCHEDULES",href:"/sign-in"}},{number:"IV",title:"Always-On",spec:"YOUR COMPANY NEVER SLEEPS",description:"A persistent daemon keeps every agent running around the clock — picking up tasks, responding to emails, shipping work while you sleep.",terminal:[" "," "," █ "," █ █ "," ▒▓ █ ","░░░░░░░░░ ▓ ▒░░░░░░"," █ ▓ "," ▓ "," "," "],cta:{tagline:"Ship while you sleep",label:"START THE DAEMON",href:"/sign-in"}},{number:"V",title:"Self-Learning",spec:"EVERY TASK MAKES THE TEAM SMARTER",description:"Agents build memory from past work — decisions, preferences, context. Your company gets sharper with every conversation, every task, every day.",terminal:[" "," █ "," ▓█▓ "," ▒▓█▓▒ "," ░▒▓█▓▒░ "," ░░▒▓█▓▒░░ "," ░░░▒▓█▓▒░░░ "," ░░░░▒▓█▓▒░░░░ "," ░░░░░▒▓█▓▒░░░░░ "," "],cta:{tagline:"Smarter with every task",label:"GROW YOUR TEAM",href:"/sign-in"}}];function rm(){let e=(0,r.useRef)(null);return(0,i.useGSAP)(()=>{a.default.from(".feature-hero",{y:30,opacity:0,duration:.6,scrollTrigger:{trigger:e.current,start:"top 75%",toggleActions:"play none none none"}}),a.default.utils.toArray(".feature-row").forEach(e=>{a.default.from(e,{y:40,opacity:0,duration:.6,ease:"power2.out",scrollTrigger:{trigger:e,start:"top 80%",toggleActions:"play none none none"}})})},{scope:e}),(0,t.jsxs)("section",{ref:e,className:"relative overflow-hidden py-24 lg:py-32",style:{backgroundColor:"var(--landing-bg)"},children:[(0,t.jsxs)("div",{className:"feature-hero mx-auto mb-20 max-w-4xl px-6 text-center lg:mb-28",children:[(0,t.jsx)("div",{className:"mb-3 text-xs uppercase tracking-[0.3em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:"Features"}),(0,t.jsx)("h2",{style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)",fontSize:"clamp(1.75rem, 4vw, 3rem)"},children:"Your Company, Your Agents"}),(0,t.jsx)("p",{className:"mx-auto mt-3 max-w-xl",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",fontSize:"0.85rem"},children:"Define roles, assign agents, and let them run. Alook is the orchestration layer that turns agents into a company."})]}),(0,t.jsx)("div",{className:"mx-auto flex max-w-5xl flex-col gap-16 px-6 sm:gap-24 lg:gap-32 lg:px-12",children:rp.map((e,r)=>(0,t.jsx)(rf,{feature:e,reversed:r%2==1},e.number))})]})}function rf({feature:e,reversed:r}){return(0,t.jsxs)("div",{className:"feature-row grid w-full grid-cols-1 items-center gap-8 lg:grid-cols-2 lg:gap-16",children:[(0,t.jsxs)("div",{className:`panel-text text-center lg:text-left ${r?"lg:order-2":""}`,children:[(0,t.jsxs)("div",{className:"mb-2 flex items-baseline justify-center gap-3 lg:justify-start",children:[(0,t.jsxs)("span",{className:"text-3xl",style:{fontFamily:"var(--font-crt)",color:"var(--landing-text-muted)"},children:[e.number,"."]}),(0,t.jsx)("h2",{className:"leading-tight",style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)",fontSize:"clamp(2rem, 4vw, 3rem)"},children:e.title})]}),(0,t.jsx)("div",{className:"mt-2 text-[10px] uppercase tracking-[0.2em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:e.spec}),(0,t.jsx)("p",{className:"mx-auto mt-4 max-w-md leading-relaxed text-[0.8125rem] sm:text-[0.875rem] lg:mx-0",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:e.description})]}),(0,t.jsx)("div",{className:`mx-auto w-full max-w-sm sm:max-w-md ${r?"lg:order-1":""}`,style:{isolation:"isolate"},children:(0,t.jsx)(rg,{feature:e})})]})}function rg({feature:e}){let[n,a]=(0,r.useState)(!1);return(0,t.jsx)("div",{className:"flip-card panel-crt relative z-1 cursor-pointer",style:{perspective:"1200px"},onClick:e=>{e.target.closest("a")||a(e=>!e)},children:(0,t.jsxs)("div",{className:"flip-card-inner relative w-full transition-transform duration-500 ease-out transform-3d",style:n?{transform:"rotateY(180deg)"}:void 0,children:[(0,t.jsx)("div",{className:"flip-card-front crt-panel-outer",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",pointerEvents:n?"none":void 0,boxShadow:"0 4px 16px oklch(0.15 0.01 55 / 15%), inset 0 1px 0 oklch(0.95 0.01 80 / 40%)"},children:(0,t.jsx)("div",{className:"crt-panel-inner p-5",children:(0,t.jsx)("div",{className:"flex items-center justify-center min-h-35",children:(0,t.jsx)(rx,{lines:e.terminal})})})}),(0,t.jsxs)("div",{className:"flip-card-back absolute inset-0 flex flex-col items-center justify-center rounded-lg p-6",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",transform:"rotateY(180deg)",backgroundColor:"var(--landing-crt-bg)",boxShadow:"0 4px 16px oklch(0.15 0.01 55 / 15%)"},children:[(0,t.jsx)("p",{className:"mb-5 text-center text-sm",style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",textShadow:"0 0 6px oklch(0.75 0.18 80 / 30%)"},children:e.cta.tagline}),(0,t.jsx)("a",{href:e.cta.href,className:"inline-flex items-center gap-2 px-5 py-2.5 text-xs uppercase tracking-widest transition-opacity hover:opacity-80",style:{fontFamily:"var(--font-mono)",color:"var(--landing-crt-bg)",backgroundColor:"var(--landing-phosphor)",boxShadow:"0 0 12px oklch(0.75 0.18 80 / 40%)"},children:e.cta.label})]})]})})}let rh=[" ","░","▒","▓","█"];function rx({lines:e}){let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!n.current||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let t=e.join("\n"),r=[...t].map((e,r)=>{let n=rh.indexOf(e),a=0,i=0;for(let e=0;e<r;e++)"\n"===t[e]?(a++,i=0):i++;return{orig:e,level:n,row:a,col:i}}),a=0,i=null,o=()=>{if(++a%2==0){let e=[];for(let t=0;t<r.length;t++){let n=r[t];if(n.level<=0){e.push(n.orig);continue}let i=Math.sin(.015*a+.45*n.row+.1*n.col),o=Math.max(1,Math.min(4,n.level+Math.round(i)));e.push(rh[o])}n.current&&(n.current.textContent=e.join(""))}i=requestAnimationFrame(o)},s=new IntersectionObserver(([e])=>{e.isIntersecting?null===i&&(i=requestAnimationFrame(o)):null!==i&&(cancelAnimationFrame(i),i=null)},{threshold:.1});return s.observe(n.current),()=>{null!==i&&cancelAnimationFrame(i),s.disconnect()}},[e]),(0,t.jsx)("pre",{ref:n,style:{fontFamily:"'Menlo', 'Consolas', 'DejaVu Sans Mono', monospace",fontSize:"clamp(7px, 2.5vw, 13px)",color:"var(--landing-phosphor)",textShadow:"0 0 8px oklch(0.75 0.18 80 / 40%)",opacity:.8,lineHeight:1.35,overflowX:"hidden"},children:e.join("\n")})}var rv=e.i(613349);function ry({title:e,children:r,className:n}){return(0,t.jsxs)("div",{className:(0,rv.cn)("rounded-xl border border-border/60 bg-background shadow-lg overflow-hidden flex flex-col dark",n),children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-2 border-b border-border/40 bg-muted/30 shrink-0",children:[(0,t.jsx)("span",{className:"size-2.5 rounded-full bg-red-400/80"}),(0,t.jsx)("span",{className:"size-2.5 rounded-full bg-yellow-400/80"}),(0,t.jsx)("span",{className:"size-2.5 rounded-full bg-green-400/80"}),e&&(0,t.jsx)("span",{className:"ml-2 text-[11px] text-muted-foreground font-medium",children:e})]}),(0,t.jsx)("div",{className:"relative flex-1 min-h-0",children:r})]})}var rb=e.i(131890),rk=e.i(80137),rw=e.i(383297),rj=e.i(896210),rN=e.i(758956),rC=e.i(754902),rS=e.i(855351),rA=e.i(157349),r_=e.i(465368),rT=e.i(819748),rM=e.i(126366),rE=e.i(643486);function rP({state:e,config:r,className:n}){let a=r.agents.find(t=>t.name.toLowerCase()===e.activeAgent)??r.agents[0],i=e.steps.slice(0,e.visibleCount);return(0,t.jsxs)("div",{className:(0,rv.cn)("flex h-full overflow-hidden dark",n),children:[(0,t.jsxs)("div",{className:"flex h-full w-11 flex-col items-center py-2 gap-1 border-r border-border/40 shrink-0",children:[(0,t.jsx)("div",{className:"mb-1.5",children:(0,t.jsx)(rE.Logo,{size:"sm",iconOnly:!0})}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1 mb-1 pb-1.5 border-b border-border/30",children:[(0,t.jsx)("div",{className:"flex items-center justify-center size-7 rounded-lg text-muted-foreground/50",children:(0,t.jsx)(rw.Home,{className:"size-3"})}),(0,t.jsx)("div",{className:"flex items-center justify-center size-7 rounded-lg text-muted-foreground/50",children:(0,t.jsx)(rj.Mail,{className:"size-3"})})]}),(0,t.jsx)("div",{className:"flex flex-col items-center gap-1.5 flex-1",children:r.agents.map(r=>{let n=e.activeAgent===r.name.toLowerCase();return(0,t.jsx)("div",{className:(0,rv.cn)("size-8 rounded-xl overflow-hidden ring-2 transition-all duration-300",n?"ring-primary shadow-md shadow-primary/20 scale-105":"ring-transparent hover:ring-border/60"),children:(0,t.jsx)(rM.AvatarRenderer,{config:r.config,size:32})},r.name)})})]}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border/50 px-3 py-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)("span",{className:"size-2 rounded-full bg-green-500"}),(0,t.jsx)("span",{className:"text-sm font-medium text-foreground",children:a.name}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"/ Chat"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,t.jsxs)("span",{className:"inline-flex items-center rounded-lg text-xs h-6 px-2 text-foreground bg-muted",children:[(0,t.jsx)(rN.MessageSquare,{className:"size-3 mr-1"}),"Chat"]}),(0,t.jsxs)("span",{className:"inline-flex items-center rounded-lg text-xs h-6 px-2 text-muted-foreground hover:bg-muted",children:[(0,t.jsx)(rj.Mail,{className:"size-3 mr-1"}),"Email"]})]})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden px-3 py-3",children:(0,t.jsx)("div",{className:"flex flex-col h-full justify-end",children:i.map((r,n)=>{let o="message"===r.type,s=n>0&&"message"===i[n-1].type,l=n<i.length-1&&i[n+1]?.type==="message",c="solo";o&&(!s&&l?c="first":s&&l?c="middle":s&&!l&&(c="last"));let d=0===n?"":s&&o?"mt-0.5":"mt-4";return(0,t.jsxs)("div",{className:`animate-[fade-up_300ms_ease-out_both] ${d}`,children:["email-in"===r.type&&(0,t.jsx)(rS.MessageCluster,{avatar:(0,t.jsx)("div",{className:"size-6.5 rounded-lg overflow-hidden",children:(0,t.jsx)(rT.AnimatedAvatar,{config:a.config,size:26,isHovered:!1,isWorking:e.isWorking})}),name:a.name,position:"solo",children:(0,t.jsx)(r_.EmailCard,{subject:r.subject,address:r.address,direction:"inbound"})}),"email-out"===r.type&&(0,t.jsx)(rS.MessageCluster,{avatar:(0,t.jsx)("div",{className:"size-6.5 rounded-lg overflow-hidden",children:(0,t.jsx)(rT.AnimatedAvatar,{config:a.config,size:26,isHovered:!1,isWorking:!1})}),name:a.name,position:"solo",children:(0,t.jsx)(r_.EmailCard,{subject:r.subject,address:r.address,direction:"outbound"})}),"user-message"===r.type&&(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(rC.MessageBubble,{variant:"user",position:"single",children:[(0,t.jsx)("span",{className:"text-sm",children:r.text}),r.attachment&&(0,t.jsxs)("div",{className:"flex items-center gap-1 mt-1.5 rounded-md bg-primary-foreground/10 border border-primary-foreground/20 px-2 py-1",children:[(0,t.jsx)(rk.FileText,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"text-xs opacity-80",children:r.attachment})]})]})}),"message"===r.type&&(0,t.jsx)(rS.MessageCluster,{avatar:(0,t.jsx)("div",{className:"size-6.5 rounded-lg overflow-hidden",children:(0,t.jsx)(rT.AnimatedAvatar,{config:a.config,size:26,isHovered:!1,isWorking:e.isWorking})}),name:a.name,position:c,children:(0,t.jsx)(rC.MessageBubble,{variant:"agent",position:"solo"===c?"single":c,children:r.markdown?(0,t.jsx)("div",{className:"text-sm space-y-1",dangerouslySetInnerHTML:{__html:r.markdown}}):(0,t.jsx)("span",{className:"text-sm",children:r.text})})})]},n)})})}),(0,t.jsxs)("div",{className:"px-3 py-3 border-t border-border/40",children:[e.isTyping&&(0,t.jsx)(rA.PresenceLine,{agentFirstName:a.name,taskStatus:"running"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-3xl border border-border/60 bg-muted/20 px-4 py-2.5",children:[(0,t.jsxs)("span",{className:"flex-1 text-sm text-muted-foreground/50",children:["Message ",a.name,"..."]}),(0,t.jsx)("div",{className:"size-6 rounded-full bg-primary flex items-center justify-center",children:(0,t.jsx)(rb.ArrowUp,{className:"size-3.5 text-primary-foreground"})})]})]})]})]})}function rR({lines:e,visibleCount:r,className:n}){return(0,t.jsxs)("div",{className:(0,rv.cn)("flex flex-col h-full bg-neutral-950 text-[11.5px] leading-relaxed font-mono overflow-hidden",n),children:[(0,t.jsx)("div",{className:"flex-1 px-4 py-3 space-y-1 overflow-hidden flex flex-col justify-end",children:e.slice(0,r).map((e,r)=>{let n=e.level??"info";return(0,t.jsx)("div",{className:(0,rv.cn)("animate-[fade-up_200ms_ease-out_both] whitespace-nowrap",!e.spans&&"info"===n&&"text-neutral-400",!e.spans&&"dim"===n&&"text-neutral-600",!e.spans&&"success"===n&&"text-green-400",!e.spans&&"highlight"===n&&"text-white"),children:e.spans?e.spans.map((e,r)=>(0,t.jsx)("span",{className:(0,rv.cn)("dim"===e.color&&"text-neutral-600","info"===e.color&&"text-neutral-400","highlight"===e.color&&"text-white","success"===e.color&&"text-green-400","keyword"===e.color&&"text-blue-400","string"===e.color&&"text-amber-300","muted"===e.color&&"text-neutral-500",!e.color&&"text-neutral-400"),children:e.text},r)):e.text},r)})}),(0,t.jsxs)("div",{className:"px-4 py-2 border-t border-neutral-800 flex items-center gap-2 text-[10px] text-neutral-500",children:[(0,t.jsx)("span",{className:"text-green-400",children:"●"}),(0,t.jsx)("span",{className:"text-neutral-400",children:"alook daemon"}),(0,t.jsx)("span",{className:"text-neutral-700",children:"·"}),(0,t.jsx)("span",{children:"1 workspace · 3 runtimes"})]})]})}var rF=e.i(41793),rz=e.i(51724);function rO({state:e,config:r,className:n}){let a=r.agents.find(t=>t.name.toLowerCase()===e.activeAgent)??r.agents[0],i=e.steps.slice(0,e.visibleCount);return(0,t.jsxs)("div",{className:(0,rv.cn)("flex flex-col h-full overflow-hidden dark",n),children:[(0,t.jsxs)("div",{className:"h-6 flex items-center px-1.5 shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,t.jsx)("div",{className:"shrink-0 [&>button]:pointer-events-none scale-[0.6] origin-center",children:(0,t.jsx)(rE.Logo,{size:"sm",iconOnly:!0})}),(0,t.jsx)(rw.Home,{className:"size-2.5 text-muted-foreground shrink-0"}),(0,t.jsx)(rF.CalendarDays,{className:"size-2.5 text-muted-foreground shrink-0"}),(0,t.jsx)(rz.CircleDot,{className:"size-2.5 text-muted-foreground shrink-0"})]}),(0,t.jsx)("div",{className:"flex-1 flex items-center gap-1 ml-1 overflow-hidden",children:r.agents.map(r=>{let n=e.activeAgent===r.name.toLowerCase();return(0,t.jsx)("div",{className:(0,rv.cn)("shrink-0 size-4 rounded-full overflow-hidden transition-all",n&&"shadow-[inset_0_0_0_1.5px_hsl(var(--primary))]"),children:(0,t.jsx)(rM.AvatarRenderer,{config:r.config,size:16})},r.name)})})]}),(0,t.jsxs)("div",{className:"flex-1 min-h-0 mx-1.5 mb-1.5 rounded-xl bg-card/80 backdrop-blur-xl shadow-lg ring-1 ring-border/40 overflow-hidden flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1 px-2 py-1 border-b border-border/40",children:[(0,t.jsx)("span",{className:"size-1 rounded-full bg-green-500"}),(0,t.jsx)("span",{className:"text-[9px] font-medium text-foreground",children:a.name}),(0,t.jsx)("span",{className:"text-[8px] text-muted-foreground",children:"/ Chat"})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden px-2.5 py-2",children:(0,t.jsx)("div",{className:"flex flex-col h-full justify-end gap-2",children:i.map((r,n)=>{let o="message"===r.type,s=n>0&&"message"===i[n-1].type,l=n<i.length-1&&i[n+1]?.type==="message",c="solo";o&&(!s&&l?c="first":s&&l?c="middle":s&&!l&&(c="last"));let d=0===n?"":s&&o?"mt-0.5":"mt-2.5";return(0,t.jsxs)("div",{className:`animate-[fade-up_300ms_ease-out_both] ${d}`,children:[("email-in"===r.type||"email-out"===r.type)&&(0,t.jsxs)("div",{className:"rounded border border-border/60 bg-card/80 px-2 py-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsxs)("span",{className:"text-[8px] text-muted-foreground truncate flex-1",children:["email-in"===r.type?"from ":"to ",r.address]}),(0,t.jsx)("span",{className:"text-[7px] font-bold uppercase tracking-wider text-muted-foreground/60 px-0.5 border border-muted-foreground/30 rounded-sm",children:"email-in"===r.type?"In":"Sent"})]}),(0,t.jsx)("div",{className:"text-[9px] font-medium leading-tight mt-0.5 line-clamp-1",children:r.subject})]}),"user-message"===r.type&&(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(rC.MessageBubble,{variant:"user",position:"single",className:"text-[9px]! leading-tight!",children:r.text})}),"message"===r.type&&(0,t.jsxs)("div",{className:"flex items-start gap-1",children:["solo"===c||"first"===c?(0,t.jsx)("div",{className:"size-4 rounded overflow-hidden shrink-0 mt-0.5",children:(0,t.jsx)(rT.AnimatedAvatar,{config:a.config,size:16,isHovered:!1,isWorking:e.isWorking})}):(0,t.jsx)("div",{className:"w-4 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex flex-col",children:[("solo"===c||"first"===c)&&(0,t.jsx)("span",{className:"text-[8px] font-semibold text-foreground leading-none mb-0.5",children:a.name}),(0,t.jsx)(rC.MessageBubble,{variant:"agent",position:"solo"===c?"single":c,className:"text-[9px]! leading-tight!",children:r.markdown?(0,t.jsx)("div",{className:"space-y-0.5",dangerouslySetInnerHTML:{__html:r.markdown}}):r.text})]})]})]},n)})})}),(0,t.jsxs)("div",{className:"px-2 py-1.5 border-t border-border/40",children:[e.isTyping&&(0,t.jsxs)("div",{className:"h-3 flex items-center mb-0.5",children:[(0,t.jsxs)("span",{className:"text-[8px] text-muted-foreground",children:[a.name," is typing"]}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-px ml-1",children:[(0,t.jsx)("span",{className:"size-0.5 rounded-full bg-muted-foreground/60 animate-[typing-dot_1.2s_ease-in-out_infinite]"}),(0,t.jsx)("span",{className:"size-0.5 rounded-full bg-muted-foreground/60 animate-[typing-dot_1.2s_ease-in-out_0.2s_infinite]"}),(0,t.jsx)("span",{className:"size-0.5 rounded-full bg-muted-foreground/60 animate-[typing-dot_1.2s_ease-in-out_0.4s_infinite]"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 rounded-full border border-border/60 bg-muted/20 px-2.5 py-1",children:[(0,t.jsx)("span",{className:"flex-1 text-[8px] text-muted-foreground/50",children:"Message..."}),(0,t.jsx)("div",{className:"size-3.5 rounded-full bg-primary flex items-center justify-center",children:(0,t.jsx)(rb.ArrowUp,{className:"size-2 text-primary-foreground"})})]})]})]})]})}function rI({steps:e,holdAfterComplete:t=4e3,resetDuration:n=300}){let[a,i]=(0,r.useState)(0),[o,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)(!1),d=(0,r.useRef)(null),u=(0,r.useRef)(!1);(0,r.useEffect)(()=>{let t=window.matchMedia("(prefers-reduced-motion: reduce)");u.current=t.matches,t.matches&&i(e.length);let r=t=>{u.current=t.matches,t.matches&&(i(e.length),s(!1))};return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e.length]);let p=(0,r.useCallback)(()=>{null!==d.current&&(clearTimeout(d.current),d.current=null)},[]);(0,r.useEffect)(()=>!l||u.current?void p():(i(0),s(!1),d.current=setTimeout(()=>(function r(a){if(a>=e.length){d.current=setTimeout(()=>{s(!0),d.current=setTimeout(()=>{s(!1),i(0),d.current=setTimeout(()=>r(0),200)},n)},t);return}i(a+1),d.current=setTimeout(()=>r(a+1),e[a].duration)})(0),500),p),[l,e,t,n,p]);let m=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=m.current;if(!e)return;let t=new IntersectionObserver(([e])=>{c(e.isIntersecting)},{threshold:.3});return t.observe(e),()=>t.disconnect()},[]),{visibleCount:a,isResetting:o,containerRef:m,isStepVisible:e=>e<a}}a.default.registerPlugin(t4);let rL={agents:[{name:"Planner",email:"planner@alook.ai",config:{shape:"hexagon",eye:"dots",nose:"dash",bg:5}},{name:"Coder",email:"coder@alook.ai",config:{shape:"task",eye:"happy",nose:"dot",bg:0}}]},rD=[{type:"user-message",text:"A user reported Safari crashes on login — can you fix it?"},{type:"message",text:"On it. Let me investigate and delegate to Coder."},{type:"email-out",subject:"Fix Safari flex gap in login page",address:"coder@alook.ai"},{type:"email-in",subject:"Re: Fix Safari flex gap — Done, PR #142",address:"coder@alook.ai"},{type:"message",markdown:"Coder fixed it — <strong>PR #142</strong> opened. Both <code>login-page.tsx</code> and <code>signup.tsx</code> patched, 42 tests passing."},{type:"user-message",text:"Nice, ship it"},{type:"message",text:"Done. Merged and replied to the reporter."},{type:"email-out",subject:"Re: Login crashes on Safari — Fixed",address:"user@company.com"}],rY=[{type:"email-in",subject:"Fix Safari flex gap in login page",address:"planner@alook.ai"},{type:"message",text:"Got it. Searching for flex gap usage..."},{type:"message",markdown:"Found 2 affected files:<br/><code>login-page.tsx:42</code> and <code>signup.tsx:18</code>. Fixing both."},{type:"message",markdown:"Done — replaced flex gap → margin spacing. <strong>42 tests passing ✓</strong>"},{type:"email-out",subject:"Re: Fix Safari flex gap — Done, PR #142",address:"planner@alook.ai"}],rB=[{spans:[{text:"INFO ",color:"keyword"},{text:"[daemon] ",color:"muted"},{text:"Task ",color:"info"},{text:"PhGFC9l ",color:"string"},{text:"claimed agent=",color:"info"},{text:"Planner",color:"string"}]},{spans:[{text:"INFO ",color:"keyword"},{text:"[session-runner] ",color:"muted"},{text:"send-dm",color:"highlight"},{text:": ",color:"muted"},{text:'"Let me investigate and delegate..."',color:"string"}]},{spans:[{text:"INFO ",color:"keyword"},{text:"[session-runner] ",color:"muted"},{text:"email-send",color:"highlight"},{text:": → ",color:"muted"},{text:"coder@alook.ai",color:"string"}]},{spans:[{text:"INFO ",color:"keyword"},{text:"[daemon] ",color:"muted"},{text:"Task ",color:"info"},{text:"xK9mT2r ",color:"string"},{text:"claimed agent=",color:"info"},{text:"Coder",color:"string"}]},{spans:[{text:"INFO ",color:"keyword"},{text:"[session-runner] ",color:"muted"},{text:"starting ",color:"info"},{text:"(provider=",color:"muted"},{text:"claude",color:"string"},{text:")",color:"muted"}]},{spans:[{text:"INFO ",color:"keyword"},{text:"[session-runner] ",color:"muted"},{text:"Bash",color:"highlight"},{text:": grep -rn ",color:"info"},{text:"flex-gap",color:"string"},{text:" src/",color:"muted"}]},{spans:[{text:"INFO ",color:"keyword"},{text:"[session-runner] ",color:"muted"},{text:"→ found in ",color:"info"},{text:"login-page.tsx:42",color:"highlight"},{text:", ",color:"muted"},{text:"signup.tsx:18",color:"highlight"}]},{spans:[{text:"INFO ",color:"keyword"},{text:"[session-runner] ",color:"muted"},{text:"Edit",color:"highlight"},{text:": ",color:"muted"},{text:"login-page.tsx",color:"string"},{text:", ",color:"muted"},{text:"signup.tsx",color:"string"}]},{spans:[{text:"INFO ",color:"keyword"},{text:"[session-runner] ",color:"muted"},{text:"Bash",color:"highlight"},{text:": pnpm test ",color:"info"},{text:"→ ",color:"muted"},{text:"42 passed ✓",color:"success"}]},{spans:[{text:"INFO ",color:"keyword"},{text:"[session-runner] ",color:"muted"},{text:"email-send",color:"highlight"},{text:": → ",color:"muted"},{text:"planner@alook.ai",color:"string"}]},{spans:[{text:"INFO ",color:"keyword"},{text:"[session-runner] ",color:"muted"},{text:"completed ",color:"success"},{text:"(duration=18s, tools=4)",color:"muted"}]},{spans:[{text:"INFO ",color:"keyword"},{text:"[session-runner] ",color:"muted"},{text:"send-dm",color:"highlight"},{text:": ",color:"muted"},{text:'"Coder fixed it — PR #142 opened."',color:"string"}]},{spans:[{text:"INFO ",color:"keyword"},{text:"[session-runner] ",color:"muted"},{text:"email-send",color:"highlight"},{text:": → ",color:"muted"},{text:"user@company.com",color:"string"},{text:" — ",color:"muted"},{text:"completed",color:"success"}]}],rW=[{id:"user-asks",duration:2e3},{id:"planner-typing",duration:1500},{id:"planner-msg1",duration:1500},{id:"planner-email-out",duration:2e3},{id:"switch-to-coder",duration:1200},{id:"coder-email-in",duration:1800},{id:"coder-typing",duration:1200},{id:"coder-msg1",duration:1500},{id:"coder-msg2",duration:1800},{id:"coder-msg3",duration:1800},{id:"coder-email-out",duration:2e3},{id:"switch-to-planner",duration:1200},{id:"planner-email-in",duration:1800},{id:"planner-msg2",duration:2e3},{id:"user-confirms",duration:1800},{id:"planner-msg3",duration:1500},{id:"planner-final-email",duration:3e3}];function rH(){let e=(0,r.useRef)(null),{visibleCount:n,isResetting:o,containerRef:s,isStepVisible:l}=rI({steps:rW,holdAfterComplete:3500}),c=(0,r.useMemo)(()=>{let e,t,r,n,a=l(4)&&!l(11);return a?(e=rY,t=0,l(5)&&(t=1),l(7)&&(t=2),l(8)&&(t=3),l(9)&&(t=4),l(10)&&(t=5),r=l(6)&&!l(7),n=l(5)&&!l(10)):(e=rD,t=0,l(0)&&(t=1),l(2)&&(t=2),l(3)&&(t=3),l(12)&&(t=4),l(13)&&(t=5),l(14)&&(t=6),l(15)&&(t=7),l(16)&&(t=8),r=l(1)&&!l(2),n=l(0)&&!l(16)),{activeAgent:a?"coder":"planner",steps:e,visibleCount:t,isTyping:r,isWorking:n}},[n]),d=(0,r.useMemo)(()=>{let e=[0,1,2,3,4,4,5,6,7,8,9,10,10,11,11,12,12],t=0;for(let r=0;r<e.length;r++)l(r)&&(t=e[r]+1);return Math.min(t,rB.length)},[n]);return(0,i.useGSAP)(()=>{a.default.from(".arch-title",{y:30,opacity:0,duration:.6,scrollTrigger:{trigger:e.current,start:"top 75%",toggleActions:"play none none none"}}),a.default.from(".arch-demo-container",{y:40,opacity:0,duration:.7,scrollTrigger:{trigger:".arch-demo-container",start:"top 70%",toggleActions:"play none none none"}})},{scope:e}),(0,t.jsxs)("section",{ref:e,className:"relative flex flex-col items-center justify-center px-6 py-24 lg:py-32",style:{backgroundColor:"var(--landing-bg)"},children:[(0,t.jsxs)("div",{className:"arch-title mb-16 text-center",children:[(0,t.jsx)("div",{className:"mb-3 text-xs uppercase tracking-[0.3em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:"How It Works"}),(0,t.jsx)("h2",{style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)",fontSize:"clamp(1.75rem, 4vw, 3rem)"},children:"Local Agent, Global Reach"}),(0,t.jsx)("p",{className:"mt-2 max-w-2xl mx-auto",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",fontSize:"0.85rem"},children:"Your agent runs on your machine with full access to your tools. Alook connects it to email, dashboards, and the outside world."})]}),(0,t.jsxs)("div",{ref:s,className:`arch-demo-container relative w-full max-w-5xl mx-auto h-130 lg:h-120 transition-opacity duration-300 ${o?"opacity-0":"opacity-100"}`,children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-[60%] h-[88%] z-10 hidden md:block",children:(0,t.jsx)(ry,{title:"Alook Desktop",className:"h-full shadow-[0_28px_70px_rgba(0,0,0,0.14),0_14px_32px_rgba(0,0,0,0.1)]",children:(0,t.jsx)(rP,{state:c,config:rL})})}),(0,t.jsxs)("div",{className:"absolute top-[25%] left-[40%] right-0 h-[75%] z-20 hidden md:flex gap-3",children:[(0,t.jsx)("div",{className:"w-45 shrink-0 h-full hidden lg:block",children:(0,t.jsxs)("div",{className:"h-full rounded-[1.5rem] border-[3px] border-neutral-700 bg-background shadow-[0_28px_70px_rgba(0,0,0,0.18),0_14px_32px_rgba(0,0,0,0.12)] overflow-hidden flex flex-col dark",children:[(0,t.jsx)("div",{className:"flex justify-center pt-1 shrink-0",children:(0,t.jsx)("div",{className:"px-2 py-px bg-neutral-800 rounded-full flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-[8px] text-neutral-400",children:"Alook Mobile"})})}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(rO,{state:c,config:rL})}),(0,t.jsx)("div",{className:"flex justify-center py-1 shrink-0",children:(0,t.jsx)("div",{className:"w-12 h-1 bg-muted-foreground/30 rounded-full"})})]})}),(0,t.jsx)("div",{className:"flex-1 min-w-0 h-full",children:(0,t.jsx)(ry,{title:"Your Machine",className:"h-full shadow-[0_28px_70px_rgba(0,0,0,0.18),0_14px_32px_rgba(0,0,0,0.12)]",children:(0,t.jsx)(rR,{lines:rB,visibleCount:d})})})]}),(0,t.jsx)("div",{className:"md:hidden flex justify-center h-full",children:(0,t.jsxs)("div",{className:"w-65 h-full rounded-[2rem] border-[3px] border-neutral-700 bg-background shadow-lg overflow-hidden flex flex-col dark",children:[(0,t.jsx)("div",{className:"flex justify-center pt-2 shrink-0",children:(0,t.jsx)("div",{className:"px-4 py-1 bg-neutral-800 rounded-full flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-[11px] text-neutral-400 leading-none",children:"Alook Mobile"})})}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(rO,{state:c,config:rL})}),(0,t.jsx)("div",{className:"flex justify-center py-1 shrink-0",children:(0,t.jsx)("div",{className:"w-16 h-1 bg-muted-foreground/30 rounded-full"})})]})})]})]})}function rV({isLoggedIn:e}){return(0,t.jsx)("nav",{className:"marketing-nav fixed top-0 right-0 left-0 z-50 invisible opacity-0",style:{backgroundColor:"var(--landing-bg-translucent)",backdropFilter:"blur(8px)",borderBottom:"1px solid var(--landing-border)"},children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-5xl items-center justify-between px-6 py-2.5",children:[(0,t.jsxs)(rs.default,{href:"/",className:"flex items-center gap-1",children:[(0,t.jsx)(ro.default,{src:"/alook.svg",alt:"Alook",width:22,height:22}),(0,t.jsx)("span",{className:"text-lg tracking-tight",style:{fontFamily:"var(--font-brand)",color:"var(--landing-text)",fontWeight:700},children:"Alook"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(rs.default,{href:"/templates",className:"hidden sm:block px-3 py-1.5 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text)"},children:"Templates"}),(0,t.jsx)(rs.default,{href:"/blog",className:"hidden sm:block px-3 py-1.5 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text)"},children:"Blog"}),(0,t.jsx)("a",{href:"https://github.com/alookai/alook",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1.5 transition-opacity duration-150 hover:opacity-70","aria-label":"GitHub",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"var(--landing-text)",children:(0,t.jsx)("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}),(0,t.jsx)("a",{href:"https://discord.alook.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1.5 transition-opacity duration-150 hover:opacity-70","aria-label":"Discord",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"var(--landing-text)",children:(0,t.jsx)("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z"})})}),(0,t.jsx)("a",{href:"https://x.com/alook_ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1.5 transition-opacity duration-150 hover:opacity-70","aria-label":"Follow us on X",children:(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"var(--landing-text)",children:(0,t.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),e?(0,t.jsxs)(rs.default,{href:"/workspaces?auto",className:"inline-flex items-center gap-1.5 px-4 py-1.5 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text)",border:"1px solid var(--landing-text)"},children:["App",(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]}):(0,t.jsx)("a",{href:"/sign-in",className:"inline-flex items-center gap-1.5 px-4 py-1.5 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70",style:{fontFamily:"var(--font-mono)",color:"var(--landing-bg)",backgroundColor:"var(--landing-text)"},children:"Get Started"})]})]})})}a.default.registerPlugin(t4);let rX=[{href:"/templates",label:"Templates"},{href:"/blog",label:"Blog"},{href:"https://github.com/alookai/alook",label:"GitHub",external:!0},{href:"https://discord.alook.ai",label:"Discord",external:!0},{href:"https://x.com/alook_ai",label:"X",external:!0},{href:"/privacy",label:"Privacy"}];function rG(){let e=(0,r.useRef)(null);(0,i.useGSAP)(()=>{a.default.from(e.current,{y:20,opacity:0,duration:.6,ease:"power2.out",scrollTrigger:{trigger:e.current,start:"top 90%",toggleActions:"play none none none"}})},{scope:e});let n={fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.15em"};return(0,t.jsx)("footer",{ref:e,className:"px-6 py-12",style:{backgroundColor:"var(--landing-surface)",borderTop:"1px solid var(--landing-border)"},children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-5xl flex-col items-center justify-between gap-6 md:flex-row",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(ro.default,{src:"/alook.svg",alt:"Alook",width:20,height:20}),(0,t.jsx)("span",{className:"text-lg tracking-tight",style:{fontFamily:"var(--font-brand)",color:"var(--landing-text)",fontWeight:700},children:"Alook"})]}),(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-[0.2em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:"Your Personal Company"})]}),(0,t.jsx)("nav",{className:"flex items-center gap-5","aria-label":"Footer navigation",children:rX.map(e=>e.external?(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"transition-opacity hover:opacity-70",style:n,children:e.label},e.label):(0,t.jsx)(rs.default,{href:e.href,className:"transition-opacity hover:opacity-70",style:n,children:e.label},e.label))}),(0,t.jsx)("div",{className:"flex items-center gap-6",children:(0,t.jsxs)("span",{className:"text-[10px] uppercase tracking-[0.2em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",opacity:.5},children:["© ",new Date().getFullYear()," Alook AI"]})})]})})}var rU=e.i(855372);a.default.registerPlugin(t4);let rq=[{name:"Claude Code",provider:"claude",detail:"Anthropic's CLI agent"},{name:"Codex",provider:"codex",detail:"OpenAI's coding agent"},{name:"OpenCode",provider:"opencode",detail:"Open-source coding agent"},{name:"Cursor",provider:"cursor",detail:"AI-powered code editor",comingSoon:!0},{name:"Hermes",provider:"hermes",detail:"Autonomous coding agent",comingSoon:!0},{name:"OpenClaw",provider:"openclaw",detail:"Open-source AI agent",comingSoon:!0}];function r$({agent:e}){let r=e.comingSoon;return(0,t.jsx)("div",{className:"byoa-card crt-panel-outer",style:{opacity:r?.55:1},children:(0,t.jsx)("div",{className:"crt-panel-inner px-5 py-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-center rounded",style:{opacity:r?.45:.85},children:(0,t.jsx)(rU.ProviderLogo,{provider:e.provider,className:"h-5 w-5 text-white"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("div",{className:"text-sm font-medium",style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",textShadow:r?"none":"0 0 6px oklch(0.75 0.18 80 / 30%)",opacity:r?.5:1},children:e.name}),r&&(0,t.jsx)("span",{className:"text-[9px] uppercase tracking-[0.15em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-phosphor)",opacity:.4},children:"Soon"}),!r&&(0,t.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full",style:{backgroundColor:"var(--landing-phosphor)",boxShadow:"0 0 6px oklch(0.75 0.18 80 / 50%)"}})]}),(0,t.jsx)("div",{className:"mt-0.5 text-[11px] leading-relaxed",style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",textShadow:r?"none":"0 0 6px oklch(0.75 0.18 80 / 30%)",opacity:r?.35:.55},children:e.detail})]})]})})})}function rK(){let e=(0,r.useRef)(null);return(0,i.useGSAP)(()=>{a.default.from(".byoa-title",{y:30,opacity:0,duration:.6,scrollTrigger:{trigger:e.current,start:"top 75%",toggleActions:"play none none none"}}),a.default.from(".byoa-card",{y:30,opacity:0,duration:.5,stagger:.1,scrollTrigger:{trigger:".byoa-grid",start:"top 80%",toggleActions:"play none none none"}})},{scope:e}),(0,t.jsxs)("section",{ref:e,className:"relative px-6 py-24 lg:py-32",style:{backgroundColor:"var(--landing-bg)"},children:[(0,t.jsxs)("div",{className:"byoa-title mx-auto mb-12 max-w-4xl text-center lg:mb-16",children:[(0,t.jsx)("div",{className:"mb-3 text-xs uppercase tracking-[0.3em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:"Agent Agnostic"}),(0,t.jsx)("h2",{style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)",fontSize:"clamp(1.75rem, 4vw, 3rem)"},children:"Bring Your Own Agent"}),(0,t.jsx)("p",{className:"mx-auto mt-2 max-w-lg",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",fontSize:"0.85rem"},children:"Alook is the orchestration layer. Pick the agents you trust — we give them roles, inboxes, and an always-on runtime."})]}),(0,t.jsx)("div",{className:"byoa-grid mx-auto grid max-w-3xl grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:rq.map(e=>(0,t.jsx)(r$,{agent:e},e.name))})]})}var rZ=e.i(419412);let rJ=(0,rZ.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),rQ=(0,rZ.default)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]),r0=(0,rZ.default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),r1=(0,rZ.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]),r2=(0,rZ.default)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);function r3({script:e}){let{visibleCount:n,isResetting:a,containerRef:i,isStepVisible:o}=rI({steps:e.timeline,holdAfterComplete:3e3}),s=(0,r.useMemo)(()=>e.derive(o),[n]),l=(0,r.useMemo)(()=>({agents:e.agents}),[e.agents]);return(0,t.jsx)("div",{ref:i,className:`h-full transition-opacity duration-300 ${a?"opacity-0":"opacity-100"}`,children:(0,t.jsx)(rP,{state:s,config:l})})}let r5={name:"Planner",email:"planner@alook.ai",config:{shape:"hexagon",eye:"dots",nose:"dash",bg:5}},r4={name:"Coder",email:"coder@alook.ai",config:{shape:"task",eye:"happy",nose:"dot",bg:0}},r7={name:"Marketer",email:"marketer@alook.ai",config:{shape:"mail",eye:"dots",nose:"smile",bg:3}},r8=[{type:"email-in",subject:"What's your pricing for a 50-person team?",address:"sarah@acmecorp.com"},{type:"message",text:"I remember this person. AcmeCorp, Series A — asked about API access on Discord 2 weeks ago."},{type:"email-out",subject:"Does our API support bulk user import? Sarah needs this for 50 seats.",address:"coder@alook.ai"},{type:"email-in",subject:"Re: Yes, /api/users/bulk supports CSV import up to 500 users.",address:"coder@alook.ai"},{type:"message",text:"Got confirmation. Sending personalized reply with accurate info."},{type:"email-out",subject:"Re: Pricing — Team plan $29/seat with API access",address:"sarah@acmecorp.com"}],r6=[{type:"email-in",subject:"Does our API support bulk user import? Sarah needs this for 50 seats.",address:"sales@alook.ai"},{type:"message",markdown:"Yes, <code>/api/users/bulk</code> supports CSV import up to 500 users. Shipped last week."},{type:"email-out",subject:"Re: Yes, /api/users/bulk supports CSV import up to 500 users.",address:"sales@alook.ai"}],r9=[{type:"email-in",subject:"Weekly Briefing — Mon 8:00 AM",address:"calendar@alook.ai"},{type:"message",text:"Collecting updates from the team..."},{type:"email-out",subject:"What shipped this week? Any blockers?",address:"coder@alook.ai"},{type:"email-in",subject:"Shipped calendar v2, 3 bug fixes. Blocker: OAuth refresh in staging.",address:"coder@alook.ai"},{type:"email-out",subject:"Marketing status update?",address:"marketer@alook.ai"},{type:"email-in",subject:"Blog post live, 2 social campaigns running. Launch copy 80% done.",address:"marketer@alook.ai"},{type:"message",markdown:`<strong>Weekly Briefing — May 19</strong><br/><span style="display:inline-block;margin:4px 0"><span style="font-size:18px;font-weight:600">12</span> <span style="font-size:11px;opacity:0.6">Completed</span> \xb7 <span style="font-size:18px;font-weight:600;color:#ca8a04">1</span> <span style="font-size:11px;opacity:0.6">Blocker</span> \xb7 <span style="font-size:18px;font-weight:600">5</span> <span style="font-size:11px;opacity:0.6">This Week</span></span><br/>🔴 OAuth token refresh failing in staging`},{type:"email-out",subject:"Your Monday Briefing — May 19",address:"owner@company.com"}],ne=[{type:"email-in",subject:"What shipped this week? Any blockers?",address:"planner@alook.ai"},{type:"message",text:"Shipped calendar v2, 3 bug fixes. Blocker: OAuth refresh failing in staging."},{type:"email-out",subject:"Shipped calendar v2, 3 bug fixes. Blocker: OAuth refresh in staging.",address:"planner@alook.ai"}],nt=[{type:"email-in",subject:"Marketing status update?",address:"planner@alook.ai"},{type:"message",text:"Blog post live, 2 social campaigns running. Launch copy 80% done."},{type:"email-out",subject:"Blog post live, 2 social campaigns running. Launch copy 80% done.",address:"planner@alook.ai"}],nr=[{type:"email-in",subject:"Daily Store Check — 7:00 AM",address:"calendar@alook.ai"},{type:"message",markdown:"Checking inventory, traffic, sales...<br/>✓ Check Inventory Levels<br/>✓ Pull Yesterday's Traffic &amp; Sales<br/>✓ Spot Anomalies"},{type:"message",text:'"Classic Tee" almost out of stock (3 left). Emailing Marketer to pause that ad.'},{type:"email-out",subject:'Pause "Classic Tee" Instagram ad — only 3 left in stock',address:"marketer@alook.ai"},{type:"email-in",subject:"Re: Paused. Switching budget to Hoodie campaign.",address:"marketer@alook.ai"},{type:"email-out",subject:"Daily Store Report — May 23",address:"owner@company.com"}],nn=[{type:"email-in",subject:'Pause "Classic Tee" Instagram ad — only 3 left in stock',address:"ops@alook.ai"},{type:"message",text:"Paused. Switching budget to the Hoodie campaign instead."},{type:"email-out",subject:"Re: Paused. Switching budget to Hoodie campaign.",address:"ops@alook.ai"}],na=[{type:"email-in",subject:"Login page crashes on Safari",address:"user@company.com"},{type:"message",text:"Reproduced it — WebKit flex gap bug in Safari 14. Writing fix plan and emailing Coder."},{type:"email-out",subject:"Replace flex gap with margin-based spacing in login page.",address:"coder@alook.ai"},{type:"email-in",subject:"Re: Fixed. PR #142 ready for review.",address:"coder@alook.ai"},{type:"email-in",subject:"Re: All tests pass. Approved.",address:"reviewer@alook.ai"},{type:"email-out",subject:"Re: Login page crashes on Safari — Fixed in PR #142",address:"user@company.com"}],ni=[{type:"email-in",subject:"Replace flex gap with margin-based spacing in login page.",address:"planner@alook.ai"},{type:"message",text:"Fixed. PR opened. Emailing Reviewer."},{type:"email-out",subject:"PR #142 ready. Safari flex gap fix.",address:"reviewer@alook.ai"},{type:"email-out",subject:"Re: Fixed. PR #142 ready for review.",address:"planner@alook.ai"}],no=[{type:"email-in",subject:"PR #142 ready. Safari flex gap fix.",address:"coder@alook.ai"},{type:"message",text:"All tests pass. Approved."},{type:"email-out",subject:"Re: All tests pass. Approved.",address:"planner@alook.ai"}],ns=[{type:"user-message",text:"Post something about today's release"},{type:"message",text:"I need to know what shipped today. Emailing Coder."},{type:"email-out",subject:"What did we ship today? I need to write a post.",address:"coder@alook.ai"},{type:"email-in",subject:"Re: Shipped calendar recurring events, email forwarding, and 3 bug fixes.",address:"coder@alook.ai"},{type:"message",markdown:'Got it. Drafting and publishing now.<br/><br/>✓ Posted to X: <em>"Just shipped: recurring calendar events, email forwarding, and squashed 3 bugs. Your AI team never sleeps."</em>'}],nl=[{type:"email-in",subject:"What did we ship today? I need to write a post.",address:"marketer@alook.ai"},{type:"message",text:"Shipped calendar recurring events, email forwarding, and 3 bug fixes."},{type:"email-out",subject:"Re: Shipped calendar recurring events, email forwarding, and 3 bug fixes.",address:"marketer@alook.ai"}],nc=[{type:"user-message",text:"Fill this for me",attachment:"YC_Application_W27.pdf"},{type:"message",text:"I have most of this from memory. Let me check what I know..."},{type:"message",markdown:'<span style="font-size:10px;text-transform:uppercase;letter-spacing:0.05em;opacity:0.6">Recalled from memory</span><br/><span style="color:#10b981">✓</span> Company name, address, EIN<br/><span style="color:#10b981">✓</span> Founder name, email, background<br/><span style="color:#10b981">✓</span> Product description, tech stack<br/><span style="color:#10b981">✓</span> Revenue, team size, launch date'},{type:"message",markdown:'All <strong>31 fields</strong> filled from memory. No questions needed.<br/><br/><span style="display:inline-flex;align-items:center;gap:4px;background:var(--muted);border:1px solid var(--border);border-radius:6px;padding:4px 10px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14,2 14,8 20,8"/></svg><span style="font-size:13px;font-weight:500">YC_Application_W27_filled.pdf</span></span>'}];a.default.registerPlugin(t4);let nd=[{id:"lead-followup",title:"Lead auto follow-up",subtitle:"Personalized reply in minutes. Not hours.",icon:(0,t.jsx)(rQ,{className:"size-4"}),script:{agents:[{name:"Sales",email:"sales@alook.ai",config:{shape:"hexagon",eye:"dots",nose:"dash",bg:5}},r4],timeline:[{id:"email-in",duration:2e3},{id:"sales-typing",duration:1500},{id:"sales-msg",duration:1800},{id:"sales-email-out",duration:1800},{id:"switch-coder",duration:1e3},{id:"coder-email-in",duration:1500},{id:"coder-typing",duration:1200},{id:"coder-msg",duration:1500},{id:"coder-email-out",duration:1800},{id:"switch-sales",duration:1e3},{id:"sales-email-in-2",duration:1500},{id:"sales-msg-2",duration:1800},{id:"sales-email-out-2",duration:3e3}],derive(e){if(e(4)&&!e(9)){let t=0;return e(5)&&(t=1),e(7)&&(t=2),e(8)&&(t=3),{activeAgent:"coder",steps:r6,visibleCount:t,isTyping:e(6)&&!e(7),isWorking:e(5)&&!e(8)}}let t=0;return e(0)&&(t=1),e(2)&&(t=2),e(3)&&(t=3),e(10)&&(t=4),e(11)&&(t=5),e(12)&&(t=6),{activeAgent:"sales",steps:r8,visibleCount:t,isTyping:e(1)&&!e(2),isWorking:e(0)&&!e(12)}}}},{id:"weekly-brief",title:"Monday 8am briefing",subtitle:"Your week is planned before coffee.",icon:(0,t.jsx)(rJ,{className:"size-4"}),script:{agents:[r5,r4,r7],timeline:[{id:"trigger",duration:2e3},{id:"planner-typing",duration:1500},{id:"planner-msg",duration:1500},{id:"planner-email-out-coder",duration:1800},{id:"switch-coder",duration:1e3},{id:"coder-email-in",duration:1500},{id:"coder-typing",duration:1200},{id:"coder-msg",duration:1500},{id:"coder-email-out",duration:1800},{id:"switch-planner-1",duration:1e3},{id:"planner-email-in-coder",duration:1200},{id:"planner-email-out-marketer",duration:1500},{id:"switch-marketer",duration:1e3},{id:"marketer-email-in",duration:1500},{id:"marketer-typing",duration:1200},{id:"marketer-msg",duration:1500},{id:"marketer-email-out",duration:1800},{id:"switch-planner-2",duration:1e3},{id:"planner-email-in-marketer",duration:1200},{id:"planner-msg-2",duration:2500},{id:"planner-email-out-final",duration:3e3}],derive(e){let t=e(4)&&!e(9);if(e(12)&&!e(17)){let t=0;return e(13)&&(t=1),e(15)&&(t=2),e(16)&&(t=3),{activeAgent:"marketer",steps:nt,visibleCount:t,isTyping:e(14)&&!e(15),isWorking:e(13)&&!e(16)}}if(t){let t=0;return e(5)&&(t=1),e(7)&&(t=2),e(8)&&(t=3),{activeAgent:"coder",steps:ne,visibleCount:t,isTyping:e(6)&&!e(7),isWorking:e(5)&&!e(8)}}let r=0;return e(0)&&(r=1),e(2)&&(r=2),e(3)&&(r=3),e(10)&&(r=4),e(11)&&(r=5),e(18)&&(r=6),e(19)&&(r=7),e(20)&&(r=8),{activeAgent:"planner",steps:r9,visibleCount:r,isTyping:e(1)&&!e(2),isWorking:e(0)&&!e(20)}}}},{id:"store-ops",title:"Daily store operations",subtitle:"Your AI ops manager checks in every morning.",icon:(0,t.jsx)(r0,{className:"size-4"}),script:{agents:[{name:"Ops",email:"ops@alook.ai",config:{shape:"folder",eye:"lines",nose:"dash",bg:7}},r7],timeline:[{id:"trigger",duration:2e3},{id:"ops-typing",duration:1500},{id:"ops-msg",duration:2200},{id:"ops-msg-2",duration:1500},{id:"ops-email-out",duration:1800},{id:"switch-marketer",duration:1e3},{id:"marketer-email-in",duration:1500},{id:"marketer-typing",duration:1200},{id:"marketer-msg",duration:1500},{id:"marketer-email-out",duration:1800},{id:"switch-ops",duration:1e3},{id:"ops-email-in",duration:1500},{id:"ops-final-email",duration:3e3}],derive(e){if(e(5)&&!e(10)){let t=0;return e(6)&&(t=1),e(8)&&(t=2),e(9)&&(t=3),{activeAgent:"marketer",steps:nn,visibleCount:t,isTyping:e(7)&&!e(8),isWorking:e(6)&&!e(9)}}let t=0;return e(0)&&(t=1),e(2)&&(t=2),e(3)&&(t=3),e(4)&&(t=4),e(11)&&(t=5),e(12)&&(t=6),{activeAgent:"ops",steps:nr,visibleCount:t,isTyping:e(1)&&!e(2),isWorking:e(0)&&!e(12)}}}},{id:"bug-to-pr",title:"Bug report → PR ready",subtitle:"Three agents turn a bug email into a merged fix.",icon:(0,t.jsx)(r1,{className:"size-4"}),script:{agents:[r5,r4,{name:"Reviewer",email:"reviewer@alook.ai",config:{shape:"circle",eye:"arches",nose:"smile",bg:8}}],timeline:[{id:"email-in",duration:2e3},{id:"planner-typing",duration:1500},{id:"planner-msg",duration:1800},{id:"planner-email-out",duration:1800},{id:"switch-coder",duration:1e3},{id:"coder-email-in",duration:1500},{id:"coder-typing",duration:1200},{id:"coder-msg",duration:1500},{id:"coder-email-out-1",duration:1200},{id:"coder-email-out-2",duration:1500},{id:"switch-reviewer",duration:1e3},{id:"reviewer-email-in",duration:1500},{id:"reviewer-typing",duration:1200},{id:"reviewer-msg",duration:1500},{id:"reviewer-email-out",duration:1800},{id:"switch-planner",duration:1e3},{id:"planner-email-in-1",duration:1200},{id:"planner-email-in-2",duration:1200},{id:"planner-email-out-2",duration:3e3}],derive(e){let t=e(4)&&!e(10);if(e(10)&&!e(15)){let t=0;return e(11)&&(t=1),e(13)&&(t=2),e(14)&&(t=3),{activeAgent:"reviewer",steps:no,visibleCount:t,isTyping:e(12)&&!e(13),isWorking:e(11)&&!e(14)}}if(t){let t=0;return e(5)&&(t=1),e(7)&&(t=2),e(8)&&(t=3),e(9)&&(t=4),{activeAgent:"coder",steps:ni,visibleCount:t,isTyping:e(6)&&!e(7),isWorking:e(5)&&!e(9)}}let r=0;return e(0)&&(r=1),e(2)&&(r=2),e(3)&&(r=3),e(16)&&(r=4),e(17)&&(r=5),e(18)&&(r=6),{activeAgent:"planner",steps:na,visibleCount:r,isTyping:e(1)&&!e(2),isWorking:e(0)&&!e(18)}}}},{id:"post-update",title:'"Post an update"',subtitle:"One sentence. Five minutes. Published.",icon:(0,t.jsx)(rN.MessageSquare,{className:"size-4"}),script:{agents:[r7,r4],timeline:[{id:"user-asks",duration:2e3},{id:"marketer-typing",duration:1500},{id:"marketer-msg",duration:1500},{id:"marketer-email-out",duration:1800},{id:"switch-coder",duration:1e3},{id:"coder-email-in",duration:1500},{id:"coder-typing",duration:1200},{id:"coder-msg",duration:1500},{id:"coder-email-out",duration:1800},{id:"switch-marketer",duration:1e3},{id:"marketer-email-in",duration:1500},{id:"marketer-msg-2",duration:3e3}],derive(e){if(e(4)&&!e(9)){let t=0;return e(5)&&(t=1),e(7)&&(t=2),e(8)&&(t=3),{activeAgent:"coder",steps:nl,visibleCount:t,isTyping:e(6)&&!e(7),isWorking:e(5)&&!e(8)}}let t=0;return e(0)&&(t=1),e(2)&&(t=2),e(3)&&(t=3),e(10)&&(t=4),e(11)&&(t=5),{activeAgent:"marketer",steps:ns,visibleCount:t,isTyping:e(1)&&!e(2),isWorking:e(0)&&!e(11)}}}},{id:"fill-form",title:'"Fill this form"',subtitle:"It remembers everything. You just sign.",icon:(0,t.jsx)(r2,{className:"size-4"}),script:{agents:[{name:"Assistant",email:"assistant@alook.ai",config:{shape:"bulb",eye:"rings",nose:"oh",bg:11}}],timeline:[{id:"user-drops",duration:2e3},{id:"agent-typing",duration:1800},{id:"agent-msg-1",duration:2e3},{id:"agent-msg-2",duration:2500},{id:"agent-msg-3",duration:3e3}],derive(e){let t=0;return e(0)&&(t=1),e(2)&&(t=2),e(3)&&(t=3),e(4)&&(t=4),{activeAgent:"assistant",steps:nc,visibleCount:t,isTyping:e(1)&&!e(2),isWorking:e(0)&&!e(4)}}}}];function nu(){let e=(0,r.useRef)(null),[n,o]=(0,r.useState)(0),[s,l]=(0,r.useState)("left");return(0,i.useGSAP)(()=>{a.default.from(".usecase-title",{y:30,opacity:0,duration:.6,scrollTrigger:{trigger:e.current,start:"top 75%",toggleActions:"play none none none"}}),a.default.from(".usecase-layout",{y:40,opacity:0,duration:.6,ease:"power2.out",scrollTrigger:{trigger:".usecase-layout",start:"top 85%",toggleActions:"play none none none"}})},{scope:e}),(0,t.jsxs)("section",{ref:e,className:"relative px-6 py-24 lg:py-32",style:{backgroundColor:"var(--landing-bg)"},children:[(0,t.jsxs)("div",{className:"usecase-title mx-auto mb-14 max-w-4xl text-center lg:mb-20",children:[(0,t.jsx)("div",{className:"mb-3 text-xs uppercase tracking-[0.3em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:"Use Cases"}),(0,t.jsx)("h2",{style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)",fontSize:"clamp(1.75rem, 4vw, 3rem)"},children:"See It In Action"}),(0,t.jsx)("p",{className:"mx-auto mt-3 max-w-xl",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",fontSize:"0.85rem"},children:"Real scenarios running on real agents. Every day."})]}),(0,t.jsxs)("div",{className:"usecase-layout mx-auto flex max-w-5xl flex-col gap-6 md:flex-row md:items-start md:gap-8",children:[(0,t.jsx)("div",{className:"flex flex-row gap-2 overflow-x-auto thin-scrollbar pb-2 md:w-72 md:shrink-0 md:flex-col md:overflow-x-visible md:pb-0",children:nd.map((e,r)=>(0,t.jsxs)("button",{type:"button",onClick:()=>{l(r>n?"left":"right"),o(r)},className:`flex items-start gap-3 rounded-xl px-4 py-3 text-left transition-all duration-200 cursor-pointer shrink-0 md:shrink md:w-full ${r===n?"ring-1 ring-[var(--landing-border)] shadow-sm":"hover:bg-[oklch(0.88_0.02_75)] opacity-70 hover:opacity-100"}`,style:r===n?{backgroundColor:"var(--landing-surface)"}:void 0,children:[(0,t.jsx)("span",{className:"mt-0.5 shrink-0",style:{color:r===n?"var(--landing-text)":"var(--landing-text-muted)"},children:e.icon}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-sm font-medium leading-snug whitespace-nowrap lg:whitespace-normal",style:{fontFamily:"var(--font-crt)",color:r===n?"var(--landing-text)":"var(--landing-text-muted)"},children:e.title}),r===n&&(0,t.jsx)("div",{className:"mt-0.5 text-[11px] leading-snug hidden md:block",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:e.subtitle})]})]},e.id))}),(0,t.jsx)("div",{className:"flex-1 min-w-0 overflow-hidden rounded-2xl",style:{perspective:"1200px"},children:(0,t.jsx)("div",{className:`overflow-hidden ${"left"===s?"usecase-demo-slide-left":"usecase-demo-slide-right"}`,children:(0,t.jsx)(ry,{title:`alook — ${nd[n].title}`,className:"shadow-[0_4px_24px_oklch(0.15_0.01_55/10%)]",children:(0,t.jsx)("div",{className:"h-120 overflow-hidden",children:(0,t.jsx)(r3,{script:nd[n].script})})})},n)})]})]})}a.default.registerPlugin(t4);let np=["Your Machine, Your Rules","No Vendor Lock-In","One Command to Start"];function nm(){let e=(0,r.useRef)(null);return(0,i.useGSAP)(()=>{a.default.from(".selfhost-title",{y:30,opacity:0,duration:.6,scrollTrigger:{trigger:e.current,start:"top 75%",toggleActions:"play none none none"}}),a.default.from(".selfhost-point",{y:25,opacity:0,duration:.5,stagger:.12,scrollTrigger:{trigger:".selfhost-grid",start:"top 80%",toggleActions:"play none none none"}})},{scope:e}),(0,t.jsxs)("section",{ref:e,className:"relative px-6 py-24 lg:py-32",style:{backgroundColor:"var(--landing-crt-bg)"},children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:"repeating-linear-gradient(to bottom, transparent 0px, transparent 1px, oklch(0 0 0 / 4%) 1px, oklch(0 0 0 / 4%) 2px)",backgroundSize:"100% 2px"}}),(0,t.jsxs)("div",{className:"selfhost-title relative mx-auto mb-12 max-w-4xl text-center lg:mb-16",children:[(0,t.jsx)("div",{className:"mb-3 text-xs uppercase tracking-[0.3em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-phosphor)",opacity:.6},children:"Open Source & Self-Hosted"}),(0,t.jsx)("h2",{style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",fontSize:"clamp(1.75rem, 4vw, 3rem)",textShadow:"0 0 12px oklch(0.75 0.18 80 / 30%)"},children:"Own Your Infrastructure"}),(0,t.jsx)("p",{className:"mx-auto mt-3 max-w-xl",style:{fontFamily:"var(--font-mono)",color:"var(--landing-phosphor)",fontSize:"0.85rem",opacity:.65},children:"Alook is fully open source. Self-host the entire platform, keep your data private, and run your AI company on hardware you control."})]}),(0,t.jsx)("div",{className:"selfhost-grid relative mx-auto flex max-w-3xl flex-wrap items-center justify-center gap-x-8 gap-y-3",children:np.map(e=>(0,t.jsx)("span",{className:"selfhost-point text-sm",style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",textShadow:"0 0 6px oklch(0.75 0.18 80 / 25%)"},children:e},e))}),(0,t.jsx)("div",{className:"relative mx-auto mt-10 max-w-md",children:(0,t.jsx)("div",{className:"rounded-lg border px-5 py-4",style:{borderColor:"oklch(0.75 0.18 80 / 20%)",backgroundColor:"oklch(0.12 0.01 55)"},children:(0,t.jsx)("code",{className:"block text-center text-sm leading-relaxed",style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",textShadow:"0 0 6px oklch(0.75 0.18 80 / 30%)"},children:"$ npx @alook/app onboard"})})}),(0,t.jsx)("div",{className:"relative mx-auto mt-8 flex justify-center",children:(0,t.jsx)("a",{href:"/sign-in",className:"inline-flex items-center gap-2 px-7 py-3 text-sm transition-all duration-200 hover:opacity-80",style:{fontFamily:"var(--font-mono)",color:"var(--landing-crt-bg)",backgroundColor:"var(--landing-phosphor)",letterSpacing:"0.12em",boxShadow:"0 0 20px oklch(0.75 0.18 80 / 30%)"},children:"START YOUR COMPANY"})})]})}let nf=(0,n.default)(()=>e.A(967422).then(e=>e.CloudCodeMonsterPet),{loadableGenerated:{modules:[928210]},ssr:!1});a.default.registerPlugin(i.useGSAP,t4),e.s(["HomePage",0,function({isLoggedIn:e}){let n=(0,r.useRef)(null),o=(0,ri.useHomePetSettings)();return(0,r.useEffect)(()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches&&a.default.globalTimeline.timeScale(20)},[]),(0,i.useGSAP)(()=>{t4.create({trigger:".hero-section",start:"bottom top",onEnterBack:()=>{a.default.to(".marketing-nav",{autoAlpha:0,duration:.3,ease:"power2.out"})},onLeave:()=>{a.default.to(".marketing-nav",{autoAlpha:1,duration:.3,ease:"power2.out"})}})},{scope:n}),(0,t.jsxs)("div",{ref:n,className:"landing relative flex-1 overflow-x-clip",style:{backgroundColor:"var(--landing-bg)"},children:[(0,t.jsx)(rV,{isLoggedIn:e}),(0,t.jsx)(ru,{isLoggedIn:e}),(0,t.jsx)(nu,{}),(0,t.jsx)(rm,{}),(0,t.jsx)(rK,{}),(0,t.jsx)(nm,{}),(0,t.jsx)(rH,{}),(0,t.jsx)(rG,{}),e&&o.enabled?(0,t.jsx)(nf,{boundaryRef:n}):null]})}],371836)}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,879486,384265,e=>{"use strict";e.i(811374);var t=e.i(511043),a=e.i(92615),i=e.i(298604),n=e.i(990966),s=e.i(372252),r=e.i(154680);let o=t.createContext(void 0);function d(e=!1){let a=t.useContext(o);if(void 0===a&&!e)throw Error((0,r.default)(16));return a}function l(e){return(0,a.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["CompositeRootContext",0,o,"useCompositeRootContext",0,d],384265),e.s(["useButton",0,function(e={}){let{disabled:a=!1,focusableWhenDisabled:r,tabIndex:o=0,native:c=!0,composite:u}=e,p=t.useRef(null),g=d(!0),m=u??void 0!==g,{props:h}=function(e){let{focusableWhenDisabled:a,disabled:i,composite:n=!1,tabIndex:s=0,isNativeButton:r}=e,o=n&&!1!==a,d=n&&!1===a;return{props:t.useMemo(()=>{let e={onKeyDown(e){i&&a&&"Tab"!==e.key&&e.preventDefault()}};return n||(e.tabIndex=s,!r&&i&&(e.tabIndex=a?s:-1)),(r&&(a||o)||!r&&i)&&(e["aria-disabled"]=i),r&&(!a||d)&&(e.disabled=i),e},[n,i,a,o,d,r,s])}}({focusableWhenDisabled:r,disabled:a,composite:m,tabIndex:o,isNativeButton:c}),f=t.useCallback(()=>{let e=p.current;l(e)&&m&&a&&void 0===h.disabled&&e.disabled&&(e.disabled=!1)},[a,h.disabled,m]);return(0,n.useIsoLayoutEffect)(f,[f]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:i,onKeyUp:n,onKeyDown:r,onPointerDown:o,...d}=e;return(0,s.mergeProps)({onClick(e){a?e.preventDefault():t?.(e)},onMouseDown(e){a||i?.(e)},onKeyDown(e){var i;if(a||((0,s.makeEventPreventable)(e),r?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,o=e.currentTarget,d=l(o),u=!c&&(i=o,!!(i?.tagName==="A"&&i?.href)),p=n&&(c?d:!u),g="Enter"===e.key,h=" "===e.key,f=o.getAttribute("role"),$=f?.startsWith("menuitem")||"option"===f||"gridcell"===f;if(n&&m&&h){if(e.defaultPrevented&&$)return;e.preventDefault(),u||c&&d?(o.click(),e.preventBaseUIHandler()):p&&(t?.(e),e.preventBaseUIHandler());return}p&&(!c&&(h||g)&&e.preventDefault(),!c&&g&&t?.(e))},onKeyUp(e){a||(((0,s.makeEventPreventable)(e),n?.(e),e.target===e.currentTarget&&c&&m&&l(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||c||m||" "!==e.key||t?.(e)))},onPointerDown(e){a?e.preventDefault():o?.(e)}},c?{type:"button"}:{role:"button"},h,d)},[a,h,m,c]),buttonRef:(0,i.useStableCallback)(e=>{p.current=e,f()})}}],879486)},294237,e=>{"use strict";var t=e.i(7284);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=t.clsx;e.s(["cva",0,(e,t)=>n=>{var s;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:r,defaultVariants:o}=t,d=Object.keys(r).map(e=>{let t=null==n?void 0:n[e],i=null==o?void 0:o[e];if(null===t)return null;let s=a(t)||a(i);return r[e][s]}),l=n&&Object.entries(n).reduce((e,t)=>{let[a,i]=t;return void 0===i||(e[a]=i),e},{});return i(e,d,null==t||null==(s=t.compoundVariants)?void 0:s.reduce((e,t)=>{let{class:a,className:i,...n}=t;return Object.entries(n).every(e=>{let[t,a]=e;return Array.isArray(a)?a.includes({...o,...l}[t]):({...o,...l})[t]===a})?[...e,a,i]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}])},186339,e=>{"use strict";var t=e.i(653772);e.i(811374);var a=e.i(511043),i=e.i(879486),n=e.i(695681);let s=a.forwardRef(function(e,t){let{render:a,className:s,disabled:r=!1,focusableWhenDisabled:o=!1,nativeButton:d=!0,style:l,...c}=e,{getButtonProps:u,buttonRef:p}=(0,i.useButton)({disabled:r,focusableWhenDisabled:o,native:d});return(0,n.useRenderElement)("button",e,{state:{disabled:r},ref:[t,p],props:[c,u]})});var r=e.i(294237),o=e.i(613349);let d=(0,r.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:a="default",size:i="default",...n}){return(0,t.jsx)(s,{"data-slot":"button",className:(0,o.cn)(d({variant:a,size:i,className:e})),...n})},"buttonVariants",0,d],186339)},126942,(e,t,a)=>{t.exports=e.r(871628)},222862,636557,e=>{"use strict";var t=e.i(811374);class a extends Error{status;details;constructor(e,t,a){super(e),this.name="ApiError",this.status=t,this.details=a}get isNetworkError(){return 0===this.status}get isRateLimit(){return 429===this.status}get isUnauthorized(){return 401===this.status}}function i(e,t){return"validation error"===e&&t?.length?function(e){let[t,...a]=e.split(":"),i=a.join(":").trim();if(!i)return e;let n=t.trim(),s=n.trim().replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()),r=i.replace(/^required$/i,"is required"),o=r.toLowerCase().replace(/[_-]+/g," "),d=n.toLowerCase().replace(/[_-]+/g," ");return d&&o.startsWith(`${d} `)&&(r=r.slice(n.length).trimStart()),s?`${s} ${r}`:r}(t[0]):e}async function n(e,t){let n;try{n=await fetch(""+e,{...t,credentials:"include",headers:{"Content-Type":"application/json",...t?.headers}})}catch(e){if(e instanceof TypeError)throw new a("Unable to connect — check your network",0);throw e}if(401===n.status)throw window.location.href="/sign-in",new a("Unauthorized",401);if(!n.ok){let e,t;try{let a=await n.json();e=a.error,t=a.details}catch{}if(429===n.status)throw new a("Please wait a moment before trying again",429);if(n.status>=500)throw new a(i(e,t)||"Something went wrong — please try again",n.status,t);throw new a(i(e,t)||"Something went wrong",n.status,t)}if(204!==n.status)return n.json()}function s(e,t){let a=new URLSearchParams({workspace_id:e,...t});return`?${a.toString()}`}e.s(["ApiError",0,a],636557),parseInt(t.default.env.NEXT_PUBLIC_MOCK_NETWORK_DELAY_MS||"300",10);let r=async(e,t,i,r,o)=>{let d;if(!r||0===r.length)return n(`/api/conversations/${e}/messages${s(i)}`,{method:"POST",body:JSON.stringify({content:t,...o?{metadata:o}:{}})});let l=new FormData;for(let e of(l.append("content",t),o&&l.append("metadata",JSON.stringify(o)),r))l.append("file",e);try{d=await fetch(`/api/conversations/${e}/messages${s(i)}`,{method:"POST",credentials:"include",body:l})}catch(e){if(e instanceof TypeError)throw new a("Unable to connect — check your network",0);throw e}if(401===d.status)throw window.location.href="/sign-in",new a("Unauthorized",401);if(!d.ok){let e,t;try{let a=await d.json();e=a.error,t=a.details}catch{}if(429===d.status)throw new a("Please wait a moment before trying again",429);if(d.status>=500)throw new a(e||"Something went wrong — please try again",d.status,t);throw new a(e||"Something went wrong",d.status,t)}return d.json()},o=async(e,t)=>{let a=new URLSearchParams({workspace_id:t}),i=await fetch(`/api/email/${e}/body?${a}`,{credentials:"include"});if(!i.ok)return{content:"(body not available)",isHtml:!1};let n=i.headers.get("Content-Type")??"";return{content:await i.text(),isHtml:n.includes("text/html")}},d=async(e,t)=>{let i=new FormData;i.append("file",e);let n=await fetch(`/api/email/upload${s(t)}`,{method:"POST",credentials:"include",body:i});if(!n.ok)throw new a(await n.text().catch(()=>"Upload failed"),n.status);return n.json()},l=async(e,t)=>{let i;if(!t.files||0===t.files.length)return n(`/api/issues${s(e)}`,{method:"POST",body:JSON.stringify({agent_id:t.agent_id,title:t.title,description:t.description})});let r=new FormData;for(let e of(t.agent_id&&r.append("agent_id",t.agent_id),r.append("title",t.title),r.append("description",t.description??""),t.files))r.append("file",e);try{i=await fetch(`/api/issues${s(e)}`,{method:"POST",credentials:"include",body:r})}catch(e){if(e instanceof TypeError)throw new a("Unable to connect — check your network",0);throw e}if(401===i.status)throw window.location.href="/sign-in",new a("Unauthorized",401);if(!i.ok){let e,t;try{let a=await i.json();e=a.error,t=a.details}catch{}if(429===i.status)throw new a("Please wait a moment before trying again",429);if(i.status>=500)throw new a(e||"Something went wrong — please try again",i.status,t);throw new a(e||"Something went wrong",i.status,t)}return i.json()},c=async(e,t)=>{let a=new URLSearchParams({workspace_id:t}),i=await fetch(`/api/artifacts/${e}/content?${a}`,{credentials:"include"});return i.ok?i.text():"(content not available)"};e.s(["acceptInvite",0,e=>n(`/api/invite/${e}`,{method:"POST"}),"addWhitelistEmail",0,(e,t,a)=>n(`/api/agents/${e}/whitelist${s(a)}`,{method:"POST",body:JSON.stringify({email:t})}),"approveMeeting",0,(e,t,a)=>n(`/api/agents/${e}/meetings/${t}/approve${s(a)}`,{method:"POST"}),"cancelActiveTask",0,(e,t)=>n(`/api/conversations/${e}/active-task${s(t)}`,{method:"DELETE"}),"chatInit",0,(e,t,a)=>n(`/api/agents/${e}/chat-init${s(t)}`,{method:"POST",body:JSON.stringify({...a?{channel:a}:{}})}),"checkFreshness",0,(e,t)=>{let a={};return e.conversationId&&(a.conversation_id=e.conversationId),e.agentId&&(a.agent_id=e.agentId),e.channel&&(a.channel=e.channel),n(`/api/conversations/check-fresh${s(t,a)}`)},"conversationInit",0,(e,t,a)=>{let i={};return a?.newestMessageId&&(i.newest_message_id=a.newestMessageId),a?.messageCount&&(i.message_count=String(a.messageCount)),n(`/api/conversations/${e}/init${s(t,i)}`)},"createAgent",0,(e,t)=>n(`/api/agents${s(t)}`,{method:"POST",body:JSON.stringify(e)}),"createAgentLink",0,(e,t)=>n(`/api/agent-links${s(t)}`,{method:"POST",body:JSON.stringify(e)}),"createCalendarEvent",0,(e,t)=>n(`/api/calendar${s(t)}`,{method:"POST",body:JSON.stringify(e)}),"createChannelApi",0,(e,t)=>n(`/api/channels${s(e)}`,{method:"POST",body:JSON.stringify({name:t})}),"createConversation",0,(e,t,a)=>n(`/api/conversations${s(t)}`,{method:"POST",body:JSON.stringify({agent_id:e,...a?{channel:a}:{}})}),"createEmailAccount",0,(e,t,a)=>n(`/api/agents/${e}/email-accounts${s(a)}`,{method:"POST",body:JSON.stringify(t)}),"createInvite",0,e=>n(`/api/workspaces/${e}/invites${s(e)}`,{method:"POST"}),"createIssue",0,l,"createMachineToken",0,(e,t)=>n(`/api/machine-tokens${t?s(t):""}`,{method:"POST",body:JSON.stringify({name:e||"default"})}),"createMeeting",0,(e,t,a)=>n(`/api/agents/${e}/meetings${s(t)}`,{method:"POST",body:JSON.stringify(a)}),"deleteAgent",0,(e,t)=>n(`/api/agents/${e}${s(t)}`,{method:"DELETE"}),"deleteAgentLink",0,(e,t)=>n(`/api/agent-links/${e}${s(t)}`,{method:"DELETE"}),"deleteCalendarEvent",0,(e,t,a)=>n(`/api/calendar/${e}${s(t)}`,{method:"DELETE",...a&&a.scope?{headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}:{}}),"deleteChannelApi",0,(e,t)=>n(`/api/channels/${e}${s(t)}`,{method:"DELETE"}),"deleteEmail",0,(e,t)=>n(`/api/email/${e}${s(t)}`,{method:"DELETE"}),"deleteEmailAccount",0,(e,t,a)=>n(`/api/agents/${e}/email-accounts/${t}${s(a)}`,{method:"DELETE"}),"deleteIssue",0,(e,t)=>n(`/api/issues/${t}${s(e)}`,{method:"DELETE"}),"deleteMachine",0,(e,t)=>n(`/api/runtimes/machine${s(t,{daemon_id:e})}`,{method:"DELETE"}),"deleteMeeting",0,(e,t,a)=>n(`/api/agents/${e}/meetings/${t}${s(a)}`,{method:"DELETE"}),"deleteWorkspace",0,(e,t)=>n(`/api/workspaces/${e}${s(e)}`,{method:"DELETE",body:JSON.stringify({confirm_name:t})}),"fetchLatestCliVersion",0,()=>n("/api/cli/latest-version"),"fetchModelOptions",0,()=>n("/api/config/model-options"),"flagMessage",0,(e,t)=>n(`/api/flags${s(e)}`,{method:"POST",body:JSON.stringify({messageId:t})}),"getActiveTask",0,(e,t)=>n(`/api/conversations/${e}/active-task${s(t)}`),"getAgentSkills",0,(e,t)=>n(`/api/agents/${e}/skills${s(t)}`),"getArtifactContent",0,c,"getCalendarEvent",0,(e,t)=>n(`/api/calendar/${e}${s(t)}`),"getEmail",0,(e,t)=>n(`/api/email/${e}${s(t)}`),"getEmailBody",0,o,"getEmailThread",0,(e,t)=>n(`/api/email/${e}/thread${s(t)}`),"getFlaggedCount",0,e=>n(`/api/flags/count${s(e)}`),"getInboxCount",0,(e,t)=>{let a={};return t?.types?.length&&(a.types=t.types.join(",")),n(`/api/inbox/count${s(e,a)}`)},"getInviteInfo",0,e=>n(`/api/invite/${e}`),"getIssue",0,(e,t)=>n(`/api/issues/${t}${s(e)}`),"getMachineTokenStatus",0,()=>n("/api/machine-tokens/status"),"getMemberMe",0,e=>n(`/api/members/me${s(e)}`),"getMinCliVersion",0,()=>n("/api/config/min-version"),"getTask",0,(e,t)=>n(`/api/tasks/${e}${s(t)}`),"getTaskMessages",0,(e,t,a)=>n(`/api/tasks/${e}/messages${s(t,a?{since:String(a)}:void 0)}`),"getTrace",0,(e,t)=>n(`/api/traces/${e}${s(t)}`),"getWorkspaceOverview",0,e=>n(`/api/workspaces/${e}/overview${s(e)}`),"grantAgentAccess",0,(e,t,a)=>n(`/api/agents/${t}/access${s(e)}`,{method:"POST",body:JSON.stringify({user_id:a})}),"listAgentAccess",0,(e,t)=>n(`/api/agents/${t}/access${s(e)}`),"listAgentActiveTaskCounts",0,e=>n(`/api/agents/active-task-counts${s(e)}`),"listAgentActivity",0,(e,t,a)=>{let i={};return a?.limit&&(i.limit=String(a.limit)),a?.before&&(i.before=a.before),a?.beforeId&&(i.before_id=a.beforeId),a?.status&&(i.status=a.status),a?.type&&(i.type=a.type),n(`/api/agents/${e}/activity${s(t,i)}`)},"listAgentLinks",0,e=>n(`/api/agent-links${s(e)}`),"listAgentPins",0,e=>n(`/api/agents/pins${s(e)}`),"listAgents",0,e=>n(`/api/agents${s(e)}`),"listArtifacts",0,(e,t)=>n(`/api/artifacts${s(t,{conversation_id:e})}`),"listCalendarEvents",0,(e,t)=>{let a={};return t?.agentId&&(a.agentId=t.agentId),t?.from&&(a.from=t.from),t?.to&&(a.to=t.to),n(`/api/calendar${s(e,a)}`)},"listChannels",0,e=>n(`/api/channels${s(e)}`),"listEmailAccounts",0,(e,t)=>n(`/api/agents/${e}/email-accounts${s(t)}`),"listEmails",0,(e,t,a,i)=>n(`/api/email${s(t,{agentId:e,...a?{folder:a}:{},...i?{address:i}:{}})}`),"listFlaggedItems",0,(e,t)=>{let a={};return t?.limit&&(a.limit=String(t.limit)),t?.before&&(a.before=t.before),n(`/api/flags${s(e,a)}`)},"listFlaggedMessageIds",0,(e,t)=>n(`/api/flags${s(e,{conversation_id:t,ids_only:"true"})}`),"listInboxItems",0,(e,t)=>{let a={};return t?.limit&&(a.limit=String(t.limit)),t?.before&&(a.before=t.before),t?.types?.length&&(a.types=t.types.join(",")),n(`/api/inbox${s(e,a)}`)},"listInvites",0,e=>n(`/api/workspaces/${e}/invites${s(e)}`),"listIssues",0,(e,t)=>{let a={};return t?.agentId&&(a.agentId=t.agentId),t?.status&&(a.status=t.status),t?.terminal!==void 0&&(a.terminal=String(t.terminal)),n(`/api/issues${s(e,a)}`)},"listMeetings",0,(e,t)=>n(`/api/agents/${e}/meetings${s(t)}`),"listMembers",0,e=>n(`/api/workspaces/${e}/members${s(e)}`),"listMessages",0,(e,t,a)=>{let i={};return a?.limit&&(i.limit=String(a.limit)),a?.before&&(i.before=a.before),a?.beforeId&&(i.before_id=a.beforeId),n(`/api/conversations/${e}/messages${s(t,i)}`)},"listMessagesAroundTask",0,(e,t,a)=>n(`/api/conversations/${e}/messages${s(t,{around_task:a})}`),"listPreviousConversations",0,(e,t,a)=>{let i={exclude:a.exclude,before:a.before};return a.channel&&(i.channel=a.channel),a.limit&&(i.limit=String(a.limit)),n(`/api/agents/${e}/conversations${s(t,i)}`)},"listRuntimes",0,e=>n(`/api/runtimes${s(e)}`),"listTraces",0,(e,t)=>{let a={};return t?.limit&&(a.limit=String(t.limit)),t?.before&&(a.before=t.before),t?.status&&(a.status=t.status),t?.multiAgent&&(a.multiAgent="true"),t?.agentId&&(a.agentId=t.agentId),t?.channel&&(a.channel=t.channel),n(`/api/traces${s(e,a)}`)},"listWhitelist",0,(e,t)=>n(`/api/agents/${e}/whitelist${s(t)}`),"listWorkspaceActiveTasks",0,e=>n(`/api/agents/active-tasks${s(e)}`),"listWorkspaces",0,()=>n("/api/workspaces"),"markAllInboxRead",0,e=>n(`/api/inbox/read-all${s(e)}`,{method:"POST"}),"markInboxRead",0,(e,t)=>n(`/api/inbox/read${s(t)}`,{method:"POST",body:JSON.stringify({conversationId:e})}),"pinAgent",0,(e,t)=>n(`/api/agents/${t}/pin${s(e)}`,{method:"POST"}),"removeMember",0,(e,t)=>n(`/api/workspaces/${e}/members/${t}${s(e)}`,{method:"DELETE"}),"removeWhitelistEmail",0,(e,t,a)=>n(`/api/agents/${e}/whitelist/${t}${s(a)}`,{method:"DELETE"}),"renameChannelApi",0,(e,t,a)=>n(`/api/channels/${e}${s(t)}`,{method:"PATCH",body:JSON.stringify({name:a})}),"reorderAgentPins",0,(e,t)=>n(`/api/agents/pins/reorder${s(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"reorderChannelsApi",0,(e,t)=>n(`/api/channels/reorder${s(e)}`,{method:"PUT",body:JSON.stringify({ordered_channel_ids:t})}),"reorderUnpinnedAgents",0,(e,t)=>n(`/api/agents/sidebar/reorder${s(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"requestWorkspaceBrowse",0,(e,t,a,i)=>n(`/api/agents/${e}/workspace/browse${s(t)}`,{method:"POST",body:JSON.stringify({request_type:a,path:i})}),"retryTask",0,(e,t)=>n(`/api/tasks/${e}/retry${s(t)}`,{method:"POST"}),"revokeAgentAccess",0,(e,t,a,i=!1)=>n(`/api/agents/${t}/access/${a}${s(e)}${i?"&remove_whitelist=true":""}`,{method:"DELETE"}),"revokeInvite",0,(e,t)=>n(`/api/workspaces/${e}/invites/${t}${s(e)}`,{method:"DELETE"}),"sendEmail",0,(e,t,a,i,r,o,d,l)=>n(`/api/email/send${s(r)}`,{method:"POST",body:JSON.stringify({agentId:e,to:t,subject:a,htmlBody:i,attachments:o,...d,customAccountId:l})}),"sendMessage",0,r,"stopMeeting",0,(e,t,a)=>n(`/api/agents/${e}/meetings/${t}/stop${s(a)}`,{method:"POST"}),"syncEmailAccount",0,(e,t,a)=>n(`/api/agents/${e}/email-accounts/${t}/sync${s(a)}`,{method:"POST"}),"triggerRuntimeRescan",0,(e,t)=>n(`/api/runtimes/${e}/rescan${s(t)}`,{method:"POST"}),"triggerRuntimeUpdate",0,(e,t)=>n(`/api/runtimes/${e}/update${s(t)}`,{method:"POST"}),"unflagMessage",0,(e,t)=>n(`/api/flags/${t}${s(e)}`,{method:"DELETE"}),"unpinAgent",0,(e,t)=>n(`/api/agents/${t}/pin${s(e)}`,{method:"DELETE"}),"updateAgent",0,(e,t,a)=>n(`/api/agents/${e}${s(a)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateAgentLink",0,(e,t,a)=>n(`/api/agent-links/${e}${s(a)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateCalendarEvent",0,(e,t,a)=>n(`/api/calendar/${e}${s(a)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateEmailStatus",0,(e,t,a)=>n(`/api/email/${e}${s(t)}`,{method:"PATCH",body:JSON.stringify({status:a})}),"updateIssue",0,(e,t,a)=>n(`/api/issues/${t}${s(e)}`,{method:"PATCH",body:JSON.stringify(a)}),"updateMemberMe",0,(e,t)=>n(`/api/members/me${s(e)}`,{method:"PATCH",body:JSON.stringify({global_instruction:t})}),"updateWorkspace",0,(e,t)=>n(`/api/workspaces/${e}${s(e)}`,{method:"PATCH",body:JSON.stringify(t)}),"uploadEmailAttachment",0,d],222862)},728886,e=>{"use strict";var t=e.i(653772),a=e.i(613349);e.s(["Skeleton",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,a.cn)("animate-pulse rounded-md bg-muted",e),...i})}])},29437,e=>{"use strict";var t=e.i(653772),a=e.i(511043),i=e.i(126942),n=e.i(516266),s=e.i(222862),r=e.i(205189),o=e.i(186339),d=e.i(728886);e.s(["default",0,function(){let{token:e}=(0,i.useParams)(),l=(0,i.useRouter)(),[c,u]=(0,a.useState)("loading"),[p,g]=(0,a.useState)(null),[m,h]=(0,a.useState)("");(0,a.useEffect)(()=>{e&&(0,s.getInviteInfo)(e).then(e=>{g(e),u("ready")}).catch(e=>{h(e instanceof Error?e.message:"Invalid or expired invite link"),u("error")})},[e]);let f=async()=>{if(e){u("accepting");try{let t=await (0,s.acceptInvite)(e);(0,r.trackInviteAccepted)({workspace_id:t.workspace_id??""}),u("done"),n.toast.success(`Joined ${p?.workspace_name??"workspace"}`),l.replace(`/w/${t.workspace_slug}/home`)}catch(e){h(e instanceof Error?e.message:"Failed to join workspace"),u("error")}}};return(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center p-6",children:(0,t.jsxs)("div",{className:"w-full max-w-sm space-y-6 text-center",children:["loading"===c&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(d.Skeleton,{className:"h-6 w-48 mx-auto"}),(0,t.jsx)(d.Skeleton,{className:"h-4 w-64 mx-auto"}),(0,t.jsx)(d.Skeleton,{className:"h-9 w-32 mx-auto"})]}),"ready"===c&&p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold",children:"You've been invited"}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[p.invited_by," invited you to join"]})]}),(0,t.jsxs)("div",{className:"rounded-md border border-border/50 px-4 py-3 text-left space-y-0.5",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:p.workspace_name}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Workspace"})]}),(0,t.jsx)(o.Button,{className:"w-full",onClick:f,children:"Join Workspace"})]}),"accepting"===c&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(d.Skeleton,{className:"h-6 w-48 mx-auto"}),(0,t.jsx)(d.Skeleton,{className:"h-4 w-64 mx-auto"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Joining workspace…"})]}),"error"===c&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold",children:"Invite unavailable"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:m})]}),(0,t.jsx)(o.Button,{variant:"outline",onClick:()=>l.replace("/workspaces"),children:"Go to workspaces"})]})]})})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,879486,384265,e=>{"use strict";e.i(811374);var t=e.i(511043),a=e.i(92615),i=e.i(298604),n=e.i(990966),s=e.i(372252),r=e.i(154680);let o=t.createContext(void 0);function d(e=!1){let a=t.useContext(o);if(void 0===a&&!e)throw Error((0,r.default)(16));return a}function l(e){return(0,a.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["CompositeRootContext",0,o,"useCompositeRootContext",0,d],384265),e.s(["useButton",0,function(e={}){let{disabled:a=!1,focusableWhenDisabled:r,tabIndex:o=0,native:c=!0,composite:u}=e,p=t.useRef(null),g=d(!0),m=u??void 0!==g,{props:h}=function(e){let{focusableWhenDisabled:a,disabled:i,composite:n=!1,tabIndex:s=0,isNativeButton:r}=e,o=n&&!1!==a,d=n&&!1===a;return{props:t.useMemo(()=>{let e={onKeyDown(e){i&&a&&"Tab"!==e.key&&e.preventDefault()}};return n||(e.tabIndex=s,!r&&i&&(e.tabIndex=a?s:-1)),(r&&(a||o)||!r&&i)&&(e["aria-disabled"]=i),r&&(!a||d)&&(e.disabled=i),e},[n,i,a,o,d,r,s])}}({focusableWhenDisabled:r,disabled:a,composite:m,tabIndex:o,isNativeButton:c}),f=t.useCallback(()=>{let e=p.current;l(e)&&m&&a&&void 0===h.disabled&&e.disabled&&(e.disabled=!1)},[a,h.disabled,m]);return(0,n.useIsoLayoutEffect)(f,[f]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:i,onKeyUp:n,onKeyDown:r,onPointerDown:o,...d}=e;return(0,s.mergeProps)({onClick(e){a?e.preventDefault():t?.(e)},onMouseDown(e){a||i?.(e)},onKeyDown(e){var i;if(a||((0,s.makeEventPreventable)(e),r?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,o=e.currentTarget,d=l(o),u=!c&&(i=o,!!(i?.tagName==="A"&&i?.href)),p=n&&(c?d:!u),g="Enter"===e.key,h=" "===e.key,f=o.getAttribute("role"),$=f?.startsWith("menuitem")||"option"===f||"gridcell"===f;if(n&&m&&h){if(e.defaultPrevented&&$)return;e.preventDefault(),u||c&&d?(o.click(),e.preventBaseUIHandler()):p&&(t?.(e),e.preventBaseUIHandler());return}p&&(!c&&(h||g)&&e.preventDefault(),!c&&g&&t?.(e))},onKeyUp(e){a||(((0,s.makeEventPreventable)(e),n?.(e),e.target===e.currentTarget&&c&&m&&l(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||c||m||" "!==e.key||t?.(e)))},onPointerDown(e){a?e.preventDefault():o?.(e)}},c?{type:"button"}:{role:"button"},h,d)},[a,h,m,c]),buttonRef:(0,i.useStableCallback)(e=>{p.current=e,f()})}}],879486)},294237,e=>{"use strict";var t=e.i(7284);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=t.clsx;e.s(["cva",0,(e,t)=>n=>{var s;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:r,defaultVariants:o}=t,d=Object.keys(r).map(e=>{let t=null==n?void 0:n[e],i=null==o?void 0:o[e];if(null===t)return null;let s=a(t)||a(i);return r[e][s]}),l=n&&Object.entries(n).reduce((e,t)=>{let[a,i]=t;return void 0===i||(e[a]=i),e},{});return i(e,d,null==t||null==(s=t.compoundVariants)?void 0:s.reduce((e,t)=>{let{class:a,className:i,...n}=t;return Object.entries(n).every(e=>{let[t,a]=e;return Array.isArray(a)?a.includes({...o,...l}[t]):({...o,...l})[t]===a})?[...e,a,i]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}])},186339,e=>{"use strict";var t=e.i(653772);e.i(811374);var a=e.i(511043),i=e.i(879486),n=e.i(695681);let s=a.forwardRef(function(e,t){let{render:a,className:s,disabled:r=!1,focusableWhenDisabled:o=!1,nativeButton:d=!0,style:l,...c}=e,{getButtonProps:u,buttonRef:p}=(0,i.useButton)({disabled:r,focusableWhenDisabled:o,native:d});return(0,n.useRenderElement)("button",e,{state:{disabled:r},ref:[t,p],props:[c,u]})});var r=e.i(294237),o=e.i(613349);let d=(0,r.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:a="default",size:i="default",...n}){return(0,t.jsx)(s,{"data-slot":"button",className:(0,o.cn)(d({variant:a,size:i,className:e})),...n})},"buttonVariants",0,d],186339)},126942,(e,t,a)=>{t.exports=e.r(871628)},222862,636557,e=>{"use strict";var t=e.i(811374);class a extends Error{status;details;constructor(e,t,a){super(e),this.name="ApiError",this.status=t,this.details=a}get isNetworkError(){return 0===this.status}get isRateLimit(){return 429===this.status}get isUnauthorized(){return 401===this.status}}function i(e,t){return"validation error"===e&&t?.length?function(e){let[t,...a]=e.split(":"),i=a.join(":").trim();if(!i)return e;let n=t.trim(),s=n.trim().replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()),r=i.replace(/^required$/i,"is required"),o=r.toLowerCase().replace(/[_-]+/g," "),d=n.toLowerCase().replace(/[_-]+/g," ");return d&&o.startsWith(`${d} `)&&(r=r.slice(n.length).trimStart()),s?`${s} ${r}`:r}(t[0]):e}async function n(e,t){let n;try{n=await fetch(""+e,{...t,credentials:"include",headers:{"Content-Type":"application/json",...t?.headers}})}catch(e){if(e instanceof TypeError)throw new a("Unable to connect — check your network",0);throw e}if(401===n.status)throw window.location.href="/sign-in",new a("Unauthorized",401);if(!n.ok){let e,t;try{let a=await n.json();e=a.error,t=a.details}catch{}if(429===n.status)throw new a("Please wait a moment before trying again",429);if(n.status>=500)throw new a(i(e,t)||"Something went wrong — please try again",n.status,t);throw new a(i(e,t)||"Something went wrong",n.status,t)}if(204!==n.status)return n.json()}function s(e,t){let a=new URLSearchParams({workspace_id:e,...t});return`?${a.toString()}`}e.s(["ApiError",0,a],636557),parseInt(t.default.env.NEXT_PUBLIC_MOCK_NETWORK_DELAY_MS||"300",10);let r=async(e,t,i,r,o)=>{let d;if(!r||0===r.length)return n(`/api/conversations/${e}/messages${s(i)}`,{method:"POST",body:JSON.stringify({content:t,...o?{metadata:o}:{}})});let l=new FormData;for(let e of(l.append("content",t),o&&l.append("metadata",JSON.stringify(o)),r))l.append("file",e);try{d=await fetch(`/api/conversations/${e}/messages${s(i)}`,{method:"POST",credentials:"include",body:l})}catch(e){if(e instanceof TypeError)throw new a("Unable to connect — check your network",0);throw e}if(401===d.status)throw window.location.href="/sign-in",new a("Unauthorized",401);if(!d.ok){let e,t;try{let a=await d.json();e=a.error,t=a.details}catch{}if(429===d.status)throw new a("Please wait a moment before trying again",429);if(d.status>=500)throw new a(e||"Something went wrong — please try again",d.status,t);throw new a(e||"Something went wrong",d.status,t)}return d.json()},o=async(e,t)=>{let a=new URLSearchParams({workspace_id:t}),i=await fetch(`/api/email/${e}/body?${a}`,{credentials:"include"});if(!i.ok)return{content:"(body not available)",isHtml:!1};let n=i.headers.get("Content-Type")??"";return{content:await i.text(),isHtml:n.includes("text/html")}},d=async(e,t)=>{let i=new FormData;i.append("file",e);let n=await fetch(`/api/email/upload${s(t)}`,{method:"POST",credentials:"include",body:i});if(!n.ok)throw new a(await n.text().catch(()=>"Upload failed"),n.status);return n.json()},l=async(e,t)=>{let i;if(!t.files||0===t.files.length)return n(`/api/issues${s(e)}`,{method:"POST",body:JSON.stringify({agent_id:t.agent_id,title:t.title,description:t.description})});let r=new FormData;for(let e of(t.agent_id&&r.append("agent_id",t.agent_id),r.append("title",t.title),r.append("description",t.description??""),t.files))r.append("file",e);try{i=await fetch(`/api/issues${s(e)}`,{method:"POST",credentials:"include",body:r})}catch(e){if(e instanceof TypeError)throw new a("Unable to connect — check your network",0);throw e}if(401===i.status)throw window.location.href="/sign-in",new a("Unauthorized",401);if(!i.ok){let e,t;try{let a=await i.json();e=a.error,t=a.details}catch{}if(429===i.status)throw new a("Please wait a moment before trying again",429);if(i.status>=500)throw new a(e||"Something went wrong — please try again",i.status,t);throw new a(e||"Something went wrong",i.status,t)}return i.json()},c=async(e,t)=>{let a=new URLSearchParams({workspace_id:t}),i=await fetch(`/api/artifacts/${e}/content?${a}`,{credentials:"include"});return i.ok?i.text():"(content not available)"};e.s(["acceptInvite",0,e=>n(`/api/invite/${e}`,{method:"POST"}),"addWhitelistEmail",0,(e,t,a)=>n(`/api/agents/${e}/whitelist${s(a)}`,{method:"POST",body:JSON.stringify({email:t})}),"approveMeeting",0,(e,t,a)=>n(`/api/agents/${e}/meetings/${t}/approve${s(a)}`,{method:"POST"}),"cancelActiveTask",0,(e,t)=>n(`/api/conversations/${e}/active-task${s(t)}`,{method:"DELETE"}),"chatInit",0,(e,t,a)=>n(`/api/agents/${e}/chat-init${s(t)}`,{method:"POST",body:JSON.stringify({...a?{channel:a}:{}})}),"checkFreshness",0,(e,t)=>{let a={};return e.conversationId&&(a.conversation_id=e.conversationId),e.agentId&&(a.agent_id=e.agentId),e.channel&&(a.channel=e.channel),n(`/api/conversations/check-fresh${s(t,a)}`)},"conversationInit",0,(e,t,a)=>{let i={};return a?.newestMessageId&&(i.newest_message_id=a.newestMessageId),a?.messageCount&&(i.message_count=String(a.messageCount)),n(`/api/conversations/${e}/init${s(t,i)}`)},"createAgent",0,(e,t)=>n(`/api/agents${s(t)}`,{method:"POST",body:JSON.stringify(e)}),"createAgentLink",0,(e,t)=>n(`/api/agent-links${s(t)}`,{method:"POST",body:JSON.stringify(e)}),"createCalendarEvent",0,(e,t)=>n(`/api/calendar${s(t)}`,{method:"POST",body:JSON.stringify(e)}),"createChannelApi",0,(e,t)=>n(`/api/channels${s(e)}`,{method:"POST",body:JSON.stringify({name:t})}),"createConversation",0,(e,t,a)=>n(`/api/conversations${s(t)}`,{method:"POST",body:JSON.stringify({agent_id:e,...a?{channel:a}:{}})}),"createEmailAccount",0,(e,t,a)=>n(`/api/agents/${e}/email-accounts${s(a)}`,{method:"POST",body:JSON.stringify(t)}),"createInvite",0,e=>n(`/api/workspaces/${e}/invites${s(e)}`,{method:"POST"}),"createIssue",0,l,"createMachineToken",0,(e,t)=>n(`/api/machine-tokens${t?s(t):""}`,{method:"POST",body:JSON.stringify({name:e||"default"})}),"createMeeting",0,(e,t,a)=>n(`/api/agents/${e}/meetings${s(t)}`,{method:"POST",body:JSON.stringify(a)}),"createThread",0,(e,t,a,i)=>n(`/api/conversations/${e}/threads${s(i)}`,{method:"POST",body:JSON.stringify({parent_message_id:t,content:a})}),"deleteAgent",0,(e,t)=>n(`/api/agents/${e}${s(t)}`,{method:"DELETE"}),"deleteAgentLink",0,(e,t)=>n(`/api/agent-links/${e}${s(t)}`,{method:"DELETE"}),"deleteCalendarEvent",0,(e,t,a)=>n(`/api/calendar/${e}${s(t)}`,{method:"DELETE",...a&&a.scope?{headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}:{}}),"deleteChannelApi",0,(e,t)=>n(`/api/channels/${e}${s(t)}`,{method:"DELETE"}),"deleteEmail",0,(e,t)=>n(`/api/email/${e}${s(t)}`,{method:"DELETE"}),"deleteEmailAccount",0,(e,t,a)=>n(`/api/agents/${e}/email-accounts/${t}${s(a)}`,{method:"DELETE"}),"deleteIssue",0,(e,t)=>n(`/api/issues/${t}${s(e)}`,{method:"DELETE"}),"deleteMachine",0,(e,t)=>n(`/api/runtimes/machine${s(t,{daemon_id:e})}`,{method:"DELETE"}),"deleteMeeting",0,(e,t,a)=>n(`/api/agents/${e}/meetings/${t}${s(a)}`,{method:"DELETE"}),"deleteWorkspace",0,(e,t)=>n(`/api/workspaces/${e}${s(e)}`,{method:"DELETE",body:JSON.stringify({confirm_name:t})}),"fetchLatestCliVersion",0,()=>n("/api/cli/latest-version"),"fetchModelOptions",0,()=>n("/api/config/model-options"),"flagMessage",0,(e,t)=>n(`/api/flags${s(e)}`,{method:"POST",body:JSON.stringify({messageId:t})}),"getActiveTask",0,(e,t)=>n(`/api/conversations/${e}/active-task${s(t)}`),"getAgentSkills",0,(e,t)=>n(`/api/agents/${e}/skills${s(t)}`),"getArtifactContent",0,c,"getCalendarEvent",0,(e,t)=>n(`/api/calendar/${e}${s(t)}`),"getEmail",0,(e,t)=>n(`/api/email/${e}${s(t)}`),"getEmailBody",0,o,"getEmailThread",0,(e,t)=>n(`/api/email/${e}/thread${s(t)}`),"getFlaggedCount",0,e=>n(`/api/flags/count${s(e)}`),"getInboxCount",0,(e,t)=>{let a={};return t?.types?.length&&(a.types=t.types.join(",")),n(`/api/inbox/count${s(e,a)}`)},"getInviteInfo",0,e=>n(`/api/invite/${e}`),"getIssue",0,(e,t)=>n(`/api/issues/${t}${s(e)}`),"getMachineTokenStatus",0,()=>n("/api/machine-tokens/status"),"getMemberMe",0,e=>n(`/api/members/me${s(e)}`),"getMinCliVersion",0,()=>n("/api/config/min-version"),"getTask",0,(e,t)=>n(`/api/tasks/${e}${s(t)}`),"getTaskMessages",0,(e,t,a)=>n(`/api/tasks/${e}/messages${s(t,a?{since:String(a)}:void 0)}`),"getThreadSummaries",0,(e,t)=>n(`/api/conversations/${e}/threads${s(t)}`),"getTrace",0,(e,t)=>n(`/api/traces/${e}${s(t)}`),"getWorkspaceOverview",0,e=>n(`/api/workspaces/${e}/overview${s(e)}`),"grantAgentAccess",0,(e,t,a)=>n(`/api/agents/${t}/access${s(e)}`,{method:"POST",body:JSON.stringify({user_id:a})}),"listAgentAccess",0,(e,t)=>n(`/api/agents/${t}/access${s(e)}`),"listAgentActiveTaskCounts",0,e=>n(`/api/agents/active-task-counts${s(e)}`),"listAgentActivity",0,(e,t,a)=>{let i={};return a?.limit&&(i.limit=String(a.limit)),a?.before&&(i.before=a.before),a?.beforeId&&(i.before_id=a.beforeId),a?.status&&(i.status=a.status),a?.type&&(i.type=a.type),n(`/api/agents/${e}/activity${s(t,i)}`)},"listAgentLinks",0,e=>n(`/api/agent-links${s(e)}`),"listAgentPins",0,e=>n(`/api/agents/pins${s(e)}`),"listAgents",0,e=>n(`/api/agents${s(e)}`),"listArtifacts",0,(e,t)=>n(`/api/artifacts${s(t,{conversation_id:e})}`),"listCalendarEvents",0,(e,t)=>{let a={};return t?.agentId&&(a.agentId=t.agentId),t?.from&&(a.from=t.from),t?.to&&(a.to=t.to),n(`/api/calendar${s(e,a)}`)},"listChannels",0,e=>n(`/api/channels${s(e)}`),"listEmailAccounts",0,(e,t)=>n(`/api/agents/${e}/email-accounts${s(t)}`),"listEmails",0,(e,t,a,i)=>n(`/api/email${s(t,{agentId:e,...a?{folder:a}:{},...i?{address:i}:{}})}`),"listFlaggedItems",0,(e,t)=>{let a={};return t?.limit&&(a.limit=String(t.limit)),t?.before&&(a.before=t.before),n(`/api/flags${s(e,a)}`)},"listFlaggedMessageIds",0,(e,t)=>n(`/api/flags${s(e,{conversation_id:t,ids_only:"true"})}`),"listInboxItems",0,(e,t)=>{let a={};return t?.limit&&(a.limit=String(t.limit)),t?.before&&(a.before=t.before),t?.types?.length&&(a.types=t.types.join(",")),n(`/api/inbox${s(e,a)}`)},"listInvites",0,e=>n(`/api/workspaces/${e}/invites${s(e)}`),"listIssues",0,(e,t)=>{let a={};return t?.agentId&&(a.agentId=t.agentId),t?.status&&(a.status=t.status),t?.terminal!==void 0&&(a.terminal=String(t.terminal)),n(`/api/issues${s(e,a)}`)},"listMeetings",0,(e,t)=>n(`/api/agents/${e}/meetings${s(t)}`),"listMembers",0,e=>n(`/api/workspaces/${e}/members${s(e)}`),"listMessages",0,(e,t,a)=>{let i={};return a?.limit&&(i.limit=String(a.limit)),a?.before&&(i.before=a.before),a?.beforeId&&(i.before_id=a.beforeId),n(`/api/conversations/${e}/messages${s(t,i)}`)},"listMessagesAroundTask",0,(e,t,a)=>n(`/api/conversations/${e}/messages${s(t,{around_task:a})}`),"listPreviousConversations",0,(e,t,a)=>{let i={exclude:a.exclude,before:a.before};return a.channel&&(i.channel=a.channel),a.limit&&(i.limit=String(a.limit)),n(`/api/agents/${e}/conversations${s(t,i)}`)},"listRuntimes",0,e=>n(`/api/runtimes${s(e)}`),"listTraces",0,(e,t)=>{let a={};return t?.limit&&(a.limit=String(t.limit)),t?.before&&(a.before=t.before),t?.status&&(a.status=t.status),t?.multiAgent&&(a.multiAgent="true"),t?.agentId&&(a.agentId=t.agentId),t?.channel&&(a.channel=t.channel),n(`/api/traces${s(e,a)}`)},"listWhitelist",0,(e,t)=>n(`/api/agents/${e}/whitelist${s(t)}`),"listWorkspaceActiveTasks",0,e=>n(`/api/agents/active-tasks${s(e)}`),"listWorkspaces",0,()=>n("/api/workspaces"),"markAllInboxRead",0,e=>n(`/api/inbox/read-all${s(e)}`,{method:"POST"}),"markInboxRead",0,(e,t)=>n(`/api/inbox/read${s(t)}`,{method:"POST",body:JSON.stringify({conversationId:e})}),"pinAgent",0,(e,t)=>n(`/api/agents/${t}/pin${s(e)}`,{method:"POST"}),"removeMember",0,(e,t)=>n(`/api/workspaces/${e}/members/${t}${s(e)}`,{method:"DELETE"}),"removeWhitelistEmail",0,(e,t,a)=>n(`/api/agents/${e}/whitelist/${t}${s(a)}`,{method:"DELETE"}),"renameChannelApi",0,(e,t,a)=>n(`/api/channels/${e}${s(t)}`,{method:"PATCH",body:JSON.stringify({name:a})}),"reorderAgentPins",0,(e,t)=>n(`/api/agents/pins/reorder${s(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"reorderChannelsApi",0,(e,t)=>n(`/api/channels/reorder${s(e)}`,{method:"PUT",body:JSON.stringify({ordered_channel_ids:t})}),"reorderUnpinnedAgents",0,(e,t)=>n(`/api/agents/sidebar/reorder${s(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"requestWorkspaceBrowse",0,(e,t,a,i)=>n(`/api/agents/${e}/workspace/browse${s(t)}`,{method:"POST",body:JSON.stringify({request_type:a,path:i})}),"retryTask",0,(e,t)=>n(`/api/tasks/${e}/retry${s(t)}`,{method:"POST"}),"revokeAgentAccess",0,(e,t,a,i=!1)=>n(`/api/agents/${t}/access/${a}${s(e)}${i?"&remove_whitelist=true":""}`,{method:"DELETE"}),"revokeInvite",0,(e,t)=>n(`/api/workspaces/${e}/invites/${t}${s(e)}`,{method:"DELETE"}),"sendEmail",0,(e,t,a,i,r,o,d,l)=>n(`/api/email/send${s(r)}`,{method:"POST",body:JSON.stringify({agentId:e,to:t,subject:a,htmlBody:i,attachments:o,...d,customAccountId:l})}),"sendMessage",0,r,"stopMeeting",0,(e,t,a)=>n(`/api/agents/${e}/meetings/${t}/stop${s(a)}`,{method:"POST"}),"syncEmailAccount",0,(e,t,a)=>n(`/api/agents/${e}/email-accounts/${t}/sync${s(a)}`,{method:"POST"}),"triggerRuntimeRescan",0,(e,t)=>n(`/api/runtimes/${e}/rescan${s(t)}`,{method:"POST"}),"triggerRuntimeUpdate",0,(e,t)=>n(`/api/runtimes/${e}/update${s(t)}`,{method:"POST"}),"unflagMessage",0,(e,t)=>n(`/api/flags/${t}${s(e)}`,{method:"DELETE"}),"unpinAgent",0,(e,t)=>n(`/api/agents/${t}/pin${s(e)}`,{method:"DELETE"}),"updateAgent",0,(e,t,a)=>n(`/api/agents/${e}${s(a)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateAgentLink",0,(e,t,a)=>n(`/api/agent-links/${e}${s(a)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateCalendarEvent",0,(e,t,a)=>n(`/api/calendar/${e}${s(a)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateEmailStatus",0,(e,t,a)=>n(`/api/email/${e}${s(t)}`,{method:"PATCH",body:JSON.stringify({status:a})}),"updateIssue",0,(e,t,a)=>n(`/api/issues/${t}${s(e)}`,{method:"PATCH",body:JSON.stringify(a)}),"updateMemberMe",0,(e,t)=>n(`/api/members/me${s(e)}`,{method:"PATCH",body:JSON.stringify({global_instruction:t})}),"updateWorkspace",0,(e,t)=>n(`/api/workspaces/${e}${s(e)}`,{method:"PATCH",body:JSON.stringify(t)}),"uploadEmailAttachment",0,d],222862)},728886,e=>{"use strict";var t=e.i(653772),a=e.i(613349);e.s(["Skeleton",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,a.cn)("animate-pulse rounded-md bg-muted",e),...i})}])},29437,e=>{"use strict";var t=e.i(653772),a=e.i(511043),i=e.i(126942),n=e.i(516266),s=e.i(222862),r=e.i(205189),o=e.i(186339),d=e.i(728886);e.s(["default",0,function(){let{token:e}=(0,i.useParams)(),l=(0,i.useRouter)(),[c,u]=(0,a.useState)("loading"),[p,g]=(0,a.useState)(null),[m,h]=(0,a.useState)("");(0,a.useEffect)(()=>{e&&(0,s.getInviteInfo)(e).then(e=>{g(e),u("ready")}).catch(e=>{h(e instanceof Error?e.message:"Invalid or expired invite link"),u("error")})},[e]);let f=async()=>{if(e){u("accepting");try{let t=await (0,s.acceptInvite)(e);(0,r.trackInviteAccepted)({workspace_id:t.workspace_id??""}),u("done"),n.toast.success(`Joined ${p?.workspace_name??"workspace"}`),l.replace(`/w/${t.workspace_slug}/home`)}catch(e){h(e instanceof Error?e.message:"Failed to join workspace"),u("error")}}};return(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center p-6",children:(0,t.jsxs)("div",{className:"w-full max-w-sm space-y-6 text-center",children:["loading"===c&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(d.Skeleton,{className:"h-6 w-48 mx-auto"}),(0,t.jsx)(d.Skeleton,{className:"h-4 w-64 mx-auto"}),(0,t.jsx)(d.Skeleton,{className:"h-9 w-32 mx-auto"})]}),"ready"===c&&p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold",children:"You've been invited"}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[p.invited_by," invited you to join"]})]}),(0,t.jsxs)("div",{className:"rounded-md border border-border/50 px-4 py-3 text-left space-y-0.5",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:p.workspace_name}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Workspace"})]}),(0,t.jsx)(o.Button,{className:"w-full",onClick:f,children:"Join Workspace"})]}),"accepting"===c&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(d.Skeleton,{className:"h-6 w-48 mx-auto"}),(0,t.jsx)(d.Skeleton,{className:"h-4 w-64 mx-auto"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Joining workspace…"})]}),"error"===c&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold",children:"Invite unavailable"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:m})]}),(0,t.jsx)(o.Button,{variant:"outline",onClick:()=>l.replace("/workspaces"),children:"Go to workspaces"})]})]})})}])}]);