omniroute 2.8.1 → 2.8.2

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 (352) hide show
  1. package/app/.next/BUILD_ID +1 -1
  2. package/app/.next/app-path-routes-manifest.json +1 -0
  3. package/app/.next/build-manifest.json +2 -2
  4. package/app/.next/prerender-manifest.json +3 -3
  5. package/app/.next/routes-manifest.json +6 -0
  6. package/app/.next/server/app/(dashboard)/dashboard/a2a/page.js +1 -1
  7. package/app/.next/server/app/(dashboard)/dashboard/a2a/page.js.nft.json +1 -1
  8. package/app/.next/server/app/(dashboard)/dashboard/a2a/page_client-reference-manifest.js +1 -1
  9. package/app/.next/server/app/(dashboard)/dashboard/agents/page.js +1 -1
  10. package/app/.next/server/app/(dashboard)/dashboard/agents/page.js.nft.json +1 -1
  11. package/app/.next/server/app/(dashboard)/dashboard/agents/page_client-reference-manifest.js +1 -1
  12. package/app/.next/server/app/(dashboard)/dashboard/analytics/page.js +1 -1
  13. package/app/.next/server/app/(dashboard)/dashboard/analytics/page.js.nft.json +1 -1
  14. package/app/.next/server/app/(dashboard)/dashboard/analytics/page_client-reference-manifest.js +1 -1
  15. package/app/.next/server/app/(dashboard)/dashboard/api-manager/page.js +1 -1
  16. package/app/.next/server/app/(dashboard)/dashboard/api-manager/page.js.nft.json +1 -1
  17. package/app/.next/server/app/(dashboard)/dashboard/api-manager/page_client-reference-manifest.js +1 -1
  18. package/app/.next/server/app/(dashboard)/dashboard/audit-log/page.js +1 -1
  19. package/app/.next/server/app/(dashboard)/dashboard/audit-log/page.js.nft.json +1 -1
  20. package/app/.next/server/app/(dashboard)/dashboard/audit-log/page_client-reference-manifest.js +1 -1
  21. package/app/.next/server/app/(dashboard)/dashboard/auto-combo/page.js +1 -1
  22. package/app/.next/server/app/(dashboard)/dashboard/auto-combo/page.js.nft.json +1 -1
  23. package/app/.next/server/app/(dashboard)/dashboard/auto-combo/page_client-reference-manifest.js +1 -1
  24. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  25. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  26. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  27. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  28. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  29. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  30. package/app/.next/server/app/(dashboard)/dashboard/costs/page.js +1 -1
  31. package/app/.next/server/app/(dashboard)/dashboard/costs/page.js.nft.json +1 -1
  32. package/app/.next/server/app/(dashboard)/dashboard/costs/page_client-reference-manifest.js +1 -1
  33. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  34. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  35. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  36. package/app/.next/server/app/(dashboard)/dashboard/health/page.js +1 -1
  37. package/app/.next/server/app/(dashboard)/dashboard/health/page.js.nft.json +1 -1
  38. package/app/.next/server/app/(dashboard)/dashboard/health/page_client-reference-manifest.js +1 -1
  39. package/app/.next/server/app/(dashboard)/dashboard/limits/page.js +1 -1
  40. package/app/.next/server/app/(dashboard)/dashboard/limits/page.js.nft.json +1 -1
  41. package/app/.next/server/app/(dashboard)/dashboard/limits/page_client-reference-manifest.js +1 -1
  42. package/app/.next/server/app/(dashboard)/dashboard/logs/page.js +1 -1
  43. package/app/.next/server/app/(dashboard)/dashboard/logs/page.js.nft.json +1 -1
  44. package/app/.next/server/app/(dashboard)/dashboard/logs/page_client-reference-manifest.js +1 -1
  45. package/app/.next/server/app/(dashboard)/dashboard/mcp/page.js +1 -1
  46. package/app/.next/server/app/(dashboard)/dashboard/mcp/page.js.nft.json +1 -1
  47. package/app/.next/server/app/(dashboard)/dashboard/mcp/page_client-reference-manifest.js +1 -1
  48. package/app/.next/server/app/(dashboard)/dashboard/media/page.js +1 -1
  49. package/app/.next/server/app/(dashboard)/dashboard/media/page.js.nft.json +1 -1
  50. package/app/.next/server/app/(dashboard)/dashboard/media/page_client-reference-manifest.js +1 -1
  51. package/app/.next/server/app/(dashboard)/dashboard/onboarding/page.js +1 -1
  52. package/app/.next/server/app/(dashboard)/dashboard/onboarding/page.js.nft.json +1 -1
  53. package/app/.next/server/app/(dashboard)/dashboard/onboarding/page_client-reference-manifest.js +1 -1
  54. package/app/.next/server/app/(dashboard)/dashboard/page.js +1 -1
  55. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  56. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  57. package/app/.next/server/app/(dashboard)/dashboard/playground/page.js +1 -1
  58. package/app/.next/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  59. package/app/.next/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  60. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  61. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  62. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  63. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +1 -1
  64. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  65. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  66. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  67. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  68. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  69. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  70. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  71. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  72. package/app/.next/server/app/(dashboard)/dashboard/search-tools/page.js +1 -1
  73. package/app/.next/server/app/(dashboard)/dashboard/search-tools/page.js.nft.json +1 -1
  74. package/app/.next/server/app/(dashboard)/dashboard/search-tools/page_client-reference-manifest.js +1 -1
  75. package/app/.next/server/app/(dashboard)/dashboard/settings/page.js +1 -1
  76. package/app/.next/server/app/(dashboard)/dashboard/settings/page.js.nft.json +1 -1
  77. package/app/.next/server/app/(dashboard)/dashboard/settings/page_client-reference-manifest.js +1 -1
  78. package/app/.next/server/app/(dashboard)/dashboard/settings/pricing/page.js +1 -1
  79. package/app/.next/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  80. package/app/.next/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  81. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  82. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  83. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  84. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  85. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  86. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  87. package/app/.next/server/app/400/page.js +1 -1
  88. package/app/.next/server/app/400/page.js.nft.json +1 -1
  89. package/app/.next/server/app/400/page_client-reference-manifest.js +1 -1
  90. package/app/.next/server/app/401/page.js +1 -1
  91. package/app/.next/server/app/401/page.js.nft.json +1 -1
  92. package/app/.next/server/app/401/page_client-reference-manifest.js +1 -1
  93. package/app/.next/server/app/403/page.js +1 -1
  94. package/app/.next/server/app/403/page.js.nft.json +1 -1
  95. package/app/.next/server/app/403/page_client-reference-manifest.js +1 -1
  96. package/app/.next/server/app/408/page.js +1 -1
  97. package/app/.next/server/app/408/page.js.nft.json +1 -1
  98. package/app/.next/server/app/408/page_client-reference-manifest.js +1 -1
  99. package/app/.next/server/app/429/page.js +1 -1
  100. package/app/.next/server/app/429/page.js.nft.json +1 -1
  101. package/app/.next/server/app/429/page_client-reference-manifest.js +1 -1
  102. package/app/.next/server/app/500/page.js +1 -1
  103. package/app/.next/server/app/500/page.js.nft.json +1 -1
  104. package/app/.next/server/app/500/page_client-reference-manifest.js +1 -1
  105. package/app/.next/server/app/502/page.js +1 -1
  106. package/app/.next/server/app/502/page.js.nft.json +1 -1
  107. package/app/.next/server/app/502/page_client-reference-manifest.js +1 -1
  108. package/app/.next/server/app/503/page.js +1 -1
  109. package/app/.next/server/app/503/page.js.nft.json +1 -1
  110. package/app/.next/server/app/503/page_client-reference-manifest.js +1 -1
  111. package/app/.next/server/app/_global-error/page.js +1 -1
  112. package/app/.next/server/app/_global-error/page.js.nft.json +1 -1
  113. package/app/.next/server/app/_global-error.html +2 -2
  114. package/app/.next/server/app/_global-error.rsc +1 -1
  115. package/app/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  116. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  117. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  118. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  119. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  120. package/app/.next/server/app/_not-found/page.js +1 -1
  121. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  122. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  123. package/app/.next/server/app/api/acp/agents/route.js.nft.json +1 -1
  124. package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  125. package/app/.next/server/app/api/cache/route.js.nft.json +1 -1
  126. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  127. package/app/.next/server/app/api/cli-tools/backups/route.js +1 -1
  128. package/app/.next/server/app/api/cli-tools/backups/route.js.nft.json +1 -1
  129. package/app/.next/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  130. package/app/.next/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  131. package/app/.next/server/app/api/cli-tools/codex-profiles/route.js +1 -1
  132. package/app/.next/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  133. package/app/.next/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  134. package/app/.next/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  135. package/app/.next/server/app/api/cli-tools/guide-settings/[toolId]/route.js +1 -1
  136. package/app/.next/server/app/api/cli-tools/guide-settings/[toolId]/route.js.nft.json +1 -1
  137. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  138. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  139. package/app/.next/server/app/api/cli-tools/runtime/[toolId]/route.js +1 -1
  140. package/app/.next/server/app/api/cli-tools/runtime/[toolId]/route.js.nft.json +1 -1
  141. package/app/.next/server/app/api/cli-tools/status/route.js.nft.json +1 -1
  142. package/app/.next/server/app/api/cloud/auth/route.js.nft.json +1 -1
  143. package/app/.next/server/app/api/cloud/credentials/update/route.js.nft.json +1 -1
  144. package/app/.next/server/app/api/cloud/model/resolve/route.js.nft.json +1 -1
  145. package/app/.next/server/app/api/cloud/models/alias/route.js.nft.json +1 -1
  146. package/app/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
  147. package/app/.next/server/app/api/combos/route.js.nft.json +1 -1
  148. package/app/.next/server/app/api/combos/test/route.js.nft.json +1 -1
  149. package/app/.next/server/app/api/compliance/audit-log/route.js.nft.json +1 -1
  150. package/app/.next/server/app/api/db-backups/export/route.js.nft.json +1 -1
  151. package/app/.next/server/app/api/db-backups/exportAll/route.js.nft.json +1 -1
  152. package/app/.next/server/app/api/db-backups/import/route.js.nft.json +1 -1
  153. package/app/.next/server/app/api/db-backups/route.js.nft.json +1 -1
  154. package/app/.next/server/app/api/fallback/chains/route.js.nft.json +1 -1
  155. package/app/.next/server/app/api/init/route.js.nft.json +1 -1
  156. package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
  157. package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
  158. package/app/.next/server/app/api/logs/console/route.js.nft.json +1 -1
  159. package/app/.next/server/app/api/logs/detail/route.js.nft.json +1 -1
  160. package/app/.next/server/app/api/logs/export/route/app-paths-manifest.json +3 -0
  161. package/app/.next/server/app/api/logs/export/route/build-manifest.json +11 -0
  162. package/app/.next/server/app/api/logs/export/route/server-reference-manifest.json +4 -0
  163. package/app/.next/server/app/api/logs/export/route.js +7 -0
  164. package/app/.next/server/app/api/logs/export/route.js.map +5 -0
  165. package/app/.next/server/app/api/logs/export/route.js.nft.json +1 -0
  166. package/app/.next/server/app/api/logs/export/route_client-reference-manifest.js +2 -0
  167. package/app/.next/server/app/api/mcp/sse/route.js.nft.json +1 -1
  168. package/app/.next/server/app/api/mcp/status/route.js.nft.json +1 -1
  169. package/app/.next/server/app/api/mcp/stream/route.js.nft.json +1 -1
  170. package/app/.next/server/app/api/models/alias/route.js.nft.json +1 -1
  171. package/app/.next/server/app/api/models/catalog/route.js.nft.json +1 -1
  172. package/app/.next/server/app/api/models/openrouter-catalog/route.js.nft.json +1 -1
  173. package/app/.next/server/app/api/models/route.js.nft.json +1 -1
  174. package/app/.next/server/app/api/monitoring/health/route.js.nft.json +1 -1
  175. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  176. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  177. package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  178. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  179. package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  180. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  181. package/app/.next/server/app/api/policies/route.js.nft.json +1 -1
  182. package/app/.next/server/app/api/pricing/models/route.js.nft.json +1 -1
  183. package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
  184. package/app/.next/server/app/api/pricing/sync/route.js.nft.json +1 -1
  185. package/app/.next/server/app/api/provider-metrics/route.js.nft.json +1 -1
  186. package/app/.next/server/app/api/provider-models/route.js.nft.json +1 -1
  187. package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  188. package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
  189. package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  190. package/app/.next/server/app/api/providers/[id]/refresh/route.js.nft.json +1 -1
  191. package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
  192. package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  193. package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
  194. package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
  195. package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  196. package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
  197. package/app/.next/server/app/api/rate-limits/route.js.nft.json +1 -1
  198. package/app/.next/server/app/api/resilience/reset/route.js.nft.json +1 -1
  199. package/app/.next/server/app/api/resilience/route.js.nft.json +1 -1
  200. package/app/.next/server/app/api/search/providers/route.js.nft.json +1 -1
  201. package/app/.next/server/app/api/search/stats/route.js.nft.json +1 -1
  202. package/app/.next/server/app/api/settings/background-degradation/route.js.nft.json +1 -1
  203. package/app/.next/server/app/api/settings/codex-service-tier/route.js.nft.json +1 -1
  204. package/app/.next/server/app/api/settings/combo-defaults/route.js.nft.json +1 -1
  205. package/app/.next/server/app/api/settings/model-aliases/route.js.nft.json +1 -1
  206. package/app/.next/server/app/api/settings/proxies/assignments/route.js.nft.json +1 -1
  207. package/app/.next/server/app/api/settings/proxies/bulk-assign/route.js.nft.json +1 -1
  208. package/app/.next/server/app/api/settings/proxies/health/route.js.nft.json +1 -1
  209. package/app/.next/server/app/api/settings/proxies/migrate/route.js.nft.json +1 -1
  210. package/app/.next/server/app/api/settings/proxies/route.js.nft.json +1 -1
  211. package/app/.next/server/app/api/settings/proxy/route.js.nft.json +1 -1
  212. package/app/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
  213. package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
  214. package/app/.next/server/app/api/settings/system-prompt/route.js.nft.json +1 -1
  215. package/app/.next/server/app/api/settings/task-routing/route.js.nft.json +1 -1
  216. package/app/.next/server/app/api/settings/thinking-budget/route.js.nft.json +1 -1
  217. package/app/.next/server/app/api/storage/health/route.js +1 -1
  218. package/app/.next/server/app/api/storage/health/route.js.nft.json +1 -1
  219. package/app/.next/server/app/api/sync/cloud/route.js.nft.json +1 -1
  220. package/app/.next/server/app/api/sync/initialize/route.js.nft.json +1 -1
  221. package/app/.next/server/app/api/system/version/route.js.nft.json +1 -1
  222. package/app/.next/server/app/api/token-health/route.js.nft.json +1 -1
  223. package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
  224. package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
  225. package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  226. package/app/.next/server/app/api/usage/analytics/route.js.nft.json +1 -1
  227. package/app/.next/server/app/api/usage/budget/route.js.nft.json +1 -1
  228. package/app/.next/server/app/api/usage/call-logs/[id]/route.js.nft.json +1 -1
  229. package/app/.next/server/app/api/usage/call-logs/route.js.nft.json +1 -1
  230. package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
  231. package/app/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
  232. package/app/.next/server/app/api/usage/proxy-logs/route.js.nft.json +1 -1
  233. package/app/.next/server/app/api/usage/quota/route.js.nft.json +1 -1
  234. package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  235. package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  236. package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  237. package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  238. package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  239. package/app/.next/server/app/api/v1/completions/route.js.nft.json +1 -1
  240. package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  241. package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  242. package/app/.next/server/app/api/v1/management/proxies/assignments/route.js.nft.json +1 -1
  243. package/app/.next/server/app/api/v1/management/proxies/bulk-assign/route.js.nft.json +1 -1
  244. package/app/.next/server/app/api/v1/management/proxies/health/route.js.nft.json +1 -1
  245. package/app/.next/server/app/api/v1/management/proxies/route.js.nft.json +1 -1
  246. package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
  247. package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
  248. package/app/.next/server/app/api/v1/moderations/route.js.nft.json +1 -1
  249. package/app/.next/server/app/api/v1/music/generations/route.js.nft.json +1 -1
  250. package/app/.next/server/app/api/v1/providers/[provider]/chat/completions/route.js.nft.json +1 -1
  251. package/app/.next/server/app/api/v1/providers/[provider]/embeddings/route.js.nft.json +1 -1
  252. package/app/.next/server/app/api/v1/providers/[provider]/images/generations/route.js.nft.json +1 -1
  253. package/app/.next/server/app/api/v1/rerank/route.js.nft.json +1 -1
  254. package/app/.next/server/app/api/v1/responses/[...path]/route.js.nft.json +1 -1
  255. package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
  256. package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
  257. package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -1
  258. package/app/.next/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  259. package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  260. package/app/.next/server/app/callback/page.js +1 -1
  261. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  262. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  263. package/app/.next/server/app/docs/page.js +1 -1
  264. package/app/.next/server/app/docs/page.js.nft.json +1 -1
  265. package/app/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  266. package/app/.next/server/app/forbidden/page.js +1 -1
  267. package/app/.next/server/app/forbidden/page.js.nft.json +1 -1
  268. package/app/.next/server/app/forbidden/page_client-reference-manifest.js +1 -1
  269. package/app/.next/server/app/forgot-password/page.js +1 -1
  270. package/app/.next/server/app/forgot-password/page.js.nft.json +1 -1
  271. package/app/.next/server/app/forgot-password/page_client-reference-manifest.js +1 -1
  272. package/app/.next/server/app/landing/page.js +1 -1
  273. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  274. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  275. package/app/.next/server/app/login/page.js +1 -1
  276. package/app/.next/server/app/login/page.js.nft.json +1 -1
  277. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  278. package/app/.next/server/app/maintenance/page.js +1 -1
  279. package/app/.next/server/app/maintenance/page.js.nft.json +1 -1
  280. package/app/.next/server/app/maintenance/page_client-reference-manifest.js +1 -1
  281. package/app/.next/server/app/offline/page.js +1 -1
  282. package/app/.next/server/app/offline/page.js.nft.json +1 -1
  283. package/app/.next/server/app/offline/page_client-reference-manifest.js +1 -1
  284. package/app/.next/server/app/page.js +1 -1
  285. package/app/.next/server/app/page.js.nft.json +1 -1
  286. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  287. package/app/.next/server/app/privacy/page.js +1 -1
  288. package/app/.next/server/app/privacy/page.js.nft.json +1 -1
  289. package/app/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
  290. package/app/.next/server/app/status/page.js +1 -1
  291. package/app/.next/server/app/status/page.js.nft.json +1 -1
  292. package/app/.next/server/app/status/page_client-reference-manifest.js +1 -1
  293. package/app/.next/server/app/terms/page.js +1 -1
  294. package/app/.next/server/app/terms/page.js.nft.json +1 -1
  295. package/app/.next/server/app/terms/page_client-reference-manifest.js +1 -1
  296. package/app/.next/server/app-paths-manifest.json +1 -0
  297. package/app/.next/server/chunks/[root-of-the-server]__09c944b3._.js +1 -1
  298. package/app/.next/server/chunks/{[root-of-the-server]__52346ca4._.js → [root-of-the-server]__561d1987._.js} +2 -2
  299. package/app/.next/server/chunks/[root-of-the-server]__7d9b23e7._.js +1 -1
  300. package/app/.next/server/chunks/[root-of-the-server]__80e3bfc3._.js +2 -2
  301. package/app/.next/server/chunks/[root-of-the-server]__84e445b2._.js +1 -1
  302. package/app/.next/server/chunks/[root-of-the-server]__85096f79._.js +1 -1
  303. package/app/.next/server/chunks/[root-of-the-server]__9230ee98._.js +3 -0
  304. package/app/.next/server/chunks/[root-of-the-server]__92cb0def._.js +2 -2
  305. package/app/.next/server/chunks/[root-of-the-server]__a4403ad8._.js +3 -0
  306. package/app/.next/server/chunks/{[root-of-the-server]__87186578._.js → [root-of-the-server]__d142dcb5._.js} +2 -2
  307. package/app/.next/server/chunks/{[root-of-the-server]__dc47ee64._.js → [root-of-the-server]__d4563e10._.js} +3 -3
  308. package/app/.next/server/chunks/{[root-of-the-server]__43a4e384._.js → [root-of-the-server]__d780e24b._.js} +2 -2
  309. package/app/.next/server/chunks/[root-of-the-server]__db2f9fe0._.js +1 -1
  310. package/app/.next/server/chunks/{[root-of-the-server]__167585da._.js → [root-of-the-server]__e27a89bd._.js} +3 -3
  311. package/app/.next/server/chunks/_05c48915._.js +1 -1
  312. package/app/.next/server/chunks/_1244636c._.js +3 -3
  313. package/app/.next/server/chunks/_2115d8de._.js +1 -1
  314. package/app/.next/server/chunks/_3ac953eb._.js +1 -1
  315. package/app/.next/server/chunks/_4b8fd853._.js +1 -1
  316. package/app/.next/server/chunks/_68683848._.js +1 -1
  317. package/app/.next/server/chunks/_ee9b677b._.js +1 -1
  318. package/app/.next/server/chunks/_next-internal_server_app_api_logs_export_route_actions_659d16c3.js +3 -0
  319. package/app/.next/server/chunks/src_shared_constants_pricing_ts_0fddbb51._.js +1 -1
  320. package/app/.next/server/chunks/src_shared_constants_pricing_ts_4245a86e._.js +1 -1
  321. package/app/.next/server/chunks/src_shared_constants_pricing_ts_65de0558._.js +1 -1
  322. package/app/.next/server/chunks/ssr/{[root-of-the-server]__efdd7f81._.js → [root-of-the-server]__7ae68a0e._.js} +2 -2
  323. package/app/.next/server/chunks/ssr/[root-of-the-server]__9affb65e._.js +1 -1
  324. package/app/.next/server/chunks/ssr/[root-of-the-server]__a6942102._.js +1 -1
  325. package/app/.next/server/chunks/ssr/{[root-of-the-server]__788f5583._.js → [root-of-the-server]__b6544c47._.js} +2 -2
  326. package/app/.next/server/chunks/ssr/src_5dd5869e._.js +1 -1
  327. package/app/.next/server/chunks/ssr/src_app_(dashboard)_dashboard_settings_pricing_page_tsx_5aff4262._.js +1 -1
  328. package/app/.next/server/chunks/ssr/src_shared_constants_pricing_ts_a704230a._.js +1 -1
  329. package/app/.next/server/middleware.js +1 -1
  330. package/app/.next/server/pages/500.html +2 -2
  331. package/app/.next/server/server-reference-manifest.js +1 -1
  332. package/app/.next/server/server-reference-manifest.json +1 -1
  333. package/app/.next/static/chunks/{b5cc103e16794392.js → 18934c9ed2a28555.js} +1 -1
  334. package/app/.next/static/chunks/374fe2b2c612c189.js +1 -0
  335. package/app/.next/static/chunks/{1ef9ea85406a01d6.js → 8ec4e086bf58dca6.js} +1 -1
  336. package/app/.next/static/chunks/af071ff826ecff1b.css +1 -0
  337. package/app/CHANGELOG.md +20 -0
  338. package/app/docs/openapi.yaml +1 -1
  339. package/app/open-sse/handlers/chatCore.ts +14 -8
  340. package/app/open-sse/utils/stream.ts +27 -0
  341. package/app/package-lock.json +2 -2
  342. package/app/package.json +1 -1
  343. package/app/src/app/(dashboard)/dashboard/logs/page.tsx +119 -11
  344. package/app/src/app/api/logs/export/route.ts +58 -0
  345. package/app/src/shared/constants/pricing.ts +71 -1
  346. package/package.json +1 -1
  347. package/app/.next/server/chunks/[root-of-the-server]__4308f91a._.js +0 -3
  348. package/app/.next/static/chunks/02afac1b585d8219.css +0 -1
  349. package/app/.next/static/chunks/b36fd5a7c702d808.js +0 -1
  350. /package/app/.next/static/{JoLoKHY_9DVANe7Qs4D0K → sRyjByTPg8ioL4UQ1sX-q}/_buildManifest.js +0 -0
  351. /package/app/.next/static/{JoLoKHY_9DVANe7Qs4D0K → sRyjByTPg8ioL4UQ1sX-q}/_clientMiddlewareManifest.json +0 -0
  352. /package/app/.next/static/{JoLoKHY_9DVANe7Qs4D0K → sRyjByTPg8ioL4UQ1sX-q}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
1
  module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,r)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,r)=>{"use strict";var n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,i={},l={RequestCookies:()=>h,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>p,stringifyCookie:()=>c};for(var u in l)n(i,u,{get:l[u],enumerable:!0});function c(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function d(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,a]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=a?a:"true"))}catch{}}return t}function p(e){if(!e)return;let[[t,r],...n]=d(e),{domain:a,expires:o,httponly:s,maxage:i,path:l,samesite:u,secure:c,partitioned:p,priority:h}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,y,v={name:t,value:decodeURIComponent(r),domain:a,...o&&{expires:new Date(o)},...s&&{httpOnly:!0},..."string"==typeof i&&{maxAge:Number(i)},path:l,...u&&{sameSite:m.includes(g=(g=u).toLowerCase())?g:void 0},...c&&{secure:!0},...h&&{priority:f.includes(y=(y=h).toLowerCase())?y:void 0},...p&&{partitioned:!0}};let e={};for(let t in v)v[t]&&(e[t]=v[t]);return e}}t.exports=((e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of o(t))s.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(i=a(t,r))||i.enumerable});return e})(n({},"__esModule",{value:!0}),i);var m=["strict","lax","none"],f=["low","medium","high"],h=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>c(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>c(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const a=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(a)?a:function(e){if(!e)return[];var t,r,n,a,o,s=[],i=0;function l(){for(;i<e.length&&/\s/.test(e.charAt(i));)i+=1;return i<e.length}for(;i<e.length;){for(t=i,o=!1;l();)if(","===(r=e.charAt(i))){for(n=i,i+=1,l(),a=i;i<e.length&&"="!==(r=e.charAt(i))&&";"!==r&&","!==r;)i+=1;i<e.length&&"="===e.charAt(i)?(o=!0,i=a,s.push(e.substring(t,n)),t=i):i=n+1}else i+=1;(!o||i>=e.length)&&s.push(e.substring(t,e.length))}return s}(a)){const t=p(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,a=this._parsed;return a.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=c(r);t.append("set-cookie",e)}}(a,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(c).join("; ")}}},792509,(e,t,r)=>{t.exports=e.x("url",()=>require("url"))},785148,(e,t,r)=>{t.exports=e.x("better-sqlite3",()=>require("better-sqlite3"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},256770,e=>{"use strict";var t=e.i(814747),r=e.i(446786);let n="omniroute";function a(){try{return r.default.homedir()}catch{return process.cwd()}}function o(e){if("string"!=typeof e)return null;let r=e.trim();return r?t.default.resolve(r):null}function s(){return t.default.join(a(),`.${n}`)}function i({isCloud:e=!1}={}){let r;if(e)return"/tmp";let l=o(process.env.DATA_DIR);return l?l:(a(),(r=o(process.env.XDG_CONFIG_HOME))?t.default.join(r,n):s())}function l(e,r){return!!e&&!!r&&t.default.resolve(e)===t.default.resolve(r)}e.s(["getLegacyDotDataDir",()=>s,"isSamePath",()=>l,"resolveDataDir",()=>i])},233405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},924868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},266240,e=>{"use strict";var t=e.i(924868),r=e.i(446786),n=e.i(814747),a=e.i(233405);let o=new Set(["auto","host","container"]),s=new Set(["0","false","no","off"]),i={claude:{defaultCommand:"claude",envBinKey:"CLI_CLAUDE_BIN",requiresBinary:!0,healthcheckTimeoutMs:4e3,paths:{settings:".claude/settings.json"}},codex:{defaultCommand:"codex",envBinKey:"CLI_CODEX_BIN",requiresBinary:!0,healthcheckTimeoutMs:4e3,paths:{config:".codex/config.toml",auth:".codex/auth.json"}},droid:{defaultCommand:"droid",envBinKey:"CLI_DROID_BIN",requiresBinary:!0,healthcheckTimeoutMs:8e3,paths:{settings:".factory/settings.json"}},openclaw:{defaultCommand:"openclaw",envBinKey:"CLI_OPENCLAW_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{settings:".openclaw/openclaw.json"}},cursor:{defaultCommands:["agent","cursor"],envBinKey:"CLI_CURSOR_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{config:".cursor/cli-config.json",auth:".config/cursor/auth.json",state:".cursor/agent-cli-state.json"}},cline:{defaultCommand:"cline",envBinKey:"CLI_CLINE_BIN",requiresBinary:!0,healthcheckTimeoutMs:12e3,paths:{globalState:".cline/data/globalState.json",secrets:".cline/data/secrets.json"}},kilo:{defaultCommand:"kilocode",envBinKey:"CLI_KILO_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{auth:".local/share/kilo/auth.json"}},continue:{defaultCommand:null,envBinKey:"CLI_CONTINUE_BIN",requiresBinary:!1,healthcheckTimeoutMs:15e3,paths:{settings:".continue/config.json"}},opencode:{defaultCommand:"opencode",envBinKey:"CLI_OPENCODE_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{config:".config/opencode/config.toml"}}},l=(e,t,{env:r,timeoutMs:n=3e3}={})=>new Promise(o=>{let s="",i="",l=!1,u=!1,c=(0,a.spawn)(e,t,{env:r,stdio:["ignore","pipe","pipe"],..."win32"===process.platform?"TURBOPACK unreachable":{}}),d=setTimeout(()=>{l=!0,c.kill("SIGKILL")},n),p=e=>{u||(u=!0,clearTimeout(d),o(e))};c.stdout.on("data",e=>{s+=e.toString()}),c.stderr.on("data",e=>{i+=e.toString()}),c.on("error",e=>{p({ok:!1,code:null,stdout:s.trim(),stderr:i.trim(),timedOut:l,error:e?.message||"spawn_error"})}),c.on("close",e=>{p({ok:!l&&0===e,code:e,stdout:s.trim(),stderr:i.trim(),timedOut:l,error:l?"timeout":null})})}),u=["&","|",";","<",">","(",")","`","$","^","%","!"],c=async e=>{if(!(!(!e||!n.default.isAbsolute(e)||u.some(t=>e.includes(t)))&&1))return{installed:!1,commandPath:null,reason:"unsafe_path"};try{await t.default.access(e,t.default.constants.F_OK)}catch{return{installed:!1,commandPath:null,reason:"not_found"}}try{return await t.default.access(e,t.default.constants.X_OK),{installed:!0,commandPath:e,reason:null}}catch{return{installed:!0,commandPath:e,reason:"not_executable"}}},d=async(e,t)=>{if(!e)return{installed:!1,commandPath:null,reason:"missing_command"};if(e.includes("/")||e.includes("\\"))return c(e);process.platform;let r=await l("sh",["-c",'command -v -- "$1"',"sh",e],{env:t,timeoutMs:3e3});if(!r.ok||!r.stdout)return{installed:!1,commandPath:null,reason:"not_found"};let n=r.stdout.split(/\r?\n/).map(e=>e.trim()).find(Boolean)||null;return{installed:!!n,commandPath:n,reason:n?null:"not_found"}},p=async(e,t)=>{if(!Array.isArray(e)||0===e.length)return{command:null,installed:!1,commandPath:null,reason:"missing_command"};for(let r of e){let e=await d(r,t);if(e.installed||"not_found"!==e.reason)return{command:r,...e}}return{command:e[0],installed:!1,commandPath:null,reason:"not_found"}},m=async(e,t,r=4e3)=>{for(let n of[["--version"],["-v"]])if((await l(e,n,{env:t,timeoutMs:r})).ok)return{runnable:!0,reason:null};return{runnable:!1,reason:"healthcheck_failed"}},f=e=>{let t=i[e];if(!t)return null;let a=String(process.env.CLI_CONFIG_HOME||"").trim()||r.default.homedir();return Object.fromEntries(Object.entries(t.paths).map(([e,t])=>[e,n.default.join(a,t)]))},h=async e=>{let t,r,a,s=i[e],l=(t=String(process.env.CLI_MODE||"auto").trim().toLowerCase(),o.has(t)?t:"auto");if(!s)return{installed:!1,runnable:!1,command:null,commandPath:null,reason:"unknown_tool",runtimeMode:l,requiresBinary:!1};let u=(r={...process.env},(a=String(process.env.CLI_EXTRA_PATHS||"").split(n.default.delimiter).map(e=>e.trim()).filter(Boolean)).length>0&&(r.PATH=[...a,r.PATH||""].filter(Boolean).join(n.default.delimiter)),r),c=(e=>{let t=i[e];if(!t)return[];let r=String(process.env[t.envBinKey]||"").trim();return r?[r]:Array.isArray(t.defaultCommands)&&t.defaultCommands.length>0?t.defaultCommands.filter(Boolean):t.defaultCommand?[t.defaultCommand]:[]})(e),d=!1!==s.requiresBinary;if(!d&&0===c.length)return{installed:!0,runnable:!0,command:null,commandPath:null,reason:"not_required",runtimeMode:l,requiresBinary:d};let f=await p(c,u),h=f.command;if(!f.installed)return{installed:!1,runnable:!1,command:h,commandPath:null,reason:f.reason||"not_found",runtimeMode:l,requiresBinary:d};if("not_executable"===f.reason)return{installed:!0,runnable:!1,command:h,commandPath:f.commandPath,reason:"not_executable",runtimeMode:l,requiresBinary:d};let g=await m(f.commandPath,u,Number(s.healthcheckTimeoutMs||4e3));return{installed:!0,runnable:g.runnable,command:h,commandPath:f.commandPath,reason:g.reason,runtimeMode:l,requiresBinary:d}},g=Object.keys(i);e.s(["CLI_TOOL_IDS",0,g,"ensureCliConfigWriteAllowed",0,()=>((e,t=!0)=>null==e||""===e?t:!s.has(String(e).trim().toLowerCase()))(process.env.CLI_ALLOW_CONFIG_WRITES,!0)?null:"CLI config writes are disabled (CLI_ALLOW_CONFIG_WRITES=false)","getCliConfigPaths",0,f,"getCliPrimaryConfigPath",0,e=>{let t=f(e);if(!t)return null;let r=Object.keys(t)[0];return r?t[r]:null},"getCliRuntimeStatus",0,h])},997953,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].ReactServerDOMTurbopackServer},745015,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"registerServerReference",{enumerable:!0,get:function(){return n.registerServerReference}});let n=e.r(997953)},195975,(e,t,r)=>{"use strict";function n(e){for(let t=0;t<e.length;t++){let r=e[t];if("function"!=typeof r)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof r}.
2
- Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ensureServerEntryExports",{enumerable:!0,get:function(){return n}})},197892,e=>{"use strict";var t=e.i(157763);function r(e,n=new Date().toISOString()){t.isBuildPhase||t.isCloud||(0,t.getDbInstance)().prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES (?, ?, ?)").run("cliToolLastConfig",e,JSON.stringify(n))}function n(){if(t.isBuildPhase||t.isCloud)return{};let e=(0,t.getDbInstance)().prepare("SELECT key, value FROM key_value WHERE namespace = ?").all("cliToolLastConfig"),r={};for(let t of e){let e=function(e){try{return JSON.parse(e)}catch{return null}}(t.value);"string"==typeof e&&(r[t.key]=e)}return r}function a(e){t.isBuildPhase||t.isCloud||(0,t.getDbInstance)().prepare("DELETE FROM key_value WHERE namespace = ? AND key = ?").run("cliToolLastConfig",e)}e.s(["deleteCliToolLastConfigured",()=>a,"getAllCliToolLastConfigured",()=>n,"saveCliToolLastConfigured",()=>r])},90100,e=>{"use strict";function t(e,t){if(!e)return t;let r=Number.parseInt(String(e),10);return!Number.isFinite(r)||r<1||r>65535?t:r}function r(){let e=t(process.env.OMNIROUTE_PORT||process.env.PORT,20128),r=!!process.env.API_PORT,n=!!process.env.DASHBOARD_PORT;return{port:e,apiPort:t(process.env.API_PORT,e),dashboardPort:t(process.env.DASHBOARD_PORT,e),apiPortExplicit:r,dashboardPortExplicit:n}}e.s(["getRuntimePorts",()=>r])},761028,e=>{"use strict";var t=e.i(747909),r=e.i(174017),n=e.i(996250),a=e.i(759756),o=e.i(561916),s=e.i(174677),i=e.i(869741),l=e.i(316795),u=e.i(487718),c=e.i(995169),d=e.i(47587),p=e.i(666012),m=e.i(570101),f=e.i(626937),h=e.i(10372),g=e.i(193695);e.i(52474);var y=e.i(600220),v=e.i(745015),C=e.i(89171),_=e.i(924868),x=e.i(266240),R=e.i(197892),b=e.i(90100),O=e.i(195975);let{apiPort:w}=(0,b.getRuntimePorts)();async function E(e){try{let t=(0,x.getCliPrimaryConfigPath)(e);if(!t)return"unknown";let r=await _.default.readFile(t,"utf-8"),n=JSON.parse(r);switch(e){case"claude":return n?.env?.ANTHROPIC_BASE_URL?"configured":"not_configured";case"codex":return n?.providers?.omniroute||n?.providers?.["openai-compatible"]?"configured":"not_configured";case"droid":case"openclaw":case"cline":case"kilo":let a=JSON.stringify(n).toLowerCase();return a.includes("omniroute")||a.includes("sk_omniroute")||a.includes(`localhost:${w}`)||a.includes(`127.0.0.1:${w}`)?"configured":"not_configured";default:return"unknown"}}catch{return"not_configured"}}async function P(){try{let e={};await Promise.all(x.CLI_TOOL_IDS.map(async t=>{try{let r=await Promise.race([(0,x.getCliRuntimeStatus)(t),new Promise((e,t)=>setTimeout(()=>t(Error("Timeout")),5e3))]);e[t]={installed:r.installed,runnable:r.runnable,command:r.command,commandPath:r.commandPath,reason:r.reason||null}}catch(r){e[t]={installed:!1,runnable:!1,reason:r.message||"Check failed"}}})),await Promise.all(["claude","codex","droid","openclaw","cline","kilo"].map(async t=>{if(!e[t]?.installed||!e[t]?.runnable){e[t].configStatus="not_installed";return}e[t].configStatus=await E(t)}));try{let t=(0,R.getAllCliToolLastConfigured)();for(let[r,n]of Object.entries(t))e[r]&&(e[r].lastConfiguredAt=n)}catch{}return C.NextResponse.json(e)}catch(e){return console.log("Error fetching CLI tool statuses:",e),C.NextResponse.json({error:"Failed to fetch statuses"},{status:500})}}(0,O.ensureServerEntryExports)([P]),(0,v.registerServerReference)(P,"003373f9a20692c2e0f01a95647672ed1251bda3b5",null),e.s(["GET",()=>P],84799);var A=e.i(84799);let S=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/cli-tools/status/route",pathname:"/api/cli-tools/status",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/cli-tools/status/route.ts",nextConfigOutput:"standalone",userland:A}),{workAsyncStorage:k,workUnitAsyncStorage:I,serverHooks:T}=S;function N(){return(0,n.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:I})}async function j(e,t,n){S.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/cli-tools/status/route";v=v.replace(/\/index$/,"")||"/";let C=await S.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!C)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:_,params:x,nextConfig:R,parsedUrl:b,isDraftMode:O,prerenderManifest:w,routerServerContext:E,isOnDemandRevalidate:P,revalidateOnlyGenerated:A,resolvedPathname:k,clientReferenceManifest:I,serverActionsManifest:T}=C,N=(0,i.normalizeAppPath)(v),j=!!(w.dynamicRoutes[N]||w.routes[k]),L=async()=>((null==E?void 0:E.render404)?await E.render404(e,t,b,!1):t.end("This page could not be found"),null);if(j&&!O){let e=!!w.routes[k],t=w.dynamicRoutes[N];if(t&&!1===t.fallback&&!e){if(R.experimental.adapterPath)return await L();throw new g.NoFallbackError}}let D=null;!j||S.isDev||O||(D="/index"===(D=k)?"/":D);let B=!0===S.isDev||!j,q=j&&!B;T&&I&&(0,s.setManifestsSingleton)({page:v,clientReferenceManifest:I,serverActionsManifest:T});let M=e.method||"GET",$=(0,o.getTracer)(),H=$.getActiveScopeSpan(),U={params:x,prerenderManifest:w,renderOpts:{experimental:{authInterrupts:!!R.experimental.authInterrupts},cacheComponents:!!R.cacheComponents,supportsDynamicResponse:B,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:R.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>S.onRequestError(e,t,n,a,E)},sharedContext:{buildId:_}},K=new l.NodeNextRequest(e),F=new l.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let s=async e=>S.handle(G,U).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${v}`)}),i=!!(0,a.getRequestMeta)(e,"minimalMode"),l=async a=>{var o,l;let u=async({previousCacheEntry:r})=>{try{if(!i&&P&&A&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await s(a);e.fetchMetrics=U.renderOpts.fetchMetrics;let l=U.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let u=U.renderOpts.collectedTags;if(!j)return await (0,p.sendResponse)(K,F,o,U.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(o.headers);u&&(t[h.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=h.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,n=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=h.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:y.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await S.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:P})},!1,E),t}},c=await S.handleResponse({req:e,nextConfig:R,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:w,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:A,responseGenerator:u,waitUntil:n.waitUntil,isMinimalMode:i});if(!j)return null;if((null==c||null==(o=c.value)?void 0:o.kind)!==y.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==c||null==(l=c.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});i||t.setHeader("x-nextjs-cache",P?"REVALIDATED":c.isMiss?"MISS":c.isStale?"STALE":"HIT"),O&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let g=(0,m.fromNodeOutgoingHttpHeaders)(c.value.headers);return i&&j||g.delete(h.NEXT_CACHE_TAGS_HEADER),!c.cacheControl||t.getHeader("Cache-Control")||g.get("Cache-Control")||g.set("Cache-Control",(0,f.getCacheControlHeader)(c.cacheControl)),await (0,p.sendResponse)(K,F,new Response(c.value.body,{headers:g,status:c.value.status||200})),null};H?await l(H):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${v}`,kind:o.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},l))}catch(t){if(t instanceof g.NoFallbackError||await S.onRequestError(e,t,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:P})},!1,E),j)throw t;return await (0,p.sendResponse)(K,F,new Response(null,{status:500})),null}}e.s(["handler",()=>j,"patchFetch",()=>N,"routeModule",()=>S,"serverHooks",()=>T,"workAsyncStorage",()=>k,"workUnitAsyncStorage",()=>I],761028)}];
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ensureServerEntryExports",{enumerable:!0,get:function(){return n}})},197892,e=>{"use strict";var t=e.i(157763);function r(e,n=new Date().toISOString()){t.isBuildPhase||t.isCloud||(0,t.getDbInstance)().prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES (?, ?, ?)").run("cliToolLastConfig",e,JSON.stringify(n))}function n(){if(t.isBuildPhase||t.isCloud)return{};let e=(0,t.getDbInstance)().prepare("SELECT key, value FROM key_value WHERE namespace = ?").all("cliToolLastConfig"),r={};for(let t of e){let e=function(e){try{return JSON.parse(e)}catch{return null}}(t.value);"string"==typeof e&&(r[t.key]=e)}return r}function a(e){t.isBuildPhase||t.isCloud||(0,t.getDbInstance)().prepare("DELETE FROM key_value WHERE namespace = ? AND key = ?").run("cliToolLastConfig",e)}e.s(["deleteCliToolLastConfigured",()=>a,"getAllCliToolLastConfigured",()=>n,"saveCliToolLastConfigured",()=>r])},90100,e=>{"use strict";function t(e,t){if(!e)return t;let r=Number.parseInt(String(e),10);return!Number.isFinite(r)||r<1||r>65535?t:r}function r(){let e=t(process.env.OMNIROUTE_PORT||process.env.PORT,20128),r=!!process.env.API_PORT,n=!!process.env.DASHBOARD_PORT;return{port:e,apiPort:t(process.env.API_PORT,e),dashboardPort:t(process.env.DASHBOARD_PORT,e),apiPortExplicit:r,dashboardPortExplicit:n}}e.s(["getRuntimePorts",()=>r])},761028,e=>{"use strict";var t=e.i(747909),r=e.i(174017),n=e.i(996250),a=e.i(759756),o=e.i(561916),s=e.i(174677),i=e.i(869741),l=e.i(316795),u=e.i(487718),c=e.i(995169),d=e.i(47587),p=e.i(666012),m=e.i(570101),f=e.i(626937),h=e.i(10372),g=e.i(193695);e.i(52474);var y=e.i(600220),v=e.i(745015),C=e.i(89171),_=e.i(924868),x=e.i(266240),R=e.i(197892),b=e.i(90100),O=e.i(195975);let{apiPort:w}=(0,b.getRuntimePorts)();async function E(e){try{let t=(0,x.getCliPrimaryConfigPath)(e);if(!t)return"unknown";let r=await _.default.readFile(t,"utf-8"),n=JSON.parse(r);switch(e){case"claude":return n?.env?.ANTHROPIC_BASE_URL?"configured":"not_configured";case"codex":return n?.providers?.omniroute||n?.providers?.["openai-compatible"]?"configured":"not_configured";case"droid":case"openclaw":case"cline":case"kilo":let a=JSON.stringify(n).toLowerCase();return a.includes("omniroute")||a.includes("sk_omniroute")||a.includes(`localhost:${w}`)||a.includes(`127.0.0.1:${w}`)?"configured":"not_configured";default:return"unknown"}}catch{return"not_configured"}}async function P(){try{let e={};await Promise.all(x.CLI_TOOL_IDS.map(async t=>{try{let r=await Promise.race([(0,x.getCliRuntimeStatus)(t),new Promise((e,t)=>setTimeout(()=>t(Error("Timeout")),5e3))]);e[t]={installed:r.installed,runnable:r.runnable,command:r.command,commandPath:r.commandPath,reason:r.reason||null}}catch(r){e[t]={installed:!1,runnable:!1,reason:r.message||"Check failed"}}})),await Promise.all(["claude","codex","droid","openclaw","cline","kilo"].map(async t=>{if(!e[t]?.installed||!e[t]?.runnable){e[t].configStatus="not_installed";return}e[t].configStatus=await E(t)}));try{let t=(0,R.getAllCliToolLastConfigured)();for(let[r,n]of Object.entries(t))e[r]&&(e[r].lastConfiguredAt=n)}catch{}return C.NextResponse.json(e)}catch(e){return console.log("Error fetching CLI tool statuses:",e),C.NextResponse.json({error:"Failed to fetch statuses"},{status:500})}}(0,O.ensureServerEntryExports)([P]),(0,v.registerServerReference)(P,"004438fcf681634ed6886f4541e7178ceee6709ba8",null),e.s(["GET",()=>P],84799);var A=e.i(84799);let S=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/cli-tools/status/route",pathname:"/api/cli-tools/status",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/cli-tools/status/route.ts",nextConfigOutput:"standalone",userland:A}),{workAsyncStorage:k,workUnitAsyncStorage:I,serverHooks:T}=S;function N(){return(0,n.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:I})}async function j(e,t,n){S.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/cli-tools/status/route";v=v.replace(/\/index$/,"")||"/";let C=await S.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!C)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:_,params:x,nextConfig:R,parsedUrl:b,isDraftMode:O,prerenderManifest:w,routerServerContext:E,isOnDemandRevalidate:P,revalidateOnlyGenerated:A,resolvedPathname:k,clientReferenceManifest:I,serverActionsManifest:T}=C,N=(0,i.normalizeAppPath)(v),j=!!(w.dynamicRoutes[N]||w.routes[k]),L=async()=>((null==E?void 0:E.render404)?await E.render404(e,t,b,!1):t.end("This page could not be found"),null);if(j&&!O){let e=!!w.routes[k],t=w.dynamicRoutes[N];if(t&&!1===t.fallback&&!e){if(R.experimental.adapterPath)return await L();throw new g.NoFallbackError}}let D=null;!j||S.isDev||O||(D="/index"===(D=k)?"/":D);let B=!0===S.isDev||!j,q=j&&!B;T&&I&&(0,s.setManifestsSingleton)({page:v,clientReferenceManifest:I,serverActionsManifest:T});let M=e.method||"GET",$=(0,o.getTracer)(),H=$.getActiveScopeSpan(),U={params:x,prerenderManifest:w,renderOpts:{experimental:{authInterrupts:!!R.experimental.authInterrupts},cacheComponents:!!R.cacheComponents,supportsDynamicResponse:B,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:R.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>S.onRequestError(e,t,n,a,E)},sharedContext:{buildId:_}},K=new l.NodeNextRequest(e),F=new l.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let s=async e=>S.handle(G,U).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${v}`)}),i=!!(0,a.getRequestMeta)(e,"minimalMode"),l=async a=>{var o,l;let u=async({previousCacheEntry:r})=>{try{if(!i&&P&&A&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await s(a);e.fetchMetrics=U.renderOpts.fetchMetrics;let l=U.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let u=U.renderOpts.collectedTags;if(!j)return await (0,p.sendResponse)(K,F,o,U.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(o.headers);u&&(t[h.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=h.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,n=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=h.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:y.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await S.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:P})},!1,E),t}},c=await S.handleResponse({req:e,nextConfig:R,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:w,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:A,responseGenerator:u,waitUntil:n.waitUntil,isMinimalMode:i});if(!j)return null;if((null==c||null==(o=c.value)?void 0:o.kind)!==y.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==c||null==(l=c.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});i||t.setHeader("x-nextjs-cache",P?"REVALIDATED":c.isMiss?"MISS":c.isStale?"STALE":"HIT"),O&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let g=(0,m.fromNodeOutgoingHttpHeaders)(c.value.headers);return i&&j||g.delete(h.NEXT_CACHE_TAGS_HEADER),!c.cacheControl||t.getHeader("Cache-Control")||g.get("Cache-Control")||g.set("Cache-Control",(0,f.getCacheControlHeader)(c.cacheControl)),await (0,p.sendResponse)(K,F,new Response(c.value.body,{headers:g,status:c.value.status||200})),null};H?await l(H):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${v}`,kind:o.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},l))}catch(t){if(t instanceof g.NoFallbackError||await S.onRequestError(e,t,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:P})},!1,E),j)throw t;return await (0,p.sendResponse)(K,F,new Response(null,{status:500})),null}}e.s(["handler",()=>j,"patchFetch",()=>N,"routeModule",()=>S,"serverHooks",()=>T,"workAsyncStorage",()=>k,"workUnitAsyncStorage",()=>I],761028)}];
3
3
 
4
4
  //# sourceMappingURL=%5Broot-of-the-server%5D__84e445b2._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[918622,(e,t,n)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,n)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,n)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,n)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,n)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,n)=>{"use strict";var a=Object.defineProperty,c=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,r={},u={RequestCookies:()=>_,ResponseCookies:()=>m,parseCookie:()=>h,parseSetCookie:()=>d,stringifyCookie:()=>p};for(var s in u)a(r,s,{get:u[s],enumerable:!0});function p(e){var t;let n=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),a=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===n.length?a:`${a}; ${n.join("; ")}`}function h(e){let t=new Map;for(let n of e.split(/; */)){if(!n)continue;let e=n.indexOf("=");if(-1===e){t.set(n,"true");continue}let[a,c]=[n.slice(0,e),n.slice(e+1)];try{t.set(a,decodeURIComponent(null!=c?c:"true"))}catch{}}return t}function d(e){if(!e)return;let[[t,n],...a]=h(e),{domain:c,expires:i,httponly:o,maxage:r,path:u,samesite:s,secure:p,partitioned:d,priority:_}=Object.fromEntries(a.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var m,f,x={name:t,value:decodeURIComponent(n),domain:c,...i&&{expires:new Date(i)},...o&&{httpOnly:!0},..."string"==typeof r&&{maxAge:Number(r)},path:u,...s&&{sameSite:l.includes(m=(m=s).toLowerCase())?m:void 0},...p&&{secure:!0},..._&&{priority:g.includes(f=(f=_).toLowerCase())?f:void 0},...d&&{partitioned:!0}};let e={};for(let t in x)x[t]&&(e[t]=x[t]);return e}}t.exports=((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of i(t))o.call(e,n)||void 0===n||a(e,n,{get:()=>t[n],enumerable:!(r=c(t,n))||r.enumerable});return e})(a({},"__esModule",{value:!0}),r);var l=["strict","lax","none"],g=["low","medium","high"],_=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,n]of h(t))this._parsed.set(e,{name:e,value:n})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let n=Array.from(this._parsed);if(!e.length)return n.map(([e,t])=>t);let a="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return n.filter(([e])=>e===a).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,n]=1===e.length?[e[0].name,e[0].value]:e,a=this._parsed;return a.set(t,{name:t,value:n}),this._headers.set("cookie",Array.from(a).map(([e,t])=>p(t)).join("; ")),this}delete(e){let t=this._parsed,n=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>p(t)).join("; ")),n}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},m=class{constructor(e){var t,n,a;this._parsed=new Map,this._headers=e;const c=null!=(a=null!=(n=null==(t=e.getSetCookie)?void 0:t.call(e))?n:e.get("set-cookie"))?a:[];for(const e of Array.isArray(c)?c:function(e){if(!e)return[];var t,n,a,c,i,o=[],r=0;function u(){for(;r<e.length&&/\s/.test(e.charAt(r));)r+=1;return r<e.length}for(;r<e.length;){for(t=r,i=!1;u();)if(","===(n=e.charAt(r))){for(a=r,r+=1,u(),c=r;r<e.length&&"="!==(n=e.charAt(r))&&";"!==n&&","!==n;)r+=1;r<e.length&&"="===e.charAt(r)?(i=!0,r=c,o.push(e.substring(t,a)),t=r):r=a+1}else r+=1;(!i||r>=e.length)&&o.push(e.substring(t,e.length))}return o}(c)){const t=d(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let n=Array.from(this._parsed.values());if(!e.length)return n;let a="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return n.filter(e=>e.name===a)}has(e){return this._parsed.has(e)}set(...e){let[t,n,a]=1===e.length?[e[0].name,e[0].value,e[0]]:e,c=this._parsed;return c.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:n,...a})),function(e,t){for(let[,n]of(t.delete("set-cookie"),e)){let e=p(n);t.append("set-cookie",e)}}(c,this._headers),this}delete(...e){let[t,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...n,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(p).join("; ")}}},404503,e=>{"use strict";let t={cc:{"claude-opus-4-6":{input:5,output:25,cached:2.5,reasoning:25,cache_creation:5},"claude-sonnet-4-6":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-opus-4-5-20251101":{input:15,output:75,cached:7.5,reasoning:75,cache_creation:15},"claude-sonnet-4-5-20250929":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-haiku-4-5-20251001":{input:.5,output:2.5,cached:.25,reasoning:2.5,cache_creation:.5}},cx:{"gpt5.4":{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5},"gpt-5.2-codex":{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5},"gpt-5.2":{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5},"gpt-5.1-codex-max":{input:8,output:32,cached:4,reasoning:48,cache_creation:8},"gpt-5.1-codex":{input:4,output:16,cached:2,reasoning:24,cache_creation:4},"gpt-5.1-codex-mini":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"gpt-5.1":{input:4,output:16,cached:2,reasoning:24,cache_creation:4},"gpt-5-codex":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"gpt-5-codex-mini":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},gc:{"gemini-3-flash-preview":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3-pro-preview":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-preview":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-2.5-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-2.5-flash":{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3},"gemini-2.5-flash-lite":{input:.1,output:.4,cached:.025,reasoning:.6,cache_creation:.1}},qw:{"qwen3-coder-plus":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"qwen3-coder-next":{input:2,output:8,cached:1,reasoning:12,cache_creation:2},"qwen3-coder-flash":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"vision-model":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},if:{"qwen3-coder-plus":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"kimi-k2":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"kimi-k2-thinking":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"deepseek-r1":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"deepseek-v3.2-chat":{input:.28,output:.42,cached:.014,reasoning:.63,cache_creation:.28},"deepseek-v3.2":{input:.28,output:.42,cached:.014,reasoning:.63,cache_creation:.28},"deepseek-v3.2-reasoner":{input:.55,output:2.19,cached:.14,reasoning:2.19,cache_creation:.55},"deepseek-3.1":{input:.27,output:1.1,cached:.07,reasoning:2.2,cache_creation:.27},"deepseek-3.2":{input:.27,output:1.1,cached:.07,reasoning:2.2,cache_creation:.27},"minimax-m2":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"glm-4.6":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"glm-4.7":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75}},ag:{"gemini-3.1-pro-low":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-high":{input:4,output:18,cached:.5,reasoning:27,cache_creation:4},"gemini-3-flash":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"claude-sonnet-4-6":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-opus-4-6-thinking":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"gpt-oss-120b-medium":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},gh:{"gpt-5":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"gpt-5-mini":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"gpt-5.1-codex":{input:4,output:16,cached:2,reasoning:24,cache_creation:4},"gpt-5.1-codex-max":{input:8,output:32,cached:4,reasoning:48,cache_creation:8},"gpt-4.1":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"claude-4.5-sonnet":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-4.5-opus":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-4.5-haiku":{input:.5,output:2.5,cached:.05,reasoning:3.75,cache_creation:.5},"gemini-3-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3-flash":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-2.5-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"grok-code-fast-1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},openai:{"gpt-4o":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-4o-mini":{input:.15,output:.6,cached:.075,reasoning:.9,cache_creation:.15},"gpt-4-turbo":{input:10,output:30,cached:5,reasoning:45,cache_creation:10},o1:{input:15,output:60,cached:7.5,reasoning:90,cache_creation:15},"o1-mini":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},anthropic:{"claude-sonnet-4-20250514":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-opus-4-20250514":{input:15,output:75,cached:7.5,reasoning:112.5,cache_creation:15},"claude-3-5-sonnet-20241022":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-haiku-4-5-20251001":{input:1,output:5,cached:.5,reasoning:7.5,cache_creation:1},"claude-haiku-4.5":{input:1,output:5,cached:.5,reasoning:7.5,cache_creation:1},"claude-sonnet-4-6-20251031":{input:3,output:15,cached:1.5,reasoning:22.5,cache_creation:3},"claude-sonnet-4.6":{input:3,output:15,cached:1.5,reasoning:22.5,cache_creation:3},"claude-opus-4-6-20251031":{input:5,output:25,cached:2.5,reasoning:37.5,cache_creation:5},"claude-opus-4.6":{input:5,output:25,cached:2.5,reasoning:37.5,cache_creation:5}},gemini:{"gemini-3.1-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3-1-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3-pro-preview":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-preview":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-2.5-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-2.5-flash":{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3},"gemini-2.5-flash-lite":{input:.1,output:.4,cached:.025,reasoning:.6,cache_creation:.1}},deepseek:{"deepseek-chat":{input:.28,output:.42,cached:.014,reasoning:.42,cache_creation:.28},"deepseek-v3":{input:.28,output:.42,cached:.014,reasoning:.42,cache_creation:.28},"deepseek-v3.2":{input:.28,output:.42,cached:.014,reasoning:.42,cache_creation:.28},"deepseek-reasoner":{input:.55,output:2.19,cached:.14,reasoning:2.19,cache_creation:.55},"deepseek-r1":{input:.55,output:2.19,cached:.14,reasoning:2.19,cache_creation:.55}},openrouter:{auto:{input:2,output:8,cached:1,reasoning:12,cache_creation:2}},glm:{"glm-5":{input:1,output:3.2,cached:.5,reasoning:4.8,cache_creation:1},"glm-5-turbo":{input:1.2,output:4,cached:.6,reasoning:6,cache_creation:1.2},"glm-4.7":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"glm-4.6":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"glm-4.6v":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75}},kimi:{"kimi-latest":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"kimi-k2.5":{input:.6,output:3,cached:.3,reasoning:4.5,cache_creation:.6},"moonshot-kimi-k2.5":{input:.6,output:3,cached:.3,reasoning:4.5,cache_creation:.6}},minimax:{"minimax-m2.1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"MiniMax-M2.1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"minimax-m2.5":{input:.3,output:1.2,cached:.15,reasoning:1.8,cache_creation:.3},"MiniMax-M2.5":{input:.3,output:1.2,cached:.15,reasoning:1.8,cache_creation:.3}},groq:{"openai/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"llama-3.3-70b-versatile":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"meta-llama/llama-4-maverick-17b-128e-instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"qwen/qwen3-32b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},blackbox:{"gpt-4o":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gemini-2.5-flash":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"claude-sonnet-4":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-v3":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},blackboxai:{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"blackboxai-pro":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},fireworks:{"accounts/fireworks/models/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"accounts/fireworks/models/deepseek-v3p1":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"accounts/fireworks/models/llama-v3p3-70b-instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"accounts/fireworks/models/qwen3-235b-a22b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},cerebras:{"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"zai-glm-4.7":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"llama-3.3-70b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"llama-4-scout-17b-16e-instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"qwen-3-235b-a22b-instruct-2507":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"qwen-3-32b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},nvidia:{"nvidia/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"openai/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"moonshotai/kimi-k2.5":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"z-ai/glm4.7":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-ai/deepseek-v3.2":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"nvidia/llama-3.3-70b-instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"meta/llama-4-maverick-17b-128e-instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek/deepseek-r1":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},nebius:{"openai/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"meta-llama/Llama-3.3-70B-Instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},siliconflow:{"openai/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-ai/DeepSeek-V3.2":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-ai/DeepSeek-V3.1":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-ai/DeepSeek-R1":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"Qwen/Qwen3-235B-A22B-Instruct-2507":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"Qwen/Qwen3-32B":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"moonshotai/Kimi-K2.5":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"zai-org/GLM-4.7":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"baidu/ERNIE-4.5-300B-A47B":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},hyperbolic:{"openai/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"Qwen/QwQ-32B":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-ai/DeepSeek-R1":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-ai/DeepSeek-V3":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"meta-llama/Llama-3.3-70B-Instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"meta-llama/Llama-3.2-3B-Instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"Qwen/Qwen2.5-72B-Instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"Qwen/Qwen2.5-Coder-32B-Instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"NousResearch/Hermes-3-Llama-3.1-70B":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},xai:{"grok-3":{input:3,output:15,cached:1.5,reasoning:22.5,cache_creation:3},"grok-3-mini":{input:.3,output:.5,cached:.15,reasoning:.75,cache_creation:.3},"grok-4-fast-non-reasoning":{input:.2,output:.5,cached:.1,reasoning:0,cache_creation:.2},"grok-4-fast-reasoning":{input:.2,output:.5,cached:.1,reasoning:.75,cache_creation:.2},"grok-4-1-fast-non-reasoning":{input:.2,output:.5,cached:.1,reasoning:0,cache_creation:.2},"grok-4-1-fast-reasoning":{input:.2,output:.5,cached:.1,reasoning:.75,cache_creation:.2},"grok-4-0709":{input:.2,output:1.5,cached:.1,reasoning:2.25,cache_creation:.2}},zai:{"glm-5":{input:1,output:3.2,cached:.5,reasoning:4.8,cache_creation:1},"glm-5-turbo":{input:1.2,output:4,cached:.6,reasoning:6,cache_creation:1.2}},kiro:{"claude-sonnet-4.5":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-haiku-4.5":{input:.5,output:2.5,cached:.25,reasoning:2.5,cache_creation:.5},"claude-sonnet-4":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-opus-4.6":{input:15,output:75,cached:7.5,reasoning:75,cache_creation:15},"deepseek-v3.2":{input:.27,output:1.1,cached:.07,reasoning:1.1,cache_creation:.27},"minimax-m2.1":{input:.4,output:1.6,cached:.1,reasoning:1.6,cache_creation:.4},"qwen3-coder-next":{input:2,output:8,cached:.5,reasoning:8,cache_creation:2},auto:{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3}}};function n(e,n){if(!e||!n)return null;let a=t[e];if(!a)return null;let c=a[n];return c&&"object"==typeof c?c:null}function a(){return t}function c(e){return null==e||isNaN(e)?"$0.00":`$${e.toFixed(2)}`}function i(e,t){if(!e||!t)return 0;let n=0,a=e.prompt_tokens||e.input_tokens||0,c=e.cached_tokens||e.cache_read_input_tokens||0;n+=Math.max(0,a-c)*(t.input/1e6),c>0&&(n+=(t.cached||t.input)/1e6*c),n+=(e.completion_tokens||e.output_tokens||0)*(t.output/1e6);let i=e.reasoning_tokens||0;i>0&&(n+=(t.reasoning||t.output)/1e6*i);let o=e.cache_creation_input_tokens||0;return o>0&&(n+=(t.cache_creation||t.input)/1e6*o),n}e.s(["DEFAULT_PRICING",0,t,"calculateCostFromTokens",()=>i,"formatCost",()=>c,"getDefaultPricing",()=>a,"getPricingForModel",()=>n])},161256,e=>{"use strict";var t=e.i(747909),n=e.i(174017),a=e.i(996250),c=e.i(759756),i=e.i(561916),o=e.i(174677),r=e.i(869741),u=e.i(316795),s=e.i(487718),p=e.i(995169),h=e.i(47587),d=e.i(666012),l=e.i(570101),g=e.i(626937),_=e.i(10372),m=e.i(193695);e.i(52474);var f=e.i(600220),x=e.i(89171),k=e.i(404503);async function v(){try{let e=(0,k.getDefaultPricing)();return x.NextResponse.json(e)}catch(e){return console.error("Error fetching default pricing:",e),x.NextResponse.json({error:"Failed to fetch default pricing"},{status:500})}}e.s(["GET",()=>v],794877);var w=e.i(794877);let b=new t.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/pricing/defaults/route",pathname:"/api/pricing/defaults",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/pricing/defaults/route.ts",nextConfigOutput:"standalone",userland:w}),{workAsyncStorage:y,workUnitAsyncStorage:R,serverHooks:C}=b;function A(){return(0,a.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:R})}async function E(e,t,a){b.isDev&&(0,c.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let x="/api/pricing/defaults/route";x=x.replace(/\/index$/,"")||"/";let k=await b.prepare(e,t,{srcPage:x,multiZoneDraftMode:!1});if(!k)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:v,params:w,nextConfig:y,parsedUrl:R,isDraftMode:C,prerenderManifest:A,routerServerContext:E,isOnDemandRevalidate:S,revalidateOnlyGenerated:O,resolvedPathname:q,clientReferenceManifest:N,serverActionsManifest:P}=k,j=(0,r.normalizeAppPath)(x),D=!!(A.dynamicRoutes[j]||A.routes[q]),I=async()=>((null==E?void 0:E.render404)?await E.render404(e,t,R,!1):t.end("This page could not be found"),null);if(D&&!C){let e=!!A.routes[q],t=A.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(y.experimental.adapterPath)return await I();throw new m.NoFallbackError}}let T=null;!D||b.isDev||C||(T="/index"===(T=q)?"/":T);let M=!0===b.isDev||!D,$=D&&!M;P&&N&&(0,o.setManifestsSingleton)({page:x,clientReferenceManifest:N,serverActionsManifest:P});let U=e.method||"GET",B=(0,i.getTracer)(),H=B.getActiveScopeSpan(),L={params:w,prerenderManifest:A,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:M,incrementalCache:(0,c.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,n,a,c)=>b.onRequestError(e,t,a,c,E)},sharedContext:{buildId:v}},F=new u.NodeNextRequest(e),Q=new u.NodeNextResponse(t),K=s.NextRequestAdapter.fromNodeNextRequest(F,(0,s.signalFromNodeResponse)(t));try{let o=async e=>b.handle(K,L).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let n=B.getRootSpanAttributes();if(!n)return;if(n.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${n.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=n.get("next.route");if(a){let t=`${U} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${U} ${x}`)}),r=!!(0,c.getRequestMeta)(e,"minimalMode"),u=async c=>{var i,u;let s=async({previousCacheEntry:n})=>{try{if(!r&&S&&O&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await o(c);e.fetchMetrics=L.renderOpts.fetchMetrics;let u=L.renderOpts.pendingWaitUntil;u&&a.waitUntil&&(a.waitUntil(u),u=void 0);let s=L.renderOpts.collectedTags;if(!D)return await (0,d.sendResponse)(F,Q,i,L.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,l.toNodeOutgoingHttpHeaders)(i.headers);s&&(t[_.NEXT_CACHE_TAGS_HEADER]=s),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let n=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=_.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,a=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=_.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:n,expire:a}}}}catch(t){throw(null==n?void 0:n.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:x,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:S})},!1,E),t}},p=await b.handleResponse({req:e,nextConfig:y,cacheKey:T,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:O,responseGenerator:s,waitUntil:a.waitUntil,isMinimalMode:r});if(!D)return null;if((null==p||null==(i=p.value)?void 0:i.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(u=p.value)?void 0:u.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});r||t.setHeader("x-nextjs-cache",S?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,l.fromNodeOutgoingHttpHeaders)(p.value.headers);return r&&D||m.delete(_.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,g.getCacheControlHeader)(p.cacheControl)),await (0,d.sendResponse)(F,Q,new Response(p.value.body,{headers:m,status:p.value.status||200})),null};H?await u(H):await B.withPropagatedContext(e.headers,()=>B.trace(p.BaseServerSpan.handleRequest,{spanName:`${U} ${x}`,kind:i.SpanKind.SERVER,attributes:{"http.method":U,"http.target":e.url}},u))}catch(t){if(t instanceof m.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:S})},!1,E),D)throw t;return await (0,d.sendResponse)(F,Q,new Response(null,{status:500})),null}}e.s(["handler",()=>E,"patchFetch",()=>A,"routeModule",()=>b,"serverHooks",()=>C,"workAsyncStorage",()=>y,"workUnitAsyncStorage",()=>R],161256)}];
1
+ module.exports=[918622,(e,t,n)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,n)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,n)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,n)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,n)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,n)=>{"use strict";var a=Object.defineProperty,c=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,r={},u={RequestCookies:()=>_,ResponseCookies:()=>m,parseCookie:()=>h,parseSetCookie:()=>d,stringifyCookie:()=>p};for(var s in u)a(r,s,{get:u[s],enumerable:!0});function p(e){var t;let n=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),a=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===n.length?a:`${a}; ${n.join("; ")}`}function h(e){let t=new Map;for(let n of e.split(/; */)){if(!n)continue;let e=n.indexOf("=");if(-1===e){t.set(n,"true");continue}let[a,c]=[n.slice(0,e),n.slice(e+1)];try{t.set(a,decodeURIComponent(null!=c?c:"true"))}catch{}}return t}function d(e){if(!e)return;let[[t,n],...a]=h(e),{domain:c,expires:i,httponly:o,maxage:r,path:u,samesite:s,secure:p,partitioned:d,priority:_}=Object.fromEntries(a.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var m,f,x={name:t,value:decodeURIComponent(n),domain:c,...i&&{expires:new Date(i)},...o&&{httpOnly:!0},..."string"==typeof r&&{maxAge:Number(r)},path:u,...s&&{sameSite:l.includes(m=(m=s).toLowerCase())?m:void 0},...p&&{secure:!0},..._&&{priority:g.includes(f=(f=_).toLowerCase())?f:void 0},...d&&{partitioned:!0}};let e={};for(let t in x)x[t]&&(e[t]=x[t]);return e}}t.exports=((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of i(t))o.call(e,n)||void 0===n||a(e,n,{get:()=>t[n],enumerable:!(r=c(t,n))||r.enumerable});return e})(a({},"__esModule",{value:!0}),r);var l=["strict","lax","none"],g=["low","medium","high"],_=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,n]of h(t))this._parsed.set(e,{name:e,value:n})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let n=Array.from(this._parsed);if(!e.length)return n.map(([e,t])=>t);let a="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return n.filter(([e])=>e===a).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,n]=1===e.length?[e[0].name,e[0].value]:e,a=this._parsed;return a.set(t,{name:t,value:n}),this._headers.set("cookie",Array.from(a).map(([e,t])=>p(t)).join("; ")),this}delete(e){let t=this._parsed,n=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>p(t)).join("; ")),n}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},m=class{constructor(e){var t,n,a;this._parsed=new Map,this._headers=e;const c=null!=(a=null!=(n=null==(t=e.getSetCookie)?void 0:t.call(e))?n:e.get("set-cookie"))?a:[];for(const e of Array.isArray(c)?c:function(e){if(!e)return[];var t,n,a,c,i,o=[],r=0;function u(){for(;r<e.length&&/\s/.test(e.charAt(r));)r+=1;return r<e.length}for(;r<e.length;){for(t=r,i=!1;u();)if(","===(n=e.charAt(r))){for(a=r,r+=1,u(),c=r;r<e.length&&"="!==(n=e.charAt(r))&&";"!==n&&","!==n;)r+=1;r<e.length&&"="===e.charAt(r)?(i=!0,r=c,o.push(e.substring(t,a)),t=r):r=a+1}else r+=1;(!i||r>=e.length)&&o.push(e.substring(t,e.length))}return o}(c)){const t=d(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let n=Array.from(this._parsed.values());if(!e.length)return n;let a="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return n.filter(e=>e.name===a)}has(e){return this._parsed.has(e)}set(...e){let[t,n,a]=1===e.length?[e[0].name,e[0].value,e[0]]:e,c=this._parsed;return c.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:n,...a})),function(e,t){for(let[,n]of(t.delete("set-cookie"),e)){let e=p(n);t.append("set-cookie",e)}}(c,this._headers),this}delete(...e){let[t,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...n,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(p).join("; ")}}},404503,e=>{"use strict";let t={input:5,output:20,cached:2.5,reasoning:30,cache_creation:5},n={input:15,output:75,cached:7.5,reasoning:112.5,cache_creation:15},a={input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},c={cc:{"claude-opus-4-6":{input:5,output:25,cached:2.5,reasoning:25,cache_creation:5},"claude-sonnet-4-6":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-opus-4-5-20251101":{input:15,output:75,cached:7.5,reasoning:75,cache_creation:15},"claude-sonnet-4-5-20250929":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-haiku-4-5-20251001":{input:.5,output:2.5,cached:.25,reasoning:2.5,cache_creation:.5}},cx:{"gpt-5.4":{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5},"gpt5.4":{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5},"gpt-5.3-codex":t,"gpt-5.3-codex-xhigh":t,"gpt-5.3-codex-high":t,"gpt-5.3-codex-low":t,"gpt-5.3-codex-none":t,"gpt-5.1-codex-mini-high":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"gpt-5.2-codex":{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5},"gpt-5.2":{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5},"gpt-5.1-codex-max":{input:8,output:32,cached:4,reasoning:48,cache_creation:8},"gpt-5.1-codex":{input:4,output:16,cached:2,reasoning:24,cache_creation:4},"gpt-5.1-codex-mini":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"gpt-5.1":{input:4,output:16,cached:2,reasoning:24,cache_creation:4},"gpt-5-codex":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"gpt-5-codex-mini":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},gc:{"gemini-3-flash-preview":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3-pro-preview":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-preview":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-2.5-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-2.5-flash":{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3},"gemini-2.5-flash-lite":{input:.1,output:.4,cached:.025,reasoning:.6,cache_creation:.1}},qw:{"qwen3-coder-plus":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"qwen3-coder-next":{input:2,output:8,cached:1,reasoning:12,cache_creation:2},"qwen3-coder-flash":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"vision-model":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},if:{"qwen3-coder-plus":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"kimi-k2":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"kimi-k2-thinking":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"deepseek-r1":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"deepseek-v3.2-chat":{input:.28,output:.42,cached:.014,reasoning:.63,cache_creation:.28},"deepseek-v3.2":{input:.28,output:.42,cached:.014,reasoning:.63,cache_creation:.28},"deepseek-v3.2-reasoner":{input:.55,output:2.19,cached:.14,reasoning:2.19,cache_creation:.55},"deepseek-3.1":{input:.27,output:1.1,cached:.07,reasoning:2.2,cache_creation:.27},"deepseek-3.2":{input:.27,output:1.1,cached:.07,reasoning:2.2,cache_creation:.27},"minimax-m2":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"glm-4.6":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"glm-4.7":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75}},ag:{"gemini-3.1-pro-low":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-high":{input:4,output:18,cached:.5,reasoning:27,cache_creation:4},"gemini-3-flash":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"claude-sonnet-4-6":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-opus-4-6-thinking":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"gpt-oss-120b-medium":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},gh:{"gpt-5":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"gpt-5-mini":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"gpt-5.1-codex":{input:4,output:16,cached:2,reasoning:24,cache_creation:4},"gpt-5.1-codex-max":{input:8,output:32,cached:4,reasoning:48,cache_creation:8},"gpt-4.1":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"claude-4.5-sonnet":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-4.5-opus":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-4.5-haiku":{input:.5,output:2.5,cached:.05,reasoning:3.75,cache_creation:.5},"gemini-3-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3-flash":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-2.5-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"grok-code-fast-1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},openai:{"gpt-4o":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-4o-mini":{input:.15,output:.6,cached:.075,reasoning:.9,cache_creation:.15},"gpt-4-turbo":{input:10,output:30,cached:5,reasoning:45,cache_creation:10},o1:{input:15,output:60,cached:7.5,reasoning:90,cache_creation:15},"o1-mini":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},anthropic:{"claude-sonnet-4-20250514":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-opus-4-20250514":{input:15,output:75,cached:7.5,reasoning:112.5,cache_creation:15},"claude-3-5-sonnet-20241022":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-haiku-4-5-20251001":{input:1,output:5,cached:.5,reasoning:7.5,cache_creation:1},"claude-haiku-4.5":{input:1,output:5,cached:.5,reasoning:7.5,cache_creation:1},"claude-sonnet-4-6-20251031":{input:3,output:15,cached:1.5,reasoning:22.5,cache_creation:3},"claude-sonnet-4.6":{input:3,output:15,cached:1.5,reasoning:22.5,cache_creation:3},"claude-opus-4-6-20251031":{input:5,output:25,cached:2.5,reasoning:37.5,cache_creation:5},"claude-opus-4.6":{input:5,output:25,cached:2.5,reasoning:37.5,cache_creation:5},"claude-opus-4-6":{input:5,output:25,cached:2.5,reasoning:37.5,cache_creation:5},"claude-sonnet-4-6":{input:3,output:15,cached:1.5,reasoning:22.5,cache_creation:3},"claude-opus-4-5-20251101":n,"claude-sonnet-4-5-20250929":a,"claude-sonnet-4":a,"claude-opus-4":n},gemini:{"gemini-3.1-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3-1-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3-pro-preview":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-preview":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-2.5-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-2.5-flash":{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3},"gemini-2.5-flash-lite":{input:.1,output:.4,cached:.025,reasoning:.6,cache_creation:.1}},deepseek:{"deepseek-chat":{input:.28,output:.42,cached:.014,reasoning:.42,cache_creation:.28},"deepseek-v3":{input:.28,output:.42,cached:.014,reasoning:.42,cache_creation:.28},"deepseek-v3.2":{input:.28,output:.42,cached:.014,reasoning:.42,cache_creation:.28},"deepseek-reasoner":{input:.55,output:2.19,cached:.14,reasoning:2.19,cache_creation:.55},"deepseek-r1":{input:.55,output:2.19,cached:.14,reasoning:2.19,cache_creation:.55}},openrouter:{auto:{input:2,output:8,cached:1,reasoning:12,cache_creation:2}},glm:{"glm-5":{input:1,output:3.2,cached:.5,reasoning:4.8,cache_creation:1},"glm-5-turbo":{input:1.2,output:4,cached:.6,reasoning:6,cache_creation:1.2},"glm-4.7":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"glm-4.6":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"glm-4.6v":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75}},kimi:{"kimi-latest":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"kimi-k2.5":{input:.6,output:3,cached:.3,reasoning:4.5,cache_creation:.6},"moonshot-kimi-k2.5":{input:.6,output:3,cached:.3,reasoning:4.5,cache_creation:.6}},minimax:{"minimax-m2.1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"MiniMax-M2.1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"minimax-m2.5":{input:.3,output:1.2,cached:.15,reasoning:1.8,cache_creation:.3},"MiniMax-M2.5":{input:.3,output:1.2,cached:.15,reasoning:1.8,cache_creation:.3}},groq:{"openai/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"llama-3.3-70b-versatile":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"meta-llama/llama-4-maverick-17b-128e-instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"qwen/qwen3-32b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},blackbox:{"gpt-4o":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gemini-2.5-flash":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"claude-sonnet-4":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-v3":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},blackboxai:{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"blackboxai-pro":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},fireworks:{"accounts/fireworks/models/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"accounts/fireworks/models/deepseek-v3p1":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"accounts/fireworks/models/llama-v3p3-70b-instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"accounts/fireworks/models/qwen3-235b-a22b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},cerebras:{"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"zai-glm-4.7":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"llama-3.3-70b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"llama-4-scout-17b-16e-instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"qwen-3-235b-a22b-instruct-2507":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"qwen-3-32b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},nvidia:{"nvidia/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"openai/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"moonshotai/kimi-k2.5":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"z-ai/glm4.7":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-ai/deepseek-v3.2":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"nvidia/llama-3.3-70b-instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"meta/llama-4-maverick-17b-128e-instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek/deepseek-r1":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},nebius:{"openai/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"meta-llama/Llama-3.3-70B-Instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},siliconflow:{"openai/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-ai/DeepSeek-V3.2":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-ai/DeepSeek-V3.1":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-ai/DeepSeek-R1":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"Qwen/Qwen3-235B-A22B-Instruct-2507":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"Qwen/Qwen3-32B":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"moonshotai/Kimi-K2.5":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"zai-org/GLM-4.7":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"baidu/ERNIE-4.5-300B-A47B":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},hyperbolic:{"openai/gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"gpt-oss-120b":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"Qwen/QwQ-32B":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-ai/DeepSeek-R1":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"deepseek-ai/DeepSeek-V3":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"meta-llama/Llama-3.3-70B-Instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"meta-llama/Llama-3.2-3B-Instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"Qwen/Qwen2.5-72B-Instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"Qwen/Qwen2.5-Coder-32B-Instruct":{input:0,output:0,cached:0,reasoning:0,cache_creation:0},"NousResearch/Hermes-3-Llama-3.1-70B":{input:0,output:0,cached:0,reasoning:0,cache_creation:0}},xai:{"grok-3":{input:3,output:15,cached:1.5,reasoning:22.5,cache_creation:3},"grok-3-mini":{input:.3,output:.5,cached:.15,reasoning:.75,cache_creation:.3},"grok-4-fast-non-reasoning":{input:.2,output:.5,cached:.1,reasoning:0,cache_creation:.2},"grok-4-fast-reasoning":{input:.2,output:.5,cached:.1,reasoning:.75,cache_creation:.2},"grok-4-1-fast-non-reasoning":{input:.2,output:.5,cached:.1,reasoning:0,cache_creation:.2},"grok-4-1-fast-reasoning":{input:.2,output:.5,cached:.1,reasoning:.75,cache_creation:.2},"grok-4-0709":{input:.2,output:1.5,cached:.1,reasoning:2.25,cache_creation:.2}},zai:{"glm-5":{input:1,output:3.2,cached:.5,reasoning:4.8,cache_creation:1},"glm-5-turbo":{input:1.2,output:4,cached:.6,reasoning:6,cache_creation:1.2}},kiro:{"claude-sonnet-4.5":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-haiku-4.5":{input:.5,output:2.5,cached:.25,reasoning:2.5,cache_creation:.5},"claude-sonnet-4":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-opus-4.6":{input:15,output:75,cached:7.5,reasoning:75,cache_creation:15},"deepseek-v3.2":{input:.27,output:1.1,cached:.07,reasoning:1.1,cache_creation:.27},"minimax-m2.1":{input:.4,output:1.6,cached:.1,reasoning:1.6,cache_creation:.4},"qwen3-coder-next":{input:2,output:8,cached:.5,reasoning:8,cache_creation:2},auto:{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3}}};function i(e,t){if(!e||!t)return null;let n=c[e];if(!n)return null;let a=n[t];return a&&"object"==typeof a?a:null}function o(){return c}function r(e){return null==e||isNaN(e)?"$0.00":`$${e.toFixed(2)}`}function u(e,t){if(!e||!t)return 0;let n=0,a=e.prompt_tokens||e.input_tokens||0,c=e.cached_tokens||e.cache_read_input_tokens||0;n+=Math.max(0,a-c)*(t.input/1e6),c>0&&(n+=(t.cached||t.input)/1e6*c),n+=(e.completion_tokens||e.output_tokens||0)*(t.output/1e6);let i=e.reasoning_tokens||0;i>0&&(n+=(t.reasoning||t.output)/1e6*i);let o=e.cache_creation_input_tokens||0;return o>0&&(n+=(t.cache_creation||t.input)/1e6*o),n}e.s(["DEFAULT_PRICING",0,c,"calculateCostFromTokens",()=>u,"formatCost",()=>r,"getDefaultPricing",()=>o,"getPricingForModel",()=>i])},161256,e=>{"use strict";var t=e.i(747909),n=e.i(174017),a=e.i(996250),c=e.i(759756),i=e.i(561916),o=e.i(174677),r=e.i(869741),u=e.i(316795),s=e.i(487718),p=e.i(995169),h=e.i(47587),d=e.i(666012),l=e.i(570101),g=e.i(626937),_=e.i(10372),m=e.i(193695);e.i(52474);var f=e.i(600220),x=e.i(89171),k=e.i(404503);async function v(){try{let e=(0,k.getDefaultPricing)();return x.NextResponse.json(e)}catch(e){return console.error("Error fetching default pricing:",e),x.NextResponse.json({error:"Failed to fetch default pricing"},{status:500})}}e.s(["GET",()=>v],794877);var w=e.i(794877);let b=new t.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/pricing/defaults/route",pathname:"/api/pricing/defaults",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/pricing/defaults/route.ts",nextConfigOutput:"standalone",userland:w}),{workAsyncStorage:y,workUnitAsyncStorage:R,serverHooks:C}=b;function A(){return(0,a.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:R})}async function E(e,t,a){b.isDev&&(0,c.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let x="/api/pricing/defaults/route";x=x.replace(/\/index$/,"")||"/";let k=await b.prepare(e,t,{srcPage:x,multiZoneDraftMode:!1});if(!k)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:v,params:w,nextConfig:y,parsedUrl:R,isDraftMode:C,prerenderManifest:A,routerServerContext:E,isOnDemandRevalidate:S,revalidateOnlyGenerated:O,resolvedPathname:q,clientReferenceManifest:N,serverActionsManifest:P}=k,j=(0,r.normalizeAppPath)(x),D=!!(A.dynamicRoutes[j]||A.routes[q]),I=async()=>((null==E?void 0:E.render404)?await E.render404(e,t,R,!1):t.end("This page could not be found"),null);if(D&&!C){let e=!!A.routes[q],t=A.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(y.experimental.adapterPath)return await I();throw new m.NoFallbackError}}let T=null;!D||b.isDev||C||(T="/index"===(T=q)?"/":T);let M=!0===b.isDev||!D,$=D&&!M;P&&N&&(0,o.setManifestsSingleton)({page:x,clientReferenceManifest:N,serverActionsManifest:P});let U=e.method||"GET",B=(0,i.getTracer)(),H=B.getActiveScopeSpan(),L={params:w,prerenderManifest:A,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:M,incrementalCache:(0,c.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,n,a,c)=>b.onRequestError(e,t,a,c,E)},sharedContext:{buildId:v}},F=new u.NodeNextRequest(e),Q=new u.NodeNextResponse(t),K=s.NextRequestAdapter.fromNodeNextRequest(F,(0,s.signalFromNodeResponse)(t));try{let o=async e=>b.handle(K,L).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let n=B.getRootSpanAttributes();if(!n)return;if(n.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${n.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=n.get("next.route");if(a){let t=`${U} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${U} ${x}`)}),r=!!(0,c.getRequestMeta)(e,"minimalMode"),u=async c=>{var i,u;let s=async({previousCacheEntry:n})=>{try{if(!r&&S&&O&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await o(c);e.fetchMetrics=L.renderOpts.fetchMetrics;let u=L.renderOpts.pendingWaitUntil;u&&a.waitUntil&&(a.waitUntil(u),u=void 0);let s=L.renderOpts.collectedTags;if(!D)return await (0,d.sendResponse)(F,Q,i,L.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,l.toNodeOutgoingHttpHeaders)(i.headers);s&&(t[_.NEXT_CACHE_TAGS_HEADER]=s),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let n=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=_.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,a=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=_.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:n,expire:a}}}}catch(t){throw(null==n?void 0:n.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:x,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:S})},!1,E),t}},p=await b.handleResponse({req:e,nextConfig:y,cacheKey:T,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:O,responseGenerator:s,waitUntil:a.waitUntil,isMinimalMode:r});if(!D)return null;if((null==p||null==(i=p.value)?void 0:i.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(u=p.value)?void 0:u.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});r||t.setHeader("x-nextjs-cache",S?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,l.fromNodeOutgoingHttpHeaders)(p.value.headers);return r&&D||m.delete(_.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,g.getCacheControlHeader)(p.cacheControl)),await (0,d.sendResponse)(F,Q,new Response(p.value.body,{headers:m,status:p.value.status||200})),null};H?await u(H):await B.withPropagatedContext(e.headers,()=>B.trace(p.BaseServerSpan.handleRequest,{spanName:`${U} ${x}`,kind:i.SpanKind.SERVER,attributes:{"http.method":U,"http.target":e.url}},u))}catch(t){if(t instanceof m.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:S})},!1,E),D)throw t;return await (0,d.sendResponse)(F,Q,new Response(null,{status:500})),null}}e.s(["handler",()=>E,"patchFetch",()=>A,"routeModule",()=>b,"serverHooks",()=>C,"workAsyncStorage",()=>y,"workUnitAsyncStorage",()=>R],161256)}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__85096f79._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},256770,e=>{"use strict";var t=e.i(814747),r=e.i(446786);let n="omniroute";function a(){try{return r.default.homedir()}catch{return process.cwd()}}function s(e){if("string"!=typeof e)return null;let r=e.trim();return r?t.default.resolve(r):null}function i(){return t.default.join(a(),`.${n}`)}function o({isCloud:e=!1}={}){let r;if(e)return"/tmp";let l=s(process.env.DATA_DIR);return l?l:(a(),(r=s(process.env.XDG_CONFIG_HOME))?t.default.join(r,n):i())}function l(e,r){return!!e&&!!r&&t.default.resolve(e)===t.default.resolve(r)}e.s(["getLegacyDotDataDir",()=>i,"isSamePath",()=>l,"resolveDataDir",()=>o])},918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,r)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,r)=>{"use strict";var n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={},l={RequestCookies:()=>m,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>c,stringifyCookie:()=>p};for(var u in l)n(o,u,{get:l[u],enumerable:!0});function p(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function d(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,a]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=a?a:"true"))}catch{}}return t}function c(e){if(!e)return;let[[t,r],...n]=d(e),{domain:a,expires:s,httponly:i,maxage:o,path:l,samesite:u,secure:p,partitioned:c,priority:m}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,x,v={name:t,value:decodeURIComponent(r),domain:a,...s&&{expires:new Date(s)},...i&&{httpOnly:!0},..."string"==typeof o&&{maxAge:Number(o)},path:l,...u&&{sameSite:h.includes(g=(g=u).toLowerCase())?g:void 0},...p&&{secure:!0},...m&&{priority:f.includes(x=(x=m).toLowerCase())?x:void 0},...c&&{partitioned:!0}};let e={};for(let t in v)v[t]&&(e[t]=v[t]);return e}}t.exports=((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of s(t))i.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(o=a(t,r))||o.enumerable});return e})(n({},"__esModule",{value:!0}),o);var h=["strict","lax","none"],f=["low","medium","high"],m=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>p(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>p(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const a=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(a)?a:function(e){if(!e)return[];var t,r,n,a,s,i=[],o=0;function l(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,s=!1;l();)if(","===(r=e.charAt(o))){for(n=o,o+=1,l(),a=o;o<e.length&&"="!==(r=e.charAt(o))&&";"!==r&&","!==r;)o+=1;o<e.length&&"="===e.charAt(o)?(s=!0,o=a,i.push(e.substring(t,n)),t=o):o=n+1}else o+=1;(!s||o>=e.length)&&i.push(e.substring(t,e.length))}return i}(a)){const t=c(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,a=this._parsed;return a.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=p(r);t.append("set-cookie",e)}}(a,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(p).join("; ")}}},310237,e=>{"use strict";var t=e.i(747909),r=e.i(174017),n=e.i(996250),a=e.i(759756),s=e.i(561916),i=e.i(174677),o=e.i(869741),l=e.i(316795),u=e.i(487718),p=e.i(995169),d=e.i(47587),c=e.i(666012),h=e.i(570101),f=e.i(626937),m=e.i(10372),g=e.i(193695);e.i(52474);var x=e.i(600220),v=e.i(89171),y=e.i(814747),R=e.i(522734),w=e.i(256770);async function A(){try{let e=(0,w.resolveDataDir)({}),t=y.default.join(e,"storage.sqlite"),r=y.default.join(e,"db_backups"),n=0;try{R.default.existsSync(t)&&(n=R.default.statSync(t).size)}catch{}let a=null,s=0;try{if(R.default.existsSync(r)){let e=R.default.readdirSync(r).filter(e=>e.startsWith("db_")&&e.endsWith(".sqlite")).sort().reverse();s=e.length,e.length>0&&(a=R.default.statSync(y.default.join(r,e[0])).mtime.toISOString())}}catch{}let i=process.env.HOME||process.env.USERPROFILE||"",o=t.startsWith(i)?"~"+t.slice(i.length):t;return v.NextResponse.json({driver:"sqlite",dbPath:o,sizeBytes:n,lastBackupAt:a,backupCount:s,retentionDays:90,dataDir:e.startsWith(i)?"~"+e.slice(i.length):e})}catch(e){return console.error("[API] Error getting storage health:",e),v.NextResponse.json({error:e.message},{status:500})}}e.s(["GET",()=>A],901171);var b=e.i(901171);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/storage/health/route",pathname:"/api/storage/health",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/storage/health/route.ts",nextConfigOutput:"standalone",userland:b}),{workAsyncStorage:_,workUnitAsyncStorage:E,serverHooks:S}=C;function O(){return(0,n.patchFetch)({workAsyncStorage:_,workUnitAsyncStorage:E})}async function j(e,t,n){C.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/storage/health/route";v=v.replace(/\/index$/,"")||"/";let y=await C.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!y)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:R,params:w,nextConfig:A,parsedUrl:b,isDraftMode:_,prerenderManifest:E,routerServerContext:S,isOnDemandRevalidate:O,revalidateOnlyGenerated:j,resolvedPathname:k,clientReferenceManifest:P,serverActionsManifest:D}=y,N=(0,o.normalizeAppPath)(v),q=!!(E.dynamicRoutes[N]||E.routes[k]),T=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,b,!1):t.end("This page could not be found"),null);if(q&&!_){let e=!!E.routes[k],t=E.dynamicRoutes[N];if(t&&!1===t.fallback&&!e){if(A.experimental.adapterPath)return await T();throw new g.NoFallbackError}}let I=null;!q||C.isDev||_||(I="/index"===(I=k)?"/":I);let $=!0===C.isDev||!q,U=q&&!$;D&&P&&(0,i.setManifestsSingleton)({page:v,clientReferenceManifest:P,serverActionsManifest:D});let H=e.method||"GET",M=(0,s.getTracer)(),F=M.getActiveScopeSpan(),L={params:w,prerenderManifest:E,renderOpts:{experimental:{authInterrupts:!!A.experimental.authInterrupts},cacheComponents:!!A.cacheComponents,supportsDynamicResponse:$,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:A.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>C.onRequestError(e,t,n,a,S)},sharedContext:{buildId:R}},K=new l.NodeNextRequest(e),B=new l.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let i=async e=>C.handle(G,L).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=M.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${H} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${v}`)}),o=!!(0,a.getRequestMeta)(e,"minimalMode"),l=async a=>{var s,l;let u=async({previousCacheEntry:r})=>{try{if(!o&&O&&j&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(a);e.fetchMetrics=L.renderOpts.fetchMetrics;let l=L.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let u=L.renderOpts.collectedTags;if(!q)return await (0,c.sendResponse)(K,B,s,L.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);u&&(t[m.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,n=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:x.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:O})},!1,S),t}},p=await C.handleResponse({req:e,nextConfig:A,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:E,isRoutePPREnabled:!1,isOnDemandRevalidate:O,revalidateOnlyGenerated:j,responseGenerator:u,waitUntil:n.waitUntil,isMinimalMode:o});if(!q)return null;if((null==p||null==(s=p.value)?void 0:s.kind)!==x.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(l=p.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",O?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),_&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let g=(0,h.fromNodeOutgoingHttpHeaders)(p.value.headers);return o&&q||g.delete(m.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||g.get("Cache-Control")||g.set("Cache-Control",(0,f.getCacheControlHeader)(p.cacheControl)),await (0,c.sendResponse)(K,B,new Response(p.value.body,{headers:g,status:p.value.status||200})),null};F?await l(F):await M.withPropagatedContext(e.headers,()=>M.trace(p.BaseServerSpan.handleRequest,{spanName:`${H} ${v}`,kind:s.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof g.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:O})},!1,S),q)throw t;return await (0,c.sendResponse)(K,B,new Response(null,{status:500})),null}}e.s(["handler",()=>j,"patchFetch",()=>O,"routeModule",()=>C,"serverHooks",()=>S,"workAsyncStorage",()=>_,"workUnitAsyncStorage",()=>E],310237)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__9230ee98._.js.map
@@ -1,4 +1,4 @@
1
- module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,r)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,r)=>{"use strict";var s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={},l={RequestCookies:()=>m,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>p,stringifyCookie:()=>c};for(var u in l)s(o,u,{get:l[u],enumerable:!0});function c(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),s=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?s:`${s}; ${r.join("; ")}`}function d(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[s,a]=[r.slice(0,e),r.slice(e+1)];try{t.set(s,decodeURIComponent(null!=a?a:"true"))}catch{}}return t}function p(e){if(!e)return;let[[t,r],...s]=d(e),{domain:a,expires:n,httponly:i,maxage:o,path:l,samesite:u,secure:c,partitioned:p,priority:m}=Object.fromEntries(s.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,v,y={name:t,value:decodeURIComponent(r),domain:a,...n&&{expires:new Date(n)},...i&&{httpOnly:!0},..."string"==typeof o&&{maxAge:Number(o)},path:l,...u&&{sameSite:h.includes(g=(g=u).toLowerCase())?g:void 0},...c&&{secure:!0},...m&&{priority:f.includes(v=(v=m).toLowerCase())?v:void 0},...p&&{partitioned:!0}};let e={};for(let t in y)y[t]&&(e[t]=y[t]);return e}}t.exports=((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of n(t))i.call(e,r)||void 0===r||s(e,r,{get:()=>t[r],enumerable:!(o=a(t,r))||o.enumerable});return e})(s({},"__esModule",{value:!0}),o);var h=["strict","lax","none"],f=["low","medium","high"],m=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let s="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===s).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,s=this._parsed;return s.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(s).map(([e,t])=>c(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>c(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,r,s;this._parsed=new Map,this._headers=e;const a=null!=(s=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?s:[];for(const e of Array.isArray(a)?a:function(e){if(!e)return[];var t,r,s,a,n,i=[],o=0;function l(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,n=!1;l();)if(","===(r=e.charAt(o))){for(s=o,o+=1,l(),a=o;o<e.length&&"="!==(r=e.charAt(o))&&";"!==r&&","!==r;)o+=1;o<e.length&&"="===e.charAt(o)?(n=!0,o=a,i.push(e.substring(t,s)),t=o):o=s+1}else o+=1;(!n||o>=e.length)&&i.push(e.substring(t,e.length))}return i}(a)){const t=p(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let s="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===s)}has(e){return this._parsed.has(e)}set(...e){let[t,r,s]=1===e.length?[e[0].name,e[0].value,e[0]]:e,a=this._parsed;return a.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...s})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=c(r);t.append("set-cookie",e)}}(a,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(c).join("; ")}}},677850,e=>e.a(async(t,r)=>{try{let t=await e.y("zod");e.n(t),r()}catch(e){r(e)}},!0),200392,e=>e.a(async(t,r)=>{try{var s=e.i(677850),a=t([s]);function n(e,t){let r=e.safeParse(t);if(r.success)return{success:!0,data:r.data};let s=Array.isArray(r.error?.issues)?r.error.issues:[];return{success:!1,error:{message:"Invalid request",details:s.map(e=>({field:e.path.join("."),message:e.message}))}}}function i(e){return!1===e.success}[s]=a.then?(await a)():a,s.z.object({password:s.z.string().min(1,"Password is required").max(200)}),e.s(["isValidationFailure",()=>i,"validateBody",()=>n]),r()}catch(e){r(e)}},!1),180725,e=>{"use strict";e.i(245272),e.s([])},997953,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].ReactServerDOMTurbopackServer},745015,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"registerServerReference",{enumerable:!0,get:function(){return s.registerServerReference}});let s=e.r(997953)},195975,(e,t,r)=>{"use strict";function s(e){for(let t=0;t<e.length;t++){let r=e[t];if("function"!=typeof r)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof r}.
2
- Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ensureServerEntryExports",{enumerable:!0,get:function(){return s}})},428660,e=>e.a(async(t,r)=>{try{var s=e.i(745015),a=e.i(89171);e.i(180725);var n=e.i(542949),i=e.i(676088),o=e.i(200392),l=e.i(195975),u=t([i,o]);async function c(e){try{let{searchParams:t}=new URL(e.url),r=t.get("tool"),s=await (0,n.getMitmAlias)(r||void 0);return a.NextResponse.json({aliases:s})}catch(e){return console.log("Error fetching MITM aliases:",e.message),a.NextResponse.json({error:"Failed to fetch aliases"},{status:500})}}async function d(e){let t;try{t=await e.json()}catch{return a.NextResponse.json({error:{message:"Invalid request",details:[{field:"body",message:"Invalid JSON body"}]}},{status:400})}try{let e=(0,o.validateBody)(i.cliMitmAliasUpdateSchema,t);if((0,o.isValidationFailure)(e))return a.NextResponse.json({error:e.error},{status:400});let{tool:r,mappings:s}=e.data,l={};for(let[e,t]of Object.entries(s))t&&t.trim()&&(l[e]=t.trim());return await (0,n.setMitmAliasAll)(r,l),a.NextResponse.json({success:!0,aliases:l})}catch(e){return console.log("Error saving MITM aliases:",e.message),a.NextResponse.json({error:"Failed to save aliases"},{status:500})}}[i,o]=u.then?(await u)():u,(0,l.ensureServerEntryExports)([c,d]),(0,s.registerServerReference)(c,"409db498c1f5104d61820995e744cd0b9dab9ab8d6",null),(0,s.registerServerReference)(d,"4003fb6d0cb529cd327219e3404f4d242300f4a814",null),e.s(["GET",()=>c,"PUT",()=>d]),r()}catch(e){r(e)}},!1),681974,e=>e.a(async(t,r)=>{try{var s=e.i(747909),a=e.i(174017),n=e.i(996250),i=e.i(759756),o=e.i(561916),l=e.i(174677),u=e.i(869741),c=e.i(316795),d=e.i(487718),p=e.i(995169),h=e.i(47587),f=e.i(666012),m=e.i(570101),g=e.i(626937),v=e.i(10372),y=e.i(193695);e.i(52474);var x=e.i(600220),R=e.i(428660),b=t([R]);[R]=b.then?(await b)():b;let A=new s.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/cli-tools/antigravity-mitm/alias/route",pathname:"/api/cli-tools/antigravity-mitm/alias",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/cli-tools/antigravity-mitm/alias/route.ts",nextConfigOutput:"standalone",userland:R}),{workAsyncStorage:E,workUnitAsyncStorage:C,serverHooks:j}=A;function w(){return(0,n.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:C})}async function _(e,t,r){A.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let s="/api/cli-tools/antigravity-mitm/alias/route";s=s.replace(/\/index$/,"")||"/";let n=await A.prepare(e,t,{srcPage:s,multiZoneDraftMode:!1});if(!n)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:R,params:b,nextConfig:w,parsedUrl:_,isDraftMode:E,prerenderManifest:C,routerServerContext:j,isOnDemandRevalidate:O,revalidateOnlyGenerated:S,resolvedPathname:P,clientReferenceManifest:k,serverActionsManifest:N}=n,T=(0,u.normalizeAppPath)(s),M=!!(C.dynamicRoutes[T]||C.routes[P]),q=async()=>((null==j?void 0:j.render404)?await j.render404(e,t,_,!1):t.end("This page could not be found"),null);if(M&&!E){let e=!!C.routes[P],t=C.dynamicRoutes[T];if(t&&!1===t.fallback&&!e){if(w.experimental.adapterPath)return await q();throw new y.NoFallbackError}}let I=null;!M||A.isDev||E||(I=P,I="/index"===I?"/":I);let U=!0===A.isDev||!M,$=M&&!U;N&&k&&(0,l.setManifestsSingleton)({page:s,clientReferenceManifest:k,serverActionsManifest:N});let D=e.method||"GET",H=(0,o.getTracer)(),F=H.getActiveScopeSpan(),K={params:b,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:w.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,s,a)=>A.onRequestError(e,t,s,a,j)},sharedContext:{buildId:R}},L=new c.NodeNextRequest(e),B=new c.NodeNextResponse(t),z=d.NextRequestAdapter.fromNodeNextRequest(L,(0,d.signalFromNodeResponse)(t));try{let n=async e=>A.handle(z,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=H.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${D} ${s}`)}),l=!!(0,i.getRequestMeta)(e,"minimalMode"),u=async i=>{var o,u;let c=async({previousCacheEntry:a})=>{try{if(!l&&O&&S&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await n(i);e.fetchMetrics=K.renderOpts.fetchMetrics;let o=K.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let u=K.renderOpts.collectedTags;if(!M)return await (0,f.sendResponse)(L,B,s,K.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(s.headers);u&&(t[v.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,a=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:x.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==a?void 0:a.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:s,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:O})},!1,j),t}},d=await A.handleResponse({req:e,nextConfig:w,cacheKey:I,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:O,revalidateOnlyGenerated:S,responseGenerator:c,waitUntil:r.waitUntil,isMinimalMode:l});if(!M)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==x.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(u=d.value)?void 0:u.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",O?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),E&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=(0,m.fromNodeOutgoingHttpHeaders)(d.value.headers);return l&&M||p.delete(v.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,g.getCacheControlHeader)(d.cacheControl)),await (0,f.sendResponse)(L,B,new Response(d.value.body,{headers:p,status:d.value.status||200})),null};F?await u(F):await H.withPropagatedContext(e.headers,()=>H.trace(p.BaseServerSpan.handleRequest,{spanName:`${D} ${s}`,kind:o.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},u))}catch(t){if(t instanceof y.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:T,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:O})},!1,j),M)throw t;return await (0,f.sendResponse)(L,B,new Response(null,{status:500})),null}}e.s(["handler",()=>_,"patchFetch",()=>w,"routeModule",()=>A,"serverHooks",()=>j,"workAsyncStorage",()=>E,"workUnitAsyncStorage",()=>C]),r()}catch(e){r(e)}},!1),606102,e=>{e.v(e=>Promise.resolve().then(()=>e(548941)))},789543,e=>{e.v(e=>Promise.resolve().then(()=>e(385498)))},579042,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_utils_apiKey_ts_fa113e09._.js"].map(t=>e.l(t))).then(()=>t(65448)))},49794,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_constants_pricing_ts_65de0558._.js"].map(t=>e.l(t))).then(()=>t(404503)))},386305,e=>{e.v(e=>Promise.resolve().then(()=>e(878947)))}];
1
+ module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,r)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,r)=>{"use strict";var a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={},l={RequestCookies:()=>m,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>p,stringifyCookie:()=>c};for(var u in l)a(o,u,{get:l[u],enumerable:!0});function c(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),a=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?a:`${a}; ${r.join("; ")}`}function d(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[a,s]=[r.slice(0,e),r.slice(e+1)];try{t.set(a,decodeURIComponent(null!=s?s:"true"))}catch{}}return t}function p(e){if(!e)return;let[[t,r],...a]=d(e),{domain:s,expires:n,httponly:i,maxage:o,path:l,samesite:u,secure:c,partitioned:p,priority:m}=Object.fromEntries(a.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,v,y={name:t,value:decodeURIComponent(r),domain:s,...n&&{expires:new Date(n)},...i&&{httpOnly:!0},..."string"==typeof o&&{maxAge:Number(o)},path:l,...u&&{sameSite:h.includes(g=(g=u).toLowerCase())?g:void 0},...c&&{secure:!0},...m&&{priority:f.includes(v=(v=m).toLowerCase())?v:void 0},...p&&{partitioned:!0}};let e={};for(let t in y)y[t]&&(e[t]=y[t]);return e}}t.exports=((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of n(t))i.call(e,r)||void 0===r||a(e,r,{get:()=>t[r],enumerable:!(o=s(t,r))||o.enumerable});return e})(a({},"__esModule",{value:!0}),o);var h=["strict","lax","none"],f=["low","medium","high"],m=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let a="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===a).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,a=this._parsed;return a.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(a).map(([e,t])=>c(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>c(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,r,a;this._parsed=new Map,this._headers=e;const s=null!=(a=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?a:[];for(const e of Array.isArray(s)?s:function(e){if(!e)return[];var t,r,a,s,n,i=[],o=0;function l(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,n=!1;l();)if(","===(r=e.charAt(o))){for(a=o,o+=1,l(),s=o;o<e.length&&"="!==(r=e.charAt(o))&&";"!==r&&","!==r;)o+=1;o<e.length&&"="===e.charAt(o)?(n=!0,o=s,i.push(e.substring(t,a)),t=o):o=a+1}else o+=1;(!n||o>=e.length)&&i.push(e.substring(t,e.length))}return i}(s)){const t=p(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let a="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===a)}has(e){return this._parsed.has(e)}set(...e){let[t,r,a]=1===e.length?[e[0].name,e[0].value,e[0]]:e,s=this._parsed;return s.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...a})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=c(r);t.append("set-cookie",e)}}(s,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(c).join("; ")}}},677850,e=>e.a(async(t,r)=>{try{let t=await e.y("zod");e.n(t),r()}catch(e){r(e)}},!0),200392,e=>e.a(async(t,r)=>{try{var a=e.i(677850),s=t([a]);function n(e,t){let r=e.safeParse(t);if(r.success)return{success:!0,data:r.data};let a=Array.isArray(r.error?.issues)?r.error.issues:[];return{success:!1,error:{message:"Invalid request",details:a.map(e=>({field:e.path.join("."),message:e.message}))}}}function i(e){return!1===e.success}[a]=s.then?(await s)():s,a.z.object({password:a.z.string().min(1,"Password is required").max(200)}),e.s(["isValidationFailure",()=>i,"validateBody",()=>n]),r()}catch(e){r(e)}},!1),180725,e=>{"use strict";e.i(245272),e.s([])},997953,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].ReactServerDOMTurbopackServer},745015,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"registerServerReference",{enumerable:!0,get:function(){return a.registerServerReference}});let a=e.r(997953)},195975,(e,t,r)=>{"use strict";function a(e){for(let t=0;t<e.length;t++){let r=e[t];if("function"!=typeof r)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof r}.
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ensureServerEntryExports",{enumerable:!0,get:function(){return a}})},428660,e=>e.a(async(t,r)=>{try{var a=e.i(745015),s=e.i(89171);e.i(180725);var n=e.i(542949),i=e.i(676088),o=e.i(200392),l=e.i(195975),u=t([i,o]);async function c(e){try{let{searchParams:t}=new URL(e.url),r=t.get("tool"),a=await (0,n.getMitmAlias)(r||void 0);return s.NextResponse.json({aliases:a})}catch(e){return console.log("Error fetching MITM aliases:",e.message),s.NextResponse.json({error:"Failed to fetch aliases"},{status:500})}}async function d(e){let t;try{t=await e.json()}catch{return s.NextResponse.json({error:{message:"Invalid request",details:[{field:"body",message:"Invalid JSON body"}]}},{status:400})}try{let e=(0,o.validateBody)(i.cliMitmAliasUpdateSchema,t);if((0,o.isValidationFailure)(e))return s.NextResponse.json({error:e.error},{status:400});let{tool:r,mappings:a}=e.data,l={};for(let[e,t]of Object.entries(a))t&&t.trim()&&(l[e]=t.trim());return await (0,n.setMitmAliasAll)(r,l),s.NextResponse.json({success:!0,aliases:l})}catch(e){return console.log("Error saving MITM aliases:",e.message),s.NextResponse.json({error:"Failed to save aliases"},{status:500})}}[i,o]=u.then?(await u)():u,(0,l.ensureServerEntryExports)([c,d]),(0,a.registerServerReference)(c,"40e319ba06b0bc1b3b9563e8c0ea3755eeab1539a3",null),(0,a.registerServerReference)(d,"403d1e5b41a30bc9439278cf1a49257bef717d8dd1",null),e.s(["GET",()=>c,"PUT",()=>d]),r()}catch(e){r(e)}},!1),681974,e=>e.a(async(t,r)=>{try{var a=e.i(747909),s=e.i(174017),n=e.i(996250),i=e.i(759756),o=e.i(561916),l=e.i(174677),u=e.i(869741),c=e.i(316795),d=e.i(487718),p=e.i(995169),h=e.i(47587),f=e.i(666012),m=e.i(570101),g=e.i(626937),v=e.i(10372),y=e.i(193695);e.i(52474);var x=e.i(600220),R=e.i(428660),b=t([R]);[R]=b.then?(await b)():b;let A=new a.AppRouteRouteModule({definition:{kind:s.RouteKind.APP_ROUTE,page:"/api/cli-tools/antigravity-mitm/alias/route",pathname:"/api/cli-tools/antigravity-mitm/alias",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/cli-tools/antigravity-mitm/alias/route.ts",nextConfigOutput:"standalone",userland:R}),{workAsyncStorage:E,workUnitAsyncStorage:C,serverHooks:j}=A;function w(){return(0,n.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:C})}async function _(e,t,r){A.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/cli-tools/antigravity-mitm/alias/route";a=a.replace(/\/index$/,"")||"/";let n=await A.prepare(e,t,{srcPage:a,multiZoneDraftMode:!1});if(!n)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:R,params:b,nextConfig:w,parsedUrl:_,isDraftMode:E,prerenderManifest:C,routerServerContext:j,isOnDemandRevalidate:O,revalidateOnlyGenerated:S,resolvedPathname:P,clientReferenceManifest:k,serverActionsManifest:N}=n,T=(0,u.normalizeAppPath)(a),M=!!(C.dynamicRoutes[T]||C.routes[P]),q=async()=>((null==j?void 0:j.render404)?await j.render404(e,t,_,!1):t.end("This page could not be found"),null);if(M&&!E){let e=!!C.routes[P],t=C.dynamicRoutes[T];if(t&&!1===t.fallback&&!e){if(w.experimental.adapterPath)return await q();throw new y.NoFallbackError}}let I=null;!M||A.isDev||E||(I=P,I="/index"===I?"/":I);let U=!0===A.isDev||!M,$=M&&!U;N&&k&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:k,serverActionsManifest:N});let D=e.method||"GET",H=(0,o.getTracer)(),F=H.getActiveScopeSpan(),K={params:b,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:w.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,s)=>A.onRequestError(e,t,a,s,j)},sharedContext:{buildId:R}},L=new c.NodeNextRequest(e),B=new c.NodeNextResponse(t),z=d.NextRequestAdapter.fromNodeNextRequest(L,(0,d.signalFromNodeResponse)(t));try{let n=async e=>A.handle(z,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=H.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=r.get("next.route");if(s){let t=`${D} ${s}`;e.setAttributes({"next.route":s,"http.route":s,"next.span_name":t}),e.updateName(t)}else e.updateName(`${D} ${a}`)}),l=!!(0,i.getRequestMeta)(e,"minimalMode"),u=async i=>{var o,u;let c=async({previousCacheEntry:s})=>{try{if(!l&&O&&S&&!s)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await n(i);e.fetchMetrics=K.renderOpts.fetchMetrics;let o=K.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let u=K.renderOpts.collectedTags;if(!M)return await (0,f.sendResponse)(L,B,a,K.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(a.headers);u&&(t[v.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,s=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:x.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:s}}}}catch(t){throw(null==s?void 0:s.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:O})},!1,j),t}},d=await A.handleResponse({req:e,nextConfig:w,cacheKey:I,routeKind:s.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:O,revalidateOnlyGenerated:S,responseGenerator:c,waitUntil:r.waitUntil,isMinimalMode:l});if(!M)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==x.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(u=d.value)?void 0:u.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",O?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),E&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=(0,m.fromNodeOutgoingHttpHeaders)(d.value.headers);return l&&M||p.delete(v.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,g.getCacheControlHeader)(d.cacheControl)),await (0,f.sendResponse)(L,B,new Response(d.value.body,{headers:p,status:d.value.status||200})),null};F?await u(F):await H.withPropagatedContext(e.headers,()=>H.trace(p.BaseServerSpan.handleRequest,{spanName:`${D} ${a}`,kind:o.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},u))}catch(t){if(t instanceof y.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:T,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:O})},!1,j),M)throw t;return await (0,f.sendResponse)(L,B,new Response(null,{status:500})),null}}e.s(["handler",()=>_,"patchFetch",()=>w,"routeModule",()=>A,"serverHooks",()=>j,"workAsyncStorage",()=>E,"workUnitAsyncStorage",()=>C]),r()}catch(e){r(e)}},!1),606102,e=>{e.v(e=>Promise.resolve().then(()=>e(548941)))},789543,e=>{e.v(e=>Promise.resolve().then(()=>e(385498)))},579042,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_utils_apiKey_ts_fa113e09._.js"].map(t=>e.l(t))).then(()=>t(65448)))},49794,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_constants_pricing_ts_65de0558._.js"].map(t=>e.l(t))).then(()=>t(404503)))},386305,e=>{e.v(e=>Promise.resolve().then(()=>e(878947)))}];
3
3
 
4
4
  //# sourceMappingURL=%5Broot-of-the-server%5D__92cb0def._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,r)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,r)=>{"use strict";var n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i={},l={RequestCookies:()=>f,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>c,stringifyCookie:()=>p};for(var u in l)n(i,u,{get:l[u],enumerable:!0});function p(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function d(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,a]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=a?a:"true"))}catch{}}return t}function c(e){if(!e)return;let[[t,r],...n]=d(e),{domain:a,expires:s,httponly:o,maxage:i,path:l,samesite:u,secure:p,partitioned:c,priority:f}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,x,y={name:t,value:decodeURIComponent(r),domain:a,...s&&{expires:new Date(s)},...o&&{httpOnly:!0},..."string"==typeof i&&{maxAge:Number(i)},path:l,...u&&{sameSite:h.includes(g=(g=u).toLowerCase())?g:void 0},...p&&{secure:!0},...f&&{priority:m.includes(x=(x=f).toLowerCase())?x:void 0},...c&&{partitioned:!0}};let e={};for(let t in y)y[t]&&(e[t]=y[t]);return e}}t.exports=((e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of s(t))o.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(i=a(t,r))||i.enumerable});return e})(n({},"__esModule",{value:!0}),i);var h=["strict","lax","none"],m=["low","medium","high"],f=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>p(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>p(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const a=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(a)?a:function(e){if(!e)return[];var t,r,n,a,s,o=[],i=0;function l(){for(;i<e.length&&/\s/.test(e.charAt(i));)i+=1;return i<e.length}for(;i<e.length;){for(t=i,s=!1;l();)if(","===(r=e.charAt(i))){for(n=i,i+=1,l(),a=i;i<e.length&&"="!==(r=e.charAt(i))&&";"!==r&&","!==r;)i+=1;i<e.length&&"="===e.charAt(i)?(s=!0,i=a,o.push(e.substring(t,n)),t=i):i=n+1}else i+=1;(!s||i>=e.length)&&o.push(e.substring(t,e.length))}return o}(a)){const t=c(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,a=this._parsed;return a.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=p(r);t.append("set-cookie",e)}}(a,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(p).join("; ")}}},792509,(e,t,r)=>{t.exports=e.x("url",()=>require("url"))},785148,(e,t,r)=>{t.exports=e.x("better-sqlite3",()=>require("better-sqlite3"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},256770,e=>{"use strict";var t=e.i(814747),r=e.i(446786);let n="omniroute";function a(){try{return r.default.homedir()}catch{return process.cwd()}}function s(e){if("string"!=typeof e)return null;let r=e.trim();return r?t.default.resolve(r):null}function o(){return t.default.join(a(),`.${n}`)}function i({isCloud:e=!1}={}){let r;if(e)return"/tmp";let l=s(process.env.DATA_DIR);return l?l:(a(),(r=s(process.env.XDG_CONFIG_HOME))?t.default.join(r,n):o())}function l(e,r){return!!e&&!!r&&t.default.resolve(e)===t.default.resolve(r)}e.s(["getLegacyDotDataDir",()=>o,"isSamePath",()=>l,"resolveDataDir",()=>i])},728246,e=>{"use strict";var t=e.i(747909),r=e.i(174017),n=e.i(996250),a=e.i(759756),s=e.i(561916),o=e.i(174677),i=e.i(869741),l=e.i(316795),u=e.i(487718),p=e.i(995169),d=e.i(47587),c=e.i(666012),h=e.i(570101),m=e.i(626937),f=e.i(10372),g=e.i(193695);e.i(52474);var x=e.i(600220),y=e.i(157763);async function v(e){try{let{searchParams:t}=new URL(e.url),r=Math.min(Math.max(parseInt(t.get("hours")||"24")||24,1),168),n=t.get("type")||"call-logs",a=new Date(Date.now()-3600*r*1e3).toISOString(),s=(0,y.getDbInstance)(),o=[],i="";"call-logs"===n?(i="call_logs",o=s.prepare("SELECT * FROM call_logs WHERE timestamp >= @since ORDER BY timestamp DESC").all({since:a})):"request-logs"===n?(i="request_logs",o=s.prepare("SELECT * FROM request_logs WHERE timestamp >= @since ORDER BY timestamp DESC").all({since:a})):"proxy-logs"===n&&(i="proxy_logs",o=s.prepare("SELECT * FROM proxy_logs WHERE timestamp >= @since ORDER BY timestamp DESC").all({since:a}));let l=`omniroute-${i}-${r}h-${new Date().toISOString().slice(0,10)}.json`;return new Response(JSON.stringify({logs:o,count:o.length,hours:r,type:n},null,2),{status:200,headers:{"Content-Type":"application/json","Content-Disposition":`attachment; filename="${l}"`}})}catch(e){return Response.json({error:{message:e.message,type:"server_error"}},{status:500})}}e.s(["GET",()=>v],642849);var R=e.i(642849);let E=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/logs/export/route",pathname:"/api/logs/export",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/logs/export/route.ts",nextConfigOutput:"standalone",userland:R}),{workAsyncStorage:w,workUnitAsyncStorage:C,serverHooks:_}=E;function b(){return(0,n.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:C})}async function A(e,t,n){E.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let y="/api/logs/export/route";y=y.replace(/\/index$/,"")||"/";let v=await E.prepare(e,t,{srcPage:y,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:R,params:w,nextConfig:C,parsedUrl:_,isDraftMode:b,prerenderManifest:A,routerServerContext:O,isOnDemandRevalidate:S,revalidateOnlyGenerated:D,resolvedPathname:k,clientReferenceManifest:j,serverActionsManifest:q}=v,P=(0,i.normalizeAppPath)(y),T=!!(A.dynamicRoutes[P]||A.routes[k]),N=async()=>((null==O?void 0:O.render404)?await O.render404(e,t,_,!1):t.end("This page could not be found"),null);if(T&&!b){let e=!!A.routes[k],t=A.dynamicRoutes[P];if(t&&!1===t.fallback&&!e){if(C.experimental.adapterPath)return await N();throw new g.NoFallbackError}}let $=null;!T||E.isDev||b||($="/index"===($=k)?"/":$);let I=!0===E.isDev||!T,M=T&&!I;q&&j&&(0,o.setManifestsSingleton)({page:y,clientReferenceManifest:j,serverActionsManifest:q});let H=e.method||"GET",U=(0,s.getTracer)(),L=U.getActiveScopeSpan(),F={params:w,prerenderManifest:A,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:C.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>E.onRequestError(e,t,n,a,O)},sharedContext:{buildId:R}},B=new l.NodeNextRequest(e),K=new l.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(B,(0,u.signalFromNodeResponse)(t));try{let o=async e=>E.handle(G,F).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=U.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${H} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${y}`)}),i=!!(0,a.getRequestMeta)(e,"minimalMode"),l=async a=>{var s,l;let u=async({previousCacheEntry:r})=>{try{if(!i&&S&&D&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(a);e.fetchMetrics=F.renderOpts.fetchMetrics;let l=F.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let u=F.renderOpts.collectedTags;if(!T)return await (0,c.sendResponse)(B,K,s,F.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);u&&(t[f.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==F.renderOpts.collectedRevalidate&&!(F.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&F.renderOpts.collectedRevalidate,n=void 0===F.renderOpts.collectedExpire||F.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:F.renderOpts.collectedExpire;return{value:{kind:x.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await E.onRequestError(e,t,{routerKind:"App Router",routePath:y,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:S})},!1,O),t}},p=await E.handleResponse({req:e,nextConfig:C,cacheKey:$,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:D,responseGenerator:u,waitUntil:n.waitUntil,isMinimalMode:i});if(!T)return null;if((null==p||null==(s=p.value)?void 0:s.kind)!==x.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(l=p.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});i||t.setHeader("x-nextjs-cache",S?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let g=(0,h.fromNodeOutgoingHttpHeaders)(p.value.headers);return i&&T||g.delete(f.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||g.get("Cache-Control")||g.set("Cache-Control",(0,m.getCacheControlHeader)(p.cacheControl)),await (0,c.sendResponse)(B,K,new Response(p.value.body,{headers:g,status:p.value.status||200})),null};L?await l(L):await U.withPropagatedContext(e.headers,()=>U.trace(p.BaseServerSpan.handleRequest,{spanName:`${H} ${y}`,kind:s.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof g.NoFallbackError||await E.onRequestError(e,t,{routerKind:"App Router",routePath:P,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:S})},!1,O),T)throw t;return await (0,c.sendResponse)(B,K,new Response(null,{status:500})),null}}e.s(["handler",()=>A,"patchFetch",()=>b,"routeModule",()=>E,"serverHooks",()=>_,"workAsyncStorage",()=>w,"workUnitAsyncStorage",()=>C],728246)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__a4403ad8._.js.map
@@ -1,4 +1,4 @@
1
- module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,r)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,r)=>{"use strict";var n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i={},l={RequestCookies:()=>h,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>m,stringifyCookie:()=>c};for(var u in l)n(i,u,{get:l[u],enumerable:!0});function c(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function d(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,s]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=s?s:"true"))}catch{}}return t}function m(e){if(!e)return;let[[t,r],...n]=d(e),{domain:s,expires:a,httponly:o,maxage:i,path:l,samesite:u,secure:c,partitioned:m,priority:h}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,y,_={name:t,value:decodeURIComponent(r),domain:s,...a&&{expires:new Date(a)},...o&&{httpOnly:!0},..."string"==typeof i&&{maxAge:Number(i)},path:l,...u&&{sameSite:p.includes(g=(g=u).toLowerCase())?g:void 0},...c&&{secure:!0},...h&&{priority:f.includes(y=(y=h).toLowerCase())?y:void 0},...m&&{partitioned:!0}};let e={};for(let t in _)_[t]&&(e[t]=_[t]);return e}}t.exports=((e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))o.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(i=s(t,r))||i.enumerable});return e})(n({},"__esModule",{value:!0}),i);var p=["strict","lax","none"],f=["low","medium","high"],h=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>c(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>c(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const s=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(s)?s:function(e){if(!e)return[];var t,r,n,s,a,o=[],i=0;function l(){for(;i<e.length&&/\s/.test(e.charAt(i));)i+=1;return i<e.length}for(;i<e.length;){for(t=i,a=!1;l();)if(","===(r=e.charAt(i))){for(n=i,i+=1,l(),s=i;i<e.length&&"="!==(r=e.charAt(i))&&";"!==r&&","!==r;)i+=1;i<e.length&&"="===e.charAt(i)?(a=!0,i=s,o.push(e.substring(t,n)),t=i):i=n+1}else i+=1;(!a||i>=e.length)&&o.push(e.substring(t,e.length))}return o}(s)){const t=m(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,s=this._parsed;return s.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=c(r);t.append("set-cookie",e)}}(s,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(c).join("; ")}}},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},256770,e=>{"use strict";var t=e.i(814747),r=e.i(446786);let n="omniroute";function s(){try{return r.default.homedir()}catch{return process.cwd()}}function a(e){if("string"!=typeof e)return null;let r=e.trim();return r?t.default.resolve(r):null}function o(){return t.default.join(s(),`.${n}`)}function i({isCloud:e=!1}={}){let r;if(e)return"/tmp";let l=a(process.env.DATA_DIR);return l?l:(s(),(r=a(process.env.XDG_CONFIG_HOME))?t.default.join(r,n):o())}function l(e,r){return!!e&&!!r&&t.default.resolve(e)===t.default.resolve(r)}e.s(["getLegacyDotDataDir",()=>o,"isSamePath",()=>l,"resolveDataDir",()=>i])},677850,e=>e.a(async(t,r)=>{try{let t=await e.y("zod");e.n(t),r()}catch(e){r(e)}},!0),200392,e=>e.a(async(t,r)=>{try{var n=e.i(677850),s=t([n]);function a(e,t){let r=e.safeParse(t);if(r.success)return{success:!0,data:r.data};let n=Array.isArray(r.error?.issues)?r.error.issues:[];return{success:!1,error:{message:"Invalid request",details:n.map(e=>({field:e.path.join("."),message:e.message}))}}}function o(e){return!1===e.success}[n]=s.then?(await s)():s,n.z.object({password:n.z.string().min(1,"Password is required").max(200)}),e.s(["isValidationFailure",()=>o,"validateBody",()=>a]),r()}catch(e){r(e)}},!1),233405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},924868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},266240,e=>{"use strict";var t=e.i(924868),r=e.i(446786),n=e.i(814747),s=e.i(233405);let a=new Set(["auto","host","container"]),o=new Set(["0","false","no","off"]),i={claude:{defaultCommand:"claude",envBinKey:"CLI_CLAUDE_BIN",requiresBinary:!0,healthcheckTimeoutMs:4e3,paths:{settings:".claude/settings.json"}},codex:{defaultCommand:"codex",envBinKey:"CLI_CODEX_BIN",requiresBinary:!0,healthcheckTimeoutMs:4e3,paths:{config:".codex/config.toml",auth:".codex/auth.json"}},droid:{defaultCommand:"droid",envBinKey:"CLI_DROID_BIN",requiresBinary:!0,healthcheckTimeoutMs:8e3,paths:{settings:".factory/settings.json"}},openclaw:{defaultCommand:"openclaw",envBinKey:"CLI_OPENCLAW_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{settings:".openclaw/openclaw.json"}},cursor:{defaultCommands:["agent","cursor"],envBinKey:"CLI_CURSOR_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{config:".cursor/cli-config.json",auth:".config/cursor/auth.json",state:".cursor/agent-cli-state.json"}},cline:{defaultCommand:"cline",envBinKey:"CLI_CLINE_BIN",requiresBinary:!0,healthcheckTimeoutMs:12e3,paths:{globalState:".cline/data/globalState.json",secrets:".cline/data/secrets.json"}},kilo:{defaultCommand:"kilocode",envBinKey:"CLI_KILO_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{auth:".local/share/kilo/auth.json"}},continue:{defaultCommand:null,envBinKey:"CLI_CONTINUE_BIN",requiresBinary:!1,healthcheckTimeoutMs:15e3,paths:{settings:".continue/config.json"}},opencode:{defaultCommand:"opencode",envBinKey:"CLI_OPENCODE_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{config:".config/opencode/config.toml"}}},l=(e,t,{env:r,timeoutMs:n=3e3}={})=>new Promise(a=>{let o="",i="",l=!1,u=!1,c=(0,s.spawn)(e,t,{env:r,stdio:["ignore","pipe","pipe"],..."win32"===process.platform?"TURBOPACK unreachable":{}}),d=setTimeout(()=>{l=!0,c.kill("SIGKILL")},n),m=e=>{u||(u=!0,clearTimeout(d),a(e))};c.stdout.on("data",e=>{o+=e.toString()}),c.stderr.on("data",e=>{i+=e.toString()}),c.on("error",e=>{m({ok:!1,code:null,stdout:o.trim(),stderr:i.trim(),timedOut:l,error:e?.message||"spawn_error"})}),c.on("close",e=>{m({ok:!l&&0===e,code:e,stdout:o.trim(),stderr:i.trim(),timedOut:l,error:l?"timeout":null})})}),u=["&","|",";","<",">","(",")","`","$","^","%","!"],c=async e=>{if(!(!(!e||!n.default.isAbsolute(e)||u.some(t=>e.includes(t)))&&1))return{installed:!1,commandPath:null,reason:"unsafe_path"};try{await t.default.access(e,t.default.constants.F_OK)}catch{return{installed:!1,commandPath:null,reason:"not_found"}}try{return await t.default.access(e,t.default.constants.X_OK),{installed:!0,commandPath:e,reason:null}}catch{return{installed:!0,commandPath:e,reason:"not_executable"}}},d=async(e,t)=>{if(!e)return{installed:!1,commandPath:null,reason:"missing_command"};if(e.includes("/")||e.includes("\\"))return c(e);process.platform;let r=await l("sh",["-c",'command -v -- "$1"',"sh",e],{env:t,timeoutMs:3e3});if(!r.ok||!r.stdout)return{installed:!1,commandPath:null,reason:"not_found"};let n=r.stdout.split(/\r?\n/).map(e=>e.trim()).find(Boolean)||null;return{installed:!!n,commandPath:n,reason:n?null:"not_found"}},m=async(e,t)=>{if(!Array.isArray(e)||0===e.length)return{command:null,installed:!1,commandPath:null,reason:"missing_command"};for(let r of e){let e=await d(r,t);if(e.installed||"not_found"!==e.reason)return{command:r,...e}}return{command:e[0],installed:!1,commandPath:null,reason:"not_found"}},p=async(e,t,r=4e3)=>{for(let n of[["--version"],["-v"]])if((await l(e,n,{env:t,timeoutMs:r})).ok)return{runnable:!0,reason:null};return{runnable:!1,reason:"healthcheck_failed"}},f=e=>{let t=i[e];if(!t)return null;let s=String(process.env.CLI_CONFIG_HOME||"").trim()||r.default.homedir();return Object.fromEntries(Object.entries(t.paths).map(([e,t])=>[e,n.default.join(s,t)]))},h=async e=>{let t,r,s,o=i[e],l=(t=String(process.env.CLI_MODE||"auto").trim().toLowerCase(),a.has(t)?t:"auto");if(!o)return{installed:!1,runnable:!1,command:null,commandPath:null,reason:"unknown_tool",runtimeMode:l,requiresBinary:!1};let u=(r={...process.env},(s=String(process.env.CLI_EXTRA_PATHS||"").split(n.default.delimiter).map(e=>e.trim()).filter(Boolean)).length>0&&(r.PATH=[...s,r.PATH||""].filter(Boolean).join(n.default.delimiter)),r),c=(e=>{let t=i[e];if(!t)return[];let r=String(process.env[t.envBinKey]||"").trim();return r?[r]:Array.isArray(t.defaultCommands)&&t.defaultCommands.length>0?t.defaultCommands.filter(Boolean):t.defaultCommand?[t.defaultCommand]:[]})(e),d=!1!==o.requiresBinary;if(!d&&0===c.length)return{installed:!0,runnable:!0,command:null,commandPath:null,reason:"not_required",runtimeMode:l,requiresBinary:d};let f=await m(c,u),h=f.command;if(!f.installed)return{installed:!1,runnable:!1,command:h,commandPath:null,reason:f.reason||"not_found",runtimeMode:l,requiresBinary:d};if("not_executable"===f.reason)return{installed:!0,runnable:!1,command:h,commandPath:f.commandPath,reason:"not_executable",runtimeMode:l,requiresBinary:d};let g=await p(f.commandPath,u,Number(o.healthcheckTimeoutMs||4e3));return{installed:!0,runnable:g.runnable,command:h,commandPath:f.commandPath,reason:g.reason,runtimeMode:l,requiresBinary:d}},g=Object.keys(i);e.s(["CLI_TOOL_IDS",0,g,"ensureCliConfigWriteAllowed",0,()=>((e,t=!0)=>null==e||""===e?t:!o.has(String(e).trim().toLowerCase()))(process.env.CLI_ALLOW_CONFIG_WRITES,!0)?null:"CLI config writes are disabled (CLI_ALLOW_CONFIG_WRITES=false)","getCliConfigPaths",0,f,"getCliPrimaryConfigPath",0,e=>{let t=f(e);if(!t)return null;let r=Object.keys(t)[0];return r?t[r]:null},"getCliRuntimeStatus",0,h])},997953,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].ReactServerDOMTurbopackServer},745015,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"registerServerReference",{enumerable:!0,get:function(){return n.registerServerReference}});let n=e.r(997953)},195975,(e,t,r)=>{"use strict";function n(e){for(let t=0;t<e.length;t++){let r=e[t];if("function"!=typeof r)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof r}.
1
+ module.exports=[814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},256770,e=>{"use strict";var t=e.i(814747),r=e.i(446786);let n="omniroute";function s(){try{return r.default.homedir()}catch{return process.cwd()}}function a(e){if("string"!=typeof e)return null;let r=e.trim();return r?t.default.resolve(r):null}function o(){return t.default.join(s(),`.${n}`)}function i({isCloud:e=!1}={}){let r;if(e)return"/tmp";let l=a(process.env.DATA_DIR);return l?l:(s(),(r=a(process.env.XDG_CONFIG_HOME))?t.default.join(r,n):o())}function l(e,r){return!!e&&!!r&&t.default.resolve(e)===t.default.resolve(r)}e.s(["getLegacyDotDataDir",()=>o,"isSamePath",()=>l,"resolveDataDir",()=>i])},918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,r)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,r)=>{"use strict";var n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i={},l={RequestCookies:()=>h,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>m,stringifyCookie:()=>c};for(var u in l)n(i,u,{get:l[u],enumerable:!0});function c(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function d(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,s]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=s?s:"true"))}catch{}}return t}function m(e){if(!e)return;let[[t,r],...n]=d(e),{domain:s,expires:a,httponly:o,maxage:i,path:l,samesite:u,secure:c,partitioned:m,priority:h}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,y,_={name:t,value:decodeURIComponent(r),domain:s,...a&&{expires:new Date(a)},...o&&{httpOnly:!0},..."string"==typeof i&&{maxAge:Number(i)},path:l,...u&&{sameSite:p.includes(g=(g=u).toLowerCase())?g:void 0},...c&&{secure:!0},...h&&{priority:f.includes(y=(y=h).toLowerCase())?y:void 0},...m&&{partitioned:!0}};let e={};for(let t in _)_[t]&&(e[t]=_[t]);return e}}t.exports=((e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))o.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(i=s(t,r))||i.enumerable});return e})(n({},"__esModule",{value:!0}),i);var p=["strict","lax","none"],f=["low","medium","high"],h=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>c(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>c(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const s=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(s)?s:function(e){if(!e)return[];var t,r,n,s,a,o=[],i=0;function l(){for(;i<e.length&&/\s/.test(e.charAt(i));)i+=1;return i<e.length}for(;i<e.length;){for(t=i,a=!1;l();)if(","===(r=e.charAt(i))){for(n=i,i+=1,l(),s=i;i<e.length&&"="!==(r=e.charAt(i))&&";"!==r&&","!==r;)i+=1;i<e.length&&"="===e.charAt(i)?(a=!0,i=s,o.push(e.substring(t,n)),t=i):i=n+1}else i+=1;(!a||i>=e.length)&&o.push(e.substring(t,e.length))}return o}(s)){const t=m(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,s=this._parsed;return s.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=c(r);t.append("set-cookie",e)}}(s,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(c).join("; ")}}},677850,e=>e.a(async(t,r)=>{try{let t=await e.y("zod");e.n(t),r()}catch(e){r(e)}},!0),200392,e=>e.a(async(t,r)=>{try{var n=e.i(677850),s=t([n]);function a(e,t){let r=e.safeParse(t);if(r.success)return{success:!0,data:r.data};let n=Array.isArray(r.error?.issues)?r.error.issues:[];return{success:!1,error:{message:"Invalid request",details:n.map(e=>({field:e.path.join("."),message:e.message}))}}}function o(e){return!1===e.success}[n]=s.then?(await s)():s,n.z.object({password:n.z.string().min(1,"Password is required").max(200)}),e.s(["isValidationFailure",()=>o,"validateBody",()=>a]),r()}catch(e){r(e)}},!1),233405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},924868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},266240,e=>{"use strict";var t=e.i(924868),r=e.i(446786),n=e.i(814747),s=e.i(233405);let a=new Set(["auto","host","container"]),o=new Set(["0","false","no","off"]),i={claude:{defaultCommand:"claude",envBinKey:"CLI_CLAUDE_BIN",requiresBinary:!0,healthcheckTimeoutMs:4e3,paths:{settings:".claude/settings.json"}},codex:{defaultCommand:"codex",envBinKey:"CLI_CODEX_BIN",requiresBinary:!0,healthcheckTimeoutMs:4e3,paths:{config:".codex/config.toml",auth:".codex/auth.json"}},droid:{defaultCommand:"droid",envBinKey:"CLI_DROID_BIN",requiresBinary:!0,healthcheckTimeoutMs:8e3,paths:{settings:".factory/settings.json"}},openclaw:{defaultCommand:"openclaw",envBinKey:"CLI_OPENCLAW_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{settings:".openclaw/openclaw.json"}},cursor:{defaultCommands:["agent","cursor"],envBinKey:"CLI_CURSOR_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{config:".cursor/cli-config.json",auth:".config/cursor/auth.json",state:".cursor/agent-cli-state.json"}},cline:{defaultCommand:"cline",envBinKey:"CLI_CLINE_BIN",requiresBinary:!0,healthcheckTimeoutMs:12e3,paths:{globalState:".cline/data/globalState.json",secrets:".cline/data/secrets.json"}},kilo:{defaultCommand:"kilocode",envBinKey:"CLI_KILO_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{auth:".local/share/kilo/auth.json"}},continue:{defaultCommand:null,envBinKey:"CLI_CONTINUE_BIN",requiresBinary:!1,healthcheckTimeoutMs:15e3,paths:{settings:".continue/config.json"}},opencode:{defaultCommand:"opencode",envBinKey:"CLI_OPENCODE_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{config:".config/opencode/config.toml"}}},l=(e,t,{env:r,timeoutMs:n=3e3}={})=>new Promise(a=>{let o="",i="",l=!1,u=!1,c=(0,s.spawn)(e,t,{env:r,stdio:["ignore","pipe","pipe"],..."win32"===process.platform?"TURBOPACK unreachable":{}}),d=setTimeout(()=>{l=!0,c.kill("SIGKILL")},n),m=e=>{u||(u=!0,clearTimeout(d),a(e))};c.stdout.on("data",e=>{o+=e.toString()}),c.stderr.on("data",e=>{i+=e.toString()}),c.on("error",e=>{m({ok:!1,code:null,stdout:o.trim(),stderr:i.trim(),timedOut:l,error:e?.message||"spawn_error"})}),c.on("close",e=>{m({ok:!l&&0===e,code:e,stdout:o.trim(),stderr:i.trim(),timedOut:l,error:l?"timeout":null})})}),u=["&","|",";","<",">","(",")","`","$","^","%","!"],c=async e=>{if(!(!(!e||!n.default.isAbsolute(e)||u.some(t=>e.includes(t)))&&1))return{installed:!1,commandPath:null,reason:"unsafe_path"};try{await t.default.access(e,t.default.constants.F_OK)}catch{return{installed:!1,commandPath:null,reason:"not_found"}}try{return await t.default.access(e,t.default.constants.X_OK),{installed:!0,commandPath:e,reason:null}}catch{return{installed:!0,commandPath:e,reason:"not_executable"}}},d=async(e,t)=>{if(!e)return{installed:!1,commandPath:null,reason:"missing_command"};if(e.includes("/")||e.includes("\\"))return c(e);process.platform;let r=await l("sh",["-c",'command -v -- "$1"',"sh",e],{env:t,timeoutMs:3e3});if(!r.ok||!r.stdout)return{installed:!1,commandPath:null,reason:"not_found"};let n=r.stdout.split(/\r?\n/).map(e=>e.trim()).find(Boolean)||null;return{installed:!!n,commandPath:n,reason:n?null:"not_found"}},m=async(e,t)=>{if(!Array.isArray(e)||0===e.length)return{command:null,installed:!1,commandPath:null,reason:"missing_command"};for(let r of e){let e=await d(r,t);if(e.installed||"not_found"!==e.reason)return{command:r,...e}}return{command:e[0],installed:!1,commandPath:null,reason:"not_found"}},p=async(e,t,r=4e3)=>{for(let n of[["--version"],["-v"]])if((await l(e,n,{env:t,timeoutMs:r})).ok)return{runnable:!0,reason:null};return{runnable:!1,reason:"healthcheck_failed"}},f=e=>{let t=i[e];if(!t)return null;let s=String(process.env.CLI_CONFIG_HOME||"").trim()||r.default.homedir();return Object.fromEntries(Object.entries(t.paths).map(([e,t])=>[e,n.default.join(s,t)]))},h=async e=>{let t,r,s,o=i[e],l=(t=String(process.env.CLI_MODE||"auto").trim().toLowerCase(),a.has(t)?t:"auto");if(!o)return{installed:!1,runnable:!1,command:null,commandPath:null,reason:"unknown_tool",runtimeMode:l,requiresBinary:!1};let u=(r={...process.env},(s=String(process.env.CLI_EXTRA_PATHS||"").split(n.default.delimiter).map(e=>e.trim()).filter(Boolean)).length>0&&(r.PATH=[...s,r.PATH||""].filter(Boolean).join(n.default.delimiter)),r),c=(e=>{let t=i[e];if(!t)return[];let r=String(process.env[t.envBinKey]||"").trim();return r?[r]:Array.isArray(t.defaultCommands)&&t.defaultCommands.length>0?t.defaultCommands.filter(Boolean):t.defaultCommand?[t.defaultCommand]:[]})(e),d=!1!==o.requiresBinary;if(!d&&0===c.length)return{installed:!0,runnable:!0,command:null,commandPath:null,reason:"not_required",runtimeMode:l,requiresBinary:d};let f=await m(c,u),h=f.command;if(!f.installed)return{installed:!1,runnable:!1,command:h,commandPath:null,reason:f.reason||"not_found",runtimeMode:l,requiresBinary:d};if("not_executable"===f.reason)return{installed:!0,runnable:!1,command:h,commandPath:f.commandPath,reason:"not_executable",runtimeMode:l,requiresBinary:d};let g=await p(f.commandPath,u,Number(o.healthcheckTimeoutMs||4e3));return{installed:!0,runnable:g.runnable,command:h,commandPath:f.commandPath,reason:g.reason,runtimeMode:l,requiresBinary:d}},g=Object.keys(i);e.s(["CLI_TOOL_IDS",0,g,"ensureCliConfigWriteAllowed",0,()=>((e,t=!0)=>null==e||""===e?t:!o.has(String(e).trim().toLowerCase()))(process.env.CLI_ALLOW_CONFIG_WRITES,!0)?null:"CLI config writes are disabled (CLI_ALLOW_CONFIG_WRITES=false)","getCliConfigPaths",0,f,"getCliPrimaryConfigPath",0,e=>{let t=f(e);if(!t)return null;let r=Object.keys(t)[0];return r?t[r]:null},"getCliRuntimeStatus",0,h])},997953,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].ReactServerDOMTurbopackServer},745015,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"registerServerReference",{enumerable:!0,get:function(){return n.registerServerReference}});let n=e.r(997953)},195975,(e,t,r)=>{"use strict";function n(e){for(let t=0;t<e.length;t++){let r=e[t];if("function"!=typeof r)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof r}.
2
2
  Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ensureServerEntryExports",{enumerable:!0,get:function(){return n}})},452484,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_services_backupService_ts_4a2f1415._.js"].map(t=>e.l(t))).then(()=>t(841788)))}];
3
3
 
4
- //# sourceMappingURL=%5Broot-of-the-server%5D__87186578._.js.map
4
+ //# sourceMappingURL=%5Broot-of-the-server%5D__d142dcb5._.js.map