larkup 0.1.27 → 0.1.28

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 (85) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/diagnostics/route-bundle-stats.json +9 -9
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/required-server-files.js +1 -1
  6. package/.next/required-server-files.json +1 -1
  7. package/.next/server/app/_global-error.html +1 -1
  8. package/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/_not-found.html +1 -1
  16. package/.next/server/app/_not-found.rsc +16 -16
  17. package/.next/server/app/_not-found.segments/_full.segment.rsc +16 -16
  18. package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  19. package/.next/server/app/_not-found.segments/_index.segment.rsc +11 -11
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  21. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  22. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  23. package/.next/server/app/analytics/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/analytics.html +1 -1
  25. package/.next/server/app/analytics.rsc +17 -17
  26. package/.next/server/app/analytics.segments/_full.segment.rsc +17 -17
  27. package/.next/server/app/analytics.segments/_head.segment.rsc +4 -4
  28. package/.next/server/app/analytics.segments/_index.segment.rsc +11 -11
  29. package/.next/server/app/analytics.segments/_tree.segment.rsc +1 -1
  30. package/.next/server/app/analytics.segments/analytics/__PAGE__.segment.rsc +3 -3
  31. package/.next/server/app/analytics.segments/analytics.segment.rsc +3 -3
  32. package/.next/server/app/api/chat/route.js +4 -4
  33. package/.next/server/app/api/media/process/route.js +2 -2
  34. package/.next/server/app/chat/page_client-reference-manifest.js +1 -1
  35. package/.next/server/app/chat.html +1 -1
  36. package/.next/server/app/chat.rsc +17 -17
  37. package/.next/server/app/chat.segments/_full.segment.rsc +17 -17
  38. package/.next/server/app/chat.segments/_head.segment.rsc +4 -4
  39. package/.next/server/app/chat.segments/_index.segment.rsc +11 -11
  40. package/.next/server/app/chat.segments/_tree.segment.rsc +1 -1
  41. package/.next/server/app/chat.segments/chat/__PAGE__.segment.rsc +3 -3
  42. package/.next/server/app/chat.segments/chat.segment.rsc +3 -3
  43. package/.next/server/app/data/page_client-reference-manifest.js +1 -1
  44. package/.next/server/app/data.html +1 -1
  45. package/.next/server/app/data.rsc +17 -17
  46. package/.next/server/app/data.segments/_full.segment.rsc +17 -17
  47. package/.next/server/app/data.segments/_head.segment.rsc +4 -4
  48. package/.next/server/app/data.segments/_index.segment.rsc +11 -11
  49. package/.next/server/app/data.segments/_tree.segment.rsc +1 -1
  50. package/.next/server/app/data.segments/data/__PAGE__.segment.rsc +3 -3
  51. package/.next/server/app/data.segments/data.segment.rsc +3 -3
  52. package/.next/server/app/index.html +1 -1
  53. package/.next/server/app/index.rsc +16 -16
  54. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  55. package/.next/server/app/index.segments/_full.segment.rsc +16 -16
  56. package/.next/server/app/index.segments/_head.segment.rsc +4 -4
  57. package/.next/server/app/index.segments/_index.segment.rsc +11 -11
  58. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  59. package/.next/server/app/page_client-reference-manifest.js +1 -1
  60. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  61. package/.next/server/app/settings.html +1 -1
  62. package/.next/server/app/settings.rsc +18 -18
  63. package/.next/server/app/settings.segments/_full.segment.rsc +18 -18
  64. package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  65. package/.next/server/app/settings.segments/_index.segment.rsc +11 -11
  66. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  67. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  68. package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  69. package/.next/server/chunks/packages_marketplace_src_125_g2p._.js +1 -1
  70. package/.next/server/chunks/ssr/_1hetwwu._.js +1 -1
  71. package/.next/server/chunks/ssr/_1yqlx1m._.js +1 -1
  72. package/.next/server/chunks/ssr/apps_web_components_analytics_analytics-dashboard_tsx_1056-z3._.js +1 -1
  73. package/.next/server/middleware-build-manifest.js +3 -3
  74. package/.next/server/pages/404.html +1 -1
  75. package/.next/server/pages/500.html +1 -1
  76. package/.next/static/chunks/{0-5iuj-s4wl9k.js → 0k405nomf6s4e.js} +1 -1
  77. package/.next/static/chunks/{3m_e34hfypn-x.js → 13hmtkhrbm4t3.js} +1 -1
  78. package/.next/static/chunks/{1w2jeq6n8-qz9.js → 3g_wl1fri6jb-.js} +1 -1
  79. package/CHANGELOG.md +10 -0
  80. package/components/analytics/analytics-dashboard.tsx +7 -7
  81. package/components/settings/server-section.tsx +9 -9
  82. package/package.json +4 -4
  83. /package/.next/static/{Ms6fqY45868GqHAvux2Qj → bDwMIFYSTVBKUJkJJx77o}/_buildManifest.js +0 -0
  84. /package/.next/static/{Ms6fqY45868GqHAvux2Qj → bDwMIFYSTVBKUJkJJx77o}/_clientMiddlewareManifest.js +0 -0
  85. /package/.next/static/{Ms6fqY45868GqHAvux2Qj → bDwMIFYSTVBKUJkJJx77o}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en" class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable bg-transparent"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/233p45nuh4m5b.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/0fa79dhcoeytz.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/27fi1xpxq8d86.js"/><script src="/_next/static/chunks/2vf9qvtghwrpc.js" async=""></script><script src="/_next/static/chunks/2ni3dzue_cjp8.js" async=""></script><script src="/_next/static/chunks/3tq9j7hs47mpo.js" async=""></script><script src="/_next/static/chunks/2jqjx4-rh414_.js" async=""></script><script src="/_next/static/chunks/turbopack-2gu-fmc6o5wkn.js" async=""></script><script src="/_next/static/chunks/1cxabi5yzqz57.js" async=""></script><script src="/_next/static/chunks/3een1tiktxr6a.js" async=""></script><script src="/_next/static/chunks/3m_e34hfypn-x.js" async=""></script><script src="/_next/static/chunks/0_jwrts3vuzsv.js" async=""></script><script src="/_next/static/chunks/3w4-sqe513cwc.js" async=""></script><script src="/_next/static/chunks/1xlxyu0yrbcp_.js" async=""></script><script src="/_next/static/chunks/2ns4rchocl_ih.js" async=""></script><script src="/_next/static/chunks/3d56c3oo26hbg.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>larkup</title><meta name="description" content="larkup — a toolkit to build, index, and serve your own AI model and knowledge base."/><link rel="icon" href="/favicon.ico?favicon.05jv43wa20avt.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="font-sans antialiased "><div hidden=""><!--$--><!--/$--></div><script>(function(){try{var t=localStorage.getItem('app-theme');var b=localStorage.getItem('app-background');var r=localStorage.getItem('app-radius');var d=document.body;if(t&&t!=='default')d.classList.add(t);if(b)d.classList.add(b);if(r&&r!=='radius-default')d.classList.add(r);}catch(e){}})();</script><div class="flex h-screen items-center justify-center"><div class="size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"></div></div><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><script src="/_next/static/chunks/27fi1xpxq8d86.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[232295,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"UpdateBanner\"]\n3:I[82100,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"ThemeCustomizerProvider\"]\n4:I[624529,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"WorkspaceProvider\"]\n5:I[266186,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"ClientLayoutWrapper\"]\n6:I[200943,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"default\"]\n7:I[724474,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\",\"/_next/static/chunks/2ns4rchocl_ih.js\",\"/_next/static/chunks/3d56c3oo26hbg.js\"],\"default\"]\n8:I[624727,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"default\"]\n9:I[7012,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"Toaster\"]\na:I[953159,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"GlobalIndexProgress\"]\nb:I[721606,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"Analytics\"]\nc:I[711184,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"OutletBoundary\"]\nd:\"$Sreact.suspense\"\n10:I[711184,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"ViewportBoundary\"]\n12:I[711184,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"MetadataBoundary\"]\n15:I[457715,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/233p45nuh4m5b.css\",\"style\"]\n:HL[\"/_next/static/chunks/0fa79dhcoeytz.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/233p45nuh4m5b.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0fa79dhcoeytz.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/1cxabi5yzqz57.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/3een1tiktxr6a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/3m_e34hfypn-x.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/_next/static/chunks/3w4-sqe513cwc.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/_next/static/chunks/1xlxyu0yrbcp_.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable bg-transparent\",\"children\":[\"$\",\"body\",null,{\"suppressHydrationWarning\":true,\"className\":\"font-sans antialiased \",\"children\":[[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var t=localStorage.getItem('app-theme');var b=localStorage.getItem('app-background');var r=localStorage.getItem('app-radius');var d=document.body;if(t\u0026\u0026t!=='default')d.classList.add(t);if(b)d.classList.add(b);if(r\u0026\u0026r!=='radius-default')d.classList.add(r);}catch(e){}})();\"}}],[\"$\",\"$L2\",null,{}],[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$L8\",null,{}]}],\"templateStyles\":[],\"templateScripts\":[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/2ns4rchocl_ih.js\",\"async\":true}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/3d56c3oo26hbg.js\",\"async\":true}]],\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L9\",null,{\"position\":\"bottom-left\"}],[\"$\",\"$La\",null,{}]]}]}],[\"$\",\"$Lb\",null,{}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:0:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:0:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@e\"}]}]]}],{},null,false,null]},null,false,\"$@f\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L10\",null,{\"children\":\"$L11\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L12\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L13\"}]}]}],\"$L14\"]}],false]],\"m\":\"$undefined\",\"G\":[\"$15\",[\"$L16\",\"$L17\"]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"Ms6fqY45868GqHAvux2Qj\"}\n"])</script><script>self.__next_f.push([1,"18:[]\nf:\"$W18\"\n14:[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]\n16:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/233p45nuh4m5b.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n17:[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0fa79dhcoeytz.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"11:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"19:I[499693,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/3m_e34hfypn-x.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"IconMark\"]\ne:null\n13:[[\"$\",\"title\",\"0\",{\"children\":\"larkup\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"larkup — a toolkit to build, index, and serve your own AI model and knowledge base.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.05jv43wa20avt.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L19\",\"3\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html lang="en" class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable bg-transparent"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/233p45nuh4m5b.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/0fa79dhcoeytz.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/27fi1xpxq8d86.js"/><script src="/_next/static/chunks/2vf9qvtghwrpc.js" async=""></script><script src="/_next/static/chunks/2ni3dzue_cjp8.js" async=""></script><script src="/_next/static/chunks/3tq9j7hs47mpo.js" async=""></script><script src="/_next/static/chunks/2jqjx4-rh414_.js" async=""></script><script src="/_next/static/chunks/turbopack-2gu-fmc6o5wkn.js" async=""></script><script src="/_next/static/chunks/1cxabi5yzqz57.js" async=""></script><script src="/_next/static/chunks/3een1tiktxr6a.js" async=""></script><script src="/_next/static/chunks/13hmtkhrbm4t3.js" async=""></script><script src="/_next/static/chunks/0_jwrts3vuzsv.js" async=""></script><script src="/_next/static/chunks/3w4-sqe513cwc.js" async=""></script><script src="/_next/static/chunks/1xlxyu0yrbcp_.js" async=""></script><script src="/_next/static/chunks/2ns4rchocl_ih.js" async=""></script><script src="/_next/static/chunks/3d56c3oo26hbg.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>larkup</title><meta name="description" content="larkup — a toolkit to build, index, and serve your own AI model and knowledge base."/><link rel="icon" href="/favicon.ico?favicon.05jv43wa20avt.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="font-sans antialiased "><div hidden=""><!--$--><!--/$--></div><script>(function(){try{var t=localStorage.getItem('app-theme');var b=localStorage.getItem('app-background');var r=localStorage.getItem('app-radius');var d=document.body;if(t&&t!=='default')d.classList.add(t);if(b)d.classList.add(b);if(r&&r!=='radius-default')d.classList.add(r);}catch(e){}})();</script><div class="flex h-screen items-center justify-center"><div class="size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"></div></div><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><script src="/_next/static/chunks/27fi1xpxq8d86.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[232295,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"UpdateBanner\"]\n3:I[82100,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"ThemeCustomizerProvider\"]\n4:I[624529,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"WorkspaceProvider\"]\n5:I[266186,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"ClientLayoutWrapper\"]\n6:I[200943,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"default\"]\n7:I[724474,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\",\"/_next/static/chunks/2ns4rchocl_ih.js\",\"/_next/static/chunks/3d56c3oo26hbg.js\"],\"default\"]\n8:I[624727,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"default\"]\n9:I[7012,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"Toaster\"]\na:I[953159,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"GlobalIndexProgress\"]\nb:I[721606,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"Analytics\"]\nc:I[711184,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"OutletBoundary\"]\nd:\"$Sreact.suspense\"\n10:I[711184,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"ViewportBoundary\"]\n12:I[711184,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"MetadataBoundary\"]\n15:I[457715,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/233p45nuh4m5b.css\",\"style\"]\n:HL[\"/_next/static/chunks/0fa79dhcoeytz.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/233p45nuh4m5b.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0fa79dhcoeytz.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/1cxabi5yzqz57.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/3een1tiktxr6a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/_next/static/chunks/3w4-sqe513cwc.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/_next/static/chunks/1xlxyu0yrbcp_.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable bg-transparent\",\"children\":[\"$\",\"body\",null,{\"suppressHydrationWarning\":true,\"className\":\"font-sans antialiased \",\"children\":[[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var t=localStorage.getItem('app-theme');var b=localStorage.getItem('app-background');var r=localStorage.getItem('app-radius');var d=document.body;if(t\u0026\u0026t!=='default')d.classList.add(t);if(b)d.classList.add(b);if(r\u0026\u0026r!=='radius-default')d.classList.add(r);}catch(e){}})();\"}}],[\"$\",\"$L2\",null,{}],[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$L8\",null,{}]}],\"templateStyles\":[],\"templateScripts\":[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/2ns4rchocl_ih.js\",\"async\":true}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/3d56c3oo26hbg.js\",\"async\":true}]],\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L9\",null,{\"position\":\"bottom-left\"}],[\"$\",\"$La\",null,{}]]}]}],[\"$\",\"$Lb\",null,{}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:0:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:0:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@e\"}]}]]}],{},null,false,null]},null,false,\"$@f\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L10\",null,{\"children\":\"$L11\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L12\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L13\"}]}]}],\"$L14\"]}],false]],\"m\":\"$undefined\",\"G\":[\"$15\",[\"$L16\",\"$L17\"]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"bDwMIFYSTVBKUJkJJx77o\"}\n"])</script><script>self.__next_f.push([1,"18:[]\nf:\"$W18\"\n14:[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]\n16:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/233p45nuh4m5b.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n17:[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0fa79dhcoeytz.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"11:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"19:I[499693,[\"/_next/static/chunks/1cxabi5yzqz57.js\",\"/_next/static/chunks/3een1tiktxr6a.js\",\"/_next/static/chunks/13hmtkhrbm4t3.js\",\"/_next/static/chunks/0_jwrts3vuzsv.js\",\"/_next/static/chunks/3w4-sqe513cwc.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"IconMark\"]\ne:null\n13:[[\"$\",\"title\",\"0\",{\"children\":\"larkup\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"larkup — a toolkit to build, index, and serve your own AI model and knowledge base.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.05jv43wa20avt.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L19\",\"3\",{}]]\n"])</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/27fi1xpxq8d86.js"/><script src="/_next/static/chunks/2vf9qvtghwrpc.js" async=""></script><script src="/_next/static/chunks/2ni3dzue_cjp8.js" async=""></script><script src="/_next/static/chunks/3tq9j7hs47mpo.js" async=""></script><script src="/_next/static/chunks/2jqjx4-rh414_.js" async=""></script><script src="/_next/static/chunks/turbopack-2gu-fmc6o5wkn.js" async=""></script><script src="/_next/static/chunks/2mpj227221cz7.js" async=""></script><script src="/_next/static/chunks/1xlxyu0yrbcp_.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="icon" href="/favicon.ico?favicon.05jv43wa20avt.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/27fi1xpxq8d86.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[200943,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"default\"]\n3:I[624727,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"default\"]\n4:I[711184,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[711184,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"ViewportBoundary\"]\na:I[711184,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"MetadataBoundary\"]\nc:I[457715,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"Ms6fqY45868GqHAvux2Qj\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[499693,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.05jv43wa20avt.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"1\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/27fi1xpxq8d86.js"/><script src="/_next/static/chunks/2vf9qvtghwrpc.js" async=""></script><script src="/_next/static/chunks/2ni3dzue_cjp8.js" async=""></script><script src="/_next/static/chunks/3tq9j7hs47mpo.js" async=""></script><script src="/_next/static/chunks/2jqjx4-rh414_.js" async=""></script><script src="/_next/static/chunks/turbopack-2gu-fmc6o5wkn.js" async=""></script><script src="/_next/static/chunks/2mpj227221cz7.js" async=""></script><script src="/_next/static/chunks/1xlxyu0yrbcp_.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="icon" href="/favicon.ico?favicon.05jv43wa20avt.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/27fi1xpxq8d86.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[200943,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"default\"]\n3:I[624727,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"default\"]\n4:I[711184,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[711184,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"ViewportBoundary\"]\na:I[711184,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"MetadataBoundary\"]\nc:I[457715,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"bDwMIFYSTVBKUJkJJx77o\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[499693,[\"/_next/static/chunks/2mpj227221cz7.js\",\"/_next/static/chunks/1xlxyu0yrbcp_.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.05jv43wa20avt.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"1\",{}]]\n"])</script></body></html>
@@ -59,7 +59,7 @@ const { text } = await generateText({
59
59
  console.log(text);`})[s];async function l(){await navigator.clipboard.writeText(a),o(!0),setTimeout(()=>o(!1),2e3)}return(0,k.jsxs)(eR.Dialog,{children:[(0,k.jsx)(eR.DialogTrigger,{render:(0,k.jsxs)(Y.Button,{size:"sm",variant:"outline",className:"gap-2 h-8",disabled:t,children:[(0,k.jsx)(eN,{className:"size-4"}),"Connect to Server SDK"]})}),(0,k.jsxs)(eR.DialogContent,{className:"sm:max-w-2xl",children:[(0,k.jsxs)(eR.DialogHeader,{children:[(0,k.jsxs)(eR.DialogTitle,{className:"flex items-center gap-2",children:[(0,k.jsx)(eN,{className:"size-5 text-primary"}),"Connect to your RAG Server"]}),(0,k.jsx)(eR.DialogDescription,{children:"Use one of these SDKs to programmatically interact with your RAG server."})]}),(0,k.jsx)("div",{className:"flex gap-1 rounded-lg border bg-muted/40 p-1",children:vr.map(e=>(0,k.jsx)("button",{type:"button",onClick:()=>r(e.id),className:(0,E.cn)("flex-1 rounded-md px-3 py-1.5 text-sm font-medium transition-all",s===e.id?"bg-background text-foreground ":"text-muted-foreground hover:text-foreground"),children:e.label},e.id))}),(0,k.jsxs)("div",{className:"relative rounded-lg border bg-slate-50 overflow-hidden",children:[(0,k.jsxs)("div",{className:"flex items-center justify-between border-b border-slate-200 px-4 py-2 bg-slate-100/50",children:[(0,k.jsx)("span",{className:"text-xs text-slate-500 font-mono",children:"python"===s?"main.py":"typescript"===s?"index.ts":"connect.ts"}),(0,k.jsx)("button",{type:"button",onClick:l,className:"flex items-center gap-1.5 rounded-md px-2 py-1 text-xs text-slate-500 transition hover:bg-slate-200 hover:text-slate-900",children:n?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(eZ.Check,{className:"size-3.5"}),"Copied!"]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(ev.Copy,{className:"size-3.5"}),"Copy"]})})]}),(0,k.jsx)(vs,{value:a,language:"python"===s?"python":"javascript",height:"auto"})]}),(0,k.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,k.jsxs)("span",{className:"text-muted-foreground",children:["Server URL:"," ",(0,k.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-mono",children:e||"Not running"})]}),(0,k.jsxs)("a",{href:"https://www.larkup.de/sdk/overview",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-primary hover:underline",children:["Full docs",(0,k.jsx)(eg.ExternalLink,{className:"size-3.5"})]})]})]})]})}var vo=e.i(570764);let va=(0,R.default)("dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]]),vl=(0,R.default)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),vc=(0,R.default)("plug-zap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]);var vh=e.i(57555),vd=e.i(146012),vu=e.i(323621),vO=e.i(861947),vf=e.i(161351);function vp({store:e,values:t,errors:i,onChange:s,indexType:r}){let n=(0,vf.visibleFields)(e,t,r),[o,a]=(0,P.useState)({});return(0,k.jsx)("div",{className:"grid gap-5 sm:grid-cols-2",children:n.map(e=>{let r=t[e.key]??e.defaultValue??"",n=i[e.key],l=`store-${e.key}`;return(0,k.jsxs)("div",{className:(0,E.cn)("space-y-1.5","select"===e.type&&"sm:col-span-1"),children:[(0,k.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,k.jsx)(B.Label,{htmlFor:l,children:e.label}),e.required&&(0,k.jsx)("span",{className:"text-destructive","aria-hidden":!0,children:"*"}),e.secret&&(0,k.jsxs)(vu.Badge,{variant:"outline",className:"h-4 gap-1 px-1 text-[9px] font-mono uppercase text-muted-foreground",children:[(0,k.jsx)(eQ,{className:"size-2.5"}),"secret"]})]}),"select"===e.type?(0,k.jsxs)(G.Select,{value:r,onValueChange:t=>s(e.key,t??""),children:[(0,k.jsx)(G.SelectTrigger,{id:l,className:(0,E.cn)("w-full",n&&"border-destructive"),children:(0,k.jsx)(G.SelectValue,{placeholder:`Select ${e.label}`})}),(0,k.jsx)(G.SelectContent,{children:e.options?.map(e=>(0,k.jsx)(G.SelectItem,{value:e.value,children:e.label},e.value))})]}):"password"===e.type?(0,k.jsxs)("div",{className:"relative",children:[(0,k.jsx)(U.Input,{id:l,type:o[e.key]?"text":"password",placeholder:e.placeholder,value:r,spellCheck:!1,autoComplete:"off",className:(0,E.cn)("font-mono text-sm pr-9",n&&"border-destructive"),onChange:t=>s(e.key,t.target.value)}),(0,k.jsx)("button",{type:"button",onClick:()=>{var t;return t=e.key,void a(e=>({...e,[t]:!e[t]}))},className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",tabIndex:-1,children:o[e.key]?(0,k.jsx)(L.EyeOff,{className:"size-4"}):(0,k.jsx)(D.Eye,{className:"size-4"})})]}):(0,k.jsx)(U.Input,{id:l,type:"text",placeholder:e.placeholder,value:r,spellCheck:!1,autoComplete:"off",className:(0,E.cn)("path"===e.type&&"font-mono text-sm",n&&"border-destructive"),onChange:t=>s(e.key,t.target.value)}),n?(0,k.jsx)("p",{className:"text-xs text-destructive",children:n}):e.help?(0,k.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:e.help}):null]},e.key)})})}var vm=e.i(956642);let vg=(0,vm.createServerReference)("788d2a54def528afab85cd875b9df9131f22ff7825",vm.callServer,void 0,vm.findSourceMapURL,"deployToVercel"),vx=(0,vm.createServerReference)("406854aa983e37f94e9402716a996c9c31b64b8fce",vm.callServer,void 0,vm.findSourceMapURL,"getServerEnvRequirements");function vv(e){return`larkup_deployments_${e}`}function vy(e){return e.url.replace(/\/$/,"")}function vb(e){return`larkup_api_key_version_${e}`}function vS(e){return Number.parseInt(localStorage.getItem(vb(e))||"0",10)||0}function vw(e){let t=vS(e)+1;return localStorage.setItem(vb(e),String(t)),t}function vQ(e){try{let t=localStorage.getItem(vv(e));if(t)return JSON.parse(t)}catch{}let t=function(e){let t=localStorage.getItem(`vercel_deployed_url_${e}`);if(!t)return[];let i=localStorage.getItem(`vercel_deployed_provider_${e}`)||"vercel";return[{id:`${i}:${t}`,provider:i,project:localStorage.getItem(`vercel_project_${e}`)||t,url:t,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}]}(e);return t.length&&localStorage.setItem(vv(e),JSON.stringify(t)),t}function vk(e,t){localStorage.setItem(vv(e),JSON.stringify(t)),window.dispatchEvent(new CustomEvent("larkup-deployments-change",{detail:e}))}function vP(e,t){let i=vQ(e),s=i.findIndex(e=>e.provider===t.provider&&e.project===t.project),r=new Date().toISOString(),n={...t,apiKeyVersion:t.apiKeyVersion??vS(e),id:s>=0?i[s].id:`${t.provider}:${t.project}`,createdAt:s>=0?i[s].createdAt:r,updatedAt:r};return s>=0?i[s]=n:i.unshift(n),vk(e,i),i}function v$(e,t,i){let s=vQ(e).map(e=>e.id===t?{...e,...i,updatedAt:new Date().toISOString()}:e);return vk(e,s),s}let vT="vercel_token";function vj(e){return`vercel_project_${e}`}function vC(e){return`vercel_deployed_url_${e}`}function vX(e){return`vercel_deployed_provider_${e}`}function vR(e){return`rag_server_env_vars_${e}`}function vA(e,t){t!==(localStorage.getItem("rag_server_api_key")||"")&&vw(e),t?localStorage.setItem("rag_server_api_key",t):localStorage.removeItem("rag_server_api_key")}let vN=e=>fetch(e).then(e=>e.json()),vZ={lancedb:{iconSrc:"/icons/lancedb2.png",pillBg:"bg-yellow-50 dark:bg-yellow-950/40"},pinecone:{iconSrc:"/icons/pinecone.png",pillBg:"bg-green-50 dark:bg-green-950/40"}};function vz(e){return(0,vf.getVectorStore)(e).fields.reduce((e,t)=>(t.defaultValue&&(e[t.key]=t.defaultValue),e),{})}function vM({open:e,onOpenChange:t,target:i,serverId:s}){let{refresh:r,activateServer:n}=(0,K.useWorkspace)(),[o,a]=(0,P.useState)("general"),[l,c]=(0,P.useState)(null),h=`/api/config?serverId=${encodeURIComponent(s)}`,{data:d}=(0,W.default)(e?h:null,vN),[u,O]=(0,P.useState)("lancedb"),[f,p]=(0,P.useState)({}),[m,g]=(0,P.useState)({}),[x,v]=(0,P.useState)(!0),[y,b]=(0,P.useState)(!1),[S,w]=(0,P.useState)(!1),[Q,$]=(0,P.useState)(""),[j,C]=(0,P.useState)(!1),[X,R]=(0,P.useState)(null),[A,N]=(0,P.useState)(!0),[Z,z]=(0,P.useState)(null),[M,E]=(0,P.useState)(!1),q=(0,P.useRef)(void 0),[_,I]=(0,P.useState)([]),[L,H]=(0,P.useState)({}),[J,et]=(0,P.useState)(""),[ei,es]=(0,P.useState)(!1),[er,en]=(0,P.useState)({}),[eo,el]=(0,P.useState)(!1),[ec,ed]=(0,P.useState)(!1),[eu,eO]=(0,P.useState)(""),[ef,ep]=(0,P.useState)(""),[em,eg]=(0,P.useState)(!1),[ex,ev]=(0,P.useState)(!1),[ey,eb]=(0,P.useState)(""),[eS,ew]=(0,P.useState)("root"),[eQ,ek]=(0,P.useState)("password"),[eP,e$]=(0,P.useState)(""),[eT,ej]=(0,P.useState)(!1),[eC,eX]=(0,P.useState)([]),[eR,eA]=(0,P.useState)(!1),[eN,eZ]=(0,P.useState)(""),[ez,eM]=(0,P.useState)(""),[eE,eq]=(0,P.useState)(!1),[e_,eW]=(0,P.useState)(!1),[eV,eI]=(0,P.useState)(!1),eD=(0,P.useRef)(null),eL=X??s,{data:eY}=(0,W.default)(X?`/api/index?serverId=${encodeURIComponent(X)}`:null,vN,{refreshInterval:e=>e?.run&&!["completed","failed"].includes(e.run.status)?1200:0}),eU=eY?.run;eU&&["completed","failed"].includes(eU.status);let eB=(0,P.useMemo)(()=>eU?.totalChunks?Math.round(eU.processedChunks/eU.totalChunks*100):5,[eU]);(0,P.useEffect)(()=>{e?"env"===i?a("general"):a("provider"):(el(!1),ed(!1),R(null),E(!1),eI(!1),c(null),"env"===i&&a("general"))},[e,i]),(0,P.useEffect)(()=>{eU?.warning&&eU.warning!==q.current&&F.toast.warning(eU.warning,{id:"cloud-index-rate-limit",duration:7e4,position:"bottom-left"}),q.current=eU?.warning},[eU?.warning]),(0,P.useEffect)(()=>{if(!d?.config||X||eo)return;let e=d.config,t="lancedb"===e.vectorStore?"lancedb":e.vectorStore;O(t),p(e.vectorStore===t?e.storeConfig:vz(t)),$(e.embeddingModelId),vx(s).then(e=>{I(e);let t=localStorage.getItem(vR(s)),i=t?JSON.parse(t):{},r={};for(let t of e)r[t.key]=i[t.key]||t.defaultValue||"";H(r);let n=localStorage.getItem(vT),o=localStorage.getItem(vj(s)),a=localStorage.getItem("rag_server_api_key");a&&et(a),n&&(eO(n),ev(!0)),o&&ep(o),el(!0),ed(!0)})},[d,X,eo,s]);let eG=(0,P.useMemo)(()=>{if(!d?.config)return[];let e=d.config.embeddingProvider,t=[...eh.EMBEDDING_MODELS.filter(t=>"vercel_ai_gateway"===e||t.provider===e),...(d.config.customEmbeddings??[]).map(e=>({id:`custom:${e.modelName}`,label:e.modelName}))];return t.some(e=>e.id===d.config.embeddingModelId)?t:[{id:d.config.embeddingModelId,label:d.config.embeddingModelId},...t]},[d?.config]),eF=eG.find(e=>e.id===Q)??eG[0],eH=(0,vf.getVectorStore)(u),eK="lancedb"===u&&(f.mode??"local")==="local";async function eJ(){if(!d?.config)return!1;let e=(0,vf.validateStoreConfig)(eH,f,d.config.indexType);if(Object.keys(e).length>0)return g(e),N(!0),a("general"),F.toast.error("Complete the required storage fields before verifying.",{position:"bottom-left"}),!1;b(!0),z(null);try{let e=await fetch("/api/config/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...d.config,vectorStore:u,storeConfig:f,embeddingModelId:Q})}),t=await e.json();if(!e.ok)throw t.fieldErrors&&(g(t.fieldErrors),N(!0)),Error(t.error??"Connection failed");return w(!0),F.toast.success("Storage credentials verified.",{position:"bottom-left"}),!0}catch(t){w(!1);let e=t instanceof Error?t.message:"Connection failed";return z(e),F.toast.error(e,{position:"bottom-left"}),!1}finally{b(!1)}}async function e0(){if(!d?.config||eK)return F.toast.error("Choose cloud storage before continuing.",{position:"bottom-left"}),null;if(!S&&!await eJ())return null;C(!0);try{let e=await fetch("/api/deploy/cloud-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sourceServerId:s,vectorStore:u,storeConfig:f,indexType:d.config.indexType,copyKnowledgeBase:x,embeddingModelId:Q})}),t=await e.json();if(!e.ok)throw g(t.fieldErrors??{}),Error(t.error??"Could not create cloud project.");return R(t.server.id),await r(),F.toast.success(t.copiedDocuments?"Knowledge base indexing started...":"Cloud project created.",{position:"bottom-left"}),t.server.id}catch(e){return F.toast.error(e instanceof Error?e.message:"Could not create cloud project.",{position:"bottom-left"}),null}finally{C(!1)}}async function e1(){if("env"===i){vA(s,J),localStorage.setItem(vR(s),JSON.stringify(L)),t(!1),F.toast.success("Environment configuration saved.",{position:"bottom-left"});return}if(c(null),"vercel"===i){if(!eu||!ef){a("provider"),c("provider"),F.toast.error("Please enter both a Vercel Token and a Project name.",{position:"bottom-left"});return}}else if(!ey||!eS||!eP){a("provider"),c("provider"),F.toast.error("Please fill in all SSH connection details.",{position:"bottom-left"});return}for(let e of _)if(e.required&&!L[e.key]){a("general"),c("general"),F.toast.error(`Please provide a value for ${e.key}.`,{position:"bottom-left"});return}if(eK){a("general"),c("general"),F.toast.error("You must configure a cloud vector store (e.g. Pinecone) to deploy.",{position:"bottom-left"});return}if(!S&&!await eJ()){a("general"),c("general");return}if(!X&&d?.config.vectorStore==="lancedb"&&"lancedb"!==u){await e0()&&E(!0);return}"vercel"===i?e2(X??s):e5(X??s,void 0)}async function e2(e){eI(!0),F.toast.info("Triggering deployment started !!",{position:"bottom-left"});try{let i={...L};J&&(i.SERVER_API_KEY=J,vA(e,J));let r=await vg(eu,ef,e,i);if(r.success){localStorage.setItem(vT,eu),localStorage.setItem(vj(e),ef),localStorage.setItem(vC(e),r.url),localStorage.setItem(vX(e),"vercel"),vP(e,{provider:"vercel",project:r.projectName??ef,url:r.url,status:r.status}),e!==s&&await n(e);let i=r.projectCreated?"Project created and will be available in a few seconds":"Server has been deployed successfully!";F.toast.success((0,k.jsx)("div",{className:"flex flex-col gap-1",children:(0,k.jsx)("span",{children:i})}),{position:"bottom-left"}),t(!1)}else F.toast.error(r.error||"Failed to deploy files to Vercel.",{position:"bottom-left"})}catch(e){F.toast.error(e.message||"An unexpected error occurred.",{position:"bottom-left"})}finally{eI(!1)}}async function e5(e,i){let s;eI(!0),F.toast.info("Connecting to server and deploying via SSH...",{duration:1e4,position:"bottom-left"});let r=eD.current?.host||ey,n=eD.current?.username||eS,o=eD.current?.auth||{type:eQ,value:eP},a=eD.current?.envVars||(s={...L},J&&(s.SERVER_API_KEY=J,vA(e,J)),s);try{let s={serverId:e,host:r,username:n,privateKeyOrPassword:o,envVars:a};i&&(s.newPassword=i);let l=await fetch("/api/deploy/ssh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!l.body)throw Error("No response from server.");let c=l.body.getReader(),h=new TextDecoder,d=!1,u="";for(;!d;){let{value:i,done:s}=await c.read();if(d=s,i){let s=(u+=h.decode(i,{stream:!0})).split("\n\n");for(let i of(u=s.pop()||"",s))if(i.startsWith("data: "))try{let s=JSON.parse(i.slice(6));if("log"===s.type)eX(e=>[...e,s.message]);else if("password_change_required"===s.type){eD.current={host:r,username:n,auth:o,envVars:a},eI(!1),eZ(""),eM(""),eA(!0);return}else"password_changed"===s.type?(navigator.clipboard.writeText(s.newPassword),F.toast.warning("Server password updated.",{duration:6e4,position:"bottom-left"})):"done"===s.type?s.success?(localStorage.setItem(vC(e),s.url),localStorage.setItem(vX(e),"hetzner"),vP(e,{provider:"hetzner",project:r,url:s.url,status:"ready"}),F.toast.success("Server deployed via SSH successfully!",{position:"bottom-left"}),eD.current=null,t(!1)):F.toast.error(s.error||"Failed to deploy via SSH.",{position:"bottom-left"}):"error"===s.type&&F.toast.error(s.error||"Failed to deploy.",{position:"bottom-left"})}catch(e){}}}}catch(e){F.toast.error(e.message||"An unexpected error occurred.",{position:"bottom-left"})}finally{eI(!1)}}(0,P.useEffect)(()=>{M&&eU?.status==="completed"&&X&&(E(!1),"vercel"===i?e2(X):"env"!==i&&e5(X))},[eU?.status,M,X,i]);let e4=async()=>{eN?eN!==ez?F.toast.error("Passwords do not match.",{position:"bottom-left"}):eN.length<8?F.toast.error("Password must be at least 8 characters.",{position:"bottom-left"}):(eA(!1),eX(e=>[...e,"","--- Retrying with new password ---"]),await e5(eL,eN)):F.toast.error("Enter a new password.",{position:"bottom-left"})},e3="general"===o;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(vd.Sheet,{open:e&&!eR,onOpenChange:e=>{eV||t(e)},children:(0,k.jsxs)(vd.SheetContent,{className:"flex flex-col h-full max-w-[90%]! w-187.5! overflow-y-auto p-0 border-l",children:[(0,k.jsx)("div",{className:"p-6 pb-0 space-y-1",children:(0,k.jsxs)(vd.SheetHeader,{className:"text-left",children:[(0,k.jsx)(vd.SheetTitle,{children:"env"===i?"Environment Settings":`Deploy to ${"vercel"===i?"Vercel":"Server"}`}),(0,k.jsx)(vd.SheetDescription,{children:"env"===i?"Configure environment variables and storage.":"Configure your deployment settings before launching."})]})}),(0,k.jsxs)("div",{className:"flex-1 px-6 overflow-y-auto",children:["env"!==i&&(0,k.jsx)(ee.Tabs,{value:o,onValueChange:e=>a(e),children:(0,k.jsxs)(ee.TabsList,{className:" rounded-md border bg-muted/20 w-fit ",children:[(0,k.jsxs)(ee.TabsTrigger,{value:"general",className:`h-8 rounded-md px-4 text-xs font-medium transition-all data-[state=active]:bg-background data-[state=active]: ${"general"===l?"text-destructive border-destructive/60":""}`,children:[(0,k.jsx)(T.Settings2,{className:"size-3.5 mr-1.5"}),"General"]}),(0,k.jsxs)(ee.TabsTrigger,{value:"provider",className:`h-8 rounded-md px-4 text-xs font-medium transition-all data-[state=active]:bg-background data-[state=active]: ${"provider"===l?"text-destructive border-destructive/60":""}`,children:[(0,k.jsx)(vh.Cloud,{className:"size-3.5 mr-1.5"}),"Provider"]})]})}),(0,k.jsxs)("div",{className:`mt-5 space-y-8 ${!e3?"hidden":"block"}`,children:[(0,k.jsxs)("div",{className:"space-y-4",children:[(0,k.jsxs)("div",{className:"flex items-center justify-between",children:[(0,k.jsx)("h3",{className:"text-sm font-semibold tracking-tight",children:"Vector Storage"}),(0,k.jsxs)("label",{className:"flex items-center gap-2 text-xs font-medium cursor-pointer bg-muted/20 px-2.5 py-1 rounded-md border",children:[(0,k.jsx)("input",{type:"checkbox",className:"shrink-0",checked:x,onChange:e=>v(e.target.checked)}),"Include Knowledge Base"]})]}),(0,k.jsxs)("div",{className:"space-y-3 p-4 rounded-xl border bg-muted/10",children:[(0,k.jsxs)("div",{className:"flex items-center justify-between",children:[(0,k.jsxs)(G.Select,{value:u,onValueChange:e=>{O(e),p(vz(e)),g({}),w(!1)},children:[(0,k.jsx)(G.SelectTrigger,{className:"w-50 bg-background",children:(0,k.jsxs)("span",{className:"flex items-center gap-2.5",children:[vZ[u]&&(0,k.jsx)(ea.ProviderIcon,{src:vZ[u].iconSrc,alt:eH.label,pillBg:vZ[u].pillBg,size:16}),(0,k.jsx)("span",{className:"font-medium text-sm",children:eH.label})]})}),(0,k.jsx)(G.SelectContent,{children:vf.VECTOR_STORE_LIST.map(e=>{let t=vZ[e.id],i="coming-soon"===e.installStatus;return(0,k.jsx)(G.SelectItem,{value:e.id,disabled:i,children:(0,k.jsxs)("span",{className:"flex items-center gap-2.5",children:[t&&(0,k.jsx)(ea.ProviderIcon,{src:t.iconSrc,alt:e.label,pillBg:t.pillBg,size:16}),(0,k.jsx)("span",{className:"font-medium text-sm",children:e.label}),i&&(0,k.jsx)("span",{className:"ml-2 text-[9px] text-muted-foreground border rounded-full px-1.5",children:"Soon"})]})},e.id)})})]}),(0,k.jsxs)(Y.Button,{variant:S?"secondary":"outline",size:"sm",onClick:eJ,disabled:y||eK,children:[y?(0,k.jsx)(V.Loader2,{className:"size-3.5 mr-2 animate-spin"}):S?(0,k.jsx)(vl,{className:"size-3.5 mr-2 text-emerald-500"}):(0,k.jsx)(vc,{className:"size-3.5 mr-2"}),S?"Verified":"Verify"]})]}),eK&&(0,k.jsx)("p",{className:"text-xs text-destructive",children:"You must select a cloud storage provider before deploying."}),(0,k.jsx)(vp,{store:eH,values:f,errors:m,indexType:d?.config.indexType,onChange:(e,t)=>{p(i=>({...i,[e]:t})),g(t=>({...t,[e]:""})),w(!1)}}),(0,k.jsxs)("div",{className:"pt-2 border-t mt-4",children:[(0,k.jsx)("h3",{className:"text-sm font-semibold mb-3",children:"Embedding Model"}),(0,k.jsxs)(G.Select,{value:Q,onValueChange:e=>{$(e||""),w(!1)},children:[(0,k.jsx)(G.SelectTrigger,{className:"w-full bg-white",children:(0,k.jsx)("span",{className:"font-medium text-sm",children:eF?.label??"Default"})}),(0,k.jsx)(G.SelectContent,{children:eG.map(e=>(0,k.jsx)(G.SelectItem,{value:e.id,children:(0,k.jsx)("span",{className:"font-medium text-sm",children:e.label})},e.id))})]})]})]})]}),(0,k.jsxs)("div",{className:"space-y-4",children:[(0,k.jsx)("h3",{className:"text-sm font-semibold tracking-tight",children:"Environment Variables"}),(0,k.jsxs)("div",{className:"grid gap-4 p-4 rounded-xl border bg-muted/10",children:[(0,k.jsxs)("div",{className:"grid gap-2",children:[(0,k.jsxs)(B.Label,{children:["SERVER_API_KEY"," ",(0,k.jsx)("span",{className:"text-xs font-normal text-muted-foreground",children:"(Optional)"})]}),(0,k.jsxs)("div",{className:"flex gap-2",children:[(0,k.jsxs)("div",{className:"relative flex-1",children:[(0,k.jsx)(U.Input,{type:ei?"text":"password",value:J,onChange:e=>et(e.target.value)}),(0,k.jsx)("button",{type:"button",onClick:()=>es(!ei),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:(0,k.jsx)(D.Eye,{className:"size-4"})})]}),(0,k.jsx)(Y.Button,{variant:"outline",size:"icon",onClick:()=>{et("larkup-"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15))},children:(0,k.jsx)(va,{className:"size-4"})})]})]}),_.map(e=>(0,k.jsxs)("div",{className:"grid gap-2",children:[(0,k.jsxs)(B.Label,{children:[e.key,e.required&&(0,k.jsx)("span",{className:"text-destructive ml-1",children:"*"})," ",L[e.key]&&(0,k.jsx)("span",{className:"text-emerald-500 text-[10px] ml-2",children:"Pre-filled"})]}),(0,k.jsxs)("div",{className:"relative flex-1",children:[(0,k.jsx)(U.Input,{type:er[e.key]?"text":"password",value:L[e.key]||"",onChange:t=>H({...L,[e.key]:t.target.value})}),(0,k.jsx)("button",{type:"button",onClick:()=>en(t=>({...t,[e.key]:!t[e.key]})),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:(0,k.jsx)(D.Eye,{className:"size-4"})})]}),e.help&&(0,k.jsx)("p",{className:"text-xs text-muted-foreground",children:e.help})]},e.key))]})]})]}),(0,k.jsxs)("div",{className:`mt-5 space-y-8 ${e3?"hidden":"block"}`,children:["vercel"===i?(0,k.jsxs)("div",{className:"space-y-4",children:[(0,k.jsxs)("div",{className:"grid gap-2",children:[(0,k.jsxs)(B.Label,{className:"flex justify-between w-full items-center",children:[(0,k.jsxs)("span",{children:["Vercel Token ",(0,k.jsx)("span",{className:"text-destructive ml-1",children:"*"})]}),(0,k.jsx)("a",{href:"https://vercel.com/account/tokens",target:"_blank",rel:"noreferrer",className:"text-[10px] font-medium text-muted-foreground underline hover:text-foreground",children:"Get token"})]}),(0,k.jsxs)("div",{className:"relative flex-1",children:[(0,k.jsx)(U.Input,{type:em?"text":"password",value:eu,onChange:e=>eO(e.target.value)}),(0,k.jsx)("button",{type:"button",onClick:()=>eg(!em),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:(0,k.jsx)(D.Eye,{className:"size-4"})})]})]}),(0,k.jsxs)("div",{className:"grid gap-2",children:[(0,k.jsxs)(B.Label,{children:["Project Name ",(0,k.jsx)("span",{className:"text-destructive ml-1",children:"*"})]}),(0,k.jsx)(U.Input,{value:ef,onChange:e=>ep(e.target.value)})]})]}):(0,k.jsxs)("div",{className:"space-y-4",children:[(0,k.jsxs)("div",{className:"grid gap-2",children:[(0,k.jsxs)(B.Label,{children:["Server IP / Hostname ",(0,k.jsx)("span",{className:"text-destructive ml-1",children:"*"})]}),(0,k.jsx)(U.Input,{value:ey,onChange:e=>eb(e.target.value)})]}),(0,k.jsxs)("div",{className:"grid gap-2",children:[(0,k.jsxs)(B.Label,{children:["SSH Username ",(0,k.jsx)("span",{className:"text-destructive ml-1",children:"*"})]}),(0,k.jsx)(U.Input,{value:eS,onChange:e=>ew(e.target.value)})]}),(0,k.jsxs)("div",{className:"grid gap-2",children:[(0,k.jsxs)("div",{className:"flex gap-2 mb-2",children:[(0,k.jsx)(vu.Badge,{variant:"key"===eQ?"default":"outline",className:"cursor-pointer",onClick:()=>ek("key"),children:"Private Key"}),(0,k.jsx)(vu.Badge,{variant:"password"===eQ?"default":"outline",className:"cursor-pointer",onClick:()=>ek("password"),children:"Password"})]}),"key"===eQ?(0,k.jsx)("textarea",{className:"min-h-30 rounded-md border bg-transparent px-3 py-2 text-sm font-mono",value:eP,onChange:e=>e$(e.target.value)}):(0,k.jsxs)("div",{className:"relative flex-1",children:[(0,k.jsx)(U.Input,{type:eT?"text":"password",value:eP,onChange:e=>e$(e.target.value)}),(0,k.jsx)("button",{type:"button",onClick:()=>ej(!eT),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:(0,k.jsx)(D.Eye,{className:"size-4"})})]})]})]}),eV&&eC.length>0&&(0,k.jsx)("div",{className:"bg-black text-[#00ff00] font-mono text-[10px] p-3 rounded-md h-50 overflow-y-auto break-all whitespace-pre-wrap flex flex-col-reverse",children:(0,k.jsx)("div",{children:eC.map((e,t)=>(0,k.jsx)("div",{children:e},t))})})]}),M&&(0,k.jsxs)("div",{className:"mt-8 space-y-3 rounded-lg border p-5 bg-muted/10",children:[(0,k.jsxs)("div",{className:"flex justify-between text-sm font-medium",children:[(0,k.jsx)("span",{children:eU?.status==="completed"?"Knowledge base uploaded":"Uploading knowledge base"}),(0,k.jsxs)("span",{className:"tabular-nums",children:[eB,"%"]})]}),(0,k.jsx)(vO.Progress,{value:eB,className:"h-2"}),(0,k.jsx)("p",{className:"text-xs text-muted-foreground pt-1",children:eU?.warning||`${eU?.processedChunks??0} / ${eU?.totalChunks??0} chunks`})]})]}),(0,k.jsxs)("div",{className:"sticky bottom-0 z-10 border-t bg-background px-6 py-4 flex items-center justify-between mt-auto",children:[(0,k.jsx)(Y.Button,{variant:"outline",className:"px-5",onClick:()=>t(!1),disabled:eV||M,children:"Cancel"}),(0,k.jsxs)(Y.Button,{className:"px-7",onClick:e1,disabled:eV||M,children:[(eV||M)&&(0,k.jsx)(V.Loader2,{className:"mr-2 size-4 animate-spin"}),"env"===i?"Save Settings":"Deploy"]})]})]})}),(0,k.jsx)(vd.Sheet,{open:eR,onOpenChange:e=>{e||(eD.current=null),eA(e)},children:(0,k.jsxs)(vd.SheetContent,{className:"flex flex-col h-full sm:max-w-md w-full overflow-y-auto p-0 border-l",children:[(0,k.jsx)("div",{className:"p-6 pb-0 space-y-1",children:(0,k.jsxs)(vd.SheetHeader,{className:"text-left",children:[(0,k.jsx)(vd.SheetTitle,{children:"Password Change Required"}),(0,k.jsx)(vd.SheetDescription,{children:"Your server requires a password change on first login."})]})}),(0,k.jsxs)("div",{className:"flex-1 p-6 overflow-y-auto grid gap-4",children:[(0,k.jsxs)("div",{className:"grid gap-2",children:[(0,k.jsx)(B.Label,{children:"New Password"}),(0,k.jsx)(U.Input,{type:"password",value:eN,onChange:e=>eZ(e.target.value)})]}),(0,k.jsxs)("div",{className:"grid gap-2",children:[(0,k.jsx)(B.Label,{children:"Confirm Password"}),(0,k.jsx)(U.Input,{type:"password",value:ez,onChange:e=>eM(e.target.value)})]})]}),(0,k.jsxs)("div",{className:"sticky bottom-0 border-t bg-background px-6 py-4 flex justify-between",children:[(0,k.jsx)(Y.Button,{variant:"outline",onClick:()=>eA(!1),children:"Cancel"}),(0,k.jsx)(Y.Button,{onClick:e4,children:"Change & Deploy"})]})]})})]})}function vE({serverId:e="default",showUtilities:t=!0,compact:i=!1,openTarget:s,openSignal:r}){let[n,o]=(0,P.useState)(!1),[a,l]=(0,P.useState)(null),c=(0,P.useRef)(0),h=e=>{l(e),o(!0)},d=e=>{F.toast.success(`Downloading deployment package for ${e}...`),window.open(`/api/server/download?provider=${e}`)};return(0,P.useEffect)(()=>{s&&r&&r!==c.current&&(c.current=r,h(s))},[r,s]),(0,k.jsxs)("div",{className:"flex items-center gap-2",children:[t&&(0,k.jsx)(ei.TooltipProvider,{children:(0,k.jsxs)(ei.Tooltip,{children:[(0,k.jsx)(ei.TooltipTrigger,{delay:0,render:(0,k.jsx)(Y.Button,{variant:"outline",size:"icon",className:`${i?"h-8 w-8":"h-9 w-9"} shrink-0 text-muted-foreground hover:text-foreground`,onClick:()=>h("env"),children:(0,k.jsx)(T.Settings2,{className:"size-4"})})}),(0,k.jsx)(ei.TooltipContent,{children:(0,k.jsx)("p",{children:"Environment Variables"})})]})}),(0,k.jsxs)(eC.DropdownMenu,{children:[(0,k.jsx)(eC.DropdownMenuTrigger,{render:(0,k.jsx)(Y.Button,{variant:"default",size:"default",className:`${i?"h-8":"h-9"} w-32.5 justify-start gap-1 rounded-md`}),children:(0,k.jsxs)("div",{className:"w-full flex items-center h-8 justify-between rounded-lg",children:[(0,k.jsxs)("div",{className:"flex items-center",children:[(0,k.jsx)(ew.Rocket,{className:"size-4 mr-2"}),"Deploy"]}),(0,k.jsx)(vo.ChevronDown,{})]})}),(0,k.jsxs)(eC.DropdownMenuContent,{align:"end",className:"w-50",children:[(0,k.jsx)(eC.DropdownMenuItem,{onClick:()=>h("vercel"),children:(0,k.jsxs)("p",{className:"flex items-center",children:[(0,k.jsx)("img",{src:"/vercel.svg",className:"size-4 mr-2",alt:"Vercel"}),"Vercel"]})}),(0,k.jsx)(eC.DropdownMenuItem,{onClick:()=>h("hetzner"),children:(0,k.jsxs)("p",{className:"flex items-center",children:[(0,k.jsx)("img",{src:"/hetzner.svg",className:"size-4 mr-2",alt:"Hetzner"}),"Hetzner"]})}),(0,k.jsxs)(eC.DropdownMenuSub,{children:[(0,k.jsxs)(eC.DropdownMenuSubTrigger,{children:[(0,k.jsx)("img",{src:"/icons/azure.svg",className:"size-4 mr-2",alt:"Azure"}),"Azure"]}),(0,k.jsxs)(eC.DropdownMenuSubContent,{className:"w-60",children:[(0,k.jsx)(eC.DropdownMenuItem,{disabled:!0,className:"h-auto",onClick:()=>d("azure-app-service"),children:(0,k.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,k.jsx)("span",{children:"App Service"}),(0,k.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Managed PaaS"})]})}),(0,k.jsx)(eC.DropdownMenuItem,{disabled:!0,className:"h-auto",onClick:()=>d("azure-container-apps"),children:(0,k.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,k.jsx)("span",{children:"Container Apps"}),(0,k.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Serverless containers"})]})}),(0,k.jsx)(eC.DropdownMenuItem,{className:"h-auto",onClick:()=>h("azure"),children:(0,k.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,k.jsx)("span",{children:"Virtual Machines"}),(0,k.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Full IaaS"})]})})]})]}),(0,k.jsxs)(eC.DropdownMenuSub,{children:[(0,k.jsxs)(eC.DropdownMenuSubTrigger,{children:[(0,k.jsx)("img",{src:"/icons/aws.svg",className:"size-4 mr-2",alt:"AWS"}),"AWS"]}),(0,k.jsxs)(eC.DropdownMenuSubContent,{className:"w-60",children:[(0,k.jsx)(eC.DropdownMenuItem,{disabled:!0,className:"h-auto",onClick:()=>d("aws-elastic-beanstalk"),children:(0,k.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,k.jsx)("span",{children:"Elastic Beanstalk"}),(0,k.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Managed PaaS"})]})}),(0,k.jsx)(eC.DropdownMenuItem,{disabled:!0,className:"h-auto",onClick:()=>d("aws-app-runner"),children:(0,k.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,k.jsx)("span",{children:"App Runner / Fargate"}),(0,k.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Serverless containers"})]})}),(0,k.jsx)(eC.DropdownMenuItem,{className:"h-auto",onClick:()=>h("aws"),children:(0,k.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,k.jsx)("span",{children:"EC2"}),(0,k.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Full IaaS"})]})})]})]}),(0,k.jsxs)(eC.DropdownMenuSub,{children:[(0,k.jsxs)(eC.DropdownMenuSubTrigger,{children:[(0,k.jsx)("img",{src:"/icons/gcp.svg",className:"size-4 mr-2",alt:"GCP"}),"GCP"]}),(0,k.jsxs)(eC.DropdownMenuSubContent,{className:"w-60",children:[(0,k.jsx)(eC.DropdownMenuItem,{disabled:!0,className:"h-auto",onClick:()=>d("gcp-app-engine"),children:(0,k.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,k.jsx)("span",{children:"App Engine"}),(0,k.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Managed PaaS"})]})}),(0,k.jsx)(eC.DropdownMenuItem,{disabled:!0,className:"h-auto",onClick:()=>d("gcp-cloud-run"),children:(0,k.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,k.jsx)("span",{children:"Cloud Run"}),(0,k.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Serverless containers"})]})}),(0,k.jsx)(eC.DropdownMenuItem,{className:"h-auto",onClick:()=>h("gcp"),children:(0,k.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,k.jsx)("span",{children:"Compute Engine"}),(0,k.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Full IaaS"})]})})]})]}),(0,k.jsxs)(eC.DropdownMenuSub,{children:[(0,k.jsxs)(eC.DropdownMenuSubTrigger,{children:[(0,k.jsx)("img",{src:"/icons/digital-ocean.webp",className:"size-4 mr-2",alt:"DigitalOcean"}),"DigitalOcean"]}),(0,k.jsxs)(eC.DropdownMenuSubContent,{className:"w-60",children:[(0,k.jsx)(eC.DropdownMenuItem,{disabled:!0,className:"h-auto",onClick:()=>d("digitalocean-app-platform"),children:(0,k.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,k.jsx)("span",{children:"App Platform"}),(0,k.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Managed PaaS"})]})}),(0,k.jsx)(eC.DropdownMenuItem,{className:"h-auto",onClick:()=>h("digitalocean"),children:(0,k.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,k.jsx)("span",{children:"Droplets"}),(0,k.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Full IaaS"})]})})]})]})]})]}),(0,k.jsx)(vM,{open:n,onOpenChange:o,target:a,serverId:e})]})}let vq=(0,vm.createServerReference)("60ea4ad1fe472ddb6bec9ab5b1a25f7b1c6808aab8",vm.callServer,void 0,vm.findSourceMapURL,"getVercelDeploymentStatus"),v_=e=>fetch(e).then(e=>e.json());function vW(e){return e.replace(/\/$/,"")}function vV(e){return`${vW(e)}/reference`}function vI({url:e,project:t,compact:i=!1}){return(0,k.jsxs)("a",{href:vV(e),target:"_blank",rel:"noreferrer","aria-label":`Open API reference for ${t}`,className:(0,E.cn)((0,Y.buttonVariants)({variant:i?"ghost":"outline",size:i?"icon":"sm"}),i?"size-8 sm:hidden":"hidden h-8 gap-1.5 px-2 text-xs sm:inline-flex"),children:[(0,k.jsx)(eg.ExternalLink,{className:i?"size-4":"size-3"}),!i&&"API reference"]})}function vD(){let{activeServer:e,refresh:t}=(0,K.useWorkspace)(),i=e?.id||"default",[s,r]=(0,P.useState)(null),[n,o]=(0,P.useState)(""),[a,l]=(0,P.useState)(!1),[c,h]=(0,P.useState)(null),[d,u]=(0,P.useState)(!1),[O,f]=(0,P.useState)(0),[p,m]=(0,P.useState)(!1),[g,x]=(0,P.useState)([]),[v,y]=(0,P.useState)(null),[b,S]=(0,P.useState)(""),[w,Q]=(0,P.useState)(null),[$,T]=(0,P.useState)(!1),[j,C]=(0,P.useState)(0),X=(0,P.useRef)(new Set);(0,P.useEffect)(()=>{let e=localStorage.getItem("rag_server_api_key");e&&o(e),f(vS(i)),x(vQ(i)),X.current.clear()},[i]),(0,P.useEffect)(()=>{let e=localStorage.getItem("vercel_token"),t=g.filter(e=>"vercel"===e.provider);if(!e||0===t.length)return;let s=t.filter(e=>"queued"===e.status||"building"===e.status||"ready"===e.status&&!X.current.has(e.id));if(0===s.length)return;let r=!1,n=async()=>{let t=await Promise.all(s.map(async t=>({deployment:t,result:await vq(e,t.project)})));if(!r)for(let{deployment:e,result:s}of t){"ready"===s.status&&X.current.add(e.id);let t=s.hasProductionAlias?s.url:void 0;"unknown"!==s.status&&(e.status!==s.status||t&&e.url!==t)&&x(v$(i,e.id,{status:s.status,url:t}))}};n();let o=s.some(e=>"queued"===e.status||"building"===e.status)?window.setInterval(()=>void n(),8e3):void 0;return()=>{r=!0,o&&window.clearInterval(o)}},[g,i]),(0,P.useEffect)(()=>{let e=e=>{e.detail===i&&(x(vQ(i)),f(vS(i)))};return window.addEventListener("larkup-deployments-change",e),()=>window.removeEventListener("larkup-deployments-change",e)},[i]);let{data:R,mutate:A}=(0,W.default)("/api/server/local",v_,{refreshInterval:e=>5e3*!!e?.state.running}),N=R?.state;async function Z(e){r(e);let s="start"===e;A({state:{...N,running:s}},!1),(0,ef.mutate)("/api/servers",e=>e?{...e,servers:e.servers.map(e=>e.id===i?{...e,running:s}:e)}:e,!1);try{let i=localStorage.getItem("rag_server_api_key")||"",s=await fetch("/api/server/local",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,serverApiKey:i})}),r=await s.json();"start"===e?r.state?.running?F.toast.success("Server is running."):(F.toast.error(r.state?.lastError??"Server did not start."),(0,ef.mutate)("/api/servers")):F.toast.success("Server stopped."),A(),t()}catch{F.toast.error("Could not reach the server controller."),(0,ef.mutate)("/api/servers"),A()}finally{r(null)}}function z(e){let t=localStorage.getItem("rag_server_api_key")||"";o(e),localStorage.setItem("rag_server_api_key",e),e!==t&&f(vw(i))}function M(e){return g.length>0&&e!==(localStorage.getItem("rag_server_api_key")||"")?(Q(e),T(!0),!1):(z(e),!0)}function q(e){if(null!==w&&z(w),Q(null),T(!1),e){C(e=>e+1),F.toast.info("New API key saved. Configure the Vercel redeploy to sync it remotely.");return}F.toast.info("API key updated locally. Redeploy cloud servers when you are ready to sync it.")}async function _(){await navigator.clipboard.writeText(n),l(!0),setTimeout(()=>l(!1),1500)}async function I(e){n?(await navigator.clipboard.writeText(n),h(e),setTimeout(()=>h(null),1500),F.toast.success("Cloud API key copied")):F.toast.error("Generate or enter an API key before copying it.")}async function B(){N?.endpoint&&(await navigator.clipboard.writeText(N.endpoint),u(!0),setTimeout(()=>u(!1),1500))}return(0,k.jsxs)("main",{className:"mx-auto w-full max-w-5xl px-6 ",children:[(0,k.jsxs)("header",{className:"mb-12",children:[(0,k.jsx)("h2",{className:"text-lg font-semibold tracking-tight",children:"Server"}),(0,k.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Test locally, then deploy one retrieval and chat server anywhere."})]}),(0,k.jsxs)("section",{className:"mb-14",children:[(0,k.jsxs)("div",{className:"flex items-center justify-between",children:[(0,k.jsxs)("div",{className:"flex items-center gap-2",children:[(0,k.jsx)(ex,{className:"size-4 text-muted-foreground"}),(0,k.jsx)("h3",{className:"text-sm font-medium",children:"Local server"})]}),(0,k.jsxs)("span",{className:"flex items-center gap-2 text-xs",children:[N?.running?(0,k.jsxs)("span",{className:"relative flex size-2",children:[(0,k.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-600 opacity-75"}),(0,k.jsx)("span",{className:"relative inline-flex size-2 rounded-full bg-green-600"})]}):(0,k.jsx)("span",{className:"size-1.5 rounded-full bg-muted-foreground/40"}),(0,k.jsx)("span",{className:N?.running?"font-medium text-emerald-600 dark:text-emerald-400":"text-muted-foreground",children:N?.running?`running on :${N.port}`:"stopped"})]})]}),(0,k.jsx)("p",{className:"mt-2 max-w-xl text-sm text-muted-foreground",children:"Start the server locally to test your AI endpoints. Your configuration and API keys are applied automatically."}),N?.lastError&&!N.running&&(0,k.jsxs)(eX.Alert,{variant:"destructive",children:[(0,k.jsx)(eX.AlertTitle,{children:"Launch failed"}),(0,k.jsx)(eX.AlertDescription,{className:"wrap-break-word",children:N.lastError})]}),N?.running?(0,k.jsxs)("div",{className:"mt-5 overflow-hidden rounded-lg border border-border",children:[(0,k.jsxs)("button",{type:"button",onClick:B,className:"flex w-full items-center justify-between gap-3 border-b border-border bg-muted/30 px-4 py-3 text-left",children:[(0,k.jsxs)("span",{className:"flex min-w-0 items-center gap-2.5 font-mono text-sm",children:[(0,k.jsx)("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-md border bg-background text-muted-foreground",children:(0,k.jsx)(ev.Copy,{className:"size-3.5"})}),(0,k.jsx)("span",{className:"truncate",children:N.endpoint})]}),(0,k.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",children:d?"Copied":"Click to copy"})]}),(0,k.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 px-4 py-3",children:[(0,k.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,k.jsx)(vn,{serverUrl:N.endpoint}),(0,k.jsxs)(eR.Dialog,{children:[(0,k.jsxs)(eR.DialogTrigger,{render:(0,k.jsx)(Y.Button,{variant:"outline",size:"sm",className:"h-8 text-xs px-2 gap-1.5"}),children:[(0,k.jsx)(ex,{className:"size-3"}),"Try it (cURL)"]}),(0,k.jsxs)(eR.DialogContent,{className:"max-w-2xl!",children:[(0,k.jsxs)(eR.DialogHeader,{children:[(0,k.jsx)(eR.DialogTitle,{children:"cURL Example"}),(0,k.jsx)(eR.DialogDescription,{children:"You can use this command to test your RAG server endpoint."})]}),(0,k.jsxs)("div",{className:"relative rounded-md bg-muted p-4 mt-2 border border-border/50",children:[(0,k.jsx)("pre",{className:"font-mono text-xs overflow-x-auto text-foreground pb-4 pr-6",children:(0,k.jsx)("code",{children:`curl -X POST ${N.endpoint}/query \\
60
60
  -H "Content-Type: application/json" \\${n?`
61
61
  -H "Authorization: Bearer ${n}" \\`:""}
62
- -d '{"query":"hello"}'`})}),(0,k.jsx)(Y.Button,{variant:"ghost",size:"icon",className:"absolute top-2 right-2 h-6 w-6 text-muted-foreground hover:text-foreground",onClick:()=>{navigator.clipboard.writeText(`curl -X POST ${N.endpoint}/query -H "Content-Type: application/json"${n?` -H "Authorization: Bearer ${n}"`:""} -d '{"query":"hello"}'`),F.toast.success("Command copied")},children:(0,k.jsx)(ev.Copy,{className:"size-3"})})]})]})]}),(0,k.jsxs)("a",{href:vV(N.endpoint),target:"_blank",rel:"noreferrer",className:(0,E.cn)((0,Y.buttonVariants)({variant:"outline",size:"sm"}),"h-8 gap-1.5 text-xs"),children:[(0,k.jsx)(eg.ExternalLink,{className:"size-3"}),"API reference"]})]}),(0,k.jsxs)(Y.Button,{size:"sm",variant:"destructive",onClick:()=>Z("stop"),disabled:null!==s,children:["stop"===s?(0,k.jsx)(V.Loader2,{className:"size-4 animate-spin"}):(0,k.jsx)(em.Square,{className:"size-4"}),"Stop server"]})]})]}):(0,k.jsxs)("div",{className:"mt-5 flex flex-wrap gap-2",children:[(0,k.jsxs)(Y.Button,{size:"sm",onClick:()=>Z("start"),disabled:null!==s,children:["start"===s?(0,k.jsx)(V.Loader2,{className:"size-4 animate-spin"}):(0,k.jsx)(ep.Play,{className:"size-4"}),"start"===s?"Starting…":"Launch server"]}),(0,k.jsx)(vn,{serverUrl:N?.endpoint||"http://localhost:8080",disabled:!0})]})]}),(0,k.jsxs)("div",{className:"grid gap-14 border-t border-border pt-12 md:grid-cols-2 md:gap-10",children:[(0,k.jsxs)("section",{children:[(0,k.jsxs)("div",{className:"flex items-center gap-2",children:[(0,k.jsx)(ew.Rocket,{className:"size-4 text-muted-foreground"}),(0,k.jsx)("h3",{className:"text-sm font-medium",children:"Deploy to cloud"})]}),(0,k.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Deploy your AI server to Vercel for production use."}),(0,k.jsxs)("div",{className:"mt-5 flex flex-wrap gap-2",children:[(0,k.jsx)(vE,{serverId:i,showUtilities:!0,compact:!0,openTarget:"vercel",openSignal:j}),(0,k.jsxs)(Y.Button,{variant:"outline",size:"sm",className:"h-8 gap-2",onClick:_,children:[a?(0,k.jsx)(ey.CheckCircle2,{className:"size-4 text-emerald-500"}):(0,k.jsx)(ev.Copy,{className:"size-4"}),"Copy API key"]})]})]}),(0,k.jsxs)("section",{children:[(0,k.jsxs)("div",{className:"flex items-center gap-2",children:[(0,k.jsx)(eQ,{className:"size-4 text-muted-foreground"}),(0,k.jsx)("h3",{className:"text-sm font-medium",children:"Server API key"})]}),(0,k.jsxs)("p",{className:"mt-2 text-sm text-muted-foreground",children:["Clients must send this key in the"," ",(0,k.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-xs text-foreground",children:"Authorization"})," ","header."]}),(0,k.jsxs)("div",{className:"mt-5 flex items-center gap-2",children:[(0,k.jsx)(U.Input,{type:p?"text":"password",value:n,onChange:e=>o(e.target.value),onBlur:()=>M(n),placeholder:"sk-...",className:"h-8 flex-1 font-mono text-xs"}),(0,k.jsx)(Y.Button,{variant:"outline",size:"icon",className:"size-8",onClick:()=>m(e=>!e),children:p?(0,k.jsx)(L.EyeOff,{className:"size-4"}):(0,k.jsx)(D.Eye,{className:"size-4"})}),(0,k.jsx)(Y.Button,{variant:"outline",size:"icon",className:"size-8",onClick:_,disabled:!n,children:a?(0,k.jsx)(ey.CheckCircle2,{className:"size-4 text-emerald-500"}):(0,k.jsx)(ev.Copy,{className:"size-4"})}),(0,k.jsx)(ei.TooltipProvider,{delay:200,children:(0,k.jsxs)(ei.Tooltip,{children:[(0,k.jsx)(ei.TooltipTrigger,{render:(0,k.jsx)(Y.Button,{variant:"outline",size:"icon",className:"size-8",onClick:function(){M("sk-"+Array.from(crypto.getRandomValues(new Uint8Array(24))).map(e=>e.toString(16).padStart(2,"0")).join(""))&&F.toast.success("API key generated")},"aria-label":"Generate a new API key"}),children:(0,k.jsx)(eb.RefreshCw,{className:"size-4"})}),(0,k.jsx)(ei.TooltipContent,{children:"Generate a new API key"})]})})]}),(0,k.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:"Stored locally in your browser. Generate a new key or paste your own."})]})]}),(0,k.jsxs)("section",{className:"mt-14 border-t border-border pt-10",children:[(0,k.jsxs)("div",{className:"flex items-center gap-2",children:[(0,k.jsx)(e$.Globe,{className:"size-4 text-muted-foreground"}),(0,k.jsx)("h3",{className:"text-sm font-medium",children:"Cloud deployments"})]}),(0,k.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Each deployment exposes its API endpoint and interactive API reference."}),g.length>0?(0,k.jsxs)("div",{className:"mt-5 overflow-hidden rounded-lg border",children:[(0,k.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3 border-b bg-muted/30 px-4 py-2 text-xs text-muted-foreground sm:grid-cols-[140px_minmax(0,1fr)_auto_auto]",children:[(0,k.jsx)("span",{className:"hidden sm:block",children:"Provider"}),(0,k.jsx)("span",{children:"API endpoint"}),(0,k.jsx)("span",{className:"hidden sm:block",children:"Reference"}),(0,k.jsx)("span",{children:"Actions"})]}),g.map(e=>(0,k.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-3 border-b bg-background px-4 py-3 last:border-b-0 sm:grid-cols-[140px_minmax(0,1fr)_auto_auto]",children:[(0,k.jsxs)("span",{className:"hidden items-center gap-2 text-sm font-medium sm:flex",children:["vercel"===e.provider?(0,k.jsx)("img",{src:"/vercel.svg",alt:"Vercel",className:"size-3.5"}):(0,k.jsx)(e$.Globe,{className:"size-3.5"}),e.provider,e.status&&(0,k.jsx)("span",{className:(0,E.cn)("rounded-full border border-border px-1.5 py-0.5 text-[10px] font-medium capitalize","ready"===e.status&&"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400","error"===e.status&&"bg-background text-foreground",("building"===e.status||"queued"===e.status)&&"border-orange-500/20 bg-orange-500/10 text-orange-700 dark:text-orange-400"),children:e.status}),(e.apiKeyVersion??0)!==O&&(0,k.jsx)("span",{className:"rounded-sm border border-orange-500/20 bg-orange-500/10 px-1.5 py-0.5 text-[10px] font-medium text-orange-700 dark:text-orange-400",children:"Key redeploy required"})]}),v===e.id?(0,k.jsx)(U.Input,{value:b,onChange:e=>S(e.target.value),className:"h-8 font-mono text-xs","aria-label":"Deployment URL"}):(0,k.jsx)("a",{href:vy(e),target:"_blank",rel:"noreferrer",className:"truncate font-mono text-xs hover:underline",children:vW(vy(e)).replace(/^https?:\/\//,"")}),(0,k.jsx)(vI,{url:vy(e),project:e.project}),(0,k.jsx)("div",{className:"flex items-center gap-1",children:v===e.id?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Y.Button,{variant:"ghost",size:"icon",className:"size-8",onClick:()=>{try{var t;let s=new URL(b).toString();x((t=e.id,v$(i,t,{url:s}))),y(null)}catch{F.toast.error("Enter a valid deployment URL.")}},"aria-label":"Save deployment URL",children:(0,k.jsx)(ey.CheckCircle2,{className:"size-4"})}),(0,k.jsx)(Y.Button,{variant:"ghost",size:"icon",className:"size-8",onClick:()=>y(null),"aria-label":"Cancel editing deployment URL",children:(0,k.jsx)(eP.X,{className:"size-4"})})]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(ei.TooltipProvider,{delay:200,children:(0,k.jsxs)(ei.Tooltip,{children:[(0,k.jsx)(ei.TooltipTrigger,{render:(0,k.jsx)(Y.Button,{variant:"ghost",size:"icon",className:"size-8",onClick:()=>I(e.id),disabled:!n,"aria-label":"Copy cloud API key"}),children:c===e.id?(0,k.jsx)(ey.CheckCircle2,{className:"size-4 text-emerald-500"}):(0,k.jsx)(ev.Copy,{className:"size-4"})}),(0,k.jsx)(ei.TooltipContent,{children:c===e.id?"Cloud API key copied":(e.apiKeyVersion??0)===O?"Copy cloud API key":"Copy local key — redeploy to apply it"})]})}),(0,k.jsx)(vI,{url:vy(e),project:e.project,compact:!0}),(0,k.jsx)(Y.Button,{variant:"ghost",size:"icon",className:"size-8",onClick:()=>{y(e.id),S(vy(e))},"aria-label":"Edit deployment URL",children:(0,k.jsx)(ek.Pencil,{className:"size-4"})}),(0,k.jsxs)(eC.DropdownMenu,{children:[(0,k.jsx)(eC.DropdownMenuTrigger,{render:(0,k.jsx)(Y.Button,{variant:"ghost",size:"icon",className:"size-8",children:(0,k.jsx)(ej,{className:"size-4"})})}),(0,k.jsxs)(eC.DropdownMenuContent,{align:"end",className:"w-37.5",children:["vercel"===e.provider&&(0,k.jsxs)(eC.DropdownMenuItem,{onClick:()=>{let t=e.url.replace(/^https?:\/\//,"");window.open(`https://${t}/_logs`,"_blank")},children:[(0,k.jsx)("img",{src:"/vercel.svg",alt:"Vercel",className:"size-4 mr-2 dark:invert"}),"View in Vercel"]}),(0,k.jsxs)(eC.DropdownMenuItem,{className:"text-destructive focus:bg-destructive/10 focus:text-destructive",onClick:()=>{var t;let s;return x((t=e.id,s=vQ(i).filter(e=>e.id!==t),vk(i,s),s))},children:[(0,k.jsx)(eS.Trash2,{className:"size-4 mr-2"}),"Delete"]})]})]})]})})]},e.id))]}):(0,k.jsxs)("div",{className:"flex flex-col border border-border rounded-md items-center px-4 py-6 justify-center gap-2 mt-5",children:[(0,k.jsx)("div",{className:"bg-white p-1 border border-border rounded-md",children:(0,k.jsx)(eT.default,{className:"size-5"})}),(0,k.jsx)("p",{className:" rounded-lg text-sm text-muted-foreground text-center mx-auto",children:"No cloud deployments yet. Deploy to a provider above to add one here."})]})]}),(0,k.jsx)(eA.AlertDialog,{open:$,onOpenChange:T,children:(0,k.jsxs)(eA.AlertDialogContent,{className:"max-w-xl! w-full!",children:[(0,k.jsxs)(eA.AlertDialogHeader,{children:[(0,k.jsx)(eA.AlertDialogTitle,{children:"Deploy this new API key?"}),(0,k.jsx)(eA.AlertDialogDescription,{children:"Existing cloud deployments keep their current key until you redeploy them. Choose whether to update locally only, or open a Vercel redeploy with this new key so your local and remote API keys stay in sync."})]}),(0,k.jsxs)(eA.AlertDialogFooter,{className:"mt-3",children:[(0,k.jsx)(eA.AlertDialogCancel,{className:"mr-auto",size:"sm",onClick:()=>{o(localStorage.getItem("rag_server_api_key")||""),Q(null)},children:"Cancel"}),(0,k.jsx)(eA.AlertDialogAction,{size:"sm",variant:"ghost",onClick:()=>q(!1),children:"Update locally only"}),(0,k.jsx)(eA.AlertDialogAction,{size:"sm",onClick:()=>q(!0),children:"Update & deploy to Vercel"})]})]})})]})}let vL=(0,R.default)("maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);var vY=e.i(702938);new Date(0).toISOString();let vU=`You are a powerful data analysis assistant with access to a knowledge base, corpus introspection tools, tabular data tools, and a code sandbox.
62
+ -d '{"query":"hello"}'`})}),(0,k.jsx)(Y.Button,{variant:"ghost",size:"icon",className:"absolute top-2 right-2 h-6 w-6 text-muted-foreground hover:text-foreground",onClick:()=>{navigator.clipboard.writeText(`curl -X POST ${N.endpoint}/query -H "Content-Type: application/json"${n?` -H "Authorization: Bearer ${n}"`:""} -d '{"query":"hello"}'`),F.toast.success("Command copied")},children:(0,k.jsx)(ev.Copy,{className:"size-3"})})]})]})]}),(0,k.jsxs)(Y.Button,{variant:"outline",size:"sm",disabled:"start"===s||!N.running,render:(0,k.jsx)("a",{href:vV(N.endpoint),target:"_blank",rel:"noreferrer"}),className:"h-8 gap-1.5 text-xs",children:[(0,k.jsx)(eg.ExternalLink,{className:"size-3"}),"API reference"]})]}),(0,k.jsxs)(Y.Button,{size:"sm",variant:"destructive",onClick:()=>Z("stop"),disabled:null!==s,children:["stop"===s?(0,k.jsx)(V.Loader2,{className:"size-4 animate-spin"}):(0,k.jsx)(em.Square,{className:"size-4"}),"Stop server"]})]})]}):(0,k.jsxs)("div",{className:"mt-5 flex flex-wrap gap-2",children:[(0,k.jsxs)(Y.Button,{size:"sm",onClick:()=>Z("start"),disabled:null!==s,children:["start"===s?(0,k.jsx)(V.Loader2,{className:"size-4 animate-spin"}):(0,k.jsx)(ep.Play,{className:"size-4"}),"start"===s?"Starting…":"Launch server"]}),(0,k.jsx)(vn,{serverUrl:N?.endpoint||"http://localhost:8080",disabled:!0})]})]}),(0,k.jsxs)("div",{className:"grid gap-14 border-t border-border pt-12 md:grid-cols-2 md:gap-10",children:[(0,k.jsxs)("section",{children:[(0,k.jsxs)("div",{className:"flex items-center gap-2",children:[(0,k.jsx)(ew.Rocket,{className:"size-4 text-muted-foreground"}),(0,k.jsx)("h3",{className:"text-sm font-medium",children:"Deploy to cloud"})]}),(0,k.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Deploy your AI server to Vercel for production use."}),(0,k.jsxs)("div",{className:"mt-5 flex flex-wrap gap-2",children:[(0,k.jsx)(vE,{serverId:i,showUtilities:!0,compact:!0,openTarget:"vercel",openSignal:j}),(0,k.jsxs)(Y.Button,{variant:"outline",size:"sm",className:"h-8 gap-2",onClick:_,children:[a?(0,k.jsx)(ey.CheckCircle2,{className:"size-4 text-emerald-500"}):(0,k.jsx)(ev.Copy,{className:"size-4"}),"Copy API key"]})]})]}),(0,k.jsxs)("section",{children:[(0,k.jsxs)("div",{className:"flex items-center gap-2",children:[(0,k.jsx)(eQ,{className:"size-4 text-muted-foreground"}),(0,k.jsx)("h3",{className:"text-sm font-medium",children:"Server API key"})]}),(0,k.jsxs)("p",{className:"mt-2 text-sm text-muted-foreground",children:["Clients must send this key in the"," ",(0,k.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-xs text-foreground",children:"Authorization"})," ","header."]}),(0,k.jsxs)("div",{className:"mt-5 flex items-center gap-2",children:[(0,k.jsx)(U.Input,{type:p?"text":"password",value:n,onChange:e=>o(e.target.value),onBlur:()=>M(n),placeholder:"sk-...",className:"h-8 flex-1 font-mono text-xs"}),(0,k.jsx)(Y.Button,{variant:"outline",size:"icon",className:"size-8",onClick:()=>m(e=>!e),children:p?(0,k.jsx)(L.EyeOff,{className:"size-4"}):(0,k.jsx)(D.Eye,{className:"size-4"})}),(0,k.jsx)(Y.Button,{variant:"outline",size:"icon",className:"size-8",onClick:_,disabled:!n,children:a?(0,k.jsx)(ey.CheckCircle2,{className:"size-4 text-emerald-500"}):(0,k.jsx)(ev.Copy,{className:"size-4"})}),(0,k.jsx)(ei.TooltipProvider,{delay:200,children:(0,k.jsxs)(ei.Tooltip,{children:[(0,k.jsx)(ei.TooltipTrigger,{render:(0,k.jsx)(Y.Button,{variant:"outline",size:"icon",className:"size-8",onClick:function(){M("sk-"+Array.from(crypto.getRandomValues(new Uint8Array(24))).map(e=>e.toString(16).padStart(2,"0")).join(""))&&F.toast.success("API key generated")},"aria-label":"Generate a new API key"}),children:(0,k.jsx)(eb.RefreshCw,{className:"size-4"})}),(0,k.jsx)(ei.TooltipContent,{children:"Generate a new API key"})]})})]}),(0,k.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:"Stored locally in your browser. Generate a new key or paste your own."})]})]}),(0,k.jsxs)("section",{className:"mt-14 border-t border-border pt-10",children:[(0,k.jsxs)("div",{className:"flex items-center gap-2",children:[(0,k.jsx)(e$.Globe,{className:"size-4 text-muted-foreground"}),(0,k.jsx)("h3",{className:"text-sm font-medium",children:"Cloud deployments"})]}),(0,k.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Each deployment exposes its API endpoint and interactive API reference."}),g.length>0?(0,k.jsxs)("div",{className:"mt-5 overflow-hidden rounded-lg border",children:[(0,k.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3 border-b bg-muted/30 px-4 py-2 text-xs text-muted-foreground sm:grid-cols-[140px_minmax(0,1fr)_auto_auto]",children:[(0,k.jsx)("span",{className:"hidden sm:block",children:"Provider"}),(0,k.jsx)("span",{children:"API endpoint"}),(0,k.jsx)("span",{className:"hidden sm:block",children:"Reference"}),(0,k.jsx)("span",{children:"Actions"})]}),g.map(e=>(0,k.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-3 border-b bg-background px-4 py-3 last:border-b-0 sm:grid-cols-[140px_minmax(0,1fr)_auto_auto]",children:[(0,k.jsxs)("span",{className:"hidden items-center gap-2 text-sm font-medium sm:flex",children:["vercel"===e.provider?(0,k.jsx)("img",{src:"/vercel.svg",alt:"Vercel",className:"size-3.5"}):(0,k.jsx)(e$.Globe,{className:"size-3.5"}),e.provider,e.status&&(0,k.jsx)("span",{className:(0,E.cn)("rounded-full border border-border px-1.5 py-0.5 text-[10px] font-medium capitalize","ready"===e.status&&"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400","error"===e.status&&"bg-background text-foreground",("building"===e.status||"queued"===e.status)&&"border-orange-500/20 bg-orange-500/10 text-orange-700 dark:text-orange-400"),children:e.status}),(e.apiKeyVersion??0)!==O&&(0,k.jsx)("span",{className:"rounded-sm border border-orange-500/20 bg-orange-500/10 px-1.5 py-0.5 text-[10px] font-medium text-orange-700 dark:text-orange-400",children:"Key redeploy required"})]}),v===e.id?(0,k.jsx)(U.Input,{value:b,onChange:e=>S(e.target.value),className:"h-8 font-mono text-xs","aria-label":"Deployment URL"}):(0,k.jsx)("a",{href:vy(e),target:"_blank",rel:"noreferrer",className:"truncate font-mono text-xs hover:underline",children:vW(vy(e)).replace(/^https?:\/\//,"")}),(0,k.jsx)(vI,{url:vy(e),project:e.project}),(0,k.jsx)("div",{className:"flex items-center gap-1",children:v===e.id?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Y.Button,{variant:"ghost",size:"icon",className:"size-8",onClick:()=>{try{var t;let s=new URL(b).toString();x((t=e.id,v$(i,t,{url:s}))),y(null)}catch{F.toast.error("Enter a valid deployment URL.")}},"aria-label":"Save deployment URL",children:(0,k.jsx)(ey.CheckCircle2,{className:"size-4"})}),(0,k.jsx)(Y.Button,{variant:"ghost",size:"icon",className:"size-8",onClick:()=>y(null),"aria-label":"Cancel editing deployment URL",children:(0,k.jsx)(eP.X,{className:"size-4"})})]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(ei.TooltipProvider,{delay:200,children:(0,k.jsxs)(ei.Tooltip,{children:[(0,k.jsx)(ei.TooltipTrigger,{render:(0,k.jsx)(Y.Button,{variant:"ghost",size:"icon",className:"size-8",onClick:()=>I(e.id),disabled:!n,"aria-label":"Copy cloud API key"}),children:c===e.id?(0,k.jsx)(ey.CheckCircle2,{className:"size-4 text-emerald-500"}):(0,k.jsx)(ev.Copy,{className:"size-4"})}),(0,k.jsx)(ei.TooltipContent,{children:c===e.id?"Cloud API key copied":(e.apiKeyVersion??0)===O?"Copy cloud API key":"Copy local key — redeploy to apply it"})]})}),(0,k.jsx)(vI,{url:vy(e),project:e.project,compact:!0}),(0,k.jsx)(Y.Button,{variant:"ghost",size:"icon",className:"size-8",onClick:()=>{y(e.id),S(vy(e))},"aria-label":"Edit deployment URL",children:(0,k.jsx)(ek.Pencil,{className:"size-4"})}),(0,k.jsxs)(eC.DropdownMenu,{children:[(0,k.jsx)(eC.DropdownMenuTrigger,{render:(0,k.jsx)(Y.Button,{variant:"ghost",size:"icon",className:"size-8",children:(0,k.jsx)(ej,{className:"size-4"})})}),(0,k.jsxs)(eC.DropdownMenuContent,{align:"end",className:"w-37.5",children:["vercel"===e.provider&&(0,k.jsxs)(eC.DropdownMenuItem,{onClick:()=>{let t=e.url.replace(/^https?:\/\//,"");window.open(`https://${t}/_logs`,"_blank")},children:[(0,k.jsx)("img",{src:"/vercel.svg",alt:"Vercel",className:"size-4 mr-2 dark:invert"}),"View in Vercel"]}),(0,k.jsxs)(eC.DropdownMenuItem,{className:"text-destructive focus:bg-destructive/10 focus:text-destructive",onClick:()=>{var t;let s;return x((t=e.id,s=vQ(i).filter(e=>e.id!==t),vk(i,s),s))},children:[(0,k.jsx)(eS.Trash2,{className:"size-4 mr-2"}),"Delete"]})]})]})]})})]},e.id))]}):(0,k.jsxs)("div",{className:"flex flex-col border border-border rounded-md items-center px-4 py-6 justify-center gap-2 mt-5",children:[(0,k.jsx)("div",{className:"bg-white p-1 border border-border rounded-md",children:(0,k.jsx)(eT.default,{className:"size-5"})}),(0,k.jsx)("p",{className:" rounded-lg text-sm text-muted-foreground text-center mx-auto",children:"No cloud deployments yet. Deploy to a provider above to add one here."})]})]}),(0,k.jsx)(eA.AlertDialog,{open:$,onOpenChange:T,children:(0,k.jsxs)(eA.AlertDialogContent,{className:"max-w-xl! w-full!",children:[(0,k.jsxs)(eA.AlertDialogHeader,{children:[(0,k.jsx)(eA.AlertDialogTitle,{children:"Deploy this new API key?"}),(0,k.jsx)(eA.AlertDialogDescription,{children:"Existing cloud deployments keep their current key until you redeploy them. Choose whether to update locally only, or open a Vercel redeploy with this new key so your local and remote API keys stay in sync."})]}),(0,k.jsxs)(eA.AlertDialogFooter,{className:"mt-3",children:[(0,k.jsx)(eA.AlertDialogCancel,{className:"mr-auto",size:"sm",onClick:()=>{o(localStorage.getItem("rag_server_api_key")||""),Q(null)},children:"Cancel"}),(0,k.jsx)(eA.AlertDialogAction,{size:"sm",variant:"ghost",onClick:()=>q(!1),children:"Update locally only"}),(0,k.jsx)(eA.AlertDialogAction,{size:"sm",onClick:()=>q(!0),children:"Update & deploy to Vercel"})]})]})})]})}let vL=(0,R.default)("maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);var vY=e.i(702938);new Date(0).toISOString();let vU=`You are a powerful data analysis assistant with access to a knowledge base, corpus introspection tools, tabular data tools, and a code sandbox.
63
63
 
64
64
  You have these tools:
65
65
  1. "searchKnowledgeBase" — semantic search over the RAG knowledge base. Returns top-K most relevant document chunks.