9remote 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1451) hide show
  1. package/dist/cli.cjs +86 -0
  2. package/dist/server.cjs +252 -0
  3. package/dist/standalone/.env +1 -0
  4. package/dist/standalone/.next/BUILD_ID +1 -0
  5. package/dist/standalone/.next/app-path-routes-manifest.json +9 -0
  6. package/dist/standalone/.next/build-manifest.json +21 -0
  7. package/dist/standalone/.next/package.json +1 -0
  8. package/dist/standalone/.next/prerender-manifest.json +186 -0
  9. package/dist/standalone/.next/required-server-files.json +164 -0
  10. package/dist/standalone/.next/routes-manifest.json +100 -0
  11. package/dist/standalone/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
  12. package/dist/standalone/.next/server/app/_global-error/page/build-manifest.json +18 -0
  13. package/dist/standalone/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
  14. package/dist/standalone/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
  15. package/dist/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
  16. package/dist/standalone/.next/server/app/_global-error/page.js +11 -0
  17. package/dist/standalone/.next/server/app/_global-error/page.js.map +5 -0
  18. package/dist/standalone/.next/server/app/_global-error/page.js.nft.json +1 -0
  19. package/dist/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +2 -0
  20. package/dist/standalone/.next/server/app/_global-error.html +2 -0
  21. package/dist/standalone/.next/server/app/_global-error.meta +15 -0
  22. package/dist/standalone/.next/server/app/_global-error.rsc +13 -0
  23. package/dist/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
  24. package/dist/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +13 -0
  25. package/dist/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +6 -0
  26. package/dist/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +4 -0
  27. package/dist/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  28. package/dist/standalone/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
  29. package/dist/standalone/.next/server/app/_not-found/page/build-manifest.json +18 -0
  30. package/dist/standalone/.next/server/app/_not-found/page/next-font-manifest.json +11 -0
  31. package/dist/standalone/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
  32. package/dist/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
  33. package/dist/standalone/.next/server/app/_not-found/page.js +14 -0
  34. package/dist/standalone/.next/server/app/_not-found/page.js.map +5 -0
  35. package/dist/standalone/.next/server/app/_not-found/page.js.nft.json +1 -0
  36. package/dist/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +2 -0
  37. package/dist/standalone/.next/server/app/_not-found.html +1 -0
  38. package/dist/standalone/.next/server/app/_not-found.meta +16 -0
  39. package/dist/standalone/.next/server/app/_not-found.rsc +14 -0
  40. package/dist/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -0
  41. package/dist/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
  42. package/dist/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +5 -0
  43. package/dist/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
  44. package/dist/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +4 -0
  45. package/dist/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -0
  46. package/dist/standalone/.next/server/app/favicon.ico/route/app-paths-manifest.json +3 -0
  47. package/dist/standalone/.next/server/app/favicon.ico/route/build-manifest.json +11 -0
  48. package/dist/standalone/.next/server/app/favicon.ico/route.js +6 -0
  49. package/dist/standalone/.next/server/app/favicon.ico/route.js.map +5 -0
  50. package/dist/standalone/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  51. package/dist/standalone/.next/server/app/favicon.ico.body +0 -0
  52. package/dist/standalone/.next/server/app/favicon.ico.meta +1 -0
  53. package/dist/standalone/.next/server/app/index.html +2 -0
  54. package/dist/standalone/.next/server/app/index.meta +14 -0
  55. package/dist/standalone/.next/server/app/index.rsc +20 -0
  56. package/dist/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +9 -0
  57. package/dist/standalone/.next/server/app/index.segments/_full.segment.rsc +20 -0
  58. package/dist/standalone/.next/server/app/index.segments/_head.segment.rsc +6 -0
  59. package/dist/standalone/.next/server/app/index.segments/_index.segment.rsc +5 -0
  60. package/dist/standalone/.next/server/app/index.segments/_tree.segment.rsc +4 -0
  61. package/dist/standalone/.next/server/app/login/page/app-paths-manifest.json +3 -0
  62. package/dist/standalone/.next/server/app/login/page/build-manifest.json +18 -0
  63. package/dist/standalone/.next/server/app/login/page/next-font-manifest.json +11 -0
  64. package/dist/standalone/.next/server/app/login/page/react-loadable-manifest.json +1 -0
  65. package/dist/standalone/.next/server/app/login/page/server-reference-manifest.json +4 -0
  66. package/dist/standalone/.next/server/app/login/page.js +16 -0
  67. package/dist/standalone/.next/server/app/login/page.js.map +5 -0
  68. package/dist/standalone/.next/server/app/login/page.js.nft.json +1 -0
  69. package/dist/standalone/.next/server/app/login/page_client-reference-manifest.js +2 -0
  70. package/dist/standalone/.next/server/app/login.html +1 -0
  71. package/dist/standalone/.next/server/app/login.meta +15 -0
  72. package/dist/standalone/.next/server/app/login.rsc +20 -0
  73. package/dist/standalone/.next/server/app/login.segments/_full.segment.rsc +20 -0
  74. package/dist/standalone/.next/server/app/login.segments/_head.segment.rsc +6 -0
  75. package/dist/standalone/.next/server/app/login.segments/_index.segment.rsc +5 -0
  76. package/dist/standalone/.next/server/app/login.segments/_tree.segment.rsc +4 -0
  77. package/dist/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +9 -0
  78. package/dist/standalone/.next/server/app/login.segments/login.segment.rsc +4 -0
  79. package/dist/standalone/.next/server/app/page/app-paths-manifest.json +3 -0
  80. package/dist/standalone/.next/server/app/page/build-manifest.json +18 -0
  81. package/dist/standalone/.next/server/app/page/next-font-manifest.json +11 -0
  82. package/dist/standalone/.next/server/app/page/react-loadable-manifest.json +1 -0
  83. package/dist/standalone/.next/server/app/page/server-reference-manifest.json +4 -0
  84. package/dist/standalone/.next/server/app/page.js +16 -0
  85. package/dist/standalone/.next/server/app/page.js.map +5 -0
  86. package/dist/standalone/.next/server/app/page.js.nft.json +1 -0
  87. package/dist/standalone/.next/server/app/page_client-reference-manifest.js +2 -0
  88. package/dist/standalone/.next/server/app/remote/page/app-paths-manifest.json +3 -0
  89. package/dist/standalone/.next/server/app/remote/page/build-manifest.json +18 -0
  90. package/dist/standalone/.next/server/app/remote/page/next-font-manifest.json +11 -0
  91. package/dist/standalone/.next/server/app/remote/page/react-loadable-manifest.json +1 -0
  92. package/dist/standalone/.next/server/app/remote/page/server-reference-manifest.json +4 -0
  93. package/dist/standalone/.next/server/app/remote/page.js +16 -0
  94. package/dist/standalone/.next/server/app/remote/page.js.map +5 -0
  95. package/dist/standalone/.next/server/app/remote/page.js.nft.json +1 -0
  96. package/dist/standalone/.next/server/app/remote/page_client-reference-manifest.js +2 -0
  97. package/dist/standalone/.next/server/app/remote.html +1 -0
  98. package/dist/standalone/.next/server/app/remote.meta +15 -0
  99. package/dist/standalone/.next/server/app/remote.rsc +20 -0
  100. package/dist/standalone/.next/server/app/remote.segments/_full.segment.rsc +20 -0
  101. package/dist/standalone/.next/server/app/remote.segments/_head.segment.rsc +6 -0
  102. package/dist/standalone/.next/server/app/remote.segments/_index.segment.rsc +5 -0
  103. package/dist/standalone/.next/server/app/remote.segments/_tree.segment.rsc +4 -0
  104. package/dist/standalone/.next/server/app/remote.segments/remote/__PAGE__.segment.rsc +9 -0
  105. package/dist/standalone/.next/server/app/remote.segments/remote.segment.rsc +4 -0
  106. package/dist/standalone/.next/server/app/terminal/page/app-paths-manifest.json +3 -0
  107. package/dist/standalone/.next/server/app/terminal/page/build-manifest.json +18 -0
  108. package/dist/standalone/.next/server/app/terminal/page/next-font-manifest.json +11 -0
  109. package/dist/standalone/.next/server/app/terminal/page/react-loadable-manifest.json +50 -0
  110. package/dist/standalone/.next/server/app/terminal/page/server-reference-manifest.json +4 -0
  111. package/dist/standalone/.next/server/app/terminal/page.js +16 -0
  112. package/dist/standalone/.next/server/app/terminal/page.js.map +5 -0
  113. package/dist/standalone/.next/server/app/terminal/page.js.nft.json +1 -0
  114. package/dist/standalone/.next/server/app/terminal/page_client-reference-manifest.js +2 -0
  115. package/dist/standalone/.next/server/app/terminal.html +1 -0
  116. package/dist/standalone/.next/server/app/terminal.meta +15 -0
  117. package/dist/standalone/.next/server/app/terminal.rsc +20 -0
  118. package/dist/standalone/.next/server/app/terminal.segments/_full.segment.rsc +20 -0
  119. package/dist/standalone/.next/server/app/terminal.segments/_head.segment.rsc +6 -0
  120. package/dist/standalone/.next/server/app/terminal.segments/_index.segment.rsc +5 -0
  121. package/dist/standalone/.next/server/app/terminal.segments/_tree.segment.rsc +4 -0
  122. package/dist/standalone/.next/server/app/terminal.segments/terminal/__PAGE__.segment.rsc +9 -0
  123. package/dist/standalone/.next/server/app/terminal.segments/terminal.segment.rsc +4 -0
  124. package/dist/standalone/.next/server/app-paths-manifest.json +9 -0
  125. package/dist/standalone/.next/server/chunks/[externals]_next_dist_a6d89067._.js +3 -0
  126. package/dist/standalone/.next/server/chunks/[root-of-the-server]__206abf59._.js +21 -0
  127. package/dist/standalone/.next/server/chunks/[turbopack]_runtime.js +795 -0
  128. package/dist/standalone/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_353150a5.js +3 -0
  129. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__088c94c6._.js +3 -0
  130. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__33465c9d._.js +3 -0
  131. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__38ed669f._.js +3 -0
  132. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__580a63f8._.js +3 -0
  133. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__6550089d._.js +10 -0
  134. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__834b2552._.js +3 -0
  135. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__97fe9eac._.js +3 -0
  136. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__a457c799._.js +3 -0
  137. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__b7587aab._.js +3 -0
  138. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__b9356576._.js +4 -0
  139. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__bd295630._.js +3 -0
  140. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__bf281154._.js +3 -0
  141. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__c4510a54._.js +7 -0
  142. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__e4e3c753._.js +3 -0
  143. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__f7dfa2fb._.js +3 -0
  144. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__f8ca6255._.js +3 -0
  145. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__fc4e94a9._.js +3 -0
  146. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__fd2dd54f._.js +3 -0
  147. package/dist/standalone/.next/server/chunks/ssr/[turbopack]_runtime.js +795 -0
  148. package/dist/standalone/.next/server/chunks/ssr/_07720ad9._.js +3 -0
  149. package/dist/standalone/.next/server/chunks/ssr/_66373002._.js +6 -0
  150. package/dist/standalone/.next/server/chunks/ssr/_76e2534b._.js +3 -0
  151. package/dist/standalone/.next/server/chunks/ssr/_8c36d2f2._.js +4 -0
  152. package/dist/standalone/.next/server/chunks/ssr/_9a2bdfca._.js +4 -0
  153. package/dist/standalone/.next/server/chunks/ssr/_d39984f3._.js +4 -0
  154. package/dist/standalone/.next/server/chunks/ssr/_db668bbe._.js +4 -0
  155. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_75761787.js +3 -0
  156. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_554ec2bf.js +3 -0
  157. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app_login_page_actions_0e9aafc0.js +3 -0
  158. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app_page_actions_39d4fc33.js +3 -0
  159. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app_remote_page_actions_432c4fd9.js +3 -0
  160. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app_terminal_page_actions_d3864e5e.js +3 -0
  161. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_12287b3d._.js +4 -0
  162. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_81959fb0._.js +3 -0
  163. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_9774470f._.js +3 -0
  164. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js +3 -0
  165. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js +3 -0
  166. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_15817684.js +3 -0
  167. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_5e974bae.js +4 -0
  168. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js +6 -0
  169. package/dist/standalone/.next/server/chunks/ssr/src_app_5b2047f8._.js +3 -0
  170. package/dist/standalone/.next/server/chunks/ssr/src_app_remote_page_b73607a7.js +3 -0
  171. package/dist/standalone/.next/server/functions-config-manifest.json +4 -0
  172. package/dist/standalone/.next/server/middleware-build-manifest.js +22 -0
  173. package/dist/standalone/.next/server/middleware-manifest.json +6 -0
  174. package/dist/standalone/.next/server/next-font-manifest.js +1 -0
  175. package/dist/standalone/.next/server/next-font-manifest.json +27 -0
  176. package/dist/standalone/.next/server/pages/404.html +1 -0
  177. package/dist/standalone/.next/server/pages/500.html +2 -0
  178. package/dist/standalone/.next/server/pages-manifest.json +4 -0
  179. package/dist/standalone/.next/server/server-reference-manifest.js +1 -0
  180. package/dist/standalone/.next/server/server-reference-manifest.json +5 -0
  181. package/dist/standalone/.next/static/IPqjeXipuNFZG_X5UK15U/_buildManifest.js +11 -0
  182. package/dist/standalone/.next/static/IPqjeXipuNFZG_X5UK15U/_clientMiddlewareManifest.json +1 -0
  183. package/dist/standalone/.next/static/IPqjeXipuNFZG_X5UK15U/_ssgManifest.js +1 -0
  184. package/dist/standalone/.next/static/chunks/236f7e5abd6f09ff.js +4 -0
  185. package/dist/standalone/.next/static/chunks/31da8ada704e8c5a.js +2 -0
  186. package/dist/standalone/.next/static/chunks/38dc5a4ee8924446.js +1 -0
  187. package/dist/standalone/.next/static/chunks/54d5670f5fa2abbe.css +1 -0
  188. package/dist/standalone/.next/static/chunks/6e927426cfb7ff62.js +1 -0
  189. package/dist/standalone/.next/static/chunks/7a813d33bab30d47.js +1 -0
  190. package/dist/standalone/.next/static/chunks/80468ae4928757c6.js +1 -0
  191. package/dist/standalone/.next/static/chunks/9053b2c4bd303667.js +1 -0
  192. package/dist/standalone/.next/static/chunks/983bde94cd1a5eb5.css +1 -0
  193. package/dist/standalone/.next/static/chunks/9b6ba4b26e676f37.js +1 -0
  194. package/dist/standalone/.next/static/chunks/a00216a3a9acfbe7.js +1 -0
  195. package/dist/standalone/.next/static/chunks/a5898828bec6764a.js +20 -0
  196. package/dist/standalone/.next/static/chunks/a6dad97d9634a72d.js +1 -0
  197. package/dist/standalone/.next/static/chunks/a6dad97d9634a72d.js.map +1 -0
  198. package/dist/standalone/.next/static/chunks/a979d185d8d30636.css +3 -0
  199. package/dist/standalone/.next/static/chunks/abd55f190fad1a7b.js +1 -0
  200. package/dist/standalone/.next/static/chunks/b10cda7bb322f42d.js +1 -0
  201. package/dist/standalone/.next/static/chunks/b616af14cb3429a5.js +1 -0
  202. package/dist/standalone/.next/static/chunks/b74cedaee82d4422.js +1 -0
  203. package/dist/standalone/.next/static/chunks/b9da3e2108613d68.js +1 -0
  204. package/dist/standalone/.next/static/chunks/bbfc11f688f3c771.js +1 -0
  205. package/dist/standalone/.next/static/chunks/bcc7033ccd6c8fa9.js +1 -0
  206. package/dist/standalone/.next/static/chunks/c837e90690d51fa2.js +4 -0
  207. package/dist/standalone/.next/static/chunks/c83ada0dc165c069.js +1 -0
  208. package/dist/standalone/.next/static/chunks/d2a6cde8b71287ce.js +1 -0
  209. package/dist/standalone/.next/static/chunks/d59f830a2b8e768c.js +1 -0
  210. package/dist/standalone/.next/static/chunks/daea4e46342da532.js +1 -0
  211. package/dist/standalone/.next/static/chunks/ee14715dfc7e4ab9.js +1 -0
  212. package/dist/standalone/.next/static/chunks/fa93d5d9cfeba174.js +1 -0
  213. package/dist/standalone/.next/static/chunks/ff1a16fafef87110.js +1 -0
  214. package/dist/standalone/.next/static/chunks/turbopack-05d7f903ec930a40.js +4 -0
  215. package/dist/standalone/.next/static/media/4fa387ec64143e14-s.c1fdd6c2.woff2 +0 -0
  216. package/dist/standalone/.next/static/media/7178b3e590c64307-s.b97b3418.woff2 +0 -0
  217. package/dist/standalone/.next/static/media/797e433ab948586e-s.p.dbea232f.woff2 +0 -0
  218. package/dist/standalone/.next/static/media/8a480f0b521d4e75-s.8e0177b5.woff2 +0 -0
  219. package/dist/standalone/.next/static/media/bbc41e54d2fcbd21-s.799d8ef8.woff2 +0 -0
  220. package/dist/standalone/.next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2 +0 -0
  221. package/dist/standalone/.next/static/media/favicon.0b3bf435.ico +0 -0
  222. package/dist/standalone/node_modules/@img/colour/color.cjs +1594 -0
  223. package/dist/standalone/node_modules/@img/colour/index.cjs +1 -0
  224. package/dist/standalone/node_modules/@img/colour/package.json +45 -0
  225. package/dist/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  226. package/dist/standalone/node_modules/@img/sharp-darwin-arm64/package.json +40 -0
  227. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/README.md +46 -0
  228. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +220 -0
  229. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js +1 -0
  230. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib +0 -0
  231. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/package.json +36 -0
  232. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +30 -0
  233. package/dist/standalone/node_modules/@next/env/dist/index.js +1 -0
  234. package/dist/standalone/node_modules/@next/env/package.json +36 -0
  235. package/dist/standalone/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
  236. package/dist/standalone/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
  237. package/dist/standalone/node_modules/@swc/helpers/package.json +471 -0
  238. package/dist/standalone/node_modules/client-only/index.js +0 -0
  239. package/dist/standalone/node_modules/client-only/package.json +19 -0
  240. package/dist/standalone/node_modules/detect-libc/lib/detect-libc.js +313 -0
  241. package/dist/standalone/node_modules/detect-libc/lib/elf.js +39 -0
  242. package/dist/standalone/node_modules/detect-libc/lib/filesystem.js +51 -0
  243. package/dist/standalone/node_modules/detect-libc/lib/process.js +24 -0
  244. package/dist/standalone/node_modules/detect-libc/package.json +44 -0
  245. package/dist/standalone/node_modules/next/dist/build/adapter/build-complete.js +993 -0
  246. package/dist/standalone/node_modules/next/dist/build/after-production-compile.js +95 -0
  247. package/dist/standalone/node_modules/next/dist/build/analysis/extract-const-value.js +205 -0
  248. package/dist/standalone/node_modules/next/dist/build/analysis/get-page-static-info.js +601 -0
  249. package/dist/standalone/node_modules/next/dist/build/analysis/parse-module.js +20 -0
  250. package/dist/standalone/node_modules/next/dist/build/analyze/index.js +242 -0
  251. package/dist/standalone/node_modules/next/dist/build/babel/loader/get-config.js +429 -0
  252. package/dist/standalone/node_modules/next/dist/build/babel/loader/index.js +56 -0
  253. package/dist/standalone/node_modules/next/dist/build/babel/loader/transform.js +103 -0
  254. package/dist/standalone/node_modules/next/dist/build/babel/loader/util.js +20 -0
  255. package/dist/standalone/node_modules/next/dist/build/babel/plugins/commonjs.js +42 -0
  256. package/dist/standalone/node_modules/next/dist/build/babel/plugins/jsx-pragma.js +74 -0
  257. package/dist/standalone/node_modules/next/dist/build/babel/plugins/next-font-unsupported.js +36 -0
  258. package/dist/standalone/node_modules/next/dist/build/babel/plugins/next-page-config.js +104 -0
  259. package/dist/standalone/node_modules/next/dist/build/babel/plugins/next-page-disallow-re-export-all-exports.js +29 -0
  260. package/dist/standalone/node_modules/next/dist/build/babel/plugins/next-ssg-transform.js +345 -0
  261. package/dist/standalone/node_modules/next/dist/build/babel/plugins/optimize-hook-destructuring.js +60 -0
  262. package/dist/standalone/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js +145 -0
  263. package/dist/standalone/node_modules/next/dist/build/babel/preset.js +250 -0
  264. package/dist/standalone/node_modules/next/dist/build/build-context.js +58 -0
  265. package/dist/standalone/node_modules/next/dist/build/collect-build-traces.js +536 -0
  266. package/dist/standalone/node_modules/next/dist/build/compiler.js +88 -0
  267. package/dist/standalone/node_modules/next/dist/build/create-compiler-aliases.js +436 -0
  268. package/dist/standalone/node_modules/next/dist/build/define-env.js +237 -0
  269. package/dist/standalone/node_modules/next/dist/build/duration-to-string.js +99 -0
  270. package/dist/standalone/node_modules/next/dist/build/entries.js +798 -0
  271. package/dist/standalone/node_modules/next/dist/build/generate-build-id.js +31 -0
  272. package/dist/standalone/node_modules/next/dist/build/generate-routes-manifest.js +91 -0
  273. package/dist/standalone/node_modules/next/dist/build/get-babel-config-file.js +35 -0
  274. package/dist/standalone/node_modules/next/dist/build/get-babel-loader-config.js +109 -0
  275. package/dist/standalone/node_modules/next/dist/build/get-static-info-including-layouts.js +81 -0
  276. package/dist/standalone/node_modules/next/dist/build/handle-entrypoints.js +176 -0
  277. package/dist/standalone/node_modules/next/dist/build/handle-externals.js +290 -0
  278. package/dist/standalone/node_modules/next/dist/build/index.js +2677 -0
  279. package/dist/standalone/node_modules/next/dist/build/is-writeable.js +26 -0
  280. package/dist/standalone/node_modules/next/dist/build/jest/__mocks__/empty.js +10 -0
  281. package/dist/standalone/node_modules/next/dist/build/jest/__mocks__/fileMock.js +15 -0
  282. package/dist/standalone/node_modules/next/dist/build/jest/__mocks__/nextFontMock.js +20 -0
  283. package/dist/standalone/node_modules/next/dist/build/jest/__mocks__/styleMock.js +10 -0
  284. package/dist/standalone/node_modules/next/dist/build/jest/jest.js +227 -0
  285. package/dist/standalone/node_modules/next/dist/build/jest/object-proxy.js +50 -0
  286. package/dist/standalone/node_modules/next/dist/build/load-entrypoint.js +30 -0
  287. package/dist/standalone/node_modules/next/dist/build/load-jsconfig.js +162 -0
  288. package/dist/standalone/node_modules/next/dist/build/lockfile.js +160 -0
  289. package/dist/standalone/node_modules/next/dist/build/manifests/formatter/format-manifest.js +19 -0
  290. package/dist/standalone/node_modules/next/dist/build/next-config-ts/require-hook.js +85 -0
  291. package/dist/standalone/node_modules/next/dist/build/next-config-ts/transpile-config.js +172 -0
  292. package/dist/standalone/node_modules/next/dist/build/next-dir-paths.js +37 -0
  293. package/dist/standalone/node_modules/next/dist/build/normalize-catchall-routes.js +76 -0
  294. package/dist/standalone/node_modules/next/dist/build/output/format.js +84 -0
  295. package/dist/standalone/node_modules/next/dist/build/output/index.js +186 -0
  296. package/dist/standalone/node_modules/next/dist/build/output/log.js +135 -0
  297. package/dist/standalone/node_modules/next/dist/build/output/store.js +204 -0
  298. package/dist/standalone/node_modules/next/dist/build/page-extensions-type.js +6 -0
  299. package/dist/standalone/node_modules/next/dist/build/polyfills/fetch/index.js +6 -0
  300. package/dist/standalone/node_modules/next/dist/build/polyfills/fetch/whatwg-fetch.js +7 -0
  301. package/dist/standalone/node_modules/next/dist/build/polyfills/object-assign.js +6 -0
  302. package/dist/standalone/node_modules/next/dist/build/polyfills/object.assign/auto.js +4 -0
  303. package/dist/standalone/node_modules/next/dist/build/polyfills/object.assign/implementation.js +4 -0
  304. package/dist/standalone/node_modules/next/dist/build/polyfills/object.assign/index.js +19 -0
  305. package/dist/standalone/node_modules/next/dist/build/polyfills/object.assign/polyfill.js +6 -0
  306. package/dist/standalone/node_modules/next/dist/build/polyfills/object.assign/shim.js +6 -0
  307. package/dist/standalone/node_modules/next/dist/build/polyfills/polyfill-module.js +1 -0
  308. package/dist/standalone/node_modules/next/dist/build/polyfills/polyfill-nomodule.js +1 -0
  309. package/dist/standalone/node_modules/next/dist/build/polyfills/process.js +5 -0
  310. package/dist/standalone/node_modules/next/dist/build/preview-key-utils.js +91 -0
  311. package/dist/standalone/node_modules/next/dist/build/progress.js +151 -0
  312. package/dist/standalone/node_modules/next/dist/build/rendering-mode.js +26 -0
  313. package/dist/standalone/node_modules/next/dist/build/segment-config/app/app-segment-config.js +145 -0
  314. package/dist/standalone/node_modules/next/dist/build/segment-config/app/app-segments.js +137 -0
  315. package/dist/standalone/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +52 -0
  316. package/dist/standalone/node_modules/next/dist/build/segment-config/middleware/middleware-config.js +121 -0
  317. package/dist/standalone/node_modules/next/dist/build/segment-config/pages/pages-segment-config.js +62 -0
  318. package/dist/standalone/node_modules/next/dist/build/sort-by-page-exts.js +30 -0
  319. package/dist/standalone/node_modules/next/dist/build/spinner.js +138 -0
  320. package/dist/standalone/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +137 -0
  321. package/dist/standalone/node_modules/next/dist/build/static-paths/app.js +682 -0
  322. package/dist/standalone/node_modules/next/dist/build/static-paths/pages.js +169 -0
  323. package/dist/standalone/node_modules/next/dist/build/static-paths/types.js +6 -0
  324. package/dist/standalone/node_modules/next/dist/build/static-paths/utils.js +119 -0
  325. package/dist/standalone/node_modules/next/dist/build/swc/helpers.js +15 -0
  326. package/dist/standalone/node_modules/next/dist/build/swc/index.js +1271 -0
  327. package/dist/standalone/node_modules/next/dist/build/swc/install-bindings.js +30 -0
  328. package/dist/standalone/node_modules/next/dist/build/swc/jest-transformer.js +75 -0
  329. package/dist/standalone/node_modules/next/dist/build/swc/options.js +386 -0
  330. package/dist/standalone/node_modules/next/dist/build/swc/types.js +6 -0
  331. package/dist/standalone/node_modules/next/dist/build/templates/app-page.js +1071 -0
  332. package/dist/standalone/node_modules/next/dist/build/templates/app-route.js +420 -0
  333. package/dist/standalone/node_modules/next/dist/build/templates/edge-app-route.js +85 -0
  334. package/dist/standalone/node_modules/next/dist/build/templates/edge-ssr-app.js +309 -0
  335. package/dist/standalone/node_modules/next/dist/build/templates/edge-ssr.js +335 -0
  336. package/dist/standalone/node_modules/next/dist/build/templates/edge-wrapper.js +24 -0
  337. package/dist/standalone/node_modules/next/dist/build/templates/helpers.js +36 -0
  338. package/dist/standalone/node_modules/next/dist/build/templates/middleware.js +115 -0
  339. package/dist/standalone/node_modules/next/dist/build/templates/pages-api.js +194 -0
  340. package/dist/standalone/node_modules/next/dist/build/templates/pages-edge-api.js +39 -0
  341. package/dist/standalone/node_modules/next/dist/build/templates/pages.js +155 -0
  342. package/dist/standalone/node_modules/next/dist/build/turbopack-analyze/index.js +116 -0
  343. package/dist/standalone/node_modules/next/dist/build/turbopack-build/impl.js +244 -0
  344. package/dist/standalone/node_modules/next/dist/build/turbopack-build/index.js +85 -0
  345. package/dist/standalone/node_modules/next/dist/build/turborepo-access-trace/env.js +29 -0
  346. package/dist/standalone/node_modules/next/dist/build/turborepo-access-trace/helpers.js +104 -0
  347. package/dist/standalone/node_modules/next/dist/build/turborepo-access-trace/index.js +30 -0
  348. package/dist/standalone/node_modules/next/dist/build/turborepo-access-trace/result.js +51 -0
  349. package/dist/standalone/node_modules/next/dist/build/turborepo-access-trace/tcp.js +41 -0
  350. package/dist/standalone/node_modules/next/dist/build/turborepo-access-trace/types.js +8 -0
  351. package/dist/standalone/node_modules/next/dist/build/type-check.js +151 -0
  352. package/dist/standalone/node_modules/next/dist/build/utils.js +1261 -0
  353. package/dist/standalone/node_modules/next/dist/build/validate-app-paths.js +242 -0
  354. package/dist/standalone/node_modules/next/dist/build/webpack/alias/react-dom-server-experimental.js +32 -0
  355. package/dist/standalone/node_modules/next/dist/build/webpack/alias/react-dom-server.js +32 -0
  356. package/dist/standalone/node_modules/next/dist/build/webpack/cache-invalidation.js +91 -0
  357. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/base.js +82 -0
  358. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/index.js +562 -0
  359. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/client.js +49 -0
  360. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/file-resolve.js +21 -0
  361. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/getCssModuleLocalIdent.js +37 -0
  362. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/global.js +65 -0
  363. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/index.js +22 -0
  364. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/modules.js +86 -0
  365. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/next-font.js +62 -0
  366. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/messages.js +45 -0
  367. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +190 -0
  368. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/images/index.js +42 -0
  369. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/images/messages.js +16 -0
  370. package/dist/standalone/node_modules/next/dist/build/webpack/config/helpers.js +78 -0
  371. package/dist/standalone/node_modules/next/dist/build/webpack/config/index.js +46 -0
  372. package/dist/standalone/node_modules/next/dist/build/webpack/config/utils.js +13 -0
  373. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/CssSyntaxError.js +32 -0
  374. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/camelcase.js +93 -0
  375. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +287 -0
  376. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/index.js +36 -0
  377. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-icss-parser.js +105 -0
  378. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-import-parser.js +220 -0
  379. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-url-parser.js +307 -0
  380. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/api.js +83 -0
  381. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/getUrl.js +23 -0
  382. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/utils.js +459 -0
  383. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/devtool/devtool-style-inject.js +129 -0
  384. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/empty-loader.js +14 -0
  385. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/error-loader.js +36 -0
  386. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/get-module-build-info.js +15 -0
  387. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/codegen.js +156 -0
  388. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/index.js +27 -0
  389. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/interface.js +17 -0
  390. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +429 -0
  391. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/minify.js +94 -0
  392. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/utils.js +58 -0
  393. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/metadata/discover.js +122 -0
  394. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/metadata/resolve-route-data.js +171 -0
  395. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/metadata/types.js +7 -0
  396. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/modularize-import-loader.js +39 -0
  397. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-app-loader/create-app-route-code.js +65 -0
  398. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js +765 -0
  399. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-barrel-loader.js +268 -0
  400. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js +37 -0
  401. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js +51 -0
  402. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-function-loader.js +52 -0
  403. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js +93 -0
  404. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-error-browser-binary-loader.js +21 -0
  405. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-action-entry-loader.js +32 -0
  406. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-client-entry-loader.js +45 -0
  407. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-client-module-loader.js +49 -0
  408. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-css-loader.js +56 -0
  409. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/action-client-wrapper.js +33 -0
  410. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/action-validate.js +27 -0
  411. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/cache-wrapper.js +13 -0
  412. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js +211 -0
  413. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/module-proxy.js +14 -0
  414. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/server-reference.js +13 -0
  415. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/track-dynamic-import.js +13 -0
  416. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-server-reference-proxy-loader.js +29 -0
  417. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js +133 -0
  418. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-font-loader/postcss-next-font.js +169 -0
  419. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-image-loader/blur.js +73 -0
  420. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-image-loader/index.js +80 -0
  421. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-invalid-import-error-loader.js +28 -0
  422. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-metadata-image-loader.js +158 -0
  423. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-metadata-route-loader.js +342 -0
  424. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-asset-loader.js +46 -0
  425. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js +59 -0
  426. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-wasm-loader.js +46 -0
  427. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-root-params-loader.js +164 -0
  428. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js +141 -0
  429. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-style-loader/index.js +220 -0
  430. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/injectStylesIntoLinkTag.js +61 -0
  431. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/injectStylesIntoStyleTag.js +221 -0
  432. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/isEqualLocals.js +27 -0
  433. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js +241 -0
  434. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Error.js +40 -0
  435. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Warning.js +35 -0
  436. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js +125 -0
  437. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/utils.js +86 -0
  438. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js +101 -0
  439. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/file-protocol.js +78 -0
  440. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/join-function.js +190 -0
  441. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/postcss.js +92 -0
  442. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/value-processor.js +97 -0
  443. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/utils.js +100 -0
  444. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin-utils.js +79 -0
  445. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +183 -0
  446. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/copy-file-plugin.js +67 -0
  447. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/css-chunking-plugin.js +277 -0
  448. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/css-minimizer-plugin.js +92 -0
  449. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/devtools-ignore-list-plugin.js +78 -0
  450. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/eval-source-map-dev-tool-plugin.js +191 -0
  451. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.js +793 -0
  452. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +420 -0
  453. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/force-complete-runtime.js +42 -0
  454. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/jsconfig-paths-plugin.js +219 -0
  455. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/memory-with-gc-cache-plugin.js +114 -0
  456. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +614 -0
  457. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/mini-css-extract-plugin.js +24 -0
  458. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/minify-webpack-plugin/src/index.js +188 -0
  459. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/next-font-manifest-plugin.js +120 -0
  460. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/next-trace-entrypoints-plugin.js +542 -0
  461. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +428 -0
  462. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/next-types-plugin/shared.js +14 -0
  463. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js +57 -0
  464. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/optional-peer-dependency-resolve-plugin.js +45 -0
  465. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/pages-manifest-plugin.js +146 -0
  466. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/profiling-plugin.js +282 -0
  467. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js +169 -0
  468. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/rspack-flight-client-entry-plugin.js +97 -0
  469. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/rspack-profiling-plugin.js +62 -0
  470. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/slow-module-detection-plugin.js +190 -0
  471. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/subresource-integrity-plugin.js +62 -0
  472. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/telemetry-plugin.js +188 -0
  473. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/update-telemetry-loader-context-from-swc.js +28 -0
  474. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/use-cache-tracker-utils.js +43 -0
  475. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/getModuleTrace.js +89 -0
  476. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/index.js +43 -0
  477. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parse-dynamic-code-evaluation-error.js +19 -0
  478. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseBabel.js +29 -0
  479. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseCss.js +29 -0
  480. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextAppLoaderError.js +26 -0
  481. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextFontError.js +33 -0
  482. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextInvalidImportError.js +26 -0
  483. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js +166 -0
  484. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js +42 -0
  485. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/simpleWebpackError.js +18 -0
  486. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/webpackModuleError.js +138 -0
  487. package/dist/standalone/node_modules/next/dist/build/webpack/stringify-request.js +15 -0
  488. package/dist/standalone/node_modules/next/dist/build/webpack/utils.js +109 -0
  489. package/dist/standalone/node_modules/next/dist/build/webpack-build/impl.js +381 -0
  490. package/dist/standalone/node_modules/next/dist/build/webpack-build/index.js +179 -0
  491. package/dist/standalone/node_modules/next/dist/build/webpack-config-rules/resolve.js +55 -0
  492. package/dist/standalone/node_modules/next/dist/build/webpack-config.js +2343 -0
  493. package/dist/standalone/node_modules/next/dist/build/worker.js +35 -0
  494. package/dist/standalone/node_modules/next/dist/build/write-build-id.js +19 -0
  495. package/dist/standalone/node_modules/next/dist/cli/next-test.js +169 -0
  496. package/dist/standalone/node_modules/next/dist/client/add-base-path.js +24 -0
  497. package/dist/standalone/node_modules/next/dist/client/app-build-id.js +49 -0
  498. package/dist/standalone/node_modules/next/dist/client/app-call-server.js +34 -0
  499. package/dist/standalone/node_modules/next/dist/client/app-find-source-map-url.js +38 -0
  500. package/dist/standalone/node_modules/next/dist/client/assign-location.js +29 -0
  501. package/dist/standalone/node_modules/next/dist/client/components/app-router-announcer.js +78 -0
  502. package/dist/standalone/node_modules/next/dist/client/components/app-router-headers.js +128 -0
  503. package/dist/standalone/node_modules/next/dist/client/components/app-router-instance.js +319 -0
  504. package/dist/standalone/node_modules/next/dist/client/components/app-router-utils.js +62 -0
  505. package/dist/standalone/node_modules/next/dist/client/components/app-router.js +495 -0
  506. package/dist/standalone/node_modules/next/dist/client/components/builtin/default.js +35 -0
  507. package/dist/standalone/node_modules/next/dist/client/components/builtin/global-error.js +82 -0
  508. package/dist/standalone/node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js +52 -0
  509. package/dist/standalone/node_modules/next/dist/client/components/error-boundary.js +134 -0
  510. package/dist/standalone/node_modules/next/dist/client/components/errors/graceful-degrade-boundary.js +86 -0
  511. package/dist/standalone/node_modules/next/dist/client/components/errors/root-error-boundary.js +41 -0
  512. package/dist/standalone/node_modules/next/dist/client/components/forbidden.js +48 -0
  513. package/dist/standalone/node_modules/next/dist/client/components/handle-isr-error.js +31 -0
  514. package/dist/standalone/node_modules/next/dist/client/components/hooks-server-context.js +42 -0
  515. package/dist/standalone/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js +125 -0
  516. package/dist/standalone/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +72 -0
  517. package/dist/standalone/node_modules/next/dist/client/components/is-next-router-error.js +23 -0
  518. package/dist/standalone/node_modules/next/dist/client/components/links.js +292 -0
  519. package/dist/standalone/node_modules/next/dist/client/components/match-segments.js +32 -0
  520. package/dist/standalone/node_modules/next/dist/client/components/nav-failure-handler.js +61 -0
  521. package/dist/standalone/node_modules/next/dist/client/components/navigation-devtools.js +126 -0
  522. package/dist/standalone/node_modules/next/dist/client/components/navigation-untracked.js +65 -0
  523. package/dist/standalone/node_modules/next/dist/client/components/navigation.js +198 -0
  524. package/dist/standalone/node_modules/next/dist/client/components/navigation.react-server.js +72 -0
  525. package/dist/standalone/node_modules/next/dist/client/components/not-found.js +42 -0
  526. package/dist/standalone/node_modules/next/dist/client/components/readonly-url-search-params.js +41 -0
  527. package/dist/standalone/node_modules/next/dist/client/components/redirect-boundary.js +107 -0
  528. package/dist/standalone/node_modules/next/dist/client/components/redirect-error.js +52 -0
  529. package/dist/standalone/node_modules/next/dist/client/components/redirect-status-code.js +24 -0
  530. package/dist/standalone/node_modules/next/dist/client/components/redirect.js +91 -0
  531. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +128 -0
  532. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/create-href-from-url.js +21 -0
  533. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +59 -0
  534. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js +32 -0
  535. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +340 -0
  536. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/handle-mutable.js +66 -0
  537. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +51 -0
  538. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +1129 -0
  539. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +64 -0
  540. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js +38 -0
  541. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +23 -0
  542. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +168 -0
  543. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +68 -0
  544. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +78 -0
  545. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +292 -0
  546. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +56 -0
  547. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +61 -0
  548. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer.js +66 -0
  549. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/set-cache-busting-search-param.js +60 -0
  550. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/cache-key.js +28 -0
  551. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/cache-map.js +305 -0
  552. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/cache.js +1432 -0
  553. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/lru.js +143 -0
  554. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/navigation.js +459 -0
  555. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/prefetch.js +31 -0
  556. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/scheduler.js +1150 -0
  557. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/types.js +69 -0
  558. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/vary-path.js +216 -0
  559. package/dist/standalone/node_modules/next/dist/client/components/static-generation-bailout.js +42 -0
  560. package/dist/standalone/node_modules/next/dist/client/components/unauthorized.js +49 -0
  561. package/dist/standalone/node_modules/next/dist/client/components/unrecognized-action-error.js +39 -0
  562. package/dist/standalone/node_modules/next/dist/client/components/unresolved-thenable.js +23 -0
  563. package/dist/standalone/node_modules/next/dist/client/components/unstable-rethrow.browser.js +28 -0
  564. package/dist/standalone/node_modules/next/dist/client/components/unstable-rethrow.js +25 -0
  565. package/dist/standalone/node_modules/next/dist/client/components/unstable-rethrow.server.js +32 -0
  566. package/dist/standalone/node_modules/next/dist/client/components/use-action-queue.js +102 -0
  567. package/dist/standalone/node_modules/next/dist/client/dev/debug-channel.js +72 -0
  568. package/dist/standalone/node_modules/next/dist/client/flight-data-helpers.js +219 -0
  569. package/dist/standalone/node_modules/next/dist/client/has-base-path.js +23 -0
  570. package/dist/standalone/node_modules/next/dist/client/lib/console.js +177 -0
  571. package/dist/standalone/node_modules/next/dist/client/normalize-trailing-slash.js +36 -0
  572. package/dist/standalone/node_modules/next/dist/client/remove-base-path.js +32 -0
  573. package/dist/standalone/node_modules/next/dist/client/route-params.js +230 -0
  574. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +339 -0
  575. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/cookies/package.json +1 -0
  576. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/ponyfill/index.js +46 -0
  577. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/ponyfill/package.json +1 -0
  578. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/abort-controller.js.text.js +1 -0
  579. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/console.js.text.js +1 -0
  580. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/events.js.text.js +1 -0
  581. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/index.js +5 -0
  582. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/load.js +18713 -0
  583. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/package.json +1 -0
  584. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/stream.js +44 -0
  585. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/timers.js.text.js +1 -0
  586. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/url.js.text.js +1 -0
  587. package/dist/standalone/node_modules/next/dist/compiled/@hapi/accept/index.js +1 -0
  588. package/dist/standalone/node_modules/next/dist/compiled/@hapi/accept/package.json +1 -0
  589. package/dist/standalone/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js +1 -0
  590. package/dist/standalone/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/package.json +1 -0
  591. package/dist/standalone/node_modules/next/dist/compiled/@napi-rs/triples/index.js +1 -0
  592. package/dist/standalone/node_modules/next/dist/compiled/@napi-rs/triples/package.json +1 -0
  593. package/dist/standalone/node_modules/next/dist/compiled/@opentelemetry/api/index.js +1 -0
  594. package/dist/standalone/node_modules/next/dist/compiled/@opentelemetry/api/package.json +1 -0
  595. package/dist/standalone/node_modules/next/dist/compiled/async-retry/index.js +1 -0
  596. package/dist/standalone/node_modules/next/dist/compiled/async-retry/package.json +1 -0
  597. package/dist/standalone/node_modules/next/dist/compiled/async-sema/index.js +1 -0
  598. package/dist/standalone/node_modules/next/dist/compiled/async-sema/package.json +1 -0
  599. package/dist/standalone/node_modules/next/dist/compiled/babel/code-frame.js +1 -0
  600. package/dist/standalone/node_modules/next/dist/compiled/babel/package.json +1 -0
  601. package/dist/standalone/node_modules/next/dist/compiled/babel-code-frame/index.js +1 -0
  602. package/dist/standalone/node_modules/next/dist/compiled/babel-code-frame/package.json +1 -0
  603. package/dist/standalone/node_modules/next/dist/compiled/busboy/index.js +1 -0
  604. package/dist/standalone/node_modules/next/dist/compiled/busboy/package.json +1 -0
  605. package/dist/standalone/node_modules/next/dist/compiled/bytes/index.js +8 -0
  606. package/dist/standalone/node_modules/next/dist/compiled/bytes/package.json +1 -0
  607. package/dist/standalone/node_modules/next/dist/compiled/ci-info/index.js +1 -0
  608. package/dist/standalone/node_modules/next/dist/compiled/ci-info/package.json +1 -0
  609. package/dist/standalone/node_modules/next/dist/compiled/commander/index.js +1 -0
  610. package/dist/standalone/node_modules/next/dist/compiled/commander/package.json +1 -0
  611. package/dist/standalone/node_modules/next/dist/compiled/comment-json/index.js +7 -0
  612. package/dist/standalone/node_modules/next/dist/compiled/comment-json/package.json +1 -0
  613. package/dist/standalone/node_modules/next/dist/compiled/compression/index.js +58 -0
  614. package/dist/standalone/node_modules/next/dist/compiled/compression/package.json +1 -0
  615. package/dist/standalone/node_modules/next/dist/compiled/conf/index.js +15 -0
  616. package/dist/standalone/node_modules/next/dist/compiled/conf/package.json +1 -0
  617. package/dist/standalone/node_modules/next/dist/compiled/content-disposition/index.js +6 -0
  618. package/dist/standalone/node_modules/next/dist/compiled/content-disposition/package.json +1 -0
  619. package/dist/standalone/node_modules/next/dist/compiled/cookie/index.js +7 -0
  620. package/dist/standalone/node_modules/next/dist/compiled/cookie/package.json +1 -0
  621. package/dist/standalone/node_modules/next/dist/compiled/cross-spawn/index.js +1 -0
  622. package/dist/standalone/node_modules/next/dist/compiled/cross-spawn/package.json +1 -0
  623. package/dist/standalone/node_modules/next/dist/compiled/debug/index.js +1 -0
  624. package/dist/standalone/node_modules/next/dist/compiled/debug/package.json +1 -0
  625. package/dist/standalone/node_modules/next/dist/compiled/edge-runtime/index.js +1 -0
  626. package/dist/standalone/node_modules/next/dist/compiled/edge-runtime/package.json +1 -0
  627. package/dist/standalone/node_modules/next/dist/compiled/find-up/index.js +1 -0
  628. package/dist/standalone/node_modules/next/dist/compiled/find-up/package.json +1 -0
  629. package/dist/standalone/node_modules/next/dist/compiled/fresh/index.js +8 -0
  630. package/dist/standalone/node_modules/next/dist/compiled/fresh/package.json +1 -0
  631. package/dist/standalone/node_modules/next/dist/compiled/http-proxy/index.js +34 -0
  632. package/dist/standalone/node_modules/next/dist/compiled/http-proxy/package.json +1 -0
  633. package/dist/standalone/node_modules/next/dist/compiled/image-detector/detector.js +1 -0
  634. package/dist/standalone/node_modules/next/dist/compiled/image-size/index.js +1 -0
  635. package/dist/standalone/node_modules/next/dist/compiled/image-size/package.json +1 -0
  636. package/dist/standalone/node_modules/next/dist/compiled/ipaddr.js/ipaddr.js +1 -0
  637. package/dist/standalone/node_modules/next/dist/compiled/ipaddr.js/package.json +1 -0
  638. package/dist/standalone/node_modules/next/dist/compiled/is-animated/index.js +1 -0
  639. package/dist/standalone/node_modules/next/dist/compiled/is-animated/package.json +1 -0
  640. package/dist/standalone/node_modules/next/dist/compiled/is-docker/index.js +1 -0
  641. package/dist/standalone/node_modules/next/dist/compiled/is-docker/package.json +1 -0
  642. package/dist/standalone/node_modules/next/dist/compiled/is-wsl/index.js +1 -0
  643. package/dist/standalone/node_modules/next/dist/compiled/is-wsl/package.json +1 -0
  644. package/dist/standalone/node_modules/next/dist/compiled/jsonwebtoken/index.js +11 -0
  645. package/dist/standalone/node_modules/next/dist/compiled/jsonwebtoken/package.json +1 -0
  646. package/dist/standalone/node_modules/next/dist/compiled/nanoid/index.cjs +1 -0
  647. package/dist/standalone/node_modules/next/dist/compiled/nanoid/package.json +1 -0
  648. package/dist/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +24 -0
  649. package/dist/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +24 -0
  650. package/dist/standalone/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +6 -0
  651. package/dist/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +20 -0
  652. package/dist/standalone/node_modules/next/dist/compiled/p-limit/index.js +1 -0
  653. package/dist/standalone/node_modules/next/dist/compiled/p-limit/package.json +1 -0
  654. package/dist/standalone/node_modules/next/dist/compiled/p-queue/index.js +1 -0
  655. package/dist/standalone/node_modules/next/dist/compiled/p-queue/package.json +1 -0
  656. package/dist/standalone/node_modules/next/dist/compiled/path-browserify/index.js +1 -0
  657. package/dist/standalone/node_modules/next/dist/compiled/path-browserify/package.json +1 -0
  658. package/dist/standalone/node_modules/next/dist/compiled/path-to-regexp/index.js +1 -0
  659. package/dist/standalone/node_modules/next/dist/compiled/path-to-regexp/package.json +1 -0
  660. package/dist/standalone/node_modules/next/dist/compiled/picomatch/index.js +1 -0
  661. package/dist/standalone/node_modules/next/dist/compiled/picomatch/package.json +1 -0
  662. package/dist/standalone/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +133 -0
  663. package/dist/standalone/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +130 -0
  664. package/dist/standalone/node_modules/next/dist/compiled/react-is/index.js +7 -0
  665. package/dist/standalone/node_modules/next/dist/compiled/react-is/package.json +26 -0
  666. package/dist/standalone/node_modules/next/dist/compiled/regenerator-runtime/package.json +19 -0
  667. package/dist/standalone/node_modules/next/dist/compiled/regenerator-runtime/runtime.js +729 -0
  668. package/dist/standalone/node_modules/next/dist/compiled/semver/index.js +1 -0
  669. package/dist/standalone/node_modules/next/dist/compiled/semver/package.json +1 -0
  670. package/dist/standalone/node_modules/next/dist/compiled/send/index.js +70 -0
  671. package/dist/standalone/node_modules/next/dist/compiled/send/package.json +1 -0
  672. package/dist/standalone/node_modules/next/dist/compiled/source-map/package.json +1 -0
  673. package/dist/standalone/node_modules/next/dist/compiled/source-map/source-map.js +1 -0
  674. package/dist/standalone/node_modules/next/dist/compiled/stacktrace-parser/package.json +1 -0
  675. package/dist/standalone/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js +1 -0
  676. package/dist/standalone/node_modules/next/dist/compiled/string-hash/index.js +1 -0
  677. package/dist/standalone/node_modules/next/dist/compiled/string-hash/package.json +1 -0
  678. package/dist/standalone/node_modules/next/dist/compiled/strip-ansi/index.js +1 -0
  679. package/dist/standalone/node_modules/next/dist/compiled/strip-ansi/package.json +1 -0
  680. package/dist/standalone/node_modules/next/dist/compiled/superstruct/index.cjs +1 -0
  681. package/dist/standalone/node_modules/next/dist/compiled/superstruct/package.json +1 -0
  682. package/dist/standalone/node_modules/next/dist/compiled/tar/index.js +1 -0
  683. package/dist/standalone/node_modules/next/dist/compiled/tar/package.json +1 -0
  684. package/dist/standalone/node_modules/next/dist/compiled/text-table/index.js +1 -0
  685. package/dist/standalone/node_modules/next/dist/compiled/text-table/package.json +1 -0
  686. package/dist/standalone/node_modules/next/dist/compiled/watchpack/package.json +1 -0
  687. package/dist/standalone/node_modules/next/dist/compiled/watchpack/watchpack.js +1 -0
  688. package/dist/standalone/node_modules/next/dist/compiled/ws/index.js +1 -0
  689. package/dist/standalone/node_modules/next/dist/compiled/ws/package.json +1 -0
  690. package/dist/standalone/node_modules/next/dist/compiled/zod/index.cjs +1 -0
  691. package/dist/standalone/node_modules/next/dist/compiled/zod/package.json +1 -0
  692. package/dist/standalone/node_modules/next/dist/compiled/zod-validation-error/index.js +1 -0
  693. package/dist/standalone/node_modules/next/dist/compiled/zod-validation-error/package.json +1 -0
  694. package/dist/standalone/node_modules/next/dist/experimental/testmode/context.js +57 -0
  695. package/dist/standalone/node_modules/next/dist/experimental/testmode/fetch.js +142 -0
  696. package/dist/standalone/node_modules/next/dist/experimental/testmode/httpget.js +26 -0
  697. package/dist/standalone/node_modules/next/dist/experimental/testmode/server-edge.js +32 -0
  698. package/dist/standalone/node_modules/next/dist/experimental/testmode/server.js +62 -0
  699. package/dist/standalone/node_modules/next/dist/export/helpers/create-incremental-cache.js +61 -0
  700. package/dist/standalone/node_modules/next/dist/lib/batcher.js +65 -0
  701. package/dist/standalone/node_modules/next/dist/lib/build-custom-route.js +46 -0
  702. package/dist/standalone/node_modules/next/dist/lib/bundler.js +97 -0
  703. package/dist/standalone/node_modules/next/dist/lib/client-and-server-references.js +54 -0
  704. package/dist/standalone/node_modules/next/dist/lib/coalesced-function.js +39 -0
  705. package/dist/standalone/node_modules/next/dist/lib/compile-error.js +14 -0
  706. package/dist/standalone/node_modules/next/dist/lib/constants.js +405 -0
  707. package/dist/standalone/node_modules/next/dist/lib/create-client-router-filter.js +67 -0
  708. package/dist/standalone/node_modules/next/dist/lib/default-transpiled-packages.json +1 -0
  709. package/dist/standalone/node_modules/next/dist/lib/detached-promise.js +32 -0
  710. package/dist/standalone/node_modules/next/dist/lib/detect-typo.js +51 -0
  711. package/dist/standalone/node_modules/next/dist/lib/download-swc.js +183 -0
  712. package/dist/standalone/node_modules/next/dist/lib/error-telemetry-utils.js +42 -0
  713. package/dist/standalone/node_modules/next/dist/lib/fallback.js +100 -0
  714. package/dist/standalone/node_modules/next/dist/lib/fatal-error.js +14 -0
  715. package/dist/standalone/node_modules/next/dist/lib/file-exists.js +53 -0
  716. package/dist/standalone/node_modules/next/dist/lib/find-config.js +102 -0
  717. package/dist/standalone/node_modules/next/dist/lib/find-pages-dir.js +65 -0
  718. package/dist/standalone/node_modules/next/dist/lib/find-root.js +122 -0
  719. package/dist/standalone/node_modules/next/dist/lib/format-cli-help-output.js +84 -0
  720. package/dist/standalone/node_modules/next/dist/lib/format-dynamic-import-path.js +24 -0
  721. package/dist/standalone/node_modules/next/dist/lib/format-server-error.js +74 -0
  722. package/dist/standalone/node_modules/next/dist/lib/framework/boundary-components.js +62 -0
  723. package/dist/standalone/node_modules/next/dist/lib/framework/boundary-constants.js +36 -0
  724. package/dist/standalone/node_modules/next/dist/lib/fs/rename.js +87 -0
  725. package/dist/standalone/node_modules/next/dist/lib/fs/write-atomic.js +28 -0
  726. package/dist/standalone/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +69 -0
  727. package/dist/standalone/node_modules/next/dist/lib/get-files-in-dir.js +33 -0
  728. package/dist/standalone/node_modules/next/dist/lib/get-network-host.js +44 -0
  729. package/dist/standalone/node_modules/next/dist/lib/get-package-version.js +118 -0
  730. package/dist/standalone/node_modules/next/dist/lib/get-project-dir.js +51 -0
  731. package/dist/standalone/node_modules/next/dist/lib/has-necessary-dependencies.js +49 -0
  732. package/dist/standalone/node_modules/next/dist/lib/helpers/get-cache-directory.js +66 -0
  733. package/dist/standalone/node_modules/next/dist/lib/helpers/get-npx-command.js +29 -0
  734. package/dist/standalone/node_modules/next/dist/lib/helpers/get-online.js +50 -0
  735. package/dist/standalone/node_modules/next/dist/lib/helpers/get-pkg-manager.js +63 -0
  736. package/dist/standalone/node_modules/next/dist/lib/helpers/get-registry.js +45 -0
  737. package/dist/standalone/node_modules/next/dist/lib/helpers/get-reserved-port.js +116 -0
  738. package/dist/standalone/node_modules/next/dist/lib/helpers/install.js +83 -0
  739. package/dist/standalone/node_modules/next/dist/lib/import-next-warning.js +50 -0
  740. package/dist/standalone/node_modules/next/dist/lib/inline-static-env.js +112 -0
  741. package/dist/standalone/node_modules/next/dist/lib/install-dependencies.js +40 -0
  742. package/dist/standalone/node_modules/next/dist/lib/interop-default.js +15 -0
  743. package/dist/standalone/node_modules/next/dist/lib/is-api-route.js +15 -0
  744. package/dist/standalone/node_modules/next/dist/lib/is-app-page-route.js +15 -0
  745. package/dist/standalone/node_modules/next/dist/lib/is-app-route-route.js +15 -0
  746. package/dist/standalone/node_modules/next/dist/lib/is-edge-runtime.js +16 -0
  747. package/dist/standalone/node_modules/next/dist/lib/is-error.js +78 -0
  748. package/dist/standalone/node_modules/next/dist/lib/is-internal-component.js +36 -0
  749. package/dist/standalone/node_modules/next/dist/lib/is-serializable-props.js +106 -0
  750. package/dist/standalone/node_modules/next/dist/lib/known-edge-safe-packages.json +1 -0
  751. package/dist/standalone/node_modules/next/dist/lib/load-custom-routes.js +550 -0
  752. package/dist/standalone/node_modules/next/dist/lib/memory/gc-observer.js +53 -0
  753. package/dist/standalone/node_modules/next/dist/lib/memory/shutdown.js +29 -0
  754. package/dist/standalone/node_modules/next/dist/lib/memory/startup.js +47 -0
  755. package/dist/standalone/node_modules/next/dist/lib/memory/trace.js +109 -0
  756. package/dist/standalone/node_modules/next/dist/lib/metadata/constants.js +40 -0
  757. package/dist/standalone/node_modules/next/dist/lib/metadata/default-metadata.js +82 -0
  758. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/alternate.js +55 -0
  759. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/basic.js +307 -0
  760. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/icon-mark.js +22 -0
  761. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/icons.js +64 -0
  762. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/meta.js +123 -0
  763. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/opengraph.js +478 -0
  764. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/utils.js +52 -0
  765. package/dist/standalone/node_modules/next/dist/lib/metadata/get-metadata-route.js +114 -0
  766. package/dist/standalone/node_modules/next/dist/lib/metadata/is-metadata-route.js +221 -0
  767. package/dist/standalone/node_modules/next/dist/lib/metadata/metadata-context.js +18 -0
  768. package/dist/standalone/node_modules/next/dist/lib/metadata/metadata.js +243 -0
  769. package/dist/standalone/node_modules/next/dist/lib/metadata/resolve-metadata.js +859 -0
  770. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-basics.js +232 -0
  771. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-icons.js +56 -0
  772. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-opengraph.js +199 -0
  773. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-title.js +40 -0
  774. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-url.js +135 -0
  775. package/dist/standalone/node_modules/next/dist/lib/metadata/types/alternative-urls-types.js +7 -0
  776. package/dist/standalone/node_modules/next/dist/lib/metadata/types/extra-types.js +9 -0
  777. package/dist/standalone/node_modules/next/dist/lib/metadata/types/icons.js +6 -0
  778. package/dist/standalone/node_modules/next/dist/lib/metadata/types/manifest-types.js +6 -0
  779. package/dist/standalone/node_modules/next/dist/lib/metadata/types/metadata-interface.js +18 -0
  780. package/dist/standalone/node_modules/next/dist/lib/metadata/types/metadata-types.js +10 -0
  781. package/dist/standalone/node_modules/next/dist/lib/metadata/types/opengraph-types.js +6 -0
  782. package/dist/standalone/node_modules/next/dist/lib/metadata/types/resolvers.js +6 -0
  783. package/dist/standalone/node_modules/next/dist/lib/metadata/types/twitter-types.js +7 -0
  784. package/dist/standalone/node_modules/next/dist/lib/mime-type.js +20 -0
  785. package/dist/standalone/node_modules/next/dist/lib/mkcert.js +204 -0
  786. package/dist/standalone/node_modules/next/dist/lib/multi-file-writer.js +75 -0
  787. package/dist/standalone/node_modules/next/dist/lib/needs-experimental-react.js +16 -0
  788. package/dist/standalone/node_modules/next/dist/lib/non-nullable.js +15 -0
  789. package/dist/standalone/node_modules/next/dist/lib/normalize-path.js +21 -0
  790. package/dist/standalone/node_modules/next/dist/lib/oxford-comma-list.js +15 -0
  791. package/dist/standalone/node_modules/next/dist/lib/page-types.js +18 -0
  792. package/dist/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +185 -0
  793. package/dist/standalone/node_modules/next/dist/lib/pick.js +19 -0
  794. package/dist/standalone/node_modules/next/dist/lib/picocolors.js +177 -0
  795. package/dist/standalone/node_modules/next/dist/lib/pretty-bytes.js +74 -0
  796. package/dist/standalone/node_modules/next/dist/lib/realpath.js +20 -0
  797. package/dist/standalone/node_modules/next/dist/lib/recursive-copy.js +76 -0
  798. package/dist/standalone/node_modules/next/dist/lib/recursive-delete.js +137 -0
  799. package/dist/standalone/node_modules/next/dist/lib/recursive-readdir.js +124 -0
  800. package/dist/standalone/node_modules/next/dist/lib/redirect-status.js +46 -0
  801. package/dist/standalone/node_modules/next/dist/lib/require-instrumentation-client.js +26 -0
  802. package/dist/standalone/node_modules/next/dist/lib/resolve-build-paths.js +149 -0
  803. package/dist/standalone/node_modules/next/dist/lib/resolve-from.js +65 -0
  804. package/dist/standalone/node_modules/next/dist/lib/route-pattern-normalizer.js +107 -0
  805. package/dist/standalone/node_modules/next/dist/lib/scheduler.js +64 -0
  806. package/dist/standalone/node_modules/next/dist/lib/semver-noop.js +18 -0
  807. package/dist/standalone/node_modules/next/dist/lib/server-external-packages.jsonc +103 -0
  808. package/dist/standalone/node_modules/next/dist/lib/setup-exception-listeners.js +11 -0
  809. package/dist/standalone/node_modules/next/dist/lib/static-env.js +92 -0
  810. package/dist/standalone/node_modules/next/dist/lib/try-to-parse-path.js +68 -0
  811. package/dist/standalone/node_modules/next/dist/lib/turbopack-warning.js +186 -0
  812. package/dist/standalone/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +240 -0
  813. package/dist/standalone/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +73 -0
  814. package/dist/standalone/node_modules/next/dist/lib/typescript/getTypeScriptIntent.js +52 -0
  815. package/dist/standalone/node_modules/next/dist/lib/typescript/missingDependencyError.js +27 -0
  816. package/dist/standalone/node_modules/next/dist/lib/typescript/runTypeCheck.js +151 -0
  817. package/dist/standalone/node_modules/next/dist/lib/typescript/type-paths.js +56 -0
  818. package/dist/standalone/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +65 -0
  819. package/dist/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +394 -0
  820. package/dist/standalone/node_modules/next/dist/lib/url.js +75 -0
  821. package/dist/standalone/node_modules/next/dist/lib/verify-partytown-setup.js +115 -0
  822. package/dist/standalone/node_modules/next/dist/lib/verify-root-layout.js +165 -0
  823. package/dist/standalone/node_modules/next/dist/lib/verify-typescript-setup.js +178 -0
  824. package/dist/standalone/node_modules/next/dist/lib/wait.js +19 -0
  825. package/dist/standalone/node_modules/next/dist/lib/with-promise-cache.js +24 -0
  826. package/dist/standalone/node_modules/next/dist/lib/worker.js +223 -0
  827. package/dist/standalone/node_modules/next/dist/next-devtools/server/shared.js +61 -0
  828. package/dist/standalone/node_modules/next/dist/server/ReactDOMServerPages.js +16 -0
  829. package/dist/standalone/node_modules/next/dist/server/accept-header.js +132 -0
  830. package/dist/standalone/node_modules/next/dist/server/after/after-context.js +140 -0
  831. package/dist/standalone/node_modules/next/dist/server/after/after.js +26 -0
  832. package/dist/standalone/node_modules/next/dist/server/after/awaiter.js +74 -0
  833. package/dist/standalone/node_modules/next/dist/server/after/builtin-request-context.js +38 -0
  834. package/dist/standalone/node_modules/next/dist/server/after/index.js +21 -0
  835. package/dist/standalone/node_modules/next/dist/server/after/run-with-after.js +35 -0
  836. package/dist/standalone/node_modules/next/dist/server/api-utils/get-cookie-parser.js +22 -0
  837. package/dist/standalone/node_modules/next/dist/server/api-utils/index.js +201 -0
  838. package/dist/standalone/node_modules/next/dist/server/api-utils/node/api-resolver.js +395 -0
  839. package/dist/standalone/node_modules/next/dist/server/api-utils/node/parse-body.js +79 -0
  840. package/dist/standalone/node_modules/next/dist/server/api-utils/node/try-get-preview-data.js +86 -0
  841. package/dist/standalone/node_modules/next/dist/server/api-utils/web.js +17 -0
  842. package/dist/standalone/node_modules/next/dist/server/app-render/action-async-storage-instance.js +14 -0
  843. package/dist/standalone/node_modules/next/dist/server/app-render/action-async-storage.external.js +13 -0
  844. package/dist/standalone/node_modules/next/dist/server/app-render/action-handler.js +952 -0
  845. package/dist/standalone/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +14 -0
  846. package/dist/standalone/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +13 -0
  847. package/dist/standalone/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +249 -0
  848. package/dist/standalone/node_modules/next/dist/server/app-render/app-render-render-utils.js +112 -0
  849. package/dist/standalone/node_modules/next/dist/server/app-render/app-render-scheduling.js +188 -0
  850. package/dist/standalone/node_modules/next/dist/server/app-render/app-render.js +3526 -0
  851. package/dist/standalone/node_modules/next/dist/server/app-render/async-local-storage.js +76 -0
  852. package/dist/standalone/node_modules/next/dist/server/app-render/cache-signal.js +181 -0
  853. package/dist/standalone/node_modules/next/dist/server/app-render/collect-segment-data.js +276 -0
  854. package/dist/standalone/node_modules/next/dist/server/app-render/console-async-storage-instance.js +14 -0
  855. package/dist/standalone/node_modules/next/dist/server/app-render/console-async-storage.external.js +13 -0
  856. package/dist/standalone/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +33 -0
  857. package/dist/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +754 -0
  858. package/dist/standalone/node_modules/next/dist/server/app-render/create-error-handler.js +187 -0
  859. package/dist/standalone/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +76 -0
  860. package/dist/standalone/node_modules/next/dist/server/app-render/csrf-protection.js +75 -0
  861. package/dist/standalone/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js +14 -0
  862. package/dist/standalone/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js +13 -0
  863. package/dist/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +828 -0
  864. package/dist/standalone/node_modules/next/dist/server/app-render/encryption-utils-server.js +114 -0
  865. package/dist/standalone/node_modules/next/dist/server/app-render/encryption-utils.js +93 -0
  866. package/dist/standalone/node_modules/next/dist/server/app-render/encryption.js +238 -0
  867. package/dist/standalone/node_modules/next/dist/server/app-render/entry-base.js +237 -0
  868. package/dist/standalone/node_modules/next/dist/server/app-render/flight-render-result.js +28 -0
  869. package/dist/standalone/node_modules/next/dist/server/app-render/get-asset-query-string.js +29 -0
  870. package/dist/standalone/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +49 -0
  871. package/dist/standalone/node_modules/next/dist/server/app-render/get-layer-assets.js +65 -0
  872. package/dist/standalone/node_modules/next/dist/server/app-render/get-preloadable-fonts.js +39 -0
  873. package/dist/standalone/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +44 -0
  874. package/dist/standalone/node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js +25 -0
  875. package/dist/standalone/node_modules/next/dist/server/app-render/has-loading-component-in-tree.js +19 -0
  876. package/dist/standalone/node_modules/next/dist/server/app-render/interop-default.js +17 -0
  877. package/dist/standalone/node_modules/next/dist/server/app-render/make-get-server-inserted-html.js +92 -0
  878. package/dist/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +257 -0
  879. package/dist/standalone/node_modules/next/dist/server/app-render/metadata-insertion/create-server-inserted-metadata.js +28 -0
  880. package/dist/standalone/node_modules/next/dist/server/app-render/module-loading/track-dynamic-import.js +57 -0
  881. package/dist/standalone/node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js +32 -0
  882. package/dist/standalone/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js +66 -0
  883. package/dist/standalone/node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js +49 -0
  884. package/dist/standalone/node_modules/next/dist/server/app-render/postponed-state.js +156 -0
  885. package/dist/standalone/node_modules/next/dist/server/app-render/prospective-render-utils.js +73 -0
  886. package/dist/standalone/node_modules/next/dist/server/app-render/react-large-shell-error.js +17 -0
  887. package/dist/standalone/node_modules/next/dist/server/app-render/react-server.node.js +39 -0
  888. package/dist/standalone/node_modules/next/dist/server/app-render/render-css-resource.js +52 -0
  889. package/dist/standalone/node_modules/next/dist/server/app-render/required-scripts.js +76 -0
  890. package/dist/standalone/node_modules/next/dist/server/app-render/rsc/postpone.js +18 -0
  891. package/dist/standalone/node_modules/next/dist/server/app-render/rsc/preloads.js +74 -0
  892. package/dist/standalone/node_modules/next/dist/server/app-render/rsc/taint.js +79 -0
  893. package/dist/standalone/node_modules/next/dist/server/app-render/segment-explorer-path.js +103 -0
  894. package/dist/standalone/node_modules/next/dist/server/app-render/server-inserted-html.js +77 -0
  895. package/dist/standalone/node_modules/next/dist/server/app-render/staged-rendering.js +273 -0
  896. package/dist/standalone/node_modules/next/dist/server/app-render/staged-validation.js +32 -0
  897. package/dist/standalone/node_modules/next/dist/server/app-render/strip-flight-headers.js +18 -0
  898. package/dist/standalone/node_modules/next/dist/server/app-render/types.js +59 -0
  899. package/dist/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +212 -0
  900. package/dist/standalone/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +185 -0
  901. package/dist/standalone/node_modules/next/dist/server/app-render/work-async-storage-instance.js +14 -0
  902. package/dist/standalone/node_modules/next/dist/server/app-render/work-async-storage.external.js +13 -0
  903. package/dist/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +14 -0
  904. package/dist/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +252 -0
  905. package/dist/standalone/node_modules/next/dist/server/async-storage/draft-mode-provider.js +62 -0
  906. package/dist/standalone/node_modules/next/dist/server/async-storage/request-store.js +144 -0
  907. package/dist/standalone/node_modules/next/dist/server/async-storage/with-store.js +6 -0
  908. package/dist/standalone/node_modules/next/dist/server/async-storage/work-store.js +94 -0
  909. package/dist/standalone/node_modules/next/dist/server/base-http/helpers.js +36 -0
  910. package/dist/standalone/node_modules/next/dist/server/base-http/index.js +54 -0
  911. package/dist/standalone/node_modules/next/dist/server/base-http/node.js +147 -0
  912. package/dist/standalone/node_modules/next/dist/server/base-http/web.js +124 -0
  913. package/dist/standalone/node_modules/next/dist/server/base-server.js +1842 -0
  914. package/dist/standalone/node_modules/next/dist/server/body-streams.js +114 -0
  915. package/dist/standalone/node_modules/next/dist/server/cache-dir.js +26 -0
  916. package/dist/standalone/node_modules/next/dist/server/capsize-font-metrics.json +181516 -0
  917. package/dist/standalone/node_modules/next/dist/server/ci-info.js +41 -0
  918. package/dist/standalone/node_modules/next/dist/server/client-component-renderer-logger.js +70 -0
  919. package/dist/standalone/node_modules/next/dist/server/config-schema.js +630 -0
  920. package/dist/standalone/node_modules/next/dist/server/config-shared.js +305 -0
  921. package/dist/standalone/node_modules/next/dist/server/config-utils.js +185 -0
  922. package/dist/standalone/node_modules/next/dist/server/config.js +1468 -0
  923. package/dist/standalone/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +96 -0
  924. package/dist/standalone/node_modules/next/dist/server/crypto-utils.js +70 -0
  925. package/dist/standalone/node_modules/next/dist/server/dev/browser-logs/file-logger.js +183 -0
  926. package/dist/standalone/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +512 -0
  927. package/dist/standalone/node_modules/next/dist/server/dev/browser-logs/source-map.js +225 -0
  928. package/dist/standalone/node_modules/next/dist/server/dev/debug-channel.js +87 -0
  929. package/dist/standalone/node_modules/next/dist/server/dev/dev-indicator-server-state.js +15 -0
  930. package/dist/standalone/node_modules/next/dist/server/dev/get-source-map-from-file.js +100 -0
  931. package/dist/standalone/node_modules/next/dist/server/dev/hot-middleware.js +274 -0
  932. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-rspack.js +171 -0
  933. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-shared-utils.js +56 -0
  934. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +1247 -0
  935. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-types.js +58 -0
  936. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1382 -0
  937. package/dist/standalone/node_modules/next/dist/server/dev/log-requests.js +141 -0
  938. package/dist/standalone/node_modules/next/dist/server/dev/messages.js +74 -0
  939. package/dist/standalone/node_modules/next/dist/server/dev/middleware-turbopack.js +393 -0
  940. package/dist/standalone/node_modules/next/dist/server/dev/middleware-webpack.js +473 -0
  941. package/dist/standalone/node_modules/next/dist/server/dev/node-stack-frames.js +72 -0
  942. package/dist/standalone/node_modules/next/dist/server/dev/on-demand-entry-handler.js +704 -0
  943. package/dist/standalone/node_modules/next/dist/server/dev/parse-version-info.js +108 -0
  944. package/dist/standalone/node_modules/next/dist/server/dev/require-cache.js +49 -0
  945. package/dist/standalone/node_modules/next/dist/server/dev/serialized-errors.js +67 -0
  946. package/dist/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +103 -0
  947. package/dist/standalone/node_modules/next/dist/server/dev/turbopack-utils.js +696 -0
  948. package/dist/standalone/node_modules/next/dist/server/dynamic-rendering-utils.js +86 -0
  949. package/dist/standalone/node_modules/next/dist/server/font-utils.js +43 -0
  950. package/dist/standalone/node_modules/next/dist/server/get-app-route-from-entrypoint.js +30 -0
  951. package/dist/standalone/node_modules/next/dist/server/get-page-files.js +23 -0
  952. package/dist/standalone/node_modules/next/dist/server/get-route-from-entrypoint.js +35 -0
  953. package/dist/standalone/node_modules/next/dist/server/htmlescape.js +37 -0
  954. package/dist/standalone/node_modules/next/dist/server/image-optimizer.js +1067 -0
  955. package/dist/standalone/node_modules/next/dist/server/instrumentation/types.js +6 -0
  956. package/dist/standalone/node_modules/next/dist/server/instrumentation/utils.js +21 -0
  957. package/dist/standalone/node_modules/next/dist/server/internal-utils.js +39 -0
  958. package/dist/standalone/node_modules/next/dist/server/is-private-ip.js +36 -0
  959. package/dist/standalone/node_modules/next/dist/server/lib/app-dir-module.js +59 -0
  960. package/dist/standalone/node_modules/next/dist/server/lib/app-info-log.js +154 -0
  961. package/dist/standalone/node_modules/next/dist/server/lib/async-callback-set.js +29 -0
  962. package/dist/standalone/node_modules/next/dist/server/lib/cache-control.js +22 -0
  963. package/dist/standalone/node_modules/next/dist/server/lib/cache-handlers/default.external.js +18 -0
  964. package/dist/standalone/node_modules/next/dist/server/lib/cache-handlers/default.js +160 -0
  965. package/dist/standalone/node_modules/next/dist/server/lib/cache-handlers/types.js +8 -0
  966. package/dist/standalone/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +116 -0
  967. package/dist/standalone/node_modules/next/dist/server/lib/clone-response.js +77 -0
  968. package/dist/standalone/node_modules/next/dist/server/lib/cpu-profile.js +28 -0
  969. package/dist/standalone/node_modules/next/dist/server/lib/decode-query-path-parameter.js +26 -0
  970. package/dist/standalone/node_modules/next/dist/server/lib/dedupe-fetch.js +163 -0
  971. package/dist/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +95 -0
  972. package/dist/standalone/node_modules/next/dist/server/lib/etag.js +56 -0
  973. package/dist/standalone/node_modules/next/dist/server/lib/experimental/create-env-definitions.js +48 -0
  974. package/dist/standalone/node_modules/next/dist/server/lib/experimental/ppr.js +47 -0
  975. package/dist/standalone/node_modules/next/dist/server/lib/find-page-file.js +127 -0
  976. package/dist/standalone/node_modules/next/dist/server/lib/fix-mojibake.js +25 -0
  977. package/dist/standalone/node_modules/next/dist/server/lib/format-hostname.js +16 -0
  978. package/dist/standalone/node_modules/next/dist/server/lib/i18n-provider.js +129 -0
  979. package/dist/standalone/node_modules/next/dist/server/lib/implicit-tags.js +77 -0
  980. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +333 -0
  981. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/index.js +479 -0
  982. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +40 -0
  983. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js +73 -0
  984. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js +55 -0
  985. package/dist/standalone/node_modules/next/dist/server/lib/is-ipv6.js +41 -0
  986. package/dist/standalone/node_modules/next/dist/server/lib/lazy-result.js +46 -0
  987. package/dist/standalone/node_modules/next/dist/server/lib/lru-cache.js +177 -0
  988. package/dist/standalone/node_modules/next/dist/server/lib/match-next-data-pathname.js +18 -0
  989. package/dist/standalone/node_modules/next/dist/server/lib/mock-request.js +416 -0
  990. package/dist/standalone/node_modules/next/dist/server/lib/module-loader/module-loader.js +8 -0
  991. package/dist/standalone/node_modules/next/dist/server/lib/module-loader/node-module-loader.js +25 -0
  992. package/dist/standalone/node_modules/next/dist/server/lib/module-loader/route-module-loader.js +26 -0
  993. package/dist/standalone/node_modules/next/dist/server/lib/node-fs-methods.js +28 -0
  994. package/dist/standalone/node_modules/next/dist/server/lib/parse-stack.js +46 -0
  995. package/dist/standalone/node_modules/next/dist/server/lib/patch-fetch.js +945 -0
  996. package/dist/standalone/node_modules/next/dist/server/lib/patch-set-header.js +38 -0
  997. package/dist/standalone/node_modules/next/dist/server/lib/render-server.js +152 -0
  998. package/dist/standalone/node_modules/next/dist/server/lib/router-server.js +672 -0
  999. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site.js +76 -0
  1000. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/build-data-route.js +48 -0
  1001. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +50 -0
  1002. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/cache-life-type-utils.js +211 -0
  1003. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/decode-path-params.js +42 -0
  1004. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/filesystem.js +590 -0
  1005. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +89 -0
  1006. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js +96 -0
  1007. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/is-postpone.js +16 -0
  1008. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/proxy-request.js +118 -0
  1009. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +608 -0
  1010. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +286 -0
  1011. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/router-server-context.js +26 -0
  1012. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/typegen.js +613 -0
  1013. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/types.js +6 -0
  1014. package/dist/standalone/node_modules/next/dist/server/lib/server-action-request-meta.js +53 -0
  1015. package/dist/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +80 -0
  1016. package/dist/standalone/node_modules/next/dist/server/lib/source-maps.js +196 -0
  1017. package/dist/standalone/node_modules/next/dist/server/lib/start-server.js +460 -0
  1018. package/dist/standalone/node_modules/next/dist/server/lib/streaming-metadata.js +38 -0
  1019. package/dist/standalone/node_modules/next/dist/server/lib/to-route.js +37 -0
  1020. package/dist/standalone/node_modules/next/dist/server/lib/trace/constants.js +203 -0
  1021. package/dist/standalone/node_modules/next/dist/server/lib/trace/tracer.js +270 -0
  1022. package/dist/standalone/node_modules/next/dist/server/lib/trace/utils.js +16 -0
  1023. package/dist/standalone/node_modules/next/dist/server/lib/types.js +6 -0
  1024. package/dist/standalone/node_modules/next/dist/server/lib/utils.js +249 -0
  1025. package/dist/standalone/node_modules/next/dist/server/lib/worker-utils.js +36 -0
  1026. package/dist/standalone/node_modules/next/dist/server/load-components.js +177 -0
  1027. package/dist/standalone/node_modules/next/dist/server/load-default-error-components.js +41 -0
  1028. package/dist/standalone/node_modules/next/dist/server/load-manifest.external.js +97 -0
  1029. package/dist/standalone/node_modules/next/dist/server/match-bundle.js +25 -0
  1030. package/dist/standalone/node_modules/next/dist/server/mcp/get-mcp-middleware.js +49 -0
  1031. package/dist/standalone/node_modules/next/dist/server/mcp/get-or-create-mcp-server.js +41 -0
  1032. package/dist/standalone/node_modules/next/dist/server/mcp/mcp-telemetry-tracker.js +82 -0
  1033. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-errors.js +107 -0
  1034. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-logs.js +61 -0
  1035. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +180 -0
  1036. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +55 -0
  1037. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-routes.js +171 -0
  1038. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +113 -0
  1039. package/dist/standalone/node_modules/next/dist/server/mcp/tools/next-instance-error-state.js +31 -0
  1040. package/dist/standalone/node_modules/next/dist/server/mcp/tools/utils/browser-communication.js +90 -0
  1041. package/dist/standalone/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +147 -0
  1042. package/dist/standalone/node_modules/next/dist/server/next-server.js +1459 -0
  1043. package/dist/standalone/node_modules/next/dist/server/next-typescript.js +13 -0
  1044. package/dist/standalone/node_modules/next/dist/server/next.js +452 -0
  1045. package/dist/standalone/node_modules/next/dist/server/node-environment-baseline.js +25 -0
  1046. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +246 -0
  1047. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/console-exit.js +49 -0
  1048. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/console-file.js +56 -0
  1049. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/date.js +52 -0
  1050. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/error-inspect.js +8 -0
  1051. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +570 -0
  1052. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/global-behaviors.js +33 -0
  1053. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +103 -0
  1054. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/random.js +28 -0
  1055. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.js +489 -0
  1056. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/utils.js +186 -0
  1057. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +45 -0
  1058. package/dist/standalone/node_modules/next/dist/server/node-environment.js +19 -0
  1059. package/dist/standalone/node_modules/next/dist/server/node-polyfill-crypto.js +21 -0
  1060. package/dist/standalone/node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js +33 -0
  1061. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js +54 -0
  1062. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js +22 -0
  1063. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js +40 -0
  1064. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js +55 -0
  1065. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/index.js +42 -0
  1066. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/index.js +44 -0
  1067. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js +55 -0
  1068. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js +22 -0
  1069. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js +19 -0
  1070. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js +19 -0
  1071. package/dist/standalone/node_modules/next/dist/server/normalizers/locale-route-normalizer.js +26 -0
  1072. package/dist/standalone/node_modules/next/dist/server/normalizers/normalizer.js +6 -0
  1073. package/dist/standalone/node_modules/next/dist/server/normalizers/normalizers.js +23 -0
  1074. package/dist/standalone/node_modules/next/dist/server/normalizers/prefixing-normalizer.js +26 -0
  1075. package/dist/standalone/node_modules/next/dist/server/normalizers/request/base-path.js +25 -0
  1076. package/dist/standalone/node_modules/next/dist/server/normalizers/request/next-data.js +38 -0
  1077. package/dist/standalone/node_modules/next/dist/server/normalizers/request/pathname-normalizer.js +6 -0
  1078. package/dist/standalone/node_modules/next/dist/server/normalizers/request/prefix.js +39 -0
  1079. package/dist/standalone/node_modules/next/dist/server/normalizers/request/rsc.js +19 -0
  1080. package/dist/standalone/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +32 -0
  1081. package/dist/standalone/node_modules/next/dist/server/normalizers/request/suffix.js +27 -0
  1082. package/dist/standalone/node_modules/next/dist/server/normalizers/underscore-normalizer.js +17 -0
  1083. package/dist/standalone/node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js +17 -0
  1084. package/dist/standalone/node_modules/next/dist/server/og/image-response.js +53 -0
  1085. package/dist/standalone/node_modules/next/dist/server/patch-error-inspect.js +436 -0
  1086. package/dist/standalone/node_modules/next/dist/server/pipe-readable.js +140 -0
  1087. package/dist/standalone/node_modules/next/dist/server/post-process.js +39 -0
  1088. package/dist/standalone/node_modules/next/dist/server/render-result.js +195 -0
  1089. package/dist/standalone/node_modules/next/dist/server/render.js +1138 -0
  1090. package/dist/standalone/node_modules/next/dist/server/request/connection.js +111 -0
  1091. package/dist/standalone/node_modules/next/dist/server/request/cookies.js +220 -0
  1092. package/dist/standalone/node_modules/next/dist/server/request/draft-mode.js +207 -0
  1093. package/dist/standalone/node_modules/next/dist/server/request/fallback-params.js +69 -0
  1094. package/dist/standalone/node_modules/next/dist/server/request/headers.js +219 -0
  1095. package/dist/standalone/node_modules/next/dist/server/request/params.js +415 -0
  1096. package/dist/standalone/node_modules/next/dist/server/request/pathname.js +104 -0
  1097. package/dist/standalone/node_modules/next/dist/server/request/root-params.js +157 -0
  1098. package/dist/standalone/node_modules/next/dist/server/request/search-params.js +432 -0
  1099. package/dist/standalone/node_modules/next/dist/server/request/utils.js +51 -0
  1100. package/dist/standalone/node_modules/next/dist/server/request-meta.js +55 -0
  1101. package/dist/standalone/node_modules/next/dist/server/require-hook.js +71 -0
  1102. package/dist/standalone/node_modules/next/dist/server/require.js +109 -0
  1103. package/dist/standalone/node_modules/next/dist/server/response-cache/index.js +211 -0
  1104. package/dist/standalone/node_modules/next/dist/server/response-cache/types.js +41 -0
  1105. package/dist/standalone/node_modules/next/dist/server/response-cache/utils.js +103 -0
  1106. package/dist/standalone/node_modules/next/dist/server/response-cache/web.js +101 -0
  1107. package/dist/standalone/node_modules/next/dist/server/resume-data-cache/cache-store.js +84 -0
  1108. package/dist/standalone/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +96 -0
  1109. package/dist/standalone/node_modules/next/dist/server/revalidation-utils.js +152 -0
  1110. package/dist/standalone/node_modules/next/dist/server/route-definitions/app-page-route-definition.js +16 -0
  1111. package/dist/standalone/node_modules/next/dist/server/route-definitions/app-route-route-definition.js +6 -0
  1112. package/dist/standalone/node_modules/next/dist/server/route-definitions/locale-route-definition.js +6 -0
  1113. package/dist/standalone/node_modules/next/dist/server/route-definitions/pages-api-route-definition.js +6 -0
  1114. package/dist/standalone/node_modules/next/dist/server/route-definitions/pages-route-definition.js +6 -0
  1115. package/dist/standalone/node_modules/next/dist/server/route-definitions/route-definition.js +6 -0
  1116. package/dist/standalone/node_modules/next/dist/server/route-kind.js +32 -0
  1117. package/dist/standalone/node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js +239 -0
  1118. package/dist/standalone/node_modules/next/dist/server/route-matcher-managers/dev-route-matcher-manager.js +120 -0
  1119. package/dist/standalone/node_modules/next/dist/server/route-matcher-managers/route-matcher-manager.js +6 -0
  1120. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js +55 -0
  1121. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js +43 -0
  1122. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +90 -0
  1123. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-route-route-matcher-provider.js +112 -0
  1124. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-api-route-matcher-provider.js +77 -0
  1125. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-route-matcher-provider.js +77 -0
  1126. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/file-cache-route-matcher-provider.js +28 -0
  1127. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/batched-file-reader.js +106 -0
  1128. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/default-file-reader.js +42 -0
  1129. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/file-reader.js +6 -0
  1130. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js +30 -0
  1131. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/manifest-loader.js +6 -0
  1132. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/node-manifest-loader.js +34 -0
  1133. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js +20 -0
  1134. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js +21 -0
  1135. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js +55 -0
  1136. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js +64 -0
  1137. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/route-matcher-provider.js +6 -0
  1138. package/dist/standalone/node_modules/next/dist/server/route-matchers/app-page-route-matcher.js +18 -0
  1139. package/dist/standalone/node_modules/next/dist/server/route-matchers/app-route-route-matcher.js +15 -0
  1140. package/dist/standalone/node_modules/next/dist/server/route-matchers/locale-route-matcher.js +68 -0
  1141. package/dist/standalone/node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js +30 -0
  1142. package/dist/standalone/node_modules/next/dist/server/route-matchers/pages-route-matcher.js +30 -0
  1143. package/dist/standalone/node_modules/next/dist/server/route-matchers/route-matcher.js +54 -0
  1144. package/dist/standalone/node_modules/next/dist/server/route-matches/app-page-route-match.js +6 -0
  1145. package/dist/standalone/node_modules/next/dist/server/route-matches/app-route-route-match.js +6 -0
  1146. package/dist/standalone/node_modules/next/dist/server/route-matches/locale-route-match.js +6 -0
  1147. package/dist/standalone/node_modules/next/dist/server/route-matches/pages-api-route-match.js +16 -0
  1148. package/dist/standalone/node_modules/next/dist/server/route-matches/pages-route-match.js +6 -0
  1149. package/dist/standalone/node_modules/next/dist/server/route-matches/route-match.js +6 -0
  1150. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +48 -0
  1151. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/module.compiled.js +36 -0
  1152. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/module.js +132 -0
  1153. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/module.render.js +24 -0
  1154. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js +4 -0
  1155. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js +87 -0
  1156. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js +4 -0
  1157. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js +4 -0
  1158. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js +4 -0
  1159. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js +4 -0
  1160. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js +4 -0
  1161. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js +140 -0
  1162. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-compiler-runtime.js +4 -0
  1163. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-dom.js +4 -0
  1164. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js +4 -0
  1165. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js +4 -0
  1166. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-server.js +4 -0
  1167. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-static.js +4 -0
  1168. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-server.js +4 -0
  1169. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-static.js +4 -0
  1170. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react.js +4 -0
  1171. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js +125 -0
  1172. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-compiler-runtime.js +4 -0
  1173. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom-server.js +4 -0
  1174. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom.js +4 -0
  1175. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-dev-runtime.js +4 -0
  1176. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js +4 -0
  1177. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.js +4 -0
  1178. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-webpack-client.js +4 -0
  1179. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js +4 -0
  1180. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/auto-implement-methods.js +85 -0
  1181. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/clean-url.js +24 -0
  1182. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/get-pathname-from-absolute-path.js +29 -0
  1183. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/is-static-gen-enabled.js +15 -0
  1184. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/parsed-url-query-to-params.js +20 -0
  1185. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/module.compiled.js +36 -0
  1186. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/module.js +889 -0
  1187. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/shared-modules.js +56 -0
  1188. package/dist/standalone/node_modules/next/dist/server/route-modules/checks.js +45 -0
  1189. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/builtin/_error.js +100 -0
  1190. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/module.compiled.js +20 -0
  1191. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/module.js +92 -0
  1192. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/module.render.js +24 -0
  1193. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +522 -0
  1194. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js +4 -0
  1195. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js +102 -0
  1196. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js +4 -0
  1197. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js +4 -0
  1198. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js +4 -0
  1199. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js +4 -0
  1200. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js +4 -0
  1201. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js +4 -0
  1202. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js +4 -0
  1203. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js +4 -0
  1204. package/dist/standalone/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js +20 -0
  1205. package/dist/standalone/node_modules/next/dist/server/route-modules/pages-api/module.js +58 -0
  1206. package/dist/standalone/node_modules/next/dist/server/route-modules/route-module.js +594 -0
  1207. package/dist/standalone/node_modules/next/dist/server/runtime-reacts.external.js +46 -0
  1208. package/dist/standalone/node_modules/next/dist/server/send-payload.js +88 -0
  1209. package/dist/standalone/node_modules/next/dist/server/send-response.js +70 -0
  1210. package/dist/standalone/node_modules/next/dist/server/serve-static.js +66 -0
  1211. package/dist/standalone/node_modules/next/dist/server/server-route-utils.js +30 -0
  1212. package/dist/standalone/node_modules/next/dist/server/server-utils.js +323 -0
  1213. package/dist/standalone/node_modules/next/dist/server/setup-http-agent-env.js +31 -0
  1214. package/dist/standalone/node_modules/next/dist/server/stream-utils/encoded-tags.js +114 -0
  1215. package/dist/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +737 -0
  1216. package/dist/standalone/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +69 -0
  1217. package/dist/standalone/node_modules/next/dist/server/typescript/constant.js +97 -0
  1218. package/dist/standalone/node_modules/next/dist/server/typescript/index.js +199 -0
  1219. package/dist/standalone/node_modules/next/dist/server/typescript/rules/client-boundary.js +97 -0
  1220. package/dist/standalone/node_modules/next/dist/server/typescript/rules/config.js +501 -0
  1221. package/dist/standalone/node_modules/next/dist/server/typescript/rules/entry.js +149 -0
  1222. package/dist/standalone/node_modules/next/dist/server/typescript/rules/error.js +38 -0
  1223. package/dist/standalone/node_modules/next/dist/server/typescript/rules/metadata.js +234 -0
  1224. package/dist/standalone/node_modules/next/dist/server/typescript/rules/server-boundary.js +115 -0
  1225. package/dist/standalone/node_modules/next/dist/server/typescript/rules/server.js +79 -0
  1226. package/dist/standalone/node_modules/next/dist/server/typescript/utils.js +212 -0
  1227. package/dist/standalone/node_modules/next/dist/server/use-cache/cache-life.js +161 -0
  1228. package/dist/standalone/node_modules/next/dist/server/use-cache/cache-tag.js +50 -0
  1229. package/dist/standalone/node_modules/next/dist/server/use-cache/constants.js +28 -0
  1230. package/dist/standalone/node_modules/next/dist/server/use-cache/handlers.js +121 -0
  1231. package/dist/standalone/node_modules/next/dist/server/use-cache/use-cache-errors.js +36 -0
  1232. package/dist/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +1336 -0
  1233. package/dist/standalone/node_modules/next/dist/server/utils.js +73 -0
  1234. package/dist/standalone/node_modules/next/dist/server/web/adapter.js +388 -0
  1235. package/dist/standalone/node_modules/next/dist/server/web/edge-route-module-wrapper.js +122 -0
  1236. package/dist/standalone/node_modules/next/dist/server/web/error.js +54 -0
  1237. package/dist/standalone/node_modules/next/dist/server/web/exports/index.js +56 -0
  1238. package/dist/standalone/node_modules/next/dist/server/web/get-edge-preview-props.js +23 -0
  1239. package/dist/standalone/node_modules/next/dist/server/web/globals.js +128 -0
  1240. package/dist/standalone/node_modules/next/dist/server/web/http.js +39 -0
  1241. package/dist/standalone/node_modules/next/dist/server/web/internal-edge-wait-until.js +64 -0
  1242. package/dist/standalone/node_modules/next/dist/server/web/next-url.js +195 -0
  1243. package/dist/standalone/node_modules/next/dist/server/web/sandbox/context.js +462 -0
  1244. package/dist/standalone/node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js +35 -0
  1245. package/dist/standalone/node_modules/next/dist/server/web/sandbox/index.js +28 -0
  1246. package/dist/standalone/node_modules/next/dist/server/web/sandbox/resource-managers.js +88 -0
  1247. package/dist/standalone/node_modules/next/dist/server/web/sandbox/sandbox.js +134 -0
  1248. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +192 -0
  1249. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +142 -0
  1250. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +30 -0
  1251. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +211 -0
  1252. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/cookies.js +29 -0
  1253. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/fetch-event.js +98 -0
  1254. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/image-response.js +22 -0
  1255. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/request.js +99 -0
  1256. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/response.js +136 -0
  1257. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/revalidate.js +206 -0
  1258. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/unstable-cache.js +284 -0
  1259. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js +49 -0
  1260. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/url-pattern.js +14 -0
  1261. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/user-agent.js +46 -0
  1262. package/dist/standalone/node_modules/next/dist/server/web/types.js +6 -0
  1263. package/dist/standalone/node_modules/next/dist/server/web/utils.js +151 -0
  1264. package/dist/standalone/node_modules/next/dist/server/web/web-on-close.js +87 -0
  1265. package/dist/standalone/node_modules/next/dist/shared/lib/action-revalidation-kind.js +31 -0
  1266. package/dist/standalone/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +50 -0
  1267. package/dist/standalone/node_modules/next/dist/shared/lib/app-router-types.js +27 -0
  1268. package/dist/standalone/node_modules/next/dist/shared/lib/constants.js +448 -0
  1269. package/dist/standalone/node_modules/next/dist/shared/lib/deep-freeze.js +30 -0
  1270. package/dist/standalone/node_modules/next/dist/shared/lib/deployment-id.js +36 -0
  1271. package/dist/standalone/node_modules/next/dist/shared/lib/dset.js +34 -0
  1272. package/dist/standalone/node_modules/next/dist/shared/lib/encode-uri-path.js +15 -0
  1273. package/dist/standalone/node_modules/next/dist/shared/lib/entry-constants.js +36 -0
  1274. package/dist/standalone/node_modules/next/dist/shared/lib/error-source.js +36 -0
  1275. package/dist/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +39 -0
  1276. package/dist/standalone/node_modules/next/dist/shared/lib/errors/constants.js +19 -0
  1277. package/dist/standalone/node_modules/next/dist/shared/lib/errors/empty-generate-static-params-error.js +24 -0
  1278. package/dist/standalone/node_modules/next/dist/shared/lib/errors/hard-deprecated-config-error.js +20 -0
  1279. package/dist/standalone/node_modules/next/dist/shared/lib/escape-regexp.js +22 -0
  1280. package/dist/standalone/node_modules/next/dist/shared/lib/get-hostname.js +23 -0
  1281. package/dist/standalone/node_modules/next/dist/shared/lib/hash.js +42 -0
  1282. package/dist/standalone/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +18 -0
  1283. package/dist/standalone/node_modules/next/dist/shared/lib/head.js +163 -0
  1284. package/dist/standalone/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +60 -0
  1285. package/dist/standalone/node_modules/next/dist/shared/lib/html-context.shared-runtime.js +40 -0
  1286. package/dist/standalone/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +25 -0
  1287. package/dist/standalone/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js +59 -0
  1288. package/dist/standalone/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +54 -0
  1289. package/dist/standalone/node_modules/next/dist/shared/lib/image-blur-svg.js +22 -0
  1290. package/dist/standalone/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +19 -0
  1291. package/dist/standalone/node_modules/next/dist/shared/lib/image-config.js +74 -0
  1292. package/dist/standalone/node_modules/next/dist/shared/lib/invariant-error.js +18 -0
  1293. package/dist/standalone/node_modules/next/dist/shared/lib/is-internal.js +39 -0
  1294. package/dist/standalone/node_modules/next/dist/shared/lib/is-plain-object.js +42 -0
  1295. package/dist/standalone/node_modules/next/dist/shared/lib/is-thenable.js +20 -0
  1296. package/dist/standalone/node_modules/next/dist/shared/lib/isomorphic/path.js +14 -0
  1297. package/dist/standalone/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +37 -0
  1298. package/dist/standalone/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js +19 -0
  1299. package/dist/standalone/node_modules/next/dist/shared/lib/loadable.shared-runtime.js +246 -0
  1300. package/dist/standalone/node_modules/next/dist/shared/lib/magic-identifier.js +218 -0
  1301. package/dist/standalone/node_modules/next/dist/shared/lib/match-local-pattern.js +46 -0
  1302. package/dist/standalone/node_modules/next/dist/shared/lib/match-remote-pattern.js +63 -0
  1303. package/dist/standalone/node_modules/next/dist/shared/lib/modern-browserslist-target.js +15 -0
  1304. package/dist/standalone/node_modules/next/dist/shared/lib/no-fallback-error.external.js +18 -0
  1305. package/dist/standalone/node_modules/next/dist/shared/lib/normalized-asset-prefix.js +28 -0
  1306. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js +26 -0
  1307. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +18 -0
  1308. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +18 -0
  1309. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/get-page-paths.js +40 -0
  1310. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/normalize-data-path.js +23 -0
  1311. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js +26 -0
  1312. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +19 -0
  1313. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js +20 -0
  1314. package/dist/standalone/node_modules/next/dist/shared/lib/promise-with-resolvers.js +26 -0
  1315. package/dist/standalone/node_modules/next/dist/shared/lib/router/adapters.js +136 -0
  1316. package/dist/standalone/node_modules/next/dist/shared/lib/router/routes/app.js +122 -0
  1317. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/add-locale.js +28 -0
  1318. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +20 -0
  1319. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +20 -0
  1320. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/app-paths.js +51 -0
  1321. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js +17 -0
  1322. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +24 -0
  1323. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js +16 -0
  1324. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +27 -0
  1325. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/format-url.js +111 -0
  1326. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +167 -0
  1327. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +52 -0
  1328. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js +25 -0
  1329. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +90 -0
  1330. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/html-bots.js +17 -0
  1331. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/index.js +30 -0
  1332. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +33 -0
  1333. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +108 -0
  1334. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/is-bot.js +57 -0
  1335. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +26 -0
  1336. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js +31 -0
  1337. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +29 -0
  1338. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-path.js +33 -0
  1339. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +36 -0
  1340. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-url.js +32 -0
  1341. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +20 -0
  1342. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/path-match.js +49 -0
  1343. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +292 -0
  1344. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/querystring.js +79 -0
  1345. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/relativize-url.js +40 -0
  1346. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +39 -0
  1347. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +21 -0
  1348. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +116 -0
  1349. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +113 -0
  1350. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +45 -0
  1351. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/route-regex.js +256 -0
  1352. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +244 -0
  1353. package/dist/standalone/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +18 -0
  1354. package/dist/standalone/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +52 -0
  1355. package/dist/standalone/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.js +99 -0
  1356. package/dist/standalone/node_modules/next/dist/shared/lib/segment.js +102 -0
  1357. package/dist/standalone/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +35 -0
  1358. package/dist/standalone/node_modules/next/dist/shared/lib/server-reference-info.js +52 -0
  1359. package/dist/standalone/node_modules/next/dist/shared/lib/side-effect.js +63 -0
  1360. package/dist/standalone/node_modules/next/dist/shared/lib/turbopack/internal-error.js +53 -0
  1361. package/dist/standalone/node_modules/next/dist/shared/lib/turbopack/utils.js +279 -0
  1362. package/dist/standalone/node_modules/next/dist/shared/lib/utils/warn-once.js +22 -0
  1363. package/dist/standalone/node_modules/next/dist/shared/lib/utils.js +207 -0
  1364. package/dist/standalone/node_modules/next/dist/shared/lib/zod.js +101 -0
  1365. package/dist/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +89 -0
  1366. package/dist/standalone/node_modules/next/dist/telemetry/detached-flush.js +56 -0
  1367. package/dist/standalone/node_modules/next/dist/telemetry/events/build.js +174 -0
  1368. package/dist/standalone/node_modules/next/dist/telemetry/events/index.js +41 -0
  1369. package/dist/standalone/node_modules/next/dist/telemetry/events/plugins.js +51 -0
  1370. package/dist/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +55 -0
  1371. package/dist/standalone/node_modules/next/dist/telemetry/events/version.js +66 -0
  1372. package/dist/standalone/node_modules/next/dist/telemetry/flush-telemetry.js +19 -0
  1373. package/dist/standalone/node_modules/next/dist/telemetry/post-telemetry-payload.js +48 -0
  1374. package/dist/standalone/node_modules/next/dist/telemetry/project-id.js +48 -0
  1375. package/dist/standalone/node_modules/next/dist/telemetry/storage.js +301 -0
  1376. package/dist/standalone/node_modules/next/dist/trace/index.js +54 -0
  1377. package/dist/standalone/node_modules/next/dist/trace/report/index.js +37 -0
  1378. package/dist/standalone/node_modules/next/dist/trace/report/to-json-build.js +137 -0
  1379. package/dist/standalone/node_modules/next/dist/trace/report/to-json.js +151 -0
  1380. package/dist/standalone/node_modules/next/dist/trace/report/to-telemetry.js +36 -0
  1381. package/dist/standalone/node_modules/next/dist/trace/shared.js +39 -0
  1382. package/dist/standalone/node_modules/next/dist/trace/trace.js +197 -0
  1383. package/dist/standalone/node_modules/next/package.json +380 -0
  1384. package/dist/standalone/node_modules/react/cjs/react-compiler-runtime.production.js +16 -0
  1385. package/dist/standalone/node_modules/react/cjs/react-jsx-dev-runtime.production.js +14 -0
  1386. package/dist/standalone/node_modules/react/cjs/react-jsx-runtime.production.js +34 -0
  1387. package/dist/standalone/node_modules/react/cjs/react.production.js +542 -0
  1388. package/dist/standalone/node_modules/react/compiler-runtime.js +14 -0
  1389. package/dist/standalone/node_modules/react/index.js +7 -0
  1390. package/dist/standalone/node_modules/react/jsx-dev-runtime.js +7 -0
  1391. package/dist/standalone/node_modules/react/jsx-runtime.js +7 -0
  1392. package/dist/standalone/node_modules/react/package.json +51 -0
  1393. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +6603 -0
  1394. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +6692 -0
  1395. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +7410 -0
  1396. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +7512 -0
  1397. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +7707 -0
  1398. package/dist/standalone/node_modules/react-dom/cjs/react-dom.production.js +210 -0
  1399. package/dist/standalone/node_modules/react-dom/index.js +38 -0
  1400. package/dist/standalone/node_modules/react-dom/package.json +117 -0
  1401. package/dist/standalone/node_modules/react-dom/server.browser.js +16 -0
  1402. package/dist/standalone/node_modules/react-dom/server.edge.js +17 -0
  1403. package/dist/standalone/node_modules/react-dom/server.node.js +18 -0
  1404. package/dist/standalone/node_modules/react-dom/static.node.js +14 -0
  1405. package/dist/standalone/node_modules/sharp/lib/channel.js +177 -0
  1406. package/dist/standalone/node_modules/sharp/lib/colour.js +195 -0
  1407. package/dist/standalone/node_modules/sharp/lib/composite.js +212 -0
  1408. package/dist/standalone/node_modules/sharp/lib/constructor.js +499 -0
  1409. package/dist/standalone/node_modules/sharp/lib/index.js +16 -0
  1410. package/dist/standalone/node_modules/sharp/lib/input.js +809 -0
  1411. package/dist/standalone/node_modules/sharp/lib/is.js +143 -0
  1412. package/dist/standalone/node_modules/sharp/lib/libvips.js +207 -0
  1413. package/dist/standalone/node_modules/sharp/lib/operation.js +1016 -0
  1414. package/dist/standalone/node_modules/sharp/lib/output.js +1666 -0
  1415. package/dist/standalone/node_modules/sharp/lib/resize.js +595 -0
  1416. package/dist/standalone/node_modules/sharp/lib/sharp.js +121 -0
  1417. package/dist/standalone/node_modules/sharp/lib/utility.js +291 -0
  1418. package/dist/standalone/node_modules/sharp/node_modules/semver/classes/comparator.js +143 -0
  1419. package/dist/standalone/node_modules/sharp/node_modules/semver/classes/range.js +557 -0
  1420. package/dist/standalone/node_modules/sharp/node_modules/semver/classes/semver.js +333 -0
  1421. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/cmp.js +54 -0
  1422. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/coerce.js +62 -0
  1423. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/compare.js +7 -0
  1424. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/eq.js +5 -0
  1425. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/gt.js +5 -0
  1426. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/gte.js +5 -0
  1427. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/lt.js +5 -0
  1428. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/lte.js +5 -0
  1429. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/neq.js +5 -0
  1430. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/parse.js +18 -0
  1431. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/satisfies.js +12 -0
  1432. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/constants.js +37 -0
  1433. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/debug.js +11 -0
  1434. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/identifiers.js +29 -0
  1435. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/lrucache.js +42 -0
  1436. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/parse-options.js +17 -0
  1437. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/re.js +223 -0
  1438. package/dist/standalone/node_modules/sharp/node_modules/semver/package.json +78 -0
  1439. package/dist/standalone/node_modules/sharp/package.json +202 -0
  1440. package/dist/standalone/node_modules/styled-jsx/dist/index/index.js +499 -0
  1441. package/dist/standalone/node_modules/styled-jsx/index.js +1 -0
  1442. package/dist/standalone/node_modules/styled-jsx/package.json +132 -0
  1443. package/dist/standalone/node_modules/styled-jsx/style.js +1 -0
  1444. package/dist/standalone/package.json +72 -0
  1445. package/dist/standalone/public/file.svg +1 -0
  1446. package/dist/standalone/public/globe.svg +1 -0
  1447. package/dist/standalone/public/next.svg +1 -0
  1448. package/dist/standalone/public/vercel.svg +1 -0
  1449. package/dist/standalone/public/window.svg +1 -0
  1450. package/dist/standalone/server.js +44 -0
  1451. package/package.json +72 -0
@@ -0,0 +1,2677 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ 0 && (module.exports = {
6
+ createStaticWorker: null,
7
+ default: null
8
+ });
9
+ function _export(target, all) {
10
+ for(var name in all)Object.defineProperty(target, name, {
11
+ enumerable: true,
12
+ get: all[name]
13
+ });
14
+ }
15
+ _export(exports, {
16
+ createStaticWorker: function() {
17
+ return createStaticWorker;
18
+ },
19
+ default: function() {
20
+ return build;
21
+ }
22
+ });
23
+ require("../lib/setup-exception-listeners");
24
+ const _env = require("@next/env");
25
+ const _picocolors = require("../lib/picocolors");
26
+ const _picomatch = require("next/dist/compiled/picomatch");
27
+ const _fs = require("fs");
28
+ const _os = /*#__PURE__*/ _interop_require_default(require("os"));
29
+ const _worker = require("../lib/worker");
30
+ const _configshared = require("../server/config-shared");
31
+ const _devalue = /*#__PURE__*/ _interop_require_default(require("next/dist/compiled/devalue"));
32
+ const _findup = /*#__PURE__*/ _interop_require_default(require("next/dist/compiled/find-up"));
33
+ const _indexcjs = require("next/dist/compiled/nanoid/index.cjs");
34
+ const _path = /*#__PURE__*/ _interop_require_default(require("path"));
35
+ const _constants = require("../lib/constants");
36
+ const _fileexists = require("../lib/file-exists");
37
+ const _findpagesdir = require("../lib/find-pages-dir");
38
+ const _loadcustomroutes = /*#__PURE__*/ _interop_require_wildcard(require("../lib/load-custom-routes"));
39
+ const _nonnullable = require("../lib/non-nullable");
40
+ const _recursivedelete = require("../lib/recursive-delete");
41
+ const _verifypartytownsetup = require("../lib/verify-partytown-setup");
42
+ const _constants1 = require("../shared/lib/constants");
43
+ const _entryconstants = require("../shared/lib/entry-constants");
44
+ const _utils = require("../shared/lib/router/utils");
45
+ const _bundler = require("../lib/bundler");
46
+ const _config = /*#__PURE__*/ _interop_require_default(require("../server/config"));
47
+ const _normalizepagepath = require("../shared/lib/page-path/normalize-page-path");
48
+ const _require = require("../server/require");
49
+ const _ciinfo = /*#__PURE__*/ _interop_require_wildcard(require("../server/ci-info"));
50
+ const _turborepoaccesstrace = require("./turborepo-access-trace");
51
+ const _events = require("../telemetry/events");
52
+ const _storage = require("../telemetry/storage");
53
+ const _entries = require("./entries");
54
+ const _sortbypageexts = require("./sort-by-page-exts");
55
+ const _getstaticinfoincludinglayouts = require("./get-static-info-including-layouts");
56
+ const _pagetypes = require("../lib/page-types");
57
+ const _generatebuildid = require("./generate-build-id");
58
+ const _iswriteable = require("./is-writeable");
59
+ const _log = /*#__PURE__*/ _interop_require_wildcard(require("./output/log"));
60
+ const _spinner = /*#__PURE__*/ _interop_require_default(require("./spinner"));
61
+ const _trace = require("../trace");
62
+ const _utils1 = require("./utils");
63
+ const _writebuildid = require("./write-build-id");
64
+ const _normalizelocalepath = require("../shared/lib/i18n/normalize-locale-path");
65
+ const _iserror = /*#__PURE__*/ _interop_require_default(require("../lib/is-error"));
66
+ const _isedgeruntime = require("../lib/is-edge-runtime");
67
+ const _recursivecopy = require("../lib/recursive-copy");
68
+ const _swc = require("./swc");
69
+ const _installbindings = require("./swc/install-bindings");
70
+ const _routeregex = require("../shared/lib/router/utils/route-regex");
71
+ const _getfilesindir = require("../lib/get-files-in-dir");
72
+ const _swcplugins = require("../telemetry/events/swc-plugins");
73
+ const _apppaths = require("../shared/lib/router/utils/app-paths");
74
+ const _approuterheaders = require("../client/components/app-router-headers");
75
+ const _webpackbuild = require("./webpack-build");
76
+ const _buildcontext = require("./build-context");
77
+ const _normalizepathsep = require("../shared/lib/page-path/normalize-path-sep");
78
+ const _isapprouteroute = require("../lib/is-app-route-route");
79
+ const _createclientrouterfilter = require("../lib/create-client-router-filter");
80
+ const _findpagefile = require("../server/lib/find-page-file");
81
+ const _typecheck = require("./type-check");
82
+ const _generateinterceptionroutesrewrites = require("../lib/generate-interception-routes-rewrites");
83
+ const _builddataroute = require("../server/lib/router-utils/build-data-route");
84
+ const _collectbuildtraces = require("./collect-build-traces");
85
+ const _formatmanifest = require("./manifests/formatter/format-manifest");
86
+ const _builddiagnostics = require("../diagnostics/build-diagnostics");
87
+ const _appinfolog = require("../server/lib/app-info-log");
88
+ const _utils2 = require("../export/utils");
89
+ const _trace1 = require("../lib/memory/trace");
90
+ const _encryptionutilsserver = require("../server/app-render/encryption-utils-server");
91
+ const _uploadtrace = /*#__PURE__*/ _interop_require_default(require("../trace/upload-trace"));
92
+ const _ppr = require("../server/lib/experimental/ppr");
93
+ const _fallback = require("../lib/fallback");
94
+ const _renderingmode = require("./rendering-mode");
95
+ const _invarianterror = require("../shared/lib/invariant-error");
96
+ const _isbot = require("../shared/lib/router/utils/is-bot");
97
+ const _turbopackbuild = require("./turbopack-build");
98
+ const _utils3 = require("../shared/lib/turbopack/utils");
99
+ const _inlinestaticenv = require("../lib/inline-static-env");
100
+ const _staticenv = require("../lib/static-env");
101
+ const _durationtostring = require("./duration-to-string");
102
+ const _shared = require("../trace/shared");
103
+ const _errortelemetryutils = require("../lib/error-telemetry-utils");
104
+ const _afterproductioncompile = require("./after-production-compile");
105
+ const _previewkeyutils = require("./preview-key-utils");
106
+ const _buildcomplete = require("./adapter/build-complete");
107
+ const _sortableroutes = require("../shared/lib/router/utils/sortable-routes");
108
+ const _promises = require("fs/promises");
109
+ const _routetypesutils = require("../server/lib/router-utils/route-types-utils");
110
+ const _lockfile = require("./lockfile");
111
+ const _buildprefetchsegmentdataroute = require("../server/lib/router-utils/build-prefetch-segment-data-route");
112
+ const _generateroutesmanifest = require("./generate-routes-manifest");
113
+ const _validateapppaths = require("./validate-app-paths");
114
+ function _interop_require_default(obj) {
115
+ return obj && obj.__esModule ? obj : {
116
+ default: obj
117
+ };
118
+ }
119
+ function _getRequireWildcardCache(nodeInterop) {
120
+ if (typeof WeakMap !== "function") return null;
121
+ var cacheBabelInterop = new WeakMap();
122
+ var cacheNodeInterop = new WeakMap();
123
+ return (_getRequireWildcardCache = function(nodeInterop) {
124
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
125
+ })(nodeInterop);
126
+ }
127
+ function _interop_require_wildcard(obj, nodeInterop) {
128
+ if (!nodeInterop && obj && obj.__esModule) {
129
+ return obj;
130
+ }
131
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
132
+ return {
133
+ default: obj
134
+ };
135
+ }
136
+ var cache = _getRequireWildcardCache(nodeInterop);
137
+ if (cache && cache.has(obj)) {
138
+ return cache.get(obj);
139
+ }
140
+ var newObj = {
141
+ __proto__: null
142
+ };
143
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
144
+ for(var key in obj){
145
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
146
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
147
+ if (desc && (desc.get || desc.set)) {
148
+ Object.defineProperty(newObj, key, desc);
149
+ } else {
150
+ newObj[key] = obj[key];
151
+ }
152
+ }
153
+ }
154
+ newObj.default = obj;
155
+ if (cache) {
156
+ cache.set(obj, newObj);
157
+ }
158
+ return newObj;
159
+ }
160
+ /**
161
+ * The headers that are allowed to be used when revalidating routes. Currently
162
+ * this includes both headers used by the pages and app routers.
163
+ */ const ALLOWED_HEADERS = [
164
+ 'host',
165
+ _constants.MATCHED_PATH_HEADER,
166
+ _constants.PRERENDER_REVALIDATE_HEADER,
167
+ _constants.PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER,
168
+ _constants.NEXT_CACHE_REVALIDATED_TAGS_HEADER,
169
+ _constants.NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER
170
+ ];
171
+ function getCacheDir(distDir) {
172
+ const cacheDir = _path.default.join(distDir, 'cache');
173
+ if (_ciinfo.isCI && !_ciinfo.hasNextSupport) {
174
+ const hasCache = (0, _fs.existsSync)(cacheDir);
175
+ if (!hasCache) {
176
+ // Intentionally not piping to stderr which is what `Log.warn` does in case people fail in CI when
177
+ // stderr is detected.
178
+ console.log(`${_log.prefixes.warn} No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache`);
179
+ }
180
+ }
181
+ return cacheDir;
182
+ }
183
+ async function writeFileUtf8(filePath, content) {
184
+ await _fs.promises.writeFile(filePath, content, 'utf-8');
185
+ }
186
+ function readFileUtf8(filePath) {
187
+ return _fs.promises.readFile(filePath, 'utf8');
188
+ }
189
+ async function writeManifest(filePath, manifest) {
190
+ await writeFileUtf8(filePath, (0, _formatmanifest.formatManifest)(manifest));
191
+ }
192
+ async function readManifest(filePath) {
193
+ return JSON.parse(await readFileUtf8(filePath));
194
+ }
195
+ async function writePrerenderManifest(distDir, manifest) {
196
+ await writeManifest(_path.default.join(distDir, _constants1.PRERENDER_MANIFEST), manifest);
197
+ }
198
+ async function writeClientSsgManifest(prerenderManifest, { buildId, distDir, locales }) {
199
+ const ssgPages = new Set([
200
+ ...Object.entries(prerenderManifest.routes)// Filter out dynamic routes
201
+ .filter(([, { srcRoute }])=>srcRoute == null).map(([route])=>(0, _normalizelocalepath.normalizeLocalePath)(route, locales).pathname),
202
+ ...Object.keys(prerenderManifest.dynamicRoutes)
203
+ ].sort());
204
+ const clientSsgManifestContent = `self.__SSG_MANIFEST=${(0, _devalue.default)(ssgPages)};self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()`;
205
+ await writeFileUtf8(_path.default.join(distDir, _constants1.CLIENT_STATIC_FILES_PATH, buildId, '_ssgManifest.js'), clientSsgManifestContent);
206
+ }
207
+ async function writeFunctionsConfigManifest(distDir, manifest) {
208
+ let sortedManifest = {
209
+ version: manifest.version,
210
+ functions: Object.fromEntries(Object.entries(manifest.functions).sort(([a], [b])=>a.localeCompare(b)))
211
+ };
212
+ await writeManifest(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.FUNCTIONS_CONFIG_MANIFEST), sortedManifest);
213
+ }
214
+ async function writeRequiredServerFilesManifest(distDir, requiredServerFiles) {
215
+ await writeManifest(_path.default.join(distDir, _constants1.SERVER_FILES_MANIFEST + '.json'), requiredServerFiles);
216
+ await writeFileUtf8(_path.default.join(distDir, _constants1.SERVER_FILES_MANIFEST + '.js'), `self.__SERVER_FILES_MANIFEST=${(0, _formatmanifest.formatManifest)(requiredServerFiles)}`);
217
+ }
218
+ async function writeImagesManifest(distDir, config) {
219
+ var _config_images, _config_images1;
220
+ const images = {
221
+ ...config.images
222
+ };
223
+ const { deviceSizes, imageSizes } = images;
224
+ images.sizes = [
225
+ ...deviceSizes,
226
+ ...imageSizes
227
+ ];
228
+ // By default, remotePatterns will allow no remote images ([])
229
+ images.remotePatterns = ((config == null ? void 0 : (_config_images = config.images) == null ? void 0 : _config_images.remotePatterns) || []).map((p)=>{
230
+ var _p_protocol;
231
+ return {
232
+ // Modifying the manifest should also modify matchRemotePattern()
233
+ protocol: (_p_protocol = p.protocol) == null ? void 0 : _p_protocol.replace(/:$/, ''),
234
+ hostname: (0, _picomatch.makeRe)(p.hostname).source,
235
+ port: p.port,
236
+ pathname: (0, _picomatch.makeRe)(p.pathname ?? '**', {
237
+ dot: true
238
+ }).source,
239
+ search: p.search
240
+ };
241
+ });
242
+ // By default, localPatterns will allow all local images (undefined)
243
+ if (config == null ? void 0 : (_config_images1 = config.images) == null ? void 0 : _config_images1.localPatterns) {
244
+ images.localPatterns = config.images.localPatterns.map((p)=>({
245
+ // Modifying the manifest should also modify matchLocalPattern()
246
+ pathname: (0, _picomatch.makeRe)(p.pathname ?? '**', {
247
+ dot: true
248
+ }).source,
249
+ search: p.search
250
+ }));
251
+ }
252
+ await writeManifest(_path.default.join(distDir, _constants1.IMAGES_MANIFEST), {
253
+ version: 1,
254
+ images
255
+ });
256
+ }
257
+ const STANDALONE_DIRECTORY = 'standalone';
258
+ async function writeStandaloneDirectory(nextBuildSpan, distDir, pageKeys, denormalizedAppPages, outputFileTracingRoot, requiredServerFiles, middlewareManifest, hasNodeMiddleware, hasInstrumentationHook, staticPages, loadedEnvFiles, appDir) {
259
+ await nextBuildSpan.traceChild('write-standalone-directory').traceAsyncFn(async ()=>{
260
+ await (0, _utils1.copyTracedFiles)(// requiredServerFiles.appDir Refers to the application directory, not App Router.
261
+ requiredServerFiles.appDir, distDir, pageKeys.pages, denormalizedAppPages, outputFileTracingRoot, requiredServerFiles.config, middlewareManifest, hasNodeMiddleware, hasInstrumentationHook, staticPages);
262
+ for (const file of [
263
+ ...requiredServerFiles.files,
264
+ _path.default.join(requiredServerFiles.config.distDir, _constants1.SERVER_FILES_MANIFEST + '.json'),
265
+ ...loadedEnvFiles.reduce((acc, envFile)=>{
266
+ if ([
267
+ '.env',
268
+ '.env.production'
269
+ ].includes(envFile.path)) {
270
+ acc.push(envFile.path);
271
+ }
272
+ return acc;
273
+ }, [])
274
+ ]){
275
+ // requiredServerFiles.appDir Refers to the application directory, not App Router.
276
+ const filePath = _path.default.join(requiredServerFiles.appDir, file);
277
+ const outputPath = _path.default.join(distDir, STANDALONE_DIRECTORY, _path.default.relative(outputFileTracingRoot, filePath));
278
+ await _fs.promises.mkdir(_path.default.dirname(outputPath), {
279
+ recursive: true
280
+ });
281
+ await _fs.promises.copyFile(filePath, outputPath);
282
+ }
283
+ if (hasNodeMiddleware) {
284
+ const middlewareOutput = _path.default.join(distDir, STANDALONE_DIRECTORY, _path.default.relative(outputFileTracingRoot, distDir), _constants1.SERVER_DIRECTORY, 'middleware.js');
285
+ await _fs.promises.mkdir(_path.default.dirname(middlewareOutput), {
286
+ recursive: true
287
+ });
288
+ await _fs.promises.copyFile(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'middleware.js'), middlewareOutput);
289
+ }
290
+ const originalPagesDir = _path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'pages');
291
+ if ((0, _fs.existsSync)(originalPagesDir)) {
292
+ await (0, _recursivecopy.recursiveCopy)(originalPagesDir, _path.default.join(distDir, STANDALONE_DIRECTORY, _path.default.relative(outputFileTracingRoot, distDir), _constants1.SERVER_DIRECTORY, 'pages'), {
293
+ overwrite: true
294
+ });
295
+ }
296
+ if (appDir) {
297
+ const originalServerApp = _path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'app');
298
+ if ((0, _fs.existsSync)(originalServerApp)) {
299
+ await (0, _recursivecopy.recursiveCopy)(originalServerApp, _path.default.join(distDir, STANDALONE_DIRECTORY, _path.default.relative(outputFileTracingRoot, distDir), _constants1.SERVER_DIRECTORY, 'app'), {
300
+ overwrite: true
301
+ });
302
+ }
303
+ }
304
+ });
305
+ }
306
+ function getNumberOfWorkers(config) {
307
+ if (config.experimental.cpus && config.experimental.cpus !== _configshared.defaultConfig.experimental.cpus) {
308
+ return config.experimental.cpus;
309
+ }
310
+ if (config.experimental.memoryBasedWorkersCount) {
311
+ return Math.max(Math.min(config.experimental.cpus || 1, Math.floor(_os.default.freemem() / 1e9)), // enforce a minimum of 4 workers
312
+ 4);
313
+ }
314
+ if (config.experimental.cpus) {
315
+ return config.experimental.cpus;
316
+ }
317
+ // Fall back to 4 workers if a count is not specified
318
+ return 4;
319
+ }
320
+ const staticWorkerPath = require.resolve('./worker');
321
+ const staticWorkerExposedMethods = [
322
+ 'hasCustomGetInitialProps',
323
+ 'isPageStatic',
324
+ 'getDefinedNamedExports',
325
+ 'exportPages'
326
+ ];
327
+ function createStaticWorker(config, options) {
328
+ const { numberOfWorkers, debuggerPortOffset, progress } = options;
329
+ return new _worker.Worker(staticWorkerPath, {
330
+ logger: _log,
331
+ numWorkers: numberOfWorkers,
332
+ onActivity: ()=>{
333
+ progress == null ? void 0 : progress.run();
334
+ },
335
+ onActivityAbort: ()=>{
336
+ progress == null ? void 0 : progress.clear();
337
+ },
338
+ debuggerPortOffset,
339
+ enableSourceMaps: config.enablePrerenderSourceMaps,
340
+ // remove --max-old-space-size flag as it can cause memory issues.
341
+ isolatedMemory: true,
342
+ enableWorkerThreads: config.experimental.workerThreads,
343
+ exposedMethods: staticWorkerExposedMethods
344
+ });
345
+ }
346
+ async function writeFullyStaticExport(config, dir, enabledDirectories, configOutDir, nextBuildSpan, appDirOnly) {
347
+ const exportApp = require('../export').default;
348
+ await exportApp(dir, {
349
+ buildExport: false,
350
+ nextConfig: config,
351
+ enabledDirectories,
352
+ silent: true,
353
+ outdir: _path.default.join(dir, configOutDir),
354
+ numWorkers: getNumberOfWorkers(config),
355
+ appDirOnly
356
+ }, nextBuildSpan);
357
+ }
358
+ async function getBuildId(isGenerateMode, distDir, nextBuildSpan, config) {
359
+ if (isGenerateMode) {
360
+ return await _fs.promises.readFile(_path.default.join(distDir, 'BUILD_ID'), 'utf8');
361
+ }
362
+ return await nextBuildSpan.traceChild('generate-buildid').traceAsyncFn(()=>(0, _generatebuildid.generateBuildId)(config.generateBuildId, _indexcjs.nanoid));
363
+ }
364
+ async function build(dir, experimentalAnalyze = false, reactProductionProfiling = false, debugOutput = false, debugPrerender = false, noMangling = false, appDirOnly = false, bundler = _bundler.Bundler.Turbopack, experimentalBuildMode, traceUploadUrl, debugBuildAppPaths, debugBuildPagePaths) {
365
+ const isCompileMode = experimentalBuildMode === 'compile';
366
+ const isGenerateMode = experimentalBuildMode === 'generate';
367
+ _buildcontext.NextBuildContext.isCompileMode = isCompileMode;
368
+ _buildcontext.NextBuildContext.analyze = experimentalAnalyze;
369
+ const buildStartTime = Date.now();
370
+ let appType;
371
+ let loadedConfig;
372
+ let staticWorker;
373
+ try {
374
+ const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
375
+ buildMode: experimentalBuildMode,
376
+ version: "16.1.1"
377
+ });
378
+ _buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
379
+ _buildcontext.NextBuildContext.dir = dir;
380
+ _buildcontext.NextBuildContext.appDirOnly = appDirOnly;
381
+ _buildcontext.NextBuildContext.reactProductionProfiling = reactProductionProfiling;
382
+ _buildcontext.NextBuildContext.noMangling = noMangling;
383
+ _buildcontext.NextBuildContext.debugPrerender = debugPrerender;
384
+ await nextBuildSpan.traceAsyncFn(async ()=>{
385
+ var _config_experimental, _mappedPages_404, _mappedPages__error;
386
+ // attempt to load global env values so they are available in next.config.js
387
+ const { loadedEnvFiles } = nextBuildSpan.traceChild('load-dotenv').traceFn(()=>(0, _env.loadEnvConfig)(dir, false, _log));
388
+ _buildcontext.NextBuildContext.loadedEnvFiles = loadedEnvFiles;
389
+ const turborepoAccessTraceResult = new _turborepoaccesstrace.TurborepoAccessTraceResult();
390
+ const config = await nextBuildSpan.traceChild('load-next-config').traceAsyncFn(()=>(0, _turborepoaccesstrace.turborepoTraceAccess)(()=>(0, _config.default)(_constants1.PHASE_PRODUCTION_BUILD, dir, {
391
+ // Log for next.config loading process
392
+ silent: false,
393
+ reactProductionProfiling,
394
+ debugPrerender
395
+ }), turborepoAccessTraceResult));
396
+ loadedConfig = config;
397
+ // Reading the config can modify environment variables that influence the bundler selection.
398
+ bundler = (0, _bundler.finalizeBundlerFromConfig)(bundler);
399
+ nextBuildSpan.setAttribute('bundler', getBundlerForTelemetry(bundler));
400
+ // Install the native bindings early so we can have synchronous access later.
401
+ await (0, _installbindings.installBindings)((_config_experimental = config.experimental) == null ? void 0 : _config_experimental.useWasmBinary);
402
+ process.env.NEXT_DEPLOYMENT_ID = config.deploymentId || '';
403
+ _buildcontext.NextBuildContext.config = config;
404
+ let configOutDir = 'out';
405
+ if ((0, _utils2.hasCustomExportOutput)(config)) {
406
+ configOutDir = config.distDir;
407
+ config.distDir = '.next';
408
+ }
409
+ const distDir = _path.default.join(dir, config.distDir);
410
+ _buildcontext.NextBuildContext.distDir = distDir;
411
+ (0, _trace.setGlobal)('phase', _constants1.PHASE_PRODUCTION_BUILD);
412
+ (0, _trace.setGlobal)('distDir', distDir);
413
+ const buildId = await getBuildId(isGenerateMode, distDir, nextBuildSpan, config);
414
+ _buildcontext.NextBuildContext.buildId = buildId;
415
+ if (experimentalBuildMode === 'generate-env') {
416
+ if (bundler === _bundler.Bundler.Turbopack) {
417
+ _log.warn('generate-env is not needed with turbopack');
418
+ process.exit(0);
419
+ }
420
+ _log.info('Inlining static env ...');
421
+ await nextBuildSpan.traceChild('inline-static-env').traceAsyncFn(async ()=>{
422
+ await (0, _inlinestaticenv.inlineStaticEnv)({
423
+ distDir,
424
+ config
425
+ });
426
+ });
427
+ _log.info('Complete');
428
+ await (0, _trace.flushAllTraces)();
429
+ (0, _swc.teardownTraceSubscriber)();
430
+ process.exit(0);
431
+ }
432
+ // when using compile mode static env isn't inlined so we
433
+ // need to populate in normal runtime env
434
+ if (isCompileMode || isGenerateMode) {
435
+ (0, _staticenv.populateStaticEnv)(config, config.deploymentId);
436
+ }
437
+ const customRoutes = await nextBuildSpan.traceChild('load-custom-routes').traceAsyncFn(()=>(0, _loadcustomroutes.default)(config));
438
+ const { headers, rewrites, redirects } = customRoutes;
439
+ const combinedRewrites = [
440
+ ...rewrites.beforeFiles,
441
+ ...rewrites.afterFiles,
442
+ ...rewrites.fallback
443
+ ];
444
+ const hasRewrites = combinedRewrites.length > 0;
445
+ _buildcontext.NextBuildContext.hasRewrites = hasRewrites;
446
+ _buildcontext.NextBuildContext.originalRewrites = config._originalRewrites;
447
+ _buildcontext.NextBuildContext.originalRedirects = config._originalRedirects;
448
+ const distDirCreated = await nextBuildSpan.traceChild('create-dist-dir').traceAsyncFn(async ()=>{
449
+ try {
450
+ await _fs.promises.mkdir(distDir, {
451
+ recursive: true
452
+ });
453
+ return true;
454
+ } catch (err) {
455
+ if ((0, _iserror.default)(err) && err.code === 'EPERM') {
456
+ return false;
457
+ }
458
+ throw err;
459
+ }
460
+ });
461
+ if (!distDirCreated || !await (0, _iswriteable.isWriteable)(distDir)) {
462
+ throw Object.defineProperty(new Error('> Build directory is not writeable. https://nextjs.org/docs/messages/build-dir-not-writeable'), "__NEXT_ERROR_CODE", {
463
+ value: "E202",
464
+ enumerable: false,
465
+ configurable: true
466
+ });
467
+ }
468
+ if (config.experimental.lockDistDir) {
469
+ // This leaks the lock file descriptor. That's okay, it'll be cleaned up by the OS upon
470
+ // process exit.
471
+ await _lockfile.Lockfile.acquireWithRetriesOrExit(_path.default.join(distDir, 'lock'), 'next build');
472
+ }
473
+ if (config.cleanDistDir && !isGenerateMode) {
474
+ await nextBuildSpan.traceChild('clean').traceAsyncFn(()=>(0, _recursivedelete.recursiveDeleteSyncWithAsyncRetries)(distDir, /^(cache|dev|lock)/));
475
+ }
476
+ const cacheDir = getCacheDir(distDir);
477
+ const telemetry = new _storage.Telemetry({
478
+ distDir
479
+ });
480
+ (0, _trace.setGlobal)('telemetry', telemetry);
481
+ const publicDir = _path.default.join(dir, 'public');
482
+ const { pagesDir, appDir } = (0, _findpagesdir.findPagesDir)(dir);
483
+ if (pagesDir && appDir) {
484
+ appType = 'hybrid';
485
+ } else if (pagesDir) {
486
+ appType = 'pages';
487
+ } else if (appDir) {
488
+ appType = 'app';
489
+ }
490
+ if (!appDirOnly && !pagesDir) {
491
+ appDirOnly = true;
492
+ }
493
+ _buildcontext.NextBuildContext.pagesDir = pagesDir;
494
+ _buildcontext.NextBuildContext.appDir = appDir;
495
+ const enabledDirectories = {
496
+ app: typeof appDir === 'string',
497
+ pages: typeof pagesDir === 'string'
498
+ };
499
+ // Generate a random encryption key for this build.
500
+ // This key is used to encrypt cross boundary values and can be used to generate hashes.
501
+ const encryptionKey = await (0, _encryptionutilsserver.generateEncryptionKeyBase64)({
502
+ isBuild: true,
503
+ distDir
504
+ });
505
+ _buildcontext.NextBuildContext.encryptionKey = encryptionKey;
506
+ const isSrcDir = _path.default.relative(dir, pagesDir || appDir || '').startsWith('src');
507
+ const hasPublicDir = (0, _fs.existsSync)(publicDir);
508
+ telemetry.record((0, _events.eventCliSession)(config, {
509
+ webpackVersion: 5,
510
+ cliCommand: 'build',
511
+ isSrcDir,
512
+ hasNowJson: !!await (0, _findup.default)('now.json', {
513
+ cwd: dir
514
+ }),
515
+ isCustomServer: null,
516
+ turboFlag: false,
517
+ pagesDir: !!pagesDir,
518
+ appDir: !!appDir
519
+ }));
520
+ (0, _events.eventNextPlugins)(_path.default.resolve(dir)).then((events)=>telemetry.record(events));
521
+ (0, _swcplugins.eventSwcPlugins)(_path.default.resolve(dir), config).then((events)=>telemetry.record(events));
522
+ // Always log next version first then start rest jobs
523
+ const { envInfo, experimentalFeatures, cacheComponents } = await (0, _appinfolog.getStartServerInfo)({
524
+ dir,
525
+ dev: false,
526
+ debugPrerender
527
+ });
528
+ (0, _appinfolog.logStartInfo)({
529
+ networkUrl: null,
530
+ appUrl: null,
531
+ envInfo,
532
+ experimentalFeatures,
533
+ logBundler: true,
534
+ cacheComponents
535
+ });
536
+ const typeCheckingOptions = {
537
+ dir,
538
+ appDir,
539
+ pagesDir,
540
+ telemetry,
541
+ nextBuildSpan,
542
+ config,
543
+ cacheDir,
544
+ debugBuildPaths: debugBuildAppPaths !== undefined || debugBuildPagePaths !== undefined ? {
545
+ app: debugBuildAppPaths,
546
+ pages: debugBuildPagePaths
547
+ } : undefined
548
+ };
549
+ if (appDir && 'exportPathMap' in config) {
550
+ const errorMessage = 'The "exportPathMap" configuration cannot be used with the "app" directory. Please use generateStaticParams() instead.';
551
+ _log.error(errorMessage);
552
+ await telemetry.flush();
553
+ throw Object.defineProperty(new Error(errorMessage), "__NEXT_ERROR_CODE", {
554
+ value: "E394",
555
+ enumerable: false,
556
+ configurable: true
557
+ });
558
+ }
559
+ const validFileMatcher = (0, _findpagefile.createValidFileMatcher)(config.pageExtensions, appDir);
560
+ const providedPagePaths = JSON.parse(process.env.NEXT_PRIVATE_PAGE_PATHS || '[]');
561
+ let pagesPaths = Boolean(process.env.NEXT_PRIVATE_PAGE_PATHS) ? providedPagePaths : !appDirOnly && pagesDir ? await nextBuildSpan.traceChild('collect-pages').traceAsyncFn(()=>(0, _entries.collectPagesFiles)(pagesDir, validFileMatcher)) : [];
562
+ // Apply debug build paths filter if specified
563
+ // If debugBuildPagePaths is defined (even if empty), only build specified pages
564
+ if (debugBuildPagePaths !== undefined) {
565
+ if (debugBuildPagePaths.length > 0) {
566
+ const debugPathsSet = new Set(debugBuildPagePaths);
567
+ pagesPaths = pagesPaths.filter((pagePath)=>debugPathsSet.has(pagePath));
568
+ } else {
569
+ // Empty array means build no pages
570
+ pagesPaths = [];
571
+ }
572
+ }
573
+ const middlewareDetectionRegExp = new RegExp(`^${_constants.MIDDLEWARE_FILENAME}\\.(?:${config.pageExtensions.join('|')})$`);
574
+ const proxyDetectionRegExp = new RegExp(`^${_constants.PROXY_FILENAME}\\.(?:${config.pageExtensions.join('|')})$`);
575
+ const instrumentationHookDetectionRegExp = new RegExp(`^${_constants.INSTRUMENTATION_HOOK_FILENAME}\\.(?:${config.pageExtensions.join('|')})$`);
576
+ const rootDir = _path.default.join(pagesDir || appDir, '..');
577
+ const includes = [
578
+ middlewareDetectionRegExp,
579
+ proxyDetectionRegExp,
580
+ instrumentationHookDetectionRegExp
581
+ ];
582
+ const rootPaths = Array.from(await (0, _getfilesindir.getFilesInDir)(rootDir)).filter((file)=>includes.some((include)=>include.test(file))).sort((0, _sortbypageexts.sortByPageExts)(config.pageExtensions)).map((file)=>_path.default.join(rootDir, file).replace(dir, ''));
583
+ let instrumentationHookFilePath;
584
+ let proxyFilePath;
585
+ let middlewareFilePath;
586
+ for (const rootPath of rootPaths){
587
+ const { name: fileBaseName, dir: fileDir } = _path.default.parse(rootPath);
588
+ const normalizedFileDir = (0, _normalizepathsep.normalizePathSep)(fileDir);
589
+ const isAtConventionLevel = normalizedFileDir === '/' || normalizedFileDir === '/src';
590
+ if (isAtConventionLevel && fileBaseName === _constants.MIDDLEWARE_FILENAME) {
591
+ middlewareFilePath = rootPath;
592
+ }
593
+ if (isAtConventionLevel && fileBaseName === _constants.PROXY_FILENAME) {
594
+ proxyFilePath = rootPath;
595
+ }
596
+ if (isAtConventionLevel && fileBaseName === _constants.INSTRUMENTATION_HOOK_FILENAME) {
597
+ instrumentationHookFilePath = rootPath;
598
+ }
599
+ }
600
+ if (middlewareFilePath) {
601
+ if (proxyFilePath) {
602
+ const cwd = process.cwd();
603
+ const absoluteProxyPath = _path.default.join(rootDir, proxyFilePath);
604
+ const absoluteMiddlewarePath = _path.default.join(rootDir, middlewareFilePath);
605
+ throw Object.defineProperty(new Error(`Both ${_constants.MIDDLEWARE_FILENAME} file "./${_path.default.relative(cwd, absoluteMiddlewarePath)}" and ${_constants.PROXY_FILENAME} file "./${_path.default.relative(cwd, absoluteProxyPath)}" are detected. Please use "./${_path.default.relative(cwd, absoluteProxyPath)}" only. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy`), "__NEXT_ERROR_CODE", {
606
+ value: "E900",
607
+ enumerable: false,
608
+ configurable: true
609
+ });
610
+ }
611
+ _log.warnOnce(`The "${_constants.MIDDLEWARE_FILENAME}" file convention is deprecated. Please use "${_constants.PROXY_FILENAME}" instead. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy`);
612
+ }
613
+ const hasInstrumentationHook = Boolean(instrumentationHookFilePath);
614
+ const hasMiddlewareFile = Boolean(middlewareFilePath);
615
+ const hasProxyFile = Boolean(proxyFilePath);
616
+ _buildcontext.NextBuildContext.hasInstrumentationHook = hasInstrumentationHook;
617
+ const previewProps = await (0, _previewkeyutils.generatePreviewKeys)({
618
+ isBuild: true,
619
+ distDir
620
+ });
621
+ _buildcontext.NextBuildContext.previewProps = previewProps;
622
+ const mappedPages = await nextBuildSpan.traceChild('create-pages-mapping').traceAsyncFn(()=>(0, _entries.createPagesMapping)({
623
+ isDev: false,
624
+ pageExtensions: config.pageExtensions,
625
+ pagesType: _pagetypes.PAGE_TYPES.PAGES,
626
+ pagePaths: pagesPaths,
627
+ pagesDir,
628
+ appDir,
629
+ appDirOnly
630
+ }));
631
+ _buildcontext.NextBuildContext.mappedPages = mappedPages;
632
+ // Update appDirOnly if no user pages routes are found
633
+ if (Object.keys(mappedPages).length === 0 && !appDirOnly) {
634
+ _buildcontext.NextBuildContext.appDirOnly = appDirOnly = true;
635
+ }
636
+ let mappedAppPages;
637
+ let mappedAppLayouts;
638
+ let denormalizedAppPages;
639
+ if (appDir) {
640
+ const providedAppPaths = JSON.parse(process.env.NEXT_PRIVATE_APP_PATHS || '[]');
641
+ let appPaths;
642
+ let layoutPaths;
643
+ if (Boolean(process.env.NEXT_PRIVATE_APP_PATHS)) {
644
+ // used for testing
645
+ appPaths = providedAppPaths;
646
+ layoutPaths = [];
647
+ } else {
648
+ // Collect app pages, layouts, and default files in a single directory traversal
649
+ const result = await nextBuildSpan.traceChild('collect-app-files').traceAsyncFn(()=>(0, _entries.collectAppFiles)(appDir, validFileMatcher));
650
+ appPaths = result.appPaths;
651
+ layoutPaths = result.layoutPaths;
652
+ // Apply debug build paths filter if specified
653
+ // If debugBuildAppPaths is defined (even if empty), only build specified app paths
654
+ if (debugBuildAppPaths !== undefined) {
655
+ if (debugBuildAppPaths.length > 0) {
656
+ const debugPathsSet = new Set(debugBuildAppPaths);
657
+ appPaths = appPaths.filter((appPath)=>debugPathsSet.has(appPath));
658
+ } else {
659
+ // Empty array means build no app paths
660
+ appPaths = [];
661
+ }
662
+ }
663
+ // Note: defaultPaths are not used in the build process, only for slot detection in generating route types
664
+ }
665
+ mappedAppPages = await nextBuildSpan.traceChild('create-app-mapping').traceAsyncFn(()=>(0, _entries.createPagesMapping)({
666
+ pagePaths: appPaths,
667
+ isDev: false,
668
+ pagesType: _pagetypes.PAGE_TYPES.APP,
669
+ pageExtensions: config.pageExtensions,
670
+ pagesDir,
671
+ appDir,
672
+ appDirOnly
673
+ }));
674
+ mappedAppLayouts = await nextBuildSpan.traceChild('create-app-layouts').traceAsyncFn(()=>(0, _entries.createPagesMapping)({
675
+ pagePaths: layoutPaths,
676
+ isDev: false,
677
+ pagesType: _pagetypes.PAGE_TYPES.APP,
678
+ pageExtensions: config.pageExtensions,
679
+ pagesDir,
680
+ appDir,
681
+ appDirOnly
682
+ }));
683
+ _buildcontext.NextBuildContext.mappedAppPages = mappedAppPages;
684
+ }
685
+ const mappedRootPaths = await (0, _entries.createPagesMapping)({
686
+ isDev: false,
687
+ pageExtensions: config.pageExtensions,
688
+ pagePaths: rootPaths,
689
+ pagesType: _pagetypes.PAGE_TYPES.ROOT,
690
+ pagesDir: pagesDir,
691
+ appDir,
692
+ appDirOnly
693
+ });
694
+ _buildcontext.NextBuildContext.mappedRootPaths = mappedRootPaths;
695
+ const pagesPageKeys = Object.keys(mappedPages);
696
+ const conflictingAppPagePaths = [];
697
+ const appPageKeys = new Set();
698
+ if (mappedAppPages) {
699
+ denormalizedAppPages = Object.keys(mappedAppPages);
700
+ for (const appKey of denormalizedAppPages){
701
+ const normalizedAppPageKey = (0, _apppaths.normalizeAppPath)(appKey);
702
+ const pagePath = mappedPages[normalizedAppPageKey];
703
+ if (pagePath) {
704
+ const appPath = mappedAppPages[appKey];
705
+ conflictingAppPagePaths.push([
706
+ pagePath.replace(/^private-next-pages/, 'pages'),
707
+ appPath.replace(/^private-next-app-dir/, 'app')
708
+ ]);
709
+ }
710
+ appPageKeys.add(normalizedAppPageKey);
711
+ }
712
+ }
713
+ const appPaths = Array.from(appPageKeys);
714
+ // Validate that the app paths are valid. This is currently duplicating
715
+ // the logic from packages/next/src/shared/lib/router/utils/sorted-routes.ts
716
+ // but is instead specifically focused on code that can be shared
717
+ // eventually with the development code.
718
+ (0, _validateapppaths.validateAppPaths)(appPaths);
719
+ // Interception routes are modelled as beforeFiles rewrites
720
+ rewrites.beforeFiles.push(...(0, _generateinterceptionroutesrewrites.generateInterceptionRoutesRewrites)(appPaths, config.basePath));
721
+ _buildcontext.NextBuildContext.rewrites = rewrites;
722
+ const totalAppPagesCount = appPaths.length;
723
+ const pageKeys = {
724
+ pages: pagesPageKeys,
725
+ app: appPaths.length > 0 ? appPaths : undefined
726
+ };
727
+ await nextBuildSpan.traceChild('generate-route-types').traceAsyncFn(async ()=>{
728
+ const routeTypesFilePath = _path.default.join(distDir, 'types', 'routes.d.ts');
729
+ const validatorFilePath = _path.default.join(distDir, 'types', 'validator.ts');
730
+ await (0, _promises.mkdir)(_path.default.dirname(routeTypesFilePath), {
731
+ recursive: true
732
+ });
733
+ let appRoutes = [];
734
+ let appRouteHandlers = [];
735
+ let layoutRoutes = [];
736
+ let slots = [];
737
+ const { pageRoutes, pageApiRoutes } = (0, _entries.processPageRoutes)(mappedPages, dir, isSrcDir);
738
+ // Build app routes
739
+ if (appDir && mappedAppPages) {
740
+ // Extract slots from both pages and default files
741
+ const slotsFromPages = (0, _entries.extractSlotsFromAppRoutes)(mappedAppPages);
742
+ let slotsFromDefaults = [];
743
+ // Collect and map default files for slot extraction
744
+ const { defaultPaths } = await nextBuildSpan.traceChild('collect-default-files').traceAsyncFn(()=>(0, _entries.collectAppFiles)(appDir, validFileMatcher));
745
+ if (defaultPaths.length > 0) {
746
+ const mappedDefaultFiles = await nextBuildSpan.traceChild('create-default-mapping').traceAsyncFn(()=>(0, _entries.createPagesMapping)({
747
+ pagePaths: defaultPaths,
748
+ isDev: false,
749
+ pagesType: _pagetypes.PAGE_TYPES.APP,
750
+ pageExtensions: config.pageExtensions,
751
+ pagesDir,
752
+ appDir,
753
+ appDirOnly
754
+ }));
755
+ slotsFromDefaults = (0, _entries.extractSlotsFromDefaultFiles)(mappedDefaultFiles);
756
+ }
757
+ // Combine slots and deduplicate using Set
758
+ slots = (0, _entries.combineSlots)(slotsFromPages, slotsFromDefaults);
759
+ const result = (0, _entries.processAppRoutes)(mappedAppPages, validFileMatcher, dir, isSrcDir);
760
+ appRoutes = result.appRoutes;
761
+ appRouteHandlers = result.appRouteHandlers;
762
+ }
763
+ // Build app layouts
764
+ if (appDir && mappedAppLayouts) {
765
+ layoutRoutes = (0, _entries.processLayoutRoutes)(mappedAppLayouts, dir, isSrcDir);
766
+ }
767
+ const routeTypesManifest = await (0, _routetypesutils.createRouteTypesManifest)({
768
+ dir,
769
+ pageRoutes,
770
+ appRoutes,
771
+ appRouteHandlers,
772
+ pageApiRoutes,
773
+ layoutRoutes,
774
+ slots,
775
+ redirects: config.redirects,
776
+ rewrites: config.rewrites,
777
+ validatorFilePath
778
+ });
779
+ await (0, _routetypesutils.writeRouteTypesManifest)(routeTypesManifest, routeTypesFilePath, config);
780
+ await (0, _routetypesutils.writeValidatorFile)(routeTypesManifest, validatorFilePath);
781
+ });
782
+ // Turbopack already handles conflicting app and page routes.
783
+ if (bundler !== _bundler.Bundler.Turbopack) {
784
+ const numConflictingAppPaths = conflictingAppPagePaths.length;
785
+ if (mappedAppPages && numConflictingAppPaths > 0) {
786
+ const errorMessage = `Conflicting app and page file${numConflictingAppPaths === 1 ? ' was' : 's were'} found, please remove the conflicting files to continue:`;
787
+ _log.error(errorMessage);
788
+ for (const [pagePath, appPath] of conflictingAppPagePaths){
789
+ _log.error(` "${pagePath}" - "${appPath}"`);
790
+ }
791
+ await telemetry.flush();
792
+ throw Object.defineProperty(new Error(errorMessage), "__NEXT_ERROR_CODE", {
793
+ value: "E394",
794
+ enumerable: false,
795
+ configurable: true
796
+ });
797
+ }
798
+ }
799
+ const conflictingPublicFiles = [];
800
+ const hasPages404 = (_mappedPages_404 = mappedPages['/404']) == null ? void 0 : _mappedPages_404.startsWith(_constants.PAGES_DIR_ALIAS);
801
+ const hasApp404 = !!(mappedAppPages == null ? void 0 : mappedAppPages[_entryconstants.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY]);
802
+ const hasAppGlobalError = !!(mappedAppPages == null ? void 0 : mappedAppPages[_entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY]);
803
+ const hasCustomErrorPage = (_mappedPages__error = mappedPages['/_error']) == null ? void 0 : _mappedPages__error.startsWith(_constants.PAGES_DIR_ALIAS);
804
+ // Check if there are any user pages (non-reserved pages) in the pages router
805
+ const hasUserPagesRoutes = Object.keys(mappedPages).some((route)=>!(0, _utils1.isReservedPage)(route));
806
+ if (hasPublicDir) {
807
+ const hasPublicUnderScoreNextDir = (0, _fs.existsSync)(_path.default.join(publicDir, '_next'));
808
+ if (hasPublicUnderScoreNextDir) {
809
+ throw Object.defineProperty(new Error(_constants.PUBLIC_DIR_MIDDLEWARE_CONFLICT), "__NEXT_ERROR_CODE", {
810
+ value: "E394",
811
+ enumerable: false,
812
+ configurable: true
813
+ });
814
+ }
815
+ }
816
+ await nextBuildSpan.traceChild('public-dir-conflict-check').traceAsyncFn(async ()=>{
817
+ // Check if pages conflict with files in `public`
818
+ // Only a page of public file can be served, not both.
819
+ for(const page in mappedPages){
820
+ const hasPublicPageFile = await (0, _fileexists.fileExists)(_path.default.join(publicDir, page === '/' ? '/index' : page), _fileexists.FileType.File);
821
+ if (hasPublicPageFile) {
822
+ conflictingPublicFiles.push(page);
823
+ }
824
+ }
825
+ const numConflicting = conflictingPublicFiles.length;
826
+ if (numConflicting) {
827
+ throw Object.defineProperty(new Error(`Conflicting public and page file${numConflicting === 1 ? ' was' : 's were'} found. https://nextjs.org/docs/messages/conflicting-public-file-page\n${conflictingPublicFiles.join('\n')}`), "__NEXT_ERROR_CODE", {
828
+ value: "E270",
829
+ enumerable: false,
830
+ configurable: true
831
+ });
832
+ }
833
+ });
834
+ const nestedReservedPages = pageKeys.pages.filter((page)=>{
835
+ return page.match(/\/(_app|_document|_error)$/) && _path.default.dirname(page) !== '/';
836
+ });
837
+ if (nestedReservedPages.length) {
838
+ _log.warn(`The following reserved Next.js pages were detected not directly under the pages directory:\n` + nestedReservedPages.join('\n') + `\nSee more info here: https://nextjs.org/docs/messages/nested-reserved-page\n`);
839
+ }
840
+ const restrictedRedirectPaths = [
841
+ '/_next'
842
+ ].map((p)=>config.basePath ? `${config.basePath}${p}` : p);
843
+ const isAppCacheComponentsEnabled = Boolean(config.cacheComponents);
844
+ const isAuthInterruptsEnabled = Boolean(config.experimental.authInterrupts);
845
+ const isAppPPREnabled = (0, _ppr.checkIsAppPPREnabled)(config.experimental.ppr);
846
+ const routesManifestPath = _path.default.join(distDir, _constants1.ROUTES_MANIFEST);
847
+ // Generate the routes manifest using the extracted helper
848
+ const { routesManifest, dynamicRoutes, sourcePages } = nextBuildSpan.traceChild('generate-routes-manifest').traceFn(()=>(0, _generateroutesmanifest.generateRoutesManifest)({
849
+ appType,
850
+ pageKeys,
851
+ config,
852
+ redirects,
853
+ headers,
854
+ rewrites,
855
+ restrictedRedirectPaths,
856
+ isAppPPREnabled
857
+ }));
858
+ // For pages directory, we run type checking after route collection but before build.
859
+ if (!appDir && !isCompileMode) {
860
+ await (0, _typecheck.startTypeChecking)(typeCheckingOptions);
861
+ }
862
+ let clientRouterFilters;
863
+ if (config.experimental.clientRouterFilter) {
864
+ const nonInternalRedirects = (config._originalRedirects || []).filter((r)=>!r.internal);
865
+ clientRouterFilters = (0, _createclientrouterfilter.createClientRouterFilter)([
866
+ ...appPaths
867
+ ], config.experimental.clientRouterFilterRedirects ? nonInternalRedirects : [], config.experimental.clientRouterFilterAllowedRate);
868
+ _buildcontext.NextBuildContext.clientRouterFilters = clientRouterFilters;
869
+ }
870
+ // Ensure commonjs handling is used for files in the distDir (generally .next)
871
+ // Files outside of the distDir can be "type": "module"
872
+ await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
873
+ // These are written to distDir, so they need to come after creating and cleaning distDr.
874
+ await (0, _builddiagnostics.recordFrameworkVersion)("16.1.1");
875
+ await (0, _builddiagnostics.updateBuildDiagnostics)({
876
+ buildStage: 'start'
877
+ });
878
+ const outputFileTracingRoot = config.outputFileTracingRoot || dir;
879
+ const pagesManifestPath = _path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.PAGES_MANIFEST);
880
+ let buildTraceContext;
881
+ let buildTracesPromise = undefined;
882
+ // If there's has a custom webpack config and disable the build worker.
883
+ // Otherwise respect the option if it's set.
884
+ const useBuildWorker = config.experimental.webpackBuildWorker || config.experimental.webpackBuildWorker === undefined && !config.webpack;
885
+ const runServerAndEdgeInParallel = config.experimental.parallelServerCompiles;
886
+ const collectServerBuildTracesInParallel = config.experimental.parallelServerBuildTraces || config.experimental.parallelServerBuildTraces === undefined && isCompileMode;
887
+ nextBuildSpan.setAttribute('has-custom-webpack-config', String(!!config.webpack));
888
+ nextBuildSpan.setAttribute('use-build-worker', String(useBuildWorker));
889
+ if (!useBuildWorker && (runServerAndEdgeInParallel || collectServerBuildTracesInParallel)) {
890
+ throw Object.defineProperty(new Error('The "parallelServerBuildTraces" and "parallelServerCompiles" options may only be used when build workers can be used. Read more: https://nextjs.org/docs/messages/parallel-build-without-worker'), "__NEXT_ERROR_CODE", {
891
+ value: "E101",
892
+ enumerable: false,
893
+ configurable: true
894
+ });
895
+ }
896
+ _log.info('Creating an optimized production build ...');
897
+ (0, _trace1.traceMemoryUsage)('Starting build', nextBuildSpan);
898
+ await (0, _builddiagnostics.updateBuildDiagnostics)({
899
+ buildStage: 'compile',
900
+ buildOptions: {
901
+ useBuildWorker: String(useBuildWorker)
902
+ }
903
+ });
904
+ let shutdownPromise = Promise.resolve();
905
+ if (!isGenerateMode) {
906
+ if (bundler === _bundler.Bundler.Turbopack) {
907
+ const { duration: compilerDuration, shutdownPromise: p, ...rest } = await (0, _turbopackbuild.turbopackBuild)(process.env.NEXT_TURBOPACK_USE_WORKER === undefined || process.env.NEXT_TURBOPACK_USE_WORKER !== '0');
908
+ shutdownPromise = p;
909
+ (0, _trace1.traceMemoryUsage)('Finished build', nextBuildSpan);
910
+ buildTraceContext = rest.buildTraceContext;
911
+ const durationString = (0, _durationtostring.durationToString)(compilerDuration);
912
+ _log.event(`Compiled successfully in ${durationString}`);
913
+ telemetry.record((0, _events.eventBuildCompleted)(pagesPaths, {
914
+ bundler: 'turbopack',
915
+ durationInSeconds: Math.round(compilerDuration),
916
+ totalAppPagesCount
917
+ }));
918
+ } else {
919
+ if (runServerAndEdgeInParallel || collectServerBuildTracesInParallel) {
920
+ let durationInSeconds = 0;
921
+ await (0, _builddiagnostics.updateBuildDiagnostics)({
922
+ buildStage: 'compile-server'
923
+ });
924
+ const serverBuildPromise = (0, _webpackbuild.webpackBuild)(useBuildWorker, [
925
+ 'server'
926
+ ]).then((res)=>{
927
+ (0, _trace1.traceMemoryUsage)('Finished server compilation', nextBuildSpan);
928
+ buildTraceContext = res.buildTraceContext;
929
+ durationInSeconds += res.duration;
930
+ if (collectServerBuildTracesInParallel) {
931
+ const buildTraceWorker = new _worker.Worker(require.resolve('./collect-build-traces'), {
932
+ debuggerPortOffset: -1,
933
+ isolatedMemory: false,
934
+ numWorkers: 1,
935
+ exposedMethods: [
936
+ 'collectBuildTraces'
937
+ ]
938
+ });
939
+ buildTracesPromise = nextBuildSpan.traceChild('collect-build-traces').traceAsyncFn(()=>{
940
+ return buildTraceWorker.collectBuildTraces({
941
+ dir,
942
+ config,
943
+ distDir,
944
+ // Serialize Map as this is sent to the worker.
945
+ edgeRuntimeRoutes: (0, _utils1.collectRoutesUsingEdgeRuntime)(new Map()),
946
+ staticPages: [],
947
+ buildTraceContext,
948
+ outputFileTracingRoot
949
+ }).catch((err)=>{
950
+ console.error(err);
951
+ throw err;
952
+ });
953
+ });
954
+ }
955
+ });
956
+ if (!runServerAndEdgeInParallel) {
957
+ await serverBuildPromise;
958
+ await (0, _builddiagnostics.updateBuildDiagnostics)({
959
+ buildStage: 'webpack-compile-edge-server'
960
+ });
961
+ }
962
+ const edgeBuildPromise = (0, _webpackbuild.webpackBuild)(useBuildWorker, [
963
+ 'edge-server'
964
+ ]).then((res)=>{
965
+ durationInSeconds += res.duration;
966
+ (0, _trace1.traceMemoryUsage)('Finished edge-server compilation', nextBuildSpan);
967
+ });
968
+ if (runServerAndEdgeInParallel) {
969
+ await serverBuildPromise;
970
+ await (0, _builddiagnostics.updateBuildDiagnostics)({
971
+ buildStage: 'webpack-compile-edge-server'
972
+ });
973
+ }
974
+ await edgeBuildPromise;
975
+ await (0, _builddiagnostics.updateBuildDiagnostics)({
976
+ buildStage: 'webpack-compile-client'
977
+ });
978
+ await (0, _webpackbuild.webpackBuild)(useBuildWorker, [
979
+ 'client'
980
+ ]).then((res)=>{
981
+ durationInSeconds += res.duration;
982
+ (0, _trace1.traceMemoryUsage)('Finished client compilation', nextBuildSpan);
983
+ });
984
+ const durationString = (0, _durationtostring.durationToString)(durationInSeconds);
985
+ _log.event(`Compiled successfully in ${durationString}`);
986
+ telemetry.record((0, _events.eventBuildCompleted)(pagesPaths, {
987
+ bundler: getBundlerForTelemetry(bundler),
988
+ durationInSeconds,
989
+ totalAppPagesCount
990
+ }));
991
+ } else {
992
+ const { duration: compilerDuration, ...rest } = await (0, _webpackbuild.webpackBuild)(useBuildWorker, null);
993
+ (0, _trace1.traceMemoryUsage)('Finished build', nextBuildSpan);
994
+ buildTraceContext = rest.buildTraceContext;
995
+ telemetry.record((0, _events.eventBuildCompleted)(pagesPaths, {
996
+ bundler: getBundlerForTelemetry(bundler),
997
+ durationInSeconds: compilerDuration,
998
+ totalAppPagesCount
999
+ }));
1000
+ }
1001
+ }
1002
+ await (0, _afterproductioncompile.runAfterProductionCompile)({
1003
+ config,
1004
+ buildSpan: nextBuildSpan,
1005
+ telemetry,
1006
+ metadata: {
1007
+ projectDir: dir,
1008
+ distDir
1009
+ }
1010
+ });
1011
+ }
1012
+ // For app directory, we run type checking after build.
1013
+ if (appDir && !isCompileMode && !isGenerateMode) {
1014
+ await (0, _builddiagnostics.updateBuildDiagnostics)({
1015
+ buildStage: 'type-checking'
1016
+ });
1017
+ await (0, _typecheck.startTypeChecking)(typeCheckingOptions);
1018
+ (0, _trace1.traceMemoryUsage)('Finished type checking', nextBuildSpan);
1019
+ }
1020
+ const requiredServerFilesManifest = await nextBuildSpan.traceChild('generate-required-server-files').traceAsyncFn(async ()=>{
1021
+ let runtimeConfig = (0, _configshared.getNextConfigRuntime)(config);
1022
+ const normalizedCacheHandlers = {};
1023
+ for (const [key, value] of Object.entries(runtimeConfig.cacheHandlers || {})){
1024
+ if (key && value) {
1025
+ normalizedCacheHandlers[key] = _path.default.relative(distDir, value);
1026
+ }
1027
+ }
1028
+ const serverFilesManifest = {
1029
+ version: 1,
1030
+ config: {
1031
+ ...runtimeConfig,
1032
+ ..._ciinfo.hasNextSupport ? {
1033
+ compress: false
1034
+ } : {},
1035
+ cacheHandler: runtimeConfig.cacheHandler ? _path.default.relative(distDir, runtimeConfig.cacheHandler) : runtimeConfig.cacheHandler,
1036
+ cacheHandlers: normalizedCacheHandlers,
1037
+ experimental: {
1038
+ ...runtimeConfig.experimental,
1039
+ trustHostHeader: _ciinfo.hasNextSupport,
1040
+ isExperimentalCompile: isCompileMode
1041
+ }
1042
+ },
1043
+ appDir: dir,
1044
+ relativeAppDir: _path.default.relative(outputFileTracingRoot, dir),
1045
+ files: [
1046
+ _constants1.ROUTES_MANIFEST,
1047
+ _path.default.relative(distDir, pagesManifestPath),
1048
+ _constants1.BUILD_MANIFEST,
1049
+ _constants1.PRERENDER_MANIFEST,
1050
+ _path.default.join(_constants1.SERVER_DIRECTORY, _constants1.FUNCTIONS_CONFIG_MANIFEST),
1051
+ _path.default.join(_constants1.SERVER_DIRECTORY, _constants1.MIDDLEWARE_MANIFEST),
1052
+ _path.default.join(_constants1.SERVER_DIRECTORY, _constants1.MIDDLEWARE_BUILD_MANIFEST + '.js'),
1053
+ ...bundler !== _bundler.Bundler.Turbopack ? [
1054
+ _path.default.join(_constants1.SERVER_DIRECTORY, _constants1.MIDDLEWARE_REACT_LOADABLE_MANIFEST + '.js'),
1055
+ _constants1.REACT_LOADABLE_MANIFEST
1056
+ ] : [],
1057
+ ...appDir ? [
1058
+ ...config.experimental.sri ? [
1059
+ _path.default.join(_constants1.SERVER_DIRECTORY, _constants1.SUBRESOURCE_INTEGRITY_MANIFEST + '.js'),
1060
+ _path.default.join(_constants1.SERVER_DIRECTORY, _constants1.SUBRESOURCE_INTEGRITY_MANIFEST + '.json')
1061
+ ] : [],
1062
+ _path.default.join(_constants1.SERVER_DIRECTORY, _constants1.APP_PATHS_MANIFEST),
1063
+ _path.default.join(_constants1.APP_PATH_ROUTES_MANIFEST),
1064
+ _path.default.join(_constants1.SERVER_DIRECTORY, _constants1.SERVER_REFERENCE_MANIFEST + '.js'),
1065
+ _path.default.join(_constants1.SERVER_DIRECTORY, _constants1.SERVER_REFERENCE_MANIFEST + '.json')
1066
+ ] : [],
1067
+ ...pagesDir && bundler !== _bundler.Bundler.Turbopack ? [
1068
+ _constants1.DYNAMIC_CSS_MANIFEST + '.json',
1069
+ _path.default.join(_constants1.SERVER_DIRECTORY, _constants1.DYNAMIC_CSS_MANIFEST + '.js')
1070
+ ] : [],
1071
+ _constants1.BUILD_ID_FILE,
1072
+ _path.default.join(_constants1.SERVER_DIRECTORY, _constants1.NEXT_FONT_MANIFEST + '.js'),
1073
+ _path.default.join(_constants1.SERVER_DIRECTORY, _constants1.NEXT_FONT_MANIFEST + '.json'),
1074
+ _constants1.SERVER_FILES_MANIFEST + '.json'
1075
+ ].filter(_nonnullable.nonNullable).map((file)=>_path.default.join(config.distDir, file)),
1076
+ ignore: []
1077
+ };
1078
+ if (hasInstrumentationHook) {
1079
+ serverFilesManifest.files.push(_path.default.join(config.distDir, _constants1.SERVER_DIRECTORY, `${_constants.INSTRUMENTATION_HOOK_FILENAME}.js`));
1080
+ // If there are edge routes, append the edge instrumentation hook
1081
+ // Turbopack generates this chunk with a hashed name and references it in middleware-manifest.
1082
+ let edgeInstrumentationHook = _path.default.join(config.distDir, _constants1.SERVER_DIRECTORY, `edge-${_constants.INSTRUMENTATION_HOOK_FILENAME}.js`);
1083
+ if (bundler !== _bundler.Bundler.Turbopack && (0, _fs.existsSync)(_path.default.join(dir, edgeInstrumentationHook))) {
1084
+ serverFilesManifest.files.push(edgeInstrumentationHook);
1085
+ }
1086
+ }
1087
+ if (config.experimental.optimizeCss) {
1088
+ const globOrig = require('next/dist/compiled/glob');
1089
+ const cssFilePaths = await new Promise((resolve, reject)=>{
1090
+ globOrig('**/*.css', {
1091
+ cwd: _path.default.join(distDir, 'static')
1092
+ }, (err, files)=>{
1093
+ if (err) {
1094
+ return reject(err);
1095
+ }
1096
+ resolve(files);
1097
+ });
1098
+ });
1099
+ serverFilesManifest.files.push(...cssFilePaths.map((filePath)=>_path.default.join(config.distDir, 'static', filePath)));
1100
+ }
1101
+ // Under standalone mode, we need to ensure that the cache entry debug
1102
+ // handler is copied so that it can be used in the test. This is required
1103
+ // for the turbopack test to run as it's more strict about the build
1104
+ // directories. This is only used for testing and is not used in
1105
+ // production.
1106
+ if (process.env.__NEXT_TEST_MODE && process.env.NEXT_PRIVATE_DEBUG_CACHE_ENTRY_HANDLERS) {
1107
+ serverFilesManifest.files.push(_path.default.relative(dir, _path.default.isAbsolute(process.env.NEXT_PRIVATE_DEBUG_CACHE_ENTRY_HANDLERS) ? process.env.NEXT_PRIVATE_DEBUG_CACHE_ENTRY_HANDLERS : _path.default.join(dir, process.env.NEXT_PRIVATE_DEBUG_CACHE_ENTRY_HANDLERS)));
1108
+ }
1109
+ return serverFilesManifest;
1110
+ });
1111
+ await writeRequiredServerFilesManifest(distDir, requiredServerFilesManifest);
1112
+ const numberOfWorkers = getNumberOfWorkers(config);
1113
+ const collectingPageDataStart = process.hrtime();
1114
+ const postCompileSpinner = (0, _spinner.default)(`Collecting page data using ${numberOfWorkers} worker${numberOfWorkers > 1 ? 's' : ''}`);
1115
+ const buildManifestPath = _path.default.join(distDir, _constants1.BUILD_MANIFEST);
1116
+ let staticAppPagesCount = 0;
1117
+ let serverAppPagesCount = 0;
1118
+ let edgeRuntimeAppCount = 0;
1119
+ let edgeRuntimePagesCount = 0;
1120
+ const ssgPages = new Set();
1121
+ const ssgStaticFallbackPages = new Set();
1122
+ const ssgBlockingFallbackPages = new Set();
1123
+ const staticPages = new Set();
1124
+ const invalidPages = new Set();
1125
+ const serverPropsPages = new Set();
1126
+ const additionalPaths = new Map();
1127
+ const staticPaths = new Map();
1128
+ const appNormalizedPaths = new Map();
1129
+ const fallbackModes = new Map();
1130
+ const appDefaultConfigs = new Map();
1131
+ const pageInfos = new Map();
1132
+ let pagesManifest = await readManifest(pagesManifestPath);
1133
+ const buildManifest = await readManifest(buildManifestPath);
1134
+ const appPathRoutes = {};
1135
+ if (appDir) {
1136
+ const appPathsManifest = await readManifest(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.APP_PATHS_MANIFEST));
1137
+ for(const key in appPathsManifest){
1138
+ appPathRoutes[key] = (0, _apppaths.normalizeAppPath)(key);
1139
+ }
1140
+ await writeManifest(_path.default.join(distDir, _constants1.APP_PATH_ROUTES_MANIFEST), appPathRoutes);
1141
+ }
1142
+ process.env.NEXT_PHASE = _constants1.PHASE_PRODUCTION_BUILD;
1143
+ staticWorker = createStaticWorker(config, {
1144
+ numberOfWorkers,
1145
+ debuggerPortOffset: -1
1146
+ });
1147
+ const analysisBegin = process.hrtime();
1148
+ const staticCheckSpan = nextBuildSpan.traceChild('static-check');
1149
+ const functionsConfigManifest = {
1150
+ version: 1,
1151
+ functions: {}
1152
+ };
1153
+ const { customAppGetInitialProps, namedExports, isNextImageImported, hasNonStaticErrorPage } = await staticCheckSpan.traceAsyncFn(async ()=>{
1154
+ var _config_experimental_sri;
1155
+ if (isCompileMode) {
1156
+ return {
1157
+ customAppGetInitialProps: false,
1158
+ namedExports: [],
1159
+ isNextImageImported: true,
1160
+ hasNonStaticErrorPage: hasUserPagesRoutes
1161
+ };
1162
+ }
1163
+ const { configFileName } = config;
1164
+ const sriEnabled = Boolean((_config_experimental_sri = config.experimental.sri) == null ? void 0 : _config_experimental_sri.algorithm);
1165
+ const nonStaticErrorPageSpan = staticCheckSpan.traceChild('check-static-error-page');
1166
+ const errorPageHasCustomGetInitialProps = nonStaticErrorPageSpan.traceAsyncFn(async ()=>hasCustomErrorPage && await staticWorker.hasCustomGetInitialProps({
1167
+ page: '/_error',
1168
+ distDir,
1169
+ checkingApp: false,
1170
+ sriEnabled
1171
+ }));
1172
+ const errorPageStaticResult = nonStaticErrorPageSpan.traceAsyncFn(async ()=>{
1173
+ var _config_i18n, _config_i18n1;
1174
+ return hasCustomErrorPage && staticWorker.isPageStatic({
1175
+ dir,
1176
+ page: '/_error',
1177
+ distDir,
1178
+ configFileName,
1179
+ cacheComponents: isAppCacheComponentsEnabled,
1180
+ authInterrupts: isAuthInterruptsEnabled,
1181
+ httpAgentOptions: config.httpAgentOptions,
1182
+ locales: (_config_i18n = config.i18n) == null ? void 0 : _config_i18n.locales,
1183
+ defaultLocale: (_config_i18n1 = config.i18n) == null ? void 0 : _config_i18n1.defaultLocale,
1184
+ nextConfigOutput: config.output,
1185
+ pprConfig: config.experimental.ppr,
1186
+ cacheLifeProfiles: config.cacheLife,
1187
+ buildId,
1188
+ sriEnabled,
1189
+ cacheMaxMemorySize: config.cacheMaxMemorySize
1190
+ });
1191
+ });
1192
+ const appPageToCheck = '/_app';
1193
+ const customAppGetInitialPropsPromise = hasUserPagesRoutes ? staticWorker.hasCustomGetInitialProps({
1194
+ page: appPageToCheck,
1195
+ distDir,
1196
+ checkingApp: true,
1197
+ sriEnabled
1198
+ }) : Promise.resolve(false);
1199
+ const namedExportsPromise = hasUserPagesRoutes ? staticWorker.getDefinedNamedExports({
1200
+ page: appPageToCheck,
1201
+ distDir,
1202
+ sriEnabled
1203
+ }) : Promise.resolve([]);
1204
+ // eslint-disable-next-line @typescript-eslint/no-shadow
1205
+ let isNextImageImported;
1206
+ const middlewareManifest = require(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.MIDDLEWARE_MANIFEST));
1207
+ const actionManifest = appDir ? require(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.SERVER_REFERENCE_MANIFEST + '.json')) : null;
1208
+ const entriesWithAction = actionManifest ? new Set() : null;
1209
+ if (actionManifest && entriesWithAction) {
1210
+ for(const id in actionManifest.node){
1211
+ for(const entry in actionManifest.node[id].workers){
1212
+ entriesWithAction.add(entry);
1213
+ }
1214
+ }
1215
+ for(const id in actionManifest.edge){
1216
+ for(const entry in actionManifest.edge[id].workers){
1217
+ entriesWithAction.add(entry);
1218
+ }
1219
+ }
1220
+ }
1221
+ for (const key of Object.keys(middlewareManifest == null ? void 0 : middlewareManifest.functions)){
1222
+ if (key.startsWith('/api')) {
1223
+ edgeRuntimePagesCount++;
1224
+ }
1225
+ }
1226
+ await Promise.all(Object.entries(pageKeys).reduce((acc, [key, files])=>{
1227
+ if (!files) {
1228
+ return acc;
1229
+ }
1230
+ const pageType = key;
1231
+ for (const page of files){
1232
+ acc.push({
1233
+ pageType,
1234
+ page
1235
+ });
1236
+ }
1237
+ return acc;
1238
+ }, []).map(({ pageType, page })=>{
1239
+ const checkPageSpan = staticCheckSpan.traceChild('check-page', {
1240
+ page
1241
+ });
1242
+ return checkPageSpan.traceAsyncFn(async ()=>{
1243
+ const actualPage = (0, _normalizepagepath.normalizePagePath)(page);
1244
+ let isRoutePPREnabled = false;
1245
+ let isSSG = false;
1246
+ let isStatic = false;
1247
+ let isServerComponent = false;
1248
+ let ssgPageRoutes = null;
1249
+ let pagePath = '';
1250
+ if (pageType === 'pages') {
1251
+ pagePath = pagesPaths.find((p)=>{
1252
+ p = (0, _normalizepathsep.normalizePathSep)(p);
1253
+ return p.startsWith(actualPage + '.') || p.startsWith(actualPage + '/index.');
1254
+ }) || '';
1255
+ }
1256
+ let originalAppPath;
1257
+ if (pageType === 'app' && mappedAppPages) {
1258
+ for (const [originalPath, normalizedPath] of Object.entries(appPathRoutes)){
1259
+ if (normalizedPath === page) {
1260
+ pagePath = mappedAppPages[originalPath].replace(/^private-next-app-dir/, '');
1261
+ originalAppPath = originalPath;
1262
+ break;
1263
+ }
1264
+ }
1265
+ }
1266
+ const pageFilePath = (0, _utils1.isAppBuiltinPage)(pagePath) ? pagePath : _path.default.join((pageType === 'pages' ? pagesDir : appDir) || '', pagePath);
1267
+ const isInsideAppDir = pageType === 'app';
1268
+ const staticInfo = pagePath ? await (0, _getstaticinfoincludinglayouts.getStaticInfoIncludingLayouts)({
1269
+ isInsideAppDir,
1270
+ pageFilePath,
1271
+ pageExtensions: config.pageExtensions,
1272
+ appDir,
1273
+ config,
1274
+ isDev: false,
1275
+ // If this route is an App Router page route, inherit the
1276
+ // route segment configs (e.g. `runtime`) from the layout by
1277
+ // passing the `originalAppPath`, which should end with `/page`.
1278
+ page: isInsideAppDir ? originalAppPath : page
1279
+ }) : undefined;
1280
+ if (staticInfo == null ? void 0 : staticInfo.hadUnsupportedValue) {
1281
+ errorFromUnsupportedSegmentConfig();
1282
+ }
1283
+ // If there's any thing that would contribute to the functions
1284
+ // configuration, we need to add it to the manifest.
1285
+ if (typeof (staticInfo == null ? void 0 : staticInfo.runtime) !== 'undefined' || typeof (staticInfo == null ? void 0 : staticInfo.maxDuration) !== 'undefined' || typeof (staticInfo == null ? void 0 : staticInfo.preferredRegion) !== 'undefined') {
1286
+ const regions = (staticInfo == null ? void 0 : staticInfo.preferredRegion) ? typeof staticInfo.preferredRegion === 'string' ? [
1287
+ staticInfo.preferredRegion
1288
+ ] : staticInfo.preferredRegion : undefined;
1289
+ functionsConfigManifest.functions[page] = {
1290
+ maxDuration: staticInfo == null ? void 0 : staticInfo.maxDuration,
1291
+ ...regions && {
1292
+ regions
1293
+ }
1294
+ };
1295
+ }
1296
+ const pageRuntime = middlewareManifest.functions[originalAppPath || page] ? 'edge' : staticInfo == null ? void 0 : staticInfo.runtime;
1297
+ if (!isCompileMode) {
1298
+ isServerComponent = pageType === 'app' && (staticInfo == null ? void 0 : staticInfo.rsc) !== _constants1.RSC_MODULE_TYPES.client;
1299
+ if (pageType === 'app' || !(0, _utils1.isReservedPage)(page)) {
1300
+ try {
1301
+ let edgeInfo;
1302
+ if ((0, _isedgeruntime.isEdgeRuntime)(pageRuntime)) {
1303
+ if (pageType === 'app') {
1304
+ edgeRuntimeAppCount++;
1305
+ } else {
1306
+ edgeRuntimePagesCount++;
1307
+ }
1308
+ const manifestKey = pageType === 'pages' ? page : originalAppPath || '';
1309
+ edgeInfo = middlewareManifest.functions[manifestKey];
1310
+ }
1311
+ let isPageStaticSpan = checkPageSpan.traceChild('is-page-static');
1312
+ let workerResult = await isPageStaticSpan.traceAsyncFn(()=>{
1313
+ var _config_i18n, _config_i18n1;
1314
+ return staticWorker.isPageStatic({
1315
+ dir,
1316
+ page,
1317
+ originalAppPath,
1318
+ distDir,
1319
+ configFileName,
1320
+ httpAgentOptions: config.httpAgentOptions,
1321
+ locales: (_config_i18n = config.i18n) == null ? void 0 : _config_i18n.locales,
1322
+ defaultLocale: (_config_i18n1 = config.i18n) == null ? void 0 : _config_i18n1.defaultLocale,
1323
+ parentId: isPageStaticSpan.getId(),
1324
+ pageRuntime,
1325
+ edgeInfo,
1326
+ pageType,
1327
+ cacheComponents: isAppCacheComponentsEnabled,
1328
+ authInterrupts: isAuthInterruptsEnabled,
1329
+ cacheHandler: config.cacheHandler,
1330
+ cacheHandlers: config.cacheHandlers,
1331
+ isrFlushToDisk: _ciinfo.hasNextSupport ? false : config.experimental.isrFlushToDisk,
1332
+ cacheMaxMemorySize: config.cacheMaxMemorySize,
1333
+ nextConfigOutput: config.output,
1334
+ pprConfig: config.experimental.ppr,
1335
+ cacheLifeProfiles: config.cacheLife,
1336
+ buildId,
1337
+ sriEnabled
1338
+ });
1339
+ });
1340
+ if (pageType === 'app' && originalAppPath) {
1341
+ appNormalizedPaths.set(originalAppPath, page);
1342
+ // TODO-APP: handle prerendering with edge
1343
+ if ((0, _isedgeruntime.isEdgeRuntime)(pageRuntime)) {
1344
+ isStatic = false;
1345
+ isSSG = false;
1346
+ _log.warnOnce(`Using edge runtime on a page currently disables static generation for that page`);
1347
+ } else {
1348
+ const isDynamic = (0, _utils.isDynamicRoute)(page);
1349
+ if (typeof workerResult.isRoutePPREnabled === 'boolean') {
1350
+ isRoutePPREnabled = workerResult.isRoutePPREnabled;
1351
+ }
1352
+ // If this route can be partially pre-rendered, then
1353
+ // mark it as such and mark that it can be
1354
+ // generated server-side.
1355
+ if (workerResult.isRoutePPREnabled) {
1356
+ isSSG = true;
1357
+ isStatic = true;
1358
+ staticPaths.set(originalAppPath, []);
1359
+ }
1360
+ if (workerResult.prerenderedRoutes) {
1361
+ staticPaths.set(originalAppPath, workerResult.prerenderedRoutes);
1362
+ ssgPageRoutes = workerResult.prerenderedRoutes.map((route)=>route.pathname);
1363
+ isSSG = true;
1364
+ }
1365
+ const appConfig = workerResult.appConfig || {};
1366
+ if (appConfig.revalidate !== 0) {
1367
+ const hasGenerateStaticParams = workerResult.prerenderedRoutes && workerResult.prerenderedRoutes.length > 0;
1368
+ if (config.output === 'export' && isDynamic && !hasGenerateStaticParams) {
1369
+ throw Object.defineProperty(new Error(`Page "${page}" is missing "generateStaticParams()" so it cannot be used with "output: export" config.`), "__NEXT_ERROR_CODE", {
1370
+ value: "E87",
1371
+ enumerable: false,
1372
+ configurable: true
1373
+ });
1374
+ }
1375
+ // Mark the app as static if:
1376
+ // - It has no dynamic param
1377
+ // - It doesn't have generateStaticParams but `dynamic` is set to
1378
+ // `error` or `force-static`
1379
+ if (!isDynamic) {
1380
+ staticPaths.set(originalAppPath, [
1381
+ {
1382
+ params: {},
1383
+ pathname: page,
1384
+ encodedPathname: page,
1385
+ fallbackRouteParams: [],
1386
+ fallbackMode: workerResult.prerenderFallbackMode,
1387
+ fallbackRootParams: [],
1388
+ throwOnEmptyStaticShell: true
1389
+ }
1390
+ ]);
1391
+ isStatic = true;
1392
+ } else if (!hasGenerateStaticParams && (appConfig.dynamic === 'error' || appConfig.dynamic === 'force-static')) {
1393
+ staticPaths.set(originalAppPath, []);
1394
+ isStatic = true;
1395
+ isRoutePPREnabled = false;
1396
+ }
1397
+ }
1398
+ if (workerResult.prerenderFallbackMode) {
1399
+ fallbackModes.set(originalAppPath, workerResult.prerenderFallbackMode);
1400
+ }
1401
+ appDefaultConfigs.set(originalAppPath, appConfig);
1402
+ }
1403
+ } else {
1404
+ if ((0, _isedgeruntime.isEdgeRuntime)(pageRuntime)) {
1405
+ if (workerResult.hasStaticProps) {
1406
+ console.warn(`"getStaticProps" is not yet supported fully with "experimental-edge", detected on ${page}`);
1407
+ }
1408
+ workerResult.isStatic = false;
1409
+ workerResult.hasStaticProps = false;
1410
+ }
1411
+ if (workerResult.isNextImageImported) {
1412
+ isNextImageImported = true;
1413
+ }
1414
+ if (workerResult.hasStaticProps) {
1415
+ ssgPages.add(page);
1416
+ isSSG = true;
1417
+ if (workerResult.prerenderedRoutes && workerResult.prerenderedRoutes.length > 0) {
1418
+ additionalPaths.set(page, workerResult.prerenderedRoutes);
1419
+ ssgPageRoutes = workerResult.prerenderedRoutes.map((route)=>route.pathname);
1420
+ }
1421
+ if (workerResult.prerenderFallbackMode === _fallback.FallbackMode.BLOCKING_STATIC_RENDER) {
1422
+ ssgBlockingFallbackPages.add(page);
1423
+ } else if (workerResult.prerenderFallbackMode === _fallback.FallbackMode.PRERENDER) {
1424
+ ssgStaticFallbackPages.add(page);
1425
+ }
1426
+ } else if (workerResult.hasServerProps) {
1427
+ serverPropsPages.add(page);
1428
+ } else if (workerResult.isStatic && !isServerComponent && await customAppGetInitialPropsPromise === false) {
1429
+ staticPages.add(page);
1430
+ isStatic = true;
1431
+ } else if (isServerComponent) {
1432
+ // This is a static server component page that doesn't have
1433
+ // gSP or gSSP. We still treat it as a SSG page.
1434
+ ssgPages.add(page);
1435
+ isSSG = true;
1436
+ }
1437
+ if (hasPages404 && page === '/404') {
1438
+ if (!workerResult.isStatic && !workerResult.hasStaticProps) {
1439
+ throw Object.defineProperty(new Error(`\`pages/404\` ${_constants.STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR}`), "__NEXT_ERROR_CODE", {
1440
+ value: "E134",
1441
+ enumerable: false,
1442
+ configurable: true
1443
+ });
1444
+ }
1445
+ // we need to ensure the 404 lambda is present since we use
1446
+ // it when _app has getInitialProps
1447
+ if (await customAppGetInitialPropsPromise && !workerResult.hasStaticProps) {
1448
+ staticPages.delete(page);
1449
+ }
1450
+ }
1451
+ if (_constants1.STATIC_STATUS_PAGES.includes(page) && !workerResult.isStatic && !workerResult.hasStaticProps) {
1452
+ throw Object.defineProperty(new Error(`\`pages${page}\` ${_constants.STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR}`), "__NEXT_ERROR_CODE", {
1453
+ value: "E125",
1454
+ enumerable: false,
1455
+ configurable: true
1456
+ });
1457
+ }
1458
+ }
1459
+ } catch (err) {
1460
+ if (!(0, _iserror.default)(err) || err.message !== 'INVALID_DEFAULT_EXPORT') throw err;
1461
+ invalidPages.add(page);
1462
+ }
1463
+ }
1464
+ if (pageType === 'app') {
1465
+ if (isSSG || isStatic) {
1466
+ staticAppPagesCount++;
1467
+ } else {
1468
+ serverAppPagesCount++;
1469
+ }
1470
+ }
1471
+ }
1472
+ pageInfos.set(page, {
1473
+ originalAppPath,
1474
+ isStatic,
1475
+ isSSG,
1476
+ isRoutePPREnabled,
1477
+ ssgPageRoutes,
1478
+ initialCacheControl: undefined,
1479
+ runtime: pageRuntime,
1480
+ pageDuration: undefined,
1481
+ ssgPageDurations: undefined,
1482
+ hasEmptyStaticShell: undefined
1483
+ });
1484
+ });
1485
+ }));
1486
+ const errorPageResult = await errorPageStaticResult;
1487
+ const nonStaticErrorPage = await errorPageHasCustomGetInitialProps || errorPageResult && errorPageResult.hasServerProps;
1488
+ const returnValue = {
1489
+ customAppGetInitialProps: await customAppGetInitialPropsPromise,
1490
+ namedExports: await namedExportsPromise,
1491
+ isNextImageImported,
1492
+ hasNonStaticErrorPage: nonStaticErrorPage
1493
+ };
1494
+ return returnValue;
1495
+ });
1496
+ if (postCompileSpinner) {
1497
+ const collectingPageDataEnd = process.hrtime(collectingPageDataStart);
1498
+ postCompileSpinner.setText(`Collecting page data using ${numberOfWorkers} worker${numberOfWorkers > 1 ? 's' : ''} in ${(0, _durationtostring.hrtimeDurationToString)(collectingPageDataEnd)}`);
1499
+ postCompileSpinner.stopAndPersist();
1500
+ }
1501
+ (0, _trace1.traceMemoryUsage)('Finished collecting page data', nextBuildSpan);
1502
+ if (customAppGetInitialProps) {
1503
+ console.warn((0, _picocolors.bold)((0, _picocolors.yellow)(`Warning: `)) + (0, _picocolors.yellow)(`You have opted-out of Automatic Static Optimization due to \`getInitialProps\` in \`pages/_app\`. This does not opt-out pages with \`getStaticProps\``));
1504
+ console.warn('Read more: https://nextjs.org/docs/messages/opt-out-auto-static-optimization\n');
1505
+ }
1506
+ const middlewareFile = (0, _normalizepathsep.normalizePathSep)(proxyFilePath || middlewareFilePath || '');
1507
+ let hasNodeMiddleware = false;
1508
+ if (middlewareFile) {
1509
+ // Is format of `(/src)/(proxy|middleware).<ext>`, so split by
1510
+ // "." and get the first part, regard rest of the extensions
1511
+ // to match the `page` value format.
1512
+ const page = middlewareFile.split('.')[0];
1513
+ const staticInfo = await (0, _getstaticinfoincludinglayouts.getStaticInfoIncludingLayouts)({
1514
+ isInsideAppDir: false,
1515
+ pageFilePath: _path.default.join(dir, middlewareFile),
1516
+ config,
1517
+ appDir,
1518
+ pageExtensions: config.pageExtensions,
1519
+ isDev: false,
1520
+ page
1521
+ });
1522
+ if (staticInfo.hadUnsupportedValue) {
1523
+ errorFromUnsupportedSegmentConfig();
1524
+ }
1525
+ if (staticInfo.runtime === 'nodejs' || (0, _utils1.isProxyFile)(page)) {
1526
+ var _staticInfo_middleware;
1527
+ hasNodeMiddleware = true;
1528
+ functionsConfigManifest.functions['/_middleware'] = {
1529
+ runtime: 'nodejs',
1530
+ matchers: ((_staticInfo_middleware = staticInfo.middleware) == null ? void 0 : _staticInfo_middleware.matchers) ?? [
1531
+ {
1532
+ regexp: '^.*$',
1533
+ originalSource: '/:path*'
1534
+ }
1535
+ ]
1536
+ };
1537
+ if (bundler === _bundler.Bundler.Turbopack) {
1538
+ await writeManifest(_path.default.join(distDir, 'static', buildId, _constants1.TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST), functionsConfigManifest.functions['/_middleware'].matchers || []);
1539
+ }
1540
+ }
1541
+ }
1542
+ await writeFunctionsConfigManifest(distDir, functionsConfigManifest);
1543
+ if (bundler !== _bundler.Bundler.Turbopack && !isGenerateMode && !buildTracesPromise) {
1544
+ buildTracesPromise = nextBuildSpan.traceChild('collect-build-traces').traceAsyncFn(()=>{
1545
+ return (0, _collectbuildtraces.collectBuildTraces)({
1546
+ dir,
1547
+ config,
1548
+ distDir,
1549
+ edgeRuntimeRoutes: (0, _utils1.collectRoutesUsingEdgeRuntime)(pageInfos),
1550
+ staticPages: [
1551
+ ...staticPages
1552
+ ],
1553
+ nextBuildSpan,
1554
+ buildTraceContext,
1555
+ outputFileTracingRoot
1556
+ }).catch((err)=>{
1557
+ console.error(err);
1558
+ throw err;
1559
+ });
1560
+ });
1561
+ }
1562
+ if (serverPropsPages.size > 0 || ssgPages.size > 0) {
1563
+ // We update the routes manifest after the build with the
1564
+ // data routes since we can't determine these until after build
1565
+ routesManifest.dataRoutes = (0, _sortableroutes.sortPages)([
1566
+ ...serverPropsPages,
1567
+ ...ssgPages
1568
+ ]).map((page)=>{
1569
+ return (0, _builddataroute.buildDataRoute)(page, buildId);
1570
+ });
1571
+ }
1572
+ // We need to write the manifest with rewrites before build
1573
+ await nextBuildSpan.traceChild('write-routes-manifest').traceAsyncFn(()=>writeManifest(routesManifestPath, routesManifest));
1574
+ // Since custom _app.js can wrap the 404 page we have to opt-out of static optimization if it has getInitialProps
1575
+ // Only export the static 404 when there is no /_error present
1576
+ const useStaticPages404 = !customAppGetInitialProps && (!hasNonStaticErrorPage || hasPages404);
1577
+ if (invalidPages.size > 0) {
1578
+ const err = Object.defineProperty(new Error(`Build optimization failed: found page${invalidPages.size === 1 ? '' : 's'} without a React Component as default export in \n${[
1579
+ ...invalidPages
1580
+ ].map((pg)=>`pages${pg}`).join('\n')}\n\nSee https://nextjs.org/docs/messages/page-without-valid-component for more info.\n`), "__NEXT_ERROR_CODE", {
1581
+ value: "E474",
1582
+ enumerable: false,
1583
+ configurable: true
1584
+ });
1585
+ err.code = 'BUILD_OPTIMIZATION_FAILED';
1586
+ throw err;
1587
+ }
1588
+ await (0, _writebuildid.writeBuildId)(distDir, buildId);
1589
+ const features = [
1590
+ {
1591
+ featureName: 'experimental/cacheComponents',
1592
+ invocationCount: config.cacheComponents ? 1 : 0
1593
+ },
1594
+ {
1595
+ featureName: 'experimental/optimizeCss',
1596
+ invocationCount: config.experimental.optimizeCss ? 1 : 0
1597
+ },
1598
+ {
1599
+ featureName: 'experimental/nextScriptWorkers',
1600
+ invocationCount: config.experimental.nextScriptWorkers ? 1 : 0
1601
+ },
1602
+ {
1603
+ featureName: 'experimental/ppr',
1604
+ invocationCount: config.experimental.ppr ? 1 : 0
1605
+ },
1606
+ {
1607
+ featureName: 'experimental/isolatedDevBuild',
1608
+ invocationCount: config.experimental.isolatedDevBuild ? 1 : 0
1609
+ },
1610
+ {
1611
+ featureName: 'turbopackFileSystemCache',
1612
+ invocationCount: (0, _utils3.isFileSystemCacheEnabledForBuild)(config) ? 1 : 0
1613
+ }
1614
+ ];
1615
+ telemetry.record(features.map((feature)=>{
1616
+ return {
1617
+ eventName: _events.EVENT_BUILD_FEATURE_USAGE,
1618
+ payload: feature
1619
+ };
1620
+ }));
1621
+ // we don't need to inline for turbopack build as
1622
+ // it will handle it's own caching separate of compile
1623
+ if (isGenerateMode && bundler !== _bundler.Bundler.Turbopack) {
1624
+ _log.info('Inlining static env ...');
1625
+ await nextBuildSpan.traceChild('inline-static-env').traceAsyncFn(async ()=>{
1626
+ await (0, _inlinestaticenv.inlineStaticEnv)({
1627
+ distDir,
1628
+ config
1629
+ });
1630
+ });
1631
+ }
1632
+ const middlewareManifest = await readManifest(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.MIDDLEWARE_MANIFEST));
1633
+ const prerenderManifest = {
1634
+ version: 4,
1635
+ routes: {},
1636
+ dynamicRoutes: {},
1637
+ notFoundRoutes: [],
1638
+ preview: previewProps
1639
+ };
1640
+ const tbdPrerenderRoutes = [];
1641
+ const { i18n } = config;
1642
+ const usedStaticStatusPages = _constants1.STATIC_STATUS_PAGES.filter((page)=>mappedPages[page] && mappedPages[page].startsWith('private-next-pages'));
1643
+ usedStaticStatusPages.forEach((page)=>{
1644
+ if (!ssgPages.has(page) && !customAppGetInitialProps) {
1645
+ staticPages.add(page);
1646
+ }
1647
+ });
1648
+ const hasPages500 = !appDirOnly && usedStaticStatusPages.includes('/500');
1649
+ const useDefaultStatic500 = !hasPages500 && !hasNonStaticErrorPage && !customAppGetInitialProps;
1650
+ const combinedPages = [
1651
+ ...staticPages,
1652
+ ...ssgPages
1653
+ ];
1654
+ const isApp404Static = staticPaths.has(_entryconstants.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY);
1655
+ const hasStaticApp404 = hasApp404 && isApp404Static;
1656
+ const isAppGlobalErrorStatic = staticPaths.has(_entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY);
1657
+ const hasStaticAppGlobalError = hasAppGlobalError && isAppGlobalErrorStatic;
1658
+ await (0, _builddiagnostics.updateBuildDiagnostics)({
1659
+ buildStage: 'static-generation'
1660
+ });
1661
+ const hasGSPAndRevalidateZero = new Set();
1662
+ // we need to trigger automatic exporting when we have
1663
+ // - static 404/500
1664
+ // - getStaticProps paths
1665
+ // - experimental app is enabled
1666
+ if (!isCompileMode && (combinedPages.length > 0 || useStaticPages404 || useDefaultStatic500 || appDir)) {
1667
+ const staticGenerationSpan = nextBuildSpan.traceChild('static-generation');
1668
+ await staticGenerationSpan.traceAsyncFn(async ()=>{
1669
+ (0, _utils1.detectConflictingPaths)([
1670
+ ...combinedPages,
1671
+ ...pageKeys.pages.filter((page)=>!combinedPages.includes(page))
1672
+ ], ssgPages, new Map(Array.from(additionalPaths.entries()).map(([page, routes])=>{
1673
+ return [
1674
+ page,
1675
+ routes.map((route)=>route.pathname)
1676
+ ];
1677
+ })));
1678
+ const sortedStaticPaths = Array.from(staticPaths.entries()).sort(([a], [b])=>a.localeCompare(b));
1679
+ const exportApp = require('../export').default;
1680
+ const exportConfig = {
1681
+ ...config,
1682
+ // Default map will be the collection of automatic statically exported
1683
+ // pages and incremental pages.
1684
+ // n.b. we cannot handle this above in combinedPages because the dynamic
1685
+ // page must be in the `pages` array, but not in the mapping.
1686
+ exportPathMap: (defaultMap)=>{
1687
+ // Dynamically routed pages should be prerendered to be used as
1688
+ // a client-side skeleton (fallback) while data is being fetched.
1689
+ // This ensures the end-user never sees a 500 or slow response from the
1690
+ // server.
1691
+ //
1692
+ // Note: prerendering disables automatic static optimization.
1693
+ ssgPages.forEach((page)=>{
1694
+ if ((0, _utils.isDynamicRoute)(page)) {
1695
+ tbdPrerenderRoutes.push(page);
1696
+ if (ssgStaticFallbackPages.has(page)) {
1697
+ // Override the rendering for the dynamic page to be treated as a
1698
+ // fallback render.
1699
+ if (i18n) {
1700
+ defaultMap[`/${i18n.defaultLocale}${page}`] = {
1701
+ page,
1702
+ _pagesFallback: true
1703
+ };
1704
+ } else {
1705
+ defaultMap[page] = {
1706
+ page,
1707
+ _pagesFallback: true
1708
+ };
1709
+ }
1710
+ } else {
1711
+ // Remove dynamically routed pages from the default path map when
1712
+ // fallback behavior is disabled.
1713
+ delete defaultMap[page];
1714
+ }
1715
+ }
1716
+ });
1717
+ // Append the "well-known" routes we should prerender for, e.g. blog
1718
+ // post slugs.
1719
+ additionalPaths.forEach((routes, page)=>{
1720
+ routes.forEach((route)=>{
1721
+ defaultMap[route.pathname] = {
1722
+ page,
1723
+ _ssgPath: route.encodedPathname
1724
+ };
1725
+ });
1726
+ });
1727
+ if (useStaticPages404 && !appDirOnly) {
1728
+ defaultMap['/404'] = {
1729
+ page: hasPages404 ? '/404' : '/_error'
1730
+ };
1731
+ }
1732
+ if (useDefaultStatic500 && !appDirOnly) {
1733
+ defaultMap['/500'] = {
1734
+ page: '/_error'
1735
+ };
1736
+ }
1737
+ // TODO: output manifest specific to app paths and their
1738
+ // revalidate periods and dynamicParams settings
1739
+ sortedStaticPaths.forEach(([originalAppPath, routes])=>{
1740
+ const appConfig = appDefaultConfigs.get(originalAppPath);
1741
+ const isDynamicError = (appConfig == null ? void 0 : appConfig.dynamic) === 'error';
1742
+ const isRoutePPREnabled = appConfig ? (0, _ppr.checkIsRoutePPREnabled)(config.experimental.ppr) : false;
1743
+ routes.forEach((route)=>{
1744
+ // If the route has any dynamic root segments, we need to skip
1745
+ // rendering the route. This is because we don't support
1746
+ // revalidating the shells without the parameters present.
1747
+ // Note that we only have fallback root params if we also have
1748
+ // PPR enabled for this route/app already.
1749
+ if (route.fallbackRootParams && route.fallbackRootParams.length > 0 && // We don't skip rendering the route if we have the
1750
+ // following enabled. This is because the flight data now
1751
+ // does not contain any of the route params and is instead
1752
+ // completely static.
1753
+ !config.cacheComponents) {
1754
+ return;
1755
+ }
1756
+ defaultMap[route.pathname] = {
1757
+ page: originalAppPath,
1758
+ _ssgPath: route.encodedPathname,
1759
+ _fallbackRouteParams: route.fallbackRouteParams,
1760
+ _isDynamicError: isDynamicError,
1761
+ _isAppDir: true,
1762
+ _isRoutePPREnabled: isRoutePPREnabled,
1763
+ _allowEmptyStaticShell: !route.throwOnEmptyStaticShell
1764
+ };
1765
+ });
1766
+ });
1767
+ if (i18n) {
1768
+ for (const page of [
1769
+ ...staticPages,
1770
+ ...ssgPages,
1771
+ ...useStaticPages404 ? [
1772
+ '/404'
1773
+ ] : [],
1774
+ ...useDefaultStatic500 ? [
1775
+ '/500'
1776
+ ] : []
1777
+ ]){
1778
+ const isSsg = ssgPages.has(page);
1779
+ const isDynamic = (0, _utils.isDynamicRoute)(page);
1780
+ const isFallback = isSsg && ssgStaticFallbackPages.has(page);
1781
+ for (const locale of i18n.locales){
1782
+ var _defaultMap_page;
1783
+ // skip fallback generation for SSG pages without fallback mode
1784
+ if (isSsg && isDynamic && !isFallback) continue;
1785
+ const outputPath = `/${locale}${page === '/' ? '' : page}`;
1786
+ defaultMap[outputPath] = {
1787
+ page: ((_defaultMap_page = defaultMap[page]) == null ? void 0 : _defaultMap_page.page) || page,
1788
+ _locale: locale,
1789
+ _pagesFallback: isFallback
1790
+ };
1791
+ }
1792
+ if (isSsg) {
1793
+ // remove non-locale prefixed variant from defaultMap
1794
+ delete defaultMap[page];
1795
+ }
1796
+ }
1797
+ }
1798
+ return defaultMap;
1799
+ }
1800
+ };
1801
+ const outdir = _path.default.join(distDir, 'export');
1802
+ const exportResult = await exportApp(dir, {
1803
+ nextConfig: exportConfig,
1804
+ enabledDirectories,
1805
+ silent: true,
1806
+ buildExport: true,
1807
+ debugOutput,
1808
+ debugPrerender,
1809
+ pages: combinedPages,
1810
+ outdir,
1811
+ statusMessage: `Generating static pages using ${numberOfWorkers} worker${numberOfWorkers > 1 ? 's' : ''}`,
1812
+ numWorkers: numberOfWorkers,
1813
+ appDirOnly
1814
+ }, nextBuildSpan, staticWorker);
1815
+ // If there was no result, there's nothing more to do.
1816
+ if (!exportResult) return;
1817
+ const getFallbackMode = (route)=>{
1818
+ var _exportResult_byPath_get;
1819
+ const hasEmptyStaticShell = (_exportResult_byPath_get = exportResult.byPath.get(route.pathname)) == null ? void 0 : _exportResult_byPath_get.hasEmptyStaticShell;
1820
+ // If the route has an empty static shell and is not configured to
1821
+ // throw on empty static shell, then we should use the blocking
1822
+ // static render mode.
1823
+ if (hasEmptyStaticShell && !route.throwOnEmptyStaticShell && route.fallbackMode === _fallback.FallbackMode.PRERENDER) {
1824
+ return _fallback.FallbackMode.BLOCKING_STATIC_RENDER;
1825
+ }
1826
+ // If the route has no fallback mode, then we should use the
1827
+ // `NOT_FOUND` fallback mode.
1828
+ if (!route.fallbackMode) {
1829
+ return _fallback.FallbackMode.NOT_FOUND;
1830
+ }
1831
+ return route.fallbackMode;
1832
+ };
1833
+ const getCacheControl = (exportPath, defaultRevalidate = false)=>{
1834
+ var _exportResult_byPath_get;
1835
+ const cacheControl = (_exportResult_byPath_get = exportResult.byPath.get(exportPath)) == null ? void 0 : _exportResult_byPath_get.cacheControl;
1836
+ if (!cacheControl) {
1837
+ return {
1838
+ revalidate: defaultRevalidate,
1839
+ expire: undefined
1840
+ };
1841
+ }
1842
+ if (cacheControl.revalidate !== false && cacheControl.revalidate > 0 && cacheControl.expire === undefined) {
1843
+ return {
1844
+ revalidate: cacheControl.revalidate,
1845
+ expire: config.expireTime
1846
+ };
1847
+ }
1848
+ return cacheControl;
1849
+ };
1850
+ if (debugOutput || process.env.NEXT_SSG_FETCH_METRICS === '1') {
1851
+ (0, _builddiagnostics.recordFetchMetrics)(exportResult);
1852
+ }
1853
+ (0, _turborepoaccesstrace.writeTurborepoAccessTraceResult)({
1854
+ distDir: config.distDir,
1855
+ traces: [
1856
+ turborepoAccessTraceResult,
1857
+ ...exportResult.turborepoAccessTraceResults.values()
1858
+ ]
1859
+ });
1860
+ prerenderManifest.notFoundRoutes = Array.from(exportResult.ssgNotFoundPaths);
1861
+ // remove server bundles that were exported
1862
+ for (const page of staticPages){
1863
+ const serverBundle = (0, _require.getPagePath)(page, distDir, undefined, false);
1864
+ await _fs.promises.unlink(serverBundle);
1865
+ }
1866
+ sortedStaticPaths.forEach(([originalAppPath, prerenderedRoutes])=>{
1867
+ var _pageInfos_get, _pageInfos_get1;
1868
+ const page = appNormalizedPaths.get(originalAppPath);
1869
+ if (!page) throw Object.defineProperty(new _invarianterror.InvariantError('Page not found'), "__NEXT_ERROR_CODE", {
1870
+ value: "E619",
1871
+ enumerable: false,
1872
+ configurable: true
1873
+ });
1874
+ const appConfig = appDefaultConfigs.get(originalAppPath);
1875
+ if (!appConfig) throw Object.defineProperty(new _invarianterror.InvariantError('App config not found'), "__NEXT_ERROR_CODE", {
1876
+ value: "E616",
1877
+ enumerable: false,
1878
+ configurable: true
1879
+ });
1880
+ const ssgPageRoutesSet = new Set((_pageInfos_get = pageInfos.get(page)) == null ? void 0 : _pageInfos_get.ssgPageRoutes);
1881
+ let hasRevalidateZero = appConfig.revalidate === 0 || getCacheControl(page).revalidate === 0;
1882
+ if (hasRevalidateZero && ((_pageInfos_get1 = pageInfos.get(page)) == null ? void 0 : _pageInfos_get1.isStatic)) {
1883
+ // if the page was marked as being static, but it contains dynamic data
1884
+ // (ie, in the case of a static generation bailout), then it should be marked dynamic
1885
+ pageInfos.set(page, {
1886
+ ...pageInfos.get(page),
1887
+ isStatic: false,
1888
+ isSSG: false
1889
+ });
1890
+ }
1891
+ const isAppRouteHandler = (0, _isapprouteroute.isAppRouteRoute)(originalAppPath);
1892
+ // When this is an app page and PPR is enabled, the route supports
1893
+ // partial pre-rendering.
1894
+ const isRoutePPREnabled = !isAppRouteHandler && (0, _ppr.checkIsRoutePPREnabled)(config.experimental.ppr) ? true : undefined;
1895
+ const htmlBotsRegexString = // The htmlLimitedBots has been converted to a string during loadConfig
1896
+ config.htmlLimitedBots || _isbot.HTML_LIMITED_BOT_UA_RE_STRING;
1897
+ // this flag is used to selectively bypass the static cache and invoke the lambda directly
1898
+ // to enable server actions on static routes
1899
+ const bypassFor = [
1900
+ {
1901
+ type: 'header',
1902
+ key: _approuterheaders.ACTION_HEADER
1903
+ },
1904
+ {
1905
+ type: 'header',
1906
+ key: 'content-type',
1907
+ value: 'multipart/form-data;.*'
1908
+ },
1909
+ // If it's PPR rendered non-static page, bypass the PPR cache when streaming metadata is enabled.
1910
+ // This will skip the postpone data for those bots requests and instead produce a dynamic render.
1911
+ ...isRoutePPREnabled ? [
1912
+ {
1913
+ type: 'header',
1914
+ key: 'user-agent',
1915
+ value: htmlBotsRegexString
1916
+ }
1917
+ ] : []
1918
+ ];
1919
+ // We should collect all the dynamic routes into a single array for
1920
+ // this page. Including the full fallback route (the original
1921
+ // route), any routes that were generated with unknown route params
1922
+ // should be collected and included in the dynamic routes part
1923
+ // of the manifest instead.
1924
+ const staticPrerenderedRoutes = [];
1925
+ const dynamicPrerenderedRoutes = [];
1926
+ // Sort the outputted routes to ensure consistent output. Any route
1927
+ // though that has unknown route params will be pulled and sorted
1928
+ // independently. This is because the routes with unknown route
1929
+ // params will contain the dynamic path parameters, some of which
1930
+ // may conflict with the actual prerendered routes.
1931
+ const unsortedUnknownPrerenderRoutes = [];
1932
+ const unsortedKnownPrerenderRoutes = [];
1933
+ for (const prerenderedRoute of prerenderedRoutes){
1934
+ if (prerenderedRoute.fallbackRouteParams && prerenderedRoute.fallbackRouteParams.length > 0) {
1935
+ unsortedUnknownPrerenderRoutes.push(prerenderedRoute);
1936
+ } else {
1937
+ unsortedKnownPrerenderRoutes.push(prerenderedRoute);
1938
+ }
1939
+ }
1940
+ const sortedUnknownPrerenderRoutes = (0, _sortableroutes.sortPageObjects)(unsortedUnknownPrerenderRoutes, (prerenderedRoute)=>prerenderedRoute.pathname);
1941
+ const sortedKnownPrerenderRoutes = (0, _sortableroutes.sortPageObjects)(unsortedKnownPrerenderRoutes, (prerenderedRoute)=>prerenderedRoute.pathname);
1942
+ prerenderedRoutes = [
1943
+ ...sortedKnownPrerenderRoutes,
1944
+ ...sortedUnknownPrerenderRoutes
1945
+ ];
1946
+ for (const prerenderedRoute of prerenderedRoutes){
1947
+ if (isRoutePPREnabled && prerenderedRoute.fallbackRouteParams && prerenderedRoute.fallbackRouteParams.length > 0) {
1948
+ // If the route has unknown params, then we need to add it to
1949
+ // the list of dynamic routes.
1950
+ dynamicPrerenderedRoutes.push(prerenderedRoute);
1951
+ } else {
1952
+ // If the route doesn't have unknown params, then we need to
1953
+ // add it to the list of static routes.
1954
+ staticPrerenderedRoutes.push(prerenderedRoute);
1955
+ }
1956
+ }
1957
+ // Handle all the static routes.
1958
+ for (const route of staticPrerenderedRoutes){
1959
+ if ((0, _utils.isDynamicRoute)(page) && route.pathname === page) continue;
1960
+ const { metadata = {}, hasEmptyStaticShell, hasPostponed } = exportResult.byPath.get(route.pathname) ?? {};
1961
+ const cacheControl = getCacheControl(route.pathname, appConfig.revalidate);
1962
+ pageInfos.set(route.pathname, {
1963
+ ...pageInfos.get(route.pathname),
1964
+ hasPostponed,
1965
+ hasEmptyStaticShell,
1966
+ initialCacheControl: cacheControl
1967
+ });
1968
+ // update the page (eg /blog/[slug]) to also have the postpone metadata
1969
+ pageInfos.set(page, {
1970
+ ...pageInfos.get(page),
1971
+ hasPostponed,
1972
+ hasEmptyStaticShell,
1973
+ initialCacheControl: cacheControl
1974
+ });
1975
+ if (cacheControl.revalidate !== 0) {
1976
+ const normalizedRoute = (0, _normalizepagepath.normalizePagePath)(route.pathname);
1977
+ let dataRoute;
1978
+ if (isAppRouteHandler) {
1979
+ dataRoute = null;
1980
+ } else {
1981
+ dataRoute = _path.default.posix.join(`${normalizedRoute}${_constants.RSC_SUFFIX}`);
1982
+ }
1983
+ const meta = (0, _utils1.collectMeta)(metadata);
1984
+ const status = route.pathname === _entryconstants.UNDERSCORE_NOT_FOUND_ROUTE ? 404 : meta.status;
1985
+ prerenderManifest.routes[route.pathname] = {
1986
+ initialStatus: status,
1987
+ initialHeaders: meta.headers,
1988
+ renderingMode: isAppPPREnabled ? isRoutePPREnabled ? _renderingmode.RenderingMode.PARTIALLY_STATIC : _renderingmode.RenderingMode.STATIC : undefined,
1989
+ experimentalPPR: isRoutePPREnabled,
1990
+ experimentalBypassFor: bypassFor,
1991
+ initialRevalidateSeconds: cacheControl.revalidate,
1992
+ initialExpireSeconds: cacheControl.expire,
1993
+ srcRoute: page,
1994
+ dataRoute,
1995
+ prefetchDataRoute: undefined,
1996
+ allowHeader: ALLOWED_HEADERS
1997
+ };
1998
+ } else {
1999
+ hasRevalidateZero = true;
2000
+ if (ssgPageRoutesSet.has(route.pathname)) {
2001
+ const pageInfo = pageInfos.get(page);
2002
+ // Remove the route from the SSG page routes if it bailed out
2003
+ // during prerendering.
2004
+ ssgPageRoutesSet.delete(route.pathname);
2005
+ // Mark the route as having a GSP and revalidate zero.
2006
+ if (ssgPageRoutesSet.size === 0) {
2007
+ hasGSPAndRevalidateZero.delete(page);
2008
+ } else {
2009
+ hasGSPAndRevalidateZero.add(page);
2010
+ }
2011
+ pageInfos.set(page, {
2012
+ ...pageInfo,
2013
+ ssgPageRoutes: Array.from(ssgPageRoutesSet),
2014
+ // If there are no SSG page routes left, then the page is not SSG.
2015
+ isSSG: ssgPageRoutesSet.size === 0 ? false : pageInfo.isSSG
2016
+ });
2017
+ } else {
2018
+ // we might have determined during prerendering that this page
2019
+ // used dynamic data
2020
+ pageInfos.set(route.pathname, {
2021
+ ...pageInfos.get(route.pathname),
2022
+ isSSG: false,
2023
+ isStatic: false
2024
+ });
2025
+ }
2026
+ }
2027
+ }
2028
+ if (!hasRevalidateZero && (0, _utils.isDynamicRoute)(page)) {
2029
+ // When PPR fallbacks aren't used, we need to include it here. If
2030
+ // they are enabled, then it'll already be included in the
2031
+ // prerendered routes.
2032
+ if (!isRoutePPREnabled) {
2033
+ dynamicPrerenderedRoutes.push({
2034
+ params: {},
2035
+ pathname: page,
2036
+ encodedPathname: page,
2037
+ fallbackRouteParams: [],
2038
+ fallbackMode: fallbackModes.get(originalAppPath) ?? _fallback.FallbackMode.NOT_FOUND,
2039
+ fallbackRootParams: [],
2040
+ throwOnEmptyStaticShell: true
2041
+ });
2042
+ }
2043
+ for (const route of dynamicPrerenderedRoutes){
2044
+ var _exportResult_byPath_get;
2045
+ const normalizedRoute = (0, _normalizepagepath.normalizePagePath)(route.pathname);
2046
+ const metadata = (_exportResult_byPath_get = exportResult.byPath.get(route.pathname)) == null ? void 0 : _exportResult_byPath_get.metadata;
2047
+ const cacheControl = getCacheControl(route.pathname);
2048
+ let dataRoute = null;
2049
+ if (!isAppRouteHandler) {
2050
+ dataRoute = _path.default.posix.join(`${normalizedRoute}${_constants.RSC_SUFFIX}`);
2051
+ }
2052
+ let prefetchDataRoute = null;
2053
+ let dynamicRoute = routesManifest.dynamicRoutes.find((r)=>r.page === route.pathname);
2054
+ if (!isAppRouteHandler && isAppPPREnabled) {
2055
+ // If the dynamic route wasn't found, then we need to create
2056
+ // it. This ensures that for each fallback shell there's an
2057
+ // entry in the app routes manifest which enables routing for
2058
+ // this fallback shell.
2059
+ if (!dynamicRoute) {
2060
+ dynamicRoute = (0, _utils1.pageToRoute)(route.pathname, page);
2061
+ sourcePages.set(route.pathname, page);
2062
+ // This route is not for the internal router, but instead
2063
+ // for external routers.
2064
+ dynamicRoute.skipInternalRouting = true;
2065
+ // Push this to the end of the array. The dynamic routes are
2066
+ // sorted by page later.
2067
+ dynamicRoutes.push(dynamicRoute);
2068
+ }
2069
+ }
2070
+ if (!isAppRouteHandler && ((metadata == null ? void 0 : metadata.segmentPaths) || route.fallbackRootParams && route.fallbackRootParams.length > 0)) {
2071
+ // If PPR isn't enabled, then we might not find the dynamic
2072
+ // route by pathname. If that's the case, we need to find the
2073
+ // route by page.
2074
+ if (!dynamicRoute) {
2075
+ dynamicRoute = dynamicRoutes.find((r)=>r.page === page);
2076
+ // If it can't be found by page, we must throw an error.
2077
+ if (!dynamicRoute) {
2078
+ throw Object.defineProperty(new _invarianterror.InvariantError('Dynamic route not found'), "__NEXT_ERROR_CODE", {
2079
+ value: "E633",
2080
+ enumerable: false,
2081
+ configurable: true
2082
+ });
2083
+ }
2084
+ }
2085
+ if (metadata == null ? void 0 : metadata.segmentPaths) {
2086
+ const pageSegmentPath = metadata.segmentPaths.find((item)=>item.endsWith('__PAGE__'));
2087
+ if (!pageSegmentPath) {
2088
+ throw Object.defineProperty(new Error(`Invariant: missing __PAGE__ segmentPath`), "__NEXT_ERROR_CODE", {
2089
+ value: "E759",
2090
+ enumerable: false,
2091
+ configurable: true
2092
+ });
2093
+ }
2094
+ // We build a combined segment data route from the
2095
+ // page segment as we need to limit the number of
2096
+ // routes we output and they can be shared
2097
+ const builtSegmentDataRoute = (0, _buildprefetchsegmentdataroute.buildPrefetchSegmentDataRoute)(route.pathname, pageSegmentPath);
2098
+ builtSegmentDataRoute.source = builtSegmentDataRoute.source.replace('/__PAGE__\\.segment\\.rsc$', `(?<segment>/__PAGE__\\.segment\\.rsc|\\.segment\\.rsc)(?:/)?$`);
2099
+ builtSegmentDataRoute.destination = builtSegmentDataRoute.destination.replace('/__PAGE__.segment.rsc', '$segment');
2100
+ dynamicRoute.prefetchSegmentDataRoutes ??= [];
2101
+ dynamicRoute.prefetchSegmentDataRoutes.push(builtSegmentDataRoute);
2102
+ }
2103
+ }
2104
+ pageInfos.set(route.pathname, {
2105
+ ...pageInfos.get(route.pathname),
2106
+ isDynamicAppRoute: true,
2107
+ // if PPR is turned on and the route contains a dynamic segment,
2108
+ // we assume it'll be partially prerendered
2109
+ hasPostponed: isRoutePPREnabled
2110
+ });
2111
+ const fallbackMode = getFallbackMode(route);
2112
+ // When the route is configured to serve a prerender, we should
2113
+ // use the cache control from the export result. If it can't be
2114
+ // found, mark that we should keep the shell forever
2115
+ // (revalidate: `false` via `getCacheControl()`).
2116
+ const fallbackCacheControl = isRoutePPREnabled && fallbackMode === _fallback.FallbackMode.PRERENDER ? cacheControl : undefined;
2117
+ const fallback = (0, _fallback.fallbackModeToFallbackField)(fallbackMode, route.pathname);
2118
+ const meta = metadata && isRoutePPREnabled && fallbackMode === _fallback.FallbackMode.PRERENDER ? (0, _utils1.collectMeta)(metadata) : {};
2119
+ prerenderManifest.dynamicRoutes[route.pathname] = {
2120
+ experimentalPPR: isRoutePPREnabled,
2121
+ renderingMode: isAppPPREnabled ? isRoutePPREnabled ? _renderingmode.RenderingMode.PARTIALLY_STATIC : _renderingmode.RenderingMode.STATIC : undefined,
2122
+ experimentalBypassFor: bypassFor,
2123
+ routeRegex: (0, _loadcustomroutes.normalizeRouteRegex)((0, _routeregex.getNamedRouteRegex)(route.pathname, {
2124
+ prefixRouteKeys: false
2125
+ }).re.source),
2126
+ dataRoute,
2127
+ fallback,
2128
+ fallbackRevalidate: fallbackCacheControl == null ? void 0 : fallbackCacheControl.revalidate,
2129
+ fallbackExpire: fallbackCacheControl == null ? void 0 : fallbackCacheControl.expire,
2130
+ fallbackStatus: meta.status,
2131
+ fallbackHeaders: meta.headers,
2132
+ fallbackRootParams: fallback ? route.fallbackRootParams : undefined,
2133
+ fallbackSourceRoute: route.fallbackRouteParams && route.fallbackRouteParams.length > 0 ? page : undefined,
2134
+ fallbackRouteParams: route.fallbackRouteParams,
2135
+ dataRouteRegex: !dataRoute ? null : (0, _loadcustomroutes.normalizeRouteRegex)((0, _routeregex.getNamedRouteRegex)(dataRoute, {
2136
+ prefixRouteKeys: false,
2137
+ includeSuffix: true,
2138
+ excludeOptionalTrailingSlash: true
2139
+ }).re.source),
2140
+ prefetchDataRoute,
2141
+ prefetchDataRouteRegex: !prefetchDataRoute ? undefined : (0, _loadcustomroutes.normalizeRouteRegex)((0, _routeregex.getNamedRouteRegex)(prefetchDataRoute, {
2142
+ prefixRouteKeys: false,
2143
+ includeSuffix: true,
2144
+ excludeOptionalTrailingSlash: true
2145
+ }).re.source),
2146
+ allowHeader: ALLOWED_HEADERS
2147
+ };
2148
+ }
2149
+ }
2150
+ });
2151
+ const moveExportedPage = async (originPage, page, file, isSsg, ext, additionalSsgFile = false)=>{
2152
+ return staticGenerationSpan.traceChild('move-exported-page').traceAsyncFn(async ()=>{
2153
+ file = `${file}.${ext}`;
2154
+ const orig = _path.default.join(outdir, file);
2155
+ const pagePath = (0, _require.getPagePath)(originPage, distDir, undefined, false);
2156
+ const relativeDest = _path.default.relative(_path.default.join(distDir, _constants1.SERVER_DIRECTORY), _path.default.join(_path.default.join(pagePath, // strip leading / and then recurse number of nested dirs
2157
+ // to place from base folder
2158
+ originPage.slice(1).split('/').map(()=>'..').join('/')), file)).replace(/\\/g, '/');
2159
+ if (!isSsg && !// don't add static status page to manifest if it's
2160
+ // the default generated version e.g. no pages/500
2161
+ (_constants1.STATIC_STATUS_PAGES.includes(page) && !usedStaticStatusPages.includes(page))) {
2162
+ pagesManifest[page] = relativeDest;
2163
+ }
2164
+ const dest = _path.default.join(distDir, _constants1.SERVER_DIRECTORY, relativeDest);
2165
+ const isNotFound = prerenderManifest.notFoundRoutes.includes(page);
2166
+ // for SSG files with i18n the non-prerendered variants are
2167
+ // output with the locale prefixed so don't attempt moving
2168
+ // without the prefix
2169
+ if ((!i18n || additionalSsgFile) && !isNotFound) {
2170
+ await _fs.promises.mkdir(_path.default.dirname(dest), {
2171
+ recursive: true
2172
+ });
2173
+ await _fs.promises.rename(orig, dest);
2174
+ } else if (i18n && !isSsg) {
2175
+ // this will be updated with the locale prefixed variant
2176
+ // since all files are output with the locale prefix
2177
+ delete pagesManifest[page];
2178
+ }
2179
+ if (i18n) {
2180
+ if (additionalSsgFile) return;
2181
+ const localeExt = page === '/' ? _path.default.extname(file) : '';
2182
+ const relativeDestNoPages = relativeDest.slice('pages/'.length);
2183
+ for (const locale of i18n.locales){
2184
+ const curPath = `/${locale}${page === '/' ? '' : page}`;
2185
+ if (isSsg && prerenderManifest.notFoundRoutes.includes(curPath)) {
2186
+ continue;
2187
+ }
2188
+ const updatedRelativeDest = _path.default.join('pages', locale + localeExt, // if it's the top-most index page we want it to be locale.EXT
2189
+ // instead of locale/index.html
2190
+ page === '/' ? '' : relativeDestNoPages).replace(/\\/g, '/');
2191
+ const updatedOrig = _path.default.join(outdir, locale + localeExt, page === '/' ? '' : file);
2192
+ const updatedDest = _path.default.join(distDir, _constants1.SERVER_DIRECTORY, updatedRelativeDest);
2193
+ if (!isSsg) {
2194
+ pagesManifest[curPath] = updatedRelativeDest;
2195
+ }
2196
+ await _fs.promises.mkdir(_path.default.dirname(updatedDest), {
2197
+ recursive: true
2198
+ });
2199
+ await _fs.promises.rename(updatedOrig, updatedDest);
2200
+ }
2201
+ }
2202
+ });
2203
+ };
2204
+ async function moveExportedAppNotFoundTo404() {
2205
+ return staticGenerationSpan.traceChild('move-exported-app-not-found-').traceAsyncFn(async ()=>{
2206
+ const orig = _path.default.join(distDir, 'server', 'app', '_not-found.html');
2207
+ const updatedRelativeDest = _path.default.join('pages', '404.html').replace(/\\/g, '/');
2208
+ if ((0, _fs.existsSync)(orig)) {
2209
+ // if 404.html folder doesn't exist, create it
2210
+ await _fs.promises.mkdir(_path.default.dirname(_path.default.join(distDir, 'server', updatedRelativeDest)), {
2211
+ recursive: true
2212
+ });
2213
+ await _fs.promises.copyFile(orig, _path.default.join(distDir, 'server', updatedRelativeDest));
2214
+ // since the app router not found is prioritized over pages router,
2215
+ // we have to ensure the app router entries are available for all locales
2216
+ if (i18n) {
2217
+ for (const locale of i18n.locales){
2218
+ const curPath = `/${locale}/404`;
2219
+ pagesManifest[curPath] = updatedRelativeDest;
2220
+ }
2221
+ }
2222
+ pagesManifest['/404'] = updatedRelativeDest;
2223
+ }
2224
+ });
2225
+ }
2226
+ async function moveExportedAppGlobalErrorTo500() {
2227
+ return staticGenerationSpan.traceChild('move-exported-app-global-error-').traceAsyncFn(async ()=>{
2228
+ // If static 500.html exists in pages router, don't move it
2229
+ if ((0, _fs.existsSync)(_path.default.join(distDir, 'server', 'pages', '500.html'))) {
2230
+ return;
2231
+ }
2232
+ // Only handle 500.html generation for static export
2233
+ const orig = _path.default.join(distDir, 'server', 'app', '_global-error.html');
2234
+ if ((0, _fs.existsSync)(orig)) {
2235
+ const error500Html = _path.default.join(distDir, 'server', 'pages', '500.html');
2236
+ // if 500.html folder doesn't exist, create it
2237
+ await _fs.promises.mkdir(_path.default.dirname(error500Html), {
2238
+ recursive: true
2239
+ });
2240
+ await _fs.promises.copyFile(orig, error500Html);
2241
+ pagesManifest['/500'] = _path.default.join('pages', '500.html').replace(/\\/g, '/');
2242
+ }
2243
+ });
2244
+ }
2245
+ // If there's /not-found inside app, we prefer it over the pages 404
2246
+ if (hasStaticApp404) {
2247
+ await moveExportedAppNotFoundTo404();
2248
+ } else {
2249
+ // Only move /404 to /404 when there is no custom 404 as in that case we don't know about the 404 page
2250
+ if (!hasPages404 && !hasApp404 && useStaticPages404 && !appDirOnly) {
2251
+ await moveExportedPage('/_error', '/404', '/404', false, 'html');
2252
+ }
2253
+ }
2254
+ if (useDefaultStatic500 && !appDirOnly) {
2255
+ await moveExportedPage('/_error', '/500', '/500', false, 'html');
2256
+ }
2257
+ // If there's app router and no pages router, use app router built-in 500.html
2258
+ if (hasStaticAppGlobalError && mappedAppPages && Object.keys(mappedAppPages).length > 0) {
2259
+ await moveExportedAppGlobalErrorTo500();
2260
+ }
2261
+ for (const page of combinedPages){
2262
+ const isSsg = ssgPages.has(page);
2263
+ const isStaticSsgFallback = ssgStaticFallbackPages.has(page);
2264
+ const isDynamic = (0, _utils.isDynamicRoute)(page);
2265
+ const file = (0, _normalizepagepath.normalizePagePath)(page);
2266
+ const pageInfo = pageInfos.get(page);
2267
+ const durationInfo = exportResult.byPage.get(page);
2268
+ if (pageInfo && durationInfo) {
2269
+ // Set Build Duration
2270
+ if (pageInfo.ssgPageRoutes) {
2271
+ pageInfo.ssgPageDurations = pageInfo.ssgPageRoutes.map((pagePath)=>{
2272
+ const duration = durationInfo.durationsByPath.get(pagePath);
2273
+ if (typeof duration === 'undefined') {
2274
+ throw Object.defineProperty(new Error("Invariant: page wasn't built"), "__NEXT_ERROR_CODE", {
2275
+ value: "E239",
2276
+ enumerable: false,
2277
+ configurable: true
2278
+ });
2279
+ }
2280
+ return duration;
2281
+ });
2282
+ }
2283
+ pageInfo.pageDuration = durationInfo.durationsByPath.get(page);
2284
+ }
2285
+ // The dynamic version of SSG pages are only prerendered if the
2286
+ // fallback is enabled. Below, we handle the specific prerenders
2287
+ // of these.
2288
+ const hasHtmlOutput = !(isSsg && isDynamic && !isStaticSsgFallback);
2289
+ if (hasHtmlOutput) {
2290
+ await moveExportedPage(page, page, file, isSsg, 'html');
2291
+ }
2292
+ if (isSsg) {
2293
+ // For a non-dynamic SSG page, we must copy its data file
2294
+ // from export, we already moved the HTML file above
2295
+ if (!isDynamic) {
2296
+ await moveExportedPage(page, page, file, isSsg, 'json');
2297
+ if (i18n) {
2298
+ // TODO: do we want to show all locale variants in build output
2299
+ for (const locale of i18n.locales){
2300
+ const localePage = `/${locale}${page === '/' ? '' : page}`;
2301
+ const cacheControl = getCacheControl(localePage);
2302
+ prerenderManifest.routes[localePage] = {
2303
+ initialRevalidateSeconds: cacheControl.revalidate,
2304
+ initialExpireSeconds: cacheControl.expire,
2305
+ experimentalPPR: undefined,
2306
+ renderingMode: undefined,
2307
+ srcRoute: null,
2308
+ dataRoute: _path.default.posix.join('/_next/data', buildId, `${localePage}.json`),
2309
+ prefetchDataRoute: undefined,
2310
+ allowHeader: ALLOWED_HEADERS
2311
+ };
2312
+ }
2313
+ } else {
2314
+ const cacheControl = getCacheControl(page);
2315
+ prerenderManifest.routes[page] = {
2316
+ initialRevalidateSeconds: cacheControl.revalidate,
2317
+ initialExpireSeconds: cacheControl.expire,
2318
+ experimentalPPR: undefined,
2319
+ renderingMode: undefined,
2320
+ srcRoute: null,
2321
+ dataRoute: _path.default.posix.join('/_next/data', buildId, `${file}.json`),
2322
+ // Pages does not have a prefetch data route.
2323
+ prefetchDataRoute: undefined,
2324
+ allowHeader: ALLOWED_HEADERS
2325
+ };
2326
+ }
2327
+ if (pageInfo) {
2328
+ pageInfo.initialCacheControl = getCacheControl(page);
2329
+ }
2330
+ } else {
2331
+ // For a dynamic SSG page, we did not copy its data exports and only
2332
+ // copy the fallback HTML file (if present).
2333
+ // We must also copy specific versions of this page as defined by
2334
+ // `getStaticPaths` (additionalSsgPaths).
2335
+ for (const route of additionalPaths.get(page) ?? []){
2336
+ const pageFile = (0, _normalizepagepath.normalizePagePath)(route.pathname);
2337
+ await moveExportedPage(page, route.pathname, pageFile, isSsg, 'html', true);
2338
+ await moveExportedPage(page, route.pathname, pageFile, isSsg, 'json', true);
2339
+ const cacheControl = getCacheControl(route.pathname);
2340
+ prerenderManifest.routes[route.pathname] = {
2341
+ initialRevalidateSeconds: cacheControl.revalidate,
2342
+ initialExpireSeconds: cacheControl.expire,
2343
+ experimentalPPR: undefined,
2344
+ renderingMode: undefined,
2345
+ srcRoute: page,
2346
+ dataRoute: _path.default.posix.join('/_next/data', buildId, `${(0, _normalizepagepath.normalizePagePath)(route.pathname)}.json`),
2347
+ // Pages does not have a prefetch data route.
2348
+ prefetchDataRoute: undefined,
2349
+ allowHeader: ALLOWED_HEADERS
2350
+ };
2351
+ if (pageInfo) {
2352
+ pageInfo.initialCacheControl = cacheControl;
2353
+ }
2354
+ }
2355
+ }
2356
+ }
2357
+ }
2358
+ // remove temporary export folder
2359
+ await _fs.promises.rm(outdir, {
2360
+ recursive: true,
2361
+ force: true
2362
+ });
2363
+ await writeManifest(pagesManifestPath, pagesManifest);
2364
+ });
2365
+ // As we may have modified the dynamicRoutes, we need to sort the
2366
+ // dynamic routes by page.
2367
+ routesManifest.dynamicRoutes = (0, _sortableroutes.sortSortableRouteObjects)(dynamicRoutes, (route)=>({
2368
+ // If the route is PPR enabled, and has an associated source page,
2369
+ // use it. Otherwise fallback to the page which should be the same.
2370
+ sourcePage: sourcePages.get(route.page) ?? route.page,
2371
+ page: route.page
2372
+ }));
2373
+ // Now write the routes manifest out.
2374
+ await nextBuildSpan.traceChild('write-routes-manifest').traceAsyncFn(()=>writeManifest(routesManifestPath, routesManifest));
2375
+ }
2376
+ const finalizingPageOptimizationStart = process.hrtime();
2377
+ const postBuildSpinner = (0, _spinner.default)('Finalizing page optimization');
2378
+ let buildTracesSpinner;
2379
+ let buildTracesStart;
2380
+ if (buildTracesPromise) {
2381
+ buildTracesStart = process.hrtime();
2382
+ buildTracesSpinner = (0, _spinner.default)('Collecting build traces');
2383
+ }
2384
+ // When output: export we want to end the worker later as it's still used for writeFullyStaticExport
2385
+ if (config.output !== 'export') {
2386
+ // ensure the worker is not left hanging
2387
+ staticWorker == null ? void 0 : staticWorker.end();
2388
+ staticWorker = undefined // Reset staticWorker to make sure it does not end in `finally`
2389
+ ;
2390
+ }
2391
+ const analysisEnd = process.hrtime(analysisBegin);
2392
+ telemetry.record((0, _events.eventBuildOptimize)(pagesPaths, {
2393
+ durationInSeconds: analysisEnd[0],
2394
+ staticPageCount: staticPages.size,
2395
+ staticPropsPageCount: ssgPages.size,
2396
+ serverPropsPageCount: serverPropsPages.size,
2397
+ ssrPageCount: pagesPaths.length - (staticPages.size + ssgPages.size + serverPropsPages.size),
2398
+ hasStatic404: useStaticPages404,
2399
+ hasReportWebVitals: (namedExports == null ? void 0 : namedExports.includes('reportWebVitals')) ?? false,
2400
+ rewritesCount: combinedRewrites.length,
2401
+ headersCount: headers.length,
2402
+ redirectsCount: redirects.length - 1,
2403
+ headersWithHasCount: headers.filter((r)=>!!r.has).length,
2404
+ rewritesWithHasCount: combinedRewrites.filter((r)=>!!r.has).length,
2405
+ redirectsWithHasCount: redirects.filter((r)=>!!r.has).length,
2406
+ middlewareCount: hasMiddlewareFile || hasProxyFile ? 1 : 0,
2407
+ totalAppPagesCount,
2408
+ staticAppPagesCount,
2409
+ serverAppPagesCount,
2410
+ edgeRuntimeAppCount,
2411
+ edgeRuntimePagesCount
2412
+ }));
2413
+ if (_buildcontext.NextBuildContext.telemetryState) {
2414
+ const events = (0, _events.eventBuildFeatureUsage)(_buildcontext.NextBuildContext.telemetryState.usages);
2415
+ telemetry.record(events);
2416
+ telemetry.record((0, _events.eventPackageUsedInGetServerSideProps)(_buildcontext.NextBuildContext.telemetryState.packagesUsedInServerSideProps));
2417
+ const useCacheTracker = _buildcontext.NextBuildContext.telemetryState.useCacheTracker;
2418
+ for (const [key, value] of Object.entries(useCacheTracker)){
2419
+ telemetry.record((0, _events.eventBuildFeatureUsage)([
2420
+ {
2421
+ featureName: key,
2422
+ invocationCount: value
2423
+ }
2424
+ ]));
2425
+ }
2426
+ }
2427
+ if (ssgPages.size > 0 || appDir) {
2428
+ var _config_i18n;
2429
+ tbdPrerenderRoutes.forEach((tbdRoute)=>{
2430
+ const normalizedRoute = (0, _normalizepagepath.normalizePagePath)(tbdRoute);
2431
+ const dataRoute = _path.default.posix.join('/_next/data', buildId, `${normalizedRoute}.json`);
2432
+ prerenderManifest.dynamicRoutes[tbdRoute] = {
2433
+ routeRegex: (0, _loadcustomroutes.normalizeRouteRegex)((0, _routeregex.getNamedRouteRegex)(tbdRoute, {
2434
+ prefixRouteKeys: false
2435
+ }).re.source),
2436
+ experimentalPPR: undefined,
2437
+ renderingMode: undefined,
2438
+ dataRoute,
2439
+ fallback: ssgBlockingFallbackPages.has(tbdRoute) ? null : ssgStaticFallbackPages.has(tbdRoute) ? `${normalizedRoute}.html` : false,
2440
+ fallbackRevalidate: undefined,
2441
+ fallbackExpire: undefined,
2442
+ fallbackSourceRoute: undefined,
2443
+ fallbackRootParams: undefined,
2444
+ fallbackRouteParams: undefined,
2445
+ dataRouteRegex: (0, _loadcustomroutes.normalizeRouteRegex)((0, _routeregex.getNamedRouteRegex)(dataRoute, {
2446
+ prefixRouteKeys: true,
2447
+ includeSuffix: true,
2448
+ excludeOptionalTrailingSlash: true
2449
+ }).re.source),
2450
+ // Pages does not have a prefetch data route.
2451
+ prefetchDataRoute: undefined,
2452
+ prefetchDataRouteRegex: undefined,
2453
+ allowHeader: ALLOWED_HEADERS
2454
+ };
2455
+ });
2456
+ _buildcontext.NextBuildContext.previewModeId = previewProps.previewModeId;
2457
+ _buildcontext.NextBuildContext.fetchCacheKeyPrefix = config.experimental.fetchCacheKeyPrefix;
2458
+ _buildcontext.NextBuildContext.allowedRevalidateHeaderKeys = config.experimental.allowedRevalidateHeaderKeys;
2459
+ await writePrerenderManifest(distDir, prerenderManifest);
2460
+ await writeClientSsgManifest(prerenderManifest, {
2461
+ distDir,
2462
+ buildId,
2463
+ locales: (_config_i18n = config.i18n) == null ? void 0 : _config_i18n.locales
2464
+ });
2465
+ } else {
2466
+ await writePrerenderManifest(distDir, {
2467
+ version: 4,
2468
+ routes: {},
2469
+ dynamicRoutes: {},
2470
+ preview: previewProps,
2471
+ notFoundRoutes: []
2472
+ });
2473
+ }
2474
+ await writeImagesManifest(distDir, config);
2475
+ await writeManifest(_path.default.join(distDir, _constants1.EXPORT_MARKER), {
2476
+ version: 1,
2477
+ hasExportPathMap: typeof config.exportPathMap === 'function',
2478
+ exportTrailingSlash: config.trailingSlash === true,
2479
+ isNextImageImported: isNextImageImported === true
2480
+ });
2481
+ await _fs.promises.unlink(_path.default.join(distDir, _constants1.EXPORT_DETAIL)).catch((err)=>{
2482
+ if (err.code === 'ENOENT') {
2483
+ return Promise.resolve();
2484
+ }
2485
+ return Promise.reject(err);
2486
+ });
2487
+ if (Boolean(config.experimental.nextScriptWorkers)) {
2488
+ await nextBuildSpan.traceChild('verify-partytown-setup').traceAsyncFn(async ()=>{
2489
+ await (0, _verifypartytownsetup.verifyPartytownSetup)(dir, _path.default.join(distDir, _constants1.CLIENT_STATIC_FILES_PATH));
2490
+ });
2491
+ }
2492
+ await buildTracesPromise;
2493
+ if (buildTracesSpinner) {
2494
+ if (buildTracesStart) {
2495
+ const buildTracesEnd = process.hrtime(buildTracesStart);
2496
+ buildTracesSpinner.setText(`Collecting build traces in ${(0, _durationtostring.hrtimeDurationToString)(buildTracesEnd)}`);
2497
+ }
2498
+ buildTracesSpinner.stopAndPersist();
2499
+ buildTracesSpinner = undefined;
2500
+ }
2501
+ if (proxyFilePath && bundler !== _bundler.Bundler.Turbopack) {
2502
+ await _fs.promises.rename(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'proxy.js'), _path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'middleware.js'));
2503
+ await _fs.promises.rename(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'proxy.js.nft.json'), _path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'middleware.js.nft.json'));
2504
+ const middlewareNft = JSON.parse(await _fs.promises.readFile(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'middleware.js.nft.json'), 'utf8'));
2505
+ // When Proxy self-reference itself e.g. __filename, it is traced to
2506
+ // the NFT file. However, since we rename 'proxy.js' to 'middleware.js',
2507
+ // the files in NFT will differ from the actual outputs, which will fail
2508
+ // for the providers like Vercel that uses NFT. Therefore also rename
2509
+ // the 'proxy.js' to 'middleware.js' in the NFT file.
2510
+ let hasProxyJsInNft = false;
2511
+ middlewareNft.files = middlewareNft.files.map((file)=>{
2512
+ if (file === 'proxy.js') {
2513
+ hasProxyJsInNft = true;
2514
+ return 'middleware.js';
2515
+ }
2516
+ return file;
2517
+ });
2518
+ if (hasProxyJsInNft) {
2519
+ await _fs.promises.writeFile(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'middleware.js.nft.json'), JSON.stringify(middlewareNft));
2520
+ }
2521
+ }
2522
+ if (isCompileMode) {
2523
+ _log.info(`Build ran with "compile" mode, to finalize the build run either "generate" or "generate-env" mode as well`);
2524
+ }
2525
+ if (config.output === 'export') {
2526
+ // TODO: When writeFullyStaticExport doesn't fail when staticWorker is passed moved this after writeFullyStaticExport.
2527
+ // End the worker here when it's output: export.
2528
+ staticWorker.end();
2529
+ staticWorker = undefined // Reset staticWorker to make sure it does not end in `finally`
2530
+ ;
2531
+ await nextBuildSpan.traceChild('output-export-full-static-export').traceAsyncFn(async ()=>{
2532
+ await writeFullyStaticExport(config, dir, enabledDirectories, configOutDir, nextBuildSpan, appDirOnly);
2533
+ });
2534
+ }
2535
+ // This should come after output: export handling but before
2536
+ // output: standalone, in the future output: standalone might
2537
+ // not be allowed if an adapter with onBuildComplete is configured
2538
+ const adapterPath = config.experimental.adapterPath;
2539
+ if (adapterPath) {
2540
+ await nextBuildSpan.traceChild('adapter-handle-build-complete').traceAsyncFn(async ()=>{
2541
+ await (0, _buildcomplete.handleBuildComplete)({
2542
+ dir,
2543
+ distDir,
2544
+ config,
2545
+ buildId,
2546
+ configOutDir: _path.default.join(dir, configOutDir),
2547
+ staticPages,
2548
+ serverPropsPages,
2549
+ nextVersion: "16.1.1",
2550
+ tracingRoot: outputFileTracingRoot,
2551
+ hasNodeMiddleware,
2552
+ hasInstrumentationHook,
2553
+ adapterPath,
2554
+ pageKeys: pageKeys.pages,
2555
+ appPageKeys: denormalizedAppPages,
2556
+ routesManifest,
2557
+ prerenderManifest,
2558
+ middlewareManifest,
2559
+ functionsConfigManifest,
2560
+ hasStatic404: useStaticPages404,
2561
+ hasStatic500: useDefaultStatic500,
2562
+ requiredServerFiles: requiredServerFilesManifest.files
2563
+ });
2564
+ });
2565
+ }
2566
+ if (config.output === 'standalone') {
2567
+ await nextBuildSpan.traceChild('output-standalone').traceAsyncFn(async ()=>{
2568
+ await writeStandaloneDirectory(nextBuildSpan, distDir, pageKeys, denormalizedAppPages, outputFileTracingRoot, requiredServerFilesManifest, middlewareManifest, hasNodeMiddleware, hasInstrumentationHook, staticPages, loadedEnvFiles, appDir);
2569
+ });
2570
+ }
2571
+ if (postBuildSpinner) {
2572
+ const finalizingPageOptimizationEnd = process.hrtime(finalizingPageOptimizationStart);
2573
+ postBuildSpinner.setText(`Finalizing page optimization in ${(0, _durationtostring.hrtimeDurationToString)(finalizingPageOptimizationEnd)}`);
2574
+ postBuildSpinner.stopAndPersist();
2575
+ }
2576
+ console.log();
2577
+ if (debugOutput) {
2578
+ nextBuildSpan.traceChild('print-custom-routes').traceFn(()=>(0, _utils1.printCustomRoutes)({
2579
+ redirects,
2580
+ rewrites,
2581
+ headers
2582
+ }));
2583
+ }
2584
+ await nextBuildSpan.traceChild('print-tree-view').traceAsyncFn(()=>(0, _utils1.printTreeView)(pageKeys, pageInfos, {
2585
+ pagesDir,
2586
+ useStaticPages404,
2587
+ pageExtensions: config.pageExtensions,
2588
+ buildManifest,
2589
+ middlewareManifest,
2590
+ functionsConfigManifest,
2591
+ hasGSPAndRevalidateZero
2592
+ }));
2593
+ await nextBuildSpan.traceChild('telemetry-flush').traceAsyncFn(()=>telemetry.flush());
2594
+ await shutdownPromise;
2595
+ if (_buildcontext.NextBuildContext.analyze) {
2596
+ await (0, _promises.cp)(_path.default.join(__dirname, '../bundle-analyzer'), _path.default.join(dir, '.next/diagnostics/analyze'), {
2597
+ recursive: true
2598
+ });
2599
+ await (0, _promises.mkdir)(_path.default.join(dir, '.next/diagnostics/analyze/data'), {
2600
+ recursive: true
2601
+ });
2602
+ // Write an index of routes for the route picker
2603
+ await (0, _promises.writeFile)(_path.default.join(dir, '.next/diagnostics/analyze/data/routes.json'), JSON.stringify(routesManifest.dynamicRoutes.map((r)=>r.page).concat(routesManifest.staticRoutes.map((r)=>r.page)), null, 2));
2604
+ }
2605
+ });
2606
+ } catch (e) {
2607
+ const telemetry = _shared.traceGlobals.get('telemetry');
2608
+ if (telemetry) {
2609
+ telemetry.record((0, _events.eventBuildFailed)({
2610
+ bundler: getBundlerForTelemetry(bundler),
2611
+ errorCode: getErrorCodeForTelemetry(e),
2612
+ durationInSeconds: Math.floor((Date.now() - buildStartTime) / 1000)
2613
+ }));
2614
+ }
2615
+ throw e;
2616
+ } finally{
2617
+ // @ts-expect-error Existence of staticWorker is checked here intentionally.
2618
+ if (staticWorker) {
2619
+ staticWorker.end();
2620
+ }
2621
+ // Ensure we wait for lockfile patching if present
2622
+ await _swc.lockfilePatchPromise.cur;
2623
+ // Flush telemetry before finishing (waits for async operations like setTimeout in debug mode)
2624
+ const telemetry = _shared.traceGlobals.get('telemetry');
2625
+ if (telemetry) {
2626
+ await telemetry.flush();
2627
+ }
2628
+ // Ensure all traces are flushed before finishing the command
2629
+ await (0, _trace.flushAllTraces)();
2630
+ (0, _swc.teardownTraceSubscriber)();
2631
+ if (traceUploadUrl && loadedConfig) {
2632
+ (0, _uploadtrace.default)({
2633
+ traceUploadUrl,
2634
+ mode: 'build',
2635
+ projectDir: dir,
2636
+ distDir: loadedConfig.distDir,
2637
+ isTurboSession: bundler === _bundler.Bundler.Turbopack,
2638
+ sync: true
2639
+ });
2640
+ }
2641
+ }
2642
+ }
2643
+ function errorFromUnsupportedSegmentConfig() {
2644
+ _log.error(`Invalid segment configuration export detected. This can cause unexpected behavior from the configs not being applied. You should see the relevant failures in the logs above. Please fix them to continue.`);
2645
+ process.exit(1);
2646
+ }
2647
+ function getBundlerForTelemetry(bundler) {
2648
+ switch(bundler){
2649
+ case _bundler.Bundler.Turbopack:
2650
+ return 'turbopack';
2651
+ case _bundler.Bundler.Rspack:
2652
+ return 'rspack';
2653
+ case _bundler.Bundler.Webpack:
2654
+ return 'webpack';
2655
+ default:
2656
+ throw Object.defineProperty(new Error(`unknown bundler: ${bundler}`), "__NEXT_ERROR_CODE", {
2657
+ value: "E826",
2658
+ enumerable: false,
2659
+ configurable: true
2660
+ });
2661
+ }
2662
+ }
2663
+ function getErrorCodeForTelemetry(err) {
2664
+ const code = (0, _errortelemetryutils.extractNextErrorCode)(err);
2665
+ if (code != null) {
2666
+ return code;
2667
+ }
2668
+ if (err instanceof Error && 'code' in err && typeof err.code === 'string') {
2669
+ return err.code;
2670
+ }
2671
+ if (err instanceof Error) {
2672
+ return err.name;
2673
+ }
2674
+ return 'Unknown';
2675
+ }
2676
+
2677
+ //# sourceMappingURL=index.js.map