n9router 0.4.46 → 0.4.48

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 (792) hide show
  1. package/README.md +1 -0
  2. package/app/.next/BUILD_ID +1 -1
  3. package/app/.next/app-path-routes-manifest.json +18 -14
  4. package/app/.next/build-manifest.json +2 -2
  5. package/app/.next/prerender-manifest.json +3 -3
  6. package/app/.next/routes-manifest.json +28 -0
  7. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  8. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  10. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  13. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  14. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  15. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  16. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  17. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  18. package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  19. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  20. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  21. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  22. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  23. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  24. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  25. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  26. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  27. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  28. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  29. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  30. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  31. package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  32. package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
  33. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  34. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  35. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  36. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  37. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  38. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  39. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  40. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  41. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  42. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  43. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  44. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  45. package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  46. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  47. package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  48. package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  49. package/app/.next/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  50. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  51. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  52. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +3 -3
  53. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  54. package/app/.next/server/app/_global-error/page.js +3 -3
  55. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  56. package/app/.next/server/app/_global-error.html +1 -1
  57. package/app/.next/server/app/_global-error.rsc +1 -1
  58. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  59. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  60. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  61. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  62. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  63. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  64. package/app/.next/server/app/_not-found/page.js +2 -2
  65. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  66. package/app/.next/server/app/_not-found.html +1 -1
  67. package/app/.next/server/app/_not-found.rsc +4 -4
  68. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  69. package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  70. package/app/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
  71. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  72. package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  73. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  74. package/app/.next/server/app/api/antigravity-app/route.js +1 -1
  75. package/app/.next/server/app/api/antigravity-app-v2/route.js +1 -1
  76. package/app/.next/server/app/api/antigravity-ide/route.js +1 -1
  77. package/app/.next/server/app/api/antigravity-targets/route.js +1 -1
  78. package/app/.next/server/app/api/antigravity-tools/import/route.js +1 -1
  79. package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js +1 -1
  80. package/app/.next/server/app/api/auth/login/route.js +1 -1
  81. package/app/.next/server/app/api/auth/logout/route.js +1 -1
  82. package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -1
  83. package/app/.next/server/app/api/auth/oidc/start/route.js +1 -1
  84. package/app/.next/server/app/api/auth/oidc/test/route.js +1 -1
  85. package/app/.next/server/app/api/auth/reset-password/route.js +1 -1
  86. package/app/.next/server/app/api/auth/status/route.js +1 -1
  87. package/app/.next/server/app/api/cli-tools/all-statuses/route.js +4 -4
  88. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  89. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  90. package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
  91. package/app/.next/server/app/api/cli-tools/cline-settings/route.js +1 -1
  92. package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
  93. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  94. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  95. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  96. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  97. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route.js +3 -0
  98. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route.js.nft.json +1 -0
  99. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route_client-reference-manifest.js +1 -0
  100. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route.js +1 -0
  101. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route.js.nft.json +1 -0
  102. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route_client-reference-manifest.js +1 -0
  103. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/route.js +1 -0
  104. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/route.js.nft.json +1 -0
  105. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/route_client-reference-manifest.js +1 -0
  106. package/app/.next/server/app/api/cli-tools/cursor-byok/route.js +1 -0
  107. package/app/.next/server/app/api/cli-tools/cursor-byok/route.js.nft.json +1 -0
  108. package/app/.next/server/app/api/cli-tools/cursor-byok/route_client-reference-manifest.js +1 -0
  109. package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  110. package/app/.next/server/app/api/cli-tools/droid-settings/route.js +1 -1
  111. package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +3 -3
  112. package/app/.next/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  113. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  114. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  115. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  116. package/app/.next/server/app/api/combos/[id]/route.js +1 -1
  117. package/app/.next/server/app/api/combos/route.js +1 -1
  118. package/app/.next/server/app/api/donate/route.js +1 -1
  119. package/app/.next/server/app/api/headroom/start/route.js +1 -1
  120. package/app/.next/server/app/api/headroom/status/route.js +1 -1
  121. package/app/.next/server/app/api/headroom/stop/route.js +1 -1
  122. package/app/.next/server/app/api/health/route.js +1 -1
  123. package/app/.next/server/app/api/init/route.js +1 -1
  124. package/app/.next/server/app/api/internal/account-health/route.js +1 -1
  125. package/app/.next/server/app/api/internal/request-detail/route.js +1 -1
  126. package/app/.next/server/app/api/internal/usage/route.js +1 -1
  127. package/app/.next/server/app/api/keys/[id]/reset-usage/route.js +1 -1
  128. package/app/.next/server/app/api/keys/[id]/route.js +1 -1
  129. package/app/.next/server/app/api/keys/[id]/usage/route.js +1 -1
  130. package/app/.next/server/app/api/keys/route.js +1 -1
  131. package/app/.next/server/app/api/locale/route.js +1 -1
  132. package/app/.next/server/app/api/mcp/[plugin]/message/route.js +2 -2
  133. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  134. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  135. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  136. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  137. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  138. package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
  139. package/app/.next/server/app/api/models/alias/route.js +1 -1
  140. package/app/.next/server/app/api/models/availability/route.js +1 -1
  141. package/app/.next/server/app/api/models/custom/route.js +1 -1
  142. package/app/.next/server/app/api/models/disabled/route.js +1 -1
  143. package/app/.next/server/app/api/models/route.js +1 -1
  144. package/app/.next/server/app/api/models/test/route.js +1 -1
  145. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  146. package/app/.next/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  147. package/app/.next/server/app/api/oauth/codex/import-token/route.js +1 -1
  148. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  149. package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  150. package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
  151. package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
  152. package/app/.next/server/app/api/oauth/kiro/api-key/route.js +1 -1
  153. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  154. package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
  155. package/app/.next/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  156. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  157. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  158. package/app/.next/server/app/api/pricing/route.js +1 -1
  159. package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
  160. package/app/.next/server/app/api/provider-nodes/route.js +1 -1
  161. package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
  162. package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
  163. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  164. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  165. package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
  166. package/app/.next/server/app/api/providers/client/route.js +1 -1
  167. package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
  168. package/app/.next/server/app/api/providers/route.js +1 -1
  169. package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
  170. package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
  171. package/app/.next/server/app/api/providers/validate/route.js +1 -1
  172. package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
  173. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  174. package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  175. package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  176. package/app/.next/server/app/api/proxy-pools/route.js +1 -1
  177. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  178. package/app/.next/server/app/api/settings/database/route.js +1 -1
  179. package/app/.next/server/app/api/settings/database/selective/route.js +1 -1
  180. package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
  181. package/app/.next/server/app/api/settings/require-login/route.js +1 -1
  182. package/app/.next/server/app/api/settings/route.js +1 -1
  183. package/app/.next/server/app/api/shutdown/route.js +1 -1
  184. package/app/.next/server/app/api/tags/route.js +1 -1
  185. package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
  186. package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
  187. package/app/.next/server/app/api/translator/load/route.js +1 -1
  188. package/app/.next/server/app/api/translator/save/route.js +1 -1
  189. package/app/.next/server/app/api/translator/send/route.js +1 -1
  190. package/app/.next/server/app/api/translator/translate/route.js +1 -1
  191. package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
  192. package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
  193. package/app/.next/server/app/api/tunnel/status/route.js +1 -1
  194. package/app/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
  195. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  196. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  197. package/app/.next/server/app/api/tunnel/tailscale-install/route.js +2 -2
  198. package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  199. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  200. package/app/.next/server/app/api/usage/chart/route.js +1 -1
  201. package/app/.next/server/app/api/usage/history/route.js +1 -1
  202. package/app/.next/server/app/api/usage/logs/route.js +1 -1
  203. package/app/.next/server/app/api/usage/providers/route.js +1 -1
  204. package/app/.next/server/app/api/usage/report/route.js +1 -1
  205. package/app/.next/server/app/api/usage/request-details/route.js +1 -1
  206. package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
  207. package/app/.next/server/app/api/usage/stats/route.js +1 -1
  208. package/app/.next/server/app/api/usage/stream/route.js +2 -2
  209. package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
  210. package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
  211. package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
  212. package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
  213. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  214. package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
  215. package/app/.next/server/app/api/v1/images/generations/route.js +1 -1
  216. package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
  217. package/app/.next/server/app/api/v1/messages/route.js +1 -1
  218. package/app/.next/server/app/api/v1/models/[kind]/route.js +1 -1
  219. package/app/.next/server/app/api/v1/models/info/route.js +1 -1
  220. package/app/.next/server/app/api/v1/models/route.js +1 -1
  221. package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
  222. package/app/.next/server/app/api/v1/responses/route.js +1 -1
  223. package/app/.next/server/app/api/v1/route.js +1 -1
  224. package/app/.next/server/app/api/v1/search/route.js +1 -1
  225. package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
  226. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  227. package/app/.next/server/app/api/v1beta/models/route.js +1 -1
  228. package/app/.next/server/app/api/version/route.js +1 -1
  229. package/app/.next/server/app/api/version/shutdown/route.js +1 -1
  230. package/app/.next/server/app/api/version/update/route.js +1 -1
  231. package/app/.next/server/app/callback/page.js +2 -2
  232. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  233. package/app/.next/server/app/callback.html +1 -1
  234. package/app/.next/server/app/callback.rsc +4 -4
  235. package/app/.next/server/app/callback.segments/_full.segment.rsc +4 -4
  236. package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
  237. package/app/.next/server/app/callback.segments/_index.segment.rsc +4 -4
  238. package/app/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
  239. package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  240. package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
  241. package/app/.next/server/app/dashboard/basic-chat.html +1 -1
  242. package/app/.next/server/app/dashboard/basic-chat.rsc +6 -6
  243. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  244. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  245. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  246. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  247. package/app/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  248. package/app/.next/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  249. package/app/.next/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  250. package/app/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  251. package/app/.next/server/app/dashboard/cli-tools.html +1 -1
  252. package/app/.next/server/app/dashboard/cli-tools.rsc +6 -6
  253. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  254. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  255. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  256. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  257. package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  258. package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  259. package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  260. package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  261. package/app/.next/server/app/dashboard/combos.html +1 -1
  262. package/app/.next/server/app/dashboard/combos.rsc +6 -6
  263. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  264. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  265. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  266. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  267. package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  268. package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  269. package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  270. package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  271. package/app/.next/server/app/dashboard/endpoint.html +1 -1
  272. package/app/.next/server/app/dashboard/endpoint.rsc +6 -6
  273. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  274. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  275. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  276. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  277. package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  278. package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  279. package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  280. package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  281. package/app/.next/server/app/dashboard/media-providers/web.html +1 -1
  282. package/app/.next/server/app/dashboard/media-providers/web.rsc +6 -6
  283. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  284. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  285. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  286. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  287. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  288. package/app/.next/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  289. package/app/.next/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  290. package/app/.next/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  291. package/app/.next/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  292. package/app/.next/server/app/dashboard/mitm.html +1 -1
  293. package/app/.next/server/app/dashboard/mitm.rsc +6 -6
  294. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  295. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  296. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  297. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  298. package/app/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  299. package/app/.next/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  300. package/app/.next/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  301. package/app/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  302. package/app/.next/server/app/dashboard/profile.html +1 -1
  303. package/app/.next/server/app/dashboard/profile.rsc +6 -6
  304. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  305. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  306. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  307. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  308. package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  309. package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  310. package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  311. package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  312. package/app/.next/server/app/dashboard/providers/new.html +1 -1
  313. package/app/.next/server/app/dashboard/providers/new.rsc +6 -6
  314. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  315. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  316. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  317. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  318. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  319. package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  320. package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  321. package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  322. package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  323. package/app/.next/server/app/dashboard/providers.html +1 -1
  324. package/app/.next/server/app/dashboard/providers.rsc +6 -6
  325. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  326. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  327. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  328. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  329. package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  330. package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  331. package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  332. package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  333. package/app/.next/server/app/dashboard/proxy-pools.html +1 -1
  334. package/app/.next/server/app/dashboard/proxy-pools.rsc +6 -6
  335. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  336. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  337. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  338. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  339. package/app/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  340. package/app/.next/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  341. package/app/.next/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  342. package/app/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  343. package/app/.next/server/app/dashboard/quota.html +2 -2
  344. package/app/.next/server/app/dashboard/quota.rsc +7 -7
  345. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  346. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  347. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  348. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  349. package/app/.next/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  350. package/app/.next/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  351. package/app/.next/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  352. package/app/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  353. package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
  354. package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  355. package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
  356. package/app/.next/server/app/dashboard/settings/pricing.rsc +4 -4
  357. package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  358. package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  359. package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  360. package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  361. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  362. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  363. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  364. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  365. package/app/.next/server/app/dashboard/skills.html +1 -1
  366. package/app/.next/server/app/dashboard/skills.rsc +6 -6
  367. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  368. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  369. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  370. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  371. package/app/.next/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  372. package/app/.next/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  373. package/app/.next/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  374. package/app/.next/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  375. package/app/.next/server/app/dashboard/token-saver.html +1 -1
  376. package/app/.next/server/app/dashboard/token-saver.rsc +6 -6
  377. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  378. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  379. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  380. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  381. package/app/.next/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  382. package/app/.next/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  383. package/app/.next/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  384. package/app/.next/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  385. package/app/.next/server/app/dashboard/translator.html +1 -1
  386. package/app/.next/server/app/dashboard/translator.rsc +6 -6
  387. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  388. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  389. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  390. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  391. package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  392. package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  393. package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  394. package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  395. package/app/.next/server/app/dashboard/usage.html +1 -1
  396. package/app/.next/server/app/dashboard/usage.rsc +6 -6
  397. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  398. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  399. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  400. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  401. package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  402. package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  403. package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  404. package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  405. package/app/.next/server/app/dashboard.html +1 -1
  406. package/app/.next/server/app/dashboard.rsc +6 -6
  407. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  408. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  409. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  410. package/app/.next/server/app/dashboard.segments/_full.segment.rsc +6 -6
  411. package/app/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
  412. package/app/.next/server/app/dashboard.segments/_index.segment.rsc +4 -4
  413. package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  414. package/app/.next/server/app/favicon.ico/route.js +1 -1
  415. package/app/.next/server/app/index.html +1 -1
  416. package/app/.next/server/app/index.rsc +4 -4
  417. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  418. package/app/.next/server/app/index.segments/_full.segment.rsc +4 -4
  419. package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
  420. package/app/.next/server/app/index.segments/_index.segment.rsc +4 -4
  421. package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  422. package/app/.next/server/app/landing/page.js +2 -2
  423. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  424. package/app/.next/server/app/landing.html +1 -1
  425. package/app/.next/server/app/landing.rsc +4 -4
  426. package/app/.next/server/app/landing.segments/_full.segment.rsc +4 -4
  427. package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
  428. package/app/.next/server/app/landing.segments/_index.segment.rsc +4 -4
  429. package/app/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
  430. package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  431. package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
  432. package/app/.next/server/app/login/page.js +2 -2
  433. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  434. package/app/.next/server/app/login.html +1 -1
  435. package/app/.next/server/app/login.rsc +5 -5
  436. package/app/.next/server/app/login.segments/_full.segment.rsc +5 -5
  437. package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
  438. package/app/.next/server/app/login.segments/_index.segment.rsc +4 -4
  439. package/app/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  440. package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  441. package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
  442. package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
  443. package/app/.next/server/app/page.js +2 -2
  444. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  445. package/app/.next/server/app-paths-manifest.json +18 -14
  446. package/app/.next/server/chunks/1350.js +1 -1
  447. package/app/.next/server/chunks/1719.js +1 -1
  448. package/app/.next/server/chunks/1975.js +123 -0
  449. package/app/.next/server/chunks/318.js +1 -1
  450. package/app/.next/server/chunks/412.js +2 -2
  451. package/app/.next/server/chunks/4250.js +2 -2
  452. package/app/.next/server/chunks/5612.js +1 -1
  453. package/app/.next/server/chunks/6182.js +3 -3
  454. package/app/.next/server/chunks/6328.js +1 -1
  455. package/app/.next/server/chunks/{5995.js → 6675.js} +24 -24
  456. package/app/.next/server/chunks/7994.js +2 -2
  457. package/app/.next/server/chunks/8056.js +1 -1
  458. package/app/.next/server/chunks/8238.js +1 -1
  459. package/app/.next/server/functions-config-manifest.json +4 -0
  460. package/app/.next/server/middleware-build-manifest.js +1 -1
  461. package/app/.next/server/pages/404.html +1 -1
  462. package/app/.next/server/pages/500.html +1 -1
  463. package/app/.next/server/server-reference-manifest.js +1 -1
  464. package/app/.next/server/server-reference-manifest.json +1 -1
  465. package/app/.next/static/chunks/{1321-04bdf1999f780065.js → 1321-baf89ff4bc144ad2.js} +1 -1
  466. package/app/.next/static/chunks/2589-0eea17986c57591f.js +3 -0
  467. package/app/.next/static/chunks/5396-f06734926fa7580e.js +53 -0
  468. package/app/.next/static/chunks/{5497-5cecb2d0cc54a0f8.js → 5497-796e816398b1a4fd.js} +1 -1
  469. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-65047558c79ccedc.js +1 -0
  470. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-925d6a9314cf0c45.js → page-e25a43ea2555b9a9.js} +1 -1
  471. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/{page-7c06afe89ff9c503.js → page-74b4e977dc32c185.js} +1 -1
  472. package/app/.next/static/chunks/app/_global-error/page-842d863152ec3262.js +1 -0
  473. package/app/.next/static/chunks/app/api/antigravity-app/route-842d863152ec3262.js +1 -0
  474. package/app/.next/static/chunks/app/api/antigravity-app-v2/route-842d863152ec3262.js +1 -0
  475. package/app/.next/static/chunks/app/api/antigravity-ide/route-842d863152ec3262.js +1 -0
  476. package/app/.next/static/chunks/app/api/antigravity-targets/route-842d863152ec3262.js +1 -0
  477. package/app/.next/static/chunks/app/api/antigravity-tools/import/route-842d863152ec3262.js +1 -0
  478. package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-842d863152ec3262.js +1 -0
  479. package/app/.next/static/chunks/app/api/auth/login/route-842d863152ec3262.js +1 -0
  480. package/app/.next/static/chunks/app/api/auth/logout/route-842d863152ec3262.js +1 -0
  481. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-842d863152ec3262.js +1 -0
  482. package/app/.next/static/chunks/app/api/auth/oidc/start/route-842d863152ec3262.js +1 -0
  483. package/app/.next/static/chunks/app/api/auth/oidc/test/route-842d863152ec3262.js +1 -0
  484. package/app/.next/static/chunks/app/api/auth/reset-password/route-842d863152ec3262.js +1 -0
  485. package/app/.next/static/chunks/app/api/auth/status/route-842d863152ec3262.js +1 -0
  486. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-842d863152ec3262.js +1 -0
  487. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-842d863152ec3262.js +1 -0
  488. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-842d863152ec3262.js +1 -0
  489. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-842d863152ec3262.js +1 -0
  490. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-842d863152ec3262.js +1 -0
  491. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-842d863152ec3262.js +1 -0
  492. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-842d863152ec3262.js +1 -0
  493. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-842d863152ec3262.js +1 -0
  494. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-842d863152ec3262.js +1 -0
  495. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-842d863152ec3262.js +1 -0
  496. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route-842d863152ec3262.js +1 -0
  497. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route-842d863152ec3262.js +1 -0
  498. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/route-842d863152ec3262.js +1 -0
  499. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/route-842d863152ec3262.js +1 -0
  500. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-842d863152ec3262.js +1 -0
  501. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-842d863152ec3262.js +1 -0
  502. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-842d863152ec3262.js +1 -0
  503. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-842d863152ec3262.js +1 -0
  504. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-842d863152ec3262.js +1 -0
  505. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-842d863152ec3262.js +1 -0
  506. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-842d863152ec3262.js +1 -0
  507. package/app/.next/static/chunks/app/api/combos/[id]/route-842d863152ec3262.js +1 -0
  508. package/app/.next/static/chunks/app/api/combos/route-842d863152ec3262.js +1 -0
  509. package/app/.next/static/chunks/app/api/donate/route-842d863152ec3262.js +1 -0
  510. package/app/.next/static/chunks/app/api/headroom/start/route-842d863152ec3262.js +1 -0
  511. package/app/.next/static/chunks/app/api/headroom/status/route-842d863152ec3262.js +1 -0
  512. package/app/.next/static/chunks/app/api/headroom/stop/route-842d863152ec3262.js +1 -0
  513. package/app/.next/static/chunks/app/api/health/route-842d863152ec3262.js +1 -0
  514. package/app/.next/static/chunks/app/api/init/route-842d863152ec3262.js +1 -0
  515. package/app/.next/static/chunks/app/api/internal/account-health/route-842d863152ec3262.js +1 -0
  516. package/app/.next/static/chunks/app/api/internal/request-detail/route-842d863152ec3262.js +1 -0
  517. package/app/.next/static/chunks/app/api/internal/usage/route-842d863152ec3262.js +1 -0
  518. package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-842d863152ec3262.js +1 -0
  519. package/app/.next/static/chunks/app/api/keys/[id]/route-842d863152ec3262.js +1 -0
  520. package/app/.next/static/chunks/app/api/keys/[id]/usage/route-842d863152ec3262.js +1 -0
  521. package/app/.next/static/chunks/app/api/keys/route-842d863152ec3262.js +1 -0
  522. package/app/.next/static/chunks/app/api/locale/route-842d863152ec3262.js +1 -0
  523. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-842d863152ec3262.js +1 -0
  524. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-842d863152ec3262.js +1 -0
  525. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-842d863152ec3262.js +1 -0
  526. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-842d863152ec3262.js +1 -0
  527. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-842d863152ec3262.js +1 -0
  528. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-842d863152ec3262.js +1 -0
  529. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-842d863152ec3262.js +1 -0
  530. package/app/.next/static/chunks/app/api/models/alias/route-842d863152ec3262.js +1 -0
  531. package/app/.next/static/chunks/app/api/models/availability/route-842d863152ec3262.js +1 -0
  532. package/app/.next/static/chunks/app/api/models/custom/route-842d863152ec3262.js +1 -0
  533. package/app/.next/static/chunks/app/api/models/disabled/route-842d863152ec3262.js +1 -0
  534. package/app/.next/static/chunks/app/api/models/route-842d863152ec3262.js +1 -0
  535. package/app/.next/static/chunks/app/api/models/test/route-842d863152ec3262.js +1 -0
  536. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-842d863152ec3262.js +1 -0
  537. package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-842d863152ec3262.js +1 -0
  538. package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-842d863152ec3262.js +1 -0
  539. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-842d863152ec3262.js +1 -0
  540. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-842d863152ec3262.js +1 -0
  541. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-842d863152ec3262.js +1 -0
  542. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-842d863152ec3262.js +1 -0
  543. package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-842d863152ec3262.js +1 -0
  544. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-842d863152ec3262.js +1 -0
  545. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-842d863152ec3262.js +1 -0
  546. package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-842d863152ec3262.js +1 -0
  547. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-842d863152ec3262.js +1 -0
  548. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-842d863152ec3262.js +1 -0
  549. package/app/.next/static/chunks/app/api/pricing/route-842d863152ec3262.js +1 -0
  550. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-842d863152ec3262.js +1 -0
  551. package/app/.next/static/chunks/app/api/provider-nodes/route-842d863152ec3262.js +1 -0
  552. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-842d863152ec3262.js +1 -0
  553. package/app/.next/static/chunks/app/api/providers/[id]/models/route-842d863152ec3262.js +1 -0
  554. package/app/.next/static/chunks/app/api/providers/[id]/route-842d863152ec3262.js +1 -0
  555. package/app/.next/static/chunks/app/api/providers/[id]/test/route-842d863152ec3262.js +1 -0
  556. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-842d863152ec3262.js +1 -0
  557. package/app/.next/static/chunks/app/api/providers/client/route-842d863152ec3262.js +1 -0
  558. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-842d863152ec3262.js +1 -0
  559. package/app/.next/static/chunks/app/api/providers/route-842d863152ec3262.js +1 -0
  560. package/app/.next/static/chunks/app/api/providers/suggested-models/route-842d863152ec3262.js +1 -0
  561. package/app/.next/static/chunks/app/api/providers/test-batch/route-842d863152ec3262.js +1 -0
  562. package/app/.next/static/chunks/app/api/providers/validate/route-842d863152ec3262.js +1 -0
  563. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-842d863152ec3262.js +1 -0
  564. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-842d863152ec3262.js +1 -0
  565. package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-842d863152ec3262.js +1 -0
  566. package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-842d863152ec3262.js +1 -0
  567. package/app/.next/static/chunks/app/api/proxy-pools/route-842d863152ec3262.js +1 -0
  568. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-842d863152ec3262.js +1 -0
  569. package/app/.next/static/chunks/app/api/settings/database/route-842d863152ec3262.js +1 -0
  570. package/app/.next/static/chunks/app/api/settings/database/selective/route-842d863152ec3262.js +1 -0
  571. package/app/.next/static/chunks/app/api/settings/proxy-test/route-842d863152ec3262.js +1 -0
  572. package/app/.next/static/chunks/app/api/settings/require-login/route-842d863152ec3262.js +1 -0
  573. package/app/.next/static/chunks/app/api/settings/route-842d863152ec3262.js +1 -0
  574. package/app/.next/static/chunks/app/api/shutdown/route-842d863152ec3262.js +1 -0
  575. package/app/.next/static/chunks/app/api/tags/route-842d863152ec3262.js +1 -0
  576. package/app/.next/static/chunks/app/api/translator/console-logs/route-842d863152ec3262.js +1 -0
  577. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-842d863152ec3262.js +1 -0
  578. package/app/.next/static/chunks/app/api/translator/load/route-842d863152ec3262.js +1 -0
  579. package/app/.next/static/chunks/app/api/translator/save/route-842d863152ec3262.js +1 -0
  580. package/app/.next/static/chunks/app/api/translator/send/route-842d863152ec3262.js +1 -0
  581. package/app/.next/static/chunks/app/api/translator/translate/route-842d863152ec3262.js +1 -0
  582. package/app/.next/static/chunks/app/api/tunnel/disable/route-842d863152ec3262.js +1 -0
  583. package/app/.next/static/chunks/app/api/tunnel/enable/route-842d863152ec3262.js +1 -0
  584. package/app/.next/static/chunks/app/api/tunnel/status/route-842d863152ec3262.js +1 -0
  585. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-842d863152ec3262.js +1 -0
  586. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-842d863152ec3262.js +1 -0
  587. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-842d863152ec3262.js +1 -0
  588. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-842d863152ec3262.js +1 -0
  589. package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-842d863152ec3262.js +1 -0
  590. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-842d863152ec3262.js +1 -0
  591. package/app/.next/static/chunks/app/api/usage/chart/route-842d863152ec3262.js +1 -0
  592. package/app/.next/static/chunks/app/api/usage/history/route-842d863152ec3262.js +1 -0
  593. package/app/.next/static/chunks/app/api/usage/logs/route-842d863152ec3262.js +1 -0
  594. package/app/.next/static/chunks/app/api/usage/providers/route-842d863152ec3262.js +1 -0
  595. package/app/.next/static/chunks/app/api/usage/report/route-842d863152ec3262.js +1 -0
  596. package/app/.next/static/chunks/app/api/usage/request-details/route-842d863152ec3262.js +1 -0
  597. package/app/.next/static/chunks/app/api/usage/request-logs/route-842d863152ec3262.js +1 -0
  598. package/app/.next/static/chunks/app/api/usage/stats/route-842d863152ec3262.js +1 -0
  599. package/app/.next/static/chunks/app/api/usage/stream/route-842d863152ec3262.js +1 -0
  600. package/app/.next/static/chunks/app/api/v1/api/chat/route-842d863152ec3262.js +1 -0
  601. package/app/.next/static/chunks/app/api/v1/audio/speech/route-842d863152ec3262.js +1 -0
  602. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-842d863152ec3262.js +1 -0
  603. package/app/.next/static/chunks/app/api/v1/audio/voices/route-842d863152ec3262.js +1 -0
  604. package/app/.next/static/chunks/app/api/v1/chat/completions/route-842d863152ec3262.js +1 -0
  605. package/app/.next/static/chunks/app/api/v1/embeddings/route-842d863152ec3262.js +1 -0
  606. package/app/.next/static/chunks/app/api/v1/images/generations/route-842d863152ec3262.js +1 -0
  607. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-842d863152ec3262.js +1 -0
  608. package/app/.next/static/chunks/app/api/v1/messages/route-842d863152ec3262.js +1 -0
  609. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-842d863152ec3262.js +1 -0
  610. package/app/.next/static/chunks/app/api/v1/models/info/route-842d863152ec3262.js +1 -0
  611. package/app/.next/static/chunks/app/api/v1/models/route-842d863152ec3262.js +1 -0
  612. package/app/.next/static/chunks/app/api/v1/responses/compact/route-842d863152ec3262.js +1 -0
  613. package/app/.next/static/chunks/app/api/v1/responses/route-842d863152ec3262.js +1 -0
  614. package/app/.next/static/chunks/app/api/v1/route-842d863152ec3262.js +1 -0
  615. package/app/.next/static/chunks/app/api/v1/search/route-842d863152ec3262.js +1 -0
  616. package/app/.next/static/chunks/app/api/v1/web/fetch/route-842d863152ec3262.js +1 -0
  617. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-842d863152ec3262.js +1 -0
  618. package/app/.next/static/chunks/app/api/v1beta/models/route-842d863152ec3262.js +1 -0
  619. package/app/.next/static/chunks/app/api/version/route-842d863152ec3262.js +1 -0
  620. package/app/.next/static/chunks/app/api/version/shutdown/route-842d863152ec3262.js +1 -0
  621. package/app/.next/static/chunks/app/api/version/update/route-842d863152ec3262.js +1 -0
  622. package/app/.next/static/chunks/app/manifest.webmanifest/route-842d863152ec3262.js +1 -0
  623. package/app/.next/static/chunks/app/page-842d863152ec3262.js +1 -0
  624. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-842d863152ec3262.js +1 -0
  625. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-842d863152ec3262.js +1 -0
  626. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-842d863152ec3262.js +1 -0
  627. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-842d863152ec3262.js +1 -0
  628. package/app/.next/static/css/4a44e33430f22e0e.css +1 -0
  629. package/app/.next/static/oVva390rApgh0eU9kSrPC/_buildManifest.js +1 -0
  630. package/app/package.json +1 -1
  631. package/app/public/i18n/literals/zh-CN.json +4 -0
  632. package/app/src/mitm/manager.js +1 -24
  633. package/app/src/shared/constants/cliTools.js +12 -0
  634. package/package.json +1 -1
  635. package/app/.next/static/27Vk-YuF5IVK9FBSw9u-7/_buildManifest.js +0 -1
  636. package/app/.next/static/chunks/2589-89684df31938c4c7.js +0 -3
  637. package/app/.next/static/chunks/4406-7c91480ba4750afb.js +0 -53
  638. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-15778114f19494f8.js +0 -1
  639. package/app/.next/static/chunks/app/_global-error/page-270635328efa0901.js +0 -1
  640. package/app/.next/static/chunks/app/api/antigravity-app/route-270635328efa0901.js +0 -1
  641. package/app/.next/static/chunks/app/api/antigravity-app-v2/route-270635328efa0901.js +0 -1
  642. package/app/.next/static/chunks/app/api/antigravity-ide/route-270635328efa0901.js +0 -1
  643. package/app/.next/static/chunks/app/api/antigravity-targets/route-270635328efa0901.js +0 -1
  644. package/app/.next/static/chunks/app/api/antigravity-tools/import/route-270635328efa0901.js +0 -1
  645. package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-270635328efa0901.js +0 -1
  646. package/app/.next/static/chunks/app/api/auth/login/route-270635328efa0901.js +0 -1
  647. package/app/.next/static/chunks/app/api/auth/logout/route-270635328efa0901.js +0 -1
  648. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-270635328efa0901.js +0 -1
  649. package/app/.next/static/chunks/app/api/auth/oidc/start/route-270635328efa0901.js +0 -1
  650. package/app/.next/static/chunks/app/api/auth/oidc/test/route-270635328efa0901.js +0 -1
  651. package/app/.next/static/chunks/app/api/auth/reset-password/route-270635328efa0901.js +0 -1
  652. package/app/.next/static/chunks/app/api/auth/status/route-270635328efa0901.js +0 -1
  653. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-270635328efa0901.js +0 -1
  654. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-270635328efa0901.js +0 -1
  655. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-270635328efa0901.js +0 -1
  656. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-270635328efa0901.js +0 -1
  657. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-270635328efa0901.js +0 -1
  658. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-270635328efa0901.js +0 -1
  659. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-270635328efa0901.js +0 -1
  660. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-270635328efa0901.js +0 -1
  661. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-270635328efa0901.js +0 -1
  662. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-270635328efa0901.js +0 -1
  663. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-270635328efa0901.js +0 -1
  664. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-270635328efa0901.js +0 -1
  665. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-270635328efa0901.js +0 -1
  666. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-270635328efa0901.js +0 -1
  667. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-270635328efa0901.js +0 -1
  668. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-270635328efa0901.js +0 -1
  669. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-270635328efa0901.js +0 -1
  670. package/app/.next/static/chunks/app/api/combos/[id]/route-270635328efa0901.js +0 -1
  671. package/app/.next/static/chunks/app/api/combos/route-270635328efa0901.js +0 -1
  672. package/app/.next/static/chunks/app/api/donate/route-270635328efa0901.js +0 -1
  673. package/app/.next/static/chunks/app/api/headroom/start/route-270635328efa0901.js +0 -1
  674. package/app/.next/static/chunks/app/api/headroom/status/route-270635328efa0901.js +0 -1
  675. package/app/.next/static/chunks/app/api/headroom/stop/route-270635328efa0901.js +0 -1
  676. package/app/.next/static/chunks/app/api/health/route-270635328efa0901.js +0 -1
  677. package/app/.next/static/chunks/app/api/init/route-270635328efa0901.js +0 -1
  678. package/app/.next/static/chunks/app/api/internal/account-health/route-270635328efa0901.js +0 -1
  679. package/app/.next/static/chunks/app/api/internal/request-detail/route-270635328efa0901.js +0 -1
  680. package/app/.next/static/chunks/app/api/internal/usage/route-270635328efa0901.js +0 -1
  681. package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-270635328efa0901.js +0 -1
  682. package/app/.next/static/chunks/app/api/keys/[id]/route-270635328efa0901.js +0 -1
  683. package/app/.next/static/chunks/app/api/keys/[id]/usage/route-270635328efa0901.js +0 -1
  684. package/app/.next/static/chunks/app/api/keys/route-270635328efa0901.js +0 -1
  685. package/app/.next/static/chunks/app/api/locale/route-270635328efa0901.js +0 -1
  686. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-270635328efa0901.js +0 -1
  687. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-270635328efa0901.js +0 -1
  688. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-270635328efa0901.js +0 -1
  689. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-270635328efa0901.js +0 -1
  690. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-270635328efa0901.js +0 -1
  691. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-270635328efa0901.js +0 -1
  692. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-270635328efa0901.js +0 -1
  693. package/app/.next/static/chunks/app/api/models/alias/route-270635328efa0901.js +0 -1
  694. package/app/.next/static/chunks/app/api/models/availability/route-270635328efa0901.js +0 -1
  695. package/app/.next/static/chunks/app/api/models/custom/route-270635328efa0901.js +0 -1
  696. package/app/.next/static/chunks/app/api/models/disabled/route-270635328efa0901.js +0 -1
  697. package/app/.next/static/chunks/app/api/models/route-270635328efa0901.js +0 -1
  698. package/app/.next/static/chunks/app/api/models/test/route-270635328efa0901.js +0 -1
  699. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-270635328efa0901.js +0 -1
  700. package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-270635328efa0901.js +0 -1
  701. package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-270635328efa0901.js +0 -1
  702. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-270635328efa0901.js +0 -1
  703. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-270635328efa0901.js +0 -1
  704. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-270635328efa0901.js +0 -1
  705. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-270635328efa0901.js +0 -1
  706. package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-270635328efa0901.js +0 -1
  707. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-270635328efa0901.js +0 -1
  708. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-270635328efa0901.js +0 -1
  709. package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-270635328efa0901.js +0 -1
  710. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-270635328efa0901.js +0 -1
  711. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-270635328efa0901.js +0 -1
  712. package/app/.next/static/chunks/app/api/pricing/route-270635328efa0901.js +0 -1
  713. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-270635328efa0901.js +0 -1
  714. package/app/.next/static/chunks/app/api/provider-nodes/route-270635328efa0901.js +0 -1
  715. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-270635328efa0901.js +0 -1
  716. package/app/.next/static/chunks/app/api/providers/[id]/models/route-270635328efa0901.js +0 -1
  717. package/app/.next/static/chunks/app/api/providers/[id]/route-270635328efa0901.js +0 -1
  718. package/app/.next/static/chunks/app/api/providers/[id]/test/route-270635328efa0901.js +0 -1
  719. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-270635328efa0901.js +0 -1
  720. package/app/.next/static/chunks/app/api/providers/client/route-270635328efa0901.js +0 -1
  721. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-270635328efa0901.js +0 -1
  722. package/app/.next/static/chunks/app/api/providers/route-270635328efa0901.js +0 -1
  723. package/app/.next/static/chunks/app/api/providers/suggested-models/route-270635328efa0901.js +0 -1
  724. package/app/.next/static/chunks/app/api/providers/test-batch/route-270635328efa0901.js +0 -1
  725. package/app/.next/static/chunks/app/api/providers/validate/route-270635328efa0901.js +0 -1
  726. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-270635328efa0901.js +0 -1
  727. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-270635328efa0901.js +0 -1
  728. package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-270635328efa0901.js +0 -1
  729. package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-270635328efa0901.js +0 -1
  730. package/app/.next/static/chunks/app/api/proxy-pools/route-270635328efa0901.js +0 -1
  731. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-270635328efa0901.js +0 -1
  732. package/app/.next/static/chunks/app/api/settings/database/route-270635328efa0901.js +0 -1
  733. package/app/.next/static/chunks/app/api/settings/database/selective/route-270635328efa0901.js +0 -1
  734. package/app/.next/static/chunks/app/api/settings/proxy-test/route-270635328efa0901.js +0 -1
  735. package/app/.next/static/chunks/app/api/settings/require-login/route-270635328efa0901.js +0 -1
  736. package/app/.next/static/chunks/app/api/settings/route-270635328efa0901.js +0 -1
  737. package/app/.next/static/chunks/app/api/shutdown/route-270635328efa0901.js +0 -1
  738. package/app/.next/static/chunks/app/api/tags/route-270635328efa0901.js +0 -1
  739. package/app/.next/static/chunks/app/api/translator/console-logs/route-270635328efa0901.js +0 -1
  740. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-270635328efa0901.js +0 -1
  741. package/app/.next/static/chunks/app/api/translator/load/route-270635328efa0901.js +0 -1
  742. package/app/.next/static/chunks/app/api/translator/save/route-270635328efa0901.js +0 -1
  743. package/app/.next/static/chunks/app/api/translator/send/route-270635328efa0901.js +0 -1
  744. package/app/.next/static/chunks/app/api/translator/translate/route-270635328efa0901.js +0 -1
  745. package/app/.next/static/chunks/app/api/tunnel/disable/route-270635328efa0901.js +0 -1
  746. package/app/.next/static/chunks/app/api/tunnel/enable/route-270635328efa0901.js +0 -1
  747. package/app/.next/static/chunks/app/api/tunnel/status/route-270635328efa0901.js +0 -1
  748. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-270635328efa0901.js +0 -1
  749. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-270635328efa0901.js +0 -1
  750. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-270635328efa0901.js +0 -1
  751. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-270635328efa0901.js +0 -1
  752. package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-270635328efa0901.js +0 -1
  753. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-270635328efa0901.js +0 -1
  754. package/app/.next/static/chunks/app/api/usage/chart/route-270635328efa0901.js +0 -1
  755. package/app/.next/static/chunks/app/api/usage/history/route-270635328efa0901.js +0 -1
  756. package/app/.next/static/chunks/app/api/usage/logs/route-270635328efa0901.js +0 -1
  757. package/app/.next/static/chunks/app/api/usage/providers/route-270635328efa0901.js +0 -1
  758. package/app/.next/static/chunks/app/api/usage/report/route-270635328efa0901.js +0 -1
  759. package/app/.next/static/chunks/app/api/usage/request-details/route-270635328efa0901.js +0 -1
  760. package/app/.next/static/chunks/app/api/usage/request-logs/route-270635328efa0901.js +0 -1
  761. package/app/.next/static/chunks/app/api/usage/stats/route-270635328efa0901.js +0 -1
  762. package/app/.next/static/chunks/app/api/usage/stream/route-270635328efa0901.js +0 -1
  763. package/app/.next/static/chunks/app/api/v1/api/chat/route-270635328efa0901.js +0 -1
  764. package/app/.next/static/chunks/app/api/v1/audio/speech/route-270635328efa0901.js +0 -1
  765. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-270635328efa0901.js +0 -1
  766. package/app/.next/static/chunks/app/api/v1/audio/voices/route-270635328efa0901.js +0 -1
  767. package/app/.next/static/chunks/app/api/v1/chat/completions/route-270635328efa0901.js +0 -1
  768. package/app/.next/static/chunks/app/api/v1/embeddings/route-270635328efa0901.js +0 -1
  769. package/app/.next/static/chunks/app/api/v1/images/generations/route-270635328efa0901.js +0 -1
  770. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-270635328efa0901.js +0 -1
  771. package/app/.next/static/chunks/app/api/v1/messages/route-270635328efa0901.js +0 -1
  772. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-270635328efa0901.js +0 -1
  773. package/app/.next/static/chunks/app/api/v1/models/info/route-270635328efa0901.js +0 -1
  774. package/app/.next/static/chunks/app/api/v1/models/route-270635328efa0901.js +0 -1
  775. package/app/.next/static/chunks/app/api/v1/responses/compact/route-270635328efa0901.js +0 -1
  776. package/app/.next/static/chunks/app/api/v1/responses/route-270635328efa0901.js +0 -1
  777. package/app/.next/static/chunks/app/api/v1/route-270635328efa0901.js +0 -1
  778. package/app/.next/static/chunks/app/api/v1/search/route-270635328efa0901.js +0 -1
  779. package/app/.next/static/chunks/app/api/v1/web/fetch/route-270635328efa0901.js +0 -1
  780. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-270635328efa0901.js +0 -1
  781. package/app/.next/static/chunks/app/api/v1beta/models/route-270635328efa0901.js +0 -1
  782. package/app/.next/static/chunks/app/api/version/route-270635328efa0901.js +0 -1
  783. package/app/.next/static/chunks/app/api/version/shutdown/route-270635328efa0901.js +0 -1
  784. package/app/.next/static/chunks/app/api/version/update/route-270635328efa0901.js +0 -1
  785. package/app/.next/static/chunks/app/manifest.webmanifest/route-270635328efa0901.js +0 -1
  786. package/app/.next/static/chunks/app/page-270635328efa0901.js +0 -1
  787. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-270635328efa0901.js +0 -1
  788. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-270635328efa0901.js +0 -1
  789. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-270635328efa0901.js +0 -1
  790. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-270635328efa0901.js +0 -1
  791. package/app/.next/static/css/7eb3c00f858e3692.css +0 -1
  792. /package/app/.next/static/{27Vk-YuF5IVK9FBSw9u-7 → oVva390rApgh0eU9kSrPC}/_ssgManifest.js +0 -0
@@ -4,4 +4,4 @@
4
4
  `,children:[j.includes(e.name)&&(0,s.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),e.name]},e.id)})})]}),Object.entries(z).map(([e,t])=>(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)(o.A,{src:`/providers/${e}.png`,alt:t.name,size:14,fallbackText:(t.name||e).slice(0,2).toUpperCase(),fallbackColor:t.color}),(0,s.jsx)("span",{className:"text-xs font-medium text-primary",children:t.name}),(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",t.models.length,")"]})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.models.map(e=>{let t=i===e.value,a=e.isPlaceholder;return(0,s.jsx)("button",{onClick:()=>D(e),title:a?"Select to pre-fill, then edit model ID in the input":void 0,className:`
5
5
  px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer
6
6
  ${a?"border-dashed border-border text-text-muted hover:border-primary/50 hover:text-primary bg-surface italic":t?"bg-primary text-white border-primary":j.includes(e.value)?"bg-primary border-primary text-white hover:bg-primary-hover":"bg-surface border-border text-text-main hover:border-primary/50 hover:bg-primary/5"}
7
- `,children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[j.includes(e.value)&&!a&&(0,s.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),e.name]}):e.isCustom?(0,s.jsxs)(s.Fragment,{children:[e.name,(0,s.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"}),(0,s.jsx)(d.default,{caps:k(e.value)})]}):(0,s.jsxs)(s.Fragment,{children:[e.name,(0,s.jsx)(d.default,{caps:k(e.value)})]})]})},e.value)})})]},e)),0===Object.keys(z).length&&0===L.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"})]})]})]})}h.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onSelect:i().func.isRequired,onDeselect:i().func,selectedModel:i().string,activeProviders:i().arrayOf(i().shape({provider:i().string.isRequired})),title:i().string,modelAliases:i().object,kindFilter:i().string,addedModelValues:i().arrayOf(i().string),closeOnSelect:i().bool}},73579:(e,t,a)=>{a.d(t,{default:()=>u});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(81127),o=a(11910),d=a(92542),c=a(56061),m=a(88105),x=a(98);function u({isOpen:e,connection:t,proxyPools:a,onSave:n,onClose:i}){let[p,h]=(0,r.useState)({name:"",priority:1,apiKey:""}),[f,g]=(0,r.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[b,v]=(0,r.useState)({accountId:""}),[j,y]=(0,r.useState)(""),[N,k]=(0,r.useState)(!1),[w,C]=(0,r.useState)(null),[S,O]=(0,r.useState)(!1),[T,P]=(0,r.useState)(null),[I,F]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(t){h({name:t.name||"",priority:t.priority||1,apiKey:""}),"azure"===t.provider&&t.providerSpecificData&&g({azureEndpoint:t.providerSpecificData.azureEndpoint||"",apiVersion:t.providerSpecificData.apiVersion||"2024-10-01-preview",deployment:t.providerSpecificData.deployment||"",organization:t.providerSpecificData.organization||""}),"cloudflare-ai"===t.provider&&t.providerSpecificData&&v({accountId:t.providerSpecificData.accountId||""});let e=m.Q2?.[t.provider];e?.regions&&y(t.providerSpecificData?.region||e.defaultRegion||e.regions[0]?.id||""),C(null),P(null)}},[t]);let W=t?.authType==="oauth",$=t?.provider==="azure",A=t?.provider==="cloudflare-ai",R=!!t&&((0,m.mq)(t.provider)||(0,m.gb)(t.provider)),E=t&&m.Q2?.[t.provider]?.regions||null,_=()=>{if(E&&j)return{...t?.providerSpecificData||{},region:j}},M=async()=>{if(t?.provider){k(!0),C(null);try{let e=await fetch(`/api/providers/${t.id}/test`,{method:"POST"}),a=await e.json();C(a.valid?"success":"failed")}catch{C("failed")}finally{k(!1)}}},q=async()=>{if(t?.provider&&p.apiKey){O(!0),P(null);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:p.apiKey,...$?{providerSpecificData:f}:{},...A?{providerSpecificData:b}:{},...E?{providerSpecificData:_()}:{}})}),a=await e.json();P(a.valid?"success":"failed")}catch{P("failed")}finally{O(!1)}}},L=async()=>{if(t){F(!0);try{let e={name:p.name,priority:p.priority};if(!W&&p.apiKey){e.apiKey=p.apiKey;let a="success"===T;if(!a)try{O(!0),P(null);let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:p.apiKey,...$?{providerSpecificData:f}:{},...A?{providerSpecificData:b}:{},...E?{providerSpecificData:_()}:{}})});a=!!(await e.json()).valid,P(a?"success":"failed")}catch{P("failed")}finally{O(!1)}a&&(e.testStatus="active",e.lastError=null,e.lastErrorAt=null)}$&&(e.providerSpecificData={azureEndpoint:f.azureEndpoint,apiVersion:f.apiVersion,deployment:f.deployment,organization:f.organization}),A&&(e.providerSpecificData={accountId:b.accountId}),E&&j&&(e.providerSpecificData=_()),await n(e)}finally{F(!1)}}};return t?(0,s.jsx)(l.default,{isOpen:e,title:"Edit Connection",onClose:i,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(o.default,{label:"Name",value:p.name,onChange:e=>h({...p,name:e.target.value}),placeholder:W?"Account name":"Production Key"}),W&&t.email&&(0,s.jsxs)("div",{className:"bg-sidebar/50 p-3 rounded-lg",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted mb-1",children:"Email"}),(0,s.jsx)("p",{className:"font-medium",children:t.email})]}),(0,s.jsx)(o.default,{label:"Priority",type:"number",value:p.priority,onChange:e=>h({...p,priority:Number.parseInt(e.target.value,10)||1})}),!W&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.default,{label:"API Key",type:"password",value:p.apiKey,onChange:e=>h({...p,apiKey:e.target.value}),placeholder:"Enter new API key",hint:"Leave blank to keep the current API key.",className:"flex-1"}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(d.default,{onClick:q,disabled:!p.apiKey||S||I,variant:"secondary",children:S?"Checking...":"Check"})})]}),T&&(0,s.jsx)(c.default,{variant:"success"===T?"success":"error",children:"success"===T?"Valid":"Invalid"})]}),$&&(0,s.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,s.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.default,{label:"Azure Endpoint",value:f.azureEndpoint,onChange:e=>g({...f,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com",hint:"Your Azure OpenAI resource endpoint URL"}),(0,s.jsx)(o.default,{label:"Deployment Name",value:f.deployment,onChange:e=>g({...f,deployment:e.target.value}),placeholder:"gpt-4",hint:"The deployment name in your Azure resource"}),(0,s.jsx)(o.default,{label:"API Version",value:f.apiVersion,onChange:e=>g({...f,apiVersion:e.target.value}),placeholder:"2024-10-01-preview",hint:"Azure OpenAI API version to use"}),(0,s.jsx)(o.default,{label:"Organization",value:f.organization,onChange:e=>g({...f,organization:e.target.value}),placeholder:"Organization ID",hint:"Required for billing"})]})]}),E&&(0,s.jsx)(x.default,{label:"Region",value:j,onChange:e=>y(e.target.value),options:E.map(e=>({value:e.id,label:e.label}))}),!R&&!$&&!A&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(d.default,{onClick:M,variant:"secondary",disabled:N,children:N?"Testing...":"Test Connection"}),w&&(0,s.jsx)(c.default,{variant:"success"===w?"success":"error",children:"success"===w?"Valid":"Failed"})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.default,{onClick:L,fullWidth:!0,disabled:I,children:I?"Saving...":"Save"}),(0,s.jsx)(d.default,{onClick:i,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}u.propTypes={isOpen:i().bool.isRequired,connection:i().shape({id:i().string,name:i().string,email:i().string,priority:i().number,authType:i().string,provider:i().string,providerSpecificData:i().object}),proxyPools:i().arrayOf(i().shape({id:i().string,name:i().string})),onSave:i().func.isRequired,onClose:i().func.isRequired}},80752:(e,t,a)=>{a.d(t,{default:()=>m});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(1620),o=a(40197),d=a(81127);function c({icon:e,label:t,onClick:a,trailing:r,danger:n}){return(0,s.jsxs)("button",{onClick:a,className:`flex items-center gap-3 w-full px-4 py-2.5 text-sm transition-colors ${n?"text-red-500 hover:bg-red-500/10":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"}`,children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[20px] ${n?"":"text-text-muted"}`,children:e}),(0,s.jsx)("span",{className:"flex-1 text-left",children:t}),r&&(0,s.jsx)("span",{className:"text-base",children:r})]})}function m({onLogout:e}){let[t,a]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),[x,u]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1),{toggleTheme:f,isDark:g}=(0,l.D)(),b=(0,r.useRef)(null),v=async()=>{h(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}h(!1),u(!1)};return(0,r.useEffect)(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&a(!1)};if(t)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative",ref:b,children:[(0,s.jsx)("button",{onClick:()=>a(e=>!e),className:"flex items-center justify-center p-2 rounded-lg text-text-muted hover:text-text-main hover:bg-black/5 dark:hover:bg-white/5 transition-all",title:"Menu",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"grid_view"})}),t&&(0,s.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-60 bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl z-50 animate-in fade-in zoom-in-95 duration-150 overflow-hidden py-1",children:[(0,s.jsx)(c,{icon:"history",label:"Change Log",onClick:()=>{a(!1),i(!0)}}),(0,s.jsx)(c,{icon:g?"light_mode":"dark_mode",label:"Theme",onClick:()=>{f(),a(!1)}}),(0,s.jsx)(c,{icon:"power_settings_new",label:"Shutdown",danger:!0,onClick:()=>{a(!1),u(!0)}}),(0,s.jsx)(c,{icon:"logout",label:"Logout",danger:!0,onClick:()=>{a(!1),e()}})]})]}),(0,s.jsx)(o.default,{isOpen:n,onClose:()=>i(!1)}),(0,s.jsx)(d.ConfirmModal,{isOpen:x,onClose:()=>u(!1),onConfirm:v,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:p})]})}c.propTypes={icon:i().string.isRequired,label:i().string.isRequired,onClick:i().func.isRequired,trailing:i().node,danger:i().bool},m.propTypes={onLogout:i().func.isRequired}},81127:(e,t,a)=>{a.d(t,{ConfirmModal:()=>d,default:()=>o});var s=a(95155),r=a(12115),n=a(31474),i=a(92542),l=a(97677);function o({isOpen:e,onClose:t,title:a,children:i,footer:d,size:c="md",closeOnOverlay:m=!0,showTrafficLights:x=!0,className:u}){return((0,r.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),(0,r.useEffect)(()=>{let a=a=>{"Escape"===a.key&&e&&t()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t]),e)?(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in",onClick:m?t:void 0}),(0,s.jsxs)("div",{className:(0,n.cn)("relative w-full bg-surface","border border-border-subtle","rounded-[14px] shadow-[var(--shadow-elev)]","fade-in",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl",full:"max-w-4xl"}[c],u),children:[(a||x)&&(0,s.jsxs)("div",{className:"flex items-center justify-between p-2 border-b border-border-subtle",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[x&&(0,s.jsxs)("div",{className:"hidden md:flex items-center gap-2 mr-4 ml-2",children:[(0,s.jsx)(l.default,{text:"Close",position:"top",color:"#FF5F56",children:(0,s.jsx)("button",{onClick:t,"aria-label":"Close",title:"Close",className:"w-4 h-4 rounded-full bg-[#FF5F56] hover:brightness-90 transition-all cursor-pointer flex items-center justify-center group/dot",children:(0,s.jsx)("span",{className:"text-[9px] font-bold text-white opacity-0 group-hover/dot:opacity-100 transition-opacity leading-none",children:"✕"})})}),(0,s.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"}),(0,s.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"})]}),a&&(0,s.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:a})]}),(0,s.jsx)("button",{onClick:t,"aria-label":"Close",className:"md:hidden p-1.5 rounded-[10px] text-text-muted hover:bg-surface-2 hover:text-text-main transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsx)("div",{className:"p-6 max-h-[calc(85vh-100px)] overflow-y-auto custom-scrollbar",children:i}),d&&(0,s.jsx)("div",{className:"flex items-center justify-end gap-3 p-6 border-t border-border-subtle",children:d})]})]}):null}function d({isOpen:e,onClose:t,onConfirm:a,title:r="Confirm",message:n,confirmText:l="Confirm",cancelText:c="Cancel",variant:m="danger",loading:x=!1}){return(0,s.jsx)(o,{isOpen:e,onClose:t,title:r,size:"sm",footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.default,{variant:"ghost",onClick:t,disabled:x,children:c}),(0,s.jsx)(i.default,{variant:m,onClick:a,loading:x,children:l})]}),children:(0,s.jsx)("p",{className:"text-text-muted",children:n})})}},90882:(e,t,a)=>{a.d(t,{default:()=>d});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(35497),o=a(11059);function d({isOpen:e,provider:t,providerInfo:a,onSuccess:n,onClose:i,oauthMeta:c,idcConfig:m}){let[x,u]=(0,r.useState)("waiting"),[p,h]=(0,r.useState)(null),[f,g]=(0,r.useState)(""),[b,v]=(0,r.useState)(null),[j,y]=(0,r.useState)(!1),[N,k]=(0,r.useState)(null),[w,C]=(0,r.useState)(!1),S=(0,r.useRef)(null),O=(0,r.useRef)(!1),T=(0,r.useRef)(!1),{copied:P,copy:I}=(0,o.C)(),[F,W]=(0,r.useState)(!1),[$,A]=(0,r.useState)("/callback?code=..."),R=(0,r.useRef)(!1);(0,r.useEffect)(()=>{W("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname),A(`${window.location.origin}/callback?code=...`)},[]);let E=(0,r.useCallback)(async(e,a)=>{if(p)try{let s=await fetch(`/api/oauth/${t}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,redirectUri:p.redirectUri,codeVerifier:p.codeVerifier,state:a,...c?{meta:c}:{}})}),r=await s.json();if(!s.ok)throw Error(r.error);u("success"),n?.()}catch(e){v(e.message),u("error")}},[p,t,n,c]),_=(0,r.useCallback)(async e=>{if(p?.state)try{let t=await fetch("/api/oauth/xai/manual-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,state:p.state})}),a=await t.json();if(!t.ok)throw Error(a.error);u("success"),n?.()}catch(e){v(e.message),u("error")}},[p,n]),M=(0,r.useCallback)(async(e,a,s,r,i)=>{O.current=!1,C(!0);let l=Date.now()+(Number.isFinite(i)&&i>0?i:12e4);for(;Date.now()<l;){if(O.current){console.log("[OAuthModal] Polling aborted"),C(!1);return}if(await new Promise(e=>setTimeout(e,1e3*s)),O.current){console.log("[OAuthModal] Polling aborted after sleep"),C(!1);return}try{let i=await fetch(`/api/oauth/${t}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,codeVerifier:a,extraData:r})}),l=await i.json();if(l.success){O.current=!0,u("success"),C(!1),n?.();return}if("expired_token"===l.error||"access_denied"===l.error)throw Error(l.errorDescription||l.error);"slow_down"===l.error&&(s=Math.min(s+5,30))}catch(e){v(e.message),u("error"),C(!1);return}}v("Authorization timeout"),u("error"),C(!1)},[t,n]),q=(0,r.useCallback)(async()=>{if(t)try{let e;if(v(null),["github","qwen","kiro","kimi-coding","kilocode","codebuddy-cn","qoder"].includes(t)){y(!0),u("waiting");let e=new URL(`/api/oauth/${t}/device-code`,window.location.origin);"kiro"===t&&m?.startUrl&&(e.searchParams.set("start_url",m.startUrl),m.region&&e.searchParams.set("region",m.region),e.searchParams.set("auth_method","idc"));let a=await fetch(e.toString()),s=await a.json();if(!a.ok)throw Error(s.error);k(s);let r=s.verification_uri_complete||s.verification_uri;r&&window.open(r,"_blank","noopener,noreferrer");let n="kiro"===t?{_clientId:s._clientId,_clientSecret:s._clientSecret,_region:s._region,_authMethod:s._authMethod,_startUrl:s._startUrl}:"qoder"===t?{_qoderNonce:s._qoderNonce,_qoderMachineId:s._qoderMachineId,_qoderVerifier:s.codeVerifier}:null;M(s.device_code,s.codeVerifier,s.interval||5,n,Number.isFinite(s.expires_in)&&s.expires_in>0?1e3*s.expires_in:void 0);return}let a=window.location.port||("https:"===window.location.protocol?"443":"80");e="codex"===t?"http://localhost:1455/auth/callback":"xai"===t?"http://127.0.0.1:56121/callback":`http://localhost:${a}/callback`;let s=new URL(`/api/oauth/${t}/authorize`,window.location.origin);s.searchParams.set("redirect_uri",e),c&&Object.entries(c).forEach(([e,t])=>{t&&s.searchParams.set(e,t)});let r=await fetch(s.toString()),n=await r.json();if(!r.ok)throw Error(n.error);let i=!1,l=!1;if("codex"===t)try{let t=new URL("/api/oauth/codex/start-proxy",window.location.origin);t.searchParams.set("app_port",a),t.searchParams.set("state",n.state),t.searchParams.set("code_verifier",n.codeVerifier),t.searchParams.set("redirect_uri",e);let s=await fetch(t.toString()),r=await s.json();i=r.success,l=!!r.serverSide}catch{i=!1}let o=!1,d=!1;if("xai"===t)try{let t=new URL("/api/oauth/xai/start-proxy",window.location.origin);t.searchParams.set("app_port",a),t.searchParams.set("state",n.state),t.searchParams.set("code_verifier",n.codeVerifier),t.searchParams.set("redirect_uri",e);let s=await fetch(t.toString()),r=await s.json();if(o=r.success,d=!!r.serverSide,!o&&"port_busy"===r.reason)throw Error("Port 56121 in use; close the conflicting process and retry")}catch(e){if(e?.message)throw e;o=!1}h({...n,redirectUri:e,codexServerSide:l,xaiServerSide:d}),"codex"===t&&i||"xai"===t&&o||F&&"codex"!==t&&"xai"!==t?(u("waiting"),S.current=window.open(n.authUrl,"oauth_popup","width=600,height=700"),S.current||u("input")):(u("input"),window.open(n.authUrl,"_blank"))}catch(e){v(e.message),u("error")}},[t,F,M,c,m]);(0,r.useEffect)(()=>{e&&t?T.current||(T.current=!0,h(null),g(""),v(null),y(!1),k(null),C(!1),O.current=!1,q()):e||(O.current=!0,T.current=!1,"codex"===t?fetch("/api/oauth/codex/stop-proxy").catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy").catch(()=>{}))},[e,t,q]),(0,r.useEffect)(()=>{let e=p?.codexServerSide?"codex":p?.xaiServerSide?"xai":null;if(!e||!p?.state||R.current)return;let t=!1,a=0,s=async()=>{if(!t&&!R.current){a+=1;try{let a=await fetch(`/api/oauth/${e}/poll-status?state=${encodeURIComponent(p.state)}`),s=await a.json();if(t||R.current)return;if("done"===s.status){R.current=!0,u("success"),n?.();return}if("error"===s.status){R.current=!0,v(s.error||"Authentication failed"),u("error");return}}catch{}if(a>=200){R.current=!0,v("Authentication timeout"),u("error");return}setTimeout(s,1500)}};return setTimeout(s,1500),()=>{t=!0}},[p,n]),(0,r.useEffect)(()=>{let e;if(!p)return;R.current=!1;let t=async e=>{if(R.current)return;let{code:t,token:a,state:s,error:r,errorDescription:n}=e;if(r){R.current=!0,v(n||r),u("error");return}(a||t)&&(R.current=!0,await E(a||t,s))},a=e=>{let a=e.origin.includes("localhost")||e.origin.includes("127.0.0.1"),s=e.origin===window.location.origin;(a||s)&&e.data?.type==="oauth_callback"&&t(e.data.data)};window.addEventListener("message",a);try{(e=new BroadcastChannel("oauth_callback")).onmessage=e=>t(e.data)}catch(e){console.log("BroadcastChannel not supported")}let s=e=>{if("oauth_callback"===e.key&&e.newValue)try{let a=JSON.parse(e.newValue);t(a),localStorage.removeItem("oauth_callback")}catch(e){console.log("Failed to parse localStorage data")}};window.addEventListener("storage",s);try{let e=localStorage.getItem("oauth_callback");if(e){let a=JSON.parse(e);a.timestamp&&Date.now()-a.timestamp<3e4&&t(a),localStorage.removeItem("oauth_callback")}}catch{}return()=>{window.removeEventListener("message",a),window.removeEventListener("storage",s),e&&e.close()}},[p,E]);let L=async()=>{try{v(null);let e=f.trim();if(e.startsWith("eyJ")&&e.includes("."))return void await E(e,null);if("xai"===t&&e&&!e.includes("://")&&!e.includes("?")&&!e.includes("code="))return void await _(e);if("kimchi"===t&&e&&!e.includes("://")&&!e.includes("?"))return void await E(e,null);let a=new URL(e),s=a.searchParams.get("code"),r=a.searchParams.get("token"),n=a.searchParams.get("state"),i=a.searchParams.get("error");if(i)throw Error(a.searchParams.get("error_description")||i);if(!s&&!r)throw Error("xai"===t?"Paste the callback URL or copied xAI code":"kimchi"===t?"No Kimchi token found in URL":"No authorization code found in URL");await E(r||s,n)}catch(e){v(e.message),u("error")}},z=(0,r.useCallback)(()=>{"codex"===t?fetch("/api/oauth/codex/stop-proxy").catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy").catch(()=>{}),i()},[i,t]);if(!t||!a)return null;let D="xai"===t,U="kimchi"===t,K=N?.verification_uri_complete||N?.verification_uri||"",B=D?"Connect Grok Build OAuth":`Connect ${a.name}`,V=D?"http://127.0.0.1:56121/callback?code=... or copied code":U?`${$.replace("code=...","token=...")} or copied token`:$;return(0,s.jsx)(l.aF,{isOpen:e,title:B,onClose:z,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[("waiting"===x||"input"===x)&&!j&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,s.jsx)("span",{className:"text-sm",children:D?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,s.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,s.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",D?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.pd,{value:p?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,s.jsx)(l.$n,{variant:"secondary",icon:"auth_url"===P?"check":"content_copy",onClick:()=>I(p?.authUrl,"auth_url"),disabled:!p?.authUrl,children:"Copy"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===t?"callback URL or copied code":U?"callback URL or copied token":"callback URL"," here"]}),(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"xai"===t?"If xAI shows a code instead of redirecting, paste that code here.":U?"After authorization, copy the full callback URL or token from your browser.":"After authorization, copy the full URL from your browser."}),(0,s.jsx)(l.pd,{value:f,onChange:e=>g(e.target.value),placeholder:V,className:"font-mono text-xs"})]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:L,fullWidth:!0,disabled:!f,children:"Connect"}),(0,s.jsx)(l.$n,{onClick:z,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===x&&j&&N&&(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 login URL below and authorize:"}),(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:"Login URL"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("code",{className:"flex-1 text-sm break-all",children:K}),(0,s.jsx)(l.$n,{size:"sm",variant:"ghost",icon:"login_url"===P?"check":"content_copy",onClick:()=>I(K,"login_url"),disabled:!K}),(0,s.jsx)(l.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(K,"_blank","noopener,noreferrer"),disabled:!K,children:"Open"})]})]}),(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:N.user_code}),(0,s.jsx)(l.$n,{size:"sm",variant:"ghost",icon:"user_code"===P?"check":"content_copy",onClick:()=>I(N.user_code,"user_code")})]})]})]}),w&&(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..."]})]}),"success"===x&&(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)(l.$n,{onClick:z,fullWidth:!0,children:"Done"})]}),"error"===x&&(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:b}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:q,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,s.jsx)(l.$n,{onClick:z,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:i().bool.isRequired,provider:i().string,providerInfo:i().shape({name:i().string}),onSuccess:i().func,onClose:i().func.isRequired,oauthMeta:i().object,idcConfig:i().shape({startUrl:i().string,region:i().string})}},91450:(e,t,a)=>{a.d(t,{default:()=>l});var s=a(95155),r=a(14051),n=a.n(r),i=a(38587);function l({children: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)(i.default,{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:e})]})}l.propTypes={children:n().node.isRequired}},92173:(e,t,a)=>{a.d(t,{default:()=>c});var s=a(95155),r=a(98500),n=a.n(r),i=a(90620);let l=[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"Changelog",href:"#"}],o=[{label:"Documentation",href:"#"},{label:"API Reference",href:"#"},{label:"Help Center",href:"#"}],d=[{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:l.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:o.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.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"})]})]})]})})}},92542:(e,t,a)=>{a.d(t,{default:()=>l});var s=a(95155),r=a(31474);let n={primary:"bg-brand-500 hover:bg-brand-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",secondary:"bg-surface-2 hover:bg-surface-3 text-text-main border border-border disabled:opacity-50",outline:"border border-border text-text-main hover:bg-surface-2 hover:border-brand-500/40",ghost:"text-text-muted hover:bg-surface-2 hover:text-text-main",danger:"bg-red-500 hover:bg-red-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",success:"bg-green-600 hover:bg-green-700 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted"},i={sm:"h-7 px-3 text-xs rounded-[8px]",md:"h-9 px-4 text-sm rounded-[10px]",lg:"h-11 px-6 text-sm rounded-[10px]"};function l({children:e,variant:t="primary",size:a="md",icon:o,iconRight:d,disabled:c=!1,loading:m=!1,fullWidth:x=!1,className:u,...p}){return(0,s.jsxs)("button",{className:(0,r.cn)("inline-flex items-center justify-center gap-2 font-semibold transition-all duration-150 ease-out cursor-pointer","active:scale-[0.97] disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100",n[t],i[a],x&&"w-full",u),disabled:c||m,...p,children:[m?(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}):o?(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:o}):null,e,d&&!m&&(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:d})]})}},92622:(e,t,a)=>{a.d(t,{default:()=>N});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(98500),o=a.n(l),d=a(73321),c=a(31474),m=a(90620),x=a(88105),u=a(11059),p=a(92542),h=a(81127),f=a(14932);let g=["embedding","image","tts","stt"],b="/dashboard/media-providers/web",v=[{href:"/dashboard/endpoint",label:"Endpoint & Key",icon:"api"},{href:"/dashboard/providers",label:"Providers",icon:"dns"},{href:"/dashboard/combos",label:"Combos",icon:"layers"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"},{href:"/dashboard/token-saver",label:"Token Saver",icon:"savings"},{href:"/dashboard/cli-tools",label:"CLI Tools",icon:"terminal"}],j=[{href:"/dashboard/console-log",label:"Console Log",icon:"terminal"},{href:"/dashboard/translator",label:"Translator",icon:"translate"}],y=[{href:"/dashboard/proxy-pools",label:"Proxy Pools",icon:"lan"},{href:"/dashboard/skills",label:"Skills",icon:"extension"}];function N({onClose:e}){let t=(0,d.usePathname)(),[a,n]=(0,r.useState)(!1),[i,l]=(0,r.useState)(!1),[w,C]=(0,r.useState)(!1),[S,O]=(0,r.useState)(null),[T,P]=(0,r.useState)(!1),[I,F]=(0,r.useState)(!1),[W,$]=(0,r.useState)(0),[A,R]=(0,r.useState)(!1),{copied:E,copy:_}=(0,u.C)(2e3),M=m.h0.installCmdLatest;(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{e.enableTranslator&&R(!0)}).catch(()=>{})},[]),(0,r.useEffect)(()=>{fetch("/api/version").then(e=>e.json()).then(e=>{e.hasUpdate&&O(e)}).catch(()=>{})},[]);let q=e=>"/dashboard/endpoint"===e?"/dashboard"===t||t.startsWith("/dashboard/endpoint"):t.startsWith(e),L=async()=>{try{await navigator.clipboard.writeText(M)}catch{}_(M);let e=m.h0.shutdownCountdownSec;$(e);let t=setInterval(()=>{$(e-=1),e<=0&&(clearInterval(t),fetch("/api/version/shutdown",{method:"POST"}).catch(()=>{}),C(!0))},1e3)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("aside",{className:"flex w-72 flex-col border-r border-border-subtle bg-vibrancy backdrop-blur-xl transition-colors duration-300 min-h-full",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-6 pt-5 pb-2",children:[(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FF5F56]"}),(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FFBD2E]"}),(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#27C93F]"})]}),(0,s.jsxs)("div",{className:"px-6 py-4 flex flex-col gap-2",children:[(0,s.jsxs)(o(),{href:"/dashboard",className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-9 rounded-[10px] bg-gradient-to-br from-brand-500 to-brand-700 shadow-[var(--shadow-warm)]",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-white text-[20px]",children:"hub"})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("h1",{className:"text-lg font-semibold tracking-tight text-text-main",children:m.vQ.name}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["v",m.vQ.version]})]})]}),S&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 rounded p-1 -m-1",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-green-600 dark:text-amber-500",children:["↑ New version available: v",S.latestVersion]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{onClick:()=>P(!0),className:"px-2 py-1 rounded bg-green-600 hover:bg-green-700 dark:bg-amber-500 dark:hover:bg-amber-600 text-white text-[11px] font-semibold transition-colors cursor-pointer",children:"Update now"}),(0,s.jsx)("button",{onClick:()=>_(M),title:"Copy install command",className:"flex-1 text-left hover:opacity-80 transition-opacity cursor-pointer min-w-0",children:(0,s.jsx)("code",{className:"block text-[10px] text-green-600/80 dark:text-amber-400/70 font-mono truncate",children:E?"✓ copied!":M})})]})]})]}),(0,s.jsxs)("nav",{className:"flex-1 px-4 py-2 space-y-0.5 overflow-y-auto custom-scrollbar",children:[v.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",q(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",q(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),(0,s.jsxs)("div",{className:"pt-3 mt-2 space-y-0.5",children:[(0,s.jsx)("p",{className:"px-4 text-xs font-semibold text-text-muted/60 uppercase tracking-wider mb-2",children:"System"}),(0,s.jsxs)("button",{onClick:()=>n(e=>!e),className:(0,c.cn)("w-full flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",t.startsWith("/dashboard/media-providers")?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"perm_media"}),(0,s.jsx)("span",{className:"text-[13px] font-medium flex-1 text-left",children:"Media Providers"}),(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] transition-transform",style:{transform:a?"rotate(180deg)":"rotate(0deg)"},children:"expand_more"})]}),a&&(0,s.jsxs)("div",{className:"pl-4",children:[x.rj.filter(e=>g.includes(e.id)).map(a=>(0,s.jsxs)(o(),{href:`/dashboard/media-providers/${a.id}`,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-4 py-1 rounded-lg transition-all group",t.startsWith(`/dashboard/media-providers/${a.id}`)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:a.icon}),(0,s.jsx)("span",{className:"text-sm",children:a.label})]},a.id)),(0,s.jsxs)(o(),{href:b,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-4 py-1 rounded-lg transition-all group",t.startsWith(b)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"travel_explore"}),(0,s.jsx)("span",{className:"text-sm",children:"Web Fetch & Search"})]},"web")]}),y.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",q(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",q(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),j.map(t=>"/dashboard/translator"!==t.href||A?(0,s.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",q(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",q(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href):null),(0,s.jsxs)("button",{onClick:()=>l(!0),className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group w-full","text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px] group-hover:text-primary transition-colors",children:"computer"}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:"Remote"})]}),(0,s.jsxs)(o(),{href:"/dashboard/profile",onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",q("/dashboard/profile")?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",q("/dashboard/profile")?"fill-1":"group-hover:text-primary transition-colors"),children:"settings"}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:"Settings"})]})]})]})]}),(0,s.jsx)(f.A,{isOpen:i,onClose:()=>l(!1)}),(0,s.jsx)(h.ConfirmModal,{isOpen:T,onClose:()=>P(!1),onConfirm:()=>{P(!1),F(!0)},title:"Update 9Router",message:`Show install command for v${S?.latestVersion||""}? You can copy it and shutdown to install manually.`,confirmText:"Show Command",cancelText:"Cancel",variant:"primary"}),(w||I)&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm p-6",children:I?(0,s.jsx)(k,{latestVersion:S?.latestVersion,installCmd:M,copied:E,onCopyAndShutdown:L,onCancel:()=>{F(!1),$(0)},countdown:W,isDisconnected:w}):(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)(p.default,{variant:"secondary",onClick:()=>globalThis.location.reload(),children:"Reload Page"})]})})]})}function k({latestVersion:e,installCmd:t,copied:a,onCopyAndShutdown:r,onCancel:n,countdown:i,isDisconnected:l}){let o=i>0;return(0,s.jsxs)("div",{className:"w-full max-w-lg rounded-xl bg-neutral-900/95 border border-white/10 p-6 text-white",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-11 rounded-full bg-amber-500/20 text-amber-400",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"content_copy"})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("h2",{className:"text-lg font-semibold",children:["Update 9Router",e?` to v${e}`:""]}),(0,s.jsx)("p",{className:"text-xs text-white/60",children:l?"Server stopped. Paste the command into a terminal to install.":o?`Command copied. Server will stop in ${i}s...`:"Click the button below to copy the install command and shutdown."})]})]}),(0,s.jsx)("p",{className:"text-sm text-white/80 mb-2",children:"Install command:"}),(0,s.jsx)("div",{className:"w-full px-3 py-2 rounded bg-white/5 mb-4",children:(0,s.jsx)("code",{className:"text-xs font-mono text-amber-400 break-all",children:t})}),(0,s.jsxs)("ol",{className:"text-xs text-white/70 space-y-1 list-decimal list-inside mb-4",children:[(0,s.jsxs)("li",{children:["Click ",(0,s.jsx)("strong",{children:"Copy & Shutdown"})," below."]}),(0,s.jsx)("li",{children:"Paste the command into your terminal and press Enter."}),(0,s.jsxs)("li",{children:["Run ",(0,s.jsx)("code",{className:"px-1 rounded bg-white/10 text-green-400",children:"n9router"})," again after install."]})]}),l?(0,s.jsx)(p.default,{variant:"secondary",fullWidth:!0,onClick:()=>globalThis.location.reload(),children:"Reload Page"}):(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(p.default,{variant:"secondary",onClick:n,disabled:o,children:"Cancel"}),(0,s.jsx)(p.default,{variant:"primary",fullWidth:!0,onClick:r,disabled:o,children:a?"✓ Copied — shutting down...":o?`Shutting down in ${i}s`:"Copy & Shutdown"})]})]})}N.propTypes={onClose:i().func},k.propTypes={latestVersion:i().string,installCmd:i().string.isRequired,copied:i().bool,onCopyAndShutdown:i().func.isRequired,onCancel:i().func.isRequired,countdown:i().number,isDisconnected:i().bool}},94230:(e,t,a)=>{a.d(t,{default:()=>d});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(35497),o=a(11059);function d({isOpen:e,provider:t,onSuccess:a,onClose:n}){let[i,c]=(0,r.useState)("loading"),[m,x]=(0,r.useState)(""),[u,p]=(0,r.useState)(null),[h,f]=(0,r.useState)(""),[g,b]=(0,r.useState)(null),{copied:v,copy:j}=(0,o.C)(),y=(0,r.useRef)(!1);(0,r.useEffect)(()=>{e||(y.current=!1)},[e]),(0,r.useEffect)(()=>{e&&t&&(async()=>{try{b(null),c("loading");let e=await fetch(`/api/oauth/kiro/social-authorize?provider=${t}`),a=await e.json();if(!e.ok)throw Error(a.error);p(a),x(a.authUrl),c("input"),y.current||(y.current=!0,window.open(a.authUrl,"_blank"))}catch(e){b(e.message),c("error")}})()},[e,t]);let N=async()=>{try{let e;b(null);try{e=new URL(h)}catch(e){throw Error("Invalid callback URL format")}let s=e.searchParams.get("code");e.searchParams.get("state");let r=e.searchParams.get("error");if(r)throw Error(e.searchParams.get("error_description")||r);if(!s)throw Error("No authorization code found in URL");let n=await fetch("/api/oauth/kiro/social-exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:s,codeVerifier:u.codeVerifier,provider:t})}),i=await n.json();if(!n.ok)throw Error(i.error);c("success"),a?.()}catch(e){b(e.message),c("error")}},k="google"===t?"Google":"GitHub";return(0,s.jsx)(l.aF,{isOpen:e,title:`Connect Kiro via ${k}`,onClose:n,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:["loading"===i&&(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:"Initializing..."}),(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["Setting up ",k," authentication"]})]}),"input"===i&&(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)(l.pd,{value:m,readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,s.jsx)(l.$n,{variant:"secondary",icon:"auth_url"===v?"check":"content_copy",onClick:()=>j(m,"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 address bar."}),(0,s.jsx)(l.pd,{value:h,onChange:e=>f(e.target.value),placeholder:"kiro://kiro.kiroAgent/authenticate-success?code=...",className:"font-mono text-xs"})]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:N,fullWidth:!0,disabled:!h,children:"Connect"}),(0,s.jsx)(l.$n,{onClick:n,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"success"===i&&(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 Kiro account via ",k," has been connected."]}),(0,s.jsx)(l.$n,{onClick:n,fullWidth:!0,children:"Done"})]}),"error"===i&&(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:g}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:()=>c("input"),variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,s.jsx)(l.$n,{onClick:n,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:i().bool.isRequired,provider:i().oneOf(["google","github"]).isRequired,onSuccess:i().func,onClose:i().func.isRequired}},95088:(e,t,a)=>{a.d(t,{default:()=>d});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(35497);let o="https://gitlab.com";function d({isOpen:e,providerInfo:t,onSuccess:a,onClose:n}){let i,[c,m]=(0,r.useState)(null),[x,u]=(0,r.useState)(o),[p,h]=(0,r.useState)(""),[f,g]=(0,r.useState)(""),[b,v]=(0,r.useState)(""),[j,y]=(0,r.useState)(!1),[N,k]=(0,r.useState)(null),[w,C]=(0,r.useState)(!1),[S,O]=(0,r.useState)(null),T=()=>{m(null),u(o),h(""),g(""),v(""),k(null),y(!1),C(!1),O(null),n()},P=async()=>{if(!b.trim())return void k("Personal Access Token is required");y(!0),k(null);try{let e=await fetch("/api/oauth/gitlab/pat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:b.trim(),baseUrl:x.trim()||o})}),t=await e.json();if(!e.ok)throw Error(t.error||"Authentication failed");a?.(),T()}catch(e){k(e.message)}finally{y(!1)}};return e?w&&S?(0,s.jsx)(l.LF,{isOpen:!0,provider:"gitlab",providerInfo:t,oauthMeta:S,onSuccess:()=>{a?.(),T()},onClose:()=>{C(!1),O(null)}}):(0,s.jsx)(l.aF,{isOpen:e,title:"Connect GitLab Duo",onClose:T,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[!c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Choose how to authenticate with GitLab Duo:"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsxs)("button",{onClick:()=>m("oauth"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"lock_open"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"OAuth App"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab OAuth application"})]})]}),(0,s.jsxs)("button",{onClick:()=>m("pat"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"key"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Personal Access Token"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab PAT with api scope"})]})]})]})]}),"oauth"===c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Create an OAuth app at"," ",(0,s.jsx)("a",{href:`${x.trim()||o}/-/profile/applications`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Applications"})," ","with redirect URI"," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:(i=window.location.port||("https:"===window.location.protocol?"443":"80"),`http://localhost:${i}/callback`)})]}),(0,s.jsx)(l.pd,{label:"GitLab Base URL",value:x,onChange:e=>u(e.target.value),placeholder:o}),(0,s.jsx)(l.pd,{label:"Client ID",value:p,onChange:e=>h(e.target.value),placeholder:"Your OAuth application client ID"}),(0,s.jsx)(l.pd,{label:"Client Secret (optional for PKCE)",value:f,onChange:e=>g(e.target.value),placeholder:"Leave empty for public PKCE app"}),N&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:()=>{p.trim()?(k(null),O({baseUrl:x.trim()||o,clientId:p.trim(),clientSecret:f.trim()}),C(!0)):k("Client ID is required")},fullWidth:!0,disabled:!p.trim(),children:"Authorize"}),(0,s.jsx)(l.$n,{onClick:()=>{m(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"pat"===c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Create a PAT at"," ",(0,s.jsx)("a",{href:`${x.trim()||o}/-/user_settings/personal_access_tokens`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Access Tokens"})," ","with scopes: ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"api"}),","," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"read_user"}),", and"," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"ai_features"}),"."]}),(0,s.jsx)(l.pd,{label:"GitLab Base URL",value:x,onChange:e=>u(e.target.value),placeholder:o}),(0,s.jsx)(l.pd,{label:"Personal Access Token",value:b,onChange:e=>v(e.target.value),placeholder:"glpat-xxxxxxxxxxxxxxxxxxxx",type:"password"}),N&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:P,fullWidth:!0,disabled:!b.trim()||j,loading:j,children:"Connect"}),(0,s.jsx)(l.$n,{onClick:()=>{m(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})}):null}d.propTypes={isOpen:i().bool.isRequired,providerInfo:i().shape({name:i().string}),onSuccess:i().func,onClose:i().func.isRequired}},96748:(e,t,a)=>{a.d(t,{default:()=>d});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(35497);let o="https://api.openai.com/v1";function d({isOpen:e,onClose:t,onCreated:a,onSaved:n,node:i}){let c=!!i,[m,x]=(0,r.useState)({name:"",prefix:"",baseUrl:o}),[u,p]=(0,r.useState)(!1),[h,f]=(0,r.useState)(""),[g,b]=(0,r.useState)(""),[v,j]=(0,r.useState)(!1),[y,N]=(0,r.useState)(null);(0,r.useEffect)(()=>{e&&(N(null),f(""),b(""),c?x({name:i.name||"",prefix:i.prefix||"",baseUrl:i.baseUrl||o}):x({name:"",prefix:"",baseUrl:o}))},[e,c,i]);let k=async()=>{if(m.name.trim()&&m.prefix.trim()&&m.baseUrl.trim()){p(!0);try{let e=c?`/api/provider-nodes/${i.id}`:"/api/provider-nodes",t=c?"PUT":"POST",s={name:m.name,prefix:m.prefix,baseUrl:m.baseUrl};c||(s.type="custom-embedding");let r=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),l=await r.json();r.ok&&(c?n?.(l.node):a?.(l.node))}catch(e){console.log("Error saving custom embedding node:",e)}finally{p(!1)}}},w=async()=>{j(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:m.baseUrl,apiKey:h,type:"custom-embedding",modelId:g.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{j(!1)}};return(0,s.jsx)(l.aF,{isOpen:e,title:c?"Edit Custom Embedding":"Add Custom Embedding",onClose:t,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(l.pd,{label:"Name",value:m.name,onChange:e=>x({...m,name:e.target.value}),placeholder:"Voyage AI",hint:"Required. A friendly label for this embedding provider."}),(0,s.jsx)(l.pd,{label:"Prefix",value:m.prefix,onChange:e=>x({...m,prefix:e.target.value}),placeholder:"voyage",hint:"Required. Used as the provider prefix for model IDs (e.g. voyage/voyage-3)."}),(0,s.jsx)(l.pd,{label:"Base URL",value:m.baseUrl,onChange:e=>x({...m,baseUrl:e.target.value}),placeholder:"https://api.voyageai.com/v1",hint:"Most embedding APIs are OpenAI-compatible: Voyage, Cohere, Jina, Mistral, Together..."}),(0,s.jsx)(l.pd,{label:"API Key (for Check)",type:"password",value:h,onChange:e=>f(e.target.value)}),(0,s.jsx)(l.pd,{label:"Model ID (for Check)",value:g,onChange:e=>b(e.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",hint:"Required for validation. Will send a test embeddings request."}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(l.$n,{onClick:w,disabled:!h||!g.trim()||v||!m.baseUrl.trim(),variant:"secondary",children:v?"Checking...":"Check"}),(()=>{if(!y)return null;let{valid:e,error:t,dimensions:a}=y;return e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Ex,{variant:"success",children:"Valid"}),a&&(0,s.jsxs)("span",{className:"text-sm text-text-muted",children:[a," dims"]})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)(l.Ex,{variant:"error",children:"Invalid"}),t&&(0,s.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:k,fullWidth:!0,disabled:!m.name.trim()||!m.prefix.trim()||!m.baseUrl.trim()||u,children:u?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,s.jsx)(l.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onCreated:i().func,onSaved:i().func,node:i().shape({id:i().string,name:i().string,prefix:i().string,baseUrl:i().string})}},97677:(e,t,a)=>{a.d(t,{default:()=>r});var s=a(95155);function r({text:e,children:t,position:a="top",color:n}){let i=n?"":"bg-gray-900";return(0,s.jsxs)("div",{className:"relative inline-flex group/tt",children:[t,(0,s.jsx)("div",{className:`pointer-events-none absolute ${{top:"bottom-full left-1/2 -translate-x-1/2 mb-1.5",bottom:"top-full left-1/2 -translate-x-1/2 mt-1.5",left:"right-full top-1/2 -translate-y-1/2 mr-1.5",right:"left-full top-1/2 -translate-y-1/2 ml-1.5"}[a]} z-50 w-max max-w-56 rounded px-2 py-1 text-[11px] leading-snug ${i} text-white opacity-0 group-hover/tt:opacity-100 transition-opacity duration-150 whitespace-normal`,style:n?{backgroundColor:n}:{},children:e})]})}},98542:(e,t,a)=>{a.d(t,{default:()=>n});var s=a(95155),r=a(31474);function n({checked:e=!1,onChange:t,label:a,description:i,disabled:l=!1,size:o="md",className:d}){let c={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,s.jsxs)("div",{className:(0,r.cn)("flex items-center gap-3",l&&"opacity-50 cursor-not-allowed",d),children:[(0,s.jsx)("button",{type:"button",role:"switch","aria-checked":e,disabled:l,onClick:()=>{!l&&t&&t(!e)},className:(0,r.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-brand-500/30",e?"bg-brand-500":"bg-surface-3",c[o].track,l&&"cursor-not-allowed"),children:(0,s.jsx)("span",{className:(0,r.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out",e?c[o].translate:"translate-x-0.5",c[o].thumb,"mt-0.5")})}),(a||i)&&(0,s.jsxs)("div",{className:"flex flex-col",children:[a&&(0,s.jsx)("span",{className:"text-sm font-medium text-text-main",children:a}),i&&(0,s.jsx)("span",{className:"text-xs text-text-muted",children:i})]})]})}}}]);
7
+ `,children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[j.includes(e.value)&&!a&&(0,s.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),e.name]}):e.isCustom?(0,s.jsxs)(s.Fragment,{children:[e.name,(0,s.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"}),(0,s.jsx)(d.default,{caps:k(e.value)})]}):(0,s.jsxs)(s.Fragment,{children:[e.name,(0,s.jsx)(d.default,{caps:k(e.value)})]})]})},e.value)})})]},e)),0===Object.keys(z).length&&0===L.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"})]})]})]})}h.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onSelect:i().func.isRequired,onDeselect:i().func,selectedModel:i().string,activeProviders:i().arrayOf(i().shape({provider:i().string.isRequired})),title:i().string,modelAliases:i().object,kindFilter:i().string,addedModelValues:i().arrayOf(i().string),closeOnSelect:i().bool}},73579:(e,t,a)=>{a.d(t,{default:()=>u});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(81127),o=a(11910),d=a(92542),c=a(56061),m=a(88105),x=a(98);function u({isOpen:e,connection:t,proxyPools:a,onSave:n,onClose:i}){let[p,h]=(0,r.useState)({name:"",priority:1,apiKey:""}),[f,g]=(0,r.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[b,v]=(0,r.useState)({accountId:""}),[j,y]=(0,r.useState)(""),[N,k]=(0,r.useState)(!1),[w,C]=(0,r.useState)(null),[S,O]=(0,r.useState)(!1),[T,P]=(0,r.useState)(null),[I,F]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(t){h({name:t.name||"",priority:t.priority||1,apiKey:""}),"azure"===t.provider&&t.providerSpecificData&&g({azureEndpoint:t.providerSpecificData.azureEndpoint||"",apiVersion:t.providerSpecificData.apiVersion||"2024-10-01-preview",deployment:t.providerSpecificData.deployment||"",organization:t.providerSpecificData.organization||""}),"cloudflare-ai"===t.provider&&t.providerSpecificData&&v({accountId:t.providerSpecificData.accountId||""});let e=m.Q2?.[t.provider];e?.regions&&y(t.providerSpecificData?.region||e.defaultRegion||e.regions[0]?.id||""),C(null),P(null)}},[t]);let W=t?.authType==="oauth",$=t?.provider==="azure",A=t?.provider==="cloudflare-ai",R=!!t&&((0,m.mq)(t.provider)||(0,m.gb)(t.provider)),E=t&&m.Q2?.[t.provider]?.regions||null,_=()=>{if(E&&j)return{...t?.providerSpecificData||{},region:j}},M=async()=>{if(t?.provider){k(!0),C(null);try{let e=await fetch(`/api/providers/${t.id}/test`,{method:"POST"}),a=await e.json();C(a.valid?"success":"failed")}catch{C("failed")}finally{k(!1)}}},q=async()=>{if(t?.provider&&p.apiKey){O(!0),P(null);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:p.apiKey,...$?{providerSpecificData:f}:{},...A?{providerSpecificData:b}:{},...E?{providerSpecificData:_()}:{}})}),a=await e.json();P(a.valid?"success":"failed")}catch{P("failed")}finally{O(!1)}}},L=async()=>{if(t){F(!0);try{let e={name:p.name,priority:p.priority};if(!W&&p.apiKey){e.apiKey=p.apiKey;let a="success"===T;if(!a)try{O(!0),P(null);let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:p.apiKey,...$?{providerSpecificData:f}:{},...A?{providerSpecificData:b}:{},...E?{providerSpecificData:_()}:{}})});a=!!(await e.json()).valid,P(a?"success":"failed")}catch{P("failed")}finally{O(!1)}a&&(e.testStatus="active",e.lastError=null,e.lastErrorAt=null)}$&&(e.providerSpecificData={azureEndpoint:f.azureEndpoint,apiVersion:f.apiVersion,deployment:f.deployment,organization:f.organization}),A&&(e.providerSpecificData={accountId:b.accountId}),E&&j&&(e.providerSpecificData=_()),await n(e)}finally{F(!1)}}};return t?(0,s.jsx)(l.default,{isOpen:e,title:"Edit Connection",onClose:i,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(o.default,{label:"Name",value:p.name,onChange:e=>h({...p,name:e.target.value}),placeholder:W?"Account name":"Production Key"}),W&&t.email&&(0,s.jsxs)("div",{className:"bg-sidebar/50 p-3 rounded-lg",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted mb-1",children:"Email"}),(0,s.jsx)("p",{className:"font-medium",children:t.email})]}),(0,s.jsx)(o.default,{label:"Priority",type:"number",value:p.priority,onChange:e=>h({...p,priority:Number.parseInt(e.target.value,10)||1})}),!W&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.default,{label:"API Key",type:"password",value:p.apiKey,onChange:e=>h({...p,apiKey:e.target.value}),placeholder:"Enter new API key",hint:"Leave blank to keep the current API key.",className:"flex-1"}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(d.default,{onClick:q,disabled:!p.apiKey||S||I,variant:"secondary",children:S?"Checking...":"Check"})})]}),T&&(0,s.jsx)(c.default,{variant:"success"===T?"success":"error",children:"success"===T?"Valid":"Invalid"})]}),$&&(0,s.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,s.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.default,{label:"Azure Endpoint",value:f.azureEndpoint,onChange:e=>g({...f,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com",hint:"Your Azure OpenAI resource endpoint URL"}),(0,s.jsx)(o.default,{label:"Deployment Name",value:f.deployment,onChange:e=>g({...f,deployment:e.target.value}),placeholder:"gpt-4",hint:"The deployment name in your Azure resource"}),(0,s.jsx)(o.default,{label:"API Version",value:f.apiVersion,onChange:e=>g({...f,apiVersion:e.target.value}),placeholder:"2024-10-01-preview",hint:"Azure OpenAI API version to use"}),(0,s.jsx)(o.default,{label:"Organization",value:f.organization,onChange:e=>g({...f,organization:e.target.value}),placeholder:"Organization ID",hint:"Required for billing"})]})]}),E&&(0,s.jsx)(x.default,{label:"Region",value:j,onChange:e=>y(e.target.value),options:E.map(e=>({value:e.id,label:e.label}))}),!R&&!$&&!A&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(d.default,{onClick:M,variant:"secondary",disabled:N,children:N?"Testing...":"Test Connection"}),w&&(0,s.jsx)(c.default,{variant:"success"===w?"success":"error",children:"success"===w?"Valid":"Failed"})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.default,{onClick:L,fullWidth:!0,disabled:I,children:I?"Saving...":"Save"}),(0,s.jsx)(d.default,{onClick:i,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}u.propTypes={isOpen:i().bool.isRequired,connection:i().shape({id:i().string,name:i().string,email:i().string,priority:i().number,authType:i().string,provider:i().string,providerSpecificData:i().object}),proxyPools:i().arrayOf(i().shape({id:i().string,name:i().string})),onSave:i().func.isRequired,onClose:i().func.isRequired}},80752:(e,t,a)=>{a.d(t,{default:()=>m});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(1620),o=a(40197),d=a(81127);function c({icon:e,label:t,onClick:a,trailing:r,danger:n}){return(0,s.jsxs)("button",{onClick:a,className:`flex items-center gap-3 w-full px-4 py-2.5 text-sm transition-colors ${n?"text-red-500 hover:bg-red-500/10":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"}`,children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[20px] ${n?"":"text-text-muted"}`,children:e}),(0,s.jsx)("span",{className:"flex-1 text-left",children:t}),r&&(0,s.jsx)("span",{className:"text-base",children:r})]})}function m({onLogout:e}){let[t,a]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),[x,u]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1),{toggleTheme:f,isDark:g}=(0,l.D)(),b=(0,r.useRef)(null),v=async()=>{h(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}h(!1),u(!1)};return(0,r.useEffect)(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&a(!1)};if(t)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative",ref:b,children:[(0,s.jsx)("button",{onClick:()=>a(e=>!e),className:"flex items-center justify-center p-2 rounded-lg text-text-muted hover:text-text-main hover:bg-black/5 dark:hover:bg-white/5 transition-all",title:"Menu",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"grid_view"})}),t&&(0,s.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-60 bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl z-50 animate-in fade-in zoom-in-95 duration-150 overflow-hidden py-1",children:[(0,s.jsx)(c,{icon:"history",label:"Change Log",onClick:()=>{a(!1),i(!0)}}),(0,s.jsx)(c,{icon:g?"light_mode":"dark_mode",label:"Theme",onClick:()=>{f(),a(!1)}}),(0,s.jsx)(c,{icon:"power_settings_new",label:"Shutdown",danger:!0,onClick:()=>{a(!1),u(!0)}}),(0,s.jsx)(c,{icon:"logout",label:"Logout",danger:!0,onClick:()=>{a(!1),e()}})]})]}),(0,s.jsx)(o.default,{isOpen:n,onClose:()=>i(!1)}),(0,s.jsx)(d.ConfirmModal,{isOpen:x,onClose:()=>u(!1),onConfirm:v,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:p})]})}c.propTypes={icon:i().string.isRequired,label:i().string.isRequired,onClick:i().func.isRequired,trailing:i().node,danger:i().bool},m.propTypes={onLogout:i().func.isRequired}},81127:(e,t,a)=>{a.d(t,{ConfirmModal:()=>d,default:()=>o});var s=a(95155),r=a(12115),n=a(31474),i=a(92542),l=a(97677);function o({isOpen:e,onClose:t,title:a,children:i,footer:d,size:c="md",closeOnOverlay:m=!0,showTrafficLights:x=!0,className:u}){return((0,r.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),(0,r.useEffect)(()=>{let a=a=>{"Escape"===a.key&&e&&t()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t]),e)?(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in",onClick:m?t:void 0}),(0,s.jsxs)("div",{className:(0,n.cn)("relative w-full bg-surface","border border-border-subtle","rounded-[14px] shadow-[var(--shadow-elev)]","fade-in",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl",full:"max-w-4xl"}[c],u),children:[(a||x)&&(0,s.jsxs)("div",{className:"flex items-center justify-between p-2 border-b border-border-subtle",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[x&&(0,s.jsxs)("div",{className:"hidden md:flex items-center gap-2 mr-4 ml-2",children:[(0,s.jsx)(l.default,{text:"Close",position:"top",color:"#FF5F56",children:(0,s.jsx)("button",{onClick:t,"aria-label":"Close",title:"Close",className:"w-4 h-4 rounded-full bg-[#FF5F56] hover:brightness-90 transition-all cursor-pointer flex items-center justify-center group/dot",children:(0,s.jsx)("span",{className:"text-[9px] font-bold text-white opacity-0 group-hover/dot:opacity-100 transition-opacity leading-none",children:"✕"})})}),(0,s.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"}),(0,s.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"})]}),a&&(0,s.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:a})]}),(0,s.jsx)("button",{onClick:t,"aria-label":"Close",className:"md:hidden p-1.5 rounded-[10px] text-text-muted hover:bg-surface-2 hover:text-text-main transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsx)("div",{className:"p-6 max-h-[calc(85vh-100px)] overflow-y-auto custom-scrollbar",children:i}),d&&(0,s.jsx)("div",{className:"flex items-center justify-end gap-3 p-6 border-t border-border-subtle",children:d})]})]}):null}function d({isOpen:e,onClose:t,onConfirm:a,title:r="Confirm",message:n,confirmText:l="Confirm",cancelText:c="Cancel",variant:m="danger",loading:x=!1}){return(0,s.jsx)(o,{isOpen:e,onClose:t,title:r,size:"sm",footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.default,{variant:"ghost",onClick:t,disabled:x,children:c}),(0,s.jsx)(i.default,{variant:m,onClick:a,loading:x,children:l})]}),children:(0,s.jsx)("p",{className:"text-text-muted",children:n})})}},90882:(e,t,a)=>{a.d(t,{default:()=>d});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(35497),o=a(11059);function d({isOpen:e,provider:t,providerInfo:a,onSuccess:n,onClose:i,oauthMeta:c,idcConfig:m}){let[x,u]=(0,r.useState)("waiting"),[p,h]=(0,r.useState)(null),[f,g]=(0,r.useState)(""),[b,v]=(0,r.useState)(null),[j,y]=(0,r.useState)(!1),[N,k]=(0,r.useState)(null),[w,C]=(0,r.useState)(!1),S=(0,r.useRef)(null),O=(0,r.useRef)(!1),T=(0,r.useRef)(!1),{copied:P,copy:I}=(0,o.C)(),[F,W]=(0,r.useState)(!1),[$,A]=(0,r.useState)("/callback?code=..."),R=(0,r.useRef)(!1);(0,r.useEffect)(()=>{W("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname),A(`${window.location.origin}/callback?code=...`)},[]);let E=(0,r.useCallback)(async(e,a)=>{if(p)try{let s=await fetch(`/api/oauth/${t}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,redirectUri:p.redirectUri,codeVerifier:p.codeVerifier,state:a,...c?{meta:c}:{}})}),r=await s.json();if(!s.ok)throw Error(r.error);u("success"),n?.()}catch(e){v(e.message),u("error")}},[p,t,n,c]),_=(0,r.useCallback)(async e=>{if(p?.state)try{let t=await fetch("/api/oauth/xai/manual-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,state:p.state})}),a=await t.json();if(!t.ok)throw Error(a.error);u("success"),n?.()}catch(e){v(e.message),u("error")}},[p,n]),M=(0,r.useCallback)(async(e,a,s,r,i)=>{O.current=!1,C(!0);let l=Date.now()+(Number.isFinite(i)&&i>0?i:12e4);for(;Date.now()<l;){if(O.current){console.log("[OAuthModal] Polling aborted"),C(!1);return}if(await new Promise(e=>setTimeout(e,1e3*s)),O.current){console.log("[OAuthModal] Polling aborted after sleep"),C(!1);return}try{let i=await fetch(`/api/oauth/${t}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,codeVerifier:a,extraData:r})}),l=await i.json();if(l.success){O.current=!0,u("success"),C(!1),n?.();return}if("expired_token"===l.error||"access_denied"===l.error)throw Error(l.errorDescription||l.error);"slow_down"===l.error&&(s=Math.min(s+5,30))}catch(e){v(e.message),u("error"),C(!1);return}}v("Authorization timeout"),u("error"),C(!1)},[t,n]),q=(0,r.useCallback)(async()=>{if(t)try{let e;if(v(null),["github","qwen","kiro","kimi-coding","kilocode","codebuddy-cn","qoder"].includes(t)){y(!0),u("waiting");let e=new URL(`/api/oauth/${t}/device-code`,window.location.origin);"kiro"===t&&m?.startUrl&&(e.searchParams.set("start_url",m.startUrl),m.region&&e.searchParams.set("region",m.region),e.searchParams.set("auth_method","idc"));let a=await fetch(e.toString()),s=await a.json();if(!a.ok)throw Error(s.error);k(s);let r=s.verification_uri_complete||s.verification_uri;r&&window.open(r,"_blank","noopener,noreferrer");let n="kiro"===t?{_clientId:s._clientId,_clientSecret:s._clientSecret,_region:s._region,_authMethod:s._authMethod,_startUrl:s._startUrl}:"qoder"===t?{_qoderNonce:s._qoderNonce,_qoderMachineId:s._qoderMachineId,_qoderVerifier:s.codeVerifier}:null;M(s.device_code,s.codeVerifier,s.interval||5,n,Number.isFinite(s.expires_in)&&s.expires_in>0?1e3*s.expires_in:void 0);return}let a=window.location.port||("https:"===window.location.protocol?"443":"80");e="codex"===t?"http://localhost:1455/auth/callback":"xai"===t?"http://127.0.0.1:56121/callback":`http://localhost:${a}/callback`;let s=new URL(`/api/oauth/${t}/authorize`,window.location.origin);s.searchParams.set("redirect_uri",e),c&&Object.entries(c).forEach(([e,t])=>{t&&s.searchParams.set(e,t)});let r=await fetch(s.toString()),n=await r.json();if(!r.ok)throw Error(n.error);let i=!1,l=!1;if("codex"===t)try{let t=new URL("/api/oauth/codex/start-proxy",window.location.origin);t.searchParams.set("app_port",a),t.searchParams.set("state",n.state),t.searchParams.set("code_verifier",n.codeVerifier),t.searchParams.set("redirect_uri",e);let s=await fetch(t.toString()),r=await s.json();i=r.success,l=!!r.serverSide}catch{i=!1}let o=!1,d=!1;if("xai"===t)try{let t=new URL("/api/oauth/xai/start-proxy",window.location.origin);t.searchParams.set("app_port",a),t.searchParams.set("state",n.state),t.searchParams.set("code_verifier",n.codeVerifier),t.searchParams.set("redirect_uri",e);let s=await fetch(t.toString()),r=await s.json();if(o=r.success,d=!!r.serverSide,!o&&"port_busy"===r.reason)throw Error("Port 56121 in use; close the conflicting process and retry")}catch(e){if(e?.message)throw e;o=!1}h({...n,redirectUri:e,codexServerSide:l,xaiServerSide:d}),"codex"===t&&i||"xai"===t&&o||F&&"codex"!==t&&"xai"!==t?(u("waiting"),S.current=window.open(n.authUrl,"oauth_popup","width=600,height=700"),S.current||u("input")):(u("input"),window.open(n.authUrl,"_blank"))}catch(e){v(e.message),u("error")}},[t,F,M,c,m]);(0,r.useEffect)(()=>{e&&t?T.current||(T.current=!0,h(null),g(""),v(null),y(!1),k(null),C(!1),O.current=!1,q()):e||(O.current=!0,T.current=!1,"codex"===t?fetch("/api/oauth/codex/stop-proxy").catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy").catch(()=>{}))},[e,t,q]),(0,r.useEffect)(()=>{let e=p?.codexServerSide?"codex":p?.xaiServerSide?"xai":null;if(!e||!p?.state||R.current)return;let t=!1,a=0,s=async()=>{if(!t&&!R.current){a+=1;try{let a=await fetch(`/api/oauth/${e}/poll-status?state=${encodeURIComponent(p.state)}`),s=await a.json();if(t||R.current)return;if("done"===s.status){R.current=!0,u("success"),n?.();return}if("error"===s.status){R.current=!0,v(s.error||"Authentication failed"),u("error");return}}catch{}if(a>=200){R.current=!0,v("Authentication timeout"),u("error");return}setTimeout(s,1500)}};return setTimeout(s,1500),()=>{t=!0}},[p,n]),(0,r.useEffect)(()=>{let e;if(!p)return;R.current=!1;let t=async e=>{if(R.current)return;let{code:t,token:a,state:s,error:r,errorDescription:n}=e;if(r){R.current=!0,v(n||r),u("error");return}(a||t)&&(R.current=!0,await E(a||t,s))},a=e=>{let a=e.origin.includes("localhost")||e.origin.includes("127.0.0.1"),s=e.origin===window.location.origin;(a||s)&&e.data?.type==="oauth_callback"&&t(e.data.data)};window.addEventListener("message",a);try{(e=new BroadcastChannel("oauth_callback")).onmessage=e=>t(e.data)}catch(e){console.log("BroadcastChannel not supported")}let s=e=>{if("oauth_callback"===e.key&&e.newValue)try{let a=JSON.parse(e.newValue);t(a),localStorage.removeItem("oauth_callback")}catch(e){console.log("Failed to parse localStorage data")}};window.addEventListener("storage",s);try{let e=localStorage.getItem("oauth_callback");if(e){let a=JSON.parse(e);a.timestamp&&Date.now()-a.timestamp<3e4&&t(a),localStorage.removeItem("oauth_callback")}}catch{}return()=>{window.removeEventListener("message",a),window.removeEventListener("storage",s),e&&e.close()}},[p,E]);let L=async()=>{try{v(null);let e=f.trim();if(e.startsWith("eyJ")&&e.includes("."))return void await E(e,null);if("xai"===t&&e&&!e.includes("://")&&!e.includes("?")&&!e.includes("code="))return void await _(e);if("kimchi"===t&&e&&!e.includes("://")&&!e.includes("?"))return void await E(e,null);let a=new URL(e),s=a.searchParams.get("code"),r=a.searchParams.get("token"),n=a.searchParams.get("state"),i=a.searchParams.get("error");if(i)throw Error(a.searchParams.get("error_description")||i);if(!s&&!r)throw Error("xai"===t?"Paste the callback URL or copied xAI code":"kimchi"===t?"No Kimchi token found in URL":"No authorization code found in URL");await E(r||s,n)}catch(e){v(e.message),u("error")}},z=(0,r.useCallback)(()=>{"codex"===t?fetch("/api/oauth/codex/stop-proxy").catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy").catch(()=>{}),i()},[i,t]);if(!t||!a)return null;let D="xai"===t,U="kimchi"===t,K=N?.verification_uri_complete||N?.verification_uri||"",B=D?"Connect Grok Build OAuth":`Connect ${a.name}`,V=D?"http://127.0.0.1:56121/callback?code=... or copied code":U?`${$.replace("code=...","token=...")} or copied token`:$;return(0,s.jsx)(l.aF,{isOpen:e,title:B,onClose:z,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[("waiting"===x||"input"===x)&&!j&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,s.jsx)("span",{className:"text-sm",children:D?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,s.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,s.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",D?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.pd,{value:p?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,s.jsx)(l.$n,{variant:"secondary",icon:"auth_url"===P?"check":"content_copy",onClick:()=>I(p?.authUrl,"auth_url"),disabled:!p?.authUrl,children:"Copy"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===t?"callback URL or copied code":U?"callback URL or copied token":"callback URL"," here"]}),(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"xai"===t?"If xAI shows a code instead of redirecting, paste that code here.":U?"After authorization, copy the full callback URL or token from your browser.":"After authorization, copy the full URL from your browser."}),(0,s.jsx)(l.pd,{value:f,onChange:e=>g(e.target.value),placeholder:V,className:"font-mono text-xs"})]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:L,fullWidth:!0,disabled:!f,children:"Connect"}),(0,s.jsx)(l.$n,{onClick:z,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===x&&j&&N&&(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 login URL below and authorize:"}),(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:"Login URL"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("code",{className:"flex-1 text-sm break-all",children:K}),(0,s.jsx)(l.$n,{size:"sm",variant:"ghost",icon:"login_url"===P?"check":"content_copy",onClick:()=>I(K,"login_url"),disabled:!K}),(0,s.jsx)(l.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(K,"_blank","noopener,noreferrer"),disabled:!K,children:"Open"})]})]}),(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:N.user_code}),(0,s.jsx)(l.$n,{size:"sm",variant:"ghost",icon:"user_code"===P?"check":"content_copy",onClick:()=>I(N.user_code,"user_code")})]})]})]}),w&&(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..."]})]}),"success"===x&&(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)(l.$n,{onClick:z,fullWidth:!0,children:"Done"})]}),"error"===x&&(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:b}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:q,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,s.jsx)(l.$n,{onClick:z,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:i().bool.isRequired,provider:i().string,providerInfo:i().shape({name:i().string}),onSuccess:i().func,onClose:i().func.isRequired,oauthMeta:i().object,idcConfig:i().shape({startUrl:i().string,region:i().string})}},91450:(e,t,a)=>{a.d(t,{default:()=>l});var s=a(95155),r=a(14051),n=a.n(r),i=a(38587);function l({children: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)(i.default,{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:e})]})}l.propTypes={children:n().node.isRequired}},92173:(e,t,a)=>{a.d(t,{default:()=>c});var s=a(95155),r=a(98500),n=a.n(r),i=a(90620);let l=[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"Changelog",href:"#"}],o=[{label:"Documentation",href:"#"},{label:"API Reference",href:"#"},{label:"Help Center",href:"#"}],d=[{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:l.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:o.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.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"})]})]})]})})}},92542:(e,t,a)=>{a.d(t,{default:()=>l});var s=a(95155),r=a(31474);let n={primary:"bg-brand-500 hover:bg-brand-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",secondary:"bg-surface-2 hover:bg-surface-3 text-text-main border border-border disabled:opacity-50",outline:"border border-border text-text-main hover:bg-surface-2 hover:border-brand-500/40",ghost:"text-text-muted hover:bg-surface-2 hover:text-text-main",danger:"bg-red-500 hover:bg-red-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",success:"bg-green-600 hover:bg-green-700 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted"},i={sm:"h-7 px-3 text-xs rounded-[8px]",md:"h-9 px-4 text-sm rounded-[10px]",lg:"h-11 px-6 text-sm rounded-[10px]"};function l({children:e,variant:t="primary",size:a="md",icon:o,iconRight:d,disabled:c=!1,loading:m=!1,fullWidth:x=!1,className:u,...p}){return(0,s.jsxs)("button",{className:(0,r.cn)("inline-flex items-center justify-center gap-2 font-semibold transition-all duration-150 ease-out cursor-pointer","active:scale-[0.97] disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100",n[t],i[a],x&&"w-full",u),disabled:c||m,...p,children:[m?(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}):o?(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:o}):null,e,d&&!m&&(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:d})]})}},92622:(e,t,a)=>{a.d(t,{default:()=>N});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(98500),o=a.n(l),d=a(73321),c=a(31474),m=a(90620),x=a(88105),u=a(11059),p=a(92542),h=a(81127),f=a(14932);let g=["embedding","image","tts","stt"],b="/dashboard/media-providers/web",v=[{href:"/dashboard/endpoint",label:"Endpoint & Key",icon:"api"},{href:"/dashboard/providers",label:"Providers",icon:"dns"},{href:"/dashboard/combos",label:"Combos",icon:"layers"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"},{href:"/dashboard/mitm",label:"MITM",icon:"security"},{href:"/dashboard/token-saver",label:"Token Saver",icon:"savings"},{href:"/dashboard/cli-tools",label:"CLI Tools",icon:"terminal"}],j=[{href:"/dashboard/console-log",label:"Console Log",icon:"terminal"},{href:"/dashboard/translator",label:"Translator",icon:"translate"}],y=[{href:"/dashboard/proxy-pools",label:"Proxy Pools",icon:"lan"},{href:"/dashboard/skills",label:"Skills",icon:"extension"}];function N({onClose:e}){let t=(0,d.usePathname)(),[a,n]=(0,r.useState)(!1),[i,l]=(0,r.useState)(!1),[w,C]=(0,r.useState)(!1),[S,O]=(0,r.useState)(null),[T,P]=(0,r.useState)(!1),[I,F]=(0,r.useState)(!1),[W,$]=(0,r.useState)(0),[A,R]=(0,r.useState)(!1),{copied:E,copy:_}=(0,u.C)(2e3),M=m.h0.installCmdLatest;(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{e.enableTranslator&&R(!0)}).catch(()=>{})},[]),(0,r.useEffect)(()=>{fetch("/api/version").then(e=>e.json()).then(e=>{e.hasUpdate&&O(e)}).catch(()=>{})},[]);let q=e=>"/dashboard/endpoint"===e?"/dashboard"===t||t.startsWith("/dashboard/endpoint"):t.startsWith(e),L=async()=>{try{await navigator.clipboard.writeText(M)}catch{}_(M);let e=m.h0.shutdownCountdownSec;$(e);let t=setInterval(()=>{$(e-=1),e<=0&&(clearInterval(t),fetch("/api/version/shutdown",{method:"POST"}).catch(()=>{}),C(!0))},1e3)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("aside",{className:"flex w-72 flex-col border-r border-border-subtle bg-vibrancy backdrop-blur-xl transition-colors duration-300 min-h-full",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-6 pt-5 pb-2",children:[(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FF5F56]"}),(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FFBD2E]"}),(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#27C93F]"})]}),(0,s.jsxs)("div",{className:"px-6 py-4 flex flex-col gap-2",children:[(0,s.jsxs)(o(),{href:"/dashboard",className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-9 rounded-[10px] bg-gradient-to-br from-brand-500 to-brand-700 shadow-[var(--shadow-warm)]",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-white text-[20px]",children:"hub"})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("h1",{className:"text-lg font-semibold tracking-tight text-text-main",children:m.vQ.name}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["v",m.vQ.version]})]})]}),S&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 rounded p-1 -m-1",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-green-600 dark:text-amber-500",children:["↑ New version available: v",S.latestVersion]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{onClick:()=>P(!0),className:"px-2 py-1 rounded bg-green-600 hover:bg-green-700 dark:bg-amber-500 dark:hover:bg-amber-600 text-white text-[11px] font-semibold transition-colors cursor-pointer",children:"Update now"}),(0,s.jsx)("button",{onClick:()=>_(M),title:"Copy install command",className:"flex-1 text-left hover:opacity-80 transition-opacity cursor-pointer min-w-0",children:(0,s.jsx)("code",{className:"block text-[10px] text-green-600/80 dark:text-amber-400/70 font-mono truncate",children:E?"✓ copied!":M})})]})]})]}),(0,s.jsxs)("nav",{className:"flex-1 px-4 py-2 space-y-0.5 overflow-y-auto custom-scrollbar",children:[v.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",q(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",q(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),(0,s.jsxs)("div",{className:"pt-3 mt-2 space-y-0.5",children:[(0,s.jsx)("p",{className:"px-4 text-xs font-semibold text-text-muted/60 uppercase tracking-wider mb-2",children:"System"}),(0,s.jsxs)("button",{onClick:()=>n(e=>!e),className:(0,c.cn)("w-full flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",t.startsWith("/dashboard/media-providers")?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"perm_media"}),(0,s.jsx)("span",{className:"text-[13px] font-medium flex-1 text-left",children:"Media Providers"}),(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] transition-transform",style:{transform:a?"rotate(180deg)":"rotate(0deg)"},children:"expand_more"})]}),a&&(0,s.jsxs)("div",{className:"pl-4",children:[x.rj.filter(e=>g.includes(e.id)).map(a=>(0,s.jsxs)(o(),{href:`/dashboard/media-providers/${a.id}`,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-4 py-1 rounded-lg transition-all group",t.startsWith(`/dashboard/media-providers/${a.id}`)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:a.icon}),(0,s.jsx)("span",{className:"text-sm",children:a.label})]},a.id)),(0,s.jsxs)(o(),{href:b,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-4 py-1 rounded-lg transition-all group",t.startsWith(b)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"travel_explore"}),(0,s.jsx)("span",{className:"text-sm",children:"Web Fetch & Search"})]},"web")]}),y.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",q(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",q(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),j.map(t=>"/dashboard/translator"!==t.href||A?(0,s.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",q(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",q(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href):null),(0,s.jsxs)("button",{onClick:()=>l(!0),className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group w-full","text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px] group-hover:text-primary transition-colors",children:"computer"}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:"Remote"})]}),(0,s.jsxs)(o(),{href:"/dashboard/profile",onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",q("/dashboard/profile")?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",q("/dashboard/profile")?"fill-1":"group-hover:text-primary transition-colors"),children:"settings"}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:"Settings"})]})]})]})]}),(0,s.jsx)(f.A,{isOpen:i,onClose:()=>l(!1)}),(0,s.jsx)(h.ConfirmModal,{isOpen:T,onClose:()=>P(!1),onConfirm:()=>{P(!1),F(!0)},title:"Update 9Router",message:`Show install command for v${S?.latestVersion||""}? You can copy it and shutdown to install manually.`,confirmText:"Show Command",cancelText:"Cancel",variant:"primary"}),(w||I)&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm p-6",children:I?(0,s.jsx)(k,{latestVersion:S?.latestVersion,installCmd:M,copied:E,onCopyAndShutdown:L,onCancel:()=>{F(!1),$(0)},countdown:W,isDisconnected:w}):(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)(p.default,{variant:"secondary",onClick:()=>globalThis.location.reload(),children:"Reload Page"})]})})]})}function k({latestVersion:e,installCmd:t,copied:a,onCopyAndShutdown:r,onCancel:n,countdown:i,isDisconnected:l}){let o=i>0;return(0,s.jsxs)("div",{className:"w-full max-w-lg rounded-xl bg-neutral-900/95 border border-white/10 p-6 text-white",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-11 rounded-full bg-amber-500/20 text-amber-400",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"content_copy"})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("h2",{className:"text-lg font-semibold",children:["Update 9Router",e?` to v${e}`:""]}),(0,s.jsx)("p",{className:"text-xs text-white/60",children:l?"Server stopped. Paste the command into a terminal to install.":o?`Command copied. Server will stop in ${i}s...`:"Click the button below to copy the install command and shutdown."})]})]}),(0,s.jsx)("p",{className:"text-sm text-white/80 mb-2",children:"Install command:"}),(0,s.jsx)("div",{className:"w-full px-3 py-2 rounded bg-white/5 mb-4",children:(0,s.jsx)("code",{className:"text-xs font-mono text-amber-400 break-all",children:t})}),(0,s.jsxs)("ol",{className:"text-xs text-white/70 space-y-1 list-decimal list-inside mb-4",children:[(0,s.jsxs)("li",{children:["Click ",(0,s.jsx)("strong",{children:"Copy & Shutdown"})," below."]}),(0,s.jsx)("li",{children:"Paste the command into your terminal and press Enter."}),(0,s.jsxs)("li",{children:["Run ",(0,s.jsx)("code",{className:"px-1 rounded bg-white/10 text-green-400",children:"n9router"})," again after install."]})]}),l?(0,s.jsx)(p.default,{variant:"secondary",fullWidth:!0,onClick:()=>globalThis.location.reload(),children:"Reload Page"}):(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(p.default,{variant:"secondary",onClick:n,disabled:o,children:"Cancel"}),(0,s.jsx)(p.default,{variant:"primary",fullWidth:!0,onClick:r,disabled:o,children:a?"✓ Copied — shutting down...":o?`Shutting down in ${i}s`:"Copy & Shutdown"})]})]})}N.propTypes={onClose:i().func},k.propTypes={latestVersion:i().string,installCmd:i().string.isRequired,copied:i().bool,onCopyAndShutdown:i().func.isRequired,onCancel:i().func.isRequired,countdown:i().number,isDisconnected:i().bool}},94230:(e,t,a)=>{a.d(t,{default:()=>d});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(35497),o=a(11059);function d({isOpen:e,provider:t,onSuccess:a,onClose:n}){let[i,c]=(0,r.useState)("loading"),[m,x]=(0,r.useState)(""),[u,p]=(0,r.useState)(null),[h,f]=(0,r.useState)(""),[g,b]=(0,r.useState)(null),{copied:v,copy:j}=(0,o.C)(),y=(0,r.useRef)(!1);(0,r.useEffect)(()=>{e||(y.current=!1)},[e]),(0,r.useEffect)(()=>{e&&t&&(async()=>{try{b(null),c("loading");let e=await fetch(`/api/oauth/kiro/social-authorize?provider=${t}`),a=await e.json();if(!e.ok)throw Error(a.error);p(a),x(a.authUrl),c("input"),y.current||(y.current=!0,window.open(a.authUrl,"_blank"))}catch(e){b(e.message),c("error")}})()},[e,t]);let N=async()=>{try{let e;b(null);try{e=new URL(h)}catch(e){throw Error("Invalid callback URL format")}let s=e.searchParams.get("code");e.searchParams.get("state");let r=e.searchParams.get("error");if(r)throw Error(e.searchParams.get("error_description")||r);if(!s)throw Error("No authorization code found in URL");let n=await fetch("/api/oauth/kiro/social-exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:s,codeVerifier:u.codeVerifier,provider:t})}),i=await n.json();if(!n.ok)throw Error(i.error);c("success"),a?.()}catch(e){b(e.message),c("error")}},k="google"===t?"Google":"GitHub";return(0,s.jsx)(l.aF,{isOpen:e,title:`Connect Kiro via ${k}`,onClose:n,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:["loading"===i&&(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:"Initializing..."}),(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["Setting up ",k," authentication"]})]}),"input"===i&&(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)(l.pd,{value:m,readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,s.jsx)(l.$n,{variant:"secondary",icon:"auth_url"===v?"check":"content_copy",onClick:()=>j(m,"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 address bar."}),(0,s.jsx)(l.pd,{value:h,onChange:e=>f(e.target.value),placeholder:"kiro://kiro.kiroAgent/authenticate-success?code=...",className:"font-mono text-xs"})]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:N,fullWidth:!0,disabled:!h,children:"Connect"}),(0,s.jsx)(l.$n,{onClick:n,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"success"===i&&(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 Kiro account via ",k," has been connected."]}),(0,s.jsx)(l.$n,{onClick:n,fullWidth:!0,children:"Done"})]}),"error"===i&&(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:g}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:()=>c("input"),variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,s.jsx)(l.$n,{onClick:n,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:i().bool.isRequired,provider:i().oneOf(["google","github"]).isRequired,onSuccess:i().func,onClose:i().func.isRequired}},95088:(e,t,a)=>{a.d(t,{default:()=>d});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(35497);let o="https://gitlab.com";function d({isOpen:e,providerInfo:t,onSuccess:a,onClose:n}){let i,[c,m]=(0,r.useState)(null),[x,u]=(0,r.useState)(o),[p,h]=(0,r.useState)(""),[f,g]=(0,r.useState)(""),[b,v]=(0,r.useState)(""),[j,y]=(0,r.useState)(!1),[N,k]=(0,r.useState)(null),[w,C]=(0,r.useState)(!1),[S,O]=(0,r.useState)(null),T=()=>{m(null),u(o),h(""),g(""),v(""),k(null),y(!1),C(!1),O(null),n()},P=async()=>{if(!b.trim())return void k("Personal Access Token is required");y(!0),k(null);try{let e=await fetch("/api/oauth/gitlab/pat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:b.trim(),baseUrl:x.trim()||o})}),t=await e.json();if(!e.ok)throw Error(t.error||"Authentication failed");a?.(),T()}catch(e){k(e.message)}finally{y(!1)}};return e?w&&S?(0,s.jsx)(l.LF,{isOpen:!0,provider:"gitlab",providerInfo:t,oauthMeta:S,onSuccess:()=>{a?.(),T()},onClose:()=>{C(!1),O(null)}}):(0,s.jsx)(l.aF,{isOpen:e,title:"Connect GitLab Duo",onClose:T,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[!c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Choose how to authenticate with GitLab Duo:"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsxs)("button",{onClick:()=>m("oauth"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"lock_open"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"OAuth App"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab OAuth application"})]})]}),(0,s.jsxs)("button",{onClick:()=>m("pat"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"key"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Personal Access Token"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab PAT with api scope"})]})]})]})]}),"oauth"===c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Create an OAuth app at"," ",(0,s.jsx)("a",{href:`${x.trim()||o}/-/profile/applications`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Applications"})," ","with redirect URI"," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:(i=window.location.port||("https:"===window.location.protocol?"443":"80"),`http://localhost:${i}/callback`)})]}),(0,s.jsx)(l.pd,{label:"GitLab Base URL",value:x,onChange:e=>u(e.target.value),placeholder:o}),(0,s.jsx)(l.pd,{label:"Client ID",value:p,onChange:e=>h(e.target.value),placeholder:"Your OAuth application client ID"}),(0,s.jsx)(l.pd,{label:"Client Secret (optional for PKCE)",value:f,onChange:e=>g(e.target.value),placeholder:"Leave empty for public PKCE app"}),N&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:()=>{p.trim()?(k(null),O({baseUrl:x.trim()||o,clientId:p.trim(),clientSecret:f.trim()}),C(!0)):k("Client ID is required")},fullWidth:!0,disabled:!p.trim(),children:"Authorize"}),(0,s.jsx)(l.$n,{onClick:()=>{m(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"pat"===c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Create a PAT at"," ",(0,s.jsx)("a",{href:`${x.trim()||o}/-/user_settings/personal_access_tokens`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Access Tokens"})," ","with scopes: ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"api"}),","," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"read_user"}),", and"," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"ai_features"}),"."]}),(0,s.jsx)(l.pd,{label:"GitLab Base URL",value:x,onChange:e=>u(e.target.value),placeholder:o}),(0,s.jsx)(l.pd,{label:"Personal Access Token",value:b,onChange:e=>v(e.target.value),placeholder:"glpat-xxxxxxxxxxxxxxxxxxxx",type:"password"}),N&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:P,fullWidth:!0,disabled:!b.trim()||j,loading:j,children:"Connect"}),(0,s.jsx)(l.$n,{onClick:()=>{m(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})}):null}d.propTypes={isOpen:i().bool.isRequired,providerInfo:i().shape({name:i().string}),onSuccess:i().func,onClose:i().func.isRequired}},96748:(e,t,a)=>{a.d(t,{default:()=>d});var s=a(95155),r=a(12115),n=a(14051),i=a.n(n),l=a(35497);let o="https://api.openai.com/v1";function d({isOpen:e,onClose:t,onCreated:a,onSaved:n,node:i}){let c=!!i,[m,x]=(0,r.useState)({name:"",prefix:"",baseUrl:o}),[u,p]=(0,r.useState)(!1),[h,f]=(0,r.useState)(""),[g,b]=(0,r.useState)(""),[v,j]=(0,r.useState)(!1),[y,N]=(0,r.useState)(null);(0,r.useEffect)(()=>{e&&(N(null),f(""),b(""),c?x({name:i.name||"",prefix:i.prefix||"",baseUrl:i.baseUrl||o}):x({name:"",prefix:"",baseUrl:o}))},[e,c,i]);let k=async()=>{if(m.name.trim()&&m.prefix.trim()&&m.baseUrl.trim()){p(!0);try{let e=c?`/api/provider-nodes/${i.id}`:"/api/provider-nodes",t=c?"PUT":"POST",s={name:m.name,prefix:m.prefix,baseUrl:m.baseUrl};c||(s.type="custom-embedding");let r=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),l=await r.json();r.ok&&(c?n?.(l.node):a?.(l.node))}catch(e){console.log("Error saving custom embedding node:",e)}finally{p(!1)}}},w=async()=>{j(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:m.baseUrl,apiKey:h,type:"custom-embedding",modelId:g.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{j(!1)}};return(0,s.jsx)(l.aF,{isOpen:e,title:c?"Edit Custom Embedding":"Add Custom Embedding",onClose:t,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(l.pd,{label:"Name",value:m.name,onChange:e=>x({...m,name:e.target.value}),placeholder:"Voyage AI",hint:"Required. A friendly label for this embedding provider."}),(0,s.jsx)(l.pd,{label:"Prefix",value:m.prefix,onChange:e=>x({...m,prefix:e.target.value}),placeholder:"voyage",hint:"Required. Used as the provider prefix for model IDs (e.g. voyage/voyage-3)."}),(0,s.jsx)(l.pd,{label:"Base URL",value:m.baseUrl,onChange:e=>x({...m,baseUrl:e.target.value}),placeholder:"https://api.voyageai.com/v1",hint:"Most embedding APIs are OpenAI-compatible: Voyage, Cohere, Jina, Mistral, Together..."}),(0,s.jsx)(l.pd,{label:"API Key (for Check)",type:"password",value:h,onChange:e=>f(e.target.value)}),(0,s.jsx)(l.pd,{label:"Model ID (for Check)",value:g,onChange:e=>b(e.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",hint:"Required for validation. Will send a test embeddings request."}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(l.$n,{onClick:w,disabled:!h||!g.trim()||v||!m.baseUrl.trim(),variant:"secondary",children:v?"Checking...":"Check"}),(()=>{if(!y)return null;let{valid:e,error:t,dimensions:a}=y;return e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Ex,{variant:"success",children:"Valid"}),a&&(0,s.jsxs)("span",{className:"text-sm text-text-muted",children:[a," dims"]})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)(l.Ex,{variant:"error",children:"Invalid"}),t&&(0,s.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.$n,{onClick:k,fullWidth:!0,disabled:!m.name.trim()||!m.prefix.trim()||!m.baseUrl.trim()||u,children:u?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,s.jsx)(l.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onCreated:i().func,onSaved:i().func,node:i().shape({id:i().string,name:i().string,prefix:i().string,baseUrl:i().string})}},97677:(e,t,a)=>{a.d(t,{default:()=>r});var s=a(95155);function r({text:e,children:t,position:a="top",color:n}){let i=n?"":"bg-gray-900";return(0,s.jsxs)("div",{className:"relative inline-flex group/tt",children:[t,(0,s.jsx)("div",{className:`pointer-events-none absolute ${{top:"bottom-full left-1/2 -translate-x-1/2 mb-1.5",bottom:"top-full left-1/2 -translate-x-1/2 mt-1.5",left:"right-full top-1/2 -translate-y-1/2 mr-1.5",right:"left-full top-1/2 -translate-y-1/2 ml-1.5"}[a]} z-50 w-max max-w-56 rounded px-2 py-1 text-[11px] leading-snug ${i} text-white opacity-0 group-hover/tt:opacity-100 transition-opacity duration-150 whitespace-normal`,style:n?{backgroundColor:n}:{},children:e})]})}},98542:(e,t,a)=>{a.d(t,{default:()=>n});var s=a(95155),r=a(31474);function n({checked:e=!1,onChange:t,label:a,description:i,disabled:l=!1,size:o="md",className:d}){let c={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,s.jsxs)("div",{className:(0,r.cn)("flex items-center gap-3",l&&"opacity-50 cursor-not-allowed",d),children:[(0,s.jsx)("button",{type:"button",role:"switch","aria-checked":e,disabled:l,onClick:()=>{!l&&t&&t(!e)},className:(0,r.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-brand-500/30",e?"bg-brand-500":"bg-surface-3",c[o].track,l&&"cursor-not-allowed"),children:(0,s.jsx)("span",{className:(0,r.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out",e?c[o].translate:"translate-x-0.5",c[o].thumb,"mt-0.5")})}),(a||i)&&(0,s.jsxs)("div",{className:"flex flex-col",children:[a&&(0,s.jsx)("span",{className:"text-sm font-medium text-text-main",children:a}),i&&(0,s.jsx)("span",{className:"text-xs text-text-muted",children:i})]})]})}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3554],{78707:(e,t,a)=>{Promise.resolve().then(a.bind(a,85309))},85309:(e,t,a)=>{"use strict";a.d(t,{default:()=>x});var s=a(95155),l=a(12115),r=a(98500),i=a.n(r),o=a(35497),c=a(3534),d=a(28777),n=a(71727);let u="https://9router.com";function x({toolId:e,machineId:t}){let a=c.dM[e],[r,v]=(0,l.useState)([]),[h,m]=(0,l.useState)(!0),[p,b]=(0,l.useState)({}),[f,j]=(0,l.useState)(!1),[E,P]=(0,l.useState)(!1),[w,k]=(0,l.useState)(""),[g,N]=(0,l.useState)(!1),[y,A]=(0,l.useState)(""),[S,_]=(0,l.useState)([]);(0,l.useEffect)(()=>{let e=!0;return(async()=>{try{let[t,a,s,l]=await Promise.all([fetch("/api/providers"),fetch("/api/settings"),fetch("/api/tunnel/status"),fetch("/api/keys")]);if(!e)return;if(t.ok){let e=await t.json();v(e.connections||[])}if(a.ok){let e=await a.json();j(e.cloudEnabled||!1)}if(s.ok){let e=await s.json();P(!!(e.tunnel?.enabled||e.tunnel?.settingsEnabled)),k(e.tunnel?.publicUrl||""),N(!!(e.tailscale?.enabled||e.tailscale?.settingsEnabled)),A(e.tailscale?.tunnelUrl||"")}if(l.ok){let e=await l.json();_(e.keys||[])}}catch(e){console.log("Error loading tool data:",e)}finally{e&&m(!1)}})(),()=>{e=!1}},[]);let C=()=>r.filter(e=>!1!==e.isActive),M=(0,l.useCallback)((e,t,a)=>{b(s=>s[e]?.[t]===a?s:{...s,[e]:{...s[e],[t]:a}})},[]);return a?(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-4 px-1 sm:px-0",children:[(0,s.jsxs)(i(),{href:"/dashboard/cli-tools",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary w-fit",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"arrow_back"}),"Back to CLI Tools"]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("h1",{className:"text-xl font-semibold text-text-main sm:text-2xl",children:a.name}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:a.description})]}),h?(0,s.jsx)(o.Qv,{}):(()=>{let t,l,r,i=(t=C(),l=[],r=new Set,t.forEach(e=>{let t=d.Xg[e.provider]||e.provider;(0,d.KC)(e.provider).forEach(a=>{let s=`${t}/${a.id}`;r.has(s)||(r.add(s),l.push({value:s,label:`${t}/${a.id}`,provider:e.provider,alias:t,connectionName:e.name,modelId:a.id}))})}),l).length>0,o={tool:a,isExpanded:!0,onToggle:()=>{},baseUrl:E&&w?w:f&&u?u:window.location.origin,apiKeys:S,tunnelEnabled:E,tunnelPublicUrl:w,tailscaleEnabled:g,tailscaleUrl:y};switch(e){case"claude":return(0,s.jsx)(n.Tk,{...o,activeProviders:C(),modelMappings:p[e]||{},onModelMappingChange:(t,a)=>M(e,t,a),hasActiveProviders:i,cloudEnabled:f});case"codex":return(0,s.jsx)(n.Ah,{...o,activeProviders:C(),cloudEnabled:f});case"opencode":return(0,s.jsx)(n.qO,{...o,activeProviders:C(),cloudEnabled:f});case"cowork":return(0,s.jsx)(n.Q6,{...o,activeProviders:C(),hasActiveProviders:i,cloudEnabled:f,cloudUrl:u,tunnelEnabled:E,tunnelPublicUrl:w,tailscaleEnabled:g,tailscaleUrl:y});case"droid":return(0,s.jsx)(n.ZM,{...o,activeProviders:C(),hasActiveProviders:i,cloudEnabled:f});case"openclaw":return(0,s.jsx)(n.yZ,{...o,activeProviders:C(),hasActiveProviders:i,cloudEnabled:f});case"hermes":return(0,s.jsx)(n.RF,{...o,activeProviders:C(),hasActiveProviders:i,cloudEnabled:f});case"copilot":return(0,s.jsx)(n.h1,{...o,activeProviders:C(),cloudEnabled:f});case"cline":return(0,s.jsx)(n.aG,{...o,activeProviders:C(),cloudEnabled:f});case"kilo":return(0,s.jsx)(n.c9,{...o,activeProviders:C(),cloudEnabled:f});case"deepseek-tui":return(0,s.jsx)(n.lF,{...o,activeProviders:C(),hasActiveProviders:i,cloudEnabled:f});case"jcode":return(0,s.jsx)(n.mW,{...o,activeProviders:C(),hasActiveProviders:i,cloudEnabled:f});case"cursor-byok":return(0,s.jsx)(n.Mz,{...o,activeProviders:C(),hasActiveProviders:i,cloudEnabled:f});default:return(0,s.jsx)(n.a7,{toolId:e,...o,activeProviders:C(),cloudEnabled:f,tunnelEnabled:E})}})()]}):(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-4 px-1 sm:px-0",children:[(0,s.jsxs)(i(),{href:"/dashboard/cli-tools",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary w-fit",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"arrow_back"}),"Back to CLI Tools"]}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Tool not found or disabled."})]})}}},e=>{e.O(0,[2574,3862,128,5772,1321,705,5497,8198,5396,8441,3794,7358],()=>e(e.s=78707)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2326],{53501:(e,s,l)=>{"use strict";l.d(s,{default:()=>m});var t=l(95155),a=l(12115),r=l(35497),i=l(3534),c=l(83433),n=l(98500),o=l.n(n),d=l(5772);function x({toolId:e,tool:s,status:l}){let a=l?l.installed?l.has9Router?{label:"Connected",cls:"bg-green-500/10 text-green-600 dark:text-green-400"}:{label:"Not configured",cls:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400"}:{label:"Not installed",cls:"bg-gray-500/10 text-gray-500"}:{label:"Unknown",cls:"bg-gray-500/10 text-gray-500"};return(0,t.jsx)(o(),{href:`/dashboard/cli-tools/${e}`,className:"block",children:(0,t.jsx)(r.Zp,{padding:"sm",className:"h-full overflow-hidden hover:border-primary/50 transition-colors cursor-pointer",children:(0,t.jsx)("div",{className:"flex h-full flex-col gap-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:s.image?(0,t.jsx)(d.default,{src:s.image,alt:s.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:e=>{e.target.style.display="none"}}):s.icon?(0,t.jsx)("span",{className:"material-symbols-outlined text-[28px]",style:{color:s.color},children:s.icon}):null}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"font-medium text-sm truncate",children:s.name}),(0,t.jsx)("span",{className:`inline-block mt-1 px-1.5 py-0.5 text-[10px] font-medium rounded-full ${a.cls}`,children:a.label})]}),(0,t.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px] shrink-0",children:"chevron_right"})]})})})})}function m({machineId:e}){let[s,l]=(0,a.useState)(!0),[n,o]=(0,a.useState)({});if((0,a.useEffect)(()=>{let e=!0;return(async()=>{try{let s=await fetch("/api/cli-tools/all-statuses");s.ok&&e&&o(await s.json())}catch(e){console.log("Error fetching tool statuses:",e)}finally{e&&l(!1)}})(),()=>{e=!1}},[]),s)return(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:[(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{})]});let d=Object.entries(i.dM),g=Object.entries(i.wn);return(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-6 px-1 sm:px-0",children:[(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:d.map(([e,s])=>(0,t.jsx)(x,{toolId:e,tool:s,status:n[e]},e))}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,t.jsx)("span",{className:"material-symbols-outlined text-[18px] text-primary",children:"security"}),(0,t.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:"MITM Tools"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:g.map(([e,s])=>(0,t.jsx)(c.gY,{tool:s},e))})]})]})}},70044:(e,s,l)=>{Promise.resolve().then(l.bind(l,53501))}},e=>{e.O(0,[2574,3862,128,5772,1321,705,5497,8198,4406,8441,3794,7358],()=>e(e.s=70044)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2326],{53501:(e,s,l)=>{"use strict";l.d(s,{default:()=>m});var t=l(95155),a=l(12115),r=l(35497),i=l(3534),c=l(71727),n=l(98500),o=l.n(n),d=l(5772);function x({toolId:e,tool:s,status:l}){let a=l?l.installed?l.has9Router?{label:"Connected",cls:"bg-green-500/10 text-green-600 dark:text-green-400"}:{label:"Not configured",cls:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400"}:{label:"Not installed",cls:"bg-gray-500/10 text-gray-500"}:{label:"Unknown",cls:"bg-gray-500/10 text-gray-500"};return(0,t.jsx)(o(),{href:`/dashboard/cli-tools/${e}`,className:"block",children:(0,t.jsx)(r.Zp,{padding:"sm",className:"h-full overflow-hidden hover:border-primary/50 transition-colors cursor-pointer",children:(0,t.jsx)("div",{className:"flex h-full flex-col gap-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:s.image?(0,t.jsx)(d.default,{src:s.image,alt:s.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:e=>{e.target.style.display="none"}}):s.icon?(0,t.jsx)("span",{className:"material-symbols-outlined text-[28px]",style:{color:s.color},children:s.icon}):null}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"font-medium text-sm truncate",children:s.name}),(0,t.jsx)("span",{className:`inline-block mt-1 px-1.5 py-0.5 text-[10px] font-medium rounded-full ${a.cls}`,children:a.label})]}),(0,t.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px] shrink-0",children:"chevron_right"})]})})})})}function m({machineId:e}){let[s,l]=(0,a.useState)(!0),[n,o]=(0,a.useState)({});if((0,a.useEffect)(()=>{let e=!0;return(async()=>{try{let s=await fetch("/api/cli-tools/all-statuses");s.ok&&e&&o(await s.json())}catch(e){console.log("Error fetching tool statuses:",e)}finally{e&&l(!1)}})(),()=>{e=!1}},[]),s)return(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:[(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{})]});let d=Object.entries(i.dM),g=Object.entries(i.wn);return(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-6 px-1 sm:px-0",children:[(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:d.map(([e,s])=>(0,t.jsx)(x,{toolId:e,tool:s,status:n[e]},e))}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,t.jsx)("span",{className:"material-symbols-outlined text-[18px] text-primary",children:"security"}),(0,t.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:"MITM Tools"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:g.map(([e,s])=>(0,t.jsx)(c.gY,{tool:s},e))})]})]})}},70044:(e,s,l)=>{Promise.resolve().then(l.bind(l,53501))}},e=>{e.O(0,[2574,3862,128,5772,1321,705,5497,8198,5396,8441,3794,7358],()=>e(e.s=70044)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6607],{23879:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var a=s(95155),n=s(12115),i=s(3534),l=s(28777),o=s(88105),r=s(83433);function c(){let[e,t]=(0,n.useState)([]),[s,c]=(0,n.useState)([]),[d,u]=(0,n.useState)({}),[x,p]=(0,n.useState)(!1),[h,m]=(0,n.useState)(null),[f,w]=(0,n.useState)({running:!1,certExists:!1,dnsStatus:{},hasCachedPassword:!1}),[g,v]=(0,n.useState)(!1),y=async()=>{try{let e=await fetch("/api/providers");if(e.ok){let s=await e.json();t(s.connections||[])}}catch{}},S=async()=>{try{let e=await fetch("/api/keys");if(e.ok){let t=await e.json();c(t.keys||[])}}catch{}},k=async()=>{try{let e=await fetch("/api/models/alias");if(e.ok){let t=await e.json();u(t.aliases||{})}}catch{}},j=async()=>{try{let e=await fetch("/api/settings");if(e.ok){let t=await e.json();p(t.cloudEnabled||!1),v(!!t.tokenSwapEnabled)}}catch{}};(0,n.useEffect)(()=>{(async()=>{await Promise.all([y(),S(),k(),j()])})()},[]);let b=()=>e.filter(e=>!1!==e.isActive),E=Object.entries(i.wn);return(0,a.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-6 px-1 sm:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h1",{className:"text-xl font-semibold text-text-main sm:text-2xl",children:"MITM"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Route supported IDE traffic through 9Router with local DNS interception."})]}),(0,a.jsxs)("div",{className:"flex items-start gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,a.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:"⚠️ MITM intercepts HTTPS traffic of IDE tools (Antigravity, GitHub Copilot, Kiro) via local CA to redirect requests to your providers. May violate ToS → account ban. Use at your own risk."})]}),(0,a.jsx)(r.tA,{apiKeys:s,cloudEnabled:x,onStatusChange:w}),(0,a.jsx)("div",{className:"grid gap-3 sm:gap-4",children:E.map(([t,i])=>(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(r.kn,{tool:i,isExpanded:h===t,onToggle:()=>m(h===t?null:t),serverRunning:f.running,dnsActive:f.dnsStatus?.[t]||!1,hasCachedPassword:f.hasCachedPassword||!1,apiKeys:s,activeProviders:b(),hasActiveProviders:b().some(e=>(0,l.KC)(e.provider).length>0||(0,o.mq)(e.provider)||(0,o.gb)(e.provider)),modelAliases:d,cloudEnabled:x,tokenSwapActive:i.supportsTokenSwap&&g,onDnsChange:e=>w(t=>({...t,dnsStatus:e.dnsStatus??t.dnsStatus}))}),i.supportsTokenSwap&&(0,a.jsx)(r.xm,{tool:i,connections:e,serverRunning:f.running,dnsActive:f.dnsStatus?.[t]||!1,onToggle:e=>v(e),onRefreshConnections:y})]},t))})]})}},60817:(e,t,s)=>{Promise.resolve().then(s.bind(s,23879))}},e=>{e.O(0,[2574,3862,128,5772,1321,705,5497,8198,4406,8441,3794,7358],()=>e(e.s=60817)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6607],{23879:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var a=s(95155),n=s(12115),i=s(3534),l=s(28777),o=s(88105),r=s(71727);function c(){let[e,t]=(0,n.useState)([]),[s,c]=(0,n.useState)([]),[d,u]=(0,n.useState)({}),[x,p]=(0,n.useState)(!1),[h,m]=(0,n.useState)(null),[f,w]=(0,n.useState)({running:!1,certExists:!1,dnsStatus:{},hasCachedPassword:!1}),[g,v]=(0,n.useState)(!1),y=async()=>{try{let e=await fetch("/api/providers");if(e.ok){let s=await e.json();t(s.connections||[])}}catch{}},S=async()=>{try{let e=await fetch("/api/keys");if(e.ok){let t=await e.json();c(t.keys||[])}}catch{}},k=async()=>{try{let e=await fetch("/api/models/alias");if(e.ok){let t=await e.json();u(t.aliases||{})}}catch{}},j=async()=>{try{let e=await fetch("/api/settings");if(e.ok){let t=await e.json();p(t.cloudEnabled||!1),v(!!t.tokenSwapEnabled)}}catch{}};(0,n.useEffect)(()=>{(async()=>{await Promise.all([y(),S(),k(),j()])})()},[]);let b=()=>e.filter(e=>!1!==e.isActive),E=Object.entries(i.wn);return(0,a.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-6 px-1 sm:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h1",{className:"text-xl font-semibold text-text-main sm:text-2xl",children:"MITM"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Route supported IDE traffic through 9Router with local DNS interception."})]}),(0,a.jsxs)("div",{className:"flex items-start gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,a.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:"⚠️ MITM intercepts HTTPS traffic of IDE tools (Antigravity, GitHub Copilot, Kiro) via local CA to redirect requests to your providers. May violate ToS → account ban. Use at your own risk."})]}),(0,a.jsx)(r.tA,{apiKeys:s,cloudEnabled:x,onStatusChange:w}),(0,a.jsx)("div",{className:"grid gap-3 sm:gap-4",children:E.map(([t,i])=>(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(r.kn,{tool:i,isExpanded:h===t,onToggle:()=>m(h===t?null:t),serverRunning:f.running,dnsActive:f.dnsStatus?.[t]||!1,hasCachedPassword:f.hasCachedPassword||!1,apiKeys:s,activeProviders:b(),hasActiveProviders:b().some(e=>(0,l.KC)(e.provider).length>0||(0,o.mq)(e.provider)||(0,o.gb)(e.provider)),modelAliases:d,cloudEnabled:x,tokenSwapActive:i.supportsTokenSwap&&g,onDnsChange:e=>w(t=>({...t,dnsStatus:e.dnsStatus??t.dnsStatus}))}),i.supportsTokenSwap&&(0,a.jsx)(r.xm,{tool:i,connections:e,serverRunning:f.running,dnsActive:f.dnsStatus?.[t]||!1,onToggle:e=>v(e),onRefreshConnections:y})]},t))})]})}},60817:(e,t,s)=>{Promise.resolve().then(s.bind(s,23879))}},e=>{e.O(0,[2574,3862,128,5772,1321,705,5497,8198,5396,8441,3794,7358],()=>e(e.s=60817)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,513,516,543,552,675,747,748,836,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1545,1566,1644,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2179,2198,2284,2296,2499,2536,2560,2772,2785,2797,2919,2922,3025,3038,3079,3323,3397,3472,3519,3549,3562,3568,3883,3888,4010,4061,4245,4286,4346,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,5968,6091,6107,6121,6215,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6835,6919,6934,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9194,9199,9321,9369,9461,9595,9678,9709,9884],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);