@sifxprime/krouter 0.5.166 → 0.5.168

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 (865) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +15 -15
  3. package/app/.next-cli-build/build-manifest.json +5 -5
  4. package/app/.next-cli-build/prerender-manifest.json +29 -29
  5. package/app/.next-cli-build/react-loadable-manifest.json +2 -2
  6. package/app/.next-cli-build/required-server-files.json +16 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/presidio/page.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/presidio/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/_global-error/page.js +1 -1
  58. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  60. package/app/.next-cli-build/server/app/_global-error.rsc +15 -11
  61. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +15 -11
  62. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +20 -16
  63. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +3 -1
  64. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  65. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  67. package/app/.next-cli-build/server/app/_not-found.rsc +26 -16
  68. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +26 -16
  69. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +32 -22
  70. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +3 -1
  71. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  72. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  73. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  74. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  75. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  76. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  77. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  78. package/app/.next-cli-build/server/app/api/cache/route.js +1 -1
  79. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +6 -6
  80. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  81. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  82. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  83. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +3 -3
  84. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  85. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  86. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  87. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  88. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  89. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  90. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  91. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +4 -4
  92. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -3
  93. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  94. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  95. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  96. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  97. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  99. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  103. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  105. package/app/.next-cli-build/server/app/api/import/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/mitm/cert/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/models/live/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/models/live-by-connection/route.js +1 -1
  124. package/app/.next-cli-build/server/app/api/models/preview/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  141. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  143. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +2 -2
  144. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  147. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/providers/health/route.js +1 -1
  149. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  153. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/providers/zenith/log/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/providers/zenith/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  157. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
  159. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  160. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  162. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  163. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  164. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  165. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  166. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  167. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  168. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  169. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/settings/environment/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/settings/presidio/route.js +3 -3
  172. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  179. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  185. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  190. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +2 -2
  201. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/v1/search/route.js +2 -2
  214. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  224. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  225. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  226. package/app/.next-cli-build/server/app/callback.html +1 -1
  227. package/app/.next-cli-build/server/app/callback.rsc +29 -18
  228. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +29 -18
  229. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +3 -1
  230. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +37 -26
  231. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  232. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +31 -18
  233. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +38 -26
  234. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +31 -18
  235. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +5 -1
  236. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  237. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +34 -19
  238. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +40 -27
  239. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +34 -19
  240. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +5 -1
  241. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  242. package/app/.next-cli-build/server/app/dashboard/combos.rsc +35 -21
  243. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +42 -30
  244. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +35 -21
  245. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +5 -1
  246. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  247. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +33 -19
  248. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +39 -27
  249. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +33 -19
  250. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +5 -1
  251. package/app/.next-cli-build/server/app/dashboard/environment.html +1 -1
  252. package/app/.next-cli-build/server/app/dashboard/environment.rsc +34 -21
  253. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard/environment/__PAGE__.segment.rsc +41 -30
  254. package/app/.next-cli-build/server/app/dashboard/environment.segments/_full.segment.rsc +34 -21
  255. package/app/.next-cli-build/server/app/dashboard/environment.segments/_tree.segment.rsc +5 -1
  256. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  257. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +36 -23
  258. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +44 -32
  259. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +36 -23
  260. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +6 -1
  261. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  262. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +33 -18
  263. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +40 -26
  264. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +33 -18
  265. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +5 -1
  266. package/app/.next-cli-build/server/app/dashboard/presidio.html +1 -1
  267. package/app/.next-cli-build/server/app/dashboard/presidio.rsc +34 -21
  268. package/app/.next-cli-build/server/app/dashboard/presidio.segments/!KGRhc2hib2FyZCk/dashboard/presidio/__PAGE__.segment.rsc +41 -30
  269. package/app/.next-cli-build/server/app/dashboard/presidio.segments/_full.segment.rsc +34 -21
  270. package/app/.next-cli-build/server/app/dashboard/presidio.segments/_tree.segment.rsc +5 -1
  271. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  272. package/app/.next-cli-build/server/app/dashboard/profile.rsc +34 -21
  273. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +41 -30
  274. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +34 -21
  275. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +5 -1
  276. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  277. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +35 -23
  278. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +44 -32
  279. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +35 -23
  280. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +6 -1
  281. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  282. package/app/.next-cli-build/server/app/dashboard/providers.rsc +34 -21
  283. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +41 -30
  284. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +34 -21
  285. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +5 -1
  286. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  287. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +34 -21
  288. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +41 -30
  289. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +34 -21
  290. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +5 -1
  291. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  292. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +31 -18
  293. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +38 -26
  294. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +31 -18
  295. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +5 -1
  296. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  297. package/app/.next-cli-build/server/app/dashboard/quota.rsc +32 -19
  298. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +39 -28
  299. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +32 -19
  300. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +5 -1
  301. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  302. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  303. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  304. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +31 -18
  305. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +31 -18
  306. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +5 -1
  307. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +40 -27
  308. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  309. package/app/.next-cli-build/server/app/dashboard/skills.rsc +34 -21
  310. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +41 -30
  311. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +34 -21
  312. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +5 -1
  313. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  314. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +31 -18
  315. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +38 -26
  316. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +31 -18
  317. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +5 -1
  318. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  319. package/app/.next-cli-build/server/app/dashboard/translator.rsc +34 -21
  320. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +41 -30
  321. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +34 -21
  322. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +5 -1
  323. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  324. package/app/.next-cli-build/server/app/dashboard/usage.rsc +34 -21
  325. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +41 -30
  326. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +34 -21
  327. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +5 -1
  328. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  329. package/app/.next-cli-build/server/app/dashboard.rsc +32 -19
  330. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +38 -25
  331. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +32 -19
  332. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +4 -1
  333. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  334. package/app/.next-cli-build/server/app/index.html +1 -1
  335. package/app/.next-cli-build/server/app/index.rsc +24 -15
  336. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +29 -20
  337. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +24 -15
  338. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -1
  339. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  340. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  341. package/app/.next-cli-build/server/app/landing.html +1 -1
  342. package/app/.next-cli-build/server/app/landing.rsc +30 -18
  343. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +30 -18
  344. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +3 -1
  345. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +38 -26
  346. package/app/.next-cli-build/server/app/login/page.js +1 -1
  347. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  348. package/app/.next-cli-build/server/app/login.html +1 -1
  349. package/app/.next-cli-build/server/app/login.rsc +29 -18
  350. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +29 -18
  351. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +3 -1
  352. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +37 -26
  353. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  354. package/app/.next-cli-build/server/app/page.js +1 -1
  355. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  356. package/app/.next-cli-build/server/app-paths-manifest.json +15 -15
  357. package/app/.next-cli-build/server/chunks/1220.js +3 -3
  358. package/app/.next-cli-build/server/chunks/1344.js +2 -2
  359. package/app/.next-cli-build/server/chunks/1350.js +1 -1
  360. package/app/.next-cli-build/server/chunks/1450.js +1 -1
  361. package/app/.next-cli-build/server/chunks/1738.js +1 -1
  362. package/app/.next-cli-build/server/chunks/1813.js +23 -1
  363. package/app/.next-cli-build/server/chunks/2430.js +215 -31
  364. package/app/.next-cli-build/server/chunks/2722.js +6 -6
  365. package/app/.next-cli-build/server/chunks/2750.js +1 -1
  366. package/app/.next-cli-build/server/chunks/2970.js +163 -23
  367. package/app/.next-cli-build/server/chunks/3120.js +2 -2
  368. package/app/.next-cli-build/server/chunks/369.js +5 -5
  369. package/app/.next-cli-build/server/chunks/412.js +1 -1
  370. package/app/.next-cli-build/server/chunks/4161.js +1 -1
  371. package/app/.next-cli-build/server/chunks/4177.js +1 -1
  372. package/app/.next-cli-build/server/chunks/4306.js +1 -1
  373. package/app/.next-cli-build/server/chunks/4315.js +1 -1
  374. package/app/.next-cli-build/server/chunks/4380.js +1 -1
  375. package/app/.next-cli-build/server/chunks/4730.js +2 -2
  376. package/app/.next-cli-build/server/chunks/4884.js +4 -4
  377. package/app/.next-cli-build/server/chunks/523.js +1 -1
  378. package/app/.next-cli-build/server/chunks/5330.js +4 -4
  379. package/app/.next-cli-build/server/chunks/5433.js +1 -1
  380. package/app/.next-cli-build/server/chunks/5470.js +3 -3
  381. package/app/.next-cli-build/server/chunks/5573.js +1 -1
  382. package/app/.next-cli-build/server/chunks/5718.js +1 -1
  383. package/app/.next-cli-build/server/chunks/595.js +1 -1
  384. package/app/.next-cli-build/server/chunks/6182.js +2 -2
  385. package/app/.next-cli-build/server/chunks/7153.js +1 -1
  386. package/app/.next-cli-build/server/chunks/7774.js +13 -13
  387. package/app/.next-cli-build/server/chunks/7833.js +1 -1
  388. package/app/.next-cli-build/server/chunks/8238.js +1 -1
  389. package/app/.next-cli-build/server/chunks/8895.js +1 -1
  390. package/app/.next-cli-build/server/chunks/8962.js +1 -1
  391. package/app/.next-cli-build/server/chunks/9055.js +2 -2
  392. package/app/.next-cli-build/server/chunks/9958.js +1 -1
  393. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  394. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  395. package/app/.next-cli-build/server/middleware.js +186 -24
  396. package/app/.next-cli-build/server/pages/404.html +1 -1
  397. package/app/.next-cli-build/server/pages/500.html +1 -1
  398. package/app/.next-cli-build/server/preview-props.json +5 -0
  399. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  400. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  401. package/app/.next-cli-build/static/chunks/1321-91a272a5139df5f2.js +1 -0
  402. package/app/.next-cli-build/static/chunks/3794-39f2d5bb0d40336b.js +52 -0
  403. package/app/.next-cli-build/static/chunks/4bd1b696-8cd12253b448cc13.js +1 -0
  404. package/app/.next-cli-build/static/chunks/5353-0085e26d68aca1f0.js +1 -0
  405. package/app/.next-cli-build/static/chunks/{5497-1af4fbf829c885c4.js → 5497-ff8c2e5da835ea40.js} +1 -1
  406. package/app/.next-cli-build/static/chunks/5772-9e7c7f235304c527.js +3 -0
  407. package/app/.next-cli-build/static/chunks/6069-31c2febe26d36d92.js +73 -0
  408. package/app/.next-cli-build/static/chunks/{6357.aa5754cdb37976a7.js → 6357.5f2532e76bf2cc51.js} +1 -1
  409. package/app/.next-cli-build/static/chunks/7504-5249aa88b6205df1.js +64 -0
  410. package/app/.next-cli-build/static/chunks/8202.69dace5daa86686d.js +1 -0
  411. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-8a99890727166f8a.js +1 -0
  412. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-ce0c6b650a822e25.js +1 -0
  413. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-589743e8ea1d9673.js +11 -0
  414. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-eacf2780757238ff.js +1 -0
  415. package/app/.next-cli-build/static/chunks/main-00cd8c01f6f6e461.js +5 -0
  416. package/app/.next-cli-build/static/chunks/{webpack-53609978799ebbca.js → webpack-cc312041cf710f25.js} +1 -1
  417. package/app/cli/package.json +1 -1
  418. package/app/node_modules/@next/env/package.json +1 -1
  419. package/app/node_modules/nanoid/package.json +3 -3
  420. package/app/node_modules/next/dist/build/analysis/get-page-static-info.js +58 -76
  421. package/app/node_modules/next/dist/build/babel/loader/get-config.js +7 -16
  422. package/app/node_modules/next/dist/build/babel/plugins/next-font-unsupported.js +1 -5
  423. package/app/node_modules/next/dist/build/babel/plugins/next-page-config.js +5 -25
  424. package/app/node_modules/next/dist/build/babel/plugins/next-page-disallow-re-export-all-exports.js +1 -5
  425. package/app/node_modules/next/dist/build/babel/plugins/next-ssg-transform.js +4 -20
  426. package/app/node_modules/next/dist/build/browser-variant-modules.js +1 -0
  427. package/app/node_modules/next/dist/build/create-compiler-aliases.js +19 -11
  428. package/app/node_modules/next/dist/build/define-env.js +12 -18
  429. package/app/node_modules/next/dist/build/entries.js +132 -8
  430. package/app/node_modules/next/dist/build/get-babel-loader-config.js +10 -10
  431. package/app/node_modules/next/dist/build/get-convention-file-base-name.js +29 -0
  432. package/app/node_modules/next/dist/build/get-static-info-including-layouts.js +0 -1
  433. package/app/node_modules/next/dist/build/handle-externals.js +1 -5
  434. package/app/node_modules/next/dist/build/load-jsconfig.js +1 -5
  435. package/app/node_modules/next/dist/build/lockfile.js +1 -5
  436. package/app/node_modules/next/dist/build/next-config-ts/transpile-config.js +1 -5
  437. package/app/node_modules/next/dist/build/nft.js +119 -0
  438. package/app/node_modules/next/dist/build/normalize-catchall-routes.js +18 -66
  439. package/app/node_modules/next/dist/build/print-build-errors.js +57 -7
  440. package/app/node_modules/next/dist/build/route-discovery.js +32 -4
  441. package/app/node_modules/next/dist/build/segment-config/app/app-segment-config.js +19 -5
  442. package/app/node_modules/next/dist/build/segment-config/app/app-segments.js +120 -29
  443. package/app/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +1 -5
  444. package/app/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +8 -2
  445. package/app/node_modules/next/dist/build/static-paths/app.js +230 -133
  446. package/app/node_modules/next/dist/build/static-paths/pages.js +8 -40
  447. package/app/node_modules/next/dist/build/static-paths/param-matching.js +200 -0
  448. package/app/node_modules/next/dist/build/swc/index.js +92 -162
  449. package/app/node_modules/next/dist/build/utils.js +180 -90
  450. package/app/node_modules/next/dist/build/webpack/cache-invalidation.js +1 -5
  451. package/app/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +7 -35
  452. package/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/CssSyntaxError.js +0 -5
  453. package/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/camelcase.js +1 -5
  454. package/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +5 -25
  455. package/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-import-parser.js +4 -20
  456. package/app/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/index.js +3 -16
  457. package/app/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/interface.js +0 -1
  458. package/app/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +2 -10
  459. package/app/node_modules/next/dist/build/webpack/loaders/next-flight-css-loader.js +1 -5
  460. package/app/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js +3 -15
  461. package/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js +3 -15
  462. package/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Error.js +0 -5
  463. package/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Warning.js +0 -5
  464. package/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js +2 -10
  465. package/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js +2 -6
  466. package/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/file-protocol.js +2 -10
  467. package/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/join-function.js +1 -5
  468. package/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/postcss.js +1 -5
  469. package/app/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +1 -5
  470. package/app/node_modules/next/dist/build/webpack/plugins/deferred-entries-plugin.js +9 -0
  471. package/app/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +2 -6
  472. package/app/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +1 -5
  473. package/app/node_modules/next/dist/build/webpack/plugins/next-trace-entrypoints-plugin.js +2 -10
  474. package/app/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +3 -1
  475. package/app/node_modules/next/dist/build/webpack/plugins/slow-module-detection-plugin.js +3 -15
  476. package/app/node_modules/next/dist/build/webpack/plugins/subresource-integrity-plugin.js +1 -5
  477. package/app/node_modules/next/dist/build/webpack-config.js +16 -33
  478. package/app/node_modules/next/dist/cli/next-test.js +4 -0
  479. package/app/node_modules/next/dist/client/app-call-server.js +16 -18
  480. package/app/node_modules/next/dist/client/components/app-router-instance.js +43 -187
  481. package/app/node_modules/next/dist/client/components/{segment-cache/navigation.js → app-router-state.js} +88 -334
  482. package/app/node_modules/next/dist/client/components/app-router-utils.js +1 -5
  483. package/app/node_modules/next/dist/client/components/app-router.js +83 -74
  484. package/app/node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js +1 -5
  485. package/app/node_modules/next/dist/client/components/forbidden.js +2 -10
  486. package/app/node_modules/next/dist/client/components/handle-isr-error.js +19 -4
  487. package/app/node_modules/next/dist/client/components/instant-samples.js +4 -11
  488. package/app/node_modules/next/dist/client/components/links.js +6 -7
  489. package/app/node_modules/next/dist/client/components/navigation-dynamic-rendering.js +3 -3
  490. package/app/node_modules/next/dist/client/components/navigation-untracked.js +1 -2
  491. package/app/node_modules/next/dist/client/components/navigation.js +2 -6
  492. package/app/node_modules/next/dist/client/components/navigation.react-server.js +1 -5
  493. package/app/node_modules/next/dist/client/components/navigator.js +73 -0
  494. package/app/node_modules/next/dist/client/components/not-found.js +1 -5
  495. package/app/node_modules/next/dist/client/components/prefetch.js +83 -0
  496. package/app/node_modules/next/dist/client/components/readonly-url-search-params.js +0 -5
  497. package/app/node_modules/next/dist/client/components/redirect.js +3 -15
  498. package/app/node_modules/next/dist/client/components/{router-reducer/ppr-navigations.js → render-tree.js} +365 -400
  499. package/app/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +13 -5
  500. package/app/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +67 -54
  501. package/app/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js +1 -7
  502. package/app/node_modules/next/dist/client/components/router-reducer/create-segment-key.js +42 -0
  503. package/app/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +71 -50
  504. package/app/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +4 -4
  505. package/app/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +2 -2
  506. package/app/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +5 -5
  507. package/app/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +11 -8
  508. package/app/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +12 -9
  509. package/app/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +30 -29
  510. package/app/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +5 -5
  511. package/app/node_modules/next/dist/client/components/router-reducer/router-reducer.js +2 -10
  512. package/app/node_modules/next/dist/client/components/segment-cache/bfcache.js +11 -21
  513. package/app/node_modules/next/dist/client/components/segment-cache/cache.js +1168 -1181
  514. package/app/node_modules/next/dist/client/components/segment-cache/decode-server-response.js +419 -0
  515. package/app/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +1 -1
  516. package/app/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +77 -82
  517. package/app/node_modules/next/dist/client/components/segment-cache/scheduler.js +464 -425
  518. package/app/node_modules/next/dist/client/components/segment-cache/types.js +12 -3
  519. package/app/node_modules/next/dist/client/components/segment-cache/vary-path.js +140 -126
  520. package/app/node_modules/next/dist/client/components/sequential-router-queue.js +163 -0
  521. package/app/node_modules/next/dist/client/components/unauthorized.js +2 -10
  522. package/app/node_modules/next/dist/client/components/unstable-rethrow.js +1 -2
  523. package/app/node_modules/next/dist/client/components/use-action-queue.js +2 -10
  524. package/app/node_modules/next/dist/client/dev/debug-channel.js +6 -323
  525. package/app/node_modules/next/dist/client/dev/hot-reloader/app/hot-reloader-app.js +49 -31
  526. package/app/node_modules/next/dist/client/dev/hot-reloader/app/web-socket.js +14 -21
  527. package/app/node_modules/next/dist/client/dev/hot-reloader/pages/hot-reloader-pages.js +15 -6
  528. package/app/node_modules/next/dist/client/dev/hot-reloader/runtime-error-state.js +72 -0
  529. package/app/node_modules/next/dist/client/flight-data-helpers.js +41 -94
  530. package/app/node_modules/next/dist/client/route-loader.js +6 -30
  531. package/app/node_modules/next/dist/client/route-params.js +34 -12
  532. package/app/node_modules/next/dist/client/router.js +2 -10
  533. package/app/node_modules/next/dist/client/sequential-call-server.js +45 -0
  534. package/app/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js +1 -1
  535. package/app/node_modules/next/dist/compiled/next-devtools/index.js +279 -229
  536. package/app/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +203 -59
  537. package/app/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +203 -59
  538. package/app/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +203 -59
  539. package/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +203 -59
  540. package/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +5 -3
  541. package/app/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +13 -13
  542. package/app/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +13 -13
  543. package/app/node_modules/next/dist/compiled/react-is/package.json +1 -1
  544. package/app/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js +1 -1
  545. package/app/node_modules/next/dist/compiled/unistore/unistore.js +1 -1
  546. package/app/node_modules/next/dist/experimental/testmode/fetch.js +2 -10
  547. package/app/node_modules/next/dist/export/helpers/create-incremental-cache.js +21 -16
  548. package/app/node_modules/next/dist/export/utils.js +21 -8
  549. package/app/node_modules/next/dist/lib/batcher.js +2 -2
  550. package/app/node_modules/next/dist/lib/dist-dir.js +88 -0
  551. package/app/node_modules/next/dist/lib/download-swc.js +2 -10
  552. package/app/node_modules/next/dist/lib/fallback.js +3 -15
  553. package/app/node_modules/next/dist/lib/find-pages-dir.js +2 -10
  554. package/app/node_modules/next/dist/lib/helpers/get-cache-directory.js +1 -5
  555. package/app/node_modules/next/dist/lib/helpers/get-registry.js +1 -5
  556. package/app/node_modules/next/dist/lib/is-error.js +3 -15
  557. package/app/node_modules/next/dist/lib/is-serializable-props.js +6 -35
  558. package/app/node_modules/next/dist/lib/patch-incorrect-lockfile.js +4 -8
  559. package/app/node_modules/next/dist/lib/picocolors.js +10 -0
  560. package/app/node_modules/next/dist/lib/recursive-delete.js +50 -11
  561. package/app/node_modules/next/dist/lib/resolve-from.js +2 -10
  562. package/app/node_modules/next/dist/lib/static-env.js +1 -5
  563. package/app/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +3 -15
  564. package/app/node_modules/next/dist/lib/typescript/missingDependencyError.js +1 -5
  565. package/app/node_modules/next/dist/lib/typescript/runTypeCheck.js +1 -9
  566. package/app/node_modules/next/dist/lib/typescript/runTypeCheckCli.js +0 -1
  567. package/app/node_modules/next/dist/lib/typescript/runTypeScriptCli.js +4 -16
  568. package/app/node_modules/next/dist/lib/verify-partytown-setup.js +1 -5
  569. package/app/node_modules/next/dist/lib/warn-missing-react-dependencies.js +33 -0
  570. package/app/node_modules/next/dist/next-devtools/server/attach-nodejs-debugger-middleware.js +1 -5
  571. package/app/node_modules/next/dist/next-devtools/server/shared.js +3 -2
  572. package/app/node_modules/next/dist/next-devtools/shared/console-error.js +1 -5
  573. package/app/node_modules/next/dist/next-devtools/userspace/app/errors/replay-ssr-only-errors.js +1 -5
  574. package/app/node_modules/next/dist/next-devtools/userspace/app/errors/runtime-error-metadata.js +39 -0
  575. package/app/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js +1 -5
  576. package/app/node_modules/next/dist/next-devtools/userspace/app/errors/use-error-handler.js +48 -19
  577. package/app/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js +1 -5
  578. package/app/node_modules/next/dist/server/accept-header.js +3 -15
  579. package/app/node_modules/next/dist/server/after/after-context.js +5 -25
  580. package/app/node_modules/next/dist/server/after/awaiter.js +1 -5
  581. package/app/node_modules/next/dist/server/after/run-with-after.js +2 -2
  582. package/app/node_modules/next/dist/server/api-utils/index.js +1 -10
  583. package/app/node_modules/next/dist/server/api-utils/node/parse-body.js +3 -15
  584. package/app/node_modules/next/dist/server/app-render/action-async-storage-instance.js +1 -1
  585. package/app/node_modules/next/dist/server/app-render/action-handler.js +104 -141
  586. package/app/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +1 -1
  587. package/app/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +6 -30
  588. package/app/node_modules/next/dist/server/app-render/app-render-render-utils.js +1 -5
  589. package/app/node_modules/next/dist/server/app-render/app-render-scheduling.js +3 -15
  590. package/app/node_modules/next/dist/server/app-render/app-render.js +1346 -1211
  591. package/app/node_modules/next/dist/server/app-render/async-local-storage.js +11 -6
  592. package/app/node_modules/next/dist/server/app-render/blocking-route-messages.js +119 -70
  593. package/app/node_modules/next/dist/server/app-render/cache-signal.js +61 -35
  594. package/app/node_modules/next/dist/server/app-render/console-async-storage-instance.js +1 -1
  595. package/app/node_modules/next/dist/server/app-render/create-component-tree.js +136 -160
  596. package/app/node_modules/next/dist/server/app-render/create-error-handler.js +12 -6
  597. package/app/node_modules/next/dist/server/app-render/create-transport-tree-from-loader-tree.js +190 -0
  598. package/app/node_modules/next/dist/server/app-render/debug-channel-server.web.js +1 -5
  599. package/app/node_modules/next/dist/server/app-render/dev-validation-scheduler.js +4 -5
  600. package/app/node_modules/next/dist/server/app-render/dev-validation-worker-snapshot.js +3 -1
  601. package/app/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js +1 -1
  602. package/app/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js +26 -3
  603. package/app/node_modules/next/dist/server/app-render/dynamic-rendering-client.js +124 -0
  604. package/app/node_modules/next/dist/server/app-render/dynamic-rendering.js +260 -329
  605. package/app/node_modules/next/dist/server/app-render/encryption-utils.js +1 -5
  606. package/app/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +2 -2
  607. package/app/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +4 -12
  608. package/app/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +13 -62
  609. package/app/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +2 -10
  610. package/app/node_modules/next/dist/server/app-render/manifests-singleton.js +110 -38
  611. package/app/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js +1 -1
  612. package/app/node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js +3 -15
  613. package/app/node_modules/next/dist/server/app-render/postponed-state.js +87 -51
  614. package/app/node_modules/next/dist/server/app-render/prospective-render-utils.js +2 -6
  615. package/app/node_modules/next/dist/server/app-render/render-in-browser.js +27 -0
  616. package/app/node_modules/next/dist/server/app-render/required-scripts.js +1 -5
  617. package/app/node_modules/next/dist/server/app-render/segment-config/ensure-static.js +206 -0
  618. package/app/node_modules/next/dist/server/app-render/staged-rendering.js +46 -54
  619. package/app/node_modules/next/dist/server/app-render/stream-ops.node.js +18 -12
  620. package/app/node_modules/next/dist/server/app-render/stream-ops.web.js +4 -20
  621. package/app/node_modules/next/dist/server/app-render/sync-io-messages.js +2 -10
  622. package/app/node_modules/next/dist/server/app-render/types.js +2 -1
  623. package/app/node_modules/next/dist/server/app-render/use-flight-response.js +4 -17
  624. package/app/node_modules/next/dist/server/app-render/vary-params.js +12 -11
  625. package/app/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +95 -97
  626. package/app/node_modules/next/dist/server/app-render/work-async-storage-instance.js +1 -1
  627. package/app/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +1 -1
  628. package/app/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +36 -26
  629. package/app/node_modules/next/dist/server/async-storage/draft-mode-provider.js +1 -5
  630. package/app/node_modules/next/dist/server/async-storage/request-store.js +6 -5
  631. package/app/node_modules/next/dist/server/async-storage/work-store.js +24 -26
  632. package/app/node_modules/next/dist/server/base-http/node.js +1 -5
  633. package/app/node_modules/next/dist/server/base-server.js +346 -155
  634. package/app/node_modules/next/dist/server/client-component-renderer-logger.js +129 -28
  635. package/app/node_modules/next/dist/server/config-schema.js +61 -9
  636. package/app/node_modules/next/dist/server/config-shared.js +26 -4
  637. package/app/node_modules/next/dist/server/config.js +154 -332
  638. package/app/node_modules/next/dist/server/dev/debug-channel.js +1 -5
  639. package/app/node_modules/next/dist/server/dev/dev-validation-worker-pool.js +1 -0
  640. package/app/node_modules/next/dist/server/dev/get-source-map-from-file.js +5 -25
  641. package/app/node_modules/next/dist/server/dev/hot-middleware.js +27 -1
  642. package/app/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +338 -200
  643. package/app/node_modules/next/dist/server/dev/hot-reloader-types.js +3 -0
  644. package/app/node_modules/next/dist/server/dev/hot-reloader-webpack.js +26 -20
  645. package/app/node_modules/next/dist/server/dev/messages.js +2 -10
  646. package/app/node_modules/next/dist/server/dev/middleware-turbopack.js +4 -20
  647. package/app/node_modules/next/dist/server/dev/middleware-webpack.js +2 -10
  648. package/app/node_modules/next/dist/server/dev/next-dev-server.js +33 -95
  649. package/app/node_modules/next/dist/server/dev/node-stack-frames.js +2 -19
  650. package/app/node_modules/next/dist/server/dev/on-demand-entry-handler.js +12 -12
  651. package/app/node_modules/next/dist/server/dev/runtime-error-state.js +220 -0
  652. package/app/node_modules/next/dist/server/dev/serialized-errors.js +1 -5
  653. package/app/node_modules/next/dist/server/dev/static-paths-worker.js +16 -15
  654. package/app/node_modules/next/dist/server/dev/turbopack-utils.js +20 -36
  655. package/app/node_modules/next/dist/server/dev/use-cache-probe-pool.js +1 -0
  656. package/app/node_modules/next/dist/server/dynamic-rendering-utils.js +298 -55
  657. package/app/node_modules/next/dist/server/image-optimizer/detect-content-type.js +229 -0
  658. package/app/node_modules/next/dist/server/image-optimizer/extract-etag.js +53 -0
  659. package/app/node_modules/next/dist/server/image-optimizer/get-image-size.js +25 -0
  660. package/app/node_modules/next/dist/server/image-optimizer/get-max-age.js +41 -0
  661. package/app/node_modules/next/dist/server/image-optimizer/get-previously-cached-image-or-null.js +22 -0
  662. package/app/node_modules/next/dist/server/image-optimizer/image-error.js +23 -0
  663. package/app/node_modules/next/dist/server/image-optimizer/image-type.js +86 -0
  664. package/app/node_modules/next/dist/server/image-optimizer/transform.js +227 -0
  665. package/app/node_modules/next/dist/server/image-optimizer.js +78 -674
  666. package/app/node_modules/next/dist/server/lib/app-info-log.js +19 -9
  667. package/app/node_modules/next/dist/server/lib/cache-handlers/default.js +9 -13
  668. package/app/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +1 -5
  669. package/app/node_modules/next/dist/server/lib/dedupe-fetch.js +1 -5
  670. package/app/node_modules/next/dist/server/lib/dev-bundler-service.js +6 -6
  671. package/app/node_modules/next/dist/server/lib/generate-agent-files.js +158 -35
  672. package/app/node_modules/next/dist/server/lib/i18n-provider.js +1 -5
  673. package/app/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +14 -20
  674. package/app/node_modules/next/dist/server/lib/incremental-cache/index.js +19 -29
  675. package/app/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +1 -5
  676. package/app/node_modules/next/dist/server/lib/lru-cache.js +1 -5
  677. package/app/node_modules/next/dist/server/lib/mock-request.js +24 -120
  678. package/app/node_modules/next/dist/server/lib/module-loader/node-module-loader.js +1 -5
  679. package/app/node_modules/next/dist/server/lib/patch-fetch.js +44 -38
  680. package/app/node_modules/next/dist/server/lib/postponed-request-body.js +1 -5
  681. package/app/node_modules/next/dist/server/lib/render-server.js +2 -10
  682. package/app/node_modules/next/dist/server/lib/router-server.js +106 -36
  683. package/app/node_modules/next/dist/server/lib/router-utils/build-data-route.js +26 -3
  684. package/app/node_modules/next/dist/server/lib/router-utils/cache-life-type-utils.js +14 -45
  685. package/app/node_modules/next/dist/server/lib/router-utils/decode-path-params.js +1 -5
  686. package/app/node_modules/next/dist/server/lib/router-utils/filesystem.js +212 -31
  687. package/app/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +61 -1
  688. package/app/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js +1 -5
  689. package/app/node_modules/next/dist/server/lib/router-utils/normalize-catchall-routes.js +320 -0
  690. package/app/node_modules/next/dist/server/lib/router-utils/proxy-request.js +2 -2
  691. package/app/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +17 -11
  692. package/app/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js +258 -76
  693. package/app/node_modules/next/dist/server/lib/router-utils/strict-route-matching-config.js +28 -0
  694. package/app/node_modules/next/dist/server/lib/router-utils/typegen.js +56 -10
  695. package/app/node_modules/next/dist/server/lib/start-server.js +48 -38
  696. package/app/node_modules/next/dist/server/lib/trace/constants.js +40 -0
  697. package/app/node_modules/next/dist/server/lib/trace/request-insights-identity.js +1 -3
  698. package/app/node_modules/next/dist/server/lib/trace/tracer.js +10 -10
  699. package/app/node_modules/next/dist/server/lib/utils.js +66 -15
  700. package/app/node_modules/next/dist/server/load-components.js +7 -2
  701. package/app/node_modules/next/dist/server/load-manifest.external.js +16 -17
  702. package/app/node_modules/next/dist/server/mcp/tools/utils/browser-communication.js +2 -10
  703. package/app/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +5 -5
  704. package/app/node_modules/next/dist/server/next-server.js +130 -124
  705. package/app/node_modules/next/dist/server/next.js +25 -37
  706. package/app/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +1 -2
  707. package/app/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +115 -62
  708. package/app/node_modules/next/dist/server/node-environment-extensions/global-behaviors.js +1 -5
  709. package/app/node_modules/next/dist/server/node-environment-extensions/io-utils.js +11 -10
  710. package/app/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +0 -9
  711. package/app/node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js +1 -12
  712. package/app/node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js +1 -1
  713. package/app/node_modules/next/dist/server/normalizers/request/base-path.js +1 -5
  714. package/app/node_modules/next/dist/server/normalizers/request/next-data.js +1 -5
  715. package/app/node_modules/next/dist/server/normalizers/request/prefix.js +1 -5
  716. package/app/node_modules/next/dist/server/patch-error-inspect.js +19 -11
  717. package/app/node_modules/next/dist/server/pipe-readable.js +42 -30
  718. package/app/node_modules/next/dist/server/render-result.js +5 -17
  719. package/app/node_modules/next/dist/server/render.js +37 -183
  720. package/app/node_modules/next/dist/server/request/fallback-params.js +23 -9
  721. package/app/node_modules/next/dist/server/response-cache/index.js +54 -32
  722. package/app/node_modules/next/dist/server/response-cache/utils.js +1 -5
  723. package/app/node_modules/next/dist/server/resume-data-cache/cache-store.js +18 -0
  724. package/app/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +51 -49
  725. package/app/node_modules/next/dist/server/revalidation-utils.js +15 -13
  726. package/app/node_modules/next/dist/server/route-modules/app-page/dev-render-context.js +23 -0
  727. package/app/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +5 -4
  728. package/app/node_modules/next/dist/server/route-modules/app-page/module.js +13 -1
  729. package/app/node_modules/next/dist/server/route-modules/app-page/module.render.js +26 -11
  730. package/app/node_modules/next/dist/server/route-modules/app-page/parse-request-headers.js +58 -0
  731. package/app/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js +1 -5
  732. package/app/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js +1 -5
  733. package/app/node_modules/next/dist/server/route-modules/pages/module.render.js +1 -5
  734. package/app/node_modules/next/dist/server/route-modules/pages/pages-handler.js +20 -16
  735. package/app/node_modules/next/dist/server/route-modules/route-module.js +57 -61
  736. package/app/node_modules/next/dist/server/serve-static.js +1 -5
  737. package/app/node_modules/next/dist/server/setup-http-agent-env.js +1 -5
  738. package/app/node_modules/next/dist/server/stream-utils/encoded-tags.js +1 -1
  739. package/app/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +7 -11
  740. package/app/node_modules/next/dist/server/typescript/constant.js +2 -0
  741. package/app/node_modules/next/dist/server/typescript/rules/config.js +29 -2
  742. package/app/node_modules/next/dist/server/use-cache/cache-life-profile.js +6 -30
  743. package/app/node_modules/next/dist/server/use-cache/constants.js +1 -5
  744. package/app/node_modules/next/dist/server/use-cache/handlers.js +27 -36
  745. package/app/node_modules/next/dist/server/use-cache/tiered-cache-handler.js +6 -4
  746. package/app/node_modules/next/dist/server/web/adapter.js +14 -35
  747. package/app/node_modules/next/dist/server/web/error.js +0 -15
  748. package/app/node_modules/next/dist/server/web/globals.js +3 -15
  749. package/app/node_modules/next/dist/server/web/next-url.js +1 -5
  750. package/app/node_modules/next/dist/server/web/sandbox/context.js +10 -34
  751. package/app/node_modules/next/dist/server/web/sandbox/sandbox.js +1 -5
  752. package/app/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +0 -5
  753. package/app/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +1 -5
  754. package/app/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +0 -5
  755. package/app/node_modules/next/dist/server/web/spec-extension/fetch-event.js +2 -10
  756. package/app/node_modules/next/dist/server/web/spec-extension/response.js +2 -10
  757. package/app/node_modules/next/dist/server/web/utils.js +1 -5
  758. package/app/node_modules/next/dist/server/web/web-on-close.js +2 -10
  759. package/app/node_modules/next/dist/shared/lib/app-router-types.js +38 -28
  760. package/app/node_modules/next/dist/shared/lib/constants.js +5 -0
  761. package/app/node_modules/next/dist/shared/lib/deployment-id.js +1 -1
  762. package/app/node_modules/next/dist/shared/lib/errors/code-frame.js +3 -2
  763. package/app/node_modules/next/dist/shared/lib/errors/empty-generate-static-params-error.js +1 -5
  764. package/app/node_modules/next/dist/shared/lib/errors/ensure-static-gsp-errors.js +30 -0
  765. package/app/node_modules/next/dist/shared/lib/errors/hard-deprecated-config-error.js +0 -5
  766. package/app/node_modules/next/dist/shared/lib/errors/incompatible-parallel-route-slots-error.js +36 -0
  767. package/app/node_modules/next/dist/shared/lib/errors/missing-canonical-interception-routes-error.js +20 -0
  768. package/app/node_modules/next/dist/shared/lib/errors/unmatched-app-pages-error.js +20 -0
  769. package/app/node_modules/next/dist/shared/lib/get-rspack.js +1 -5
  770. package/app/node_modules/next/dist/shared/lib/html-context.shared-runtime.js +1 -5
  771. package/app/node_modules/next/dist/shared/lib/image-config.js +52 -1
  772. package/app/node_modules/next/dist/shared/lib/instant-messages.js +2 -10
  773. package/app/node_modules/next/dist/shared/lib/invariant-error.js +0 -5
  774. package/app/node_modules/next/dist/shared/lib/lazy-dynamic/react-browser-bailout.js +45 -0
  775. package/app/node_modules/next/dist/shared/lib/magic-identifier.js +5 -25
  776. package/app/node_modules/next/dist/shared/lib/match-remote-pattern.js +1 -5
  777. package/app/node_modules/next/dist/shared/lib/router/router.js +95 -77
  778. package/app/node_modules/next/dist/shared/lib/router/routes/app.js +3 -15
  779. package/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js +6 -1
  780. package/app/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +4 -12
  781. package/app/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +63 -20
  782. package/app/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +1 -5
  783. package/app/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +1 -5
  784. package/app/node_modules/next/dist/shared/lib/router/utils/querystring.js +31 -0
  785. package/app/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +1 -5
  786. package/app/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +1 -5
  787. package/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +11 -55
  788. package/app/node_modules/next/dist/shared/lib/rsc-transport.js +108 -0
  789. package/app/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.js +0 -13
  790. package/app/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +48 -27
  791. package/app/node_modules/next/dist/shared/lib/segment.js +1 -13
  792. package/app/node_modules/next/dist/shared/lib/turbopack/compilation-events.js +7 -7
  793. package/app/node_modules/next/dist/shared/lib/turbopack/internal-error.js +2 -7
  794. package/app/node_modules/next/dist/shared/lib/turbopack/manifest-loader.js +2 -6
  795. package/app/node_modules/next/dist/shared/lib/turbopack/utils.js +3 -11
  796. package/app/node_modules/next/dist/shared/lib/utils.js +2 -11
  797. package/app/node_modules/next/dist/shared/lib/zod.js +2 -6
  798. package/app/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
  799. package/app/node_modules/next/dist/telemetry/detached-flush.js +8 -15
  800. package/app/node_modules/next/dist/telemetry/events/build.js +1 -2
  801. package/app/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
  802. package/app/node_modules/next/dist/telemetry/events/version.js +2 -2
  803. package/app/node_modules/next/dist/telemetry/post-telemetry-payload.js +1 -5
  804. package/app/node_modules/next/dist/telemetry/storage.js +31 -19
  805. package/app/node_modules/next/dist/trace/report/index.js +5 -2
  806. package/app/node_modules/next/dist/trace/report/to-json-build.js +4 -2
  807. package/app/node_modules/next/dist/trace/report/to-json.js +141 -97
  808. package/app/node_modules/next/dist/trace/trace.js +14 -9
  809. package/app/node_modules/next/package.json +12 -11
  810. package/app/package.json +4 -4
  811. package/app/server.js +1 -1
  812. package/app/src/mitm/server.js +43 -39
  813. package/package.json +1 -1
  814. package/app/.next-cli-build/static/chunks/1321-c5b3011761e0228b.js +0 -1
  815. package/app/.next-cli-build/static/chunks/3794-83acfce05009cf38.js +0 -52
  816. package/app/.next-cli-build/static/chunks/4bd1b696-8a4ab4fdf0ae305a.js +0 -1
  817. package/app/.next-cli-build/static/chunks/5353-d31cc8d476bc534e.js +0 -1
  818. package/app/.next-cli-build/static/chunks/5772-6cf78180ecf9dce0.js +0 -3
  819. package/app/.next-cli-build/static/chunks/6069-7e7f824c6e2d4291.js +0 -73
  820. package/app/.next-cli-build/static/chunks/7504-6f7ca1eab428dd5e.js +0 -64
  821. package/app/.next-cli-build/static/chunks/8202.1ffc6ce531e066ce.js +0 -1
  822. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-90b9aed7279ea50e.js +0 -1
  823. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-eaf6e24edeca4e51.js +0 -1
  824. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-2f53d5dd5b247cf1.js +0 -11
  825. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-bbc10fd10f7af626.js +0 -1
  826. package/app/.next-cli-build/static/chunks/main-1eaba0b776683ce7.js +0 -5
  827. package/app/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/minify.js +0 -94
  828. package/app/node_modules/next/dist/client/components/match-segments.js +0 -32
  829. package/app/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +0 -63
  830. package/app/node_modules/next/dist/client/components/segment-cache/prefetch.js +0 -32
  831. package/app/node_modules/next/dist/compiled/webpack-sources3/index.js +0 -1
  832. package/app/node_modules/next/dist/compiled/webpack-sources3/package.json +0 -1
  833. package/app/node_modules/next/dist/lib/detached-promise.js +0 -32
  834. package/app/node_modules/next/dist/lib/error-telemetry-utils.js +0 -42
  835. package/app/node_modules/next/dist/next-devtools/server/get-next-error-feedback-middleware.js +0 -42
  836. package/app/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +0 -154
  837. package/app/node_modules/next/dist/server/lib/experimental/ppr.js +0 -47
  838. package/app/node_modules/next/dist/server/lib/params-utils.js +0 -70
  839. package/app/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -16
  840. package/app/node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js +0 -239
  841. package/app/node_modules/next/dist/server/route-matcher-managers/dev-route-matcher-manager.js +0 -120
  842. package/app/node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js +0 -55
  843. package/app/node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js +0 -43
  844. package/app/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +0 -91
  845. package/app/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-route-route-matcher-provider.js +0 -112
  846. package/app/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-api-route-matcher-provider.js +0 -77
  847. package/app/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-route-matcher-provider.js +0 -77
  848. package/app/node_modules/next/dist/server/route-matcher-providers/dev/file-cache-route-matcher-provider.js +0 -28
  849. package/app/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/batched-file-reader.js +0 -106
  850. package/app/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/default-file-reader.js +0 -42
  851. package/app/node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js +0 -30
  852. package/app/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/node-manifest-loader.js +0 -34
  853. package/app/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js +0 -20
  854. package/app/node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js +0 -21
  855. package/app/node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js +0 -55
  856. package/app/node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js +0 -64
  857. package/app/node_modules/next/dist/server/route-matchers/app-page-route-matcher.js +0 -18
  858. package/app/node_modules/next/dist/server/route-matchers/app-route-route-matcher.js +0 -15
  859. package/app/node_modules/next/dist/server/route-matchers/locale-route-matcher.js +0 -68
  860. package/app/node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js +0 -30
  861. package/app/node_modules/next/dist/server/route-matchers/pages-route-matcher.js +0 -30
  862. package/app/node_modules/next/dist/server/route-matchers/route-matcher.js +0 -54
  863. package/app/node_modules/next/dist/telemetry/events/error-feedback.js +0 -31
  864. /package/app/.next-cli-build/static/{i0cMBMqFdYWpbajovDyfY → em-yyr0O7qRIA9N8Clc4I}/_buildManifest.js +0 -0
  865. /package/app/.next-cli-build/static/{i0cMBMqFdYWpbajovDyfY → em-yyr0O7qRIA9N8Clc4I}/_ssgManifest.js +0 -0
@@ -157,11 +157,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
157
157
  const EXTERNAL_PACKAGES = _json5.default.parse(_fs.default.readFileSync(_path.default.join(__dirname, '../lib/server-external-packages.jsonc'), 'utf8'));
158
158
  const DEFAULT_TRANSPILED_PACKAGES = require('../lib/default-transpiled-packages.json');
159
159
  if (parseInt(_react.default.version) < 18) {
160
- throw Object.defineProperty(new Error('Next.js requires react >= 18.2.0 to be installed.'), "__NEXT_ERROR_CODE", {
161
- value: "E480",
162
- enumerable: false,
163
- configurable: true
164
- });
160
+ throw new Error('Next.js requires react >= 18.2.0 to be installed.');
165
161
  }
166
162
  const babelIncludeRegexes = [
167
163
  /next[\\/]dist[\\/](esm[\\/])?shared[\\/]lib/,
@@ -319,7 +315,7 @@ const getCacheDirectories = process.env.NEXT_RSPACK ? (configs)=>{
319
315
  return null;
320
316
  }).filter((dir)=>dir != null));
321
317
  };
322
- async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compilerType, dev = false, entrypoints, deferredEntrypoints, isDevFallback = false, pagesDir, rewrites, originalRewrites, originalRedirects, runWebpackSpan, appDir, middlewareMatchers, noMangling, jsConfig, jsConfigPath, resolvedBaseUrl, supportedBrowsers, clientRouterFilters, fetchCacheKeyPrefix, isCompileMode, previewProps }) {
318
+ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compilerType, dev = false, entrypoints, deferredEntrypoints, deferredEntrySourceDirectories, isDevFallback = false, pagesDir, rewrites, originalRewrites, originalRedirects, runWebpackSpan, appDir, middlewareMatchers, noMangling, jsConfig, jsConfigPath, resolvedBaseUrl, supportedBrowsers, clientRouterFilters, fetchCacheKeyPrefix, isCompileMode, previewProps }) {
323
319
  var _config_compiler, _config_compiler1, _config_compiler2, _jsConfig_compilerOptions, _config_compiler3, _jsConfig_compilerOptions1, _config_compiler4, _config_experimental, _config_watchOptions, _config_experimental_deferredEntries, _config_experimental_sri, _config_experimental_sri1, _jsConfig_compilerOptions2, // always add JsConfigPathsPlugin to allow hot-reloading
324
320
  // if the config is added/removed
325
321
  _webpackConfig_resolve_plugins, _webpackConfig_resolve, _config_experimental1, _config_compiler5, _config_compiler6, _config_compiler7, _config_compiler8, _config_compiler9, _webpack5Config_plugins, _webpackConfig_module, _webpackConfig_module1, _webpackConfig_module_rules, _webpackConfig_module2;
@@ -338,10 +334,8 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
338
334
  const bundledReactChannel = (0, _needsexperimentalreact.needsExperimentalReact)(config) ? '-experimental' : '';
339
335
  const reactProductionProfiling = config.reactProductionProfiling ?? false;
340
336
  const babelConfigFile = (0, _getbabelconfigfile.getBabelConfigFile)(dir);
341
- if (!dev && (0, _utils2.hasCustomExportOutput)(config)) {
342
- config.distDir = '.next';
343
- }
344
- const distDir = _path.default.join(dir, config.distDir);
337
+ const buildDistDir = dev ? config.distDir : (0, _utils2.getBuildDistDir)(config);
338
+ const distDir = _path.default.join(dir, buildDistDir);
345
339
  let useSWCLoader = !babelConfigFile || config.experimental.forceSwcTransforms;
346
340
  let SWCBinaryTarget = undefined;
347
341
  if (useSWCLoader) {
@@ -422,7 +416,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
422
416
  hasReactRefresh: dev && isClient,
423
417
  transpilePackages: finalTranspilePackages,
424
418
  supportedBrowsers,
425
- swcCacheDir: _path.default.join(dir, (config == null ? void 0 : config.distDir) ?? '.next', 'cache', 'swc'),
419
+ swcCacheDir: _path.default.join(distDir, 'cache', 'swc'),
426
420
  serverReferenceHashSalt: encryptionKey,
427
421
  // rspack specific options
428
422
  pnp: Boolean(process.versions.pnp),
@@ -448,7 +442,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
448
442
  jsConfig,
449
443
  transpilePackages: finalTranspilePackages,
450
444
  supportedBrowsers,
451
- swcCacheDir: _path.default.join(dir, (config == null ? void 0 : config.distDir) ?? '.next', 'cache', 'swc'),
445
+ swcCacheDir: _path.default.join(distDir, 'cache', 'swc'),
452
446
  serverReferenceHashSalt: encryptionKey,
453
447
  ...extraOptions
454
448
  }
@@ -686,11 +680,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
686
680
  return (_config_serverExternalPackages = config.serverExternalPackages) == null ? void 0 : _config_serverExternalPackages.includes(pkg);
687
681
  });
688
682
  if (externalPackageConflicts.length > 0) {
689
- throw Object.defineProperty(new Error(`The packages specified in the 'transpilePackages' conflict with the 'serverExternalPackages': ${externalPackageConflicts.join(', ')}`), "__NEXT_ERROR_CODE", {
690
- value: "E173",
691
- enumerable: false,
692
- configurable: true
693
- });
683
+ throw new Error(`The packages specified in the 'transpilePackages' conflict with the 'serverExternalPackages': ${externalPackageConflicts.join(', ')}`);
694
684
  }
695
685
  }
696
686
  // For original request, such as `package name`
@@ -911,11 +901,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
911
901
  module1.updateHash(hash);
912
902
  } else {
913
903
  if (!module1.libIdent) {
914
- throw Object.defineProperty(new Error(`Encountered unknown module type: ${module1.type}. Please open an issue.`), "__NEXT_ERROR_CODE", {
915
- value: "E487",
916
- enumerable: false,
917
- configurable: true
918
- });
904
+ throw new Error(`Encountered unknown module type: ${module1.type}. Please open an issue.`);
919
905
  }
920
906
  hash.update(module1.libIdent({
921
907
  context: dir
@@ -1610,7 +1596,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1610
1596
  loader: 'next-barrel-loader',
1611
1597
  options: {
1612
1598
  names,
1613
- swcCacheDir: _path.default.join(dir, (config == null ? void 0 : config.distDir) ?? '.next', 'cache', 'swc')
1599
+ swcCacheDir: _path.default.join(distDir, 'cache', 'swc')
1614
1600
  },
1615
1601
  // This is part of the request value to serve as the module key.
1616
1602
  // The barrel loader are no-op re-exported modules keyed by
@@ -1637,7 +1623,8 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1637
1623
  !isRspack && ((_config_experimental_deferredEntries = config.experimental.deferredEntries) == null ? void 0 : _config_experimental_deferredEntries.length) && deferredEntrypoints && new _deferredentriesplugin.DeferredEntriesPlugin({
1638
1624
  dev,
1639
1625
  config,
1640
- deferredEntrypoints
1626
+ deferredEntrypoints,
1627
+ deferredEntrySourceDirectories
1641
1628
  }),
1642
1629
  isNodeServer && new bundler.NormalModuleReplacementPlugin(/\.\/(.+)\.shared-runtime$/, function(resource) {
1643
1630
  const moduleName = _path.default.basename(resource.request, '.shared-runtime');
@@ -1770,7 +1757,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1770
1757
  isClient && new _copyfileplugin.CopyFilePlugin({
1771
1758
  // file path to build output of `@next/polyfill-nomodule`
1772
1759
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1773
- cacheKey: "16.3.8",
1760
+ cacheKey: "16.4.1",
1774
1761
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1775
1762
  minimize: false,
1776
1763
  info: {
@@ -1791,7 +1778,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1791
1778
  })),
1792
1779
  hasAppDir && !isClient && new _nexttypesplugin.NextTypesPlugin({
1793
1780
  dir,
1794
- distDir: config.distDir,
1781
+ distDir: buildDistDir,
1795
1782
  appDir,
1796
1783
  dev,
1797
1784
  isEdgeServer,
@@ -1971,7 +1958,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1971
1958
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1972
1959
  // - Next.js version
1973
1960
  // - next.config.js keys that affect compilation
1974
- version: `${__dirname}|${"16.3.8"}|${configVars}`,
1961
+ version: `${__dirname}|${"16.4.1"}|${configVars}`,
1975
1962
  cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
1976
1963
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1977
1964
  // So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
@@ -2027,7 +2014,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
2027
2014
  type: 'filesystem',
2028
2015
  directory: _path.default.join(distDir, 'cache', 'rspack', rspackCacheKey)
2029
2016
  },
2030
- version: `${__dirname}|${"16.3.8"}|${configVars}|${rspackCacheKey}`
2017
+ version: `${__dirname}|${"16.4.1"}|${configVars}|${rspackCacheKey}`
2031
2018
  };
2032
2019
  }
2033
2020
  if (process.env.NEXT_WEBPACK_LOGGING) {
@@ -2131,11 +2118,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
2131
2118
  }
2132
2119
  }
2133
2120
  if (!webpackConfig) {
2134
- throw Object.defineProperty(new Error(`Webpack config is undefined. You may have forgot to return properly from within the "webpack" method of your ${config.configFileName}.\n` + 'See more info here https://nextjs.org/docs/messages/undefined-webpack-config'), "__NEXT_ERROR_CODE", {
2135
- value: "E297",
2136
- enumerable: false,
2137
- configurable: true
2138
- });
2121
+ throw new Error(`Webpack config is undefined. You may have forgot to return properly from within the "webpack" method of your ${config.configFileName}.\n` + 'See more info here https://nextjs.org/docs/messages/undefined-webpack-config');
2139
2122
  }
2140
2123
  if (dev && originalDevtool !== webpackConfig.devtool) {
2141
2124
  webpackConfig.devtool = originalDevtool;
@@ -22,6 +22,7 @@ _export(exports, {
22
22
  });
23
23
  const _fs = require("fs");
24
24
  const _getprojectdir = require("../lib/get-project-dir");
25
+ const _warnmissingreactdependencies = require("../lib/warn-missing-react-dependencies");
25
26
  const _utils = require("../server/lib/utils");
26
27
  const _config = /*#__PURE__*/ _interop_require_default(require("../server/config"));
27
28
  const _constants = require("../shared/lib/constants");
@@ -78,6 +79,9 @@ async function nextTest(directory, testRunnerArgs = [], options = {}) {
78
79
  nextConfig = await (0, _config.default)(_constants.PHASE_PRODUCTION_BUILD, baseDir) // let this error bubble up if the `basePath` is still not a valid Next.js project
79
80
  ;
80
81
  }
82
+ // The directory may have been a runner argument; check the app only after
83
+ // the fallback above has resolved its actual project directory.
84
+ (0, _warnmissingreactdependencies.warnMissingReactDependencies)(baseDir);
81
85
  // set the test runner. priority is CLI option > next config > default 'playwright'
82
86
  const configuredTestRunner = (options == null ? void 0 : options.testRunner) ?? // --test-runner='foo'
83
87
  nextConfig.experimental.defaultTestRunner ?? // { experimental: { defaultTestRunner: 'foo' }}
@@ -1,29 +1,27 @@
1
- "use strict";
1
+ // The entry point for Server Actions: the "action door" into the router.
2
+ // Server Actions are deliberately not a navigator operation (navigator.ts) —
3
+ // the action queue is semantically separate from the router state queue —
4
+ // but this module forks the same way: by default it re-exports the
5
+ // sequential implementation, and when `experimental.concurrentRouterQueue`
6
+ // is enabled, imports of this module resolve to './concurrent-call-server'
7
+ // instead at the bundler level (see create-compiler-aliases.ts and
8
+ // next_import_map.rs). Both implementations expose exactly this surface.
9
+ /**
10
+ * Invoke a Server Action. The returned promise resolves with the action's
11
+ * return value once the response has been processed. Navigation and
12
+ * revalidation side effects of the action are handled by the router; they are
13
+ * not observable through the returned promise.
14
+ */ "use strict";
2
15
  Object.defineProperty(exports, "__esModule", {
3
16
  value: true
4
17
  });
5
18
  Object.defineProperty(exports, "callServer", {
6
19
  enumerable: true,
7
20
  get: function() {
8
- return callServer;
21
+ return _sequentialcallserver.callServer;
9
22
  }
10
23
  });
11
- const _react = require("react");
12
- const _routerreducertypes = require("./components/router-reducer/router-reducer-types");
13
- const _useactionqueue = require("./components/use-action-queue");
14
- async function callServer(actionId, actionArgs) {
15
- return new Promise((resolve, reject)=>{
16
- (0, _react.startTransition)(()=>{
17
- (0, _useactionqueue.dispatchAppRouterAction)({
18
- type: _routerreducertypes.ACTION_SERVER_ACTION,
19
- actionId,
20
- actionArgs,
21
- resolve,
22
- reject
23
- });
24
- });
25
- });
26
- }
24
+ const _sequentialcallserver = require("./sequential-call-server");
27
25
 
28
26
  if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
29
27
  Object.defineProperty(exports.default, '__esModule', { value: true });
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  0 && (module.exports = {
6
6
  createMutableActionQueue: null,
7
- dispatchNavigateAction: null,
8
- dispatchTraverseAction: null,
9
7
  getCurrentAppRouterState: null,
10
8
  publicAppRouterInstance: null
11
9
  });
@@ -19,12 +17,6 @@ _export(exports, {
19
17
  createMutableActionQueue: function() {
20
18
  return createMutableActionQueue;
21
19
  },
22
- dispatchNavigateAction: function() {
23
- return dispatchNavigateAction;
24
- },
25
- dispatchTraverseAction: function() {
26
- return dispatchTraverseAction;
27
- },
28
20
  getCurrentAppRouterState: function() {
29
21
  return getCurrentAppRouterState;
30
22
  },
@@ -36,17 +28,14 @@ const _routerreducertypes = require("./router-reducer/router-reducer-types");
36
28
  const _routerreducer = require("./router-reducer/router-reducer");
37
29
  const _react = require("react");
38
30
  const _isthenable = require("../../shared/lib/is-thenable");
39
- const _types = require("./segment-cache/types");
40
- const _prefetch = require("./segment-cache/prefetch");
41
- const _navigation = require("./segment-cache/navigation");
31
+ const _approuterstate = require("./app-router-state");
42
32
  const _useactionqueue = require("./use-action-queue");
43
- const _optimisticroutes = require("./segment-cache/optimistic-routes");
44
- const _pprnavigations = require("./router-reducer/ppr-navigations");
33
+ const _rendertree = require("./render-tree");
45
34
  const _addbasepath = require("../add-base-path");
46
35
  const _approuterutils = require("./app-router-utils");
47
- const _links = require("./links");
48
36
  const _javascripturl = require("../lib/javascript-url");
49
- const _routertransition = require("./router-transition");
37
+ const _navigator = require("./navigator");
38
+ const _prefetch = require("./prefetch");
50
39
  function runRemainingActions(actionQueue, settledAction, setState) {
51
40
  // Only advance the queue if the settled action is still at its head. If a
52
41
  // navigation discarded this action, the navigation took its place and is
@@ -63,20 +52,31 @@ function runRemainingActions(actionQueue, settledAction, setState) {
63
52
  return;
64
53
  }
65
54
  }
66
- if (actionQueue.pending === null && actionQueue.needsRefresh) {
67
- // The queue is idle; flush the refresh requested by a discarded server
68
- // action that revalidated data.
69
- actionQueue.needsRefresh = false;
70
- actionQueue.dispatch({
71
- type: _routerreducertypes.ACTION_REFRESH
72
- }, setState);
55
+ if (actionQueue.pending === null) {
56
+ if (actionQueue.wasPreempted) {
57
+ actionQueue.wasPreempted = false;
58
+ // When an action is preempted, later actions can update the queue's state without React rendering it.
59
+ // Once the queue is empty, publish the final state so the UI catches up.
60
+ (0, _react.startTransition)(()=>setState(actionQueue.state));
61
+ }
62
+ if (actionQueue.needsRefresh) {
63
+ // The queue is idle; flush the refresh requested by a discarded server
64
+ // action that revalidated data.
65
+ actionQueue.needsRefresh = false;
66
+ actionQueue.dispatch({
67
+ type: _routerreducertypes.ACTION_REFRESH
68
+ }, setState);
69
+ }
73
70
  }
74
71
  }
75
- async function runAction({ actionQueue, action, setState }) {
72
+ function runAction({ actionQueue, action, setState }) {
76
73
  const prevState = actionQueue.state;
77
74
  actionQueue.pending = action;
78
75
  const payload = action.payload;
79
- const actionResult = actionQueue.action(prevState, payload);
76
+ function handleError(err) {
77
+ runRemainingActions(actionQueue, action, setState);
78
+ action.reject(err);
79
+ }
80
80
  function handleResult(nextState) {
81
81
  // if we discarded this action, the state should also be discarded
82
82
  if (action.discarded) {
@@ -95,12 +95,16 @@ async function runAction({ actionQueue, action, setState }) {
95
95
  runRemainingActions(actionQueue, action, setState);
96
96
  action.resolve(nextState);
97
97
  }
98
+ let actionResult;
99
+ try {
100
+ actionResult = actionQueue.action(prevState, payload);
101
+ } catch (err) {
102
+ handleError(err);
103
+ return;
104
+ }
98
105
  // if the action is a promise, set up a callback to resolve it
99
106
  if ((0, _isthenable.isThenable)(actionResult)) {
100
- actionResult.then(handleResult, (err)=>{
101
- runRemainingActions(actionQueue, action, setState);
102
- action.reject(err);
103
- });
107
+ actionResult.then(handleResult, handleError);
104
108
  } else {
105
109
  handleResult(actionResult);
106
110
  }
@@ -148,6 +152,7 @@ function dispatchAction(actionQueue, payload, setState) {
148
152
  // Navigations (including back/forward) take priority over any pending actions.
149
153
  // Mark the pending action as discarded (so the state is never applied) and start the navigation action immediately.
150
154
  actionQueue.pending.discarded = true;
155
+ actionQueue.wasPreempted = true;
151
156
  // The rest of the current queue should still execute after this navigation.
152
157
  // (Note that it can't contain any earlier navigations, because we always put those into `actionQueue.pending` by calling `runAction`)
153
158
  newAction.next = actionQueue.pending.next;
@@ -173,10 +178,7 @@ function createMutableActionQueue(initialState) {
173
178
  const actionQueue = {
174
179
  state: initialState,
175
180
  dispatch: (payload, setState)=>dispatchAction(actionQueue, payload, setState),
176
- action: async (state, action)=>{
177
- const result = (0, _routerreducer.reducer)(state, action);
178
- return result;
179
- },
181
+ action: _routerreducer.reducer,
180
182
  pending: null,
181
183
  last: null
182
184
  };
@@ -185,11 +187,7 @@ function createMutableActionQueue(initialState) {
185
187
  // it doesn't change. So we can store it in a global rather than pass
186
188
  // it around everywhere via props/context.
187
189
  if (globalActionQueue !== null) {
188
- throw Object.defineProperty(new Error('Internal Next.js Error: createMutableActionQueue was called more ' + 'than once'), "__NEXT_ERROR_CODE", {
189
- value: "E624",
190
- enumerable: false,
191
- configurable: true
192
- });
190
+ throw new Error('Internal Next.js Error: createMutableActionQueue was called more ' + 'than once');
193
191
  }
194
192
  globalActionQueue = actionQueue;
195
193
  }
@@ -198,47 +196,6 @@ function createMutableActionQueue(initialState) {
198
196
  function getCurrentAppRouterState() {
199
197
  return globalActionQueue !== null ? globalActionQueue.state : null;
200
198
  }
201
- function getAppRouterActionQueue() {
202
- if (globalActionQueue === null) {
203
- throw Object.defineProperty(new Error('Internal Next.js error: Router action dispatched before initialization.'), "__NEXT_ERROR_CODE", {
204
- value: "E668",
205
- enumerable: false,
206
- configurable: true
207
- });
208
- }
209
- return globalActionQueue;
210
- }
211
- function dispatchNavigateAction(href, navigateType, scrollBehavior, linkInstanceRef, transitionTypes, prefetchIntent) {
212
- // TODO: This stuff could just go into the reducer. Leaving as-is for now
213
- // since we're about to rewrite all the router reducer stuff anyway.
214
- if (transitionTypes) {
215
- for (const type of transitionTypes){
216
- (0, _react.addTransitionType)(type);
217
- }
218
- }
219
- const url = new URL((0, _addbasepath.addBasePath)(href), location.href);
220
- if (process.env.__NEXT_APP_NAV_FAIL_HANDLING) {
221
- window.next.__pendingUrl = url;
222
- }
223
- (0, _links.setLinkForCurrentNavigation)(linkInstanceRef);
224
- (0, _routertransition.startRouterTransition)(href, navigateType, getAppRouterActionQueue().state.tree, prefetchIntent);
225
- (0, _useactionqueue.dispatchAppRouterAction)({
226
- type: _routerreducertypes.ACTION_NAVIGATE,
227
- url,
228
- isExternalUrl: (0, _approuterutils.isExternalURL)(url),
229
- locationSearch: location.search,
230
- scrollBehavior,
231
- navigateType
232
- });
233
- }
234
- function dispatchTraverseAction(href, historyState) {
235
- (0, _routertransition.startRouterTransition)(href, 'traverse', getAppRouterActionQueue().state.tree, null);
236
- (0, _useactionqueue.dispatchAppRouterAction)({
237
- type: _routerreducertypes.ACTION_RESTORE,
238
- url: new URL(href),
239
- historyState
240
- });
241
- }
242
199
  /**
243
200
  * (Experimental) Perform a gesture navigation. This dispatches through React's
244
201
  * useOptimistic instead of the main action queue, allowing the state to be
@@ -251,11 +208,7 @@ function dispatchTraverseAction(href, historyState) {
251
208
  // TODO: Trigger a prefetch so the cache starts populating if there isn't
252
209
  // already a prefetch for this route.
253
210
  if ((0, _javascripturl.isJavaScriptURLString)(href)) {
254
- throw Object.defineProperty(new Error('Next.js has blocked a javascript: URL as a security precaution.'), "__NEXT_ERROR_CODE", {
255
- value: "E978",
256
- enumerable: false,
257
- configurable: true
258
- });
211
+ throw new Error('Next.js has blocked a javascript: URL as a security precaution.');
259
212
  }
260
213
  const state = getCurrentAppRouterState();
261
214
  if (state === null) {
@@ -274,116 +227,19 @@ function dispatchTraverseAction(href, historyState) {
274
227
  // TODO: In the case of navigations to an unknown route, this will still
275
228
  // end up performing a dynamic request. The plan is to do prefetch instead.
276
229
  // There's a separate TODO for this.
277
- const freshnessPolicy = _pprnavigations.FreshnessPolicy.Gesture;
278
- const forkedGestureState = (0, _navigation.navigate)(state, url, currentUrl, state.renderedSearch, state.cache, state.tree, state.nextUrl, freshnessPolicy, scrollBehavior, 'push');
230
+ const freshnessPolicy = _rendertree.FreshnessPolicy.Gesture;
231
+ const forkedGestureState = (0, _approuterstate.navigate)(state, url, currentUrl, state.renderedSearch, state.root, state.tree, state.nextUrl, freshnessPolicy, scrollBehavior, 'push');
279
232
  (0, _useactionqueue.dispatchGestureState)(forkedGestureState);
280
233
  }
281
234
  }
282
- // Tracks the newest HMR refresh generation so that a newer refresh can abort
283
- // the request of the one it supersedes. Development only.
284
- let activeHmrRefreshController = null;
285
235
  const publicAppRouterInstance = {
286
236
  back: ()=>window.history.back(),
287
237
  forward: ()=>window.history.forward(),
288
- prefetch: // Unlike the old implementation, the Segment Cache doesn't store its
289
- // data in the router reducer state; it writes into a global mutable
290
- // cache. So we don't need to dispatch an action.
291
- (href, options)=>{
292
- if ((0, _javascripturl.isJavaScriptURLString)(href)) {
293
- throw Object.defineProperty(new Error('Next.js has blocked a javascript: URL as a security precaution.'), "__NEXT_ERROR_CODE", {
294
- value: "E978",
295
- enumerable: false,
296
- configurable: true
297
- });
298
- }
299
- const actionQueue = getAppRouterActionQueue();
300
- const prefetchKind = options?.kind ?? _routerreducertypes.PrefetchKind.AUTO;
301
- // We don't currently offer a way to issue a runtime prefetch via `router.prefetch()`.
302
- // This will be possible when we update its API to not take a PrefetchKind.
303
- let fetchStrategy;
304
- switch(prefetchKind){
305
- case _routerreducertypes.PrefetchKind.AUTO:
306
- {
307
- // We default to PPR. We'll discover whether or not the route supports it with the initial prefetch.
308
- fetchStrategy = _types.FetchStrategy.PPR;
309
- break;
310
- }
311
- case _routerreducertypes.PrefetchKind.FULL:
312
- {
313
- fetchStrategy = _types.FetchStrategy.Full;
314
- break;
315
- }
316
- default:
317
- {
318
- prefetchKind;
319
- // Despite typescript thinking that this can't happen,
320
- // we might get an unexpected value from user code.
321
- // We don't know what they want, but we know they want a prefetch,
322
- // so use the default.
323
- fetchStrategy = _types.FetchStrategy.PPR;
324
- }
325
- }
326
- (0, _prefetch.prefetch)(href, actionQueue.state.nextUrl, actionQueue.state.tree, fetchStrategy, options?.onInvalidate ?? null);
327
- },
328
- replace: (href, options)=>{
329
- if ((0, _javascripturl.isJavaScriptURLString)(href)) {
330
- throw Object.defineProperty(new Error('Next.js has blocked a javascript: URL as a security precaution.'), "__NEXT_ERROR_CODE", {
331
- value: "E978",
332
- enumerable: false,
333
- configurable: true
334
- });
335
- }
336
- (0, _react.startTransition)(()=>{
337
- dispatchNavigateAction(href, 'replace', options?.scroll === false ? _routerreducertypes.ScrollBehavior.NoScroll : _routerreducertypes.ScrollBehavior.Default, null, options?.transitionTypes, null);
338
- });
339
- },
340
- push: (href, options)=>{
341
- if ((0, _javascripturl.isJavaScriptURLString)(href)) {
342
- throw Object.defineProperty(new Error('Next.js has blocked a javascript: URL as a security precaution.'), "__NEXT_ERROR_CODE", {
343
- value: "E978",
344
- enumerable: false,
345
- configurable: true
346
- });
347
- }
348
- (0, _react.startTransition)(()=>{
349
- dispatchNavigateAction(href, 'push', options?.scroll === false ? _routerreducertypes.ScrollBehavior.NoScroll : _routerreducertypes.ScrollBehavior.Default, null, options?.transitionTypes, null);
350
- });
351
- },
352
- refresh: ()=>{
353
- (0, _react.startTransition)(()=>{
354
- (0, _useactionqueue.dispatchAppRouterAction)({
355
- type: _routerreducertypes.ACTION_REFRESH
356
- });
357
- });
358
- },
359
- hmrRefresh: ()=>{
360
- if (process.env.NODE_ENV !== 'development') {
361
- throw Object.defineProperty(new Error('hmrRefresh can only be used in development mode. Please use refresh instead.'), "__NEXT_ERROR_CODE", {
362
- value: "E485",
363
- enumerable: false,
364
- configurable: true
365
- });
366
- } else {
367
- // Reset the known routes table so that route predictions are cleared
368
- // when routes change during development.
369
- (0, _optimisticroutes.resetKnownRoutes)();
370
- let signal;
371
- if (process.env.__NEXT_SERVER_COMPONENTS_HMR_CANCELLATION) {
372
- // Abort the superseded generation before scheduling the new one, so its
373
- // request is torn down as early as possible. Halting (not rejecting)
374
- // makes the abort safe regardless of order.
375
- activeHmrRefreshController?.abort();
376
- activeHmrRefreshController = new AbortController();
377
- signal = activeHmrRefreshController.signal;
378
- }
379
- (0, _react.startTransition)(()=>{
380
- (0, _useactionqueue.dispatchAppRouterAction)({
381
- type: _routerreducertypes.ACTION_HMR_REFRESH,
382
- signal
383
- });
384
- });
385
- }
386
- },
238
+ prefetch: _prefetch.prefetchRoute,
239
+ replace: _navigator.replace,
240
+ push: _navigator.push,
241
+ refresh: _navigator.refresh,
242
+ hmrRefresh: _navigator.hmrRefresh,
387
243
  // Default value. Each route segment provides its own value at runtime. Refer
388
244
  // to `useRouter()`.
389
245
  bfcacheId: '0'