@techysy/10router 1.3.0 → 1.3.1

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 (628) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +9 -9
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +3 -3
  5. package/app/.next-cli-build/react-loadable-manifest.json +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  84. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  85. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  86. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  87. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  88. package/app/.next-cli-build/server/app/_not-found.html +2 -2
  89. package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
  90. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
  91. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -5
  92. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  93. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  94. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/verify-password/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/verify-password/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  149. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  153. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/keys/rotate/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/keys/rotate/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  169. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  179. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/network/egress-region/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  258. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  267. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +1 -1
  271. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  273. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/security/status/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/security/status/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -1
  289. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  302. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  308. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  314. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  316. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  318. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  320. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  322. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  324. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  328. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/usage/dashboard/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/usage/dashboard/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/usage/quotas/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/usage/quotas/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  365. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  367. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  368. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  369. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  370. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  371. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  373. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  374. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  377. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  378. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  379. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  380. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  381. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  382. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  383. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  387. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  389. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  391. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  397. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  398. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  399. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  400. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  401. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  403. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  405. package/app/.next-cli-build/server/app/callback.html +2 -2
  406. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  407. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  408. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  409. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
  410. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +2 -2
  411. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
  412. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +7 -7
  413. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
  414. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  415. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +2 -2
  416. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
  417. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +7 -7
  418. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
  419. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  420. package/app/.next-cli-build/server/app/dashboard/combos.html +2 -2
  421. package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
  422. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +7 -7
  423. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
  424. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  425. package/app/.next-cli-build/server/app/dashboard/endpoint.html +2 -2
  426. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
  427. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +7 -7
  428. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
  429. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  430. package/app/.next-cli-build/server/app/dashboard/experimental.html +2 -2
  431. package/app/.next-cli-build/server/app/dashboard/experimental.rsc +7 -7
  432. package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +7 -7
  433. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +7 -7
  434. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +1 -1
  435. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +2 -2
  436. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +7 -7
  437. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +7 -7
  438. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
  439. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  440. package/app/.next-cli-build/server/app/dashboard/mitm.html +2 -2
  441. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -7
  442. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +7 -7
  443. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -7
  444. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  445. package/app/.next-cli-build/server/app/dashboard/profile.html +2 -2
  446. package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -7
  447. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +7 -7
  448. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
  449. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  450. package/app/.next-cli-build/server/app/dashboard/providers/new.html +2 -2
  451. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
  452. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +7 -7
  453. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
  454. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  455. package/app/.next-cli-build/server/app/dashboard/providers.html +2 -2
  456. package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
  457. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +7 -7
  458. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
  459. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  460. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +2 -2
  461. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -7
  462. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +7 -7
  463. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
  464. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  465. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +2 -2
  466. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +7 -7
  467. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +7 -7
  468. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +7 -7
  469. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  470. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -3
  471. package/app/.next-cli-build/server/app/dashboard/quota.rsc +8 -8
  472. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +8 -8
  473. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -8
  474. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  475. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  476. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  477. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  478. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +2 -2
  479. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  480. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  481. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  482. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
  483. package/app/.next-cli-build/server/app/dashboard/skills.html +2 -2
  484. package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
  485. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +7 -7
  486. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
  487. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  488. package/app/.next-cli-build/server/app/dashboard/token-saver.html +2 -2
  489. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
  490. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +7 -7
  491. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
  492. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  493. package/app/.next-cli-build/server/app/dashboard/translator.html +2 -2
  494. package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -7
  495. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +7 -7
  496. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
  497. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  498. package/app/.next-cli-build/server/app/dashboard/usage.html +2 -2
  499. package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
  500. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +7 -7
  501. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
  502. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  503. package/app/.next-cli-build/server/app/dashboard.html +2 -2
  504. package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
  505. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +7 -7
  506. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
  507. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  508. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  509. package/app/.next-cli-build/server/app/index.html +1 -1
  510. package/app/.next-cli-build/server/app/index.rsc +5 -5
  511. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +5 -5
  512. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
  513. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  514. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  515. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  516. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  517. package/app/.next-cli-build/server/app/landing.html +2 -2
  518. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  519. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  520. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  521. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +5 -5
  522. package/app/.next-cli-build/server/app/login/page.js +1 -1
  523. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  524. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  525. package/app/.next-cli-build/server/app/login.html +2 -2
  526. package/app/.next-cli-build/server/app/login.rsc +6 -6
  527. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
  528. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  529. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +6 -6
  530. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  531. package/app/.next-cli-build/server/app/page.js +1 -1
  532. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  533. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  534. package/app/.next-cli-build/server/app-paths-manifest.json +9 -9
  535. package/app/.next-cli-build/server/chunks/1159.js +1 -1
  536. package/app/.next-cli-build/server/chunks/1329.js +1 -1
  537. package/app/.next-cli-build/server/chunks/1710.js +1 -1
  538. package/app/.next-cli-build/server/chunks/2112.js +1 -1
  539. package/app/.next-cli-build/server/chunks/2120.js +1 -1
  540. package/app/.next-cli-build/server/chunks/2132.js +1 -1
  541. package/app/.next-cli-build/server/chunks/2468.js +1 -0
  542. package/app/.next-cli-build/server/chunks/2926.js +1 -1
  543. package/app/.next-cli-build/server/chunks/3245.js +1 -1
  544. package/app/.next-cli-build/server/chunks/3500.js +4 -4
  545. package/app/.next-cli-build/server/chunks/3535.js +1 -1
  546. package/app/.next-cli-build/server/chunks/3792.js +1 -1
  547. package/app/.next-cli-build/server/chunks/3885.js +1 -1
  548. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  549. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  550. package/app/.next-cli-build/server/chunks/4177.js +1 -1
  551. package/app/.next-cli-build/server/chunks/4282.js +1 -1
  552. package/app/.next-cli-build/server/chunks/436.js +1 -1
  553. package/app/.next-cli-build/server/chunks/4575.js +1 -1
  554. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  555. package/app/.next-cli-build/server/chunks/4927.js +1 -1
  556. package/app/.next-cli-build/server/chunks/5210.js +23 -23
  557. package/app/.next-cli-build/server/chunks/5330.js +2 -2
  558. package/app/.next-cli-build/server/chunks/539.js +1 -1
  559. package/app/.next-cli-build/server/chunks/5485.js +1 -1
  560. package/app/.next-cli-build/server/chunks/5615.js +1 -1
  561. package/app/.next-cli-build/server/chunks/5781.js +1 -1
  562. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  563. package/app/.next-cli-build/server/chunks/615.js +1 -1
  564. package/app/.next-cli-build/server/chunks/6306.js +1 -1
  565. package/app/.next-cli-build/server/chunks/6326.js +1 -1
  566. package/app/.next-cli-build/server/chunks/6492.js +1 -1
  567. package/app/.next-cli-build/server/chunks/6756.js +1 -1
  568. package/app/.next-cli-build/server/chunks/6763.js +1 -1
  569. package/app/.next-cli-build/server/chunks/6922.js +1 -1
  570. package/app/.next-cli-build/server/chunks/6956.js +1 -1
  571. package/app/.next-cli-build/server/chunks/6960.js +5 -5
  572. package/app/.next-cli-build/server/chunks/7067.js +1 -1
  573. package/app/.next-cli-build/server/chunks/7070.js +1 -0
  574. package/app/.next-cli-build/server/chunks/7122.js +1 -1
  575. package/app/.next-cli-build/server/chunks/7247.js +1 -1
  576. package/app/.next-cli-build/server/chunks/7274.js +1 -1
  577. package/app/.next-cli-build/server/chunks/7828.js +1 -1
  578. package/app/.next-cli-build/server/chunks/8172.js +2 -2
  579. package/app/.next-cli-build/server/chunks/8410.js +1 -1
  580. package/app/.next-cli-build/server/chunks/8499.js +13 -13
  581. package/app/.next-cli-build/server/chunks/8595.js +1 -1
  582. package/app/.next-cli-build/server/chunks/8672.js +1 -1
  583. package/app/.next-cli-build/server/chunks/8749.js +1 -1
  584. package/app/.next-cli-build/server/chunks/8895.js +6 -6
  585. package/app/.next-cli-build/server/chunks/890.js +1 -0
  586. package/app/.next-cli-build/server/chunks/8920.js +1 -1
  587. package/app/.next-cli-build/server/chunks/9046.js +1 -1
  588. package/app/.next-cli-build/server/chunks/9154.js +1 -1
  589. package/app/.next-cli-build/server/chunks/9489.js +2 -2
  590. package/app/.next-cli-build/server/chunks/9609.js +1 -1
  591. package/app/.next-cli-build/server/chunks/9628.js +1 -1
  592. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  593. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  594. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  595. package/app/.next-cli-build/server/middleware.js +4 -4
  596. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  597. package/app/.next-cli-build/server/pages/404.html +2 -2
  598. package/app/.next-cli-build/server/pages/500.html +1 -1
  599. package/app/.next-cli-build/static/chunks/1321-8478f2be717a38f6.js +1 -0
  600. package/app/.next-cli-build/static/chunks/5497-7d66b43a3bbcf07d.js +7 -0
  601. package/app/.next-cli-build/static/chunks/{6808-d3ffacc1373713c6.js → 6808-7c2c0ea1ee14763c.js} +1 -1
  602. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/experimental/page-5ec2e868aa2ff281.js +1 -0
  603. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-39a4fadcce4f3019.js +14 -0
  604. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-bc56399135571dd5.js +1 -0
  605. package/app/.next-cli-build/static/chunks/app/login/page-b5eb40dc7d4e285e.js +1 -0
  606. package/app/.next-cli-build/static/chunks/{webpack-34fe8baab4ced03b.js → webpack-1adc95943fa90500.js} +1 -1
  607. package/app/package.json +1 -1
  608. package/app/public/i18n/changelog/en.md +17 -0
  609. package/app/public/i18n/changelog/zh-CN.md +17 -0
  610. package/app/public/i18n/changelog/zh-TW.md +17 -0
  611. package/app/public/i18n/literals/zh-CN.json +10 -0
  612. package/app/public/i18n/literals/zh-TW.json +10 -0
  613. package/app/public/providers/muse.png +0 -0
  614. package/app/public/providers/v1m.png +0 -0
  615. package/package.json +1 -1
  616. package/src/cli/menus/providers.js +3 -2
  617. package/src/cli/utils/modelSelector.js +1 -1
  618. package/app/.next-cli-build/server/chunks/2051.js +0 -1
  619. package/app/.next-cli-build/server/chunks/4290.js +0 -1
  620. package/app/.next-cli-build/server/chunks/8247.js +0 -1
  621. package/app/.next-cli-build/static/chunks/1321-b226b10e6272fc21.js +0 -1
  622. package/app/.next-cli-build/static/chunks/5497-c5b293fd9b36c51d.js +0 -7
  623. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/experimental/page-f2be5e1e9fb2a81d.js +0 -1
  624. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-2bc7898568623185.js +0 -14
  625. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-f7223ed3275a94a5.js +0 -1
  626. package/app/.next-cli-build/static/chunks/app/login/page-0c4e2808c937c740.js +0 -1
  627. /package/app/.next-cli-build/static/{wj14lzSQILIu20--ipzW4 → hWZt96TEErc6dGwTZrX7O}/_buildManifest.js +0 -0
  628. /package/app/.next-cli-build/static/{wj14lzSQILIu20--ipzW4 → hWZt96TEErc6dGwTZrX7O}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- (()=>{var a={};a.id=2134,a.ids=[2134],a.modules={280:(a,b,c)=>{"use strict";c.d(b,{k:()=>l});var d=c(59160),e=c(18982);c(87592);let f=["none","low","medium","high"],g=["none","thinking"],h=["none","low","medium","high","max"],i={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":h,"claude-budget":["none","low","medium","high","xhigh","max"],"gemini-level":["minimal","low","medium","high"],"gemini-budget":f,zai:g,qwen:f,kimi:h,deepseek:["none","high","max"],minimax:g,hunyuan:f,step:f},j=["none","minimal","low","medium","high","xhigh","max"],k=[{provider:"codex",pattern:"*gpt-6*",levels:j},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...j,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...j,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:j},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{pattern:"*mimo*preview*",levels:["none","low","medium","high","xhigh"]},{pattern:"*mimo*v2.5-pro*",levels:["none","low","medium","high","xhigh"]},{provider:"amd",pattern:"DeepSeek-V4-Flash*",levels:["none","minimal","low","medium","high","xhigh","max"]},{provider:"amd",pattern:"Qwen3.8-Flash-Next",levels:["none","low","medium","xhigh"]},{provider:"codebuddy-cn",pattern:"glm-5.3*",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.2",levels:["high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"hy3*",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4*",levels:["high"]}];function l(a,b){if("kiro"===a&&null===function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(b))return"reasoning";if(!b.includes("claude"))return null;let c=b.match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);if(!c)return null;let[,d,e]=c,f=Number(d),g=void 0===e?null:Number(e);return f<4||4===f&&(null===g||g<=5||null!==g&&g>=1e3)?null:"output_config"}(b))return null;let c=(0,d.nl)(a,b);if(!c.reasoning)return null;let g=k.find(c=>(!c.provider||c.provider===a)&&(0,e.gH)(c.pattern,b)),h=g?.levels||i[c.thinkingFormat]||f;return!1===c.thinkingCanDisable&&(h=h.filter(a=>"none"!==a)),h}},643:a=>{"use strict";a.exports=require("node:perf_hooks")},924:(a,b,c)=>{"use strict";function d(a,b=Date.now()){let c=function(a){let b=a?.promoFreeUntil;if("string"!=typeof b||""===b.trim())return null;let c=Date.parse(b);return Number.isFinite(c)?c:null}(a);return null!==c&&b<c}c.d(b,{s:()=>d})},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},9422:(a,b,c)=>{Promise.resolve().then(c.bind(c,83380))},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13355:(a,b,c)=>{"use strict";function d(a){if("string"!=typeof a)return null;let b=/^(\d{1,2}):(\d{2})$/.exec(a.trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:60*c+d}function e(a,b=Date.now()){let c;if(!a||"object"!=typeof a)return null;let f=d(a.window_start),g=d(a.window_end);if(null===f||null===g||f===g)return null;let h=a.timezone||"Asia/Singapore",i=function(a,b=Date.now()){try{let c=new Intl.DateTimeFormat("en-GB",{timeZone:a,hourCycle:"h23",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(new Date(b)),d=a=>Number(c.find(b=>b.type===a)?.value),e=d("hour"),f=d("minute"),g=d("second");if([e,f,g].some(a=>!Number.isFinite(a)))return null;return{hour:e,minute:f,second:g,secondsOfDay:3600*e+60*f+g}}catch{return null}}(h,b);if(!i)return null;let j=i.minute+60*i.hour,k=f<=g?j>=f&&j<g:j>=f||j<g;return c=k?(60*g-i.secondsOfDay+86400)%86400:(60*f-i.secondsOfDay+86400)%86400,{active:k,secondsToBoundary:c,windowLabel:`${a.window_start}–${a.window_end}`,timezone:h}}function f(a,b){return a&&"object"==typeof a&&(b&&String(b).startsWith("zh")?a.zh||a.en:a.en||a.zh)||""}function g(a){return!Number.isFinite(a)||a<0?"--:--:--":[Math.floor(a/3600),Math.floor(a%3600/60),Math.floor(a%60)].map(a=>String(a).padStart(2,"0")).join(":")}c.d(b,{Fp:()=>e,fn:()=>f,zt:()=>g})},14985:a=>{"use strict";a.exports=require("dns")},16528:(a,b,c)=>{"use strict";function d(a,b){if(!Array.isArray(a)||!Array.isArray(b)||0===b.length)return a;let c=new Map(b.map(a=>[String(a.id).split("/").pop(),a]));return a.map(a=>{let b=c.get(a.id);return b?{...a,rateMultiplier:"number"==typeof b.rateMultiplier?b.rateMultiplier:a.rateMultiplier,promotion:b.promotion??a.promotion??null}:a})}c.d(b,{U:()=>d})},16698:a=>{"use strict";a.exports=require("node:async_hooks")},18753:(a,b,c)=>{"use strict";function d({customModels:a=[],modelAliases:b={},providerAlias:c,builtInModels:e=[],type:f="llm",includeLegacyAliases:g=!0}){let h=new Set(e.map(a=>a.id)),i=new Set,j=[];for(let b of a){if(!b?.id||b.providerAlias!==c)continue;let a=b?.kind||b?.type||"llm";if(f&&a!==f||h.has(b.id))continue;let d=`${c}/${b.id}`;i.has(d)||(i.add(d),j.push({id:b.id,name:b.name||b.id,fullModel:d,source:"custom",type:a,enabled:!1!==b.enabled,...void 0===b.vision?{}:{vision:b.vision},...void 0===b.reasoning?{}:{reasoning:b.reasoning},...void 0===b.contextWindow?{}:{contextWindow:b.contextWindow},...void 0===b.maxOutput?{}:{maxOutput:b.maxOutput}}))}if(!g)return j;let k=`${c}/`;for(let[a,c]of Object.entries(b||{})){if("string"!=typeof c||!c.startsWith(k))continue;let b=c.slice(k.length);!b||h.has(b)||i.has(c)||(i.add(c),j.push({id:b,alias:a,fullModel:c,source:"legacyAlias",type:f||"llm"}))}return j}c.d(b,{R:()=>d})},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19863:(a,b,c)=>{"use strict";c.d(b,{A:()=>h});var d=c(48249),e=c(67484),f=c(99258),g=c(13355);function h({promotion:a}){let[b,c]=(0,e.useState)(()=>Date.now()),i=(0,g.Fp)(a,b);if(!i)return null;let j=(0,g.fn)(a?.badge,(0,f.kk)()),k=(0,g.fn)(a?.description,(0,f.kk)()),l=(0,g.zt)(i.secondsToBoundary),m=i.active?`${(0,f.Tl)("Off-peak discount active")} \xb7 ${l} ${(0,f.Tl)("until standard rate")}`:`${l} ${(0,f.Tl)("until off-peak discount")}`;return(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 rounded-[10px] bg-green-500/10 px-3 py-2 text-xs text-green-600 dark:text-green-400",title:k||void 0,children:[(0,d.jsx)("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"eco"}),(0,d.jsx)("span",{className:"font-medium",children:m}),j&&(0,d.jsxs)("span",{className:"opacity-80",children:["\xb7 ",j]}),(0,d.jsxs)("span",{className:"ml-auto font-mono opacity-60",children:[i.windowLabel," ",i.timezone]})]})}},20773:(a,b,c)=>{"use strict";c.d(b,{A:()=>h});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f);function h({until:a,inline:b=!1}){let[c,f]=(0,e.useState)("");return c?b?(0,d.jsxs)("span",{className:"shrink-0 text-xs text-orange-500 font-mono",children:[(0,d.jsx)("span",{className:"text-[0.85em] leading-none",children:"⏱"})," ",c]}):(0,d.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:[(0,d.jsx)("span",{className:"text-[0.85em] leading-none",children:"⏱"})," ",c]}):null}h.propTypes={until:g().string.isRequired,inline:g().bool}},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33361:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>x,handler:()=>z,routeModule:()=>y});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v={children:["",{children:["(dashboard)",{children:["dashboard",{children:["providers",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,93110))),"F:\\Files\\GitHub Files\\10router\\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,"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"F:\\Files\\GitHub Files\\10router\\src\\app\\layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,w=(0,e.H)({tree:v,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),x=w.__next_app__,y=w.routeModule,z=w.handler},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38331:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>q});var e=c(48249),f=c(67484),g=c(74875),h=c(99258),i=c(73813),j=c(51543),k=c(95139),l=c(49885),m=c.n(l),n=c(94579),o=c(20773),p=a([n]);function q({connection:a,proxyPools:b,isOAuth:c,isFirst:d,isLast:l,onMoveUp:m,onMoveDown:p,onToggleActive:r,onUpdateProxy:s,onEdit:t,onDelete:u,oneByOneStatus:v=null,autoPing:w=null}){let[x,y]=(0,f.useState)(!1),[z,A]=(0,f.useState)(!1),B=(0,f.useRef)(null),C=new Map((b||[]).map(a=>[a.id,a])),D=a.providerSpecificData?.proxyPoolId||null,E=D?C.get(D):null,F=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,G=!!D||F,H=E?`Pool: ${E.name}`:D?`Pool: ${D} (inactive/missing)`:F?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",I=w?.provider==="codex"?"Auto-starts the next 5h Codex window after reset by sending a tiny gpt-5.5 request. Consumes a small amount of quota.":"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",J="";if(E?.proxyUrl||a.providerSpecificData?.connectionProxyUrl){let b=E?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);J=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{J=b}}let K=E?.noProxy||a.providerSpecificData?.connectionNoProxy||"",L="default";E?.isActive===!0?L="success":(D||F)&&(L="error");let M=async a=>{A(!0);try{await s("__none__"===a?null:a)}finally{A(!1),y(!1)}},N=a.authType||(c?"oauth":"apikey"),O="oauth"===N,P="cookie"===N,Q=a.providerSpecificData?.authMethod,R="string"==typeof a.accessToken?a.accessToken:"",S=a.hasDesktopSession??!!a.providerSpecificData?.mimoPassToken,T=a.hasAccessToken??(R.length>0&&!R.startsWith("mimo-desktop-session")),U="desktop-session"===Q||S&&!T,V=S&&T,W=!V&&!U&&"oauth"===Q,X=U||V?(0,h.Tl)("Desktop Session"):W?(0,h.Tl)("Browser sign-in"):O?"OAuth":P?"Cookie":"API Key",Y=V?(0,h.Tl)("Browser sign-in"):null,Z=a.providerSpecificData?.mimoUserId||a.providerSpecificData?.uid||null,$=("xiaomi-mimo"===a.provider||"xiaomi-tokenplan"===a.provider)&&Z?`MiMo ${Z}`:null,_=a.name?.trim()||$||a.email?.trim()||a.displayName?.trim()||(O?"OAuth Account":P?"Cookie Account":"API Key"),aa=a.name?.trim()&&a.email?.trim()&&a.name.trim()!==a.email.trim()||$&&a.email?.trim()&&a.email.trim()!==$?a.email.trim():a.name?.trim()&&a.displayName?.trim()&&a.name.trim()!==a.displayName.trim()?a.displayName.trim():null,[ab,ac]=(0,f.useState)(!1),ad=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,ae="unavailable"!==a.testStatus||ab?a.testStatus:"active",af=!1!==a.isActive?(0,i.O)(a.lastError):null,{copied:ag,copy:ah}=(0,k.C)(),ai=()=>v?"queued"===v.state?(0,h.Tl)("queued"):"testing"===v.state?(0,h.Tl)("testing"):"success"===v.state?(0,h.Tl)("success"):"failed"===v.state?v.error?`${(0,h.Tl)("failed")}: ${v.error}`:(0,h.Tl)("failed"):null:null;return(0,e.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===a.isActive?"opacity-60":""}`,children:[(0,e.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,e.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,e.jsx)("button",{onClick:m,disabled:d,className:`p-0.5 rounded ${d?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,e.jsx)("button",{onClick:p,disabled:l,className:`p-0.5 rounded ${l?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,e.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:S?"computer":W?"login":P?"cookie":O?"lock":"key"}),(0,e.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,e.jsx)("p",{className:"text-sm font-medium truncate",children:_}),aa&&(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:aa}),(0,e.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,e.jsx)(n.Ex,{variant:(0,g.g)(a.isActive,ae),size:"sm",dot:!0,children:!1===a.isActive?(0,h.Tl)("disabled"):ae||(0,h.Tl)("Unknown")}),(0,e.jsx)(n.Ex,{variant:"default",size:"sm",children:X}),Y&&(0,e.jsx)(n.Ex,{variant:"default",size:"sm",children:Y}),G&&(0,e.jsx)(n.Ex,{variant:L,size:"sm",children:"Proxy"}),a.earliestPackageExpiry&&(0,e.jsxs)(n.Ex,{variant:"outline",size:"sm",title:`${(0,h.Tl)("Earliest package")}: ${a.earliestPackageName||(0,h.Tl)("Quota package")} (${new Date(a.earliestPackageExpiry).toLocaleString()})`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[12px] mr-1",children:"schedule"}),function(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return(0,h.Tl)("expired");let c=Math.floor(b/36e5);if(c<24)return`${c}h`;let d=Math.floor(c/24);return d<30?c%24?`${d}d ${c%24}h`:`${d}d`:new Date(a).toLocaleDateString()}(a.earliestPackageExpiry)]}),ab&&!1!==a.isActive&&!a.lastError&&(0,e.jsx)(o.A,{until:ad}),a.lastError&&!1!==a.isActive&&(0,e.jsxs)("span",{className:"inline-flex items-center gap-1 max-w-full truncate text-xs text-red-500 sm:max-w-[380px]",title:(0,j.DY)(a.lastError),children:[ab&&(0,e.jsx)(o.A,{until:ad,inline:!0}),(0,j.DY)(a.lastError)]}),af&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("a",{href:af,target:"_blank",rel:"noopener noreferrer",title:(0,h.Tl)("Recommended: open in an incognito window and sign in with the affected account"),className:"shrink-0 text-xs text-blue-500 underline hover:text-blue-400",children:(0,h.Tl)("Verify your account")}),(0,e.jsx)("button",{type:"button",onClick:()=>ah(af,"verification"),title:(0,h.Tl)("Copy link"),className:"shrink-0 text-xs text-text-muted hover:text-primary",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm align-middle",children:"verification"===ag?"check":"content_copy"})})]}),(0,e.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]}),a.globalPriority&&(0,e.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",a.globalPriority]}),ai()&&(0,e.jsx)(n.Ex,{variant:v?"success"===v.state?"success":"failed"===v.state?"error":"testing"===v.state?"primary":"default":"default",size:"sm",children:ai()})]}),G&&(0,e.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,e.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:H,children:H}),J&&(0,e.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:J}),K&&(0,e.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:K,children:["no_proxy: ",K]})]})]})]}),(0,e.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,e.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(b||[]).length>0&&(0,e.jsxs)("div",{className:"relative",ref:B,children:[(0,e.jsxs)("button",{onClick:()=>y(a=>!a),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${G?"text-primary":"text-text-muted hover:text-primary"}`,disabled:z,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:z?"progress_activity":"lan"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),x&&(0,e.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,e.jsx)("button",{onClick:()=>M("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!D?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,e.jsx)("button",{onClick:()=>M(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${D===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]})]}),w&&(0,e.jsx)(n.m_,{text:I,children:(0,e.jsxs)("button",{onClick:()=>w.onToggle(!w.on),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${w.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,e.jsxs)("button",{onClick:t,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,e.jsxs)("button",{onClick:u,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,e.jsx)(n.lM,{size:"sm",checked:a.isActive??!0,onChange:r,title:a.isActive??!0?"Disable connection":"Enable connection"})]})]})}n=(p.then?(await p)():p)[0],q.propTypes={connection:m().shape({id:m().string,name:m().string,email:m().string,displayName:m().string,modelLockUntil:m().string,testStatus:m().string,isActive:m().bool,lastError:m().string,priority:m().number,globalPriority:m().number}).isRequired,proxyPools:m().arrayOf(m().shape({id:m().string,name:m().string,proxyUrl:m().string,noProxy:m().string,isActive:m().bool})),isOAuth:m().bool.isRequired,isFirst:m().bool.isRequired,isLast:m().bool.isRequired,onMoveUp:m().func.isRequired,onMoveDown:m().func.isRequired,onToggleActive:m().func.isRequired,onUpdateProxy:m().func,onEdit:m().func.isRequired,onDelete:m().func.isRequired,oneByOneStatus:m().shape({state:m().string,error:m().string}),autoPing:m().shape({on:m().bool,onToggle:m().func,provider:m().string})},d()}catch(a){d(a)}})},38522:a=>{"use strict";a.exports=require("node:zlib")},39968:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>k});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=a([i]);function k({isOpen:a,node:b,onSave:c,onClose:d,isAnthropic:g}){let[h,j]=(0,f.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),[l,m]=(0,f.useState)(!1),[n,o]=(0,f.useState)(""),[p,q]=(0,f.useState)(""),[r,s]=(0,f.useState)(!1),[t,u]=(0,f.useState)(null),v=async()=>{if(h.name.trim()&&h.prefix.trim()&&h.baseUrl.trim()){m(!0);try{let a={name:h.name,prefix:h.prefix,baseUrl:h.baseUrl};g||(a.apiType=h.apiType),await c(a)}finally{m(!1)}}},w=async()=>{s(!0);try{let a=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:h.baseUrl,apiKey:n,type:g?"anthropic-compatible":"openai-compatible",modelId:p.trim()||void 0})}),b=await a.json();u(b.valid?"success":"failed")}catch{u("failed")}finally{s(!1)}};return b?(0,e.jsx)(i.aF,{isOpen:a,title:`Edit ${g?"Anthropic":"OpenAI"} Compatible`,onClose:d,children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)(i.pd,{label:"Name",value:h.name,onChange:a=>j({...h,name:a.target.value}),placeholder:`${g?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,e.jsx)(i.pd,{label:"Prefix",value:h.prefix,onChange:a=>j({...h,prefix:a.target.value}),placeholder:g?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!g&&(0,e.jsx)(i.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:h.apiType,onChange:a=>j({...h,apiType:a.target.value})}),(0,e.jsx)(i.pd,{label:"Base URL",value:h.baseUrl,onChange:a=>j({...h,baseUrl:a.target.value}),placeholder:g?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${g?"Anthropic":"OpenAI"}-compatible API.`}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.pd,{label:"API Key (for Check)",type:"password",value:n,onChange:a=>o(a.target.value),className:"flex-1"}),(0,e.jsx)("div",{className:"pt-6",children:(0,e.jsx)(i.$n,{onClick:w,disabled:!n||r||!h.baseUrl.trim(),variant:"secondary",children:r?"Checking...":"Check"})})]}),(0,e.jsx)(i.pd,{label:"Model ID (optional)",value:p,onChange:a=>q(a.target.value),placeholder:"e.g. my-model-id",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),t&&(0,e.jsx)(i.Ex,{variant:"success"===t?"success":"error",children:"success"===t?"Valid":"Invalid"}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:v,fullWidth:!0,disabled:!h.name.trim()||!h.prefix.trim()||!h.baseUrl.trim()||l,children:l?"Saving...":"Save"}),(0,e.jsx)(i.$n,{onClick:d,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}i=(j.then?(await j)():j)[0],k.propTypes={isOpen:h().bool.isRequired,node:h().shape({id:h().string,name:h().string,prefix:h().string,apiType:h().string,baseUrl:h().string}),onSave:h().func.isRequired,onClose:h().func.isRequired,isAnthropic:h().bool},d()}catch(a){d(a)}})},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},42076:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>r});var e=c(48249),f=c(49885),g=c.n(f),h=c(67484),i=c(74429),j=c(94579),k=c(924),l=c(94317),m=c(13355),n=c(99258),o=a([j]);j=(o.then?(await o)():o)[0];let s=a=>{let b=Number(String(a).trim());return Number.isFinite(b)&&b>0?Math.floor(b):null};function p({label:a,builtIn:b,value:c,onChange:d,invalid:f,autoFocus:g}){return(0,e.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,e.jsxs)("span",{className:"flex items-baseline justify-between gap-2 text-text-muted",children:[(0,e.jsx)("span",{children:a}),b?(0,e.jsxs)("span",{className:"font-mono text-[10px] text-text-subtle",children:[(0,n.Tl)("Built-in")," ",b]}):null]}),(0,e.jsx)("input",{type:"number",min:"1",step:"1",value:c,autoFocus:g,onChange:a=>d(a.target.value),placeholder:b?String(b):(0,n.Tl)("Not set"),className:`rounded-md border bg-bg px-2 py-1.5 font-mono text-text focus:outline-none ${f?"border-red-500":"border-border focus:border-primary"}`})]})}function q({caps:a,baseCaps:b,pinned:c,label:d,onSave:f}){let[g,j]=(0,h.useState)(!1),[k,l]=(0,h.useState)(!1),[m,o]=(0,h.useState)(null),[r,t]=(0,h.useState)(""),[u,v]=(0,h.useState)(""),w=(0,h.useRef)(null),x=(0,h.useRef)(null),y=b?.contextWindow??null,z=b?.maxOutput??null,A=s(r),B=s(u),C=""!==r.trim()&&null===A,D=""!==u.trim()&&null===B,E=!k&&!C&&!D;(0,h.useCallback)(()=>{let a=w.current;if(!a)return;let b=a.getBoundingClientRect(),c=x.current?.offsetWidth||300,d=x.current?.offsetHeight||300,e=window.innerHeight-b.bottom-8,f=e<d&&b.top-8>e;o({left:Math.min(Math.max(8,b.right-c),Math.max(8,window.innerWidth-c-8)),top:f?void 0:b.bottom+6,bottom:f?window.innerHeight-b.top+6:void 0})},[]);let F=async a=>{l(!0);try{await f(a?{contextWindow:null,maxOutput:null}:{contextWindow:A,maxOutput:B}),j(!1)}finally{l(!1)}};return(0,e.jsxs)("div",{className:"relative shrink-0",children:[(0,e.jsx)("button",{ref:w,onClick:()=>{g?j(!1):(t(a?.contextWindow?String(a.contextWindow):""),v(a?.maxOutput?String(a.maxOutput):""),j(!0))},"aria-haspopup":"dialog","aria-expanded":g,className:`rounded p-0.5 transition-colors hover:bg-sidebar ${c?"text-primary":"text-text-muted hover:text-primary"}`,title:(0,n.Tl)("Model limits"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"tune"})}),g&&"u">typeof document&&(0,i.createPortal)((0,e.jsxs)("div",{ref:x,role:"dialog","aria-label":(0,n.Tl)("Model limits"),onKeyDown:a=>{"Enter"===a.key&&E&&(a.preventDefault(),F(!1))},style:{position:"fixed",width:300,left:m?.left??0,top:m?.top,bottom:m?.bottom,visibility:m?"visible":"hidden"},className:"z-50 flex flex-col gap-2.5 rounded-xl border border-border bg-surface p-3 text-xs shadow-[var(--shadow-elev)]",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between gap-2 border-b border-border-subtle pb-2",children:[(0,e.jsx)("span",{className:"min-w-0 truncate font-medium text-text",children:d||(0,n.Tl)("Model limits")}),c?(0,e.jsx)("span",{className:"shrink-0 rounded-full bg-primary/10 px-2 py-0.5 text-[10px] text-primary",children:(0,n.Tl)("Overridden")}):null]}),(0,e.jsx)(p,{label:(0,n.Tl)("Context window"),builtIn:y,value:r,onChange:t,invalid:C,autoFocus:!0}),(0,e.jsx)(p,{label:(0,n.Tl)("Max output"),builtIn:z,value:u,onChange:v,invalid:D}),(C||D)&&(0,e.jsx)("p",{className:"text-[10px] leading-snug text-red-500",children:(0,n.Tl)("Enter a whole number greater than 0")}),null!==A&&null!==B&&B>A&&(0,e.jsx)("p",{className:"text-[10px] leading-snug text-amber-600 dark:text-amber-400",children:(0,n.Tl)("Max output is larger than the context window")}),(0,e.jsx)("p",{className:"text-[10px] leading-snug text-text-muted/70",children:(0,n.Tl)("Overrides the built-in catalog values")}),(0,e.jsxs)("div",{className:"flex items-center justify-end gap-2 border-t border-border-subtle pt-2",children:[(0,e.jsx)("button",{className:"rounded px-2 py-1 text-text-muted hover:text-red-500 disabled:opacity-40",onClick:()=>F(!0),disabled:k||!c,children:(0,n.Tl)("Restore built-in")}),(0,e.jsx)("button",{className:"rounded bg-primary px-2.5 py-1 text-white disabled:opacity-50",onClick:()=>F(!1),disabled:!E,children:(0,n.Tl)("Save")})]})]}),document.body)]})}function r({model:a,fullModel:b,alias:c,copied:d,onCopy:f,testStatus:g,isCustom:i,isFree:o,onDeleteAlias:p,onTest:s,isTesting:t,onDisable:u,onEnable:v,caps:w,baseCaps:x,thinkingSuffix:y,onSaveCaps:z,capsPinned:A}){let B=function(){let[a,b]=(0,h.useState)(()=>new Date().getHours());return a}(),C=y?`${b}(${y})`:b,D="number"==typeof a.rateMultiplier?a.rateMultiplier:null,E=(0,l.X)(B,a.nightFree),F=null!==D&&D>0&&(0,k.s)(a),G=F?0:D,H=E||0===G,I=function(a){let[b,c]=(0,h.useState)(()=>Date.now());return a&&(a.window_start,a.window_end,a.timezone),(0,m.Fp)(a,b)}(a.promotion),J="ok"===g?"#22c55e":"error"===g?"#ef4444":void 0;return(0,e.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===g?"border-green-500/40":"error"===g?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,e.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,e.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:J?{color:J}:void 0,children:"ok"===g?"check_circle":"error"===g?"cancel":"smart_toy"}),(0,e.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,e.jsx)("code",{className:"max-w-[72vw] truncate rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:C}),(0,e.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[a.name&&(0,e.jsx)("span",{className:"truncate text-[9px] italic text-text-muted/70",children:a.name}),(0,e.jsx)(j.nh,{caps:w,colorOverride:"text-text-muted/70",size:12}),(null!==G||E)&&(0,e.jsx)(j.m_,{text:E?`${(0,n.Tl)("Night-free window")} (23:00–08:00) — ${(0,n.Tl)("rides the free quota")}`:F?(0,n.Tl)("Credit multiplier")+`: ${D}x — `+(0,n.Tl)("promo free until")+` ${a.promoFreeUntil}`:0===G?(0,n.Tl)("Credit multiplier")+": 0x — "+(0,n.Tl)("rides the free quota"):(0,n.Tl)("Credit multiplier")+`: ${G}x`,children:(0,e.jsx)(j.Ex,{size:"sm",variant:H?"success":"default",className:`shrink-0 cursor-help leading-none${H?"":" font-mono"}`,children:H?"free":`${G.toFixed(2)}x`})}),I&&(0,e.jsx)(j.m_,{text:[(0,m.fn)(a.promotion?.badge,(0,n.kk)())||(0,n.Tl)("Off-peak discount"),(0,m.fn)(a.promotion?.description,(0,n.kk)()),`${I.windowLabel} ${I.timezone}${I.active?` — ${(0,n.Tl)("active now")}`:""}`].filter(Boolean).join(" \xb7 "),children:(0,e.jsx)(j.Ex,{size:"sm",variant:I.active?"success":"default",className:"shrink-0 cursor-help leading-none",children:(0,e.jsx)("span",{className:"material-symbols-outlined align-[-1px]",style:{fontSize:10},children:"eco"})})})]})]}),z&&(0,e.jsx)(q,{caps:w,baseCaps:x,pinned:A,label:a.name||b,onSave:z}),s&&(0,e.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,e.jsx)("button",{onClick:s,disabled:t,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${t?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",style:t?{animation:"spin 1s linear infinite"}:void 0,children:t?"progress_activity":"science"})}),(0,e.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:t?"Testing...":"Test"})]}),(0,e.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,e.jsx)("button",{onClick:()=>f(C,`model-${a.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:d===`model-${a.id}`?"check":"content_copy"})}),(0,e.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:d===`model-${a.id}`?"Copied!":"Copy"})]}),i?(0,e.jsx)("button",{onClick:p,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):v?(0,e.jsx)("button",{onClick:v,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-green-500/10 hover:text-green-500",title:(0,n.Tl)("Enable this model"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"})}):u?(0,e.jsx)("button",{onClick:u,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}r.propTypes={model:g().shape({id:g().string.isRequired,rateMultiplier:g().number,promotion:g().object,nightFree:g().shape({from:g().number,to:g().number})}).isRequired,fullModel:g().string.isRequired,alias:g().string,copied:g().string,onCopy:g().func.isRequired,testStatus:g().oneOf(["ok","error"]),isCustom:g().bool,isFree:g().bool,onDeleteAlias:g().func,onTest:g().func,isTesting:g().bool,onDisable:g().func,onEnable:g().func,caps:g().object,baseCaps:g().object,thinkingSuffix:g().string,onSaveCaps:g().func,capsPinned:g().bool},d()}catch(a){d(a)}})},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},51543:(a,b,c)=>{"use strict";c.d(b,{DY:()=>g});var d=c(99258);let e=/subscription_quota_exhausted|本周用量已满|本周额度已用完/i;function f(a,b){return(0,d.Tl)(a).replace("{n}",String(b))}function g(a){if(!a||"string"!=typeof a)return a??"";let b=(0,d.Tl)(a);if(b&&b!==a)return b;if(e.test(a))return(0,d.Tl)("Subscription quota used up. Please wait for the quota reset.");if(/Individual quota reached|QUOTA_EXHAUSTED|RESOURCE_EXHAUSTED/i.test(a)){let b,c,e,g,h,i,j,k,{delay:l,timestamp:m}=(b=String(a||""),c=null,e=null,g=/"quotaResetDelay"\s*:\s*"([^"]+)"/.exec(b),h=/\bResets in\s+([0-9hms.]+)/i.exec(b),c=g&&g[1]||h&&h[1]||null,i=/"quotaResetTimeStamp"\s*:\s*"([^"]+)"/.exec(b),j=/"quotaResetTimeStamp"\s*:\s*(".*?"|\S+)/.exec(b),(e=i&&i[1]||j&&j[1]||null)&&(e=e.replace(/^"|"$/g,"")),{delay:c,timestamp:e}),n=function(a){if(!a)return"";let{h:b,m:c,s:d}=a;if(d>=60&&(c+=Math.floor(d/60),d%=60),c>=60&&(b+=Math.floor(c/60),c%=60),b>=24){let a=Math.floor(b/24),c=b%24;return c>0?`${f("{n}d",a)} ${f("{n}h",c)}`:f("{n}d",a)}let e=[];return b>0&&e.push(f("{n}h",b)),c>0&&e.push(f("{n}m",c)),(d>0||0===e.length)&&e.push(f("{n}s",d)),e.join(" ")}((k=/^(?:(\d+(?:\.\d+)?)h)?(?:(\d+(?:\.\d+)?)m)?(?:(\d+(?:\.\d+)?)s)?$/i.exec(String(l||"").trim()))&&(k[1]||k[2]||k[3])?{h:Math.floor(parseFloat(k[1]||0)),m:Math.floor(parseFloat(k[2]||0)),s:Math.round(parseFloat(k[3]||0))}:null),o=m?function(a){let b=new Date(a);if(Number.isNaN(b.getTime()))return a||"";try{return b.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return b.toISOString()}}(m):"",p=(0,d.Tl)("Individual quota reached. Resets at {time} (in {duration}).");return(p=p.replace("{time}",o||(0,d.Tl)("shortly"))).replace("{duration}",n||(0,d.Tl)("a short while"))}return b}},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},72022:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=c(99258),k=a([i]);function l({isOpen:a,mode:b,provider:c,providerName:d,dashboardPassword:g,onClose:h,onSuccess:k}){let[m,n]=(0,f.useState)(""),[o,p]=(0,f.useState)(""),[q,r]=(0,f.useState)(!1),[s,t]=(0,f.useState)(""),[u,v]=(0,f.useState)(null),[w,x]=(0,f.useState)(""),[y,z]=(0,f.useState)(null),A=(0,f.useRef)(null),B=(0,f.useRef)(null),C=a=>{clearTimeout(B.current),B.current=setTimeout(()=>{B.current=null,D(),h()},a)},D=()=>{n(""),p(""),r(!1),t(""),v(null),x(""),z(null),A.current&&(A.current.value="")},E={"Content-Type":"application/json","x-10r-password":g||""},F=async()=>{if(t(""),v(null),clearTimeout(B.current),m.length<4)return void t((0,j.Tl)("Passphrase must be at least 4 characters"));if(m!==o)return void t((0,j.Tl)("Passphrases do not match"));r(!0);try{let a=await fetch("/api/oauth/transfer/export",{method:"POST",headers:E,body:JSON.stringify({provider:c,passphrase:m})}),b=await a.json();if(!a.ok)throw Error((0,j.Tl)(b?.error)||`Request failed: ${a.status}`);let d=JSON.stringify(b.blob,null,2),e=URL.createObjectURL(new Blob([d],{type:"application/json"})),f=document.createElement("a");f.href=e,f.download=`oauth-${c}-transfer-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(f),f.click(),f.remove(),setTimeout(()=>URL.revokeObjectURL(e),1e3),v({exported:b.count}),C(1200)}catch(a){t(a.message||(0,j.Tl)("Export failed"))}finally{r(!1)}},G=async()=>{if(t(""),v(null),clearTimeout(B.current),!y)return void t((0,j.Tl)("Pick a transfer file first"));if(!m)return void t((0,j.Tl)("Transfer passphrase required"));r(!0);try{let a=await fetch("/api/oauth/transfer/import",{method:"POST",headers:E,body:JSON.stringify({provider:c,passphrase:m,blob:y})}),b=await a.json();if(!a.ok){if(401===a.status&&/passphrase/i.test(b?.error||""))throw Error((0,j.Tl)("Wrong passphrase"));throw Error((0,j.Tl)(b?.error)||`Request failed: ${a.status}`)}v(b),"function"==typeof k&&k(),(b?.imported||0)+(b?.updated||0)>0&&C(1800)}catch(a){t(a.message||(0,j.Tl)("Import failed"))}finally{r(!1)}};return(0,e.jsx)(i.aF,{isOpen:a,title:"export"===b?(0,j.Tl)("Export OAuth accounts"):(0,j.Tl)("Import OAuth accounts"),onClose:()=>{q||(clearTimeout(B.current),B.current=null,D(),h())},children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[(0,j.Tl)("Provider"),": ",(0,e.jsx)("span",{className:"font-medium text-text-main",children:d||c})]}),"export"===b?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.pd,{type:"password",reveal:!0,label:(0,j.Tl)("Transfer passphrase"),value:m,onChange:a=>n(a.target.value),placeholder:"••••••••"}),(0,e.jsx)(i.pd,{type:"password",reveal:!0,label:(0,j.Tl)("Confirm passphrase"),value:o,onChange:a=>p(a.target.value),placeholder:"••••••••"})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted",children:(0,j.Tl)("The file is encrypted with this passphrase — it is required again at import, and cannot be recovered.")}),s&&(0,e.jsx)("p",{className:"text-xs text-red-500",children:s}),u&&(0,e.jsxs)("p",{className:"text-xs text-green-600",children:[(0,j.Tl)("Export complete")," — ",u.exported," ",(0,j.Tl)("accounts exported")]}),(0,e.jsx)(i.$n,{onClick:F,disabled:q,fullWidth:!0,children:(0,j.Tl)("Export encrypted file")})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.pd,{label:(0,j.Tl)("Transfer file"),value:w,readOnly:!0,placeholder:(0,j.Tl)("Pick a transfer file first"),className:"cursor-pointer",onClick:()=>A.current?.click()}),(0,e.jsx)("input",{ref:A,type:"file",accept:".json,application/json",className:"hidden",onChange:a=>{let b=a.target.files?.[0];if(!b)return;x(b.name),t(""),v(null);let c=new FileReader;c.onload=()=>{try{let a=JSON.parse(String(c.result||""));if(a?.format!=="10router-oauth-secure-v1"){t((0,j.Tl)("Unrecognized transfer file (expected an encrypted OAuth transfer)")),z(null);return}z(a)}catch(a){t(`${(0,j.Tl)("Invalid JSON")}: ${a.message}`),z(null)}},c.onerror=()=>t((0,j.Tl)("Failed to read file")),c.readAsText(b)}}),(0,e.jsx)(i.pd,{type:"password",reveal:!0,label:(0,j.Tl)("Transfer passphrase"),value:m,onChange:a=>n(a.target.value),placeholder:"••••••••"}),s&&(0,e.jsx)("p",{className:"text-xs text-red-500",children:s}),u&&(0,e.jsx)("div",{className:"text-xs text-text-muted",children:(0,e.jsxs)("p",{children:[(0,j.Tl)("Import complete"),": ",u.imported||0," ",(0,j.Tl)("imported"),", ",u.updated||0," ",(0,j.Tl)("updated"),(u.failed||0)>0?`, ${u.failed} ${(0,j.Tl)("failed")}`:""]})}),(0,e.jsx)(i.$n,{onClick:G,disabled:q,fullWidth:!0,children:(0,j.Tl)("Import connections")})]})]})})}i=(k.then?(await k)():k)[0],l.propTypes={isOpen:h().bool.isRequired,mode:h().oneOf(["export","import"]).isRequired,provider:h().string.isRequired,providerName:h().string,dashboardPassword:h().string,onClose:h().func.isRequired,onSuccess:h().func},d()}catch(a){d(a)}})},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},73813:(a,b,c)=>{"use strict";c.d(b,{O:()=>e});let d=/https:\/\/accounts\.google\.com\/signin\/continue[^\s"'<>)\]]+/;function e(a){if("string"!=typeof a)return null;let b=d.exec(a);return b?b[0]:null}},74075:a=>{"use strict";a.exports=require("zlib")},74875:(a,b,c)=>{"use strict";function d(a,b){return!1===a?"default":"active"===b||"success"===b?"success":"error"===b||"expired"===b||"unavailable"===b?"error":"default"}c.d(b,{g:()=>d})},74918:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},79868:a=>{"use strict";a.exports=require("node:sqlite")},80445:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=c(91431),k=a([i]);function l({isOpen:a,providerAlias:b,providerDisplayAlias:c,onSave:d,onClose:g}){let[h,k]=(0,f.useState)(""),[m,n]=(0,f.useState)(null),[o,p]=(0,f.useState)(""),[q,r]=(0,f.useState)(!1),[s,t]=(0,f.useState)(""),[u,v]=(0,f.useState)(""),[w,x]=(0,f.useState)("llm"),[y,z]=(0,f.useState)(""),A=a=>{let c=`${b}/`;return a.startsWith(c)?a.slice(c.length):a},B=async()=>{let a=A(h.trim());if(a){n("testing"),p("");try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${b}/${a}`})}),d=await c.json();n(d.ok?"ok":"error"),p(d.error||"")}catch(a){n("error"),p(a.message)}}},C=async()=>{let a=A(h.trim());if(!a||q)return;r(!0);let b=a=>{let b=Number(String(a).trim());return Number.isFinite(b)&&b>0?Math.floor(b):void 0},c={contextWindow:b(s),maxOutput:b(u)};try{await d(a,c,w,"stt"===w?y:null)}finally{r(!1)}};return(0,e.jsx)(i.aF,{isOpen:a,onClose:g,title:"Add Custom Model",children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)("input",{type:"text",value:h,onChange:a=>{k(a.target.value),n(null),p("")},onKeyDown:a=>{"Enter"===a.key&&B()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",autoFocus:!0}),(0,e.jsx)(i.$n,{variant:"secondary",icon:"science",loading:"testing"===m,onClick:B,disabled:!h.trim()||"testing"===m,children:"testing"===m?"Testing...":"Test"})]}),(0,e.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,e.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:A(h.trim())||"model-id"})]})]}),(0,e.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model type"}),(0,e.jsxs)("select",{value:w,onChange:a=>{x(a.target.value),"stt"!==a.target.value&&z("")},className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:[(0,e.jsx)("option",{value:"llm",children:"LLM (chat)"}),(0,e.jsx)("option",{value:"stt",children:"STT (speech to text)"})]})]}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("label",{className:"text-sm font-medium mb-1.5 block",children:["Transport ","stt"===w?"":"(STT only)"]}),(0,e.jsxs)("select",{value:y,onChange:a=>z(a.target.value),disabled:"stt"!==w,className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary disabled:opacity-50",children:[(0,e.jsx)("option",{value:"",children:"Provider default (REST)"}),j.vp.map(a=>(0,e.jsx)("option",{value:a,children:j.qw[a].label},a))]})]})]}),"ok"===m&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===m&&(0,e.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,e.jsx)("span",{children:o||"Model not reachable"})]}),(0,e.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Context window"}),(0,e.jsx)("input",{type:"number",min:"1",step:"1",value:s,onChange:a=>t(a.target.value),placeholder:"e.g. 200000",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Max output"}),(0,e.jsx)("input",{type:"number",min:"1",step:"1",value:u,onChange:a=>v(a.target.value),placeholder:"e.g. 8192",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})]})]}),(0,e.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,e.jsx)(i.$n,{onClick:g,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,e.jsx)(i.$n,{onClick:C,fullWidth:!0,size:"sm",disabled:!h.trim()||q,children:q?"Adding...":"Add Model"})]})]})})}i=(k.then?(await k)():k)[0],l.propTypes={isOpen:h().bool.isRequired,providerAlias:h().string.isRequired,providerDisplayAlias:h().string.isRequired,onSave:h().func.isRequired,onClose:h().func.isRequired},d()}catch(a){d(a)}})},81330:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=c(99258),k=a([i]);i=(k.then?(await k)():k)[0];let m=`[
1
+ (()=>{var a={};a.id=2134,a.ids=[2134],a.modules={280:(a,b,c)=>{"use strict";c.d(b,{k:()=>m});var d=c(59160),e=c(18982);c(87592);let f=["none","low","medium","high"],g=["none","thinking"],h=["none","low","medium","high","xhigh","max"],i={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":h,"claude-budget":h,"gemini-level":["minimal","low","medium","high"],"gemini-budget":f,zai:g,qwen:f,kimi:["none","low","medium","high","max"],deepseek:["none","high","max"],minimax:g,hunyuan:f,step:f},j=["none","minimal","low","medium","high","xhigh","max"],k=["none","low","medium","high","max"],l=[{pattern:"*claude*4.6*",levels:k},{pattern:"*claude*4-6*",levels:k},{provider:"codex",pattern:"*gpt-6*",levels:j},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...j,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...j,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:j},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{pattern:"*mimo*preview*",levels:["none","low","medium","high","xhigh"]},{pattern:"*mimo*v2.5-pro*",levels:["none","low","medium","high","xhigh"]},{provider:"amd",pattern:"DeepSeek-V4-Flash*",levels:["none","minimal","low","medium","high","xhigh","max"]},{provider:"amd",pattern:"Qwen3.8-Flash-Next",levels:["none","low","medium","xhigh"]},{provider:"codebuddy-cn",pattern:"glm-5.3*",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.2",levels:["high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"hy3*",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4*",levels:["high"]}];function m(a,b){if("kiro"===a&&null===function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(b))return"reasoning";if(!b.includes("claude"))return null;let c=function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".").match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);return b?{major:Number(b[1]),minor:void 0===b[2]?null:Number(b[2])}:null}(a);if(!c)return null;let{major:d,minor:e}=c;return d<4||4===d&&(null===e||e<=5||null!==e&&e>=1e3)?null:"output_config"}(b))return null;let c=(0,d.nl)(a,b);if(!c.reasoning)return null;let g=l.find(c=>(!c.provider||c.provider===a)&&(0,e.gH)(c.pattern,b)),h=g?.levels||i[c.thinkingFormat]||f;return!1===c.thinkingCanDisable&&(h=h.filter(a=>"none"!==a)),h}},643:a=>{"use strict";a.exports=require("node:perf_hooks")},924:(a,b,c)=>{"use strict";function d(a,b=Date.now()){let c=function(a){let b=a?.promoFreeUntil;if("string"!=typeof b||""===b.trim())return null;let c=Date.parse(b);return Number.isFinite(c)?c:null}(a);return null!==c&&b<c}c.d(b,{s:()=>d})},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},9422:(a,b,c)=>{Promise.resolve().then(c.bind(c,83380))},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13355:(a,b,c)=>{"use strict";function d(a){if("string"!=typeof a)return null;let b=/^(\d{1,2}):(\d{2})$/.exec(a.trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:60*c+d}function e(a,b=Date.now()){let c;if(!a||"object"!=typeof a)return null;let f=d(a.window_start),g=d(a.window_end);if(null===f||null===g||f===g)return null;let h=a.timezone||"Asia/Singapore",i=function(a,b=Date.now()){try{let c=new Intl.DateTimeFormat("en-GB",{timeZone:a,hourCycle:"h23",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(new Date(b)),d=a=>Number(c.find(b=>b.type===a)?.value),e=d("hour"),f=d("minute"),g=d("second");if([e,f,g].some(a=>!Number.isFinite(a)))return null;return{hour:e,minute:f,second:g,secondsOfDay:3600*e+60*f+g}}catch{return null}}(h,b);if(!i)return null;let j=i.minute+60*i.hour,k=f<=g?j>=f&&j<g:j>=f||j<g;return c=k?(60*g-i.secondsOfDay+86400)%86400:(60*f-i.secondsOfDay+86400)%86400,{active:k,secondsToBoundary:c,windowLabel:`${a.window_start}–${a.window_end}`,timezone:h}}function f(a,b){return a&&"object"==typeof a&&(b&&String(b).startsWith("zh")?a.zh||a.en:a.en||a.zh)||""}function g(a){return!Number.isFinite(a)||a<0?"--:--:--":[Math.floor(a/3600),Math.floor(a%3600/60),Math.floor(a%60)].map(a=>String(a).padStart(2,"0")).join(":")}c.d(b,{Fp:()=>e,fn:()=>f,zt:()=>g})},14985:a=>{"use strict";a.exports=require("dns")},16528:(a,b,c)=>{"use strict";function d(a,b){if(!Array.isArray(a)||!Array.isArray(b)||0===b.length)return a;let c=new Map(b.map(a=>[String(a.id).split("/").pop(),a]));return a.map(a=>{let b=c.get(a.id);return b?{...a,rateMultiplier:"number"==typeof b.rateMultiplier?b.rateMultiplier:a.rateMultiplier,promotion:b.promotion??a.promotion??null}:a})}c.d(b,{U:()=>d})},16698:a=>{"use strict";a.exports=require("node:async_hooks")},18753:(a,b,c)=>{"use strict";function d({customModels:a=[],modelAliases:b={},providerAlias:c,builtInModels:e=[],type:f="llm",includeLegacyAliases:g=!0}){let h=new Set(e.map(a=>a.id)),i=new Set,j=[];for(let b of a){if(!b?.id||b.providerAlias!==c)continue;let a=b?.kind||b?.type||"llm";if(f&&a!==f||h.has(b.id))continue;let d=`${c}/${b.id}`;i.has(d)||(i.add(d),j.push({id:b.id,name:b.name||b.id,fullModel:d,source:"custom",type:a,enabled:!1!==b.enabled,...void 0===b.vision?{}:{vision:b.vision},...void 0===b.reasoning?{}:{reasoning:b.reasoning},...void 0===b.contextWindow?{}:{contextWindow:b.contextWindow},...void 0===b.maxOutput?{}:{maxOutput:b.maxOutput}}))}if(!g)return j;let k=`${c}/`;for(let[a,c]of Object.entries(b||{})){if("string"!=typeof c||!c.startsWith(k))continue;let b=c.slice(k.length);!b||h.has(b)||i.has(c)||(i.add(c),j.push({id:b,alias:a,fullModel:c,source:"legacyAlias",type:f||"llm"}))}return j}c.d(b,{R:()=>d})},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19863:(a,b,c)=>{"use strict";c.d(b,{A:()=>h});var d=c(48249),e=c(67484),f=c(99258),g=c(13355);function h({promotion:a}){let[b,c]=(0,e.useState)(()=>Date.now()),i=(0,g.Fp)(a,b);if(!i)return null;let j=(0,g.fn)(a?.badge,(0,f.kk)()),k=(0,g.fn)(a?.description,(0,f.kk)()),l=(0,g.zt)(i.secondsToBoundary),m=i.active?`${(0,f.Tl)("Off-peak discount active")} \xb7 ${l} ${(0,f.Tl)("until standard rate")}`:`${l} ${(0,f.Tl)("until off-peak discount")}`;return(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 rounded-[10px] bg-green-500/10 px-3 py-2 text-xs text-green-600 dark:text-green-400",title:k||void 0,children:[(0,d.jsx)("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"eco"}),(0,d.jsx)("span",{className:"font-medium",children:m}),j&&(0,d.jsxs)("span",{className:"opacity-80",children:["\xb7 ",j]}),(0,d.jsxs)("span",{className:"ml-auto font-mono opacity-60",children:[i.windowLabel," ",i.timezone]})]})}},20773:(a,b,c)=>{"use strict";c.d(b,{A:()=>h});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f);function h({until:a,inline:b=!1}){let[c,f]=(0,e.useState)("");return c?b?(0,d.jsxs)("span",{className:"shrink-0 text-xs text-orange-500 font-mono",children:[(0,d.jsx)("span",{className:"text-[0.85em] leading-none",children:"⏱"})," ",c]}):(0,d.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:[(0,d.jsx)("span",{className:"text-[0.85em] leading-none",children:"⏱"})," ",c]}):null}h.propTypes={until:g().string.isRequired,inline:g().bool}},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33361:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>x,handler:()=>z,routeModule:()=>y});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v={children:["",{children:["(dashboard)",{children:["dashboard",{children:["providers",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,93110))),"F:\\Files\\GitHub Files\\10router\\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,"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"F:\\Files\\GitHub Files\\10router\\src\\app\\layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,w=(0,e.H)({tree:v,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),x=w.__next_app__,y=w.routeModule,z=w.handler},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38331:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>q});var e=c(48249),f=c(67484),g=c(74875),h=c(99258),i=c(73813),j=c(51543),k=c(95139),l=c(49885),m=c.n(l),n=c(94579),o=c(20773),p=a([n]);function q({connection:a,proxyPools:b,isOAuth:c,isFirst:d,isLast:l,onMoveUp:m,onMoveDown:p,onToggleActive:r,onUpdateProxy:s,onEdit:t,onDelete:u,oneByOneStatus:v=null,autoPing:w=null}){let[x,y]=(0,f.useState)(!1),[z,A]=(0,f.useState)(!1),B=(0,f.useRef)(null),C=new Map((b||[]).map(a=>[a.id,a])),D=a.providerSpecificData?.proxyPoolId||null,E=D?C.get(D):null,F=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,G=!!D||F,H=E?`Pool: ${E.name}`:D?`Pool: ${D} (inactive/missing)`:F?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",I=w?.provider==="codex"?"Auto-starts the next 5h Codex window after reset by sending a tiny gpt-5.5 request. Consumes a small amount of quota.":"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",J="";if(E?.proxyUrl||a.providerSpecificData?.connectionProxyUrl){let b=E?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);J=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{J=b}}let K=E?.noProxy||a.providerSpecificData?.connectionNoProxy||"",L="default";E?.isActive===!0?L="success":(D||F)&&(L="error");let M=async a=>{A(!0);try{await s("__none__"===a?null:a)}finally{A(!1),y(!1)}},N=a.authType||(c?"oauth":"apikey"),O="oauth"===N,P="cookie"===N,Q=a.providerSpecificData?.authMethod,R="string"==typeof a.accessToken?a.accessToken:"",S=a.hasDesktopSession??!!a.providerSpecificData?.mimoPassToken,T=a.hasAccessToken??(R.length>0&&!R.startsWith("mimo-desktop-session")),U="desktop-session"===Q||S&&!T,V=S&&T,W=!V&&!U&&"oauth"===Q,X=U||V?(0,h.Tl)("Desktop Session"):W?(0,h.Tl)("Browser sign-in"):O?"OAuth":P?"Cookie":"API Key",Y=V?(0,h.Tl)("Browser sign-in"):null,Z=a.providerSpecificData?.mimoUserId||a.providerSpecificData?.uid||null,$=("xiaomi-mimo"===a.provider||"xiaomi-tokenplan"===a.provider)&&Z?`MiMo ${Z}`:null,_=a.name?.trim()||$||a.email?.trim()||a.displayName?.trim()||(O?"OAuth Account":P?"Cookie Account":"API Key"),aa=a.name?.trim()&&a.email?.trim()&&a.name.trim()!==a.email.trim()||$&&a.email?.trim()&&a.email.trim()!==$?a.email.trim():a.name?.trim()&&a.displayName?.trim()&&a.name.trim()!==a.displayName.trim()?a.displayName.trim():null,[ab,ac]=(0,f.useState)(!1),ad=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,ae="unavailable"!==a.testStatus||ab?a.testStatus:"active",af=!1!==a.isActive?(0,i.O)(a.lastError):null,{copied:ag,copy:ah}=(0,k.C)(),ai=()=>v?"queued"===v.state?(0,h.Tl)("queued"):"testing"===v.state?(0,h.Tl)("testing"):"success"===v.state?(0,h.Tl)("success"):"failed"===v.state?v.error?`${(0,h.Tl)("failed")}: ${v.error}`:(0,h.Tl)("failed"):null:null;return(0,e.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===a.isActive?"opacity-60":""}`,children:[(0,e.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,e.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,e.jsx)("button",{onClick:m,disabled:d,className:`p-0.5 rounded ${d?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,e.jsx)("button",{onClick:p,disabled:l,className:`p-0.5 rounded ${l?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,e.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:S?"computer":W?"login":P?"cookie":O?"lock":"key"}),(0,e.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,e.jsx)("p",{className:"text-sm font-medium truncate",children:_}),aa&&(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:aa}),(0,e.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,e.jsx)(n.Ex,{variant:(0,g.g)(a.isActive,ae),size:"sm",dot:!0,children:!1===a.isActive?(0,h.Tl)("disabled"):ae||(0,h.Tl)("Unknown")}),(0,e.jsx)(n.Ex,{variant:"default",size:"sm",children:X}),Y&&(0,e.jsx)(n.Ex,{variant:"default",size:"sm",children:Y}),G&&(0,e.jsx)(n.Ex,{variant:L,size:"sm",children:"Proxy"}),a.earliestPackageExpiry&&(0,e.jsxs)(n.Ex,{variant:"outline",size:"sm",title:`${(0,h.Tl)("Earliest package")}: ${a.earliestPackageName||(0,h.Tl)("Quota package")} (${new Date(a.earliestPackageExpiry).toLocaleString()})`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[12px] mr-1",children:"schedule"}),function(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return(0,h.Tl)("expired");let c=Math.floor(b/36e5);if(c<24)return`${c}h`;let d=Math.floor(c/24);return d<30?c%24?`${d}d ${c%24}h`:`${d}d`:new Date(a).toLocaleDateString()}(a.earliestPackageExpiry)]}),ab&&!1!==a.isActive&&!a.lastError&&(0,e.jsx)(o.A,{until:ad}),a.lastError&&!1!==a.isActive&&(0,e.jsxs)("span",{className:"inline-flex items-center gap-1 max-w-full truncate text-xs text-red-500 sm:max-w-[380px]",title:(0,j.DY)(a.lastError),children:[ab&&(0,e.jsx)(o.A,{until:ad,inline:!0}),(0,j.DY)(a.lastError)]}),af&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("a",{href:af,target:"_blank",rel:"noopener noreferrer",title:(0,h.Tl)("Recommended: open in an incognito window and sign in with the affected account"),className:"shrink-0 text-xs text-blue-500 underline hover:text-blue-400",children:(0,h.Tl)("Verify your account")}),(0,e.jsx)("button",{type:"button",onClick:()=>ah(af,"verification"),title:(0,h.Tl)("Copy link"),className:"shrink-0 text-xs text-text-muted hover:text-primary",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm align-middle",children:"verification"===ag?"check":"content_copy"})})]}),(0,e.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]}),a.globalPriority&&(0,e.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",a.globalPriority]}),ai()&&(0,e.jsx)(n.Ex,{variant:v?"success"===v.state?"success":"failed"===v.state?"error":"testing"===v.state?"primary":"default":"default",size:"sm",children:ai()})]}),G&&(0,e.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,e.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:H,children:H}),J&&(0,e.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:J}),K&&(0,e.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:K,children:["no_proxy: ",K]})]})]})]}),(0,e.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,e.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(b||[]).length>0&&(0,e.jsxs)("div",{className:"relative",ref:B,children:[(0,e.jsxs)("button",{onClick:()=>y(a=>!a),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${G?"text-primary":"text-text-muted hover:text-primary"}`,disabled:z,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:z?"progress_activity":"lan"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),x&&(0,e.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,e.jsx)("button",{onClick:()=>M("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!D?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,e.jsx)("button",{onClick:()=>M(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${D===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]})]}),w&&(0,e.jsx)(n.m_,{text:I,children:(0,e.jsxs)("button",{onClick:()=>w.onToggle(!w.on),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${w.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,e.jsxs)("button",{onClick:t,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,e.jsxs)("button",{onClick:u,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,e.jsx)(n.lM,{size:"sm",checked:a.isActive??!0,onChange:r,title:a.isActive??!0?"Disable connection":"Enable connection"})]})]})}n=(p.then?(await p)():p)[0],q.propTypes={connection:m().shape({id:m().string,name:m().string,email:m().string,displayName:m().string,modelLockUntil:m().string,testStatus:m().string,isActive:m().bool,lastError:m().string,priority:m().number,globalPriority:m().number}).isRequired,proxyPools:m().arrayOf(m().shape({id:m().string,name:m().string,proxyUrl:m().string,noProxy:m().string,isActive:m().bool})),isOAuth:m().bool.isRequired,isFirst:m().bool.isRequired,isLast:m().bool.isRequired,onMoveUp:m().func.isRequired,onMoveDown:m().func.isRequired,onToggleActive:m().func.isRequired,onUpdateProxy:m().func,onEdit:m().func.isRequired,onDelete:m().func.isRequired,oneByOneStatus:m().shape({state:m().string,error:m().string}),autoPing:m().shape({on:m().bool,onToggle:m().func,provider:m().string})},d()}catch(a){d(a)}})},38522:a=>{"use strict";a.exports=require("node:zlib")},39968:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>k});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=a([i]);function k({isOpen:a,node:b,onSave:c,onClose:d,isAnthropic:g}){let[h,j]=(0,f.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),[l,m]=(0,f.useState)(!1),[n,o]=(0,f.useState)(""),[p,q]=(0,f.useState)(""),[r,s]=(0,f.useState)(!1),[t,u]=(0,f.useState)(null),v=async()=>{if(h.name.trim()&&h.prefix.trim()&&h.baseUrl.trim()){m(!0);try{let a={name:h.name,prefix:h.prefix,baseUrl:h.baseUrl};g||(a.apiType=h.apiType),await c(a)}finally{m(!1)}}},w=async()=>{s(!0);try{let a=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:h.baseUrl,apiKey:n,type:g?"anthropic-compatible":"openai-compatible",modelId:p.trim()||void 0})}),b=await a.json();u(b.valid?"success":"failed")}catch{u("failed")}finally{s(!1)}};return b?(0,e.jsx)(i.aF,{isOpen:a,title:`Edit ${g?"Anthropic":"OpenAI"} Compatible`,onClose:d,children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)(i.pd,{label:"Name",value:h.name,onChange:a=>j({...h,name:a.target.value}),placeholder:`${g?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,e.jsx)(i.pd,{label:"Prefix",value:h.prefix,onChange:a=>j({...h,prefix:a.target.value}),placeholder:g?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!g&&(0,e.jsx)(i.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:h.apiType,onChange:a=>j({...h,apiType:a.target.value})}),(0,e.jsx)(i.pd,{label:"Base URL",value:h.baseUrl,onChange:a=>j({...h,baseUrl:a.target.value}),placeholder:g?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${g?"Anthropic":"OpenAI"}-compatible API.`}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.pd,{label:"API Key (for Check)",type:"password",value:n,onChange:a=>o(a.target.value),className:"flex-1"}),(0,e.jsx)("div",{className:"pt-6",children:(0,e.jsx)(i.$n,{onClick:w,disabled:!n||r||!h.baseUrl.trim(),variant:"secondary",children:r?"Checking...":"Check"})})]}),(0,e.jsx)(i.pd,{label:"Model ID (optional)",value:p,onChange:a=>q(a.target.value),placeholder:"e.g. my-model-id",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),t&&(0,e.jsx)(i.Ex,{variant:"success"===t?"success":"error",children:"success"===t?"Valid":"Invalid"}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:v,fullWidth:!0,disabled:!h.name.trim()||!h.prefix.trim()||!h.baseUrl.trim()||l,children:l?"Saving...":"Save"}),(0,e.jsx)(i.$n,{onClick:d,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}i=(j.then?(await j)():j)[0],k.propTypes={isOpen:h().bool.isRequired,node:h().shape({id:h().string,name:h().string,prefix:h().string,apiType:h().string,baseUrl:h().string}),onSave:h().func.isRequired,onClose:h().func.isRequired,isAnthropic:h().bool},d()}catch(a){d(a)}})},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},42076:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>r});var e=c(48249),f=c(49885),g=c.n(f),h=c(67484),i=c(74429),j=c(94579),k=c(924),l=c(94317),m=c(13355),n=c(99258),o=a([j]);j=(o.then?(await o)():o)[0];let s=a=>{let b=Number(String(a).trim());return Number.isFinite(b)&&b>0?Math.floor(b):null};function p({label:a,builtIn:b,value:c,onChange:d,invalid:f,autoFocus:g}){return(0,e.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,e.jsxs)("span",{className:"flex items-baseline justify-between gap-2 text-text-muted",children:[(0,e.jsx)("span",{children:a}),b?(0,e.jsxs)("span",{className:"font-mono text-[10px] text-text-subtle",children:[(0,n.Tl)("Built-in")," ",b]}):null]}),(0,e.jsx)("input",{type:"number",min:"1",step:"1",value:c,autoFocus:g,onChange:a=>d(a.target.value),placeholder:b?String(b):(0,n.Tl)("Not set"),className:`rounded-md border bg-bg px-2 py-1.5 font-mono text-text focus:outline-none ${f?"border-red-500":"border-border focus:border-primary"}`})]})}function q({caps:a,baseCaps:b,pinned:c,label:d,onSave:f}){let[g,j]=(0,h.useState)(!1),[k,l]=(0,h.useState)(!1),[m,o]=(0,h.useState)(null),[r,t]=(0,h.useState)(""),[u,v]=(0,h.useState)(""),w=(0,h.useRef)(null),x=(0,h.useRef)(null),y=b?.contextWindow??null,z=b?.maxOutput??null,A=s(r),B=s(u),C=""!==r.trim()&&null===A,D=""!==u.trim()&&null===B,E=!k&&!C&&!D;(0,h.useCallback)(()=>{let a=w.current;if(!a)return;let b=a.getBoundingClientRect(),c=x.current?.offsetWidth||300,d=x.current?.offsetHeight||300,e=window.innerHeight-b.bottom-8,f=e<d&&b.top-8>e;o({left:Math.min(Math.max(8,b.right-c),Math.max(8,window.innerWidth-c-8)),top:f?void 0:b.bottom+6,bottom:f?window.innerHeight-b.top+6:void 0})},[]);let F=async a=>{l(!0);try{await f(a?{contextWindow:null,maxOutput:null}:{contextWindow:A,maxOutput:B}),j(!1)}finally{l(!1)}};return(0,e.jsxs)("div",{className:"relative shrink-0",children:[(0,e.jsx)("button",{ref:w,onClick:()=>{g?j(!1):(t(a?.contextWindow?String(a.contextWindow):""),v(a?.maxOutput?String(a.maxOutput):""),j(!0))},"aria-haspopup":"dialog","aria-expanded":g,className:`rounded p-0.5 transition-colors hover:bg-sidebar ${c?"text-primary":"text-text-muted hover:text-primary"}`,title:(0,n.Tl)("Model limits"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"tune"})}),g&&"u">typeof document&&(0,i.createPortal)((0,e.jsxs)("div",{ref:x,role:"dialog","aria-label":(0,n.Tl)("Model limits"),onKeyDown:a=>{"Enter"===a.key&&E&&(a.preventDefault(),F(!1))},style:{position:"fixed",width:300,left:m?.left??0,top:m?.top,bottom:m?.bottom,visibility:m?"visible":"hidden"},className:"z-50 flex flex-col gap-2.5 rounded-xl border border-border bg-surface p-3 text-xs shadow-[var(--shadow-elev)]",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between gap-2 border-b border-border-subtle pb-2",children:[(0,e.jsx)("span",{className:"min-w-0 truncate font-medium text-text",children:d||(0,n.Tl)("Model limits")}),c?(0,e.jsx)("span",{className:"shrink-0 rounded-full bg-primary/10 px-2 py-0.5 text-[10px] text-primary",children:(0,n.Tl)("Overridden")}):null]}),(0,e.jsx)(p,{label:(0,n.Tl)("Context window"),builtIn:y,value:r,onChange:t,invalid:C,autoFocus:!0}),(0,e.jsx)(p,{label:(0,n.Tl)("Max output"),builtIn:z,value:u,onChange:v,invalid:D}),(C||D)&&(0,e.jsx)("p",{className:"text-[10px] leading-snug text-red-500",children:(0,n.Tl)("Enter a whole number greater than 0")}),null!==A&&null!==B&&B>A&&(0,e.jsx)("p",{className:"text-[10px] leading-snug text-amber-600 dark:text-amber-400",children:(0,n.Tl)("Max output is larger than the context window")}),(0,e.jsx)("p",{className:"text-[10px] leading-snug text-text-muted/70",children:(0,n.Tl)("Overrides the built-in catalog values")}),(0,e.jsxs)("div",{className:"flex items-center justify-end gap-2 border-t border-border-subtle pt-2",children:[(0,e.jsx)("button",{className:"rounded px-2 py-1 text-text-muted hover:text-red-500 disabled:opacity-40",onClick:()=>F(!0),disabled:k||!c,children:(0,n.Tl)("Restore built-in")}),(0,e.jsx)("button",{className:"rounded bg-primary px-2.5 py-1 text-white disabled:opacity-50",onClick:()=>F(!1),disabled:!E,children:(0,n.Tl)("Save")})]})]}),document.body)]})}function r({model:a,fullModel:b,alias:c,copied:d,onCopy:f,testStatus:g,isCustom:i,isFree:o,onDeleteAlias:p,onTest:s,isTesting:t,onDisable:u,onEnable:v,caps:w,baseCaps:x,thinkingSuffix:y,onSaveCaps:z,capsPinned:A}){let B=function(){let[a,b]=(0,h.useState)(()=>new Date().getHours());return a}(),C=y?`${b}(${y})`:b,D="number"==typeof a.rateMultiplier?a.rateMultiplier:null,E=(0,l.X)(B,a.nightFree),F=null!==D&&D>0&&(0,k.s)(a),G=F?0:D,H=E||0===G,I=function(a){let[b,c]=(0,h.useState)(()=>Date.now());return a&&(a.window_start,a.window_end,a.timezone),(0,m.Fp)(a,b)}(a.promotion),J="ok"===g?"#22c55e":"error"===g?"#ef4444":void 0;return(0,e.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===g?"border-green-500/40":"error"===g?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,e.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,e.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:J?{color:J}:void 0,children:"ok"===g?"check_circle":"error"===g?"cancel":"smart_toy"}),(0,e.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,e.jsx)("code",{className:"max-w-[72vw] truncate rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:C}),(0,e.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[a.name&&(0,e.jsx)("span",{className:"truncate text-[9px] italic text-text-muted/70",children:a.name}),(0,e.jsx)(j.nh,{caps:w,colorOverride:"text-text-muted/70",size:12}),(null!==G||E)&&(0,e.jsx)(j.m_,{text:E?`${(0,n.Tl)("Night-free window")} (23:00–08:00) — ${(0,n.Tl)("rides the free quota")}`:F?(0,n.Tl)("Credit multiplier")+`: ${D}x — `+(0,n.Tl)("promo free until")+` ${a.promoFreeUntil}`:0===G?(0,n.Tl)("Credit multiplier")+": 0x — "+(0,n.Tl)("rides the free quota"):(0,n.Tl)("Credit multiplier")+`: ${G}x`,children:(0,e.jsx)(j.Ex,{size:"sm",variant:H?"success":"default",className:`shrink-0 cursor-help leading-none${H?"":" font-mono"}`,children:H?"free":`${G.toFixed(2)}x`})}),I&&(0,e.jsx)(j.m_,{text:[(0,m.fn)(a.promotion?.badge,(0,n.kk)())||(0,n.Tl)("Off-peak discount"),(0,m.fn)(a.promotion?.description,(0,n.kk)()),`${I.windowLabel} ${I.timezone}${I.active?` — ${(0,n.Tl)("active now")}`:""}`].filter(Boolean).join(" \xb7 "),children:(0,e.jsx)(j.Ex,{size:"sm",variant:I.active?"success":"default",className:"shrink-0 cursor-help leading-none",children:(0,e.jsx)("span",{className:"material-symbols-outlined align-[-1px]",style:{fontSize:10},children:"eco"})})})]})]}),z&&(0,e.jsx)(q,{caps:w,baseCaps:x,pinned:A,label:a.name||b,onSave:z}),s&&(0,e.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,e.jsx)("button",{onClick:s,disabled:t,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${t?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",style:t?{animation:"spin 1s linear infinite"}:void 0,children:t?"progress_activity":"science"})}),(0,e.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:t?"Testing...":"Test"})]}),(0,e.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,e.jsx)("button",{onClick:()=>f(C,`model-${a.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:d===`model-${a.id}`?"check":"content_copy"})}),(0,e.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:d===`model-${a.id}`?"Copied!":"Copy"})]}),i?(0,e.jsx)("button",{onClick:p,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):v?(0,e.jsx)("button",{onClick:v,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-green-500/10 hover:text-green-500",title:(0,n.Tl)("Enable this model"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"})}):u?(0,e.jsx)("button",{onClick:u,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}r.propTypes={model:g().shape({id:g().string.isRequired,rateMultiplier:g().number,promotion:g().object,nightFree:g().shape({from:g().number,to:g().number})}).isRequired,fullModel:g().string.isRequired,alias:g().string,copied:g().string,onCopy:g().func.isRequired,testStatus:g().oneOf(["ok","error"]),isCustom:g().bool,isFree:g().bool,onDeleteAlias:g().func,onTest:g().func,isTesting:g().bool,onDisable:g().func,onEnable:g().func,caps:g().object,baseCaps:g().object,thinkingSuffix:g().string,onSaveCaps:g().func,capsPinned:g().bool},d()}catch(a){d(a)}})},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},51543:(a,b,c)=>{"use strict";c.d(b,{DY:()=>g});var d=c(99258);let e=/subscription_quota_exhausted|本周用量已满|本周额度已用完/i;function f(a,b){return(0,d.Tl)(a).replace("{n}",String(b))}function g(a){if(!a||"string"!=typeof a)return a??"";let b=(0,d.Tl)(a);if(b&&b!==a)return b;if(e.test(a))return(0,d.Tl)("Subscription quota used up. Please wait for the quota reset.");if(/Individual quota reached|QUOTA_EXHAUSTED|RESOURCE_EXHAUSTED/i.test(a)){let b,c,e,g,h,i,j,k,{delay:l,timestamp:m}=(b=String(a||""),c=null,e=null,g=/"quotaResetDelay"\s*:\s*"([^"]+)"/.exec(b),h=/\bResets in\s+([0-9hms.]+)/i.exec(b),c=g&&g[1]||h&&h[1]||null,i=/"quotaResetTimeStamp"\s*:\s*"([^"]+)"/.exec(b),j=/"quotaResetTimeStamp"\s*:\s*(".*?"|\S+)/.exec(b),(e=i&&i[1]||j&&j[1]||null)&&(e=e.replace(/^"|"$/g,"")),{delay:c,timestamp:e}),n=function(a){if(!a)return"";let{h:b,m:c,s:d}=a;if(d>=60&&(c+=Math.floor(d/60),d%=60),c>=60&&(b+=Math.floor(c/60),c%=60),b>=24){let a=Math.floor(b/24),c=b%24;return c>0?`${f("{n}d",a)} ${f("{n}h",c)}`:f("{n}d",a)}let e=[];return b>0&&e.push(f("{n}h",b)),c>0&&e.push(f("{n}m",c)),(d>0||0===e.length)&&e.push(f("{n}s",d)),e.join(" ")}((k=/^(?:(\d+(?:\.\d+)?)h)?(?:(\d+(?:\.\d+)?)m)?(?:(\d+(?:\.\d+)?)s)?$/i.exec(String(l||"").trim()))&&(k[1]||k[2]||k[3])?{h:Math.floor(parseFloat(k[1]||0)),m:Math.floor(parseFloat(k[2]||0)),s:Math.round(parseFloat(k[3]||0))}:null),o=m?function(a){let b=new Date(a);if(Number.isNaN(b.getTime()))return a||"";try{return b.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return b.toISOString()}}(m):"",p=(0,d.Tl)("Individual quota reached. Resets at {time} (in {duration}).");return(p=p.replace("{time}",o||(0,d.Tl)("shortly"))).replace("{duration}",n||(0,d.Tl)("a short while"))}return b}},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},72022:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=c(99258),k=a([i]);function l({isOpen:a,mode:b,provider:c,providerName:d,dashboardPassword:g,onClose:h,onSuccess:k}){let[m,n]=(0,f.useState)(""),[o,p]=(0,f.useState)(""),[q,r]=(0,f.useState)(!1),[s,t]=(0,f.useState)(""),[u,v]=(0,f.useState)(null),[w,x]=(0,f.useState)(""),[y,z]=(0,f.useState)(null),A=(0,f.useRef)(null),B=(0,f.useRef)(null),C=a=>{clearTimeout(B.current),B.current=setTimeout(()=>{B.current=null,D(),h()},a)},D=()=>{n(""),p(""),r(!1),t(""),v(null),x(""),z(null),A.current&&(A.current.value="")},E={"Content-Type":"application/json","x-10r-password":g||""},F=async()=>{if(t(""),v(null),clearTimeout(B.current),m.length<4)return void t((0,j.Tl)("Passphrase must be at least 4 characters"));if(m!==o)return void t((0,j.Tl)("Passphrases do not match"));r(!0);try{let a=await fetch("/api/oauth/transfer/export",{method:"POST",headers:E,body:JSON.stringify({provider:c,passphrase:m})}),b=await a.json();if(!a.ok)throw Error((0,j.Tl)(b?.error)||`Request failed: ${a.status}`);let d=JSON.stringify(b.blob,null,2),e=URL.createObjectURL(new Blob([d],{type:"application/json"})),f=document.createElement("a");f.href=e,f.download=`oauth-${c}-transfer-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(f),f.click(),f.remove(),setTimeout(()=>URL.revokeObjectURL(e),1e3),v({exported:b.count}),C(1200)}catch(a){t(a.message||(0,j.Tl)("Export failed"))}finally{r(!1)}},G=async()=>{if(t(""),v(null),clearTimeout(B.current),!y)return void t((0,j.Tl)("Pick a transfer file first"));if(!m)return void t((0,j.Tl)("Transfer passphrase required"));r(!0);try{let a=await fetch("/api/oauth/transfer/import",{method:"POST",headers:E,body:JSON.stringify({provider:c,passphrase:m,blob:y})}),b=await a.json();if(!a.ok){if(401===a.status&&/passphrase/i.test(b?.error||""))throw Error((0,j.Tl)("Wrong passphrase"));throw Error((0,j.Tl)(b?.error)||`Request failed: ${a.status}`)}v(b),"function"==typeof k&&k(),(b?.imported||0)+(b?.updated||0)>0&&C(1800)}catch(a){t(a.message||(0,j.Tl)("Import failed"))}finally{r(!1)}};return(0,e.jsx)(i.aF,{isOpen:a,title:"export"===b?(0,j.Tl)("Export OAuth accounts"):(0,j.Tl)("Import OAuth accounts"),onClose:()=>{q||(clearTimeout(B.current),B.current=null,D(),h())},children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[(0,j.Tl)("Provider"),": ",(0,e.jsx)("span",{className:"font-medium text-text-main",children:d||c})]}),"export"===b?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.pd,{type:"password",reveal:!0,label:(0,j.Tl)("Transfer passphrase"),value:m,onChange:a=>n(a.target.value),placeholder:"••••••••"}),(0,e.jsx)(i.pd,{type:"password",reveal:!0,label:(0,j.Tl)("Confirm passphrase"),value:o,onChange:a=>p(a.target.value),placeholder:"••••••••"})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted",children:(0,j.Tl)("The file is encrypted with this passphrase — it is required again at import, and cannot be recovered.")}),s&&(0,e.jsx)("p",{className:"text-xs text-red-500",children:s}),u&&(0,e.jsxs)("p",{className:"text-xs text-green-600",children:[(0,j.Tl)("Export complete")," — ",u.exported," ",(0,j.Tl)("accounts exported")]}),(0,e.jsx)(i.$n,{onClick:F,disabled:q,fullWidth:!0,children:(0,j.Tl)("Export encrypted file")})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.pd,{label:(0,j.Tl)("Transfer file"),value:w,readOnly:!0,placeholder:(0,j.Tl)("Pick a transfer file first"),className:"cursor-pointer",onClick:()=>A.current?.click()}),(0,e.jsx)("input",{ref:A,type:"file",accept:".json,application/json",className:"hidden",onChange:a=>{let b=a.target.files?.[0];if(!b)return;x(b.name),t(""),v(null);let c=new FileReader;c.onload=()=>{try{let a=JSON.parse(String(c.result||""));if(a?.format!=="10router-oauth-secure-v1"){t((0,j.Tl)("Unrecognized transfer file (expected an encrypted OAuth transfer)")),z(null);return}z(a)}catch(a){t(`${(0,j.Tl)("Invalid JSON")}: ${a.message}`),z(null)}},c.onerror=()=>t((0,j.Tl)("Failed to read file")),c.readAsText(b)}}),(0,e.jsx)(i.pd,{type:"password",reveal:!0,label:(0,j.Tl)("Transfer passphrase"),value:m,onChange:a=>n(a.target.value),placeholder:"••••••••"}),s&&(0,e.jsx)("p",{className:"text-xs text-red-500",children:s}),u&&(0,e.jsx)("div",{className:"text-xs text-text-muted",children:(0,e.jsxs)("p",{children:[(0,j.Tl)("Import complete"),": ",u.imported||0," ",(0,j.Tl)("imported"),", ",u.updated||0," ",(0,j.Tl)("updated"),(u.failed||0)>0?`, ${u.failed} ${(0,j.Tl)("failed")}`:""]})}),(0,e.jsx)(i.$n,{onClick:G,disabled:q,fullWidth:!0,children:(0,j.Tl)("Import connections")})]})]})})}i=(k.then?(await k)():k)[0],l.propTypes={isOpen:h().bool.isRequired,mode:h().oneOf(["export","import"]).isRequired,provider:h().string.isRequired,providerName:h().string,dashboardPassword:h().string,onClose:h().func.isRequired,onSuccess:h().func},d()}catch(a){d(a)}})},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},73813:(a,b,c)=>{"use strict";c.d(b,{O:()=>e});let d=/https:\/\/accounts\.google\.com\/signin\/continue[^\s"'<>)\]]+/;function e(a){if("string"!=typeof a)return null;let b=d.exec(a);return b?b[0]:null}},74075:a=>{"use strict";a.exports=require("zlib")},74875:(a,b,c)=>{"use strict";function d(a,b){return!1===a?"default":"active"===b||"success"===b?"success":"error"===b||"expired"===b||"unavailable"===b?"error":"default"}c.d(b,{g:()=>d})},74918:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},79868:a=>{"use strict";a.exports=require("node:sqlite")},80445:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=c(91431),k=a([i]);function l({isOpen:a,providerAlias:b,providerDisplayAlias:c,onSave:d,onClose:g}){let[h,k]=(0,f.useState)(""),[m,n]=(0,f.useState)(null),[o,p]=(0,f.useState)(""),[q,r]=(0,f.useState)(!1),[s,t]=(0,f.useState)(""),[u,v]=(0,f.useState)(""),[w,x]=(0,f.useState)("llm"),[y,z]=(0,f.useState)(""),A=a=>{let c=`${b}/`;return a.startsWith(c)?a.slice(c.length):a},B=async()=>{let a=A(h.trim());if(a){n("testing"),p("");try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${b}/${a}`})}),d=await c.json();n(d.ok?"ok":"error"),p(d.error||"")}catch(a){n("error"),p(a.message)}}},C=async()=>{let a=A(h.trim());if(!a||q)return;r(!0);let b=a=>{let b=Number(String(a).trim());return Number.isFinite(b)&&b>0?Math.floor(b):void 0},c={contextWindow:b(s),maxOutput:b(u)};try{await d(a,c,w,"stt"===w?y:null)}finally{r(!1)}};return(0,e.jsx)(i.aF,{isOpen:a,onClose:g,title:"Add Custom Model",children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)("input",{type:"text",value:h,onChange:a=>{k(a.target.value),n(null),p("")},onKeyDown:a=>{"Enter"===a.key&&B()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",autoFocus:!0}),(0,e.jsx)(i.$n,{variant:"secondary",icon:"science",loading:"testing"===m,onClick:B,disabled:!h.trim()||"testing"===m,children:"testing"===m?"Testing...":"Test"})]}),(0,e.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,e.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:A(h.trim())||"model-id"})]})]}),(0,e.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model type"}),(0,e.jsxs)("select",{value:w,onChange:a=>{x(a.target.value),"stt"!==a.target.value&&z("")},className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:[(0,e.jsx)("option",{value:"llm",children:"LLM (chat)"}),(0,e.jsx)("option",{value:"stt",children:"STT (speech to text)"})]})]}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("label",{className:"text-sm font-medium mb-1.5 block",children:["Transport ","stt"===w?"":"(STT only)"]}),(0,e.jsxs)("select",{value:y,onChange:a=>z(a.target.value),disabled:"stt"!==w,className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary disabled:opacity-50",children:[(0,e.jsx)("option",{value:"",children:"Provider default (REST)"}),j.vp.map(a=>(0,e.jsx)("option",{value:a,children:j.qw[a].label},a))]})]})]}),"ok"===m&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===m&&(0,e.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,e.jsx)("span",{children:o||"Model not reachable"})]}),(0,e.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Context window"}),(0,e.jsx)("input",{type:"number",min:"1",step:"1",value:s,onChange:a=>t(a.target.value),placeholder:"e.g. 200000",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Max output"}),(0,e.jsx)("input",{type:"number",min:"1",step:"1",value:u,onChange:a=>v(a.target.value),placeholder:"e.g. 8192",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})]})]}),(0,e.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,e.jsx)(i.$n,{onClick:g,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,e.jsx)(i.$n,{onClick:C,fullWidth:!0,size:"sm",disabled:!h.trim()||q,children:q?"Adding...":"Add Model"})]})]})})}i=(k.then?(await k)():k)[0],l.propTypes={isOpen:h().bool.isRequired,providerAlias:h().string.isRequired,providerDisplayAlias:h().string.isRequired,onSave:h().func.isRequired,onClose:h().func.isRequired},d()}catch(a){d(a)}})},81330:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=c(99258),k=a([i]);i=(k.then?(await k)():k)[0];let m=`[
2
2
  {
3
3
  "accessToken": "eyJhbGc...",
4
4
  "refreshToken": "rt_...",
@@ -11,4 +11,4 @@ sk-key-only-auto-named`;function n({isOpen:a,provider:b,providerName:c,isCompati
11
11
  name2|sk-key2|def789012
12
12
  sk-key-only-auto-named`:"qoder"===b?`name1|pt-xxxxx
13
13
  name2|pt-yyyyy
14
- pt-only-auto-named`:o,[aa,ab]=(0,f.useState)("single"),[ac,ad]=(0,f.useState)(""),[ae,af]=(0,f.useState)(null),ag=()=>x&&F.ollamaHostUrl.trim()?{baseUrl:F.ollamaHostUrl.trim()}:B?{azureEndpoint:H.azureEndpoint,apiVersion:H.apiVersion,deployment:H.deployment,organization:H.organization}:C?{accountId:J.accountId}:D&&L?{region:L}:void 0,ah=async()=>{S(!0);try{let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:F.apiKey,providerSpecificData:ag()})}),c=await a.json();U(c.valid?"success":"failed"),W(c.valid?null:c.error||null),Y(!!c.maintenance)}catch{U("failed"),W(null),Y(!1)}finally{S(!1)}},ai=async()=>{if(b&&(x||F.apiKey)&&(x||F.name)&&(!d||F.defaultModel.trim())){$(!0);try{let a=!1;try{S(!0),U(null);let c=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:F.apiKey,providerSpecificData:ag()})});a=!!(await c.json()).valid,U(a?"success":"failed")}catch{U("failed")}finally{S(!1)}await t({name:F.name||(x?"Ollama Local":""),apiKey:F.apiKey,defaultModel:d?F.defaultModel.trim():void 0,priority:F.priority,proxyPoolId:F.proxyPoolId===w?null:F.proxyPoolId,testStatus:a?"active":"unknown",providerSpecificData:ag()})}finally{$(!1)}}},aj=async()=>{let a=ac.split("\n");if(!a.length)return;let c=(0,k.P)(a,s,{isCloudflareAi:C});if(!c.length)return;$(!0),af(null);let d=0,e=0;for(let a of c)try{let c=!1;try{let d=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:a.apiKey})});c=!!(await d.json().catch(()=>({}))).valid}catch{c=!1}(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:a.apiKey,name:a.name,priority:1,testStatus:c?"active":"unknown",...a.providerSpecificData?{providerSpecificData:a.providerSpecificData}:{}})})).ok?d++:e++}catch{e++}$(!1),af({success:d,failed:e}),d>0&&u&&u()};return b?(0,e.jsx)(i.aF,{isOpen:a,title:`Add ${c||b} ${A}`,onClose:v,children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{size:"sm",variant:"single"===aa?"primary":"ghost",onClick:()=>{ab("single"),af(null)},children:"Single"}),(0,e.jsx)(i.$n,{size:"sm",variant:"bulk"===aa?"primary":"ghost",onClick:()=>{ab("bulk"),af(null)},children:"Bulk Add"})]}),"bulk"===aa&&(0,e.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,e.jsx)("p",{className:"text-xs text-text-muted",children:C?(0,e.jsxs)(e.Fragment,{children:["One key per line. Format: ",(0,e.jsx)("code",{children:"name|apiKey|accountId"})," or just ",(0,e.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}):"qoder"===b?(0,e.jsxs)(e.Fragment,{children:["One PAT per line. Format: ",(0,e.jsx)("code",{children:"name|pt-..."})," or just ",(0,e.jsx)("code",{children:"pt-..."})," (auto-named by index)."]}):(0,e.jsxs)(e.Fragment,{children:["One key per line. Format: ",(0,e.jsx)("code",{children:"name|apiKey"})," or just ",(0,e.jsx)("code",{children:"apiKey"})," (auto-named by index)."]})}),(0,e.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[140px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:_,value:ac,onChange:a=>ad(a.target.value)}),ae&&(0,e.jsxs)("div",{className:`text-sm font-medium ${ae.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",ae.success," added",ae.failed>0?`, ✗ ${ae.failed} failed`:""]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:aj,fullWidth:!0,disabled:Z||!ac.trim(),children:Z?"Adding...":"Add All Keys"}),(0,e.jsx)(i.$n,{onClick:v,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===aa&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.pd,{label:"Name",value:F.name,onChange:a=>G({...F,name:a.target.value}),placeholder:x?"Ollama Local":"Production Key"}),x&&(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.pd,{label:"Ollama Host URL",value:F.ollamaHostUrl,onChange:a=>G({...F,ollamaHostUrl:a.target.value}),placeholder:"http://localhost:11434",className:"flex-1"}),(0,e.jsx)("div",{className:"pt-6",children:(0,e.jsx)(i.$n,{onClick:ah,disabled:R||Z,variant:"secondary",children:R?"Checking...":"Check"})})]}),!x&&(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.pd,{label:A,type:y?"text":"password",value:F.apiKey,onChange:a=>G({...F,apiKey:a.target.value}),placeholder:y?"grok-web"===b?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":z?"xai-...":"qoder"===b?"pt-...":"",className:"flex-1"}),(0,e.jsx)("div",{className:"pt-6",children:(0,e.jsx)(i.$n,{onClick:ah,disabled:!F.apiKey||R||Z,variant:"secondary",children:R?"Checking...":"Check"})})]}),z&&(0,e.jsx)("p",{className:"text-xs text-text-muted",children:"Use a direct xAI API key from console.x.ai. This is separate from Grok Build OAuth."}),y&&m&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[m,p&&(0,e.jsxs)(e.Fragment,{children:[" ",(0,e.jsxs)("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",p.replace(/^https?:\/\//,"")]})]})]}),D&&(0,e.jsxs)("div",{children:[(0,e.jsx)(i.l6,{label:"Region",value:L,onChange:a=>{M(a.target.value),O(!0)},options:D.map(a=>({value:a.id,label:a.label}))}),P&&!N&&(0,e.jsxs)("p",{className:"text-xs text-primary mt-1 flex items-center gap-1",children:[(0,e.jsx)("span",{children:"\uD83C\uDF10"}),(0,e.jsx)("span",{children:(0,l.Tl)("Auto-matched region based on network location ({country})").replace("{country}",P.country)})]})]}),d&&(0,e.jsx)(i.pd,{label:"Default Model",value:F.defaultModel,onChange:a=>G({...F,defaultModel:a.target.value}),placeholder:g?"claude-3-5-sonnet-latest":"gpt-4o-mini"}),x&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:["Leave blank to use ",(0,e.jsx)("code",{children:"http://localhost:11434"}),". For remote Ollama, enter the full host URL (e.g. ",(0,e.jsx)("code",{children:"http://192.168.1.10:11434"}),")."]}),T&&(0,e.jsx)(i.Ex,{variant:"success"===T?"success":X?"warning":"error",children:"success"===T?"Valid":X?"Check endpoint":"Invalid"}),X&&V&&(0,e.jsx)("p",{className:"text-xs text-amber-500 break-words",children:V}),r&&(0,e.jsx)("p",{className:"text-xs text-red-500 break-words",children:r}),d&&(0,e.jsx)("p",{className:"text-xs text-text-muted",children:"Enter the model ID exactly as your compatible endpoint expects it. This model will be saved as the connection default."}),C&&(0,e.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,e.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Cloudflare Workers AI"}),(0,e.jsx)(i.pd,{label:"Account ID",value:J.accountId,onChange:a=>K({...J,accountId:a.target.value}),placeholder:"abc123def456..."}),(0,e.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,e.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]}),B&&(0,e.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,e.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,e.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,e.jsx)(i.pd,{label:"Azure Endpoint",value:H.azureEndpoint,onChange:a=>I({...H,azureEndpoint:a.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,e.jsx)(i.pd,{label:"Deployment Name",value:H.deployment,onChange:a=>I({...H,deployment:a.target.value}),placeholder:"gpt-4"}),(0,e.jsx)(i.pd,{label:"API Version",value:H.apiVersion,onChange:a=>I({...H,apiVersion:a.target.value}),placeholder:"2024-10-01-preview"}),(0,e.jsx)(i.pd,{label:"Organization",value:H.organization,onChange:a=>I({...H,organization:a.target.value}),placeholder:"Organization ID"})]})]}),(0,e.jsx)(i.pd,{label:"Priority",type:"number",value:F.priority,onChange:a=>G({...F,priority:Number.parseInt(a.target.value)||1})}),(0,e.jsx)(i.l6,{label:"Proxy Pool",value:F.proxyPoolId,onChange:a=>G({...F,proxyPoolId:a.target.value}),options:[{value:w,label:"None"},...(q||[]).map(a=>({value:a.id,label:a.name}))],placeholder:"None"}),0===(q||[]).length&&(0,e.jsx)("p",{className:"text-xs text-text-muted",children:"No active proxy pools available. Create one in Proxy Pools page first."}),(0,e.jsx)("p",{className:"text-xs text-text-muted",children:"Legacy manual proxy fields are still accepted by API for backward compatibility."}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:ai,fullWidth:!0,disabled:Z||!x&&(!F.name||!F.apiKey)||d&&!F.defaultModel.trim()||B&&(!H.azureEndpoint||!H.deployment||!H.organization)||C&&!J.accountId,children:Z?"Saving...":"Save"}),(0,e.jsx)(i.$n,{onClick:v,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}n.propTypes={isOpen:h().bool.isRequired,provider:h().string,providerName:h().string,isCompatible:h().bool,isAnthropic:h().bool,authType:h().string,authHint:h().string,website:h().string,proxyPools:h().arrayOf(h().shape({id:h().string,name:h().string})),error:h().string,existingNames:h().arrayOf(h().string),onSave:h().func.isRequired,onBulkDone:h().func,onClose:h().func.isRequired},d()}catch(a){d(a)}})},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},91914:(a,b,c)=>{"use strict";function d(a,b,c={}){let{isCloudflareAi:e=!1}=c,f=new Set((Array.isArray(b)?b:[]).map(a=>"string"==typeof a?a.toLowerCase():"")),g=[];for(let b of a){let a,c="string"==typeof b?b.trim():"";if(!c)continue;let d=function(a,b={}){let{isCloudflareAi:c=!1}=b,d=a.split("|");if(c&&d.length>=3){let a=d[0].trim();return{baseName:a||"Key",apiKey:d.slice(1,-1).join("|").trim(),providerSpecificData:{accountId:d[d.length-1].trim()}}}return d.length>=2?{baseName:d[0].trim()||"Key",apiKey:d.slice(1).join("|").trim()}:{baseName:"Key",apiKey:d[0].trim()}}(c,{isCloudflareAi:e});if(!d||!d.apiKey)continue;let h=d.baseName,i=1;for(;a=`${h} ${i}`,f.has(a.toLowerCase());)i+=1;f.add(a.toLowerCase());let j={name:a,apiKey:d.apiKey,skipped:!1};d.providerSpecificData&&(j.providerSpecificData=d.providerSpecificData),g.push(j)}return g}c.d(b,{P:()=>d})},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 \"F:\\\\Files\\\\GitHub Files\\\\10router\\\\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.")},"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\providers\\[id]\\page.js","default")},93848:(a,b,c)=>{"use strict";c.d(b,{o:()=>e});let d=new Map;async function e(a){if(!a?.url||!a?.type)return[];let b=d.get(a.url);if(b&&Date.now()<b.expiresAt)return b.data;try{let b=new URLSearchParams({url:a.url,type:a.type}),c=await fetch(`/api/providers/suggested-models?${b}`);if(!c.ok)return[];let e=(await c.json()).data??[];return d.set(a.url,{data:e,expiresAt:Date.now()+6e5}),e}catch{return[]}}},94317:(a,b,c)=>{"use strict";function d(a,b){if(!b||"number"!=typeof a||Number.isNaN(a))return!1;let{from:c,to:d}=b;return c<=d?a>=c&&a<d:a>=c||a<d}c.d(b,{X:()=>d})},94735:a=>{"use strict";a.exports=require("events")},95296:(a,b,c)=>{"use strict";c.a(a,async(a,b)=>{try{var d=c(48249),e=(c(67484),c(49885)),f=c.n(e),g=c(94579),h=(c(18753),a([g]));g=(h.then?(await h)():h)[0],f().string.isRequired,f().string.isRequired,f().string,f().func.isRequired,f().func.isRequired,f().func,f().oneOf(["ok","error"]),f().bool,f().string.isRequired,f().object.isRequired,f().arrayOf(f().object),f().string,f().func.isRequired,f().func.isRequired,f().func.isRequired,f().func.isRequired,b()}catch(a){b(a)}})},98376:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>o});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=c(41371),k=c(18753),l=c(99258),m=a([i]);function n({modelId:a,fullModel:b,copied:c,onCopy:d,onDeleteAlias:f,onToggle:g,enabled:h=!0,onTest:i,testStatus:j,isTesting:k}){let l="ok"===j?"#22c55e":"error"===j?"#ef4444":void 0;return(0,e.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===j?"border-green-500/40":"error"===j?"border-red-500/40":"border-border"} hover:bg-sidebar/50 ${h?"":"opacity-60"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:l?{color:l}:void 0,children:"ok"===j?"check_circle":"error"===j?"cancel":"smart_toy"}),(0,e.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,e.jsx)("p",{className:"text-sm font-medium truncate",children:a}),(0,e.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,e.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:b}),(0,e.jsxs)("div",{className:"relative group/btn",children:[(0,e.jsx)("button",{onClick:()=>d(b,`model-${a}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a}`?"check":"content_copy"})}),(0,e.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c===`model-${a}`?"Copied!":"Copy"})]}),i&&(0,e.jsxs)("div",{className:"relative group/btn",children:[(0,e.jsx)("button",{onClick:i,disabled:k,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",style:k?{animation:"spin 1s linear infinite"}:void 0,children:k?"progress_activity":"science"})}),(0,e.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:k?"Testing...":"Test"})]})]})]}),g&&(0,e.jsx)("button",{onClick:g,className:`p-1 rounded ${h?"text-amber-500 hover:bg-amber-50 dark:hover:bg-amber-500/10":"text-green-600 hover:bg-green-50 dark:hover:bg-green-500/10"}`,title:h?"Disable model":"Activate model",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:h?"block":"restart_alt"})}),(0,e.jsx)("button",{onClick:f,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function o({providerStorageAlias:a,providerDisplayAlias:b,modelAliases:c,customModels:d,copied:g,onCopy:h,onDeleteAlias:m,onAddCustomModel:p,onToggleCustomModel:q,onDeleteCustomModel:r,onBulkCustomModels:s,connections:t,isAnthropic:u}){let v=(0,j.i)(),[w,x]=(0,f.useState)(""),[y,z]=(0,f.useState)(!1),[A,B]=(0,f.useState)(!1),[C,D]=(0,f.useState)(null),[E,F]=(0,f.useState)({}),G=async b=>{if(!C){D(b);try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${a}/${b}`})}),d=await c.json();F(a=>({...a,[b]:d.ok?"ok":"error"}))}catch{F(a=>({...a,[b]:"error"}))}finally{D(null)}}},H=(0,k.R)({customModels:d,modelAliases:c,providerAlias:a,type:"llm"}),I=H.filter(a=>!1!==a.enabled),J=H.filter(a=>!1===a.enabled),K=async()=>{if(!w.trim()||y)return;let a=w.trim();if(H.some(b=>b.id===a))return void v.warning("Model already exists for this provider.");z(!0);try{await p(a),x("")}catch(a){console.log("Error adding model:",a)}finally{z(!1)}},L=async()=>{if(A)return;let a=t.find(a=>!1!==a.isActive);if(a){B(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void v.error(c.error||"Failed to import models");let d=c.models||[];if(0===d.length)return void v.warning("No models returned from /models.");let e=0;for(let a of d){let b=a.id||a.name||a.model;b&&(H.some(a=>a.id===b)||(await p(b,!1),e+=1))}0===e&&v.warning("No new models were added.")}catch(a){console.log("Error importing models:",a)}finally{B(!1)}}},M=t.some(a=>!1!==a.isActive);return(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",u?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,e.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,e.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,e.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,e.jsx)("input",{id:"new-compatible-model-input",type:"text",value:w,onChange:a=>x(a.target.value),onKeyDown:a=>"Enter"===a.key&&K(),placeholder:u?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})]}),(0,e.jsx)(i.$n,{size:"sm",icon:"add",onClick:K,disabled:!w.trim()||y,children:y?"Adding...":"Add"}),(0,e.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"download",onClick:L,disabled:!M||A,children:A?"Importing...":"Import from /models"})]}),!M&&(0,e.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),H.length>0&&s&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-xs text-text-muted",children:[(0,e.jsxs)("span",{children:[H.length," custom model",H.length>1?"s":""]}),(0,e.jsx)("span",{children:"\xb7"}),(0,e.jsx)("button",{onClick:()=>s(!0),className:"text-primary hover:underline",children:(0,l.Tl)("Enable all")}),(0,e.jsx)("span",{children:"\xb7"}),(0,e.jsx)("button",{onClick:()=>s(!1),className:"text-text-muted hover:text-red-500 hover:underline",children:(0,l.Tl)("Disable all")}),(0,e.jsxs)("span",{children:["— ",(0,l.Tl)("bulk actions affect what clients see in /v1/models")]})]}),I.length>0&&(0,e.jsx)("div",{className:"flex flex-col gap-3",children:I.map(({id:c,alias:d,source:f})=>(0,e.jsx)(n,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?r(c):m(d),onToggle:"custom"===f&&q?()=>q(c,!1):void 0,onTest:t.length>0?()=>G(c):void 0,testStatus:E[c],isTesting:C===c},`${f}-${a}/${c}`))}),J.length>0&&(0,e.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,e.jsx)("p",{className:"text-xs text-text-muted",children:"Disabled (activate to expose again):"}),J.map(({id:c,alias:d,source:f})=>(0,e.jsx)(n,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,enabled:!1,onDeleteAlias:()=>"custom"===f?r(c):m(d),onToggle:"custom"===f&&q?()=>q(c,!0):void 0,onTest:t.length>0?()=>G(c):void 0,testStatus:E[c],isTesting:C===c},`disabled-${f}-${a}/${c}`))]})]})}i=(m.then?(await m)():m)[0],o.propTypes={providerStorageAlias:h().string.isRequired,providerDisplayAlias:h().string.isRequired,modelAliases:h().object.isRequired,customModels:h().arrayOf(h().object),copied:h().string,onCopy:h().func.isRequired,onDeleteAlias:h().func.isRequired,onAddCustomModel:h().func.isRequired,onBulkCustomModels:h().func,onToggleCustomModel:h().func,onDeleteCustomModel:h().func.isRequired,connections:h().arrayOf(h().shape({id:h().string,isActive:h().bool})).isRequired,isAnthropic:h().bool},d()}catch(a){d(a)}})},98995:a=>{"use strict";a.exports=require("node:module")},99548:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=c(99258),k=a([i]);function l({isOpen:a,onClose:b,onSuccess:c,password:d=""}){let[g,h]=(0,f.useState)(""),[k,m]=(0,f.useState)(""),[n,o]=(0,f.useState)(!1),[p,q]=(0,f.useState)(""),[r,s]=(0,f.useState)(null),t=(0,f.useRef)(null),u=()=>{n||(h(""),m(""),q(""),s(null),t.current&&(t.current.value=""),b())},v=async()=>{let a;q(""),s(null);let b=g.trim();if(!b)return;try{a=JSON.parse(b)}catch(a){q(`${(0,j.Tl)("Invalid JSON")}: ${a.message}`);return}let e=Array.isArray(a)?a:a&&"object"==typeof a?Array.isArray(a.accounts)?a.accounts:[a]:null;if(!e||0===e.length)return void q((0,j.Tl)("No accounts found in input"));o(!0);try{let a=await fetch("/api/oauth/codebuddy-cn/bulk-import",{method:"POST",headers:{"Content-Type":"application/json",...d?{"x-10r-password":d}:{}},body:JSON.stringify({accounts:e})}),b=await a.json();if(!a.ok)return void q(401===a.status?(0,j.Tl)("Invalid password"):b?.error||`Request failed: ${a.status}`);s(b),(b.imported>0||b.updated>0)&&"function"==typeof c&&c()}catch(a){q(a.message||(0,j.Tl)("Request failed"))}finally{o(!1)}},w=r?.results?.filter(a=>!a.ok)||[],x=r?.skipped??0;return(0,e.jsx)(i.aF,{isOpen:a,title:(0,j.Tl)("Import CodeBuddy CN Accounts"),onClose:u,children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)(i.$n,{variant:"secondary",fullWidth:!0,icon:"upload_file",onClick:()=>t.current?.click(),disabled:n,children:k||(0,j.Tl)("Choose JSON file...")}),(0,e.jsx)("input",{ref:t,type:"file",accept:".json,application/json",className:"hidden",onChange:a=>{let b=a.target.files?.[0];if(!b)return;m(b.name),q(""),s(null);let c=new FileReader;c.onload=()=>h(String(c.result||"")),c.onerror=()=>q((0,j.Tl)("Failed to read file")),c.readAsText(b)}})]}),(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("div",{className:"absolute -top-2 left-2 bg-sidebar px-1 text-[10px] text-text-muted",children:(0,j.Tl)("Or paste JSON")}),(0,e.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 pt-4 text-sm font-mono resize-y min-h-[160px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:'[{ "access_token": "eyJ...", "refresh_token": "eyJ...", "nickname": "<nickname>" }]',value:g,onChange:a=>h(a.target.value),disabled:n})]}),p&&(0,e.jsx)("p",{className:"text-xs text-red-500 break-words",children:p}),r&&(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsxs)("div",{className:`text-sm font-medium ${r.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",r.imported," ",(0,j.Tl)("added"),", ",r.updated," ",(0,j.Tl)("updated"),x>0?`, ${x} ${(0,j.Tl)("skipped")}`:"",r.failed>0?`, ✗ ${r.failed} ${(0,j.Tl)("failed")}`:""]}),w.length>0&&(0,e.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:w.map(a=>(0,e.jsxs)("li",{className:"text-red-400",children:["[",a.index,"] ",a.error]},a.index))})]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:v,fullWidth:!0,disabled:n||!g.trim(),children:n?(0,j.Tl)("Importing..."):(0,j.Tl)("Import All")}),(0,e.jsx)(i.$n,{onClick:u,variant:"ghost",fullWidth:!0,disabled:n,children:(0,j.Tl)("Close")})]})]})})}i=(k.then?(await k)():k)[0],l.propTypes={isOpen:h().bool.isRequired,onClose:h().func.isRequired,onSuccess:h().func,password:h().string},d()}catch(a){d(a)}})}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,2391,7568,2430,4613,8410,2116,1220,8247,6070,1329,5781,7274,7239,1219,4123,8172,6960,4886],()=>b(b.s=33361));module.exports=c})();
14
+ pt-only-auto-named`:o,[aa,ab]=(0,f.useState)("single"),[ac,ad]=(0,f.useState)(""),[ae,af]=(0,f.useState)(null),ag=()=>x&&F.ollamaHostUrl.trim()?{baseUrl:F.ollamaHostUrl.trim()}:B?{azureEndpoint:H.azureEndpoint,apiVersion:H.apiVersion,deployment:H.deployment,organization:H.organization}:C?{accountId:J.accountId}:D&&L?{region:L}:void 0,ah=async()=>{S(!0);try{let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:F.apiKey,providerSpecificData:ag()})}),c=await a.json();U(c.valid?"success":"failed"),W(c.valid?null:c.error||null),Y(!!c.maintenance)}catch{U("failed"),W(null),Y(!1)}finally{S(!1)}},ai=async()=>{if(b&&(x||F.apiKey)&&(x||F.name)&&(!d||F.defaultModel.trim())){$(!0);try{let a=!1;try{S(!0),U(null);let c=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:F.apiKey,providerSpecificData:ag()})});a=!!(await c.json()).valid,U(a?"success":"failed")}catch{U("failed")}finally{S(!1)}await t({name:F.name||(x?"Ollama Local":""),apiKey:F.apiKey,defaultModel:d?F.defaultModel.trim():void 0,priority:F.priority,proxyPoolId:F.proxyPoolId===w?null:F.proxyPoolId,testStatus:a?"active":"unknown",providerSpecificData:ag()})}finally{$(!1)}}},aj=async()=>{let a=ac.split("\n");if(!a.length)return;let c=(0,k.P)(a,s,{isCloudflareAi:C});if(!c.length)return;$(!0),af(null);let d=0,e=0;for(let a of c)try{let c=!1;try{let d=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:a.apiKey})});c=!!(await d.json().catch(()=>({}))).valid}catch{c=!1}(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:a.apiKey,name:a.name,priority:1,testStatus:c?"active":"unknown",...a.providerSpecificData?{providerSpecificData:a.providerSpecificData}:{}})})).ok?d++:e++}catch{e++}$(!1),af({success:d,failed:e}),d>0&&u&&u()};return b?(0,e.jsx)(i.aF,{isOpen:a,title:`Add ${c||b} ${A}`,onClose:v,children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{size:"sm",variant:"single"===aa?"primary":"ghost",onClick:()=>{ab("single"),af(null)},children:"Single"}),(0,e.jsx)(i.$n,{size:"sm",variant:"bulk"===aa?"primary":"ghost",onClick:()=>{ab("bulk"),af(null)},children:"Bulk Add"})]}),"bulk"===aa&&(0,e.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,e.jsx)("p",{className:"text-xs text-text-muted",children:C?(0,e.jsxs)(e.Fragment,{children:["One key per line. Format: ",(0,e.jsx)("code",{children:"name|apiKey|accountId"})," or just ",(0,e.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}):"qoder"===b?(0,e.jsxs)(e.Fragment,{children:["One PAT per line. Format: ",(0,e.jsx)("code",{children:"name|pt-..."})," or just ",(0,e.jsx)("code",{children:"pt-..."})," (auto-named by index)."]}):(0,e.jsxs)(e.Fragment,{children:["One key per line. Format: ",(0,e.jsx)("code",{children:"name|apiKey"})," or just ",(0,e.jsx)("code",{children:"apiKey"})," (auto-named by index)."]})}),(0,e.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[140px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:_,value:ac,onChange:a=>ad(a.target.value)}),ae&&(0,e.jsxs)("div",{className:`text-sm font-medium ${ae.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",ae.success," added",ae.failed>0?`, ✗ ${ae.failed} failed`:""]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:aj,fullWidth:!0,disabled:Z||!ac.trim(),children:Z?"Adding...":"Add All Keys"}),(0,e.jsx)(i.$n,{onClick:v,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===aa&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.pd,{label:"Name",value:F.name,onChange:a=>G({...F,name:a.target.value}),placeholder:x?"Ollama Local":"Production Key"}),x&&(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.pd,{label:"Ollama Host URL",value:F.ollamaHostUrl,onChange:a=>G({...F,ollamaHostUrl:a.target.value}),placeholder:"http://localhost:11434",className:"flex-1"}),(0,e.jsx)("div",{className:"pt-6",children:(0,e.jsx)(i.$n,{onClick:ah,disabled:R||Z,variant:"secondary",children:R?"Checking...":"Check"})})]}),!x&&(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.pd,{label:A,type:y?"text":"password",value:F.apiKey,onChange:a=>G({...F,apiKey:a.target.value}),placeholder:y?"grok-web"===b?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":z?"xai-...":"qoder"===b?"pt-...":"",className:"flex-1"}),(0,e.jsx)("div",{className:"pt-6",children:(0,e.jsx)(i.$n,{onClick:ah,disabled:!F.apiKey||R||Z,variant:"secondary",children:R?"Checking...":"Check"})})]}),z&&(0,e.jsx)("p",{className:"text-xs text-text-muted",children:"Use a direct xAI API key from console.x.ai. This is separate from Grok Build OAuth."}),y&&m&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[m,p&&(0,e.jsxs)(e.Fragment,{children:[" ",(0,e.jsxs)("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",p.replace(/^https?:\/\//,"")]})]})]}),D&&(0,e.jsxs)("div",{children:[(0,e.jsx)(i.l6,{label:"Region",value:L,onChange:a=>{M(a.target.value),O(!0)},options:D.map(a=>({value:a.id,label:a.label}))}),P&&!N&&(0,e.jsxs)("p",{className:"text-xs text-primary mt-1 flex items-center gap-1",children:[(0,e.jsx)("span",{children:"\uD83C\uDF10"}),(0,e.jsx)("span",{children:(0,l.Tl)("Auto-matched region based on network location ({country})").replace("{country}",P.country)})]})]}),d&&(0,e.jsx)(i.pd,{label:"Default Model",value:F.defaultModel,onChange:a=>G({...F,defaultModel:a.target.value}),placeholder:g?"claude-3-5-sonnet-latest":"gpt-4o-mini"}),x&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:["Leave blank to use ",(0,e.jsx)("code",{children:"http://localhost:11434"}),". For remote Ollama, enter the full host URL (e.g. ",(0,e.jsx)("code",{children:"http://192.168.1.10:11434"}),")."]}),T&&(0,e.jsx)(i.Ex,{variant:"success"===T?"success":X?"warning":"error",children:"success"===T?"Valid":X?"Check endpoint":"Invalid"}),X&&V&&(0,e.jsx)("p",{className:"text-xs text-amber-500 break-words",children:V}),r&&(0,e.jsx)("p",{className:"text-xs text-red-500 break-words",children:r}),d&&(0,e.jsx)("p",{className:"text-xs text-text-muted",children:"Enter the model ID exactly as your compatible endpoint expects it. This model will be saved as the connection default."}),C&&(0,e.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,e.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Cloudflare Workers AI"}),(0,e.jsx)(i.pd,{label:"Account ID",value:J.accountId,onChange:a=>K({...J,accountId:a.target.value}),placeholder:"abc123def456..."}),(0,e.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,e.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]}),B&&(0,e.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,e.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,e.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,e.jsx)(i.pd,{label:"Azure Endpoint",value:H.azureEndpoint,onChange:a=>I({...H,azureEndpoint:a.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,e.jsx)(i.pd,{label:"Deployment Name",value:H.deployment,onChange:a=>I({...H,deployment:a.target.value}),placeholder:"gpt-4"}),(0,e.jsx)(i.pd,{label:"API Version",value:H.apiVersion,onChange:a=>I({...H,apiVersion:a.target.value}),placeholder:"2024-10-01-preview"}),(0,e.jsx)(i.pd,{label:"Organization",value:H.organization,onChange:a=>I({...H,organization:a.target.value}),placeholder:"Organization ID"})]})]}),(0,e.jsx)(i.pd,{label:"Priority",type:"number",value:F.priority,onChange:a=>G({...F,priority:Number.parseInt(a.target.value)||1})}),(0,e.jsx)(i.l6,{label:"Proxy Pool",value:F.proxyPoolId,onChange:a=>G({...F,proxyPoolId:a.target.value}),options:[{value:w,label:"None"},...(q||[]).map(a=>({value:a.id,label:a.name}))],placeholder:"None"}),0===(q||[]).length&&(0,e.jsx)("p",{className:"text-xs text-text-muted",children:"No active proxy pools available. Create one in Proxy Pools page first."}),(0,e.jsx)("p",{className:"text-xs text-text-muted",children:"Legacy manual proxy fields are still accepted by API for backward compatibility."}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:ai,fullWidth:!0,disabled:Z||!x&&(!F.name||!F.apiKey)||d&&!F.defaultModel.trim()||B&&(!H.azureEndpoint||!H.deployment||!H.organization)||C&&!J.accountId,children:Z?"Saving...":"Save"}),(0,e.jsx)(i.$n,{onClick:v,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}n.propTypes={isOpen:h().bool.isRequired,provider:h().string,providerName:h().string,isCompatible:h().bool,isAnthropic:h().bool,authType:h().string,authHint:h().string,website:h().string,proxyPools:h().arrayOf(h().shape({id:h().string,name:h().string})),error:h().string,existingNames:h().arrayOf(h().string),onSave:h().func.isRequired,onBulkDone:h().func,onClose:h().func.isRequired},d()}catch(a){d(a)}})},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},91914:(a,b,c)=>{"use strict";function d(a,b,c={}){let{isCloudflareAi:e=!1}=c,f=new Set((Array.isArray(b)?b:[]).map(a=>"string"==typeof a?a.toLowerCase():"")),g=[];for(let b of a){let a,c="string"==typeof b?b.trim():"";if(!c)continue;let d=function(a,b={}){let{isCloudflareAi:c=!1}=b,d=a.split("|");if(c&&d.length>=3){let a=d[0].trim();return{baseName:a||"Key",apiKey:d.slice(1,-1).join("|").trim(),providerSpecificData:{accountId:d[d.length-1].trim()}}}return d.length>=2?{baseName:d[0].trim()||"Key",apiKey:d.slice(1).join("|").trim()}:{baseName:"Key",apiKey:d[0].trim()}}(c,{isCloudflareAi:e});if(!d||!d.apiKey)continue;let h=d.baseName,i=1;for(;a=`${h} ${i}`,f.has(a.toLowerCase());)i+=1;f.add(a.toLowerCase());let j={name:a,apiKey:d.apiKey,skipped:!1};d.providerSpecificData&&(j.providerSpecificData=d.providerSpecificData),g.push(j)}return g}c.d(b,{P:()=>d})},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 \"F:\\\\Files\\\\GitHub Files\\\\10router\\\\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.")},"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\providers\\[id]\\page.js","default")},93848:(a,b,c)=>{"use strict";c.d(b,{o:()=>e});let d=new Map;async function e(a){if(!a?.url||!a?.type)return[];let b=d.get(a.url);if(b&&Date.now()<b.expiresAt)return b.data;try{let b=new URLSearchParams({url:a.url,type:a.type}),c=await fetch(`/api/providers/suggested-models?${b}`);if(!c.ok)return[];let e=(await c.json()).data??[];return d.set(a.url,{data:e,expiresAt:Date.now()+6e5}),e}catch{return[]}}},94317:(a,b,c)=>{"use strict";function d(a,b){if(!b||"number"!=typeof a||Number.isNaN(a))return!1;let{from:c,to:d}=b;return c<=d?a>=c&&a<d:a>=c||a<d}c.d(b,{X:()=>d})},94735:a=>{"use strict";a.exports=require("events")},95296:(a,b,c)=>{"use strict";c.a(a,async(a,b)=>{try{var d=c(48249),e=(c(67484),c(49885)),f=c.n(e),g=c(94579),h=(c(18753),a([g]));g=(h.then?(await h)():h)[0],f().string.isRequired,f().string.isRequired,f().string,f().func.isRequired,f().func.isRequired,f().func,f().oneOf(["ok","error"]),f().bool,f().string.isRequired,f().object.isRequired,f().arrayOf(f().object),f().string,f().func.isRequired,f().func.isRequired,f().func.isRequired,f().func.isRequired,b()}catch(a){b(a)}})},98376:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>o});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=c(41371),k=c(18753),l=c(99258),m=a([i]);function n({modelId:a,fullModel:b,copied:c,onCopy:d,onDeleteAlias:f,onToggle:g,enabled:h=!0,onTest:i,testStatus:j,isTesting:k}){let l="ok"===j?"#22c55e":"error"===j?"#ef4444":void 0;return(0,e.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===j?"border-green-500/40":"error"===j?"border-red-500/40":"border-border"} hover:bg-sidebar/50 ${h?"":"opacity-60"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:l?{color:l}:void 0,children:"ok"===j?"check_circle":"error"===j?"cancel":"smart_toy"}),(0,e.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,e.jsx)("p",{className:"text-sm font-medium truncate",children:a}),(0,e.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,e.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:b}),(0,e.jsxs)("div",{className:"relative group/btn",children:[(0,e.jsx)("button",{onClick:()=>d(b,`model-${a}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a}`?"check":"content_copy"})}),(0,e.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c===`model-${a}`?"Copied!":"Copy"})]}),i&&(0,e.jsxs)("div",{className:"relative group/btn",children:[(0,e.jsx)("button",{onClick:i,disabled:k,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",style:k?{animation:"spin 1s linear infinite"}:void 0,children:k?"progress_activity":"science"})}),(0,e.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:k?"Testing...":"Test"})]})]})]}),g&&(0,e.jsx)("button",{onClick:g,className:`p-1 rounded ${h?"text-amber-500 hover:bg-amber-50 dark:hover:bg-amber-500/10":"text-green-600 hover:bg-green-50 dark:hover:bg-green-500/10"}`,title:h?"Disable model":"Activate model",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:h?"block":"restart_alt"})}),(0,e.jsx)("button",{onClick:f,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function o({providerStorageAlias:a,providerDisplayAlias:b,modelAliases:c,customModels:d,copied:g,onCopy:h,onDeleteAlias:m,onAddCustomModel:p,onToggleCustomModel:q,onDeleteCustomModel:r,onBulkCustomModels:s,connections:t,isAnthropic:u}){let v=(0,j.i)(),[w,x]=(0,f.useState)(""),[y,z]=(0,f.useState)(!1),[A,B]=(0,f.useState)(!1),[C,D]=(0,f.useState)(null),[E,F]=(0,f.useState)({}),G=async b=>{if(!C){D(b);try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${a}/${b}`})}),d=await c.json();F(a=>({...a,[b]:d.ok?"ok":"error"}))}catch{F(a=>({...a,[b]:"error"}))}finally{D(null)}}},H=(0,k.R)({customModels:d,modelAliases:c,providerAlias:a,type:"llm"}),I=H.filter(a=>!1!==a.enabled),J=H.filter(a=>!1===a.enabled),K=async()=>{if(!w.trim()||y)return;let a=w.trim();if(H.some(b=>b.id===a))return void v.warning("Model already exists for this provider.");z(!0);try{await p(a),x("")}catch(a){console.log("Error adding model:",a)}finally{z(!1)}},L=async()=>{if(A)return;let a=t.find(a=>!1!==a.isActive);if(a){B(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void v.error(c.error||"Failed to import models");let d=c.models||[];if(0===d.length)return void v.warning("No models returned from /models.");let e=0;for(let a of d){let b=a.id||a.name||a.model;b&&(H.some(a=>a.id===b)||(await p(b,!1),e+=1))}0===e&&v.warning("No new models were added.")}catch(a){console.log("Error importing models:",a)}finally{B(!1)}}},M=t.some(a=>!1!==a.isActive);return(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",u?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,e.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,e.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,e.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,e.jsx)("input",{id:"new-compatible-model-input",type:"text",value:w,onChange:a=>x(a.target.value),onKeyDown:a=>"Enter"===a.key&&K(),placeholder:u?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})]}),(0,e.jsx)(i.$n,{size:"sm",icon:"add",onClick:K,disabled:!w.trim()||y,children:y?"Adding...":"Add"}),(0,e.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"download",onClick:L,disabled:!M||A,children:A?"Importing...":"Import from /models"})]}),!M&&(0,e.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),H.length>0&&s&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-xs text-text-muted",children:[(0,e.jsxs)("span",{children:[H.length," custom model",H.length>1?"s":""]}),(0,e.jsx)("span",{children:"\xb7"}),(0,e.jsx)("button",{onClick:()=>s(!0),className:"text-primary hover:underline",children:(0,l.Tl)("Enable all")}),(0,e.jsx)("span",{children:"\xb7"}),(0,e.jsx)("button",{onClick:()=>s(!1),className:"text-text-muted hover:text-red-500 hover:underline",children:(0,l.Tl)("Disable all")}),(0,e.jsxs)("span",{children:["— ",(0,l.Tl)("bulk actions affect what clients see in /v1/models")]})]}),I.length>0&&(0,e.jsx)("div",{className:"flex flex-col gap-3",children:I.map(({id:c,alias:d,source:f})=>(0,e.jsx)(n,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?r(c):m(d),onToggle:"custom"===f&&q?()=>q(c,!1):void 0,onTest:t.length>0?()=>G(c):void 0,testStatus:E[c],isTesting:C===c},`${f}-${a}/${c}`))}),J.length>0&&(0,e.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,e.jsx)("p",{className:"text-xs text-text-muted",children:"Disabled (activate to expose again):"}),J.map(({id:c,alias:d,source:f})=>(0,e.jsx)(n,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,enabled:!1,onDeleteAlias:()=>"custom"===f?r(c):m(d),onToggle:"custom"===f&&q?()=>q(c,!0):void 0,onTest:t.length>0?()=>G(c):void 0,testStatus:E[c],isTesting:C===c},`disabled-${f}-${a}/${c}`))]})]})}i=(m.then?(await m)():m)[0],o.propTypes={providerStorageAlias:h().string.isRequired,providerDisplayAlias:h().string.isRequired,modelAliases:h().object.isRequired,customModels:h().arrayOf(h().object),copied:h().string,onCopy:h().func.isRequired,onDeleteAlias:h().func.isRequired,onAddCustomModel:h().func.isRequired,onBulkCustomModels:h().func,onToggleCustomModel:h().func,onDeleteCustomModel:h().func.isRequired,connections:h().arrayOf(h().shape({id:h().string,isActive:h().bool})).isRequired,isAnthropic:h().bool},d()}catch(a){d(a)}})},98995:a=>{"use strict";a.exports=require("node:module")},99548:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=c(99258),k=a([i]);function l({isOpen:a,onClose:b,onSuccess:c,password:d=""}){let[g,h]=(0,f.useState)(""),[k,m]=(0,f.useState)(""),[n,o]=(0,f.useState)(!1),[p,q]=(0,f.useState)(""),[r,s]=(0,f.useState)(null),t=(0,f.useRef)(null),u=()=>{n||(h(""),m(""),q(""),s(null),t.current&&(t.current.value=""),b())},v=async()=>{let a;q(""),s(null);let b=g.trim();if(!b)return;try{a=JSON.parse(b)}catch(a){q(`${(0,j.Tl)("Invalid JSON")}: ${a.message}`);return}let e=Array.isArray(a)?a:a&&"object"==typeof a?Array.isArray(a.accounts)?a.accounts:[a]:null;if(!e||0===e.length)return void q((0,j.Tl)("No accounts found in input"));o(!0);try{let a=await fetch("/api/oauth/codebuddy-cn/bulk-import",{method:"POST",headers:{"Content-Type":"application/json",...d?{"x-10r-password":d}:{}},body:JSON.stringify({accounts:e})}),b=await a.json();if(!a.ok)return void q(401===a.status?(0,j.Tl)("Invalid password"):b?.error||`Request failed: ${a.status}`);s(b),(b.imported>0||b.updated>0)&&"function"==typeof c&&c()}catch(a){q(a.message||(0,j.Tl)("Request failed"))}finally{o(!1)}},w=r?.results?.filter(a=>!a.ok)||[],x=r?.skipped??0;return(0,e.jsx)(i.aF,{isOpen:a,title:(0,j.Tl)("Import CodeBuddy CN Accounts"),onClose:u,children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)(i.$n,{variant:"secondary",fullWidth:!0,icon:"upload_file",onClick:()=>t.current?.click(),disabled:n,children:k||(0,j.Tl)("Choose JSON file...")}),(0,e.jsx)("input",{ref:t,type:"file",accept:".json,application/json",className:"hidden",onChange:a=>{let b=a.target.files?.[0];if(!b)return;m(b.name),q(""),s(null);let c=new FileReader;c.onload=()=>h(String(c.result||"")),c.onerror=()=>q((0,j.Tl)("Failed to read file")),c.readAsText(b)}})]}),(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("div",{className:"absolute -top-2 left-2 bg-sidebar px-1 text-[10px] text-text-muted",children:(0,j.Tl)("Or paste JSON")}),(0,e.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 pt-4 text-sm font-mono resize-y min-h-[160px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:'[{ "access_token": "eyJ...", "refresh_token": "eyJ...", "nickname": "<nickname>" }]',value:g,onChange:a=>h(a.target.value),disabled:n})]}),p&&(0,e.jsx)("p",{className:"text-xs text-red-500 break-words",children:p}),r&&(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsxs)("div",{className:`text-sm font-medium ${r.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",r.imported," ",(0,j.Tl)("added"),", ",r.updated," ",(0,j.Tl)("updated"),x>0?`, ${x} ${(0,j.Tl)("skipped")}`:"",r.failed>0?`, ✗ ${r.failed} ${(0,j.Tl)("failed")}`:""]}),w.length>0&&(0,e.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:w.map(a=>(0,e.jsxs)("li",{className:"text-red-400",children:["[",a.index,"] ",a.error]},a.index))})]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:v,fullWidth:!0,disabled:n||!g.trim(),children:n?(0,j.Tl)("Importing..."):(0,j.Tl)("Import All")}),(0,e.jsx)(i.$n,{onClick:u,variant:"ghost",fullWidth:!0,disabled:n,children:(0,j.Tl)("Close")})]})]})})}i=(k.then?(await k)():k)[0],l.propTypes={isOpen:h().bool.isRequired,onClose:h().func.isRequired,onSuccess:h().func,password:h().string},d()}catch(a){d(a)}})}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,2391,7568,2430,4613,8410,2116,1220,890,6070,1329,5781,7274,7239,1219,4123,8172,6960,4886],()=>b(b.s=33361));module.exports=c})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/bundle-name/index.js","../../../../../../../node_modules/bundle-name/package.json","../../../../../../../node_modules/default-browser-id/index.js","../../../../../../../node_modules/default-browser-id/package.json","../../../../../../../node_modules/default-browser/index.js","../../../../../../../node_modules/default-browser/package.json","../../../../../../../node_modules/default-browser/windows.js","../../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/is-docker/index.js","../../../../../../../node_modules/is-docker/package.json","../../../../../../../node_modules/is-in-ssh/index.js","../../../../../../../node_modules/is-in-ssh/package.json","../../../../../../../node_modules/is-inside-container/index.js","../../../../../../../node_modules/is-inside-container/package.json","../../../../../../../node_modules/is-wsl/index.js","../../../../../../../node_modules/is-wsl/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/open/index.js","../../../../../../../node_modules/open/package.json","../../../../../../../node_modules/open/xdg-open","../../../../../../../node_modules/powershell-utils/index.js","../../../../../../../node_modules/powershell-utils/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/run-applescript/index.js","../../../../../../../node_modules/run-applescript/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../node_modules/wsl-utils/index.js","../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/index.js","../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/package.json","../../../../../../../node_modules/wsl-utils/package.json","../../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1159.js","../../../../../chunks/1219.js","../../../../../chunks/1220.js","../../../../../chunks/1261.js","../../../../../chunks/1329.js","../../../../../chunks/1386.js","../../../../../chunks/1531.js","../../../../../chunks/1710.js","../../../../../chunks/1813.js","../../../../../chunks/1998.js","../../../../../chunks/2051.js","../../../../../chunks/2112.js","../../../../../chunks/2116.js","../../../../../chunks/2120.js","../../../../../chunks/2132.js","../../../../../chunks/2391.js","../../../../../chunks/241.js","../../../../../chunks/2430.js","../../../../../chunks/2732.js","../../../../../chunks/2750.js","../../../../../chunks/2812.js","../../../../../chunks/2926.js","../../../../../chunks/3225.js","../../../../../chunks/3245.js","../../../../../chunks/3256.js","../../../../../chunks/3433.js","../../../../../chunks/3500.js","../../../../../chunks/3535.js","../../../../../chunks/3593.js","../../../../../chunks/3792.js","../../../../../chunks/3885.js","../../../../../chunks/3943.js","../../../../../chunks/4123.js","../../../../../chunks/4125.js","../../../../../chunks/4152.js","../../../../../chunks/4177.js","../../../../../chunks/4190.js","../../../../../chunks/4282.js","../../../../../chunks/4290.js","../../../../../chunks/4293.js","../../../../../chunks/436.js","../../../../../chunks/4575.js","../../../../../chunks/4613.js","../../../../../chunks/4689.js","../../../../../chunks/4730.js","../../../../../chunks/4739.js","../../../../../chunks/4741.js","../../../../../chunks/4746.js","../../../../../chunks/4755.js","../../../../../chunks/4780.js","../../../../../chunks/4803.js","../../../../../chunks/4886.js","../../../../../chunks/4927.js","../../../../../chunks/507.js","../../../../../chunks/5081.js","../../../../../chunks/5182.js","../../../../../chunks/5210.js","../../../../../chunks/5258.js","../../../../../chunks/5330.js","../../../../../chunks/539.js","../../../../../chunks/5433.js","../../../../../chunks/5485.js","../../../../../chunks/5573.js","../../../../../chunks/5615.js","../../../../../chunks/5640.js","../../../../../chunks/5692.js","../../../../../chunks/5781.js","../../../../../chunks/595.js","../../../../../chunks/6070.js","../../../../../chunks/6103.js","../../../../../chunks/6133.js","../../../../../chunks/615.js","../../../../../chunks/6252.js","../../../../../chunks/6306.js","../../../../../chunks/6326.js","../../../../../chunks/6457.js","../../../../../chunks/6492.js","../../../../../chunks/653.js","../../../../../chunks/6756.js","../../../../../chunks/6763.js","../../../../../chunks/6844.js","../../../../../chunks/6875.js","../../../../../chunks/6921.js","../../../../../chunks/6922.js","../../../../../chunks/6947.js","../../../../../chunks/6956.js","../../../../../chunks/6960.js","../../../../../chunks/698.js","../../../../../chunks/6982.js","../../../../../chunks/7066.js","../../../../../chunks/7067.js","../../../../../chunks/7122.js","../../../../../chunks/7239.js","../../../../../chunks/7247.js","../../../../../chunks/7274.js","../../../../../chunks/7322.js","../../../../../chunks/7568.js","../../../../../chunks/7726.js","../../../../../chunks/7753.js","../../../../../chunks/7774.js","../../../../../chunks/7775.js","../../../../../chunks/7828.js","../../../../../chunks/7965.js","../../../../../chunks/8062.js","../../../../../chunks/808.js","../../../../../chunks/8172.js","../../../../../chunks/8247.js","../../../../../chunks/8292.js","../../../../../chunks/8370.js","../../../../../chunks/8410.js","../../../../../chunks/8469.js","../../../../../chunks/8499.js","../../../../../chunks/8520.js","../../../../../chunks/8595.js","../../../../../chunks/8658.js","../../../../../chunks/8672.js","../../../../../chunks/8689.js","../../../../../chunks/8749.js","../../../../../chunks/8838.js","../../../../../chunks/8895.js","../../../../../chunks/8920.js","../../../../../chunks/8988.js","../../../../../chunks/9046.js","../../../../../chunks/9055.js","../../../../../chunks/9154.js","../../../../../chunks/939.js","../../../../../chunks/9451.js","../../../../../chunks/9489.js","../../../../../chunks/9609.js","../../../../../chunks/9628.js","../../../../../chunks/976.js","../../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
1
+ {"version":1,"files":["../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/bundle-name/index.js","../../../../../../../node_modules/bundle-name/package.json","../../../../../../../node_modules/default-browser-id/index.js","../../../../../../../node_modules/default-browser-id/package.json","../../../../../../../node_modules/default-browser/index.js","../../../../../../../node_modules/default-browser/package.json","../../../../../../../node_modules/default-browser/windows.js","../../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/is-docker/index.js","../../../../../../../node_modules/is-docker/package.json","../../../../../../../node_modules/is-in-ssh/index.js","../../../../../../../node_modules/is-in-ssh/package.json","../../../../../../../node_modules/is-inside-container/index.js","../../../../../../../node_modules/is-inside-container/package.json","../../../../../../../node_modules/is-wsl/index.js","../../../../../../../node_modules/is-wsl/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/open/index.js","../../../../../../../node_modules/open/package.json","../../../../../../../node_modules/open/xdg-open","../../../../../../../node_modules/powershell-utils/index.js","../../../../../../../node_modules/powershell-utils/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/run-applescript/index.js","../../../../../../../node_modules/run-applescript/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../node_modules/wsl-utils/index.js","../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/index.js","../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/package.json","../../../../../../../node_modules/wsl-utils/package.json","../../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1159.js","../../../../../chunks/1219.js","../../../../../chunks/1220.js","../../../../../chunks/1261.js","../../../../../chunks/1329.js","../../../../../chunks/1386.js","../../../../../chunks/1531.js","../../../../../chunks/1710.js","../../../../../chunks/1813.js","../../../../../chunks/1998.js","../../../../../chunks/2112.js","../../../../../chunks/2116.js","../../../../../chunks/2120.js","../../../../../chunks/2132.js","../../../../../chunks/2391.js","../../../../../chunks/241.js","../../../../../chunks/2430.js","../../../../../chunks/2468.js","../../../../../chunks/2732.js","../../../../../chunks/2750.js","../../../../../chunks/2812.js","../../../../../chunks/2926.js","../../../../../chunks/3225.js","../../../../../chunks/3245.js","../../../../../chunks/3256.js","../../../../../chunks/3433.js","../../../../../chunks/3500.js","../../../../../chunks/3535.js","../../../../../chunks/3593.js","../../../../../chunks/3792.js","../../../../../chunks/3885.js","../../../../../chunks/3943.js","../../../../../chunks/4123.js","../../../../../chunks/4125.js","../../../../../chunks/4152.js","../../../../../chunks/4177.js","../../../../../chunks/4190.js","../../../../../chunks/4282.js","../../../../../chunks/4293.js","../../../../../chunks/436.js","../../../../../chunks/4575.js","../../../../../chunks/4613.js","../../../../../chunks/4689.js","../../../../../chunks/4730.js","../../../../../chunks/4739.js","../../../../../chunks/4741.js","../../../../../chunks/4746.js","../../../../../chunks/4755.js","../../../../../chunks/4780.js","../../../../../chunks/4803.js","../../../../../chunks/4886.js","../../../../../chunks/4927.js","../../../../../chunks/507.js","../../../../../chunks/5081.js","../../../../../chunks/5182.js","../../../../../chunks/5210.js","../../../../../chunks/5258.js","../../../../../chunks/5330.js","../../../../../chunks/539.js","../../../../../chunks/5433.js","../../../../../chunks/5485.js","../../../../../chunks/5573.js","../../../../../chunks/5615.js","../../../../../chunks/5640.js","../../../../../chunks/5692.js","../../../../../chunks/5781.js","../../../../../chunks/595.js","../../../../../chunks/6070.js","../../../../../chunks/6103.js","../../../../../chunks/6133.js","../../../../../chunks/615.js","../../../../../chunks/6252.js","../../../../../chunks/6306.js","../../../../../chunks/6326.js","../../../../../chunks/6457.js","../../../../../chunks/6492.js","../../../../../chunks/653.js","../../../../../chunks/6756.js","../../../../../chunks/6763.js","../../../../../chunks/6844.js","../../../../../chunks/6875.js","../../../../../chunks/6921.js","../../../../../chunks/6922.js","../../../../../chunks/6947.js","../../../../../chunks/6956.js","../../../../../chunks/6960.js","../../../../../chunks/698.js","../../../../../chunks/6982.js","../../../../../chunks/7066.js","../../../../../chunks/7067.js","../../../../../chunks/7070.js","../../../../../chunks/7122.js","../../../../../chunks/7239.js","../../../../../chunks/7247.js","../../../../../chunks/7274.js","../../../../../chunks/7322.js","../../../../../chunks/7568.js","../../../../../chunks/7726.js","../../../../../chunks/7753.js","../../../../../chunks/7774.js","../../../../../chunks/7775.js","../../../../../chunks/7828.js","../../../../../chunks/7965.js","../../../../../chunks/8062.js","../../../../../chunks/808.js","../../../../../chunks/8172.js","../../../../../chunks/8292.js","../../../../../chunks/8370.js","../../../../../chunks/8410.js","../../../../../chunks/8469.js","../../../../../chunks/8499.js","../../../../../chunks/8520.js","../../../../../chunks/8595.js","../../../../../chunks/8658.js","../../../../../chunks/8672.js","../../../../../chunks/8689.js","../../../../../chunks/8749.js","../../../../../chunks/8838.js","../../../../../chunks/8895.js","../../../../../chunks/890.js","../../../../../chunks/8920.js","../../../../../chunks/8988.js","../../../../../chunks/9046.js","../../../../../chunks/9055.js","../../../../../chunks/9154.js","../../../../../chunks/939.js","../../../../../chunks/9451.js","../../../../../chunks/9489.js","../../../../../chunks/9609.js","../../../../../chunks/9628.js","../../../../../chunks/976.js","../../../../../webpack-runtime.js","page_client-reference-manifest.js"]}