thursday-agent 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (535) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +5 -2
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +5 -5
  5. package/.next/routes-manifest.json +24 -6
  6. package/.next/server/app/_global-error/page.js +2 -2
  7. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  8. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/_global-error.html +1 -1
  10. package/.next/server/app/_global-error.rsc +2 -2
  11. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
  13. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/server/app/_not-found/page.js +2 -2
  15. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  16. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/.next/server/app/_not-found.html +1 -1
  18. package/.next/server/app/_not-found.rsc +14 -14
  19. package/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +12 -12
  21. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  22. package/.next/server/app/api/artifact/route.js +3 -3
  23. package/.next/server/app/api/artifact/route.js.nft.json +1 -1
  24. package/.next/server/app/api/bot/memory/files/route/app-paths-manifest.json +3 -0
  25. package/.next/server/app/api/bot/memory/files/route.js +10 -0
  26. package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -0
  27. package/.next/server/app/api/bot/memory/files/route_client-reference-manifest.js +3 -0
  28. package/.next/server/app/api/bot/memory/route/app-paths-manifest.json +3 -0
  29. package/.next/server/app/api/bot/memory/route.js +14 -0
  30. package/.next/server/app/api/bot/{notes → memory}/route.js.nft.json +1 -1
  31. package/.next/server/app/api/bot/memory/route_client-reference-manifest.js +3 -0
  32. package/.next/server/app/api/bot/route.js +6 -6
  33. package/.next/server/app/api/bot/route.js.nft.json +1 -1
  34. package/.next/server/app/api/bot/task/[id]/route.js +8 -8
  35. package/.next/server/app/api/bot/task/[id]/route.js.nft.json +1 -1
  36. package/.next/server/app/api/bot/task/route.js +8 -8
  37. package/.next/server/app/api/bot/task/route.js.nft.json +1 -1
  38. package/.next/server/app/api/config/route.js +5 -5
  39. package/.next/server/app/api/config/route.js.nft.json +1 -1
  40. package/.next/server/app/api/events/route.js +4 -5
  41. package/.next/server/app/api/events/route.js.nft.json +1 -1
  42. package/.next/server/app/api/file/[...path]/route.js +3 -3
  43. package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
  44. package/.next/server/app/api/llm-model/catalog/route.js +9 -8
  45. package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
  46. package/.next/server/app/api/llm-model/credits/route/app-paths-manifest.json +3 -0
  47. package/.next/server/app/api/llm-model/credits/route/build-manifest.json +12 -0
  48. package/.next/server/app/api/llm-model/credits/route/server-reference-manifest.json +4 -0
  49. package/.next/server/app/api/llm-model/credits/route.js +16 -0
  50. package/.next/server/app/api/llm-model/credits/route.js.map +5 -0
  51. package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -0
  52. package/.next/server/app/api/llm-model/credits/route_client-reference-manifest.js +3 -0
  53. package/.next/server/app/api/llm-model/route.js +10 -8
  54. package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
  55. package/.next/server/app/api/llm-model/subscription/route/app-paths-manifest.json +3 -0
  56. package/.next/server/app/api/llm-model/subscription/route/build-manifest.json +12 -0
  57. package/.next/server/app/api/llm-model/subscription/route/server-reference-manifest.json +4 -0
  58. package/.next/server/app/api/llm-model/subscription/route.js +15 -0
  59. package/.next/server/app/api/llm-model/subscription/route.js.map +5 -0
  60. package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -0
  61. package/.next/server/app/api/llm-model/subscription/route_client-reference-manifest.js +3 -0
  62. package/.next/server/app/api/mcp/[name]/route.js +4 -4
  63. package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
  64. package/.next/server/app/api/mcp/oauth/callback/route.js +5 -5
  65. package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
  66. package/.next/server/app/api/mcp/route.js +4 -4
  67. package/.next/server/app/api/mcp/route.js.nft.json +1 -1
  68. package/.next/server/app/api/mcp/tools/route.js +4 -4
  69. package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
  70. package/.next/server/app/api/memory/edit/route/app-paths-manifest.json +3 -0
  71. package/.next/server/app/api/memory/edit/route/build-manifest.json +12 -0
  72. package/.next/server/app/api/memory/edit/route/server-reference-manifest.json +4 -0
  73. package/.next/server/app/api/memory/edit/route.js +24 -0
  74. package/.next/server/app/api/memory/edit/route.js.map +5 -0
  75. package/.next/server/app/api/memory/edit/route.js.nft.json +1 -0
  76. package/.next/server/app/api/memory/{tidy → edit}/route_client-reference-manifest.js +1 -1
  77. package/.next/server/app/api/memory/route.js +6 -7
  78. package/.next/server/app/api/memory/route.js.nft.json +1 -1
  79. package/.next/server/app/api/skills/[source]/[name]/route.js +3 -3
  80. package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
  81. package/.next/server/app/api/skills/route.js +3 -3
  82. package/.next/server/app/api/skills/route.js.nft.json +1 -1
  83. package/.next/server/app/api/thursday/call/route.js +9 -7
  84. package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
  85. package/.next/server/app/api/thursday/skills/route.js +9 -7
  86. package/.next/server/app/api/thursday/skills/route.js.nft.json +1 -1
  87. package/.next/server/app/api/thursday/tool-call/route.js +17 -15
  88. package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
  89. package/.next/server/app/api/workspace/route.js +4 -5
  90. package/.next/server/app/api/workspace/route.js.nft.json +1 -1
  91. package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +1 -1
  92. package/.next/server/app/artifact/[...path]/page.js +5 -6
  93. package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
  94. package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
  95. package/.next/server/app/favicon.ico/route.js +3 -4
  96. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  97. package/.next/server/app/favicon.ico.body +0 -0
  98. package/.next/server/app/page/server-reference-manifest.json +57 -90
  99. package/.next/server/app/page.js +10 -10
  100. package/.next/server/app/page.js.nft.json +1 -1
  101. package/.next/server/app/page_client-reference-manifest.js +1 -1
  102. package/.next/server/app-paths-manifest.json +5 -2
  103. package/.next/server/chunks/[externals]__0dzuk6_._.js +3 -0
  104. package/.next/server/chunks/[root-of-the-server]__01dkp4a._.js +3 -0
  105. package/.next/server/chunks/[root-of-the-server]__02va5wz._.js +1 -1
  106. package/.next/server/chunks/[root-of-the-server]__02xjoto._.js +3 -0
  107. package/.next/server/chunks/[root-of-the-server]__04q--0f._.js +8 -0
  108. package/.next/server/chunks/[root-of-the-server]__0bl-e63._.js +3 -0
  109. package/.next/server/chunks/[root-of-the-server]__0ce8nf8._.js +5 -0
  110. package/.next/server/chunks/[root-of-the-server]__0ffbg85._.js +3 -0
  111. package/.next/server/chunks/[root-of-the-server]__0j7z0r3._.js +12 -0
  112. package/.next/server/chunks/[root-of-the-server]__0jq4ohy._.js +8 -0
  113. package/.next/server/chunks/[root-of-the-server]__0ls6_8y._.js +8 -0
  114. package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +3 -0
  115. package/.next/server/chunks/[root-of-the-server]__0pa2n68._.js +3 -0
  116. package/.next/server/chunks/[root-of-the-server]__0q0vvt2._.js +5 -0
  117. package/.next/server/chunks/[root-of-the-server]__1-ga0kh._.js +5 -0
  118. package/.next/server/chunks/[root-of-the-server]__11n256_._.js +5 -0
  119. package/.next/server/chunks/[root-of-the-server]__12cabg9._.js +3 -0
  120. package/.next/server/chunks/[root-of-the-server]__1339jnv._.js +8 -0
  121. package/.next/server/chunks/[root-of-the-server]__15bjnu5._.js +5 -0
  122. package/.next/server/chunks/[root-of-the-server]__18_teo8._.js +8 -0
  123. package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +5 -0
  124. package/.next/server/chunks/[root-of-the-server]__1anc1p9._.js +3 -0
  125. package/.next/server/chunks/[root-of-the-server]__1ccon1w._.js +5 -5
  126. package/.next/server/chunks/[root-of-the-server]__1fizn31._.js +3 -0
  127. package/.next/server/chunks/[root-of-the-server]__1llj3-b._.js +3 -0
  128. package/.next/server/chunks/[root-of-the-server]__1orn-5b._.js +11 -0
  129. package/.next/server/chunks/[root-of-the-server]__1p8m3f4._.js +3 -0
  130. package/.next/server/chunks/[root-of-the-server]__1wa1k7r._.js +8 -0
  131. package/.next/server/chunks/_0-73of8._.js +5 -5
  132. package/.next/server/chunks/_0-fjql4._.js +26 -0
  133. package/.next/server/chunks/_00xh_q0._.js +27 -0
  134. package/.next/server/chunks/{_0pppbb5._.js → _03kp0jp._.js} +163 -36
  135. package/.next/server/chunks/_051qh8u._.js +3 -0
  136. package/.next/server/chunks/{node_modules_next_04q-o58._.js → _05dla15._.js} +2 -2
  137. package/.next/server/chunks/_05h2cii._.js +1 -1
  138. package/.next/server/chunks/_0c9j6rb._.js +49 -0
  139. package/.next/server/chunks/_0fzqt2y._.js +130 -0
  140. package/.next/server/chunks/{_0vnutv9._.js → _0ioz3nd._.js} +1 -1
  141. package/.next/server/chunks/_0iwfby5._.js +3 -0
  142. package/.next/server/chunks/_0mecv0f._.js +26 -0
  143. package/.next/server/chunks/_0mh8j4m._.js +3 -0
  144. package/.next/server/chunks/_0n74zsf._.js +4 -4
  145. package/.next/server/chunks/_0obojvv._.js +3 -0
  146. package/.next/server/chunks/_0recufk._.js +49 -0
  147. package/.next/server/chunks/_0rnf-6n._.js +4 -4
  148. package/.next/server/chunks/_0sb7tlz._.js +3 -0
  149. package/.next/server/chunks/_0u10wmw._.js +5 -5
  150. package/.next/server/chunks/_0u4aiy2._.js +3 -0
  151. package/.next/server/chunks/_0wp4le3._.js +1 -1
  152. package/.next/server/chunks/_0y5fg-x._.js +1 -1
  153. package/.next/server/chunks/_1230wbx._.js +10 -0
  154. package/.next/server/chunks/_12nheja._.js +3 -0
  155. package/.next/server/chunks/_13510xh._.js +3 -0
  156. package/.next/server/chunks/_15hq89o._.js +1 -1
  157. package/.next/server/chunks/_17l5ygt._.js +49 -0
  158. package/.next/server/chunks/_18-1wcc._.js +5 -5
  159. package/.next/server/chunks/_1_5mnq4._.js +4 -4
  160. package/.next/server/chunks/_1_9mjx-._.js +3 -0
  161. package/.next/server/chunks/_1d0j961._.js +6 -0
  162. package/.next/server/chunks/_1d5zmy8._.js +1 -1
  163. package/.next/server/chunks/_1drgfx4._.js +4 -4
  164. package/.next/server/chunks/_1f46eie._.js +3 -0
  165. package/.next/server/chunks/_1h5_8sk._.js +3 -0
  166. package/.next/server/chunks/_1hdnxb7._.js +3 -0
  167. package/.next/server/chunks/_1j8k_j5._.js +3 -0
  168. package/.next/server/chunks/_1krd9rf._.js +3 -0
  169. package/.next/server/chunks/_1nc0eui._.js +11 -0
  170. package/.next/server/chunks/_1nula3v._.js +3 -0
  171. package/.next/server/chunks/_1pf4qe-._.js +3 -0
  172. package/.next/server/chunks/_1php4eq._.js +1 -1
  173. package/.next/server/chunks/_1qxheoa._.js +3 -0
  174. package/.next/server/chunks/_1x6kd1r._.js +3 -0
  175. package/.next/server/chunks/_1yuv4vp._.js +1 -1
  176. package/.next/server/chunks/_1zjrdag._.js +3 -0
  177. package/.next/server/chunks/_next-internal_server_app_api_bot_memory_files_route_actions_1_xd_8f.js +3 -0
  178. package/.next/server/chunks/_next-internal_server_app_api_bot_memory_route_actions_1a8xfr7.js +3 -0
  179. package/.next/server/chunks/_next-internal_server_app_api_llm-model_credits_route_actions_0v424pb.js +3 -0
  180. package/.next/server/chunks/_next-internal_server_app_api_llm-model_subscription_route_actions_0-udcm5.js +3 -0
  181. package/.next/server/chunks/_next-internal_server_app_api_memory_edit_route_actions_02sfnmr.js +3 -0
  182. package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
  183. package/.next/server/chunks/features_0rpfxbk._.js +3 -0
  184. package/.next/server/chunks/features_1qf3cei._.js +3 -0
  185. package/.next/server/chunks/features_bot_0zt92oh._.js +3 -0
  186. package/.next/server/chunks/features_bot_bot_query_ts_12mgkl2._.js +3 -0
  187. package/.next/server/chunks/features_memory_1uqvksn._.js +6 -0
  188. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0a1rd09._.js → node_modules_consola_dist_chunks_prompt_mjs_0i7cvml._.js} +1 -1
  189. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_06067w6._.js → node_modules_consola_dist_chunks_prompt_mjs_0icqaqw._.js} +1 -1
  190. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_096ais_._.js → node_modules_consola_dist_chunks_prompt_mjs_0r28-sm._.js} +1 -1
  191. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_02s3hjt._.js → node_modules_consola_dist_chunks_prompt_mjs_0v_7drq._.js} +1 -1
  192. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1xoq2rl._.js +3 -0
  193. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0tvkfgh._.js → node_modules_consola_dist_chunks_prompt_mjs_1y49572._.js} +1 -1
  194. package/.next/server/chunks/ssr/[root-of-the-server]__09q9med._.js +1 -1
  195. package/.next/server/chunks/ssr/{[root-of-the-server]__1qfqvmg._.js → [root-of-the-server]__0_69wqr._.js} +2 -2
  196. package/.next/server/chunks/ssr/[root-of-the-server]__0hg5gib._.js +1 -1
  197. package/.next/server/chunks/ssr/[root-of-the-server]__0i8ie7f._.js +3 -0
  198. package/.next/server/chunks/ssr/{[root-of-the-server]__0jsmmb-._.js → [root-of-the-server]__0mz33a7._.js} +1 -1
  199. package/.next/server/chunks/ssr/[root-of-the-server]__0tbkdlx._.js +3 -0
  200. package/.next/server/chunks/ssr/[root-of-the-server]__0vnmv-s._.js +3 -0
  201. package/.next/server/chunks/ssr/{[root-of-the-server]__0f6s48x._.js → [root-of-the-server]__0xpcv9w._.js} +3 -3
  202. package/.next/server/chunks/ssr/[root-of-the-server]__0xtssj3._.js +1 -1
  203. package/.next/server/chunks/ssr/[root-of-the-server]__0zkv7z_._.js +3 -0
  204. package/.next/server/chunks/ssr/[root-of-the-server]__10-dz5o._.js +57 -0
  205. package/.next/server/chunks/ssr/[root-of-the-server]__15_uhip._.js +3 -0
  206. package/.next/server/chunks/ssr/[root-of-the-server]__16jc196._.js +1 -1
  207. package/.next/server/chunks/ssr/{[root-of-the-server]__0m1b5ky._.js → [root-of-the-server]__1cyjywu._.js} +1 -1
  208. package/.next/server/chunks/ssr/[root-of-the-server]__1eh7hid._.js +3 -0
  209. package/.next/server/chunks/ssr/[root-of-the-server]__1gtlw6v._.js +43 -0
  210. package/.next/server/chunks/ssr/[root-of-the-server]__1mzi-ju._.js +1 -1
  211. package/.next/server/chunks/ssr/[root-of-the-server]__1ox7hbk._.js +4 -0
  212. package/.next/server/chunks/ssr/[root-of-the-server]__1pduf5n._.js +3 -0
  213. package/.next/server/chunks/ssr/{_1mznrxk._.js → _001_ms1._.js} +3 -3
  214. package/.next/server/chunks/ssr/_01_6m32._.js +3 -0
  215. package/.next/server/chunks/ssr/_01n3o0m._.js +3 -0
  216. package/.next/server/chunks/ssr/_07uchnc._.js +3 -0
  217. package/.next/server/chunks/ssr/_0ap2fzn._.js +3 -0
  218. package/.next/server/chunks/ssr/_0c-ql2m._.js +3 -0
  219. package/.next/server/chunks/ssr/_0h42fze._.js +3 -0
  220. package/.next/server/chunks/ssr/_0h7zdni._.js +1 -1
  221. package/.next/server/chunks/ssr/_0i_6q1w._.js +41 -0
  222. package/.next/server/chunks/ssr/_0kbkmar._.js +3 -0
  223. package/.next/server/chunks/ssr/{_077-g6s._.js → _0mb8zc8._.js} +3 -3
  224. package/.next/server/chunks/ssr/_0mo2w06._.js +3 -0
  225. package/.next/server/chunks/ssr/{_13punpm._.js → _0q0zan6._.js} +2 -2
  226. package/.next/server/chunks/ssr/{_040sk32._.js → _0u2jv_x._.js} +76 -82
  227. package/.next/server/chunks/ssr/_0y0tiht._.js +4 -0
  228. package/.next/server/chunks/ssr/_0zhoc3r._.js +3 -0
  229. package/.next/server/chunks/ssr/_1-teee5._.js +3 -3
  230. package/.next/server/chunks/ssr/_13fke0x._.js +3 -0
  231. package/.next/server/chunks/ssr/{_1lip4th._.js → _13z3f85._.js} +2 -2
  232. package/.next/server/chunks/ssr/_14_lw10._.js +3 -0
  233. package/.next/server/chunks/ssr/_15j2_8f._.js +3 -0
  234. package/.next/server/chunks/ssr/{_09ja_w1._.js → _1eoqg_g._.js} +2 -2
  235. package/.next/server/chunks/ssr/_1sji22n._.js +3 -0
  236. package/.next/server/chunks/ssr/_1spzm8z._.js +3 -0
  237. package/.next/server/chunks/ssr/{_0x_nu5e._.js → _1vi_uo7._.js} +2 -2
  238. package/.next/server/chunks/ssr/_1vyd1ji._.js +1 -1
  239. package/.next/server/chunks/ssr/{_1m3bsfr._.js → _1xvgn77._.js} +2 -2
  240. package/.next/server/chunks/ssr/_20kd_n0._.js +42 -0
  241. package/.next/server/chunks/ssr/features_bot_1s_-2vj._.js +3 -0
  242. package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +1 -1
  243. package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
  244. package/.next/server/chunks/ssr/lib_date-like_ts_02is0pw._.js +3 -0
  245. package/.next/server/chunks/ssr/{node_modules_18_dk7_._.js → node_modules_063xwpp._.js} +1 -1
  246. package/.next/server/chunks/ssr/{node_modules_01qnv-a._.js → node_modules_0bvraul._.js} +1 -1
  247. package/.next/server/chunks/ssr/{node_modules_0n1kj4p._.js → node_modules_0eu1va6._.js} +1 -1
  248. package/.next/server/chunks/ssr/{node_modules_0kl7-tn._.js → node_modules_0h50b8n._.js} +1 -1
  249. package/.next/server/chunks/ssr/{node_modules_0_n241r._.js → node_modules_0h5hnr1._.js} +1 -1
  250. package/.next/server/chunks/ssr/{node_modules_0lrjk5t._.js → node_modules_0h7u60n._.js} +1 -1
  251. package/.next/server/chunks/ssr/{node_modules_0ndvxub._.js → node_modules_0lm7_vm._.js} +1 -1
  252. package/.next/server/chunks/ssr/{node_modules_13r44jq._.js → node_modules_0mwym0g._.js} +1 -1
  253. package/.next/server/chunks/ssr/{node_modules_17lrt3y._.js → node_modules_0rjg6t1._.js} +1 -1
  254. package/.next/server/chunks/ssr/node_modules_0x3-ply._.js +3 -0
  255. package/.next/server/chunks/ssr/{node_modules_004qlr4._.js → node_modules_0y_cded._.js} +1 -1
  256. package/.next/server/chunks/ssr/{node_modules_0kxz4gt._.js → node_modules_0z5tsu8._.js} +1 -1
  257. package/.next/server/chunks/ssr/{node_modules_0iz1rzd._.js → node_modules_0zp9r92._.js} +1 -1
  258. package/.next/server/chunks/ssr/{node_modules_19dp7ko._.js → node_modules_1-hc6uv._.js} +1 -1
  259. package/.next/server/chunks/ssr/{node_modules_1q0p85z._.js → node_modules_113tz0l._.js} +1 -1
  260. package/.next/server/chunks/ssr/{node_modules_1toafc-._.js → node_modules_124bue5._.js} +1 -1
  261. package/.next/server/chunks/ssr/node_modules_17bwo43._.js +55 -0
  262. package/.next/server/chunks/ssr/{node_modules_08d8bke._.js → node_modules_1_n3ztw._.js} +1 -1
  263. package/.next/server/chunks/ssr/{node_modules_1dwguw_._.js → node_modules_1bc7gu8._.js} +1 -1
  264. package/.next/server/chunks/ssr/{node_modules_20yebtj._.js → node_modules_1bgb6-f._.js} +1 -1
  265. package/.next/server/chunks/ssr/{node_modules_1n5ygqe._.js → node_modules_1h4a4pp._.js} +1 -1
  266. package/.next/server/chunks/ssr/{node_modules_04n7mjs._.js → node_modules_1i7u1ia._.js} +1 -1
  267. package/.next/server/chunks/ssr/{node_modules_1hn8z1f._.js → node_modules_1juq3hs._.js} +1 -1
  268. package/.next/server/chunks/ssr/{node_modules_1xyd7ov._.js → node_modules_1l0qtdu._.js} +1 -1
  269. package/.next/server/chunks/ssr/{node_modules_0m93zeg._.js → node_modules_1t9cyee._.js} +1 -1
  270. package/.next/server/chunks/ssr/{node_modules_09xhur7._.js → node_modules_1uuj9x1._.js} +1 -1
  271. package/.next/server/chunks/ssr/{node_modules_1hd-5tv._.js → node_modules_1vqb6po._.js} +1 -1
  272. package/.next/server/chunks/ssr/{node_modules_1zu988w._.js → node_modules_1xx28h1._.js} +1 -1
  273. package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0m9a4y0._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d3skpl._.js} +1 -1
  274. package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_13w_wy9._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0i44kk5._.js} +1 -1
  275. package/.next/server/chunks/ssr/node_modules_@vercel_oidc_dist_0qe30a_._.js +3 -0
  276. package/.next/server/chunks/ssr/{node_modules_next_dist_0w6mzq5._.js → node_modules_next_dist_0drixxt._.js} +4 -4
  277. package/.next/server/chunks/ssr/node_modules_next_dist_1n3w9lb._.js +2 -2
  278. package/.next/server/instrumentation.js +1 -1
  279. package/.next/server/middleware-build-manifest.js +3 -3
  280. package/.next/server/pages/404.html +1 -1
  281. package/.next/server/pages/500.html +1 -1
  282. package/.next/server/server-reference-manifest.js +1 -1
  283. package/.next/server/server-reference-manifest.json +58 -91
  284. package/.next/static/chunks/{31ttnjt6g35a0.js → 0ev4hyghq0mbb.js} +1 -1
  285. package/.next/static/chunks/0r5qcctujhxli.js +1 -0
  286. package/.next/static/chunks/0tmgrnlje14-s.js +3 -0
  287. package/.next/static/chunks/0x79tx04dxbpp.js +1 -0
  288. package/.next/static/chunks/0xzgvc0fkdb6t.js +1 -0
  289. package/.next/static/chunks/10teww7wt-f6h.js +1 -0
  290. package/.next/static/chunks/14hgtsjg-kael.css +1 -0
  291. package/.next/static/chunks/17donp69y4do7.js +40 -0
  292. package/.next/static/chunks/{3_h9txt3tq8t8.js → 1dkjg87pxk0n9.js} +1 -1
  293. package/.next/static/chunks/1ekc7ul556kbl.js +1 -0
  294. package/.next/static/chunks/{3ard_noqapnw1.js → 1grhjo7a5a0_-.js} +1 -1
  295. package/.next/static/chunks/1kq8h8wi_e0bc.js +53 -0
  296. package/.next/static/chunks/1okqiww3pnwka.js +1 -0
  297. package/.next/static/chunks/26-pr2c9ro222.js +1 -0
  298. package/.next/static/chunks/{18vhba44l1fc9.js → 280t0_e99i276.js} +1 -1
  299. package/.next/static/chunks/28cizcdaabd4h.js +1 -0
  300. package/.next/static/chunks/2a0k6jlq0_v1u.js +2 -0
  301. package/.next/static/chunks/2fzs9fm8yarvq.js +1 -0
  302. package/.next/static/chunks/2h0sd2vumhb15.js +1 -0
  303. package/.next/static/chunks/2hw2f6zmt7fmt.js +1 -0
  304. package/.next/static/chunks/2t4vhi3m8ahya.js +1 -0
  305. package/.next/static/chunks/2tigdtz3dpcy8.js +1 -0
  306. package/.next/static/chunks/3111pj5wnjgos.js +1 -0
  307. package/.next/static/chunks/{07kl352c-lvcz.js → 3agpgkwaa321p.js} +1 -1
  308. package/.next/static/chunks/3cfi_q6d_wtci.js +1 -0
  309. package/.next/static/chunks/3ok9_x74rip3v.js +1 -0
  310. package/.next/static/chunks/3xk7yqgomx7yq.js +1 -0
  311. package/.next/static/chunks/3xpbkl66ssib5.js +38 -0
  312. package/.next/static/media/favicon.37o1pjldwi2uc.ico +0 -0
  313. package/README.md +6 -4
  314. package/app/api/bot/memory/files/route.ts +14 -0
  315. package/app/api/bot/memory/route.ts +5 -0
  316. package/app/api/events/app-event.ts +3 -5
  317. package/app/api/llm-model/credits/route.ts +11 -0
  318. package/app/api/llm-model/route.ts +6 -1
  319. package/app/api/llm-model/subscription/route.ts +11 -0
  320. package/app/api/memory/edit/route.ts +7 -0
  321. package/app/api/memory/route.ts +21 -0
  322. package/app/api/query-key.ts +19 -4
  323. package/bin/thursday.mjs +3 -0
  324. package/components/ui/shiny-text.tsx +48 -134
  325. package/database/migrations/{20260909060813_optimal_sabretooth → 20260910173049_numerous_spirit}/migration.sql +24 -34
  326. package/database/migrations/{20260909060813_optimal_sabretooth → 20260910173049_numerous_spirit}/snapshot.json +71 -145
  327. package/database/migrations/20260911030320_opposite_jack_power/migration.sql +1 -0
  328. package/database/migrations/{20260909063821_bitter_tenebrous → 20260911030320_opposite_jack_power}/snapshot.json +57 -184
  329. package/features/ai/chatgpt.ts +617 -0
  330. package/features/ai/components/chatgpt-sign-in.tsx +66 -0
  331. package/features/ai/components/model-picker.tsx +17 -1
  332. package/features/ai/components/provider-icon.tsx +1 -0
  333. package/features/ai/load-tools.ts +58 -42
  334. package/features/ai/model.schema.ts +232 -34
  335. package/features/ai/model.ts +169 -24
  336. package/features/ai/prompts/bot.prompt.ts +156 -65
  337. package/features/ai/prompts/memory-edit.prompt.ts +33 -0
  338. package/features/ai/prompts/prompt-helper.ts +45 -26
  339. package/features/ai/prompts/thursday.prompt.ts +40 -17
  340. package/features/ai/tools/bot.tool.ts +35 -52
  341. package/features/ai/tools/connected.ts +17 -4
  342. package/features/ai/tools/memory.tool.ts +133 -72
  343. package/features/ai/tools/search.tool.ts +136 -47
  344. package/features/ai/tools/tool-name.ts +2 -5
  345. package/features/ai/tools/workspace.tool.ts +2 -1
  346. package/features/bot/bot.action.ts +8 -18
  347. package/features/bot/bot.memory.ts +89 -0
  348. package/features/bot/bot.query.ts +37 -57
  349. package/features/bot/bot.run.ts +507 -241
  350. package/features/bot/bot.runner.ts +410 -114
  351. package/features/bot/bot.schema.ts +79 -19
  352. package/features/bot/bot.seed.ts +89 -16
  353. package/features/bot/components/bot-mark.tsx +122 -20
  354. package/features/bot/components/bot-room.tsx +159 -130
  355. package/features/bot/components/bot-setting.tsx +790 -402
  356. package/features/bot/components/bot-tool.tsx +2 -6
  357. package/features/bot/components/mark-palette.tsx +54 -0
  358. package/features/bot/components/path-chips.tsx +1 -1
  359. package/features/bot/components/task-badge.tsx +26 -6
  360. package/features/bot/components/task-reply.tsx +22 -33
  361. package/features/bot/components/task-setting.tsx +20 -17
  362. package/features/bot/task.query.ts +215 -28
  363. package/features/bot/task.store.ts +53 -9
  364. package/features/config/components/config-setting.tsx +265 -34
  365. package/features/config/components/models-badge.tsx +42 -0
  366. package/features/config/config.action.ts +12 -0
  367. package/features/config/config.const.ts +38 -2
  368. package/features/connectors/mcp.manager.ts +10 -2
  369. package/features/intro/components/intro.tsx +47 -46
  370. package/features/memory/components/memory-edit.tsx +338 -0
  371. package/features/memory/components/memory-setting.tsx +75 -77
  372. package/features/memory/memory.action.ts +3 -43
  373. package/features/memory/memory.edit.ts +87 -0
  374. package/features/memory/memory.query.ts +24 -42
  375. package/features/memory/memory.schema.ts +29 -106
  376. package/features/settings/components/settings.tsx +2 -0
  377. package/features/settings/settings.alert.ts +3 -1
  378. package/features/thursday/components/ascii-orb.tsx +106 -90
  379. package/features/thursday/components/boot.tsx +7 -0
  380. package/features/thursday/components/call-log.tsx +219 -92
  381. package/features/thursday/components/face.tsx +6 -4
  382. package/features/thursday/components/tab-state.tsx +97 -0
  383. package/features/thursday/components/thursday-mark.tsx +4 -1
  384. package/features/thursday/components/thursday-setting.tsx +17 -47
  385. package/features/thursday/components/thursday.tsx +208 -95
  386. package/features/thursday/thursday.action.ts +12 -17
  387. package/features/thursday/thursday.query.ts +61 -70
  388. package/features/thursday/thursday.schema.ts +20 -7
  389. package/features/thursday/tool-line.ts +85 -11
  390. package/features/thursday/use-thursday.ts +86 -59
  391. package/features/workspace/components/file-view.tsx +4 -2
  392. package/features/workspace/workspace.ts +110 -26
  393. package/lib/limits.ts +1 -1
  394. package/lib/oauth-page.ts +27 -0
  395. package/lib/realtime/openai.ts +2 -2
  396. package/lib/realtime/realtime.protocol.ts +1 -1
  397. package/lib/realtime/realtime.tap.ts +122 -0
  398. package/lib/sandbox.ts +59 -36
  399. package/package.json +1 -1
  400. package/skills/browser/SKILL.md +55 -34
  401. package/.next/server/app/api/bot/notes/route/app-paths-manifest.json +0 -3
  402. package/.next/server/app/api/bot/notes/route.js +0 -14
  403. package/.next/server/app/api/bot/notes/route_client-reference-manifest.js +0 -3
  404. package/.next/server/app/api/memory/tidy/route/app-paths-manifest.json +0 -3
  405. package/.next/server/app/api/memory/tidy/route.js +0 -22
  406. package/.next/server/app/api/memory/tidy/route.js.nft.json +0 -1
  407. package/.next/server/chunks/0d-b_next_dist_server_app-render_after-task-async-storage_external_0-exn7p.js +0 -3
  408. package/.next/server/chunks/[root-of-the-server]__0-npkh_._.js +0 -3
  409. package/.next/server/chunks/[root-of-the-server]__005var5._.js +0 -3
  410. package/.next/server/chunks/[root-of-the-server]__019dx9f._.js +0 -5
  411. package/.next/server/chunks/[root-of-the-server]__02_2sm-._.js +0 -5
  412. package/.next/server/chunks/[root-of-the-server]__04_8spk._.js +0 -3
  413. package/.next/server/chunks/[root-of-the-server]__05luceg._.js +0 -3
  414. package/.next/server/chunks/[root-of-the-server]__06t77t4._.js +0 -11
  415. package/.next/server/chunks/[root-of-the-server]__0bed6hu._.js +0 -8
  416. package/.next/server/chunks/[root-of-the-server]__0cro2dz._.js +0 -5
  417. package/.next/server/chunks/[root-of-the-server]__0dupqt7._.js +0 -5
  418. package/.next/server/chunks/[root-of-the-server]__0emr6go._.js +0 -3
  419. package/.next/server/chunks/[root-of-the-server]__0le4d-p._.js +0 -3
  420. package/.next/server/chunks/[root-of-the-server]__0m8ywyo._.js +0 -10
  421. package/.next/server/chunks/[root-of-the-server]__0nfuugi._.js +0 -5
  422. package/.next/server/chunks/[root-of-the-server]__0p32jfz._.js +0 -12
  423. package/.next/server/chunks/[root-of-the-server]__0phdgco._.js +0 -8
  424. package/.next/server/chunks/[root-of-the-server]__0wvgrsl._.js +0 -3
  425. package/.next/server/chunks/[root-of-the-server]__10qshki._.js +0 -3
  426. package/.next/server/chunks/[root-of-the-server]__11j52t0._.js +0 -5
  427. package/.next/server/chunks/[root-of-the-server]__1692zrv._.js +0 -3
  428. package/.next/server/chunks/[root-of-the-server]__16thabu._.js +0 -3
  429. package/.next/server/chunks/[root-of-the-server]__173nhwf._.js +0 -8
  430. package/.next/server/chunks/[root-of-the-server]__1_aoyr9._.js +0 -3
  431. package/.next/server/chunks/[root-of-the-server]__1bn73ih._.js +0 -10
  432. package/.next/server/chunks/[root-of-the-server]__1bqhuh9._.js +0 -8
  433. package/.next/server/chunks/[root-of-the-server]__1cqizfq._.js +0 -5
  434. package/.next/server/chunks/[root-of-the-server]__1e-ci13._.js +0 -3
  435. package/.next/server/chunks/[root-of-the-server]__1fboj2j._.js +0 -3
  436. package/.next/server/chunks/[root-of-the-server]__1lr7j9t._.js +0 -5
  437. package/.next/server/chunks/[root-of-the-server]__1oli73c._.js +0 -3
  438. package/.next/server/chunks/[root-of-the-server]__1txedx6._.js +0 -8
  439. package/.next/server/chunks/[root-of-the-server]__1untqv8._.js +0 -5
  440. package/.next/server/chunks/[root-of-the-server]__1zgpz1w._.js +0 -3
  441. package/.next/server/chunks/_00_584r._.js +0 -293
  442. package/.next/server/chunks/_012yhfm._.js +0 -39
  443. package/.next/server/chunks/_06mxlgn._.js +0 -3
  444. package/.next/server/chunks/_07rtlxv._.js +0 -3
  445. package/.next/server/chunks/_0a351g7._.js +0 -6
  446. package/.next/server/chunks/_0kjjmag._.js +0 -3
  447. package/.next/server/chunks/_0nn99o2._.js +0 -3
  448. package/.next/server/chunks/_0zuzmt_._.js +0 -39
  449. package/.next/server/chunks/_106co2o._.js +0 -3
  450. package/.next/server/chunks/_12bbv5i._.js +0 -100
  451. package/.next/server/chunks/_15q1pig._.js +0 -3
  452. package/.next/server/chunks/_19wg5yn._.js +0 -138
  453. package/.next/server/chunks/_1bt95p9._.js +0 -55
  454. package/.next/server/chunks/_1cbk7ms._.js +0 -26
  455. package/.next/server/chunks/_1drv2et._.js +0 -40
  456. package/.next/server/chunks/_1ic3bew._.js +0 -5
  457. package/.next/server/chunks/_1mxn_lb._.js +0 -3
  458. package/.next/server/chunks/_1rysr-r._.js +0 -10
  459. package/.next/server/chunks/_1u3rwbr._.js +0 -3
  460. package/.next/server/chunks/_1x7p319._.js +0 -6
  461. package/.next/server/chunks/_next-internal_server_app_api_bot_notes_route_actions_0qcsyu7.js +0 -3
  462. package/.next/server/chunks/_next-internal_server_app_api_memory_tidy_route_actions_0_cfuom.js +0 -3
  463. package/.next/server/chunks/features_bot_task_query_ts_11xuzl3._.js +0 -3
  464. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0gzvgfv._.js +0 -3
  465. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0vorg6w._.js +0 -3
  466. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1tpvamf._.js +0 -3
  467. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1vmaq9f._.js +0 -3
  468. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1y9-wcr._.js +0 -3
  469. package/.next/server/chunks/ssr/[externals]_node_crypto_1kn79-7._.js +0 -3
  470. package/.next/server/chunks/ssr/[root-of-the-server]__0iuoa-r._.js +0 -3
  471. package/.next/server/chunks/ssr/[root-of-the-server]__0un-erv._.js +0 -4
  472. package/.next/server/chunks/ssr/[root-of-the-server]__1-mnhyd._.js +0 -92
  473. package/.next/server/chunks/ssr/[root-of-the-server]__1bww500._.js +0 -3
  474. package/.next/server/chunks/ssr/[root-of-the-server]__1vcdast._.js +0 -3
  475. package/.next/server/chunks/ssr/[root-of-the-server]__1xwnu-h._.js +0 -3
  476. package/.next/server/chunks/ssr/_0-mc7ro._.js +0 -3
  477. package/.next/server/chunks/ssr/_01p5r6-._.js +0 -3
  478. package/.next/server/chunks/ssr/_03webdr._.js +0 -3
  479. package/.next/server/chunks/ssr/_09-0k3z._.js +0 -3
  480. package/.next/server/chunks/ssr/_0f_b_9s._.js +0 -3
  481. package/.next/server/chunks/ssr/_0fafgvl._.js +0 -3
  482. package/.next/server/chunks/ssr/_0sf1isi._.js +0 -3
  483. package/.next/server/chunks/ssr/_0su6_08._.js +0 -3
  484. package/.next/server/chunks/ssr/_0ti51xc._.js +0 -3
  485. package/.next/server/chunks/ssr/_0w5bgak._.js +0 -3
  486. package/.next/server/chunks/ssr/_0y84qo6._.js +0 -3
  487. package/.next/server/chunks/ssr/_1ciyoo3._.js +0 -3
  488. package/.next/server/chunks/ssr/_1e-dgz0._.js +0 -4
  489. package/.next/server/chunks/ssr/_1fq7zgb._.js +0 -3
  490. package/.next/server/chunks/ssr/_1g6l4uj._.js +0 -3
  491. package/.next/server/chunks/ssr/_1ruzehw._.js +0 -3
  492. package/.next/server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js +0 -4
  493. package/.next/server/chunks/ssr/features_config_components_14jqgy4._.js +0 -3
  494. package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +0 -4
  495. package/.next/server/chunks/ssr/node_modules_zod_v4_classic_external_15fmmz3.js +0 -55
  496. package/.next/static/chunks/05b6nx_o3_f_n.js +0 -1
  497. package/.next/static/chunks/0dmns-gi0raa4.js +0 -1
  498. package/.next/static/chunks/0f9sq-7q_yxyl.js +0 -1
  499. package/.next/static/chunks/0oc4_xoia77dg.css +0 -1
  500. package/.next/static/chunks/0pheo8m3a-rzi.js +0 -1
  501. package/.next/static/chunks/19i8h2t-5evjx.js +0 -1
  502. package/.next/static/chunks/1c5fcj473025q.js +0 -1
  503. package/.next/static/chunks/1pi_hbmjw-f-z.js +0 -1
  504. package/.next/static/chunks/1twt6k09vg4np.js +0 -1
  505. package/.next/static/chunks/1ytnip8wdng93.js +0 -1
  506. package/.next/static/chunks/28gotuisldmom.js +0 -1
  507. package/.next/static/chunks/2998p0y7k1c8z.js +0 -3
  508. package/.next/static/chunks/29gyb3nubj51j.js +0 -53
  509. package/.next/static/chunks/2l233xfycjpd8.js +0 -1
  510. package/.next/static/chunks/2p5n7pa3c40t-.js +0 -2
  511. package/.next/static/chunks/2ru1q132af7h7.js +0 -1
  512. package/.next/static/chunks/2t8wqycwg3y04.js +0 -2
  513. package/.next/static/chunks/2uxum7qbyeyxd.js +0 -1
  514. package/.next/static/chunks/32z_ypgtchw48.js +0 -1
  515. package/.next/static/chunks/33pyjb3xd1iez.js +0 -1
  516. package/.next/static/chunks/3omud5xunrk1f.js +0 -1
  517. package/.next/static/chunks/42dnrkbph9e-1.js +0 -1
  518. package/.next/static/media/favicon.2vob68tjqpejf.ico +0 -0
  519. package/database/migrations/20260909063821_bitter_tenebrous/migration.sql +0 -1
  520. package/features/ai/prompts/memory-tidy.prompt.ts +0 -129
  521. package/features/ai/tools/tidy.tool.ts +0 -22
  522. package/features/bot/bot.notes.ts +0 -120
  523. package/features/memory/components/memory-tidy.tsx +0 -395
  524. package/features/memory/memory.tidy.ts +0 -332
  525. package/features/memory/tidy.query.ts +0 -135
  526. package/features/thursday/use-call-title.ts +0 -31
  527. /package/.next/server/app/api/bot/{notes → memory/files}/route/build-manifest.json +0 -0
  528. /package/.next/server/app/api/bot/{notes → memory/files}/route/server-reference-manifest.json +0 -0
  529. /package/.next/server/app/api/bot/{notes → memory/files}/route.js.map +0 -0
  530. /package/.next/server/app/api/{memory/tidy → bot/memory}/route/build-manifest.json +0 -0
  531. /package/.next/server/app/api/{memory/tidy → bot/memory}/route/server-reference-manifest.json +0 -0
  532. /package/.next/server/app/api/{memory/tidy → bot/memory}/route.js.map +0 -0
  533. /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → x1cCqY0kWpR_VcYx_lWO5}/_buildManifest.js +0 -0
  534. /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → x1cCqY0kWpR_VcYx_lWO5}/_clientMiddlewareManifest.js +0 -0
  535. /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → x1cCqY0kWpR_VcYx_lWO5}/_ssgManifest.js +0 -0
@@ -1,3 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,147701,747985,616816,e=>{"use strict";var t,n,r=e.i(843476);function i(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var s,o,l,u,c,d,h,f,p,m,g,v,_,x,y,b,w,k,T,S,M,j,C,O,E,A,R={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},P={duration:.5,overwrite:!1,delay:0},N=2*Math.PI,D=N/4,z=0,I=Math.sqrt,L=Math.cos,F=Math.sin,B=function(e){return"string"==typeof e},$=function(e){return"function"==typeof e},U=function(e){return"number"==typeof e},q=function(e){return void 0===e},H=function(e){return"object"==typeof e},K=function(e){return!1!==e},Y=function(){return"u">typeof window},V=function(e){return $(e)||B(e)},X="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},W=Array.isArray,J=/random\([^)]+\)/g,G=/,\s*/g,Q=/(?:-?\.?\d|\.)+/gi,Z=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ee=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,et=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,en=/[+-]=-?[.\d]+/,er=/[^,'"\[\]\s]+/gi,ei=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ea={},es={},eo=function(e){return(es=eI(e,ea))&&nC},el=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},eu=function(e,t){return!t&&console.warn(e)},ec=function(e,t){return e&&(ea[e]=t)&&es&&(es[e]=t)||ea},ed=function(){return 0},eh={suppressEvents:!0,isStart:!0,kill:!1},ef={suppressEvents:!0,kill:!1},ep={suppressEvents:!0},em={},eg=[],ev={},e_={},ex={},ey=30,eb=[],ew="",ek=function(e){var t,n,r=e[0];if(H(r)||$(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(n=eb.length;n--&&!eb[n].targetTest(r););t=eb[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new tH(e[n],t)))||e.splice(n,1);return e},eT=function(e){return e._gsap||ek(to(e))[0]._gsap},eS=function(e,t,n){return(n=e[t])&&$(n)?e[t]():q(n)&&e.getAttribute&&e.getAttribute(t)||n},eM=function(e,t){return(e=e.split(",")).forEach(t)||e},ej=function(e){return Math.round(1e5*e)/1e5||0},eC=function(e){return Math.round(1e7*e)/1e7||0},eO=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),"+"===n?e+r:"-"===n?e-r:"*"===n?e*r:e/r},eE=function(e,t){for(var n=t.length,r=0;0>e.indexOf(t[r])&&++r<n;);return r<n},eA=function(){var e,t,n=eg.length,r=eg.slice(0);for(ev={},eg.length=0,e=0;e<n;e++)(t=r[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},eR=function(e){return!!(e._initted||e._startAt||e.add)},eP=function(e,t,n,r){eg.length&&!w&&eA(),e.render(t,n,r||!!(w&&t<0&&eR(e))),eg.length&&!w&&eA()},eN=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(er).length<2?t:B(e)?e.trim():e},eD=function(e){return e},ez=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},eI=function(e,t){for(var n in t)e[n]=t[n];return e},eL=function e(t,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=H(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},eF=function(e,t){var n,r={};for(n in e)n in t||(r[n]=e[n]);return r},eB=function(e){var t,n=e.parent||T,r=e.keyframes?(t=W(e.keyframes),function(e,n){for(var r in n)r in e||"duration"===r&&t||"ease"===r||(e[r]=n[r])}):ez;if(K(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},e$=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},eU=function(e,t,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,s=e[r];if(i)for(a=t[i];s&&s[i]>a;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=s,t.parent=t._dp=e,t},eq=function(e,t,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},eH=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},eK=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},eY=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},eV=function(e,t,n,r){return e._startAt&&(w?e._startAt.revert(ef):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},eX=function(e){return e._repeat?eW(e._tTime,e=e.duration()+e._rDelay)*e:0},eW=function(e,t){var n=Math.floor(e=eC(e/t));return e&&n===e?n-1:n},eJ=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},eG=function(e){return e._end=eC(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},eQ=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=eC(n._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),eG(e),n._dirty||eK(n,e)),e},eZ=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=eJ(e.rawTime(),t),(!t._dur||tr(0,t.totalDuration(),n)-t._tTime>1e-8)&&t.render(n,!0)),eK(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-1e-8}},e0=function(e,t,n,r){return t.parent&&eH(t),t._start=eC((U(n)?n:n||e!==T?te(e,n,t):e._time)+t._delay),t._end=eC(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),eU(e,t,"_first","_last",e._sort?"_start":0),e3(t)||(e._recent=t),r||eZ(e,t),e._ts<0&&eQ(e,e._tTime),e},e1=function(e,t){return(ea.ScrollTrigger||el("scrollTrigger",t))&&ea.ScrollTrigger.create(t,e)},e2=function(e,t,n,r,i){return(t5(e,t,i),e._initted)?!n&&e._pt&&!w&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&O!==tE.frame?(eg.push(e),e._lazy=[i,r],1):void 0:1},e5=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(0>n.rawTime()||e(n))},e3=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},e6=function(e,t,n,r){var i,a,s,o=e.ratio,l=t<0||!t&&(!e._start&&e5(e)&&!(!e._initted&&e3(e))||(e._ts<0||e._dp._ts<0)&&!e3(e))?0:1,u=e._rDelay,c=0;if(u&&e._repeat&&(a=eW(c=tr(0,e._tDur,t),u),e._yoyo&&1&a&&(l=1-l),a!==eW(e._tTime,u)&&(o=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==o||w||r||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&e2(e,t,r,n,c))return;for(s=e._zTime,e._zTime=t||1e-8*!!n,n||(n=t&&!s),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,i=e._pt;i;)i.r(l,i.d),i=i._next;t<0&&eV(e,t,n,!0),e._onUpdate&&!n&&t_(e,"onUpdate"),c&&e._repeat&&!n&&e.parent&&t_(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&eH(e,1),n||w||(t_(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},e4=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<t)return r;r=r._prev}},e8=function(e,t,n,r){var i=e._repeat,a=eC(t)||0,s=e._tTime/e._tDur;return s&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:eC(a*(i+1)+e._rDelay*i):a,s>0&&!r&&eQ(e,e._tTime=e._tDur*s),e.parent&&eG(e),n||eK(e.parent,e),e},e7=function(e){return e instanceof tY?eK(e):e8(e,e._dur)},e9={_start:0,endTime:ed,totalDuration:ed},te=function e(t,n,r){var i,a,s,o=t.labels,l=t._recent||e9,u=t.duration()>=1e8?l.endTime(!1):t._dur;return B(n)&&(isNaN(n)||n in o)?(a=n.charAt(0),s="%"===n.substr(-1),i=n.indexOf("="),"<"===a||">"===a)?(i>=0&&(n=n.replace(/=/,"")),("<"===a?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(s?(i<0?l:r).totalDuration()/100:1)):i<0?(n in o||(o[n]=u),o[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(a=a/100*(W(r)?r[0]:r).totalDuration()),i>1?e(t,n.substr(0,i-1),r)+a:u+a):null==n?u:+n},tt=function(e,t,n){var r,i,a=U(t[1]),s=(a?2:1)+(e<2?0:1),o=t[s];if(a&&(o.duration=t[1]),o.parent=n,e){for(r=o,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=K(i.vars.inherit)&&i.parent;o.immediateRender=K(r.immediateRender),e<2?o.runBackwards=1:o.startAt=t[s-1]}return new ne(t[0],o,t[s+1])},tn=function(e,t){return e||0===e?t(e):t},tr=function(e,t,n){return n<e?e:n>t?t:n},ti=function(e,t){return B(e)&&(t=ei.exec(e))?t[1]:""},ta=[].slice,ts=function(e,t){return e&&H(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&H(e[0]))&&!e.nodeType&&e!==S},to=function(e,t,n){var r;return k&&!t&&k.selector?k.selector(e):B(e)&&!n&&(M||!tA())?ta.call((t||j).querySelectorAll(e),0):W(e)?(void 0===r&&(r=[]),e.forEach(function(e){var t;return B(e)&&!n||ts(e,1)?(t=r).push.apply(t,to(e)):r.push(e)})||r):ts(e)?ta.call(e,0):e?[e]:[]},tl=function(e){return e=to(e)[0]||eu("Invalid scope")||{},function(t){var n=e.current||e.nativeElement||e;return to(t,n.querySelectorAll?n:n===e?eu("Invalid scope")||j.createElement("div"):e)}},tu=function(e){return e.sort(function(){return .5-Math.random()})},tc=function(e){if($(e))return e;var t=H(e)?e:{each:e},n=tF(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},s=r>0&&r<1,o=isNaN(r)||s,l=t.axis,u=r,c=r;return B(r)?u=c=({center:.5,edges:.5,end:1})[r]||0:!s&&o&&(u=r[0],c=r[1]),function(e,s,d){var h,f,p,m,g,v,_,x,y,b=(d||t).length,w=a[b];if(!w){if(!(y="auto"===t.grid?0:(t.grid||[1,1e8])[1])){for(_=-1e8;_<(_=d[y++].getBoundingClientRect().left)&&y<b;);y<b&&y--}for(w=a[b]=[],h=o?Math.min(y,b)*u-.5:r%y,f=1e8===y?0:o?b*c/y-.5:r/y|0,_=0,x=1e8,v=0;v<b;v++)p=v%y-h,m=f-(v/y|0),w[v]=g=l?Math.abs("y"===l?m:p):I(p*p+m*m),g>_&&(_=g),g<x&&(x=g);"random"===r&&tu(w),w.max=_-x,w.min=x,w.v=b=(parseFloat(t.amount)||parseFloat(t.each)*(y>b?b-1:l?"y"===l?b/y:y:Math.max(y,b/y))||0)*("edges"===r?-1:1),w.b=b<0?i-b:i,w.u=ti(t.amount||t.each)||0,n=n&&b<0?tL(n):n}return b=(w[e]-w.min)/w.max||0,eC(w.b+(n?n(b):b)*w.v)+w.u}},td=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var r=eC(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(U(n)?0:ti(n))}},th=function(e,t){var n,r,i=W(e);return!i&&H(e)&&(n=i=e.radius||1e8,e.values?(r=!U((e=to(e.values))[0]))&&(n*=n):e=td(e.increment)),tn(t,i?$(e)?function(t){return Math.abs((r=e(t))-t)<=n?r:t}:function(t){for(var i,a,s=parseFloat(r?t.x:t),o=parseFloat(r?t.y:0),l=1e8,u=0,c=e.length;c--;)(i=r?(i=e[c].x-s)*i+(a=e[c].y-o)*a:Math.abs(e[c]-s))<l&&(l=i,u=c);return u=!n||l<=n?e[u]:t,r||u===t||U(t)?u:u+ti(t)}:td(e))},tf=function(e,t,n,r){return tn(W(e)?!t:!0===n?(n=0,!1):!r,function(){return W(e)?e[~~(Math.random()*e.length)]:(r=(n=n||1e-5)<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+.99*n))/n)*n*r)/r})},tp=function(e,t,n){return tn(n,function(n){return e[~~t(n)]})},tm=function(e){return e.replace(J,function(e){var t=e.indexOf("[")+1,n=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(G);return tf(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},tg=function(e,t,n,r,i){var a=t-e,s=r-n;return tn(i,function(t){return n+((t-e)/a*s||0)})},tv=function(e,t,n){var r,i,a,s=e.labels,o=1e8;for(r in s)(i=s[r]-t)<0==!!n&&i&&o>(i=Math.abs(i))&&(a=r,o=i);return a},t_=function(e,t,n){var r,i,a,s=e.vars,o=s[t],l=k,u=e._ctx;if(o)return r=s[t+"Params"],i=s.callbackScope||e,n&&eg.length&&eA(),u&&(k=u),a=r?o.apply(i,r):o.call(i),k=l,a},tx=function(e){return eH(e),e.scrollTrigger&&e.scrollTrigger.kill(!!w),1>e.progress()&&t_(e,"onInterrupt"),e},ty=[],tb=function(e){if(e)if(e=!e.name&&e.default||e,Y()||e.headless){var t=e.name,n=$(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:ed,render:nu,add:t0,kill:nd,modifier:nc,rawVars:0},a={targetTest:0,get:0,getSetter:na,aliases:{},register:0};if(tA(),e!==r){if(e_[t])return;ez(r,ez(eF(e,i),a)),eI(r.prototype,eI(i,eF(e,a))),e_[r.prop=t]=r,e.targetTest&&(eb.push(r),em[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}ec(t,r),e.register&&e.register(nC,r,np)}else ty.push(e)},tw={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},tk=function(e,t,n){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(n-t)*e*6:e<.5?n:3*e<2?t+(n-t)*(2/3-e)*6:t)*255+.5|0},tT=function(e,t,n){var r,i,a,s,o,l,u,c,d,h,f=e?U(e)?[e>>16,e>>8&255,255&e]:0:tw.black;if(!f){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),tw[e])f=tw[e];else if("#"===e.charAt(0)){if(e.length<6&&(r=e.charAt(1),e="#"+r+r+(i=e.charAt(2))+i+(a=e.charAt(3))+a+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(f=parseInt(e.substr(1,6),16))>>16,f>>8&255,255&f,parseInt(e.substr(7),16)/255];f=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3))if(f=h=e.match(Q),t){if(~e.indexOf("="))return f=e.match(Z),n&&f.length<4&&(f[3]=1),f}else s=f[0]%360/360,o=f[1]/100,i=(l=f[2]/100)<=.5?l*(o+1):l+o-l*o,r=2*l-i,f.length>3&&(f[3]*=1),f[0]=tk(s+1/3,r,i),f[1]=tk(s,r,i),f[2]=tk(s-1/3,r,i);else f=e.match(Q)||tw.transparent;f=f.map(Number)}return t&&!h&&(r=f[0]/255,l=((u=Math.max(r,i=f[1]/255,a=f[2]/255))+(c=Math.min(r,i,a)))/2,u===c?s=o=0:(d=u-c,o=l>.5?d/(2-u-c):d/(u+c),s=(u===r?(i-a)/d+6*(i<a):u===i?(a-r)/d+2:(r-i)/d+4)*60),f[0]=~~(s+.5),f[1]=~~(100*o+.5),f[2]=~~(100*l+.5)),n&&f.length<4&&(f[3]=1),f},tS=function(e){var t=[],n=[],r=-1;return e.split(tj).forEach(function(e){var i=e.match(ee)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},tM=function(e,t,n){var r,i,a,s,o="",l=(e+o).match(tj),u=t?"hsla(":"rgba(",c=0;if(!l)return e;if(l=l.map(function(e){return(e=tT(e,t,1))&&u+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),n&&(a=tS(e),(r=n.c).join(o)!==a.c.join(o)))for(s=(i=e.replace(tj,"1").split(ee)).length-1;c<s;c++)o+=i[c]+(~r.indexOf(c)?l.shift()||u+"0,0,0,0)":(a.length?a:l.length?l:n).shift());if(!i)for(s=(i=e.split(tj)).length-1;c<s;c++)o+=i[c]+l[c];return o+i[s]},tj=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in tw)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),tC=/hsl[a]?\(/,tO=function(e){var t,n=e.join(" ");if(tj.lastIndex=0,tj.test(n))return t=tC.test(n),e[1]=tM(e[1],t),e[0]=tM(e[0],t,tS(e[1])),!0},tE=(h=Date.now,f=500,p=33,g=m=h(),v=1e3/240,_=1e3/240,x=[],y=function e(t){var n,r,i,a,l=h()-g,y=!0===t;if((l>f||l<0)&&(m+=l-p),g+=l,((n=(i=g-m)-_)>0||y)&&(a=++u.frame,c=i-1e3*u.time,u.time=i/=1e3,_+=n+(n>=v?4:v-n),r=1),y||(s=o(e)),r)for(d=0;d<x.length;d++)x[d](i,c,a,t)},u={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(e){return c/(1e3/(e||60))},wake:function(){C&&(!M&&Y()&&(j=(S=M=window).document||{},ea.gsap=nC,(S.gsapVersions||(S.gsapVersions=[])).push(nC.version),eo(es||S.GreenSockGlobals||!S.gsap&&S||{}),ty.forEach(tb)),l="u">typeof requestAnimationFrame&&requestAnimationFrame,s&&u.sleep(),o=l||function(e){return setTimeout(e,_-1e3*u.time+1|0)},A=1,y(2))},sleep:function(){(l?cancelAnimationFrame:clearTimeout)(s),A=0,o=ed},lagSmoothing:function(e,t){p=Math.min(t||33,f=e||1/0)},fps:function(e){v=1e3/(e||240),_=1e3*u.time+v},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),u.remove(r)}:e;return u.remove(e),x[n?"unshift":"push"](r),tA(),r},remove:function(e,t){~(t=x.indexOf(e))&&x.splice(t,1)&&d>=t&&d--},_listeners:x}),tA=function(){return!A&&tE.wake()},tR={},tP=/^[\d.\-M][\d.\-,\s]/,tN=/["']/g,tD=function(e){for(var t,n,r,i={},a=e.substr(1,e.length-3).split(":"),s=a[0],o=1,l=a.length;o<l;o++)n=a[o],t=o!==l-1?n.lastIndexOf(","):n.length,r=n.substr(0,t),i[s]=isNaN(r)?r.replace(tN,"").trim():+r,s=n.substr(t+1).trim();return i},tz=function(e){var t=e.indexOf("(")+1,n=e.indexOf(")"),r=e.indexOf("(",t);return e.substring(t,~r&&r<n?e.indexOf(")",n+1):n)},tI=function(e){var t=(e+"").split("("),n=tR[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf("{")?[tD(t[1])]:tz(e).split(",").map(eN)):tR._CE&&tP.test(e)?tR._CE("",e):n},tL=function(e){return function(t){return 1-e(1-t)}},tF=function(e,t){return e&&($(e)?e:tR[e]||tI(e))||t},tB=function(e,t,n,r){void 0===n&&(n=function(e){return 1-t(1-e)}),void 0===r&&(r=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var i,a={easeIn:t,easeOut:n,easeInOut:r};return eM(e,function(e){for(var t in tR[e]=ea[e]=a,tR[i=e.toLowerCase()]=n,a)tR[i+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=tR[e+"."+t]=a[t]}),a},t$=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},tU=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),s=a/N*(Math.asin(1/i)||0),o=function(e){return 1===e?1:i*Math.pow(2,-10*e)*F((e-s)*a)+1},l="out"===t?o:"in"===t?function(e){return 1-o(1-e)}:t$(o);return a=N/a,l.config=function(n,r){return e(t,n,r)},l},tq=function e(t,n){void 0===n&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i="out"===t?r:"in"===t?function(e){return 1-r(1-e)}:t$(r);return i.config=function(n){return e(t,n)},i};eM("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;tB(e+",Power"+(n-1),t?function(e){return Math.pow(e,n)}:function(e){return e},function(e){return 1-Math.pow(1-e,n)},function(e){return e<.5?Math.pow(2*e,n)/2:1-Math.pow((1-e)*2,n)/2})}),tR.Linear.easeNone=tR.none=tR.Linear.easeIn,tB("Elastic",tU("in"),tU("out"),tU()),tX=2*(tV=1/2.75),tW=2.5*tV,tB("Bounce",function(e){return 1-tJ(1-e)},tJ=function(e){return e<tV?7.5625*e*e:e<tX?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<tW?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),tB("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),tB("Circ",function(e){return-(I(1-e*e)-1)}),tB("Sine",function(e){return 1===e?1:-L(e*D)+1}),tB("Back",tq("in"),tq("out"),tq()),tR.SteppedEase=tR.steps=ea.SteppedEase={config:function(e,t){void 0===e&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=.99999999;return function(e){return((r*tr(0,a,e)|0)+i)*n}}},P.ease=tR["quad.out"],eM("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return ew+=e+","+e+"Params,"});var tH=function(e,t){this.id=z++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:eS,this.set=t?t.getSetter:na},tK=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,e8(this,+e.duration,1,1),this.data=e.data,k&&(this._ctx=k,k.data.push(this)),A||tE.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,e8(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(tA(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(eQ(this,e),!n._dp||n.parent||eZ(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:-((n.totalDuration()-n._tTime)/n._ts))&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&e0(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),eP(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+eX(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(1&this.iteration())?1-e:e)+eX(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?eW(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return -1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?eJ(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(tr(-Math.abs(this._delay),this.totalDuration(),n),!1!==t),eG(this),eY(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(tA(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=eC(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&e0(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(K(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?eJ(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=ep);var t=w;return w=e,eR(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),w=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,e7(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,e7(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(te(this,e),K(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,K(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,n=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=n&&e<this.endTime(!0)-1e-8)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+"Params"]=n),"onUpdate"===e&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=$(e)?e:eD,a=function(){var e=t.then;t.then=null,n&&n(),$(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){tx(this)},e}();ez(tK.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var tY=function(e){function t(t,n){var r;return void 0===t&&(t={}),(r=e.call(this,t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=K(t.sortChildren),T&&e0(t.parent||T,i(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&e1(i(r),t.scrollTrigger),r}a(t,e);var n=t.prototype;return n.to=function(e,t,n){return tt(0,arguments,this),this},n.from=function(e,t,n){return tt(1,arguments,this),this},n.fromTo=function(e,t,n,r){return tt(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,eB(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new ne(e,t,te(this,n),1),this},n.call=function(e,t,n){return e0(this,ne.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,s){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=s,n.parent=this,new ne(e,n,te(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,s){return n.runBackwards=1,eB(n).immediateRender=K(n.immediateRender),this.staggerTo(e,t,n,r,i,a,s)},n.staggerFromTo=function(e,t,n,r,i,a,s,o){return r.startAt=n,eB(r).immediateRender=K(r.immediateRender),this.staggerTo(e,t,r,i,a,s,o)},n.render=function(e,t,n){var r,i,a,s,o,l,u,c,d,h,f,p,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,_=e<=0?0:eC(e),x=this._zTime<0!=e<0&&(this._initted||!v);if(this!==T&&_>g&&e>=0&&(_=g),_!==this._tTime||n||x){if(m!==this._time&&v&&(_+=this._time-m,e+=this._time-m),r=_,d=this._start,l=!(c=this._ts),x&&(v||(m=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(f=this._yoyo,o=v+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*o+e,t,n);if(r=eC(_%o),_===g?(s=this._repeat,r=v):((s=~~(h=eC(_/o)))&&s===h&&(r=v,s--),r>v&&(r=v)),h=eW(this._tTime,o),!m&&this._tTime&&h!==s&&this._tTime-h*o-this._dur<=0&&(h=s),f&&1&s&&(r=v-r,p=1),s!==h&&!this._lock){var y=f&&1&h,b=y===(f&&1&s);if(s<h&&(y=!y),m=y?0:_%v?v:_,this._lock=1,this.render(m||(p?0:eC(s*o)),t,!v)._lock=0,this._tTime=_,!t&&this.parent&&t_(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1,h=s),m&&m!==this._time||!this._ts!==l||this.vars.onRepeat&&!this.parent&&!this._act||(v=this._dur,g=this._tDur,b&&(this._lock=2,m=y?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=e4(this,eC(m),eC(r)))&&(_-=r-(r=u._start)),this._tTime=_,this._time=r,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,m=0),!m&&_&&v&&!t&&!h&&(t_(this,"onStart"),this._tTime!==_))return this;if(r>=m&&e>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&u!==i){if(i.parent!==this)return this.render(e,t,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,t,n),r!==this._time||!this._ts&&!l){u=0,a&&(_+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var k=e<0?e:r;i;){if(a=i._prev,(i._act||k<=i._end)&&i._ts&&u!==i){if(i.parent!==this)return this.render(e,t,n);if(i.render(i._ts>0?(k-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(k-i._start)*i._ts,t,n||w&&eR(i)),r!==this._time||!this._ts&&!l){u=0,a&&(_+=this._zTime=k?-1e-8:1e-8);break}}i=a}}if(u&&!t&&(this.pause(),u.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=d,eG(this),this.render(e,t,n);this._onUpdate&&!t&&t_(this,"onUpdate",!0),(_===g&&this._tTime>=this.totalDuration()||!_&&m)&&(d===this._start||Math.abs(c)!==Math.abs(this._ts))&&!this._lock&&((e||!v)&&(_===g&&this._ts>0||!_&&this._ts<0)&&eH(this,1),t||e<0&&!m||!_&&!m&&g||(t_(this,_===g&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(_<g&&this.timeScale()>0)&&this._prom()))}return this},n.add=function(e,t){var n=this;if(U(t)||(t=te(this,t,e)),!(e instanceof tK)){if(W(e))return e.forEach(function(e){return n.add(e,t)}),this;if(B(e))return this.addLabel(e,t);if(!$(e))return this;e=ne.delayedCall(0,e)}return this!==e?e0(this,e,t):this},n.getChildren=function(e,t,n,r){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof ne?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return B(e)?this.removeLabel(e):$(e)?this.killTweensOf(e):(e.parent===this&&eq(this,e),e===this._recent&&(this._recent=this._last),eK(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=eC(tE.time-(this._ts>0?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=te(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=ne.delayedCall(0,t||ed,n);return r.data="isPause",this._hasPause=1,e0(this,r,te(this,e))},n.removePause=function(e){var t=this._first;for(e=te(this,e);t;)t._start===e&&"isPause"===t.data&&eH(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)tG!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n,r=[],i=to(e),a=this._first,s=U(t);a;)a instanceof ne?eE(a._targets,i)&&(s?(!tG||a._initted&&a._ts)&&a.globalTime(0)<=t&&a.globalTime(a.totalDuration())>t:!t||a.isActive())&&r.push(a):(n=a.getTweensOf(i,t)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(e,t){t=t||{};var n,r=this,i=te(r,e),a=t,s=a.startAt,o=a.onStart,l=a.onStartParams,u=a.immediateRender,c=ne.to(r,ez({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:t.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale())||1e-8,onStart:function(){if(r.pause(),!n){var e=t.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale());c._dur!==e&&e8(c,e,0,1).render(c._time,!0,!0),n=1}o&&o.apply(c,l||[])}},t));return u?c.render(0):c},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,ez({startAt:{time:te(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return void 0===e&&(e=this._time),tv(this,te(this,e))},n.previousLabel=function(e){return void 0===e&&(e=this._time),tv(this,te(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},n.shiftChildren=function(e,t,n){void 0===n&&(n=0);var r,i=this._first,a=this.labels;for(e=eC(e);i;)i._start>=n&&(i._start+=e,i._end+=e),i=i._next;if(t)for(r in a)a[r]>=n&&(a[r]+=e);return eK(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){void 0===e&&(e=!0);for(var t,n=this._first;n;)t=n._next,this.remove(n),n=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),eK(this)},n.totalDuration=function(e){var t,n,r,i=0,a=this._last,s=1e8;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-e:e));if(this._dirty){for(r=this.parent;a;)t=a._prev,a._dirty&&a.totalDuration(),(n=a._start)>s&&this._sort&&a._ts&&!this._lock?(this._lock=1,e0(this,a,n-a._delay,1)._lock=0):s=n,n<0&&a._ts&&(i-=n,(!r&&!this._dp||r&&r.smoothChildTiming)&&(this._start+=eC(n/this._ts),this._time-=n,this._tTime-=n),this.shiftChildren(-n,!1,-Infinity),s=0),a._end>i&&a._ts&&(i=a._end),a=t;e8(this,this===T&&this._time>i?this._time:i,1,1),this._dirty=0}return this._tDur},t.updateRoot=function(e){if(T._ts&&(eP(T,eJ(e,T)),O=tE.frame),tE.frame>=ey){ey+=R.autoSleep||120;var t=T._first;if((!t||!t._ts)&&R.autoSleep&&tE._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||tE.sleep()}}},t}(tK);ez(tY.prototype,{_lock:0,_hasPause:0,_forcing:0});var tV,tX,tW,tJ,tG,tQ,tZ=function(e,t,n,r,i,a,s){var o,l,u,c,d,h,f,p,m=new np(this._pt,e,t,0,1,nl,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",r+="",(f=~r.indexOf("random("))&&(r=tm(r)),a&&(a(p=[n,r],e,t),n=p[0],r=p[1]),l=n.match(et)||[];o=et.exec(r);)c=o[0],d=r.substring(g,o.index),u?u=(u+1)%5:"rgba("===d.substr(-5)&&(u=1),c!==l[v++]&&(h=parseFloat(l[v-1])||0,m._pt={_next:m._pt,p:d||1===v?d:",",s:h,c:"="===c.charAt(1)?eO(h,c)-h:parseFloat(c)-h,m:u&&u<4?Math.round:0},g=et.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=s,(en.test(r)||f)&&(m.e=0),this._pt=m,m},t0=function(e,t,n,r,i,a,s,o,l,u){$(r)&&(r=r(i||0,e,a));var c,d=e[t],h="get"!==n?n:$(d)?l?e[t.indexOf("set")||!$(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():d,f=$(d)?l?nr:nn:nt;if(B(r)&&(~r.indexOf("random(")&&(r=tm(r)),"="===r.charAt(1)&&((c=eO(h,r)+(ti(h)||0))||0===c)&&(r=c)),!u||h!==r||tQ)return isNaN(h*r)||""===r?(d||t in e||el(t,r),tZ.call(this,e,t,h,r,f,o||R.stringFilter,l)):(c=new np(this._pt,e,t,+h||0,r-(h||0),"boolean"==typeof d?no:ns,0,f),l&&(c.fp=l),s&&c.modifier(s,this,e),this._pt=c)},t1=function(e,t,n,r,i){if($(e)&&(e=t8(e,i,t,n,r)),!H(e)||e.style&&e.nodeType||W(e)||X(e))return B(e)?t8(e,i,t,n,r):e;var a,s={};for(a in e)s[a]=t8(e[a],i,t,n,r);return s},t2=function(e,t,n,r,i,a){var s,o,l,u;if(e_[e]&&!1!==(s=new e_[e]).init(i,s.rawVars?t[e]:t1(t[e],r,i,a,n),n,r,a)&&(n._pt=o=new np(n._pt,i,e,0,1,s.render,s,0,s.priority),n!==E))for(l=n._ptLookup[n._targets.indexOf(i)],u=s._props.length;u--;)l[s._props[u]]=o;return s},t5=function e(t,n,r){var i,a,s,o,l,u,c,d,h,f,p,m,g,v=t.vars,_=v.ease,x=v.startAt,y=v.immediateRender,k=v.lazy,S=v.onUpdate,M=v.runBackwards,j=v.yoyoEase,C=v.keyframes,O=v.autoRevert,E=t._dur,A=t._startAt,R=t._targets,N=t.parent,D=N&&"nested"===N.data?N.vars.targets:R,z="auto"===t._overwrite&&!b,I=t.timeline,L=v.easeReverse||j;if(!I||C&&_||(_="none"),t._ease=tF(_,P.ease),t._rEase=L&&(tF(L)||t._ease),t._from=!I&&!!v.runBackwards,t._from&&(t.ratio=1),!I||C&&!v.stagger){if(m=(d=R[0]?eT(R[0]).harness:0)&&v[d.prop],i=eF(v,em),A&&(A._zTime<0&&A.progress(1),n<0&&M&&y&&!O?A.render(-1,!0):A.revert(M&&E?ef:eh),A._lazy=0),x){if(eH(t._startAt=ne.set(R,ez({data:"isStart",overwrite:!1,parent:N,immediateRender:!0,lazy:!A&&K(k),startAt:null,delay:0,onUpdate:S&&function(){return t_(t,"onUpdate")},stagger:0},x))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(w||!y&&!O)&&t._startAt.revert(ef),y&&E&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(M&&E&&!A)if(n&&(y=!1),s=ez({overwrite:!1,data:"isFromStart",lazy:y&&!A&&K(k),immediateRender:y,stagger:0,parent:N},i),m&&(s[d.prop]=m),eH(t._startAt=ne.set(R,s)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(w?t._startAt.revert(ef):t._startAt.render(-1,!0)),t._zTime=n,y){if(!n)return}else e(t._startAt,1e-8,1e-8);for(t._pt=t._ptCache=0,k=E&&K(k)||k&&!E,a=0;a<R.length;a++){if(c=(l=R[a])._gsap||ek(R)[a]._gsap,t._ptLookup[a]=f={},ev[c.id]&&eg.length&&eA(),p=D===R?a:D.indexOf(l),d&&!1!==(h=new d).init(l,m||i,t,p,D)&&(t._pt=o=new np(t._pt,l,h.name,0,1,h.render,h,0,h.priority),h._props.forEach(function(e){f[e]=o}),h.priority&&(u=1)),!d||m)for(s in i)e_[s]&&(h=t2(s,i,t,p,l,D))?h.priority&&(u=1):f[s]=o=t0.call(t,l,s,"get",i[s],p,D,0,v.stringFilter);t._op&&t._op[a]&&t.kill(l,t._op[a]),z&&t._pt&&(tG=t,T.killTweensOf(l,f,t.globalTime(n)),g=!t.parent,tG=0),t._pt&&k&&(ev[c.id]=1)}u&&nf(t),t._onInit&&t._onInit(t)}t._onUpdate=S,t._initted=(!t._op||t._pt)&&!g,C&&n<=0&&I.render(1e8,!0,!0)},t3=function(e,t,n,r,i,a,s,o){var l,u,c,d,h=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!h)for(h=e._ptCache[t]=[],c=e._ptLookup,d=e._targets.length;d--;){if((l=c[d][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return tQ=1,e.vars[t]="+=0",t5(e,s),tQ=0,o?eu(t+" not eligible for reset. Try splitting into individual properties"):1;h.push(l)}for(d=h.length;d--;)(l=(u=h[d])._pt||u).s=(r||0===r)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&(u.e=ej(n)+ti(u.e)),u.b&&(u.b=l.s+ti(u.b))},t6=function(e,t){var n,r,i,a,s=e[0]?eT(e[0]).harness:0,o=s&&s.aliases;if(!o)return t;for(r in n=eI({},t),o)if(r in n)for(i=(a=o[r].split(",")).length;i--;)n[a[i]]=n[r];return n},t4=function(e,t,n,r){var i,a,s=t.ease||r||"power1.inOut";if(W(t))a=n[e]||(n[e]=[]),t.forEach(function(e,n){return a.push({t:n/(t.length-1)*100,v:e,e:s})});else for(i in t)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(e),v:t[i],e:s})},t8=function(e,t,n,r,i){return $(e)?e.call(t,n,r,i):B(e)&&~e.indexOf("random(")?tm(e):e},t7=ew+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",t9={};eM(t7+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return t9[e]=1});var ne=function(e){function t(t,n,r,a){"number"==typeof n&&(r.duration=n,n=r,r=null);var s,o,l,u,c,d,h,f,p=e.call(this,a?n:eB(n))||this,m=p.vars,g=m.duration,v=m.delay,_=m.immediateRender,x=m.stagger,y=m.overwrite,w=m.keyframes,k=m.defaults,S=m.scrollTrigger,M=n.parent||T,j=(W(t)||X(t)?U(t[0]):"length"in n)?[t]:to(t);if(p._targets=j.length?ek(j):eu("GSAP target "+t+" not found. https://gsap.com",!R.nullTargetWarn)||[],p._ptLookup=[],p._overwrite=y,w||x||V(g)||V(v)){var C=(n=p.vars).easeReverse||n.yoyoEase;if((s=p.timeline=new tY({data:"nested",defaults:k||{},targets:M&&"nested"===M.data?M.vars.targets:j})).kill(),s.parent=s._dp=i(p),s._start=0,x||V(g)||V(v)){if(u=j.length,h=x&&tc(x),H(x))for(c in x)~t7.indexOf(c)&&(f||(f={}),f[c]=x[c]);for(o=0;o<u;o++)(l=eF(n,t9)).stagger=0,C&&(l.easeReverse=C),f&&eI(l,f),d=j[o],l.duration=+t8(g,i(p),o,d,j),l.delay=(+t8(v,i(p),o,d,j)||0)-p._delay,!x&&1===u&&l.delay&&(p._delay=v=l.delay,p._start+=v,l.delay=0),s.to(d,l,h?h(o,d,j):0),s._ease=tR.none;s.duration()?g=v=0:p.timeline=0}else if(w){eB(ez(s.vars.defaults,{ease:"none"})),s._ease=tF(w.ease||n.ease||"none");var O,E,A,P=0;if(W(w))w.forEach(function(e){return s.to(j,e,">")}),s.duration();else{for(c in l={},w)"ease"===c||"easeEach"===c||t4(c,w[c],l,w.easeEach);for(c in l)for(O=l[c].sort(function(e,t){return e.t-t.t}),P=0,o=0;o<O.length;o++)(A={ease:(E=O[o]).e,duration:(E.t-(o?O[o-1].t:0))/100*g})[c]=E.v,s.to(j,A,P),P+=A.duration;s.duration()<g&&s.to({},{duration:g-s.duration()})}}g||p.duration(g=s.duration())}else p.timeline=0;return!0!==y||b||(tG=i(p),T.killTweensOf(j),tG=0),e0(M,i(p),r),n.reversed&&p.reverse(),n.paused&&p.paused(!0),(_||!g&&!w&&p._start===eC(M._time)&&K(_)&&function e(t){return!t||t._ts&&e(t.parent)}(i(p))&&"nested"!==M.data)&&(p._tTime=-1e-8,p.render(Math.max(0,-v)||0)),S&&e1(i(p),S),p}a(t,e);var n=t.prototype;return n.render=function(e,t,n){var r,i,a,s,o,l,u,c,d=this._time,h=this._tDur,f=this._dur,p=e<0,m=e>h-1e-8&&!p?h:e<1e-8?0:e;if(f){if(m!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==p||this._lazy){if(r=m,c=this.timeline,this._repeat){if(s=f+this._rDelay,this._repeat<-1&&p)return this.totalTime(100*s+e,t,n);if(r=eC(m%s),m===h?(a=this._repeat,r=f):(a=~~(o=eC(m/s)))&&a===o?(r=f,a--):r>f&&(r=f),(l=this._yoyo&&1&a)&&(r=f-r),o=eW(this._tTime,s),r===d&&!n&&this._initted&&a===o)return this._tTime=m,this;a!==o&&this.vars.repeatRefresh&&!l&&!this._lock&&r!==s&&this._initted&&(this._lock=n=1,this.render(eC(s*a),!0).invalidate()._lock=0)}if(!this._initted){if(e2(this,p?e:r,n,t,m))return this._tTime=0,this;if(d!==this._time&&!(n&&this.vars.repeatRefresh&&a!==o))return this;if(f!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=r<d;if(g!==this._inv){var v=g?d:f-d;this._inv=g,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=d,this._invRecip=v?(g?-1:1)/v:0,this._invScale=g?-this.ratio:1-this.ratio,this._invEase=g?this._rEase:this._ease}this.ratio=u=this._invRatio+this._invScale*this._invEase((r-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(r/f);if(this._from&&(this.ratio=u=1-u),this._tTime=m,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),!d&&m&&!t&&!o&&(t_(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(u,i.d),i=i._next;c&&c.render(e<0?e:c._dur*c._ease(r/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(p&&eV(this,e,t,n),t_(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!t&&this.parent&&t_(this,"onRepeat"),(m===this._tDur||!m)&&this._tTime===m&&(p&&!this._onUpdate&&eV(this,e,!0,!0),(e||!f)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&eH(this,1),!t&&!(p&&!d)&&(m||d||l)&&(t_(this,m===h?"onComplete":"onReverseComplete",!0),this._prom&&!(m<h&&this.timeScale()>0)&&this._prom()))}}else e6(this,e,t,n);return this},n.targets=function(){return this._targets},n.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){A||tE.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||t5(this,a),t3(this,e,t,n,r,this._ease(a/this._dur),a,i))?this.resetTo(e,t,n,r,1):(eQ(this,0),this.parent||eU(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?tx(this):this.scrollTrigger&&this.scrollTrigger.kill(!!w),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,tG&&!0!==tG.vars.overwrite)._first||tx(this),this.parent&&n!==this.timeline.totalDuration()&&e8(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,s,o,l,u,c=this._targets,d=e?to(e):c,h=this._ptLookup,f=this._pt;if((!t||"all"===t)&&e$(c,d))return"all"===t&&(this._pt=0),tx(this);for(r=this._op=this._op||[],"all"!==t&&(B(t)&&(o={},eM(t,function(e){return o[e]=1}),t=o),t=t6(c,t)),u=c.length;u--;)if(~d.indexOf(c[u]))for(o in i=h[u],"all"===t?(r[u]=t,s=i,a={}):(a=r[u]=r[u]||{},s=t),s)(l=i&&i[o])&&("kill"in l.d&&!0!==l.d.kill(o)||eq(this,l,"_pt"),delete i[o]),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&f&&tx(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return tt(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return tt(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return T.killTweensOf(e,t,n)},t}(tK);ez(ne.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),eM("staggerTo,staggerFrom,staggerFromTo",function(e){ne[e]=function(){var t=new tY,n=ta.call(arguments,0);return n.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,n)}});var nt=function(e,t,n){return e[t]=n},nn=function(e,t,n){return e[t](n)},nr=function(e,t,n,r){return e[t](r.fp,n)},ni=function(e,t,n){return e.setAttribute(t,n)},na=function(e,t){return $(e[t])?nn:q(e[t])&&e.setAttribute?ni:nt},ns=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},no=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},nl=function(e,t){var n=t._pt,r="";if(!e&&t.b)r=t.b;else if(1===e&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},nu=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},nc=function(e,t,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(e,t,n),a=i},nd=function(e){for(var t,n,r=this._pt;r;)n=r._next,(r.p!==e||r.op)&&r.op!==e?r.dep||(t=1):eq(this,r,"_pt"),r=n;return!t},nh=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},nf=function(e){for(var t,n,r,i,a=e._pt;a;){for(t=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=t}e._pt=r},np=function(){function e(e,t,n,r,i,a,s,o,l){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||ns,this.d=s||this,this.set=o||nt,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=nh,this.m=e,this.mt=n,this.tween=t},e}();eM(ew+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(e){return em[e]=1}),ea.TweenMax=ea.TweenLite=ne,ea.TimelineLite=ea.TimelineMax=tY,T=new tY({sortChildren:!1,defaults:P,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),R.stringFilter=tO;var nm=[],ng={},nv=[],n_=0,nx=0,ny=function(e){return(ng[e]||nv).map(function(e){return e()})},nb=function(){var e=Date.now(),t=[];e-n_>2&&(ny("matchMediaInit"),nm.forEach(function(e){var n,r,i,a,s=e.queries,o=e.conditions;for(r in s)(n=S.matchMedia(s[r]).matches)&&(i=1),n!==o[r]&&(o[r]=n,a=1);a&&(e.revert(),i&&t.push(e))}),ny("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),n_=e,ny("matchMedia"))},nw=function(){function e(e,t){this.selector=t&&tl(t),this.data=[],this._r=[],this.isReverted=!1,this.id=nx++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){$(e)&&(n=t,t=e,e=$);var r=this,i=function(){var e,i=k,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=tl(n)),k=r,e=t.apply(r,arguments),$(e)&&r._r.push(e),k=i,r.selector=a,r.isReverted=!1,e};return r.last=i,e===$?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=k;k=null,e(this),k=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof ne&&!(n.parent&&"nested"===n.parent.data)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e){for(var r,i=n.getTweens(),a=n.data.length;a--;)"isFlip"===(r=n.data[a]).data&&(r.revert(),r.getChildren(!0,!0,!1).forEach(function(e){return i.splice(i.indexOf(e),1)}));for(i.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),a=n.data.length;a--;)(r=n.data[a])instanceof tY?"nested"!==r.data&&(r.scrollTrigger&&r.scrollTrigger.revert(),r.kill()):r instanceof ne||!r.revert||r.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0}else this.data.forEach(function(e){return e.kill&&e.kill()});if(this.clear(),t)for(var s=nm.length;s--;)nm[s].id===this.id&&nm.splice(s,1)},t.revert=function(e){this.kill(e||{})},e}(),nk=function(){function e(e){this.contexts=[],this.scope=e,k&&k.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){H(e)||(e={matches:e});var r,i,a,s=new nw(0,n||this.scope),o=s.conditions={};for(i in k&&!s.selector&&(s.selector=k.selector),this.contexts.push(s),t=s.add("onMatch",t),s.queries=e,e)"all"===i?a=1:(r=S.matchMedia(e[i]))&&(0>nm.indexOf(s)&&nm.push(s),(o[i]=r.matches)&&(a=1),r.addListener?r.addListener(nb):r.addEventListener("change",nb));return a&&t(s,function(e){return s.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),nT={registerPlugin:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return tb(e)})},timeline:function(e){return new tY(e)},getTweensOf:function(e,t){return T.getTweensOf(e,t)},getProperty:function(e,t,n,r){B(e)&&(e=to(e)[0]);var i=eT(e||{}).get,a=n?eD:eN;return"native"===n&&(n=""),e?t?a((e_[t]&&e_[t].get||i)(e,t,n,r)):function(t,n,r){return a((e_[t]&&e_[t].get||i)(e,t,n,r))}:e},quickSetter:function(e,t,n){if((e=to(e)).length>1){var r=e.map(function(e){return nC.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=e_[t],s=eT(e),o=s.harness&&(s.harness.aliases||{})[t]||t,l=a?function(t){var r=new a;E._pt=0,r.init(e,n?t+n:t,E,0,[e]),r.render(1,r),E._pt&&nu(1,E)}:s.set(e,o);return a?l:function(t){return l(e,o,n?t+n:t,s,1)}},quickTo:function(e,t,n){var r,i=nC.to(e,ez(((r={})[t]="+=0.1",r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return T.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=tF(e.ease,P.ease)),eL(P,e||{})},config:function(e){return eL(R,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||"").split(",").forEach(function(e){return e&&!e_[e]&&!ea[e]&&eu(t+" effect requires "+e+" plugin.")}),ex[t]=function(e,t,r){return n(to(e),ez(t||{},i),r)},a&&(tY.prototype[t]=function(e,n,r){return this.add(ex[t](e,H(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){tR[e]=tF(t)},parseEase:function(e,t){return arguments.length?tF(e,t):tR},getById:function(e){return T.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var n,r,i=new tY(e);for(i.smoothChildTiming=K(e.smoothChildTiming),T.remove(i),i._dp=0,i._time=i._tTime=T._time,n=T._first;n;)r=n._next,(t||!(!n._dur&&n instanceof ne&&n.vars.onComplete===n._targets[0]))&&e0(i,n,n._start-n._delay),n=r;return e0(T,i,0),i},context:function(e,t){return e?new nw(e,t):k},matchMedia:function(e){return new nk(e)},matchMediaRefresh:function(){return nm.forEach(function(e){var t,n,r=e.conditions;for(n in r)r[n]&&(r[n]=!1,t=1);t&&e.revert()})||nb()},addEventListener:function(e,t){var n=ng[e]||(ng[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=ng[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:function e(t,n,r){var i=n-t;return W(t)?tp(t,e(0,t.length),n):tn(r,function(e){return(i+(e-t)%i)%i+t})},wrapYoyo:function e(t,n,r){var i=n-t,a=2*i;return W(t)?tp(t,e(0,t.length-1),n):tn(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},distribute:tc,random:tf,snap:th,normalize:function(e,t,n){return tg(e,t,0,1,n)},getUnit:ti,clamp:function(e,t,n){return tn(n,function(n){return tr(e,t,n)})},splitColor:tT,toArray:to,selector:tl,mapRange:tg,pipe:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(n){return e(parseFloat(n))+(t||ti(n))}},interpolate:function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var s,o,l,u,c,d=B(t),h={};if(!0===r&&(i=1)&&(r=null),d)t={p:t},n={p:n};else if(W(t)&&!W(n)){for(l=[],c=(u=t.length)-2,o=1;o<u;o++)l.push(e(t[o-1],t[o]));u--,a=function(e){var t=Math.min(c,~~(e*=u));return l[t](e-t)},r=n}else i||(t=eI(W(t)?[]:{},t));if(!l){for(s in n)t0.call(h,t,s,"get",n[s]);a=function(e){return nu(e,h)||(d?t.p:t)}}}return tn(r,a)},shuffle:tu},install:eo,effects:ex,ticker:tE,updateRoot:tY.updateRoot,plugins:e_,globalTimeline:T,core:{PropTween:np,globals:ec,Tween:ne,Timeline:tY,Animation:tK,getCache:eT,_removeLinkedListItem:eq,reverting:function(){return w},context:function(e){return e&&k&&(k.data.push(e),e._ctx=k),k},suppressOverwrites:function(e){return b=e}}};eM("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return nT[e]=ne[e]}),tE.add(tY.updateRoot),E=nT.to({},{duration:0});var nS=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},nM=function(e,t){var n,r,i,a=e._targets;for(n in t)for(r=a.length;r--;)(i=e._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=nS(i,n)),i&&i.modifier&&i.modifier(t[n],e,a[r],n))},nj=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(B(n)&&(r={},eM(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}nM(e,n)}}}},nC=nT.registerPlugin({name:"attr",init:function(e,t,n,r,i){var a,s,o;for(a in this.tween=n,t)o=e.getAttribute(a)||"",(s=this.add(e,"setAttribute",(o||0)+"",t[a],r,i,0,0,a)).op=a,s.b=o,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)w?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},nj("roundProps",td),nj("modifiers"),nj("snap",th))||nT;ne.version=tY.version=nC.version="3.15.0",C=1,Y()&&tA(),tR.Power0,tR.Power1,tR.Power2,tR.Power3,tR.Power4,tR.Linear,tR.Quad,tR.Cubic,tR.Quart,tR.Quint,tR.Strong,tR.Elastic,tR.Back,tR.SteppedEase,tR.Bounce,tR.Sine,tR.Expo,tR.Circ;var nO,nE,nA,nR,nP,nN,nD,nz={},nI=180/Math.PI,nL=Math.PI/180,nF=Math.atan2,nB=/([A-Z])/g,n$=/(left|right|width|margin|padding|x)/i,nU=/[\s,\(]\S/,nq={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},nH=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},nK=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},nY=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},nV=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},nX=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},nW=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},nJ=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},nG=function(e,t,n){return e.style[t]=n},nQ=function(e,t,n){return e.style.setProperty(t,n)},nZ=function(e,t,n){return e._gsap[t]=n},n0=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},n1=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},n2=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},n5="transform",n3=n5+"Origin",n6=function e(t,n){var r=this,i=this.target,a=i.style,s=i._gsap;if(t in nz&&a){if(this.tfm=this.tfm||{},"transform"===t)return nq.transform.split(",").forEach(function(t){return e.call(r,t,n)});if(~(t=nq[t]||t).indexOf(",")?t.split(",").forEach(function(e){return r.tfm[e]=rf(i,e)}):this.tfm[t]=s.x?s[t]:rf(i,t),t===n3&&(this.tfm.zOrigin=s.zOrigin),this.props.indexOf(n5)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(n3,n,"")),t=n5}(a||n)&&this.props.push(t,n,a[t])},n4=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},n8=function(){var e,t,n=this.props,r=this.target,i=r.style,a=r._gsap;for(e=0;e<n.length;e+=3)n[e+1]?2===n[e+1]?r[n[e]](n[e+2]):r[n[e]]=n[e+2]:n[e+2]?i[n[e]]=n[e+2]:i.removeProperty("--"===n[e].substr(0,2)?n[e]:n[e].replace(nB,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)a[t]=this.tfm[t];a.svg&&(a.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(e=nN())&&e.isStart||i[n5]||(n4(i),a.zOrigin&&i[n3]&&(i[n3]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},n7=function(e,t){var n={target:e,props:[],revert:n8,save:n6};return e._gsap||nC.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return n.save(e)}),n},n9=function(e,t){var n=nO.createElementNS?nO.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):nO.createElement(e);return n&&n.style?n:nO.createElement(e)},re=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(nB,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&e(t,rn(n)||n,1)||""},rt="O,Moz,ms,Ms,Webkit".split(","),rn=function(e,t,n){var r=(t||nR).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(rt[i]+e in r););return i<0?null:(3===i?"ms":i>=0?rt[i]:"")+e},rr=function(){"u">typeof window&&window.document&&(nE=(nO=window.document).documentElement,nR=n9("div")||{style:{}},n9("div"),n3=(n5=rn(n5))+"Origin",nR.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",nD=!!rn("perspective"),nN=nC.core.reverting,nA=1)},ri=function(e){var t,n=e.ownerSVGElement,r=n9("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0);i.style.display="block",r.appendChild(i),nE.appendChild(r);try{t=i.getBBox()}catch(e){}return r.removeChild(i),nE.removeChild(r),t},ra=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},rs=function(e){var t,n;try{t=e.getBBox()}catch(r){t=ri(e),n=1}return t&&(t.width||t.height)||n||(t=ri(e)),!t||t.width||t.x||t.y?t:{x:+ra(e,["x","cx","x1"])||0,y:+ra(e,["y","cy","y1"])||0,width:0,height:0}},ro=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&rs(e))},rl=function(e,t){if(t){var n,r=e.style;t in nz&&t!==n3&&(t=n5),r.removeProperty?(("ms"===(n=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),r.removeProperty("--"===n?t:t.replace(nB,"-$1").toLowerCase())):r.removeAttribute(t)}},ru=function(e,t,n,r,i,a){var s=new np(e._pt,t,n,0,1,a?nJ:nW);return e._pt=s,s.b=r,s.e=i,e._props.push(n),s},rc={deg:1,rad:1,turn:1},rd={grid:1,flex:1},rh=function e(t,n,r,i){var a,s,o,l,u=parseFloat(r)||0,c=(r+"").trim().substr((u+"").length)||"px",d=nR.style,h=n$.test(n),f="svg"===t.tagName.toLowerCase(),p=(f?"client":"offset")+(h?"Width":"Height"),m="px"===i,g="%"===i;if(i===c||!u||rc[i]||rc[c])return u;if("px"===c||m||(u=e(t,n,r,"px")),l=t.getCTM&&ro(t),(g||"%"===c)&&(nz[n]||~n.indexOf("adius")))return a=l?t.getBBox()[h?"width":"height"]:t[p],ej(g?u/a*100:u/100*a);if(d[h?"width":"height"]=100+(m?c:i),s="rem"!==i&&~n.indexOf("adius")||"em"===i&&t.appendChild&&!f?t:t.parentNode,l&&(s=(t.ownerSVGElement||{}).parentNode),s&&s!==nO&&s.appendChild||(s=nO.body),(o=s._gsap)&&g&&o.width&&h&&o.time===tE.time&&!o.uncache)return ej(u/o.width*100);if(g&&("height"===n||"width"===n)){var v=t.style[n];t.style[n]=100+i,a=t[p],v?t.style[n]=v:rl(t,n)}else(g||"%"===c)&&!rd[re(s,"display")]&&(d.position=re(t,"position")),s===t&&(d.position="static"),s.appendChild(nR),a=nR[p],s.removeChild(nR),d.position="absolute";return h&&g&&((o=eT(s)).time=tE.time,o.width=s[p]),ej(m?a*u/100:a&&u?100/a*u:0)},rf=function(e,t,n,r){var i;return nA||rr(),t in nq&&"transform"!==t&&~(t=nq[t]).indexOf(",")&&(t=t.split(",")[0]),nz[t]&&"transform"!==t?(i=rS(e,r),i="transformOrigin"!==t?i[t]:i.svg?i.origin:rM(re(e,n3))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=r_[t]&&r_[t](e,t,n)||re(e,t)||eS(e,t)||+("opacity"===t)),n&&!~(i+"").trim().indexOf(" ")?rh(e,t,i,n)+n:i},rp=function(e,t,n,r){if(!n||"none"===n){var i=rn(t,e,1),a=i&&re(e,i,1);a&&a!==n?(t=i,n=a):"borderColor"===t&&(n=re(e,"borderTopColor"))}var s,o,l,u,c,d,h,f,p,m,g,v=new np(this._pt,e.style,t,0,1,nl),_=0,x=0;if(v.b=n,v.e=r,n+="","var(--"===(r+="").substring(0,6)&&(r=re(e,r.substring(4,r.indexOf(")")))),"auto"===r&&(d=e.style[t],e.style[t]=r,r=re(e,t)||r,d?e.style[t]=d:rl(e,t)),tO(s=[n,r]),n=s[0],r=s[1],l=n.match(ee)||[],(r.match(ee)||[]).length){for(;o=ee.exec(r);)h=o[0],p=r.substring(_,o.index),c?c=(c+1)%5:("rgba("===p.substr(-5)||"hsla("===p.substr(-5))&&(c=1),h!==(d=l[x++]||"")&&(u=parseFloat(d)||0,g=d.substr((u+"").length),"="===h.charAt(1)&&(h=eO(u,h)+g),f=parseFloat(h),m=h.substr((f+"").length),_=ee.lastIndex-m.length,m||(m=m||R.units[t]||g,_===r.length&&(r+=m,v.e+=m)),g!==m&&(u=rh(e,t,d,m)||0),v._pt={_next:v._pt,p:p||1===x?p:",",s:u,c:f-u,m:c&&c<4||"zIndex"===t?Math.round:0});v.c=_<r.length?r.substring(_,r.length):""}else v.r="display"===t&&"none"===r?nJ:nW;return en.test(r)&&(v.e=0),this._pt=v,v},rm={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},rg=function(e){var t=e.split(" "),n=t[0],r=t[1]||"50%";return("top"===n||"bottom"===n||"left"===r||"right"===r)&&(e=n,n=r,r=e),t[0]=rm[n]||n,t[1]=rm[r]||r,t.join(" ")},rv=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n,r,i,a=t.t,s=a.style,o=t.u,l=a._gsap;if("all"===o||!0===o)s.cssText="",r=1;else for(i=(o=o.split(",")).length;--i>-1;)nz[n=o[i]]&&(r=1,n="transformOrigin"===n?n3:n5),rl(a,n);r&&(rl(a,n5),l&&(l.svg&&a.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",rS(a,1),l.uncache=1,n4(s)))}},r_={clearProps:function(e,t,n,r,i){if("isFromStart"!==i.data){var a=e._pt=new np(e._pt,t,n,0,0,rv);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},rx=[1,0,0,1,0,0],ry={},rb=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},rw=function(e){var t=re(e,n5);return rb(t)?rx:t.substr(7).match(Z).map(ej)},rk=function(e,t){var n,r,i,a,s=e._gsap||eT(e),o=e.style,l=rw(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?rx:l:(l!==rx||e.offsetParent||e===nE||s.svg||(i=o.display,o.display="block",(n=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(a=1,r=e.nextElementSibling,nE.appendChild(e)),l=rw(e),i?o.display=i:rl(e,"display"),a&&(r?n.insertBefore(e,r):n?n.appendChild(e):nE.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},rT=function(e,t,n,r,i,a){var s,o,l,u,c=e._gsap,d=i||rk(e,!0),h=c.xOrigin||0,f=c.yOrigin||0,p=c.xOffset||0,m=c.yOffset||0,g=d[0],v=d[1],_=d[2],x=d[3],y=d[4],b=d[5],w=t.split(" "),k=parseFloat(w[0])||0,T=parseFloat(w[1])||0;n?d!==rx&&(o=g*x-v*_)&&(l=x/o*k+-_/o*T+(_*b-x*y)/o,u=-v/o*k+g/o*T-(g*b-v*y)/o,k=l,T=u):(k=(s=rs(e)).x+(~w[0].indexOf("%")?k/100*s.width:k),T=s.y+(~(w[1]||w[0]).indexOf("%")?T/100*s.height:T)),r||!1!==r&&c.smooth?(c.xOffset=p+((y=k-h)*g+(b=T-f)*_)-y,c.yOffset=m+(y*v+b*x)-b):c.xOffset=c.yOffset=0,c.xOrigin=k,c.yOrigin=T,c.smooth=!!r,c.origin=t,c.originIsAbsolute=!!n,e.style[n3]="0px 0px",a&&(ru(a,c,"xOrigin",h,k),ru(a,c,"yOrigin",f,T),ru(a,c,"xOffset",p,c.xOffset),ru(a,c,"yOffset",m,c.yOffset)),e.setAttribute("data-svg-origin",k+" "+T)},rS=function(e,t){var n=e._gsap||new tH(e);if("x"in n&&!t&&!n.uncache)return n;var r,i,a,s,o,l,u,c,d,h,f,p,m,g,v,_,x,y,b,w,k,T,S,M,j,C,O,E,A,P,N,D,z=e.style,I=n.scaleX<0,L=getComputedStyle(e),F=re(e,n3)||"0";return r=i=a=l=u=c=d=h=f=0,s=o=1,n.svg=!!(e.getCTM&&ro(e)),L.translate&&(("none"!==L.translate||"none"!==L.scale||"none"!==L.rotate)&&(z[n5]=("none"!==L.translate?"translate3d("+(L.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==L.rotate?"rotate("+L.rotate+") ":"")+("none"!==L.scale?"scale("+L.scale.split(" ").join(",")+") ":"")+("none"!==L[n5]?L[n5]:"")),z.scale=z.rotate=z.translate="none"),g=rk(e,n.svg),n.svg&&(n.uncache?(j=e.getBBox(),F=n.xOrigin-j.x+"px "+(n.yOrigin-j.y)+"px",M=""):M=!t&&e.getAttribute("data-svg-origin"),rT(e,M||F,!!M||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==rx&&(y=g[0],b=g[1],w=g[2],k=g[3],r=T=g[4],i=S=g[5],6===g.length?(s=Math.sqrt(y*y+b*b),o=Math.sqrt(k*k+w*w),l=y||b?nF(b,y)*nI:0,(d=w||k?nF(w,k)*nI+l:0)&&(o*=Math.abs(Math.cos(d*nL))),n.svg&&(r-=p-(p*y+m*w),i-=m-(p*b+m*k))):(D=g[6],P=g[7],O=g[8],E=g[9],A=g[10],N=g[11],r=g[12],i=g[13],a=g[14],u=(v=nF(D,A))*nI,v&&(M=T*(_=Math.cos(-v))+O*(x=Math.sin(-v)),j=S*_+E*x,C=D*_+A*x,O=-(T*x)+O*_,E=-(S*x)+E*_,A=-(D*x)+A*_,N=-(P*x)+N*_,T=M,S=j,D=C),c=(v=nF(-w,A))*nI,v&&(M=y*(_=Math.cos(-v))-O*(x=Math.sin(-v)),j=b*_-E*x,C=w*_-A*x,N=k*x+N*_,y=M,b=j,w=C),l=(v=nF(b,y))*nI,v&&(M=y*(_=Math.cos(v))+b*(x=Math.sin(v)),j=T*_+S*x,b=b*_-y*x,S=S*_-T*x,y=M,T=j),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),s=ej(Math.sqrt(y*y+b*b+w*w)),o=ej(Math.sqrt(S*S+D*D)),d=Math.abs(v=nF(T,S))>2e-4?v*nI:0,f=N?1/(N<0?-N:N):0),n.svg&&(M=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!rb(re(e,n5)),M&&e.setAttribute("transform",M))),Math.abs(d)>90&&270>Math.abs(d)&&(I?(s*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,d+=d<=0?180:-180)),t=t||n.uncache,n.x=r-((n.xPercent=r&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+"px",n.y=i-((n.yPercent=i&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+"px",n.z=a+"px",n.scaleX=ej(s),n.scaleY=ej(o),n.rotation=ej(l)+"deg",n.rotationX=ej(u)+"deg",n.rotationY=ej(c)+"deg",n.skewX=d+"deg",n.skewY=h+"deg",n.transformPerspective=f+"px",(n.zOrigin=parseFloat(F.split(" ")[2])||!t&&n.zOrigin||0)&&(z[n3]=rM(F)),n.xOffset=n.yOffset=0,n.force3D=R.force3D,n.renderTransform=n.svg?rA:nD?rE:rC,n.uncache=0,n},rM=function(e){return(e=e.split(" "))[0]+" "+e[1]},rj=function(e,t,n){var r=ti(t);return ej(parseFloat(t)+parseFloat(rh(e,"x",n+"px",r)))+r},rC=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,rE(e,t)},rO="0deg",rE=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,s=n.y,o=n.z,l=n.rotation,u=n.rotationY,c=n.rotationX,d=n.skewX,h=n.skewY,f=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,v=n.target,_=n.zOrigin,x="",y="auto"===g&&e&&1!==e||!0===g;if(_&&(c!==rO||u!==rO)){var b,w=parseFloat(u)*nL,k=Math.sin(w),T=Math.cos(w);a=rj(v,a,-(k*(b=Math.cos(w=parseFloat(c)*nL))*_)),s=rj(v,s,-(-Math.sin(w)*_)),o=rj(v,o,-(T*b*_)+_)}"0px"!==m&&(x+="perspective("+m+") "),(r||i)&&(x+="translate("+r+"%, "+i+"%) "),(y||"0px"!==a||"0px"!==s||"0px"!==o)&&(x+="0px"!==o||y?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+") "),l!==rO&&(x+="rotate("+l+") "),u!==rO&&(x+="rotateY("+u+") "),c!==rO&&(x+="rotateX("+c+") "),(d!==rO||h!==rO)&&(x+="skew("+d+", "+h+") "),(1!==f||1!==p)&&(x+="scale("+f+", "+p+") "),v.style[n5]=x||"translate(0, 0)"},rA=function(e,t){var n,r,i,a,s,o=t||this,l=o.xPercent,u=o.yPercent,c=o.x,d=o.y,h=o.rotation,f=o.skewX,p=o.skewY,m=o.scaleX,g=o.scaleY,v=o.target,_=o.xOrigin,x=o.yOrigin,y=o.xOffset,b=o.yOffset,w=o.forceCSS,k=parseFloat(c),T=parseFloat(d);h=parseFloat(h),f=parseFloat(f),(p=parseFloat(p))&&(f+=p=parseFloat(p),h+=p),h||f?(h*=nL,f*=nL,n=Math.cos(h)*m,r=Math.sin(h)*m,i=-(Math.sin(h-f)*g),a=Math.cos(h-f)*g,f&&(p*=nL,i*=s=Math.sqrt(1+(s=Math.tan(f-p))*s),a*=s,p&&(n*=s=Math.sqrt(1+(s=Math.tan(p))*s),r*=s)),n=ej(n),r=ej(r),i=ej(i),a=ej(a)):(n=m,a=g,r=i=0),(k&&!~(c+"").indexOf("px")||T&&!~(d+"").indexOf("px"))&&(k=rh(v,"x",c,"px"),T=rh(v,"y",d,"px")),(_||x||y||b)&&(k=ej(k+_-(_*n+x*i)+y),T=ej(T+x-(_*r+x*a)+b)),(l||u)&&(k=ej(k+l/100*(s=v.getBBox()).width),T=ej(T+u/100*s.height)),s="matrix("+n+","+r+","+i+","+a+","+k+","+T+")",v.setAttribute("transform",s),w&&(v.style[n5]=s)},rR=function(e,t,n,r,i){var a,s,o=B(i),l=parseFloat(i)*(o&&~i.indexOf("rad")?nI:1)-r,u=r+l+"deg";return o&&("short"===(a=i.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===a&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===a&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=s=new np(e._pt,t,n,r,l,nK),s.e=u,s.u="deg",e._props.push(n),s},rP=function(e,t){for(var n in t)e[n]=t[n];return e},rN=function(e,t,n){var r,i,a,s,o,l,u,c=rP({},n._gsap),d=n.style;for(i in c.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),d[n5]=t,r=rS(n,1),rl(n,n5),n.setAttribute("transform",a)):(a=getComputedStyle(n)[n5],d[n5]=t,r=rS(n,1),d[n5]=a),nz)(a=c[i])!==(s=r[i])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)&&(o=ti(a)!==(u=ti(s))?rh(n,i,a,u):parseFloat(a),l=parseFloat(s),e._pt=new np(e._pt,r,i,o,l-o,nH),e._pt.u=u||0,e._props.push(i));rP(r,c)};eM("padding,margin,Width,Radius",function(e,t){var n="Right",r="Bottom",i="Left",a=(t<3?["Top",n,r,i]:["Top"+i,"Top"+n,r+n,r+i]).map(function(n){return t<2?e+n:"border"+n+e});r_[t>1?"border"+e:e]=function(e,t,n,r,i){var s,o;if(arguments.length<4)return 5===(o=(s=a.map(function(t){return rf(e,t,n)})).join(" ")).split(s[0]).length?s[0]:o;s=(r+"").split(" "),o={},a.forEach(function(e,t){return o[e]=s[t]=s[t]||s[(t-1)/2|0]}),e.init(t,o,i)}});var rD={name:"css",register:rr,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a,s,o,l,u,c,d,h,f,p,m,g,v,_,x,y,b,w=this._props,k=e.style,T=n.vars.startAt;for(d in nA||rr(),this.styles=this.styles||n7(e),y=this.styles.props,this.tween=n,t)if("autoRound"!==d&&(s=t[d],!(e_[d]&&t2(d,t,n,r,e,i)))){if(u=typeof s,c=r_[d],"function"===u&&(u=typeof(s=s.call(n,r,e,i))),"string"===u&&~s.indexOf("random(")&&(s=tm(s)),c)c(this,e,d,s,n)&&(x=1);else if("--"===d.substr(0,2))a=(getComputedStyle(e).getPropertyValue(d)+"").trim(),s+="",tj.lastIndex=0,!tj.test(a)&&(h=ti(a),(f=ti(s))?h!==f&&(a=rh(e,d,a,f)+f):h&&(s+=h)),this.add(k,"setProperty",a,s,r,i,0,0,d),w.push(d),y.push(d,0,k[d]);else if("undefined"!==u){if(T&&d in T?(B(a="function"==typeof T[d]?T[d].call(n,r,e,i):T[d])&&~a.indexOf("random(")&&(a=tm(a)),ti(a+"")||"auto"===a||(a+=R.units[d]||ti(rf(e,d))||""),"="===(a+"").charAt(1)&&(a=rf(e,d))):a=rf(e,d),l=parseFloat(a),(p="string"===u&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),o=parseFloat(s),d in nq&&("autoAlpha"===d&&(1===l&&"hidden"===rf(e,"visibility")&&o&&(l=0),y.push("visibility",0,k.visibility),ru(this,k,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==d&&"transform"!==d&&~(d=nq[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in nz){if(this.styles.save(d),b=s,"string"===u&&"var(--"===s.substring(0,6)){if("calc("===(s=re(e,s.substring(4,s.indexOf(")")))).substring(0,5)){var S=e.style.perspective;e.style.perspective=s,s=re(e,"perspective"),S?e.style.perspective=S:rl(e,"perspective")}o=parseFloat(s)}if(g||((v=e._gsap).renderTransform&&!t.parseTransform||rS(e,t.parseTransform),_=!1!==t.smoothOrigin&&v.smooth,(g=this._pt=new np(this._pt,k,n5,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===d)this._pt=new np(this._pt,v,"scaleY",v.scaleY,(p?eO(v.scaleY,p+o):o)-v.scaleY||0,nH),this._pt.u=0,w.push("scaleY",d),d+="X";else if("transformOrigin"===d){y.push(n3,0,k[n3]),s=rg(s),v.svg?rT(e,s,0,_,0,this):((f=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&ru(this,v,"zOrigin",v.zOrigin,f),ru(this,k,d,rM(a),rM(s)));continue}else if("svgOrigin"===d){rT(e,s,1,_,0,this);continue}else if(d in ry){rR(this,v,d,l,p?eO(l,p+s):s);continue}else if("smoothOrigin"===d){ru(this,v,"smooth",v.smooth,s);continue}else if("force3D"===d){v[d]=s;continue}else if("transform"===d){rN(this,s,e);continue}}else d in k||(d=rn(d)||d);if(m||(o||0===o)&&(l||0===l)&&!nU.test(s)&&d in k)h=(a+"").substr((l+"").length),o||(o=0),f=ti(s)||(d in R.units?R.units[d]:h),h!==f&&(l=rh(e,d,a,f)),this._pt=new np(this._pt,m?v:k,d,l,(p?eO(l,p+o):o)-l,!m&&("px"===f||"zIndex"===d)&&!1!==t.autoRound?nX:nH),this._pt.u=f||0,m&&b!==s?(this._pt.b=a,this._pt.e=b,this._pt.r=nV):h!==f&&"%"!==f&&(this._pt.b=a,this._pt.r=nY);else if(d in k)rp.call(this,e,d,a,p?p+s:s);else if(d in e)this.add(e,d,a||e[d],p?p+s:s,r,i);else if("parseTransform"!==d){el(d,s);continue}m||(d in k?y.push(d,0,k[d]):"function"==typeof e[d]?y.push(d,2,e[d]()):y.push(d,1,a||e[d])),w.push(d)}}x&&nf(this)},render:function(e,t){if(t.tween._time||!nN())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:rf,aliases:nq,getSetter:function(e,t,n){var r=nq[t];return r&&0>r.indexOf(",")&&(t=r),t in nz&&t!==n3&&(e._gsap.x||rf(e,"x"))?n&&nP===n?"scale"===t?n0:nZ:(nP=n||{},"scale"===t?n1:n2):e.style&&!q(e.style[t])?nG:~t.indexOf("-")?nQ:na(e,t)},core:{_removeProperty:rl,_getMatrix:rk}};nC.utils.checkPrefix=rn,nC.core.getStyleSaver=n7,n=eM("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(t="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){nz[e]=1}),eM(t,function(e){R.units[e]="deg",ry[e]=1}),nq[n[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+t,eM("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");nq[t[1]]=n[t[0]]}),eM("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){R.units[e]="px"}),nC.registerPlugin(rD);var rz=nC.registerPlugin(rD)||nC;rz.core.Tween;var rI=e.i(271645);e.s(["default",0,({text:e,as:t="div",typingSpeed:n=50,initialDelay:i=0,pauseDuration:a=2e3,deletingSpeed:s=30,loop:o=!0,className:l="",showCursor:u=!0,hideCursorWhileTyping:c=!1,cursorCharacter:d="|",cursorClassName:h="",cursorBlinkDuration:f=.5,textColors:p=[],variableSpeed:m,onSentenceComplete:g,startOnVisible:v=!1,reverseMode:_=!1,...x})=>{let[y,b]=(0,rI.useState)(""),[w,k]=(0,rI.useState)(0),[T,S]=(0,rI.useState)(!1),[M,j]=(0,rI.useState)(0),[C,O]=(0,rI.useState)(!v),E=(0,rI.useRef)(null),A=(0,rI.useRef)(null),R=(0,rI.useMemo)(()=>Array.isArray(e)?e:[e],[e]),P=(0,rI.useCallback)(()=>{if(!m)return n;let{min:e,max:t}=m;return Math.random()*(t-e)+e},[m,n]);(0,rI.useEffect)(()=>{if(!v||!A.current)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&O(!0)})},{threshold:.1});return e.observe(A.current),()=>e.disconnect()},[v]),(0,rI.useEffect)(()=>{u&&E.current&&(rz.set(E.current,{opacity:1}),rz.to(E.current,{opacity:0,duration:f,repeat:-1,yoyo:!0,ease:"power2.inOut"}))},[u,f]),(0,rI.useEffect)(()=>{let e;if(!C)return;let t=R[M],r=_?t.split("").reverse().join(""):t,l=()=>{if(T)if(""===y){if(S(!1),M===R.length-1&&!o)return;g&&g(R[M],M),j(e=>(e+1)%R.length),k(0),e=setTimeout(()=>{},a)}else e=setTimeout(()=>{b(e=>e.slice(0,-1))},s);else if(w<r.length)e=setTimeout(()=>{b(e=>e+r[w]),k(e=>e+1)},m?P():n);else if(R.length>=1){if(!o&&M===R.length-1)return;e=setTimeout(()=>{S(!0)},a)}};return 0!==w||T||""!==y?l():e=setTimeout(l,i),()=>clearTimeout(e)},[w,y,T,n,s,a,R,M,o,i,C,_,m,g]);let N=c&&(w<R[M].length||T);return(0,rI.createElement)(t,{ref:A,className:`inline-block whitespace-pre-wrap tracking-tight ${l}`,...x},(0,r.jsx)("span",{className:"inline",style:{color:(0===p.length?"inherit":p[M%p.length])||"inherit"},children:y}),u&&(0,r.jsx)("span",{ref:E,className:`ml-1 inline-block opacity-100 ${N?"hidden":""} ${h}`,children:d}))}],147701);var rL=e.i(798120),rF=e.i(6799),rB=e.i(393080),r$=e.i(283653),rU=e.i(647163),rq=e.i(144322),rH=e.i(463625);e.s(["installSeedBots",0,function(e){let t=e??rH.BOT_SEEDS.filter(e=>e.recommended).map(e=>({name:e.name}));t.length&&(0,rq.createSeedBotsAction)(t).then(rB.unwrapResult).then(()=>(0,r$.revalidate)(rL.queryKey.bot)).catch(e=>rF.toast.add({type:"warning",title:"Could not set up the bots",description:(0,rU.errorToString)(e)}))}],747985);var rK=e.i(689664),rY=e.i(263676),rV=e.i(167881),rX=e.i(23750),rW=e.i(968978),rJ=e.i(265402),rG=e.i(609856),rQ=e.i(63638),rZ=e.i(992112);function r0({provider:e,saved:t,autoFocus:n,dense:i,value:a,ready:s,saving:o,onValue:l,onSubmit:u}){let c=(0,rJ.detectSpeachProvider)(a),d=null!==c&&c!==e.id;return(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("span",{className:"flex items-center gap-2 px-0.5 text-muted-foreground",children:[(0,r.jsx)(rW.ProviderIcon,{provider:e.id,className:"size-4 shrink-0"}),(0,r.jsx)("span",{className:(0,rU.cn)("font-mono",i?"text-[11px]":"text-[12.5px]"),children:e.label})]}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),u()},className:(0,rU.cn)("flex items-center gap-3 rounded-2xl border bg-muted/40 px-4 transition-colors",i?"h-11 rounded-xl px-3":"h-14",t||s?"border-foreground bg-transparent":"border-border"),children:[(0,r.jsx)(rX.Input,{autoFocus:n,type:"password",value:a,spellCheck:!1,placeholder:t?"Replace it":`${e.keyPrefix[0]}…`,onChange:e=>l(e.target.value),className:(0,rU.cn)("min-w-0 flex-1 border-0 bg-transparent px-0 font-mono shadow-none focus-visible:ring-0 dark:bg-transparent",i?"h-7 text-[13px]":"h-9 text-[15px]")}),a?(0,r.jsx)(rV.Button,{type:"submit",size:"sm",variant:d?"outline":"default",loading:o,disabled:!s,className:(0,rU.cn)("shrink-0",i?"h-7 px-3":"h-9 px-4"),children:d?`Not ${e.label}?`:"Save"}):t&&(0,r.jsx)("span",{className:(0,rU.cn)("grid shrink-0 animate-in place-items-center rounded-full bg-foreground text-background zoom-in-50 duration-300",i?"size-5":"size-7"),children:(0,r.jsx)(rK.Check,{className:i?"size-3":"size-4"})})]})]})}e.s(["VoiceKeys",0,function({ref:e,autoFocus:t,dense:n=!1,onCancel:i,onSaved:a,className:s}){let{data:o}=(0,r$.useServerRoute)(rL.queryKey.config),[l,u]=(0,rI.useState)({}),[c,d]=(0,rI.useState)(null),[h]=(0,rG.useServerAction)(rQ.setConfigAction,{onOk:()=>{(0,r$.revalidate)(rL.queryKey.config),(0,r$.revalidate)(rL.queryKey.llmModel)}}),f=e=>(l[e]?.trim().length??0)>=8,p=async e=>{let t=e.apiKeyName;if(!f(t)||c)return!1;d(t);try{return await h(t,l[t]),u(e=>({...e,[t]:""})),a?.(e.id),!0}catch{return!1}finally{d(null)}};return(0,rI.useImperativeHandle)(e,()=>({pending:()=>rJ.SPEACH_MODEL_PROVIDER_LIST.some(e=>f(e.apiKeyName)),flush:async()=>{for(let e of rJ.SPEACH_MODEL_PROVIDER_LIST)if(f(e.apiKeyName)&&!await p(e))return!1;return!0}})),(0,r.jsxs)("div",{className:(0,rU.cn)("w-full",n?"space-y-2":"space-y-4",s),children:[n&&(0,r.jsxs)("div",{className:"flex h-6 items-center justify-between gap-2",children:[(0,r.jsx)("span",{className:"px-0.5 font-mono text-[11px] text-muted-foreground",children:"Voice key"}),i&&(0,r.jsx)(rV.Button,{type:"button",size:"icon",variant:"ghost","aria-label":"Not now",onClick:i,className:"-my-1 size-6",children:(0,r.jsx)(rY.X,{className:"size-3.5"})})]}),rJ.SPEACH_MODEL_PROVIDER_LIST.map((e,i)=>(0,r.jsx)(r0,{provider:e,saved:(0,rZ.isConfigSet)(o,e.apiKeyName),autoFocus:t&&0===i,dense:n,value:l[e.apiKeyName]??"",ready:f(e.apiKeyName),saving:c===e.apiKeyName,onValue:t=>u(n=>({...n,[e.apiKeyName]:t})),onSubmit:()=>void p(e)},e.id)),(0,r.jsx)("p",{className:(0,rU.cn)("px-0.5 font-mono text-muted-foreground",n?"text-[11px]":"pt-1 text-center text-[12.5px]"),children:n?"One is enough.":"One is enough — the other can wait. Stored on this machine, in this app's own database."})]})}],616816)},302707,e=>{"use strict";var t=e.i(843476),n=e.i(689664),r=e.i(867927),i=e.i(618566),a=e.i(271645),s=e.i(167881),o=e.i(917162),l=e.i(660302),u=e.i(147701),c=e.i(41533),d=e.i(146538),h=e.i(451888),f=e.i(463625),p=e.i(635963),m=e.i(747985),g=e.i(616816),v=e.i(112599),_=e.i(252284),x=e.i(647163);function y({ink:e}){let n=f.BOT_SEEDS.slice(0,3);return(0,t.jsxs)("div",{className:"flex w-full flex-col items-center",children:[(0,t.jsx)("div",{className:"h-[19rem] shrink-0"}),(0,t.jsxs)("span",{className:"flex animate-in items-center gap-2.5 rounded-full bg-muted/50 py-1.5 pr-3.5 pl-1.5 ring-1 ring-border/60 fade-in slide-in-from-bottom-1 duration-700 [animation-delay:1.9s] [animation-fill-mode:backwards]",children:[(0,t.jsx)("span",{className:"flex",children:n.map((n,r)=>(0,t.jsx)(p.BotMark,{size:22,seed:n.name,vary:n.name,color:e(n),shape:n.icon?.shape,outline:n.icon?.outline,state:"thinking",notify:!1,className:(0,x.cn)("shrink-0",r>0&&"-ml-1.5")},n.name))}),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground",children:1===n.length?"A bot is on it":"Bots are on it"}),(0,t.jsx)("span",{className:"font-mono text-[10.5px] text-muted-foreground/70",children:"ask_bot"})]}),(0,t.jsxs)("p",{className:"mt-6 max-w-xl animate-in text-center text-[21px] leading-relaxed text-balance break-keep fade-in duration-1000 [animation-delay:2.5s] [animation-fill-mode:backwards]",children:["On it — ",1===n.length?"a bot":"the bots"," went to look. Keep talking, I’ll say when it is back."]}),(0,t.jsx)("span",{className:"mt-10 flex h-6 items-center gap-2 font-mono text-sm text-muted-foreground",children:(0,t.jsx)(u.default,{as:"span",text:`Say "Hey ${c.APP_NAME}" to start talking`,loop:!1,typingSpeed:52,initialDelay:500,cursorCharacter:"▌",cursorClassName:"ml-0.5 text-muted-foreground/50",className:"tracking-normal"})})]})}function b({ref:e,onSaved:n}){return(0,t.jsxs)("div",{className:"flex w-full max-w-lg flex-col items-center",children:[(0,t.jsx)("h1",{className:"text-center text-[34px] font-medium tracking-tight text-balance break-keep",children:"One key opens the call."}),(0,t.jsx)("p",{className:"mt-3.5 max-w-md text-center text-base leading-relaxed text-pretty text-muted-foreground break-keep",children:"Calls run on a speech model — the only thing this app cannot do without. Bots, memory and settings do not need it."}),(0,t.jsx)(g.VoiceKeys,{ref:e,className:"mt-9",autoFocus:!0,onSaved:n})]})}function w({picks:e,ink:n,onPatch:r}){let i=f.BOT_SEEDS.filter(t=>e[t.name]?.on);return(0,t.jsxs)("div",{className:"flex w-full max-w-2xl flex-col items-center",children:[(0,t.jsx)("h1",{className:"text-center text-[30px] font-medium tracking-tight text-balance break-keep",children:1===f.BOT_SEEDS.length?"One bot comes with her.":`${2===f.BOT_SEEDS.length?"Two":f.BOT_SEEDS.length} bots come with her.`}),(0,t.jsx)("p",{className:"mt-3 max-w-lg text-center text-[15px] leading-relaxed text-pretty text-muted-foreground break-keep",children:1===f.BOT_SEEDS.length?"It takes the work that would leave the call silent, and reports back.":"They take the work that would leave the call silent, and report back."}),(0,t.jsx)("span",{className:"mt-5 flex h-9 items-center gap-2 rounded-full bg-muted/50 py-1.5 pr-3.5 pl-1.5 ring-1 ring-border/60",children:i.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"flex",children:i.map((e,r)=>(0,t.jsx)(p.BotMark,{size:22,seed:e.name,vary:e.name,color:n(e),shape:e.icon?.shape,outline:e.icon?.outline,notify:!1,className:(0,x.cn)("shrink-0",r>0&&"-ml-1.5")},e.name))}),(0,t.jsx)(l.default,{text:"handed-over work shows up here",speed:2.2,color:"var(--muted-foreground)",shineColor:"var(--foreground)",className:"font-mono text-[10.5px] leading-4"})]}):(0,t.jsxs)("span",{className:"px-2 font-mono text-[10.5px] text-muted-foreground",children:["nobody on the roster — ",h.DEFAULT_BOT.name," takes it"]})}),(0,t.jsx)("div",{className:"mt-4 grid w-full max-w-3xl grid-cols-2 items-start gap-2",children:f.BOT_SEEDS.map((i,a)=>(0,t.jsx)(k,{seed:i,pick:e[i.name],ink:n(i),className:0===a?"col-span-2":"",onPatch:e=>r(i.name,e)},i.name))})]})}function k({seed:e,pick:r,ink:i,className:a,onPatch:s}){let o=!!r?.on;return(0,t.jsxs)("div",{className:(0,x.cn)("min-w-0 rounded-2xl ring-1 transition-colors",o?"ring-foreground":"ring-border/60",a),children:[(0,t.jsxs)("button",{type:"button",onClick:()=>s({on:!o}),"aria-pressed":o,className:"flex w-full items-center gap-3.5 rounded-2xl px-4 py-3 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(p.BotMark,{size:34,seed:e.name,vary:e.name,color:i,shape:e.icon?.shape,outline:e.icon?.outline,state:o?"thinking":"idle",notify:!1,className:(0,x.cn)("shrink-0 transition-opacity",!o&&"opacity-35")}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsx)("span",{className:"block text-[15.5px] font-medium",children:e.name}),(0,t.jsx)("span",{className:"block text-[13px] leading-normal text-pretty text-muted-foreground break-keep",children:e.description}),o?(0,t.jsx)(l.default,{text:`“${e.example}”`,speed:2.2,color:"var(--muted-foreground)",shineColor:"var(--foreground)",className:"truncate font-mono text-[11px] leading-4"}):(0,t.jsx)("span",{className:"block truncate font-mono text-[11px] leading-4 text-muted-foreground/50",children:"off"})]}),(0,t.jsx)("span",{className:(0,x.cn)("grid size-6 shrink-0 place-items-center rounded-full transition-colors",o?"bg-foreground text-background":"ring-1 ring-border/60 ring-inset"),children:o&&(0,t.jsx)(n.Check,{className:"size-3.5"})})]}),o&&(0,t.jsx)("div",{className:"px-4 pb-3.5",children:(0,t.jsx)(d.ModelPicker,{provider:r?.provider??null,model:r?.model??"",onChange:e=>s(e)})})]})}e.s(["Intro",0,function({ready:e,forced:n,colors:l}){let u=e=>l[f.BOT_SEEDS.indexOf(e)]??e.icon?.color,c=(0,i.useRouter)(),[d,h]=(0,a.useState)(0),[p,g]=(0,a.useState)(!1),[k,T]=(0,a.useState)(!1),[S,M]=(0,a.useState)(e),[j,C]=(0,a.useState)(()=>Object.fromEntries(f.BOT_SEEDS.map(e=>[e.name,{on:!!e.recommended,provider:null,model:""}]))),O=(0,a.useRef)(null),[E,A]=(0,a.useState)(!1),R=async()=>{if(1===d&&O.current?.pending()&&await o.notify.confirm({title:"Save this key first?",description:"There is a key in the field that has not been saved. Leaving now drops it.",okText:"Save and continue",cancelText:"Discard it"})){A(!0);let e=await O.current.flush();if(A(!1),!e)return}h(e=>e+1)};if((0,a.useEffect)(()=>{if(!p)return;let e=setTimeout(()=>T(!0),700);return()=>clearTimeout(e)},[p]),k||e&&!n)return null;let P=0===d;return(0,t.jsxs)("div",{className:(0,x.cn)("fixed inset-0 z-40 bg-background transition-opacity duration-700",p&&"pointer-events-none opacity-0"),children:[(0,t.jsx)(v.AsciiField,{rim:P?_.INTRO_FACE.rim:.03,centerY:_.INTRO_FACE.centerY,clearAt:P?.52:.24,clearBy:P?.7:.55,className:"absolute inset-0"}),(0,t.jsxs)("div",{className:"absolute inset-x-12 top-22 bottom-44 flex flex-col items-center justify-center overflow-y-auto",children:[0===d&&(0,t.jsx)(y,{ink:u}),1===d&&(0,t.jsx)(b,{ref:O,onSaved:()=>M(!0)}),2===d&&(0,t.jsx)(w,{picks:j,ink:u,onPatch:(e,t)=>C(n=>({...n,[e]:{...n[e],...t}}))})]}),(0,t.jsxs)("div",{className:"absolute inset-x-0 bottom-13 flex flex-col items-center gap-5.5",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2.5",children:[2===d?(0,t.jsxs)(s.Button,{onClick:()=>{g(!0),S&&((0,m.installSeedBots)(f.BOT_SEEDS.filter(e=>j[e.name]?.on).map(e=>({name:e.name,provider:j[e.name]?.provider??null,model:j[e.name]?.model||null,color:u(e)}))),c.replace("/"),c.refresh())},className:"h-12 px-6 pl-7 text-[15px]",children:[S?"Start talking":"Look around",(0,t.jsx)(r.ChevronRight,{})]}):(0,t.jsxs)(s.Button,{onClick:R,loading:E,className:"h-12 px-6 pl-7 text-[15px]",children:[0===d?"Set up":"Continue",(0,t.jsx)(r.ChevronRight,{})]}),1===d&&!S&&(0,t.jsx)(s.Button,{variant:"ghost",onClick:()=>h(2),className:"h-8 text-[13.5px] text-muted-foreground",children:"I will add it later"})]}),(0,t.jsx)("div",{className:"flex items-center gap-1.75",children:Array.from({length:3},(e,n)=>(0,t.jsx)("span",{className:(0,x.cn)("h-1.75 rounded-full transition-all duration-300",n===d?"w-5.5 bg-foreground":"w-1.75",n<d?"bg-foreground/40":"",n>d?"bg-border":"")},n))})]})]})}])},252284,112599,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(647163),i=e.i(922521),a=e.i(567334);let s=[247,247,247],o=[10,10,10];function l({boot:e=!1,rim:u=.28,centerY:c=.34,clearAt:d=null,clearBy:h=.5,emojiRatio:f=a.EMOJI_RATIO/2,dim:p=1,onSettled:m,className:g}){let v=(0,n.useRef)(null),_="dark"===(0,i.useResolvedTheme)(),x=(0,n.useRef)({rim:u,clearAt:d,clearBy:h,emojiRatio:f,dim:p,dark:_});x.current={rim:u,clearAt:d,clearBy:h,emojiRatio:f,dim:p,dark:_};let y=(0,n.useRef)(m);return y.current=m,(0,n.useEffect)(()=>{let t=v.current;if(!t)return;let n=t.getContext("2d");if(!n)return;let r="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion: reduce)").matches,i=e&&!r,l=[],u=null,d=0,h=0,f=13,p=1,m=()=>{if(d=t.clientWidth,h=t.clientHeight,d<2||h<2)return;let e=.95*(f=Math.round(13*Math.max(1,Math.sqrt(d*h/14e5))))/1.15,r=1.25*f/1.15,i=Math.ceil(d/e),s=Math.ceil(h/r),o=d/2,m=h*c;p=Math.hypot(Math.max(o,d-o),Math.max(m,h-m)),l=[];for(let t=0;t<s;t++)for(let n=0;n<i;n++){let i=n*e+e/2,s=t*r+r/2,u=i-o,c=s-m;l.push({x:i,y:s,dx:u,dy:c,dist:Math.hypot(u,c),angle:Math.atan2(c,u),seed:(0,a.hash)(n,t),grain:(0,a.hash)(5.7*n+19,2.3*t+53),gap:.05+.3*(0,a.hash)(7.3*n+11,3.1*t+5),birth:(0,a.hash)(3.1*n+7,5.7*t+2),roll:(0,a.hash)(2.7*n+31,5.9*t+17)})}u={ascii:Array.from({length:a.RAMP.length},()=>new Int32Array(l.length)),emoji:Array.from({length:a.RAMP.length},()=>new Int32Array(l.length)),an:new Int32Array(a.RAMP.length),en:new Int32Array(a.RAMP.length),glyph:Array(l.length)};let g=Math.min(2,window.devicePixelRatio||1);t.width=Math.round(d*g),t.height=Math.round(h*g),n.setTransform(g,0,0,g,0,0)};m();let g=new ResizeObserver(m);g.observe(t);let _=0,b=0,w=!1,k=performance.now(),T=null,S=null,M=e=>{var t,r;if(_=requestAnimationFrame(M),e-b<(i&&(e-k)/1e3<1.1?16:48)||(b=e,!u||!l.length))return;let c=(e-k)/1e3;i&&!w&&c>=.26&&(w=!0,y.current?.());let{rim:m,clearAt:g,clearBy:v,emojiRatio:j,dim:C,dark:O}=x.current;T=null===T?m:T+(m-T)*.06;let E=null===g?-1:g;S=null===S?E:S+(E-S)*.06;let A=null===g?null:h*S,{reach:R,body:P,growing:N}=(t=c,r=T,i?{reach:1.56,body:t<0?1.56:t<.9?1.56-(1-(1-(t-0)/.9)**3)*(1.56-r):r,growing:!1}:{reach:1.56,body:r,growing:!1}),D=O?s:o,z=a.RAMP.length-1;u.an.fill(0),u.en.fill(0);for(let e=0;e<l.length;e++){let t=l[e],n=t.dist/p,r=1+.17*Math.sin(2*t.angle+.7+.11*c)+.12*Math.sin(3*t.angle-1.9+.22*c)+.07*Math.sin(5*t.angle+3.1-.08*c),i=n*(1+.075*Math.sin(2*t.angle+.21*c)+.055*Math.sin(3*t.angle-.13*c+4.5*n)+.038*Math.sin(5*t.angle+.09*c-8*n)+.03*Math.sin(11*n+.17*c+3*t.seed)),s=R-(i/r+(t.birth-.5)*.55);if(s<-.03)continue;let o=(0,a.smoothstep)(0,.62,s),d=.55*Math.sin(.03*t.dist-.4*c+1.6*t.angle)+.3*Math.sin(.018*t.dist+.27*c-2.7*t.angle)+.15*Math.sin(4*t.angle+.33*c),h=i/r+(t.grain-.5)*.11,f=(.62+.22*d+.07*Math.sin(.35*c))*(1-(0,a.smoothstep)(.5*P,1.06*P,h));if(t.seed>.895&&(f+=Math.exp(-(((i-(1.02*P+(0,a.hash)(311*t.seed,9)*Math.max(.3,1.25-.7*P)))/.12)**2))*(.42+.58*Math.sin(c*(.5+1.5*(0,a.hash)(47*t.seed,21))+300*t.seed))*.7),f+=.22*Math.exp(-(.8*i))*(.6+.4*d),f=(f*o+Math.exp(-(s*s/.0024))*(N?.5:.12))*C,null!==A&&(f*=1-v*(0,a.smoothstep)(A-130,A+70,t.y)),(f*=(.66+.72*t.grain)*(.8+.4*(0,a.hash)(Math.floor(.05*t.dx+.5*c),Math.floor(.05*t.dy-.3*c))))<t.gap+.05*Math.sin(.28*c+6.283*t.seed))continue;let m=Math.min(1,f)*z|0;if(!(m<=0))if(j>0&&t.roll<j&&m>=a.EMOJI_MIN_LEVEL+1){let n=c*a.EMOJI_CHAR_RATE+7*t.seed|0;u.glyph[e]=a.EMOJI_POOL[((t.seed*a.EMOJI_POOL.length|0)+n)%a.EMOJI_POOL.length],u.emoji[m][u.en[m]++]=e}else{let n=a.RAMP[m],r=c*a.CHAR_RATE+7*t.seed|0;u.glyph[e]=n[((t.seed*n.length|0)+r)%n.length],u.ascii[m][u.an[m]++]=e}}n.clearRect(0,0,d,h),n.textAlign="center",n.textBaseline="middle",n.fillStyle=`rgb(${D[0]},${D[1]},${D[2]})`,n.font=`700 ${f}px ui-monospace,SFMono-Regular,Menlo,monospace`;for(let e=1;e<=z;e++){let t=u.an[e];if(0===t)continue;n.globalAlpha=a.ALPHA_TOP*(e/z);let r=u.ascii[e];for(let e=0;e<t;e++){let t=l[r[e]];n.fillText(u.glyph[r[e]],t.x,t.y)}}n.font=`${Math.round(.8*f)}px "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif`;for(let e=1;e<=z;e++){let t=u.en[e];if(0===t)continue;n.globalAlpha=(.35+e/z*.65)*C;let r=u.emoji[e];for(let e=0;e<t;e++){let t=l[r[e]];n.fillText(u.glyph[r[e]],t.x,t.y)}}n.globalAlpha=1};return M(performance.now()),i||y.current?.(),()=>{cancelAnimationFrame(_),g.disconnect(),n.clearRect(0,0,d,h)}},[e,c]),(0,t.jsx)("canvas",{ref:v,"aria-hidden":!0,className:(0,r.cn)("block size-full",g)})}e.s(["AsciiField",0,l],112599);let u={centerY:.3,rim:.16},c={centerY:.42,rim:.2};e.s(["Boot",0,function({over:e="call"}){let i="intro"===e?u:c,[a,s]=(0,n.useState)(!1),[o,d]=(0,n.useState)(!1),h=(0,n.useCallback)(()=>s(!0),[]);return((0,n.useEffect)(()=>{if(!a)return;let e=setTimeout(()=>d(!0),560);return()=>clearTimeout(e)},[a]),(0,n.useEffect)(()=>{if(o)return;let e=()=>h();return window.addEventListener("pointerdown",e,{once:!0}),window.addEventListener("keydown",e,{once:!0}),()=>{window.removeEventListener("pointerdown",e),window.removeEventListener("keydown",e)}},[o,h]),o)?null:(0,t.jsx)("div",{"aria-hidden":!0,onClick:h,className:(0,r.cn)("fixed inset-0 z-50 bg-background transition-opacity",a&&"pointer-events-none opacity-0"),style:{transitionDuration:"560ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)"},children:(0,t.jsx)(l,{boot:!0,rim:i.rim,centerY:i.centerY,onSettled:h})})},"CALL_FACE",0,c,"INTRO_FACE",0,u],252284)},692888,e=>{"use strict";var t=e.i(843476),n=e.i(716327),r=e.i(456420);let i={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};i.node;let a=(0,r.default)(i);var s=e.i(831458),o=e.i(632781);let l={name:"mic",size:24,node:[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]};l.node;let u=(0,r.default)(l),c={name:"mic-off",size:24,node:[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]};c.node;let d=(0,r.default)(c),h={name:"settings-2",size:24,node:[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]};h.node;let f=(0,r.default)(h);var p=e.i(271645),m=e.i(798120),g=e.i(167881),v=e.i(225913),_=e.i(647163);let x=(0,v.cva)("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-1.5 [&>*]:relative [&>*]:focus-visible:z-10",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});function y({className:e,orientation:n="horizontal",...r}){return(0,t.jsx)("div",{"data-slot":"button-group","data-orientation":n,role:"group",className:(0,_.cn)(x({orientation:n}),e),...r})}var b=e.i(660302),w=e.i(147701);e.s([],951047),e.i(951047);var k=e.i(896499),T=e.i(956789),S=e.i(146376),M=e.i(733332);let j=p.createContext(void 0);function C(e){let t=p.useContext(j);if(void 0===t&&!e)throw Error((0,M.default)(72));return t}var O=e.i(574735),E=e.i(667865),A=e.i(229315),R=e.i(584446),P=e.i(157940);function N(e){return null!=e&&null!=e.clientX}var D=e.i(17989),z=e.i(675606),I=e.i(264111),L=e.i(176782),F=e.i(301252),B=e.i(56434),$=e.i(18478),U=e.i(116786),q=e.i(990627);let H={...U.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class K extends F.ReactStore{constructor(e,t,n){const r=new q.PopupTriggerMap;super(Y(e,r,t,n),V(r),H)}setOpen=(e,t)=>{(0,I.applyPopupOpenChange)(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,(0,z.createChangeEventDetails)(B.REASONS.triggerPress,e))}}function Y(e,t,n,r=!1){return{...(0,U.createInitialPopupStoreState)(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function V(e){return{popupRef:p.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}let X=(0,k.fastComponent)(function(e){let{disabled:n=!1,defaultOpen:r=!1,open:i,disableHoverablePopup:a=!1,trackCursorAxis:s="none",actionsRef:o,onOpenChange:l,onOpenChangeComplete:u,handle:c,triggerId:d,defaultTriggerId:h=null,children:f}=e,m=(0,I.usePopupRootStore)((e,t)=>new K({open:r,openProp:i,activeTriggerId:h,triggerIdProp:d},e,t));m.useControlledProp("openProp",i),m.useControlledProp("triggerIdProp",d),m.useContextCallback("onOpenChange",l),m.useContextCallback("onOpenChangeComplete",u);let g=m.useState("open"),v=!n&&g,_=m.useState("activeTriggerId"),x=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:a,disabled:n}),(0,I.useImplicitActiveTrigger)(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:b,transitionStatus:w}=(0,I.useOpenStateTransitions)(v,m),k=m.useState("isInstantPhase"),T=m.useState("instantType"),M=m.useState("lastOpenChangeReason"),C=p.useRef(null);(0,S.useIsoLayoutEffect)(()=>{g&&n&&m.setOpen(!1,(0,z.createChangeEventDetails)(B.REASONS.disabled))},[g,n,m]),(0,S.useIsoLayoutEffect)(()=>{"ending"===w&&M===B.REASONS.none||"ending"!==w&&k?("delay"!==T&&(C.current=T),m.set("instantType","delay")):null!==C.current&&(m.set("instantType",C.current),C.current=null)},[w,k,M,T,m]),(0,S.useIsoLayoutEffect)(()=>{v&&null==_&&m.set("payload",void 0)},[m,_,v]),p.useImperativeHandle(o,()=>({unmount:b,close:()=>m.setOpen(!1,(0,z.createChangeEventDetails)(B.REASONS.imperativeAction))}),[b,m]);let O=v||x||!n&&"none"!==s;return(0,t.jsxs)(j.Provider,{value:m,children:[c&&(0,t.jsx)(I.PopupHandleAttachment,{handle:c,store:m}),O&&(0,t.jsx)(W,{store:m,disabled:n,trackCursorAxis:s}),"function"==typeof f?f({payload:y}):f]})});function W({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState("floatingRootContext"),i=(0,D.useDismiss)(r,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),a=function(e,t={}){let{enabled:n=!0,axis:r="both"}=t,i="rootStore"in e?e.rootStore:e,a=i.useState("open"),s=i.useState("floatingElement"),o=i.useState("domReferenceElement"),l=i.context.dataRef,u=p.useRef(!1),c=p.useRef(null),[d,h]=p.useState(),[f,m]=p.useState([]),g=(0,E.useStableCallback)(e=>{i.set("positionReference",e)}),v=(0,E.useStableCallback)((e,t,n)=>{if(!u.current&&(!l.current.openEvent||N(l.current.openEvent))){var a,s;let u,c,h;i.set("positionReference",(a=n??o,s={x:e,y:t,axis:r,dataRef:l,pointerType:d},u=null,c=null,h=!1,{contextElement:a||void 0,getBoundingClientRect(){let e=a?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},t="x"===s.axis||"both"===s.axis,n="y"===s.axis||"both"===s.axis,r=["mouseenter","mousemove"].includes(s.dataRef.current.openEvent?.type||"")&&"touch"!==s.pointerType,i=e.width,o=e.height,l=e.x,d=e.y;return null==u&&s.x&&t&&(u=e.x-s.x),null==c&&s.y&&n&&(c=e.y-s.y),l-=u||0,d-=c||0,i=0,o=0,!h||r?(i="y"===s.axis?e.width:0,o="x"===s.axis?e.height:0,l=t&&null!=s.x?s.x:l,d=n&&null!=s.y?s.y:d):h&&!r&&(o="x"===s.axis?e.height:o,i="y"===s.axis?e.width:i),h=!0,{width:i,height:o,x:l,y:d,top:d,right:l+i,bottom:d+o,left:l}}}))}}),_=(0,E.useStableCallback)(e=>{a?c.current||(v(e.clientX,e.clientY,e.currentTarget),m([])):v(e.clientX,e.clientY,e.currentTarget)}),x=(0,P.isMouseLikePointerType)(d)?s:a;p.useEffect(()=>{if(!n)return void g(o);if(!x)return;function e(){c.current?.(),c.current=null}let t=(0,A.getWindow)(s);return!l.current.openEvent||N(l.current.openEvent)?c.current=(0,O.addEventListener)(t,"mousemove",function(t){let n=(0,R.getTarget)(t);(0,R.contains)(s,n)?e():v(t.clientX,t.clientY)}):g(o),e},[x,n,s,l,o,i,v,g,f]),p.useEffect(()=>()=>{i.set("positionReference",null)},[i]),p.useEffect(()=>{n&&!s&&(u.current=!1)},[n,s]),p.useEffect(()=>{!n&&a&&(u.current=!0)},[n,a]);let y=p.useMemo(()=>{function e(e){h(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return p.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}(r,{enabled:!t&&"none"!==n,axis:"none"===n?void 0:n}),s=p.useMemo(()=>(0,L.mergeProps)(a.reference,i.reference),[a.reference,i.reference]);return(0,I.usePopupInteractionProps)(e,{activeTriggerProps:s,inactiveTriggerProps:s,popupProps:i.floating??T.EMPTY_OBJECT}),null}var J=e.i(439957),G=e.i(446265),Q=e.i(879938),Z=e.i(552245),ee=e.i(459636),et=e.i(788015);let en=p.createContext(void 0);var er=e.i(650316),ei=e.i(944681);let ea=p.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new J.Timeout,currentIdRef:{current:null},currentContextRef:{current:null}});function es(e){let{children:n,delay:r,timeoutMs:i=0}=e,a=p.useRef(r),s=p.useRef(r),o=p.useRef(null),l=p.useRef(null),u=(0,J.useTimeout)();return(0,S.useIsoLayoutEffect)(()=>{if(s.current=r,!o.current){a.current=r;return}a.current={open:(0,ei.getDelay)(a.current,"open"),close:(0,ei.getDelay)(r,"close")}},[r,o,a,s]),(0,t.jsx)(ea.Provider,{value:p.useMemo(()=>({hasProvider:!0,delayRef:a,initialDelayRef:s,currentIdRef:o,timeoutMs:i,currentContextRef:l,timeout:u}),[i,u]),children:n})}var eo=e.i(413082),el=e.i(872135),eu=e.i(673752),ec=e.i(322846);let ed="data-base-ui-tooltip-trigger";function eh(e){if("composedPath"in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if((0,A.isElement)(n))return n}}let t=e.target;return(0,A.isElement)(t)?t:null}let ef=(0,k.fastComponentRef)(function(e,t){let{render:n,className:r,style:i,handle:a,payload:s,disabled:o,delay:l,closeOnClick:u=!0,closeDelay:c,id:d,...h}=e,f=C(!0),m=(0,ee.usePopupHandleStore)(a)??f;if(!m)throw Error((0,M.default)(82));let g=(0,et.useBaseUiId)(d),v=m.useState("isTriggerActive",g),_=m.useState("isOpenedByTrigger",g),x=m.useState("floatingRootContext"),y=p.useRef(null),b=c??0,{registerTrigger:w,isMountedByThisTrigger:k}=(0,I.useTriggerDataForwarding)(g,y,m,{payload:s,closeOnClick:u,closeDelay:b}),T=p.useContext(en),{activeIdRef:j,delayRef:O,isInstantPhase:E,hasProvider:N}=function(e,t={open:!1}){let{open:n}=t,r="rootStore"in e?e.rootStore:e,i=r.useState("floatingId"),{currentIdRef:a,delayRef:s,timeoutMs:o,initialDelayRef:l,currentContextRef:u,hasProvider:c,timeout:d}=p.useContext(ea),[h,f]=p.useState(!1),m=p.useRef(n);return(0,S.useIsoLayoutEffect)(()=>{m.current=n},[n]),(0,S.useIsoLayoutEffect)(()=>{function e(){u.current?.setIsInstantPhase(!1),a.current=null,u.current=null,s.current=l.current,d.clear()}if(a.current&&!n&&a.current===i){if(f(!1),o)return d.start(o,()=>{r.select("open")||a.current&&a.current!==i||e()}),()=>{(m.current||a.current!==i)&&d.clear()};e()}},[n,i,a,s,o,l,u,d,r]),(0,S.useIsoLayoutEffect)(()=>{if(!n)return;let e=u.current,t=a.current;d.clear(),u.current={onOpenChange:r.setOpen,setIsInstantPhase:f},a.current=i,s.current={open:0,close:(0,ei.getDelay)(l.current,"close")},null!==t&&t!==i?(f(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,(0,z.createChangeEventDetails)(B.REASONS.none))):(f(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,s,l,u,d]),(0,S.useIsoLayoutEffect)(()=>()=>{a.current===i&&(u.current=null,m.current)&&(a.current=null,s.current=l.current,d.clear())},[u,a,s,i,l,d]),p.useMemo(()=>({activeIdRef:a,hasProvider:c,delayRef:s,isInstantPhase:h}),[a,c,s,h])}(x,{open:_}),D=(0,eu.useHoverInteractionSharedState)(x);m.useSyncedValue("isInstantPhase",E);let L=m.useState("disabled"),F=o??L,$=(0,G.useValueAsRef)(F),U=m.useState("trackCursorAxis"),q=m.useState("disableHoverablePopup"),H=p.useRef(!1),K=(0,J.useTimeout)(),Y=p.useRef(void 0);function V(){return N&&null!=j.current?0:l??T??600}function X(e){let t=y.current;if(!t||!e)return!1;let n=function(e){let t=e;for(;t;){let e=t.closest(`[${ed}]`);if(e)return e;let n=t.getRootNode();t="host"in n&&(0,A.isElement)(n.host)?n.host:null}return null}(e);return null!==n&&n!==t&&(0,R.contains)(t,n)}let W=(0,el.useHoverReferenceInteraction)(x,{enabled:!F,mouseOnly:!0,move:!1,handleClose:q||"both"===U?null:(0,er.safePolygon)(),restMs:V,delay:()=>null==c&&N?{close:(0,ei.getDelay)(O.current,"close")}:{close:b},triggerElementRef:y,isActiveTrigger:v,isClosing:()=>"ending"===m.select("transitionStatus"),shouldOpen:()=>!H.current}),es=(0,eo.useFocus)(x,{enabled:!F}).reference,ef=m.useState("triggerProps",k),ep=k||"none"!==U;return(0,Z.useRenderElement)("button",e,{state:{open:_},ref:[t,w,y],props:[W,es,ep?ef:void 0,{onMouseOver(e){(e=>{let t,n=H.current,r=eh(e),i=(H.current=t=X(r),t&&(D.openChangeTimeout.clear(),D.restTimeout.clear(),D.restTimeoutPending=!1,K.clear()),t),a=y.current,s=a&&r&&(0,R.contains)(a,r);if(i&&m.select("open")&&m.select("lastOpenChangeReason")===B.REASONS.triggerHover)return m.setOpen(!1,(0,z.createChangeEventDetails)(B.REASONS.triggerHover,e));if(n&&!i&&s&&!$.current&&!m.select("open")&&a&&(0,P.isMouseLikePointerType)(Y.current)){let t=()=>{H.current||$.current||m.select("open")||m.setOpen(!0,(0,z.createChangeEventDetails)(B.REASONS.triggerHover,e,a))},n=V();0===n?(K.clear(),t()):K.start(n,t)}})(e.nativeEvent)},onFocus(e){X(eh(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){H.current=!1,K.clear(),Y.current=void 0},onPointerEnter(e){Y.current=e.pointerType},onPointerDown(e){Y.current=e.pointerType,m.set("closeOnClick",u),u&&!m.select("open")&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){u&&!m.select("open")&&m.cancelPendingOpen(e.nativeEvent)},id:g,[ec.triggerDisabled]:F?"":void 0,[ed]:F?void 0:""},h],stateAttributesMapping:Q.triggerOpenStateMapping})}),ep=p.createContext(void 0);var em=e.i(378680);let eg=p.forwardRef(function(e,n){let{keepMounted:r=!1,...i}=e;return C().useState("mounted")||r?(0,t.jsx)(ep.Provider,{value:r,children:(0,t.jsx)(em.FloatingPortalLite,{ref:n,...i})}):null}),ev=p.createContext(void 0);function e_(){let e=p.useContext(ev);if(void 0===e)throw Error((0,M.default)(71));return e}var ex=e.i(923706),ey=e.i(638396),eb=e.i(789579);let ew=p.forwardRef(function(e,n){let{render:r,className:i,anchor:a,positionMethod:s="absolute",side:o="top",align:l="center",sideOffset:u=0,alignOffset:c=0,collisionBoundary:d="clipping-ancestors",collisionPadding:h=5,arrowPadding:f=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:v=ey.POPUP_COLLISION_AVOIDANCE,style:_,...x}=e,y=C(),b=function(){let e=p.useContext(ep);if(void 0===e)throw Error((0,M.default)(70));return e}(),w=y.useState("open"),k=y.useState("mounted"),T=y.useState("trackCursorAxis"),S=y.useState("disableHoverablePopup"),j=y.useState("floatingRootContext"),O=y.useState("instantType"),E=y.useState("transitionStatus"),A=y.useState("adaptiveOrigin"),R=(0,ex.useAnchorPositioning)({anchor:a,positionMethod:s,floatingRootContext:j,mounted:k,side:o,sideOffset:u,align:l,alignOffset:c,collisionBoundary:d,collisionPadding:h,sticky:m,arrowPadding:f,disableAnchorTracking:g,keepMounted:b,collisionAvoidance:v,adaptiveOrigin:A}),P=p.useMemo(()=>({open:w,side:R.side,align:R.align,anchorHidden:R.anchorHidden,instant:"none"!==T?"tracking-cursor":O}),[w,R.side,R.align,R.anchorHidden,T,O]),N=(0,eb.usePositioner)(e,P,{styles:R.positionerStyles,transitionStatus:E,props:x,refs:[n,y.useStateSetter("positionerElement")],hidden:!k,inert:!w||"both"===T||S});return(0,t.jsx)(ev.Provider,{value:R,children:N})});var ek=e.i(137584),eT=e.i(253984),eS=e.i(431157);let eM=p.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,s=C(),{side:o,align:l}=e_(),u=s.useState("open"),c=s.useState("instantType"),d=s.useState("transitionStatus"),h=s.useState("popupProps"),f=s.useState("floatingRootContext"),p=s.useState("disabled"),m=s.useState("closeDelay");(0,ek.useOpenChangeComplete)({open:u,ref:s.context.popupRef,onComplete(){u&&s.context.onOpenChangeComplete?.(!0)}}),(0,eS.useHoverFloatingInteraction)(f,{enabled:!p,closeDelay:m});let g=s.useStateSetter("popupElement");return(0,Z.useRenderElement)("div",e,{state:{open:u,side:o,align:l,instant:c,transitionStatus:d},ref:[t,s.context.popupRef,g],props:[I.FOCUSABLE_POPUP_PROPS,h,(0,eT.getDisabledMountTransitionStyles)(d),a],stateAttributesMapping:Q.popupTransitionStateMapping})}),ej=p.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,s=C(),{arrowRef:o,side:l,align:u,arrowUncentered:c,arrowStyles:d}=e_(),h=s.useState("open"),f=s.useState("instantType");return(0,Z.useRenderElement)("div",e,{state:{open:h,side:l,align:u,uncentered:c,instant:f},ref:[t,o],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:Q.popupStateMapping})});var eC=e.i(818390);let eO=p.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...s}=e,o=C(),l=e_(),u=o.useState("instantType"),{children:c,state:d}=(0,eC.usePopupViewport)({store:o,side:l.side,children:a}),h={activationDirection:d.activationDirection,transitioning:d.transitioning,instant:u};return(0,Z.useRenderElement)("div",e,{state:h,ref:t,props:[s,{children:c}],stateAttributesMapping:eC.popupViewportStateMapping})});var eE=e.i(564170);class eA extends eE.BasePopupHandle{constructor(){super(function(){let e=new q.PopupTriggerMap;return Object.assign(new $.NullStore(Object.freeze(Y(void 0,e)),Object.freeze(V(e)),H),{setOpen:T.NOOP,cancelPendingOpen:T.NOOP})}(),"Tooltip")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",0,ej,"Handle",0,eA,"Popup",0,eM,"Portal",0,eg,"Positioner",0,ew,"Provider",0,function(e){let{delay:n,closeDelay:r,timeout:i=400}=e,a=p.useMemo(()=>({open:n,close:r}),[n,r]);return(0,t.jsx)(en.Provider,{value:n,children:(0,t.jsx)(es,{delay:a,timeoutMs:i,children:e.children})})},"Root",0,X,"Trigger",0,ef,"Viewport",0,eO,"createHandle",0,function(){return new eA}],599643);var eR=e.i(599643),eR=eR;function eP({delay:e=0,...n}){return(0,t.jsx)(eR.Provider,{"data-slot":"tooltip-provider",delay:e,...n})}function eN({...e}){return(0,t.jsx)(eR.Root,{"data-slot":"tooltip",...e})}function eD({...e}){return(0,t.jsx)(eR.Trigger,{"data-slot":"tooltip-trigger",...e})}function ez({className:e,side:n="top",sideOffset:r=4,align:i="center",alignOffset:a=0,children:s,...o}){return(0,t.jsx)(eR.Portal,{children:(0,t.jsx)(eR.Positioner,{align:i,alignOffset:a,side:n,sideOffset:r,className:"isolate z-50",children:(0,t.jsxs)(eR.Popup,{"data-slot":"tooltip-content",className:(0,_.cn)("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...o,children:[s,(0,t.jsx)(eR.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}var eI=e.i(265402),eL=e.i(451888),eF=e.i(635963),eB=e.i(279265),e$=e.i(222055),eU=e.i(747985),eq=e.i(616816),eH=e.i(992112),eK=e.i(692329),eY=e.i(263676),eV=e.i(511769),eX=e.i(671428),eW=e.i(283653),eJ=e.i(536015);function eG(){let[e,n]=(0,p.useState)(null);(0,eV.useAppEvent)({"memory-view":e=>n(e.path)}),(0,p.useEffect)(()=>{if(!e)return;let t=e=>"Escape"===e.key&&n(null);return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e]);let{data:r,isLoading:i}=(0,eW.useServerRoute)(e?m.queryKey.notePath(e):null);return e?(0,t.jsxs)("div",{className:"absolute top-16 right-4 z-20 flex max-h-[min(32rem,calc(100vh-8rem))] w-[min(24rem,calc(100vw-2rem))] flex-col rounded-lg border bg-background/95 shadow-lg backdrop-blur",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2 border-b p-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"truncate text-sm font-medium",children:(0,eJ.noteTitle)(e)}),(0,t.jsx)("div",{className:"truncate text-xs text-muted-foreground",children:r?.description??e})]}),(0,t.jsx)(g.Button,{size:"icon-xs",variant:"ghost","aria-label":"Close",onClick:()=>n(null),children:(0,t.jsx)(eY.X,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-3",children:i&&!r?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(eX.Skeleton,{className:"h-4 w-full"}),(0,t.jsx)(eX.Skeleton,{className:"h-4 w-4/5"}),(0,t.jsx)(eX.Skeleton,{className:"h-4 w-3/5"})]}):r?.facts.length?(0,t.jsx)("ol",{className:"space-y-1.5",children:r.facts.map((e,n)=>(0,t.jsxs)("li",{className:"flex gap-2 text-sm leading-snug",children:[(0,t.jsx)("span",{className:"w-4 shrink-0 text-right font-mono text-[11px] text-muted-foreground/70",children:n+1}),(0,t.jsx)("span",{className:"min-w-0",children:e.text})]},e.id))}):(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:"Nothing left here."})})]}):null}let eQ={name:"aperture",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m14.31 8 5.74 9.94",key:"1y6ab4"}],["path",{d:"M9.69 8h11.48",key:"1wxppr"}],["path",{d:"m7.38 12 5.74-9.94",key:"1grp0k"}],["path",{d:"M9.69 16 3.95 6.06",key:"libnyf"}],["path",{d:"M14.31 16H2.83",key:"x5fava"}],["path",{d:"m16.62 12-5.74 9.94",key:"1vwawt"}]]};eQ.node;let eZ=(0,r.default)(eQ);var e0=e.i(758925),e1=e.i(218964);let e2={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};e2.node;let e5=(0,r.default)(e2),e3={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};e3.node;let e6=(0,r.default)(e3),e4={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};e4.node;let e8=(0,r.default)(e4);var e7=e.i(770703),e9=e.i(630374),te=e.i(421429);let tt={name:"package",size:24,node:[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]};tt.node;let tn=(0,r.default)(tt);var tr=e.i(895836);function ti(){let{data:e}=(0,eW.useServerRoute)(m.queryKey.bot);return e&&0===e.length?"amber":null}function ta(){let{data:e}=(0,eW.useServerRoute)(m.queryKey.tasks);return e?.filter(e=>"waiting"===e.status).length??0}function ts(){let{data:e,isLoading:t}=(0,eW.useServerRoute)(m.queryKey.config);if(t)return null;let n=t=>(0,eH.isConfigSet)(e,t);return eH.CONFIG_GROUPS.some(e=>"keys"===e.section&&!(0,eH.groupSatisfied)(e,n))?"amber":null}function to(){let{data:e}=(0,eW.useServerRoute)(m.queryKey.mcp);return e?.some(e=>e.lastError)?"red":null}var tl=e.i(991322),tu=e.i(852116),tc=e.i(589128),td=e.i(567334),th=e.i(762074);let tf=td.RAMP.slice(0,10),tp=Array.from({length:35},(e,t)=>{let n=t%7,r=(t-n)/7;return{i:t,x:1.7142857142857142*(n+.5),y:2.4*(r+.5)+.72,r:Math.hypot((n-3)/3,(r-2)/2)}}).filter(e=>e.r<=1.02);function tm(e){return tp.map(t=>{let n=Math.sin(e/1700*Math.PI*2-2.2*t.r),r=5.4+4.4*(1-t.r**2)**.6+1.7*n,i=Math.max(0,Math.min(tf.length-1,Math.round(r))),a=tf[i];return{char:a[Math.floor((0,td.hash)(t.i,Math.floor(e/1e3*td.CHAR_RATE*1.6+.41*t.i))*a.length)]??" ",alpha:.42+.58*Math.max(0,Math.min(1,r/(tf.length-1)))}})}let tg=new Set,tv=null,t_=e.i(569644).FolderOpen;var tx=e.i(922521),ty=e.i(734080),tb=e.i(989409),tw=tr;let tk=(e,n=tw.SettingSkeleton)=>(0,e7.default)(e,{loading:()=>(0,t.jsx)(n,{})}),tT=tk(()=>e.A(48663).then(e=>({default:e.MemorySetting})),tw.SettingPanesSkeleton),tS=tk(()=>e.A(959484).then(e=>({default:e.BotSetting})),tw.SettingPanesSkeleton),tM=tk(()=>e.A(682612).then(e=>({default:e.TaskSetting}))),tj=tk(()=>e.A(711454).then(e=>({default:e.ConfigSetting}))),tC=tk(()=>e.A(915664).then(e=>({default:e.ModelsSetting}))),tO=tk(()=>e.A(17613).then(e=>({default:e.ThursdaySetting}))),tE=tk(()=>e.A(706108).then(e=>({default:e.ArtifactSetting})),tw.SettingPanesSkeleton),tA=tk(()=>e.A(194379).then(e=>({default:e.WorkspaceSetting})),tw.SettingPanesSkeleton),tR=tk(()=>e.A(832663).then(e=>({default:e.SkillsSetting}))),tP=tk(()=>e.A(959108).then(e=>({default:e.McpSetting}))),tN=["call","work","app"],tD=[{id:"thursday",label:"Thursday",group:"call",hint:"Her face, voice and prompt",icon:function({size:e=16,className:n}){let r=(0,th.useThursdayFace)(),[i,a]=(0,p.useState)(()=>tm(0));return(0,p.useEffect)(()=>(function(e){if(tg.add(e),!tv){let e=Date.now();tv=setInterval(()=>{let t=Date.now()-e;for(let e of tg)e(t)},60)}return()=>{tg.delete(e),0===tg.size&&tv&&(clearInterval(tv),tv=null)}})(e=>a(tm(e))),[]),(0,t.jsx)("svg",{viewBox:"0 0 12 12",width:e,height:e,className:n,fill:r.color??"currentColor","aria-hidden":!0,children:i.map((e,n)=>(0,t.jsx)("text",{x:tp[n].x,y:tp[n].y,textAnchor:"middle",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",fontSize:"2.85",fillOpacity:e.alpha,children:e.char},tp[n].i))})},Component:tO},{id:"memory",label:"Memory",group:"call",hint:"What the agent knows",icon:tu.MemoryMark,Component:tT},{id:"bot",label:"Bots",group:"work",hint:"Workers the agent delegates to",icon:eF.BotsMark,Component:tS,Badge:function(){return ti()?(0,t.jsx)(tr.NavBadge,{tone:"amber"}):null}},{id:"tasks",label:"Tasks",group:"work",hint:"Jobs the bots were handed, and what came of them",icon:e1.ListChecks,Component:tM,Badge:function(){return(0,t.jsx)(tr.NavBadge,{tone:"amber",count:ta()})}},{id:"artifact",label:"Artifacts",group:"work",hint:"What the bots finished and handed over",icon:tn,Component:tE},{id:"workspace",label:"Workspace",group:"work",hint:"What the bots wrote, and the room it takes",icon:t_,Component:tA},{id:"skills",label:"Skills",group:"work",hint:"Instructions the bots load on demand",icon:tc.SkillsMark,Component:tR},{id:"mcp",label:"Connectors",group:"work",hint:"Tools from MCP servers",icon:tl.McpMark,Component:tP,Badge:function(){return to()?(0,t.jsx)(tr.NavBadge,{tone:"red"}):null}},{id:"models",label:"Models",group:"app",hint:"What bots draw, film, speak and transcribe with",icon:eZ,Component:tC},{id:"config",label:"Keys",group:"app",hint:"API keys the app runs on",icon:e0.KeyRound,Component:tj,Badge:function(){return ts()?(0,t.jsx)(tr.NavBadge,{tone:"amber"}):null}}],tz={system:{label:"System",icon:e5},light:{label:"Light",icon:e8},dark:{label:"Dark",icon:e6}};function tI(){let e=(0,tx.useTheme)();return(0,t.jsx)(te.Segmented,{"aria-label":"Theme",className:"w-full gap-0.5 *:flex-1 *:py-1.5",options:ty.THEMES.map(e=>{let{label:n,icon:r}=tz[e];return{value:e,title:n,label:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r,{className:"size-3.5"}),(0,t.jsx)("span",{className:"sr-only",children:n})]})}}),value:e,onChange:tx.setTheme})}function tL({children:e}){let n=(0,tb.useSettingsStore)(e=>e.open),r=(0,tb.useSettingsStore)(e=>e.section),i=(0,tb.useSettingsStore)(e=>e.show),a=(0,tb.useSettingsStore)(e=>e.hide),s=(0,tb.useSettingsStore)(e=>e.pick),o=(0,p.useRef)(null),l=tD.find(e=>e.id===r)??tD[0];return(0,p.useEffect)(()=>{if(!n)return;let e=e=>{if(!e.metaKey&&!e.ctrlKey)return;if("k"===e.key){let t=o.current?.querySelector("[data-setting-filter]");if(!t)return;e.preventDefault(),t.focus(),t.select();return}let t=Number(e.key);Number.isInteger(t)&&t>=1&&t<=tD.length&&(e.preventDefault(),s(tD[t-1].id))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[n,s]),(0,t.jsxs)(e9.Dialog,{open:n,onOpenChange:e=>e?i():a(),children:[e&&(0,t.jsx)(e9.DialogTrigger,{render:e}),(0,t.jsxs)(e9.DialogContent,{className:"h-[min(52rem,calc(100vh-3rem))] gap-0 overflow-hidden p-0 sm:max-w-[min(80rem,calc(100vw-3rem))]",children:[(0,t.jsx)(e9.DialogTitle,{className:"sr-only",children:"Settings"}),(0,t.jsxs)("div",{className:"flex h-full min-h-0 min-w-0",children:[(0,t.jsxs)("nav",{"aria-label":"Settings sections",onKeyDown:e=>{let t,n="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0;if(!n)return;e.preventDefault();let i=(t=(tD.findIndex(e=>e.id===r)+n+tD.length)%tD.length,tD[t].id);s(i),e.currentTarget.querySelector(`[data-section="${i}"]`)?.focus()},className:"flex w-52 shrink-0 flex-col gap-0.5 border-r border-border/60 bg-muted/30 p-3",children:[tN.map(e=>(0,t.jsxs)(p.Fragment,{children:[(0,t.jsx)("span",{className:"px-3 pt-3 pb-1 font-mono text-[10px] text-muted-foreground/60",children:e}),tD.filter(t=>t.group===e).map(e=>(0,t.jsxs)(g.Button,{"data-section":e.id,onClick:()=>s(e.id),variant:e.id===r?"secondary":"ghost",className:(0,_.cn)("justify-start",e.id===r?"text-foreground bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]":"text-muted-foreground"),children:[(0,t.jsx)(e.icon,{className:(0,_.cn)("mr-1")}),(0,t.jsx)("span",{className:"truncate text-sm",children:e.label}),e.Badge&&(0,t.jsx)("span",{className:"ml-auto flex items-center",children:(0,t.jsx)(e.Badge,{})})]},e.id))]},e)),(0,t.jsx)("div",{className:"mt-auto px-1 pt-3",children:(0,t.jsx)(tI,{})})]}),(0,t.jsxs)("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[(0,t.jsx)("div",{className:"shrink-0 px-8 pt-10",children:(0,t.jsxs)(tw.SettingColumn,{className:"animate-in space-y-0.5 fade-in slide-in-from-bottom-1 duration-300",children:[(0,t.jsx)("p",{className:"truncate text-2xl font-semibold",children:l.label}),(0,t.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:l.hint})]},l.id)}),(0,t.jsx)("div",{ref:o,className:"min-h-0 min-w-0 flex-1",children:(0,t.jsx)(l.Component,{})})]})]})]})]})}var tF=e.i(671228),tB=e.i(67045),t$=e.i(41533);let tU=["▁▄▇▄","▂▆▆▂","▄▇▄▁","▆▆▂▂","▇▄▁▄","▆▂▂▆","▄▁▄▇","▂▂▆▆"];var tq=e.i(6799),tH=e.i(213377),tK=e.i(809977),tY=e.i(864723),tV=e.i(240829),tX=e.i(393080);async function tW(e,t,n){try{let r=await fetch(m.queryKey.toolCall,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({toolCallId:t.id,callId:e,name:t.name,input:t.arguments?JSON.parse(t.arguments):{}}),signal:n}),{output:i}=(0,tX.unwrapResult)(await r.json());return"string"==typeof i?i:JSON.stringify(i??null)}catch(e){return`Error: ${(0,_.errorToString)(e)}`}}var tJ=e.i(319841);let tG={"not-allowed":"The microphone is not allowed","service-not-allowed":"The microphone is not allowed","audio-capture":"There is no microphone","language-not-supported":"This browser cannot listen in that language"},tQ=e=>e.toLowerCase().replace(/[^a-z0-9 ]/g,"").split(/\s+/).filter(Boolean),tZ=(e,t,n)=>Math.abs(e.length-t.length)<=n&&function(e,t){let n=Array.from({length:e.length+1},(e,t)=>t),r=Array(e.length+1).fill(0);for(let i=1;i<=t.length;i++){r[0]=i;for(let a=1;a<=e.length;a++){let s=n[a-1]+ +(t[i-1]!==e[a-1]);r[a]=Math.min(s,n[a]+1,r[a-1]+1)}[n,r]=[r,n]}return n[e.length]}(e,t)<=n;var t0=e.i(245629);let t1={openai:async()=>(await e.A(948790)).createOpenAiSession,xai:async()=>(await e.A(273919)).createXaiSession};async function t2(e){let t=(await t1[e.provider]())(e);try{await t.connect()}catch(e){throw t.close(),e}return t}var t5=e.i(541302),t3=e.i(95187);let t6=(0,t3.createServerReference)("7f9a89f6f43c3c8fdee150fde50df8256264bc8a44",t3.callServer,void 0,t3.findSourceMapURL,"endCallAction"),t4=(0,t3.createServerReference)("7f7fd2051e8952cb8ab529e5f8cd1694a6a7990cd8",t3.callServer,void 0,t3.findSourceMapURL,"openCallAction"),t8=(0,t3.createServerReference)("7f22a0e4340f8432bad5bec227fc6be79f580bc967",t3.callServer,void 0,t3.findSourceMapURL,"saveTurnsAction");var t7=e.i(561540);let t9=Array(tY.MARK_BANDS).fill(0),ne=e=>`${e.id}@${(0,t0.toDate)(e.updatedAt).getTime()}`,nt=!1;var nn=e.i(621285);function nr(){return(0,t.jsx)(nn.FileViewer,{children:(0,t.jsx)(ni,{})})}function ni(){let e=(0,nn.useOpenFile)();return(0,eV.useAppEvent)({artifact:t=>{if(e(t.path))return;let n=t.path.split("/").pop()??t.path;tq.toast.add({type:"success",title:t.label,description:`${n} is ready.`,actionProps:{children:"Open",onClick:()=>e(t.path)}})}}),null}var na=e.i(333495);function ns({status:e,messages:n,tool:r,onTap:i,wakePhrase:a=null,hotkeyLabel:s=null,idleLeft:o=null,since:l=null,micOff:u=!1,getSpectrum:c,getMicSpectrum:d,captionView:h="center",face:f=tF.FACE_DEFAULT,callable:m=!0}){let[g,v]=(0,p.useState)(!1),x=!m&&"idle"===e,y="connecting"===e,b="idle"!==e&&"connecting"!==e,w=n.findLast(e=>"assistant"===e.role)?.text??"",k="sides"===h&&"idle"!==e;return(0,t.jsxs)("div",{className:"relative flex h-full flex-col",children:[(0,t.jsx)("div",{className:"absolute top-5 right-5 z-10",children:(0,t.jsx)(nu,{})}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-5 pt-[7vh]",children:[(0,t.jsxs)("div",{className:"relative w-[min(28rem,72vw,52vh)]",children:[(0,t.jsx)("button",{type:"button",disabled:y,onClick:x?()=>v(!0):i,"aria-label":x?"Add a speech key":b?"End the call":"Call Thursday",className:(0,_.cn)("block w-full rounded-full outline-none transition-all duration-700 ease-out focus-visible:ring-3 focus-visible:ring-ring/50 enabled:active:scale-[0.99] disabled:opacity-70",x&&"opacity-35"),children:(0,t.jsx)(na.Face,{look:f,status:e,getSpectrum:c,className:"w-full"})}),k&&(0,t.jsx)(nC,{messages:n})]}),(0,t.jsxs)("div",{className:"flex w-full max-w-3xl flex-col items-center gap-2 px-6 text-center",children:[(0,t.jsx)(nk,{tool:r,micOff:u,listening:"listening"===e,getMicSpectrum:d}),(0,t.jsx)(nv,{text:k||"idle"===e?"":w,fixed:!0,paged:!0,className:"w-full max-w-160 text-center text-base"}),(0,t.jsx)("div",{className:(0,_.cn)("flex flex-col items-center","idle"===e&&"order-first"),children:x?(0,t.jsx)(nM,{open:g,onOpen:()=>v(!0),onClose:()=>v(!1)}):(0,t.jsx)(nS,{status:e,idleLeft:o,since:l,wakePhrase:a,hotkeyLabel:s})})]})]}),(0,t.jsx)(eG,{}),(0,t.jsx)(eK.MemoryTidyNotice,{}),(0,t.jsx)(nr,{}),(0,t.jsx)(eB.BotRoom,{})]})}let no=["thursday","memory","bot"];function nl({alert:e}){return e?(0,t.jsx)("span",{"aria-hidden":!0,className:(0,_.cn)("absolute top-0.5 right-0.5 size-1.5 rounded-full ring-2 ring-background","red"===e?"bg-destructive":"bg-amber-600 dark:bg-amber-400")}):null}function nu(){var e;let n,r,i=(n=ti(),r=ta()>0?"amber":null,{bot:n,tasks:r,mcp:to(),config:ts()}),a=(e=tD.filter(e=>!no.includes(e.id)).map(e=>i[e.id]??null)).includes("red")?"red":e.includes("amber")?"amber":null;return(0,t.jsxs)(eP,{delay:400,children:[(0,t.jsxs)(y,{className:"bg-background/75 backdrop-blur-md",children:[(0,t.jsx)(y,{children:no.map(e=>{let n=tD.find(t=>t.id===e);return n?(0,t.jsxs)(eN,{children:[(0,t.jsxs)(eD,{render:(0,t.jsx)(g.Button,{size:"icon",variant:"outline","aria-label":n.label,onClick:()=>(0,tb.openSettings)(e)}),children:[(0,t.jsx)(n.icon,{className:"text-muted-foreground"}),(0,t.jsx)(nl,{alert:i[e]??null})]}),(0,t.jsx)(ez,{side:"bottom",children:n.label})]},e):null})}),(0,t.jsx)(y,{children:(0,t.jsxs)(eN,{children:[(0,t.jsxs)(eD,{render:(0,t.jsx)(g.Button,{size:"icon",variant:"outline","aria-label":"Everything else",onClick:()=>(0,tb.openSettings)()}),children:[(0,t.jsx)(f,{className:"text-muted-foreground"}),(0,t.jsx)(nl,{alert:a})]}),(0,t.jsx)(ez,{side:"bottom",children:"Everything else"})]})})]}),(0,t.jsx)(tL,{})]})}let nc=[5,3,2],nd=["text-lg","text-[15px]","text-[13px]"],nh=["px-4 py-3","px-3.5 py-2.5","px-3 py-2"],nf=["bg-muted","bg-muted/70","bg-muted/45"],np=["bg-primary","bg-primary/75","bg-primary/60"];function nm(e,t){return e[t]??e[e.length-1]}let ng=["text-foreground","text-muted-foreground","text-muted-foreground/60"];function nv({text:e,lead:r,lines:i=3,fixed:s=!1,paged:o=!1,className:l}){let u=(0,p.useRef)(null),[c,d]=(0,p.useState)(i),[h,f]=(0,p.useState)(0);(0,p.useEffect)(()=>f(0),[e]),(0,p.useEffect)(()=>{let e=u.current;if(!e||!o)return;let t=()=>{let t=Number.parseFloat(getComputedStyle(e).lineHeight);t&&d(Math.max(1,Math.round(e.scrollHeight/t)))};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e,o]);let m=Math.ceil(Math.max(0,c-i)/i),g=Math.max(0,c-i-Math.min(h,m)*i),v=`calc(${i} * 1.625em)`,x=(0,t.jsxs)("p",{ref:u,style:{lineHeight:1.625,...o?{transform:`translateY(-${1.625*g}em)`}:{}},className:(0,_.cn)("break-keep",o&&"transition-transform duration-200"),children:[r,e]});return o?(0,t.jsxs)("div",{className:"relative flex w-full justify-center",children:[(0,t.jsx)("div",{style:{height:v},onClick:m>0?()=>f(e=>e>=m?0:e+1):void 0,className:(0,_.cn)("overflow-hidden",m>0&&"cursor-pointer",l),children:x}),m>0&&(0,t.jsxs)("div",{className:"absolute top-1/2 right-0 flex -translate-y-1/2 flex-col items-center gap-0.5",children:[(0,t.jsx)(n_,{look:a,label:"Earlier lines",shown:h<m,onPick:()=>f(e=>Math.min(m,e+1))}),(0,t.jsx)(n_,{look:n.ChevronDown,label:"Later lines",shown:h>0,onPick:()=>f(e=>Math.max(0,e-1))})]})]}):(0,t.jsx)("div",{style:s?{height:v}:{maxHeight:v},className:(0,_.cn)("overflow-hidden mask-[linear-gradient(to_bottom,black_calc(100%-0.7rem),transparent_100%)]",l),children:x})}function n_({look:e,label:n,shown:r,onPick:i}){return(0,t.jsx)("button",{type:"button","aria-label":n,"aria-hidden":!r,tabIndex:r?void 0:-1,onClick:e=>{e.stopPropagation(),i()},className:(0,_.cn)("grid size-7 place-items-center rounded-full text-muted-foreground/60 outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",!r&&"invisible"),children:(0,t.jsx)(e,{className:"size-3.5"})})}let nx=["a","b","c","d","e"];function ny({live:e,getMicSpectrum:n}){let r=(0,p.useRef)({});return(0,p.useEffect)(()=>{if(!e||!n)return;let t=requestAnimationFrame(function e(){let i=n();nx.forEach((e,t)=>{let n=r.current[e];n&&(n.style.height=`${2+12*Math.min(1,i[t]??0)}px`)}),t=requestAnimationFrame(e)});return()=>cancelAnimationFrame(t)},[e,n]),(0,t.jsx)("span",{"aria-hidden":!0,className:"flex h-3.5 w-[18px] shrink-0 items-center gap-0.5",children:nx.map(e=>(0,t.jsx)("span",{ref:t=>{r.current[e]=t},style:{height:2},className:"w-0.5 rounded-full bg-muted-foreground/70"},e))})}function nb({live:e,getMicSpectrum:n}){return(0,t.jsxs)("span",{className:"flex items-center gap-2 text-[13px] leading-5 text-muted-foreground",children:[(0,t.jsx)(ny,{live:e,getMicSpectrum:n}),"Listening"]})}function nw({tool:e,micOff:n}){let r="relay"===e.kind?s.Flag:(0,e$.toolIcon)(e.name);return(0,t.jsxs)("span",{className:"flex max-w-full items-center gap-2",children:[(0,t.jsxs)("span",{className:"relative mr-0.5 grid size-5 shrink-0 place-items-center",children:[e.done?(0,t.jsx)(r,{className:"size-3.5 text-muted-foreground"}):(0,t.jsx)(o.Loader2,{className:"size-3.5 animate-spin text-muted-foreground"}),n&&(0,t.jsx)(d,{className:"absolute -right-1.5 -bottom-1.5 size-4 rounded-full bg-background p-[3.5px] text-muted-foreground"})]}),e.line?e.done?(0,t.jsx)("span",{className:"min-w-0 truncate text-[13px] leading-5 break-keep text-muted-foreground",children:e.line}):(0,t.jsx)(b.default,{text:e.line,speed:2.4,color:"var(--muted-foreground)",shineColor:"var(--foreground)",className:"min-w-0 truncate text-[13px] leading-5 break-keep"}):(0,t.jsx)("span",{className:"min-w-0 truncate font-mono text-xs leading-5 text-muted-foreground",children:e.name})]})}function nk({tool:e,micOff:n,listening:r,getMicSpectrum:i}){let[a,s]=(0,p.useState)(e);(0,p.useEffect)(()=>{e&&s(e)},[e]);let o=r&&!e;return(0,t.jsxs)("div",{className:"grid h-7 max-w-full items-center justify-items-center",children:[a&&(0,t.jsx)(nT,{at:"col-start-1 row-start-1 max-w-full",shown:null!==e,children:(0,t.jsx)(nw,{tool:a,micOff:n})}),(0,t.jsx)(nT,{at:"col-start-1 row-start-1",shown:o,children:(0,t.jsx)(nb,{live:o,getMicSpectrum:i})})]})}function nT({at:e,shown:n,children:r}){return(0,t.jsx)("span",{"aria-hidden":!n,className:(0,_.cn)("flex transition-opacity duration-300 ease-out",e,n?"opacity-100":"pointer-events-none opacity-0"),children:r})}function nS({status:e,idleLeft:n,since:r,wakePhrase:i,hotkeyLabel:a}){let s,o,l="connecting"===e,c="idle"!==e&&!l;return l?(o=e,s="connecting"===e?"Connecting…":"Ending…"):c&&null!==n?(o="quiet",s=`Quiet — ending in ${n}s. Say anything to stay.`):c?(o="live",s=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"Tap Thursday to end"}),(0,t.jsx)("span",{className:"text-muted-foreground/40",children:"·"}),(0,t.jsx)(nj,{since:r})]})):i?(o=`wake:${i}`,s=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"Tap Thursday, or say"}),(0,t.jsxs)("span",{className:"flex items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-foreground/80",children:[(0,t.jsx)(u,{className:"size-3"}),i]})]})):a?(o=`key:${a}`,s=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"Tap Thursday, or press"}),(0,t.jsx)("kbd",{className:"rounded-md border border-border bg-background px-1.5 py-0.5 font-mono text-[10px] text-foreground/80 shadow-[0_1px_0_var(--border)]",children:a})]})):(o="tap",s=(0,t.jsx)(w.default,{as:"span",text:"Tap Thursday to talk",loop:!1,typingSpeed:95,initialDelay:400,cursorCharacter:"▌",cursorClassName:"ml-0.5 text-muted-foreground/50",className:"tracking-normal"})),(0,t.jsx)("span",{className:"flex h-6 animate-in items-center gap-1.5 font-mono text-[11px] text-muted-foreground/70 fade-in duration-700",children:s},o)}function nM({open:e,onOpen:n,onClose:r}){return e?(0,t.jsx)("div",{className:"w-[min(26rem,84vw)] animate-in rounded-2xl bg-background/80 p-3 ring-1 ring-border/60 backdrop-blur-md fade-in duration-300",children:(0,t.jsx)(eq.VoiceKeys,{dense:!0,autoFocus:!0,onCancel:r,onSaved:()=>(0,eU.installSeedBots)()})}):(0,t.jsxs)("span",{className:"flex animate-in items-center gap-2 rounded-full bg-muted/60 py-1 pr-1 pl-1.5 ring-1 ring-border/60 fade-in duration-500",children:[(0,t.jsxs)("span",{className:"relative flex size-6 shrink-0 items-center justify-center",children:[(0,t.jsx)(eF.BotMark,{size:24,seed:eL.DEFAULT_BOT.name,vary:eL.DEFAULT_BOT.name,color:eL.DEFAULT_BOT.icon?.color,shape:eL.DEFAULT_BOT.icon?.shape,outline:eL.DEFAULT_BOT.icon?.outline,notify:!1}),(0,t.jsx)(d,{className:"absolute -right-0.5 -bottom-0.5 size-2.5 rounded-full bg-muted text-muted-foreground"})]}),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground break-keep",children:"Calls need one speech key. Everything else here already works."}),(0,t.jsx)(g.Button,{size:"sm",onClick:n,className:"h-7 rounded-full px-3.5",children:"Add key"})]})}function nj({since:e}){let[n,r]=(0,p.useState)(()=>Date.now());if((0,p.useEffect)(()=>{if(null===e)return;let t=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(t)},[e]),null===e)return null;let i=Math.max(0,Math.floor((n-e)/1e3)),a=String(Math.floor(i/60)).padStart(2,"0"),s=String(i%60).padStart(2,"0");return(0,t.jsxs)("span",{className:"tabular-nums",children:[a,":",s]})}function nC({messages:e}){let[n,r]=(0,p.useState)(0),[i,a]=(0,p.useState)(0),s=(0,p.useRef)(0),o=(0,p.useRef)(null),l=(0,p.useRef)(e.length),u=Math.max(0,e.length-3);(0,p.useEffect)(()=>{let t=e.length-l.current;l.current=e.length,t>0&&r(n=>n>0?Math.min(n+t,Math.max(0,e.length-3)):0)},[e.length]),(0,p.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]);let c=e=>{s.current+=e.deltaY;let t=Math.trunc(s.current/200);0!==t&&(s.current-=200*t,r(e=>Math.min(u,Math.max(0,e-t)))),a(s.current/200),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{s.current=0,a(0)},160)},d=e.length-n,h=e.slice(Math.max(0,d-3),d);return(0,t.jsx)(t.Fragment,{children:h.map((e,n)=>{let r="user"===e.role,a=18+50*n/Math.max(1,h.length-1),s=h.length-1-n,o=nm(nd,s),l=nm(nh,s),u=nm(r?np:nf,s),d=nm(ng,s);return(0,t.jsx)("div",{onWheel:c,style:{top:`${a}%`,transform:`translateY(calc(-50% + ${-(6*i)}px))`},className:(0,_.cn)("pointer-events-auto absolute flex w-[min(23rem,24vw)] transition-transform duration-100",r?"left-full ml-6":"right-full mr-6 justify-end"),children:(0,t.jsx)("div",{className:(0,_.cn)("w-fit max-w-full animate-in rounded-[18px] fade-in duration-500",l,r?(0,_.cn)("rounded-bl-md text-primary-foreground slide-in-from-left-2",u):(0,_.cn)("rounded-br-md slide-in-from-right-2",u,d)),children:(0,t.jsx)(nv,{text:e.text,lines:nc[s]??2,className:o})})},e.id)})})}e.s(["CallScreen",0,ns,"Thursday",0,function(){var e;let{status:n,messages:r,tool:i,idleLeft:a,since:s,micOff:o,call:l,getSpectrum:u,getMicSpectrum:c,wakePhrase:d,hotkey:h}=function(){let e,t,n=(0,p.useRef)(null),r=(0,p.useRef)(null),i=(0,p.useRef)(null),[a,s]=(0,p.useState)("idle"),[o,l]=(0,p.useState)([]),[u,c]=(0,p.useState)(null),[d,h]=(0,p.useState)(null),[f,g]=(0,p.useState)(null),[v,x]=(0,p.useState)(!1),y=(0,p.useRef)({tool:!1,reading:!1,spoke:!1,giveUp:null}),b=(0,p.useRef)({since:0,asked:!1,grace:null}),w=(0,p.useRef)(null),k=(0,p.useRef)(null),T=(0,p.useRef)(null),S=(0,p.useRef)(new Set),M=(0,p.useRef)(null),j=M.current??=(e=[],t=null,{send(n){t?t(n):e.push(n)},open(n){t=n;let r=e;for(let t of(e=[],r))n(t)},close(){t=null},clear(){let t=e;return e=[],t}}),C=(0,p.useRef)(null),O=(0,p.useRef)(!1),E=(0,p.useRef)(!1),A=(0,p.useCallback)(e=>{w.current&&clearTimeout(w.current),c({name:e.name,line:(0,t7.toolLine)(e.name,e.arguments),done:!1})},[]),R=(0,p.useCallback)(e=>{w.current&&clearTimeout(w.current),c(e),w.current=setTimeout(()=>c(e=>e?.kind==="relay"?null:e),5e3)},[]),P=(0,p.useCallback)(e=>{c(t=>t?.name===e?{...t,done:!0}:t),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>c(e=>e?.done?null:e),2500)},[]),N=(0,p.useCallback)(()=>{x(y.current.tool||y.current.reading)},[]),D=(0,p.useCallback)(()=>{y.current.giveUp&&clearTimeout(y.current.giveUp),y.current.giveUp=null,y.current.reading=!1,y.current.spoke=!1,N()},[N]),z=(0,p.useCallback)(()=>{y.current.giveUp&&clearTimeout(y.current.giveUp),y.current.reading=!0,y.current.spoke=!1,y.current.giveUp=setTimeout(()=>{D(),C.current?.()},15e3),N()},[D,N]);(0,p.useEffect)(()=>{n.current?.mute(v)},[v]);let I=(0,p.useRef)(a);(0,p.useEffect)(()=>{I.current=a},[a]);let L=(0,p.useRef)("listening"),F=(0,p.useRef)(null),B=(0,p.useCallback)(()=>{F.current&&clearTimeout(F.current),F.current=null},[]),$=(0,p.useCallback)(e=>{I.current=e,s(e)},[]),U=(0,p.useCallback)(e=>{L.current=e;let t=I.current;if("speaking"===e){B(),$(e);return}let n="working"===e||"delegating"===e;if(n&&("working"===t||"delegating"===t)){B(),$(e);return}n||"listening"!==t?F.current||(F.current=setTimeout(()=>{F.current=null,$(L.current)},n?800:600)):B()},[B,$]),q="idle"!==a&&"connecting"!==a,{data:H}=(0,eW.useServerRoute)(m.queryKey.tasks,{refreshInterval:3e4}),K=(0,p.useRef)(null);(0,eV.useAppEvent)({hello:e=>{K.current=e.boot,(0,eW.revalidateAll)()},tasks:()=>void(0,eW.revalidate)(m.queryKey.tasks),memory:()=>void(0,eW.revalidate)(m.queryKey.memory),"memory-tidy":()=>void(0,eW.revalidate)(m.queryKey.memoryTidy),mcp:()=>{(0,eW.revalidate)(m.queryKey.mcp),(0,eW.revalidate)(m.queryKey.mcpTools)}});let{data:Y}=(0,eW.useServerRoute)(m.queryKey.bot);(0,p.useEffect)(()=>{H&&tV.botTasks.sync(H,Y)},[H,Y]),(0,p.useEffect)(()=>{if(H&&O.current)for(let e of H){if("running"===e.status||e.reported)continue;let t=ne(e);S.current.has(t)||(S.current.add(t),j.send({line:function(e){let t=`[${e.bot} → you, about "${e.label}" — not the user speaking; they have not heard this. Anything more on this job goes to the task tool as "${e.label}", never a new job.]`;switch(e.status){case"waiting":{let n=e.ask?.options??[],r=e.ask?.question??e.outcome??"";if((0,eL.isBudgetAsk)(e.ask))return`${t} Out of steps. Where it got to: ${r} Ask whether to keep going; if yes, send "${eL.TASK_CONTINUE}" with the task tool.`;let i=n.length?` Options: ${n.join(" / ")}.`:"";return`${t} It asks: ${r}${i} Answer with the task tool if you can; otherwise ask the user and send back what they say.`}case"failed":return`${t} It could not finish: ${e.outcome??""}`;default:return`${t} Done. Its report: ${e.outcome??""}`}}(e),mark:e.id,show:function(e){let t="waiting"===e.status?(0,eL.isBudgetAsk)(e.ask)?`${e.bot} is out of steps`:`${e.bot} is asking`:"failed"===e.status?`${e.bot} could not finish`:`Report from ${e.bot}`;return{kind:"relay",name:e.label,line:t,done:!0}}(e)}))}},[H,j,a]),(0,p.useEffect)(()=>tV.screenActs.subscribe(e=>{O.current&&j.send({line:"answered"===e.kind?`The user answered task "${e.label}" on screen: ${e.answer}. The bot is going on with that — do not ask again.`:`The user stopped task "${e.label}" on screen. It is not running any more — do not wait for it or report on it.`})}),[j]);let V=(0,p.useCallback)(async()=>{let e=n.current,t=T.current;n.current=null,T.current=null,O.current=!1,E.current=!1,S.current.clear(),j.close(),j.clear(),C.current=null,k.current?.abort(),k.current=null,y.current.tool=!1,D(),w.current&&clearTimeout(w.current),B(),b.current.grace&&clearTimeout(b.current.grace),b.current={since:0,asked:!1,grace:null},g(null),h(null),s("idle"),l([]),c(null),e?.close(),t&&t6(t),e&&i.current&&(i.current.currentTime=0,i.current.play().catch(()=>{}))},[j,B,D]);(0,p.useEffect)(()=>()=>{n.current?.close(),n.current=null;let e=T.current;T.current=null,O.current=!1,E.current=!1,e&&t6(e),k.current?.abort(),k.current=null,w.current&&clearTimeout(w.current),F.current&&clearTimeout(F.current),y.current.giveUp&&clearTimeout(y.current.giveUp),b.current.grace&&clearTimeout(b.current.grace)},[]);let X=(0,p.useCallback)(e=>{b.current.since=Date.now(),"user"===e&&(b.current.grace&&clearTimeout(b.current.grace),b.current.grace=null,b.current.asked=!1)},[]);(0,p.useEffect)(()=>{if(!q)return;X("agent");let e=setInterval(()=>{let e=n.current;if(!e)return;let t=6e4-(Date.now()-b.current.since);g(t<=15e3&&!b.current.asked?Math.max(0,Math.ceil(t/1e3)):null),t>0||b.current.asked||(b.current.asked=!0,e.say("The user has said nothing for a minute. Say a one-line goodbye, then call end_call."),b.current.grace=setTimeout(()=>void V(),15e3))},1e3);return()=>clearInterval(e)},[q,X,V]);let W=(0,p.useCallback)(async()=>{if(!E.current){if(O.current||"idle"!==a)return V();s("connecting"),E.current=!0,O.current=!0,j.clear();try{let e=(0,tX.unwrapResult)(await t4((0,tB.thursdaySettings)()));T.current=e.callId;let t=new AbortController;k.current=t;let a={failures:0};r.current??=(0,t5.createAudioTap)(),function(e){if("suspended"!==e.state||nt)return;nt=!0;let t=()=>{nt=!1,window.removeEventListener("pointerdown",t),window.removeEventListener("keydown",t),e.resume().catch(()=>{})};window.addEventListener("pointerdown",t),window.addEventListener("keydown",t),tq.toast.add({type:"warning",title:"Tap anywhere to hear her",description:"This call opened on its own, so the browser is holding the audio."})}(r.current.open().context);let s=new Audio("/sounds/start_voice.ogg");i.current??=new Audio("/sounds/end_voice.ogg");let o=[],u=await t2({provider:e.provider,credential:e.credential,setup:e.session,audio:r.current,on:{runTool:async n=>{if(n.name===tH.TOOL_NAMES.end_call)return setTimeout(()=>void V(),400),"Ending the call.";A(n);try{return await tW(e.callId,n,t.signal)}finally{P(n.name)}},turn:t=>{if(X("user"===t.role?"user":"agent"),"tool"!==t.role&&(o[t.seq]={id:t.id,role:t.role,text:t.text},l(o.filter(Boolean).slice(-24))),t.done){var n,r,i;let{id:s,role:o,tool:l,text:u,seq:c}=t;n=e.callId,r={id:s,role:o,tool:l,text:u,seq:c},(i=a).failures>=3||t8(n,[r]).then(e=>(0,tX.unwrapResult)(e)).catch(e=>{i.failures+=1,3===i.failures&&tq.toast.add({type:"warning",title:"This call is not being saved",description:(0,_.errorToString)(e)})})}},activity:e=>{var t;U((t=e).tools.length?t.tools.includes(tH.TOOL_NAMES.delegate)?"delegating":"working":t.speaking?"speaking":"listening"),e.hearing?X("user"):(e.speaking||e.tools.length)&&X("agent"),y.current.tool=e.tools.length>0,y.current.reading&&(e.speaking?y.current.spoke=!0:y.current.spoke&&(y.current.reading=!1,C.current?.())),y.current.reading?N():D()},warn:e=>tq.toast.add({type:"warning",title:"Call warning",description:e}),failed:e=>{tq.toast.add({type:"error",title:"Call failed",description:e}),V()}}}),c=e=>{var t,n;if(!e.length)return;z(),u.say(1===e.length?e[0].line:(t=e,`[${t.length} jobs came back at once — not the user speaking; they have heard none of this. Tell them in one turn, not ${t.length}.]
2
-
3
- ${t.map(e=>e.line).join("\n\n")}`));let r=e.at(-1)?.show;r&&R(r);let i=e.flatMap(e=>e.mark??[]);i.length&&(n=i,(0,tK.markReportedAction)(n).then(tX.unwrapResult).catch(e=>tq.toast.add({type:"error",title:"Could not mark the report as delivered",description:(0,_.errorToString)(e)}))),j.close()};C.current=()=>{let e=j.clear();j.open(e=>c([e])),c(e)},j.open(e=>c([e])),e.opening&&(z(),u.say(e.opening)),n.current=u,E.current=!1,$("listening"),h(Date.now()),s.play().catch(()=>{})}catch(e){tq.toast.add({type:"error",title:"Could not start the call",description:(0,_.errorToString)(e)}),T.current&&t6(T.current),T.current=null,E.current=!1,O.current=!1,j.clear(),S.current.clear(),s("idle")}}},[a,V,A,P,R,U,$,X,j,z,D,N]),J=(0,tB.useThursdayStore)(e=>e.callBack),G=(0,p.useRef)(null);(0,p.useEffect)(()=>{if(!H)return;let e=H.filter(e=>{var t;return!e.reported&&("waiting"===(t=e).status&&!(0,eL.isBudgetAsk)(t.ask)||"any"===J&&"running"!==e.status)});if(!G.current){G.current=new Set(e.map(e=>e.id));return}let t=new Set(e.map(e=>e.id));for(let e of G.current)t.has(e)||G.current.delete(e);if("off"!==J&&"idle"===a&&e.filter(e=>!G.current?.has(e.id)).length){for(let t of e)G.current.add(t.id);W()}},[H,J,a,W]);let Q=(0,p.useCallback)(()=>r.current?.read()??t9,[]),Z=(0,p.useCallback)(()=>r.current?.readMic()??t9,[]),ee=(0,tB.useThursdayStore)(e=>e.wake),[et,en]=(0,p.useState)(!1);!function({enabled:e,onWake:t,phrases:n,lang:r="en-US",tolerance:i=.34,onError:a}){let s=(0,p.useRef)({onWake:t,onError:a,phrases:n,tolerance:i});s.current={onWake:t,onError:a,phrases:n,tolerance:i},(0,p.useEffect)(()=>{if(!e)return;let t=window,n=t.SpeechRecognition??t.webkitSpeechRecognition;if(!n)return void s.current.onError?.("This browser cannot listen for a wake word");let i=new n,a=!0,o=!0,l=null,u=300;i.lang=r,i.continuous=!0,i.interimResults=!0,i.maxAlternatives=3;let c=()=>{if(a){o=!0;try{i.start()}catch{}}};return i.onresult=({resultIndex:e,results:t})=>{if(!a||!o)return;u=300;let{phrases:n,tolerance:r,onWake:l}=s.current,c=n.map(tQ).filter(e=>e.length);for(let n=e;n<t.length;n++){let e=t[n];for(let t=0;t<e.length;t++){let n=e[t].transcript,a=tQ(n);if(c.some(e=>(function(e,t,n){for(let r=0;r<e.length;r++)if(function e(t,n,r,i,a){if(i===r.length)return!0;if(n>=t.length)return!1;let s=r[i],o=Math.max(1,Math.round(s.length*a));return!!(tZ(t[n],s,o)&&e(t,n+1,r,i+1,a))||n+1<t.length&&tZ(t[n]+t[n+1],s,o)&&e(t,n+2,r,i+1,a)}(e,r,t,0,n))return!0;return!1})(a,e,r))){o=!1,i.abort(),l(n.trim());return}}}},i.onerror=({error:e})=>{let t=tG[e];t?(a=!1,s.current.onError?.(t)):"network"===e&&(u=Math.min(2*u,1e4))},i.onend=()=>{a&&(l=setTimeout(c,u))},c(),()=>{a=!1,l&&clearTimeout(l),i.onresult=null,i.onerror=null,i.onend=null,i.abort()}},[e,r])}({enabled:"idle"===a&&ee.enabled&&!et,phrases:[ee.phrase],onWake:()=>void W(),onError:()=>en(!0)});let er=(0,tB.useThursdayStore)(e=>e.hotkey),ei="connecting"===a;return(0,tJ.useHotkey)({enabled:er.enabled&&!ei,combo:er.enabled&&(0,tJ.isCombo)(er.combo)?er.combo:null,onPress:()=>void W()}),{status:a,messages:o,tool:u,idleLeft:f,micOff:v,since:d,call:W,getSpectrum:Q,getMicSpectrum:Z,wakePhrase:ee.enabled&&!et?ee.phrase:null,hotkey:er.enabled&&(0,tJ.isCombo)(er.combo)?er.combo:null}}(),f=(0,tJ.useHotkeyLabel)(h),g=(0,th.useThursdayFace)(),v=(0,tB.useThursdayStore)(e=>e.captionView);e="idle"!==n,(0,p.useEffect)(()=>{if(!e)return;let t=document.title,n=0;document.title=`${t$.APP_NAME} ${tU[n]}`;let r=setInterval(()=>{n=(n+1)%tU.length,document.title=`${t$.APP_NAME} ${tU[n]}`},100);return()=>{clearInterval(r),document.title=t}},[e]);let{data:x}=(0,eW.useServerRoute)(m.queryKey.config),y=eI.SPEACH_MODEL_PROVIDER_LIST.some(e=>(0,eH.isConfigSet)(x,e.apiKeyName));return(0,t.jsx)(ns,{status:n,messages:r,tool:i,onTap:l,wakePhrase:d,hotkeyLabel:f,idleLeft:a,since:s,micOff:o,getSpectrum:u,getMicSpectrum:c,face:g,captionView:v,callable:y})}],692888)},90317,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return l},createSnapshot:function(){return c}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class s{disable(){throw a}getStore(){}run(){throw a}exit(){throw a}enterWith(){throw a}static bind(e){return e}}let o="u">typeof globalThis&&globalThis.AsyncLocalStorage;function l(){return o?new o:new s}function u(e){return o?o.bind(e):s.bind(e)}function c(){return o?o.snapshot():function(e,...t){return e(...t)}}},242344,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,e.r(90317).createAsyncLocalStorage)()},563599,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=e.r(242344)},309885,(e,t,n)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return r}})},667585,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=e.r(132061);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},652157,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return l}});let r=e.r(843476),i=e.r(174080),a=e.r(563599),s=e.r(309885),o=e.r(543369);function l({moduleIds:e}){if("u">typeof window)return null;let t=a.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;n.push(...e)}}if(0===n.length)return null;let u=(0,o.getAssetTokenQuery)();return(0,r.jsx)(r.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,s.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},869093,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return u}});let r=e.r(843476),i=e.r(271645),a=e.r(667585),s=e.r(652157);function o(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},u=function(e){let t={...l,...e},n=(0,i.lazy)(()=>t.loader().then(o)),u=t.loading;function c(e){let o=u?(0,r.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,c=l?i.Suspense:i.Fragment,d=t.ssr?(0,r.jsxs)(r.Fragment,{children:["u"<typeof window?(0,r.jsx)(s.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(c,{...l?{fallback:o}:{},children:d})}return c.displayName="LoadableComponent",c}},770703,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i}});let r=e.r(555682)._(e.r(869093));function i(e,t){let n={};"function"==typeof e&&(n.loader=e);let i={...n,...t};return(0,r.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},618566,(e,t,n)=>{t.exports=e.r(976562)}]);