9router-proxy 0.5.97 → 0.6.0

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 (1646) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +9 -5
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +26 -26
  5. package/app/.next-cli-build/react-loadable-manifest.json +67 -0
  6. package/app/.next-cli-build/routes-manifest.json +26 -0
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +5 -5
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  76. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  77. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  79. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  84. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  85. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  87. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  88. package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
  89. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
  90. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -5
  91. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  92. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  93. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  95. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/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/cli-tools/all-statuses/route.js +27 -12
  115. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  117. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  121. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +4 -0
  127. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -0
  128. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route_client-reference-manifest.js +1 -0
  129. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  132. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -2
  138. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  140. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  142. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  144. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  150. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +24 -9
  152. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -2
  154. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  156. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +3 -3
  158. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  160. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  162. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  198. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  230. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  254. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
  258. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +42 -0
  260. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -0
  261. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route_client-reference-manifest.js +1 -0
  262. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -0
  263. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -0
  264. package/app/.next-cli-build/server/app/api/oauth/zed/import/route_client-reference-manifest.js +1 -0
  265. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  280. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  298. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  300. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  304. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  306. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  308. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  310. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  312. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  314. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  316. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  318. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  320. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  322. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  324. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  328. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  336. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  358. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -0
  360. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -0
  361. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route_client-reference-manifest.js +1 -0
  362. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  363. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  365. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  367. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  368. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  369. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  370. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  371. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  373. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  374. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  377. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  378. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  379. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  380. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  381. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  382. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  383. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  387. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  389. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  391. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  398. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  401. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  403. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  405. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  411. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  412. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  413. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  415. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  416. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  417. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  418. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  419. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  420. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  421. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  422. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  423. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  424. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  425. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  426. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  427. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  428. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  429. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  430. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  431. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  432. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  433. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  434. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  435. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  436. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  437. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  439. package/app/.next-cli-build/server/app/callback.html +1 -1
  440. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  441. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  442. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  443. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
  444. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  445. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
  446. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +7 -7
  447. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
  448. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  449. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  450. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
  451. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +7 -7
  452. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
  453. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  454. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  455. package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
  456. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +7 -7
  457. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
  458. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  459. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  460. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
  461. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +7 -7
  462. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
  463. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  464. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  465. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +7 -7
  466. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +7 -7
  467. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
  468. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  469. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  470. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -7
  471. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +7 -7
  472. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -7
  473. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  474. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  475. package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -7
  476. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +7 -7
  477. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
  478. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  479. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  480. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
  481. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +7 -7
  482. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
  483. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  484. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  485. package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
  486. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +7 -7
  487. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
  488. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  489. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  490. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -7
  491. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +7 -7
  492. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
  493. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  494. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  495. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +7 -7
  496. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +7 -7
  497. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +7 -7
  498. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  499. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  500. package/app/.next-cli-build/server/app/dashboard/quota.rsc +8 -8
  501. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +8 -8
  502. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -8
  503. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  504. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  505. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  506. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  507. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  508. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  509. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  510. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  511. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
  512. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  513. package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
  514. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +7 -7
  515. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
  516. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  517. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  518. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
  519. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +7 -7
  520. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
  521. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  522. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  523. package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -7
  524. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +7 -7
  525. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
  526. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  527. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  528. package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
  529. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +7 -7
  530. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
  531. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  532. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  533. package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
  534. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +7 -7
  535. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
  536. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  537. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  538. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  539. package/app/.next-cli-build/server/app/index.html +1 -1
  540. package/app/.next-cli-build/server/app/index.rsc +5 -5
  541. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +5 -5
  542. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
  543. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  544. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  545. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  546. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  547. package/app/.next-cli-build/server/app/landing.html +1 -1
  548. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  549. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  550. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  551. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +5 -5
  552. package/app/.next-cli-build/server/app/login/page.js +1 -1
  553. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  554. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  555. package/app/.next-cli-build/server/app/login.html +1 -1
  556. package/app/.next-cli-build/server/app/login.rsc +6 -6
  557. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
  558. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  559. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +6 -6
  560. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  561. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  562. package/app/.next-cli-build/server/app/page.js +1 -1
  563. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  564. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  565. package/app/.next-cli-build/server/app-paths-manifest.json +9 -5
  566. package/app/.next-cli-build/server/chunks/1306.js +1 -0
  567. package/app/.next-cli-build/server/chunks/1731.js +1 -0
  568. package/app/.next-cli-build/server/chunks/1839.js +1 -1
  569. package/app/.next-cli-build/server/chunks/2214.js +2 -2
  570. package/app/.next-cli-build/server/chunks/24.js +1 -1
  571. package/app/.next-cli-build/server/chunks/2409.js +1 -1
  572. package/app/.next-cli-build/server/chunks/{9528.js → 2750.js} +2 -3
  573. package/app/.next-cli-build/server/chunks/2760.js +1 -0
  574. package/app/.next-cli-build/server/chunks/3210.js +1 -1
  575. package/app/.next-cli-build/server/chunks/3449.js +1 -0
  576. package/app/.next-cli-build/server/chunks/3535.js +1 -1
  577. package/app/.next-cli-build/server/chunks/3726.js +1 -1
  578. package/app/.next-cli-build/server/chunks/3891.js +1 -0
  579. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  580. package/app/.next-cli-build/server/chunks/3966.js +1 -1
  581. package/app/.next-cli-build/server/chunks/4049.js +1 -1
  582. package/app/.next-cli-build/server/chunks/412.js +2 -2
  583. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  584. package/app/.next-cli-build/server/chunks/4190.js +1 -0
  585. package/app/.next-cli-build/server/chunks/436.js +1 -1
  586. package/app/.next-cli-build/server/chunks/4572.js +1 -1
  587. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  588. package/app/.next-cli-build/server/chunks/4884.js +3 -3
  589. package/app/.next-cli-build/server/chunks/5026.js +1 -1
  590. package/app/.next-cli-build/server/chunks/5069.js +1 -1
  591. package/app/.next-cli-build/server/chunks/{2778.js → 5299.js} +29 -18
  592. package/app/.next-cli-build/server/chunks/5330.js +7 -7
  593. package/app/.next-cli-build/server/chunks/5615.js +3 -3
  594. package/app/.next-cli-build/server/chunks/562.js +1 -0
  595. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  596. package/app/.next-cli-build/server/chunks/615.js +1 -1
  597. package/app/.next-cli-build/server/chunks/6249.js +2 -2
  598. package/app/.next-cli-build/server/chunks/6457.js +1 -1
  599. package/app/.next-cli-build/server/chunks/6708.js +1 -0
  600. package/app/.next-cli-build/server/chunks/6763.js +1 -1
  601. package/app/.next-cli-build/server/chunks/6877.js +1 -1
  602. package/app/.next-cli-build/server/chunks/6921.js +67 -0
  603. package/app/.next-cli-build/server/chunks/6922.js +1 -1
  604. package/app/.next-cli-build/server/chunks/700.js +1 -0
  605. package/app/.next-cli-build/server/chunks/7041.js +1 -0
  606. package/app/.next-cli-build/server/chunks/7066.js +1 -0
  607. package/app/.next-cli-build/server/chunks/7121.js +1 -0
  608. package/app/.next-cli-build/server/chunks/7211.js +1 -1
  609. package/app/.next-cli-build/server/chunks/7220.js +1 -1
  610. package/app/.next-cli-build/server/chunks/7247.js +1 -1
  611. package/app/.next-cli-build/server/chunks/7716.js +1 -1
  612. package/app/.next-cli-build/server/chunks/7843.js +1 -1
  613. package/app/.next-cli-build/server/chunks/7911.js +1 -0
  614. package/app/.next-cli-build/server/chunks/7995.js +6 -6
  615. package/app/.next-cli-build/server/chunks/8363.js +1 -1
  616. package/app/.next-cli-build/server/chunks/8402.js +1 -1
  617. package/app/.next-cli-build/server/chunks/8499.js +5 -5
  618. package/app/.next-cli-build/server/chunks/8635.js +1 -1
  619. package/app/.next-cli-build/server/chunks/869.js +1 -1
  620. package/app/.next-cli-build/server/chunks/8895.js +8 -8
  621. package/app/.next-cli-build/server/chunks/8920.js +1 -1
  622. package/app/.next-cli-build/server/chunks/9055.js +2 -0
  623. package/app/.next-cli-build/server/chunks/9128.js +1 -1
  624. package/app/.next-cli-build/server/chunks/9402.js +1 -1
  625. package/app/.next-cli-build/server/instrumentation.js +1 -1
  626. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  627. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  628. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  629. package/app/.next-cli-build/server/middleware.js +2 -2
  630. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  631. package/app/.next-cli-build/server/pages/404.html +1 -1
  632. package/app/.next-cli-build/server/pages/500.html +1 -1
  633. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  634. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  635. package/app/.next-cli-build/static/Pm8r3lt24W2zPSHP-HWt8/_buildManifest.js +1 -0
  636. package/app/.next-cli-build/static/chunks/124.c092990b4bdb9713.js +1 -0
  637. package/app/.next-cli-build/static/chunks/1321-722b3ba12fb90c9c.js +1 -0
  638. package/app/.next-cli-build/static/chunks/1649-772a31b7f3a65900.js +1 -0
  639. package/app/.next-cli-build/static/chunks/2435.8a5a02e626c780d0.js +1 -0
  640. package/app/.next-cli-build/static/chunks/3842-da1878db3339b090.js +1 -0
  641. package/app/.next-cli-build/static/chunks/5462.c82c64c26a864ec0.js +1 -0
  642. package/app/.next-cli-build/static/chunks/5497-d1d3efe2c72086a3.js +7 -0
  643. package/app/.next-cli-build/static/chunks/5815-de6408f8865f88f8.js +1 -0
  644. package/app/.next-cli-build/static/chunks/6808-d08581bd3ec10128.js +1 -0
  645. package/app/.next-cli-build/static/chunks/{6447-706004106e6d03ff.js → 761-5f63fd0d31d03600.js} +31 -20
  646. package/app/.next-cli-build/static/chunks/763-82556b77902c26fd.js +1 -0
  647. package/app/.next-cli-build/static/chunks/809-e1f8430398963827.js +3 -0
  648. package/app/.next-cli-build/static/chunks/8569.df0d706176dc1f57.js +1 -0
  649. package/app/.next-cli-build/static/chunks/9233.1939b75215f8cdcf.js +67 -0
  650. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-ca89dcf426c74779.js → page-47caf1cd52ad4b91.js} +1 -1
  651. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-d721aa02fd6dc229.js → page-72ec90d965d57554.js} +1 -1
  652. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-380f1b80350b23b4.js → page-bb76399120456e3e.js} +1 -1
  653. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-08d02f26c201563c.js +1 -0
  654. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-cfcb45884632a585.js → page-66757e17ed9f3b23.js} +1 -1
  655. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-a2112a715423804a.js +1 -0
  656. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-a40d84d4f27edd8a.js → page-0825f811e863492d.js} +1 -1
  657. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-d7b40543599e82bf.js → page-cb24c102a5535c19.js} +1 -1
  658. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-cbb1ba118b052f0e.js → page-52036f4792a313ea.js} +1 -1
  659. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-fbbaf3ed3a147133.js → page-e9115d1643fe83ab.js} +1 -1
  660. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-e0f49f53559a4932.js → page-830479c6d2b66001.js} +1 -1
  661. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-0eae4c30300946df.js +1 -0
  662. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-558ba86898d31c4a.js → page-a49e8b527b71b335.js} +1 -1
  663. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-f09e9a4381b3f214.js +27 -0
  664. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-0a7d4e1b0ca385bc.js → page-8dee526b0891af9f.js} +1 -1
  665. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-8e2af722266f9488.js → page-a9be7ed9f48cf08c.js} +1 -1
  666. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-3a34726f76033b40.js → page-62191da25897532f.js} +1 -1
  667. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-c13245238182b386.js → page-ce1a79a72b996ef0.js} +1 -1
  668. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-abe38e6377ed4950.js +1 -0
  669. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-8ec563b885652f2b.js → page-cfdf2480dbe558ad.js} +1 -1
  670. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-56c7545e40d9ec94.js → page-8a823c86edc9c9e9.js} +1 -1
  671. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-6b1c30be4655dec9.js +1 -0
  672. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-5f49319e3301cd87.js +1 -0
  673. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-528881684d589195.js → layout-a39c08212f881306.js} +1 -1
  674. package/app/.next-cli-build/static/chunks/app/_global-error/page-6680a0968873a9a5.js +1 -0
  675. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-6680a0968873a9a5.js +1 -0
  676. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-6680a0968873a9a5.js +1 -0
  677. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-6680a0968873a9a5.js +1 -0
  678. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-6680a0968873a9a5.js +1 -0
  679. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-6680a0968873a9a5.js +1 -0
  680. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-6680a0968873a9a5.js +1 -0
  681. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-6680a0968873a9a5.js +1 -0
  682. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-6680a0968873a9a5.js +1 -0
  683. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-6680a0968873a9a5.js +1 -0
  684. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-6680a0968873a9a5.js +1 -0
  685. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-6680a0968873a9a5.js +1 -0
  686. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-6680a0968873a9a5.js +1 -0
  687. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-6680a0968873a9a5.js +1 -0
  688. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-6680a0968873a9a5.js +1 -0
  689. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-6680a0968873a9a5.js +1 -0
  690. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-6680a0968873a9a5.js +1 -0
  691. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-6680a0968873a9a5.js +1 -0
  692. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-6680a0968873a9a5.js +1 -0
  693. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-6680a0968873a9a5.js +1 -0
  694. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-6680a0968873a9a5.js +1 -0
  695. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-6680a0968873a9a5.js +1 -0
  696. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-6680a0968873a9a5.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-6680a0968873a9a5.js +1 -0
  698. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-6680a0968873a9a5.js +1 -0
  699. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-6680a0968873a9a5.js +1 -0
  700. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-6680a0968873a9a5.js +1 -0
  701. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-6680a0968873a9a5.js +1 -0
  702. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-6680a0968873a9a5.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-6680a0968873a9a5.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-6680a0968873a9a5.js +1 -0
  705. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-6680a0968873a9a5.js +1 -0
  706. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-6680a0968873a9a5.js +1 -0
  707. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-6680a0968873a9a5.js +1 -0
  708. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-6680a0968873a9a5.js +1 -0
  709. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-6680a0968873a9a5.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-6680a0968873a9a5.js +1 -0
  711. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-6680a0968873a9a5.js +1 -0
  712. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-6680a0968873a9a5.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-6680a0968873a9a5.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/api/combos/route-6680a0968873a9a5.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-6680a0968873a9a5.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-6680a0968873a9a5.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-6680a0968873a9a5.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-6680a0968873a9a5.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-6680a0968873a9a5.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-6680a0968873a9a5.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/api/health/route-6680a0968873a9a5.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/api/init/route-6680a0968873a9a5.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-6680a0968873a9a5.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/api/keys/route-6680a0968873a9a5.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/api/locale/route-6680a0968873a9a5.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-6680a0968873a9a5.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-6680a0968873a9a5.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-6680a0968873a9a5.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-6680a0968873a9a5.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-6680a0968873a9a5.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-6680a0968873a9a5.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-6680a0968873a9a5.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-6680a0968873a9a5.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-6680a0968873a9a5.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-6680a0968873a9a5.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-6680a0968873a9a5.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-6680a0968873a9a5.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/models/route-6680a0968873a9a5.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/models/test/route-6680a0968873a9a5.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-6680a0968873a9a5.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-6680a0968873a9a5.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-6680a0968873a9a5.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-6680a0968873a9a5.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-6680a0968873a9a5.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-6680a0968873a9a5.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-6680a0968873a9a5.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-6680a0968873a9a5.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-6680a0968873a9a5.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-6680a0968873a9a5.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-6680a0968873a9a5.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-6680a0968873a9a5.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-6680a0968873a9a5.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-6680a0968873a9a5.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-6680a0968873a9a5.js +1 -0
  755. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-6680a0968873a9a5.js +1 -0
  756. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-6680a0968873a9a5.js +1 -0
  757. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-6680a0968873a9a5.js +1 -0
  758. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-6680a0968873a9a5.js +1 -0
  759. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-6680a0968873a9a5.js +1 -0
  760. package/app/.next-cli-build/static/chunks/app/api/pricing/route-6680a0968873a9a5.js +1 -0
  761. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-6680a0968873a9a5.js +1 -0
  762. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-6680a0968873a9a5.js +1 -0
  763. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-6680a0968873a9a5.js +1 -0
  764. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-6680a0968873a9a5.js +1 -0
  765. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-6680a0968873a9a5.js +1 -0
  766. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-6680a0968873a9a5.js +1 -0
  767. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-6680a0968873a9a5.js +1 -0
  768. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-6680a0968873a9a5.js +1 -0
  769. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-6680a0968873a9a5.js +1 -0
  770. package/app/.next-cli-build/static/chunks/app/api/providers/route-6680a0968873a9a5.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-6680a0968873a9a5.js +1 -0
  772. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-6680a0968873a9a5.js +1 -0
  773. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-6680a0968873a9a5.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-6680a0968873a9a5.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-6680a0968873a9a5.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-6680a0968873a9a5.js +1 -0
  777. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-6680a0968873a9a5.js +1 -0
  778. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-6680a0968873a9a5.js +1 -0
  779. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-6680a0968873a9a5.js +1 -0
  780. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-6680a0968873a9a5.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-6680a0968873a9a5.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-6680a0968873a9a5.js +1 -0
  783. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-6680a0968873a9a5.js +1 -0
  784. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-6680a0968873a9a5.js +1 -0
  785. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-6680a0968873a9a5.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-6680a0968873a9a5.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-6680a0968873a9a5.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-6680a0968873a9a5.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-6680a0968873a9a5.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-6680a0968873a9a5.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/api/settings/route-6680a0968873a9a5.js +1 -0
  792. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-6680a0968873a9a5.js +1 -0
  793. package/app/.next-cli-build/static/chunks/app/api/tags/route-6680a0968873a9a5.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-6680a0968873a9a5.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-6680a0968873a9a5.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-6680a0968873a9a5.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-6680a0968873a9a5.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-6680a0968873a9a5.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-6680a0968873a9a5.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-6680a0968873a9a5.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-6680a0968873a9a5.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-6680a0968873a9a5.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-6680a0968873a9a5.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-6680a0968873a9a5.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-6680a0968873a9a5.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-6680a0968873a9a5.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-6680a0968873a9a5.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-6680a0968873a9a5.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-6680a0968873a9a5.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-6680a0968873a9a5.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-6680a0968873a9a5.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-6680a0968873a9a5.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-6680a0968873a9a5.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-6680a0968873a9a5.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-6680a0968873a9a5.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-6680a0968873a9a5.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-6680a0968873a9a5.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-6680a0968873a9a5.js +1 -0
  819. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-6680a0968873a9a5.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-6680a0968873a9a5.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-6680a0968873a9a5.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-6680a0968873a9a5.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-6680a0968873a9a5.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-6680a0968873a9a5.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-6680a0968873a9a5.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-6680a0968873a9a5.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-6680a0968873a9a5.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-6680a0968873a9a5.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-6680a0968873a9a5.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-6680a0968873a9a5.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-6680a0968873a9a5.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/api/v1/route-6680a0968873a9a5.js +1 -0
  833. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-6680a0968873a9a5.js +1 -0
  834. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-6680a0968873a9a5.js +1 -0
  835. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-6680a0968873a9a5.js +1 -0
  836. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-6680a0968873a9a5.js +1 -0
  837. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-6680a0968873a9a5.js +1 -0
  838. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-6680a0968873a9a5.js +1 -0
  839. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-6680a0968873a9a5.js +1 -0
  840. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-6680a0968873a9a5.js +1 -0
  841. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-6680a0968873a9a5.js +1 -0
  842. package/app/.next-cli-build/static/chunks/app/api/version/route-6680a0968873a9a5.js +1 -0
  843. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-6680a0968873a9a5.js +1 -0
  844. package/app/.next-cli-build/static/chunks/app/api/version/update/route-6680a0968873a9a5.js +1 -0
  845. package/app/.next-cli-build/static/chunks/app/login/{page-660374ffb28a0929.js → page-89eb6dc8740863de.js} +1 -1
  846. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-6680a0968873a9a5.js +1 -0
  847. package/app/.next-cli-build/static/chunks/app/page-6680a0968873a9a5.js +1 -0
  848. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-6680a0968873a9a5.js +1 -0
  849. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-6680a0968873a9a5.js +1 -0
  850. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-6680a0968873a9a5.js +1 -0
  851. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-6680a0968873a9a5.js +1 -0
  852. package/app/.next-cli-build/static/chunks/webpack-8e6082996069dfa8.js +1 -0
  853. package/app/.next-cli-build/static/css/34a50b560d15a5ac.css +1 -0
  854. package/app/node_modules/caniuse-lite/data/agents.js +1 -1
  855. package/app/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  856. package/app/node_modules/caniuse-lite/data/features/aac.js +1 -1
  857. package/app/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  858. package/app/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  859. package/app/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  860. package/app/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  861. package/app/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  862. package/app/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  863. package/app/node_modules/caniuse-lite/data/features/apng.js +1 -1
  864. package/app/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  865. package/app/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  866. package/app/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  867. package/app/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  868. package/app/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  869. package/app/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  870. package/app/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  871. package/app/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  872. package/app/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  873. package/app/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  874. package/app/node_modules/caniuse-lite/data/features/audio.js +1 -1
  875. package/app/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  876. package/app/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  877. package/app/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  878. package/app/node_modules/caniuse-lite/data/features/av1.js +1 -1
  879. package/app/node_modules/caniuse-lite/data/features/avif.js +1 -1
  880. package/app/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  881. package/app/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  882. package/app/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  883. package/app/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  884. package/app/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  885. package/app/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  886. package/app/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  887. package/app/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  888. package/app/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  889. package/app/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  890. package/app/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  891. package/app/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  892. package/app/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  893. package/app/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  894. package/app/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  895. package/app/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  896. package/app/node_modules/caniuse-lite/data/features/calc.js +1 -1
  897. package/app/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  898. package/app/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  899. package/app/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  900. package/app/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  901. package/app/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  902. package/app/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  903. package/app/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  904. package/app/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  905. package/app/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  906. package/app/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  907. package/app/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  908. package/app/node_modules/caniuse-lite/data/features/colr.js +1 -1
  909. package/app/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  910. package/app/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  911. package/app/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  912. package/app/node_modules/caniuse-lite/data/features/const.js +1 -1
  913. package/app/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  914. package/app/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  915. package/app/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  916. package/app/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  917. package/app/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  918. package/app/node_modules/caniuse-lite/data/features/cors.js +1 -1
  919. package/app/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  920. package/app/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  921. package/app/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  922. package/app/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  923. package/app/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  924. package/app/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  925. package/app/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  926. package/app/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  927. package/app/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  928. package/app/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  929. package/app/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  930. package/app/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  931. package/app/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  932. package/app/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  933. package/app/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  934. package/app/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  935. package/app/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  936. package/app/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  937. package/app/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  938. package/app/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  939. package/app/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  940. package/app/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  941. package/app/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  942. package/app/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  943. package/app/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  944. package/app/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  945. package/app/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  946. package/app/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  947. package/app/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  948. package/app/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  949. package/app/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  950. package/app/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  951. package/app/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  952. package/app/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  953. package/app/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  954. package/app/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  955. package/app/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  956. package/app/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  957. package/app/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  958. package/app/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  959. package/app/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  960. package/app/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  961. package/app/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  962. package/app/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  963. package/app/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  964. package/app/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  965. package/app/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  966. package/app/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  967. package/app/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  968. package/app/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  969. package/app/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  970. package/app/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  971. package/app/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  972. package/app/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  973. package/app/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  974. package/app/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  975. package/app/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  976. package/app/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  977. package/app/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  978. package/app/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  979. package/app/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  980. package/app/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  981. package/app/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  982. package/app/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  983. package/app/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  984. package/app/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  985. package/app/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  986. package/app/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  987. package/app/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  988. package/app/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  989. package/app/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  990. package/app/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  991. package/app/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  992. package/app/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  993. package/app/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  994. package/app/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  995. package/app/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  996. package/app/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  997. package/app/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  998. package/app/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  999. package/app/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  1000. package/app/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  1001. package/app/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  1002. package/app/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  1003. package/app/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  1004. package/app/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  1005. package/app/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  1006. package/app/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  1007. package/app/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  1008. package/app/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  1009. package/app/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  1010. package/app/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  1011. package/app/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  1012. package/app/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  1013. package/app/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  1014. package/app/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  1015. package/app/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  1016. package/app/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  1017. package/app/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  1018. package/app/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  1019. package/app/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  1020. package/app/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  1021. package/app/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  1022. package/app/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  1023. package/app/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  1024. package/app/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  1025. package/app/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  1026. package/app/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  1027. package/app/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  1028. package/app/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  1029. package/app/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  1030. package/app/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  1031. package/app/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  1032. package/app/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  1033. package/app/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  1034. package/app/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  1035. package/app/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  1036. package/app/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  1037. package/app/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  1038. package/app/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  1039. package/app/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  1040. package/app/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  1041. package/app/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  1042. package/app/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  1043. package/app/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  1044. package/app/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  1045. package/app/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  1046. package/app/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  1047. package/app/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  1048. package/app/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  1049. package/app/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  1050. package/app/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  1051. package/app/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  1052. package/app/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  1053. package/app/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  1054. package/app/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  1055. package/app/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  1056. package/app/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  1057. package/app/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  1058. package/app/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  1059. package/app/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  1060. package/app/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  1061. package/app/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  1062. package/app/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  1063. package/app/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  1064. package/app/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  1065. package/app/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  1066. package/app/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  1067. package/app/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  1068. package/app/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  1069. package/app/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  1070. package/app/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  1071. package/app/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  1072. package/app/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  1073. package/app/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  1074. package/app/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  1075. package/app/node_modules/caniuse-lite/data/features/details.js +1 -1
  1076. package/app/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  1077. package/app/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  1078. package/app/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  1079. package/app/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  1080. package/app/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  1081. package/app/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  1082. package/app/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  1083. package/app/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  1084. package/app/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  1085. package/app/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  1086. package/app/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  1087. package/app/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  1088. package/app/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  1089. package/app/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  1090. package/app/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  1091. package/app/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  1092. package/app/node_modules/caniuse-lite/data/features/download.js +1 -1
  1093. package/app/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  1094. package/app/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  1095. package/app/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  1096. package/app/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  1097. package/app/node_modules/caniuse-lite/data/features/eme.js +1 -1
  1098. package/app/node_modules/caniuse-lite/data/features/eot.js +1 -1
  1099. package/app/node_modules/caniuse-lite/data/features/es5.js +1 -1
  1100. package/app/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  1101. package/app/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  1102. package/app/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  1103. package/app/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  1104. package/app/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  1105. package/app/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  1106. package/app/node_modules/caniuse-lite/data/features/es6.js +1 -1
  1107. package/app/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  1108. package/app/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  1109. package/app/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  1110. package/app/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  1111. package/app/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  1112. package/app/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  1113. package/app/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  1114. package/app/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  1115. package/app/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  1116. package/app/node_modules/caniuse-lite/data/features/flac.js +1 -1
  1117. package/app/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  1118. package/app/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  1119. package/app/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  1120. package/app/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  1121. package/app/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  1122. package/app/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  1123. package/app/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  1124. package/app/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  1125. package/app/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  1126. package/app/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  1127. package/app/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  1128. package/app/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  1129. package/app/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  1130. package/app/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  1131. package/app/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  1132. package/app/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  1133. package/app/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  1134. package/app/node_modules/caniuse-lite/data/features/forms.js +1 -1
  1135. package/app/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  1136. package/app/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  1137. package/app/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  1138. package/app/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  1139. package/app/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  1140. package/app/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  1141. package/app/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  1142. package/app/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  1143. package/app/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  1144. package/app/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  1145. package/app/node_modules/caniuse-lite/data/features/heif.js +1 -1
  1146. package/app/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  1147. package/app/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  1148. package/app/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  1149. package/app/node_modules/caniuse-lite/data/features/history.js +1 -1
  1150. package/app/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  1151. package/app/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  1152. package/app/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  1153. package/app/node_modules/caniuse-lite/data/features/http2.js +1 -1
  1154. package/app/node_modules/caniuse-lite/data/features/http3.js +1 -1
  1155. package/app/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  1156. package/app/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  1157. package/app/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  1158. package/app/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  1159. package/app/node_modules/caniuse-lite/data/features/ime.js +1 -1
  1160. package/app/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  1161. package/app/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  1162. package/app/node_modules/caniuse-lite/data/features/imports.js +1 -1
  1163. package/app/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  1164. package/app/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  1165. package/app/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  1166. package/app/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  1167. package/app/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  1168. package/app/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  1169. package/app/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  1170. package/app/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  1171. package/app/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  1172. package/app/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  1173. package/app/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  1174. package/app/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  1175. package/app/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  1176. package/app/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  1177. package/app/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  1178. package/app/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  1179. package/app/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  1180. package/app/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  1181. package/app/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  1182. package/app/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  1183. package/app/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  1184. package/app/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  1185. package/app/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  1186. package/app/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  1187. package/app/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  1188. package/app/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  1189. package/app/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  1190. package/app/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  1191. package/app/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  1192. package/app/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  1193. package/app/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  1194. package/app/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  1195. package/app/node_modules/caniuse-lite/data/features/json.js +1 -1
  1196. package/app/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  1197. package/app/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  1198. package/app/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  1199. package/app/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  1200. package/app/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  1201. package/app/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  1202. package/app/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  1203. package/app/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  1204. package/app/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  1205. package/app/node_modules/caniuse-lite/data/features/let.js +1 -1
  1206. package/app/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  1207. package/app/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  1208. package/app/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  1209. package/app/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  1210. package/app/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  1211. package/app/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  1212. package/app/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  1213. package/app/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  1214. package/app/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  1215. package/app/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  1216. package/app/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  1217. package/app/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  1218. package/app/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  1219. package/app/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  1220. package/app/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  1221. package/app/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  1222. package/app/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  1223. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  1224. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  1225. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  1226. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  1227. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  1228. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  1229. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  1230. package/app/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  1231. package/app/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  1232. package/app/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  1233. package/app/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  1234. package/app/node_modules/caniuse-lite/data/features/menu.js +1 -1
  1235. package/app/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  1236. package/app/node_modules/caniuse-lite/data/features/meter.js +1 -1
  1237. package/app/node_modules/caniuse-lite/data/features/midi.js +1 -1
  1238. package/app/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  1239. package/app/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  1240. package/app/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  1241. package/app/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  1242. package/app/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  1243. package/app/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  1244. package/app/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  1245. package/app/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  1246. package/app/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  1247. package/app/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  1248. package/app/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  1249. package/app/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  1250. package/app/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  1251. package/app/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  1252. package/app/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  1253. package/app/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  1254. package/app/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  1255. package/app/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  1256. package/app/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  1257. package/app/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  1258. package/app/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  1259. package/app/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  1260. package/app/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  1261. package/app/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  1262. package/app/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  1263. package/app/node_modules/caniuse-lite/data/features/opus.js +1 -1
  1264. package/app/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  1265. package/app/node_modules/caniuse-lite/data/features/outline.js +1 -1
  1266. package/app/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  1267. package/app/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  1268. package/app/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  1269. package/app/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  1270. package/app/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  1271. package/app/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  1272. package/app/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  1273. package/app/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  1274. package/app/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  1275. package/app/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  1276. package/app/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  1277. package/app/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  1278. package/app/node_modules/caniuse-lite/data/features/picture.js +1 -1
  1279. package/app/node_modules/caniuse-lite/data/features/ping.js +1 -1
  1280. package/app/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  1281. package/app/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  1282. package/app/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  1283. package/app/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  1284. package/app/node_modules/caniuse-lite/data/features/portals.js +1 -1
  1285. package/app/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  1286. package/app/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  1287. package/app/node_modules/caniuse-lite/data/features/progress.js +1 -1
  1288. package/app/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  1289. package/app/node_modules/caniuse-lite/data/features/promises.js +1 -1
  1290. package/app/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  1291. package/app/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  1292. package/app/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  1293. package/app/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  1294. package/app/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  1295. package/app/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  1296. package/app/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  1297. package/app/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  1298. package/app/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  1299. package/app/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  1300. package/app/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  1301. package/app/node_modules/caniuse-lite/data/features/rem.js +1 -1
  1302. package/app/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  1303. package/app/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  1304. package/app/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  1305. package/app/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  1306. package/app/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  1307. package/app/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  1308. package/app/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  1309. package/app/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  1310. package/app/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  1311. package/app/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  1312. package/app/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  1313. package/app/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  1314. package/app/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  1315. package/app/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  1316. package/app/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  1317. package/app/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  1318. package/app/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  1319. package/app/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  1320. package/app/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  1321. package/app/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  1322. package/app/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  1323. package/app/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  1324. package/app/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  1325. package/app/node_modules/caniuse-lite/data/features/sni.js +1 -1
  1326. package/app/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  1327. package/app/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  1328. package/app/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  1329. package/app/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  1330. package/app/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  1331. package/app/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  1332. package/app/node_modules/caniuse-lite/data/features/stream.js +1 -1
  1333. package/app/node_modules/caniuse-lite/data/features/streams.js +1 -1
  1334. package/app/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  1335. package/app/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  1336. package/app/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  1337. package/app/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  1338. package/app/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  1339. package/app/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  1340. package/app/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  1341. package/app/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  1342. package/app/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  1343. package/app/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  1344. package/app/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  1345. package/app/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  1346. package/app/node_modules/caniuse-lite/data/features/svg.js +1 -1
  1347. package/app/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  1348. package/app/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  1349. package/app/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  1350. package/app/node_modules/caniuse-lite/data/features/template.js +1 -1
  1351. package/app/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  1352. package/app/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  1353. package/app/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  1354. package/app/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  1355. package/app/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  1356. package/app/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  1357. package/app/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  1358. package/app/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  1359. package/app/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  1360. package/app/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  1361. package/app/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  1362. package/app/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  1363. package/app/node_modules/caniuse-lite/data/features/touch.js +1 -1
  1364. package/app/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  1365. package/app/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  1366. package/app/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  1367. package/app/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  1368. package/app/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  1369. package/app/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  1370. package/app/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  1371. package/app/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  1372. package/app/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  1373. package/app/node_modules/caniuse-lite/data/features/url.js +1 -1
  1374. package/app/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  1375. package/app/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  1376. package/app/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  1377. package/app/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  1378. package/app/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  1379. package/app/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  1380. package/app/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  1381. package/app/node_modules/caniuse-lite/data/features/video.js +1 -1
  1382. package/app/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  1383. package/app/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  1384. package/app/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  1385. package/app/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  1386. package/app/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  1387. package/app/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  1388. package/app/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  1389. package/app/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  1390. package/app/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  1391. package/app/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  1392. package/app/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  1393. package/app/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  1394. package/app/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  1395. package/app/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  1396. package/app/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  1397. package/app/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  1398. package/app/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  1399. package/app/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  1400. package/app/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  1401. package/app/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  1402. package/app/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  1403. package/app/node_modules/caniuse-lite/data/features/wav.js +1 -1
  1404. package/app/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  1405. package/app/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  1406. package/app/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  1407. package/app/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  1408. package/app/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  1409. package/app/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  1410. package/app/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  1411. package/app/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  1412. package/app/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  1413. package/app/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  1414. package/app/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  1415. package/app/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  1416. package/app/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  1417. package/app/node_modules/caniuse-lite/data/features/webm.js +1 -1
  1418. package/app/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  1419. package/app/node_modules/caniuse-lite/data/features/webp.js +1 -1
  1420. package/app/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  1421. package/app/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  1422. package/app/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  1423. package/app/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  1424. package/app/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  1425. package/app/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  1426. package/app/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  1427. package/app/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  1428. package/app/node_modules/caniuse-lite/data/features/woff.js +1 -1
  1429. package/app/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  1430. package/app/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  1431. package/app/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  1432. package/app/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  1433. package/app/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  1434. package/app/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  1435. package/app/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  1436. package/app/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  1437. package/app/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  1438. package/app/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  1439. package/app/node_modules/caniuse-lite/data/versionGroups.js +1 -1
  1440. package/app/node_modules/caniuse-lite/package.json +1 -1
  1441. package/app/package.json +1 -1
  1442. package/app/public/providers/agnes.png +0 -0
  1443. package/app/public/providers/atria.png +0 -0
  1444. package/app/public/providers/bai.png +0 -0
  1445. package/app/public/providers/dahl.png +0 -0
  1446. package/app/public/providers/hermes.png +0 -0
  1447. package/app/public/providers/tokenharbor.png +0 -0
  1448. package/hooks/trayRuntime.js +152 -7
  1449. package/package.json +4 -2
  1450. package/src/cli/tray/tray.js +8 -5
  1451. package/src/cli/utils/modelSelector.js +73 -10
  1452. package/app/.next-cli-build/server/chunks/2870.js +0 -1
  1453. package/app/.next-cli-build/server/chunks/3933.js +0 -67
  1454. package/app/.next-cli-build/server/chunks/6022.js +0 -1
  1455. package/app/.next-cli-build/server/chunks/6984.js +0 -1
  1456. package/app/.next-cli-build/server/chunks/8306.js +0 -1
  1457. package/app/.next-cli-build/server/chunks/9820.js +0 -1
  1458. package/app/.next-cli-build/static/chunks/1321-51c9a181d2c170ea.js +0 -1
  1459. package/app/.next-cli-build/static/chunks/2997-559e004193f2a2ee.js +0 -67
  1460. package/app/.next-cli-build/static/chunks/5497-8e392875d8d17222.js +0 -7
  1461. package/app/.next-cli-build/static/chunks/809-c530a61052bf57d9.js +0 -3
  1462. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-663f892bfb9c79d1.js +0 -1
  1463. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-d9dba7b1a84d7b1b.js +0 -1
  1464. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-3d29afe881b86a20.js +0 -1
  1465. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-bf649e1e7bfffe06.js +0 -27
  1466. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-9af0cda95f346ab2.js +0 -1
  1467. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-0e367c183e161fca.js +0 -1
  1468. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-63854721fb4ee44d.js +0 -1
  1469. package/app/.next-cli-build/static/chunks/app/_global-error/page-8d5a053022fc1e16.js +0 -1
  1470. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-8d5a053022fc1e16.js +0 -1
  1471. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-8d5a053022fc1e16.js +0 -1
  1472. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-8d5a053022fc1e16.js +0 -1
  1473. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-8d5a053022fc1e16.js +0 -1
  1474. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-8d5a053022fc1e16.js +0 -1
  1475. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-8d5a053022fc1e16.js +0 -1
  1476. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-8d5a053022fc1e16.js +0 -1
  1477. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-8d5a053022fc1e16.js +0 -1
  1478. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-8d5a053022fc1e16.js +0 -1
  1479. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-8d5a053022fc1e16.js +0 -1
  1480. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-8d5a053022fc1e16.js +0 -1
  1481. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-8d5a053022fc1e16.js +0 -1
  1482. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-8d5a053022fc1e16.js +0 -1
  1483. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-8d5a053022fc1e16.js +0 -1
  1484. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-8d5a053022fc1e16.js +0 -1
  1485. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-8d5a053022fc1e16.js +0 -1
  1486. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-8d5a053022fc1e16.js +0 -1
  1487. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-8d5a053022fc1e16.js +0 -1
  1488. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-8d5a053022fc1e16.js +0 -1
  1489. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-8d5a053022fc1e16.js +0 -1
  1490. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-8d5a053022fc1e16.js +0 -1
  1491. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-8d5a053022fc1e16.js +0 -1
  1492. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-8d5a053022fc1e16.js +0 -1
  1493. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-8d5a053022fc1e16.js +0 -1
  1494. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-8d5a053022fc1e16.js +0 -1
  1495. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-8d5a053022fc1e16.js +0 -1
  1496. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-8d5a053022fc1e16.js +0 -1
  1497. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-8d5a053022fc1e16.js +0 -1
  1498. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-8d5a053022fc1e16.js +0 -1
  1499. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-8d5a053022fc1e16.js +0 -1
  1500. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-8d5a053022fc1e16.js +0 -1
  1501. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-8d5a053022fc1e16.js +0 -1
  1502. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-8d5a053022fc1e16.js +0 -1
  1503. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-8d5a053022fc1e16.js +0 -1
  1504. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-8d5a053022fc1e16.js +0 -1
  1505. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-8d5a053022fc1e16.js +0 -1
  1506. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-8d5a053022fc1e16.js +0 -1
  1507. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-8d5a053022fc1e16.js +0 -1
  1508. package/app/.next-cli-build/static/chunks/app/api/combos/route-8d5a053022fc1e16.js +0 -1
  1509. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-8d5a053022fc1e16.js +0 -1
  1510. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-8d5a053022fc1e16.js +0 -1
  1511. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-8d5a053022fc1e16.js +0 -1
  1512. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-8d5a053022fc1e16.js +0 -1
  1513. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-8d5a053022fc1e16.js +0 -1
  1514. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-8d5a053022fc1e16.js +0 -1
  1515. package/app/.next-cli-build/static/chunks/app/api/health/route-8d5a053022fc1e16.js +0 -1
  1516. package/app/.next-cli-build/static/chunks/app/api/init/route-8d5a053022fc1e16.js +0 -1
  1517. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-8d5a053022fc1e16.js +0 -1
  1518. package/app/.next-cli-build/static/chunks/app/api/keys/route-8d5a053022fc1e16.js +0 -1
  1519. package/app/.next-cli-build/static/chunks/app/api/locale/route-8d5a053022fc1e16.js +0 -1
  1520. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-8d5a053022fc1e16.js +0 -1
  1521. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-8d5a053022fc1e16.js +0 -1
  1522. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-8d5a053022fc1e16.js +0 -1
  1523. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-8d5a053022fc1e16.js +0 -1
  1524. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-8d5a053022fc1e16.js +0 -1
  1525. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-8d5a053022fc1e16.js +0 -1
  1526. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-8d5a053022fc1e16.js +0 -1
  1527. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-8d5a053022fc1e16.js +0 -1
  1528. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-8d5a053022fc1e16.js +0 -1
  1529. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-8d5a053022fc1e16.js +0 -1
  1530. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-8d5a053022fc1e16.js +0 -1
  1531. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-8d5a053022fc1e16.js +0 -1
  1532. package/app/.next-cli-build/static/chunks/app/api/models/route-8d5a053022fc1e16.js +0 -1
  1533. package/app/.next-cli-build/static/chunks/app/api/models/test/route-8d5a053022fc1e16.js +0 -1
  1534. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-8d5a053022fc1e16.js +0 -1
  1535. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-8d5a053022fc1e16.js +0 -1
  1536. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-8d5a053022fc1e16.js +0 -1
  1537. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-8d5a053022fc1e16.js +0 -1
  1538. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-8d5a053022fc1e16.js +0 -1
  1539. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-8d5a053022fc1e16.js +0 -1
  1540. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-8d5a053022fc1e16.js +0 -1
  1541. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-8d5a053022fc1e16.js +0 -1
  1542. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-8d5a053022fc1e16.js +0 -1
  1543. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-8d5a053022fc1e16.js +0 -1
  1544. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-8d5a053022fc1e16.js +0 -1
  1545. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-8d5a053022fc1e16.js +0 -1
  1546. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-8d5a053022fc1e16.js +0 -1
  1547. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-8d5a053022fc1e16.js +0 -1
  1548. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-8d5a053022fc1e16.js +0 -1
  1549. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-8d5a053022fc1e16.js +0 -1
  1550. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-8d5a053022fc1e16.js +0 -1
  1551. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-8d5a053022fc1e16.js +0 -1
  1552. package/app/.next-cli-build/static/chunks/app/api/pricing/route-8d5a053022fc1e16.js +0 -1
  1553. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-8d5a053022fc1e16.js +0 -1
  1554. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-8d5a053022fc1e16.js +0 -1
  1555. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-8d5a053022fc1e16.js +0 -1
  1556. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-8d5a053022fc1e16.js +0 -1
  1557. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-8d5a053022fc1e16.js +0 -1
  1558. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-8d5a053022fc1e16.js +0 -1
  1559. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-8d5a053022fc1e16.js +0 -1
  1560. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-8d5a053022fc1e16.js +0 -1
  1561. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-8d5a053022fc1e16.js +0 -1
  1562. package/app/.next-cli-build/static/chunks/app/api/providers/route-8d5a053022fc1e16.js +0 -1
  1563. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-8d5a053022fc1e16.js +0 -1
  1564. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-8d5a053022fc1e16.js +0 -1
  1565. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-8d5a053022fc1e16.js +0 -1
  1566. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-8d5a053022fc1e16.js +0 -1
  1567. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-8d5a053022fc1e16.js +0 -1
  1568. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-8d5a053022fc1e16.js +0 -1
  1569. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-8d5a053022fc1e16.js +0 -1
  1570. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-8d5a053022fc1e16.js +0 -1
  1571. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-8d5a053022fc1e16.js +0 -1
  1572. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-8d5a053022fc1e16.js +0 -1
  1573. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-8d5a053022fc1e16.js +0 -1
  1574. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-8d5a053022fc1e16.js +0 -1
  1575. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-8d5a053022fc1e16.js +0 -1
  1576. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-8d5a053022fc1e16.js +0 -1
  1577. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-8d5a053022fc1e16.js +0 -1
  1578. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-8d5a053022fc1e16.js +0 -1
  1579. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-8d5a053022fc1e16.js +0 -1
  1580. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-8d5a053022fc1e16.js +0 -1
  1581. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-8d5a053022fc1e16.js +0 -1
  1582. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-8d5a053022fc1e16.js +0 -1
  1583. package/app/.next-cli-build/static/chunks/app/api/settings/route-8d5a053022fc1e16.js +0 -1
  1584. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-8d5a053022fc1e16.js +0 -1
  1585. package/app/.next-cli-build/static/chunks/app/api/tags/route-8d5a053022fc1e16.js +0 -1
  1586. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-8d5a053022fc1e16.js +0 -1
  1587. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-8d5a053022fc1e16.js +0 -1
  1588. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-8d5a053022fc1e16.js +0 -1
  1589. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-8d5a053022fc1e16.js +0 -1
  1590. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-8d5a053022fc1e16.js +0 -1
  1591. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-8d5a053022fc1e16.js +0 -1
  1592. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-8d5a053022fc1e16.js +0 -1
  1593. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-8d5a053022fc1e16.js +0 -1
  1594. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-8d5a053022fc1e16.js +0 -1
  1595. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-8d5a053022fc1e16.js +0 -1
  1596. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-8d5a053022fc1e16.js +0 -1
  1597. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-8d5a053022fc1e16.js +0 -1
  1598. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-8d5a053022fc1e16.js +0 -1
  1599. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-8d5a053022fc1e16.js +0 -1
  1600. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-8d5a053022fc1e16.js +0 -1
  1601. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-8d5a053022fc1e16.js +0 -1
  1602. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-8d5a053022fc1e16.js +0 -1
  1603. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-8d5a053022fc1e16.js +0 -1
  1604. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-8d5a053022fc1e16.js +0 -1
  1605. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-8d5a053022fc1e16.js +0 -1
  1606. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-8d5a053022fc1e16.js +0 -1
  1607. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-8d5a053022fc1e16.js +0 -1
  1608. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-8d5a053022fc1e16.js +0 -1
  1609. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-8d5a053022fc1e16.js +0 -1
  1610. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-8d5a053022fc1e16.js +0 -1
  1611. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-8d5a053022fc1e16.js +0 -1
  1612. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-8d5a053022fc1e16.js +0 -1
  1613. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-8d5a053022fc1e16.js +0 -1
  1614. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-8d5a053022fc1e16.js +0 -1
  1615. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-8d5a053022fc1e16.js +0 -1
  1616. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-8d5a053022fc1e16.js +0 -1
  1617. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-8d5a053022fc1e16.js +0 -1
  1618. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-8d5a053022fc1e16.js +0 -1
  1619. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-8d5a053022fc1e16.js +0 -1
  1620. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-8d5a053022fc1e16.js +0 -1
  1621. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-8d5a053022fc1e16.js +0 -1
  1622. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-8d5a053022fc1e16.js +0 -1
  1623. package/app/.next-cli-build/static/chunks/app/api/v1/route-8d5a053022fc1e16.js +0 -1
  1624. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-8d5a053022fc1e16.js +0 -1
  1625. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-8d5a053022fc1e16.js +0 -1
  1626. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-8d5a053022fc1e16.js +0 -1
  1627. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-8d5a053022fc1e16.js +0 -1
  1628. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-8d5a053022fc1e16.js +0 -1
  1629. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-8d5a053022fc1e16.js +0 -1
  1630. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-8d5a053022fc1e16.js +0 -1
  1631. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-8d5a053022fc1e16.js +0 -1
  1632. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-8d5a053022fc1e16.js +0 -1
  1633. package/app/.next-cli-build/static/chunks/app/api/version/route-8d5a053022fc1e16.js +0 -1
  1634. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-8d5a053022fc1e16.js +0 -1
  1635. package/app/.next-cli-build/static/chunks/app/api/version/update/route-8d5a053022fc1e16.js +0 -1
  1636. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-8d5a053022fc1e16.js +0 -1
  1637. package/app/.next-cli-build/static/chunks/app/page-8d5a053022fc1e16.js +0 -1
  1638. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-8d5a053022fc1e16.js +0 -1
  1639. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-8d5a053022fc1e16.js +0 -1
  1640. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-8d5a053022fc1e16.js +0 -1
  1641. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-8d5a053022fc1e16.js +0 -1
  1642. package/app/.next-cli-build/static/chunks/webpack-c156bc04aeb5cff4.js +0 -1
  1643. package/app/.next-cli-build/static/css/2fe9cf66a66ec7a4.css +0 -1
  1644. package/app/.next-cli-build/static/rAOrEk5gEUgHCtv3eF7Bm/_buildManifest.js +0 -1
  1645. package/app/public/providers/mimo-free.png +0 -0
  1646. /package/app/.next-cli-build/static/{rAOrEk5gEUgHCtv3eF7Bm → Pm8r3lt24W2zPSHP-HWt8}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3471],{35662:(e,t,s)=>{Promise.resolve().then(s.bind(s,64561))},64561:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>p});var a=s(95155),r=s(12115),l=s(35497),i=s(81127),o=s(21931),n=s(1620),d=s(31474),c=s(90620),m=s(93308),x=s(38202);function p(){let{theme:e,setTheme:t,isDark:s}=(0,n.D)(),[p,u]=(0,r.useState)(()=>(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${m.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,m.QC)(t)})()),[h,b]=(0,r.useState)(!1),[g,f]=(0,r.useState)(!1),[y,j]=(0,r.useState)(!1),[N,w]=(0,r.useState)({fallbackStrategy:"fill-first"}),[v,S]=(0,r.useState)(!0),[C,k]=(0,r.useState)({current:"",new:"",confirm:""}),[L,I]=(0,r.useState)({type:"",message:""}),[A,P]=(0,r.useState)(!1),[O,M]=(0,r.useState)(!1),[E,R]=(0,r.useState)({type:"",message:""}),[D,T]=(0,r.useState)({open:!1,mode:"",password:""}),U=(0,r.useRef)(null),[$,F]=(0,r.useState)({authMode:"password",oidcIssuerUrl:"",oidcClientId:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC"}),[q,_]=(0,r.useState)(""),[J,X]=(0,r.useState)({type:"",message:""}),[H,z]=(0,r.useState)(!1),[B,K]=(0,r.useState)(!1),[W,Z]=(0,r.useState)({type:"",message:""}),[Q,G]=(0,r.useState)(!1),V=window.location.origin,Y=V?`${V}/api/auth/oidc/callback`:"/api/auth/oidc/callback",ee=V?`${V}/api/auth/saml/acs`:"/api/auth/saml/acs",et=V?`${V}/api/auth/saml/metadata`:"/api/auth/saml/metadata",[es,ea]=(0,r.useState)("saml"),[er,el]=(0,r.useState)({samlEntryPoint:"",samlIssuer:"urn:9router:sp",samlCert:"",samlLoginLabel:"Sign in with SAML SSO",samlAttributeEmail:"email",samlAttributeName:"name"}),[ei,eo]=(0,r.useState)({type:"",message:""}),[en,ed]=(0,r.useState)(!1),[ec,em]=(0,r.useState)(!1),[ex,ep]=(0,r.useState)({type:"",message:""}),[eu,eh]=(0,r.useState)(!1),eb=(0,r.useRef)(null),eg=(0,r.useRef)(null),ef=(0,r.useRef)(null),[ey,ej]=(0,r.useState)({outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:""}),[eN,ew]=(0,r.useState)({type:"",message:""}),[ev,eS]=(0,r.useState)(!1),[eC,ek]=(0,r.useState)(!1),[eL,eI]=(0,r.useState)(!1);(0,r.useEffect)(()=>{eI(!["localhost","127.0.0.1","::1"].includes(window.location.hostname))},[]),(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{w(e),F({authMode:e?.authMode||"password",oidcIssuerUrl:e?.oidcIssuerUrl||"",oidcClientId:e?.oidcClientId||"",oidcScopes:e?.oidcScopes||"openid profile email",oidcLoginLabel:e?.oidcLoginLabel||"Sign in with OIDC"}),_(""),ea(e?.ssoType||"saml"),el({samlEntryPoint:e?.samlEntryPoint||"",samlIssuer:e?.samlIssuer||"urn:9router:sp",samlCert:e?.samlCert||"",samlLoginLabel:e?.samlLoginLabel||"Sign in with SAML SSO",samlAttributeEmail:e?.samlAttributeEmail||"email",samlAttributeName:e?.samlAttributeName||"name"}),(e?.authMode==="sso"||e?.authMode==="saml"||e?.authMode==="oidc"||e?.authMode==="both")&&G(!0),ej({outboundProxyEnabled:e?.outboundProxyEnabled===!0,outboundProxyUrl:e?.outboundProxyUrl||"",outboundNoProxy:e?.outboundNoProxy||""}),S(!1)}).catch(e=>{console.error("Failed to fetch settings:",e),S(!1)})},[]);let eA=async e=>{if(e.preventDefault(),!0===N.outboundProxyEnabled){eS(!0),ew({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyUrl:ey.outboundProxyUrl,outboundNoProxy:ey.outboundNoProxy})}),t=await e.json();e.ok?(w(e=>({...e,...t})),ew({type:"success",message:"Proxy settings applied"})):ew({type:"error",message:t.error||"Failed to update proxy settings"})}catch(e){ew({type:"error",message:"An error occurred"})}finally{eS(!1)}}},eP=async()=>{if(!0!==N.outboundProxyEnabled)return;let e=(ey.outboundProxyUrl||"").trim();if(!e)return void ew({type:"error",message:"Please enter a Proxy URL to test"});ek(!0),ew({type:"",message:""});try{let t=await fetch("/api/settings/proxy-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyUrl:e})}),s=await t.json();t.ok&&s?.ok?ew({type:"success",message:`Proxy test OK (${s.status}) in ${s.elapsedMs}ms`}):ew({type:"error",message:s?.error||"Proxy test failed"})}catch(e){ew({type:"error",message:"An error occurred"})}finally{ek(!1)}},eO=async e=>{eS(!0),ew({type:"",message:""});try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyEnabled:e})}),s=await t.json();t.ok?(w(e=>({...e,...s})),ej(e=>({...e,outboundProxyEnabled:s?.outboundProxyEnabled===!0})),ew({type:"success",message:e?"Proxy enabled":"Proxy disabled"})):ew({type:"error",message:s.error||"Failed to update proxy settings"})}catch(e){ew({type:"error",message:"An error occurred"})}finally{eS(!1)}},eM=async e=>{if(e.preventDefault(),C.new!==C.confirm)return void I({type:"error",message:"Passwords do not match"});P(!0),I({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:C.current,newPassword:C.new})}),t=await e.json();e.ok?(I({type:"success",message:"Password updated successfully"}),k({current:"",new:"",confirm:""})):I({type:"error",message:t.error||"Failed to update password"})}catch(e){I({type:"error",message:"An error occurred"})}finally{P(!1)}},eE=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({fallbackStrategy:e})})).ok&&w(t=>({...t,fallbackStrategy:e}))}catch(e){console.error("Failed to update settings:",e)}},eR=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategy:e})})).ok&&w(t=>({...t,comboStrategy:e}))}catch(e){console.error("Failed to update combo strategy:",e)}},eD=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({stickyRoundRobinLimit:t})})).ok&&w(e=>({...e,stickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update sticky limit:",e)}},eT=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStickyRoundRobinLimit:t})})).ok&&w(e=>({...e,comboStickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update combo sticky limit:",e)}},eU=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireLogin:e})})).ok&&w(t=>({...t,requireLogin:e}))}catch(e){console.error("Failed to update require login:",e)}},e$=(e,t)=>{F(s=>({...s,[e]:t}))},eF=async(e=$.authMode||"password")=>{let t=$.oidcIssuerUrl.trim(),s=$.oidcClientId.trim(),a=$.oidcScopes.trim(),r=$.oidcLoginLabel.trim(),l=q.trim();if("password"!==e&&(!t||!s||!l)&&!N.oidcConfigured)return void X({type:"error",message:"Issuer URL, client ID, and client secret are required to enable OIDC."});z(!0),X({type:"",message:""}),Z({type:"",message:""});try{let i={authMode:e,ssoType:"oidc",oidcIssuerUrl:t,oidcClientId:s,oidcScopes:a||"openid profile email",oidcLoginLabel:r||"Sign in with OIDC"};l&&(i.oidcClientSecret=l);let o=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),n=await o.json();o.ok?(w(e=>({...e,...n})),F({authMode:n?.authMode||e,oidcIssuerUrl:n?.oidcIssuerUrl||t,oidcClientId:n?.oidcClientId||s,oidcScopes:n?.oidcScopes||a||"openid profile email",oidcLoginLabel:n?.oidcLoginLabel||r||"Sign in with OIDC"}),_(""),X({type:"success",message:"oidc"===e?"OIDC login enabled":"both"===e?"Password and OIDC login enabled":"OIDC settings saved"})):X({type:"error",message:n.error||"Failed to save OIDC settings"})}catch(e){X({type:"error",message:"An error occurred"})}finally{z(!1)}},eq=async()=>{let e=$.oidcIssuerUrl.trim(),t=$.oidcClientId.trim(),s=$.oidcScopes.trim(),a=q.trim();if(!e||!t)return void Z({type:"error",message:"Issuer URL and client ID are required to test the connection."});K(!0),X({type:"",message:""}),Z({type:"",message:""});try{let r=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({authMode:$.authMode||N.authMode||"password",oidcIssuerUrl:e,oidcClientId:t,oidcScopes:s||"openid profile email",oidcLoginLabel:$.oidcLoginLabel.trim()||"Sign in with OIDC",...a?{oidcClientSecret:a}:{}})}),l=await r.json().catch(()=>({}));if(!r.ok)return void Z({type:"error",message:l.error||"Failed to save OIDC settings before testing"});let i=await fetch("/api/auth/oidc/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({issuerUrl:l.oidcIssuerUrl||e,clientId:l.oidcClientId||t,scopes:l.oidcScopes||s||"openid profile email"})}),o=await i.json().catch(()=>({}));if(i.ok&&o?.ok){let e=o.clientSecretTested?!0===o.clientSecretValid?`Connection OK. Discovery loaded from ${o.issuerUrl}. Client secret validated too.`:`Connection OK. Discovery loaded from ${o.issuerUrl}. Client secret was not checked.`:`Connection OK. Discovery loaded from ${o.issuerUrl}.`;Z({type:"success",message:e})}else Z({type:"error",message:o.error||"OIDC connection test failed"})}catch(e){Z({type:"error",message:"An error occurred"})}finally{K(!1)}},e_=(e,t)=>{el(s=>({...s,[e]:t}))},eJ=async(e=$.authMode||"password")=>{ed(!0),eo({type:"",message:""}),ep({type:"",message:""});try{let t={authMode:e,ssoType:"saml",samlEntryPoint:er.samlEntryPoint.trim(),samlIssuer:er.samlIssuer.trim()||"urn:9router:sp",samlCert:er.samlCert.trim(),samlLoginLabel:er.samlLoginLabel.trim()||"Sign in with SAML SSO",samlAttributeEmail:er.samlAttributeEmail.trim()||"email",samlAttributeName:er.samlAttributeName.trim()||"name"},s=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),a=await s.json();s.ok?(w(e=>({...e,...a})),el({samlEntryPoint:a?.samlEntryPoint||t.samlEntryPoint,samlIssuer:a?.samlIssuer||t.samlIssuer,samlCert:a?.samlCert||t.samlCert,samlLoginLabel:a?.samlLoginLabel||t.samlLoginLabel,samlAttributeEmail:a?.samlAttributeEmail||t.samlAttributeEmail,samlAttributeName:a?.samlAttributeName||t.samlAttributeName}),eo({type:"success",message:"sso"===e||"saml"===e?"SAML SSO login enabled":"both"===e?"Password and SAML SSO login enabled":"SAML 2.0 settings saved"})):eo({type:"error",message:a.error||"Failed to save SAML settings"})}catch{eo({type:"error",message:"An error occurred while saving SAML settings"})}finally{ed(!1)}},eX=async()=>{em(!0),eo({type:"",message:""}),ep({type:"",message:""});try{let e=await fetch("/api/auth/saml/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({samlEntryPoint:er.samlEntryPoint.trim(),samlIssuer:er.samlIssuer.trim(),samlCert:er.samlCert.trim()})}),t=await e.json();e.ok&&t.ok?ep({type:"success",message:t.message||"SAML configuration verified!"}):ep({type:"error",message:t.error||"SAML configuration test failed"})}catch{ep({type:"error",message:"An error occurred while testing SAML configuration"})}finally{em(!1)}},eH=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({enableObservability:e})})).ok&&w(t=>({...t,enableObservability:e}))}catch(e){console.error("Failed to update enableObservability:",e)}},ez=async()=>{try{let e=await fetch("/api/settings");if(!e.ok)return;let t=await e.json();w(t)}catch(e){console.error("Failed to reload settings:",e)}},eB=async e=>{M(!0),R({type:"",message:""});try{let t=await fetch("/api/settings/database",{headers:{"x-9r-password":e}});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error||"Failed to export database")}let s=await t.json(),a=JSON.stringify(s,null,2),r=new Blob([a],{type:"application/json"}),l=URL.createObjectURL(r),i=document.createElement("a"),o=new Date().toISOString().replace(/[.:]/g,"-");i.href=l,i.download=`9router-backup-${o}.json`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(l),R({type:"success",message:"Database backup downloaded"})}catch(e){R({type:"error",message:e.message||"Failed to export database"})}finally{M(!1)}},eK=async e=>{let t=U.current;if(t){M(!0);try{let s=await t.text(),a=JSON.parse(s),r=await fetch("/api/settings/database",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,password:e})}),l=await r.json().catch(()=>({}));if(!r.ok)throw Error(l.error||"Failed to import database");await ez(),R({type:"success",message:"Database imported successfully"})}catch(e){R({type:"error",message:e.message||"Invalid backup file"})}finally{U.current=null,M(!1)}}},eW=async()=>{let{mode:e,password:t}=D;T({open:!1,mode:"",password:""}),"export"===e?await eB(t):"import"===e&&await eK(t)},eZ=!0===N.enableObservability,eQ=async()=>{j(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}j(!1),f(!1)},eG=async()=>{try{(await fetch("/api/auth/logout",{method:"POST"})).ok&&window.location.assign("/login")}catch(e){console.error("Failed to logout:",e)}};return(0,a.jsxs)("div",{className:"max-w-2xl mx-auto px-4 sm:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4",children:[(0,a.jsx)("div",{className:"size-10 sm:size-12 rounded-lg bg-green-500/10 text-green-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-xl sm:text-2xl",children:"computer"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-semibold",children:"Local Mode"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Running on your machine"})]})]}),(0,a.jsx)("div",{className:"inline-flex p-1 rounded-lg bg-black/5 dark:bg-white/5 w-full sm:w-auto",children:["light","dark","system"].map(s=>(0,a.jsxs)("button",{type:"button",onClick:()=>t(s),className:(0,d.cn)("flex items-center justify-center gap-1 sm:gap-1.5 px-2 sm:px-3 py-1.5 rounded-md font-medium transition-all flex-1 sm:flex-initial",e===s?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"light"===s?"light_mode":"dark"===s?"dark_mode":"contrast"}),(0,a.jsx)("span",{className:"capitalize text-xs sm:text-sm",children:s})]},s))})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 pt-4 border-t border-border",children:[(0,a.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between p-3 rounded-lg bg-bg border border-border gap-2",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Database Location"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted font-mono break-all",children:"~/.9router/db/data.sqlite"})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(l.$n,{variant:"secondary",icon:"download",onClick:()=>T({open:!0,mode:"export",password:""}),loading:O,className:"w-full sm:w-auto",children:"Download Backup"}),(0,a.jsx)(l.$n,{variant:"outline",icon:"upload",onClick:()=>ef.current?.click(),disabled:O,className:"w-full sm:w-auto",children:"Import Backup"}),(0,a.jsx)("input",{ref:ef,type:"file",accept:"application/json,.json",className:"hidden",onChange:e=>{let t=e.target.files?.[0];ef.current&&(ef.current.value=""),t&&(U.current=t,R({type:"",message:""}),T({open:!0,mode:"import",password:""}))}})]}),E.message&&(0,a.jsx)("p",{className:`text-sm ${"error"===E.type?"text-red-500":"text-green-600 dark:text-green-400"}`,children:E.message})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg bg-blue-500/10 text-blue-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"language"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Language"})]}),(0,a.jsxs)("button",{onClick:()=>b(!0),className:"flex items-center justify-between w-full p-3 rounded-lg bg-bg border border-border hover:border-primary/50 transition-colors","data-i18n-skip":"true",children:[(0,a.jsx)("span",{className:"text-sm text-text-muted",children:"Display language"}),(0,a.jsx)("span",{className:"text-2xl",children:x.h[p]||"\uD83C\uDF10"})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-primary/10 text-primary shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"shield"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Security"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Require login"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"When ON, dashboard requires password. When OFF, access without login."})]}),(0,a.jsx)(l.lM,{checked:!0===N.requireLogin,onChange:()=>eU(!N.requireLogin),disabled:v})]}),!0===N.requireLogin&&(0,a.jsxs)("form",{onSubmit:eM,className:"flex flex-col gap-4 pt-4 border-t border-border/50",children:[N.hasPassword&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Current Password"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Enter current password",value:C.current,onChange:e=>k({...C,current:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"New Password"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Enter new password",value:C.new,onChange:e=>k({...C,new:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Confirm New Password"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Confirm new password",value:C.confirm,onChange:e=>k({...C,confirm:e.target.value}),required:!0})]})]}),L.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===L.type?"text-red-500":"text-green-500"}`,children:L.message}),(0,a.jsx)("div",{className:"pt-2",children:(0,a.jsx)(l.$n,{type:"submit",variant:"primary",loading:A,className:"w-full sm:w-auto",children:N.hasPassword?"Update Password":"Set Password"})})]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("button",{type:"button",onClick:()=>G(e=>!e),className:"w-full flex items-center gap-3 text-left",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-indigo-500/10 text-indigo-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"lock_open"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Single Sign-On (SSO)"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"sso"===N.authMode||"oidc"===N.authMode||"saml"===N.authMode?`${"saml"===N.ssoType?"SAML 2.0":"OIDC"} SSO active`:"both"===N.authMode?`Password + ${"saml"===N.ssoType?"SAML 2.0":"OIDC"} active`:"Optional SSO via Okta, Entra ID, Keycloak, or OIDC"})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted shrink-0",children:Q?"expand_less":"expand_more"})]}),Q&&(0,a.jsxs)("div",{className:"flex flex-col gap-4 mt-4",children:[(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Configure enterprise Single Sign-On (SSO) for dashboard access using SAML 2.0 or OIDC."}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"SSO Protocol"}),(0,a.jsxs)("div",{className:"flex p-1 rounded-lg bg-black/5 dark:bg-white/5 border border-border",children:[(0,a.jsx)("button",{type:"button",onClick:()=>ea("saml"),className:(0,d.cn)("flex-1 py-1.5 px-3 rounded-md font-medium text-xs sm:text-sm transition-all text-center","saml"===es?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:"SAML 2.0"}),(0,a.jsx)("button",{type:"button",onClick:()=>ea("oidc"),className:(0,d.cn)("flex-1 py-1.5 px-3 rounded-md font-medium text-xs sm:text-sm transition-all text-center","oidc"===es?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:"OIDC"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Auth Mode"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[{value:"password",title:"Password only",desc:"Keep legacy password login."},{value:"sso",title:`${"saml"===es?"SAML":"OIDC"} only`,desc:"Require SSO for dashboard access."},{value:"both",title:"Both",desc:"Allow password or SSO login."}].map(e=>{let t=$.authMode,s="password"===e.value?"password"===t:"sso"===e.value?"sso"===t||"saml"===t||"oidc"===t:"both"===t;return(0,a.jsxs)("button",{type:"button",onClick:()=>e$("authMode",e.value),className:(0,d.cn)("text-left rounded-lg border p-3 transition-colors",s?"border-primary bg-primary/5":"border-border bg-bg hover:bg-black/5 dark:hover:bg-white/5"),disabled:v||H||en,children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:e.title}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted mt-1",children:e.desc})]},e.value)})})]}),"saml"===es?(0,a.jsxs)("div",{className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-bg/80 overflow-hidden",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>eh(e=>!e),className:"w-full p-3 flex items-center justify-between gap-2 text-left hover:bg-surface/50 transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary text-lg",children:"menu_book"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-semibold text-xs sm:text-sm text-text-main",children:"IdP Setup Guidelines & Provider Configuration Instructions"}),(0,a.jsx)("p",{className:"text-[11px] text-text-muted",children:"Click to view setup steps for AWS IAM Identity Center, Okta, Entra ID, Keycloak, & Authentik"})]})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted transition-transform text-lg",style:{transform:eu?"rotate(180deg)":"none"},children:"expand_more"})]}),eu&&(0,a.jsxs)("div",{className:"p-4 border-t border-border bg-surface/30 text-xs text-text-main flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"p-2.5 rounded border border-primary/20 bg-primary/5 text-primary text-xs",children:[(0,a.jsx)("p",{className:"font-semibold mb-1",children:"\uD83D\uDD11 Required Service Provider (SP) Values for your IdP Setup:"}),(0,a.jsxs)("ul",{className:"list-disc pl-4 space-y-1 font-mono text-[11px]",children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Assertion Consumer Service (ACS) URL:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded break-all",children:ee})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"SP Entity ID / Audience URI:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded break-all",children:er.samlIssuer||"urn:9router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"NameID Format:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded",children:"EmailAddress"})," or ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded",children:"Unspecified"})]})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 pt-1",children:[(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"☁️"})," AWS IAM Identity Center"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Applications → ",(0,a.jsx)("b",{children:"Add application"})," → Select ",(0,a.jsx)("b",{children:"Add custom SAML 2.0 application"}),"."]}),(0,a.jsxs)("li",{children:["Set ",(0,a.jsx)("b",{children:"Application ACS URL"})," to ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ee}),"."]}),(0,a.jsxs)("li",{children:["Set ",(0,a.jsx)("b",{children:"Application SAML audience"})," to ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:er.samlIssuer||"urn:9router:sp"}),"."]}),(0,a.jsxs)("li",{children:["Under ",(0,a.jsx)("i",{children:"Attribute mappings"}),", map ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:"Subject"})," or ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:"email"})," to ",(0,a.jsxs)("code",{className:"text-text-main font-mono",children:["$","{user:email}"]}),"."]}),(0,a.jsxs)("li",{children:["Download ",(0,a.jsx)("b",{children:"IAM Identity Center SAML metadata XML"})," file and use 1-Click Import below!"]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDD37"})," Microsoft Entra ID (Azure AD)"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Enterprise Applications → ",(0,a.jsx)("b",{children:"New application"})," → ",(0,a.jsx)("b",{children:"Create your own application"}),"."]}),(0,a.jsxs)("li",{children:["Select ",(0,a.jsx)("b",{children:"Single sign-on"})," → ",(0,a.jsx)("b",{children:"SAML"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Identifier (Entity ID):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:er.samlIssuer||"urn:9router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Reply URL (ACS):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ee})]}),(0,a.jsxs)("li",{children:["Download ",(0,a.jsx)("b",{children:"Federation Metadata XML"})," and import or copy X.509 Certificate."]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDFE2"})," Okta / Auth0"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Applications → ",(0,a.jsx)("b",{children:"Create App Integration"})," → Select ",(0,a.jsx)("b",{children:"SAML 2.0"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Single Sign-On URL:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ee})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Audience URI (SP Entity ID):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:er.samlIssuer||"urn:9router:sp"})]}),(0,a.jsxs)("li",{children:["Name ID format: ",(0,a.jsx)("i",{children:"EmailAddress"}),"."]}),(0,a.jsx)("li",{children:"Download Identity Provider metadata XML or copy the X.509 cert."})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDEE1️"})," Keycloak / Authentik"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Clients → ",(0,a.jsx)("b",{children:"Create client"})," → Select ",(0,a.jsx)("b",{children:"SAML"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Client ID:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:er.samlIssuer||"urn:9router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Master SAML Processing URL:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ee})]}),(0,a.jsx)("li",{children:"Export SAML Descriptor XML or copy IDP Certificate PEM."})]})]})]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg border border-dashed border-primary/40 bg-primary/5 flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm text-text-main",children:"1-Click IdP Metadata XML Import"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Auto-fill SSO URL, Issuer & Cert from XML metadata"})]}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",size:"sm",icon:"upload_file",onClick:()=>eb.current?.click(),children:"Upload Metadata XML"}),(0,a.jsx)("input",{ref:eb,type:"file",accept:".xml,application/xml,text/xml",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(eb.current&&(eb.current.value=""),!t)return;let s=new FileReader;s.onload=e=>{try{let t=e.target?.result||"",s=new DOMParser().parseFromString(t,"text/xml");if(s.querySelector("parsererror"))return void eo({type:"error",message:"Unable to parse valid SAML IdP metadata from XML file"});let a=s.documentElement.getAttribute("entityID")||"",r=Array.from(s.querySelectorAll("SingleSignOnService, *|SingleSignOnService")),l="";for(let e of r){let t=e.getAttribute("Binding")||"",s=e.getAttribute("Location")||"";if(s&&(l=s,t.includes("HTTP-Redirect")))break}let i=Array.from(s.querySelectorAll("X509Certificate, *|X509Certificate")),o="";i.length>0&&(o=i[0].textContent.trim()),el(e=>({...e,samlEntryPoint:l||e.samlEntryPoint,samlIssuer:e.samlIssuer||"urn:9router:sp",samlCert:o||e.samlCert})),eo({type:"success",message:`IdP Metadata imported! (SSO URL: ${l?"found":"not found"}, EntityID: ${a?"found":"not found"}, Cert: ${o?"found":"not found"})`})}catch(e){eo({type:"error",message:"Error reading IdP Metadata XML file"})}},s.readAsText(t)}})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Single Sign-On Service URL (samlEntryPoint)"}),(0,a.jsx)(l.pd,{placeholder:"https://idp.example.com/app/saml/sso/...",value:er.samlEntryPoint,onChange:e=>e_("samlEntryPoint",e.target.value),disabled:v||en})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"SP Entity ID / Audience (samlIssuer)"}),(0,a.jsx)(l.pd,{placeholder:"urn:9router:sp",value:er.samlIssuer,onChange:e=>e_("samlIssuer",e.target.value),disabled:v||en})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"IdP X.509 Certificate (samlCert)"}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",size:"sm",icon:"file_upload",onClick:()=>eg.current?.click(),children:"Upload Certificate"}),(0,a.jsx)("input",{ref:eg,type:"file",accept:".crt,.pem,.cer,text/plain",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(eg.current&&(eg.current.value=""),!t)return;let s=new FileReader;s.onload=e=>{let t=e.target?.result||"";el(e=>({...e,samlCert:t.trim()})),eo({type:"success",message:"Certificate file loaded into configuration."})},s.readAsText(t)}})]}),(0,a.jsx)("textarea",{rows:4,placeholder:"-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----",value:er.samlCert,onChange:e=>e_("samlCert",e.target.value),className:"w-full p-2.5 rounded-lg border border-border bg-bg text-xs font-mono text-text-main focus:outline-none focus:border-primary",disabled:v||en}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Paste raw Base64 certificate or PEM block."})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Login Button Label"}),(0,a.jsx)(l.pd,{placeholder:"Sign in with SAML SSO",value:er.samlLoginLabel,onChange:e=>e_("samlLoginLabel",e.target.value),disabled:v||en})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Email Claim Attribute"}),(0,a.jsx)(l.pd,{placeholder:"email",value:er.samlAttributeEmail,onChange:e=>e_("samlAttributeEmail",e.target.value),disabled:v||en})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Display Name Claim"}),(0,a.jsx)(l.pd,{placeholder:"name",value:er.samlAttributeName,onChange:e=>e_("samlAttributeName",e.target.value),disabled:v||en})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 p-3 rounded-lg border border-border bg-bg text-xs sm:text-sm text-text-muted",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-text-main",children:"ACS Callback URL"}),(0,a.jsx)("code",{className:"block break-all font-mono text-xs",children:ee})]}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",size:"sm",icon:"content_copy",onClick:()=>{navigator.clipboard.writeText(ee),eo({type:"success",message:"ACS URL copied to clipboard!"})},children:"Copy"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-text-main",children:"SP XML Metadata"}),(0,a.jsx)("code",{className:"block break-all font-mono text-xs",children:et})]}),(0,a.jsxs)("a",{href:et,target:"_blank",rel:"noopener noreferrer",download:"9router-sp-metadata.xml",className:"inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"download"}),"Download XML"]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)(l.$n,{type:"button",variant:"primary",loading:en,onClick:()=>eJ($.authMode),className:"w-full sm:w-auto",children:"Save SAML settings"}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",loading:ec,onClick:eX,className:"w-full sm:w-auto",children:"Test SAML settings"})]}),ex.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===ex.type?"text-red-500":"text-green-500"}`,children:ex.message}),ei.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===ei.type?"text-red-500":"text-green-500"}`,children:ei.message})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Issuer URL"}),(0,a.jsx)(l.pd,{placeholder:"https://auth.example.com/application/o/9router/",value:$.oidcIssuerUrl,onChange:e=>e$("oidcIssuerUrl",e.target.value),disabled:v||H})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client ID"}),(0,a.jsx)(l.pd,{placeholder:"9router-dashboard",value:$.oidcClientId,onChange:e=>e$("oidcClientId",e.target.value),disabled:v||H})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client Secret"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Leave blank to keep existing secret",value:q,onChange:e=>_(e.target.value),disabled:v||H}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"This value is write-only after saving."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Scopes"}),(0,a.jsx)(l.pd,{placeholder:"openid profile email",value:$.oidcScopes,onChange:e=>e$("oidcScopes",e.target.value),disabled:v||H})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Login Button Label"}),(0,a.jsx)(l.pd,{placeholder:"Sign in with OIDC",value:$.oidcLoginLabel,onChange:e=>e$("oidcLoginLabel",e.target.value),disabled:v||H})]})]}),(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-bg p-3 text-xs sm:text-sm text-text-muted",children:[(0,a.jsx)("p",{className:"font-medium text-text-main mb-1",children:"Redirect URI"}),(0,a.jsx)("code",{className:"block break-all font-mono",children:Y})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)(l.$n,{type:"button",variant:"primary",loading:H,onClick:()=>eF(),className:"w-full sm:w-auto",children:"Save OIDC settings"}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",loading:B,onClick:eq,className:"w-full sm:w-auto",children:"Test connection"})]}),W.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===W.type?"text-red-500":"text-green-500"}`,children:W.message}),J.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===J.type?"text-red-500":"text-green-500"}`,children:J.message})]}),"oidc"===N.authMode||"saml"===N.authMode||"sso"===N.authMode?(0,a.jsxs)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:["SSO login (","saml"===N.ssoType?"SAML 2.0":"OIDC",") is currently active. Password login is disabled until you switch back."]}):null,"both"===N.authMode&&(0,a.jsxs)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:["Password and SSO login (","saml"===N.ssoType?"SAML 2.0":"OIDC",") are both active."]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-blue-500/10 text-blue-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"route"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Routing Strategy"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through accounts to distribute load"})]}),(0,a.jsx)(l.lM,{checked:"round-robin"===N.fallbackStrategy,onChange:()=>eE("round-robin"===N.fallbackStrategy?"fill-first":"round-robin"),disabled:v})]}),"round-robin"===N.fallbackStrategy&&(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Sticky Limit"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Calls per account before switching"})]}),(0,a.jsx)(l.pd,{type:"number",min:"1",max:"10",value:N.stickyRoundRobinLimit||3,onChange:e=>eD(e.target.value),disabled:v,className:"w-16 sm:w-20 text-center shrink-0"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-4 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Combo Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through providers in combos instead of always starting with first"})]}),(0,a.jsx)(l.lM,{checked:"round-robin"===N.comboStrategy,onChange:()=>eR("round-robin"===N.comboStrategy?"fallback":"round-robin"),disabled:v})]}),"round-robin"===N.comboStrategy&&(0,a.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"Combo Sticky Limit"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Calls per combo model before switching"})]}),(0,a.jsx)(l.pd,{type:"number",min:"1",max:"100",value:N.comboStickyRoundRobinLimit||1,onChange:e=>eT(e.target.value),disabled:v,className:"w-20 text-center"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted italic pt-2 border-t border-border/50",children:["round-robin"===N.fallbackStrategy?`Currently distributing requests across all available accounts with ${N.stickyRoundRobinLimit||3} calls per account.`:"Currently using accounts in priority order (Fill First).","round-robin"===N.comboStrategy?` Combos rotate after ${N.comboStickyRoundRobinLimit||1} call${1===(N.comboStickyRoundRobinLimit||1)?"":"s"} per model.`:" Combos always start with their first model."]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-purple-500/10 text-purple-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"wifi"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Network"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Outbound Proxy"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Enable proxy for OAuth + provider outbound requests."})]}),(0,a.jsx)(l.lM,{checked:!0===N.outboundProxyEnabled,onChange:()=>eO(!0!==N.outboundProxyEnabled),disabled:v||ev})]}),!0===N.outboundProxyEnabled&&(0,a.jsxs)("form",{onSubmit:eA,className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Proxy URL"}),(0,a.jsx)(l.pd,{placeholder:"http://127.0.0.1:7897",value:ey.outboundProxyUrl,onChange:e=>ej(t=>({...t,outboundProxyUrl:e.target.value})),disabled:v||ev}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Leave empty to inherit existing env proxy (if any)."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"No Proxy"}),(0,a.jsx)(l.pd,{placeholder:"localhost,127.0.0.1",value:ey.outboundNoProxy,onChange:e=>ej(t=>({...t,outboundNoProxy:e.target.value})),disabled:v||ev}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Comma-separated hostnames/domains to bypass the proxy."})]}),(0,a.jsxs)("div",{className:"pt-2 border-t border-border/50 flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[(0,a.jsx)(l.$n,{type:"button",variant:"secondary",loading:eC,disabled:v||ev,onClick:eP,className:"w-full sm:w-auto",children:"Test proxy URL"}),(0,a.jsx)(l.$n,{type:"submit",variant:"primary",loading:ev,className:"w-full sm:w-auto",children:"Apply"})]})]}),eN.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===eN.type?"text-red-500":"text-green-500"} pt-2 border-t border-border/50`,children:eN.message})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-orange-500/10 text-orange-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"monitoring"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Observability"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Enable Observability"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Record request details for inspection in the logs view"})]}),(0,a.jsx)(l.lM,{checked:eZ,onChange:eH,disabled:v})]})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(l.$n,{variant:"outline",fullWidth:!0,icon:"power_settings_new",onClick:()=>f(!0),className:"text-red-500 border-red-200 hover:bg-red-50 hover:border-red-300",children:"Shutdown"}),(0,a.jsx)(l.$n,{variant:"outline",fullWidth:!0,icon:"logout",onClick:eG,children:"Logout"})]}),(0,a.jsxs)("div",{className:"text-center text-xs sm:text-sm text-text-muted py-4",children:[(0,a.jsxs)("p",{children:[c.vQ.name," v",c.vQ.version]}),(0,a.jsx)("p",{className:"mt-1",children:eL?"Remote Mode":"Local Mode - All data stored on your machine"})]})]}),(0,a.jsx)(o.default,{hideTrigger:!0,isOpen:h,onClose:e=>{b(!1),u(e)}}),(0,a.jsx)(i.ConfirmModal,{isOpen:g,onClose:()=>f(!1),onConfirm:eQ,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:y}),(0,a.jsxs)(i.default,{isOpen:D.open,onClose:()=>T({open:!1,mode:"",password:""}),title:"Confirm Password",size:"sm",footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.$n,{variant:"ghost",onClick:()=>T({open:!1,mode:"",password:""}),disabled:O,children:"Cancel"}),(0,a.jsx)(l.$n,{variant:"primary",onClick:eW,loading:O,disabled:!D.password,children:"Confirm"})]}),children:[(0,a.jsxs)("p",{className:"text-text-muted mb-3 text-sm",children:["Enter your current password to ","export"===D.mode?"export":"import"," the database."]}),(0,a.jsx)(l.pd,{type:"password",value:D.password,onChange:e=>T(t=>({...t,password:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&D.password&&eW()},placeholder:"Current password",autoFocus:!0})]})]})}}},e=>{e.O(0,[2997,1321,705,5497,8441,3794,7358],()=>e(e.s=35662)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3471],{35662:(e,t,s)=>{Promise.resolve().then(s.bind(s,64561))},64561:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>p});var a=s(95155),r=s(12115),l=s(35497),i=s(81127),o=s(21931),n=s(1620),d=s(31474),c=s(90620),m=s(93308),x=s(38202);function p(){let{theme:e,setTheme:t,isDark:s}=(0,n.D)(),[p,u]=(0,r.useState)(()=>(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${m.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,m.QC)(t)})()),[h,b]=(0,r.useState)(!1),[g,f]=(0,r.useState)(!1),[y,j]=(0,r.useState)(!1),[N,w]=(0,r.useState)({fallbackStrategy:"fill-first"}),[v,S]=(0,r.useState)(!0),[C,k]=(0,r.useState)({current:"",new:"",confirm:""}),[L,I]=(0,r.useState)({type:"",message:""}),[A,P]=(0,r.useState)(!1),[O,M]=(0,r.useState)(!1),[E,R]=(0,r.useState)({type:"",message:""}),[D,T]=(0,r.useState)({open:!1,mode:"",password:""}),U=(0,r.useRef)(null),[$,F]=(0,r.useState)({authMode:"password",oidcIssuerUrl:"",oidcClientId:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC"}),[q,_]=(0,r.useState)(""),[J,X]=(0,r.useState)({type:"",message:""}),[H,z]=(0,r.useState)(!1),[B,K]=(0,r.useState)(!1),[W,Z]=(0,r.useState)({type:"",message:""}),[Q,G]=(0,r.useState)(!1),V=window.location.origin,Y=V?`${V}/api/auth/oidc/callback`:"/api/auth/oidc/callback",ee=V?`${V}/api/auth/saml/acs`:"/api/auth/saml/acs",et=V?`${V}/api/auth/saml/metadata`:"/api/auth/saml/metadata",[es,ea]=(0,r.useState)("saml"),[er,el]=(0,r.useState)({samlEntryPoint:"",samlIssuer:"urn:9router:sp",samlCert:"",samlLoginLabel:"Sign in with SAML SSO",samlAttributeEmail:"email",samlAttributeName:"name"}),[ei,eo]=(0,r.useState)({type:"",message:""}),[en,ed]=(0,r.useState)(!1),[ec,em]=(0,r.useState)(!1),[ex,ep]=(0,r.useState)({type:"",message:""}),[eu,eh]=(0,r.useState)(!1),eb=(0,r.useRef)(null),eg=(0,r.useRef)(null),ef=(0,r.useRef)(null),[ey,ej]=(0,r.useState)({outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:""}),[eN,ew]=(0,r.useState)({type:"",message:""}),[ev,eS]=(0,r.useState)(!1),[eC,ek]=(0,r.useState)(!1),[eL,eI]=(0,r.useState)(!1);(0,r.useEffect)(()=>{eI(!["localhost","127.0.0.1","::1"].includes(window.location.hostname))},[]),(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{w(e),F({authMode:e?.authMode||"password",oidcIssuerUrl:e?.oidcIssuerUrl||"",oidcClientId:e?.oidcClientId||"",oidcScopes:e?.oidcScopes||"openid profile email",oidcLoginLabel:e?.oidcLoginLabel||"Sign in with OIDC"}),_(""),ea(e?.ssoType||"saml"),el({samlEntryPoint:e?.samlEntryPoint||"",samlIssuer:e?.samlIssuer||"urn:9router:sp",samlCert:e?.samlCert||"",samlLoginLabel:e?.samlLoginLabel||"Sign in with SAML SSO",samlAttributeEmail:e?.samlAttributeEmail||"email",samlAttributeName:e?.samlAttributeName||"name"}),(e?.authMode==="sso"||e?.authMode==="saml"||e?.authMode==="oidc"||e?.authMode==="both")&&G(!0),ej({outboundProxyEnabled:e?.outboundProxyEnabled===!0,outboundProxyUrl:e?.outboundProxyUrl||"",outboundNoProxy:e?.outboundNoProxy||""}),S(!1)}).catch(e=>{console.error("Failed to fetch settings:",e),S(!1)})},[]);let eA=async e=>{if(e.preventDefault(),!0===N.outboundProxyEnabled){eS(!0),ew({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyUrl:ey.outboundProxyUrl,outboundNoProxy:ey.outboundNoProxy})}),t=await e.json();e.ok?(w(e=>({...e,...t})),ew({type:"success",message:"Proxy settings applied"})):ew({type:"error",message:t.error||"Failed to update proxy settings"})}catch(e){ew({type:"error",message:"An error occurred"})}finally{eS(!1)}}},eP=async()=>{if(!0!==N.outboundProxyEnabled)return;let e=(ey.outboundProxyUrl||"").trim();if(!e)return void ew({type:"error",message:"Please enter a Proxy URL to test"});ek(!0),ew({type:"",message:""});try{let t=await fetch("/api/settings/proxy-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyUrl:e})}),s=await t.json();t.ok&&s?.ok?ew({type:"success",message:`Proxy test OK (${s.status}) in ${s.elapsedMs}ms`}):ew({type:"error",message:s?.error||"Proxy test failed"})}catch(e){ew({type:"error",message:"An error occurred"})}finally{ek(!1)}},eO=async e=>{eS(!0),ew({type:"",message:""});try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyEnabled:e})}),s=await t.json();t.ok?(w(e=>({...e,...s})),ej(e=>({...e,outboundProxyEnabled:s?.outboundProxyEnabled===!0})),ew({type:"success",message:e?"Proxy enabled":"Proxy disabled"})):ew({type:"error",message:s.error||"Failed to update proxy settings"})}catch(e){ew({type:"error",message:"An error occurred"})}finally{eS(!1)}},eM=async e=>{if(e.preventDefault(),C.new!==C.confirm)return void I({type:"error",message:"Passwords do not match"});P(!0),I({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:C.current,newPassword:C.new})}),t=await e.json();e.ok?(I({type:"success",message:"Password updated successfully"}),k({current:"",new:"",confirm:""})):I({type:"error",message:t.error||"Failed to update password"})}catch(e){I({type:"error",message:"An error occurred"})}finally{P(!1)}},eE=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({fallbackStrategy:e})})).ok&&w(t=>({...t,fallbackStrategy:e}))}catch(e){console.error("Failed to update settings:",e)}},eR=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategy:e})})).ok&&w(t=>({...t,comboStrategy:e}))}catch(e){console.error("Failed to update combo strategy:",e)}},eD=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({stickyRoundRobinLimit:t})})).ok&&w(e=>({...e,stickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update sticky limit:",e)}},eT=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStickyRoundRobinLimit:t})})).ok&&w(e=>({...e,comboStickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update combo sticky limit:",e)}},eU=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireLogin:e})})).ok&&w(t=>({...t,requireLogin:e}))}catch(e){console.error("Failed to update require login:",e)}},e$=(e,t)=>{F(s=>({...s,[e]:t}))},eF=async(e=$.authMode||"password")=>{let t=$.oidcIssuerUrl.trim(),s=$.oidcClientId.trim(),a=$.oidcScopes.trim(),r=$.oidcLoginLabel.trim(),l=q.trim();if("password"!==e&&(!t||!s||!l)&&!N.oidcConfigured)return void X({type:"error",message:"Issuer URL, client ID, and client secret are required to enable OIDC."});z(!0),X({type:"",message:""}),Z({type:"",message:""});try{let i={authMode:e,ssoType:"oidc",oidcIssuerUrl:t,oidcClientId:s,oidcScopes:a||"openid profile email",oidcLoginLabel:r||"Sign in with OIDC"};l&&(i.oidcClientSecret=l);let o=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),n=await o.json();o.ok?(w(e=>({...e,...n})),F({authMode:n?.authMode||e,oidcIssuerUrl:n?.oidcIssuerUrl||t,oidcClientId:n?.oidcClientId||s,oidcScopes:n?.oidcScopes||a||"openid profile email",oidcLoginLabel:n?.oidcLoginLabel||r||"Sign in with OIDC"}),_(""),X({type:"success",message:"oidc"===e?"OIDC login enabled":"both"===e?"Password and OIDC login enabled":"OIDC settings saved"})):X({type:"error",message:n.error||"Failed to save OIDC settings"})}catch(e){X({type:"error",message:"An error occurred"})}finally{z(!1)}},eq=async()=>{let e=$.oidcIssuerUrl.trim(),t=$.oidcClientId.trim(),s=$.oidcScopes.trim(),a=q.trim();if(!e||!t)return void Z({type:"error",message:"Issuer URL and client ID are required to test the connection."});K(!0),X({type:"",message:""}),Z({type:"",message:""});try{let r=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({authMode:$.authMode||N.authMode||"password",oidcIssuerUrl:e,oidcClientId:t,oidcScopes:s||"openid profile email",oidcLoginLabel:$.oidcLoginLabel.trim()||"Sign in with OIDC",...a?{oidcClientSecret:a}:{}})}),l=await r.json().catch(()=>({}));if(!r.ok)return void Z({type:"error",message:l.error||"Failed to save OIDC settings before testing"});let i=await fetch("/api/auth/oidc/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({issuerUrl:l.oidcIssuerUrl||e,clientId:l.oidcClientId||t,scopes:l.oidcScopes||s||"openid profile email"})}),o=await i.json().catch(()=>({}));if(i.ok&&o?.ok){let e=o.clientSecretTested?!0===o.clientSecretValid?`Connection OK. Discovery loaded from ${o.issuerUrl}. Client secret validated too.`:`Connection OK. Discovery loaded from ${o.issuerUrl}. Client secret was not checked.`:`Connection OK. Discovery loaded from ${o.issuerUrl}.`;Z({type:"success",message:e})}else Z({type:"error",message:o.error||"OIDC connection test failed"})}catch(e){Z({type:"error",message:"An error occurred"})}finally{K(!1)}},e_=(e,t)=>{el(s=>({...s,[e]:t}))},eJ=async(e=$.authMode||"password")=>{ed(!0),eo({type:"",message:""}),ep({type:"",message:""});try{let t={authMode:e,ssoType:"saml",samlEntryPoint:er.samlEntryPoint.trim(),samlIssuer:er.samlIssuer.trim()||"urn:9router:sp",samlCert:er.samlCert.trim(),samlLoginLabel:er.samlLoginLabel.trim()||"Sign in with SAML SSO",samlAttributeEmail:er.samlAttributeEmail.trim()||"email",samlAttributeName:er.samlAttributeName.trim()||"name"},s=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),a=await s.json();s.ok?(w(e=>({...e,...a})),el({samlEntryPoint:a?.samlEntryPoint||t.samlEntryPoint,samlIssuer:a?.samlIssuer||t.samlIssuer,samlCert:a?.samlCert||t.samlCert,samlLoginLabel:a?.samlLoginLabel||t.samlLoginLabel,samlAttributeEmail:a?.samlAttributeEmail||t.samlAttributeEmail,samlAttributeName:a?.samlAttributeName||t.samlAttributeName}),eo({type:"success",message:"sso"===e||"saml"===e?"SAML SSO login enabled":"both"===e?"Password and SAML SSO login enabled":"SAML 2.0 settings saved"})):eo({type:"error",message:a.error||"Failed to save SAML settings"})}catch{eo({type:"error",message:"An error occurred while saving SAML settings"})}finally{ed(!1)}},eX=async()=>{em(!0),eo({type:"",message:""}),ep({type:"",message:""});try{let e=await fetch("/api/auth/saml/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({samlEntryPoint:er.samlEntryPoint.trim(),samlIssuer:er.samlIssuer.trim(),samlCert:er.samlCert.trim()})}),t=await e.json();e.ok&&t.ok?ep({type:"success",message:t.message||"SAML configuration verified!"}):ep({type:"error",message:t.error||"SAML configuration test failed"})}catch{ep({type:"error",message:"An error occurred while testing SAML configuration"})}finally{em(!1)}},eH=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({enableObservability:e})})).ok&&w(t=>({...t,enableObservability:e}))}catch(e){console.error("Failed to update enableObservability:",e)}},ez=async()=>{try{let e=await fetch("/api/settings");if(!e.ok)return;let t=await e.json();w(t)}catch(e){console.error("Failed to reload settings:",e)}},eB=async e=>{M(!0),R({type:"",message:""});try{let t=await fetch("/api/settings/database",{headers:{"x-9r-password":e}});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error||"Failed to export database")}let s=await t.json(),a=JSON.stringify(s,null,2),r=new Blob([a],{type:"application/json"}),l=URL.createObjectURL(r),i=document.createElement("a"),o=new Date().toISOString().replace(/[.:]/g,"-");i.href=l,i.download=`9router-backup-${o}.json`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(l),R({type:"success",message:"Database backup downloaded"})}catch(e){R({type:"error",message:e.message||"Failed to export database"})}finally{M(!1)}},eK=async e=>{let t=U.current;if(t){M(!0);try{let s=await t.text(),a=JSON.parse(s),r=await fetch("/api/settings/database",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,password:e})}),l=await r.json().catch(()=>({}));if(!r.ok)throw Error(l.error||"Failed to import database");await ez(),R({type:"success",message:"Database imported successfully"})}catch(e){R({type:"error",message:e.message||"Invalid backup file"})}finally{U.current=null,M(!1)}}},eW=async()=>{let{mode:e,password:t}=D;T({open:!1,mode:"",password:""}),"export"===e?await eB(t):"import"===e&&await eK(t)},eZ=!0===N.enableObservability,eQ=async()=>{j(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}j(!1),f(!1)},eG=async()=>{try{(await fetch("/api/auth/logout",{method:"POST"})).ok&&window.location.assign("/login")}catch(e){console.error("Failed to logout:",e)}};return(0,a.jsxs)("div",{className:"max-w-2xl mx-auto px-4 sm:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4",children:[(0,a.jsx)("div",{className:"size-10 sm:size-12 rounded-lg bg-green-500/10 text-green-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-xl sm:text-2xl",children:"computer"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-semibold",children:"Local Mode"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Running on your machine"})]})]}),(0,a.jsx)("div",{className:"inline-flex p-1 rounded-lg bg-black/5 dark:bg-white/5 w-full sm:w-auto",children:["light","dark","system"].map(s=>(0,a.jsxs)("button",{type:"button",onClick:()=>t(s),className:(0,d.cn)("flex items-center justify-center gap-1 sm:gap-1.5 px-2 sm:px-3 py-1.5 rounded-md font-medium transition-all flex-1 sm:flex-initial",e===s?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"light"===s?"light_mode":"dark"===s?"dark_mode":"contrast"}),(0,a.jsx)("span",{className:"capitalize text-xs sm:text-sm",children:s})]},s))})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 pt-4 border-t border-border",children:[(0,a.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between p-3 rounded-lg bg-bg border border-border gap-2",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Database Location"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted font-mono break-all",children:"~/.9router/db/data.sqlite"})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(l.$n,{variant:"secondary",icon:"download",onClick:()=>T({open:!0,mode:"export",password:""}),loading:O,className:"w-full sm:w-auto",children:"Download Backup"}),(0,a.jsx)(l.$n,{variant:"outline",icon:"upload",onClick:()=>ef.current?.click(),disabled:O,className:"w-full sm:w-auto",children:"Import Backup"}),(0,a.jsx)("input",{ref:ef,type:"file",accept:"application/json,.json",className:"hidden",onChange:e=>{let t=e.target.files?.[0];ef.current&&(ef.current.value=""),t&&(U.current=t,R({type:"",message:""}),T({open:!0,mode:"import",password:""}))}})]}),E.message&&(0,a.jsx)("p",{className:`text-sm ${"error"===E.type?"text-red-500":"text-green-600 dark:text-green-400"}`,children:E.message})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg bg-blue-500/10 text-blue-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"language"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Language"})]}),(0,a.jsxs)("button",{onClick:()=>b(!0),className:"flex items-center justify-between w-full p-3 rounded-lg bg-bg border border-border hover:border-primary/50 transition-colors","data-i18n-skip":"true",children:[(0,a.jsx)("span",{className:"text-sm text-text-muted",children:"Display language"}),(0,a.jsx)("span",{className:"text-2xl",children:x.h[p]||"\uD83C\uDF10"})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-primary/10 text-primary shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"shield"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Security"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Require login"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"When ON, dashboard requires password. When OFF, access without login."})]}),(0,a.jsx)(l.lM,{checked:!0===N.requireLogin,onChange:()=>eU(!N.requireLogin),disabled:v})]}),!0===N.requireLogin&&(0,a.jsxs)("form",{onSubmit:eM,className:"flex flex-col gap-4 pt-4 border-t border-border/50",children:[N.hasPassword&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Current Password"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Enter current password",value:C.current,onChange:e=>k({...C,current:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"New Password"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Enter new password",value:C.new,onChange:e=>k({...C,new:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Confirm New Password"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Confirm new password",value:C.confirm,onChange:e=>k({...C,confirm:e.target.value}),required:!0})]})]}),L.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===L.type?"text-red-500":"text-green-500"}`,children:L.message}),(0,a.jsx)("div",{className:"pt-2",children:(0,a.jsx)(l.$n,{type:"submit",variant:"primary",loading:A,className:"w-full sm:w-auto",children:N.hasPassword?"Update Password":"Set Password"})})]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("button",{type:"button",onClick:()=>G(e=>!e),className:"w-full flex items-center gap-3 text-left",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-indigo-500/10 text-indigo-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"lock_open"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Single Sign-On (SSO)"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"sso"===N.authMode||"oidc"===N.authMode||"saml"===N.authMode?`${"saml"===N.ssoType?"SAML 2.0":"OIDC"} SSO active`:"both"===N.authMode?`Password + ${"saml"===N.ssoType?"SAML 2.0":"OIDC"} active`:"Optional SSO via Okta, Entra ID, Keycloak, or OIDC"})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted shrink-0",children:Q?"expand_less":"expand_more"})]}),Q&&(0,a.jsxs)("div",{className:"flex flex-col gap-4 mt-4",children:[(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Configure enterprise Single Sign-On (SSO) for dashboard access using SAML 2.0 or OIDC."}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"SSO Protocol"}),(0,a.jsxs)("div",{className:"flex p-1 rounded-lg bg-black/5 dark:bg-white/5 border border-border",children:[(0,a.jsx)("button",{type:"button",onClick:()=>ea("saml"),className:(0,d.cn)("flex-1 py-1.5 px-3 rounded-md font-medium text-xs sm:text-sm transition-all text-center","saml"===es?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:"SAML 2.0"}),(0,a.jsx)("button",{type:"button",onClick:()=>ea("oidc"),className:(0,d.cn)("flex-1 py-1.5 px-3 rounded-md font-medium text-xs sm:text-sm transition-all text-center","oidc"===es?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:"OIDC"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Auth Mode"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[{value:"password",title:"Password only",desc:"Keep legacy password login."},{value:"sso",title:`${"saml"===es?"SAML":"OIDC"} only`,desc:"Require SSO for dashboard access."},{value:"both",title:"Both",desc:"Allow password or SSO login."}].map(e=>{let t=$.authMode,s="password"===e.value?"password"===t:"sso"===e.value?"sso"===t||"saml"===t||"oidc"===t:"both"===t;return(0,a.jsxs)("button",{type:"button",onClick:()=>e$("authMode",e.value),className:(0,d.cn)("text-left rounded-lg border p-3 transition-colors",s?"border-primary bg-primary/5":"border-border bg-bg hover:bg-black/5 dark:hover:bg-white/5"),disabled:v||H||en,children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:e.title}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted mt-1",children:e.desc})]},e.value)})})]}),"saml"===es?(0,a.jsxs)("div",{className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-bg/80 overflow-hidden",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>eh(e=>!e),className:"w-full p-3 flex items-center justify-between gap-2 text-left hover:bg-surface/50 transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary text-lg",children:"menu_book"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-semibold text-xs sm:text-sm text-text-main",children:"IdP Setup Guidelines & Provider Configuration Instructions"}),(0,a.jsx)("p",{className:"text-[11px] text-text-muted",children:"Click to view setup steps for AWS IAM Identity Center, Okta, Entra ID, Keycloak, & Authentik"})]})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted transition-transform text-lg",style:{transform:eu?"rotate(180deg)":"none"},children:"expand_more"})]}),eu&&(0,a.jsxs)("div",{className:"p-4 border-t border-border bg-surface/30 text-xs text-text-main flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"p-2.5 rounded border border-primary/20 bg-primary/5 text-primary text-xs",children:[(0,a.jsx)("p",{className:"font-semibold mb-1",children:"\uD83D\uDD11 Required Service Provider (SP) Values for your IdP Setup:"}),(0,a.jsxs)("ul",{className:"list-disc pl-4 space-y-1 font-mono text-[11px]",children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Assertion Consumer Service (ACS) URL:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded break-all",children:ee})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"SP Entity ID / Audience URI:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded break-all",children:er.samlIssuer||"urn:9router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"NameID Format:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded",children:"EmailAddress"})," or ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded",children:"Unspecified"})]})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 pt-1",children:[(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"☁️"})," AWS IAM Identity Center"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Applications → ",(0,a.jsx)("b",{children:"Add application"})," → Select ",(0,a.jsx)("b",{children:"Add custom SAML 2.0 application"}),"."]}),(0,a.jsxs)("li",{children:["Set ",(0,a.jsx)("b",{children:"Application ACS URL"})," to ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ee}),"."]}),(0,a.jsxs)("li",{children:["Set ",(0,a.jsx)("b",{children:"Application SAML audience"})," to ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:er.samlIssuer||"urn:9router:sp"}),"."]}),(0,a.jsxs)("li",{children:["Under ",(0,a.jsx)("i",{children:"Attribute mappings"}),", map ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:"Subject"})," or ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:"email"})," to ",(0,a.jsxs)("code",{className:"text-text-main font-mono",children:["$","{user:email}"]}),"."]}),(0,a.jsxs)("li",{children:["Download ",(0,a.jsx)("b",{children:"IAM Identity Center SAML metadata XML"})," file and use 1-Click Import below!"]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDD37"})," Microsoft Entra ID (Azure AD)"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Enterprise Applications → ",(0,a.jsx)("b",{children:"New application"})," → ",(0,a.jsx)("b",{children:"Create your own application"}),"."]}),(0,a.jsxs)("li",{children:["Select ",(0,a.jsx)("b",{children:"Single sign-on"})," → ",(0,a.jsx)("b",{children:"SAML"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Identifier (Entity ID):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:er.samlIssuer||"urn:9router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Reply URL (ACS):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ee})]}),(0,a.jsxs)("li",{children:["Download ",(0,a.jsx)("b",{children:"Federation Metadata XML"})," and import or copy X.509 Certificate."]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDFE2"})," Okta / Auth0"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Applications → ",(0,a.jsx)("b",{children:"Create App Integration"})," → Select ",(0,a.jsx)("b",{children:"SAML 2.0"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Single Sign-On URL:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ee})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Audience URI (SP Entity ID):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:er.samlIssuer||"urn:9router:sp"})]}),(0,a.jsxs)("li",{children:["Name ID format: ",(0,a.jsx)("i",{children:"EmailAddress"}),"."]}),(0,a.jsx)("li",{children:"Download Identity Provider metadata XML or copy the X.509 cert."})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDEE1️"})," Keycloak / Authentik"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Clients → ",(0,a.jsx)("b",{children:"Create client"})," → Select ",(0,a.jsx)("b",{children:"SAML"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Client ID:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:er.samlIssuer||"urn:9router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Master SAML Processing URL:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ee})]}),(0,a.jsx)("li",{children:"Export SAML Descriptor XML or copy IDP Certificate PEM."})]})]})]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg border border-dashed border-primary/40 bg-primary/5 flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm text-text-main",children:"1-Click IdP Metadata XML Import"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Auto-fill SSO URL, Issuer & Cert from XML metadata"})]}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",size:"sm",icon:"upload_file",onClick:()=>eb.current?.click(),children:"Upload Metadata XML"}),(0,a.jsx)("input",{ref:eb,type:"file",accept:".xml,application/xml,text/xml",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(eb.current&&(eb.current.value=""),!t)return;let s=new FileReader;s.onload=e=>{try{let t=e.target?.result||"",s=new DOMParser().parseFromString(t,"text/xml");if(s.querySelector("parsererror"))return void eo({type:"error",message:"Unable to parse valid SAML IdP metadata from XML file"});let a=s.documentElement.getAttribute("entityID")||"",r=Array.from(s.querySelectorAll("SingleSignOnService, *|SingleSignOnService")),l="";for(let e of r){let t=e.getAttribute("Binding")||"",s=e.getAttribute("Location")||"";if(s&&(l=s,t.includes("HTTP-Redirect")))break}let i=Array.from(s.querySelectorAll("X509Certificate, *|X509Certificate")),o="";i.length>0&&(o=i[0].textContent.trim()),el(e=>({...e,samlEntryPoint:l||e.samlEntryPoint,samlIssuer:e.samlIssuer||"urn:9router:sp",samlCert:o||e.samlCert})),eo({type:"success",message:`IdP Metadata imported! (SSO URL: ${l?"found":"not found"}, EntityID: ${a?"found":"not found"}, Cert: ${o?"found":"not found"})`})}catch(e){eo({type:"error",message:"Error reading IdP Metadata XML file"})}},s.readAsText(t)}})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Single Sign-On Service URL (samlEntryPoint)"}),(0,a.jsx)(l.pd,{placeholder:"https://idp.example.com/app/saml/sso/...",value:er.samlEntryPoint,onChange:e=>e_("samlEntryPoint",e.target.value),disabled:v||en})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"SP Entity ID / Audience (samlIssuer)"}),(0,a.jsx)(l.pd,{placeholder:"urn:9router:sp",value:er.samlIssuer,onChange:e=>e_("samlIssuer",e.target.value),disabled:v||en})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"IdP X.509 Certificate (samlCert)"}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",size:"sm",icon:"file_upload",onClick:()=>eg.current?.click(),children:"Upload Certificate"}),(0,a.jsx)("input",{ref:eg,type:"file",accept:".crt,.pem,.cer,text/plain",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(eg.current&&(eg.current.value=""),!t)return;let s=new FileReader;s.onload=e=>{let t=e.target?.result||"";el(e=>({...e,samlCert:t.trim()})),eo({type:"success",message:"Certificate file loaded into configuration."})},s.readAsText(t)}})]}),(0,a.jsx)("textarea",{rows:4,placeholder:"-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----",value:er.samlCert,onChange:e=>e_("samlCert",e.target.value),className:"w-full p-2.5 rounded-lg border border-border bg-bg text-xs font-mono text-text-main focus:outline-none focus:border-primary",disabled:v||en}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Paste raw Base64 certificate or PEM block."})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Login Button Label"}),(0,a.jsx)(l.pd,{placeholder:"Sign in with SAML SSO",value:er.samlLoginLabel,onChange:e=>e_("samlLoginLabel",e.target.value),disabled:v||en})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Email Claim Attribute"}),(0,a.jsx)(l.pd,{placeholder:"email",value:er.samlAttributeEmail,onChange:e=>e_("samlAttributeEmail",e.target.value),disabled:v||en})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Display Name Claim"}),(0,a.jsx)(l.pd,{placeholder:"name",value:er.samlAttributeName,onChange:e=>e_("samlAttributeName",e.target.value),disabled:v||en})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 p-3 rounded-lg border border-border bg-bg text-xs sm:text-sm text-text-muted",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-text-main",children:"ACS Callback URL"}),(0,a.jsx)("code",{className:"block break-all font-mono text-xs",children:ee})]}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",size:"sm",icon:"content_copy",onClick:()=>{navigator.clipboard.writeText(ee),eo({type:"success",message:"ACS URL copied to clipboard!"})},children:"Copy"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-text-main",children:"SP XML Metadata"}),(0,a.jsx)("code",{className:"block break-all font-mono text-xs",children:et})]}),(0,a.jsxs)("a",{href:et,target:"_blank",rel:"noopener noreferrer",download:"9router-sp-metadata.xml",className:"inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"download"}),"Download XML"]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)(l.$n,{type:"button",variant:"primary",loading:en,onClick:()=>eJ($.authMode),className:"w-full sm:w-auto",children:"Save SAML settings"}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",loading:ec,onClick:eX,className:"w-full sm:w-auto",children:"Test SAML settings"})]}),ex.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===ex.type?"text-red-500":"text-green-500"}`,children:ex.message}),ei.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===ei.type?"text-red-500":"text-green-500"}`,children:ei.message})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Issuer URL"}),(0,a.jsx)(l.pd,{placeholder:"https://auth.example.com/application/o/9router/",value:$.oidcIssuerUrl,onChange:e=>e$("oidcIssuerUrl",e.target.value),disabled:v||H})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client ID"}),(0,a.jsx)(l.pd,{placeholder:"9router-dashboard",value:$.oidcClientId,onChange:e=>e$("oidcClientId",e.target.value),disabled:v||H})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client Secret"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Leave blank to keep existing secret",value:q,onChange:e=>_(e.target.value),disabled:v||H}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"This value is write-only after saving."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Scopes"}),(0,a.jsx)(l.pd,{placeholder:"openid profile email",value:$.oidcScopes,onChange:e=>e$("oidcScopes",e.target.value),disabled:v||H})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Login Button Label"}),(0,a.jsx)(l.pd,{placeholder:"Sign in with OIDC",value:$.oidcLoginLabel,onChange:e=>e$("oidcLoginLabel",e.target.value),disabled:v||H})]})]}),(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-bg p-3 text-xs sm:text-sm text-text-muted",children:[(0,a.jsx)("p",{className:"font-medium text-text-main mb-1",children:"Redirect URI"}),(0,a.jsx)("code",{className:"block break-all font-mono",children:Y})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)(l.$n,{type:"button",variant:"primary",loading:H,onClick:()=>eF(),className:"w-full sm:w-auto",children:"Save OIDC settings"}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",loading:B,onClick:eq,className:"w-full sm:w-auto",children:"Test connection"})]}),W.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===W.type?"text-red-500":"text-green-500"}`,children:W.message}),J.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===J.type?"text-red-500":"text-green-500"}`,children:J.message})]}),"oidc"===N.authMode||"saml"===N.authMode||"sso"===N.authMode?(0,a.jsxs)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:["SSO login (","saml"===N.ssoType?"SAML 2.0":"OIDC",") is currently active. Password login is disabled until you switch back."]}):null,"both"===N.authMode&&(0,a.jsxs)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:["Password and SSO login (","saml"===N.ssoType?"SAML 2.0":"OIDC",") are both active."]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-blue-500/10 text-blue-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"route"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Routing Strategy"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through accounts to distribute load"})]}),(0,a.jsx)(l.lM,{checked:"round-robin"===N.fallbackStrategy,onChange:()=>eE("round-robin"===N.fallbackStrategy?"fill-first":"round-robin"),disabled:v})]}),"round-robin"===N.fallbackStrategy&&(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Sticky Limit"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Calls per account before switching"})]}),(0,a.jsx)(l.pd,{type:"number",min:"1",max:"10",value:N.stickyRoundRobinLimit||3,onChange:e=>eD(e.target.value),disabled:v,className:"w-16 sm:w-20 text-center shrink-0"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-4 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Combo Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through providers in combos instead of always starting with first"})]}),(0,a.jsx)(l.lM,{checked:"round-robin"===N.comboStrategy,onChange:()=>eR("round-robin"===N.comboStrategy?"fallback":"round-robin"),disabled:v})]}),"round-robin"===N.comboStrategy&&(0,a.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"Combo Sticky Limit"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Calls per combo model before switching"})]}),(0,a.jsx)(l.pd,{type:"number",min:"1",max:"100",value:N.comboStickyRoundRobinLimit||1,onChange:e=>eT(e.target.value),disabled:v,className:"w-20 text-center"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted italic pt-2 border-t border-border/50",children:["round-robin"===N.fallbackStrategy?`Currently distributing requests across all available accounts with ${N.stickyRoundRobinLimit||3} calls per account.`:"Currently using accounts in priority order (Fill First).","round-robin"===N.comboStrategy?` Combos rotate after ${N.comboStickyRoundRobinLimit||1} call${1===(N.comboStickyRoundRobinLimit||1)?"":"s"} per model.`:" Combos always start with their first model."]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-purple-500/10 text-purple-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"wifi"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Network"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Outbound Proxy"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Enable proxy for OAuth + provider outbound requests."})]}),(0,a.jsx)(l.lM,{checked:!0===N.outboundProxyEnabled,onChange:()=>eO(!0!==N.outboundProxyEnabled),disabled:v||ev})]}),!0===N.outboundProxyEnabled&&(0,a.jsxs)("form",{onSubmit:eA,className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Proxy URL"}),(0,a.jsx)(l.pd,{placeholder:"http://127.0.0.1:7897",value:ey.outboundProxyUrl,onChange:e=>ej(t=>({...t,outboundProxyUrl:e.target.value})),disabled:v||ev}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Leave empty to inherit existing env proxy (if any)."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"No Proxy"}),(0,a.jsx)(l.pd,{placeholder:"localhost,127.0.0.1",value:ey.outboundNoProxy,onChange:e=>ej(t=>({...t,outboundNoProxy:e.target.value})),disabled:v||ev}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Comma-separated hostnames/domains to bypass the proxy."})]}),(0,a.jsxs)("div",{className:"pt-2 border-t border-border/50 flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[(0,a.jsx)(l.$n,{type:"button",variant:"secondary",loading:eC,disabled:v||ev,onClick:eP,className:"w-full sm:w-auto",children:"Test proxy URL"}),(0,a.jsx)(l.$n,{type:"submit",variant:"primary",loading:ev,className:"w-full sm:w-auto",children:"Apply"})]})]}),eN.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===eN.type?"text-red-500":"text-green-500"} pt-2 border-t border-border/50`,children:eN.message})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-orange-500/10 text-orange-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"monitoring"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Observability"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Enable Observability"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Record request details for inspection in the logs view"})]}),(0,a.jsx)(l.lM,{checked:eZ,onChange:eH,disabled:v})]})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(l.$n,{variant:"outline",fullWidth:!0,icon:"power_settings_new",onClick:()=>f(!0),className:"text-red-500 border-red-200 hover:bg-red-50 hover:border-red-300",children:"Shutdown"}),(0,a.jsx)(l.$n,{variant:"outline",fullWidth:!0,icon:"logout",onClick:eG,children:"Logout"})]}),(0,a.jsxs)("div",{className:"text-center text-xs sm:text-sm text-text-muted py-4",children:[(0,a.jsxs)("p",{children:[c.vQ.name," v",c.vQ.version]}),(0,a.jsx)("p",{className:"mt-1",children:eL?"Remote Mode":"Local Mode - All data stored on your machine"})]})]}),(0,a.jsx)(o.default,{hideTrigger:!0,isOpen:h,onClose:e=>{b(!1),u(e)}}),(0,a.jsx)(i.ConfirmModal,{isOpen:g,onClose:()=>f(!1),onConfirm:eQ,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:y}),(0,a.jsxs)(i.default,{isOpen:D.open,onClose:()=>T({open:!1,mode:"",password:""}),title:"Confirm Password",size:"sm",footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.$n,{variant:"ghost",onClick:()=>T({open:!1,mode:"",password:""}),disabled:O,children:"Cancel"}),(0,a.jsx)(l.$n,{variant:"primary",onClick:eW,loading:O,disabled:!D.password,children:"Confirm"})]}),children:[(0,a.jsxs)("p",{className:"text-text-muted mb-3 text-sm",children:["Enter your current password to ","export"===D.mode?"export":"import"," the database."]}),(0,a.jsx)(l.pd,{type:"password",value:D.password,onChange:e=>T(t=>({...t,password:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&D.password&&eW()},placeholder:"Current password",autoFocus:!0})]})]})}}},e=>{e.O(0,[763,1321,705,5497,8441,3794,7358],()=>e(e.s=35662)),_N_E=e.O()}]);
@@ -0,0 +1,27 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2134],{70217:(e,t,s)=>{"use strict";function i(e,t){return!1===e?"default":"active"===t||"success"===t?"success":"error"===t||"expired"===t||"unavailable"===t?"error":"default"}s.d(t,{g:()=>i})},80873:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>V});var i=s(95155),a=s(12115),l=s(73321),r=s(98500),n=s.n(r),o=s(5772),d=s(8247),c=s(35497),m=s(88105),p=s(28777),u=s(67899),x=s(62630);s(67468),s(60950);var h=s(45564);let f=["none","low","medium","high"],g=["none","thinking"],y=["none","low","medium","high","max"],b={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":y,"claude-budget":["none","low","medium","high","xhigh","max"],"gemini-level":["minimal","low","medium","high"],"gemini-budget":f,zai:g,qwen:f,kimi:y,deepseek:["none","high","max"],commandcode:["none","low","medium","high","xhigh","max"],minimax:g,hunyuan:f,step:f},v=["none","minimal","low","medium","high","xhigh","max"],j=[{provider:"codex",pattern:"*gpt-6*",levels:v},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...v,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...v,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:v},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{pattern:"*mimo*v2.6*",levels:["none","low","medium","high","xhigh"]},{pattern:"*mimo*v2.5-pro*",levels:["none","low","medium","high","xhigh"]},{pattern:"*deepseek-v4.*",levels:["none","low","medium","high","xhigh","max"]},{provider:"codebuddy-cn",pattern:"glm-5.3*",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.2",levels:["high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"hy3*",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4*",levels:["high"]},{provider:"codebuddy-intl",pattern:"deepseek-v4*",levels:["low","high","xhigh"]}];function w(e,t){if("kiro"===e&&null===function(e){if("string"!=typeof e)return null;let t=e.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(t))return"reasoning";if(!t.includes("claude"))return null;let s=t.match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);if(!s)return null;let[,i,a]=s,l=Number(i),r=void 0===a?null:Number(a);return l<4||4===l&&(null===r||r<=5||null!==r&&r>=1e3)?null:"output_config"}(t))return null;let s=(0,u.nl)(e,t);if(!s.reasoning)return null;let i=String(t||"").replace(/\([^()]+\)\s*$/,""),a="codex"===e?(0,h.SM)("cx").find(e=>e.id===i)?.thinkingLevels:null,l=j.find(s=>(!s.provider||s.provider===e)&&(0,x.gH)(s.pattern,t)),r=a||l?.levels||b[s.thinkingFormat]||f;return!1===s.thinkingCanDisable&&(r=r.filter(e=>"none"!==e)),r}var k=s(11059),N=s(929),C=s(73006);let S=new Map;async function A(e){if(!e?.url||!e?.type)return[];let t=S.get(e.url);if(t&&Date.now()<t.expiresAt)return t.data;try{let t=new URLSearchParams({url:e.url,type:e.type}),s=await fetch(`/api/providers/suggested-models?${t}`);if(!s.ok)return[];let i=(await s.json()).data??[];return S.set(e.url,{data:i,expiresAt:Date.now()+6e5}),i}catch{return[]}}function T({customModels:e=[],modelAliases:t={},providerAlias:s,builtInModels:i=[],type:a="llm",includeLegacyAliases:l=!0}){let r=new Set(i.map(e=>e.id)),n=new Set,o=[];for(let t of e){if(!t?.id||t.providerAlias!==s)continue;let e=t?.kind||t?.type||"llm";if(a&&e!==a||r.has(t.id))continue;let i=`${s}/${t.id}`;n.has(i)||(n.add(i),o.push({id:t.id,name:t.name||t.id,fullModel:i,source:"custom",type:e}))}if(!l)return o;let d=`${s}/`;for(let[e,s]of Object.entries(t||{})){if("string"!=typeof s||!s.startsWith(d))continue;let t=s.slice(d.length);!t||r.has(t)||n.has(s)||(n.add(s),o.push({id:t,alias:e,fullModel:s,source:"legacyAlias",type:a||"llm"}))}return o}var $=s(14051),O=s.n($);function P({model:e,fullModel:t,alias:s,copied:a,onCopy:l,testStatus:r,isCustom:n,isFree:o,onDeleteAlias:d,onTest:m,isTesting:p,onDisable:u,caps:x,thinkingSuffix:h}){let f=h?`${t}(${h})`:t,g="ok"===r?"#22c55e":"error"===r?"#ef4444":void 0;return(0,i.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===r?"border-green-500/40":"error"===r?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,i.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,i.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:g?{color:g}:void 0,children:"ok"===r?"check_circle":"error"===r?"cancel":"smart_toy"}),(0,i.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,i.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:f}),(0,i.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[e.name&&(0,i.jsx)("span",{className:"truncate text-[9px] italic text-text-muted/70",children:e.name}),(0,i.jsx)(c.nh,{caps:x,colorOverride:"text-text-muted/70",size:12})]})]}),m&&(0,i.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,i.jsx)("button",{onClick:m,disabled:p,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${p?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,i.jsx)("span",{className:"material-symbols-outlined text-sm",style:p?{animation:"spin 1s linear infinite"}:void 0,children:p?"progress_activity":"science"})}),(0,i.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:p?"Testing...":"Test"})]}),(0,i.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,i.jsx)("button",{onClick:()=>l(f,`model-${e.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,i.jsx)("span",{className:"material-symbols-outlined text-sm",children:a===`model-${e.id}`?"check":"content_copy"})}),(0,i.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:a===`model-${e.id}`?"Copied!":"Copy"})]}),n?(0,i.jsx)("button",{onClick:d,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,i.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):u?(0,i.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,i.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function E({modelId:e,fullModel:t,copied:s,onCopy:a,onDeleteAlias:l,onTest:r,testStatus:n,isTesting:o}){let d="ok"===n?"#22c55e":"error"===n?"#ef4444":void 0;return(0,i.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===n?"border-green-500/40":"error"===n?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:d?{color:d}:void 0,children:"ok"===n?"check_circle":"error"===n?"cancel":"smart_toy"}),(0,i.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,i.jsx)("p",{className:"text-sm font-medium truncate",children:e}),(0,i.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,i.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:t}),(0,i.jsxs)("div",{className:"relative group/btn",children:[(0,i.jsx)("button",{onClick:()=>a(t,`model-${e}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,i.jsx)("span",{className:"material-symbols-outlined text-sm",children:s===`model-${e}`?"check":"content_copy"})}),(0,i.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:s===`model-${e}`?"Copied!":"Copy"})]}),r&&(0,i.jsxs)("div",{className:"relative group/btn",children:[(0,i.jsx)("button",{onClick:r,disabled:o,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,i.jsx)("span",{className:"material-symbols-outlined text-sm",style:o?{animation:"spin 1s linear infinite"}:void 0,children:o?"progress_activity":"science"})}),(0,i.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:o?"Testing...":"Test"})]})]})]}),(0,i.jsx)("button",{onClick:l,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,i.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function I({providerStorageAlias:e,providerDisplayAlias:t,modelAliases:s,customModels:l,copied:r,onCopy:n,onDeleteAlias:o,onAddCustomModel:d,onDeleteCustomModel:m,connections:p,isAnthropic:u}){let[x,h]=(0,a.useState)(""),[f,g]=(0,a.useState)(!1),[y,b]=(0,a.useState)(!1),[v,j]=(0,a.useState)(null),[w,k]=(0,a.useState)({}),N=async t=>{if(!v){j(t);try{let s=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${e}/${t}`})}),i=await s.json();k(e=>({...e,[t]:i.ok?"ok":"error"}))}catch{k(e=>({...e,[t]:"error"}))}finally{j(null)}}},C=T({customModels:l,modelAliases:s,providerAlias:e,type:"llm"}),S=async()=>{if(!x.trim()||f)return;let e=x.trim();if(C.some(t=>t.id===e))return void alert("Model already exists for this provider.");g(!0);try{await d(e),h("")}catch(e){console.log("Error adding model:",e)}finally{g(!1)}},A=async()=>{if(y)return;let e=p.find(e=>!1!==e.isActive);if(e){b(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),s=await t.json();if(!t.ok)return void alert(s.error||"Failed to import models");let i=s.models||[];if(0===i.length)return void alert("No models returned from /models.");let a=0;for(let e of i){let t=e.id||e.name||e.model;t&&(C.some(e=>e.id===t)||(await d(t),a+=1))}0===a&&alert("No new models were added.")}catch(e){console.log("Error importing models:",e)}finally{b(!1)}}},$=p.some(e=>!1!==e.isActive);return(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",u?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,i.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,i.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,i.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,i.jsx)("input",{id:"new-compatible-model-input",type:"text",value:x,onChange:e=>h(e.target.value),onKeyDown:e=>"Enter"===e.key&&S(),placeholder:u?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})]}),(0,i.jsx)(c.$n,{size:"sm",icon:"add",onClick:S,disabled:!x.trim()||f,children:f?"Adding...":"Add"}),(0,i.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"download",onClick:A,disabled:!$||y,children:y?"Importing...":"Import from /models"})]}),!$&&(0,i.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),C.length>0&&(0,i.jsx)("div",{className:"flex flex-col gap-3",children:C.map(({id:s,alias:a,source:l})=>(0,i.jsx)(E,{modelId:s,fullModel:`${t}/${s}`,copied:r,onCopy:n,onDeleteAlias:()=>"custom"===l?m(s):o(a),onTest:p.length>0?()=>N(s):void 0,testStatus:w[s],isTesting:v===s},`${l}-${e}/${s}`))})]})}P.propTypes={model:O().shape({id:O().string.isRequired}).isRequired,fullModel:O().string.isRequired,alias:O().string,copied:O().string,onCopy:O().func.isRequired,testStatus:O().oneOf(["ok","error"]),isCustom:O().bool,isFree:O().bool,onDeleteAlias:O().func,onTest:O().func,isTesting:O().bool,onDisable:O().func,caps:O().object,thinkingSuffix:O().string},O().string.isRequired,O().string.isRequired,O().string,O().func.isRequired,O().func.isRequired,O().func,O().oneOf(["ok","error"]),O().bool,O().string.isRequired,O().object.isRequired,O().arrayOf(O().object),O().string,O().func.isRequired,O().func.isRequired,O().func.isRequired,O().func.isRequired,I.propTypes={providerStorageAlias:O().string.isRequired,providerDisplayAlias:O().string.isRequired,modelAliases:O().object.isRequired,customModels:O().arrayOf(O().object),copied:O().string,onCopy:O().func.isRequired,onDeleteAlias:O().func.isRequired,onAddCustomModel:O().func.isRequired,onDeleteCustomModel:O().func.isRequired,connections:O().arrayOf(O().shape({id:O().string,isActive:O().bool})).isRequired,isAnthropic:O().bool};var D=s(70217);function R({until:e}){let[t,s]=(0,a.useState)("");return((0,a.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime()-Date.now();if(t<=0)return void s("");let i=Math.floor(t/1e3);if(i<60)s(`${i}s`);else if(i<3600)s(`${Math.floor(i/60)}m ${i%60}s`);else{let e=Math.floor(i/3600),t=Math.floor(i%3600/60);s(`${e}h ${t}m`)}};t();let i=setInterval(t,1e3);return()=>clearInterval(i)},[e]),t)?(0,i.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",t]}):null}function _({connection:e,proxyPools:t,isOAuth:s,isFirst:l,isLast:r,onMoveUp:n,onMoveDown:o,onToggleActive:d,onUpdateProxy:m,onEdit:p,onDelete:u,oneByOneStatus:x=null,autoPing:h=null}){let[f,g]=(0,a.useState)(!1),[y,b]=(0,a.useState)(!1),v=(0,a.useRef)(null),j=new Map((t||[]).map(e=>[e.id,e])),w=e.providerSpecificData?.proxyPoolId||null,k=w?j.get(w):null,N=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,C=!!w||N,S=k?`Pool: ${k.name}`:w?`Pool: ${w} (inactive/missing)`:N?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",A=h?.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.",T="";if(k?.proxyUrl||e.providerSpecificData?.connectionProxyUrl){let t=k?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;try{let e=new URL(t);T=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{T=t}}let $=k?.noProxy||e.providerSpecificData?.connectionNoProxy||"",O="default";k?.isActive===!0?O="success":(w||N)&&(O="error"),(0,a.useEffect)(()=>{if(!f)return;let e=e=>{v.current&&!v.current.contains(e.target)&&g(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[f]);let P=async e=>{b(!0);try{await m("__none__"===e?null:e)}finally{b(!1),g(!1)}},E=e.authType||(s?"oauth":"apikey"),I="oauth"===E,z="cookie"===E,q=e.name?.trim()||e.email?.trim()||e.displayName?.trim()||(I?"OAuth Account":z?"Cookie Account":"API Key"),U=e.name?.trim()&&e.email?.trim()&&e.name.trim()!==e.email.trim()?e.email.trim():e.name?.trim()&&e.displayName?.trim()&&e.name.trim()!==e.displayName.trim()?e.displayName.trim():null,[M,K]=(0,a.useState)(!1),F=Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>!!e).sort()[0]||null;(0,a.useEffect)(()=>{let t=()=>{K(!!Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>e&&new Date(e).getTime()>Date.now()).sort()[0])};t();let s=F?setInterval(t,1e3):null;return()=>{s&&clearInterval(s)}},[F]);let J="unavailable"!==e.testStatus||M?e.testStatus:"active",L=()=>x?"queued"===x.state?"queued":"testing"===x.state?"testing":"success"===x.state?"success":"failed"===x.state?x.error?`failed: ${x.error}`:"failed":null:null;return(0,i.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===e.isActive?"opacity-60":""}`,children:[(0,i.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,i.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,i.jsx)("button",{onClick:n,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,i.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,i.jsx)("button",{onClick:o,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,i.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,i.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:z?"cookie":I?"lock":"key"}),(0,i.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,i.jsx)("p",{className:"text-sm font-medium truncate",children:q}),U&&(0,i.jsx)("p",{className:"text-xs text-text-muted truncate",children:U}),(0,i.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,i.jsx)(c.Ex,{variant:(0,D.g)(e.isActive,J),size:"sm",dot:!0,children:!1===e.isActive?"disabled":J||"Unknown"}),(0,i.jsx)(c.Ex,{variant:"default",size:"sm",children:I?"OAuth":z?"Cookie":"API Key"}),C&&(0,i.jsx)(c.Ex,{variant:O,size:"sm",children:"Proxy"}),M&&!1!==e.isActive&&(0,i.jsx)(R,{until:F}),e.lastError&&!1!==e.isActive&&(0,i.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:e.lastError,children:e.lastError}),(0,i.jsxs)("span",{className:"text-xs text-text-muted",children:["#",e.priority]}),e.globalPriority&&(0,i.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",e.globalPriority]}),L()&&(0,i.jsx)(c.Ex,{variant:x?"success"===x.state?"success":"failed"===x.state?"error":"testing"===x.state?"primary":"default":"default",size:"sm",children:L()})]}),C&&(0,i.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,i.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:S,children:S}),T&&(0,i.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:T}),$&&(0,i.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:$,children:["no_proxy: ",$]})]})]})]}),(0,i.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,i.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(t||[]).length>0&&(0,i.jsxs)("div",{className:"relative",ref:v,children:[(0,i.jsxs)("button",{onClick:()=>g(e=>!e),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${C?"text-primary":"text-text-muted hover:text-primary"}`,disabled:y,children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:y?"progress_activity":"lan"}),(0,i.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),f&&(0,i.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,i.jsx)("button",{onClick:()=>P("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!w?"text-primary font-medium":"text-text-main"}`,children:"None"}),(t||[]).map(e=>(0,i.jsx)("button",{onClick:()=>P(e.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${w===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]})]}),h&&(0,i.jsx)(c.m_,{text:A,children:(0,i.jsxs)("button",{onClick:()=>h.onToggle(!h.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 ${h.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,i.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,i.jsxs)("button",{onClick:p,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,i.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,i.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,i.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,i.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,i.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,i.jsx)(c.lM,{size:"sm",checked:e.isActive??!0,onChange:d,title:e.isActive??!0?"Disable connection":"Enable connection"})]})]})}R.propTypes={until:O().string.isRequired},_.propTypes={connection:O().shape({id:O().string,name:O().string,email:O().string,displayName:O().string,modelLockUntil:O().string,testStatus:O().string,isActive:O().bool,lastError:O().string,priority:O().number,globalPriority:O().number}).isRequired,proxyPools:O().arrayOf(O().shape({id:O().string,name:O().string,proxyUrl:O().string,noProxy:O().string,isActive:O().bool})),isOAuth:O().bool.isRequired,isFirst:O().bool.isRequired,isLast:O().bool.isRequired,onMoveUp:O().func.isRequired,onMoveDown:O().func.isRequired,onToggleActive:O().func.isRequired,onUpdateProxy:O().func,onEdit:O().func.isRequired,onDelete:O().func.isRequired,oneByOneStatus:O().shape({state:O().string,error:O().string}),autoPing:O().shape({on:O().bool,onToggle:O().func,provider:O().string})};let z=`name1|sk-key1
2
+ name2|sk-key2
3
+ sk-key-only-auto-named`;function q({isOpen:e,provider:t,providerName:s,isCompatible:l,isAnthropic:r,authType:n,authHint:o,website:d,proxyPools:p,error:u,existingNames:x,onSave:h,onBulkDone:f,onClose:g}){let y="__none__",b="ollama-local"===t,v="cookie"===n,j="xai"===t&&!v,w=v?"Cookie Value":"qoder"===t||"qoder-cn"===t?"Personal Access Token (PAT)":"API Key",k="azure"===t,N="cloudflare-ai"===t,C=m.Q2?.[t]?.regions||null,S=m.Q2?.[t]?.defaultRegion||C?.[0]?.id||"",[A,T]=(0,a.useState)({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:y,ollamaHostUrl:""}),[$,O]=(0,a.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[P,E]=(0,a.useState)({accountId:""}),[I,D]=(0,a.useState)(S),[R,_]=(0,a.useState)(!1),[U,M]=(0,a.useState)(null),[K,F]=(0,a.useState)(!1),J=N?`name1|sk-key1|acc123456
4
+ name2|sk-key2|def789012
5
+ sk-key-only-auto-named`:"qoder"===t||"qoder-cn"===t?`name1|pt-xxxxx
6
+ name2|pt-yyyyy
7
+ pt-only-auto-named`:z,[L,W]=(0,a.useState)("single"),[B,G]=(0,a.useState)(""),[H,V]=(0,a.useState)(null),Q=()=>b&&A.ollamaHostUrl.trim()?{baseUrl:A.ollamaHostUrl.trim()}:k?{azureEndpoint:$.azureEndpoint,apiVersion:$.apiVersion,deployment:$.deployment,organization:$.organization}:N?{accountId:P.accountId}:C&&I?{region:I}:void 0,Z=async()=>{_(!0);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:A.apiKey,providerSpecificData:Q()})}),s=await e.json();M(s.valid?"success":"failed")}catch{M("failed")}finally{_(!1)}},X=async()=>{if(t&&(b||A.apiKey)&&(b||A.name)&&(!l||A.defaultModel.trim())){F(!0);try{let e=!1;try{_(!0),M(null);let s=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:A.apiKey,providerSpecificData:Q()})});e=!!(await s.json()).valid,M(e?"success":"failed")}catch{M("failed")}finally{_(!1)}await h({name:A.name||(b?"Ollama Local":""),apiKey:A.apiKey,defaultModel:l?A.defaultModel.trim():void 0,priority:A.priority,proxyPoolId:A.proxyPoolId===y?null:A.proxyPoolId,testStatus:e?"active":"unknown",providerSpecificData:Q()})}finally{F(!1)}}},Y=async()=>{let e=B.split("\n");if(!e.length)return;let s=function(e,t,s={}){let{isCloudflareAi:i=!1}=s,a=new Set((Array.isArray(t)?t:[]).map(e=>"string"==typeof e?e.toLowerCase():"")),l=[];for(let t of e){let e,s="string"==typeof t?t.trim():"";if(!s)continue;let r=function(e,t={}){let{isCloudflareAi:s=!1}=t,i=e.split("|");if(s&&i.length>=3){let e=i[0].trim();return{baseName:e||"Key",apiKey:i.slice(1,-1).join("|").trim(),providerSpecificData:{accountId:i[i.length-1].trim()}}}return i.length>=2?{baseName:i[0].trim()||"Key",apiKey:i.slice(1).join("|").trim()}:{baseName:"Key",apiKey:i[0].trim()}}(s,{isCloudflareAi:i});if(!r||!r.apiKey)continue;let n=r.baseName,o=1;for(;e=`${n} ${o}`,a.has(e.toLowerCase());)o+=1;a.add(e.toLowerCase());let d={name:e,apiKey:r.apiKey,skipped:!1};r.providerSpecificData&&(d.providerSpecificData=r.providerSpecificData),l.push(d)}return l}(e,x,{isCloudflareAi:N});if(!s.length)return;F(!0),V(null);let i=0,a=0;for(let e of s)try{let s=!1;try{let i=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:e.apiKey})});s=!!(await i.json().catch(()=>({}))).valid}catch{s=!1}(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:e.apiKey,name:e.name,priority:1,testStatus:s?"active":"unknown",...e.providerSpecificData?{providerSpecificData:e.providerSpecificData}:{}})})).ok?i++:a++}catch{a++}F(!1),V({success:i,failed:a}),i>0&&f&&f()};return t?(0,i.jsx)(c.aF,{isOpen:e,title:`Add ${s||t} ${w}`,onClose:g,children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(c.$n,{size:"sm",variant:"single"===L?"primary":"ghost",onClick:()=>{W("single"),V(null)},children:"Single"}),(0,i.jsx)(c.$n,{size:"sm",variant:"bulk"===L?"primary":"ghost",onClick:()=>{W("bulk"),V(null)},children:"Bulk Add"})]}),"bulk"===L&&(0,i.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,i.jsx)("p",{className:"text-xs text-text-muted",children:N?(0,i.jsxs)(i.Fragment,{children:["One key per line. Format: ",(0,i.jsx)("code",{children:"name|apiKey|accountId"})," or just ",(0,i.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}):"qoder"===t||"qoder-cn"===t?(0,i.jsxs)(i.Fragment,{children:["One PAT per line. Format: ",(0,i.jsx)("code",{children:"name|pt-..."})," or just ",(0,i.jsx)("code",{children:"pt-..."})," (auto-named by index)."]}):(0,i.jsxs)(i.Fragment,{children:["One key per line. Format: ",(0,i.jsx)("code",{children:"name|apiKey"})," or just ",(0,i.jsx)("code",{children:"apiKey"})," (auto-named by index)."]})}),(0,i.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:J,value:B,onChange:e=>G(e.target.value)}),H&&(0,i.jsxs)("div",{className:`text-sm font-medium ${H.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",H.success," added",H.failed>0?`, ✗ ${H.failed} failed`:""]}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(c.$n,{onClick:Y,fullWidth:!0,disabled:K||!B.trim(),children:K?"Adding...":"Add All Keys"}),(0,i.jsx)(c.$n,{onClick:g,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===L&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.pd,{label:"Name",value:A.name,onChange:e=>T({...A,name:e.target.value}),placeholder:b?"Ollama Local":"Production Key"}),b&&(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(c.pd,{label:"Ollama Host URL",value:A.ollamaHostUrl,onChange:e=>T({...A,ollamaHostUrl:e.target.value}),placeholder:"http://localhost:11434",className:"flex-1"}),(0,i.jsx)("div",{className:"pt-6",children:(0,i.jsx)(c.$n,{onClick:Z,disabled:R||K,variant:"secondary",children:R?"Checking...":"Check"})})]}),!b&&(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(c.pd,{label:w,type:v?"text":"password",value:A.apiKey,onChange:e=>T({...A,apiKey:e.target.value}),placeholder:v?"grok-web"===t?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":j?"xai-...":"qoder"===t||"qoder-cn"===t?"pt-...":"",className:"flex-1"}),(0,i.jsx)("div",{className:"pt-6",children:(0,i.jsx)(c.$n,{onClick:Z,disabled:!A.apiKey||R||K,variant:"secondary",children:R?"Checking...":"Check"})})]}),j&&(0,i.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."}),v&&o&&(0,i.jsxs)("p",{className:"text-xs text-text-muted",children:[o,d&&(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsxs)("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",d.replace(/^https?:\/\//,"")]})]})]}),C&&(0,i.jsx)(c.l6,{label:"Region",value:I,onChange:e=>D(e.target.value),options:C.map(e=>({value:e.id,label:e.label}))}),l&&(0,i.jsx)(c.pd,{label:"Default Model",value:A.defaultModel,onChange:e=>T({...A,defaultModel:e.target.value}),placeholder:r?"claude-3-5-sonnet-latest":"gpt-4o-mini"}),b&&(0,i.jsxs)("p",{className:"text-xs text-text-muted",children:["Leave blank to use ",(0,i.jsx)("code",{children:"http://localhost:11434"}),". For remote Ollama, enter the full host URL (e.g. ",(0,i.jsx)("code",{children:"http://192.168.1.10:11434"}),")."]}),U&&(0,i.jsx)(c.Ex,{variant:"success"===U?"success":"error",children:"success"===U?"Valid":"Invalid"}),u&&(0,i.jsx)("p",{className:"text-xs text-red-500 break-words",children:u}),l&&(0,i.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."}),N&&(0,i.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,i.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Cloudflare Workers AI"}),(0,i.jsx)(c.pd,{label:"Account ID",value:P.accountId,onChange:e=>E({...P,accountId:e.target.value}),placeholder:"abc123def456..."}),(0,i.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,i.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]}),k&&(0,i.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,i.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,i.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,i.jsx)(c.pd,{label:"Azure Endpoint",value:$.azureEndpoint,onChange:e=>O({...$,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,i.jsx)(c.pd,{label:"Deployment Name",value:$.deployment,onChange:e=>O({...$,deployment:e.target.value}),placeholder:"gpt-4"}),(0,i.jsx)(c.pd,{label:"API Version",value:$.apiVersion,onChange:e=>O({...$,apiVersion:e.target.value}),placeholder:"2024-10-01-preview"}),(0,i.jsx)(c.pd,{label:"Organization",value:$.organization,onChange:e=>O({...$,organization:e.target.value}),placeholder:"Organization ID"})]})]}),(0,i.jsx)(c.pd,{label:"Priority",type:"number",value:A.priority,onChange:e=>T({...A,priority:Number.parseInt(e.target.value)||1})}),(0,i.jsx)(c.l6,{label:"Proxy Pool",value:A.proxyPoolId,onChange:e=>T({...A,proxyPoolId:e.target.value}),options:[{value:y,label:"None"},...(p||[]).map(e=>({value:e.id,label:e.name}))],placeholder:"None"}),0===(p||[]).length&&(0,i.jsx)("p",{className:"text-xs text-text-muted",children:"No active proxy pools available. Create one in Proxy Pools page first."}),(0,i.jsx)("p",{className:"text-xs text-text-muted",children:"Legacy manual proxy fields are still accepted by API for backward compatibility."}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(c.$n,{onClick:X,fullWidth:!0,disabled:K||!b&&(!A.name||!A.apiKey)||l&&!A.defaultModel.trim()||k&&(!$.azureEndpoint||!$.deployment||!$.organization)||N&&!P.accountId,children:K?"Saving...":"Save"}),(0,i.jsx)(c.$n,{onClick:g,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}function U({isOpen:e,node:t,onSave:s,onClose:l,isAnthropic:r}){let[n,o]=(0,a.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),[d,m]=(0,a.useState)(!1),[p,u]=(0,a.useState)(""),[x,h]=(0,a.useState)(""),[f,g]=(0,a.useState)(!1),[y,b]=(0,a.useState)(null);(0,a.useEffect)(()=>{t&&o({name:t.name||"",prefix:t.prefix||"",apiType:t.apiType||"chat",baseUrl:t.baseUrl||(r?"https://api.anthropic.com/v1":"https://api.openai.com/v1")})},[t,r]);let v=async()=>{if(n.name.trim()&&n.prefix.trim()&&n.baseUrl.trim()){m(!0);try{let e={name:n.name,prefix:n.prefix,baseUrl:n.baseUrl};r||(e.apiType=n.apiType),await s(e)}finally{m(!1)}}},j=async()=>{g(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:n.baseUrl,apiKey:p,type:r?"anthropic-compatible":"openai-compatible",modelId:x.trim()||void 0})}),t=await e.json();b(t.valid?"success":"failed")}catch{b("failed")}finally{g(!1)}};return t?(0,i.jsx)(c.aF,{isOpen:e,title:`Edit ${r?"Anthropic":"OpenAI"} Compatible`,onClose:l,children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(c.pd,{label:"Name",value:n.name,onChange:e=>o({...n,name:e.target.value}),placeholder:`${r?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,i.jsx)(c.pd,{label:"Prefix",value:n.prefix,onChange:e=>o({...n,prefix:e.target.value}),placeholder:r?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!r&&(0,i.jsx)(c.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:n.apiType,onChange:e=>o({...n,apiType:e.target.value})}),(0,i.jsx)(c.pd,{label:"Base URL",value:n.baseUrl,onChange:e=>o({...n,baseUrl:e.target.value}),placeholder:r?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${r?"Anthropic":"OpenAI"}-compatible API.`}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(c.pd,{label:"API Key (for Check)",type:"password",value:p,onChange:e=>u(e.target.value),className:"flex-1"}),(0,i.jsx)("div",{className:"pt-6",children:(0,i.jsx)(c.$n,{onClick:j,disabled:!p||f||!n.baseUrl.trim(),variant:"secondary",children:f?"Checking...":"Check"})})]}),(0,i.jsx)(c.pd,{label:"Model ID (optional)",value:x,onChange:e=>h(e.target.value),placeholder:"e.g. my-model-id",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),y&&(0,i.jsx)(c.Ex,{variant:"success"===y?"success":"error",children:"success"===y?"Valid":"Invalid"}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(c.$n,{onClick:v,fullWidth:!0,disabled:!n.name.trim()||!n.prefix.trim()||!n.baseUrl.trim()||d,children:d?"Saving...":"Save"}),(0,i.jsx)(c.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}q.propTypes={isOpen:O().bool.isRequired,provider:O().string,providerName:O().string,isCompatible:O().bool,isAnthropic:O().bool,authType:O().string,authHint:O().string,website:O().string,proxyPools:O().arrayOf(O().shape({id:O().string,name:O().string})),error:O().string,existingNames:O().arrayOf(O().string),onSave:O().func.isRequired,onBulkDone:O().func,onClose:O().func.isRequired},U.propTypes={isOpen:O().bool.isRequired,node:O().shape({id:O().string,name:O().string,prefix:O().string,apiType:O().string,baseUrl:O().string}),onSave:O().func.isRequired,onClose:O().func.isRequired,isAnthropic:O().bool};let M=()=>Object.fromEntries(Object.keys(p.bs).map(e=>[e,!1]));function K({isOpen:e,providerAlias:t,providerDisplayAlias:s,onSave:l,onClose:r}){let[n,o]=(0,a.useState)(""),[d,m]=(0,a.useState)(M),[u,x]=(0,a.useState)(null),[h,f]=(0,a.useState)(""),[g,y]=(0,a.useState)(!1),[b,v]=(0,a.useState)("");(0,a.useEffect)(()=>{e&&(o(""),m(M()),v(""),x(null),f(""))},[e]);let j=e=>{let s=`${t}/`;return e.startsWith(s)?e.slice(s.length):e},w=async()=>{let e=j(n.trim());if(e){x("testing"),f("");try{let s=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${t}/${e}`})}),i=await s.json();x(i.ok?"ok":"error"),f(i.error||"")}catch(e){x("error"),f(e.message)}}},k=async()=>{let e=j(n.trim());if(e&&!g){y(!0);try{await l(e,d,d.stt?b:null)}finally{y(!1)}}};return(0,i.jsx)(c.aF,{isOpen:e,onClose:r,title:"Add Custom Model",children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)("input",{type:"text",value:n,onChange:e=>{o(e.target.value),x(null),f("")},onKeyDown:e=>{"Enter"===e.key&&w()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",autoFocus:!0}),(0,i.jsx)(c.$n,{variant:"secondary",icon:"science",loading:"testing"===u,onClick:w,disabled:!n.trim()||"testing"===u,children:"testing"===u?"Testing...":"Test"})]}),(0,i.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,i.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:j(n.trim())||"model-id"})]})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Capabilities"}),(0,i.jsx)("div",{className:"flex flex-wrap gap-4",children:Object.entries(p.bs).map(([e,t])=>(0,i.jsx)(c.lM,{checked:!!d[e],onChange:t=>m(s=>({...s,[e]:t})),label:t.label,description:t.desc,size:"sm"},e))})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(c.lM,{checked:!!d.stt,onChange:e=>{m(t=>({...t,stt:e})),e||v("")},label:"Speech to text",description:"Transcribes audio via /v1/audio/transcriptions",size:"sm"}),d.stt&&(0,i.jsx)("div",{className:"mt-3",children:(0,i.jsx)(c.l6,{label:"Transport",value:b,onChange:e=>v(e.target.value),placeholder:"Provider default (REST)",options:p.vp.map(e=>({value:e,label:p.qw[e].label})),hint:"Realtime transport marker for the STT dispatcher. Empty keeps the provider's REST format."})})]}),"ok"===u&&(0,i.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===u&&(0,i.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,i.jsx)("span",{children:h||"Model not reachable"})]}),(0,i.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,i.jsx)(c.$n,{onClick:r,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,i.jsx)(c.$n,{onClick:k,fullWidth:!0,size:"sm",disabled:!n.trim()||g,children:g?"Adding...":"Add Model"})]})]})})}K.propTypes={isOpen:O().bool.isRequired,providerAlias:O().string.isRequired,providerDisplayAlias:O().string.isRequired,onSave:O().func.isRequired,onClose:O().func.isRequired};let F=`[
8
+ {
9
+ "accessToken": "eyJhbGc...",
10
+ "refreshToken": "rt_...",
11
+ "idToken": "eyJhbGc...",
12
+ "email": "user@example.com"
13
+ }
14
+ ]`;function J({isOpen:e,onClose:t,onSuccess:s}){let[l,r]=(0,a.useState)(""),[n,o]=(0,a.useState)(!1),[d,m]=(0,a.useState)(""),[p,u]=(0,a.useState)(null),x=()=>{n||(r(""),m(""),u(null),t())},h=async()=>{var e;let t;m(""),u(null);let i=l.trim();if(!i)return;try{t=JSON.parse(i)}catch(e){m(`${(0,C.Tl)("Invalid JSON")}: ${e.message}`);return}let a=Array.isArray(e=t)?e:e&&"object"==typeof e?Array.isArray(e.accounts)?e.accounts:[e]:null;if(!a||0===a.length)return void m((0,C.Tl)("No accounts found in input"));o(!0);try{let e=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:a})}),t=await e.json();if(!e.ok)return void m(t?.error||`Request failed: ${e.status}`);u(t),t.success>0&&"function"==typeof s&&s()}catch(e){m(e.message||(0,C.Tl)("Request failed"))}finally{o(!1)}},f=p?.results?.filter(e=>!e.ok)||[];return(0,i.jsx)(c.aF,{isOpen:e,title:(0,C.Tl)("Bulk Add Codex Accounts"),onClose:x,children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)("p",{className:"text-xs text-text-muted",children:(0,C.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,i.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:F,value:l,onChange:e=>r(e.target.value),disabled:n}),d&&(0,i.jsx)("p",{className:"text-xs text-red-500 break-words",children:d}),p&&(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsxs)("div",{className:`text-sm font-medium ${p.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",p.success," ",(0,C.Tl)("added"),p.failed>0?`, ✗ ${p.failed} ${(0,C.Tl)("failed")}`:""]}),f.length>0&&(0,i.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:f.map(e=>(0,i.jsxs)("li",{className:"text-red-400",children:["[",e.index,"] ",e.error]},e.index))})]}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(c.$n,{onClick:h,fullWidth:!0,disabled:n||!l.trim(),children:n?(0,C.Tl)("Importing..."):(0,C.Tl)("Import All")}),(0,i.jsx)(c.$n,{onClick:x,variant:"ghost",fullWidth:!0,disabled:n,children:(0,C.Tl)("Close")})]})]})})}J.propTypes={isOpen:O().bool.isRequired,onClose:O().func.isRequired,onSuccess:O().func};let L=`[
15
+ {
16
+ "access_token": "eyJ0eXAiOiJhdCtqd3Qi...",
17
+ "refresh_token": "LZhriF9bf88pPykpXCuZ9...",
18
+ "id_token": "eyJ0eXAiOiJKV1QiLCJhbGci...",
19
+ "email": "account1@example.com"
20
+ },
21
+ {
22
+ "access_token": "eyJ0eXAiOiJhdCtqd3Qi...",
23
+ "refresh_token": "LZhriF9bf88pPykpXCuZ9...",
24
+ "id_token": "eyJ0eXAiOiJKV1QiLCJhbGci...",
25
+ "email": "account2@example.com"
26
+ }
27
+ ]`;function W(e){let t,s=e.trim();if(!s)return[];try{t=JSON.parse(s)}catch(e){try{let e=s;e.startsWith("[")||((e=e.replace(/\}\s*,\s*\{/g,"},{").replace(/\}\s*\{/g,"},{")).endsWith(",")&&(e=e.slice(0,-1)),e=`[${e}]`),t=JSON.parse(e)}catch{throw e}}if(Array.isArray(t))return t;if(t&&"object"==typeof t)return Array.isArray(t.accounts)?t.accounts:[t];throw Error("Input must be a JSON object or array of objects")}function B({isOpen:e,onClose:t,onSuccess:s}){let[l,r]=(0,a.useState)(""),[n,o]=(0,a.useState)(!1),[d,m]=(0,a.useState)(""),[p,u]=(0,a.useState)(null),[x,h]=(0,a.useState)(!1),[f,g]=(0,a.useState)(null),y=(0,a.useRef)(null),b=()=>{n||(r(""),m(""),u(null),g(null),h(!1),t())},v=async e=>{if(!e||0===e.length)return;m("");let t=Array.from(e).filter(e=>e.name.endsWith(".json")||"application/json"===e.type||""===e.type);if(0===t.length)return void m((0,C.Tl)("Please select valid .json files"));try{let e=[];for(let s of t){let t=await s.text(),i=W(t);Array.isArray(i)?e.push(...i):i&&e.push(i)}if(0===e.length)return void m((0,C.Tl)("No accounts found in selected files"));r(JSON.stringify(e,null,2)),g({filesCount:t.length,accountsCount:e.length})}catch(e){m(`${(0,C.Tl)("Error reading files")}: ${e.message}`)}},j=async()=>{let e;m(""),u(null);try{e=W(l)}catch(e){m(`${(0,C.Tl)("Invalid JSON")}: ${e.message}`);return}if(!e||0===e.length)return void m((0,C.Tl)("No accounts found in input"));o(!0);try{let t=await fetch("/api/oauth/grok-cli/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:e})}),i=await t.json();if(!t.ok)return void m(i?.error||`Request failed: ${t.status}`);u(i),i.success>0&&"function"==typeof s&&s()}catch(e){m(e.message||(0,C.Tl)("Request failed"))}finally{o(!1)}},w=p?.results?.filter(e=>!e.ok)||[];return(0,i.jsx)(c.aF,{isOpen:e,title:(0,C.Tl)("Bulk Add Grok CLI Accounts"),onClose:b,children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,i.jsx)("p",{className:"text-xs text-text-muted",children:(0,C.Tl)("Upload multiple .json files or paste JSON array / object.")}),(0,i.jsx)("input",{ref:y,type:"file",accept:".json,application/json",multiple:!0,className:"hidden",onChange:e=>{v(e.target.files),e.target&&(e.target.value="")}}),(0,i.jsx)(c.$n,{type:"button",size:"sm",variant:"secondary",icon:"upload_file",onClick:()=>y.current?.click(),disabled:n,children:(0,C.Tl)("Upload JSON Files")})]}),(0,i.jsxs)("div",{onDragOver:e=>{e.preventDefault(),h(!0)},onDragLeave:e=>{e.preventDefault(),h(!1)},onDrop:e=>{e.preventDefault(),h(!1),e.dataTransfer?.files?.length>0&&v(e.dataTransfer.files)},className:`relative rounded border transition-colors ${x?"border-primary bg-primary/10 ring-2 ring-primary/30":"border-accent/30 bg-sidebar"}`,children:[(0,i.jsx)("textarea",{className:"w-full rounded bg-transparent p-2.5 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:L,value:l,onChange:e=>{r(e.target.value),g(null)},disabled:n}),x&&(0,i.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-sidebar/90 rounded pointer-events-none backdrop-blur-xs",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary mb-1",children:"upload_file"}),(0,i.jsx)("span",{className:"text-sm font-medium text-primary",children:(0,C.Tl)("Drop .json files here")})]})]}),f&&(0,i.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-green-400 font-medium bg-green-500/10 border border-green-500/20 px-2.5 py-1.5 rounded",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-sm",children:"check_circle"}),(0,i.jsxs)("span",{children:[(0,C.Tl)("Loaded")," ",f.accountsCount," ",(0,C.Tl)("account(s) from")," ",f.filesCount," ",(0,C.Tl)("file(s)")]})]}),d&&(0,i.jsx)("p",{className:"text-xs text-red-500 break-words",children:d}),p&&p.failed>0&&(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsxs)("div",{className:"text-sm font-medium text-yellow-400",children:["✗ ",p.failed," ",(0,C.Tl)("failed")]}),w.length>0&&(0,i.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(e=>(0,i.jsxs)("li",{className:"text-red-400",children:["[",e.index,"] ",e.error]},e.index))})]}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(c.$n,{onClick:j,fullWidth:!0,disabled:n||!l.trim(),children:n?(0,C.Tl)("Importing..."):(0,C.Tl)("Import All")}),(0,i.jsx)(c.$n,{onClick:b,variant:"ghost",fullWidth:!0,disabled:n,children:(0,C.Tl)("Close")})]})]})})}let G={claude:"claudeAutoPing",codex:"codexAutoPing"},H={qoder:"Fetch Qoder Models","qoder-cn":"Fetch Qoder Models","trae-enterprise":"Fetch Trae Enterprise Models",codearts:"Fetch CodeArts Models",minimax:"Fetch MiniMax Models","minimax-cn":"Fetch MiniMax Models"};function V(){let e,t,s,r,u,x=(0,l.useParams)(),h=(0,l.useRouter)(),f=x.id,{getCaps:g}=(0,N.y)(),[y,b]=(0,a.useState)([]),[v,j]=(0,a.useState)(!0),[S,$]=(0,a.useState)(null),[O,E]=(0,a.useState)([]),[D,R]=(0,a.useState)(!1),[z,M]=(0,a.useState)(!1),[F,L]=(0,a.useState)(!1),[W,V]=(0,a.useState)(!1),[Q,Z]=(0,a.useState)(""),[X,Y]=(0,a.useState)(!1),[ee,et]=(0,a.useState)(!1),[es,ei]=(0,a.useState)(!1),[ea,el]=(0,a.useState)(!1),[er,en]=(0,a.useState)(!1),[eo,ed]=(0,a.useState)(null),[ec,em]=(0,a.useState)({}),[ep,eu]=(0,a.useState)([]),[ex,eh]=(0,a.useState)(!1),[ef,eg]=(0,a.useState)({}),[ey,eb]=(0,a.useState)(""),[ev,ej]=(0,a.useState)(()=>new Set),[ew,ek]=(0,a.useState)(!1),[eN,eC]=(0,a.useState)([]),[eS,eA]=(0,a.useState)("__none__"),[eT,e$]=(0,a.useState)(!1),[eO,eP]=(0,a.useState)(null),[eE,eI]=(0,a.useState)(""),[eD,eR]=(0,a.useState)("auto"),[e_,ez]=(0,a.useState)({enabled:!1,connections:{}}),[eq,eU]=(0,a.useState)([]),[eM,eK]=(0,a.useState)([]),[eF,eJ]=(0,a.useState)(null),[eL,eW]=(0,a.useState)([]),[eB,eG]=(0,a.useState)([]),[eH,eV]=(0,a.useState)(null),[eQ,eZ]=(0,a.useState)(!1),[eX,eY]=(0,a.useState)(!1),[e0,e1]=(0,a.useState)(!1),[e2,e5]=(0,a.useState)(null),[e3,e4]=(0,a.useState)({}),[e6,e8]=(0,a.useState)(null),e7=(0,a.useRef)(!1),[e9,te]=(0,a.useState)(!1),[tt,ts]=(0,a.useState)(!1),{copied:ti,copy:ta}=(0,k.C)(),tl="ag_risk_confirmed",tr=()=>{R(!0)},tn=()=>{"antigravity"===f&&"true"!==window.localStorage.getItem(tl)?eZ(!0):"xiaomi-mimo"===f?M(!0):tp?tr():(Z(""),V(!0))},to=()=>{Z(""),V(!0)},td=()=>{tp?tn():to()},tc=S?{id:S.id,name:S.name||("anthropic-compatible"===S.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===S.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===S.type?"AC":"OC",apiType:S.apiType,baseUrl:S.baseUrl,type:S.type}:m.zN[f]||m.fg[f]||m.IS[f]||m.nJ[f]||m.br[f],tm=tc?.authModes||[],tp=!!m.zN[f]||!!m.IS[f]||tm.includes("oauth"),tu=!!m.fg[f]||tm.includes("apikey"),tx=!!m.IS[f]?.noAuth,th="antigravity"===f||"gemini-cli"===f,tf=(0,p.KC)(f),tg=("cursor"===f||"zed"===f)&&eM.length>0?eM:tf,ty=(0,m.wG)(f),tb=(0,m.mq)(f),tv=(0,m.gb)(f),tj=tb||tv,tw=!tj&&tp&&tu,tk="xai"===f?"Grok Build OAuth":"grok-cli"===f?"Grok CLI Device Login":"kimi"===f?"Kimi Coding OAuth":"OAuth",tN="xai"===f?"xAI API Key":"kimi"===f?"Kimi API Key":"qoder"===f||"qoder-cn"===f?"PAT":"API Key",tC=e=>{if(!eD||"auto"===eD)return null;let t=w(f,e);return t&&t.includes(eD)?eD:null},tS=tj?f:ty,tA=(()=>{let e=new Set,t=new Set,s=s=>{if(!s||t.has(s))return;t.add(s);let i=w(f,s);i&&i.forEach(t=>{"none"!==t&&e.add(t)})};for(let e of tg)s(e.id);for(let e of eL)s(e.id);for(let e of ep)e.providerAlias===tS&&"llm"===(e.kind||e.type||"llm")&&s(e.id);return e.size?["auto",...e]:null})(),tT=tj?S?.prefix||f:ty,t$=(0,a.useCallback)(async()=>{try{let e=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tS)}`,{cache:"no-store"}),t=await e.json();e.ok&&eG(t.ids||[])}catch(e){console.log("Error fetching disabled models:",e)}},[tS]),tO=async e=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:tS,ids:[e]})})).ok&&await t$()}catch(e){console.log("Error disabling model:",e)}},tP=async e=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tS)}&id=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await t$()}catch(e){console.log("Error enabling model:",e)}},tE=async e=>{e.length&&eV({title:"Disable All Models",message:`Disable all ${e.length} model(s)?`,onConfirm:async()=>{eV(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:tS,ids:e})})).ok&&await t$()}catch(e){console.log("Error disabling all models:",e)}}})},tI=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tS)}`,{method:"DELETE"})).ok&&await t$()}catch(e){console.log("Error enabling all models:",e)}},tD=(0,a.useCallback)(async()=>{try{let e=await fetch("/api/models/alias"),t=await e.json();e.ok&&em(t.aliases||{})}catch(e){console.log("Error fetching aliases:",e)}},[]),tR=(0,a.useCallback)(async()=>{try{let e=await fetch("/api/models/custom",{cache:"no-store"}),t=await e.json();e.ok&&eu(t.models||[])}catch(e){console.log("Error fetching custom models:",e)}},[]);(0,a.useEffect)(()=>{"kilocode"===f&&fetch("/api/providers/kilo/free-models").then(e=>e.json()).then(e=>{e.models?.length&&eW(e.models)}).catch(()=>{})},[f]);let t_=(0,a.useCallback)(async()=>{try{let[e,t,s,i]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),a=await e.json(),l=await t.json(),r=await s.json(),n=i.ok?await i.json():{};if(e.ok){let e=(a.connections||[]).filter(e=>e.provider===f);b(e)}s.ok&&E(r.proxyPools||[]);let o=(n.providerStrategies||{})[f]||{};eP(o.fallbackStrategy||null),eI(null!=o.stickyRoundRobinLimit?String(o.stickyRoundRobinLimit):"1");let d=(n.providerThinking||{})[f]||{};eR(d.mode||"auto");let c=G[f],m=c&&n[c]||{};if(ez({enabled:!0===m.enabled,connections:m.connections||{}}),t.ok){let e=(l.nodes||[]).find(e=>e.id===f)||null;if(!e&&tj)for(let t=0;t<3;t+=1){await new Promise(e=>setTimeout(e,150));let t=await fetch("/api/provider-nodes",{cache:"no-store"});if(t.ok&&(e=((await t.json()).nodes||[]).find(e=>e.id===f)||null))break}$(e)}}catch(e){console.log("Error fetching connections:",e)}finally{j(!1)}},[f,tj]),tz=async e=>{try{let t=await fetch(`/api/provider-nodes/${f}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await t.json();t.ok&&($(s.node),await t_(),el(!1))}catch(e){console.log("Error updating provider node:",e)}},tq=async(e,t)=>{try{let s=await fetch("/api/settings",{cache:"no-store"}),i=(s.ok?await s.json():{}).providerStrategies||{},a={};e&&(a.fallbackStrategy=e),"round-robin"===e&&""!==t&&(a.stickyRoundRobinLimit=Number(t)||3);let l={...i};0===Object.keys(a).length?delete l[f]:l[f]=a,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:l})})}catch(e){console.log("Error saving provider strategy:",e)}},tU=async e=>{try{let t=await fetch("/api/settings",{cache:"no-store"}),s={...(t.ok?await t.json():{}).providerThinking||{}};e&&"auto"!==e?s[f]={mode:e}:delete s[f],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:s})})}catch(e){console.log("Error saving thinking config:",e)}},tM=async e=>{let t=G[f];if(t){ez(e);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[t]:e})})}catch(e){console.log("Error saving auto-ping config:",e)}}};(0,a.useEffect)(()=>{t_(),tD(),tR(),t$()},[t_,tD,tR,t$]),(0,a.useEffect)(()=>{if("cursor"!==f&&"zed"!==f)return void eK([]);let e=y.find(e=>!1!==e.isActive);if(!e?.id){eK([]),"zed"===f&&eJ(null);return}let t=!1;return"zed"===f&&eJ(null),fetch(`/api/providers/${e.id}/models`,{cache:"no-store"}).then(async e=>({ok:e.ok,data:await e.json().catch(()=>null)})).then(({ok:e,data:s})=>{if(!t){if(e&&Array.isArray(s?.models)&&s.models.length>0){eK(s.models),"zed"===f&&s?.warning&&eJ(s.warning);return}"zed"===f&&(eK([]),eJ(s?.warning||s?.error||"Zed returned no live models."))}}).catch(()=>{t||"zed"!==f||(eK([]),eJ("Failed to reach the Zed model catalog."))}),()=>{t=!0}},[f,y]),(0,a.useEffect)(()=>{let e=(m.zN[f]||m.fg[f]||m.IS[f]||m.nJ[f])?.modelsFetcher;e&&A(e).then(eU)},[f]);let tK=async(e,t,s=ty)=>{let i=`${s}/${e}`;try{let e=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:i,alias:t})});if(e.ok)await tD();else{let t=await e.json();alert(t.error||"Failed to set alias")}}catch(e){console.log("Error setting alias:",e)}},tF=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await tD()}catch(e){console.log("Error deleting alias:",e)}},tJ=async(e,t="llm",s=tS,i,a)=>{try{let l=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:s,id:e,type:t,...i?{caps:i}:{},...a?{transport:a}:{}})});if(l.ok)await tR(),window.dispatchEvent(new CustomEvent("customModelChanged"));else{let e=await l.json();alert(e.error||"Failed to add custom model")}}catch(e){console.log("Error adding custom model:",e)}},tL=async(e,t="llm",s=tS)=>{try{let i=new URLSearchParams({providerAlias:s,id:e,type:t});(await fetch(`/api/models/custom?${i}`,{method:"DELETE"})).ok&&(await tR(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error deleting custom model:",e)}},tW=async()=>{if(e9)return;let e=y.find(e=>!1!==e.isActive);if(!e)return void alert((0,C.Tl)("Please add an active connection first"));te(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),s=await t.json();if(!t.ok)return void alert(s.error||(0,C.Tl)("Failed to fetch models"));let i=s.models||[];if(0===i.length)return void alert((0,C.Tl)("No models returned"));let a=0,l=new Set(tf.map(e=>e.id));for(let e of i){let t=e.id||e.name;if(!t)continue;let s=`${f}/`,i=t.startsWith(s)?t.slice(s.length):t;ep.some(e=>e.providerAlias===tS&&e.id===i&&"llm"===(e.kind||e.type||"llm"))||Object.values(ec).includes(`${tS}/${i}`)||l.has(i)||(await tJ(i,"llm",tS),a+=1)}0===a?alert((0,C.Tl)("All models already exist, no new models added")):alert((0,C.Tl)("Successfully added")+` ${a} `+(0,C.Tl)("models"))}catch(e){console.log("Error importing live models:",e),alert((0,C.Tl)("Error fetching models")+": "+e.message)}finally{te(!1)}},tB=async()=>{if(tt)return;let e=y.find(e=>!1!==e.isActive);if(!e)return void alert((0,C.Tl)("Please add an active Cline connection first"));ts(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),s=await t.json();if(!t.ok)return void alert(s.error||(0,C.Tl)("Failed to fetch models"));let i=s.models||[];if(0===i.length)return void alert((0,C.Tl)("No models returned"));let a=0;for(let e of i){let t=e.id||e.name;t&&(ep.some(e=>e.providerAlias===tS&&e.id===t&&"llm"===(e.kind||e.type||"llm"))||Object.values(ec).includes(`${tS}/${t}`)||(await tJ(t,"llm",tS),a+=1))}0===a?alert((0,C.Tl)("All models already exist, no new models added")):alert((0,C.Tl)("Successfully added")+` ${a} `+(0,C.Tl)("models"))}catch(e){console.log("Error importing Cline models:",e),alert((0,C.Tl)("Error fetching models")+": "+e.message)}finally{ts(!1)}},tG=async()=>{if(eX||0===y.length)return;let e=Object.fromEntries(y.map(e=>[e.id,{state:"queued",error:null}]));e7.current=!1,eY(!0),e1(!1),e5(null),e4(e),e8({total:y.length,completed:0,passed:0,failed:0,stopped:!1});let t=0,s=0;try{for(let e=0;e<y.length;e+=1){if(e7.current){e8({total:y.length,completed:e,passed:t,failed:s,stopped:!0});break}let i=y[e];e5(i.id),e4(e=>({...e,[i.id]:{state:"testing",error:null}}));try{let e=await fetch(`/api/providers/${i.id}/test`,{method:"POST"}),a=await e.json(),l=!!a.valid;l?t+=1:s+=1,e4(e=>({...e,[i.id]:{state:l?"success":"failed",error:l?null:a.error||null}}))}catch(e){s+=1,e4(t=>({...t,[i.id]:{state:"failed",error:e.message||"Test failed"}}))}e8({total:y.length,completed:e+1,passed:t,failed:s,stopped:!1}),e<y.length-1&&await new Promise(e=>setTimeout(e,1e3))}}finally{e5(null),eY(!1),e1(!1),e7.current=!1}},tH=async e=>{eV({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{eV(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&b(t=>t.filter(t=>t.id!==e))}catch(e){console.log("Error deleting connection:",e)}}})},tV=()=>{t_(),R(!1)},tQ=async e=>{Z("");try{let t=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:f,...e})}),s=null;try{s=await t.json()}catch{s=null}if(t.ok){await t_(),V(!1);return}Z(s?.error||"Failed to save connection")}catch(e){console.log("Error saving connection:",e),Z("Failed to save connection")}},tZ=async e=>{try{(await fetch(`/api/providers/${eo.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await t_(),ei(!1))}catch(e){console.log("Error updating connection:",e)}},tX=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&b(s=>s.map(s=>s.id===e?{...s,isActive:t}:s))}catch(e){console.log("Error updating connection status:",e)}},tY=async(e,t)=>{let s=[...y];[s[e],s[t]]=[s[t],s[e]],b(s);try{await Promise.all([fetch(`/api/providers/${s[e].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:e})}),fetch(`/api/providers/${s[t].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:t})})])}catch(e){console.log("Error swapping priority:",e),await t_()}},t0=y.filter(e=>eN.includes(e.id)),t1=y.length>0&&eN.length===y.length;(0,a.useEffect)(()=>{eC(e=>e.filter(e=>y.some(t=>t.id===e)))},[y]),(()=>{if(0===t0.length)return;let e=new Set(t0.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"));if(1===e.size){let t=[...e][0];if("__none__"===t)return;let s=O.find(e=>e.id===t);return s?.name}})();let t2=()=>{eT||en(!1)},t5=async e=>{e$(!0);try{let t=0;for(let{connectionId:s,proxyPoolId:i}of e)try{(await fetch(`/api/providers/${s}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:i})})).ok||(t+=1)}catch(e){console.log("Error applying proxy for",s,e),t+=1}t>0&&alert(`Updated with ${t} failed request(s).`),await t_(),en(!1)}finally{e$(!1)}},t3=e=>t5(y.map(t=>({connectionId:t.id,proxyPoolId:e}))),t4=(0,i.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03] max-h-[500px] overflow-y-auto pr-1",children:y.map((e,t)=>{let s;return(0,i.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,i.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,i.jsx)("input",{type:"checkbox",checked:(s=e.id,eN.includes(s)),onChange:()=>{var t;return t=e.id,void eC(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"})}),(0,i.jsx)("div",{className:"flex-1 min-w-0",children:(0,i.jsx)(_,{connection:e,proxyPools:O,isOAuth:tp,isFirst:0===t,isLast:t===y.length-1,onMoveUp:()=>tY(t,t-1),onMoveDown:()=>tY(t,t+1),onToggleActive:t=>tX(e.id,t),autoPing:G[f]&&"oauth"===e.authType?{on:!0===e_.connections[e.id],onToggle:t=>{var s;return s=e.id,void tM({...e_,connections:{...e_.connections,[s]:t}})},provider:f}:null,onUpdateProxy:async t=>{try{(await fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:t||null})})).ok&&b(s=>s.map(s=>s.id===e.id?{...s,providerSpecificData:{...s.providerSpecificData,proxyPoolId:t||null}}:s))}catch(e){console.log("Error updating proxy:",e)}},onEdit:()=>{ed(e),ei(!0)},onDelete:()=>tH(e.id),oneByOneStatus:e3[e.id]||null})})]},e.id)})}),t6=O.filter(e=>!0===e.isActive),t8=(0,i.jsx)(c.aF,{isOpen:er,onClose:t2,title:`Apply Proxy (${y.length} connections)`,children:(0,i.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)("button",{onClick:()=>{let e=O.filter(e=>!0===e.isActive);return 0===e.length?void alert("No active proxy pools available."):t5(y.map((t,s)=>({connectionId:t.id,proxyPoolId:e[s%e.length].id})))},disabled:eT||0===t6.length,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,i.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,i.jsxs)("button",{onClick:()=>t3(null),disabled:eT,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,i.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),O.map(e=>(0,i.jsxs)("button",{onClick:()=>t3(e.id),disabled:eT||!0!==e.isActive,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,i.jsx)("span",{className:"truncate text-sm text-text-main",children:e.name}),!0!==e.isActive&&(0,i.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},e.id))]}),eT&&(0,i.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,i.jsx)(c.$n,{onClick:t2,variant:"ghost",fullWidth:!0,disabled:eT,children:"Cancel"})]})}),t7=async e=>{if(!ev.has(e)){ej(t=>new Set(t).add(e));try{let t=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${tS}/${e}`})}),s=await t.json();eg(t=>({...t,[e]:s.ok?"ok":"error"})),eb(s.ok?"":s.error||"Model not reachable")}catch{eg(t=>({...t,[e]:"error"})),eb("Network error")}finally{ej(t=>{let s=new Set(t);return s.delete(e),s})}}};if(v)return(0,i.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,i.jsx)(c.Qv,{}),(0,i.jsx)(c.Qv,{})]});if(!tc)return(0,i.jsxs)("div",{className:"text-center py-20",children:[(0,i.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,i.jsx)(n(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]});let t9=()=>tb&&tc.apiType?"responses"===tc.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":tv?"/providers/anthropic-m.png":(0,d.HY)(tc.id);return(0,i.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsxs)(n(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,i.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${tc.color}15`},children:ex||!t9()?(0,i.jsx)("span",{className:"text-sm font-bold",style:{color:tc.color},children:tc.textIcon||tc.id.slice(0,2).toUpperCase()}):(0,i.jsx)(o.default,{src:t9(),alt:tc.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>{(0,d.Kw)(tc.id),eh(!0)},loading:"lazy",decoding:"async"})}),(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,i.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:tc.name}),(tc.notice?.apiKeyUrl||tc.notice?.signupUrl||tc.website)&&(0,i.jsxs)("a",{href:tc.notice?.apiKeyUrl||tc.notice?.signupUrl||tc.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),tc.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,i.jsxs)("p",{className:"text-text-muted",children:[y.length," connection",1===y.length?"":"s"]})]})]})]}),tc.deprecated&&(0,i.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,i.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:tc.deprecationNotice})]}),tc.notice?.text&&!tc.deprecated&&(0,i.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,i.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:tc.notice.text}),tc.notice.apiKeyUrl&&(0,i.jsx)("a",{href:tc.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:"Get API Key →"})]}),tj&&S&&(0,i.jsx)(c.Zp,{children:(0,i.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("h2",{className:"text-lg font-semibold",children:tv?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,i.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[tv?"Messages API":"responses"===S.apiType?"Responses API":"Chat Completions"," \xb7 ",(S.baseUrl||"").replace(/\/$/,""),"/",tv?"messages":"responses"===S.apiType?"responses":"chat/completions"]})]}),(0,i.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,i.jsx)(c.$n,{size:"sm",icon:"add",onClick:()=>{Z(""),V(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,i.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>el(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,i.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{eV({title:"Delete Compatible Node",message:`Delete this ${tv?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{eV(null);try{(await fetch(`/api/provider-nodes/${f}`,{method:"DELETE"})).ok&&h.push("/dashboard/providers")}catch(e){console.log("Error deleting provider node:",e)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),th&&(0,i.jsx)(c.gw,{providerId:f,title:"Proxy pool for connecting",description:"The OAuth connect flow itself calls Google endpoints. Route it through the selected proxy pool; the pool is then saved onto the new connection."}),tx?(0,i.jsx)(c.gw,{providerId:f}):(0,i.jsxs)(c.Zp,{children:[(0,i.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,i.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,i.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[y.length>0&&O.length>0&&(0,i.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>en(!0),children:"Apply Proxy"}),y.length>0&&(0,i.jsxs)(i.Fragment,{children:[eN.length>0&&(0,i.jsxs)(c.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let e=eN.length;0!==e&&eV({title:`Delete ${e} Connection${e>1?"s":""}`,message:`Delete ${e} connection${e>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{eV(null);let e=0,t=[...eN];for(let s of t)try{(await fetch(`/api/providers/${s}`,{method:"DELETE"})).ok||(e+=1)}catch(t){console.log("Error deleting connection:",t),e+=1}b(e=>e.filter(e=>!t.includes(e.id))),eC([]),e>0&&alert(`Deleted ${t.length-e} connection(s), ${e} failed.`)}})},children:["Delete Selected (",eN.length,")"]}),(0,i.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:tG,disabled:eX,children:eX?"Testing Connection One-by-One...":"Test Connection One-by-One"}),eX&&(0,i.jsx)(c.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{eX&&(e7.current=!0,e1(!0))},disabled:e0,children:e0?"Stopping...":"Stop"})]}),(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,i.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,i.jsx)(c.lM,{checked:"round-robin"===eO,onChange:e=>{let t=e?"round-robin":null,s=e?eE||"1":eE;e&&!eE&&eI("1"),eP(t),tq(t,s)}}),"round-robin"===eO&&(0,i.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,i.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,i.jsx)("input",{type:"number",min:1,value:eE,onChange:e=>{var t;eI(t=e.target.value),tq("round-robin",t)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===y.length?(0,i.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,i.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:tp?"lock":"key"})}),(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),tw&&(0,i.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",tk," or ",tN,"."]})]})]}),(0,i.jsx)("div",{className:"flex gap-2",children:tw?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:tn,children:tk}),(0,i.jsx)(c.$n,{size:"sm",icon:"key",onClick:to,children:tN})]}):(0,i.jsxs)(i.Fragment,{children:[!tj&&"iflow"===f&&(0,i.jsx)(c.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>L(!0),children:"Cookie"}),"codex"===f&&(0,i.jsx)(c.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>Y(!0),children:(0,C.Tl)("Bulk Add")}),"grok-cli"===f&&(0,i.jsx)(c.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>et(!0),children:(0,C.Tl)("Bulk Add")}),(0,i.jsx)(c.$n,{size:"sm",icon:"add",onClick:td,children:tj?"Add API Key":"iflow"===f?"OAuth":"Add Connection"})]})})]}):(0,i.jsxs)(i.Fragment,{children:[e6&&(0,i.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,i.jsxs)("span",{children:["Total: ",e6.total]}),(0,i.jsxs)("span",{children:["Completed: ",e6.completed]}),(0,i.jsxs)("span",{children:["Passed: ",e6.passed]}),(0,i.jsxs)("span",{children:["Failed: ",e6.failed]}),e6.stopped&&(0,i.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),eX&&e2&&(0,i.jsxs)("span",{children:["Running: ",y.find(e=>e.id===e2)?.name||e2]})]})}),y.length>0&&(0,i.jsx)("div",{className:"mb-3 flex items-center gap-2 border-b border-black/[0.03] pb-2 dark:border-white/[0.03]",children:(0,i.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,i.jsx)("input",{type:"checkbox",checked:t1,onChange:()=>{t1?eC([]):eC(y.map(e=>e.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),t4,!tj&&(0,i.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===f&&(0,i.jsx)(c.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>L(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===f&&(0,i.jsx)(c.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>Y(!0),title:(0,C.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,C.Tl)("Bulk Add")}),"grok-cli"===f&&(0,i.jsx)(c.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>et(!0),title:(0,C.Tl)("Bulk import Grok CLI accounts from JSON"),className:"w-full sm:w-auto",children:(0,C.Tl)("Bulk Add")}),tw?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:tn,className:"w-full sm:w-auto",children:tk}),(0,i.jsx)(c.$n,{size:"sm",icon:"key",onClick:to,className:"w-full sm:w-auto",children:tN})]}):(0,i.jsx)(c.$n,{size:"sm",icon:"add",onClick:td,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,i.jsxs)(c.Zp,{children:[(0,i.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),tA&&(0,i.jsx)("select",{value:eD,onChange:e=>{var t;eR(t=e.target.value),tU(t)},title:"Appends (level) suffix to copied model names",className:"rounded-md border border-border bg-background px-2 py-1 text-xs focus:border-primary focus:outline-none",children:tA.map(e=>(0,i.jsx)("option",{value:e,children:`Thinking: ${e.charAt(0).toUpperCase()+e.slice(1)}`},e))})]}),!tj&&(e=[...tg,...eL.filter(e=>!tg.some(t=>t.id===e.id))].filter(e=>{let t=(0,p.CP)(e);return!t||"llm"===t}).map(e=>e.id).filter(e=>!eB.includes(e)),(0,i.jsxs)("div",{className:"flex gap-2",children:[eB.length>0&&(0,i.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:tI,children:"Active All"}),e.length>0&&(0,i.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>tE(e),children:"Disable All"})]}))]}),!!ey&&(0,i.jsxs)("div",{className:"mb-3",children:[(0,i.jsx)("p",{className:"text-xs text-red-500 break-words",children:ey}),/RegionError|hosted in China|regionNotAllowed/i.test(ey)&&(s=(t="string"==typeof ey?ey:JSON.stringify(ey)).match(/https:\/\/opencode\.ai\/workspace\/[^\s"')]+/),r=t.match(/wrk_[0-9A-Za-z]+/),u=s?s[0].endsWith("/go")?s[0]:`${s[0]}/go`:r?`https://opencode.ai/workspace/${r[0]}/go`:"https://opencode.ai",(0,i.jsx)("div",{className:"mt-1.5",children:(0,i.jsxs)("a",{href:u,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 rounded-md bg-amber-500/10 px-2 py-0.5 text-xs font-medium text-amber-600 hover:bg-amber-500/20 dark:text-amber-400 transition-colors",children:[(0,i.jsx)("span",{children:"Allow China-hosted models"}),(0,i.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"open_in_new"})]})}))]}),"zed"===f&&!!eF&&(0,i.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:eF}),(()=>{let e,t,s;if(tj)return(0,i.jsx)(I,{providerStorageAlias:tS,providerDisplayAlias:tT,modelAliases:ec,customModels:ep,copied:ti,onCopy:ta,onSetAlias:tK,onDeleteAlias:tF,onAddCustomModel:e=>tJ(e,"llm",tS),onDeleteCustomModel:e=>tL(e,"llm",tS),connections:y,isAnthropic:tv});let a=[...tg,...eL.filter(e=>!tg.some(t=>t.id===e.id))].filter(e=>{let t=(0,p.CP)(e);return!t||"llm"===t}),l=new Set(eB),r=a.filter(e=>!l.has(e.id)),n=a.filter(e=>l.has(e.id)),o=T({customModels:ep,modelAliases:ec,providerAlias:tS,builtInModels:tg,type:"llm"});return(0,i.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o.map(e=>(0,i.jsx)(P,{model:{id:e.id,name:e.name},fullModel:`${tT}/${e.id}`,alias:e.alias,copied:ti,onCopy:ta,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===e.source?tL(e.id,"llm",tS):tF(e.alias)},testStatus:ef[e.id],onTest:y.length>0||tx?()=>t7(e.id):void 0,isTesting:ev.has(e.id),isCustom:!0,isFree:!1,caps:g(`${f}/${e.id}`),thinkingSuffix:tC(e.id)},`${e.source}-${e.fullModel}`)),r.map(e=>{let t=`${tS}/${e.id}`,s=`${f}/${e.id}`,a=Object.entries(ec).find(([,e])=>e===t||e===s)?.[0];return(0,i.jsx)(P,{model:e,fullModel:`${tT}/${e.id}`,alias:a,copied:ti,onCopy:ta,onSetAlias:t=>tK(e.id,t,tS),onDeleteAlias:()=>tF(a),testStatus:ef[e.id],onTest:y.length>0||tx?()=>t7(e.id):void 0,isTesting:ev.has(e.id),isFree:e.isFree,onDisable:()=>tO(e.id),caps:g(`${f}/${e.id}`),thinkingSuffix:tC(e.id)},e.id)}),(0,i.jsxs)("button",{onClick:()=>ek(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),H[f]&&y.some(e=>!1!==e.isActive)&&(0,i.jsxs)("button",{onClick:tW,disabled:e9,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-sm",style:e9?{animation:"spin 1s linear infinite"}:void 0,children:e9?"progress_activity":"download"}),e9?(0,C.Tl)("Fetching..."):(0,C.Tl)(H[f])]}),("cline"===f||"clinepass"===f)&&y.some(e=>!1!==e.isActive)&&(0,i.jsxs)("button",{onClick:tB,disabled:tt,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-sm",style:tt?{animation:"spin 1s linear infinite"}:void 0,children:tt?"progress_activity":"download"}),tt?(0,C.Tl)("Fetching..."):(0,C.Tl)("Import from /models")]}),eq.length>0&&(e=new Set([...Object.values(ec),...o.map(e=>e.fullModel)]),t=new Set(tg.map(e=>e.id)),0===(s=eq.filter(s=>!e.has(`${tS}/${s.id}`)&&!t.has(s.id))).length?null:(0,i.jsxs)("div",{className:"w-full mt-2",children:[(0,i.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested models:"}),(0,i.jsx)("div",{className:"flex flex-wrap gap-2",children:s.map(e=>(0,i.jsxs)("button",{onClick:async()=>{await tJ(e.id,"llm",tS)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:e.contextLength?`${e.name} \xb7 ${(e.contextLength/1e3).toFixed(0)}k ctx`:e.name,children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id.split("/").pop()]},e.id))})]})),n.length>0&&(0,i.jsxs)("div",{className:"w-full mt-2",children:[(0,i.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",n.length,"):"]}),(0,i.jsx)("div",{className:"flex flex-wrap gap-2",children:n.map(e=>(0,i.jsxs)("button",{onClick:()=>tP(e.id),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id]},e.id))})]})]})})()]}),t8,"kiro"===f?(0,i.jsx)(c.Mh,{isOpen:D,providerInfo:tc,onSuccess:tV,onClose:()=>R(!1)}):"cursor"===f?(0,i.jsx)(c.G9,{isOpen:D,onSuccess:tV,onClose:()=>R(!1)}):"zed"===f?(0,i.jsx)(c.TE,{isOpen:D,providerInfo:tc,onSuccess:tV,onClose:()=>R(!1)}):"gitlab"===f?(0,i.jsx)(c.vj,{isOpen:D,providerInfo:tc,onSuccess:tV,onClose:()=>R(!1)}):(0,i.jsx)(c.LF,{isOpen:D,provider:f,providerInfo:tc,onSuccess:tV,onClose:()=>R(!1)}),(0,i.jsx)(c.LH,{isOpen:z,onSuccess:tV,onClose:()=>M(!1)}),"iflow"===f&&(0,i.jsx)(c.vE,{isOpen:F,onSuccess:()=>{t_(),L(!1)},onClose:()=>L(!1)}),(0,i.jsx)(q,{isOpen:W,provider:f,providerName:tc.name,isCompatible:tj,isAnthropic:tv,authType:tc?.authType,authHint:tc?.authHint,website:tc?.website,proxyPools:O,error:Q,existingNames:y.map(e=>e.name).filter(Boolean),onSave:tQ,onBulkDone:t_,onClose:()=>{Z(""),V(!1)}}),(0,i.jsx)(c.wI,{isOpen:es,connection:eo,proxyPools:O,onSave:tZ,onClose:()=>ei(!1)}),tj&&(0,i.jsx)(U,{isOpen:ea,node:S,onSave:tz,onClose:()=>el(!1),isAnthropic:tv}),!tj&&(0,i.jsx)(K,{isOpen:ew,providerAlias:tS,providerDisplayAlias:tT,onSave:async(e,t,s)=>{await tJ(e,t?.stt?"stt":"llm",tS,t,s),ek(!1)},onClose:()=>ek(!1)}),"codex"===f&&(0,i.jsx)(J,{isOpen:X,onClose:()=>Y(!1),onSuccess:t_}),"grok-cli"===f&&(0,i.jsx)(B,{isOpen:ee,onClose:()=>et(!1),onSuccess:t_}),(0,i.jsx)(c.uo,{isOpen:eQ,onClose:()=>eZ(!1),onConfirm:()=>{(window.localStorage.setItem(tl,"true"),eZ(!1),tp)?tr():to()},title:"Risk Notice",message:tc?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,i.jsx)(c.uo,{isOpen:!!eH,onClose:()=>eV(null),onConfirm:eH?.onConfirm,title:eH?.title||"Confirm",message:eH?.message,variant:"danger"})]})}},82837:(e,t,s)=>{Promise.resolve().then(s.bind(s,80873))}},e=>{e.O(0,[763,5772,1321,705,5497,8441,3794,7358],()=>e(e.s=82837)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9089],{15615:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>u});var a=t(95155),s=t(12115),i=t(73321),l=t(98500),d=t.n(l),o=t(35497),n=t(90620);let c=Object.values(n.Q2).map(e=>({value:e.id,label:e.name})),p=Object.values(n.MA).map(e=>({value:e.id,label:e.name}));function u(){let e=(0,i.useRouter)(),[r,t]=(0,s.useState)(!1),[l,u]=(0,s.useState)({provider:"",authMethod:"api_key",apiKey:"",displayName:"",isActive:!0}),[h,m]=(0,s.useState)({}),x=(e,r)=>{u(t=>({...t,[e]:r})),h[e]&&m(r=>({...r,[e]:null}))},b=async r=>{let a;if(r.preventDefault(),a={},l.provider||(a.provider="Please select a provider"),"api_key"!==l.authMethod||l.apiKey||(a.apiKey="API Key is required"),m(a),0===Object.keys(a).length){t(!0);try{let r=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(r.ok)e.push("/dashboard/providers");else{let e=await r.json();m({submit:e.error||"Failed to create provider"})}}catch(e){m({submit:"An error occurred. Please try again."})}finally{t(!1)}}},v=n.Q2[l.provider];return(0,a.jsxs)("div",{className:"max-w-2xl mx-auto",children:[(0,a.jsxs)("div",{className:"mb-8",children:[(0,a.jsxs)(d(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,a.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:"Add New Provider"}),(0,a.jsx)("p",{className:"text-text-muted mt-2",children:"Configure a new AI provider to use with your applications."})]}),(0,a.jsx)(o.Zp,{children:(0,a.jsxs)("form",{onSubmit:b,className:"flex flex-col gap-6",children:[(0,a.jsx)(o.l6,{label:"Provider",options:c,value:l.provider,onChange:e=>x("provider",e.target.value),placeholder:"Select a provider",error:h.provider,required:!0}),v&&(0,a.jsxs)(o.Zp.Section,{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-bg border border-border",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:v.color},children:v.icon})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:v.name}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Selected provider"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("label",{className:"text-sm font-medium",children:["Authentication Method ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)("div",{className:"flex gap-3",children:p.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>x("authMethod",e.value),className:`flex-1 flex items-center justify-center gap-2 p-4 rounded-lg border transition-all ${l.authMethod===e.value?"border-primary bg-primary/5 text-primary":"border-border hover:border-primary/50"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined",children:"api_key"===e.value?"key":"lock"}),(0,a.jsx)("span",{className:"font-medium",children:e.label})]},e.value))})]}),"api_key"===l.authMethod&&(0,a.jsx)(o.pd,{label:"API Key",type:"password",placeholder:"Enter your API key",value:l.apiKey,onChange:e=>x("apiKey",e.target.value),error:h.apiKey,hint:"Your API key will be encrypted and stored securely.",required:!0}),"oauth2"===l.authMethod&&(0,a.jsxs)(o.Zp.Section,{children:[(0,a.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Connect your account using OAuth2 authentication."}),(0,a.jsx)(o.$n,{type:"button",variant:"secondary",icon:"link",children:"Connect with OAuth2"})]}),(0,a.jsx)(o.pd,{label:"Display Name",placeholder:"e.g., Production API, Dev Environment",value:l.displayName,onChange:e=>x("displayName",e.target.value),hint:"Optional. A friendly name to identify this configuration."}),(0,a.jsx)(o.lM,{checked:l.isActive,onChange:e=>x("isActive",e),label:"Active",description:"Enable this provider for use in your applications"}),h.submit&&(0,a.jsx)("div",{className:"p-4 rounded-lg bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-600 dark:text-red-400 text-sm",children:h.submit}),(0,a.jsxs)("div",{className:"flex gap-3 pt-4 border-t border-border",children:[(0,a.jsx)(d(),{href:"/dashboard/providers",className:"flex-1",children:(0,a.jsx)(o.$n,{type:"button",variant:"ghost",fullWidth:!0,children:"Cancel"})}),(0,a.jsx)(o.$n,{type:"submit",loading:r,fullWidth:!0,className:"flex-1",children:"Create Provider"})]})]})})]})}},85990:(e,r,t)=>{Promise.resolve().then(t.bind(t,15615))}},e=>{e.O(0,[2997,1321,705,5497,8441,3794,7358],()=>e(e.s=85990)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9089],{15615:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>u});var a=t(95155),s=t(12115),i=t(73321),l=t(98500),d=t.n(l),o=t(35497),n=t(90620);let c=Object.values(n.Q2).map(e=>({value:e.id,label:e.name})),p=Object.values(n.MA).map(e=>({value:e.id,label:e.name}));function u(){let e=(0,i.useRouter)(),[r,t]=(0,s.useState)(!1),[l,u]=(0,s.useState)({provider:"",authMethod:"api_key",apiKey:"",displayName:"",isActive:!0}),[h,m]=(0,s.useState)({}),x=(e,r)=>{u(t=>({...t,[e]:r})),h[e]&&m(r=>({...r,[e]:null}))},b=async r=>{let a;if(r.preventDefault(),a={},l.provider||(a.provider="Please select a provider"),"api_key"!==l.authMethod||l.apiKey||(a.apiKey="API Key is required"),m(a),0===Object.keys(a).length){t(!0);try{let r=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(r.ok)e.push("/dashboard/providers");else{let e=await r.json();m({submit:e.error||"Failed to create provider"})}}catch(e){m({submit:"An error occurred. Please try again."})}finally{t(!1)}}},v=n.Q2[l.provider];return(0,a.jsxs)("div",{className:"max-w-2xl mx-auto",children:[(0,a.jsxs)("div",{className:"mb-8",children:[(0,a.jsxs)(d(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,a.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:"Add New Provider"}),(0,a.jsx)("p",{className:"text-text-muted mt-2",children:"Configure a new AI provider to use with your applications."})]}),(0,a.jsx)(o.Zp,{children:(0,a.jsxs)("form",{onSubmit:b,className:"flex flex-col gap-6",children:[(0,a.jsx)(o.l6,{label:"Provider",options:c,value:l.provider,onChange:e=>x("provider",e.target.value),placeholder:"Select a provider",error:h.provider,required:!0}),v&&(0,a.jsxs)(o.Zp.Section,{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-bg border border-border",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:v.color},children:v.icon})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:v.name}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Selected provider"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("label",{className:"text-sm font-medium",children:["Authentication Method ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)("div",{className:"flex gap-3",children:p.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>x("authMethod",e.value),className:`flex-1 flex items-center justify-center gap-2 p-4 rounded-lg border transition-all ${l.authMethod===e.value?"border-primary bg-primary/5 text-primary":"border-border hover:border-primary/50"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined",children:"api_key"===e.value?"key":"lock"}),(0,a.jsx)("span",{className:"font-medium",children:e.label})]},e.value))})]}),"api_key"===l.authMethod&&(0,a.jsx)(o.pd,{label:"API Key",type:"password",placeholder:"Enter your API key",value:l.apiKey,onChange:e=>x("apiKey",e.target.value),error:h.apiKey,hint:"Your API key will be encrypted and stored securely.",required:!0}),"oauth2"===l.authMethod&&(0,a.jsxs)(o.Zp.Section,{children:[(0,a.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Connect your account using OAuth2 authentication."}),(0,a.jsx)(o.$n,{type:"button",variant:"secondary",icon:"link",children:"Connect with OAuth2"})]}),(0,a.jsx)(o.pd,{label:"Display Name",placeholder:"e.g., Production API, Dev Environment",value:l.displayName,onChange:e=>x("displayName",e.target.value),hint:"Optional. A friendly name to identify this configuration."}),(0,a.jsx)(o.lM,{checked:l.isActive,onChange:e=>x("isActive",e),label:"Active",description:"Enable this provider for use in your applications"}),h.submit&&(0,a.jsx)("div",{className:"p-4 rounded-lg bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-600 dark:text-red-400 text-sm",children:h.submit}),(0,a.jsxs)("div",{className:"flex gap-3 pt-4 border-t border-border",children:[(0,a.jsx)(d(),{href:"/dashboard/providers",className:"flex-1",children:(0,a.jsx)(o.$n,{type:"button",variant:"ghost",fullWidth:!0,children:"Cancel"})}),(0,a.jsx)(o.$n,{type:"submit",loading:r,fullWidth:!0,className:"flex-1",children:"Create Provider"})]})]})})]})}},85990:(e,r,t)=>{Promise.resolve().then(t.bind(t,15615))}},e=>{e.O(0,[763,1321,705,5497,8441,3794,7358],()=>e(e.s=85990)),_N_E=e.O()}]);