@techysy/10router 1.3.5 → 1.3.6

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 (778) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +10 -9
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/routes-manifest.json +6 -0
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  54. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  56. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  57. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  58. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  59. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  60. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  61. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  62. package/app/.next-cli-build/server/app/_not-found.html +2 -2
  63. package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
  64. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
  65. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
  66. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  67. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  68. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  69. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  70. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  71. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  72. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  73. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  74. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  75. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  76. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  77. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  78. package/app/.next-cli-build/server/app/api/auth/verify-password/route.js +1 -1
  79. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
  80. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  81. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  82. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js +2 -2
  83. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  84. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  85. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +1 -1
  86. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  87. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  88. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  89. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  90. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  91. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  92. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  93. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  94. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
  95. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  96. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +1 -1
  97. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  99. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/gateway-probe/route.js +1 -0
  103. package/app/.next-cli-build/server/app/api/gateway-probe/route.js.nft.json +1 -0
  104. package/app/.next-cli-build/server/app/api/gateway-probe/route_client-reference-manifest.js +1 -0
  105. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/keys/rotate/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  118. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  124. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/network/egress-region/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  141. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  143. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  147. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  149. package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js +1 -1
  153. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  155. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js +1 -1
  157. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
  158. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  159. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  165. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  167. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  169. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  176. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  177. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  179. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  180. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  181. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  182. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  183. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  184. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  185. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  186. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  187. package/app/.next-cli-build/server/app/api/security/status/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  197. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/usage/dashboard/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/usage/quotas/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/version/shell-update/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  249. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  250. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  251. package/app/.next-cli-build/server/app/callback.html +2 -2
  252. package/app/.next-cli-build/server/app/callback.rsc +6 -6
  253. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
  254. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  255. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
  256. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +2 -2
  257. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
  258. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
  259. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
  260. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  261. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +2 -2
  262. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
  263. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
  264. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
  265. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  266. package/app/.next-cli-build/server/app/dashboard/combos.html +2 -2
  267. package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
  268. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
  269. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
  270. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  271. package/app/.next-cli-build/server/app/dashboard/endpoint.html +2 -2
  272. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
  273. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
  274. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
  275. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  276. package/app/.next-cli-build/server/app/dashboard/experimental.html +2 -2
  277. package/app/.next-cli-build/server/app/dashboard/experimental.rsc +8 -8
  278. package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +8 -8
  279. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +8 -8
  280. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +2 -2
  281. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +2 -2
  282. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
  283. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +8 -8
  284. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
  285. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  286. package/app/.next-cli-build/server/app/dashboard/mitm.html +2 -2
  287. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
  288. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +8 -8
  289. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
  290. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  291. package/app/.next-cli-build/server/app/dashboard/profile.html +2 -2
  292. package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
  293. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
  294. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
  295. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  296. package/app/.next-cli-build/server/app/dashboard/providers/new.html +2 -2
  297. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
  298. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
  299. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
  300. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  301. package/app/.next-cli-build/server/app/dashboard/providers.html +2 -2
  302. package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
  303. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
  304. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
  305. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  306. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +2 -2
  307. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
  308. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
  309. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
  310. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  311. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +2 -2
  312. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +8 -8
  313. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +8 -8
  314. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +8 -8
  315. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  316. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  317. package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
  318. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
  319. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
  320. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  321. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  322. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  323. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +2 -2
  324. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
  325. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  326. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  327. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
  328. package/app/.next-cli-build/server/app/dashboard/skills.html +2 -2
  329. package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
  330. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
  331. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
  332. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  333. package/app/.next-cli-build/server/app/dashboard/token-saver.html +2 -2
  334. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +8 -8
  335. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +8 -8
  336. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +8 -8
  337. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  338. package/app/.next-cli-build/server/app/dashboard/translator.html +2 -2
  339. package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
  340. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +8 -8
  341. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
  342. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  343. package/app/.next-cli-build/server/app/dashboard/usage.html +2 -2
  344. package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
  345. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
  346. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
  347. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  348. package/app/.next-cli-build/server/app/dashboard.html +2 -2
  349. package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
  350. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
  351. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
  352. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  353. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  354. package/app/.next-cli-build/server/app/index.html +1 -1
  355. package/app/.next-cli-build/server/app/index.rsc +6 -6
  356. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
  357. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
  358. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  359. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  360. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  361. package/app/.next-cli-build/server/app/landing.html +2 -2
  362. package/app/.next-cli-build/server/app/landing.rsc +6 -6
  363. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
  364. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  365. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +6 -6
  366. package/app/.next-cli-build/server/app/login/page.js +1 -1
  367. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  368. package/app/.next-cli-build/server/app/login.html +2 -2
  369. package/app/.next-cli-build/server/app/login.rsc +7 -7
  370. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
  371. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  372. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
  373. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  374. package/app/.next-cli-build/server/app/page.js +1 -1
  375. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  376. package/app/.next-cli-build/server/app-paths-manifest.json +10 -9
  377. package/app/.next-cli-build/server/chunks/3433.js +12 -12
  378. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  379. package/app/.next-cli-build/server/chunks/5210.js +9 -9
  380. package/app/.next-cli-build/server/chunks/6492.js +1 -1
  381. package/app/.next-cli-build/server/chunks/6960.js +1 -1
  382. package/app/.next-cli-build/server/chunks/7274.js +1 -1
  383. package/app/.next-cli-build/server/chunks/8172.js +1 -1
  384. package/app/.next-cli-build/server/chunks/8410.js +1 -1
  385. package/app/.next-cli-build/server/chunks/8595.js +1 -1
  386. package/app/.next-cli-build/server/chunks/8749.js +3 -3
  387. package/app/.next-cli-build/server/chunks/9046.js +1 -1
  388. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  389. package/app/.next-cli-build/server/pages/404.html +2 -2
  390. package/app/.next-cli-build/server/pages/500.html +1 -1
  391. package/app/.next-cli-build/static/chunks/{1321-daa1cffb0e36b547.js → 1321-7d951e8069135f2f.js} +1 -1
  392. package/app/.next-cli-build/static/chunks/5497-dce0ac54d3e8f165.js +7 -0
  393. package/app/.next-cli-build/static/chunks/app/_global-error/page-7a2b8ef7454a1a22.js +1 -0
  394. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-7a2b8ef7454a1a22.js +1 -0
  395. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-7a2b8ef7454a1a22.js +1 -0
  396. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-7a2b8ef7454a1a22.js +1 -0
  397. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-7a2b8ef7454a1a22.js +1 -0
  398. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-7a2b8ef7454a1a22.js +1 -0
  399. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-7a2b8ef7454a1a22.js +1 -0
  400. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-7a2b8ef7454a1a22.js +1 -0
  401. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-7a2b8ef7454a1a22.js +1 -0
  402. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-7a2b8ef7454a1a22.js +1 -0
  403. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-7a2b8ef7454a1a22.js +1 -0
  404. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-7a2b8ef7454a1a22.js +1 -0
  405. package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-7a2b8ef7454a1a22.js +1 -0
  406. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-7a2b8ef7454a1a22.js +1 -0
  407. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-7a2b8ef7454a1a22.js +1 -0
  408. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-7a2b8ef7454a1a22.js +1 -0
  409. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-profiles/route-7a2b8ef7454a1a22.js +1 -0
  410. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-7a2b8ef7454a1a22.js +1 -0
  411. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-7a2b8ef7454a1a22.js +1 -0
  412. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-7a2b8ef7454a1a22.js +1 -0
  413. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-7a2b8ef7454a1a22.js +1 -0
  414. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-7a2b8ef7454a1a22.js +1 -0
  415. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-7a2b8ef7454a1a22.js +1 -0
  416. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-7a2b8ef7454a1a22.js +1 -0
  417. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-7a2b8ef7454a1a22.js +1 -0
  418. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-7a2b8ef7454a1a22.js +1 -0
  419. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-7a2b8ef7454a1a22.js +1 -0
  420. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-7a2b8ef7454a1a22.js +1 -0
  421. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-7a2b8ef7454a1a22.js +1 -0
  422. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-7a2b8ef7454a1a22.js +1 -0
  423. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-7a2b8ef7454a1a22.js +1 -0
  424. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-7a2b8ef7454a1a22.js +1 -0
  425. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-7a2b8ef7454a1a22.js +1 -0
  426. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-7a2b8ef7454a1a22.js +1 -0
  427. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-7a2b8ef7454a1a22.js +1 -0
  428. package/app/.next-cli-build/static/chunks/app/api/combos/route-7a2b8ef7454a1a22.js +1 -0
  429. package/app/.next-cli-build/static/chunks/app/api/gateway-probe/route-7a2b8ef7454a1a22.js +1 -0
  430. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-7a2b8ef7454a1a22.js +1 -0
  431. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-7a2b8ef7454a1a22.js +1 -0
  432. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-7a2b8ef7454a1a22.js +1 -0
  433. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-7a2b8ef7454a1a22.js +1 -0
  434. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-7a2b8ef7454a1a22.js +1 -0
  435. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-7a2b8ef7454a1a22.js +1 -0
  436. package/app/.next-cli-build/static/chunks/app/api/health/route-7a2b8ef7454a1a22.js +1 -0
  437. package/app/.next-cli-build/static/chunks/app/api/init/route-7a2b8ef7454a1a22.js +1 -0
  438. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-7a2b8ef7454a1a22.js +1 -0
  439. package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-7a2b8ef7454a1a22.js +1 -0
  440. package/app/.next-cli-build/static/chunks/app/api/keys/route-7a2b8ef7454a1a22.js +1 -0
  441. package/app/.next-cli-build/static/chunks/app/api/locale/route-7a2b8ef7454a1a22.js +1 -0
  442. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-7a2b8ef7454a1a22.js +1 -0
  443. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-7a2b8ef7454a1a22.js +1 -0
  444. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-7a2b8ef7454a1a22.js +1 -0
  445. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-7a2b8ef7454a1a22.js +1 -0
  446. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-7a2b8ef7454a1a22.js +1 -0
  447. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-7a2b8ef7454a1a22.js +1 -0
  448. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-7a2b8ef7454a1a22.js +1 -0
  449. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-7a2b8ef7454a1a22.js +1 -0
  450. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-7a2b8ef7454a1a22.js +1 -0
  451. package/app/.next-cli-build/static/chunks/app/api/models/caps/route-7a2b8ef7454a1a22.js +1 -0
  452. package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-7a2b8ef7454a1a22.js +1 -0
  453. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-7a2b8ef7454a1a22.js +1 -0
  454. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-7a2b8ef7454a1a22.js +1 -0
  455. package/app/.next-cli-build/static/chunks/app/api/models/route-7a2b8ef7454a1a22.js +1 -0
  456. package/app/.next-cli-build/static/chunks/app/api/models/test/route-7a2b8ef7454a1a22.js +1 -0
  457. package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-7a2b8ef7454a1a22.js +1 -0
  458. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-7a2b8ef7454a1a22.js +1 -0
  459. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-7a2b8ef7454a1a22.js +1 -0
  460. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-7a2b8ef7454a1a22.js +1 -0
  461. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-7a2b8ef7454a1a22.js +1 -0
  462. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-7a2b8ef7454a1a22.js +1 -0
  463. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-7a2b8ef7454a1a22.js +1 -0
  464. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-7a2b8ef7454a1a22.js +1 -0
  465. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-7a2b8ef7454a1a22.js +1 -0
  466. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-7a2b8ef7454a1a22.js +1 -0
  467. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-7a2b8ef7454a1a22.js +1 -0
  468. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-7a2b8ef7454a1a22.js +1 -0
  469. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-7a2b8ef7454a1a22.js +1 -0
  470. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-7a2b8ef7454a1a22.js +1 -0
  471. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-7a2b8ef7454a1a22.js +1 -0
  472. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-7a2b8ef7454a1a22.js +1 -0
  473. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-7a2b8ef7454a1a22.js +1 -0
  474. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-7a2b8ef7454a1a22.js +1 -0
  475. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-7a2b8ef7454a1a22.js +1 -0
  476. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-7a2b8ef7454a1a22.js +1 -0
  477. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-7a2b8ef7454a1a22.js +1 -0
  478. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-7a2b8ef7454a1a22.js +1 -0
  479. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-7a2b8ef7454a1a22.js +1 -0
  480. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-kill/route-7a2b8ef7454a1a22.js +1 -0
  481. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-status/route-7a2b8ef7454a1a22.js +1 -0
  482. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-7a2b8ef7454a1a22.js +1 -0
  483. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-7a2b8ef7454a1a22.js +1 -0
  484. package/app/.next-cli-build/static/chunks/app/api/pricing/route-7a2b8ef7454a1a22.js +1 -0
  485. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-7a2b8ef7454a1a22.js +1 -0
  486. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-7a2b8ef7454a1a22.js +1 -0
  487. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-7a2b8ef7454a1a22.js +1 -0
  488. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-7a2b8ef7454a1a22.js +1 -0
  489. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-7a2b8ef7454a1a22.js +1 -0
  490. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-7a2b8ef7454a1a22.js +1 -0
  491. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-7a2b8ef7454a1a22.js +1 -0
  492. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-7a2b8ef7454a1a22.js +1 -0
  493. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-7a2b8ef7454a1a22.js +1 -0
  494. package/app/.next-cli-build/static/chunks/app/api/providers/route-7a2b8ef7454a1a22.js +1 -0
  495. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-7a2b8ef7454a1a22.js +1 -0
  496. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-7a2b8ef7454a1a22.js +1 -0
  497. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-7a2b8ef7454a1a22.js +1 -0
  498. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-7a2b8ef7454a1a22.js +1 -0
  499. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-7a2b8ef7454a1a22.js +1 -0
  500. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-7a2b8ef7454a1a22.js +1 -0
  501. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-7a2b8ef7454a1a22.js +1 -0
  502. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-7a2b8ef7454a1a22.js +1 -0
  503. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-7a2b8ef7454a1a22.js +1 -0
  504. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-7a2b8ef7454a1a22.js +1 -0
  505. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-7a2b8ef7454a1a22.js +1 -0
  506. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-7a2b8ef7454a1a22.js +1 -0
  507. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-7a2b8ef7454a1a22.js +1 -0
  508. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-7a2b8ef7454a1a22.js +1 -0
  509. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-7a2b8ef7454a1a22.js +1 -0
  510. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-7a2b8ef7454a1a22.js +1 -0
  511. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-7a2b8ef7454a1a22.js +1 -0
  512. package/app/.next-cli-build/static/chunks/app/api/security/status/route-7a2b8ef7454a1a22.js +1 -0
  513. package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-7a2b8ef7454a1a22.js +1 -0
  514. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-7a2b8ef7454a1a22.js +1 -0
  515. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-7a2b8ef7454a1a22.js +1 -0
  516. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-7a2b8ef7454a1a22.js +1 -0
  517. package/app/.next-cli-build/static/chunks/app/api/settings/route-7a2b8ef7454a1a22.js +1 -0
  518. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-7a2b8ef7454a1a22.js +1 -0
  519. package/app/.next-cli-build/static/chunks/app/api/tags/route-7a2b8ef7454a1a22.js +1 -0
  520. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-7a2b8ef7454a1a22.js +1 -0
  521. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-7a2b8ef7454a1a22.js +1 -0
  522. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-7a2b8ef7454a1a22.js +1 -0
  523. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-7a2b8ef7454a1a22.js +1 -0
  524. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-7a2b8ef7454a1a22.js +1 -0
  525. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-7a2b8ef7454a1a22.js +1 -0
  526. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-7a2b8ef7454a1a22.js +1 -0
  527. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-7a2b8ef7454a1a22.js +1 -0
  528. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-7a2b8ef7454a1a22.js +1 -0
  529. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-7a2b8ef7454a1a22.js +1 -0
  530. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-7a2b8ef7454a1a22.js +1 -0
  531. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-7a2b8ef7454a1a22.js +1 -0
  532. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-7a2b8ef7454a1a22.js +1 -0
  533. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-7a2b8ef7454a1a22.js +1 -0
  534. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-7a2b8ef7454a1a22.js +1 -0
  535. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-7a2b8ef7454a1a22.js +1 -0
  536. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-7a2b8ef7454a1a22.js +1 -0
  537. package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-7a2b8ef7454a1a22.js +1 -0
  538. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-7a2b8ef7454a1a22.js +1 -0
  539. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-7a2b8ef7454a1a22.js +1 -0
  540. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-7a2b8ef7454a1a22.js +1 -0
  541. package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-7a2b8ef7454a1a22.js +1 -0
  542. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-7a2b8ef7454a1a22.js +1 -0
  543. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-7a2b8ef7454a1a22.js +1 -0
  544. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-7a2b8ef7454a1a22.js +1 -0
  545. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-7a2b8ef7454a1a22.js +1 -0
  546. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-7a2b8ef7454a1a22.js +1 -0
  547. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-7a2b8ef7454a1a22.js +1 -0
  548. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-7a2b8ef7454a1a22.js +1 -0
  549. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-7a2b8ef7454a1a22.js +1 -0
  550. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-7a2b8ef7454a1a22.js +1 -0
  551. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-7a2b8ef7454a1a22.js +1 -0
  552. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-7a2b8ef7454a1a22.js +1 -0
  553. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-7a2b8ef7454a1a22.js +1 -0
  554. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-7a2b8ef7454a1a22.js +1 -0
  555. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-7a2b8ef7454a1a22.js +1 -0
  556. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-7a2b8ef7454a1a22.js +1 -0
  557. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-7a2b8ef7454a1a22.js +1 -0
  558. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-7a2b8ef7454a1a22.js +1 -0
  559. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-7a2b8ef7454a1a22.js +1 -0
  560. package/app/.next-cli-build/static/chunks/app/api/v1/route-7a2b8ef7454a1a22.js +1 -0
  561. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-7a2b8ef7454a1a22.js +1 -0
  562. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-7a2b8ef7454a1a22.js +1 -0
  563. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-7a2b8ef7454a1a22.js +1 -0
  564. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-7a2b8ef7454a1a22.js +1 -0
  565. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-7a2b8ef7454a1a22.js +1 -0
  566. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-7a2b8ef7454a1a22.js +1 -0
  567. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-7a2b8ef7454a1a22.js +1 -0
  568. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-7a2b8ef7454a1a22.js +1 -0
  569. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-7a2b8ef7454a1a22.js +1 -0
  570. package/app/.next-cli-build/static/chunks/app/api/version/route-7a2b8ef7454a1a22.js +1 -0
  571. package/app/.next-cli-build/static/chunks/app/api/version/shell-update/route-7a2b8ef7454a1a22.js +1 -0
  572. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-7a2b8ef7454a1a22.js +1 -0
  573. package/app/.next-cli-build/static/chunks/app/api/version/update/route-7a2b8ef7454a1a22.js +1 -0
  574. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-7a2b8ef7454a1a22.js +1 -0
  575. package/app/.next-cli-build/static/chunks/app/page-7a2b8ef7454a1a22.js +1 -0
  576. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-7a2b8ef7454a1a22.js +1 -0
  577. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-7a2b8ef7454a1a22.js +1 -0
  578. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-7a2b8ef7454a1a22.js +1 -0
  579. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-7a2b8ef7454a1a22.js +1 -0
  580. package/app/.next-cli-build/static/css/b80ae6e58b63fd53.css +1 -0
  581. package/app/.next-cli-build/static/eqWYkzNeaSBj4mkYsjYbh/_buildManifest.js +1 -0
  582. package/app/package.json +1 -1
  583. package/app/public/i18n/changelog/en.md +10 -0
  584. package/app/public/i18n/changelog/zh-CN.md +10 -0
  585. package/app/public/i18n/changelog/zh-TW.md +10 -0
  586. package/app/public/i18n/literals/zh-CN.json +6 -0
  587. package/app/public/i18n/literals/zh-TW.json +6 -0
  588. package/package.json +1 -1
  589. package/app/.next-cli-build/static/chunks/5497-1b7804fcf8283e96.js +0 -7
  590. package/app/.next-cli-build/static/chunks/app/_global-error/page-1058a44b968ee535.js +0 -1
  591. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-1058a44b968ee535.js +0 -1
  592. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-1058a44b968ee535.js +0 -1
  593. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-1058a44b968ee535.js +0 -1
  594. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-1058a44b968ee535.js +0 -1
  595. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-1058a44b968ee535.js +0 -1
  596. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-1058a44b968ee535.js +0 -1
  597. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-1058a44b968ee535.js +0 -1
  598. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-1058a44b968ee535.js +0 -1
  599. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-1058a44b968ee535.js +0 -1
  600. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-1058a44b968ee535.js +0 -1
  601. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-1058a44b968ee535.js +0 -1
  602. package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-1058a44b968ee535.js +0 -1
  603. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-1058a44b968ee535.js +0 -1
  604. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1058a44b968ee535.js +0 -1
  605. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-1058a44b968ee535.js +0 -1
  606. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-profiles/route-1058a44b968ee535.js +0 -1
  607. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-1058a44b968ee535.js +0 -1
  608. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-1058a44b968ee535.js +0 -1
  609. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-1058a44b968ee535.js +0 -1
  610. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-1058a44b968ee535.js +0 -1
  611. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-1058a44b968ee535.js +0 -1
  612. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1058a44b968ee535.js +0 -1
  613. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1058a44b968ee535.js +0 -1
  614. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-1058a44b968ee535.js +0 -1
  615. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-1058a44b968ee535.js +0 -1
  616. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-1058a44b968ee535.js +0 -1
  617. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-1058a44b968ee535.js +0 -1
  618. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-1058a44b968ee535.js +0 -1
  619. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-1058a44b968ee535.js +0 -1
  620. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-1058a44b968ee535.js +0 -1
  621. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-1058a44b968ee535.js +0 -1
  622. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-1058a44b968ee535.js +0 -1
  623. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-1058a44b968ee535.js +0 -1
  624. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-1058a44b968ee535.js +0 -1
  625. package/app/.next-cli-build/static/chunks/app/api/combos/route-1058a44b968ee535.js +0 -1
  626. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-1058a44b968ee535.js +0 -1
  627. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-1058a44b968ee535.js +0 -1
  628. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-1058a44b968ee535.js +0 -1
  629. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-1058a44b968ee535.js +0 -1
  630. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-1058a44b968ee535.js +0 -1
  631. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-1058a44b968ee535.js +0 -1
  632. package/app/.next-cli-build/static/chunks/app/api/health/route-1058a44b968ee535.js +0 -1
  633. package/app/.next-cli-build/static/chunks/app/api/init/route-1058a44b968ee535.js +0 -1
  634. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-1058a44b968ee535.js +0 -1
  635. package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-1058a44b968ee535.js +0 -1
  636. package/app/.next-cli-build/static/chunks/app/api/keys/route-1058a44b968ee535.js +0 -1
  637. package/app/.next-cli-build/static/chunks/app/api/locale/route-1058a44b968ee535.js +0 -1
  638. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-1058a44b968ee535.js +0 -1
  639. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-1058a44b968ee535.js +0 -1
  640. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1058a44b968ee535.js +0 -1
  641. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1058a44b968ee535.js +0 -1
  642. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-1058a44b968ee535.js +0 -1
  643. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-1058a44b968ee535.js +0 -1
  644. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-1058a44b968ee535.js +0 -1
  645. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-1058a44b968ee535.js +0 -1
  646. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-1058a44b968ee535.js +0 -1
  647. package/app/.next-cli-build/static/chunks/app/api/models/caps/route-1058a44b968ee535.js +0 -1
  648. package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-1058a44b968ee535.js +0 -1
  649. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-1058a44b968ee535.js +0 -1
  650. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-1058a44b968ee535.js +0 -1
  651. package/app/.next-cli-build/static/chunks/app/api/models/route-1058a44b968ee535.js +0 -1
  652. package/app/.next-cli-build/static/chunks/app/api/models/test/route-1058a44b968ee535.js +0 -1
  653. package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-1058a44b968ee535.js +0 -1
  654. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-1058a44b968ee535.js +0 -1
  655. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-1058a44b968ee535.js +0 -1
  656. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-1058a44b968ee535.js +0 -1
  657. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-1058a44b968ee535.js +0 -1
  658. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-1058a44b968ee535.js +0 -1
  659. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-1058a44b968ee535.js +0 -1
  660. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-1058a44b968ee535.js +0 -1
  661. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-1058a44b968ee535.js +0 -1
  662. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-1058a44b968ee535.js +0 -1
  663. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-1058a44b968ee535.js +0 -1
  664. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-1058a44b968ee535.js +0 -1
  665. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-1058a44b968ee535.js +0 -1
  666. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-1058a44b968ee535.js +0 -1
  667. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-1058a44b968ee535.js +0 -1
  668. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-1058a44b968ee535.js +0 -1
  669. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-1058a44b968ee535.js +0 -1
  670. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-1058a44b968ee535.js +0 -1
  671. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-1058a44b968ee535.js +0 -1
  672. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-1058a44b968ee535.js +0 -1
  673. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-1058a44b968ee535.js +0 -1
  674. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-1058a44b968ee535.js +0 -1
  675. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-1058a44b968ee535.js +0 -1
  676. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-kill/route-1058a44b968ee535.js +0 -1
  677. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-status/route-1058a44b968ee535.js +0 -1
  678. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-1058a44b968ee535.js +0 -1
  679. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-1058a44b968ee535.js +0 -1
  680. package/app/.next-cli-build/static/chunks/app/api/pricing/route-1058a44b968ee535.js +0 -1
  681. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-1058a44b968ee535.js +0 -1
  682. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-1058a44b968ee535.js +0 -1
  683. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-1058a44b968ee535.js +0 -1
  684. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-1058a44b968ee535.js +0 -1
  685. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-1058a44b968ee535.js +0 -1
  686. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-1058a44b968ee535.js +0 -1
  687. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-1058a44b968ee535.js +0 -1
  688. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-1058a44b968ee535.js +0 -1
  689. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-1058a44b968ee535.js +0 -1
  690. package/app/.next-cli-build/static/chunks/app/api/providers/route-1058a44b968ee535.js +0 -1
  691. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-1058a44b968ee535.js +0 -1
  692. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-1058a44b968ee535.js +0 -1
  693. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-1058a44b968ee535.js +0 -1
  694. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-1058a44b968ee535.js +0 -1
  695. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-1058a44b968ee535.js +0 -1
  696. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-1058a44b968ee535.js +0 -1
  697. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-1058a44b968ee535.js +0 -1
  698. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-1058a44b968ee535.js +0 -1
  699. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-1058a44b968ee535.js +0 -1
  700. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-1058a44b968ee535.js +0 -1
  701. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-1058a44b968ee535.js +0 -1
  702. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-1058a44b968ee535.js +0 -1
  703. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-1058a44b968ee535.js +0 -1
  704. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-1058a44b968ee535.js +0 -1
  705. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-1058a44b968ee535.js +0 -1
  706. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-1058a44b968ee535.js +0 -1
  707. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-1058a44b968ee535.js +0 -1
  708. package/app/.next-cli-build/static/chunks/app/api/security/status/route-1058a44b968ee535.js +0 -1
  709. package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-1058a44b968ee535.js +0 -1
  710. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-1058a44b968ee535.js +0 -1
  711. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-1058a44b968ee535.js +0 -1
  712. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-1058a44b968ee535.js +0 -1
  713. package/app/.next-cli-build/static/chunks/app/api/settings/route-1058a44b968ee535.js +0 -1
  714. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-1058a44b968ee535.js +0 -1
  715. package/app/.next-cli-build/static/chunks/app/api/tags/route-1058a44b968ee535.js +0 -1
  716. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-1058a44b968ee535.js +0 -1
  717. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-1058a44b968ee535.js +0 -1
  718. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-1058a44b968ee535.js +0 -1
  719. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-1058a44b968ee535.js +0 -1
  720. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-1058a44b968ee535.js +0 -1
  721. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-1058a44b968ee535.js +0 -1
  722. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-1058a44b968ee535.js +0 -1
  723. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-1058a44b968ee535.js +0 -1
  724. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-1058a44b968ee535.js +0 -1
  725. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-1058a44b968ee535.js +0 -1
  726. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-1058a44b968ee535.js +0 -1
  727. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-1058a44b968ee535.js +0 -1
  728. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-1058a44b968ee535.js +0 -1
  729. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-1058a44b968ee535.js +0 -1
  730. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-1058a44b968ee535.js +0 -1
  731. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-1058a44b968ee535.js +0 -1
  732. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-1058a44b968ee535.js +0 -1
  733. package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-1058a44b968ee535.js +0 -1
  734. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-1058a44b968ee535.js +0 -1
  735. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-1058a44b968ee535.js +0 -1
  736. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-1058a44b968ee535.js +0 -1
  737. package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-1058a44b968ee535.js +0 -1
  738. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-1058a44b968ee535.js +0 -1
  739. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-1058a44b968ee535.js +0 -1
  740. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-1058a44b968ee535.js +0 -1
  741. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-1058a44b968ee535.js +0 -1
  742. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-1058a44b968ee535.js +0 -1
  743. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-1058a44b968ee535.js +0 -1
  744. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-1058a44b968ee535.js +0 -1
  745. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-1058a44b968ee535.js +0 -1
  746. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-1058a44b968ee535.js +0 -1
  747. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-1058a44b968ee535.js +0 -1
  748. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-1058a44b968ee535.js +0 -1
  749. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-1058a44b968ee535.js +0 -1
  750. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-1058a44b968ee535.js +0 -1
  751. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-1058a44b968ee535.js +0 -1
  752. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-1058a44b968ee535.js +0 -1
  753. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-1058a44b968ee535.js +0 -1
  754. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-1058a44b968ee535.js +0 -1
  755. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-1058a44b968ee535.js +0 -1
  756. package/app/.next-cli-build/static/chunks/app/api/v1/route-1058a44b968ee535.js +0 -1
  757. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-1058a44b968ee535.js +0 -1
  758. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-1058a44b968ee535.js +0 -1
  759. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-1058a44b968ee535.js +0 -1
  760. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-1058a44b968ee535.js +0 -1
  761. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-1058a44b968ee535.js +0 -1
  762. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-1058a44b968ee535.js +0 -1
  763. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-1058a44b968ee535.js +0 -1
  764. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-1058a44b968ee535.js +0 -1
  765. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-1058a44b968ee535.js +0 -1
  766. package/app/.next-cli-build/static/chunks/app/api/version/route-1058a44b968ee535.js +0 -1
  767. package/app/.next-cli-build/static/chunks/app/api/version/shell-update/route-1058a44b968ee535.js +0 -1
  768. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-1058a44b968ee535.js +0 -1
  769. package/app/.next-cli-build/static/chunks/app/api/version/update/route-1058a44b968ee535.js +0 -1
  770. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-1058a44b968ee535.js +0 -1
  771. package/app/.next-cli-build/static/chunks/app/page-1058a44b968ee535.js +0 -1
  772. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-1058a44b968ee535.js +0 -1
  773. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-1058a44b968ee535.js +0 -1
  774. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-1058a44b968ee535.js +0 -1
  775. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-1058a44b968ee535.js +0 -1
  776. package/app/.next-cli-build/static/css/29b44146dde595c6.css +0 -1
  777. package/app/.next-cli-build/static/nGfjkKzxmtvk6d_Zhtya7/_buildManifest.js +0 -1
  778. /package/app/.next-cli-build/static/{nGfjkKzxmtvk6d_Zhtya7 → eqWYkzNeaSBj4mkYsjYbh}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (()=>{var a={};a.id=552,a.ids=[552,1998,4755,6457,8838],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},15798:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>k,PUT:()=>l});var d=c(23211),e=c(71998),f=c(16655),g=c(66489),h=c(30869),i=c(40615),j=c(66306);async function k(){try{let a=await (0,e.OM)(),b=await (0,f.vF)(),c={};try{let a=await (0,g.SZ)();a&&"object"==typeof a&&(c=a)}catch(a){console.log("Could not fetch model caps overrides:",a?.message)}let k=h.eh.filter(a=>!(b[(0,i.wG)(a.provider)||a.provider]||b[a.provider]||[]).includes(a.model)).map(b=>{let d=`${b.provider}/${b.model}`,e=(0,i.wG)(b.provider)||b.provider,f=`${e}/${b.model}`,g=(0,j.nl)(b.provider,b.model),h={vision:g.vision,search:g.search,reasoning:g.reasoning,contextWindow:g.contextWindow,maxOutput:g.maxOutput},k=c[b.provider]?.[b.model]||c[e]?.[b.model];return k?.contextWindow&&(h.contextWindow=k.contextWindow),k?.maxOutput&&(h.maxOutput=k.maxOutput),{...b,fullModel:d,routedModel:f,alias:a[d]||b.model,caps:h}});return d.NextResponse.json({models:k})}catch(a){return console.log("Error fetching models:",a),d.NextResponse.json({error:"Failed to fetch models"},{status:500})}}async function l(a){try{let{model:b,alias:c}=await a.json();if(!b||!c)return d.NextResponse.json({error:"Model and alias required"},{status:400});let f=await (0,e.OM)();if(Object.entries(f).find(([a,d])=>d===c&&a!==b))return d.NextResponse.json({error:"Alias already in use"},{status:400});return await (0,e.o5)(b,c),d.NextResponse.json({success:!0,model:b,alias:c})}catch(a){return console.log("Error updating alias:",a),d.NextResponse.json({error:"Failed to update alias"},{status:500})}}},16655:(a,b,c)=>{"use strict";c.d(b,{oF:()=>d.oF,tm:()=>d.tm,vF:()=>d.vF});var d=c(27274)},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},50122:(a,b,c)=>{"use strict";c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66489:(a,b,c)=>{"use strict";c.d(b,{D3:()=>d.D3,SZ:()=>d.SZ,dW:()=>d.dW});var d=c(27274)},71998:(a,b,c)=>{"use strict";c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,h1:()=>d.h1,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{"use strict";a.exports=require("node:fs")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},80099:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87534:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/route",pathname:"/api/models",filename:"route",bundlePath:"app/api/models/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"F:\\Files\\GitHub Files\\10router\\src\\app\\api\\models\\route.js",nextConfigOutput:"standalone",userland:()=>c(15798),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},87550:a=>{"use strict";a.exports=require("better-sqlite3")},89718:(a,b,c)=>{"use strict";c.d(b,{Bf:()=>d.Bf,CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Um:()=>d.Um,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,getSettings:()=>d.mt,h1:()=>d.h1,hj:()=>d.hj,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,updateSettings:()=>d.Xx,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(27274)},94735:a=>{"use strict";a.exports=require("events")},94755:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}},96487:()=>{},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,682,6070,1329,5781,7274,8920,6306],()=>b(b.s=87534));module.exports=c})();
1
+ (()=>{var a={};a.id=552,a.ids=[552,1998,4755,6457,8838],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},15798:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>k,PUT:()=>l});var d=c(23211),e=c(71998),f=c(16655),g=c(66489),h=c(30869),i=c(40615),j=c(66306);async function k(){try{let a=await (0,e.OM)(),b=await (0,f.vF)(),c={};try{let a=await (0,g.SZ)();a&&"object"==typeof a&&(c=a)}catch(a){console.log("Could not fetch model caps overrides:",a?.message)}let k=h.eh.filter(a=>!(b[(0,i.wG)(a.provider)||a.provider]||b[a.provider]||[]).includes(a.model)).map(b=>{let d=`${b.provider}/${b.model}`,e=(0,i.wG)(b.provider)||b.provider,f=`${e}/${b.model}`,g=(0,j.nl)(b.provider,b.model),h={vision:g.vision,search:g.search,reasoning:g.reasoning,contextWindow:g.contextWindow,maxOutput:g.maxOutput},k=c[b.provider]?.[b.model]||c[e]?.[b.model];return k?.contextWindow&&(h.contextWindow=k.contextWindow),k?.maxOutput&&(h.maxOutput=k.maxOutput),{...b,fullModel:d,routedModel:f,alias:a[d]||b.model,caps:h}});return d.NextResponse.json({models:k})}catch(a){return console.log("Error fetching models:",a),d.NextResponse.json({error:"Failed to fetch models"},{status:500})}}async function l(a){try{let{model:b,alias:c}=await a.json();if(!b||!c)return d.NextResponse.json({error:"Model and alias required"},{status:400});let f=await (0,e.OM)();if(Object.entries(f).find(([a,d])=>d===c&&a!==b))return d.NextResponse.json({error:"Alias already in use"},{status:400});return await (0,e.o5)(b,c),d.NextResponse.json({success:!0,model:b,alias:c})}catch(a){return console.log("Error updating alias:",a),d.NextResponse.json({error:"Failed to update alias"},{status:500})}}},16655:(a,b,c)=>{"use strict";c.d(b,{oF:()=>d.oF,tm:()=>d.tm,vF:()=>d.vF});var d=c(27274)},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},25467:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/route",pathname:"/api/models",filename:"route",bundlePath:"app/api/models/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"F:\\Files\\GitHub Files\\10router\\src\\app\\api\\models\\route.js",nextConfigOutput:"standalone",userland:()=>c(15798),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},50122:(a,b,c)=>{"use strict";c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66489:(a,b,c)=>{"use strict";c.d(b,{D3:()=>d.D3,SZ:()=>d.SZ,dW:()=>d.dW});var d=c(27274)},71998:(a,b,c)=>{"use strict";c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,h1:()=>d.h1,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{"use strict";a.exports=require("node:fs")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},80099:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},89718:(a,b,c)=>{"use strict";c.d(b,{Bf:()=>d.Bf,CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Um:()=>d.Um,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,getSettings:()=>d.mt,h1:()=>d.h1,hj:()=>d.hj,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,updateSettings:()=>d.Xx,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(27274)},94735:a=>{"use strict";a.exports=require("events")},94755:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}},96487:()=>{},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,682,6070,1329,5781,7274,8920,6306],()=>b(b.s=25467));module.exports=c})();
@@ -1 +1 @@
1
- (()=>{var a={};a.id=2919,a.ids=[2919],a.modules={214:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/test/route",pathname:"/api/models/test",filename:"route",bundlePath:"app/api/models/test/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"F:\\Files\\GitHub Files\\10router\\src\\app\\api\\models\\test\\route.js",nextConfigOutput:"standalone",userland:()=>c(50577),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/test/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},2186:(a,b,c)=>{"use strict";c.d(b,{e3:()=>f,e5:()=>e,nF:()=>d});let d="x-10r-cli-token";function e(a){return a.headers.get(d)||a.headers.get("x-9r-cli-token")||null}function f(a){return a.headers.get("x-10r-password")||a.headers.get("x-9r-password")||null}},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},33873:a=>{"use strict";a.exports=require("path")},38238:(a,b,c)=>{"use strict";c.d(b,{P:()=>i});var d=c(89718),e=c(30869),f=c(54603),g=c(2186);async function h(){let a=null;try{let b=await (0,d.PX)();a=b.find(a=>!1!==a.isActive)?.key||null}catch{}let b={"Content-Type":"application/json"};return a&&(b.Authorization=`Bearer ${a}`),b[g.nF]=await (0,f.Xj)("9r-cli-auth"),b}async function i(a,b,c=`http://127.0.0.1:${process.env.PORT||e.h0.appPort}`){let d=await h(),f=Date.now();if("embedding"===b){let b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:d,body:JSON.stringify({model:a,input:"test"}),signal:AbortSignal.timeout(15e3)}),e=Date.now()-f,g=await b.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{}if(!b.ok){let a=h?.error?.message||h?.error||g;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(h?.data)&&h.data.length>0&&Array.isArray(h.data[0]?.embedding)?{ok:!0,latencyMs:e,error:null,status:b.status}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no embedding data"}}if("systemone"===b){let b=await fetch(`${c}/api/v1/systemone`,{method:"POST",headers:d,body:JSON.stringify({model:a,state:"Customer: I was charged twice for my order this morning.",questions:{probe:{type:"noul",instructions:"Is the customer reporting a billing problem?"}}}),signal:AbortSignal.timeout(15e3)}),e=Date.now()-f,g=await b.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{}if(!b.ok){let a=h?.error?.message||h?.msg||h?.message||h?.error||g;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return h?.answers&&"object"==typeof h.answers&&Object.keys(h.answers).length>0?{ok:!0,latencyMs:e,error:null,status:b.status}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no answers for this model"}}if("image"===b){let b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:d,body:JSON.stringify({model:a,prompt:"test"}),signal:AbortSignal.timeout(15e3)}),e=Date.now()-f,g=await b.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{}if(!b.ok){let a=h?.error?.message||h?.msg||h?.message||h?.error||g;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(h?.data)&&h.data.length>0?{ok:!0,latencyMs:e,error:null,status:b.status}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,e,g,h,i=new FormData,j=(g=new DataView(e=new ArrayBuffer(44+(b=2*Math.max(1,Math.floor(4e3))))),(h=(a,b)=>{for(let c=0;c<b.length;c+=1)g.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),g.setUint32(4,36+b,!0),h(8,"WAVE"),h(12,"fmt "),g.setUint32(16,16,!0),g.setUint16(20,1,!0),g.setUint16(22,1,!0),g.setUint32(24,16e3,!0),g.setUint32(28,32e3,!0),g.setUint16(32,2,!0),g.setUint16(34,16,!0),h(36,"data"),g.setUint32(40,b,!0),new Blob([e],{type:"audio/wav"}));i.append("file",j,"test.wav"),i.append("model",a);let k=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(d).filter(([a])=>"content-type"!==a.toLowerCase())),body:i,signal:AbortSignal.timeout(15e3)}),l=Date.now()-f,m=await k.text().catch(()=>""),n=null;try{n=m?JSON.parse(m):null}catch{}if(!k.ok){let a=n?.error?.message||n?.msg||n?.message||n?.error||m;return{ok:!1,latencyMs:l,error:`HTTP ${k.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:k.status}}return("string"==typeof n?.text?n.text:"").trim()?{ok:!0,latencyMs:l,error:null,status:k.status}:{ok:!1,latencyMs:l,status:k.status,error:"Provider returned no transcription text for this model"}}let g=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:d,body:JSON.stringify({model:a,max_tokens:1024,stream:!1,messages:[{role:"user",content:"hi"}]}),signal:AbortSignal.timeout(15e3)}),j=Date.now()-f,k=await g.text().catch(()=>""),l=null;try{l=k?JSON.parse(k):null}catch{}if(!g.ok){let a=l?.error?.message||l?.msg||l?.message||l?.error||k;return{ok:!1,latencyMs:j,error:`HTTP ${g.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:g.status}}let m=l?.status,n=l?.msg||l?.message;if(null!=m&&"200"!==String(m)&&"0"!==String(m)&&n)return{ok:!1,latencyMs:j,status:g.status,error:`Provider status ${m}: ${String(n).slice(0,240)}`};if(l?.error){let a=l?.error?.message||l?.error||"Provider returned an error";return{ok:!1,latencyMs:j,status:g.status,error:String(a).slice(0,240)}}let o=Array.isArray(l?.choices)&&l.choices.length>0,p=l?.choices?.[0]||{},q=p.message?.reasoning||p.message?.reasoning_content||p.message?.thinking||p.message?.thinking_content,r=!String(p.message?.content||"").trim();return o&&"length"===p.finish_reason&&r&&q?{ok:!0,latencyMs:j,error:null,status:g.status,note:"reasoning-only response (length-limited)"}:o?{ok:!0,latencyMs:j,error:null,status:g.status}:{ok:!1,latencyMs:j,status:g.status,error:"Provider returned no completion choices for this model"}}},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},50577:(a,b,c)=>{"use strict";c.r(b),c.d(b,{POST:()=>f});var d=c(23211),e=c(38238);async function f(a){try{let{model:b,kind:c}=await a.json();if(!b)return d.NextResponse.json({error:"Model required"},{status:400});let f=await (0,e.P)(b,c||"llm");return d.NextResponse.json(f)}catch(a){return d.NextResponse.json({ok:!1,error:a.message},{status:500})}}},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.nJ,"machine-id"),m=h().join(k.nJ,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.nJ,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="9r-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{"use strict";a.exports=require("node:fs")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},89718:(a,b,c)=>{"use strict";c.d(b,{Bf:()=>d.Bf,CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Um:()=>d.Um,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,getSettings:()=>d.mt,h1:()=>d.h1,hj:()=>d.hj,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,updateSettings:()=>d.Xx,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(27274)},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,595,682,6070,1329,5781,7274],()=>b(b.s=214));module.exports=c})();
1
+ (()=>{var a={};a.id=2919,a.ids=[2919],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},2186:(a,b,c)=>{"use strict";c.d(b,{e3:()=>f,e5:()=>e,nF:()=>d});let d="x-10r-cli-token";function e(a){return a.headers.get(d)||a.headers.get("x-9r-cli-token")||null}function f(a){return a.headers.get("x-10r-password")||a.headers.get("x-9r-password")||null}},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},18227:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/test/route",pathname:"/api/models/test",filename:"route",bundlePath:"app/api/models/test/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"F:\\Files\\GitHub Files\\10router\\src\\app\\api\\models\\test\\route.js",nextConfigOutput:"standalone",userland:()=>c(50577),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/test/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},33873:a=>{"use strict";a.exports=require("path")},38238:(a,b,c)=>{"use strict";c.d(b,{P:()=>i});var d=c(89718),e=c(30869),f=c(54603),g=c(2186);async function h(){let a=null;try{let b=await (0,d.PX)();a=b.find(a=>!1!==a.isActive)?.key||null}catch{}let b={"Content-Type":"application/json"};return a&&(b.Authorization=`Bearer ${a}`),b[g.nF]=await (0,f.Xj)("9r-cli-auth"),b}async function i(a,b,c=`http://127.0.0.1:${process.env.PORT||e.h0.appPort}`){let d=await h(),f=Date.now();if("embedding"===b){let b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:d,body:JSON.stringify({model:a,input:"test"}),signal:AbortSignal.timeout(15e3)}),e=Date.now()-f,g=await b.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{}if(!b.ok){let a=h?.error?.message||h?.error||g;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(h?.data)&&h.data.length>0&&Array.isArray(h.data[0]?.embedding)?{ok:!0,latencyMs:e,error:null,status:b.status}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no embedding data"}}if("systemone"===b){let b=await fetch(`${c}/api/v1/systemone`,{method:"POST",headers:d,body:JSON.stringify({model:a,state:"Customer: I was charged twice for my order this morning.",questions:{probe:{type:"noul",instructions:"Is the customer reporting a billing problem?"}}}),signal:AbortSignal.timeout(15e3)}),e=Date.now()-f,g=await b.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{}if(!b.ok){let a=h?.error?.message||h?.msg||h?.message||h?.error||g;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return h?.answers&&"object"==typeof h.answers&&Object.keys(h.answers).length>0?{ok:!0,latencyMs:e,error:null,status:b.status}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no answers for this model"}}if("image"===b){let b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:d,body:JSON.stringify({model:a,prompt:"test"}),signal:AbortSignal.timeout(15e3)}),e=Date.now()-f,g=await b.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{}if(!b.ok){let a=h?.error?.message||h?.msg||h?.message||h?.error||g;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(h?.data)&&h.data.length>0?{ok:!0,latencyMs:e,error:null,status:b.status}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,e,g,h,i=new FormData,j=(g=new DataView(e=new ArrayBuffer(44+(b=2*Math.max(1,Math.floor(4e3))))),(h=(a,b)=>{for(let c=0;c<b.length;c+=1)g.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),g.setUint32(4,36+b,!0),h(8,"WAVE"),h(12,"fmt "),g.setUint32(16,16,!0),g.setUint16(20,1,!0),g.setUint16(22,1,!0),g.setUint32(24,16e3,!0),g.setUint32(28,32e3,!0),g.setUint16(32,2,!0),g.setUint16(34,16,!0),h(36,"data"),g.setUint32(40,b,!0),new Blob([e],{type:"audio/wav"}));i.append("file",j,"test.wav"),i.append("model",a);let k=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(d).filter(([a])=>"content-type"!==a.toLowerCase())),body:i,signal:AbortSignal.timeout(15e3)}),l=Date.now()-f,m=await k.text().catch(()=>""),n=null;try{n=m?JSON.parse(m):null}catch{}if(!k.ok){let a=n?.error?.message||n?.msg||n?.message||n?.error||m;return{ok:!1,latencyMs:l,error:`HTTP ${k.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:k.status}}return("string"==typeof n?.text?n.text:"").trim()?{ok:!0,latencyMs:l,error:null,status:k.status}:{ok:!1,latencyMs:l,status:k.status,error:"Provider returned no transcription text for this model"}}let g=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:d,body:JSON.stringify({model:a,max_tokens:1024,stream:!1,messages:[{role:"user",content:"hi"}]}),signal:AbortSignal.timeout(15e3)}),j=Date.now()-f,k=await g.text().catch(()=>""),l=null;try{l=k?JSON.parse(k):null}catch{}if(!g.ok){let a=l?.error?.message||l?.msg||l?.message||l?.error||k;return{ok:!1,latencyMs:j,error:`HTTP ${g.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:g.status}}let m=l?.status,n=l?.msg||l?.message;if(null!=m&&"200"!==String(m)&&"0"!==String(m)&&n)return{ok:!1,latencyMs:j,status:g.status,error:`Provider status ${m}: ${String(n).slice(0,240)}`};if(l?.error){let a=l?.error?.message||l?.error||"Provider returned an error";return{ok:!1,latencyMs:j,status:g.status,error:String(a).slice(0,240)}}let o=Array.isArray(l?.choices)&&l.choices.length>0,p=l?.choices?.[0]||{},q=p.message?.reasoning||p.message?.reasoning_content||p.message?.thinking||p.message?.thinking_content,r=!String(p.message?.content||"").trim();return o&&"length"===p.finish_reason&&r&&q?{ok:!0,latencyMs:j,error:null,status:g.status,note:"reasoning-only response (length-limited)"}:o?{ok:!0,latencyMs:j,error:null,status:g.status}:{ok:!1,latencyMs:j,status:g.status,error:"Provider returned no completion choices for this model"}}},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},50577:(a,b,c)=>{"use strict";c.r(b),c.d(b,{POST:()=>f});var d=c(23211),e=c(38238);async function f(a){try{let{model:b,kind:c}=await a.json();if(!b)return d.NextResponse.json({error:"Model required"},{status:400});let f=await (0,e.P)(b,c||"llm");return d.NextResponse.json(f)}catch(a){return d.NextResponse.json({ok:!1,error:a.message},{status:500})}}},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.nJ,"machine-id"),m=h().join(k.nJ,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.nJ,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="9r-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{"use strict";a.exports=require("node:fs")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},89718:(a,b,c)=>{"use strict";c.d(b,{Bf:()=>d.Bf,CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Um:()=>d.Um,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,getSettings:()=>d.mt,h1:()=>d.h1,hj:()=>d.hj,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,updateSettings:()=>d.Xx,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(27274)},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,595,682,6070,1329,5781,7274],()=>b(b.s=18227));module.exports=c})();
@@ -1 +1 @@
1
- (()=>{var a={};a.id=591,a.ids=[591,8988],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},9941:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>g,dynamic:()=>f});var d=c(23211),e=c(96607);let f="force-dynamic";async function g(){try{let a=await (0,e.getEgressRegion)();return d.NextResponse.json(a||{countryCode:null,recommendedRegions:{}})}catch(a){return d.NextResponse.json({error:"Failed to detect egress region"},{status:500})}}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30318:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/network/egress-region/route",pathname:"/api/network/egress-region",filename:"route",bundlePath:"app/api/network/egress-region/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"F:\\Files\\GitHub Files\\10router\\src\\app\\api\\network\\egress-region\\route.js",nextConfigOutput:"standalone",userland:()=>c(9941),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/network/egress-region/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{},96607:(a,b,c)=>{"use strict";c.d(b,{getEgressRegion:()=>i});let d=new Set(["NL","DE","FR","GB","IT","ES","SE","CH","BE","AT","PL","IE","NO","FI","DK","PT","CZ","RO","HU","GR"]),e=new Set(["CN","HK","MO","TW"]),f=[{name:"ip.sb",url:"https://api.ip.sb/geoip",parse:a=>({countryCode:(a?.country_code||"").trim().toUpperCase(),country:(a?.country||"").trim(),ip:(a?.ip||"").trim()})},{name:"ipwho.is",url:"https://ipwho.is/",parse:a=>a?.success===!1?null:{countryCode:(a?.country_code||"").trim().toUpperCase(),country:(a?.country||"").trim(),ip:(a?.ip||"").trim()}},{name:"ipapi.is",url:"https://api.ipapi.is",parse:a=>({countryCode:(a?.location?.country_code||a?.country_code||"").trim().toUpperCase(),country:(a?.location?.country||a?.country||"").trim(),ip:(a?.ip||"").trim()})}],g=null,h=0;async function i({bypassCache:a=!1,timeoutMs:b=2500,fetchFn:c=globalThis.fetch}={}){let j=Date.now();if(!a&&g&&j<h)return g;for(let a of f)try{let f=await c(a.url,{headers:{"User-Agent":"10Router",Accept:"application/json"},signal:AbortSignal.timeout(b)});if(!f.ok)continue;let i=await f.json(),k=a.parse(i);if(!k||!k.countryCode)continue;let l=function(a){if(!a||"string"!=typeof a)return"sgp";let b=a.trim().toUpperCase();return e.has(b)?"cn":d.has(b)?"ams":"sgp"}(k.countryCode),m={countryCode:k.countryCode,country:k.country,ip:k.ip,source:a.name,recommendedRegions:{"xiaomi-tokenplan":l}};return g=m,h=j+9e5,m}catch{continue}return g||null}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=30318));module.exports=c})();
1
+ (()=>{var a={};a.id=591,a.ids=[591,8988],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},9179:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/network/egress-region/route",pathname:"/api/network/egress-region",filename:"route",bundlePath:"app/api/network/egress-region/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"F:\\Files\\GitHub Files\\10router\\src\\app\\api\\network\\egress-region\\route.js",nextConfigOutput:"standalone",userland:()=>c(9941),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/network/egress-region/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},9941:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>g,dynamic:()=>f});var d=c(23211),e=c(96607);let f="force-dynamic";async function g(){try{let a=await (0,e.getEgressRegion)();return d.NextResponse.json(a||{countryCode:null,recommendedRegions:{}})}catch(a){return d.NextResponse.json({error:"Failed to detect egress region"},{status:500})}}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{},96607:(a,b,c)=>{"use strict";c.d(b,{getEgressRegion:()=>i});let d=new Set(["NL","DE","FR","GB","IT","ES","SE","CH","BE","AT","PL","IE","NO","FI","DK","PT","CZ","RO","HU","GR"]),e=new Set(["CN","HK","MO","TW"]),f=[{name:"ip.sb",url:"https://api.ip.sb/geoip",parse:a=>({countryCode:(a?.country_code||"").trim().toUpperCase(),country:(a?.country||"").trim(),ip:(a?.ip||"").trim()})},{name:"ipwho.is",url:"https://ipwho.is/",parse:a=>a?.success===!1?null:{countryCode:(a?.country_code||"").trim().toUpperCase(),country:(a?.country||"").trim(),ip:(a?.ip||"").trim()}},{name:"ipapi.is",url:"https://api.ipapi.is",parse:a=>({countryCode:(a?.location?.country_code||a?.country_code||"").trim().toUpperCase(),country:(a?.location?.country||a?.country||"").trim(),ip:(a?.ip||"").trim()})}],g=null,h=0;async function i({bypassCache:a=!1,timeoutMs:b=2500,fetchFn:c=globalThis.fetch}={}){let j=Date.now();if(!a&&g&&j<h)return g;for(let a of f)try{let f=await c(a.url,{headers:{"User-Agent":"10Router",Accept:"application/json"},signal:AbortSignal.timeout(b)});if(!f.ok)continue;let i=await f.json(),k=a.parse(i);if(!k||!k.countryCode)continue;let l=function(a){if(!a||"string"!=typeof a)return"sgp";let b=a.trim().toUpperCase();return e.has(b)?"cn":d.has(b)?"ams":"sgp"}(k.countryCode),m={countryCode:k.countryCode,country:k.country,ip:k.ip,source:a.name,recommendedRegions:{"xiaomi-tokenplan":l}};return g=m,h=j+9e5,m}catch{continue}return g||null}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=9179));module.exports=c})();
@@ -1 +1 @@
1
- (()=>{var a={};a.id=9088,a.ids=[1998,4755,6457,8838,9088],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},2862:(a,b,c)=>{"use strict";c.d(b,{u:()=>q});var d=c(79748),e=c.n(d),f=c(79646),g=c(28354),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j);let l=(0,g.promisify)(f.exec),m={trae:{darwin:["/Applications/Trae.app"],win32:[i().join(process.env.LOCALAPPDATA||"","Programs","Trae","Trae.exe"),i().join(process.env.ProgramFiles||"","Trae","Trae.exe")],linux:["/usr/bin/trae","/usr/local/bin/trae","/opt/trae","/opt/Trae"]},windsurf:{darwin:["/Applications/Windsurf.app"],win32:[i().join(process.env.LOCALAPPDATA||"","Programs","Windsurf","Windsurf.exe"),i().join(process.env.ProgramFiles||"","Windsurf","Windsurf.exe")],linux:["/usr/bin/windsurf","/usr/local/bin/windsurf","/opt/windsurf","/opt/Windsurf"]}},n={trae:"trae",windsurf:"windsurf"};async function o(a){try{return await e().access(a),!0}catch{return!1}}async function p(a){try{let b="win32"===k().platform()?`where ${a}`:`which ${a}`;return await l(b,{windowsHide:!0}),!0}catch{return!1}}async function q(a){let b=k().platform(),c=m[a];if(!c)return{installed:!1,path:null};for(let a of c[b]||[])if(a&&await o(a))return{installed:!0,path:a};let d=n[a];return d&&await p(d)?{installed:!0,path:d}:{installed:!1,path:null}}},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40170:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/[provider]/[action]/route",pathname:"/api/oauth/[provider]/[action]",filename:"route",bundlePath:"app/api/oauth/[provider]/[action]/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"F:\\Files\\GitHub Files\\10router\\src\\app\\api\\oauth\\[provider]\\[action]\\route.js",nextConfigOutput:"standalone",userland:()=>c(56632),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/[provider]/[action]/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},40610:a=>{"use strict";a.exports=require("node:dns")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},50122:(a,b,c)=>{"use strict";c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},56632:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>m,POST:()=>n});var e=c(23211),f=c(74177),g=c(71998),h=c(22898),i=c(2862),j=c(92990),k=a([f]);async function l(a,b){let c=b?(0,h.ZP)(b):null;if(!c)throw Error("xAI OAuth session not found; restart the login flow and paste the code again");if(!a)throw Error("Missing xAI authorization code");try{let d=await (0,f.exchangeTokens)("xai",a,c.redirectUri,c.codeVerifier,b),e=await (0,g.createProviderConnection)({provider:"xai",authType:"oauth",...d,expiresAt:d.expiresIn?new Date(Date.now()+1e3*d.expiresIn).toISOString():null,testStatus:"active"});return(0,h.uw)(b),(0,h.nu)(),{id:e.id,provider:e.provider,email:e.email,displayName:e.displayName}}catch(a){throw(0,h.uw)(b),(0,h.nu)(),a}}f=(k.then?(await k)():k)[0];let o=new Set(["xiaomi-mimo","mimo-desktop"]);async function m(a,{params:b}){try{let{provider:d,action:g}=await b,{searchParams:k}=new URL(a.url);if("authorize"===g){if(o.has(d)){let a=k.get("state");if(!a)return e.NextResponse.json({error:"Missing state"},{status:400});let b=await (0,h.ag)();if(!b.success)return e.NextResponse.json({error:b.reason||"Failed to start callback listener"},{status:500});let{generateKeyPair:d,buildAuthorizeUrl:f,buildManualAuthorizeUrl:g,getKeyName:i}=await c.e(4152).then(c.bind(c,34152)),{publicKey:j,privateKeyDer:l}=d();(0,h.n3)({state:a,privateKeyDer:l});let m=i();return e.NextResponse.json({authorizeUrl:f(j,b.callbackUrl,m),manualUrl:g(j,m),callbackUrl:b.callbackUrl,state:a})}let a=k.get("redirect_uri")||"http://localhost:8080/callback",b=new Set(["redirect_uri"]),g={};if(k.forEach((a,c)=>{b.has(c)||(g[c]=a)}),"zed"===d)try{let b=new URL(a).port;b&&(g.nativeAppPort=b)}catch{}let i=await (0,f.kP)(d,a,Object.keys(g).length?g:void 0);return e.NextResponse.json(i)}if("start-proxy"===g){if("trae"===d){let a=await (0,h.dW)();return e.NextResponse.json(a)}if("windsurf"===d){let a=await (0,h.zq)();return e.NextResponse.json(a)}if("zed"===d){let a=await (0,h.Ag)(k.get("native_app_port")||j.RY.defaultNativeAppPort);return e.NextResponse.json(a)}if(!["codex","xai"].includes(d))return e.NextResponse.json({error:"Proxy only supported for codex/xai/trae/windsurf/zed"},{status:400});let a=k.get("app_port");if(!a)return e.NextResponse.json({error:"Missing app_port"},{status:400});let b=k.get("state"),c=k.get("code_verifier"),f=k.get("redirect_uri"),g="xai"===d?await (0,h.jl)(Number(a)):await (0,h.Y0)(Number(a)),i=!1;return g.success&&b&&c&&f&&(i="xai"===d?(0,h._V)({state:b,codeVerifier:c,redirectUri:f}):(0,h.Hd)({state:b,codeVerifier:c,redirectUri:f})),e.NextResponse.json({...g,serverSide:i})}if("poll-status"===g){let a,b=k.get("state");if(!b)return e.NextResponse.json({error:"Missing state"},{status:400});if("trae"===d)a=(0,h.VZ)(b);else if("windsurf"===d)a=(0,h.Xd)(b);else if("zed"===d)a=(0,h.E1)(b);else if("xai"===d)a=(0,h.ZP)(b);else if("codex"===d)a=(0,h.cn)(b);else{if(!o.has(d))return e.NextResponse.json({error:"Poll only supported for codex/xai/trae/windsurf/zed"},{status:400});{let a=(0,h.S3)(b);if(!a)return e.NextResponse.json({status:"unknown"});if("done"===a.status&&a.result)return e.NextResponse.json({status:a.status,result:{uid:a.result.uid,baseUrl:a.result.baseUrl}});if("error"===a.status){let c={status:a.status,error:a.error};return(0,h.zg)(b),e.NextResponse.json(c)}return e.NextResponse.json({status:a.status})}}if(!a)return e.NextResponse.json({status:"unknown"});if("done"===a.status||"error"===a.status){let c={...a};return"trae"===d?(0,h.og)(b):"windsurf"===d?(0,h.wl)(b):"zed"===d?(0,h.Rb)(b):"xai"===d?(0,h.uw)(b):(0,h.dR)(b),e.NextResponse.json(c)}return e.NextResponse.json({status:a.status})}if("stop-proxy"===g){if("trae"===d)(0,h.hj)();else if("windsurf"===d)(0,h.rd)();else if("zed"===d)(0,h.ET)();else if("xai"===d)(0,h.nu)();else if("codex"===d)(0,h.IF)();else{if(!o.has(d))return e.NextResponse.json({error:"Proxy only supported for codex/xai/trae/windsurf/zed"},{status:400});(0,h.GJ)()}return e.NextResponse.json({success:!0})}if("ide-status"===g){if("trae"!==d&&"windsurf"!==d)return e.NextResponse.json({error:"ide-status only supported for trae/windsurf"},{status:400});let a=await (0,i.u)(d);return e.NextResponse.json(a)}if("device-code"===g){let a,b=(0,f.sO)(d);if("device_code"!==b.flowType)return e.NextResponse.json({error:"Provider does not support device code flow"},{status:400});let c=await (0,f.kP)(d,null),g=k.get("start_url"),h=k.get("region"),i=k.get("auth_method"),j="kiro"===d?{...g?{startUrl:g}:{},...h?{region:h}:{},...i?{authMethod:i}:{}}:void 0;return a=["github","kiro","kimi","kimi-coding","kilocode","codebuddy-cn","codebuddy-intl","qoder","qoder-cn","grok-cli","glm","muse"].includes(d)?await (0,f.Re)(d,void 0,j):await (0,f.Re)(d,c.codeChallenge,j),e.NextResponse.json({...a,codeVerifier:a.codeVerifier||c.codeVerifier})}return e.NextResponse.json({error:"Unknown action"},{status:400})}catch(a){return console.log("OAuth GET error:",a),e.NextResponse.json({error:a.message},{status:500})}}async function n(a,{params:b}){try{let d,{provider:i,action:j}=await b;try{d=await a.json()}catch{return e.NextResponse.json({error:"Invalid or empty request body"},{status:400})}if("register-session"===j){let b=new URL(a.url).searchParams.get("state")||d?.state;if(!b)return e.NextResponse.json({error:"Missing state"},{status:400});let c=!1;if("trae"===i)c=(0,h.Ex)({state:b});else if("windsurf"===i)c=(0,h.wq)({state:b});else{if("zed"!==i)return e.NextResponse.json({error:"register-session only supported for trae/windsurf/zed"},{status:400});c=(0,h.Jm)({state:b,codeVerifier:d?.codeVerifier})}return e.NextResponse.json({success:c})}if("submit-code"===j){if(!o.has(i))return e.NextResponse.json({error:"submit-code only supported for the Xiaomi MiMo cards"},{status:400});let a=await (0,h.lI)(d?.code);if(!a.ok)return e.NextResponse.json({status:"error",error:{empty_payload:"Paste the authorization code first.",payload_too_short:"That is too short to be the whole code — it is usually a long string of 100+ characters. Use the Copy button on the sign-in page, then paste it here.",no_pending_session:"This sign-in attempt is no longer active. Click Sign in via Browser to start again.",decrypt_failed:"That code does not match this sign-in. Copy the whole code from the sign-in page, or click Sign in via Browser for a fresh one.",missing_api_key:"That code did not contain an API key. Start the sign-in again."}[a.error]||"Could not read that code."},{status:400});return e.NextResponse.json({status:"done",state:a.state,result:{uid:a.result.uid,baseUrl:a.result.baseUrl}})}if("exchange"===j){let{code:a,redirectUri:b,codeVerifier:j,state:k,meta:l}=d;if(o.has(i)){if(!k)return e.NextResponse.json({error:"Missing state"},{status:400});let a=(0,h.S3)(k);if(!a||"done"!==a.status||!a.result?.accessToken)return e.NextResponse.json({error:"OAuth session not completed"},{status:400});try{let b="mimo-desktop"===i,d=null;if(b)try{let{readDesktopPassToken:a}=await Promise.resolve().then(c.bind(c,12132));d=await a()}catch{}let f=a.result.uid||null,j=d?.passToken?{mimoPassToken:d.passToken,mimoUserId:d.userId||null,mimoCUserId:d.cUserId||null}:{},{getProviderConnections:l,updateProviderConnection:m}=await Promise.resolve().then(c.bind(c,71998)),{findXiaomiConnection:n}=await c.e(808).then(c.bind(c,60808)),o=n(await l({provider:i}),{uid:f,key:a.result.accessToken,mimoUserId:d?.userId||null}),p={...o?.providerSpecificData||{}};b||(delete p.mimoPassToken,delete p.mimoUserId,delete p.mimoCUserId);let q=o?await m(o.id,{accessToken:a.result.accessToken,providerSpecificData:{...p,uid:f,baseUrl:a.result.baseUrl||"https://api.xiaomimimo.com/v1",authMethod:"oauth",...b?{provider:"Xiaomi MiMo Desktop"}:{},...j},testStatus:"active",resetErrorState:!0}):await (0,g.createProviderConnection)({provider:i,authType:"api_key",accessToken:a.result.accessToken,refreshToken:null,expiresAt:new Date(Date.now()+31536e6).toISOString(),email:f?`${f}@xiaomi`:null,displayName:f?`Xiaomi ${f}`:"Xiaomi MiMo",providerSpecificData:{uid:f,baseUrl:a.result.baseUrl||"https://api.xiaomimimo.com/v1",authMethod:"oauth",...b?{provider:"Xiaomi MiMo Desktop"}:{},...j},testStatus:"active"});return(0,h.zg)(k),(0,h.GJ)(),e.NextResponse.json({success:!0,connection:{id:q.id,provider:q.provider,email:q.email,displayName:q.displayName}})}catch(a){return e.NextResponse.json({error:a.message},{status:500})}}if("trae"===i||"windsurf"===i){let b="string"==typeof a?a.trim():"";if(!b)return e.NextResponse.json({error:"Missing token or callback URL"},{status:400});try{let a=await (0,f.exchangeTokens)(i,b,null,null,k),c=await (0,g.createProviderConnection)({provider:i,authType:"windsurf"===i?"api_key":"oauth",...a,expiresAt:a.expiresIn?new Date(Date.now()+1e3*a.expiresIn).toISOString():null,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:c.id,provider:c.provider,email:c.email,displayName:c.displayName}})}catch(a){return e.NextResponse.json({error:a.message},{status:500})}}if(a&&a.startsWith("eyJ")&&a.includes(".")){let{extractCodexAccountInfo:b}=await Promise.resolve().then(c.bind(c,74177)),d=b(a),f={};try{let b=a.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),c=b+"=".repeat((4-b.length%4)%4);f=JSON.parse(Buffer.from(c,"base64").toString("utf8"))}catch{}let h=d.chatgptAccountId||f.account_id,j=d.chatgptPlanType||f.plan_type,k=d.email||f.email,l={authMethod:"access_token"};h&&(l.chatgptAccountId=h),j&&(l.chatgptPlanType=j);let m=await (0,g.createProviderConnection)({provider:i,authType:"access_token",accessToken:a,email:k||null,providerSpecificData:l,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:m.id,provider:m.provider,email:m.email,displayName:m.displayName}})}if(!a||!b||!j&&!["cline","clinepass","kimchi"].includes(i))return e.NextResponse.json({error:"Missing required fields"},{status:400});let m=await (0,f.exchangeTokens)(i,a,b,j,k,l),n=await (0,g.createProviderConnection)({provider:i,authType:"oauth",...m,expiresAt:m.expiresIn?new Date(Date.now()+1e3*m.expiresIn).toISOString():null,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:n.id,provider:n.provider,email:n.email,displayName:n.displayName}})}if("poll"===j){let a,{deviceCode:b,codeVerifier:c,extraData:h}=d;if(!b)return e.NextResponse.json({error:"Missing device code"},{status:400});if(["github","kimi","kimi-coding","kilocode","codebuddy-cn","codebuddy-intl","glm","muse"].includes(i))a=await (0,f.Su)(i,b,null,h);else if("kiro"===i)a=await (0,f.Su)(i,b,null,h);else if("qoder"===i||"qoder-cn"===i){if(!c)return e.NextResponse.json({error:"Missing code verifier"},{status:400});a=await (0,f.Su)(i,b,c,h)}else{if(!c)return e.NextResponse.json({error:"Missing code verifier"},{status:400});a=await (0,f.Su)(i,b,c)}if(a.success){let b="kimi-coding"===i?"kimi":i,c=await (0,g.createProviderConnection)({provider:b,authType:"oauth",...a.tokens,expiresAt:a.tokens.expiresIn?new Date(Date.now()+1e3*a.tokens.expiresIn).toISOString():null,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:c.id,provider:c.provider}})}let j=a.pending||"authorization_pending"===a.error||"slow_down"===a.error;return e.NextResponse.json({success:!1,error:a.error,errorDescription:a.errorDescription,pending:j,...a.fatal?{fatal:!0}:{}})}if("manual-code"===j){if("xai"!==i)return e.NextResponse.json({error:"Manual code only supported for xai"},{status:400});let{code:a,state:b}=d,c=await l(String(a||"").trim(),String(b||"").trim());return e.NextResponse.json({success:!0,connection:c})}return e.NextResponse.json({error:"Unknown action"},{status:400})}catch(a){return console.log("OAuth POST error:",a),e.NextResponse.json({error:a.message},{status:500})}}d()}catch(a){d(a)}})},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},71998:(a,b,c)=>{"use strict";c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,h1:()=>d.h1,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},89718:(a,b,c)=>{"use strict";c.d(b,{Bf:()=>d.Bf,CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Um:()=>d.Um,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,getSettings:()=>d.mt,h1:()=>d.h1,hj:()=>d.hj,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,updateSettings:()=>d.Xx,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(27274)},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")},94755:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}},96487:()=>{},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,7774,5433,682,6070,1329,5781,7274,8920,6306,3225,436,3943,3500,1159,2120,6922,7070,8499,5330,8895,4177,5615],()=>b(b.s=40170));module.exports=c})();
1
+ (()=>{var a={};a.id=9088,a.ids=[1998,4755,6457,8838,9088],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},2862:(a,b,c)=>{"use strict";c.d(b,{u:()=>q});var d=c(79748),e=c.n(d),f=c(79646),g=c(28354),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j);let l=(0,g.promisify)(f.exec),m={trae:{darwin:["/Applications/Trae.app"],win32:[i().join(process.env.LOCALAPPDATA||"","Programs","Trae","Trae.exe"),i().join(process.env.ProgramFiles||"","Trae","Trae.exe")],linux:["/usr/bin/trae","/usr/local/bin/trae","/opt/trae","/opt/Trae"]},windsurf:{darwin:["/Applications/Windsurf.app"],win32:[i().join(process.env.LOCALAPPDATA||"","Programs","Windsurf","Windsurf.exe"),i().join(process.env.ProgramFiles||"","Windsurf","Windsurf.exe")],linux:["/usr/bin/windsurf","/usr/local/bin/windsurf","/opt/windsurf","/opt/Windsurf"]}},n={trae:"trae",windsurf:"windsurf"};async function o(a){try{return await e().access(a),!0}catch{return!1}}async function p(a){try{let b="win32"===k().platform()?`where ${a}`:`which ${a}`;return await l(b,{windowsHide:!0}),!0}catch{return!1}}async function q(a){let b=k().platform(),c=m[a];if(!c)return{installed:!1,path:null};for(let a of c[b]||[])if(a&&await o(a))return{installed:!0,path:a};let d=n[a];return d&&await p(d)?{installed:!0,path:d}:{installed:!1,path:null}}},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{"use strict";a.exports=require("sql.js")},47023:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/[provider]/[action]/route",pathname:"/api/oauth/[provider]/[action]",filename:"route",bundlePath:"app/api/oauth/[provider]/[action]/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"F:\\Files\\GitHub Files\\10router\\src\\app\\api\\oauth\\[provider]\\[action]\\route.js",nextConfigOutput:"standalone",userland:()=>c(56632),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/[provider]/[action]/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},48161:a=>{"use strict";a.exports=require("node:os")},50122:(a,b,c)=>{"use strict";c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},56632:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>m,POST:()=>n});var e=c(23211),f=c(74177),g=c(71998),h=c(22898),i=c(2862),j=c(92990),k=a([f]);async function l(a,b){let c=b?(0,h.ZP)(b):null;if(!c)throw Error("xAI OAuth session not found; restart the login flow and paste the code again");if(!a)throw Error("Missing xAI authorization code");try{let d=await (0,f.exchangeTokens)("xai",a,c.redirectUri,c.codeVerifier,b),e=await (0,g.createProviderConnection)({provider:"xai",authType:"oauth",...d,expiresAt:d.expiresIn?new Date(Date.now()+1e3*d.expiresIn).toISOString():null,testStatus:"active"});return(0,h.uw)(b),(0,h.nu)(),{id:e.id,provider:e.provider,email:e.email,displayName:e.displayName}}catch(a){throw(0,h.uw)(b),(0,h.nu)(),a}}f=(k.then?(await k)():k)[0];let o=new Set(["xiaomi-mimo","mimo-desktop"]);async function m(a,{params:b}){try{let{provider:d,action:g}=await b,{searchParams:k}=new URL(a.url);if("authorize"===g){if(o.has(d)){let a=k.get("state");if(!a)return e.NextResponse.json({error:"Missing state"},{status:400});let b=await (0,h.ag)();if(!b.success)return e.NextResponse.json({error:b.reason||"Failed to start callback listener"},{status:500});let{generateKeyPair:d,buildAuthorizeUrl:f,buildManualAuthorizeUrl:g,getKeyName:i}=await c.e(4152).then(c.bind(c,34152)),{publicKey:j,privateKeyDer:l}=d();(0,h.n3)({state:a,privateKeyDer:l});let m=i();return e.NextResponse.json({authorizeUrl:f(j,b.callbackUrl,m),manualUrl:g(j,m),callbackUrl:b.callbackUrl,state:a})}let a=k.get("redirect_uri")||"http://localhost:8080/callback",b=new Set(["redirect_uri"]),g={};if(k.forEach((a,c)=>{b.has(c)||(g[c]=a)}),"zed"===d)try{let b=new URL(a).port;b&&(g.nativeAppPort=b)}catch{}let i=await (0,f.kP)(d,a,Object.keys(g).length?g:void 0);return e.NextResponse.json(i)}if("start-proxy"===g){if("trae"===d){let a=await (0,h.dW)();return e.NextResponse.json(a)}if("windsurf"===d){let a=await (0,h.zq)();return e.NextResponse.json(a)}if("zed"===d){let a=await (0,h.Ag)(k.get("native_app_port")||j.RY.defaultNativeAppPort);return e.NextResponse.json(a)}if(!["codex","xai"].includes(d))return e.NextResponse.json({error:"Proxy only supported for codex/xai/trae/windsurf/zed"},{status:400});let a=k.get("app_port");if(!a)return e.NextResponse.json({error:"Missing app_port"},{status:400});let b=k.get("state"),c=k.get("code_verifier"),f=k.get("redirect_uri"),g="xai"===d?await (0,h.jl)(Number(a)):await (0,h.Y0)(Number(a)),i=!1;return g.success&&b&&c&&f&&(i="xai"===d?(0,h._V)({state:b,codeVerifier:c,redirectUri:f}):(0,h.Hd)({state:b,codeVerifier:c,redirectUri:f})),e.NextResponse.json({...g,serverSide:i})}if("poll-status"===g){let a,b=k.get("state");if(!b)return e.NextResponse.json({error:"Missing state"},{status:400});if("trae"===d)a=(0,h.VZ)(b);else if("windsurf"===d)a=(0,h.Xd)(b);else if("zed"===d)a=(0,h.E1)(b);else if("xai"===d)a=(0,h.ZP)(b);else if("codex"===d)a=(0,h.cn)(b);else{if(!o.has(d))return e.NextResponse.json({error:"Poll only supported for codex/xai/trae/windsurf/zed"},{status:400});{let a=(0,h.S3)(b);if(!a)return e.NextResponse.json({status:"unknown"});if("done"===a.status&&a.result)return e.NextResponse.json({status:a.status,result:{uid:a.result.uid,baseUrl:a.result.baseUrl}});if("error"===a.status){let c={status:a.status,error:a.error};return(0,h.zg)(b),e.NextResponse.json(c)}return e.NextResponse.json({status:a.status})}}if(!a)return e.NextResponse.json({status:"unknown"});if("done"===a.status||"error"===a.status){let c={...a};return"trae"===d?(0,h.og)(b):"windsurf"===d?(0,h.wl)(b):"zed"===d?(0,h.Rb)(b):"xai"===d?(0,h.uw)(b):(0,h.dR)(b),e.NextResponse.json(c)}return e.NextResponse.json({status:a.status})}if("stop-proxy"===g){if("trae"===d)(0,h.hj)();else if("windsurf"===d)(0,h.rd)();else if("zed"===d)(0,h.ET)();else if("xai"===d)(0,h.nu)();else if("codex"===d)(0,h.IF)();else{if(!o.has(d))return e.NextResponse.json({error:"Proxy only supported for codex/xai/trae/windsurf/zed"},{status:400});(0,h.GJ)()}return e.NextResponse.json({success:!0})}if("ide-status"===g){if("trae"!==d&&"windsurf"!==d)return e.NextResponse.json({error:"ide-status only supported for trae/windsurf"},{status:400});let a=await (0,i.u)(d);return e.NextResponse.json(a)}if("device-code"===g){let a,b=(0,f.sO)(d);if("device_code"!==b.flowType)return e.NextResponse.json({error:"Provider does not support device code flow"},{status:400});let c=await (0,f.kP)(d,null),g=k.get("start_url"),h=k.get("region"),i=k.get("auth_method"),j="kiro"===d?{...g?{startUrl:g}:{},...h?{region:h}:{},...i?{authMethod:i}:{}}:void 0;return a=["github","kiro","kimi","kimi-coding","kilocode","codebuddy-cn","codebuddy-intl","qoder","qoder-cn","grok-cli","glm","muse"].includes(d)?await (0,f.Re)(d,void 0,j):await (0,f.Re)(d,c.codeChallenge,j),e.NextResponse.json({...a,codeVerifier:a.codeVerifier||c.codeVerifier})}return e.NextResponse.json({error:"Unknown action"},{status:400})}catch(a){return console.log("OAuth GET error:",a),e.NextResponse.json({error:a.message},{status:500})}}async function n(a,{params:b}){try{let d,{provider:i,action:j}=await b;try{d=await a.json()}catch{return e.NextResponse.json({error:"Invalid or empty request body"},{status:400})}if("register-session"===j){let b=new URL(a.url).searchParams.get("state")||d?.state;if(!b)return e.NextResponse.json({error:"Missing state"},{status:400});let c=!1;if("trae"===i)c=(0,h.Ex)({state:b});else if("windsurf"===i)c=(0,h.wq)({state:b});else{if("zed"!==i)return e.NextResponse.json({error:"register-session only supported for trae/windsurf/zed"},{status:400});c=(0,h.Jm)({state:b,codeVerifier:d?.codeVerifier})}return e.NextResponse.json({success:c})}if("submit-code"===j){if(!o.has(i))return e.NextResponse.json({error:"submit-code only supported for the Xiaomi MiMo cards"},{status:400});let a=await (0,h.lI)(d?.code);if(!a.ok)return e.NextResponse.json({status:"error",error:{empty_payload:"Paste the authorization code first.",payload_too_short:"That is too short to be the whole code — it is usually a long string of 100+ characters. Use the Copy button on the sign-in page, then paste it here.",no_pending_session:"This sign-in attempt is no longer active. Click Sign in via Browser to start again.",decrypt_failed:"That code does not match this sign-in. Copy the whole code from the sign-in page, or click Sign in via Browser for a fresh one.",missing_api_key:"That code did not contain an API key. Start the sign-in again."}[a.error]||"Could not read that code."},{status:400});return e.NextResponse.json({status:"done",state:a.state,result:{uid:a.result.uid,baseUrl:a.result.baseUrl}})}if("exchange"===j){let{code:a,redirectUri:b,codeVerifier:j,state:k,meta:l}=d;if(o.has(i)){if(!k)return e.NextResponse.json({error:"Missing state"},{status:400});let a=(0,h.S3)(k);if(!a||"done"!==a.status||!a.result?.accessToken)return e.NextResponse.json({error:"OAuth session not completed"},{status:400});try{let b="mimo-desktop"===i,d=null;if(b)try{let{readDesktopPassToken:a}=await Promise.resolve().then(c.bind(c,12132));d=await a()}catch{}let f=a.result.uid||null,j=d?.passToken?{mimoPassToken:d.passToken,mimoUserId:d.userId||null,mimoCUserId:d.cUserId||null}:{},{getProviderConnections:l,updateProviderConnection:m}=await Promise.resolve().then(c.bind(c,71998)),{findXiaomiConnection:n}=await c.e(808).then(c.bind(c,60808)),o=n(await l({provider:i}),{uid:f,key:a.result.accessToken,mimoUserId:d?.userId||null}),p={...o?.providerSpecificData||{}};b||(delete p.mimoPassToken,delete p.mimoUserId,delete p.mimoCUserId);let q=o?await m(o.id,{accessToken:a.result.accessToken,providerSpecificData:{...p,uid:f,baseUrl:a.result.baseUrl||"https://api.xiaomimimo.com/v1",authMethod:"oauth",...b?{provider:"Xiaomi MiMo Desktop"}:{},...j},testStatus:"active",resetErrorState:!0}):await (0,g.createProviderConnection)({provider:i,authType:"api_key",accessToken:a.result.accessToken,refreshToken:null,expiresAt:new Date(Date.now()+31536e6).toISOString(),email:f?`${f}@xiaomi`:null,displayName:f?`Xiaomi ${f}`:"Xiaomi MiMo",providerSpecificData:{uid:f,baseUrl:a.result.baseUrl||"https://api.xiaomimimo.com/v1",authMethod:"oauth",...b?{provider:"Xiaomi MiMo Desktop"}:{},...j},testStatus:"active"});return(0,h.zg)(k),(0,h.GJ)(),e.NextResponse.json({success:!0,connection:{id:q.id,provider:q.provider,email:q.email,displayName:q.displayName}})}catch(a){return e.NextResponse.json({error:a.message},{status:500})}}if("trae"===i||"windsurf"===i){let b="string"==typeof a?a.trim():"";if(!b)return e.NextResponse.json({error:"Missing token or callback URL"},{status:400});try{let a=await (0,f.exchangeTokens)(i,b,null,null,k),c=await (0,g.createProviderConnection)({provider:i,authType:"windsurf"===i?"api_key":"oauth",...a,expiresAt:a.expiresIn?new Date(Date.now()+1e3*a.expiresIn).toISOString():null,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:c.id,provider:c.provider,email:c.email,displayName:c.displayName}})}catch(a){return e.NextResponse.json({error:a.message},{status:500})}}if(a&&a.startsWith("eyJ")&&a.includes(".")){let{extractCodexAccountInfo:b}=await Promise.resolve().then(c.bind(c,74177)),d=b(a),f={};try{let b=a.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),c=b+"=".repeat((4-b.length%4)%4);f=JSON.parse(Buffer.from(c,"base64").toString("utf8"))}catch{}let h=d.chatgptAccountId||f.account_id,j=d.chatgptPlanType||f.plan_type,k=d.email||f.email,l={authMethod:"access_token"};h&&(l.chatgptAccountId=h),j&&(l.chatgptPlanType=j);let m=await (0,g.createProviderConnection)({provider:i,authType:"access_token",accessToken:a,email:k||null,providerSpecificData:l,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:m.id,provider:m.provider,email:m.email,displayName:m.displayName}})}if(!a||!b||!j&&!["cline","clinepass","kimchi"].includes(i))return e.NextResponse.json({error:"Missing required fields"},{status:400});let m=await (0,f.exchangeTokens)(i,a,b,j,k,l),n=await (0,g.createProviderConnection)({provider:i,authType:"oauth",...m,expiresAt:m.expiresIn?new Date(Date.now()+1e3*m.expiresIn).toISOString():null,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:n.id,provider:n.provider,email:n.email,displayName:n.displayName}})}if("poll"===j){let a,{deviceCode:b,codeVerifier:c,extraData:h}=d;if(!b)return e.NextResponse.json({error:"Missing device code"},{status:400});if(["github","kimi","kimi-coding","kilocode","codebuddy-cn","codebuddy-intl","glm","muse"].includes(i))a=await (0,f.Su)(i,b,null,h);else if("kiro"===i)a=await (0,f.Su)(i,b,null,h);else if("qoder"===i||"qoder-cn"===i){if(!c)return e.NextResponse.json({error:"Missing code verifier"},{status:400});a=await (0,f.Su)(i,b,c,h)}else{if(!c)return e.NextResponse.json({error:"Missing code verifier"},{status:400});a=await (0,f.Su)(i,b,c)}if(a.success){let b="kimi-coding"===i?"kimi":i,c=await (0,g.createProviderConnection)({provider:b,authType:"oauth",...a.tokens,expiresAt:a.tokens.expiresIn?new Date(Date.now()+1e3*a.tokens.expiresIn).toISOString():null,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:c.id,provider:c.provider}})}let j=a.pending||"authorization_pending"===a.error||"slow_down"===a.error;return e.NextResponse.json({success:!1,error:a.error,errorDescription:a.errorDescription,pending:j,...a.fatal?{fatal:!0}:{}})}if("manual-code"===j){if("xai"!==i)return e.NextResponse.json({error:"Manual code only supported for xai"},{status:400});let{code:a,state:b}=d,c=await l(String(a||"").trim(),String(b||"").trim());return e.NextResponse.json({success:!0,connection:c})}return e.NextResponse.json({error:"Unknown action"},{status:400})}catch(a){return console.log("OAuth POST error:",a),e.NextResponse.json({error:a.message},{status:500})}}d()}catch(a){d(a)}})},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},71998:(a,b,c)=>{"use strict";c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,h1:()=>d.h1,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},89718:(a,b,c)=>{"use strict";c.d(b,{Bf:()=>d.Bf,CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Um:()=>d.Um,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,getSettings:()=>d.mt,h1:()=>d.h1,hj:()=>d.hj,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,updateSettings:()=>d.Xx,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(27274)},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")},94755:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}},96487:()=>{},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,7774,5433,682,6070,1329,5781,7274,8920,6306,3225,436,3943,3500,1159,2120,6922,7070,8499,5330,8895,4177,5615],()=>b(b.s=47023));module.exports=c})();
@@ -1 +1 @@
1
- (()=>{var a={};a.id=9120,a.ids=[1998,9120],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},2186:(a,b,c)=>{"use strict";c.d(b,{e3:()=>f,e5:()=>e,nF:()=>d});let d="x-10r-cli-token";function e(a){return a.headers.get(d)||a.headers.get("x-9r-cli-token")||null}function f(a){return a.headers.get("x-10r-password")||a.headers.get("x-9r-password")||null}},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17509:(a,b,c)=>{"use strict";c.d(b,{V:()=>n});var d=c(91356),e=c(80700),f=c(99129),g=c(73575),h=c(41570),i=c(44893),j=c(69052);async function k(a,b,c,i,k,l,m){let n=!1;"function"==typeof c&&(c=await c(k,a),n=!0);let o="string"==typeof m,p=(0,e.q)(l),q=(0,g.xW)(void 0!==i?(0,g.lF)(i):new Uint8Array,(0,g.lF)("."),o?b[2]??=(0,h.Fo)(m,"payload",f.Ye):m),r=(0,h.h2)(a.signature,"signature",f.Ye),s=await (0,j.d)(p,c,"verify");if(!await (0,d.M)(p,s,r,q))throw new f.h2;return[o?(0,h.h2)(m,"payload",f.Ye):m,k,o,s,n]}async function l(a,b,c){if(a instanceof Uint8Array&&(a=g.D0.decode(a)),"string"!=typeof a)throw new f.Ye("Compact JWS must be a string or Uint8Array");let{0:d,1:e,2:j,length:l}=a.split(".");if(3!==l)throw new f.Ye("Invalid Compact JWS");let m=function(a,b=void 0===a?{}:(0,h.OX)(a,f.Ye,"JWS Protected Header is invalid")){return b}(d),[n,o]=function(a,b,c){let d=(0,i.J0)(a,(0,i.nI)(f.Ye,i.qc,c[1],a,b)),e=b.alg;if("string"!=typeof e||!e)throw new f.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(c[0]&&!c[0].has(e))throw new f.Rb('"alg" (Algorithm) Header Parameter value not allowed');return[d,e]}(m,m,b),p=n?e:function(a){try{return(0,g.lF)(a)}catch{throw new f.Ye("JWS Compact Serialization payload must use only ASCII characters")}}(e);return k({payload:e,protected:d,signature:j},b,c,d,m,o,p)}var m=c(17347);async function n(a,b,c){let d=await l(a,[c&&(0,i.Fw)("algorithms",c.algorithms),c?.crit],b);if(!d[2])throw new f.Dp("JWTs MUST NOT use unencoded payload");let e={payload:(0,m.k6)(d[1],d[0],c),protectedHeader:d[1]};return"function"==typeof b?{...e,key:d[3]}:e}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32938:(a,b,c)=>{"use strict";c.r(b),c.d(b,{POST:()=>h});var d=c(23211),e=c(71998),f=c(33792),g=c(2186);async function h(a){let b,c;if(!(0,g.e5)(a)&&!await (0,f.nz)((0,g.e3)(a)))return d.NextResponse.json({error:"Invalid password"},{status:401});try{b=await a.json()}catch(a){return d.NextResponse.json({error:`Invalid JSON body: ${a.message}`},{status:400})}if(!Array.isArray(c=Array.isArray(b)?b:b&&"object"==typeof b&&Array.isArray(b.accounts)?b.accounts:b&&"object"==typeof b?[b]:null)||0===c.length)return d.NextResponse.json({error:"No accounts provided"},{status:400});let h=a=>{try{let b=String(a).split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),c=b+"=".repeat((4-b.length%4)%4);return JSON.parse(Buffer.from(c,"base64").toString("utf8"))}catch{return null}},i=a=>"string"==typeof a&&(a.includes("codebuddy.cn")||a.includes("copilot.tencent.com")),j=await (0,e.getProviderConnections)({provider:"codebuddy-cn"}),k=[],l=0,m=0,n=0,o=0;for(let a=0;a<c.length;a++){let b=c[a];try{if(!b||"object"!=typeof b||Array.isArray(b))throw Error("Item is not an object");let{id:c,provider:d,authType:f,createdAt:g,updatedAt:o,auth_raw:p,profile_raw:q,domain:r,...s}=b,t=s.accessToken||s.access_token||p?.accessToken||b?.access_token;if(!t||"string"!=typeof t)throw Error("Missing accessToken");let u=h(t),v=u?.iss||r||"";if(!i(v)){k.push({index:a,ok:!0,skipped:!0,reason:`issuer not CodeBuddy CN: ${v}`}),n++;continue}let w=s.nickname||u?.nickname||u?.preferred_username||null,x=s.refreshToken||s.refresh_token||p?.refreshToken||b?.refresh_token||null,y=null,z=null;if(u&&"number"==typeof u.exp&&u.exp>0)y=new Date(1e3*u.exp).toISOString();else if("number"==typeof s.expiresAt)y=new Date(s.expiresAt).toISOString();else if("string"!=typeof s.expiresAt||Number.isNaN(Date.parse(s.expiresAt))){let a=s.expiresIn||p?.expiresIn;"number"==typeof a&&a>0&&a<1e8&&(y=new Date(Date.now()+1e3*a).toISOString())}else y=new Date(s.expiresAt).toISOString();"number"==typeof s.expiresIn&&s.expiresIn>0&&(z=s.expiresIn);let A=s.email||null,B=u?.sub||null,C=null;if(B)for(let a of j){let b=h(a.accessToken);if(b?.sub===B){C=a;break}}!C&&w&&(C=j.find(a=>a.name===w)||null);let D={provider:"codebuddy-cn",authType:"oauth",accessToken:t,refreshToken:x,name:w||void 0,email:A||void 0,expiresAt:y||void 0,expiresIn:z||void 0,testStatus:"active"};if(C)await (0,e.updateProviderConnection)(C.id,D),m++,k.push({index:a,ok:!0,updated:!0,id:C.id});else{let b=await (0,e.createProviderConnection)(D);j.push(b),l++,k.push({index:a,ok:!0,created:!0,id:b.id})}}catch(b){k.push({index:a,ok:!1,error:b.message||"Unknown error"}),o++}}return d.NextResponse.json({imported:l,updated:m,skipped:n,failed:o,results:k})}},33792:(a,b,c)=>{"use strict";c.d(b,{Dc:()=>w,I_:()=>r,XH:()=>q,YK:()=>u,dY:()=>x,mx:()=>z,nz:()=>A,tm:()=>y});var d=c(8292),e=c(17509),f=c(34013),g=c(73024),h=c.n(g),i=c(76760),j=c.n(i),k=c(77598),l=c.n(k),m=c(49120),n=c(89718),o=c(77134);function p(){let a=process.env.INITIAL_PASSWORD;return"string"==typeof a?a.trim():""}function q(a){return!!p()||r(a)}function r(a){return!!(a?.password||String(a?.oidcIssuerUrl||"").trim()&&String(a?.oidcClientId||"").trim()&&String(a?.oidcClientSecret||"").trim())||!!(a?.samlEntryPoint&&a?.samlCert)}let s=new Set(["change-me-to-a-long-random-secret","10router-default-secret-change-me","change-me-to-a-random-string","change-me"]),t=new TextEncoder().encode(function(){let a=process.env.JWT_SECRET;if(a){if(!s.has(a))return a;console.warn("[auth] JWT_SECRET is a known placeholder value — ignoring it. Leave JWT_SECRET unset (a random secret is generated to "+j().join(m.nJ,"jwt-secret")+") or set a long random value.")}let b=j().join(m.nJ,"jwt-secret");try{return h().readFileSync(b,"utf8").trim()}catch{}h().mkdirSync(m.nJ,{recursive:!0});let c=l().randomBytes(32).toString("hex");return h().writeFileSync(b,c,{mode:384}),(0,o.E)(b),c}());function u(a){let b="true"===process.env.AUTH_COOKIE_SECURE,c=String(a?.headers?.get?.("x-forwarded-proto")||"").split(",")[0].trim().toLowerCase();return b||"https"===c}async function v(a={}){let b=Math.floor(Date.now()/1e3);return new d.P({authenticated:!0,origIat:b,...a}).setProtectedHeader({alg:"HS256"}).setIssuedAt().setExpirationTime("7200s").sign(t)}async function w(a){if(!a)return!1;try{return await (0,e.V)(a,t),!0}catch{return!1}}async function x(a){if(!a)return null;try{let{payload:b}=await (0,e.V)(a,t);return b}catch{return null}}async function y(a,b,c={}){let d=await v(c);a.set("auth_token",d,{httpOnly:!0,secure:u(b),sameSite:"lax",path:"/",maxAge:7200})}async function z(a,b,c){try{let d,e,f="number"==typeof c?.iat?1e3*c.iat:0;if(!f)return!1;let g=(d="number"==typeof c?.origIat?c.origIat:null,e="number"==typeof c?.iat?c.iat:null,d??e);if(g&&Math.floor(Date.now()/1e3)-g>=2592e3||Date.now()-f<36e5)return!1;return await y(a,b,{...g?{origIat:g}:{},...c?.oidcName?{oidcName:c.oidcName}:{},...c?.oidcEmail?{oidcEmail:c.oidcEmail}:{},...c?.samlName?{samlName:c.samlName}:{},...c?.samlEmail?{samlEmail:c.samlEmail}:{},...c?.oidc?{oidc:!0}:{},...c?.saml?{saml:!0}:{}}),!0}catch{return!1}}async function A(a){if("string"!=typeof a||!a)return!1;let b=await (0,n.getSettings)(),c=b?.password;if(c)return f.Ay.compare(a,c);let d=p();return!!d&&a===d}},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},54038:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/codebuddy-cn/bulk-import/route",pathname:"/api/oauth/codebuddy-cn/bulk-import",filename:"route",bundlePath:"app/api/oauth/codebuddy-cn/bulk-import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"F:\\Files\\GitHub Files\\10router\\src\\app\\api\\oauth\\codebuddy-cn\\bulk-import\\route.js",nextConfigOutput:"standalone",userland:()=>c(32938),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/codebuddy-cn/bulk-import/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{"use strict";c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,h1:()=>d.h1,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{"use strict";a.exports=require("node:fs")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},80099:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},89718:(a,b,c)=>{"use strict";c.d(b,{Bf:()=>d.Bf,CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Um:()=>d.Um,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,getSettings:()=>d.mt,h1:()=>d.h1,hj:()=>d.hj,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,updateSettings:()=>d.Xx,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(27274)},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,2391,8292,682,6070,1329,5781,7274],()=>b(b.s=54038));module.exports=c})();
1
+ (()=>{var a={};a.id=9120,a.ids=[1998,9120],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},2186:(a,b,c)=>{"use strict";c.d(b,{e3:()=>f,e5:()=>e,nF:()=>d});let d="x-10r-cli-token";function e(a){return a.headers.get(d)||a.headers.get("x-9r-cli-token")||null}function f(a){return a.headers.get("x-10r-password")||a.headers.get("x-9r-password")||null}},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17509:(a,b,c)=>{"use strict";c.d(b,{V:()=>n});var d=c(91356),e=c(80700),f=c(99129),g=c(73575),h=c(41570),i=c(44893),j=c(69052);async function k(a,b,c,i,k,l,m){let n=!1;"function"==typeof c&&(c=await c(k,a),n=!0);let o="string"==typeof m,p=(0,e.q)(l),q=(0,g.xW)(void 0!==i?(0,g.lF)(i):new Uint8Array,(0,g.lF)("."),o?b[2]??=(0,h.Fo)(m,"payload",f.Ye):m),r=(0,h.h2)(a.signature,"signature",f.Ye),s=await (0,j.d)(p,c,"verify");if(!await (0,d.M)(p,s,r,q))throw new f.h2;return[o?(0,h.h2)(m,"payload",f.Ye):m,k,o,s,n]}async function l(a,b,c){if(a instanceof Uint8Array&&(a=g.D0.decode(a)),"string"!=typeof a)throw new f.Ye("Compact JWS must be a string or Uint8Array");let{0:d,1:e,2:j,length:l}=a.split(".");if(3!==l)throw new f.Ye("Invalid Compact JWS");let m=function(a,b=void 0===a?{}:(0,h.OX)(a,f.Ye,"JWS Protected Header is invalid")){return b}(d),[n,o]=function(a,b,c){let d=(0,i.J0)(a,(0,i.nI)(f.Ye,i.qc,c[1],a,b)),e=b.alg;if("string"!=typeof e||!e)throw new f.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(c[0]&&!c[0].has(e))throw new f.Rb('"alg" (Algorithm) Header Parameter value not allowed');return[d,e]}(m,m,b),p=n?e:function(a){try{return(0,g.lF)(a)}catch{throw new f.Ye("JWS Compact Serialization payload must use only ASCII characters")}}(e);return k({payload:e,protected:d,signature:j},b,c,d,m,o,p)}var m=c(17347);async function n(a,b,c){let d=await l(a,[c&&(0,i.Fw)("algorithms",c.algorithms),c?.crit],b);if(!d[2])throw new f.Dp("JWTs MUST NOT use unencoded payload");let e={payload:(0,m.k6)(d[1],d[0],c),protectedHeader:d[1]};return"function"==typeof b?{...e,key:d[3]}:e}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32938:(a,b,c)=>{"use strict";c.r(b),c.d(b,{POST:()=>h});var d=c(23211),e=c(71998),f=c(33792),g=c(2186);async function h(a){let b,c;if(!(0,g.e5)(a)&&!await (0,f.nz)((0,g.e3)(a)))return d.NextResponse.json({error:"Invalid password"},{status:401});try{b=await a.json()}catch(a){return d.NextResponse.json({error:`Invalid JSON body: ${a.message}`},{status:400})}if(!Array.isArray(c=Array.isArray(b)?b:b&&"object"==typeof b&&Array.isArray(b.accounts)?b.accounts:b&&"object"==typeof b?[b]:null)||0===c.length)return d.NextResponse.json({error:"No accounts provided"},{status:400});let h=a=>{try{let b=String(a).split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),c=b+"=".repeat((4-b.length%4)%4);return JSON.parse(Buffer.from(c,"base64").toString("utf8"))}catch{return null}},i=a=>"string"==typeof a&&(a.includes("codebuddy.cn")||a.includes("copilot.tencent.com")),j=await (0,e.getProviderConnections)({provider:"codebuddy-cn"}),k=[],l=0,m=0,n=0,o=0;for(let a=0;a<c.length;a++){let b=c[a];try{if(!b||"object"!=typeof b||Array.isArray(b))throw Error("Item is not an object");let{id:c,provider:d,authType:f,createdAt:g,updatedAt:o,auth_raw:p,profile_raw:q,domain:r,...s}=b,t=s.accessToken||s.access_token||p?.accessToken||b?.access_token;if(!t||"string"!=typeof t)throw Error("Missing accessToken");let u=h(t),v=u?.iss||r||"";if(!i(v)){k.push({index:a,ok:!0,skipped:!0,reason:`issuer not CodeBuddy CN: ${v}`}),n++;continue}let w=s.nickname||u?.nickname||u?.preferred_username||null,x=s.refreshToken||s.refresh_token||p?.refreshToken||b?.refresh_token||null,y=null,z=null;if(u&&"number"==typeof u.exp&&u.exp>0)y=new Date(1e3*u.exp).toISOString();else if("number"==typeof s.expiresAt)y=new Date(s.expiresAt).toISOString();else if("string"!=typeof s.expiresAt||Number.isNaN(Date.parse(s.expiresAt))){let a=s.expiresIn||p?.expiresIn;"number"==typeof a&&a>0&&a<1e8&&(y=new Date(Date.now()+1e3*a).toISOString())}else y=new Date(s.expiresAt).toISOString();"number"==typeof s.expiresIn&&s.expiresIn>0&&(z=s.expiresIn);let A=s.email||null,B=u?.sub||null,C=null;if(B)for(let a of j){let b=h(a.accessToken);if(b?.sub===B){C=a;break}}!C&&w&&(C=j.find(a=>a.name===w)||null);let D={provider:"codebuddy-cn",authType:"oauth",accessToken:t,refreshToken:x,name:w||void 0,email:A||void 0,expiresAt:y||void 0,expiresIn:z||void 0,testStatus:"active"};if(C)await (0,e.updateProviderConnection)(C.id,D),m++,k.push({index:a,ok:!0,updated:!0,id:C.id});else{let b=await (0,e.createProviderConnection)(D);j.push(b),l++,k.push({index:a,ok:!0,created:!0,id:b.id})}}catch(b){k.push({index:a,ok:!1,error:b.message||"Unknown error"}),o++}}return d.NextResponse.json({imported:l,updated:m,skipped:n,failed:o,results:k})}},33792:(a,b,c)=>{"use strict";c.d(b,{Dc:()=>w,I_:()=>r,XH:()=>q,YK:()=>u,dY:()=>x,mx:()=>z,nz:()=>A,tm:()=>y});var d=c(8292),e=c(17509),f=c(34013),g=c(73024),h=c.n(g),i=c(76760),j=c.n(i),k=c(77598),l=c.n(k),m=c(49120),n=c(89718),o=c(77134);function p(){let a=process.env.INITIAL_PASSWORD;return"string"==typeof a?a.trim():""}function q(a){return!!p()||r(a)}function r(a){return!!(a?.password||String(a?.oidcIssuerUrl||"").trim()&&String(a?.oidcClientId||"").trim()&&String(a?.oidcClientSecret||"").trim())||!!(a?.samlEntryPoint&&a?.samlCert)}let s=new Set(["change-me-to-a-long-random-secret","10router-default-secret-change-me","change-me-to-a-random-string","change-me"]),t=new TextEncoder().encode(function(){let a=process.env.JWT_SECRET;if(a){if(!s.has(a))return a;console.warn("[auth] JWT_SECRET is a known placeholder value — ignoring it. Leave JWT_SECRET unset (a random secret is generated to "+j().join(m.nJ,"jwt-secret")+") or set a long random value.")}let b=j().join(m.nJ,"jwt-secret");try{return h().readFileSync(b,"utf8").trim()}catch{}h().mkdirSync(m.nJ,{recursive:!0});let c=l().randomBytes(32).toString("hex");return h().writeFileSync(b,c,{mode:384}),(0,o.E)(b),c}());function u(a){let b="true"===process.env.AUTH_COOKIE_SECURE,c=String(a?.headers?.get?.("x-forwarded-proto")||"").split(",")[0].trim().toLowerCase();return b||"https"===c}async function v(a={}){let b=Math.floor(Date.now()/1e3);return new d.P({authenticated:!0,origIat:b,...a}).setProtectedHeader({alg:"HS256"}).setIssuedAt().setExpirationTime("7200s").sign(t)}async function w(a){if(!a)return!1;try{return await (0,e.V)(a,t),!0}catch{return!1}}async function x(a){if(!a)return null;try{let{payload:b}=await (0,e.V)(a,t);return b}catch{return null}}async function y(a,b,c={}){let d=await v(c);a.set("auth_token",d,{httpOnly:!0,secure:u(b),sameSite:"lax",path:"/",maxAge:7200})}async function z(a,b,c){try{let d,e,f="number"==typeof c?.iat?1e3*c.iat:0;if(!f)return!1;let g=(d="number"==typeof c?.origIat?c.origIat:null,e="number"==typeof c?.iat?c.iat:null,d??e);if(g&&Math.floor(Date.now()/1e3)-g>=2592e3||Date.now()-f<36e5)return!1;return await y(a,b,{...g?{origIat:g}:{},...c?.oidcName?{oidcName:c.oidcName}:{},...c?.oidcEmail?{oidcEmail:c.oidcEmail}:{},...c?.samlName?{samlName:c.samlName}:{},...c?.samlEmail?{samlEmail:c.samlEmail}:{},...c?.oidc?{oidc:!0}:{},...c?.saml?{saml:!0}:{}}),!0}catch{return!1}}async function A(a){if("string"!=typeof a||!a)return!1;let b=await (0,n.getSettings)(),c=b?.password;if(c)return f.Ay.compare(a,c);let d=p();return!!d&&a===d}},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},65715:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/codebuddy-cn/bulk-import/route",pathname:"/api/oauth/codebuddy-cn/bulk-import",filename:"route",bundlePath:"app/api/oauth/codebuddy-cn/bulk-import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"F:\\Files\\GitHub Files\\10router\\src\\app\\api\\oauth\\codebuddy-cn\\bulk-import\\route.js",nextConfigOutput:"standalone",userland:()=>c(32938),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/codebuddy-cn/bulk-import/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},71998:(a,b,c)=>{"use strict";c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,h1:()=>d.h1,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{"use strict";a.exports=require("node:fs")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},80099:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},89718:(a,b,c)=>{"use strict";c.d(b,{Bf:()=>d.Bf,CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Um:()=>d.Um,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,getSettings:()=>d.mt,h1:()=>d.h1,hj:()=>d.hj,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,updateSettings:()=>d.Xx,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(27274)},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,2391,8292,682,6070,1329,5781,7274],()=>b(b.s=65715));module.exports=c})();
@@ -1 +1 @@
1
- (()=>{var a={};a.id=371,a.ids=[371],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},36262:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/codebuddy-cn/checkin/route",pathname:"/api/oauth/codebuddy-cn/checkin",filename:"route",bundlePath:"app/api/oauth/codebuddy-cn/checkin/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"F:\\Files\\GitHub Files\\10router\\src\\app\\api\\oauth\\codebuddy-cn\\checkin\\route.js",nextConfigOutput:"standalone",userland:()=>c(47883),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/codebuddy-cn/checkin/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{"use strict";a.exports=require("sql.js")},47883:(a,b,c)=>{"use strict";c.r(b),c.d(b,{POST:()=>e});var d=c(23211);async function e(){try{let{runCodebuddyCheckinTick:a}=await c.e(6326).then(c.bind(c,46326)),b=await a();return d.NextResponse.json({success:!0,results:b})}catch(a){return console.log("Error running CodeBuddy CN check-in:",a.message),d.NextResponse.json({success:!1,error:a.message},{status:500})}}},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=36262));module.exports=c})();
1
+ (()=>{var a={};a.id=371,a.ids=[371],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{"use strict";a.exports=require("sql.js")},47883:(a,b,c)=>{"use strict";c.r(b),c.d(b,{POST:()=>e});var d=c(23211);async function e(){try{let{runCodebuddyCheckinTick:a}=await c.e(6326).then(c.bind(c,46326)),b=await a();return d.NextResponse.json({success:!0,results:b})}catch(a){return console.log("Error running CodeBuddy CN check-in:",a.message),d.NextResponse.json({success:!1,error:a.message},{status:500})}}},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},54947:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/codebuddy-cn/checkin/route",pathname:"/api/oauth/codebuddy-cn/checkin",filename:"route",bundlePath:"app/api/oauth/codebuddy-cn/checkin/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"F:\\Files\\GitHub Files\\10router\\src\\app\\api\\oauth\\codebuddy-cn\\checkin\\route.js",nextConfigOutput:"standalone",userland:()=>c(47883),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/codebuddy-cn/checkin/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=54947));module.exports=c})();