polyrouter 1.0.13 → 1.0.14

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 (945) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +22 -19
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/prerender-manifest.json +4 -4
  5. package/app/.next-cli-build/required-server-files.json +2 -1
  6. package/app/.next-cli-build/routes-manifest.json +18 -0
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  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 +2 -2
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +2 -2
  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 +1 -1
  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 +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/realtime/page.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/realtime/page.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/realtime/page_client-reference-manifest.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +2 -2
  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 +1 -1
  84. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  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/_tree.segment.rsc +1 -1
  87. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  88. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  89. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  90. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  91. package/app/.next-cli-build/server/app/_not-found.rsc +7 -7
  92. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +7 -7
  93. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +7 -7
  94. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  95. package/app/.next-cli-build/server/app/api/analytics/installation/route.js +1 -1
  96. package/app/.next-cli-build/server/app/api/analytics/installation/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/setup-password/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/setup-password/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  114. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  116. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  120. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  126. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  128. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  130. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  132. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  134. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  136. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  138. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +3 -3
  140. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  142. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  144. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  146. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/mcp/chatgpt-web/route.js +1 -0
  180. package/app/.next-cli-build/server/app/api/mcp/chatgpt-web/route.js.nft.json +1 -0
  181. package/app/.next-cli-build/server/app/api/mcp/chatgpt-web/route_client-reference-manifest.js +1 -0
  182. package/app/.next-cli-build/server/app/api/mcp/chatgpt-web/status/route.js +1 -0
  183. package/app/.next-cli-build/server/app/api/mcp/chatgpt-web/status/route.js.nft.json +1 -0
  184. package/app/.next-cli-build/server/app/api/mcp/chatgpt-web/status/route_client-reference-manifest.js +1 -0
  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/custom/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/oauth/chatgpt-web/cookie/route.js +1 -0
  210. package/app/.next-cli-build/server/app/api/oauth/chatgpt-web/cookie/route.js.nft.json +1 -0
  211. package/app/.next-cli-build/server/app/api/oauth/chatgpt-web/cookie/route_client-reference-manifest.js +1 -0
  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 +1 -1
  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/iflow/cookie/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  267. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  269. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  271. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  273. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  275. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  277. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  279. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  281. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  283. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  285. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  287. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  289. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  291. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/realtime/authorize/route.js +1 -1
  293. package/app/.next-cli-build/server/app/api/realtime/authorize/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/realtime/tickets/route.js +1 -1
  295. package/app/.next-cli-build/server/app/api/realtime/tickets/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/settings/public-telemetry/route.js +1 -1
  301. package/app/.next-cli-build/server/app/api/settings/public-telemetry/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  307. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  313. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  319. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  321. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  325. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  331. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  333. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  335. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  343. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  344. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  345. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  347. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  349. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  350. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  351. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  352. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  353. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  355. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  356. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  357. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  358. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  359. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  360. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  361. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  362. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  363. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  365. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  367. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  368. package/app/.next-cli-build/server/app/api/v1/images/edits/route.js +1 -1
  369. package/app/.next-cli-build/server/app/api/v1/images/edits/route.js.nft.json +1 -1
  370. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  371. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  373. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  374. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  377. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  378. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  379. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  380. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  381. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  382. package/app/.next-cli-build/server/app/api/v1/rerank/route.js +1 -1
  383. package/app/.next-cli-build/server/app/api/v1/rerank/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  387. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  389. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  391. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  398. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  401. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  403. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  405. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  409. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  411. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  412. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  413. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  415. package/app/.next-cli-build/server/app/callback.html +1 -1
  416. package/app/.next-cli-build/server/app/callback.rsc +7 -7
  417. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +7 -7
  418. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  419. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +7 -7
  420. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  421. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +9 -9
  422. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +9 -9
  423. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +9 -9
  424. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  425. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  426. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +9 -9
  427. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +9 -9
  428. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +9 -9
  429. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  430. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  431. package/app/.next-cli-build/server/app/dashboard/combos.rsc +9 -9
  432. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +9 -9
  433. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +9 -9
  434. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  435. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  436. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +9 -9
  437. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +9 -9
  438. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +9 -9
  439. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  440. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  441. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +9 -9
  442. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +9 -9
  443. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +9 -9
  444. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  445. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  446. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +9 -9
  447. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +9 -9
  448. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +9 -9
  449. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  450. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  451. package/app/.next-cli-build/server/app/dashboard/profile.rsc +9 -9
  452. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +9 -9
  453. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +9 -9
  454. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  455. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  456. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +9 -9
  457. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +9 -9
  458. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +9 -9
  459. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  460. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  461. package/app/.next-cli-build/server/app/dashboard/providers.rsc +9 -9
  462. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +9 -9
  463. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +9 -9
  464. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  465. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  466. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +9 -9
  467. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +9 -9
  468. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +9 -9
  469. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  470. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  471. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +9 -9
  472. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +9 -9
  473. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +9 -9
  474. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  475. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  476. package/app/.next-cli-build/server/app/dashboard/quota.rsc +10 -10
  477. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +10 -10
  478. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +10 -10
  479. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  480. package/app/.next-cli-build/server/app/dashboard/realtime.html +1 -1
  481. package/app/.next-cli-build/server/app/dashboard/realtime.rsc +8 -8
  482. package/app/.next-cli-build/server/app/dashboard/realtime.segments/!KGRhc2hib2FyZCk/dashboard/realtime/__PAGE__.segment.rsc +8 -8
  483. package/app/.next-cli-build/server/app/dashboard/realtime.segments/_full.segment.rsc +8 -8
  484. package/app/.next-cli-build/server/app/dashboard/realtime.segments/_tree.segment.rsc +2 -2
  485. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  486. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  487. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  488. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  489. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +7 -7
  490. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +7 -7
  491. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  492. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +7 -7
  493. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  494. package/app/.next-cli-build/server/app/dashboard/skills.rsc +9 -9
  495. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +9 -9
  496. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +9 -9
  497. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  498. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  499. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +9 -9
  500. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +9 -9
  501. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +9 -9
  502. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  503. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  504. package/app/.next-cli-build/server/app/dashboard/translator.rsc +9 -9
  505. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +9 -9
  506. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +9 -9
  507. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  508. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  509. package/app/.next-cli-build/server/app/dashboard/usage.rsc +9 -9
  510. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +9 -9
  511. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +9 -9
  512. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  513. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  514. package/app/.next-cli-build/server/app/dashboard.rsc +9 -9
  515. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +9 -9
  516. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +9 -9
  517. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  518. package/app/.next-cli-build/server/app/index.html +1 -1
  519. package/app/.next-cli-build/server/app/index.rsc +7 -7
  520. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +7 -7
  521. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +7 -7
  522. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  523. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  524. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  525. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  526. package/app/.next-cli-build/server/app/landing.html +1 -1
  527. package/app/.next-cli-build/server/app/landing.rsc +8 -8
  528. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +8 -8
  529. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  530. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +8 -8
  531. package/app/.next-cli-build/server/app/login/page.js +1 -1
  532. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  533. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  534. package/app/.next-cli-build/server/app/login.html +1 -1
  535. package/app/.next-cli-build/server/app/login.rsc +8 -8
  536. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +8 -8
  537. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  538. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +8 -8
  539. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  540. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  541. package/app/.next-cli-build/server/app/page.js +1 -1
  542. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  543. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  544. package/app/.next-cli-build/server/app/privacy/page.js +1 -1
  545. package/app/.next-cli-build/server/app/privacy/page.js.nft.json +1 -1
  546. package/app/.next-cli-build/server/app/privacy/page_client-reference-manifest.js +1 -1
  547. package/app/.next-cli-build/server/app/privacy.html +1 -1
  548. package/app/.next-cli-build/server/app/privacy.rsc +7 -7
  549. package/app/.next-cli-build/server/app/privacy.segments/_full.segment.rsc +7 -7
  550. package/app/.next-cli-build/server/app/privacy.segments/_tree.segment.rsc +2 -2
  551. package/app/.next-cli-build/server/app/privacy.segments/privacy/__PAGE__.segment.rsc +8 -8
  552. package/app/.next-cli-build/server/app-paths-manifest.json +22 -19
  553. package/app/.next-cli-build/server/chunks/1522.js +4 -4
  554. package/app/.next-cli-build/server/chunks/1605.js +1 -1
  555. package/app/.next-cli-build/server/chunks/1829.js +1 -1
  556. package/app/.next-cli-build/server/chunks/1882.js +1 -1
  557. package/app/.next-cli-build/server/chunks/2112.js +1 -1
  558. package/app/.next-cli-build/server/chunks/2194.js +1 -1
  559. package/app/.next-cli-build/server/chunks/2268.js +1 -1
  560. package/app/.next-cli-build/server/chunks/2375.js +1 -0
  561. package/app/.next-cli-build/server/chunks/318.js +10 -2
  562. package/app/.next-cli-build/server/chunks/3289.js +1 -1
  563. package/app/.next-cli-build/server/chunks/3792.js +1 -0
  564. package/app/.next-cli-build/server/chunks/412.js +2 -2
  565. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  566. package/app/.next-cli-build/server/chunks/5699.js +1 -1
  567. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  568. package/app/.next-cli-build/server/chunks/615.js +1 -1
  569. package/app/.next-cli-build/server/chunks/6457.js +1 -1
  570. package/app/.next-cli-build/server/chunks/6922.js +1 -1
  571. package/app/.next-cli-build/server/chunks/7807.js +1 -1
  572. package/app/.next-cli-build/server/chunks/8145.js +1 -1
  573. package/app/.next-cli-build/server/chunks/827.js +1 -1
  574. package/app/.next-cli-build/server/chunks/869.js +1 -1
  575. package/app/.next-cli-build/server/chunks/8895.js +6 -6
  576. package/app/.next-cli-build/server/functions-config-manifest.json +7 -0
  577. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  578. package/app/.next-cli-build/server/middleware.js +1 -1
  579. package/app/.next-cli-build/server/pages/404.html +1 -1
  580. package/app/.next-cli-build/server/pages/500.html +1 -1
  581. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  582. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  583. package/app/.next-cli-build/static/VE1Ye0hvBwX_LI99E5LfB/_buildManifest.js +1 -0
  584. package/app/.next-cli-build/static/chunks/1321-2566b510365947a6.js +1 -0
  585. package/app/.next-cli-build/static/chunks/5497-2c340a8ad5b74632.js +7 -0
  586. package/app/.next-cli-build/static/chunks/9da6db1e-9e6e75406afc09b1.js +1 -0
  587. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-45ef91ede0133be6.js +12 -0
  588. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-d0bb692dac18758c.js → page-6cda9bac20c6ea61.js} +1 -1
  589. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-2c6137322ed41b37.js +1 -0
  590. package/app/.next-cli-build/static/chunks/app/_global-error/page-df528a2b0a2cc48b.js +1 -0
  591. package/app/.next-cli-build/static/chunks/app/api/analytics/installation/route-df528a2b0a2cc48b.js +1 -0
  592. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-df528a2b0a2cc48b.js +1 -0
  593. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-df528a2b0a2cc48b.js +1 -0
  594. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-df528a2b0a2cc48b.js +1 -0
  595. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-df528a2b0a2cc48b.js +1 -0
  596. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-df528a2b0a2cc48b.js +1 -0
  597. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-df528a2b0a2cc48b.js +1 -0
  598. package/app/.next-cli-build/static/chunks/app/api/auth/setup-password/route-df528a2b0a2cc48b.js +1 -0
  599. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-df528a2b0a2cc48b.js +1 -0
  600. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-df528a2b0a2cc48b.js +1 -0
  601. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-df528a2b0a2cc48b.js +1 -0
  602. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-df528a2b0a2cc48b.js +1 -0
  603. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-df528a2b0a2cc48b.js +1 -0
  604. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-df528a2b0a2cc48b.js +1 -0
  605. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-df528a2b0a2cc48b.js +1 -0
  606. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-df528a2b0a2cc48b.js +1 -0
  607. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-df528a2b0a2cc48b.js +1 -0
  608. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-df528a2b0a2cc48b.js +1 -0
  609. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-df528a2b0a2cc48b.js +1 -0
  610. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-df528a2b0a2cc48b.js +1 -0
  611. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-df528a2b0a2cc48b.js +1 -0
  612. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-df528a2b0a2cc48b.js +1 -0
  613. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-df528a2b0a2cc48b.js +1 -0
  614. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-df528a2b0a2cc48b.js +1 -0
  615. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-df528a2b0a2cc48b.js +1 -0
  616. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-df528a2b0a2cc48b.js +1 -0
  617. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-df528a2b0a2cc48b.js +1 -0
  618. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-df528a2b0a2cc48b.js +1 -0
  619. package/app/.next-cli-build/static/chunks/app/api/combos/route-df528a2b0a2cc48b.js +1 -0
  620. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-df528a2b0a2cc48b.js +1 -0
  621. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-df528a2b0a2cc48b.js +1 -0
  622. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-df528a2b0a2cc48b.js +1 -0
  623. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-df528a2b0a2cc48b.js +1 -0
  624. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-df528a2b0a2cc48b.js +1 -0
  625. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-df528a2b0a2cc48b.js +1 -0
  626. package/app/.next-cli-build/static/chunks/app/api/health/route-df528a2b0a2cc48b.js +1 -0
  627. package/app/.next-cli-build/static/chunks/app/api/init/route-df528a2b0a2cc48b.js +1 -0
  628. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-df528a2b0a2cc48b.js +1 -0
  629. package/app/.next-cli-build/static/chunks/app/api/keys/route-df528a2b0a2cc48b.js +1 -0
  630. package/app/.next-cli-build/static/chunks/app/api/locale/route-df528a2b0a2cc48b.js +1 -0
  631. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-df528a2b0a2cc48b.js +1 -0
  632. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-df528a2b0a2cc48b.js +1 -0
  633. package/app/.next-cli-build/static/chunks/app/api/mcp/chatgpt-web/route-df528a2b0a2cc48b.js +1 -0
  634. package/app/.next-cli-build/static/chunks/app/api/mcp/chatgpt-web/status/route-df528a2b0a2cc48b.js +1 -0
  635. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-df528a2b0a2cc48b.js +1 -0
  636. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-df528a2b0a2cc48b.js +1 -0
  637. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-df528a2b0a2cc48b.js +1 -0
  638. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-df528a2b0a2cc48b.js +1 -0
  639. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-df528a2b0a2cc48b.js +1 -0
  640. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-df528a2b0a2cc48b.js +1 -0
  641. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-df528a2b0a2cc48b.js +1 -0
  642. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-df528a2b0a2cc48b.js +1 -0
  643. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-df528a2b0a2cc48b.js +1 -0
  644. package/app/.next-cli-build/static/chunks/app/api/models/route-df528a2b0a2cc48b.js +1 -0
  645. package/app/.next-cli-build/static/chunks/app/api/models/test/route-df528a2b0a2cc48b.js +1 -0
  646. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-df528a2b0a2cc48b.js +1 -0
  647. package/app/.next-cli-build/static/chunks/app/api/oauth/chatgpt-web/cookie/route-df528a2b0a2cc48b.js +1 -0
  648. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-df528a2b0a2cc48b.js +1 -0
  649. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-df528a2b0a2cc48b.js +1 -0
  650. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-df528a2b0a2cc48b.js +1 -0
  651. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-df528a2b0a2cc48b.js +1 -0
  652. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-df528a2b0a2cc48b.js +1 -0
  653. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-df528a2b0a2cc48b.js +1 -0
  654. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-df528a2b0a2cc48b.js +1 -0
  655. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-df528a2b0a2cc48b.js +1 -0
  656. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-df528a2b0a2cc48b.js +1 -0
  657. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-df528a2b0a2cc48b.js +1 -0
  658. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-df528a2b0a2cc48b.js +1 -0
  659. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-df528a2b0a2cc48b.js +1 -0
  660. package/app/.next-cli-build/static/chunks/app/api/pricing/route-df528a2b0a2cc48b.js +1 -0
  661. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-df528a2b0a2cc48b.js +1 -0
  662. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-df528a2b0a2cc48b.js +1 -0
  663. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-df528a2b0a2cc48b.js +1 -0
  664. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-df528a2b0a2cc48b.js +1 -0
  665. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-df528a2b0a2cc48b.js +1 -0
  666. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-df528a2b0a2cc48b.js +1 -0
  667. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-df528a2b0a2cc48b.js +1 -0
  668. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-df528a2b0a2cc48b.js +1 -0
  669. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-df528a2b0a2cc48b.js +1 -0
  670. package/app/.next-cli-build/static/chunks/app/api/providers/route-df528a2b0a2cc48b.js +1 -0
  671. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-df528a2b0a2cc48b.js +1 -0
  672. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-df528a2b0a2cc48b.js +1 -0
  673. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-df528a2b0a2cc48b.js +1 -0
  674. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-df528a2b0a2cc48b.js +1 -0
  675. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-df528a2b0a2cc48b.js +1 -0
  676. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-df528a2b0a2cc48b.js +1 -0
  677. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-df528a2b0a2cc48b.js +1 -0
  678. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-df528a2b0a2cc48b.js +1 -0
  679. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-df528a2b0a2cc48b.js +1 -0
  680. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-df528a2b0a2cc48b.js +1 -0
  681. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-df528a2b0a2cc48b.js +1 -0
  682. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-df528a2b0a2cc48b.js +1 -0
  683. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-df528a2b0a2cc48b.js +1 -0
  684. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-df528a2b0a2cc48b.js +1 -0
  685. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-df528a2b0a2cc48b.js +1 -0
  686. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-df528a2b0a2cc48b.js +1 -0
  687. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-df528a2b0a2cc48b.js +1 -0
  688. package/app/.next-cli-build/static/chunks/app/api/realtime/authorize/route-df528a2b0a2cc48b.js +1 -0
  689. package/app/.next-cli-build/static/chunks/app/api/realtime/tickets/route-df528a2b0a2cc48b.js +1 -0
  690. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-df528a2b0a2cc48b.js +1 -0
  691. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-df528a2b0a2cc48b.js +1 -0
  692. package/app/.next-cli-build/static/chunks/app/api/settings/public-telemetry/route-df528a2b0a2cc48b.js +1 -0
  693. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-df528a2b0a2cc48b.js +1 -0
  694. package/app/.next-cli-build/static/chunks/app/api/settings/route-df528a2b0a2cc48b.js +1 -0
  695. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-df528a2b0a2cc48b.js +1 -0
  696. package/app/.next-cli-build/static/chunks/app/api/tags/route-df528a2b0a2cc48b.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-df528a2b0a2cc48b.js +1 -0
  698. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-df528a2b0a2cc48b.js +1 -0
  699. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-df528a2b0a2cc48b.js +1 -0
  700. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-df528a2b0a2cc48b.js +1 -0
  701. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-df528a2b0a2cc48b.js +1 -0
  702. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-df528a2b0a2cc48b.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-df528a2b0a2cc48b.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-df528a2b0a2cc48b.js +1 -0
  705. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-df528a2b0a2cc48b.js +1 -0
  706. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-df528a2b0a2cc48b.js +1 -0
  707. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-df528a2b0a2cc48b.js +1 -0
  708. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-df528a2b0a2cc48b.js +1 -0
  709. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-df528a2b0a2cc48b.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-df528a2b0a2cc48b.js +1 -0
  711. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-df528a2b0a2cc48b.js +1 -0
  712. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-df528a2b0a2cc48b.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-df528a2b0a2cc48b.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-df528a2b0a2cc48b.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-df528a2b0a2cc48b.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-df528a2b0a2cc48b.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-df528a2b0a2cc48b.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-df528a2b0a2cc48b.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-df528a2b0a2cc48b.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-df528a2b0a2cc48b.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-df528a2b0a2cc48b.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-df528a2b0a2cc48b.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-df528a2b0a2cc48b.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-df528a2b0a2cc48b.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-df528a2b0a2cc48b.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/api/v1/images/edits/route-df528a2b0a2cc48b.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-df528a2b0a2cc48b.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-df528a2b0a2cc48b.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-df528a2b0a2cc48b.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-df528a2b0a2cc48b.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-df528a2b0a2cc48b.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-df528a2b0a2cc48b.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/v1/rerank/route-df528a2b0a2cc48b.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-df528a2b0a2cc48b.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-df528a2b0a2cc48b.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/v1/route-df528a2b0a2cc48b.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-df528a2b0a2cc48b.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-df528a2b0a2cc48b.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-df528a2b0a2cc48b.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-df528a2b0a2cc48b.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-df528a2b0a2cc48b.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-df528a2b0a2cc48b.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-df528a2b0a2cc48b.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-df528a2b0a2cc48b.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/version/route-df528a2b0a2cc48b.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-df528a2b0a2cc48b.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/version/update/route-df528a2b0a2cc48b.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/landing/page-8003579ac4a50ad7.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-df528a2b0a2cc48b.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/page-df528a2b0a2cc48b.js +1 -0
  751. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-df528a2b0a2cc48b.js +1 -0
  752. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-df528a2b0a2cc48b.js +1 -0
  753. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-df528a2b0a2cc48b.js +1 -0
  754. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-df528a2b0a2cc48b.js +1 -0
  755. package/app/.next-cli-build/static/css/bfcffc216f734185.css +1 -0
  756. package/app/custom-server.js +2 -0
  757. package/app/node_modules/baseline-browser-mapping/dist/index.cjs +1 -1
  758. package/app/node_modules/baseline-browser-mapping/package.json +3 -3
  759. package/app/node_modules/nanoid/package.json +1 -1
  760. package/app/node_modules/ws/lib/permessage-deflate.js +3 -1
  761. package/app/node_modules/ws/package.json +1 -1
  762. package/app/package.json +5 -3
  763. package/app/public/downloads/polyrouter-connector/README.txt +14 -0
  764. package/app/public/downloads/polyrouter-connector/background.js +138 -0
  765. package/app/public/downloads/polyrouter-connector/content.js +61 -0
  766. package/app/public/downloads/polyrouter-connector/icon.png +0 -0
  767. package/app/public/downloads/polyrouter-connector/manifest.json +38 -0
  768. package/app/public/downloads/polyrouter-connector/popup.css +99 -0
  769. package/app/public/downloads/polyrouter-connector/popup.html +36 -0
  770. package/app/public/downloads/polyrouter-connector/popup.js +9 -0
  771. package/app/public/downloads/polyrouter-connector.zip +0 -0
  772. package/app/server.js +1 -1
  773. package/package.json +1 -1
  774. package/app/.next-cli-build/server/chunks/2620.js +0 -1
  775. package/app/.next-cli-build/server/chunks/4185.js +0 -1
  776. package/app/.next-cli-build/static/chunks/1321-bdfb5e6d5dadcda7.js +0 -1
  777. package/app/.next-cli-build/static/chunks/5497-325815f573697f27.js +0 -7
  778. package/app/.next-cli-build/static/chunks/9da6db1e-976640ccbb1e41ba.js +0 -1
  779. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-6022aa84d8a2143d.js +0 -12
  780. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-4a8ae0d8807210fe.js +0 -1
  781. package/app/.next-cli-build/static/chunks/app/_global-error/page-0ba50b07487d53e1.js +0 -1
  782. package/app/.next-cli-build/static/chunks/app/api/analytics/installation/route-0ba50b07487d53e1.js +0 -1
  783. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-0ba50b07487d53e1.js +0 -1
  784. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-0ba50b07487d53e1.js +0 -1
  785. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-0ba50b07487d53e1.js +0 -1
  786. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-0ba50b07487d53e1.js +0 -1
  787. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-0ba50b07487d53e1.js +0 -1
  788. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-0ba50b07487d53e1.js +0 -1
  789. package/app/.next-cli-build/static/chunks/app/api/auth/setup-password/route-0ba50b07487d53e1.js +0 -1
  790. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-0ba50b07487d53e1.js +0 -1
  791. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-0ba50b07487d53e1.js +0 -1
  792. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-0ba50b07487d53e1.js +0 -1
  793. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-0ba50b07487d53e1.js +0 -1
  794. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-0ba50b07487d53e1.js +0 -1
  795. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-0ba50b07487d53e1.js +0 -1
  796. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-0ba50b07487d53e1.js +0 -1
  797. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-0ba50b07487d53e1.js +0 -1
  798. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-0ba50b07487d53e1.js +0 -1
  799. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-0ba50b07487d53e1.js +0 -1
  800. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-0ba50b07487d53e1.js +0 -1
  801. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-0ba50b07487d53e1.js +0 -1
  802. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-0ba50b07487d53e1.js +0 -1
  803. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-0ba50b07487d53e1.js +0 -1
  804. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-0ba50b07487d53e1.js +0 -1
  805. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-0ba50b07487d53e1.js +0 -1
  806. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-0ba50b07487d53e1.js +0 -1
  807. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-0ba50b07487d53e1.js +0 -1
  808. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-0ba50b07487d53e1.js +0 -1
  809. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-0ba50b07487d53e1.js +0 -1
  810. package/app/.next-cli-build/static/chunks/app/api/combos/route-0ba50b07487d53e1.js +0 -1
  811. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-0ba50b07487d53e1.js +0 -1
  812. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-0ba50b07487d53e1.js +0 -1
  813. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-0ba50b07487d53e1.js +0 -1
  814. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-0ba50b07487d53e1.js +0 -1
  815. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-0ba50b07487d53e1.js +0 -1
  816. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-0ba50b07487d53e1.js +0 -1
  817. package/app/.next-cli-build/static/chunks/app/api/health/route-0ba50b07487d53e1.js +0 -1
  818. package/app/.next-cli-build/static/chunks/app/api/init/route-0ba50b07487d53e1.js +0 -1
  819. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-0ba50b07487d53e1.js +0 -1
  820. package/app/.next-cli-build/static/chunks/app/api/keys/route-0ba50b07487d53e1.js +0 -1
  821. package/app/.next-cli-build/static/chunks/app/api/locale/route-0ba50b07487d53e1.js +0 -1
  822. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-0ba50b07487d53e1.js +0 -1
  823. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-0ba50b07487d53e1.js +0 -1
  824. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-0ba50b07487d53e1.js +0 -1
  825. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-0ba50b07487d53e1.js +0 -1
  826. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-0ba50b07487d53e1.js +0 -1
  827. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-0ba50b07487d53e1.js +0 -1
  828. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-0ba50b07487d53e1.js +0 -1
  829. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-0ba50b07487d53e1.js +0 -1
  830. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-0ba50b07487d53e1.js +0 -1
  831. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-0ba50b07487d53e1.js +0 -1
  832. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-0ba50b07487d53e1.js +0 -1
  833. package/app/.next-cli-build/static/chunks/app/api/models/route-0ba50b07487d53e1.js +0 -1
  834. package/app/.next-cli-build/static/chunks/app/api/models/test/route-0ba50b07487d53e1.js +0 -1
  835. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-0ba50b07487d53e1.js +0 -1
  836. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-0ba50b07487d53e1.js +0 -1
  837. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-0ba50b07487d53e1.js +0 -1
  838. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-0ba50b07487d53e1.js +0 -1
  839. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-0ba50b07487d53e1.js +0 -1
  840. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-0ba50b07487d53e1.js +0 -1
  841. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-0ba50b07487d53e1.js +0 -1
  842. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-0ba50b07487d53e1.js +0 -1
  843. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-0ba50b07487d53e1.js +0 -1
  844. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-0ba50b07487d53e1.js +0 -1
  845. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-0ba50b07487d53e1.js +0 -1
  846. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-0ba50b07487d53e1.js +0 -1
  847. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-0ba50b07487d53e1.js +0 -1
  848. package/app/.next-cli-build/static/chunks/app/api/pricing/route-0ba50b07487d53e1.js +0 -1
  849. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-0ba50b07487d53e1.js +0 -1
  850. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-0ba50b07487d53e1.js +0 -1
  851. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-0ba50b07487d53e1.js +0 -1
  852. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-0ba50b07487d53e1.js +0 -1
  853. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-0ba50b07487d53e1.js +0 -1
  854. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-0ba50b07487d53e1.js +0 -1
  855. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-0ba50b07487d53e1.js +0 -1
  856. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-0ba50b07487d53e1.js +0 -1
  857. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-0ba50b07487d53e1.js +0 -1
  858. package/app/.next-cli-build/static/chunks/app/api/providers/route-0ba50b07487d53e1.js +0 -1
  859. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-0ba50b07487d53e1.js +0 -1
  860. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-0ba50b07487d53e1.js +0 -1
  861. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-0ba50b07487d53e1.js +0 -1
  862. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-0ba50b07487d53e1.js +0 -1
  863. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-0ba50b07487d53e1.js +0 -1
  864. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-0ba50b07487d53e1.js +0 -1
  865. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-0ba50b07487d53e1.js +0 -1
  866. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-0ba50b07487d53e1.js +0 -1
  867. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-0ba50b07487d53e1.js +0 -1
  868. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-0ba50b07487d53e1.js +0 -1
  869. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-0ba50b07487d53e1.js +0 -1
  870. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-0ba50b07487d53e1.js +0 -1
  871. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-0ba50b07487d53e1.js +0 -1
  872. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-0ba50b07487d53e1.js +0 -1
  873. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-0ba50b07487d53e1.js +0 -1
  874. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-0ba50b07487d53e1.js +0 -1
  875. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-0ba50b07487d53e1.js +0 -1
  876. package/app/.next-cli-build/static/chunks/app/api/realtime/authorize/route-0ba50b07487d53e1.js +0 -1
  877. package/app/.next-cli-build/static/chunks/app/api/realtime/tickets/route-0ba50b07487d53e1.js +0 -1
  878. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-0ba50b07487d53e1.js +0 -1
  879. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-0ba50b07487d53e1.js +0 -1
  880. package/app/.next-cli-build/static/chunks/app/api/settings/public-telemetry/route-0ba50b07487d53e1.js +0 -1
  881. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-0ba50b07487d53e1.js +0 -1
  882. package/app/.next-cli-build/static/chunks/app/api/settings/route-0ba50b07487d53e1.js +0 -1
  883. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-0ba50b07487d53e1.js +0 -1
  884. package/app/.next-cli-build/static/chunks/app/api/tags/route-0ba50b07487d53e1.js +0 -1
  885. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-0ba50b07487d53e1.js +0 -1
  886. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-0ba50b07487d53e1.js +0 -1
  887. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-0ba50b07487d53e1.js +0 -1
  888. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-0ba50b07487d53e1.js +0 -1
  889. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-0ba50b07487d53e1.js +0 -1
  890. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-0ba50b07487d53e1.js +0 -1
  891. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-0ba50b07487d53e1.js +0 -1
  892. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-0ba50b07487d53e1.js +0 -1
  893. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-0ba50b07487d53e1.js +0 -1
  894. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-0ba50b07487d53e1.js +0 -1
  895. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-0ba50b07487d53e1.js +0 -1
  896. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-0ba50b07487d53e1.js +0 -1
  897. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-0ba50b07487d53e1.js +0 -1
  898. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-0ba50b07487d53e1.js +0 -1
  899. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-0ba50b07487d53e1.js +0 -1
  900. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-0ba50b07487d53e1.js +0 -1
  901. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-0ba50b07487d53e1.js +0 -1
  902. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-0ba50b07487d53e1.js +0 -1
  903. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-0ba50b07487d53e1.js +0 -1
  904. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-0ba50b07487d53e1.js +0 -1
  905. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-0ba50b07487d53e1.js +0 -1
  906. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-0ba50b07487d53e1.js +0 -1
  907. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-0ba50b07487d53e1.js +0 -1
  908. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-0ba50b07487d53e1.js +0 -1
  909. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-0ba50b07487d53e1.js +0 -1
  910. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-0ba50b07487d53e1.js +0 -1
  911. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-0ba50b07487d53e1.js +0 -1
  912. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-0ba50b07487d53e1.js +0 -1
  913. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-0ba50b07487d53e1.js +0 -1
  914. package/app/.next-cli-build/static/chunks/app/api/v1/images/edits/route-0ba50b07487d53e1.js +0 -1
  915. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-0ba50b07487d53e1.js +0 -1
  916. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-0ba50b07487d53e1.js +0 -1
  917. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-0ba50b07487d53e1.js +0 -1
  918. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-0ba50b07487d53e1.js +0 -1
  919. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-0ba50b07487d53e1.js +0 -1
  920. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-0ba50b07487d53e1.js +0 -1
  921. package/app/.next-cli-build/static/chunks/app/api/v1/rerank/route-0ba50b07487d53e1.js +0 -1
  922. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-0ba50b07487d53e1.js +0 -1
  923. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-0ba50b07487d53e1.js +0 -1
  924. package/app/.next-cli-build/static/chunks/app/api/v1/route-0ba50b07487d53e1.js +0 -1
  925. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-0ba50b07487d53e1.js +0 -1
  926. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-0ba50b07487d53e1.js +0 -1
  927. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-0ba50b07487d53e1.js +0 -1
  928. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-0ba50b07487d53e1.js +0 -1
  929. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-0ba50b07487d53e1.js +0 -1
  930. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-0ba50b07487d53e1.js +0 -1
  931. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-0ba50b07487d53e1.js +0 -1
  932. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-0ba50b07487d53e1.js +0 -1
  933. package/app/.next-cli-build/static/chunks/app/api/version/route-0ba50b07487d53e1.js +0 -1
  934. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-0ba50b07487d53e1.js +0 -1
  935. package/app/.next-cli-build/static/chunks/app/api/version/update/route-0ba50b07487d53e1.js +0 -1
  936. package/app/.next-cli-build/static/chunks/app/landing/page-153102f46b226989.js +0 -1
  937. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-0ba50b07487d53e1.js +0 -1
  938. package/app/.next-cli-build/static/chunks/app/page-0ba50b07487d53e1.js +0 -1
  939. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-0ba50b07487d53e1.js +0 -1
  940. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-0ba50b07487d53e1.js +0 -1
  941. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-0ba50b07487d53e1.js +0 -1
  942. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-0ba50b07487d53e1.js +0 -1
  943. package/app/.next-cli-build/static/css/cfbc2ef62ed21a21.css +0 -1
  944. package/app/.next-cli-build/static/kpszOnTsyBdW7PAPsg2JX/_buildManifest.js +0 -1
  945. /package/app/.next-cli-build/static/{kpszOnTsyBdW7PAPsg2JX → VE1Ye0hvBwX_LI99E5LfB}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- (()=>{var a={};a.id=2134,a.ids=[2134],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},18367:(a,b,c)=>{Promise.resolve().then(c.bind(c,54577))},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},52871:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},54577:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>O});var d=c(48249),e=c(67484),f=c(19099),g=c(2116),h=c.n(g),i=c(81220),j=c(29225),k=c(50412),l=c(92592),m=c(91431),n=c(59160),o=c(18982);let p=["none","low","medium","high"],q=["none","thinking"],r=["none","low","medium","high","max"],s={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":r,"claude-budget":["none","low","medium","high","xhigh","max"],"gemini-level":["minimal","low","medium","high"],"gemini-budget":p,zai:q,qwen:p,kimi:r,deepseek:["none","high","max"],minimax:q,hunyuan:p,step:p},t=[{pattern:"*gpt-5.6-sol*",levels:["none","minimal","low","medium","high","xhigh","max"]},{pattern:"*codex*",levels:["low","medium","high","xhigh"]}];function u(a,b){let c=(0,n.nl)(a,b);if(!c.reasoning)return null;let d=t.find(a=>(0,o.gH)(a.pattern,b)),e=d?.levels||s[c.thinkingFormat]||p;return!1===c.thinkingCanDisable&&(e=e.filter(a=>"none"!==a)),e}var v=c(50377),w=c(29476),x=c(99258);function y({customModels:a=[],modelAliases:b={},providerAlias:c,builtInModels:d=[],type:e="llm",includeLegacyAliases:f=!0}){let g=new Set(d.map(a=>a.id)),h=new Set,i=[];for(let b of a){if(!b?.id||b.providerAlias!==c)continue;let a=b?.kind||b?.type||"llm";if(e&&a!==e||g.has(b.id))continue;let d=`${c}/${b.id}`;h.has(d)||(h.add(d),i.push({id:b.id,name:b.name||b.id,fullModel:d,source:"custom",type:a}))}if(!f)return i;let j=`${c}/`;for(let[a,c]of Object.entries(b||{})){if("string"!=typeof c||!c.startsWith(j))continue;let b=c.slice(j.length);!b||g.has(b)||h.has(c)||(h.add(c),i.push({id:b,alias:a,fullModel:c,source:"legacyAlias",type:e||"llm"}))}return i}var z=c(49885),A=c.n(z);function B({model:a,fullModel:b,alias:c,copied:e,onCopy:f,testStatus:g,isCustom:h,isFree:i,onDeleteAlias:j,onTest:l,isTesting:m,onDisable:n,caps:o,thinkingSuffix:p}){let q=p?`${b}(${p})`:b,r="ok"===g?"#22c55e":"error"===g?"#ef4444":void 0;return(0,d.jsx)("div",{className:`group min-w-0 max-w-full border px-3 py-2 ${"ok"===g?"border-green-500/40":"error"===g?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,d.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:r?{color:r}:void 0,children:"ok"===g?"check_circle":"error"===g?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,d.jsx)("code",{className:"max-w-[72vw] truncate bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:q}),(0,d.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[a.name&&(0,d.jsx)("span",{className:"truncate text-[9px] italic text-text-muted/70",children:a.name}),(0,d.jsx)(k.nh,{caps:o,colorOverride:"text-text-muted/70",size:12})]})]}),l&&(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:l,disabled:m,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${m?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:m?{animation:"spin 1s linear infinite"}:void 0,children:m?"progress_activity":"science"})}),(0,d.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:m?"Testing...":"Test"})]}),(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:()=>f(q,`model-${a.id}`),className:" p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:e===`model-${a.id}`?"check":"content_copy"})}),(0,d.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:e===`model-${a.id}`?"Copied!":"Copy"})]}),h?(0,d.jsx)("button",{onClick:j,className:"ml-auto 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,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):n?(0,d.jsx)("button",{onClick:n,className:"ml-auto 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,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function C({modelId:a,fullModel:b,copied:c,onCopy:e,onDeleteAlias:f,onTest:g,testStatus:h,isTesting:i}){let j="ok"===h?"#22c55e":"error"===h?"#ef4444":void 0;return(0,d.jsxs)("div",{className:`flex items-center gap-3 p-3 border ${"ok"===h?"border-green-500/40":"error"===h?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:j?{color:j}:void 0,children:"ok"===h?"check_circle":"error"===h?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:a}),(0,d.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 ",children:b}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a}`),className:"p-0.5 hover:bg-sidebar text-text-muted hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a}`?"check":"content_copy"})}),(0,d.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:c===`model-${a}`?"Copied!":"Copy"})]}),g&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:g,disabled:i,className:"p-0.5 hover:bg-sidebar text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:i?{animation:"spin 1s linear infinite"}:void 0,children:i?"progress_activity":"science"})}),(0,d.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:i?"Testing...":"Test"})]})]})]}),(0,d.jsx)("button",{onClick:f,className:"p-1 hover:bg-red-50 text-red-500",title:"Remove model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function D({providerStorageAlias:a,providerDisplayAlias:b,modelAliases:c,customModels:f,copied:g,onCopy:h,onDeleteAlias:i,onAddCustomModel:j,onDeleteCustomModel:l,connections:m,isAnthropic:n}){let[o,p]=(0,e.useState)(""),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)({}),z=async b=>{if(!u){v(b);try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${a}/${b}`})}),d=await c.json();x(a=>({...a,[b]:d.ok?"ok":"error"}))}catch{x(a=>({...a,[b]:"error"}))}finally{v(null)}}},A=y({customModels:f,modelAliases:c,providerAlias:a,type:"llm"}),B=async()=>{if(!o.trim()||q)return;let a=o.trim();if(A.some(b=>b.id===a))return void alert("Model already exists for this provider.");r(!0);try{await j(a),p("")}catch(a){console.log("Error adding model:",a)}finally{r(!1)}},E=async()=>{if(s)return;let a=m.find(a=>!1!==a.isActive);if(a){t(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||"Failed to import models");let d=c.models||[];if(0===d.length)return void alert("No models returned from /models.");let e=0;for(let a of d){let b=a.id||a.name||a.model;b&&(A.some(a=>a.id===b)||(await j(b),e+=1))}0===e&&alert("No new models were added.")}catch(a){console.log("Error importing models:",a)}finally{t(!1)}}},F=m.some(a=>!1!==a.isActive);return(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",n?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,d.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,d.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,d.jsx)("input",{id:"new-compatible-model-input",type:"text",value:o,onChange:a=>p(a.target.value),onKeyDown:a=>"Enter"===a.key&&B(),placeholder:n?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border bg-background focus:outline-none focus:border-primary"})]}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:B,disabled:!o.trim()||q,children:q?"Adding...":"Add"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"download",onClick:E,disabled:!F||s,children:s?"Importing...":"Import from /models"})]}),!F&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),A.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-3",children:A.map(({id:c,alias:e,source:f})=>(0,d.jsx)(C,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?l(c):i(e),onTest:m.length>0?()=>z(c):void 0,testStatus:w[c],isTesting:u===c},`${f}-${a}/${c}`))})]})}B.propTypes={model:A().shape({id:A().string.isRequired}).isRequired,fullModel:A().string.isRequired,alias:A().string,copied:A().string,onCopy:A().func.isRequired,testStatus:A().oneOf(["ok","error"]),isCustom:A().bool,isFree:A().bool,onDeleteAlias:A().func,onTest:A().func,isTesting:A().bool,onDisable:A().func,caps:A().object,thinkingSuffix:A().string},A().string.isRequired,A().string.isRequired,A().string,A().func.isRequired,A().func.isRequired,A().func,A().oneOf(["ok","error"]),A().bool,A().string.isRequired,A().object.isRequired,A().arrayOf(A().object),A().string,A().func.isRequired,A().func.isRequired,A().func.isRequired,A().func.isRequired,D.propTypes={providerStorageAlias:A().string.isRequired,providerDisplayAlias:A().string.isRequired,modelAliases:A().object.isRequired,customModels:A().arrayOf(A().object),copied:A().string,onCopy:A().func.isRequired,onDeleteAlias:A().func.isRequired,onAddCustomModel:A().func.isRequired,onDeleteCustomModel:A().func.isRequired,connections:A().arrayOf(A().shape({id:A().string,isActive:A().bool})).isRequired,isAnthropic:A().bool};var E=c(74875);function F({until:a}){let[b,c]=(0,e.useState)("");return b?(0,d.jsxs)("span",{className:"text-xs text-green-500 font-mono",children:["⏱ ",b]}):null}function G({connection:a,proxyPools:b,isOAuth:c,isFirst:f,isLast:g,onMoveUp:h,onMoveDown:i,onToggleActive:j,onUpdateProxy:l,onEdit:m,onDelete:n,oneByOneStatus:o=null,autoPing:p=null}){let[q,r]=(0,e.useState)(!1),s=new Map((b||[]).map(a=>[a.id,a])),t=a.providerSpecificData?.proxyPoolId||null,u=t?s.get(t):null,v=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,w=!!t||v,x=u?`Pool: ${u.name}`:t?`Pool: ${t} (inactive/missing)`:v?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",y=p?.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.",z="";if(u?.proxyUrl||a.providerSpecificData?.connectionProxyUrl){let b=u?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);z=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{z=b}}let A=u?.noProxy||a.providerSpecificData?.connectionNoProxy||"",B="default";u?.isActive===!0?B="success":(t||v)&&(B="error");let C=async a=>{r(!0);try{await l("__none__"===a?null:a)}finally{r(!1)}},D=a.authType||(c?"oauth":"apikey"),H="oauth"===D,I="cookie"===D,J=a.name?.trim()||a.email?.trim()||a.displayName?.trim()||(H?"OAuth Account":I?"Cookie Account":"API Key"),K=a.name?.trim()&&a.email?.trim()&&a.name.trim()!==a.email.trim()?a.email.trim():a.name?.trim()&&a.displayName?.trim()&&a.name.trim()!==a.displayName.trim()?a.displayName.trim():null,[L,M]=(0,e.useState)(!1),N=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,O="unavailable"!==a.testStatus||L?a.testStatus:"active",P=()=>o?"queued"===o.state?"queued":"testing"===o.state?"testing":"success"===o.state?"success":"failed"===o.state?o.error?`failed: ${o.error}`:"failed":null:null;return(0,d.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 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===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,d.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,d.jsx)("button",{onClick:h,disabled:f,className:`p-0.5 ${f?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,d.jsx)("button",{onClick:i,disabled:g,className:`p-0.5 ${g?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:I?"cookie":H?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:J}),K&&(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:K}),(0,d.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,d.jsx)(k.Ex,{variant:(0,E.g)(a.isActive,O),size:"sm",dot:!0,children:!1===a.isActive?"disabled":O||"Unknown"}),(0,d.jsx)(k.Ex,{variant:"default",size:"sm",children:H?"OAuth":I?"Cookie":"API Key"}),w&&(0,d.jsx)(k.Ex,{variant:B,size:"sm",children:"Proxy"}),L&&!1!==a.isActive&&(0,d.jsx)(F,{until:N}),a.lastError&&!1!==a.isActive&&(0,d.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:a.lastError,children:a.lastError}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]}),a.globalPriority&&(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",a.globalPriority]}),P()&&(0,d.jsx)(k.Ex,{variant:o?"success"===o.state?"success":"failed"===o.state?"error":"testing"===o.state?"primary":"default":"default",size:"sm",children:P()})]}),w&&(0,d.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,d.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:x,children:x}),z&&(0,d.jsx)("code",{className:"max-w-full truncate bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:z}),A&&(0,d.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:A,children:["no_proxy: ",A]})]})]})]}),(0,d.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,d.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(b||[]).length>0&&(0,d.jsxs)(k.ms,{trigger:(0,d.jsxs)("button",{className:`flex w-full flex-col items-center px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${w?"text-primary":"text-text-muted hover:text-primary"}`,disabled:q,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:q?"progress_activity":"lan"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),children:[(0,d.jsx)(k.tJ,{icon:null,label:"None",onClick:()=>C("__none__")}),(b||[]).map(a=>(0,d.jsx)(k.tJ,{icon:null,label:a.name,onClick:()=>C(a.id)},a.id))]}),p&&(0,d.jsx)(k.m_,{text:y,children:(0,d.jsxs)("button",{onClick:()=>p.onToggle(!p.on),className:`flex w-full flex-col items-center px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${p.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,d.jsxs)("button",{onClick:m,className:"flex flex-col items-center px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,d.jsxs)("button",{onClick:n,className:"flex flex-col items-center px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,d.jsx)(k.lM,{size:"sm",checked:a.isActive??!0,onChange:j,title:a.isActive??!0?"Disable connection":"Enable connection"})]})]})}F.propTypes={until:A().string.isRequired},G.propTypes={connection:A().shape({id:A().string,name:A().string,email:A().string,displayName:A().string,modelLockUntil:A().string,testStatus:A().string,isActive:A().bool,lastError:A().string,priority:A().number,globalPriority:A().number}).isRequired,proxyPools:A().arrayOf(A().shape({id:A().string,name:A().string,proxyUrl:A().string,noProxy:A().string,isActive:A().bool})),isOAuth:A().bool.isRequired,isFirst:A().bool.isRequired,isLast:A().bool.isRequired,onMoveUp:A().func.isRequired,onMoveDown:A().func.isRequired,onToggleActive:A().func.isRequired,onUpdateProxy:A().func,onEdit:A().func.isRequired,onDelete:A().func.isRequired,oneByOneStatus:A().shape({state:A().string,error:A().string}),autoPing:A().shape({on:A().bool,onToggle:A().func,provider:A().string})};let H=`name1|sk-key1
1
+ (()=>{var a={};a.id=2134,a.ids=[2134],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},18367:(a,b,c)=>{Promise.resolve().then(c.bind(c,54577))},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},21858:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>x,handler:()=>z,routeModule:()=>y});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v={children:["",{children:["(dashboard)",{children:["dashboard",{children:["providers",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,93110))),"/home/runner/work/polyrouter/polyrouter/src/app/(dashboard)/dashboard/providers/[id]/page.js"]}]},{"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},["new"]]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"/home/runner/work/polyrouter/polyrouter/src/app/(dashboard)/layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/home/runner/work/polyrouter/polyrouter/src/app/layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,w=(0,e.H)({tree:v,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),x=w.__next_app__,y=w.routeModule,z=w.handler},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},52871:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},54577:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>O});var d=c(48249),e=c(67484),f=c(19099),g=c(2116),h=c.n(g),i=c(81220),j=c(29225),k=c(50412),l=c(92592),m=c(91431),n=c(59160),o=c(18982);let p=["none","low","medium","high"],q=["none","thinking"],r=["none","low","medium","high","max"],s={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":r,"claude-budget":["none","low","medium","high","xhigh","max"],"gemini-level":["minimal","low","medium","high"],"gemini-budget":p,zai:q,qwen:p,kimi:r,deepseek:["none","high","max"],minimax:q,hunyuan:p,step:p},t=[{pattern:"*gpt-5.6-sol*",levels:["none","minimal","low","medium","high","xhigh","max"]},{pattern:"*codex*",levels:["low","medium","high","xhigh"]}];function u(a,b){let c=(0,n.nl)(a,b);if(!c.reasoning)return null;let d=t.find(a=>(0,o.gH)(a.pattern,b)),e=d?.levels||s[c.thinkingFormat]||p;return!1===c.thinkingCanDisable&&(e=e.filter(a=>"none"!==a)),e}var v=c(50377),w=c(29476),x=c(99258);function y({customModels:a=[],modelAliases:b={},providerAlias:c,builtInModels:d=[],type:e="llm",includeLegacyAliases:f=!0}){let g=new Set(d.map(a=>a.id)),h=new Set,i=[];for(let b of a){if(!b?.id||b.providerAlias!==c)continue;let a=b?.kind||b?.type||"llm";if(e&&a!==e||g.has(b.id))continue;let d=`${c}/${b.id}`;h.has(d)||(h.add(d),i.push({id:b.id,name:b.name||b.id,fullModel:d,source:"custom",type:a}))}if(!f)return i;let j=`${c}/`;for(let[a,c]of Object.entries(b||{})){if("string"!=typeof c||!c.startsWith(j))continue;let b=c.slice(j.length);!b||g.has(b)||h.has(c)||(h.add(c),i.push({id:b,alias:a,fullModel:c,source:"legacyAlias",type:e||"llm"}))}return i}var z=c(49885),A=c.n(z);function B({model:a,fullModel:b,alias:c,copied:e,onCopy:f,testStatus:g,isCustom:h,isFree:i,onDeleteAlias:j,onTest:l,isTesting:m,onDisable:n,caps:o,thinkingSuffix:p}){let q=p?`${b}(${p})`:b,r="ok"===g?"#22c55e":"error"===g?"#ef4444":void 0;return(0,d.jsx)("div",{className:`group min-w-0 max-w-full border px-3 py-2 ${"ok"===g?"border-green-500/40":"error"===g?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,d.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:r?{color:r}:void 0,children:"ok"===g?"check_circle":"error"===g?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,d.jsx)("code",{className:"max-w-[72vw] truncate bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:q}),(0,d.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[a.name&&(0,d.jsx)("span",{className:"truncate text-[9px] italic text-text-muted/70",children:a.name}),(0,d.jsx)(k.nh,{caps:o,colorOverride:"text-text-muted/70",size:12})]})]}),l&&(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:l,disabled:m,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${m?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:m?{animation:"spin 1s linear infinite"}:void 0,children:m?"progress_activity":"science"})}),(0,d.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:m?"Testing...":"Test"})]}),(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:()=>f(q,`model-${a.id}`),className:" p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:e===`model-${a.id}`?"check":"content_copy"})}),(0,d.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:e===`model-${a.id}`?"Copied!":"Copy"})]}),h?(0,d.jsx)("button",{onClick:j,className:"ml-auto 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,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):n?(0,d.jsx)("button",{onClick:n,className:"ml-auto 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,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function C({modelId:a,fullModel:b,copied:c,onCopy:e,onDeleteAlias:f,onTest:g,testStatus:h,isTesting:i}){let j="ok"===h?"#22c55e":"error"===h?"#ef4444":void 0;return(0,d.jsxs)("div",{className:`flex items-center gap-3 p-3 border ${"ok"===h?"border-green-500/40":"error"===h?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:j?{color:j}:void 0,children:"ok"===h?"check_circle":"error"===h?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:a}),(0,d.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 ",children:b}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a}`),className:"p-0.5 hover:bg-sidebar text-text-muted hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a}`?"check":"content_copy"})}),(0,d.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:c===`model-${a}`?"Copied!":"Copy"})]}),g&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:g,disabled:i,className:"p-0.5 hover:bg-sidebar text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:i?{animation:"spin 1s linear infinite"}:void 0,children:i?"progress_activity":"science"})}),(0,d.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:i?"Testing...":"Test"})]})]})]}),(0,d.jsx)("button",{onClick:f,className:"p-1 hover:bg-red-50 text-red-500",title:"Remove model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function D({providerStorageAlias:a,providerDisplayAlias:b,modelAliases:c,customModels:f,copied:g,onCopy:h,onDeleteAlias:i,onAddCustomModel:j,onDeleteCustomModel:l,connections:m,isAnthropic:n}){let[o,p]=(0,e.useState)(""),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)({}),z=async b=>{if(!u){v(b);try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${a}/${b}`})}),d=await c.json();x(a=>({...a,[b]:d.ok?"ok":"error"}))}catch{x(a=>({...a,[b]:"error"}))}finally{v(null)}}},A=y({customModels:f,modelAliases:c,providerAlias:a,type:"llm"}),B=async()=>{if(!o.trim()||q)return;let a=o.trim();if(A.some(b=>b.id===a))return void alert("Model already exists for this provider.");r(!0);try{await j(a),p("")}catch(a){console.log("Error adding model:",a)}finally{r(!1)}},E=async()=>{if(s)return;let a=m.find(a=>!1!==a.isActive);if(a){t(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||"Failed to import models");let d=c.models||[];if(0===d.length)return void alert("No models returned from /models.");let e=0;for(let a of d){let b=a.id||a.name||a.model;b&&(A.some(a=>a.id===b)||(await j(b),e+=1))}0===e&&alert("No new models were added.")}catch(a){console.log("Error importing models:",a)}finally{t(!1)}}},F=m.some(a=>!1!==a.isActive);return(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",n?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,d.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,d.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,d.jsx)("input",{id:"new-compatible-model-input",type:"text",value:o,onChange:a=>p(a.target.value),onKeyDown:a=>"Enter"===a.key&&B(),placeholder:n?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border bg-background focus:outline-none focus:border-primary"})]}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:B,disabled:!o.trim()||q,children:q?"Adding...":"Add"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"download",onClick:E,disabled:!F||s,children:s?"Importing...":"Import from /models"})]}),!F&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),A.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-3",children:A.map(({id:c,alias:e,source:f})=>(0,d.jsx)(C,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?l(c):i(e),onTest:m.length>0?()=>z(c):void 0,testStatus:w[c],isTesting:u===c},`${f}-${a}/${c}`))})]})}B.propTypes={model:A().shape({id:A().string.isRequired}).isRequired,fullModel:A().string.isRequired,alias:A().string,copied:A().string,onCopy:A().func.isRequired,testStatus:A().oneOf(["ok","error"]),isCustom:A().bool,isFree:A().bool,onDeleteAlias:A().func,onTest:A().func,isTesting:A().bool,onDisable:A().func,caps:A().object,thinkingSuffix:A().string},A().string.isRequired,A().string.isRequired,A().string,A().func.isRequired,A().func.isRequired,A().func,A().oneOf(["ok","error"]),A().bool,A().string.isRequired,A().object.isRequired,A().arrayOf(A().object),A().string,A().func.isRequired,A().func.isRequired,A().func.isRequired,A().func.isRequired,D.propTypes={providerStorageAlias:A().string.isRequired,providerDisplayAlias:A().string.isRequired,modelAliases:A().object.isRequired,customModels:A().arrayOf(A().object),copied:A().string,onCopy:A().func.isRequired,onDeleteAlias:A().func.isRequired,onAddCustomModel:A().func.isRequired,onDeleteCustomModel:A().func.isRequired,connections:A().arrayOf(A().shape({id:A().string,isActive:A().bool})).isRequired,isAnthropic:A().bool};var E=c(74875);function F({until:a}){let[b,c]=(0,e.useState)("");return b?(0,d.jsxs)("span",{className:"text-xs text-green-500 font-mono",children:["⏱ ",b]}):null}function G({connection:a,proxyPools:b,isOAuth:c,isFirst:f,isLast:g,onMoveUp:h,onMoveDown:i,onToggleActive:j,onUpdateProxy:l,onEdit:m,onDelete:n,oneByOneStatus:o=null,autoPing:p=null}){let[q,r]=(0,e.useState)(!1),s=new Map((b||[]).map(a=>[a.id,a])),t=a.providerSpecificData?.proxyPoolId||null,u=t?s.get(t):null,v=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,w=!!t||v,x=u?`Pool: ${u.name}`:t?`Pool: ${t} (inactive/missing)`:v?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",y=p?.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.",z="";if(u?.proxyUrl||a.providerSpecificData?.connectionProxyUrl){let b=u?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);z=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{z=b}}let A=u?.noProxy||a.providerSpecificData?.connectionNoProxy||"",B="default";u?.isActive===!0?B="success":(t||v)&&(B="error");let C=async a=>{r(!0);try{await l("__none__"===a?null:a)}finally{r(!1)}},D=a.authType||(c?"oauth":"apikey"),H="oauth"===D,I="cookie"===D,J=a.name?.trim()||a.email?.trim()||a.displayName?.trim()||(H?"OAuth Account":I?"Cookie Account":"API Key"),K=a.name?.trim()&&a.email?.trim()&&a.name.trim()!==a.email.trim()?a.email.trim():a.name?.trim()&&a.displayName?.trim()&&a.name.trim()!==a.displayName.trim()?a.displayName.trim():null,[L,M]=(0,e.useState)(!1),N=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,O="unavailable"!==a.testStatus||L?a.testStatus:"active",P=()=>o?"queued"===o.state?"queued":"testing"===o.state?"testing":"success"===o.state?"success":"failed"===o.state?o.error?`failed: ${o.error}`:"failed":null:null;return(0,d.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 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===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,d.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,d.jsx)("button",{onClick:h,disabled:f,className:`p-0.5 ${f?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,d.jsx)("button",{onClick:i,disabled:g,className:`p-0.5 ${g?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:I?"cookie":H?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:J}),K&&(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:K}),(0,d.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,d.jsx)(k.Ex,{variant:(0,E.g)(a.isActive,O),size:"sm",dot:!0,children:!1===a.isActive?"disabled":O||"Unknown"}),(0,d.jsx)(k.Ex,{variant:"default",size:"sm",children:H?"OAuth":I?"Cookie":"API Key"}),w&&(0,d.jsx)(k.Ex,{variant:B,size:"sm",children:"Proxy"}),L&&!1!==a.isActive&&(0,d.jsx)(F,{until:N}),a.lastError&&!1!==a.isActive&&(0,d.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:a.lastError,children:a.lastError}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]}),a.globalPriority&&(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",a.globalPriority]}),P()&&(0,d.jsx)(k.Ex,{variant:o?"success"===o.state?"success":"failed"===o.state?"error":"testing"===o.state?"primary":"default":"default",size:"sm",children:P()})]}),w&&(0,d.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,d.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:x,children:x}),z&&(0,d.jsx)("code",{className:"max-w-full truncate bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:z}),A&&(0,d.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:A,children:["no_proxy: ",A]})]})]})]}),(0,d.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,d.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(b||[]).length>0&&(0,d.jsxs)(k.ms,{trigger:(0,d.jsxs)("button",{className:`flex w-full flex-col items-center px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${w?"text-primary":"text-text-muted hover:text-primary"}`,disabled:q,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:q?"progress_activity":"lan"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),children:[(0,d.jsx)(k.tJ,{icon:null,label:"None",onClick:()=>C("__none__")}),(b||[]).map(a=>(0,d.jsx)(k.tJ,{icon:null,label:a.name,onClick:()=>C(a.id)},a.id))]}),p&&(0,d.jsx)(k.m_,{text:y,children:(0,d.jsxs)("button",{onClick:()=>p.onToggle(!p.on),className:`flex w-full flex-col items-center px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${p.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,d.jsxs)("button",{onClick:m,className:"flex flex-col items-center px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,d.jsxs)("button",{onClick:n,className:"flex flex-col items-center px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,d.jsx)(k.lM,{size:"sm",checked:a.isActive??!0,onChange:j,title:a.isActive??!0?"Disable connection":"Enable connection"})]})]})}F.propTypes={until:A().string.isRequired},G.propTypes={connection:A().shape({id:A().string,name:A().string,email:A().string,displayName:A().string,modelLockUntil:A().string,testStatus:A().string,isActive:A().bool,lastError:A().string,priority:A().number,globalPriority:A().number}).isRequired,proxyPools:A().arrayOf(A().shape({id:A().string,name:A().string,proxyUrl:A().string,noProxy:A().string,isActive:A().bool})),isOAuth:A().bool.isRequired,isFirst:A().bool.isRequired,isLast:A().bool.isRequired,onMoveUp:A().func.isRequired,onMoveDown:A().func.isRequired,onToggleActive:A().func.isRequired,onUpdateProxy:A().func,onEdit:A().func.isRequired,onDelete:A().func.isRequired,oneByOneStatus:A().shape({state:A().string,error:A().string}),autoPing:A().shape({on:A().bool,onToggle:A().func,provider:A().string})};let H=`name1|sk-key1
2
2
  name2|sk-key2
3
3
  sk-key-only-auto-named`;function I({isOpen:a,provider:b,providerName:c,isCompatible:f,isAnthropic:g,authType:h,authHint:i,website:j,proxyPools:m,error:n,existingNames:o,onSave:p,onBulkDone:q,onClose:r}){let s="__none__",t="ollama-local"===b,u="cookie"===h,v="xai"===b&&!u,w=u?"Cookie Value":"API Key",x="azure"===b,y="cloudflare-ai"===b,z=l.Q2?.[b]?.regions||null,A=l.Q2?.[b]?.defaultRegion||z?.[0]?.id||"",[B,C]=(0,e.useState)({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:s,ollamaHostUrl:""}),[D,E]=(0,e.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[F,G]=(0,e.useState)({accountId:""}),[J,K]=(0,e.useState)(A),[L,M]=(0,e.useState)(!1),[N,O]=(0,e.useState)(null),[P,Q]=(0,e.useState)(!1),R=y?`name1|sk-key1|acc123456
4
4
  name2|sk-key2|def789012
@@ -9,4 +9,4 @@ sk-key-only-auto-named`:H,[S,T]=(0,e.useState)("single"),[U,V]=(0,e.useState)(""
9
9
  "idToken": "eyJhbGc...",
10
10
  "email": "user@example.com"
11
11
  }
12
- ]`;function M({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[j,l]=(0,e.useState)(""),[m,n]=(0,e.useState)(null),o=()=>{h||(g(""),l(""),n(null),b())},p=async()=>{var a;let b;l(""),n(null);let d=f.trim();if(!d)return;try{b=JSON.parse(d)}catch(a){l(`${(0,x.Tl)("Invalid JSON")}: ${a.message}`);return}let e=Array.isArray(a=b)?a:a&&"object"==typeof a?Array.isArray(a.accounts)?a.accounts:[a]:null;if(!e||0===e.length)return void l((0,x.Tl)("No accounts found in input"));i(!0);try{let a=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:e})}),b=await a.json();if(!a.ok)return void l(b?.error||`Request failed: ${a.status}`);n(b),b.success>0&&"function"==typeof c&&c()}catch(a){l(a.message||(0,x.Tl)("Request failed"))}finally{i(!1)}},q=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(k.aF,{isOpen:a,title:(0,x.Tl)("Bulk Add Codex Accounts"),onClose:o,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:(0,x.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,d.jsx)("textarea",{className:"w-full 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:L,value:f,onChange:a=>g(a.target.value),disabled:h}),j&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:j}),m&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:`text-sm font-medium ${m.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",m.success," ",(0,x.Tl)("added"),m.failed>0?`, ✗ ${m.failed} ${(0,x.Tl)("failed")}`:""]}),q.length>0&&(0,d.jsx)("ul",{className:" border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:q.map(a=>(0,d.jsxs)("li",{className:"text-red-400",children:["[",a.index,"] ",a.error]},a.index))})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:p,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,x.Tl)("Importing..."):(0,x.Tl)("Import All")}),(0,d.jsx)(k.$n,{onClick:o,variant:"ghost",fullWidth:!0,disabled:h,children:(0,x.Tl)("Close")})]})]})})}M.propTypes={isOpen:A().bool.isRequired,onClose:A().func.isRequired,onSuccess:A().func};let N={claude:"claudeAutoPing",codex:"codexAutoPing"};function O(){let a,b=(0,f.useParams)(),c=(0,f.useRouter)(),g=b.id,{getCaps:n}=(0,w.y)(),[o,p]=(0,e.useState)([]),[q,r]=(0,e.useState)(!0),[s,t]=(0,e.useState)(null),[z,A]=(0,e.useState)([]),[C,E]=(0,e.useState)(!1),[F,H]=(0,e.useState)(!1),[L,O]=(0,e.useState)(!1),[P,Q]=(0,e.useState)(""),[R,S]=(0,e.useState)(!1),[T,U]=(0,e.useState)(!1),[V,W]=(0,e.useState)(!1),[X,Y]=(0,e.useState)(!1),[Z,$]=(0,e.useState)(null),[_,aa]=(0,e.useState)({}),[ab,ac]=(0,e.useState)([]),[ad,ae]=(0,e.useState)(!1),[af,ag]=(0,e.useState)({}),[ah,ai]=(0,e.useState)(""),[aj,ak]=(0,e.useState)(()=>new Set),[al,am]=(0,e.useState)(!1),[an,ao]=(0,e.useState)([]),[ap,aq]=(0,e.useState)("__none__"),[ar,as]=(0,e.useState)(!1),[at,au]=(0,e.useState)(null),[av,aw]=(0,e.useState)(""),[ax,ay]=(0,e.useState)("auto"),[az,aA]=(0,e.useState)({enabled:!1,connections:{}}),[aB,aC]=(0,e.useState)([]),[aD,aE]=(0,e.useState)([]),[aF,aG]=(0,e.useState)([]),[aH,aI]=(0,e.useState)([]),[aJ,aK]=(0,e.useState)(null),[aL,aM]=(0,e.useState)(!1),[aN,aO]=(0,e.useState)(!1),[aP,aQ]=(0,e.useState)(!1),[aR,aS]=(0,e.useState)(null),[aT,aU]=(0,e.useState)({}),[aV,aW]=(0,e.useState)(null),aX=(0,e.useRef)(!1),[aY,aZ]=(0,e.useState)(!1),{copied:a$,copy:a_}=(0,v.C)(),a0=()=>{E(!0)},a1=()=>{a6?a0():(Q(""),O(!0))},a2=()=>{Q(""),O(!0)},a3=()=>{a6?a1():a2()},a4=s?{id:s.id,name:s.name||("anthropic-compatible"===s.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===s.type?"#16a34a":"#10A37F",textIcon:"anthropic-compatible"===s.type?"AC":"OC",apiType:s.apiType,baseUrl:s.baseUrl,type:s.type}:l.zN[g]||l.fg[g]||l.IS[g]||l.nJ[g]||l.br[g],a5=a4?.authModes||[],a6=!!l.zN[g]||!!l.IS[g]||a5.includes("oauth"),a7=!!l.fg[g]||a5.includes("apikey"),a8=!!l.IS[g]?.noAuth,a9=(0,m.KC)(g),ba="cursor"===g&&aD.length>0?aD:a9,bb=(0,l.wG)(g),bc=(0,l.mq)(g),bd=(0,l.gb)(g),be=bc||bd,bf=!be&&a6&&a7,bg="xai"===g?"Grok Build OAuth":"grok-cli"===g?"Grok CLI Device Login":"kimi"===g?"Kimi Coding OAuth":"OAuth",bh="xai"===g?"xAI API Key":"kimi"===g?"Kimi API Key":"API Key",bi=a=>{if(!ax||"auto"===ax)return null;let b=u(g,a);return b&&b.includes(ax)?ax:null},bj=be?g:bb,bk=(()=>{let a=new Set,b=new Set,c=c=>{if(!c||b.has(c))return;b.add(c);let d=u(g,c);d&&d.forEach(b=>{"none"!==b&&a.add(b)})};for(let a of ba)c(a.id);for(let a of aF)c(a.id);for(let a of ab)a.providerAlias===bj&&"llm"===(a.kind||a.type||"llm")&&c(a.id);return a.size?["auto",...a]:null})(),bl=be?s?.prefix||g:bb,bm=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bj)}`,{cache:"no-store"}),b=await a.json();a.ok&&aI(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[bj]),bn=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bj,ids:[a]})})).ok&&await bm()}catch(a){console.log("Error disabling model:",a)}},bo=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bj)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bm()}catch(a){console.log("Error enabling model:",a)}},bp=async a=>{a.length&&aK({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{aK(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bj,ids:a})})).ok&&await bm()}catch(a){console.log("Error disabling all models:",a)}}})},bq=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bj)}`,{method:"DELETE"})).ok&&await bm()}catch(a){console.log("Error enabling all models:",a)}},br=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&aa(b.aliases||{})}catch(a){console.log("Error fetching aliases:",a)}},[]),bs=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&ac(b.models||[])}catch(a){console.log("Error fetching custom models:",a)}},[]),bt=(0,e.useCallback)(async()=>{try{let[a,b,c,d]=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"})]),e=await a.json(),f=await b.json(),h=await c.json(),i=d.ok?await d.json():{};if(a.ok){let a=(e.connections||[]).filter(a=>a.provider===g);p(a)}c.ok&&A(h.proxyPools||[]);let j=(i.providerStrategies||{})[g]||{};au(j.fallbackStrategy||null),aw(null!=j.stickyRoundRobinLimit?String(j.stickyRoundRobinLimit):"1");let k=(i.providerThinking||{})[g]||{};ay(k.mode||"auto");let l=N[g],m=l&&i[l]||{};if(aA({enabled:!0===m.enabled,connections:m.connections||{}}),b.ok){let a=(f.nodes||[]).find(a=>a.id===g)||null;if(!a&&be)for(let b=0;b<3;b+=1){await new Promise(a=>setTimeout(a,150));let b=await fetch("/api/provider-nodes",{cache:"no-store"});if(b.ok&&(a=((await b.json()).nodes||[]).find(a=>a.id===g)||null))break}t(a)}}catch(a){console.log("Error fetching connections:",a)}finally{r(!1)}},[g,be]),bu=async a=>{try{let b=await fetch(`/api/provider-nodes/${g}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok&&(t(c.node),await bt(),W(!1))}catch(a){console.log("Error updating provider node:",a)}},bv=async(a,b)=>{try{let c=await fetch("/api/settings",{cache:"no-store"}),d=(c.ok?await c.json():{}).providerStrategies||{},e={};a&&(e.fallbackStrategy=a),"round-robin"===a&&""!==b&&(e.stickyRoundRobinLimit=Number(b)||3);let f={...d};0===Object.keys(e).length?delete f[g]:f[g]=e,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:f})})}catch(a){console.log("Error saving provider strategy:",a)}},bw=async a=>{try{let b=await fetch("/api/settings",{cache:"no-store"}),c={...(b.ok?await b.json():{}).providerThinking||{}};a&&"auto"!==a?c[g]={mode:a}:delete c[g],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:c})})}catch(a){console.log("Error saving thinking config:",a)}},bx=async a=>{let b=N[g];if(b){aA(a);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[b]:a})})}catch(a){console.log("Error saving auto-ping config:",a)}}},by=async(a,b,c=bb)=>{let d=`${c}/${a}`;try{let a=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:d,alias:b})});if(a.ok)await br();else{let b=await a.json();alert(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},bz=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await br()}catch(a){console.log("Error deleting alias:",a)}},bA=async(a,b="llm",c=bj)=>{try{let d=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:c,id:a,type:b})});if(d.ok)await bs();else{let a=await d.json();alert(a.error||"Failed to add custom model")}}catch(a){console.log("Error adding custom model:",a)}},bB=async(a,b="llm",c=bj)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});(await fetch(`/api/models/custom?${d}`,{method:"DELETE"})).ok&&await bs()}catch(a){console.log("Error deleting custom model:",a)}},bC=async()=>{if(aY)return;let a=o.find(a=>!1!==a.isActive);if(!a)return void alert((0,x.Tl)("Please add an active Qoder connection first"));aZ(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,x.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,x.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;if(!b)continue;let c=b.replace(/^qoder\//,"");ab.some(a=>a.providerAlias===bj&&a.id===c&&"llm"===(a.kind||a.type||"llm"))||Object.values(_).includes(`${bj}/${c}`)||(await bA(c,"llm",bj),e+=1)}0===e?alert((0,x.Tl)("All models already exist, no new models added")):alert((0,x.Tl)("Successfully added")+` ${e} `+(0,x.Tl)("models"))}catch(a){console.log("Error importing Qoder models:",a),alert((0,x.Tl)("Error fetching models")+": "+a.message)}finally{aZ(!1)}},bD=async()=>{if(aN||0===o.length)return;let a=Object.fromEntries(o.map(a=>[a.id,{state:"queued",error:null}]));aX.current=!1,aO(!0),aQ(!1),aS(null),aU(a),aW({total:o.length,completed:0,passed:0,failed:0,stopped:!1});let b=0,c=0;try{for(let a=0;a<o.length;a+=1){if(aX.current){aW({total:o.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=o[a];aS(d.id),aU(a=>({...a,[d.id]:{state:"testing",error:null}}));try{let a=await fetch(`/api/providers/${d.id}/test`,{method:"POST"}),e=await a.json(),f=!!e.valid;f?b+=1:c+=1,aU(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,aU(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}aW({total:o.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<o.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{aS(null),aO(!1),aQ(!1),aX.current=!1}},bE=async a=>{aK({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{aK(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&p(b=>b.filter(b=>b.id!==a))}catch(a){console.log("Error deleting connection:",a)}}})},bF=()=>{bt(),E(!1)},bG=async a=>{Q("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:g,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await bt(),O(!1);return}Q(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),Q("Failed to save connection")}},bH=async a=>{try{(await fetch(`/api/providers/${Z.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await bt(),U(!1))}catch(a){console.log("Error updating connection:",a)}},bI=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&p(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error updating connection status:",a)}},bJ=async(a,b)=>{let c=[...o];[c[a],c[b]]=[c[b],c[a]],p(c);try{await Promise.all([fetch(`/api/providers/${c[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a})}),fetch(`/api/providers/${c[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b})})])}catch(a){console.log("Error swapping priority:",a),await bt()}},bK=o.filter(a=>an.includes(a.id)),bL=o.length>0&&an.length===o.length;(()=>{if(0===bK.length)return;let a=new Set(bK.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return;let c=z.find(a=>a.id===b);return c?.name}})();let bM=()=>{ar||Y(!1)},bN=async a=>{as(!0);try{let b=0;for(let{connectionId:c,proxyPoolId:d}of a)try{(await fetch(`/api/providers/${c}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:d})})).ok||(b+=1)}catch(a){console.log("Error applying proxy for",c,a),b+=1}b>0&&alert(`Updated with ${b} failed request(s).`),await bt(),Y(!1)}finally{as(!1)}},bO=a=>bN(o.map(b=>({connectionId:b.id,proxyPoolId:a}))),bP=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:o.map((a,b)=>{let c;return(0,d.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,d.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,d.jsx)("input",{type:"checkbox",checked:(c=a.id,an.includes(c)),onChange:()=>{var b;return b=a.id,void ao(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"h-4 w-4 border-gray-300 text-primary focus:ring-primary"})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)(G,{connection:a,proxyPools:z,isOAuth:a6,isFirst:0===b,isLast:b===o.length-1,onMoveUp:()=>bJ(b,b-1),onMoveDown:()=>bJ(b,b+1),onToggleActive:b=>bI(a.id,b),autoPing:N[g]&&"oauth"===a.authType?{on:!0===az.connections[a.id],onToggle:b=>{var c;return c=a.id,void bx({...az,connections:{...az.connections,[c]:b}})},provider:g}:null,onUpdateProxy:async b=>{try{(await fetch(`/api/providers/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&p(c=>c.map(c=>c.id===a.id?{...c,providerSpecificData:{...c.providerSpecificData,proxyPoolId:b||null}}:c))}catch(a){console.log("Error updating proxy:",a)}},onEdit:()=>{$(a),U(!0)},onDelete:()=>bE(a.id),oneByOneStatus:aT[a.id]||null})})]},a.id)})}),bQ=z.filter(a=>!0===a.isActive),bR=(0,d.jsx)(k.aF,{isOpen:X,onClose:bM,title:`Apply Proxy (${o.length} connections)`,children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsxs)("button",{onClick:()=>{let a=z.filter(a=>!0===a.isActive);return 0===a.length?void alert("No active proxy pools available."):bN(o.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:ar||0===bQ.length,className:"flex items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,d.jsxs)("button",{onClick:()=>bO(null),disabled:ar,className:"flex items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),z.map(a=>(0,d.jsxs)("button",{onClick:()=>bO(a.id),disabled:ar||!0!==a.isActive,className:"flex items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,d.jsx)("span",{className:"truncate text-sm text-text-main",children:a.name}),!0!==a.isActive&&(0,d.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},a.id))]}),ar&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(k.$n,{onClick:bM,variant:"ghost",fullWidth:!0,disabled:ar,children:"Cancel"})]})}),bS=async a=>{if(!aj.has(a)){ak(b=>new Set(b).add(a));try{let b=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${bj}/${a}`})}),c=await b.json();ag(b=>({...b,[a]:c.ok?"ok":"error"})),ai(c.ok?"":c.error||"Model not reachable")}catch{ag(b=>({...b,[a]:"error"})),ai("Network error")}finally{ak(b=>{let c=new Set(b);return c.delete(a),c})}}};if(q)return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(k.Qv,{}),(0,d.jsx)(k.Qv,{})]});if(!a4)return(0,d.jsxs)("div",{className:"text-center py-20",children:[(0,d.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,d.jsx)(h(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]});let bT=()=>bc&&a4.apiType?"responses"===a4.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":bd?"/providers/anthropic-m.png":(0,j.HY)(a4.id);return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)(h(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,d.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center ",style:{backgroundColor:`${a4.color}15`},children:ad||!bT()?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:a4.color},children:a4.textIcon||a4.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:bT(),alt:a4.name,width:48,height:48,className:"max-h-12 max-w-12 object-contain",sizes:"48px",onError:()=>{(0,j.Kw)(a4.id),ae(!0)},loading:"lazy",decoding:"async"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,d.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:a4.name}),(a4.notice?.apiKeyUrl||a4.notice?.signupUrl||a4.website)&&(0,d.jsxs)("a",{href:a4.notice?.apiKeyUrl||a4.notice?.signupUrl||a4.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),a4.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:[o.length," connection",1===o.length?"":"s"]})]})]})]}),a4.deprecated&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 bg-yellow-500/10 border border-yellow-500/30",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:a4.deprecationNotice})]}),a4.notice?.text&&!a4.deprecated&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,d.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:a4.notice.text}),a4.notice.apiKeyUrl&&(0,d.jsx)("a",{href:a4.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center 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 →"})]}),be&&s&&(0,d.jsx)(k.Zp,{children:(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:bd?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[bd?"Messages API":"responses"===s.apiType?"Responses API":"Chat Completions"," \xb7 ",(s.baseUrl||"").replace(/\/$/,""),"/",bd?"messages":"responses"===s.apiType?"responses":"chat/completions"]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:()=>{Q(""),O(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>W(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{aK({title:"Delete Compatible Node",message:`Delete this ${bd?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{aK(null);try{(await fetch(`/api/provider-nodes/${g}`,{method:"DELETE"})).ok&&c.push("/dashboard/providers")}catch(a){console.log("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),a8?(0,d.jsx)(k.gw,{providerId:g}):(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[o.length>0&&z.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>Y(!0),children:"Apply Proxy"}),o.length>0&&(0,d.jsxs)(d.Fragment,{children:[an.length>0&&(0,d.jsxs)(k.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=an.length;0!==a&&aK({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{aK(null);let a=0,b=[...an];for(let c of b)try{(await fetch(`/api/providers/${c}`,{method:"DELETE"})).ok||(a+=1)}catch(b){console.log("Error deleting connection:",b),a+=1}p(a=>a.filter(a=>!b.includes(a.id))),ao([]),a>0&&alert(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",an.length,")"]}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:bD,disabled:aN,children:aN?"Testing Connection One-by-One...":"Test Connection One-by-One"}),aN&&(0,d.jsx)(k.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{aN&&(aX.current=!0,aQ(!0))},disabled:aP,children:aP?"Stopping...":"Stop"})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,d.jsx)(k.lM,{checked:"round-robin"===at,onChange:a=>{let b=a?"round-robin":null,c=a?av||"1":av;a&&!av&&aw("1"),au(b),bv(b,c)}}),"round-robin"===at&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,d.jsx)("input",{type:"number",min:1,value:av,onChange:a=>{var b;aw(b=a.target.value),bv("round-robin",b)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===o.length?(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:a6?"lock":"key"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),bf&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bg," or ",bh,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bf?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:a1,children:bg}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:a2,children:bh})]}):(0,d.jsxs)(d.Fragment,{children:[!be&&"iflow"===g&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>H(!0),children:"Cookie"}),"codex"===g&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>S(!0),children:(0,x.Tl)("Bulk Add")}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:a3,children:be?"Add API Key":"iflow"===g?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[aV&&(0,d.jsx)("div",{className:"mb-4 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,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,d.jsxs)("span",{children:["Total: ",aV.total]}),(0,d.jsxs)("span",{children:["Completed: ",aV.completed]}),(0,d.jsxs)("span",{children:["Passed: ",aV.passed]}),(0,d.jsxs)("span",{children:["Failed: ",aV.failed]}),aV.stopped&&(0,d.jsx)("span",{className:"text-green-600 dark:text-green-400",children:"Stopped"}),aN&&aR&&(0,d.jsxs)("span",{children:["Running: ",o.find(a=>a.id===aR)?.name||aR]})]})}),o.length>0&&(0,d.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,d.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,d.jsx)("input",{type:"checkbox",checked:bL,onChange:()=>{bL?ao([]):ao(o.map(a=>a.id))},className:"h-3.5 w-3.5 border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),bP,!be&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===g&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>H(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===g&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>S(!0),title:(0,x.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,x.Tl)("Bulk Add")}),bf?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:a1,className:"w-full sm:w-auto",children:bg}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:a2,className:"w-full sm:w-auto",children:bh})]}):(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:a3,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),bk&&(0,d.jsx)("select",{value:ax,onChange:a=>{var b;ay(b=a.target.value),bw(b)},title:"Appends (level) suffix to copied model names",className:" border border-border bg-background px-2 py-1 text-xs focus:border-primary focus:outline-none",children:bk.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),!be&&(a=[...ba,...aF.filter(a=>!ba.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}).map(a=>a.id).filter(a=>!aH.includes(a)),(0,d.jsxs)("div",{className:"flex gap-2",children:[aH.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bq,children:"Active All"}),a.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bp(a),children:"Disable All"})]}))]}),!!ah&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:ah}),(()=>{let a,b,c;if(be)return(0,d.jsx)(D,{providerStorageAlias:bj,providerDisplayAlias:bl,modelAliases:_,customModels:ab,copied:a$,onCopy:a_,onSetAlias:by,onDeleteAlias:bz,onAddCustomModel:a=>bA(a,"llm",bj),onDeleteCustomModel:a=>bB(a,"llm",bj),connections:o,isAnthropic:bd});let e=[...ba,...aF.filter(a=>!ba.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}),f=new Set(aH),h=e.filter(a=>!f.has(a.id)),i=e.filter(a=>f.has(a.id)),j=y({customModels:ab,modelAliases:_,providerAlias:bj,builtInModels:ba,type:"llm"});return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[j.map(a=>(0,d.jsx)(B,{model:{id:a.id,name:a.name},fullModel:`${bl}/${a.id}`,alias:a.alias,copied:a$,onCopy:a_,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?bB(a.id,"llm",bj):bz(a.alias)},testStatus:af[a.id],onTest:o.length>0||a8?()=>bS(a.id):void 0,isTesting:aj.has(a.id),isCustom:!0,isFree:!1,caps:n(`${g}/${a.id}`),thinkingSuffix:bi(a.id)},`${a.source}-${a.fullModel}`)),h.map(a=>{let b=`${bj}/${a.id}`,c=`${g}/${a.id}`,e=Object.entries(_).find(([,a])=>a===b||a===c)?.[0];return(0,d.jsx)(B,{model:a,fullModel:`${bl}/${a.id}`,alias:e,copied:a$,onCopy:a_,onSetAlias:b=>by(a.id,b,bj),onDeleteAlias:()=>bz(e),testStatus:af[a.id],onTest:o.length>0||a8?()=>bS(a.id):void 0,isTesting:aj.has(a.id),isFree:a.isFree,onDisable:()=>bn(a.id),caps:n(`${g}/${a.id}`),thinkingSuffix:bi(a.id)},a.id)}),(0,d.jsxs)("button",{onClick:()=>am(!0),className:"flex w-full items-center justify-center gap-1.5 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,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),"qoder"===g&&o.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bC,disabled:aY,className:"flex w-full items-center justify-center gap-1.5 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,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:aY?{animation:"spin 1s linear infinite"}:void 0,children:aY?"progress_activity":"download"}),aY?(0,x.Tl)("Fetching..."):(0,x.Tl)("Fetch Qoder Models")]}),aB.length>0&&(a=new Set([...Object.values(_),...j.map(a=>a.fullModel)]),b=new Set(ba.map(a=>a.id)),0===(c=aB.filter(c=>!a.has(`${bj}/${c.id}`)&&!b.has(c.id))).length?null:(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map(a=>(0,d.jsxs)("button",{onClick:async()=>{await bA(a.id,"llm",bj)},className:"flex items-center gap-1 px-2.5 py-1.5 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:`${a.name} \xb7 ${(a.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id.split("/").pop()]},a.id))})]})),i.length>0&&(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",i.length,"):"]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:i.map(a=>(0,d.jsxs)("button",{onClick:()=>bo(a.id),className:"flex items-center gap-1 px-2.5 py-1.5 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,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id]},a.id))})]})]})})()]}),bR,"kiro"===g?(0,d.jsx)(k.Mh,{isOpen:C,providerInfo:a4,onSuccess:bF,onClose:()=>E(!1)}):"cursor"===g?(0,d.jsx)(k.G9,{isOpen:C,onSuccess:bF,onClose:()=>E(!1)}):"gitlab"===g?(0,d.jsx)(k.vj,{isOpen:C,providerInfo:a4,onSuccess:bF,onClose:()=>E(!1)}):(0,d.jsx)(k.LF,{isOpen:C,provider:g,providerInfo:a4,onSuccess:bF,onClose:()=>E(!1)}),"iflow"===g&&(0,d.jsx)(k.vE,{isOpen:F,onSuccess:()=>{bt(),H(!1)},onClose:()=>H(!1)}),(0,d.jsx)(I,{isOpen:L,provider:g,providerName:a4.name,isCompatible:be,isAnthropic:bd,authType:a4?.authType,authHint:a4?.authHint,website:a4?.website,proxyPools:z,error:P,existingNames:o.map(a=>a.name).filter(Boolean),onSave:bG,onBulkDone:bt,onClose:()=>{Q(""),O(!1)}}),(0,d.jsx)(k.wI,{isOpen:T,connection:Z,proxyPools:z,onSave:bH,onClose:()=>U(!1)}),be&&(0,d.jsx)(J,{isOpen:V,node:s,onSave:bu,onClose:()=>W(!1),isAnthropic:bd}),!be&&(0,d.jsx)(K,{isOpen:al,providerAlias:bj,providerDisplayAlias:bl,onSave:async a=>{await bA(a,"llm",bj),am(!1)},onClose:()=>am(!1)}),"codex"===g&&(0,d.jsx)(M,{isOpen:R,onClose:()=>S(!1),onSuccess:bt}),(0,d.jsx)(k.uo,{isOpen:aL,onClose:()=>aM(!1),onConfirm:()=>{(aM(!1),a6)?a0():a2()},title:"Risk Notice",message:a4?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(k.uo,{isOpen:!!aJ,onClose:()=>aK(null),onConfirm:aJ?.onConfirm,title:aJ?.title||"Confirm",message:aJ?.message,variant:"danger"})]})}},54952:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>x,handler:()=>z,routeModule:()=>y});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v={children:["",{children:["(dashboard)",{children:["dashboard",{children:["providers",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,93110))),"/home/runner/work/polyrouter/polyrouter/src/app/(dashboard)/dashboard/providers/[id]/page.js"]}]},{"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},["new"]]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"/home/runner/work/polyrouter/polyrouter/src/app/(dashboard)/layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/home/runner/work/polyrouter/polyrouter/src/app/layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,w=(0,e.H)({tree:v,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),x=w.__next_app__,y=w.routeModule,z=w.handler},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},74875:(a,b,c)=>{"use strict";function d(a,b){return!1===a?"default":"active"===b||"success"===b?"success":"error"===b||"expired"===b||"unavailable"===b?"error":"default"}c.d(b,{g:()=>d})},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},83997:a=>{"use strict";a.exports=require("tty")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},93110:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/polyrouter/polyrouter/src/app/(dashboard)/dashboard/providers/[id]/page.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/polyrouter/polyrouter/src/app/(dashboard)/dashboard/providers/[id]/page.js","default")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1260,2430,3289,2116,8230,1220,4491,4185,6070,869,915,6457,4123,2268,5611,412,2620],()=>b(b.s=54952));module.exports=c})();
12
+ ]`;function M({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[j,l]=(0,e.useState)(""),[m,n]=(0,e.useState)(null),o=()=>{h||(g(""),l(""),n(null),b())},p=async()=>{var a;let b;l(""),n(null);let d=f.trim();if(!d)return;try{b=JSON.parse(d)}catch(a){l(`${(0,x.Tl)("Invalid JSON")}: ${a.message}`);return}let e=Array.isArray(a=b)?a:a&&"object"==typeof a?Array.isArray(a.accounts)?a.accounts:[a]:null;if(!e||0===e.length)return void l((0,x.Tl)("No accounts found in input"));i(!0);try{let a=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:e})}),b=await a.json();if(!a.ok)return void l(b?.error||`Request failed: ${a.status}`);n(b),b.success>0&&"function"==typeof c&&c()}catch(a){l(a.message||(0,x.Tl)("Request failed"))}finally{i(!1)}},q=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(k.aF,{isOpen:a,title:(0,x.Tl)("Bulk Add Codex Accounts"),onClose:o,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:(0,x.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,d.jsx)("textarea",{className:"w-full 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:L,value:f,onChange:a=>g(a.target.value),disabled:h}),j&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:j}),m&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:`text-sm font-medium ${m.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",m.success," ",(0,x.Tl)("added"),m.failed>0?`, ✗ ${m.failed} ${(0,x.Tl)("failed")}`:""]}),q.length>0&&(0,d.jsx)("ul",{className:" border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:q.map(a=>(0,d.jsxs)("li",{className:"text-red-400",children:["[",a.index,"] ",a.error]},a.index))})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:p,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,x.Tl)("Importing..."):(0,x.Tl)("Import All")}),(0,d.jsx)(k.$n,{onClick:o,variant:"ghost",fullWidth:!0,disabled:h,children:(0,x.Tl)("Close")})]})]})})}M.propTypes={isOpen:A().bool.isRequired,onClose:A().func.isRequired,onSuccess:A().func};let N={claude:"claudeAutoPing",codex:"codexAutoPing"};function O(){let a,b=(0,f.useParams)(),c=(0,f.useRouter)(),g=b.id,{getCaps:n}=(0,w.y)(),[o,p]=(0,e.useState)([]),[q,r]=(0,e.useState)(!0),[s,t]=(0,e.useState)(null),[z,A]=(0,e.useState)([]),[C,E]=(0,e.useState)(!1),[F,H]=(0,e.useState)(!1),[L,O]=(0,e.useState)(!1),[P,Q]=(0,e.useState)(!1),[R,S]=(0,e.useState)(""),[T,U]=(0,e.useState)(!1),[V,W]=(0,e.useState)(!1),[X,Y]=(0,e.useState)(!1),[Z,$]=(0,e.useState)(!1),[_,aa]=(0,e.useState)(null),[ab,ac]=(0,e.useState)({}),[ad,ae]=(0,e.useState)([]),[af,ag]=(0,e.useState)(!1),[ah,ai]=(0,e.useState)({}),[aj,ak]=(0,e.useState)(""),[al,am]=(0,e.useState)(()=>new Set),[an,ao]=(0,e.useState)(!1),[ap,aq]=(0,e.useState)([]),[ar,as]=(0,e.useState)("__none__"),[at,au]=(0,e.useState)(!1),[av,aw]=(0,e.useState)(null),[ax,ay]=(0,e.useState)(""),[az,aA]=(0,e.useState)("auto"),[aB,aC]=(0,e.useState)({enabled:!1,connections:{}}),[aD,aE]=(0,e.useState)([]),[aF,aG]=(0,e.useState)([]),[aH,aI]=(0,e.useState)([]),[aJ,aK]=(0,e.useState)([]),[aL,aM]=(0,e.useState)(null),[aN,aO]=(0,e.useState)(!1),[aP,aQ]=(0,e.useState)(!1),[aR,aS]=(0,e.useState)(!1),[aT,aU]=(0,e.useState)(null),[aV,aW]=(0,e.useState)({}),[aX,aY]=(0,e.useState)(null),aZ=(0,e.useRef)(!1),[a$,a_]=(0,e.useState)(!1),{copied:a0,copy:a1}=(0,v.C)(),a2=()=>{E(!0)},a3=()=>{a8?a2():(S(""),Q(!0))},a4=()=>{S(""),Q(!0)},a5=()=>{a8?a3():a4()},a6=s?{id:s.id,name:s.name||("anthropic-compatible"===s.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===s.type?"#16a34a":"#10A37F",textIcon:"anthropic-compatible"===s.type?"AC":"OC",apiType:s.apiType,baseUrl:s.baseUrl,type:s.type}:l.zN[g]||l.fg[g]||l.IS[g]||l.nJ[g]||l.br[g],a7=a6?.authModes||[],a8=!!l.zN[g]||!!l.IS[g]||a7.includes("oauth"),a9=!!l.fg[g]||a7.includes("apikey"),ba=!!l.IS[g]?.noAuth,bb=(0,m.KC)(g),bc="cursor"===g&&aF.length>0?aF:bb,bd=(0,l.wG)(g),be=(0,l.mq)(g),bf=(0,l.gb)(g),bg=be||bf,bh=!bg&&a8&&a9,bi="xai"===g?"Grok Build OAuth":"grok-cli"===g?"Grok CLI Device Login":"kimi"===g?"Kimi Coding OAuth":"OAuth",bj="xai"===g?"xAI API Key":"kimi"===g?"Kimi API Key":"API Key",bk=a=>{if(!az||"auto"===az)return null;let b=u(g,a);return b&&b.includes(az)?az:null},bl=bg?g:bd,bm=(()=>{let a=new Set,b=new Set,c=c=>{if(!c||b.has(c))return;b.add(c);let d=u(g,c);d&&d.forEach(b=>{"none"!==b&&a.add(b)})};for(let a of bc)c(a.id);for(let a of aH)c(a.id);for(let a of ad)a.providerAlias===bl&&"llm"===(a.kind||a.type||"llm")&&c(a.id);return a.size?["auto",...a]:null})(),bn=bg?s?.prefix||g:bd,bo=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bl)}`,{cache:"no-store"}),b=await a.json();a.ok&&aK(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[bl]),bp=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bl,ids:[a]})})).ok&&await bo()}catch(a){console.log("Error disabling model:",a)}},bq=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bl)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bo()}catch(a){console.log("Error enabling model:",a)}},br=async a=>{a.length&&aM({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{aM(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bl,ids:a})})).ok&&await bo()}catch(a){console.log("Error disabling all models:",a)}}})},bs=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bl)}`,{method:"DELETE"})).ok&&await bo()}catch(a){console.log("Error enabling all models:",a)}},bt=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&ac(b.aliases||{})}catch(a){console.log("Error fetching aliases:",a)}},[]),bu=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&ae(b.models||[])}catch(a){console.log("Error fetching custom models:",a)}},[]),bv=(0,e.useCallback)(async()=>{try{let[a,b,c,d]=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"})]),e=await a.json(),f=await b.json(),h=await c.json(),i=d.ok?await d.json():{};if(a.ok){let a=(e.connections||[]).filter(a=>a.provider===g);p(a)}c.ok&&A(h.proxyPools||[]);let j=(i.providerStrategies||{})[g]||{};aw(j.fallbackStrategy||null),ay(null!=j.stickyRoundRobinLimit?String(j.stickyRoundRobinLimit):"1");let k=(i.providerThinking||{})[g]||{};aA(k.mode||"auto");let l=N[g],m=l&&i[l]||{};if(aC({enabled:!0===m.enabled,connections:m.connections||{}}),b.ok){let a=(f.nodes||[]).find(a=>a.id===g)||null;if(!a&&bg)for(let b=0;b<3;b+=1){await new Promise(a=>setTimeout(a,150));let b=await fetch("/api/provider-nodes",{cache:"no-store"});if(b.ok&&(a=((await b.json()).nodes||[]).find(a=>a.id===g)||null))break}t(a)}}catch(a){console.log("Error fetching connections:",a)}finally{r(!1)}},[g,bg]),bw=async a=>{try{let b=await fetch(`/api/provider-nodes/${g}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok&&(t(c.node),await bv(),Y(!1))}catch(a){console.log("Error updating provider node:",a)}},bx=async(a,b)=>{try{let c=await fetch("/api/settings",{cache:"no-store"}),d=(c.ok?await c.json():{}).providerStrategies||{},e={};a&&(e.fallbackStrategy=a),"round-robin"===a&&""!==b&&(e.stickyRoundRobinLimit=Number(b)||3);let f={...d};0===Object.keys(e).length?delete f[g]:f[g]=e,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:f})})}catch(a){console.log("Error saving provider strategy:",a)}},by=async a=>{try{let b=await fetch("/api/settings",{cache:"no-store"}),c={...(b.ok?await b.json():{}).providerThinking||{}};a&&"auto"!==a?c[g]={mode:a}:delete c[g],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:c})})}catch(a){console.log("Error saving thinking config:",a)}},bz=async a=>{let b=N[g];if(b){aC(a);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[b]:a})})}catch(a){console.log("Error saving auto-ping config:",a)}}},bA=async(a,b,c=bd)=>{let d=`${c}/${a}`;try{let a=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:d,alias:b})});if(a.ok)await bt();else{let b=await a.json();alert(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},bB=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bt()}catch(a){console.log("Error deleting alias:",a)}},bC=async(a,b="llm",c=bl)=>{try{let d=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:c,id:a,type:b})});if(d.ok)await bu();else{let a=await d.json();alert(a.error||"Failed to add custom model")}}catch(a){console.log("Error adding custom model:",a)}},bD=async(a,b="llm",c=bl)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});(await fetch(`/api/models/custom?${d}`,{method:"DELETE"})).ok&&await bu()}catch(a){console.log("Error deleting custom model:",a)}},bE=async()=>{if(a$)return;let a=o.find(a=>!1!==a.isActive);if(!a)return void alert((0,x.Tl)("Please add an active Qoder connection first"));a_(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,x.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,x.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;if(!b)continue;let c=b.replace(/^qoder\//,"");ad.some(a=>a.providerAlias===bl&&a.id===c&&"llm"===(a.kind||a.type||"llm"))||Object.values(ab).includes(`${bl}/${c}`)||(await bC(c,"llm",bl),e+=1)}0===e?alert((0,x.Tl)("All models already exist, no new models added")):alert((0,x.Tl)("Successfully added")+` ${e} `+(0,x.Tl)("models"))}catch(a){console.log("Error importing Qoder models:",a),alert((0,x.Tl)("Error fetching models")+": "+a.message)}finally{a_(!1)}},bF=async()=>{if(aP||0===o.length)return;let a=Object.fromEntries(o.map(a=>[a.id,{state:"queued",error:null}]));aZ.current=!1,aQ(!0),aS(!1),aU(null),aW(a),aY({total:o.length,completed:0,passed:0,failed:0,stopped:!1});let b=0,c=0;try{for(let a=0;a<o.length;a+=1){if(aZ.current){aY({total:o.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=o[a];aU(d.id),aW(a=>({...a,[d.id]:{state:"testing",error:null}}));try{let a=await fetch(`/api/providers/${d.id}/test`,{method:"POST"}),e=await a.json(),f=!!e.valid;f?b+=1:c+=1,aW(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,aW(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}aY({total:o.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<o.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{aU(null),aQ(!1),aS(!1),aZ.current=!1}},bG=async a=>{aM({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{aM(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&p(b=>b.filter(b=>b.id!==a))}catch(a){console.log("Error deleting connection:",a)}}})},bH=()=>{bv(),E(!1)},bI=async a=>{S("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:g,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await bv(),Q(!1);return}S(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),S("Failed to save connection")}},bJ=async a=>{try{(await fetch(`/api/providers/${_.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await bv(),W(!1))}catch(a){console.log("Error updating connection:",a)}},bK=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&p(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error updating connection status:",a)}},bL=async(a,b)=>{let c=[...o];[c[a],c[b]]=[c[b],c[a]],p(c);try{await Promise.all([fetch(`/api/providers/${c[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a})}),fetch(`/api/providers/${c[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b})})])}catch(a){console.log("Error swapping priority:",a),await bv()}},bM=o.filter(a=>ap.includes(a.id)),bN=o.length>0&&ap.length===o.length;(()=>{if(0===bM.length)return;let a=new Set(bM.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return;let c=z.find(a=>a.id===b);return c?.name}})();let bO=()=>{at||$(!1)},bP=async a=>{au(!0);try{let b=0;for(let{connectionId:c,proxyPoolId:d}of a)try{(await fetch(`/api/providers/${c}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:d})})).ok||(b+=1)}catch(a){console.log("Error applying proxy for",c,a),b+=1}b>0&&alert(`Updated with ${b} failed request(s).`),await bv(),$(!1)}finally{au(!1)}},bQ=a=>bP(o.map(b=>({connectionId:b.id,proxyPoolId:a}))),bR=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:o.map((a,b)=>{let c;return(0,d.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,d.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,d.jsx)("input",{type:"checkbox",checked:(c=a.id,ap.includes(c)),onChange:()=>{var b;return b=a.id,void aq(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"h-4 w-4 border-gray-300 text-primary focus:ring-primary"})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)(G,{connection:a,proxyPools:z,isOAuth:a8,isFirst:0===b,isLast:b===o.length-1,onMoveUp:()=>bL(b,b-1),onMoveDown:()=>bL(b,b+1),onToggleActive:b=>bK(a.id,b),autoPing:N[g]&&"oauth"===a.authType?{on:!0===aB.connections[a.id],onToggle:b=>{var c;return c=a.id,void bz({...aB,connections:{...aB.connections,[c]:b}})},provider:g}:null,onUpdateProxy:async b=>{try{(await fetch(`/api/providers/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&p(c=>c.map(c=>c.id===a.id?{...c,providerSpecificData:{...c.providerSpecificData,proxyPoolId:b||null}}:c))}catch(a){console.log("Error updating proxy:",a)}},onEdit:()=>{aa(a),W(!0)},onDelete:()=>bG(a.id),oneByOneStatus:aV[a.id]||null})})]},a.id)})}),bS=z.filter(a=>!0===a.isActive),bT=(0,d.jsx)(k.aF,{isOpen:Z,onClose:bO,title:`Apply Proxy (${o.length} connections)`,children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsxs)("button",{onClick:()=>{let a=z.filter(a=>!0===a.isActive);return 0===a.length?void alert("No active proxy pools available."):bP(o.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:at||0===bS.length,className:"flex items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,d.jsxs)("button",{onClick:()=>bQ(null),disabled:at,className:"flex items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),z.map(a=>(0,d.jsxs)("button",{onClick:()=>bQ(a.id),disabled:at||!0!==a.isActive,className:"flex items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,d.jsx)("span",{className:"truncate text-sm text-text-main",children:a.name}),!0!==a.isActive&&(0,d.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},a.id))]}),at&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(k.$n,{onClick:bO,variant:"ghost",fullWidth:!0,disabled:at,children:"Cancel"})]})}),bU=async a=>{if(!al.has(a)){am(b=>new Set(b).add(a));try{let b=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${bl}/${a}`})}),c=await b.json();ai(b=>({...b,[a]:c.ok?"ok":"error"})),ak(c.ok?"":c.error||"Model not reachable")}catch{ai(b=>({...b,[a]:"error"})),ak("Network error")}finally{am(b=>{let c=new Set(b);return c.delete(a),c})}}};if(q)return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(k.Qv,{}),(0,d.jsx)(k.Qv,{})]});if(!a6)return(0,d.jsxs)("div",{className:"text-center py-20",children:[(0,d.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,d.jsx)(h(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]});let bV=()=>be&&a6.apiType?"responses"===a6.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":bf?"/providers/anthropic-m.png":(0,j.HY)(a6.id);return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)(h(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,d.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center ",style:{backgroundColor:`${a6.color}15`},children:af||!bV()?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:a6.color},children:a6.textIcon||a6.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:bV(),alt:a6.name,width:48,height:48,className:"max-h-12 max-w-12 object-contain",sizes:"48px",onError:()=>{(0,j.Kw)(a6.id),ag(!0)},loading:"lazy",decoding:"async"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,d.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:a6.name}),(a6.notice?.apiKeyUrl||a6.notice?.signupUrl||a6.website)&&(0,d.jsxs)("a",{href:a6.notice?.apiKeyUrl||a6.notice?.signupUrl||a6.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),a6.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:[o.length," connection",1===o.length?"":"s"]})]})]})]}),a6.deprecated&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 bg-yellow-500/10 border border-yellow-500/30",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:a6.deprecationNotice})]}),a6.notice?.text&&!a6.deprecated&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,d.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:a6.notice.text}),a6.notice.apiKeyUrl&&(0,d.jsx)("a",{href:a6.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center 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 →"})]}),bg&&s&&(0,d.jsx)(k.Zp,{children:(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:bf?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[bf?"Messages API":"responses"===s.apiType?"Responses API":"Chat Completions"," \xb7 ",(s.baseUrl||"").replace(/\/$/,""),"/",bf?"messages":"responses"===s.apiType?"responses":"chat/completions"]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:()=>{S(""),Q(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>Y(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{aM({title:"Delete Compatible Node",message:`Delete this ${bf?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{aM(null);try{(await fetch(`/api/provider-nodes/${g}`,{method:"DELETE"})).ok&&c.push("/dashboard/providers")}catch(a){console.log("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),ba?(0,d.jsx)(k.gw,{providerId:g}):(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[o.length>0&&z.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>$(!0),children:"Apply Proxy"}),o.length>0&&(0,d.jsxs)(d.Fragment,{children:[ap.length>0&&(0,d.jsxs)(k.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=ap.length;0!==a&&aM({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{aM(null);let a=0,b=[...ap];for(let c of b)try{(await fetch(`/api/providers/${c}`,{method:"DELETE"})).ok||(a+=1)}catch(b){console.log("Error deleting connection:",b),a+=1}p(a=>a.filter(a=>!b.includes(a.id))),aq([]),a>0&&alert(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",ap.length,")"]}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:bF,disabled:aP,children:aP?"Testing Connection One-by-One...":"Test Connection One-by-One"}),aP&&(0,d.jsx)(k.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{aP&&(aZ.current=!0,aS(!0))},disabled:aR,children:aR?"Stopping...":"Stop"})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,d.jsx)(k.lM,{checked:"round-robin"===av,onChange:a=>{let b=a?"round-robin":null,c=a?ax||"1":ax;a&&!ax&&ay("1"),aw(b),bx(b,c)}}),"round-robin"===av&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,d.jsx)("input",{type:"number",min:1,value:ax,onChange:a=>{var b;ay(b=a.target.value),bx("round-robin",b)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===o.length?(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:a8?"lock":"key"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),bh&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bi," or ",bj,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bh?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:a3,children:bi}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:a4,children:bj})]}):(0,d.jsxs)(d.Fragment,{children:[!bg&&"chatgpt-web"===g&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>O(!0),children:"Auto Connect"}),!bg&&"iflow"===g&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>H(!0),children:"Cookie"}),"codex"===g&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>U(!0),children:(0,x.Tl)("Bulk Add")}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:a5,children:bg?"Add API Key":"iflow"===g?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[aX&&(0,d.jsx)("div",{className:"mb-4 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,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,d.jsxs)("span",{children:["Total: ",aX.total]}),(0,d.jsxs)("span",{children:["Completed: ",aX.completed]}),(0,d.jsxs)("span",{children:["Passed: ",aX.passed]}),(0,d.jsxs)("span",{children:["Failed: ",aX.failed]}),aX.stopped&&(0,d.jsx)("span",{className:"text-green-600 dark:text-green-400",children:"Stopped"}),aP&&aT&&(0,d.jsxs)("span",{children:["Running: ",o.find(a=>a.id===aT)?.name||aT]})]})}),o.length>0&&(0,d.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,d.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,d.jsx)("input",{type:"checkbox",checked:bN,onChange:()=>{bN?aq([]):aq(o.map(a=>a.id))},className:"h-3.5 w-3.5 border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),bR,!bg&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["chatgpt-web"===g&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>O(!0),title:"Auto-extract ChatGPT session cookie via browser",className:"w-full sm:w-auto",children:"Auto Connect"}),"iflow"===g&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>H(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===g&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>U(!0),title:(0,x.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,x.Tl)("Bulk Add")}),bh?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:a3,className:"w-full sm:w-auto",children:bi}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:a4,className:"w-full sm:w-auto",children:bj})]}):(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:a5,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),bm&&(0,d.jsx)("select",{value:az,onChange:a=>{var b;aA(b=a.target.value),by(b)},title:"Appends (level) suffix to copied model names",className:" border border-border bg-background px-2 py-1 text-xs focus:border-primary focus:outline-none",children:bm.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),!bg&&(a=[...bc,...aH.filter(a=>!bc.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}).map(a=>a.id).filter(a=>!aJ.includes(a)),(0,d.jsxs)("div",{className:"flex gap-2",children:[aJ.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bs,children:"Active All"}),a.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>br(a),children:"Disable All"})]}))]}),!!aj&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:aj}),(()=>{let a,b,c;if(bg)return(0,d.jsx)(D,{providerStorageAlias:bl,providerDisplayAlias:bn,modelAliases:ab,customModels:ad,copied:a0,onCopy:a1,onSetAlias:bA,onDeleteAlias:bB,onAddCustomModel:a=>bC(a,"llm",bl),onDeleteCustomModel:a=>bD(a,"llm",bl),connections:o,isAnthropic:bf});let e=[...bc,...aH.filter(a=>!bc.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}),f=new Set(aJ),h=e.filter(a=>!f.has(a.id)),i=e.filter(a=>f.has(a.id)),j=y({customModels:ad,modelAliases:ab,providerAlias:bl,builtInModels:bc,type:"llm"});return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[j.map(a=>(0,d.jsx)(B,{model:{id:a.id,name:a.name},fullModel:`${bn}/${a.id}`,alias:a.alias,copied:a0,onCopy:a1,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?bD(a.id,"llm",bl):bB(a.alias)},testStatus:ah[a.id],onTest:o.length>0||ba?()=>bU(a.id):void 0,isTesting:al.has(a.id),isCustom:!0,isFree:!1,caps:n(`${g}/${a.id}`),thinkingSuffix:bk(a.id)},`${a.source}-${a.fullModel}`)),h.map(a=>{let b=`${bl}/${a.id}`,c=`${g}/${a.id}`,e=Object.entries(ab).find(([,a])=>a===b||a===c)?.[0];return(0,d.jsx)(B,{model:a,fullModel:`${bn}/${a.id}`,alias:e,copied:a0,onCopy:a1,onSetAlias:b=>bA(a.id,b,bl),onDeleteAlias:()=>bB(e),testStatus:ah[a.id],onTest:o.length>0||ba?()=>bU(a.id):void 0,isTesting:al.has(a.id),isFree:a.isFree,onDisable:()=>bp(a.id),caps:n(`${g}/${a.id}`),thinkingSuffix:bk(a.id)},a.id)}),(0,d.jsxs)("button",{onClick:()=>ao(!0),className:"flex w-full items-center justify-center gap-1.5 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,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),"qoder"===g&&o.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bE,disabled:a$,className:"flex w-full items-center justify-center gap-1.5 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,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:a$?{animation:"spin 1s linear infinite"}:void 0,children:a$?"progress_activity":"download"}),a$?(0,x.Tl)("Fetching..."):(0,x.Tl)("Fetch Qoder Models")]}),aD.length>0&&(a=new Set([...Object.values(ab),...j.map(a=>a.fullModel)]),b=new Set(bc.map(a=>a.id)),0===(c=aD.filter(c=>!a.has(`${bl}/${c.id}`)&&!b.has(c.id))).length?null:(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map(a=>(0,d.jsxs)("button",{onClick:async()=>{await bC(a.id,"llm",bl)},className:"flex items-center gap-1 px-2.5 py-1.5 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:`${a.name} \xb7 ${(a.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id.split("/").pop()]},a.id))})]})),i.length>0&&(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",i.length,"):"]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:i.map(a=>(0,d.jsxs)("button",{onClick:()=>bq(a.id),className:"flex items-center gap-1 px-2.5 py-1.5 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,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id]},a.id))})]})]})})()]}),bT,"kiro"===g?(0,d.jsx)(k.Mh,{isOpen:C,providerInfo:a6,onSuccess:bH,onClose:()=>E(!1)}):"cursor"===g?(0,d.jsx)(k.G9,{isOpen:C,onSuccess:bH,onClose:()=>E(!1)}):"gitlab"===g?(0,d.jsx)(k.vj,{isOpen:C,providerInfo:a6,onSuccess:bH,onClose:()=>E(!1)}):(0,d.jsx)(k.LF,{isOpen:C,provider:g,providerInfo:a6,onSuccess:bH,onClose:()=>E(!1)}),"chatgpt-web"===g&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>O(!0),children:"Auto Connect"}),"iflow"===g&&(0,d.jsx)(k.vE,{isOpen:F,onSuccess:()=>{bv(),H(!1)},onClose:()=>H(!1)}),"chatgpt-web"===g&&(0,d.jsx)(k.hK,{isOpen:L,onSuccess:()=>{bv(),O(!1)},onClose:()=>O(!1)}),(0,d.jsx)(I,{isOpen:P,provider:g,providerName:a6.name,isCompatible:bg,isAnthropic:bf,authType:a6?.authType,authHint:a6?.authHint,website:a6?.website,proxyPools:z,error:R,existingNames:o.map(a=>a.name).filter(Boolean),onSave:bI,onBulkDone:bv,onClose:()=>{S(""),Q(!1)}}),(0,d.jsx)(k.wI,{isOpen:V,connection:_,proxyPools:z,onSave:bJ,onClose:()=>W(!1)}),bg&&(0,d.jsx)(J,{isOpen:X,node:s,onSave:bw,onClose:()=>Y(!1),isAnthropic:bf}),!bg&&(0,d.jsx)(K,{isOpen:an,providerAlias:bl,providerDisplayAlias:bn,onSave:async a=>{await bC(a,"llm",bl),ao(!1)},onClose:()=>ao(!1)}),"codex"===g&&(0,d.jsx)(M,{isOpen:T,onClose:()=>U(!1),onSuccess:bv}),(0,d.jsx)(k.uo,{isOpen:aN,onClose:()=>aO(!1),onConfirm:()=>{(aO(!1),a8)?a2():a4()},title:"Risk Notice",message:a6?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(k.uo,{isOpen:!!aL,onClose:()=>aM(null),onConfirm:aL?.onConfirm,title:aL?.title||"Confirm",message:aL?.message,variant:"danger"})]})}},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},74875:(a,b,c)=>{"use strict";function d(a,b){return!1===a?"default":"active"===b||"success"===b?"success":"error"===b||"expired"===b||"unavailable"===b?"error":"default"}c.d(b,{g:()=>d})},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},83997:a=>{"use strict";a.exports=require("tty")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},93110:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/polyrouter/polyrouter/src/app/(dashboard)/dashboard/providers/[id]/page.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/polyrouter/polyrouter/src/app/(dashboard)/dashboard/providers/[id]/page.js","default")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1260,2430,3289,2116,8230,1220,4491,2375,6070,869,915,6457,4123,2268,5611,412,3792],()=>b(b.s=21858));module.exports=c})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1220.js","../../../../../chunks/1260.js","../../../../../chunks/1455.js","../../../../../chunks/1522.js","../../../../../chunks/1605.js","../../../../../chunks/1813.js","../../../../../chunks/1829.js","../../../../../chunks/1882.js","../../../../../chunks/1998.js","../../../../../chunks/203.js","../../../../../chunks/2112.js","../../../../../chunks/2116.js","../../../../../chunks/2194.js","../../../../../chunks/2268.js","../../../../../chunks/238.js","../../../../../chunks/2391.js","../../../../../chunks/241.js","../../../../../chunks/2430.js","../../../../../chunks/2620.js","../../../../../chunks/3016.js","../../../../../chunks/318.js","../../../../../chunks/3259.js","../../../../../chunks/3289.js","../../../../../chunks/3535.js","../../../../../chunks/3546.js","../../../../../chunks/3558.js","../../../../../chunks/3593.js","../../../../../chunks/3726.js","../../../../../chunks/3943.js","../../../../../chunks/412.js","../../../../../chunks/4123.js","../../../../../chunks/4185.js","../../../../../chunks/4293.js","../../../../../chunks/4433.js","../../../../../chunks/4491.js","../../../../../chunks/4632.js","../../../../../chunks/4739.js","../../../../../chunks/4741.js","../../../../../chunks/4780.js","../../../../../chunks/5033.js","../../../../../chunks/507.js","../../../../../chunks/5182.js","../../../../../chunks/5258.js","../../../../../chunks/5433.js","../../../../../chunks/5573.js","../../../../../chunks/5611.js","../../../../../chunks/5612.js","../../../../../chunks/5615.js","../../../../../chunks/5699.js","../../../../../chunks/5852.js","../../../../../chunks/595.js","../../../../../chunks/6070.js","../../../../../chunks/615.js","../../../../../chunks/6306.js","../../../../../chunks/6457.js","../../../../../chunks/6763.js","../../../../../chunks/6844.js","../../../../../chunks/6877.js","../../../../../chunks/6922.js","../../../../../chunks/698.js","../../../../../chunks/7211.js","../../../../../chunks/7774.js","../../../../../chunks/7807.js","../../../../../chunks/7965.js","../../../../../chunks/8038.js","../../../../../chunks/8145.js","../../../../../chunks/8185.js","../../../../../chunks/8230.js","../../../../../chunks/827.js","../../../../../chunks/8363.js","../../../../../chunks/8520.js","../../../../../chunks/869.js","../../../../../chunks/8895.js","../../../../../chunks/8910.js","../../../../../chunks/8920.js","../../../../../chunks/915.js","../../../../../chunks/9521.js","../../../../../chunks/9528.js","../../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
1
+ {"version":1,"files":["../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1220.js","../../../../../chunks/1260.js","../../../../../chunks/1455.js","../../../../../chunks/1522.js","../../../../../chunks/1605.js","../../../../../chunks/1813.js","../../../../../chunks/1829.js","../../../../../chunks/1882.js","../../../../../chunks/1998.js","../../../../../chunks/203.js","../../../../../chunks/2112.js","../../../../../chunks/2116.js","../../../../../chunks/2194.js","../../../../../chunks/2268.js","../../../../../chunks/2375.js","../../../../../chunks/238.js","../../../../../chunks/2391.js","../../../../../chunks/241.js","../../../../../chunks/2430.js","../../../../../chunks/3016.js","../../../../../chunks/318.js","../../../../../chunks/3259.js","../../../../../chunks/3289.js","../../../../../chunks/3535.js","../../../../../chunks/3546.js","../../../../../chunks/3558.js","../../../../../chunks/3593.js","../../../../../chunks/3726.js","../../../../../chunks/3792.js","../../../../../chunks/3943.js","../../../../../chunks/412.js","../../../../../chunks/4123.js","../../../../../chunks/4293.js","../../../../../chunks/4433.js","../../../../../chunks/4491.js","../../../../../chunks/4632.js","../../../../../chunks/4739.js","../../../../../chunks/4741.js","../../../../../chunks/4780.js","../../../../../chunks/5033.js","../../../../../chunks/507.js","../../../../../chunks/5182.js","../../../../../chunks/5258.js","../../../../../chunks/5433.js","../../../../../chunks/5573.js","../../../../../chunks/5611.js","../../../../../chunks/5612.js","../../../../../chunks/5615.js","../../../../../chunks/5699.js","../../../../../chunks/5852.js","../../../../../chunks/595.js","../../../../../chunks/6070.js","../../../../../chunks/615.js","../../../../../chunks/6306.js","../../../../../chunks/6457.js","../../../../../chunks/6763.js","../../../../../chunks/6844.js","../../../../../chunks/6877.js","../../../../../chunks/6922.js","../../../../../chunks/698.js","../../../../../chunks/7211.js","../../../../../chunks/7774.js","../../../../../chunks/7807.js","../../../../../chunks/7965.js","../../../../../chunks/8038.js","../../../../../chunks/8145.js","../../../../../chunks/8185.js","../../../../../chunks/8230.js","../../../../../chunks/827.js","../../../../../chunks/8363.js","../../../../../chunks/8520.js","../../../../../chunks/869.js","../../../../../chunks/8895.js","../../../../../chunks/8910.js","../../../../../chunks/8920.js","../../../../../chunks/915.js","../../../../../chunks/9521.js","../../../../../chunks/9528.js","../../../../../webpack-runtime.js","page_client-reference-manifest.js"]}