9router-proxy 0.6.25 → 0.6.27

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 (1061) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +10 -10
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +26 -26
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  56. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  57. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  58. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  59. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  60. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  61. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  62. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  63. package/app/.next-cli-build/server/app/_not-found.rsc +31 -30
  64. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +31 -30
  65. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +37 -36
  66. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  67. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  70. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  79. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  81. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  82. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  84. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  86. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  87. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
  88. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  89. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  90. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  92. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  94. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  96. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  100. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  102. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  104. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  110. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  113. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  115. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  117. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +3 -3
  119. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  121. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  125. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
  127. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/oauth/miaoshou/auto-import/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/oauth/miaoshou/import/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  241. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  267. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  277. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  279. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  301. package/app/.next-cli-build/server/app/callback.html +1 -1
  302. package/app/.next-cli-build/server/app/callback.rsc +36 -35
  303. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +36 -35
  304. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  305. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +42 -41
  306. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  307. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +36 -35
  308. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +44 -43
  309. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +36 -35
  310. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  311. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  312. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +39 -38
  313. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +46 -45
  314. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +39 -38
  315. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  316. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  317. package/app/.next-cli-build/server/app/dashboard/combos.rsc +40 -39
  318. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +48 -47
  319. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +40 -39
  320. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  321. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  322. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +38 -37
  323. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +45 -44
  324. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +38 -37
  325. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  326. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  327. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +40 -39
  328. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +49 -48
  329. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +40 -39
  330. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  331. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  332. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +38 -37
  333. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +46 -45
  334. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +38 -37
  335. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  336. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  337. package/app/.next-cli-build/server/app/dashboard/profile.rsc +39 -38
  338. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +47 -46
  339. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +39 -38
  340. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  341. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  342. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +40 -39
  343. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +49 -48
  344. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +40 -39
  345. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  346. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  347. package/app/.next-cli-build/server/app/dashboard/providers.rsc +39 -38
  348. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +47 -46
  349. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +39 -38
  350. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  351. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  352. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +39 -38
  353. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +47 -46
  354. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +39 -38
  355. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  356. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  357. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +39 -38
  358. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +47 -46
  359. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +39 -38
  360. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  361. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  362. package/app/.next-cli-build/server/app/dashboard/quota.rsc +37 -36
  363. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +45 -44
  364. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +37 -36
  365. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  366. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  368. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  369. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +38 -37
  370. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +38 -37
  371. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  372. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +46 -45
  373. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  374. package/app/.next-cli-build/server/app/dashboard/skills.rsc +39 -38
  375. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +47 -46
  376. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +39 -38
  377. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  378. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  379. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +36 -35
  380. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +44 -43
  381. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +36 -35
  382. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  383. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  384. package/app/.next-cli-build/server/app/dashboard/translator.rsc +39 -38
  385. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +47 -46
  386. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +39 -38
  387. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  388. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  389. package/app/.next-cli-build/server/app/dashboard/usage.rsc +40 -39
  390. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +48 -47
  391. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +40 -39
  392. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  393. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  394. package/app/.next-cli-build/server/app/dashboard.rsc +37 -36
  395. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +43 -42
  396. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +37 -36
  397. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  398. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/index.html +1 -1
  400. package/app/.next-cli-build/server/app/index.rsc +29 -28
  401. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +34 -33
  402. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +29 -28
  403. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  404. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  406. package/app/.next-cli-build/server/app/landing.html +1 -1
  407. package/app/.next-cli-build/server/app/landing.rsc +37 -36
  408. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +37 -36
  409. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  410. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +43 -42
  411. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  412. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  413. package/app/.next-cli-build/server/app/login.html +1 -1
  414. package/app/.next-cli-build/server/app/login.rsc +36 -35
  415. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +36 -35
  416. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  417. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +42 -41
  418. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  419. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  420. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  421. package/app/.next-cli-build/server/app-paths-manifest.json +10 -10
  422. package/app/.next-cli-build/server/chunks/1248.js +1 -1
  423. package/app/.next-cli-build/server/chunks/1350.js +1 -1
  424. package/app/.next-cli-build/server/chunks/1757.js +1 -1
  425. package/app/.next-cli-build/server/chunks/2220.js +1 -1
  426. package/app/.next-cli-build/server/chunks/2224.js +1 -0
  427. package/app/.next-cli-build/server/chunks/24.js +1 -1
  428. package/app/.next-cli-build/server/chunks/3256.js +1 -1
  429. package/app/.next-cli-build/server/chunks/3459.js +1 -1
  430. package/app/.next-cli-build/server/chunks/3726.js +1 -1
  431. package/app/.next-cli-build/server/chunks/3835.js +1 -1
  432. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  433. package/app/.next-cli-build/server/chunks/412.js +1 -1
  434. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  435. package/app/.next-cli-build/server/chunks/4478.js +1 -1
  436. package/app/.next-cli-build/server/chunks/5026.js +1 -1
  437. package/app/.next-cli-build/server/chunks/5330.js +3 -3
  438. package/app/.next-cli-build/server/chunks/5615.js +2 -2
  439. package/app/.next-cli-build/server/chunks/702.js +2 -0
  440. package/app/.next-cli-build/server/chunks/7220.js +1 -1
  441. package/app/.next-cli-build/server/chunks/7716.js +1 -1
  442. package/app/.next-cli-build/server/chunks/7828.js +1 -1
  443. package/app/.next-cli-build/server/chunks/794.js +1 -1
  444. package/app/.next-cli-build/server/chunks/8238.js +1 -1
  445. package/app/.next-cli-build/server/chunks/8271.js +1 -1
  446. package/app/.next-cli-build/server/chunks/8895.js +2 -2
  447. package/app/.next-cli-build/server/chunks/9310.js +1 -1
  448. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  449. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  450. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  451. package/app/.next-cli-build/server/pages/404.html +1 -1
  452. package/app/.next-cli-build/server/pages/500.html +1 -1
  453. package/app/.next-cli-build/server/preview-props.json +3 -3
  454. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  455. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  456. package/app/.next-cli-build/static/chunks/1321-6b5146ba33211449.js +1 -0
  457. package/app/.next-cli-build/static/chunks/1592-7a1b8f3c2180b75e.js +1 -0
  458. package/app/.next-cli-build/static/chunks/1610-3f2a428594c9c558.js +1 -0
  459. package/app/.next-cli-build/static/chunks/2599-e954754c18e14dc4.js +11 -0
  460. package/app/.next-cli-build/static/chunks/{5497-94d4f9da330e2758.js → 5497-5edd305639e92d2a.js} +2 -2
  461. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-ea4bef63948f4a79.js → page-07860701d1f36356.js} +1 -1
  462. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-72ec90d965d57554.js → page-ae984b5ad00b815e.js} +1 -1
  463. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-218501982818a903.js → page-e11d3606ae59138e.js} +1 -1
  464. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-9f1dd6ca7ceeabb7.js → page-41c527db65ecc456.js} +1 -1
  465. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-66757e17ed9f3b23.js → page-7462d58828409915.js} +1 -1
  466. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-3e8642754ac07e6c.js +1 -0
  467. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-78497e3fc309a66b.js → page-a2d8782942f79c7a.js} +1 -1
  468. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-cb24c102a5535c19.js → page-bccd29d8fdb1420b.js} +1 -1
  469. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-bdffd7da424a40f6.js → page-a115f2f850d39128.js} +1 -1
  470. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-e9115d1643fe83ab.js → page-bc5f2544706ca405.js} +1 -1
  471. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-830479c6d2b66001.js → page-e75bafb632a626bf.js} +1 -1
  472. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-9388fd549174fd34.js +1 -0
  473. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-a49e8b527b71b335.js → page-78a0a5ea58f9a4bc.js} +1 -1
  474. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-1af8c2edc9c0ae1d.js → page-904dc75c59a37284.js} +3 -3
  475. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-8dee526b0891af9f.js → page-883eae14cd5e19d5.js} +1 -1
  476. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-68597056465adc3d.js → page-fd714aed70be1291.js} +1 -1
  477. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-5545d5f7a6f26894.js → page-f31106889f308c23.js} +1 -1
  478. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-9d4ff69bd12d4c5a.js → page-d7accdd5a36f268c.js} +1 -1
  479. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-3c36f41167857750.js → page-6ac24ff171abe1f6.js} +1 -1
  480. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-cfdf2480dbe558ad.js → page-0d4c8de9cddb2798.js} +1 -1
  481. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-f7d7700d4afd666f.js → page-a59a90e55a3d6e21.js} +1 -1
  482. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-e84a334408baee9c.js → page-88bd684463c3b41a.js} +1 -1
  483. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-68f3751d62bcacbd.js → page-84497afdde6117e5.js} +1 -1
  484. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-ecd45841ec1ff701.js → layout-ce8c7297b5839e06.js} +1 -1
  485. package/app/.next-cli-build/static/chunks/app/{layout-00c8624593ca90e2.js → layout-b71d3072d7d0c248.js} +1 -1
  486. package/app/.next-cli-build/static/chunks/app/login/{page-89eb6dc8740863de.js → page-cc43b7351e61ff65.js} +1 -1
  487. package/app/.next-cli-build/static/chunks/{webpack-d2b96a2313c45c57.js → webpack-2d6a76068971e74e.js} +1 -1
  488. package/app/.next-cli-build/static/css/{a4a1d5192ab47550.css → 20a8e781bd7763d0.css} +1 -1
  489. package/app/node_modules/caniuse-lite/data/features/aac.js +1 -1
  490. package/app/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  491. package/app/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  492. package/app/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  493. package/app/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  494. package/app/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  495. package/app/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  496. package/app/node_modules/caniuse-lite/data/features/apng.js +1 -1
  497. package/app/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  498. package/app/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  499. package/app/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  500. package/app/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  501. package/app/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  502. package/app/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  503. package/app/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  504. package/app/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  505. package/app/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  506. package/app/node_modules/caniuse-lite/data/features/audio.js +1 -1
  507. package/app/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  508. package/app/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  509. package/app/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  510. package/app/node_modules/caniuse-lite/data/features/av1.js +1 -1
  511. package/app/node_modules/caniuse-lite/data/features/avif.js +1 -1
  512. package/app/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  513. package/app/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  514. package/app/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  515. package/app/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  516. package/app/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  517. package/app/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  518. package/app/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  519. package/app/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  520. package/app/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  521. package/app/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  522. package/app/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  523. package/app/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  524. package/app/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  525. package/app/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  526. package/app/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  527. package/app/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  528. package/app/node_modules/caniuse-lite/data/features/calc.js +1 -1
  529. package/app/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  530. package/app/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  531. package/app/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  532. package/app/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  533. package/app/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  534. package/app/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  535. package/app/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  536. package/app/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  537. package/app/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  538. package/app/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  539. package/app/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  540. package/app/node_modules/caniuse-lite/data/features/colr.js +1 -1
  541. package/app/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  542. package/app/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  543. package/app/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  544. package/app/node_modules/caniuse-lite/data/features/const.js +1 -1
  545. package/app/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  546. package/app/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  547. package/app/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  548. package/app/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  549. package/app/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  550. package/app/node_modules/caniuse-lite/data/features/cors.js +1 -1
  551. package/app/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  552. package/app/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  553. package/app/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  554. package/app/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  555. package/app/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  556. package/app/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  557. package/app/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  558. package/app/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  559. package/app/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  560. package/app/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  561. package/app/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  562. package/app/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  563. package/app/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  564. package/app/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  565. package/app/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  566. package/app/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  567. package/app/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  568. package/app/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  569. package/app/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  570. package/app/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  571. package/app/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  572. package/app/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  573. package/app/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  574. package/app/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  575. package/app/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  576. package/app/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  577. package/app/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  578. package/app/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  579. package/app/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  580. package/app/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  581. package/app/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  582. package/app/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  583. package/app/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  584. package/app/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  585. package/app/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  586. package/app/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  587. package/app/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  588. package/app/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  589. package/app/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  590. package/app/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  591. package/app/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  592. package/app/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  593. package/app/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  594. package/app/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  595. package/app/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  596. package/app/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  597. package/app/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  598. package/app/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  599. package/app/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  600. package/app/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  601. package/app/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  602. package/app/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  603. package/app/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  604. package/app/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  605. package/app/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  606. package/app/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  607. package/app/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  608. package/app/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  609. package/app/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  610. package/app/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  611. package/app/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  612. package/app/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  613. package/app/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  614. package/app/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  615. package/app/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  616. package/app/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  617. package/app/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  618. package/app/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  619. package/app/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  620. package/app/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  621. package/app/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  622. package/app/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  623. package/app/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  624. package/app/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  625. package/app/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  626. package/app/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  627. package/app/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  628. package/app/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  629. package/app/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  630. package/app/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  631. package/app/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  632. package/app/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  633. package/app/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  634. package/app/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  635. package/app/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  636. package/app/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  637. package/app/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  638. package/app/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  639. package/app/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  640. package/app/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  641. package/app/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  642. package/app/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  643. package/app/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  644. package/app/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  645. package/app/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  646. package/app/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  647. package/app/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  648. package/app/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  649. package/app/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  650. package/app/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  651. package/app/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  652. package/app/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  653. package/app/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  654. package/app/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  655. package/app/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  656. package/app/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  657. package/app/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  658. package/app/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  659. package/app/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  660. package/app/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  661. package/app/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  662. package/app/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  663. package/app/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  664. package/app/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  665. package/app/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  666. package/app/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  667. package/app/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  668. package/app/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  669. package/app/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  670. package/app/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  671. package/app/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  672. package/app/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  673. package/app/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  674. package/app/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  675. package/app/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  676. package/app/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  677. package/app/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  678. package/app/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  679. package/app/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  680. package/app/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  681. package/app/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  682. package/app/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  683. package/app/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  684. package/app/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  685. package/app/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  686. package/app/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  687. package/app/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  688. package/app/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  689. package/app/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  690. package/app/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  691. package/app/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  692. package/app/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  693. package/app/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  694. package/app/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  695. package/app/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  696. package/app/node_modules/caniuse-lite/data/features/details.js +1 -1
  697. package/app/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  698. package/app/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  699. package/app/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  700. package/app/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  701. package/app/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  702. package/app/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  703. package/app/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  704. package/app/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  705. package/app/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  706. package/app/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  707. package/app/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  708. package/app/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  709. package/app/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  710. package/app/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  711. package/app/node_modules/caniuse-lite/data/features/download.js +1 -1
  712. package/app/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  713. package/app/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  714. package/app/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  715. package/app/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  716. package/app/node_modules/caniuse-lite/data/features/eme.js +1 -1
  717. package/app/node_modules/caniuse-lite/data/features/eot.js +1 -1
  718. package/app/node_modules/caniuse-lite/data/features/es5.js +1 -1
  719. package/app/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  720. package/app/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  721. package/app/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  722. package/app/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  723. package/app/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  724. package/app/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  725. package/app/node_modules/caniuse-lite/data/features/es6.js +1 -1
  726. package/app/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  727. package/app/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  728. package/app/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  729. package/app/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  730. package/app/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  731. package/app/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  732. package/app/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  733. package/app/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  734. package/app/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  735. package/app/node_modules/caniuse-lite/data/features/flac.js +1 -1
  736. package/app/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  737. package/app/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  738. package/app/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  739. package/app/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  740. package/app/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  741. package/app/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  742. package/app/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  743. package/app/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  744. package/app/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  745. package/app/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  746. package/app/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  747. package/app/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  748. package/app/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  749. package/app/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  750. package/app/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  751. package/app/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  752. package/app/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  753. package/app/node_modules/caniuse-lite/data/features/forms.js +1 -1
  754. package/app/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  755. package/app/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  756. package/app/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  757. package/app/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  758. package/app/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  759. package/app/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  760. package/app/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  761. package/app/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  762. package/app/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  763. package/app/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  764. package/app/node_modules/caniuse-lite/data/features/heif.js +1 -1
  765. package/app/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  766. package/app/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  767. package/app/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  768. package/app/node_modules/caniuse-lite/data/features/history.js +1 -1
  769. package/app/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  770. package/app/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  771. package/app/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  772. package/app/node_modules/caniuse-lite/data/features/http2.js +1 -1
  773. package/app/node_modules/caniuse-lite/data/features/http3.js +1 -1
  774. package/app/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  775. package/app/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  776. package/app/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  777. package/app/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  778. package/app/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  779. package/app/node_modules/caniuse-lite/data/features/imports.js +1 -1
  780. package/app/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  781. package/app/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  782. package/app/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  783. package/app/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  784. package/app/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  785. package/app/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  786. package/app/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  787. package/app/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  788. package/app/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  789. package/app/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  790. package/app/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  791. package/app/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  792. package/app/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  793. package/app/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  794. package/app/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  795. package/app/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  796. package/app/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  797. package/app/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  798. package/app/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  799. package/app/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  800. package/app/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  801. package/app/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  802. package/app/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  803. package/app/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  804. package/app/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  805. package/app/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  806. package/app/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  807. package/app/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  808. package/app/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  809. package/app/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  810. package/app/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  811. package/app/node_modules/caniuse-lite/data/features/json.js +1 -1
  812. package/app/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  813. package/app/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  814. package/app/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  815. package/app/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  816. package/app/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  817. package/app/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  818. package/app/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  819. package/app/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  820. package/app/node_modules/caniuse-lite/data/features/let.js +1 -1
  821. package/app/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  822. package/app/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  823. package/app/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  824. package/app/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  825. package/app/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  826. package/app/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  827. package/app/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  828. package/app/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  829. package/app/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  830. package/app/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  831. package/app/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  832. package/app/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  833. package/app/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  834. package/app/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  835. package/app/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  836. package/app/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  837. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  838. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  839. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  840. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  841. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  842. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  843. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  844. package/app/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  845. package/app/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  846. package/app/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  847. package/app/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  848. package/app/node_modules/caniuse-lite/data/features/menu.js +1 -1
  849. package/app/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  850. package/app/node_modules/caniuse-lite/data/features/meter.js +1 -1
  851. package/app/node_modules/caniuse-lite/data/features/midi.js +1 -1
  852. package/app/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  853. package/app/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  854. package/app/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  855. package/app/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  856. package/app/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  857. package/app/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  858. package/app/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  859. package/app/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  860. package/app/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  861. package/app/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  862. package/app/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  863. package/app/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  864. package/app/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  865. package/app/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  866. package/app/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  867. package/app/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  868. package/app/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  869. package/app/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  870. package/app/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  871. package/app/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  872. package/app/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  873. package/app/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  874. package/app/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  875. package/app/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  876. package/app/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  877. package/app/node_modules/caniuse-lite/data/features/opus.js +1 -1
  878. package/app/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  879. package/app/node_modules/caniuse-lite/data/features/outline.js +1 -1
  880. package/app/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  881. package/app/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  882. package/app/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  883. package/app/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  884. package/app/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  885. package/app/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  886. package/app/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  887. package/app/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  888. package/app/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  889. package/app/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  890. package/app/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  891. package/app/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  892. package/app/node_modules/caniuse-lite/data/features/picture.js +1 -1
  893. package/app/node_modules/caniuse-lite/data/features/ping.js +1 -1
  894. package/app/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  895. package/app/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  896. package/app/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  897. package/app/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  898. package/app/node_modules/caniuse-lite/data/features/portals.js +1 -1
  899. package/app/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  900. package/app/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  901. package/app/node_modules/caniuse-lite/data/features/progress.js +1 -1
  902. package/app/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  903. package/app/node_modules/caniuse-lite/data/features/promises.js +1 -1
  904. package/app/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  905. package/app/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  906. package/app/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  907. package/app/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  908. package/app/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  909. package/app/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  910. package/app/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  911. package/app/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  912. package/app/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  913. package/app/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  914. package/app/node_modules/caniuse-lite/data/features/rem.js +1 -1
  915. package/app/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  916. package/app/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  917. package/app/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  918. package/app/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  919. package/app/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  920. package/app/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  921. package/app/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  922. package/app/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  923. package/app/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  924. package/app/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  925. package/app/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  926. package/app/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  927. package/app/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  928. package/app/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  929. package/app/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  930. package/app/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  931. package/app/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  932. package/app/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  933. package/app/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  934. package/app/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  935. package/app/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  936. package/app/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  937. package/app/node_modules/caniuse-lite/data/features/sni.js +1 -1
  938. package/app/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  939. package/app/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  940. package/app/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  941. package/app/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  942. package/app/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  943. package/app/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  944. package/app/node_modules/caniuse-lite/data/features/stream.js +1 -1
  945. package/app/node_modules/caniuse-lite/data/features/streams.js +1 -1
  946. package/app/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  947. package/app/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  948. package/app/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  949. package/app/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  950. package/app/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  951. package/app/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  952. package/app/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  953. package/app/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  954. package/app/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  955. package/app/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  956. package/app/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  957. package/app/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  958. package/app/node_modules/caniuse-lite/data/features/svg.js +1 -1
  959. package/app/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  960. package/app/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  961. package/app/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  962. package/app/node_modules/caniuse-lite/data/features/template.js +1 -1
  963. package/app/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  964. package/app/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  965. package/app/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  966. package/app/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  967. package/app/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  968. package/app/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  969. package/app/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  970. package/app/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  971. package/app/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  972. package/app/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  973. package/app/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  974. package/app/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  975. package/app/node_modules/caniuse-lite/data/features/touch.js +1 -1
  976. package/app/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  977. package/app/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  978. package/app/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  979. package/app/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  980. package/app/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  981. package/app/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  982. package/app/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  983. package/app/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  984. package/app/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  985. package/app/node_modules/caniuse-lite/data/features/url.js +1 -1
  986. package/app/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  987. package/app/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  988. package/app/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  989. package/app/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  990. package/app/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  991. package/app/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  992. package/app/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  993. package/app/node_modules/caniuse-lite/data/features/video.js +1 -1
  994. package/app/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  995. package/app/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  996. package/app/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  997. package/app/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  998. package/app/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  999. package/app/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  1000. package/app/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  1001. package/app/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  1002. package/app/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  1003. package/app/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  1004. package/app/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  1005. package/app/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  1006. package/app/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  1007. package/app/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  1008. package/app/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  1009. package/app/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  1010. package/app/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  1011. package/app/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  1012. package/app/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  1013. package/app/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  1014. package/app/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  1015. package/app/node_modules/caniuse-lite/data/features/wav.js +1 -1
  1016. package/app/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  1017. package/app/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  1018. package/app/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  1019. package/app/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  1020. package/app/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  1021. package/app/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  1022. package/app/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  1023. package/app/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  1024. package/app/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  1025. package/app/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  1026. package/app/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  1027. package/app/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  1028. package/app/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  1029. package/app/node_modules/caniuse-lite/data/features/webm.js +1 -1
  1030. package/app/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  1031. package/app/node_modules/caniuse-lite/data/features/webp.js +1 -1
  1032. package/app/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  1033. package/app/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  1034. package/app/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  1035. package/app/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  1036. package/app/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  1037. package/app/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  1038. package/app/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  1039. package/app/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  1040. package/app/node_modules/caniuse-lite/data/features/woff.js +1 -1
  1041. package/app/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  1042. package/app/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  1043. package/app/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  1044. package/app/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  1045. package/app/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  1046. package/app/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  1047. package/app/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  1048. package/app/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  1049. package/app/node_modules/caniuse-lite/data/versionGroups.js +1 -1
  1050. package/app/node_modules/caniuse-lite/package.json +1 -1
  1051. package/app/package.json +1 -1
  1052. package/package.json +1 -1
  1053. package/app/.next-cli-build/server/chunks/7913.js +0 -2
  1054. package/app/.next-cli-build/server/chunks/8402.js +0 -1
  1055. package/app/.next-cli-build/static/chunks/1321-3a69a854a444fcd0.js +0 -1
  1056. package/app/.next-cli-build/static/chunks/763-64b80a1ab0aa3cfc.js +0 -1
  1057. package/app/.next-cli-build/static/chunks/8982-034c1a89a74fd310.js +0 -11
  1058. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-a2112a715423804a.js +0 -1
  1059. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-0eae4c30300946df.js +0 -1
  1060. /package/app/.next-cli-build/static/{GqCiYVA1XNTqU43gq2Fhm → zfYHuQvzglYJyhsqgUYWW}/_buildManifest.js +0 -0
  1061. /package/app/.next-cli-build/static/{GqCiYVA1XNTqU43gq2Fhm → zfYHuQvzglYJyhsqgUYWW}/_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")},11883:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>af});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),c(26172);var p=c(60757);let q=["none","low","medium","high"],r=["none","thinking"],s=["none","low","medium","high","xhigh","max"],t={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":s,"claude-budget":s,"gemini-level":["minimal","low","medium","high"],"gemini-budget":q,zai:r,qwen:q,kimi:["none","low","medium","high","max"],deepseek:["none","high","max"],commandcode:["none","low","medium","high","xhigh","max"],minimax:r,hunyuan:q,step:q,nous:q},u=["none","minimal","low","medium","high","xhigh","max"],v=["none","low","medium","high","max"],w=[{pattern:"*gemini-4*",levels:["low","medium","high"]},{pattern:"*claude*4.6*",levels:v},{pattern:"*claude*4-6*",levels:v},{provider:"codex",pattern:"*gpt-6*",levels:u},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...u,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...u,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:u},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{provider:"opencode",pattern:"*mimo*v2.6*",levels:["none","minimal","low","medium","high","xhigh","max"]},{pattern:"*mimo*v2.6*",levels:["none","low","medium","high","xhigh"]},{pattern:"*mimo*v2.5-pro*",levels:["none","low","medium","high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4-pro",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4.1-flash",levels:["low","high","max"]},{pattern:"*deepseek-v4.1-flash-free*",levels:["low","high","max"]},{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.3-flash",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.2",levels:["high","xhigh"]},{provider:"codebuddy-cn",pattern:"kimi-k2.8-preview",levels:["low","medium","high"]},{provider:"codebuddy-cn",pattern:"hy3",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4-preview",levels:["high"]},{provider:"codebuddy-intl",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"minimax-code",pattern:"MiniMax-M3.1*",levels:["low","medium","high","xhigh","max"]},{provider:"minimax-code",pattern:"MiniMax-M3",levels:["none","high"]},{provider:"minimax-code-global",pattern:"MiniMax-M3.1*",levels:["low","medium","high","xhigh","max"]},{provider:"minimax-code-global",pattern:"MiniMax-M3",levels:["none","high"]}],x=/(?:^|\/)gpt-(?:5\.6|6)(?:[.-]|$)/i;function y(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=function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".").match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);return b?{major:Number(b[1]),minor:void 0===b[2]?null:Number(b[2])}:null}(a);if(!c)return null;let{major:d,minor:e}=c;return d<4||4===d&&(null===e||e<=5||null!==e&&e>=1e3)?null:"output_config"}(b))return null;let c=(0,n.nl)(a,b);if(!c.reasoning)return null;let d=String(b||"").replace(/\([^()]+\)\s*$/,""),e="codex"===a?(0,p.SM)("cx").find(a=>a.id===d)?.thinkingLevels:null,f=w.find(c=>(!c.provider||c.provider===a)&&(0,o.gH)(c.pattern,b)),g=e||f?.levels||(String(a||"").startsWith("openai-compatible-")&&x.test(d)?u:null)||t[c.thinkingFormat]||q;return!1===c.thinkingCanDisable&&(g=g.filter(a=>"none"!==a)),g}var z=c(50377),A=c(29476),B=c(99258),C=c(18753),D=c(49885),E=c.n(D);function F({model:a,fullModel:b,aliases:c,copied:e,onCopy:f,testStatus:g,isCustom:h,isFree:i,onDeleteAlias:j,onTest:l,isTesting:m,onDisable:n,onAddAlias:o,onRemoveAlias:p,caps:q,thinkingSuffix:r}){let s=r?`${b}(${r})`:b,t="ok"===g?"#22c55e":"error"===g?"#ef4444":void 0;return(0,d.jsx)("div",{className:`group w-full sm:w-auto 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 mt-0.5 sm:mt-0",style:t?{color:t}: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:"w-fit max-w-full break-all rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px] sm:truncate",children:s}),(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:"break-all sm:truncate text-[9px] italic text-text-muted/70",children:a.name}),(0,d.jsx)(k.nh,{caps:q,colorOverride:"text-text-muted/70",size:12})]}),c?.length>0&&(0,d.jsx)("span",{className:"flex min-w-0 flex-wrap items-center gap-1 pl-1",children:c.map(a=>(0,d.jsxs)("span",{className:"flex items-center gap-0.5 rounded bg-sidebar px-1 py-px font-mono text-[9px] text-primary/80",children:[a,p&&(0,d.jsx)("button",{onClick:()=>p(a),title:"Remove shortcut",className:"text-text-muted hover:text-red-500",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[10px]",children:"close"})})]},a))})]}),(0,d.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5 sm:gap-1",children:[o&&(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:()=>{let a=window.prompt(`Shortcut name for ${s}`,""),b=a?.trim().toLowerCase().replace(/[^a-z0-9_-]/g,"");b&&o(b)},className:"rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-sidebar hover:text-primary sm:opacity-0 sm:group-hover:opacity-100",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"label"})}),(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:"Add shortcut"})]}),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(s,`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:"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:"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 G({modelId:a,fullModel:b,alias:c,copied:e,onCopy:f,onDeleteAlias:g,onTest:h,testStatus:i,isTesting:j}){let k="ok"===i?"#22c55e":"error"===i?"#ef4444":void 0;return(0,d.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===i?"border-green-500/40":"error"===i?"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:k?{color:k}:void 0,children:"ok"===i?"check_circle":"error"===i?"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}),c&&(0,d.jsx)("span",{className:"rounded bg-sidebar px-1 py-0.5 font-mono text-[9px] text-primary/80",children:c}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>f(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:e===`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:e===`model-${a}`?"Copied!":"Copy"})]}),h&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:h,disabled:j,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:j?{animation:"spin 1s linear infinite"}:void 0,children:j?"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:j?"Testing...":"Test"})]})]})]}),(0,d.jsx)("button",{onClick:g,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 H({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)}}},z=(0,C.R)({customModels:f,modelAliases:c,providerAlias:a,type:"llm"}),A=async()=>{if(!o.trim()||q)return;let a=o.trim();if(z.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)}},B=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&&(z.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)}}},D=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&&A(),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:A,disabled:!o.trim()||q,children:q?"Adding...":"Add"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"download",onClick:B,disabled:!D||s,children:s?"Importing...":"Import from /models"})]}),!D&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),z.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-3",children:z.map(({id:c,alias:e,source:f})=>(0,d.jsx)(G,{modelId:c,alias:e,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}`))})]})}F.propTypes={model:E().shape({id:E().string.isRequired}).isRequired,fullModel:E().string.isRequired,aliases:E().arrayOf(E().string),copied:E().string,onCopy:E().func.isRequired,testStatus:E().oneOf(["ok","error"]),isCustom:E().bool,isFree:E().bool,onDeleteAlias:E().func,onTest:E().func,isTesting:E().bool,onDisable:E().func,onAddAlias:E().func,onRemoveAlias:E().func,caps:E().object,thinkingSuffix:E().string},E().string.isRequired,E().string.isRequired,E().string,E().func.isRequired,E().func.isRequired,E().func,E().oneOf(["ok","error"]),E().bool,E().string.isRequired,E().object.isRequired,E().arrayOf(E().object),E().string,E().func.isRequired,E().func.isRequired,E().func.isRequired,E().func.isRequired,H.propTypes={providerStorageAlias:E().string.isRequired,providerDisplayAlias:E().string.isRequired,modelAliases:E().object.isRequired,customModels:E().arrayOf(E().object),copied:E().string,onCopy:E().func.isRequired,onDeleteAlias:E().func.isRequired,onAddCustomModel:E().func.isRequired,onDeleteCustomModel:E().func.isRequired,connections:E().arrayOf(E().shape({id:E().string,isActive:E().bool})).isRequired,isAnthropic:E().bool};var I=c(74429),J=c(74875);function K({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 L({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=(0,e.useRef)(null),[w,x]=(0,e.useState)(null),y=new Map((b||[]).map(a=>[a.id,a])),z=a.providerSpecificData?.proxyPoolId||null,A=z?y.get(z):null,B=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,C=!!z||B,D=A?`Pool: ${A.name}`:z?`Pool: ${z} (inactive/missing)`:B?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",E=(()=>{if(!p)return"";let a=[];return(p.reactiveOn&&a.push("On reset"),p.scheduleOn&&a.push(`Scheduled (${p.scheduleSummary||"active"})`),a.length>0)?`Auto-ping active: ${a.join(" + ")}. Click to configure.`:"codex"===p.provider?"Auto-starts the next 5h Codex window after reset or on schedule. Click to configure.":"Auto-starts a new window on quota reset or fixed schedule. Click to configure."})(),F="";if(A?.proxyUrl||a.providerSpecificData?.connectionProxyUrl){let b=A?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);F=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{F=b}}let G=A?.noProxy||a.providerSpecificData?.connectionNoProxy||"",H="default";A?.isActive===!0?H="success":(z||B)&&(H="error");let M=async a=>{t(!0);try{await l("__none__"===a?null:a)}finally{t(!1),r(!1)}},N=a.authType||(c?"oauth":"apikey"),O="oauth"===N,P="cookie"===N,Q="mcode-lease"===N,R=a.name?.trim()||a.email?.trim()||a.displayName?.trim()||(Q?"Desktop Lease":O?"OAuth Account":P?"Cookie Account":"API Key"),S=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,[T,U]=(0,e.useState)(!1),V=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,W="unavailable"!==a.testStatus||T?a.testStatus:"active",X=()=>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:Q?"desktop_windows":P?"cookie":O?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:R}),S&&(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:S}),(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,J.g)(a.isActive,W),size:"sm",dot:!0,children:!1===a.isActive?"disabled":W||"Unknown"}),(0,d.jsx)(k.Ex,{variant:"default",size:"sm",children:Q?"Desktop Lease":O?"OAuth":P?"Cookie":"API Key"}),C&&(0,d.jsx)(k.Ex,{variant:H,size:"sm",children:"Proxy"}),T&&!1!==a.isActive&&(0,d.jsx)(K,{until:V}),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]}),X()&&(0,d.jsx)(k.Ex,{variant:o?"success"===o.state?"success":"failed"===o.state?"error":"testing"===o.state?"primary":"default":"default",size:"sm",children:X()})]}),C&&(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:D,children:D}),F&&(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:F}),G&&(0,d.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:G,children:["no_proxy: ",G]})]})]})]}),(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",{children:[(0,d.jsxs)("button",{ref:v,onClick:()=>{if(q)return void r(!1);let a=v.current?.getBoundingClientRect();if(!a)return void r(!0);let c=((b?.length||0)+1)*34+8,d=window.innerHeight-a.bottom,e=d<c&&a.top>d;x({position:"fixed",right:window.innerWidth-a.right,...e?{bottom:window.innerHeight-a.top+4,maxHeight:Math.max(a.top-8,120)}:{top:a.bottom+4,maxHeight:Math.max(d-8,120)}}),r(!0)},className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${C?"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,I.createPortal)((0,d.jsxs)("div",{ref:u,style:w,className:"z-50 max-w-[78vw] min-w-[160px] overflow-y-auto rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,d.jsx)("button",{onClick:()=>M("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!z?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,d.jsx)("button",{onClick:()=>M(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${z===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]}),document.body)]}),p&&(0,d.jsx)(k.m_,{text:E,children:(0,d.jsxs)("button",{onClick:p.onConfigure,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.isActive?"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"})]})]})}K.propTypes={until:E().string.isRequired},L.propTypes={connection:E().shape({id:E().string,name:E().string,email:E().string,displayName:E().string,modelLockUntil:E().string,testStatus:E().string,isActive:E().bool,lastError:E().string,priority:E().number,globalPriority:E().number}).isRequired,proxyPools:E().arrayOf(E().shape({id:E().string,name:E().string,proxyUrl:E().string,noProxy:E().string,isActive:E().bool})),isOAuth:E().bool.isRequired,isFirst:E().bool.isRequired,isLast:E().bool.isRequired,onMoveUp:E().func.isRequired,onMoveDown:E().func.isRequired,onToggleActive:E().func.isRequired,onUpdateProxy:E().func,onEdit:E().func.isRequired,onDelete:E().func.isRequired,oneByOneStatus:E().shape({state:E().string,error:E().string}),autoPing:E().shape({isActive:E().bool,provider:E().string,reactiveOn:E().bool,scheduleOn:E().bool,scheduleSummary:E().string,onConfigure:E().func})};let M=`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")},11883:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>af});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(11905),o=c(18982);c(87592),c(26172);var p=c(60757);let q=["none","low","medium","high"],r=["none","thinking"],s=["none","low","medium","high","xhigh","max"],t={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":s,"claude-budget":s,"gemini-level":["minimal","low","medium","high"],"gemini-budget":q,zai:r,qwen:q,kimi:["none","low","medium","high","max"],deepseek:["none","high","max"],commandcode:["none","low","medium","high","xhigh","max"],minimax:r,hunyuan:q,step:q,nous:q},u=["none","minimal","low","medium","high","xhigh","max"],v=["none","low","medium","high","max"],w=[{pattern:"*gemini-4*",levels:["low","medium","high"]},{pattern:"*claude*4.6*",levels:v},{pattern:"*claude*4-6*",levels:v},{provider:"codex",pattern:"*gpt-6*",levels:u},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...u,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...u,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:u},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{provider:"opencode",pattern:"*mimo*v2.6*",levels:["none","minimal","low","medium","high","xhigh","max"]},{pattern:"*mimo*v2.6*",levels:["none","low","medium","high","xhigh"]},{pattern:"*mimo*v2.5-pro*",levels:["none","low","medium","high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4-pro",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4.1-flash",levels:["low","high","max"]},{pattern:"*deepseek-v4.1-flash-free*",levels:["low","high","max"]},{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.3-flash",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.2",levels:["high","xhigh"]},{provider:"codebuddy-cn",pattern:"kimi-k2.8-preview",levels:["low","medium","high"]},{provider:"codebuddy-cn",pattern:"hy3",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4-preview",levels:["high"]},{provider:"codebuddy-intl",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"minimax-code",pattern:"MiniMax-M3.1*",levels:["low","medium","high","xhigh","max"]},{provider:"minimax-code",pattern:"MiniMax-M3",levels:["none","high"]},{provider:"minimax-code-global",pattern:"MiniMax-M3.1*",levels:["low","medium","high","xhigh","max"]},{provider:"minimax-code-global",pattern:"MiniMax-M3",levels:["none","high"]}],x=/(?:^|\/)gpt-(?:5\.6|6)(?:[.-]|$)/i;function y(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=function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".").match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);return b?{major:Number(b[1]),minor:void 0===b[2]?null:Number(b[2])}:null}(a);if(!c)return null;let{major:d,minor:e}=c;return d<4||4===d&&(null===e||e<=5||null!==e&&e>=1e3)?null:"output_config"}(b))return null;let c=(0,n.nl)(a,b);if(!c.reasoning)return null;let d=String(b||"").replace(/\([^()]+\)\s*$/,""),e="codex"===a?(0,p.SM)("cx").find(a=>a.id===d)?.thinkingLevels:null,f=w.find(c=>(!c.provider||c.provider===a)&&(0,o.gH)(c.pattern,b)),g=e||f?.levels||(String(a||"").startsWith("openai-compatible-")&&x.test(d)?u:null)||t[c.thinkingFormat]||q;return!1===c.thinkingCanDisable&&(g=g.filter(a=>"none"!==a)),g}var z=c(50377),A=c(29476),B=c(99258),C=c(18753),D=c(49885),E=c.n(D);function F({model:a,fullModel:b,aliases:c,copied:e,onCopy:f,testStatus:g,isCustom:h,isFree:i,onDeleteAlias:j,onTest:l,isTesting:m,onDisable:n,onAddAlias:o,onRemoveAlias:p,caps:q,thinkingSuffix:r}){let s=r?`${b}(${r})`:b,t="ok"===g?"#22c55e":"error"===g?"#ef4444":void 0;return(0,d.jsx)("div",{className:`group w-full sm:w-auto 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 mt-0.5 sm:mt-0",style:t?{color:t}: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:"w-fit max-w-full break-all rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px] sm:truncate",children:s}),(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:"break-all sm:truncate text-[9px] italic text-text-muted/70",children:a.name}),(0,d.jsx)(k.nh,{caps:q,colorOverride:"text-text-muted/70",size:12})]}),c?.length>0&&(0,d.jsx)("span",{className:"flex min-w-0 flex-wrap items-center gap-1 pl-1",children:c.map(a=>(0,d.jsxs)("span",{className:"flex items-center gap-0.5 rounded bg-sidebar px-1 py-px font-mono text-[9px] text-primary/80",children:[a,p&&(0,d.jsx)("button",{onClick:()=>p(a),title:"Remove shortcut",className:"text-text-muted hover:text-red-500",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[10px]",children:"close"})})]},a))})]}),(0,d.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5 sm:gap-1",children:[o&&(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:()=>{let a=window.prompt(`Shortcut name for ${s}`,""),b=a?.trim().toLowerCase().replace(/[^a-z0-9_-]/g,"");b&&o(b)},className:"rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-sidebar hover:text-primary sm:opacity-0 sm:group-hover:opacity-100",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"label"})}),(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:"Add shortcut"})]}),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(s,`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:"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:"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 G({modelId:a,fullModel:b,alias:c,copied:e,onCopy:f,onDeleteAlias:g,onTest:h,testStatus:i,isTesting:j}){let k="ok"===i?"#22c55e":"error"===i?"#ef4444":void 0;return(0,d.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===i?"border-green-500/40":"error"===i?"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:k?{color:k}:void 0,children:"ok"===i?"check_circle":"error"===i?"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}),c&&(0,d.jsx)("span",{className:"rounded bg-sidebar px-1 py-0.5 font-mono text-[9px] text-primary/80",children:c}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>f(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:e===`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:e===`model-${a}`?"Copied!":"Copy"})]}),h&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:h,disabled:j,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:j?{animation:"spin 1s linear infinite"}:void 0,children:j?"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:j?"Testing...":"Test"})]})]})]}),(0,d.jsx)("button",{onClick:g,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 H({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)}}},z=(0,C.R)({customModels:f,modelAliases:c,providerAlias:a,type:"llm"}),A=async()=>{if(!o.trim()||q)return;let a=o.trim();if(z.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)}},B=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&&(z.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)}}},D=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&&A(),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:A,disabled:!o.trim()||q,children:q?"Adding...":"Add"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"download",onClick:B,disabled:!D||s,children:s?"Importing...":"Import from /models"})]}),!D&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),z.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-3",children:z.map(({id:c,alias:e,source:f})=>(0,d.jsx)(G,{modelId:c,alias:e,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}`))})]})}F.propTypes={model:E().shape({id:E().string.isRequired}).isRequired,fullModel:E().string.isRequired,aliases:E().arrayOf(E().string),copied:E().string,onCopy:E().func.isRequired,testStatus:E().oneOf(["ok","error"]),isCustom:E().bool,isFree:E().bool,onDeleteAlias:E().func,onTest:E().func,isTesting:E().bool,onDisable:E().func,onAddAlias:E().func,onRemoveAlias:E().func,caps:E().object,thinkingSuffix:E().string},E().string.isRequired,E().string.isRequired,E().string,E().func.isRequired,E().func.isRequired,E().func,E().oneOf(["ok","error"]),E().bool,E().string.isRequired,E().object.isRequired,E().arrayOf(E().object),E().string,E().func.isRequired,E().func.isRequired,E().func.isRequired,E().func.isRequired,H.propTypes={providerStorageAlias:E().string.isRequired,providerDisplayAlias:E().string.isRequired,modelAliases:E().object.isRequired,customModels:E().arrayOf(E().object),copied:E().string,onCopy:E().func.isRequired,onDeleteAlias:E().func.isRequired,onAddCustomModel:E().func.isRequired,onDeleteCustomModel:E().func.isRequired,connections:E().arrayOf(E().shape({id:E().string,isActive:E().bool})).isRequired,isAnthropic:E().bool};var I=c(74429),J=c(74875);function K({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 L({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=(0,e.useRef)(null),[w,x]=(0,e.useState)(null),y=new Map((b||[]).map(a=>[a.id,a])),z=a.providerSpecificData?.proxyPoolId||null,A=z?y.get(z):null,B=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,C=!!z||B,D=A?`Pool: ${A.name}`:z?`Pool: ${z} (inactive/missing)`:B?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",E=(()=>{if(!p)return"";let a=[];return(p.reactiveOn&&a.push("On reset"),p.scheduleOn&&a.push(`Scheduled (${p.scheduleSummary||"active"})`),a.length>0)?`Auto-ping active: ${a.join(" + ")}. Click to configure.`:"codex"===p.provider?"Auto-starts the next 5h Codex window after reset or on schedule. Click to configure.":"Auto-starts a new window on quota reset or fixed schedule. Click to configure."})(),F="";if(A?.proxyUrl||a.providerSpecificData?.connectionProxyUrl){let b=A?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);F=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{F=b}}let G=A?.noProxy||a.providerSpecificData?.connectionNoProxy||"",H="default";A?.isActive===!0?H="success":(z||B)&&(H="error");let M=async a=>{t(!0);try{await l("__none__"===a?null:a)}finally{t(!1),r(!1)}},N=a.authType||(c?"oauth":"apikey"),O="oauth"===N,P="cookie"===N,Q="mcode-lease"===N,R=a.name?.trim()||a.email?.trim()||a.displayName?.trim()||(Q?"Desktop Lease":O?"OAuth Account":P?"Cookie Account":"API Key"),S=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,[T,U]=(0,e.useState)(!1),V=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,W="unavailable"!==a.testStatus||T?a.testStatus:"active",X=()=>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:Q?"desktop_windows":P?"cookie":O?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:R}),S&&(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:S}),(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,J.g)(a.isActive,W),size:"sm",dot:!0,children:!1===a.isActive?"disabled":W||"Unknown"}),(0,d.jsx)(k.Ex,{variant:"default",size:"sm",children:Q?"Desktop Lease":O?"OAuth":P?"Cookie":"API Key"}),C&&(0,d.jsx)(k.Ex,{variant:H,size:"sm",children:"Proxy"}),T&&!1!==a.isActive&&(0,d.jsx)(K,{until:V}),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]}),X()&&(0,d.jsx)(k.Ex,{variant:o?"success"===o.state?"success":"failed"===o.state?"error":"testing"===o.state?"primary":"default":"default",size:"sm",children:X()})]}),C&&(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:D,children:D}),F&&(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:F}),G&&(0,d.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:G,children:["no_proxy: ",G]})]})]})]}),(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",{children:[(0,d.jsxs)("button",{ref:v,onClick:()=>{if(q)return void r(!1);let a=v.current?.getBoundingClientRect();if(!a)return void r(!0);let c=((b?.length||0)+1)*34+8,d=window.innerHeight-a.bottom,e=d<c&&a.top>d;x({position:"fixed",right:window.innerWidth-a.right,...e?{bottom:window.innerHeight-a.top+4,maxHeight:Math.max(a.top-8,120)}:{top:a.bottom+4,maxHeight:Math.max(d-8,120)}}),r(!0)},className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${C?"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,I.createPortal)((0,d.jsxs)("div",{ref:u,style:w,className:"z-50 max-w-[78vw] min-w-[160px] overflow-y-auto rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,d.jsx)("button",{onClick:()=>M("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!z?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,d.jsx)("button",{onClick:()=>M(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${z===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]}),document.body)]}),p&&(0,d.jsx)(k.m_,{text:E,children:(0,d.jsxs)("button",{onClick:p.onConfigure,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.isActive?"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"})]})]})}K.propTypes={until:E().string.isRequired},L.propTypes={connection:E().shape({id:E().string,name:E().string,email:E().string,displayName:E().string,modelLockUntil:E().string,testStatus:E().string,isActive:E().bool,lastError:E().string,priority:E().number,globalPriority:E().number}).isRequired,proxyPools:E().arrayOf(E().shape({id:E().string,name:E().string,proxyUrl:E().string,noProxy:E().string,isActive:E().bool})),isOAuth:E().bool.isRequired,isFirst:E().bool.isRequired,isLast:E().bool.isRequired,onMoveUp:E().func.isRequired,onMoveDown:E().func.isRequired,onToggleActive:E().func.isRequired,onUpdateProxy:E().func,onEdit:E().func.isRequired,onDelete:E().func.isRequired,oneByOneStatus:E().shape({state:E().string,error:E().string}),autoPing:E().shape({isActive:E().bool,provider:E().string,reactiveOn:E().bool,scheduleOn:E().bool,scheduleSummary:E().string,onConfigure:E().func})};let M=`name1|sk-key1
2
2
  name2|sk-key2
3
3
  sk-key-only-auto-named`;function N({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]?.credentialForm==="aws",A=l.Q2?.[b]?.apiKeyOptionalWith||null,B=l.Q2?.[b]?.regions||null,C=l.Q2?.[b]?.defaultRegion||B?.[0]?.id||"",[D,E]=(0,e.useState)({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:s,ollamaHostUrl:""}),[F,G]=(0,e.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[H,I]=(0,e.useState)({accountId:""}),[J,K]=(0,e.useState)({profile:"",region:"",accessKeyId:"",sessionToken:""}),[L,O]=(0,e.useState)(C),[P,Q]=(0,e.useState)(!1),[R,S]=(0,e.useState)(null),[T,U]=(0,e.useState)(!1),V=y?`name1|sk-key1|acc123456
4
4
  name2|sk-key2|def789012
@@ -24,4 +24,4 @@ pt-only-auto-named`:M,[W,X]=(0,e.useState)("single"),[Y,Z]=(0,e.useState)(""),[$
24
24
  "id_token": "eyJ0eXAiOiJKV1QiLCJhbGci...",
25
25
  "email": "account2@example.com"
26
26
  }
27
- ]`;function U(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 V({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,B.Tl)("Please select valid .json files"));try{let a=[];for(let c of b){let b=await c.text(),d=U(b);Array.isArray(d)?a.push(...d):d&&a.push(d)}if(0===a.length)return void l((0,B.Tl)("No accounts found in selected files"));g(JSON.stringify(a,null,2)),r({filesCount:b.length,accountsCount:a.length})}catch(a){l(`${(0,B.Tl)("Error reading files")}: ${a.message}`)}},v=async()=>{let a;l(""),n(null);try{a=U(f)}catch(a){l(`${(0,B.Tl)("Invalid JSON")}: ${a.message}`);return}if(!a||0===a.length)return void l((0,B.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,B.Tl)("Request failed"))}finally{i(!1)}},w=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(k.aF,{isOpen:a,title:(0,B.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,B.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,B.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:T,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,B.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,B.Tl)("Loaded")," ",q.accountsCount," ",(0,B.Tl)("account(s) from")," ",q.filesCount," ",(0,B.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,B.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,B.Tl)("Importing..."):(0,B.Tl)("Import All")}),(0,d.jsx)(k.$n,{onClick:t,variant:"ghost",fullWidth:!0,disabled:h,children:(0,B.Tl)("Close")})]})]})})}var W=c(41371);let X=["host","content-length","content-type","connection","transfer-encoding","authorization","cookie"],Y=/^[A-Za-z0-9-]+$/;function Z({providerId:a}){let b=(0,W.i)(),[c,f]=(0,e.useState)(!1),[g,h]=(0,e.useState)([{name:"",value:""}]),[i,j]=(0,e.useState)({}),[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)(!1),p=(a,b,c)=>{h(d=>d.map((d,e)=>e===a?{...d,[b]:c}:d))},q=(0,e.useCallback)(async()=>{let c={};for(let a of g.filter(a=>a.name.trim())){let d=a.name.trim();if(!Y.test(d))return void b.error(`Invalid header name: ${d}`);if(X.includes(d.toLowerCase()))return void b.error(`Header ${d} cannot be overridden`);if(d in c)return void b.error(`Duplicate header name: ${d}`);a.value!==i[d]&&(c[d]=a.value)}o(!0);try{let d=await fetch(`/api/providers/${a}/overrides`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({headers:c})});if(!d.ok){let a=await d.json().catch(()=>({}));b.error(a.error||"Failed to save");return}m(Object.keys(c).length>0),b.success("Custom headers saved")}finally{o(!1)}},[g,i,a,b]);return 0!==Object.keys(i).length||l?(0,d.jsxs)(k.Zp,{padding:"xs",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>f(a=>!a),className:"flex w-full items-center justify-between text-left",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary text-[20px]",children:"tune"}),(0,d.jsx)("span",{className:"text-sm font-semibold",children:"Custom Headers"}),l&&(0,d.jsx)(k.Ex,{variant:"success",size:"sm",children:"Active"})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted",children:c?"expand_less":"expand_more"})]}),c&&(0,d.jsxs)("div",{className:"mt-3 border-t border-border pt-3",children:[(0,d.jsx)("div",{className:"flex flex-col gap-2",children:g.map((a,b)=>{let c=a.name.trim()in i&&a.value!==i[a.name.trim()];return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("input",{value:a.name,onChange:a=>p(b,"name",a.target.value),placeholder:"Header-Name",spellCheck:!1,className:"w-44 rounded-md border border-border bg-background px-2 py-1.5 text-sm focus:border-primary focus:outline-none"}),(0,d.jsx)("input",{value:a.value,onChange:a=>p(b,"value",a.target.value),placeholder:"Value",spellCheck:!1,title:c?"Overridden":a.name.trim()in i?"Registry default":"",className:`min-w-0 flex-1 rounded-md border bg-background px-2 py-1.5 text-sm focus:border-primary focus:outline-none ${c?"border-amber-400/60":"border-border"}`}),(0,d.jsx)("button",{type:"button",title:"Remove header",onClick:()=>h(a=>a.length>1?a.filter((a,c)=>c!==b):[{name:"",value:""}]),className:"shrink-0 text-text-muted hover:text-red-500",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]},b)})}),(0,d.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-2",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>h(a=>[...a,{name:"",value:""}]),className:"flex items-center gap-1 text-xs text-primary hover:underline",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),"Add header"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)("button",{type:"button",disabled:n,onClick:()=>{h(Object.entries(i).map(([a,b])=>({name:a,value:b})))},className:"rounded-md border border-border px-3 py-1.5 text-xs hover:bg-black/[0.03] dark:hover:bg-white/[0.03] disabled:opacity-50",children:"Reset"}),(0,d.jsx)("button",{type:"button",disabled:n,onClick:q,className:"rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-white hover:opacity-90 disabled:opacity-50",children:n?"Saving...":"Save"})]})]})]})]}):null}Z.propTypes={providerId:E().string.isRequired};var $=c(56020),_=c(41365);function aa({providerId:a,onConnected:b,size:c="sm"}){let[f,g]=(0,e.useState)(!1),[h,i]=(0,e.useState)(""),j=async()=>{g(!0),i("");try{let c=await fetch(`/api/oauth/${a}/lease-connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),d=await c.json().catch(()=>({}));if(!c.ok)return void i(d.error||"Could not reach the MiniMax Code desktop app");"function"==typeof b&&b()}catch(a){i(a?.message||"Could not reach the MiniMax Code desktop app")}finally{g(!1)}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:c,icon:"desktop_windows",variant:"secondary",disabled:f,onClick:j,title:(0,B.Tl)("Borrow the signed-in MiniMax Code desktop app's login — no second sign-in, refresh stays with the desktop app"),children:f?(0,B.Tl)("Connecting..."):(0,B.Tl)("Use Desktop App")}),h&&(0,d.jsx)("p",{className:"w-full text-xs text-red-500 break-words",children:h})]})}aa.propTypes={providerId:E().string.isRequired,onConnected:E().func,size:E().oneOf(["sm","md","lg"])};var ab=c(54589);let ac=new Set(["minimax-code","minimax-code-global"]),ad={claude:"claudeAutoPing",codex:"codexAutoPing"},ae={qoder:"Fetch Qoder Models","qoder-cn":"Fetch Qoder Models","trae-enterprise":"Fetch Trae Enterprise Models",codearts:"Fetch CodeArts Models",minimax:"Fetch MiniMax Models","minimax-cn":"Fetch MiniMax Models"};function af(){let a,b,c,g,n,o=(0,f.useParams)(),p=(0,f.useRouter)(),q=o.id,{getCaps:r}=(0,A.y)(),[s,t]=(0,e.useState)([]),[u,v]=(0,e.useState)(!0),[w,x]=(0,e.useState)(null),[D,E]=(0,e.useState)([]),[G,I]=(0,e.useState)(!1),[J,K]=(0,e.useState)(!1),[M,P]=(0,e.useState)(!1),[R,T]=(0,e.useState)(!1),[U,W]=(0,e.useState)(!1),[X,Y]=(0,e.useState)(""),[af,ag]=(0,e.useState)(!1),[ah,ai]=(0,e.useState)(!1),[aj,ak]=(0,e.useState)(!1),[al,am]=(0,e.useState)(!1),[an,ao]=(0,e.useState)(!1),[ap,aq]=(0,e.useState)(null),[ar,as]=(0,e.useState)({}),[at,au]=(0,e.useState)([]),[av,aw]=(0,e.useState)(!1),[ax,ay]=(0,e.useState)({}),[az,aA]=(0,e.useState)(""),[aB,aC]=(0,e.useState)(()=>new Set),[aD,aE]=(0,e.useState)(!1),[aF,aG]=(0,e.useState)([]),[aH,aI]=(0,e.useState)("__none__"),[aJ,aK]=(0,e.useState)(!1),[aL,aM]=(0,e.useState)(null),[aN,aO]=(0,e.useState)(""),[aP,aQ]=(0,e.useState)("auto"),[aR,aS]=(0,e.useState)({enabled:!1,connections:{},schedules:{}}),[aT,aU]=(0,e.useState)(null),[aV,aW]=(0,e.useState)([]),[aX,aY]=(0,e.useState)([]),[aZ,a$]=(0,e.useState)(null),[a_,a0]=(0,e.useState)([]),[a1,a2]=(0,e.useState)([]),[a3,a4]=(0,e.useState)(null),[a5,a6]=(0,e.useState)(!1),[a7,a8]=(0,e.useState)(!1),[a9,ba]=(0,e.useState)(!1),[bb,bc]=(0,e.useState)(null),[bd,be]=(0,e.useState)({}),[bf,bg]=(0,e.useState)(null),bh=(0,e.useRef)(!1),[bi,bj]=(0,e.useState)(!1),[bk,bl]=(0,e.useState)(!1),{copied:bm,copy:bn}=(0,z.C)(),bo=()=>{I(!0)},bp=()=>{"xiaomi-mimo"===q?K(!0):"miaoshou"===q?T(!0):bu?bo():(Y(""),W(!0))},bq=()=>{Y(""),W(!0)},br=()=>{"miaoshou"===q?T(!0):bu?bp():bq()},bs=w?{id:w.id,name:w.name||("anthropic-compatible"===w.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===w.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===w.type?"AC":"OC",apiType:w.apiType,baseUrl:w.baseUrl,type:w.type}:l.zN[q]||l.fg[q]||l.IS[q]||l.nJ[q]||l.br[q],bt=bs?.authModes||[],bu=!!l.zN[q]||!!l.IS[q]||bt.includes("oauth"),bv=!!l.fg[q]||bt.includes("apikey"),bw=!!l.IS[q]?.noAuth,bx="antigravity"===q||"gemini-cli"===q,by=(0,m.KC)(q),bz=("cursor"===q||"zed"===q)&&aX.length>0?aX:by,bA=(0,l.wG)(q),bB=(0,l.mq)(q),bC=(0,l.gb)(q),bD=bB||bC,bE=!bD&&bu&&bv,bF="xai"===q?"Grok Build OAuth":"grok-cli"===q?"Grok CLI Device Login":"kimi"===q?"Kimi Coding OAuth":"OAuth",bG="xai"===q?"xAI API Key":"kimi"===q?"Kimi API Key":"qoder"===q||"qoder-cn"===q?"PAT":"API Key",bH=a=>{if(!aP||"auto"===aP)return null;let b=y(q,a);return b&&b.includes(aP)?aP:null},bI=bD?q:bA,bJ=(()=>{let a=new Set,b=new Set,c=c=>{if(!c||b.has(c))return;b.add(c);let d=y(q,c);d&&d.forEach(b=>{"none"!==b&&a.add(b)})};for(let a of bz)c(a.id);for(let a of a_)c(a.id);for(let a of at)a.providerAlias===bI&&"llm"===(a.kind||a.type||"llm")&&c(a.id);return a.size?["auto",...a]:null})(),bK=bD?w?.prefix||q:bA,bL=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bI)}`,{cache:"no-store"}),b=await a.json();a.ok&&a2(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[bI]),bM=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bI,ids:[a]})})).ok&&await bL()}catch(a){console.log("Error disabling model:",a)}},bN=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bI)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bL()}catch(a){console.log("Error enabling model:",a)}},bO=async a=>{a.length&&a4({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{a4(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bI,ids:a})})).ok&&await bL()}catch(a){console.log("Error disabling all models:",a)}}})},bP=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bI)}`,{method:"DELETE"})).ok&&await bL()}catch(a){console.log("Error enabling all models:",a)}},bQ=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&as(b.aliases||{})}catch(a){console.log("Error fetching aliases:",a)}},[]),bR=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&au(b.models||[])}catch(a){console.log("Error fetching custom models:",a)}},[]),bS=(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&&E(g.proxyPools||[]);let i=(h.providerStrategies||{})[q]||{};aM(i.fallbackStrategy||null),aO(null!=i.stickyRoundRobinLimit?String(i.stickyRoundRobinLimit):"1");let j=(h.providerThinking||{})[q]||{};aQ(j.mode||"auto");let k=ad[q],l=k&&h[k]||{};if(aS({enabled:!0===l.enabled,connections:l.connections||{},schedules:l.schedules||{}}),b.ok){let a=(f.nodes||[]).find(a=>a.id===q)||null;if(!a&&bD)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}x(a)}}catch(a){console.log("Error fetching connections:",a)}finally{v(!1)}},[q,bD]),bT=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();if(!b.ok)return{error:c.error||"Failed to update provider node"};x(c.node),await bS(),am(!1)}catch(a){return console.log("Error updating provider node:",a),{error:"Failed to update provider node"}}return null},bU=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)}},bV=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)}},bW=async a=>{let b=ad[q];if(b){aS(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)}}},bX=async(a,b,c=bA)=>{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 bQ();else{let b=await a.json();alert(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},bY=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bQ()}catch(a){console.log("Error deleting alias:",a)}},bZ=async(a,b="llm",c=bI,d,e)=>{try{let f=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:c,id:a,type:b,...d?{caps:d}:{},...e?{transport:e}:{}})});if(f.ok)await bR();else{let a=await f.json();alert(a.error||"Failed to add custom model")}}catch(a){console.log("Error adding custom model:",a)}},b$=async(a,b="llm",c=bI)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});(await fetch(`/api/models/custom?${d}`,{method:"DELETE"})).ok&&await bR()}catch(a){console.log("Error deleting custom model:",a)}},b_=async()=>{if(bi)return;let a=s.find(a=>!1!==a.isActive);if(!a)return void alert((0,B.Tl)("Please add an active connection first"));bj(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,B.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,B.Tl)("No models returned"));let e=0,f=new Set(by.map(a=>a.id));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;at.some(a=>a.providerAlias===bI&&a.id===d&&"llm"===(a.kind||a.type||"llm"))||Object.values(ar).includes(`${bI}/${d}`)||f.has(d)||(await bZ(d,"llm",bI),e+=1)}0===e?alert((0,B.Tl)("All models already exist, no new models added")):alert((0,B.Tl)("Successfully added")+` ${e} `+(0,B.Tl)("models"))}catch(a){console.log("Error importing live models:",a),alert((0,B.Tl)("Error fetching models")+": "+a.message)}finally{bj(!1)}},b0=async()=>{if(bk)return;let a=s.find(a=>!1!==a.isActive);if(!a)return void alert((0,B.Tl)("Please add an active Cline connection first"));bl(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,B.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,B.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;b&&(at.some(a=>a.providerAlias===bI&&a.id===b&&"llm"===(a.kind||a.type||"llm"))||Object.values(ar).includes(`${bI}/${b}`)||(await bZ(b,"llm",bI),e+=1))}0===e?alert((0,B.Tl)("All models already exist, no new models added")):alert((0,B.Tl)("Successfully added")+` ${e} `+(0,B.Tl)("models"))}catch(a){console.log("Error importing Cline models:",a),alert((0,B.Tl)("Error fetching models")+": "+a.message)}finally{bl(!1)}},b1=async()=>{if(a7||0===s.length)return;let a=Object.fromEntries(s.map(a=>[a.id,{state:"queued",error:null}]));bh.current=!1,a8(!0),ba(!1),bc(null),be(a),bg({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(bh.current){bg({total:s.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=s[a];bc(d.id),be(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,be(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,be(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}bg({total:s.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<s.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{bc(null),a8(!1),ba(!1),bh.current=!1}},b2=async a=>{a4({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{a4(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)}}})},b3=()=>{bS(),I(!1)},b4=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 bS(),W(!1);return}Y(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),Y("Failed to save connection")}},b5=async a=>{try{(await fetch(`/api/providers/${ap.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await bS(),ak(!1))}catch(a){console.log("Error updating connection:",a)}},b6=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)}},b7=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 bS()}},b8=s.filter(a=>aF.includes(a.id)),b9=s.length>0&&aF.length===s.length;(()=>{if(0===b8.length)return;let a=new Set(b8.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return;let c=D.find(a=>a.id===b);return c?.name}})();let ca=()=>{aJ||ao(!1)},cb=async a=>{aK(!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 bS(),ao(!1)}finally{aK(!1)}},cc=a=>cb(s.map(b=>({connectionId:b.id,proxyPoolId:a}))),cd=(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,aF.includes(c)),onChange:()=>{var b;return b=a.id,void aG(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)(L,{connection:a,proxyPools:D,isOAuth:bu,isFirst:0===b,isLast:b===s.length-1,onMoveUp:()=>b7(b,b-1),onMoveDown:()=>b7(b,b+1),onToggleActive:b=>b6(a.id,b),autoPing:ad[q]&&"oauth"===a.authType?{isActive:!0===aR.connections[a.id]||aR.schedules?.[a.id]?.enabled===!0,reactiveOn:!0===aR.connections[a.id],provider:q,scheduleOn:aR.schedules?.[a.id]?.enabled===!0,scheduleSummary:(0,ab.JW)(aR.schedules?.[a.id]).join(" / "),onConfigure:()=>aU(a)}: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:()=>{aq(a),ak(!0)},onDelete:()=>b2(a.id),oneByOneStatus:bd[a.id]||null})})]},a.id)})}),ce=D.filter(a=>!0===a.isActive),cf=(0,d.jsx)(k.aF,{isOpen:an,onClose:ca,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=D.filter(a=>!0===a.isActive);return 0===a.length?void alert("No active proxy pools available."):cb(s.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:aJ||0===ce.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:()=>cc(null),disabled:aJ,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)"})]}),D.map(a=>(0,d.jsxs)("button",{onClick:()=>cc(a.id),disabled:aJ||!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))]}),aJ&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(k.$n,{onClick:ca,variant:"ghost",fullWidth:!0,disabled:aJ,children:"Cancel"})]})}),cg=async a=>{if(!aB.has(a)){aC(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:`${bI}/${a}`})}),c=await b.json();ay(b=>({...b,[a]:c.ok?"ok":"error"})),aA(c.ok?"":c.error||"Model not reachable")}catch{ay(b=>({...b,[a]:"error"})),aA("Network error")}finally{aC(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(!bs)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 ch=()=>bB&&bs.apiType?"responses"===bs.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":bC?"/providers/anthropic-m.png":(0,j.HY)(bs.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:`${bs.color}15`},children:av||!ch()?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:bs.color},children:bs.textIcon||bs.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.A,{src:ch(),alt:bs.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>{(0,j.Kw)(bs.id),aw(!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:bs.name}),(bs.notice?.apiKeyUrl||bs.notice?.signupUrl||bs.website)&&(0,d.jsxs)("a",{href:bs.notice?.apiKeyUrl||bs.notice?.signupUrl||bs.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"}),bs.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"]})]})]})]}),bs.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:bs.deprecationNotice})]}),bs.notice?.text&&!bs.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:bs.notice.text}),bs.notice.apiKeyUrl&&(0,d.jsx)("a",{href:bs.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 →"})]}),bD&&w&&(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:bC?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[bC?"Messages API":"responses"===w.apiType?"Responses API":"Chat Completions"," \xb7 ",(w.baseUrl||"").replace(/\/$/,""),"/",bC?"messages":"responses"===w.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:()=>am(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{a4({title:"Delete Compatible Node",message:`Delete this ${bC?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{a4(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"})]})]})}),bx&&(0,d.jsx)(k.gw,{providerId:q,title:"Proxy pool for connecting",description:"The OAuth connect flow itself calls Google endpoints. Route it through the selected proxy pool; the pool is then saved onto the new connection."}),bw?(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&&D.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>ao(!0),children:"Apply Proxy"}),s.length>0&&(0,d.jsxs)(d.Fragment,{children:[aF.length>0&&(0,d.jsxs)(k.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=aF.length;0!==a&&a4({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{a4(null);let a=0,b=[...aF];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))),aG([]),a>0&&alert(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",aF.length,")"]}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:b1,disabled:a7,children:a7?"Testing Connection One-by-One...":"Test Connection One-by-One"}),a7&&(0,d.jsx)(k.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{a7&&(bh.current=!0,ba(!0))},disabled:a9,children:a9?"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"===aL,onChange:a=>{let b=a?"round-robin":null,c=a?aN||"1":aN;a&&!aN&&aO("1"),aM(b),bU(b,c)}}),"round-robin"===aL&&(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:aN,onChange:a=>{var b;aO(b=a.target.value),bU("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:bu?"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"}),bE&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bF," or ",bG,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bE?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bp,children:bF}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bq,children:bG})]}):(0,d.jsxs)(d.Fragment,{children:[!bD&&_.w.has(q)&&(0,d.jsx)(_.A,{providerId:q,onConnected:bS}),!bD&&ac.has(q)&&(0,d.jsx)(aa,{providerId:q,onConnected:bS}),!bD&&"iflow"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>P(!0),children:"Cookie"}),"codex"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ag(!0),children:(0,B.Tl)("Bulk Add")}),"grok-cli"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ai(!0),children:(0,B.Tl)("Bulk Add")}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:br,children:bD?"Add API Key":"iflow"===q?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[bf&&(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: ",bf.total]}),(0,d.jsxs)("span",{children:["Completed: ",bf.completed]}),(0,d.jsxs)("span",{children:["Passed: ",bf.passed]}),(0,d.jsxs)("span",{children:["Failed: ",bf.failed]}),bf.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),a7&&bb&&(0,d.jsxs)("span",{children:["Running: ",s.find(a=>a.id===bb)?.name||bb]})]})}),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:b9,onChange:()=>{b9?aG([]):aG(s.map(a=>a.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),cd,!bD&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:[_.w.has(q)&&(0,d.jsx)(_.A,{providerId:q,onConnected:bS}),ac.has(q)&&(0,d.jsx)(aa,{providerId:q,onConnected:bS}),"iflow"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>P(!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:()=>ag(!0),title:(0,B.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,B.Tl)("Bulk Add")}),"grok-cli"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ai(!0),title:(0,B.Tl)("Bulk import Grok CLI accounts from JSON"),className:"w-full sm:w-auto",children:(0,B.Tl)("Bulk Add")}),bE?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bp,className:"w-full sm:w-auto",children:bF}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bq,className:"w-full sm:w-auto",children:bG})]}):(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:br,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsx)(Z,{providerId:q}),(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"}),bJ&&(0,d.jsx)("select",{value:aP,onChange:a=>{var b;aQ(b=a.target.value),bV(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:bJ.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),!bD&&(a=[...bz,...a_.filter(a=>!bz.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}).map(a=>a.id).filter(a=>!a1.includes(a)),(0,d.jsxs)("div",{className:"flex gap-2",children:[a1.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bP,children:"Active All"}),a.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bO(a),children:"Disable All"})]}))]}),!!az&&(0,d.jsxs)("div",{className:"mb-3",children:[(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:az}),/RegionError|hosted in China|regionNotAllowed/i.test(az)&&(c=(b="string"==typeof az?az:JSON.stringify(az)).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&&!!aZ&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:aZ}),(()=>{let a,b,c;if(bD)return(0,d.jsx)(H,{providerStorageAlias:bI,providerDisplayAlias:bK,modelAliases:ar,customModels:at,copied:bm,onCopy:bn,onDeleteAlias:bY,onAddCustomModel:a=>bZ(a,"llm",bI),onDeleteCustomModel:a=>b$(a,"llm",bI),connections:s,isAnthropic:bC});let e=[...bz,...a_.filter(a=>!bz.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}),f=new Set(a1),g=e.filter(a=>!f.has(a.id)),h=e.filter(a=>f.has(a.id)),i=(0,C.R)({customModels:at,modelAliases:ar,providerAlias:bI,builtInModels:bz,type:"llm"}),j=(0,C.o)(ar),k=(a,b)=>[...new Set([...j[a]||[],...j[b]||[]])];return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[i.map(a=>(0,d.jsx)(F,{model:{id:a.id,name:a.name},fullModel:`${bK}/${a.id}`,aliases:k(a.fullModel,`${q}/${a.id}`),copied:bm,onCopy:bn,onDeleteAlias:()=>{"custom"===a.source?b$(a.id,"llm",bI):bY(a.alias)},onRemoveAlias:bY,onAddAlias:b=>bX(a.id,b,bI),testStatus:ax[a.id],onTest:s.length>0||bw?()=>cg(a.id):void 0,isTesting:aB.has(a.id),isCustom:!0,isFree:!1,caps:r(`${bI}/${a.id}`),thinkingSuffix:bH(a.id)},`${a.source}-${a.fullModel}`)),g.map(a=>{let b=`${bI}/${a.id}`;return(0,d.jsx)(F,{model:a,fullModel:`${bK}/${a.id}`,aliases:k(b,`${q}/${a.id}`),copied:bm,onCopy:bn,onAddAlias:b=>bX(a.id,b,bI),onRemoveAlias:bY,testStatus:ax[a.id],onTest:s.length>0||bw?()=>cg(a.id):void 0,isTesting:aB.has(a.id),isFree:a.isFree,onDisable:()=>bM(a.id),caps:r(`${bI}/${a.id}`),thinkingSuffix:bH(a.id)},a.id)}),(0,d.jsxs)("button",{onClick:()=>aE(!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"]}),ae[q]&&s.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:b_,disabled:bi,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:bi?{animation:"spin 1s linear infinite"}:void 0,children:bi?"progress_activity":"download"}),bi?(0,B.Tl)("Fetching..."):(0,B.Tl)(ae[q])]}),("cline"===q||"clinepass"===q)&&s.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:b0,disabled:bk,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:bk?{animation:"spin 1s linear infinite"}:void 0,children:bk?"progress_activity":"download"}),bk?(0,B.Tl)("Fetching..."):(0,B.Tl)("Import from /models")]}),aV.length>0&&(a=new Set([...Object.values(ar),...i.map(a=>a.fullModel)]),b=new Set(bz.map(a=>a.id)),0===(c=aV.filter(c=>!a.has(`${bI}/${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 models:"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map(a=>(0,d.jsxs)("button",{onClick:async()=>{await bZ(a.id,"llm",bI)},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.contextLength?`${a.name} \xb7 ${(a.contextLength/1e3).toFixed(0)}k ctx`:a.name,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:()=>bN(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))})]})]})})()]}),cf,"kiro"===q?(0,d.jsx)(k.Mh,{isOpen:G,providerInfo:bs,onSuccess:b3,onClose:()=>I(!1)}):"cursor"===q?(0,d.jsx)(k.G9,{isOpen:G,onSuccess:b3,onClose:()=>I(!1)}):"zed"===q?(0,d.jsx)(k.TE,{isOpen:G,providerInfo:bs,onSuccess:b3,onClose:()=>I(!1)}):"gitlab"===q?(0,d.jsx)(k.vj,{isOpen:G,providerInfo:bs,onSuccess:b3,onClose:()=>I(!1)}):(0,d.jsx)(k.LF,{isOpen:G,provider:q,providerInfo:bs,onSuccess:b3,onClose:()=>I(!1)}),(0,d.jsx)(k.LH,{isOpen:J,onSuccess:b3,onClose:()=>K(!1)}),(0,d.jsx)(k.nm,{isOpen:R,onSuccess:b3,onClose:()=>T(!1)}),"iflow"===q&&(0,d.jsx)(k.vE,{isOpen:M,onSuccess:()=>{bS(),P(!1)},onClose:()=>P(!1)}),(0,d.jsx)(N,{isOpen:U,provider:q,providerName:bs.name,isCompatible:bD,isAnthropic:bC,authType:bs?.authType,authHint:bs?.authHint,website:bs?.website,proxyPools:D,error:X,existingNames:s.map(a=>a.name).filter(Boolean),onSave:b4,onBulkDone:bS,onClose:()=>{Y(""),W(!1)}}),(0,d.jsx)(k.wI,{isOpen:aj,connection:ap,proxyPools:D,onSave:b5,onClose:()=>ak(!1)}),bD&&(0,d.jsx)(O,{isOpen:al,node:w,onSave:bT,onClose:()=>am(!1),isAnthropic:bC}),!bD&&(0,d.jsx)(Q,{isOpen:aD,providerAlias:bI,providerDisplayAlias:bK,onSave:async(a,b,c)=>{await bZ(a,b?.stt?"stt":"llm",bI,b,c),aE(!1)},onClose:()=>aE(!1)}),"codex"===q&&(0,d.jsx)(S,{isOpen:af,onClose:()=>ag(!1),onSuccess:bS}),"grok-cli"===q&&(0,d.jsx)(V,{isOpen:ah,onClose:()=>ai(!1),onSuccess:bS}),aT&&(0,d.jsx)($.A,{isOpen:!!aT,onClose:()=>aU(null),connection:aT,reactive:!0===aR.connections[aT.id],schedule:aR.schedules?.[aT.id]||null,onSave:a=>((a,{reactive:b,schedule:c})=>{bW({...aR,connections:{...aR.connections,[a]:b},schedules:{...aR.schedules,[a]:c}})})(aT.id,a)}),(0,d.jsx)(k.uo,{isOpen:a5,onClose:()=>a6(!1),onConfirm:()=>{(a6(!1),bu)?bo():bq()},title:"Risk Notice",message:bs?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(k.uo,{isOpen:!!a3,onClose:()=>a4(null),onConfirm:a3?.onConfirm,title:a3?.title||"Confirm",message:a3?.message,variant:"danger"})]})}},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,11883))},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")},46193:a=>{"use strict";a.exports=require("node:string_decoder")},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")},54589:(a,b,c)=>{"use strict";function d(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}c.d(b,{JW:()=>i,Vm:()=>d,fB:()=>f,gy:()=>e,nz:()=>g});let e={anchor:"09:30",timezone:d(),windowHours:5,slotsPerDay:3};function f(a){let b=/^(\d{1,2}):(\d{2})$/.exec(String(a||"").trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:{hour:c,minute:d}}function g(a){return Math.max(1,Math.floor(24/a))}function h(a,b,c,d){let e="number"==typeof a?a:Number(a);return Number.isFinite(e)?Math.min(d,Math.max(c,e)):b}function i(a){let b=function(a){if(!a||!0!==a.enabled)return null;let b=f(a.anchor)||f(e.anchor),c=`${String(b.hour).padStart(2,"0")}:${String(b.minute).padStart(2,"0")}`,d=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(a.timezone)?e.timezone:a.timezone,i=h(a.windowHours,e.windowHours,.5,24),j=Math.round(h(a.slotsPerDay,e.slotsPerDay,1,g(i)));return{enabled:!0,anchor:c,timezone:d,windowHours:i,slotsPerDay:j}}(a);if(!b)return[];let{hour:c,minute:d}=f(b.anchor),i=60*c+d;return Array.from({length:b.slotsPerDay},(a,c)=>{let d=Math.round(i+c*b.windowHours*60)%1440;return`${String(Math.floor(d/60)).padStart(2,"0")}:${String(d%60).padStart(2,"0")}`})}},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},56020:(a,b,c)=>{"use strict";c.d(b,{A:()=>l});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412),i=c(71404),j=c(54589);let k=[{value:"off",label:"Off",icon:"block"},{value:"reset",label:"On reset",icon:"bolt"},{value:"schedule",label:"Schedule",icon:"schedule"}];function l({isOpen:a,onClose:b,onSave:c,connection:f,reactive:g=!1,schedule:m=null}){let[n,o]=(0,e.useState)(()=>({mode:m?.enabled===!0?"schedule":!0===g?"reset":"off",anchor:m?.anchor||j.gy.anchor,timezone:(0,j.Vm)(),windowHours:String(m?.windowHours??j.gy.windowHours),slotsPerDay:String(m?.slotsPerDay??j.gy.slotsPerDay)})),p=Number(n.windowHours),q=Number(n.slotsPerDay),r=!!(0,j.fB)(n.anchor),s=Number.isFinite(p)&&p>=.5&&p<=24,t=s?(0,j.nz)(p):24,u=Number.isInteger(q)&&q>=1&&q<=t,v=r&&s&&u,w="schedule"!==n.mode||v,x=v?(0,j.JW)({enabled:!0,...n,windowHours:p,slotsPerDay:q}):[],y=x.length&&s?(()=>{let{hour:a,minute:b}=(0,j.fB)(n.anchor),c=Math.round(60*a+b+q*p*60)%1440;return`${String(Math.floor(c/60)).padStart(2,"0")}:${String(c%60).padStart(2,"0")}`})():"",z=a=>o(b=>({...b,...a}));return(0,d.jsx)(h.aF,{isOpen:a,onClose:b,title:"Auto-ping settings",size:"lg",footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.$n,{variant:"secondary",onClick:b,children:"Cancel"}),(0,d.jsx)(h.$n,{onClick:()=>{w&&(c({reactive:"reset"===n.mode,schedule:"schedule"===n.mode?{enabled:!0,anchor:n.anchor,timezone:n.timezone,windowHours:p,slotsPerDay:q}:{enabled:!1}}),b())},disabled:!w,children:"Save"})]}),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Configure automated quota pings",f?.name?` for ${f.name}`:""," — pick one mode."]}),(0,d.jsx)("div",{className:"grid grid-cols-3 gap-1 rounded-[10px] bg-surface-2 p-1",children:k.map(a=>{let b=n.mode===a.value;return(0,d.jsxs)("button",{type:"button",onClick:()=>z({mode:a.value}),className:(0,i.cn)("flex h-9 items-center justify-center gap-1.5 rounded-[8px] px-3 text-sm font-medium transition-all",b?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] leading-none",children:a.icon}),(0,d.jsx)("span",{children:a.label})]},a.value)})}),"reset"===n.mode&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Pings right after the 5h quota window resets, so a new window starts immediately."}),"schedule"===n.mode&&(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Pings at fixed local times so the 5h windows align with your workday."}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[(0,d.jsx)(h.pd,{label:"Anchor time",type:"time",value:n.anchor,onChange:a=>z({anchor:a.target.value}),error:r?"":"Use HH:MM",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,d.jsx)(h.pd,{label:"Window (hours)",type:"number",min:"0.5",max:"24",step:"0.5",value:n.windowHours,onChange:a=>z({windowHours:a.target.value}),error:s?"":"0.5 – 24",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,d.jsx)(h.pd,{label:"Pings per day",type:"number",min:"1",max:String(t),step:"1",value:n.slotsPerDay,onChange:a=>z({slotsPerDay:a.target.value}),error:u?"":`1 – ${t}`,hint:u?`Max ${t}`:"",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"})]}),x.length>0&&(0,d.jsxs)("div",{className:"rounded-[10px] bg-surface-2 px-3 py-2.5",children:[(0,d.jsxs)("p",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:["Daily slots (",n.timezone,")"]}),(0,d.jsx)("p",{className:"mt-1 text-sm font-medium text-text-main",children:x.join(" → ")}),(0,d.jsxs)("p",{className:"mt-1 text-xs text-text-muted",children:["Covers ",x[0]," – ",y,", then pauses until ",x[0]," next day."]})]})]})]})})}l.propTypes={isOpen:g().bool.isRequired,onClose:g().func.isRequired,onSave:g().func.isRequired,connection:g().object,reactive:g().bool,schedule:g().object}},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")},72271:a=>{"use strict";a.exports=require("@aws-sdk/credential-providers")},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")},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")},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")},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")},96140:(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}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1260,2430,3459,2760,1220,9100,4478,6070,1329,915,6457,4123,5026,6777,412,1248,341],()=>b(b.s=96140));module.exports=c})();
27
+ ]`;function U(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 V({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,B.Tl)("Please select valid .json files"));try{let a=[];for(let c of b){let b=await c.text(),d=U(b);Array.isArray(d)?a.push(...d):d&&a.push(d)}if(0===a.length)return void l((0,B.Tl)("No accounts found in selected files"));g(JSON.stringify(a,null,2)),r({filesCount:b.length,accountsCount:a.length})}catch(a){l(`${(0,B.Tl)("Error reading files")}: ${a.message}`)}},v=async()=>{let a;l(""),n(null);try{a=U(f)}catch(a){l(`${(0,B.Tl)("Invalid JSON")}: ${a.message}`);return}if(!a||0===a.length)return void l((0,B.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,B.Tl)("Request failed"))}finally{i(!1)}},w=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(k.aF,{isOpen:a,title:(0,B.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,B.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,B.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:T,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,B.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,B.Tl)("Loaded")," ",q.accountsCount," ",(0,B.Tl)("account(s) from")," ",q.filesCount," ",(0,B.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,B.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,B.Tl)("Importing..."):(0,B.Tl)("Import All")}),(0,d.jsx)(k.$n,{onClick:t,variant:"ghost",fullWidth:!0,disabled:h,children:(0,B.Tl)("Close")})]})]})})}var W=c(41371);let X=["host","content-length","content-type","connection","transfer-encoding","authorization","cookie"],Y=/^[A-Za-z0-9-]+$/;function Z({providerId:a}){let b=(0,W.i)(),[c,f]=(0,e.useState)(!1),[g,h]=(0,e.useState)([{name:"",value:""}]),[i,j]=(0,e.useState)({}),[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)(!1),p=(a,b,c)=>{h(d=>d.map((d,e)=>e===a?{...d,[b]:c}:d))},q=(0,e.useCallback)(async()=>{let c={};for(let a of g.filter(a=>a.name.trim())){let d=a.name.trim();if(!Y.test(d))return void b.error(`Invalid header name: ${d}`);if(X.includes(d.toLowerCase()))return void b.error(`Header ${d} cannot be overridden`);if(d in c)return void b.error(`Duplicate header name: ${d}`);a.value!==i[d]&&(c[d]=a.value)}o(!0);try{let d=await fetch(`/api/providers/${a}/overrides`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({headers:c})});if(!d.ok){let a=await d.json().catch(()=>({}));b.error(a.error||"Failed to save");return}m(Object.keys(c).length>0),b.success("Custom headers saved")}finally{o(!1)}},[g,i,a,b]);return 0!==Object.keys(i).length||l?(0,d.jsxs)(k.Zp,{padding:"xs",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>f(a=>!a),className:"flex w-full items-center justify-between text-left",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary text-[20px]",children:"tune"}),(0,d.jsx)("span",{className:"text-sm font-semibold",children:"Custom Headers"}),l&&(0,d.jsx)(k.Ex,{variant:"success",size:"sm",children:"Active"})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted",children:c?"expand_less":"expand_more"})]}),c&&(0,d.jsxs)("div",{className:"mt-3 border-t border-border pt-3",children:[(0,d.jsx)("div",{className:"flex flex-col gap-2",children:g.map((a,b)=>{let c=a.name.trim()in i&&a.value!==i[a.name.trim()];return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("input",{value:a.name,onChange:a=>p(b,"name",a.target.value),placeholder:"Header-Name",spellCheck:!1,className:"w-44 rounded-md border border-border bg-background px-2 py-1.5 text-sm focus:border-primary focus:outline-none"}),(0,d.jsx)("input",{value:a.value,onChange:a=>p(b,"value",a.target.value),placeholder:"Value",spellCheck:!1,title:c?"Overridden":a.name.trim()in i?"Registry default":"",className:`min-w-0 flex-1 rounded-md border bg-background px-2 py-1.5 text-sm focus:border-primary focus:outline-none ${c?"border-amber-400/60":"border-border"}`}),(0,d.jsx)("button",{type:"button",title:"Remove header",onClick:()=>h(a=>a.length>1?a.filter((a,c)=>c!==b):[{name:"",value:""}]),className:"shrink-0 text-text-muted hover:text-red-500",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]},b)})}),(0,d.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-2",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>h(a=>[...a,{name:"",value:""}]),className:"flex items-center gap-1 text-xs text-primary hover:underline",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),"Add header"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)("button",{type:"button",disabled:n,onClick:()=>{h(Object.entries(i).map(([a,b])=>({name:a,value:b})))},className:"rounded-md border border-border px-3 py-1.5 text-xs hover:bg-black/[0.03] dark:hover:bg-white/[0.03] disabled:opacity-50",children:"Reset"}),(0,d.jsx)("button",{type:"button",disabled:n,onClick:q,className:"rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-white hover:opacity-90 disabled:opacity-50",children:n?"Saving...":"Save"})]})]})]})]}):null}Z.propTypes={providerId:E().string.isRequired};var $=c(56020),_=c(41365);function aa({providerId:a,onConnected:b,size:c="sm"}){let[f,g]=(0,e.useState)(!1),[h,i]=(0,e.useState)(""),j=async()=>{g(!0),i("");try{let c=await fetch(`/api/oauth/${a}/lease-connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),d=await c.json().catch(()=>({}));if(!c.ok)return void i(d.error||"Could not reach the MiniMax Code desktop app");"function"==typeof b&&b()}catch(a){i(a?.message||"Could not reach the MiniMax Code desktop app")}finally{g(!1)}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:c,icon:"desktop_windows",variant:"secondary",disabled:f,onClick:j,title:(0,B.Tl)("Borrow the signed-in MiniMax Code desktop app's login — no second sign-in, refresh stays with the desktop app"),children:f?(0,B.Tl)("Connecting..."):(0,B.Tl)("Use Desktop App")}),h&&(0,d.jsx)("p",{className:"w-full text-xs text-red-500 break-words",children:h})]})}aa.propTypes={providerId:E().string.isRequired,onConnected:E().func,size:E().oneOf(["sm","md","lg"])};var ab=c(54589);let ac=new Set(["minimax-code","minimax-code-global"]),ad={claude:"claudeAutoPing",codex:"codexAutoPing"},ae={qoder:"Fetch Qoder Models","qoder-cn":"Fetch Qoder Models","trae-enterprise":"Fetch Trae Enterprise Models",codearts:"Fetch CodeArts Models",minimax:"Fetch MiniMax Models","minimax-cn":"Fetch MiniMax Models"};function af(){let a,b,c,g,n,o=(0,f.useParams)(),p=(0,f.useRouter)(),q=o.id,{getCaps:r}=(0,A.y)(),[s,t]=(0,e.useState)([]),[u,v]=(0,e.useState)(!0),[w,x]=(0,e.useState)(null),[D,E]=(0,e.useState)([]),[G,I]=(0,e.useState)(!1),[J,K]=(0,e.useState)(!1),[M,P]=(0,e.useState)(!1),[R,T]=(0,e.useState)(!1),[U,W]=(0,e.useState)(!1),[X,Y]=(0,e.useState)(""),[af,ag]=(0,e.useState)(!1),[ah,ai]=(0,e.useState)(!1),[aj,ak]=(0,e.useState)(!1),[al,am]=(0,e.useState)(!1),[an,ao]=(0,e.useState)(!1),[ap,aq]=(0,e.useState)(null),[ar,as]=(0,e.useState)({}),[at,au]=(0,e.useState)([]),[av,aw]=(0,e.useState)(!1),[ax,ay]=(0,e.useState)({}),[az,aA]=(0,e.useState)(""),[aB,aC]=(0,e.useState)(()=>new Set),[aD,aE]=(0,e.useState)(!1),[aF,aG]=(0,e.useState)([]),[aH,aI]=(0,e.useState)("__none__"),[aJ,aK]=(0,e.useState)(!1),[aL,aM]=(0,e.useState)(null),[aN,aO]=(0,e.useState)(""),[aP,aQ]=(0,e.useState)("auto"),[aR,aS]=(0,e.useState)({enabled:!1,connections:{},schedules:{}}),[aT,aU]=(0,e.useState)(null),[aV,aW]=(0,e.useState)([]),[aX,aY]=(0,e.useState)([]),[aZ,a$]=(0,e.useState)(null),[a_,a0]=(0,e.useState)([]),[a1,a2]=(0,e.useState)([]),[a3,a4]=(0,e.useState)(null),[a5,a6]=(0,e.useState)(!1),[a7,a8]=(0,e.useState)(!1),[a9,ba]=(0,e.useState)(!1),[bb,bc]=(0,e.useState)(null),[bd,be]=(0,e.useState)({}),[bf,bg]=(0,e.useState)(null),bh=(0,e.useRef)(!1),[bi,bj]=(0,e.useState)(!1),[bk,bl]=(0,e.useState)(!1),{copied:bm,copy:bn}=(0,z.C)(),bo=()=>{I(!0)},bp=()=>{"xiaomi-mimo"===q?K(!0):"miaoshou"===q?T(!0):bu?bo():(Y(""),W(!0))},bq=()=>{Y(""),W(!0)},br=()=>{"miaoshou"===q?T(!0):bu?bp():bq()},bs=w?{id:w.id,name:w.name||("anthropic-compatible"===w.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===w.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===w.type?"AC":"OC",apiType:w.apiType,baseUrl:w.baseUrl,type:w.type}:l.zN[q]||l.fg[q]||l.IS[q]||l.nJ[q]||l.br[q],bt=bs?.authModes||[],bu=!!l.zN[q]||!!l.IS[q]||bt.includes("oauth"),bv=!!l.fg[q]||bt.includes("apikey"),bw=!!l.IS[q]?.noAuth,bx="antigravity"===q||"gemini-cli"===q,by=(0,m.KC)(q),bz=l.Q_.has(q)&&aX.length>0?aX:by,bA=(0,l.wG)(q),bB=(0,l.mq)(q),bC=(0,l.gb)(q),bD=bB||bC,bE=!bD&&bu&&bv,bF="xai"===q?"Grok Build OAuth":"grok-cli"===q?"Grok CLI Device Login":"kimi"===q?"Kimi Coding OAuth":"OAuth",bG="xai"===q?"xAI API Key":"kimi"===q?"Kimi API Key":"qoder"===q||"qoder-cn"===q?"PAT":"API Key",bH=a=>{if(!aP||"auto"===aP)return null;let b=y(q,a);return b&&b.includes(aP)?aP:null},bI=bD?q:bA,bJ=(()=>{let a=new Set,b=new Set,c=c=>{if(!c||b.has(c))return;b.add(c);let d=y(q,c);d&&d.forEach(b=>{"none"!==b&&a.add(b)})};for(let a of bz)c(a.id);for(let a of a_)c(a.id);for(let a of at)a.providerAlias===bI&&"llm"===(a.kind||a.type||"llm")&&c(a.id);return a.size?["auto",...a]:null})(),bK=bD?w?.prefix||q:bA,bL=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bI)}`,{cache:"no-store"}),b=await a.json();a.ok&&a2(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[bI]),bM=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bI,ids:[a]})})).ok&&await bL()}catch(a){console.log("Error disabling model:",a)}},bN=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bI)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bL()}catch(a){console.log("Error enabling model:",a)}},bO=async a=>{a.length&&a4({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{a4(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bI,ids:a})})).ok&&await bL()}catch(a){console.log("Error disabling all models:",a)}}})},bP=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bI)}`,{method:"DELETE"})).ok&&await bL()}catch(a){console.log("Error enabling all models:",a)}},bQ=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&as(b.aliases||{})}catch(a){console.log("Error fetching aliases:",a)}},[]),bR=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&au(b.models||[])}catch(a){console.log("Error fetching custom models:",a)}},[]),bS=(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&&E(g.proxyPools||[]);let i=(h.providerStrategies||{})[q]||{};aM(i.fallbackStrategy||null),aO(null!=i.stickyRoundRobinLimit?String(i.stickyRoundRobinLimit):"1");let j=(h.providerThinking||{})[q]||{};aQ(j.mode||"auto");let k=ad[q],l=k&&h[k]||{};if(aS({enabled:!0===l.enabled,connections:l.connections||{},schedules:l.schedules||{}}),b.ok){let a=(f.nodes||[]).find(a=>a.id===q)||null;if(!a&&bD)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}x(a)}}catch(a){console.log("Error fetching connections:",a)}finally{v(!1)}},[q,bD]),bT=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();if(!b.ok)return{error:c.error||"Failed to update provider node"};x(c.node),await bS(),am(!1)}catch(a){return console.log("Error updating provider node:",a),{error:"Failed to update provider node"}}return null},bU=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)}},bV=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)}},bW=async a=>{let b=ad[q];if(b){aS(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)}}},bX=async(a,b,c=bA)=>{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 bQ();else{let b=await a.json();alert(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},bY=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bQ()}catch(a){console.log("Error deleting alias:",a)}},bZ=async(a,b="llm",c=bI,d,e)=>{try{let f=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:c,id:a,type:b,...d?{caps:d}:{},...e?{transport:e}:{}})});if(f.ok)await bR();else{let a=await f.json();alert(a.error||"Failed to add custom model")}}catch(a){console.log("Error adding custom model:",a)}},b$=async(a,b="llm",c=bI)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});(await fetch(`/api/models/custom?${d}`,{method:"DELETE"})).ok&&await bR()}catch(a){console.log("Error deleting custom model:",a)}},b_=async()=>{if(bi)return;let a=s.find(a=>!1!==a.isActive);if(!a)return void alert((0,B.Tl)("Please add an active connection first"));bj(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,B.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,B.Tl)("No models returned"));let e=0,f=new Set(by.map(a=>a.id));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;at.some(a=>a.providerAlias===bI&&a.id===d&&"llm"===(a.kind||a.type||"llm"))||Object.values(ar).includes(`${bI}/${d}`)||f.has(d)||(await bZ(d,"llm",bI),e+=1)}0===e?alert((0,B.Tl)("All models already exist, no new models added")):alert((0,B.Tl)("Successfully added")+` ${e} `+(0,B.Tl)("models"))}catch(a){console.log("Error importing live models:",a),alert((0,B.Tl)("Error fetching models")+": "+a.message)}finally{bj(!1)}},b0=async()=>{if(bk)return;let a=s.find(a=>!1!==a.isActive);if(!a)return void alert((0,B.Tl)("Please add an active Cline connection first"));bl(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,B.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,B.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;b&&(at.some(a=>a.providerAlias===bI&&a.id===b&&"llm"===(a.kind||a.type||"llm"))||Object.values(ar).includes(`${bI}/${b}`)||(await bZ(b,"llm",bI),e+=1))}0===e?alert((0,B.Tl)("All models already exist, no new models added")):alert((0,B.Tl)("Successfully added")+` ${e} `+(0,B.Tl)("models"))}catch(a){console.log("Error importing Cline models:",a),alert((0,B.Tl)("Error fetching models")+": "+a.message)}finally{bl(!1)}},b1=async()=>{if(a7||0===s.length)return;let a=Object.fromEntries(s.map(a=>[a.id,{state:"queued",error:null}]));bh.current=!1,a8(!0),ba(!1),bc(null),be(a),bg({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(bh.current){bg({total:s.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=s[a];bc(d.id),be(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,be(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,be(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}bg({total:s.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<s.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{bc(null),a8(!1),ba(!1),bh.current=!1}},b2=async a=>{a4({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{a4(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)}}})},b3=()=>{bS(),I(!1)},b4=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 bS(),W(!1);return}Y(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),Y("Failed to save connection")}},b5=async a=>{try{(await fetch(`/api/providers/${ap.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await bS(),ak(!1))}catch(a){console.log("Error updating connection:",a)}},b6=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)}},b7=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 bS()}},b8=s.filter(a=>aF.includes(a.id)),b9=s.length>0&&aF.length===s.length;(()=>{if(0===b8.length)return;let a=new Set(b8.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return;let c=D.find(a=>a.id===b);return c?.name}})();let ca=()=>{aJ||ao(!1)},cb=async a=>{aK(!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 bS(),ao(!1)}finally{aK(!1)}},cc=a=>cb(s.map(b=>({connectionId:b.id,proxyPoolId:a}))),cd=(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,aF.includes(c)),onChange:()=>{var b;return b=a.id,void aG(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)(L,{connection:a,proxyPools:D,isOAuth:bu,isFirst:0===b,isLast:b===s.length-1,onMoveUp:()=>b7(b,b-1),onMoveDown:()=>b7(b,b+1),onToggleActive:b=>b6(a.id,b),autoPing:ad[q]&&"oauth"===a.authType?{isActive:!0===aR.connections[a.id]||aR.schedules?.[a.id]?.enabled===!0,reactiveOn:!0===aR.connections[a.id],provider:q,scheduleOn:aR.schedules?.[a.id]?.enabled===!0,scheduleSummary:(0,ab.JW)(aR.schedules?.[a.id]).join(" / "),onConfigure:()=>aU(a)}: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:()=>{aq(a),ak(!0)},onDelete:()=>b2(a.id),oneByOneStatus:bd[a.id]||null})})]},a.id)})}),ce=D.filter(a=>!0===a.isActive),cf=(0,d.jsx)(k.aF,{isOpen:an,onClose:ca,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=D.filter(a=>!0===a.isActive);return 0===a.length?void alert("No active proxy pools available."):cb(s.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:aJ||0===ce.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:()=>cc(null),disabled:aJ,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)"})]}),D.map(a=>(0,d.jsxs)("button",{onClick:()=>cc(a.id),disabled:aJ||!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))]}),aJ&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(k.$n,{onClick:ca,variant:"ghost",fullWidth:!0,disabled:aJ,children:"Cancel"})]})}),cg=async a=>{if(!aB.has(a)){aC(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:`${bI}/${a}`})}),c=await b.json();ay(b=>({...b,[a]:c.ok?"ok":"error"})),aA(c.ok?"":c.error||"Model not reachable")}catch{ay(b=>({...b,[a]:"error"})),aA("Network error")}finally{aC(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(!bs)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 ch=()=>bB&&bs.apiType?"responses"===bs.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":bC?"/providers/anthropic-m.png":(0,j.HY)(bs.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:`${bs.color}15`},children:av||!ch()?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:bs.color},children:bs.textIcon||bs.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.A,{src:ch(),alt:bs.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>{(0,j.Kw)(bs.id),aw(!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:bs.name}),(bs.notice?.apiKeyUrl||bs.notice?.signupUrl||bs.website)&&(0,d.jsxs)("a",{href:bs.notice?.apiKeyUrl||bs.notice?.signupUrl||bs.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"}),bs.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"]})]})]})]}),bs.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:bs.deprecationNotice})]}),bs.notice?.text&&!bs.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:bs.notice.text}),bs.notice.apiKeyUrl&&(0,d.jsx)("a",{href:bs.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 →"})]}),bD&&w&&(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:bC?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[bC?"Messages API":"responses"===w.apiType?"Responses API":"Chat Completions"," \xb7 ",(w.baseUrl||"").replace(/\/$/,""),"/",bC?"messages":"responses"===w.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:()=>am(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{a4({title:"Delete Compatible Node",message:`Delete this ${bC?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{a4(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"})]})]})}),bx&&(0,d.jsx)(k.gw,{providerId:q,title:"Proxy pool for connecting",description:"The OAuth connect flow itself calls Google endpoints. Route it through the selected proxy pool; the pool is then saved onto the new connection."}),bw?(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&&D.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>ao(!0),children:"Apply Proxy"}),s.length>0&&(0,d.jsxs)(d.Fragment,{children:[aF.length>0&&(0,d.jsxs)(k.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=aF.length;0!==a&&a4({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{a4(null);let a=0,b=[...aF];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))),aG([]),a>0&&alert(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",aF.length,")"]}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:b1,disabled:a7,children:a7?"Testing Connection One-by-One...":"Test Connection One-by-One"}),a7&&(0,d.jsx)(k.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{a7&&(bh.current=!0,ba(!0))},disabled:a9,children:a9?"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"===aL,onChange:a=>{let b=a?"round-robin":null,c=a?aN||"1":aN;a&&!aN&&aO("1"),aM(b),bU(b,c)}}),"round-robin"===aL&&(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:aN,onChange:a=>{var b;aO(b=a.target.value),bU("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:bu?"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"}),bE&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bF," or ",bG,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bE?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bp,children:bF}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bq,children:bG})]}):(0,d.jsxs)(d.Fragment,{children:[!bD&&_.w.has(q)&&(0,d.jsx)(_.A,{providerId:q,onConnected:bS}),!bD&&ac.has(q)&&(0,d.jsx)(aa,{providerId:q,onConnected:bS}),!bD&&"iflow"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>P(!0),children:"Cookie"}),"codex"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ag(!0),children:(0,B.Tl)("Bulk Add")}),"grok-cli"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ai(!0),children:(0,B.Tl)("Bulk Add")}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:br,children:bD?"Add API Key":"iflow"===q?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[bf&&(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: ",bf.total]}),(0,d.jsxs)("span",{children:["Completed: ",bf.completed]}),(0,d.jsxs)("span",{children:["Passed: ",bf.passed]}),(0,d.jsxs)("span",{children:["Failed: ",bf.failed]}),bf.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),a7&&bb&&(0,d.jsxs)("span",{children:["Running: ",s.find(a=>a.id===bb)?.name||bb]})]})}),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:b9,onChange:()=>{b9?aG([]):aG(s.map(a=>a.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),cd,!bD&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:[_.w.has(q)&&(0,d.jsx)(_.A,{providerId:q,onConnected:bS}),ac.has(q)&&(0,d.jsx)(aa,{providerId:q,onConnected:bS}),"iflow"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>P(!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:()=>ag(!0),title:(0,B.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,B.Tl)("Bulk Add")}),"grok-cli"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ai(!0),title:(0,B.Tl)("Bulk import Grok CLI accounts from JSON"),className:"w-full sm:w-auto",children:(0,B.Tl)("Bulk Add")}),bE?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bp,className:"w-full sm:w-auto",children:bF}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bq,className:"w-full sm:w-auto",children:bG})]}):(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:br,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsx)(Z,{providerId:q}),(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"}),bJ&&(0,d.jsx)("select",{value:aP,onChange:a=>{var b;aQ(b=a.target.value),bV(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:bJ.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),!bD&&(a=[...bz,...a_.filter(a=>!bz.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}).map(a=>a.id).filter(a=>!a1.includes(a)),(0,d.jsxs)("div",{className:"flex gap-2",children:[a1.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bP,children:"Active All"}),a.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bO(a),children:"Disable All"})]}))]}),!!az&&(0,d.jsxs)("div",{className:"mb-3",children:[(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:az}),/RegionError|hosted in China|regionNotAllowed/i.test(az)&&(c=(b="string"==typeof az?az:JSON.stringify(az)).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&&!!aZ&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:aZ}),(()=>{let a,b,c;if(bD)return(0,d.jsx)(H,{providerStorageAlias:bI,providerDisplayAlias:bK,modelAliases:ar,customModels:at,copied:bm,onCopy:bn,onDeleteAlias:bY,onAddCustomModel:a=>bZ(a,"llm",bI),onDeleteCustomModel:a=>b$(a,"llm",bI),connections:s,isAnthropic:bC});let e=[...bz,...a_.filter(a=>!bz.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}),f=new Set(a1),g=e.filter(a=>!f.has(a.id)),h=e.filter(a=>f.has(a.id)),i=(0,C.R)({customModels:at,modelAliases:ar,providerAlias:bI,builtInModels:bz,type:"llm"}),j=(0,C.o)(ar),k=(a,b)=>[...new Set([...j[a]||[],...j[b]||[]])];return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[i.map(a=>(0,d.jsx)(F,{model:{id:a.id,name:a.name},fullModel:`${bK}/${a.id}`,aliases:k(a.fullModel,`${q}/${a.id}`),copied:bm,onCopy:bn,onDeleteAlias:()=>{"custom"===a.source?b$(a.id,"llm",bI):bY(a.alias)},onRemoveAlias:bY,onAddAlias:b=>bX(a.id,b,bI),testStatus:ax[a.id],onTest:s.length>0||bw?()=>cg(a.id):void 0,isTesting:aB.has(a.id),isCustom:!0,isFree:!1,caps:r(`${bI}/${a.id}`),thinkingSuffix:bH(a.id)},`${a.source}-${a.fullModel}`)),g.map(a=>{let b=`${bI}/${a.id}`;return(0,d.jsx)(F,{model:a,fullModel:`${bK}/${a.id}`,aliases:k(b,`${q}/${a.id}`),copied:bm,onCopy:bn,onAddAlias:b=>bX(a.id,b,bI),onRemoveAlias:bY,testStatus:ax[a.id],onTest:s.length>0||bw?()=>cg(a.id):void 0,isTesting:aB.has(a.id),isFree:a.isFree,onDisable:()=>bM(a.id),caps:r(`${bI}/${a.id}`),thinkingSuffix:bH(a.id)},a.id)}),(0,d.jsxs)("button",{onClick:()=>aE(!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"]}),ae[q]&&s.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:b_,disabled:bi,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:bi?{animation:"spin 1s linear infinite"}:void 0,children:bi?"progress_activity":"download"}),bi?(0,B.Tl)("Fetching..."):(0,B.Tl)(ae[q])]}),("cline"===q||"clinepass"===q)&&s.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:b0,disabled:bk,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:bk?{animation:"spin 1s linear infinite"}:void 0,children:bk?"progress_activity":"download"}),bk?(0,B.Tl)("Fetching..."):(0,B.Tl)("Import from /models")]}),aV.length>0&&(a=new Set([...Object.values(ar),...i.map(a=>a.fullModel)]),b=new Set(bz.map(a=>a.id)),0===(c=aV.filter(c=>!a.has(`${bI}/${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 models:"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map(a=>(0,d.jsxs)("button",{onClick:async()=>{await bZ(a.id,"llm",bI)},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.contextLength?`${a.name} \xb7 ${(a.contextLength/1e3).toFixed(0)}k ctx`:a.name,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:()=>bN(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))})]})]})})()]}),cf,"kiro"===q?(0,d.jsx)(k.Mh,{isOpen:G,providerInfo:bs,onSuccess:b3,onClose:()=>I(!1)}):"cursor"===q?(0,d.jsx)(k.G9,{isOpen:G,onSuccess:b3,onClose:()=>I(!1)}):"zed"===q?(0,d.jsx)(k.TE,{isOpen:G,providerInfo:bs,onSuccess:b3,onClose:()=>I(!1)}):"gitlab"===q?(0,d.jsx)(k.vj,{isOpen:G,providerInfo:bs,onSuccess:b3,onClose:()=>I(!1)}):(0,d.jsx)(k.LF,{isOpen:G,provider:q,providerInfo:bs,onSuccess:b3,onClose:()=>I(!1)}),(0,d.jsx)(k.LH,{isOpen:J,onSuccess:b3,onClose:()=>K(!1)}),(0,d.jsx)(k.nm,{isOpen:R,onSuccess:b3,onClose:()=>T(!1)}),"iflow"===q&&(0,d.jsx)(k.vE,{isOpen:M,onSuccess:()=>{bS(),P(!1)},onClose:()=>P(!1)}),(0,d.jsx)(N,{isOpen:U,provider:q,providerName:bs.name,isCompatible:bD,isAnthropic:bC,authType:bs?.authType,authHint:bs?.authHint,website:bs?.website,proxyPools:D,error:X,existingNames:s.map(a=>a.name).filter(Boolean),onSave:b4,onBulkDone:bS,onClose:()=>{Y(""),W(!1)}}),(0,d.jsx)(k.wI,{isOpen:aj,connection:ap,proxyPools:D,onSave:b5,onClose:()=>ak(!1)}),bD&&(0,d.jsx)(O,{isOpen:al,node:w,onSave:bT,onClose:()=>am(!1),isAnthropic:bC}),!bD&&(0,d.jsx)(Q,{isOpen:aD,providerAlias:bI,providerDisplayAlias:bK,onSave:async(a,b,c)=>{await bZ(a,b?.stt?"stt":"llm",bI,b,c),aE(!1)},onClose:()=>aE(!1)}),"codex"===q&&(0,d.jsx)(S,{isOpen:af,onClose:()=>ag(!1),onSuccess:bS}),"grok-cli"===q&&(0,d.jsx)(V,{isOpen:ah,onClose:()=>ai(!1),onSuccess:bS}),aT&&(0,d.jsx)($.A,{isOpen:!!aT,onClose:()=>aU(null),connection:aT,reactive:!0===aR.connections[aT.id],schedule:aR.schedules?.[aT.id]||null,onSave:a=>((a,{reactive:b,schedule:c})=>{bW({...aR,connections:{...aR.connections,[a]:b},schedules:{...aR.schedules,[a]:c}})})(aT.id,a)}),(0,d.jsx)(k.uo,{isOpen:a5,onClose:()=>a6(!1),onConfirm:()=>{(a6(!1),bu)?bo():bq()},title:"Risk Notice",message:bs?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(k.uo,{isOpen:!!a3,onClose:()=>a4(null),onConfirm:a3?.onConfirm,title:a3?.title||"Confirm",message:a3?.message,variant:"danger"})]})}},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,11883))},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")},46193:a=>{"use strict";a.exports=require("node:string_decoder")},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")},54589:(a,b,c)=>{"use strict";function d(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}c.d(b,{JW:()=>i,Vm:()=>d,fB:()=>f,gy:()=>e,nz:()=>g});let e={anchor:"09:30",timezone:d(),windowHours:5,slotsPerDay:3};function f(a){let b=/^(\d{1,2}):(\d{2})$/.exec(String(a||"").trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:{hour:c,minute:d}}function g(a){return Math.max(1,Math.floor(24/a))}function h(a,b,c,d){let e="number"==typeof a?a:Number(a);return Number.isFinite(e)?Math.min(d,Math.max(c,e)):b}function i(a){let b=function(a){if(!a||!0!==a.enabled)return null;let b=f(a.anchor)||f(e.anchor),c=`${String(b.hour).padStart(2,"0")}:${String(b.minute).padStart(2,"0")}`,d=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(a.timezone)?e.timezone:a.timezone,i=h(a.windowHours,e.windowHours,.5,24),j=Math.round(h(a.slotsPerDay,e.slotsPerDay,1,g(i)));return{enabled:!0,anchor:c,timezone:d,windowHours:i,slotsPerDay:j}}(a);if(!b)return[];let{hour:c,minute:d}=f(b.anchor),i=60*c+d;return Array.from({length:b.slotsPerDay},(a,c)=>{let d=Math.round(i+c*b.windowHours*60)%1440;return`${String(Math.floor(d/60)).padStart(2,"0")}:${String(d%60).padStart(2,"0")}`})}},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},56020:(a,b,c)=>{"use strict";c.d(b,{A:()=>l});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412),i=c(71404),j=c(54589);let k=[{value:"off",label:"Off",icon:"block"},{value:"reset",label:"On reset",icon:"bolt"},{value:"schedule",label:"Schedule",icon:"schedule"}];function l({isOpen:a,onClose:b,onSave:c,connection:f,reactive:g=!1,schedule:m=null}){let[n,o]=(0,e.useState)(()=>({mode:m?.enabled===!0?"schedule":!0===g?"reset":"off",anchor:m?.anchor||j.gy.anchor,timezone:(0,j.Vm)(),windowHours:String(m?.windowHours??j.gy.windowHours),slotsPerDay:String(m?.slotsPerDay??j.gy.slotsPerDay)})),p=Number(n.windowHours),q=Number(n.slotsPerDay),r=!!(0,j.fB)(n.anchor),s=Number.isFinite(p)&&p>=.5&&p<=24,t=s?(0,j.nz)(p):24,u=Number.isInteger(q)&&q>=1&&q<=t,v=r&&s&&u,w="schedule"!==n.mode||v,x=v?(0,j.JW)({enabled:!0,...n,windowHours:p,slotsPerDay:q}):[],y=x.length&&s?(()=>{let{hour:a,minute:b}=(0,j.fB)(n.anchor),c=Math.round(60*a+b+q*p*60)%1440;return`${String(Math.floor(c/60)).padStart(2,"0")}:${String(c%60).padStart(2,"0")}`})():"",z=a=>o(b=>({...b,...a}));return(0,d.jsx)(h.aF,{isOpen:a,onClose:b,title:"Auto-ping settings",size:"lg",footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.$n,{variant:"secondary",onClick:b,children:"Cancel"}),(0,d.jsx)(h.$n,{onClick:()=>{w&&(c({reactive:"reset"===n.mode,schedule:"schedule"===n.mode?{enabled:!0,anchor:n.anchor,timezone:n.timezone,windowHours:p,slotsPerDay:q}:{enabled:!1}}),b())},disabled:!w,children:"Save"})]}),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Configure automated quota pings",f?.name?` for ${f.name}`:""," — pick one mode."]}),(0,d.jsx)("div",{className:"grid grid-cols-3 gap-1 rounded-[10px] bg-surface-2 p-1",children:k.map(a=>{let b=n.mode===a.value;return(0,d.jsxs)("button",{type:"button",onClick:()=>z({mode:a.value}),className:(0,i.cn)("flex h-9 items-center justify-center gap-1.5 rounded-[8px] px-3 text-sm font-medium transition-all",b?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] leading-none",children:a.icon}),(0,d.jsx)("span",{children:a.label})]},a.value)})}),"reset"===n.mode&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Pings right after the 5h quota window resets, so a new window starts immediately."}),"schedule"===n.mode&&(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Pings at fixed local times so the 5h windows align with your workday."}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[(0,d.jsx)(h.pd,{label:"Anchor time",type:"time",value:n.anchor,onChange:a=>z({anchor:a.target.value}),error:r?"":"Use HH:MM",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,d.jsx)(h.pd,{label:"Window (hours)",type:"number",min:"0.5",max:"24",step:"0.5",value:n.windowHours,onChange:a=>z({windowHours:a.target.value}),error:s?"":"0.5 – 24",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,d.jsx)(h.pd,{label:"Pings per day",type:"number",min:"1",max:String(t),step:"1",value:n.slotsPerDay,onChange:a=>z({slotsPerDay:a.target.value}),error:u?"":`1 – ${t}`,hint:u?`Max ${t}`:"",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"})]}),x.length>0&&(0,d.jsxs)("div",{className:"rounded-[10px] bg-surface-2 px-3 py-2.5",children:[(0,d.jsxs)("p",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:["Daily slots (",n.timezone,")"]}),(0,d.jsx)("p",{className:"mt-1 text-sm font-medium text-text-main",children:x.join(" → ")}),(0,d.jsxs)("p",{className:"mt-1 text-xs text-text-muted",children:["Covers ",x[0]," – ",y,", then pauses until ",x[0]," next day."]})]})]})]})})}l.propTypes={isOpen:g().bool.isRequired,onClose:g().func.isRequired,onSave:g().func.isRequired,connection:g().object,reactive:g().bool,schedule:g().object}},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")},72271:a=>{"use strict";a.exports=require("@aws-sdk/credential-providers")},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")},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")},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")},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")},96140:(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}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1260,2430,3459,2760,1220,9100,4478,6070,1329,915,6457,4123,5026,6777,412,1248,341],()=>b(b.s=96140));module.exports=c})();