vansrouter 0.91.12 → 0.91.20

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 (1084) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +10 -8
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +3 -3
  5. package/app/.next-cli-build/react-loadable-manifest.json +4 -4
  6. package/app/.next-cli-build/routes-manifest.json +12 -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 +5 -5
  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 +3 -3
  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 +16 -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-fitness/page.js +2 -2
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-fitness/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-fitness/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  79. package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  80. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.rsc +2 -2
  84. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +2 -2
  85. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  86. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  87. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  88. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  89. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +2 -2
  90. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  91. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  92. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  93. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  94. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  95. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  96. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  97. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  98. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  99. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  100. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  101. package/app/.next-cli-build/server/app/api/auth/check/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/check/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +6 -6
  118. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +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/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  124. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  126. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  130. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  132. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  134. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  138. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  142. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +4 -4
  144. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  146. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  150. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  152. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  154. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  182. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  184. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -0
  200. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -0
  201. package/app/.next-cli-build/server/app/api/models/catalog-sync/route_client-reference-manifest.js +1 -0
  202. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  217. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -0
  223. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -0
  224. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route_client-reference-manifest.js +1 -0
  225. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +2 -2
  246. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/providers/[id]/gcp-projects/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/providers/[id]/gcp-projects/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/providers/bulk/route.js +1 -1
  258. package/app/.next-cli-build/server/app/api/providers/bulk/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/[name]/reset/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/[name]/reset/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +2 -2
  270. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/fitness/clear/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/fitness/clear/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  280. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +3 -3
  282. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +3 -3
  284. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/proxy-pools/fitness/clear-all/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/proxy-pools/fitness/clear-all/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/proxy-pools/fitness/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/proxy-pools/fitness/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +3 -3
  292. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  294. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  296. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  298. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  300. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  302. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  304. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  306. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  308. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  314. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  316. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  318. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  320. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  322. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  324. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  328. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +3 -3
  346. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  368. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  382. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  384. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  386. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  388. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  392. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  402. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  406. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  412. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  413. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  414. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  415. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  416. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  417. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  418. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  419. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  420. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  421. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  422. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  424. package/app/.next-cli-build/server/app/callback.html +1 -1
  425. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  426. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  427. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  428. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  429. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  430. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  431. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  432. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  433. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  434. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  435. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  436. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  437. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  438. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  439. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  440. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  441. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  442. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  443. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
  444. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  445. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  446. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  447. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  448. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
  449. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  450. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  451. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  452. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  453. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  454. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  455. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  456. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  457. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  458. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  459. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  460. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  461. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  462. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  463. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
  464. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  465. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  466. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  467. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  468. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
  469. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  470. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  471. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  472. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  473. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  474. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  475. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  476. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  477. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  478. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  479. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  480. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  481. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  482. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  483. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  484. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  485. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  486. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  487. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  488. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  489. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  490. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  491. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  492. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  493. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  494. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  495. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  496. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  497. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  498. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  499. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  500. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  501. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  502. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  503. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  504. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  505. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  506. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  507. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  508. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  509. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  510. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  511. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  512. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  513. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  514. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  515. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  516. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  517. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  518. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  519. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  520. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  521. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  522. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  523. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  524. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.html +1 -1
  525. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.rsc +6 -6
  526. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/!KGRhc2hib2FyZCk/dashboard/proxy-fitness/__PAGE__.segment.rsc +2 -2
  527. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/!KGRhc2hib2FyZCk/dashboard/proxy-fitness.segment.rsc +1 -1
  528. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  529. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  530. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/_full.segment.rsc +6 -6
  531. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/_head.segment.rsc +1 -1
  532. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/_index.segment.rsc +4 -4
  533. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/_tree.segment.rsc +2 -2
  534. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  535. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  536. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  537. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  538. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  539. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  540. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  541. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  542. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  543. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  544. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  545. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  546. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  547. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  548. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  549. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  550. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  551. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  552. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
  553. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  554. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  555. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  556. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  557. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  558. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  559. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  560. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  561. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  562. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  563. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  564. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  565. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  566. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  567. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  568. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  569. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  570. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  571. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  572. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  573. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  574. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  575. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  576. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  577. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  578. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  579. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  580. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  581. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  582. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  583. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  584. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  585. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  586. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  587. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  588. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  589. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  590. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  591. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  592. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  593. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  594. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  595. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  596. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  597. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  598. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  599. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  600. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  601. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  602. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  603. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  604. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  605. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  606. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  607. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  608. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  609. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  610. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  611. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  612. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  613. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  614. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  615. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  616. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  617. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  618. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  619. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  620. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  621. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  622. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  623. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  624. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  625. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  626. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  627. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  628. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  629. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  630. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  631. package/app/.next-cli-build/server/app/landing.html +1 -1
  632. package/app/.next-cli-build/server/app/landing.rsc +4 -4
  633. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  634. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  635. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  636. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  637. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  638. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  639. package/app/.next-cli-build/server/app/login/page.js +2 -2
  640. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  641. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  642. package/app/.next-cli-build/server/app/login.html +1 -1
  643. package/app/.next-cli-build/server/app/login.rsc +5 -5
  644. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  645. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  646. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  647. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  648. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  649. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  650. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +1 -1
  651. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  652. package/app/.next-cli-build/server/app/masuk/page.js +2 -2
  653. package/app/.next-cli-build/server/app/masuk/page.js.nft.json +1 -1
  654. package/app/.next-cli-build/server/app/masuk/page_client-reference-manifest.js +1 -1
  655. package/app/.next-cli-build/server/app-paths-manifest.json +10 -8
  656. package/app/.next-cli-build/server/chunks/1253.js +1 -1
  657. package/app/.next-cli-build/server/chunks/154.js +52 -0
  658. package/app/.next-cli-build/server/chunks/1685.js +1 -1
  659. package/app/.next-cli-build/server/chunks/1725.js +1 -1
  660. package/app/.next-cli-build/server/chunks/2136.js +1 -1
  661. package/app/.next-cli-build/server/chunks/2411.js +1 -0
  662. package/app/.next-cli-build/server/chunks/2445.js +1 -1
  663. package/app/.next-cli-build/server/chunks/2557.js +21 -19
  664. package/app/.next-cli-build/server/chunks/2732.js +1 -0
  665. package/app/.next-cli-build/server/chunks/2764.js +1 -1
  666. package/app/.next-cli-build/server/chunks/3040.js +1 -1
  667. package/app/.next-cli-build/server/chunks/314.js +1 -0
  668. package/app/.next-cli-build/server/chunks/32.js +2 -2
  669. package/app/.next-cli-build/server/chunks/4004.js +2 -2
  670. package/app/.next-cli-build/server/chunks/4105.js +1 -1
  671. package/app/.next-cli-build/server/chunks/4121.js +1 -1
  672. package/app/.next-cli-build/server/chunks/4502.js +8 -8
  673. package/app/.next-cli-build/server/chunks/4539.js +1 -1
  674. package/app/.next-cli-build/server/chunks/4574.js +50 -50
  675. package/app/.next-cli-build/server/chunks/4816.js +1 -1
  676. package/app/.next-cli-build/server/chunks/4836.js +1 -1
  677. package/app/.next-cli-build/server/chunks/5006.js +2 -2
  678. package/app/.next-cli-build/server/chunks/5009.js +1 -1
  679. package/app/.next-cli-build/server/chunks/5050.js +1 -1
  680. package/app/.next-cli-build/server/chunks/5198.js +1 -1
  681. package/app/.next-cli-build/server/chunks/5302.js +1 -1
  682. package/app/.next-cli-build/server/chunks/5577.js +1 -1
  683. package/app/.next-cli-build/server/chunks/5598.js +1 -1
  684. package/app/.next-cli-build/server/chunks/6385.js +1 -1
  685. package/app/.next-cli-build/server/chunks/6723.js +1 -1
  686. package/app/.next-cli-build/server/chunks/6793.js +1 -0
  687. package/app/.next-cli-build/server/chunks/6807.js +1 -0
  688. package/app/.next-cli-build/server/chunks/7104.js +1 -1
  689. package/app/.next-cli-build/server/chunks/7425.js +1 -0
  690. package/app/.next-cli-build/server/chunks/7546.js +1 -1
  691. package/app/.next-cli-build/server/chunks/7863.js +1 -1
  692. package/app/.next-cli-build/server/chunks/7938.js +1 -1
  693. package/app/.next-cli-build/server/chunks/7950.js +1 -1
  694. package/app/.next-cli-build/server/chunks/8356.js +1 -1
  695. package/app/.next-cli-build/server/chunks/8413.js +1 -0
  696. package/app/.next-cli-build/server/chunks/8691.js +1 -1
  697. package/app/.next-cli-build/server/chunks/8695.js +1 -0
  698. package/app/.next-cli-build/server/chunks/88.js +1 -1
  699. package/app/.next-cli-build/server/chunks/8941.js +1 -1
  700. package/app/.next-cli-build/server/chunks/912.js +1 -1
  701. package/app/.next-cli-build/server/chunks/9162.js +1 -0
  702. package/app/.next-cli-build/server/chunks/9784.js +1 -1
  703. package/app/.next-cli-build/server/chunks/9787.js +1 -1
  704. package/app/.next-cli-build/server/chunks/9974.js +1 -0
  705. package/app/.next-cli-build/server/chunks/9984.js +1 -1
  706. package/app/.next-cli-build/server/instrumentation.js +1 -1
  707. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  708. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  709. package/app/.next-cli-build/server/middleware.js +5 -5
  710. package/app/.next-cli-build/server/pages/404.html +1 -1
  711. package/app/.next-cli-build/server/pages/500.html +1 -1
  712. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  713. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  714. package/app/.next-cli-build/static/chunks/2884.9a2db949e26c550b.js +1 -0
  715. package/app/.next-cli-build/static/chunks/3257.44e07ea94f2f69cb.js +1 -0
  716. package/app/.next-cli-build/static/chunks/4385-687393d85e60d52a.js +1 -0
  717. package/app/.next-cli-build/static/chunks/5338-bca3ce9343d90c4f.js +52 -0
  718. package/app/.next-cli-build/static/chunks/5479-e0d8f21aa6ccb873.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-80cf14df15cbec42.js → page-7c93b16b43de2c8f.js} +1 -1
  720. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-3123087972ae5478.js → page-07eea31f525f94ed.js} +9 -9
  721. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-f4a6a4b8fa9893ff.js → page-01af83ff8590888e.js} +1 -1
  722. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-66b7153f953ac668.js +27 -0
  723. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-bcd99ea45b8e3f0b.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-fce8c9b1ef1963db.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-540d37c2987cd9a7.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/_global-error/page-17aa0c4536dd4f4c.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/auth/check/route-17aa0c4536dd4f4c.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-17aa0c4536dd4f4c.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-17aa0c4536dd4f4c.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-17aa0c4536dd4f4c.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-17aa0c4536dd4f4c.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-17aa0c4536dd4f4c.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-17aa0c4536dd4f4c.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-17aa0c4536dd4f4c.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-17aa0c4536dd4f4c.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-17aa0c4536dd4f4c.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-17aa0c4536dd4f4c.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-17aa0c4536dd4f4c.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-17aa0c4536dd4f4c.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-17aa0c4536dd4f4c.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-17aa0c4536dd4f4c.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-17aa0c4536dd4f4c.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-17aa0c4536dd4f4c.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-17aa0c4536dd4f4c.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-17aa0c4536dd4f4c.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-17aa0c4536dd4f4c.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-17aa0c4536dd4f4c.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-17aa0c4536dd4f4c.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-17aa0c4536dd4f4c.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-17aa0c4536dd4f4c.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-17aa0c4536dd4f4c.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-17aa0c4536dd4f4c.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-17aa0c4536dd4f4c.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-17aa0c4536dd4f4c.js +1 -0
  755. package/app/.next-cli-build/static/chunks/app/api/combos/route-17aa0c4536dd4f4c.js +1 -0
  756. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-17aa0c4536dd4f4c.js +1 -0
  757. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-17aa0c4536dd4f4c.js +1 -0
  758. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-17aa0c4536dd4f4c.js +1 -0
  759. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-17aa0c4536dd4f4c.js +1 -0
  760. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-17aa0c4536dd4f4c.js +1 -0
  761. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-17aa0c4536dd4f4c.js +1 -0
  762. package/app/.next-cli-build/static/chunks/app/api/health/route-17aa0c4536dd4f4c.js +1 -0
  763. package/app/.next-cli-build/static/chunks/app/api/init/route-17aa0c4536dd4f4c.js +1 -0
  764. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-17aa0c4536dd4f4c.js +1 -0
  765. package/app/.next-cli-build/static/chunks/app/api/keys/route-17aa0c4536dd4f4c.js +1 -0
  766. package/app/.next-cli-build/static/chunks/app/api/locale/route-17aa0c4536dd4f4c.js +1 -0
  767. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-17aa0c4536dd4f4c.js +1 -0
  768. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-17aa0c4536dd4f4c.js +1 -0
  769. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-17aa0c4536dd4f4c.js +1 -0
  770. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-17aa0c4536dd4f4c.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-17aa0c4536dd4f4c.js +1 -0
  772. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-17aa0c4536dd4f4c.js +1 -0
  773. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-17aa0c4536dd4f4c.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-17aa0c4536dd4f4c.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-17aa0c4536dd4f4c.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-17aa0c4536dd4f4c.js +1 -0
  777. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-17aa0c4536dd4f4c.js +1 -0
  778. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-17aa0c4536dd4f4c.js +1 -0
  779. package/app/.next-cli-build/static/chunks/app/api/models/route-17aa0c4536dd4f4c.js +1 -0
  780. package/app/.next-cli-build/static/chunks/app/api/models/test/route-17aa0c4536dd4f4c.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-17aa0c4536dd4f4c.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-17aa0c4536dd4f4c.js +1 -0
  783. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-17aa0c4536dd4f4c.js +1 -0
  784. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-17aa0c4536dd4f4c.js +1 -0
  785. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-17aa0c4536dd4f4c.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-17aa0c4536dd4f4c.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-17aa0c4536dd4f4c.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-17aa0c4536dd4f4c.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-17aa0c4536dd4f4c.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-17aa0c4536dd4f4c.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-17aa0c4536dd4f4c.js +1 -0
  792. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-17aa0c4536dd4f4c.js +1 -0
  793. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-17aa0c4536dd4f4c.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-17aa0c4536dd4f4c.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/api/pricing/route-17aa0c4536dd4f4c.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-17aa0c4536dd4f4c.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-17aa0c4536dd4f4c.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-17aa0c4536dd4f4c.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/gcp-projects/route-17aa0c4536dd4f4c.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-17aa0c4536dd4f4c.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-17aa0c4536dd4f4c.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-17aa0c4536dd4f4c.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-17aa0c4536dd4f4c.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/providers/bulk/route-17aa0c4536dd4f4c.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/[name]/reset/route-17aa0c4536dd4f4c.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/route-17aa0c4536dd4f4c.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-17aa0c4536dd4f4c.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-17aa0c4536dd4f4c.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/providers/route-17aa0c4536dd4f4c.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-17aa0c4536dd4f4c.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-17aa0c4536dd4f4c.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-17aa0c4536dd4f4c.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/fitness/clear/route-17aa0c4536dd4f4c.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-17aa0c4536dd4f4c.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-17aa0c4536dd4f4c.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-17aa0c4536dd4f4c.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-17aa0c4536dd4f4c.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/fitness/clear-all/route-17aa0c4536dd4f4c.js +1 -0
  819. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/fitness/route-17aa0c4536dd4f4c.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-17aa0c4536dd4f4c.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-17aa0c4536dd4f4c.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-17aa0c4536dd4f4c.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-17aa0c4536dd4f4c.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-17aa0c4536dd4f4c.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-17aa0c4536dd4f4c.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-17aa0c4536dd4f4c.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-17aa0c4536dd4f4c.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-17aa0c4536dd4f4c.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-17aa0c4536dd4f4c.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-17aa0c4536dd4f4c.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-17aa0c4536dd4f4c.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-17aa0c4536dd4f4c.js +1 -0
  833. package/app/.next-cli-build/static/chunks/app/api/settings/route-17aa0c4536dd4f4c.js +1 -0
  834. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-17aa0c4536dd4f4c.js +1 -0
  835. package/app/.next-cli-build/static/chunks/app/api/tags/route-17aa0c4536dd4f4c.js +1 -0
  836. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-17aa0c4536dd4f4c.js +1 -0
  837. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-17aa0c4536dd4f4c.js +1 -0
  838. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-17aa0c4536dd4f4c.js +1 -0
  839. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-17aa0c4536dd4f4c.js +1 -0
  840. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-17aa0c4536dd4f4c.js +1 -0
  841. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-17aa0c4536dd4f4c.js +1 -0
  842. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-17aa0c4536dd4f4c.js +1 -0
  843. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-17aa0c4536dd4f4c.js +1 -0
  844. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-17aa0c4536dd4f4c.js +1 -0
  845. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-17aa0c4536dd4f4c.js +1 -0
  846. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-17aa0c4536dd4f4c.js +1 -0
  847. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-17aa0c4536dd4f4c.js +1 -0
  848. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-17aa0c4536dd4f4c.js +1 -0
  849. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-17aa0c4536dd4f4c.js +1 -0
  850. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-17aa0c4536dd4f4c.js +1 -0
  851. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-17aa0c4536dd4f4c.js +1 -0
  852. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-17aa0c4536dd4f4c.js +1 -0
  853. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-17aa0c4536dd4f4c.js +1 -0
  854. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-17aa0c4536dd4f4c.js +1 -0
  855. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-17aa0c4536dd4f4c.js +1 -0
  856. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-17aa0c4536dd4f4c.js +1 -0
  857. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-17aa0c4536dd4f4c.js +1 -0
  858. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-17aa0c4536dd4f4c.js +1 -0
  859. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-17aa0c4536dd4f4c.js +1 -0
  860. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-17aa0c4536dd4f4c.js +1 -0
  861. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-17aa0c4536dd4f4c.js +1 -0
  862. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-17aa0c4536dd4f4c.js +1 -0
  863. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-17aa0c4536dd4f4c.js +1 -0
  864. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-17aa0c4536dd4f4c.js +1 -0
  865. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-17aa0c4536dd4f4c.js +1 -0
  866. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-17aa0c4536dd4f4c.js +1 -0
  867. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-17aa0c4536dd4f4c.js +1 -0
  868. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-17aa0c4536dd4f4c.js +1 -0
  869. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-17aa0c4536dd4f4c.js +1 -0
  870. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-17aa0c4536dd4f4c.js +1 -0
  871. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-17aa0c4536dd4f4c.js +1 -0
  872. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-17aa0c4536dd4f4c.js +1 -0
  873. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-17aa0c4536dd4f4c.js +1 -0
  874. package/app/.next-cli-build/static/chunks/app/api/v1/route-17aa0c4536dd4f4c.js +1 -0
  875. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-17aa0c4536dd4f4c.js +1 -0
  876. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-17aa0c4536dd4f4c.js +1 -0
  877. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-17aa0c4536dd4f4c.js +1 -0
  878. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-17aa0c4536dd4f4c.js +1 -0
  879. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-17aa0c4536dd4f4c.js +1 -0
  880. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-17aa0c4536dd4f4c.js +1 -0
  881. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-17aa0c4536dd4f4c.js +1 -0
  882. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-17aa0c4536dd4f4c.js +1 -0
  883. package/app/.next-cli-build/static/chunks/app/api/version/route-17aa0c4536dd4f4c.js +1 -0
  884. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-17aa0c4536dd4f4c.js +1 -0
  885. package/app/.next-cli-build/static/chunks/app/api/version/update/route-17aa0c4536dd4f4c.js +1 -0
  886. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-17aa0c4536dd4f4c.js +1 -0
  887. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-17aa0c4536dd4f4c.js +1 -0
  888. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-17aa0c4536dd4f4c.js +1 -0
  889. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-17aa0c4536dd4f4c.js +1 -0
  890. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-17aa0c4536dd4f4c.js +1 -0
  891. package/app/.next-cli-build/static/chunks/{webpack-dc454309f449dc45.js → webpack-25f21f01d9ae668b.js} +1 -1
  892. package/app/.next-cli-build/static/css/e40cf3e80ed8b48b.css +1 -0
  893. package/app/.next-cli-build/static/wgsSmVaMOGS9soPOZ4iuB/_buildManifest.js +1 -0
  894. package/app/package.json +1 -1
  895. package/app/public/i18n/literals/pt-BR.json +1102 -165
  896. package/app/public/providers/xquik.png +0 -0
  897. package/app/src/lib/db/adapters/betterSqliteAdapter.js +3 -3
  898. package/app/src/mitm/server.js +24 -24
  899. package/hooks/sqliteRuntime.js +21 -4
  900. package/package.json +1 -1
  901. package/app/.next-cli-build/server/chunks/1586.js +0 -1
  902. package/app/.next-cli-build/server/chunks/3712.js +0 -1
  903. package/app/.next-cli-build/server/chunks/4132.js +0 -49
  904. package/app/.next-cli-build/server/chunks/622.js +0 -1
  905. package/app/.next-cli-build/server/chunks/690.js +0 -1
  906. package/app/.next-cli-build/server/chunks/7834.js +0 -1
  907. package/app/.next-cli-build/server/chunks/7916.js +0 -1
  908. package/app/.next-cli-build/server/chunks/8772.js +0 -1
  909. package/app/.next-cli-build/server/chunks/9764.js +0 -1
  910. package/app/.next-cli-build/static/6De8EhJ6VYXHcVuUd7JGb/_buildManifest.js +0 -1
  911. package/app/.next-cli-build/static/chunks/1731-5ec6c465d6f292e5.js +0 -49
  912. package/app/.next-cli-build/static/chunks/2884.d12d4a70aee98d00.js +0 -1
  913. package/app/.next-cli-build/static/chunks/3257.dd4116c5ba64f6eb.js +0 -1
  914. package/app/.next-cli-build/static/chunks/4385-55ebf859fc7fb05e.js +0 -1
  915. package/app/.next-cli-build/static/chunks/5479-5da1d420293d70be.js +0 -1
  916. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-2dc2df8f84f7e01b.js +0 -14
  917. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-8cd0eefb25603f1e.js +0 -1
  918. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-70ef616f46beff22.js +0 -1
  919. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-c82d74f5a3484fcd.js +0 -1
  920. package/app/.next-cli-build/static/chunks/app/_global-error/page-0cb367716063bf7e.js +0 -1
  921. package/app/.next-cli-build/static/chunks/app/api/auth/check/route-0cb367716063bf7e.js +0 -1
  922. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-0cb367716063bf7e.js +0 -1
  923. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-0cb367716063bf7e.js +0 -1
  924. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-0cb367716063bf7e.js +0 -1
  925. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-0cb367716063bf7e.js +0 -1
  926. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-0cb367716063bf7e.js +0 -1
  927. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-0cb367716063bf7e.js +0 -1
  928. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-0cb367716063bf7e.js +0 -1
  929. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-0cb367716063bf7e.js +0 -1
  930. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-0cb367716063bf7e.js +0 -1
  931. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-0cb367716063bf7e.js +0 -1
  932. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-0cb367716063bf7e.js +0 -1
  933. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-0cb367716063bf7e.js +0 -1
  934. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-0cb367716063bf7e.js +0 -1
  935. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-0cb367716063bf7e.js +0 -1
  936. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-0cb367716063bf7e.js +0 -1
  937. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-0cb367716063bf7e.js +0 -1
  938. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-0cb367716063bf7e.js +0 -1
  939. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-0cb367716063bf7e.js +0 -1
  940. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-0cb367716063bf7e.js +0 -1
  941. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-0cb367716063bf7e.js +0 -1
  942. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-0cb367716063bf7e.js +0 -1
  943. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-0cb367716063bf7e.js +0 -1
  944. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-0cb367716063bf7e.js +0 -1
  945. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-0cb367716063bf7e.js +0 -1
  946. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-0cb367716063bf7e.js +0 -1
  947. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-0cb367716063bf7e.js +0 -1
  948. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-0cb367716063bf7e.js +0 -1
  949. package/app/.next-cli-build/static/chunks/app/api/combos/route-0cb367716063bf7e.js +0 -1
  950. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-0cb367716063bf7e.js +0 -1
  951. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-0cb367716063bf7e.js +0 -1
  952. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-0cb367716063bf7e.js +0 -1
  953. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-0cb367716063bf7e.js +0 -1
  954. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-0cb367716063bf7e.js +0 -1
  955. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-0cb367716063bf7e.js +0 -1
  956. package/app/.next-cli-build/static/chunks/app/api/health/route-0cb367716063bf7e.js +0 -1
  957. package/app/.next-cli-build/static/chunks/app/api/init/route-0cb367716063bf7e.js +0 -1
  958. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-0cb367716063bf7e.js +0 -1
  959. package/app/.next-cli-build/static/chunks/app/api/keys/route-0cb367716063bf7e.js +0 -1
  960. package/app/.next-cli-build/static/chunks/app/api/locale/route-0cb367716063bf7e.js +0 -1
  961. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-0cb367716063bf7e.js +0 -1
  962. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-0cb367716063bf7e.js +0 -1
  963. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-0cb367716063bf7e.js +0 -1
  964. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-0cb367716063bf7e.js +0 -1
  965. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-0cb367716063bf7e.js +0 -1
  966. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-0cb367716063bf7e.js +0 -1
  967. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-0cb367716063bf7e.js +0 -1
  968. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-0cb367716063bf7e.js +0 -1
  969. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-0cb367716063bf7e.js +0 -1
  970. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-0cb367716063bf7e.js +0 -1
  971. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-0cb367716063bf7e.js +0 -1
  972. package/app/.next-cli-build/static/chunks/app/api/models/route-0cb367716063bf7e.js +0 -1
  973. package/app/.next-cli-build/static/chunks/app/api/models/test/route-0cb367716063bf7e.js +0 -1
  974. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-0cb367716063bf7e.js +0 -1
  975. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-0cb367716063bf7e.js +0 -1
  976. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-0cb367716063bf7e.js +0 -1
  977. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-0cb367716063bf7e.js +0 -1
  978. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-0cb367716063bf7e.js +0 -1
  979. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-0cb367716063bf7e.js +0 -1
  980. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-0cb367716063bf7e.js +0 -1
  981. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-0cb367716063bf7e.js +0 -1
  982. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-0cb367716063bf7e.js +0 -1
  983. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-0cb367716063bf7e.js +0 -1
  984. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-0cb367716063bf7e.js +0 -1
  985. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-0cb367716063bf7e.js +0 -1
  986. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-0cb367716063bf7e.js +0 -1
  987. package/app/.next-cli-build/static/chunks/app/api/pricing/route-0cb367716063bf7e.js +0 -1
  988. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-0cb367716063bf7e.js +0 -1
  989. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-0cb367716063bf7e.js +0 -1
  990. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-0cb367716063bf7e.js +0 -1
  991. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/gcp-projects/route-0cb367716063bf7e.js +0 -1
  992. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-0cb367716063bf7e.js +0 -1
  993. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-0cb367716063bf7e.js +0 -1
  994. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-0cb367716063bf7e.js +0 -1
  995. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-0cb367716063bf7e.js +0 -1
  996. package/app/.next-cli-build/static/chunks/app/api/providers/bulk/route-0cb367716063bf7e.js +0 -1
  997. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/[name]/reset/route-0cb367716063bf7e.js +0 -1
  998. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/route-0cb367716063bf7e.js +0 -1
  999. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-0cb367716063bf7e.js +0 -1
  1000. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-0cb367716063bf7e.js +0 -1
  1001. package/app/.next-cli-build/static/chunks/app/api/providers/route-0cb367716063bf7e.js +0 -1
  1002. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-0cb367716063bf7e.js +0 -1
  1003. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-0cb367716063bf7e.js +0 -1
  1004. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-0cb367716063bf7e.js +0 -1
  1005. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/fitness/clear/route-0cb367716063bf7e.js +0 -1
  1006. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-0cb367716063bf7e.js +0 -1
  1007. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-0cb367716063bf7e.js +0 -1
  1008. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-0cb367716063bf7e.js +0 -1
  1009. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-0cb367716063bf7e.js +0 -1
  1010. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/fitness/clear-all/route-0cb367716063bf7e.js +0 -1
  1011. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/fitness/route-0cb367716063bf7e.js +0 -1
  1012. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-0cb367716063bf7e.js +0 -1
  1013. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-0cb367716063bf7e.js +0 -1
  1014. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-0cb367716063bf7e.js +0 -1
  1015. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-0cb367716063bf7e.js +0 -1
  1016. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-0cb367716063bf7e.js +0 -1
  1017. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-0cb367716063bf7e.js +0 -1
  1018. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-0cb367716063bf7e.js +0 -1
  1019. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-0cb367716063bf7e.js +0 -1
  1020. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-0cb367716063bf7e.js +0 -1
  1021. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-0cb367716063bf7e.js +0 -1
  1022. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-0cb367716063bf7e.js +0 -1
  1023. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-0cb367716063bf7e.js +0 -1
  1024. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-0cb367716063bf7e.js +0 -1
  1025. package/app/.next-cli-build/static/chunks/app/api/settings/route-0cb367716063bf7e.js +0 -1
  1026. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-0cb367716063bf7e.js +0 -1
  1027. package/app/.next-cli-build/static/chunks/app/api/tags/route-0cb367716063bf7e.js +0 -1
  1028. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-0cb367716063bf7e.js +0 -1
  1029. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-0cb367716063bf7e.js +0 -1
  1030. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-0cb367716063bf7e.js +0 -1
  1031. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-0cb367716063bf7e.js +0 -1
  1032. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-0cb367716063bf7e.js +0 -1
  1033. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-0cb367716063bf7e.js +0 -1
  1034. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-0cb367716063bf7e.js +0 -1
  1035. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-0cb367716063bf7e.js +0 -1
  1036. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-0cb367716063bf7e.js +0 -1
  1037. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-0cb367716063bf7e.js +0 -1
  1038. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-0cb367716063bf7e.js +0 -1
  1039. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-0cb367716063bf7e.js +0 -1
  1040. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-0cb367716063bf7e.js +0 -1
  1041. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-0cb367716063bf7e.js +0 -1
  1042. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-0cb367716063bf7e.js +0 -1
  1043. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-0cb367716063bf7e.js +0 -1
  1044. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-0cb367716063bf7e.js +0 -1
  1045. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-0cb367716063bf7e.js +0 -1
  1046. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-0cb367716063bf7e.js +0 -1
  1047. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-0cb367716063bf7e.js +0 -1
  1048. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-0cb367716063bf7e.js +0 -1
  1049. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-0cb367716063bf7e.js +0 -1
  1050. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-0cb367716063bf7e.js +0 -1
  1051. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-0cb367716063bf7e.js +0 -1
  1052. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-0cb367716063bf7e.js +0 -1
  1053. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-0cb367716063bf7e.js +0 -1
  1054. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-0cb367716063bf7e.js +0 -1
  1055. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-0cb367716063bf7e.js +0 -1
  1056. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-0cb367716063bf7e.js +0 -1
  1057. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-0cb367716063bf7e.js +0 -1
  1058. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-0cb367716063bf7e.js +0 -1
  1059. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-0cb367716063bf7e.js +0 -1
  1060. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-0cb367716063bf7e.js +0 -1
  1061. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-0cb367716063bf7e.js +0 -1
  1062. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-0cb367716063bf7e.js +0 -1
  1063. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-0cb367716063bf7e.js +0 -1
  1064. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-0cb367716063bf7e.js +0 -1
  1065. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-0cb367716063bf7e.js +0 -1
  1066. package/app/.next-cli-build/static/chunks/app/api/v1/route-0cb367716063bf7e.js +0 -1
  1067. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-0cb367716063bf7e.js +0 -1
  1068. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-0cb367716063bf7e.js +0 -1
  1069. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-0cb367716063bf7e.js +0 -1
  1070. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-0cb367716063bf7e.js +0 -1
  1071. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-0cb367716063bf7e.js +0 -1
  1072. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-0cb367716063bf7e.js +0 -1
  1073. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-0cb367716063bf7e.js +0 -1
  1074. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-0cb367716063bf7e.js +0 -1
  1075. package/app/.next-cli-build/static/chunks/app/api/version/route-0cb367716063bf7e.js +0 -1
  1076. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-0cb367716063bf7e.js +0 -1
  1077. package/app/.next-cli-build/static/chunks/app/api/version/update/route-0cb367716063bf7e.js +0 -1
  1078. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-0cb367716063bf7e.js +0 -1
  1079. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-0cb367716063bf7e.js +0 -1
  1080. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-0cb367716063bf7e.js +0 -1
  1081. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-0cb367716063bf7e.js +0 -1
  1082. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-0cb367716063bf7e.js +0 -1
  1083. package/app/.next-cli-build/static/css/8bac722be10dd7d0.css +0 -1
  1084. /package/app/.next-cli-build/static/{6De8EhJ6VYXHcVuUd7JGb → wgsSmVaMOGS9soPOZ4iuB}/_ssgManifest.js +0 -0
@@ -1,14 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2134],{6:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>J});var s=a(15102),i=a(82030),l=a(93278),r=a(93885),o=a.n(r);a(37837),a(19965);var n=a(31704),d=a(92940),c=a(31038),m=a(55223),p=a(58788),x=a(47236);a(5477);let u=["none","low","medium","high"],h=["none","thinking"],f=["none","low","medium","high","max"],g={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":f,"claude-budget":["none","low","medium","high","xhigh","max"],"gemini-level":["minimal","low","medium","high"],"gemini-budget":u,zai:h,qwen:u,kimi:f,deepseek:["none","high","max"],minimax:h,hunyuan:u,step:u},y=["none","minimal","low","medium","high","xhigh","max"],b=[{provider:"codex",pattern:"*gpt-5.6-sol*",levels:y},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:y},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:y},{pattern:"*gpt-5.6-sol*",levels:["none","minimal","low","medium","high","xhigh","max"]},{pattern:"*claude*opus-5*",levels:f},{pattern:"*codex*",levels:["low","medium","high","xhigh"]}];function v(e,t){if("kiro"===e&&null===function(e){if("string"!=typeof e)return null;let t=e.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(t))return"reasoning";if(!t.includes("claude"))return null;let a=t.match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);if(!a)return null;let[,s,i]=a,l=Number(s),r=void 0===i?null:Number(i);return l<4||4===l&&(null===r||r<=5||null!==r&&r>=1e3)?null:"output_config"}(t))return null;let a=(0,p.nl)(e,t);if(!a.reasoning)return null;let s=b.find(a=>(!a.provider||a.provider===e)&&(0,x.gH)(a.pattern,t)),i=s?.levels||g[a.thinkingFormat]||u;return!1===a.thinkingCanDisable&&(i=i.filter(e=>"none"!==e)),i}var j=a(21577),w=a(85479),k=a(20264);let N=new Map;async function S(e){if(!e?.url||!e?.type)return[];let t=N.get(e.url);if(t&&Date.now()<t.expiresAt)return t.data;try{let t=new URLSearchParams({url:e.url,type:e.type}),a=await fetch(`/api/providers/suggested-models?${t}`);if(!a.ok)return[];let s=(await a.json()).data??[];return N.set(e.url,{data:s,expiresAt:Date.now()+6e5}),s}catch{return[]}}function C({customModels:e=[],modelAliases:t={},providerAlias:a,builtInModels:s=[],type:i="llm",includeLegacyAliases:l=!0}){let r=new Set(s.map(e=>e.id)),o=new Set,n=[];for(let t of e){if(!t?.id||t.providerAlias!==a)continue;let e=t?.kind||t?.type||"llm";if(i&&e!==i||r.has(t.id))continue;let s=`${a}/${t.id}`;o.has(s)||(o.add(s),n.push({id:t.id,name:t.name||t.id,fullModel:s,source:"custom",type:e}))}if(!l)return n;let d=`${a}/`;for(let[e,a]of Object.entries(t||{})){if("string"!=typeof a||!a.startsWith(d))continue;let t=a.slice(d.length);!t||r.has(t)||o.has(a)||(o.add(a),n.push({id:t,alias:e,fullModel:a,source:"legacyAlias",type:i||"llm"}))}return n}function A({model:e,fullModel:t,alias:a,copied:i,onCopy:l,testStatus:r,isCustom:o,isFree:n,onDeleteAlias:c,onTest:m,isTesting:p,onDisable:x,caps:u}){let h="ok"===r?"#22c55e":"error"===r?"#ef4444":void 0;return(0,s.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===r?"border-green-500/40":"error"===r?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,s.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:h?{color:h}:void 0,children:"ok"===r?"check_circle":"error"===r?"cancel":"smart_toy"}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,s.jsx)("code",{className:"max-w-[72vw] truncate rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:t}),(0,s.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[e.name&&(0,s.jsx)("span",{className:"truncate text-[9px] italic text-text-muted/70",children:e.name}),(0,s.jsx)(d.CapacityBadges,{caps:u,colorOverride:"text-text-muted/70",size:12})]})]}),m&&(0,s.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,s.jsx)("button",{onClick:m,disabled:p,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${p?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:p?{animation:"spin 1s linear infinite"}:void 0,children:p?"progress_activity":"science"})}),(0,s.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:p?"Testing...":"Test"})]}),(0,s.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,s.jsx)("button",{onClick:()=>l(t,`model-${e.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:i===`model-${e.id}`?"check":"content_copy"})}),(0,s.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:i===`model-${e.id}`?"Copied!":"Copy"})]}),o?(0,s.jsx)("button",{onClick:c,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):x?(0,s.jsx)("button",{onClick:x,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function T({modelId:e,fullModel:t,copied:a,onCopy:i,onDeleteAlias:l,onTest:r,testStatus:o,isTesting:n}){let d="ok"===o?"#22c55e":"error"===o?"#ef4444":void 0;return(0,s.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===o?"border-green-500/40":"error"===o?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:d?{color:d}:void 0,children:"ok"===o?"check_circle":"error"===o?"cancel":"smart_toy"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-medium truncate",children:e}),(0,s.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,s.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:t}),(0,s.jsxs)("div",{className:"relative group/btn",children:[(0,s.jsx)("button",{onClick:()=>i(t,`model-${e}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:a===`model-${e}`?"check":"content_copy"})}),(0,s.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:a===`model-${e}`?"Copied!":"Copy"})]}),r&&(0,s.jsxs)("div",{className:"relative group/btn",children:[(0,s.jsx)("button",{onClick:r,disabled:n,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:n?{animation:"spin 1s linear infinite"}:void 0,children:n?"progress_activity":"science"})}),(0,s.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:n?"Testing...":"Test"})]})]})]}),(0,s.jsx)("button",{onClick:l,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function I({providerStorageAlias:e,providerDisplayAlias:t,modelAliases:a,customModels:l,copied:r,onCopy:o,onDeleteAlias:n,onAddCustomModel:c,onDeleteCustomModel:m,connections:p,isAnthropic:x}){let[u,h]=(0,i.useState)(""),[f,g]=(0,i.useState)(!1),[y,b]=(0,i.useState)(!1),[v,j]=(0,i.useState)(null),[w,k]=(0,i.useState)({}),N=async t=>{if(!v){j(t);try{let a=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${e}/${t}`})}),s=await a.json();k(e=>({...e,[t]:s.ok?"ok":"error"}))}catch{k(e=>({...e,[t]:"error"}))}finally{j(null)}}},S=C({customModels:l,modelAliases:a,providerAlias:e,type:"llm"}),A=async()=>{if(!u.trim()||f)return;let e=u.trim();if(S.some(t=>t.id===e))return void alert("Model already exists for this provider.");g(!0);try{await c(e),h("")}catch(e){console.log("Error adding model:",e)}finally{g(!1)}},P=async()=>{if(y)return;let e=p.find(e=>!1!==e.isActive);if(e){b(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),a=await t.json();if(!t.ok)return void alert(a.error||"Failed to import models");let s=a.models||[];if(0===s.length)return void alert("No models returned from /models.");let i=0;for(let e of s){let t=e.id||e.name||e.model;t&&(S.some(e=>e.id===t)||(await c(t),i+=1))}0===i&&alert("No new models were added.")}catch(e){console.log("Error importing models:",e)}finally{b(!1)}}},$=p.some(e=>!1!==e.isActive);return(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",x?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,s.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,s.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,s.jsx)("input",{id:"new-compatible-model-input",type:"text",value:u,onChange:e=>h(e.target.value),onKeyDown:e=>"Enter"===e.key&&A(),placeholder:x?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})]}),(0,s.jsx)(d.Button,{size:"sm",icon:"add",onClick:A,disabled:!u.trim()||f,children:f?"Adding...":"Add"}),(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"download",onClick:P,disabled:!$||y,children:y?"Importing...":"Import from /models"})]}),!$&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),S.length>0&&(0,s.jsx)("div",{className:"flex flex-col gap-3",children:S.map(({id:a,alias:i,source:l})=>(0,s.jsx)(T,{modelId:a,fullModel:`${t}/${a}`,copied:r,onCopy:o,onDeleteAlias:()=>"custom"===l?m(a):n(i),onTest:p.length>0?()=>N(a):void 0,testStatus:w[a],isTesting:v===a},`${l}-${e}/${a}`))})]})}var P=a(21863);function $({until:e}){let[t,a]=(0,i.useState)("");return((0,i.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime()-Date.now();if(t<=0)return void a("");let s=Math.floor(t/1e3);if(s<60)a(`${s}s`);else if(s<3600)a(`${Math.floor(s/60)}m ${s%60}s`);else{let e=Math.floor(s/3600),t=Math.floor(s%3600/60);a(`${e}h ${t}m`)}};t();let s=setInterval(t,1e3);return()=>clearInterval(s)},[e]),t)?(0,s.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",t]}):null}function E({connection:e,proxyPools:t,isOAuth:a,isFirst:l,isLast:r,onMoveUp:o,onMoveDown:n,onToggleActive:c,onUpdateProxy:m,onEdit:p,onDelete:x,oneByOneStatus:u=null,autoPing:h=null,modelAssignmentOptions:f=null,onModelAssignmentChange:g=null,strictModelAssignment:y=!1}){let[b,v]=(0,i.useState)(!1),[j,w]=(0,i.useState)(!1),k=(0,i.useRef)(null),N=new Map((t||[]).map(e=>[e.id,e])),S=e.providerSpecificData?.proxyPoolIds||(e.providerSpecificData?.proxyPoolId?[e.providerSpecificData.proxyPoolId]:[]),C=e.providerSpecificData?.proxyRotationStrategy||"none",A=S[0]||e.providerSpecificData?.proxyPoolId||null,T=A?N.get(A):null,I=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,O=!!A||I,D=S.length>1?`${S.length} pools (${C})`:T?`Pool: ${T.name}`:A?`Pool: ${A} (inactive/missing)`:I?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",_=h?.provider==="codex"?"Auto-starts the next 5h Codex window after reset by sending a tiny gpt-5.5 request. Consumes a small amount of quota.":"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",U="";if(T?.proxyUrl||e.providerSpecificData?.connectionProxyUrl){let t=T?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;try{let e=new URL(t);U=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{U=t}}let z=T?.noProxy||e.providerSpecificData?.connectionNoProxy||"",M="default";T?.isActive===!0?M="success":(A||I)&&(M="error"),(0,i.useEffect)(()=>{if(!b)return;let e=e=>{k.current&&!k.current.contains(e.target)&&v(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[b]);let B=async e=>{w(!0);try{"__none__"===e?await m(null):await m(e),v(!1)}finally{w(!1)}},R=async(e,t)=>{let a=t.filter(e=>N.get(e)?.isActive===!0);if(a.length){w(!0);try{await m({proxyPoolIds:a,proxyRotationStrategy:e}),v(!1)}finally{w(!1)}}},K=e.authType||(a?"oauth":"apikey"),L="oauth"===K,F="cookie"===K,J=e.name?.trim()||e.email?.trim()||e.displayName?.trim()||(L?"OAuth Account":F?"Cookie Account":"API Key"),q=e.name?.trim()&&e.email?.trim()&&e.name.trim()!==e.email.trim()?e.email.trim():e.name?.trim()&&e.displayName?.trim()&&e.name.trim()!==e.displayName.trim()?e.displayName.trim():null,[W,H]=(0,i.useState)(!1),V=Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>!!e).sort()[0]||null;(0,i.useEffect)(()=>{let t=null,a=()=>{H(!!Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>e&&new Date(e).getTime()>Date.now()).sort()[0])};return a(),V&&(t=setInterval(a,1e3)),()=>{t&&clearInterval(t)}},[V,e]);let G="unavailable"!==e.testStatus||W?e.testStatus:"active",Q=()=>u?"queued"===u.state?"queued":"testing"===u.state?"testing":"success"===u.state?"success":"failed"===u.state?u.error?`failed: ${u.error}`:"failed":null:null;return(0,s.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===e.isActive?"opacity-60":""}`,children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,s.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,s.jsx)("button",{onClick:o,disabled:l,className:`p-0.5 rounded ${l?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,s.jsx)("button",{onClick:n,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,s.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:F?"cookie":L?"lock":"key"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-medium truncate",children:J}),q&&(0,s.jsx)("p",{className:"text-xs text-text-muted truncate",children:q}),(0,s.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,s.jsx)(d.Badge,{variant:(0,P.g)(e.isActive,G),size:"sm",dot:!0,children:!1===e.isActive?"disabled":G||"Unknown"}),(0,s.jsx)(d.Badge,{variant:"default",size:"sm",children:L?"OAuth":F?"Cookie":"API Key"}),O&&(0,s.jsx)(d.Badge,{variant:M,size:"sm",children:"Proxy"}),W&&!1!==e.isActive&&(0,s.jsx)($,{until:V}),e.lastError&&!1!==e.isActive&&(0,s.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:e.lastError,children:e.lastError}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["#",e.priority]}),e.globalPriority&&(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",e.globalPriority]}),Q()&&(0,s.jsx)(d.Badge,{variant:u?"success"===u.state?"success":"failed"===u.state?"error":"testing"===u.state?"primary":"default":"default",size:"sm",children:Q()})]}),O&&(0,s.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,s.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:D,children:D}),U&&(0,s.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:U}),z&&(0,s.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:z,children:["no_proxy: ",z]})]}),f&&g&&(0,s.jsxs)("select",{value:Object.prototype.hasOwnProperty.call(e.providerSpecificData||{},"assignedModel")?e.providerSpecificData.assignedModel||"":e.providerSpecificData?.freebuffModel||"",onChange:e=>g(e.target.value),disabled:!y,className:"mt-2 max-w-full rounded-md border border-border bg-background px-2 py-1 text-[11px] text-text-main",title:"Model assignment",children:[(0,s.jsx)("option",{value:"",children:"Unassigned"}),f.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name||e.id},e.id))]})]})]}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,s.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(t||[]).length>0&&(0,s.jsxs)("div",{className:"relative",ref:k,children:[(0,s.jsxs)("button",{type:"button",onClick:()=>v(e=>!e),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${O?"text-primary":"text-text-muted hover:text-primary"}`,disabled:j,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:j?"progress_activity":"lan"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),b&&(0,s.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:["smart"===C&&(0,s.jsx)("p",{className:"px-3 py-1 text-[10px] text-text-muted",children:"Smart skips unfit pools for this provider/model."}),(0,s.jsx)("button",{type:"button",onClick:()=>B("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!A?"text-primary font-medium":"text-text-main"}`,children:"None"}),(0,s.jsx)("p",{className:"px-3 pt-2 text-[10px] font-medium uppercase text-text-muted",children:"Rotation"}),["fill-first","round-robin","random","smart"].map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>R(e,S.length>1?S:(t||[]).filter(e=>e.isActive).map(e=>e.id)),disabled:j,className:`w-full px-3 py-1.5 text-left text-sm hover:bg-black/5 dark:hover:bg-white/5 ${C===e?"font-medium text-primary":"text-text-main"}`,children:"smart"===e?"Smart (provider/model aware)":e},e)),(0,s.jsx)("p",{className:"px-3 pt-2 text-[10px] font-medium uppercase text-text-muted",children:"Single pool"}),(t||[]).map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>B(e.id),disabled:j||!0!==e.isActive,className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${A===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]})]}),h&&(0,s.jsx)(d.Tooltip,{text:_,children:(0,s.jsxs)("button",{onClick:()=>h.onToggle(!h.on),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${h.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,s.jsxs)("button",{onClick:p,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,s.jsxs)("button",{onClick:x,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,s.jsx)(d.Toggle,{size:"sm",checked:e.isActive??!0,onChange:c,title:e.isActive??!0?"Disable connection":"Enable connection"})]})]})}var O=a(28937),D=a.n(O);let _=`name1|sk-key1
2
- name2|sk-key2
3
- sk-key-only-auto-named`;function U({isOpen:e,provider:t,providerName:a,isCompatible:l,isAnthropic:r,authType:o,authHint:n,website:m,proxyPools:p,error:x,existingNames:u,onSave:h,onBulkDone:f,onClose:g}){let y="__none__",b="ollama-local"===t,v="cookie"===o,j="xai"===t&&!v,w=v?"Cookie Value":"API Key",k="azure"===t,N="cloudflare-ai"===t,S=c.Q2?.[t]?.regions||null,C=c.Q2?.[t]?.defaultRegion||S?.[0]?.id||"",[A,T]=(0,i.useState)({name:"",apiKey:"",priority:1,proxyPoolId:y,ollamaHostUrl:""}),[I,P]=(0,i.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[$,E]=(0,i.useState)({accountId:""}),[O,D]=(0,i.useState)(C),[z,M]=(0,i.useState)(!1),[B,R]=(0,i.useState)(null),[K,L]=(0,i.useState)(!1),F=N?`name1|sk-key1|acc123456
4
- name2|sk-key2|def789012
5
- sk-key-only-auto-named`:"exa"===t?`account-1|exa-key-1
6
- account-2|exa-key-2
7
- exa-key-only-auto-named`:_,[J,q]=(0,i.useState)("single"),[W,H]=(0,i.useState)(""),[V,G]=(0,i.useState)(null),Q=()=>b&&A.ollamaHostUrl.trim()?{baseUrl:A.ollamaHostUrl.trim()}:k?{azureEndpoint:I.azureEndpoint,apiVersion:I.apiVersion,deployment:I.deployment,organization:I.organization}:N?{accountId:$.accountId}:S&&O?{region:O}:void 0,X=async()=>{M(!0);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:A.apiKey,providerSpecificData:Q()})}),a=await e.json();R(a.valid?"success":"failed")}catch{R("failed")}finally{M(!1)}},Y=async()=>{if(t&&(b||A.apiKey)&&(b||A.name)){L(!0);try{let e=!1;try{M(!0),R(null);let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:A.apiKey,providerSpecificData:Q()})});e=!!(await a.json()).valid,R(e?"success":"failed")}catch{R("failed")}finally{M(!1)}await h({name:A.name||(b?"Ollama Local":""),apiKey:A.apiKey,priority:A.priority,proxyPoolId:A.proxyPoolId===y?null:A.proxyPoolId,testStatus:e?"active":"unknown",providerSpecificData:Q()})}finally{L(!1)}}},Z=async()=>{let e=W.split("\n");if(!e.length)return;let a=function(e,t,a={}){let{isCloudflareAi:s=!1}=a,i=new Set((Array.isArray(t)?t:[]).map(e=>"string"==typeof e?e.toLowerCase():"")),l=[];for(let t of e){let e,a="string"==typeof t?t.trim():"";if(!a)continue;let r=function(e,t={}){let{isCloudflareAi:a=!1}=t,s=e.split("|");if(a&&s.length>=3){let e=s[0].trim();return{baseName:e||"Key",apiKey:s.slice(1,-1).join("|").trim(),providerSpecificData:{accountId:s[s.length-1].trim()}}}return s.length>=2?{baseName:s[0].trim()||"Key",apiKey:s.slice(1).join("|").trim()}:{baseName:"Key",apiKey:s[0].trim()}}(a,{isCloudflareAi:s});if(!r||!r.apiKey)continue;let o=r.baseName,n=1;for(;e=`${o} ${n}`,i.has(e.toLowerCase());)n+=1;i.add(e.toLowerCase());let d={name:e,apiKey:r.apiKey,skipped:!1};r.providerSpecificData&&(d.providerSpecificData=r.providerSpecificData),l.push(d)}return l}(e,u,{isCloudflareAi:N});if(!a.length)return;L(!0),G(null);let s=0,i=0;try{let e=await fetch("/api/providers/bulk",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:a.map(e=>({provider:t,apiKey:e.apiKey,name:e.name,priority:1,providerSpecificData:e.providerSpecificData}))})}),l=await e.json();s=Array.isArray(l.results)?l.results.filter(e=>e.ok).length:0,i=a.length-s}catch{i=a.length}L(!1),G({success:s,failed:i}),s>0&&f&&f()};return t?(0,s.jsx)(d.Modal,{isOpen:e,title:`Add ${a||t} ${w}`,onClose:g,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Button,{size:"sm",variant:"single"===J?"primary":"ghost",onClick:()=>{q("single"),G(null)},children:"Single"}),(0,s.jsx)(d.Button,{size:"sm",variant:"bulk"===J?"primary":"ghost",onClick:()=>{q("bulk"),G(null)},children:"Bulk Add"})]}),"bulk"===J&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted",children:N?(0,s.jsxs)(s.Fragment,{children:["One key per line. Format: ",(0,s.jsx)("code",{children:"name|apiKey|accountId"})," or just ",(0,s.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}):"exa"===t?(0,s.jsxs)(s.Fragment,{children:["One Exa account per line: ",(0,s.jsx)("code",{children:"name|apiKey"})," or ",(0,s.jsx)("code",{children:"apiKey"}),". Keys are stored without a billable probe; runtime rotates on auth, quota, and rate-limit errors."]}):(0,s.jsxs)(s.Fragment,{children:["One key per line. Format: ",(0,s.jsx)("code",{children:"name|apiKey"})," or just ",(0,s.jsx)("code",{children:"apiKey"})," (auto-named by index)."]})}),(0,s.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[140px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:F,value:W,onChange:e=>H(e.target.value)}),V&&(0,s.jsxs)("div",{className:`text-sm font-medium ${V.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",V.success," added",V.failed>0?`, ✗ ${V.failed} failed`:""]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Button,{onClick:Z,fullWidth:!0,disabled:K||!W.trim(),children:K?"Adding...":"Add All Keys"}),(0,s.jsx)(d.Button,{onClick:g,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Input,{label:"Name",value:A.name,onChange:e=>T({...A,name:e.target.value}),placeholder:b?"Ollama Local":"Production Key"}),b&&(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Input,{label:"Ollama Host URL",value:A.ollamaHostUrl,onChange:e=>T({...A,ollamaHostUrl:e.target.value}),placeholder:"http://localhost:11434",className:"flex-1"}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(d.Button,{onClick:X,disabled:z||K,variant:"secondary",children:z?"Checking...":"Check"})})]}),!b&&(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Input,{label:w,type:v?"text":"password",value:A.apiKey,onChange:e=>T({...A,apiKey:e.target.value}),placeholder:v?"grok-web"===t?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":j?"xai-...":"",className:"flex-1"}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(d.Button,{onClick:X,disabled:!A.apiKey||z||K,variant:"secondary",children:z?"Checking...":"Check"})})]}),j&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a direct xAI API key from console.x.ai. This is separate from Grok Build OAuth."}),v&&n&&(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:[n,m&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsxs)("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",m.replace(/^https?:\/\//,"")]})]})]}),S&&(0,s.jsx)(d.Select,{label:"Region",value:O,onChange:e=>D(e.target.value),options:S.map(e=>({value:e.id,label:e.label}))}),b&&(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Leave blank to use ",(0,s.jsx)("code",{children:"http://localhost:11434"}),". For remote Ollama, enter the full host URL (e.g. ",(0,s.jsx)("code",{children:"http://192.168.1.10:11434"}),")."]}),B&&(0,s.jsx)(d.Badge,{variant:"success"===B?"success":"error",children:"success"===B?"Valid":"Invalid"}),x&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:x}),N&&(0,s.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,s.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Cloudflare Workers AI"}),(0,s.jsx)(d.Input,{label:"Account ID",value:$.accountId,onChange:e=>E({...$,accountId:e.target.value}),placeholder:"abc123def456..."}),(0,s.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,s.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]}),k&&(0,s.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,s.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(d.Input,{label:"Azure Endpoint",value:I.azureEndpoint,onChange:e=>P({...I,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,s.jsx)(d.Input,{label:"Deployment Name",value:I.deployment,onChange:e=>P({...I,deployment:e.target.value}),placeholder:"gpt-4"}),(0,s.jsx)(d.Input,{label:"API Version",value:I.apiVersion,onChange:e=>P({...I,apiVersion:e.target.value}),placeholder:"2024-10-01-preview"}),(0,s.jsx)(d.Input,{label:"Organization",value:I.organization,onChange:e=>P({...I,organization:e.target.value}),placeholder:"Organization ID"})]})]}),(0,s.jsx)(d.Input,{label:"Priority",type:"number",value:A.priority,onChange:e=>T({...A,priority:Number.parseInt(e.target.value)||1})}),(0,s.jsx)(d.Select,{label:"Proxy Pool",value:A.proxyPoolId,onChange:e=>T({...A,proxyPoolId:e.target.value}),options:[{value:y,label:"None"},...(p||[]).map(e=>({value:e.id,label:e.name}))],placeholder:"None"}),0===(p||[]).length&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"No active proxy pools available. Create one in Proxy Pools page first."}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Legacy manual proxy fields are still accepted by API for backward compatibility."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Button,{onClick:Y,fullWidth:!0,disabled:K||!b&&(!A.name||!A.apiKey)||k&&(!I.azureEndpoint||!I.deployment||!I.organization)||N&&!$.accountId,children:K?"Saving...":"Save"}),(0,s.jsx)(d.Button,{onClick:g,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}U.propTypes={isOpen:D().bool.isRequired,provider:D().string,providerName:D().string,isCompatible:D().bool,isAnthropic:D().bool,authType:D().string,authHint:D().string,website:D().string,proxyPools:D().arrayOf(D().shape({id:D().string,name:D().string})),error:D().string,existingNames:D().arrayOf(D().string),onSave:D().func.isRequired,onBulkDone:D().func,onClose:D().func.isRequired};let z=[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}];function M({isOpen:e,node:t,onSave:a,onClose:l,isAnthropic:r}){let[o,n]=(0,i.useState)(()=>({name:t?.name||"",prefix:t?.prefix||"",apiType:t?.apiType||"chat",baseUrl:t?.baseUrl||(r?"https://api.anthropic.com/v1":"https://api.openai.com/v1")})),[c,m]=(0,i.useState)(!1),[p,x]=(0,i.useState)(""),[u,h]=(0,i.useState)(""),[f,g]=(0,i.useState)(!1),[y,b]=(0,i.useState)(null),[v,j]=(0,i.useState)(t);t!==v&&(j(t),t&&n({name:t.name||"",prefix:t.prefix||"",apiType:t.apiType||"chat",baseUrl:t.baseUrl||(r?"https://api.anthropic.com/v1":"https://api.openai.com/v1")}));let w=async()=>{if(o.name.trim()&&o.prefix.trim()&&o.baseUrl.trim()){m(!0);try{let e={name:o.name,prefix:o.prefix,baseUrl:o.baseUrl};r||(e.apiType=o.apiType),await a(e)}finally{m(!1)}}},k=async()=>{g(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:o.baseUrl,apiKey:p,type:r?"anthropic-compatible":"openai-compatible",modelId:u.trim()||void 0})}),t=await e.json();b(t.valid?"success":"failed")}catch{b("failed")}finally{g(!1)}};return t?(0,s.jsx)(d.Modal,{isOpen:e,title:`Edit ${r?"Anthropic":"OpenAI"} Compatible`,onClose:l,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(d.Input,{label:"Name",value:o.name,onChange:e=>n({...o,name:e.target.value}),placeholder:`${r?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,s.jsx)(d.Input,{label:"Prefix",value:o.prefix,onChange:e=>n({...o,prefix:e.target.value}),placeholder:r?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!r&&(0,s.jsx)(d.Select,{label:"API Type",options:z,value:o.apiType,onChange:e=>n({...o,apiType:e.target.value})}),(0,s.jsx)(d.Input,{label:"Base URL",value:o.baseUrl,onChange:e=>n({...o,baseUrl:e.target.value}),placeholder:r?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${r?"Anthropic":"OpenAI"}-compatible API.`}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Input,{label:"API Key (for Check)",type:"password",value:p,onChange:e=>x(e.target.value),className:"flex-1"}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(d.Button,{onClick:k,disabled:!p||f||!o.baseUrl.trim(),variant:"secondary",children:f?"Checking...":"Check"})})]}),(0,s.jsx)(d.Input,{label:"Model ID (optional)",value:u,onChange:e=>h(e.target.value),placeholder:"e.g. my-model-id",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),y&&(0,s.jsx)(d.Badge,{variant:"success"===y?"success":"error",children:"success"===y?"Valid":"Invalid"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Button,{onClick:w,fullWidth:!0,disabled:!o.name.trim()||!o.prefix.trim()||!o.baseUrl.trim()||c,children:c?"Saving...":"Save"}),(0,s.jsx)(d.Button,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function B(e,t){switch(t.type){case"RESET":return{modelId:"",testStatus:null,testError:"",saving:!1};case"SET_MODEL":return{...e,modelId:t.value,testStatus:null,testError:""};case"TEST_START":return{...e,testStatus:"testing",testError:""};case"TEST_RESULT":return{...e,testStatus:t.ok?"ok":"error",testError:t.error||""};case"SAVE_START":return{...e,saving:!0};case"SAVE_DONE":return{...e,saving:!1};default:return e}}function R({isOpen:e,providerAlias:t,providerDisplayAlias:a,onSave:l,onClose:r}){let[o,n]=(0,i.useReducer)(B,{modelId:"",testStatus:null,testError:"",saving:!1}),{modelId:c,testStatus:m,testError:p,saving:x}=o,[u,h]=(0,i.useState)(!1);e&&!u?(h(!0),n({type:"RESET"})):!e&&u&&h(!1);let f=e=>{let a=`${t}/`;return e.startsWith(a)?e.slice(a.length):e},g=async()=>{let e=f(c.trim());if(e){n({type:"TEST_START"});try{let a=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${t}/${e}`})}),s=await a.json();n({type:"TEST_RESULT",ok:s.ok,error:s.error})}catch(e){n({type:"TEST_RESULT",ok:!1,error:e.message})}}},y=async()=>{let e=f(c.trim());if(e&&!x){n({type:"SAVE_START"});try{await l(e)}finally{n({type:"SAVE_DONE"})}}};return(0,s.jsx)(d.Modal,{isOpen:e,onClose:r,title:"Add Custom Model",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"add-custom-model-id",className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{id:"add-custom-model-id",type:"text",value:c,onChange:e=>n({type:"SET_MODEL",value:e.target.value}),onKeyDown:e=>{"Enter"===e.key&&g()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),(0,s.jsx)(d.Button,{variant:"secondary",icon:"science",loading:"testing"===m,onClick:g,disabled:!c.trim()||"testing"===m,children:"testing"===m?"Testing...":"Test"})]}),(0,s.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,s.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:f(c.trim())||"model-id"})]})]}),"ok"===m&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===m&&(0,s.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,s.jsx)("span",{children:p||"Model not reachable"})]}),(0,s.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,s.jsx)(d.Button,{onClick:r,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,s.jsx)(d.Button,{onClick:y,fullWidth:!0,size:"sm",disabled:!c.trim()||x,children:x?"Adding...":"Add Model"})]})]})})}let K=`[
8
- {
9
- "accessToken": "eyJhbGc...",
10
- "refreshToken": "rt_...",
11
- "idToken": "eyJhbGc...",
12
- "email": "user@example.com"
13
- }
14
- ]`;function L({isOpen:e,onClose:t,onSuccess:a}){let[l,r]=(0,i.useState)(""),[o,n]=(0,i.useState)(!1),[c,m]=(0,i.useState)(""),[p,x]=(0,i.useState)(null),u=()=>{o||(r(""),m(""),x(null),t())},h=async()=>{var e;let t;m(""),x(null);let s=l.trim();if(!s)return;try{t=JSON.parse(s)}catch(e){m(`${(0,k.Tl)("Invalid JSON")}: ${e.message}`);return}let i=Array.isArray(e=t)?e:e&&"object"==typeof e?Array.isArray(e.accounts)?e.accounts:[e]:null;if(!i||0===i.length)return void m((0,k.Tl)("No accounts found in input"));n(!0);try{let e=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:i})}),t=await e.json();if(!e.ok)return void m(t?.error||`Request failed: ${e.status}`);x(t),t.success>0&&"function"==typeof a&&a()}catch(e){m(e.message||(0,k.Tl)("Request failed"))}finally{n(!1)}},f=p?.results?.filter(e=>!e.ok)||[];return(0,s.jsx)(d.Modal,{isOpen:e,title:(0,k.Tl)("Bulk Add Codex Accounts"),onClose:u,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted",children:(0,k.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,s.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:K,value:l,onChange:e=>r(e.target.value),disabled:o}),c&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:c}),p&&(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:`text-sm font-medium ${p.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",p.success," ",(0,k.Tl)("added"),p.failed>0?`, ✗ ${p.failed} ${(0,k.Tl)("failed")}`:""]}),f.length>0&&(0,s.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:f.map(e=>(0,s.jsxs)("li",{className:"text-red-400",children:["[",e.index,"] ",e.error]},e.index))})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Button,{onClick:h,fullWidth:!0,disabled:o||!l.trim(),children:o?(0,k.Tl)("Importing..."):(0,k.Tl)("Import All")}),(0,s.jsx)(d.Button,{onClick:u,variant:"ghost",fullWidth:!0,disabled:o,children:(0,k.Tl)("Close")})]})]})})}let F={claude:"claudeAutoPing",codex:"codexAutoPing"};function J(){let e,t,a,r,p=(0,l.useParams)(),x=(0,l.useRouter)(),u=p.id,{getCaps:h}=(0,w.y)(),[f,g]=(0,i.useState)([]),[y,b]=(0,i.useState)(!0),[N,T]=(0,i.useState)(null),[P,$]=(0,i.useState)([]),[O,D]=(0,i.useState)(!1),[_,z]=(0,i.useState)(!1),[B,K]=(0,i.useState)(!1),[J,q]=(0,i.useState)(""),[W,H]=(0,i.useState)(!1),[V,G]=(0,i.useState)(!1),[Q,X]=(0,i.useState)(!1),[Y,Z]=(0,i.useState)(!1),[ee,et]=(0,i.useState)(null),[ea,es]=(0,i.useState)({}),[ei,el]=(0,i.useState)([]),[er,eo]=(0,i.useState)(!1),[en,ed]=(0,i.useState)({}),[ec,em]=(0,i.useState)(""),[ep,ex]=(0,i.useState)(()=>new Set),[eu,eh]=(0,i.useState)(!1),[ef,eg]=(0,i.useState)([]),[ey,eb]=(0,i.useState)(1),[ev,ej]=(0,i.useState)("__none__"),[ew,ek]=(0,i.useState)(!1),[eN,eS]=(0,i.useState)(null),[eC,eA]=(0,i.useState)(""),[eT,eI]=(0,i.useState)(!1),[eP,e$]=(0,i.useState)("auto"),[eE,eO]=(0,i.useState)({enabled:!1,connections:{}}),[eD,e_]=(0,i.useState)([]),[eU,ez]=(0,i.useState)([]),[eM,eB]=(0,i.useState)([]),[eR,eK]=(0,i.useState)([]),[eL,eF]=(0,i.useState)(null),[eJ,eq]=(0,i.useState)(!1),[eW,eH]=(0,i.useState)(!1),[eV,eG]=(0,i.useState)(!1),[eQ,eX]=(0,i.useState)(null),[eY,eZ]=(0,i.useState)({}),[e0,e1]=(0,i.useState)(null),e2=(0,i.useRef)(!1),[e5,e3]=(0,i.useState)(!1),{copied:e4,copy:e6}=(0,j.C)(),e8="ag_risk_confirmed",e7=()=>{D(!0)},e9=()=>{"antigravity"===u&&"true"!==window.localStorage.getItem(e8)?eq(!0):ti?e7():(q(""),K(!0))},te=()=>{q(""),K(!0)},tt=()=>{ti?e9():te()},ta=N?{id:N.id,name:N.name||("anthropic-compatible"===N.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===N.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===N.type?"AC":"OC",apiType:N.apiType,baseUrl:N.baseUrl,type:N.type}:c.zN[u]||c.fg[u]||c.IS[u]||c.nJ[u]||c.br[u],ts=ta?.authModes||[],ti=!!c.zN[u]||!!c.IS[u]||ts.includes("oauth"),tl=!!c.fg[u]||ts.includes("apikey"),tr=!!c.IS[u]?.noAuth,to=(0,m.KC)(u),tn="cursor"===u&&eU.length>0?eU:to,td=(0,c.wG)(u),tc=(0,c.mq)(u),tm=(0,c.gb)(u),tp=tc||tm,tx=!tp&&ti&&tl,tu="xai"===u?"Grok Build OAuth":"grok-cli"===u?"Grok CLI Device Login":"kimi"===u?"Kimi Coding OAuth":"OAuth",th="xai"===u?"xAI API Key":"kimi"===u?"Kimi API Key":"qoder"===u?"PAT":"API Key",tf=e=>{if(!eP||"auto"===eP)return null;let t=v(u,e);return t&&t.includes(eP)?eP:null},tg=tp?u:td,ty=(e=new Map,t=t=>{t?.id&&!e.has(t.id)&&e.set(t.id,t)},tn.forEach(t),ei.forEach(e=>{e.providerAlias===tg&&"llm"===(e.kind||e.type||"llm")&&t(e)}),a=new Set(eR),[...e.values()].filter(e=>!a.has(e.id))),tb=(()=>{let e=new Set,t=new Set,a=a=>{if(!a||t.has(a))return;t.add(a);let s=v(u,a);s&&s.forEach(t=>{"none"!==t&&e.add(t)})};for(let e of tn)a(e.id);for(let e of eM)a(e.id);for(let e of ei)e.providerAlias===tg&&"llm"===(e.kind||e.type||"llm")&&a(e.id);return e.size?["auto",...e]:null})(),tv=tp?N?.prefix||u:td,tj=(0,i.useCallback)(async()=>{try{let e=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tg)}`,{cache:"no-store"}),t=await e.json();e.ok&&eK(t.ids||[])}catch(e){console.log("Error fetching disabled models:",e)}},[tg]),tw=async e=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:tg,ids:[e]})})).ok&&await tj()}catch(e){console.log("Error disabling model:",e)}},tk=async e=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tg)}&id=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await tj()}catch(e){console.log("Error enabling model:",e)}},tN=async e=>{e.length&&eF({title:"Disable All Models",message:`Disable all ${e.length} model(s)?`,onConfirm:async()=>{eF(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:tg,ids:e})})).ok&&await tj()}catch(e){console.log("Error disabling all models:",e)}}})},tS=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tg)}`,{method:"DELETE"})).ok&&await tj()}catch(e){console.log("Error enabling all models:",e)}},tC=(0,i.useCallback)(async()=>{try{let e=await fetch("/api/models/alias"),t=await e.json();e.ok&&es(t.aliases||{})}catch(e){console.log("Error fetching aliases:",e)}},[]),tA=(0,i.useCallback)(async()=>{try{let e=await fetch("/api/models/custom",{cache:"no-store"}),t=await e.json();e.ok&&el(t.models||[])}catch(e){console.log("Error fetching custom models:",e)}},[]);(0,i.useEffect)(()=>{"kilocode"===u&&fetch("/api/providers/kilo/free-models").then(e=>e.json()).then(e=>{e.models?.length&&eB(e.models)}).catch(()=>{})},[u]);let tT=(0,i.useCallback)(async()=>{try{let[e,t,a,s]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),i=await e.json(),l=await t.json(),r=await a.json(),o=s.ok?await s.json():{};if(e.ok){let e=(i.connections||[]).filter(e=>e.provider===u);g(e)}a.ok&&$(r.proxyPools||[]);let n=(o.providerStrategies||{})[u]||{};eS(n.fallbackStrategy||null),eA(null!=n.stickyRoundRobinLimit?String(n.stickyRoundRobinLimit):"1"),eI(!0===n.strictModelAssignment);let d=(o.providerThinking||{})[u]||{};e$(d.mode||"auto");let c=F[u],m=c&&o[c]||{};if(eO({enabled:!0===m.enabled,connections:m.connections||{}}),t.ok){let e=(l.nodes||[]).find(e=>e.id===u)||null;if(!e&&tp)for(let t=0;t<3;t+=1){await new Promise(e=>setTimeout(e,150));let t=await fetch("/api/provider-nodes",{cache:"no-store"});if(t.ok&&(e=((await t.json()).nodes||[]).find(e=>e.id===u)||null))break}T(e)}}catch(e){console.log("Error fetching connections:",e)}finally{b(!1)}},[u,tp]),tI=async e=>{try{let t=await fetch(`/api/provider-nodes/${u}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),a=await t.json();t.ok&&(T(a.node),await tT(),X(!1))}catch(e){console.log("Error updating provider node:",e)}},tP=async(e,t)=>{try{let a=await fetch("/api/settings",{cache:"no-store"}),s=(a.ok?await a.json():{}).providerStrategies||{},i={...s[u]||{}};e?i.fallbackStrategy=e:(delete i.fallbackStrategy,delete i.stickyRoundRobinLimit),"round-robin"===e&&""!==t&&(i.stickyRoundRobinLimit=Number(t)||3);let l={...s};0===Object.keys(i).length?delete l[u]:l[u]=i,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:l})})}catch(e){console.log("Error saving provider strategy:",e)}},t$=async e=>{eI(e);try{let t=await fetch("/api/settings",{cache:"no-store"}),a=(t.ok?await t.json():{}).providerStrategies||{};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:{...a,[u]:{...a[u]||{},strictModelAssignment:e}}})})}catch(e){console.log("Error saving Freebuff strict assignment:",e)}},tE=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerSpecificData:{assignedModel:t||null}})})).ok&&g(a=>a.map(a=>a.id===e?{...a,providerSpecificData:{...a.providerSpecificData||{},assignedModel:t||null}}:a))}catch(e){console.log("Error saving Freebuff model assignment:",e)}},tO=async e=>{try{let t=await fetch("/api/settings",{cache:"no-store"}),a={...(t.ok?await t.json():{}).providerThinking||{}};e&&"auto"!==e?a[u]={mode:e}:delete a[u],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:a})})}catch(e){console.log("Error saving thinking config:",e)}},tD=async e=>{let t=F[u];if(t){eO(e);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[t]:e})})}catch(e){console.log("Error saving auto-ping config:",e)}}};(0,i.useEffect)(()=>{tT(),tC(),tA(),tj()},[tT,tC,tA,tj]),(0,i.useEffect)(()=>{if("cursor"!==u)return void ez([]);let e=f.find(e=>!1!==e.isActive);if(!e?.id)return void ez([]);let t=!1;return fetch(`/api/providers/${e.id}/models`,{cache:"no-store"}).then(async e=>({ok:e.ok,data:await e.json()})).then(({ok:e,data:a})=>{!t&&e&&Array.isArray(a.models)&&a.models.length>0&&ez(a.models)}).catch(()=>{}),()=>{t=!0}},[u,f]),(0,i.useEffect)(()=>{let e=(c.zN[u]||c.fg[u]||c.IS[u]||c.nJ[u])?.modelsFetcher;e&&S(e).then(e_)},[u]);let t_=async(e,t,a=td)=>{let s=`${a}/${e}`;try{let e=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:s,alias:t})});if(e.ok)await tC();else{let t=await e.json();alert(t.error||"Failed to set alias")}}catch(e){console.log("Error setting alias:",e)}},tU=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await tC()}catch(e){console.log("Error deleting alias:",e)}},tz=async(e,t="llm",a=tg)=>{try{let s=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:a,id:e,type:t})});if(s.ok)await tA(),window.dispatchEvent(new CustomEvent("customModelChanged"));else{let e=await s.json();alert(e.error||"Failed to add custom model")}}catch(e){console.log("Error adding custom model:",e)}},tM=async(e,t="llm",a=tg)=>{try{let s=new URLSearchParams({providerAlias:a,id:e,type:t});(await fetch(`/api/models/custom?${s}`,{method:"DELETE"})).ok&&(await tA(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error deleting custom model:",e)}},tB=async()=>{if(e5)return;let e=f.find(e=>!1!==e.isActive);if(!e)return void alert((0,k.Tl)("Please add an active Qoder connection first"));e3(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),a=await t.json();if(!t.ok)return void alert(a.error||(0,k.Tl)("Failed to fetch models"));let s=a.models||[];if(0===s.length)return void alert((0,k.Tl)("No models returned"));let i=0;for(let e of s){let t=e.id||e.name;if(!t)continue;let a=t.replace(/^qoder\//,"");ei.some(e=>e.providerAlias===tg&&e.id===a&&"llm"===(e.kind||e.type||"llm"))||Object.values(ea).includes(`${tg}/${a}`)||(await tz(a,"llm",tg),i+=1)}0===i?alert((0,k.Tl)("All models already exist, no new models added")):alert((0,k.Tl)("Successfully added")+` ${i} `+(0,k.Tl)("models"))}catch(e){console.log("Error importing Qoder models:",e),alert((0,k.Tl)("Error fetching models")+": "+e.message)}finally{e3(!1)}},tR=async()=>{if(eW||0===f.length)return;let e=Object.fromEntries(f.map(e=>[e.id,{state:"queued",error:null}]));e2.current=!1,eH(!0),eG(!1),eX(null),eZ(e),e1({total:f.length,completed:0,passed:0,failed:0,stopped:!1});let t=0,a=0;try{for(let e=0;e<f.length;e+=1){if(e2.current){e1({total:f.length,completed:e,passed:t,failed:a,stopped:!0});break}let s=f[e];eX(s.id),eZ(e=>({...e,[s.id]:{state:"testing",error:null}}));try{let e=await fetch(`/api/providers/${s.id}/test`,{method:"POST"}),i=await e.json(),l=!!i.valid;l?t+=1:a+=1,eZ(e=>({...e,[s.id]:{state:l?"success":"failed",error:l?null:i.error||null}}))}catch(e){a+=1,eZ(t=>({...t,[s.id]:{state:"failed",error:e.message||"Test failed"}}))}e1({total:f.length,completed:e+1,passed:t,failed:a,stopped:!1}),e<f.length-1&&await new Promise(e=>setTimeout(e,1e3))}}finally{eX(null),eH(!1),eG(!1),e2.current=!1}},tK=async e=>{eF({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{eF(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&g(t=>t.filter(t=>t.id!==e))}catch(e){console.log("Error deleting connection:",e)}}})},tL=()=>{tT(),D(!1)},tF=async e=>{q("");try{let t=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:u,...e})}),a=null;try{a=await t.json()}catch{a=null}if(t.ok){await tT(),K(!1);return}q(a?.error||"Failed to save connection")}catch(e){console.log("Error saving connection:",e),q("Failed to save connection")}},tJ=async e=>{try{(await fetch(`/api/providers/${ee.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await tT(),G(!1))}catch(e){console.log("Error updating connection:",e)}},tq=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&g(a=>a.map(a=>a.id===e?{...a,isActive:t}:a))}catch(e){console.log("Error updating connection status:",e)}},tW=async(e,t)=>{let a=[...f];[a[e],a[t]]=[a[t],a[e]],g(a);try{await Promise.all([fetch(`/api/providers/${a[e].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:e})}),fetch(`/api/providers/${a[t].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:t})})])}catch(e){console.log("Error swapping priority:",e),await tT()}},tH=f.filter(e=>ef.includes(e.id)),{currentPage:tV,totalPages:tG,items:tQ,start:tX}=function(e=[],t=1){let a=Array.isArray(e)?e:[],s=a.length,i=Math.max(1,Math.ceil(s/10)),l=Math.floor(Number(t)),r=Math.min(Number.isFinite(l)&&l>0?l:1,i),o=(r-1)*10,n=a.slice(o,o+10);return{currentPage:r,totalPages:i,totalItems:s,start:o,items:n,pageSize:10}}(f,ey),tY=f.length>0&&ef.length===f.length;(0,i.useEffect)(()=>{eg(e=>e.filter(e=>f.some(t=>t.id===e)))},[f]);let tZ=(()=>{if(0===tH.length)return"";let e=new Set(tH.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"));if(1===e.size){let t=[...e][0];if("__none__"===t)return"All selected currently unbound";let a=P.find(e=>e.id===t);return`All selected currently bound to ${a?.name||t}`}return"Selected connections have mixed proxy bindings"})(),t0=()=>{ew||Z(!1)},t1=async(e,t)=>{let a=await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok)throw Error((await a.json().catch(()=>({}))).error||`Proxy update failed (${a.status})`);return a.json()},t2=async e=>{ek(!0);try{let t=[];for(let{connectionId:a,proxyPoolId:s,proxyPoolIds:i,proxyRotationStrategy:l}of e)try{let e=i?{proxyPoolIds:i,proxyRotationStrategy:l}:{proxyPoolId:s};await t1(a,e)}catch(e){console.log("Error applying proxy for",a,e),t.push(a)}if(await tT(),t.length>0)return void alert(`Updated with ${t.length} failed request(s). Retry the selected connections.`);Z(!1),eg([]),ej("__none__")}finally{ek(!1)}},t5=e=>t2((ef.length>0?tH:f).map(t=>({connectionId:t.id,proxyPoolId:e}))),t3=(0,s.jsxs)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:[tQ.map((e,t)=>{let a,i=tX+t;return(0,s.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,s.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,s.jsx)("input",{type:"checkbox",checked:(a=e.id,ef.includes(a)),onChange:()=>{var t;return t=e.id,void eg(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"})}),(0,s.jsx)("div",{className:"flex-1 min-w-0",children:(0,s.jsx)(E,{connection:e,proxyPools:P,isOAuth:ti,isFirst:0===i,isLast:i===f.length-1,onMoveUp:()=>tW(i,i-1),onMoveDown:()=>tW(i,i+1),onToggleActive:t=>tq(e.id,t),autoPing:F[u]&&"oauth"===e.authType?{on:!0===eE.connections[e.id],onToggle:t=>{var a;return a=e.id,void tD({...eE,connections:{...eE.connections,[a]:t}})},provider:u}:null,onUpdateProxy:async t=>{try{let a="object"==typeof t?t:{proxyPoolId:t||null};if((await fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok){let t={...e.providerSpecificData};a.proxyPoolIds?(t.proxyPoolIds=a.proxyPoolIds,t.proxyRotationStrategy=a.proxyRotationStrategy,delete t.proxyPoolId):(a.proxyPoolId?t.proxyPoolId=a.proxyPoolId:delete t.proxyPoolId,delete t.proxyPoolIds,delete t.proxyRotationStrategy),g(a=>a.map(a=>a.id===e.id?{...a,providerSpecificData:t}:a))}}catch(e){console.log("Error updating proxy:",e)}},onEdit:()=>{et(e),G(!0)},onDelete:()=>tK(e.id),oneByOneStatus:eY[e.id]||null,modelAssignmentOptions:"freebuff"===u?ty:null,onModelAssignmentChange:"freebuff"===u?t=>tE(e.id,t):null,strictModelAssignment:eT})})]},e.id)}),f.length>10&&(0,s.jsx)(d.Pagination,{currentPage:tV,pageSize:10,totalItems:f.length,onPageChange:eb})]}),t4=P.filter(e=>!0===e.isActive),t6=(0,s.jsx)(d.Modal,{isOpen:Y,onClose:t0,title:ef.length>0?`Apply Proxy (${ef.length} selected)`:`Apply Proxy (All ${f.length} connections)`,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[tZ&&(0,s.jsx)("p",{className:"text-xs text-text-muted bg-surface-2 px-3 py-2 rounded-lg border border-border/50",children:tZ}),(0,s.jsxs)("div",{className:"flex flex-col divide-y divide-border/30 border border-border/50 rounded-xl overflow-hidden bg-surface",children:[(0,s.jsxs)("div",{className:"p-3 flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"px-3 pb-1 text-[10px] font-semibold uppercase tracking-wider text-text-muted",children:"Dynamic Strategies"}),(0,s.jsxs)("button",{type:"button",onClick:()=>{let e=P.filter(e=>!0===e.isActive);return 0===e.length?void alert("No active proxy pools available."):t2((ef.length>0?tH:f).map((t,a)=>({connectionId:t.id,proxyPoolId:e[a%e.length].id})))},disabled:ew||0===t4.length,className:"flex items-center gap-3 rounded-lg px-3 py-2 text-left transition-colors hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[20px]",children:"sync_alt"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-text-main",children:"One-to-one (rotate)"}),(0,s.jsx)("span",{className:"text-[10px] text-text-muted mt-0.5",children:"Distribute active proxy pools round-robin"})]})]}),["fill-first","round-robin","random","smart"].map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>{let t;return(t=t4.map(e=>e.id).filter(e=>P.find(t=>t.id===e)?.isActive===!0)).length?t2((ef.length>0?tH:f).map(a=>({connectionId:a.id,proxyPoolIds:t,proxyRotationStrategy:e}))):void alert("No active proxy pools selected.")},disabled:ew||0===t4.length,className:"flex items-center gap-3 rounded-lg px-3 py-2 text-left transition-colors hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[20px]",children:"autorenew"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("span",{className:"text-sm font-medium text-text-main capitalize",children:[e," strategy"]}),(0,s.jsx)("span",{className:"text-[10px] text-text-muted mt-0.5",children:"smart"===e?"Bypass pools marked unfit for provider/model":`Rotate over all active pools using ${e}`})]})]},e))]}),(0,s.jsxs)("div",{className:"p-3 flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"px-3 pb-1 text-[10px] font-semibold uppercase tracking-wider text-text-muted",children:"Static Assignment"}),(0,s.jsxs)("button",{type:"button",onClick:()=>t5(null),disabled:ew,className:"flex items-center gap-3 rounded-lg px-3 py-2 text-left transition-colors hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[20px]",children:"link_off"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-text-main",children:"None (unbind all)"}),(0,s.jsx)("span",{className:"text-[10px] text-text-muted mt-0.5",children:"Direct routing without proxy"})]})]}),P.map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>t5(e.id),disabled:ew||!0!==e.isActive,className:"flex items-center gap-3 rounded-lg px-3 py-2 text-left transition-colors hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[20px]",children:"lan"}),(0,s.jsxs)("div",{className:"flex flex-col min-w-0 flex-1",children:[(0,s.jsx)("span",{className:"truncate text-sm font-medium text-text-main",children:e.name}),(0,s.jsx)("span",{className:"text-[10px] text-text-muted truncate mt-0.5",children:e.proxyUrl})]}),!0!==e.isActive&&(0,s.jsx)(d.Badge,{variant:"secondary",size:"sm",className:"ml-auto shrink-0",children:"inactive"})]},e.id))]})]}),ew&&(0,s.jsx)("p",{className:"text-xs text-text-muted animate-pulse px-1",children:"Applying proxy configuration..."}),(0,s.jsx)(d.Button,{onClick:t0,variant:"ghost",fullWidth:!0,disabled:ew,children:"Cancel"})]})}),t8=async e=>{if(!ep.has(e)){ex(t=>new Set(t).add(e));try{let t=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${tg}/${e}`})}),a=await t.json();ed(t=>({...t,[e]:a.ok?"ok":"error"})),em(a.ok?"":a.error||"Model not reachable")}catch{ed(t=>({...t,[e]:"error"})),em("Network error")}finally{ex(t=>{let a=new Set(t);return a.delete(e),a})}}};return y?(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(d.CardSkeleton,{}),(0,s.jsx)(d.CardSkeleton,{})]}):ta?(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)(o(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,s.jsx)(n.A,{providerId:ta.id,size:48,alt:ta.name,className:"shrink-0 rounded-lg",fallbackText:ta.textIcon||ta.id.slice(0,2).toUpperCase(),fallbackColor:ta.color}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,s.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:ta.name}),(ta.notice?.apiKeyUrl||ta.notice?.signupUrl||ta.website)&&(0,s.jsxs)("a",{href:ta.notice?.apiKeyUrl||ta.notice?.signupUrl||ta.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),ta.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,s.jsxs)("p",{className:"text-text-muted",children:[f.length," connection",1===f.length?"":"s"]})]})]})]}),ta.deprecated&&(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,s.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:ta.deprecationNotice})]}),ta.notice?.text&&!ta.deprecated&&(0,s.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,s.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:ta.notice.text}),ta.notice.apiKeyUrl&&(0,s.jsx)("a",{href:ta.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:"Get API Key →"})]}),tp&&N&&(0,s.jsx)(d.Card,{children:(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:tm?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,s.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[tm?"Messages API":"responses"===N.apiType?"Responses API":"Chat Completions"," \xb7 ",(N.baseUrl||"").replace(/\/$/,""),"/",tm?"messages":"responses"===N.apiType?"responses":"chat/completions"]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,s.jsx)(d.Button,{size:"sm",icon:"add",onClick:()=>{q(""),K(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>X(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{eF({title:"Delete Compatible Node",message:`Delete this ${tm?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{eF(null);try{(await fetch(`/api/provider-nodes/${u}`,{method:"DELETE"})).ok&&x.push("/dashboard/providers")}catch(e){console.log("Error deleting provider node:",e)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),tr?(0,s.jsx)(d.NoAuthProxyCard,{providerId:u}):(0,s.jsxs)(d.Card,{children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[f.length>0&&P.length>0&&(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>Z(!0),children:"Apply Proxy"}),f.length>0&&(0,s.jsxs)(s.Fragment,{children:[ef.length>0&&(0,s.jsxs)(d.Button,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let e=ef.length;0!==e&&eF({title:`Delete ${e} Connection${e>1?"s":""}`,message:`Delete ${e} connection${e>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{eF(null);let e=0,t=[...ef];for(let a of t)try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok||(e+=1)}catch(t){console.log("Error deleting connection:",t),e+=1}g(e=>e.filter(e=>!t.includes(e.id))),eg([]),e>0&&alert(`Deleted ${t.length-e} connection(s), ${e} failed.`)}})},children:["Delete Selected (",ef.length,")"]}),(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"sync",onClick:tR,disabled:eW,children:eW?"Testing Connection One-by-One...":"Test Connection One-by-One"}),eW&&(0,s.jsx)(d.Button,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{eW&&(e2.current=!0,eG(!0))},disabled:eV,children:eV?"Stopping...":"Stop"})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,s.jsx)(d.Toggle,{checked:"round-robin"===eN,onChange:e=>{let t=e?"round-robin":null,a=e?eC||"1":eC;e&&!eC&&eA("1"),eS(t),tP(t,a)}}),"round-robin"===eN&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,s.jsx)("input",{type:"number",min:1,value:eC,onChange:e=>{var t;eA(t=e.target.value),tP("round-robin",t)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]}),"freebuff"===u&&(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border-t border-black/[0.03] pt-2 dark:border-white/[0.03]",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Strict Model Assignment"}),(0,s.jsx)("p",{className:"text-[10px] text-text-muted",children:"Only assigned accounts can serve each Freebuff model."})]}),(0,s.jsx)(d.Toggle,{checked:eT,onChange:t$})]})]})]}),0===f.length?(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:ti?"lock":"key"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),tx&&(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",tu," or ",th,"."]})]})]}),(0,s.jsx)("div",{className:"flex gap-2",children:tx?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Button,{size:"sm",icon:"lock",variant:"secondary",onClick:e9,children:tu}),(0,s.jsx)(d.Button,{size:"sm",icon:"key",onClick:te,children:th})]}):(0,s.jsxs)(s.Fragment,{children:[!tp&&"iflow"===u&&(0,s.jsx)(d.Button,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>z(!0),children:"Cookie"}),"codex"===u&&(0,s.jsx)(d.Button,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>H(!0),children:(0,k.Tl)("Bulk Add")}),(0,s.jsx)(d.Button,{size:"sm",icon:"add",onClick:tt,children:tp?"Add API Key":"iflow"===u?"OAuth":"Add Connection"})]})})]}):(0,s.jsxs)(s.Fragment,{children:[e0&&(0,s.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,s.jsxs)("span",{children:["Total: ",e0.total]}),(0,s.jsxs)("span",{children:["Completed: ",e0.completed]}),(0,s.jsxs)("span",{children:["Passed: ",e0.passed]}),(0,s.jsxs)("span",{children:["Failed: ",e0.failed]}),e0.stopped&&(0,s.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),eW&&eQ&&(0,s.jsxs)("span",{children:["Running: ",f.find(e=>e.id===eQ)?.name||eQ]})]})}),f.length>0&&(0,s.jsx)("div",{className:"mb-3 flex items-center gap-2 border-b border-black/[0.03] pb-2 dark:border-white/[0.03]",children:(0,s.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,s.jsx)("input",{type:"checkbox",checked:tY,onChange:()=>{tY?eg([]):eg(f.map(e=>e.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),t3,!tp&&(0,s.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===u&&(0,s.jsx)(d.Button,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>z(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===u&&(0,s.jsx)(d.Button,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>H(!0),title:(0,k.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,k.Tl)("Bulk Add")}),tx?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Button,{size:"sm",icon:"lock",variant:"secondary",onClick:e9,className:"w-full sm:w-auto",children:tu}),(0,s.jsx)(d.Button,{size:"sm",icon:"key",onClick:te,className:"w-full sm:w-auto",children:th})]}):(0,s.jsx)(d.Button,{size:"sm",icon:"add",onClick:tt,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,s.jsxs)(d.Card,{children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),tb&&(0,s.jsx)("select",{value:eP,onChange:e=>{var t;e$(t=e.target.value),tO(t)},title:"Appends (level) suffix to copied model names",className:"rounded-md border border-border bg-background px-2 py-1 text-xs focus:border-primary focus:outline-none",children:tb.map(e=>(0,s.jsx)("option",{value:e,children:`Thinking: ${e.charAt(0).toUpperCase()+e.slice(1)}`},e))})]}),!tp&&(r=[...tn,...eM.filter(e=>!tn.some(t=>t.id===e.id))].filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}).map(e=>e.id).filter(e=>!eR.includes(e)),(0,s.jsxs)("div",{className:"flex gap-2",children:[eR.length>0&&(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:tS,children:"Active All"}),r.length>0&&(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"block",onClick:()=>tN(r),children:"Disable All"})]}))]}),!!ec&&(0,s.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:ec}),(()=>{let e,t,a;if(tp)return(0,s.jsx)(I,{providerStorageAlias:tg,providerDisplayAlias:tv,modelAliases:ea,customModels:ei,copied:e4,onCopy:e6,onSetAlias:t_,onDeleteAlias:tU,onAddCustomModel:e=>tz(e,"llm",tg),onDeleteCustomModel:e=>tM(e,"llm",tg),connections:f,isAnthropic:tm});let i=[...tn,...eM.filter(e=>!tn.some(t=>t.id===e.id))].filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}),l=new Set(eR),r=i.filter(e=>!l.has(e.id)),o=i.filter(e=>l.has(e.id)),n=C({customModels:ei,modelAliases:ea,providerAlias:tg,builtInModels:tn,type:"llm"});return(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[n.map(e=>(0,s.jsx)(A,{model:{id:e.id,name:e.name},fullModel:`${tv}/${e.id}`,alias:e.alias,copied:e4,onCopy:e6,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===e.source?tM(e.id,"llm",tg):tU(e.alias)},testStatus:en[e.id],onTest:f.length>0||tr?()=>t8(e.id):void 0,isTesting:ep.has(e.id),isCustom:!0,isFree:!1,caps:h(`${u}/${e.id}`),thinkingSuffix:tf(e.id)},`${e.source}-${e.fullModel}`)),r.map(e=>{let t=`${tg}/${e.id}`,a=`${u}/${e.id}`,i=Object.entries(ea).find(([,e])=>e===t||e===a)?.[0];return(0,s.jsx)(A,{model:e,fullModel:`${tv}/${e.id}`,alias:i,copied:e4,onCopy:e6,onSetAlias:t=>t_(e.id,t,tg),onDeleteAlias:()=>tU(i),testStatus:en[e.id],onTest:f.length>0||tr?()=>t8(e.id):void 0,isTesting:ep.has(e.id),isFree:e.isFree,onDisable:()=>tw(e.id),caps:h(`${u}/${e.id}`),thinkingSuffix:tf(e.id)},e.id)}),(0,s.jsxs)("button",{onClick:()=>eh(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),"qoder"===u&&f.some(e=>!1!==e.isActive)&&(0,s.jsxs)("button",{onClick:tB,disabled:e5,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:e5?{animation:"spin 1s linear infinite"}:void 0,children:e5?"progress_activity":"download"}),e5?(0,k.Tl)("Fetching..."):(0,k.Tl)("Fetch Qoder Models")]}),eD.length>0&&(e=new Set([...Object.values(ea),...n.map(e=>e.fullModel)]),t=new Set(tn.map(e=>e.id)),0===(a=eD.filter(a=>!e.has(`${tg}/${a.id}`)&&!t.has(a.id))).length?null:(0,s.jsxs)("div",{className:"w-full mt-2",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:a.map(e=>(0,s.jsxs)("button",{onClick:async()=>{await tz(e.id,"llm",tg)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${e.name} \xb7 ${(e.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id.split("/").pop()]},e.id))})]})),o.length>0&&(0,s.jsxs)("div",{className:"w-full mt-2",children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",o.length,"):"]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:o.map(e=>(0,s.jsxs)("button",{onClick:()=>tk(e.id),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id]},e.id))})]})]})})()]}),t6,"kiro"===u?(0,s.jsx)(d.KiroOAuthWrapper,{isOpen:O,providerInfo:ta,onSuccess:tL,onClose:()=>D(!1)}):"cursor"===u?(0,s.jsx)(d.CursorAuthModal,{isOpen:O,onSuccess:tL,onClose:()=>D(!1)}):"gitlab"===u?(0,s.jsx)(d.GitLabAuthModal,{isOpen:O,providerInfo:ta,onSuccess:tL,onClose:()=>D(!1)}):(0,s.jsx)(d.OAuthModal,{isOpen:O,provider:u,providerInfo:ta,onSuccess:tL,onClose:()=>D(!1)}),"iflow"===u&&(0,s.jsx)(d.IFlowCookieModal,{isOpen:_,onSuccess:()=>{tT(),z(!1)},onClose:()=>z(!1)}),(0,s.jsx)(U,{isOpen:B,provider:u,providerName:ta.name,isCompatible:tp,isAnthropic:tm,authType:ta?.authType,authHint:ta?.authHint,website:ta?.website,proxyPools:P,error:J,existingNames:f.map(e=>e.name).filter(Boolean),onSave:tF,onBulkDone:tT,onClose:()=>{q(""),K(!1)}}),(0,s.jsx)(d.EditConnectionModal,{isOpen:V,connection:ee,proxyPools:P,onSave:tJ,onClose:()=>G(!1)}),tp&&(0,s.jsx)(M,{isOpen:Q,node:N,onSave:tI,onClose:()=>X(!1),isAnthropic:tm}),!tp&&(0,s.jsx)(R,{isOpen:eu,providerAlias:tg,providerDisplayAlias:tv,onSave:async e=>{await tz(e,"llm",tg),eh(!1)},onClose:()=>eh(!1)}),"codex"===u&&(0,s.jsx)(L,{isOpen:W,onClose:()=>H(!1),onSuccess:tT}),(0,s.jsx)(d.ConfirmModal,{isOpen:eJ,onClose:()=>eq(!1),onConfirm:()=>{(window.localStorage.setItem(e8,"true"),eq(!1),ti)?e7():te()},title:"Risk Notice",message:ta?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,s.jsx)(d.ConfirmModal,{isOpen:!!eL,onClose:()=>eF(null),onConfirm:eL?.onConfirm,title:eL?.title||"Confirm",message:eL?.message,variant:"danger"})]}):(0,s.jsxs)("div",{className:"text-center py-20",children:[(0,s.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,s.jsx)(o(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]})}},21863:(e,t,a)=>{"use strict";function s(e,t){return!1===e?"default":"active"===t||"success"===t?"success":"error"===t||"expired"===t||"unavailable"===t?"error":"default"}a.d(t,{g:()=>s})},68810:(e,t,a)=>{Promise.resolve().then(a.bind(a,6))}},e=>{e.O(0,[3885,2318,4385,2940,7236,5479,2147,3204,7358],()=>e(e.s=68810)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8460],{48504:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>N});var s=r(15102),a=r(82030),l=r(92940),i=r(31704),n=r(19965);function o(e,t){return"kiro"===t?["oauth","apikey","api_key"]:Array.isArray(e?.authModes)&&e.authModes.length>0?e.authModes:e?.hasOAuth?["oauth"]:["apikey"]}var c=r(11434),d=r(31038),m=r(93885),p=r.n(m),x=r(25795),u=r(71389);let h={available:{icon:"check_circle",color:"#22c55e",label:"Available"},cooldown:{icon:"schedule",color:"#f59e0b",label:"Cooldown"},unavailable:{icon:"error",color:"#ef4444",label:"Unavailable"},unknown:{icon:"help",color:"#6b7280",label:"Unknown"}};function f(){let[e,t]=(0,a.useState)(null),[r,i]=(0,a.useState)(!0),[n,o]=(0,a.useState)(!1),[c,d]=(0,a.useState)(null),m=(0,a.useRef)(null),p=(0,x.i)(),u=(0,a.useCallback)(async()=>{try{let e=await fetch("/api/models/availability");if(e.ok){let r=await e.json();t(r)}}catch{}finally{i(!1)}},[]);(0,a.useEffect)(()=>{u();let e=setInterval(u,3e4);return()=>clearInterval(e)},[u]),(0,a.useEffect)(()=>{let e=e=>{m.current&&!m.current.contains(e.target)&&o(!1)};return n&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n]);let f=async(e,t)=>{d(`${e}:${t}`);try{(await fetch("/api/models/availability",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"clearCooldown",provider:e,model:t})})).ok?(p.success(`Cooldown cleared for ${t}`),await u()):p.error("Failed to clear cooldown")}catch{p.error("Failed to clear cooldown")}finally{d(null)}};if(r)return null;let b=e?.models||[],g=0===(e?.unavailableCount||b.filter(e=>"available"!==e.status).length),y={};return b.forEach(e=>{if("available"===e.status)return;let t=e.provider||"unknown";y[t]||(y[t]=[]),y[t].push(e)}),(0,s.jsx)("div",{className:"relative",ref:m,children:n&&(0,s.jsxs)("div",{className:"absolute top-full right-0 mt-2 w-80 bg-surface border border-border rounded-xl shadow-2xl z-50 overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border bg-bg",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",style:{color:g?"#22c55e":"#f59e0b"},children:g?"verified":"warning"}),(0,s.jsx)("span",{className:"text-sm font-semibold text-text-main",children:"Model Status"})]}),(0,s.jsx)("button",{type:"button",onClick:u,className:"p-1 rounded-lg hover:bg-surface text-text-muted hover:text-text-main transition-colors",title:"Refresh",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"refresh"})})]}),(0,s.jsx)("div",{className:"px-4 py-3 max-h-60 overflow-y-auto",children:g?(0,s.jsx)("p",{className:"text-sm text-text-muted text-center py-2",children:"All models are responding normally."}):(0,s.jsx)("div",{className:"flex flex-col gap-2.5",children:Object.entries(y).map(([e,t])=>(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold text-text-main mb-1.5 capitalize",children:e}),(0,s.jsx)("div",{className:"flex flex-col gap-1",children:t.map(e=>{let t=h[e.status]||h.unknown,r=c===`${e.provider}:${e.model}`;return(0,s.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5 rounded-lg bg-surface/30",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] shrink-0",style:{color:t.color},children:t.icon}),(0,s.jsx)("span",{className:"font-mono text-xs text-text-main truncate",children:e.model})]}),"cooldown"===e.status&&(0,s.jsx)(l.Button,{size:"sm",variant:"ghost",onClick:()=>f(e.provider,e.model),disabled:r,className:"text-[10px] px-1.5! py-0.5! ml-2",children:r?"...":"Clear"})]},`${e.provider}-${e.model}`)})})]},e))})})]})})}let b={openai:{title:"Add OpenAI Compatible",type:"openai-compatible",defaultBaseUrl:"https://api.openai.com/v1",namePlaceholder:"OpenAI Compatible (Prod)",prefixPlaceholder:"oc-prod",baseUrlHint:"Use the base URL (ending in /v1) for your OpenAI-compatible API.",modelIdPlaceholder:"e.g. gpt-4, claude-3-opus",errorLabel:"OpenAI Compatible",hasApiType:!0},anthropic:{title:"Add Anthropic Compatible",type:"anthropic-compatible",defaultBaseUrl:"https://api.anthropic.com/v1",namePlaceholder:"Anthropic Compatible (Prod)",prefixPlaceholder:"ac-prod",baseUrlHint:"Use the base URL (ending in /v1) for your Anthropic-compatible API. The system will append /messages.",modelIdPlaceholder:"e.g. claude-3-opus",errorLabel:"Anthropic Compatible",hasApiType:!1}},g=[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],y=function({variant:e,isOpen:t,onClose:r,onCreated:i}){let n=b[e],o=()=>({name:"",prefix:"",...n.hasApiType?{apiType:"chat"}:{},baseUrl:n.defaultBaseUrl}),[c,d]=(0,a.useState)(o),[m,p]=(0,a.useState)(!1),[x,u]=(0,a.useState)(""),[h,f]=(0,a.useState)(""),[y,v]=(0,a.useState)(!1),[j,N]=(0,a.useState)(null);(0,a.useEffect)(()=>{n.hasApiType?d(e=>({...e,baseUrl:n.defaultBaseUrl})):t&&(N(null),u(""),f(""))},[n.hasApiType?c.apiType:t]);let w=async()=>{if(c.name.trim()&&c.prefix.trim()&&c.baseUrl.trim()){p(!0);try{let e=await fetch("/api/provider-nodes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:c.name,prefix:c.prefix,...n.hasApiType?{apiType:c.apiType}:{},baseUrl:c.baseUrl,type:n.type})}),t=await e.json();e.ok&&(i(t.node),d(o()),u(""),N(null))}catch(e){console.log(`Error creating ${n.errorLabel} node:`,e)}finally{p(!1)}}},k=async()=>{v(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:c.baseUrl,apiKey:x,type:n.type,modelId:h.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{v(!1)}};return(0,s.jsx)(l.Modal,{isOpen:t,title:n.title,onClose:r,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(l.Input,{label:"Name",value:c.name,onChange:e=>d({...c,name:e.target.value}),placeholder:n.namePlaceholder,hint:"Required. A friendly label for this node."}),(0,s.jsx)(l.Input,{label:"Prefix",value:c.prefix,onChange:e=>d({...c,prefix:e.target.value}),placeholder:n.prefixPlaceholder,hint:"Required. Used as the provider prefix for model IDs."}),n.hasApiType&&(0,s.jsx)(l.Select,{label:"API Type",options:g,value:c.apiType,onChange:e=>d({...c,apiType:e.target.value})}),(0,s.jsx)(l.Input,{label:"Base URL",value:c.baseUrl,onChange:e=>d({...c,baseUrl:e.target.value}),placeholder:n.defaultBaseUrl,hint:n.baseUrlHint}),(0,s.jsx)(l.Input,{label:"API Key (for Check)",type:"password",value:x,onChange:e=>u(e.target.value)}),(0,s.jsx)(l.Input,{label:"Model ID (optional)",value:h,onChange:e=>f(e.target.value),placeholder:n.modelIdPlaceholder,hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[(0,s.jsx)(l.Button,{onClick:k,disabled:!x||y||!c.baseUrl.trim(),variant:"secondary",className:"w-full sm:w-auto",children:y?"Checking...":"Check"}),(()=>{if(!j)return null;let{valid:e,error:t,method:r}=j;return e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Badge,{variant:"success",children:"Valid"}),"chat"===r&&(0,s.jsx)("span",{className:"text-sm text-text-muted",children:"(via inference test)"})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)(l.Badge,{variant:"error",children:"Invalid"}),t&&(0,s.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,s.jsx)(l.Button,{onClick:w,fullWidth:!0,disabled:!c.name.trim()||!c.prefix.trim()||!c.baseUrl.trim()||m,children:m?"Creating...":"Create"}),(0,s.jsx)(l.Button,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})};function v({status:e,onReset:t}){if(!e||"CLOSED"===e.state)return null;let r={DEGRADED:{color:"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400",icon:"warning",label:"Degraded"},OPEN:{color:"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400",icon:"power",label:"Circuit Open"},HALF_OPEN:{color:"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",icon:"autorenew",label:"Recovering"}},a=r[e.state]||r.DEGRADED,l=e.retryAfterMs>0?` (${Math.ceil(e.retryAfterMs/1e3)}s)`:"";return(0,s.jsxs)("span",{className:`inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-medium ${a.color}`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:a.icon}),a.label,l,"OPEN"===e.state&&t&&(0,s.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),t()},className:"ml-0.5 hover:opacity-70 transition-opacity",title:"Reset circuit breaker",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"refresh"})})]})}function j(e,t,r){let a=[];if(e>0&&a.push((0,s.jsxs)(l.Badge,{variant:"success",size:"sm",dot:!0,children:[e," Connected"]},"connected")),t>0){let e=r?`${t} Error (${r})`:`${t} Error`;a.push((0,s.jsx)(l.Badge,{variant:"error",size:"sm",dot:!0,children:e},"error"))}return 0===a.length?(0,s.jsx)("span",{className:"text-text-muted",children:"No connections"}):a}function N(){let[e,t]=(0,a.useState)([]),[r,i]=(0,a.useState)([]),[n,m]=(0,a.useState)(!0),[p,h]=(0,a.useState)(!1),[b,g]=(0,a.useState)(!1),[v,j]=(0,a.useState)(!1),[N,A]=(0,a.useState)(null),[T,I]=(0,a.useState)(null),P=(0,x.i)(),O=(0,u.C)(e=>e.query),S=(0,u.C)(e=>e.register),E=(0,u.C)(e=>e.unregister),{getCircuitBreakerForProvider:$,resetCircuitBreaker:U}=function(){let[e,t]=(0,a.useState)([]),[r,s]=(0,a.useState)(!0),l=(0,a.useCallback)(async()=>{try{let e=await fetch("/api/providers/circuit-breakers"),r=await e.json();t(r.statuses||[])}catch(e){console.error("Failed to fetch circuit breakers:",e)}finally{s(!1)}},[]);return(0,a.useEffect)(()=>{let e=!1,r=async()=>{try{let r=await fetch("/api/providers/circuit-breakers"),s=await r.json();e||t(s.statuses||[])}catch(t){e||console.error("Failed to fetch circuit breakers:",t)}finally{e||s(!1)}};r();let a=setInterval(r,5e3);return()=>{e=!0,clearInterval(a)}},[]),{statuses:e,loading:r,getCircuitBreakerForProvider:t=>{if(t)return e.find(e=>e.name===t||e.name.startsWith(`${t}:`))},resetCircuitBreaker:async e=>{try{return await fetch(`/api/providers/circuit-breakers/${encodeURIComponent(e)}/reset`,{method:"POST"}),await l(),!0}catch(e){return console.error("Failed to reset circuit breaker:",e),!1}},refresh:l}}();(0,a.useEffect)(()=>(S("Search providers..."),()=>E()),[S,E]);let _=e=>!O.trim()||e.toLowerCase().includes(O.trim().toLowerCase());(0,a.useEffect)(()=>{(async()=>{try{let[e,r]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"})]),s=await e.json(),a=await r.json();e.ok&&t(s.connections||[]),r.ok&&i(a.nodes||[])}catch(e){console.log("Error fetching data:",e)}finally{m(!1)}})()},[]);let R=(0,a.useCallback)((t,r)=>{let s=Array.isArray(r)?r:[r],a=e.filter(e=>e.provider===t&&s.includes(e.authType)),l=e=>{let t=Object.entries(e).some(([e,t])=>e.startsWith("modelLock_")&&t&&new Date(t).getTime()>Date.now());return"unavailable"!==e.testStatus||t?e.testStatus:"active"},i=a.filter(e=>{let t=l(e);return"active"===t||"success"===t}).length,n=a.filter(e=>{let t=l(e);return"error"===t||"expired"===t||"unavailable"===t}),o=n.length,c=a.length,d=c>0&&a.every(e=>!1===e.isActive),m=n.sort((e,t)=>new Date(t.lastErrorAt||0)-new Date(e.lastErrorAt||0))[0];return{connected:i,error:o,total:c,errorCode:m?function(e){if(!e)return null;let t=e.lastErrorType;if("runtime_error"===t)return"RUNTIME";if("upstream_auth_error"===t||"auth_missing"===t||"token_refresh_failed"===t||"token_expired"===t)return"AUTH";if("upstream_rate_limited"===t)return"429";if("upstream_unavailable"===t)return"5XX";if("network_error"===t)return"NET";let r=Number(e.errorCode);if(Number.isFinite(r)&&r>=400)return String(r);let s=function(e){if(!e)return null;let t=e.match(/\b([45]\d{2})\b/);return t?t[1]:"ERR"}(e.lastError);if("401"===s||"403"===s)return"AUTH";if(s&&"ERR"!==s)return s;let a=(e.lastError||"").toLowerCase();return a.includes("runtime")||a.includes("not runnable")||a.includes("not installed")?"RUNTIME":a.includes("invalid api key")||a.includes("token invalid")||a.includes("revoked")||a.includes("unauthorized")?"AUTH":"ERR"}(m):null,errorTime:m?.lastErrorAt?function(e){if(!e)return"";let t=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(t<1)return"just now";if(t<60)return`${t}m ago`;let r=Math.floor(t/60);if(r<24)return`${r}h ago`;let s=Math.floor(r/24);return`${s}d ago`}(m.lastErrorAt):null,allDisabled:d}},[e]),B=async(r,s,a)=>{let l=Array.isArray(s)?s:[s],i=e=>e.provider===r&&l.includes(e.authType),n=e.filter(i);t(e=>e.map(e=>i(e)?{...e,isActive:a}:e)),await Promise.allSettled(n.map(e=>fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:a})})))},D=async(e,t=null)=>{if(!N){A("provider"===e?t:e),I(null);try{let r=await fetch("/api/providers/test-batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e,providerId:t})}),s=await r.json();if(I(s),s.summary){let{passed:e,failed:t,total:r}=s.summary;0===t?P.success(`All ${r} tests passed`):P.warning(`${e}/${r} passed, ${t} failed`)}}catch(e){I({error:"Test request failed"}),P.error("Provider test failed")}finally{A(null)}}},M=(0,a.useMemo)(()=>r.filter(e=>"openai-compatible"===e.type).map(e=>({id:e.id,name:e.name||"OpenAI Compatible",color:"#10A37F",textIcon:"OC",apiType:e.apiType})).filter(e=>_(e.name)),[r,_]),z=(0,a.useMemo)(()=>r.filter(e=>"anthropic-compatible"===e.type).map(e=>({id:e.id,name:e.name||"Anthropic Compatible",color:"#D97757",textIcon:"AC"})).filter(e=>_(e.name)),[r,_]),F=(0,a.useMemo)(()=>{let e,t;return e=Object.entries(c.zN).filter(([,e])=>!e.hidden&&_(e.name)),t="oauth",[...e].sort(([e,r],[s,a])=>{let l=r.priority??999,i=a.priority??999;if(l!==i)return l-i;let n=R(e,t),o=R(s,t),c=+(n.connected>0),d=+(o.connected>0);return c!==d?d-c:(r.name||"").localeCompare(a.name||"")})},[_]),L=(0,a.useMemo)(()=>Object.entries(d.IS).filter(([,e])=>!e.hidden&&_(e.name)).sort(([,e],[,t])=>!!t.noAuth-!!e.noAuth),[_]),H=(0,a.useMemo)(()=>Object.entries(d.nJ).filter(([,e])=>!e.hidden&&_(e.name)&&(e.serviceKinds??["llm"]).includes("llm")).sort(([e,t],[r,s])=>{let a=t.priority??999,l=s.priority??999;if(a!==l)return a-l;let i=!!s.noAuth-!!t.noAuth;if(0!==i)return i;let n=R(e,o(t,e)).connected>0?0:1,c=R(r,o(s,r)).connected>0?0:1;return n!==c?n-c:(t.name||"").localeCompare(s.name||"")}),[_,R]),K=(0,a.useMemo)(()=>Object.entries(c.fg).filter(([,e])=>!e.hidden&&(e.serviceKinds??["llm"]).includes("llm")&&_(e.name)).sort(([e,t],[r,s])=>{let a=R(e,"apikey").total>0?0:1,l=R(r,"apikey").total>0?0:1;return a!==l?a-l:(t.name||"").localeCompare(s.name||"")}),[_,R]),J=(0,a.useMemo)(()=>Object.entries(d.br).filter(([,e])=>!e.hidden&&_(e.name)).sort(([e,t],[r,s])=>{let a=R(e,"cookie").total>0?0:1,l=R(r,"cookie").total>0?0:1;return a!==l?a-l:(t.name||"").localeCompare(s.name||"")}),[_,R]),W=!!O.trim(),q=W||p?K:K.slice(0,20),G=K.length-20;if(n)return(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(l.CardSkeleton,{}),(0,s.jsx)(l.CardSkeleton,{})]});let X=F.length>0||L.length>0||H.length>0||K.length>0||J.length>0||M.length>0||z.length>0;return(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[!X&&(0,s.jsxs)("div",{className:"text-center py-8 border border-dashed border-border rounded-xl",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[32px] text-text-muted mb-2",children:"search_off"}),(0,s.jsx)("p",{className:"text-text-muted text-sm",children:"No providers match your search"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["Custom Providers (OpenAI/Anthropic Compatible)"," "]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:w-auto",children:[(0,s.jsx)(l.Button,{size:"sm",icon:"add",onClick:()=>j(!0),className:"w-full sm:w-auto",children:"Add Anthropic Compatible"}),(0,s.jsx)(l.Button,{size:"sm",variant:"secondary",icon:"add",onClick:()=>g(!0),className:"w-full sm:w-auto",children:"Add OpenAI Compatible"})]})]}),0===M.length&&0===z.length?(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 py-2 border border-dashed border-border rounded-xl text-text-muted text-sm",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"extension"}),(0,s.jsx)("span",{children:"No custom providers — use buttons above to add OpenAI/Anthropic compatible endpoints"})]}):(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:[...M,...z].map(e=>(0,s.jsx)(k,{providerId:e.id,provider:e,stats:R(e.id,"apikey"),authType:"compatible",circuitBreaker:$(e.id),onResetCircuit:U,onToggle:t=>B(e.id,"apikey",t)},e.id))})]}),F.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:"OAuth Providers"}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsx)(f,{}),(0,s.jsxs)("button",{onClick:()=>D("oauth"),disabled:!!N,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"oauth"===N?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all OAuth connections","aria-label":"Test all OAuth connections",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[14px]${"oauth"===N?" animate-spin":""}`,children:"play_arrow"}),"oauth"===N?"Testing...":"Test All"]})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:F.map(([e,t])=>(0,s.jsx)(w,{providerId:e,provider:t,stats:R(e,"oauth"),authType:"oauth",circuitBreaker:$(e),onResetCircuit:U,onToggle:t=>B(e,"oauth",t)},e))})]}),(L.length>0||H.length>0)&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:"Free Tier Providers"}),(0,s.jsxs)("button",{onClick:()=>D("free"),disabled:!!N,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"free"===N?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all Free connections","aria-label":"Test all Free provider connections",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[14px]${"free"===N?" animate-spin":""}`,children:"play_arrow"}),"free"===N?"Testing...":"Test All"]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:[L.map(([e,t])=>{let r="kiro"===e?["oauth","apikey","api_key"]:"oauth";return(0,s.jsx)(w,{providerId:e,provider:t,stats:R(e,r),authType:"free",circuitBreaker:$(e),onResetCircuit:U,onToggle:t=>B(e,r,t)},e)}),H.map(([e,t])=>{let r=o(t,e);return(0,s.jsx)(k,{providerId:e,provider:t,stats:R(e,r),authType:Array.isArray(r)?r[0]??"apikey":r,onToggle:t=>B(e,r,t)},e)})]})]}),K.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["API Key Providers"," "]}),(0,s.jsxs)("button",{onClick:()=>D("apikey"),disabled:!!N,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"apikey"===N?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all API Key connections","aria-label":"Test all API Key connections",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[14px]${"apikey"===N?" animate-spin":""}`,children:"play_arrow"}),"apikey"===N?"Testing...":"Test All"]})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:q.map(([e,t])=>(0,s.jsx)(k,{providerId:e,provider:t,stats:R(e,"apikey"),authType:"apikey",onToggle:t=>B(e,"apikey",t)},e))}),!W&&!p&&G>0&&(0,s.jsxs)("button",{onClick:()=>h(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2.5 text-sm font-medium text-primary transition-colors hover:border-primary hover:bg-primary/5",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"expand_more"}),"Show all ",K.length," providers"]})]}),J.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-between",children:(0,s.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["Web Cookie Providers"," "]})}),(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:J.map(([e,t])=>(0,s.jsx)(k,{providerId:e,provider:t,stats:R(e,"cookie"),authType:"cookie",onToggle:t=>B(e,"cookie",t)},e))})]}),(0,s.jsx)(y,{variant:"openai",isOpen:b,onClose:()=>g(!1),onCreated:e=>{i(t=>[...t,e]),g(!1)}}),(0,s.jsx)(y,{variant:"anthropic",isOpen:v,onClose:()=>j(!1),onCreated:e=>{i(t=>[...t,e]),j(!1)}}),T&&(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-start justify-center px-3 pt-[6vh] sm:pt-[10vh]",onClick:()=>I(null),children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),(0,s.jsxs)("div",{className:"relative bg-surface border border-border rounded-xl w-full max-w-[600px] max-h-[86vh] sm:max-h-[80vh] overflow-y-auto shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between px-5 py-3 border-b border-border bg-surface/95 backdrop-blur-sm rounded-t-xl",children:[(0,s.jsx)("h3",{className:"font-semibold",children:"Test Results"}),(0,s.jsx)("button",{onClick:()=>I(null),className:"p-1 rounded-lg hover:bg-bg text-text-muted hover:text-text-main transition-colors","aria-label":"Close test results",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]}),(0,s.jsx)("div",{className:"p-5",children:(0,s.jsx)(C,{results:T})})]})]})]})}function w({providerId:e,provider:t,stats:r,authType:a,onToggle:n,circuitBreaker:o,onResetCircuit:c}){let{connected:d,error:m,errorCode:x,errorTime:u,allDisabled:h}=r,f=!!t.noAuth;return(0,s.jsx)(p(),{href:`/dashboard/providers/${e}`,className:"group min-w-0",children:(0,s.jsx)(l.Card,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${h?"opacity-50":""}`,children:(0,s.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("div",{className:"size-8 shrink-0 rounded-lg flex items-center justify-center",style:{backgroundColor:`${t.color?.length>7?t.color:t.color+"15"}`},children:(0,s.jsx)(i.A,{src:`/providers/${t.id}.webp`,alt:t.name,size:30,className:"object-contain rounded-lg max-w-[32px] max-h-[32px]",fallbackText:t.textIcon||t.id.slice(0,2).toUpperCase(),fallbackColor:t.color})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h3",{className:"truncate font-semibold",children:t.name}),(0,s.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 text-xs flex-wrap",children:h?(0,s.jsx)(l.Badge,{variant:"default",size:"sm",children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"pause_circle"}),"Disabled"]})}):f?(0,s.jsx)(l.Badge,{variant:"success",size:"sm",dot:!0,children:"Ready"}):(0,s.jsxs)(s.Fragment,{children:[j(d,m,x),o&&(0,s.jsx)(v,{status:o,onReset:()=>c(o?.name||e)}),u&&(0,s.jsx)("span",{className:"text-text-muted",children:u})]})})]})]}),(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:r.total>0&&(0,s.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),n(!!h)},children:(0,s.jsx)(l.Toggle,{size:"sm",checked:!h,onChange:()=>{},title:h?"Enable provider":"Disable provider"})})})]})})})}function k({providerId:e,provider:t,stats:r,authType:a,onToggle:o,circuitBreaker:c,onResetCircuit:m}){let{connected:x,error:u,errorCode:h,errorTime:f,allDisabled:b}=r,g=e.startsWith(d.JH),y=e.startsWith(d.DI);return(0,s.jsx)(p(),{href:`/dashboard/providers/${e}`,className:"group min-w-0",children:(0,s.jsx)(l.Card,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${b?"opacity-50":""}`,children:(0,s.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("div",{className:"size-8 shrink-0 rounded-lg flex items-center justify-center",style:{backgroundColor:`${t.color?.length>7?t.color:t.color+"15"}`},children:(0,s.jsx)(i.A,{src:g&&t.apiType?"responses"===t.apiType?"/providers/oai-r.webp":"/providers/oai-cc.webp":y?"/providers/anthropic-m.webp":(0,n.HY)(t.id),alt:t.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:t.textIcon||t.id.slice(0,2).toUpperCase(),fallbackColor:t.color})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h3",{className:"truncate font-semibold",children:t.name}),(0,s.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 text-xs flex-wrap",children:b?(0,s.jsx)(l.Badge,{variant:"default",size:"sm",children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"pause_circle"}),"Disabled"]})}):(0,s.jsxs)(s.Fragment,{children:[j(x,u,h),g&&(0,s.jsx)(l.Badge,{variant:"default",size:"sm",children:"responses"===t.apiType?"Responses":"Chat"}),y&&(0,s.jsx)(l.Badge,{variant:"default",size:"sm",children:"Messages"}),f&&(0,s.jsx)("span",{className:"text-text-muted",children:f})]})})]})]}),(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:r.total>0&&(0,s.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),o(!!b)},children:(0,s.jsx)(l.Toggle,{size:"sm",checked:!b,onChange:()=>{},title:b?"Enable provider":"Disable provider"})})})]})})})}function C({results:e}){if(e.error&&!e.results)return(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-red-500 text-[32px] mb-2 block",children:"error"}),(0,s.jsx)("p",{className:"text-sm text-red-400",children:e.error})]});let{summary:t,mode:r}=e,a=e.results||[];return(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-3",children:[t&&(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs mb-1 sm:gap-3",children:[(0,s.jsxs)("span",{className:"text-text-muted",children:[{oauth:"OAuth",free:"Free",apikey:"API Key",provider:"Provider",all:"All"}[r]||r," Test"]}),(0,s.jsxs)("span",{className:"px-2 py-0.5 rounded bg-emerald-500/15 text-emerald-400 font-medium",children:[t.passed," passed"]}),t.failed>0&&(0,s.jsxs)("span",{className:"px-2 py-0.5 rounded bg-red-500/15 text-red-400 font-medium",children:[t.failed," failed"]}),(0,s.jsxs)("span",{className:"text-text-muted sm:ml-auto",children:[t.total," tested"]})]}),a.map((e,t)=>(0,s.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2 rounded-lg bg-black/[0.03] px-3 py-2 text-xs dark:bg-white/[0.03] sm:flex-nowrap",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[16px] ${e.valid?"text-emerald-500":"text-red-500"}`,children:e.valid?"check_circle":"error"}),(0,s.jsxs)("div",{className:"min-w-0 flex-[1_1_160px]",children:[(0,s.jsx)("span",{className:"block truncate font-medium sm:inline",children:e.connectionName}),(0,s.jsxs)("span",{className:"block truncate text-text-muted sm:ml-1.5 sm:inline",children:["(",e.provider,")"]})]}),void 0!==e.latencyMs&&(0,s.jsxs)("span",{className:"shrink-0 text-text-muted font-mono tabular-nums",children:[e.latencyMs,"ms"]}),(0,s.jsx)("span",{className:`shrink-0 text-[10px] uppercase font-bold px-1.5 py-0.5 rounded ${e.valid?"bg-emerald-500/15 text-emerald-400":"bg-red-500/15 text-red-400"}`,children:e.valid?"OK":e.diagnosis?.type||"ERROR"})]},e.connectionId||t)),0===a.length&&(0,s.jsx)("div",{className:"text-center py-4 text-text-muted text-sm",children:"No active connections found for this group."})]})}},77048:(e,t,r)=>{Promise.resolve().then(r.bind(r,48504))}},e=>{e.O(0,[3885,2318,4385,2940,2147,3204,7358],()=>e(e.s=77048)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3826],{19327:(e,t,r)=>{Promise.resolve().then(r.bind(r,70665)),Promise.resolve().then(r.bind(r,47056))},70665:(e,t,r)=>{"use strict";r.d(t,{default:()=>O});var a=r(15102),s=r(82030),i=r(31704),l=r(79835);let n=new Set(["antigravity","gemini-cli"]),o="quotaCacheData",d="quotaAutoRefresh",c=[10,20,50,100],u=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],x=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}];function m(e){return e.name?.trim()||e.email?.trim()||e.displayName?.trim()||null}function h(e,t){let r=t[e.id]?.quotas?.[0];return r&&"number"==typeof r.remaining?r.remaining:1/0}function p(e){let t={};return e.forEach(e=>{t[e.id]=!0}),t}function b(e,t){let r=new Set(t.map(e=>e.id));return Object.fromEntries(Object.entries(e).filter(([e])=>r.has(e)))}async function g(e,t){return await e(t)}function f(){try{let e=window.localStorage.getItem(o);return e?JSON.parse(e):{}}catch(e){return console.error("Error reading quota cache:",e),{}}}function y(e,t){try{let r=f();r[e]={...t,cachedAt:new Date().toISOString()},window.localStorage.setItem(o,JSON.stringify(r))}catch(e){console.error("Error writing quota cache:",e)}}function v(e,t){return t&&0!==t?!e||e<0?100:e>=t?0:Math.round((t-e)/t*100):0}let w=[];function k({quotas:e=w,compact:t=!1,sortMode:r="default",showSortLabel:i=!1}){let[l,n]=(0,s.useState)(1),o=(0,s.useMemo)(()=>e.map((e,t)=>({...e,index:t,remaining:e?.remaining!==void 0?Math.max(0,Math.round(e.remaining)):e?.remainingPercentage!==void 0?Math.round(e.remainingPercentage):v(e?.used,e?.total)})),[e]),d=(0,s.useMemo)(()=>"remaining-asc"===r?o.toSorted((e,t)=>e.remaining-t.remaining||e.name.localeCompare(t.name)):"remaining-desc"===r?o.toSorted((e,t)=>t.remaining-e.remaining||e.name.localeCompare(t.name)):o,[o,r]),c=Math.max(1,Math.ceil(d.length/10)),[u,x]=(0,s.useState)(r),[m,h]=(0,s.useState)(e),[p,b]=(0,s.useState)(c);if(r!==u||e!==m?(x(r),h(e),b(c),n(1)):c!==p&&(b(c),n(e=>Math.min(e,c))),!e||0===e.length)return null;let g=d.slice((l-1)*10,10*l),f=0===d.length?0:(l-1)*10+1,y=Math.min(10*l,d.length),j=t?"py-1 px-1.5":"py-2 px-3",N=t?"text-[11px]":"text-sm",C=t?"text-[11px]":"text-sm",S=t?"text-[10px] leading-tight":"text-xs";return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"text-[10px] text-text-muted",children:[d.length," quota",d.length>1?"s":""]}),i&&(0,a.jsx)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1 text-[10px] text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:"Sorted by account remaining"})]}),(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsx)("table",{className:"w-full min-w-[420px] table-fixed text-left",children:(0,a.jsx)("tbody",{children:g.map(e=>{var r;let s=(r=e.remaining)>70?{text:"text-green-600 dark:text-green-400",bg:"bg-green-500",bgLight:"bg-green-500/10",emoji:"\uD83D\uDFE2"}:r>=30?{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-500",bgLight:"bg-yellow-500/10",emoji:"\uD83D\uDFE1"}:{text:"text-red-600 dark:text-red-400",bg:"bg-red-500",bgLight:"bg-red-500/10",emoji:"\uD83D\uDD34"},i=function(e){if(!e)return"-";try{let t="string"==typeof e?new Date(e):e,r=new Date,a=t-r;if(a<=0)return"-";let s=Math.ceil(a/6e4);if(s<60)return`${s}m`;let i=Math.floor(s/60),l=s%60;if(i<24)return`${i}h ${l}m`;let n=Math.floor(i/24);return`${n}d ${i%24}h ${l}m`}catch(e){return"-"}}(e.resetAt),l=function(e){if(!e)return null;try{let t=new Date(e),r=new Date,a=new Date(r.getFullYear(),r.getMonth(),r.getDate()),s=new Date(a);s.setDate(s.getDate()+1);let i="";i=t>=a&&t<s?"Today":t>=s&&t<new Date(s.getTime()+864e5)?"Tomorrow":t.toLocaleDateString("en-US",{month:"short",day:"numeric"});let l=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return`${i}, ${l}`}catch{return null}}(e.resetAt);return(0,a.jsxs)("tr",{className:"border-b border-black/5 dark:border-white/5 hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors",children:[(0,a.jsx)("td",{className:`${j} w-[30%]`,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,a.jsx)("span",{className:"text-[10px] shrink-0",children:s.emoji}),(0,a.jsx)("span",{className:`${N} font-medium text-text-primary truncate`,children:e.name})]})}),(0,a.jsx)("td",{className:`${j} w-[45%]`,children:(0,a.jsxs)("div",{className:t?"space-y-1":"space-y-1.5",children:[(0,a.jsx)("div",{className:`${t?"h-1":"h-1.5"} rounded-full overflow-hidden border ${s.bgLight} ${0===e.remaining?"border-black/10 dark:border-white/10":"border-transparent"}`,children:(0,a.jsx)("div",{className:`h-full transition-all duration-300 ${s.bg}`,style:{width:`${Math.min(e.remaining,100)}%`}})}),(0,a.jsxs)("div",{className:`flex items-center justify-between ${t?"text-[10px]":"text-xs"}`,children:[(0,a.jsxs)("span",{className:"text-text-muted",children:[e.used.toLocaleString()," / ",e.total>0?e.total.toLocaleString():"∞"]}),(0,a.jsxs)("span",{className:`font-medium ${s.text}`,children:[e.remaining,"%"]})]})]})}),(0,a.jsx)("td",{className:`${j} w-[25%]`,children:"-"!==i||l?t?(0,a.jsx)("div",{className:`${C} text-text-primary font-medium truncate`,title:l||"",children:"-"!==i?`in ${i}`:l}):(0,a.jsxs)("div",{className:"space-y-0.5",children:["-"!==i&&(0,a.jsxs)("div",{className:`${C} text-text-primary font-medium`,children:["in ",i]}),l&&(0,a.jsx)("div",{className:`${S} text-text-muted`,children:l})]}):(0,a.jsx)("div",{className:`${C} text-text-muted italic`,children:"N/A"})})]},`${e.name}-${e.index}`)})})})}),c>1&&(0,a.jsxs)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1.5 dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 text-[10px] text-text-muted",children:[(0,a.jsxs)("span",{children:["Showing ",f,"-",y," of ",d.length]}),(0,a.jsxs)("span",{children:["Page ",l," / ",c]})]}),(0,a.jsxs)("div",{className:"mt-1.5 flex items-center justify-end gap-1",children:[(0,a.jsx)("button",{type:"button",onClick:()=>n(e=>Math.max(1,e-1)),disabled:1===l,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Prev"}),(0,a.jsx)("button",{type:"button",onClick:()=>n(e=>Math.min(c,e+1)),disabled:l===c,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Next"})]})]})]})}var j=r(52252),N=r(18419),C=r(62758),S=r(92940),A=r(31038),$=r(21577);let E={"builder-id":"AWS Builder ID",idc:"IAM Identity Center",google:"Google",github:"GitHub",imported:"Imported Token",api_key:"API Key"},P={claude:"claudeAutoPing",codex:"codexAutoPing"},q={claude:"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",codex:"Auto-starts the next 5h Codex window after reset by sending a tiny gpt-5.5 request. Consumes a small amount of quota."};function D(e){return e.name?.trim()&&e.email?.trim()&&e.name.trim()!==e.email.trim()?e.email.trim():e.name?.trim()&&e.displayName?.trim()&&e.name.trim()!==e.displayName.trim()?e.displayName.trim():null}function M(e){let t=e.providerSpecificData?.region;if(t)return t;let r=e.providerSpecificData?.profileArn;return("string"==typeof r?r.split(":")[3]:"")||""}function T(e){if(!e)return"N/A";let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):"N/A"}function O(){let{copied:e,copy:t}=(0,$.C)(),[r,w]=(0,s.useState)([]),[O,I]=(0,s.useState)({}),[_,F]=(0,s.useState)({}),[L,z]=(0,s.useState)({}),[U,R]=(0,s.useState)(!0),[K,J]=(0,s.useState)({claude:{},codex:{}}),[G,H]=(0,s.useState)(null),[B,V]=(0,s.useState)(!1),[W,Y]=(0,s.useState)(!1),[Q,X]=(0,s.useState)(60),[Z,ee]=(0,s.useState)(!0),[et,er]=(0,s.useState)(null),[ea,es]=(0,s.useState)(null),[ei,el]=(0,s.useState)(null),[en,eo]=(0,s.useState)(null),[ed,ec]=(0,s.useState)(null),[eu,ex]=(0,s.useState)(!1),[em,eh]=(0,s.useState)(null),[ep,eb]=(0,s.useState)([]),[eg,ef]=(0,s.useState)("all"),[ey,ev]=(0,s.useState)([]),[ew,ek]=(0,s.useState)("all"),[ej,eN]=(0,s.useState)("all"),[eC,eS]=(0,s.useState)("default"),[eA,e$]=(0,s.useState)(!1),[eE,eP]=(0,s.useState)(!1),[eq,eD]=(0,s.useState)(!1),[eM,eT]=(0,s.useState)(!1),[eO,eI]=(0,s.useState)(1),[e_,eF]=(0,s.useState)(20),[eL,ez]=(0,s.useState)(String(20)),[eU,eR]=(0,s.useState)({page:1,pageSize:20,total:0,totalPages:1}),[eK,eJ]=(0,s.useState)({eligibleConnections:0,providerFilteredConnections:0}),eG=(0,s.useRef)(null),eH=(0,s.useRef)(null),eB=(0,s.useRef)(0),eV=(0,s.useCallback)(async(e=eO)=>{try{var t,r;let a=new URLSearchParams({page:String(e),pageSize:String(e_),accountStatus:ej,sort:"priority"});"all"!==eg&&a.set("provider",eg);let s=await fetch(`/api/providers/client?${a.toString()}`);if(!s.ok)throw Error("Failed to fetch connections");let i=await s.json(),l=i.connections||[],n=(t=i.pagination,t||{page:1,pageSize:e_,total:0,totalPages:1}),o=function(e,t=0){return e||{eligibleConnections:t,providerFilteredConnections:t}}(i.totals,l.length);return w(l),ev(i.providerOptions||[]),eR(n),eJ(o),eI((r=i.pagination,r?.page||e)),l}catch(e){return console.error("Error fetching connections:",e),w([]),ev([]),eR({page:1,pageSize:e_,total:0,totalPages:1}),eJ({eligibleConnections:0,providerFilteredConnections:0}),[]}},[ej,eA,eO,e_,eg]),eW=(0,s.useCallback)(async(e,t,{force:r=!1}={})=>{F(t=>({...t,[e]:!0})),z(t=>({...t,[e]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${t} (${e})`);let a=await fetch(`/api/usage/${e}${r?"?force=1":""}`);if(!a.ok){let r=(await a.json().catch(()=>({}))).error||a.statusText;if(404===a.status)return void console.warn(`[ProviderLimits] Connection not found for ${t}, skipping`);if(401===a.status){console.warn(`[ProviderLimits] Auth error for ${t}:`,r);let a={quotas:[],message:r};I(t=>({...t,[e]:a})),y(e,a);return}throw Error(`HTTP ${a.status}: ${r}`)}let s=await a.json();console.log(`[ProviderLimits] Got quota for ${t}:`,s);let i={quotas:function(e,t){if(!t||"object"!=typeof t)return[];let r=[];try{switch(e.toLowerCase()){case"github":default:t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"antigravity":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"codex":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,remaining:t.remaining,resetAt:t.resetAt||null})});break;case"kiro":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"qoder":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{("organization"!==e||t&&0!==(Number(t.total)||0))&&r.push({name:"user"===e?"Personal":"organization"===e?"Organization":e,used:t.used||0,total:t.total||0,unit:t.unit,resetAt:t.resetAt||null})});break;case"claude":t.message?r.push({name:"error",used:0,total:0,resetAt:null,message:t.message}):t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"vercel-ai-gateway":case"grok-cli":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"codebuddy-cn":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,recurring:!1!==t.recurring})});break;case"kimi":case"deepseek":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"freebuff":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,recurring:!1!==t.recurring})})}}catch(t){return console.error(`Error parsing quota data for ${e}:`,t),[]}let a=(0,l.KC)(e);if(a.length>0){let e=new Map(a.map((e,t)=>[e.id,t]));r.sort((t,r)=>{let a=t.modelKey||t.name,s=r.modelKey||r.name;return(e.get(a)??999)-(e.get(s)??999)})}return r}(t,s),plan:s.plan||null,message:s.message||null,raw:s};I(t=>({...t,[e]:i})),y(e,i)}catch(r){console.error(`[ProviderLimits] Error fetching quota for ${t} (${e}):`,r),z(t=>({...t,[e]:r.message||"Failed to fetch quota"}))}finally{F(t=>({...t,[e]:!1}))}},[]),eY=(0,s.useCallback)(async(e,t)=>{await eW(e,t,{force:!0}),H(new Date)},[eW]),eQ=(0,s.useCallback)(async(e,t)=>{if("codex"===t&&!ei){el(e),z(t=>({...t,[e]:null}));try{let r=await fetch(`/api/usage/${e}/codex-reset-credits`,{method:"POST"}),a=await r.json().catch(()=>({}));if(!r.ok)throw Error(a.message||a.error||a.code||"Failed to reset Codex limit");await eW(e,t),H(new Date)}catch(t){z(r=>({...r,[e]:t.message||"Failed to reset Codex limit"}))}finally{el(null)}}},[eW,ei]),eX=(0,s.useCallback)(async e=>{ec({connection:e,loading:!0,error:null,data:null});try{let t=await fetch(`/api/usage/${e.id}/codex-reset-credits`,{cache:"no-store"}),r=await t.json().catch(()=>({}));if(!t.ok)throw Error(r.error||r.message||"Failed to load Codex reset credits");let a=Array.isArray(r.credits)?[...r.credits]:[];a.sort((e,t)=>{let r=e.expiresAt?new Date(e.expiresAt).getTime():1/0,a=t.expiresAt?new Date(t.expiresAt).getTime():1/0;return r-a}),ec({connection:e,loading:!1,error:null,data:{...r,credits:a}})}catch(t){ec({connection:e,loading:!1,error:t.message||"Failed to load Codex reset credits",data:null})}},[]),eZ=(0,s.useCallback)(async e=>{if(confirm("Delete this connection?")){er(e);try{if((await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok){I(t=>{let r={...t};return delete r[e],r}),F(t=>{let r={...t};return delete r[e],r}),z(t=>{let r={...t};return delete r[e],r});try{let t=f();t[e]&&(delete t[e],window.localStorage.setItem(o,JSON.stringify(t)))}catch(e){console.error("Error deleting cache entry:",e)}await g(eV,eO)}}catch(e){console.error("Error deleting connection:",e)}finally{er(null)}}},[eV,eO]),e0=(0,s.useCallback)(async(e,t)=>{es(e);try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&(I(e=>({...e})),await g(eV,eO))}catch(e){console.error("Error updating connection status:",e)}finally{es(null)}},[eV,eO]),e1=(0,s.useCallback)(async e=>{if(!em?.id)return;let t=em.id,r=em.provider;try{(await fetch(`/api/providers/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await eV(),ex(!1),eh(null),A.wb.includes(r)&&await eW(t,r))}catch(e){console.error("Error saving connection:",e)}},[em,eV,eW]);(0,s.useEffect)(()=>{let e=!1;return fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.json()).then(t=>{!e&&t?.proxyPools&&eb(t.proxyPools)}).catch(()=>{}),()=>{e=!0}},[]);let e5=(0,s.useCallback)(async(e=!1)=>{if(W)return;Y(!0),X(60);let t=eB.current+=1,r=Math.round(10);try{let a=await eV(eO);F(p(a)),z(e=>b(e,a)),I(e=>b(e,a)),await Promise.all(a.filter(a=>e||"claude"!==a.provider||t%r==0).map(e=>eW(e.id,e.provider))),H(new Date)}catch(e){console.error("Error refreshing all providers:",e)}finally{Y(!1)}},[W,eV,eW,eO]);(0,s.useEffect)(()=>{(async()=>{ee(!0);let e=await eV(eO);ee(!1),F(p(e)),z(t=>b(t,e)),I(t=>b(t,e)),await Promise.all(e.map(e=>eW(e.id,e.provider))),H(new Date)})()},[eV,eW,eO]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem(d);R(null===e||"true"===e),V(!0)},[]),(0,s.useEffect)(()=>{B&&window.localStorage.setItem(d,String(U))},[U,B]),(0,s.useEffect)(()=>{fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():{}).then(e=>J({claude:e?.claudeAutoPing?.connections||{},codex:e?.codexAutoPing?.connections||{}})).catch(()=>{})},[]);let e2=(0,s.useCallback)(async(e,t,r)=>{let a=P[t];if(!a)return;let s={...K[t]||{},[e]:r};J({...K,[t]:s});try{let e=await fetch("/api/settings",{cache:"no-store"}),t={...(e.ok?await e.json():{})[a]||{},connections:s};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[a]:t})})}catch{J(K)}},[K]);(0,s.useEffect)(()=>{if(!B||!U){eG.current&&(clearInterval(eG.current),eG.current=null),eH.current&&(clearInterval(eH.current),eH.current=null);return}return eG.current=setInterval(()=>{e5()},6e4),eH.current=setInterval(()=>{X(e=>e<=1?60:e-1)},1e3),()=>{eG.current&&clearInterval(eG.current),eH.current&&clearInterval(eH.current)}},[U,e5,B]),(0,s.useEffect)(()=>{let e=()=>{document.hidden?(eG.current&&(clearInterval(eG.current),eG.current=null),eH.current&&(clearInterval(eH.current),eH.current=null)):U&&B&&(eG.current=setInterval(()=>e5(),6e4),eH.current=setInterval(()=>{X(e=>e<=1?60:e-1)},1e3))};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[U,e5,B]),(0,s.useEffect)(()=>{ek("all")},[eg]);let e3=(0,s.useMemo)(()=>eg&&n.has(eg)?(0,l.KC)(eg).map(e=>({id:e.id,name:e.name||e.id})):[],[eg]),e4=(0,s.useMemo)(()=>(function(e,t,r,a,s){if("codex"===a&&"default"!==s)return[...e].sort((e,r)=>{let a=h(e,t),i=h(r,t),l="remaining-asc"===s?a-i:i-a;return 0!==l?l:(m(e)||"").localeCompare(m(r)||"")});if(!r){let t=new Map;for(let r of e){let e=r.provider||"";t.has(e)||t.set(e,[]),t.get(e).push(r)}return Array.from(t.values()).flat()}let i=e=>{let r=(t[e.id]?.quotas||[]).map(e=>e.resetAt?new Date(e.resetAt).getTime():1/0).filter(e=>Number.isFinite(e));return r.length>0?Math.min(...r):1/0};return[...e].sort((e,t)=>{let r=i(e)-i(t);return 0!==r?r:(e.provider||"").localeCompare(t.provider||"")||(m(e)||"").localeCompare(m(t)||"")})})(r,O,eA,eg,eC),[r,O,eA,eg,eC]),e8=e=>{let t=O[e.id]?.quotas;return!!t?.length&&t.some(e=>!!e.total&&!(e.total<=0)&&5>=v(e.used,e.total))},e6=(0,s.useCallback)(async(e,t)=>{if(e.length&&!eq){eD(!0);try{await Promise.all(e.map(e=>fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})}))),await g(eV,eO)}catch(e){console.error("Error bulk toggling connections:",e)}finally{eD(!1)}}},[eq,eV,eO]),e9=(0,s.useMemo)(()=>e4.filter(e=>(function(e,t,r){if(e?.provider!=="codex")return!1;let a="string"==typeof t?.message?t.message:"",s="string"==typeof r?r:"";return a.includes("Usage API temporarily unavailable (401)")||a.includes("temporarily unavailable (401)")||a.includes("Codex connected")&&a.includes("401")||s.includes("temporarily unavailable (401)")||s.includes("HTTP 401")})(e,O[e.id],L[e.id])).map(e=>e.id),[e4,O,L]),e7=(0,s.useCallback)(async()=>{if(e9.length&&!eM&&confirm(`Delete ${e9.length} Codex connection(s) with "Usage API temporarily unavailable (401)"?`)){eT(!0);try{await Promise.all(e9.map(e=>fetch(`/api/providers/${e}`,{method:"DELETE"}))),I(e=>{let t={...e};for(let e of e9)delete t[e];return t}),F(e=>{let t={...e};for(let e of e9)delete t[e];return t}),z(e=>{let t={...e};for(let e of e9)delete t[e];return t});try{let e=f(),t=!1;for(let r of e9)e[r]&&(delete e[r],t=!0);t&&window.localStorage.setItem(o,JSON.stringify(e))}catch(e){console.error("Error deleting cache entries:",e)}await g(eV,eO)}catch(e){console.error("Error bulk deleting codex unavailable connections:",e)}finally{eT(!1)}}},[e9,eM,eV,eO]),te="all"===eg?"All providers":eg,tt=eK.eligibleConnections>0,tr=e4.length>0,ta=eK.eligibleConnections?eK.providerFilteredConnections?{icon:"filter_alt_off",title:"No Accounts On This Page",description:"Try moving to another page or refreshing the current filters."}:{icon:"filter_alt_off",title:"No Accounts Match Current Filters",description:"all"===eg?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===ej?"turned off":"active"===ej?"active":"matching"} accounts found for ${eg}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},ts=function(e){var t;let{start:r,end:a}=(t=e).total?{start:(t.page-1)*t.pageSize+1,end:Math.min(t.page*t.pageSize,t.total)}:{start:0,end:0};return`Showing ${r}-${a} of ${e.total}`}(eU),ti=!c.includes(e_);return Z||tt?Z||tr?(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-end",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>eP(e=>!e),className:"flex h-8 items-center justify-between gap-1 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-haspopup":"menu","aria-expanded":eE,title:"Filter quota providers",children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:["all"===eg?(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"apps"}):(0,a.jsx)(i.A,{src:`/providers/${eg}.webp`,alt:eg,size:18,className:"size-[18px] rounded object-contain",fallbackText:eg.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"truncate capitalize hidden lg:inline",children:te})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"expand_more"})]}),eE&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",className:"fixed inset-0 z-30 bg-transparent","aria-label":"Close provider filter",onClick:()=>eP(!1)}),(0,a.jsxs)("div",{className:"absolute left-0 z-40 mt-1.5 w-52 overflow-hidden rounded-xl border border-black/10 bg-surface/95 p-1 shadow-lg shadow-black/10 backdrop-blur dark:border-white/10 dark:bg-surface/95 sm:w-60",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>{"all"!==eg&&eI(1),ef("all"),eP(!1)},className:`flex w-full items-center gap-2 rounded-lg px-2.5 py-1.5 text-left text-xs transition-colors ${"all"===eg?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"apps"}),(0,a.jsx)("span",{className:"font-medium",children:"All providers"}),"all"===eg&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[16px]",children:"check"})]}),(0,a.jsx)("div",{className:"my-1 h-px bg-black/10 dark:bg-white/10"}),(0,a.jsx)("div",{className:"max-h-60 overflow-y-auto pr-0.5",children:ey.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{eg!==e&&eI(1),ef(e),eP(!1)},className:`flex w-full items-center gap-2 rounded-lg px-2.5 py-1.5 text-left text-xs transition-colors ${eg===e?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,a.jsx)(i.A,{src:`/providers/${e}.webp`,alt:e,size:18,className:"size-[18px] rounded object-contain",fallbackText:e.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"font-medium capitalize",children:e}),eg===e&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[16px]",children:"check"})]},e))})]})]})]}),(0,a.jsx)("select",{value:ej,onChange:e=>{let t=e.target.value;ej!==t&&eI(1),eN(t)},className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Filter accounts by status",children:u.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),"codex"===eg&&(0,a.jsx)("select",{value:eC,onChange:e=>eS(e.target.value),className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Sort Codex quotas by remaining",children:x.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),n.has(eg)&&e3.length>0&&(0,a.jsxs)("select",{value:ew,onChange:e=>ek(e.target.value),className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Filter quotas by model",children:[(0,a.jsx)("option",{value:"all",children:"All models"}),e3.map(e=>(0,a.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,a.jsxs)("button",{type:"button",onClick:()=>e$(e=>!e),"aria-pressed":eA,className:`flex h-8 shrink-0 items-center gap-1 rounded-lg border px-2 text-xs transition-colors ${eA?"border-amber-500/40 bg-amber-500/10 text-amber-500":"border-black/10 text-text-primary hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5"}`,title:"Sort accounts by earliest quota reset time",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"hourglass_top"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Expiring first"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{e6(e4.filter(e=>(e.isActive??!0)&&e8(e)).map(e=>e.id),!1)},disabled:eq,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-red-500/30 px-2 text-xs text-red-500 transition-colors hover:bg-red-500/10 disabled:opacity-50",title:"Disable connections with depleted quota on the current page",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"block"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Turn off Empty"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{e6(e4.filter(e=>!(e.isActive??!0)&&!e8(e)).map(e=>e.id),!0)},disabled:eq,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-emerald-500/30 px-2 text-xs text-emerald-500 transition-colors hover:bg-emerald-500/10 disabled:opacity-50",title:"Enable connections that still have quota on the current page",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"check_circle"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Turn on Available"})]}),"codex"===eg&&(0,a.jsxs)("button",{type:"button",onClick:e7,disabled:eM||0===e9.length,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-red-500/40 bg-red-500/10 px-2 text-xs text-red-600 dark:text-red-400 transition-colors hover:bg-red-500/20 disabled:opacity-40 disabled:cursor-not-allowed",title:e9.length>0?`Delete ${e9.length} Codex connection(s) with "Usage API temporarily unavailable (401)"`:"No Codex 401 unavailable connections on current page",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${eM?"animate-spin":""}`,children:eM?"progress_activity":"delete_sweep"}),(0,a.jsxs)("span",{className:"hidden sm:inline",children:["Delete 401 (",e9.length,")"]}),(0,a.jsxs)("span",{className:"sm:hidden",children:["401 (",e9.length,")"]})]}),(0,a.jsxs)("button",{onClick:()=>R(e=>!e),className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-black/10 px-2 text-xs transition-colors hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5",title:U?"Disable auto-refresh":"Enable auto-refresh",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${U?"text-primary":"text-text-muted"}`,children:U?"toggle_on":"toggle_off"}),(0,a.jsx)("span",{className:"hidden text-text-primary sm:inline",children:"Auto-refresh"}),U&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted tabular-nums",children:["(",Q,"s)"]})]}),(0,a.jsx)("button",{type:"button",onClick:()=>e5(!0),disabled:W,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-black/10 px-2 text-xs text-text-primary transition-colors hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5 disabled:opacity-50",title:"Refresh all",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${W?"animate-spin":""}`,children:"refresh"})})]})}),eA&&(0,a.jsx)("div",{className:"rounded-xl border border-amber-500/20 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-300",children:"Expiring-first currently reorders accounts inside the current page. Cross-page ordering still follows backend pagination."}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:e4.map(r=>{var s;let l,n,o,d=O[r.id],c=_[r.id],u=L[r.id],x=!1===r.isActive,h="codex"===r.provider,p=Number.isFinite(n="number"==typeof(l=d?.raw?.resetCredits?.availableCount)?l:Number(l))?Math.max(0,n):0,b=ei===r.id,g=et===r.id||ea===r.id||b;return(0,a.jsxs)(C.A,{padding:"none",className:`min-w-0 ${x?"opacity-60":""}`,children:[(0,a.jsx)("div",{className:"px-3 py-2 border-b border-black/10 dark:border-white/10",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)("div",{className:"w-8 h-8 shrink-0 rounded-md flex items-center justify-center overflow-hidden",children:(0,a.jsx)(i.A,{src:`/providers/${r.provider}.webp`,alt:r.provider,size:32,className:"object-contain",fallbackText:r.provider?.slice(0,2).toUpperCase()||"PR"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-text-primary capitalize truncate",children:r.provider}),m(r)?(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:m(r)}):null,D(r)?(0,a.jsx)("p",{className:"text-[11px] text-text-muted/80 truncate",children:D(r)}):null,"kiro"===r.provider&&(0,a.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[(0,a.jsx)("span",{className:"rounded-full bg-brand-500/10 px-2 py-0.5 text-[10px] font-semibold text-brand-600 dark:text-brand-300",children:(o=r.providerSpecificData?.authMethod)&&E[o]?E[o]:"api_key"===r.authType?"API Key":"OAuth"}),M(r)&&(0,a.jsx)("span",{className:"rounded-full bg-blue-500/10 px-2 py-0.5 text-[10px] font-semibold text-blue-600 dark:text-blue-400",children:M(r)}),(0,a.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-semibold ${x?"bg-surface-2 text-text-muted":"active"===r.testStatus||"success"===r.testStatus?"bg-green-500/10 text-green-600 dark:text-green-400":"error"===r.testStatus||"expired"===r.testStatus||"unavailable"===r.testStatus?"bg-red-500/10 text-red-600 dark:text-red-400":"bg-surface-2 text-text-muted"}`,children:x?"disabled":r.testStatus||"unknown"}),r.providerSpecificData?.profileArn&&(0,a.jsxs)("button",{type:"button",onClick:()=>t(r.providerSpecificData.profileArn,r.id),title:r.providerSpecificData.profileArn,className:"inline-flex max-w-full items-center gap-1 rounded-full border border-border-subtle px-2 py-0.5 text-[10px] text-text-muted transition-colors hover:text-primary",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:e===r.id?"check":"content_copy"}),(0,a.jsx)("code",{className:"truncate font-mono",children:r.providerSpecificData.profileArn})]})]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N.A,{text:p>0?`Use one Codex reset credit. Available: ${p}`:"No Codex reset credits available",children:(0,a.jsxs)("button",{type:"button",onClick:()=>eo({connection:r,resetCreditCount:p}),disabled:p<=0||c||g,"aria-label":p>0?`Use one Codex reset credit. ${p} available.`:"No Codex reset credits available",className:`flex h-8 min-w-10 items-center justify-center gap-1 rounded-lg border px-2 text-[11px] font-medium tabular-nums transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary/60 disabled:cursor-not-allowed disabled:opacity-60 ${p>0?"border-primary/30 bg-primary/5 text-primary hover:bg-primary/10":"border-black/10 bg-black/[0.02] text-text-muted dark:border-white/10 dark:bg-white/[0.03]"}`,children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[15px] ${b?"animate-spin":""}`,children:b?"progress_activity":"restart_alt"}),(0,a.jsx)("span",{children:p})]})}),(0,a.jsx)(N.A,{text:"View Codex reset credit expiry",children:(0,a.jsx)("button",{type:"button",onClick:()=>eX(r),disabled:c||g,"aria-label":"View Codex reset credit expiry",className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-muted transition-colors hover:bg-black/5 hover:text-primary disabled:cursor-not-allowed disabled:opacity-50 dark:border-white/10 dark:hover:bg-white/5",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[17px]",children:"schedule"})})})]}),P[r.provider]&&"oauth"===r.authType&&(0,a.jsx)(N.A,{text:q[r.provider],children:(0,a.jsx)("button",{type:"button",onClick:()=>e2(r.id,r.provider,K[r.provider]?.[r.id]!==!0),"aria-label":"Toggle auto-ping",className:`flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${K[r.provider]?.[r.id]===!0?"text-primary":"text-text-muted"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"})})}),(0,a.jsx)(N.A,{text:"Refresh quota",children:(0,a.jsx)("button",{type:"button",onClick:()=>eY(r.id,r.provider),disabled:c||g,"aria-label":"Refresh quota",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-black/5 dark:hover:bg-white/5 transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${c?"animate-spin":""}`,children:"refresh"})})}),(0,a.jsx)(N.A,{text:"Edit connection",children:(0,a.jsx)("button",{type:"button",onClick:()=>{eh(r),ex(!0)},disabled:g,"aria-label":"Edit connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})})}),(0,a.jsx)(N.A,{text:"Delete connection",children:(0,a.jsx)("button",{type:"button",onClick:()=>eZ(r.id),disabled:g,"aria-label":"Delete connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-red-500/10 text-red-500 transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] ${et===r.id?"animate-pulse":""}`,children:"delete"})})}),(0,a.jsx)("div",{className:"inline-flex items-center pl-0.5",title:r.isActive??!0?"Disable connection":"Enable connection",children:(0,a.jsx)(j.A,{size:"sm",checked:r.isActive??!0,disabled:g,onChange:e=>e0(r.id,e)})})]})]})}),(0,a.jsx)("div",{className:"px-2 py-1.5",children:c?(0,a.jsx)("div",{className:"text-center py-5 text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[28px] animate-spin",children:"progress_activity"})}):u?(0,a.jsxs)("div",{className:"text-center py-5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[28px] text-red-500",children:"error"}),(0,a.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:u})]}):d?.message?(0,a.jsx)("div",{className:"text-center py-5",children:(0,a.jsx)("p",{className:"text-xs text-text-muted",children:d.message})}):(0,a.jsx)(k,{quotas:(s=d?.quotas,Array.isArray(s)&&"all"!==ew&&ew?s.filter(e=>(e&&(e.modelKey||e.name)||"")===ew):s||[]),compact:!0,sortMode:"default",showSortLabel:"codex"===r.provider&&"default"!==eC})})]},r.id)})}),(0,a.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 dark:border-white/10 dark:bg-white/[0.03]",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted",children:ts}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("select",{value:ti?"custom":String(e_),onChange:e=>{let t=e.target.value;if("custom"===t)return;let r=Number.parseInt(t,10);Number.isFinite(r)&&(eI(1),eF(r),ez(String(r)))},className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Accounts per page",children:[c.map(e=>(0,a.jsxs)("option",{value:String(e),children:[e," / page"]},e)),(0,a.jsx)("option",{value:"custom",children:"Custom"})]}),(0,a.jsx)("input",{type:"number",min:"1",max:String(500),inputMode:"numeric",value:eL,onChange:e=>ez(e.target.value),onBlur:()=>{let e=Number.parseInt(eL,10);if(!Number.isFinite(e))return void ez(String(e_));let t=Math.min(500,Math.max(1,e));eI(1),eF(t),ez(String(t))},onKeyDown:e=>{if("Enter"!==e.key)return;let t=Number.parseInt(eL,10);if(!Number.isFinite(t))return void ez(String(e_));let r=Math.min(500,Math.max(1,t));eI(1),eF(r),ez(String(r))},className:"h-8 w-20 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Custom accounts per page",placeholder:"Custom"}),(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["Page ",eU.page," / ",eU.totalPages]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eI(1),disabled:eU.page<=1||Z||W,className:"flex h-8 items-center rounded-lg border border-black/10 px-3 text-xs text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"First Page"}),(0,a.jsx)("button",{type:"button",onClick:()=>eI(e=>Math.max(1,e-1)),disabled:eU.page<=1||Z||W,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5","aria-label":"Previous accounts page",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,a.jsx)("button",{type:"button",onClick:()=>eI(e=>Math.min(eU.totalPages,e+1)),disabled:eU.page>=eU.totalPages||Z||W,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5","aria-label":"Next accounts page",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})}),(0,a.jsx)("button",{type:"button",onClick:()=>eI(eU.totalPages),disabled:eU.page>=eU.totalPages||Z||W,className:"flex h-8 items-center rounded-lg border border-black/10 px-3 text-xs text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Last Page"})]})]})}),(0,a.jsx)(S.ConfirmModal,{isOpen:!!en,onClose:()=>{ei||eo(null)},onConfirm:async()=>{let e=en?.connection;e&&(await eQ(e.id,e.provider),eo(null))},title:"Reset Codex limit?",message:`Use 1 Codex reset credit for ${m(en?.connection||{})||"this account"}. This cannot be undone. Remaining credits: ${en?.resetCreditCount??0}.`,confirmText:"Reset limit",cancelText:"Cancel",variant:"danger",loading:!!ei}),ed&&(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"w-full max-w-2xl overflow-hidden rounded-2xl border border-black/15 bg-white shadow-2xl ring-1 ring-black/10 dark:border-white/15 dark:bg-neutral-950 dark:ring-white/10",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3 border-b border-black/10 bg-black/[0.03] px-4 py-3 dark:border-white/10 dark:bg-white/[0.04]",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"text-base font-semibold text-text-primary",children:"Codex Reset Credit Expiry"}),(0,a.jsx)("p",{className:"mt-0.5 truncate text-xs text-text-muted",children:m(ed.connection)||"Codex account"})]}),(0,a.jsx)("button",{type:"button",onClick:()=>ec(null),className:"flex h-8 w-8 items-center justify-center rounded-lg text-text-muted transition-colors hover:bg-black/5 hover:text-text-primary dark:hover:bg-white/5","aria-label":"Close reset credit expiry modal",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]}),(0,a.jsx)("div",{className:"max-h-[70vh] overflow-auto bg-white p-4 dark:bg-neutral-950",children:ed.loading?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[20px]",children:"progress_activity"}),"Loading reset credits..."]}):ed.error?(0,a.jsx)("div",{className:"rounded-xl border border-red-500/20 bg-red-500/10 px-3 py-2 text-sm text-red-600 dark:text-red-300",children:ed.error}):ed.data?.credits?.length?(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("span",{children:[ed.data.credits.length," reset credit",1===ed.data.credits.length?"":"s"]}),(0,a.jsxs)("span",{children:[ed.data.availableCount??0," available"]})]}),(0,a.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,a.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,a.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Status"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Granted At"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Expires At"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,a.jsx)("tbody",{children:ed.data.credits.map((e,t)=>(0,a.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,a.jsx)("td",{className:"px-3 py-2",children:(0,a.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:e.status||"unknown"})}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-muted",children:T(e.grantedAt)}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-primary",children:T(e.expiresAt)}),(0,a.jsx)("td",{className:"px-3 py-2 font-medium text-text-primary",children:function(e){if(!e)return"N/A";let t=new Date(e).getTime()-Date.now();if(!Number.isFinite(t))return"N/A";if(t<=0)return"Expired";let r=Math.ceil(t/36e5),a=Math.floor(r/24),s=r%24;return a>0?`${a}d ${s}h`:`${s}h`}(e.expiresAt)})]},`${e.status}-${e.expiresAt||t}`))})]})})]}):(0,a.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-8 text-center text-sm text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:"No reset credit details returned for this account."})})]})}),(0,a.jsx)(S.EditConnectionModal,{isOpen:eu,connection:em,proxyPools:ep,onSave:e1,onClose:()=>{ex(!1),eh(null)}})]}):(0,a.jsx)(C.A,{padding:"lg",children:(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:ta.icon}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:ta.title}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:ta.description})]})}):(0,a.jsx)(C.A,{padding:"lg",children:(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:"cloud_off"}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:"No Providers Connected"}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:"Connect to providers with OAuth to track your API quota limits and usage."})]})})}}},e=>{e.O(0,[3885,2318,4385,2940,2147,3204,7358],()=>e(e.s=19327)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9839],{27068:(e,t,a)=>{"use strict";a.d(t,{default:()=>m});var s=a(15102),r=a(82030),l=a(92940),n=a(21577),i=a(20264);let o={version:null,extras:{code:!1,ml:!1},available:["code","ml"],loading:!1};function c({rtkEnabled:e,handleRtkEnabled:t,headroomRunning:a,headroomStatusLabel:r,setShowHeadroomInstallModal:n,headroomEnabled:i,handleHeadroomEnabled:o,headroomStatus:d,headroomExtras:m,pendingExtras:x,codeAware:h,kompress:p,restartingProxy:u,toggleExtraActive:g,handleRemoveExtra:f,removingExtra:b,togglePendingExtra:j,handleInstallExtras:y,extrasActionLoading:v,extrasActionError:N,installLog:w,cavemanEnabled:C,visibleCavemanLevels:k,handleCavemanLevel:S,cavemanLevel:E,cavemanLevels:P,handleCavemanEnabled:T,ponytailEnabled:L,ponytailLevels:I,handlePonytailLevel:B,ponytailLevel:R,handlePonytailEnabled:M,pxpipeChipClass:U,pxpipeStatusLabel:O,setShowPxpipeModal:A,pxpipeStatus:H,pxpipeEnabled:G,handlePxpipeEnabled:$}){return(0,s.jsxs)(l.Card,{id:"rtk",children:[(0,s.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,s.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary",children:"bolt"}),"Token Saver"]})}),(0,s.jsxs)("div",{className:"flex items-center justify-between pt-2 pb-4 border-b border-border gap-4",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("p",{className:"font-medium",children:["Compress tool output"," ",(0,s.jsx)("a",{href:"https://github.com/rtk-ai/rtk",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(RTK)"})]}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"git/grep/ls/tree/logs → 60-90% fewer input tokens"})]}),(0,s.jsx)(l.Toggle,{checked:e,onChange:()=>t(!e)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between py-4 gap-4 flex-wrap",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,s.jsxs)("p",{className:"font-medium",children:["Compress context"," ",(0,s.jsx)("a",{href:"https://github.com/chopratejas/headroom",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Headroom)"})]}),(0,s.jsx)("span",{className:`text-xs px-2 py-0.5 rounded ${a?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:r}),(0,s.jsx)("button",{type:"button",onClick:()=>n(!0),className:"text-xs text-primary underline hover:opacity-80",children:a?"Manage":"Setup"})]}),(0,s.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Compress prompts via /v1/compress before routing to the model"})]}),(0,s.jsx)(l.Toggle,{checked:i,onChange:()=>o(!i)})]}),d.installed&&(0,s.jsxs)("div",{className:"mb-3 ml-1 pl-3 pb-4 border-l-2 border-border",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["Compression extras",m.version?` \xb7 v${m.version}`:"",":"]}),m.available.map(e=>{let t=!!m.extras[e],a=x.includes(e),r="code"===e?"tree-sitter AST compression for code responses":"Kompress-v2 HF model for prose/agentic traces (~+1GB)";if(t){let t="code"===e?h:p;return(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-xs px-2 py-1 rounded border border-success/40 bg-success/5 text-text",title:r,children:[(0,s.jsx)(l.Toggle,{size:"sm",checked:t,disabled:u,onChange:()=>g(e,!t)}),(0,s.jsxs)("span",{className:"font-medium",children:["[",e,"]"]}),(0,s.jsx)("button",{type:"button",onClick:()=>f(e),disabled:b===e,className:"ml-1 text-error underline hover:opacity-80 disabled:opacity-50",title:`Uninstall [${e}]`,children:b===e?"Uninstalling…":"Uninstall"})]},e)}return(0,s.jsxs)("label",{className:`flex items-center gap-1.5 text-xs px-2 py-1 rounded border cursor-pointer transition-colors ${a?"border-primary bg-primary/10 text-primary":"border-border text-text-muted hover:bg-surface-2"}`,title:r,children:[(0,s.jsx)("input",{type:"checkbox",className:"w-3 h-3",checked:a,onChange:()=>j(e)}),(0,s.jsxs)("span",{className:"font-medium",children:["[",e,"]"]}),(0,s.jsx)("span",{className:"opacity-70",children:"not installed"})]},e)}),x.length>0&&(0,s.jsx)("button",{onClick:y,disabled:v,className:"text-xs px-2.5 py-1 rounded bg-primary text-white hover:opacity-90 disabled:opacity-50",children:v?"Installing…":`Install [proxy,${x.join(",")}]`})]}),N&&(0,s.jsx)("p",{className:"text-xs text-error mt-1",children:N}),u&&(0,s.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Restarting proxy…"}),(v||b)&&w&&(0,s.jsx)("pre",{className:"mt-2 max-h-32 overflow-auto rounded bg-surface-2 p-2 text-[10px] leading-tight text-text-muted whitespace-pre-wrap",children:w}),(0,s.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Installing adds the package; use ",(0,s.jsx)("code",{children:"on"}),"/",(0,s.jsx)("code",{children:"off"})," ","to activate it (restarts the proxy). Default install is"," ",(0,s.jsx)("code",{children:"[proxy]"})," only (SmartCrusher for JSON). Adding"," ",(0,s.jsx)("code",{children:"[code]"})," enables AST compression (Python/JS/TS/Go/Rust/Java/C/C++/Perl). Adding ",(0,s.jsx)("code",{children:"[ml]"})," ","enables the Kompress-v2 HF model for prose/agentic traces but adds ~1 GB (torch + huggingface-hub)."]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between pt-4 border-t border-border gap-4 flex-wrap",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("p",{className:"font-medium",children:["Compress LLM output"," ",(0,s.jsx)("a",{href:"https://github.com/JuliusBrussee/caveman",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Caveman)"})]}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Terse-style system prompt → ~65% fewer output tokens (up to 87%)"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[C&&(0,s.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:k.map(e=>(0,s.jsx)("button",{onClick:()=>S(e.id),className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${E===e.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:e.desc,children:e.label},e.id))}),(0,s.jsx)("p",{className:"text-xs text-primary",children:P.find(e=>e.id===E)?.desc})]}),(0,s.jsx)(l.Toggle,{checked:C,onChange:()=>T(!C)})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between pt-4 mt-4 border-t border-border gap-4 flex-wrap",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("p",{className:"font-medium",children:["Lazy senior dev"," ",(0,s.jsx)("a",{href:"https://github.com/DietrichGebert/ponytail",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Ponytail)"})]}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Bias the model toward minimal code: YAGNI, reuse stdlib, deletion over addition"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[L&&(0,s.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:I.map(e=>(0,s.jsx)("button",{onClick:()=>B(e.id),className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${R===e.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:e.desc,children:e.label},e.id))}),(0,s.jsx)("p",{className:"text-xs text-primary",children:I.find(e=>e.id===R)?.desc})]}),(0,s.jsx)(l.Toggle,{checked:L,onChange:()=>M(!L)})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between pt-4 mt-4 border-t border-border gap-4 flex-wrap",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,s.jsxs)("p",{className:"font-medium",children:["Compress prompts as images"," ",(0,s.jsx)("a",{href:"https://github.com/teamchong/pxpipe",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(PXPIPE)"})]}),(0,s.jsx)("span",{className:`text-xs px-2 py-0.5 rounded ${U}`,children:O}),(0,s.jsx)("button",{type:"button",onClick:()=>A(!0),className:"text-xs text-primary underline hover:opacity-80",children:H.installed?"Manage":"Setup"}),(0,s.jsx)("a",{href:"/dashboard/pxpipe",className:"text-xs text-primary underline hover:opacity-80",children:"Dashboard"})]}),(0,s.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Transforms large textual context into optimized images before sending to the LLM. Ideal for huge prompts, tool outputs and long conversations."})]}),(0,s.jsx)(l.Toggle,{checked:G,disabled:!H.installed,onChange:()=>$(!G)})]})]})}var d=a(29674);function m(){let[e,t]=(0,r.useState)(!0),[a,m]=(0,r.useState)(!1),[x,h]=(0,r.useState)("http://localhost:8787"),[p,u]=(0,r.useState)(!1),[g,f]=(0,r.useState)("full"),[b,j]=(0,r.useState)(!1),[y,v]=(0,r.useState)("full"),[N,w]=(0,r.useState)(!1),[C,k]=(0,r.useState)(!0),[S,E]=(0,r.useState)(!1),[P,T]=(0,r.useState)({loopGuard:!0,circuitBreaker:!0,semaphore:!0}),[L,I]=(0,r.useState)(i.kk),{copied:B,copy:R}=(0,n.C)(),M=async e=>{try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch(e){console.log("Error updating setting:",e)}},U=function({patchSetting:e,setHeadroomEnabled:t,headroomUrl:a,setHeadroomUrl:s,codeAware:l,kompress:n,setCodeAware:i,setKompress:c}){let[d,m]=(0,r.useState)({installed:!1,running:!1,python:null,loading:!0}),[x,h]=(0,r.useState)(!1),[p,u]=(0,r.useState)(!1),[g,f]=(0,r.useState)(""),[b,j]=(0,r.useState)(o),[y,v]=(0,r.useState)([]),[N,w]=(0,r.useState)(!1),[C,k]=(0,r.useState)(""),[S,E]=(0,r.useState)(null),[P,T]=(0,r.useState)(""),[L,I]=(0,r.useState)(null),[B,R]=(0,r.useState)(!1),M=(0,r.useRef)(null),U=(0,r.useCallback)(async()=>{m(e=>({...e,loading:!0}));try{let e=await fetch("/api/headroom/status",{headers:{"Cache-Control":"no-store"}}),t=await e.json();if(m({...t,loading:!1}),!t?.installed){j(o),v([]);return}try{let e=await fetch("/api/headroom/extras",{headers:{"Cache-Control":"no-store"}});if(!e.ok)throw Error("extras status failed");let t=await e.json();j(e=>({...e,version:t.version??null,extras:t.extras||o.extras,available:t.available||o.available,loading:!1}))}catch{j(o)}v([])}catch{m({installed:!1,running:!1,python:null,loading:!1}),j(o),v([])}},[]);(0,r.useEffect)(()=>()=>{M.current&&clearInterval(M.current)},[]);let O=(0,r.useCallback)(async()=>{f(""),u(!0);try{let e=await fetch("/api/headroom/start",{method:"POST"}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error||"Failed to start proxy");await U()}catch(e){f(e.message)}finally{u(!1)}},[U]),A=(0,r.useCallback)(async()=>{u(!0);try{await fetch("/api/headroom/stop",{method:"POST"}),await U()}finally{u(!1)}},[U]),H=(0,r.useCallback)(()=>{T(""),M.current&&clearInterval(M.current);let e=async()=>{try{let e=await fetch("/api/headroom/extras?log=1",{headers:{"Cache-Control":"no-store"}}),t=await e.json().catch(()=>({}));"string"==typeof t.log&&T(t.log)}catch{}};e(),M.current=setInterval(e,1500)},[]),G=(0,r.useCallback)(()=>{M.current&&(clearInterval(M.current),M.current=null)},[]),$=(0,r.useCallback)(async()=>{if(y.length){w(!0),k(""),H();try{let e=await fetch("/api/headroom/extras",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({extras:y})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error||"Install failed");j(e=>({...e,version:t.version??e.version,extras:t.extras||e.extras})),v([])}catch(e){k(e.message)}finally{G(),w(!1)}}},[y,H,G]),_=(0,r.useCallback)(async e=>{E(e),k(""),H();try{let t=await fetch("/api/headroom/extras",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({extras:[e]})}),a=await t.json().catch(()=>({}));if(!t.ok)throw Error(a.error||"Remove failed");j(e=>({...e,version:a.version??e.version,extras:a.extras||e.extras}))}catch(e){k(e.message)}finally{G(),E(null)}},[H,G]),D=(0,r.useCallback)(async(t,a)=>{if(k(""),"code"===t&&i(a),"ml"===t&&c(a),await e({["code"===t?"headroomCodeAware":"headroomKompress"]:a}),d.running){R(!0);try{let e=await fetch("/api/headroom/restart",{method:"POST"}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error||"Restart failed");await U()}catch(e){k(e.message)}finally{R(!1)}}},[d.running,e,U,i,c]),z=async()=>{let t=a.trim()||"http://localhost:8787";s(t),await e({headroomUrl:t}),U()};return{headroomStatus:d,showInstallModal:x,setShowInstallModal:h,actionLoading:p,actionError:g,headroomExtras:b,pendingExtras:y,extrasActionLoading:N,extrasActionError:C,removingExtra:S,installLog:P,extrasConfirm:L,setExtrasConfirm:I,codeAware:l,kompress:n,restartingProxy:B,refresh:U,start:O,stop:A,startLogPolling:H,toggleExtraActive:D,installExtras:$,removeExtra:_,toggleEnabled:r=>{let l=a.trim()||"http://localhost:8787";s(l),t(r),e({headroomEnabled:r,headroomUrl:l})},blurUrl:z,setPendingExtras:v}}({patchSetting:M,setHeadroomEnabled:m,headroomUrl:x,setHeadroomUrl:h,codeAware:N,kompress:C,setCodeAware:w,setKompress:k}),O=function({patchSetting:e,setPxpipeEnabled:t}){let[a,s]=(0,r.useState)({installed:!1,installing:!1,running:!1,version:null,loading:!0}),[l,n]=(0,r.useState)(null),[i,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),[m,x]=(0,r.useState)(""),[h,p]=(0,r.useState)(25e3),u=(0,r.useCallback)(async()=>{s(e=>({...e,loading:!0}));try{let e=await fetch("/api/pxpipe/status",{headers:{"Cache-Control":"no-store"}}),t=await e.json();s({...t,loading:!1}),"number"==typeof t.minChars&&p(t.minChars)}catch{s({installed:!1,installing:!1,running:!1,version:null,loading:!1})}},[]),g=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/pxpipe/health",{method:"POST"});n(await e.json())}catch(e){n({healthy:!1,checks:[],error:e.message})}},[]),f=(0,r.useCallback)(async e=>{x(""),d(!0);try{let t=await fetch(`/api/pxpipe/${e}`,{method:"POST"}),a=await t.json().catch(()=>({}));if(!t.ok)throw Error(a.error||`PXPIPE ${e} failed`);await u(),await g()}catch(e){x(e.message)}finally{d(!1)}},[g,u]);return{pxpipeStatus:a,pxpipeHealth:l,showModal:i,setShowModal:o,actionLoading:c,actionError:m,minChars:h,setMinChars:p,refresh:u,health:g,action:f,setEnabled:a=>{t(a),e({pxpipeEnabled:a})},blurMinChars:()=>{let t=Math.max(0,Number(h)||25e3);p(t),e({pxpipeMinChars:t})}}}({patchSetting:M,setPxpipeEnabled:E}),{headroomStatus:A,showInstallModal:H,setShowInstallModal:G,actionLoading:$,actionError:_,headroomExtras:D,pendingExtras:z,extrasActionLoading:J,extrasActionError:W,removingExtra:F,installLog:X,extrasConfirm:K,setExtrasConfirm:q,restartingProxy:Y,refresh:Q,start:V,stop:Z,toggleExtraActive:ee,installExtras:et,removeExtra:ea,toggleEnabled:es,blurUrl:er,setPendingExtras:el}=U,{pxpipeStatus:en,pxpipeHealth:ei,showModal:eo,setShowModal:ec,actionLoading:ed,actionError:em,minChars:ex,setMinChars:eh,refresh:ep,health:eu,action:eg,setEnabled:ef,blurMinChars:eb}=O;(0,r.useEffect)(()=>(0,i.oQ)(()=>I((0,i.kk)())),[]);let ej=d.hT.includes(L),ey=ej?d.ev:d.ev.filter(e=>!e.wenyan),ev=!ej&&d.ev.find(e=>e.id===g)?.wenyan?"ultra":g;(0,r.useEffect)(()=>{ev!==g&&M({cavemanLevel:ev})},[g,ev]);let eN=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({rtkEnabled:e})})).ok&&t(e)}catch(e){console.log("Error updating rtkEnabled:",e)}},ew=(e,t)=>{T(a=>({...a,[e]:t})),M({[`${e}Enabled`]:t})};(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/settings");if(e.ok){let a=await e.json();t(!1!==a.rtkEnabled),m(!!a.headroomEnabled),h(a.headroomUrl||"http://localhost:8787"),w(!0===a.headroomCodeAware),k(!1!==a.headroomKompress),u(!!a.cavemanEnabled),f(a.cavemanLevel||"full"),j(!!a.ponytailEnabled),v(a.ponytailLevel||"full"),E(!!a.pxpipeEnabled),"number"==typeof a.pxpipeMinChars&&eh(a.pxpipeMinChars),T({loopGuard:!1!==a.loopGuardEnabled,circuitBreaker:!1!==a.circuitBreakerEnabled,semaphore:!1!==a.semaphoreEnabled}),Q(),ep().then(eu)}}catch{}})()},[Q,ep,eu,eh]);let eC=!!A.running,ek=A.loading?"Checking…":eC?"Running":!1===A.localUrl||A.installed?!1!==A.localUrl?"Stopped":"External":"Not installed",eS=!1!==A.localUrl,eE=!!A.canStart,eP=eS&&!!A.managedPid,eT=ei?.healthy===!0,eL=en.loading?"Checking…":en.installing?"Installing…":en.installed?eT?"Healthy":en.running?"Running":"Stopped":"Not installed",eI=eT||en.running?"bg-success/15 text-success":"bg-warning/15 text-warning";return(0,s.jsxs)("div",{className:"space-y-6 p-6",children:[(0,s.jsx)(c,{rtkEnabled:e,handleRtkEnabled:eN,headroomRunning:eC,headroomStatusLabel:ek,setShowHeadroomInstallModal:G,headroomEnabled:a,handleHeadroomEnabled:es,headroomStatus:A,headroomExtras:D,pendingExtras:z,codeAware:N,kompress:C,restartingProxy:Y,toggleExtraActive:ee,handleRemoveExtra:e=>{q({title:`Remove [${e}]`,message:`Remove [${e}] and its packages?`,confirmText:"Remove",variant:"danger",onConfirm:()=>ea(e)})},removingExtra:F,togglePendingExtra:e=>{el(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},handleInstallExtras:()=>{if(0!==z.length){if(z.includes("ml"))return void q({title:"Install [ml]",message:"[ml] downloads ~1 GB (torch + huggingface-hub). Continue?",confirmText:"Install",variant:"primary",onConfirm:et});et()}},extrasActionLoading:J,extrasActionError:W,installLog:X,cavemanEnabled:p,visibleCavemanLevels:ey,handleCavemanLevel:e=>{f(e),M({cavemanLevel:e})},cavemanLevel:ev,cavemanLevels:d.ev,handleCavemanEnabled:e=>{u(e),M({cavemanEnabled:e})},ponytailEnabled:b,ponytailLevels:d.Nv,handlePonytailLevel:e=>{v(e),M({ponytailLevel:e})},ponytailLevel:y,handlePonytailEnabled:e=>{j(e),M({ponytailEnabled:e})},pxpipeChipClass:eI,pxpipeStatusLabel:eL,setShowPxpipeModal:ec,pxpipeStatus:en,pxpipeEnabled:S,handlePxpipeEnabled:ef}),(0,s.jsxs)(l.Card,{id:"guards",children:[(0,s.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,s.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary",children:"shield"}),"Guards & Shields"]})}),(0,s.jsxs)("div",{className:"flex items-center justify-between pt-2 pb-4 border-b border-border gap-4",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"font-medium",children:"Loop Guard"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Detects repeating tool call sequences and text-only planning loops. Injects corrections to prevent infinite agent run-loops."})]}),(0,s.jsx)(l.Toggle,{checked:P.loopGuard,onChange:()=>ew("loopGuard",!P.loopGuard)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between py-4 border-b border-border gap-4 flex-wrap",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"font-medium",children:"Circuit Breaker"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Temporarily halts upstream calls for offline or failing providers to prevent spamming and conserve connection resource."})]}),(0,s.jsx)(l.Toggle,{checked:P.circuitBreaker,onChange:()=>ew("circuitBreaker",!P.circuitBreaker)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between py-4 gap-4 flex-wrap",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"font-medium",children:"Semaphore (Concurrency Limiter)"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Enforces simultaneous request limits per provider account. Prevents rate-limits (429) and account blockings."})]}),(0,s.jsx)(l.Toggle,{checked:P.semaphore,onChange:()=>ew("semaphore",!P.semaphore)})]})]}),(0,s.jsx)(l.Modal,{isOpen:H,title:eC?"Headroom":"Setup Headroom",onClose:()=>G(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsx)("span",{children:"Status"}),(0,s.jsx)("span",{className:eC?"text-success":"text-warning",children:ek})]}),eC&&(0,s.jsx)("a",{href:"/api/headroom/proxy/dashboard",target:"_blank",rel:"noreferrer",className:"w-full rounded border border-border px-4 py-2 text-center text-sm hover:bg-surface-2",children:"Open Headroom Dashboard"}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Proxy URL"}),(0,s.jsx)(l.Input,{value:x,onChange:e=>h(e.target.value),onBlur:er,placeholder:"http://localhost:8787",className:"font-mono text-sm"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a local proxy for Start/Stop, or an external Docker sidecar like http://headroom:8787."})]}),eP?(0,s.jsx)(l.Button,{onClick:Z,variant:"ghost",fullWidth:!0,disabled:$,children:$?"Stopping…":"Stop Headroom"}):eC?(0,s.jsx)("p",{className:"text-sm text-success",children:"Headroom proxy is reachable. You can enable the token saver."}):eE?(0,s.jsx)(l.Button,{onClick:V,fullWidth:!0,disabled:$,children:$?"Starting…":"Start Headroom"}):eS?A.python?(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Install then click Start:"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("pre",{className:"flex-1 rounded bg-black/5 dark:bg-white/5 p-2 text-xs font-mono overflow-x-auto",children:'pip install "headroom-ai[proxy]"'}),(0,s.jsx)(l.Button,{size:"sm",variant:"ghost",onClick:()=>R('pip install "headroom-ai[proxy]"'),children:B?"Copied":"Copy"})]})]}):(0,s.jsx)("p",{className:"text-sm text-warning",children:"Python ≥ 3.10 required for local managed mode. Install Python first, or use an external proxy URL."}):(0,s.jsx)("p",{className:"text-sm text-warning",children:"Start Headroom separately at the configured URL, then recheck."}),_&&(0,s.jsx)("p",{className:"text-sm text-warning",children:_}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.Button,{onClick:()=>Q(),variant:"ghost",fullWidth:!0,children:"Recheck"}),(0,s.jsx)(l.Button,{onClick:()=>G(!1),fullWidth:!0,children:"Done"})]})]})}),(0,s.jsx)(l.Modal,{isOpen:eo,title:en.installed?"PXPIPE":"Setup PXPIPE",onClose:()=>ec(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Compress prompts using multimodal encoding. Runs in-process — no extra server or environment variables required."}),(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsx)("span",{children:"Status"}),(0,s.jsxs)("span",{className:eT||en.running?"text-success":"text-warning",children:[eL,en.version?` \xb7 v${en.version}`:""]})]}),ei?.checks?.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-1 rounded border border-border p-3",children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-1",children:"Health check"}),ei.checks.map(e=>(0,s.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,s.jsxs)("span",{className:e.ok?"text-success":"text-warning",children:[e.ok?"●":"○"," ",e.label]}),e.detail&&(0,s.jsx)("span",{className:"text-text-muted font-mono truncate max-w-[50%]",children:e.detail})]},e.id)),ei.error&&(0,s.jsx)("p",{className:"text-xs text-warning mt-1",children:ei.error})]}),en.installed?(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[en.running?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{onClick:()=>eg("restart"),variant:"ghost",disabled:ed,children:"Restart"}),(0,s.jsx)(l.Button,{onClick:()=>eg("stop"),variant:"ghost",disabled:ed,children:"Stop"})]}):(0,s.jsx)(l.Button,{onClick:()=>eg("start"),disabled:ed,children:ed?"Starting…":"Start"}),(0,s.jsx)(l.Button,{onClick:()=>eg("install"),variant:"ghost",disabled:ed,children:"Repair"}),(0,s.jsx)("a",{href:"/dashboard/pxpipe#logs",className:"col-span-2 rounded border border-border px-4 py-2 text-center text-sm hover:bg-surface-2",children:"Open Logs"})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("p",{className:"text-sm text-warning",children:"PXPIPE is not installed."}),(0,s.jsx)(l.Button,{onClick:()=>eg("install"),fullWidth:!0,disabled:ed||en.installing,children:ed||en.installing?"Installing…":"Install"}),(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Installs the npm package ",(0,s.jsx)("code",{className:"font-mono",children:"pxpipe-proxy"})," into the 9Router data directory. May take a few minutes."]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Minimum prompt size (chars)"}),(0,s.jsx)(l.Input,{value:String(ex),onChange:e=>eh(e.target.value),onBlur:eb,placeholder:"25000",className:"font-mono text-sm"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Requests smaller than this bypass PXPIPE and are sent as-is."})]}),em&&(0,s.jsx)("p",{className:"text-sm text-warning",children:em}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.Button,{onClick:()=>ep().then(eu),variant:"ghost",fullWidth:!0,children:"Recheck"}),(0,s.jsx)(l.Button,{onClick:()=>ec(!1),fullWidth:!0,children:"Done"})]})]})}),(0,s.jsx)(l.ConfirmModal,{isOpen:!!K,onClose:()=>q(null),onConfirm:()=>{let e=K?.onConfirm;q(null),e?.()},title:K?.title,message:K?.message,confirmText:K?.confirmText,variant:K?.variant})]})}},29674:(e,t,a)=>{"use strict";a.d(t,{Cp:()=>n,Hx:()=>l,Iv:()=>d,Nv:()=>x,RL:()=>c,ev:()=>m,fl:()=>i,hT:()=>s,oX:()=>r,t6:()=>o});let s=["zh-CN","zh-TW"],r=[{icon:"public",title:"Access Anywhere",desc:"Use your API from any network"},{icon:"group",title:"Share Endpoint",desc:"Share URL with team members"},{icon:"code",title:"Use in Cursor/Cline",desc:"Connect AI tools remotely"},{icon:"lock",title:"Encrypted",desc:"End-to-end TLS via Cloudflare"}],l=2e3,n=3e5,i=5e3,o=5,c=1e4,d=5e3,m=[{id:"lite",label:"Lite",desc:"Drop filler, keep grammar"},{id:"full",label:"Full",desc:"Drop articles, fragments OK"},{id:"ultra",label:"Ultra",desc:"Telegraphic, max compression"},{id:"wenyan-lite",label:"文 Lite",desc:"Classical Chinese, light compression",wenyan:!0},{id:"wenyan",label:"文 Full",desc:"Maximum 文言文, 80-90% reduction",wenyan:!0},{id:"wenyan-ultra",label:"文 Ultra",desc:"Extreme classical compression",wenyan:!0}],x=[{id:"lite",label:"Lite",desc:"Build asked, name lazier option"},{id:"full",label:"Full",desc:"Ladder enforced: stdlib/native first"},{id:"ultra",label:"Ultra",desc:"YAGNI extremist, deletion first"}]},58600:(e,t,a)=>{Promise.resolve().then(a.bind(a,27068))}},e=>{e.O(0,[3885,2318,4385,2940,2147,3204,7358],()=>e(e.s=58600)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,747,748,782,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5745,5922,6091,6102,6106,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9036,9056,9069,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,747,748,782,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5745,5922,6091,6102,6106,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9036,9056,9069,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,747,748,782,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5745,5922,6091,6102,6106,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9036,9056,9069,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,747,748,782,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5745,5922,6091,6102,6106,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9036,9056,9069,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,747,748,782,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5745,5922,6091,6102,6106,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9036,9056,9069,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,747,748,782,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5745,5922,6091,6102,6106,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9036,9056,9069,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,747,748,782,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5745,5922,6091,6102,6106,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9036,9056,9069,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,747,748,782,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5745,5922,6091,6102,6106,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9036,9056,9069,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,747,748,782,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5745,5922,6091,6102,6106,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9036,9056,9069,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,747,748,782,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5745,5922,6091,6102,6106,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9036,9056,9069,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,747,748,782,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5745,5922,6091,6102,6106,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9036,9056,9069,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,747,748,782,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5745,5922,6091,6102,6106,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9036,9056,9069,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);