9router 0.2.16 → 0.2.17

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 (183) hide show
  1. package/LICENSE +4 -0
  2. package/app/.next/BUILD_ID +1 -1
  3. package/app/.next/app-build-manifest.json +136 -136
  4. package/app/.next/app-path-routes-manifest.json +19 -19
  5. package/app/.next/build-manifest.json +5 -5
  6. package/app/.next/prerender-manifest.json +34 -34
  7. package/app/.next/react-loadable-manifest.json +13 -0
  8. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +5 -5
  9. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  10. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  11. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  12. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  13. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  14. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  15. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  16. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  17. package/app/.next/server/app/(dashboard)/dashboard/page.js +1 -1
  18. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  19. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  20. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  21. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  22. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  23. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  24. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  25. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  26. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  27. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  28. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  29. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  30. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  31. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  32. package/app/.next/server/app/_not-found/page.js +2 -2
  33. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  34. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  35. package/app/.next/server/app/_not-found.html +1 -1
  36. package/app/.next/server/app/_not-found.rsc +2 -2
  37. package/app/.next/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
  38. package/app/.next/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
  39. package/app/.next/server/app/api/cloud/auth/route.js +1 -1
  40. package/app/.next/server/app/api/cloud/auth/route_client-reference-manifest.js +1 -1
  41. package/app/.next/server/app/api/cloud/credentials/update/route.js +1 -1
  42. package/app/.next/server/app/api/cloud/credentials/update/route_client-reference-manifest.js +1 -1
  43. package/app/.next/server/app/api/cloud/model/resolve/route.js +1 -1
  44. package/app/.next/server/app/api/cloud/model/resolve/route_client-reference-manifest.js +1 -1
  45. package/app/.next/server/app/api/cloud/models/alias/route.js +1 -1
  46. package/app/.next/server/app/api/cloud/models/alias/route_client-reference-manifest.js +1 -1
  47. package/app/.next/server/app/api/combos/[id]/route.js +1 -1
  48. package/app/.next/server/app/api/combos/[id]/route_client-reference-manifest.js +1 -1
  49. package/app/.next/server/app/api/combos/route.js +1 -1
  50. package/app/.next/server/app/api/combos/route_client-reference-manifest.js +1 -1
  51. package/app/.next/server/app/api/init/route.js +1 -1
  52. package/app/.next/server/app/api/init/route.js.nft.json +1 -1
  53. package/app/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
  54. package/app/.next/server/app/api/keys/[id]/route.js +1 -1
  55. package/app/.next/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
  56. package/app/.next/server/app/api/keys/route.js +1 -1
  57. package/app/.next/server/app/api/keys/route_client-reference-manifest.js +1 -1
  58. package/app/.next/server/app/api/models/alias/route.js +1 -1
  59. package/app/.next/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
  60. package/app/.next/server/app/api/models/route.js +1 -1
  61. package/app/.next/server/app/api/models/route.js.nft.json +1 -1
  62. package/app/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
  63. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  64. package/app/.next/server/app/api/oauth/[provider]/[action]/route_client-reference-manifest.js +1 -1
  65. package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
  66. package/app/.next/server/app/api/providers/[id]/models/route_client-reference-manifest.js +1 -1
  67. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  68. package/app/.next/server/app/api/providers/[id]/route_client-reference-manifest.js +1 -1
  69. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  70. package/app/.next/server/app/api/providers/[id]/test/route_client-reference-manifest.js +1 -1
  71. package/app/.next/server/app/api/providers/client/route.js +1 -1
  72. package/app/.next/server/app/api/providers/client/route_client-reference-manifest.js +1 -1
  73. package/app/.next/server/app/api/providers/route.js +1 -1
  74. package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
  75. package/app/.next/server/app/api/providers/route_client-reference-manifest.js +1 -1
  76. package/app/.next/server/app/api/providers/validate/route_client-reference-manifest.js +1 -1
  77. package/app/.next/server/app/api/settings/route.js +1 -1
  78. package/app/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  79. package/app/.next/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
  80. package/app/.next/server/app/api/sync/cloud/route.js +1 -1
  81. package/app/.next/server/app/api/sync/cloud/route_client-reference-manifest.js +1 -1
  82. package/app/.next/server/app/api/sync/initialize/route.js +1 -1
  83. package/app/.next/server/app/api/sync/initialize/route.js.nft.json +1 -1
  84. package/app/.next/server/app/api/sync/initialize/route_client-reference-manifest.js +1 -1
  85. package/app/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  86. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  87. package/app/.next/server/app/api/usage/[connectionId]/route_client-reference-manifest.js +1 -1
  88. package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
  89. package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  90. package/app/.next/server/app/api/v1/api/chat/route_client-reference-manifest.js +1 -1
  91. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  92. package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  93. package/app/.next/server/app/api/v1/chat/completions/route_client-reference-manifest.js +1 -1
  94. package/app/.next/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.js +1 -1
  95. package/app/.next/server/app/api/v1/messages/route.js +1 -1
  96. package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
  97. package/app/.next/server/app/api/v1/messages/route_client-reference-manifest.js +1 -1
  98. package/app/.next/server/app/api/v1/responses/route.js +1 -1
  99. package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
  100. package/app/.next/server/app/api/v1/responses/route_client-reference-manifest.js +1 -1
  101. package/app/.next/server/app/api/v1/route_client-reference-manifest.js +1 -1
  102. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  103. package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  104. package/app/.next/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +1 -1
  105. package/app/.next/server/app/api/v1beta/models/route.js +1 -1
  106. package/app/.next/server/app/api/v1beta/models/route.js.nft.json +1 -1
  107. package/app/.next/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
  108. package/app/.next/server/app/callback/page.js +1 -1
  109. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  110. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  111. package/app/.next/server/app/callback.html +1 -1
  112. package/app/.next/server/app/callback.rsc +2 -2
  113. package/app/.next/server/app/dashboard/cli-tools.html +1 -1
  114. package/app/.next/server/app/dashboard/cli-tools.rsc +4 -4
  115. package/app/.next/server/app/dashboard/combos.html +1 -1
  116. package/app/.next/server/app/dashboard/combos.rsc +4 -4
  117. package/app/.next/server/app/dashboard/endpoint.html +1 -1
  118. package/app/.next/server/app/dashboard/endpoint.rsc +4 -4
  119. package/app/.next/server/app/dashboard/profile.html +1 -1
  120. package/app/.next/server/app/dashboard/profile.rsc +4 -4
  121. package/app/.next/server/app/dashboard/providers/new.html +1 -1
  122. package/app/.next/server/app/dashboard/providers/new.rsc +4 -4
  123. package/app/.next/server/app/dashboard/providers.html +1 -1
  124. package/app/.next/server/app/dashboard/providers.rsc +4 -4
  125. package/app/.next/server/app/dashboard.html +1 -1
  126. package/app/.next/server/app/dashboard.rsc +4 -4
  127. package/app/.next/server/app/index.html +1 -1
  128. package/app/.next/server/app/index.rsc +2 -2
  129. package/app/.next/server/app/landing/page.js +1 -1
  130. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  131. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  132. package/app/.next/server/app/landing.html +1 -1
  133. package/app/.next/server/app/landing.rsc +2 -2
  134. package/app/.next/server/app/page.js +1 -1
  135. package/app/.next/server/app/page.js.nft.json +1 -1
  136. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  137. package/app/.next/server/app-paths-manifest.json +19 -19
  138. package/app/.next/server/chunks/1354.js +3 -3
  139. package/app/.next/server/chunks/3103.js +1 -1
  140. package/app/.next/server/chunks/5170.js +1 -1
  141. package/app/.next/server/chunks/533.js +1 -0
  142. package/app/.next/server/chunks/{6689.js → 5451.js} +2 -2
  143. package/app/.next/server/chunks/5977.js +1 -1
  144. package/app/.next/server/chunks/9858.js +1 -0
  145. package/app/.next/server/middleware-build-manifest.js +1 -1
  146. package/app/.next/server/middleware-react-loadable-manifest.js +1 -1
  147. package/app/.next/server/pages/404.html +1 -1
  148. package/app/.next/server/pages/500.html +1 -1
  149. package/app/.next/server/webpack-runtime.js +1 -1
  150. package/app/.next/static/chunks/1393-74e0710828062f40.js +1 -0
  151. package/app/.next/static/chunks/2819-00dd2839ed1323e4.js +1 -0
  152. package/app/.next/static/chunks/3431.b7e68d807c631773.js +1 -0
  153. package/app/.next/static/chunks/9220.745ac8c97d067b9a.js +1 -0
  154. package/app/.next/static/chunks/9955-cba200dfd971f126.js +1 -0
  155. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-1ef1ec29086061fd.js +1 -0
  156. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-f18c8b5778e91a72.js +1 -0
  157. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-636932605724d0ce.js +1 -0
  158. package/app/.next/static/chunks/app/(dashboard)/dashboard/page-81c3e3fb971037c1.js +1 -0
  159. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-327e2f8b73368cc2.js +1 -0
  160. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-800270dff34413c0.js +1 -0
  161. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/page-9e075d79ef785c9b.js +1 -0
  162. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-eea1c0bf95c10035.js +1 -0
  163. package/app/.next/static/chunks/app/(dashboard)/{layout-239cdcb35472d644.js → layout-65f98ae0eccfc7b8.js} +1 -1
  164. package/app/.next/static/chunks/webpack-5865472aea7b6340.js +1 -0
  165. package/app/package.json +2 -0
  166. package/cli.js +11 -38
  167. package/package.json +1 -1
  168. package/app/.next/server/chunks/1582.js +0 -1
  169. package/app/.next/server/chunks/3576.js +0 -1
  170. package/app/.next/static/chunks/1393-c0bf788a0bc19102.js +0 -1
  171. package/app/.next/static/chunks/4244-0a98cf2e73799efe.js +0 -1
  172. package/app/.next/static/chunks/9955-a027f64b1a9bf4e5.js +0 -1
  173. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-9009a2a4fdcd878c.js +0 -1
  174. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-95da854765deba41.js +0 -1
  175. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-98e477f1e2603f2b.js +0 -1
  176. package/app/.next/static/chunks/app/(dashboard)/dashboard/page-1dce481cbcf036bc.js +0 -1
  177. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-c3dd45dfdb0b9dec.js +0 -1
  178. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-60e73b7047f9e428.js +0 -1
  179. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/page-1f016f32f42ef1f9.js +0 -1
  180. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-407c2ce547816028.js +0 -1
  181. package/app/.next/static/chunks/webpack-e009a29a8139b7cb.js +0 -1
  182. /package/app/.next/static/{CjtizKLK3s08esa00wWI0 → jTOq4rGDmshmQFiyCGWaU}/_buildManifest.js +0 -0
  183. /package/app/.next/static/{CjtizKLK3s08esa00wWI0 → jTOq4rGDmshmQFiyCGWaU}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- <!DOCTYPE html><!--CjtizKLK3s08esa00wWI0--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/e4af272ccee01ff0-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/d88eaa46491bd5c8.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-e009a29a8139b7cb.js"/><script src="/_next/static/chunks/4bd1b696-f785427dddbba9fb.js" async=""></script><script src="/_next/static/chunks/1255-9494d7e861e97d68.js" async=""></script><script src="/_next/static/chunks/main-app-1a9105a16c026010.js" async=""></script><script src="/_next/static/chunks/1760-b91a44d089080cde.js" async=""></script><script src="/_next/static/chunks/9955-a027f64b1a9bf4e5.js" async=""></script><script src="/_next/static/chunks/4244-0a98cf2e73799efe.js" async=""></script><script src="/_next/static/chunks/app/(dashboard)/layout-239cdcb35472d644.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><link rel="icon" href="/favicon.svg" type="image/svg+xml"/><title>404: This page could not be found.</title><title>9Router - AI Infrastructure Management</title><meta name="description" content="One endpoint for all your AI providers. Manage keys, monitor usage, and scale effortlessly."/><link rel="icon" href="/favicon.ico" type="image/x-icon" sizes="16x16"/><link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_f367f3 font-sans antialiased"><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;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-e009a29a8139b7cb.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[9955,[\"1760\",\"static/chunks/1760-b91a44d089080cde.js\",\"9955\",\"static/chunks/9955-a027f64b1a9bf4e5.js\",\"4244\",\"static/chunks/4244-0a98cf2e73799efe.js\",\"9305\",\"static/chunks/app/(dashboard)/layout-239cdcb35472d644.js\"],\"ThemeProvider\"]\n3:I[9766,[],\"\"]\n4:I[8924,[],\"\"]\n5:I[4431,[],\"OutletBoundary\"]\n7:I[5278,[],\"AsyncMetadataOutlet\"]\n9:I[4431,[],\"ViewportBoundary\"]\nb:I[4431,[],\"MetadataBoundary\"]\nc:\"$Sreact.suspense\"\ne:I[7150,[],\"\"]\n:HL[\"/_next/static/media/e4af272ccee01ff0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/d88eaa46491bd5c8.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"CjtizKLK3s08esa00wWI0\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/d88eaa46491bd5c8.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"link\",null,{\"href\":\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1\u0026display=swap\",\"rel\":\"stylesheet\"}],[\"$\",\"link\",null,{\"rel\":\"icon\",\"href\":\"/favicon.svg\",\"type\":\"image/svg+xml\"}]]}],[\"$\",\"body\",null,{\"className\":\"__variable_f367f3 font-sans antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"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.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$L6\",[\"$\",\"$L7\",null,{\"promise\":\"$@8\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$c\",null,{\"fallback\":null,\"children\":\"$Ld\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$e\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\n"])</script><script>self.__next_f.push([1,"f:I[622,[],\"IconMark\"]\n8:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"9Router - AI Infrastructure Management\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"One endpoint for all your AI providers. Manage keys, monitor usage, and scale effortlessly.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\",\"type\":\"image/x-icon\",\"sizes\":\"16x16\"}],[\"$\",\"$Lf\",\"3\",{}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"d:\"$8:metadata\"\n"])</script></body></html>
1
+ <!DOCTYPE html><!--jTOq4rGDmshmQFiyCGWaU--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/e4af272ccee01ff0-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/d88eaa46491bd5c8.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-5865472aea7b6340.js"/><script src="/_next/static/chunks/4bd1b696-f785427dddbba9fb.js" async=""></script><script src="/_next/static/chunks/1255-9494d7e861e97d68.js" async=""></script><script src="/_next/static/chunks/main-app-1a9105a16c026010.js" async=""></script><script src="/_next/static/chunks/1760-b91a44d089080cde.js" async=""></script><script src="/_next/static/chunks/9955-cba200dfd971f126.js" async=""></script><script src="/_next/static/chunks/2819-00dd2839ed1323e4.js" async=""></script><script src="/_next/static/chunks/app/(dashboard)/layout-65f98ae0eccfc7b8.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><link rel="icon" href="/favicon.svg" type="image/svg+xml"/><title>404: This page could not be found.</title><title>9Router - AI Infrastructure Management</title><meta name="description" content="One endpoint for all your AI providers. Manage keys, monitor usage, and scale effortlessly."/><link rel="icon" href="/favicon.ico" type="image/x-icon" sizes="16x16"/><link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_f367f3 font-sans antialiased"><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;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-5865472aea7b6340.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[9955,[\"1760\",\"static/chunks/1760-b91a44d089080cde.js\",\"9955\",\"static/chunks/9955-cba200dfd971f126.js\",\"2819\",\"static/chunks/2819-00dd2839ed1323e4.js\",\"9305\",\"static/chunks/app/(dashboard)/layout-65f98ae0eccfc7b8.js\"],\"ThemeProvider\",1]\n3:I[9766,[],\"\"]\n4:I[8924,[],\"\"]\n5:I[4431,[],\"OutletBoundary\"]\n7:I[5278,[],\"AsyncMetadataOutlet\"]\n9:I[4431,[],\"ViewportBoundary\"]\nb:I[4431,[],\"MetadataBoundary\"]\nc:\"$Sreact.suspense\"\ne:I[7150,[],\"\"]\n:HL[\"/_next/static/media/e4af272ccee01ff0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/d88eaa46491bd5c8.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"jTOq4rGDmshmQFiyCGWaU\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/d88eaa46491bd5c8.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"link\",null,{\"href\":\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1\u0026display=swap\",\"rel\":\"stylesheet\"}],[\"$\",\"link\",null,{\"rel\":\"icon\",\"href\":\"/favicon.svg\",\"type\":\"image/svg+xml\"}]]}],[\"$\",\"body\",null,{\"className\":\"__variable_f367f3 font-sans antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"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.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$L6\",[\"$\",\"$L7\",null,{\"promise\":\"$@8\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$c\",null,{\"fallback\":null,\"children\":\"$Ld\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$e\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\n"])</script><script>self.__next_f.push([1,"f:I[622,[],\"IconMark\"]\n8:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"9Router - AI Infrastructure Management\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"One endpoint for all your AI providers. Manage keys, monitor usage, and scale effortlessly.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\",\"type\":\"image/x-icon\",\"sizes\":\"16x16\"}],[\"$\",\"$Lf\",\"3\",{}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"d:\"$8:metadata\"\n"])</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e009a29a8139b7cb.js" defer=""></script><script src="/_next/static/chunks/framework-90fc9b0f7c4706c1.js" defer=""></script><script src="/_next/static/chunks/main-b718c5aeb6d6e180.js" defer=""></script><script src="/_next/static/chunks/pages/_app-6c8c2371b16a04b8.js" defer=""></script><script src="/_next/static/chunks/pages/_error-94812ad32cad7365.js" defer=""></script><script src="/_next/static/CjtizKLK3s08esa00wWI0/_buildManifest.js" defer=""></script><script src="/_next/static/CjtizKLK3s08esa00wWI0/_ssgManifest.js" defer=""></script></head><body><div id="__next"><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;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"CjtizKLK3s08esa00wWI0","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5865472aea7b6340.js" defer=""></script><script src="/_next/static/chunks/framework-90fc9b0f7c4706c1.js" defer=""></script><script src="/_next/static/chunks/main-b718c5aeb6d6e180.js" defer=""></script><script src="/_next/static/chunks/pages/_app-6c8c2371b16a04b8.js" defer=""></script><script src="/_next/static/chunks/pages/_error-94812ad32cad7365.js" defer=""></script><script src="/_next/static/jTOq4rGDmshmQFiyCGWaU/_buildManifest.js" defer=""></script><script src="/_next/static/jTOq4rGDmshmQFiyCGWaU/_ssgManifest.js" defer=""></script></head><body><div id="__next"><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;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"jTOq4rGDmshmQFiyCGWaU","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
@@ -1 +1 @@
1
- (()=>{"use strict";var a={},b={};function c(d){var e=b[d];if(void 0!==e)return e.exports;var f=b[d]={id:d,loaded:!1,exports:{}},g=!0;try{a[d].call(f.exports,f,f.exports,c),g=!1}finally{g&&delete b[d]}return f.loaded=!0,f.exports}c.m=a,c.c=b,c.amdO={},c.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return c.d(b,{a:b}),b},(()=>{var a,b=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;c.t=function(d,e){if(1&e&&(d=this(d)),8&e||"object"==typeof d&&d&&(4&e&&d.__esModule||16&e&&"function"==typeof d.then))return d;var f=Object.create(null);c.r(f);var g={};a=a||[null,b({}),b([]),b(b)];for(var h=2&e&&d;"object"==typeof h&&!~a.indexOf(h);h=b(h))Object.getOwnPropertyNames(h).forEach(a=>g[a]=()=>d[a]);return g.default=()=>d,c.d(f,g),f}})(),c.d=(a,b)=>{for(var d in b)c.o(b,d)&&!c.o(a,d)&&Object.defineProperty(a,d,{enumerable:!0,get:b[d]})},c.f={},c.e=a=>Promise.all(Object.keys(c.f).reduce((b,d)=>(c.f[d](a,b),b),[])),c.u=a=>""+a+".js",c.hmd=a=>((a=Object.create(a)).children||(a.children=[]),Object.defineProperty(a,"exports",{enumerable:!0,set:()=>{throw Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+a.id)}}),a),c.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),c.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},c.X=(a,b,d)=>{var e=b;d||(b=a,d=()=>c(c.s=e)),b.map(c.e,c);var f=d();return void 0===f?a:f},(()=>{var a={7311:1},b=b=>{var d=b.modules,e=b.ids,f=b.runtime;for(var g in d)c.o(d,g)&&(c.m[g]=d[g]);f&&f(c);for(var h=0;h<e.length;h++)a[e[h]]=1};c.f.require=(d,e)=>{a[d]||(7311!=d?b(require("./chunks/"+c.u(d))):a[d]=1)},module.exports=c,c.C=b})()})();
1
+ (()=>{"use strict";var a={},b={};function c(d){var e=b[d];if(void 0!==e)return e.exports;var f=b[d]={id:d,loaded:!1,exports:{}},g=!0;try{a[d].call(f.exports,f,f.exports,c),g=!1}finally{g&&delete b[d]}return f.loaded=!0,f.exports}c.m=a,c.c=b,c.amdO={},(()=>{var a="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",b="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",d="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",e=a=>{a&&a.d<1&&(a.d=1,a.forEach(a=>a.r--),a.forEach(a=>a.r--?a.r++:a()))};c.a=(c,f,g)=>{g&&((h=[]).d=-1);var h,i,j,k,l=new Set,m=c.exports,n=new Promise((a,b)=>{k=b,j=a});n[b]=m,n[a]=a=>(h&&a(h),l.forEach(a),n.catch(a=>{})),c.exports=n,f(c=>{i=c.map(c=>{if(null!==c&&"object"==typeof c){if(c[a])return c;if(c.then){var f=[];f.d=0,c.then(a=>{g[b]=a,e(f)},a=>{g[d]=a,e(f)});var g={};return g[a]=a=>a(f),g}}var h={};return h[a]=a=>{},h[b]=c,h});var f,g=()=>i.map(a=>{if(a[d])throw a[d];return a[b]}),j=new Promise(b=>{(f=()=>b(g)).r=0;var c=a=>a!==h&&!l.has(a)&&(l.add(a),a&&!a.d&&(f.r++,a.push(f)));i.map(b=>b[a](c))});return f.r?j:g()},a=>(a?k(n[d]=a):j(m),e(h))),h&&h.d<0&&(h.d=0)}})(),c.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return c.d(b,{a:b}),b},(()=>{var a,b=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;c.t=function(d,e){if(1&e&&(d=this(d)),8&e||"object"==typeof d&&d&&(4&e&&d.__esModule||16&e&&"function"==typeof d.then))return d;var f=Object.create(null);c.r(f);var g={};a=a||[null,b({}),b([]),b(b)];for(var h=2&e&&d;"object"==typeof h&&!~a.indexOf(h);h=b(h))Object.getOwnPropertyNames(h).forEach(a=>g[a]=()=>d[a]);return g.default=()=>d,c.d(f,g),f}})(),c.d=(a,b)=>{for(var d in b)c.o(b,d)&&!c.o(a,d)&&Object.defineProperty(a,d,{enumerable:!0,get:b[d]})},c.f={},c.e=a=>Promise.all(Object.keys(c.f).reduce((b,d)=>(c.f[d](a,b),b),[])),c.u=a=>""+a+".js",c.hmd=a=>((a=Object.create(a)).children||(a.children=[]),Object.defineProperty(a,"exports",{enumerable:!0,set:()=>{throw Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+a.id)}}),a),c.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),c.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},c.X=(a,b,d)=>{var e=b;d||(b=a,d=()=>c(c.s=e)),b.map(c.e,c);var f=d();return void 0===f?a:f},(()=>{var a={7311:1},b=b=>{var d=b.modules,e=b.ids,f=b.runtime;for(var g in d)c.o(d,g)&&(c.m[g]=d[g]);f&&f(c);for(var h=0;h<e.length;h++)a[e[h]]=1};c.f.require=(d,e)=>{a[d]||(7311!=d?b(require("./chunks/"+c.u(d))):a[d]=1)},module.exports=c,c.C=b})()})();
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1393],{1393:(e,s,l)=>{Promise.resolve().then(l.bind(l,1902))},1902:(e,s,l)=>{"use strict";l.a(e,async(e,t)=>{try{l.d(s,{default:()=>c});var a=l(5155),i=l(2115),r=l(2819),n=l(2694),d=e([r]);r=(d.then?(await d)():d)[0];let o="https://9router.com";function c(e){let{machineId:s}=e,[l,t]=(0,i.useState)([]),[d,c]=(0,i.useState)(!0),[x,m]=(0,i.useState)(!1),[h,y]=(0,i.useState)(""),[p,u]=(0,i.useState)(null),[b,g]=(0,i.useState)(!1),[f,j]=(0,i.useState)(!1),[N,v]=(0,i.useState)(!1),[k,w]=(0,i.useState)(!1),[C,S]=(0,i.useState)(null),[_,E]=(0,i.useState)(""),{copied:P,copy:O}=(0,n.C)();(0,i.useEffect)(()=>{A(),$()},[]);let $=async()=>{try{let e=await fetch("/api/settings");if(e.ok){let s=await e.json();g(s.cloudEnabled||!1)}}catch(e){console.log("Error loading cloud settings:",e)}},A=async()=>{try{let e=await fetch("/api/keys"),s=await e.json();e.ok&&t(s.keys||[])}catch(e){console.log("Error fetching data:",e)}finally{c(!1)}},D=e=>{e?j(!0):v(!0)},T=async()=>{w(!0),E("syncing");try{let e=await fetch("/api/sync/cloud",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"enable"})}),s=await e.json();e.ok?(E("verifying"),s.verified?(g(!0),S({type:"success",message:"Cloud Proxy connected and verified!"})):(g(!0),S({type:"warning",message:s.verifyError||"Connected but verification failed"})),j(!1),s.createdKey&&await A()):S({type:"error",message:s.error||"Failed to enable cloud"})}catch(e){S({type:"error",message:e.message})}finally{w(!1),E("")}},W=async()=>{w(!0),E("syncing");try{await fetch("/api/sync/cloud",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"sync"})}),E("disabling"),(await fetch("/api/sync/cloud",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"disable"})})).ok&&(g(!1),S({type:"success",message:"Cloud disabled"}),v(!1))}catch(e){console.log("Error disabling cloud:",e),S({type:"error",message:"Failed to disable cloud"})}finally{w(!1),E("")}},I=async()=>{if(h.trim())try{let e=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:h})}),s=await e.json();e.ok&&(u(s.key),await A(),y(""),m(!1))}catch(e){console.log("Error creating key:",e)}},K=async e=>{if(confirm("Delete this API key?"))try{(await fetch("/api/keys/".concat(e),{method:"DELETE"})).ok&&t(l.filter(s=>s.id!==e))}catch(e){console.log("Error deleting key:",e)}};"localhost"===window.location.hostname||window.location.hostname;let F="".concat(window.location.origin,"/v1");if("".concat(o,"/").concat(s,"/v1"),d)return(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(r.Qv,{}),(0,a.jsx)(r.Qv,{})]});let J=b?"".concat(o,"/v1"):F;return(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsxs)(r.Zp,{className:"",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"API Endpoint"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:b?"Using Cloud Proxy":"Using Local Server"})]}),(0,a.jsx)("div",{className:"flex items-center gap-2",children:b?(0,a.jsx)(r.$n,{size:"sm",variant:"secondary",icon:"cloud_off",onClick:()=>D(!1),disabled:k,className:"!bg-red-500/10 !text-red-500 hover:!bg-red-500/20 !border-red-500/30",children:"Disable Cloud"}):(0,a.jsx)(r.$n,{variant:"primary",icon:"cloud_upload",onClick:()=>D(!0),disabled:k,className:"bg-gradient-to-r from-primary to-blue-500 hover:from-primary-hover hover:to-blue-600",children:"Enable Cloud"})})]}),(0,a.jsxs)("div",{className:"flex gap-2 mb-3",children:[(0,a.jsx)(r.pd,{value:J,readOnly:!0,className:"flex-1 font-mono text-sm ".concat(b?"animate-border-glow":"")}),(0,a.jsx)(r.$n,{variant:"secondary",icon:"endpoint_url"===P?"check":"content_copy",onClick:()=>O(J,"endpoint_url"),children:"endpoint_url"===P?"Copied!":"Copy"})]})]}),(0,a.jsxs)(r.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"API Keys"}),(0,a.jsx)(r.$n,{icon:"add",onClick:()=>m(!0),children:"Create Key"})]}),0===l.length?(0,a.jsxs)("div",{className:"text-center py-8",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-4xl text-text-muted mb-2",children:"vpn_key"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"No API keys yet"})]}):(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"border-b border-border",children:[(0,a.jsx)("th",{className:"text-left p-3 font-medium",children:"Name"}),(0,a.jsx)("th",{className:"text-left p-3 font-medium",children:"Key"}),(0,a.jsx)("th",{className:"text-left p-3 font-medium",children:"Created"}),(0,a.jsx)("th",{className:"text-left p-3 font-medium",children:"Actions"})]})}),(0,a.jsx)("tbody",{children:l.map(e=>(0,a.jsxs)("tr",{className:"border-b border-border hover:bg-sidebar/30",children:[(0,a.jsx)("td",{className:"p-3 text-sm",children:e.name}),(0,a.jsx)("td",{className:"p-3",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"font-mono text-xs text-text-muted",children:e.key}),(0,a.jsx)(r.$n,{size:"sm",variant:"ghost",icon:P===e.id?"check":"content_copy",onClick:()=>O(e.key,e.id)})]})}),(0,a.jsx)("td",{className:"p-3 text-sm text-text-muted",children:new Date(e.createdAt).toLocaleDateString()}),(0,a.jsx)("td",{className:"p-3",children:(0,a.jsx)(r.$n,{size:"sm",variant:"ghost",icon:"delete",className:"text-red-500",onClick:()=>K(e.id),children:"Delete"})})]},e.id))})]})})]}),!1,(0,a.jsx)(r.aF,{isOpen:f,title:"Enable Cloud Proxy",onClose:()=>j(!1),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4",children:[(0,a.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200 font-medium mb-2",children:"What you will get"}),(0,a.jsxs)("ul",{className:"text-sm text-blue-700 dark:text-blue-300 space-y-1",children:[(0,a.jsx)("li",{children:"• Access your API from anywhere in the world"}),(0,a.jsx)("li",{children:"• Share endpoint with your team easily"}),(0,a.jsx)("li",{children:"• No need to open ports or configure firewall"}),(0,a.jsx)("li",{children:"• Fast global edge network"})]})]}),(0,a.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,a.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 font-medium mb-1",children:"Note"}),(0,a.jsxs)("ul",{className:"text-sm text-yellow-700 dark:text-yellow-300 space-y-1",children:[(0,a.jsx)("li",{children:"• Cloud will keep your auth session for 1 day. If not used, it will be automatically deleted."}),(0,a.jsx)("li",{children:"• Cloud is currently unstable with Claude Code OAuth in some cases."})]})]}),k&&(0,a.jsxs)("div",{className:"flex items-center gap-3 p-3 bg-primary/10 border border-primary/30 rounded-lg",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-primary",children:"progress_activity"}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)("p",{className:"text-sm font-medium text-primary",children:["syncing"===_&&"Syncing data to cloud...","verifying"===_&&"Verifying connection..."]})})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(r.$n,{onClick:T,fullWidth:!0,disabled:k,children:k?(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"syncing"===_?"Syncing...":"Verifying..."]}):"Enable Cloud"}),(0,a.jsx)(r.$n,{onClick:()=>j(!1),variant:"ghost",fullWidth:!0,disabled:k,children:"Cancel"})]})]})}),(0,a.jsx)(r.aF,{isOpen:x,title:"Create API Key",onClose:()=>{m(!1),y("")},children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(r.pd,{label:"Key Name",value:h,onChange:e=>y(e.target.value),placeholder:"Production Key"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(r.$n,{onClick:I,fullWidth:!0,disabled:!h.trim(),children:"Create"}),(0,a.jsx)(r.$n,{onClick:()=>{m(!1),y("")},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,a.jsx)(r.aF,{isOpen:!!p,title:"API Key Created",onClose:()=>u(null),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,a.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:"Save this key now!"}),(0,a.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:"This is the only time you will see this key. Store it securely."})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(r.pd,{value:p||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,a.jsx)(r.$n,{variant:"secondary",icon:"created_key"===P?"check":"content_copy",onClick:()=>O(p,"created_key"),children:"created_key"===P?"Copied!":"Copy"})]}),(0,a.jsx)(r.$n,{onClick:()=>u(null),fullWidth:!0,children:"Done"})]})}),(0,a.jsx)(r.aF,{isOpen:N,title:"Disable Cloud Proxy",onClose:()=>!k&&v(!1),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("div",{className:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-red-600 dark:text-red-400",children:"warning"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-red-800 dark:text-red-200 font-medium mb-1",children:"Warning"}),(0,a.jsx)("p",{className:"text-sm text-red-700 dark:text-red-300",children:"All auth sessions will be deleted from cloud."})]})]})}),k&&(0,a.jsxs)("div",{className:"flex items-center gap-3 p-3 bg-primary/10 border border-primary/30 rounded-lg",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-primary",children:"progress_activity"}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)("p",{className:"text-sm font-medium text-primary",children:["syncing"===_&&"Syncing latest data...","disabling"===_&&"Disabling cloud..."]})})]}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Are you sure you want to disable cloud proxy?"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(r.$n,{onClick:W,fullWidth:!0,disabled:k,className:"!bg-red-500 hover:!bg-red-600 !text-white",children:k?(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"syncing"===_?"Syncing...":"Disabling..."]}):"Disable Cloud"}),(0,a.jsx)(r.$n,{onClick:()=>v(!1),variant:"ghost",fullWidth:!0,disabled:k,children:"Cancel"})]})]})})]})}t()}catch(e){t(e)}})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2819],{709:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{default:()=>c});var s=r(5155),l=r(2115),n=r(3439),i=r(1620),o=e([n,i]);function c(e){let{children:t}=e,[r,a]=(0,l.useState)(!1);return(0,s.jsxs)("div",{className:"flex h-screen w-full overflow-hidden bg-bg",children:[r&&(0,s.jsx)("div",{className:"fixed inset-0 z-40 bg-black/50 lg:hidden",onClick:()=>a(!1)}),(0,s.jsx)("div",{className:"hidden lg:flex",children:(0,s.jsx)(n.default,{})}),(0,s.jsx)("div",{className:"fixed inset-y-0 left-0 z-50 transform lg:hidden transition-transform duration-300 ease-in-out ".concat(r?"translate-x-0":"-translate-x-full"),children:(0,s.jsx)(n.default,{onClose:()=>a(!1)})}),(0,s.jsxs)("main",{className:"flex flex-col flex-1 h-full min-w-0 relative transition-colors duration-300",children:[(0,s.jsx)(i.default,{onMenuClick:()=>a(!0)}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto custom-scrollbar p-6 lg:p-10",children:(0,s.jsx)("div",{className:"max-w-7xl mx-auto",children:t})})]})]})}[n,i]=o.then?(await o)():o,a()}catch(e){a(e)}})},1255:(e,t,r)=>{r.d(t,{default:()=>l});var a=r(5155),s=r(6319);function l(e){let{children:t,title:r,subtitle:l,icon:n,action:i,padding:o="md",hover:c=!1,className:d,...m}=e;return(0,a.jsxs)("div",{className:(0,s.cn)("bg-surface","border border-border","rounded-xl shadow-soft",c&&"hover:shadow-warm hover:border-primary/30 transition-all cursor-pointer",{none:"",sm:"p-4",md:"p-6",lg:"p-8"}[o],d),...m,children:[(r||i)&&(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[n&&(0,a.jsx)("div",{className:"p-2 rounded-lg bg-bg text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:n})}),(0,a.jsxs)("div",{children:[r&&(0,a.jsx)("h3",{className:"text-text-main font-semibold",children:r}),l&&(0,a.jsx)("p",{className:"text-sm text-text-muted",children:l})]})]}),i]}),t]})}l.Section=function(e){let{children:t,className:r,...l}=e;return(0,a.jsx)("div",{className:(0,s.cn)("p-4 rounded-lg","bg-surface","border border-border",r),...l,children:t})},l.Row=function(e){let{children:t,className:r,...l}=e;return(0,a.jsx)("div",{className:(0,s.cn)("p-3 -mx-3 px-3 border-b border-border last:border-b-0 transition-colors","hover:bg-sidebar",r),...l,children:t})}},1491:(e,t,r)=>{r.a(e,async(e,t)=>{try{var a=r(709),s=r(3461),l=e([a,s]);[a,s]=l.then?(await l)():l,t()}catch(e){t(e)}})},1553:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{default:()=>c});var s=r(5155),l=r(2115),n=r(2819),i=r(2694),o=e([n]);function c(e){let{isOpen:t,provider:r,providerInfo:a,onSuccess:o,onClose:c}=e,[d,m]=(0,l.useState)("waiting"),[x,u]=(0,l.useState)(null),[h,b]=(0,l.useState)(""),[f,p]=(0,l.useState)(null),[g,j]=(0,l.useState)(!1),[v,y]=(0,l.useState)(null),[N,w]=(0,l.useState)(!1),k=(0,l.useRef)(null),{copied:C,copy:z}=(0,i.C)(),_="localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname;(0,l.useEffect)(()=>{t&&r&&(u(null),b(""),p(null),j(!1),y(null),w(!1),E())},[t,r]);let S=(0,l.useRef)(!1);(0,l.useEffect)(()=>{let e;if(!x)return;S.current=!1;let t=async e=>{if(S.current)return;let{code:t,state:r,error:a,errorDescription:s}=e;if(a){S.current=!0,p(s||a),m("error");return}t&&(S.current=!0,await L(t,r))},r=e=>{var r;e.origin===window.location.origin&&(null==(r=e.data)?void 0:r.type)==="oauth_callback"&&t(e.data.data)};window.addEventListener("message",r);try{(e=new BroadcastChannel("oauth_callback")).onmessage=e=>t(e.data)}catch(e){console.log("BroadcastChannel not supported")}let a=e=>{if("oauth_callback"===e.key&&e.newValue)try{let r=JSON.parse(e.newValue);t(r),localStorage.removeItem("oauth_callback")}catch(e){console.log("Failed to parse localStorage data")}};window.addEventListener("storage",a);try{let e=localStorage.getItem("oauth_callback");if(e){let r=JSON.parse(e);r.timestamp&&Date.now()-r.timestamp<3e4&&(t(r),localStorage.removeItem("oauth_callback"))}}catch(e){}return()=>{window.removeEventListener("message",r),window.removeEventListener("storage",a),e&&e.close()}},[x]);let L=async(e,t)=>{try{let a=await fetch("/api/oauth/".concat(r,"/exchange"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,redirectUri:x.redirectUri,codeVerifier:x.codeVerifier,state:t})}),s=await a.json();if(!a.ok)throw Error(s.error);m("success"),null==o||o()}catch(e){p(e.message),m("error")}},E=async()=>{if(r)try{let e;if(p(null),"github"===r||"qwen"===r){j(!0),m("waiting");let e=await fetch("/api/oauth/".concat(r,"/device-code")),t=await e.json();if(!e.ok)throw Error(t.error);y(t);let a=t.verification_uri_complete||t.verification_uri;a&&window.open(a,"_blank"),P(t.device_code,t.codeVerifier,t.interval||5);return}if("codex"===r)e="http://localhost:1455/auth/callback";else{let t=window.location.port||("https:"===window.location.protocol?"443":"80");e="http://localhost:".concat(t,"/callback")}let t=await fetch("/api/oauth/".concat(r,"/authorize?redirect_uri=").concat(encodeURIComponent(e))),a=await t.json();if(!t.ok)throw Error(a.error);u({...a,redirectUri:e}),"codex"===r?(m("input"),window.open(a.authUrl,"_blank")):_?(m("waiting"),k.current=window.open(a.authUrl,"oauth_popup","width=600,height=700"),k.current||m("input")):(m("input"),window.open(a.authUrl,"_blank"))}catch(e){p(e.message),m("error")}},P=async(e,t,a)=>{w(!0);for(let s=0;s<60;s++){await new Promise(e=>setTimeout(e,1e3*a));try{let s=await fetch("/api/oauth/".concat(r,"/poll"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,codeVerifier:t})}),l=await s.json();if(l.success){m("success"),w(!1),null==o||o();return}if("expired_token"===l.error||"access_denied"===l.error)throw Error(l.errorDescription||l.error);"slow_down"===l.error&&(a=Math.min(a+5,30))}catch(e){p(e.message),m("error"),w(!1);return}}p("Authorization timeout"),m("error"),w(!1)},U=async()=>{try{p(null);let e=new URL(h),t=e.searchParams.get("code"),r=e.searchParams.get("state"),a=e.searchParams.get("error");if(a)throw Error(e.searchParams.get("error_description")||a);if(!t)throw Error("No authorization code found in URL");await L(t,r)}catch(e){p(e.message),m("error")}};return r&&a?(0,s.jsx)(n.aF,{isOpen:t,title:"Connect ".concat(a.name),onClose:c,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:["waiting"===d&&!g&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Waiting for Authorization"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Complete the authorization in the popup window."}),(0,s.jsx)(n.$n,{variant:"ghost",onClick:()=>m("input"),children:"Popup blocked? Enter URL manually"})]}),"waiting"===d&&g&&v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center py-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Visit the URL below and enter the code:"}),(0,s.jsxs)("div",{className:"bg-sidebar p-4 rounded-lg mb-4",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Verification URL"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("code",{className:"flex-1 text-sm break-all",children:v.verification_uri}),(0,s.jsx)(n.$n,{size:"sm",variant:"ghost",icon:"verify_url"===C?"check":"content_copy",onClick:()=>z(v.verification_uri,"verify_url")})]})]}),(0,s.jsxs)("div",{className:"bg-primary/10 p-4 rounded-lg",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Your Code"}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)("p",{className:"text-2xl font-mono font-bold text-primary",children:v.user_code}),(0,s.jsx)(n.$n,{size:"sm",variant:"ghost",icon:"user_code"===C?"check":"content_copy",onClick:()=>z(v.user_code,"user_code")})]})]})]}),N&&(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),"Waiting for authorization..."]})]}),"input"===d&&!g&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 1: Open this URL in your browser"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(n.pd,{value:(null==x?void 0:x.authUrl)||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,s.jsx)(n.$n,{variant:"secondary",icon:"auth_url"===C?"check":"content_copy",onClick:()=>z(null==x?void 0:x.authUrl,"auth_url"),children:"Copy"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 2: Paste the callback URL here"}),(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"After authorization, copy the full URL from your browser."}),(0,s.jsx)(n.pd,{value:h,onChange:e=>b(e.target.value),placeholder:"".concat(window.location.origin,"/callback?code=..."),className:"font-mono text-xs"})]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(n.$n,{onClick:U,fullWidth:!0,disabled:!h,children:"Connect"}),(0,s.jsx)(n.$n,{onClick:c,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"success"===d&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,s.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your ",a.name," account has been connected."]}),(0,s.jsx)(n.$n,{onClick:c,fullWidth:!0,children:"Done"})]}),"error"===d&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,s.jsx)("p",{className:"text-sm text-red-600 mb-4",children:f}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(n.$n,{onClick:E,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,s.jsx)(n.$n,{onClick:c,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}n=(o.then?(await o)():o)[0],a()}catch(e){a(e)}})},1620:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{default:()=>m});var s=r(5155),l=r(63),n=r(2619),i=r.n(n),o=r(2819),c=r(4156),d=e([o,c]);function m(e){let{onMenuClick:t,showMenuButton:r=!0}=e,a=(0,l.usePathname)(),{title:n,description:d,breadcrumbs:m}=(e=>{if(!e)return{title:"",description:"",breadcrumbs:[]};let t=e.match(/\/providers\/([^/]+)$/);if(t){let e=t[1],r=c.zN[e]||c.fg[e];if(r)return{title:r.name,description:"",breadcrumbs:[{label:"Providers",href:"/dashboard/providers"},{label:r.name,image:"/providers/".concat(r.id,".png")}]}}return e.includes("/providers")?{title:"Providers",description:"Manage your AI provider connections",breadcrumbs:[]}:e.includes("/combos")?{title:"Combos",description:"Model combos with fallback",breadcrumbs:[]}:e.includes("/cli-tools")?{title:"CLI Tools",description:"Configure CLI tools",breadcrumbs:[]}:e.includes("/endpoint")?{title:"Endpoint",description:"API endpoint configuration",breadcrumbs:[]}:e.includes("/profile")?{title:"Settings",description:"Manage your preferences",breadcrumbs:[]}:"/dashboard"===e?{title:"Endpoint",description:"API endpoint configuration",breadcrumbs:[]}:{title:"",description:"",breadcrumbs:[]}})(a);return(0,s.jsxs)("header",{className:"flex items-center justify-between px-8 py-5 border-b border-border bg-bg/80 backdrop-blur-md z-10 sticky top-0",children:[(0,s.jsx)("div",{className:"flex items-center gap-3 lg:hidden",children:r&&(0,s.jsx)("button",{onClick:t,className:"text-text-main hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"menu"})})}),(0,s.jsx)("div",{className:"hidden lg:flex flex-col",children:m.length>0?(0,s.jsx)("div",{className:"flex items-center gap-2",children:m.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[t>0&&(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-base",children:"chevron_right"}),e.href?(0,s.jsx)(i(),{href:e.href,className:"text-text-muted hover:text-primary transition-colors",children:e.label}):(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[e.image&&(0,s.jsx)("img",{src:e.image,alt:e.label,className:"size-7 object-contain rounded",onError:e=>{e.target.style.display="none"}}),(0,s.jsx)("h1",{className:"text-2xl font-semibold text-text-main tracking-tight",children:e.label})]})]},t))}):n?(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-2xl font-semibold text-text-main tracking-tight",children:n}),d&&(0,s.jsx)("p",{className:"text-sm text-text-muted",children:d})]}):null}),(0,s.jsx)("div",{className:"flex items-center gap-3 ml-auto",children:(0,s.jsx)(o.UW,{})})]})}[o,c]=d.then?(await d)():d,a()}catch(e){a(e)}})},1980:(e,t,r)=>{r.d(t,{default:()=>l});var a=r(5155),s=r(6319);function l(e){let{src:t,alt:r="Avatar",name:l,size:n="md",className:i}=e,o={xs:"size-6 text-xs",sm:"size-8 text-sm",md:"size-10 text-base",lg:"size-12 text-lg",xl:"size-16 text-xl"};return t?(0,a.jsx)("div",{className:(0,s.cn)("rounded-full bg-cover bg-center bg-no-repeat","ring-2 ring-white dark:ring-surface-dark shadow-sm",o[n],i),style:{backgroundImage:"url(".concat(t,")")},role:"img","aria-label":r}):(0,a.jsx)("div",{className:(0,s.cn)("rounded-full flex items-center justify-center font-semibold text-white","ring-2 ring-white dark:ring-surface-dark shadow-sm",o[n],(e=>{if(!e)return"bg-primary";let t=["bg-red-500","bg-orange-500","bg-amber-500","bg-yellow-500","bg-lime-500","bg-green-500","bg-emerald-500","bg-teal-500","bg-cyan-500","bg-sky-500","bg-blue-500","bg-indigo-500","bg-violet-500","bg-purple-500","bg-fuchsia-500","bg-pink-500","bg-rose-500"],r=e.charCodeAt(0)%t.length;return t[r]})(l),i),role:"img","aria-label":r,children:(e=>{if(!e)return"?";let t=e.split(" ");return t.length>=2?"".concat(t[0][0]).concat(t[1][0]).toUpperCase():e.substring(0,2).toUpperCase()})(l)})}},2411:(e,t,r)=>{r.d(t,{default:()=>l});var a=r(5155),s=r(6319);function l(e){let{label:t,type:r="text",placeholder:l,value:n,onChange:i,error:o,hint:c,icon:d,disabled:m=!1,required:x=!1,className:u,inputClassName:h,...b}=e;return(0,a.jsxs)("div",{className:(0,s.cn)("flex flex-col gap-1.5",u),children:[t&&(0,a.jsxs)("label",{className:"text-sm font-medium text-text-main",children:[t,x&&(0,a.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,a.jsxs)("div",{className:"relative",children:[d&&(0,a.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:d})}),(0,a.jsx)("input",{type:r,placeholder:l,value:n,onChange:i,disabled:m,className:(0,s.cn)("w-full py-2.5 px-4 text-sm text-text-main","bg-surface border rounded-lg","placeholder-text-muted/60","focus:ring-2 focus:ring-primary/20 focus:border-primary focus:outline-none","transition-all shadow-sm disabled:opacity-50 disabled:cursor-not-allowed","text-[16px] sm:text-sm",d&&"pl-10",o?"border-red-500 focus:border-red-500 focus:ring-red-500/20":"border-border",h),...b})]}),o&&(0,a.jsxs)("p",{className:"text-xs text-red-500 flex items-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),o]}),c&&!o&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:c})]})}},2513:(e,t,r)=>{r.d(t,{default:()=>i});var a=r(5155),s=r(6319);let l={primary:"bg-primary text-white hover:bg-primary-hover shadow-warm",secondary:"bg-surface border border-border text-text-main hover:bg-black/5 shadow-sm",outline:"border border-border text-text-main hover:bg-black/5",ghost:"text-text-muted hover:bg-black/5 hover:text-text-main",danger:"bg-red-500 text-white hover:bg-red-600 shadow-sm"},n={sm:"h-8 px-3 text-xs rounded-md",md:"h-10 px-5 text-sm rounded-lg",lg:"h-12 px-8 text-base rounded-xl"};function i(e){let{children:t,variant:r="primary",size:i="md",icon:o,iconRight:c,disabled:d=!1,loading:m=!1,fullWidth:x=!1,className:u,...h}=e;return(0,a.jsxs)("button",{className:(0,s.cn)("inline-flex items-center justify-center gap-2 font-medium transition-all duration-200 cursor-pointer","active:scale-[0.98] disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100",l[r],n[i],x&&"w-full",u),disabled:d||m,...h,children:[m?(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}):o?(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:o}):null,t,c&&!m&&(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:c})]})}},2694:(e,t,r)=>{r.d(t,{C:()=>s});var a=r(2115);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3,[t,r]=(0,a.useState)(null),s=(0,a.useRef)(null);return{copied:t,copy:(0,a.useCallback)(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";navigator.clipboard.writeText(t),r(a),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{r(null)},e)},[e])}}},2819:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{$n:()=>s.default,Ex:()=>d.default,LF:()=>p.default,Qv:()=>c.CardSkeleton,UW:()=>x.default,Zp:()=>i.default,aF:()=>o.default,l6:()=>n.default,lM:()=>m.default,pd:()=>l.default,rq:()=>g.default});var s=r(2513),l=r(2411),n=r(7897),i=r(1255),o=r(4202),c=r(3367);r(1980);var d=r(3876),m=r(9957),x=r(3222),u=r(9955),h=r(3439),b=r(1620),f=r(4486),p=r(1553),g=r(2923),j=r(1491),v=e([x,u,h,b,f,p,g,j]);[x,u,h,b,f,p,g,j]=v.then?(await v)():v,a()}catch(e){a(e)}})},2923:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{default:()=>d});var s=r(5155),l=r(2115),n=r(4202),i=r(9576),o=r(9608),c=e([i]);function d(e){let{isOpen:t,onClose:r,onSelect:a,selectedModel:c,activeProviders:d=[],title:m="Select Model",modelAliases:x={}}=e,[u,h]=(0,l.useState)(""),b=(0,l.useMemo)(()=>{let e={};return(d.length>0?d.map(e=>e.provider):Object.keys(o.Q2)).forEach(t=>{let r=i.Xg[t]||t,a=o.Q2[t]||{name:t,color:"#666"};if(a.passthroughModels){let s=Object.entries(x).filter(e=>{let[,t]=e;return t.startsWith("".concat(r,"/"))}).map(e=>{let[t,a]=e;return{id:a.replace("".concat(r,"/"),""),name:t,value:a}});s.length>0&&(e[t]={name:a.name,alias:r,color:a.color,models:s})}else{let s=(0,i.KC)(t);s.length>0&&(e[t]={name:a.name,alias:r,color:a.color,models:s.map(e=>({id:e.id,name:e.name,value:"".concat(r,"/").concat(e.id)}))})}}),e},[d,x]),f=(0,l.useMemo)(()=>{if(!u.trim())return b;let e=u.toLowerCase(),t={};return Object.entries(b).forEach(r=>{let[a,s]=r,l=s.models.filter(t=>t.name.toLowerCase().includes(e)||t.id.toLowerCase().includes(e)||s.name.toLowerCase().includes(e));l.length>0&&(t[a]={...s,models:l})}),t},[b,u]);return(0,s.jsxs)(n.default,{isOpen:t,onClose:()=>{r(),h("")},title:m,size:"md",className:"!p-4",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("span",{className:"material-symbols-outlined absolute left-2.5 top-1/2 -translate-y-1/2 text-text-muted text-[16px]",children:"search"}),(0,s.jsx)("input",{type:"text",placeholder:"Search...",value:u,onChange:e=>h(e.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-surface border border-border rounded text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"})]})}),(0,s.jsxs)("div",{className:"max-h-[300px] overflow-y-auto space-y-3",children:[Object.entries(f).map(e=>{let[t,l]=e;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,s.jsx)("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:l.color}}),(0,s.jsx)("span",{className:"text-xs font-medium text-primary",children:l.name}),(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",l.models.length,")"]})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:l.models.map(e=>{let t=c===e.value;return(0,s.jsx)("button",{onClick:()=>{a(e),r(),h("")},className:"\n px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer\n ".concat(t?"bg-primary text-white border-primary":"bg-surface border-border text-text-main hover:border-primary/50 hover:bg-primary/5","\n "),children:e.name},e.id)})})]},t)}),0===Object.keys(f).length&&(0,s.jsxs)("div",{className:"text-center py-4 text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl mb-1 block",children:"search_off"}),(0,s.jsx)("p",{className:"text-xs",children:"No models found"})]})]})]})}i=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},3222:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{default:()=>o});var s=r(5155),l=r(5157),n=r(6319),i=e([l]);function o(e){let{className:t,variant:r="default"}=e,{theme:a,toggleTheme:i,isDark:o}=(0,l.D)(),c={default:(0,n.cn)("flex items-center justify-center size-10 rounded-full","text-text-muted","hover:bg-black/5","hover:text-text-main","transition-colors"),card:(0,n.cn)("flex items-center justify-center size-11 rounded-full","bg-surface/60","hover:bg-surface","border border-border","backdrop-blur-md shadow-sm hover:shadow-md","text-text-muted-light hover:text-primary","hover:text-primary","transition-all group")};return(0,s.jsx)("button",{onClick:i,className:(0,n.cn)(c[r],t),"aria-label":"Switch to ".concat(o?"light":"dark"," mode"),title:"Switch to ".concat(o?"light":"dark"," mode"),children:(0,s.jsx)("span",{className:(0,n.cn)("material-symbols-outlined text-[22px]","card"===r&&"transition-transform duration-300 group-hover:rotate-12"),children:o?"light_mode":"dark_mode"})})}l=(i.then?(await i)():i)[0],a()}catch(e){a(e)}})},3367:(e,t,r)=>{r.d(t,{CardSkeleton:()=>o,PageLoading:()=>n,Skeleton:()=>i,Spinner:()=>l,default:()=>c});var a=r(5155),s=r(6319);function l(e){let{size:t="md",className:r}=e;return(0,a.jsx)("span",{className:(0,s.cn)("material-symbols-outlined animate-spin text-primary",{sm:"size-4",md:"size-6",lg:"size-8",xl:"size-12"}[t],r),children:"progress_activity"})}function n(e){let{message:t="Loading..."}=e;return(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-bg",children:[(0,a.jsx)(l,{size:"xl"}),(0,a.jsx)("p",{className:"mt-4 text-text-muted",children:t})]})}function i(e){let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,s.cn)("animate-pulse rounded-lg bg-border",t),...r})}function o(){return(0,a.jsxs)("div",{className:"p-6 rounded-xl border border-border bg-surface",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)(i,{className:"h-4 w-24"}),(0,a.jsx)(i,{className:"size-10 rounded-lg"})]}),(0,a.jsx)(i,{className:"h-8 w-16 mb-2"}),(0,a.jsx)(i,{className:"h-3 w-20"})]})}function c(e){let{type:t="spinner",...r}=e;switch(t){case"page":return(0,a.jsx)(n,{...r});case"skeleton":return(0,a.jsx)(i,{...r});case"card":return(0,a.jsx)(o,{...r});default:return(0,a.jsx)(l,{...r})}}},3439:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{default:()=>h});var s=r(5155),l=r(2115),n=r(2619),i=r.n(n),o=r(63),c=r(6319),d=r(4156),m=r(2513),x=r(4202),u=e([d]);d=(u.then?(await u)():u)[0];let b=[{href:"/dashboard/endpoint",label:"Endpoint",icon:"api"},{href:"/dashboard/providers",label:"Providers",icon:"dns"},{href:"/dashboard/combos",label:"Combos",icon:"layers"},{href:"/dashboard/cli-tools",label:"CLI Tools",icon:"terminal"}],f=[{href:"/dashboard/profile",label:"Settings",icon:"settings"}];function h(e){let{onClose:t}=e,r=(0,o.usePathname)(),[a,n]=(0,l.useState)(!1),[u,h]=(0,l.useState)(!1),[p,g]=(0,l.useState)(!1),j=e=>"/dashboard/endpoint"===e?"/dashboard"===r||r.startsWith("/dashboard/endpoint"):r.startsWith(e),v=async()=>{h(!0);try{await fetch("/api/shutdown",{method:"POST"})}catch(e){}h(!1),n(!1),g(!0)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("aside",{className:"flex w-72 flex-col border-r border-border bg-sidebar transition-colors duration-300",children:[(0,s.jsx)("div",{className:"p-8",children:(0,s.jsxs)(i(),{href:"/dashboard",className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-9 rounded bg-gradient-to-br from-[#f97815] to-[#c2590a]",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-white text-[20px]",children:"hub"})}),(0,s.jsx)("h1",{className:"text-lg font-semibold tracking-tight text-text-main",children:d.vQ.name})]})}),(0,s.jsxs)("nav",{className:"flex-1 px-4 py-2 space-y-1 overflow-y-auto custom-scrollbar",children:[b.map(e=>(0,s.jsxs)(i(),{href:e.href,onClick:t,className:(0,c.cn)("flex items-center gap-3 px-4 py-3 rounded-lg transition-all group",j(e.href)?"bg-surface text-primary shadow-sm border border-border":"text-text-muted hover:bg-surface/50 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[20px]",j(e.href)?"fill-1":"group-hover:text-primary transition-colors"),children:e.icon}),(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})]},e.href)),(0,s.jsxs)("div",{className:"pt-6 mt-2",children:[(0,s.jsx)("p",{className:"px-4 text-xs font-semibold text-text-muted/60 uppercase tracking-wider mb-3",children:"System"}),f.map(e=>(0,s.jsxs)(i(),{href:e.href,onClick:t,className:(0,c.cn)("flex items-center gap-3 px-4 py-3 rounded-lg transition-all group",j(e.href)?"bg-surface text-primary shadow-sm border border-border":"text-text-muted hover:bg-surface/50 hover:text-text-main"),children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px] group-hover:text-primary transition-colors",children:e.icon}),(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})]},e.href))]})]}),(0,s.jsxs)("div",{className:"p-4 border-t border-border",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3 p-3 rounded-xl bg-surface border border-border mb-3",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-8 rounded-lg bg-blue-500/10 text-blue-500 shrink-0 mt-0.5",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"info"})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)("span",{className:"text-xs font-medium text-text-main leading-relaxed",children:"Service is running in terminal. You can close this web page. Shutdown will stop the service."})})]}),(0,s.jsx)(m.default,{variant:"outline",fullWidth:!0,icon:"power_settings_new",onClick:()=>n(!0),className:"text-red-500 border-red-200 hover:bg-red-50 hover:border-red-300",children:"Shutdown"})]})]}),(0,s.jsx)(x.ConfirmModal,{isOpen:a,onClose:()=>n(!1),onConfirm:v,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:u}),p&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm",children:(0,s.jsxs)("div",{className:"text-center p-8",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-16 rounded-full bg-red-500/20 text-red-500 mx-auto mb-4",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"power_off"})}),(0,s.jsx)("h2",{className:"text-xl font-semibold text-white mb-2",children:"Server Disconnected"}),(0,s.jsx)("p",{className:"text-text-muted mb-6",children:"The proxy server has been stopped."}),(0,s.jsx)(m.default,{variant:"secondary",onClick:()=>window.location.reload(),children:"Reload Page"})]})})]})}a()}catch(e){a(e)}})},3461:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{default:()=>i});var s=r(5155),l=r(2819),n=e([l]);function i(e){let{children:t}=e;return(0,s.jsxs)("div",{className:"min-h-screen flex flex-col relative bg-bg transition-colors duration-500 overflow-x-hidden selection:bg-primary/20 selection:text-primary",children:[(0,s.jsx)("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-primary/5 dark:bg-primary/5 rounded-full blur-[100px] pointer-events-none z-0"}),(0,s.jsx)("div",{className:"fixed bottom-0 right-0 w-[600px] h-[600px] bg-orange-200/20 dark:bg-orange-900/10 rounded-full blur-[120px] pointer-events-none z-0 translate-y-1/3 translate-x-1/3"}),(0,s.jsx)("div",{className:"absolute top-6 right-6 z-20",children:(0,s.jsx)(l.UW,{variant:"card"})}),(0,s.jsx)("main",{className:"flex-1 flex flex-col items-center justify-center p-4 sm:p-6 z-10 w-full h-full",children:t})]})}l=(n.then?(await n)():n)[0],a()}catch(e){a(e)}})},3876:(e,t,r)=>{r.d(t,{default:()=>i});var a=r(5155),s=r(6319);let l={default:"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300",primary:"bg-primary/10 text-primary",success:"bg-green-50 dark:bg-green-900/20 text-green-700 dark:text-green-400 border border-green-100 dark:border-green-800/30",warning:"bg-yellow-50 dark:bg-yellow-900/20 text-yellow-700 dark:text-yellow-500 border border-yellow-100 dark:border-yellow-800/30",error:"bg-red-50 dark:bg-red-900/20 text-red-700 dark:text-red-400 border border-red-100 dark:border-red-800/30",info:"bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-400 border border-blue-100 dark:border-blue-800/30"},n={sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-1 text-xs",lg:"px-3 py-1.5 text-sm"};function i(e){let{children:t,variant:r="default",size:i="md",dot:o=!1,icon:c,className:d}=e;return(0,a.jsxs)("span",{className:(0,s.cn)("inline-flex items-center gap-1.5 rounded-full font-semibold",l[r],n[i],d),children:[o&&(0,a.jsx)("span",{className:(0,s.cn)("size-1.5 rounded-full","success"===r&&"bg-green-500","warning"===r&&"bg-yellow-500","error"===r&&"bg-red-500","info"===r&&"bg-blue-500","primary"===r&&"bg-primary","default"===r&&"bg-gray-500")}),c&&(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:c}),t]})}},4202:(e,t,r)=>{r.d(t,{ConfirmModal:()=>o,default:()=>i});var a=r(5155),s=r(2115),l=r(6319),n=r(2513);function i(e){let{isOpen:t,onClose:r,title:n,children:i,footer:o,size:c="md",closeOnOverlay:d=!0,showCloseButton:m=!0,className:x}=e;return((0,s.useEffect)(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t]),(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t&&r()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,r]),t)?(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm",onClick:d?r:void 0}),(0,a.jsxs)("div",{className:(0,l.cn)("relative w-full bg-surface","border border-border","rounded-2xl shadow-elevated","animate-in fade-in zoom-in-95 duration-200",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl",full:"max-w-4xl"}[c],x),children:[(n||m)&&(0,a.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-border",children:[n&&(0,a.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:n}),m&&(0,a.jsx)("button",{onClick:r,className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,a.jsx)("div",{className:"p-6 max-h-[calc(80vh-140px)] overflow-y-auto",children:i}),o&&(0,a.jsx)("div",{className:"flex items-center justify-end gap-3 p-6 border-t border-border",children:o})]})]}):null}function o(e){let{isOpen:t,onClose:r,onConfirm:s,title:l="Confirm",message:o,confirmText:c="Confirm",cancelText:d="Cancel",variant:m="danger",loading:x=!1}=e;return(0,a.jsx)(i,{isOpen:t,onClose:r,title:l,size:"sm",footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.default,{variant:"ghost",onClick:r,disabled:x,children:d}),(0,a.jsx)(n.default,{variant:m,onClick:s,loading:x,children:c})]}),children:(0,a.jsx)("p",{className:"text-text-muted",children:o})})}},4486:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{default:()=>c});var s=r(5155),l=r(2619),n=r.n(l),i=r(4156),o=e([i]);i=(o.then?(await o)():o)[0];let d={product:[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"Changelog",href:"#"}],resources:[{label:"Documentation",href:"#"},{label:"API Reference",href:"#"},{label:"Help Center",href:"#"}],company:[{label:"About",href:"#"},{label:"Blog",href:"#"},{label:"Contact",href:"#"}]};function c(){return(0,s.jsx)("footer",{className:"bg-bg border-t border-border pt-16 pb-12",children:(0,s.jsxs)("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-10 mb-12",children:[(0,s.jsxs)("div",{className:"col-span-2 lg:col-span-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,s.jsx)("div",{className:"size-6 text-primary",children:(0,s.jsx)("svg",{className:"w-full h-full",fill:"currentColor",viewBox:"0 0 48 48",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M12.0799 24L4 19.2479L9.95537 8.75216L18.04 13.4961L18.0446 4H29.9554L29.96 13.4961L38.0446 8.75216L44 19.2479L35.92 24L44 28.7521L38.0446 39.2479L29.96 34.5039L29.9554 44H18.0446L18.04 34.5039L9.95537 39.2479L4 28.7521L12.0799 24Z",fillRule:"evenodd"})})}),(0,s.jsx)("span",{className:"text-xl font-bold text-text-main",children:i.vQ.name})]}),(0,s.jsx)("p",{className:"text-text-muted mb-6 max-w-sm font-light",children:"The unified interface for modern AI infrastructure. Secure, observable, and scalable."}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"Twitter",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"})})}),(0,s.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"GitHub",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"})})})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Product"}),(0,s.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:d.product.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(n(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Resources"}),(0,s.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:d.resources.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(n(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Company"}),(0,s.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:d.company.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(n(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]})]}),(0,s.jsxs)("div",{className:"border-t border-border pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["\xa9 ",new Date().getFullYear()," ",i.vQ.name," Inc. All rights reserved."]}),(0,s.jsxs)("div",{className:"flex gap-6 text-sm text-text-muted",children:[(0,s.jsx)(n(),{href:"#",className:"hover:text-primary transition-colors",children:"Privacy Policy"}),(0,s.jsx)(n(),{href:"#",className:"hover:text-primary transition-colors",children:"Terms of Service"})]})]})]})})}a()}catch(e){a(e)}})},5157:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{D:()=>i});var s=r(2115),l=r(1070),n=e([l]);function i(){let{theme:e,setTheme:t,toggleTheme:r,initTheme:a}=(0,l.A)();return(0,s.useEffect)(()=>{a();let t=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{"system"===e&&a()};return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e,a]),{theme:e,setTheme:t,toggleTheme:r,isDark:"dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches}}l=(n.then?(await n)():n)[0],a()}catch(e){a(e)}})},6319:(e,t,r)=>{r.d(t,{cn:()=>a});function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ").replace(/\s+/g," ").trim()}},7897:(e,t,r)=>{r.d(t,{default:()=>l});var a=r(5155),s=r(6319);function l(e){let{label:t,options:r=[],value:l,onChange:n,placeholder:i="Select an option",error:o,hint:c,disabled:d=!1,required:m=!1,className:x,selectClassName:u,...h}=e;return(0,a.jsxs)("div",{className:(0,s.cn)("flex flex-col gap-1.5",x),children:[t&&(0,a.jsxs)("label",{className:"text-sm font-medium text-text-main",children:[t,m&&(0,a.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("select",{value:l,onChange:n,disabled:d,className:(0,s.cn)("w-full py-2.5 px-4 pr-10 text-sm text-text-main","bg-surface border rounded-lg appearance-none","focus:ring-2 focus:ring-primary/20 focus:border-primary focus:outline-none","transition-all shadow-sm disabled:opacity-50 disabled:cursor-not-allowed","text-[16px] sm:text-sm",o?"border-red-500 focus:border-red-500 focus:ring-red-500/20":"border-border",u),...h,children:[(0,a.jsx)("option",{value:"",disabled:!0,children:i}),r.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,a.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"expand_more"})})]}),o&&(0,a.jsxs)("p",{className:"text-xs text-red-500 flex items-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),o]}),c&&!o&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:c})]})}},9957:(e,t,r)=>{r.d(t,{default:()=>l});var a=r(5155),s=r(6319);function l(e){let{checked:t=!1,onChange:r,label:l,description:n,disabled:i=!1,size:o="md",className:c}=e,d={sm:{track:"w-8 h-4",thumb:"size-3",translate:"translate-x-4"},md:{track:"w-11 h-6",thumb:"size-5",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"size-6",translate:"translate-x-7"}};return(0,a.jsxs)("div",{className:(0,s.cn)("flex items-center gap-3",i&&"opacity-50 cursor-not-allowed",c),children:[(0,a.jsx)("button",{type:"button",role:"switch","aria-checked":t,disabled:i,onClick:()=>{!i&&r&&r(!t)},className:(0,s.cn)("relative inline-flex shrink-0 cursor-pointer rounded-full","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2 focus:ring-primary/20 focus:ring-offset-2","dark:focus:ring-offset-surface-dark",t?"bg-primary":"bg-border",d[o].track,i&&"cursor-not-allowed"),children:(0,a.jsx)("span",{className:(0,s.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out",t?d[o].translate:"translate-x-0.5",d[o].thumb,"mt-0.5")})}),(l||n)&&(0,a.jsxs)("div",{className:"flex flex-col",children:[l&&(0,a.jsx)("span",{className:"text-sm font-medium text-text-main",children:l}),n&&(0,a.jsx)("span",{className:"text-xs text-text-muted",children:n})]})]})}}}]);