9router-proxy 0.5.81 → 0.5.83

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 (772) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +3 -3
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +27 -27
  5. package/app/.next-cli-build/required-server-files.json +5 -5
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  76. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  79. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  84. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  86. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  87. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  88. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  89. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
  90. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  91. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  92. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  94. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  95. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route_client-reference-manifest.js +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/oidc/start/route_client-reference-manifest.js +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/oidc/test/route_client-reference-manifest.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/reset-password/route_client-reference-manifest.js +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/saml/acs/route_client-reference-manifest.js +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route_client-reference-manifest.js +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +2 -2
  116. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/auth/saml/start/route_client-reference-manifest.js +1 -1
  118. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/auth/saml/test/route_client-reference-manifest.js +1 -1
  121. package/app/.next-cli-build/server/app/api/auth/status/route.js +2 -2
  122. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  125. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route_client-reference-manifest.js +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  128. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route_client-reference-manifest.js +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  134. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  137. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route_client-reference-manifest.js +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  143. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route_client-reference-manifest.js +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route_client-reference-manifest.js +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  149. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route_client-reference-manifest.js +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  152. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route_client-reference-manifest.js +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  155. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route_client-reference-manifest.js +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route_client-reference-manifest.js +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  164. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route_client-reference-manifest.js +1 -1
  166. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  167. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route_client-reference-manifest.js +1 -1
  169. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  170. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route_client-reference-manifest.js +1 -1
  172. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  173. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route_client-reference-manifest.js +1 -1
  175. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  176. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
  178. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  179. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route_client-reference-manifest.js +1 -1
  181. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/combos/[id]/route_client-reference-manifest.js +1 -1
  184. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  185. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/combos/route_client-reference-manifest.js +1 -1
  187. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/headroom/extras/route_client-reference-manifest.js +1 -1
  190. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route_client-reference-manifest.js +1 -1
  193. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/headroom/restart/route_client-reference-manifest.js +1 -1
  196. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/headroom/start/route_client-reference-manifest.js +1 -1
  199. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/headroom/status/route_client-reference-manifest.js +1 -1
  202. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/headroom/stop/route_client-reference-manifest.js +1 -1
  205. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/health/route_client-reference-manifest.js +1 -1
  208. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/init/route_client-reference-manifest.js +1 -1
  211. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
  214. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/keys/route_client-reference-manifest.js +1 -1
  217. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/locale/route_client-reference-manifest.js +1 -1
  220. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route_client-reference-manifest.js +1 -1
  223. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  224. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route_client-reference-manifest.js +1 -1
  226. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route_client-reference-manifest.js +1 -1
  229. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route_client-reference-manifest.js +1 -1
  232. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route_client-reference-manifest.js +1 -1
  235. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route_client-reference-manifest.js +1 -1
  238. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route_client-reference-manifest.js +1 -1
  241. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
  244. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/models/availability/route_client-reference-manifest.js +1 -1
  247. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/models/catalog-sync/route_client-reference-manifest.js +1 -1
  250. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/models/custom/route_client-reference-manifest.js +1 -1
  253. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/models/disabled/route_client-reference-manifest.js +1 -1
  256. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/models/route_client-reference-manifest.js +1 -1
  259. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/models/test/route_client-reference-manifest.js +1 -1
  262. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route_client-reference-manifest.js +1 -1
  265. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route_client-reference-manifest.js +1 -1
  268. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route_client-reference-manifest.js +1 -1
  271. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route_client-reference-manifest.js +1 -1
  274. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route_client-reference-manifest.js +1 -1
  277. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route_client-reference-manifest.js +1 -1
  280. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route_client-reference-manifest.js +1 -1
  283. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route_client-reference-manifest.js +1 -1
  286. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route_client-reference-manifest.js +1 -1
  289. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route_client-reference-manifest.js +1 -1
  292. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  293. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route_client-reference-manifest.js +1 -1
  295. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route_client-reference-manifest.js +1 -1
  298. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route_client-reference-manifest.js +1 -1
  301. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route_client-reference-manifest.js +1 -1
  304. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route_client-reference-manifest.js +1 -1
  307. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  308. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route_client-reference-manifest.js +1 -1
  310. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/pricing/route_client-reference-manifest.js +1 -1
  313. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  314. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route_client-reference-manifest.js +1 -1
  316. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/provider-nodes/route_client-reference-manifest.js +1 -1
  319. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  320. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route_client-reference-manifest.js +1 -1
  322. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/providers/[id]/models/route_client-reference-manifest.js +1 -1
  325. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/providers/[id]/route_client-reference-manifest.js +1 -1
  328. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/providers/[id]/test/route_client-reference-manifest.js +1 -1
  331. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route_client-reference-manifest.js +1 -1
  334. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/providers/client/route_client-reference-manifest.js +1 -1
  337. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route_client-reference-manifest.js +1 -1
  340. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/providers/route_client-reference-manifest.js +1 -1
  343. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/providers/suggested-models/route_client-reference-manifest.js +1 -1
  346. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  347. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/providers/test-batch/route_client-reference-manifest.js +1 -1
  349. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/providers/validate/route_client-reference-manifest.js +1 -1
  352. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  353. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route_client-reference-manifest.js +1 -1
  355. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route_client-reference-manifest.js +1 -1
  358. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  359. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  360. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route_client-reference-manifest.js +1 -1
  361. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  362. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route_client-reference-manifest.js +1 -1
  364. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  365. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/proxy-pools/route_client-reference-manifest.js +1 -1
  367. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  368. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route_client-reference-manifest.js +1 -1
  370. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  371. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/pxpipe/health/route_client-reference-manifest.js +1 -1
  373. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  374. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/pxpipe/install/route_client-reference-manifest.js +1 -1
  376. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +1 -1
  377. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  378. package/app/.next-cli-build/server/app/api/pxpipe/logs/route_client-reference-manifest.js +1 -1
  379. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  380. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/pxpipe/restart/route_client-reference-manifest.js +1 -1
  382. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  383. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/pxpipe/start/route_client-reference-manifest.js +1 -1
  385. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  386. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/pxpipe/stats/route_client-reference-manifest.js +1 -1
  388. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  389. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/pxpipe/status/route_client-reference-manifest.js +1 -1
  391. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  392. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/pxpipe/stop/route_client-reference-manifest.js +1 -1
  394. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/settings/database/route_client-reference-manifest.js +1 -1
  397. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/settings/proxy-test/route_client-reference-manifest.js +1 -1
  400. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  401. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/settings/require-login/route_client-reference-manifest.js +1 -1
  403. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/settings/route_client-reference-manifest.js +1 -1
  406. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
  409. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  410. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/api/tags/route_client-reference-manifest.js +1 -1
  412. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  413. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/app/api/translator/console-logs/route_client-reference-manifest.js +1 -1
  415. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  416. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  417. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route_client-reference-manifest.js +1 -1
  418. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  419. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  420. package/app/.next-cli-build/server/app/api/translator/load/route_client-reference-manifest.js +1 -1
  421. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  422. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/api/translator/save/route_client-reference-manifest.js +1 -1
  424. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  425. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  426. package/app/.next-cli-build/server/app/api/translator/send/route_client-reference-manifest.js +1 -1
  427. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  428. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  429. package/app/.next-cli-build/server/app/api/translator/translate/route_client-reference-manifest.js +1 -1
  430. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  431. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  432. package/app/.next-cli-build/server/app/api/tunnel/disable/route_client-reference-manifest.js +1 -1
  433. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  434. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  435. package/app/.next-cli-build/server/app/api/tunnel/enable/route_client-reference-manifest.js +1 -1
  436. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  437. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/api/tunnel/status/route_client-reference-manifest.js +1 -1
  439. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  440. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  441. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route_client-reference-manifest.js +1 -1
  442. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  443. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  444. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route_client-reference-manifest.js +1 -1
  445. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  446. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  447. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route_client-reference-manifest.js +1 -1
  448. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  449. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  450. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route_client-reference-manifest.js +1 -1
  451. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  452. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  453. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route_client-reference-manifest.js +1 -1
  454. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  455. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  456. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route_client-reference-manifest.js +1 -1
  457. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  458. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  459. package/app/.next-cli-build/server/app/api/usage/chart/route_client-reference-manifest.js +1 -1
  460. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  461. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  462. package/app/.next-cli-build/server/app/api/usage/history/route_client-reference-manifest.js +1 -1
  463. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  464. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  465. package/app/.next-cli-build/server/app/api/usage/logs/route_client-reference-manifest.js +1 -1
  466. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  467. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  468. package/app/.next-cli-build/server/app/api/usage/providers/route_client-reference-manifest.js +1 -1
  469. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  470. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  471. package/app/.next-cli-build/server/app/api/usage/request-details/route_client-reference-manifest.js +1 -1
  472. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  473. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  474. package/app/.next-cli-build/server/app/api/usage/request-logs/route_client-reference-manifest.js +1 -1
  475. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  476. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  477. package/app/.next-cli-build/server/app/api/usage/stats/route_client-reference-manifest.js +1 -1
  478. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  479. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  480. package/app/.next-cli-build/server/app/api/usage/stream/route_client-reference-manifest.js +1 -1
  481. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  482. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  483. package/app/.next-cli-build/server/app/api/v1/api/chat/route_client-reference-manifest.js +1 -1
  484. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  485. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  486. package/app/.next-cli-build/server/app/api/v1/audio/speech/route_client-reference-manifest.js +1 -1
  487. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  488. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  489. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route_client-reference-manifest.js +1 -1
  490. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  491. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  492. package/app/.next-cli-build/server/app/api/v1/audio/voices/route_client-reference-manifest.js +1 -1
  493. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  494. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  495. package/app/.next-cli-build/server/app/api/v1/chat/completions/route_client-reference-manifest.js +1 -1
  496. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  497. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  498. package/app/.next-cli-build/server/app/api/v1/embeddings/route_client-reference-manifest.js +1 -1
  499. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  500. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  501. package/app/.next-cli-build/server/app/api/v1/images/generations/route_client-reference-manifest.js +1 -1
  502. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  503. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  504. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.js +1 -1
  505. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  506. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  507. package/app/.next-cli-build/server/app/api/v1/messages/route_client-reference-manifest.js +1 -1
  508. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  509. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  510. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route_client-reference-manifest.js +1 -1
  511. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  512. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  513. package/app/.next-cli-build/server/app/api/v1/models/info/route_client-reference-manifest.js +1 -1
  514. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  515. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  516. package/app/.next-cli-build/server/app/api/v1/models/route_client-reference-manifest.js +1 -1
  517. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  518. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  519. package/app/.next-cli-build/server/app/api/v1/responses/compact/route_client-reference-manifest.js +1 -1
  520. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  521. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  522. package/app/.next-cli-build/server/app/api/v1/responses/route_client-reference-manifest.js +1 -1
  523. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  524. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  525. package/app/.next-cli-build/server/app/api/v1/route_client-reference-manifest.js +1 -1
  526. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  527. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  528. package/app/.next-cli-build/server/app/api/v1/search/route_client-reference-manifest.js +1 -1
  529. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  530. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  531. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route_client-reference-manifest.js +1 -1
  532. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  533. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  534. package/app/.next-cli-build/server/app/api/v1/videos/edits/route_client-reference-manifest.js +1 -1
  535. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  536. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  537. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route_client-reference-manifest.js +1 -1
  538. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  539. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  540. package/app/.next-cli-build/server/app/api/v1/videos/generations/route_client-reference-manifest.js +1 -1
  541. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  542. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  543. package/app/.next-cli-build/server/app/api/v1/web/fetch/route_client-reference-manifest.js +1 -1
  544. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  545. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  546. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +1 -1
  547. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  548. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  549. package/app/.next-cli-build/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
  550. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  551. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  552. package/app/.next-cli-build/server/app/api/version/route_client-reference-manifest.js +1 -1
  553. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  554. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  555. package/app/.next-cli-build/server/app/api/version/shutdown/route_client-reference-manifest.js +1 -1
  556. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  557. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  558. package/app/.next-cli-build/server/app/api/version/update/route_client-reference-manifest.js +1 -1
  559. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  560. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  561. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  562. package/app/.next-cli-build/server/app/callback.html +1 -1
  563. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  564. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  565. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  566. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
  567. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  568. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  569. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +6 -6
  570. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  571. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  572. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  573. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
  574. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
  575. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
  576. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  577. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  578. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  579. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +6 -6
  580. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  581. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  582. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  583. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
  584. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +6 -6
  585. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
  586. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  587. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  588. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  589. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +6 -6
  590. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  591. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  592. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  593. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  594. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
  595. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  596. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  597. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  598. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  599. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +6 -6
  600. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  601. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  602. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  603. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  604. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +6 -6
  605. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  606. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  607. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  608. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  609. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +6 -6
  610. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  611. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  612. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  613. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  614. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +6 -6
  615. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  616. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  617. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  618. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  619. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +6 -6
  620. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  621. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  622. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  623. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  624. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +7 -7
  625. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  626. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  627. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  628. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  629. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  630. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  631. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  632. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  633. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  634. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
  635. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  636. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  637. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +6 -6
  638. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  639. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  640. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  641. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  642. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +6 -6
  643. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  644. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  645. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  646. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  647. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +6 -6
  648. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  649. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  650. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  651. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  652. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +6 -6
  653. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  654. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  655. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  656. package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
  657. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +6 -6
  658. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
  659. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  660. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  661. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  662. package/app/.next-cli-build/server/app/index.html +1 -1
  663. package/app/.next-cli-build/server/app/index.rsc +4 -4
  664. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  665. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  666. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  667. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  668. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  669. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  670. package/app/.next-cli-build/server/app/landing.html +1 -1
  671. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  672. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  673. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  674. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +5 -5
  675. package/app/.next-cli-build/server/app/login/page.js +1 -1
  676. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  677. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  678. package/app/.next-cli-build/server/app/login.html +1 -1
  679. package/app/.next-cli-build/server/app/login.rsc +5 -5
  680. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  681. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  682. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
  683. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  684. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  685. package/app/.next-cli-build/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  686. package/app/.next-cli-build/server/app/page.js +1 -1
  687. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  688. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  689. package/app/.next-cli-build/server/app-paths-manifest.json +3 -3
  690. package/app/.next-cli-build/server/chunks/1220.js +1 -1
  691. package/app/.next-cli-build/server/chunks/1478.js +1 -1
  692. package/app/.next-cli-build/server/chunks/2214.js +3 -0
  693. package/app/.next-cli-build/server/chunks/2430.js +4 -4
  694. package/app/.next-cli-build/server/chunks/2751.js +1 -0
  695. package/app/.next-cli-build/server/chunks/2870.js +1 -0
  696. package/app/.next-cli-build/server/chunks/3459.js +1 -1
  697. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  698. package/app/.next-cli-build/server/chunks/4037.js +1 -1
  699. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  700. package/app/.next-cli-build/server/chunks/4572.js +1 -1
  701. package/app/.next-cli-build/server/chunks/4730.js +1 -1
  702. package/app/.next-cli-build/server/chunks/8145.js +1 -1
  703. package/app/.next-cli-build/server/chunks/869.js +1 -1
  704. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  705. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  706. package/app/.next-cli-build/server/middleware.js +3 -3
  707. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  708. package/app/.next-cli-build/server/next-font-manifest.js +1 -1
  709. package/app/.next-cli-build/server/next-font-manifest.json +1 -1
  710. package/app/.next-cli-build/server/pages/404.html +1 -1
  711. package/app/.next-cli-build/server/pages/500.html +1 -1
  712. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  713. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  714. package/app/.next-cli-build/static/chunks/{1321-976ef0bef838e4bc.js → 1321-338ffabac587d51a.js} +1 -1
  715. package/app/.next-cli-build/static/chunks/809-c530a61052bf57d9.js +3 -0
  716. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-6d5c472d92ad4d7b.js → page-bf62957e6bf0c9b6.js} +1 -1
  717. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-aedc4da9b1e64ba1.js → page-e9094f6397e3db32.js} +1 -1
  718. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-6d9baf555ca7e1a9.js → page-49227e9571ca75ee.js} +1 -1
  719. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-f16f14e3708413c6.js → page-22d499936f64e70d.js} +1 -1
  720. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-fc64937433e2052b.js → page-5ce7e708e65d7ed2.js} +1 -1
  721. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-cf249feaa9108a4e.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-634c7c6009db3c9a.js → page-452f4c039beb1ff0.js} +2 -2
  723. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-fe79c701b0256560.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-b97c67f4e942cd35.js → page-c20828e9f181b48c.js} +1 -1
  725. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-6b5e415f16f2015e.js → page-1eaf569d16f5fc95.js} +1 -1
  726. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-f5773f327357e5c0.js → page-991110e90ac5b7ca.js} +1 -1
  727. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-b52bdd6de15807fc.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-60112f6b6217c23d.js → page-1707a43605025629.js} +1 -1
  729. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-61c471f2f094e671.js → page-a1a8249b040b3fc5.js} +1 -1
  730. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-b74f96b9d4217a63.js → page-378e16c550d6670d.js} +1 -1
  731. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-534cf66a5d57f5da.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-74f7c8a6eae89546.js → page-9afa902610df6eda.js} +2 -2
  733. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-50ca788a79bff514.js → page-930edc3414aefb99.js} +1 -1
  734. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-f3e8f3d109886a92.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-a30b31b2fab6e55f.js → page-ff4999c854469b73.js} +1 -1
  736. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-a5ed9cd2ec340299.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-6e1bf9615b110473.js → page-074f26128db0c704.js} +1 -1
  738. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-a802ce8ca6fa34c3.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-235aa653589384de.js → layout-1e553b4323bf7053.js} +1 -1
  740. package/app/.next-cli-build/static/chunks/app/_not-found/page-9cb0ac70ab60eba2.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/callback/page-ee5f77ef69dd466f.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/{page-363940edf26f7293.js → page-afccf4209692aa6f.js} +1 -1
  743. package/app/.next-cli-build/static/chunks/app/landing/{page-258585580e004f81.js → page-0185c25e389af607.js} +1 -1
  744. package/app/.next-cli-build/static/chunks/app/layout-00c8624593ca90e2.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/login/{page-f028d26bd6d12748.js → page-c72141d109a846b7.js} +1 -1
  746. package/app/.next-cli-build/static/chunks/main-app-6b83f9262ea4869d.js +1 -0
  747. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-fc979617952f596f.js +1 -0
  748. package/app/package.json +1 -1
  749. package/app/server.js +1 -1
  750. package/package.json +2 -2
  751. package/app/.next-cli-build/server/chunks/3332.js +0 -1
  752. package/app/.next-cli-build/server/chunks/3956.js +0 -3
  753. package/app/.next-cli-build/server/chunks/9667.js +0 -1
  754. package/app/.next-cli-build/static/chunks/9246-3416a4e77c91f76c.js +0 -3
  755. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-bb4b4646897cd2e7.js +0 -1
  756. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-c613f178fca0d7cb.js +0 -1
  757. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-334ec5a4985a3bb1.js +0 -1
  758. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-6cbb5af377c79574.js +0 -1
  759. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-8a4858aa4d4c0d42.js +0 -1
  760. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-14c66e5844bef120.js +0 -1
  761. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-88424527e5a39243.js +0 -1
  762. package/app/.next-cli-build/static/chunks/app/_not-found/page-5b9d4fc0a96993f8.js +0 -1
  763. package/app/.next-cli-build/static/chunks/app/callback/page-4ab401c9515d534f.js +0 -1
  764. package/app/.next-cli-build/static/chunks/app/layout-0afb71a399c4e37f.js +0 -1
  765. package/app/.next-cli-build/static/chunks/main-app-f80e368a7022c830.js +0 -1
  766. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-a07eb5f6e9f351cd.js +0 -1
  767. package/app/cli/.build-home/.9router/db/data.sqlite +0 -0
  768. package/app/cli/.build-home/.9router/jwt-secret +0 -1
  769. package/app/cli/.build-home/.9router/machine-id +0 -1
  770. package/app/cli/.build-home/Library/Preferences/nextjs-nodejs/config.json +0 -7
  771. /package/app/.next-cli-build/static/{RvPfxRU3vz4JmXHcrSyc4 → 3C7TjBE-6n_cSjwJbMKkM}/_buildManifest.js +0 -0
  772. /package/app/.next-cli-build/static/{RvPfxRU3vz4JmXHcrSyc4 → 3C7TjBE-6n_cSjwJbMKkM}/_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")},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")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},54920:(a,b,c)=>{Promise.resolve().then(c.bind(c,91694))},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")},68072:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},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")},79868: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")},84610:(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))),"/Users/xuliang/Documents/project/9router/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,"/Users/xuliang/Documents/project/9router/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:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/Users/xuliang/Documents/project/9router/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:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],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},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")},91694:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>U});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(70552),o=c(18982);c(87592);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"],commandcode:["none","low","medium","high","xhigh","max"],minimax:q,hunyuan:p,step:p},t=["none","minimal","low","medium","high","xhigh","max"],u=[{provider:"codex",pattern:"*gpt-6*",levels:t},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...t,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...t,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:t},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{pattern:"*deepseek-v4.*",levels:["none","low","medium","high","xhigh","max"]},{provider:"codebuddy-cn",pattern:"glm-5.3*",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.2",levels:["high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"hy3*",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4*",levels:["high"]},{provider:"codebuddy-intl",pattern:"deepseek-v4*",levels:["low","high","xhigh"]}];function v(a,b){if("kiro"===a&&null===function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(b))return"reasoning";if(!b.includes("claude"))return null;let c=b.match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);if(!c)return null;let[,d,e]=c,f=Number(d),g=void 0===e?null:Number(e);return f<4||4===f&&(null===g||g<=5||null!==g&&g>=1e3)?null:"output_config"}(b))return null;let c=(0,n.nl)(a,b);if(!c.reasoning)return null;let d=u.find(c=>(!c.provider||c.provider===a)&&(0,o.gH)(c.pattern,b)),e=d?.levels||s[c.thinkingFormat]||p;return!1===c.thinkingCanDisable&&(e=e.filter(a=>"none"!==a)),e}var w=c(50377),x=c(29476),y=c(99258);function z({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 A=c(49885),B=c.n(A);function C({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 rounded-lg 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 rounded 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:"rounded 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 rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):n?(0,d.jsx)("button",{onClick:n,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function D({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 rounded-lg 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 rounded",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 rounded 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 rounded 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 rounded text-red-500",title:"Remove model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function E({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)({}),y=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=z({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)}},C=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 rounded-lg 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:C,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)(D,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?l(c):i(e),onTest:m.length>0?()=>y(c):void 0,testStatus:w[c],isTesting:u===c},`${f}-${a}/${c}`))})]})}C.propTypes={model:B().shape({id:B().string.isRequired}).isRequired,fullModel:B().string.isRequired,alias:B().string,copied:B().string,onCopy:B().func.isRequired,testStatus:B().oneOf(["ok","error"]),isCustom:B().bool,isFree:B().bool,onDeleteAlias:B().func,onTest:B().func,isTesting:B().bool,onDisable:B().func,caps:B().object,thinkingSuffix:B().string},B().string.isRequired,B().string.isRequired,B().string,B().func.isRequired,B().func.isRequired,B().func,B().oneOf(["ok","error"]),B().bool,B().string.isRequired,B().object.isRequired,B().arrayOf(B().object),B().string,B().func.isRequired,B().func.isRequired,B().func.isRequired,B().func.isRequired,E.propTypes={providerStorageAlias:B().string.isRequired,providerDisplayAlias:B().string.isRequired,modelAliases:B().object.isRequired,customModels:B().arrayOf(B().object),copied:B().string,onCopy:B().func.isRequired,onDeleteAlias:B().func.isRequired,onAddCustomModel:B().func.isRequired,onDeleteCustomModel:B().func.isRequired,connections:B().arrayOf(B().shape({id:B().string,isActive:B().bool})).isRequired,isAnthropic:B().bool};var F=c(74875);function G({until:a}){let[b,c]=(0,e.useState)("");return b?(0,d.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",b]}):null}function H({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,t]=(0,e.useState)(!1),u=(0,e.useRef)(null),v=new Map((b||[]).map(a=>[a.id,a])),w=a.providerSpecificData?.proxyPoolId||null,x=w?v.get(w):null,y=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,z=!!w||y,A=x?`Pool: ${x.name}`:w?`Pool: ${w} (inactive/missing)`:y?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",B=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.",C="";if(x?.proxyUrl||a.providerSpecificData?.connectionProxyUrl){let b=x?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);C=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{C=b}}let D=x?.noProxy||a.providerSpecificData?.connectionNoProxy||"",E="default";x?.isActive===!0?E="success":(w||y)&&(E="error");let I=async a=>{t(!0);try{await l("__none__"===a?null:a)}finally{t(!1),r(!1)}},J=a.authType||(c?"oauth":"apikey"),K="oauth"===J,L="cookie"===J,M=a.name?.trim()||a.email?.trim()||a.displayName?.trim()||(K?"OAuth Account":L?"Cookie Account":"API Key"),N=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,[O,P]=(0,e.useState)(!1),Q=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,R="unavailable"!==a.testStatus||O?a.testStatus:"active",S=()=>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 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===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 rounded ${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 rounded ${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:L?"cookie":K?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:M}),N&&(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:N}),(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,F.g)(a.isActive,R),size:"sm",dot:!0,children:!1===a.isActive?"disabled":R||"Unknown"}),(0,d.jsx)(k.Ex,{variant:"default",size:"sm",children:K?"OAuth":L?"Cookie":"API Key"}),z&&(0,d.jsx)(k.Ex,{variant:E,size:"sm",children:"Proxy"}),O&&!1!==a.isActive&&(0,d.jsx)(G,{until:Q}),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]}),S()&&(0,d.jsx)(k.Ex,{variant:o?"success"===o.state?"success":"failed"===o.state?"error":"testing"===o.state?"primary":"default":"default",size:"sm",children:S()})]}),z&&(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:A,children:A}),C&&(0,d.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:C}),D&&(0,d.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:D,children:["no_proxy: ",D]})]})]})]}),(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)("div",{className:"relative",ref:u,children:[(0,d.jsxs)("button",{onClick:()=>r(a=>!a),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${z?"text-primary":"text-text-muted hover:text-primary"}`,disabled:s,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:s?"progress_activity":"lan"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),q&&(0,d.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,d.jsx)("button",{onClick:()=>I("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!w?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,d.jsx)("button",{onClick:()=>I(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${w===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]})]}),p&&(0,d.jsx)(k.m_,{text:B,children:(0,d.jsxs)("button",{onClick:()=>p.onToggle(!p.on),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${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 rounded 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 rounded 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"})]})]})}G.propTypes={until:B().string.isRequired},H.propTypes={connection:B().shape({id:B().string,name:B().string,email:B().string,displayName:B().string,modelLockUntil:B().string,testStatus:B().string,isActive:B().bool,lastError:B().string,priority:B().number,globalPriority:B().number}).isRequired,proxyPools:B().arrayOf(B().shape({id:B().string,name:B().string,proxyUrl:B().string,noProxy:B().string,isActive:B().bool})),isOAuth:B().bool.isRequired,isFirst:B().bool.isRequired,isLast:B().bool.isRequired,onMoveUp:B().func.isRequired,onMoveDown:B().func.isRequired,onToggleActive:B().func.isRequired,onUpdateProxy:B().func,onEdit:B().func.isRequired,onDelete:B().func.isRequired,oneByOneStatus:B().shape({state:B().string,error:B().string}),autoPing:B().shape({on:B().bool,onToggle:B().func,provider:B().string})};let I=`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")},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")},24075:(a,b,c)=>{Promise.resolve().then(c.bind(c,91694))},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")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},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")},71622:a=>{"use strict";a.exports=import("open")},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")},79868: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")},84516:(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/9router/9router/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/9router/9router/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:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/home/runner/work/9router/9router/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:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],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},87123:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},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")},91694:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>U});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(70552),o=c(18982);c(87592);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"],commandcode:["none","low","medium","high","xhigh","max"],minimax:q,hunyuan:p,step:p},t=["none","minimal","low","medium","high","xhigh","max"],u=[{provider:"codex",pattern:"*gpt-6*",levels:t},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...t,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...t,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:t},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{pattern:"*deepseek-v4.*",levels:["none","low","medium","high","xhigh","max"]},{provider:"codebuddy-cn",pattern:"glm-5.3*",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.2",levels:["high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"hy3*",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4*",levels:["high"]},{provider:"codebuddy-intl",pattern:"deepseek-v4*",levels:["low","high","xhigh"]}];function v(a,b){if("kiro"===a&&null===function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(b))return"reasoning";if(!b.includes("claude"))return null;let c=b.match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);if(!c)return null;let[,d,e]=c,f=Number(d),g=void 0===e?null:Number(e);return f<4||4===f&&(null===g||g<=5||null!==g&&g>=1e3)?null:"output_config"}(b))return null;let c=(0,n.nl)(a,b);if(!c.reasoning)return null;let d=u.find(c=>(!c.provider||c.provider===a)&&(0,o.gH)(c.pattern,b)),e=d?.levels||s[c.thinkingFormat]||p;return!1===c.thinkingCanDisable&&(e=e.filter(a=>"none"!==a)),e}var w=c(50377),x=c(29476),y=c(99258);function z({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 A=c(49885),B=c.n(A);function C({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 rounded-lg 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 rounded 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:"rounded 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 rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):n?(0,d.jsx)("button",{onClick:n,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function D({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 rounded-lg 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 rounded",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 rounded 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 rounded 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 rounded text-red-500",title:"Remove model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function E({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)({}),y=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=z({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)}},C=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 rounded-lg 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:C,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)(D,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?l(c):i(e),onTest:m.length>0?()=>y(c):void 0,testStatus:w[c],isTesting:u===c},`${f}-${a}/${c}`))})]})}C.propTypes={model:B().shape({id:B().string.isRequired}).isRequired,fullModel:B().string.isRequired,alias:B().string,copied:B().string,onCopy:B().func.isRequired,testStatus:B().oneOf(["ok","error"]),isCustom:B().bool,isFree:B().bool,onDeleteAlias:B().func,onTest:B().func,isTesting:B().bool,onDisable:B().func,caps:B().object,thinkingSuffix:B().string},B().string.isRequired,B().string.isRequired,B().string,B().func.isRequired,B().func.isRequired,B().func,B().oneOf(["ok","error"]),B().bool,B().string.isRequired,B().object.isRequired,B().arrayOf(B().object),B().string,B().func.isRequired,B().func.isRequired,B().func.isRequired,B().func.isRequired,E.propTypes={providerStorageAlias:B().string.isRequired,providerDisplayAlias:B().string.isRequired,modelAliases:B().object.isRequired,customModels:B().arrayOf(B().object),copied:B().string,onCopy:B().func.isRequired,onDeleteAlias:B().func.isRequired,onAddCustomModel:B().func.isRequired,onDeleteCustomModel:B().func.isRequired,connections:B().arrayOf(B().shape({id:B().string,isActive:B().bool})).isRequired,isAnthropic:B().bool};var F=c(74875);function G({until:a}){let[b,c]=(0,e.useState)("");return b?(0,d.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",b]}):null}function H({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,t]=(0,e.useState)(!1),u=(0,e.useRef)(null),v=new Map((b||[]).map(a=>[a.id,a])),w=a.providerSpecificData?.proxyPoolId||null,x=w?v.get(w):null,y=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,z=!!w||y,A=x?`Pool: ${x.name}`:w?`Pool: ${w} (inactive/missing)`:y?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",B=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.",C="";if(x?.proxyUrl||a.providerSpecificData?.connectionProxyUrl){let b=x?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);C=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{C=b}}let D=x?.noProxy||a.providerSpecificData?.connectionNoProxy||"",E="default";x?.isActive===!0?E="success":(w||y)&&(E="error");let I=async a=>{t(!0);try{await l("__none__"===a?null:a)}finally{t(!1),r(!1)}},J=a.authType||(c?"oauth":"apikey"),K="oauth"===J,L="cookie"===J,M=a.name?.trim()||a.email?.trim()||a.displayName?.trim()||(K?"OAuth Account":L?"Cookie Account":"API Key"),N=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,[O,P]=(0,e.useState)(!1),Q=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,R="unavailable"!==a.testStatus||O?a.testStatus:"active",S=()=>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 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===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 rounded ${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 rounded ${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:L?"cookie":K?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:M}),N&&(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:N}),(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,F.g)(a.isActive,R),size:"sm",dot:!0,children:!1===a.isActive?"disabled":R||"Unknown"}),(0,d.jsx)(k.Ex,{variant:"default",size:"sm",children:K?"OAuth":L?"Cookie":"API Key"}),z&&(0,d.jsx)(k.Ex,{variant:E,size:"sm",children:"Proxy"}),O&&!1!==a.isActive&&(0,d.jsx)(G,{until:Q}),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]}),S()&&(0,d.jsx)(k.Ex,{variant:o?"success"===o.state?"success":"failed"===o.state?"error":"testing"===o.state?"primary":"default":"default",size:"sm",children:S()})]}),z&&(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:A,children:A}),C&&(0,d.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:C}),D&&(0,d.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:D,children:["no_proxy: ",D]})]})]})]}),(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)("div",{className:"relative",ref:u,children:[(0,d.jsxs)("button",{onClick:()=>r(a=>!a),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${z?"text-primary":"text-text-muted hover:text-primary"}`,disabled:s,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:s?"progress_activity":"lan"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),q&&(0,d.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,d.jsx)("button",{onClick:()=>I("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!w?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,d.jsx)("button",{onClick:()=>I(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${w===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]})]}),p&&(0,d.jsx)(k.m_,{text:B,children:(0,d.jsxs)("button",{onClick:()=>p.onToggle(!p.on),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${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 rounded 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 rounded 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"})]})]})}G.propTypes={until:B().string.isRequired},H.propTypes={connection:B().shape({id:B().string,name:B().string,email:B().string,displayName:B().string,modelLockUntil:B().string,testStatus:B().string,isActive:B().bool,lastError:B().string,priority:B().number,globalPriority:B().number}).isRequired,proxyPools:B().arrayOf(B().shape({id:B().string,name:B().string,proxyUrl:B().string,noProxy:B().string,isActive:B().bool})),isOAuth:B().bool.isRequired,isFirst:B().bool.isRequired,isLast:B().bool.isRequired,onMoveUp:B().func.isRequired,onMoveDown:B().func.isRequired,onToggleActive:B().func.isRequired,onUpdateProxy:B().func,onEdit:B().func.isRequired,onDelete:B().func.isRequired,oneByOneStatus:B().shape({state:B().string,error:B().string}),autoPing:B().shape({on:B().bool,onToggle:B().func,provider:B().string})};let I=`name1|sk-key1
2
2
  name2|sk-key2
3
3
  sk-key-only-auto-named`;function J({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":"qoder"===b||"qoder-cn"===b?"Personal Access Token (PAT)":"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:""}),[H,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
@@ -24,4 +24,4 @@ pt-only-auto-named`:I,[S,T]=(0,e.useState)("single"),[U,V]=(0,e.useState)(""),[W
24
24
  "id_token": "eyJ0eXAiOiJKV1QiLCJhbGci...",
25
25
  "email": "account2@example.com"
26
26
  }
27
- ]`;function Q(a){let b,c=a.trim();if(!c)return[];try{b=JSON.parse(c)}catch(a){try{let a=c;a.startsWith("[")||((a=a.replace(/\}\s*,\s*\{/g,"},{").replace(/\}\s*\{/g,"},{")).endsWith(",")&&(a=a.slice(0,-1)),a=`[${a}]`),b=JSON.parse(a)}catch{throw a}}if(Array.isArray(b))return b;if(b&&"object"==typeof b)return Array.isArray(b.accounts)?b.accounts:[b];throw Error("Input must be a JSON object or array of objects")}function R({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,p]=(0,e.useState)(!1),[q,r]=(0,e.useState)(null),s=(0,e.useRef)(null),t=()=>{h||(g(""),l(""),n(null),r(null),p(!1),b())},u=async a=>{if(!a||0===a.length)return;l("");let b=Array.from(a).filter(a=>a.name.endsWith(".json")||"application/json"===a.type||""===a.type);if(0===b.length)return void l((0,y.Tl)("Please select valid .json files"));try{let a=[];for(let c of b){let b=await c.text(),d=Q(b);Array.isArray(d)?a.push(...d):d&&a.push(d)}if(0===a.length)return void l((0,y.Tl)("No accounts found in selected files"));g(JSON.stringify(a,null,2)),r({filesCount:b.length,accountsCount:a.length})}catch(a){l(`${(0,y.Tl)("Error reading files")}: ${a.message}`)}},v=async()=>{let a;l(""),n(null);try{a=Q(f)}catch(a){l(`${(0,y.Tl)("Invalid JSON")}: ${a.message}`);return}if(!a||0===a.length)return void l((0,y.Tl)("No accounts found in input"));i(!0);try{let b=await fetch("/api/oauth/grok-cli/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:a})}),d=await b.json();if(!b.ok)return void l(d?.error||`Request failed: ${b.status}`);n(d),d.success>0&&"function"==typeof c&&c()}catch(a){l(a.message||(0,y.Tl)("Request failed"))}finally{i(!1)}},w=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(k.aF,{isOpen:a,title:(0,y.Tl)("Bulk Add Grok CLI Accounts"),onClose:t,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:(0,y.Tl)("Upload multiple .json files or paste JSON array / object.")}),(0,d.jsx)("input",{ref:s,type:"file",accept:".json,application/json",multiple:!0,className:"hidden",onChange:a=>{u(a.target.files),a.target&&(a.target.value="")}}),(0,d.jsx)(k.$n,{type:"button",size:"sm",variant:"secondary",icon:"upload_file",onClick:()=>s.current?.click(),disabled:h,children:(0,y.Tl)("Upload JSON Files")})]}),(0,d.jsxs)("div",{onDragOver:a=>{a.preventDefault(),p(!0)},onDragLeave:a=>{a.preventDefault(),p(!1)},onDrop:a=>{a.preventDefault(),p(!1),a.dataTransfer?.files?.length>0&&u(a.dataTransfer.files)},className:`relative rounded border transition-colors ${o?"border-primary bg-primary/10 ring-2 ring-primary/30":"border-accent/30 bg-sidebar"}`,children:[(0,d.jsx)("textarea",{className:"w-full rounded bg-transparent p-2.5 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:P,value:f,onChange:a=>{g(a.target.value),r(null)},disabled:h}),o&&(0,d.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-sidebar/90 rounded pointer-events-none backdrop-blur-xs",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary mb-1",children:"upload_file"}),(0,d.jsx)("span",{className:"text-sm font-medium text-primary",children:(0,y.Tl)("Drop .json files here")})]})]}),q&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-green-400 font-medium bg-green-500/10 border border-green-500/20 px-2.5 py-1.5 rounded",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"check_circle"}),(0,d.jsxs)("span",{children:[(0,y.Tl)("Loaded")," ",q.accountsCount," ",(0,y.Tl)("account(s) from")," ",q.filesCount," ",(0,y.Tl)("file(s)")]})]}),j&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:j}),m&&m.failed>0&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"text-sm font-medium text-yellow-400",children:["✗ ",m.failed," ",(0,y.Tl)("failed")]}),w.length>0&&(0,d.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:w.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:v,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,y.Tl)("Importing..."):(0,y.Tl)("Import All")}),(0,d.jsx)(k.$n,{onClick:t,variant:"ghost",fullWidth:!0,disabled:h,children:(0,y.Tl)("Close")})]})]})})}let S={claude:"claudeAutoPing",codex:"codexAutoPing"},T={qoder:"Fetch Qoder Models","qoder-cn":"Fetch Qoder Models","trae-enterprise":"Fetch Trae Enterprise Models",codearts:"Fetch CodeArts Models"};function U(){let a,b,c,g,n,o=(0,f.useParams)(),p=(0,f.useRouter)(),q=o.id,{getCaps:r}=(0,x.y)(),[s,t]=(0,e.useState)([]),[u,A]=(0,e.useState)(!0),[B,D]=(0,e.useState)(null),[F,G]=(0,e.useState)([]),[I,L]=(0,e.useState)(!1),[N,P]=(0,e.useState)(!1),[Q,U]=(0,e.useState)(!1),[V,W]=(0,e.useState)(!1),[X,Y]=(0,e.useState)(""),[Z,$]=(0,e.useState)(!1),[_,aa]=(0,e.useState)(!1),[ab,ac]=(0,e.useState)(!1),[ad,ae]=(0,e.useState)(!1),[af,ag]=(0,e.useState)(!1),[ah,ai]=(0,e.useState)(null),[aj,ak]=(0,e.useState)({}),[al,am]=(0,e.useState)([]),[an,ao]=(0,e.useState)(!1),[ap,aq]=(0,e.useState)({}),[ar,as]=(0,e.useState)(""),[at,au]=(0,e.useState)(()=>new Set),[av,aw]=(0,e.useState)(!1),[ax,ay]=(0,e.useState)([]),[az,aA]=(0,e.useState)("__none__"),[aB,aC]=(0,e.useState)(!1),[aD,aE]=(0,e.useState)(null),[aF,aG]=(0,e.useState)(""),[aH,aI]=(0,e.useState)("auto"),[aJ,aK]=(0,e.useState)({enabled:!1,connections:{}}),[aL,aM]=(0,e.useState)([]),[aN,aO]=(0,e.useState)([]),[aP,aQ]=(0,e.useState)(null),[aR,aS]=(0,e.useState)([]),[aT,aU]=(0,e.useState)([]),[aV,aW]=(0,e.useState)(null),[aX,aY]=(0,e.useState)(!1),[aZ,a$]=(0,e.useState)(!1),[a_,a0]=(0,e.useState)(!1),[a1,a2]=(0,e.useState)(null),[a3,a4]=(0,e.useState)({}),[a5,a6]=(0,e.useState)(null),a7=(0,e.useRef)(!1),[a8,a9]=(0,e.useState)(!1),[ba,bb]=(0,e.useState)(!1),{copied:bc,copy:bd}=(0,w.C)(),be=()=>{L(!0)},bf=()=>{"xiaomi-mimo"===q?P(!0):bk?be():(Y(""),W(!0))},bg=()=>{Y(""),W(!0)},bh=()=>{bk?bf():bg()},bi=B?{id:B.id,name:B.name||("anthropic-compatible"===B.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===B.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===B.type?"AC":"OC",apiType:B.apiType,baseUrl:B.baseUrl,type:B.type}:l.zN[q]||l.fg[q]||l.IS[q]||l.nJ[q]||l.br[q],bj=bi?.authModes||[],bk=!!l.zN[q]||!!l.IS[q]||bj.includes("oauth"),bl=!!l.fg[q]||bj.includes("apikey"),bm=!!l.IS[q]?.noAuth,bn=(0,m.KC)(q),bo=("cursor"===q||"zed"===q)&&aN.length>0?aN:bn,bp=(0,l.wG)(q),bq=(0,l.mq)(q),br=(0,l.gb)(q),bs=bq||br,bt=!bs&&bk&&bl,bu="xai"===q?"Grok Build OAuth":"grok-cli"===q?"Grok CLI Device Login":"kimi"===q?"Kimi Coding OAuth":"OAuth",bv="xai"===q?"xAI API Key":"kimi"===q?"Kimi API Key":"qoder"===q||"qoder-cn"===q?"PAT":"API Key",bw=a=>{if(!aH||"auto"===aH)return null;let b=v(q,a);return b&&b.includes(aH)?aH:null},bx=bs?q:bp,by=(()=>{let a=new Set,b=new Set,c=c=>{if(!c||b.has(c))return;b.add(c);let d=v(q,c);d&&d.forEach(b=>{"none"!==b&&a.add(b)})};for(let a of bo)c(a.id);for(let a of aR)c(a.id);for(let a of al)a.providerAlias===bx&&"llm"===(a.kind||a.type||"llm")&&c(a.id);return a.size?["auto",...a]:null})(),bz=bs?B?.prefix||q:bp,bA=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bx)}`,{cache:"no-store"}),b=await a.json();a.ok&&aU(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[bx]),bB=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bx,ids:[a]})})).ok&&await bA()}catch(a){console.log("Error disabling model:",a)}},bC=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bx)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bA()}catch(a){console.log("Error enabling model:",a)}},bD=async a=>{a.length&&aW({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{aW(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bx,ids:a})})).ok&&await bA()}catch(a){console.log("Error disabling all models:",a)}}})},bE=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bx)}`,{method:"DELETE"})).ok&&await bA()}catch(a){console.log("Error enabling all models:",a)}},bF=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&ak(b.aliases||{})}catch(a){console.log("Error fetching aliases:",a)}},[]),bG=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&am(b.models||[])}catch(a){console.log("Error fetching custom models:",a)}},[]),bH=(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(),g=await c.json(),h=d.ok?await d.json():{};if(a.ok){let a=(e.connections||[]).filter(a=>a.provider===q);t(a)}c.ok&&G(g.proxyPools||[]);let i=(h.providerStrategies||{})[q]||{};aE(i.fallbackStrategy||null),aG(null!=i.stickyRoundRobinLimit?String(i.stickyRoundRobinLimit):"1");let j=(h.providerThinking||{})[q]||{};aI(j.mode||"auto");let k=S[q],l=k&&h[k]||{};if(aK({enabled:!0===l.enabled,connections:l.connections||{}}),b.ok){let a=(f.nodes||[]).find(a=>a.id===q)||null;if(!a&&bs)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===q)||null))break}D(a)}}catch(a){console.log("Error fetching connections:",a)}finally{A(!1)}},[q,bs]),bI=async a=>{try{let b=await fetch(`/api/provider-nodes/${q}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok&&(D(c.node),await bH(),ae(!1))}catch(a){console.log("Error updating provider node:",a)}},bJ=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[q]:f[q]=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)}},bK=async a=>{try{let b=await fetch("/api/settings",{cache:"no-store"}),c={...(b.ok?await b.json():{}).providerThinking||{}};a&&"auto"!==a?c[q]={mode:a}:delete c[q],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)}},bL=async a=>{let b=S[q];if(b){aK(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)}}},bM=async(a,b,c=bp)=>{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 bF();else{let b=await a.json();alert(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},bN=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bF()}catch(a){console.log("Error deleting alias:",a)}},bO=async(a,b="llm",c=bx,d)=>{try{let e=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:c,id:a,type:b,...d?{caps:d}:{}})});if(e.ok)await bG();else{let a=await e.json();alert(a.error||"Failed to add custom model")}}catch(a){console.log("Error adding custom model:",a)}},bP=async(a,b="llm",c=bx)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});(await fetch(`/api/models/custom?${d}`,{method:"DELETE"})).ok&&await bG()}catch(a){console.log("Error deleting custom model:",a)}},bQ=async()=>{if(a8)return;let a=s.find(a=>!1!==a.isActive);if(!a)return void alert((0,y.Tl)("Please add an active connection first"));a9(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,y.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,y.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;if(!b)continue;let c=`${q}/`,d=b.startsWith(c)?b.slice(c.length):b;al.some(a=>a.providerAlias===bx&&a.id===d&&"llm"===(a.kind||a.type||"llm"))||Object.values(aj).includes(`${bx}/${d}`)||(await bO(d,"llm",bx),e+=1)}0===e?alert((0,y.Tl)("All models already exist, no new models added")):alert((0,y.Tl)("Successfully added")+` ${e} `+(0,y.Tl)("models"))}catch(a){console.log("Error importing live models:",a),alert((0,y.Tl)("Error fetching models")+": "+a.message)}finally{a9(!1)}},bR=async()=>{if(ba)return;let a=s.find(a=>!1!==a.isActive);if(!a)return void alert((0,y.Tl)("Please add an active Cline connection first"));bb(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,y.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,y.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;b&&(al.some(a=>a.providerAlias===bx&&a.id===b&&"llm"===(a.kind||a.type||"llm"))||Object.values(aj).includes(`${bx}/${b}`)||(await bO(b,"llm",bx),e+=1))}0===e?alert((0,y.Tl)("All models already exist, no new models added")):alert((0,y.Tl)("Successfully added")+` ${e} `+(0,y.Tl)("models"))}catch(a){console.log("Error importing Cline models:",a),alert((0,y.Tl)("Error fetching models")+": "+a.message)}finally{bb(!1)}},bS=async()=>{if(aZ||0===s.length)return;let a=Object.fromEntries(s.map(a=>[a.id,{state:"queued",error:null}]));a7.current=!1,a$(!0),a0(!1),a2(null),a4(a),a6({total:s.length,completed:0,passed:0,failed:0,stopped:!1});let b=0,c=0;try{for(let a=0;a<s.length;a+=1){if(a7.current){a6({total:s.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=s[a];a2(d.id),a4(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,a4(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,a4(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}a6({total:s.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<s.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{a2(null),a$(!1),a0(!1),a7.current=!1}},bT=async a=>{aW({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{aW(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&t(b=>b.filter(b=>b.id!==a))}catch(a){console.log("Error deleting connection:",a)}}})},bU=()=>{bH(),L(!1)},bV=async a=>{Y("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:q,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await bH(),W(!1);return}Y(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),Y("Failed to save connection")}},bW=async a=>{try{(await fetch(`/api/providers/${ah.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await bH(),ac(!1))}catch(a){console.log("Error updating connection:",a)}},bX=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&t(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error updating connection status:",a)}},bY=async(a,b)=>{let c=[...s];[c[a],c[b]]=[c[b],c[a]],t(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 bH()}},bZ=s.filter(a=>ax.includes(a.id)),b$=s.length>0&&ax.length===s.length;(()=>{if(0===bZ.length)return;let a=new Set(bZ.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return;let c=F.find(a=>a.id===b);return c?.name}})();let b_=()=>{aB||ag(!1)},b0=async a=>{aC(!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 bH(),ag(!1)}finally{aC(!1)}},b1=a=>b0(s.map(b=>({connectionId:b.id,proxyPoolId:a}))),b2=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03] max-h-[500px] overflow-y-auto pr-1",children:s.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,ax.includes(c)),onChange:()=>{var b;return b=a.id,void ay(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)(H,{connection:a,proxyPools:F,isOAuth:bk,isFirst:0===b,isLast:b===s.length-1,onMoveUp:()=>bY(b,b-1),onMoveDown:()=>bY(b,b+1),onToggleActive:b=>bX(a.id,b),autoPing:S[q]&&"oauth"===a.authType?{on:!0===aJ.connections[a.id],onToggle:b=>{var c;return c=a.id,void bL({...aJ,connections:{...aJ.connections,[c]:b}})},provider:q}: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&&t(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:()=>{ai(a),ac(!0)},onDelete:()=>bT(a.id),oneByOneStatus:a3[a.id]||null})})]},a.id)})}),b3=F.filter(a=>!0===a.isActive),b4=(0,d.jsx)(k.aF,{isOpen:af,onClose:b_,title:`Apply Proxy (${s.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=F.filter(a=>!0===a.isActive);return 0===a.length?void alert("No active proxy pools available."):b0(s.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:aB||0===b3.length,className:"flex items-center gap-2 rounded-lg 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:()=>b1(null),disabled:aB,className:"flex items-center gap-2 rounded-lg 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)"})]}),F.map(a=>(0,d.jsxs)("button",{onClick:()=>b1(a.id),disabled:aB||!0!==a.isActive,className:"flex items-center gap-2 rounded-lg 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))]}),aB&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(k.$n,{onClick:b_,variant:"ghost",fullWidth:!0,disabled:aB,children:"Cancel"})]})}),b5=async a=>{if(!at.has(a)){au(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:`${bx}/${a}`})}),c=await b.json();aq(b=>({...b,[a]:c.ok?"ok":"error"})),as(c.ok?"":c.error||"Model not reachable")}catch{aq(b=>({...b,[a]:"error"})),as("Network error")}finally{au(b=>{let c=new Set(b);return c.delete(a),c})}}};if(u)return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(k.Qv,{}),(0,d.jsx)(k.Qv,{})]});if(!bi)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 b6=()=>bq&&bi.apiType?"responses"===bi.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":br?"/providers/anthropic-m.png":(0,j.HY)(bi.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 rounded-lg",style:{backgroundColor:`${bi.color}15`},children:an||!b6()?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:bi.color},children:bi.textIcon||bi.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:b6(),alt:bi.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>{(0,j.Kw)(bi.id),ao(!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:bi.name}),(bi.notice?.apiKeyUrl||bi.notice?.signupUrl||bi.website)&&(0,d.jsxs)("a",{href:bi.notice?.apiKeyUrl||bi.notice?.signupUrl||bi.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"}),bi.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:[s.length," connection",1===s.length?"":"s"]})]})]})]}),bi.deprecated&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,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:bi.deprecationNotice})]}),bi.notice?.text&&!bi.deprecated&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,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:bi.notice.text}),bi.notice.apiKeyUrl&&(0,d.jsx)("a",{href:bi.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:"Get API Key →"})]}),bs&&B&&(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:br?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[br?"Messages API":"responses"===B.apiType?"Responses API":"Chat Completions"," \xb7 ",(B.baseUrl||"").replace(/\/$/,""),"/",br?"messages":"responses"===B.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:()=>{Y(""),W(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ae(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{aW({title:"Delete Compatible Node",message:`Delete this ${br?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{aW(null);try{(await fetch(`/api/provider-nodes/${q}`,{method:"DELETE"})).ok&&p.push("/dashboard/providers")}catch(a){console.log("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),bm?(0,d.jsx)(k.gw,{providerId:q}):(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:[s.length>0&&F.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>ag(!0),children:"Apply Proxy"}),s.length>0&&(0,d.jsxs)(d.Fragment,{children:[ax.length>0&&(0,d.jsxs)(k.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=ax.length;0!==a&&aW({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{aW(null);let a=0,b=[...ax];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}t(a=>a.filter(a=>!b.includes(a.id))),ay([]),a>0&&alert(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",ax.length,")"]}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:bS,disabled:aZ,children:aZ?"Testing Connection One-by-One...":"Test Connection One-by-One"}),aZ&&(0,d.jsx)(k.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{aZ&&(a7.current=!0,a0(!0))},disabled:a_,children:a_?"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"===aD,onChange:a=>{let b=a?"round-robin":null,c=a?aF||"1":aF;a&&!aF&&aG("1"),aE(b),bJ(b,c)}}),"round-robin"===aD&&(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:aF,onChange:a=>{var b;aG(b=a.target.value),bJ("round-robin",b)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===s.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:bk?"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"}),bt&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bu," or ",bv,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bt?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bf,children:bu}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bg,children:bv})]}):(0,d.jsxs)(d.Fragment,{children:[!bs&&"iflow"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>U(!0),children:"Cookie"}),"codex"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>$(!0),children:(0,y.Tl)("Bulk Add")}),"grok-cli"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>aa(!0),children:(0,y.Tl)("Bulk Add")}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:bh,children:bs?"Add API Key":"iflow"===q?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[a5&&(0,d.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,d.jsxs)("span",{children:["Total: ",a5.total]}),(0,d.jsxs)("span",{children:["Completed: ",a5.completed]}),(0,d.jsxs)("span",{children:["Passed: ",a5.passed]}),(0,d.jsxs)("span",{children:["Failed: ",a5.failed]}),a5.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),aZ&&a1&&(0,d.jsxs)("span",{children:["Running: ",s.find(a=>a.id===a1)?.name||a1]})]})}),s.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:b$,onChange:()=>{b$?ay([]):ay(s.map(a=>a.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),b2,!bs&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>U(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>$(!0),title:(0,y.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,y.Tl)("Bulk Add")}),"grok-cli"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>aa(!0),title:(0,y.Tl)("Bulk import Grok CLI accounts from JSON"),className:"w-full sm:w-auto",children:(0,y.Tl)("Bulk Add")}),bt?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bf,className:"w-full sm:w-auto",children:bu}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bg,className:"w-full sm:w-auto",children:bv})]}):(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:bh,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"}),by&&(0,d.jsx)("select",{value:aH,onChange:a=>{var b;aI(b=a.target.value),bK(b)},title:"Appends (level) suffix to copied model names",className:"rounded-md border border-border bg-background px-2 py-1 text-xs focus:border-primary focus:outline-none",children:by.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),!bs&&(a=[...bo,...aR.filter(a=>!bo.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}).map(a=>a.id).filter(a=>!aT.includes(a)),(0,d.jsxs)("div",{className:"flex gap-2",children:[aT.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bE,children:"Active All"}),a.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bD(a),children:"Disable All"})]}))]}),!!ar&&(0,d.jsxs)("div",{className:"mb-3",children:[(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:ar}),/RegionError|hosted in China|regionNotAllowed/i.test(ar)&&(c=(b="string"==typeof ar?ar:JSON.stringify(ar)).match(/https:\/\/opencode\.ai\/workspace\/[^\s"')]+/),g=b.match(/wrk_[0-9A-Za-z]+/),n=c?c[0].endsWith("/go")?c[0]:`${c[0]}/go`:g?`https://opencode.ai/workspace/${g[0]}/go`:"https://opencode.ai",(0,d.jsx)("div",{className:"mt-1.5",children:(0,d.jsxs)("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 rounded-md bg-amber-500/10 px-2 py-0.5 text-xs font-medium text-amber-600 hover:bg-amber-500/20 dark:text-amber-400 transition-colors",children:[(0,d.jsx)("span",{children:"Allow China-hosted models"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"open_in_new"})]})}))]}),"zed"===q&&!!aP&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:aP}),(()=>{let a,b,c;if(bs)return(0,d.jsx)(E,{providerStorageAlias:bx,providerDisplayAlias:bz,modelAliases:aj,customModels:al,copied:bc,onCopy:bd,onSetAlias:bM,onDeleteAlias:bN,onAddCustomModel:a=>bO(a,"llm",bx),onDeleteCustomModel:a=>bP(a,"llm",bx),connections:s,isAnthropic:br});let e=[...bo,...aR.filter(a=>!bo.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}),f=new Set(aT),g=e.filter(a=>!f.has(a.id)),h=e.filter(a=>f.has(a.id)),i=z({customModels:al,modelAliases:aj,providerAlias:bx,builtInModels:bo,type:"llm"});return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[i.map(a=>(0,d.jsx)(C,{model:{id:a.id,name:a.name},fullModel:`${bz}/${a.id}`,alias:a.alias,copied:bc,onCopy:bd,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?bP(a.id,"llm",bx):bN(a.alias)},testStatus:ap[a.id],onTest:s.length>0||bm?()=>b5(a.id):void 0,isTesting:at.has(a.id),isCustom:!0,isFree:!1,caps:r(`${q}/${a.id}`),thinkingSuffix:bw(a.id)},`${a.source}-${a.fullModel}`)),g.map(a=>{let b=`${bx}/${a.id}`,c=`${q}/${a.id}`,e=Object.entries(aj).find(([,a])=>a===b||a===c)?.[0];return(0,d.jsx)(C,{model:a,fullModel:`${bz}/${a.id}`,alias:e,copied:bc,onCopy:bd,onSetAlias:b=>bM(a.id,b,bx),onDeleteAlias:()=>bN(e),testStatus:ap[a.id],onTest:s.length>0||bm?()=>b5(a.id):void 0,isTesting:at.has(a.id),isFree:a.isFree,onDisable:()=>bB(a.id),caps:r(`${q}/${a.id}`),thinkingSuffix:bw(a.id)},a.id)}),(0,d.jsxs)("button",{onClick:()=>aw(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),T[q]&&s.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bQ,disabled:a8,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:a8?{animation:"spin 1s linear infinite"}:void 0,children:a8?"progress_activity":"download"}),a8?(0,y.Tl)("Fetching..."):(0,y.Tl)(T[q])]}),("cline"===q||"clinepass"===q)&&s.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bR,disabled:ba,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:ba?{animation:"spin 1s linear infinite"}:void 0,children:ba?"progress_activity":"download"}),ba?(0,y.Tl)("Fetching..."):(0,y.Tl)("Import from /models")]}),aL.length>0&&(a=new Set([...Object.values(aj),...i.map(a=>a.fullModel)]),b=new Set(bo.map(a=>a.id)),0===(c=aL.filter(c=>!a.has(`${bx}/${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 bO(a.id,"llm",bx)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${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))})]})),h.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 (",h.length,"):"]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:h.map(a=>(0,d.jsxs)("button",{onClick:()=>bC(a.id),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id]},a.id))})]})]})})()]}),b4,"kiro"===q?(0,d.jsx)(k.Mh,{isOpen:I,providerInfo:bi,onSuccess:bU,onClose:()=>L(!1)}):"cursor"===q?(0,d.jsx)(k.G9,{isOpen:I,onSuccess:bU,onClose:()=>L(!1)}):"gitlab"===q?(0,d.jsx)(k.vj,{isOpen:I,providerInfo:bi,onSuccess:bU,onClose:()=>L(!1)}):(0,d.jsx)(k.LF,{isOpen:I,provider:q,providerInfo:bi,onSuccess:bU,onClose:()=>L(!1)}),(0,d.jsx)(k.LH,{isOpen:N,onSuccess:bU,onClose:()=>P(!1)}),"iflow"===q&&(0,d.jsx)(k.vE,{isOpen:Q,onSuccess:()=>{bH(),U(!1)},onClose:()=>U(!1)}),(0,d.jsx)(J,{isOpen:V,provider:q,providerName:bi.name,isCompatible:bs,isAnthropic:br,authType:bi?.authType,authHint:bi?.authHint,website:bi?.website,proxyPools:F,error:X,existingNames:s.map(a=>a.name).filter(Boolean),onSave:bV,onBulkDone:bH,onClose:()=>{Y(""),W(!1)}}),(0,d.jsx)(k.wI,{isOpen:ab,connection:ah,proxyPools:F,onSave:bW,onClose:()=>ac(!1)}),bs&&(0,d.jsx)(K,{isOpen:ad,node:B,onSave:bI,onClose:()=>ae(!1),isAnthropic:br}),!bs&&(0,d.jsx)(M,{isOpen:av,providerAlias:bx,providerDisplayAlias:bz,onSave:async(a,b)=>{await bO(a,"llm",bx,b),aw(!1)},onClose:()=>aw(!1)}),"codex"===q&&(0,d.jsx)(O,{isOpen:Z,onClose:()=>$(!1),onSuccess:bH}),"grok-cli"===q&&(0,d.jsx)(R,{isOpen:_,onClose:()=>aa(!1),onSuccess:bH}),(0,d.jsx)(k.uo,{isOpen:aX,onClose:()=>aY(!1),onConfirm:()=>{(aY(!1),bk)?be():bg()},title:"Risk Notice",message:bi?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(k.uo,{isOpen:!!aV,onClose:()=>aW(null),onConfirm:aV?.onConfirm,title:aV?.title||"Confirm",message:aV?.message,variant:"danger"})]})}},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 \"/Users/xuliang/Documents/project/9router/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.")},"/Users/xuliang/Documents/project/9router/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,3459,4665,1220,4884,8843,6070,869,915,6457,4123,9667,6777,412,3332],()=>b(b.s=84610));module.exports=c})();
27
+ ]`;function Q(a){let b,c=a.trim();if(!c)return[];try{b=JSON.parse(c)}catch(a){try{let a=c;a.startsWith("[")||((a=a.replace(/\}\s*,\s*\{/g,"},{").replace(/\}\s*\{/g,"},{")).endsWith(",")&&(a=a.slice(0,-1)),a=`[${a}]`),b=JSON.parse(a)}catch{throw a}}if(Array.isArray(b))return b;if(b&&"object"==typeof b)return Array.isArray(b.accounts)?b.accounts:[b];throw Error("Input must be a JSON object or array of objects")}function R({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,p]=(0,e.useState)(!1),[q,r]=(0,e.useState)(null),s=(0,e.useRef)(null),t=()=>{h||(g(""),l(""),n(null),r(null),p(!1),b())},u=async a=>{if(!a||0===a.length)return;l("");let b=Array.from(a).filter(a=>a.name.endsWith(".json")||"application/json"===a.type||""===a.type);if(0===b.length)return void l((0,y.Tl)("Please select valid .json files"));try{let a=[];for(let c of b){let b=await c.text(),d=Q(b);Array.isArray(d)?a.push(...d):d&&a.push(d)}if(0===a.length)return void l((0,y.Tl)("No accounts found in selected files"));g(JSON.stringify(a,null,2)),r({filesCount:b.length,accountsCount:a.length})}catch(a){l(`${(0,y.Tl)("Error reading files")}: ${a.message}`)}},v=async()=>{let a;l(""),n(null);try{a=Q(f)}catch(a){l(`${(0,y.Tl)("Invalid JSON")}: ${a.message}`);return}if(!a||0===a.length)return void l((0,y.Tl)("No accounts found in input"));i(!0);try{let b=await fetch("/api/oauth/grok-cli/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:a})}),d=await b.json();if(!b.ok)return void l(d?.error||`Request failed: ${b.status}`);n(d),d.success>0&&"function"==typeof c&&c()}catch(a){l(a.message||(0,y.Tl)("Request failed"))}finally{i(!1)}},w=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(k.aF,{isOpen:a,title:(0,y.Tl)("Bulk Add Grok CLI Accounts"),onClose:t,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:(0,y.Tl)("Upload multiple .json files or paste JSON array / object.")}),(0,d.jsx)("input",{ref:s,type:"file",accept:".json,application/json",multiple:!0,className:"hidden",onChange:a=>{u(a.target.files),a.target&&(a.target.value="")}}),(0,d.jsx)(k.$n,{type:"button",size:"sm",variant:"secondary",icon:"upload_file",onClick:()=>s.current?.click(),disabled:h,children:(0,y.Tl)("Upload JSON Files")})]}),(0,d.jsxs)("div",{onDragOver:a=>{a.preventDefault(),p(!0)},onDragLeave:a=>{a.preventDefault(),p(!1)},onDrop:a=>{a.preventDefault(),p(!1),a.dataTransfer?.files?.length>0&&u(a.dataTransfer.files)},className:`relative rounded border transition-colors ${o?"border-primary bg-primary/10 ring-2 ring-primary/30":"border-accent/30 bg-sidebar"}`,children:[(0,d.jsx)("textarea",{className:"w-full rounded bg-transparent p-2.5 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:P,value:f,onChange:a=>{g(a.target.value),r(null)},disabled:h}),o&&(0,d.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-sidebar/90 rounded pointer-events-none backdrop-blur-xs",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary mb-1",children:"upload_file"}),(0,d.jsx)("span",{className:"text-sm font-medium text-primary",children:(0,y.Tl)("Drop .json files here")})]})]}),q&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-green-400 font-medium bg-green-500/10 border border-green-500/20 px-2.5 py-1.5 rounded",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"check_circle"}),(0,d.jsxs)("span",{children:[(0,y.Tl)("Loaded")," ",q.accountsCount," ",(0,y.Tl)("account(s) from")," ",q.filesCount," ",(0,y.Tl)("file(s)")]})]}),j&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:j}),m&&m.failed>0&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"text-sm font-medium text-yellow-400",children:["✗ ",m.failed," ",(0,y.Tl)("failed")]}),w.length>0&&(0,d.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:w.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:v,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,y.Tl)("Importing..."):(0,y.Tl)("Import All")}),(0,d.jsx)(k.$n,{onClick:t,variant:"ghost",fullWidth:!0,disabled:h,children:(0,y.Tl)("Close")})]})]})})}let S={claude:"claudeAutoPing",codex:"codexAutoPing"},T={qoder:"Fetch Qoder Models","qoder-cn":"Fetch Qoder Models","trae-enterprise":"Fetch Trae Enterprise Models",codearts:"Fetch CodeArts Models"};function U(){let a,b,c,g,n,o=(0,f.useParams)(),p=(0,f.useRouter)(),q=o.id,{getCaps:r}=(0,x.y)(),[s,t]=(0,e.useState)([]),[u,A]=(0,e.useState)(!0),[B,D]=(0,e.useState)(null),[F,G]=(0,e.useState)([]),[I,L]=(0,e.useState)(!1),[N,P]=(0,e.useState)(!1),[Q,U]=(0,e.useState)(!1),[V,W]=(0,e.useState)(!1),[X,Y]=(0,e.useState)(""),[Z,$]=(0,e.useState)(!1),[_,aa]=(0,e.useState)(!1),[ab,ac]=(0,e.useState)(!1),[ad,ae]=(0,e.useState)(!1),[af,ag]=(0,e.useState)(!1),[ah,ai]=(0,e.useState)(null),[aj,ak]=(0,e.useState)({}),[al,am]=(0,e.useState)([]),[an,ao]=(0,e.useState)(!1),[ap,aq]=(0,e.useState)({}),[ar,as]=(0,e.useState)(""),[at,au]=(0,e.useState)(()=>new Set),[av,aw]=(0,e.useState)(!1),[ax,ay]=(0,e.useState)([]),[az,aA]=(0,e.useState)("__none__"),[aB,aC]=(0,e.useState)(!1),[aD,aE]=(0,e.useState)(null),[aF,aG]=(0,e.useState)(""),[aH,aI]=(0,e.useState)("auto"),[aJ,aK]=(0,e.useState)({enabled:!1,connections:{}}),[aL,aM]=(0,e.useState)([]),[aN,aO]=(0,e.useState)([]),[aP,aQ]=(0,e.useState)(null),[aR,aS]=(0,e.useState)([]),[aT,aU]=(0,e.useState)([]),[aV,aW]=(0,e.useState)(null),[aX,aY]=(0,e.useState)(!1),[aZ,a$]=(0,e.useState)(!1),[a_,a0]=(0,e.useState)(!1),[a1,a2]=(0,e.useState)(null),[a3,a4]=(0,e.useState)({}),[a5,a6]=(0,e.useState)(null),a7=(0,e.useRef)(!1),[a8,a9]=(0,e.useState)(!1),[ba,bb]=(0,e.useState)(!1),{copied:bc,copy:bd}=(0,w.C)(),be=()=>{L(!0)},bf=()=>{"xiaomi-mimo"===q?P(!0):bk?be():(Y(""),W(!0))},bg=()=>{Y(""),W(!0)},bh=()=>{bk?bf():bg()},bi=B?{id:B.id,name:B.name||("anthropic-compatible"===B.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===B.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===B.type?"AC":"OC",apiType:B.apiType,baseUrl:B.baseUrl,type:B.type}:l.zN[q]||l.fg[q]||l.IS[q]||l.nJ[q]||l.br[q],bj=bi?.authModes||[],bk=!!l.zN[q]||!!l.IS[q]||bj.includes("oauth"),bl=!!l.fg[q]||bj.includes("apikey"),bm=!!l.IS[q]?.noAuth,bn=(0,m.KC)(q),bo=("cursor"===q||"zed"===q)&&aN.length>0?aN:bn,bp=(0,l.wG)(q),bq=(0,l.mq)(q),br=(0,l.gb)(q),bs=bq||br,bt=!bs&&bk&&bl,bu="xai"===q?"Grok Build OAuth":"grok-cli"===q?"Grok CLI Device Login":"kimi"===q?"Kimi Coding OAuth":"OAuth",bv="xai"===q?"xAI API Key":"kimi"===q?"Kimi API Key":"qoder"===q||"qoder-cn"===q?"PAT":"API Key",bw=a=>{if(!aH||"auto"===aH)return null;let b=v(q,a);return b&&b.includes(aH)?aH:null},bx=bs?q:bp,by=(()=>{let a=new Set,b=new Set,c=c=>{if(!c||b.has(c))return;b.add(c);let d=v(q,c);d&&d.forEach(b=>{"none"!==b&&a.add(b)})};for(let a of bo)c(a.id);for(let a of aR)c(a.id);for(let a of al)a.providerAlias===bx&&"llm"===(a.kind||a.type||"llm")&&c(a.id);return a.size?["auto",...a]:null})(),bz=bs?B?.prefix||q:bp,bA=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bx)}`,{cache:"no-store"}),b=await a.json();a.ok&&aU(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[bx]),bB=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bx,ids:[a]})})).ok&&await bA()}catch(a){console.log("Error disabling model:",a)}},bC=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bx)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bA()}catch(a){console.log("Error enabling model:",a)}},bD=async a=>{a.length&&aW({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{aW(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bx,ids:a})})).ok&&await bA()}catch(a){console.log("Error disabling all models:",a)}}})},bE=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bx)}`,{method:"DELETE"})).ok&&await bA()}catch(a){console.log("Error enabling all models:",a)}},bF=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&ak(b.aliases||{})}catch(a){console.log("Error fetching aliases:",a)}},[]),bG=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&am(b.models||[])}catch(a){console.log("Error fetching custom models:",a)}},[]),bH=(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(),g=await c.json(),h=d.ok?await d.json():{};if(a.ok){let a=(e.connections||[]).filter(a=>a.provider===q);t(a)}c.ok&&G(g.proxyPools||[]);let i=(h.providerStrategies||{})[q]||{};aE(i.fallbackStrategy||null),aG(null!=i.stickyRoundRobinLimit?String(i.stickyRoundRobinLimit):"1");let j=(h.providerThinking||{})[q]||{};aI(j.mode||"auto");let k=S[q],l=k&&h[k]||{};if(aK({enabled:!0===l.enabled,connections:l.connections||{}}),b.ok){let a=(f.nodes||[]).find(a=>a.id===q)||null;if(!a&&bs)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===q)||null))break}D(a)}}catch(a){console.log("Error fetching connections:",a)}finally{A(!1)}},[q,bs]),bI=async a=>{try{let b=await fetch(`/api/provider-nodes/${q}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok&&(D(c.node),await bH(),ae(!1))}catch(a){console.log("Error updating provider node:",a)}},bJ=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[q]:f[q]=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)}},bK=async a=>{try{let b=await fetch("/api/settings",{cache:"no-store"}),c={...(b.ok?await b.json():{}).providerThinking||{}};a&&"auto"!==a?c[q]={mode:a}:delete c[q],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)}},bL=async a=>{let b=S[q];if(b){aK(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)}}},bM=async(a,b,c=bp)=>{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 bF();else{let b=await a.json();alert(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},bN=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bF()}catch(a){console.log("Error deleting alias:",a)}},bO=async(a,b="llm",c=bx,d)=>{try{let e=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:c,id:a,type:b,...d?{caps:d}:{}})});if(e.ok)await bG();else{let a=await e.json();alert(a.error||"Failed to add custom model")}}catch(a){console.log("Error adding custom model:",a)}},bP=async(a,b="llm",c=bx)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});(await fetch(`/api/models/custom?${d}`,{method:"DELETE"})).ok&&await bG()}catch(a){console.log("Error deleting custom model:",a)}},bQ=async()=>{if(a8)return;let a=s.find(a=>!1!==a.isActive);if(!a)return void alert((0,y.Tl)("Please add an active connection first"));a9(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,y.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,y.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;if(!b)continue;let c=`${q}/`,d=b.startsWith(c)?b.slice(c.length):b;al.some(a=>a.providerAlias===bx&&a.id===d&&"llm"===(a.kind||a.type||"llm"))||Object.values(aj).includes(`${bx}/${d}`)||(await bO(d,"llm",bx),e+=1)}0===e?alert((0,y.Tl)("All models already exist, no new models added")):alert((0,y.Tl)("Successfully added")+` ${e} `+(0,y.Tl)("models"))}catch(a){console.log("Error importing live models:",a),alert((0,y.Tl)("Error fetching models")+": "+a.message)}finally{a9(!1)}},bR=async()=>{if(ba)return;let a=s.find(a=>!1!==a.isActive);if(!a)return void alert((0,y.Tl)("Please add an active Cline connection first"));bb(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,y.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,y.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;b&&(al.some(a=>a.providerAlias===bx&&a.id===b&&"llm"===(a.kind||a.type||"llm"))||Object.values(aj).includes(`${bx}/${b}`)||(await bO(b,"llm",bx),e+=1))}0===e?alert((0,y.Tl)("All models already exist, no new models added")):alert((0,y.Tl)("Successfully added")+` ${e} `+(0,y.Tl)("models"))}catch(a){console.log("Error importing Cline models:",a),alert((0,y.Tl)("Error fetching models")+": "+a.message)}finally{bb(!1)}},bS=async()=>{if(aZ||0===s.length)return;let a=Object.fromEntries(s.map(a=>[a.id,{state:"queued",error:null}]));a7.current=!1,a$(!0),a0(!1),a2(null),a4(a),a6({total:s.length,completed:0,passed:0,failed:0,stopped:!1});let b=0,c=0;try{for(let a=0;a<s.length;a+=1){if(a7.current){a6({total:s.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=s[a];a2(d.id),a4(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,a4(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,a4(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}a6({total:s.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<s.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{a2(null),a$(!1),a0(!1),a7.current=!1}},bT=async a=>{aW({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{aW(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&t(b=>b.filter(b=>b.id!==a))}catch(a){console.log("Error deleting connection:",a)}}})},bU=()=>{bH(),L(!1)},bV=async a=>{Y("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:q,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await bH(),W(!1);return}Y(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),Y("Failed to save connection")}},bW=async a=>{try{(await fetch(`/api/providers/${ah.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await bH(),ac(!1))}catch(a){console.log("Error updating connection:",a)}},bX=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&t(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error updating connection status:",a)}},bY=async(a,b)=>{let c=[...s];[c[a],c[b]]=[c[b],c[a]],t(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 bH()}},bZ=s.filter(a=>ax.includes(a.id)),b$=s.length>0&&ax.length===s.length;(()=>{if(0===bZ.length)return;let a=new Set(bZ.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return;let c=F.find(a=>a.id===b);return c?.name}})();let b_=()=>{aB||ag(!1)},b0=async a=>{aC(!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 bH(),ag(!1)}finally{aC(!1)}},b1=a=>b0(s.map(b=>({connectionId:b.id,proxyPoolId:a}))),b2=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03] max-h-[500px] overflow-y-auto pr-1",children:s.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,ax.includes(c)),onChange:()=>{var b;return b=a.id,void ay(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)(H,{connection:a,proxyPools:F,isOAuth:bk,isFirst:0===b,isLast:b===s.length-1,onMoveUp:()=>bY(b,b-1),onMoveDown:()=>bY(b,b+1),onToggleActive:b=>bX(a.id,b),autoPing:S[q]&&"oauth"===a.authType?{on:!0===aJ.connections[a.id],onToggle:b=>{var c;return c=a.id,void bL({...aJ,connections:{...aJ.connections,[c]:b}})},provider:q}: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&&t(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:()=>{ai(a),ac(!0)},onDelete:()=>bT(a.id),oneByOneStatus:a3[a.id]||null})})]},a.id)})}),b3=F.filter(a=>!0===a.isActive),b4=(0,d.jsx)(k.aF,{isOpen:af,onClose:b_,title:`Apply Proxy (${s.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=F.filter(a=>!0===a.isActive);return 0===a.length?void alert("No active proxy pools available."):b0(s.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:aB||0===b3.length,className:"flex items-center gap-2 rounded-lg 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:()=>b1(null),disabled:aB,className:"flex items-center gap-2 rounded-lg 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)"})]}),F.map(a=>(0,d.jsxs)("button",{onClick:()=>b1(a.id),disabled:aB||!0!==a.isActive,className:"flex items-center gap-2 rounded-lg 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))]}),aB&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(k.$n,{onClick:b_,variant:"ghost",fullWidth:!0,disabled:aB,children:"Cancel"})]})}),b5=async a=>{if(!at.has(a)){au(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:`${bx}/${a}`})}),c=await b.json();aq(b=>({...b,[a]:c.ok?"ok":"error"})),as(c.ok?"":c.error||"Model not reachable")}catch{aq(b=>({...b,[a]:"error"})),as("Network error")}finally{au(b=>{let c=new Set(b);return c.delete(a),c})}}};if(u)return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(k.Qv,{}),(0,d.jsx)(k.Qv,{})]});if(!bi)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 b6=()=>bq&&bi.apiType?"responses"===bi.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":br?"/providers/anthropic-m.png":(0,j.HY)(bi.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 rounded-lg",style:{backgroundColor:`${bi.color}15`},children:an||!b6()?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:bi.color},children:bi.textIcon||bi.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:b6(),alt:bi.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>{(0,j.Kw)(bi.id),ao(!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:bi.name}),(bi.notice?.apiKeyUrl||bi.notice?.signupUrl||bi.website)&&(0,d.jsxs)("a",{href:bi.notice?.apiKeyUrl||bi.notice?.signupUrl||bi.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"}),bi.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:[s.length," connection",1===s.length?"":"s"]})]})]})]}),bi.deprecated&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,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:bi.deprecationNotice})]}),bi.notice?.text&&!bi.deprecated&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,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:bi.notice.text}),bi.notice.apiKeyUrl&&(0,d.jsx)("a",{href:bi.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:"Get API Key →"})]}),bs&&B&&(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:br?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[br?"Messages API":"responses"===B.apiType?"Responses API":"Chat Completions"," \xb7 ",(B.baseUrl||"").replace(/\/$/,""),"/",br?"messages":"responses"===B.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:()=>{Y(""),W(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ae(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{aW({title:"Delete Compatible Node",message:`Delete this ${br?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{aW(null);try{(await fetch(`/api/provider-nodes/${q}`,{method:"DELETE"})).ok&&p.push("/dashboard/providers")}catch(a){console.log("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),bm?(0,d.jsx)(k.gw,{providerId:q}):(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:[s.length>0&&F.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>ag(!0),children:"Apply Proxy"}),s.length>0&&(0,d.jsxs)(d.Fragment,{children:[ax.length>0&&(0,d.jsxs)(k.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=ax.length;0!==a&&aW({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{aW(null);let a=0,b=[...ax];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}t(a=>a.filter(a=>!b.includes(a.id))),ay([]),a>0&&alert(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",ax.length,")"]}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:bS,disabled:aZ,children:aZ?"Testing Connection One-by-One...":"Test Connection One-by-One"}),aZ&&(0,d.jsx)(k.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{aZ&&(a7.current=!0,a0(!0))},disabled:a_,children:a_?"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"===aD,onChange:a=>{let b=a?"round-robin":null,c=a?aF||"1":aF;a&&!aF&&aG("1"),aE(b),bJ(b,c)}}),"round-robin"===aD&&(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:aF,onChange:a=>{var b;aG(b=a.target.value),bJ("round-robin",b)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===s.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:bk?"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"}),bt&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bu," or ",bv,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bt?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bf,children:bu}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bg,children:bv})]}):(0,d.jsxs)(d.Fragment,{children:[!bs&&"iflow"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>U(!0),children:"Cookie"}),"codex"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>$(!0),children:(0,y.Tl)("Bulk Add")}),"grok-cli"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>aa(!0),children:(0,y.Tl)("Bulk Add")}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:bh,children:bs?"Add API Key":"iflow"===q?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[a5&&(0,d.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,d.jsxs)("span",{children:["Total: ",a5.total]}),(0,d.jsxs)("span",{children:["Completed: ",a5.completed]}),(0,d.jsxs)("span",{children:["Passed: ",a5.passed]}),(0,d.jsxs)("span",{children:["Failed: ",a5.failed]}),a5.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),aZ&&a1&&(0,d.jsxs)("span",{children:["Running: ",s.find(a=>a.id===a1)?.name||a1]})]})}),s.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:b$,onChange:()=>{b$?ay([]):ay(s.map(a=>a.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),b2,!bs&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>U(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>$(!0),title:(0,y.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,y.Tl)("Bulk Add")}),"grok-cli"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>aa(!0),title:(0,y.Tl)("Bulk import Grok CLI accounts from JSON"),className:"w-full sm:w-auto",children:(0,y.Tl)("Bulk Add")}),bt?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bf,className:"w-full sm:w-auto",children:bu}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bg,className:"w-full sm:w-auto",children:bv})]}):(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:bh,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"}),by&&(0,d.jsx)("select",{value:aH,onChange:a=>{var b;aI(b=a.target.value),bK(b)},title:"Appends (level) suffix to copied model names",className:"rounded-md border border-border bg-background px-2 py-1 text-xs focus:border-primary focus:outline-none",children:by.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),!bs&&(a=[...bo,...aR.filter(a=>!bo.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}).map(a=>a.id).filter(a=>!aT.includes(a)),(0,d.jsxs)("div",{className:"flex gap-2",children:[aT.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bE,children:"Active All"}),a.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bD(a),children:"Disable All"})]}))]}),!!ar&&(0,d.jsxs)("div",{className:"mb-3",children:[(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:ar}),/RegionError|hosted in China|regionNotAllowed/i.test(ar)&&(c=(b="string"==typeof ar?ar:JSON.stringify(ar)).match(/https:\/\/opencode\.ai\/workspace\/[^\s"')]+/),g=b.match(/wrk_[0-9A-Za-z]+/),n=c?c[0].endsWith("/go")?c[0]:`${c[0]}/go`:g?`https://opencode.ai/workspace/${g[0]}/go`:"https://opencode.ai",(0,d.jsx)("div",{className:"mt-1.5",children:(0,d.jsxs)("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 rounded-md bg-amber-500/10 px-2 py-0.5 text-xs font-medium text-amber-600 hover:bg-amber-500/20 dark:text-amber-400 transition-colors",children:[(0,d.jsx)("span",{children:"Allow China-hosted models"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"open_in_new"})]})}))]}),"zed"===q&&!!aP&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:aP}),(()=>{let a,b,c;if(bs)return(0,d.jsx)(E,{providerStorageAlias:bx,providerDisplayAlias:bz,modelAliases:aj,customModels:al,copied:bc,onCopy:bd,onSetAlias:bM,onDeleteAlias:bN,onAddCustomModel:a=>bO(a,"llm",bx),onDeleteCustomModel:a=>bP(a,"llm",bx),connections:s,isAnthropic:br});let e=[...bo,...aR.filter(a=>!bo.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}),f=new Set(aT),g=e.filter(a=>!f.has(a.id)),h=e.filter(a=>f.has(a.id)),i=z({customModels:al,modelAliases:aj,providerAlias:bx,builtInModels:bo,type:"llm"});return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[i.map(a=>(0,d.jsx)(C,{model:{id:a.id,name:a.name},fullModel:`${bz}/${a.id}`,alias:a.alias,copied:bc,onCopy:bd,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?bP(a.id,"llm",bx):bN(a.alias)},testStatus:ap[a.id],onTest:s.length>0||bm?()=>b5(a.id):void 0,isTesting:at.has(a.id),isCustom:!0,isFree:!1,caps:r(`${q}/${a.id}`),thinkingSuffix:bw(a.id)},`${a.source}-${a.fullModel}`)),g.map(a=>{let b=`${bx}/${a.id}`,c=`${q}/${a.id}`,e=Object.entries(aj).find(([,a])=>a===b||a===c)?.[0];return(0,d.jsx)(C,{model:a,fullModel:`${bz}/${a.id}`,alias:e,copied:bc,onCopy:bd,onSetAlias:b=>bM(a.id,b,bx),onDeleteAlias:()=>bN(e),testStatus:ap[a.id],onTest:s.length>0||bm?()=>b5(a.id):void 0,isTesting:at.has(a.id),isFree:a.isFree,onDisable:()=>bB(a.id),caps:r(`${q}/${a.id}`),thinkingSuffix:bw(a.id)},a.id)}),(0,d.jsxs)("button",{onClick:()=>aw(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),T[q]&&s.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bQ,disabled:a8,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:a8?{animation:"spin 1s linear infinite"}:void 0,children:a8?"progress_activity":"download"}),a8?(0,y.Tl)("Fetching..."):(0,y.Tl)(T[q])]}),("cline"===q||"clinepass"===q)&&s.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bR,disabled:ba,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:ba?{animation:"spin 1s linear infinite"}:void 0,children:ba?"progress_activity":"download"}),ba?(0,y.Tl)("Fetching..."):(0,y.Tl)("Import from /models")]}),aL.length>0&&(a=new Set([...Object.values(aj),...i.map(a=>a.fullModel)]),b=new Set(bo.map(a=>a.id)),0===(c=aL.filter(c=>!a.has(`${bx}/${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 bO(a.id,"llm",bx)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${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))})]})),h.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 (",h.length,"):"]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:h.map(a=>(0,d.jsxs)("button",{onClick:()=>bC(a.id),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id]},a.id))})]})]})})()]}),b4,"kiro"===q?(0,d.jsx)(k.Mh,{isOpen:I,providerInfo:bi,onSuccess:bU,onClose:()=>L(!1)}):"cursor"===q?(0,d.jsx)(k.G9,{isOpen:I,onSuccess:bU,onClose:()=>L(!1)}):"gitlab"===q?(0,d.jsx)(k.vj,{isOpen:I,providerInfo:bi,onSuccess:bU,onClose:()=>L(!1)}):(0,d.jsx)(k.LF,{isOpen:I,provider:q,providerInfo:bi,onSuccess:bU,onClose:()=>L(!1)}),(0,d.jsx)(k.LH,{isOpen:N,onSuccess:bU,onClose:()=>P(!1)}),"iflow"===q&&(0,d.jsx)(k.vE,{isOpen:Q,onSuccess:()=>{bH(),U(!1)},onClose:()=>U(!1)}),(0,d.jsx)(J,{isOpen:V,provider:q,providerName:bi.name,isCompatible:bs,isAnthropic:br,authType:bi?.authType,authHint:bi?.authHint,website:bi?.website,proxyPools:F,error:X,existingNames:s.map(a=>a.name).filter(Boolean),onSave:bV,onBulkDone:bH,onClose:()=>{Y(""),W(!1)}}),(0,d.jsx)(k.wI,{isOpen:ab,connection:ah,proxyPools:F,onSave:bW,onClose:()=>ac(!1)}),bs&&(0,d.jsx)(K,{isOpen:ad,node:B,onSave:bI,onClose:()=>ae(!1),isAnthropic:br}),!bs&&(0,d.jsx)(M,{isOpen:av,providerAlias:bx,providerDisplayAlias:bz,onSave:async(a,b)=>{await bO(a,"llm",bx,b),aw(!1)},onClose:()=>aw(!1)}),"codex"===q&&(0,d.jsx)(O,{isOpen:Z,onClose:()=>$(!1),onSuccess:bH}),"grok-cli"===q&&(0,d.jsx)(R,{isOpen:_,onClose:()=>aa(!1),onSuccess:bH}),(0,d.jsx)(k.uo,{isOpen:aX,onClose:()=>aY(!1),onConfirm:()=>{(aY(!1),bk)?be():bg()},title:"Risk Notice",message:bi?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(k.uo,{isOpen:!!aV,onClose:()=>aW(null),onConfirm:aV?.onConfirm,title:aV?.title||"Confirm",message:aV?.message,variant:"danger"})]})}},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/9router/9router/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/9router/9router/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,3459,4665,1220,4884,8843,6070,869,915,6457,4123,2751,6777,412,2870],()=>b(b.s=84516));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/esm/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../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/bundle-name/index.js","../../../../../../../node_modules/bundle-name/package.json","../../../../../../../node_modules/default-browser-id/index.js","../../../../../../../node_modules/default-browser-id/package.json","../../../../../../../node_modules/default-browser/index.js","../../../../../../../node_modules/default-browser/package.json","../../../../../../../node_modules/default-browser/windows.js","../../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/is-docker/index.js","../../../../../../../node_modules/is-docker/package.json","../../../../../../../node_modules/is-in-ssh/index.js","../../../../../../../node_modules/is-in-ssh/package.json","../../../../../../../node_modules/is-inside-container/index.js","../../../../../../../node_modules/is-inside-container/package.json","../../../../../../../node_modules/is-wsl/index.js","../../../../../../../node_modules/is-wsl/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/open/index.js","../../../../../../../node_modules/open/package.json","../../../../../../../node_modules/open/xdg-open","../../../../../../../node_modules/powershell-utils/index.js","../../../../../../../node_modules/powershell-utils/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/run-applescript/index.js","../../../../../../../node_modules/run-applescript/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../node_modules/wsl-utils/index.js","../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/index.js","../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/package.json","../../../../../../../node_modules/wsl-utils/package.json","../../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1220.js","../../../../../chunks/1260.js","../../../../../chunks/1329.js","../../../../../chunks/1455.js","../../../../../chunks/1478.js","../../../../../chunks/1813.js","../../../../../chunks/1998.js","../../../../../chunks/2353.js","../../../../../chunks/2391.js","../../../../../chunks/24.js","../../../../../chunks/241.js","../../../../../chunks/2430.js","../../../../../chunks/3016.js","../../../../../chunks/318.js","../../../../../chunks/3210.js","../../../../../chunks/3225.js","../../../../../chunks/3332.js","../../../../../chunks/3459.js","../../../../../chunks/3535.js","../../../../../chunks/3546.js","../../../../../chunks/3558.js","../../../../../chunks/3593.js","../../../../../chunks/3662.js","../../../../../chunks/3726.js","../../../../../chunks/3943.js","../../../../../chunks/3956.js","../../../../../chunks/4037.js","../../../../../chunks/4049.js","../../../../../chunks/4055.js","../../../../../chunks/412.js","../../../../../chunks/4123.js","../../../../../chunks/4125.js","../../../../../chunks/4152.js","../../../../../chunks/4293.js","../../../../../chunks/436.js","../../../../../chunks/4572.js","../../../../../chunks/4665.js","../../../../../chunks/4730.js","../../../../../chunks/4739.js","../../../../../chunks/4741.js","../../../../../chunks/4780.js","../../../../../chunks/4884.js","../../../../../chunks/5069.js","../../../../../chunks/507.js","../../../../../chunks/5081.js","../../../../../chunks/5182.js","../../../../../chunks/5217.js","../../../../../chunks/5258.js","../../../../../chunks/5285.js","../../../../../chunks/5433.js","../../../../../chunks/5573.js","../../../../../chunks/5615.js","../../../../../chunks/595.js","../../../../../chunks/6070.js","../../../../../chunks/615.js","../../../../../chunks/6457.js","../../../../../chunks/6763.js","../../../../../chunks/6777.js","../../../../../chunks/6844.js","../../../../../chunks/6877.js","../../../../../chunks/6922.js","../../../../../chunks/698.js","../../../../../chunks/7211.js","../../../../../chunks/7220.js","../../../../../chunks/7247.js","../../../../../chunks/7716.js","../../../../../chunks/7774.js","../../../../../chunks/7828.js","../../../../../chunks/7965.js","../../../../../chunks/8145.js","../../../../../chunks/8292.js","../../../../../chunks/8363.js","../../../../../chunks/8402.js","../../../../../chunks/8416.js","../../../../../chunks/8499.js","../../../../../chunks/8520.js","../../../../../chunks/8635.js","../../../../../chunks/869.js","../../../../../chunks/8843.js","../../../../../chunks/8895.js","../../../../../chunks/8910.js","../../../../../chunks/8920.js","../../../../../chunks/9128.js","../../../../../chunks/915.js","../../../../../chunks/9528.js","../../../../../chunks/9667.js","../../../../../chunks/9820.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/esm/_interop_require_default.js","../../../../../../../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/bundle-name/index.js","../../../../../../../node_modules/bundle-name/package.json","../../../../../../../node_modules/default-browser-id/index.js","../../../../../../../node_modules/default-browser-id/package.json","../../../../../../../node_modules/default-browser/index.js","../../../../../../../node_modules/default-browser/package.json","../../../../../../../node_modules/default-browser/windows.js","../../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/is-docker/index.js","../../../../../../../node_modules/is-docker/package.json","../../../../../../../node_modules/is-in-ssh/index.js","../../../../../../../node_modules/is-in-ssh/package.json","../../../../../../../node_modules/is-inside-container/index.js","../../../../../../../node_modules/is-inside-container/package.json","../../../../../../../node_modules/is-wsl/index.js","../../../../../../../node_modules/is-wsl/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/open/index.js","../../../../../../../node_modules/open/package.json","../../../../../../../node_modules/open/xdg-open","../../../../../../../node_modules/powershell-utils/index.js","../../../../../../../node_modules/powershell-utils/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/run-applescript/index.js","../../../../../../../node_modules/run-applescript/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../node_modules/wsl-utils/index.js","../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/index.js","../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/package.json","../../../../../../../node_modules/wsl-utils/package.json","../../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1220.js","../../../../../chunks/1260.js","../../../../../chunks/1329.js","../../../../../chunks/1455.js","../../../../../chunks/1478.js","../../../../../chunks/1813.js","../../../../../chunks/1998.js","../../../../../chunks/2214.js","../../../../../chunks/2353.js","../../../../../chunks/2391.js","../../../../../chunks/24.js","../../../../../chunks/241.js","../../../../../chunks/2430.js","../../../../../chunks/2751.js","../../../../../chunks/2870.js","../../../../../chunks/3016.js","../../../../../chunks/318.js","../../../../../chunks/3210.js","../../../../../chunks/3225.js","../../../../../chunks/3459.js","../../../../../chunks/3535.js","../../../../../chunks/3546.js","../../../../../chunks/3558.js","../../../../../chunks/3593.js","../../../../../chunks/3662.js","../../../../../chunks/3726.js","../../../../../chunks/3943.js","../../../../../chunks/4037.js","../../../../../chunks/4049.js","../../../../../chunks/4055.js","../../../../../chunks/412.js","../../../../../chunks/4123.js","../../../../../chunks/4125.js","../../../../../chunks/4152.js","../../../../../chunks/4293.js","../../../../../chunks/436.js","../../../../../chunks/4572.js","../../../../../chunks/4665.js","../../../../../chunks/4730.js","../../../../../chunks/4739.js","../../../../../chunks/4741.js","../../../../../chunks/4780.js","../../../../../chunks/4884.js","../../../../../chunks/5069.js","../../../../../chunks/507.js","../../../../../chunks/5081.js","../../../../../chunks/5182.js","../../../../../chunks/5217.js","../../../../../chunks/5258.js","../../../../../chunks/5285.js","../../../../../chunks/5433.js","../../../../../chunks/5573.js","../../../../../chunks/5615.js","../../../../../chunks/595.js","../../../../../chunks/6070.js","../../../../../chunks/615.js","../../../../../chunks/6457.js","../../../../../chunks/6763.js","../../../../../chunks/6777.js","../../../../../chunks/6844.js","../../../../../chunks/6877.js","../../../../../chunks/6922.js","../../../../../chunks/698.js","../../../../../chunks/7211.js","../../../../../chunks/7220.js","../../../../../chunks/7247.js","../../../../../chunks/7716.js","../../../../../chunks/7774.js","../../../../../chunks/7828.js","../../../../../chunks/7965.js","../../../../../chunks/8145.js","../../../../../chunks/8292.js","../../../../../chunks/8363.js","../../../../../chunks/8402.js","../../../../../chunks/8416.js","../../../../../chunks/8499.js","../../../../../chunks/8520.js","../../../../../chunks/8635.js","../../../../../chunks/869.js","../../../../../chunks/8843.js","../../../../../chunks/8895.js","../../../../../chunks/8910.js","../../../../../chunks/8920.js","../../../../../chunks/9128.js","../../../../../chunks/915.js","../../../../../chunks/9528.js","../../../../../chunks/9820.js","../../../../../webpack-runtime.js","page_client-reference-manifest.js"]}