zevairouter 1.1.76 → 1.1.77

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 (528) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +16 -16
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/prerender-manifest.json +3 -3
  6. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  63. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  64. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  65. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  66. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  67. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  68. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  69. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  70. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  71. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  72. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  73. package/cli/app/.next-cli-build/server/app/_not-found.rsc +2 -2
  74. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +2 -2
  75. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  76. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  77. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  78. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  79. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  80. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  81. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  82. package/cli/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  83. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  84. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  85. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  86. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  87. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  88. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  89. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  90. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  91. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  92. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  93. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  94. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  95. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  96. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  97. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  98. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  99. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
  100. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  101. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  102. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  103. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
  104. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  105. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  106. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  108. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  110. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  114. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  116. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  119. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  120. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  121. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js.nft.json +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
  124. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  126. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  129. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js +2 -2
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js.nft.json +1 -1
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/context/test/route.js.nft.json +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/dashboard/models/route.js.nft.json +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/json-import/route.js.nft.json +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/helper/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/models/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-cn/discover-models/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-intl/discover-models/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/providers/openrouter/discover-models/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  323. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/v1/audio/music/route.js.nft.json +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js.nft.json +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  369. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  370. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  371. package/cli/app/.next-cli-build/server/app/callback.rsc +2 -2
  372. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +2 -2
  373. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  374. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
  375. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  376. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +2 -2
  377. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +2 -2
  378. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +2 -2
  379. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  380. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  381. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +2 -2
  382. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  383. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +2 -2
  384. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  385. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  386. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +2 -2
  387. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  388. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +2 -2
  389. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  390. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  391. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +2 -2
  392. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  393. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +2 -2
  394. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  395. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  396. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +2 -2
  397. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +2 -2
  398. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +2 -2
  399. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  400. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  401. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +2 -2
  402. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  403. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +2 -2
  404. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  405. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  406. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +2 -2
  407. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  408. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +2 -2
  409. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  410. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  411. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +2 -2
  412. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  413. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +2 -2
  414. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  415. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  416. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +2 -2
  417. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +2 -2
  418. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +2 -2
  419. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  420. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  421. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +2 -2
  422. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  423. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +2 -2
  424. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  425. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  426. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +2 -2
  427. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  428. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +2 -2
  429. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  430. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  431. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +2 -2
  432. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  433. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +2 -2
  434. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  435. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  436. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +2 -2
  437. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  438. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +2 -2
  439. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  440. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  441. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +2 -2
  442. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  443. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +2 -2
  444. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  445. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  446. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +2 -2
  447. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +2 -2
  448. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +2 -2
  449. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  450. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  451. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +2 -2
  452. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  453. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +2 -2
  454. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  455. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  456. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +2 -2
  457. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  458. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +2 -2
  459. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  460. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  461. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +2 -2
  462. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  463. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +2 -2
  464. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  465. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  466. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +2 -2
  467. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  468. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +2 -2
  469. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  470. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  471. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +2 -2
  472. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  473. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +2 -2
  474. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  475. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  476. package/cli/app/.next-cli-build/server/app/dashboard.rsc +2 -2
  477. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  478. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +2 -2
  479. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  480. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  481. package/cli/app/.next-cli-build/server/app/index.rsc +2 -2
  482. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  483. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +2 -2
  484. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  485. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  486. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  487. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  488. package/cli/app/.next-cli-build/server/app/landing.rsc +2 -2
  489. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +2 -2
  490. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  491. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  492. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  493. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  494. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  495. package/cli/app/.next-cli-build/server/app/login.rsc +2 -2
  496. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +2 -2
  497. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  498. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  499. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  500. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  501. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  502. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  503. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
  504. package/cli/app/.next-cli-build/server/app-paths-manifest.json +16 -16
  505. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  506. package/cli/app/.next-cli-build/server/chunks/1757.js +1 -1
  507. package/cli/app/.next-cli-build/server/chunks/267.js +1 -1
  508. package/cli/app/.next-cli-build/server/chunks/5626.js +1 -1
  509. package/cli/app/.next-cli-build/server/chunks/5744.js +1 -1
  510. package/cli/app/.next-cli-build/server/chunks/5819.js +2 -2
  511. package/cli/app/.next-cli-build/server/chunks/6166.js +1 -1
  512. package/cli/app/.next-cli-build/server/chunks/7135.js +1 -1
  513. package/cli/app/.next-cli-build/server/chunks/7319.js +3 -3
  514. package/cli/app/.next-cli-build/server/chunks/7364.js +1 -1
  515. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  516. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  517. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  518. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  519. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  520. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  521. package/cli/app/.next-cli-build/static/chunks/{620-94eaf9dcbc5ea4fe.js → 620-2db1857d007ca5bd.js} +1 -1
  522. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-eaad1b510f9b926c.js → page-c2b77eabb14f7642.js} +1 -1
  523. package/cli/app/CHANGELOG.md +6 -0
  524. package/cli/app/package.json +1 -1
  525. package/cli/package.json +1 -1
  526. package/package.json +1 -1
  527. /package/cli/app/.next-cli-build/static/{YktOFiQmRJQkoRZnJqPIX → -IZrnioGweTnx1RYx9xU1}/_buildManifest.js +0 -0
  528. /package/cli/app/.next-cli-build/static/{YktOFiQmRJQkoRZnJqPIX → -IZrnioGweTnx1RYx9xU1}/_ssgManifest.js +0 -0
@@ -12,4 +12,4 @@ sk-key-only-auto-named`;function W({isOpen:a,provider:b,providerName:c,isCompati
12
12
  "refresh_token": "rt_...",
13
13
  "email": "user@example.com"
14
14
  }
15
- ]`;function aC({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[k,l]=(0,e.useState)(null),m=()=>{h||(l(null),b())},n=async()=>{let a;try{a=JSON.parse(f)}catch{l({error:"Paste a JSON account or an array of accounts"});return}i(!0),l(null);try{let b=await fetch("/api/oauth/grok-cli/json-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),d=await b.json();l(d.error?{error:d.error}:d),!d.error&&d.success>0&&c?.()}catch(a){l({error:a.message})}finally{i(!1)}},o=k&&!k.error?`Imported ${k.success}. Failed ${k.failed}.`:null;return(0,d.jsxs)(j.aF,{isOpen:a,onClose:m,title:"Import Grok CLI accounts",size:"lg",footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{variant:"secondary",onClick:m,disabled:h,children:"Close"}),(0,d.jsx)(j.$n,{onClick:n,disabled:h||!f.trim(),children:h?"Importing...":"Import"})]}),children:[(0,d.jsx)("p",{className:"mb-3 text-xs text-text-muted",children:"Paste one account or an array. Snake_case and camelCase are both accepted. A refresh token is refreshed before it is stored. The response never returns the tokens. Line import stays on the automation page."}),(0,d.jsx)("textarea",{className:"w-full rounded-lg border border-border bg-background p-3 font-mono text-xs text-text-main placeholder:text-text-muted focus:border-primary focus:outline-none",rows:8,placeholder:aB,value:f,onChange:a=>g(a.target.value),disabled:h}),k?(0,d.jsx)("div",{className:`mt-3 rounded-lg p-3 text-xs ${k.error?"bg-red-500/10 text-red-400":"bg-green-500/10 text-green-400"}`,children:k.error||o}):null]})}aC.propTypes={isOpen:B().bool.isRequired,onClose:B().func.isRequired,onSuccess:B().func};let aD=["host","content-length","content-type","connection","transfer-encoding","authorization","cookie"],aE=/^[A-Za-z0-9-]+$/;function aF({providerId:a}){let b=(0,y.i)(),[c,f]=(0,e.useState)(!1),[g,h]=(0,e.useState)([{name:"",value:""}]),[i,k]=(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(!aE.test(d))return void b.error(`Invalid header name: ${d}`);if(aD.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)(j.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)(j.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}aF.propTypes={providerId:B().string.isRequired};var aG=c(41365);let aH="$HOME/.zevai/bin/zevai-aistudio-waa",aI=`OUT="${aH}" bash "$(npm root -g)/zevairouter/vendor/aistudio-waa/build.sh"`,aJ=`OUT="${aH}" bash vendor/aistudio-waa/build.sh`;function aK({value:a,copied:b,onCopy:c,id:e}){return(0,d.jsxs)("div",{className:"flex items-start gap-2 rounded-lg bg-sidebar px-3 py-2",children:[(0,d.jsx)("code",{className:"min-w-0 flex-1 whitespace-pre-wrap break-all text-xs font-mono text-text-main",children:a}),(0,d.jsxs)("button",{type:"button",onClick:()=>c(a,e),className:"inline-flex shrink-0 items-center gap-1 rounded-md bg-primary px-2 py-1 text-[11px] font-medium text-white hover:bg-primary/90","aria-label":`Copy: ${a}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:b===e?"check":"content_copy"}),b===e?"Copied":"Copy"]})]})}function aL({n:a,title:b,children:c,variant:e="missing"}){return(0,d.jsxs)("li",{className:"flex gap-3",children:[(0,d.jsx)("span",{className:`flex size-6 shrink-0 items-center justify-center rounded-full text-xs font-semibold ${"ready"===e?"bg-emerald-500/15 text-emerald-800 dark:text-emerald-300":"bg-amber-500/15 text-amber-800 dark:text-amber-300"}`,children:a}),(0,d.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,d.jsx)("p",{className:"ready"===e?"text-sm font-medium text-emerald-900 dark:text-emerald-200":"text-sm font-medium text-amber-900 dark:text-amber-200",children:b}),c]})]})}function aM({status:a,copied:b,copy:c,variant:e}){let f=a?.buildCommand||aI,g=a?.npmCommand||aI,h=a?.checkoutCommand||aJ,i="ready"===e?"text-xs text-emerald-800/80 dark:text-emerald-300/80":"text-xs text-amber-800 dark:text-amber-300";return(0,d.jsxs)("ol",{className:"space-y-4",children:[(0,d.jsxs)(aL,{n:1,variant:e,title:"Install prerequisites",children:[(0,d.jsx)("p",{className:i,children:"You need Go, git, curl, and a C/C++ compiler, plus about 1 GB of disk. The first build takes several minutes; later builds are much faster."}),(0,d.jsx)("p",{className:i,children:"macOS (git and curl come with the Command Line Tools):"}),(0,d.jsx)(aK,{id:"prereq-mac-clt",copied:b,onCopy:c,value:"xcode-select --install"}),(0,d.jsx)(aK,{id:"prereq-mac-go",copied:b,onCopy:c,value:"brew install go"}),(0,d.jsx)("p",{className:i,children:"Debian / Ubuntu:"}),(0,d.jsx)(aK,{id:"prereq-deb",copied:b,onCopy:c,value:"sudo apt install golang git curl build-essential"})]}),(0,d.jsxs)(aL,{n:2,variant:e,title:"Build the helper",children:[(0,d.jsxs)("p",{className:i,children:["Run this command. It writes the binary to the exact path this router looks for",a?.binPath?(0,d.jsxs)(d.Fragment,{children:[" (",(0,d.jsx)("code",{className:"font-mono",children:a.binPath}),")"]}):null,"."]}),(0,d.jsx)(aK,{id:"build-cmd",copied:b,onCopy:c,value:f}),g!==f&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:i,children:"From an npm global install you can also run:"}),(0,d.jsx)(aK,{id:"build-npm",copied:b,onCopy:c,value:g})]}),h!==f&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:i,children:"From a git checkout of the repo:"}),(0,d.jsx)(aK,{id:"build-checkout",copied:b,onCopy:c,value:h})]}),!a?.binPath&&(0,d.jsxs)("p",{className:i,children:["If this router uses a custom ",(0,d.jsx)("code",{className:"font-mono",children:"DATA_DIR"}),", set"," ",(0,d.jsx)("code",{className:"font-mono",children:"OUT=$DATA_DIR/bin/zevai-aistudio-waa"}),"."]})]}),(0,d.jsx)(aL,{n:3,variant:e,title:"No router restart needed",children:(0,d.jsx)("p",{className:i,children:"The helper starts on the next AI Studio request. Stay on this page and click Check again after the build finishes."})}),(0,d.jsx)(aL,{n:4,variant:e,title:"Add a connection",children:(0,d.jsxs)("p",{className:i,children:["Use ",(0,d.jsx)("strong",{children:"Login via Browser"}),", or paste the storage-state JSON of a signed-in aistudio.google.com session."]})})]})}function aN(){let[a,b]=(0,e.useState)(null),[c,f]=(0,e.useState)(!1),[g,h]=(0,e.useState)(!0),[i,j]=(0,e.useState)(!1),[k,l]=(0,e.useState)(0),{copied:m,copy:n}=(0,p.C)(2e3);if(g&&!a&&!c)return null;let o=c||!a?.present;return(0,d.jsx)("div",{className:"space-y-2",children:o?(0,d.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-3",role:"status",children:[(0,d.jsxs)("div",{className:"flex items-start gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined mt-0.5 shrink-0 text-[16px] text-amber-500",children:"warning"}),(0,d.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,d.jsx)("p",{className:"text-xs font-semibold text-amber-900 dark:text-amber-200",children:c?"Could not check the AI Studio helper":"AI Studio helper is not built yet"}),(0,d.jsx)("p",{className:"text-xs leading-relaxed text-amber-800 dark:text-amber-300",children:"The npm package ships the helper source only; the binary is not included. Build it once on this machine before adding a connection."})]}),(0,d.jsxs)("button",{type:"button",onClick:()=>l(a=>a+1),className:"inline-flex shrink-0 items-center gap-1 rounded-md border border-amber-500/40 px-2 py-1 text-[11px] font-medium text-amber-900 hover:bg-amber-500/10 dark:text-amber-200",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"refresh"}),"Check again"]})]}),(0,d.jsx)(aM,{status:a,copied:m,copy:n,variant:"missing"})]}):(0,d.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-emerald-500/30 bg-emerald-500/10 px-3 py-2",role:"status",children:[(0,d.jsxs)("div",{className:"flex items-start gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined mt-0.5 shrink-0 text-[16px] text-emerald-500",children:"check_circle"}),(0,d.jsxs)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-emerald-800 dark:text-emerald-300",children:["Helper ready at ",(0,d.jsx)("code",{className:"font-mono",children:a.binPath}),". No rebuild needed unless you update the router."]}),(0,d.jsx)("button",{type:"button",onClick:()=>j(a=>!a),className:"inline-flex shrink-0 items-center gap-1 rounded-md border border-emerald-500/40 px-2 py-1 text-[11px] font-medium text-emerald-800 hover:bg-emerald-500/10 dark:text-emerald-200","aria-expanded":i,children:i?"Hide setup":"Setup steps"}),(0,d.jsxs)("button",{type:"button",onClick:()=>l(a=>a+1),className:"inline-flex shrink-0 items-center gap-1 rounded-md border border-emerald-500/40 px-2 py-1 text-[11px] font-medium text-emerald-800 hover:bg-emerald-500/10 dark:text-emerald-200",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"refresh"}),"Check again"]})]}),i&&(0,d.jsx)(aM,{status:a,copied:m,copy:n,variant:"ready"})]})})}aK.propTypes={value:B().string.isRequired,copied:B().string,onCopy:B().func.isRequired,id:B().string.isRequired},aL.propTypes={n:B().number.isRequired,title:B().string.isRequired,children:B().node,variant:B().oneOf(["missing","ready"])},aM.propTypes={status:B().shape({binPath:B().string,buildCommand:B().string,npmCommand:B().string,checkoutCommand:B().string}),copied:B().string,copy:B().func.isRequired,variant:B().oneOf(["missing","ready"])};let aO={claude:"claudeAutoPing",codex:"codexAutoPing"};function aP(a){return aG.w.has(a)||"codex"===a||"grok-cli"===a}function aQ({providerId:a,onWebLoginConnected:b,onBulkImport:c}){let e=[];return(aG.w.has(a)&&e.push((0,d.jsx)(aG.A,{providerId:a,onConnected:b},"web-login")),("codex"===a||"grok-cli"===a)&&e.push((0,d.jsx)(j.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:c,className:"w-full sm:w-auto",children:"Bulk Add"},"bulk-add")),e.length)?(0,d.jsx)(d.Fragment,{children:e}):null}function aR(a){return["completed","cancelled","failed"].includes(a)}async function aS(a){let b=new AbortController,c=window.setTimeout(()=>b.abort(),8e3);try{let c=await fetch(a,{cache:"no-store",signal:b.signal}),d=null;try{d=await c.json()}catch{d=null}return{response:c,data:d}}finally{window.clearTimeout(c)}}function aT(){let a,b=(0,f.useParams)(),c=(0,f.useRouter)(),g=b.id,[l,A]=(0,e.useState)([]),[B,D]=(0,e.useState)(!0),[E,G]=(0,e.useState)(""),[H,I]=(0,e.useState)(null),[J,L]=(0,e.useState)([]),[M,N]=(0,e.useState)(!1),[O,P]=(0,e.useState)(!1),[Q,R]=(0,e.useState)(!1),[T,U]=(0,e.useState)(!1),[V,Z]=(0,e.useState)(!1),[$,_]=(0,e.useState)(!1),[aa,ac]=(0,e.useState)(!1),[ad,ae]=(0,e.useState)(""),[ag,ah]=(0,e.useState)(!1),[ai,aj]=(0,e.useState)(!1),[am,an]=(0,e.useState)(!1),[ao,ap]=(0,e.useState)(null),[aq,as]=(0,e.useState)({}),[at,au]=(0,e.useState)([]),[av,aw]=(0,e.useState)(!1),[az,aB]=(0,e.useState)({}),[aD,aE]=(0,e.useState)({}),[aG,aH]=(0,e.useState)(()=>new Set),[aI,aJ]=(0,e.useState)(!1),[aK,aL]=(0,e.useState)(!1),[aM,aT]=(0,e.useState)(!1),[aU,aV]=(0,e.useState)(!1),[aW,aX]=(0,e.useState)(!1),[aY,aZ]=(0,e.useState)(!1),[a$,a_]=(0,e.useState)(!1),[a0,a1]=(0,e.useState)([]),[a2,a3]=(0,e.useState)("__none__"),[a4,a5]=(0,e.useState)(!1),[a6,a7]=(0,e.useState)(!1),[a8,a9]=(0,e.useState)(null),[ba,bb]=(0,e.useState)(""),[bc,bd]=(0,e.useState)("auto"),[be,bf]=(0,e.useState)({}),[bg,bh]=(0,e.useState)({}),[bi,bj]=(0,e.useState)(null),[bk,bl]=(0,e.useState)([]),[bm,bn]=(0,e.useState)([]),[bo,bp]=(0,e.useState)([]),[bq,br]=(0,e.useState)(null),[bs,bt]=(0,e.useState)(!1),[bu,bv]=(0,e.useState)(null),[bw,bx]=(0,e.useState)(!1),[by,bz]=(0,e.useState)(!1),[bA,bB]=(0,e.useState)(null),[bC,bD]=(0,e.useState)({}),[bE,bF]=(0,e.useState)(null),bG=(0,e.useRef)(!1),bH=(0,e.useRef)(null),bI=(0,e.useRef)("1"),[bJ,bK]=(0,e.useState)(!1),[bL,bM]=(0,e.useState)(null),[bN,bO]=(0,e.useState)(""),[bP,bQ]=(0,e.useState)(1),[bR,bS]=(0,e.useState)(20),[bT,bU]=(0,e.useState)("all"),[bV,bW]=(0,e.useState)(""),[bX,bY]=(0,e.useState)(1),[bZ,b$]=(0,e.useState)(20),{copied:b_,copy:b0}=(0,p.C)(),b1=(0,e.useRef)(0),b2=(0,e.useRef)([]),b3=(0,e.useRef)(!0),b4=(0,e.useRef)(null),b5=(0,y.i)(a=>a.error),b6=(0,e.useCallback)(()=>{bM(null),bO(""),b1.current=0},[]),b7=()=>{N(!0)},b8=()=>{"kiro"===g&&bL?.jobId&&aR(bL.status)&&b6(),c.push(n(g))},b9=H?{id:H.id,name:H.name||("anthropic-compatible"===H.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===H.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===H.type?"AC":"OC",apiType:H.apiType,baseUrl:H.baseUrl,type:H.type}:k.zN[g]||k.fg[g]||k.IS[g]||k.nJ[g]||k.br[g],ca=b9?.authModes||[],cb=!!k.zN[g]||!!k.IS[g]||ca.includes("oauth"),cc=!!k.fg[g]||ca.includes("apikey"),cd=!!k.IS[g]?.noAuth,ce=(0,r.F)("kiro"===g),cf="aistudio"===g?l.filter(a=>!1!==a.isActive).map(a=>`${a.id}:${a.updatedAt||""}`).join(","):"",cg=(0,s.M)("aistudio"===g,cf),ch=(0,s.Q)(g,cg,(0,o.KC)(g)),ci="kiro"===g?ce:ch,cj=(0,k.wG)(g),ck=(0,k.mq)(g),cl=(0,k.gb)(g),cm=ck||cl,cn=m(g),co=function({providerId:a,providerInfo:b,isOAuth:c,supportsApiKeyAuth:d,isCompatible:e}){if(!b||b.noAuth||b.authModes?.includes("none"))return[];let f=[];for(let g of(c&&x(f,"oauth"),(d||e||"cookie"===b.authType||!c)&&x(f,"apikey"),v[a]||[]))x(f,g);return f.map(b=>{let c=u[b];return c?{...c,...w[a]?.[b]}:null}).filter(Boolean)}({providerId:g,providerInfo:b9,isOAuth:cb,supportsApiKeyAuth:cc,isCompatible:ck||cl}),cp=function(a,{specializedChooser:b=!1}={}){return a.length?b?{type:"specialized"}:1===a.length?{type:"method",methodId:a[0].id}:{type:"chooser"}:{type:"none"}}(co,{specializedChooser:"kiro"===g}),cq=co.map(a=>"quota-cookie"===a.id&&0===l.length?{...a,disabled:!0,description:"Add a CodeBuddy connection before attaching its quota cookie."}:a),cr=a=>{if(!bc||"auto"===bc)return null;let b=(0,z.kl)(g,a);return b&&b.includes(bc)?bc:null},cs=cm?g:cj,ct=(()=>{let a=new Set,b=new Set,c=c=>{if(!c||b.has(c))return;b.add(c);let d=(0,z.kl)(g,c);d&&d.forEach(b=>{"none"!==b&&a.add(b)})};for(let a of ci)c(a.id);for(let a of bm)c(a.id);for(let a of at)a.providerAlias===cs&&"llm"===(a.kind||a.type||"llm")&&c(a.id);return a.size?["auto",...a]:null})(),cu=cm?H?.prefix||g:cj,cv=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(cs)}`,{cache:"no-store"}),b=await a.json();a.ok&&bp(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[cs]),cw=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:cs,ids:[a]})})).ok&&await cv()}catch(a){console.log("Error disabling model:",a)}},cx=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(cs)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await cv()}catch(a){console.log("Error enabling model:",a)}},cy=async a=>{a.length&&br({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{br(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:cs,ids:a})})).ok&&await cv()}catch(a){console.log("Error disabling all models:",a)}}})},cz=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(cs)}`,{method:"DELETE"})).ok&&await cv()}catch(a){console.log("Error enabling all models:",a)}},cA=(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)}},[]),cB=(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)}},[]),cC=(0,e.useCallback)(async()=>{try{G("");let[a,b,c,d]=await Promise.allSettled([aS("/api/providers"),aS("/api/provider-nodes"),aS("/api/proxy-pools?isActive=true"),aS("/api/settings")]),e="fulfilled"===a.status?a.value.response:null,f="fulfilled"===a.status?a.value.data:{},h="fulfilled"===b.status?b.value.response:null,i="fulfilled"===b.status?b.value.data:{},j="fulfilled"===c.status?c.value.response:null,l="fulfilled"===c.status?c.value.data:{},m="fulfilled"===d.status?d.value.response:null,n=m?.ok&&d.value.data||{};if(e?.ok){let a=(f.connections||[]).filter(a=>a.provider===g);b2.current=a,A(a)}else G("Connections could not be loaded.");j?.ok&&L(l.proxyPools||[]);let o=(n.providerStrategies||{})[g]||{};a9(o.fallbackStrategy||null),bb(null!=o.stickyRoundRobinLimit?String(o.stickyRoundRobinLimit):"1"),bI.current=null!=o.stickyRoundRobinLimit?String(o.stickyRoundRobinLimit):"1";let p=(n.providerThinking||{})[g]||{};bd(p.mode||"auto");let q=aO[g];if(bf(q&&n?.[q]?.connections||{}),bh(q&&n?.[q]?.schedules||{}),h?.ok){let a=(i.nodes||[]).find(a=>a.id===g)||null;if(!a&&((0,k.mq)(g)||(0,k.gb)(g)))for(let b=0;b<3;b+=1){if(await new Promise(a=>setTimeout(a,150)),!b3.current)return;let{response:b,data:c}=await aS("/api/provider-nodes");if(!b3.current)return;if(b.ok&&(a=(c.nodes||[]).find(a=>a.id===g)||null))break}I(a)}}catch(a){console.log("Error fetching connections:",a),b3.current&&G("Connections could not be loaded.")}finally{b3.current&&D(!1)}},[g]),cD=async a=>{try{let b=await fetch(`/api/provider-nodes/${g}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok&&(I(c.node),await cC(),aj(!1))}catch(a){console.log("Error updating provider node:",a)}},cE=async(a,b)=>{try{let c=await fetch("/api/settings",{cache:"no-store"}),d=(c.ok?await c.json():{}).providerStrategies||{},e={};a&&(e.fallbackStrategy=a),"round-robin"===a&&""!==b&&(e.stickyRoundRobinLimit=Number(b)||3);let f={...d};0===Object.keys(e).length?delete f[g]:f[g]=e,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:f})})}catch(a){console.log("Error saving provider strategy:",a)}},cF=async a=>{try{let b=await fetch("/api/settings",{cache:"no-store"}),c={...(b.ok?await b.json():{}).providerThinking||{}};a&&"auto"!==a?c[g]={mode:a}:delete c[g],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:c})})}catch(a){console.log("Error saving thinking config:",a)}},cG=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerSpecificData:{paidSubscription:b}})})).ok&&A(c=>c.map(c=>c.id===a?{...c,providerSpecificData:{...c.providerSpecificData,paidSubscription:b}}:c))}catch(a){console.log("Error updating paid flag:",a)}},cH=async(a,b)=>{let c=aO[g];if(!c)return;let d={...be,[a]:b};bf(d);try{let a=await fetch("/api/settings",{cache:"no-store"}),b={...(a.ok?await a.json():{})[c]||{},connections:d};if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[c]:b})})).ok)throw Error("Failed to save auto-ping setting")}catch(a){bf(be),console.log("Error saving auto-ping config:",a)}},cI=async({reactive:a,schedule:b})=>{let c=aO[g];if(!bi||!c)return;let d={...be,[bi.id]:a},e={...bg,[bi.id]:b};bf(d),bh(e);try{let a=await fetch("/api/settings",{cache:"no-store"}),b=a.ok?await a.json():{};if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[c]:{...b[c]||{},connections:d,schedules:e}})})).ok)throw Error("Failed to save auto-ping schedule")}catch(a){bf(be),bh(bg),console.log("Error saving auto-ping schedule:",a)}},cJ=async(a,b,c=cj)=>{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 cB();else{let b=await a.json();alert(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},cK=async(a,b="llm")=>{try{let c=new URLSearchParams({providerAlias:cs,id:a,type:b});(await fetch(`/api/models/custom?${c}`,{method:"DELETE"})).ok&&(await cA(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(a){console.log("Error deleting custom model:",a)}},cL=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await cB()}catch(a){console.log("Error deleting alias:",a)}},cM=async()=>{if(bJ)return;let a=l.find(a=>!1!==a.isActive);if(!a)return void alert((0,q.Tl)("Please add an active Qoder connection first"));bK(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,q.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,q.Tl)("No models returned"));let e={...aq},f=0;for(let a of d){let b=a.id||a.name;if(!b)continue;let c=b.replace(/^qoder\//,""),d=`${cs}/${c}`;!Object.values(e).includes(d)&&(e[c]||(await cJ(c,c,cs),e[c]=d,f+=1))}0===f?alert((0,q.Tl)("All models already exist, no new models added")):alert((0,q.Tl)("Successfully added")+` ${f} `+(0,q.Tl)("models"))}catch(a){console.log("Error importing Qoder models:",a),alert((0,q.Tl)("Error fetching models")+": "+a.message)}finally{bK(!1)}},cN=async()=>{let a=[...l];if(bw||0===a.length)return;let b=Object.fromEntries(a.map(a=>[a.id,{state:"queued",error:null}]));bG.current=!1,bx(!0),bz(!1),bB(null),bD(b),bF({total:a.length,completed:0,passed:0,failed:0,stopped:!1});let c=0,d=0;try{for(let b=0;b<a.length;b+=1){if(bG.current){bF({total:a.length,completed:b,passed:c,failed:d,stopped:!0});break}let e=a[b];if(!b2.current.some(a=>a.id===e.id)){bD(a=>({...a,[e.id]:{state:"skipped",error:null}})),bF({total:a.length,completed:b+1,passed:c,failed:d,stopped:!1});continue}bB(e.id),bD(a=>({...a,[e.id]:{state:"testing",error:null}}));try{let a=await fetch(`/api/providers/${e.id}/test`,{method:"POST"}),b=await a.json(),f=!!b.valid;f?c+=1:d+=1,bD(a=>({...a,[e.id]:{state:f?"success":"failed",error:f?b.warning||null:b.error||null}}))}catch(a){d+=1,bD(b=>({...b,[e.id]:{state:"failed",error:a.message||"Test failed"}}))}bF({total:a.length,completed:b+1,passed:c,failed:d,stopped:!1}),b<a.length-1&&await new Promise(a=>setTimeout(a,250))}}finally{bB(null),bx(!1),bz(!1),bG.current=!1}},cO=async a=>{br({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{br(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&A(l.filter(b=>b.id!==a))}catch(a){console.log("Error deleting connection:",a)}}})},cP=()=>{cC(),N(!1)},cQ=(0,e.useCallback)(a=>{bM(a),bO("")},[b6]),cR=async a=>{ae("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:g,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await cC(),ac(!1);return}ae(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),ae("Failed to save connection")}},cS=async a=>{try{(await fetch(`/api/providers/${ao.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await cC(),ah(!1))}catch(a){console.log("Error updating connection:",a)}},cT=async(a,b)=>{try{let c=await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})});if(c.ok){let d=await c.json().catch(()=>null);A(c=>c.map(c=>c.id===a?{...c,isActive:b,...d?.connection||{}}:c))}}catch(a){console.log("Error updating connection status:",a)}},cU=async(a,b)=>{let c=[...l];[c[a],c[b]]=[c[b],c[a]],A(c);try{let[d,e]=await Promise.all([fetch(`/api/providers/${c[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a+1})}),fetch(`/api/providers/${c[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b+1})})]);d.ok&&e.ok||(console.log("Priority swap rejected:",d.status,e.status),await cC())}catch(a){console.log("Error swapping priority:",a),await cC()}},cV=(0,e.useMemo)(()=>{let a=bV.trim().toLowerCase();return l.filter(b=>!!(0,t.i2)(b,bT)&&(!a||[b.name,b.email,b.id,b.account,b.username,b.label,b.authType,b.notes,b.proxyPoolId].filter(Boolean).join(" ").toLowerCase().includes(a)))},[l,bT,bV]),cW=(0,e.useMemo)(()=>t.gJ.reduce((a,b)=>(a[b.id]="all"===b.id?l.length:l.filter(a=>(0,t.i2)(a,b.id)).length,a),{}),[l]),cX=a0.filter(a=>l.some(b=>b.id===a)),cY=l.filter(a=>cX.includes(a.id)),cZ="codebuddy"===g||"codebuddy-cn"===g?(cY.length>0?cY:l).map(a=>a.id):[],c$=cV.length>0&&cV.every(a=>cX.includes(a.id)),c_=a=>{switch(a){case"oauth":b7();return;case"apikey":ae(""),ac(!0);return;case"cookie":U(!0);return;case"quota-cookie":l.length>1&&0===cY.length?alert("Select the CodeBuddy connection(s) that should use this quota cookie first."):Z(!0);return;default:b5(`Unsupported connection method: ${a}`,"Add Connection")}},c0=a=>{null!==b4.current&&window.cancelAnimationFrame(b4.current),b4.current=window.requestAnimationFrame(()=>{b4.current=null,c_(a)})},c1=()=>{"specialized"===cp.type?b7():"method"===cp.type?c_(cp.methodId):"chooser"===cp.type&&_(!0)},c2=a=>{_(!1),c0(a)},c3=(()=>{if(0===cY.length)return"";let a=new Set(cY.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return"All selected currently unbound";let c=J.find(a=>a.id===b);return`All selected currently bound to ${c?.name||b}`}return"Selected connections have mixed proxy bindings"})(),c4=()=>{a4||an(!1)},c5=async a=>{a5(!0);try{let b=0,c=0,d=Array.from({length:Math.min(8,a.length)},async()=>{for(;c<a.length;){let d=c;c+=1;let{connectionId:e,proxyPoolId:f}=a[d];try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:f})})).ok||(b+=1)}catch(a){console.log("Error applying proxy for",e,a),b+=1}}});await Promise.all(d),b>0&&alert(`Updated with ${b} failed request(s).`),await cC(),an(!1)}finally{a5(!1)}},c6=a=>c5(cY.map(b=>({connectionId:b.id,proxyPoolId:a}))),c7=a=>{let b="gsuite"===a?"GSuite (non-Gmail)":"Gmail (@gmail.com)";br({title:`Delete ${b}`,message:`Delete ALL ${b} accounts for this provider? This cannot be undone.`,onConfirm:async()=>{br(null);try{(await fetch("/api/providers/bulk-delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b9?.id||g,emailFilter:a})})).ok&&(a1([]),await cC())}catch(a){console.error("bulk delete error:",a)}}})},c8=Math.max(1,Math.ceil(cV.length/bR)),c9=Math.min(bP,c8),da=cV.slice((c9-1)*bR,c9*bR),db=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:da.map((a,b)=>{let c,e=l.findIndex(b=>b.id===a.id);return(0,d.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,d.jsx)("label",{className:"flex w-8 shrink-0 items-center justify-center",children:(0,d.jsx)("input",{type:"checkbox",checked:(c=a.id,cX.includes(c)),onChange:()=>{var b;return b=a.id,void a1(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"size-4 rounded border-black/20 dark:border-white/20","aria-label":`Select ${a.name||a.email||a.id}`})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)(K,{connection:a,proxyPools:J,isOAuth:cb,isFirst:0===e,isLast:e===l.length-1,onMoveUp:()=>cU(e,e-1),onMoveDown:()=>cU(e,e+1),onToggleActive:b=>cT(a.id,b),autoPingEnabled:!0===be[a.id],onToggleAutoPing:aO[g]&&"oauth"===a.authType?b=>cH(a.id,b):void 0,autoPingScheduled:bg[a.id]?.enabled===!0,onOpenAutoPingSchedule:aO[g]&&"oauth"===a.authType?()=>bj(a):void 0,onTogglePaid:"antigravity"===g?b=>cG(a.id,b):void 0,onUpdateProxy:async b=>{try{(await fetch(`/api/providers/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&A(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:()=>{ap(a),ah(!0)},onDelete:()=>cO(a.id),oneByOneStatus:bC[a.id]||null})})]},a.id)})}),dc=J.filter(a=>!0===a.isActive),dd=(0,d.jsx)(j.aF,{isOpen:am,onClose:c4,title:`Apply Proxy (${cY.length} selected)`,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=J.filter(a=>!0===a.isActive);return 0===a.length?void alert("No active proxy pools available."):c5(cY.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:a4||0===dc.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:()=>c6(null),disabled:a4,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)"})]}),J.map(a=>(0,d.jsxs)("button",{onClick:()=>c6(a.id),disabled:a4||!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))]}),a4&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(j.$n,{onClick:c4,variant:"ghost",fullWidth:!0,disabled:a4,children:"Cancel"})]})}),de=async a=>{aH(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:`${cs}/${a}`})}),c=await b.json();aB(b=>({...b,[a]:c.ok?"ok":"error"})),aE(b=>({...b,[a]:c.ok?"":c.error||"Model not reachable"}))}catch{aB(b=>({...b,[a]:"error"})),aE(b=>({...b,[a]:"Network error"}))}finally{aH(b=>{let c=new Set(b);return c.delete(a),c})}};return B?(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(j.Qv,{}),(0,d.jsx)(j.Qv,{})]}):b9?(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:`${b9.color}15`},children:av?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:b9.color},children:b9.textIcon||b9.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.A,{src:ck&&b9.apiType?"responses"===b9.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":cl?"/providers/anthropic-m.png":`/providers/${b9.id}.png`,alt:b9.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>aw(!0)})}),(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:b9.name}),(b9.notice?.apiKeyUrl||b9.notice?.signupUrl||b9.website)&&(0,d.jsxs)("a",{href:b9.notice?.apiKeyUrl||b9.notice?.signupUrl||b9.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"}),b9.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:[l.length," connection",1===l.length?"":"s"]})]})]})]}),b9.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:b9.deprecationNotice})]}),b9.notice?.text&&!b9.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:b9.notice.text}),b9.notice.apiKeyUrl&&(0,d.jsx)("a",{href:b9.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 →"})]}),"aistudio"===g&&(0,d.jsx)(aN,{}),cm&&H&&(0,d.jsx)(j.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:cl?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[cl?"Messages API":"responses"===H.apiType?"Responses API":"Chat Completions"," \xb7 ",(H.baseUrl||"").replace(/\/$/,""),"/",cl?"messages":"responses"===H.apiType?"responses":"chat/completions"]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:()=>{ae(""),ac(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>aj(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{br({title:"Delete Compatible Node",message:`Delete this ${cl?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{br(null);try{(await fetch(`/api/provider-nodes/${g}`,{method:"DELETE"})).ok&&c.push("/dashboard/providers")}catch(a){console.log("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),cd?(0,d.jsx)(j.gw,{providerId:g}):(0,d.jsxs)(j.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:[l.length>0&&J.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>{if(0===cY.length)return;let a=[...new Set(cY.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"))];a3(1===a.length?a[0]:"__none__"),an(!0)},disabled:0===cY.length,children:"Apply Proxy"}),l.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:cN,disabled:bw,children:bw?"Testing Connection One-by-One...":"Test Connection One-by-One"}),bw&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{bw&&(bG.current=!0,bz(!0))},disabled:by,children:by?"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)(j.lM,{checked:"round-robin"===a8,onChange:a=>{let b=a?"round-robin":null,c=a?ba||"1":ba;a&&!ba&&bb("1"),bI.current=c,bH.current&&(clearTimeout(bH.current),bH.current=null),a9(b),cE(b,c)}}),"round-robin"===a8&&(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:ba,onChange:a=>{var b;bb(b=a.target.value),bI.current=b,bH.current&&clearTimeout(bH.current),bH.current=setTimeout(()=>{cE("round-robin",bI.current)},500)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),l.length>0&&(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 rounded-lg border border-black/5 bg-black/[0.02] p-3 dark:border-white/5 dark:bg-white/[0.02]",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-text-muted",children:[(0,d.jsx)("input",{type:"checkbox",checked:c$,onChange:()=>{c$?a1(a=>a.filter(a=>!cV.some(b=>b.id===a))):a1(a=>Array.from(new Set([...a,...cV.map(a=>a.id)])))},className:"size-4 rounded border-black/20 dark:border-white/20"}),c$?"Unselect visible":"Select visible"]}),(0,d.jsxs)(j.Ex,{variant:"default",children:[cV.length," visible"]}),cY.length>0&&(0,d.jsxs)(j.Ex,{variant:"default",children:[cY.length," selected"]}),c3&&(0,d.jsx)("span",{className:"text-xs text-text-muted",children:c3}),cY.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",onClick:()=>{a1([]),a3("__none__")},children:"Clear"}),cY.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(j.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:()=>{0!==cY.length&&br({title:"Delete Selected Connections",message:`Delete ${cY.length} selected connection(s)? This permanently removes the selected accounts.`,onConfirm:async()=>{br(null);let a=[],b=0;for(let c of cY)try{(await fetch(`/api/providers/${c.id}`,{method:"DELETE"})).ok?a.push(c.id):b+=1}catch(a){console.log("Error deleting selected connection:",a),b+=1}a1(b=>b.filter(b=>!a.includes(b))),b>0&&alert(`Deleted ${a.length} connection(s); ${b} failed.`),await cC()}})},children:["Delete Selected (",cY.length,")"]}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"domain",onClick:()=>c7("gsuite"),children:"Delete GSuite"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"mail",onClick:()=>c7("gmail"),children:"Delete Gmail"})]})]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.gJ.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>bU(a.id),className:`rounded-full border px-2.5 py-1 text-xs transition-colors ${bT===a.id?"border-primary/50 bg-primary/10 text-primary":"border-border text-text-muted hover:border-primary/30 hover:text-text-main"}`,children:[a.label,(0,d.jsx)("span",{className:"ml-1 text-[10px] opacity-70",children:cW[a.id]||0})]},a.id))}),l.length>=20&&(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("span",{className:"material-symbols-outlined pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-[16px] text-text-subtle",children:"search"}),(0,d.jsx)("input",{type:"search",value:bV,onChange:a=>bW(a.target.value),placeholder:`Search ${l.length} connections (email, name, id)…`,className:"w-full rounded-lg border border-border bg-background py-2 pl-8 pr-3 text-xs text-text-main outline-none placeholder:text-text-subtle focus:border-primary/40"})]})]}),E?(0,d.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-red-500/30 bg-red-500/10 px-4 py-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px] text-red-500",children:"error"}),(0,d.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:E})]}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"refresh",onClick:()=>{D(!0),cC()},children:"Retry"})]}):0===l.length?(0,d.jsxs)(d.Fragment,{children:[(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:cb?"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"}),"kiro"!==g&&co.some(a=>"oauth"===a.id)&&co.some(a=>"apikey"===a.id)?(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",co.find(a=>"oauth"===a.id)?.label||"OAuth"," or ",co.find(a=>"apikey"===a.id)?.label||"API Key","."]}):co.length>1?(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Add Connection lists every available authentication method."}):null]})]}),(0,d.jsx)(ay,{showAutomation:cn,showAddConnection:"none"!==cp.type,onOpenAutomation:b8,onAddConnection:c1,methods:"kiro"===g?null:cq,onSelectMethod:"kiro"===g?null:c2,extra:aP(g)?(0,d.jsx)(aQ,{providerId:g,onWebLoginConnected:cC,onBulkImport:()=>"codex"===g?P(!0):R(!0)}):null})]}),"kiro"===g&&bL?.jobId&&(0,d.jsxs)("div",{className:"mt-4 flex flex-col gap-3 rounded-lg border border-primary/20 bg-primary/[0.06] px-4 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Bulk import progress is still available"}),(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Status: ",bL.status," | Success: ",bL.summary?.success||0," | Running: ",bL.summary?.running||0," | Queued: ",bL.summary?.queued||0]})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.$n,{size:"sm",icon:"monitoring",variant:"secondary",onClick:()=>c.push(n("kiro")),children:"Resume Bulk Progress"}),aR(bL.status)&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",icon:"close",onClick:b6,children:"Clear"})]})]}),"kiro"===g&&!bL?.jobId&&bN&&(0,d.jsx)("div",{className:"mt-4 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-700 dark:border-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:bN})]}):(0,d.jsxs)(d.Fragment,{children:[bE&&(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: ",bE.total]}),(0,d.jsxs)("span",{children:["Completed: ",bE.completed]}),(0,d.jsxs)("span",{children:["Passed: ",bE.passed]}),(0,d.jsxs)("span",{children:["Failed: ",bE.failed]}),bE.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),bw&&bA&&(0,d.jsxs)("span",{children:["Running: ",l.find(a=>a.id===bA)?.name||bA]})]})}),"kiro"===g&&bL?.jobId&&(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 rounded-lg border border-primary/20 bg-primary/[0.06] px-4 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Bulk import progress is still available"}),(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Status: ",bL.status," | Success: ",bL.summary?.success||0," | Running: ",bL.summary?.running||0," | Queued: ",bL.summary?.queued||0]})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.$n,{size:"sm",icon:"monitoring",variant:"secondary",onClick:()=>c.push(n("kiro")),children:"Resume Bulk Progress"}),aR(bL.status)&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",icon:"close",onClick:b6,children:"Clear"})]})]}),"kiro"===g&&!bL?.jobId&&bN&&(0,d.jsx)("div",{className:"mb-4 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-700 dark:border-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:bN}),db,"kiro"===g&&c8>1&&(0,d.jsxs)("div",{className:"mt-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Page ",c9," of ",c8," • Showing ",(c9-1)*bR+1,"-",Math.min(c9*bR,cV.length)," of ",cV.length," connections"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",disabled:c9<=1,onClick:()=>bQ(a=>Math.max(1,a-1)),children:"Previous"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",disabled:c9>=c8,onClick:()=>bQ(a=>Math.min(c8,a+1)),children:"Next"})]})]}),"kiro"!==g&&cV.length>0&&(0,d.jsx)(j.dK,{currentPage:c9,pageSize:bR,totalItems:cV.length,onPageChange:bQ,onPageSizeChange:a=>{bS(a),bQ(1)},className:"mt-2"}),l.length>0&&0===cV.length&&(0,d.jsx)("div",{className:"py-8 text-center text-sm text-text-muted",children:"No connections match this status filter."}),(0,d.jsx)("div",{className:"mt-4",children:(0,d.jsx)(ay,{showAutomation:cn,showAddConnection:"none"!==cp.type,onOpenAutomation:b8,onAddConnection:c1,methods:"kiro"===g?null:cq,onSelectMethod:"kiro"===g?null:c2,extra:aP(g)?(0,d.jsx)(aQ,{providerId:g,onWebLoginConnected:cC,onBulkImport:()=>"codex"===g?P(!0):R(!0)}):null})})]})]}),(0,d.jsx)(aF,{providerId:g}),(0,d.jsxs)(j.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"}),ct&&(0,d.jsx)("select",{value:bc,onChange:a=>{var b;bd(b=a.target.value),cF(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:ct.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),!cm&&(a=[...ci,...bm.filter(a=>!ci.some(b=>b.id===a.id))].filter(a=>!a.type||"llm"===a.type).map(a=>a.id).filter(a=>!bo.includes(a)),(0,d.jsxs)("div",{className:"flex gap-2",children:[bo.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:cz,children:"Active All"}),a.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>cy(a),children:"Disable All"})]}))]}),Object.values(aD).some(Boolean)&&(0,d.jsx)("div",{className:"mb-3 flex flex-col gap-1",children:Object.entries(aD).filter(([,a])=>!!a).map(([a,b])=>(0,d.jsxs)("p",{className:"text-xs text-red-500 break-words",children:[a,": ",b]},a))}),(()=>{let a,b,c;if(cm)return(0,d.jsx)(F,{providerStorageAlias:cs,providerDisplayAlias:cu,modelAliases:aq,copied:b_,onCopy:b0,onSetAlias:cJ,onDeleteAlias:cL,onAliasesChanged:cB,connections:l,isAnthropic:cl});let e=[...ci,...bm.filter(a=>!ci.some(b=>b.id===a.id))].filter(a=>!a.type||"llm"===a.type),f=new Set(bo),h=e.filter(a=>!f.has(a.id)),i=e.filter(a=>f.has(a.id)),k=function({customModels:a=[],modelAliases:b={},providerAlias:c,builtInModels:d=[],type:e="llm",includeLegacyAliases:f=!0}){let g=new Set(d.map(a=>a.id)),h=new Set,i=[];for(let b of a){if(!b?.id||b.providerAlias!==c)continue;let a=b?.kind||b?.type||"llm";if(e&&a!==e||g.has(b.id))continue;let d=`${c}/${b.id}`;h.has(d)||(h.add(d),i.push({id:b.id,name:b.name||b.id,fullModel:d,source:"custom",type:a}))}if(!f)return i;let j=`${c}/`;for(let[a,c]of Object.entries(b||{})){if("string"!=typeof c||!c.startsWith(j))continue;let b=c.slice(j.length);!b||g.has(b)||h.has(c)||(h.add(c),i.push({id:b,alias:a,fullModel:c,source:"legacyAlias",type:e||"llm"}))}return i}({customModels:at,modelAliases:aq,providerAlias:cs,builtInModels:ci,type:"llm"}),m=Math.min(bX,Math.max(1,Math.ceil(h.length/bZ))),n=h.slice((m-1)*bZ,m*bZ);return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[k.map(a=>(0,d.jsx)(C,{model:{id:a.id,name:a.name},fullModel:`${cu}/${a.id}`,alias:a.alias,copied:b_,onCopy:b0,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?cK(a.id,a.type||"llm"):cL(a.alias)},testStatus:az[a.id],onTest:l.length>0||cd?()=>de(a.id):void 0,isTesting:aG.has(a.id),isCustom:!0,isFree:!1,thinkingSuffix:cr(a.id)},`${a.source}-${a.fullModel}`)),n.map(a=>{let b=`${cs}/${a.id}`,c=`${g}/${a.id}`,e=Object.entries(aq).find(([,a])=>a===b||a===c)?.[0];return(0,d.jsx)(C,{model:a,fullModel:`${cu}/${a.id}`,alias:e,copied:b_,onCopy:b0,onSetAlias:b=>cJ(a.id,b,cs),onDeleteAlias:()=>cL(e),testStatus:az[a.id],onTest:l.length>0||cd?()=>de(a.id):void 0,isTesting:aG.has(a.id),isFree:a.isFree,onDisable:()=>cw(a.id),thinkingSuffix:cr(a.id)},a.id)}),h.length>bZ&&(0,d.jsx)("div",{className:"w-full",children:(0,d.jsx)(j.dK,{currentPage:m,pageSize:bZ,totalItems:h.length,onPageChange:bY,onPageSizeChange:a=>{b$(a),bY(1)}})}),(0,d.jsxs)("button",{onClick:()=>aJ(!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"]}),"codebuddy"===g&&(0,d.jsxs)("button",{onClick:()=>aL(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-cyan-500/50 px-3 py-2 text-xs text-cyan-700 transition-colors hover:border-cyan-500 hover:bg-cyan-500/[0.07] dark:text-cyan-300 sm:w-auto",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Discover Models"]}),("codebuddy-intl"===g||"codebuddy-cn"===g)&&(0,d.jsxs)("button",{onClick:()=>aT(!0),className:"live-probe-button",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"openrouter"===g&&(0,d.jsxs)("button",{type:"button",onClick:()=>aX(!0),className:"live-probe-button",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"opencode"===g&&(0,d.jsxs)("button",{onClick:()=>aV(!0),className:"live-probe-button",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"kiro"===g&&(0,d.jsxs)("button",{onClick:()=>aZ(!0),className:"live-probe-button",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"cloudflare-ai"===g&&(0,d.jsxs)("button",{onClick:()=>a_(!0),className:"live-probe-button",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"qoder"===g&&l.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:cM,disabled:bJ,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:bJ?{animation:"spin 1s linear infinite"}:void 0,children:bJ?"progress_activity":"download"}),bJ?(0,q.Tl)("Fetching..."):(0,q.Tl)("Fetch Qoder Models")]}),bk.length>0&&(a=new Set(Object.values(aq)),b=new Set(ci.map(a=>a.id)),0===(c=bk.filter(c=>!a.has(`${cs}/${c.id}`)&&!b.has(c.id))).length?null:(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map(a=>(0,d.jsxs)("button",{onClick:async()=>{let b=a.id.split("/").pop();await cJ(a.id,b,cs)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${a.name} \xb7 ${(a.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id.split("/").pop()]},a.id))})]})),i.length>0&&(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",i.length,"):"]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:i.map(a=>(0,d.jsxs)("button",{onClick:()=>cx(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))})]})]})})()]}),am&&dd,$&&(0,d.jsx)(j.mz,{isOpen:!0,providerName:b9.name,methods:cq,onSelect:c2,onClose:()=>_(!1)}),"codex"===g&&(0,d.jsx)(aA,{isOpen:O,onClose:()=>P(!1),onSuccess:cC}),"grok-cli"===g&&(0,d.jsx)(aC,{isOpen:Q,onClose:()=>R(!1),onSuccess:cC}),M&&("kiro"===g?(0,d.jsx)(j.Mh,{isOpen:!0,providerInfo:b9,onSuccess:cP,onRefresh:cC,initialBulkJobId:bL?.jobId||null,onBulkJobChange:cQ,onClose:()=>N(!1)}):"cursor"===g?(0,d.jsx)(j.G9,{isOpen:!0,onSuccess:cP,onClose:()=>N(!1)}):"gitlab"===g?(0,d.jsx)(j.vj,{isOpen:!0,providerInfo:b9,onSuccess:cP,onClose:()=>N(!1)}):"xiaomi-mimo"===g?(0,d.jsx)(j.LH,{isOpen:!0,onSuccess:cP,onClose:()=>N(!1)}):(0,d.jsx)(j.LF,{isOpen:!0,provider:g,providerInfo:b9,onSuccess:cP,onClose:()=>N(!1)})),"iflow"===g&&T&&(0,d.jsx)(j.vE,{isOpen:!0,onSuccess:()=>{cC(),U(!1)},onClose:()=>U(!1)}),("codebuddy"===g||"codebuddy-cn"===g)&&V&&(0,d.jsx)(j.xl,{isOpen:!0,connectionIds:cZ,endpoint:"codebuddy-cn"===g?"/api/oauth/codebuddy-cn/quota-cookie":"/api/oauth/codebuddy/quota-cookie",onSuccess:()=>{cC(),Z(!1)},onClose:()=>Z(!1)}),aa&&(0,d.jsx)(W,{isOpen:!0,provider:g,providerName:b9.name,isCompatible:cm,isAnthropic:cl,authType:b9?.authType,authHint:b9?.authHint,website:b9?.website,proxyPools:J,existingNames:l.map(a=>a.name).filter(Boolean),error:ad,onSave:cR,onBulkDone:cC,onClose:()=>{ae(""),ac(!1)}}),ag&&ao&&(0,d.jsx)(j.wI,{isOpen:!0,connection:ao,proxyPools:J,onSave:cS,onClose:()=>ah(!1)}),cm&&ai&&(0,d.jsx)(X,{isOpen:!0,node:H,onSave:cD,onClose:()=>aj(!1),isAnthropic:cl}),!cm&&aI&&(0,d.jsx)(Y,{isOpen:!0,providerAlias:cs,providerDisplayAlias:cu,onSave:async a=>{let b=b9?.passthroughModels?a.split("/").pop():a;await cJ(a,b,cs),aJ(!1)},onClose:()=>aJ(!1)}),"codebuddy"===g&&aK&&(0,d.jsx)(ab,{isOpen:!0,connections:l,onModelsAdded:async a=>{for(let b of a)await cJ(b.id,b.id,"cb");await cB(),await cA()},onClose:()=>aL(!1)}),("codebuddy-intl"===g||"codebuddy-cn"===g)&&aM&&(0,d.jsx)(af,{isOpen:!0,providerId:g,connections:l,onModelsAdded:async a=>{let b="codebuddy-cn"===g?"cb-cn":"cbai";for(let c of a)await cJ(c.id,c.id,b);await cB(),await cA()},onClose:()=>aT(!1)}),"openrouter"===g&&aW&&(0,d.jsx)(al.A,{isOpen:!0,kind:"llm",connections:l,onModelsAdded:async a=>{for(let b of a)await cJ(b.id,b.id.split("/").pop(),"openrouter");await cB(),await cA()},onClose:()=>aX(!1)}),"opencode"===g&&aU&&(0,d.jsx)(ak,{isOpen:!0,onModelsAdded:async a=>{for(let b of a)await cJ(b.id,b.id,"oc");await cB(),await cA()},onClose:()=>aV(!1)}),"kiro"===g&&aY&&(0,d.jsx)(ar,{isOpen:!0,connections:l,onClose:()=>aZ(!1)}),"cloudflare-ai"===g&&a$&&(0,d.jsx)(ax,{isOpen:!0,connections:l,onModelsAdded:async a=>{for(let b of a)await cJ(b.id,b.id,cj);await cB()},onClose:()=>a_(!1)}),bi&&(0,d.jsx)(S,{isOpen:!0,connection:bi,reactive:!0===be[bi.id],schedule:bg[bi.id]||null,onClose:()=>bj(null),onSave:cI}),bs&&(0,d.jsx)(j.uo,{isOpen:!0,onClose:()=>bt(!1),onConfirm:()=>{bt(!1),bv(null),c0(bu||"oauth")},title:"Risk Notice",message:b9?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),bq&&(0,d.jsx)(j.uo,{isOpen:!0,onClose:()=>{a6||br(null)},onConfirm:async()=>{if(a6)return;let a=bq?.onConfirm;if(a){a7(!0);try{await a()}finally{a7(!1)}}},title:bq?.title||"Confirm",message:bq?.message,variant:"danger",loading:a6})]}):(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"})]})}},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},49858:(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,32059))),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))),"/zevairouter-build/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,"/zevairouter-build/src/app/(dashboard)/layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/zevairouter-build/src/app/layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,w=(0,e.H)({tree:v,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),x=w.__next_app__,y=w.routeModule,z=w.handler},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},58962:(a,b,c)=>{"use strict";c.d(b,{x6:()=>d.fetchJson,E2:()=>e,gs:()=>f});var d=c(86819);function e(a){if(!a)return null;let b=a.match(/\b([45]\d{2})\b/);return b?b[1]:"ERR"}function f(a){if(!a)return"";let b=Math.floor((Date.now()-new Date(a).getTime())/6e4);if(b<1)return"just now";if(b<60)return`${b}m ago`;let c=Math.floor(b/60);if(c<24)return`${c}h ago`;let d=Math.floor(c/24);return`${d}d ago`}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},75901:(a,b,c)=>{Promise.resolve().then(c.bind(c,44062))},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")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86819:(a,b,c)=>{"use strict";c.d(b,{fetchJson:()=>e});let d={"Content-Type":"application/json"};async function e(a,b={}){let{body:c,headers:f,...g}=b,h={...g,headers:{...d,...f}};void 0!==c&&"string"!=typeof c?h.body=JSON.stringify(c):void 0!==c&&(h.body=c);let i=await fetch(a,h),j=await i.text(),k=null;if(j)try{k=JSON.parse(j)}catch{let b=Error(`Non-JSON response from ${a} (HTTP ${i.status})`);throw b.status=i.status,b.rawBody=j.slice(0,300),b}if(!i.ok){let a=k&&(k.error?.message||k.error||k.message)||`Request failed (HTTP ${i.status})`,b=Error("string"==typeof a?a:`HTTP ${i.status}`);throw b.status=i.status,b.data=k,b}return k}e.get=(a,b)=>e(a,{...b,method:"GET"}),e.post=(a,b,c)=>e(a,{...c,method:"POST",body:b}),e.put=(a,b,c)=>e(a,{...c,method:"PUT",body:b}),e.patch=(a,b,c)=>e(a,{...c,method:"PATCH",body:b}),e.del=(a,b)=>e(a,{...b,method:"DELETE"})},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},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 \"/zevairouter-build/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.")},"/zevairouter-build/src/app/(dashboard)/dashboard/providers/[id]/page.js","default")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,7774,2430,940,2760,5905,4452,4686,4549,7973,24,5024,9548,7404,9188,267,412,2228,4073],()=>b(b.s=49858));module.exports=c})();
15
+ ]`;function aC({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[k,l]=(0,e.useState)(null),m=()=>{h||(l(null),b())},n=async()=>{let a;try{a=JSON.parse(f)}catch{l({error:"Paste a JSON account or an array of accounts"});return}i(!0),l(null);try{let b=await fetch("/api/oauth/grok-cli/json-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),d=await b.json();l(d.error?{error:d.error}:d),!d.error&&d.success>0&&c?.()}catch(a){l({error:a.message})}finally{i(!1)}},o=k&&!k.error?`Imported ${k.success}. Failed ${k.failed}.`:null;return(0,d.jsxs)(j.aF,{isOpen:a,onClose:m,title:"Import Grok CLI accounts",size:"lg",footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{variant:"secondary",onClick:m,disabled:h,children:"Close"}),(0,d.jsx)(j.$n,{onClick:n,disabled:h||!f.trim(),children:h?"Importing...":"Import"})]}),children:[(0,d.jsx)("p",{className:"mb-3 text-xs text-text-muted",children:"Paste one account or an array. Snake_case and camelCase are both accepted. A refresh token is refreshed before it is stored. The response never returns the tokens. Line import stays on the automation page."}),(0,d.jsx)("textarea",{className:"w-full rounded-lg border border-border bg-background p-3 font-mono text-xs text-text-main placeholder:text-text-muted focus:border-primary focus:outline-none",rows:8,placeholder:aB,value:f,onChange:a=>g(a.target.value),disabled:h}),k?(0,d.jsx)("div",{className:`mt-3 rounded-lg p-3 text-xs ${k.error?"bg-red-500/10 text-red-400":"bg-green-500/10 text-green-400"}`,children:k.error||o}):null]})}aC.propTypes={isOpen:B().bool.isRequired,onClose:B().func.isRequired,onSuccess:B().func};let aD=["host","content-length","content-type","connection","transfer-encoding","authorization","cookie"],aE=/^[A-Za-z0-9-]+$/;function aF({providerId:a}){let b=(0,y.i)(),[c,f]=(0,e.useState)(!1),[g,h]=(0,e.useState)([{name:"",value:""}]),[i,k]=(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(!aE.test(d))return void b.error(`Invalid header name: ${d}`);if(aD.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,d.jsxs)(j.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)(j.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"})]})]})]})]})}aF.propTypes={providerId:B().string.isRequired};var aG=c(41365);let aH="$HOME/.zevai/bin/zevai-aistudio-waa",aI=`OUT="${aH}" bash "$(npm root -g)/zevairouter/vendor/aistudio-waa/build.sh"`,aJ=`OUT="${aH}" bash vendor/aistudio-waa/build.sh`;function aK({value:a,copied:b,onCopy:c,id:e}){return(0,d.jsxs)("div",{className:"flex items-start gap-2 rounded-lg bg-sidebar px-3 py-2",children:[(0,d.jsx)("code",{className:"min-w-0 flex-1 whitespace-pre-wrap break-all text-xs font-mono text-text-main",children:a}),(0,d.jsxs)("button",{type:"button",onClick:()=>c(a,e),className:"inline-flex shrink-0 items-center gap-1 rounded-md bg-primary px-2 py-1 text-[11px] font-medium text-white hover:bg-primary/90","aria-label":`Copy: ${a}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:b===e?"check":"content_copy"}),b===e?"Copied":"Copy"]})]})}function aL({n:a,title:b,children:c,variant:e="missing"}){return(0,d.jsxs)("li",{className:"flex gap-3",children:[(0,d.jsx)("span",{className:`flex size-6 shrink-0 items-center justify-center rounded-full text-xs font-semibold ${"ready"===e?"bg-emerald-500/15 text-emerald-800 dark:text-emerald-300":"bg-amber-500/15 text-amber-800 dark:text-amber-300"}`,children:a}),(0,d.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,d.jsx)("p",{className:"ready"===e?"text-sm font-medium text-emerald-900 dark:text-emerald-200":"text-sm font-medium text-amber-900 dark:text-amber-200",children:b}),c]})]})}function aM({status:a,copied:b,copy:c,variant:e}){let f=a?.buildCommand||aI,g=a?.npmCommand||aI,h=a?.checkoutCommand||aJ,i="ready"===e?"text-xs text-emerald-800/80 dark:text-emerald-300/80":"text-xs text-amber-800 dark:text-amber-300";return(0,d.jsxs)("ol",{className:"space-y-4",children:[(0,d.jsxs)(aL,{n:1,variant:e,title:"Install prerequisites",children:[(0,d.jsx)("p",{className:i,children:"You need Go, git, curl, and a C/C++ compiler, plus about 1 GB of disk. The first build takes several minutes; later builds are much faster."}),(0,d.jsx)("p",{className:i,children:"macOS (git and curl come with the Command Line Tools):"}),(0,d.jsx)(aK,{id:"prereq-mac-clt",copied:b,onCopy:c,value:"xcode-select --install"}),(0,d.jsx)(aK,{id:"prereq-mac-go",copied:b,onCopy:c,value:"brew install go"}),(0,d.jsx)("p",{className:i,children:"Debian / Ubuntu:"}),(0,d.jsx)(aK,{id:"prereq-deb",copied:b,onCopy:c,value:"sudo apt install golang git curl build-essential"})]}),(0,d.jsxs)(aL,{n:2,variant:e,title:"Build the helper",children:[(0,d.jsxs)("p",{className:i,children:["Run this command. It writes the binary to the exact path this router looks for",a?.binPath?(0,d.jsxs)(d.Fragment,{children:[" (",(0,d.jsx)("code",{className:"font-mono",children:a.binPath}),")"]}):null,"."]}),(0,d.jsx)(aK,{id:"build-cmd",copied:b,onCopy:c,value:f}),g!==f&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:i,children:"From an npm global install you can also run:"}),(0,d.jsx)(aK,{id:"build-npm",copied:b,onCopy:c,value:g})]}),h!==f&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:i,children:"From a git checkout of the repo:"}),(0,d.jsx)(aK,{id:"build-checkout",copied:b,onCopy:c,value:h})]}),!a?.binPath&&(0,d.jsxs)("p",{className:i,children:["If this router uses a custom ",(0,d.jsx)("code",{className:"font-mono",children:"DATA_DIR"}),", set"," ",(0,d.jsx)("code",{className:"font-mono",children:"OUT=$DATA_DIR/bin/zevai-aistudio-waa"}),"."]})]}),(0,d.jsx)(aL,{n:3,variant:e,title:"No router restart needed",children:(0,d.jsx)("p",{className:i,children:"The helper starts on the next AI Studio request. Stay on this page and click Check again after the build finishes."})}),(0,d.jsx)(aL,{n:4,variant:e,title:"Add a connection",children:(0,d.jsxs)("p",{className:i,children:["Use ",(0,d.jsx)("strong",{children:"Login via Browser"}),", or paste the storage-state JSON of a signed-in aistudio.google.com session."]})})]})}function aN(){let[a,b]=(0,e.useState)(null),[c,f]=(0,e.useState)(!1),[g,h]=(0,e.useState)(!0),[i,j]=(0,e.useState)(!1),[k,l]=(0,e.useState)(0),{copied:m,copy:n}=(0,p.C)(2e3);if(g&&!a&&!c)return null;let o=c||!a?.present;return(0,d.jsx)("div",{className:"space-y-2",children:o?(0,d.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-3",role:"status",children:[(0,d.jsxs)("div",{className:"flex items-start gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined mt-0.5 shrink-0 text-[16px] text-amber-500",children:"warning"}),(0,d.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,d.jsx)("p",{className:"text-xs font-semibold text-amber-900 dark:text-amber-200",children:c?"Could not check the AI Studio helper":"AI Studio helper is not built yet"}),(0,d.jsx)("p",{className:"text-xs leading-relaxed text-amber-800 dark:text-amber-300",children:"The npm package ships the helper source only; the binary is not included. Build it once on this machine before adding a connection."})]}),(0,d.jsxs)("button",{type:"button",onClick:()=>l(a=>a+1),className:"inline-flex shrink-0 items-center gap-1 rounded-md border border-amber-500/40 px-2 py-1 text-[11px] font-medium text-amber-900 hover:bg-amber-500/10 dark:text-amber-200",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"refresh"}),"Check again"]})]}),(0,d.jsx)(aM,{status:a,copied:m,copy:n,variant:"missing"})]}):(0,d.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-emerald-500/30 bg-emerald-500/10 px-3 py-2",role:"status",children:[(0,d.jsxs)("div",{className:"flex items-start gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined mt-0.5 shrink-0 text-[16px] text-emerald-500",children:"check_circle"}),(0,d.jsxs)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-emerald-800 dark:text-emerald-300",children:["Helper ready at ",(0,d.jsx)("code",{className:"font-mono",children:a.binPath}),". No rebuild needed unless you update the router."]}),(0,d.jsx)("button",{type:"button",onClick:()=>j(a=>!a),className:"inline-flex shrink-0 items-center gap-1 rounded-md border border-emerald-500/40 px-2 py-1 text-[11px] font-medium text-emerald-800 hover:bg-emerald-500/10 dark:text-emerald-200","aria-expanded":i,children:i?"Hide setup":"Setup steps"}),(0,d.jsxs)("button",{type:"button",onClick:()=>l(a=>a+1),className:"inline-flex shrink-0 items-center gap-1 rounded-md border border-emerald-500/40 px-2 py-1 text-[11px] font-medium text-emerald-800 hover:bg-emerald-500/10 dark:text-emerald-200",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"refresh"}),"Check again"]})]}),i&&(0,d.jsx)(aM,{status:a,copied:m,copy:n,variant:"ready"})]})})}aK.propTypes={value:B().string.isRequired,copied:B().string,onCopy:B().func.isRequired,id:B().string.isRequired},aL.propTypes={n:B().number.isRequired,title:B().string.isRequired,children:B().node,variant:B().oneOf(["missing","ready"])},aM.propTypes={status:B().shape({binPath:B().string,buildCommand:B().string,npmCommand:B().string,checkoutCommand:B().string}),copied:B().string,copy:B().func.isRequired,variant:B().oneOf(["missing","ready"])};let aO={claude:"claudeAutoPing",codex:"codexAutoPing"};function aP(a){return aG.w.has(a)||"codex"===a||"grok-cli"===a}function aQ({providerId:a,onWebLoginConnected:b,onBulkImport:c}){let e=[];return(aG.w.has(a)&&e.push((0,d.jsx)(aG.A,{providerId:a,onConnected:b},"web-login")),("codex"===a||"grok-cli"===a)&&e.push((0,d.jsx)(j.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:c,className:"w-full sm:w-auto",children:"Bulk Add"},"bulk-add")),e.length)?(0,d.jsx)(d.Fragment,{children:e}):null}function aR(a){return["completed","cancelled","failed"].includes(a)}async function aS(a){let b=new AbortController,c=window.setTimeout(()=>b.abort(),8e3);try{let c=await fetch(a,{cache:"no-store",signal:b.signal}),d=null;try{d=await c.json()}catch{d=null}return{response:c,data:d}}finally{window.clearTimeout(c)}}function aT(){let a,b=(0,f.useParams)(),c=(0,f.useRouter)(),g=b.id,[l,A]=(0,e.useState)([]),[B,D]=(0,e.useState)(!0),[E,G]=(0,e.useState)(""),[H,I]=(0,e.useState)(null),[J,L]=(0,e.useState)([]),[M,N]=(0,e.useState)(!1),[O,P]=(0,e.useState)(!1),[Q,R]=(0,e.useState)(!1),[T,U]=(0,e.useState)(!1),[V,Z]=(0,e.useState)(!1),[$,_]=(0,e.useState)(!1),[aa,ac]=(0,e.useState)(!1),[ad,ae]=(0,e.useState)(""),[ag,ah]=(0,e.useState)(!1),[ai,aj]=(0,e.useState)(!1),[am,an]=(0,e.useState)(!1),[ao,ap]=(0,e.useState)(null),[aq,as]=(0,e.useState)({}),[at,au]=(0,e.useState)([]),[av,aw]=(0,e.useState)(!1),[az,aB]=(0,e.useState)({}),[aD,aE]=(0,e.useState)({}),[aG,aH]=(0,e.useState)(()=>new Set),[aI,aJ]=(0,e.useState)(!1),[aK,aL]=(0,e.useState)(!1),[aM,aT]=(0,e.useState)(!1),[aU,aV]=(0,e.useState)(!1),[aW,aX]=(0,e.useState)(!1),[aY,aZ]=(0,e.useState)(!1),[a$,a_]=(0,e.useState)(!1),[a0,a1]=(0,e.useState)([]),[a2,a3]=(0,e.useState)("__none__"),[a4,a5]=(0,e.useState)(!1),[a6,a7]=(0,e.useState)(!1),[a8,a9]=(0,e.useState)(null),[ba,bb]=(0,e.useState)(""),[bc,bd]=(0,e.useState)("auto"),[be,bf]=(0,e.useState)({}),[bg,bh]=(0,e.useState)({}),[bi,bj]=(0,e.useState)(null),[bk,bl]=(0,e.useState)([]),[bm,bn]=(0,e.useState)([]),[bo,bp]=(0,e.useState)([]),[bq,br]=(0,e.useState)(null),[bs,bt]=(0,e.useState)(!1),[bu,bv]=(0,e.useState)(null),[bw,bx]=(0,e.useState)(!1),[by,bz]=(0,e.useState)(!1),[bA,bB]=(0,e.useState)(null),[bC,bD]=(0,e.useState)({}),[bE,bF]=(0,e.useState)(null),bG=(0,e.useRef)(!1),bH=(0,e.useRef)(null),bI=(0,e.useRef)("1"),[bJ,bK]=(0,e.useState)(!1),[bL,bM]=(0,e.useState)(null),[bN,bO]=(0,e.useState)(""),[bP,bQ]=(0,e.useState)(1),[bR,bS]=(0,e.useState)(20),[bT,bU]=(0,e.useState)("all"),[bV,bW]=(0,e.useState)(""),[bX,bY]=(0,e.useState)(1),[bZ,b$]=(0,e.useState)(20),{copied:b_,copy:b0}=(0,p.C)(),b1=(0,e.useRef)(0),b2=(0,e.useRef)([]),b3=(0,e.useRef)(!0),b4=(0,e.useRef)(null),b5=(0,y.i)(a=>a.error),b6=(0,e.useCallback)(()=>{bM(null),bO(""),b1.current=0},[]),b7=()=>{N(!0)},b8=()=>{"kiro"===g&&bL?.jobId&&aR(bL.status)&&b6(),c.push(n(g))},b9=H?{id:H.id,name:H.name||("anthropic-compatible"===H.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===H.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===H.type?"AC":"OC",apiType:H.apiType,baseUrl:H.baseUrl,type:H.type}:k.zN[g]||k.fg[g]||k.IS[g]||k.nJ[g]||k.br[g],ca=b9?.authModes||[],cb=!!k.zN[g]||!!k.IS[g]||ca.includes("oauth"),cc=!!k.fg[g]||ca.includes("apikey"),cd=!!k.IS[g]?.noAuth,ce=(0,r.F)("kiro"===g),cf="aistudio"===g?l.filter(a=>!1!==a.isActive).map(a=>`${a.id}:${a.updatedAt||""}`).join(","):"",cg=(0,s.M)("aistudio"===g,cf),ch=(0,s.Q)(g,cg,(0,o.KC)(g)),ci="kiro"===g?ce:ch,cj=(0,k.wG)(g),ck=(0,k.mq)(g),cl=(0,k.gb)(g),cm=ck||cl,cn=m(g),co=function({providerId:a,providerInfo:b,isOAuth:c,supportsApiKeyAuth:d,isCompatible:e}){if(!b||b.noAuth||b.authModes?.includes("none"))return[];let f=[];for(let g of(c&&x(f,"oauth"),(d||e||"cookie"===b.authType||!c)&&x(f,"apikey"),v[a]||[]))x(f,g);return f.map(b=>{let c=u[b];return c?{...c,...w[a]?.[b]}:null}).filter(Boolean)}({providerId:g,providerInfo:b9,isOAuth:cb,supportsApiKeyAuth:cc,isCompatible:ck||cl}),cp=function(a,{specializedChooser:b=!1}={}){return a.length?b?{type:"specialized"}:1===a.length?{type:"method",methodId:a[0].id}:{type:"chooser"}:{type:"none"}}(co,{specializedChooser:"kiro"===g}),cq=co.map(a=>"quota-cookie"===a.id&&0===l.length?{...a,disabled:!0,description:"Add a CodeBuddy connection before attaching its quota cookie."}:a),cr=a=>{if(!bc||"auto"===bc)return null;let b=(0,z.kl)(g,a);return b&&b.includes(bc)?bc:null},cs=cm?g:cj,ct=(()=>{let a=new Set,b=new Set,c=c=>{if(!c||b.has(c))return;b.add(c);let d=(0,z.kl)(g,c);d&&d.forEach(b=>{"none"!==b&&a.add(b)})};for(let a of ci)c(a.id);for(let a of bm)c(a.id);for(let a of at)a.providerAlias===cs&&"llm"===(a.kind||a.type||"llm")&&c(a.id);return a.size?["auto",...a]:null})(),cu=cm?H?.prefix||g:cj,cv=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(cs)}`,{cache:"no-store"}),b=await a.json();a.ok&&bp(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[cs]),cw=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:cs,ids:[a]})})).ok&&await cv()}catch(a){console.log("Error disabling model:",a)}},cx=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(cs)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await cv()}catch(a){console.log("Error enabling model:",a)}},cy=async a=>{a.length&&br({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{br(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:cs,ids:a})})).ok&&await cv()}catch(a){console.log("Error disabling all models:",a)}}})},cz=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(cs)}`,{method:"DELETE"})).ok&&await cv()}catch(a){console.log("Error enabling all models:",a)}},cA=(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)}},[]),cB=(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)}},[]),cC=(0,e.useCallback)(async()=>{try{G("");let[a,b,c,d]=await Promise.allSettled([aS("/api/providers"),aS("/api/provider-nodes"),aS("/api/proxy-pools?isActive=true"),aS("/api/settings")]),e="fulfilled"===a.status?a.value.response:null,f="fulfilled"===a.status?a.value.data:{},h="fulfilled"===b.status?b.value.response:null,i="fulfilled"===b.status?b.value.data:{},j="fulfilled"===c.status?c.value.response:null,l="fulfilled"===c.status?c.value.data:{},m="fulfilled"===d.status?d.value.response:null,n=m?.ok&&d.value.data||{};if(e?.ok){let a=(f.connections||[]).filter(a=>a.provider===g);b2.current=a,A(a)}else G("Connections could not be loaded.");j?.ok&&L(l.proxyPools||[]);let o=(n.providerStrategies||{})[g]||{};a9(o.fallbackStrategy||null),bb(null!=o.stickyRoundRobinLimit?String(o.stickyRoundRobinLimit):"1"),bI.current=null!=o.stickyRoundRobinLimit?String(o.stickyRoundRobinLimit):"1";let p=(n.providerThinking||{})[g]||{};bd(p.mode||"auto");let q=aO[g];if(bf(q&&n?.[q]?.connections||{}),bh(q&&n?.[q]?.schedules||{}),h?.ok){let a=(i.nodes||[]).find(a=>a.id===g)||null;if(!a&&((0,k.mq)(g)||(0,k.gb)(g)))for(let b=0;b<3;b+=1){if(await new Promise(a=>setTimeout(a,150)),!b3.current)return;let{response:b,data:c}=await aS("/api/provider-nodes");if(!b3.current)return;if(b.ok&&(a=(c.nodes||[]).find(a=>a.id===g)||null))break}I(a)}}catch(a){console.log("Error fetching connections:",a),b3.current&&G("Connections could not be loaded.")}finally{b3.current&&D(!1)}},[g]),cD=async a=>{try{let b=await fetch(`/api/provider-nodes/${g}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok&&(I(c.node),await cC(),aj(!1))}catch(a){console.log("Error updating provider node:",a)}},cE=async(a,b)=>{try{let c=await fetch("/api/settings",{cache:"no-store"}),d=(c.ok?await c.json():{}).providerStrategies||{},e={};a&&(e.fallbackStrategy=a),"round-robin"===a&&""!==b&&(e.stickyRoundRobinLimit=Number(b)||3);let f={...d};0===Object.keys(e).length?delete f[g]:f[g]=e,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:f})})}catch(a){console.log("Error saving provider strategy:",a)}},cF=async a=>{try{let b=await fetch("/api/settings",{cache:"no-store"}),c={...(b.ok?await b.json():{}).providerThinking||{}};a&&"auto"!==a?c[g]={mode:a}:delete c[g],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:c})})}catch(a){console.log("Error saving thinking config:",a)}},cG=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerSpecificData:{paidSubscription:b}})})).ok&&A(c=>c.map(c=>c.id===a?{...c,providerSpecificData:{...c.providerSpecificData,paidSubscription:b}}:c))}catch(a){console.log("Error updating paid flag:",a)}},cH=async(a,b)=>{let c=aO[g];if(!c)return;let d={...be,[a]:b};bf(d);try{let a=await fetch("/api/settings",{cache:"no-store"}),b={...(a.ok?await a.json():{})[c]||{},connections:d};if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[c]:b})})).ok)throw Error("Failed to save auto-ping setting")}catch(a){bf(be),console.log("Error saving auto-ping config:",a)}},cI=async({reactive:a,schedule:b})=>{let c=aO[g];if(!bi||!c)return;let d={...be,[bi.id]:a},e={...bg,[bi.id]:b};bf(d),bh(e);try{let a=await fetch("/api/settings",{cache:"no-store"}),b=a.ok?await a.json():{};if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[c]:{...b[c]||{},connections:d,schedules:e}})})).ok)throw Error("Failed to save auto-ping schedule")}catch(a){bf(be),bh(bg),console.log("Error saving auto-ping schedule:",a)}},cJ=async(a,b,c=cj)=>{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 cB();else{let b=await a.json();alert(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},cK=async(a,b="llm")=>{try{let c=new URLSearchParams({providerAlias:cs,id:a,type:b});(await fetch(`/api/models/custom?${c}`,{method:"DELETE"})).ok&&(await cA(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(a){console.log("Error deleting custom model:",a)}},cL=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await cB()}catch(a){console.log("Error deleting alias:",a)}},cM=async()=>{if(bJ)return;let a=l.find(a=>!1!==a.isActive);if(!a)return void alert((0,q.Tl)("Please add an active Qoder connection first"));bK(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,q.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,q.Tl)("No models returned"));let e={...aq},f=0;for(let a of d){let b=a.id||a.name;if(!b)continue;let c=b.replace(/^qoder\//,""),d=`${cs}/${c}`;!Object.values(e).includes(d)&&(e[c]||(await cJ(c,c,cs),e[c]=d,f+=1))}0===f?alert((0,q.Tl)("All models already exist, no new models added")):alert((0,q.Tl)("Successfully added")+` ${f} `+(0,q.Tl)("models"))}catch(a){console.log("Error importing Qoder models:",a),alert((0,q.Tl)("Error fetching models")+": "+a.message)}finally{bK(!1)}},cN=async()=>{let a=[...l];if(bw||0===a.length)return;let b=Object.fromEntries(a.map(a=>[a.id,{state:"queued",error:null}]));bG.current=!1,bx(!0),bz(!1),bB(null),bD(b),bF({total:a.length,completed:0,passed:0,failed:0,stopped:!1});let c=0,d=0;try{for(let b=0;b<a.length;b+=1){if(bG.current){bF({total:a.length,completed:b,passed:c,failed:d,stopped:!0});break}let e=a[b];if(!b2.current.some(a=>a.id===e.id)){bD(a=>({...a,[e.id]:{state:"skipped",error:null}})),bF({total:a.length,completed:b+1,passed:c,failed:d,stopped:!1});continue}bB(e.id),bD(a=>({...a,[e.id]:{state:"testing",error:null}}));try{let a=await fetch(`/api/providers/${e.id}/test`,{method:"POST"}),b=await a.json(),f=!!b.valid;f?c+=1:d+=1,bD(a=>({...a,[e.id]:{state:f?"success":"failed",error:f?b.warning||null:b.error||null}}))}catch(a){d+=1,bD(b=>({...b,[e.id]:{state:"failed",error:a.message||"Test failed"}}))}bF({total:a.length,completed:b+1,passed:c,failed:d,stopped:!1}),b<a.length-1&&await new Promise(a=>setTimeout(a,250))}}finally{bB(null),bx(!1),bz(!1),bG.current=!1}},cO=async a=>{br({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{br(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&A(l.filter(b=>b.id!==a))}catch(a){console.log("Error deleting connection:",a)}}})},cP=()=>{cC(),N(!1)},cQ=(0,e.useCallback)(a=>{bM(a),bO("")},[b6]),cR=async a=>{ae("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:g,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await cC(),ac(!1);return}ae(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),ae("Failed to save connection")}},cS=async a=>{try{(await fetch(`/api/providers/${ao.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await cC(),ah(!1))}catch(a){console.log("Error updating connection:",a)}},cT=async(a,b)=>{try{let c=await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})});if(c.ok){let d=await c.json().catch(()=>null);A(c=>c.map(c=>c.id===a?{...c,isActive:b,...d?.connection||{}}:c))}}catch(a){console.log("Error updating connection status:",a)}},cU=async(a,b)=>{let c=[...l];[c[a],c[b]]=[c[b],c[a]],A(c);try{let[d,e]=await Promise.all([fetch(`/api/providers/${c[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a+1})}),fetch(`/api/providers/${c[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b+1})})]);d.ok&&e.ok||(console.log("Priority swap rejected:",d.status,e.status),await cC())}catch(a){console.log("Error swapping priority:",a),await cC()}},cV=(0,e.useMemo)(()=>{let a=bV.trim().toLowerCase();return l.filter(b=>!!(0,t.i2)(b,bT)&&(!a||[b.name,b.email,b.id,b.account,b.username,b.label,b.authType,b.notes,b.proxyPoolId].filter(Boolean).join(" ").toLowerCase().includes(a)))},[l,bT,bV]),cW=(0,e.useMemo)(()=>t.gJ.reduce((a,b)=>(a[b.id]="all"===b.id?l.length:l.filter(a=>(0,t.i2)(a,b.id)).length,a),{}),[l]),cX=a0.filter(a=>l.some(b=>b.id===a)),cY=l.filter(a=>cX.includes(a.id)),cZ="codebuddy"===g||"codebuddy-cn"===g?(cY.length>0?cY:l).map(a=>a.id):[],c$=cV.length>0&&cV.every(a=>cX.includes(a.id)),c_=a=>{switch(a){case"oauth":b7();return;case"apikey":ae(""),ac(!0);return;case"cookie":U(!0);return;case"quota-cookie":l.length>1&&0===cY.length?alert("Select the CodeBuddy connection(s) that should use this quota cookie first."):Z(!0);return;default:b5(`Unsupported connection method: ${a}`,"Add Connection")}},c0=a=>{null!==b4.current&&window.cancelAnimationFrame(b4.current),b4.current=window.requestAnimationFrame(()=>{b4.current=null,c_(a)})},c1=()=>{"specialized"===cp.type?b7():"method"===cp.type?c_(cp.methodId):"chooser"===cp.type&&_(!0)},c2=a=>{_(!1),c0(a)},c3=(()=>{if(0===cY.length)return"";let a=new Set(cY.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return"All selected currently unbound";let c=J.find(a=>a.id===b);return`All selected currently bound to ${c?.name||b}`}return"Selected connections have mixed proxy bindings"})(),c4=()=>{a4||an(!1)},c5=async a=>{a5(!0);try{let b=0,c=0,d=Array.from({length:Math.min(8,a.length)},async()=>{for(;c<a.length;){let d=c;c+=1;let{connectionId:e,proxyPoolId:f}=a[d];try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:f})})).ok||(b+=1)}catch(a){console.log("Error applying proxy for",e,a),b+=1}}});await Promise.all(d),b>0&&alert(`Updated with ${b} failed request(s).`),await cC(),an(!1)}finally{a5(!1)}},c6=a=>c5(cY.map(b=>({connectionId:b.id,proxyPoolId:a}))),c7=a=>{let b="gsuite"===a?"GSuite (non-Gmail)":"Gmail (@gmail.com)";br({title:`Delete ${b}`,message:`Delete ALL ${b} accounts for this provider? This cannot be undone.`,onConfirm:async()=>{br(null);try{(await fetch("/api/providers/bulk-delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b9?.id||g,emailFilter:a})})).ok&&(a1([]),await cC())}catch(a){console.error("bulk delete error:",a)}}})},c8=Math.max(1,Math.ceil(cV.length/bR)),c9=Math.min(bP,c8),da=cV.slice((c9-1)*bR,c9*bR),db=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:da.map((a,b)=>{let c,e=l.findIndex(b=>b.id===a.id);return(0,d.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,d.jsx)("label",{className:"flex w-8 shrink-0 items-center justify-center",children:(0,d.jsx)("input",{type:"checkbox",checked:(c=a.id,cX.includes(c)),onChange:()=>{var b;return b=a.id,void a1(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"size-4 rounded border-black/20 dark:border-white/20","aria-label":`Select ${a.name||a.email||a.id}`})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)(K,{connection:a,proxyPools:J,isOAuth:cb,isFirst:0===e,isLast:e===l.length-1,onMoveUp:()=>cU(e,e-1),onMoveDown:()=>cU(e,e+1),onToggleActive:b=>cT(a.id,b),autoPingEnabled:!0===be[a.id],onToggleAutoPing:aO[g]&&"oauth"===a.authType?b=>cH(a.id,b):void 0,autoPingScheduled:bg[a.id]?.enabled===!0,onOpenAutoPingSchedule:aO[g]&&"oauth"===a.authType?()=>bj(a):void 0,onTogglePaid:"antigravity"===g?b=>cG(a.id,b):void 0,onUpdateProxy:async b=>{try{(await fetch(`/api/providers/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&A(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:()=>{ap(a),ah(!0)},onDelete:()=>cO(a.id),oneByOneStatus:bC[a.id]||null})})]},a.id)})}),dc=J.filter(a=>!0===a.isActive),dd=(0,d.jsx)(j.aF,{isOpen:am,onClose:c4,title:`Apply Proxy (${cY.length} selected)`,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=J.filter(a=>!0===a.isActive);return 0===a.length?void alert("No active proxy pools available."):c5(cY.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:a4||0===dc.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:()=>c6(null),disabled:a4,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)"})]}),J.map(a=>(0,d.jsxs)("button",{onClick:()=>c6(a.id),disabled:a4||!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))]}),a4&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(j.$n,{onClick:c4,variant:"ghost",fullWidth:!0,disabled:a4,children:"Cancel"})]})}),de=async a=>{aH(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:`${cs}/${a}`})}),c=await b.json();aB(b=>({...b,[a]:c.ok?"ok":"error"})),aE(b=>({...b,[a]:c.ok?"":c.error||"Model not reachable"}))}catch{aB(b=>({...b,[a]:"error"})),aE(b=>({...b,[a]:"Network error"}))}finally{aH(b=>{let c=new Set(b);return c.delete(a),c})}};return B?(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(j.Qv,{}),(0,d.jsx)(j.Qv,{})]}):b9?(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:`${b9.color}15`},children:av?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:b9.color},children:b9.textIcon||b9.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.A,{src:ck&&b9.apiType?"responses"===b9.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":cl?"/providers/anthropic-m.png":`/providers/${b9.id}.png`,alt:b9.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>aw(!0)})}),(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:b9.name}),(b9.notice?.apiKeyUrl||b9.notice?.signupUrl||b9.website)&&(0,d.jsxs)("a",{href:b9.notice?.apiKeyUrl||b9.notice?.signupUrl||b9.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"}),b9.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:[l.length," connection",1===l.length?"":"s"]})]})]})]}),b9.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:b9.deprecationNotice})]}),b9.notice?.text&&!b9.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:b9.notice.text}),b9.notice.apiKeyUrl&&(0,d.jsx)("a",{href:b9.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 →"})]}),"aistudio"===g&&(0,d.jsx)(aN,{}),cm&&H&&(0,d.jsx)(j.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:cl?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[cl?"Messages API":"responses"===H.apiType?"Responses API":"Chat Completions"," \xb7 ",(H.baseUrl||"").replace(/\/$/,""),"/",cl?"messages":"responses"===H.apiType?"responses":"chat/completions"]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:()=>{ae(""),ac(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>aj(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{br({title:"Delete Compatible Node",message:`Delete this ${cl?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{br(null);try{(await fetch(`/api/provider-nodes/${g}`,{method:"DELETE"})).ok&&c.push("/dashboard/providers")}catch(a){console.log("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),cd?(0,d.jsx)(j.gw,{providerId:g}):(0,d.jsxs)(j.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:[l.length>0&&J.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>{if(0===cY.length)return;let a=[...new Set(cY.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"))];a3(1===a.length?a[0]:"__none__"),an(!0)},disabled:0===cY.length,children:"Apply Proxy"}),l.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:cN,disabled:bw,children:bw?"Testing Connection One-by-One...":"Test Connection One-by-One"}),bw&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{bw&&(bG.current=!0,bz(!0))},disabled:by,children:by?"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)(j.lM,{checked:"round-robin"===a8,onChange:a=>{let b=a?"round-robin":null,c=a?ba||"1":ba;a&&!ba&&bb("1"),bI.current=c,bH.current&&(clearTimeout(bH.current),bH.current=null),a9(b),cE(b,c)}}),"round-robin"===a8&&(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:ba,onChange:a=>{var b;bb(b=a.target.value),bI.current=b,bH.current&&clearTimeout(bH.current),bH.current=setTimeout(()=>{cE("round-robin",bI.current)},500)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),l.length>0&&(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 rounded-lg border border-black/5 bg-black/[0.02] p-3 dark:border-white/5 dark:bg-white/[0.02]",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-text-muted",children:[(0,d.jsx)("input",{type:"checkbox",checked:c$,onChange:()=>{c$?a1(a=>a.filter(a=>!cV.some(b=>b.id===a))):a1(a=>Array.from(new Set([...a,...cV.map(a=>a.id)])))},className:"size-4 rounded border-black/20 dark:border-white/20"}),c$?"Unselect visible":"Select visible"]}),(0,d.jsxs)(j.Ex,{variant:"default",children:[cV.length," visible"]}),cY.length>0&&(0,d.jsxs)(j.Ex,{variant:"default",children:[cY.length," selected"]}),c3&&(0,d.jsx)("span",{className:"text-xs text-text-muted",children:c3}),cY.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",onClick:()=>{a1([]),a3("__none__")},children:"Clear"}),cY.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(j.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:()=>{0!==cY.length&&br({title:"Delete Selected Connections",message:`Delete ${cY.length} selected connection(s)? This permanently removes the selected accounts.`,onConfirm:async()=>{br(null);let a=[],b=0;for(let c of cY)try{(await fetch(`/api/providers/${c.id}`,{method:"DELETE"})).ok?a.push(c.id):b+=1}catch(a){console.log("Error deleting selected connection:",a),b+=1}a1(b=>b.filter(b=>!a.includes(b))),b>0&&alert(`Deleted ${a.length} connection(s); ${b} failed.`),await cC()}})},children:["Delete Selected (",cY.length,")"]}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"domain",onClick:()=>c7("gsuite"),children:"Delete GSuite"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"mail",onClick:()=>c7("gmail"),children:"Delete Gmail"})]})]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.gJ.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>bU(a.id),className:`rounded-full border px-2.5 py-1 text-xs transition-colors ${bT===a.id?"border-primary/50 bg-primary/10 text-primary":"border-border text-text-muted hover:border-primary/30 hover:text-text-main"}`,children:[a.label,(0,d.jsx)("span",{className:"ml-1 text-[10px] opacity-70",children:cW[a.id]||0})]},a.id))}),l.length>=20&&(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("span",{className:"material-symbols-outlined pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-[16px] text-text-subtle",children:"search"}),(0,d.jsx)("input",{type:"search",value:bV,onChange:a=>bW(a.target.value),placeholder:`Search ${l.length} connections (email, name, id)…`,className:"w-full rounded-lg border border-border bg-background py-2 pl-8 pr-3 text-xs text-text-main outline-none placeholder:text-text-subtle focus:border-primary/40"})]})]}),E?(0,d.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-red-500/30 bg-red-500/10 px-4 py-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px] text-red-500",children:"error"}),(0,d.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:E})]}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"refresh",onClick:()=>{D(!0),cC()},children:"Retry"})]}):0===l.length?(0,d.jsxs)(d.Fragment,{children:[(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:cb?"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"}),"kiro"!==g&&co.some(a=>"oauth"===a.id)&&co.some(a=>"apikey"===a.id)?(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",co.find(a=>"oauth"===a.id)?.label||"OAuth"," or ",co.find(a=>"apikey"===a.id)?.label||"API Key","."]}):co.length>1?(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Add Connection lists every available authentication method."}):null]})]}),(0,d.jsx)(ay,{showAutomation:cn,showAddConnection:"none"!==cp.type,onOpenAutomation:b8,onAddConnection:c1,methods:"kiro"===g?null:cq,onSelectMethod:"kiro"===g?null:c2,extra:aP(g)?(0,d.jsx)(aQ,{providerId:g,onWebLoginConnected:cC,onBulkImport:()=>"codex"===g?P(!0):R(!0)}):null})]}),"kiro"===g&&bL?.jobId&&(0,d.jsxs)("div",{className:"mt-4 flex flex-col gap-3 rounded-lg border border-primary/20 bg-primary/[0.06] px-4 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Bulk import progress is still available"}),(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Status: ",bL.status," | Success: ",bL.summary?.success||0," | Running: ",bL.summary?.running||0," | Queued: ",bL.summary?.queued||0]})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.$n,{size:"sm",icon:"monitoring",variant:"secondary",onClick:()=>c.push(n("kiro")),children:"Resume Bulk Progress"}),aR(bL.status)&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",icon:"close",onClick:b6,children:"Clear"})]})]}),"kiro"===g&&!bL?.jobId&&bN&&(0,d.jsx)("div",{className:"mt-4 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-700 dark:border-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:bN})]}):(0,d.jsxs)(d.Fragment,{children:[bE&&(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: ",bE.total]}),(0,d.jsxs)("span",{children:["Completed: ",bE.completed]}),(0,d.jsxs)("span",{children:["Passed: ",bE.passed]}),(0,d.jsxs)("span",{children:["Failed: ",bE.failed]}),bE.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),bw&&bA&&(0,d.jsxs)("span",{children:["Running: ",l.find(a=>a.id===bA)?.name||bA]})]})}),"kiro"===g&&bL?.jobId&&(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 rounded-lg border border-primary/20 bg-primary/[0.06] px-4 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Bulk import progress is still available"}),(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Status: ",bL.status," | Success: ",bL.summary?.success||0," | Running: ",bL.summary?.running||0," | Queued: ",bL.summary?.queued||0]})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.$n,{size:"sm",icon:"monitoring",variant:"secondary",onClick:()=>c.push(n("kiro")),children:"Resume Bulk Progress"}),aR(bL.status)&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",icon:"close",onClick:b6,children:"Clear"})]})]}),"kiro"===g&&!bL?.jobId&&bN&&(0,d.jsx)("div",{className:"mb-4 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-700 dark:border-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:bN}),db,"kiro"===g&&c8>1&&(0,d.jsxs)("div",{className:"mt-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Page ",c9," of ",c8," • Showing ",(c9-1)*bR+1,"-",Math.min(c9*bR,cV.length)," of ",cV.length," connections"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",disabled:c9<=1,onClick:()=>bQ(a=>Math.max(1,a-1)),children:"Previous"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",disabled:c9>=c8,onClick:()=>bQ(a=>Math.min(c8,a+1)),children:"Next"})]})]}),"kiro"!==g&&cV.length>0&&(0,d.jsx)(j.dK,{currentPage:c9,pageSize:bR,totalItems:cV.length,onPageChange:bQ,onPageSizeChange:a=>{bS(a),bQ(1)},className:"mt-2"}),l.length>0&&0===cV.length&&(0,d.jsx)("div",{className:"py-8 text-center text-sm text-text-muted",children:"No connections match this status filter."}),(0,d.jsx)("div",{className:"mt-4",children:(0,d.jsx)(ay,{showAutomation:cn,showAddConnection:"none"!==cp.type,onOpenAutomation:b8,onAddConnection:c1,methods:"kiro"===g?null:cq,onSelectMethod:"kiro"===g?null:c2,extra:aP(g)?(0,d.jsx)(aQ,{providerId:g,onWebLoginConnected:cC,onBulkImport:()=>"codex"===g?P(!0):R(!0)}):null})})]})]}),(0,d.jsx)(aF,{providerId:g}),(0,d.jsxs)(j.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"}),ct&&(0,d.jsx)("select",{value:bc,onChange:a=>{var b;bd(b=a.target.value),cF(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:ct.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),!cm&&(a=[...ci,...bm.filter(a=>!ci.some(b=>b.id===a.id))].filter(a=>!a.type||"llm"===a.type).map(a=>a.id).filter(a=>!bo.includes(a)),(0,d.jsxs)("div",{className:"flex gap-2",children:[bo.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:cz,children:"Active All"}),a.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>cy(a),children:"Disable All"})]}))]}),Object.values(aD).some(Boolean)&&(0,d.jsx)("div",{className:"mb-3 flex flex-col gap-1",children:Object.entries(aD).filter(([,a])=>!!a).map(([a,b])=>(0,d.jsxs)("p",{className:"text-xs text-red-500 break-words",children:[a,": ",b]},a))}),(()=>{let a,b,c;if(cm)return(0,d.jsx)(F,{providerStorageAlias:cs,providerDisplayAlias:cu,modelAliases:aq,copied:b_,onCopy:b0,onSetAlias:cJ,onDeleteAlias:cL,onAliasesChanged:cB,connections:l,isAnthropic:cl});let e=[...ci,...bm.filter(a=>!ci.some(b=>b.id===a.id))].filter(a=>!a.type||"llm"===a.type),f=new Set(bo),h=e.filter(a=>!f.has(a.id)),i=e.filter(a=>f.has(a.id)),k=function({customModels:a=[],modelAliases:b={},providerAlias:c,builtInModels:d=[],type:e="llm",includeLegacyAliases:f=!0}){let g=new Set(d.map(a=>a.id)),h=new Set,i=[];for(let b of a){if(!b?.id||b.providerAlias!==c)continue;let a=b?.kind||b?.type||"llm";if(e&&a!==e||g.has(b.id))continue;let d=`${c}/${b.id}`;h.has(d)||(h.add(d),i.push({id:b.id,name:b.name||b.id,fullModel:d,source:"custom",type:a}))}if(!f)return i;let j=`${c}/`;for(let[a,c]of Object.entries(b||{})){if("string"!=typeof c||!c.startsWith(j))continue;let b=c.slice(j.length);!b||g.has(b)||h.has(c)||(h.add(c),i.push({id:b,alias:a,fullModel:c,source:"legacyAlias",type:e||"llm"}))}return i}({customModels:at,modelAliases:aq,providerAlias:cs,builtInModels:ci,type:"llm"}),m=Math.min(bX,Math.max(1,Math.ceil(h.length/bZ))),n=h.slice((m-1)*bZ,m*bZ);return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[k.map(a=>(0,d.jsx)(C,{model:{id:a.id,name:a.name},fullModel:`${cu}/${a.id}`,alias:a.alias,copied:b_,onCopy:b0,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?cK(a.id,a.type||"llm"):cL(a.alias)},testStatus:az[a.id],onTest:l.length>0||cd?()=>de(a.id):void 0,isTesting:aG.has(a.id),isCustom:!0,isFree:!1,thinkingSuffix:cr(a.id)},`${a.source}-${a.fullModel}`)),n.map(a=>{let b=`${cs}/${a.id}`,c=`${g}/${a.id}`,e=Object.entries(aq).find(([,a])=>a===b||a===c)?.[0];return(0,d.jsx)(C,{model:a,fullModel:`${cu}/${a.id}`,alias:e,copied:b_,onCopy:b0,onSetAlias:b=>cJ(a.id,b,cs),onDeleteAlias:()=>cL(e),testStatus:az[a.id],onTest:l.length>0||cd?()=>de(a.id):void 0,isTesting:aG.has(a.id),isFree:a.isFree,onDisable:()=>cw(a.id),thinkingSuffix:cr(a.id)},a.id)}),h.length>bZ&&(0,d.jsx)("div",{className:"w-full",children:(0,d.jsx)(j.dK,{currentPage:m,pageSize:bZ,totalItems:h.length,onPageChange:bY,onPageSizeChange:a=>{b$(a),bY(1)}})}),(0,d.jsxs)("button",{onClick:()=>aJ(!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"]}),"codebuddy"===g&&(0,d.jsxs)("button",{onClick:()=>aL(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-cyan-500/50 px-3 py-2 text-xs text-cyan-700 transition-colors hover:border-cyan-500 hover:bg-cyan-500/[0.07] dark:text-cyan-300 sm:w-auto",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Discover Models"]}),("codebuddy-intl"===g||"codebuddy-cn"===g)&&(0,d.jsxs)("button",{onClick:()=>aT(!0),className:"live-probe-button",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"openrouter"===g&&(0,d.jsxs)("button",{type:"button",onClick:()=>aX(!0),className:"live-probe-button",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"opencode"===g&&(0,d.jsxs)("button",{onClick:()=>aV(!0),className:"live-probe-button",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"kiro"===g&&(0,d.jsxs)("button",{onClick:()=>aZ(!0),className:"live-probe-button",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"cloudflare-ai"===g&&(0,d.jsxs)("button",{onClick:()=>a_(!0),className:"live-probe-button",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"qoder"===g&&l.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:cM,disabled:bJ,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:bJ?{animation:"spin 1s linear infinite"}:void 0,children:bJ?"progress_activity":"download"}),bJ?(0,q.Tl)("Fetching..."):(0,q.Tl)("Fetch Qoder Models")]}),bk.length>0&&(a=new Set(Object.values(aq)),b=new Set(ci.map(a=>a.id)),0===(c=bk.filter(c=>!a.has(`${cs}/${c.id}`)&&!b.has(c.id))).length?null:(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map(a=>(0,d.jsxs)("button",{onClick:async()=>{let b=a.id.split("/").pop();await cJ(a.id,b,cs)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${a.name} \xb7 ${(a.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id.split("/").pop()]},a.id))})]})),i.length>0&&(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",i.length,"):"]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:i.map(a=>(0,d.jsxs)("button",{onClick:()=>cx(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))})]})]})})()]}),am&&dd,$&&(0,d.jsx)(j.mz,{isOpen:!0,providerName:b9.name,methods:cq,onSelect:c2,onClose:()=>_(!1)}),"codex"===g&&(0,d.jsx)(aA,{isOpen:O,onClose:()=>P(!1),onSuccess:cC}),"grok-cli"===g&&(0,d.jsx)(aC,{isOpen:Q,onClose:()=>R(!1),onSuccess:cC}),M&&("kiro"===g?(0,d.jsx)(j.Mh,{isOpen:!0,providerInfo:b9,onSuccess:cP,onRefresh:cC,initialBulkJobId:bL?.jobId||null,onBulkJobChange:cQ,onClose:()=>N(!1)}):"cursor"===g?(0,d.jsx)(j.G9,{isOpen:!0,onSuccess:cP,onClose:()=>N(!1)}):"gitlab"===g?(0,d.jsx)(j.vj,{isOpen:!0,providerInfo:b9,onSuccess:cP,onClose:()=>N(!1)}):"xiaomi-mimo"===g?(0,d.jsx)(j.LH,{isOpen:!0,onSuccess:cP,onClose:()=>N(!1)}):(0,d.jsx)(j.LF,{isOpen:!0,provider:g,providerInfo:b9,onSuccess:cP,onClose:()=>N(!1)})),"iflow"===g&&T&&(0,d.jsx)(j.vE,{isOpen:!0,onSuccess:()=>{cC(),U(!1)},onClose:()=>U(!1)}),("codebuddy"===g||"codebuddy-cn"===g)&&V&&(0,d.jsx)(j.xl,{isOpen:!0,connectionIds:cZ,endpoint:"codebuddy-cn"===g?"/api/oauth/codebuddy-cn/quota-cookie":"/api/oauth/codebuddy/quota-cookie",onSuccess:()=>{cC(),Z(!1)},onClose:()=>Z(!1)}),aa&&(0,d.jsx)(W,{isOpen:!0,provider:g,providerName:b9.name,isCompatible:cm,isAnthropic:cl,authType:b9?.authType,authHint:b9?.authHint,website:b9?.website,proxyPools:J,existingNames:l.map(a=>a.name).filter(Boolean),error:ad,onSave:cR,onBulkDone:cC,onClose:()=>{ae(""),ac(!1)}}),ag&&ao&&(0,d.jsx)(j.wI,{isOpen:!0,connection:ao,proxyPools:J,onSave:cS,onClose:()=>ah(!1)}),cm&&ai&&(0,d.jsx)(X,{isOpen:!0,node:H,onSave:cD,onClose:()=>aj(!1),isAnthropic:cl}),!cm&&aI&&(0,d.jsx)(Y,{isOpen:!0,providerAlias:cs,providerDisplayAlias:cu,onSave:async a=>{let b=b9?.passthroughModels?a.split("/").pop():a;await cJ(a,b,cs),aJ(!1)},onClose:()=>aJ(!1)}),"codebuddy"===g&&aK&&(0,d.jsx)(ab,{isOpen:!0,connections:l,onModelsAdded:async a=>{for(let b of a)await cJ(b.id,b.id,"cb");await cB(),await cA()},onClose:()=>aL(!1)}),("codebuddy-intl"===g||"codebuddy-cn"===g)&&aM&&(0,d.jsx)(af,{isOpen:!0,providerId:g,connections:l,onModelsAdded:async a=>{let b="codebuddy-cn"===g?"cb-cn":"cbai";for(let c of a)await cJ(c.id,c.id,b);await cB(),await cA()},onClose:()=>aT(!1)}),"openrouter"===g&&aW&&(0,d.jsx)(al.A,{isOpen:!0,kind:"llm",connections:l,onModelsAdded:async a=>{for(let b of a)await cJ(b.id,b.id.split("/").pop(),"openrouter");await cB(),await cA()},onClose:()=>aX(!1)}),"opencode"===g&&aU&&(0,d.jsx)(ak,{isOpen:!0,onModelsAdded:async a=>{for(let b of a)await cJ(b.id,b.id,"oc");await cB(),await cA()},onClose:()=>aV(!1)}),"kiro"===g&&aY&&(0,d.jsx)(ar,{isOpen:!0,connections:l,onClose:()=>aZ(!1)}),"cloudflare-ai"===g&&a$&&(0,d.jsx)(ax,{isOpen:!0,connections:l,onModelsAdded:async a=>{for(let b of a)await cJ(b.id,b.id,cj);await cB()},onClose:()=>a_(!1)}),bi&&(0,d.jsx)(S,{isOpen:!0,connection:bi,reactive:!0===be[bi.id],schedule:bg[bi.id]||null,onClose:()=>bj(null),onSave:cI}),bs&&(0,d.jsx)(j.uo,{isOpen:!0,onClose:()=>bt(!1),onConfirm:()=>{bt(!1),bv(null),c0(bu||"oauth")},title:"Risk Notice",message:b9?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),bq&&(0,d.jsx)(j.uo,{isOpen:!0,onClose:()=>{a6||br(null)},onConfirm:async()=>{if(a6)return;let a=bq?.onConfirm;if(a){a7(!0);try{await a()}finally{a7(!1)}}},title:bq?.title||"Confirm",message:bq?.message,variant:"danger",loading:a6})]}):(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"})]})}},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},49858:(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,32059))),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))),"/zevairouter-build/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,"/zevairouter-build/src/app/(dashboard)/layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/zevairouter-build/src/app/layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,w=(0,e.H)({tree:v,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),x=w.__next_app__,y=w.routeModule,z=w.handler},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},58962:(a,b,c)=>{"use strict";c.d(b,{x6:()=>d.fetchJson,E2:()=>e,gs:()=>f});var d=c(86819);function e(a){if(!a)return null;let b=a.match(/\b([45]\d{2})\b/);return b?b[1]:"ERR"}function f(a){if(!a)return"";let b=Math.floor((Date.now()-new Date(a).getTime())/6e4);if(b<1)return"just now";if(b<60)return`${b}m ago`;let c=Math.floor(b/60);if(c<24)return`${c}h ago`;let d=Math.floor(c/24);return`${d}d ago`}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},75901:(a,b,c)=>{Promise.resolve().then(c.bind(c,44062))},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")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86819:(a,b,c)=>{"use strict";c.d(b,{fetchJson:()=>e});let d={"Content-Type":"application/json"};async function e(a,b={}){let{body:c,headers:f,...g}=b,h={...g,headers:{...d,...f}};void 0!==c&&"string"!=typeof c?h.body=JSON.stringify(c):void 0!==c&&(h.body=c);let i=await fetch(a,h),j=await i.text(),k=null;if(j)try{k=JSON.parse(j)}catch{let b=Error(`Non-JSON response from ${a} (HTTP ${i.status})`);throw b.status=i.status,b.rawBody=j.slice(0,300),b}if(!i.ok){let a=k&&(k.error?.message||k.error||k.message)||`Request failed (HTTP ${i.status})`,b=Error("string"==typeof a?a:`HTTP ${i.status}`);throw b.status=i.status,b.data=k,b}return k}e.get=(a,b)=>e(a,{...b,method:"GET"}),e.post=(a,b,c)=>e(a,{...c,method:"POST",body:b}),e.put=(a,b,c)=>e(a,{...c,method:"PUT",body:b}),e.patch=(a,b,c)=>e(a,{...c,method:"PATCH",body:b}),e.del=(a,b)=>e(a,{...b,method:"DELETE"})},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},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 \"/zevairouter-build/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.")},"/zevairouter-build/src/app/(dashboard)/dashboard/providers/[id]/page.js","default")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,7774,2430,940,2760,5905,4452,4686,4549,7973,24,5024,9548,7404,9188,267,412,2228,4073],()=>b(b.s=49858));module.exports=c})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/hash.js/sha256/256.js","../../../../../../../node_modules/next/dist/compiled/hash.js/sha256/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/segment-config/ensure-static.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/app-dir-module.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/route-cache-key.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../../../../../../../node_modules/next/dist/server/normalizers/normalizers.js","../../../../../../../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../../../../../../../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/route-kind.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/react-browser-bailout.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1004.js","../../../../../chunks/1019.js","../../../../../chunks/1257.js","../../../../../chunks/1283.js","../../../../../chunks/1350.js","../../../../../chunks/1509.js","../../../../../chunks/1531.js","../../../../../chunks/1605.js","../../../../../chunks/1757.js","../../../../../chunks/1813.js","../../../../../chunks/1852.js","../../../../../chunks/192.js","../../../../../chunks/1998.js","../../../../../chunks/2007.js","../../../../../chunks/2025.js","../../../../../chunks/2060.js","../../../../../chunks/2126.js","../../../../../chunks/2228.js","../../../../../chunks/2256.js","../../../../../chunks/2301.js","../../../../../chunks/24.js","../../../../../chunks/2409.js","../../../../../chunks/241.js","../../../../../chunks/2430.js","../../../../../chunks/2442.js","../../../../../chunks/2478.js","../../../../../chunks/2578.js","../../../../../chunks/2606.js","../../../../../chunks/2650.js","../../../../../chunks/267.js","../../../../../chunks/2693.js","../../../../../chunks/2760.js","../../../../../chunks/280.js","../../../../../chunks/281.js","../../../../../chunks/2970.js","../../../../../chunks/2990.js","../../../../../chunks/3016.js","../../../../../chunks/3092.js","../../../../../chunks/3204.js","../../../../../chunks/3285.js","../../../../../chunks/3294.js","../../../../../chunks/3331.js","../../../../../chunks/3373.js","../../../../../chunks/3487.js","../../../../../chunks/3593.js","../../../../../chunks/3675.js","../../../../../chunks/3721.js","../../../../../chunks/3759.js","../../../../../chunks/3792.js","../../../../../chunks/3815.js","../../../../../chunks/3926.js","../../../../../chunks/3966.js","../../../../../chunks/40.js","../../../../../chunks/4073.js","../../../../../chunks/412.js","../../../../../chunks/4128.js","../../../../../chunks/4136.js","../../../../../chunks/4177.js","../../../../../chunks/421.js","../../../../../chunks/4229.js","../../../../../chunks/4236.js","../../../../../chunks/4253.js","../../../../../chunks/4294.js","../../../../../chunks/4306.js","../../../../../chunks/4322.js","../../../../../chunks/437.js","../../../../../chunks/4452.js","../../../../../chunks/4549.js","../../../../../chunks/4645.js","../../../../../chunks/4650.js","../../../../../chunks/4686.js","../../../../../chunks/4730.js","../../../../../chunks/4739.js","../../../../../chunks/4780.js","../../../../../chunks/4790.js","../../../../../chunks/4803.js","../../../../../chunks/4882.js","../../../../../chunks/5000.js","../../../../../chunks/5019.js","../../../../../chunks/5024.js","../../../../../chunks/507.js","../../../../../chunks/5236.js","../../../../../chunks/5258.js","../../../../../chunks/5330.js","../../../../../chunks/5377.js","../../../../../chunks/5433.js","../../../../../chunks/5434.js","../../../../../chunks/5573.js","../../../../../chunks/5577.js","../../../../../chunks/5626.js","../../../../../chunks/5728.js","../../../../../chunks/5744.js","../../../../../chunks/5752.js","../../../../../chunks/5754.js","../../../../../chunks/5781.js","../../../../../chunks/5799.js","../../../../../chunks/5819.js","../../../../../chunks/5905.js","../../../../../chunks/5936.js","../../../../../chunks/5949.js","../../../../../chunks/6060.js","../../../../../chunks/6103.js","../../../../../chunks/6140.js","../../../../../chunks/6143.js","../../../../../chunks/6166.js","../../../../../chunks/6182.js","../../../../../chunks/6200.js","../../../../../chunks/6252.js","../../../../../chunks/627.js","../../../../../chunks/6396.js","../../../../../chunks/6476.js","../../../../../chunks/6486.js","../../../../../chunks/6492.js","../../../../../chunks/6630.js","../../../../../chunks/6652.js","../../../../../chunks/6689.js","../../../../../chunks/6802.js","../../../../../chunks/6843.js","../../../../../chunks/6844.js","../../../../../chunks/6846.js","../../../../../chunks/6935.js","../../../../../chunks/6936.js","../../../../../chunks/6951.js","../../../../../chunks/698.js","../../../../../chunks/7066.js","../../../../../chunks/709.js","../../../../../chunks/7135.js","../../../../../chunks/7210.js","../../../../../chunks/7250.js","../../../../../chunks/7319.js","../../../../../chunks/7337.js","../../../../../chunks/7341.js","../../../../../chunks/7364.js","../../../../../chunks/7404.js","../../../../../chunks/7464.js","../../../../../chunks/751.js","../../../../../chunks/7525.js","../../../../../chunks/7557.js","../../../../../chunks/7568.js","../../../../../chunks/7573.js","../../../../../chunks/7726.js","../../../../../chunks/7774.js","../../../../../chunks/7833.js","../../../../../chunks/7875.js","../../../../../chunks/7965.js","../../../../../chunks/7973.js","../../../../../chunks/7995.js","../../../../../chunks/7997.js","../../../../../chunks/8028.js","../../../../../chunks/8062.js","../../../../../chunks/8339.js","../../../../../chunks/8421.js","../../../../../chunks/8469.js","../../../../../chunks/8517.js","../../../../../chunks/8520.js","../../../../../chunks/8641.js","../../../../../chunks/8655.js","../../../../../chunks/8725.js","../../../../../chunks/8749.js","../../../../../chunks/8971.js","../../../../../chunks/8972.js","../../../../../chunks/9094.js","../../../../../chunks/9188.js","../../../../../chunks/9190.js","../../../../../chunks/940.js","../../../../../chunks/9415.js","../../../../../chunks/9445.js","../../../../../chunks/9489.js","../../../../../chunks/9539.js","../../../../../chunks/9548.js","../../../../../chunks/9609.js","../../../../../chunks/9613.js","../../../../../chunks/9618.js","../../../../../chunks/9679.js","../../../../../chunks/9718.js","../../../../../chunks/9946.js","../../../../../chunks/static/media/server.b857786a.js","../../../../../webpack-runtime.js","page_client-reference-manifest.js","../../../../../../../src/lib/terminal/ptyBridge.py","../../../../../../../open-sse/lib/deepseek-pow-worker.mjs","../../../../../../../open-sse/lib/deepseek-pow-hash.js","../../../../../../../cli/hooks/bunRuntime.js","../../../../../../../cli/hooks/cloakbrowserRuntime.js","../../../../../../../cli/hooks/postinstall.js","../../../../../../../cli/hooks/pruneNativeBinaries.js","../../../../../../../cli/hooks/safeGlobalInstall.js","../../../../../../../cli/hooks/sqliteRuntime.js","../../../../../../../cli/hooks/startupRuntime.js","../../../../../../../cli/hooks/streamCommand.js","../../../../../../../cli/hooks/trayRuntime.js","../../../../../../../node_modules/open/index.d.ts","../../../../../../../node_modules/open/index.js","../../../../../../../node_modules/open/license","../../../../../../../node_modules/open/package.json","../../../../../../../node_modules/open/readme.md","../../../../../../../node_modules/open/xdg-open","../../../../../../../node_modules/sql.js/.devcontainer/devcontainer.json","../../../../../../../node_modules/sql.js/.devcontainer/Dockerfile","../../../../../../../node_modules/sql.js/.eslintrc.js","../../../../../../../node_modules/sql.js/.jsdoc.config.json","../../../../../../../node_modules/sql.js/.nojekyll","../../../../../../../node_modules/sql.js/AUTHORS","../../../../../../../node_modules/sql.js/CONTRIBUTING.md","../../../../../../../node_modules/sql.js/dist/sql-asm-debug.js","../../../../../../../node_modules/sql.js/dist/sql-asm-memory-growth.js","../../../../../../../node_modules/sql.js/dist/sql-asm.js","../../../../../../../node_modules/sql.js/dist/sql-wasm-browser-debug.js","../../../../../../../node_modules/sql.js/dist/sql-wasm-browser-debug.wasm","../../../../../../../node_modules/sql.js/dist/sql-wasm-browser.js","../../../../../../../node_modules/sql.js/dist/sql-wasm-browser.wasm","../../../../../../../node_modules/sql.js/dist/sql-wasm-debug.js","../../../../../../../node_modules/sql.js/dist/sql-wasm-debug.wasm","../../../../../../../node_modules/sql.js/dist/sql-wasm.wasm","../../../../../../../node_modules/sql.js/dist/worker.sql-asm-debug.js","../../../../../../../node_modules/sql.js/dist/worker.sql-asm.js","../../../../../../../node_modules/sql.js/dist/worker.sql-wasm-debug.js","../../../../../../../node_modules/sql.js/dist/worker.sql-wasm.js","../../../../../../../node_modules/sql.js/documentation_index.md","../../../../../../../node_modules/sql.js/eslint.config.cjs","../../../../../../../node_modules/sql.js/LICENSE","../../../../../../../node_modules/sql.js/logo.svg","../../../../../../../node_modules/sql.js/README.md"]}
1
+ {"version":1,"files":["../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/hash.js/sha256/256.js","../../../../../../../node_modules/next/dist/compiled/hash.js/sha256/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/segment-config/ensure-static.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/app-dir-module.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/route-cache-key.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../../../../../../../node_modules/next/dist/server/normalizers/normalizers.js","../../../../../../../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../../../../../../../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/route-kind.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/react-browser-bailout.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1004.js","../../../../../chunks/1019.js","../../../../../chunks/1257.js","../../../../../chunks/1283.js","../../../../../chunks/1350.js","../../../../../chunks/1509.js","../../../../../chunks/1531.js","../../../../../chunks/1605.js","../../../../../chunks/1757.js","../../../../../chunks/1813.js","../../../../../chunks/1852.js","../../../../../chunks/192.js","../../../../../chunks/1998.js","../../../../../chunks/2007.js","../../../../../chunks/2025.js","../../../../../chunks/2060.js","../../../../../chunks/2126.js","../../../../../chunks/2228.js","../../../../../chunks/2256.js","../../../../../chunks/2301.js","../../../../../chunks/24.js","../../../../../chunks/2409.js","../../../../../chunks/241.js","../../../../../chunks/2430.js","../../../../../chunks/2442.js","../../../../../chunks/2478.js","../../../../../chunks/2578.js","../../../../../chunks/2606.js","../../../../../chunks/2650.js","../../../../../chunks/267.js","../../../../../chunks/2693.js","../../../../../chunks/2760.js","../../../../../chunks/280.js","../../../../../chunks/281.js","../../../../../chunks/2970.js","../../../../../chunks/2990.js","../../../../../chunks/3016.js","../../../../../chunks/3092.js","../../../../../chunks/3204.js","../../../../../chunks/3285.js","../../../../../chunks/3294.js","../../../../../chunks/3331.js","../../../../../chunks/3373.js","../../../../../chunks/3487.js","../../../../../chunks/3593.js","../../../../../chunks/3675.js","../../../../../chunks/3721.js","../../../../../chunks/3759.js","../../../../../chunks/3792.js","../../../../../chunks/3815.js","../../../../../chunks/3926.js","../../../../../chunks/3966.js","../../../../../chunks/40.js","../../../../../chunks/4073.js","../../../../../chunks/412.js","../../../../../chunks/4128.js","../../../../../chunks/4136.js","../../../../../chunks/4177.js","../../../../../chunks/421.js","../../../../../chunks/4229.js","../../../../../chunks/4236.js","../../../../../chunks/4253.js","../../../../../chunks/4294.js","../../../../../chunks/4306.js","../../../../../chunks/4322.js","../../../../../chunks/437.js","../../../../../chunks/4452.js","../../../../../chunks/4549.js","../../../../../chunks/4645.js","../../../../../chunks/4650.js","../../../../../chunks/4686.js","../../../../../chunks/4730.js","../../../../../chunks/4739.js","../../../../../chunks/4780.js","../../../../../chunks/4790.js","../../../../../chunks/4803.js","../../../../../chunks/4882.js","../../../../../chunks/5000.js","../../../../../chunks/5019.js","../../../../../chunks/5024.js","../../../../../chunks/507.js","../../../../../chunks/5236.js","../../../../../chunks/5258.js","../../../../../chunks/5330.js","../../../../../chunks/5377.js","../../../../../chunks/5433.js","../../../../../chunks/5434.js","../../../../../chunks/5573.js","../../../../../chunks/5577.js","../../../../../chunks/5626.js","../../../../../chunks/5728.js","../../../../../chunks/5744.js","../../../../../chunks/5752.js","../../../../../chunks/5754.js","../../../../../chunks/5781.js","../../../../../chunks/5799.js","../../../../../chunks/5819.js","../../../../../chunks/5905.js","../../../../../chunks/5936.js","../../../../../chunks/5949.js","../../../../../chunks/6060.js","../../../../../chunks/6103.js","../../../../../chunks/6140.js","../../../../../chunks/6143.js","../../../../../chunks/6166.js","../../../../../chunks/6182.js","../../../../../chunks/6200.js","../../../../../chunks/6252.js","../../../../../chunks/627.js","../../../../../chunks/6396.js","../../../../../chunks/6476.js","../../../../../chunks/6486.js","../../../../../chunks/6492.js","../../../../../chunks/6630.js","../../../../../chunks/6652.js","../../../../../chunks/6689.js","../../../../../chunks/6802.js","../../../../../chunks/6843.js","../../../../../chunks/6844.js","../../../../../chunks/6846.js","../../../../../chunks/6935.js","../../../../../chunks/6936.js","../../../../../chunks/6951.js","../../../../../chunks/698.js","../../../../../chunks/7066.js","../../../../../chunks/709.js","../../../../../chunks/7135.js","../../../../../chunks/7210.js","../../../../../chunks/7250.js","../../../../../chunks/7319.js","../../../../../chunks/7337.js","../../../../../chunks/7341.js","../../../../../chunks/7364.js","../../../../../chunks/7404.js","../../../../../chunks/7464.js","../../../../../chunks/751.js","../../../../../chunks/7525.js","../../../../../chunks/7557.js","../../../../../chunks/7568.js","../../../../../chunks/7573.js","../../../../../chunks/7726.js","../../../../../chunks/7774.js","../../../../../chunks/7833.js","../../../../../chunks/7875.js","../../../../../chunks/7965.js","../../../../../chunks/7973.js","../../../../../chunks/7995.js","../../../../../chunks/7997.js","../../../../../chunks/8028.js","../../../../../chunks/8062.js","../../../../../chunks/8339.js","../../../../../chunks/8421.js","../../../../../chunks/8469.js","../../../../../chunks/8517.js","../../../../../chunks/8520.js","../../../../../chunks/8641.js","../../../../../chunks/8655.js","../../../../../chunks/8725.js","../../../../../chunks/8749.js","../../../../../chunks/8971.js","../../../../../chunks/8972.js","../../../../../chunks/9094.js","../../../../../chunks/9188.js","../../../../../chunks/9190.js","../../../../../chunks/940.js","../../../../../chunks/9415.js","../../../../../chunks/9445.js","../../../../../chunks/9489.js","../../../../../chunks/9539.js","../../../../../chunks/9548.js","../../../../../chunks/9609.js","../../../../../chunks/9613.js","../../../../../chunks/9618.js","../../../../../chunks/9679.js","../../../../../chunks/9718.js","../../../../../chunks/9946.js","../../../../../chunks/static/media/server.b857786a.js","../../../../../webpack-runtime.js","page_client-reference-manifest.js","../../../../../../../src/lib/terminal/ptyBridge.py","../../../../../../../open-sse/lib/deepseek-pow-worker.mjs","../../../../../../../open-sse/lib/deepseek-pow-hash.js","../../../../../../../node_modules/open/index.d.ts","../../../../../../../node_modules/open/index.js","../../../../../../../node_modules/open/license","../../../../../../../node_modules/open/package.json","../../../../../../../node_modules/open/readme.md","../../../../../../../node_modules/open/xdg-open","../../../../../../../cli/hooks/bunRuntime.js","../../../../../../../cli/hooks/cloakbrowserRuntime.js","../../../../../../../cli/hooks/postinstall.js","../../../../../../../cli/hooks/pruneNativeBinaries.js","../../../../../../../cli/hooks/safeGlobalInstall.js","../../../../../../../cli/hooks/sqliteRuntime.js","../../../../../../../cli/hooks/startupRuntime.js","../../../../../../../cli/hooks/streamCommand.js","../../../../../../../cli/hooks/trayRuntime.js","../../../../../../../node_modules/sql.js/.devcontainer/devcontainer.json","../../../../../../../node_modules/sql.js/.devcontainer/Dockerfile","../../../../../../../node_modules/sql.js/.eslintrc.js","../../../../../../../node_modules/sql.js/.jsdoc.config.json","../../../../../../../node_modules/sql.js/.nojekyll","../../../../../../../node_modules/sql.js/AUTHORS","../../../../../../../node_modules/sql.js/CONTRIBUTING.md","../../../../../../../node_modules/sql.js/dist/sql-asm-debug.js","../../../../../../../node_modules/sql.js/dist/sql-asm-memory-growth.js","../../../../../../../node_modules/sql.js/dist/sql-asm.js","../../../../../../../node_modules/sql.js/dist/sql-wasm-browser-debug.js","../../../../../../../node_modules/sql.js/dist/sql-wasm-browser-debug.wasm","../../../../../../../node_modules/sql.js/dist/sql-wasm-browser.js","../../../../../../../node_modules/sql.js/dist/sql-wasm-browser.wasm","../../../../../../../node_modules/sql.js/dist/sql-wasm-debug.js","../../../../../../../node_modules/sql.js/dist/sql-wasm-debug.wasm","../../../../../../../node_modules/sql.js/dist/sql-wasm.wasm","../../../../../../../node_modules/sql.js/dist/worker.sql-asm-debug.js","../../../../../../../node_modules/sql.js/dist/worker.sql-asm.js","../../../../../../../node_modules/sql.js/dist/worker.sql-wasm-debug.js","../../../../../../../node_modules/sql.js/dist/worker.sql-wasm.js","../../../../../../../node_modules/sql.js/documentation_index.md","../../../../../../../node_modules/sql.js/eslint.config.cjs","../../../../../../../node_modules/sql.js/LICENSE","../../../../../../../node_modules/sql.js/logo.svg","../../../../../../../node_modules/sql.js/README.md"]}