@ltgiang/9router 0.5.12 → 0.5.13

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 (1743) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +15 -13
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +27 -3
  5. package/app/.next-cli-build/required-server-files.json +12 -4
  6. package/app/.next-cli-build/routes-manifest.json +22 -0
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -0
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -0
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -0
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  73. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  74. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  76. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  77. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  78. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  79. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  84. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  85. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  87. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  88. package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
  89. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
  90. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  91. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +6 -6
  92. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  93. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  94. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +3 -3
  95. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route_client-reference-manifest.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/oidc/start/route_client-reference-manifest.js +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/oidc/test/route_client-reference-manifest.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/reset-password/route_client-reference-manifest.js +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +4 -4
  117. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route_client-reference-manifest.js +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  120. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route_client-reference-manifest.js +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  126. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route_client-reference-manifest.js +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  135. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route_client-reference-manifest.js +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  138. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route_client-reference-manifest.js +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  141. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route_client-reference-manifest.js +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route_client-reference-manifest.js +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  147. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route_client-reference-manifest.js +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  150. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  153. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route_client-reference-manifest.js +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  156. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route_client-reference-manifest.js +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  159. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route_client-reference-manifest.js +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  162. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
  164. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  165. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route_client-reference-manifest.js +1 -1
  167. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/combos/[id]/route_client-reference-manifest.js +1 -1
  170. package/app/.next-cli-build/server/app/api/combos/reorder/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/combos/reorder/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/combos/reorder/route_client-reference-manifest.js +1 -1
  173. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/combos/route_client-reference-manifest.js +1 -1
  176. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/headroom/start/route_client-reference-manifest.js +1 -1
  179. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/headroom/status/route_client-reference-manifest.js +1 -1
  182. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/headroom/stop/route_client-reference-manifest.js +1 -1
  185. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/health/route_client-reference-manifest.js +1 -1
  188. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/init/route_client-reference-manifest.js +1 -1
  191. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
  194. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/keys/route_client-reference-manifest.js +1 -1
  197. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/locale/route_client-reference-manifest.js +1 -1
  200. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  201. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route_client-reference-manifest.js +1 -1
  203. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +5 -5
  204. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route_client-reference-manifest.js +1 -1
  206. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route_client-reference-manifest.js +1 -1
  209. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route_client-reference-manifest.js +1 -1
  212. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route_client-reference-manifest.js +1 -1
  215. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route_client-reference-manifest.js +1 -1
  218. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route_client-reference-manifest.js +1 -1
  221. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
  224. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/models/availability/route_client-reference-manifest.js +1 -1
  227. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/models/custom/route_client-reference-manifest.js +1 -1
  230. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/models/disabled/route_client-reference-manifest.js +1 -1
  233. package/app/.next-cli-build/server/app/api/models/order/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/models/order/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/models/order/route_client-reference-manifest.js +1 -1
  236. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/models/route_client-reference-manifest.js +1 -1
  239. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/models/test/route_client-reference-manifest.js +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route_client-reference-manifest.js +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route_client-reference-manifest.js +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route_client-reference-manifest.js +1 -1
  251. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  252. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route_client-reference-manifest.js +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route_client-reference-manifest.js +1 -1
  257. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  258. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route_client-reference-manifest.js +1 -1
  260. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route_client-reference-manifest.js +1 -1
  263. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route_client-reference-manifest.js +1 -1
  266. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  267. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route_client-reference-manifest.js +1 -1
  269. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route_client-reference-manifest.js +1 -1
  272. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -0
  273. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -0
  274. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route_client-reference-manifest.js +1 -0
  275. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route_client-reference-manifest.js +1 -1
  278. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  279. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route_client-reference-manifest.js +1 -1
  281. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/pricing/route_client-reference-manifest.js +1 -1
  284. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  285. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route_client-reference-manifest.js +1 -1
  287. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/provider-nodes/route_client-reference-manifest.js +1 -1
  290. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route_client-reference-manifest.js +1 -1
  293. package/app/.next-cli-build/server/app/api/providers/[id]/connections/disabled/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/providers/[id]/connections/disabled/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/providers/[id]/connections/disabled/route_client-reference-manifest.js +1 -1
  296. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/providers/[id]/models/route_client-reference-manifest.js +1 -1
  299. package/app/.next-cli-build/server/app/api/providers/[id]/pool/pull/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/providers/[id]/pool/pull/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/providers/[id]/pool/pull/route_client-reference-manifest.js +1 -1
  302. package/app/.next-cli-build/server/app/api/providers/[id]/pool/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/providers/[id]/pool/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/providers/[id]/pool/route_client-reference-manifest.js +1 -1
  305. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/providers/[id]/route_client-reference-manifest.js +1 -1
  308. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/providers/[id]/test/route_client-reference-manifest.js +1 -1
  311. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route_client-reference-manifest.js +1 -1
  314. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/providers/client/route_client-reference-manifest.js +1 -1
  317. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  318. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route_client-reference-manifest.js +1 -1
  320. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  321. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/providers/route_client-reference-manifest.js +1 -1
  323. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  324. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/providers/suggested-models/route_client-reference-manifest.js +1 -1
  326. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/providers/test-batch/route_client-reference-manifest.js +1 -1
  329. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/providers/validate/route_client-reference-manifest.js +1 -1
  332. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  333. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route_client-reference-manifest.js +1 -1
  335. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route_client-reference-manifest.js +1 -1
  338. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  339. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route_client-reference-manifest.js +1 -1
  341. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  342. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route_client-reference-manifest.js +1 -1
  344. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  345. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/api/proxy-pools/route_client-reference-manifest.js +1 -1
  347. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  348. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route_client-reference-manifest.js +1 -1
  350. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  351. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  352. package/app/.next-cli-build/server/app/api/settings/database/route_client-reference-manifest.js +1 -1
  353. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/settings/proxy-test/route_client-reference-manifest.js +1 -1
  356. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  357. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  358. package/app/.next-cli-build/server/app/api/settings/require-login/route_client-reference-manifest.js +1 -1
  359. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/settings/route_client-reference-manifest.js +1 -1
  362. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  363. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
  365. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/tags/route_client-reference-manifest.js +1 -1
  368. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  369. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  370. package/app/.next-cli-build/server/app/api/translator/console-logs/route_client-reference-manifest.js +1 -1
  371. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +4 -2
  372. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route_client-reference-manifest.js +1 -1
  374. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/translator/load/route_client-reference-manifest.js +1 -1
  377. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/translator/save/route_client-reference-manifest.js +1 -1
  380. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  381. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  382. package/app/.next-cli-build/server/app/api/translator/send/route_client-reference-manifest.js +1 -1
  383. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  384. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/translator/translate/route_client-reference-manifest.js +1 -1
  386. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  387. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/tunnel/disable/route_client-reference-manifest.js +1 -1
  389. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/tunnel/enable/route_client-reference-manifest.js +1 -1
  392. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/tunnel/status/route_client-reference-manifest.js +1 -1
  395. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route_client-reference-manifest.js +1 -1
  398. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  399. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  400. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route_client-reference-manifest.js +1 -1
  401. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  402. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route_client-reference-manifest.js +1 -1
  404. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  405. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route_client-reference-manifest.js +1 -1
  407. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  408. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  409. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route_client-reference-manifest.js +1 -1
  410. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  411. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  412. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route_client-reference-manifest.js +1 -1
  413. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  414. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  415. package/app/.next-cli-build/server/app/api/usage/chart/route_client-reference-manifest.js +1 -1
  416. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  417. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  418. package/app/.next-cli-build/server/app/api/usage/history/route_client-reference-manifest.js +1 -1
  419. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -0
  420. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -0
  421. package/app/.next-cli-build/server/app/api/usage/logs/route_client-reference-manifest.js +1 -0
  422. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  423. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  424. package/app/.next-cli-build/server/app/api/usage/providers/route_client-reference-manifest.js +1 -1
  425. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  426. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  427. package/app/.next-cli-build/server/app/api/usage/request-details/route_client-reference-manifest.js +1 -1
  428. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  429. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  430. package/app/.next-cli-build/server/app/api/usage/request-logs/route_client-reference-manifest.js +1 -1
  431. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  432. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  433. package/app/.next-cli-build/server/app/api/usage/stats/route_client-reference-manifest.js +1 -1
  434. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  435. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  436. package/app/.next-cli-build/server/app/api/usage/stream/route_client-reference-manifest.js +1 -1
  437. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  438. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  439. package/app/.next-cli-build/server/app/api/v1/api/chat/route_client-reference-manifest.js +1 -1
  440. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  441. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  442. package/app/.next-cli-build/server/app/api/v1/audio/speech/route_client-reference-manifest.js +1 -1
  443. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  444. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  445. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route_client-reference-manifest.js +1 -1
  446. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  447. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  448. package/app/.next-cli-build/server/app/api/v1/audio/voices/route_client-reference-manifest.js +1 -1
  449. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  450. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  451. package/app/.next-cli-build/server/app/api/v1/chat/completions/route_client-reference-manifest.js +1 -1
  452. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  453. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  454. package/app/.next-cli-build/server/app/api/v1/embeddings/route_client-reference-manifest.js +1 -1
  455. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  456. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  457. package/app/.next-cli-build/server/app/api/v1/images/generations/route_client-reference-manifest.js +1 -1
  458. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  459. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  460. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.js +1 -1
  461. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  462. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  463. package/app/.next-cli-build/server/app/api/v1/messages/route_client-reference-manifest.js +1 -1
  464. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  465. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  466. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route_client-reference-manifest.js +1 -1
  467. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  468. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  469. package/app/.next-cli-build/server/app/api/v1/models/info/route_client-reference-manifest.js +1 -1
  470. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  471. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  472. package/app/.next-cli-build/server/app/api/v1/models/route_client-reference-manifest.js +1 -1
  473. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  474. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  475. package/app/.next-cli-build/server/app/api/v1/responses/compact/route_client-reference-manifest.js +1 -1
  476. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  477. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  478. package/app/.next-cli-build/server/app/api/v1/responses/route_client-reference-manifest.js +1 -1
  479. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  480. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  481. package/app/.next-cli-build/server/app/api/v1/route_client-reference-manifest.js +1 -1
  482. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  483. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  484. package/app/.next-cli-build/server/app/api/v1/search/route_client-reference-manifest.js +1 -1
  485. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  486. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  487. package/app/.next-cli-build/server/app/api/v1/web/fetch/route_client-reference-manifest.js +1 -1
  488. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  489. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  490. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +1 -1
  491. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  492. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  493. package/app/.next-cli-build/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
  494. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  495. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  496. package/app/.next-cli-build/server/app/api/version/route_client-reference-manifest.js +1 -1
  497. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  498. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  499. package/app/.next-cli-build/server/app/api/version/shutdown/route_client-reference-manifest.js +1 -1
  500. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  501. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  502. package/app/.next-cli-build/server/app/api/version/update/route_client-reference-manifest.js +1 -1
  503. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  504. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  505. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  506. package/app/.next-cli-build/server/app/callback.html +1 -1
  507. package/app/.next-cli-build/server/app/callback.rsc +7 -7
  508. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +7 -7
  509. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  510. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +6 -6
  511. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +3 -3
  512. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
  513. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  514. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  515. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +9 -9
  516. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  517. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  518. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  519. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  520. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +9 -9
  521. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  522. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +6 -6
  523. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +4 -4
  524. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  525. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +10 -10
  526. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  527. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  528. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  529. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  530. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +10 -10
  531. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  532. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +6 -6
  533. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +4 -4
  534. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  535. package/app/.next-cli-build/server/app/dashboard/combos.rsc +9 -9
  536. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  537. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  538. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  539. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  540. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +9 -9
  541. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  542. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +6 -6
  543. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +4 -4
  544. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  545. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +10 -10
  546. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  547. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  548. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  549. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  550. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +10 -10
  551. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  552. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +6 -6
  553. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +4 -4
  554. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  555. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +9 -9
  556. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  557. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  558. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  559. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  560. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  561. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +9 -9
  562. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  563. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +6 -6
  564. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +4 -4
  565. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  566. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +9 -9
  567. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  568. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  569. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  570. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  571. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +9 -9
  572. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  573. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +6 -6
  574. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +4 -4
  575. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  576. package/app/.next-cli-build/server/app/dashboard/profile.rsc +9 -9
  577. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  578. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  579. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  580. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  581. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +9 -9
  582. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  583. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +6 -6
  584. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +4 -4
  585. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  586. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +9 -9
  587. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  588. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  589. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  590. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  591. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  592. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +9 -9
  593. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  594. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +6 -6
  595. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +4 -4
  596. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  597. package/app/.next-cli-build/server/app/dashboard/providers.rsc +9 -9
  598. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  599. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  600. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  601. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  602. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +9 -9
  603. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  604. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +6 -6
  605. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +4 -4
  606. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  607. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +9 -9
  608. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  609. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  610. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  611. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  612. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +9 -9
  613. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  614. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +6 -6
  615. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +4 -4
  616. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  617. package/app/.next-cli-build/server/app/dashboard/quota.rsc +10 -10
  618. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  619. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  620. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  621. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  622. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +10 -10
  623. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  624. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +6 -6
  625. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +4 -4
  626. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  627. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  628. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  629. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  630. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +7 -7
  631. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +7 -7
  632. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  633. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +6 -6
  634. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +3 -3
  635. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  636. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  637. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  638. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  639. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  640. package/app/.next-cli-build/server/app/dashboard/skills.rsc +9 -9
  641. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  642. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  643. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  644. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  645. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +9 -9
  646. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  647. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +6 -6
  648. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +4 -4
  649. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -0
  650. package/app/.next-cli-build/server/app/dashboard/token-saver.meta +17 -0
  651. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +24 -0
  652. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +6 -0
  653. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +5 -0
  654. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +5 -0
  655. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +6 -0
  656. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +24 -0
  657. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +6 -0
  658. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +9 -0
  659. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +5 -0
  660. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  661. package/app/.next-cli-build/server/app/dashboard/translator.rsc +9 -9
  662. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  663. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  664. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  665. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  666. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +9 -9
  667. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  668. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +6 -6
  669. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +4 -4
  670. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  671. package/app/.next-cli-build/server/app/dashboard/usage.rsc +9 -9
  672. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  673. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  674. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  675. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  676. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +9 -9
  677. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  678. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +6 -6
  679. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +4 -4
  680. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  681. package/app/.next-cli-build/server/app/dashboard.rsc +10 -10
  682. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  683. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  684. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  685. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +10 -10
  686. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  687. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +6 -6
  688. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +4 -4
  689. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  690. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  691. package/app/.next-cli-build/server/app/index.html +1 -1
  692. package/app/.next-cli-build/server/app/index.rsc +6 -6
  693. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  694. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
  695. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  696. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +6 -6
  697. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +3 -3
  698. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  699. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  700. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  701. package/app/.next-cli-build/server/app/landing.html +1 -1
  702. package/app/.next-cli-build/server/app/landing.rsc +7 -7
  703. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +7 -7
  704. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  705. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +6 -6
  706. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +3 -3
  707. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  708. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  709. package/app/.next-cli-build/server/app/login/page.js +2 -2
  710. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  711. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  712. package/app/.next-cli-build/server/app/login.html +1 -1
  713. package/app/.next-cli-build/server/app/login.rsc +8 -8
  714. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +8 -8
  715. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  716. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +6 -6
  717. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +4 -4
  718. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
  719. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  720. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  721. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  722. package/app/.next-cli-build/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  723. package/app/.next-cli-build/server/app/page.js +2 -2
  724. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  725. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  726. package/app/.next-cli-build/server/app-paths-manifest.json +15 -13
  727. package/app/.next-cli-build/server/chunks/1051.js +1 -0
  728. package/app/.next-cli-build/server/chunks/1275.js +4 -4
  729. package/app/.next-cli-build/server/chunks/1315.js +64 -0
  730. package/app/.next-cli-build/server/chunks/212.js +1 -0
  731. package/app/.next-cli-build/server/chunks/2231.js +1 -1
  732. package/app/.next-cli-build/server/chunks/260.js +1 -0
  733. package/app/.next-cli-build/server/chunks/318.js +12 -12
  734. package/app/.next-cli-build/server/chunks/319.js +3 -3
  735. package/app/.next-cli-build/server/chunks/3593.js +1 -1
  736. package/app/.next-cli-build/server/chunks/3938.js +1 -0
  737. package/app/.next-cli-build/server/chunks/4055.js +1 -1
  738. package/app/.next-cli-build/server/chunks/412.js +2 -2
  739. package/app/.next-cli-build/server/chunks/4632.js +1 -1
  740. package/app/.next-cli-build/server/chunks/4739.js +1 -1
  741. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  742. package/app/.next-cli-build/server/chunks/4780.js +1 -1
  743. package/app/.next-cli-build/server/chunks/4827.js +1 -1
  744. package/app/.next-cli-build/server/chunks/507.js +1 -1
  745. package/app/.next-cli-build/server/chunks/5217.js +1 -1
  746. package/app/.next-cli-build/server/chunks/5258.js +1 -1
  747. package/app/.next-cli-build/server/chunks/5615.js +2 -2
  748. package/app/.next-cli-build/server/chunks/5699.js +1 -1
  749. package/app/.next-cli-build/server/chunks/5852.js +2 -2
  750. package/app/.next-cli-build/server/chunks/5961.js +1 -1
  751. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  752. package/app/.next-cli-build/server/chunks/615.js +1 -1
  753. package/app/.next-cli-build/server/chunks/6182.js +3 -3
  754. package/app/.next-cli-build/server/chunks/6306.js +1 -1
  755. package/app/.next-cli-build/server/chunks/6482.js +1 -1
  756. package/app/.next-cli-build/server/chunks/6763.js +1 -1
  757. package/app/.next-cli-build/server/chunks/6777.js +1 -0
  758. package/app/.next-cli-build/server/chunks/698.js +1 -1
  759. package/app/.next-cli-build/server/chunks/7220.js +1 -0
  760. package/app/.next-cli-build/server/chunks/7248.js +3 -0
  761. package/app/.next-cli-build/server/chunks/7879.js +10 -0
  762. package/app/.next-cli-build/server/chunks/7965.js +1 -1
  763. package/app/.next-cli-build/server/chunks/8238.js +1 -1
  764. package/app/.next-cli-build/server/chunks/8271.js +1 -1
  765. package/app/.next-cli-build/server/chunks/8520.js +1 -1
  766. package/app/.next-cli-build/server/chunks/8895.js +5 -5
  767. package/app/.next-cli-build/server/chunks/8920.js +1 -1
  768. package/app/.next-cli-build/server/chunks/914.js +10 -4
  769. package/app/.next-cli-build/server/chunks/9350.js +1 -0
  770. package/app/.next-cli-build/server/chunks/9630.js +1 -0
  771. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  772. package/app/.next-cli-build/server/middleware.js +4 -4
  773. package/app/.next-cli-build/server/next-font-manifest.js +1 -1
  774. package/app/.next-cli-build/server/next-font-manifest.json +1 -1
  775. package/app/.next-cli-build/server/pages/404.html +1 -1
  776. package/app/.next-cli-build/server/pages/500.html +1 -1
  777. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  778. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  779. package/app/.next-cli-build/static/chunks/1321-477cb6560b016b26.js +1 -0
  780. package/app/.next-cli-build/static/chunks/1a258343-1aa1820b9db68d51.js +1 -0
  781. package/app/.next-cli-build/static/chunks/3807-460da912ae27731f.js +64 -0
  782. package/app/.next-cli-build/static/chunks/5497-8a3f99dd781f8c61.js +7 -0
  783. package/app/.next-cli-build/static/chunks/705-979ff3eb195b9023.js +1 -0
  784. package/app/.next-cli-build/static/chunks/7784-265a15eadd679bdc.js +3 -0
  785. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-34ca4e62572e698d.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-de896f949e4db0a5.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-92479cb56b307663.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-c2349580aa9b9430.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-ee26499f5039ddf4.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-037703dc965abed1.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-0a3bdda39731c8e8.js → page-d68cb371259802c9.js} +1 -1
  792. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-7c57929647c07f91.js → page-7459b843d657f2d3.js} +1 -1
  793. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-f2545778dd849c11.js → page-487958212cd92c45.js} +1 -1
  794. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-d69ecce859cd7454.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-734221f9292c2f0b.js → page-797101916aa47351.js} +1 -1
  796. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-a2ccd01e7798869c.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-693cf10831316638.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-92fcb60312dda26e.js +10 -0
  799. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-728ddba2783d1f16.js → page-f2eda137bc8e146b.js} +1 -1
  800. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-753b0a5d477ae4e7.js → page-5ff67d74a24a6256.js} +1 -1
  801. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-32cc33885248badf.js → page-0f2f03b57f31bac2.js} +2 -2
  802. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-fb204465ae19409a.js → page-ed110f504537c514.js} +1 -1
  803. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-e3890a44492370b7.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-8939090f4358b4bd.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-854c277a8364d017.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-430c6ce20faf59b3.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-9d94f30df88cbcd7.js → layout-e74f0a0d9c9cec73.js} +1 -1
  808. package/app/.next-cli-build/static/chunks/app/_global-error/{page-0006630ca3232027.js → page-743dde8cb8e721b7.js} +1 -1
  809. package/app/.next-cli-build/static/chunks/app/_not-found/{page-e4d84f64a8c852f7.js → page-5b7961cf7eeec8c2.js} +1 -1
  810. package/app/.next-cli-build/static/chunks/app/api/auth/login/{route-0006630ca3232027.js → route-743dde8cb8e721b7.js} +1 -1
  811. package/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-0006630ca3232027.js → route-743dde8cb8e721b7.js} +1 -1
  812. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-0006630ca3232027.js → route-743dde8cb8e721b7.js} +1 -1
  813. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-743dde8cb8e721b7.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-743dde8cb8e721b7.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-743dde8cb8e721b7.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-743dde8cb8e721b7.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-743dde8cb8e721b7.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-743dde8cb8e721b7.js +1 -0
  819. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-743dde8cb8e721b7.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-743dde8cb8e721b7.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-743dde8cb8e721b7.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-743dde8cb8e721b7.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-743dde8cb8e721b7.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-743dde8cb8e721b7.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-743dde8cb8e721b7.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-743dde8cb8e721b7.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-743dde8cb8e721b7.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-743dde8cb8e721b7.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-743dde8cb8e721b7.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-743dde8cb8e721b7.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-743dde8cb8e721b7.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-743dde8cb8e721b7.js +1 -0
  833. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-743dde8cb8e721b7.js +1 -0
  834. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-743dde8cb8e721b7.js +1 -0
  835. package/app/.next-cli-build/static/chunks/app/api/combos/reorder/route-743dde8cb8e721b7.js +1 -0
  836. package/app/.next-cli-build/static/chunks/app/api/combos/route-743dde8cb8e721b7.js +1 -0
  837. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-743dde8cb8e721b7.js +1 -0
  838. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-743dde8cb8e721b7.js +1 -0
  839. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-743dde8cb8e721b7.js +1 -0
  840. package/app/.next-cli-build/static/chunks/app/api/health/route-743dde8cb8e721b7.js +1 -0
  841. package/app/.next-cli-build/static/chunks/app/api/init/route-743dde8cb8e721b7.js +1 -0
  842. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-743dde8cb8e721b7.js +1 -0
  843. package/app/.next-cli-build/static/chunks/app/api/keys/route-743dde8cb8e721b7.js +1 -0
  844. package/app/.next-cli-build/static/chunks/app/api/locale/route-743dde8cb8e721b7.js +1 -0
  845. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-743dde8cb8e721b7.js +1 -0
  846. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-743dde8cb8e721b7.js +1 -0
  847. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-743dde8cb8e721b7.js +1 -0
  848. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-743dde8cb8e721b7.js +1 -0
  849. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-743dde8cb8e721b7.js +1 -0
  850. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-743dde8cb8e721b7.js +1 -0
  851. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-743dde8cb8e721b7.js +1 -0
  852. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-743dde8cb8e721b7.js +1 -0
  853. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-743dde8cb8e721b7.js +1 -0
  854. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-743dde8cb8e721b7.js +1 -0
  855. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-743dde8cb8e721b7.js +1 -0
  856. package/app/.next-cli-build/static/chunks/app/api/models/order/route-743dde8cb8e721b7.js +1 -0
  857. package/app/.next-cli-build/static/chunks/app/api/models/route-743dde8cb8e721b7.js +1 -0
  858. package/app/.next-cli-build/static/chunks/app/api/models/test/route-743dde8cb8e721b7.js +1 -0
  859. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-743dde8cb8e721b7.js +1 -0
  860. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-743dde8cb8e721b7.js +1 -0
  861. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-743dde8cb8e721b7.js +1 -0
  862. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-743dde8cb8e721b7.js +1 -0
  863. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-743dde8cb8e721b7.js +1 -0
  864. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-743dde8cb8e721b7.js +1 -0
  865. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-743dde8cb8e721b7.js +1 -0
  866. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-743dde8cb8e721b7.js +1 -0
  867. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-743dde8cb8e721b7.js +1 -0
  868. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-743dde8cb8e721b7.js +1 -0
  869. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-743dde8cb8e721b7.js +1 -0
  870. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-743dde8cb8e721b7.js +1 -0
  871. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-743dde8cb8e721b7.js +1 -0
  872. package/app/.next-cli-build/static/chunks/app/api/pricing/route-743dde8cb8e721b7.js +1 -0
  873. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-743dde8cb8e721b7.js +1 -0
  874. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-743dde8cb8e721b7.js +1 -0
  875. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-743dde8cb8e721b7.js +1 -0
  876. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/connections/disabled/route-743dde8cb8e721b7.js +1 -0
  877. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-743dde8cb8e721b7.js +1 -0
  878. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/pool/pull/route-743dde8cb8e721b7.js +1 -0
  879. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/pool/route-743dde8cb8e721b7.js +1 -0
  880. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-743dde8cb8e721b7.js +1 -0
  881. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-743dde8cb8e721b7.js +1 -0
  882. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-743dde8cb8e721b7.js +1 -0
  883. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-743dde8cb8e721b7.js +1 -0
  884. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-743dde8cb8e721b7.js +1 -0
  885. package/app/.next-cli-build/static/chunks/app/api/providers/route-743dde8cb8e721b7.js +1 -0
  886. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-743dde8cb8e721b7.js +1 -0
  887. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-743dde8cb8e721b7.js +1 -0
  888. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-743dde8cb8e721b7.js +1 -0
  889. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-743dde8cb8e721b7.js +1 -0
  890. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-743dde8cb8e721b7.js +1 -0
  891. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-743dde8cb8e721b7.js +1 -0
  892. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-743dde8cb8e721b7.js +1 -0
  893. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-743dde8cb8e721b7.js +1 -0
  894. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-743dde8cb8e721b7.js +1 -0
  895. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-743dde8cb8e721b7.js +1 -0
  896. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-743dde8cb8e721b7.js +1 -0
  897. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-743dde8cb8e721b7.js +1 -0
  898. package/app/.next-cli-build/static/chunks/app/api/settings/route-743dde8cb8e721b7.js +1 -0
  899. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-743dde8cb8e721b7.js +1 -0
  900. package/app/.next-cli-build/static/chunks/app/api/tags/route-743dde8cb8e721b7.js +1 -0
  901. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-743dde8cb8e721b7.js +1 -0
  902. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-743dde8cb8e721b7.js +1 -0
  903. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-743dde8cb8e721b7.js +1 -0
  904. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-743dde8cb8e721b7.js +1 -0
  905. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-743dde8cb8e721b7.js +1 -0
  906. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-743dde8cb8e721b7.js +1 -0
  907. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-743dde8cb8e721b7.js +1 -0
  908. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-743dde8cb8e721b7.js +1 -0
  909. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-743dde8cb8e721b7.js +1 -0
  910. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-743dde8cb8e721b7.js +1 -0
  911. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-743dde8cb8e721b7.js +1 -0
  912. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-743dde8cb8e721b7.js +1 -0
  913. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-743dde8cb8e721b7.js +1 -0
  914. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-743dde8cb8e721b7.js +1 -0
  915. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-743dde8cb8e721b7.js +1 -0
  916. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-743dde8cb8e721b7.js +1 -0
  917. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-743dde8cb8e721b7.js +1 -0
  918. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-743dde8cb8e721b7.js +1 -0
  919. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-743dde8cb8e721b7.js +1 -0
  920. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-743dde8cb8e721b7.js +1 -0
  921. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-743dde8cb8e721b7.js +1 -0
  922. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-743dde8cb8e721b7.js +1 -0
  923. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-743dde8cb8e721b7.js +1 -0
  924. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-743dde8cb8e721b7.js +1 -0
  925. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-743dde8cb8e721b7.js +1 -0
  926. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-743dde8cb8e721b7.js +1 -0
  927. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-743dde8cb8e721b7.js +1 -0
  928. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-743dde8cb8e721b7.js +1 -0
  929. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-743dde8cb8e721b7.js +1 -0
  930. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-743dde8cb8e721b7.js +1 -0
  931. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-743dde8cb8e721b7.js +1 -0
  932. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-743dde8cb8e721b7.js +1 -0
  933. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-743dde8cb8e721b7.js +1 -0
  934. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-743dde8cb8e721b7.js +1 -0
  935. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-743dde8cb8e721b7.js +1 -0
  936. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-743dde8cb8e721b7.js +1 -0
  937. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-743dde8cb8e721b7.js +1 -0
  938. package/app/.next-cli-build/static/chunks/app/api/v1/route-743dde8cb8e721b7.js +1 -0
  939. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-743dde8cb8e721b7.js +1 -0
  940. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-743dde8cb8e721b7.js +1 -0
  941. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-743dde8cb8e721b7.js +1 -0
  942. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-743dde8cb8e721b7.js +1 -0
  943. package/app/.next-cli-build/static/chunks/app/api/version/route-743dde8cb8e721b7.js +1 -0
  944. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-743dde8cb8e721b7.js +1 -0
  945. package/app/.next-cli-build/static/chunks/app/api/version/update/route-743dde8cb8e721b7.js +1 -0
  946. package/app/.next-cli-build/static/chunks/app/callback/page-874c1d62c44041eb.js +1 -0
  947. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-af91b33b144badc9.js +1 -0
  948. package/app/.next-cli-build/static/chunks/app/landing/{page-34fb5bf37abde153.js → page-e9702e315a419701.js} +1 -1
  949. package/app/.next-cli-build/static/chunks/app/{layout-ad10b603c07438f2.js → layout-70c637ccaa3f6ede.js} +1 -1
  950. package/app/.next-cli-build/static/chunks/app/login/page-9ea942c9628e5ad8.js +1 -0
  951. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-743dde8cb8e721b7.js +1 -0
  952. package/app/.next-cli-build/static/chunks/app/page-743dde8cb8e721b7.js +1 -0
  953. package/app/.next-cli-build/static/chunks/{main-app-3057ce86fdd7f7ab.js → main-app-bc058b5e1f4a8632.js} +1 -1
  954. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-743dde8cb8e721b7.js +1 -0
  955. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-743dde8cb8e721b7.js +1 -0
  956. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-957f3d80a84331d4.js +1 -0
  957. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-743dde8cb8e721b7.js +1 -0
  958. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-743dde8cb8e721b7.js +1 -0
  959. package/app/.next-cli-build/static/css/{599369d853c61df7.css → 008a05b0ad6b854a.css} +1 -1
  960. package/app/.next-cli-build/static/css/{88fb3376e840da30.css → 8f9ac5a7bd3a79e5.css} +1 -1
  961. package/app/.next-cli-build/static/css/d615baddd1113a17.css +1 -0
  962. package/app/.next-cli-build/static/kFxC_DXGaiOo8II5Pb_Mu/_buildManifest.js +1 -0
  963. package/app/.next-cli-build/static/media/material-symbols-outlined.ec1fa111.woff2 +0 -0
  964. package/app/cli/.build-home/.9router/db/data.sqlite +0 -0
  965. package/app/cli/.build-home/.9router/jwt-secret +1 -1
  966. package/app/cli/.build-home/.9router/machine-id +1 -1
  967. package/app/cli/.build-home/.config/nextjs-nodejs/config.json +3 -3
  968. package/app/node_modules/baseline-browser-mapping/dist/index.cjs +1 -1
  969. package/app/node_modules/baseline-browser-mapping/package.json +3 -3
  970. package/app/node_modules/caniuse-lite/data/agents.js +1 -1
  971. package/app/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  972. package/app/node_modules/caniuse-lite/data/features/aac.js +1 -1
  973. package/app/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  974. package/app/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  975. package/app/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  976. package/app/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  977. package/app/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  978. package/app/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  979. package/app/node_modules/caniuse-lite/data/features/apng.js +1 -1
  980. package/app/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  981. package/app/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  982. package/app/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  983. package/app/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  984. package/app/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  985. package/app/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  986. package/app/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  987. package/app/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  988. package/app/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  989. package/app/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  990. package/app/node_modules/caniuse-lite/data/features/audio.js +1 -1
  991. package/app/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  992. package/app/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  993. package/app/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  994. package/app/node_modules/caniuse-lite/data/features/av1.js +1 -1
  995. package/app/node_modules/caniuse-lite/data/features/avif.js +1 -1
  996. package/app/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  997. package/app/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  998. package/app/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  999. package/app/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  1000. package/app/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  1001. package/app/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  1002. package/app/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  1003. package/app/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  1004. package/app/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  1005. package/app/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  1006. package/app/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  1007. package/app/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  1008. package/app/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  1009. package/app/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  1010. package/app/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  1011. package/app/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  1012. package/app/node_modules/caniuse-lite/data/features/calc.js +1 -1
  1013. package/app/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  1014. package/app/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  1015. package/app/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  1016. package/app/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  1017. package/app/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  1018. package/app/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  1019. package/app/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  1020. package/app/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  1021. package/app/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  1022. package/app/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  1023. package/app/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  1024. package/app/node_modules/caniuse-lite/data/features/colr.js +1 -1
  1025. package/app/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  1026. package/app/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  1027. package/app/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  1028. package/app/node_modules/caniuse-lite/data/features/const.js +1 -1
  1029. package/app/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  1030. package/app/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  1031. package/app/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  1032. package/app/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  1033. package/app/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  1034. package/app/node_modules/caniuse-lite/data/features/cors.js +1 -1
  1035. package/app/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  1036. package/app/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  1037. package/app/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  1038. package/app/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  1039. package/app/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  1040. package/app/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  1041. package/app/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  1042. package/app/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  1043. package/app/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  1044. package/app/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  1045. package/app/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  1046. package/app/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  1047. package/app/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  1048. package/app/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  1049. package/app/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  1050. package/app/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  1051. package/app/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  1052. package/app/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  1053. package/app/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  1054. package/app/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  1055. package/app/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  1056. package/app/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  1057. package/app/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  1058. package/app/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  1059. package/app/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  1060. package/app/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  1061. package/app/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  1062. package/app/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  1063. package/app/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  1064. package/app/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  1065. package/app/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  1066. package/app/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  1067. package/app/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  1068. package/app/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  1069. package/app/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  1070. package/app/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  1071. package/app/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  1072. package/app/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  1073. package/app/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  1074. package/app/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  1075. package/app/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  1076. package/app/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  1077. package/app/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  1078. package/app/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  1079. package/app/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  1080. package/app/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  1081. package/app/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  1082. package/app/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  1083. package/app/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  1084. package/app/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  1085. package/app/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  1086. package/app/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  1087. package/app/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  1088. package/app/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  1089. package/app/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  1090. package/app/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  1091. package/app/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  1092. package/app/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  1093. package/app/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  1094. package/app/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  1095. package/app/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  1096. package/app/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  1097. package/app/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  1098. package/app/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  1099. package/app/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  1100. package/app/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  1101. package/app/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  1102. package/app/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  1103. package/app/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  1104. package/app/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  1105. package/app/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  1106. package/app/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  1107. package/app/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  1108. package/app/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  1109. package/app/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  1110. package/app/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  1111. package/app/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  1112. package/app/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  1113. package/app/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  1114. package/app/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  1115. package/app/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  1116. package/app/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  1117. package/app/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  1118. package/app/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  1119. package/app/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  1120. package/app/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  1121. package/app/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  1122. package/app/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  1123. package/app/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  1124. package/app/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  1125. package/app/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  1126. package/app/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  1127. package/app/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  1128. package/app/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  1129. package/app/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  1130. package/app/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  1131. package/app/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  1132. package/app/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  1133. package/app/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  1134. package/app/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  1135. package/app/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  1136. package/app/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  1137. package/app/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  1138. package/app/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  1139. package/app/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  1140. package/app/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  1141. package/app/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  1142. package/app/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  1143. package/app/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  1144. package/app/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  1145. package/app/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  1146. package/app/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  1147. package/app/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  1148. package/app/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  1149. package/app/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  1150. package/app/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  1151. package/app/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  1152. package/app/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  1153. package/app/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  1154. package/app/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  1155. package/app/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  1156. package/app/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  1157. package/app/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  1158. package/app/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  1159. package/app/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  1160. package/app/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  1161. package/app/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  1162. package/app/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  1163. package/app/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  1164. package/app/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  1165. package/app/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  1166. package/app/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  1167. package/app/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  1168. package/app/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  1169. package/app/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  1170. package/app/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  1171. package/app/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  1172. package/app/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  1173. package/app/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  1174. package/app/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  1175. package/app/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  1176. package/app/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  1177. package/app/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  1178. package/app/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  1179. package/app/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  1180. package/app/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  1181. package/app/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  1182. package/app/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  1183. package/app/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  1184. package/app/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  1185. package/app/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  1186. package/app/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  1187. package/app/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  1188. package/app/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  1189. package/app/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  1190. package/app/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  1191. package/app/node_modules/caniuse-lite/data/features/details.js +1 -1
  1192. package/app/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  1193. package/app/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  1194. package/app/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  1195. package/app/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  1196. package/app/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  1197. package/app/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  1198. package/app/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  1199. package/app/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  1200. package/app/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  1201. package/app/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  1202. package/app/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  1203. package/app/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  1204. package/app/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  1205. package/app/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  1206. package/app/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  1207. package/app/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  1208. package/app/node_modules/caniuse-lite/data/features/download.js +1 -1
  1209. package/app/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  1210. package/app/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  1211. package/app/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  1212. package/app/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  1213. package/app/node_modules/caniuse-lite/data/features/eme.js +1 -1
  1214. package/app/node_modules/caniuse-lite/data/features/eot.js +1 -1
  1215. package/app/node_modules/caniuse-lite/data/features/es5.js +1 -1
  1216. package/app/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  1217. package/app/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  1218. package/app/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  1219. package/app/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  1220. package/app/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  1221. package/app/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  1222. package/app/node_modules/caniuse-lite/data/features/es6.js +1 -1
  1223. package/app/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  1224. package/app/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  1225. package/app/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  1226. package/app/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  1227. package/app/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  1228. package/app/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  1229. package/app/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  1230. package/app/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  1231. package/app/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  1232. package/app/node_modules/caniuse-lite/data/features/flac.js +1 -1
  1233. package/app/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  1234. package/app/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  1235. package/app/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  1236. package/app/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  1237. package/app/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  1238. package/app/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  1239. package/app/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  1240. package/app/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  1241. package/app/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  1242. package/app/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  1243. package/app/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  1244. package/app/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  1245. package/app/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  1246. package/app/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  1247. package/app/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  1248. package/app/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  1249. package/app/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  1250. package/app/node_modules/caniuse-lite/data/features/forms.js +1 -1
  1251. package/app/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  1252. package/app/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  1253. package/app/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  1254. package/app/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  1255. package/app/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  1256. package/app/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  1257. package/app/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  1258. package/app/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  1259. package/app/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  1260. package/app/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  1261. package/app/node_modules/caniuse-lite/data/features/heif.js +1 -1
  1262. package/app/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  1263. package/app/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  1264. package/app/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  1265. package/app/node_modules/caniuse-lite/data/features/history.js +1 -1
  1266. package/app/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  1267. package/app/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  1268. package/app/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  1269. package/app/node_modules/caniuse-lite/data/features/http2.js +1 -1
  1270. package/app/node_modules/caniuse-lite/data/features/http3.js +1 -1
  1271. package/app/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  1272. package/app/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  1273. package/app/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  1274. package/app/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  1275. package/app/node_modules/caniuse-lite/data/features/ime.js +1 -1
  1276. package/app/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  1277. package/app/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  1278. package/app/node_modules/caniuse-lite/data/features/imports.js +1 -1
  1279. package/app/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  1280. package/app/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  1281. package/app/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  1282. package/app/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  1283. package/app/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  1284. package/app/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  1285. package/app/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  1286. package/app/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  1287. package/app/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  1288. package/app/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  1289. package/app/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  1290. package/app/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  1291. package/app/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  1292. package/app/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  1293. package/app/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  1294. package/app/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  1295. package/app/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  1296. package/app/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  1297. package/app/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  1298. package/app/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  1299. package/app/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  1300. package/app/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  1301. package/app/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  1302. package/app/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  1303. package/app/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  1304. package/app/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  1305. package/app/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  1306. package/app/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  1307. package/app/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  1308. package/app/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  1309. package/app/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  1310. package/app/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  1311. package/app/node_modules/caniuse-lite/data/features/json.js +1 -1
  1312. package/app/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  1313. package/app/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  1314. package/app/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  1315. package/app/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  1316. package/app/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  1317. package/app/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  1318. package/app/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  1319. package/app/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  1320. package/app/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  1321. package/app/node_modules/caniuse-lite/data/features/let.js +1 -1
  1322. package/app/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  1323. package/app/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  1324. package/app/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  1325. package/app/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  1326. package/app/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  1327. package/app/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  1328. package/app/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  1329. package/app/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  1330. package/app/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  1331. package/app/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  1332. package/app/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  1333. package/app/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  1334. package/app/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  1335. package/app/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  1336. package/app/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  1337. package/app/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  1338. package/app/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  1339. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  1340. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  1341. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  1342. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  1343. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  1344. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  1345. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  1346. package/app/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  1347. package/app/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  1348. package/app/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  1349. package/app/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  1350. package/app/node_modules/caniuse-lite/data/features/menu.js +1 -1
  1351. package/app/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  1352. package/app/node_modules/caniuse-lite/data/features/meter.js +1 -1
  1353. package/app/node_modules/caniuse-lite/data/features/midi.js +1 -1
  1354. package/app/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  1355. package/app/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  1356. package/app/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  1357. package/app/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  1358. package/app/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  1359. package/app/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  1360. package/app/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  1361. package/app/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  1362. package/app/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  1363. package/app/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  1364. package/app/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  1365. package/app/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  1366. package/app/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  1367. package/app/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  1368. package/app/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  1369. package/app/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  1370. package/app/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  1371. package/app/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  1372. package/app/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  1373. package/app/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  1374. package/app/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  1375. package/app/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  1376. package/app/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  1377. package/app/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  1378. package/app/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  1379. package/app/node_modules/caniuse-lite/data/features/opus.js +1 -1
  1380. package/app/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  1381. package/app/node_modules/caniuse-lite/data/features/outline.js +1 -1
  1382. package/app/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  1383. package/app/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  1384. package/app/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  1385. package/app/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  1386. package/app/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  1387. package/app/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  1388. package/app/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  1389. package/app/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  1390. package/app/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  1391. package/app/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  1392. package/app/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  1393. package/app/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  1394. package/app/node_modules/caniuse-lite/data/features/picture.js +1 -1
  1395. package/app/node_modules/caniuse-lite/data/features/ping.js +1 -1
  1396. package/app/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  1397. package/app/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  1398. package/app/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  1399. package/app/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  1400. package/app/node_modules/caniuse-lite/data/features/portals.js +1 -1
  1401. package/app/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  1402. package/app/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  1403. package/app/node_modules/caniuse-lite/data/features/progress.js +1 -1
  1404. package/app/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  1405. package/app/node_modules/caniuse-lite/data/features/promises.js +1 -1
  1406. package/app/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  1407. package/app/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  1408. package/app/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  1409. package/app/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  1410. package/app/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  1411. package/app/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  1412. package/app/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  1413. package/app/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  1414. package/app/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  1415. package/app/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  1416. package/app/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  1417. package/app/node_modules/caniuse-lite/data/features/rem.js +1 -1
  1418. package/app/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  1419. package/app/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  1420. package/app/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  1421. package/app/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  1422. package/app/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  1423. package/app/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  1424. package/app/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  1425. package/app/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  1426. package/app/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  1427. package/app/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  1428. package/app/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  1429. package/app/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  1430. package/app/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  1431. package/app/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  1432. package/app/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  1433. package/app/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  1434. package/app/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  1435. package/app/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  1436. package/app/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  1437. package/app/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  1438. package/app/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  1439. package/app/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  1440. package/app/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  1441. package/app/node_modules/caniuse-lite/data/features/sni.js +1 -1
  1442. package/app/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  1443. package/app/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  1444. package/app/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  1445. package/app/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  1446. package/app/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  1447. package/app/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  1448. package/app/node_modules/caniuse-lite/data/features/stream.js +1 -1
  1449. package/app/node_modules/caniuse-lite/data/features/streams.js +1 -1
  1450. package/app/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  1451. package/app/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  1452. package/app/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  1453. package/app/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  1454. package/app/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  1455. package/app/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  1456. package/app/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  1457. package/app/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  1458. package/app/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  1459. package/app/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  1460. package/app/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  1461. package/app/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  1462. package/app/node_modules/caniuse-lite/data/features/svg.js +1 -1
  1463. package/app/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  1464. package/app/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  1465. package/app/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  1466. package/app/node_modules/caniuse-lite/data/features/template.js +1 -1
  1467. package/app/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  1468. package/app/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  1469. package/app/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  1470. package/app/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  1471. package/app/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  1472. package/app/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  1473. package/app/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  1474. package/app/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  1475. package/app/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  1476. package/app/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  1477. package/app/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  1478. package/app/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  1479. package/app/node_modules/caniuse-lite/data/features/touch.js +1 -1
  1480. package/app/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  1481. package/app/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  1482. package/app/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  1483. package/app/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  1484. package/app/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  1485. package/app/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  1486. package/app/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  1487. package/app/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  1488. package/app/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  1489. package/app/node_modules/caniuse-lite/data/features/url.js +1 -1
  1490. package/app/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  1491. package/app/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  1492. package/app/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  1493. package/app/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  1494. package/app/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  1495. package/app/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  1496. package/app/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  1497. package/app/node_modules/caniuse-lite/data/features/video.js +1 -1
  1498. package/app/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  1499. package/app/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  1500. package/app/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  1501. package/app/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  1502. package/app/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  1503. package/app/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  1504. package/app/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  1505. package/app/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  1506. package/app/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  1507. package/app/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  1508. package/app/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  1509. package/app/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  1510. package/app/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  1511. package/app/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  1512. package/app/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  1513. package/app/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  1514. package/app/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  1515. package/app/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  1516. package/app/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  1517. package/app/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  1518. package/app/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  1519. package/app/node_modules/caniuse-lite/data/features/wav.js +1 -1
  1520. package/app/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  1521. package/app/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  1522. package/app/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  1523. package/app/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  1524. package/app/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  1525. package/app/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  1526. package/app/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  1527. package/app/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  1528. package/app/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  1529. package/app/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  1530. package/app/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  1531. package/app/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  1532. package/app/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  1533. package/app/node_modules/caniuse-lite/data/features/webm.js +1 -1
  1534. package/app/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  1535. package/app/node_modules/caniuse-lite/data/features/webp.js +1 -1
  1536. package/app/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  1537. package/app/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  1538. package/app/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  1539. package/app/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  1540. package/app/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  1541. package/app/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  1542. package/app/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  1543. package/app/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  1544. package/app/node_modules/caniuse-lite/data/features/woff.js +1 -1
  1545. package/app/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  1546. package/app/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  1547. package/app/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  1548. package/app/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  1549. package/app/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  1550. package/app/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  1551. package/app/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  1552. package/app/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  1553. package/app/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  1554. package/app/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  1555. package/app/node_modules/caniuse-lite/package.json +1 -1
  1556. package/app/node_modules/nanoid/non-secure/index.cjs +0 -10
  1557. package/app/node_modules/nanoid/package.json +1 -1
  1558. package/app/package.json +1 -1
  1559. package/app/public/i18n/literals/zh-CN.json +1 -0
  1560. package/app/server.js +1 -1
  1561. package/package.json +1 -1
  1562. package/app/.next-cli-build/server/chunks/2091.js +0 -1
  1563. package/app/.next-cli-build/server/chunks/2996.js +0 -1
  1564. package/app/.next-cli-build/server/chunks/3390.js +0 -1
  1565. package/app/.next-cli-build/server/chunks/3453.js +0 -1
  1566. package/app/.next-cli-build/server/chunks/3913.js +0 -64
  1567. package/app/.next-cli-build/server/chunks/4161.js +0 -1
  1568. package/app/.next-cli-build/server/chunks/5002.js +0 -1
  1569. package/app/.next-cli-build/server/chunks/5692.js +0 -1
  1570. package/app/.next-cli-build/server/chunks/6445.js +0 -10
  1571. package/app/.next-cli-build/server/chunks/6568.js +0 -3
  1572. package/app/.next-cli-build/server/chunks/7828.js +0 -1
  1573. package/app/.next-cli-build/server/chunks/8080.js +0 -1
  1574. package/app/.next-cli-build/server/chunks/8255.js +0 -1
  1575. package/app/.next-cli-build/server/chunks/8914.js +0 -1
  1576. package/app/.next-cli-build/server/chunks/9549.js +0 -1
  1577. package/app/.next-cli-build/static/6KXTQVOT_lRgjerwT-tv3/_buildManifest.js +0 -1
  1578. package/app/.next-cli-build/static/chunks/1051-080896ceff7ba88d.js +0 -64
  1579. package/app/.next-cli-build/static/chunks/1321-3c8b61c89c7c00b1.js +0 -1
  1580. package/app/.next-cli-build/static/chunks/1a258343-5938f676ed376386.js +0 -1
  1581. package/app/.next-cli-build/static/chunks/5497-9693b69a6ba714c2.js +0 -7
  1582. package/app/.next-cli-build/static/chunks/6502-54f3e96cead0a0a3.js +0 -3
  1583. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-35beb2949f0feaa0.js +0 -1
  1584. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-a93420694c4be022.js +0 -1
  1585. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-fad4cd709b370642.js +0 -1
  1586. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-9548f5a1140005d5.js +0 -1
  1587. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-4ce59558e8fe3be1.js +0 -1
  1588. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-5ef89f751912e1ef.js +0 -1
  1589. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-8eb2e65f0ce52b79.js +0 -1
  1590. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-92cff164200e3f2a.js +0 -1
  1591. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-1d82df0c59998142.js +0 -1
  1592. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-31cc0cda6436a0b9.js +0 -10
  1593. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-8824acbc5ab93904.js +0 -1
  1594. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-b3c27640638a72ce.js +0 -1
  1595. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-893cbf6a96a3e92c.js +0 -1
  1596. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-0006630ca3232027.js +0 -1
  1597. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-0006630ca3232027.js +0 -1
  1598. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-0006630ca3232027.js +0 -1
  1599. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-0006630ca3232027.js +0 -1
  1600. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-0006630ca3232027.js +0 -1
  1601. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-0006630ca3232027.js +0 -1
  1602. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-0006630ca3232027.js +0 -1
  1603. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-0006630ca3232027.js +0 -1
  1604. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-0006630ca3232027.js +0 -1
  1605. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-0006630ca3232027.js +0 -1
  1606. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-0006630ca3232027.js +0 -1
  1607. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-0006630ca3232027.js +0 -1
  1608. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-0006630ca3232027.js +0 -1
  1609. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-0006630ca3232027.js +0 -1
  1610. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-0006630ca3232027.js +0 -1
  1611. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-0006630ca3232027.js +0 -1
  1612. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-0006630ca3232027.js +0 -1
  1613. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-0006630ca3232027.js +0 -1
  1614. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-0006630ca3232027.js +0 -1
  1615. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-0006630ca3232027.js +0 -1
  1616. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-0006630ca3232027.js +0 -1
  1617. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-0006630ca3232027.js +0 -1
  1618. package/app/.next-cli-build/static/chunks/app/api/combos/reorder/route-0006630ca3232027.js +0 -1
  1619. package/app/.next-cli-build/static/chunks/app/api/combos/route-0006630ca3232027.js +0 -1
  1620. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-0006630ca3232027.js +0 -1
  1621. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-0006630ca3232027.js +0 -1
  1622. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-0006630ca3232027.js +0 -1
  1623. package/app/.next-cli-build/static/chunks/app/api/health/route-0006630ca3232027.js +0 -1
  1624. package/app/.next-cli-build/static/chunks/app/api/init/route-0006630ca3232027.js +0 -1
  1625. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-0006630ca3232027.js +0 -1
  1626. package/app/.next-cli-build/static/chunks/app/api/keys/route-0006630ca3232027.js +0 -1
  1627. package/app/.next-cli-build/static/chunks/app/api/locale/route-0006630ca3232027.js +0 -1
  1628. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-0006630ca3232027.js +0 -1
  1629. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-0006630ca3232027.js +0 -1
  1630. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-0006630ca3232027.js +0 -1
  1631. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-0006630ca3232027.js +0 -1
  1632. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-0006630ca3232027.js +0 -1
  1633. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-0006630ca3232027.js +0 -1
  1634. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-0006630ca3232027.js +0 -1
  1635. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-0006630ca3232027.js +0 -1
  1636. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-0006630ca3232027.js +0 -1
  1637. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-0006630ca3232027.js +0 -1
  1638. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-0006630ca3232027.js +0 -1
  1639. package/app/.next-cli-build/static/chunks/app/api/models/order/route-0006630ca3232027.js +0 -1
  1640. package/app/.next-cli-build/static/chunks/app/api/models/route-0006630ca3232027.js +0 -1
  1641. package/app/.next-cli-build/static/chunks/app/api/models/test/route-0006630ca3232027.js +0 -1
  1642. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-0006630ca3232027.js +0 -1
  1643. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-0006630ca3232027.js +0 -1
  1644. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-0006630ca3232027.js +0 -1
  1645. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-0006630ca3232027.js +0 -1
  1646. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-0006630ca3232027.js +0 -1
  1647. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-0006630ca3232027.js +0 -1
  1648. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-0006630ca3232027.js +0 -1
  1649. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-0006630ca3232027.js +0 -1
  1650. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-0006630ca3232027.js +0 -1
  1651. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-0006630ca3232027.js +0 -1
  1652. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-0006630ca3232027.js +0 -1
  1653. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-0006630ca3232027.js +0 -1
  1654. package/app/.next-cli-build/static/chunks/app/api/pricing/route-0006630ca3232027.js +0 -1
  1655. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-0006630ca3232027.js +0 -1
  1656. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-0006630ca3232027.js +0 -1
  1657. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-0006630ca3232027.js +0 -1
  1658. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/connections/disabled/route-0006630ca3232027.js +0 -1
  1659. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-0006630ca3232027.js +0 -1
  1660. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/pool/pull/route-0006630ca3232027.js +0 -1
  1661. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/pool/route-0006630ca3232027.js +0 -1
  1662. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-0006630ca3232027.js +0 -1
  1663. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-0006630ca3232027.js +0 -1
  1664. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-0006630ca3232027.js +0 -1
  1665. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-0006630ca3232027.js +0 -1
  1666. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-0006630ca3232027.js +0 -1
  1667. package/app/.next-cli-build/static/chunks/app/api/providers/route-0006630ca3232027.js +0 -1
  1668. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-0006630ca3232027.js +0 -1
  1669. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-0006630ca3232027.js +0 -1
  1670. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-0006630ca3232027.js +0 -1
  1671. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-0006630ca3232027.js +0 -1
  1672. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-0006630ca3232027.js +0 -1
  1673. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-0006630ca3232027.js +0 -1
  1674. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-0006630ca3232027.js +0 -1
  1675. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-0006630ca3232027.js +0 -1
  1676. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-0006630ca3232027.js +0 -1
  1677. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-0006630ca3232027.js +0 -1
  1678. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-0006630ca3232027.js +0 -1
  1679. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-0006630ca3232027.js +0 -1
  1680. package/app/.next-cli-build/static/chunks/app/api/settings/route-0006630ca3232027.js +0 -1
  1681. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-0006630ca3232027.js +0 -1
  1682. package/app/.next-cli-build/static/chunks/app/api/tags/route-0006630ca3232027.js +0 -1
  1683. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-0006630ca3232027.js +0 -1
  1684. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-0006630ca3232027.js +0 -1
  1685. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-0006630ca3232027.js +0 -1
  1686. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-0006630ca3232027.js +0 -1
  1687. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-0006630ca3232027.js +0 -1
  1688. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-0006630ca3232027.js +0 -1
  1689. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-0006630ca3232027.js +0 -1
  1690. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-0006630ca3232027.js +0 -1
  1691. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-0006630ca3232027.js +0 -1
  1692. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-0006630ca3232027.js +0 -1
  1693. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-0006630ca3232027.js +0 -1
  1694. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-0006630ca3232027.js +0 -1
  1695. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-0006630ca3232027.js +0 -1
  1696. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-0006630ca3232027.js +0 -1
  1697. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-0006630ca3232027.js +0 -1
  1698. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-0006630ca3232027.js +0 -1
  1699. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-0006630ca3232027.js +0 -1
  1700. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-0006630ca3232027.js +0 -1
  1701. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-0006630ca3232027.js +0 -1
  1702. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-0006630ca3232027.js +0 -1
  1703. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-0006630ca3232027.js +0 -1
  1704. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-0006630ca3232027.js +0 -1
  1705. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-0006630ca3232027.js +0 -1
  1706. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-0006630ca3232027.js +0 -1
  1707. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-0006630ca3232027.js +0 -1
  1708. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-0006630ca3232027.js +0 -1
  1709. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-0006630ca3232027.js +0 -1
  1710. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-0006630ca3232027.js +0 -1
  1711. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-0006630ca3232027.js +0 -1
  1712. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-0006630ca3232027.js +0 -1
  1713. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-0006630ca3232027.js +0 -1
  1714. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-0006630ca3232027.js +0 -1
  1715. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-0006630ca3232027.js +0 -1
  1716. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-0006630ca3232027.js +0 -1
  1717. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-0006630ca3232027.js +0 -1
  1718. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-0006630ca3232027.js +0 -1
  1719. package/app/.next-cli-build/static/chunks/app/api/v1/route-0006630ca3232027.js +0 -1
  1720. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-0006630ca3232027.js +0 -1
  1721. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-0006630ca3232027.js +0 -1
  1722. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-0006630ca3232027.js +0 -1
  1723. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-0006630ca3232027.js +0 -1
  1724. package/app/.next-cli-build/static/chunks/app/api/version/route-0006630ca3232027.js +0 -1
  1725. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-0006630ca3232027.js +0 -1
  1726. package/app/.next-cli-build/static/chunks/app/api/version/update/route-0006630ca3232027.js +0 -1
  1727. package/app/.next-cli-build/static/chunks/app/callback/page-69c80ed172191a02.js +0 -1
  1728. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-feda7f7a9c272877.js +0 -1
  1729. package/app/.next-cli-build/static/chunks/app/login/page-100ca7d1326036fd.js +0 -1
  1730. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-0006630ca3232027.js +0 -1
  1731. package/app/.next-cli-build/static/chunks/app/page-0006630ca3232027.js +0 -1
  1732. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-0006630ca3232027.js +0 -1
  1733. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-0006630ca3232027.js +0 -1
  1734. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-9e6846bb98322e86.js +0 -1
  1735. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-0006630ca3232027.js +0 -1
  1736. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-0006630ca3232027.js +0 -1
  1737. package/app/.next-cli-build/static/css/d434f5eb81ebb26f.css +0 -1
  1738. package/app/.next-cli-build/static/media/material-symbols-outlined.50fdf095.woff2 +0 -0
  1739. package/app/cli/.build-home/.9router/db/backups/upgrade-0.4.83-to-0.4.84-0.4.84-20260625-092251/data.sqlite +0 -0
  1740. package/app/cli/.build-home/.9router/db/backups/upgrade-0.4.84-to-0.5.9-0.5.9-20260625-151604/data.sqlite +0 -0
  1741. package/app/cli/.build-home/.9router/db/backups/upgrade-0.5.10-to-0.5.11-0.5.11-20260626-154318/data.sqlite +0 -0
  1742. package/app/cli/.build-home/.9router/db/backups/upgrade-0.5.9-to-0.5.10-0.5.10-20260625-164702/data.sqlite +0 -0
  1743. /package/app/.next-cli-build/static/{6KXTQVOT_lRgjerwT-tv3 → kFxC_DXGaiOo8II5Pb_Mu}/_ssgManifest.js +0 -0
@@ -1,7 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5497],{98:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155),r=s(31474);function n({label:e,options:t=[],value:s,onChange:l,placeholder:i="Select an option",error:o,hint:d,disabled:c=!1,required:m=!1,className:x,selectClassName:u,...p}){return(0,a.jsxs)("div",{className:(0,r.cn)("flex flex-col gap-1.5",x),children:[e&&(0,a.jsxs)("label",{className:"text-sm font-medium text-text-main",children:[e,m&&(0,a.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("select",{value:s,onChange:l,disabled:c,className:(0,r.cn)("w-full py-2.5 px-3 pr-10 text-sm text-text-main","bg-surface-2 border border-transparent rounded-[10px] appearance-none","focus:outline-none focus:ring-2 focus:ring-brand-500/30 focus:border-brand-500/40","transition-all duration-150 disabled:opacity-50 disabled:cursor-not-allowed","text-[16px] sm:text-sm",o&&"ring-1 ring-red-500 focus:ring-2 focus:ring-red-500/40 border-red-500/40",u),...p,children:[(0,a.jsx)("option",{value:"",disabled:!0,children:i}),t.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,a.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"expand_more"})})]}),o&&(0,a.jsxs)("p",{className:"text-xs text-red-500 flex items-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),o]}),d&&!o&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:d})]})}},1620:(e,t,s)=>{s.d(t,{D:()=>o});var a=s(12115),r=s(90085);function n(e){let t=window.matchMedia("(prefers-color-scheme: dark)");return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function l(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function i(){return!1}function o(){let{theme:e,setTheme:t,toggleTheme:s,initTheme:o}=(0,r.A)(),d=(0,a.useSyncExternalStore)(n,l,i);(0,a.useEffect)(()=>{o()},[o]),(0,a.useEffect)(()=>{if("system"!==e)return;let t=window.matchMedia("(prefers-color-scheme: dark)"),s=()=>o();return t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[e,o]);let c="dark"===e||"system"===e&&d;return{theme:e,setTheme:t,toggleTheme:s,isDark:c}}},4809:(e,t,s)=>{s.d(t,{default:()=>V});var a=s(95155),r=s(12115),n=s(73321),l=s(88105),i=s(56061),o=s(84588),d=s(14051),c=s.n(d);let m=e=>new Intl.NumberFormat().format(e||0);function x({stats:e}){let t;return(0,a.jsxs)("div",{className:"grid min-w-0 grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-4 sm:gap-4",children:[(0,a.jsxs)(o.default,{className:"flex min-w-0 flex-col gap-1 px-4 py-3",children:[(0,a.jsx)("span",{className:"text-text-muted text-sm uppercase font-semibold",children:"Total Requests"}),(0,a.jsx)("span",{className:"truncate text-2xl font-bold",children:m(e.totalRequests)})]}),(0,a.jsxs)(o.default,{className:"flex min-w-0 flex-col gap-1 px-4 py-3",children:[(0,a.jsx)("span",{className:"text-text-muted text-sm uppercase font-semibold",children:"Total Input Tokens"}),(0,a.jsx)("span",{className:"truncate text-2xl font-bold text-primary",children:m(e.totalPromptTokens)})]}),(0,a.jsxs)(o.default,{className:"flex min-w-0 flex-col gap-1 px-4 py-3",children:[(0,a.jsx)("span",{className:"text-text-muted text-sm uppercase font-semibold",children:"Output Tokens"}),(0,a.jsx)("span",{className:"truncate text-2xl font-bold text-success",children:m(e.totalCompletionTokens)})]}),(0,a.jsxs)(o.default,{className:"flex min-w-0 flex-col gap-1 px-4 py-3",children:[(0,a.jsx)("span",{className:"text-text-muted text-sm uppercase font-semibold",children:"Est. Cost"}),(0,a.jsxs)("span",{className:"truncate text-2xl font-bold text-warning",children:["~",(t=e.totalCost,`$${(t||0).toFixed(2)}`)]}),(0,a.jsx)("span",{className:"text-[10px] text-text-muted",children:"Estimated, not actual billing"})]})]})}x.propTypes={stats:c().object.isRequired};let u=e=>new Intl.NumberFormat().format(e||0),p=e=>`$${(e||0).toFixed(2)}`;function h(e){if(!e)return"Never";let t=Math.floor((Date.now()-new Date(e))/6e4);return t<1?"Just now":t<60?`${t}m ago`:t<1440?`${Math.floor(t/60)}h ago`:new Date(e).toLocaleDateString()}function f({field:e,currentSort:t,currentOrder:s}){return t!==e?(0,a.jsx)("span",{className:"ml-1 opacity-20",children:"↕"}):(0,a.jsx)("span",{className:"ml-1",children:"asc"===s?"↑":"↓"})}function b({item:e,viewMode:t,isSummary:s=!1}){return"tokens"===t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("td",{className:"px-6 py-3 text-right text-text-muted",children:s&&void 0===e.promptTokens?"—":u(e.promptTokens)}),(0,a.jsx)("td",{className:"px-6 py-3 text-right text-text-muted",children:s&&void 0===e.completionTokens?"—":u(e.completionTokens)}),(0,a.jsx)("td",{className:"px-6 py-3 text-right font-medium",children:u(e.totalTokens)})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("td",{className:"px-6 py-3 text-right text-text-muted",children:s&&void 0===e.inputCost?"—":p(e.inputCost)}),(0,a.jsx)("td",{className:"px-6 py-3 text-right text-text-muted",children:s&&void 0===e.outputCost?"—":p(e.outputCost)}),(0,a.jsx)("td",{className:"px-6 py-3 text-right font-medium text-warning",children:p(e.totalCost||e.cost)})]})}function g({title:e,columns:t,groupedData:s,tableType:n,sortBy:l,sortOrder:i,onToggleSort:d,viewMode:c,storageKey:m,renderDetailCells:x,renderSummaryCells:u,emptyMessage:p}){let[h,v]=(0,r.useState)(new Set);(0,r.useEffect)(()=>{try{let e=localStorage.getItem(m);e&&v(new Set(JSON.parse(e)))}catch(e){console.error(`Failed to load ${m}:`,e)}},[m]),(0,r.useEffect)(()=>{try{localStorage.setItem(m,JSON.stringify([...h]))}catch(e){console.error(`Failed to save ${m}:`,e)}},[h,m]);let j=(0,r.useCallback)(e=>{v(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},[]),y=(0,r.useMemo)(()=>"tokens"===c?[{field:"promptTokens",label:"Input Tokens"},{field:"completionTokens",label:"Output Tokens"},{field:"totalTokens",label:"Total Tokens"}]:[{field:"promptTokens",label:"Input Cost"},{field:"completionTokens",label:"Output Cost"},{field:"cost",label:"Total Cost"}],[c]),N=t.length+y.length;return(0,a.jsxs)(o.default,{className:"overflow-hidden",children:[(0,a.jsx)("div",{className:"p-4 border-b border-border bg-bg-subtle/50",children:(0,a.jsx)("h3",{className:"font-semibold",children:e})}),(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full text-sm text-left",children:[(0,a.jsx)("thead",{className:"bg-bg-subtle/30 text-text-muted uppercase text-xs",children:(0,a.jsxs)("tr",{children:[t.map(e=>(0,a.jsxs)("th",{className:`px-6 py-3 cursor-pointer hover:bg-bg-subtle/50 ${"right"===e.align?"text-right":""}`,onClick:()=>d(n,e.field),children:[e.label," ",(0,a.jsx)(f,{field:e.field,currentSort:l,currentOrder:i})]},e.field)),y.map(e=>(0,a.jsxs)("th",{className:"px-6 py-3 text-right cursor-pointer hover:bg-bg-subtle/50",onClick:()=>d(n,e.field),children:[e.label," ",(0,a.jsx)(f,{field:e.field,currentSort:l,currentOrder:i})]},e.field))]})}),(0,a.jsxs)("tbody",{className:"divide-y divide-border",children:[s.map(e=>(0,a.jsxs)(r.Fragment,{children:[(0,a.jsxs)("tr",{className:"group-summary cursor-pointer hover:bg-bg-subtle/50 transition-colors",onClick:()=>j(e.groupKey),children:[(0,a.jsx)("td",{className:"px-6 py-3",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted transition-transform ${h.has(e.groupKey)?"rotate-90":""}`,children:"chevron_right"}),(0,a.jsx)("span",{className:`font-medium transition-colors ${e.summary.pending>0?"text-primary":""}`,children:e.groupKey})]})}),u(e),(0,a.jsx)(b,{item:e.summary,viewMode:c,isSummary:!0})]}),h.has(e.groupKey)&&e.items.map(e=>(0,a.jsxs)("tr",{className:"group-detail hover:bg-bg-subtle/20 transition-colors",children:[x(e),(0,a.jsx)(b,{item:e,viewMode:c})]},`detail-${e.key}`))]},e.groupKey)),0===s.length&&(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:N,className:"px-6 py-8 text-center text-text-muted",children:p})})]})]})})]})}f.propTypes={field:c().string.isRequired,currentSort:c().string.isRequired,currentOrder:c().string.isRequired},b.propTypes={item:c().object.isRequired,viewMode:c().string.isRequired,isSummary:c().bool},g.propTypes={title:c().string.isRequired,columns:c().arrayOf(c().shape({field:c().string.isRequired,label:c().string.isRequired,align:c().string})).isRequired,groupedData:c().array.isRequired,tableType:c().string.isRequired,sortBy:c().string.isRequired,sortOrder:c().string.isRequired,onToggleSort:c().func.isRequired,viewMode:c().string.isRequired,storageKey:c().string.isRequired,renderDetailCells:c().func.isRequired,renderSummaryCells:c().func.isRequired,emptyMessage:c().string.isRequired};var v=s(81750),j=s(6793);function y({data:e}){let{label:t,color:s,imageUrl:n,textIcon:l,active:i}=e,[o,d]=(0,r.useState)(!1);return(0,a.jsxs)("div",{className:"flex items-center gap-2.5 px-4 py-2.5 rounded-lg border-2 transition-all duration-300 bg-bg",style:{borderColor:i?s:"var(--color-border)",boxShadow:i?`0 0 16px ${s}40`:"none",minWidth:"150px"},children:[(0,a.jsx)(v.h7,{type:"target",position:j.yX.Top,id:"top",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,a.jsx)(v.h7,{type:"target",position:j.yX.Bottom,id:"bottom",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,a.jsx)(v.h7,{type:"target",position:j.yX.Left,id:"left",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,a.jsx)(v.h7,{type:"target",position:j.yX.Right,id:"right",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,a.jsx)("div",{className:"w-8 h-8 rounded-md flex items-center justify-center shrink-0",style:{backgroundColor:`${s}15`},children:o?(0,a.jsx)("span",{className:"text-sm font-bold",style:{color:s},children:l}):(0,a.jsx)("img",{src:n,alt:t,className:"w-6 h-6 rounded-sm object-contain",onError:()=>d(!0)})}),(0,a.jsx)("span",{className:"text-base font-medium truncate",style:{color:i?s:"var(--color-text)"},children:t}),i&&(0,a.jsxs)("span",{className:"relative flex h-2 w-2 shrink-0",children:[(0,a.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75",style:{backgroundColor:s}}),(0,a.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2",style:{backgroundColor:s}})]})]})}function N({data:e}){return(0,a.jsxs)("div",{className:"flex items-center justify-center px-5 py-3 rounded-xl border-2 border-primary bg-primary/5 shadow-md min-w-[130px]",children:[(0,a.jsx)(v.h7,{type:"source",position:j.yX.Top,id:"top",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,a.jsx)(v.h7,{type:"source",position:j.yX.Bottom,id:"bottom",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,a.jsx)(v.h7,{type:"source",position:j.yX.Left,id:"left",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,a.jsx)(v.h7,{type:"source",position:j.yX.Right,id:"right",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,a.jsx)("img",{src:"/favicon.svg",alt:"9Router",className:"w-6 h-6 mr-2"}),(0,a.jsx)("span",{className:"text-sm font-bold text-primary",children:"9Router"}),e.activeCount>0&&(0,a.jsx)("span",{className:"ml-2 px-1.5 py-0.5 rounded-full bg-primary text-white text-xs font-bold",children:e.activeCount})]})}s(53255),y.propTypes={data:c().object.isRequired},N.propTypes={data:c().object.isRequired};let w={provider:y,router:N};function k({providers:e=[],activeRequests:t=[],lastProvider:s="",errorProvider:n=""}){let i=(0,r.useMemo)(()=>t.map(e=>e.provider?.toLowerCase()).filter(Boolean).sort().join(","),[t]),o=s?.toLowerCase()||"",d=n?.toLowerCase()||"",c=(0,r.useMemo)(()=>new Set(i?i.split(","):[]),[i]),m=(0,r.useMemo)(()=>new Set(o?[o]:[]),[o]),x=(0,r.useMemo)(()=>new Set(d?[d]:[]),[d]),u=(0,r.useRef)({}),[p,h]=(0,r.useState)(0);(0,r.useEffect)(()=>{let e=u.current,t=Date.now();for(let s of c)e[s]||(e[s]=t);for(let t of Object.keys(e))c.has(t)||delete e[t]},[c]),(0,r.useEffect)(()=>{if(0===c.size)return;let e=setInterval(()=>h(e=>e+1),1e3);return()=>clearInterval(e)},[c]);let f=(0,r.useMemo)(()=>{let e=Date.now(),t=new Set;for(let s of c){let a=u.current[s];(!a||e-a<6e4)&&t.add(s)}return t},[c,p]),{nodes:b,edges:g}=(0,r.useMemo)(()=>(function(e,t,s,a){let r=e.length,n=Math.max(320,204*r/(2*Math.PI)),i=Math.max(200,.55*n);if(0===r)return{nodes:[{id:"router",type:"router",position:{x:0,y:0},data:{activeCount:0},draggable:!1}],edges:[]};let o=[],d=[];return o.push({id:"router",type:"router",position:{x:-60,y:-22},data:{activeCount:t.size},draggable:!1}),e.forEach((e,c)=>{var m,x;let u,p,h=(m=e.provider,l.Q2[m]||{color:"#6b7280",name:m}),f=t.has(e.provider?.toLowerCase()),b=!f&&s.has(e.provider?.toLowerCase()),g=!f&&a.has(e.provider?.toLowerCase()),v=`provider-${e.provider}`,j={label:(h.name!==e.provider?h.name:null)||e.nodeName||e.name||e.provider,color:h.color||"#6b7280",imageUrl:(x=e.provider,`/providers/${x}.png`),textIcon:h.textIcon||(e.provider||"?").slice(0,2).toUpperCase(),active:f},y=-Math.PI/2+2*Math.PI*c/r,N=n*Math.cos(y),w=i*Math.sin(y);Math.abs(y+Math.PI/2)<Math.PI/4||Math.abs(y-3*Math.PI/2)<Math.PI/4?(u="top",p="bottom"):Math.abs(y-Math.PI/2)<Math.PI/4?(u="bottom",p="top"):N>0?(u="right",p="left"):(u="left",p="right"),o.push({id:v,type:"provider",position:{x:N-90,y:w-15},data:j,draggable:!1}),d.push({id:`e-${v}`,source:"router",sourceHandle:u,target:v,targetHandle:p,animated:f,style:(h.color,g?{stroke:"#ef4444",strokeWidth:2.5,opacity:.9}:f?{stroke:"#22c55e",strokeWidth:2.5,opacity:.9}:b?{stroke:"#f59e0b",strokeWidth:2,opacity:.7}:{stroke:"var(--color-border)",strokeWidth:1,opacity:.3})})}),{nodes:o,edges:d}})(e,f,m,x),[e,f,o,d]),j=(0,r.useMemo)(()=>e.map(e=>e.provider).sort().join(","),[e]),y=(0,r.useRef)(null),N=(0,r.useRef)(null),C={padding:.2,duration:200},S=(0,r.useCallback)(e=>{y.current=e,setTimeout(()=>e.fitView(C),50)},[]);return(0,r.useEffect)(()=>{let e=N.current;if(!e)return;let t=new ResizeObserver(()=>{y.current&&y.current.fitView(C)});return t.observe(e),()=>t.disconnect()},[]),(0,r.useEffect)(()=>{if(y.current){let e=setTimeout(()=>y.current.fitView(C),50);return()=>clearTimeout(e)}},[b.length]),(0,a.jsx)("div",{ref:N,className:"h-[320px] w-full min-w-0 rounded-lg border border-border bg-bg-subtle/30 sm:h-[480px]",children:0===e.length?(0,a.jsx)("div",{className:"h-full flex items-center justify-center text-text-muted text-sm",children:"No providers connected"}):(0,a.jsx)(v.Gc,{nodes:b,edges:g,nodeTypes:w,fitView:!0,fitViewOptions:C,minZoom:.1,maxZoom:2,onInit:S,proOptions:{hideAttribution:!0},panOnDrag:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,preventScrolling:!1,nodesDraggable:!1,nodesConnectable:!1,elementsSelectable:!1,children:(0,a.jsx)(v.H2,{showInteractive:!1,className:"react-flow-controls-custom"})},j)})}k.propTypes={providers:c().arrayOf(c().shape({id:c().string,provider:c().string,name:c().string})),activeRequests:c().arrayOf(c().shape({provider:c().string,model:c().string,account:c().string})),lastProvider:c().string,errorProvider:c().string};var C=s(1728),S=s(63346),O=s(28408),T=s(32539),P=s(59656),$=s(95543),F=s(40968);let I=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e||0),R=e=>`$${(e||0).toFixed(4)}`;function A({period:e="7d"}){let[t,s]=(0,r.useState)([]),[n,l]=(0,r.useState)(!0),[i,d]=(0,r.useState)("tokens"),c=(0,r.useCallback)(async()=>{l(!0);try{let t=await fetch(`/api/usage/chart?period=${e}`);if(t.ok){let e=await t.json();s(e)}}catch(e){console.error("Failed to fetch chart data:",e)}finally{l(!1)}},[e]);(0,r.useEffect)(()=>{c()},[c]);let m=t.some(e=>e.tokens>0||e.cost>0);return(0,a.jsxs)(o.default,{className:"flex min-w-0 flex-col gap-3 p-3 sm:p-4",children:[(0,a.jsxs)("div",{className:"grid w-full grid-cols-2 items-center gap-1 rounded-lg border border-border bg-bg-subtle p-1 sm:w-auto sm:self-start",children:[(0,a.jsx)("button",{onClick:()=>d("tokens"),className:`px-3 py-1 rounded-md text-sm font-medium transition-colors ${"tokens"===i?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text hover:bg-bg-hover"}`,children:"Tokens"}),(0,a.jsx)("button",{onClick:()=>d("cost"),className:`px-3 py-1 rounded-md text-sm font-medium transition-colors ${"cost"===i?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text hover:bg-bg-hover"}`,children:"Cost"})]}),n?(0,a.jsx)("div",{className:"h-48 flex items-center justify-center text-text-muted text-sm",children:"Loading..."}):m?(0,a.jsx)(C.u,{width:"100%",height:220,children:(0,a.jsxs)(S.Q,{data:t,margin:{top:4,right:8,left:0,bottom:0},children:[(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:"gradTokens",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.25}),(0,a.jsx)("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]}),(0,a.jsxs)("linearGradient",{id:"gradCost",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"5%",stopColor:"#f59e0b",stopOpacity:.25}),(0,a.jsx)("stop",{offset:"95%",stopColor:"#f59e0b",stopOpacity:0})]})]}),(0,a.jsx)(O.d,{strokeDasharray:"3 3",strokeOpacity:.1}),(0,a.jsx)(T.W,{dataKey:"label",tick:{fontSize:10,fill:"currentColor",fillOpacity:.5},tickLine:!1,axisLine:!1,interval:"preserveStartEnd"}),(0,a.jsx)(P.h,{tick:{fontSize:10,fill:"currentColor",fillOpacity:.5},tickLine:!1,axisLine:!1,tickFormatter:"tokens"===i?I:R,width:50}),(0,a.jsx)($.m,{contentStyle:{backgroundColor:"var(--color-bg)",border:"1px solid var(--color-border)",borderRadius:"8px",fontSize:"12px"},formatter:(e,t)=>"tokens"===t?[I(e),"Tokens"]:[R(e),"Cost"]}),"tokens"===i?(0,a.jsx)(F.Gk,{type:"monotone",dataKey:"tokens",stroke:"#6366f1",strokeWidth:2,fill:"url(#gradTokens)",dot:!1,activeDot:{r:4}}):(0,a.jsx)(F.Gk,{type:"monotone",dataKey:"cost",stroke:"#f59e0b",strokeWidth:2,fill:"url(#gradCost)",dot:!1,activeDot:{r:4}})]})}):(0,a.jsx)("div",{className:"h-48 flex items-center justify-center text-text-muted text-sm",children:"No data for this period"})]})}function E(e){let t=l.Q2[e];return!t?.serviceKinds||t.serviceKinds.includes("llm")}function W({timestamp:e}){let t,[,s]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let e=setInterval(()=>s(e=>e+1),1e3);return()=>clearInterval(e)},[]),(0,a.jsx)(a.Fragment,{children:(t=Math.floor((Date.now()-new Date(e))/1e3))<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:`${Math.floor(t/86400)}d ago`})}function M({requests:e=[]}){return(0,a.jsxs)(o.default,{className:"flex min-w-0 flex-col overflow-hidden",padding:"sm",style:{height:480},children:[(0,a.jsx)("div",{className:"px-1 py-2 border-b border-border shrink-0",children:(0,a.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wide",children:"Recent Requests"})}),e.length?(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,a.jsxs)("table",{className:"w-full min-w-[300px] border-collapse text-xs",children:[(0,a.jsx)("thead",{className:"sticky top-0 bg-bg z-10",children:(0,a.jsxs)("tr",{className:"border-b border-border",children:[(0,a.jsx)("th",{className:"py-1.5 text-left font-semibold text-text-muted w-2"}),(0,a.jsx)("th",{className:"py-1.5 text-left font-semibold text-text-muted",children:"Model"}),(0,a.jsx)("th",{className:"py-1.5 text-right font-semibold text-text-muted whitespace-nowrap",children:"In / Out"}),(0,a.jsx)("th",{className:"py-1.5 text-right font-semibold text-text-muted",children:"When"})]})}),(0,a.jsx)("tbody",{className:"divide-y divide-border/50",children:e.map((e,t)=>{let s=!e.status||"ok"===e.status||"success"===e.status;return(0,a.jsxs)("tr",{className:"hover:bg-bg-subtle transition-colors",children:[(0,a.jsx)("td",{className:"py-1.5",children:(0,a.jsx)("span",{className:`block w-1.5 h-1.5 rounded-full ${s?"bg-success":"bg-error"}`})}),(0,a.jsx)("td",{className:"py-1.5 font-mono truncate max-w-[120px]",title:e.model,children:e.model}),(0,a.jsxs)("td",{className:"py-1.5 text-right whitespace-nowrap",children:[(0,a.jsxs)("span",{className:"text-primary",children:[u(e.promptTokens),"↑"]})," ",(0,a.jsxs)("span",{className:"text-success",children:[u(e.completionTokens),"↓"]})]}),(0,a.jsx)("td",{className:"py-1.5 text-right text-text-muted whitespace-nowrap",children:(0,a.jsx)(W,{timestamp:e.timestamp})})]},t)})})]})}):(0,a.jsx)("div",{className:"flex-1 flex items-center justify-center text-text-muted text-sm",children:"No requests yet."})]})}function _(e,t={},s,a){return Object.entries(e||{}).map(([e,s])=>{let a=(s.promptTokens||0)+(s.completionTokens||0),r=s.cost||0,n=a>0?(s.promptTokens||0)*(r/a):0,l=a>0?(s.completionTokens||0)*(r/a):0;return{...s,key:e,totalTokens:a,totalCost:r,inputCost:n,outputCost:l,pending:t[e]||0}}).sort((e,t)=>{let r=e[s],n=t[s];return("string"==typeof r&&(r=r.toLowerCase()),"string"==typeof n&&(n=n.toLowerCase()),r<n)?"asc"===a?-1:1:r>n?"asc"===a?1:-1:0})}function q(e,t){if(!Array.isArray(e))return[];let s={};return e.forEach(e=>{let a=function(e,t){switch(t){case"rawModel":return e.rawModel||"Unknown Model";case"accountName":return e.accountName||`Account ${e.connectionId?.slice(0,8)}...`||"Unknown Account";case"keyName":return e.keyName||"Unknown Key";case"endpoint":return e.endpoint||"Unknown Endpoint";default:return e[t]||"Unknown"}}(e,t);s[a]||(s[a]={groupKey:a,summary:{requests:0,promptTokens:0,completionTokens:0,totalTokens:0,cost:0,inputCost:0,outputCost:0,lastUsed:null,pending:0},items:[]});let r=s[a].summary;r.requests+=e.requests||0,r.promptTokens+=e.promptTokens||0,r.completionTokens+=e.completionTokens||0,r.totalTokens+=e.totalTokens||0,r.cost+=e.cost||0,r.inputCost+=e.inputCost||0,r.outputCost+=e.outputCost||0,r.pending+=e.pending||0,e.lastUsed&&(!r.lastUsed||new Date(e.lastUsed)>new Date(r.lastUsed))&&(r.lastUsed=e.lastUsed),s[a].items.push(e)}),Object.values(s)}A.propTypes={period:c().string};let L=[{field:"rawModel",label:"Model"},{field:"provider",label:"Provider"},{field:"requests",label:"Requests",align:"right"},{field:"lastUsed",label:"Last Used",align:"right"}],z=[{field:"rawModel",label:"Model"},{field:"provider",label:"Provider"},{field:"accountName",label:"Account"},{field:"requests",label:"Requests",align:"right"},{field:"lastUsed",label:"Last Used",align:"right"}],D=[{field:"keyName",label:"API Key Name"},{field:"rawModel",label:"Model"},{field:"provider",label:"Provider"},{field:"requests",label:"Requests",align:"right"},{field:"lastUsed",label:"Last Used",align:"right"}],U=[{field:"endpoint",label:"Endpoint"},{field:"rawModel",label:"Model"},{field:"provider",label:"Provider"},{field:"requests",label:"Requests",align:"right"},{field:"lastUsed",label:"Last Used",align:"right"}],K=[{value:"model",label:"Usage by Model"},{value:"account",label:"Usage by Account"},{value:"apiKey",label:"Usage by API Key"},{value:"endpoint",label:"Usage by Endpoint"}],B=[{value:"today",label:"Today"},{value:"24h",label:"24h"},{value:"7d",label:"7D"},{value:"30d",label:"30D"},{value:"60d",label:"60D"}];function V({period:e,setPeriod:t,hidePeriodSelector:s=!1}={}){let o=(0,n.useRouter)(),d=(0,n.useSearchParams)(),c=d.get("sortBy")||"rawModel",m=d.get("sortOrder")||"asc",[p,f]=(0,r.useState)(null),[b,v]=(0,r.useState)(!0),[j,y]=(0,r.useState)(!1),[N,w]=(0,r.useState)("model"),[C,S]=(0,r.useState)("costs"),[O,T]=(0,r.useState)([]),[P,$]=(0,r.useState)("today"),F=(0,r.useRef)(!0),I=(0,r.useRef)(!1),R=e??P,W=t??$;(0,r.useEffect)(()=>{Promise.all([fetch("/api/providers").then(e=>e.ok?e.json():null),fetch("/api/provider-nodes").then(e=>e.ok?e.json():null)]).then(([e,t])=>{let s={};for(let e of t?.nodes||[])s[e.id]=e.name;let a=new Set;T([...(e?.connections||[]).filter(e=>!(!1===e.isActive||!E(e.provider)||a.has(e.provider))&&(a.add(e.provider),!0)).map(e=>({...e,nodeName:s[e.provider]||null})),...Object.values(l.IS).filter(e=>e.noAuth&&!a.has(e.id)&&E(e.id)).map(e=>({provider:e.id,name:e.name}))])}).catch(()=>{})},[]),(0,r.useEffect)(()=>{F.current?(F.current=!1,v(!0)):y(!0),fetch(`/api/usage/stats?period=${R}`).then(e=>e.ok?e.json():null).then(e=>{e&&(I.current=!0,f(t=>({...t,...e})))}).catch(()=>{}).finally(()=>{v(!1),y(!1)})},[R]),(0,r.useEffect)(()=>{let e=new EventSource("/api/usage/stream");return e.onmessage=e=>{try{let t=JSON.parse(e.data);f(e=>e?{...e,activeRequests:t.activeRequests,recentRequests:t.recentRequests,errorProvider:t.errorProvider,pending:t.pending}:e),I.current&&v(!1)}catch(e){console.error("[SSE CLIENT] parse error:",e)}},e.onerror=()=>v(!1),()=>e.close()},[]);let G=(0,r.useCallback)((e,t)=>{let s=new URLSearchParams(d.toString());s.get("sortBy")===t?s.set("sortOrder","asc"===s.get("sortOrder")?"desc":"asc"):(s.set("sortBy",t),s.set("sortOrder","asc")),o.replace(`?${s.toString()}`,{scroll:!1})},[d,o]),J=(0,r.useMemo)(()=>{if(!p)return null;switch(N){case"model":{let e=p.pending?.byModel||{};return{columns:L,groupedData:q(_(p.byModel,e,c,m),"rawModel"),storageKey:"usage-stats:expanded-models",emptyMessage:"No usage recorded yet.",renderSummaryCells:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,a.jsx)("td",{className:"px-6 py-3 text-right",children:u(e.summary.requests)}),(0,a.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.summary.lastUsed)})]}),renderDetailCells:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("td",{className:`px-6 py-3 font-medium transition-colors ${e.pending>0?"text-primary":""}`,children:e.rawModel}),(0,a.jsx)("td",{className:"px-6 py-3",children:(0,a.jsx)(i.default,{variant:e.pending>0?"primary":"neutral",size:"sm",children:e.provider})}),(0,a.jsx)("td",{className:"px-6 py-3 text-right",children:u(e.requests)}),(0,a.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.lastUsed)})]})}}case"account":{let e={};return p?.pending?.byAccount&&Object.entries(p.byAccount||{}).forEach(([t,s])=>{let a=p.pending.byAccount[s.connectionId];if(a){let r=s.provider?`${s.rawModel} (${s.provider})`:s.rawModel;e[t]=a[r]||0}}),{columns:z,groupedData:q(_(p.byAccount,e,c,m),"accountName"),storageKey:"usage-stats:expanded-accounts",emptyMessage:"No account-specific usage recorded yet.",renderSummaryCells:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,a.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,a.jsx)("td",{className:"px-6 py-3 text-right",children:u(e.summary.requests)}),(0,a.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.summary.lastUsed)})]}),renderDetailCells:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("td",{className:`px-6 py-3 font-medium transition-colors ${e.pending>0?"text-primary":""}`,children:e.accountName||`Account ${e.connectionId?.slice(0,8)}...`}),(0,a.jsx)("td",{className:`px-6 py-3 font-medium transition-colors ${e.pending>0?"text-primary":""}`,children:e.rawModel}),(0,a.jsx)("td",{className:"px-6 py-3",children:(0,a.jsx)(i.default,{variant:e.pending>0?"primary":"neutral",size:"sm",children:e.provider})}),(0,a.jsx)("td",{className:"px-6 py-3 text-right",children:u(e.requests)}),(0,a.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.lastUsed)})]})}}case"apiKey":return{columns:D,groupedData:q(_(p.byApiKey,{},c,m),"keyName"),storageKey:"usage-stats:expanded-apikeys",emptyMessage:"No API key usage recorded yet.",renderSummaryCells:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,a.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,a.jsx)("td",{className:"px-6 py-3 text-right",children:u(e.summary.requests)}),(0,a.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.summary.lastUsed)})]}),renderDetailCells:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("td",{className:"px-6 py-3 font-medium",children:e.keyName}),(0,a.jsx)("td",{className:"px-6 py-3",children:e.rawModel}),(0,a.jsx)("td",{className:"px-6 py-3",children:(0,a.jsx)(i.default,{variant:"neutral",size:"sm",children:e.provider})}),(0,a.jsx)("td",{className:"px-6 py-3 text-right",children:u(e.requests)}),(0,a.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.lastUsed)})]})};default:return{columns:U,groupedData:q(_(p.byEndpoint,{},c,m),"endpoint"),storageKey:"usage-stats:expanded-endpoints",emptyMessage:"No endpoint usage recorded yet.",renderSummaryCells:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,a.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,a.jsx)("td",{className:"px-6 py-3 text-right",children:u(e.summary.requests)}),(0,a.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.summary.lastUsed)})]}),renderDetailCells:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("td",{className:"px-6 py-3 font-medium font-mono text-sm",children:e.endpoint}),(0,a.jsx)("td",{className:"px-6 py-3",children:e.rawModel}),(0,a.jsx)("td",{className:"px-6 py-3",children:(0,a.jsx)(i.default,{variant:"neutral",size:"sm",children:e.provider})}),(0,a.jsx)("td",{className:"px-6 py-3 text-right",children:u(e.requests)}),(0,a.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.lastUsed)})]})}}},[p,N,c,m]);if(!p&&!b)return(0,a.jsx)("div",{className:"text-text-muted",children:"Failed to load usage statistics."});let Q=(0,a.jsx)("div",{className:"flex items-center justify-center py-12 text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[32px] animate-spin",children:"progress_activity"})});return(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-6",children:[!s&&(0,a.jsxs)("div",{className:"flex w-full items-center gap-2 sm:w-auto sm:self-end",children:[(0,a.jsx)("div",{className:"grid flex-1 grid-cols-5 items-center gap-1 rounded-lg border border-border bg-bg-subtle p-1 sm:flex sm:flex-none",children:B.map(e=>(0,a.jsx)("button",{onClick:()=>W(e.value),disabled:j,className:`rounded-md px-3 py-1 text-sm font-medium transition-colors ${R===e.value?"bg-primary text-white shadow-sm":"text-text-muted hover:bg-bg-hover hover:text-text"}`,children:e.label},e.value))}),j&&(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] text-text-muted animate-spin",children:"progress_activity"})]}),b?Q:(0,a.jsx)(x,{stats:p}),b?Q:(0,a.jsxs)("div",{className:"grid min-w-0 grid-cols-1 items-stretch gap-2 lg:grid-cols-[minmax(0,2fr)_minmax(280px,1fr)]",children:[(0,a.jsx)(k,{providers:O,activeRequests:p.activeRequests||[],lastProvider:p.recentRequests?.[0]?.provider||"",errorProvider:p.errorProvider||""}),(0,a.jsx)(M,{requests:p.recentRequests||[]})]}),b?Q:(0,a.jsx)(A,{period:R}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("select",{value:N,onChange:e=>w(e.target.value),className:"w-full rounded-lg border border-border bg-surface px-3 py-1.5 text-sm font-medium text-text-main focus:outline-none focus:ring-2 focus:ring-primary/50 sm:w-auto",style:{colorScheme:"auto"},children:K.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsxs)("div",{className:"grid grid-cols-2 items-center gap-1 rounded-lg border border-border bg-bg-subtle p-1 sm:flex",children:[(0,a.jsx)("button",{onClick:()=>S("costs"),className:`px-3 py-1 rounded-md text-sm font-medium transition-colors ${"costs"===C?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text hover:bg-bg-hover"}`,children:"Costs"}),(0,a.jsx)("button",{onClick:()=>S("tokens"),className:`px-3 py-1 rounded-md text-sm font-medium transition-colors ${"tokens"===C?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text hover:bg-bg-hover"}`,children:"Tokens"})]})]}),b?Q:J&&(0,a.jsx)(g,{title:"",columns:J.columns,groupedData:J.groupedData,tableType:N,sortBy:c,sortOrder:m,onToggleSort:G,viewMode:C,storageKey:J.storageKey,renderSummaryCells:J.renderSummaryCells,renderDetailCells:J.renderDetailCells,emptyMessage:J.emptyMessage})]})]})}},4823:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(84588),o=s(98),d=s(56061);let c="__none__";function m({providerId:e}){let[t,s]=(0,r.useState)([]),[n,l]=(0,r.useState)(c),[x,u]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let t=!1;return Promise.all([fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.ok?e.json():{proxyPools:[]}),fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():{})]).then(([a,r])=>{t||(s(a.proxyPools||[]),l(((r.providerStrategies||{})[e]||{}).proxyPoolId||c))}).catch(()=>{}),()=>{t=!0}},[e]);let f=async t=>{l(t),u(!0);try{let s=await fetch("/api/settings",{cache:"no-store"}),a=(s.ok?await s.json():{}).providerStrategies||{},r={...a[e]||{}};t===c?delete r.proxyPoolId:r.proxyPoolId=t;let n={...a};0===Object.keys(r).length?delete n[e]:n[e]=r,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:n})}),h(!0),setTimeout(()=>h(!1),1500)}catch(e){console.log("Save proxyPoolId error:",e)}finally{u(!1)}};return(0,a.jsxs)(i.default,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-10 h-10 rounded-full bg-green-500/10 text-green-500",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"lock_open"})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"No authentication required"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"This provider is ready to use. Optionally route requests through a proxy pool to bypass IP-based limits."})]}),p&&(0,a.jsx)(d.default,{variant:"success",size:"sm",children:"Saved"})]}),(0,a.jsx)(o.default,{label:"Proxy Pool",value:n,onChange:e=>f(e.target.value),disabled:x,options:[{value:c,label:"None (direct)"},...t.map(e=>({value:e.id,label:e.name}))]})]})}m.propTypes={providerId:l().string.isRequired}},7648:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(73321),l=s(65921),i=s(92622),o=s(24747);function d({children:e}){let[t,s]=(0,r.useState)(!1),c=(0,n.usePathname)(),m=(0,l.i)(e=>e.notifications),x=(0,l.i)(e=>e.removeNotification);return(0,a.jsxs)("div",{className:"flex h-screen w-full overflow-hidden bg-bg",children:[(0,a.jsx)("div",{className:"fixed top-4 right-4 z-[80] flex w-[min(92vw,380px)] flex-col gap-2",children:m.map(e=>{var t;let s="success"===(t=e.type)?{wrapper:"border-green-500/30 bg-green-500/10 text-green-600 dark:text-green-400",icon:"check_circle"}:"error"===t?{wrapper:"border-red-500/30 bg-red-500/10 text-red-600 dark:text-red-400",icon:"error"}:"warning"===t?{wrapper:"border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400",icon:"warning"}:{wrapper:"border-blue-500/30 bg-blue-500/10 text-blue-600 dark:text-blue-400",icon:"info"};return(0,a.jsx)("div",{className:`rounded-lg border px-3 py-2 shadow-lg backdrop-blur-sm ${s.wrapper}`,children:(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px] leading-5",children:s.icon}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[e.title?(0,a.jsx)("p",{className:"text-xs font-semibold mb-0.5",children:e.title}):null,(0,a.jsx)("p",{className:"text-xs whitespace-pre-wrap break-words",children:e.message})]}),e.dismissible?(0,a.jsx)("button",{type:"button",onClick:()=>x(e.id),className:"text-current/70 hover:text-current","aria-label":"Dismiss notification",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"close"})}):null]})},e.id)})}),t&&(0,a.jsx)("div",{className:"fixed inset-0 z-40 bg-black/20 lg:hidden",onClick:()=>s(!1)}),(0,a.jsx)("div",{className:"hidden lg:flex",children:(0,a.jsx)(i.default,{})}),(0,a.jsx)("div",{className:`fixed inset-y-0 left-0 z-50 transform lg:hidden transition-transform duration-300 ease-in-out ${t?"translate-x-0":"-translate-x-full"}`,children:(0,a.jsx)(i.default,{onClose:()=>s(!1)})}),(0,a.jsxs)("main",{className:"flex flex-col flex-1 h-full min-w-0 relative transition-colors duration-300 isolate",children:[(0,a.jsx)("div",{className:"landing-grid absolute inset-0 pointer-events-none -z-10","aria-hidden":"true"}),(0,a.jsx)(o.default,{onMenuClick:()=>s(!0)},c),(0,a.jsx)("div",{className:`flex-1 overflow-y-auto custom-scrollbar ${"/dashboard/basic-chat"===c?"":"p-6 lg:p-10"} ${"/dashboard/basic-chat"===c?"flex flex-col overflow-hidden":""}`,children:(0,a.jsx)("div",{className:`${"/dashboard/basic-chat"===c?"flex-1 w-full h-full flex flex-col":"max-w-7xl mx-auto"}`,children:e})})]})]})}},11059:(e,t,s)=>{s.d(t,{C:()=>r});var a=s(12115);function r(e=2e3){let[t,s]=(0,a.useState)(null),n=(0,a.useRef)(null);return{copied:t,copy:(0,a.useCallback)((t,a="default")=>{(async()=>{if(navigator?.clipboard?.writeText)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}})(),s(a),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{s(null)},e)},[e])}}},11910:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155),r=s(31474);function n({label:e,type:t="text",placeholder:s,value:l,onChange:i,error:o,hint:d,icon:c,disabled:m=!1,required:x=!1,className:u,inputClassName:p,...h}){return(0,a.jsxs)("div",{className:(0,r.cn)("flex flex-col gap-1.5",u),children:[e&&(0,a.jsxs)("label",{className:"text-sm font-medium text-text-main",children:[e,x&&(0,a.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,a.jsxs)("div",{className:"relative",children:[c&&(0,a.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:c})}),(0,a.jsx)("input",{type:t,placeholder:s,value:l,onChange:i,disabled:m,className:(0,r.cn)("w-full py-2.5 px-3 text-sm text-text-main bg-surface-2 rounded-[10px]","border border-transparent placeholder-text-muted/70","focus:outline-none focus:ring-2 focus:ring-brand-500/30 focus:border-brand-500/40","transition-all duration-150 ease-out disabled:opacity-50 disabled:cursor-not-allowed","text-[16px] sm:text-sm",c&&"pl-10",o&&"ring-1 ring-red-500 focus:ring-2 focus:ring-red-500/40 border-red-500/40",p),...h})]}),o&&(0,a.jsxs)("p",{className:"text-xs text-red-500 flex items-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),o]}),d&&!o&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:d})]})}},14932:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(95155),r=s(12115),n=s(47650);let l=[{icon:"terminal",label:"Terminal",desc:"Full shell access"},{icon:"cast",label:"Desktop",desc:"Screen sharing"},{icon:"folder_open",label:"Files",desc:"Browse & edit files"}],i=[{icon:"qr_code_scanner",text:"Scan QR to connect instantly"},{icon:"wifi_off",text:"No port forwarding needed"},{icon:"devices",text:"Works on any device"}];function o({isOpen:e,onClose:t}){return((0,r.useEffect)(()=>{if(!e)return;document.body.style.overflow="hidden";let s=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",s),()=>{document.body.style.overflow="",document.removeEventListener("keydown",s)}},[e,t]),e)?(0,n.createPortal)((0,a.jsxs)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center p-4",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in",onClick:t}),(0,a.jsxs)("div",{className:"relative w-full max-w-sm rounded-[14px] overflow-hidden shadow-[var(--shadow-elev)] fade-in flex flex-col bg-surface border border-border-subtle",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-border-subtle",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"w-7 h-7 rounded-[8px] flex items-center justify-center bg-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-white text-base",children:"terminal"})}),(0,a.jsx)("span",{className:"text-xs font-bold uppercase tracking-wider text-primary font-mono",children:"9Remote"})]}),(0,a.jsx)("button",{onClick:t,className:"p-1.5 rounded-[10px] text-text-muted hover:bg-surface-2 hover:text-text-main transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-base",children:"close"})})]}),(0,a.jsxs)("div",{className:"px-7 py-7 pb-9 flex flex-col gap-6",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center mt-2",children:[(0,a.jsx)("div",{className:"w-14 h-14 rounded-[14px] flex items-center justify-center mb-1 bg-primary shadow-[var(--shadow-warm)]",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-white text-[30px]",children:"terminal"})}),(0,a.jsx)("h1",{className:"text-lg font-bold text-text-main tracking-tight",children:"9Remote"}),(0,a.jsx)("p",{className:"text-xs text-text-muted leading-5 max-w-[220px]",children:"Access your terminal, desktop & files from anywhere"})]}),(0,a.jsx)("div",{className:"flex gap-2 w-full",children:l.map(({icon:e,label:t,desc:s})=>(0,a.jsxs)("div",{className:"flex-1 flex flex-col items-center gap-1.5 py-4 px-1 rounded-[10px] border border-border-subtle bg-surface-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary text-[22px]",children:e}),(0,a.jsx)("p",{className:"text-xs font-semibold text-text-main",children:t}),(0,a.jsx)("p",{className:"text-[10px] text-text-muted text-center leading-4",children:s})]},t))}),(0,a.jsx)("div",{className:"flex flex-col gap-3 w-full",children:i.map(({icon:e,text:t})=>(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined flex-shrink-0 text-primary text-[16px]",children:e}),(0,a.jsx)("span",{className:"text-xs text-text-muted",children:t})]},e))}),(0,a.jsxs)("button",{onClick:()=>window.open("https://9remote.cc","_blank"),className:"w-full py-3 flex items-center justify-center gap-2 text-sm font-semibold text-white rounded-[10px] bg-primary hover:bg-primary-hover shadow-[var(--shadow-warm)] active:scale-[0.98] transition-all",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base",children:"open_in_new"}),"Get 9Remote"]})]})]})]}),document.body):null}},21931:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(47650),l=s(93308),i=s(73006);let o=e=>({en:{name:"English",flag:"\uD83C\uDDFA\uD83C\uDDF8"},vi:{name:"Tiếng Việt",flag:"\uD83C\uDDFB\uD83C\uDDF3"},"zh-CN":{name:"简体中文",flag:"\uD83C\uDDE8\uD83C\uDDF3"},"zh-TW":{name:"繁體中文",flag:"\uD83C\uDDF9\uD83C\uDDFC"},ja:{name:"日本語",flag:"\uD83C\uDDEF\uD83C\uDDF5"},"pt-BR":{name:"Portugu\xeas (Brasil)",flag:"\uD83C\uDDE7\uD83C\uDDF7"},"pt-PT":{name:"Portugu\xeas (Portugal)",flag:"\uD83C\uDDF5\uD83C\uDDF9"},ko:{name:"한국어",flag:"\uD83C\uDDF0\uD83C\uDDF7"},es:{name:"Espa\xf1ol",flag:"\uD83C\uDDEA\uD83C\uDDF8"},de:{name:"Deutsch",flag:"\uD83C\uDDE9\uD83C\uDDEA"},fr:{name:"Fran\xe7ais",flag:"\uD83C\uDDEB\uD83C\uDDF7"},he:{name:"עברית",flag:"\uD83C\uDDEE\uD83C\uDDF1"},ar:{name:"العربية",flag:"\uD83C\uDDF8\uD83C\uDDE6"},ru:{name:"Русский",flag:"\uD83C\uDDF7\uD83C\uDDFA"},pl:{name:"Polski",flag:"\uD83C\uDDF5\uD83C\uDDF1"},cs:{name:"Čeština",flag:"\uD83C\uDDE8\uD83C\uDDFF"},nl:{name:"Nederlands",flag:"\uD83C\uDDF3\uD83C\uDDF1"},tr:{name:"T\xfcrk\xe7e",flag:"\uD83C\uDDF9\uD83C\uDDF7"},uk:{name:"Українська",flag:"\uD83C\uDDFA\uD83C\uDDE6"},tl:{name:"Tagalog",flag:"\uD83C\uDDF5\uD83C\uDDED"},id:{name:"Indonesia",flag:"\uD83C\uDDEE\uD83C\uDDE9"},th:{name:"ไทย",flag:"\uD83C\uDDF9\uD83C\uDDED"},hi:{name:"हिन्दी",flag:"\uD83C\uDDEE\uD83C\uDDF3"},bn:{name:"বাংলা",flag:"\uD83C\uDDE7\uD83C\uDDE9"},ur:{name:"اردو",flag:"\uD83C\uDDF5\uD83C\uDDF0"},ro:{name:"Rom\xe2nă",flag:"\uD83C\uDDF7\uD83C\uDDF4"},sv:{name:"Svenska",flag:"\uD83C\uDDF8\uD83C\uDDEA"},it:{name:"Italiano",flag:"\uD83C\uDDEE\uD83C\uDDF9"},el:{name:"Ελληνικά",flag:"\uD83C\uDDEC\uD83C\uDDF7"},hu:{name:"Magyar",flag:"\uD83C\uDDED\uD83C\uDDFA"},fi:{name:"Suomi",flag:"\uD83C\uDDEB\uD83C\uDDEE"},da:{name:"Dansk",flag:"\uD83C\uDDE9\uD83C\uDDF0"},no:{name:"Norsk",flag:"\uD83C\uDDF3\uD83C\uDDF4"}})[e]||{name:e,flag:"\uD83C\uDF10"};function d({className:e="",isOpen:t,onClose:s,hideTrigger:c=!1}){let[m,x]=(0,r.useState)("en"),[u,p]=(0,r.useState)(!1),[h,f]=(0,r.useState)(!1),b=(0,r.useRef)(null),g="boolean"==typeof t,v=g?t:h,j=e=>{g?!e&&s&&s(m):f(e)};(0,r.useEffect)(()=>{x(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${l.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,l.QC)(t)}())},[]),(0,r.useEffect)(()=>{function e(e){b.current&&!b.current.contains(e.target)&&j(!1)}if(v)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[v]);let y=async e=>{if(e!==m&&!u){p(!0),j(!1);try{await fetch("/api/locale",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({locale:e})}),await (0,i.wn)(),x(e)}catch(e){console.error("Failed to set locale:",e)}finally{p(!1)}}};return(0,a.jsxs)("div",{className:e,children:[!c&&(0,a.jsxs)("button",{onClick:()=>j(!v),disabled:u,className:"flex items-center gap-2 px-3 py-2 rounded-lg text-text-muted hover:text-text-main hover:bg-surface/60 transition-colors",title:"Language","data-i18n-skip":"true",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"language"}),(0,a.jsx)("span",{className:"text-sm font-medium",children:o(m).name}),(0,a.jsx)("span",{className:"text-lg",children:o(m).flag})]}),v&&(0,n.createPortal)((0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4","data-i18n-skip":"true",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:()=>j(!1)}),(0,a.jsxs)("div",{ref:b,className:"relative w-full bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl animate-in fade-in zoom-in-95 duration-200 max-w-2xl flex flex-col max-h-[80vh]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-black/5 dark:border-white/5",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Select Language"}),(0,a.jsx)("button",{onClick:()=>j(!1),className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5 transition-colors","aria-label":"Close",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,a.jsx)("div",{className:"p-6 overflow-y-auto flex-1",children:(0,a.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(100px,1fr))] gap-2",children:l.YZ.map(e=>{let t=m===e,s=o(e);return(0,a.jsxs)("button",{onClick:()=>y(e),disabled:u,className:`flex flex-col items-center justify-start gap-1 px-2 py-3 rounded-lg text-xs font-medium transition-colors w-full ${t?"bg-primary/15 text-primary ring-2 ring-primary":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"} ${u?"opacity-70 cursor-wait":""}`,title:s.name,children:[(0,a.jsx)("span",{className:"text-2xl",children:s.flag}),(0,a.jsx)("span",{className:"text-center leading-tight line-clamp-2 h-8 flex items-center",children:s.name}),t&&(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"check"})]},e)})})})]})]}),document.body)]})}},23615:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(95155),r=s(12115),n=s(84588);function l(){let[e,t]=(0,r.useState)([]),[s,l]=(0,r.useState)(!0),[i,o]=(0,r.useState)(!0);(0,r.useEffect)(()=>{d()},[]),(0,r.useEffect)(()=>{let e;return i&&(e=setInterval(()=>{d(!1)},3e3)),()=>clearInterval(e)},[i]);let d=async(e=!0)=>{e&&l(!0);try{let e=await fetch("/api/usage/request-logs");if(e.ok){let s=await e.json();t(s)}}catch(e){console.error("Failed to fetch logs:",e)}finally{e&&l(!1)}};return(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold",children:"Request Logs"}),(0,a.jsx)("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("label",{className:"text-sm font-medium text-text-muted flex items-center gap-2 cursor-pointer",children:[(0,a.jsx)("span",{children:"Auto Refresh (3s)"}),(0,a.jsx)("div",{onClick:()=>o(!i),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors focus:outline-none ${i?"bg-primary":"bg-bg-subtle border border-border"}`,children:(0,a.jsx)("span",{className:`inline-block h-3 w-3 transform rounded-full bg-white transition-transform ${i?"translate-x-5":"translate-x-1"}`})})]})})]}),(0,a.jsx)(n.default,{className:"overflow-hidden bg-black/5 dark:bg-black/20",children:(0,a.jsx)("div",{className:"p-0 overflow-x-auto max-h-[600px] overflow-y-auto font-mono text-xs",children:s&&0===e.length?(0,a.jsx)("div",{className:"p-8 text-center text-text-muted",children:"Loading logs..."}):0===e.length?(0,a.jsx)("div",{className:"p-8 text-center text-text-muted",children:"No logs recorded yet."}):(0,a.jsxs)("table",{className:"w-full text-left border-collapse whitespace-nowrap",children:[(0,a.jsx)("thead",{className:"sticky top-0 bg-bg-subtle border-b border-border z-10",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"DateTime"}),(0,a.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Model"}),(0,a.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Provider"}),(0,a.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Account"}),(0,a.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"In"}),(0,a.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Out"}),(0,a.jsx)("th",{className:"px-3 py-2",children:"Status"})]})}),(0,a.jsx)("tbody",{className:"divide-y divide-border/50",children:e.map((e,t)=>{let s=e.split(" | ");if(s.length<7)return null;let r=s[6],n=r.includes("PENDING"),l=r.includes("FAILED"),i=r.includes("OK");return(0,a.jsxs)("tr",{className:`hover:bg-primary/5 transition-colors ${n?"bg-primary/5":""}`,children:[(0,a.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-text-muted",children:s[0]}),(0,a.jsx)("td",{className:"px-3 py-1.5 border-r border-border font-medium",children:s[1]}),(0,a.jsx)("td",{className:"px-3 py-1.5 border-r border-border",children:(0,a.jsx)("span",{className:"px-1.5 py-0.5 rounded bg-bg-subtle border border-border text-[10px] uppercase font-bold",children:s[2]})}),(0,a.jsx)("td",{className:"px-3 py-1.5 border-r border-border truncate max-w-[150px]",title:s[3],children:s[3]}),(0,a.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-primary",children:s[4]}),(0,a.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-success",children:s[5]}),(0,a.jsx)("td",{className:`px-3 py-1.5 font-bold ${i?"text-success":l?"text-error":"text-primary animate-pulse"}`,children:r})]},t)})})]})})}),(0,a.jsx)("div",{className:"text-[10px] text-text-muted italic",children:"Logs are loaded from the request history database."})]})}},23936:(e,t,s)=>{s.d(t,{default:()=>o});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(35497);function o({isOpen:e,onSuccess:t,onClose:s}){let[n,l]=(0,r.useState)(""),[d,c]=(0,r.useState)(!1),[m,x]=(0,r.useState)(null),[u,p]=(0,r.useState)(!1),h=async()=>{if(!n.trim())return void x("Please paste your cookie");c(!0),x(null);try{let e=await fetch("/api/oauth/iflow/cookie",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookie:n.trim()})}),s=await e.json();if(!e.ok)throw Error(s.error||"Authentication failed");p(!0),setTimeout(()=>{t?.(),f()},1500)}catch(e){x(e.message)}finally{c(!1)}},f=()=>{l(""),x(null),p(!1),s?.()};return(0,a.jsx)(i.aF,{isOpen:e,onClose:f,title:"iFlow Cookie Authentication",children:(0,a.jsx)("div",{className:"space-y-4",children:u?(0,a.jsxs)("div",{className:"text-center py-8",children:[(0,a.jsx)("div",{className:"text-6xl mb-4",children:"✅"}),(0,a.jsx)("p",{className:"text-lg font-medium text-text-primary",children:"Authentication Successful!"}),(0,a.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"Fresh API key obtained"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["To get a fresh API key, paste your browser cookie from"," ",(0,a.jsx)("a",{href:"https://platform.iflow.cn",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"platform.iflow.cn"})]}),(0,a.jsxs)("div",{className:"bg-surface-secondary p-3 rounded-lg text-xs space-y-2",children:[(0,a.jsx)("p",{className:"font-medium text-text-primary",children:"How to get cookie:"}),(0,a.jsxs)("ol",{className:"list-decimal list-inside space-y-1 text-text-muted",children:[(0,a.jsx)("li",{children:"Open platform.iflow.cn in your browser"}),(0,a.jsx)("li",{children:"Login to your account"}),(0,a.jsx)("li",{children:"Open DevTools (F12) → Application/Storage → Cookies"}),(0,a.jsx)("li",{children:"Copy the entire cookie string (must include BXAuth)"}),(0,a.jsx)("li",{children:"Paste it below"})]})]})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-text-primary",children:"Cookie String"}),(0,a.jsx)("textarea",{value:n,onChange:e=>l(e.target.value),placeholder:"BXAuth=xxx; ...",className:"w-full px-3 py-2 bg-surface-secondary border border-border rounded-lg text-sm text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary resize-none",rows:4,disabled:d})]}),m&&(0,a.jsx)("div",{className:"p-3 bg-error/10 border border-error/20 rounded-lg",children:(0,a.jsx)("p",{className:"text-sm text-error",children:m})}),(0,a.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,a.jsx)(i.$n,{variant:"secondary",onClick:f,disabled:d,fullWidth:!0,children:"Cancel"}),(0,a.jsx)(i.$n,{onClick:h,loading:d,fullWidth:!0,children:"Authenticate"})]})]})})})}o.propTypes={isOpen:l().bool.isRequired,onSuccess:l().func,onClose:l().func}},24747:(e,t,s)=>{s.d(t,{default:()=>k});var a=s(95155),r=s(12115),n=s(73321),l=s(98500),i=s.n(l),o=s(14051),d=s.n(o),c=s(57250),m=s(80752),x=s(93308),u=s(38202),p=s(21931);function h(){let[e,t]=(0,r.useState)(!1),[s,n]=(0,r.useState)("en");return(0,r.useEffect)(()=>{n(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${x.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,x.QC)(t)}())},[e]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:()=>t(!0),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:"Language","data-i18n-skip":"true",children:(0,a.jsx)("span",{className:"text-lg leading-none",children:u.h[s]||"\uD83C\uDF10"})}),(0,a.jsx)(p.default,{hideTrigger:!0,isOpen:e,onClose:e=>{t(!1),n(e)}})]})}var f=s(38587),b=s(47650),g=s(90620);function v({isOpen:e,onClose:t}){let[s,n]=(0,r.useState)(null),[l,i]=(0,r.useState)(!1),[o,d]=(0,r.useState)(""),c=(0,r.useRef)(null);return((0,r.useEffect)(()=>{e&&!s&&(i(!0),d(""),fetch(g.Nu.donateUrl,{cache:"no-store"}).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}).then(e=>n(e)).catch(e=>d(e.message||"Failed to load")).finally(()=>i(!1)))},[e,s]),(0,r.useEffect)(()=>{let s=e=>{c.current&&!c.current.contains(e.target)&&t()};if(e)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[e,t]),!e||"u"<typeof document)?null:(0,b.createPortal)((0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:t}),(0,a.jsxs)("div",{ref:c,className:"relative w-full bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl animate-in fade-in zoom-in-95 duration-200 max-w-3xl flex flex-col max-h-[85vh]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-black/5 dark:border-white/5",children:[(0,a.jsxs)("h2",{className:"text-lg font-semibold text-text-main flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-pink-500",children:"volunteer_activism"}),s?.title||"Support 9Router"]}),(0,a.jsx)("button",{onClick:t,className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5 transition-colors","aria-label":"Close",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,a.jsxs)("div",{className:"p-6 overflow-y-auto flex-1",children:[l&&(0,a.jsxs)("div",{className:"flex items-center justify-center py-10 text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin mr-2",children:"progress_activity"}),"Loading..."]}),o&&(0,a.jsxs)("div",{className:"text-red-500 py-4",children:["Failed to load donate info: ",o]}),!l&&!o&&s&&(0,a.jsxs)(a.Fragment,{children:[s.message&&(0,a.jsx)("p",{className:"text-text-muted text-sm mb-6 text-center",children:s.message}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:s.channels?.map(e=>(0,a.jsx)(j,{channel:e},e.id))})]})]})]})]}),document.body)}function j({channel:e}){let{label:t,description:s,icon:r,color:n,url:l,qr:i}=e,o=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"w-12 h-12 rounded-full flex items-center justify-center mb-3",style:{backgroundColor:`${n}20`,color:n},children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[26px]",children:r})}),(0,a.jsx)("div",{className:"font-semibold text-text-main mb-1",children:t}),s&&(0,a.jsx)("div",{className:"text-xs text-text-muted mb-3 text-center",children:s}),i&&(0,a.jsx)("img",{src:i,alt:`${t} QR`,className:"w-full max-w-[180px] aspect-square object-contain rounded-lg bg-white p-1"})]});return(0,a.jsxs)("div",{className:"flex flex-col items-center p-4 rounded-xl border border-black/10 dark:border-white/10 bg-surface/50 hover:border-pink-500/40 transition-colors",children:[o,l&&(0,a.jsxs)("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-flex items-center gap-1 px-3 py-1.5 rounded-lg text-sm font-medium text-white hover:opacity-90 transition-opacity",style:{backgroundColor:n},children:["Open",(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"open_in_new"})]})]})}v.propTypes={isOpen:d().bool.isRequired,onClose:d().func.isRequired};var y=s(38003),N=s(88105),w=s(73006);function k({onMenuClick:e,showMenuButton:t=!0}){let s=(0,n.usePathname)(),l=(0,n.useRouter)(),[o,d]=(0,r.useState)(""),[x,u]=(0,r.useState)(""),[p,b]=(0,r.useState)(!1),{title:j,description:y,icon:S,breadcrumbs:O}=(0,r.useMemo)(()=>(e=>{if(!e)return{title:"",description:"",breadcrumbs:[]};let t=e.match(/\/media-providers\/([^/]+)\/([^/]+)$/);if(t){let e=t[1],s=t[2],a=N.rj.find(t=>t.id===e),r=N.Q2[s];return{title:r?.name||s,description:"",breadcrumbs:[{label:"Media Providers",href:`/dashboard/media-providers/${e}`},{label:a?.label||e,href:`/dashboard/media-providers/${e}`},{label:r?.name||s,image:`/providers/${s}.png`}]}}let s=e.match(/\/media-providers\/([^/]+)$/);if(s){let e=s[1],t=N.rj.find(t=>t.id===e);return{title:t?.label||e,description:`Manage your ${t?.label||e} providers`,icon:t?.icon||"perm_media",breadcrumbs:[]}}let a=e.match(/\/providers\/([^/]+)$/);if(a){let e=a[1],t=g.zN[e]||g.fg[e];if(t)return{title:t.name,description:"",breadcrumbs:[{label:"Providers",href:"/dashboard/providers"},{label:t.name,image:`/providers/${t.id}.png`}]}}return e.includes("/providers")&&!e.includes("/media-providers")?{title:"Providers",description:"Manage your AI provider connections",icon:"dns",breadcrumbs:[]}:e.includes("/combos")?{title:"Combos",description:"Model combos with fallback",icon:"layers",breadcrumbs:[]}:e.includes("/usage")?{title:"Usage & Analytics",description:"Monitor your API usage, token consumption, and request logs",icon:"bar_chart",breadcrumbs:[]}:e.includes("/auth-files")?{title:"Auth Files",description:"Map provider credentials stored in the local database",icon:"vpn_key",breadcrumbs:[]}:e.includes("/quota")?{title:"Quota Tracker",description:"Track and manage your API quota limits",icon:"data_usage",breadcrumbs:[]}:e.includes("/mitm")?{title:"MITM Proxy",description:"Intercept CLI tool traffic and route through 9Router",icon:"security",breadcrumbs:[]}:e.includes("/cli-tools")?{title:"CLI Tools",description:"Configure CLI tools",icon:"terminal",breadcrumbs:[]}:e.includes("/proxy-pools")?{title:"Proxy Pools",description:"Manage your proxy pool configurations",icon:"lan",breadcrumbs:[]}:e.includes("/skills")?{title:"Agent Skills",description:"Copy a link and paste to your AI to use 9Router — no install needed",icon:"extension",breadcrumbs:[]}:e.includes("/endpoint")?{title:"Endpoint",description:"API endpoint configuration",icon:"api",breadcrumbs:[]}:e.includes("/profile")?{title:"Settings",description:"Manage your preferences",icon:"settings",breadcrumbs:[]}:e.includes("/translator")?{title:"Translator",description:"Debug translation flow between formats",icon:"translate",breadcrumbs:[]}:e.includes("/console-log")?{title:"Console Log",description:"Live server console output",icon:"monitor",breadcrumbs:[]}:"/dashboard"===e?{title:"Endpoint",description:"API endpoint configuration",icon:"api",breadcrumbs:[]}:{title:"",description:"",breadcrumbs:[]}})(s),[s]);(0,r.useEffect)(()=>{let e=!1;return async function(){try{let t=await fetch("/api/auth/status",{cache:"no-store"});if(!t.ok)return;let s=await t.json();e||(d(s?.displayName||s?.oidcName||s?.oidcEmail||""),u(s?.loginMethod||""))}catch{e||(d(""),u(""))}}(),()=>{e=!0}},[]);let T=async()=>{try{(await fetch("/api/auth/logout",{method:"POST"})).ok&&(l.push("/login"),l.refresh())}catch(e){console.error("Failed to logout:",e)}};return(0,a.jsxs)("header",{className:"shrink-0 flex items-center justify-between gap-3 px-4 lg:px-8 pt-3 pb-2 border-b border-border-subtle bg-surface/60 backdrop-blur-xl lg:bg-transparent lg:backdrop-blur-none z-20",children:[(0,a.jsx)("div",{className:"flex items-center gap-3 lg:hidden shrink-0",children:t&&(0,a.jsx)("button",{onClick:e,className:"text-text-main hover:text-primary transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined",children:"menu"})})}),(0,a.jsx)("div",{className:"flex flex-col min-w-0 flex-1",children:O.length>0?(0,a.jsx)("div",{className:"flex items-center gap-2",children:O.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[t>0&&(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted text-base",children:"chevron_right"}),e.href?(0,a.jsx)(i(),{href:e.href,className:"text-text-muted hover:text-primary transition-colors",children:e.label}):(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[e.image&&(0,a.jsx)(c.A,{src:e.image,alt:e.label,size:28,className:"object-contain rounded max-w-[28px] max-h-[28px]",fallbackText:e.label.slice(0,2).toUpperCase()}),(0,a.jsx)("h1",{className:"text-base lg:text-2xl font-semibold text-text-main tracking-tight truncate",children:(0,w.Tl)(e.label)})]})]},`${e.label}-${e.href||"current"}`))}):j?(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[S&&(0,a.jsx)("span",{className:"material-symbols-outlined text-primary text-xl lg:text-2xl",children:S}),(0,a.jsx)("h1",{className:"text-base lg:text-2xl font-semibold tracking-tight truncate",children:(0,w.Tl)(j)})]}),y&&(0,a.jsx)("p",{className:"hidden lg:block text-sm text-text-muted truncate",children:(0,w.Tl)(y)})]}):null}),(0,a.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[o&&"OIDC"===x&&(0,a.jsxs)("div",{className:"hidden sm:flex items-center max-w-[220px] px-3 py-1.5 rounded-full border border-border bg-surface/70 text-xs text-text-muted truncate",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1.5 text-primary",children:"person"}),(0,a.jsx)("span",{className:"truncate",children:o}),(0,a.jsx)("span",{className:"ml-2 shrink-0 rounded-full bg-primary/10 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-primary",children:"OIDC"})]}),(0,a.jsx)(C,{}),(0,a.jsxs)("button",{onClick:()=>b(!0),className:"flex items-center gap-1.5 px-3 h-8 rounded-lg border border-pink-500/30 bg-pink-500/10 text-pink-600 dark:text-pink-400 hover:bg-pink-500/20 transition-colors text-sm font-medium","aria-label":"Donate",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"volunteer_activism"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Donate"})]}),(0,a.jsx)(f.default,{}),(0,a.jsx)(h,{}),(0,a.jsx)(m.default,{onLogout:T})]}),(0,a.jsx)(v,{isOpen:p,onClose:()=>b(!1)})]})}function C(){let e=(0,y.C)(e=>e.visible),t=(0,y.C)(e=>e.query),s=(0,y.C)(e=>e.placeholder),r=(0,y.C)(e=>e.setQuery);return e?(0,a.jsxs)("div",{className:"relative w-[160px] sm:w-[220px]",children:[(0,a.jsx)("span",{className:"material-symbols-outlined absolute left-2 top-1/2 -translate-y-1/2 text-text-muted text-[16px] pointer-events-none",children:"search"}),(0,a.jsx)("input",{type:"text",value:t,onChange:e=>r(e.target.value),placeholder:s,className:"w-full h-8 pl-7 pr-7 rounded-lg border border-border bg-surface/60 text-sm focus:outline-none focus:border-primary/50 transition-colors"}),t&&(0,a.jsx)("button",{type:"button",onClick:()=>r(""),className:"absolute right-1 top-1/2 -translate-y-1/2 text-text-muted hover:text-text-main p-0.5 rounded","aria-label":"Clear search",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"close"})})]}):null}k.propTypes={onMenuClick:d().func,showMenuButton:d().bool}},25086:(e,t,s)=>{s.d(t,{CardSkeleton:()=>o,PageLoading:()=>l,Skeleton:()=>i,Spinner:()=>n,default:()=>d});var a=s(95155),r=s(31474);function n({size:e="md",className:t}){return(0,a.jsx)("span",{className:(0,r.cn)("material-symbols-outlined animate-spin text-brand-500",{sm:"size-4",md:"size-6",lg:"size-8",xl:"size-12"}[e],t),children:"progress_activity"})}function l({message:e="Loading..."}){return(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-bg",children:[(0,a.jsx)(n,{size:"xl"}),(0,a.jsx)("p",{className:"mt-4 text-text-muted",children:e})]})}function i({className:e,...t}){return(0,a.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-[10px] bg-surface-2",e),...t})}function o(){return(0,a.jsxs)("div",{className:"p-6 rounded-[14px] border border-border-subtle bg-surface shadow-[var(--shadow-soft)]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)(i,{className:"h-4 w-24"}),(0,a.jsx)(i,{className:"size-10 rounded-[10px]"})]}),(0,a.jsx)(i,{className:"h-8 w-16 mb-2"}),(0,a.jsx)(i,{className:"h-3 w-20"})]})}function d({type:e="spinner",...t}){switch(e){case"page":return(0,a.jsx)(l,{...t});case"skeleton":return(0,a.jsx)(i,{...t});case"card":return(0,a.jsx)(o,{...t});default:return(0,a.jsx)(n,{...t})}}},28058:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(95155),r=s(12115),n=s(81127);function l({isOpen:e,onClose:t,onAdd:s,addedNames:i=[]}){let[o,d]=(0,r.useState)([]),[c,m]=(0,r.useState)(!1),[x,u]=(0,r.useState)(""),[p,h]=(0,r.useState)("all"),[f,b]=(0,r.useState)(null),[g,v]=(0,r.useState)(null),[j,y]=(0,r.useState)({}),[N,w]=(0,r.useState)({}),[k,C]=(0,r.useState)({});(0,r.useEffect)(()=>{!e||o.length>0||(m(!0),fetch("/api/cli-tools/cowork-mcp-registry").then(e=>e.json()).then(e=>{e.error?b(e.error):d(e.servers||[])}).catch(e=>b(e.message)).finally(()=>m(!1)))},[e]);let S=(0,r.useMemo)(()=>new Set(i),[i]),O=(0,r.useMemo)(()=>{let e=x.trim().toLowerCase();return o.filter(t=>("authless"!==p||!t.oauth)&&("oauth"!==p||!!t.oauth)&&(!e||(t.title||"").toLowerCase().includes(e)||(t.description||"").toLowerCase().includes(e)||(t.name||"").toLowerCase().includes(e)))},[o,x,p]),T=async e=>{if(!j[e.url]){w(t=>({...t,[e.url]:!0}));try{let t=await fetch("/api/cli-tools/cowork-mcp-tools",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e.url})}),s=await t.json(),a=s.tools||[],r=Array.isArray(e.toolNames)?e.toolNames:[],n=a.length>0?a.map(e=>e.name):r;y(t=>({...t,[e.url]:{tools:a,requiresAuth:!!s.requiresAuth,error:s.error}})),C(t=>({...t,[e.url]:Object.fromEntries(n.map(e=>[e,!0]))}))}catch(t){y(s=>({...s,[e.url]:{tools:[],error:t.message}}))}finally{w(t=>({...t,[e.url]:!1}))}}},P=(e,t)=>{let s=k[e]||{};C(a=>({...a,[e]:Object.fromEntries(Object.keys(s).map(e=>[e,t]))}))};return(0,a.jsx)(n.default,{isOpen:e,onClose:t,title:"Browse MCP Marketplace",size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{type:"text",value:x,onChange:e=>u(e.target.value),placeholder:"Search by name or description...",className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,a.jsxs)("select",{value:p,onChange:e=>h(e.target.value),className:"px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:[(0,a.jsx)("option",{value:"all",children:"All"}),(0,a.jsx)("option",{value:"authless",children:"Authless"}),(0,a.jsx)("option",{value:"oauth",children:"OAuth"})]})]}),f&&(0,a.jsx)("div",{className:"px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:f}),c&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-xs py-4 justify-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}),(0,a.jsx)("span",{children:"Loading registry..."})]}),!c&&(0,a.jsxs)("div",{className:"flex flex-col gap-1 max-h-[60vh] overflow-y-auto",children:[0===O.length&&(0,a.jsx)("div",{className:"text-center text-xs text-text-muted py-6",children:"No servers match filter"}),O.map(e=>{let t=S.has(e.slug||e.name),r=g===e.url,n=j[e.url],l=N[e.url],i=k[e.url]||{},o=Object.keys(i),d=Object.values(i).filter(Boolean).length;return(0,a.jsxs)("div",{className:"rounded border border-transparent hover:border-border",children:[(0,a.jsxs)("div",{className:"flex items-start gap-2 px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5",children:[e.iconUrl?(0,a.jsx)("img",{src:e.iconUrl,alt:"",className:"size-7 rounded shrink-0 object-contain",onError:e=>{e.target.style.display="none"}}):(0,a.jsx)("div",{className:"size-7 rounded bg-surface shrink-0"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[(0,a.jsx)("span",{className:"font-medium text-xs",children:e.title}),e.oauth?(0,a.jsx)("span",{className:"px-1 py-0.5 text-[9px] rounded bg-amber-500/10 text-amber-600",children:"OAuth"}):(0,a.jsx)("span",{className:"px-1 py-0.5 text-[9px] rounded bg-green-500/10 text-green-600",children:"Authless"}),e.toolCount>0&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted",children:[e.toolCount," tools"]})]}),e.description&&(0,a.jsx)("p",{className:"text-[10px] text-text-muted line-clamp-2 mt-0.5",children:e.description})]}),(0,a.jsx)("button",{onClick:()=>t?null:void(g===e.url?v(null):(v(e.url),T(e))),disabled:t,className:`shrink-0 px-2 py-1 rounded text-[10px] font-medium transition-colors ${t?"bg-green-500/10 text-green-600 cursor-default":r?"bg-surface border border-border text-text-muted hover:bg-black/5":"bg-primary/10 border border-primary/40 text-primary hover:bg-primary/20"}`,children:t?"Added":r?"Cancel":"+ Add"})]}),r&&(0,a.jsxs)("div",{className:"px-3 py-2 bg-surface/40 border-t border-border flex flex-col gap-2",children:[l&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-[10px] py-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[14px]",children:"progress_activity"}),(0,a.jsx)("span",{children:"Probing server for tools..."})]}),!l&&n?.requiresAuth&&(0,a.jsx)("p",{className:"text-[10px] text-amber-600 bg-amber-500/10 px-2 py-1 rounded",children:"\uD83D\uDD10 OAuth required. Add now and authenticate after Apply; tool list will be discovered after first connect."}),!l&&n?.error&&!n?.requiresAuth&&(0,a.jsxs)("p",{className:"text-[10px] text-red-600 bg-red-500/10 px-2 py-1 rounded",children:["Probe failed: ",n.error]}),!l&&0===o.length&&!n?.requiresAuth&&!n?.error&&(0,a.jsx)("p",{className:"text-[10px] text-text-muted",children:"No tools advertised by server."}),!l&&o.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("span",{className:"text-[10px] text-text-muted",children:[d,"/",o.length," tools enabled"]}),(0,a.jsxs)("div",{className:"flex gap-1",children:[(0,a.jsx)("button",{onClick:()=>P(e.url,!0),className:"text-[10px] text-primary hover:underline",children:"All"}),(0,a.jsx)("span",{className:"text-[10px] text-text-muted",children:"\xb7"}),(0,a.jsx)("button",{onClick:()=>P(e.url,!1),className:"text-[10px] text-primary hover:underline",children:"None"})]})]}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-1 max-h-40 overflow-y-auto",children:o.map(t=>(0,a.jsxs)("label",{className:"flex items-center gap-1.5 text-[10px] cursor-pointer hover:bg-black/5 dark:hover:bg-white/5 px-1 rounded",children:[(0,a.jsx)("input",{type:"checkbox",checked:!!i[t],onChange:()=>{var s;return s=e.url,void C(e=>({...e,[s]:{...e[s],[t]:!e[s]?.[t]}}))},className:"size-3"}),(0,a.jsx)("span",{className:"truncate",children:t})]},t))})]}),(0,a.jsx)("button",{onClick:()=>{let t,a;return a=Object.keys(t=k[e.url]||{}).filter(e=>t[e]),void(s?.({name:e.slug||e.name,title:e.title,description:e.description,url:e.url,transport:e.transport,oauth:e.oauth,toolNames:a}),v(null))},className:"self-end px-2 py-1 rounded text-[10px] font-medium bg-primary text-white hover:bg-primary/90",children:"✓ Confirm Add"})]})]},e.url)})]}),(0,a.jsxs)("div",{className:"text-[10px] text-text-muted text-right",children:[O.length," of ",o.length," servers"]})]})})}},28067:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155),r=s(31474);function n({options:e=[],value:t,onChange:s,size:l="md",className:i}){let o={sm:"h-7 text-xs",md:"h-9 text-sm",lg:"h-11 text-base"};return(0,a.jsx)("div",{className:(0,r.cn)("inline-flex items-center p-1 rounded-[10px] overflow-x-auto","bg-surface-2",i),children:e.map(e=>(0,a.jsxs)("button",{onClick:()=>s(e.value),className:(0,r.cn)("shrink-0 px-4 rounded-[8px] font-medium transition-all",o[l],t===e.value?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[e.icon&&(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] mr-1.5",children:e.icon}),e.label]},e.value))})}},28815:(e,t,s)=>{s.d(t,{default:()=>o});var a=s(95155),r=s(12115),n=s(81127),l=s(92542),i=s(11059);function o({isOpen:e,onClose:t,title:s="Manual Configuration",configs:d=[]}){let{copy:c}=(0,i.C)(),[m,x]=(0,r.useState)(null);return(0,a.jsx)(n.default,{isOpen:e,onClose:t,title:s,size:"xl",children:(0,a.jsx)("div",{className:"flex flex-col gap-4",children:d.map((e,t)=>(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-text-main",children:e.filename}),(0,a.jsxs)(l.default,{variant:"ghost",size:"sm",onClick:()=>{var s;return s=e.content,void(c(s,`manualconfig-${t}`),x(t),setTimeout(()=>x(null),2e3))},children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:m===t?"check":"content_copy"}),m===t?"Copied!":"Copy"]})]}),(0,a.jsx)("pre",{className:"px-3 py-2 bg-black/5 dark:bg-white/5 rounded font-mono text-xs overflow-x-auto whitespace-pre-wrap break-all max-h-60 overflow-y-auto border border-border",children:e.content})]},t))})})}},29366:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(95155),r=s(28777),n=s(97677);function l({caps:e,className:t="",colorOverride:s,size:i=16}){if(!e)return null;let o=Object.keys(r.bs).filter(t=>e[t]);return 0===o.length?null:(0,a.jsx)("span",{className:`inline-flex items-center gap-0.5 ${t}`,children:o.map(e=>(0,a.jsx)(n.default,{text:`${r.bs[e].label} — ${r.bs[e].desc}`,children:(0,a.jsx)("span",{className:`material-symbols-outlined leading-none cursor-help ${s||r.bs[e].color}`,style:{fontSize:`${i}px`},children:r.bs[e].icon})},e))})}},30815:(e,t,s)=>{s.d(t,{default:()=>o});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(35497);function o({isOpen:e,onSuccess:t,onClose:s}){let[n,l]=(0,r.useState)(""),[d,c]=(0,r.useState)(""),[m,x]=(0,r.useState)(null),[u,p]=(0,r.useState)(!1),[h,f]=(0,r.useState)(!1),[b,g]=(0,r.useState)(!1),[v,j]=(0,r.useState)(!1),y=async()=>{f(!0),x(null),g(!1),j(!1);try{let e=await fetch("/api/oauth/cursor/auto-import"),t=await e.json();t.found?(l(t.accessToken),c(t.machineId),g(!0)):t.windowsManual?j(!0):x(t.error||"Could not auto-detect tokens")}catch(e){x("Failed to auto-detect tokens")}finally{f(!1)}};(0,r.useEffect)(()=>{e&&y()},[e]);let N=async()=>{if(!n.trim())return void x("Please enter an access token");if(!d.trim())return void x("Please enter a machine ID");p(!0),x(null);try{let e=await fetch("/api/oauth/cursor/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accessToken:n.trim(),machineId:d.trim()})}),a=await e.json();if(!e.ok)throw Error(a.error||"Import failed");t?.(),s()}catch(e){x(e.message)}finally{p(!1)}};return(0,a.jsx)(i.aF,{isOpen:e,title:"Connect Cursor IDE",onClose:s,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[h&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Auto-detecting tokens..."}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Reading from Cursor IDE database"})]}),!h&&(0,a.jsxs)(a.Fragment,{children:[b&&(0,a.jsx)("div",{className:"bg-green-50 dark:bg-green-900/20 p-3 rounded-lg border border-green-200 dark:border-green-800",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-green-600 dark:text-green-400",children:"check_circle"}),(0,a.jsx)("p",{className:"text-sm text-green-800 dark:text-green-200",children:"Tokens auto-detected from Cursor IDE successfully!"})]})}),v&&(0,a.jsxs)("div",{className:"bg-amber-50 dark:bg-amber-900/20 p-3 rounded-lg border border-amber-200 dark:border-amber-800 flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-amber-600 dark:text-amber-400",children:"info"}),(0,a.jsx)("p",{className:"text-sm font-medium text-amber-800 dark:text-amber-200",children:"Could not read Cursor database automatically."})]}),(0,a.jsxs)("p",{className:"text-xs text-amber-700 dark:text-amber-300",children:["Make sure Cursor IDE has been opened at least once, then click ",(0,a.jsx)("strong",{children:"Retry"}),". If the problem persists, paste your tokens manually below."]}),(0,a.jsx)(i.$n,{onClick:y,variant:"outline",fullWidth:!0,children:"Retry"})]}),!b&&!v&&!m&&(0,a.jsx)("div",{className:"bg-blue-50 dark:bg-blue-900/20 p-3 rounded-lg border border-blue-200 dark:border-blue-800",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,a.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Cursor IDE not detected. Please paste your tokens manually."})]})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Access Token ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)("textarea",{value:n,onChange:e=>l(e.target.value),placeholder:"Access token will be auto-filled...",rows:3,className:"w-full px-3 py-2 text-sm font-mono border border-border rounded-lg bg-background focus:outline-none focus:border-primary resize-none"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Machine ID ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(i.pd,{value:d,onChange:e=>c(e.target.value),placeholder:"Machine ID will be auto-filled...",className:"font-mono text-sm"})]}),m&&(0,a.jsx)("div",{className:"bg-red-50 dark:bg-red-900/20 p-3 rounded-lg border border-red-200 dark:border-red-800",children:(0,a.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:m})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:N,fullWidth:!0,disabled:u||!n.trim()||!d.trim(),children:u?"Importing...":"Import Token"}),(0,a.jsx)(i.$n,{onClick:s,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}o.propTypes={isOpen:l().bool.isRequired,onSuccess:l().func,onClose:l().func.isRequired}},31474:(e,t,s)=>{s.d(t,{cn:()=>a});function a(...e){return e.filter(Boolean).join(" ").replace(/\s+/g," ").trim()}},35497:(e,t,s)=>{s.d(t,{x0:()=>w.default,Ex:()=>d.default,$n:()=>a.default,nh:()=>T.default,Zp:()=>l.default,Qv:()=>o.CardSkeleton,CK:()=>p.default,uo:()=>i.ConfirmModal,G9:()=>v.default,wI:()=>N.default,vj:()=>y.default,vE:()=>j.default,pd:()=>r.default,Mh:()=>g.default,uR:()=>u.default,Nf:()=>h.default,aF:()=>i.default,rq:()=>x.default,gw:()=>k.default,LF:()=>m.default,Wx:()=>O.default,gM:()=>b.default,Iz:()=>C.default,l6:()=>n.default,lM:()=>c.default,m_:()=>S.default,jK:()=>f.default});var a=s(92542),r=s(11910),n=s(98),l=s(84588),i=s(81127),o=s(25086);s(56319);var d=s(56061),c=s(98542);s(38587),s(21110),s(92622),s(24747),s(92173);var m=s(90882),x=s(72908),u=s(28815),p=s(45455),h=s(28058),f=s(4809);s(21931),s(36548),s(80752),s(40197);var b=s(23615);s(61500);var g=s(62899);s(94230);var v=s(30815),j=s(23936),y=s(95088),N=s(73579),w=s(96748),k=s(4823),C=s(28067),S=s(97677),O=s(51825),T=s(29366);s(7648),s(91450)},36548:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(95155),r=s(12115),n=s(14932);function l(){let[e,t]=(0,r.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{onClick:()=>t(!0),className:"relative flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg transition-all text-text-muted hover:text-text-main hover:bg-black/5 dark:hover:bg-white/5",title:"9Remote",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"computer"}),(0,a.jsx)("span",{className:"text-xs font-medium",children:"Remote"})]}),(0,a.jsx)(n.A,{isOpen:e,onClose:()=>t(!1)})]})}},38003:(e,t,s)=>{s.d(t,{C:()=>a});let a=(0,s(1934).v)(e=>({query:"",placeholder:"",visible:!1,setQuery:t=>e({query:t}),register:(t="Search...")=>e({visible:!0,placeholder:t,query:""}),unregister:()=>e({visible:!1,placeholder:"",query:""})}))},38202:(e,t,s)=>{s.d(t,{h:()=>a});let a={en:"\uD83C\uDDFA\uD83C\uDDF8",vi:"\uD83C\uDDFB\uD83C\uDDF3","zh-CN":"\uD83C\uDDE8\uD83C\uDDF3","zh-TW":"\uD83C\uDDF9\uD83C\uDDFC",ja:"\uD83C\uDDEF\uD83C\uDDF5","pt-BR":"\uD83C\uDDE7\uD83C\uDDF7","pt-PT":"\uD83C\uDDF5\uD83C\uDDF9",ko:"\uD83C\uDDF0\uD83C\uDDF7",es:"\uD83C\uDDEA\uD83C\uDDF8",de:"\uD83C\uDDE9\uD83C\uDDEA",fr:"\uD83C\uDDEB\uD83C\uDDF7",he:"\uD83C\uDDEE\uD83C\uDDF1",ar:"\uD83C\uDDF8\uD83C\uDDE6",ru:"\uD83C\uDDF7\uD83C\uDDFA",pl:"\uD83C\uDDF5\uD83C\uDDF1",cs:"\uD83C\uDDE8\uD83C\uDDFF",nl:"\uD83C\uDDF3\uD83C\uDDF1",tr:"\uD83C\uDDF9\uD83C\uDDF7",uk:"\uD83C\uDDFA\uD83C\uDDE6",tl:"\uD83C\uDDF5\uD83C\uDDED",id:"\uD83C\uDDEE\uD83C\uDDE9",th:"\uD83C\uDDF9\uD83C\uDDED",hi:"\uD83C\uDDEE\uD83C\uDDF3",bn:"\uD83C\uDDE7\uD83C\uDDE9",ur:"\uD83C\uDDF5\uD83C\uDDF0",ro:"\uD83C\uDDF7\uD83C\uDDF4",sv:"\uD83C\uDDF8\uD83C\uDDEA",it:"\uD83C\uDDEE\uD83C\uDDF9",el:"\uD83C\uDDEC\uD83C\uDDF7",hu:"\uD83C\uDDED\uD83C\uDDFA",fi:"\uD83C\uDDEB\uD83C\uDDEE",da:"\uD83C\uDDE9\uD83C\uDDF0",no:"\uD83C\uDDF3\uD83C\uDDF4"}},38587:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(95155),r=s(1620),n=s(31474);function l({className:e,variant:t="default"}){let{isDark:s,toggleTheme:i}=(0,r.D)(),o={default:(0,n.cn)("flex items-center justify-center size-10 rounded-full","text-text-muted hover:text-text-main","hover:bg-surface-2 transition-colors"),card:(0,n.cn)("flex items-center justify-center size-11 rounded-full","bg-surface/60 hover:bg-surface","border border-border","backdrop-blur-md shadow-sm hover:shadow-[var(--shadow-warm)]","text-text-muted hover:text-brand-500","transition-all group")};return(0,a.jsx)("button",{onClick:i,className:(0,n.cn)(o[t],e),"aria-label":`Switch to ${s?"light":"dark"} mode`,title:`Switch to ${s?"light":"dark"} mode`,children:(0,a.jsx)("span",{className:(0,n.cn)("material-symbols-outlined text-[22px]","card"===t&&"transition-transform duration-300 group-hover:rotate-12"),children:s?"light_mode":"dark_mode"})})}},40197:(e,t,s)=>{s.d(t,{default:()=>c});var a=s(95155),r=s(12115),n=s(47650),l=s(14051),i=s.n(l),o=s(9233),d=s(90620);function c({isOpen:e,onClose:t}){let[s,l]=(0,r.useState)(""),[i,m]=(0,r.useState)(!1),[x,u]=(0,r.useState)(""),p=(0,r.useRef)(null);return((0,r.useEffect)(()=>{e&&!s&&(m(!0),u(""),fetch(d.Nu.changelogUrl).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.text()}).then(e=>l(o.xI.parse(e))).catch(e=>u(e.message||"Failed to load")).finally(()=>m(!1)))},[e,s]),(0,r.useEffect)(()=>{let s=e=>{p.current&&!p.current.contains(e.target)&&t()};if(e)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[e,t]),!e||"u"<typeof document)?null:(0,n.createPortal)((0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:t}),(0,a.jsxs)("div",{ref:p,className:"relative w-full bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl animate-in fade-in zoom-in-95 duration-200 max-w-3xl flex flex-col max-h-[85vh]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-black/5 dark:border-white/5",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Change Log"}),(0,a.jsx)("button",{onClick:t,className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5 transition-colors","aria-label":"Close",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,a.jsxs)("div",{className:"p-6 overflow-y-auto flex-1",children:[i&&(0,a.jsxs)("div",{className:"flex items-center justify-center py-10 text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin mr-2",children:"progress_activity"}),"Loading..."]}),x&&(0,a.jsxs)("div",{className:"text-red-500 py-4",children:["Failed to load changelog: ",x]}),!i&&!x&&s&&(0,a.jsx)("div",{className:"changelog-body text-text-main",dangerouslySetInnerHTML:{__html:s}})]})]})]}),document.body)}o.xI.setOptions({gfm:!0,breaks:!0}),c.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired}},45455:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155),r=s(12115),n=s(81127),l=s(11910),i=s(92542),o=s(72908);let d=/^[a-zA-Z0-9_.\-\[\]]+$/;function c({index:e,model:t,isFirst:s,isLast:n,onEdit:l,onMoveUp:i,onMoveDown:o,onRemove:d}){let[m,x]=(0,r.useState)(!1),[u,p]=(0,r.useState)(t),h=()=>{let e=u.trim();e&&e!==t?l(e):p(t),x(!1)};return(0,a.jsxs)("div",{className:"group flex min-w-0 items-center gap-1.5 rounded-md bg-black/[0.02] px-2 py-1 transition-colors hover:bg-black/[0.04] dark:bg-white/[0.02] dark:hover:bg-white/[0.04]",children:[(0,a.jsx)("span",{className:"text-[10px] font-medium text-text-muted w-3 text-center shrink-0",children:e+1}),m?(0,a.jsx)("input",{autoFocus:!0,value:u,onChange:e=>p(e.target.value),onBlur:h,onKeyDown:e=>{"Enter"===e.key&&h(),"Escape"===e.key&&(p(t),x(!1))},className:"min-w-0 flex-1 rounded border border-primary/40 bg-white px-1.5 py-0.5 font-mono text-xs text-text-main outline-none dark:bg-black/20"}):(0,a.jsx)("div",{className:"min-w-0 flex-1 cursor-text truncate rounded px-1.5 py-0.5 font-mono text-xs text-text-main hover:bg-black/5 dark:hover:bg-white/5",onClick:()=>x(!0),title:"Click to edit",children:t}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,a.jsx)("button",{onClick:i,disabled:s,className:`p-0.5 rounded ${s?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move up",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_upward"})}),(0,a.jsx)("button",{onClick:o,disabled:n,className:`p-0.5 rounded ${n?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move down",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_downward"})})]}),(0,a.jsx)("button",{onClick:d,className:"p-0.5 hover:bg-red-500/10 rounded text-text-muted hover:text-red-500 transition-all",title:"Remove",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"close"})})]})}function m({isOpen:e,combo:t,onClose:s,onSave:x,activeProviders:u,kindFilter:p=null,forcePrefix:h="",title:f}){let b=t?.name?h&&t.name.startsWith(h)?t.name.slice(h.length):t.name:"",[g,v]=(0,r.useState)(b),[j,y]=(0,r.useState)(t?.models||[]),[N,w]=(0,r.useState)(!1),[k,C]=(0,r.useState)(!1),[S,O]=(0,r.useState)(""),[T,P]=(0,r.useState)({});(0,r.useEffect)(()=>{e&&fetch("/api/models/alias").then(e=>e.ok?e.json():null).then(e=>e&&P(e.aliases||{})).catch(()=>{})},[e]);let $=e=>{if(!e.trim())return O("Name is required"),!1;let t=h+e;return d.test(t)?(O(""),!0):(O("Only letters, numbers, -, _, . and [] allowed"),!1)},F=e=>{let t=e.target.value;h&&t.startsWith(h)&&(t=t.slice(h.length)),v(t),t?$(t):O("")},I=async()=>{$(g)&&(C(!0),await x({name:h+g.trim(),models:j}),C(!1))},R=!!t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.default,{isOpen:e,onClose:s,title:f||(R?"Edit Combo":"Create Combo"),children:(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{children:[h?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("label",{className:"text-sm font-medium mb-1 block",children:"Combo Name"}),(0,a.jsxs)("div",{className:"flex items-stretch",children:[(0,a.jsx)("span",{className:"inline-flex items-center px-2 rounded-l border border-r-0 border-black/10 dark:border-white/10 bg-black/[0.04] dark:bg-white/[0.04] text-text-muted font-mono text-sm",children:h}),(0,a.jsx)("input",{value:g,onChange:F,placeholder:"my-combo",className:"flex-1 min-w-0 rounded-r border border-black/10 dark:border-white/10 bg-white dark:bg-black/20 px-2 py-1.5 font-mono text-sm outline-none focus:border-primary"})]}),S&&(0,a.jsx)("p",{className:"text-[11px] text-red-500 mt-0.5",children:S})]}):(0,a.jsx)(l.default,{label:"Combo Name",value:g,onChange:F,placeholder:"my-combo",error:S}),(0,a.jsxs)("p",{className:"text-[10px] text-text-muted mt-0.5",children:[h?`Auto-prefixed with "${h}". `:"","Only letters, numbers, -, _ and . allowed"]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Models"}),0===j.length?(0,a.jsxs)("div",{className:"text-center py-4 border border-dashed border-black/10 dark:border-white/10 rounded-lg bg-black/[0.01] dark:bg-white/[0.01]",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted text-xl mb-1",children:"layers"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"No models added yet"})]}):(0,a.jsx)("div",{className:"flex max-h-[55vh] min-w-0 flex-col gap-1 overflow-y-auto sm:max-h-[350px]",children:j.map((e,t)=>(0,a.jsx)(c,{index:t,model:e,isFirst:0===t,isLast:t===j.length-1,onEdit:e=>{let s=[...j];s[t]=e,y(s)},onMoveUp:()=>(e=>{if(0===e)return;let t=[...j];[t[e-1],t[e]]=[t[e],t[e-1]],y(t)})(t),onMoveDown:()=>(e=>{if(e===j.length-1)return;let t=[...j];[t[e],t[e+1]]=[t[e+1],t[e]],y(t)})(t),onRemove:()=>y(j.filter((e,s)=>s!==t))},t))}),(0,a.jsxs)("button",{onClick:()=>w(!0),className:"w-full mt-2 py-2 border border-dashed border-black/10 dark:border-white/10 rounded-lg text-xs text-primary font-medium hover:text-primary hover:border-primary/50 transition-colors flex items-center justify-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),"Add Model"]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 pt-1 sm:flex-row",children:[(0,a.jsx)(i.default,{onClick:s,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,a.jsx)(i.default,{onClick:I,fullWidth:!0,size:"sm",disabled:!g.trim()||!!S||k,children:k?"Saving...":R?"Save":"Create"})]})]})}),(0,a.jsx)(o.default,{isOpen:N,onClose:()=>w(!1),onSelect:e=>{j.includes(e.value)||y([...j,e.value])},onDeselect:e=>{y(j.filter(t=>t!==e.value))},activeProviders:u,modelAliases:T,title:"Add Model to Combo",kindFilter:p,addedModelValues:j,closeOnSelect:!1})]})}},51825:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(95155),r=s(84588);let n={mode:{label:"Mode",format:e=>e},defaultModel:{label:"Model",format:e=>e,mono:!0},baseUrl:{label:"Endpoint",format:e=>e,isLink:!0,mono:!0},costPerQuery:{label:"Cost / call",format:e=>0===e?"Free":`$${e.toFixed(4)}`},pricingUrl:{label:"Pricing",format:()=>"View pricing",isLink:!0},freeTier:{label:"Free tier",format:e=>e},freeMonthlyQuota:{label:"Free quota",format:e=>0===e?"—":e>=999999?"Unlimited":`${e.toLocaleString()} / mo`},searchTypes:{label:"Types",format:e=>e.join(", ")},formats:{label:"Formats",format:e=>e.join(", ")},maxMaxResults:{label:"Max results",format:e=>e},maxCharacters:{label:"Max chars",format:e=>e.toLocaleString()}};function l({config:e,provider:t,title:s="Provider Info"}){if(!e)return null;let i=Object.entries(n).filter(([t])=>void 0!==e[t]&&null!==e[t]&&""!==e[t]).map(([t,s])=>({key:t,label:s.label,value:s.format(e[t]),isLink:s.isLink,mono:s.mono,raw:e[t]})),o=t?.notice?.apiKeyUrl||t?.website,d=t?.notice?.text;return(0,a.jsxs)(r.default,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:s}),o&&(0,a.jsxs)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),"Get API Key"]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-2",children:[i.map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted w-28 shrink-0",children:e.label}),e.isLink?(0,a.jsx)("a",{href:e.raw,target:"_blank",rel:"noopener noreferrer",className:`text-sm text-primary hover:underline truncate ${e.mono?"font-mono":""}`,children:e.value}):(0,a.jsx)("span",{className:`text-sm text-text-main truncate ${e.mono?"font-mono":""}`,children:e.value})]},e.key)),d&&(0,a.jsxs)("div",{className:"flex items-start gap-3 min-w-0 sm:col-span-2",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted w-28 shrink-0 mt-0.5",children:"Notice"}),(0,a.jsx)("span",{className:"text-sm text-text-main leading-relaxed",children:d})]})]})]})}},56061:(e,t,s)=>{s.d(t,{default:()=>i});var a=s(95155),r=s(31474);let n={default:"bg-surface-2 text-text-muted",primary:"bg-brand-500/10 text-brand-600 dark:text-brand-300",success:"bg-green-500/10 text-green-600 dark:text-green-400",warning:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",error:"bg-red-500/10 text-red-600 dark:text-red-400",info:"bg-blue-500/10 text-blue-600 dark:text-blue-400"},l={sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-1 text-xs",lg:"px-3 py-1.5 text-sm"};function i({children:e,variant:t="default",size:s="md",dot:o=!1,icon:d,className:c}){return(0,a.jsxs)("span",{className:(0,r.cn)("inline-flex items-center gap-1.5 rounded-full font-semibold",n[t],l[s],c),children:[o&&(0,a.jsx)("span",{className:(0,r.cn)("size-1.5 rounded-full","success"===t&&"bg-green-500","warning"===t&&"bg-yellow-500","error"===t&&"bg-red-500","info"===t&&"bg-blue-500","primary"===t&&"bg-brand-500","default"===t&&"bg-gray-500")}),d&&(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:d}),e]})}},56319:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155),r=s(31474);function n({src:e,alt:t="Avatar",name:s,size:l="md",className:i}){let o={xs:"size-6 text-xs",sm:"size-8 text-sm",md:"size-10 text-base",lg:"size-12 text-lg",xl:"size-16 text-xl"};return e?(0,a.jsx)("div",{className:(0,r.cn)("rounded-full bg-cover bg-center bg-no-repeat","ring-2 ring-white dark:ring-surface-dark shadow-sm",o[l],i),style:{backgroundImage:`url(${e})`},role:"img","aria-label":t}):(0,a.jsx)("div",{className:(0,r.cn)("rounded-full flex items-center justify-center font-semibold text-white","ring-2 ring-white dark:ring-surface-dark shadow-sm",o[l],(e=>{if(!e)return"bg-primary";let t=["bg-red-500","bg-orange-500","bg-amber-500","bg-yellow-500","bg-lime-500","bg-green-500","bg-emerald-500","bg-teal-500","bg-cyan-500","bg-sky-500","bg-blue-500","bg-indigo-500","bg-violet-500","bg-purple-500","bg-fuchsia-500","bg-pink-500","bg-rose-500"],s=e.charCodeAt(0)%t.length;return t[s]})(s),i),role:"img","aria-label":t,children:(e=>{if(!e)return"?";let t=e.split(" ");return t.length>=2?`${t[0][0]}${t[1][0]}`.toUpperCase():e.substring(0,2).toUpperCase()})(s)})}},57250:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n);function i({src:e,alt:t,size:s=32,className:n="",fallbackText:l="?",fallbackColor:o}){let[d,c]=(0,r.useState)(!1);return!e||d?(0,a.jsx)("span",{className:`inline-flex items-center justify-center font-bold rounded-lg ${n}`.trim(),style:{width:s,height:s,color:o,fontSize:Math.max(10,Math.floor(.38*s))},children:l}):(0,a.jsx)("img",{src:e,alt:t,width:s,height:s,className:n,onError:()=>c(!0)})}i.propTypes={src:l().string,alt:l().string,size:l().number,className:l().string,fallbackText:l().string,fallbackColor:l().string}},61500:(e,t,s)=>{s.d(t,{default:()=>o});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(35497);function o({isOpen:e,onMethodSelect:t,onClose:s}){let[n,l]=(0,r.useState)(null),[d,c]=(0,r.useState)(""),[m,x]=(0,r.useState)("us-east-1"),[u,p]=(0,r.useState)(""),[h,f]=(0,r.useState)(""),[b,g]=(0,r.useState)("us-east-1"),[v,j]=(0,r.useState)(null),[y,N]=(0,r.useState)(!1),[w,k]=(0,r.useState)(!1),[C,S]=(0,r.useState)(!1);(0,r.useEffect)(()=>{"import"===n&&e&&(async()=>{k(!0),j(null),S(!1);try{let e=await fetch("/api/oauth/kiro/auto-import"),t=await e.json();t.found?(p(t.refreshToken),S(!0)):j(t.error||"Could not auto-detect token")}catch(e){j("Failed to auto-detect token")}finally{k(!1)}})()},[n,e]);let O=e=>{l(e),j(null)},T=()=>{l(null),j(null)},P=async()=>{if(!u.trim())return void j("Please enter a refresh token");N(!0),j(null);try{let e=await fetch("/api/oauth/kiro/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:u.trim()})}),s=await e.json();if(!e.ok)throw Error(s.error||"Import failed");t("import")}catch(e){j(e.message)}finally{N(!1)}},$=async()=>{if(!h.trim())return void j("Please enter an API key");N(!0),j(null);try{let e=await fetch("/api/oauth/kiro/api-key",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:h.trim(),region:b.trim()||"us-east-1"})}),s=await e.json();if(!e.ok)throw Error(s.error||"Import failed");t("api-key")}catch(e){j(e.message)}finally{N(!1)}},F=e=>{t("social",{provider:e})};return(0,a.jsx)(i.aF,{isOpen:e,title:"Connect Kiro",onClose:s,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[!n&&(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Choose your authentication method:"}),(0,a.jsx)("button",{onClick:()=>t("builder-id"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"shield"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"AWS Builder ID"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Recommended for most users. Free AWS account required."})]})]})}),(0,a.jsx)("button",{onClick:()=>O("idc"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"business"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"AWS IAM Identity Center"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"For enterprise users with custom AWS IAM Identity Center."})]})]})}),(0,a.jsx)("button",{onClick:()=>O("api-key"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"key"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"API Key"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Use a long-lived Kiro/CodeWhisperer API key (headless auth)."})]})]})}),(0,a.jsx)("button",{onClick:()=>O("social-google"),className:"hidden w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"account_circle"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"Google Account"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Login with your Google account (manual callback)."})]})]})}),(0,a.jsx)("button",{onClick:()=>O("social-github"),className:"hidden w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"code"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"GitHub Account"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Login with your GitHub account (manual callback)."})]})]})}),(0,a.jsx)("button",{onClick:()=>O("import"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"file_upload"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"Import Token"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Paste refresh token from Kiro IDE."})]})]})})]}),"idc"===n&&(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["IDC Start URL ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(i.pd,{value:d,onChange:e=>c(e.target.value),placeholder:"https://your-org.awsapps.com/start",className:"font-mono text-sm"}),(0,a.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Your organization's AWS IAM Identity Center URL"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:"AWS Region"}),(0,a.jsx)(i.pd,{value:m,onChange:e=>x(e.target.value),placeholder:"us-east-1",className:"font-mono text-sm"}),(0,a.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"AWS region for your Identity Center (default: us-east-1)"})]}),v&&(0,a.jsx)("p",{className:"text-sm text-red-600",children:v}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:()=>{d.trim()?t("idc",{startUrl:d.trim(),region:m}):j("Please enter your IDC start URL")},fullWidth:!0,children:"Continue"}),(0,a.jsx)(i.$n,{onClick:T,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"api-key"===n&&(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("div",{className:"bg-blue-50 dark:bg-blue-900/20 p-3 rounded-lg border border-blue-200 dark:border-blue-800",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,a.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Paste a long-lived Kiro/CodeWhisperer API key. It is validated against AWS and stored directly as a bearer credential (no refresh)."})]})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["API Key ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(i.pd,{value:h,onChange:e=>f(e.target.value),placeholder:"Paste your Kiro API key...",className:"font-mono text-sm"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:"AWS Region"}),(0,a.jsx)(i.pd,{value:b,onChange:e=>g(e.target.value),placeholder:"us-east-1",className:"font-mono text-sm"}),(0,a.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"AWS region for the key (default: us-east-1)"})]}),v&&(0,a.jsx)("div",{className:"bg-red-50 dark:bg-red-900/20 p-3 rounded-lg border border-red-200 dark:border-red-800",children:(0,a.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:v})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:$,fullWidth:!0,disabled:y||!h.trim(),children:y?"Validating...":"Add API Key"}),(0,a.jsx)(i.$n,{onClick:T,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"social-google"===n&&(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("div",{className:"bg-amber-50 dark:bg-amber-900/20 p-4 rounded-lg border border-amber-200 dark:border-amber-800",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-amber-600 dark:text-amber-400",children:"info"}),(0,a.jsxs)("div",{className:"flex-1 text-sm",children:[(0,a.jsx)("p",{className:"font-medium text-amber-900 dark:text-amber-100 mb-1",children:"Manual Callback Required"}),(0,a.jsx)("p",{className:"text-amber-800 dark:text-amber-200",children:"After login, you'll need to copy the callback URL from your browser and paste it back here."})]})]})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:()=>F("google"),fullWidth:!0,children:"Continue with Google"}),(0,a.jsx)(i.$n,{onClick:T,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"social-github"===n&&(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("div",{className:"bg-amber-50 dark:bg-amber-900/20 p-4 rounded-lg border border-amber-200 dark:border-amber-800",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-amber-600 dark:text-amber-400",children:"info"}),(0,a.jsxs)("div",{className:"flex-1 text-sm",children:[(0,a.jsx)("p",{className:"font-medium text-amber-900 dark:text-amber-100 mb-1",children:"Manual Callback Required"}),(0,a.jsx)("p",{className:"text-amber-800 dark:text-amber-200",children:"After login, you'll need to copy the callback URL from your browser and paste it back here."})]})]})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:()=>F("github"),fullWidth:!0,children:"Continue with GitHub"}),(0,a.jsx)(i.$n,{onClick:T,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"import"===n&&(0,a.jsxs)("div",{className:"space-y-4",children:[w&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Auto-detecting token..."}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Reading from AWS SSO cache"})]}),!w&&(0,a.jsxs)(a.Fragment,{children:[C&&(0,a.jsx)("div",{className:"bg-green-50 dark:bg-green-900/20 p-3 rounded-lg border border-green-200 dark:border-green-800",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-green-600 dark:text-green-400",children:"check_circle"}),(0,a.jsx)("p",{className:"text-sm text-green-800 dark:text-green-200",children:"Token auto-detected from Kiro IDE successfully!"})]})}),!C&&!v&&(0,a.jsx)("div",{className:"bg-blue-50 dark:bg-blue-900/20 p-3 rounded-lg border border-blue-200 dark:border-blue-800",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,a.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Kiro IDE not detected. Please paste your refresh token manually."})]})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Refresh Token ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(i.pd,{value:u,onChange:e=>p(e.target.value),placeholder:"Token will be auto-filled...",className:"font-mono text-sm"})]}),v&&(0,a.jsx)("div",{className:"bg-red-50 dark:bg-red-900/20 p-3 rounded-lg border border-red-200 dark:border-red-800",children:(0,a.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:v})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:P,fullWidth:!0,disabled:y||!u.trim(),children:y?"Importing...":"Import Token"}),(0,a.jsx)(i.$n,{onClick:T,variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})]})})}o.propTypes={isOpen:l().bool.isRequired,onMethodSelect:l().func.isRequired,onClose:l().func.isRequired}},62899:(e,t,s)=>{s.d(t,{default:()=>c});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(90882),o=s(61500),d=s(94230);function c({isOpen:e,providerInfo:t,onSuccess:s,onClose:n}){let[l,m]=(0,r.useState)(null),[x,u]=(0,r.useState)(null),[p,h]=(0,r.useState)(null),f=(0,r.useCallback)((e,t)=>{"builder-id"===e?m("builder-id"):"idc"===e?(m("idc"),h(t)):"social"===e?(m("social"),u(t.provider)):("import"===e||"api-key"===e)&&s?.()},[s]),b=()=>{m(null),u(null),h(null)};return l?"builder-id"===l||"idc"===l?(0,a.jsx)(i.default,{isOpen:e,provider:"kiro",providerInfo:t,onSuccess:()=>{m(null),h(null),s?.(),n?.()},onClose:b,idcConfig:p}):"social"===l&&x?(0,a.jsx)(d.default,{isOpen:e,provider:x,onSuccess:()=>{m(null),u(null),s?.(),n?.()},onClose:b}):null:(0,a.jsx)(o.default,{isOpen:e,onMethodSelect:f,onClose:n})}c.propTypes={isOpen:l().bool.isRequired,providerInfo:l().shape({name:l().string}),onSuccess:l().func,onClose:l().func.isRequired}},65921:(e,t,s)=>{s.d(t,{i:()=>n});var a=s(1934);let r=0,n=(0,a.v)((e,t)=>({notifications:[],addNotification:s=>{let a=++r,n={id:a,type:s.type||"info",message:s.message,title:s.title||null,duration:s.duration??5e3,dismissible:s.dismissible??!0,createdAt:Date.now()};return e(e=>({notifications:[...e.notifications,n]})),n.duration>0&&setTimeout(()=>t().removeNotification(a),n.duration),a},removeNotification:t=>{e(e=>({notifications:e.notifications.filter(e=>e.id!==t)}))},clearAll:()=>e({notifications:[]}),success:(e,s)=>t().addNotification({type:"success",message:e,title:s}),error:(e,s)=>t().addNotification({type:"error",message:e,title:s,duration:8e3}),warning:(e,s)=>t().addNotification({type:"warning",message:e,title:s}),info:(e,s)=>t().addNotification({type:"info",message:e,title:s})}))},72908:(e,t,s)=>{s.d(t,{default:()=>h});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(81127),o=s(57250),d=s(29366),c=s(82804),m=s(28777),x=s(88105);let u=[...Object.keys(x.zN),...Object.keys(x.IS),...Object.keys(x.nJ),...Object.keys(x.fg)],p=Object.keys(x.IS).filter(e=>x.IS[e].noAuth);function h({isOpen:e,onClose:t,onSelect:s,onDeselect:n,selectedModel:l,activeProviders:f=[],title:b="Select Model",modelAliases:g={},kindFilter:v=null,addedModelValues:j=[],closeOnSelect:y=!0}){let N=(0,r.useMemo)(()=>v?f.filter(e=>{let t=x.Q2[e.provider];return(t?.serviceKinds||["llm"]).includes(v)}):f,[f,v]),{getCaps:w}=(0,c.y)(),[k,C]=(0,r.useState)(""),[S,O]=(0,r.useState)([]),[T,P]=(0,r.useState)([]),[$,F]=(0,r.useState)([]),[I,R]=(0,r.useState)({}),A=async()=>{try{let e=await fetch("/api/combos");if(!e.ok)throw Error(`Failed to fetch combos: ${e.status}`);let t=await e.json();O(t.combos||[])}catch(e){console.error("Error fetching combos:",e),O([])}};(0,r.useEffect)(()=>{e&&A()},[e]);let E=async()=>{try{let e=await fetch("/api/provider-nodes");if(!e.ok)throw Error(`Failed to fetch provider nodes: ${e.status}`);let t=await e.json();P(t.nodes||[])}catch(e){console.error("Error fetching provider nodes:",e),P([])}};(0,r.useEffect)(()=>{e&&E()},[e]);let W=async()=>{try{let e=await fetch("/api/models/custom");if(!e.ok)throw Error(`Failed to fetch custom models: ${e.status}`);let t=await e.json();F(t.models||[])}catch(e){console.error("Error fetching custom models:",e),F([])}};(0,r.useEffect)(()=>{e&&W()},[e]);let M=async()=>{try{let e=await fetch("/api/models/disabled");if(!e.ok)throw Error(`Failed to fetch disabled models: ${e.status}`);let t=await e.json();R(t.disabled||{})}catch(e){console.error("Error fetching disabled models:",e),R({})}};(0,r.useEffect)(()=>{e&&M()},[e]);let _=(0,r.useMemo)(()=>({...x.zN,...x.IS,...x.nJ,...x.fg}),[]),q=(0,r.useMemo)(()=>{let e={},t=new Set(["webSearch","webFetch"]),s=new Set(["image","tts","stt","embedding","imageToText"]),a=new Set(["tts","image","webFetch"]);return[...new Set([...N.map(e=>e.provider),...v?p.filter(e=>(x.Q2[e]?.serviceKinds||["llm"]).includes(v)):p])].sort((e,t)=>{let s=u.indexOf(e),a=u.indexOf(t);return(-1===s?999:s)-(-1===a?999:a)}).forEach(r=>{let n=(0,x.wG)(r),l=_[r]||{name:r,color:"#666"},i=(0,x.mq)(r)||(0,x.gb)(r);if(v&&t.has(v)){e[r]={name:l.name,alias:n,color:l.color,models:[{id:r,name:l.name,value:r}]};return}if(l.passthroughModels){let t=Object.entries(g).filter(([,e])=>e.startsWith(`${n}/`)).map(([e,t])=>({id:t.replace(`${n}/`,""),name:e,value:t})),i=$.filter(e=>e.providerAlias===n).map(e=>({id:e.id,name:e.name||e.id,value:`${n}/${e.id}`,kind:(0,m.CP)(e),isCustom:!0})),o=t;if(v&&s.has(v)){let e=i.filter(e=>(0,m.CP)(e)===v);0===(o=[...e,...(0,m.KC)(r).filter(e=>(0,m.CP)(e)===v).map(e=>({id:e.id,name:e.name,value:`${n}/${e.id}`,kind:(0,m.CP)(e)})).filter(t=>!e.some(e=>e.value===t.value))]).length&&a.has(v)&&(l.serviceKinds||["llm"]).includes(v)&&(o=[{id:r,name:l.name,value:n}])}else{let e=i.filter(e=>!(0,m.CP)(e)||"llm"===(0,m.CP)(e)),s=new Set([...t,...e].map(e=>e.value)),a=(0,m.KC)(r).filter(e=>!(0,m.CP)(e)||"llm"===(0,m.CP)(e)).map(e=>({id:e.id,name:e.name,value:`${n}/${e.id}`,kind:(0,m.CP)(e)})).filter(e=>!s.has(e.value));o=[...e,...t.filter(t=>!e.some(e=>e.value===t.value)),...a]}if(o.length>0){let t=T.find(e=>e.id===r),s=t?.name||l.name;e[r]={name:s,alias:n,color:l.color,models:o}}}else if(i){if(v&&s.has(v))return;let t=f.find(e=>e.provider===r),a=T.find(e=>e.id===r),n=a?.name||t?.name||l.name,i=t?.providerSpecificData?.prefix||a?.prefix||r,o=Object.entries(g).filter(([,e])=>e.startsWith(`${r}/`)).map(([e,t])=>({id:t.replace(`${r}/`,""),name:e,value:`${i}/${t.replace(`${r}/`,"")}`})),d=o.length>0?o:[{id:`__placeholder__${r}`,name:`${i}/model-id`,value:`${i}/model-id`,isPlaceholder:!0}];e[r]={name:n,alias:i,color:l.color,models:d,isCustom:!0,hasModels:o.length>0}}else{var o;let t=(0,m.KC)(r),i=new Set(t.map(e=>e.id)),d=t.length>0,c=Object.entries(g).filter(([e,t])=>t.startsWith(`${n}/`)&&(!d||e===t.replace(`${n}/`,""))&&!i.has(t.replace(`${n}/`,""))).map(([e,t])=>({id:t.replace(`${n}/`,""),name:e,value:t,isCustom:!0})),x=new Set(c.map(e=>e.id)),u=$.filter(e=>e.providerAlias===n&&!i.has(e.id)&&!x.has(e.id)).map(e=>({id:e.id,name:e.name||e.id,value:`${n}/${e.id}`,isCustom:!0})),p=[...t.map(e=>({id:e.id,name:e.name,value:`${n}/${e.id}`,kind:(0,m.CP)(e)})),...c,...u],h=new Set,f=(o=p.filter(e=>!h.has(e.value)&&(h.add(e.value),!0)),v?s.has(v)?o.filter(e=>e.isPlaceholder||(0,m.CP)(e)===v):o:o.filter(e=>e.isPlaceholder||e.isCustom||!(0,m.CP)(e)||"llm"===(0,m.CP)(e)));0===f.length&&v&&a.has(v)&&(l.serviceKinds||["llm"]).includes(v)&&(f=[{id:r,name:l.name,value:n}]),f.length>0&&(e[r]={name:l.name,alias:n,color:l.color,models:f})}}),Object.entries(e).forEach(([t,s])=>{let a=new Set([...I[(0,x.wG)(t)]||[],...I[t]||[]]);0!==a.size&&(s.models=s.models.filter(e=>!a.has(e.id)),0===s.models.length&&delete e[t])}),e},[N,g,_,T,$,I,v,f]),L=(0,r.useMemo)(()=>{if(v)return[];if(!k.trim())return S;let e=k.toLowerCase();return S.filter(t=>t.name.toLowerCase().includes(e))},[S,k,v]),z=(0,r.useMemo)(()=>{let e=k.trim().toLowerCase(),t={};return Object.entries(q).forEach(([s,a])=>{var r;let n=a.models;if(e){let t=a.name.toLowerCase().includes(e);if(0===(n=n.filter(t=>t.name.toLowerCase().includes(e)||t.id.toLowerCase().includes(e))).length&&!t)return}t[s]={...a,models:[...(r=n).filter(e=>j.includes(e.value)).sort((e,t)=>e.name.localeCompare(t.name)),...r.filter(e=>!j.includes(e.value)).sort((e,t)=>e.name.localeCompare(t.name))]}}),t},[q,k,j]),D=e=>{let a=e?.value||e?.name||e;j.includes(a)&&n?n(e):s(e),y&&(t(),C(""))};return(0,a.jsxs)(i.default,{isOpen:e,onClose:()=>{t(),C("")},title:b,size:"md",className:"p-4!",footer:null,children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3 px-2.5 py-2 bg-primary/8 border border-primary/20 rounded-lg text-xs text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary shrink-0",style:{fontSize:"14px"},children:"info"}),(0,a.jsx)("span",{children:"Click to add, click again to remove. Changes are saved automatically."})]}),(0,a.jsx)("div",{className:"mb-3",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("span",{className:"material-symbols-outlined absolute left-2.5 top-1/2 -translate-y-1/2 text-text-muted text-[16px]",children:"search"}),(0,a.jsx)("input",{type:"text",placeholder:"Search...",value:k,onChange:e=>C(e.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-surface border border-border rounded text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"})]})}),(0,a.jsxs)("div",{className:"max-h-[400px] overflow-y-auto space-y-3",children:[L.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary text-[14px]",children:"layers"}),(0,a.jsx)("span",{className:"text-xs font-medium text-primary",children:"Combos"}),(0,a.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",L.length,")"]})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:L.map(e=>{let t=l===e.name;return(0,a.jsxs)("button",{onClick:()=>D({id:e.name,name:e.name,value:e.name}),className:`
2
- px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer flex items-center gap-1
3
- ${t?"bg-primary text-white border-primary":j.includes(e.name)?"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"}
4
- `,children:[j.includes(e.name)&&(0,a.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),e.name]},e.id)})})]}),Object.entries(z).map(([e,t])=>(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,a.jsx)(o.A,{src:`/providers/${e}.png`,alt:t.name,size:14,fallbackText:(t.name||e).slice(0,2).toUpperCase(),fallbackColor:t.color}),(0,a.jsx)("span",{className:"text-xs font-medium text-primary",children:t.name}),(0,a.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",t.models.length,")"]})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.models.map(e=>{let t=l===e.value,s=e.isPlaceholder;return(0,a.jsx)("button",{onClick:()=>D(e),title:s?"Select to pre-fill, then edit model ID in the input":void 0,className:`
5
- px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer
6
- ${s?"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,a.jsxs)("span",{className:"flex items-center gap-1",children:[j.includes(e.value)&&!s&&(0,a.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),e.name]}):e.isCustom?(0,a.jsxs)(a.Fragment,{children:[e.name,(0,a.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"}),(0,a.jsx)(d.default,{caps:w(e.value)})]}):(0,a.jsxs)(a.Fragment,{children:[e.name,(0,a.jsx)(d.default,{caps:w(e.value)})]})]})},e.value)})})]},e)),0===Object.keys(z).length&&0===L.length&&(0,a.jsxs)("div",{className:"text-center py-4 text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-2xl mb-1 block",children:"search_off"}),(0,a.jsx)("p",{className:"text-xs",children:"No models found"})]})]})]})}h.propTypes={isOpen:l().bool.isRequired,onClose:l().func.isRequired,onSelect:l().func.isRequired,onDeselect:l().func,selectedModel:l().string,activeProviders:l().arrayOf(l().shape({provider:l().string.isRequired})),title:l().string,modelAliases:l().object,kindFilter:l().string,addedModelValues:l().arrayOf(l().string),closeOnSelect:l().bool}},73579:(e,t,s)=>{s.d(t,{default:()=>x});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(81127),o=s(11910),d=s(92542),c=s(56061),m=s(88105);function x({isOpen:e,connection:t,proxyPools:s,onSave:n,onClose:l}){let[u,p]=(0,r.useState)({name:"",priority:1,apiKey:""}),[h,f]=(0,r.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[b,g]=(0,r.useState)({accountId:""}),[v,j]=(0,r.useState)(!1),[y,N]=(0,r.useState)(null),[w,k]=(0,r.useState)(!1),[C,S]=(0,r.useState)(null),[O,T]=(0,r.useState)(!1);(0,r.useEffect)(()=>{t&&(p({name:t.name||"",priority:t.priority||1,apiKey:""}),"azure"===t.provider&&t.providerSpecificData&&f({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&&g({accountId:t.providerSpecificData.accountId||""}),N(null),S(null))},[t]);let P=t?.authType==="oauth",$=t?.provider==="azure",F=t?.provider==="cloudflare-ai",I=!!t&&((0,m.mq)(t.provider)||(0,m.gb)(t.provider)),R=async()=>{if(t?.provider){j(!0),N(null);try{let e=await fetch(`/api/providers/${t.id}/test`,{method:"POST"}),s=await e.json();N(s.valid?"success":"failed")}catch{N("failed")}finally{j(!1)}}},A=async()=>{if(t?.provider&&u.apiKey){k(!0),S(null);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:u.apiKey,...$?{providerSpecificData:h}:{},...F?{providerSpecificData:b}:{}})}),s=await e.json();S(s.valid?"success":"failed")}catch{S("failed")}finally{k(!1)}}},E=async()=>{if(t){T(!0);try{let e={name:u.name,priority:u.priority};if(!P&&u.apiKey){e.apiKey=u.apiKey;let s="success"===C;if(!s)try{k(!0),S(null);let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:u.apiKey,...$?{providerSpecificData:h}:{},...F?{providerSpecificData:b}:{}})});s=!!(await e.json()).valid,S(s?"success":"failed")}catch{S("failed")}finally{k(!1)}s&&(e.testStatus="active",e.lastError=null,e.lastErrorAt=null)}$&&(e.providerSpecificData={azureEndpoint:h.azureEndpoint,apiVersion:h.apiVersion,deployment:h.deployment,organization:h.organization}),F&&(e.providerSpecificData={accountId:b.accountId}),await n(e)}finally{T(!1)}}};return t?(0,a.jsx)(i.default,{isOpen:e,title:"Edit Connection",onClose:l,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(o.default,{label:"Name",value:u.name,onChange:e=>p({...u,name:e.target.value}),placeholder:P?"Account name":"Production Key"}),P&&t.email&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-3 rounded-lg",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted mb-1",children:"Email"}),(0,a.jsx)("p",{className:"font-medium",children:t.email})]}),(0,a.jsx)(o.default,{label:"Priority",type:"number",value:u.priority,onChange:e=>p({...u,priority:Number.parseInt(e.target.value,10)||1})}),!P&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(o.default,{label:"API Key",type:"password",value:u.apiKey,onChange:e=>p({...u,apiKey:e.target.value}),placeholder:"Enter new API key",hint:"Leave blank to keep the current API key.",className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.default,{onClick:A,disabled:!u.apiKey||w||O,variant:"secondary",children:w?"Checking...":"Check"})})]}),C&&(0,a.jsx)(c.default,{variant:"success"===C?"success":"error",children:"success"===C?"Valid":"Invalid"})]}),$&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,a.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(o.default,{label:"Azure Endpoint",value:h.azureEndpoint,onChange:e=>f({...h,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com",hint:"Your Azure OpenAI resource endpoint URL"}),(0,a.jsx)(o.default,{label:"Deployment Name",value:h.deployment,onChange:e=>f({...h,deployment:e.target.value}),placeholder:"gpt-4",hint:"The deployment name in your Azure resource"}),(0,a.jsx)(o.default,{label:"API Version",value:h.apiVersion,onChange:e=>f({...h,apiVersion:e.target.value}),placeholder:"2024-10-01-preview",hint:"Azure OpenAI API version to use"}),(0,a.jsx)(o.default,{label:"Organization",value:h.organization,onChange:e=>f({...h,organization:e.target.value}),placeholder:"Organization ID",hint:"Required for billing"})]})]}),!I&&!$&&!F&&(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(d.default,{onClick:R,variant:"secondary",disabled:v,children:v?"Testing...":"Test Connection"}),y&&(0,a.jsx)(c.default,{variant:"success"===y?"success":"error",children:"success"===y?"Valid":"Failed"})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.default,{onClick:E,fullWidth:!0,disabled:O,children:O?"Saving...":"Save"}),(0,a.jsx)(d.default,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}x.propTypes={isOpen:l().bool.isRequired,connection:l().shape({id:l().string,name:l().string,email:l().string,priority:l().number,authType:l().string,provider:l().string,providerSpecificData:l().object}),proxyPools:l().arrayOf(l().shape({id:l().string,name:l().string})),onSave:l().func.isRequired,onClose:l().func.isRequired}},80752:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(1620),o=s(40197),d=s(81127);function c({icon:e,label:t,onClick:s,trailing:r,danger:n}){return(0,a.jsxs)("button",{onClick:s,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,a.jsx)("span",{className:`material-symbols-outlined text-[20px] ${n?"":"text-text-muted"}`,children:e}),(0,a.jsx)("span",{className:"flex-1 text-left",children:t}),r&&(0,a.jsx)("span",{className:"text-base",children:r})]})}function m({onLogout:e}){let[t,s]=(0,r.useState)(!1),[n,l]=(0,r.useState)(!1),[x,u]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1),{toggleTheme:f,isDark:b}=(0,i.D)(),g=(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=>{g.current&&!g.current.contains(e.target)&&s(!1)};if(t)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"relative",ref:g,children:[(0,a.jsx)("button",{onClick:()=>s(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,a.jsx)("span",{className:"material-symbols-outlined",children:"grid_view"})}),t&&(0,a.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,a.jsx)(c,{icon:"history",label:"Change Log",onClick:()=>{s(!1),l(!0)}}),(0,a.jsx)(c,{icon:b?"light_mode":"dark_mode",label:"Theme",onClick:()=>{f(),s(!1)}}),(0,a.jsx)(c,{icon:"power_settings_new",label:"Shutdown",danger:!0,onClick:()=>{s(!1),u(!0)}}),(0,a.jsx)(c,{icon:"logout",label:"Logout",danger:!0,onClick:()=>{s(!1),e()}})]})]}),(0,a.jsx)(o.default,{isOpen:n,onClose:()=>l(!1)}),(0,a.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:l().string.isRequired,label:l().string.isRequired,onClick:l().func.isRequired,trailing:l().node,danger:l().bool},m.propTypes={onLogout:l().func.isRequired}},81127:(e,t,s)=>{s.d(t,{ConfirmModal:()=>d,default:()=>o});var a=s(95155),r=s(12115),n=s(31474),l=s(92542),i=s(97677);function o({isOpen:e,onClose:t,title:s,children:l,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 s=s=>{"Escape"===s.key&&e&&t()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e,t]),e)?(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in",onClick:m?t:void 0}),(0,a.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:[(s||x)&&(0,a.jsxs)("div",{className:"flex items-center justify-between p-2 border-b border-border-subtle",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[x&&(0,a.jsxs)("div",{className:"hidden md:flex items-center gap-2 mr-4 ml-2",children:[(0,a.jsx)(i.default,{text:"Close",position:"top",color:"#FF5F56",children:(0,a.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,a.jsx)("span",{className:"text-[9px] font-bold text-white opacity-0 group-hover/dot:opacity-100 transition-opacity leading-none",children:"✕"})})}),(0,a.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"}),(0,a.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"})]}),s&&(0,a.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:s})]}),(0,a.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,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,a.jsx)("div",{className:"p-6 max-h-[calc(85vh-100px)] overflow-y-auto custom-scrollbar",children:l}),d&&(0,a.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:s,title:r="Confirm",message:n,confirmText:i="Confirm",cancelText:c="Cancel",variant:m="danger",loading:x=!1}){return(0,a.jsx)(o,{isOpen:e,onClose:t,title:r,size:"sm",footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.default,{variant:"ghost",onClick:t,disabled:x,children:c}),(0,a.jsx)(l.default,{variant:m,onClick:s,loading:x,children:i})]}),children:(0,a.jsx)("p",{className:"text-text-muted",children:n})})}},82804:(e,t,s)=>{s.d(t,{y:()=>d});var a=s(12115);function r(e,t){return RegExp("^"+e.split("*").map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*")+"$","i").test(t)}let n={vision:!1,pdf:!1,audioInput:!1,videoInput:!1,imageOutput:!1,audioOutput:!1,search:!1,tools:!0,reasoning:!1,thinkingFormat:null,thinkingCanDisable:!0,thinkingRange:null,contextWindow:2e5,maxOutput:64e3},l={"claude-opus-4.6":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-4.7":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-4-6":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-sonnet-4.6":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:64e3},"claude-sonnet-4-6":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:64e3},"gpt-image-1":{imageOutput:!0,tools:!1},"glm-4.6v":{vision:!0,reasoning:!0,thinkingFormat:"zai",contextWindow:128e3},"vision-model":{vision:!0,reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6},"coder-model":{reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6}},i={"codebuddy-cn":{"glm-5.2":{reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:48e3},"glm-5.1":{reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:2e5,maxOutput:48e3},"glm-5.0":{reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:48e3},"glm-5.0-turbo":{reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:2e5,maxOutput:48e3},"glm-5v-turbo":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:2e5,maxOutput:38e3},"glm-4.7":{reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:48e3},"minimax-m3":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:512e3,maxOutput:48e3},"minimax-m2.7":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:2e5,maxOutput:48e3},"kimi-k2.7":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:256e3,maxOutput:32e3},"kimi-k2.6":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:256e3,maxOutput:32e3},"kimi-k2.5":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:164e3,maxOutput:32e3},"hy3-preview":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:192e3,maxOutput:64e3},"deepseek-v4-pro":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:5e4},"deepseek-v4-flash":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:5e4},"deepseek-v3-2-volc":{reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:96e3,maxOutput:32e3}}},o=[{pattern:"*claude*opus-4.6*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive"}},{pattern:"*claude*opus-4.7*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive"}},{pattern:"*claude*opus-4.8*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive"}},{pattern:"*claude*sonnet-4.6*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive"}},{pattern:"*claude*sonnet-4.7*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive"}},{pattern:"*claude*haiku*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-budget"}},{pattern:"*claude*opus*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-budget"}},{pattern:"*claude*sonnet*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-budget"}},{pattern:"*claude*fable*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-budget",contextWindow:1e6,maxOutput:128e3}},{pattern:"*claude*mythos*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-budget",contextWindow:1e6,maxOutput:128e3}},{pattern:"*claude-3*",caps:{vision:!0}},{pattern:"*claude*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-budget"}},{pattern:"*gemini*image*",caps:{vision:!0,imageOutput:!0,contextWindow:1048576}},{pattern:"*gemini-3*pro*",caps:{vision:!0,audioInput:!0,videoInput:!0,reasoning:!0,search:!0,thinkingFormat:"gemini-level",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:65535}},{pattern:"*gemini-3*",caps:{vision:!0,audioInput:!0,videoInput:!0,reasoning:!0,search:!0,thinkingFormat:"gemini-level",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:65536}},{pattern:"*gemini-2.5*",caps:{vision:!0,audioInput:!0,videoInput:!0,reasoning:!0,search:!0,thinkingFormat:"gemini-budget",thinkingRange:{min:0,max:24576},contextWindow:1048576,maxOutput:65536}},{pattern:"*gemini-2*",caps:{vision:!0,audioInput:!0,videoInput:!0,search:!0,contextWindow:1048576,maxOutput:65536}},{pattern:"*gemini*",caps:{vision:!0,search:!0,contextWindow:1048576}},{pattern:"*gemma*",caps:{vision:!0,contextWindow:128e3}},{pattern:"*nanobanana*",caps:{vision:!0,imageOutput:!0}},{pattern:"*gpt-5*image*",caps:{imageOutput:!0}},{pattern:"*gpt-5*codex*",caps:{reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:4e5,maxOutput:128e3}},{pattern:"*gpt-5*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:4e5,maxOutput:128e3}},{pattern:"*gpt-4o*",caps:{vision:!0,search:!0,contextWindow:128e3,maxOutput:16384}},{pattern:"*gpt-4.1*",caps:{vision:!0,contextWindow:1e6,maxOutput:32768}},{pattern:"*gpt-4-turbo*",caps:{vision:!0,contextWindow:128e3}},{pattern:"*gpt-4*",caps:{contextWindow:128e3}},{pattern:"*gpt-3.5*",caps:{contextWindow:16385,maxOutput:4096}},{pattern:"*gpt-oss*",caps:{reasoning:!0,thinkingFormat:"openai",contextWindow:128e3}},{pattern:"*o1-mini*",caps:{reasoning:!0,thinkingFormat:"openai",contextWindow:128e3}},{pattern:"*o1*",caps:{vision:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:1e5}},{pattern:"*o3*",caps:{vision:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:1e5}},{pattern:"*o4*",caps:{vision:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:1e5}},{pattern:"*grok*image*",caps:{imageOutput:!0}},{pattern:"*grok-code*",caps:{reasoning:!0,thinkingFormat:"openai",contextWindow:256e3}},{pattern:"*grok-4*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:256e3}},{pattern:"*grok-3*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:131072}},{pattern:"*grok*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:256e3}},{pattern:"*qwen*vl*",caps:{vision:!0,reasoning:!0,thinkingFormat:"qwen",contextWindow:262144}},{pattern:"*qwen*max*",caps:{vision:!0,reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6,maxOutput:65536}},{pattern:"*qwen*plus*",caps:{vision:!0,reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6,maxOutput:65536}},{pattern:"*qwen*235b*",caps:{reasoning:!0,thinkingFormat:"qwen",contextWindow:262144}},{pattern:"*qwen*coder*",caps:{reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6}},{pattern:"*qwq*",caps:{reasoning:!0,thinkingFormat:"qwen",thinkingCanDisable:!1,contextWindow:131072}},{pattern:"*qwen*",caps:{reasoning:!0,thinkingFormat:"qwen",contextWindow:262144}},{pattern:"*kimi*k2.7*code*",caps:{vision:!0,reasoning:!0,thinkingFormat:"kimi",thinkingCanDisable:!1,contextWindow:262144,maxOutput:262144}},{pattern:"*kimi*k2*",caps:{vision:!0,reasoning:!0,thinkingFormat:"kimi",contextWindow:262144,maxOutput:262144}},{pattern:"*kimi*",caps:{reasoning:!0,thinkingFormat:"kimi",contextWindow:262144}},{pattern:"*glm-5*",caps:{reasoning:!0,thinkingFormat:"zai",contextWindow:2e5,maxOutput:128e3}},{pattern:"*glm-4.7*",caps:{reasoning:!0,thinkingFormat:"zai",contextWindow:2e5,maxOutput:128e3}},{pattern:"*glm-4*",caps:{reasoning:!0,thinkingFormat:"zai",contextWindow:2e5}},{pattern:"*glm*",caps:{reasoning:!0,thinkingFormat:"zai",contextWindow:2e5}},{pattern:"*deepseek-v4*",caps:{reasoning:!0,thinkingFormat:"deepseek",contextWindow:1e6,maxOutput:384e3}},{pattern:"*reasoner*",caps:{reasoning:!0,thinkingFormat:"deepseek",thinkingCanDisable:!1,contextWindow:128e3}},{pattern:"*deepseek-r*",caps:{reasoning:!0,thinkingFormat:"deepseek",thinkingCanDisable:!1,contextWindow:128e3}},{pattern:"*deepseek-chat*",caps:{contextWindow:128e3}},{pattern:"*deepseek*",caps:{reasoning:!0,thinkingFormat:"deepseek",contextWindow:128e3}},{pattern:"*minimax*image*",caps:{imageOutput:!0}},{pattern:"*minimax-m3*",caps:{vision:!0,reasoning:!0,thinkingFormat:"minimax",contextWindow:1048576,maxOutput:512e3}},{pattern:"*minimax-m2.7*",caps:{reasoning:!0,thinkingFormat:"minimax",thinkingCanDisable:!1,contextWindow:204800,maxOutput:131072}},{pattern:"*minimax*",caps:{reasoning:!0,thinkingFormat:"minimax",thinkingCanDisable:!1,contextWindow:2e5,maxOutput:131072}},{pattern:"*mimo*v2.5*",caps:{vision:!0,contextWindow:1048576,maxOutput:131072}},{pattern:"*mimo*omni*",caps:{vision:!0,audioInput:!0,contextWindow:262144,maxOutput:131072}},{pattern:"*mimo*",caps:{vision:!0,contextWindow:262144,maxOutput:131072}},{pattern:"*llama-4*",caps:{vision:!0,contextWindow:1e6}},{pattern:"*llama*",caps:{contextWindow:128e3}},{pattern:"*codestral*",caps:{contextWindow:256e3}},{pattern:"*mistral-large*",caps:{vision:!0,contextWindow:256e3}},{pattern:"*mistral*",caps:{contextWindow:128e3}},{pattern:"*command-a-vision*",caps:{vision:!0,contextWindow:128e3}},{pattern:"*command*",caps:{contextWindow:128e3}},{pattern:"*sonar*",caps:{search:!0,contextWindow:128e3}},{pattern:"*pplx*",caps:{search:!0,contextWindow:128e3}},{pattern:"*perplexity*",caps:{search:!0,contextWindow:128e3}},{pattern:"*hunyuan*",caps:{reasoning:!0,thinkingFormat:"hunyuan",contextWindow:262144,maxOutput:262144}},{pattern:"hy3*",caps:{reasoning:!0,thinkingFormat:"hunyuan",contextWindow:262144,maxOutput:262144}},{pattern:"*step-*",caps:{reasoning:!0,thinkingFormat:"step",contextWindow:128e3}},{pattern:"*nemotron*",caps:{reasoning:!0,contextWindow:128e3}},{pattern:"*ling-*",caps:{reasoning:!0,contextWindow:128e3}}];function d(){let[e,t]=(0,a.useState)({}),[s,d]=(0,a.useState)({});return(0,a.useEffect)(()=>{let e=!0;return(async()=>{try{let s=await fetch("/api/models");if(!s.ok)return;let a=await s.json(),r={},n={};for(let e of a.models||[])e.caps&&(e.fullModel&&(r[e.fullModel]=e.caps),e.model&&(n[e.model]=e.caps));e&&(t(r),d(n))}catch{}})(),()=>{e=!1}},[]),{getCaps:t=>{if(!t)return null;if(e[t])return e[t];let a=t.includes("/")?t.slice(t.indexOf("/")+1):t;if(s[a])return s[a];let d=function(e,t){if(!t)return{...n};if(e&&i[e]?.[t])return{...n,...i[e][t]};let s=t.includes("/")?t.split("/").pop():t;if(l[s])return{...n,...l[s]};if(l[t])return{...n,...l[t]};for(let{pattern:e,caps:a}of o)if(r(e,s)||r(e,t))return{...n,...a};return{...n}}(t.includes("/")?t.slice(0,t.indexOf("/")):null,a);return{vision:d.vision,search:d.search,reasoning:d.reasoning}}}}},84588:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155),r=s(31474);function n({children:e,title:t,subtitle:s,icon:l,action:i,padding:o="md",hover:d=!1,elev:c=!1,className:m,...x}){return(0,a.jsxs)("div",{className:(0,r.cn)("bg-surface border border-border-subtle",c?"rounded-[14px] shadow-[var(--shadow-elev)]":"rounded-[14px] shadow-[var(--shadow-soft)]",d&&"hover:shadow-[var(--shadow-warm)] hover:border-brand-500/30 transition-all cursor-pointer",{none:"",xs:"p-3",sm:"p-4",md:"p-6",lg:"p-8"}[o],m),...x,children:[(t||i)&&(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[l&&(0,a.jsx)("div",{className:"p-2 rounded-[10px] bg-bg text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:l})}),(0,a.jsxs)("div",{children:[t&&(0,a.jsx)("h3",{className:"text-text-main font-semibold",children:t}),s&&(0,a.jsx)("p",{className:"text-sm text-text-muted",children:s})]})]}),i]}),e]})}n.Section=function({children:e,className:t,...s}){return(0,a.jsx)("div",{className:(0,r.cn)("p-4 rounded-[10px]","bg-bg border border-border-subtle",t),...s,children:e})},n.Row=function({children:e,className:t,...s}){return(0,a.jsx)("div",{className:(0,r.cn)("p-3 -mx-3 px-3 transition-colors","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50",t),...s,children:e})},n.ListItem=function({children:e,actions:t,className:s,...n}){return(0,a.jsxs)("div",{className:(0,r.cn)("group flex items-center justify-between p-3 -mx-3 px-3","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50 transition-colors",s),...n,children:[(0,a.jsx)("div",{className:"flex-1 min-w-0",children:e}),t&&(0,a.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:t})]})}},90882:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(35497),o=s(11059);function d({isOpen:e,provider:t,providerInfo:s,onSuccess:n,onClose:l,oauthMeta:c,idcConfig:m}){let[x,u]=(0,r.useState)("waiting"),[p,h]=(0,r.useState)(null),[f,b]=(0,r.useState)(""),[g,v]=(0,r.useState)(null),[j,y]=(0,r.useState)(!1),[N,w]=(0,r.useState)(null),[k,C]=(0,r.useState)(!1),S=(0,r.useRef)(null),O=(0,r.useRef)(!1),T=(0,r.useRef)(!1),{copied:P,copy:$}=(0,o.C)(),[F,I]=(0,r.useState)(!1),[R,A]=(0,r.useState)("/callback?code=..."),E=(0,r.useRef)(!1);(0,r.useEffect)(()=>{I("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname),A(`${window.location.origin}/callback?code=...`)},[]);let W=(0,r.useCallback)(async(e,s)=>{if(p)try{let a=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:s,...c?{meta:c}:{}})}),r=await a.json();if(!a.ok)throw Error(r.error);u("success"),n?.()}catch(e){v(e.message),u("error")}},[p,t,n]),M=(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})}),s=await t.json();if(!t.ok)throw Error(s.error);u("success"),n?.()}catch(e){v(e.message),u("error")}},[p,n]),_=(0,r.useCallback)(async(e,s,a,r,l)=>{O.current=!1,C(!0);let i=Date.now()+(Number.isFinite(l)&&l>0?l:12e4);for(;Date.now()<i;){if(O.current){console.log("[OAuthModal] Polling aborted"),C(!1);return}if(await new Promise(e=>setTimeout(e,1e3*a)),O.current){console.log("[OAuthModal] Polling aborted after sleep"),C(!1);return}try{let l=await fetch(`/api/oauth/${t}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,codeVerifier:s,extraData:r})}),i=await l.json();if(i.success){O.current=!0,u("success"),C(!1),n?.();return}if("expired_token"===i.error||"access_denied"===i.error)throw Error(i.errorDescription||i.error);"slow_down"===i.error&&(a=Math.min(a+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 s=await fetch(e.toString()),a=await s.json();if(!s.ok)throw Error(a.error);w(a);let r=a.verification_uri_complete||a.verification_uri;r&&window.open(r,"_blank","noopener,noreferrer");let n="kiro"===t?{_clientId:a._clientId,_clientSecret:a._clientSecret,_region:a._region,_authMethod:a._authMethod,_startUrl:a._startUrl}:"qoder"===t?{_qoderNonce:a._qoderNonce,_qoderMachineId:a._qoderMachineId,_qoderVerifier:a.codeVerifier}:null;_(a.device_code,a.codeVerifier,a.interval||5,n,Number.isFinite(a.expires_in)&&a.expires_in>0?1e3*a.expires_in:void 0);return}let s=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:${s}/callback`;let a=new URL(`/api/oauth/${t}/authorize`,window.location.origin);a.searchParams.set("redirect_uri",e),c&&Object.entries(c).forEach(([e,t])=>{t&&a.searchParams.set(e,t)});let r=await fetch(a.toString()),n=await r.json();if(!r.ok)throw Error(n.error);let l=!1,i=!1;if("codex"===t)try{let t=new URL("/api/oauth/codex/start-proxy",window.location.origin);t.searchParams.set("app_port",s),t.searchParams.set("state",n.state),t.searchParams.set("code_verifier",n.codeVerifier),t.searchParams.set("redirect_uri",e);let a=await fetch(t.toString()),r=await a.json();l=r.success,i=!!r.serverSide}catch{l=!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",s),t.searchParams.set("state",n.state),t.searchParams.set("code_verifier",n.codeVerifier),t.searchParams.set("redirect_uri",e);let a=await fetch(t.toString()),r=await a.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:i,xaiServerSide:d}),"codex"===t&&l||"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,_,c,m]);(0,r.useEffect)(()=>{e&&t?T.current||(T.current=!0,h(null),b(""),v(null),y(!1),w(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||E.current)return;let t=!1,s=0,a=async()=>{if(!t&&!E.current){s+=1;try{let s=await fetch(`/api/oauth/${e}/poll-status?state=${encodeURIComponent(p.state)}`),a=await s.json();if(t||E.current)return;if("done"===a.status){E.current=!0,u("success"),n?.();return}if("error"===a.status){E.current=!0,v(a.error||"Authentication failed"),u("error");return}}catch{}if(s>=200){E.current=!0,v("Authentication timeout"),u("error");return}setTimeout(a,1500)}};return setTimeout(a,1500),()=>{t=!0}},[p,n]),(0,r.useEffect)(()=>{let e;if(!p)return;E.current=!1;let t=async e=>{if(E.current)return;let{code:t,state:s,error:a,errorDescription:r}=e;if(a){E.current=!0,v(r||a),u("error");return}t&&(E.current=!0,await W(t,s))},s=e=>{let s=e.origin.includes("localhost")||e.origin.includes("127.0.0.1"),a=e.origin===window.location.origin;(s||a)&&e.data?.type==="oauth_callback"&&t(e.data.data)};window.addEventListener("message",s);try{(e=new BroadcastChannel("oauth_callback")).onmessage=e=>t(e.data)}catch(e){console.log("BroadcastChannel not supported")}let a=e=>{if("oauth_callback"===e.key&&e.newValue)try{let s=JSON.parse(e.newValue);t(s),localStorage.removeItem("oauth_callback")}catch(e){console.log("Failed to parse localStorage data")}};window.addEventListener("storage",a);try{let e=localStorage.getItem("oauth_callback");if(e){let s=JSON.parse(e);s.timestamp&&Date.now()-s.timestamp<3e4&&t(s),localStorage.removeItem("oauth_callback")}}catch{}return()=>{window.removeEventListener("message",s),window.removeEventListener("storage",a),e&&e.close()}},[p,W]);let L=async()=>{try{v(null);let e=f.trim();if(e.startsWith("eyJ")&&e.includes("."))return void await W(e,null);if("xai"===t&&e&&!e.includes("://")&&!e.includes("?")&&!e.includes("code="))return void await M(e);let s=new URL(e),a=s.searchParams.get("code"),r=s.searchParams.get("state"),n=s.searchParams.get("error");if(n)throw Error(s.searchParams.get("error_description")||n);if(!a)throw Error("xai"===t?"Paste the callback URL or copied xAI code":"No authorization code found in URL");await W(a,r)}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(()=>{}),l()},[l,t]);if(!t||!s)return null;let D="xai"===t,U=N?.verification_uri_complete||N?.verification_uri||"",K=D?"Connect Grok Build OAuth":`Connect ${s.name}`;return(0,a.jsx)(i.aF,{isOpen:e,title:K,onClose:z,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[("waiting"===x||"input"===x)&&!j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,a.jsx)("span",{className:"text-sm",children:D?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,a.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,a.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,a.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",D?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.pd,{value:p?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,a.jsx)(i.$n,{variant:"secondary",icon:"auth_url"===P?"check":"content_copy",onClick:()=>$(p?.authUrl,"auth_url"),disabled:!p?.authUrl,children:"Copy"})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===t?"callback URL or copied code":"callback URL"," here"]}),(0,a.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.":"After authorization, copy the full URL from your browser."}),(0,a.jsx)(i.pd,{value:f,onChange:e=>b(e.target.value),placeholder:D?"http://127.0.0.1:56121/callback?code=... or copied code":R,className:"font-mono text-xs"})]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:L,fullWidth:!0,disabled:!f,children:"Connect"}),(0,a.jsx)(i.$n,{onClick:z,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===x&&j&&N&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"text-center py-4",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Visit the login URL below and authorize:"}),(0,a.jsxs)("div",{className:"bg-sidebar p-4 rounded-lg mb-4",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Login URL"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("code",{className:"flex-1 text-sm break-all",children:U}),(0,a.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"login_url"===P?"check":"content_copy",onClick:()=>$(U,"login_url"),disabled:!U}),(0,a.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(U,"_blank","noopener,noreferrer"),disabled:!U,children:"Open"})]})]}),(0,a.jsxs)("div",{className:"bg-primary/10 p-4 rounded-lg",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Your Code"}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)("p",{className:"text-2xl font-mono font-bold text-primary",children:N.user_code}),(0,a.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"user_code"===P?"check":"content_copy",onClick:()=>$(N.user_code,"user_code")})]})]})]}),k&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),"Waiting for authorization..."]})]}),"success"===x&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.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,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,a.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your ",s.name," account has been connected."]}),(0,a.jsx)(i.$n,{onClick:z,fullWidth:!0,children:"Done"})]}),"error"===x&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.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,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,a.jsx)("p",{className:"text-sm text-red-600 mb-4",children:g}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:q,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,a.jsx)(i.$n,{onClick:z,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:l().bool.isRequired,provider:l().string,providerInfo:l().shape({name:l().string}),onSuccess:l().func,onClose:l().func.isRequired,oauthMeta:l().object,idcConfig:l().shape({startUrl:l().string,region:l().string})}},91450:(e,t,s)=>{s.d(t,{default:()=>i});var a=s(95155),r=s(14051),n=s.n(r),l=s(38587);function i({children:e}){return(0,a.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,a.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,a.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,a.jsx)("div",{className:"absolute top-6 right-6 z-20",children:(0,a.jsx)(l.default,{variant:"card"})}),(0,a.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})]})}i.propTypes={children:n().node.isRequired}},92173:(e,t,s)=>{s.d(t,{default:()=>c});var a=s(95155),r=s(98500),n=s.n(r),l=s(90620);let i=[{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,a.jsx)("footer",{className:"bg-bg border-t border-border pt-16 pb-12",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-10 mb-12",children:[(0,a.jsxs)("div",{className:"col-span-2 lg:col-span-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,a.jsx)("div",{className:"size-6 text-primary",children:(0,a.jsx)("svg",{className:"w-full h-full",fill:"currentColor",viewBox:"0 0 48 48",children:(0,a.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,a.jsx)("span",{className:"text-xl font-bold text-text-main",children:l.vQ.name})]}),(0,a.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,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"Twitter",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,a.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,a.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"GitHub",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,a.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,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Product"}),(0,a.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:i.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Resources"}),(0,a.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:o.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Company"}),(0,a.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:d.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]})]}),(0,a.jsxs)("div",{className:"border-t border-border pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["\xa9 ",new Date().getFullYear()," ",l.vQ.name," Inc. All rights reserved."]}),(0,a.jsxs)("div",{className:"flex gap-6 text-sm text-text-muted",children:[(0,a.jsx)(n(),{href:"#",className:"hover:text-primary transition-colors",children:"Privacy Policy"}),(0,a.jsx)(n(),{href:"#",className:"hover:text-primary transition-colors",children:"Terms of Service"})]})]})]})})}},92542:(e,t,s)=>{s.d(t,{default:()=>i});var a=s(95155),r=s(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"},l={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 i({children:e,variant:t="primary",size:s="md",icon:o,iconRight:d,disabled:c=!1,loading:m=!1,fullWidth:x=!1,className:u,...p}){return(0,a.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],l[s],x&&"w-full",u),disabled:c||m,...p,children:[m?(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}):o?(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:o}):null,e,d&&!m&&(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:d})]})}},92622:(e,t,s)=>{s.d(t,{default:()=>N});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(98500),o=s.n(i),d=s(73321),c=s(31474),m=s(90620),x=s(88105),u=s(11059),p=s(92542),h=s(81127),f=s(14932);let b=["embedding","image","tts","stt"],g="/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/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)(),[s,n]=(0,r.useState)(!1),[l,i]=(0,r.useState)(!1),[k,C]=(0,r.useState)(!1),[S,O]=(0,r.useState)(null),[T,P]=(0,r.useState)(!1),[$,F]=(0,r.useState)(!1),[I,R]=(0,r.useState)(0),[A,E]=(0,r.useState)(!1),{copied:W,copy:M}=(0,u.C)(2e3),_=m.h0.installCmdLatest;(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{e.enableTranslator&&E(!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(_)}catch{}M(_);let e=m.h0.shutdownCountdownSec;R(e);let t=setInterval(()=>{R(e-=1),e<=0&&(clearInterval(t),fetch("/api/version/shutdown",{method:"POST"}).catch(()=>{}),C(!0))},1e3)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.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,a.jsxs)("div",{className:"flex items-center gap-2 px-6 pt-5 pb-2",children:[(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FF5F56]"}),(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FFBD2E]"}),(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#27C93F]"})]}),(0,a.jsxs)("div",{className:"px-6 py-4 flex flex-col gap-2",children:[(0,a.jsxs)(o(),{href:"/dashboard",className:"flex items-center gap-3",children:[(0,a.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,a.jsx)("span",{className:"material-symbols-outlined text-white text-[20px]",children:"hub"})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("h1",{className:"text-lg font-semibold tracking-tight text-text-main",children:m.vQ.name}),(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["v",m.vQ.version]})]})]}),S&&(0,a.jsxs)("div",{className:"flex flex-col gap-1.5 rounded p-1 -m-1",children:[(0,a.jsxs)("span",{className:"text-xs font-semibold text-green-600 dark:text-amber-500",children:["↑ New version available: v",S.latestVersion]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.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,a.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,a.jsx)("code",{className:"block text-[10px] text-green-600/80 dark:text-amber-400/70 font-mono truncate",children:W?"✓ copied!":_})})]})]})]}),(0,a.jsxs)("nav",{className:"flex-1 px-4 py-2 space-y-0.5 overflow-y-auto custom-scrollbar",children:[v.map(t=>(0,a.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,a.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,a.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),(0,a.jsxs)("div",{className:"pt-3 mt-2 space-y-0.5",children:[(0,a.jsx)("p",{className:"px-4 text-xs font-semibold text-text-muted/60 uppercase tracking-wider mb-2",children:"System"}),(0,a.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,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"perm_media"}),(0,a.jsx)("span",{className:"text-[13px] font-medium flex-1 text-left",children:"Media Providers"}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] transition-transform",style:{transform:s?"rotate(180deg)":"rotate(0deg)"},children:"expand_more"})]}),s&&(0,a.jsxs)("div",{className:"pl-4",children:[x.rj.filter(e=>b.includes(e.id)).map(s=>(0,a.jsxs)(o(),{href:`/dashboard/media-providers/${s.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/${s.id}`)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:s.icon}),(0,a.jsx)("span",{className:"text-sm",children:s.label})]},s.id)),(0,a.jsxs)(o(),{href:g,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-4 py-1 rounded-lg transition-all group",t.startsWith(g)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"travel_explore"}),(0,a.jsx)("span",{className:"text-sm",children:"Web Fetch & Search"})]},"web")]}),y.map(t=>(0,a.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,a.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,a.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),j.map(t=>"/dashboard/translator"!==t.href||A?(0,a.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,a.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,a.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href):null),(0,a.jsxs)("button",{onClick:()=>i(!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,a.jsx)("span",{className:"material-symbols-outlined text-[18px] group-hover:text-primary transition-colors",children:"computer"}),(0,a.jsx)("span",{className:"text-[13px] font-medium",children:"Remote"})]}),(0,a.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,a.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,a.jsx)("span",{className:"text-[13px] font-medium",children:"Settings"})]})]})]})]}),(0,a.jsx)(f.A,{isOpen:l,onClose:()=>i(!1)}),(0,a.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"}),(k||$)&&(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm p-6",children:$?(0,a.jsx)(w,{latestVersion:S?.latestVersion,installCmd:_,copied:W,onCopyAndShutdown:L,onCancel:()=>{F(!1),R(0)},countdown:I,isDisconnected:k}):(0,a.jsxs)("div",{className:"text-center p-8",children:[(0,a.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,a.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"power_off"})}),(0,a.jsx)("h2",{className:"text-xl font-semibold text-white mb-2",children:"Server Disconnected"}),(0,a.jsx)("p",{className:"text-text-muted mb-6",children:"The proxy server has been stopped."}),(0,a.jsx)(p.default,{variant:"secondary",onClick:()=>globalThis.location.reload(),children:"Reload Page"})]})})]})}function w({latestVersion:e,installCmd:t,copied:s,onCopyAndShutdown:r,onCancel:n,countdown:l,isDisconnected:i}){let o=l>0;return(0,a.jsxs)("div",{className:"w-full max-w-lg rounded-xl bg-neutral-900/95 border border-white/10 p-6 text-white",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"flex items-center justify-center size-11 rounded-full bg-amber-500/20 text-amber-400",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"content_copy"})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("h2",{className:"text-lg font-semibold",children:["Update 9Router",e?` to v${e}`:""]}),(0,a.jsx)("p",{className:"text-xs text-white/60",children:i?"Server stopped. Paste the command into a terminal to install.":o?`Command copied. Server will stop in ${l}s...`:"Click the button below to copy the install command and shutdown."})]})]}),(0,a.jsx)("p",{className:"text-sm text-white/80 mb-2",children:"Install command:"}),(0,a.jsx)("div",{className:"w-full px-3 py-2 rounded bg-white/5 mb-4",children:(0,a.jsx)("code",{className:"text-xs font-mono text-amber-400 break-all",children:t})}),(0,a.jsxs)("ol",{className:"text-xs text-white/70 space-y-1 list-decimal list-inside mb-4",children:[(0,a.jsxs)("li",{children:["Click ",(0,a.jsx)("strong",{children:"Copy & Shutdown"})," below."]}),(0,a.jsx)("li",{children:"Paste the command into your terminal and press Enter."}),(0,a.jsxs)("li",{children:["Run ",(0,a.jsx)("code",{className:"px-1 rounded bg-white/10 text-green-400",children:"9router"})," again after install."]})]}),i?(0,a.jsx)(p.default,{variant:"secondary",fullWidth:!0,onClick:()=>globalThis.location.reload(),children:"Reload Page"}):(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(p.default,{variant:"secondary",onClick:n,disabled:o,children:"Cancel"}),(0,a.jsx)(p.default,{variant:"primary",fullWidth:!0,onClick:r,disabled:o,children:s?"✓ Copied — shutting down...":o?`Shutting down in ${l}s`:"Copy & Shutdown"})]})]})}N.propTypes={onClose:l().func},w.propTypes={latestVersion:l().string,installCmd:l().string.isRequired,copied:l().bool,onCopyAndShutdown:l().func.isRequired,onCancel:l().func.isRequired,countdown:l().number,isDisconnected:l().bool}},94230:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(35497),o=s(11059);function d({isOpen:e,provider:t,onSuccess:s,onClose:n}){let[l,c]=(0,r.useState)("loading"),[m,x]=(0,r.useState)(""),[u,p]=(0,r.useState)(null),[h,f]=(0,r.useState)(""),[b,g]=(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{g(null),c("loading");let e=await fetch(`/api/oauth/kiro/social-authorize?provider=${t}`),s=await e.json();if(!e.ok)throw Error(s.error);p(s),x(s.authUrl),c("input"),y.current||(y.current=!0,window.open(s.authUrl,"_blank"))}catch(e){g(e.message),c("error")}})()},[e,t]);let N=async()=>{try{let e;g(null);try{e=new URL(h)}catch(e){throw Error("Invalid callback URL format")}let a=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(!a)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:a,codeVerifier:u.codeVerifier,provider:t})}),l=await n.json();if(!n.ok)throw Error(l.error);c("success"),s?.()}catch(e){g(e.message),c("error")}},w="google"===t?"Google":"GitHub";return(0,a.jsx)(i.aF,{isOpen:e,title:`Connect Kiro via ${w}`,onClose:n,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:["loading"===l&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Initializing..."}),(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["Setting up ",w," authentication"]})]}),"input"===l&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 1: Open this URL in your browser"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.pd,{value:m,readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,a.jsx)(i.$n,{variant:"secondary",icon:"auth_url"===v?"check":"content_copy",onClick:()=>j(m,"auth_url"),children:"Copy"})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 2: Paste the callback URL here"}),(0,a.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"After authorization, copy the full URL from your browser address bar."}),(0,a.jsx)(i.pd,{value:h,onChange:e=>f(e.target.value),placeholder:"kiro://kiro.kiroAgent/authenticate-success?code=...",className:"font-mono text-xs"})]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:N,fullWidth:!0,disabled:!h,children:"Connect"}),(0,a.jsx)(i.$n,{onClick:n,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"success"===l&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.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,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,a.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your Kiro account via ",w," has been connected."]}),(0,a.jsx)(i.$n,{onClick:n,fullWidth:!0,children:"Done"})]}),"error"===l&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.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,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,a.jsx)("p",{className:"text-sm text-red-600 mb-4",children:b}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:()=>c("input"),variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,a.jsx)(i.$n,{onClick:n,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:l().bool.isRequired,provider:l().oneOf(["google","github"]).isRequired,onSuccess:l().func,onClose:l().func.isRequired}},95088:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(35497);let o="https://gitlab.com";function d({isOpen:e,providerInfo:t,onSuccess:s,onClose:n}){let l,[c,m]=(0,r.useState)(null),[x,u]=(0,r.useState)(o),[p,h]=(0,r.useState)(""),[f,b]=(0,r.useState)(""),[g,v]=(0,r.useState)(""),[j,y]=(0,r.useState)(!1),[N,w]=(0,r.useState)(null),[k,C]=(0,r.useState)(!1),[S,O]=(0,r.useState)(null),T=()=>{m(null),u(o),h(""),b(""),v(""),w(null),y(!1),C(!1),O(null),n()},P=async()=>{if(!g.trim())return void w("Personal Access Token is required");y(!0),w(null);try{let e=await fetch("/api/oauth/gitlab/pat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:g.trim(),baseUrl:x.trim()||o})}),t=await e.json();if(!e.ok)throw Error(t.error||"Authentication failed");s?.(),T()}catch(e){w(e.message)}finally{y(!1)}};return e?k&&S?(0,a.jsx)(i.LF,{isOpen:!0,provider:"gitlab",providerInfo:t,oauthMeta:S,onSuccess:()=>{s?.(),T()},onClose:()=>{C(!1),O(null)}}):(0,a.jsx)(i.aF,{isOpen:e,title:"Connect GitLab Duo",onClose:T,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[!c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Choose how to authenticate with GitLab Duo:"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.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,a.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"lock_open"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"OAuth App"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab OAuth application"})]})]}),(0,a.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,a.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"key"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"Personal Access Token"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab PAT with api scope"})]})]})]})]}),"oauth"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Create an OAuth app at"," ",(0,a.jsx)("a",{href:`${x.trim()||o}/-/profile/applications`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Applications"})," ","with redirect URI"," ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:(l=window.location.port||("https:"===window.location.protocol?"443":"80"),`http://localhost:${l}/callback`)})]}),(0,a.jsx)(i.pd,{label:"GitLab Base URL",value:x,onChange:e=>u(e.target.value),placeholder:o}),(0,a.jsx)(i.pd,{label:"Client ID",value:p,onChange:e=>h(e.target.value),placeholder:"Your OAuth application client ID"}),(0,a.jsx)(i.pd,{label:"Client Secret (optional for PKCE)",value:f,onChange:e=>b(e.target.value),placeholder:"Leave empty for public PKCE app"}),N&&(0,a.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:()=>{p.trim()?(w(null),O({baseUrl:x.trim()||o,clientId:p.trim(),clientSecret:f.trim()}),C(!0)):w("Client ID is required")},fullWidth:!0,disabled:!p.trim(),children:"Authorize"}),(0,a.jsx)(i.$n,{onClick:()=>{m(null),w(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"pat"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Create a PAT at"," ",(0,a.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,a.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"api"}),","," ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"read_user"}),", and"," ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"ai_features"}),"."]}),(0,a.jsx)(i.pd,{label:"GitLab Base URL",value:x,onChange:e=>u(e.target.value),placeholder:o}),(0,a.jsx)(i.pd,{label:"Personal Access Token",value:g,onChange:e=>v(e.target.value),placeholder:"glpat-xxxxxxxxxxxxxxxxxxxx",type:"password"}),N&&(0,a.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:P,fullWidth:!0,disabled:!g.trim()||j,loading:j,children:"Connect"}),(0,a.jsx)(i.$n,{onClick:()=>{m(null),w(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})}):null}d.propTypes={isOpen:l().bool.isRequired,providerInfo:l().shape({name:l().string}),onSuccess:l().func,onClose:l().func.isRequired}},96748:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(14051),l=s.n(n),i=s(35497);let o="https://api.openai.com/v1";function d({isOpen:e,onClose:t,onCreated:s,onSaved:n,node:l}){let c=!!l,[m,x]=(0,r.useState)({name:"",prefix:"",baseUrl:o}),[u,p]=(0,r.useState)(!1),[h,f]=(0,r.useState)(""),[b,g]=(0,r.useState)(""),[v,j]=(0,r.useState)(!1),[y,N]=(0,r.useState)(null);(0,r.useEffect)(()=>{e&&(N(null),f(""),g(""),c?x({name:l.name||"",prefix:l.prefix||"",baseUrl:l.baseUrl||o}):x({name:"",prefix:"",baseUrl:o}))},[e,c,l]);let w=async()=>{if(m.name.trim()&&m.prefix.trim()&&m.baseUrl.trim()){p(!0);try{let e=c?`/api/provider-nodes/${l.id}`:"/api/provider-nodes",t=c?"PUT":"POST",a={name:m.name,prefix:m.prefix,baseUrl:m.baseUrl};c||(a.type="custom-embedding");let r=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),i=await r.json();r.ok&&(c?n?.(i.node):s?.(i.node))}catch(e){console.log("Error saving custom embedding node:",e)}finally{p(!1)}}},k=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:b.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{j(!1)}};return(0,a.jsx)(i.aF,{isOpen:e,title:c?"Edit Custom Embedding":"Add Custom Embedding",onClose:t,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(i.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,a.jsx)(i.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,a.jsx)(i.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,a.jsx)(i.pd,{label:"API Key (for Check)",type:"password",value:h,onChange:e=>f(e.target.value)}),(0,a.jsx)(i.pd,{label:"Model ID (for Check)",value:b,onChange:e=>g(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,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(i.$n,{onClick:k,disabled:!h||!b.trim()||v||!m.baseUrl.trim(),variant:"secondary",children:v?"Checking...":"Check"}),(()=>{if(!y)return null;let{valid:e,error:t,dimensions:s}=y;return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Ex,{variant:"success",children:"Valid"}),s&&(0,a.jsxs)("span",{className:"text-sm text-text-muted",children:[s," dims"]})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(i.Ex,{variant:"error",children:"Invalid"}),t&&(0,a.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:w,fullWidth:!0,disabled:!m.name.trim()||!m.prefix.trim()||!m.baseUrl.trim()||u,children:u?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,a.jsx)(i.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:l().bool.isRequired,onClose:l().func.isRequired,onCreated:l().func,onSaved:l().func,node:l().shape({id:l().string,name:l().string,prefix:l().string,baseUrl:l().string})}},97677:(e,t,s)=>{s.d(t,{default:()=>r});var a=s(95155);function r({text:e,children:t,position:s="top",color:n}){let l=n?"":"bg-gray-900";return(0,a.jsxs)("div",{className:"relative inline-flex group/tt",children:[t,(0,a.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"}[s]} z-50 w-max max-w-56 rounded px-2 py-1 text-[11px] leading-snug ${l} text-white opacity-0 group-hover/tt:opacity-100 transition-opacity duration-150 whitespace-normal`,style:n?{backgroundColor:n}:{},children:e})]})}},98542:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155),r=s(31474);function n({checked:e=!1,onChange:t,label:s,description:l,disabled:i=!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,a.jsxs)("div",{className:(0,r.cn)("flex items-center gap-3",i&&"opacity-50 cursor-not-allowed",d),children:[(0,a.jsx)("button",{type:"button",role:"switch","aria-checked":e,disabled:i,onClick:()=>{!i&&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,i&&"cursor-not-allowed"),children:(0,a.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")})}),(s||l)&&(0,a.jsxs)("div",{className:"flex flex-col",children:[s&&(0,a.jsx)("span",{className:"text-sm font-medium text-text-main",children:s}),l&&(0,a.jsx)("span",{className:"text-xs text-text-muted",children:l})]})]})}}}]);